@stll/folio-vue 0.9.0 → 0.11.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 (40) hide show
  1. package/dist/{ListButtons-C1rU_Y1e.cjs → ListButtons-24sQYGSe.cjs} +2 -2
  2. package/dist/{ListButtons-DMnOM2pN.js → ListButtons-CAw3PKiv.js} +388 -384
  3. package/dist/SplitCellDialog-DJ-z75hr.cjs +15 -0
  4. package/dist/{WatermarkDialog-Cf9ISDvv.js → SplitCellDialog-DUzOQhr6.js} +990 -978
  5. package/dist/components/AutocompleteCaretOverlay.types.d.ts +18 -0
  6. package/dist/components/DocxEditor/pagedEditorRef.d.ts +14 -0
  7. package/dist/components/DocxEditor/types.d.ts +60 -0
  8. package/dist/composables/index.d.ts +1 -0
  9. package/dist/composables/useColorMode.d.ts +17 -4
  10. package/dist/composables/useCommentManagement.d.ts +8 -2
  11. package/dist/composables/useContextMenus.d.ts +3 -0
  12. package/dist/composables/useDocxEditor.d.ts +21 -0
  13. package/dist/composables/useDocxEditorRefApi.d.ts +18 -2
  14. package/dist/composables/useFontLifecycle.d.ts +22 -0
  15. package/dist/composables/useKeyboardShortcuts.d.ts +0 -1
  16. package/dist/composables/usePagesPointer.d.ts +5 -0
  17. package/dist/composables.cjs +2 -2
  18. package/dist/composables.js +75 -75
  19. package/dist/dialogs.cjs +1 -1
  20. package/dist/dialogs.js +2 -2
  21. package/dist/folio-vue.css +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.d.ts +5 -1
  24. package/dist/index.js +1762 -1278
  25. package/dist/renderAsync.d.ts +4 -0
  26. package/dist/ui/folio-ui.d.ts +1 -1
  27. package/dist/ui.cjs +1 -1
  28. package/dist/ui.js +10 -10
  29. package/dist/useZoom-DBbzwfMG.cjs +1 -0
  30. package/dist/useZoom-DwDDS7hq.js +749 -0
  31. package/dist/utils/colorMode.d.ts +3 -4
  32. package/dist/utils/embeddedFonts.d.ts +20 -0
  33. package/dist/utils/fontFaces.d.ts +10 -0
  34. package/dist/utils/hostFonts.d.ts +1 -5
  35. package/package.json +2 -2
  36. package/dist/WatermarkDialog-ChJtT7Bs.cjs +0 -15
  37. package/dist/composables/useHostCallbacks.d.ts +0 -24
  38. package/dist/composables/useMenuActions.d.ts +0 -36
  39. package/dist/useZoom-BYEcnpS0.cjs +0 -1
  40. package/dist/useZoom-C0p0o54p.js +0 -656
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "./useFindReplace-CL8Rbc3y.js";
2
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 { generateThemeTintShadeMatrix as ee, resolveColor as te, resolveColorToHex as R, resolveHighlightColor as ne } from "@stll/folio-core/utils/colorResolver";
4
- import { getFolioMessages as re } from "@stll/folio-core/i18n/messages";
5
- import { SYMBOL_CATEGORIES as ie, filterSymbols as ae } from "@stll/folio-core/symbols";
3
+ import { isAllowedExternalWatermarkImageUrl as R } from "@stll/folio-core/watermark";
4
+ import { getFolioMessages as ee } from "@stll/folio-core/i18n/messages";
5
+ import { generateThemeTintShadeMatrix as te, resolveColor as ne, resolveColorToHex as re, resolveHighlightColor as ie } from "@stll/folio-core/utils/colorResolver";
6
+ import { SYMBOL_CATEGORIES as ae, filterSymbols as oe } from "@stll/folio-core/symbols";
6
7
  import { TWIPS_PER_INCH as z } from "@stll/folio-core/utils/units";
7
8
  //#region \0rolldown/runtime.js
8
9
  var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), V = (e, t) => {
9
10
  let n = e.__vccOpts || e;
10
11
  for (let [e, r] of t) n[e] = r;
11
12
  return n;
12
- }, oe = {
13
+ }, se = {
13
14
  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"],
14
15
  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"],
15
16
  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"],
@@ -109,7 +110,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
109
110
  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"],
110
111
  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"],
111
112
  "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"]
112
- }, se = ["width", "height"], ce = ["d"], H = /* @__PURE__ */ u({
113
+ }, ce = ["width", "height"], le = ["d"], H = /* @__PURE__ */ u({
113
114
  __name: "MaterialSymbol",
114
115
  props: {
115
116
  name: {},
@@ -118,7 +119,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
118
119
  style: {}
119
120
  },
120
121
  setup(e) {
121
- let n = e, i = oe, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
122
+ let n = e, i = se, a = r(() => i[n.name] || (typeof console < "u" && console.warn(`Icon not found: ${n.name}`), null));
122
123
  return (n, r) => a.value ? (y(), o("svg", {
123
124
  key: 0,
124
125
  xmlns: "http://www.w3.org/2000/svg",
@@ -136,7 +137,7 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
136
137
  }, [(y(!0), o(t, null, C(a.value, (e, t) => (y(), o("path", {
137
138
  key: t,
138
139
  d: e
139
- }, null, 8, ce))), 128))], 14, se)) : (y(), o("span", {
140
+ }, null, 8, le))), 128))], 14, ce)) : (y(), o("span", {
140
141
  key: 1,
141
142
  class: h(e.className),
142
143
  style: g({
@@ -148,103 +149,43 @@ var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
148
149
  })
149
150
  }, T(e.name), 7));
150
151
  }
151
- }), le = ["disabled"], U = "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", ue = /* @__PURE__ */ u({
152
- __name: "Button",
153
- props: {
154
- variant: { default: "default" },
155
- size: { default: "default" },
156
- disabled: {
157
- type: Boolean,
158
- default: !1
159
- },
160
- className: { default: "" }
161
- },
162
- emits: ["click"],
163
- setup(e) {
164
- let t = e, n = {
165
- default: "bg-primary text-primary-foreground hover:bg-primary/90",
166
- destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
167
- outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
168
- secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
169
- ghost: "hover:bg-accent hover:text-accent-foreground",
170
- link: "text-primary underline-offset-4 hover:underline"
171
- }, i = {
172
- default: "h-10 px-4 py-2",
173
- sm: "h-9 rounded-md px-3",
174
- lg: "h-11 rounded-md px-8",
175
- icon: "h-9 w-9",
176
- "icon-sm": "h-7 w-7",
177
- xs: "h-7 rounded-md px-2 text-xs",
178
- "icon-xs": "h-7 w-7"
179
- }, a = r(() => [
180
- U,
181
- n[t.variant],
182
- i[t.size],
183
- t.className
184
- ].filter(Boolean).join(" "));
185
- return (t, n) => (y(), o("button", {
186
- type: "button",
187
- class: h(a.value),
188
- disabled: e.disabled,
189
- onClick: n[0] ||= (e) => t.$emit("click", e)
190
- }, [w(t.$slots, "default")], 10, le));
191
- }
192
- }), de = ["checked"], W = /*#__PURE__*/ V(/* @__PURE__ */ u({
193
- __name: "Checkbox",
194
- props: {
195
- checked: { type: Boolean },
196
- className: {}
197
- },
198
- emits: ["update:checked"],
199
- setup(e, { emit: t }) {
200
- let n = t;
201
- function r(e) {
202
- e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
203
- }
204
- return (t, n) => (y(), o("input", {
205
- type: "checkbox",
206
- class: h(["folio-default-checkbox", e.className]),
207
- checked: e.checked,
208
- onChange: r
209
- }, null, 42, de));
210
- }
211
- }), [["__scopeId", "data-v-2e4f5470"]]);
152
+ });
212
153
  //#endregion
213
154
  //#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.6/node_modules/@formatjs/fast-memoize/index.js
