@stll/folio-vue 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/{ListButtons-DjLPhg8p.js → ListButtons-1YJNViXB.js} +416 -398
  2. package/dist/ListButtons-Cw5RTKNt.cjs +4 -0
  3. package/dist/{SplitCellDialog-Id6nLwrR.js → SplitCellDialog-CWvjxbog.js} +1207 -1185
  4. package/dist/SplitCellDialog-Dpp-FPQ6.cjs +15 -0
  5. package/dist/components/AnonymizationRectsOverlay.vue.d.ts +20 -0
  6. package/dist/components/AutocompleteCaretOverlay.vue.d.ts +4 -0
  7. package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +11 -0
  8. package/dist/components/CommentMarginMarkers.vue.d.ts +16 -0
  9. package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +8 -0
  10. package/dist/components/DecorationLayer.vue.d.ts +12 -0
  11. package/dist/components/DocumentName.vue.d.ts +13 -0
  12. package/dist/components/DocumentOutline.vue.d.ts +28 -0
  13. package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +67 -0
  14. package/dist/components/DocxEditor/DocxEditorMenuBar.vue.d.ts +39 -0
  15. package/dist/components/DocxEditor/DocxEditorOverlays.vue.d.ts +42 -0
  16. package/dist/components/DocxEditor/types.d.ts +18 -2
  17. package/dist/components/DocxEditor.vue.d.ts +61 -0
  18. package/dist/components/EditingModeDropdown.vue.d.ts +11 -0
  19. package/dist/components/EditorToolbar.vue.d.ts +30 -0
  20. package/dist/components/FormattingBar.vue.d.ts +20 -0
  21. package/dist/components/HeaderFooterSelectionOverlay.vue.d.ts +12 -0
  22. package/dist/components/ImageContextMenu.vue.d.ts +24 -0
  23. package/dist/components/ImageSelectionOverlay.vue.d.ts +21 -0
  24. package/dist/components/InlineHeaderFooterEditor.vue.d.ts +15 -0
  25. package/dist/components/MenuBar.vue.d.ts +18 -0
  26. package/dist/components/PageIndicator.vue.d.ts +8 -0
  27. package/dist/components/PassageHighlightOverlay.vue.d.ts +16 -0
  28. package/dist/components/PrintButton.vue.d.ts +16 -0
  29. package/dist/components/ReviewControls.vue.d.ts +17 -0
  30. package/dist/components/TemplateDirectivesOverlay.vue.d.ts +15 -0
  31. package/dist/components/TextContextMenu.vue.d.ts +46 -0
  32. package/dist/components/TitleBar.vue.d.ts +17 -0
  33. package/dist/components/Toolbar.vue.d.ts +139 -0
  34. package/dist/components/UnifiedSidebar.vue.d.ts +55 -0
  35. package/dist/components/dialogs/FindReplaceDialog.vue.d.ts +12 -0
  36. package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +15 -0
  37. package/dist/components/dialogs/HyperlinkDialog.vue.d.ts +30 -0
  38. package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +29 -0
  39. package/dist/components/dialogs/ImagePropertiesDialog.vue.d.ts +13 -0
  40. package/dist/components/dialogs/InsertImageDialog.vue.d.ts +21 -0
  41. package/dist/components/dialogs/InsertSymbolDialog.vue.d.ts +12 -0
  42. package/dist/components/dialogs/InsertTableDialog.vue.d.ts +22 -0
  43. package/dist/components/dialogs/PageSetupDialog.vue.d.ts +14 -0
  44. package/dist/components/dialogs/PasteSpecialDialog.vue.d.ts +16 -0
  45. package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +12 -0
  46. package/dist/components/dialogs/SplitCellDialog.vue.d.ts +22 -0
  47. package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +15 -0
  48. package/dist/components/dialogs/WatermarkDialog.vue.d.ts +14 -0
  49. package/dist/components/dialogs/index.d.ts +13 -13
  50. package/dist/components/sidebar/AddCommentCard.vue.d.ts +9 -0
  51. package/dist/components/sidebar/Avatar.vue.d.ts +10 -0
  52. package/dist/components/sidebar/CommentCard.vue.d.ts +21 -0
  53. package/dist/components/sidebar/ReplyInput.vue.d.ts +7 -0
  54. package/dist/components/sidebar/ReplyThread.vue.d.ts +8 -0
  55. package/dist/components/sidebar/ResolvedCommentMarker.vue.d.ts +11 -0
  56. package/dist/components/sidebar/TrackedChangeCard.vue.d.ts +20 -0
  57. package/dist/components/ui/AlignmentButtons.vue.d.ts +15 -0
  58. package/dist/components/ui/Button.vue.d.ts +30 -0
  59. package/dist/components/ui/Checkbox.vue.d.ts +11 -0
  60. package/dist/components/ui/ColorPicker.vue.d.ts +30 -0
  61. package/dist/components/ui/DatePickerPopover.vue.d.ts +13 -0
  62. package/dist/components/ui/Dialog.vue.d.ts +28 -0
  63. package/dist/components/ui/FontPicker.vue.d.ts +21 -0
  64. package/dist/components/ui/FontSizePicker.vue.d.ts +27 -0
  65. package/dist/components/ui/HorizontalRuler.vue.d.ts +39 -0
  66. package/dist/components/ui/HyperlinkPopup.vue.d.ts +21 -0
  67. package/dist/components/ui/IconGridDropdown.vue.d.ts +32 -0
  68. package/dist/components/ui/ImageTransformDropdown.vue.d.ts +11 -0
  69. package/dist/components/ui/ImageWrapDropdown.vue.d.ts +15 -0
  70. package/dist/components/ui/Input.vue.d.ts +17 -0
  71. package/dist/components/ui/LineSpacingPicker.vue.d.ts +20 -0
  72. package/dist/components/ui/ListButtons.vue.d.ts +30 -0
  73. package/dist/components/ui/MaterialSymbol.vue.d.ts +13 -0
  74. package/dist/components/ui/MenuDropdown.vue.d.ts +42 -0
  75. package/dist/components/ui/OutlineRail.vue.d.ts +19 -0
  76. package/dist/components/ui/Popover.vue.d.ts +40 -0
  77. package/dist/components/ui/Select.vue.d.ts +15 -0
  78. package/dist/components/ui/StylePicker.vue.d.ts +16 -0
  79. package/dist/components/ui/TableBorderColorPicker.vue.d.ts +14 -0
  80. package/dist/components/ui/TableBorderPicker.vue.d.ts +11 -0
  81. package/dist/components/ui/TableBorderWidthPicker.vue.d.ts +10 -0
  82. package/dist/components/ui/TableCellFillPicker.vue.d.ts +14 -0
  83. package/dist/components/ui/TableGridInline.vue.d.ts +14 -0
  84. package/dist/components/ui/TableGridPicker.vue.d.ts +18 -0
  85. package/dist/components/ui/TableMoreDropdown.vue.d.ts +51 -0
  86. package/dist/components/ui/TableStyleGallery.vue.d.ts +10 -0
  87. package/dist/components/ui/TableToolbar.vue.d.ts +61 -0
  88. package/dist/components/ui/VerticalRuler.vue.d.ts +20 -0
  89. package/dist/components/ui/ZoomControl.vue.d.ts +12 -0
  90. package/dist/components/ui/icon-paths.json.d.ts +276 -0
  91. package/dist/composables/useDocxEditor.d.ts +2 -0
  92. package/dist/composables/useDocxEditorRefApi.d.ts +5 -0
  93. package/dist/composables/useFindReplace.d.ts +38 -16
  94. package/dist/composables.cjs +2 -2
  95. package/dist/composables.js +44 -44
  96. package/dist/dialogs.cjs +1 -1
  97. package/dist/dialogs.js +2 -5
  98. package/dist/folio-vue.css +1 -1
  99. package/dist/index.cjs +1 -1
  100. package/dist/index.d.ts +3 -0
  101. package/dist/index.js +1584 -1518
  102. package/dist/ui.cjs +1 -1
  103. package/dist/ui.js +2 -2
  104. package/dist/useZoom-C_sQUu4b.js +1010 -0
  105. package/dist/useZoom-CbH76z8x.cjs +1 -0
  106. package/package.json +13 -2
  107. package/dist/ListButtons-DIWR-Q8d.cjs +0 -4
  108. package/dist/SplitCellDialog-B_z6ynxm.cjs +0 -15
  109. package/dist/useFindReplace-CL8Rbc3y.js +0 -59
  110. package/dist/useFindReplace-ZCrdvwEk.cjs +0 -1
  111. package/dist/useZoom-BA92aWwm.js +0 -884
  112. package/dist/useZoom-Bv8t7dYu.cjs +0 -1
@@ -1,18 +1,18 @@
1
- import { t as e } from "./useFindReplace-CL8Rbc3y.js";
2
- import { Fragment as t, Teleport as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, isRef as f, mergeProps as p, nextTick as m, normalizeClass as h, normalizeStyle as g, onBeforeUnmount as _, onMounted as v, openBlock as y, provide as b, reactive as x, ref as S, renderList as C, renderSlot as w, toDisplayString as T, toRef as E, toValue as D, unref as O, vModelCheckbox as k, vModelRadio as A, vModelSelect as j, vModelText as M, watch as N, withCtx as P, withDirectives as F, withKeys as I, withModifiers as L } from "vue";
3
- import { isAllowedExternalWatermarkImageUrl as R } from "@stll/folio-core/watermark";
4
- import { getFolioMessages as z } from "@stll/folio-core/i18n/messages";
1
+ import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, isRef as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, provide as y, reactive as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, toRef as T, toValue as E, unref as D, vModelCheckbox as O, vModelRadio as k, vModelSelect as A, vModelText as j, watch as M, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
2
+ import { isAllowedExternalWatermarkImageUrl as L } from "@stll/folio-core/watermark";
3
+ import { getFolioMessages as R } from "@stll/folio-core/i18n/messages";
5
4
  import { generateThemeTintShadeMatrix as ee, resolveColor as te, resolveColorToHex as ne, resolveHighlightColor as re } from "@stll/folio-core/utils/colorResolver";
6
- import { SYMBOL_CATEGORIES as ie, filterSymbols as ae } from "@stll/folio-core/symbols";
5
+ import { sliceText as ie } from "@stll/folio-core/utils/sliceText";
6
+ import { SYMBOL_CATEGORIES as ae, filterSymbols as z } from "@stll/folio-core/symbols";
7
7
  import { TWIPS_PER_INCH as B } from "@stll/folio-core/utils/units";
8
- import { TABLE_PROPERTY_JUSTIFICATIONS as V, toTablePropertyJustification as oe } from "@stll/folio-core/utils/tableOperations";
9
- import { cssBorderStyle as se } from "@stll/folio-core/utils/borderCss";
8
+ import { TABLE_PROPERTY_JUSTIFICATIONS as V, toTablePropertyJustification as H } from "@stll/folio-core/utils/tableOperations";
9
+ import { cssBorderStyle as oe } from "@stll/folio-core/utils/borderCss";
10
10
  //#region \0rolldown/runtime.js