214
- function G(e, t) {
215
- let n = t && t.cache ? t.cache : xe, r = t && t.serializer ? t.serializer : ye;
216
- return (t && t.strategy ? t.strategy : ge)(e, {
155
+ function U(e, t) {
156
+ let n = t && t.cache ? t.cache : _e, r = t && t.serializer ? t.serializer : he;
157
+ return (t && t.strategy ? t.strategy : fe)(e, {
217
158
  cache: n,
218
159
  serializer: r
219
160
  });
220
161
  }
221
- function fe(e) {
162
+ function ue(e) {
222
163
  return e == null || typeof e == "number" || typeof e == "boolean";
223
164
  }
224
- function pe(e, t, n, r) {
225
- let i = fe(r) ? r : n(r), a = t.get(i);
165
+ function de(e, t, n, r) {
166
+ let i = ue(r) ? r : n(r), a = t.get(i);
226
167
  return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
227
168
  }
228
- function me(e, t, n) {
169
+ function W(e, t, n) {
229
170
  let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
230
171
  return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
231
172
  }
232
- function he(e, t, n, r, i) {
173
+ function G(e, t, n, r, i) {
233
174
  return n.bind(t, e, r, i);
234
175
  }
235
- function ge(e, t) {
236
- let n = e.length === 1 ? pe : me;
237
- return he(e, this, n, t.cache.create(), t.serializer);
176
+ function fe(e, t) {
177
+ let n = e.length === 1 ? de : W;
178
+ return G(e, this, n, t.cache.create(), t.serializer);
238
179
  }
239
- function _e(e, t) {
240
- return he(e, this, me, t.cache.create(), t.serializer);
180
+ function pe(e, t) {
181
+ return G(e, this, W, t.cache.create(), t.serializer);
241
182
  }
242
- function ve(e, t) {
243
- return he(e, this, pe, t.cache.create(), t.serializer);
183
+ function me(e, t) {
184
+ return G(e, this, de, t.cache.create(), t.serializer);
244
185
  }
245
- var ye = function() {
186
+ var he = function() {
246
187
  return JSON.stringify(arguments);
247
- }, be = class {
188
+ }, ge = class {
248
189
  constructor() {
249
190
  this.cache = Object.create(null);
250
191
  }
@@ -254,20 +195,20 @@ var ye = function() {
254
195
  set(e, t) {
255
196
  this.cache[e] = t;
256
197
  }
257
- }, xe = { create: function() {
258
- return new be();
259
- } }, K = {
260
- variadic: _e,
261
- monadic: ve
262
- }, q = class extends Error {
198
+ }, _e = { create: function() {
199
+ return new ge();
200
+ } }, ve = {
201
+ variadic: pe,
202
+ monadic: me
203
+ }, K = class extends Error {
263
204
  constructor(e, t) {
264
205
  let n = e;
265
206
  t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
266
207
  }
267
- }, J = function(e) {
208
+ }, q = function(e) {
268
209
  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;
269
- }(J || {});
270
- function Se() {
210
+ }(q || {});
211
+ function ye() {
271
212
  return {
272
213
  dateTime: {},
273
214
  number: {},
@@ -278,34 +219,34 @@ function Se() {
278
219
  displayNames: {}
279
220
  };
280
221
  }
281
- function Ce(e, t) {
282
- return G(e, {
222
+ function be(e, t) {
223
+ return U(e, {
283
224
  cache: (n = t, { create: () => ({
284
225
  get: (e) => n[e],
285
226
  set(e, t) {
286
227
  n[e] = t;
287
228
  }
288
229
  }) }),
289
- strategy: K.variadic
230
+ strategy: ve.variadic
290
231
  });
291
232
  var n;
292
233
  }
293
- function Y(e, t) {
294
- return Ce(((...t) => new e(...t)), t);
234
+ function J(e, t) {
235
+ return be(((...t) => new e(...t)), t);
295
236
  }
296
- function we(e) {
237
+ function xe(e) {
297
238
  return {
298
- getDateTimeFormat: Y(Intl.DateTimeFormat, e.dateTime),
299
- getNumberFormat: Y(Intl.NumberFormat, e.number),
300
- getPluralRules: Y(Intl.PluralRules, e.pluralRules),
301
- getRelativeTimeFormat: Y(Intl.RelativeTimeFormat, e.relativeTime),
302
- getListFormat: Y(Intl.ListFormat, e.list),
303
- getDisplayNames: Y(Intl.DisplayNames, e.displayNames)
239
+ getDateTimeFormat: J(Intl.DateTimeFormat, e.dateTime),
240
+ getNumberFormat: J(Intl.NumberFormat, e.number),
241
+ getPluralRules: J(Intl.PluralRules, e.pluralRules),
242
+ getRelativeTimeFormat: J(Intl.RelativeTimeFormat, e.relativeTime),
243
+ getListFormat: J(Intl.ListFormat, e.list),
244
+ getDisplayNames: J(Intl.DisplayNames, e.displayNames)
304
245
  };
305
246
  }
306
247
  //#endregion
307
248
  //#region ../../node_modules/.bun/react@19.2.7/node_modules/react/cjs/react.production.js
308
- var Te = /* @__PURE__ */ B(((e) => {
249
+ var Se = /* @__PURE__ */ B(((e) => {
309
250
  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;
310
251
  function m(e) {
311
252
  return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
@@ -591,7 +532,7 @@ var Te = /* @__PURE__ */ B(((e) => {
591
532
  }, e.useTransition = function() {
592
533
  return w.H.useTransition();
593
534
  }, e.version = "19.2.7";
594
- })), Ee = /* @__PURE__ */ B(((e, t) => {
535
+ })), Ce = /* @__PURE__ */ B(((e, t) => {
595
536
  process.env.NODE_ENV !== "production" && (function() {
596
537
  function n(e, t) {
597
538
  Object.defineProperty(a.prototype, e, { get: function() {
@@ -599,7 +540,7 @@ var Te = /* @__PURE__ */ B(((e) => {
599
540
  } });
600
541
  }
601
542
  function r(e) {
602
- return typeof e != "object" || !e ? null : (e = oe && e[oe] || e["@@iterator"], typeof e == "function" ? e : null);
543
+ return typeof e != "object" || !e ? null : (e = V && e[V] || e["@@iterator"], typeof e == "function" ? e : null);
603
544
  }
604
545
  function i(e, t) {
605
546
  e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
@@ -607,11 +548,11 @@ var Te = /* @__PURE__ */ B(((e) => {
607
548
  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);
608
549
  }
609
550
  function a(e, t, n) {
610
- this.props = e, this.context = t, this.refs = le, this.updater = n || ce;
551
+ this.props = e, this.context = t, this.refs = H, this.updater = n || ce;
611
552
  }
612
553
  function o() {}
613
554
  function s(e, t, n) {
614
- this.props = e, this.context = t, this.refs = le, this.updater = n || ce;
555
+ this.props = e, this.context = t, this.refs = H, this.updater = n || ce;
615
556
  }
616
557
  function c() {}
617
558
  function l(e) {
@@ -636,21 +577,21 @@ var Te = /* @__PURE__ */ B(((e) => {
636
577
  if (typeof e == "string") return e;
637
578
  switch (e) {
638
579
  case L: return "Fragment";
639
- case te: return "Profiler";
640
- case ee: return "StrictMode";
580
+ case ee: return "Profiler";
581
+ case R: return "StrictMode";
641
582
  case ie: return "Suspense";
642
583
  case ae: return "SuspenseList";
643
- case V: return "Activity";
584
+ case B: return "Activity";
644
585
  }
645
586
  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) {
646
587
  case I: return "Portal";
647
588
  case ne: return e.displayName || "Context";
648
- case R: return (e._context.displayName || "Context") + ".Consumer";
589
+ case te: return (e._context.displayName || "Context") + ".Consumer";
649
590
  case re:
650
591
  var t = e.render;
651
592
  return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
652
- case z: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
653
- case B:
593
+ case oe: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
594
+ case z:
654
595
  t = e._payload, e = e._init;
655
596
  try {
656
597
  return d(e(t));
@@ -660,7 +601,7 @@ var Te = /* @__PURE__ */ B(((e) => {
660
601
  }
661
602
  function f(e) {
662
603
  if (e === L) return "<>";
663
- if (typeof e == "object" && e && e.$$typeof === B) return "<...>";
604
+ if (typeof e == "object" && e && e.$$typeof === z) return "<...>";
664
605
  try {
665
606
  var t = d(e);
666
607
  return t ? "<" + t + ">" : "<...>";
@@ -735,7 +676,7 @@ var Te = /* @__PURE__ */ B(((e) => {
735
676
  return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
736
677
  }
737
678
  function b(e) {
738
- x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === B && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
679
+ x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === z && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
739
680
  }
740
681
  function x(e) {
741
682
  return typeof e == "object" && !!e && e.$$typeof === F;
@@ -783,15 +724,15 @@ var Te = /* @__PURE__ */ B(((e) => {
783
724
  case I:
784
725
  s = !0;
785
726
  break;
786
- case B: return s = e._init, T(s(e._payload), t, n, i, a);
727
+ case z: return s = e._init, T(s(e._payload), t, n, i, a);
787
728
  }
788
729
  }
789
730
  if (s) {
790
731
  s = e, a = a(s);
791
732
  var c = i === "" ? "." + C(s, 0) : i;
792
- return ue(a) ? (n = "", c != null && (n = c.replace(ye, "$&/") + "/"), T(a, t, n, "", function(e) {
733
+ return ue(a) ? (n = "", c != null && (n = c.replace(K, "$&/") + "/"), T(a, t, n, "", function(e) {
793
734
  return e;
794
- })) : 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(ye, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
735
+ })) : 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(K, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
795
736
  }
796
737
  if (s = 0, c = i === "" ? "." : i + ":", ue(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
797
738
  else if (l = r(e), typeof l == "function") for (l === e.entries && (ve || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ve = !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);
@@ -843,23 +784,23 @@ var Te = /* @__PURE__ */ B(((e) => {
843
784
  W.asyncTransitions--;
844
785
  }
845
786
  function A(e) {
846
- if (K === null) try {
787
+ if (be === null) try {
847
788
  var n = ("require" + Math.random()).slice(0, 7);
848
- K = (t && t[n]).call(t, "timers").setImmediate;
789
+ be = (t && t[n]).call(t, "timers").setImmediate;
849
790
  } catch {
850
- K = function(e) {
851
- !1 === xe && (xe = !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."));
791
+ be = function(e) {
792
+ !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."));
852
793
  var t = new MessageChannel();
853
794
  t.port1.onmessage = e, t.port2.postMessage(void 0);
854
795
  };
855
796
  }
856
- return K(e);
797
+ return be(e);
857
798
  }
858
799
  function j(e) {
859
800
  return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
860
801
  }
861
802
  function M(e, t) {
862
- t !== q - 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. "), q = t;
803
+ 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;
863
804
  }
864
805
  function N(e, t, n) {
865
806
  var r = W.actQueue;
@@ -902,7 +843,7 @@ var Te = /* @__PURE__ */ B(((e) => {
902
843
  }
903
844
  }
904
845
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
905
- var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), te = Symbol.for("react.profiler"), R = 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"), oe = Symbol.iterator, se = {}, ce = {
846
+ 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"), oe = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), V = Symbol.iterator, se = {}, ce = {
906
847
  isMounted: function() {
907
848
  return !1;
908
849
  },
@@ -915,8 +856,8 @@ var Te = /* @__PURE__ */ B(((e) => {
915
856
  enqueueSetState: function(e) {
916
857
  i(e, "setState");
917
858
  }
918
- }, H = Object.assign, le = {};
919
- Object.freeze(le), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
859
+ }, le = Object.assign, H = {};
860
+ Object.freeze(H), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
920
861
  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.");
921
862
  this.updater.enqueueSetState(this, e, t, "setState");
922
863
  }, a.prototype.forceUpdate = function(e) {
@@ -927,7 +868,7 @@ var Te = /* @__PURE__ */ B(((e) => {
927
868
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
928
869
  };
929
870
  for (Y in U) U.hasOwnProperty(Y) && n(Y, U[Y]);
930
- o.prototype = a.prototype, U = s.prototype = new o(), U.constructor = s, H(U, a.prototype), U.isPureReactComponent = !0;
871
+ o.prototype = a.prototype, U = s.prototype = new o(), U.constructor = s, le(U, a.prototype), U.isPureReactComponent = !0;
931
872
  var ue = Array.isArray, de = Symbol.for("react.client.reference"), W = {
932
873
  H: null,
933
874
  A: null,
@@ -947,7 +888,7 @@ var Te = /* @__PURE__ */ B(((e) => {
947
888
  U = { react_stack_bottom_frame: function(e) {
948
889
  return e();
949
890
  } };
950
- var pe, me, he = {}, ge = U.react_stack_bottom_frame.bind(U, m)(), _e = fe(f(m)), ve = !1, ye = /\/+/g, be = typeof reportError == "function" ? reportError : function(e) {
891
+ var pe, me, he = {}, ge = U.react_stack_bottom_frame.bind(U, m)(), _e = fe(f(m)), ve = !1, K = /\/+/g, q = typeof reportError == "function" ? reportError : function(e) {
951
892
  if (typeof window == "object" && typeof window.ErrorEvent == "function") {
952
893
  var t = new window.ErrorEvent("error", {
953
894
  bubbles: !0,
@@ -961,7 +902,7 @@ var Te = /* @__PURE__ */ B(((e) => {
961
902
  return;
962
903
  }
963
904
  console.error(e);
964
- }, xe = !1, K = null, q = 0, J = !1, Se = !1, Ce = typeof queueMicrotask == "function" ? function(e) {
905
+ }, ye = !1, be = null, J = 0, xe = !1, Se = !1, Ce = typeof queueMicrotask == "function" ? function(e) {
965
906
  queueMicrotask(function() {
966
907
  return queueMicrotask(e);
967
908
  });
@@ -995,9 +936,9 @@ var Te = /* @__PURE__ */ B(((e) => {
995
936
  return e;
996
937
  }
997
938
  };
998
- e.Activity = V, e.Children = Y, e.Component = a, e.Fragment = L, e.Profiler = te, e.PureComponent = s, e.StrictMode = ee, e.Suspense = ie, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = W, e.__COMPILER_RUNTIME = U, e.act = function(e) {
999
- var t = W.actQueue, n = q;
1000
- q++;
939
+ e.Activity = B, e.Children = Y, 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 = W, e.__COMPILER_RUNTIME = U, e.act = function(e) {
940
+ var t = W.actQueue, n = J;
941
+ J++;
1001
942
  var r = W.actQueue = t === null ? [] : t, i = !1;
1002
943
  try {
1003
944
  var a = e();
@@ -1008,7 +949,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1008
949
  if (typeof a == "object" && a && typeof a.then == "function") {
1009
950
  var o = a;
1010
951
  return Ce(function() {
1011
- i || J || (J = !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 () => ...);"));
952
+ 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 () => ...);"));
1012
953
  }), { then: function(e, a) {
1013
954
  i = !0, o.then(function(i) {
1014
955
  if (M(t, n), n === 0) {
@@ -1031,7 +972,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1031
972
  }
1032
973
  var s = a;
1033
974
  if (M(t, n), n === 0 && (P(r), r.length !== 0 && Ce(function() {
1034
- i || J || (J = !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(() => ...)"));
975
+ 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(() => ...)"));
1035
976
  }), W.actQueue = null), 0 < W.thrownErrors.length) throw e = j(W.thrownErrors), W.thrownErrors.length = 0, e;
1036
977
  return { then: function(e, t) {
1037
978
  i = !0, n === 0 ? (W.actQueue = r, A(function() {
@@ -1049,7 +990,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1049
990
  return e === null ? null : e();
1050
991
  }, e.cloneElement = function(e, t, n) {
1051
992
  if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
1052
- var r = H({}, e.props), i = e.key, a = e._owner;
993
+ var r = le({}, e.props), i = e.key, a = e._owner;
1053
994
  if (t != null) {
1054
995
  var o;
1055
996
  a: {
@@ -1079,7 +1020,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1079
1020
  Provider: null,
1080
1021
  Consumer: null
1081
1022
  }, e.Provider = e, e.Consumer = {
1082
- $$typeof: R,
1023
+ $$typeof: te,
1083
1024
  _context: e
1084
1025
  }, e._currentRenderer = null, e._currentRenderer2 = null, e;
1085
1026
  }, e.createElement = function(e, t, n) {
@@ -1101,7 +1042,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1101
1042
  var e = { current: null };
1102
1043
  return Object.seal(e), e;
1103
1044
  }, e.forwardRef = function(e) {
1104
- 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?");
1045
+ e != null && e.$$typeof === oe ? 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?");
1105
1046
  var t = {
1106
1047
  $$typeof: re,
1107
1048
  render: e
@@ -1122,7 +1063,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1122
1063
  _result: e
1123
1064
  };
1124
1065
  var t = {
1125
- $$typeof: B,
1066
+ $$typeof: z,
1126
1067
  _payload: e,
1127
1068
  _init: D
1128
1069
  }, n = {
@@ -1137,7 +1078,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1137
1078
  return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
1138
1079
  }, e.memo = function(e, t) {
1139
1080
  e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
1140
- $$typeof: z,
1081
+ $$typeof: oe,
1141
1082
  type: e,
1142
1083
  compare: t === void 0 ? null : t
1143
1084
  };
@@ -1157,9 +1098,9 @@ var Te = /* @__PURE__ */ B(((e) => {
1157
1098
  n._updatedFibers = /* @__PURE__ */ new Set(), W.T = n;
1158
1099
  try {
1159
1100
  var r = e(), i = W.S;
1160
- i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (W.asyncTransitions++, r.then(k, k), r.then(c, be));
1101
+ i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (W.asyncTransitions++, r.then(k, k), r.then(c, q));
1161
1102
  } catch (e) {
1162
- be(e);
1103
+ q(e);
1163
1104
  } finally {
1164
1105
  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), W.T = t;
1165
1106
  }
@@ -1173,7 +1114,7 @@ var Te = /* @__PURE__ */ B(((e) => {
1173
1114
  return O().useCallback(e, t);
1174
1115
  }, e.useContext = function(e) {
1175
1116
  var t = O();
1176
- return e.$$typeof === R && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
1117
+ 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);
1177
1118
  }, e.useDebugValue = function(e, t) {
1178
1119
  return O().useDebugValue(e, t);
1179
1120
  }, e.useDeferredValue = function(e, t) {
@@ -1206,12 +1147,12 @@ var Te = /* @__PURE__ */ B(((e) => {
1206
1147
  return O().useTransition();
1207
1148
  }, e.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1208
1149
  })();
1209
- })), De = (/* @__PURE__ */ B(((e, t) => {
1210
- process.env.NODE_ENV === "production" ? t.exports = Te() : t.exports = Ee();
1211
- })))(), Oe = /(?:[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;
1212
- function ke(e) {
1150
+ })), Y = (/* @__PURE__ */ B(((e, t) => {
1151
+ process.env.NODE_ENV === "production" ? t.exports = Se() : t.exports = Ce();
1152
+ })))(), we = /(?:[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;
1153
+ function Te(e) {
1213
1154
  let t = {};
1214
- return e.replace(Oe, (e) => {
1155
+ return e.replace(we, (e) => {
1215
1156
  let n = e.length;
1216
1157
  switch (e[0]) {
1217
1158
  case "G":
@@ -1306,10 +1247,10 @@ function ke(e) {
1306
1247
  return "";
1307
1248
  }), t;
1308
1249
  }
1309
- var Ae = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1310
- function je(e) {
1250
+ var Ee = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1251
+ function De(e) {
1311
1252
  if (e.length === 0) throw Error("Number skeleton cannot be empty");
1312
- let t = e.split(Ae).filter((e) => e.length > 0), n = [];
1253
+ let t = e.split(Ee).filter((e) => e.length > 0), n = [];
1313
1254
  for (let e of t) {
1314
1255
  let t = e.split("/");
1315
1256
  if (t.length === 0) throw Error("Invalid number skeleton");
@@ -1322,17 +1263,17 @@ function je(e) {
1322
1263
  }
1323
1264
  return n;
1324
1265
  }
1325
- function Me(e) {
1266
+ function Oe(e) {
1326
1267
  return e.replace(/^(.*?)-/, "");
1327
1268
  }
1328
- var Ne = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pe = /^(@+)?(\+|#+)?[rs]?$/g, Fe = /(\*)(0+)|(#+)(0+)|(0+)/g, Ie = /^(0+)$/;
1329
- function Le(e) {
1269
+ var ke = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ae = /^(@+)?(\+|#+)?[rs]?$/g, je = /(\*)(0+)|(#+)(0+)|(0+)/g, Me = /^(0+)$/;
1270
+ function Ne(e) {
1330
1271
  let t = {};
1331
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pe, function(e, n, r) {
1272
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ae, function(e, n, r) {
1332
1273
  return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
1333
1274
  }), t;
1334
1275
  }
1335
- function Re(e) {
1276
+ function Pe(e) {
1336
1277
  switch (e) {
1337
1278
  case "sign-auto": return { signDisplay: "auto" };
1338
1279
  case "sign-accounting":
@@ -1355,19 +1296,19 @@ function Re(e) {
1355
1296
  case "+_": return { signDisplay: "never" };
1356
1297
  }
1357
1298
  }
1358
- function ze(e) {
1299
+ function Fe(e) {
1359
1300
  let t;
1360
1301
  if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
1361
1302
  let n = e.slice(0, 2);
1362
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ie.test(e)) throw Error("Malformed concise eng/scientific notation");
1303
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Me.test(e)) throw Error("Malformed concise eng/scientific notation");
1363
1304
  t.minimumIntegerDigits = e.length;
1364
1305
  }
1365
1306
  return t;
1366
1307
  }
1367
- function Be(e) {
1368
- return Re(e) || {};
1308
+ function Ie(e) {
1309
+ return Pe(e) || {};
1369
1310
  }
1370
- function Ve(e) {
1311
+ function Le(e) {
1371
1312
  let t = {};
1372
1313
  for (let n of e) {
1373
1314
  switch (n.stem) {
@@ -1391,7 +1332,7 @@ function Ve(e) {
1391
1332
  continue;
1392
1333
  case "measure-unit":
1393
1334
  case "unit":
1394
- t.style = "unit", t.unit = Me(n.options[0]);
1335
+ t.style = "unit", t.unit = Oe(n.options[0]);
1395
1336
  continue;
1396
1337
  case "compact-short":
1397
1338
  case "K":
@@ -1407,7 +1348,7 @@ function Ve(e) {
1407
1348
  notation: "scientific",
1408
1349
  ...n.options.reduce((e, t) => ({
1409
1350
  ...e,
1410
- ...Be(t)
1351
+ ...Ie(t)
1411
1352
  }), {})
1412
1353
  };
1413
1354
  continue;
@@ -1417,7 +1358,7 @@ function Ve(e) {
1417
1358
  notation: "engineering",
1418
1359
  ...n.options.reduce((e, t) => ({
1419
1360
  ...e,
1420
- ...Be(t)
1361
+ ...Ie(t)
1421
1362
  }), {})
1422
1363
  };
1423
1364
  continue;
@@ -1462,7 +1403,7 @@ function Ve(e) {
1462
1403
  continue;
1463
1404
  case "integer-width":
1464
1405
  if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
1465
- n.options[0].replace(Fe, function(e, n, r, i, a, o) {
1406
+ n.options[0].replace(je, function(e, n, r, i, a, o) {
1466
1407
  if (n) t.minimumIntegerDigits = r.length;
1467
1408
  else if (i && a) throw Error("We currently do not support maximum integer digits");
1468
1409
  else if (o) throw Error("We currently do not support exact integer digits");
@@ -1470,13 +1411,13 @@ function Ve(e) {
1470
1411
  });
1471
1412
  continue;
1472
1413
  }
1473
- if (Ie.test(n.stem)) {
1414
+ if (Me.test(n.stem)) {
1474
1415
  t.minimumIntegerDigits = n.stem.length;
1475
1416
  continue;
1476
1417
  }
1477
- if (Ne.test(n.stem)) {
1418
+ if (ke.test(n.stem)) {
1478
1419
  if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
1479
- n.stem.replace(Ne, function(e, n, r, i, a, o) {
1420
+ n.stem.replace(ke, function(e, n, r, i, a, o) {
1480
1421
  return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
1481
1422
  });
1482
1423
  let e = n.options[0];
@@ -1485,23 +1426,23 @@ function Ve(e) {
1485
1426
  trailingZeroDisplay: "stripIfInteger"
1486
1427
  } : e && (t = {
1487
1428
  ...t,
1488
- ...Le(e)
1429
+ ...Ne(e)
1489
1430
  });
1490
1431
  continue;
1491
1432
  }
1492
- if (Pe.test(n.stem)) {
1433
+ if (Ae.test(n.stem)) {
1493
1434
  t = {
1494
1435
  ...t,
1495
- ...Le(n.stem)
1436
+ ...Ne(n.stem)
1496
1437
  };
1497
1438
  continue;
1498
1439
  }
1499
- let e = Re(n.stem);
1440
+ let e = Pe(n.stem);
1500
1441
  e && (t = {
1501
1442
  ...t,
1502
1443
  ...e
1503
1444
  });
1504
- let r = ze(n.stem);
1445
+ let r = Fe(n.stem);
1505
1446
  r && (t = {
1506
1447
  ...t,
1507
1448
  ...r
@@ -1511,43 +1452,43 @@ function Ve(e) {
1511
1452
  }
1512
1453
  //#endregion
1513
1454
  //#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.12/node_modules/@formatjs/icu-messageformat-parser/index.js
1514
- var He = /* @__PURE__ */ function(e) {
1455
+ var Re = /* @__PURE__ */ function(e) {
1515
1456
  return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
1516
1457
  }({});
1517
- function Ue(e) {
1458
+ function ze(e) {
1518
1459
  return e.type === 0;
1519
1460
  }
1520
- function We(e) {
1461
+ function Be(e) {
1521
1462
  return e.type === 1;
1522
1463
  }
1523
- function Ge(e) {
1464
+ function Ve(e) {
1524
1465
  return e.type === 2;
1525
1466
  }
1526
- function Ke(e) {
1467
+ function He(e) {
1527
1468
  return e.type === 3;
1528
1469
  }
1529
- function qe(e) {
1470
+ function Ue(e) {
1530
1471
  return e.type === 4;
1531
1472
  }
1532
- function Je(e) {
1473
+ function We(e) {
1533
1474
  return e.type === 5;
1534
1475
  }
1535
- function Ye(e) {
1476
+ function Ge(e) {
1536
1477
  return e.type === 6;
1537
1478
  }
1538
- function Xe(e) {
1479
+ function Ke(e) {
1539
1480
  return e.type === 7;
1540
1481
  }
1541
- function Ze(e) {
1482
+ function qe(e) {
1542
1483
  return e.type === 8;
1543
1484
  }
1544
- function Qe(e) {
1485
+ function Je(e) {
1545
1486
  return !!(e && typeof e == "object" && e.type === 0);
1546
1487
  }
1547
- function $e(e) {
1488
+ function Ye(e) {
1548
1489
  return !!(e && typeof e == "object" && e.type === 1);
1549
1490
  }
1550
- var et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tt = {
1491
+ var Xe = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ze = {
1551
1492
  "001": ["H", "h"],
1552
1493
  419: [
1553
1494
  "h",
@@ -2710,21 +2651,21 @@ var et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, tt = {
2710
2651
  "h"
2711
2652
  ]
2712
2653
  };
2713
- function nt(e, t) {
2654
+ function Qe(e, t) {
2714
2655
  let n = "";
2715
2656
  for (let r = 0; r < e.length; r++) {
2716
2657
  let i = e.charAt(r);
2717
2658
  if (i === "j") {
2718
2659
  let a = 0;
2719
2660
  for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
2720
- let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = rt(t);
2661
+ let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = $e(t);
2721
2662
  for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
2722
2663
  for (; o-- > 0;) n = c + n;
2723
2664
  } else i === "J" ? n += "H" : n += i;
2724
2665
  }
2725
2666
  return n;
2726
2667
  }
2727
- function rt(e) {
2668
+ function $e(e) {
2728
2669
  let t = e.hourCycle;
2729
2670
  if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
2730
2671
  case "h24": return "k";
@@ -2734,32 +2675,32 @@ function rt(e) {
2734
2675
  default: throw Error("Invalid hourCycle");
2735
2676
  }
2736
2677
  let n = e.language, r;
2737
- return n !== "root" && (r = e.maximize().region), (tt[r || ""] || tt[n || ""] || tt[`${n}-001`] || tt["001"])[0];
2678
+ return n !== "root" && (r = e.maximize().region), (Ze[r || ""] || Ze[n || ""] || Ze[`${n}-001`] || Ze["001"])[0];
2738
2679
  }
2739
- var it = RegExp(`^${et.source}*`), at = RegExp(`${et.source}*$`);
2680
+ var et = RegExp(`^${Xe.source}*`), tt = RegExp(`${Xe.source}*$`);
2740
2681
  function X(e, t) {
2741
2682
  return {
2742
2683
  start: e,
2743
2684
  end: t
2744
2685
  };
2745
2686
  }
2746
- var ot = !!Object.fromEntries, st = !!String.prototype.trimStart, ct = !!String.prototype.trimEnd, lt = ot ? Object.fromEntries : function(e) {
2687
+ var nt = !!Object.fromEntries, rt = !!String.prototype.trimStart, it = !!String.prototype.trimEnd, at = nt ? Object.fromEntries : function(e) {
2747
2688
  let t = {};
2748
2689
  for (let [n, r] of e) t[n] = r;
2749
2690
  return t;
2750
- }, ut = st ? function(e) {
2691
+ }, ot = rt ? function(e) {
2751
2692
  return e.trimStart();
2752
2693
  } : function(e) {
2753
- return e.replace(it, "");
2754
- }, dt = ct ? function(e) {
2694
+ return e.replace(et, "");
2695
+ }, st = it ? function(e) {
2755
2696
  return e.trimEnd();
2756
2697
  } : function(e) {
2757
- return e.replace(at, "");
2758
- }, ft = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2759
- function pt(e, t) {
2760
- return ft.lastIndex = t, ft.exec(e)[1] ?? "";
2698
+ return e.replace(tt, "");
2699
+ }, ct = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2700
+ function lt(e, t) {
2701
+ return ct.lastIndex = t, ct.exec(e)[1] ?? "";
2761
2702
  }
2762
- function mt(e) {
2703
+ function ut(e) {
2763
2704
  if (e.length === 0) return null;
2764
2705
  let t = 1, n = 1;
2765
2706
  for (let r = 0; r < e.length;) {
@@ -2783,7 +2724,7 @@ function mt(e) {
2783
2724
  column: n
2784
2725
  };
2785
2726
  }
2786
- var ht = class {
2727
+ var dt = class {
2787
2728
  constructor(e, t = {}) {
2788
2729
  this.message = e, this.position = {
2789
2730
  offset: 0,
@@ -2796,7 +2737,7 @@ var ht = class {
2796
2737
  if (this.message.length > 0) {
2797
2738
  let e = this.message.charCodeAt(0);
2798
2739
  if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
2799
- let e = mt(this.message);
2740
+ let e = ut(this.message);
2800
2741
  if (e) {
2801
2742
  let t = this.clonePosition();
2802
2743
  return this.position = e, {
@@ -2830,7 +2771,7 @@ var ht = class {
2830
2771
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
2831
2772
  if (n) break;
2832
2773
  return this.error(26, X(this.clonePosition(), this.clonePosition()));
2833
- } else if (i === 60 && !this.ignoreTag && gt(this.peek() || 0)) {
2774
+ } else if (i === 60 && !this.ignoreTag && ft(this.peek() || 0)) {
2834
2775
  let n = this.parseTag(e, t);
2835
2776
  if (n.err) return n;
2836
2777
  r.push(n.val);
@@ -2862,7 +2803,7 @@ var ht = class {
2862
2803
  if (i.err) return i;
2863
2804
  let a = i.val, o = this.clonePosition();
2864
2805
  if (this.bumpIf("</")) {
2865
- if (this.isEOF() || !gt(this.char())) return this.error(23, X(o, this.clonePosition()));
2806
+ if (this.isEOF() || !ft(this.char())) return this.error(23, X(o, this.clonePosition()));
2866
2807
  let e = this.clonePosition();
2867
2808
  return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
2868
2809
  val: {
@@ -2878,7 +2819,7 @@ var ht = class {
2878
2819
  }
2879
2820
  parseTagName() {
2880
2821
  let e = this.offset();
2881
- for (this.bump(); !this.isEOF() && vt(this.char());) this.bump();
2822
+ for (this.bump(); !this.isEOF() && mt(this.char());) this.bump();
2882
2823
  return this.message.slice(e, this.offset());
2883
2824
  }
2884
2825
  parseLiteral(e, t) {
@@ -2912,7 +2853,7 @@ var ht = class {
2912
2853
  };
2913
2854
  }
2914
2855
  tryParseLeftAngleBracket() {
2915
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !_t(this.peek() || 0)) ? (this.bump(), "<") : null;
2856
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !pt(this.peek() || 0)) ? (this.bump(), "<") : null;
2916
2857
  }
2917
2858
  tryParseQuote(e) {
2918
2859
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2967,7 +2908,7 @@ var ht = class {
2967
2908
  }
2968
2909
  }
2969
2910
  parseIdentifierIfPossible() {
2970
- let e = this.clonePosition(), t = this.offset(), n = pt(this.message, t), r = t + n.length;
2911
+ let e = this.clonePosition(), t = this.offset(), n = lt(this.message, t), r = t + n.length;
2971
2912
  return this.bumpTo(r), {
2972
2913
  value: n,
2973
2914
  location: X(e, this.clonePosition())
@@ -2986,7 +2927,7 @@ var ht = class {
2986
2927
  this.bumpSpace();
2987
2928
  let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
2988
2929
  if (n.err) return n;
2989
- let r = dt(n.val);
2930
+ let r = st(n.val);
2990
2931
  if (r.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
2991
2932
  e = {
2992
2933
  style: r,
@@ -2997,7 +2938,7 @@ var ht = class {
2997
2938
  if (t.err) return t;
2998
2939
  let i = X(r, this.clonePosition());
2999
2940
  if (e && e.style.startsWith("::")) {
3000
- let t = ut(e.style.slice(2));
2941
+ let t = ot(e.style.slice(2));
3001
2942
  if (a === "number") {
3002
2943
  let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
3003
2944
  return r.err ? r : {
@@ -3012,12 +2953,12 @@ var ht = class {
3012
2953
  } else {
3013
2954
  if (t.length === 0) return this.error(10, i);
3014
2955
  let r = t;
3015
- this.locale && (r = nt(t, this.locale));
2956
+ this.locale && (r = Qe(t, this.locale));
3016
2957
  let o = {
3017
2958
  type: 1,
3018
2959
  pattern: r,
3019
2960
  location: e.styleLocation,
3020
- parsedOptions: this.shouldParseSkeletons ? ke(r) : {}
2961
+ parsedOptions: this.shouldParseSkeletons ? Te(r) : {}
3021
2962
  };
3022
2963
  return {
3023
2964
  val: {
@@ -3063,7 +3004,7 @@ var ht = class {
3063
3004
  val: {
3064
3005
  type: 5,
3065
3006
  value: n,
3066
- options: lt(c.val),
3007
+ options: at(c.val),
3067
3008
  location: u
3068
3009
  },
3069
3010
  err: null
@@ -3071,7 +3012,7 @@ var ht = class {
3071
3012
  val: {
3072
3013
  type: 6,
3073
3014
  value: n,
3074
- options: lt(c.val),
3015
+ options: at(c.val),
3075
3016
  offset: s,
3076
3017
  pluralType: a === "plural" ? "cardinal" : "ordinal",
3077
3018
  location: u
@@ -3120,7 +3061,7 @@ var ht = class {
3120
3061
  parseNumberSkeletonFromString(e, t) {
3121
3062
  let n = [];
3122
3063
  try {
3123
- n = je(e);
3064
+ n = De(e);
3124
3065
  } catch {
3125
3066
  return this.error(7, t);
3126
3067
  }
@@ -3129,7 +3070,7 @@ var ht = class {
3129
3070
  type: 0,
3130
3071
  tokens: n,
3131
3072
  location: t,
3132
- parsedOptions: this.shouldParseSkeletons ? Ve(n) : {}
3073
+ parsedOptions: this.shouldParseSkeletons ? Le(n) : {}
3133
3074
  },
3134
3075
  err: null
3135
3076
  };
@@ -3234,7 +3175,7 @@ var ht = class {
3234
3175
  }
3235
3176
  }
3236
3177
  bumpSpace() {
3237
- for (; !this.isEOF() && yt(this.char());) this.bump();
3178
+ for (; !this.isEOF() && ht(this.char());) this.bump();
3238
3179
  }
3239
3180
  peek() {
3240
3181
  if (this.isEOF()) return null;
@@ -3242,83 +3183,83 @@ var ht = class {
3242
3183
  return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
3243
3184
  }
3244
3185
  };
3245
- function gt(e) {
3186
+ function ft(e) {
3246
3187
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3247
3188
  }
3248
- function _t(e) {
3249
- return gt(e) || e === 47;
3189
+ function pt(e) {
3190
+ return ft(e) || e === 47;
3250
3191
  }
3251
- function vt(e) {
3192
+ function mt(e) {
3252
3193
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3253
3194
  }
3254
- function yt(e) {
3195
+ function ht(e) {
3255
3196
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3256
3197
  }
3257
- function bt(e) {
3198
+ function gt(e) {
3258
3199
  e.forEach((e) => {
3259
- if (delete e.location, Je(e) || Ye(e)) for (let t in e.options) delete e.options[t].location, bt(e.options[t].value);
3260
- else Ge(e) && Qe(e.style) || (Ke(e) || qe(e)) && $e(e.style) ? delete e.style.location : Ze(e) && bt(e.children);
3200
+ if (delete e.location, We(e) || Ge(e)) for (let t in e.options) delete e.options[t].location, gt(e.options[t].value);
3201
+ else Ve(e) && Je(e.style) || (He(e) || Ue(e)) && Ye(e.style) ? delete e.style.location : qe(e) && gt(e.children);
3261
3202
  });
3262
3203
  }
3263
- function xt(e, t = {}) {
3204
+ function _t(e, t = {}) {
3264
3205
  t = {
3265
3206
  shouldParseSkeletons: !0,
3266
3207
  requiresOtherClause: !0,
3267
3208
  ...t
3268
3209
  };
3269
- let n = new ht(e, t).parse();
3210
+ let n = new dt(e, t).parse();
3270
3211
  if (n.err) {
3271
- let e = SyntaxError(He[n.err.kind]);
3212
+ let e = SyntaxError(Re[n.err.kind]);
3272
3213
  throw e.location = n.err.location, e.originalMessage = n.err.message, e;
3273
3214
  }
3274
- return t?.captureLocation || bt(n.val), n.val;
3215
+ return t?.captureLocation || gt(n.val), n.val;
3275
3216
  }
3276
3217
  //#endregion
3277
3218
  //#region ../../node_modules/.bun/intl-messageformat@11.2.9/node_modules/intl-messageformat/index.js
3278
- var St = class extends Error {
3219
+ var vt = class extends Error {
3279
3220
  constructor(e, t, n) {
3280
3221
  super(e), this.code = t, this.originalMessage = n;
3281
3222
  }
3282
3223
  toString() {
3283
3224
  return `[formatjs Error: ${this.code}] ${this.message}`;
3284
3225
  }
3285
- }, Ct = class extends St {
3226
+ }, yt = class extends vt {
3286
3227
  constructor(e, t, n, r) {
3287
3228
  super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
3288
3229
  }
3289
- }, wt = class extends St {
3230
+ }, bt = class extends vt {
3290
3231
  constructor(e, t, n) {
3291
3232
  super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
3292
3233
  }
3293
- }, Tt = class extends St {
3234
+ }, xt = class extends vt {
3294
3235
  constructor(e, t) {
3295
3236
  super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
3296
3237
  }
3297
3238
  };
3298
- function Et(e) {
3239
+ function St(e) {
3299
3240
  return e.length < 2 ? e : e.reduce((e, t) => {
3300
3241
  let n = e[e.length - 1];
3301
3242
  return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
3302
3243
  }, []);
3303
3244
  }
3304
- function Dt(e) {
3245
+ function Ct(e) {
3305
3246
  return typeof e == "function";
3306
3247
  }
3307
- function Ot(e, t, n, r, i, a, o) {
3308
- if (e.length === 1 && Ue(e[0])) return [{
3248
+ function wt(e, t, n, r, i, a, o) {
3249
+ if (e.length === 1 && ze(e[0])) return [{
3309
3250
  type: 0,
3310
3251
  value: e[0].value
3311
3252
  }];
3312
3253
  let s = [];
3313
3254
  for (let c of e) {
3314
- if (Ue(c)) {
3255
+ if (ze(c)) {
3315
3256
  s.push({
3316
3257
  type: 0,
3317
3258
  value: c.value
3318
3259
  });
3319
3260
  continue;
3320
3261
  }
3321
- if (Xe(c)) {
3262
+ if (Ke(c)) {
3322
3263
  typeof a == "number" && s.push({
3323
3264
  type: 0,
3324
3265
  value: n.getNumberFormat(t).format(a)
@@ -3326,33 +3267,33 @@ function Ot(e, t, n, r, i, a, o) {
3326
3267
  continue;
3327
3268
  }
3328
3269
  let { value: e } = c;
3329
- if (!(i && e in i)) throw new Tt(e, o);
3270
+ if (!(i && e in i)) throw new xt(e, o);
3330
3271
  let l = i[e];
3331
- if (We(c)) {
3272
+ if (Be(c)) {
3332
3273
  (!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
3333
3274
  type: typeof l == "string" ? 0 : 1,
3334
3275
  value: l
3335
3276
  });
3336
3277
  continue;
3337
3278
  }
3338
- if (Ke(c)) {
3339
- let e = typeof c.style == "string" ? r.date[c.style] : $e(c.style) ? c.style.parsedOptions : void 0;
3279
+ if (He(c)) {
3280
+ let e = typeof c.style == "string" ? r.date[c.style] : Ye(c.style) ? c.style.parsedOptions : void 0;
3340
3281
  s.push({
3341
3282
  type: 0,
3342
3283
  value: n.getDateTimeFormat(t, e).format(l)
3343
3284
  });
3344
3285
  continue;
3345
3286
  }
3346
- if (qe(c)) {
3347
- let e = typeof c.style == "string" ? r.time[c.style] : $e(c.style) ? c.style.parsedOptions : r.time.medium;
3287
+ if (Ue(c)) {
3288
+ let e = typeof c.style == "string" ? r.time[c.style] : Ye(c.style) ? c.style.parsedOptions : r.time.medium;
3348
3289
  s.push({
3349
3290
  type: 0,
3350
3291
  value: n.getDateTimeFormat(t, e).format(l)
3351
3292
  });
3352
3293
  continue;
3353
3294
  }
3354
- if (Ge(c)) {
3355
- let e = typeof c.style == "string" ? r.number[c.style] : Qe(c.style) ? c.style.parsedOptions : void 0;
3295
+ if (Ve(c)) {
3296
+ let e = typeof c.style == "string" ? r.number[c.style] : Je(c.style) ? c.style.parsedOptions : void 0;
3356
3297
  if (e && e.scale) {
3357
3298
  let t = e.scale || 1;
3358
3299
  if (typeof l == "bigint") {
@@ -3366,37 +3307,37 @@ function Ot(e, t, n, r, i, a, o) {
3366
3307
  });
3367
3308
  continue;
3368
3309
  }
3369
- if (Ze(c)) {
3310
+ if (qe(c)) {
3370
3311
  let { children: e, value: l } = c, u = i[l];
3371
- if (!Dt(u)) throw new wt(l, "function", o);
3372
- let d = u(Ot(e, t, n, r, i, a).map((e) => e.value));
3312
+ if (!Ct(u)) throw new bt(l, "function", o);
3313
+ let d = u(wt(e, t, n, r, i, a).map((e) => e.value));
3373
3314
  Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
3374
3315
  type: typeof e == "string" ? 0 : 1,
3375
3316
  value: e
3376
3317
  })));
3377
3318
  }
3378
- if (Je(c)) {
3319
+ if (We(c)) {
3379
3320
  let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
3380
- if (!a) throw new Ct(c.value, l, Object.keys(c.options), o);
3381
- s.push(...Ot(a.value, t, n, r, i));
3321
+ if (!a) throw new yt(c.value, l, Object.keys(c.options), o);
3322
+ s.push(...wt(a.value, t, n, r, i));
3382
3323
  continue;
3383
3324
  }
3384
- if (Ye(c)) {
3325
+ if (Ge(c)) {
3385
3326
  let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
3386
3327
  if (!a) {
3387
- if (!Intl.PluralRules) throw new St("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
3328
+ if (!Intl.PluralRules) throw new vt("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
3388
3329
  let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
3389
3330
  a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
3390
3331
  }
3391
- if (!a) throw new Ct(c.value, l, Object.keys(c.options), o);
3332
+ if (!a) throw new yt(c.value, l, Object.keys(c.options), o);
3392
3333
  let u = typeof l == "bigint" ? Number(l) : l;
3393
- s.push(...Ot(a.value, t, n, r, i, u - (c.offset || 0)));
3334
+ s.push(...wt(a.value, t, n, r, i, u - (c.offset || 0)));
3394
3335
  continue;
3395
3336
  }
3396
3337
  }
3397
- return Et(s);
3338
+ return St(s);
3398
3339
  }
3399
- function kt(e, t) {
3340
+ function Tt(e, t) {
3400
3341
  return t ? {
3401
3342
  ...e,
3402
3343
  ...t,
@@ -3406,10 +3347,10 @@ function kt(e, t) {
3406
3347
  }, n), {})
3407
3348
  } : e;
3408
3349
  }
3409
- function At(e, t) {
3410
- return t ? Object.keys(e).reduce((n, r) => (n[r] = kt(e[r], t[r]), n), { ...e }) : e;
3350
+ function Et(e, t) {
3351
+ return t ? Object.keys(e).reduce((n, r) => (n[r] = Tt(e[r], t[r]), n), { ...e }) : e;
3411
3352
  }
3412
- function jt(e) {
3353
+ function Dt(e) {
3413
3354
  return { create() {
3414
3355
  return {
3415
3356
  get(t) {
@@ -3421,27 +3362,27 @@ function jt(e) {
3421
3362
  };
3422
3363
  } };
3423
3364
  }
3424
- function Mt(e = {
3365
+ function Ot(e = {
3425
3366
  number: {},
3426
3367
  dateTime: {},
3427
3368
  pluralRules: {}
3428
3369
  }) {
3429
3370
  return {
3430
- getNumberFormat: G((...e) => new Intl.NumberFormat(...e), {
3431
- cache: jt(e.number),
3432
- strategy: K.variadic
3371
+ getNumberFormat: U((...e) => new Intl.NumberFormat(...e), {
3372
+ cache: Dt(e.number),
3373
+ strategy: ve.variadic
3433
3374
  }),
3434
- getDateTimeFormat: G((...e) => new Intl.DateTimeFormat(...e), {
3435
- cache: jt(e.dateTime),
3436
- strategy: K.variadic
3375
+ getDateTimeFormat: U((...e) => new Intl.DateTimeFormat(...e), {
3376
+ cache: Dt(e.dateTime),
3377
+ strategy: ve.variadic
3437
3378
  }),
3438
- getPluralRules: G((...e) => new Intl.PluralRules(...e), {
3439
- cache: jt(e.pluralRules),
3440
- strategy: K.variadic
3379
+ getPluralRules: U((...e) => new Intl.PluralRules(...e), {
3380
+ cache: Dt(e.pluralRules),
3381
+ strategy: ve.variadic
3441
3382
  })
3442
3383
  };
3443
3384
  }
3444
- var Nt = class e {
3385
+ var kt = class e {
3445
3386
  constructor(t, n = e.defaultLocale, r, i) {
3446
3387
  if (this.formatterCache = {
3447
3388
  number: {},
@@ -3452,7 +3393,7 @@ var Nt = class e {
3452
3393
  if (t.length === 1) return t[0].value;
3453
3394
  let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
3454
3395
  return n.length <= 1 ? n[0] || "" : n;
3455
- }, this.formatToParts = (e) => Ot(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3396
+ }, this.formatToParts = (e) => wt(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
3456
3397
  if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3457
3398
  let { ...n } = i || {};
3458
3399
  this.ast = e.__parse(t, {
@@ -3461,7 +3402,7 @@ var Nt = class e {
3461
3402
  });
3462
3403
  } else this.ast = t;
3463
3404
  if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
3464
- this.formats = At(e.formats, r), this.formatters = i && i.formatters || Mt(this.formatterCache);
3405
+ this.formats = Et(e.formats, r), this.formatters = i && i.formatters || Ot(this.formatterCache);
3465
3406
  }
3466
3407
  static {
3467
3408
  this.memoizedDefaultLocale = null;
@@ -3477,7 +3418,7 @@ var Nt = class e {
3477
3418
  };
3478
3419
  }
3479
3420
  static {
3480
- this.__parse = xt;
3421
+ this.__parse = _t;
3481
3422
  }
3482
3423
  static {
3483
3424
  this.formats = {
@@ -3537,9 +3478,9 @@ var Nt = class e {
3537
3478
  };
3538
3479
  //#endregion
3539
3480
  //#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/format-message/index.js
3540
- function Pt(...[e, t, n, r]) {
3541
- if (Array.isArray(t)) throw new q(J.INVALID_MESSAGE, void 0);
3542
- if (typeof t == "object") throw new q(J.INSUFFICIENT_PATH, void 0);
3481
+ function At(...[e, t, n, r]) {
3482
+ if (Array.isArray(t)) throw new K(q.INVALID_MESSAGE, void 0);
3483
+ if (typeof t == "object") throw new K(q.INSUFFICIENT_PATH, void 0);
3543
3484
  if (typeof t == "string") {
3544
3485
  let e = function(e, t) {
3545
3486
  return t || /'[{}<#|']/.test(e) ? void 0 : e;
@@ -3548,14 +3489,14 @@ function Pt(...[e, t, n, r]) {
3548
3489
  }
3549
3490
  let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
3550
3491
  o.getMessageFormat ||= function(e, t) {
3551
- return Ce(((...e) => new Nt(e[0], e[1], e[2], {
3492
+ return be(((...e) => new kt(e[0], e[1], e[2], {
3552
3493
  formatters: t,
3553
3494
  ...e[3]
3554
3495
  })), e.message);
3555
3496
  }(i, o);
3556
3497
  try {
3557
3498
  u = o.getMessageFormat(t, c, function(e, t, n) {
3558
- let r = Nt.formats.date, i = Nt.formats.time, a = {
3499
+ let r = kt.formats.date, i = kt.formats.time, a = {
3559
3500
  ...e?.dateTime,
3560
3501
  ...t?.dateTime
3561
3502
  }, o = {
@@ -3587,25 +3528,25 @@ function Pt(...[e, t, n, r]) {
3587
3528
  })
3588
3529
  } });
3589
3530
  } catch {
3590
- throw new q(J.INVALID_MESSAGE, void 0);
3531
+ throw new K(q.INVALID_MESSAGE, void 0);
3591
3532
  }
3592
3533
  let d = u.format(n);
3593
- return (0, De.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
3534
+ return (0, Y.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
3594
3535
  }
3595
- Pt.raw = !0;
3536
+ At.raw = !0;
3596
3537
  //#endregion
3597
3538
  //#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
3598
- function Ft(...e) {
3539
+ function jt(...e) {
3599
3540
  return e.filter(Boolean).join(".");
3600
3541
  }
3601
- function It(e) {
3602
- return Ft(e.namespace, e.key);
3542
+ function Mt(e) {
3543
+ return jt(e.namespace, e.key);
3603
3544
  }
3604
- function Lt(e) {
3545
+ function Nt(e) {
3605
3546
  console.error(e);
3606
3547
  }
3607
- function Rt(e, t, n, r) {
3608
- let i = Ft(r, n);
3548
+ function Pt(e, t, n, r) {
3549
+ let i = jt(r, n);
3609
3550
  if (!t) throw Error(i);
3610
3551
  let a = t;
3611
3552
  return n.split(".").forEach(((t) => {
@@ -3614,21 +3555,21 @@ function Rt(e, t, n, r) {
3614
3555
  a = n;
3615
3556
  })), a;
3616
3557
  }
3617
- function zt(e) {
3558
+ function Ft(e) {
3618
3559
  let t = function(e, t, n) {
3619
3560
  try {
3620
3561
  if (!t) throw Error(void 0);
3621
- let r = n ? Rt(e, t, n) : t;
3562
+ let r = n ? Pt(e, t, n) : t;
3622
3563
  if (!r) throw Error(n);
3623
3564
  return r;
3624
3565
  } catch (e) {
3625
- return new q(J.MISSING_MESSAGE, e.message);
3566
+ return new K(q.MISSING_MESSAGE, e.message);
3626
3567
  }
3627
3568
  }(e.locale, e.messages, e.namespace);
3628
- return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = It, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
3629
- let l = a instanceof q;
3569
+ return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Mt, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
3570
+ let l = a instanceof K;
3630
3571
  function u(e, t, n, i) {
3631
- let a = new q(t, n);
3572
+ let a = new K(t, n);
3632
3573
  return s(a), i ?? r({
3633
3574
  error: a,
3634
3575
  key: e,
@@ -3647,20 +3588,20 @@ function zt(e) {
3647
3588
  } else {
3648
3589
  let e = a;
3649
3590
  try {
3650
- g = Rt(i, e, d, o);
3591
+ g = Pt(i, e, d, o);
3651
3592
  } catch (e) {
3652
- if (!h) return u(d, J.MISSING_MESSAGE, e.message, h);
3593
+ if (!h) return u(d, q.MISSING_MESSAGE, e.message, h);
3653
3594
  g = h;
3654
3595
  }
3655
3596
  }
3656
3597
  try {
3657
- return Pt(Ft(o, d), g, f && function(e) {
3598
+ return At(jt(o, d), g, f && function(e) {
3658
3599
  let t = {};
3659
3600
  return Object.keys(e).forEach(((n) => {
3660
3601
  let r = 0, i = e[n], a;
3661
3602
  a = typeof i == "function" ? (e) => {
3662
3603
  let t = i(e);
3663
- return (0, De.isValidElement)(t) ? (0, De.cloneElement)(t, { key: n + r++ }) : t;
3604
+ return (0, Y.isValidElement)(t) ? (0, Y.cloneElement)(t, { key: n + r++ }) : t;
3664
3605
  } : i, t[n] = a;
3665
3606
  })), t;
3666
3607
  }(f), {
@@ -3673,12 +3614,12 @@ function zt(e) {
3673
3614
  });
3674
3615
  } catch (e) {
3675
3616
  let t, n;
3676
- return e instanceof q ? (t = e.code, n = e.originalMessage) : (t = J.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
3617
+ return e instanceof K ? (t = e.code, n = e.originalMessage) : (t = q.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
3677
3618
  }
3678
3619
  }
3679
3620
  function f(e, t, n, r) {
3680
3621
  let i = d(e, t, n, r);
3681
- return typeof i == "string" ? i : u(e, J.INVALID_MESSAGE, void 0);
3622
+ return typeof i == "string" ? i : u(e, q.INVALID_MESSAGE, void 0);
3682
3623
  }
3683
3624
  return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
3684
3625
  if (l) return s(a), r({
@@ -3688,14 +3629,14 @@ function zt(e) {
3688
3629
  });
3689
3630
  let t = a;
3690
3631
  try {
3691
- return Rt(i, t, e, o);
3632
+ return Pt(i, t, e, o);
3692
3633
  } catch (t) {
3693
- return u(e, J.MISSING_MESSAGE, t.message);
3634
+ return u(e, q.MISSING_MESSAGE, t.message);
3694
3635
  }
3695
3636
  }, f.has = (e) => {
3696
3637
  if (l) return !1;
3697
3638
  try {
3698
- return Rt(i, a, e, o), !0;
3639
+ return Pt(i, a, e, o), !0;
3699
3640
  } catch {
3700
3641
  return !1;
3701
3642
  }
@@ -3705,16 +3646,16 @@ function zt(e) {
3705
3646
  messagesOrError: t
3706
3647
  });
3707
3648
  }
3708
- function Bt(e, t) {
3649
+ function It(e, t) {
3709
3650
  return e === t ? void 0 : e.slice((t + ".").length);
3710
3651
  }
3711
- var Vt = 86400;
3712
- 7 * Vt, 365 * Vt;
3652
+ var Lt = 86400;
3653
+ 7 * Lt, 365 * Lt;
3713
3654
  //#endregion
3714
3655
  //#region ../../node_modules/.bun/use-intl@4.13.2+e14d3f224186685e/node_modules/use-intl/dist/esm/production/core.js
3715
- function Ht({ _cache: e = Se(), _formatters: t = we(e), getMessageFallback: n = It, messages: r, namespace: i, onError: a = Lt, ...o }) {
3656
+ function Rt({ _cache: e = ye(), _formatters: t = xe(e), getMessageFallback: n = Mt, messages: r, namespace: i, onError: a = Nt, ...o }) {
3716
3657
  return function({ messages: e, namespace: t, ...n }, r) {
3717
- return e = e[r], t = Bt(t, r), zt({
3658
+ return e = e[r], t = It(t, r), Ft({
3718
3659
  ...n,
3719
3660
  messages: e,
3720
3661
  namespace: t
@@ -3731,48 +3672,108 @@ function Ht({ _cache: e = Se(), _formatters: t = we(e), getMessageFallback: n =
3731
3672
  }
3732
3673
  //#endregion
3733
3674
  //#region src/i18n/index.ts
3734
- var Ut = "en", Wt = (e) => Ht({
3675
+ var zt = "en", Bt = (e) => Rt({
3735
3676
  locale: e,
3736
- messages: re(e),
3677
+ messages: ee(e),
3737
3678
  namespace: "folio"
3738
- }), Gt = Symbol("folioTranslator"), Kt = r(() => Wt("en")), qt = (e = "en") => {
3739
- b(Gt, r(() => Wt(D(e))));
3679
+ }), Vt = Symbol("folioTranslator"), Ht = r(() => Bt("en")), Ut = (e = "en") => {
3680
+ b(Vt, r(() => Bt(D(e))));
3740
3681
  }, Z = () => {
3741
- let e = d(Gt, Kt);
3682
+ let e = d(Vt, Ht);
3742
3683
  return { t: (t, n) => e.value(t, n) };
3743
- }, Jt = { install(e, t = "en") {
3744
- e.provide(Gt, r(() => Wt(D(t))));
3745
- } }, Yt = [
3684
+ }, Wt = { install(e, t = "en") {
3685
+ e.provide(Vt, r(() => Bt(D(t))));
3686
+ } }, Gt = ["disabled"], Kt = "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", qt = /* @__PURE__ */ u({
3687
+ __name: "Button",
3688
+ props: {
3689
+ variant: { default: "default" },
3690
+ size: { default: "default" },
3691
+ disabled: {
3692
+ type: Boolean,
3693
+ default: !1
3694
+ },
3695
+ className: { default: "" }
3696
+ },
3697
+ emits: ["click"],
3698
+ setup(e) {
3699
+ let t = e, n = {
3700
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
3701
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
3702
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
3703
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
3704
+ ghost: "hover:bg-accent hover:text-accent-foreground",
3705
+ link: "text-primary underline-offset-4 hover:underline"
3706
+ }, i = {
3707
+ default: "h-10 px-4 py-2",
3708
+ sm: "h-9 rounded-md px-3",
3709
+ lg: "h-11 rounded-md px-8",
3710
+ icon: "h-9 w-9",
3711
+ "icon-sm": "h-7 w-7",
3712
+ xs: "h-7 rounded-md px-2 text-xs",
3713
+ "icon-xs": "h-7 w-7"
3714
+ }, a = r(() => [
3715
+ Kt,
3716
+ n[t.variant],
3717
+ i[t.size],
3718
+ t.className
3719
+ ].filter(Boolean).join(" "));
3720
+ return (t, n) => (y(), o("button", {
3721
+ type: "button",
3722
+ class: h(a.value),
3723
+ disabled: e.disabled,
3724
+ onClick: n[0] ||= (e) => t.$emit("click", e)
3725
+ }, [w(t.$slots, "default")], 10, Gt));
3726
+ }
3727
+ }), Jt = ["checked"], Yt = /*#__PURE__*/ V(/* @__PURE__ */ u({
3728
+ __name: "Checkbox",
3729
+ props: {
3730
+ checked: { type: Boolean },
3731
+ className: {}
3732
+ },
3733
+ emits: ["update:checked"],
3734
+ setup(e, { emit: t }) {
3735
+ let n = t;
3736
+ function r(e) {
3737
+ e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
3738
+ }
3739
+ return (t, n) => (y(), o("input", {
3740
+ type: "checkbox",
3741
+ class: h(["folio-default-checkbox", e.className]),
3742
+ checked: e.checked,
3743
+ onChange: r
3744
+ }, null, 42, Jt));
3745
+ }
3746
+ }), [["__scopeId", "data-v-2e4f5470"]]), Xt = [
3746
3747
  "disabled",
3747
3748
  "title",
3748
3749
  "aria-label"
3749
- ], Xt = [
3750
+ ], Zt = [
3750
3751
  "disabled",
3751
3752
  "title",
3752
3753
  "aria-label",
3753
3754
  "aria-expanded"
3754
- ], Zt = [
3755
+ ], Qt = [
3755
3756
  "disabled",
3756
3757
  "title",
3757
3758
  "aria-label",
3758
3759
  "aria-expanded"
3759
- ], Qt = { class: "docx-color-picker__button-stack" }, $t = ["aria-label"], en = {
3760
+ ], $t = { class: "docx-color-picker__button-stack" }, en = ["aria-label"], tn = {
3760
3761
  key: 0,
3761
3762
  class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
3762
- }, tn = {
3763
+ }, nn = {
3763
3764
  key: 1,
3764
3765
  class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--auto"
3765
- }, nn = { class: "docx-color-picker__section-label" }, rn = { class: "docx-color-picker__grid" }, an = [
3766
+ }, rn = { class: "docx-color-picker__section-label" }, an = { class: "docx-color-picker__grid" }, on = [
3766
3767
  "title",
3767
3768
  "aria-label",
3768
3769
  "aria-selected",
3769
3770
  "onClick"
3770
- ], on = { class: "docx-color-picker__section-label" }, sn = { class: "docx-color-picker__grid" }, cn = [
3771
+ ], sn = { class: "docx-color-picker__section-label" }, cn = { class: "docx-color-picker__grid" }, ln = [
3771
3772
  "title",
3772
3773
  "aria-label",
3773
3774
  "aria-selected",
3774
3775
  "onClick"
3775
- ], ln = { class: "docx-color-picker__section-label" }, un = { class: "docx-color-picker__custom" }, dn = ["onKeydown"], fn = ["disabled"], pn = /*#__PURE__*/ V(/* @__PURE__ */ u({
3776
+ ], un = { class: "docx-color-picker__section-label" }, dn = { class: "docx-color-picker__custom" }, fn = ["onKeydown"], pn = ["disabled"], mn = /*#__PURE__*/ V(/* @__PURE__ */ u({
3776
3777
  __name: "ColorPicker",
3777
3778
  props: {
3778
3779
  mode: {},
@@ -3838,7 +3839,7 @@ var Ut = "en", Wt = (e) => Ht({
3838
3839
  }
3839
3840
  ];
3840
3841
  function p(e) {
3841
- return e ? typeof e == "string" ? i.mode === "highlight" ? ne(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : te(e, i.theme) : i.mode === "text" || i.mode === "border" ? "#000000" : "transparent";
3842
+ return e ? typeof e == "string" ? i.mode === "highlight" ? ie(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : ne(e, i.theme) : i.mode === "text" || i.mode === "border" ? "#000000" : "transparent";
3842
3843
  }
3843
3844
  function m(e) {
3844
3845
  return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
@@ -3850,7 +3851,7 @@ var Ut = "en", Wt = (e) => Ht({
3850
3851
  return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
3851
3852
  }
3852
3853
  function x(e, t) {
3853
- return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : R(e, i.theme)) === t.toUpperCase() : !1;
3854
+ return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : re(e, i.theme)) === t.toUpperCase() : !1;
3854
3855
  }
3855
3856
  function w(e) {
3856
3857
  return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
@@ -3861,10 +3862,10 @@ var Ut = "en", Wt = (e) => Ht({
3861
3862
  function D(e) {
3862
3863
  return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
3863
3864
  }
3864
- let k = S(!1), A = S(""), j = S(null), P = S(null), re = S(i.defaultColor ?? w(i.mode)), ie = r(() => ee(i.theme?.colorScheme ?? null)), ae = r(() => ie.value.flatMap((e, t) => e.map((e, n) => ({
3865
+ let k = S(!1), A = S(""), j = S(null), P = S(null), R = S(i.defaultColor ?? w(i.mode)), ee = r(() => te(i.theme?.colorScheme ?? null)), ae = r(() => ee.value.flatMap((e, t) => e.map((e, n) => ({
3865
3866
  ...e,
3866
3867
  key: `${t}-${n}`
3867
- })))), z = r(() => p(i.value)), B = r(() => p(re.value)), V = r(() => E(i.mode)), oe = r(() => i.icon ?? D(i.mode));
3868
+ })))), oe = r(() => p(i.value)), z = r(() => p(R.value)), B = r(() => E(i.mode)), V = r(() => i.icon ?? D(i.mode));
3868
3869
  N(() => [
3869
3870
  i.value,
3870
3871
  i.mode,
@@ -3887,10 +3888,10 @@ var Ut = "en", Wt = (e) => Ht({
3887
3888
  i.disabled || (k.value || ce(), k.value = !k.value);
3888
3889
  }
3889
3890
  function U(e, t = !0) {
3890
- t && (re.value = e), u("change", e), k.value = !1;
3891
+ t && (R.value = e), u("change", e), k.value = !1;
3891
3892
  }
3892
3893
  function ue() {
3893
- i.disabled || u("change", re.value);
3894
+ i.disabled || u("change", R.value);
3894
3895
  }
3895
3896
  function de(e) {
3896
3897
  if (i.mode === "highlight") {
@@ -3933,22 +3934,22 @@ var Ut = "en", Wt = (e) => Ht({
3933
3934
  type: "button",
3934
3935
  class: "docx-color-picker__apply",
3935
3936
  disabled: e.disabled,
3936
- title: e.title ?? V.value,
3937
- "aria-label": e.title ?? V.value,
3937
+ title: e.title ?? B.value,
3938
+ "aria-label": e.title ?? B.value,
3938
3939
  onMousedown: r[0] ||= L(() => {}, ["prevent"]),
3939
3940
  onClick: ue
3940
3941
  }, [l(H, {
3941
- name: oe.value,
3942
+ name: V.value,
3942
3943
  size: 18
3943
3944
  }, null, 8, ["name"]), s("span", {
3944
- class: h(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
3945
- style: g({ background: B.value === "transparent" ? "#fff" : B.value })
3946
- }, null, 6)], 40, Yt), s("button", {
3945
+ class: h(["docx-color-picker__bar", { "is-light": z.value === "transparent" || b(z.value) }]),
3946
+ style: g({ background: z.value === "transparent" ? "#fff" : z.value })
3947
+ }, null, 6)], 40, Xt), s("button", {
3947
3948
  type: "button",
3948
3949
  class: h(["docx-color-picker__arrow", { "is-open": k.value }]),
3949
3950
  disabled: e.disabled,
3950
- title: e.title ?? V.value,
3951
- "aria-label": e.title ?? V.value,
3951
+ title: e.title ?? B.value,
3952
+ "aria-label": e.title ?? B.value,
3952
3953
  "aria-haspopup": "true",
3953
3954
  "aria-expanded": k.value,
3954
3955
  onMousedown: r[1] ||= L(() => {}, ["prevent"]),
@@ -3956,34 +3957,34 @@ var Ut = "en", Wt = (e) => Ht({
3956
3957
  }, [l(H, {
3957
3958
  name: "arrow_drop_down",
3958
3959
  size: 18
3959
- })], 42, Xt)], 2)) : (y(), o("button", {
3960
+ })], 42, Zt)], 2)) : (y(), o("button", {
3960
3961
  key: 1,
3961
3962
  type: "button",
3962
3963
  class: h(["docx-color-picker__button", { "is-open": k.value }]),
3963
3964
  disabled: e.disabled,
3964
- title: e.title ?? V.value,
3965
- "aria-label": e.title ?? V.value,
3965
+ title: e.title ?? B.value,
3966
+ "aria-label": e.title ?? B.value,
3966
3967
  "aria-haspopup": "true",
3967
3968
  "aria-expanded": k.value,
3968
3969
  onMousedown: r[2] ||= L(() => {}, ["prevent"]),
3969
3970
  onClick: le
3970
- }, [s("span", Qt, [l(H, {
3971
- name: oe.value,
3971
+ }, [s("span", $t, [l(H, {
3972
+ name: V.value,
3972
3973
  size: 18
3973
3974
  }, null, 8, ["name"]), s("span", {
3974
- class: h(["docx-color-picker__bar", { "is-light": z.value === "transparent" || b(z.value) }]),
3975
- style: g({ background: z.value === "transparent" ? "#fff" : z.value })
3975
+ class: h(["docx-color-picker__bar", { "is-light": oe.value === "transparent" || b(oe.value) }]),
3976
+ style: g({ background: oe.value === "transparent" ? "#fff" : oe.value })
3976
3977
  }, null, 6)]), l(H, {
3977
3978
  name: "arrow_drop_down",
3978
3979
  size: 14
3979
- })], 42, Zt)), k.value && !e.disabled ? (y(), o("div", {
3980
+ })], 42, Qt)), k.value && !e.disabled ? (y(), o("div", {
3980
3981
  key: 2,
3981
3982
  ref_key: "panelRef",
3982
3983
  ref: P,
3983
3984
  class: "docx-color-picker__panel",
3984
3985
  style: g(se.value),
3985
3986
  role: "dialog",
3986
- "aria-label": O(d)("colorPicker.ariaLabel", { type: V.value }),
3987
+ "aria-label": O(d)("colorPicker.ariaLabel", { type: B.value }),
3987
3988
  onMousedown: pe
3988
3989
  }, [
3989
3990
  s("button", {
@@ -3991,10 +3992,10 @@ var Ut = "en", Wt = (e) => Ht({
3991
3992
  class: "docx-color-picker__auto",
3992
3993
  onMousedown: r[3] ||= L(() => {}, ["prevent"]),
3993
3994
  onClick: G
3994
- }, [e.mode === "highlight" ? (y(), o("span", en, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", tn)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
3995
+ }, [e.mode === "highlight" ? (y(), o("span", tn, [...r[10] ||= [s("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), o("span", nn)), c(" " + T(e.autoLabel ?? (e.mode === "highlight" ? O(d)("colorPicker.noColor") : O(d)("colorPicker.automatic"))), 1)], 32),
3995
3996
  r[12] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
3996
- s("div", nn, T(O(d)("colorPicker.themeColors")), 1),
3997
- s("div", rn, [(y(!0), o(t, null, C(ae.value, (t) => (y(), o("button", {
3997
+ s("div", rn, T(O(d)("colorPicker.themeColors")), 1),
3998
+ s("div", an, [(y(!0), o(t, null, C(ae.value, (t) => (y(), o("button", {
3998
3999
  key: t.key,
3999
4000
  type: "button",
4000
4001
  class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
@@ -4004,10 +4005,10 @@ var Ut = "en", Wt = (e) => Ht({
4004
4005
  "aria-selected": x(e.value, t.hex),
4005
4006
  onMousedown: r[4] ||= L(() => {}, ["prevent"]),
4006
4007
  onClick: (e) => de(t)
4007
- }, null, 46, an))), 128))]),
4008
+ }, null, 46, on))), 128))]),
4008
4009
  r[13] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
4009
- s("div", on, T(O(d)("colorPicker.standardColors")), 1),
4010
- s("div", sn, [(y(), o(t, null, C(f, (t) => s("button", {
4010
+ s("div", sn, T(O(d)("colorPicker.standardColors")), 1),
4011
+ s("div", cn, [(y(), o(t, null, C(f, (t) => s("button", {
4011
4012
  key: t.hex,
4012
4013
  type: "button",
4013
4014
  class: h(["docx-color-picker__cell", { "is-selected": x(e.value, t.hex) }]),
@@ -4017,10 +4018,10 @@ var Ut = "en", Wt = (e) => Ht({
4017
4018
  "aria-selected": x(e.value, t.hex),
4018
4019
  onMousedown: r[5] ||= L(() => {}, ["prevent"]),
4019
4020
  onClick: (e) => W(t.hex)
4020
- }, null, 46, cn)), 64))]),
4021
+ }, null, 46, ln)), 64))]),
4021
4022
  r[14] ||= s("div", { class: "docx-color-picker__divider" }, null, -1),
4022
- s("div", ln, T(O(d)("colorPicker.customColor")), 1),
4023
- s("div", un, [
4023
+ s("div", un, T(O(d)("colorPicker.customColor")), 1),
4024
+ s("div", dn, [
4024
4025
  r[11] ||= s("span", { class: "docx-color-picker__hash" }, "#", -1),
4025
4026
  F(s("input", {
4026
4027
  "onUpdate:modelValue": r[6] ||= (e) => A.value = e,
@@ -4032,18 +4033,18 @@ var Ut = "en", Wt = (e) => Ht({
4032
4033
  onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
4033
4034
  onKeydown: I(L(fe, ["prevent"]), ["enter"]),
4034
4035
  onMousedown: r[8] ||= L(() => {}, ["stop"])
4035
- }, null, 40, dn), [[M, A.value]]),
4036
+ }, null, 40, fn), [[M, A.value]]),
4036
4037
  s("button", {
4037
4038
  type: "button",
4038
4039
  class: "docx-color-picker__apply-btn",
4039
4040
  disabled: !m(A.value),
4040
4041
  onMousedown: r[9] ||= L(() => {}, ["prevent"]),
4041
4042
  onClick: fe
4042
- }, T(O(d)("common.apply")), 41, fn)
4043
+ }, T(O(d)("common.apply")), 41, pn)
4043
4044
  ])
4044
- ], 44, $t)) : a("", !0)], 6));
4045
+ ], 44, en)) : a("", !0)], 6));
4045
4046
  }
4046
- }), [["__scopeId", "data-v-44cde5bd"]]), mn = ["value", "autofocus"], hn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4047
+ }), [["__scopeId", "data-v-ea554ffa"]]), hn = ["value", "autofocus"], gn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4047
4048
  __name: "DatePickerPopover",
4048
4049
  props: {
4049
4050
  value: {},
@@ -4068,9 +4069,9 @@ var Ut = "en", Wt = (e) => Ht({
4068
4069
  value: s.value,
4069
4070
  autofocus: e.defaultOpen,
4070
4071
  onChange: c
4071
- }, null, 40, mn));
4072
+ }, null, 40, hn));
4072
4073
  }
4073
- }), [["__scopeId", "data-v-ebc5e9a1"]]), gn = ["aria-label"], _n = /*#__PURE__*/ V(/* @__PURE__ */ u({
4074
+ }), [["__scopeId", "data-v-3101462d"]]), _n = ["aria-label"], vn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4074
4075
  inheritAttrs: !1,
4075
4076
  __name: "Dialog",
4076
4077
  props: {
@@ -4103,9 +4104,9 @@ var Ut = "en", Wt = (e) => Ht({
4103
4104
  }, t.$attrs, {
4104
4105
  onKeydown: I(l, ["escape"]),
4105
4106
  onMousedown: r[0] ||= L(() => {}, ["stop"])
4106
- }), [w(t.$slots, "default", {}, void 0, !0)], 16, gn)], 34)) : a("", !0)]));
4107
+ }), [w(t.$slots, "default", {}, void 0, !0)], 16, _n)], 34)) : a("", !0)]));
4107
4108
  }
4108
- }), [["__scopeId", "data-v-76309dbc"]]), vn = ["value"], yn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4109
+ }), [["__scopeId", "data-v-76309dbc"]]), yn = ["value"], bn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4109
4110
  __name: "Input",
4110
4111
  props: {
4111
4112
  modelValue: {},
@@ -4128,9 +4129,9 @@ var Ut = "en", Wt = (e) => Ht({
4128
4129
  class: h(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
4129
4130
  value: e.modelValue,
4130
4131
  onInput: i
4131
- }, null, 42, vn));
4132
+ }, null, 42, yn));
4132
4133
  }
4133
- }), [["__scopeId", "data-v-a34b139d"]]), bn = 4, xn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4134
+ }), [["__scopeId", "data-v-a34b139d"]]), xn = 4, Sn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4134
4135
  __name: "Popover",
4135
4136
  props: {
4136
4137
  open: { type: Boolean },
@@ -4149,7 +4150,7 @@ var Ut = "en", Wt = (e) => Ht({
4149
4150
  let e = i.value;
4150
4151
  if (!e) return;
4151
4152
  let t = e.getBoundingClientRect(), r = { position: "fixed" };
4152
- n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + bn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + bn)}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;
4153
+ n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + xn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + xn)}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;
4153
4154
  }
4154
4155
  function u() {
4155
4156
  r("update:open", !n.open), n.open && r("close");
@@ -4197,19 +4198,19 @@ var Ut = "en", Wt = (e) => Ht({
4197
4198
  onMousedown: n[0] ||= L(() => {}, ["stop"])
4198
4199
  }, [w(t.$slots, "panel", {}, void 0, !0)], 38)) : a("", !0)], 512));
4199
4200
  }
4200
- }), [["__scopeId", "data-v-ba324b19"]]), Sn = ["disabled", "onClick"], Cn = {
4201
+ }), [["__scopeId", "data-v-ba324b19"]]), Cn = ["disabled", "onClick"], wn = {
4201
4202
  key: 0,
4202
4203
  class: "docx-menu-dropdown__separator"
4203
- }, wn = ["onMouseenter", "onMouseleave"], Tn = ["disabled", "onClick"], En = { class: "docx-menu-dropdown__label" }, Dn = {
4204
+ }, Tn = ["onMouseenter", "onMouseleave"], En = ["disabled", "onClick"], Dn = { class: "docx-menu-dropdown__label" }, On = {
4204
4205
  key: 1,
4205
4206
  class: "docx-menu-dropdown__shortcut"
4206
- }, On = {
4207
+ }, kn = {
4207
4208
  key: 2,
4208
4209
  class: "docx-menu-dropdown__chevron"
4209
- }, kn = {
4210
+ }, An = {
4210
4211
  key: 0,
4211
4212
  class: "docx-menu-dropdown__submenu"
4212
- }, An = /*#__PURE__*/ V(/* @__PURE__ */ u({
4213
+ }, jn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4213
4214
  __name: "MenuDropdown",
4214
4215
  props: {
4215
4216
  label: {},
@@ -4231,7 +4232,7 @@ var Ut = "en", Wt = (e) => Ht({
4231
4232
  function f(e) {
4232
4233
  e.disabled || e.submenu || (e.onClick?.(), d());
4233
4234
  }
4234
- return (p, m) => (y(), i(xn, {
4235
+ return (p, m) => (y(), i(Sn, {
4235
4236
  open: r.value,
4236
4237
  "onUpdate:open": m[2] ||= (e) => r.value = e,
4237
4238
  onClose: d
@@ -4246,11 +4247,11 @@ var Ut = "en", Wt = (e) => Ht({
4246
4247
  key: 0,
4247
4248
  name: "arrow_drop_down",
4248
4249
  size: 16
4249
- })) : a("", !0)], 42, Sn)]),
4250
+ })) : a("", !0)], 42, Cn)]),
4250
4251
  panel: P(() => [s("div", {
4251
4252
  class: "docx-menu-dropdown__menu",
4252
4253
  onMousedown: m[1] ||= L(() => {}, ["prevent"])
4253
- }, [(y(!0), o(t, null, C(e.items, (e, r) => (y(), o(t, { key: r }, [n(e) ? (y(), o("div", Cn)) : (y(), o("div", {
4254
+ }, [(y(!0), o(t, null, C(e.items, (e, r) => (y(), o(t, { key: r }, [n(e) ? (y(), o("div", wn)) : (y(), o("div", {
4254
4255
  key: 1,
4255
4256
  class: "docx-menu-dropdown__wrap",
4256
4257
  onMouseenter: (t) => e.submenu ? u.value = r : void 0,
@@ -4266,24 +4267,24 @@ var Ut = "en", Wt = (e) => Ht({
4266
4267
  name: e.icon,
4267
4268
  size: 18
4268
4269
  }, null, 8, ["name"])) : a("", !0),
4269
- s("span", En, T(e.label), 1),
4270
- e.shortcut ? (y(), o("span", Dn, T(e.shortcut), 1)) : a("", !0),
4271
- e.submenu ? (y(), o("span", On, [l(H, {
4270
+ s("span", Dn, T(e.label), 1),
4271
+ e.shortcut ? (y(), o("span", On, T(e.shortcut), 1)) : a("", !0),
4272
+ e.submenu ? (y(), o("span", kn, [l(H, {
4272
4273
  name: "keyboard_arrow_right",
4273
4274
  size: 16
4274
4275
  })])) : a("", !0)
4275
- ], 10, Tn), e.submenu && u.value === r ? (y(), o("div", kn, [w(p.$slots, "submenu", {
4276
+ ], 10, En), e.submenu && u.value === r ? (y(), o("div", An, [w(p.$slots, "submenu", {
4276
4277
  item: e,
4277
4278
  closeMenu: d
4278
- }, void 0, !0)])) : a("", !0)], 40, wn))], 64))), 128))], 32)]),
4279
+ }, void 0, !0)])) : a("", !0)], 40, Tn))], 64))), 128))], 32)]),
4279
4280
  _: 3
4280
4281
  }, 8, ["open"]));
4281
4282
  }
4282
- }), [["__scopeId", "data-v-3a0c2cb3"]]), jn = ["aria-label"], Mn = [
4283
+ }), [["__scopeId", "data-v-3a0c2cb3"]]), Mn = ["aria-label"], Nn = [
4283
4284
  "aria-current",
4284
4285
  "title",
4285
4286
  "onMousedown"
4286
- ], Nn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4287
+ ], Pn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4287
4288
  __name: "OutlineRail",
4288
4289
  props: {
4289
4290
  items: {},
@@ -4309,13 +4310,13 @@ var Ut = "en", Wt = (e) => Ht({
4309
4310
  style: g({ paddingInlineStart: `${t.level * 16 + 8}px` }),
4310
4311
  title: t.label,
4311
4312
  onMousedown: L((e) => r(t.id), ["prevent"])
4312
- }, T(t.label), 47, Mn)]))), 128))], 8, jn)) : a("", !0);
4313
+ }, T(t.label), 47, Nn)]))), 128))], 8, Mn)) : a("", !0);
4313
4314
  }
4314
- }), [["__scopeId", "data-v-400d7e43"]]), Pn = ["disabled", "value"], Fn = {
4315
+ }), [["__scopeId", "data-v-400d7e43"]]), Fn = ["disabled", "value"], In = {
4315
4316
  key: 0,
4316
4317
  disabled: "",
4317
4318
  value: ""
4318
- }, In = ["disabled", "value"], Ln = /*#__PURE__*/ V(/* @__PURE__ */ u({
4319
+ }, Ln = ["disabled", "value"], Rn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4319
4320
  __name: "Select",
4320
4321
  props: {
4321
4322
  value: {},
@@ -4335,49 +4336,49 @@ var Ut = "en", Wt = (e) => Ht({
4335
4336
  disabled: e.disabled,
4336
4337
  value: e.value,
4337
4338
  onChange: i
4338
- }, [e.placeholder && e.value === void 0 ? (y(), o("option", Fn, T(e.placeholder), 1)) : a("", !0), (y(!0), o(t, null, C(e.items, (e) => (y(), o("option", {
4339
+ }, [e.placeholder && e.value === void 0 ? (y(), o("option", In, T(e.placeholder), 1)) : a("", !0), (y(!0), o(t, null, C(e.items, (e) => (y(), o("option", {
4339
4340
  key: e.value,
4340
4341
  disabled: e.disabled,
4341
4342
  value: e.value
4342
- }, T(e.label), 9, In))), 128))], 42, Pn));
4343
+ }, T(e.label), 9, Ln))), 128))], 42, Fn));
4343
4344
  }
4344
- }), [["__scopeId", "data-v-ce79245b"]]), Rn = {
4345
- Button: ue,
4346
- Dialog: _n,
4347
- Select: Ln,
4348
- Menu: An,
4349
- Popover: xn,
4350
- Input: yn,
4351
- Checkbox: W,
4352
- ColorPicker: pn,
4353
- DatePickerPopover: hn,
4354
- OutlineRail: Nn
4355
- }, zn = Symbol("folio-ui-components");
4356
- function Bn(e) {
4345
+ }), [["__scopeId", "data-v-ce79245b"]]), zn = {
4346
+ Button: qt,
4347
+ Dialog: vn,
4348
+ Select: Rn,
4349
+ Menu: jn,
4350
+ Popover: Sn,
4351
+ Input: bn,
4352
+ Checkbox: Yt,
4353
+ ColorPicker: mn,
4354
+ DatePickerPopover: gn,
4355
+ OutlineRail: Pn
4356
+ }, Bn = Symbol("folio-ui-components");
4357
+ function Vn(e) {
4357
4358
  return e ? {
4358
- ...Rn,
4359
+ ...zn,
4359
4360
  ...e
4360
- } : Rn;
4361
+ } : zn;
4361
4362
  }
4362
- function Vn(e) {
4363
- b(zn, Bn(e));
4363
+ function Hn(e) {
4364
+ b(Bn, Vn(e));
4364
4365
  }
4365
4366
  function Q() {
4366
- return d(zn, Rn);
4367
+ return d(Bn, zn);
4367
4368
  }
4368
- var Hn = u({
4369
+ var Un = u({
4369
4370
  name: "FolioUIProvider",
4370
4371
  props: { components: {
4371
4372
  type: Object,
4372
4373
  default: void 0
4373
4374
  } },
4374
4375
  setup(e, { slots: t }) {
4375
- return Vn(e.components), () => t.default?.();
4376
+ return Hn(e.components), () => t.default?.();
4376
4377
  }
4377
- }), Un = { class: "find-replace-dialog__header" }, Wn = { class: "find-replace-dialog__title" }, Gn = { class: "find-replace-dialog__body" }, Kn = { class: "find-replace-dialog__row" }, qn = { class: "find-replace-dialog__count" }, Jn = { class: "find-replace-dialog__options" }, Yn = {
4378
+ }), Wn = { class: "find-replace-dialog__header" }, Gn = { class: "find-replace-dialog__title" }, Kn = { class: "find-replace-dialog__body" }, qn = { class: "find-replace-dialog__row" }, Jn = { class: "find-replace-dialog__count" }, Yn = { class: "find-replace-dialog__options" }, Xn = {
4378
4379
  key: 0,
4379
4380
  class: "find-replace-dialog__row"
4380
- }, Xn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4381
+ }, Zn = /*#__PURE__*/ V(/* @__PURE__ */ u({
4381
4382
  __name: "FindReplaceDialog",
4382
4383
  props: {
4383
4384
  isOpen: { type: Boolean },
@@ -4386,18 +4387,18 @@ var Hn = u({
4386
4387
  },
4387
4388
  emits: ["close"],
4388
4389
  setup(t, { emit: n }) {
4389
- 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: ee, clear: te } = e({
4390
+ 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: ee } = e({
4390
4391
  editorView: E(g, "view"),
4391
4392
  scrollVisiblePositionIntoView: (e) => g.scrollVisiblePositionIntoView?.(e)
4392
- }), R = E(w, "matchCase"), ne = E(w, "matchWholeWord"), re = 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", {
4393
+ }), te = E(w, "matchCase"), ne = E(w, "matchWholeWord"), re = 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", {
4393
4394
  current: k.value + 1,
4394
4395
  total: D.value.length
4395
4396
  }) : "");
4396
4397
  N(() => g.isOpen, async (e) => {
4397
- e ? (await m(), v.value?.focus(), v.value?.select(), A()) : te();
4398
+ e ? (await m(), v.value?.focus(), v.value?.select(), A()) : ee();
4398
4399
  });
4399
4400
  function ie() {
4400
- te(), _("close");
4401
+ ee(), _("close");
4401
4402
  }
4402
4403
  function ae(e) {
4403
4404
  e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? M() : j()) : e.key === "Escape" && ie();
@@ -4408,7 +4409,7 @@ var Hn = u({
4408
4409
  "data-testid": "find-replace-dialog",
4409
4410
  onMousedown: n[5] ||= L(() => {}, ["stop"]),
4410
4411
  onKeydown: n[6] ||= L(() => {}, ["stop"])
4411
- }, [s("div", Un, [s("span", Wn, T(b.value ? O(i)("findReplace.findAndReplace") : O(i)("findReplace.find")), 1), l(O(u), {
4412
+ }, [s("div", Wn, [s("span", Gn, T(b.value ? O(i)("findReplace.findAndReplace") : O(i)("findReplace.find")), 1), l(O(u), {
4412
4413
  class: "find-replace-dialog__close",
4413
4414
  variant: "ghost",
4414
4415
  size: "icon-xs",
@@ -4417,8 +4418,8 @@ var Hn = u({
4417
4418
  }, {
4418
4419
  default: P(() => [...n[7] ||= [c(" ✕ ", -1)]]),
4419
4420
  _: 1
4420
- }, 8, ["title"])]), s("div", Gn, [
4421
- s("div", Kn, [
4421
+ }, 8, ["title"])]), s("div", Kn, [
4422
+ s("div", qn, [
4422
4423
  l(O(d), {
4423
4424
  ref_key: "searchInputRef",
4424
4425
  ref: v,
@@ -4436,7 +4437,7 @@ var Hn = u({
4436
4437
  "aria-label",
4437
4438
  "onInput"
4438
4439
  ]),
4439
- s("span", qn, T(re.value), 1),
4440
+ s("span", Jn, T(re.value), 1),
4440
4441
  l(O(u), {
4441
4442
  variant: "ghost",
4442
4443
  size: "icon-xs",
@@ -4456,11 +4457,11 @@ var Hn = u({
4456
4457
  _: 1
4457
4458
  }, 8, ["title", "onMousedown"])
4458
4459
  ]),
4459
- s("div", Jn, [
4460
+ s("div", Yn, [
4460
4461
  s("label", null, [l(O(p), {
4461
- checked: R.value,
4462
+ checked: te.value,
4462
4463
  "onUpdate:checked": n[1] ||= (e) => {
4463
- R.value = e, O(A)();
4464
+ te.value = e, O(A)();
4464
4465
  }
4465
4466
  }, null, 8, ["checked"]), c(" " + T(O(i)("findReplace.matchCase")), 1)]),
4466
4467
  s("label", null, [l(O(p), {
@@ -4481,7 +4482,7 @@ var Hn = u({
4481
4482
  _: 1
4482
4483
  }, 8, ["class", "title"])
4483
4484
  ]),
4484
- b.value ? (y(), o("div", Yn, [
4485
+ b.value ? (y(), o("div", Xn, [
4485
4486
  l(O(d), {
4486
4487
  modelValue: O(C),
4487
4488
  "onUpdate:modelValue": n[4] ||= (e) => f(C) ? C.value = e : null,
@@ -4511,7 +4512,7 @@ var Hn = u({
4511
4512
  size: "xs",
4512
4513
  "data-testid": "replace-all",
4513
4514
  title: O(i)("findReplace.replaceAll"),
4514
- onMousedown: L(O(ee), ["prevent"])
4515
+ onMousedown: L(O(R), ["prevent"])
4515
4516
  }, {
4516
4517
  default: P(() => [c(T(O(i)("findReplace.replaceAll")), 1)]),
4517
4518
  _: 1
@@ -4519,27 +4520,27 @@ var Hn = u({
4519
4520
  ])) : a("", !0)
4520
4521
  ])], 32)) : a("", !0);
4521
4522
  }
4522
- }), [["__scopeId", "data-v-26a1eaf0"]]), Zn = { class: "dialog__header" }, Qn = { class: "dialog__title" }, $n = ["aria-label"], er = { class: "dialog__body" }, tr = {
4523
+ }), [["__scopeId", "data-v-26a1eaf0"]]), Qn = { class: "dialog__header" }, $n = { class: "dialog__title" }, er = ["aria-label"], tr = { class: "dialog__body" }, nr = {
4523
4524
  key: 0,
4524
4525
  class: "link-tabs",
4525
4526
  role: "tablist"
4526
- }, nr = ["aria-selected"], rr = ["aria-selected"], ir = {
4527
+ }, rr = ["aria-selected"], ir = ["aria-selected"], ar = {
4527
4528
  key: 1,
4528
4529
  class: "field"
4529
- }, ar = { class: "field__label" }, or = [
4530
+ }, or = { class: "field__label" }, sr = [
4530
4531
  "placeholder",
4531
4532
  "aria-invalid",
4532
4533
  "onKeydown"
4533
- ], sr = {
4534
+ ], cr = {
4534
4535
  key: 0,
4535
4536
  class: "field__error"
4536
- }, cr = {
4537
+ }, lr = {
4537
4538
  key: 1,
4538
4539
  class: "field__hint"
4539
- }, lr = {
4540
+ }, ur = {
4540
4541
  key: 2,
4541
4542
  class: "field"
4542
- }, ur = { class: "field__label" }, dr = ["onKeydown"], fr = { value: "" }, pr = ["value"], mr = { class: "field" }, hr = { class: "field__label" }, gr = ["placeholder"], _r = { class: "field__hint" }, vr = { class: "field" }, yr = { class: "field__label" }, br = ["placeholder"], xr = { class: "dialog__actions" }, Sr = ["disabled"], Cr = /*#__PURE__*/ V(/* @__PURE__ */ u({
4543
+ }, dr = { class: "field__label" }, fr = ["onKeydown"], pr = { value: "" }, mr = ["value"], hr = { class: "field" }, gr = { class: "field__label" }, _r = ["placeholder"], vr = { class: "field__hint" }, yr = { class: "field" }, br = { class: "field__label" }, xr = ["placeholder"], Sr = { class: "dialog__actions" }, Cr = ["disabled"], wr = /*#__PURE__*/ V(/* @__PURE__ */ u({
4543
4544
  __name: "HyperlinkDialog",
4544
4545
  props: {
4545
4546
  isOpen: { type: Boolean },
@@ -4589,7 +4590,7 @@ var Hn = u({
4589
4590
  function P() {
4590
4591
  l("close");
4591
4592
  }
4592
- function ee() {
4593
+ function R() {
4593
4594
  if (f.value === "bookmark") {
4594
4595
  if (!g.value) return;
4595
4596
  l("submit", {
@@ -4609,7 +4610,7 @@ var Hn = u({
4609
4610
  tooltip: v.value
4610
4611
  }), P();
4611
4612
  }
4612
- function te() {
4613
+ function ee() {
4613
4614
  if (f.value === "url") {
4614
4615
  if (w.value = !0, !p.value.trim()) {
4615
4616
  x.value = "";
@@ -4618,7 +4619,7 @@ var Hn = u({
4618
4619
  x.value = k(p.value) ? "" : i("dialogs.hyperlink.invalidUrl");
4619
4620
  }
4620
4621
  }
4621
- function R() {
4622
+ function te() {
4622
4623
  l("remove"), P();
4623
4624
  }
4624
4625
  return (n, r) => e.isOpen ? (y(), o("div", {
@@ -4629,24 +4630,24 @@ var Hn = u({
4629
4630
  class: "dialog",
4630
4631
  onMousedown: r[6] ||= L(() => {}, ["stop"]),
4631
4632
  onKeydown: r[7] ||= L(() => {}, ["stop"])
4632
- }, [s("div", Zn, [s("span", Qn, T(b.value ? O(i)("dialogs.hyperlink.titleEdit") : O(i)("dialogs.hyperlink.titleInsert")), 1), s("button", {
4633
+ }, [s("div", Qn, [s("span", $n, T(b.value ? O(i)("dialogs.hyperlink.titleEdit") : O(i)("dialogs.hyperlink.titleInsert")), 1), s("button", {
4633
4634
  class: "dialog__close",
4634
4635
  "aria-label": O(i)("common.closeDialog"),
4635
4636
  onClick: P
4636
- }, " ✕ ", 8, $n)]), s("div", er, [
4637
- E.value.length > 0 ? (y(), o("div", tr, [s("button", {
4637
+ }, " ✕ ", 8, er)]), s("div", tr, [
4638
+ E.value.length > 0 ? (y(), o("div", nr, [s("button", {
4638
4639
  class: h(["link-tab", { active: f.value === "url" }]),
4639
4640
  role: "tab",
4640
4641
  "aria-selected": f.value === "url",
4641
4642
  onMousedown: r[0] ||= L((e) => f.value = "url", ["prevent"])
4642
- }, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43, nr), s("button", {
4643
+ }, T(O(i)("dialogs.hyperlink.tabWebAddress")), 43, rr), s("button", {
4643
4644
  class: h(["link-tab", { active: f.value === "bookmark" }]),
4644
4645
  role: "tab",
4645
4646
  "aria-selected": f.value === "bookmark",
4646
4647
  onMousedown: r[1] ||= L((e) => f.value = "bookmark", ["prevent"])
4647
- }, T(O(i)("dialogs.hyperlink.tabBookmark")), 43, rr)])) : a("", !0),
4648
- f.value === "url" ? (y(), o("div", ir, [
4649
- s("label", ar, T(O(i)("dialogs.hyperlink.urlLabel")), 1),
4648
+ }, T(O(i)("dialogs.hyperlink.tabBookmark")), 43, ir)])) : a("", !0),
4649
+ f.value === "url" ? (y(), o("div", ar, [
4650
+ s("label", or, T(O(i)("dialogs.hyperlink.urlLabel")), 1),
4650
4651
  F(s("input", {
4651
4652
  ref_key: "urlInputRef",
4652
4653
  ref: u,
@@ -4654,39 +4655,39 @@ var Hn = u({
4654
4655
  class: h(["field__input", { "field__input--error": w.value && !!x.value }]),
4655
4656
  placeholder: O(i)("dialogs.hyperlink.urlPlaceholder"),
4656
4657
  "aria-invalid": w.value && !!x.value,
4657
- onKeydown: I(L(ee, ["prevent"]), ["enter"]),
4658
- onBlur: te
4659
- }, null, 42, or), [[M, p.value]]),
4660
- w.value && x.value ? (y(), o("div", sr, T(x.value), 1)) : (y(), o("div", cr, T(O(i)("dialogs.hyperlink.urlHint")), 1))
4661
- ])) : (y(), o("div", lr, [s("label", ur, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
4658
+ onKeydown: I(L(R, ["prevent"]), ["enter"]),
4659
+ onBlur: ee
4660
+ }, null, 42, sr), [[M, p.value]]),
4661
+ w.value && x.value ? (y(), o("div", cr, T(x.value), 1)) : (y(), o("div", lr, T(O(i)("dialogs.hyperlink.urlHint")), 1))
4662
+ ])) : (y(), o("div", ur, [s("label", dr, T(O(i)("dialogs.hyperlink.bookmarkLabel")), 1), F(s("select", {
4662
4663
  ref_key: "bookmarkSelectRef",
4663
4664
  ref: d,
4664
4665
  "onUpdate:modelValue": r[3] ||= (e) => g.value = e,
4665
4666
  class: "field__input",
4666
- onKeydown: I(L(ee, ["prevent"]), ["enter"])
4667
- }, [s("option", fr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
4667
+ onKeydown: I(L(R, ["prevent"]), ["enter"])
4668
+ }, [s("option", pr, T(O(i)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), o(t, null, C(E.value, (e) => (y(), o("option", {
4668
4669
  key: e.name,
4669
4670
  value: e.name
4670
- }, T(e.label || e.name), 9, pr))), 128))], 40, dr), [[j, g.value]])])),
4671
- s("div", mr, [
4672
- s("label", hr, T(O(i)("dialogs.hyperlink.displayTextLabel")), 1),
4671
+ }, T(e.label || e.name), 9, mr))), 128))], 40, fr), [[j, g.value]])])),
4672
+ s("div", hr, [
4673
+ s("label", gr, T(O(i)("dialogs.hyperlink.displayTextLabel")), 1),
4673
4674
  F(s("input", {
4674
4675
  "onUpdate:modelValue": r[4] ||= (e) => _.value = e,
4675
4676
  class: "field__input",
4676
4677
  placeholder: O(i)("dialogs.hyperlink.displayTextPlaceholder")
4677
- }, null, 8, gr), [[M, _.value]]),
4678
- s("div", _r, T(O(i)("dialogs.hyperlink.displayTextHint")), 1)
4678
+ }, null, 8, _r), [[M, _.value]]),
4679
+ s("div", vr, T(O(i)("dialogs.hyperlink.displayTextHint")), 1)
4679
4680
  ]),
4680
- s("div", vr, [s("label", yr, T(O(i)("dialogs.hyperlink.tooltipLabel")), 1), F(s("input", {
4681
+ s("div", yr, [s("label", br, T(O(i)("dialogs.hyperlink.tooltipLabel")), 1), F(s("input", {
4681
4682
  "onUpdate:modelValue": r[5] ||= (e) => v.value = e,
4682
4683
  class: "field__input",
4683
4684
  placeholder: O(i)("dialogs.hyperlink.tooltipPlaceholder")
4684
- }, null, 8, br), [[M, v.value]])]),
4685
- s("div", xr, [
4685
+ }, null, 8, xr), [[M, v.value]])]),
4686
+ s("div", Sr, [
4686
4687
  b.value ? (y(), o("button", {
4687
4688
  key: 0,
4688
4689
  class: "dialog__btn dialog__btn--danger",
4689
- onMousedown: L(R, ["prevent"])
4690
+ onMousedown: L(te, ["prevent"])
4690
4691
  }, T(O(i)("dialogs.hyperlink.removeLink")), 33)) : a("", !0),
4691
4692
  r[8] ||= s("div", { style: { flex: "1" } }, null, -1),
4692
4693
  s("button", {
@@ -4695,13 +4696,13 @@ var Hn = u({
4695
4696
  }, T(O(i)("common.cancel")), 1),
4696
4697
  s("button", {
4697
4698
  class: "dialog__btn dialog__btn--primary",
4698
- onMousedown: L(ee, ["prevent"]),
4699
+ onMousedown: L(R, ["prevent"]),
4699
4700
  disabled: !D.value
4700
- }, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, Sr)
4701
+ }, T(b.value ? O(i)("common.update") : O(i)("common.insert")), 41, Cr)
4701
4702
  ])
4702
4703
  ])], 32)], 32)) : a("", !0);
4703
4704
  }
4704
- }), [["__scopeId", "data-v-3078565e"]]), wr = { class: "dialog__header" }, Tr = { class: "dialog__title" }, Er = ["aria-label"], Dr = { class: "dialog__body" }, Or = { class: "field" }, kr = { class: "field__label" }, Ar = ["placeholder"], jr = { class: "field" }, Mr = { class: "field__label" }, Nr = { value: "inline" }, Pr = { value: "wrapRight" }, Fr = { value: "wrapLeft" }, Ir = { value: "topAndBottom" }, Lr = { value: "behind" }, Rr = { value: "inFront" }, zr = { class: "field" }, Br = { class: "field__label" }, Vr = { class: "field-row" }, Hr = { value: "solid" }, Ur = { value: "dashed" }, Wr = { value: "dotted" }, Gr = { value: "double" }, Kr = { class: "field" }, qr = { class: "field__label" }, Jr = { class: "field-row" }, Yr = ["value"], Xr = ["value"], Zr = { class: "field__checkbox" }, Qr = { class: "dialog__actions" }, $r = /*#__PURE__*/ V(/* @__PURE__ */ u({
4705
+ }), [["__scopeId", "data-v-3078565e"]]), Tr = { class: "dialog__header" }, Er = { class: "dialog__title" }, Dr = ["aria-label"], Or = { class: "dialog__body" }, kr = { class: "field" }, Ar = { class: "field__label" }, jr = ["placeholder"], Mr = { class: "field" }, Nr = { class: "field__label" }, Pr = { value: "inline" }, Fr = { value: "wrapRight" }, Ir = { value: "wrapLeft" }, Lr = { value: "topAndBottom" }, Rr = { value: "behind" }, zr = { value: "inFront" }, Br = { class: "field" }, Vr = { class: "field__label" }, Hr = { class: "field-row" }, Ur = { value: "solid" }, Wr = { value: "dashed" }, Gr = { value: "dotted" }, Kr = { value: "double" }, qr = { class: "field" }, Jr = { class: "field__label" }, Yr = { class: "field-row" }, Xr = ["value"], Zr = ["value"], Qr = { class: "field__checkbox" }, $r = { class: "dialog__actions" }, ei = /*#__PURE__*/ V(/* @__PURE__ */ u({
4705
4706
  __name: "ImagePropertiesDialog",
4706
4707
  props: {
4707
4708
  isOpen: { type: Boolean },
@@ -4788,29 +4789,29 @@ var Hn = u({
4788
4789
  },
4789
4790
  onClose: x
4790
4791
  }, {
4791
- default: P(() => [s("div", wr, [s("span", Tr, T(O(n)("dialogs.imageProperties.title")), 1), s("button", {
4792
+ default: P(() => [s("div", Tr, [s("span", Er, T(O(n)("dialogs.imageProperties.title")), 1), s("button", {
4792
4793
  class: "dialog__close",
4793
4794
  "aria-label": O(n)("common.closeDialog"),
4794
4795
  onClick: x
4795
- }, "✕", 8, Er)]), s("div", Dr, [
4796
- s("div", Or, [s("label", kr, T(O(n)("dialogs.imageProperties.altText")), 1), F(s("textarea", {
4796
+ }, "✕", 8, Dr)]), s("div", Or, [
4797
+ s("div", kr, [s("label", Ar, T(O(n)("dialogs.imageProperties.altText")), 1), F(s("textarea", {
4797
4798
  "onUpdate:modelValue": a[0] ||= (e) => l.value = e,
4798
4799
  class: "field__textarea",
4799
4800
  placeholder: O(n)("dialogs.imageProperties.altTextPlaceholder"),
4800
4801
  rows: "2"
4801
- }, null, 8, Ar), [[M, l.value]])]),
4802
- s("div", jr, [s("label", Mr, T(O(n)("dialogs.imageProperties.textWrapping")), 1), F(s("select", {
4802
+ }, null, 8, jr), [[M, l.value]])]),
4803
+ s("div", Mr, [s("label", Nr, T(O(n)("dialogs.imageProperties.textWrapping")), 1), F(s("select", {
4803
4804
  "onUpdate:modelValue": a[1] ||= (e) => u.value = e,
4804
4805
  class: "field__select"
4805
4806
  }, [
4806
- s("option", Nr, T(O(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
4807
- s("option", Pr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
4808
- s("option", Fr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
4809
- s("option", Ir, T(O(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
4810
- s("option", Lr, T(O(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
4811
- s("option", Rr, T(O(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
4807
+ s("option", Pr, T(O(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
4808
+ s("option", Fr, T(O(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
4809
+ s("option", Ir, T(O(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
4810
+ s("option", Lr, T(O(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
4811
+ s("option", Rr, T(O(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
4812
+ s("option", zr, T(O(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
4812
4813
  ], 512), [[j, u.value]])]),
4813
- s("div", zr, [s("label", Br, T(O(n)("dialogs.imageProperties.border")), 1), s("div", Vr, [
4814
+ s("div", Br, [s("label", Vr, T(O(n)("dialogs.imageProperties.border")), 1), s("div", Hr, [
4814
4815
  s("label", null, [
4815
4816
  c(T(O(n)("dialogs.imageProperties.width")) + ": ", 1),
4816
4817
  F(s("input", {
@@ -4832,10 +4833,10 @@ var Hn = u({
4832
4833
  "onUpdate:modelValue": a[3] ||= (e) => f.value = e,
4833
4834
  class: "field__select--small"
4834
4835
  }, [
4835
- s("option", Hr, T(O(n)("dialogs.imageProperties.borderStyles.solid")), 1),
4836
- s("option", Ur, T(O(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
4837
- s("option", Wr, T(O(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
4838
- s("option", Gr, T(O(n)("dialogs.imageProperties.borderStyles.double")), 1)
4836
+ s("option", Ur, T(O(n)("dialogs.imageProperties.borderStyles.solid")), 1),
4837
+ s("option", Wr, T(O(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
4838
+ s("option", Gr, T(O(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
4839
+ s("option", Kr, T(O(n)("dialogs.imageProperties.borderStyles.double")), 1)
4839
4840
  ], 512), [[j, f.value]])]),
4840
4841
  s("label", null, [c(T(O(n)("dialogs.imageProperties.color")) + ": ", 1), F(s("input", {
4841
4842
  "onUpdate:modelValue": a[4] ||= (e) => p.value = e,
@@ -4843,9 +4844,9 @@ var Hn = u({
4843
4844
  class: "field__color"
4844
4845
  }, null, 512), [[M, p.value]])])
4845
4846
  ])]),
4846
- s("div", Kr, [
4847
- s("label", qr, T(O(n)("dialogs.imageProperties.dimensions")), 1),
4848
- s("div", Jr, [s("label", null, [
4847
+ s("div", qr, [
4848
+ s("label", Jr, T(O(n)("dialogs.imageProperties.dimensions")), 1),
4849
+ s("div", Yr, [s("label", null, [
4849
4850
  c(T(O(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
4850
4851
  s("input", {
4851
4852
  value: m.value,
@@ -4854,7 +4855,7 @@ var Hn = u({
4854
4855
  max: "2000",
4855
4856
  class: "field__input--small",
4856
4857
  onInput: v
4857
- }, null, 40, Yr),
4858
+ }, null, 40, Xr),
4858
4859
  c(T(O(n)("common.px")), 1)
4859
4860
  ]), s("label", null, [
4860
4861
  c(T(O(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
@@ -4865,15 +4866,15 @@ var Hn = u({
4865
4866
  max: "2000",
4866
4867
  class: "field__input--small",
4867
4868
  onInput: b
4868
- }, null, 40, Xr),
4869
+ }, null, 40, Zr),
4869
4870
  c(T(O(n)("common.px")), 1)
4870
4871
  ])]),
4871
- s("label", Zr, [F(s("input", {
4872
+ s("label", Qr, [F(s("input", {
4872
4873
  "onUpdate:modelValue": a[5] ||= (e) => g.value = e,
4873
4874
  type: "checkbox"
4874
4875
  }, null, 512), [[k, g.value]]), c(" " + T(O(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
4875
4876
  ]),
4876
- s("div", Qr, [s("button", {
4877
+ s("div", $r, [s("button", {
4877
4878
  class: "dialog__btn",
4878
4879
  onClick: x
4879
4880
  }, T(O(n)("common.cancel")), 1), s("button", {
@@ -4884,29 +4885,29 @@ var Hn = u({
4884
4885
  _: 1
4885
4886
  }, 8, ["open", "aria-label"]));
4886
4887
  }
4887
- }), [["__scopeId", "data-v-4879cd1c"]]), ei = { class: "dialog__header" }, ti = { class: "dialog__title" }, ni = ["title"], ri = { class: "dialog__body" }, ii = ["placeholder"], ai = {
4888
+ }), [["__scopeId", "data-v-4879cd1c"]]), ti = { class: "dialog__header" }, ni = { class: "dialog__title" }, ri = ["title"], ii = { class: "dialog__body" }, ai = ["placeholder"], oi = {
4888
4889
  key: 0,
4889
4890
  class: "symbol-tabs"
4890
- }, oi = ["onMousedown"], si = { class: "symbol-grid" }, ci = [
4891
+ }, si = ["onMousedown"], ci = { class: "symbol-grid" }, li = [
4891
4892
  "title",
4892
4893
  "onClick",
4893
4894
  "onDblclick"
4894
- ], li = {
4895
+ ], ui = {
4895
4896
  key: 0,
4896
4897
  class: "symbol-empty"
4897
- }, ui = {
4898
+ }, di = {
4898
4899
  key: 1,
4899
4900
  class: "symbol-preview"
4900
- }, di = { class: "symbol-preview__char" }, fi = { class: "symbol-preview__info" }, pi = {
4901
+ }, fi = { class: "symbol-preview__char" }, pi = { class: "symbol-preview__info" }, mi = {
4901
4902
  key: 2,
4902
4903
  class: "symbol-recent"
4903
- }, mi = { class: "symbol-recent__label" }, hi = ["onDblclick", "onClick"], gi = { class: "dialog__actions" }, _i = ["disabled"], vi = /*#__PURE__*/ V(/* @__PURE__ */ u({
4904
+ }, hi = { class: "symbol-recent__label" }, gi = ["onDblclick", "onClick"], _i = { class: "dialog__actions" }, vi = ["disabled"], yi = /*#__PURE__*/ V(/* @__PURE__ */ u({
4904
4905
  __name: "InsertSymbolDialog",
4905
4906
  props: { isOpen: { type: Boolean } },
4906
4907
  emits: ["close", "insert"],
4907
4908
  setup(e, { emit: n }) {
4908
- let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = ie, v = r(() => {
4909
- if (d.value) return ae(d.value);
4909
+ let { t: i } = Z(), c = e, l = n, u = S(null), d = S(""), f = S("Common"), p = S(""), g = S([]), _ = ae, v = r(() => {
4910
+ if (d.value) return oe(d.value);
4910
4911
  let e = _.find((e) => e.name === f.value);
4911
4912
  return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
4912
4913
  });
@@ -4927,11 +4928,11 @@ var Hn = u({
4927
4928
  class: "dialog symbol-dialog",
4928
4929
  onMousedown: r[2] ||= L(() => {}, ["stop"]),
4929
4930
  onKeydown: r[3] ||= L(() => {}, ["stop"])
4930
- }, [s("div", ei, [s("span", ti, T(O(i)("dialogs.insertSymbol.title")), 1), s("button", {
4931
+ }, [s("div", ti, [s("span", ni, T(O(i)("dialogs.insertSymbol.title")), 1), s("button", {
4931
4932
  class: "dialog__close",
4932
4933
  title: O(i)("common.closeDialog"),
4933
4934
  onClick: b
4934
- }, "✕", 8, ni)]), s("div", ri, [
4935
+ }, "✕", 8, ri)]), s("div", ii, [
4935
4936
  F(s("input", {
4936
4937
  ref_key: "searchRef",
4937
4938
  ref: u,
@@ -4939,40 +4940,40 @@ var Hn = u({
4939
4940
  class: "symbol-search",
4940
4941
  placeholder: O(i)("dialogs.insertSymbol.searchPlaceholder"),
4941
4942
  onKeydown: I(b, ["escape"])
4942
- }, null, 40, ii), [[M, d.value]]),
4943
- d.value ? a("", !0) : (y(), o("div", ai, [(y(!0), o(t, null, C(O(_), (e) => (y(), o("button", {
4943
+ }, null, 40, ai), [[M, d.value]]),
4944
+ d.value ? a("", !0) : (y(), o("div", oi, [(y(!0), o(t, null, C(O(_), (e) => (y(), o("button", {
4944
4945
  key: e.name,
4945
4946
  class: h(["symbol-tab", { active: f.value === e.name }]),
4946
4947
  onMousedown: L((t) => f.value = e.name, ["prevent"])
4947
- }, T(O(i)(e.nameKey)), 43, oi))), 128))])),
4948
- s("div", si, [(y(!0), o(t, null, C(v.value, (e) => (y(), o("button", {
4948
+ }, T(O(i)(e.nameKey)), 43, si))), 128))])),
4949
+ s("div", ci, [(y(!0), o(t, null, C(v.value, (e) => (y(), o("button", {
4949
4950
  key: e.char,
4950
4951
  class: h(["symbol-cell", { selected: p.value === e.char }]),
4951
4952
  title: e.name,
4952
4953
  onClick: (t) => p.value = e.char,
4953
4954
  onDblclick: (t) => x(e.char)
4954
- }, T(e.char), 43, ci))), 128)), v.value.length === 0 ? (y(), o("div", li, T(d.value ? O(i)("dialogs.insertSymbol.noResults", { query: d.value }) : O(i)("dialogs.insertSymbol.noResultsEmpty")), 1)) : a("", !0)]),
4955
- p.value ? (y(), o("div", ui, [s("span", di, T(p.value), 1), s("span", fi, "U+" + T(p.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : a("", !0),
4956
- g.value.length > 0 && !d.value ? (y(), o("div", pi, [s("div", mi, T(O(i)("dialogs.insertSymbol.recent")), 1), (y(!0), o(t, null, C(g.value, (e) => (y(), o("button", {
4955
+ }, T(e.char), 43, li))), 128)), v.value.length === 0 ? (y(), o("div", ui, T(d.value ? O(i)("dialogs.insertSymbol.noResults", { query: d.value }) : O(i)("dialogs.insertSymbol.noResultsEmpty")), 1)) : a("", !0)]),
4956
+ p.value ? (y(), o("div", di, [s("span", fi, T(p.value), 1), s("span", pi, "U+" + T(p.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : a("", !0),
4957
+ g.value.length > 0 && !d.value ? (y(), o("div", mi, [s("div", hi, T(O(i)("dialogs.insertSymbol.recent")), 1), (y(!0), o(t, null, C(g.value, (e) => (y(), o("button", {
4957
4958
  key: e,
4958
4959
  class: "symbol-cell symbol-cell--small",
4959
4960
  onDblclick: (t) => x(e),
4960
4961
  onClick: (t) => p.value = e
4961
- }, T(e), 41, hi))), 128))])) : a("", !0),
4962
- s("div", gi, [s("button", {
4962
+ }, T(e), 41, gi))), 128))])) : a("", !0),
4963
+ s("div", _i, [s("button", {
4963
4964
  class: "dialog__btn",
4964
4965
  onClick: b
4965
4966
  }, T(O(i)("common.cancel")), 1), s("button", {
4966
4967
  class: "dialog__btn dialog__btn--primary",
4967
4968
  onMousedown: r[1] ||= L((e) => x(p.value), ["prevent"]),
4968
4969
  disabled: !p.value
4969
- }, T(O(i)("common.insert")), 41, _i)])
4970
+ }, T(O(i)("common.insert")), 41, vi)])
4970
4971
  ])], 32)], 32)) : a("", !0);
4971
4972
  }
4972
- }), [["__scopeId", "data-v-dc4046d2"]]), yi = { class: "ps-header" }, bi = { class: "ps-body" }, xi = { class: "ps-section-label" }, Si = { class: "ps-row" }, Ci = { class: "ps-label" }, wi = ["value"], Ti = ["value"], Ei = {
4973
+ }), [["__scopeId", "data-v-dc4046d2"]]), bi = { class: "ps-header" }, xi = { class: "ps-body" }, Si = { class: "ps-section-label" }, Ci = { class: "ps-row" }, wi = { class: "ps-label" }, Ti = ["value"], Ei = ["value"], Di = {
4973
4974
  key: 0,
4974
4975
  value: -1
4975
- }, Di = { class: "ps-row" }, Oi = { class: "ps-label" }, ki = ["value"], Ai = { value: "portrait" }, ji = { value: "landscape" }, Mi = { class: "ps-section-label ps-section-label--spaced" }, Ni = { class: "ps-row" }, Pi = { class: "ps-label" }, Fi = { class: "ps-row" }, Ii = { class: "ps-label" }, Li = { class: "ps-row" }, Ri = { class: "ps-label" }, zi = { class: "ps-row" }, Bi = { class: "ps-label" }, Vi = { class: "ps-footer" }, Hi = 12240, Ui = 15840, Wi = 1440, Gi = /*#__PURE__*/ V(/* @__PURE__ */ u({
4976
+ }, Oi = { class: "ps-row" }, ki = { class: "ps-label" }, Ai = ["value"], ji = { value: "portrait" }, Mi = { value: "landscape" }, Ni = { class: "ps-section-label ps-section-label--spaced" }, Pi = { class: "ps-row" }, Fi = { class: "ps-label" }, Ii = { class: "ps-row" }, Li = { class: "ps-label" }, Ri = { class: "ps-row" }, zi = { class: "ps-label" }, Bi = { class: "ps-row" }, Vi = { class: "ps-label" }, Hi = { class: "ps-footer" }, Ui = 12240, Wi = 15840, Gi = 1440, Ki = /*#__PURE__*/ V(/* @__PURE__ */ u({
4976
4977
  __name: "PageSetupDialog",
4977
4978
  props: {
4978
4979
  isOpen: { type: Boolean },
@@ -5016,7 +5017,7 @@ var Hn = u({
5016
5017
  width: 10440,
5017
5018
  height: 15120
5018
5019
  }
5019
- ], d = e, f = n, p = S(Hi), m = S(Ui), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
5020
+ ], d = e, f = n, p = S(Ui), m = S(Wi), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
5020
5021
  function x(e) {
5021
5022
  return Math.round(e / z * 100) / 100;
5022
5023
  }
@@ -5029,8 +5030,8 @@ var Hn = u({
5029
5030
  });
5030
5031
  N(() => d.isOpen, (e) => {
5031
5032
  if (!e) return;
5032
- let t = d.sectionProperties, n = t?.pageWidth || Hi, r = t?.pageHeight || Ui;
5033
- p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? Wi), _.value = x(t?.marginBottom ?? Wi), v.value = x(t?.marginLeft ?? Wi), b.value = x(t?.marginRight ?? Wi);
5033
+ let t = d.sectionProperties, n = t?.pageWidth || Ui, r = t?.pageHeight || Wi;
5034
+ p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? Gi), _.value = x(t?.marginBottom ?? Gi), v.value = x(t?.marginLeft ?? Gi), b.value = x(t?.marginRight ?? Gi);
5034
5035
  }, { immediate: !0 });
5035
5036
  function D(e) {
5036
5037
  if (!(e.target instanceof HTMLSelectElement)) return;
@@ -5072,25 +5073,25 @@ var Hn = u({
5072
5073
  onKeydown: I(j, ["enter"])
5073
5074
  }, {
5074
5075
  default: P(() => [
5075
- s("div", yi, T(O(c)("dialogs.pageSetup.title")), 1),
5076
- s("div", bi, [
5077
- s("div", xi, T(O(c)("dialogs.pageSetup.pageSize")), 1),
5078
- s("div", Si, [s("label", Ci, T(O(c)("dialogs.pageSetup.sizeLabel")), 1), s("select", {
5076
+ s("div", bi, T(O(c)("dialogs.pageSetup.title")), 1),
5077
+ s("div", xi, [
5078
+ s("div", Si, T(O(c)("dialogs.pageSetup.pageSize")), 1),
5079
+ s("div", Ci, [s("label", wi, T(O(c)("dialogs.pageSetup.sizeLabel")), 1), s("select", {
5079
5080
  class: "ps-input",
5080
5081
  value: E.value,
5081
5082
  onChange: D
5082
5083
  }, [(y(), o(t, null, C(u, (e, t) => s("option", {
5083
5084
  key: e.labelKey,
5084
5085
  value: t
5085
- }, T(O(c)(e.labelKey)), 9, Ti)), 64)), E.value < 0 ? (y(), o("option", Ei, T(O(c)("dialogs.pageSetup.custom")), 1)) : a("", !0)], 40, wi)]),
5086
- s("div", Di, [s("label", Oi, T(O(c)("dialogs.pageSetup.orientation")), 1), s("select", {
5086
+ }, T(O(c)(e.labelKey)), 9, Ei)), 64)), E.value < 0 ? (y(), o("option", Di, T(O(c)("dialogs.pageSetup.custom")), 1)) : a("", !0)], 40, Ti)]),
5087
+ s("div", Oi, [s("label", ki, T(O(c)("dialogs.pageSetup.orientation")), 1), s("select", {
5087
5088
  class: "ps-input",
5088
5089
  value: h.value,
5089
5090
  onChange: k
5090
- }, [s("option", Ai, T(O(c)("dialogs.pageSetup.portrait")), 1), s("option", ji, T(O(c)("dialogs.pageSetup.landscape")), 1)], 40, ki)]),
5091
- s("div", Mi, T(O(c)("dialogs.pageSetup.margins")), 1),
5092
- s("div", Ni, [
5093
- s("label", Pi, T(O(c)("dialogs.pageSetup.top")), 1),
5091
+ }, [s("option", ji, T(O(c)("dialogs.pageSetup.portrait")), 1), s("option", Mi, T(O(c)("dialogs.pageSetup.landscape")), 1)], 40, Ai)]),
5092
+ s("div", Ni, T(O(c)("dialogs.pageSetup.margins")), 1),
5093
+ s("div", Pi, [
5094
+ s("label", Fi, T(O(c)("dialogs.pageSetup.top")), 1),
5094
5095
  F(s("input", {
5095
5096
  class: "ps-input",
5096
5097
  type: "number",
@@ -5106,8 +5107,8 @@ var Hn = u({
5106
5107
  ]]),
5107
5108
  r[4] ||= s("span", { class: "ps-unit" }, "in", -1)
5108
5109
  ]),
5109
- s("div", Fi, [
5110
- s("label", Ii, T(O(c)("dialogs.pageSetup.bottom")), 1),
5110
+ s("div", Ii, [
5111
+ s("label", Li, T(O(c)("dialogs.pageSetup.bottom")), 1),
5111
5112
  F(s("input", {
5112
5113
  class: "ps-input",
5113
5114
  type: "number",
@@ -5123,8 +5124,8 @@ var Hn = u({
5123
5124
  ]]),
5124
5125
  r[5] ||= s("span", { class: "ps-unit" }, "in", -1)
5125
5126
  ]),
5126
- s("div", Li, [
5127
- s("label", Ri, T(O(c)("dialogs.pageSetup.left")), 1),
5127
+ s("div", Ri, [
5128
+ s("label", zi, T(O(c)("dialogs.pageSetup.left")), 1),
5128
5129
  F(s("input", {
5129
5130
  class: "ps-input",
5130
5131
  type: "number",
@@ -5140,8 +5141,8 @@ var Hn = u({
5140
5141
  ]]),
5141
5142
  r[6] ||= s("span", { class: "ps-unit" }, "in", -1)
5142
5143
  ]),
5143
- s("div", zi, [
5144
- s("label", Bi, T(O(c)("dialogs.pageSetup.right")), 1),
5144
+ s("div", Bi, [
5145
+ s("label", Vi, T(O(c)("dialogs.pageSetup.right")), 1),
5145
5146
  F(s("input", {
5146
5147
  class: "ps-input",
5147
5148
  type: "number",
@@ -5158,7 +5159,7 @@ var Hn = u({
5158
5159
  r[7] ||= s("span", { class: "ps-unit" }, "in", -1)
5159
5160
  ])
5160
5161
  ]),
5161
- s("div", Vi, [s("button", {
5162
+ s("div", Hi, [s("button", {
5162
5163
  type: "button",
5163
5164
  class: "ps-btn",
5164
5165
  onClick: A
@@ -5171,82 +5172,345 @@ var Hn = u({
5171
5172
  _: 1
5172
5173
  }, 8, ["open", "aria-label"]));
5173
5174
  }
5174
- }), [["__scopeId", "data-v-1e078cda"]]), Ki = { class: "fnpd-dialog__header" }, qi = { class: "fnpd-dialog__body" }, Ji = { class: "fnpd-fieldset" }, Yi = { class: "fnpd-legend" }, Xi = { class: "fnpd-row" }, Zi = { class: "fnpd-label" }, Qi = { value: "pageBottom" }, $i = { value: "beneathText" }, ea = { class: "fnpd-row" }, ta = { class: "fnpd-label" }, na = ["value"], ra = { class: "fnpd-row" }, ia = { class: "fnpd-label" }, aa = { class: "fnpd-row" }, oa = { class: "fnpd-label" }, sa = { value: "continuous" }, ca = { value: "eachSect" }, la = { value: "eachPage" }, ua = { class: "fnpd-fieldset" }, da = { class: "fnpd-legend" }, fa = { class: "fnpd-row" }, pa = { class: "fnpd-label" }, ma = { value: "docEnd" }, ha = { value: "sectEnd" }, ga = { class: "fnpd-row" }, _a = { class: "fnpd-label" }, va = ["value"], ya = { class: "fnpd-row" }, ba = { class: "fnpd-label" }, xa = { class: "fnpd-row" }, Sa = { class: "fnpd-label" }, Ca = { value: "continuous" }, wa = { value: "eachSect" }, Ta = { class: "fnpd-dialog__footer" }, Ea = /*#__PURE__*/ V(/* @__PURE__ */ u({
5175
- __name: "FootnotePropertiesDialog",
5175
+ }), [["__scopeId", "data-v-1e078cda"]]), qi = { class: "tpd-dialog__header" }, Ji = { class: "tpd-dialog__body" }, Yi = { class: "tpd-row" }, Xi = { class: "tpd-label" }, Zi = { value: "auto" }, Qi = { value: "dxa" }, $i = { value: "pct" }, ea = {
5176
+ key: 0,
5177
+ class: "tpd-row"
5178
+ }, ta = { class: "tpd-label" }, na = ["step"], ra = { class: "tpd-unit" }, ia = { class: "tpd-row" }, aa = { class: "tpd-label" }, oa = { value: "left" }, sa = { value: "center" }, ca = { value: "right" }, la = { class: "tpd-dialog__footer" }, ua = /*#__PURE__*/ V(/* @__PURE__ */ u({
5179
+ __name: "TablePropertiesDialog",
5176
5180
  props: {
5177
5181
  isOpen: { type: Boolean },
5178
- footnotePr: {},
5179
- endnotePr: {}
5182
+ currentProps: {}
5180
5183
  },
5181
5184
  emits: ["close", "apply"],
5182
- setup(e, { emit: n }) {
5183
- let { t: a } = Z(), { Dialog: c } = Q(), l = e, u = n, d = r(() => [
5184
- {
5185
- value: "decimal",
5186
- label: a("dialogs.footnoteProperties.formats.decimal")
5187
- },
5188
- {
5189
- value: "lowerLetter",
5190
- label: a("dialogs.footnoteProperties.formats.lowerAlpha")
5191
- },
5192
- {
5193
- value: "upperLetter",
5194
- label: a("dialogs.footnoteProperties.formats.upperAlpha")
5195
- },
5196
- {
5197
- value: "lowerRoman",
5198
- label: a("dialogs.footnoteProperties.formats.lowerRoman")
5199
- },
5200
- {
5201
- value: "upperRoman",
5202
- label: a("dialogs.footnoteProperties.formats.upperRoman")
5203
- },
5204
- {
5205
- value: "chicago",
5206
- label: a("dialogs.footnoteProperties.formats.symbols")
5207
- }
5208
- ]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
5209
- N(() => l.isOpen, (e) => {
5210
- 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");
5185
+ setup(e, { emit: t }) {
5186
+ let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = S("auto"), f = S("left");
5187
+ function p(e) {
5188
+ return e === "center" || e === "right" ? e : "left";
5189
+ }
5190
+ N(() => c.isOpen, (e) => {
5191
+ e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
5211
5192
  });
5212
- function x() {
5213
- u("apply", {
5214
- position: f.value,
5215
- numFmt: p.value,
5216
- numStart: m.value,
5217
- numRestart: h.value
5218
- }, {
5219
- position: g.value,
5220
- numFmt: _.value,
5221
- numStart: v.value,
5222
- numRestart: b.value
5223
- }), u("close");
5193
+ function m() {
5194
+ let e = d.value === "auto" ? {
5195
+ justification: f.value,
5196
+ width: null,
5197
+ widthType: "auto"
5198
+ } : {
5199
+ justification: f.value,
5200
+ width: u.value,
5201
+ widthType: d.value
5202
+ };
5203
+ l("apply", e), l("close");
5224
5204
  }
5225
- return (n, r) => (y(), i(O(c), {
5205
+ return (t, c) => (y(), i(O(r), {
5226
5206
  open: e.isOpen,
5227
- "aria-label": O(a)("dialogs.footnoteProperties.title"),
5207
+ "aria-label": O(n)("dialogs.tableProperties.title"),
5228
5208
  style: {
5229
- width: "440px",
5230
- maxWidth: "90vw"
5209
+ minWidth: "360px",
5210
+ maxWidth: "440px",
5211
+ width: "100%"
5231
5212
  },
5232
- onClose: r[9] ||= (e) => n.$emit("close")
5213
+ onClose: c[4] ||= (e) => t.$emit("close"),
5214
+ onKeydown: I(m, ["enter"])
5233
5215
  }, {
5234
5216
  default: P(() => [
5235
- s("div", Ki, T(O(a)("dialogs.footnoteProperties.title")), 1),
5236
- s("div", qi, [s("fieldset", Ji, [
5237
- s("legend", Yi, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
5238
- s("div", Xi, [s("label", Zi, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5239
- "onUpdate:modelValue": r[0] ||= (e) => f.value = e,
5240
- class: "fnpd-select"
5241
- }, [s("option", Qi, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", $i, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
5242
- s("div", ea, [s("label", ta, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5243
- "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
5244
- class: "fnpd-select"
5245
- }, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
5246
- key: e.value,
5217
+ s("div", qi, T(O(n)("dialogs.tableProperties.title")), 1),
5218
+ s("div", Ji, [
5219
+ s("div", Yi, [s("label", Xi, T(O(n)("dialogs.tableProperties.widthType")), 1), F(s("select", {
5220
+ "onUpdate:modelValue": c[0] ||= (e) => d.value = e,
5221
+ class: "tpd-select"
5222
+ }, [
5223
+ s("option", Zi, T(O(n)("dialogs.tableProperties.widthTypes.auto")), 1),
5224
+ s("option", Qi, T(O(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
5225
+ s("option", $i, T(O(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
5226
+ ], 512), [[j, d.value]])]),
5227
+ d.value === "auto" ? a("", !0) : (y(), o("div", ea, [
5228
+ s("label", ta, T(O(n)("dialogs.tableProperties.widthLabel")), 1),
5229
+ F(s("input", {
5230
+ "onUpdate:modelValue": c[1] ||= (e) => u.value = e,
5231
+ type: "number",
5232
+ class: "tpd-input",
5233
+ min: 0,
5234
+ step: d.value === "pct" ? 5 : 100
5235
+ }, null, 8, na), [[
5236
+ M,
5237
+ u.value,
5238
+ void 0,
5239
+ { number: !0 }
5240
+ ]]),
5241
+ s("span", ra, T(d.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
5242
+ ])),
5243
+ s("div", ia, [s("label", aa, T(O(n)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
5244
+ "onUpdate:modelValue": c[2] ||= (e) => f.value = e,
5245
+ class: "tpd-select"
5246
+ }, [
5247
+ s("option", oa, T(O(n)("dialogs.tableProperties.alignOptions.left")), 1),
5248
+ s("option", sa, T(O(n)("dialogs.tableProperties.alignOptions.center")), 1),
5249
+ s("option", ca, T(O(n)("dialogs.tableProperties.alignOptions.right")), 1)
5250
+ ], 512), [[j, f.value]])])
5251
+ ]),
5252
+ s("div", la, [s("button", {
5253
+ class: "tpd-btn",
5254
+ onClick: c[3] ||= (e) => t.$emit("close")
5255
+ }, T(O(n)("common.cancel")), 1), s("button", {
5256
+ class: "tpd-btn tpd-btn--primary",
5257
+ onClick: m
5258
+ }, T(O(n)("common.apply")), 1)])
5259
+ ]),
5260
+ _: 1
5261
+ }, 8, ["open", "aria-label"]));
5262
+ }
5263
+ }), [["__scopeId", "data-v-6e0fd92d"]]), da = { class: "dialog__body" }, fa = { class: "field" }, pa = {
5264
+ key: 0,
5265
+ class: "grid"
5266
+ }, ma = { class: "field field--wide" }, ha = { class: "field" }, ga = { class: "field" }, _a = { class: "field" }, va = { class: "check" }, ya = {
5267
+ key: 1,
5268
+ class: "grid"
5269
+ }, ba = { class: "field field--wide" }, xa = { class: "field field--wide" }, Sa = ["aria-invalid"], Ca = {
5270
+ key: 0,
5271
+ class: "field__error"
5272
+ }, wa = { class: "field" }, Ta = { class: "check" }, Ea = { class: "check field--wide" }, Da = { class: "dialog__footer" }, Oa = ["disabled"], ka = "#C0C0C0", Aa = /*#__PURE__*/ V(/* @__PURE__ */ u({
5273
+ __name: "WatermarkDialog",
5274
+ props: {
5275
+ isOpen: { type: Boolean },
5276
+ currentWatermark: {}
5277
+ },
5278
+ emits: ["close", "apply"],
5279
+ setup(e, { emit: t }) {
5280
+ let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(ka), 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);
5281
+ N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
5282
+ if (e) {
5283
+ if (!t) {
5284
+ u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = ka, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
5285
+ return;
5286
+ }
5287
+ if (u.value = t.kind, t.kind === "text") {
5288
+ 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);
5289
+ return;
5290
+ }
5291
+ 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;
5292
+ }
5293
+ }, { immediate: !0 });
5294
+ function E() {
5295
+ if (w.value) {
5296
+ if (u.value === "none") {
5297
+ l("apply", void 0), l("close");
5298
+ return;
5299
+ }
5300
+ if (u.value === "text") {
5301
+ l("apply", {
5302
+ kind: "text",
5303
+ text: d.value.trim(),
5304
+ ...f.value.trim() ? { font: f.value.trim() } : {},
5305
+ color: I(p.value),
5306
+ diagonal: m.value,
5307
+ opacity: D(h.value) / 100
5308
+ }), l("close");
5309
+ return;
5310
+ }
5311
+ l("apply", {
5312
+ kind: "picture",
5313
+ imageRId: g.value.trim(),
5314
+ ..._.value.trim() ? { imageTarget: _.value.trim() } : {},
5315
+ ..._.value.trim() ? { imageTargetExternal: v.value } : {},
5316
+ scale: A(b.value) / 100,
5317
+ washout: x.value
5318
+ }), l("close");
5319
+ }
5320
+ }
5321
+ function D(e) {
5322
+ return Math.min(100, Math.max(0, e));
5323
+ }
5324
+ function A(e) {
5325
+ return Math.min(300, Math.max(1, e));
5326
+ }
5327
+ function I(e) {
5328
+ return e.startsWith("#") ? e.slice(1) : e;
5329
+ }
5330
+ function L(e) {
5331
+ return R(e) ? "" : "Use a web address (http/https).";
5332
+ }
5333
+ function ee(e) {
5334
+ return !e || e === "auto" ? ka : e.startsWith("#") ? e : `#${e}`;
5335
+ }
5336
+ return (t, r) => (y(), i(O(n), {
5337
+ open: e.isOpen,
5338
+ "aria-label": "Watermark",
5339
+ style: {
5340
+ minWidth: "360px",
5341
+ maxWidth: "520px",
5342
+ width: "100%"
5343
+ },
5344
+ onClose: r[12] ||= (e) => t.$emit("close")
5345
+ }, {
5346
+ default: P(() => [
5347
+ r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
5348
+ s("div", da, [
5349
+ s("label", fa, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
5350
+ "onUpdate:modelValue": r[0] ||= (e) => u.value = e,
5351
+ class: "field__input"
5352
+ }, [...r[13] ||= [
5353
+ s("option", { value: "text" }, "Text watermark", -1),
5354
+ s("option", { value: "picture" }, "Picture watermark", -1),
5355
+ s("option", { value: "none" }, "No watermark", -1)
5356
+ ]], 512), [[j, u.value]])]),
5357
+ u.value === "text" ? (y(), o("div", pa, [
5358
+ s("label", ma, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
5359
+ "onUpdate:modelValue": r[1] ||= (e) => d.value = e,
5360
+ class: "field__input"
5361
+ }, null, 512), [[M, d.value]])]),
5362
+ s("label", ha, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
5363
+ "onUpdate:modelValue": r[2] ||= (e) => f.value = e,
5364
+ class: "field__input"
5365
+ }, null, 512), [[M, f.value]])]),
5366
+ s("label", ga, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
5367
+ "onUpdate:modelValue": r[3] ||= (e) => p.value = e,
5368
+ class: "field__input field__input--color",
5369
+ type: "color"
5370
+ }, null, 512), [[M, p.value]])]),
5371
+ s("label", _a, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
5372
+ "onUpdate:modelValue": r[4] ||= (e) => h.value = e,
5373
+ class: "field__input",
5374
+ max: "100",
5375
+ min: "0",
5376
+ type: "number"
5377
+ }, null, 512), [[
5378
+ M,
5379
+ h.value,
5380
+ void 0,
5381
+ { number: !0 }
5382
+ ]])]),
5383
+ s("label", va, [F(s("input", {
5384
+ "onUpdate:modelValue": r[5] ||= (e) => m.value = e,
5385
+ type: "checkbox"
5386
+ }, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
5387
+ ])) : a("", !0),
5388
+ u.value === "picture" ? (y(), o("div", ya, [
5389
+ s("label", ba, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
5390
+ "onUpdate:modelValue": r[6] ||= (e) => g.value = e,
5391
+ class: "field__input",
5392
+ placeholder: "rId12"
5393
+ }, null, 512), [[M, g.value]])]),
5394
+ s("label", xa, [
5395
+ r[21] ||= s("span", { class: "field__label" }, "Image target", -1),
5396
+ F(s("input", {
5397
+ "onUpdate:modelValue": r[7] ||= (e) => _.value = e,
5398
+ "aria-invalid": C.value.length > 0,
5399
+ class: "field__input",
5400
+ placeholder: "word/media/image1.png"
5401
+ }, null, 8, Sa), [[M, _.value]]),
5402
+ C.value.length > 0 ? (y(), o("span", Ca, T(C.value), 1)) : a("", !0)
5403
+ ]),
5404
+ s("label", wa, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
5405
+ "onUpdate:modelValue": r[8] ||= (e) => b.value = e,
5406
+ class: "field__input",
5407
+ max: "300",
5408
+ min: "1",
5409
+ type: "number"
5410
+ }, null, 512), [[
5411
+ M,
5412
+ b.value,
5413
+ void 0,
5414
+ { number: !0 }
5415
+ ]])]),
5416
+ s("label", Ta, [F(s("input", {
5417
+ "onUpdate:modelValue": r[9] ||= (e) => x.value = e,
5418
+ type: "checkbox"
5419
+ }, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
5420
+ s("label", Ea, [F(s("input", {
5421
+ "onUpdate:modelValue": r[10] ||= (e) => v.value = e,
5422
+ type: "checkbox"
5423
+ }, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
5424
+ ])) : a("", !0)
5425
+ ]),
5426
+ s("div", Da, [s("button", {
5427
+ class: "dialog__btn",
5428
+ onClick: r[11] ||= (e) => t.$emit("close")
5429
+ }, "Cancel"), s("button", {
5430
+ class: "dialog__btn dialog__btn--primary",
5431
+ disabled: !w.value,
5432
+ onClick: E
5433
+ }, " Apply ", 8, Oa)])
5434
+ ]),
5435
+ _: 1
5436
+ }, 8, ["open"]));
5437
+ }
5438
+ }), [["__scopeId", "data-v-fbc23c7d"]]), ja = { class: "fnpd-dialog__header" }, Ma = { class: "fnpd-dialog__body" }, Na = { class: "fnpd-fieldset" }, Pa = { class: "fnpd-legend" }, Fa = { class: "fnpd-row" }, Ia = { class: "fnpd-label" }, La = { value: "pageBottom" }, Ra = { value: "beneathText" }, za = { class: "fnpd-row" }, Ba = { class: "fnpd-label" }, Va = ["value"], Ha = { class: "fnpd-row" }, Ua = { class: "fnpd-label" }, Wa = { class: "fnpd-row" }, Ga = { class: "fnpd-label" }, Ka = { value: "continuous" }, qa = { value: "eachSect" }, Ja = { value: "eachPage" }, Ya = { class: "fnpd-fieldset" }, Xa = { class: "fnpd-legend" }, Za = { class: "fnpd-row" }, Qa = { class: "fnpd-label" }, $a = { value: "docEnd" }, eo = { value: "sectEnd" }, to = { class: "fnpd-row" }, no = { class: "fnpd-label" }, ro = ["value"], io = { class: "fnpd-row" }, ao = { class: "fnpd-label" }, oo = { class: "fnpd-row" }, so = { class: "fnpd-label" }, co = { value: "continuous" }, lo = { value: "eachSect" }, uo = { class: "fnpd-dialog__footer" }, fo = /*#__PURE__*/ V(/* @__PURE__ */ u({
5439
+ __name: "FootnotePropertiesDialog",
5440
+ props: {
5441
+ isOpen: { type: Boolean },
5442
+ footnotePr: {},
5443
+ endnotePr: {}
5444
+ },
5445
+ emits: ["close", "apply"],
5446
+ setup(e, { emit: n }) {
5447
+ let { t: a } = Z(), { Dialog: c } = Q(), l = e, u = n, d = r(() => [
5448
+ {
5449
+ value: "decimal",
5450
+ label: a("dialogs.footnoteProperties.formats.decimal")
5451
+ },
5452
+ {
5453
+ value: "lowerLetter",
5454
+ label: a("dialogs.footnoteProperties.formats.lowerAlpha")
5455
+ },
5456
+ {
5457
+ value: "upperLetter",
5458
+ label: a("dialogs.footnoteProperties.formats.upperAlpha")
5459
+ },
5460
+ {
5461
+ value: "lowerRoman",
5462
+ label: a("dialogs.footnoteProperties.formats.lowerRoman")
5463
+ },
5464
+ {
5465
+ value: "upperRoman",
5466
+ label: a("dialogs.footnoteProperties.formats.upperRoman")
5467
+ },
5468
+ {
5469
+ value: "chicago",
5470
+ label: a("dialogs.footnoteProperties.formats.symbols")
5471
+ }
5472
+ ]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
5473
+ N(() => l.isOpen, (e) => {
5474
+ 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");
5475
+ });
5476
+ function x() {
5477
+ u("apply", {
5478
+ position: f.value,
5479
+ numFmt: p.value,
5480
+ numStart: m.value,
5481
+ numRestart: h.value
5482
+ }, {
5483
+ position: g.value,
5484
+ numFmt: _.value,
5485
+ numStart: v.value,
5486
+ numRestart: b.value
5487
+ }), u("close");
5488
+ }
5489
+ return (n, r) => (y(), i(O(c), {
5490
+ open: e.isOpen,
5491
+ "aria-label": O(a)("dialogs.footnoteProperties.title"),
5492
+ style: {
5493
+ width: "440px",
5494
+ maxWidth: "90vw"
5495
+ },
5496
+ onClose: r[9] ||= (e) => n.$emit("close")
5497
+ }, {
5498
+ default: P(() => [
5499
+ s("div", ja, T(O(a)("dialogs.footnoteProperties.title")), 1),
5500
+ s("div", Ma, [s("fieldset", Na, [
5501
+ s("legend", Pa, T(O(a)("dialogs.footnoteProperties.footnotes")), 1),
5502
+ s("div", Fa, [s("label", Ia, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5503
+ "onUpdate:modelValue": r[0] ||= (e) => f.value = e,
5504
+ class: "fnpd-select"
5505
+ }, [s("option", La, T(O(a)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), s("option", Ra, T(O(a)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[j, f.value]])]),
5506
+ s("div", za, [s("label", Ba, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5507
+ "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
5508
+ class: "fnpd-select"
5509
+ }, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
5510
+ key: e.value,
5247
5511
  value: e.value
5248
- }, T(e.label), 9, na))), 128))], 512), [[j, p.value]])]),
5249
- s("div", ra, [s("label", ia, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5512
+ }, T(e.label), 9, Va))), 128))], 512), [[j, p.value]])]),
5513
+ s("div", Ha, [s("label", Ua, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5250
5514
  "onUpdate:modelValue": r[2] ||= (e) => m.value = e,
5251
5515
  type: "number",
5252
5516
  class: "fnpd-input",
@@ -5257,28 +5521,28 @@ var Hn = u({
5257
5521
  void 0,
5258
5522
  { number: !0 }
5259
5523
  ]])]),
5260
- s("div", aa, [s("label", oa, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5524
+ s("div", Wa, [s("label", Ga, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5261
5525
  "onUpdate:modelValue": r[3] ||= (e) => h.value = e,
5262
5526
  class: "fnpd-select"
5263
5527
  }, [
5264
- s("option", sa, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
5265
- s("option", ca, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
5266
- s("option", la, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
5528
+ s("option", Ka, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
5529
+ s("option", qa, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
5530
+ s("option", Ja, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
5267
5531
  ], 512), [[j, h.value]])])
5268
- ]), s("fieldset", ua, [
5269
- s("legend", da, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
5270
- s("div", fa, [s("label", pa, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5532
+ ]), s("fieldset", Ya, [
5533
+ s("legend", Xa, T(O(a)("dialogs.footnoteProperties.endnotes")), 1),
5534
+ s("div", Za, [s("label", Qa, T(O(a)("dialogs.footnoteProperties.position")), 1), F(s("select", {
5271
5535
  "onUpdate:modelValue": r[4] ||= (e) => g.value = e,
5272
5536
  class: "fnpd-select"
5273
- }, [s("option", ma, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", ha, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
5274
- s("div", ga, [s("label", _a, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5537
+ }, [s("option", $a, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), s("option", eo, T(O(a)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[j, g.value]])]),
5538
+ s("div", to, [s("label", no, T(O(a)("dialogs.footnoteProperties.numberFormat")), 1), F(s("select", {
5275
5539
  "onUpdate:modelValue": r[5] ||= (e) => _.value = e,
5276
5540
  class: "fnpd-select"
5277
5541
  }, [(y(!0), o(t, null, C(d.value, (e) => (y(), o("option", {
5278
5542
  key: e.value,
5279
5543
  value: e.value
5280
- }, T(e.label), 9, va))), 128))], 512), [[j, _.value]])]),
5281
- s("div", ya, [s("label", ba, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5544
+ }, T(e.label), 9, ro))), 128))], 512), [[j, _.value]])]),
5545
+ s("div", io, [s("label", ao, T(O(a)("dialogs.footnoteProperties.startAt")), 1), F(s("input", {
5282
5546
  "onUpdate:modelValue": r[6] ||= (e) => v.value = e,
5283
5547
  type: "number",
5284
5548
  class: "fnpd-input",
@@ -5289,12 +5553,12 @@ var Hn = u({
5289
5553
  void 0,
5290
5554
  { number: !0 }
5291
5555
  ]])]),
5292
- s("div", xa, [s("label", Sa, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5556
+ s("div", oo, [s("label", so, T(O(a)("dialogs.footnoteProperties.numbering")), 1), F(s("select", {
5293
5557
  "onUpdate:modelValue": r[7] ||= (e) => b.value = e,
5294
5558
  class: "fnpd-select"
5295
- }, [s("option", Ca, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", wa, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
5559
+ }, [s("option", co, T(O(a)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), s("option", lo, T(O(a)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[j, b.value]])])
5296
5560
  ])]),
5297
- s("div", Ta, [s("button", {
5561
+ s("div", uo, [s("button", {
5298
5562
  class: "fnpd-btn",
5299
5563
  onClick: r[8] ||= (e) => n.$emit("close")
5300
5564
  }, T(O(a)("common.cancel")), 1), s("button", {
@@ -5305,25 +5569,25 @@ var Hn = u({
5305
5569
  _: 1
5306
5570
  }, 8, ["open", "aria-label"]));
5307
5571
  }
5308
- }), [["__scopeId", "data-v-86718c10"]]), Da = { class: "ipd-dialog__header" }, Oa = { class: "ipd-dialog__body" }, ka = { class: "ipd-fieldset" }, Aa = { class: "ipd-legend" }, ja = { class: "ipd-row" }, Ma = { value: "align" }, Na = { value: "offset" }, Pa = {
5572
+ }), [["__scopeId", "data-v-86718c10"]]), po = { class: "ipd-dialog__header" }, mo = { class: "ipd-dialog__body" }, ho = { class: "ipd-fieldset" }, go = { class: "ipd-legend" }, _o = { class: "ipd-row" }, vo = { value: "align" }, yo = { value: "offset" }, bo = {
5309
5573
  key: 0,
5310
5574
  class: "ipd-row"
5311
- }, Fa = { class: "ipd-label" }, Ia = { value: "left" }, La = { value: "center" }, Ra = { value: "right" }, za = {
5575
+ }, xo = { class: "ipd-label" }, So = { value: "left" }, Co = { value: "center" }, wo = { value: "right" }, To = {
5312
5576
  key: 1,
5313
5577
  class: "ipd-row"
5314
- }, Ba = { class: "ipd-label" }, Va = { class: "ipd-row" }, Ha = { class: "ipd-label" }, Ua = { value: "page" }, Wa = { value: "column" }, Ga = { value: "margin" }, Ka = { value: "character" }, qa = { class: "ipd-fieldset" }, Ja = { class: "ipd-legend" }, Ya = { class: "ipd-row" }, Xa = { value: "align" }, Za = { value: "offset" }, Qa = {
5578
+ }, Eo = { class: "ipd-label" }, Do = { class: "ipd-row" }, Oo = { class: "ipd-label" }, ko = { value: "page" }, Ao = { value: "column" }, jo = { value: "margin" }, Mo = { value: "character" }, No = { class: "ipd-fieldset" }, Po = { class: "ipd-legend" }, Fo = { class: "ipd-row" }, Io = { value: "align" }, Lo = { value: "offset" }, Ro = {
5315
5579
  key: 0,
5316
5580
  class: "ipd-row"
5317
- }, $a = { class: "ipd-label" }, eo = { value: "top" }, to = { value: "center" }, no = { value: "bottom" }, ro = {
5581
+ }, zo = { class: "ipd-label" }, Bo = { value: "top" }, Vo = { value: "center" }, Ho = { value: "bottom" }, Uo = {
5318
5582
  key: 1,
5319
5583
  class: "ipd-row"
5320
- }, io = { class: "ipd-label" }, ao = { class: "ipd-row" }, oo = { class: "ipd-label" }, so = { value: "page" }, co = { value: "margin" }, lo = { value: "paragraph" }, uo = { value: "line" }, fo = { class: "ipd-fieldset" }, po = { class: "ipd-row" }, mo = { class: "ipd-label" }, ho = {
5584
+ }, Wo = { class: "ipd-label" }, Go = { class: "ipd-row" }, Ko = { class: "ipd-label" }, qo = { value: "page" }, Jo = { value: "margin" }, Yo = { value: "paragraph" }, Xo = { value: "line" }, Zo = { class: "ipd-fieldset" }, Qo = { class: "ipd-row" }, $o = { class: "ipd-label" }, es = {
5321
5585
  class: "ipd-label",
5322
5586
  style: { width: "60px" }
5323
- }, go = { class: "ipd-row" }, _o = { class: "ipd-label" }, vo = {
5587
+ }, ts = { class: "ipd-row" }, ns = { class: "ipd-label" }, rs = {
5324
5588
  class: "ipd-label",
5325
5589
  style: { width: "60px" }
5326
- }, yo = { class: "ipd-dialog__footer" }, bo = /*#__PURE__*/ V(/* @__PURE__ */ u({
5590
+ }, is = { class: "ipd-dialog__footer" }, as = /*#__PURE__*/ V(/* @__PURE__ */ u({
5327
5591
  __name: "ImagePositionDialog",
5328
5592
  props: {
5329
5593
  isOpen: { type: Boolean },
@@ -5364,22 +5628,22 @@ var Hn = u({
5364
5628
  onClose: a[13] ||= (e) => t.$emit("close")
5365
5629
  }, {
5366
5630
  default: P(() => [
5367
- s("div", Da, T(O(n)("dialogs.imagePosition.title")), 1),
5368
- s("div", Oa, [
5369
- s("fieldset", ka, [
5370
- s("legend", Aa, T(O(n)("dialogs.imagePosition.horizontal")), 1),
5371
- s("div", ja, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5631
+ s("div", po, T(O(n)("dialogs.imagePosition.title")), 1),
5632
+ s("div", mo, [
5633
+ s("fieldset", ho, [
5634
+ s("legend", go, T(O(n)("dialogs.imagePosition.horizontal")), 1),
5635
+ s("div", _o, [a[14] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5372
5636
  "onUpdate:modelValue": a[0] ||= (e) => l.value = e,
5373
5637
  class: "ipd-select"
5374
- }, [s("option", Ma, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Na, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
5375
- l.value === "align" ? (y(), o("div", Pa, [s("label", Fa, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5638
+ }, [s("option", vo, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", yo, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, l.value]])]),
5639
+ l.value === "align" ? (y(), o("div", bo, [s("label", xo, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5376
5640
  "onUpdate:modelValue": a[1] ||= (e) => u.value = e,
5377
5641
  class: "ipd-select"
5378
5642
  }, [
5379
- s("option", Ia, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5380
- s("option", La, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5381
- s("option", Ra, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
5382
- ], 512), [[j, u.value]])])) : (y(), o("div", za, [s("label", Ba, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5643
+ s("option", So, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5644
+ s("option", Co, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5645
+ s("option", wo, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1)
5646
+ ], 512), [[j, u.value]])])) : (y(), o("div", To, [s("label", Eo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5383
5647
  "onUpdate:modelValue": a[2] ||= (e) => d.value = e,
5384
5648
  type: "number",
5385
5649
  class: "ipd-input"
@@ -5389,30 +5653,30 @@ var Hn = u({
5389
5653
  void 0,
5390
5654
  { number: !0 }
5391
5655
  ]])])),
5392
- s("div", Va, [s("label", Ha, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5656
+ s("div", Do, [s("label", Oo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5393
5657
  "onUpdate:modelValue": a[3] ||= (e) => f.value = e,
5394
5658
  class: "ipd-select"
5395
5659
  }, [
5396
- s("option", Ua, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5397
- s("option", Wa, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
5398
- s("option", Ga, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5399
- s("option", Ka, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
5660
+ s("option", ko, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5661
+ s("option", Ao, T(O(n)("dialogs.imagePosition.relativeOptions.column")), 1),
5662
+ s("option", jo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5663
+ s("option", Mo, T(O(n)("dialogs.imagePosition.relativeOptions.character")), 1)
5400
5664
  ], 512), [[j, f.value]])])
5401
5665
  ]),
5402
- s("fieldset", qa, [
5403
- s("legend", Ja, T(O(n)("dialogs.imagePosition.vertical")), 1),
5404
- s("div", Ya, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5666
+ s("fieldset", No, [
5667
+ s("legend", Po, T(O(n)("dialogs.imagePosition.vertical")), 1),
5668
+ s("div", Fo, [a[15] ||= s("label", { class: "ipd-label" }, "Mode", -1), F(s("select", {
5405
5669
  "onUpdate:modelValue": a[4] ||= (e) => p.value = e,
5406
5670
  class: "ipd-select"
5407
- }, [s("option", Xa, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Za, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
5408
- p.value === "align" ? (y(), o("div", Qa, [s("label", $a, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5671
+ }, [s("option", Io, T(O(n)("dialogs.imagePosition.alignment")), 1), s("option", Lo, T(O(n)("dialogs.imagePosition.offset")), 1)], 512), [[j, p.value]])]),
5672
+ p.value === "align" ? (y(), o("div", Ro, [s("label", zo, T(O(n)("dialogs.imagePosition.align")), 1), F(s("select", {
5409
5673
  "onUpdate:modelValue": a[5] ||= (e) => m.value = e,
5410
5674
  class: "ipd-select"
5411
5675
  }, [
5412
- s("option", eo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5413
- s("option", to, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5414
- s("option", no, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
5415
- ], 512), [[j, m.value]])])) : (y(), o("div", ro, [s("label", io, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5676
+ s("option", Bo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5677
+ s("option", Vo, T(O(n)("dialogs.imagePosition.alignOptions.center")), 1),
5678
+ s("option", Ho, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
5679
+ ], 512), [[j, m.value]])])) : (y(), o("div", Uo, [s("label", Wo, T(O(n)("dialogs.imagePosition.offsetPx")), 1), F(s("input", {
5416
5680
  "onUpdate:modelValue": a[6] ||= (e) => h.value = e,
5417
5681
  type: "number",
5418
5682
  class: "ipd-input"
@@ -5422,20 +5686,20 @@ var Hn = u({
5422
5686
  void 0,
5423
5687
  { number: !0 }
5424
5688
  ]])])),
5425
- s("div", ao, [s("label", oo, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5689
+ s("div", Go, [s("label", Ko, T(O(n)("dialogs.imagePosition.relativeTo")), 1), F(s("select", {
5426
5690
  "onUpdate:modelValue": a[7] ||= (e) => g.value = e,
5427
5691
  class: "ipd-select"
5428
5692
  }, [
5429
- s("option", so, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5430
- s("option", co, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5431
- s("option", lo, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
5432
- s("option", uo, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
5693
+ s("option", qo, T(O(n)("dialogs.imagePosition.relativeOptions.page")), 1),
5694
+ s("option", Jo, T(O(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
5695
+ s("option", Yo, T(O(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
5696
+ s("option", Xo, T(O(n)("dialogs.imagePosition.relativeOptions.line")), 1)
5433
5697
  ], 512), [[j, g.value]])])
5434
5698
  ]),
5435
- s("fieldset", fo, [
5699
+ s("fieldset", Zo, [
5436
5700
  a[16] ||= s("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
5437
- s("div", po, [
5438
- s("label", mo, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5701
+ s("div", Qo, [
5702
+ s("label", $o, T(O(n)("dialogs.imagePosition.alignOptions.top")), 1),
5439
5703
  F(s("input", {
5440
5704
  "onUpdate:modelValue": a[8] ||= (e) => _.value = e,
5441
5705
  type: "number",
@@ -5447,7 +5711,7 @@ var Hn = u({
5447
5711
  void 0,
5448
5712
  { number: !0 }
5449
5713
  ]]),
5450
- s("label", ho, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
5714
+ s("label", es, T(O(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
5451
5715
  F(s("input", {
5452
5716
  "onUpdate:modelValue": a[9] ||= (e) => v.value = e,
5453
5717
  type: "number",
@@ -5460,8 +5724,8 @@ var Hn = u({
5460
5724
  { number: !0 }
5461
5725
  ]])
5462
5726
  ]),
5463
- s("div", go, [
5464
- s("label", _o, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5727
+ s("div", ts, [
5728
+ s("label", ns, T(O(n)("dialogs.imagePosition.alignOptions.left")), 1),
5465
5729
  F(s("input", {
5466
5730
  "onUpdate:modelValue": a[10] ||= (e) => b.value = e,
5467
5731
  type: "number",
@@ -5473,7 +5737,7 @@ var Hn = u({
5473
5737
  void 0,
5474
5738
  { number: !0 }
5475
5739
  ]]),
5476
- s("label", vo, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
5740
+ s("label", rs, T(O(n)("dialogs.imagePosition.alignOptions.right")), 1),
5477
5741
  F(s("input", {
5478
5742
  "onUpdate:modelValue": a[11] ||= (e) => x.value = e,
5479
5743
  type: "number",
@@ -5488,7 +5752,7 @@ var Hn = u({
5488
5752
  ])
5489
5753
  ])
5490
5754
  ]),
5491
- s("div", yo, [s("button", {
5755
+ s("div", is, [s("button", {
5492
5756
  class: "ipd-btn",
5493
5757
  onClick: a[12] ||= (e) => t.$emit("close")
5494
5758
  }, T(O(n)("common.cancel")), 1), s("button", {
@@ -5499,7 +5763,7 @@ var Hn = u({
5499
5763
  _: 1
5500
5764
  }, 8, ["open", "aria-label"]));
5501
5765
  }
5502
- }), [["__scopeId", "data-v-64d4c153"]]), xo = { class: "dialog__body" }, So = { class: "field" }, Co = ["accept"], wo = { class: "field" }, To = ["placeholder"], Eo = { class: "grid" }, Do = { class: "field" }, Oo = { class: "field" }, ko = { class: "dialog__footer" }, Ao = ["disabled"], jo = /*#__PURE__*/ V(/* @__PURE__ */ u({
5766
+ }), [["__scopeId", "data-v-64d4c153"]]), os = { class: "dialog__body" }, ss = { class: "field" }, cs = ["accept"], ls = { class: "field" }, us = ["placeholder"], ds = { class: "grid" }, fs = { class: "field" }, ps = { class: "field" }, ms = { class: "dialog__footer" }, hs = ["disabled"], gs = /*#__PURE__*/ V(/* @__PURE__ */ u({
5503
5767
  __name: "InsertImageDialog",
5504
5768
  props: {
5505
5769
  isOpen: { type: Boolean },
@@ -5541,25 +5805,25 @@ var Hn = u({
5541
5805
  }, {
5542
5806
  default: P(() => [
5543
5807
  r[9] ||= s("div", { class: "dialog__header" }, "Insert Image", -1),
5544
- s("div", xo, [
5545
- s("label", So, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
5808
+ s("div", os, [
5809
+ s("label", ss, [r[5] ||= s("span", { class: "field__label" }, "Image file", -1), s("input", {
5546
5810
  class: "field__input",
5547
5811
  type: "file",
5548
5812
  accept: e.accept,
5549
5813
  onChange: d
5550
- }, null, 40, Co)]),
5551
- s("label", wo, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
5814
+ }, null, 40, cs)]),
5815
+ s("label", ls, [r[6] ||= s("span", { class: "field__label" }, "Alt text", -1), F(s("input", {
5552
5816
  "onUpdate:modelValue": r[0] ||= (e) => c.value = e,
5553
5817
  class: "field__input",
5554
5818
  placeholder: o.value?.name ?? ""
5555
- }, null, 8, To), [[M, c.value]])]),
5556
- s("div", Eo, [s("label", Do, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
5819
+ }, null, 8, us), [[M, c.value]])]),
5820
+ s("div", ds, [s("label", fs, [r[7] ||= s("span", { class: "field__label" }, "Width", -1), F(s("input", {
5557
5821
  "onUpdate:modelValue": r[1] ||= (e) => l.value = e,
5558
5822
  class: "field__input",
5559
5823
  min: "1",
5560
5824
  placeholder: "Auto",
5561
5825
  type: "number"
5562
- }, null, 512), [[M, l.value]])]), s("label", Oo, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
5826
+ }, null, 512), [[M, l.value]])]), s("label", ps, [r[8] ||= s("span", { class: "field__label" }, "Height", -1), F(s("input", {
5563
5827
  "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
5564
5828
  class: "field__input",
5565
5829
  min: "1",
@@ -5567,14 +5831,14 @@ var Hn = u({
5567
5831
  type: "number"
5568
5832
  }, null, 512), [[M, u.value]])])])
5569
5833
  ]),
5570
- s("div", ko, [s("button", {
5834
+ s("div", ms, [s("button", {
5571
5835
  class: "dialog__btn",
5572
5836
  onClick: r[3] ||= (e) => t.$emit("close")
5573
5837
  }, "Cancel"), s("button", {
5574
5838
  class: "dialog__btn dialog__btn--primary",
5575
5839
  disabled: !o.value,
5576
5840
  onClick: f
5577
- }, " Insert ", 8, Ao)])
5841
+ }, " Insert ", 8, hs)])
5578
5842
  ]),
5579
5843
  _: 1
5580
5844
  }, 8, ["open"]));
@@ -5583,7 +5847,7 @@ var Hn = u({
5583
5847
  style: "single",
5584
5848
  size: 4,
5585
5849
  color: { rgb: e }
5586
- }), Mo = [
5850
+ }), _s = [
5587
5851
  {
5588
5852
  id: "TableNormal",
5589
5853
  name: "Normal Table",
@@ -5875,7 +6139,7 @@ var Hn = u({
5875
6139
  band1Horz: { backgroundColor: "#E2EFDA" }
5876
6140
  }
5877
6141
  }
5878
- ], No = {
6142
+ ], vs = {
5879
6143
  TableNormal: "table.styles.normalTable",
5880
6144
  TableGrid: "table.styles.tableGrid",
5881
6145
  TableGridLight: "table.styles.gridTableLight",
@@ -5890,14 +6154,14 @@ var Hn = u({
5890
6154
  "ListTable4-Accent3": "table.styles.listTable4Accent3",
5891
6155
  "GridTable4-Accent5": "table.styles.gridTable4Accent5",
5892
6156
  "GridTable4-Accent6": "table.styles.gridTable4Accent6"
5893
- }, Po = 4, Fo = 3;
5894
- function Io(e) {
6157
+ }, ys = 4, bs = 3;
6158
+ function xs(e) {
5895
6159
  return !e || e.style === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px solid ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
5896
6160
  }
5897
- function Lo(e, t, n, r) {
5898
- return Io(e === void 0 ? t ? n ?? r : r : e);
6161
+ function Ss(e, t, n, r) {
6162
+ return xs(e === void 0 ? t ? n ?? r : r : e);
5899
6163
  }
5900
- function Ro(e, t = Po, n = Fo) {
6164
+ function Cs(e, t = ys, n = bs) {
5901
6165
  let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
5902
6166
  for (let e = 0; e < t; e++) {
5903
6167
  let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
@@ -5910,10 +6174,10 @@ function Ro(e, t = Po, n = Fo) {
5910
6174
  height: "10px",
5911
6175
  boxSizing: "border-box",
5912
6176
  backgroundColor: m?.backgroundColor ?? "transparent",
5913
- borderTop: Lo(h?.top, e > 0, a?.insideH, a?.top),
5914
- borderBottom: Lo(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
5915
- borderLeft: Lo(h?.left, s > 0, a?.insideV, a?.left),
5916
- borderRight: Lo(h?.right, s < n - 1, a?.insideV, a?.right)
6177
+ borderTop: Ss(h?.top, e > 0, a?.insideH, a?.top),
6178
+ borderBottom: Ss(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
6179
+ borderLeft: Ss(h?.left, s > 0, a?.insideV, a?.left),
6180
+ borderRight: Ss(h?.right, s < n - 1, a?.insideV, a?.right)
5917
6181
  };
5918
6182
  o.push(g);
5919
6183
  }
@@ -5922,40 +6186,40 @@ function Ro(e, t = Po, n = Fo) {
5922
6186
  }
5923
6187
  //#endregion
5924
6188
  //#region src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
5925
- var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMousedown"], Ho = { class: "tsg__preview" }, Uo = { class: "tsg__name" }, Wo = /*#__PURE__*/ V(/* @__PURE__ */ u({
6189
+ var ws = { class: "tsg" }, Ts = { class: "tsg__grid" }, Es = ["title", "onMousedown"], Ds = { class: "tsg__preview" }, Os = { class: "tsg__name" }, ks = /*#__PURE__*/ V(/* @__PURE__ */ u({
5926
6190
  __name: "TableStyleGallery",
5927
6191
  props: { currentStyleId: {} },
5928
6192
  emits: ["apply"],
5929
6193
  setup(e) {
5930
- let { t: n } = Z(), r = Mo;
6194
+ let { t: n } = Z(), r = _s;
5931
6195
  function i(e) {
5932
- let t = No[e.id];
6196
+ let t = vs[e.id];
5933
6197
  return t ? n(t) : e.name;
5934
6198
  }
5935
- return (n, a) => (y(), o("div", zo, [s("div", Bo, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
6199
+ return (n, a) => (y(), o("div", ws, [s("div", Ts, [(y(!0), o(t, null, C(O(r), (r) => (y(), o("button", {
5936
6200
  key: r.id,
5937
6201
  class: h(["tsg__item", { "tsg__item--selected": e.currentStyleId === r.id }]),
5938
6202
  title: i(r),
5939
6203
  onMousedown: L((e) => n.$emit("apply", r.id), ["prevent"])
5940
- }, [s("div", Ho, [(y(!0), o(t, null, C(O(Ro)(r), (e, t) => (y(), o("div", {
6204
+ }, [s("div", Ds, [(y(!0), o(t, null, C(O(Cs)(r), (e, t) => (y(), o("div", {
5941
6205
  key: t,
5942
6206
  class: "tsg__cell",
5943
6207
  style: g(e)
5944
- }, null, 4))), 128))]), s("span", Uo, T(i(r)), 1)], 42, Vo))), 128))])]));
6208
+ }, null, 4))), 128))]), s("span", Os, T(i(r)), 1)], 42, Es))), 128))])]));
5945
6209
  }
5946
- }), [["__scopeId", "data-v-c155c39f"]]), Go = x({
6210
+ }), [["__scopeId", "data-v-c155c39f"]]), As = x({
5947
6211
  rows: 3,
5948
6212
  cols: 3
5949
- }), Ko = { class: "dialog__header" }, qo = { class: "dialog__title" }, Jo = ["title"], Yo = { class: "dialog__body" }, Xo = ["aria-label"], Zo = ["onMouseenter", "onMousedown"], Qo = { class: "table-grid__label" }, $o = { class: "dialog__separator" }, es = { class: "table-manual" }, ts = { class: "table-manual__field" }, ns = { class: "table-manual__field" }, rs = { class: "table-options" }, is = { class: "table-options__radio" }, as = { class: "table-options__radio" }, os = { class: "dialog__separator" }, ss = { class: "dialog__footer" }, cs = ["disabled"], ls = 8, us = 10, ds = 1, fs = 100, ps = 1, ms = 20, hs = /*#__PURE__*/ V(/* @__PURE__ */ u({
6213
+ }), js = { class: "dialog__header" }, Ms = { class: "dialog__title" }, Ns = ["title"], Ps = { class: "dialog__body" }, Fs = ["aria-label"], Is = ["onMouseenter", "onMousedown"], Ls = { class: "table-grid__label" }, Rs = { class: "dialog__separator" }, zs = { class: "table-manual" }, Bs = { class: "table-manual__field" }, Vs = { class: "table-manual__field" }, Hs = { class: "table-options" }, Us = { class: "table-options__radio" }, Ws = { class: "table-options__radio" }, Gs = { class: "dialog__separator" }, Ks = { class: "dialog__footer" }, qs = ["disabled"], Js = 8, Ys = 10, Xs = 1, Zs = 100, Qs = 1, $s = 20, ec = /*#__PURE__*/ V(/* @__PURE__ */ u({
5950
6214
  __name: "InsertTableDialog",
5951
6215
  props: { isOpen: { type: Boolean } },
5952
6216
  emits: ["close", "insert"],
5953
6217
  setup(e, { emit: n }) {
5954
- let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(Go.rows), m = S(Go.cols), g = S("fixed"), _ = S(null);
6218
+ let { t: i } = Z(), c = e, u = n, d = S(0), f = S(0), p = S(As.rows), m = S(As.cols), g = S("fixed"), _ = S(null);
5955
6219
  N(() => c.isOpen, (e) => {
5956
- e && (p.value = Go.rows, m.value = Go.cols, d.value = 0, f.value = 0);
6220
+ e && (p.value = As.rows, m.value = As.cols, d.value = 0, f.value = 0);
5957
6221
  });
5958
- 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 >= ds && v.value <= fs), w = r(() => Number.isFinite(b.value) && b.value >= ps && b.value <= ms), E = r(() => x.value && w.value);
6222
+ 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 >= Xs && v.value <= Zs), w = r(() => Number.isFinite(b.value) && b.value >= Qs && b.value <= $s), E = r(() => x.value && w.value);
5959
6223
  function D() {
5960
6224
  u("close");
5961
6225
  }
@@ -5967,8 +6231,8 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
5967
6231
  }
5968
6232
  function P() {
5969
6233
  if (!E.value) return;
5970
- let e = Math.min(Math.max(ds, v.value), fs), t = Math.min(Math.max(ps, b.value), ms);
5971
- Go.rows = e, Go.cols = t, u("insert", {
6234
+ let e = Math.min(Math.max(Xs, v.value), Zs), t = Math.min(Math.max(Qs, b.value), $s);
6235
+ As.rows = e, As.cols = t, u("insert", {
5972
6236
  rows: e,
5973
6237
  cols: t,
5974
6238
  autofit: g.value === "autofit",
@@ -5984,83 +6248,83 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
5984
6248
  onMousedown: r[7] ||= L(() => {}, ["stop"]),
5985
6249
  onKeydown: L(j, ["stop"])
5986
6250
  }, [
5987
- s("div", Ko, [s("span", qo, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
6251
+ s("div", js, [s("span", Ms, T(O(i)("dialogs.insertTable.title")), 1), s("button", {
5988
6252
  class: "dialog__close",
5989
6253
  title: O(i)("common.closeDialog"),
5990
6254
  onClick: D
5991
- }, "✕", 8, Jo)]),
5992
- s("div", Yo, [
6255
+ }, "✕", 8, Ns)]),
6256
+ s("div", Ps, [
5993
6257
  s("div", {
5994
6258
  class: "table-grid",
5995
6259
  "aria-label": O(i)("dialogs.insertTable.sizeSelector"),
5996
6260
  onMouseleave: r[0] ||= (e) => {
5997
6261
  d.value = 0, f.value = 0;
5998
6262
  }
5999
- }, [(y(), o(t, null, C(ls, (e) => s("div", {
6263
+ }, [(y(), o(t, null, C(Js, (e) => s("div", {
6000
6264
  key: e,
6001
6265
  class: "table-grid__row"
6002
- }, [(y(), o(t, null, C(us, (t) => s("div", {
6266
+ }, [(y(), o(t, null, C(Ys, (t) => s("div", {
6003
6267
  key: t,
6004
6268
  class: h(["table-grid__cell", { highlight: e <= d.value && t <= f.value }]),
6005
6269
  onMouseenter: (n) => {
6006
6270
  d.value = e, f.value = t;
6007
6271
  },
6008
6272
  onMousedown: L((n) => k(e, t), ["prevent"])
6009
- }, null, 42, Zo)), 64))])), 64))], 40, Xo),
6010
- s("div", Qo, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
6273
+ }, null, 42, Is)), 64))])), 64))], 40, Fs),
6274
+ s("div", Ls, T(d.value > 0 ? O(i)("dialogs.insertTable.tableSize", {
6011
6275
  cols: f.value,
6012
6276
  rows: d.value
6013
6277
  }) : O(i)("dialogs.insertTable.hoverToSelect")), 1),
6014
- s("div", $o, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
6015
- s("div", es, [s("label", ts, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
6278
+ s("div", Rs, [s("span", null, T(O(i)("dialogs.insertTable.orSpecifySize")), 1)]),
6279
+ s("div", zs, [s("label", Bs, [s("span", null, T(O(i)("dialogs.insertTable.rowsLabel")), 1), F(s("input", {
6016
6280
  "onUpdate:modelValue": r[1] ||= (e) => p.value = e,
6017
6281
  type: "number",
6018
- min: ds,
6019
- max: fs,
6282
+ min: Xs,
6283
+ max: Zs,
6020
6284
  class: h(["table-manual__input", { "table-manual__input--invalid": !x.value }])
6021
- }, null, 2), [[M, p.value]])]), s("label", ns, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
6285
+ }, null, 2), [[M, p.value]])]), s("label", Vs, [s("span", null, T(O(i)("dialogs.insertTable.columnsLabel")), 1), F(s("input", {
6022
6286
  "onUpdate:modelValue": r[2] ||= (e) => m.value = e,
6023
6287
  type: "number",
6024
- min: ps,
6025
- max: ms,
6288
+ min: Qs,
6289
+ max: $s,
6026
6290
  class: h(["table-manual__input", { "table-manual__input--invalid": !w.value }])
6027
6291
  }, null, 2), [[M, m.value]])])]),
6028
6292
  s("div", { class: h(["table-manual__hint", { "table-manual__hint--error": !E.value }]) }, T(O(i)("dialogs.insertTable.validationHint", {
6029
- minRows: ds,
6030
- maxRows: fs,
6031
- minCols: ps,
6032
- maxCols: ms
6293
+ minRows: Xs,
6294
+ maxRows: Zs,
6295
+ minCols: Qs,
6296
+ maxCols: $s
6033
6297
  })), 3),
6034
- s("fieldset", rs, [
6298
+ s("fieldset", Hs, [
6035
6299
  s("legend", null, T(O(i)("dialogs.insertTable.columnWidthLabel")), 1),
6036
- s("label", is, [F(s("input", {
6300
+ s("label", Us, [F(s("input", {
6037
6301
  type: "radio",
6038
6302
  value: "fixed",
6039
6303
  "onUpdate:modelValue": r[3] ||= (e) => g.value = e
6040
6304
  }, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.fixedWidth")), 1)]),
6041
- s("label", as, [F(s("input", {
6305
+ s("label", Ws, [F(s("input", {
6042
6306
  type: "radio",
6043
6307
  value: "autofit",
6044
6308
  "onUpdate:modelValue": r[4] ||= (e) => g.value = e
6045
6309
  }, null, 512), [[A, g.value]]), s("span", null, T(O(i)("dialogs.insertTable.autofit")), 1)])
6046
6310
  ]),
6047
- s("div", os, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
6048
- l(Wo, {
6311
+ s("div", Gs, [s("span", null, T(O(i)("dialogs.insertTable.style")), 1)]),
6312
+ l(ks, {
6049
6313
  "current-style-id": _.value,
6050
6314
  onApply: r[5] ||= (e) => _.value = e
6051
6315
  }, null, 8, ["current-style-id"])
6052
6316
  ]),
6053
- s("div", ss, [s("button", {
6317
+ s("div", Ks, [s("button", {
6054
6318
  class: "dialog__btn",
6055
6319
  onMousedown: L(D, ["prevent"])
6056
6320
  }, T(O(i)("common.cancel")), 33), s("button", {
6057
6321
  class: "dialog__btn dialog__btn--primary",
6058
6322
  disabled: !E.value,
6059
6323
  onMousedown: r[6] ||= L((e) => P(), ["prevent"])
6060
- }, T(O(i)("dialogs.insertTable.insertButton")), 41, cs)])
6324
+ }, T(O(i)("dialogs.insertTable.insertButton")), 41, qs)])
6061
6325
  ], 32)], 32)) : a("", !0);
6062
6326
  }
6063
- }), [["__scopeId", "data-v-cc53b9fa"]]), gs = { class: "dialog__body" }, _s = { class: "options" }, vs = ["value"], ys = { class: "option__body" }, bs = { class: "option__label" }, xs = { class: "option__description" }, Ss = { class: "dialog__footer" }, Cs = /*#__PURE__*/ V(/* @__PURE__ */ u({
6327
+ }), [["__scopeId", "data-v-cc53b9fa"]]), tc = { class: "dialog__body" }, nc = { class: "options" }, rc = ["value"], ic = { class: "option__body" }, ac = { class: "option__label" }, oc = { class: "option__description" }, sc = { class: "dialog__footer" }, cc = /*#__PURE__*/ V(/* @__PURE__ */ u({
6064
6328
  __name: "PasteSpecialDialog",
6065
6329
  props: {
6066
6330
  isOpen: { type: Boolean },
@@ -6103,15 +6367,15 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
6103
6367
  }, {
6104
6368
  default: P(() => [
6105
6369
  c[4] ||= s("div", { class: "dialog__header" }, "Paste Special", -1),
6106
- s("div", gs, [s("fieldset", _s, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
6370
+ s("div", tc, [s("fieldset", nc, [c[3] ||= s("legend", { class: "options__legend" }, "Paste mode", -1), (y(), o(t, null, C(a, (e) => s("label", {
6107
6371
  key: e.value,
6108
6372
  class: "option"
6109
6373
  }, [F(s("input", {
6110
6374
  "onUpdate:modelValue": c[0] ||= (e) => u.value = e,
6111
6375
  type: "radio",
6112
6376
  value: e.value
6113
- }, null, 8, vs), [[A, u.value]]), s("span", ys, [s("span", bs, T(e.label), 1), s("span", xs, T(e.description), 1)])])), 64))])]),
6114
- s("div", Ss, [s("button", {
6377
+ }, null, 8, rc), [[A, u.value]]), s("span", ic, [s("span", ac, T(e.label), 1), s("span", oc, T(e.description), 1)])])), 64))])]),
6378
+ s("div", sc, [s("button", {
6115
6379
  class: "dialog__btn",
6116
6380
  onClick: c[1] ||= (e) => n.$emit("close")
6117
6381
  }, "Cancel"), s("button", {
@@ -6122,7 +6386,7 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
6122
6386
  _: 1
6123
6387
  }, 8, ["open"]));
6124
6388
  }
6125
- }), [["__scopeId", "data-v-540e9db3"]]), ws = { class: "dialog__body" }, Ts = { class: "grid" }, Es = { class: "field" }, Ds = { class: "field" }, Os = { class: "check" }, ks = { class: "dialog__footer" }, As = ["disabled"], js = 1, Ms = 63, Ns = /*#__PURE__*/ V(/* @__PURE__ */ u({
6389
+ }), [["__scopeId", "data-v-540e9db3"]]), lc = { class: "dialog__body" }, uc = { class: "grid" }, dc = { class: "field" }, fc = { class: "field" }, pc = { class: "check" }, mc = { class: "dialog__footer" }, hc = ["disabled"], gc = 1, _c = 63, vc = /*#__PURE__*/ V(/* @__PURE__ */ u({
6126
6390
  __name: "SplitCellDialog",
6127
6391
  props: {
6128
6392
  isOpen: { type: Boolean },
@@ -6143,7 +6407,7 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
6143
6407
  }), o("close"));
6144
6408
  }
6145
6409
  function h(e) {
6146
- return Math.min(Ms, Math.max(js, Math.trunc(e)));
6410
+ return Math.min(_c, Math.max(gc, Math.trunc(e)));
6147
6411
  }
6148
6412
  return (t, r) => (y(), i(O(n), {
6149
6413
  open: e.isOpen,
@@ -6158,296 +6422,44 @@ var zo = { class: "tsg" }, Bo = { class: "tsg__grid" }, Vo = ["title", "onMoused
6158
6422
  }, {
6159
6423
  default: P(() => [
6160
6424
  r[8] ||= s("div", { class: "dialog__header" }, "Split Cell", -1),
6161
- s("div", ws, [s("div", Ts, [s("label", Es, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
6425
+ s("div", lc, [s("div", uc, [s("label", dc, [r[5] ||= s("span", { class: "field__label" }, "Columns", -1), F(s("input", {
6162
6426
  "onUpdate:modelValue": r[0] ||= (e) => l.value = e,
6163
6427
  class: "field__input",
6164
- max: Ms,
6165
- min: js,
6428
+ max: _c,
6429
+ min: gc,
6166
6430
  type: "number"
6167
6431
  }, null, 512), [[
6168
6432
  M,
6169
6433
  l.value,
6170
6434
  void 0,
6171
6435
  { number: !0 }
6172
- ]])]), s("label", Ds, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
6436
+ ]])]), s("label", fc, [r[6] ||= s("span", { class: "field__label" }, "Rows", -1), F(s("input", {
6173
6437
  "onUpdate:modelValue": r[1] ||= (e) => c.value = e,
6174
6438
  class: "field__input",
6175
- max: Ms,
6176
- min: js,
6439
+ max: _c,
6440
+ min: gc,
6177
6441
  type: "number"
6178
6442
  }, null, 512), [[
6179
6443
  M,
6180
6444
  c.value,
6181
6445
  void 0,
6182
6446
  { number: !0 }
6183
- ]])])]), s("label", Os, [F(s("input", {
6447
+ ]])])]), s("label", pc, [F(s("input", {
6184
6448
  "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
6185
6449
  type: "checkbox"
6186
6450
  }, null, 512), [[k, u.value]]), r[7] ||= s("span", null, "Merge selected cells before splitting", -1)])]),
6187
- s("div", ks, [s("button", {
6451
+ s("div", mc, [s("button", {
6188
6452
  class: "dialog__btn",
6189
6453
  onClick: r[3] ||= (e) => t.$emit("close")
6190
6454
  }, "Cancel"), s("button", {
6191
6455
  class: "dialog__btn dialog__btn--primary",
6192
6456
  disabled: !p.value,
6193
6457
  onClick: m
6194
- }, " Split ", 8, As)])
6195
- ]),
6196
- _: 1
6197
- }, 8, ["open"]));
6198
- }
6199
- }), [["__scopeId", "data-v-c4c6621c"]]), Ps = { class: "tpd-dialog__header" }, Fs = { class: "tpd-dialog__body" }, Is = { class: "tpd-row" }, Ls = { class: "tpd-label" }, Rs = { value: "auto" }, zs = { value: "dxa" }, Bs = { value: "pct" }, Vs = {
6200
- key: 0,
6201
- class: "tpd-row"
6202
- }, Hs = { class: "tpd-label" }, Us = ["step"], Ws = { class: "tpd-unit" }, Gs = { class: "tpd-row" }, Ks = { class: "tpd-label" }, qs = { value: "left" }, Js = { value: "center" }, Ys = { value: "right" }, Xs = { class: "tpd-dialog__footer" }, Zs = /*#__PURE__*/ V(/* @__PURE__ */ u({
6203
- __name: "TablePropertiesDialog",
6204
- props: {
6205
- isOpen: { type: Boolean },
6206
- currentProps: {}
6207
- },
6208
- emits: ["close", "apply"],
6209
- setup(e, { emit: t }) {
6210
- let { t: n } = Z(), { Dialog: r } = Q(), c = e, l = t, u = S(0), d = S("auto"), f = S("left");
6211
- function p(e) {
6212
- return e === "center" || e === "right" ? e : "left";
6213
- }
6214
- N(() => c.isOpen, (e) => {
6215
- e && (u.value = c.currentProps?.width ?? 0, d.value = c.currentProps?.widthType ?? "auto", f.value = p(c.currentProps?.justification));
6216
- });
6217
- function m() {
6218
- let e = d.value === "auto" ? {
6219
- justification: f.value,
6220
- width: null,
6221
- widthType: "auto"
6222
- } : {
6223
- justification: f.value,
6224
- width: u.value,
6225
- widthType: d.value
6226
- };
6227
- l("apply", e), l("close");
6228
- }
6229
- return (t, c) => (y(), i(O(r), {
6230
- open: e.isOpen,
6231
- "aria-label": O(n)("dialogs.tableProperties.title"),
6232
- style: {
6233
- minWidth: "360px",
6234
- maxWidth: "440px",
6235
- width: "100%"
6236
- },
6237
- onClose: c[4] ||= (e) => t.$emit("close"),
6238
- onKeydown: I(m, ["enter"])
6239
- }, {
6240
- default: P(() => [
6241
- s("div", Ps, T(O(n)("dialogs.tableProperties.title")), 1),
6242
- s("div", Fs, [
6243
- s("div", Is, [s("label", Ls, T(O(n)("dialogs.tableProperties.widthType")), 1), F(s("select", {
6244
- "onUpdate:modelValue": c[0] ||= (e) => d.value = e,
6245
- class: "tpd-select"
6246
- }, [
6247
- s("option", Rs, T(O(n)("dialogs.tableProperties.widthTypes.auto")), 1),
6248
- s("option", zs, T(O(n)("dialogs.tableProperties.widthTypes.fixed")), 1),
6249
- s("option", Bs, T(O(n)("dialogs.tableProperties.widthTypes.percentage")), 1)
6250
- ], 512), [[j, d.value]])]),
6251
- d.value === "auto" ? a("", !0) : (y(), o("div", Vs, [
6252
- s("label", Hs, T(O(n)("dialogs.tableProperties.widthLabel")), 1),
6253
- F(s("input", {
6254
- "onUpdate:modelValue": c[1] ||= (e) => u.value = e,
6255
- type: "number",
6256
- class: "tpd-input",
6257
- min: 0,
6258
- step: d.value === "pct" ? 5 : 100
6259
- }, null, 8, Us), [[
6260
- M,
6261
- u.value,
6262
- void 0,
6263
- { number: !0 }
6264
- ]]),
6265
- s("span", Ws, T(d.value === "pct" ? O(n)("dialogs.tableProperties.units.fiftiethsPercent") : O(n)("dialogs.tableProperties.units.twips")), 1)
6266
- ])),
6267
- s("div", Gs, [s("label", Ks, T(O(n)("dialogs.tableProperties.alignmentLabel")), 1), F(s("select", {
6268
- "onUpdate:modelValue": c[2] ||= (e) => f.value = e,
6269
- class: "tpd-select"
6270
- }, [
6271
- s("option", qs, T(O(n)("dialogs.tableProperties.alignOptions.left")), 1),
6272
- s("option", Js, T(O(n)("dialogs.tableProperties.alignOptions.center")), 1),
6273
- s("option", Ys, T(O(n)("dialogs.tableProperties.alignOptions.right")), 1)
6274
- ], 512), [[j, f.value]])])
6275
- ]),
6276
- s("div", Xs, [s("button", {
6277
- class: "tpd-btn",
6278
- onClick: c[3] ||= (e) => t.$emit("close")
6279
- }, T(O(n)("common.cancel")), 1), s("button", {
6280
- class: "tpd-btn tpd-btn--primary",
6281
- onClick: m
6282
- }, T(O(n)("common.apply")), 1)])
6283
- ]),
6284
- _: 1
6285
- }, 8, ["open", "aria-label"]));
6286
- }
6287
- }), [["__scopeId", "data-v-6e0fd92d"]]), Qs = { class: "dialog__body" }, $s = { class: "field" }, ec = {
6288
- key: 0,
6289
- class: "grid"
6290
- }, tc = { class: "field field--wide" }, nc = { class: "field" }, rc = { class: "field" }, ic = { class: "field" }, ac = { class: "check" }, oc = {
6291
- key: 1,
6292
- class: "grid"
6293
- }, sc = { class: "field field--wide" }, cc = { class: "field field--wide" }, lc = { class: "field" }, uc = { class: "check" }, dc = { class: "check field--wide" }, fc = { class: "dialog__footer" }, pc = ["disabled"], mc = "#C0C0C0", hc = /*#__PURE__*/ V(/* @__PURE__ */ u({
6294
- __name: "WatermarkDialog",
6295
- props: {
6296
- isOpen: { type: Boolean },
6297
- currentWatermark: {}
6298
- },
6299
- emits: ["close", "apply"],
6300
- setup(e, { emit: t }) {
6301
- let { Dialog: n } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(mc), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = r(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0);
6302
- N([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
6303
- if (e) {
6304
- if (!t) {
6305
- u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = mc, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0;
6306
- return;
6307
- }
6308
- if (u.value = t.kind, t.kind === "text") {
6309
- d.value = t.text, f.value = t.font ?? "Calibri", p.value = A(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100);
6310
- return;
6311
- }
6312
- 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;
6313
- }
6314
- }, { immediate: !0 });
6315
- function w() {
6316
- if (C.value) {
6317
- if (u.value === "none") {
6318
- l("apply", void 0), l("close");
6319
- return;
6320
- }
6321
- if (u.value === "text") {
6322
- l("apply", {
6323
- kind: "text",
6324
- text: d.value.trim(),
6325
- ...f.value.trim() ? { font: f.value.trim() } : {},
6326
- color: D(p.value),
6327
- diagonal: m.value,
6328
- opacity: T(h.value) / 100
6329
- }), l("close");
6330
- return;
6331
- }
6332
- l("apply", {
6333
- kind: "picture",
6334
- imageRId: g.value.trim(),
6335
- ..._.value.trim() ? { imageTarget: _.value.trim() } : {},
6336
- ..._.value.trim() ? { imageTargetExternal: v.value } : {},
6337
- scale: E(b.value) / 100,
6338
- washout: x.value
6339
- }), l("close");
6340
- }
6341
- }
6342
- function T(e) {
6343
- return Math.min(100, Math.max(0, e));
6344
- }
6345
- function E(e) {
6346
- return Math.min(300, Math.max(1, e));
6347
- }
6348
- function D(e) {
6349
- return e.startsWith("#") ? e.slice(1) : e;
6350
- }
6351
- function A(e) {
6352
- return !e || e === "auto" ? mc : e.startsWith("#") ? e : `#${e}`;
6353
- }
6354
- return (t, r) => (y(), i(O(n), {
6355
- open: e.isOpen,
6356
- "aria-label": "Watermark",
6357
- style: {
6358
- minWidth: "360px",
6359
- maxWidth: "520px",
6360
- width: "100%"
6361
- },
6362
- onClose: r[12] ||= (e) => t.$emit("close")
6363
- }, {
6364
- default: P(() => [
6365
- r[25] ||= s("div", { class: "dialog__header" }, "Watermark", -1),
6366
- s("div", Qs, [
6367
- s("label", $s, [r[14] ||= s("span", { class: "field__label" }, "Type", -1), F(s("select", {
6368
- "onUpdate:modelValue": r[0] ||= (e) => u.value = e,
6369
- class: "field__input"
6370
- }, [...r[13] ||= [
6371
- s("option", { value: "text" }, "Text watermark", -1),
6372
- s("option", { value: "picture" }, "Picture watermark", -1),
6373
- s("option", { value: "none" }, "No watermark", -1)
6374
- ]], 512), [[j, u.value]])]),
6375
- u.value === "text" ? (y(), o("div", ec, [
6376
- s("label", tc, [r[15] ||= s("span", { class: "field__label" }, "Text", -1), F(s("input", {
6377
- "onUpdate:modelValue": r[1] ||= (e) => d.value = e,
6378
- class: "field__input"
6379
- }, null, 512), [[M, d.value]])]),
6380
- s("label", nc, [r[16] ||= s("span", { class: "field__label" }, "Font", -1), F(s("input", {
6381
- "onUpdate:modelValue": r[2] ||= (e) => f.value = e,
6382
- class: "field__input"
6383
- }, null, 512), [[M, f.value]])]),
6384
- s("label", rc, [r[17] ||= s("span", { class: "field__label" }, "Color", -1), F(s("input", {
6385
- "onUpdate:modelValue": r[3] ||= (e) => p.value = e,
6386
- class: "field__input field__input--color",
6387
- type: "color"
6388
- }, null, 512), [[M, p.value]])]),
6389
- s("label", ic, [r[18] ||= s("span", { class: "field__label" }, "Opacity", -1), F(s("input", {
6390
- "onUpdate:modelValue": r[4] ||= (e) => h.value = e,
6391
- class: "field__input",
6392
- max: "100",
6393
- min: "0",
6394
- type: "number"
6395
- }, null, 512), [[
6396
- M,
6397
- h.value,
6398
- void 0,
6399
- { number: !0 }
6400
- ]])]),
6401
- s("label", ac, [F(s("input", {
6402
- "onUpdate:modelValue": r[5] ||= (e) => m.value = e,
6403
- type: "checkbox"
6404
- }, null, 512), [[k, m.value]]), r[19] ||= s("span", null, "Diagonal", -1)])
6405
- ])) : a("", !0),
6406
- u.value === "picture" ? (y(), o("div", oc, [
6407
- s("label", sc, [r[20] ||= s("span", { class: "field__label" }, "Header image relationship id", -1), F(s("input", {
6408
- "onUpdate:modelValue": r[6] ||= (e) => g.value = e,
6409
- class: "field__input",
6410
- placeholder: "rId12"
6411
- }, null, 512), [[M, g.value]])]),
6412
- s("label", cc, [r[21] ||= s("span", { class: "field__label" }, "Image target", -1), F(s("input", {
6413
- "onUpdate:modelValue": r[7] ||= (e) => _.value = e,
6414
- class: "field__input",
6415
- placeholder: "word/media/image1.png"
6416
- }, null, 512), [[M, _.value]])]),
6417
- s("label", lc, [r[22] ||= s("span", { class: "field__label" }, "Scale", -1), F(s("input", {
6418
- "onUpdate:modelValue": r[8] ||= (e) => b.value = e,
6419
- class: "field__input",
6420
- max: "300",
6421
- min: "1",
6422
- type: "number"
6423
- }, null, 512), [[
6424
- M,
6425
- b.value,
6426
- void 0,
6427
- { number: !0 }
6428
- ]])]),
6429
- s("label", uc, [F(s("input", {
6430
- "onUpdate:modelValue": r[9] ||= (e) => x.value = e,
6431
- type: "checkbox"
6432
- }, null, 512), [[k, x.value]]), r[23] ||= s("span", null, "Washout", -1)]),
6433
- s("label", dc, [F(s("input", {
6434
- "onUpdate:modelValue": r[10] ||= (e) => v.value = e,
6435
- type: "checkbox"
6436
- }, null, 512), [[k, v.value]]), r[24] ||= s("span", null, "Target is an external URL", -1)])
6437
- ])) : a("", !0)
6438
- ]),
6439
- s("div", fc, [s("button", {
6440
- class: "dialog__btn",
6441
- onClick: r[11] ||= (e) => t.$emit("close")
6442
- }, "Cancel"), s("button", {
6443
- class: "dialog__btn dialog__btn--primary",
6444
- disabled: !C.value,
6445
- onClick: w
6446
- }, " Apply ", 8, pc)])
6458
+ }, " Split ", 8, hc)])
6447
6459
  ]),
6448
6460
  _: 1
6449
6461
  }, 8, ["open"]));
6450
6462
  }
6451
- }), [["__scopeId", "data-v-5ce5fa13"]]);
6463
+ }), [["__scopeId", "data-v-c4c6621c"]]);
6452
6464
  //#endregion
6453
- export { qt as A, xn as C, pn as D, hn as E, V as F, W as M, ue as N, Ut as O, H as P, An as S, _n as T, Vn as _, hs as a, Ln as b, bo as c, vi as d, $r as f, Hn as g, Rn as h, Cs as i, Z as j, Jt as k, Ea as l, Xn as m, Zs as n, Wo as o, Cr as p, Ns as r, jo as s, hc as t, Gi as u, Bn as v, yn as w, Nn as x, Q as y };
6465
+ export { zt as A, Sn as C, mn as D, gn as E, V as F, Ut as M, Z as N, Yt as O, H as P, jn as S, vn as T, Hn as _, gs as a, Rn as b, Aa as c, yi as d, ei as f, Un as g, zn as h, ks as i, Wt as j, qt as k, ua as l, Zn as m, cc as n, as as o, wr as p, ec as r, fo as s, vc as t, Ki as u, Vn as v, bn as w, Pn as x, Q as y };