11
- var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), H = (e, t) => {
11
+ var se = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), U = (e, t) => {
12
12
  let n = e.__vccOpts || e;
13
13
  for (let [e, r] of t) n[e] = r;
14
14
  return n;
15
- }, U = {
15
+ }, W = {
16
16
  undo: ["M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"],
17
17
  redo: ["M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z"],
18
18
  print: ["M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z"],
@@ -112,7 +112,7 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
112
112
  format_textdirection_l_to_r: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z"],
113
113
  format_textdirection_r_to_l: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z"],
114
114
  "agent-sparkle": ["m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z"]
115
- }, W = ["width", "height"], le = ["d"], G = /* @__PURE__ */ u({
115
+ }, G = ["width", "height"], ce = ["d"], K = /* @__PURE__ */ l({
116
116
  __name: "MaterialSymbol",
117
117
  props: {
118
118
  name: {},
@@ -120,74 +120,74 @@ var ce = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null),
120
120
  className: { default: "" },
121
121
  style: {}
122
122
  },
123
- setup(e) {
124
- let n = e, i = U, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
125
- return (n, r) => a.value ? (y(), o("svg", {
123
+ setup(t) {
124
+ let r = t, i = W, o = n(() => i[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
125
+ return (n, r) => o.value ? (v(), a("svg", {
126
126
  key: 0,
127
127
  xmlns: "http://www.w3.org/2000/svg",
128
- width: e.size,
129
- height: e.size,
128
+ width: t.size,
129
+ height: t.size,
130
130
  viewBox: "0 -960 960 960",
131
131
  fill: "currentColor",
132
- class: h(e.className),
133
- style: g({
132
+ class: m(t.className),
133
+ style: h({
134
134
  display: "inline-flex",
135
135
  flexShrink: 0,
136
- ...e.style ?? {}
136
+ ...t.style ?? {}
137
137
  }),
138
138
  "aria-hidden": "true"
139
- }, [(y(!0), o(t, null, C(a.value, (e, t) => (y(), o("path", {
139
+ }, [(v(!0), a(e, null, S(o.value, (e, t) => (v(), a("path", {
140
140
  key: t,
141
141
  d: e
142
- }, null, 8, le))), 128))], 14, W)) : (y(), o("span", {
142
+ }, null, 8, ce))), 128))], 14, G)) : (v(), a("span", {
143
143
  key: 1,
144
- class: h(e.className),
145
- style: g({
146
- fontSize: `${e.size}px`,
147
- width: `${e.size}px`,
148
- height: `${e.size}px`,
144
+ class: m(t.className),
145
+ style: h({
146
+ fontSize: `${t.size}px`,
147
+ width: `${t.size}px`,
148
+ height: `${t.size}px`,
149
149
  display: "inline-flex",
150
- ...e.style ?? {}
150
+ ...t.style ?? {}
151
151
  })
152
- }, T(e.name), 7));
152
+ }, w(t.name), 7));
153
153
  }
154
154
  });
155
155
  //#endregion
156
156
  //#region ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-094408a2425cf0c9/node_modules/@formatjs/fast-memoize/index.js
157
- function K(e, t) {
158
- let n = t && t.cache ? t.cache : ye, r = t && t.serializer ? t.serializer : _e;
159
- return (t && t.strategy ? t.strategy : me)(e, {
157
+ function q(e, t) {
158
+ let n = t && t.cache ? t.cache : ve, r = t && t.serializer ? t.serializer : ge;
159
+ return (t && t.strategy ? t.strategy : pe)(e, {
160
160
  cache: n,
161
161
  serializer: r
162
162
  });
163
163
  }
164
- function ue(e) {
164
+ function le(e) {
165
165
  return e == null || typeof e == "number" || typeof e == "boolean";
166
166
  }
167
- function de(e, t, n, r) {
168
- let i = ue(r) ? r : n(r), a = t.get(i);
167
+ function ue(e, t, n, r) {
168
+ let i = le(r) ? r : n(r), a = t.get(i);
169
169
  return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
170
170
  }
171
- function fe(e, t, n) {
171
+ function de(e, t, n) {
172
172
  let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
173
173
  return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
174
174
  }
175
- function pe(e, t, n, r, i) {
175
+ function fe(e, t, n, r, i) {
176
176
  return n.bind(t, e, r, i);
177
177
  }
178
+ function pe(e, t) {
179
+ let n = e.length === 1 ? ue : de;
180
+ return fe(e, this, n, t.cache.create(), t.serializer);
181
+ }
178
182
  function me(e, t) {
179
- let n = e.length === 1 ? de : fe;
180
- return pe(e, this, n, t.cache.create(), t.serializer);
183
+ return fe(e, this, de, t.cache.create(), t.serializer);
181
184
  }
182
185
  function he(e, t) {
183
- return pe(e, this, fe, t.cache.create(), t.serializer);
184
- }
185
- function ge(e, t) {
186
- return pe(e, this, de, t.cache.create(), t.serializer);
186
+ return fe(e, this, ue, t.cache.create(), t.serializer);
187
187
  }
188
- var _e = function() {
188
+ var ge = function() {
189
189
  return JSON.stringify(arguments);
190
- }, ve = class {
190
+ }, _e = class {
191
191
  constructor() {
192
192
  this.cache = Object.create(null);
193
193
  }
@@ -197,20 +197,20 @@ var _e = function() {
197
197
  set(e, t) {
198
198
  this.cache[e] = t;
199
199
  }
200
- }, ye = { create: function() {
201
- return new ve();
202
- } }, be = {
203
- variadic: he,
204
- monadic: ge
205
- }, q = class extends Error {
200
+ }, ve = { create: function() {
201
+ return new _e();
202
+ } }, ye = {
203
+ variadic: me,
204
+ monadic: he
205
+ }, J = class extends Error {
206
206
  constructor(e, t) {
207
207
  let n = e;
208
208
  t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
209
209
  }
210
- }, J = function(e) {
210
+ }, Y = function(e) {
211
211
  return e.MISSING_MESSAGE = "MISSING_MESSAGE", e.MISSING_FORMAT = "MISSING_FORMAT", e.ENVIRONMENT_FALLBACK = "ENVIRONMENT_FALLBACK", e.INSUFFICIENT_PATH = "INSUFFICIENT_PATH", e.INVALID_MESSAGE = "INVALID_MESSAGE", e.INVALID_KEY = "INVALID_KEY", e.FORMATTING_ERROR = "FORMATTING_ERROR", e;
212
- }(J || {});
213
- function xe() {
212
+ }(Y || {});
213
+ function be() {
214
214
  return {
215
215
  dateTime: {},
216
216
  number: {},
@@ -221,34 +221,34 @@ function xe() {
221
221
  displayNames: {}
222
222
  };
223
223
  }
224
- function Se(e, t) {
225
- return K(e, {
224
+ function xe(e, t) {
225
+ return q(e, {
226
226
  cache: (n = t, { create: () => ({
227
227
  get: (e) => n[e],
228
228
  set(e, t) {
229
229
  n[e] = t;
230
230
  }
231
231
  }) }),
232
- strategy: be.variadic
232
+ strategy: ye.variadic
233
233
  });
234
234
  var n;
235
235
  }
236
- function Y(e, t) {
237
- return Se(((...t) => new e(...t)), t);
236
+ function Se(e, t) {
237
+ return xe(((...t) => new e(...t)), t);
238
238
  }
239
239
  function Ce(e) {
240
240
  return {
241
- getDateTimeFormat: Y(Intl.DateTimeFormat, e.dateTime),
242
- getNumberFormat: Y(Intl.NumberFormat, e.number),
243
- getPluralRules: Y(Intl.PluralRules, e.pluralRules),
244
- getRelativeTimeFormat: Y(Intl.RelativeTimeFormat, e.relativeTime),
245
- getListFormat: Y(Intl.ListFormat, e.list),
246
- getDisplayNames: Y(Intl.DisplayNames, e.displayNames)
241
+ getDateTimeFormat: Se(Intl.DateTimeFormat, e.dateTime),
242
+ getNumberFormat: Se(Intl.NumberFormat, e.number),
243
+ getPluralRules: Se(Intl.PluralRules, e.pluralRules),
244
+ getRelativeTimeFormat: Se(Intl.RelativeTimeFormat, e.relativeTime),
245
+ getListFormat: Se(Intl.ListFormat, e.list),
246
+ getDisplayNames: Se(Intl.DisplayNames, e.displayNames)
247
247
  };
248
248
  }
249
249
  //#endregion
250
250
  //#region ../../../../../.bun/install/cache/links/react@19.2.8-cd643cd10e1e2a1c/node_modules/react/cjs/react.production.js
251
- var we = /* @__PURE__ */ ce(((e) => {
251
+ var we = /* @__PURE__ */ se(((e) => {
252
252
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
253
253
  function m(e) {
254
254
  return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -534,7 +534,7 @@ var we = /* @__PURE__ */ ce(((e) => {
534
534
  }, e.useTransition = function() {
535
535
  return w.H.useTransition();
536
536
  }, e.version = "19.2.8";
537
- })), Te = /* @__PURE__ */ ce(((e, t) => {
537
+ })), Te = /* @__PURE__ */ se(((e, t) => {
538
538
  process.env.NODE_ENV !== "production" && (function() {
539
539
  function n(e, t) {
540
540
  Object.defineProperty(a.prototype, e, { get: function() {
@@ -542,19 +542,19 @@ var we = /* @__PURE__ */ ce(((e) => {
542
542
  } });
543
543
  }
544
544
  function r(e) {
545
- return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);
545
+ return typeof e != "object" || !e ? null : (e = H && e[H] || e["@@iterator"], typeof e == "function" ? e : null);
546
546
  }
547
547
  function i(e, t) {
548
548
  e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
549
549
  var n = e + "." + t;
550
- se[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), se[n] = !0);
550
+ oe[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), oe[n] = !0);
551
551
  }
552
552
  function a(e, t, n) {
553
- this.props = e, this.context = t, this.refs = U, this.updater = n || ce;
553
+ this.props = e, this.context = t, this.refs = W, this.updater = n || se;
554
554
  }
555
555
  function o() {}
556
556
  function s(e, t, n) {
557
- this.props = e, this.context = t, this.refs = U, this.updater = n || ce;
557
+ this.props = e, this.context = t, this.refs = W, this.updater = n || se;
558
558
  }
559
559
  function c() {}
560
560
  function l(e) {
@@ -575,24 +575,24 @@ var we = /* @__PURE__ */ ce(((e) => {
575
575
  }
576
576
  function d(e) {
577
577
  if (e == null) return null;
578
- if (typeof e == "function") return e.$$typeof === G ? null : e.displayName || e.name || null;
578
+ if (typeof e == "function") return e.$$typeof === K ? null : e.displayName || e.name || null;
579
579
  if (typeof e == "string") return e;
580
580
  switch (e) {
581
581
  case L: return "Fragment";
582
- case z: return "Profiler";
582
+ case ee: return "Profiler";
583
583
  case R: return "StrictMode";
584
- case re: return "Suspense";
585
- case ie: return "SuspenseList";
584
+ case ie: return "Suspense";
585
+ case ae: return "SuspenseList";
586
586
  case V: return "Activity";
587
587
  }
588
588
  if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
589
589
  case I: return "Portal";
590
- case te: return e.displayName || "Context";
591
- case ee: return (e._context.displayName || "Context") + ".Consumer";
592
- case ne:
590
+ case ne: return e.displayName || "Context";
591
+ case te: return (e._context.displayName || "Context") + ".Consumer";
592
+ case re:
593
593
  var t = e.render;
594
594
  return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
595
- case ae: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
595
+ case z: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
596
596
  case B:
597
597
  t = e._payload, e = e._init;
598
598
  try {
@@ -612,14 +612,14 @@ var we = /* @__PURE__ */ ce(((e) => {
612
612
  }
613
613
  }
614
614
  function p() {
615
- var e = K.A;
615
+ var e = q.A;
616
616
  return e === null ? null : e.getOwner();
617
617
  }
618
618
  function m() {
619
619
  return Error("react-stack-top-frame");
620
620
  }
621
621
  function h(e) {
622
- if (ue.call(e, "key")) {
622
+ if (le.call(e, "key")) {
623
623
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
624
624
  if (t && t.isReactWarning) return !1;
625
625
  }
@@ -627,7 +627,7 @@ var we = /* @__PURE__ */ ce(((e) => {
627
627
  }
628
628
  function g(e, t) {
629
629
  function n() {
630
- fe || (fe = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
630
+ de || (de = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
631
631
  }
632
632
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
633
633
  get: n,
@@ -636,7 +636,7 @@ var we = /* @__PURE__ */ ce(((e) => {
636
636
  }
637
637
  function _() {
638
638
  var e = d(this.type);
639
- return me[e] || (me[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
639
+ return pe[e] || (pe[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
640
640
  }
641
641
  function v(e, t, n, r, i, a) {
642
642
  var o = n.ref;
@@ -732,12 +732,12 @@ var we = /* @__PURE__ */ ce(((e) => {
732
732
  if (s) {
733
733
  s = e, a = a(s);
734
734
  var c = i === "" ? "." + C(s, 0) : i;
735
- return le(a) ? (n = "", c != null && (n = c.replace(ve, "$&/") + "/"), T(a, t, n, "", function(e) {
735
+ return ce(a) ? (n = "", c != null && (n = c.replace(_e, "$&/") + "/"), T(a, t, n, "", function(e) {
736
736
  return e;
737
- })) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(ve, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
737
+ })) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(_e, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
738
738
  }
739
- if (s = 0, c = i === "" ? "." : i + ":", le(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
740
- else if (l = r(e), typeof l == "function") for (l === e.entries && (_e || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), _e = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
739
+ if (s = 0, c = i === "" ? "." : i + ":", ce(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
740
+ else if (l = r(e), typeof l == "function") for (l === e.entries && (ge || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ge = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
741
741
  else if (o === "object") {
742
742
  if (typeof e.then == "function") return T(w(e), t, n, i, a);
743
743
  throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
@@ -779,56 +779,56 @@ var we = /* @__PURE__ */ ce(((e) => {
779
779
  throw e._result;
780
780
  }
781
781
  function O() {
782
- var e = K.H;
782
+ var e = q.H;
783
783
  return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
784
784
  }
785
785
  function k() {
786
- K.asyncTransitions--;
786
+ q.asyncTransitions--;
787
787
  }
788
788
  function A(e) {
789
- if (q === null) try {
789
+ if (J === null) try {
790
790
  var n = ("require" + Math.random()).slice(0, 7);
791
- q = (t && t[n]).call(t, "timers").setImmediate;
791
+ J = (t && t[n]).call(t, "timers").setImmediate;
792
792
  } catch {
793
- q = function(e) {
794
- !1 === be && (be = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
793
+ J = function(e) {
794
+ !1 === ye && (ye = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
795
795
  var t = new MessageChannel();
796
796
  t.port1.onmessage = e, t.port2.postMessage(void 0);
797
797
  };
798
798
  }
799
- return q(e);
799
+ return J(e);
800
800
  }
801
801
  function j(e) {
802
802
  return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
803
803
  }
804
804
  function M(e, t) {
805
- t !== J - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), J = t;
805
+ t !== Y - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Y = t;
806
806
  }
807
807
  function N(e, t, n) {
808
- var r = K.actQueue;
808
+ var r = q.actQueue;
809
809
  if (r !== null) if (r.length !== 0) try {
810
810
  P(r), A(function() {
811
811
  return N(e, t, n);
812
812
  });
813
813
  return;
814
814
  } catch (e) {
815
- K.thrownErrors.push(e);
815
+ q.thrownErrors.push(e);
816
816
  }
817
- else K.actQueue = null;
818
- 0 < K.thrownErrors.length ? (r = j(K.thrownErrors), K.thrownErrors.length = 0, n(r)) : t(e);
817
+ else q.actQueue = null;
818
+ 0 < q.thrownErrors.length ? (r = j(q.thrownErrors), q.thrownErrors.length = 0, n(r)) : t(e);
819
819
  }
820
820
  function P(e) {
821
- if (!Se) {
822
- Se = !0;
821
+ if (!xe) {
822
+ xe = !0;
823
823
  var t = 0;
824
824
  try {
825
825
  for (; t < e.length; t++) {
826
826
  var n = e[t];
827
827
  do {
828
- K.didUsePromise = !1;
828
+ q.didUsePromise = !1;
829
829
  var r = n(!1);
830
830
  if (r !== null) {
831
- if (K.didUsePromise) {
831
+ if (q.didUsePromise) {
832
832
  e[t] = n, e.splice(0, t);
833
833
  return;
834
834
  }
@@ -838,14 +838,14 @@ var we = /* @__PURE__ */ ce(((e) => {
838
838
  }
839
839
  e.length = 0;
840
840
  } catch (n) {
841
- e.splice(0, t + 1), K.thrownErrors.push(n);
841
+ e.splice(0, t + 1), q.thrownErrors.push(n);
842
842
  } finally {
843
- Se = !1;
843
+ xe = !1;
844
844
  }
845
845
  }
846
846
  }
847
847
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
848
- var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), te = Symbol.for("react.context"), ne = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ie = Symbol.for("react.suspense_list"), ae = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), oe = Symbol.iterator, se = {}, ce = {
848
+ var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), ee = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), ne = Symbol.for("react.context"), re = Symbol.for("react.forward_ref"), ie = Symbol.for("react.suspense"), ae = Symbol.for("react.suspense_list"), z = Symbol.for("react.memo"), B = Symbol.for("react.lazy"), V = Symbol.for("react.activity"), H = Symbol.iterator, oe = {}, se = {
849
849
  isMounted: function() {
850
850
  return !1;
851
851
  },
@@ -858,20 +858,20 @@ var we = /* @__PURE__ */ ce(((e) => {
858
858
  enqueueSetState: function(e) {
859
859
  i(e, "setState");
860
860
  }
861
- }, H = Object.assign, U = {};
862
- Object.freeze(U), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
861
+ }, U = Object.assign, W = {};
862
+ Object.freeze(W), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
863
863
  if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
864
864
  this.updater.enqueueSetState(this, e, t, "setState");
865
865
  }, a.prototype.forceUpdate = function(e) {
866
866
  this.updater.enqueueForceUpdate(this, e, "forceUpdate");
867
867
  };
868
- var W = {
868
+ var G = {
869
869
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
870
870
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
871
871
  };
872
- for (Ce in W) W.hasOwnProperty(Ce) && n(Ce, W[Ce]);
873
- o.prototype = a.prototype, W = s.prototype = new o(), W.constructor = s, H(W, a.prototype), W.isPureReactComponent = !0;
874
- var le = Array.isArray, G = Symbol.for("react.client.reference"), K = {
872
+ for (Ce in G) G.hasOwnProperty(Ce) && n(Ce, G[Ce]);
873
+ o.prototype = a.prototype, G = s.prototype = new o(), G.constructor = s, U(G, a.prototype), G.isPureReactComponent = !0;
874
+ var ce = Array.isArray, K = Symbol.for("react.client.reference"), q = {
875
875
  H: null,
876
876
  A: null,
877
877
  T: null,
@@ -884,13 +884,13 @@ var we = /* @__PURE__ */ ce(((e) => {
884
884
  thrownErrors: [],
885
885
  getCurrentStack: null,
886
886
  recentlyCreatedOwnerStacks: 0
887
- }, ue = Object.prototype.hasOwnProperty, de = console.createTask ? console.createTask : function() {
887
+ }, le = Object.prototype.hasOwnProperty, ue = console.createTask ? console.createTask : function() {
888
888
  return null;
889
889
  };
890
- W = { react_stack_bottom_frame: function(e) {
890
+ G = { react_stack_bottom_frame: function(e) {
891
891
  return e();
892
892
  } };
893
- var fe, pe, me = {}, he = W.react_stack_bottom_frame.bind(W, m)(), ge = de(f(m)), _e = !1, ve = /\/+/g, ye = typeof reportError == "function" ? reportError : function(e) {
893
+ var de, fe, pe = {}, me = G.react_stack_bottom_frame.bind(G, m)(), he = ue(f(m)), ge = !1, _e = /\/+/g, ve = typeof reportError == "function" ? reportError : function(e) {
894
894
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
895
895
  var t = new window.ErrorEvent("error", {
896
896
  bubbles: !0,
@@ -904,12 +904,12 @@ var we = /* @__PURE__ */ ce(((e) => {
904
904
  return;
905
905
  }
906
906
  console.error(e);
907
- }, be = !1, q = null, J = 0, xe = !1, Se = !1, Y = typeof queueMicrotask == "function" ? function(e) {
907
+ }, ye = !1, J = null, Y = 0, be = !1, xe = !1, Se = typeof queueMicrotask == "function" ? function(e) {
908
908
  queueMicrotask(function() {
909
909
  return queueMicrotask(e);
910
910
  });
911
911
  } : A;
912
- W = Object.freeze({
912
+ G = Object.freeze({
913
913
  __proto__: null,
914
914
  c: function(e) {
915
915
  return O().useMemoCache(e);
@@ -938,20 +938,20 @@ var we = /* @__PURE__ */ ce(((e) => {
938
938
  return e;
939
939
  }
940
940
  };
941
- e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = z, e.PureComponent = s, e.StrictMode = R, e.Suspense = re, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = K, e.__COMPILER_RUNTIME = W, e.act = function(e) {
942
- var t = K.actQueue, n = J;
943
- J++;
944
- var r = K.actQueue = t === null ? [] : t, i = !1;
941
+ e.Activity = V, e.Children = Ce, e.Component = a, e.Fragment = L, e.Profiler = ee, e.PureComponent = s, e.StrictMode = R, e.Suspense = ie, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = q, e.__COMPILER_RUNTIME = G, e.act = function(e) {
942
+ var t = q.actQueue, n = Y;
943
+ Y++;
944
+ var r = q.actQueue = t === null ? [] : t, i = !1;
945
945
  try {
946
946
  var a = e();
947
947
  } catch (e) {
948
- K.thrownErrors.push(e);
948
+ q.thrownErrors.push(e);
949
949
  }
950
- if (0 < K.thrownErrors.length) throw M(t, n), e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
950
+ if (0 < q.thrownErrors.length) throw M(t, n), e = j(q.thrownErrors), q.thrownErrors.length = 0, e;
951
951
  if (typeof a == "object" && a && typeof a.then == "function") {
952
952
  var o = a;
953
- return Y(function() {
954
- i || xe || (xe = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
953
+ return Se(function() {
954
+ i || be || (be = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
955
955
  }), { then: function(e, a) {
956
956
  i = !0, o.then(function(i) {
957
957
  if (M(t, n), n === 0) {
@@ -960,24 +960,24 @@ var we = /* @__PURE__ */ ce(((e) => {
960
960
  return N(i, e, a);
961
961
  });
962
962
  } catch (e) {
963
- K.thrownErrors.push(e);
963
+ q.thrownErrors.push(e);
964
964
  }
965
- if (0 < K.thrownErrors.length) {
966
- var o = j(K.thrownErrors);
967
- K.thrownErrors.length = 0, a(o);
965
+ if (0 < q.thrownErrors.length) {
966
+ var o = j(q.thrownErrors);
967
+ q.thrownErrors.length = 0, a(o);
968
968
  }
969
969
  } else e(i);
970
970
  }, function(e) {
971
- M(t, n), 0 < K.thrownErrors.length ? (e = j(K.thrownErrors), K.thrownErrors.length = 0, a(e)) : a(e);
971
+ M(t, n), 0 < q.thrownErrors.length ? (e = j(q.thrownErrors), q.thrownErrors.length = 0, a(e)) : a(e);
972
972
  });
973
973
  } };
974
974
  }
975
975
  var s = a;
976
- if (M(t, n), n === 0 && (P(r), r.length !== 0 && Y(function() {
977
- i || xe || (xe = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
978
- }), K.actQueue = null), 0 < K.thrownErrors.length) throw e = j(K.thrownErrors), K.thrownErrors.length = 0, e;
976
+ if (M(t, n), n === 0 && (P(r), r.length !== 0 && Se(function() {
977
+ i || be || (be = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
978
+ }), q.actQueue = null), 0 < q.thrownErrors.length) throw e = j(q.thrownErrors), q.thrownErrors.length = 0, e;
979
979
  return { then: function(e, t) {
980
- i = !0, n === 0 ? (K.actQueue = r, A(function() {
980
+ i = !0, n === 0 ? (q.actQueue = r, A(function() {
981
981
  return N(s, e, t);
982
982
  })) : e(s);
983
983
  } };
@@ -988,21 +988,21 @@ var we = /* @__PURE__ */ ce(((e) => {
988
988
  }, e.cacheSignal = function() {
989
989
  return null;
990
990
  }, e.captureOwnerStack = function() {
991
- var e = K.getCurrentStack;
991
+ var e = q.getCurrentStack;
992
992
  return e === null ? null : e();
993
993
  }, e.cloneElement = function(e, t, n) {
994
994
  if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
995
- var r = H({}, e.props), i = e.key, a = e._owner;
995
+ var r = U({}, e.props), i = e.key, a = e._owner;
996
996
  if (t != null) {
997
997
  var o;
998
998
  a: {
999
- if (ue.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
999
+ if (le.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
1000
1000
  o = !1;
1001
1001
  break a;
1002
1002
  }
1003
1003
  o = t.ref !== void 0;
1004
1004
  }
1005
- for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !ue.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
1005
+ for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !le.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
1006
1006
  }
1007
1007
  var s = arguments.length - 2;
1008
1008
  if (s === 1) r.children = n;
@@ -1015,21 +1015,21 @@ var we = /* @__PURE__ */ ce(((e) => {
1015
1015
  return r;
1016
1016
  }, e.createContext = function(e) {
1017
1017
  return e = {
1018
- $$typeof: te,
1018
+ $$typeof: ne,
1019
1019
  _currentValue: e,
1020
1020
  _currentValue2: e,
1021
1021
  _threadCount: 0,
1022
1022
  Provider: null,
1023
1023
  Consumer: null
1024
1024
  }, e.Provider = e, e.Consumer = {
1025
- $$typeof: ee,
1025
+ $$typeof: te,
1026
1026
  _context: e
1027
1027
  }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1028
1028
  }, e.createElement = function(e, t, n) {
1029
1029
  for (var r = 2; r < arguments.length; r++) b(arguments[r]);
1030
1030
  r = {};
1031
1031
  var i = null;
1032
- if (t != null) for (c in pe || !("__self" in t) || "key" in t || (pe = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) ue.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
1032
+ if (t != null) for (c in fe || !("__self" in t) || "key" in t || (fe = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) le.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
1033
1033
  var a = arguments.length - 2;
1034
1034
  if (a === 1) r.children = n;
1035
1035
  else if (1 < a) {
@@ -1038,15 +1038,15 @@ var we = /* @__PURE__ */ ce(((e) => {
1038
1038
  }
1039
1039
  if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
1040
1040
  i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
1041
- var c = 1e4 > K.recentlyCreatedOwnerStacks++;
1042
- return v(e, i, r, p(), c ? Error("react-stack-top-frame") : he, c ? de(f(e)) : ge);
1041
+ var c = 1e4 > q.recentlyCreatedOwnerStacks++;
1042
+ return v(e, i, r, p(), c ? Error("react-stack-top-frame") : me, c ? ue(f(e)) : he);
1043
1043
  }, e.createRef = function() {
1044
1044
  var e = { current: null };
1045
1045
  return Object.seal(e), e;
1046
1046
  }, e.forwardRef = function(e) {
1047
- e != null && e.$$typeof === ae ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
1047
+ e != null && e.$$typeof === z ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
1048
1048
  var t = {
1049
- $$typeof: ne,
1049
+ $$typeof: re,
1050
1050
  render: e
1051
1051
  }, n;
1052
1052
  return Object.defineProperty(t, "displayName", {
@@ -1080,7 +1080,7 @@ var we = /* @__PURE__ */ ce(((e) => {
1080
1080
  return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
1081
1081
  }, e.memo = function(e, t) {
1082
1082
  e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
1083
- $$typeof: ae,
1083
+ $$typeof: z,
1084
1084
  type: e,
1085
1085
  compare: t === void 0 ? null : t
1086
1086
  };
@@ -1096,15 +1096,15 @@ var we = /* @__PURE__ */ ce(((e) => {
1096
1096
  }
1097
1097
  }), t;
1098
1098
  }, e.startTransition = function(e) {
1099
- var t = K.T, n = {};
1100
- n._updatedFibers = /* @__PURE__ */ new Set(), K.T = n;
1099
+ var t = q.T, n = {};
1100
+ n._updatedFibers = /* @__PURE__ */ new Set(), q.T = n;
1101
1101
  try {
1102
- var r = e(), i = K.S;
1103
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (K.asyncTransitions++, r.then(k, k), r.then(c, ye));
1102
+ var r = e(), i = q.S;
1103
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (q.asyncTransitions++, r.then(k, k), r.then(c, ve));
1104
1104
  } catch (e) {
1105
- ye(e);
1105
+ ve(e);
1106
1106
  } finally {
1107
- t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), K.T = t;
1107
+ t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), q.T = t;
1108
1108
  }
1109
1109
  }, e.unstable_useCacheRefresh = function() {
1110
1110
  return O().useCacheRefresh();
@@ -1116,7 +1116,7 @@ var we = /* @__PURE__ */ ce(((e) => {
1116
1116
  return O().useCallback(e, t);
1117
1117
  }, e.useContext = function(e) {
1118
1118
  var t = O();
1119
- return e.$$typeof === ee && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
1119
+ return e.$$typeof === te && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
1120
1120
  }, e.useDebugValue = function(e, t) {
1121
1121
  return O().useDebugValue(e, t);
1122
1122
  }, e.useDeferredValue = function(e, t) {
@@ -1149,7 +1149,7 @@ var we = /* @__PURE__ */ ce(((e) => {
1149
1149
  return O().useTransition();
1150
1150
  }, e.version = "19.2.8", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1151
1151
  })();
1152
- })), Ee = (/* @__PURE__ */ ce(((e, t) => {
1152
+ })), Ee = (/* @__PURE__ */ se(((e, t) => {
1153
1153
  process.env.NODE_ENV === "production" ? t.exports = we() : t.exports = Te();
1154
1154
  })))(), De = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1155
1155
  function Oe(e) {
@@ -3370,17 +3370,17 @@ function jt(e = {
3370
3370
  pluralRules: {}
3371
3371
  }) {
3372
3372
  return {
3373
- getNumberFormat: K((...e) => new Intl.NumberFormat(...e), {
3373
+ getNumberFormat: q((...e) => new Intl.NumberFormat(...e), {
3374
3374
  cache: At(e.number),
3375
- strategy: be.variadic
3375
+ strategy: ye.variadic
3376
3376
  }),
3377
- getDateTimeFormat: K((...e) => new Intl.DateTimeFormat(...e), {
3377
+ getDateTimeFormat: q((...e) => new Intl.DateTimeFormat(...e), {
3378
3378
  cache: At(e.dateTime),
3379
- strategy: be.variadic
3379
+ strategy: ye.variadic
3380
3380
  }),
3381
- getPluralRules: K((...e) => new Intl.PluralRules(...e), {
3381
+ getPluralRules: q((...e) => new Intl.PluralRules(...e), {
3382
3382
  cache: At(e.pluralRules),
3383
- strategy: be.variadic
3383
+ strategy: ye.variadic
3384
3384
  })
3385
3385
  };
3386
3386
  }
@@ -3481,8 +3481,8 @@ var Mt = class e {
3481
3481
  //#endregion
3482
3482
  //#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/format-message/index.js
3483
3483
  function Nt(...[e, t, n, r]) {
3484
- if (Array.isArray(t)) throw new q(J.INVALID_MESSAGE, void 0);
3485
- if (typeof t == "object") throw new q(J.INSUFFICIENT_PATH, void 0);
3484
+ if (Array.isArray(t)) throw new J(Y.INVALID_MESSAGE, void 0);
3485
+ if (typeof t == "object") throw new J(Y.INSUFFICIENT_PATH, void 0);
3486
3486
  if (typeof t == "string") {
3487
3487
  let e = function(e, t) {
3488
3488
  return t || /'[{}<#|']/.test(e) ? void 0 : e;
@@ -3491,7 +3491,7 @@ function Nt(...[e, t, n, r]) {
3491
3491
  }
3492
3492
  let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
3493
3493
  o.getMessageFormat ||= function(e, t) {
3494
- return Se(((...e) => new Mt(e[0], e[1], e[2], {
3494
+ return xe(((...e) => new Mt(e[0], e[1], e[2], {
3495
3495
  formatters: t,
3496
3496
  ...e[3]
3497
3497
  })), e.message);
@@ -3530,7 +3530,7 @@ function Nt(...[e, t, n, r]) {
3530
3530
  })
3531
3531
  } });
3532
3532
  } catch {
3533
- throw new q(J.INVALID_MESSAGE, void 0);
3533
+ throw new J(Y.INVALID_MESSAGE, void 0);
3534
3534
  }
3535
3535
  let d = u.format(n);
3536
3536
  return (0, Ee.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
@@ -3565,13 +3565,13 @@ function Rt(e) {
3565
3565
  if (!r) throw Error(n);
3566
3566
  return r;
3567
3567
  } catch (e) {
3568
- return new q(J.MISSING_MESSAGE, e.message);
3568
+ return new J(Y.MISSING_MESSAGE, e.message);
3569
3569
  }
3570
3570
  }(e.locale, e.messages, e.namespace);
3571
3571
  return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Ft, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
3572
- let l = a instanceof q;
3572
+ let l = a instanceof J;
3573
3573
  function u(e, t, n, i) {
3574
- let a = new q(t, n);
3574
+ let a = new J(t, n);
3575
3575
  return s(a), i ?? r({
3576
3576
  error: a,
3577
3577
  key: e,
@@ -3592,7 +3592,7 @@ function Rt(e) {
3592
3592
  try {
3593
3593
  g = Lt(i, e, d, o);
3594
3594
  } catch (e) {
3595
- if (!h) return u(d, J.MISSING_MESSAGE, e.message, h);
3595
+ if (!h) return u(d, Y.MISSING_MESSAGE, e.message, h);
3596
3596
  g = h;
3597
3597
  }
3598
3598
  }
@@ -3616,12 +3616,12 @@ function Rt(e) {
3616
3616
  });
3617
3617
  } catch (e) {
3618
3618
  let t, n;
3619
- return e instanceof q ? (t = e.code, n = e.originalMessage) : (t = J.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
3619
+ return e instanceof J ? (t = e.code, n = e.originalMessage) : (t = Y.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
3620
3620
  }
3621
3621
  }
3622
3622
  function f(e, t, n, r) {
3623
3623
  let i = d(e, t, n, r);
3624
- return typeof i == "string" ? i : u(e, J.INVALID_MESSAGE, void 0);
3624
+ return typeof i == "string" ? i : u(e, Y.INVALID_MESSAGE, void 0);
3625
3625
  }
3626
3626
  return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
3627
3627
  if (l) return s(a), r({
@@ -3633,7 +3633,7 @@ function Rt(e) {
3633
3633
  try {
3634
3634
  return Lt(i, t, e, o);
3635
3635
  } catch (t) {
3636
- return u(e, J.MISSING_MESSAGE, t.message);
3636
+ return u(e, Y.MISSING_MESSAGE, t.message);
3637
3637
  }
3638
3638
  }, f.has = (e) => {
3639
3639
  if (l) return !1;
@@ -3655,7 +3655,7 @@ var Bt = 86400;
3655
3655
  7 * Bt, 365 * Bt;
3656
3656
  //#endregion
3657
3657
  //#region ../../../../../.bun/install/cache/links/use-intl@4.13.4+0f58469d5b3bd39f-107a67c20f766037/node_modules/use-intl/dist/esm/production/core.js
3658
- function Vt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n = Ft, messages: r, namespace: i, onError: a = It, ...o }) {
3658
+ function Vt({ _cache: e = be(), _formatters: t = Ce(e), getMessageFallback: n = Ft, messages: r, namespace: i, onError: a = It, ...o }) {
3659
3659
  return function({ messages: e, namespace: t, ...n }, r) {
3660
3660
  return e = e[r], t = zt(t, r), Rt({
3661
3661
  ...n,
@@ -3676,16 +3676,16 @@ function Vt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n =
3676
3676
  //#region src/i18n/index.ts
3677
3677
  var Ht = "en", Ut = (e) => Vt({
3678
3678
  locale: e,
3679
- messages: z(e),
3679
+ messages: R(e),
3680
3680
  namespace: "folio"
3681
- }), Wt = Symbol("folioTranslator"), Gt = r(() => Ut("en")), Kt = (e = "en") => {
3682
- b(Wt, r(() => Ut(D(e))));
3681
+ }), Wt = Symbol("folioTranslator"), Gt = n(() => Ut("en")), Kt = (e = "en") => {
3682
+ y(Wt, n(() => Ut(E(e))));
3683
3683
  }, Z = () => {
3684
- let e = d(Wt, Gt);
3684
+ let e = u(Wt, Gt);
3685
3685
  return { t: (t, n) => e.value(t, n) };
3686
3686
  }, qt = { install(e, t = "en") {
3687
- e.provide(Wt, r(() => Ut(D(t))));
3688
- } }, Jt = ["disabled"], Yt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Xt = /* @__PURE__ */ u({
3687
+ e.provide(Wt, n(() => Ut(E(t))));
3688
+ } }, Jt = ["disabled"], Yt = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", Xt = /* @__PURE__ */ l({
3689
3689
  __name: "Button",
3690
3690
  props: {
3691
3691
  variant: { default: "default" },
@@ -3698,7 +3698,7 @@ var Ht = "en", Ut = (e) => Vt({
3698
3698
  },
3699
3699
  emits: ["click"],
3700
3700
  setup(e) {
3701
- let t = e, n = {
3701
+ let t = e, r = {
3702
3702
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
3703
3703
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
3704
3704
  outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
@@ -3713,20 +3713,20 @@ var Ht = "en", Ut = (e) => Vt({
3713
3713
  "icon-sm": "h-7 w-7",
3714
3714
  xs: "h-7 rounded-md px-2 text-xs",
3715
3715
  "icon-xs": "h-7 w-7"
3716
- }, a = r(() => [
3716
+ }, o = n(() => [
3717
3717
  Yt,
3718
- n[t.variant],
3718
+ r[t.variant],
3719
3719
  i[t.size],
3720
3720
  t.className
3721
3721
  ].filter(Boolean).join(" "));
3722
- return (t, n) => (y(), o("button", {
3722
+ return (t, n) => (v(), a("button", {
3723
3723
  type: "button",
3724
- class: h(a.value),
3724
+ class: m(o.value),
3725
3725
  disabled: e.disabled,
3726
3726
  onClick: n[0] ||= (e) => t.$emit("click", e)
3727
- }, [w(t.$slots, "default")], 10, Jt));
3727
+ }, [C(t.$slots, "default")], 10, Jt));
3728
3728
  }
3729
- }), Zt = ["checked"], Qt = /*#__PURE__*/ H(/* @__PURE__ */ u({
3729
+ }), Zt = ["checked"], Qt = /*#__PURE__*/ U(/* @__PURE__ */ l({
3730
3730
  __name: "Checkbox",
3731
3731
  props: {
3732
3732
  checked: { type: Boolean },
@@ -3738,9 +3738,9 @@ var Ht = "en", Ut = (e) => Vt({
3738
3738
  function r(e) {
3739
3739
  e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
3740
3740
  }
3741
- return (t, n) => (y(), o("input", {
3741
+ return (t, n) => (v(), a("input", {
3742
3742
  type: "checkbox",
3743
- class: h(["folio-default-checkbox", e.className]),
3743
+ class: m(["folio-default-checkbox", e.className]),
3744
3744
  checked: e.checked,
3745
3745
  onChange: r
3746
3746
  }, null, 42, Zt));
@@ -3775,7 +3775,7 @@ var Ht = "en", Ut = (e) => Vt({
3775
3775
  "aria-label",
3776
3776
  "aria-selected",
3777
3777
  "onClick"
3778
- ], pn = { class: "docx-color-picker__section-label" }, mn = { class: "docx-color-picker__custom" }, hn = ["onKeydown"], gn = ["disabled"], _n = /*#__PURE__*/ H(/* @__PURE__ */ u({
3778
+ ], pn = { class: "docx-color-picker__section-label" }, mn = { class: "docx-color-picker__custom" }, hn = ["onKeydown"], gn = ["disabled"], _n = /*#__PURE__*/ U(/* @__PURE__ */ l({
3779
3779
  __name: "ColorPicker",
3780
3780
  props: {
3781
3781
  mode: {},
@@ -3797,8 +3797,8 @@ var Ht = "en", Ut = (e) => Vt({
3797
3797
  defaultColor: {}
3798
3798
  },
3799
3799
  emits: ["change"],
3800
- setup(e, { emit: n }) {
3801
- let i = e, u = n, { t: d } = Z(), f = [
3800
+ setup(t, { emit: r }) {
3801
+ let l = t, u = r, { t: d } = Z(), f = [
3802
3802
  {
3803
3803
  nameKey: "colorPicker.colors.darkRed",
3804
3804
  hex: "C00000"
@@ -3841,9 +3841,9 @@ var Ht = "en", Ut = (e) => Vt({
3841
3841
  }
3842
3842
  ];
3843
3843
  function p(e) {
3844
- return e ? typeof e == "string" ? i.mode === "highlight" ? re(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : te(e, i.theme) : i.mode === "text" || i.mode === "border" ? "#000000" : "transparent";
3844
+ return e ? typeof e == "string" ? l.mode === "highlight" ? re(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : te(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
3845
3845
  }
3846
- function m(e) {
3846
+ function y(e) {
3847
3847
  return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
3848
3848
  }
3849
3849
  function b(e) {
@@ -3852,180 +3852,180 @@ var Ht = "en", Ut = (e) => Vt({
3852
3852
  let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
3853
3853
  return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
3854
3854
  }
3855
- function x(e, t) {
3856
- return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ne(e, i.theme)) === t.toUpperCase() : !1;
3855
+ function C(e, t) {
3856
+ return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ne(e, l.theme)) === t.toUpperCase() : !1;
3857
3857
  }
3858
- function w(e) {
3858
+ function T(e) {
3859
3859
  return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
3860
3860
  }
3861
3861
  function E(e) {
3862
3862
  return d(e === "text" ? "fontColor" : e === "highlight" ? "formattingBar.highlightColor" : "table.borderColor");
3863
3863
  }
3864
- function D(e) {
3864
+ function O(e) {
3865
3865
  return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
3866
3866
  }
3867
- let k = S(!1), A = S(""), j = S(null), P = S(null), R = S(i.defaultColor ?? w(i.mode)), z = r(() => ee(i.theme?.colorScheme ?? null)), ie = r(() => z.value.flatMap((e, t) => e.map((e, n) => ({
3867
+ let k = x(!1), A = x(""), N = x(null), L = x(null), R = x(l.defaultColor ?? T(l.mode)), ie = n(() => ee(l.theme?.colorScheme ?? null)), ae = n(() => ie.value.flatMap((e, t) => e.map((e, n) => ({
3868
3868
  ...e,
3869
3869
  key: `${t}-${n}`
3870
- })))), ae = r(() => p(i.value)), B = r(() => p(R.value)), V = r(() => E(i.mode)), oe = r(() => i.icon ?? D(i.mode));
3871
- N(() => [
3872
- i.value,
3873
- i.mode,
3874
- i.theme
3870
+ })))), z = n(() => p(l.value)), B = n(() => p(R.value)), V = n(() => E(l.mode)), H = n(() => l.icon ?? O(l.mode));
3871
+ M(() => [
3872
+ l.value,
3873
+ l.mode,
3874
+ l.theme
3875
3875
  ], () => {
3876
- let e = p(i.value).replace(/^#/, "");
3876
+ let e = p(l.value).replace(/^#/, "");
3877
3877
  /^[0-9A-Fa-f]{6}$/.test(e) && (A.value = e.toUpperCase());
3878
3878
  }, { immediate: !0 });
3879
- let se = S({});
3880
- function ce() {
3881
- let e = j.value;
3879
+ let oe = x({});
3880
+ function se() {
3881
+ let e = N.value;
3882
3882
  if (!e) return;
3883
3883
  let t = e.getBoundingClientRect();
3884
- se.value = {
3884
+ oe.value = {
3885
3885
  top: `${t.bottom + 4}px`,
3886
3886
  left: `${t.left}px`
3887
3887
  };
3888
3888
  }
3889
- function H() {
3890
- i.disabled || (k.value || ce(), k.value = !k.value);
3889
+ function U() {
3890
+ l.disabled || (k.value || se(), k.value = !k.value);
3891
3891
  }
3892
- function U(e, t = !0) {
3892
+ function W(e, t = !0) {
3893
3893
  t && (R.value = e), u("change", e), k.value = !1;
3894
3894
  }
3895
- function W() {
3896
- i.disabled || u("change", R.value);
3895
+ function G() {
3896
+ l.disabled || u("change", R.value);
3897
3897
  }
3898
- function le(e) {
3899
- if (i.mode === "highlight") {
3900
- U(e.hex);
3898
+ function ce(e) {
3899
+ if (l.mode === "highlight") {
3900
+ W(e.hex);
3901
3901
  return;
3902
3902
  }
3903
3903
  let t = {
3904
3904
  themeColor: e.themeSlot,
3905
3905
  rgb: e.hex
3906
3906
  };
3907
- e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), U(t);
3907
+ e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), W(t);
3908
3908
  }
3909
- function K(e) {
3910
- U(i.mode === "highlight" ? e : { rgb: e });
3909
+ function q(e) {
3910
+ W(l.mode === "highlight" ? e : { rgb: e });
3911
3911
  }
3912
- function ue() {
3913
- U(i.mode === "highlight" ? "none" : { auto: !0 }, !1);
3912
+ function le() {
3913
+ W(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
3914
3914
  }
3915
- function de() {
3915
+ function ue() {
3916
3916
  let e = A.value.replace(/^#/, "").toUpperCase();
3917
- m(e) && (U(i.mode === "highlight" ? e : { rgb: e }), A.value = "");
3917
+ y(e) && (W(l.mode === "highlight" ? e : { rgb: e }), A.value = "");
3918
3918
  }
3919
- function fe(e) {
3919
+ function de(e) {
3920
3920
  e.target instanceof HTMLInputElement || e.preventDefault();
3921
3921
  }
3922
- function pe(e) {
3922
+ function fe(e) {
3923
3923
  if (!k.value) return;
3924
3924
  let t = e.target;
3925
- t instanceof Node && (j.value?.contains(t) || P.value?.contains(t) || (k.value = !1));
3925
+ t instanceof Node && (N.value?.contains(t) || L.value?.contains(t) || (k.value = !1));
3926
3926
  }
3927
- return v(() => document.addEventListener("mousedown", pe)), _(() => document.removeEventListener("mousedown", pe)), (n, r) => (y(), o("div", {
3927
+ return _(() => document.addEventListener("mousedown", fe)), g(() => document.removeEventListener("mousedown", fe)), (n, r) => (v(), a("div", {
3928
3928
  ref_key: "containerRef",
3929
- ref: j,
3930
- class: h(["docx-color-picker", e.className]),
3931
- style: g(e.style)
3932
- }, [e.splitButton ? (y(), o("div", {
3929
+ ref: N,
3930
+ class: m(["docx-color-picker", t.className]),
3931
+ style: h(t.style)
3932
+ }, [t.splitButton ? (v(), a("div", {
3933
3933
  key: 0,
3934
- class: h(["docx-color-picker__split", { "is-disabled": e.disabled }])
3935
- }, [s("button", {
3934
+ class: m(["docx-color-picker__split", { "is-disabled": t.disabled }])
3935
+ }, [o("button", {
3936
3936
  type: "button",
3937
3937
  class: "docx-color-picker__apply",
3938
- disabled: e.disabled,
3939
- title: e.title ?? V.value,
3940
- "aria-label": e.title ?? V.value,
3941
- onMousedown: r[0] ||= L(() => {}, ["prevent"]),
3942
- onClick: W
3943
- }, [l(G, {
3944
- name: oe.value,
3938
+ disabled: t.disabled,
3939
+ title: t.title ?? V.value,
3940
+ "aria-label": t.title ?? V.value,
3941
+ onMousedown: r[0] ||= I(() => {}, ["prevent"]),
3942
+ onClick: G
3943
+ }, [c(K, {
3944
+ name: H.value,
3945
3945
  size: 18
3946
- }, null, 8, ["name"]), s("span", {
3947
- class: h(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
3948
- style: g({ background: B.value === "transparent" ? "#fff" : B.value })
3949
- }, null, 6)], 40, $t), s("button", {
3946
+ }, null, 8, ["name"]), o("span", {
3947
+ class: m(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
3948
+ style: h({ background: B.value === "transparent" ? "#fff" : B.value })
3949
+ }, null, 6)], 40, $t), o("button", {
3950
3950
  type: "button",
3951
- class: h(["docx-color-picker__arrow", { "is-open": k.value }]),
3952
- disabled: e.disabled,
3953
- title: e.title ?? V.value,
3954
- "aria-label": e.title ?? V.value,
3951
+ class: m(["docx-color-picker__arrow", { "is-open": k.value }]),
3952
+ disabled: t.disabled,
3953
+ title: t.title ?? V.value,
3954
+ "aria-label": t.title ?? V.value,
3955
3955
  "aria-haspopup": "true",
3956
3956
  "aria-expanded": k.value,
3957
- onMousedown: r[1] ||= L(() => {}, ["prevent"]),
3958
- onClick: H
3959
- }, [l(G, {
3957
+ onMousedown: r[1] ||= I(() => {}, ["prevent"]),
3958
+ onClick: U
3959
+ }, [c(K, {
3960
3960
  name: "arrow_drop_down",
3961
3961
  size: 18
3962
- })], 42, en)], 2)) : (y(), o("button", {
3962
+ })], 42, en)], 2)) : (v(), a("button", {
3963
3963
  key: 1,
3964
3964
  type: "button",
3965
- class: h(["docx-color-picker__button", { "is-open": k.value }]),
3966
- disabled: e.disabled,
3967
- title: e.title ?? V.value,
3968
- "aria-label": e.title ?? V.value,
3965
+ class: m(["docx-color-picker__button", { "is-open": k.value }]),
3966
+ disabled: t.disabled,
3967
+ title: t.title ?? V.value,
3968
+ "aria-label": t.title ?? V.value,
3969
3969
  "aria-haspopup": "true",
3970
3970
  "aria-expanded": k.value,
3971
- onMousedown: r[2] ||= L(() => {}, ["prevent"]),
3972
- onClick: H
3973
- }, [s("span", nn, [l(G, {
3974
- name: oe.value,
3971
+ onMousedown: r[2] ||= I(() => {}, ["prevent"]),
3972
+ onClick: U
3973
+ }, [o("span", nn, [c(K, {
3974
+ name: H.value,
3975
3975
  size: 18
3976
- }, null, 8, ["name"]), s("span", {
3977
- class: h(["docx-color-picker__bar", { "is-light": ae.value === "transparent" || b(ae.value) }]),
3978
- style: g({ background: ae.value === "transparent" ? "#fff" : ae.value })
3979
- }, null, 6)]), l(G, {
3976
+ }, null, 8, ["name"]), o("span", {
3977
+ class: m(["docx-color-picker__bar", { "is-light": z.value === "transparent" || b(z.value) }]),
3978
+ style: h({ background: z.value === "transparent" ? "#fff" : z.value })
3979
+ }, null, 6)]), c(K, {
3980
3980
  name: "arrow_drop_down",
3981
3981
  size: 14
3982
- })], 42, tn)), k.value && !e.disabled ? (y(), o("div", {
3982
+ })], 42, tn)), k.value && !t.disabled ? (v(), a("div", {
3983
3983
  key: 2,
3984
3984
  ref_key: "panelRef",
3985
- ref: P,
3985
+ ref: L,
3986
3986
  class: "docx-color-picker__panel",
3987
- style: g(se.value),
3987
+ style: h(oe.value),
3988
3988
  role: "dialog",
3989
- "aria-label": O(d)("colorPicker.ariaLabel", { type: V.value }),
3990
- onMousedown: fe
3989
+ "aria-label": D(d)("colorPicker.ariaLabel", { type: V.value }),
3990
+ onMousedown: de
3991
3991
  }, [
3992
- s("button", {
3992
+ o("button", {
3993
3993
  type: "button",
3994
3994
  class: "docx-color-picker__auto",
3995
- onMousedown: r[3] ||= L(() => {}, ["prevent"]),
3996
- onClick: ue
3997
- }, [e.mode === "highlight" ? (y(), o("span", an, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", on)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
3998
- r[12] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
3999
- s("div", sn, T(O(d)("colorPicker.themeColors")), 1),
4000
- s("div", cn, [(y(!0), o(t, null, C(ie.value, (t) => (y(), o("button", {
4001
- key: t.key,
3995
+ onMousedown: r[3] ||= I(() => {}, ["prevent"]),
3996
+ onClick: le
3997
+ }, [t.mode === "highlight" ? (v(), a("span", an, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (v(), a("span", on)), s(" " + w(t.autoLabel ?? (t.mode === "highlight" ? D(d)("colorPicker.noColor") : D(d)("colorPicker.automatic"))), 1)], 32),
3998
+ r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
3999
+ o("div", sn, w(D(d)("colorPicker.themeColors")), 1),
4000
+ o("div", cn, [(v(!0), a(e, null, S(ae.value, (e) => (v(), a("button", {
4001
+ key: e.key,
4002
4002
  type: "button",
4003
- class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
4004
- style: g({ background: "#" + t.hex }),
4005
- title: t.label,
4006
- "aria-label": t.label,
4007
- "aria-selected": x(e.value, t.hex),
4008
- onMousedown: r[4] ||= L(() => {}, ["prevent"]),
4009
- onClick: (e) => le(t)
4003
+ class: m(["docx-color-picker__cell", { "is-selected": C(t.value, e.hex) }]),
4004
+ style: h({ background: "#" + e.hex }),
4005
+ title: e.label,
4006
+ "aria-label": e.label,
4007
+ "aria-selected": C(t.value, e.hex),
4008
+ onMousedown: r[4] ||= I(() => {}, ["prevent"]),
4009
+ onClick: (t) => ce(e)
4010
4010
  }, null, 46, ln))), 128))]),
4011
- r[13] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
4012
- s("div", un, T(O(d)("colorPicker.standardColors")), 1),
4013
- s("div", dn, [(y(), o(t, null, C(f, (t) => s("button", {
4014
- key: t.hex,
4011
+ r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
4012
+ o("div", un, w(D(d)("colorPicker.standardColors")), 1),
4013
+ o("div", dn, [(v(), a(e, null, S(f, (e) => o("button", {
4014
+ key: e.hex,
4015
4015
  type: "button",
4016
- class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
4017
- style: g({ background: "#" + t.hex }),
4018
- title: O(d)(t.nameKey),
4019
- "aria-label": O(d)(t.nameKey),
4020
- "aria-selected": x(e.value, t.hex),
4021
- onMousedown: r[5] ||= L(() => {}, ["prevent"]),
4022
- onClick: (e) => K(t.hex)
4016
+ class: m(["docx-color-picker__cell", { "is-selected": C(t.value, e.hex) }]),
4017
+ style: h({ background: "#" + e.hex }),
4018
+ title: D(d)(e.nameKey),
4019
+ "aria-label": D(d)(e.nameKey),
4020
+ "aria-selected": C(t.value, e.hex),
4021
+ onMousedown: r[5] ||= I(() => {}, ["prevent"]),
4022
+ onClick: (t) => q(e.hex)
4023
4023
  }, null, 46, fn)), 64))]),
4024
- r[14] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
4025
- s("div", pn, T(O(d)("colorPicker.customColor")), 1),
4026
- s("div", mn, [
4027
- r[11] ||= s("span", { class: "docx-color-picker__hash" }, "#", -1),
4028
- F(s("input", {
4024
+ r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
4025
+ o("div", pn, w(D(d)("colorPicker.customColor")), 1),
4026
+ o("div", mn, [
4027
+ r[11] ||= o("span", { class: "docx-color-picker__hash" }, "#", -1),
4028
+ P(o("input", {
4029
4029
  "onUpdate:modelValue": r[6] ||= (e) => A.value = e,
4030
4030
  type: "text",
4031
4031
  class: "docx-color-picker__hex",
@@ -4033,20 +4033,20 @@ var Ht = "en", Ut = (e) => Vt({
4033
4033
  maxlength: "6",
4034
4034
  "aria-label": "Custom hex color",
4035
4035
  onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
4036
- onKeydown: I(L(de, ["prevent"]), ["enter"]),
4037
- onMousedown: r[8] ||= L(() => {}, ["stop"])
4038
- }, null, 40, hn), [[M, A.value]]),
4039
- s("button", {
4036
+ onKeydown: F(I(ue, ["prevent"]), ["enter"]),
4037
+ onMousedown: r[8] ||= I(() => {}, ["stop"])
4038
+ }, null, 40, hn), [[j, A.value]]),
4039
+ o("button", {
4040
4040
  type: "button",
4041
4041
  class: "docx-color-picker__apply-btn",
4042
- disabled: !m(A.value),
4043
- onMousedown: r[9] ||= L(() => {}, ["prevent"]),
4044
- onClick: de
4045
- }, T(O(d)("common.apply")), 41, gn)
4042
+ disabled: !y(A.value),
4043
+ onMousedown: r[9] ||= I(() => {}, ["prevent"]),
4044
+ onClick: ue
4045
+ }, w(D(d)("common.apply")), 41, gn)
4046
4046
  ])
4047
- ], 44, rn)) : a("", !0)], 6));
4047
+ ], 44, rn)) : i("", !0)], 6));
4048
4048
  }
4049
- }), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4049
+ }), [["__scopeId", "data-v-ea554ffa"]]), vn = ["value", "autofocus"], yn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4050
4050
  __name: "DatePickerPopover",
4051
4051
  props: {
4052
4052
  value: {},
@@ -4057,15 +4057,19 @@ var Ht = "en", Ut = (e) => Vt({
4057
4057
  },
4058
4058
  emits: ["change"],
4059
4059
  setup(e, { emit: t }) {
4060
- let n = e, i = t;
4061
- function a(e) {
4062
- return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? e.slice(0, 10) : e;
4063
- }
4064
- let s = r(() => a(n.value));
4060
+ let r = e, i = t;
4061
+ function o(e) {
4062
+ return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? ie({
4063
+ text: e,
4064
+ units: "codeUnits",
4065
+ end: 10
4066
+ }) : e;
4067
+ }
4068
+ let s = n(() => o(r.value));
4065
4069
  function c(e) {
4066
4070
  e.target instanceof HTMLInputElement && i("change", e.target.value || null);
4067
4071
  }
4068
- return (t, n) => (y(), o("input", {
4072
+ return (t, n) => (v(), a("input", {
4069
4073
  class: "folio-default-date-input",
4070
4074
  type: "date",
4071
4075
  value: s.value,
@@ -4073,7 +4077,7 @@ var Ht = "en", Ut = (e) => Vt({
4073
4077
  onChange: c
4074
4078
  }, null, 40, vn));
4075
4079
  }
4076
- }), [["__scopeId", "data-v-3101462d"]]), bn = ["aria-label"], xn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4080
+ }), [["__scopeId", "data-v-61260968"]]), bn = ["aria-label"], xn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4077
4081
  inheritAttrs: !1,
4078
4082
  __name: "Dialog",
4079
4083
  props: {
@@ -4087,28 +4091,28 @@ var Ht = "en", Ut = (e) => Vt({
4087
4091
  }
4088
4092
  },
4089
4093
  emits: ["update:open", "close"],
4090
- setup(e, { emit: t }) {
4091
- let r = e, c = t;
4094
+ setup(e, { emit: n }) {
4095
+ let s = e, c = n;
4092
4096
  function l() {
4093
4097
  c("update:open", !1), c("close");
4094
4098
  }
4095
4099
  function u() {
4096
- r.closeOnBackdrop && l();
4100
+ s.closeOnBackdrop && l();
4097
4101
  }
4098
- return (t, r) => (y(), i(n, { to: "body" }, [e.open ? (y(), o("div", {
4102
+ return (n, s) => (v(), r(t, { to: "body" }, [e.open ? (v(), a("div", {
4099
4103
  key: 0,
4100
- class: h(["folio-default-dialog-backdrop", e.backdropClass]),
4101
- onMousedown: L(u, ["self"])
4102
- }, [s("div", p({
4104
+ class: m(["folio-default-dialog-backdrop", e.backdropClass]),
4105
+ onMousedown: I(u, ["self"])
4106
+ }, [o("div", f({
4103
4107
  class: ["folio-default-dialog-popup", e.className],
4104
4108
  role: "dialog",
4105
4109
  "aria-label": e.ariaLabel
4106
- }, t.$attrs, {
4107
- onKeydown: I(l, ["escape"]),
4108
- onMousedown: r[0] ||= L(() => {}, ["stop"])
4109
- }), [w(t.$slots, "default", {}, void 0, !0)], 16, bn)], 34)) : a("", !0)]));
4110
+ }, n.$attrs, {
4111
+ onKeydown: F(l, ["escape"]),
4112
+ onMousedown: s[0] ||= I(() => {}, ["stop"])
4113
+ }), [C(n.$slots, "default", {}, void 0, !0)], 16, bn)], 34)) : i("", !0)]));
4110
4114
  }
4111
- }), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4115
+ }), [["__scopeId", "data-v-76309dbc"]]), Sn = ["value"], Cn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4112
4116
  __name: "Input",
4113
4117
  props: {
4114
4118
  modelValue: {},
@@ -4121,19 +4125,19 @@ var Ht = "en", Ut = (e) => Vt({
4121
4125
  function i(e) {
4122
4126
  e.target instanceof HTMLInputElement && r("update:modelValue", e.target.value);
4123
4127
  }
4124
- let a = S(null);
4128
+ let o = x(null);
4125
4129
  return t({
4126
- focus: () => a.value?.focus(),
4127
- select: () => a.value?.select()
4128
- }), (t, n) => (y(), o("input", {
4130
+ focus: () => o.value?.focus(),
4131
+ select: () => o.value?.select()
4132
+ }), (t, n) => (v(), a("input", {
4129
4133
  ref_key: "inputRef",
4130
- ref: a,
4131
- class: h(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
4134
+ ref: o,
4135
+ class: m(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
4132
4136
  value: e.modelValue,
4133
4137
  onInput: i
4134
4138
  }, null, 42, Sn));
4135
4139
  }
4136
- }), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4140
+ }), [["__scopeId", "data-v-a34b139d"]]), wn = 4, Tn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4137
4141
  __name: "Popover",
4138
4142
  props: {
4139
4143
  open: { type: Boolean },
@@ -4147,9 +4151,9 @@ var Ht = "en", Ut = (e) => Vt({
4147
4151
  },
4148
4152
  emits: ["close", "update:open"],
4149
4153
  setup(e, { emit: t }) {
4150
- let n = e, r = t, i = S(null), s = S(null), c = S({ position: "fixed" });
4154
+ let n = e, r = t, o = x(null), s = x(null), c = x({ position: "fixed" });
4151
4155
  function l() {
4152
- let e = i.value;
4156
+ let e = o.value;
4153
4157
  if (!e) return;
4154
4158
  let t = e.getBoundingClientRect(), r = { position: "fixed" };
4155
4159
  n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + wn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + wn)}px`, r.bottom = "auto"), n.placement.endsWith("right") ? (r.right = `${Math.round(window.innerWidth - t.right)}px`, r.left = "auto") : (r.left = `${Math.round(t.left)}px`, r.right = "auto"), c.value = r;
@@ -4163,14 +4167,14 @@ var Ht = "en", Ut = (e) => Vt({
4163
4167
  function f(e) {
4164
4168
  if (!n.open) return;
4165
4169
  let t = e.target;
4166
- t instanceof Node && (i.value?.contains(t) || s.value?.contains(t) || d());
4170
+ t instanceof Node && (o.value?.contains(t) || s.value?.contains(t) || d());
4167
4171
  }
4168
4172
  function p(e) {
4169
4173
  e.key === "Escape" && n.open && d();
4170
4174
  }
4171
- function m(e) {
4175
+ function y(e) {
4172
4176
  if (!(!n.closeOnScroll || !n.open) && !(e.target instanceof Node && s.value?.contains(e.target))) {
4173
- if (e.target instanceof Node && e.target !== document && i.value && e.target.contains(i.value)) {
4177
+ if (e.target instanceof Node && e.target !== document && o.value && e.target.contains(o.value)) {
4174
4178
  l();
4175
4179
  return;
4176
4180
  }
@@ -4180,31 +4184,31 @@ var Ht = "en", Ut = (e) => Vt({
4180
4184
  function b() {
4181
4185
  n.open && l();
4182
4186
  }
4183
- function x() {
4184
- document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll", m, !0), window.addEventListener("resize", b);
4187
+ function S() {
4188
+ document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll", y, !0), window.addEventListener("resize", b);
4185
4189
  }
4186
- function C() {
4187
- document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll", m, !0), window.removeEventListener("resize", b);
4190
+ function w() {
4191
+ document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", b);
4188
4192
  }
4189
- return N(() => n.open, (e) => {
4190
- e ? (l(), x()) : C();
4191
- }), N(() => n.placement, () => n.open && l()), v(() => {
4192
- n.open && (l(), x());
4193
- }), _(C), (t, n) => (y(), o("span", {
4193
+ return M(() => n.open, (e) => {
4194
+ e ? (l(), S()) : w();
4195
+ }), M(() => n.placement, () => n.open && l()), _(() => {
4196
+ n.open && (l(), S());
4197
+ }), g(w), (t, n) => (v(), a("span", {
4194
4198
  ref_key: "rootRef",
4195
- ref: i,
4199
+ ref: o,
4196
4200
  class: "docx-popover"
4197
- }, [w(t.$slots, "trigger", {
4201
+ }, [C(t.$slots, "trigger", {
4198
4202
  toggle: u,
4199
4203
  open: e.open
4200
- }, void 0, !0), e.open ? (y(), o("div", {
4204
+ }, void 0, !0), e.open ? (v(), a("div", {
4201
4205
  key: 0,
4202
4206
  ref_key: "panelRef",
4203
4207
  ref: s,
4204
- class: h(["docx-popover__panel", e.panelClass]),
4205
- style: g([c.value, e.panelStyle ?? {}]),
4206
- onMousedown: n[0] ||= L(() => {}, ["stop"])
4207
- }, [w(t.$slots, "panel", {}, void 0, !0)], 38)) : a("", !0)], 512));
4208
+ class: m(["docx-popover__panel", e.panelClass]),
4209
+ style: h([c.value, e.panelStyle ?? {}]),
4210
+ onMousedown: n[0] ||= I(() => {}, ["stop"])
4211
+ }, [C(t.$slots, "panel", {}, void 0, !0)], 38)) : i("", !0)], 512));
4208
4212
  }
4209
4213
  }), [["__scopeId", "data-v-f138860e"]]), En = ["disabled", "onClick"], Dn = {
4210
4214
  key: 0,
@@ -4218,7 +4222,7 @@ var Ht = "en", Ut = (e) => Vt({
4218
4222
  }, Nn = {
4219
4223
  key: 0,
4220
4224
  class: "docx-menu-dropdown__submenu"
4221
- }, Pn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4225
+ }, Pn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4222
4226
  __name: "MenuDropdown",
4223
4227
  props: {
4224
4228
  label: {},
@@ -4229,62 +4233,62 @@ var Ht = "en", Ut = (e) => Vt({
4229
4233
  default: !1
4230
4234
  }
4231
4235
  },
4232
- setup(e) {
4236
+ setup(t) {
4233
4237
  function n(e) {
4234
4238
  return "type" in e && e.type === "separator";
4235
4239
  }
4236
- let r = S(!1), u = S(null);
4240
+ let l = x(!1), u = x(null);
4237
4241
  function d() {
4238
- r.value = !1, u.value = null;
4242
+ l.value = !1, u.value = null;
4239
4243
  }
4240
4244
  function f(e) {
4241
4245
  e.disabled || e.submenu || (e.onClick?.(), d());
4242
4246
  }
4243
- return (p, m) => (y(), i(Tn, {
4244
- open: r.value,
4245
- "onUpdate:open": m[2] ||= (e) => r.value = e,
4247
+ return (p, h) => (v(), r(Tn, {
4248
+ open: l.value,
4249
+ "onUpdate:open": h[2] ||= (e) => l.value = e,
4246
4250
  onClose: d
4247
4251
  }, {
4248
- trigger: P(({ toggle: t }) => [s("button", {
4252
+ trigger: N(({ toggle: e }) => [o("button", {
4249
4253
  type: "button",
4250
- class: h(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": r.value }]),
4251
- disabled: e.disabled,
4252
- onMousedown: m[0] ||= L(() => {}, ["prevent"]),
4253
- onClick: L(t, ["prevent"])
4254
- }, [c(T(e.label) + " ", 1), e.showChevron ? (y(), i(G, {
4254
+ class: m(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": l.value }]),
4255
+ disabled: t.disabled,
4256
+ onMousedown: h[0] ||= I(() => {}, ["prevent"]),
4257
+ onClick: I(e, ["prevent"])
4258
+ }, [s(w(t.label) + " ", 1), t.showChevron ? (v(), r(K, {
4255
4259
  key: 0,
4256
4260
  name: "arrow_drop_down",
4257
4261
  size: 16
4258
- })) : a("", !0)], 42, En)]),
4259
- panel: P(() => [s("div", {
4262
+ })) : i("", !0)], 42, En)]),
4263
+ panel: N(() => [o("div", {
4260
4264
  class: "docx-menu-dropdown__menu",
4261
- onMousedown: m[1] ||= L(() => {}, ["prevent"])
4262
- }, [(y(!0), o(t, null, C(e.items, (e, r) => (y(), o(t, { key: r }, [n(e) ? (y(), o("div", Dn)) : (y(), o("div", {
4265
+ onMousedown: h[1] ||= I(() => {}, ["prevent"])
4266
+ }, [(v(!0), a(e, null, S(t.items, (t, s) => (v(), a(e, { key: s }, [n(t) ? (v(), a("div", Dn)) : (v(), a("div", {
4263
4267
  key: 1,
4264
4268
  class: "docx-menu-dropdown__wrap",
4265
- onMouseenter: (t) => e.submenu ? u.value = r : void 0,
4266
- onMouseleave: (t) => e.submenu ? u.value = null : void 0
4267
- }, [s("button", {
4269
+ onMouseenter: (e) => t.submenu ? u.value = s : void 0,
4270
+ onMouseleave: (e) => t.submenu ? u.value = null : void 0
4271
+ }, [o("button", {
4268
4272
  type: "button",
4269
- class: h(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": e.disabled }]),
4270
- disabled: e.disabled,
4271
- onClick: L((t) => f(e), ["prevent"])
4273
+ class: m(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": t.disabled }]),
4274
+ disabled: t.disabled,
4275
+ onClick: I((e) => f(t), ["prevent"])
4272
4276
  }, [
4273
- e.icon ? (y(), i(G, {
4277
+ t.icon ? (v(), r(K, {
4274
4278
  key: 0,
4275
- name: e.icon,
4279
+ name: t.icon,
4276
4280
  size: 18
4277
- }, null, 8, ["name"])) : a("", !0),
4278
- s("span", An, T(e.label), 1),
4279
- e.shortcut ? (y(), o("span", jn, T(e.shortcut), 1)) : a("", !0),
4280
- e.submenu ? (y(), o("span", Mn, [l(G, {
4281
+ }, null, 8, ["name"])) : i("", !0),
4282
+ o("span", An, w(t.label), 1),
4283
+ t.shortcut ? (v(), a("span", jn, w(t.shortcut), 1)) : i("", !0),
4284
+ t.submenu ? (v(), a("span", Mn, [c(K, {
4281
4285
  name: "keyboard_arrow_right",
4282
4286
  size: 16
4283
- })])) : a("", !0)
4284
- ], 10, kn), e.submenu && u.value === r ? (y(), o("div", Nn, [w(p.$slots, "submenu", {
4285
- item: e,
4287
+ })])) : i("", !0)
4288
+ ], 10, kn), t.submenu && u.value === s ? (v(), a("div", Nn, [C(p.$slots, "submenu", {
4289
+ item: t,
4286
4290
  closeMenu: d
4287
- }, void 0, !0)])) : a("", !0)], 40, On))], 64))), 128))], 32)]),
4291
+ }, void 0, !0)])) : i("", !0)], 40, On))], 64))), 128))], 32)]),
4288
4292
  _: 3
4289
4293
  }, 8, ["open"]));
4290
4294
  }
@@ -4302,7 +4306,7 @@ var Ht = "en", Ut = (e) => Vt({
4302
4306
  }, Rn = {
4303
4307
  key: 1,
4304
4308
  class: "folio-outline-item-label"
4305
- }, zn = 12, Bn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4309
+ }, zn = 12, Bn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4306
4310
  __name: "OutlineRail",
4307
4311
  props: {
4308
4312
  items: {},
@@ -4315,40 +4319,40 @@ var Ht = "en", Ut = (e) => Vt({
4315
4319
  ariaLabel: { default: "Outline" },
4316
4320
  presentation: { default: "panel" }
4317
4321
  },
4318
- setup(e) {
4319
- let n = e, i = S(null), c = S(0), l = S(0), u = S(!1), d = r(() => n.items.findIndex((e) => e.id === n.activeId)), f = r(() => {
4322
+ setup(t) {
4323
+ let r = t, s = x(null), c = x(0), l = x(0), u = x(!1), d = n(() => r.items.findIndex((e) => e.id === r.activeId)), f = n(() => {
4320
4324
  let e = Infinity;
4321
- for (let t of n.items) e = Math.min(e, t.level);
4325
+ for (let t of r.items) e = Math.min(e, t.level);
4322
4326
  return e;
4323
- }), p = (e) => n.presentation === "rail" ? ["folio-outline-tick", e.id === n.activeId ? "folio-outline-tick--active" : void 0] : ["folio-outline-item", e.id === n.activeId ? "folio-outline-item--active" : void 0];
4324
- N(d, (e) => {
4327
+ }), _ = (e) => r.presentation === "rail" ? ["folio-outline-tick", e.id === r.activeId ? "folio-outline-tick--active" : void 0] : ["folio-outline-item", e.id === r.activeId ? "folio-outline-item--active" : void 0];
4328
+ M(d, (e) => {
4325
4329
  !u.value && e >= 0 && (l.value = e);
4326
- }, { immediate: !0 }), N([d, () => n.presentation], async ([e, t]) => {
4330
+ }, { immediate: !0 }), M([d, () => r.presentation], async ([e, t]) => {
4327
4331
  if (t !== "panel" || e < 0) return;
4328
- await m();
4329
- let n = i.value, r = n?.children.item(e);
4332
+ await p();
4333
+ let n = s.value, r = n?.children.item(e);
4330
4334
  if (!(r instanceof HTMLElement) || !n) return;
4331
- let a = r.offsetTop, o = a + r.offsetHeight;
4332
- a < n.scrollTop ? n.scrollTop = a : o > n.scrollTop + n.clientHeight && (n.scrollTop = o - n.clientHeight);
4335
+ let i = r.offsetTop, a = i + r.offsetHeight;
4336
+ i < n.scrollTop ? n.scrollTop = i : a > n.scrollTop + n.clientHeight && (n.scrollTop = a - n.clientHeight);
4333
4337
  }, {
4334
4338
  immediate: !0,
4335
4339
  flush: "post"
4336
4340
  });
4337
- let v = null;
4338
- N([i, () => n.presentation], ([e, t]) => {
4339
- v?.disconnect(), v = null, c.value = 0, !(t !== "rail" || !e || typeof ResizeObserver > "u") && (c.value = e.clientHeight, v = new ResizeObserver(() => {
4341
+ let y = null;
4342
+ M([s, () => r.presentation], ([e, t]) => {
4343
+ y?.disconnect(), y = null, c.value = 0, !(t !== "rail" || !e || typeof ResizeObserver > "u") && (c.value = e.clientHeight, y = new ResizeObserver(() => {
4340
4344
  c.value = e.clientHeight;
4341
- }), v.observe(e));
4342
- }, { flush: "post" }), _(() => v?.disconnect());
4343
- let b = r(() => {
4344
- if (n.presentation !== "rail" || c.value === 0) return [];
4345
- let e = Math.max(0, c.value - zn), t = n.items.length;
4345
+ }), y.observe(e));
4346
+ }, { flush: "post" }), g(() => y?.disconnect());
4347
+ let b = n(() => {
4348
+ if (r.presentation !== "rail" || c.value === 0) return [];
4349
+ let e = Math.max(0, c.value - zn), t = r.items.length;
4346
4350
  if (t * zn > c.value) {
4347
- let r = t > 1 ? e / (t - 1) : 0;
4348
- return n.items.map((e, t) => t * r);
4351
+ let n = t > 1 ? e / (t - 1) : 0;
4352
+ return r.items.map((e, t) => t * n);
4349
4353
  }
4350
- let r = n.getScrollContainer(), i = n.items.map((i, a) => {
4351
- let o = r ? n.resolvePct?.(i.id, r) ?? null : null;
4354
+ let n = r.getScrollContainer(), i = r.items.map((i, a) => {
4355
+ let o = n ? r.resolvePct?.(i.id, n) ?? null : null;
4352
4356
  return (o === null ? a / Math.max(1, t - 1) : o / 100) * e;
4353
4357
  });
4354
4358
  for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) + zn);
@@ -4357,63 +4361,63 @@ var Ht = "en", Ut = (e) => Vt({
4357
4361
  i[t] = Math.min(i[t] ?? 0, n);
4358
4362
  }
4359
4363
  return i;
4360
- }), x = (e) => {
4361
- let t = n.getScrollContainer();
4362
- t && n.onJump(e, t);
4363
- }, w = (e) => {
4364
- let t = n.items.length - 1, r;
4364
+ }), C = (e) => {
4365
+ let t = r.getScrollContainer();
4366
+ t && r.onJump(e, t);
4367
+ }, T = (e) => {
4368
+ let t = r.items.length - 1, n;
4365
4369
  switch (e.key) {
4366
4370
  case "ArrowDown":
4367
- r = Math.min(t, l.value + 1);
4371
+ n = Math.min(t, l.value + 1);
4368
4372
  break;
4369
4373
  case "ArrowUp":
4370
- r = Math.max(0, l.value - 1);
4374
+ n = Math.max(0, l.value - 1);
4371
4375
  break;
4372
4376
  case "Home":
4373
- r = 0;
4377
+ n = 0;
4374
4378
  break;
4375
4379
  case "End":
4376
- r = t;
4380
+ n = t;
4377
4381
  break;
4378
4382
  default: return;
4379
4383
  }
4380
- e.preventDefault(), l.value = r, i.value?.querySelectorAll("button").item(r)?.focus();
4384
+ e.preventDefault(), l.value = n, s.value?.querySelectorAll("button").item(n)?.focus();
4381
4385
  }, E = (e) => {
4382
- e.relatedTarget instanceof Node && i.value?.contains(e.relatedTarget) || (u.value = !1);
4386
+ e.relatedTarget instanceof Node && s.value?.contains(e.relatedTarget) || (u.value = !1);
4383
4387
  };
4384
- return (n, r) => e.items.length >= 2 ? (y(), o("ol", {
4388
+ return (n, r) => t.items.length >= 2 ? (v(), a("ol", {
4385
4389
  key: 0,
4386
4390
  ref_key: "listRef",
4387
- ref: i,
4388
- "aria-label": e.ariaLabel,
4389
- class: h(e.presentation === "rail" ? "folio-outline-ticks" : "folio-outline-list"),
4390
- onKeydown: w,
4391
+ ref: s,
4392
+ "aria-label": t.ariaLabel,
4393
+ class: m(t.presentation === "rail" ? "folio-outline-ticks" : "folio-outline-list"),
4394
+ onKeydown: T,
4391
4395
  onFocusin: r[0] ||= (e) => u.value = !0,
4392
4396
  onFocusout: E
4393
- }, [(y(!0), o(t, null, C(e.items, (n, i) => (y(), o("li", {
4397
+ }, [(v(!0), a(e, null, S(t.items, (n, i) => (v(), a("li", {
4394
4398
  key: n.id,
4395
- class: h(e.presentation === "rail" ? "folio-outline-tick-slot" : void 0),
4396
- style: g(e.presentation === "rail" ? { top: (b.value[i] ?? 0) + "px" } : void 0)
4397
- }, [s("button", {
4399
+ class: m(t.presentation === "rail" ? "folio-outline-tick-slot" : void 0),
4400
+ style: h(t.presentation === "rail" ? { top: (b.value[i] ?? 0) + "px" } : void 0)
4401
+ }, [o("button", {
4398
4402
  type: "button",
4399
- class: h(p(n)),
4403
+ class: m(_(n)),
4400
4404
  "data-depth": Math.min(4, n.level - f.value),
4401
- "aria-current": n.id === e.activeId ? "true" : void 0,
4402
- "aria-label": e.presentation === "rail" ? n.label : void 0,
4403
- title: e.presentation === "panel" ? n.label : void 0,
4405
+ "aria-current": n.id === t.activeId ? "true" : void 0,
4406
+ "aria-label": t.presentation === "rail" ? n.label : void 0,
4407
+ title: t.presentation === "panel" ? n.label : void 0,
4404
4408
  tabindex: i === l.value ? 0 : -1,
4405
- onClick: (e) => x(n.id),
4409
+ onClick: (e) => C(n.id),
4406
4410
  onFocus: (e) => l.value = i
4407
- }, [e.presentation === "rail" ? (y(), o(t, { key: 0 }, [r[1] ||= s("span", {
4411
+ }, [t.presentation === "rail" ? (v(), a(e, { key: 0 }, [r[1] ||= o("span", {
4408
4412
  "aria-hidden": "true",
4409
4413
  class: "folio-outline-tick-mark"
4410
- }, null, -1), s("span", Ln, T(n.label), 1)], 64)) : (y(), o("span", Rn, T(n.label), 1))], 42, In)], 6))), 128))], 42, Fn)) : a("", !0);
4414
+ }, null, -1), o("span", Ln, w(n.label), 1)], 64)) : (v(), a("span", Rn, w(n.label), 1))], 42, In)], 6))), 128))], 42, Fn)) : i("", !0);
4411
4415
  }
4412
4416
  }), [["__scopeId", "data-v-962a19e0"]]), Vn = ["disabled", "value"], Hn = {
4413
4417
  key: 0,
4414
4418
  disabled: "",
4415
4419
  value: ""
4416
- }, Un = ["disabled", "value"], Wn = /*#__PURE__*/ H(/* @__PURE__ */ u({
4420
+ }, Un = ["disabled", "value"], Wn = /*#__PURE__*/ U(/* @__PURE__ */ l({
4417
4421
  __name: "Select",
4418
4422
  props: {
4419
4423
  value: {},
@@ -4423,21 +4427,21 @@ var Ht = "en", Ut = (e) => Vt({
4423
4427
  className: {}
4424
4428
  },
4425
4429
  emits: ["change"],
4426
- setup(e, { emit: n }) {
4430
+ setup(t, { emit: n }) {
4427
4431
  let r = n;
4428
- function i(e) {
4432
+ function o(e) {
4429
4433
  e.target instanceof HTMLSelectElement && r("change", e.target.value);
4430
4434
  }
4431
- return (n, r) => (y(), o("select", {
4432
- class: h(["folio-default-select", e.className]),
4433
- disabled: e.disabled,
4434
- value: e.value,
4435
- onChange: i
4436
- }, [e.placeholder && e.value === void 0 ? (y(), o("option", Hn, T(e.placeholder), 1)) : a("", !0), (y(!0), o(t, null, C(e.items, (e) => (y(), o("option", {
4435
+ return (n, r) => (v(), a("select", {
4436
+ class: m(["folio-default-select", t.className]),
4437
+ disabled: t.disabled,
4438
+ value: t.value,
4439
+ onChange: o
4440
+ }, [t.placeholder && t.value === void 0 ? (v(), a("option", Hn, w(t.placeholder), 1)) : i("", !0), (v(!0), a(e, null, S(t.items, (e) => (v(), a("option", {
4437
4441
  key: e.value,
4438
4442
  disabled: e.disabled,
4439
4443
  value: e.value
4440
- }, T(e.label), 9, Un))), 128))], 42, Vn));
4444
+ }, w(e.label), 9, Un))), 128))], 42, Vn));
4441
4445
  }
4442
4446
  }), [["__scopeId", "data-v-ce79245b"]]), Gn = {
4443
4447
  Button: Xt,
@@ -4458,12 +4462,12 @@ function qn(e) {
4458
4462
  } : Gn;
4459
4463
  }
4460
4464
  function Jn(e) {
4461
- b(Kn, qn(e));
4465
+ y(Kn, qn(e));
4462
4466
  }
4463
4467
  function Q() {
4464
- return d(Kn, Gn);
4468
+ return u(Kn, Gn);
4465
4469
  }
4466
- var Yn = u({
4470
+ var Yn = l({
4467
4471
  name: "FolioUIProvider",
4468
4472
  props: { components: {
4469
4473
  type: Object,
@@ -4475,169 +4479,187 @@ var Yn = u({
4475
4479
  }), Xn = { class: "find-replace-dialog__header" }, Zn = { class: "find-replace-dialog__title" }, Qn = { class: "find-replace-dialog__body" }, $n = { class: "find-replace-dialog__row" }, er = { class: "find-replace-dialog__count" }, tr = { class: "find-replace-dialog__options" }, nr = {
4476
4480
  key: 0,
4477
4481
  class: "find-replace-dialog__row"
4478
- }, rr = /*#__PURE__*/ H(/* @__PURE__ */ u({
4482
+ }, rr = {
4483
+ key: 1,
4484
+ role: "status",
4485
+ "aria-live": "polite",
4486
+ class: "find-replace-dialog__summary"
4487
+ }, ir = /*#__PURE__*/ U(/* @__PURE__ */ l({
4479
4488
  __name: "FindReplaceDialog",
4480
4489
  props: {
4481
4490
  isOpen: { type: Boolean },
4482
- view: {},
4483
- scrollVisiblePositionIntoView: { type: Function }
4491
+ search: {}
4484
4492
  },
4485
4493
  emits: ["close"],
4486
- setup(t, { emit: n }) {
4487
- let { t: i } = Z(), { Button: u, Input: d, Checkbox: p } = Q(), g = t, _ = n, v = S(null), b = S(!1), { searchText: x, replaceText: C, options: w, matches: D, currentIndex: k, performSearch: A, findNext: j, findPrevious: M, replaceCurrent: F, replaceAll: R, clear: z } = e({
4488
- editorView: E(g, "view"),
4489
- scrollVisiblePositionIntoView: (e) => g.scrollVisiblePositionIntoView?.(e)
4490
- }), ee = E(w, "matchCase"), te = E(w, "matchWholeWord"), ne = r(() => x.value.trim() ? D.value.length === 0 ? i("findReplace.noResults") : k.value < 0 ? i("dialogs.findReplace.matchesFound", { total: D.value.length }) : i("findReplace.matchCounter", {
4491
- current: k.value + 1,
4492
- total: D.value.length
4494
+ setup(e, { emit: t }) {
4495
+ let { t: l } = Z(), { Button: u, Input: f, Checkbox: h } = Q(), g = e, _ = t, y = x(null), b = x(!1), S = x(null), C = n(() => g.search.replacementRefusal.value !== null), { searchText: E, replaceText: O, options: k, matches: A, currentIndex: j, canReplaceCurrent: P, performSearch: L, scheduleSearch: R, findNext: ee, findPrevious: te, replaceCurrent: ne, replaceAll: re, clear: ie } = g.search, ae = () => {
4496
+ S.value = re();
4497
+ };
4498
+ M([
4499
+ E,
4500
+ () => k.matchCase,
4501
+ () => k.matchWholeWord
4502
+ ], () => {
4503
+ S.value = null;
4504
+ });
4505
+ let z = T(k, "matchCase"), B = T(k, "matchWholeWord"), V = n(() => E.value.trim() ? A.value.length === 0 ? l("findReplace.noResults") : j.value < 0 ? l("dialogs.findReplace.matchesFound", { total: A.value.length }) : l("findReplace.matchCounter", {
4506
+ current: j.value + 1,
4507
+ total: A.value.length
4493
4508
  }) : "");
4494
- N(() => g.isOpen, async (e) => {
4495
- e ? (await m(), v.value?.focus(), v.value?.select(), A()) : z();
4509
+ M(() => g.isOpen, async (e) => {
4510
+ e ? (await p(), y.value?.focus(), y.value?.select(), L()) : ie();
4496
4511
  });
4497
- function re() {
4498
- z(), _("close");
4512
+ function H() {
4513
+ S.value = null, ie(), _("close");
4499
4514
  }
4500
- function ie(e) {
4501
- e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? M() : j()) : e.key === "Escape" && re();
4515
+ function oe(e) {
4516
+ e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? te() : ee()) : e.key === "Escape" && H();
4502
4517
  }
4503
- return (e, n) => t.isOpen ? (y(), o("div", {
4518
+ return (t, n) => e.isOpen ? (v(), a("div", {
4504
4519
  key: 0,
4505
4520
  class: "find-replace-dialog",
4506
4521
  "data-testid": "find-replace-dialog",
4507
- onMousedown: n[5] ||= L(() => {}, ["stop"]),
4508
- onKeydown: n[6] ||= L(() => {}, ["stop"])
4509
- }, [s("div", Xn, [s("span", Zn, T(b.value ? O(i)("findReplace.findAndReplace") : O(i)("findReplace.find")), 1), l(O(u), {
4522
+ onMousedown: n[5] ||= I(() => {}, ["stop"]),
4523
+ onKeydown: n[6] ||= I(() => {}, ["stop"])
4524
+ }, [o("div", Xn, [o("span", Zn, w(b.value ? D(l)("findReplace.findAndReplace") : D(l)("findReplace.find")), 1), c(D(u), {
4510
4525
  class: "find-replace-dialog__close",
4511
4526
  variant: "ghost",
4512
4527
  size: "icon-xs",
4513
- onClick: re,
4514
- title: O(i)("findReplace.close")
4528
+ onClick: H,
4529
+ title: D(l)("findReplace.close")
4515
4530
  }, {
4516
- default: P(() => [...n[7] ||= [c(" ✕ ", -1)]]),
4531
+ default: N(() => [...n[7] ||= [s(" ✕ ", -1)]]),
4517
4532
  _: 1
4518
- }, 8, ["title"])]), s("div", Qn, [
4519
- s("div", $n, [
4520
- l(O(d), {
4533
+ }, 8, ["title"])]), o("div", Qn, [
4534
+ o("div", $n, [
4535
+ c(D(f), {
4521
4536
  ref_key: "searchInputRef",
4522
- ref: v,
4523
- modelValue: O(x),
4524
- "onUpdate:modelValue": n[0] ||= (e) => f(x) ? x.value = e : null,
4537
+ ref: y,
4538
+ modelValue: D(E),
4539
+ "onUpdate:modelValue": n[0] ||= (e) => d(E) ? E.value = e : null,
4525
4540
  class: "find-replace-dialog__input",
4526
4541
  "data-testid": "find-input",
4527
- placeholder: O(i)("findReplace.findPlaceholder"),
4528
- "aria-label": O(i)("findReplace.findText"),
4529
- onKeydown: ie,
4530
- onInput: O(A)
4542
+ placeholder: D(l)("findReplace.findPlaceholder"),
4543
+ "aria-label": D(l)("findReplace.findText"),
4544
+ onKeydown: oe,
4545
+ onInput: D(R)
4531
4546
  }, null, 8, [
4532
4547
  "modelValue",
4533
4548
  "placeholder",
4534
4549
  "aria-label",
4535
4550
  "onInput"
4536
4551
  ]),
4537
- s("span", er, T(ne.value), 1),
4538
- l(O(u), {
4552
+ o("span", er, w(V.value), 1),
4553
+ c(D(u), {
4539
4554
  variant: "ghost",
4540
4555
  size: "icon-xs",
4541
- title: O(i)("findReplace.previous"),
4542
- onMousedown: L(O(M), ["prevent"])
4556
+ title: D(l)("findReplace.previous"),
4557
+ onMousedown: I(D(te), ["prevent"])
4543
4558
  }, {
4544
- default: P(() => [...n[8] ||= [c("▲", -1)]]),
4559
+ default: N(() => [...n[8] ||= [s("▲", -1)]]),
4545
4560
  _: 1
4546
4561
  }, 8, ["title", "onMousedown"]),
4547
- l(O(u), {
4562
+ c(D(u), {
4548
4563
  variant: "ghost",
4549
4564
  size: "icon-xs",
4550
- title: O(i)("findReplace.next"),
4551
- onMousedown: L(O(j), ["prevent"])
4565
+ title: D(l)("findReplace.next"),
4566
+ onMousedown: I(D(ee), ["prevent"])
4552
4567
  }, {
4553
- default: P(() => [...n[9] ||= [c("▼", -1)]]),
4568
+ default: N(() => [...n[9] ||= [s("▼", -1)]]),
4554
4569
  _: 1
4555
4570
  }, 8, ["title", "onMousedown"])
4556
4571
  ]),
4557
- s("div", tr, [
4558
- s("label", null, [l(O(p), {
4559
- checked: ee.value,
4572
+ o("div", tr, [
4573
+ o("label", null, [c(D(h), {
4574
+ checked: z.value,
4560
4575
  "onUpdate:checked": n[1] ||= (e) => {
4561
- ee.value = e, O(A)();
4576
+ z.value = e, D(L)();
4562
4577
  }
4563
- }, null, 8, ["checked"]), c(" " + T(O(i)("findReplace.matchCase")), 1)]),
4564
- s("label", null, [l(O(p), {
4565
- checked: te.value,
4578
+ }, null, 8, ["checked"]), s(" " + w(D(l)("findReplace.matchCase")), 1)]),
4579
+ o("label", null, [c(D(h), {
4580
+ checked: B.value,
4566
4581
  "onUpdate:checked": n[2] ||= (e) => {
4567
- te.value = e, O(A)();
4582
+ B.value = e, D(L)();
4568
4583
  }
4569
- }, null, 8, ["checked"]), c(" " + T(O(i)("findReplace.wholeWords")), 1)]),
4570
- l(O(u), {
4571
- class: h(["find-replace-dialog__toggle", { active: b.value }]),
4584
+ }, null, 8, ["checked"]), s(" " + w(D(l)("findReplace.wholeWords")), 1)]),
4585
+ C.value ? i("", !0) : (v(), r(D(u), {
4586
+ key: 0,
4587
+ class: m(["find-replace-dialog__toggle", { active: b.value }]),
4572
4588
  "data-testid": "find-replace-toggle",
4573
4589
  variant: "ghost",
4574
4590
  size: "xs",
4575
- onMousedown: n[3] ||= L((e) => b.value = !b.value, ["prevent"]),
4576
- title: O(i)("dialogs.findReplace.toggleReplace")
4591
+ onMousedown: n[3] ||= I((e) => b.value = !b.value, ["prevent"]),
4592
+ title: D(l)("dialogs.findReplace.toggleReplace")
4577
4593
  }, {
4578
- default: P(() => [c(" ↔ " + T(O(i)("dialogs.findReplace.replaceButton")), 1)]),
4594
+ default: N(() => [s(" ↔ " + w(D(l)("dialogs.findReplace.replaceButton")), 1)]),
4579
4595
  _: 1
4580
- }, 8, ["class", "title"])
4596
+ }, 8, ["class", "title"]))
4581
4597
  ]),
4582
- b.value ? (y(), o("div", nr, [
4583
- l(O(d), {
4584
- modelValue: O(C),
4585
- "onUpdate:modelValue": n[4] ||= (e) => f(C) ? C.value = e : null,
4598
+ b.value && !C.value ? (v(), a("div", nr, [
4599
+ c(D(f), {
4600
+ modelValue: D(O),
4601
+ "onUpdate:modelValue": n[4] ||= (e) => d(O) ? O.value = e : null,
4586
4602
  class: "find-replace-dialog__input",
4587
4603
  "data-testid": "replace-input",
4588
- placeholder: O(i)("findReplace.replacePlaceholder"),
4589
- "aria-label": O(i)("findReplace.replaceText"),
4590
- onKeydown: I(L(O(F), ["prevent"]), ["enter"])
4604
+ placeholder: D(l)("findReplace.replacePlaceholder"),
4605
+ "aria-label": D(l)("findReplace.replaceText"),
4606
+ onKeydown: F(I(D(ne), ["prevent"]), ["enter"])
4591
4607
  }, null, 8, [
4592
4608
  "modelValue",
4593
4609
  "placeholder",
4594
4610
  "aria-label",
4595
4611
  "onKeydown"
4596
4612
  ]),
4597
- l(O(u), {
4613
+ c(D(u), {
4598
4614
  variant: "ghost",
4599
4615
  size: "xs",
4616
+ disabled: !D(P),
4600
4617
  "data-testid": "replace-current",
4601
- title: O(i)("findReplace.replaceCurrent"),
4602
- onMousedown: L(O(F), ["prevent"])
4618
+ title: D(l)("findReplace.replaceCurrent"),
4619
+ onMousedown: I(D(ne), ["prevent"])
4603
4620
  }, {
4604
- default: P(() => [c(T(O(i)("dialogs.findReplace.replaceButton")), 1)]),
4621
+ default: N(() => [s(w(D(l)("dialogs.findReplace.replaceButton")), 1)]),
4605
4622
  _: 1
4606
- }, 8, ["title", "onMousedown"]),
4607
- l(O(u), {
4623
+ }, 8, [
4624
+ "disabled",
4625
+ "title",
4626
+ "onMousedown"
4627
+ ]),
4628
+ c(D(u), {
4608
4629
  variant: "ghost",
4609
4630
  size: "xs",
4610
4631
  "data-testid": "replace-all",
4611
- title: O(i)("findReplace.replaceAll"),
4612
- onMousedown: L(O(R), ["prevent"])
4632
+ title: D(l)("findReplace.replaceAll"),
4633
+ onMousedown: I(ae, ["prevent"])
4613
4634
  }, {
4614
- default: P(() => [c(T(O(i)("findReplace.replaceAll")), 1)]),
4635
+ default: N(() => [s(w(D(l)("findReplace.replaceAll")), 1)]),
4615
4636
  _: 1
4616
- }, 8, ["title", "onMousedown"])
4617
- ])) : a("", !0)
4618
- ])], 32)) : a("", !0);
4637
+ }, 8, ["title"])
4638
+ ])) : i("", !0),
4639
+ S.value ? (v(), a("p", rr, w(D(l)("findReplace.replaceAllSummary", S.value)), 1)) : i("", !0)
4640
+ ])], 32)) : i("", !0);
4619
4641
  }
4620
- }), [["__scopeId", "data-v-26a1eaf0"]]), ir = { class: "dialog__header" }, ar = { class: "dialog__title" }, or = ["aria-label"], sr = { class: "dialog__body" }, cr = {
4642
+ }), [["__scopeId", "data-v-e9bd66ec"]]), ar = { class: "dialog__header" }, or = { class: "dialog__title" }, sr = ["aria-label"], cr = { class: "dialog__body" }, lr = {
4621
4643
  key: 0,
4622
4644
  class: "link-tabs",
4623
4645
  role: "tablist"
4624
- }, lr = ["aria-selected"], ur = ["aria-selected"], dr = {
4646
+ }, ur = ["aria-selected"], dr = ["aria-selected"], fr = {
4625
4647
  key: 1,
4626
4648
  class: "field"
4627
- }, fr = { class: "field__label" }, pr = [
4649
+ }, pr = { class: "field__label" }, mr = [
4628
4650
  "placeholder",
4629
4651
  "aria-invalid",
4630
4652
  "onKeydown"
4631
- ], mr = {
4653
+ ], hr = {
4632
4654
  key: 0,
4633
4655
  class: "field__error"
4634
- }, hr = {
4656
+ }, gr = {
4635
4657
  key: 1,
4636
4658
  class: "field__hint"
4637
- }, gr = {
4659
+ }, _r = {
4638
4660
  key: 2,
4639
4661
  class: "field"
4640
- }, _r = { class: "field__label" }, vr = ["onKeydown"], yr = { value: "" }, br = ["value"], xr = { class: "field" }, Sr = { class: "field__label" }, Cr = ["placeholder"], wr = { class: "field__hint" }, Tr = { class: "field" }, Er = { class: "field__label" }, Dr = ["placeholder"], Or = { class: "dialog__actions" }, kr = ["disabled"], Ar = /*#__PURE__*/ H(/* @__PURE__ */ u({
4662
+ }, vr = { class: "field__label" }, yr = ["onKeydown"], br = { value: "" }, xr = ["value"], Sr = { class: "field" }, Cr = { class: "field__label" }, wr = ["placeholder"], Tr = { class: "field__hint" }, Er = { class: "field" }, Dr = { class: "field__label" }, Or = ["placeholder"], kr = { class: "dialog__actions" }, Ar = ["disabled"], jr = /*#__PURE__*/ U(/* @__PURE__ */ l({
4641
4663
  __name: "HyperlinkDialog",
4642
4664
  props: {
4643
4665
  isOpen: { type: Boolean },
@@ -4649,10 +4671,10 @@ var Yn = u({
4649
4671
  "submit",
4650
4672
  "remove"
4651
4673
  ],
4652
- setup(e, { emit: n }) {
4653
- let { t: i } = Z(), c = e, l = n, u = S(null), d = S(null), f = S("url"), p = S(""), g = S(""), _ = S(""), v = S(""), b = S(!1), x = S(""), w = S(!1), E = r(() => c.bookmarks ?? []), D = r(() => f.value === "bookmark" ? !!g.value : !!p.value.trim() && !x.value);
4654
- N(p, () => {
4655
- x.value &&= "";
4674
+ setup(t, { emit: r }) {
4675
+ let { t: s } = Z(), c = t, l = r, u = x(null), d = x(null), f = x("url"), h = x(""), g = x(""), _ = x(""), y = x(""), b = x(!1), C = x(""), T = x(!1), E = n(() => c.bookmarks ?? []), O = n(() => f.value === "bookmark" ? !!g.value : !!h.value.trim() && !C.value);
4676
+ M(h, () => {
4677
+ C.value &&= "";
4656
4678
  });
4657
4679
  function k(e) {
4658
4680
  let t = e.trim();
@@ -4666,25 +4688,25 @@ var Yn = u({
4666
4688
  return !1;
4667
4689
  }
4668
4690
  }
4669
- function A(e) {
4691
+ function N(e) {
4670
4692
  let t = e.trim();
4671
4693
  return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
4672
4694
  }
4673
- N(() => c.isOpen, async (e) => {
4695
+ M(() => c.isOpen, async (e) => {
4674
4696
  if (e) {
4675
4697
  let e = c.view;
4676
4698
  if (e) {
4677
4699
  let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
4678
4700
  if (a) {
4679
4701
  let e = a.attrs.href || "";
4680
- e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1), p.value = "") : (f.value = "url", p.value = e, g.value = ""), v.value = a.attrs.tooltip || "", b.value = !0;
4681
- } else f.value = "url", p.value = "", g.value = "", v.value = "", b.value = !1;
4702
+ e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1), h.value = "") : (f.value = "url", h.value = e, g.value = ""), y.value = a.attrs.tooltip || "", b.value = !0;
4703
+ } else f.value = "url", h.value = "", g.value = "", y.value = "", b.value = !1;
4682
4704
  n ? _.value = "" : _.value = e.state.doc.textBetween(r, i);
4683
4705
  }
4684
- await m(), f.value === "bookmark" ? d.value?.focus() : u.value?.focus();
4685
- } else w.value = !1, x.value = "";
4706
+ await p(), f.value === "bookmark" ? d.value?.focus() : u.value?.focus();
4707
+ } else T.value = !1, C.value = "";
4686
4708
  });
4687
- function P() {
4709
+ function L() {
4688
4710
  l("close");
4689
4711
  }
4690
4712
  function R() {
@@ -4693,113 +4715,113 @@ var Yn = u({
4693
4715
  l("submit", {
4694
4716
  bookmark: g.value,
4695
4717
  displayText: _.value,
4696
- tooltip: v.value
4697
- }), P();
4718
+ tooltip: y.value
4719
+ }), L();
4698
4720
  return;
4699
4721
  }
4700
- if (w.value = !0, !k(p.value)) {
4701
- x.value = p.value.trim() ? i("dialogs.hyperlink.invalidUrl") : i("dialogs.hyperlink.urlRequired");
4722
+ if (T.value = !0, !k(h.value)) {
4723
+ C.value = h.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
4702
4724
  return;
4703
4725
  }
4704
4726
  l("submit", {
4705
- url: A(p.value),
4727
+ url: N(h.value),
4706
4728
  displayText: _.value,
4707
- tooltip: v.value
4708
- }), P();
4729
+ tooltip: y.value
4730
+ }), L();
4709
4731
  }
4710
- function z() {
4732
+ function ee() {
4711
4733
  if (f.value === "url") {
4712
- if (w.value = !0, !p.value.trim()) {
4713
- x.value = "";
4734
+ if (T.value = !0, !h.value.trim()) {
4735
+ C.value = "";
4714
4736
  return;
4715
4737
  }
4716
- x.value = k(p.value) ? "" : i("dialogs.hyperlink.invalidUrl");
4738
+ C.value = k(h.value) ? "" : s("dialogs.hyperlink.invalidUrl");
4717
4739
  }
4718
4740
  }
4719
- function ee() {
4720
- l("remove"), P();
4741
+ function te() {
4742
+ l("remove"), L();
4721
4743
  }
4722
- return (n, r) => e.isOpen ? (y(), o("div", {
4744
+ return (n, r) => t.isOpen ? (v(), a("div", {
4723
4745
  key: 0,
4724
4746
  class: "dialog-overlay",
4725
- onMousedown: L(P, ["self"])
4726
- }, [s("div", {
4747
+ onMousedown: I(L, ["self"])
4748
+ }, [o("div", {
4727
4749
  class: "dialog",
4728
- onMousedown: r[6] ||= L(() => {}, ["stop"]),
4729
- onKeydown: r[7] ||= L(() => {}, ["stop"])
4730
- }, [s("div", ir, [s("span", ar, T(b.value ? O(i)("dialogs.hyperlink.titleEdit") : O(i)("dialogs.hyperlink.titleInsert")), 1), s("button", {
4750
+ onMousedown: r[6] ||= I(() => {}, ["stop"]),
4751
+ onKeydown: r[7] ||= I(() => {}, ["stop"])
4752
+ }, [o("div", ar, [o("span", or, w(b.value ? D(s)("dialogs.hyperlink.titleEdit") : D(s)("dialogs.hyperlink.titleInsert")), 1), o("button", {
4731
4753
  class: "dialog__close",
4732
- "aria-label": O(i)("common.closeDialog"),
4733
- onClick: P
4734
- }, " ✕ ", 8, or)]), s("div", sr, [
4735
- E.value.length > 0 ? (y(), o("div", cr, [s("button", {
4736
- class: h(["link-tab", { active: f.value === "url" }]),
4754
+ "aria-label": D(s)("common.closeDialog"),
4755
+ onClick: L
4756
+ }, " ✕ ", 8, sr)]), o("div", cr, [
4757
+ E.value.length > 0 ? (v(), a("div", lr, [o("button", {
4758
+ class: m(["link-tab", { active: f.value === "url" }]),
4737
4759
  role: "tab",
4738
4760
  "aria-selected": f.value === "url",
4739
- onMousedown: r[0] ||= L((e) => f.value = "url", ["prevent"])
4740
- }, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43, lr), s("button", {
4741
- class: h(["link-tab", { active: f.value === "bookmark" }]),
4761
+ onMousedown: r[0] ||= I((e) => f.value = "url", ["prevent"])
4762
+ }, w(D(s)("dialogs.hyperlink.tabWebAddress")), 43, ur), o("button", {
4763
+ class: m(["link-tab", { active: f.value === "bookmark" }]),
4742
4764
  role: "tab",
4743
4765
  "aria-selected": f.value === "bookmark",
4744
- onMousedown: r[1] ||= L((e) => f.value = "bookmark", ["prevent"])
4745
- }, T(O(i)("dialogs.hyperlink.tabBookmark")), 43, ur)])) : a("", !0),
4746
- f.value === "url" ? (y(), o("div", dr, [
4747
- s("label", fr, T(O(i)("dialogs.hyperlink.urlLabel")), 1),
4748
- F(s("input", {
4766
+ onMousedown: r[1] ||= I((e) => f.value = "bookmark", ["prevent"])
4767
+ }, w(D(s)("dialogs.hyperlink.tabBookmark")), 43, dr)])) : i("", !0),
4768
+ f.value === "url" ? (v(), a("div", fr, [
4769
+ o("label", pr, w(D(s)("dialogs.hyperlink.urlLabel")), 1),
4770
+ P(o("input", {
4749
4771
  ref_key: "urlInputRef",
4750
4772
  ref: u,
4751
- "onUpdate:modelValue": r[2] ||= (e) => p.value = e,
4752
- class: h(["field__input", { "field__input--error": w.value && !!x.value }]),
4753
- placeholder: O(i)("dialogs.hyperlink.urlPlaceholder"),
4754
- "aria-invalid": w.value && !!x.value,
4755
- onKeydown: I(L(R, ["prevent"]), ["enter"]),
4756
- onBlur: z
4757
- }, null, 42, pr), [[M, p.value]]),
4758
- w.value && x.value ? (y(), o("div", mr, T(x.value), 1)) : (y(), o("div", hr, T(O(i)("dialogs.hyperlink.urlHint")), 1))
4759
- ])) : (y(), o("div", gr, [s("label", _r, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
4773
+ "onUpdate:modelValue": r[2] ||= (e) => h.value = e,
4774
+ class: m(["field__input", { "field__input--error": T.value && !!C.value }]),
4775
+ placeholder: D(s)("dialogs.hyperlink.urlPlaceholder"),
4776
+ "aria-invalid": T.value && !!C.value,
4777
+ onKeydown: F(I(R, ["prevent"]), ["enter"]),
4778
+ onBlur: ee
4779
+ }, null, 42, mr), [[j, h.value]]),
4780
+ T.value && C.value ? (v(), a("div", hr, w(C.value), 1)) : (v(), a("div", gr, w(D(s)("dialogs.hyperlink.urlHint")), 1))
4781
+ ])) : (v(), a("div", _r, [o("label", vr, w(D(s)("dialogs.hyperlink.bookmarkLabel")), 1), P(o("select", {
4760
4782
  ref_key: "bookmarkSelectRef",
4761
4783
  ref: d,
4762
4784
  "onUpdate:modelValue": r[3] ||= (e) => g.value = e,
4763
4785
  class: "field__input",
4764
- onKeydown: I(L(R, ["prevent"]), ["enter"])
4765
- }, [s("option", yr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
4786
+ onKeydown: F(I(R, ["prevent"]), ["enter"])
4787
+ }, [o("option", br, w(D(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (v(!0), a(e, null, S(E.value, (e) => (v(), a("option", {
4766
4788
  key: e.name,
4767
4789
  value: e.name
4768
- }, T(e.label || e.name), 9, br))), 128))], 40, vr), [[j, g.value]])])),
4769
- s("div", xr, [
4770
- s("label", Sr, T(O(i)("dialogs.hyperlink.displayTextLabel")), 1),
4771
- F(s("input", {
4790
+ }, w(e.label || e.name), 9, xr))), 128))], 40, yr), [[A, g.value]])])),
4791
+ o("div", Sr, [
4792
+ o("label", Cr, w(D(s)("dialogs.hyperlink.displayTextLabel")), 1),
4793
+ P(o("input", {
4772
4794
  "onUpdate:modelValue": r[4] ||= (e) => _.value = e,
4773
4795
  class: "field__input",
4774
- placeholder: O(i)("dialogs.hyperlink.displayTextPlaceholder")
4775
- }, null, 8, Cr), [[M, _.value]]),
4776
- s("div", wr, T(O(i)("dialogs.hyperlink.displayTextHint")), 1)
4796
+ placeholder: D(s)("dialogs.hyperlink.displayTextPlaceholder")
4797
+ }, null, 8, wr), [[j, _.value]]),
4798
+ o("div", Tr, w(D(s)("dialogs.hyperlink.displayTextHint")), 1)
4777
4799
  ]),
4778
- s("div", Tr, [s("label", Er, T(O(i)("dialogs.hyperlink.tooltipLabel")), 1), F(s("input", {
4779
- "onUpdate:modelValue": r[5] ||= (e) => v.value = e,
4800
+ o("div", Er, [o("label", Dr, w(D(s)("dialogs.hyperlink.tooltipLabel")), 1), P(o("input", {
4801
+ "onUpdate:modelValue": r[5] ||= (e) => y.value = e,
4780
4802
  class: "field__input",
4781
- placeholder: O(i)("dialogs.hyperlink.tooltipPlaceholder")
4782
- }, null, 8, Dr), [[M, v.value]])]),
4783
- s("div", Or, [
4784
- b.value ? (y(), o("button", {
4803
+ placeholder: D(s)("dialogs.hyperlink.tooltipPlaceholder")
4804
+ }, null, 8, Or), [[j, y.value]])]),
4805
+ o("div", kr, [
4806
+ b.value ? (v(), a("button", {
4785
4807
  key: 0,
4786
4808
  class: "dialog__btn dialog__btn--danger",
4787
- onMousedown: L(ee, ["prevent"])
4788
- }, T(O(i)("dialogs.hyperlink.removeLink")), 33)) : a("", !0),
4789
- r[8] ||= s("div", { style: { flex: "1" } }, null, -1),
4790
- s("button", {
4809
+ onMousedown: I(te, ["prevent"])
4810
+ }, w(D(s)("dialogs.hyperlink.removeLink")), 33)) : i("", !0),
4811
+ r[8] ||= o("div", { style: { flex: "1" } }, null, -1),
4812
+ o("button", {
4791
4813
  class: "dialog__btn",
4792
- onClick: P
4793
- }, T(O(i)("common.cancel")), 1),
4794
- s("button", {
4814
+ onClick: L
4815
+ }, w(D(s)("common.cancel")), 1),
4816
+ o("button", {
4795
4817
  class: "dialog__btn dialog__btn--primary",
4796
- onMousedown: L(R, ["prevent"]),
4797
- disabled: !D.value
4798
- }, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, kr)
4818
+ onMousedown: I(R, ["prevent"]),
4819
+ disabled: !O.value
4820
+ }, w(b.value ? D(s)("common.update") : D(s)("common.insert")), 41, Ar)
4799
4821
  ])
4800
- ])], 32)], 32)) : a("", !0);
4822
+ ])], 32)], 32)) : i("", !0);
4801
4823
  }
4802
- }), [["__scopeId", "data-v-3078565e"]]), jr = { class: "dialog__header" }, Mr = { class: "dialog__title" }, Nr = ["aria-label"], Pr = { class: "dialog__body" }, Fr = { class: "field" }, Ir = { class: "field__label" }, Lr = ["placeholder"], Rr = { class: "field" }, zr = { class: "field__label" }, Br = { value: "inline" }, Vr = { value: "wrapRight" }, Hr = { value: "wrapLeft" }, Ur = { value: "topAndBottom" }, Wr = { value: "behind" }, Gr = { value: "inFront" }, Kr = { class: "field" }, qr = { class: "field__label" }, Jr = { class: "field-row" }, Yr = { value: "solid" }, Xr = { value: "dashed" }, Zr = { value: "dotted" }, Qr = { value: "double" }, $r = { class: "field" }, ei = { class: "field__label" }, ti = { class: "field-row" }, ni = ["value"], ri = ["value"], ii = { class: "field__checkbox" }, ai = { class: "dialog__actions" }, oi = /*#__PURE__*/ H(/* @__PURE__ */ u({
4824
+ }), [["__scopeId", "data-v-3078565e"]]), Mr = { class: "dialog__header" }, Nr = { class: "dialog__title" }, Pr = ["aria-label"], Fr = { class: "dialog__body" }, Ir = { class: "field" }, Lr = { class: "field__label" }, Rr = ["placeholder"], zr = { class: "field" }, Br = { class: "field__label" }, Vr = { value: "inline" }, Hr = { value: "wrapRight" }, Ur = { value: "wrapLeft" }, Wr = { value: "topAndBottom" }, Gr = { value: "behind" }, Kr = { value: "inFront" }, qr = { class: "field" }, Jr = { class: "field__label" }, Yr = { class: "field-row" }, Xr = { value: "solid" }, Zr = { value: "dashed" }, Qr = { value: "dotted" }, $r = { value: "double" }, ei = { class: "field" }, ti = { class: "field__label" }, ni = { class: "field-row" }, ri = ["value"], ii = ["value"], ai = { class: "field__checkbox" }, oi = { class: "dialog__actions" }, si = /*#__PURE__*/ U(/* @__PURE__ */ l({
4803
4825
  __name: "ImagePropertiesDialog",
4804
4826
  props: {
4805
4827
  isOpen: { type: Boolean },
@@ -4808,8 +4830,8 @@ var Yn = u({
4808
4830
  },
4809
4831
  emits: ["close"],
4810
4832
  setup(e, { emit: t }) {
4811
- let { t: n } = Z(), { Dialog: r } = Q(), a = e, o = t, l = S(""), u = S("inline"), d = S(0), f = S("solid"), p = S("#000000"), m = S(200), h = S(150), g = S(!0), _ = 1;
4812
- N(() => a.isOpen, (e) => {
4833
+ let { t: n } = Z(), { Dialog: i } = Q(), a = e, c = t, l = x(""), u = x("inline"), d = x(0), f = x("solid"), p = x("#000000"), m = x(200), h = x(150), g = x(!0), _ = 1;
4834
+ M(() => a.isOpen, (e) => {
4813
4835
  if (!(!e || !a.view || a.pmPos === null)) try {
4814
4836
  let e = a.view.state.doc.nodeAt(a.pmPos);
4815
4837
  if (e && e.type.name === "image") {
@@ -4820,7 +4842,7 @@ var Yn = u({
4820
4842
  }
4821
4843
  } catch {}
4822
4844
  });
4823
- function v(e) {
4845
+ function y(e) {
4824
4846
  if (!(e.target instanceof HTMLInputElement)) return;
4825
4847
  let t = Number(e.target.value);
4826
4848
  isNaN(t) || t < 1 || (m.value = t, g.value && _ > 0 && (h.value = Math.round(t / _)));
@@ -4830,8 +4852,8 @@ var Yn = u({
4830
4852
  let t = Number(e.target.value);
4831
4853
  isNaN(t) || t < 1 || (h.value = t, g.value && _ > 0 && (m.value = Math.round(t * _)));
4832
4854
  }
4833
- function x() {
4834
- o("close");
4855
+ function S() {
4856
+ c("close");
4835
4857
  }
4836
4858
  function C() {
4837
4859
  let e = a.view;
@@ -4874,44 +4896,44 @@ var Yn = u({
4874
4896
  });
4875
4897
  e.dispatch(o);
4876
4898
  } catch {}
4877
- x();
4899
+ S();
4878
4900
  }
4879
4901
  }
4880
- return (t, a) => (y(), i(O(r), {
4902
+ return (t, a) => (v(), r(D(i), {
4881
4903
  open: e.isOpen,
4882
- "aria-label": O(n)("dialogs.imageProperties.title"),
4904
+ "aria-label": D(n)("dialogs.imageProperties.title"),
4883
4905
  style: {
4884
4906
  minWidth: "400px",
4885
4907
  maxWidth: "90vw"
4886
4908
  },
4887
- onClose: x
4909
+ onClose: S
4888
4910
  }, {
4889
- default: P(() => [s("div", jr, [s("span", Mr, T(O(n)("dialogs.imageProperties.title")), 1), s("button", {
4911
+ default: N(() => [o("div", Mr, [o("span", Nr, w(D(n)("dialogs.imageProperties.title")), 1), o("button", {
4890
4912
  class: "dialog__close",
4891
- "aria-label": O(n)("common.closeDialog"),
4892
- onClick: x
4893
- }, "✕", 8, Nr)]), s("div", Pr, [
4894
- s("div", Fr, [s("label", Ir, T(O(n)("dialogs.imageProperties.altText")), 1), F(s("textarea", {
4913
+ "aria-label": D(n)("common.closeDialog"),
4914
+ onClick: S
4915
+ }, "✕", 8, Pr)]), o("div", Fr, [
4916
+ o("div", Ir, [o("label", Lr, w(D(n)("dialogs.imageProperties.altText")), 1), P(o("textarea", {
4895
4917
  "onUpdate:modelValue": a[0] ||= (e) => l.value = e,
4896
4918
  class: "field__textarea",
4897
- placeholder: O(n)("dialogs.imageProperties.altTextPlaceholder"),
4919
+ placeholder: D(n)("dialogs.imageProperties.altTextPlaceholder"),
4898
4920
  rows: "2"
4899
- }, null, 8, Lr), [[M, l.value]])]),
4900
- s("div", Rr, [s("label", zr, T(O(n)("dialogs.imageProperties.textWrapping")), 1), F(s("select", {
4921
+ }, null, 8, Rr), [[j, l.value]])]),
4922
+ o("div", zr, [o("label", Br, w(D(n)("dialogs.imageProperties.textWrapping")), 1), P(o("select", {
4901
4923
  "onUpdate:modelValue": a[1] ||= (e) => u.value = e,
4902
4924
  class: "field__select"
4903
4925
  }, [
4904
- s("option", Br, T(O(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
4905
- s("option", Vr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
4906
- s("option", Hr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
4907
- s("option", Ur, T(O(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
4908
- s("option", Wr, T(O(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
4909
- s("option", Gr, T(O(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
4910
- ], 512), [[j, u.value]])]),
4911
- s("div", Kr, [s("label", qr, T(O(n)("dialogs.imageProperties.border")), 1), s("div", Jr, [
4912
- s("label", null, [
4913
- c(T(O(n)("dialogs.imageProperties.width")) + ": ", 1),
4914
- F(s("input", {
4926
+ o("option", Vr, w(D(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
4927
+ o("option", Hr, w(D(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
4928
+ o("option", Ur, w(D(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
4929
+ o("option", Wr, w(D(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
4930
+ o("option", Gr, w(D(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
4931
+ o("option", Kr, w(D(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
4932
+ ], 512), [[A, u.value]])]),
4933
+ o("div", qr, [o("label", Jr, w(D(n)("dialogs.imageProperties.border")), 1), o("div", Yr, [
4934
+ o("label", null, [
4935
+ s(w(D(n)("dialogs.imageProperties.width")) + ": ", 1),
4936
+ P(o("input", {
4915
4937
  "onUpdate:modelValue": a[2] ||= (e) => d.value = e,
4916
4938
  type: "number",
4917
4939
  min: "0",
@@ -4919,165 +4941,165 @@ var Yn = u({
4919
4941
  step: "0.5",
4920
4942
  class: "field__input--small"
4921
4943
  }, null, 512), [[
4922
- M,
4944
+ j,
4923
4945
  d.value,
4924
4946
  void 0,
4925
4947
  { number: !0 }
4926
4948
  ]]),
4927
- c(T(O(n)("common.px")), 1)
4949
+ s(w(D(n)("common.px")), 1)
4928
4950
  ]),
4929
- s("label", null, [c(T(O(n)("dialogs.imageProperties.style")) + ": ", 1), F(s("select", {
4951
+ o("label", null, [s(w(D(n)("dialogs.imageProperties.style")) + ": ", 1), P(o("select", {
4930
4952
  "onUpdate:modelValue": a[3] ||= (e) => f.value = e,
4931
4953
  class: "field__select--small"
4932
4954
  }, [
4933
- s("option", Yr, T(O(n)("dialogs.imageProperties.borderStyles.solid")), 1),
4934
- s("option", Xr, T(O(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
4935
- s("option", Zr, T(O(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
4936
- s("option", Qr, T(O(n)("dialogs.imageProperties.borderStyles.double")), 1)
4937
- ], 512), [[j, f.value]])]),
4938
- s("label", null, [c(T(O(n)("dialogs.imageProperties.color")) + ": ", 1), F(s("input", {
4955
+ o("option", Xr, w(D(n)("dialogs.imageProperties.borderStyles.solid")), 1),
4956
+ o("option", Zr, w(D(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
4957
+ o("option", Qr, w(D(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
4958
+ o("option", $r, w(D(n)("dialogs.imageProperties.borderStyles.double")), 1)
4959
+ ], 512), [[A, f.value]])]),
4960
+ o("label", null, [s(w(D(n)("dialogs.imageProperties.color")) + ": ", 1), P(o("input", {
4939
4961
  "onUpdate:modelValue": a[4] ||= (e) => p.value = e,
4940
4962
  type: "color",
4941
4963
  class: "field__color"
4942
- }, null, 512), [[M, p.value]])])
4964
+ }, null, 512), [[j, p.value]])])
4943
4965
  ])]),
4944
- s("div", $r, [
4945
- s("label", ei, T(O(n)("dialogs.imageProperties.dimensions")), 1),
4946
- s("div", ti, [s("label", null, [
4947
- c(T(O(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
4948
- s("input", {
4966
+ o("div", ei, [
4967
+ o("label", ti, w(D(n)("dialogs.imageProperties.dimensions")), 1),
4968
+ o("div", ni, [o("label", null, [
4969
+ s(w(D(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
4970
+ o("input", {
4949
4971
  value: m.value,
4950
4972
  type: "number",
4951
4973
  min: "1",
4952
4974
  max: "2000",
4953
4975
  class: "field__input--small",
4954
- onInput: v
4955
- }, null, 40, ni),
4956
- c(T(O(n)("common.px")), 1)
4957
- ]), s("label", null, [
4958
- c(T(O(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
4959
- s("input", {
4976
+ onInput: y
4977
+ }, null, 40, ri),
4978
+ s(w(D(n)("common.px")), 1)
4979
+ ]), o("label", null, [
4980
+ s(w(D(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
4981
+ o("input", {
4960
4982
  value: h.value,
4961
4983
  type: "number",
4962
4984
  min: "1",
4963
4985
  max: "2000",
4964
4986
  class: "field__input--small",
4965
4987
  onInput: b
4966
- }, null, 40, ri),
4967
- c(T(O(n)("common.px")), 1)
4988
+ }, null, 40, ii),
4989
+ s(w(D(n)("common.px")), 1)
4968
4990
  ])]),
4969
- s("label", ii, [F(s("input", {
4991
+ o("label", ai, [P(o("input", {
4970
4992
  "onUpdate:modelValue": a[5] ||= (e) => g.value = e,
4971
4993
  type: "checkbox"
4972
- }, null, 512), [[k, g.value]]), c(" " + T(O(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
4994
+ }, null, 512), [[O, g.value]]), s(" " + w(D(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
4973
4995
  ]),
4974
- s("div", ai, [s("button", {
4996
+ o("div", oi, [o("button", {
4975
4997
  class: "dialog__btn",
4976
- onClick: x
4977
- }, T(O(n)("common.cancel")), 1), s("button", {
4998
+ onClick: S
4999
+ }, w(D(n)("common.cancel")), 1), o("button", {
4978
5000
  class: "dialog__btn dialog__btn--primary",
4979
- onMousedown: L(C, ["prevent"])
4980
- }, T(O(n)("common.apply")), 33)])
5001
+ onMousedown: I(C, ["prevent"])
5002
+ }, w(D(n)("common.apply")), 33)])
4981
5003
  ])]),
4982
5004
  _: 1
4983
5005
  }, 8, ["open", "aria-label"]));
4984
5006
  }
4985
- }), [["__scopeId", "data-v-4879cd1c"]]), si = { class: "dialog__header" }, ci = { class: "dialog__title" }, li = ["title"], ui = { class: "dialog__body" }, di = ["placeholder"], fi = {
5007
+ }), [["__scopeId", "data-v-4879cd1c"]]), ci = { class: "dialog__header" }, li = { class: "dialog__title" }, ui = ["title"], di = { class: "dialog__body" }, fi = ["placeholder"], pi = {
4986
5008
  key: 0,
4987
5009
  class: "symbol-tabs"
4988
- }, pi = ["onMousedown"], mi = { class: "symbol-grid" }, hi = [
5010
+ }, mi = ["onMousedown"], hi = { class: "symbol-grid" }, gi = [
4989
5011
  "title",
4990
5012
  "onClick",
4991
5013
  "onDblclick"
4992
- ], gi = {
5014
+ ], _i = {
4993
5015
  key: 0,
4994
5016
  class: "symbol-empty"
4995
- }, _i = {
5017
+ }, vi = {
4996
5018
  key: 1,
4997
5019
  class: "symbol-preview"
4998
- }, vi = { class: "symbol-preview__char" }, yi = { class: "symbol-preview__info" }, bi = {
5020
+ }, yi = { class: "symbol-preview__char" }, bi = { class: "symbol-preview__info" }, xi = {
4999
5021
  key: 2,
5000
5022
  class: "symbol-recent"
5001
- }, xi = { class: "symbol-recent__label" }, Si = ["onDblclick", "onClick"], Ci = { class: "dialog__actions" }, wi = ["disabled"], Ti = /*#__PURE__*/ H(/* @__PURE__ */ u({
5023
+ }, Si = { class: "symbol-recent__label" }, Ci = ["onDblclick", "onClick"], wi = { class: "dialog__actions" }, Ti = ["disabled"], Ei = /*#__PURE__*/ U(/* @__PURE__ */ l({
5002
5024
  __name: "InsertSymbolDialog",
5003
5025
  props: { isOpen: { type: Boolean } },
5004
5026
  emits: ["close", "insert"],
5005
- setup(e, { emit: n }) {
5006
- let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = ie, v = r(() => {
5007
- if (d.value) return ae(d.value);
5027
+ setup(t, { emit: r }) {
5028
+ let { t: s } = Z(), c = t, l = r, u = x(null), d = x(""), f = x("Common"), h = x(""), g = x([]), _ = ae, y = n(() => {
5029
+ if (d.value) return z(d.value);
5008
5030
  let e = _.find((e) => e.name === f.value);
5009
5031
  return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
5010
5032
  });
5011
- N(() => c.isOpen, async (e) => {
5012
- e && (await m(), u.value?.focus());
5033
+ M(() => c.isOpen, async (e) => {
5034
+ e && (await p(), u.value?.focus());
5013
5035
  });
5014
5036
  function b() {
5015
5037
  l("close");
5016
5038
  }
5017
- function x(e) {
5039
+ function C(e) {
5018
5040
  e && (g.value = [e, ...g.value.filter((t) => t !== e)].slice(0, 10), l("insert", e));
5019
5041
  }
5020
- return (n, r) => e.isOpen ? (y(), o("div", {
5042
+ return (n, r) => t.isOpen ? (v(), a("div", {
5021
5043
  key: 0,
5022
5044
  class: "dialog-overlay",
5023
- onMousedown: L(b, ["self"])
5024
- }, [s("div", {
5045
+ onMousedown: I(b, ["self"])
5046
+ }, [o("div", {
5025
5047
  class: "dialog symbol-dialog",
5026
- onMousedown: r[2] ||= L(() => {}, ["stop"]),
5027
- onKeydown: r[3] ||= L(() => {}, ["stop"])
5028
- }, [s("div", si, [s("span", ci, T(O(i)("dialogs.insertSymbol.title")), 1), s("button", {
5048
+ onMousedown: r[2] ||= I(() => {}, ["stop"]),
5049
+ onKeydown: r[3] ||= I(() => {}, ["stop"])
5050
+ }, [o("div", ci, [o("span", li, w(D(s)("dialogs.insertSymbol.title")), 1), o("button", {
5029
5051
  class: "dialog__close",
5030
- title: O(i)("common.closeDialog"),
5052
+ title: D(s)("common.closeDialog"),
5031
5053
  onClick: b
5032
- }, "✕", 8, li)]), s("div", ui, [
5033
- F(s("input", {
5054
+ }, "✕", 8, ui)]), o("div", di, [
5055
+ P(o("input", {
5034
5056
  ref_key: "searchRef",
5035
5057
  ref: u,
5036
5058
  "onUpdate:modelValue": r[0] ||= (e) => d.value = e,
5037
5059
  class: "symbol-search",
5038
- placeholder: O(i)("dialogs.insertSymbol.searchPlaceholder"),
5039
- onKeydown: I(b, ["escape"])
5040
- }, null, 40, di), [[M, d.value]]),
5041
- d.value ? a("", !0) : (y(), o("div", fi, [(y(!0), o(t, null, C(O(_), (e) => (y(), o("button", {
5060
+ placeholder: D(s)("dialogs.insertSymbol.searchPlaceholder"),
5061
+ onKeydown: F(b, ["escape"])
5062
+ }, null, 40, fi), [[j, d.value]]),
5063
+ d.value ? i("", !0) : (v(), a("div", pi, [(v(!0), a(e, null, S(D(_), (e) => (v(), a("button", {
5042
5064
  key: e.name,
5043
- class: h(["symbol-tab", { active: f.value === e.name }]),
5044
- onMousedown: L((t) => f.value = e.name, ["prevent"])
5045
- }, T(O(i)(e.nameKey)), 43, pi))), 128))])),
5046
- s("div", mi, [(y(!0), o(t, null, C(v.value, (e) => (y(), o("button", {
5065
+ class: m(["symbol-tab", { active: f.value === e.name }]),
5066
+ onMousedown: I((t) => f.value = e.name, ["prevent"])
5067
+ }, w(D(s)(e.nameKey)), 43, mi))), 128))])),
5068
+ o("div", hi, [(v(!0), a(e, null, S(y.value, (e) => (v(), a("button", {
5047
5069
  key: e.char,
5048
- class: h(["symbol-cell", { selected: p.value === e.char }]),
5070
+ class: m(["symbol-cell", { selected: h.value === e.char }]),
5049
5071
  title: e.name,
5050
- onClick: (t) => p.value = e.char,
5051
- onDblclick: (t) => x(e.char)
5052
- }, T(e.char), 43, hi))), 128)), v.value.length === 0 ? (y(), o("div", gi, T(d.value ? O(i)("dialogs.insertSymbol.noResults", { query: d.value }) : O(i)("dialogs.insertSymbol.noResultsEmpty")), 1)) : a("", !0)]),
5053
- p.value ? (y(), o("div", _i, [s("span", vi, T(p.value), 1), s("span", yi, "U+" + T(p.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : a("", !0),
5054
- g.value.length > 0 && !d.value ? (y(), o("div", bi, [s("div", xi, T(O(i)("dialogs.insertSymbol.recent")), 1), (y(!0), o(t, null, C(g.value, (e) => (y(), o("button", {
5072
+ onClick: (t) => h.value = e.char,
5073
+ onDblclick: (t) => C(e.char)
5074
+ }, w(e.char), 43, gi))), 128)), y.value.length === 0 ? (v(), a("div", _i, w(d.value ? D(s)("dialogs.insertSymbol.noResults", { query: d.value }) : D(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : i("", !0)]),
5075
+ h.value ? (v(), a("div", vi, [o("span", yi, w(h.value), 1), o("span", bi, "U+" + w(h.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : i("", !0),
5076
+ g.value.length > 0 && !d.value ? (v(), a("div", xi, [o("div", Si, w(D(s)("dialogs.insertSymbol.recent")), 1), (v(!0), a(e, null, S(g.value, (e) => (v(), a("button", {
5055
5077
  key: e,
5056
5078
  class: "symbol-cell symbol-cell--small",
5057
- onDblclick: (t) => x(e),
5058
- onClick: (t) => p.value = e
5059
- }, T(e), 41, Si))), 128))])) : a("", !0),
5060
- s("div", Ci, [s("button", {
5079
+ onDblclick: (t) => C(e),
5080
+ onClick: (t) => h.value = e
5081
+ }, w(e), 41, Ci))), 128))])) : i("", !0),
5082
+ o("div", wi, [o("button", {
5061
5083
  class: "dialog__btn",
5062
5084
  onClick: b
5063
- }, T(O(i)("common.cancel")), 1), s("button", {
5085
+ }, w(D(s)("common.cancel")), 1), o("button", {
5064
5086
  class: "dialog__btn dialog__btn--primary",
5065
- onMousedown: r[1] ||= L((e) => x(p.value), ["prevent"]),
5066
- disabled: !p.value
5067
- }, T(O(i)("common.insert")), 41, wi)])
5068
- ])], 32)], 32)) : a("", !0);
5087
+ onMousedown: r[1] ||= I((e) => C(h.value), ["prevent"]),
5088
+ disabled: !h.value
5089
+ }, w(D(s)("common.insert")), 41, Ti)])
5090
+ ])], 32)], 32)) : i("", !0);
5069
5091
  }
5070
- }), [["__scopeId", "data-v-dc4046d2"]]), Ei = { class: "ps-header" }, Di = { class: "ps-body" }, Oi = { class: "ps-section-label" }, ki = { class: "ps-row" }, Ai = { class: "ps-label" }, ji = ["value"], Mi = ["value"], Ni = {
5092
+ }), [["__scopeId", "data-v-dc4046d2"]]), Di = { class: "ps-header" }, Oi = { class: "ps-body" }, ki = { class: "ps-section-label" }, Ai = { class: "ps-row" }, ji = { class: "ps-label" }, Mi = ["value"], Ni = ["value"], Pi = {
5071
5093
  key: 0,
5072
5094
  value: -1
5073
- }, Pi = { class: "ps-row" }, Fi = { class: "ps-label" }, Ii = ["value"], Li = { value: "portrait" }, Ri = { value: "landscape" }, zi = { class: "ps-section-label ps-section-label--spaced" }, Bi = { class: "ps-row" }, Vi = { class: "ps-label" }, Hi = { class: "ps-row" }, Ui = { class: "ps-label" }, Wi = { class: "ps-row" }, Gi = { class: "ps-label" }, Ki = { class: "ps-row" }, qi = { class: "ps-label" }, Ji = { class: "ps-footer" }, Yi = 12240, Xi = 15840, Zi = 1440, Qi = /*#__PURE__*/ H(/* @__PURE__ */ u({
5095
+ }, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = ["value"], Ri = { value: "portrait" }, zi = { value: "landscape" }, Bi = { class: "ps-section-label ps-section-label--spaced" }, Vi = { class: "ps-row" }, Hi = { class: "ps-label" }, Ui = { class: "ps-row" }, Wi = { class: "ps-label" }, Gi = { class: "ps-row" }, Ki = { class: "ps-label" }, qi = { class: "ps-row" }, Ji = { class: "ps-label" }, Yi = { class: "ps-footer" }, Xi = 12240, Zi = 15840, Qi = 1440, $i = /*#__PURE__*/ U(/* @__PURE__ */ l({
5074
5096
  __name: "PageSetupDialog",
5075
5097
  props: {
5076
5098
  isOpen: { type: Boolean },
5077
5099
  sectionProperties: {}
5078
5100
  },
5079
5101
  emits: ["close", "apply"],
5080
- setup(e, { emit: n }) {
5102
+ setup(t, { emit: s }) {
5081
5103
  let { t: c } = Z(), { Dialog: l } = Q(), u = [
5082
5104
  {
5083
5105
  labelKey: "dialogs.pageSetup.pageSizes.letter",
@@ -5114,23 +5136,23 @@ var Yn = u({
5114
5136
  width: 10440,
5115
5137
  height: 15120
5116
5138
  }
5117
- ], d = e, f = n, p = S(Yi), m = S(Xi), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
5118
- function x(e) {
5139
+ ], d = t, f = s, p = x(Xi), m = x(Zi), h = x("portrait"), g = x(1), _ = x(1), y = x(1), b = x(1);
5140
+ function C(e) {
5119
5141
  return Math.round(e / B * 100) / 100;
5120
5142
  }
5121
- function w(e) {
5143
+ function T(e) {
5122
5144
  return Math.round((Number(e) || 0) * B);
5123
5145
  }
5124
- let E = r(() => {
5146
+ let E = n(() => {
5125
5147
  let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
5126
5148
  return u.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
5127
5149
  });
5128
- N(() => d.isOpen, (e) => {
5150
+ M(() => d.isOpen, (e) => {
5129
5151
  if (!e) return;
5130
- let t = d.sectionProperties, n = t?.pageWidth || Yi, r = t?.pageHeight || Xi;
5131
- p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? Zi), _.value = x(t?.marginBottom ?? Zi), v.value = x(t?.marginLeft ?? Zi), b.value = x(t?.marginRight ?? Zi);
5152
+ let t = d.sectionProperties, n = t?.pageWidth || Xi, r = t?.pageHeight || Zi;
5153
+ p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = C(t?.marginTop ?? Qi), _.value = C(t?.marginBottom ?? Qi), y.value = C(t?.marginLeft ?? Qi), b.value = C(t?.marginRight ?? Qi);
5132
5154
  }, { immediate: !0 });
5133
- function D(e) {
5155
+ function O(e) {
5134
5156
  if (!(e.target instanceof HTMLSelectElement)) return;
5135
5157
  let t = Number(e.target.value), n = u.at(t);
5136
5158
  t < 0 || !n || (h.value === "landscape" ? (p.value = n.height, m.value = n.width) : (p.value = n.width, m.value = n.height));
@@ -5146,20 +5168,20 @@ var Yn = u({
5146
5168
  function A() {
5147
5169
  f("close");
5148
5170
  }
5149
- function j() {
5171
+ function I() {
5150
5172
  f("apply", {
5151
5173
  pageWidth: p.value,
5152
5174
  pageHeight: m.value,
5153
5175
  orientation: h.value,
5154
- marginTop: w(g.value),
5155
- marginBottom: w(_.value),
5156
- marginLeft: w(v.value),
5157
- marginRight: w(b.value)
5176
+ marginTop: T(g.value),
5177
+ marginBottom: T(_.value),
5178
+ marginLeft: T(y.value),
5179
+ marginRight: T(b.value)
5158
5180
  }), A();
5159
5181
  }
5160
- return (n, r) => (y(), i(O(l), {
5161
- open: e.isOpen,
5162
- "aria-label": O(c)("dialogs.pageSetup.title"),
5182
+ return (n, s) => (v(), r(D(l), {
5183
+ open: t.isOpen,
5184
+ "aria-label": D(c)("dialogs.pageSetup.title"),
5163
5185
  style: {
5164
5186
  minWidth: "400px",
5165
5187
  maxWidth: "480px",
@@ -5167,134 +5189,134 @@ var Yn = u({
5167
5189
  margin: "20px"
5168
5190
  },
5169
5191
  onClose: A,
5170
- onKeydown: I(j, ["enter"])
5192
+ onKeydown: F(I, ["enter"])
5171
5193
  }, {
5172
- default: P(() => [
5173
- s("div", Ei, T(O(c)("dialogs.pageSetup.title")), 1),
5174
- s("div", Di, [
5175
- s("div", Oi, T(O(c)("dialogs.pageSetup.pageSize")), 1),
5176
- s("div", ki, [s("label", Ai, T(O(c)("dialogs.pageSetup.sizeLabel")), 1), s("select", {
5194
+ default: N(() => [
5195
+ o("div", Di, w(D(c)("dialogs.pageSetup.title")), 1),
5196
+ o("div", Oi, [
5197
+ o("div", ki, w(D(c)("dialogs.pageSetup.pageSize")), 1),
5198
+ o("div", Ai, [o("label", ji, w(D(c)("dialogs.pageSetup.sizeLabel")), 1), o("select", {
5177
5199
  class: "ps-input",
5178
5200
  value: E.value,
5179
- onChange: D
5180
- }, [(y(), o(t, null, C(u, (e, t) => s("option", {
5201
+ onChange: O
5202
+ }, [(v(), a(e, null, S(u, (e, t) => o("option", {
5181
5203
  key: e.labelKey,
5182
5204
  value: t
5183
- }, T(O(c)(e.labelKey)), 9, Mi)), 64)), E.value < 0 ? (y(), o("option", Ni, T(O(c)("dialogs.pageSetup.custom")), 1)) : a("", !0)], 40, ji)]),
5184
- s("div", Pi, [s("label", Fi, T(O(c)("dialogs.pageSetup.orientation")), 1), s("select", {
5205
+ }, w(D(c)(e.labelKey)), 9, Ni)), 64)), E.value < 0 ? (v(), a("option", Pi, w(D(c)("dialogs.pageSetup.custom")), 1)) : i("", !0)], 40, Mi)]),
5206
+ o("div", Fi, [o("label", Ii, w(D(c)("dialogs.pageSetup.orientation")), 1), o("select", {
5185
5207
  class: "ps-input",
5186
5208
  value: h.value,
5187
5209
  onChange: k
5188
- }, [s("option", Li, T(O(c)("dialogs.pageSetup.portrait")), 1), s("option", Ri, T(O(c)("dialogs.pageSetup.landscape")), 1)], 40, Ii)]),
5189
- s("div", zi, T(O(c)("dialogs.pageSetup.margins")), 1),
5190
- s("div", Bi, [
5191
- s("label", Vi, T(O(c)("dialogs.pageSetup.top")), 1),
5192
- F(s("input", {
5210
+ }, [o("option", Ri, w(D(c)("dialogs.pageSetup.portrait")), 1), o("option", zi, w(D(c)("dialogs.pageSetup.landscape")), 1)], 40, Li)]),
5211
+ o("div", Bi, w(D(c)("dialogs.pageSetup.margins")), 1),
5212
+ o("div", Vi, [
5213
+ o("label", Hi, w(D(c)("dialogs.pageSetup.top")), 1),
5214
+ P(o("input", {
5193
5215
  class: "ps-input",
5194
5216
  type: "number",
5195
5217
  min: "0",
5196
5218
  max: "10",
5197
5219
  step: "0.1",
5198
- "onUpdate:modelValue": r[0] ||= (e) => g.value = e
5220
+ "onUpdate:modelValue": s[0] ||= (e) => g.value = e
5199
5221
  }, null, 512), [[
5200
- M,
5222
+ j,
5201
5223
  g.value,
5202
5224
  void 0,
5203
5225
  { number: !0 }
5204
5226
  ]]),
5205
- r[4] ||= s("span", { class: "ps-unit" }, "in", -1)
5227
+ s[4] ||= o("span", { class: "ps-unit" }, "in", -1)
5206
5228
  ]),
5207
- s("div", Hi, [
5208
- s("label", Ui, T(O(c)("dialogs.pageSetup.bottom")), 1),
5209
- F(s("input", {
5229
+ o("div", Ui, [
5230
+ o("label", Wi, w(D(c)("dialogs.pageSetup.bottom")), 1),
5231
+ P(o("input", {
5210
5232
  class: "ps-input",
5211
5233
  type: "number",
5212
5234
  min: "0",
5213
5235
  max: "10",
5214
5236
  step: "0.1",
5215
- "onUpdate:modelValue": r[1] ||= (e) => _.value = e
5237
+ "onUpdate:modelValue": s[1] ||= (e) => _.value = e
5216
5238
  }, null, 512), [[
5217
- M,
5239
+ j,
5218
5240
  _.value,
5219
5241
  void 0,
5220
5242
  { number: !0 }
5221
5243
  ]]),
5222
- r[5] ||= s("span", { class: "ps-unit" }, "in", -1)
5244
+ s[5] ||= o("span", { class: "ps-unit" }, "in", -1)
5223
5245
  ]),
5224
- s("div", Wi, [
5225
- s("label", Gi, T(O(c)("dialogs.pageSetup.left")), 1),
5226
- F(s("input", {
5246
+ o("div", Gi, [
5247
+ o("label", Ki, w(D(c)("dialogs.pageSetup.left")), 1),
5248
+ P(o("input", {
5227
5249
  class: "ps-input",
5228
5250
  type: "number",
5229
5251
  min: "0",
5230
5252
  max: "10",
5231
5253
  step: "0.1",
5232
- "onUpdate:modelValue": r[2] ||= (e) => v.value = e
5254
+ "onUpdate:modelValue": s[2] ||= (e) => y.value = e
5233
5255
  }, null, 512), [[
5234
- M,
5235
- v.value,
5256
+ j,
5257
+ y.value,
5236
5258
  void 0,
5237
5259
  { number: !0 }
5238
5260
  ]]),
5239
- r[6] ||= s("span", { class: "ps-unit" }, "in", -1)
5261
+ s[6] ||= o("span", { class: "ps-unit" }, "in", -1)
5240
5262
  ]),
5241
- s("div", Ki, [
5242
- s("label", qi, T(O(c)("dialogs.pageSetup.right")), 1),
5243
- F(s("input", {
5263
+ o("div", qi, [
5264
+ o("label", Ji, w(D(c)("dialogs.pageSetup.right")), 1),
5265
+ P(o("input", {
5244
5266
  class: "ps-input",
5245
5267
  type: "number",
5246
5268
  min: "0",
5247
5269
  max: "10",
5248
5270
  step: "0.1",
5249
- "onUpdate:modelValue": r[3] ||= (e) => b.value = e
5271
+ "onUpdate:modelValue": s[3] ||= (e) => b.value = e
5250
5272
  }, null, 512), [[
5251
- M,
5273
+ j,
5252
5274
  b.value,
5253
5275
  void 0,
5254
5276
  { number: !0 }
5255
5277
  ]]),
5256
- r[7] ||= s("span", { class: "ps-unit" }, "in", -1)
5278
+ s[7] ||= o("span", { class: "ps-unit" }, "in", -1)
5257
5279
  ])
5258
5280
  ]),
5259
- s("div", Ji, [s("button", {
5281
+ o("div", Yi, [o("button", {
5260
5282
  type: "button",
5261
5283
  class: "ps-btn",
5262
5284
  onClick: A
5263
- }, T(O(c)("common.cancel")), 1), s("button", {
5285
+ }, w(D(c)("common.cancel")), 1), o("button", {
5264
5286
  type: "button",
5265
5287
  class: "ps-btn ps-btn--primary",
5266
- onClick: j
5267
- }, T(O(c)("common.apply")), 1)])
5288
+ onClick: I
5289
+ }, w(D(c)("common.apply")), 1)])
5268
5290
  ]),
5269
5291
  _: 1
5270
5292
  }, 8, ["open", "aria-label"]));
5271
5293
  }
5272
- }), [["__scopeId", "data-v-1e078cda"]]), $i = { class: "tpd-dialog__header" }, ea = { class: "tpd-dialog__body" }, ta = { class: "tpd-row" }, na = { class: "tpd-label" }, ra = { value: "auto" }, ia = { value: "dxa" }, aa = { value: "pct" }, oa = {
5294
+ }), [["__scopeId", "data-v-1e078cda"]]), ea = { class: "tpd-dialog__header" }, ta = { class: "tpd-dialog__body" }, na = { class: "tpd-row" }, ra = { class: "tpd-label" }, ia = { value: "auto" }, aa = { value: "dxa" }, oa = { value: "pct" }, sa = {
5273
5295
  key: 0,
5274
5296
  class: "tpd-row"
5275
- }, sa = { class: "tpd-label" }, ca = ["step"], la = { class: "tpd-unit" }, ua = { class: "tpd-row" }, da = { class: "tpd-label" }, fa = ["value"], pa = { class: "tpd-dialog__footer" }, ma = /*#__PURE__*/ H(/* @__PURE__ */ u({
5297
+ }, ca = { class: "tpd-label" }, la = ["step"], ua = { class: "tpd-unit" }, da = { class: "tpd-row" }, fa = { class: "tpd-label" }, pa = ["value"], ma = { class: "tpd-dialog__footer" }, ha = /*#__PURE__*/ U(/* @__PURE__ */ l({
5276
5298
  __name: "TablePropertiesDialog",
5277
5299
  props: {
5278
5300
  isOpen: { type: Boolean },
5279
5301
  currentProps: {}
5280
5302
  },
5281
5303
  emits: ["close", "apply"],
5282
- setup(e, { emit: n }) {
5283
- let { t: r } = Z(), { Dialog: c } = Q(), l = {
5304
+ setup(t, { emit: n }) {
5305
+ let { t: s } = Z(), { Dialog: c } = Q(), l = {
5284
5306
  center: "dialogs.tableProperties.alignOptions.center",
5285
5307
  end: "dialogs.tableProperties.alignOptions.end",
5286
5308
  left: "dialogs.tableProperties.alignOptions.left",
5287
5309
  right: "dialogs.tableProperties.alignOptions.right",
5288
5310
  start: "dialogs.tableProperties.alignOptions.start"
5289
- }, u = e, d = n, f = S(0), p = (e) => {
5311
+ }, u = t, d = n, f = x(0), p = (e) => {
5290
5312
  switch (e) {
5291
5313
  case "dxa":
5292
5314
  case "pct": return e;
5293
5315
  default: return "auto";
5294
5316
  }
5295
- }, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(oe(u.currentProps?.justification));
5296
- N(() => u.isOpen, (e) => {
5297
- e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = oe(u.currentProps?.justification));
5317
+ }, m = x(p(u.currentProps?.widthType ?? "auto")), h = x(H(u.currentProps?.justification));
5318
+ M(() => u.isOpen, (e) => {
5319
+ e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = H(u.currentProps?.justification));
5298
5320
  });
5299
5321
  function g() {
5300
5322
  let e = m.value === "auto" ? {
@@ -5308,73 +5330,73 @@ var Yn = u({
5308
5330
  };
5309
5331
  d("apply", e), d("close");
5310
5332
  }
5311
- return (n, u) => (y(), i(O(c), {
5312
- open: e.isOpen,
5313
- "aria-label": O(r)("dialogs.tableProperties.title"),
5333
+ return (n, u) => (v(), r(D(c), {
5334
+ open: t.isOpen,
5335
+ "aria-label": D(s)("dialogs.tableProperties.title"),
5314
5336
  style: {
5315
5337
  minWidth: "360px",
5316
5338
  maxWidth: "440px",
5317
5339
  width: "100%"
5318
5340
  },
5319
5341
  onClose: u[4] ||= (e) => n.$emit("close"),
5320
- onKeydown: I(g, ["enter"])
5342
+ onKeydown: F(g, ["enter"])
5321
5343
  }, {
5322
- default: P(() => [
5323
- s("div", $i, T(O(r)("dialogs.tableProperties.title")), 1),
5324
- s("div", ea, [
5325
- s("div", ta, [s("label", na, T(O(r)("dialogs.tableProperties.widthType")), 1), F(s("select", {
5344
+ default: N(() => [
5345
+ o("div", ea, w(D(s)("dialogs.tableProperties.title")), 1),
5346
+ o("div", ta, [
5347
+ o("div", na, [o("label", ra, w(D(s)("dialogs.tableProperties.widthType")), 1), P(o("select", {
5326
5348
  "onUpdate:modelValue": u[0] ||= (e) => m.value = e,
5327
5349
  class: "tpd-select"
5328
5350
  }, [
5329
- s("option", ra, T(O(r)("dialogs.tableProperties.widthTypes.auto")), 1),
5330
- s("option", ia, T(O(r)("dialogs.tableProperties.widthTypes.fixed")), 1),
5331
- s("option", aa, T(O(r)("dialogs.tableProperties.widthTypes.percentage")), 1)
5332
- ], 512), [[j, m.value]])]),
5333
- m.value === "auto" ? a("", !0) : (y(), o("div", oa, [
5334
- s("label", sa, T(O(r)("dialogs.tableProperties.widthLabel")), 1),
5335
- F(s("input", {
5351
+ o("option", ia, w(D(s)("dialogs.tableProperties.widthTypes.auto")), 1),
5352
+ o("option", aa, w(D(s)("dialogs.tableProperties.widthTypes.fixed")), 1),
5353
+ o("option", oa, w(D(s)("dialogs.tableProperties.widthTypes.percentage")), 1)
5354
+ ], 512), [[A, m.value]])]),
5355
+ m.value === "auto" ? i("", !0) : (v(), a("div", sa, [
5356
+ o("label", ca, w(D(s)("dialogs.tableProperties.widthLabel")), 1),
5357
+ P(o("input", {
5336
5358
  "onUpdate:modelValue": u[1] ||= (e) => f.value = e,
5337
5359
  type: "number",
5338
5360
  class: "tpd-input",
5339
5361
  min: 0,
5340
5362
  step: m.value === "pct" ? 5 : 100
5341
- }, null, 8, ca), [[
5342
- M,
5363
+ }, null, 8, la), [[
5364
+ j,
5343
5365
  f.value,
5344
5366
  void 0,
5345
5367
  { number: !0 }
5346
5368
  ]]),
5347
- s("span", la, T(m.value === "pct" ? O(r)("dialogs.tableProperties.units.fiftiethsPercent") : O(r)("dialogs.tableProperties.units.twips")), 1)
5369
+ o("span", ua, w(m.value === "pct" ? D(s)("dialogs.tableProperties.units.fiftiethsPercent") : D(s)("dialogs.tableProperties.units.twips")), 1)
5348
5370
  ])),
5349
- s("div", ua, [s("label", da, T(O(r)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
5371
+ o("div", da, [o("label", fa, w(D(s)("dialogs.tableProperties.alignmentLabel")), 1), P(o("select", {
5350
5372
  "onUpdate:modelValue": u[2] ||= (e) => h.value = e,
5351
5373
  class: "tpd-select"
5352
- }, [(y(!0), o(t, null, C(O(V), (e) => (y(), o("option", {
5374
+ }, [(v(!0), a(e, null, S(D(V), (e) => (v(), a("option", {
5353
5375
  key: e,
5354
5376
  value: e
5355
- }, T(O(r)(l[e])), 9, fa))), 128))], 512), [[j, h.value]])])
5377
+ }, w(D(s)(l[e])), 9, pa))), 128))], 512), [[A, h.value]])])
5356
5378
  ]),
5357
- s("div", pa, [s("button", {
5379
+ o("div", ma, [o("button", {
5358
5380
  class: "tpd-btn",
5359
5381
  onClick: u[3] ||= (e) => n.$emit("close")
5360
- }, T(O(r)("common.cancel")), 1), s("button", {
5382
+ }, w(D(s)("common.cancel")), 1), o("button", {
5361
5383
  class: "tpd-btn tpd-btn--primary",
5362
5384
  onClick: g
5363
- }, T(O(r)("common.apply")), 1)])
5385
+ }, w(D(s)("common.apply")), 1)])
5364
5386
  ]),
5365
5387
  _: 1
5366
5388
  }, 8, ["open", "aria-label"]));
5367
5389
  }
5368
- }), [["__scopeId", "data-v-dace7dcf"]]), ha = { class: "dialog__body" }, ga = { class: "field" }, _a = {
5390
+ }), [["__scopeId", "data-v-dace7dcf"]]), ga = { class: "dialog__body" }, _a = { class: "field" }, va = {
5369
5391
  key: 0,
5370
5392
  class: "grid"
5371
- }, va = { class: "field field--wide" }, ya = { class: "field" }, ba = { class: "field" }, xa = { class: "field" }, Sa = { class: "check" }, Ca = {
5393
+ }, ya = { class: "field field--wide" }, ba = { class: "field" }, xa = { class: "field" }, Sa = { class: "field" }, Ca = { class: "check" }, wa = {
5372
5394
  key: 1,
5373
5395
  class: "grid"
5374
- }, wa = { class: "field field--wide" }, Ta = { class: "field field--wide" }, Ea = ["aria-invalid"], Da = {
5396
+ }, Ta = { class: "field field--wide" }, Ea = { class: "field field--wide" }, Da = ["aria-invalid"], Oa = {
5375
5397
  key: 0,
5376
5398
  class: "field__error"
5377
- }, Oa = { class: "field" }, ka = { class: "check" }, Aa = { class: "check field--wide" }, ja = { class: "dialog__footer" }, Ma = ["disabled"], Na = "#C0C0C0", Pa = /*#__PURE__*/ H(/* @__PURE__ */ u({
5399
+ }, ka = { class: "field" }, Aa = { class: "check" }, ja = { class: "check field--wide" }, Ma = { class: "dialog__footer" }, Na = ["disabled"], Pa = "#C0C0C0", Fa = /*#__PURE__*/ U(/* @__PURE__ */ l({
5378
5400
  __name: "WatermarkDialog",
5379
5401
  props: {
5380
5402
  isOpen: { type: Boolean },
@@ -5382,22 +5404,22 @@ var Yn = u({
5382
5404
  },
5383
5405
  emits: ["close", "apply"],
5384
5406
  setup(e, { emit: t }) {
5385
- let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(Na), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "picture" && v.value && _.value.trim().length > 0 ? L(_.value.trim()) : ""), w = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
5386
- N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
5407
+ let { Dialog: s } = Q(), c = e, l = t, u = x("text"), d = x("CONFIDENTIAL"), f = x("Calibri"), p = x(Pa), m = x(!0), h = x(50), g = x(""), _ = x(""), y = x(!1), b = x(100), S = x(!0), C = n(() => u.value === "picture" && y.value && _.value.trim().length > 0 ? R(_.value.trim()) : ""), T = n(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
5408
+ M([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
5387
5409
  if (e) {
5388
5410
  if (!t) {
5389
- u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Na, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
5411
+ u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Pa, m.value = !0, h.value = 50, g.value = "", _.value = "", y.value = !1, b.value = 100, S.value = !0;
5390
5412
  return;
5391
5413
  }
5392
5414
  if (u.value = t.kind, t.kind === "text") {
5393
- d.value = t.text, f.value = t.font ?? "Calibri", p.value = z(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
5415
+ d.value = t.text, f.value = t.font ?? "Calibri", p.value = ee(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
5394
5416
  return;
5395
5417
  }
5396
- g.value = t.imageRId, _.value = t.imageTarget ?? "", v.value = t.imageTargetExternal ?? !1, b.value = Math.round((t.scale ?? 1) * 100), x.value = t.washout ?? !0;
5418
+ g.value = t.imageRId, _.value = t.imageTarget ?? "", y.value = t.imageTargetExternal ?? !1, b.value = Math.round((t.scale ?? 1) * 100), S.value = t.washout ?? !0;
5397
5419
  }
5398
5420
  }, { immediate: !0 });
5399
5421
  function E() {
5400
- if (w.value) {
5422
+ if (T.value) {
5401
5423
  if (u.value === "none") {
5402
5424
  l("apply", void 0), l("close");
5403
5425
  return;
@@ -5409,7 +5431,7 @@ var Yn = u({
5409
5431
  ...f.value.trim() ? { font: f.value.trim() } : {},
5410
5432
  color: I(p.value),
5411
5433
  diagonal: m.value,
5412
- opacity: D(h.value) / 100
5434
+ opacity: k(h.value) / 100
5413
5435
  }), l("close");
5414
5436
  return;
5415
5437
  }
@@ -5417,28 +5439,28 @@ var Yn = u({
5417
5439
  kind: "picture",
5418
5440
  imageRId: g.value.trim(),
5419
5441
  ..._.value.trim() ? { imageTarget: _.value.trim() } : {},
5420
- ..._.value.trim() ? { imageTargetExternal: v.value } : {},
5421
- scale: A(b.value) / 100,
5422
- washout: x.value
5442
+ ..._.value.trim() ? { imageTargetExternal: y.value } : {},
5443
+ scale: F(b.value) / 100,
5444
+ washout: S.value
5423
5445
  }), l("close");
5424
5446
  }
5425
5447
  }
5426
- function D(e) {
5448
+ function k(e) {
5427
5449
  return Math.min(100, Math.max(0, e));
5428
5450
  }
5429
- function A(e) {
5451
+ function F(e) {
5430
5452
  return Math.min(300, Math.max(1, e));
5431
5453
  }
5432
5454
  function I(e) {
5433
5455
  return e.startsWith("#") ? e.slice(1) : e;
5434
5456
  }
5435
- function L(e) {
5436
- return R(e) ? "" : "Use a web address (http/https).";
5457
+ function R(e) {
5458
+ return L(e) ? "" : "Use a web address (http/https).";
5437
5459
  }
5438
- function z(e) {
5439
- return !e || e === "auto" ? Na : e.startsWith("#") ? e : `#${e}`;
5460
+ function ee(e) {
5461
+ return !e || e === "auto" ? Pa : e.startsWith("#") ? e : `#${e}`;
5440
5462
  }
5441
- return (t, r) => (y(), i(O(n), {
5463
+ return (t, n) => (v(), r(D(s), {
5442
5464
  open: e.isOpen,
5443
5465
  "aria-label": "Watermark",
5444
5466
  style: {
@@ -5446,101 +5468,101 @@ var Yn = u({
5446
5468
  maxWidth: "520px",
5447
5469
  width: "100%"
5448
5470
  },
5449
- onClose: r[12] ||= (e) => t.$emit("close")
5471
+ onClose: n[12] ||= (e) => t.$emit("close")
5450
5472
  }, {
5451
- default: P(() => [
5452
- r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
5453
- s("div", ha, [
5454
- s("label", ga, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
5455
- "onUpdate:modelValue": r[0] ||= (e) => u.value = e,
5473
+ default: N(() => [
5474
+ n[25] ||= o("div", { class: "dialog__header" }, "Watermark", -1),
5475
+ o("div", ga, [
5476
+ o("label", _a, [n[14] ||= o("span", { class: "field__label" }, "Type", -1), P(o("select", {
5477
+ "onUpdate:modelValue": n[0] ||= (e) => u.value = e,
5456
5478
  class: "field__input"
5457
- }, [...r[13] ||= [
5458
- s("option", { value: "text" }, "Text watermark", -1),
5459
- s("option", { value: "picture" }, "Picture watermark", -1),
5460
- s("option", { value: "none" }, "No watermark", -1)
5461
- ]], 512), [[j, u.value]])]),
5462
- u.value === "text" ? (y(), o("div", _a, [
5463
- s("label", va, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
5464
- "onUpdate:modelValue": r[1] ||= (e) => d.value = e,
5479
+ }, [...n[13] ||= [
5480
+ o("option", { value: "text" }, "Text watermark", -1),
5481
+ o("option", { value: "picture" }, "Picture watermark", -1),
5482
+ o("option", { value: "none" }, "No watermark", -1)
5483
+ ]], 512), [[A, u.value]])]),
5484
+ u.value === "text" ? (v(), a("div", va, [
5485
+ o("label", ya, [n[15] ||= o("span", { class: "field__label" }, "Text", -1), P(o("input", {
5486
+ "onUpdate:modelValue": n[1] ||= (e) => d.value = e,
5465
5487
  class: "field__input"
5466
- }, null, 512), [[M, d.value]])]),
5467
- s("label", ya, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
5468
- "onUpdate:modelValue": r[2] ||= (e) => f.value = e,
5488
+ }, null, 512), [[j, d.value]])]),
5489
+ o("label", ba, [n[16] ||= o("span", { class: "field__label" }, "Font", -1), P(o("input", {
5490
+ "onUpdate:modelValue": n[2] ||= (e) => f.value = e,
5469
5491
  class: "field__input"
5470
- }, null, 512), [[M, f.value]])]),
5471
- s("label", ba, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
5472
- "onUpdate:modelValue": r[3] ||= (e) => p.value = e,
5492
+ }, null, 512), [[j, f.value]])]),
5493
+ o("label", xa, [n[17] ||= o("span", { class: "field__label" }, "Color", -1), P(o("input", {
5494
+ "onUpdate:modelValue": n[3] ||= (e) => p.value = e,
5473
5495
  class: "field__input field__input--color",
5474
5496
  type: "color"
5475
- }, null, 512), [[M, p.value]])]),
5476
- s("label", xa, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
5477
- "onUpdate:modelValue": r[4] ||= (e) => h.value = e,
5497
+ }, null, 512), [[j, p.value]])]),
5498
+ o("label", Sa, [n[18] ||= o("span", { class: "field__label" }, "Opacity", -1), P(o("input", {
5499
+ "onUpdate:modelValue": n[4] ||= (e) => h.value = e,
5478
5500
  class: "field__input",
5479
5501
  max: "100",
5480
5502
  min: "0",
5481
5503
  type: "number"
5482
5504
  }, null, 512), [[
5483
- M,
5505
+ j,
5484
5506
  h.value,
5485
5507
  void 0,
5486
5508
  { number: !0 }
5487
5509
  ]])]),
5488
- s("label", Sa, [F(s("input", {
5489
- "onUpdate:modelValue": r[5] ||= (e) => m.value = e,
5510
+ o("label", Ca, [P(o("input", {
5511
+ "onUpdate:modelValue": n[5] ||= (e) => m.value = e,
5490
5512
  type: "checkbox"
5491
- }, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
5492
- ])) : a("", !0),
5493
- u.value === "picture" ? (y(), o("div", Ca, [
5494
- s("label", wa, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
5495
- "onUpdate:modelValue": r[6] ||= (e) => g.value = e,
5513
+ }, null, 512), [[O, m.value]]), n[19] ||= o("span", null, "Diagonal", -1)])
5514
+ ])) : i("", !0),
5515
+ u.value === "picture" ? (v(), a("div", wa, [
5516
+ o("label", Ta, [n[20] ||= o("span", { class: "field__label" }, "Header image relationship id", -1), P(o("input", {
5517
+ "onUpdate:modelValue": n[6] ||= (e) => g.value = e,
5496
5518
  class: "field__input",
5497
5519
  placeholder: "rId12"
5498
- }, null, 512), [[M, g.value]])]),
5499
- s("label", Ta, [
5500
- r[21] ||= s("span", { class: "field__label" }, "Image target", -1),
5501
- F(s("input", {
5502
- "onUpdate:modelValue": r[7] ||= (e) => _.value = e,
5520
+ }, null, 512), [[j, g.value]])]),
5521
+ o("label", Ea, [
5522
+ n[21] ||= o("span", { class: "field__label" }, "Image target", -1),
5523
+ P(o("input", {
5524
+ "onUpdate:modelValue": n[7] ||= (e) => _.value = e,
5503
5525
  "aria-invalid": C.value.length > 0,
5504
5526
  class: "field__input",
5505
5527
  placeholder: "word/media/image1.png"
5506
- }, null, 8, Ea), [[M, _.value]]),
5507
- C.value.length > 0 ? (y(), o("span", Da, T(C.value), 1)) : a("", !0)
5528
+ }, null, 8, Da), [[j, _.value]]),
5529
+ C.value.length > 0 ? (v(), a("span", Oa, w(C.value), 1)) : i("", !0)
5508
5530
  ]),
5509
- s("label", Oa, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
5510
- "onUpdate:modelValue": r[8] ||= (e) => b.value = e,
5531
+ o("label", ka, [n[22] ||= o("span", { class: "field__label" }, "Scale", -1), P(o("input", {
5532
+ "onUpdate:modelValue": n[8] ||= (e) => b.value = e,
5511
5533
  class: "field__input",
5512
5534
  max: "300",
5513
5535
  min: "1",
5514
5536
  type: "number"
5515
5537
  }, null, 512), [[
5516
- M,
5538
+ j,
5517
5539
  b.value,
5518
5540
  void 0,
5519
5541
  { number: !0 }
5520
5542
  ]])]),
5521
- s("label", ka, [F(s("input", {
5522
- "onUpdate:modelValue": r[9] ||= (e) => x.value = e,
5543
+ o("label", Aa, [P(o("input", {
5544
+ "onUpdate:modelValue": n[9] ||= (e) => S.value = e,
5523
5545
  type: "checkbox"
5524
- }, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
5525
- s("label", Aa, [F(s("input", {
5526
- "onUpdate:modelValue": r[10] ||= (e) => v.value = e,
5546
+ }, null, 512), [[O, S.value]]), n[23] ||= o("span", null, "Washout", -1)]),
5547
+ o("label", ja, [P(o("input", {
5548
+ "onUpdate:modelValue": n[10] ||= (e) => y.value = e,
5527
5549
  type: "checkbox"
5528
- }, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
5529
- ])) : a("", !0)
5550
+ }, null, 512), [[O, y.value]]), n[24] ||= o("span", null, "Target is an external URL", -1)])
5551
+ ])) : i("", !0)
5530
5552
  ]),
5531
- s("div", ja, [s("button", {
5553
+ o("div", Ma, [o("button", {
5532
5554
  class: "dialog__btn",
5533
- onClick: r[11] ||= (e) => t.$emit("close")
5534
- }, "Cancel"), s("button", {
5555
+ onClick: n[11] ||= (e) => t.$emit("close")
5556
+ }, "Cancel"), o("button", {
5535
5557
  class: "dialog__btn dialog__btn--primary",
5536
- disabled: !w.value,
5558
+ disabled: !T.value,
5537
5559
  onClick: E
5538
- }, " Apply ", 8, Ma)])
5560
+ }, " Apply ", 8, Na)])
5539
5561
  ]),
5540
5562
  _: 1
5541
5563
  }, 8, ["open"]));
5542
5564
  }
5543
- }), [["__scopeId", "data-v-fbc23c7d"]]), Fa = { class: "fnpd-dialog__header" }, Ia = { class: "fnpd-dialog__body" }, La = { class: "fnpd-fieldset" }, Ra = { class: "fnpd-legend" }, za = { class: "fnpd-row" }, Ba = { class: "fnpd-label" }, Va = { value: "pageBottom" }, Ha = { value: "beneathText" }, Ua = { class: "fnpd-row" }, Wa = { class: "fnpd-label" }, Ga = ["value"], Ka = { class: "fnpd-row" }, qa = { class: "fnpd-label" }, Ja = { class: "fnpd-row" }, Ya = { class: "fnpd-label" }, Xa = { value: "continuous" }, Za = { value: "eachSect" }, Qa = { value: "eachPage" }, $a = { class: "fnpd-fieldset" }, eo = { class: "fnpd-legend" }, to = { class: "fnpd-row" }, no = { class: "fnpd-label" }, ro = { value: "docEnd" }, io = { value: "sectEnd" }, ao = { class: "fnpd-row" }, oo = { class: "fnpd-label" }, so = ["value"], co = { class: "fnpd-row" }, lo = { class: "fnpd-label" }, uo = { class: "fnpd-row" }, fo = { class: "fnpd-label" }, po = { value: "continuous" }, mo = { value: "eachSect" }, ho = { class: "fnpd-dialog__footer" }, go = /*#__PURE__*/ H(/* @__PURE__ */ u({
5565
+ }), [["__scopeId", "data-v-fbc23c7d"]]), Ia = { class: "fnpd-dialog__header" }, La = { class: "fnpd-dialog__body" }, Ra = { class: "fnpd-fieldset" }, za = { class: "fnpd-legend" }, Ba = { class: "fnpd-row" }, Va = { class: "fnpd-label" }, Ha = { value: "pageBottom" }, Ua = { value: "beneathText" }, Wa = { class: "fnpd-row" }, Ga = { class: "fnpd-label" }, Ka = ["value"], qa = { class: "fnpd-row" }, Ja = { class: "fnpd-label" }, Ya = { class: "fnpd-row" }, Xa = { class: "fnpd-label" }, Za = { value: "continuous" }, Qa = { value: "eachSect" }, $a = { value: "eachPage" }, eo = { class: "fnpd-fieldset" }, to = { class: "fnpd-legend" }, no = { class: "fnpd-row" }, ro = { class: "fnpd-label" }, io = { value: "docEnd" }, ao = { value: "sectEnd" }, oo = { class: "fnpd-row" }, so = { class: "fnpd-label" }, co = ["value"], lo = { class: "fnpd-row" }, uo = { class: "fnpd-label" }, fo = { class: "fnpd-row" }, po = { class: "fnpd-label" }, mo = { value: "continuous" }, ho = { value: "eachSect" }, go = { class: "fnpd-dialog__footer" }, _o = /*#__PURE__*/ U(/* @__PURE__ */ l({
5544
5566
  __name: "FootnotePropertiesDialog",
5545
5567
  props: {
5546
5568
  isOpen: { type: Boolean },
@@ -5548,37 +5570,37 @@ var Yn = u({
5548
5570
  endnotePr: {}
5549
5571
  },
5550
5572
  emits: ["close", "apply"],
5551
- setup(e, { emit: n }) {
5552
- let { t: a } = Z(), { Dialog: c } = Q(), l = e, u = n, d = r(() => [
5573
+ setup(t, { emit: i }) {
5574
+ let { t: s } = Z(), { Dialog: c } = Q(), l = t, u = i, d = n(() => [
5553
5575
  {
5554
5576
  value: "decimal",
5555
- label: a("dialogs.footnoteProperties.formats.decimal")
5577
+ label: s("dialogs.footnoteProperties.formats.decimal")
5556
5578
  },
5557
5579
  {
5558
5580
  value: "lowerLetter",
5559
- label: a("dialogs.footnoteProperties.formats.lowerAlpha")
5581
+ label: s("dialogs.footnoteProperties.formats.lowerAlpha")
5560
5582
  },
5561
5583
  {
5562
5584
  value: "upperLetter",
5563
- label: a("dialogs.footnoteProperties.formats.upperAlpha")
5585
+ label: s("dialogs.footnoteProperties.formats.upperAlpha")
5564
5586
  },
5565
5587
  {
5566
5588
  value: "lowerRoman",
5567
- label: a("dialogs.footnoteProperties.formats.lowerRoman")
5589
+ label: s("dialogs.footnoteProperties.formats.lowerRoman")
5568
5590
  },
5569
5591
  {
5570
5592
  value: "upperRoman",
5571
- label: a("dialogs.footnoteProperties.formats.upperRoman")
5593
+ label: s("dialogs.footnoteProperties.formats.upperRoman")
5572
5594
  },
5573
5595
  {
5574
5596
  value: "chicago",
5575
- label: a("dialogs.footnoteProperties.formats.symbols")
5597
+ label: s("dialogs.footnoteProperties.formats.symbols")
5576
5598
  }
5577
- ]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
5578
- N(() => l.isOpen, (e) => {
5579
- e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman", v.value = l.endnotePr?.numStart ?? 1, b.value = l.endnotePr?.numRestart ?? "continuous");
5599
+ ]), f = x("pageBottom"), p = x("decimal"), m = x(1), h = x("continuous"), g = x("docEnd"), _ = x("lowerRoman"), y = x(1), b = x("continuous");
5600
+ M(() => l.isOpen, (e) => {
5601
+ e && (f.value = l.footnotePr?.position ?? "pageBottom", p.value = l.footnotePr?.numFmt ?? "decimal", m.value = l.footnotePr?.numStart ?? 1, h.value = l.footnotePr?.numRestart ?? "continuous", g.value = l.endnotePr?.position ?? "docEnd", _.value = l.endnotePr?.numFmt ?? "lowerRoman", y.value = l.endnotePr?.numStart ?? 1, b.value = l.endnotePr?.numRestart ?? "continuous");
5580
5602
  });
5581
- function x() {
5603
+ function C() {
5582
5604
  u("apply", {
5583
5605
  position: f.value,
5584
5606
  numFmt: p.value,
@@ -5587,112 +5609,112 @@ var Yn = u({
5587
5609
  }, {
5588
5610
  position: g.value,
5589
5611
  numFmt: _.value,
5590
- numStart: v.value,
5612
+ numStart: y.value,
5591
5613
  numRestart: b.value
5592
5614
  }), u("close");
5593
5615
  }
5594
- return (n, r) => (y(), i(O(c), {
5595
- open: e.isOpen,
5596
- "aria-label": O(a)("dialogs.footnoteProperties.title"),
5616
+ return (n, i) => (v(), r(D(c), {
5617
+ open: t.isOpen,
5618
+ "aria-label": D(s)("dialogs.footnoteProperties.title"),
5597
5619
  style: {
5598
5620
  width: "440px",
5599
5621
  maxWidth: "90vw"
5600
5622
  },
5601
- onClose: r[9] ||= (e) => n.$emit("close")
5623
+ onClose: i[9] ||= (e) => n.$emit("close")
5602
5624
  }, {
5603
- default: P(() => [
5604
- s("div", Fa, T(O(a)("dialogs.footnoteProperties.title")), 1),
5605
- s("div", Ia, [s("fieldset", La, [
5606
- s("legend", Ra, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
5607
- s("div", za, [s("label", Ba, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5608
- "onUpdate:modelValue": r[0] ||= (e) => f.value = e,
5625
+ default: N(() => [
5626
+ o("div", Ia, w(D(s)("dialogs.footnoteProperties.title")), 1),
5627
+ o("div", La, [o("fieldset", Ra, [
5628
+ o("legend", za, w(D(s)("dialogs.footnoteProperties.footnotes")), 1),
5629
+ o("div", Ba, [o("label", Va, w(D(s)("dialogs.footnoteProperties.position")), 1), P(o("select", {
5630
+ "onUpdate:modelValue": i[0] ||= (e) => f.value = e,
5609
5631
  class: "fnpd-select"
5610
- }, [s("option", Va, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", Ha, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
5611
- s("div", Ua, [s("label", Wa, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5612
- "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
5632
+ }, [o("option", Ha, w(D(s)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), o("option", Ua, w(D(s)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[A, f.value]])]),
5633
+ o("div", Wa, [o("label", Ga, w(D(s)("dialogs.footnoteProperties.numberFormat")), 1), P(o("select", {
5634
+ "onUpdate:modelValue": i[1] ||= (e) => p.value = e,
5613
5635
  class: "fnpd-select"
5614
- }, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
5636
+ }, [(v(!0), a(e, null, S(d.value, (e) => (v(), a("option", {
5615
5637
  key: e.value,
5616
5638
  value: e.value
5617
- }, T(e.label), 9, Ga))), 128))], 512), [[j, p.value]])]),
5618
- s("div", Ka, [s("label", qa, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5619
- "onUpdate:modelValue": r[2] ||= (e) => m.value = e,
5639
+ }, w(e.label), 9, Ka))), 128))], 512), [[A, p.value]])]),
5640
+ o("div", qa, [o("label", Ja, w(D(s)("dialogs.footnoteProperties.startAt")), 1), P(o("input", {
5641
+ "onUpdate:modelValue": i[2] ||= (e) => m.value = e,
5620
5642
  type: "number",
5621
5643
  class: "fnpd-input",
5622
5644
  min: "1"
5623
5645
  }, null, 512), [[
5624
- M,
5646
+ j,
5625
5647
  m.value,
5626
5648
  void 0,
5627
5649
  { number: !0 }
5628
5650
  ]])]),
5629
- s("div", Ja, [s("label", Ya, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5630
- "onUpdate:modelValue": r[3] ||= (e) => h.value = e,
5651
+ o("div", Ya, [o("label", Xa, w(D(s)("dialogs.footnoteProperties.numbering")), 1), P(o("select", {
5652
+ "onUpdate:modelValue": i[3] ||= (e) => h.value = e,
5631
5653
  class: "fnpd-select"
5632
5654
  }, [
5633
- s("option", Xa, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
5634
- s("option", Za, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
5635
- s("option", Qa, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
5636
- ], 512), [[j, h.value]])])
5637
- ]), s("fieldset", $a, [
5638
- s("legend", eo, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
5639
- s("div", to, [s("label", no, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5640
- "onUpdate:modelValue": r[4] ||= (e) => g.value = e,
5655
+ o("option", Za, w(D(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
5656
+ o("option", Qa, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
5657
+ o("option", $a, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
5658
+ ], 512), [[A, h.value]])])
5659
+ ]), o("fieldset", eo, [
5660
+ o("legend", to, w(D(s)("dialogs.footnoteProperties.endnotes")), 1),
5661
+ o("div", no, [o("label", ro, w(D(s)("dialogs.footnoteProperties.position")), 1), P(o("select", {
5662
+ "onUpdate:modelValue": i[4] ||= (e) => g.value = e,
5641
5663
  class: "fnpd-select"
5642
- }, [s("option", ro, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", io, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
5643
- s("div", ao, [s("label", oo, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5644
- "onUpdate:modelValue": r[5] ||= (e) => _.value = e,
5664
+ }, [o("option", io, w(D(s)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), o("option", ao, w(D(s)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[A, g.value]])]),
5665
+ o("div", oo, [o("label", so, w(D(s)("dialogs.footnoteProperties.numberFormat")), 1), P(o("select", {
5666
+ "onUpdate:modelValue": i[5] ||= (e) => _.value = e,
5645
5667
  class: "fnpd-select"
5646
- }, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
5668
+ }, [(v(!0), a(e, null, S(d.value, (e) => (v(), a("option", {
5647
5669
  key: e.value,
5648
5670
  value: e.value
5649
- }, T(e.label), 9, so))), 128))], 512), [[j, _.value]])]),
5650
- s("div", co, [s("label", lo, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5651
- "onUpdate:modelValue": r[6] ||= (e) => v.value = e,
5671
+ }, w(e.label), 9, co))), 128))], 512), [[A, _.value]])]),
5672
+ o("div", lo, [o("label", uo, w(D(s)("dialogs.footnoteProperties.startAt")), 1), P(o("input", {
5673
+ "onUpdate:modelValue": i[6] ||= (e) => y.value = e,
5652
5674
  type: "number",
5653
5675
  class: "fnpd-input",
5654
5676
  min: "1"
5655
5677
  }, null, 512), [[
5656
- M,
5657
- v.value,
5678
+ j,
5679
+ y.value,
5658
5680
  void 0,
5659
5681
  { number: !0 }
5660
5682
  ]])]),
5661
- s("div", uo, [s("label", fo, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5662
- "onUpdate:modelValue": r[7] ||= (e) => b.value = e,
5683
+ o("div", fo, [o("label", po, w(D(s)("dialogs.footnoteProperties.numbering")), 1), P(o("select", {
5684
+ "onUpdate:modelValue": i[7] ||= (e) => b.value = e,
5663
5685
  class: "fnpd-select"
5664
- }, [s("option", po, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", mo, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
5686
+ }, [o("option", mo, w(D(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), o("option", ho, w(D(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[A, b.value]])])
5665
5687
  ])]),
5666
- s("div", ho, [s("button", {
5688
+ o("div", go, [o("button", {
5667
5689
  class: "fnpd-btn",
5668
- onClick: r[8] ||= (e) => n.$emit("close")
5669
- }, T(O(a)("common.cancel")), 1), s("button", {
5690
+ onClick: i[8] ||= (e) => n.$emit("close")
5691
+ }, w(D(s)("common.cancel")), 1), o("button", {
5670
5692
  class: "fnpd-btn fnpd-btn--primary",
5671
- onClick: x
5672
- }, T(O(a)("common.apply")), 1)])
5693
+ onClick: C
5694
+ }, w(D(s)("common.apply")), 1)])
5673
5695
  ]),
5674
5696
  _: 1
5675
5697
  }, 8, ["open", "aria-label"]));
5676
5698
  }
5677
- }), [["__scopeId", "data-v-86718c10"]]), _o = { class: "ipd-dialog__header" }, vo = { class: "ipd-dialog__body" }, yo = { class: "ipd-fieldset" }, bo = { class: "ipd-legend" }, xo = { class: "ipd-row" }, So = { value: "align" }, Co = { value: "offset" }, wo = {
5699
+ }), [["__scopeId", "data-v-86718c10"]]), vo = { class: "ipd-dialog__header" }, yo = { class: "ipd-dialog__body" }, bo = { class: "ipd-fieldset" }, xo = { class: "ipd-legend" }, So = { class: "ipd-row" }, Co = { value: "align" }, wo = { value: "offset" }, To = {
5678
5700
  key: 0,
5679
5701
  class: "ipd-row"
5680
- }, To = { class: "ipd-label" }, Eo = { value: "left" }, Do = { value: "center" }, Oo = { value: "right" }, ko = {
5702
+ }, Eo = { class: "ipd-label" }, Do = { value: "left" }, Oo = { value: "center" }, ko = { value: "right" }, Ao = {
5681
5703
  key: 1,
5682
5704
  class: "ipd-row"
5683
- }, Ao = { class: "ipd-label" }, jo = { class: "ipd-row" }, Mo = { class: "ipd-label" }, No = { value: "page" }, Po = { value: "column" }, Fo = { value: "margin" }, Io = { value: "character" }, Lo = { class: "ipd-fieldset" }, Ro = { class: "ipd-legend" }, zo = { class: "ipd-row" }, Bo = { value: "align" }, Vo = { value: "offset" }, Ho = {
5705
+ }, jo = { class: "ipd-label" }, Mo = { class: "ipd-row" }, No = { class: "ipd-label" }, Po = { value: "page" }, Fo = { value: "column" }, Io = { value: "margin" }, Lo = { value: "character" }, Ro = { class: "ipd-fieldset" }, zo = { class: "ipd-legend" }, Bo = { class: "ipd-row" }, Vo = { value: "align" }, Ho = { value: "offset" }, Uo = {
5684
5706
  key: 0,
5685
5707
  class: "ipd-row"
5686
- }, Uo = { class: "ipd-label" }, Wo = { value: "top" }, Go = { value: "center" }, Ko = { value: "bottom" }, qo = {
5708
+ }, Wo = { class: "ipd-label" }, Go = { value: "top" }, Ko = { value: "center" }, qo = { value: "bottom" }, Jo = {
5687
5709
  key: 1,
5688
5710
  class: "ipd-row"
5689
- }, Jo = { class: "ipd-label" }, Yo = { class: "ipd-row" }, Xo = { class: "ipd-label" }, Zo = { value: "page" }, Qo = { value: "margin" }, $o = { value: "paragraph" }, es = { value: "line" }, ts = { class: "ipd-fieldset" }, ns = { class: "ipd-row" }, rs = { class: "ipd-label" }, is = {
5711
+ }, Yo = { class: "ipd-label" }, Xo = { class: "ipd-row" }, Zo = { class: "ipd-label" }, Qo = { value: "page" }, $o = { value: "margin" }, es = { value: "paragraph" }, ts = { value: "line" }, ns = { class: "ipd-fieldset" }, rs = { class: "ipd-row" }, is = { class: "ipd-label" }, as = {
5690
5712
  class: "ipd-label",
5691
5713
  style: { width: "60px" }
5692
- }, as = { class: "ipd-row" }, os = { class: "ipd-label" }, ss = {
5714
+ }, os = { class: "ipd-row" }, ss = { class: "ipd-label" }, cs = {
5693
5715
  class: "ipd-label",
5694
5716
  style: { width: "60px" }
5695
- }, cs = { class: "ipd-dialog__footer" }, ls = /*#__PURE__*/ H(/* @__PURE__ */ u({
5717
+ }, ls = { class: "ipd-dialog__footer" }, us = /*#__PURE__*/ U(/* @__PURE__ */ l({
5696
5718
  __name: "ImagePositionDialog",
5697
5719
  props: {
5698
5720
  isOpen: { type: Boolean },
@@ -5700,11 +5722,11 @@ var Yn = u({
5700
5722
  },
5701
5723
  emits: ["close", "apply"],
5702
5724
  setup(e, { emit: t }) {
5703
- let { t: n } = Z(), { Dialog: r } = Q(), a = e, c = t, l = S("align"), u = S("left"), d = S(0), f = S("column"), p = S("align"), m = S("top"), h = S(0), g = S("paragraph"), _ = S(0), v = S(0), b = S(0), x = S(0);
5704
- N(() => a.isOpen, (e) => {
5725
+ let { t: n } = Z(), { Dialog: i } = Q(), s = e, c = t, l = x("align"), u = x("left"), d = x(0), f = x("column"), p = x("align"), m = x("top"), h = x(0), g = x("paragraph"), _ = x(0), y = x(0), b = x(0), S = x(0);
5726
+ M(() => s.isOpen, (e) => {
5705
5727
  if (!e) return;
5706
- let t = a.currentData;
5707
- t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0, v.value = t?.distBottom ?? 0, b.value = t?.distLeft ?? 0, x.value = t?.distRight ?? 0;
5728
+ let t = s.currentData;
5729
+ t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0, y.value = t?.distBottom ?? 0, b.value = t?.distLeft ?? 0, S.value = t?.distRight ?? 0;
5708
5730
  });
5709
5731
  function C() {
5710
5732
  let e = {
@@ -5717,158 +5739,158 @@ var Yn = u({
5717
5739
  ...p.value === "align" ? { align: m.value } : { posOffset: h.value }
5718
5740
  },
5719
5741
  distTop: _.value,
5720
- distBottom: v.value,
5742
+ distBottom: y.value,
5721
5743
  distLeft: b.value,
5722
- distRight: x.value
5744
+ distRight: S.value
5723
5745
  };
5724
5746
  c("apply", e), c("close");
5725
5747
  }
5726
- return (t, a) => (y(), i(O(r), {
5748
+ return (t, s) => (v(), r(D(i), {
5727
5749
  open: e.isOpen,
5728
- "aria-label": O(n)("dialogs.imagePosition.title"),
5750
+ "aria-label": D(n)("dialogs.imagePosition.title"),
5729
5751
  style: {
5730
5752
  width: "420px",
5731
5753
  maxWidth: "90vw"
5732
5754
  },
5733
- onClose: a[13] ||= (e) => t.$emit("close")
5755
+ onClose: s[13] ||= (e) => t.$emit("close")
5734
5756
  }, {
5735
- default: P(() => [
5736
- s("div", _o, T(O(n)("dialogs.imagePosition.title")), 1),
5737
- s("div", vo, [
5738
- s("fieldset", yo, [
5739
- s("legend", bo, T(O(n)("dialogs.imagePosition.horizontal")), 1),
5740
- s("div", xo, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5741
- "onUpdate:modelValue": a[0] ||= (e) => l.value = e,
5757
+ default: N(() => [
5758
+ o("div", vo, w(D(n)("dialogs.imagePosition.title")), 1),
5759
+ o("div", yo, [
5760
+ o("fieldset", bo, [
5761
+ o("legend", xo, w(D(n)("dialogs.imagePosition.horizontal")), 1),
5762
+ o("div", So, [s[14] ||= o("label", { class: "ipd-label" }, "Mode", -1), P(o("select", {
5763
+ "onUpdate:modelValue": s[0] ||= (e) => l.value = e,
5742
5764
  class: "ipd-select"
5743
- }, [s("option", So, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Co, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
5744
- l.value === "align" ? (y(), o("div", wo, [s("label", To, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5745
- "onUpdate:modelValue": a[1] ||= (e) => u.value = e,
5765
+ }, [o("option", Co, w(D(n)("dialogs.imagePosition.alignment")), 1), o("option", wo, w(D(n)("dialogs.imagePosition.offset")), 1)], 512), [[A, l.value]])]),
5766
+ l.value === "align" ? (v(), a("div", To, [o("label", Eo, w(D(n)("dialogs.imagePosition.align")), 1), P(o("select", {
5767
+ "onUpdate:modelValue": s[1] ||= (e) => u.value = e,
5746
5768
  class: "ipd-select"
5747
5769
  }, [
5748
- s("option", Eo, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5749
- s("option", Do, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5750
- s("option", Oo, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
5751
- ], 512), [[j, u.value]])])) : (y(), o("div", ko, [s("label", Ao, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5752
- "onUpdate:modelValue": a[2] ||= (e) => d.value = e,
5770
+ o("option", Do, w(D(n)("dialogs.imagePosition.alignOptions.left")), 1),
5771
+ o("option", Oo, w(D(n)("dialogs.imagePosition.alignOptions.center")), 1),
5772
+ o("option", ko, w(D(n)("dialogs.imagePosition.alignOptions.right")), 1)
5773
+ ], 512), [[A, u.value]])])) : (v(), a("div", Ao, [o("label", jo, w(D(n)("dialogs.imagePosition.offsetPx")), 1), P(o("input", {
5774
+ "onUpdate:modelValue": s[2] ||= (e) => d.value = e,
5753
5775
  type: "number",
5754
5776
  class: "ipd-input"
5755
5777
  }, null, 512), [[
5756
- M,
5778
+ j,
5757
5779
  d.value,
5758
5780
  void 0,
5759
5781
  { number: !0 }
5760
5782
  ]])])),
5761
- s("div", jo, [s("label", Mo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5762
- "onUpdate:modelValue": a[3] ||= (e) => f.value = e,
5783
+ o("div", Mo, [o("label", No, w(D(n)("dialogs.imagePosition.relativeTo")), 1), P(o("select", {
5784
+ "onUpdate:modelValue": s[3] ||= (e) => f.value = e,
5763
5785
  class: "ipd-select"
5764
5786
  }, [
5765
- s("option", No, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5766
- s("option", Po, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
5767
- s("option", Fo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5768
- s("option", Io, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
5769
- ], 512), [[j, f.value]])])
5787
+ o("option", Po, w(D(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5788
+ o("option", Fo, w(D(n)("dialogs.imagePosition.relativeOptions.column")), 1),
5789
+ o("option", Io, w(D(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5790
+ o("option", Lo, w(D(n)("dialogs.imagePosition.relativeOptions.character")), 1)
5791
+ ], 512), [[A, f.value]])])
5770
5792
  ]),
5771
- s("fieldset", Lo, [
5772
- s("legend", Ro, T(O(n)("dialogs.imagePosition.vertical")), 1),
5773
- s("div", zo, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5774
- "onUpdate:modelValue": a[4] ||= (e) => p.value = e,
5793
+ o("fieldset", Ro, [
5794
+ o("legend", zo, w(D(n)("dialogs.imagePosition.vertical")), 1),
5795
+ o("div", Bo, [s[15] ||= o("label", { class: "ipd-label" }, "Mode", -1), P(o("select", {
5796
+ "onUpdate:modelValue": s[4] ||= (e) => p.value = e,
5775
5797
  class: "ipd-select"
5776
- }, [s("option", Bo, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Vo, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
5777
- p.value === "align" ? (y(), o("div", Ho, [s("label", Uo, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5778
- "onUpdate:modelValue": a[5] ||= (e) => m.value = e,
5798
+ }, [o("option", Vo, w(D(n)("dialogs.imagePosition.alignment")), 1), o("option", Ho, w(D(n)("dialogs.imagePosition.offset")), 1)], 512), [[A, p.value]])]),
5799
+ p.value === "align" ? (v(), a("div", Uo, [o("label", Wo, w(D(n)("dialogs.imagePosition.align")), 1), P(o("select", {
5800
+ "onUpdate:modelValue": s[5] ||= (e) => m.value = e,
5779
5801
  class: "ipd-select"
5780
5802
  }, [
5781
- s("option", Wo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5782
- s("option", Go, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5783
- s("option", Ko, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
5784
- ], 512), [[j, m.value]])])) : (y(), o("div", qo, [s("label", Jo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5785
- "onUpdate:modelValue": a[6] ||= (e) => h.value = e,
5803
+ o("option", Go, w(D(n)("dialogs.imagePosition.alignOptions.top")), 1),
5804
+ o("option", Ko, w(D(n)("dialogs.imagePosition.alignOptions.center")), 1),
5805
+ o("option", qo, w(D(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
5806
+ ], 512), [[A, m.value]])])) : (v(), a("div", Jo, [o("label", Yo, w(D(n)("dialogs.imagePosition.offsetPx")), 1), P(o("input", {
5807
+ "onUpdate:modelValue": s[6] ||= (e) => h.value = e,
5786
5808
  type: "number",
5787
5809
  class: "ipd-input"
5788
5810
  }, null, 512), [[
5789
- M,
5811
+ j,
5790
5812
  h.value,
5791
5813
  void 0,
5792
5814
  { number: !0 }
5793
5815
  ]])])),
5794
- s("div", Yo, [s("label", Xo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5795
- "onUpdate:modelValue": a[7] ||= (e) => g.value = e,
5816
+ o("div", Xo, [o("label", Zo, w(D(n)("dialogs.imagePosition.relativeTo")), 1), P(o("select", {
5817
+ "onUpdate:modelValue": s[7] ||= (e) => g.value = e,
5796
5818
  class: "ipd-select"
5797
5819
  }, [
5798
- s("option", Zo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5799
- s("option", Qo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5800
- s("option", $o, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
5801
- s("option", es, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
5802
- ], 512), [[j, g.value]])])
5820
+ o("option", Qo, w(D(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5821
+ o("option", $o, w(D(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5822
+ o("option", es, w(D(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
5823
+ o("option", ts, w(D(n)("dialogs.imagePosition.relativeOptions.line")), 1)
5824
+ ], 512), [[A, g.value]])])
5803
5825
  ]),
5804
- s("fieldset", ts, [
5805
- a[16] ||= s("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
5806
- s("div", ns, [
5807
- s("label", rs, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5808
- F(s("input", {
5809
- "onUpdate:modelValue": a[8] ||= (e) => _.value = e,
5826
+ o("fieldset", ns, [
5827
+ s[16] ||= o("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
5828
+ o("div", rs, [
5829
+ o("label", is, w(D(n)("dialogs.imagePosition.alignOptions.top")), 1),
5830
+ P(o("input", {
5831
+ "onUpdate:modelValue": s[8] ||= (e) => _.value = e,
5810
5832
  type: "number",
5811
5833
  class: "ipd-input",
5812
5834
  min: "0"
5813
5835
  }, null, 512), [[
5814
- M,
5836
+ j,
5815
5837
  _.value,
5816
5838
  void 0,
5817
5839
  { number: !0 }
5818
5840
  ]]),
5819
- s("label", is, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
5820
- F(s("input", {
5821
- "onUpdate:modelValue": a[9] ||= (e) => v.value = e,
5841
+ o("label", as, w(D(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
5842
+ P(o("input", {
5843
+ "onUpdate:modelValue": s[9] ||= (e) => y.value = e,
5822
5844
  type: "number",
5823
5845
  class: "ipd-input",
5824
5846
  min: "0"
5825
5847
  }, null, 512), [[
5826
- M,
5827
- v.value,
5848
+ j,
5849
+ y.value,
5828
5850
  void 0,
5829
5851
  { number: !0 }
5830
5852
  ]])
5831
5853
  ]),
5832
- s("div", as, [
5833
- s("label", os, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5834
- F(s("input", {
5835
- "onUpdate:modelValue": a[10] ||= (e) => b.value = e,
5854
+ o("div", os, [
5855
+ o("label", ss, w(D(n)("dialogs.imagePosition.alignOptions.left")), 1),
5856
+ P(o("input", {
5857
+ "onUpdate:modelValue": s[10] ||= (e) => b.value = e,
5836
5858
  type: "number",
5837
5859
  class: "ipd-input",
5838
5860
  min: "0"
5839
5861
  }, null, 512), [[
5840
- M,
5862
+ j,
5841
5863
  b.value,
5842
5864
  void 0,
5843
5865
  { number: !0 }
5844
5866
  ]]),
5845
- s("label", ss, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
5846
- F(s("input", {
5847
- "onUpdate:modelValue": a[11] ||= (e) => x.value = e,
5867
+ o("label", cs, w(D(n)("dialogs.imagePosition.alignOptions.right")), 1),
5868
+ P(o("input", {
5869
+ "onUpdate:modelValue": s[11] ||= (e) => S.value = e,
5848
5870
  type: "number",
5849
5871
  class: "ipd-input",
5850
5872
  min: "0"
5851
5873
  }, null, 512), [[
5852
- M,
5853
- x.value,
5874
+ j,
5875
+ S.value,
5854
5876
  void 0,
5855
5877
  { number: !0 }
5856
5878
  ]])
5857
5879
  ])
5858
5880
  ])
5859
5881
  ]),
5860
- s("div", cs, [s("button", {
5882
+ o("div", ls, [o("button", {
5861
5883
  class: "ipd-btn",
5862
- onClick: a[12] ||= (e) => t.$emit("close")
5863
- }, T(O(n)("common.cancel")), 1), s("button", {
5884
+ onClick: s[12] ||= (e) => t.$emit("close")
5885
+ }, w(D(n)("common.cancel")), 1), o("button", {
5864
5886
  class: "ipd-btn ipd-btn--primary",
5865
5887
  onClick: C
5866
- }, T(O(n)("common.apply")), 1)])
5888
+ }, w(D(n)("common.apply")), 1)])
5867
5889
  ]),
5868
5890
  _: 1
5869
5891
  }, 8, ["open", "aria-label"]));
5870
5892
  }
5871
- }), [["__scopeId", "data-v-64d4c153"]]), us = { class: "dialog__body" }, ds = { class: "field" }, fs = ["accept"], ps = { class: "field" }, ms = ["placeholder"], hs = { class: "grid" }, gs = { class: "field" }, _s = { class: "field" }, vs = { class: "dialog__footer" }, ys = ["disabled"], bs = /*#__PURE__*/ H(/* @__PURE__ */ u({
5893
+ }), [["__scopeId", "data-v-64d4c153"]]), ds = { class: "dialog__body" }, fs = { class: "field" }, ps = ["accept"], ms = { class: "field" }, hs = ["placeholder"], gs = { class: "grid" }, _s = { class: "field" }, vs = { class: "field" }, ys = { class: "dialog__footer" }, bs = ["disabled"], xs = /*#__PURE__*/ U(/* @__PURE__ */ l({
5872
5894
  __name: "InsertImageDialog",
5873
5895
  props: {
5874
5896
  isOpen: { type: Boolean },
@@ -5876,19 +5898,19 @@ var Yn = u({
5876
5898
  },
5877
5899
  emits: ["close", "insert"],
5878
5900
  setup(e, { emit: t }) {
5879
- let { Dialog: n } = Q(), r = e, a = t, o = S(null), c = S(""), l = S(""), u = S("");
5880
- N(() => r.isOpen, (e) => {
5881
- e && (o.value = null, c.value = "", l.value = "", u.value = "");
5901
+ let { Dialog: n } = Q(), i = e, a = t, s = x(null), c = x(""), l = x(""), u = x("");
5902
+ M(() => i.isOpen, (e) => {
5903
+ e && (s.value = null, c.value = "", l.value = "", u.value = "");
5882
5904
  });
5883
5905
  function d(e) {
5884
5906
  let t = e.target instanceof HTMLInputElement ? e.target : null;
5885
- o.value = t?.files?.[0] ?? null;
5907
+ s.value = t?.files?.[0] ?? null;
5886
5908
  }
5887
5909
  function f() {
5888
- if (!o.value) return;
5910
+ if (!s.value) return;
5889
5911
  let e = p(l.value), t = p(u.value);
5890
5912
  a("insert", {
5891
- file: o.value,
5913
+ file: s.value,
5892
5914
  ...c.value.trim() ? { alt: c.value.trim() } : {},
5893
5915
  ...e ? { width: e } : {},
5894
5916
  ...t ? { height: t } : {}
@@ -5898,7 +5920,7 @@ var Yn = u({
5898
5920
  let t = Number(e);
5899
5921
  return Number.isFinite(t) && t > 0 ? t : void 0;
5900
5922
  }
5901
- return (t, r) => (y(), i(O(n), {
5923
+ return (t, i) => (v(), r(D(n), {
5902
5924
  open: e.isOpen,
5903
5925
  "aria-label": "Insert Image",
5904
5926
  style: {
@@ -5906,44 +5928,44 @@ var Yn = u({
5906
5928
  maxWidth: "520px",
5907
5929
  width: "100%"
5908
5930
  },
5909
- onClose: r[4] ||= (e) => t.$emit("close")
5931
+ onClose: i[4] ||= (e) => t.$emit("close")
5910
5932
  }, {
5911
- default: P(() => [
5912
- r[9] ||= s("div", { class: "dialog__header" }, "Insert Image", -1),
5913
- s("div", us, [
5914
- s("label", ds, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
5933
+ default: N(() => [
5934
+ i[9] ||= o("div", { class: "dialog__header" }, "Insert Image", -1),
5935
+ o("div", ds, [
5936
+ o("label", fs, [i[5] ||= o("span", { class: "field__label" }, "Image file", -1), o("input", {
5915
5937
  class: "field__input",
5916
5938
  type: "file",
5917
5939
  accept: e.accept,
5918
5940
  onChange: d
5919
- }, null, 40, fs)]),
5920
- s("label", ps, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
5921
- "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
5941
+ }, null, 40, ps)]),
5942
+ o("label", ms, [i[6] ||= o("span", { class: "field__label" }, "Alt text", -1), P(o("input", {
5943
+ "onUpdate:modelValue": i[0] ||= (e) => c.value = e,
5922
5944
  class: "field__input",
5923
- placeholder: o.value?.name ?? ""
5924
- }, null, 8, ms), [[M, c.value]])]),
5925
- s("div", hs, [s("label", gs, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
5926
- "onUpdate:modelValue": r[1] ||= (e) => l.value = e,
5945
+ placeholder: s.value?.name ?? ""
5946
+ }, null, 8, hs), [[j, c.value]])]),
5947
+ o("div", gs, [o("label", _s, [i[7] ||= o("span", { class: "field__label" }, "Width", -1), P(o("input", {
5948
+ "onUpdate:modelValue": i[1] ||= (e) => l.value = e,
5927
5949
  class: "field__input",
5928
5950
  min: "1",
5929
5951
  placeholder: "Auto",
5930
5952
  type: "number"
5931
- }, null, 512), [[M, l.value]])]), s("label", _s, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
5932
- "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
5953
+ }, null, 512), [[j, l.value]])]), o("label", vs, [i[8] ||= o("span", { class: "field__label" }, "Height", -1), P(o("input", {
5954
+ "onUpdate:modelValue": i[2] ||= (e) => u.value = e,
5933
5955
  class: "field__input",
5934
5956
  min: "1",
5935
5957
  placeholder: "Auto",
5936
5958
  type: "number"
5937
- }, null, 512), [[M, u.value]])])])
5959
+ }, null, 512), [[j, u.value]])])])
5938
5960
  ]),
5939
- s("div", vs, [s("button", {
5961
+ o("div", ys, [o("button", {
5940
5962
  class: "dialog__btn",
5941
- onClick: r[3] ||= (e) => t.$emit("close")
5942
- }, "Cancel"), s("button", {
5963
+ onClick: i[3] ||= (e) => t.$emit("close")
5964
+ }, "Cancel"), o("button", {
5943
5965
  class: "dialog__btn dialog__btn--primary",
5944
- disabled: !o.value,
5966
+ disabled: !s.value,
5945
5967
  onClick: f
5946
- }, " Insert ", 8, ys)])
5968
+ }, " Insert ", 8, bs)])
5947
5969
  ]),
5948
5970
  _: 1
5949
5971
  }, 8, ["open"]));
@@ -5952,7 +5974,7 @@ var Yn = u({
5952
5974
  style: "single",
5953
5975
  size: 4,
5954
5976
  color: { rgb: e }
5955
- }), xs = [
5977
+ }), Ss = [
5956
5978
  {
5957
5979
  id: "TableNormal",
5958
5980
  name: "Normal Table",
@@ -6244,7 +6266,7 @@ var Yn = u({
6244
6266
  band1Horz: { backgroundColor: "#E2EFDA" }
6245
6267
  }
6246
6268
  }
6247
- ], Ss = {
6269
+ ], Cs = {
6248
6270
  TableNormal: "table.styles.normalTable",
6249
6271
  TableGrid: "table.styles.tableGrid",
6250
6272
  TableGridLight: "table.styles.gridTableLight",
@@ -6259,15 +6281,15 @@ var Yn = u({
6259
6281
  "ListTable4-Accent3": "table.styles.listTable4Accent3",
6260
6282
  "GridTable4-Accent5": "table.styles.gridTable4Accent5",
6261
6283
  "GridTable4-Accent6": "table.styles.gridTable4Accent6"
6262
- }, Cs = 4, ws = 3;
6263
- function Ts(e) {
6264
- let t = e ? se(e.style) : "none";
6284
+ }, ws = 4, Ts = 3;
6285
+ function Es(e) {
6286
+ let t = e ? oe(e.style) : "none";
6265
6287
  return !e || t === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px ${t} ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
6266
6288
  }
6267
- function Es(e, t, n, r) {
6268
- return Ts(e === void 0 ? t ? n ?? r : r : e);
6289
+ function Ds(e, t, n, r) {
6290
+ return Es(e === void 0 ? t ? n ?? r : r : e);
6269
6291
  }
6270
- function Ds(e, t = Cs, n = ws) {
6292
+ function Os(e, t = ws, n = Ts) {
6271
6293
  let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
6272
6294
  for (let e = 0; e < t; e++) {
6273
6295
  let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
@@ -6280,10 +6302,10 @@ function Ds(e, t = Cs, n = ws) {
6280
6302
  height: "10px",
6281
6303
  boxSizing: "border-box",
6282
6304
  backgroundColor: m?.backgroundColor ?? "transparent",
6283
- borderTop: Es(h?.top, e > 0, a?.insideH, a?.top),
6284
- borderBottom: Es(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
6285
- borderLeft: Es(h?.left, s > 0, a?.insideV, a?.left),
6286
- borderRight: Es(h?.right, s < n - 1, a?.insideV, a?.right)
6305
+ borderTop: Ds(h?.top, e > 0, a?.insideH, a?.top),
6306
+ borderBottom: Ds(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
6307
+ borderLeft: Ds(h?.left, s > 0, a?.insideV, a?.left),
6308
+ borderRight: Ds(h?.right, s < n - 1, a?.insideV, a?.right)
6287
6309
  };
6288
6310
  o.push(g);
6289
6311
  }
@@ -6292,153 +6314,153 @@ function Ds(e, t = Cs, n = ws) {
6292
6314
  }
6293
6315
  //#endregion
6294
6316
  //#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
6295
- var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMousedown"], js = { class: "tsg__preview" }, Ms = { class: "tsg__name" }, Ns = /*#__PURE__*/ H(/* @__PURE__ */ u({
6317
+ var ks = { class: "tsg" }, As = { class: "tsg__grid" }, js = ["title", "onMousedown"], Ms = { class: "tsg__preview" }, Ns = { class: "tsg__name" }, Ps = /*#__PURE__*/ U(/* @__PURE__ */ l({
6296
6318
  __name: "TableStyleGallery",
6297
6319
  props: { currentStyleId: {} },
6298
6320
  emits: ["apply"],
6299
- setup(e) {
6300
- let { t: n } = Z(), r = xs;
6321
+ setup(t) {
6322
+ let { t: n } = Z(), r = Ss;
6301
6323
  function i(e) {
6302
- let t = Ss[e.id];
6324
+ let t = Cs[e.id];
6303
6325
  return t ? n(t) : e.name;
6304
6326
  }
6305
- return (n, a) => (y(), o("div", Os, [s("div", ks, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
6327
+ return (n, s) => (v(), a("div", ks, [o("div", As, [(v(!0), a(e, null, S(D(r), (r) => (v(), a("button", {
6306
6328
  key: r.id,
6307
- class: h(["tsg__item", { "tsg__item--selected": e.currentStyleId === r.id }]),
6329
+ class: m(["tsg__item", { "tsg__item--selected": t.currentStyleId === r.id }]),
6308
6330
  title: i(r),
6309
- onMousedown: L((e) => n.$emit("apply", r.id), ["prevent"])
6310
- }, [s("div", js, [(y(!0), o(t, null, C(O(Ds)(r), (e, t) => (y(), o("div", {
6331
+ onMousedown: I((e) => n.$emit("apply", r.id), ["prevent"])
6332
+ }, [o("div", Ms, [(v(!0), a(e, null, S(D(Os)(r), (e, t) => (v(), a("div", {
6311
6333
  key: t,
6312
6334
  class: "tsg__cell",
6313
- style: g(e)
6314
- }, null, 4))), 128))]), s("span", Ms, T(i(r)), 1)], 42, As))), 128))])]));
6335
+ style: h(e)
6336
+ }, null, 4))), 128))]), o("span", Ns, w(i(r)), 1)], 42, js))), 128))])]));
6315
6337
  }
6316
- }), [["__scopeId", "data-v-c155c39f"]]), Ps = x({
6338
+ }), [["__scopeId", "data-v-c155c39f"]]), Fs = b({
6317
6339
  rows: 3,
6318
6340
  cols: 3
6319
- }), Fs = { class: "dialog__header" }, Is = { class: "dialog__title" }, Ls = ["title"], Rs = { class: "dialog__body" }, zs = ["aria-label"], Bs = ["onMouseenter", "onMousedown"], Vs = { class: "table-grid__label" }, Hs = { class: "dialog__separator" }, Us = { class: "table-manual" }, Ws = { class: "table-manual__field" }, Gs = { class: "table-manual__field" }, Ks = { class: "table-options" }, qs = { class: "table-options__radio" }, Js = { class: "table-options__radio" }, Ys = { class: "dialog__separator" }, Xs = { class: "dialog__footer" }, Zs = ["disabled"], Qs = 8, $s = 10, ec = 1, tc = 100, nc = 1, rc = 20, ic = /*#__PURE__*/ H(/* @__PURE__ */ u({
6341
+ }), Is = { class: "dialog__header" }, Ls = { class: "dialog__title" }, Rs = ["title"], zs = { class: "dialog__body" }, Bs = ["aria-label"], Vs = ["onMouseenter", "onMousedown"], Hs = { class: "table-grid__label" }, Us = { class: "dialog__separator" }, Ws = { class: "table-manual" }, Gs = { class: "table-manual__field" }, Ks = { class: "table-manual__field" }, qs = { class: "table-options" }, Js = { class: "table-options__radio" }, Ys = { class: "table-options__radio" }, Xs = { class: "dialog__separator" }, Zs = { class: "dialog__footer" }, Qs = ["disabled"], $s = 8, ec = 10, tc = 1, nc = 100, rc = 1, ic = 20, ac = /*#__PURE__*/ U(/* @__PURE__ */ l({
6320
6342
  __name: "InsertTableDialog",
6321
6343
  props: { isOpen: { type: Boolean } },
6322
6344
  emits: ["close", "insert"],
6323
- setup(e, { emit: n }) {
6324
- let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(Ps.rows), m = S(Ps.cols), g = S("fixed"), _ = S(null);
6325
- N(() => c.isOpen, (e) => {
6326
- e && (p.value = Ps.rows, m.value = Ps.cols, d.value = 0, f.value = 0);
6345
+ setup(t, { emit: r }) {
6346
+ let { t: s } = Z(), l = t, u = r, d = x(0), f = x(0), p = x(Fs.rows), h = x(Fs.cols), g = x("fixed"), _ = x(null);
6347
+ M(() => l.isOpen, (e) => {
6348
+ e && (p.value = Fs.rows, h.value = Fs.cols, d.value = 0, f.value = 0);
6327
6349
  });
6328
- let v = r(() => Number.parseInt(String(p.value), 10)), b = r(() => Number.parseInt(String(m.value), 10)), x = r(() => Number.isFinite(v.value) && v.value >= ec && v.value <= tc), w = r(() => Number.isFinite(b.value) && b.value >= nc && b.value <= rc), E = r(() => x.value && w.value);
6329
- function D() {
6350
+ let y = n(() => Number.parseInt(String(p.value), 10)), b = n(() => Number.parseInt(String(h.value), 10)), C = n(() => Number.isFinite(y.value) && y.value >= tc && y.value <= nc), T = n(() => Number.isFinite(b.value) && b.value >= rc && b.value <= ic), E = n(() => C.value && T.value);
6351
+ function O() {
6330
6352
  u("close");
6331
6353
  }
6332
- function k(e, t) {
6333
- d.value = e, f.value = t, p.value = e, m.value = t;
6354
+ function A(e, t) {
6355
+ d.value = e, f.value = t, p.value = e, h.value = t;
6334
6356
  }
6335
- function j(e) {
6336
- e.key === "Escape" ? D() : e.key === "Enter" && (e.preventDefault(), P());
6357
+ function N(e) {
6358
+ e.key === "Escape" ? O() : e.key === "Enter" && (e.preventDefault(), F());
6337
6359
  }
6338
- function P() {
6360
+ function F() {
6339
6361
  if (!E.value) return;
6340
- let e = Math.min(Math.max(ec, v.value), tc), t = Math.min(Math.max(nc, b.value), rc);
6341
- Ps.rows = e, Ps.cols = t, u("insert", {
6362
+ let e = Math.min(Math.max(tc, y.value), nc), t = Math.min(Math.max(rc, b.value), ic);
6363
+ Fs.rows = e, Fs.cols = t, u("insert", {
6342
6364
  rows: e,
6343
6365
  cols: t,
6344
6366
  autofit: g.value === "autofit",
6345
6367
  styleId: _.value
6346
- }), D();
6368
+ }), O();
6347
6369
  }
6348
- return (n, r) => e.isOpen ? (y(), o("div", {
6370
+ return (n, r) => t.isOpen ? (v(), a("div", {
6349
6371
  key: 0,
6350
6372
  class: "dialog-overlay",
6351
- onMousedown: L(D, ["self"])
6352
- }, [s("div", {
6373
+ onMousedown: I(O, ["self"])
6374
+ }, [o("div", {
6353
6375
  class: "dialog",
6354
- onMousedown: r[7] ||= L(() => {}, ["stop"]),
6355
- onKeydown: L(j, ["stop"])
6376
+ onMousedown: r[7] ||= I(() => {}, ["stop"]),
6377
+ onKeydown: I(N, ["stop"])
6356
6378
  }, [
6357
- s("div", Fs, [s("span", Is, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
6379
+ o("div", Is, [o("span", Ls, w(D(s)("dialogs.insertTable.title")), 1), o("button", {
6358
6380
  class: "dialog__close",
6359
- title: O(i)("common.closeDialog"),
6360
- onClick: D
6361
- }, "✕", 8, Ls)]),
6362
- s("div", Rs, [
6363
- s("div", {
6381
+ title: D(s)("common.closeDialog"),
6382
+ onClick: O
6383
+ }, "✕", 8, Rs)]),
6384
+ o("div", zs, [
6385
+ o("div", {
6364
6386
  class: "table-grid",
6365
- "aria-label": O(i)("dialogs.insertTable.sizeSelector"),
6387
+ "aria-label": D(s)("dialogs.insertTable.sizeSelector"),
6366
6388
  onMouseleave: r[0] ||= (e) => {
6367
6389
  d.value = 0, f.value = 0;
6368
6390
  }
6369
- }, [(y(), o(t, null, C(Qs, (e) => s("div", {
6370
- key: e,
6371
- class: "table-grid__row"
6372
- }, [(y(), o(t, null, C($s, (t) => s("div", {
6391
+ }, [(v(), a(e, null, S($s, (t) => o("div", {
6373
6392
  key: t,
6374
- class: h(["table-grid__cell", { highlight: e <= d.value && t <= f.value }]),
6393
+ class: "table-grid__row"
6394
+ }, [(v(), a(e, null, S(ec, (e) => o("div", {
6395
+ key: e,
6396
+ class: m(["table-grid__cell", { highlight: t <= d.value && e <= f.value }]),
6375
6397
  onMouseenter: (n) => {
6376
- d.value = e, f.value = t;
6398
+ d.value = t, f.value = e;
6377
6399
  },
6378
- onMousedown: L((n) => k(e, t), ["prevent"])
6379
- }, null, 42, Bs)), 64))])), 64))], 40, zs),
6380
- s("div", Vs, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
6400
+ onMousedown: I((n) => A(t, e), ["prevent"])
6401
+ }, null, 42, Vs)), 64))])), 64))], 40, Bs),
6402
+ o("div", Hs, w(d.value > 0 ? D(s)("dialogs.insertTable.tableSize", {
6381
6403
  cols: f.value,
6382
6404
  rows: d.value
6383
- }) : O(i)("dialogs.insertTable.hoverToSelect")), 1),
6384
- s("div", Hs, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
6385
- s("div", Us, [s("label", Ws, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
6405
+ }) : D(s)("dialogs.insertTable.hoverToSelect")), 1),
6406
+ o("div", Us, [o("span", null, w(D(s)("dialogs.insertTable.orSpecifySize")), 1)]),
6407
+ o("div", Ws, [o("label", Gs, [o("span", null, w(D(s)("dialogs.insertTable.rowsLabel")), 1), P(o("input", {
6386
6408
  "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
6387
6409
  type: "number",
6388
- min: ec,
6389
- max: tc,
6390
- class: h(["table-manual__input", { "table-manual__input--invalid": !x.value }])
6391
- }, null, 2), [[M, p.value]])]), s("label", Gs, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
6392
- "onUpdate:modelValue": r[2] ||= (e) => m.value = e,
6410
+ min: tc,
6411
+ max: nc,
6412
+ class: m(["table-manual__input", { "table-manual__input--invalid": !C.value }])
6413
+ }, null, 2), [[j, p.value]])]), o("label", Ks, [o("span", null, w(D(s)("dialogs.insertTable.columnsLabel")), 1), P(o("input", {
6414
+ "onUpdate:modelValue": r[2] ||= (e) => h.value = e,
6393
6415
  type: "number",
6394
- min: nc,
6395
- max: rc,
6396
- class: h(["table-manual__input", { "table-manual__input--invalid": !w.value }])
6397
- }, null, 2), [[M, m.value]])])]),
6398
- s("div", { class: h(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, T(O(i)("dialogs.insertTable.validationHint", {
6399
- minRows: ec,
6400
- maxRows: tc,
6401
- minCols: nc,
6402
- maxCols: rc
6416
+ min: rc,
6417
+ max: ic,
6418
+ class: m(["table-manual__input", { "table-manual__input--invalid": !T.value }])
6419
+ }, null, 2), [[j, h.value]])])]),
6420
+ o("div", { class: m(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, w(D(s)("dialogs.insertTable.validationHint", {
6421
+ minRows: tc,
6422
+ maxRows: nc,
6423
+ minCols: rc,
6424
+ maxCols: ic
6403
6425
  })), 3),
6404
- s("fieldset", Ks, [
6405
- s("legend", null, T(O(i)("dialogs.insertTable.columnWidthLabel")), 1),
6406
- s("label", qs, [F(s("input", {
6426
+ o("fieldset", qs, [
6427
+ o("legend", null, w(D(s)("dialogs.insertTable.columnWidthLabel")), 1),
6428
+ o("label", Js, [P(o("input", {
6407
6429
  type: "radio",
6408
6430
  value: "fixed",
6409
6431
  "onUpdate:modelValue": r[3] ||= (e) => g.value = e
6410
- }, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.fixedWidth")), 1)]),
6411
- s("label", Js, [F(s("input", {
6432
+ }, null, 512), [[k, g.value]]), o("span", null, w(D(s)("dialogs.insertTable.fixedWidth")), 1)]),
6433
+ o("label", Ys, [P(o("input", {
6412
6434
  type: "radio",
6413
6435
  value: "autofit",
6414
6436
  "onUpdate:modelValue": r[4] ||= (e) => g.value = e
6415
- }, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.autofit")), 1)])
6437
+ }, null, 512), [[k, g.value]]), o("span", null, w(D(s)("dialogs.insertTable.autofit")), 1)])
6416
6438
  ]),
6417
- s("div", Ys, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
6418
- l(Ns, {
6439
+ o("div", Xs, [o("span", null, w(D(s)("dialogs.insertTable.style")), 1)]),
6440
+ c(Ps, {
6419
6441
  "current-style-id": _.value,
6420
6442
  onApply: r[5] ||= (e) => _.value = e
6421
6443
  }, null, 8, ["current-style-id"])
6422
6444
  ]),
6423
- s("div", Xs, [s("button", {
6445
+ o("div", Zs, [o("button", {
6424
6446
  class: "dialog__btn",
6425
- onMousedown: L(D, ["prevent"])
6426
- }, T(O(i)("common.cancel")), 33), s("button", {
6447
+ onMousedown: I(O, ["prevent"])
6448
+ }, w(D(s)("common.cancel")), 33), o("button", {
6427
6449
  class: "dialog__btn dialog__btn--primary",
6428
6450
  disabled: !E.value,
6429
- onMousedown: r[6] ||= L((e) => P(), ["prevent"])
6430
- }, T(O(i)("dialogs.insertTable.insertButton")), 41, Zs)])
6431
- ], 32)], 32)) : a("", !0);
6451
+ onMousedown: r[6] ||= I((e) => F(), ["prevent"])
6452
+ }, w(D(s)("dialogs.insertTable.insertButton")), 41, Qs)])
6453
+ ], 32)], 32)) : i("", !0);
6432
6454
  }
6433
- }), [["__scopeId", "data-v-cc53b9fa"]]), ac = { class: "dialog__body" }, oc = { class: "options" }, sc = ["value"], cc = { class: "option__body" }, lc = { class: "option__label" }, uc = { class: "option__description" }, dc = { class: "dialog__footer" }, fc = /*#__PURE__*/ H(/* @__PURE__ */ u({
6455
+ }), [["__scopeId", "data-v-cc53b9fa"]]), oc = { class: "dialog__body" }, sc = { class: "options" }, cc = ["value"], lc = { class: "option__body" }, uc = { class: "option__label" }, dc = { class: "option__description" }, fc = { class: "dialog__footer" }, pc = /*#__PURE__*/ U(/* @__PURE__ */ l({
6434
6456
  __name: "PasteSpecialDialog",
6435
6457
  props: {
6436
6458
  isOpen: { type: Boolean },
6437
6459
  defaultMode: { default: "plainText" }
6438
6460
  },
6439
6461
  emits: ["close", "paste"],
6440
- setup(e, { emit: n }) {
6441
- let { Dialog: r } = Q(), a = [
6462
+ setup(t, { emit: n }) {
6463
+ let { Dialog: i } = Q(), s = [
6442
6464
  {
6443
6465
  value: "keepFormatting",
6444
6466
  label: "Keep source formatting",
@@ -6454,15 +6476,15 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
6454
6476
  label: "Unformatted text",
6455
6477
  description: "Paste text only and use the destination formatting."
6456
6478
  }
6457
- ], c = e, l = n, u = S(c.defaultMode);
6458
- N(() => c.isOpen, (e) => {
6479
+ ], c = t, l = n, u = x(c.defaultMode);
6480
+ M(() => c.isOpen, (e) => {
6459
6481
  e && (u.value = c.defaultMode);
6460
6482
  });
6461
6483
  function d() {
6462
6484
  l("paste", u.value), l("close");
6463
6485
  }
6464
- return (n, c) => (y(), i(O(r), {
6465
- open: e.isOpen,
6486
+ return (n, c) => (v(), r(D(i), {
6487
+ open: t.isOpen,
6466
6488
  "aria-label": "Paste Special",
6467
6489
  style: {
6468
6490
  minWidth: "360px",
@@ -6471,20 +6493,20 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
6471
6493
  },
6472
6494
  onClose: c[2] ||= (e) => n.$emit("close")
6473
6495
  }, {
6474
- default: P(() => [
6475
- c[4] ||= s("div", { class: "dialog__header" }, "Paste Special", -1),
6476
- s("div", ac, [s("fieldset", oc, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
6496
+ default: N(() => [
6497
+ c[4] ||= o("div", { class: "dialog__header" }, "Paste Special", -1),
6498
+ o("div", oc, [o("fieldset", sc, [c[3] ||= o("legend", { class: "options__legend" }, "Paste mode", -1), (v(), a(e, null, S(s, (e) => o("label", {
6477
6499
  key: e.value,
6478
6500
  class: "option"
6479
- }, [F(s("input", {
6501
+ }, [P(o("input", {
6480
6502
  "onUpdate:modelValue": c[0] ||= (e) => u.value = e,
6481
6503
  type: "radio",
6482
6504
  value: e.value
6483
- }, null, 8, sc), [[A, u.value]]), s("span", cc, [s("span", lc, T(e.label), 1), s("span", uc, T(e.description), 1)])])), 64))])]),
6484
- s("div", dc, [s("button", {
6505
+ }, null, 8, cc), [[k, u.value]]), o("span", lc, [o("span", uc, w(e.label), 1), o("span", dc, w(e.description), 1)])])), 64))])]),
6506
+ o("div", fc, [o("button", {
6485
6507
  class: "dialog__btn",
6486
6508
  onClick: c[1] ||= (e) => n.$emit("close")
6487
- }, "Cancel"), s("button", {
6509
+ }, "Cancel"), o("button", {
6488
6510
  class: "dialog__btn dialog__btn--primary",
6489
6511
  onClick: d
6490
6512
  }, "Paste")])
@@ -6492,7 +6514,7 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
6492
6514
  _: 1
6493
6515
  }, 8, ["open"]));
6494
6516
  }
6495
- }), [["__scopeId", "data-v-540e9db3"]]), pc = { class: "dialog__body" }, mc = { class: "grid" }, hc = { class: "field" }, gc = { class: "field" }, _c = { class: "check" }, vc = { class: "dialog__footer" }, yc = ["disabled"], bc = 1, xc = 63, Sc = /*#__PURE__*/ H(/* @__PURE__ */ u({
6517
+ }), [["__scopeId", "data-v-540e9db3"]]), mc = { class: "dialog__body" }, hc = { class: "grid" }, gc = { class: "field" }, _c = { class: "field" }, vc = { class: "check" }, yc = { class: "dialog__footer" }, bc = ["disabled"], xc = 1, Sc = 63, Cc = /*#__PURE__*/ U(/* @__PURE__ */ l({
6496
6518
  __name: "SplitCellDialog",
6497
6519
  props: {
6498
6520
  isOpen: { type: Boolean },
@@ -6501,21 +6523,21 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
6501
6523
  },
6502
6524
  emits: ["close", "split"],
6503
6525
  setup(e, { emit: t }) {
6504
- let { Dialog: n } = Q(), a = e, o = t, c = S(a.defaultRows), l = S(a.defaultColumns), u = S(!1), d = r(() => h(c.value)), f = r(() => h(l.value)), p = r(() => d.value > 1 || f.value > 1);
6505
- N(() => a.isOpen, (e) => {
6526
+ let { Dialog: i } = Q(), a = e, s = t, c = x(a.defaultRows), l = x(a.defaultColumns), u = x(!1), d = n(() => h(c.value)), f = n(() => h(l.value)), p = n(() => d.value > 1 || f.value > 1);
6527
+ M(() => a.isOpen, (e) => {
6506
6528
  e && (c.value = a.defaultRows, l.value = a.defaultColumns, u.value = !1);
6507
6529
  });
6508
6530
  function m() {
6509
- p.value && (o("split", {
6531
+ p.value && (s("split", {
6510
6532
  rows: d.value,
6511
6533
  columns: f.value,
6512
6534
  mergeBeforeSplit: u.value
6513
- }), o("close"));
6535
+ }), s("close"));
6514
6536
  }
6515
6537
  function h(e) {
6516
- return Math.min(xc, Math.max(bc, Math.trunc(e)));
6538
+ return Math.min(Sc, Math.max(xc, Math.trunc(e)));
6517
6539
  }
6518
- return (t, r) => (y(), i(O(n), {
6540
+ return (t, n) => (v(), r(D(i), {
6519
6541
  open: e.isOpen,
6520
6542
  "aria-label": "Split Cell",
6521
6543
  style: {
@@ -6523,49 +6545,49 @@ var Os = { class: "tsg" }, ks = { class: "tsg__grid" }, As = ["title", "onMoused
6523
6545
  maxWidth: "520px",
6524
6546
  width: "100%"
6525
6547
  },
6526
- onClose: r[4] ||= (e) => t.$emit("close"),
6527
- onKeydown: I(m, ["enter"])
6548
+ onClose: n[4] ||= (e) => t.$emit("close"),
6549
+ onKeydown: F(m, ["enter"])
6528
6550
  }, {
6529
- default: P(() => [
6530
- r[8] ||= s("div", { class: "dialog__header" }, "Split Cell", -1),
6531
- s("div", pc, [s("div", mc, [s("label", hc, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
6532
- "onUpdate:modelValue": r[0] ||= (e) => l.value = e,
6551
+ default: N(() => [
6552
+ n[8] ||= o("div", { class: "dialog__header" }, "Split Cell", -1),
6553
+ o("div", mc, [o("div", hc, [o("label", gc, [n[5] ||= o("span", { class: "field__label" }, "Columns", -1), P(o("input", {
6554
+ "onUpdate:modelValue": n[0] ||= (e) => l.value = e,
6533
6555
  class: "field__input",
6534
- max: xc,
6535
- min: bc,
6556
+ max: Sc,
6557
+ min: xc,
6536
6558
  type: "number"
6537
6559
  }, null, 512), [[
6538
- M,
6560
+ j,
6539
6561
  l.value,
6540
6562
  void 0,
6541
6563
  { number: !0 }
6542
- ]])]), s("label", gc, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
6543
- "onUpdate:modelValue": r[1] ||= (e) => c.value = e,
6564
+ ]])]), o("label", _c, [n[6] ||= o("span", { class: "field__label" }, "Rows", -1), P(o("input", {
6565
+ "onUpdate:modelValue": n[1] ||= (e) => c.value = e,
6544
6566
  class: "field__input",
6545
- max: xc,
6546
- min: bc,
6567
+ max: Sc,
6568
+ min: xc,
6547
6569
  type: "number"
6548
6570
  }, null, 512), [[
6549
- M,
6571
+ j,
6550
6572
  c.value,
6551
6573
  void 0,
6552
6574
  { number: !0 }
6553
- ]])])]), s("label", _c, [F(s("input", {
6554
- "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
6575
+ ]])])]), o("label", vc, [P(o("input", {
6576
+ "onUpdate:modelValue": n[2] ||= (e) => u.value = e,
6555
6577
  type: "checkbox"
6556
- }, null, 512), [[k, u.value]]), r[7] ||= s("span", null, "Merge selected cells before splitting", -1)])]),
6557
- s("div", vc, [s("button", {
6578
+ }, null, 512), [[O, u.value]]), n[7] ||= o("span", null, "Merge selected cells before splitting", -1)])]),
6579
+ o("div", yc, [o("button", {
6558
6580
  class: "dialog__btn",
6559
- onClick: r[3] ||= (e) => t.$emit("close")
6560
- }, "Cancel"), s("button", {
6581
+ onClick: n[3] ||= (e) => t.$emit("close")
6582
+ }, "Cancel"), o("button", {
6561
6583
  class: "dialog__btn dialog__btn--primary",
6562
6584
  disabled: !p.value,
6563
6585
  onClick: m
6564
- }, " Split ", 8, yc)])
6586
+ }, " Split ", 8, bc)])
6565
6587
  ]),
6566
6588
  _: 1
6567
6589
  }, 8, ["open"]));
6568
6590
  }
6569
6591
  }), [["__scopeId", "data-v-c4c6621c"]]);
6570
6592
  //#endregion
6571
- export { Ht as A, Tn as C, _n as D, yn as E, H as F, Kt as M, Z as N, Qt as O, G as P, Pn as S, xn as T, Jn as _, bs as a, Wn as b, Pa as c, Ti as d, oi as f, Yn as g, Gn as h, Ns as i, qt as j, Xt as k, ma as l, rr as m, fc as n, ls as o, Ar as p, ic as r, go as s, Sc as t, Qi as u, qn as v, Cn as w, Bn as x, Q as y };
6593
+ export { Ht as A, Tn as C, _n as D, yn as E, U as F, Kt as M, Z as N, Qt as O, K as P, Pn as S, xn as T, Jn as _, xs as a, Wn as b, Fa as c, Ei as d, si as f, Yn as g, Gn as h, Ps as i, qt as j, Xt as k, ha as l, ir as m, pc as n, us as o, jr as p, ac as r, _o as s, Cc as t, $i as u, qn as v, Cn as w, Bn as x, Q as y };