@stll/folio-vue 0.31.0 → 0.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/dist/{SplitCellDialog-DULmbU_P.js → SplitCellDialog-BczVYfpm.js} +1183 -1138
- package/dist/SplitCellDialog-CrLHwVLc.cjs +15 -0
- package/dist/{StylePicker-CD28Jh8D.cjs → StylePicker-C0iEQnw6.cjs} +2 -2
- package/dist/{StylePicker-D8VHvoMT.js → StylePicker-DmTN56Yg.js} +135 -135
- package/dist/composables/useCommentLifecycle.d.ts +1 -6
- package/dist/composables/useDocxEditor.d.ts +3 -3
- package/dist/composables/useDocxEditorRefApi.d.ts +1 -1
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +1 -1
- package/dist/folio-vue.css +1 -1
- package/dist/i18n/LocaleLoading.d.ts +3 -0
- package/dist/i18n/index.d.ts +18 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1546 -1680
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +2 -2
- package/dist/{useZoom-q9Ae53FM.js → useZoom-1kmdkmJ4.js} +379 -392
- package/dist/useZoom-Bj5B9uT1.cjs +1 -0
- package/package.json +3 -3
- package/dist/SplitCellDialog-Bc2TjxMb.cjs +0 -15
- package/dist/useZoom-U1MxlyKU.cjs +0 -1
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, isRef as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _,
|
|
2
|
-
import { isAllowedExternalWatermarkImageUrl as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, isRef as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, onServerPrefetch as v, openBlock as y, provide as b, reactive as x, ref as S, renderList as C, renderSlot as w, shallowRef as T, toDisplayString as E, toRef as D, toValue as O, unref as k, vModelCheckbox as A, vModelRadio as j, vModelSelect as M, vModelText as N, watch as P, withCtx as F, withDirectives as I, withKeys as L, withModifiers as R } from "vue";
|
|
2
|
+
import { isAllowedExternalWatermarkImageUrl as z } from "@stll/folio-core/watermark";
|
|
3
|
+
import { getLoadedFolioMessages as ee, loadFolioMessages as B } from "@stll/folio-core/i18n/loadMessages";
|
|
4
|
+
import { messages as te } from "@stll/folio-core/i18n/messages/en";
|
|
5
|
+
import { generateThemeTintShadeMatrix as ne, resolveColor as re, resolveColorToHex as ie, resolveHighlightColor as ae } from "@stll/folio-core/utils/colorResolver";
|
|
6
|
+
import { sliceText as V } from "@stll/folio-core/utils/sliceText";
|
|
7
|
+
import { SYMBOL_CATEGORIES as H, filterSymbols as oe } from "@stll/folio-core/symbols";
|
|
8
|
+
import { TWIPS_PER_INCH as se } from "@stll/folio-core/utils/units";
|
|
9
|
+
import { TABLE_PROPERTY_JUSTIFICATIONS as ce, toTablePropertyJustification as U } from "@stll/folio-core/utils/tableOperations";
|
|
10
|
+
import { cssBorderStyle as le } from "@stll/folio-core/utils/borderCss";
|
|
10
11
|
// \0rolldown/runtime.js
|
|
11
|
-
var
|
|
12
|
+
var ue = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports);
|
|
12
13
|
// ../../../../../.bun/install/cache/links/@formatjs+fast-memoize@3.1.7-665cb7fbcabcfafa/node_modules/@formatjs/fast-memoize/index.js
|
|
13
|
-
function
|
|
14
|
-
let n = t && t.cache ? t.cache :
|
|
15
|
-
return (t && t.strategy ? t.strategy :
|
|
14
|
+
function de(e, t) {
|
|
15
|
+
let n = t && t.cache ? t.cache : ye, r = t && t.serializer ? t.serializer : _e;
|
|
16
|
+
return (t && t.strategy ? t.strategy : me)(e, {
|
|
16
17
|
cache: n,
|
|
17
18
|
serializer: r
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function W(e) {
|
|
21
22
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
let i =
|
|
24
|
+
function fe(e, t, n, r) {
|
|
25
|
+
let i = W(r) ? r : n(r), a = t.get(i);
|
|
25
26
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
+
function pe(e, t, n) {
|
|
28
29
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
29
30
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function G(e, t, n, r, i) {
|
|
32
33
|
return n.bind(t, e, r, i);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
let n = e.length === 1 ?
|
|
36
|
-
return
|
|
35
|
+
function me(e, t) {
|
|
36
|
+
let n = e.length === 1 ? fe : pe;
|
|
37
|
+
return G(e, this, n, t.cache.create(), t.serializer);
|
|
37
38
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
39
|
+
function he(e, t) {
|
|
40
|
+
return G(e, this, pe, t.cache.create(), t.serializer);
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
42
|
+
function ge(e, t) {
|
|
43
|
+
return G(e, this, fe, t.cache.create(), t.serializer);
|
|
43
44
|
}
|
|
44
|
-
var
|
|
45
|
+
var _e = function() {
|
|
45
46
|
return JSON.stringify(arguments);
|
|
46
|
-
},
|
|
47
|
+
}, ve = class {
|
|
47
48
|
constructor() {
|
|
48
49
|
this.cache = Object.create(null);
|
|
49
50
|
}
|
|
@@ -53,20 +54,20 @@ var K = function() {
|
|
|
53
54
|
set(e, t) {
|
|
54
55
|
this.cache[e] = t;
|
|
55
56
|
}
|
|
56
|
-
},
|
|
57
|
-
return new
|
|
58
|
-
} },
|
|
59
|
-
variadic:
|
|
60
|
-
monadic:
|
|
61
|
-
},
|
|
57
|
+
}, ye = { create: function() {
|
|
58
|
+
return new ve();
|
|
59
|
+
} }, be = {
|
|
60
|
+
variadic: he,
|
|
61
|
+
monadic: ge
|
|
62
|
+
}, K = class extends Error {
|
|
62
63
|
constructor(e, t) {
|
|
63
64
|
let n = e;
|
|
64
65
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
65
66
|
}
|
|
66
|
-
},
|
|
67
|
+
}, q = function(e) {
|
|
67
68
|
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;
|
|
68
|
-
}(
|
|
69
|
-
function
|
|
69
|
+
}(q || {});
|
|
70
|
+
function xe() {
|
|
70
71
|
return {
|
|
71
72
|
dateTime: {},
|
|
72
73
|
number: {},
|
|
@@ -77,33 +78,33 @@ function ge() {
|
|
|
77
78
|
displayNames: {}
|
|
78
79
|
};
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
81
|
+
function Se(e, t) {
|
|
82
|
+
return de(e, {
|
|
82
83
|
cache: (n = t, { create: () => ({
|
|
83
84
|
get: (e) => n[e],
|
|
84
85
|
set(e, t) {
|
|
85
86
|
n[e] = t;
|
|
86
87
|
}
|
|
87
88
|
}) }),
|
|
88
|
-
strategy:
|
|
89
|
+
strategy: be.variadic
|
|
89
90
|
});
|
|
90
91
|
var n;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
93
|
+
function J(e, t) {
|
|
94
|
+
return Se(((...t) => new e(...t)), t);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function Ce(e) {
|
|
96
97
|
return {
|
|
97
|
-
getDateTimeFormat:
|
|
98
|
-
getNumberFormat:
|
|
99
|
-
getPluralRules:
|
|
100
|
-
getRelativeTimeFormat:
|
|
101
|
-
getListFormat:
|
|
102
|
-
getDisplayNames:
|
|
98
|
+
getDateTimeFormat: J(Intl.DateTimeFormat, e.dateTime),
|
|
99
|
+
getNumberFormat: J(Intl.NumberFormat, e.number),
|
|
100
|
+
getPluralRules: J(Intl.PluralRules, e.pluralRules),
|
|
101
|
+
getRelativeTimeFormat: J(Intl.RelativeTimeFormat, e.relativeTime),
|
|
102
|
+
getListFormat: J(Intl.ListFormat, e.list),
|
|
103
|
+
getDisplayNames: J(Intl.DisplayNames, e.displayNames)
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
106
|
// ../../../../../.bun/install/cache/links/react@19.3.1-3b0a5b588981c557/node_modules/react/cjs/react.production.js
|
|
106
|
-
var
|
|
107
|
+
var we = /* @__PURE__ */ ue(((e) => {
|
|
107
108
|
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.for("react.view_transition"), m = Symbol.iterator;
|
|
108
109
|
function h(e) {
|
|
109
110
|
return typeof e != "object" || !e ? null : (e = m && e[m] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -398,7 +399,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
398
399
|
}, e.useTransition = function() {
|
|
399
400
|
return T.H.useTransition();
|
|
400
401
|
}, e.version = "19.3.1";
|
|
401
|
-
})),
|
|
402
|
+
})), Te = /* @__PURE__ */ ue(((e, t) => {
|
|
402
403
|
process.env.NODE_ENV !== "production" && (function() {
|
|
403
404
|
function n(e, t) {
|
|
404
405
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -406,19 +407,19 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
406
407
|
} });
|
|
407
408
|
}
|
|
408
409
|
function r(e) {
|
|
409
|
-
return typeof e != "object" || !e ? null : (e =
|
|
410
|
+
return typeof e != "object" || !e ? null : (e = ce && e[ce] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
410
411
|
}
|
|
411
412
|
function i(e, t) {
|
|
412
413
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
413
414
|
var n = e + "." + t;
|
|
414
|
-
|
|
415
|
+
U[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), U[n] = !0);
|
|
415
416
|
}
|
|
416
417
|
function a(e, t, n) {
|
|
417
|
-
this.props = e, this.context = t, this.refs =
|
|
418
|
+
this.props = e, this.context = t, this.refs = de, this.updater = n || le;
|
|
418
419
|
}
|
|
419
420
|
function o() {}
|
|
420
421
|
function s(e, t, n) {
|
|
421
|
-
this.props = e, this.context = t, this.refs =
|
|
422
|
+
this.props = e, this.context = t, this.refs = de, this.updater = n || le;
|
|
422
423
|
}
|
|
423
424
|
function c() {}
|
|
424
425
|
function l(e) {
|
|
@@ -439,26 +440,26 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
439
440
|
}
|
|
440
441
|
function d(e) {
|
|
441
442
|
if (e == null) return null;
|
|
442
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
443
|
+
if (typeof e == "function") return e.$$typeof === pe ? null : e.displayName || e.name || null;
|
|
443
444
|
if (typeof e == "string") return e;
|
|
444
445
|
switch (e) {
|
|
445
446
|
case z: return "Fragment";
|
|
446
|
-
case
|
|
447
|
+
case B: return "Profiler";
|
|
447
448
|
case ee: return "StrictMode";
|
|
448
|
-
case
|
|
449
|
-
case
|
|
450
|
-
case
|
|
451
|
-
case
|
|
449
|
+
case ie: return "Suspense";
|
|
450
|
+
case ae: return "SuspenseList";
|
|
451
|
+
case oe: return "Activity";
|
|
452
|
+
case se: return "ViewTransition";
|
|
452
453
|
}
|
|
453
454
|
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) {
|
|
454
455
|
case R: return "Portal";
|
|
455
|
-
case
|
|
456
|
-
case
|
|
457
|
-
case
|
|
456
|
+
case ne: return e.displayName || "Context";
|
|
457
|
+
case te: return (e._context.displayName || "Context") + ".Consumer";
|
|
458
|
+
case re:
|
|
458
459
|
var t = e.render;
|
|
459
460
|
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
460
|
-
case
|
|
461
|
-
case
|
|
461
|
+
case V: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
462
|
+
case H:
|
|
462
463
|
t = e._payload, e = e._init;
|
|
463
464
|
try {
|
|
464
465
|
return d(e(t));
|
|
@@ -468,7 +469,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
468
469
|
}
|
|
469
470
|
function f(e) {
|
|
470
471
|
if (e === z) return "<>";
|
|
471
|
-
if (typeof e == "object" && e && e.$$typeof ===
|
|
472
|
+
if (typeof e == "object" && e && e.$$typeof === H) return "<...>";
|
|
472
473
|
try {
|
|
473
474
|
var t = d(e);
|
|
474
475
|
return t ? "<" + t + ">" : "<...>";
|
|
@@ -477,14 +478,14 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
function p() {
|
|
480
|
-
var e =
|
|
481
|
+
var e = G.A;
|
|
481
482
|
return e === null ? null : e.getOwner();
|
|
482
483
|
}
|
|
483
484
|
function m() {
|
|
484
485
|
return Error("react-stack-top-frame");
|
|
485
486
|
}
|
|
486
487
|
function h(e) {
|
|
487
|
-
if (
|
|
488
|
+
if (me.call(e, "key")) {
|
|
488
489
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
489
490
|
if (t && t.isReactWarning) return !1;
|
|
490
491
|
}
|
|
@@ -492,7 +493,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
492
493
|
}
|
|
493
494
|
function g(e, t) {
|
|
494
495
|
function n() {
|
|
495
|
-
|
|
496
|
+
ge || (ge = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
496
497
|
}
|
|
497
498
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
498
499
|
get: n,
|
|
@@ -501,7 +502,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
501
502
|
}
|
|
502
503
|
function _() {
|
|
503
504
|
var e = d(this.type);
|
|
504
|
-
return
|
|
505
|
+
return ve[e] || (ve[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
505
506
|
}
|
|
506
507
|
function v(e, t, n, r, i, a) {
|
|
507
508
|
var o = n.ref;
|
|
@@ -543,7 +544,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
543
544
|
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
544
545
|
}
|
|
545
546
|
function b(e) {
|
|
546
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof ===
|
|
547
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === H && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
547
548
|
}
|
|
548
549
|
function x(e) {
|
|
549
550
|
return typeof e == "object" && !!e && e.$$typeof === L;
|
|
@@ -591,18 +592,18 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
591
592
|
case R:
|
|
592
593
|
s = !0;
|
|
593
594
|
break;
|
|
594
|
-
case
|
|
595
|
+
case H: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
if (s) {
|
|
598
599
|
s = e, a = a(s);
|
|
599
600
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
600
|
-
return
|
|
601
|
+
return fe(a) ? (n = "", c != null && (n = c.replace(q, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
601
602
|
return e;
|
|
602
|
-
})) : 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(
|
|
603
|
+
})) : 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(q, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
603
604
|
}
|
|
604
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
605
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
605
|
+
if (s = 0, c = i === "" ? "." : i + ":", fe(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
606
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (K || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), K = !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);
|
|
606
607
|
else if (o === "object") {
|
|
607
608
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
608
609
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -650,43 +651,43 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
650
651
|
throw e._result;
|
|
651
652
|
}
|
|
652
653
|
function O() {
|
|
653
|
-
var e =
|
|
654
|
+
var e = G.H;
|
|
654
655
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
655
656
|
}
|
|
656
657
|
function k() {
|
|
657
|
-
|
|
658
|
+
G.asyncTransitions--;
|
|
658
659
|
}
|
|
659
660
|
function A(e) {
|
|
660
|
-
var t =
|
|
661
|
-
n.types = t === null ? null : t.types, n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
661
|
+
var t = G.T, n = {};
|
|
662
|
+
n.types = t === null ? null : t.types, n._updatedFibers = /* @__PURE__ */ new Set(), G.T = n;
|
|
662
663
|
try {
|
|
663
|
-
var r = e(), i =
|
|
664
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
664
|
+
var r = e(), i = G.S;
|
|
665
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (G.asyncTransitions++, r.then(k, k), r.then(c, xe));
|
|
665
666
|
} catch (e) {
|
|
666
|
-
|
|
667
|
+
xe(e);
|
|
667
668
|
} finally {
|
|
668
|
-
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),
|
|
669
|
+
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), G.T = t;
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
672
|
function j(e) {
|
|
672
|
-
var t =
|
|
673
|
+
var t = G.T;
|
|
673
674
|
if (t !== null) {
|
|
674
675
|
var n = t.types;
|
|
675
676
|
n === null ? t.types = [e] : n.indexOf(e) === -1 && n.push(e);
|
|
676
|
-
} else
|
|
677
|
+
} else G.asyncTransitions === 0 && console.error("addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."), A(j.bind(null, e));
|
|
677
678
|
}
|
|
678
679
|
function M(e) {
|
|
679
|
-
if (
|
|
680
|
+
if (J === null) try {
|
|
680
681
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
681
|
-
|
|
682
|
+
J = (t && t[n]).call(t, "timers").setImmediate;
|
|
682
683
|
} catch {
|
|
683
|
-
|
|
684
|
-
!1 ===
|
|
684
|
+
J = function(e) {
|
|
685
|
+
!1 === Se && (Se = !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."));
|
|
685
686
|
var t = new MessageChannel();
|
|
686
687
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
687
688
|
};
|
|
688
689
|
}
|
|
689
|
-
return
|
|
690
|
+
return J(e);
|
|
690
691
|
}
|
|
691
692
|
function N(e) {
|
|
692
693
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
@@ -695,7 +696,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
695
696
|
t !== Ce - 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. "), Ce = t;
|
|
696
697
|
}
|
|
697
698
|
function F(e, t, n) {
|
|
698
|
-
var r =
|
|
699
|
+
var r = G.actQueue;
|
|
699
700
|
if (r !== null) {
|
|
700
701
|
if (r.length !== 0) try {
|
|
701
702
|
I(r), M(function() {
|
|
@@ -703,11 +704,11 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
703
704
|
});
|
|
704
705
|
return;
|
|
705
706
|
} catch (e) {
|
|
706
|
-
|
|
707
|
+
G.thrownErrors.push(e);
|
|
707
708
|
}
|
|
708
|
-
else
|
|
709
|
+
else G.actQueue = null;
|
|
709
710
|
}
|
|
710
|
-
0 <
|
|
711
|
+
0 < G.thrownErrors.length ? (r = N(G.thrownErrors), G.thrownErrors.length = 0, n(r)) : t(e);
|
|
711
712
|
}
|
|
712
713
|
function I(e) {
|
|
713
714
|
if (!Te) {
|
|
@@ -717,10 +718,10 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
717
718
|
for (; t < e.length; t++) {
|
|
718
719
|
var n = e[t];
|
|
719
720
|
do {
|
|
720
|
-
|
|
721
|
+
G.didUsePromise = !1;
|
|
721
722
|
var r = n(!1);
|
|
722
723
|
if (r !== null) {
|
|
723
|
-
if (
|
|
724
|
+
if (G.didUsePromise) {
|
|
724
725
|
e[t] = n, e.splice(0, t);
|
|
725
726
|
return;
|
|
726
727
|
}
|
|
@@ -730,14 +731,14 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
730
731
|
}
|
|
731
732
|
e.length = 0;
|
|
732
733
|
} catch (n) {
|
|
733
|
-
e.splice(0, t + 1),
|
|
734
|
+
e.splice(0, t + 1), G.thrownErrors.push(n);
|
|
734
735
|
} finally {
|
|
735
736
|
Te = !1;
|
|
736
737
|
}
|
|
737
738
|
}
|
|
738
739
|
}
|
|
739
740
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
740
|
-
var L = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), z = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"),
|
|
741
|
+
var L = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), z = Symbol.for("react.fragment"), ee = Symbol.for("react.strict_mode"), B = 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"), V = Symbol.for("react.memo"), H = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), se = Symbol.for("react.view_transition"), ce = Symbol.iterator, U = {}, le = {
|
|
741
742
|
isMounted: function() {
|
|
742
743
|
return !1;
|
|
743
744
|
},
|
|
@@ -750,20 +751,20 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
750
751
|
enqueueSetState: function(e) {
|
|
751
752
|
i(e, "setState");
|
|
752
753
|
}
|
|
753
|
-
},
|
|
754
|
-
Object.freeze(
|
|
754
|
+
}, ue = Object.assign, de = {};
|
|
755
|
+
Object.freeze(de), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
755
756
|
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.");
|
|
756
757
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
757
758
|
}, a.prototype.forceUpdate = function(e) {
|
|
758
759
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
759
760
|
};
|
|
760
|
-
var
|
|
761
|
+
var W = {
|
|
761
762
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
762
763
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
763
764
|
};
|
|
764
|
-
for (De in
|
|
765
|
-
o.prototype = a.prototype,
|
|
766
|
-
var
|
|
765
|
+
for (De in W) W.hasOwnProperty(De) && n(De, W[De]);
|
|
766
|
+
o.prototype = a.prototype, W = s.prototype = new o(), W.constructor = s, ue(W, a.prototype), W.isPureReactComponent = !0;
|
|
767
|
+
var fe = Array.isArray, pe = Symbol.for("react.client.reference"), G = {
|
|
767
768
|
H: null,
|
|
768
769
|
A: null,
|
|
769
770
|
T: null,
|
|
@@ -776,13 +777,13 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
776
777
|
thrownErrors: [],
|
|
777
778
|
getCurrentStack: null,
|
|
778
779
|
recentlyCreatedOwnerStacks: 0
|
|
779
|
-
},
|
|
780
|
+
}, me = Object.prototype.hasOwnProperty, he = console.createTask ? console.createTask : function() {
|
|
780
781
|
return null;
|
|
781
782
|
};
|
|
782
|
-
|
|
783
|
+
W = { react_stack_bottom_frame: function(e) {
|
|
783
784
|
return e();
|
|
784
785
|
} };
|
|
785
|
-
var
|
|
786
|
+
var ge, _e, ve = {}, ye = W.react_stack_bottom_frame.bind(W, m)(), be = he(f(m)), K = !1, q = /\/+/g, xe = typeof reportError == "function" ? reportError : function(e) {
|
|
786
787
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
787
788
|
var t = new window.ErrorEvent("error", {
|
|
788
789
|
bubbles: !0,
|
|
@@ -796,12 +797,12 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
796
797
|
return;
|
|
797
798
|
}
|
|
798
799
|
console.error(e);
|
|
799
|
-
},
|
|
800
|
+
}, Se = !1, J = null, Ce = 0, we = !1, Te = !1, Ee = typeof queueMicrotask == "function" ? function(e) {
|
|
800
801
|
queueMicrotask(function() {
|
|
801
802
|
return queueMicrotask(e);
|
|
802
803
|
});
|
|
803
804
|
} : M;
|
|
804
|
-
|
|
805
|
+
W = Object.freeze({
|
|
805
806
|
__proto__: null,
|
|
806
807
|
c: function(e) {
|
|
807
808
|
return O().useMemoCache(e);
|
|
@@ -830,16 +831,16 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
830
831
|
return e;
|
|
831
832
|
}
|
|
832
833
|
};
|
|
833
|
-
e.Activity =
|
|
834
|
-
var t =
|
|
834
|
+
e.Activity = oe, e.Children = De, e.Component = a, e.Fragment = z, e.Profiler = B, e.PureComponent = s, e.StrictMode = ee, e.Suspense = ie, e.ViewTransition = se, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = G, e.__COMPILER_RUNTIME = W, e.act = function(e) {
|
|
835
|
+
var t = G.actQueue, n = Ce;
|
|
835
836
|
Ce++;
|
|
836
|
-
var r =
|
|
837
|
+
var r = G.actQueue = t === null ? [] : t, i = !1;
|
|
837
838
|
try {
|
|
838
839
|
var a = e();
|
|
839
840
|
} catch (e) {
|
|
840
|
-
|
|
841
|
+
G.thrownErrors.push(e);
|
|
841
842
|
}
|
|
842
|
-
if (0 <
|
|
843
|
+
if (0 < G.thrownErrors.length) throw P(t, n), e = N(G.thrownErrors), G.thrownErrors.length = 0, e;
|
|
843
844
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
844
845
|
var o = a;
|
|
845
846
|
return Ee(function() {
|
|
@@ -852,24 +853,24 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
852
853
|
return F(i, e, a);
|
|
853
854
|
});
|
|
854
855
|
} catch (e) {
|
|
855
|
-
|
|
856
|
+
G.thrownErrors.push(e);
|
|
856
857
|
}
|
|
857
|
-
if (0 <
|
|
858
|
-
var o = N(
|
|
859
|
-
|
|
858
|
+
if (0 < G.thrownErrors.length) {
|
|
859
|
+
var o = N(G.thrownErrors);
|
|
860
|
+
G.thrownErrors.length = 0, a(o);
|
|
860
861
|
}
|
|
861
862
|
} else e(i);
|
|
862
863
|
}, function(e) {
|
|
863
|
-
P(t, n), 0 <
|
|
864
|
+
P(t, n), 0 < G.thrownErrors.length && (e = N(G.thrownErrors), G.thrownErrors.length = 0), a(e);
|
|
864
865
|
});
|
|
865
866
|
} };
|
|
866
867
|
}
|
|
867
868
|
var s = a;
|
|
868
869
|
if (P(t, n), n === 0 && (I(r), r.length !== 0 && Ee(function() {
|
|
869
870
|
i || we || (we = !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(() => ...)"));
|
|
870
|
-
}),
|
|
871
|
+
}), G.actQueue = null), 0 < G.thrownErrors.length) throw e = N(G.thrownErrors), G.thrownErrors.length = 0, e;
|
|
871
872
|
return { then: function(e, t) {
|
|
872
|
-
i = !0, n === 0 ? (
|
|
873
|
+
i = !0, n === 0 ? (G.actQueue = r, M(function() {
|
|
873
874
|
return F(s, e, t);
|
|
874
875
|
})) : e(s);
|
|
875
876
|
} };
|
|
@@ -880,21 +881,21 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
880
881
|
}, e.cacheSignal = function() {
|
|
881
882
|
return null;
|
|
882
883
|
}, e.captureOwnerStack = function() {
|
|
883
|
-
var e =
|
|
884
|
+
var e = G.getCurrentStack;
|
|
884
885
|
return e === null ? null : e();
|
|
885
886
|
}, e.cloneElement = function(e, t, n) {
|
|
886
887
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
887
|
-
var r =
|
|
888
|
+
var r = ue({}, e.props), i = e.key, a = e._owner;
|
|
888
889
|
if (t != null) {
|
|
889
890
|
var o;
|
|
890
891
|
a: {
|
|
891
|
-
if (
|
|
892
|
+
if (me.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
892
893
|
o = !1;
|
|
893
894
|
break a;
|
|
894
895
|
}
|
|
895
896
|
o = t.ref !== void 0;
|
|
896
897
|
}
|
|
897
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
898
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !me.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
898
899
|
}
|
|
899
900
|
var s = arguments.length - 2;
|
|
900
901
|
if (s === 1) r.children = n;
|
|
@@ -907,14 +908,14 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
907
908
|
return r;
|
|
908
909
|
}, e.createContext = function(e) {
|
|
909
910
|
return e = {
|
|
910
|
-
$$typeof:
|
|
911
|
+
$$typeof: ne,
|
|
911
912
|
_currentValue: e,
|
|
912
913
|
_currentValue2: e,
|
|
913
914
|
_threadCount: 0,
|
|
914
915
|
Provider: null,
|
|
915
916
|
Consumer: null
|
|
916
917
|
}, e.Provider = e, e.Consumer = {
|
|
917
|
-
$$typeof:
|
|
918
|
+
$$typeof: te,
|
|
918
919
|
_context: e
|
|
919
920
|
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
920
921
|
}, e.createElement = function(e, t, n) {
|
|
@@ -922,7 +923,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
922
923
|
var i;
|
|
923
924
|
r = {};
|
|
924
925
|
var a = null;
|
|
925
|
-
if (t != null) for (i in
|
|
926
|
+
if (t != null) for (i in _e || !("__self" in t) || "key" in t || (_e = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), a = "" + t.key), t) me.call(t, i) && i !== "key" && i !== "__self" && i !== "__source" && (r[i] = t[i]);
|
|
926
927
|
var o = arguments.length - 2;
|
|
927
928
|
if (o === 1) r.children = n;
|
|
928
929
|
else if (1 < o) {
|
|
@@ -930,14 +931,14 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
930
931
|
Object.freeze && Object.freeze(s), r.children = s;
|
|
931
932
|
}
|
|
932
933
|
if (e && e.defaultProps) for (i in o = e.defaultProps, o) r[i] === void 0 && (r[i] = o[i]);
|
|
933
|
-
return a && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), (i = 1e4 >
|
|
934
|
+
return a && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), (i = 1e4 > G.recentlyCreatedOwnerStacks++) ? (s = Error.stackTraceLimit, Error.stackTraceLimit = 10, o = Error("react-stack-top-frame"), Error.stackTraceLimit = s) : o = ye, v(e, a, r, p(), o, i ? he(f(e)) : be);
|
|
934
935
|
}, e.createRef = function() {
|
|
935
936
|
var e = { current: null };
|
|
936
937
|
return Object.seal(e), e;
|
|
937
938
|
}, e.forwardRef = function(e) {
|
|
938
|
-
e != null && e.$$typeof ===
|
|
939
|
+
e != null && e.$$typeof === V ? 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?");
|
|
939
940
|
var t = {
|
|
940
|
-
$$typeof:
|
|
941
|
+
$$typeof: re,
|
|
941
942
|
render: e
|
|
942
943
|
}, n;
|
|
943
944
|
return Object.defineProperty(t, "displayName", {
|
|
@@ -956,7 +957,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
956
957
|
_result: e
|
|
957
958
|
};
|
|
958
959
|
var t = {
|
|
959
|
-
$$typeof:
|
|
960
|
+
$$typeof: H,
|
|
960
961
|
_payload: e,
|
|
961
962
|
_init: D
|
|
962
963
|
}, n = {
|
|
@@ -971,7 +972,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
971
972
|
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
972
973
|
}, e.memo = function(e, t) {
|
|
973
974
|
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
974
|
-
$$typeof:
|
|
975
|
+
$$typeof: V,
|
|
975
976
|
type: e,
|
|
976
977
|
compare: t === void 0 ? null : t
|
|
977
978
|
};
|
|
@@ -996,7 +997,7 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
996
997
|
return O().useCallback(e, t);
|
|
997
998
|
}, e.useContext = function(e) {
|
|
998
999
|
var t = O();
|
|
999
|
-
return e.$$typeof ===
|
|
1000
|
+
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);
|
|
1000
1001
|
}, e.useDebugValue = function(e, t) {
|
|
1001
1002
|
return O().useDebugValue(e, t);
|
|
1002
1003
|
}, e.useDeferredValue = function(e, t) {
|
|
@@ -1029,12 +1030,12 @@ var be = /* @__PURE__ */ oe(((e) => {
|
|
|
1029
1030
|
return O().useTransition();
|
|
1030
1031
|
}, e.version = "19.3.1", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1031
1032
|
})();
|
|
1032
|
-
})),
|
|
1033
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
1034
|
-
})))(),
|
|
1035
|
-
function
|
|
1033
|
+
})), Ee = (/* @__PURE__ */ ue(((e, t) => {
|
|
1034
|
+
t.exports = process.env.NODE_ENV === "production" ? we() : Te();
|
|
1035
|
+
})))(), De = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1036
|
+
function Oe(e) {
|
|
1036
1037
|
let t = {};
|
|
1037
|
-
return e.replace(
|
|
1038
|
+
return e.replace(De, (e) => {
|
|
1038
1039
|
let n = e.length;
|
|
1039
1040
|
switch (e[0]) {
|
|
1040
1041
|
case "G":
|
|
@@ -1129,10 +1130,10 @@ function we(e) {
|
|
|
1129
1130
|
return "";
|
|
1130
1131
|
}), t;
|
|
1131
1132
|
}
|
|
1132
|
-
var
|
|
1133
|
-
function
|
|
1133
|
+
var ke = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1134
|
+
function Ae(e) {
|
|
1134
1135
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1135
|
-
let t = e.split(
|
|
1136
|
+
let t = e.split(ke).filter((e) => e.length > 0), n = [];
|
|
1136
1137
|
for (let e of t) {
|
|
1137
1138
|
let t = e.split("/");
|
|
1138
1139
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1145,17 +1146,17 @@ function Ee(e) {
|
|
|
1145
1146
|
}
|
|
1146
1147
|
return n;
|
|
1147
1148
|
}
|
|
1148
|
-
function
|
|
1149
|
+
function je(e) {
|
|
1149
1150
|
return e.replace(/^(.*?)-/, "");
|
|
1150
1151
|
}
|
|
1151
|
-
var
|
|
1152
|
-
function
|
|
1152
|
+
var Me = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ne = /^(@+)?(\+|#+)?[rs]?$/g, Pe = /(\*)(0+)|(#+)(0+)|(0+)/g, Fe = /^(0+)$/;
|
|
1153
|
+
function Ie(e) {
|
|
1153
1154
|
let t = {};
|
|
1154
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1155
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ne, function(e, n, r) {
|
|
1155
1156
|
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), "";
|
|
1156
1157
|
}), t;
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function Le(e) {
|
|
1159
1160
|
switch (e) {
|
|
1160
1161
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1161
1162
|
case "sign-accounting":
|
|
@@ -1178,19 +1179,19 @@ function Ne(e) {
|
|
|
1178
1179
|
case "+_": return { signDisplay: "never" };
|
|
1179
1180
|
}
|
|
1180
1181
|
}
|
|
1181
|
-
function
|
|
1182
|
+
function Re(e) {
|
|
1182
1183
|
let t;
|
|
1183
1184
|
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) {
|
|
1184
1185
|
let n = e.slice(0, 2);
|
|
1185
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1186
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Fe.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1186
1187
|
t.minimumIntegerDigits = e.length;
|
|
1187
1188
|
}
|
|
1188
1189
|
return t;
|
|
1189
1190
|
}
|
|
1190
|
-
function
|
|
1191
|
-
return
|
|
1191
|
+
function ze(e) {
|
|
1192
|
+
return Le(e) || {};
|
|
1192
1193
|
}
|
|
1193
|
-
function
|
|
1194
|
+
function Be(e) {
|
|
1194
1195
|
let t = {};
|
|
1195
1196
|
for (let n of e) {
|
|
1196
1197
|
switch (n.stem) {
|
|
@@ -1214,7 +1215,7 @@ function Ie(e) {
|
|
|
1214
1215
|
continue;
|
|
1215
1216
|
case "measure-unit":
|
|
1216
1217
|
case "unit":
|
|
1217
|
-
t.style = "unit", t.unit =
|
|
1218
|
+
t.style = "unit", t.unit = je(n.options[0]);
|
|
1218
1219
|
continue;
|
|
1219
1220
|
case "compact-short":
|
|
1220
1221
|
case "K":
|
|
@@ -1230,7 +1231,7 @@ function Ie(e) {
|
|
|
1230
1231
|
notation: "scientific",
|
|
1231
1232
|
...n.options.reduce((e, t) => ({
|
|
1232
1233
|
...e,
|
|
1233
|
-
...
|
|
1234
|
+
...ze(t)
|
|
1234
1235
|
}), {})
|
|
1235
1236
|
};
|
|
1236
1237
|
continue;
|
|
@@ -1240,7 +1241,7 @@ function Ie(e) {
|
|
|
1240
1241
|
notation: "engineering",
|
|
1241
1242
|
...n.options.reduce((e, t) => ({
|
|
1242
1243
|
...e,
|
|
1243
|
-
...
|
|
1244
|
+
...ze(t)
|
|
1244
1245
|
}), {})
|
|
1245
1246
|
};
|
|
1246
1247
|
continue;
|
|
@@ -1285,7 +1286,7 @@ function Ie(e) {
|
|
|
1285
1286
|
continue;
|
|
1286
1287
|
case "integer-width":
|
|
1287
1288
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1288
|
-
n.options[0].replace(
|
|
1289
|
+
n.options[0].replace(Pe, function(e, n, r, i, a, o) {
|
|
1289
1290
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1290
1291
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1291
1292
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1293,13 +1294,13 @@ function Ie(e) {
|
|
|
1293
1294
|
});
|
|
1294
1295
|
continue;
|
|
1295
1296
|
}
|
|
1296
|
-
if (
|
|
1297
|
+
if (Fe.test(n.stem)) {
|
|
1297
1298
|
t.minimumIntegerDigits = n.stem.length;
|
|
1298
1299
|
continue;
|
|
1299
1300
|
}
|
|
1300
|
-
if (
|
|
1301
|
+
if (Me.test(n.stem)) {
|
|
1301
1302
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1302
|
-
n.stem.replace(
|
|
1303
|
+
n.stem.replace(Me, function(e, n, r, i, a, o) {
|
|
1303
1304
|
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), "";
|
|
1304
1305
|
});
|
|
1305
1306
|
let e = n.options[0];
|
|
@@ -1308,23 +1309,23 @@ function Ie(e) {
|
|
|
1308
1309
|
trailingZeroDisplay: "stripIfInteger"
|
|
1309
1310
|
} : e && (t = {
|
|
1310
1311
|
...t,
|
|
1311
|
-
...
|
|
1312
|
+
...Ie(e)
|
|
1312
1313
|
});
|
|
1313
1314
|
continue;
|
|
1314
1315
|
}
|
|
1315
|
-
if (
|
|
1316
|
+
if (Ne.test(n.stem)) {
|
|
1316
1317
|
t = {
|
|
1317
1318
|
...t,
|
|
1318
|
-
...
|
|
1319
|
+
...Ie(n.stem)
|
|
1319
1320
|
};
|
|
1320
1321
|
continue;
|
|
1321
1322
|
}
|
|
1322
|
-
let e =
|
|
1323
|
+
let e = Le(n.stem);
|
|
1323
1324
|
e && (t = {
|
|
1324
1325
|
...t,
|
|
1325
1326
|
...e
|
|
1326
1327
|
});
|
|
1327
|
-
let r =
|
|
1328
|
+
let r = Re(n.stem);
|
|
1328
1329
|
r && (t = {
|
|
1329
1330
|
...t,
|
|
1330
1331
|
...r
|
|
@@ -1333,43 +1334,43 @@ function Ie(e) {
|
|
|
1333
1334
|
return t;
|
|
1334
1335
|
}
|
|
1335
1336
|
// ../../../../../.bun/install/cache/links/@formatjs+icu-messageformat-parser@3.5.15-e6b312ad9ffe7252/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1336
|
-
var
|
|
1337
|
+
var Ve = /* @__PURE__ */ function(e) {
|
|
1337
1338
|
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;
|
|
1338
1339
|
}({});
|
|
1339
|
-
function
|
|
1340
|
+
function He(e) {
|
|
1340
1341
|
return e.type === 0;
|
|
1341
1342
|
}
|
|
1342
|
-
function
|
|
1343
|
+
function Ue(e) {
|
|
1343
1344
|
return e.type === 1;
|
|
1344
1345
|
}
|
|
1345
|
-
function
|
|
1346
|
+
function We(e) {
|
|
1346
1347
|
return e.type === 2;
|
|
1347
1348
|
}
|
|
1348
|
-
function
|
|
1349
|
+
function Ge(e) {
|
|
1349
1350
|
return e.type === 3;
|
|
1350
1351
|
}
|
|
1351
|
-
function
|
|
1352
|
+
function Ke(e) {
|
|
1352
1353
|
return e.type === 4;
|
|
1353
1354
|
}
|
|
1354
|
-
function
|
|
1355
|
+
function qe(e) {
|
|
1355
1356
|
return e.type === 5;
|
|
1356
1357
|
}
|
|
1357
|
-
function
|
|
1358
|
+
function Je(e) {
|
|
1358
1359
|
return e.type === 6;
|
|
1359
1360
|
}
|
|
1360
|
-
function
|
|
1361
|
+
function Ye(e) {
|
|
1361
1362
|
return e.type === 7;
|
|
1362
1363
|
}
|
|
1363
|
-
function
|
|
1364
|
+
function Xe(e) {
|
|
1364
1365
|
return e.type === 8;
|
|
1365
1366
|
}
|
|
1366
|
-
function
|
|
1367
|
+
function Ze(e) {
|
|
1367
1368
|
return !!(e && typeof e == "object" && e.type === 0);
|
|
1368
1369
|
}
|
|
1369
|
-
function
|
|
1370
|
+
function Qe(e) {
|
|
1370
1371
|
return !!(e && typeof e == "object" && e.type === 1);
|
|
1371
1372
|
}
|
|
1372
|
-
var
|
|
1373
|
+
var $e = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, et = {
|
|
1373
1374
|
"001": ["H", "h"],
|
|
1374
1375
|
419: [
|
|
1375
1376
|
"h",
|
|
@@ -2532,21 +2533,21 @@ var Ye = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Xe = {
|
|
|
2532
2533
|
"h"
|
|
2533
2534
|
]
|
|
2534
2535
|
};
|
|
2535
|
-
function
|
|
2536
|
+
function tt(e, t) {
|
|
2536
2537
|
let n = "";
|
|
2537
2538
|
for (let r = 0; r < e.length; r++) {
|
|
2538
2539
|
let i = e.charAt(r);
|
|
2539
2540
|
if (i === "j") {
|
|
2540
2541
|
let a = 0;
|
|
2541
2542
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
2542
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
2543
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = nt(t);
|
|
2543
2544
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2544
2545
|
for (; o-- > 0;) n = c + n;
|
|
2545
2546
|
} else n += i === "J" ? "H" : i;
|
|
2546
2547
|
}
|
|
2547
2548
|
return n;
|
|
2548
2549
|
}
|
|
2549
|
-
function
|
|
2550
|
+
function nt(e) {
|
|
2550
2551
|
let t = e.hourCycle;
|
|
2551
2552
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2552
2553
|
case "h24": return "k";
|
|
@@ -2556,32 +2557,32 @@ function Qe(e) {
|
|
|
2556
2557
|
default: throw Error("Invalid hourCycle");
|
|
2557
2558
|
}
|
|
2558
2559
|
let n = e.language, r;
|
|
2559
|
-
return n !== "root" && (r = e.maximize().region), (
|
|
2560
|
+
return n !== "root" && (r = e.maximize().region), (et[r || ""] || et[n || ""] || et[`${n}-001`] || et["001"])[0];
|
|
2560
2561
|
}
|
|
2561
|
-
var
|
|
2562
|
+
var rt = RegExp(`^${$e.source}*`), it = RegExp(`${$e.source}*$`);
|
|
2562
2563
|
function Y(e, t) {
|
|
2563
2564
|
return {
|
|
2564
2565
|
start: e,
|
|
2565
2566
|
end: t
|
|
2566
2567
|
};
|
|
2567
2568
|
}
|
|
2568
|
-
var
|
|
2569
|
+
var at = !!Object.fromEntries, ot = !!String.prototype.trimStart, st = !!String.prototype.trimEnd, ct = at ? Object.fromEntries : function(e) {
|
|
2569
2570
|
let t = {};
|
|
2570
2571
|
for (let [n, r] of e) t[n] = r;
|
|
2571
2572
|
return t;
|
|
2572
|
-
},
|
|
2573
|
+
}, lt = ot ? function(e) {
|
|
2573
2574
|
return e.trimStart();
|
|
2574
2575
|
} : function(e) {
|
|
2575
|
-
return e.replace(
|
|
2576
|
-
},
|
|
2576
|
+
return e.replace(rt, "");
|
|
2577
|
+
}, ut = st ? function(e) {
|
|
2577
2578
|
return e.trimEnd();
|
|
2578
2579
|
} : function(e) {
|
|
2579
|
-
return e.replace(
|
|
2580
|
-
},
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2580
|
+
return e.replace(it, "");
|
|
2581
|
+
}, dt = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2582
|
+
function ft(e, t) {
|
|
2583
|
+
return dt.lastIndex = t, dt.exec(e)[1] ?? "";
|
|
2583
2584
|
}
|
|
2584
|
-
function
|
|
2585
|
+
function pt(e) {
|
|
2585
2586
|
if (e.length === 0) return null;
|
|
2586
2587
|
let t = 1, n = 1;
|
|
2587
2588
|
for (let r = 0; r < e.length;) {
|
|
@@ -2605,7 +2606,7 @@ function lt(e) {
|
|
|
2605
2606
|
column: n
|
|
2606
2607
|
};
|
|
2607
2608
|
}
|
|
2608
|
-
var
|
|
2609
|
+
var mt = class {
|
|
2609
2610
|
constructor(e, t = {}) {
|
|
2610
2611
|
this.message = e, this.position = {
|
|
2611
2612
|
offset: 0,
|
|
@@ -2618,7 +2619,7 @@ var ut = class {
|
|
|
2618
2619
|
if (this.message.length > 0) {
|
|
2619
2620
|
let e = this.message.charCodeAt(0);
|
|
2620
2621
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2621
|
-
let e =
|
|
2622
|
+
let e = pt(this.message);
|
|
2622
2623
|
if (e) {
|
|
2623
2624
|
let t = this.clonePosition();
|
|
2624
2625
|
return this.position = e, {
|
|
@@ -2652,7 +2653,7 @@ var ut = class {
|
|
|
2652
2653
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2653
2654
|
if (n) break;
|
|
2654
2655
|
return this.error(26, Y(this.clonePosition(), this.clonePosition()));
|
|
2655
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
2656
|
+
} else if (i === 60 && !this.ignoreTag && ht(this.peek() || 0)) {
|
|
2656
2657
|
let n = this.parseTag(e, t);
|
|
2657
2658
|
if (n.err) return n;
|
|
2658
2659
|
r.push(n.val);
|
|
@@ -2684,7 +2685,7 @@ var ut = class {
|
|
|
2684
2685
|
if (i.err) return i;
|
|
2685
2686
|
let a = i.val, o = this.clonePosition();
|
|
2686
2687
|
if (this.bumpIf("</")) {
|
|
2687
|
-
if (this.isEOF() || !
|
|
2688
|
+
if (this.isEOF() || !ht(this.char())) return this.error(23, Y(o, this.clonePosition()));
|
|
2688
2689
|
let e = this.clonePosition();
|
|
2689
2690
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2690
2691
|
val: {
|
|
@@ -2702,7 +2703,7 @@ var ut = class {
|
|
|
2702
2703
|
}
|
|
2703
2704
|
parseTagName() {
|
|
2704
2705
|
let e = this.offset();
|
|
2705
|
-
for (this.bump(); !this.isEOF() &&
|
|
2706
|
+
for (this.bump(); !this.isEOF() && _t(this.char());) this.bump();
|
|
2706
2707
|
return this.message.slice(e, this.offset());
|
|
2707
2708
|
}
|
|
2708
2709
|
parseLiteral(e, t) {
|
|
@@ -2733,7 +2734,7 @@ var ut = class {
|
|
|
2733
2734
|
};
|
|
2734
2735
|
}
|
|
2735
2736
|
tryParseLeftAngleBracket() {
|
|
2736
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2737
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !gt(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2737
2738
|
}
|
|
2738
2739
|
tryParseQuote(e) {
|
|
2739
2740
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2789,7 +2790,7 @@ var ut = class {
|
|
|
2789
2790
|
}
|
|
2790
2791
|
}
|
|
2791
2792
|
parseIdentifierIfPossible() {
|
|
2792
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
2793
|
+
let e = this.clonePosition(), t = this.offset(), n = ft(this.message, t), r = t + n.length;
|
|
2793
2794
|
return this.bumpTo(r), {
|
|
2794
2795
|
value: n,
|
|
2795
2796
|
location: Y(e, this.clonePosition())
|
|
@@ -2808,7 +2809,7 @@ var ut = class {
|
|
|
2808
2809
|
this.bumpSpace();
|
|
2809
2810
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2810
2811
|
if (n.err) return n;
|
|
2811
|
-
let r =
|
|
2812
|
+
let r = ut(n.val);
|
|
2812
2813
|
if (r.length === 0) return this.error(6, Y(this.clonePosition(), this.clonePosition()));
|
|
2813
2814
|
e = {
|
|
2814
2815
|
style: r,
|
|
@@ -2819,7 +2820,7 @@ var ut = class {
|
|
|
2819
2820
|
if (t.err) return t;
|
|
2820
2821
|
let i = Y(r, this.clonePosition());
|
|
2821
2822
|
if (e && e.style.startsWith("::")) {
|
|
2822
|
-
let t =
|
|
2823
|
+
let t = lt(e.style.slice(2));
|
|
2823
2824
|
if (a === "number") {
|
|
2824
2825
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
2825
2826
|
return r.err ? r : {
|
|
@@ -2835,12 +2836,12 @@ var ut = class {
|
|
|
2835
2836
|
{
|
|
2836
2837
|
if (t.length === 0) return this.error(10, i);
|
|
2837
2838
|
let r = t;
|
|
2838
|
-
this.locale && (r =
|
|
2839
|
+
this.locale && (r = tt(t, this.locale));
|
|
2839
2840
|
let o = {
|
|
2840
2841
|
type: 1,
|
|
2841
2842
|
pattern: r,
|
|
2842
2843
|
location: e.styleLocation,
|
|
2843
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2844
|
+
parsedOptions: this.shouldParseSkeletons ? Oe(r) : {}
|
|
2844
2845
|
};
|
|
2845
2846
|
return {
|
|
2846
2847
|
val: {
|
|
@@ -2886,7 +2887,7 @@ var ut = class {
|
|
|
2886
2887
|
val: {
|
|
2887
2888
|
type: 5,
|
|
2888
2889
|
value: n,
|
|
2889
|
-
options:
|
|
2890
|
+
options: ct(c.val),
|
|
2890
2891
|
location: u
|
|
2891
2892
|
},
|
|
2892
2893
|
err: null
|
|
@@ -2894,7 +2895,7 @@ var ut = class {
|
|
|
2894
2895
|
val: {
|
|
2895
2896
|
type: 6,
|
|
2896
2897
|
value: n,
|
|
2897
|
-
options:
|
|
2898
|
+
options: ct(c.val),
|
|
2898
2899
|
offset: s,
|
|
2899
2900
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2900
2901
|
location: u
|
|
@@ -2941,7 +2942,7 @@ var ut = class {
|
|
|
2941
2942
|
parseNumberSkeletonFromString(e, t) {
|
|
2942
2943
|
let n = [];
|
|
2943
2944
|
try {
|
|
2944
|
-
n =
|
|
2945
|
+
n = Ae(e);
|
|
2945
2946
|
} catch {
|
|
2946
2947
|
return this.error(7, t);
|
|
2947
2948
|
}
|
|
@@ -2950,7 +2951,7 @@ var ut = class {
|
|
|
2950
2951
|
type: 0,
|
|
2951
2952
|
tokens: n,
|
|
2952
2953
|
location: t,
|
|
2953
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? Be(n) : {}
|
|
2954
2955
|
},
|
|
2955
2956
|
err: null
|
|
2956
2957
|
};
|
|
@@ -3055,7 +3056,7 @@ var ut = class {
|
|
|
3055
3056
|
}
|
|
3056
3057
|
}
|
|
3057
3058
|
bumpSpace() {
|
|
3058
|
-
for (; !this.isEOF() &&
|
|
3059
|
+
for (; !this.isEOF() && vt(this.char());) this.bump();
|
|
3059
3060
|
}
|
|
3060
3061
|
peek() {
|
|
3061
3062
|
if (this.isEOF()) return null;
|
|
@@ -3063,82 +3064,82 @@ var ut = class {
|
|
|
3063
3064
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3064
3065
|
}
|
|
3065
3066
|
};
|
|
3066
|
-
function
|
|
3067
|
+
function ht(e) {
|
|
3067
3068
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3068
3069
|
}
|
|
3069
|
-
function
|
|
3070
|
-
return
|
|
3070
|
+
function gt(e) {
|
|
3071
|
+
return ht(e) || e === 47;
|
|
3071
3072
|
}
|
|
3072
|
-
function
|
|
3073
|
+
function _t(e) {
|
|
3073
3074
|
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;
|
|
3074
3075
|
}
|
|
3075
|
-
function
|
|
3076
|
+
function vt(e) {
|
|
3076
3077
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3077
3078
|
}
|
|
3078
|
-
function
|
|
3079
|
+
function yt(e) {
|
|
3079
3080
|
e.forEach((e) => {
|
|
3080
|
-
if (delete e.location,
|
|
3081
|
-
else
|
|
3081
|
+
if (delete e.location, qe(e) || Je(e)) for (let t in e.options) delete e.options[t].location, yt(e.options[t].value);
|
|
3082
|
+
else We(e) && Ze(e.style) || (Ge(e) || Ke(e)) && Qe(e.style) ? delete e.style.location : Xe(e) && yt(e.children);
|
|
3082
3083
|
});
|
|
3083
3084
|
}
|
|
3084
|
-
function
|
|
3085
|
+
function bt(e, t = {}) {
|
|
3085
3086
|
t = {
|
|
3086
3087
|
shouldParseSkeletons: !0,
|
|
3087
3088
|
requiresOtherClause: !0,
|
|
3088
3089
|
...t
|
|
3089
3090
|
};
|
|
3090
|
-
let n = new
|
|
3091
|
+
let n = new mt(e, t).parse();
|
|
3091
3092
|
if (n.err) {
|
|
3092
|
-
let e = SyntaxError(
|
|
3093
|
+
let e = SyntaxError(Ve[n.err.kind]);
|
|
3093
3094
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3094
3095
|
}
|
|
3095
|
-
return t?.captureLocation ||
|
|
3096
|
+
return t?.captureLocation || yt(n.val), n.val;
|
|
3096
3097
|
}
|
|
3097
3098
|
// ../../../../../.bun/install/cache/links/intl-messageformat@11.2.12-75314eb2d35a9376/node_modules/intl-messageformat/index.js
|
|
3098
|
-
var
|
|
3099
|
+
var xt = class extends Error {
|
|
3099
3100
|
constructor(e, t, n) {
|
|
3100
3101
|
super(e), this.code = t, this.originalMessage = n;
|
|
3101
3102
|
}
|
|
3102
3103
|
toString() {
|
|
3103
3104
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3104
3105
|
}
|
|
3105
|
-
},
|
|
3106
|
+
}, St = class extends xt {
|
|
3106
3107
|
constructor(e, t, n, r) {
|
|
3107
3108
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3108
3109
|
}
|
|
3109
|
-
},
|
|
3110
|
+
}, Ct = class extends xt {
|
|
3110
3111
|
constructor(e, t, n) {
|
|
3111
3112
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3112
3113
|
}
|
|
3113
|
-
},
|
|
3114
|
+
}, wt = class extends xt {
|
|
3114
3115
|
constructor(e, t) {
|
|
3115
3116
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3116
3117
|
}
|
|
3117
3118
|
};
|
|
3118
|
-
function
|
|
3119
|
+
function Tt(e) {
|
|
3119
3120
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3120
3121
|
let n = e[e.length - 1];
|
|
3121
3122
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3122
3123
|
}, []);
|
|
3123
3124
|
}
|
|
3124
|
-
function
|
|
3125
|
+
function Et(e) {
|
|
3125
3126
|
return typeof e == "function";
|
|
3126
3127
|
}
|
|
3127
|
-
function
|
|
3128
|
-
if (e.length === 1 &&
|
|
3128
|
+
function Dt(e, t, n, r, i, a, o) {
|
|
3129
|
+
if (e.length === 1 && He(e[0])) return [{
|
|
3129
3130
|
type: 0,
|
|
3130
3131
|
value: e[0].value
|
|
3131
3132
|
}];
|
|
3132
3133
|
let s = [];
|
|
3133
3134
|
for (let c of e) {
|
|
3134
|
-
if (
|
|
3135
|
+
if (He(c)) {
|
|
3135
3136
|
s.push({
|
|
3136
3137
|
type: 0,
|
|
3137
3138
|
value: c.value
|
|
3138
3139
|
});
|
|
3139
3140
|
continue;
|
|
3140
3141
|
}
|
|
3141
|
-
if (
|
|
3142
|
+
if (Ye(c)) {
|
|
3142
3143
|
typeof a == "number" && s.push({
|
|
3143
3144
|
type: 0,
|
|
3144
3145
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3146,26 +3147,26 @@ function Ct(e, t, n, r, i, a, o) {
|
|
|
3146
3147
|
continue;
|
|
3147
3148
|
}
|
|
3148
3149
|
let { value: e } = c;
|
|
3149
|
-
if (!(i && e in i)) throw new
|
|
3150
|
+
if (!(i && e in i)) throw new wt(e, o);
|
|
3150
3151
|
let l = i[e];
|
|
3151
|
-
if (
|
|
3152
|
+
if (Ue(c)) l && typeof l != "string" && typeof l != "number" && typeof l != "bigint" || (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
3152
3153
|
type: typeof l == "string" ? 0 : 1,
|
|
3153
3154
|
value: l
|
|
3154
3155
|
});
|
|
3155
|
-
else if (
|
|
3156
|
-
let e = typeof c.style == "string" ? r.date[c.style] :
|
|
3156
|
+
else if (Ge(c)) {
|
|
3157
|
+
let e = typeof c.style == "string" ? r.date[c.style] : Qe(c.style) ? c.style.parsedOptions : void 0;
|
|
3157
3158
|
s.push({
|
|
3158
3159
|
type: 0,
|
|
3159
3160
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3160
3161
|
});
|
|
3161
|
-
} else if (
|
|
3162
|
-
let e = typeof c.style == "string" ? r.time[c.style] :
|
|
3162
|
+
} else if (Ke(c)) {
|
|
3163
|
+
let e = typeof c.style == "string" ? r.time[c.style] : Qe(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3163
3164
|
s.push({
|
|
3164
3165
|
type: 0,
|
|
3165
3166
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3166
3167
|
});
|
|
3167
|
-
} else if (
|
|
3168
|
-
let e = typeof c.style == "string" ? r.number[c.style] :
|
|
3168
|
+
} else if (We(c)) {
|
|
3169
|
+
let e = typeof c.style == "string" ? r.number[c.style] : Ze(c.style) ? c.style.parsedOptions : void 0;
|
|
3169
3170
|
if (e && e.scale) {
|
|
3170
3171
|
let t = e.scale || 1;
|
|
3171
3172
|
if (typeof l == "bigint") {
|
|
@@ -3178,35 +3179,35 @@ function Ct(e, t, n, r, i, a, o) {
|
|
|
3178
3179
|
value: n.getNumberFormat(t, e).format(l)
|
|
3179
3180
|
});
|
|
3180
3181
|
} else {
|
|
3181
|
-
if (
|
|
3182
|
+
if (Xe(c)) {
|
|
3182
3183
|
let { children: e, value: l } = c, u = i[l];
|
|
3183
|
-
if (!
|
|
3184
|
-
let d = u(
|
|
3184
|
+
if (!Et(u)) throw new Ct(l, "function", o);
|
|
3185
|
+
let d = u(Dt(e, t, n, r, i, a).map((e) => e.value));
|
|
3185
3186
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3186
3187
|
type: typeof e == "string" ? 0 : 1,
|
|
3187
3188
|
value: e
|
|
3188
3189
|
})));
|
|
3189
3190
|
}
|
|
3190
|
-
if (
|
|
3191
|
+
if (qe(c)) {
|
|
3191
3192
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3192
|
-
if (!a) throw new
|
|
3193
|
-
s.push(...
|
|
3194
|
-
} else if (
|
|
3193
|
+
if (!a) throw new St(c.value, l, Object.keys(c.options), o);
|
|
3194
|
+
s.push(...Dt(a.value, t, n, r, i));
|
|
3195
|
+
} else if (Je(c)) {
|
|
3195
3196
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3196
3197
|
if (!a) {
|
|
3197
|
-
if (!Intl.PluralRules) throw new
|
|
3198
|
+
if (!Intl.PluralRules) throw new xt("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3198
3199
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3199
3200
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3200
3201
|
}
|
|
3201
|
-
if (!a) throw new
|
|
3202
|
+
if (!a) throw new St(c.value, l, Object.keys(c.options), o);
|
|
3202
3203
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3203
|
-
s.push(...
|
|
3204
|
+
s.push(...Dt(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3204
3205
|
}
|
|
3205
3206
|
}
|
|
3206
3207
|
}
|
|
3207
|
-
return
|
|
3208
|
+
return Tt(s);
|
|
3208
3209
|
}
|
|
3209
|
-
function
|
|
3210
|
+
function Ot(e, t) {
|
|
3210
3211
|
return t ? {
|
|
3211
3212
|
...e,
|
|
3212
3213
|
...t,
|
|
@@ -3216,10 +3217,10 @@ function wt(e, t) {
|
|
|
3216
3217
|
}, n), {})
|
|
3217
3218
|
} : e;
|
|
3218
3219
|
}
|
|
3219
|
-
function
|
|
3220
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
3220
|
+
function kt(e, t) {
|
|
3221
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = Ot(e[r], t[r]), n), { ...e }) : e;
|
|
3221
3222
|
}
|
|
3222
|
-
function
|
|
3223
|
+
function At(e) {
|
|
3223
3224
|
return { create() {
|
|
3224
3225
|
return {
|
|
3225
3226
|
get(t) {
|
|
@@ -3231,27 +3232,27 @@ function Et(e) {
|
|
|
3231
3232
|
};
|
|
3232
3233
|
} };
|
|
3233
3234
|
}
|
|
3234
|
-
function
|
|
3235
|
+
function jt(e = {
|
|
3235
3236
|
number: {},
|
|
3236
3237
|
dateTime: {},
|
|
3237
3238
|
pluralRules: {}
|
|
3238
3239
|
}) {
|
|
3239
3240
|
return {
|
|
3240
|
-
getNumberFormat:
|
|
3241
|
-
cache:
|
|
3242
|
-
strategy:
|
|
3241
|
+
getNumberFormat: de((...e) => new Intl.NumberFormat(...e), {
|
|
3242
|
+
cache: At(e.number),
|
|
3243
|
+
strategy: be.variadic
|
|
3243
3244
|
}),
|
|
3244
|
-
getDateTimeFormat:
|
|
3245
|
-
cache:
|
|
3246
|
-
strategy:
|
|
3245
|
+
getDateTimeFormat: de((...e) => new Intl.DateTimeFormat(...e), {
|
|
3246
|
+
cache: At(e.dateTime),
|
|
3247
|
+
strategy: be.variadic
|
|
3247
3248
|
}),
|
|
3248
|
-
getPluralRules:
|
|
3249
|
-
cache:
|
|
3250
|
-
strategy:
|
|
3249
|
+
getPluralRules: de((...e) => new Intl.PluralRules(...e), {
|
|
3250
|
+
cache: At(e.pluralRules),
|
|
3251
|
+
strategy: be.variadic
|
|
3251
3252
|
})
|
|
3252
3253
|
};
|
|
3253
3254
|
}
|
|
3254
|
-
var
|
|
3255
|
+
var Mt = class e {
|
|
3255
3256
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
3256
3257
|
if (this.formatterCache = {
|
|
3257
3258
|
number: {},
|
|
@@ -3262,7 +3263,7 @@ var Ot = class e {
|
|
|
3262
3263
|
if (t.length === 1) return t[0].value;
|
|
3263
3264
|
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), []);
|
|
3264
3265
|
return n.length <= 1 ? n[0] || "" : n;
|
|
3265
|
-
}, this.formatToParts = (e) =>
|
|
3266
|
+
}, this.formatToParts = (e) => Dt(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") {
|
|
3266
3267
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3267
3268
|
let { ...n } = i || {};
|
|
3268
3269
|
this.ast = e.__parse(t, {
|
|
@@ -3271,7 +3272,7 @@ var Ot = class e {
|
|
|
3271
3272
|
});
|
|
3272
3273
|
} else this.ast = t;
|
|
3273
3274
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3274
|
-
this.formats =
|
|
3275
|
+
this.formats = kt(e.formats, r), this.formatters = i && i.formatters || jt(this.formatterCache);
|
|
3275
3276
|
}
|
|
3276
3277
|
static {
|
|
3277
3278
|
this.memoizedDefaultLocale = null;
|
|
@@ -3287,7 +3288,7 @@ var Ot = class e {
|
|
|
3287
3288
|
};
|
|
3288
3289
|
}
|
|
3289
3290
|
static {
|
|
3290
|
-
this.__parse =
|
|
3291
|
+
this.__parse = bt;
|
|
3291
3292
|
}
|
|
3292
3293
|
static {
|
|
3293
3294
|
this.formats = {
|
|
@@ -3346,9 +3347,9 @@ var Ot = class e {
|
|
|
3346
3347
|
}
|
|
3347
3348
|
};
|
|
3348
3349
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3349
|
-
function
|
|
3350
|
-
if (Array.isArray(t)) throw new q
|
|
3351
|
-
if (typeof t == "object") throw new q
|
|
3350
|
+
function Nt(...[e, t, n, r]) {
|
|
3351
|
+
if (Array.isArray(t)) throw new K(q.INVALID_MESSAGE, void 0);
|
|
3352
|
+
if (typeof t == "object") throw new K(q.INSUFFICIENT_PATH, void 0);
|
|
3352
3353
|
if (typeof t == "string") {
|
|
3353
3354
|
let e = function(e, t) {
|
|
3354
3355
|
return t || /'[{}<#|']/.test(e) ? void 0 : e;
|
|
@@ -3357,14 +3358,14 @@ function kt(...[e, t, n, r]) {
|
|
|
3357
3358
|
}
|
|
3358
3359
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3359
3360
|
o.getMessageFormat ||= function(e, t) {
|
|
3360
|
-
return
|
|
3361
|
+
return Se(((...e) => new Mt(e[0], e[1], e[2], {
|
|
3361
3362
|
formatters: t,
|
|
3362
3363
|
...e[3]
|
|
3363
3364
|
})), e.message);
|
|
3364
3365
|
}(i, o);
|
|
3365
3366
|
try {
|
|
3366
3367
|
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3367
|
-
let r =
|
|
3368
|
+
let r = Mt.formats.date, i = Mt.formats.time, a = {
|
|
3368
3369
|
...e?.dateTime,
|
|
3369
3370
|
...t?.dateTime
|
|
3370
3371
|
}, o = {
|
|
@@ -3396,24 +3397,24 @@ function kt(...[e, t, n, r]) {
|
|
|
3396
3397
|
})
|
|
3397
3398
|
} });
|
|
3398
3399
|
} catch {
|
|
3399
|
-
throw new q
|
|
3400
|
+
throw new K(q.INVALID_MESSAGE, void 0);
|
|
3400
3401
|
}
|
|
3401
3402
|
let d = u.format(n);
|
|
3402
|
-
return (0,
|
|
3403
|
+
return (0, Ee.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3403
3404
|
}
|
|
3404
|
-
|
|
3405
|
+
Nt.raw = !0;
|
|
3405
3406
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3406
|
-
function
|
|
3407
|
+
function Pt(...e) {
|
|
3407
3408
|
return e.filter(Boolean).join(".");
|
|
3408
3409
|
}
|
|
3409
|
-
function
|
|
3410
|
-
return
|
|
3410
|
+
function Ft(e) {
|
|
3411
|
+
return Pt(e.namespace, e.key);
|
|
3411
3412
|
}
|
|
3412
|
-
function
|
|
3413
|
+
function It(e) {
|
|
3413
3414
|
console.error(e);
|
|
3414
3415
|
}
|
|
3415
|
-
function
|
|
3416
|
-
let i =
|
|
3416
|
+
function Lt(e, t, n, r) {
|
|
3417
|
+
let i = Pt(r, n);
|
|
3417
3418
|
if (!t) throw Error(i);
|
|
3418
3419
|
let a = t;
|
|
3419
3420
|
return n.split(".").forEach(((t) => {
|
|
@@ -3422,21 +3423,21 @@ function Nt(e, t, n, r) {
|
|
|
3422
3423
|
a = n;
|
|
3423
3424
|
})), a;
|
|
3424
3425
|
}
|
|
3425
|
-
function
|
|
3426
|
+
function Rt(e) {
|
|
3426
3427
|
let t = function(e, t, n) {
|
|
3427
3428
|
try {
|
|
3428
3429
|
if (!t) throw Error(void 0);
|
|
3429
|
-
let r = n ?
|
|
3430
|
+
let r = n ? Lt(e, t, n) : t;
|
|
3430
3431
|
if (!r) throw Error(n);
|
|
3431
3432
|
return r;
|
|
3432
3433
|
} catch (e) {
|
|
3433
|
-
return new q
|
|
3434
|
+
return new K(q.MISSING_MESSAGE, e.message);
|
|
3434
3435
|
}
|
|
3435
3436
|
}(e.locale, e.messages, e.namespace);
|
|
3436
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r =
|
|
3437
|
-
let l = a instanceof
|
|
3437
|
+
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Ft, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3438
|
+
let l = a instanceof K;
|
|
3438
3439
|
function u(e, t, n, i) {
|
|
3439
|
-
let a = new
|
|
3440
|
+
let a = new K(t, n);
|
|
3440
3441
|
return s(a), i ?? r({
|
|
3441
3442
|
error: a,
|
|
3442
3443
|
key: e,
|
|
@@ -3455,20 +3456,20 @@ function Pt(e) {
|
|
|
3455
3456
|
} else {
|
|
3456
3457
|
let e = a;
|
|
3457
3458
|
try {
|
|
3458
|
-
g =
|
|
3459
|
+
g = Lt(i, e, d, o);
|
|
3459
3460
|
} catch (e) {
|
|
3460
|
-
if (!h) return u(d,
|
|
3461
|
+
if (!h) return u(d, q.MISSING_MESSAGE, e.message, h);
|
|
3461
3462
|
g = h;
|
|
3462
3463
|
}
|
|
3463
3464
|
}
|
|
3464
3465
|
try {
|
|
3465
|
-
return
|
|
3466
|
+
return Nt(Pt(o, d), g, f && function(e) {
|
|
3466
3467
|
let t = {};
|
|
3467
3468
|
return Object.keys(e).forEach(((n) => {
|
|
3468
3469
|
let r = 0, i = e[n], a;
|
|
3469
3470
|
a = typeof i == "function" ? (e) => {
|
|
3470
3471
|
let t = i(e);
|
|
3471
|
-
return (0,
|
|
3472
|
+
return (0, Ee.isValidElement)(t) ? (0, Ee.cloneElement)(t, { key: n + r++ }) : t;
|
|
3472
3473
|
} : i, t[n] = a;
|
|
3473
3474
|
})), t;
|
|
3474
3475
|
}(f), {
|
|
@@ -3481,12 +3482,12 @@ function Pt(e) {
|
|
|
3481
3482
|
});
|
|
3482
3483
|
} catch (e) {
|
|
3483
3484
|
let t, n;
|
|
3484
|
-
return e instanceof
|
|
3485
|
+
return e instanceof K ? (t = e.code, n = e.originalMessage) : (t = q.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3485
3486
|
}
|
|
3486
3487
|
}
|
|
3487
3488
|
function f(e, t, n, r) {
|
|
3488
3489
|
let i = d(e, t, n, r);
|
|
3489
|
-
return typeof i == "string" ? i : u(e,
|
|
3490
|
+
return typeof i == "string" ? i : u(e, q.INVALID_MESSAGE, void 0);
|
|
3490
3491
|
}
|
|
3491
3492
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3492
3493
|
if (l) return s(a), r({
|
|
@@ -3496,14 +3497,14 @@ function Pt(e) {
|
|
|
3496
3497
|
});
|
|
3497
3498
|
let t = a;
|
|
3498
3499
|
try {
|
|
3499
|
-
return
|
|
3500
|
+
return Lt(i, t, e, o);
|
|
3500
3501
|
} catch (t) {
|
|
3501
|
-
return u(e,
|
|
3502
|
+
return u(e, q.MISSING_MESSAGE, t.message);
|
|
3502
3503
|
}
|
|
3503
3504
|
}, f.has = (e) => {
|
|
3504
3505
|
if (l) return !1;
|
|
3505
3506
|
try {
|
|
3506
|
-
return
|
|
3507
|
+
return Lt(i, a, e, o), !0;
|
|
3507
3508
|
} catch {
|
|
3508
3509
|
return !1;
|
|
3509
3510
|
}
|
|
@@ -3513,13 +3514,13 @@ function Pt(e) {
|
|
|
3513
3514
|
messagesOrError: t
|
|
3514
3515
|
});
|
|
3515
3516
|
}
|
|
3516
|
-
function
|
|
3517
|
+
function zt(e, t) {
|
|
3517
3518
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3518
3519
|
}
|
|
3519
3520
|
// ../../../../../.bun/install/cache/links/use-intl@4.15.1+c841d34b494ec30a-f4879ea458d0d685/node_modules/use-intl/dist/esm/production/core.js
|
|
3520
|
-
function
|
|
3521
|
+
function Bt({ _cache: e = xe(), _formatters: t = Ce(e), getMessageFallback: n = Ft, messages: r, namespace: i, onError: a = It, ...o }) {
|
|
3521
3522
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3522
|
-
return e = e[r], t =
|
|
3523
|
+
return e = e[r], t = zt(t, r), Rt({
|
|
3523
3524
|
...n,
|
|
3524
3525
|
messages: e,
|
|
3525
3526
|
namespace: t
|
|
@@ -3535,18 +3536,62 @@ function It({ _cache: e = ge(), _formatters: t = ye(e), getMessageFallback: n =
|
|
|
3535
3536
|
}, "!");
|
|
3536
3537
|
}
|
|
3537
3538
|
// src/i18n/index.ts
|
|
3538
|
-
var
|
|
3539
|
+
var Vt = "en", Ht = (e, t) => Bt({
|
|
3539
3540
|
locale: e,
|
|
3540
|
-
messages:
|
|
3541
|
+
messages: t,
|
|
3541
3542
|
namespace: "folio"
|
|
3542
|
-
}),
|
|
3543
|
-
|
|
3543
|
+
}), Ut = Symbol("folioLocale"), Wt = T(Ht("en", te)), Gt = (e = "en") => {
|
|
3544
|
+
b(Ut, e);
|
|
3545
|
+
}, Kt = {
|
|
3546
|
+
translator: Wt,
|
|
3547
|
+
status: T({ type: "ready" })
|
|
3548
|
+
}, qt = (e, t) => {
|
|
3549
|
+
if (e === "en") return Kt;
|
|
3550
|
+
let n = T(Wt.value), r = T({ type: "loading" }), i;
|
|
3551
|
+
return P(() => O(e), (e, a, o) => {
|
|
3552
|
+
let s = ee(e);
|
|
3553
|
+
if (s) {
|
|
3554
|
+
n.value = Ht(e, s), r.value = { type: "ready" }, i = void 0;
|
|
3555
|
+
return;
|
|
3556
|
+
}
|
|
3557
|
+
let c = r.value.type === "ready";
|
|
3558
|
+
c || (r.value = { type: "loading" });
|
|
3559
|
+
let l = !0;
|
|
3560
|
+
return o(() => {
|
|
3561
|
+
l = !1;
|
|
3562
|
+
}), i = B(e).then((t) => {
|
|
3563
|
+
l && (n.value = Ht(e, t), r.value = { type: "ready" });
|
|
3564
|
+
}, (e) => {
|
|
3565
|
+
if (!l) return;
|
|
3566
|
+
let n = e instanceof Error ? e : Error(String(e));
|
|
3567
|
+
if (c || (r.value = {
|
|
3568
|
+
type: "failed",
|
|
3569
|
+
error: n
|
|
3570
|
+
}), !t) throw n;
|
|
3571
|
+
t(n);
|
|
3572
|
+
}), i;
|
|
3573
|
+
}, {
|
|
3574
|
+
immediate: !0,
|
|
3575
|
+
flush: "sync"
|
|
3576
|
+
}), v(() => i), {
|
|
3577
|
+
translator: n,
|
|
3578
|
+
status: r
|
|
3579
|
+
};
|
|
3580
|
+
}, Jt = Symbol("folioEditorTranslation"), Yt = (e) => (t, n) => e.value(t, n), Xt = (e) => {
|
|
3581
|
+
let t = u(Ut, "en"), n = qt(t, e);
|
|
3582
|
+
return b(Jt, {
|
|
3583
|
+
locale: t,
|
|
3584
|
+
translation: n
|
|
3585
|
+
}), {
|
|
3586
|
+
t: Yt(n.translator),
|
|
3587
|
+
status: n.status
|
|
3588
|
+
};
|
|
3544
3589
|
}, X = () => {
|
|
3545
|
-
let e = u(
|
|
3546
|
-
return { t: (
|
|
3547
|
-
},
|
|
3548
|
-
e.provide(
|
|
3549
|
-
} },
|
|
3590
|
+
let e = u(Ut, "en"), t = u(Jt, null), { translator: n } = t?.locale === e ? t.translation : qt(e);
|
|
3591
|
+
return { t: Yt(n) };
|
|
3592
|
+
}, Zt = { install(e, t = "en") {
|
|
3593
|
+
e.provide(Ut, t);
|
|
3594
|
+
} }, Qt = ["disabled"], $t = "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", en = /* @__PURE__ */ l({
|
|
3550
3595
|
__name: "Button",
|
|
3551
3596
|
props: {
|
|
3552
3597
|
variant: { default: "default" },
|
|
@@ -3575,19 +3620,19 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3575
3620
|
xs: "h-7 rounded-md px-2 text-xs",
|
|
3576
3621
|
"icon-xs": "h-7 w-7"
|
|
3577
3622
|
}, o = n(() => [
|
|
3578
|
-
|
|
3623
|
+
$t,
|
|
3579
3624
|
r[t.variant],
|
|
3580
3625
|
i[t.size],
|
|
3581
3626
|
t.className
|
|
3582
3627
|
].filter(Boolean).join(" "));
|
|
3583
|
-
return (t, n) => (
|
|
3628
|
+
return (t, n) => (y(), a("button", {
|
|
3584
3629
|
type: "button",
|
|
3585
3630
|
class: m(o.value),
|
|
3586
3631
|
disabled: e.disabled,
|
|
3587
3632
|
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
3588
|
-
}, [
|
|
3633
|
+
}, [w(t.$slots, "default")], 10, Qt));
|
|
3589
3634
|
}
|
|
3590
|
-
}),
|
|
3635
|
+
}), tn = ["checked"], nn = /*@__PURE__*/ l({
|
|
3591
3636
|
__name: "Checkbox",
|
|
3592
3637
|
props: {
|
|
3593
3638
|
checked: { type: Boolean },
|
|
@@ -3599,18 +3644,18 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3599
3644
|
function r(e) {
|
|
3600
3645
|
e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
|
|
3601
3646
|
}
|
|
3602
|
-
return (t, n) => (
|
|
3647
|
+
return (t, n) => (y(), a("input", {
|
|
3603
3648
|
type: "checkbox",
|
|
3604
3649
|
class: m(["folio-default-checkbox", e.className]),
|
|
3605
3650
|
checked: e.checked,
|
|
3606
3651
|
onChange: r
|
|
3607
|
-
}, null, 42,
|
|
3652
|
+
}, null, 42, tn));
|
|
3608
3653
|
}
|
|
3609
3654
|
}), Z = (e, t) => {
|
|
3610
3655
|
let n = e.__vccOpts || e;
|
|
3611
3656
|
for (let [e, r] of t) n[e] = r;
|
|
3612
3657
|
return n;
|
|
3613
|
-
},
|
|
3658
|
+
}, rn = /*#__PURE__*/ Z(nn, [["__scopeId", "data-v-2e4f5470"]]), an = {
|
|
3614
3659
|
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"],
|
|
3615
3660
|
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"],
|
|
3616
3661
|
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"],
|
|
@@ -3710,7 +3755,7 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3710
3755
|
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"],
|
|
3711
3756
|
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"],
|
|
3712
3757
|
"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"]
|
|
3713
|
-
},
|
|
3758
|
+
}, on = ["width", "height"], sn = ["d"], cn = /* @__PURE__ */ l({
|
|
3714
3759
|
__name: "MaterialSymbol",
|
|
3715
3760
|
props: {
|
|
3716
3761
|
name: {},
|
|
@@ -3719,8 +3764,8 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3719
3764
|
style: {}
|
|
3720
3765
|
},
|
|
3721
3766
|
setup(t) {
|
|
3722
|
-
let r = t, i =
|
|
3723
|
-
return (n, r) => o.value ? (
|
|
3767
|
+
let r = t, i = an, o = n(() => i[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
|
|
3768
|
+
return (n, r) => o.value ? (y(), a("svg", {
|
|
3724
3769
|
key: 0,
|
|
3725
3770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3726
3771
|
width: t.size,
|
|
@@ -3734,10 +3779,10 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3734
3779
|
...t.style ?? {}
|
|
3735
3780
|
}),
|
|
3736
3781
|
"aria-hidden": "true"
|
|
3737
|
-
}, [(
|
|
3782
|
+
}, [(y(!0), a(e, null, C(o.value, (e, t) => (y(), a("path", {
|
|
3738
3783
|
key: t,
|
|
3739
3784
|
d: e
|
|
3740
|
-
}, null, 8,
|
|
3785
|
+
}, null, 8, sn))), 128))], 14, on)) : (y(), a("span", {
|
|
3741
3786
|
key: 1,
|
|
3742
3787
|
class: m(t.className),
|
|
3743
3788
|
style: h({
|
|
@@ -3747,39 +3792,39 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3747
3792
|
display: "inline-flex",
|
|
3748
3793
|
...t.style ?? {}
|
|
3749
3794
|
})
|
|
3750
|
-
},
|
|
3795
|
+
}, E(t.name), 7));
|
|
3751
3796
|
}
|
|
3752
|
-
}),
|
|
3797
|
+
}), ln = [
|
|
3753
3798
|
"disabled",
|
|
3754
3799
|
"title",
|
|
3755
3800
|
"aria-label"
|
|
3756
|
-
],
|
|
3801
|
+
], un = [
|
|
3757
3802
|
"disabled",
|
|
3758
3803
|
"title",
|
|
3759
3804
|
"aria-label",
|
|
3760
3805
|
"aria-expanded"
|
|
3761
|
-
],
|
|
3806
|
+
], dn = [
|
|
3762
3807
|
"disabled",
|
|
3763
3808
|
"title",
|
|
3764
3809
|
"aria-label",
|
|
3765
3810
|
"aria-expanded"
|
|
3766
|
-
],
|
|
3811
|
+
], fn = { class: "docx-color-picker__button-stack" }, pn = ["aria-label"], mn = {
|
|
3767
3812
|
key: 0,
|
|
3768
3813
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
|
|
3769
|
-
},
|
|
3814
|
+
}, hn = {
|
|
3770
3815
|
key: 1,
|
|
3771
3816
|
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--auto"
|
|
3772
|
-
},
|
|
3817
|
+
}, gn = { class: "docx-color-picker__section-label" }, _n = { class: "docx-color-picker__grid" }, vn = [
|
|
3773
3818
|
"title",
|
|
3774
3819
|
"aria-label",
|
|
3775
3820
|
"aria-selected",
|
|
3776
3821
|
"onClick"
|
|
3777
|
-
],
|
|
3822
|
+
], yn = { class: "docx-color-picker__section-label" }, bn = { class: "docx-color-picker__grid" }, xn = [
|
|
3778
3823
|
"title",
|
|
3779
3824
|
"aria-label",
|
|
3780
3825
|
"aria-selected",
|
|
3781
3826
|
"onClick"
|
|
3782
|
-
],
|
|
3827
|
+
], Sn = { class: "docx-color-picker__section-label" }, Cn = { class: "docx-color-picker__custom" }, wn = ["onKeydown"], Tn = ["disabled"], En = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
3783
3828
|
__name: "ColorPicker",
|
|
3784
3829
|
props: {
|
|
3785
3830
|
mode: {},
|
|
@@ -3845,9 +3890,9 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3845
3890
|
}
|
|
3846
3891
|
];
|
|
3847
3892
|
function p(e) {
|
|
3848
|
-
return e ? typeof e == "string" ? l.mode === "highlight" ?
|
|
3893
|
+
return e ? typeof e == "string" ? l.mode === "highlight" ? ae(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : re(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
|
|
3849
3894
|
}
|
|
3850
|
-
function
|
|
3895
|
+
function v(e) {
|
|
3851
3896
|
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
3852
3897
|
}
|
|
3853
3898
|
function b(e) {
|
|
@@ -3856,23 +3901,23 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3856
3901
|
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
3857
3902
|
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3858
3903
|
}
|
|
3859
|
-
function
|
|
3860
|
-
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() :
|
|
3904
|
+
function x(e, t) {
|
|
3905
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : ie(e, l.theme)) === t.toUpperCase() : !1;
|
|
3861
3906
|
}
|
|
3862
|
-
function
|
|
3907
|
+
function w(e) {
|
|
3863
3908
|
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
3864
3909
|
}
|
|
3865
|
-
function
|
|
3910
|
+
function T(e) {
|
|
3866
3911
|
return d(e === "text" ? "fontColor" : e === "highlight" ? "formattingBar.highlightColor" : "table.borderColor");
|
|
3867
3912
|
}
|
|
3868
|
-
function
|
|
3913
|
+
function D(e) {
|
|
3869
3914
|
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3870
3915
|
}
|
|
3871
|
-
let
|
|
3916
|
+
let O = S(!1), A = S(""), j = S(null), M = S(null), F = S(l.defaultColor ?? w(l.mode)), z = n(() => ne(l.theme?.colorScheme ?? null)), ee = n(() => z.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3872
3917
|
...e,
|
|
3873
3918
|
key: `${t}-${n}`
|
|
3874
|
-
})))), B = n(() => p(l.value)),
|
|
3875
|
-
|
|
3919
|
+
})))), B = n(() => p(l.value)), te = n(() => p(F.value)), V = n(() => T(l.mode)), H = n(() => l.icon ?? D(l.mode));
|
|
3920
|
+
P(() => [
|
|
3876
3921
|
l.value,
|
|
3877
3922
|
l.mode,
|
|
3878
3923
|
l.theme
|
|
@@ -3880,156 +3925,156 @@ var Lt = "en", Rt = (e) => It({
|
|
|
3880
3925
|
let e = p(l.value).replace(/^#/, "");
|
|
3881
3926
|
/^[0-9A-Fa-f]{6}$/.test(e) && (A.value = e.toUpperCase());
|
|
3882
3927
|
}, { immediate: !0 });
|
|
3883
|
-
let
|
|
3884
|
-
function
|
|
3885
|
-
let e =
|
|
3928
|
+
let oe = S({});
|
|
3929
|
+
function se() {
|
|
3930
|
+
let e = j.value;
|
|
3886
3931
|
if (!e) return;
|
|
3887
3932
|
let t = e.getBoundingClientRect();
|
|
3888
|
-
|
|
3933
|
+
oe.value = {
|
|
3889
3934
|
top: `${t.bottom + 4}px`,
|
|
3890
3935
|
left: `${t.left}px`
|
|
3891
3936
|
};
|
|
3892
3937
|
}
|
|
3893
|
-
function
|
|
3894
|
-
l.disabled || (
|
|
3938
|
+
function ce() {
|
|
3939
|
+
l.disabled || (O.value || se(), O.value = !O.value);
|
|
3895
3940
|
}
|
|
3896
|
-
function
|
|
3897
|
-
t && (
|
|
3941
|
+
function U(e, t = !0) {
|
|
3942
|
+
t && (F.value = e), u("change", e), O.value = !1;
|
|
3898
3943
|
}
|
|
3899
|
-
function
|
|
3900
|
-
l.disabled || u("change",
|
|
3944
|
+
function le() {
|
|
3945
|
+
l.disabled || u("change", F.value);
|
|
3901
3946
|
}
|
|
3902
|
-
function
|
|
3947
|
+
function ue(e) {
|
|
3903
3948
|
if (l.mode === "highlight") {
|
|
3904
|
-
|
|
3949
|
+
U(e.hex);
|
|
3905
3950
|
return;
|
|
3906
3951
|
}
|
|
3907
3952
|
let t = {
|
|
3908
3953
|
themeColor: e.themeSlot,
|
|
3909
3954
|
rgb: e.hex
|
|
3910
3955
|
};
|
|
3911
|
-
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade),
|
|
3956
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), U(t);
|
|
3912
3957
|
}
|
|
3913
|
-
function
|
|
3914
|
-
|
|
3958
|
+
function de(e) {
|
|
3959
|
+
U(l.mode === "highlight" ? e : { rgb: e });
|
|
3915
3960
|
}
|
|
3916
|
-
function
|
|
3917
|
-
|
|
3961
|
+
function W() {
|
|
3962
|
+
U(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3918
3963
|
}
|
|
3919
|
-
function
|
|
3964
|
+
function fe() {
|
|
3920
3965
|
let e = A.value.replace(/^#/, "").toUpperCase();
|
|
3921
|
-
|
|
3966
|
+
v(e) && (U(l.mode === "highlight" ? e : { rgb: e }), A.value = "");
|
|
3922
3967
|
}
|
|
3923
|
-
function
|
|
3968
|
+
function pe(e) {
|
|
3924
3969
|
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3925
3970
|
}
|
|
3926
|
-
function
|
|
3927
|
-
if (!
|
|
3971
|
+
function G(e) {
|
|
3972
|
+
if (!O.value) return;
|
|
3928
3973
|
let t = e.target;
|
|
3929
|
-
t instanceof Node && (
|
|
3974
|
+
t instanceof Node && (j.value?.contains(t) || M.value?.contains(t) || (O.value = !1));
|
|
3930
3975
|
}
|
|
3931
|
-
return _(() => document.addEventListener("mousedown",
|
|
3976
|
+
return _(() => document.addEventListener("mousedown", G)), g(() => document.removeEventListener("mousedown", G)), (n, r) => (y(), a("div", {
|
|
3932
3977
|
ref_key: "containerRef",
|
|
3933
|
-
ref:
|
|
3978
|
+
ref: j,
|
|
3934
3979
|
class: m(["docx-color-picker", t.className]),
|
|
3935
3980
|
style: h(t.style)
|
|
3936
|
-
}, [t.splitButton ? (
|
|
3981
|
+
}, [t.splitButton ? (y(), a("div", {
|
|
3937
3982
|
key: 0,
|
|
3938
3983
|
class: m(["docx-color-picker__split", { "is-disabled": t.disabled }])
|
|
3939
3984
|
}, [o("button", {
|
|
3940
3985
|
type: "button",
|
|
3941
3986
|
class: "docx-color-picker__apply",
|
|
3942
3987
|
disabled: t.disabled,
|
|
3943
|
-
title: t.title ??
|
|
3944
|
-
"aria-label": t.title ??
|
|
3945
|
-
onMousedown: r[0] ||=
|
|
3946
|
-
onClick:
|
|
3947
|
-
}, [c(
|
|
3948
|
-
name:
|
|
3988
|
+
title: t.title ?? V.value,
|
|
3989
|
+
"aria-label": t.title ?? V.value,
|
|
3990
|
+
onMousedown: r[0] ||= R(() => {}, ["prevent"]),
|
|
3991
|
+
onClick: le
|
|
3992
|
+
}, [c(cn, {
|
|
3993
|
+
name: H.value,
|
|
3949
3994
|
size: 18
|
|
3950
3995
|
}, null, 8, ["name"]), o("span", {
|
|
3951
|
-
class: m(["docx-color-picker__bar", { "is-light":
|
|
3952
|
-
style: h({ background:
|
|
3953
|
-
}, null, 6)], 40,
|
|
3996
|
+
class: m(["docx-color-picker__bar", { "is-light": te.value === "transparent" || b(te.value) }]),
|
|
3997
|
+
style: h({ background: te.value === "transparent" ? "#fff" : te.value })
|
|
3998
|
+
}, null, 6)], 40, ln), o("button", {
|
|
3954
3999
|
type: "button",
|
|
3955
|
-
class: m(["docx-color-picker__arrow", { "is-open":
|
|
4000
|
+
class: m(["docx-color-picker__arrow", { "is-open": O.value }]),
|
|
3956
4001
|
disabled: t.disabled,
|
|
3957
|
-
title: t.title ??
|
|
3958
|
-
"aria-label": t.title ??
|
|
4002
|
+
title: t.title ?? V.value,
|
|
4003
|
+
"aria-label": t.title ?? V.value,
|
|
3959
4004
|
"aria-haspopup": "true",
|
|
3960
|
-
"aria-expanded":
|
|
3961
|
-
onMousedown: r[1] ||=
|
|
3962
|
-
onClick:
|
|
3963
|
-
}, [c(
|
|
4005
|
+
"aria-expanded": O.value,
|
|
4006
|
+
onMousedown: r[1] ||= R(() => {}, ["prevent"]),
|
|
4007
|
+
onClick: ce
|
|
4008
|
+
}, [c(cn, {
|
|
3964
4009
|
name: "arrow_drop_down",
|
|
3965
4010
|
size: 18
|
|
3966
|
-
})], 42,
|
|
4011
|
+
})], 42, un)], 2)) : (y(), a("button", {
|
|
3967
4012
|
key: 1,
|
|
3968
4013
|
type: "button",
|
|
3969
|
-
class: m(["docx-color-picker__button", { "is-open":
|
|
4014
|
+
class: m(["docx-color-picker__button", { "is-open": O.value }]),
|
|
3970
4015
|
disabled: t.disabled,
|
|
3971
|
-
title: t.title ??
|
|
3972
|
-
"aria-label": t.title ??
|
|
4016
|
+
title: t.title ?? V.value,
|
|
4017
|
+
"aria-label": t.title ?? V.value,
|
|
3973
4018
|
"aria-haspopup": "true",
|
|
3974
|
-
"aria-expanded":
|
|
3975
|
-
onMousedown: r[2] ||=
|
|
3976
|
-
onClick:
|
|
3977
|
-
}, [o("span",
|
|
3978
|
-
name:
|
|
4019
|
+
"aria-expanded": O.value,
|
|
4020
|
+
onMousedown: r[2] ||= R(() => {}, ["prevent"]),
|
|
4021
|
+
onClick: ce
|
|
4022
|
+
}, [o("span", fn, [c(cn, {
|
|
4023
|
+
name: H.value,
|
|
3979
4024
|
size: 18
|
|
3980
4025
|
}, null, 8, ["name"]), o("span", {
|
|
3981
4026
|
class: m(["docx-color-picker__bar", { "is-light": B.value === "transparent" || b(B.value) }]),
|
|
3982
4027
|
style: h({ background: B.value === "transparent" ? "#fff" : B.value })
|
|
3983
|
-
}, null, 6)]), c(
|
|
4028
|
+
}, null, 6)]), c(cn, {
|
|
3984
4029
|
name: "arrow_drop_down",
|
|
3985
4030
|
size: 14
|
|
3986
|
-
})], 42,
|
|
4031
|
+
})], 42, dn)), O.value && !t.disabled ? (y(), a("div", {
|
|
3987
4032
|
key: 2,
|
|
3988
4033
|
ref_key: "panelRef",
|
|
3989
|
-
ref:
|
|
4034
|
+
ref: M,
|
|
3990
4035
|
class: "docx-color-picker__panel",
|
|
3991
|
-
style: h(
|
|
4036
|
+
style: h(oe.value),
|
|
3992
4037
|
role: "dialog",
|
|
3993
|
-
"aria-label":
|
|
3994
|
-
onMousedown:
|
|
4038
|
+
"aria-label": k(d)("colorPicker.ariaLabel", { type: V.value }),
|
|
4039
|
+
onMousedown: pe
|
|
3995
4040
|
}, [
|
|
3996
4041
|
o("button", {
|
|
3997
4042
|
type: "button",
|
|
3998
4043
|
class: "docx-color-picker__auto",
|
|
3999
|
-
onMousedown: r[3] ||=
|
|
4000
|
-
onClick:
|
|
4001
|
-
}, [t.mode === "highlight" ? (
|
|
4044
|
+
onMousedown: r[3] ||= R(() => {}, ["prevent"]),
|
|
4045
|
+
onClick: W
|
|
4046
|
+
}, [t.mode === "highlight" ? (y(), a("span", mn, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (y(), a("span", hn)), s(" " + E(t.autoLabel ?? (t.mode === "highlight" ? k(d)("colorPicker.noColor") : k(d)("colorPicker.automatic"))), 1)], 32),
|
|
4002
4047
|
r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4003
|
-
o("div",
|
|
4004
|
-
o("div",
|
|
4048
|
+
o("div", gn, E(k(d)("colorPicker.themeColors")), 1),
|
|
4049
|
+
o("div", _n, [(y(!0), a(e, null, C(ee.value, (e) => (y(), a("button", {
|
|
4005
4050
|
key: e.key,
|
|
4006
4051
|
type: "button",
|
|
4007
|
-
class: m(["docx-color-picker__cell", { "is-selected":
|
|
4052
|
+
class: m(["docx-color-picker__cell", { "is-selected": x(t.value, e.hex) }]),
|
|
4008
4053
|
style: h({ background: "#" + e.hex }),
|
|
4009
4054
|
title: e.label,
|
|
4010
4055
|
"aria-label": e.label,
|
|
4011
|
-
"aria-selected":
|
|
4012
|
-
onMousedown: r[4] ||=
|
|
4013
|
-
onClick: (t) =>
|
|
4014
|
-
}, null, 46,
|
|
4056
|
+
"aria-selected": x(t.value, e.hex),
|
|
4057
|
+
onMousedown: r[4] ||= R(() => {}, ["prevent"]),
|
|
4058
|
+
onClick: (t) => ue(e)
|
|
4059
|
+
}, null, 46, vn))), 128))]),
|
|
4015
4060
|
r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4016
|
-
o("div",
|
|
4017
|
-
o("div",
|
|
4061
|
+
o("div", yn, E(k(d)("colorPicker.standardColors")), 1),
|
|
4062
|
+
o("div", bn, [(y(), a(e, null, C(f, (e) => o("button", {
|
|
4018
4063
|
key: e.hex,
|
|
4019
4064
|
type: "button",
|
|
4020
|
-
class: m(["docx-color-picker__cell", { "is-selected":
|
|
4065
|
+
class: m(["docx-color-picker__cell", { "is-selected": x(t.value, e.hex) }]),
|
|
4021
4066
|
style: h({ background: "#" + e.hex }),
|
|
4022
|
-
title:
|
|
4023
|
-
"aria-label":
|
|
4024
|
-
"aria-selected":
|
|
4025
|
-
onMousedown: r[5] ||=
|
|
4026
|
-
onClick: (t) =>
|
|
4027
|
-
}, null, 46,
|
|
4067
|
+
title: k(d)(e.nameKey),
|
|
4068
|
+
"aria-label": k(d)(e.nameKey),
|
|
4069
|
+
"aria-selected": x(t.value, e.hex),
|
|
4070
|
+
onMousedown: r[5] ||= R(() => {}, ["prevent"]),
|
|
4071
|
+
onClick: (t) => de(e.hex)
|
|
4072
|
+
}, null, 46, xn)), 64))]),
|
|
4028
4073
|
r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4029
|
-
o("div",
|
|
4030
|
-
o("div",
|
|
4074
|
+
o("div", Sn, E(k(d)("colorPicker.customColor")), 1),
|
|
4075
|
+
o("div", Cn, [
|
|
4031
4076
|
r[11] ||= o("span", { class: "docx-color-picker__hash" }, "#", -1),
|
|
4032
|
-
|
|
4077
|
+
I(o("input", {
|
|
4033
4078
|
"onUpdate:modelValue": r[6] ||= (e) => A.value = e,
|
|
4034
4079
|
type: "text",
|
|
4035
4080
|
class: "docx-color-picker__hex",
|
|
@@ -4037,20 +4082,20 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4037
4082
|
maxlength: "6",
|
|
4038
4083
|
"aria-label": "Custom hex color",
|
|
4039
4084
|
onInput: r[7] ||= (e) => A.value = A.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4040
|
-
onKeydown:
|
|
4041
|
-
onMousedown: r[8] ||=
|
|
4042
|
-
}, null, 40,
|
|
4085
|
+
onKeydown: L(R(fe, ["prevent"]), ["enter"]),
|
|
4086
|
+
onMousedown: r[8] ||= R(() => {}, ["stop"])
|
|
4087
|
+
}, null, 40, wn), [[N, A.value]]),
|
|
4043
4088
|
o("button", {
|
|
4044
4089
|
type: "button",
|
|
4045
4090
|
class: "docx-color-picker__apply-btn",
|
|
4046
|
-
disabled: !
|
|
4047
|
-
onMousedown: r[9] ||=
|
|
4048
|
-
onClick:
|
|
4049
|
-
},
|
|
4091
|
+
disabled: !v(A.value),
|
|
4092
|
+
onMousedown: r[9] ||= R(() => {}, ["prevent"]),
|
|
4093
|
+
onClick: fe
|
|
4094
|
+
}, E(k(d)("common.apply")), 41, Tn)
|
|
4050
4095
|
])
|
|
4051
|
-
], 44,
|
|
4096
|
+
], 44, pn)) : i("", !0)], 6));
|
|
4052
4097
|
}
|
|
4053
|
-
}), [["__scopeId", "data-v-57d7b2cc"]]),
|
|
4098
|
+
}), [["__scopeId", "data-v-57d7b2cc"]]), Dn = ["value", "autofocus"], On = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4054
4099
|
__name: "DatePickerPopover",
|
|
4055
4100
|
props: {
|
|
4056
4101
|
value: {},
|
|
@@ -4063,7 +4108,7 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4063
4108
|
setup(e, { emit: t }) {
|
|
4064
4109
|
let r = e, i = t;
|
|
4065
4110
|
function o(e) {
|
|
4066
|
-
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ?
|
|
4111
|
+
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? V({
|
|
4067
4112
|
text: e,
|
|
4068
4113
|
units: "codeUnits",
|
|
4069
4114
|
end: 10
|
|
@@ -4073,15 +4118,15 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4073
4118
|
function c(e) {
|
|
4074
4119
|
e.target instanceof HTMLInputElement && i("change", e.target.value || null);
|
|
4075
4120
|
}
|
|
4076
|
-
return (t, n) => (
|
|
4121
|
+
return (t, n) => (y(), a("input", {
|
|
4077
4122
|
class: "folio-default-date-input",
|
|
4078
4123
|
type: "date",
|
|
4079
4124
|
value: s.value,
|
|
4080
4125
|
autofocus: e.defaultOpen,
|
|
4081
4126
|
onChange: c
|
|
4082
|
-
}, null, 40,
|
|
4127
|
+
}, null, 40, Dn));
|
|
4083
4128
|
}
|
|
4084
|
-
}), [["__scopeId", "data-v-3dda46a0"]]),
|
|
4129
|
+
}), [["__scopeId", "data-v-3dda46a0"]]), kn = ["aria-label"], An = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4085
4130
|
inheritAttrs: !1,
|
|
4086
4131
|
__name: "Dialog",
|
|
4087
4132
|
props: {
|
|
@@ -4103,20 +4148,20 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4103
4148
|
function u() {
|
|
4104
4149
|
s.closeOnBackdrop && l();
|
|
4105
4150
|
}
|
|
4106
|
-
return (n, s) => (
|
|
4151
|
+
return (n, s) => (y(), r(t, { to: "body" }, [e.open ? (y(), a("div", {
|
|
4107
4152
|
key: 0,
|
|
4108
4153
|
class: m(["folio-default-dialog-backdrop", e.backdropClass]),
|
|
4109
|
-
onMousedown:
|
|
4154
|
+
onMousedown: R(u, ["self"])
|
|
4110
4155
|
}, [o("div", f({
|
|
4111
4156
|
class: ["folio-default-dialog-popup", e.className],
|
|
4112
4157
|
role: "dialog",
|
|
4113
4158
|
"aria-label": e.ariaLabel
|
|
4114
4159
|
}, n.$attrs, {
|
|
4115
|
-
onKeydown:
|
|
4116
|
-
onMousedown: s[0] ||=
|
|
4117
|
-
}), [
|
|
4160
|
+
onKeydown: L(l, ["escape"]),
|
|
4161
|
+
onMousedown: s[0] ||= R(() => {}, ["stop"])
|
|
4162
|
+
}), [w(n.$slots, "default", {}, void 0, !0)], 16, kn)], 34)) : i("", !0)]));
|
|
4118
4163
|
}
|
|
4119
|
-
}), [["__scopeId", "data-v-76309dbc"]]),
|
|
4164
|
+
}), [["__scopeId", "data-v-76309dbc"]]), jn = ["value"], Mn = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4120
4165
|
__name: "Input",
|
|
4121
4166
|
props: {
|
|
4122
4167
|
modelValue: {},
|
|
@@ -4129,19 +4174,19 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4129
4174
|
function i(e) {
|
|
4130
4175
|
e.target instanceof HTMLInputElement && r("update:modelValue", e.target.value);
|
|
4131
4176
|
}
|
|
4132
|
-
let o =
|
|
4177
|
+
let o = S(null);
|
|
4133
4178
|
return t({
|
|
4134
4179
|
focus: () => o.value?.focus(),
|
|
4135
4180
|
select: () => o.value?.select()
|
|
4136
|
-
}), (t, n) => (
|
|
4181
|
+
}), (t, n) => (y(), a("input", {
|
|
4137
4182
|
ref_key: "inputRef",
|
|
4138
4183
|
ref: o,
|
|
4139
4184
|
class: m(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
|
|
4140
4185
|
value: e.modelValue,
|
|
4141
4186
|
onInput: i
|
|
4142
|
-
}, null, 42,
|
|
4187
|
+
}, null, 42, jn));
|
|
4143
4188
|
}
|
|
4144
|
-
}), [["__scopeId", "data-v-a34b139d"]]),
|
|
4189
|
+
}), [["__scopeId", "data-v-a34b139d"]]), Nn = 4, Pn = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4145
4190
|
__name: "Popover",
|
|
4146
4191
|
props: {
|
|
4147
4192
|
open: { type: Boolean },
|
|
@@ -4155,12 +4200,12 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4155
4200
|
},
|
|
4156
4201
|
emits: ["close", "update:open"],
|
|
4157
4202
|
setup(e, { emit: t }) {
|
|
4158
|
-
let n = e, r = t, o =
|
|
4203
|
+
let n = e, r = t, o = S(null), s = S(null), c = S({ position: "fixed" });
|
|
4159
4204
|
function l() {
|
|
4160
4205
|
let e = o.value;
|
|
4161
4206
|
if (!e) return;
|
|
4162
4207
|
let t = e.getBoundingClientRect(), r = { position: "fixed" };
|
|
4163
|
-
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top +
|
|
4208
|
+
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + Nn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + Nn)}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;
|
|
4164
4209
|
}
|
|
4165
4210
|
function u() {
|
|
4166
4211
|
r("update:open", !n.open), n.open && r("close");
|
|
@@ -4176,51 +4221,51 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4176
4221
|
function p(e) {
|
|
4177
4222
|
e.key === "Escape" && n.open && d();
|
|
4178
4223
|
}
|
|
4179
|
-
function
|
|
4224
|
+
function v(e) {
|
|
4180
4225
|
n.closeOnScroll && n.open && (e.target instanceof Node && s.value?.contains(e.target) || (e.target instanceof Node && e.target !== document && o.value && e.target.contains(o.value) ? l() : d()));
|
|
4181
4226
|
}
|
|
4182
4227
|
function b() {
|
|
4183
4228
|
n.open && l();
|
|
4184
4229
|
}
|
|
4185
|
-
function
|
|
4186
|
-
document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll",
|
|
4230
|
+
function x() {
|
|
4231
|
+
document.addEventListener("mousedown", f), document.addEventListener("keydown", p), window.addEventListener("scroll", v, !0), window.addEventListener("resize", b);
|
|
4187
4232
|
}
|
|
4188
|
-
function
|
|
4189
|
-
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll",
|
|
4233
|
+
function C() {
|
|
4234
|
+
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", p), window.removeEventListener("scroll", v, !0), window.removeEventListener("resize", b);
|
|
4190
4235
|
}
|
|
4191
|
-
return
|
|
4192
|
-
e ? (l(),
|
|
4193
|
-
}),
|
|
4194
|
-
n.open && (l(),
|
|
4195
|
-
}), g(
|
|
4236
|
+
return P(() => n.open, (e) => {
|
|
4237
|
+
e ? (l(), x()) : C();
|
|
4238
|
+
}), P(() => n.placement, () => n.open && l()), _(() => {
|
|
4239
|
+
n.open && (l(), x());
|
|
4240
|
+
}), g(C), (t, n) => (y(), a("span", {
|
|
4196
4241
|
ref_key: "rootRef",
|
|
4197
4242
|
ref: o,
|
|
4198
4243
|
class: "docx-popover"
|
|
4199
|
-
}, [
|
|
4244
|
+
}, [w(t.$slots, "trigger", {
|
|
4200
4245
|
toggle: u,
|
|
4201
4246
|
open: e.open
|
|
4202
|
-
}, void 0, !0), e.open ? (
|
|
4247
|
+
}, void 0, !0), e.open ? (y(), a("div", {
|
|
4203
4248
|
key: 0,
|
|
4204
4249
|
ref_key: "panelRef",
|
|
4205
4250
|
ref: s,
|
|
4206
4251
|
class: m(["docx-popover__panel", e.panelClass]),
|
|
4207
4252
|
style: h([c.value, e.panelStyle ?? {}]),
|
|
4208
|
-
onMousedown: n[0] ||=
|
|
4209
|
-
}, [
|
|
4253
|
+
onMousedown: n[0] ||= R(() => {}, ["stop"])
|
|
4254
|
+
}, [w(t.$slots, "panel", {}, void 0, !0)], 38)) : i("", !0)], 512));
|
|
4210
4255
|
}
|
|
4211
|
-
}), [["__scopeId", "data-v-0de72b4f"]]),
|
|
4256
|
+
}), [["__scopeId", "data-v-0de72b4f"]]), Fn = ["disabled", "onClick"], In = {
|
|
4212
4257
|
key: 0,
|
|
4213
4258
|
class: "docx-menu-dropdown__separator"
|
|
4214
|
-
},
|
|
4259
|
+
}, Ln = ["onMouseenter", "onMouseleave"], Rn = ["disabled", "onClick"], zn = { class: "docx-menu-dropdown__label" }, Bn = {
|
|
4215
4260
|
key: 1,
|
|
4216
4261
|
class: "docx-menu-dropdown__shortcut"
|
|
4217
|
-
},
|
|
4262
|
+
}, Vn = {
|
|
4218
4263
|
key: 2,
|
|
4219
4264
|
class: "docx-menu-dropdown__chevron"
|
|
4220
|
-
},
|
|
4265
|
+
}, Hn = {
|
|
4221
4266
|
key: 0,
|
|
4222
4267
|
class: "docx-menu-dropdown__submenu"
|
|
4223
|
-
},
|
|
4268
|
+
}, Un = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4224
4269
|
__name: "MenuDropdown",
|
|
4225
4270
|
props: {
|
|
4226
4271
|
label: {},
|
|
@@ -4235,33 +4280,33 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4235
4280
|
function n(e) {
|
|
4236
4281
|
return "type" in e && e.type === "separator";
|
|
4237
4282
|
}
|
|
4238
|
-
let l =
|
|
4283
|
+
let l = S(!1), u = S(null);
|
|
4239
4284
|
function d() {
|
|
4240
4285
|
l.value = !1, u.value = null;
|
|
4241
4286
|
}
|
|
4242
4287
|
function f(e) {
|
|
4243
4288
|
e.disabled || e.submenu || (e.onClick?.(), d());
|
|
4244
4289
|
}
|
|
4245
|
-
return (p, h) => (
|
|
4290
|
+
return (p, h) => (y(), r(Pn, {
|
|
4246
4291
|
open: l.value,
|
|
4247
4292
|
"onUpdate:open": h[2] ||= (e) => l.value = e,
|
|
4248
4293
|
onClose: d
|
|
4249
4294
|
}, {
|
|
4250
|
-
trigger:
|
|
4295
|
+
trigger: F(({ toggle: e }) => [o("button", {
|
|
4251
4296
|
type: "button",
|
|
4252
4297
|
class: m(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": l.value }]),
|
|
4253
4298
|
disabled: t.disabled,
|
|
4254
|
-
onMousedown: h[0] ||=
|
|
4255
|
-
onClick:
|
|
4256
|
-
}, [s(
|
|
4299
|
+
onMousedown: h[0] ||= R(() => {}, ["prevent"]),
|
|
4300
|
+
onClick: R(e, ["prevent"])
|
|
4301
|
+
}, [s(E(t.label) + " ", 1), t.showChevron ? (y(), r(cn, {
|
|
4257
4302
|
key: 0,
|
|
4258
4303
|
name: "arrow_drop_down",
|
|
4259
4304
|
size: 16
|
|
4260
|
-
})) : i("", !0)], 42,
|
|
4261
|
-
panel:
|
|
4305
|
+
})) : i("", !0)], 42, Fn)]),
|
|
4306
|
+
panel: F(() => [o("div", {
|
|
4262
4307
|
class: "docx-menu-dropdown__menu",
|
|
4263
|
-
onMousedown: h[1] ||=
|
|
4264
|
-
}, [(
|
|
4308
|
+
onMousedown: h[1] ||= R(() => {}, ["prevent"])
|
|
4309
|
+
}, [(y(!0), a(e, null, C(t.items, (t, s) => (y(), a(e, { key: s }, [n(t) ? (y(), a("div", In)) : (y(), a("div", {
|
|
4265
4310
|
key: 1,
|
|
4266
4311
|
class: "docx-menu-dropdown__wrap",
|
|
4267
4312
|
onMouseenter: (e) => t.submenu ? u.value = s : void 0,
|
|
@@ -4270,27 +4315,27 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4270
4315
|
type: "button",
|
|
4271
4316
|
class: m(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": t.disabled }]),
|
|
4272
4317
|
disabled: t.disabled,
|
|
4273
|
-
onClick:
|
|
4318
|
+
onClick: R((e) => f(t), ["prevent"])
|
|
4274
4319
|
}, [
|
|
4275
|
-
t.icon ? (
|
|
4320
|
+
t.icon ? (y(), r(cn, {
|
|
4276
4321
|
key: 0,
|
|
4277
4322
|
name: t.icon,
|
|
4278
4323
|
size: 18
|
|
4279
4324
|
}, null, 8, ["name"])) : i("", !0),
|
|
4280
|
-
o("span",
|
|
4281
|
-
t.shortcut ? (
|
|
4282
|
-
t.submenu ? (
|
|
4325
|
+
o("span", zn, E(t.label), 1),
|
|
4326
|
+
t.shortcut ? (y(), a("span", Bn, E(t.shortcut), 1)) : i("", !0),
|
|
4327
|
+
t.submenu ? (y(), a("span", Vn, [c(cn, {
|
|
4283
4328
|
name: "keyboard_arrow_right",
|
|
4284
4329
|
size: 16
|
|
4285
4330
|
})])) : i("", !0)
|
|
4286
|
-
], 10,
|
|
4331
|
+
], 10, Rn), t.submenu && u.value === s ? (y(), a("div", Hn, [w(p.$slots, "submenu", {
|
|
4287
4332
|
item: t,
|
|
4288
4333
|
closeMenu: d
|
|
4289
|
-
}, void 0, !0)])) : i("", !0)], 40,
|
|
4334
|
+
}, void 0, !0)])) : i("", !0)], 40, Ln))], 64))), 128))], 32)]),
|
|
4290
4335
|
_: 3
|
|
4291
4336
|
}, 8, ["open"]));
|
|
4292
4337
|
}
|
|
4293
|
-
}), [["__scopeId", "data-v-4ff44889"]]),
|
|
4338
|
+
}), [["__scopeId", "data-v-4ff44889"]]), Wn = ["aria-label"], Gn = [
|
|
4294
4339
|
"data-depth",
|
|
4295
4340
|
"aria-current",
|
|
4296
4341
|
"aria-label",
|
|
@@ -4298,13 +4343,13 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4298
4343
|
"tabindex",
|
|
4299
4344
|
"onClick",
|
|
4300
4345
|
"onFocus"
|
|
4301
|
-
],
|
|
4346
|
+
], Kn = {
|
|
4302
4347
|
"aria-hidden": "true",
|
|
4303
4348
|
class: "folio-outline-tick-label"
|
|
4304
|
-
},
|
|
4349
|
+
}, qn = {
|
|
4305
4350
|
key: 1,
|
|
4306
4351
|
class: "folio-outline-item-label"
|
|
4307
|
-
},
|
|
4352
|
+
}, Jn = 12, Yn = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4308
4353
|
__name: "OutlineRail",
|
|
4309
4354
|
props: {
|
|
4310
4355
|
items: {},
|
|
@@ -4318,14 +4363,14 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4318
4363
|
presentation: { default: "panel" }
|
|
4319
4364
|
},
|
|
4320
4365
|
setup(t) {
|
|
4321
|
-
let r = t, s =
|
|
4366
|
+
let r = t, s = S(null), c = S(0), l = S(0), u = S(!1), d = n(() => r.items.findIndex((e) => e.id === r.activeId)), f = n(() => {
|
|
4322
4367
|
let e = Infinity;
|
|
4323
4368
|
for (let t of r.items) e = Math.min(e, t.level);
|
|
4324
4369
|
return e;
|
|
4325
4370
|
}), _ = (e) => r.presentation === "rail" ? ["folio-outline-tick", e.id === r.activeId ? "folio-outline-tick--active" : void 0] : ["folio-outline-item", e.id === r.activeId ? "folio-outline-item--active" : void 0];
|
|
4326
|
-
|
|
4371
|
+
P(d, (e) => {
|
|
4327
4372
|
!u.value && e >= 0 && (l.value = e);
|
|
4328
|
-
}, { immediate: !0 }),
|
|
4373
|
+
}, { immediate: !0 }), P([d, () => r.presentation], async ([e, t]) => {
|
|
4329
4374
|
if (t !== "panel" || e < 0) return;
|
|
4330
4375
|
await p();
|
|
4331
4376
|
let n = s.value, r = n?.children.item(e);
|
|
@@ -4336,16 +4381,16 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4336
4381
|
immediate: !0,
|
|
4337
4382
|
flush: "post"
|
|
4338
4383
|
});
|
|
4339
|
-
let
|
|
4340
|
-
|
|
4341
|
-
|
|
4384
|
+
let v = null;
|
|
4385
|
+
P([s, () => r.presentation], ([e, t]) => {
|
|
4386
|
+
v?.disconnect(), v = null, c.value = 0, t === "rail" && e && typeof ResizeObserver < "u" && (c.value = e.clientHeight, v = new ResizeObserver(() => {
|
|
4342
4387
|
c.value = e.clientHeight;
|
|
4343
|
-
}),
|
|
4344
|
-
}, { flush: "post" }), g(() =>
|
|
4388
|
+
}), v.observe(e));
|
|
4389
|
+
}, { flush: "post" }), g(() => v?.disconnect());
|
|
4345
4390
|
let b = n(() => {
|
|
4346
4391
|
if (r.presentation !== "rail" || c.value === 0) return [];
|
|
4347
|
-
let e = Math.max(0, c.value -
|
|
4348
|
-
if (t *
|
|
4392
|
+
let e = Math.max(0, c.value - Jn), t = r.items.length;
|
|
4393
|
+
if (t * Jn > c.value) {
|
|
4349
4394
|
let n = t > 1 ? e / (t - 1) : 0;
|
|
4350
4395
|
return r.items.map((e, t) => t * n);
|
|
4351
4396
|
}
|
|
@@ -4353,16 +4398,16 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4353
4398
|
let o = n ? r.resolvePct?.(i.id, n) ?? null : null;
|
|
4354
4399
|
return (o === null ? a / Math.max(1, t - 1) : o / 100) * e;
|
|
4355
4400
|
});
|
|
4356
|
-
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) +
|
|
4401
|
+
for (let e = 1; e < i.length; e++) i[e] = Math.max(i[e] ?? 0, (i[e - 1] ?? 0) + Jn);
|
|
4357
4402
|
for (let t = i.length - 1; t >= 0; t--) {
|
|
4358
|
-
let n = t === i.length - 1 ? e : (i[t + 1] ?? e) -
|
|
4403
|
+
let n = t === i.length - 1 ? e : (i[t + 1] ?? e) - Jn;
|
|
4359
4404
|
i[t] = Math.min(i[t] ?? 0, n);
|
|
4360
4405
|
}
|
|
4361
4406
|
return i;
|
|
4362
|
-
}),
|
|
4407
|
+
}), x = (e) => {
|
|
4363
4408
|
let t = r.getScrollContainer();
|
|
4364
4409
|
t && r.onJump(e, t);
|
|
4365
|
-
},
|
|
4410
|
+
}, w = (e) => {
|
|
4366
4411
|
let t = r.items.length - 1, n;
|
|
4367
4412
|
switch (e.key) {
|
|
4368
4413
|
case "ArrowDown":
|
|
@@ -4380,19 +4425,19 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4380
4425
|
default: return;
|
|
4381
4426
|
}
|
|
4382
4427
|
e.preventDefault(), l.value = n, s.value?.querySelectorAll("button").item(n)?.focus();
|
|
4383
|
-
},
|
|
4428
|
+
}, T = (e) => {
|
|
4384
4429
|
e.relatedTarget instanceof Node && s.value?.contains(e.relatedTarget) || (u.value = !1);
|
|
4385
4430
|
};
|
|
4386
|
-
return (n, r) => t.items.length >= 2 ? (
|
|
4431
|
+
return (n, r) => t.items.length >= 2 ? (y(), a("ol", {
|
|
4387
4432
|
key: 0,
|
|
4388
4433
|
ref_key: "listRef",
|
|
4389
4434
|
ref: s,
|
|
4390
4435
|
"aria-label": t.ariaLabel,
|
|
4391
4436
|
class: m(t.presentation === "rail" ? "folio-outline-ticks" : "folio-outline-list"),
|
|
4392
|
-
onKeydown:
|
|
4437
|
+
onKeydown: w,
|
|
4393
4438
|
onFocusin: r[0] ||= (e) => u.value = !0,
|
|
4394
|
-
onFocusout:
|
|
4395
|
-
}, [(
|
|
4439
|
+
onFocusout: T
|
|
4440
|
+
}, [(y(!0), a(e, null, C(t.items, (n, i) => (y(), a("li", {
|
|
4396
4441
|
key: n.id,
|
|
4397
4442
|
class: m(t.presentation === "rail" ? "folio-outline-tick-slot" : void 0),
|
|
4398
4443
|
style: h(t.presentation === "rail" ? { top: (b.value[i] ?? 0) + "px" } : void 0)
|
|
@@ -4404,18 +4449,18 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4404
4449
|
"aria-label": t.presentation === "rail" ? n.label : void 0,
|
|
4405
4450
|
title: t.presentation === "panel" ? n.label : void 0,
|
|
4406
4451
|
tabindex: i === l.value ? 0 : -1,
|
|
4407
|
-
onClick: (e) =>
|
|
4452
|
+
onClick: (e) => x(n.id),
|
|
4408
4453
|
onFocus: (e) => l.value = i
|
|
4409
|
-
}, [t.presentation === "rail" ? (
|
|
4454
|
+
}, [t.presentation === "rail" ? (y(), a(e, { key: 0 }, [r[1] ||= o("span", {
|
|
4410
4455
|
"aria-hidden": "true",
|
|
4411
4456
|
class: "folio-outline-tick-mark"
|
|
4412
|
-
}, null, -1), o("span",
|
|
4457
|
+
}, null, -1), o("span", Kn, E(n.label), 1)], 64)) : (y(), a("span", qn, E(n.label), 1))], 42, Gn)], 6))), 128))], 42, Wn)) : i("", !0);
|
|
4413
4458
|
}
|
|
4414
|
-
}), [["__scopeId", "data-v-c628bcf3"]]),
|
|
4459
|
+
}), [["__scopeId", "data-v-c628bcf3"]]), Xn = ["disabled", "value"], Zn = {
|
|
4415
4460
|
key: 0,
|
|
4416
4461
|
disabled: "",
|
|
4417
4462
|
value: ""
|
|
4418
|
-
},
|
|
4463
|
+
}, Qn = ["disabled", "value"], $n = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4419
4464
|
__name: "Select",
|
|
4420
4465
|
props: {
|
|
4421
4466
|
value: {},
|
|
@@ -4430,59 +4475,59 @@ var Lt = "en", Rt = (e) => It({
|
|
|
4430
4475
|
function o(e) {
|
|
4431
4476
|
e.target instanceof HTMLSelectElement && r("change", e.target.value);
|
|
4432
4477
|
}
|
|
4433
|
-
return (n, r) => (
|
|
4478
|
+
return (n, r) => (y(), a("select", {
|
|
4434
4479
|
class: m(["folio-default-select", t.className]),
|
|
4435
4480
|
disabled: t.disabled,
|
|
4436
4481
|
value: t.value,
|
|
4437
4482
|
onChange: o
|
|
4438
|
-
}, [t.placeholder && t.value === void 0 ? (
|
|
4483
|
+
}, [t.placeholder && t.value === void 0 ? (y(), a("option", Zn, E(t.placeholder), 1)) : i("", !0), (y(!0), a(e, null, C(t.items, (e) => (y(), a("option", {
|
|
4439
4484
|
key: e.value,
|
|
4440
4485
|
disabled: e.disabled,
|
|
4441
4486
|
value: e.value
|
|
4442
|
-
},
|
|
4487
|
+
}, E(e.label), 9, Qn))), 128))], 42, Xn));
|
|
4443
4488
|
}
|
|
4444
|
-
}), [["__scopeId", "data-v-0925daaa"]]),
|
|
4445
|
-
Button:
|
|
4446
|
-
Dialog:
|
|
4447
|
-
Select:
|
|
4448
|
-
Menu:
|
|
4449
|
-
Popover:
|
|
4450
|
-
Input:
|
|
4451
|
-
Checkbox:
|
|
4452
|
-
ColorPicker:
|
|
4453
|
-
DatePickerPopover:
|
|
4454
|
-
OutlineRail:
|
|
4455
|
-
},
|
|
4456
|
-
function
|
|
4489
|
+
}), [["__scopeId", "data-v-0925daaa"]]), er = {
|
|
4490
|
+
Button: en,
|
|
4491
|
+
Dialog: An,
|
|
4492
|
+
Select: $n,
|
|
4493
|
+
Menu: Un,
|
|
4494
|
+
Popover: Pn,
|
|
4495
|
+
Input: Mn,
|
|
4496
|
+
Checkbox: rn,
|
|
4497
|
+
ColorPicker: En,
|
|
4498
|
+
DatePickerPopover: On,
|
|
4499
|
+
OutlineRail: Yn
|
|
4500
|
+
}, tr = Symbol("folio-ui-components");
|
|
4501
|
+
function nr(e) {
|
|
4457
4502
|
return e ? {
|
|
4458
|
-
...
|
|
4503
|
+
...er,
|
|
4459
4504
|
...e
|
|
4460
|
-
} :
|
|
4505
|
+
} : er;
|
|
4461
4506
|
}
|
|
4462
|
-
function
|
|
4463
|
-
|
|
4507
|
+
function rr(e) {
|
|
4508
|
+
b(tr, nr(e));
|
|
4464
4509
|
}
|
|
4465
4510
|
function Q() {
|
|
4466
|
-
return u(
|
|
4511
|
+
return u(tr, er);
|
|
4467
4512
|
}
|
|
4468
|
-
var
|
|
4513
|
+
var ir = l({
|
|
4469
4514
|
name: "FolioUIProvider",
|
|
4470
4515
|
props: { components: {
|
|
4471
4516
|
type: Object,
|
|
4472
4517
|
default: void 0
|
|
4473
4518
|
} },
|
|
4474
4519
|
setup(e, { slots: t }) {
|
|
4475
|
-
return
|
|
4520
|
+
return rr(e.components), () => t.default?.();
|
|
4476
4521
|
}
|
|
4477
|
-
}),
|
|
4522
|
+
}), ar = { class: "find-replace-dialog__header" }, or = { class: "find-replace-dialog__title" }, sr = { class: "find-replace-dialog__body" }, cr = { class: "find-replace-dialog__row" }, lr = { class: "find-replace-dialog__count" }, ur = { class: "find-replace-dialog__options" }, dr = {
|
|
4478
4523
|
key: 0,
|
|
4479
4524
|
class: "find-replace-dialog__row"
|
|
4480
|
-
},
|
|
4525
|
+
}, fr = {
|
|
4481
4526
|
key: 1,
|
|
4482
4527
|
role: "status",
|
|
4483
4528
|
"aria-live": "polite",
|
|
4484
4529
|
class: "find-replace-dialog__summary"
|
|
4485
|
-
},
|
|
4530
|
+
}, pr = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4486
4531
|
__name: "FindReplaceDialog",
|
|
4487
4532
|
props: {
|
|
4488
4533
|
isOpen: { type: Boolean },
|
|
@@ -4490,174 +4535,174 @@ var Yn = l({
|
|
|
4490
4535
|
},
|
|
4491
4536
|
emits: ["close"],
|
|
4492
4537
|
setup(e, { emit: t }) {
|
|
4493
|
-
let { t: l } = X(), { Button: u, Input: f, Checkbox: h } = Q(), g = e, _ = t,
|
|
4494
|
-
|
|
4538
|
+
let { t: l } = X(), { Button: u, Input: f, Checkbox: h } = Q(), g = e, _ = t, v = S(null), b = S(!1), x = S(null), C = n(() => g.search.replacementRefusal.value !== null), { searchText: w, replaceText: T, options: O, matches: A, currentIndex: j, canReplaceCurrent: M, performSearch: N, scheduleSearch: I, findNext: z, findPrevious: ee, replaceCurrent: B, replaceAll: te, clear: ne } = g.search, re = () => {
|
|
4539
|
+
x.value = te();
|
|
4495
4540
|
};
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
() =>
|
|
4499
|
-
() =>
|
|
4541
|
+
P([
|
|
4542
|
+
w,
|
|
4543
|
+
() => O.matchCase,
|
|
4544
|
+
() => O.matchWholeWord
|
|
4500
4545
|
], () => {
|
|
4501
|
-
|
|
4546
|
+
x.value = null;
|
|
4502
4547
|
});
|
|
4503
|
-
let
|
|
4548
|
+
let ie = D(O, "matchCase"), ae = D(O, "matchWholeWord"), V = n(() => w.value.trim() ? A.value.length === 0 ? l("findReplace.noResults") : j.value < 0 ? l("dialogs.findReplace.matchesFound", { total: A.value.length }) : l("findReplace.matchCounter", {
|
|
4504
4549
|
current: j.value + 1,
|
|
4505
4550
|
total: A.value.length
|
|
4506
4551
|
}) : "");
|
|
4507
|
-
|
|
4508
|
-
e ? (await p(),
|
|
4552
|
+
P(() => g.isOpen, async (e) => {
|
|
4553
|
+
e ? (await p(), v.value?.focus(), v.value?.select(), N()) : ne();
|
|
4509
4554
|
});
|
|
4510
|
-
function
|
|
4511
|
-
|
|
4555
|
+
function H() {
|
|
4556
|
+
x.value = null, ne(), _("close");
|
|
4512
4557
|
}
|
|
4513
|
-
function
|
|
4514
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? ee() : z()) : e.key === "Escape" &&
|
|
4558
|
+
function oe(e) {
|
|
4559
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? ee() : z()) : e.key === "Escape" && H();
|
|
4515
4560
|
}
|
|
4516
|
-
return (t, n) => e.isOpen ? (
|
|
4561
|
+
return (t, n) => e.isOpen ? (y(), a("div", {
|
|
4517
4562
|
key: 0,
|
|
4518
4563
|
class: "find-replace-dialog",
|
|
4519
4564
|
"data-testid": "find-replace-dialog",
|
|
4520
|
-
onMousedown: n[5] ||=
|
|
4521
|
-
onKeydown: n[6] ||=
|
|
4522
|
-
}, [o("div",
|
|
4565
|
+
onMousedown: n[5] ||= R(() => {}, ["stop"]),
|
|
4566
|
+
onKeydown: n[6] ||= R(() => {}, ["stop"])
|
|
4567
|
+
}, [o("div", ar, [o("span", or, E(b.value ? k(l)("findReplace.findAndReplace") : k(l)("findReplace.find")), 1), c(k(u), {
|
|
4523
4568
|
class: "find-replace-dialog__close",
|
|
4524
4569
|
variant: "ghost",
|
|
4525
4570
|
size: "icon-xs",
|
|
4526
|
-
onClick:
|
|
4527
|
-
title:
|
|
4571
|
+
onClick: H,
|
|
4572
|
+
title: k(l)("findReplace.close")
|
|
4528
4573
|
}, {
|
|
4529
|
-
default:
|
|
4574
|
+
default: F(() => [...n[7] ||= [s(" ✕ ", -1)]]),
|
|
4530
4575
|
_: 1
|
|
4531
|
-
}, 8, ["title"])]), o("div",
|
|
4532
|
-
o("div",
|
|
4533
|
-
c(
|
|
4576
|
+
}, 8, ["title"])]), o("div", sr, [
|
|
4577
|
+
o("div", cr, [
|
|
4578
|
+
c(k(f), {
|
|
4534
4579
|
ref_key: "searchInputRef",
|
|
4535
|
-
ref:
|
|
4536
|
-
modelValue:
|
|
4537
|
-
"onUpdate:modelValue": n[0] ||= (e) => d(
|
|
4580
|
+
ref: v,
|
|
4581
|
+
modelValue: k(w),
|
|
4582
|
+
"onUpdate:modelValue": n[0] ||= (e) => d(w) ? w.value = e : null,
|
|
4538
4583
|
class: "find-replace-dialog__input",
|
|
4539
4584
|
"data-testid": "find-input",
|
|
4540
|
-
placeholder:
|
|
4541
|
-
"aria-label":
|
|
4542
|
-
onKeydown:
|
|
4543
|
-
onInput:
|
|
4585
|
+
placeholder: k(l)("findReplace.findPlaceholder"),
|
|
4586
|
+
"aria-label": k(l)("findReplace.findText"),
|
|
4587
|
+
onKeydown: oe,
|
|
4588
|
+
onInput: k(I)
|
|
4544
4589
|
}, null, 8, [
|
|
4545
4590
|
"modelValue",
|
|
4546
4591
|
"placeholder",
|
|
4547
4592
|
"aria-label",
|
|
4548
4593
|
"onInput"
|
|
4549
4594
|
]),
|
|
4550
|
-
o("span",
|
|
4551
|
-
c(
|
|
4595
|
+
o("span", lr, E(V.value), 1),
|
|
4596
|
+
c(k(u), {
|
|
4552
4597
|
variant: "ghost",
|
|
4553
4598
|
size: "icon-xs",
|
|
4554
|
-
title:
|
|
4555
|
-
onMousedown:
|
|
4599
|
+
title: k(l)("findReplace.previous"),
|
|
4600
|
+
onMousedown: R(k(ee), ["prevent"])
|
|
4556
4601
|
}, {
|
|
4557
|
-
default:
|
|
4602
|
+
default: F(() => [...n[8] ||= [s("▲", -1)]]),
|
|
4558
4603
|
_: 1
|
|
4559
4604
|
}, 8, ["title", "onMousedown"]),
|
|
4560
|
-
c(
|
|
4605
|
+
c(k(u), {
|
|
4561
4606
|
variant: "ghost",
|
|
4562
4607
|
size: "icon-xs",
|
|
4563
|
-
title:
|
|
4564
|
-
onMousedown:
|
|
4608
|
+
title: k(l)("findReplace.next"),
|
|
4609
|
+
onMousedown: R(k(z), ["prevent"])
|
|
4565
4610
|
}, {
|
|
4566
|
-
default:
|
|
4611
|
+
default: F(() => [...n[9] ||= [s("▼", -1)]]),
|
|
4567
4612
|
_: 1
|
|
4568
4613
|
}, 8, ["title", "onMousedown"])
|
|
4569
4614
|
]),
|
|
4570
|
-
o("div",
|
|
4571
|
-
o("label", null, [c(
|
|
4572
|
-
checked:
|
|
4615
|
+
o("div", ur, [
|
|
4616
|
+
o("label", null, [c(k(h), {
|
|
4617
|
+
checked: ie.value,
|
|
4573
4618
|
"onUpdate:checked": n[1] ||= (e) => {
|
|
4574
|
-
|
|
4619
|
+
ie.value = e, k(N)();
|
|
4575
4620
|
}
|
|
4576
|
-
}, null, 8, ["checked"]), s(" " +
|
|
4577
|
-
o("label", null, [c(
|
|
4578
|
-
checked:
|
|
4621
|
+
}, null, 8, ["checked"]), s(" " + E(k(l)("findReplace.matchCase")), 1)]),
|
|
4622
|
+
o("label", null, [c(k(h), {
|
|
4623
|
+
checked: ae.value,
|
|
4579
4624
|
"onUpdate:checked": n[2] ||= (e) => {
|
|
4580
|
-
|
|
4625
|
+
ae.value = e, k(N)();
|
|
4581
4626
|
}
|
|
4582
|
-
}, null, 8, ["checked"]), s(" " +
|
|
4583
|
-
C.value ? i("", !0) : (
|
|
4627
|
+
}, null, 8, ["checked"]), s(" " + E(k(l)("findReplace.wholeWords")), 1)]),
|
|
4628
|
+
C.value ? i("", !0) : (y(), r(k(u), {
|
|
4584
4629
|
key: 0,
|
|
4585
4630
|
class: m(["find-replace-dialog__toggle", { active: b.value }]),
|
|
4586
4631
|
"data-testid": "find-replace-toggle",
|
|
4587
4632
|
variant: "ghost",
|
|
4588
4633
|
size: "xs",
|
|
4589
|
-
onMousedown: n[3] ||=
|
|
4590
|
-
title:
|
|
4634
|
+
onMousedown: n[3] ||= R((e) => b.value = !b.value, ["prevent"]),
|
|
4635
|
+
title: k(l)("dialogs.findReplace.toggleReplace")
|
|
4591
4636
|
}, {
|
|
4592
|
-
default:
|
|
4637
|
+
default: F(() => [s(" ↔ " + E(k(l)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4593
4638
|
_: 1
|
|
4594
4639
|
}, 8, ["class", "title"]))
|
|
4595
4640
|
]),
|
|
4596
|
-
b.value && !C.value ? (
|
|
4597
|
-
c(
|
|
4598
|
-
modelValue:
|
|
4599
|
-
"onUpdate:modelValue": n[4] ||= (e) => d(
|
|
4641
|
+
b.value && !C.value ? (y(), a("div", dr, [
|
|
4642
|
+
c(k(f), {
|
|
4643
|
+
modelValue: k(T),
|
|
4644
|
+
"onUpdate:modelValue": n[4] ||= (e) => d(T) ? T.value = e : null,
|
|
4600
4645
|
class: "find-replace-dialog__input",
|
|
4601
4646
|
"data-testid": "replace-input",
|
|
4602
|
-
placeholder:
|
|
4603
|
-
"aria-label":
|
|
4604
|
-
onKeydown:
|
|
4647
|
+
placeholder: k(l)("findReplace.replacePlaceholder"),
|
|
4648
|
+
"aria-label": k(l)("findReplace.replaceText"),
|
|
4649
|
+
onKeydown: L(R(k(B), ["prevent"]), ["enter"])
|
|
4605
4650
|
}, null, 8, [
|
|
4606
4651
|
"modelValue",
|
|
4607
4652
|
"placeholder",
|
|
4608
4653
|
"aria-label",
|
|
4609
4654
|
"onKeydown"
|
|
4610
4655
|
]),
|
|
4611
|
-
c(
|
|
4656
|
+
c(k(u), {
|
|
4612
4657
|
variant: "ghost",
|
|
4613
4658
|
size: "xs",
|
|
4614
|
-
disabled: !
|
|
4659
|
+
disabled: !k(M),
|
|
4615
4660
|
"data-testid": "replace-current",
|
|
4616
|
-
title:
|
|
4617
|
-
onMousedown:
|
|
4661
|
+
title: k(l)("findReplace.replaceCurrent"),
|
|
4662
|
+
onMousedown: R(k(B), ["prevent"])
|
|
4618
4663
|
}, {
|
|
4619
|
-
default:
|
|
4664
|
+
default: F(() => [s(E(k(l)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4620
4665
|
_: 1
|
|
4621
4666
|
}, 8, [
|
|
4622
4667
|
"disabled",
|
|
4623
4668
|
"title",
|
|
4624
4669
|
"onMousedown"
|
|
4625
4670
|
]),
|
|
4626
|
-
c(
|
|
4671
|
+
c(k(u), {
|
|
4627
4672
|
variant: "ghost",
|
|
4628
4673
|
size: "xs",
|
|
4629
4674
|
"data-testid": "replace-all",
|
|
4630
|
-
title:
|
|
4631
|
-
onMousedown:
|
|
4675
|
+
title: k(l)("findReplace.replaceAll"),
|
|
4676
|
+
onMousedown: R(re, ["prevent"])
|
|
4632
4677
|
}, {
|
|
4633
|
-
default:
|
|
4678
|
+
default: F(() => [s(E(k(l)("findReplace.replaceAll")), 1)]),
|
|
4634
4679
|
_: 1
|
|
4635
4680
|
}, 8, ["title"])
|
|
4636
4681
|
])) : i("", !0),
|
|
4637
|
-
|
|
4682
|
+
x.value ? (y(), a("p", fr, E(k(l)("findReplace.replaceAllSummary", x.value)), 1)) : i("", !0)
|
|
4638
4683
|
])], 32)) : i("", !0);
|
|
4639
4684
|
}
|
|
4640
|
-
}), [["__scopeId", "data-v-2c1a6e9d"]]),
|
|
4685
|
+
}), [["__scopeId", "data-v-2c1a6e9d"]]), mr = { class: "dialog__header" }, hr = { class: "dialog__title" }, gr = ["aria-label"], _r = { class: "dialog__body" }, vr = {
|
|
4641
4686
|
key: 0,
|
|
4642
4687
|
class: "link-tabs",
|
|
4643
4688
|
role: "tablist"
|
|
4644
|
-
},
|
|
4689
|
+
}, yr = ["aria-selected"], br = ["aria-selected"], xr = {
|
|
4645
4690
|
key: 1,
|
|
4646
4691
|
class: "field"
|
|
4647
|
-
},
|
|
4692
|
+
}, Sr = { class: "field__label" }, Cr = [
|
|
4648
4693
|
"placeholder",
|
|
4649
4694
|
"aria-invalid",
|
|
4650
4695
|
"onKeydown"
|
|
4651
|
-
],
|
|
4696
|
+
], wr = {
|
|
4652
4697
|
key: 0,
|
|
4653
4698
|
class: "field__error"
|
|
4654
|
-
},
|
|
4699
|
+
}, Tr = {
|
|
4655
4700
|
key: 1,
|
|
4656
4701
|
class: "field__hint"
|
|
4657
|
-
},
|
|
4702
|
+
}, Er = {
|
|
4658
4703
|
key: 2,
|
|
4659
4704
|
class: "field"
|
|
4660
|
-
},
|
|
4705
|
+
}, Dr = { class: "field__label" }, Or = ["onKeydown"], kr = { value: "" }, Ar = ["value"], jr = { class: "field" }, Mr = { class: "field__label" }, Nr = ["placeholder"], Pr = { class: "field__hint" }, Fr = { class: "field" }, Ir = { class: "field__label" }, Lr = ["placeholder"], Rr = { class: "dialog__actions" }, zr = ["disabled"], Br = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4661
4706
|
__name: "HyperlinkDialog",
|
|
4662
4707
|
props: {
|
|
4663
4708
|
isOpen: { type: Boolean },
|
|
@@ -4670,11 +4715,11 @@ var Yn = l({
|
|
|
4670
4715
|
"remove"
|
|
4671
4716
|
],
|
|
4672
4717
|
setup(t, { emit: r }) {
|
|
4673
|
-
let { t: s } = X(), c = t, l = r, u =
|
|
4674
|
-
|
|
4675
|
-
|
|
4718
|
+
let { t: s } = X(), c = t, l = r, u = S(null), d = S(null), f = S("url"), h = S(""), g = S(""), _ = S(""), v = S(""), b = S(!1), x = S(""), w = S(!1), T = n(() => c.bookmarks ?? []), D = n(() => f.value === "bookmark" ? !!g.value : !!h.value.trim() && !x.value);
|
|
4719
|
+
P(h, () => {
|
|
4720
|
+
x.value &&= "";
|
|
4676
4721
|
});
|
|
4677
|
-
function
|
|
4722
|
+
function O(e) {
|
|
4678
4723
|
let t = e.trim();
|
|
4679
4724
|
if (!t) return !1;
|
|
4680
4725
|
if (/^(mailto:|tel:)/i.test(t)) return t.replace(/^(mailto:|tel:)/i, "").length > 0;
|
|
@@ -4686,128 +4731,128 @@ var Yn = l({
|
|
|
4686
4731
|
return !1;
|
|
4687
4732
|
}
|
|
4688
4733
|
}
|
|
4689
|
-
function
|
|
4734
|
+
function A(e) {
|
|
4690
4735
|
let t = e.trim();
|
|
4691
4736
|
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
4692
4737
|
}
|
|
4693
|
-
|
|
4738
|
+
P(() => c.isOpen, async (e) => {
|
|
4694
4739
|
if (e) {
|
|
4695
4740
|
let e = c.view;
|
|
4696
4741
|
if (e) {
|
|
4697
4742
|
let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
|
|
4698
4743
|
if (a) {
|
|
4699
4744
|
let e = a.attrs.href || "";
|
|
4700
|
-
e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1), h.value = "") : (f.value = "url", h.value = e, g.value = ""),
|
|
4701
|
-
} else f.value = "url", h.value = "", g.value = "",
|
|
4745
|
+
e.startsWith("#") ? (f.value = "bookmark", g.value = e.slice(1), h.value = "") : (f.value = "url", h.value = e, g.value = ""), v.value = a.attrs.tooltip || "", b.value = !0;
|
|
4746
|
+
} else f.value = "url", h.value = "", g.value = "", v.value = "", b.value = !1;
|
|
4702
4747
|
n ? _.value = "" : _.value = e.state.doc.textBetween(r, i);
|
|
4703
4748
|
}
|
|
4704
4749
|
await p(), f.value === "bookmark" ? d.value?.focus() : u.value?.focus();
|
|
4705
|
-
} else
|
|
4750
|
+
} else w.value = !1, x.value = "";
|
|
4706
4751
|
});
|
|
4707
|
-
function
|
|
4752
|
+
function j() {
|
|
4708
4753
|
l("close");
|
|
4709
4754
|
}
|
|
4710
|
-
function
|
|
4755
|
+
function F() {
|
|
4711
4756
|
if (f.value === "bookmark") {
|
|
4712
4757
|
if (!g.value) return;
|
|
4713
4758
|
l("submit", {
|
|
4714
4759
|
bookmark: g.value,
|
|
4715
4760
|
displayText: _.value,
|
|
4716
|
-
tooltip:
|
|
4717
|
-
}),
|
|
4718
|
-
} else
|
|
4719
|
-
url:
|
|
4761
|
+
tooltip: v.value
|
|
4762
|
+
}), j();
|
|
4763
|
+
} else w.value = !0, O(h.value) ? (l("submit", {
|
|
4764
|
+
url: A(h.value),
|
|
4720
4765
|
displayText: _.value,
|
|
4721
|
-
tooltip:
|
|
4722
|
-
}),
|
|
4766
|
+
tooltip: v.value
|
|
4767
|
+
}), j()) : x.value = h.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
4723
4768
|
}
|
|
4724
4769
|
function z() {
|
|
4725
|
-
f.value === "url" && (
|
|
4770
|
+
f.value === "url" && (w.value = !0, h.value.trim() ? x.value = O(h.value) ? "" : s("dialogs.hyperlink.invalidUrl") : x.value = "");
|
|
4726
4771
|
}
|
|
4727
4772
|
function ee() {
|
|
4728
|
-
l("remove"),
|
|
4773
|
+
l("remove"), j();
|
|
4729
4774
|
}
|
|
4730
|
-
return (n, r) => t.isOpen ? (
|
|
4775
|
+
return (n, r) => t.isOpen ? (y(), a("div", {
|
|
4731
4776
|
key: 0,
|
|
4732
4777
|
class: "dialog-overlay",
|
|
4733
|
-
onMousedown:
|
|
4778
|
+
onMousedown: R(j, ["self"])
|
|
4734
4779
|
}, [o("div", {
|
|
4735
4780
|
class: "dialog",
|
|
4736
|
-
onMousedown: r[6] ||=
|
|
4737
|
-
onKeydown: r[7] ||=
|
|
4738
|
-
}, [o("div",
|
|
4781
|
+
onMousedown: r[6] ||= R(() => {}, ["stop"]),
|
|
4782
|
+
onKeydown: r[7] ||= R(() => {}, ["stop"])
|
|
4783
|
+
}, [o("div", mr, [o("span", hr, E(b.value ? k(s)("dialogs.hyperlink.titleEdit") : k(s)("dialogs.hyperlink.titleInsert")), 1), o("button", {
|
|
4739
4784
|
class: "dialog__close",
|
|
4740
|
-
"aria-label":
|
|
4741
|
-
onClick:
|
|
4742
|
-
}, " ✕ ", 8,
|
|
4743
|
-
|
|
4785
|
+
"aria-label": k(s)("common.closeDialog"),
|
|
4786
|
+
onClick: j
|
|
4787
|
+
}, " ✕ ", 8, gr)]), o("div", _r, [
|
|
4788
|
+
T.value.length > 0 ? (y(), a("div", vr, [o("button", {
|
|
4744
4789
|
class: m(["link-tab", { active: f.value === "url" }]),
|
|
4745
4790
|
role: "tab",
|
|
4746
4791
|
"aria-selected": f.value === "url",
|
|
4747
|
-
onMousedown: r[0] ||=
|
|
4748
|
-
},
|
|
4792
|
+
onMousedown: r[0] ||= R((e) => f.value = "url", ["prevent"])
|
|
4793
|
+
}, E(k(s)("dialogs.hyperlink.tabWebAddress")), 43, yr), o("button", {
|
|
4749
4794
|
class: m(["link-tab", { active: f.value === "bookmark" }]),
|
|
4750
4795
|
role: "tab",
|
|
4751
4796
|
"aria-selected": f.value === "bookmark",
|
|
4752
|
-
onMousedown: r[1] ||=
|
|
4753
|
-
},
|
|
4754
|
-
f.value === "url" ? (
|
|
4755
|
-
o("label",
|
|
4756
|
-
|
|
4797
|
+
onMousedown: r[1] ||= R((e) => f.value = "bookmark", ["prevent"])
|
|
4798
|
+
}, E(k(s)("dialogs.hyperlink.tabBookmark")), 43, br)])) : i("", !0),
|
|
4799
|
+
f.value === "url" ? (y(), a("div", xr, [
|
|
4800
|
+
o("label", Sr, E(k(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
4801
|
+
I(o("input", {
|
|
4757
4802
|
ref_key: "urlInputRef",
|
|
4758
4803
|
ref: u,
|
|
4759
4804
|
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
4760
|
-
class: m(["field__input", { "field__input--error":
|
|
4761
|
-
placeholder:
|
|
4762
|
-
"aria-invalid":
|
|
4763
|
-
onKeydown:
|
|
4805
|
+
class: m(["field__input", { "field__input--error": w.value && !!x.value }]),
|
|
4806
|
+
placeholder: k(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
4807
|
+
"aria-invalid": w.value && !!x.value,
|
|
4808
|
+
onKeydown: L(R(F, ["prevent"]), ["enter"]),
|
|
4764
4809
|
onBlur: z
|
|
4765
|
-
}, null, 42,
|
|
4766
|
-
|
|
4767
|
-
])) : (
|
|
4810
|
+
}, null, 42, Cr), [[N, h.value]]),
|
|
4811
|
+
w.value && x.value ? (y(), a("div", wr, E(x.value), 1)) : (y(), a("div", Tr, E(k(s)("dialogs.hyperlink.urlHint")), 1))
|
|
4812
|
+
])) : (y(), a("div", Er, [o("label", Dr, E(k(s)("dialogs.hyperlink.bookmarkLabel")), 1), I(o("select", {
|
|
4768
4813
|
ref_key: "bookmarkSelectRef",
|
|
4769
4814
|
ref: d,
|
|
4770
4815
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
4771
4816
|
class: "field__input",
|
|
4772
|
-
onKeydown:
|
|
4773
|
-
}, [o("option",
|
|
4817
|
+
onKeydown: L(R(F, ["prevent"]), ["enter"])
|
|
4818
|
+
}, [o("option", kr, E(k(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (y(!0), a(e, null, C(T.value, (e) => (y(), a("option", {
|
|
4774
4819
|
key: e.name,
|
|
4775
4820
|
value: e.name
|
|
4776
|
-
},
|
|
4777
|
-
o("div",
|
|
4778
|
-
o("label",
|
|
4779
|
-
|
|
4821
|
+
}, E(e.label || e.name), 9, Ar))), 128))], 40, Or), [[M, g.value]])])),
|
|
4822
|
+
o("div", jr, [
|
|
4823
|
+
o("label", Mr, E(k(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4824
|
+
I(o("input", {
|
|
4780
4825
|
"onUpdate:modelValue": r[4] ||= (e) => _.value = e,
|
|
4781
4826
|
class: "field__input",
|
|
4782
|
-
placeholder:
|
|
4783
|
-
}, null, 8,
|
|
4784
|
-
o("div",
|
|
4827
|
+
placeholder: k(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4828
|
+
}, null, 8, Nr), [[N, _.value]]),
|
|
4829
|
+
o("div", Pr, E(k(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
4785
4830
|
]),
|
|
4786
|
-
o("div",
|
|
4787
|
-
"onUpdate:modelValue": r[5] ||= (e) =>
|
|
4831
|
+
o("div", Fr, [o("label", Ir, E(k(s)("dialogs.hyperlink.tooltipLabel")), 1), I(o("input", {
|
|
4832
|
+
"onUpdate:modelValue": r[5] ||= (e) => v.value = e,
|
|
4788
4833
|
class: "field__input",
|
|
4789
|
-
placeholder:
|
|
4790
|
-
}, null, 8,
|
|
4791
|
-
o("div",
|
|
4792
|
-
b.value ? (
|
|
4834
|
+
placeholder: k(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4835
|
+
}, null, 8, Lr), [[N, v.value]])]),
|
|
4836
|
+
o("div", Rr, [
|
|
4837
|
+
b.value ? (y(), a("button", {
|
|
4793
4838
|
key: 0,
|
|
4794
4839
|
class: "dialog__btn dialog__btn--danger",
|
|
4795
|
-
onMousedown:
|
|
4796
|
-
},
|
|
4840
|
+
onMousedown: R(ee, ["prevent"])
|
|
4841
|
+
}, E(k(s)("dialogs.hyperlink.removeLink")), 33)) : i("", !0),
|
|
4797
4842
|
r[8] ||= o("div", { style: { flex: "1" } }, null, -1),
|
|
4798
4843
|
o("button", {
|
|
4799
4844
|
class: "dialog__btn",
|
|
4800
|
-
onClick:
|
|
4801
|
-
},
|
|
4845
|
+
onClick: j
|
|
4846
|
+
}, E(k(s)("common.cancel")), 1),
|
|
4802
4847
|
o("button", {
|
|
4803
4848
|
class: "dialog__btn dialog__btn--primary",
|
|
4804
|
-
onMousedown:
|
|
4805
|
-
disabled: !
|
|
4806
|
-
},
|
|
4849
|
+
onMousedown: R(F, ["prevent"]),
|
|
4850
|
+
disabled: !D.value
|
|
4851
|
+
}, E(b.value ? k(s)("common.update") : k(s)("common.insert")), 41, zr)
|
|
4807
4852
|
])
|
|
4808
4853
|
])], 32)], 32)) : i("", !0);
|
|
4809
4854
|
}
|
|
4810
|
-
}), [["__scopeId", "data-v-e1da04fb"]]),
|
|
4855
|
+
}), [["__scopeId", "data-v-e1da04fb"]]), Vr = { class: "dialog__header" }, Hr = { class: "dialog__title" }, Ur = ["aria-label"], Wr = { class: "dialog__body" }, Gr = { class: "field" }, Kr = { class: "field__label" }, qr = ["placeholder"], Jr = { class: "field" }, Yr = { class: "field__label" }, Xr = { value: "inline" }, Zr = { value: "wrapRight" }, Qr = { value: "wrapLeft" }, $r = { value: "topAndBottom" }, ei = { value: "behind" }, ti = { value: "inFront" }, ni = { class: "field" }, ri = { class: "field__label" }, ii = { class: "field-row" }, ai = { value: "solid" }, oi = { value: "dashed" }, si = { value: "dotted" }, ci = { value: "double" }, li = { class: "field" }, ui = { class: "field__label" }, di = { class: "field-row" }, fi = ["value"], pi = ["value"], mi = { class: "field__checkbox" }, hi = { class: "dialog__actions" }, gi = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
4811
4856
|
__name: "ImagePropertiesDialog",
|
|
4812
4857
|
props: {
|
|
4813
4858
|
isOpen: { type: Boolean },
|
|
@@ -4816,8 +4861,8 @@ var Yn = l({
|
|
|
4816
4861
|
},
|
|
4817
4862
|
emits: ["close"],
|
|
4818
4863
|
setup(e, { emit: t }) {
|
|
4819
|
-
let { t: n } = X(), { Dialog: i } = Q(), a = e, c = t, l =
|
|
4820
|
-
|
|
4864
|
+
let { t: n } = X(), { Dialog: i } = Q(), a = e, c = t, l = S(""), u = S("inline"), d = S(0), f = S("solid"), p = S("#000000"), m = S(200), h = S(150), g = S(!0), _ = 1;
|
|
4865
|
+
P(() => a.isOpen, (e) => {
|
|
4821
4866
|
if (e && a.view && a.pmPos !== null) try {
|
|
4822
4867
|
let e = a.view.state.doc.nodeAt(a.pmPos);
|
|
4823
4868
|
if (e && e.type.name === "image") {
|
|
@@ -4828,7 +4873,7 @@ var Yn = l({
|
|
|
4828
4873
|
}
|
|
4829
4874
|
} catch {}
|
|
4830
4875
|
});
|
|
4831
|
-
function
|
|
4876
|
+
function v(e) {
|
|
4832
4877
|
if (!(e.target instanceof HTMLInputElement)) return;
|
|
4833
4878
|
let t = Number(e.target.value);
|
|
4834
4879
|
isNaN(t) || t < 1 || (m.value = t, g.value && _ > 0 && (h.value = Math.round(t / _)));
|
|
@@ -4838,7 +4883,7 @@ var Yn = l({
|
|
|
4838
4883
|
let t = Number(e.target.value);
|
|
4839
4884
|
isNaN(t) || t < 1 || (h.value = t, g.value && _ > 0 && (m.value = Math.round(t * _)));
|
|
4840
4885
|
}
|
|
4841
|
-
function
|
|
4886
|
+
function x() {
|
|
4842
4887
|
c("close");
|
|
4843
4888
|
}
|
|
4844
4889
|
function C() {
|
|
@@ -4880,44 +4925,44 @@ var Yn = l({
|
|
|
4880
4925
|
});
|
|
4881
4926
|
e.dispatch(o);
|
|
4882
4927
|
} catch {}
|
|
4883
|
-
|
|
4928
|
+
x();
|
|
4884
4929
|
}
|
|
4885
4930
|
}
|
|
4886
|
-
return (t, a) => (
|
|
4931
|
+
return (t, a) => (y(), r(k(i), {
|
|
4887
4932
|
open: e.isOpen,
|
|
4888
|
-
"aria-label":
|
|
4933
|
+
"aria-label": k(n)("dialogs.imageProperties.title"),
|
|
4889
4934
|
style: {
|
|
4890
4935
|
minWidth: "400px",
|
|
4891
4936
|
maxWidth: "90vw"
|
|
4892
4937
|
},
|
|
4893
|
-
onClose:
|
|
4938
|
+
onClose: x
|
|
4894
4939
|
}, {
|
|
4895
|
-
default:
|
|
4940
|
+
default: F(() => [o("div", Vr, [o("span", Hr, E(k(n)("dialogs.imageProperties.title")), 1), o("button", {
|
|
4896
4941
|
class: "dialog__close",
|
|
4897
|
-
"aria-label":
|
|
4898
|
-
onClick:
|
|
4899
|
-
}, " ✕ ", 8,
|
|
4900
|
-
o("div",
|
|
4942
|
+
"aria-label": k(n)("common.closeDialog"),
|
|
4943
|
+
onClick: x
|
|
4944
|
+
}, " ✕ ", 8, Ur)]), o("div", Wr, [
|
|
4945
|
+
o("div", Gr, [o("label", Kr, E(k(n)("dialogs.imageProperties.altText")), 1), I(o("textarea", {
|
|
4901
4946
|
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4902
4947
|
class: "field__textarea",
|
|
4903
|
-
placeholder:
|
|
4948
|
+
placeholder: k(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4904
4949
|
rows: "2"
|
|
4905
|
-
}, null, 8,
|
|
4906
|
-
o("div",
|
|
4950
|
+
}, null, 8, qr), [[N, l.value]])]),
|
|
4951
|
+
o("div", Jr, [o("label", Yr, E(k(n)("dialogs.imageProperties.textWrapping")), 1), I(o("select", {
|
|
4907
4952
|
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4908
4953
|
class: "field__select"
|
|
4909
4954
|
}, [
|
|
4910
|
-
o("option",
|
|
4911
|
-
o("option",
|
|
4912
|
-
o("option",
|
|
4913
|
-
o("option",
|
|
4914
|
-
o("option",
|
|
4915
|
-
o("option",
|
|
4916
|
-
], 512), [[
|
|
4917
|
-
o("div",
|
|
4955
|
+
o("option", Xr, E(k(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4956
|
+
o("option", Zr, E(k(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4957
|
+
o("option", Qr, E(k(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4958
|
+
o("option", $r, E(k(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4959
|
+
o("option", ei, E(k(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4960
|
+
o("option", ti, E(k(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4961
|
+
], 512), [[M, u.value]])]),
|
|
4962
|
+
o("div", ni, [o("label", ri, E(k(n)("dialogs.imageProperties.border")), 1), o("div", ii, [
|
|
4918
4963
|
o("label", null, [
|
|
4919
|
-
s(
|
|
4920
|
-
|
|
4964
|
+
s(E(k(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4965
|
+
I(o("input", {
|
|
4921
4966
|
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
4922
4967
|
type: "number",
|
|
4923
4968
|
min: "0",
|
|
@@ -4925,43 +4970,43 @@ var Yn = l({
|
|
|
4925
4970
|
step: "0.5",
|
|
4926
4971
|
class: "field__input--small"
|
|
4927
4972
|
}, null, 512), [[
|
|
4928
|
-
|
|
4973
|
+
N,
|
|
4929
4974
|
d.value,
|
|
4930
4975
|
void 0,
|
|
4931
4976
|
{ number: !0 }
|
|
4932
4977
|
]]),
|
|
4933
|
-
s(
|
|
4978
|
+
s(E(k(n)("common.px")), 1)
|
|
4934
4979
|
]),
|
|
4935
|
-
o("label", null, [s(
|
|
4980
|
+
o("label", null, [s(E(k(n)("dialogs.imageProperties.style")) + ": ", 1), I(o("select", {
|
|
4936
4981
|
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4937
4982
|
class: "field__select--small"
|
|
4938
4983
|
}, [
|
|
4939
|
-
o("option",
|
|
4940
|
-
o("option",
|
|
4941
|
-
o("option",
|
|
4942
|
-
o("option",
|
|
4943
|
-
], 512), [[
|
|
4944
|
-
o("label", null, [s(
|
|
4984
|
+
o("option", ai, E(k(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4985
|
+
o("option", oi, E(k(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4986
|
+
o("option", si, E(k(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4987
|
+
o("option", ci, E(k(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4988
|
+
], 512), [[M, f.value]])]),
|
|
4989
|
+
o("label", null, [s(E(k(n)("dialogs.imageProperties.color")) + ": ", 1), I(o("input", {
|
|
4945
4990
|
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
4946
4991
|
type: "color",
|
|
4947
4992
|
class: "field__color"
|
|
4948
|
-
}, null, 512), [[
|
|
4993
|
+
}, null, 512), [[N, p.value]])])
|
|
4949
4994
|
])]),
|
|
4950
|
-
o("div",
|
|
4951
|
-
o("label",
|
|
4952
|
-
o("div",
|
|
4953
|
-
s(
|
|
4995
|
+
o("div", li, [
|
|
4996
|
+
o("label", ui, E(k(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4997
|
+
o("div", di, [o("label", null, [
|
|
4998
|
+
s(E(k(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4954
4999
|
o("input", {
|
|
4955
5000
|
value: m.value,
|
|
4956
5001
|
type: "number",
|
|
4957
5002
|
min: "1",
|
|
4958
5003
|
max: "2000",
|
|
4959
5004
|
class: "field__input--small",
|
|
4960
|
-
onInput:
|
|
4961
|
-
}, null, 40,
|
|
4962
|
-
s(
|
|
5005
|
+
onInput: v
|
|
5006
|
+
}, null, 40, fi),
|
|
5007
|
+
s(E(k(n)("common.px")), 1)
|
|
4963
5008
|
]), o("label", null, [
|
|
4964
|
-
s(
|
|
5009
|
+
s(E(k(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
4965
5010
|
o("input", {
|
|
4966
5011
|
value: h.value,
|
|
4967
5012
|
type: "number",
|
|
@@ -4969,114 +5014,114 @@ var Yn = l({
|
|
|
4969
5014
|
max: "2000",
|
|
4970
5015
|
class: "field__input--small",
|
|
4971
5016
|
onInput: b
|
|
4972
|
-
}, null, 40,
|
|
4973
|
-
s(
|
|
5017
|
+
}, null, 40, pi),
|
|
5018
|
+
s(E(k(n)("common.px")), 1)
|
|
4974
5019
|
])]),
|
|
4975
|
-
o("label",
|
|
5020
|
+
o("label", mi, [I(o("input", {
|
|
4976
5021
|
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4977
5022
|
type: "checkbox"
|
|
4978
|
-
}, null, 512), [[
|
|
5023
|
+
}, null, 512), [[A, g.value]]), s(" " + E(k(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4979
5024
|
]),
|
|
4980
|
-
o("div",
|
|
5025
|
+
o("div", hi, [o("button", {
|
|
4981
5026
|
class: "dialog__btn",
|
|
4982
|
-
onClick:
|
|
4983
|
-
},
|
|
5027
|
+
onClick: x
|
|
5028
|
+
}, E(k(n)("common.cancel")), 1), o("button", {
|
|
4984
5029
|
class: "dialog__btn dialog__btn--primary",
|
|
4985
|
-
onMousedown:
|
|
4986
|
-
},
|
|
5030
|
+
onMousedown: R(C, ["prevent"])
|
|
5031
|
+
}, E(k(n)("common.apply")), 33)])
|
|
4987
5032
|
])]),
|
|
4988
5033
|
_: 1
|
|
4989
5034
|
}, 8, ["open", "aria-label"]));
|
|
4990
5035
|
}
|
|
4991
|
-
}), [["__scopeId", "data-v-065bfdd8"]]),
|
|
5036
|
+
}), [["__scopeId", "data-v-065bfdd8"]]), _i = { class: "dialog__header" }, vi = { class: "dialog__title" }, yi = ["title"], bi = { class: "dialog__body" }, xi = ["placeholder"], Si = {
|
|
4992
5037
|
key: 0,
|
|
4993
5038
|
class: "symbol-tabs"
|
|
4994
|
-
},
|
|
5039
|
+
}, Ci = ["onMousedown"], wi = { class: "symbol-grid" }, Ti = [
|
|
4995
5040
|
"title",
|
|
4996
5041
|
"onClick",
|
|
4997
5042
|
"onDblclick"
|
|
4998
|
-
],
|
|
5043
|
+
], Ei = {
|
|
4999
5044
|
key: 0,
|
|
5000
5045
|
class: "symbol-empty"
|
|
5001
|
-
},
|
|
5046
|
+
}, Di = {
|
|
5002
5047
|
key: 1,
|
|
5003
5048
|
class: "symbol-preview"
|
|
5004
|
-
},
|
|
5049
|
+
}, Oi = { class: "symbol-preview__char" }, ki = { class: "symbol-preview__info" }, Ai = {
|
|
5005
5050
|
key: 2,
|
|
5006
5051
|
class: "symbol-recent"
|
|
5007
|
-
},
|
|
5052
|
+
}, ji = { class: "symbol-recent__label" }, Mi = ["onDblclick", "onClick"], Ni = { class: "dialog__actions" }, Pi = ["disabled"], Fi = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5008
5053
|
__name: "InsertSymbolDialog",
|
|
5009
5054
|
props: { isOpen: { type: Boolean } },
|
|
5010
5055
|
emits: ["close", "insert"],
|
|
5011
5056
|
setup(t, { emit: r }) {
|
|
5012
|
-
let { t: s } = X(), c = t, l = r, u =
|
|
5013
|
-
if (d.value) return
|
|
5057
|
+
let { t: s } = X(), c = t, l = r, u = S(null), d = S(""), f = S("Common"), h = S(""), g = S([]), _ = H, v = n(() => {
|
|
5058
|
+
if (d.value) return oe(d.value);
|
|
5014
5059
|
let e = _.find((e) => e.name === f.value);
|
|
5015
5060
|
return e ? e.symbols.map((t) => Object.assign({}, t, { category: e.name })) : [];
|
|
5016
5061
|
});
|
|
5017
|
-
|
|
5062
|
+
P(() => c.isOpen, async (e) => {
|
|
5018
5063
|
e && (await p(), u.value?.focus());
|
|
5019
5064
|
});
|
|
5020
5065
|
function b() {
|
|
5021
5066
|
l("close");
|
|
5022
5067
|
}
|
|
5023
|
-
function
|
|
5068
|
+
function x(e) {
|
|
5024
5069
|
e && (g.value = [e, ...g.value.filter((t) => t !== e)].slice(0, 10), l("insert", e));
|
|
5025
5070
|
}
|
|
5026
|
-
return (n, r) => t.isOpen ? (
|
|
5071
|
+
return (n, r) => t.isOpen ? (y(), a("div", {
|
|
5027
5072
|
key: 0,
|
|
5028
5073
|
class: "dialog-overlay",
|
|
5029
|
-
onMousedown:
|
|
5074
|
+
onMousedown: R(b, ["self"])
|
|
5030
5075
|
}, [o("div", {
|
|
5031
5076
|
class: "dialog symbol-dialog",
|
|
5032
|
-
onMousedown: r[2] ||=
|
|
5033
|
-
onKeydown: r[3] ||=
|
|
5034
|
-
}, [o("div",
|
|
5077
|
+
onMousedown: r[2] ||= R(() => {}, ["stop"]),
|
|
5078
|
+
onKeydown: r[3] ||= R(() => {}, ["stop"])
|
|
5079
|
+
}, [o("div", _i, [o("span", vi, E(k(s)("dialogs.insertSymbol.title")), 1), o("button", {
|
|
5035
5080
|
class: "dialog__close",
|
|
5036
|
-
title:
|
|
5081
|
+
title: k(s)("common.closeDialog"),
|
|
5037
5082
|
onClick: b
|
|
5038
|
-
}, " ✕ ", 8,
|
|
5039
|
-
|
|
5083
|
+
}, " ✕ ", 8, yi)]), o("div", bi, [
|
|
5084
|
+
I(o("input", {
|
|
5040
5085
|
ref_key: "searchRef",
|
|
5041
5086
|
ref: u,
|
|
5042
5087
|
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
5043
5088
|
class: "symbol-search",
|
|
5044
|
-
placeholder:
|
|
5045
|
-
onKeydown:
|
|
5046
|
-
}, null, 40,
|
|
5047
|
-
d.value ? i("", !0) : (
|
|
5089
|
+
placeholder: k(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
5090
|
+
onKeydown: L(b, ["escape"])
|
|
5091
|
+
}, null, 40, xi), [[N, d.value]]),
|
|
5092
|
+
d.value ? i("", !0) : (y(), a("div", Si, [(y(!0), a(e, null, C(k(_), (e) => (y(), a("button", {
|
|
5048
5093
|
key: e.name,
|
|
5049
5094
|
class: m(["symbol-tab", { active: f.value === e.name }]),
|
|
5050
|
-
onMousedown:
|
|
5051
|
-
},
|
|
5052
|
-
o("div",
|
|
5095
|
+
onMousedown: R((t) => f.value = e.name, ["prevent"])
|
|
5096
|
+
}, E(k(s)(e.nameKey)), 43, Ci))), 128))])),
|
|
5097
|
+
o("div", wi, [(y(!0), a(e, null, C(v.value, (e) => (y(), a("button", {
|
|
5053
5098
|
key: e.char,
|
|
5054
5099
|
class: m(["symbol-cell", { selected: h.value === e.char }]),
|
|
5055
5100
|
title: e.name,
|
|
5056
5101
|
onClick: (t) => h.value = e.char,
|
|
5057
|
-
onDblclick: (t) =>
|
|
5058
|
-
},
|
|
5059
|
-
h.value ? (
|
|
5060
|
-
g.value.length > 0 && !d.value ? (
|
|
5102
|
+
onDblclick: (t) => x(e.char)
|
|
5103
|
+
}, E(e.char), 43, Ti))), 128)), v.value.length === 0 ? (y(), a("div", Ei, E(d.value ? k(s)("dialogs.insertSymbol.noResults", { query: d.value }) : k(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : i("", !0)]),
|
|
5104
|
+
h.value ? (y(), a("div", Di, [o("span", Oi, E(h.value), 1), o("span", ki, "U+" + E(h.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : i("", !0),
|
|
5105
|
+
g.value.length > 0 && !d.value ? (y(), a("div", Ai, [o("div", ji, E(k(s)("dialogs.insertSymbol.recent")), 1), (y(!0), a(e, null, C(g.value, (e) => (y(), a("button", {
|
|
5061
5106
|
key: e,
|
|
5062
5107
|
class: "symbol-cell symbol-cell--small",
|
|
5063
|
-
onDblclick: (t) =>
|
|
5108
|
+
onDblclick: (t) => x(e),
|
|
5064
5109
|
onClick: (t) => h.value = e
|
|
5065
|
-
},
|
|
5066
|
-
o("div",
|
|
5110
|
+
}, E(e), 41, Mi))), 128))])) : i("", !0),
|
|
5111
|
+
o("div", Ni, [o("button", {
|
|
5067
5112
|
class: "dialog__btn",
|
|
5068
5113
|
onClick: b
|
|
5069
|
-
},
|
|
5114
|
+
}, E(k(s)("common.cancel")), 1), o("button", {
|
|
5070
5115
|
class: "dialog__btn dialog__btn--primary",
|
|
5071
|
-
onMousedown: r[1] ||=
|
|
5116
|
+
onMousedown: r[1] ||= R((e) => x(h.value), ["prevent"]),
|
|
5072
5117
|
disabled: !h.value
|
|
5073
|
-
},
|
|
5118
|
+
}, E(k(s)("common.insert")), 41, Pi)])
|
|
5074
5119
|
])], 32)], 32)) : i("", !0);
|
|
5075
5120
|
}
|
|
5076
|
-
}), [["__scopeId", "data-v-ae30942f"]]),
|
|
5121
|
+
}), [["__scopeId", "data-v-ae30942f"]]), Ii = { class: "ps-header" }, Li = { class: "ps-body" }, Ri = { class: "ps-section-label" }, zi = { class: "ps-row" }, Bi = { class: "ps-label" }, Vi = ["value"], Hi = ["value"], Ui = {
|
|
5077
5122
|
key: 0,
|
|
5078
5123
|
value: -1
|
|
5079
|
-
},
|
|
5124
|
+
}, Wi = { class: "ps-row" }, Gi = { class: "ps-label" }, Ki = ["value"], qi = { value: "portrait" }, Ji = { value: "landscape" }, Yi = { class: "ps-section-label ps-section-label--spaced" }, Xi = { class: "ps-row" }, Zi = { class: "ps-label" }, Qi = { class: "ps-row" }, $i = { class: "ps-label" }, ea = { class: "ps-row" }, ta = { class: "ps-label" }, na = { class: "ps-row" }, ra = { class: "ps-label" }, ia = { class: "ps-footer" }, aa = 12240, oa = 15840, sa = 1440, ca = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5080
5125
|
__name: "PageSetupDialog",
|
|
5081
5126
|
props: {
|
|
5082
5127
|
isOpen: { type: Boolean },
|
|
@@ -5120,28 +5165,28 @@ var Yn = l({
|
|
|
5120
5165
|
width: 10440,
|
|
5121
5166
|
height: 15120
|
|
5122
5167
|
}
|
|
5123
|
-
], d = t, f = s, p =
|
|
5124
|
-
function
|
|
5125
|
-
return Math.round(e /
|
|
5168
|
+
], d = t, f = s, p = S(aa), m = S(oa), h = S("portrait"), g = S(1), _ = S(1), v = S(1), b = S(1);
|
|
5169
|
+
function x(e) {
|
|
5170
|
+
return Math.round(e / se * 100) / 100;
|
|
5126
5171
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return Math.round((Number(e) || 0) *
|
|
5172
|
+
function w(e) {
|
|
5173
|
+
return Math.round((Number(e) || 0) * se);
|
|
5129
5174
|
}
|
|
5130
|
-
let
|
|
5175
|
+
let T = n(() => {
|
|
5131
5176
|
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
5132
5177
|
return u.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
5133
5178
|
});
|
|
5134
|
-
|
|
5179
|
+
P(() => d.isOpen, (e) => {
|
|
5135
5180
|
if (!e) return;
|
|
5136
|
-
let t = d.sectionProperties, n = t?.pageWidth ||
|
|
5137
|
-
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value =
|
|
5181
|
+
let t = d.sectionProperties, n = t?.pageWidth || aa, r = t?.pageHeight || oa;
|
|
5182
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = x(t?.marginTop ?? sa), _.value = x(t?.marginBottom ?? sa), v.value = x(t?.marginLeft ?? sa), b.value = x(t?.marginRight ?? sa);
|
|
5138
5183
|
}, { immediate: !0 });
|
|
5139
|
-
function
|
|
5184
|
+
function D(e) {
|
|
5140
5185
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
5141
5186
|
let t = Number(e.target.value), n = u.at(t);
|
|
5142
5187
|
t < 0 || !n || (h.value === "landscape" ? (p.value = n.height, m.value = n.width) : (p.value = n.width, m.value = n.height));
|
|
5143
5188
|
}
|
|
5144
|
-
function
|
|
5189
|
+
function O(e) {
|
|
5145
5190
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
5146
5191
|
let t = e.target.value === "landscape" ? "landscape" : "portrait";
|
|
5147
5192
|
if (t === h.value) return;
|
|
@@ -5152,20 +5197,20 @@ var Yn = l({
|
|
|
5152
5197
|
function A() {
|
|
5153
5198
|
f("close");
|
|
5154
5199
|
}
|
|
5155
|
-
function
|
|
5200
|
+
function j() {
|
|
5156
5201
|
f("apply", {
|
|
5157
5202
|
pageWidth: p.value,
|
|
5158
5203
|
pageHeight: m.value,
|
|
5159
5204
|
orientation: h.value,
|
|
5160
|
-
marginTop:
|
|
5161
|
-
marginBottom:
|
|
5162
|
-
marginLeft:
|
|
5163
|
-
marginRight:
|
|
5205
|
+
marginTop: w(g.value),
|
|
5206
|
+
marginBottom: w(_.value),
|
|
5207
|
+
marginLeft: w(v.value),
|
|
5208
|
+
marginRight: w(b.value)
|
|
5164
5209
|
}), A();
|
|
5165
5210
|
}
|
|
5166
|
-
return (n, s) => (
|
|
5211
|
+
return (n, s) => (y(), r(k(l), {
|
|
5167
5212
|
open: t.isOpen,
|
|
5168
|
-
"aria-label":
|
|
5213
|
+
"aria-label": k(c)("dialogs.pageSetup.title"),
|
|
5169
5214
|
style: {
|
|
5170
5215
|
minWidth: "400px",
|
|
5171
5216
|
maxWidth: "480px",
|
|
@@ -5173,29 +5218,29 @@ var Yn = l({
|
|
|
5173
5218
|
margin: "20px"
|
|
5174
5219
|
},
|
|
5175
5220
|
onClose: A,
|
|
5176
|
-
onKeydown:
|
|
5221
|
+
onKeydown: L(j, ["enter"])
|
|
5177
5222
|
}, {
|
|
5178
|
-
default:
|
|
5179
|
-
o("div",
|
|
5180
|
-
o("div",
|
|
5181
|
-
o("div",
|
|
5182
|
-
o("div",
|
|
5223
|
+
default: F(() => [
|
|
5224
|
+
o("div", Ii, E(k(c)("dialogs.pageSetup.title")), 1),
|
|
5225
|
+
o("div", Li, [
|
|
5226
|
+
o("div", Ri, E(k(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5227
|
+
o("div", zi, [o("label", Bi, E(k(c)("dialogs.pageSetup.sizeLabel")), 1), o("select", {
|
|
5183
5228
|
class: "ps-input",
|
|
5184
|
-
value:
|
|
5185
|
-
onChange:
|
|
5186
|
-
}, [(
|
|
5229
|
+
value: T.value,
|
|
5230
|
+
onChange: D
|
|
5231
|
+
}, [(y(), a(e, null, C(u, (e, t) => o("option", {
|
|
5187
5232
|
key: e.labelKey,
|
|
5188
5233
|
value: t
|
|
5189
|
-
},
|
|
5190
|
-
o("div",
|
|
5234
|
+
}, E(k(c)(e.labelKey)), 9, Hi)), 64)), T.value < 0 ? (y(), a("option", Ui, E(k(c)("dialogs.pageSetup.custom")), 1)) : i("", !0)], 40, Vi)]),
|
|
5235
|
+
o("div", Wi, [o("label", Gi, E(k(c)("dialogs.pageSetup.orientation")), 1), o("select", {
|
|
5191
5236
|
class: "ps-input",
|
|
5192
5237
|
value: h.value,
|
|
5193
|
-
onChange:
|
|
5194
|
-
}, [o("option",
|
|
5195
|
-
o("div",
|
|
5196
|
-
o("div",
|
|
5197
|
-
o("label",
|
|
5198
|
-
|
|
5238
|
+
onChange: O
|
|
5239
|
+
}, [o("option", qi, E(k(c)("dialogs.pageSetup.portrait")), 1), o("option", Ji, E(k(c)("dialogs.pageSetup.landscape")), 1)], 40, Ki)]),
|
|
5240
|
+
o("div", Yi, E(k(c)("dialogs.pageSetup.margins")), 1),
|
|
5241
|
+
o("div", Xi, [
|
|
5242
|
+
o("label", Zi, E(k(c)("dialogs.pageSetup.top")), 1),
|
|
5243
|
+
I(o("input", {
|
|
5199
5244
|
class: "ps-input",
|
|
5200
5245
|
type: "number",
|
|
5201
5246
|
min: "0",
|
|
@@ -5203,16 +5248,16 @@ var Yn = l({
|
|
|
5203
5248
|
step: "0.1",
|
|
5204
5249
|
"onUpdate:modelValue": s[0] ||= (e) => g.value = e
|
|
5205
5250
|
}, null, 512), [[
|
|
5206
|
-
|
|
5251
|
+
N,
|
|
5207
5252
|
g.value,
|
|
5208
5253
|
void 0,
|
|
5209
5254
|
{ number: !0 }
|
|
5210
5255
|
]]),
|
|
5211
5256
|
s[4] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5212
5257
|
]),
|
|
5213
|
-
o("div",
|
|
5214
|
-
o("label",
|
|
5215
|
-
|
|
5258
|
+
o("div", Qi, [
|
|
5259
|
+
o("label", $i, E(k(c)("dialogs.pageSetup.bottom")), 1),
|
|
5260
|
+
I(o("input", {
|
|
5216
5261
|
class: "ps-input",
|
|
5217
5262
|
type: "number",
|
|
5218
5263
|
min: "0",
|
|
@@ -5220,33 +5265,33 @@ var Yn = l({
|
|
|
5220
5265
|
step: "0.1",
|
|
5221
5266
|
"onUpdate:modelValue": s[1] ||= (e) => _.value = e
|
|
5222
5267
|
}, null, 512), [[
|
|
5223
|
-
|
|
5268
|
+
N,
|
|
5224
5269
|
_.value,
|
|
5225
5270
|
void 0,
|
|
5226
5271
|
{ number: !0 }
|
|
5227
5272
|
]]),
|
|
5228
5273
|
s[5] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5229
5274
|
]),
|
|
5230
|
-
o("div",
|
|
5231
|
-
o("label",
|
|
5232
|
-
|
|
5275
|
+
o("div", ea, [
|
|
5276
|
+
o("label", ta, E(k(c)("dialogs.pageSetup.left")), 1),
|
|
5277
|
+
I(o("input", {
|
|
5233
5278
|
class: "ps-input",
|
|
5234
5279
|
type: "number",
|
|
5235
5280
|
min: "0",
|
|
5236
5281
|
max: "10",
|
|
5237
5282
|
step: "0.1",
|
|
5238
|
-
"onUpdate:modelValue": s[2] ||= (e) =>
|
|
5283
|
+
"onUpdate:modelValue": s[2] ||= (e) => v.value = e
|
|
5239
5284
|
}, null, 512), [[
|
|
5240
|
-
|
|
5241
|
-
|
|
5285
|
+
N,
|
|
5286
|
+
v.value,
|
|
5242
5287
|
void 0,
|
|
5243
5288
|
{ number: !0 }
|
|
5244
5289
|
]]),
|
|
5245
5290
|
s[6] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5246
5291
|
]),
|
|
5247
|
-
o("div",
|
|
5248
|
-
o("label",
|
|
5249
|
-
|
|
5292
|
+
o("div", na, [
|
|
5293
|
+
o("label", ra, E(k(c)("dialogs.pageSetup.right")), 1),
|
|
5294
|
+
I(o("input", {
|
|
5250
5295
|
class: "ps-input",
|
|
5251
5296
|
type: "number",
|
|
5252
5297
|
min: "0",
|
|
@@ -5254,7 +5299,7 @@ var Yn = l({
|
|
|
5254
5299
|
step: "0.1",
|
|
5255
5300
|
"onUpdate:modelValue": s[3] ||= (e) => b.value = e
|
|
5256
5301
|
}, null, 512), [[
|
|
5257
|
-
|
|
5302
|
+
N,
|
|
5258
5303
|
b.value,
|
|
5259
5304
|
void 0,
|
|
5260
5305
|
{ number: !0 }
|
|
@@ -5262,23 +5307,23 @@ var Yn = l({
|
|
|
5262
5307
|
s[7] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5263
5308
|
])
|
|
5264
5309
|
]),
|
|
5265
|
-
o("div",
|
|
5310
|
+
o("div", ia, [o("button", {
|
|
5266
5311
|
type: "button",
|
|
5267
5312
|
class: "ps-btn",
|
|
5268
5313
|
onClick: A
|
|
5269
|
-
},
|
|
5314
|
+
}, E(k(c)("common.cancel")), 1), o("button", {
|
|
5270
5315
|
type: "button",
|
|
5271
5316
|
class: "ps-btn ps-btn--primary",
|
|
5272
|
-
onClick:
|
|
5273
|
-
},
|
|
5317
|
+
onClick: j
|
|
5318
|
+
}, E(k(c)("common.apply")), 1)])
|
|
5274
5319
|
]),
|
|
5275
5320
|
_: 1
|
|
5276
5321
|
}, 8, ["open", "aria-label"]));
|
|
5277
5322
|
}
|
|
5278
|
-
}), [["__scopeId", "data-v-757aa5a3"]]),
|
|
5323
|
+
}), [["__scopeId", "data-v-757aa5a3"]]), la = { class: "tpd-dialog__header" }, ua = { class: "tpd-dialog__body" }, da = { class: "tpd-row" }, fa = { class: "tpd-label" }, pa = { value: "auto" }, ma = { value: "dxa" }, ha = { value: "pct" }, ga = {
|
|
5279
5324
|
key: 0,
|
|
5280
5325
|
class: "tpd-row"
|
|
5281
|
-
},
|
|
5326
|
+
}, _a = { class: "tpd-label" }, va = ["step"], ya = { class: "tpd-unit" }, ba = { class: "tpd-row" }, xa = { class: "tpd-label" }, Sa = ["value"], Ca = { class: "tpd-dialog__footer" }, wa = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5282
5327
|
__name: "TablePropertiesDialog",
|
|
5283
5328
|
props: {
|
|
5284
5329
|
isOpen: { type: Boolean },
|
|
@@ -5292,14 +5337,14 @@ var Yn = l({
|
|
|
5292
5337
|
left: "dialogs.tableProperties.alignOptions.left",
|
|
5293
5338
|
right: "dialogs.tableProperties.alignOptions.right",
|
|
5294
5339
|
start: "dialogs.tableProperties.alignOptions.start"
|
|
5295
|
-
}, u = t, d = n, f =
|
|
5340
|
+
}, u = t, d = n, f = S(0), p = (e) => {
|
|
5296
5341
|
switch (e) {
|
|
5297
5342
|
case "dxa":
|
|
5298
5343
|
case "pct": return e;
|
|
5299
5344
|
default: return "auto";
|
|
5300
5345
|
}
|
|
5301
|
-
}, m =
|
|
5302
|
-
|
|
5346
|
+
}, m = S(p(u.currentProps?.widthType ?? "auto")), h = S(U(u.currentProps?.justification));
|
|
5347
|
+
P(() => u.isOpen, (e) => {
|
|
5303
5348
|
e && (f.value = u.currentProps?.width ?? 0, m.value = p(u.currentProps?.widthType ?? "auto"), h.value = U(u.currentProps?.justification));
|
|
5304
5349
|
});
|
|
5305
5350
|
function g() {
|
|
@@ -5314,73 +5359,73 @@ var Yn = l({
|
|
|
5314
5359
|
};
|
|
5315
5360
|
d("apply", e), d("close");
|
|
5316
5361
|
}
|
|
5317
|
-
return (n, u) => (
|
|
5362
|
+
return (n, u) => (y(), r(k(c), {
|
|
5318
5363
|
open: t.isOpen,
|
|
5319
|
-
"aria-label":
|
|
5364
|
+
"aria-label": k(s)("dialogs.tableProperties.title"),
|
|
5320
5365
|
style: {
|
|
5321
5366
|
minWidth: "360px",
|
|
5322
5367
|
maxWidth: "440px",
|
|
5323
5368
|
width: "100%"
|
|
5324
5369
|
},
|
|
5325
5370
|
onClose: u[4] ||= (e) => n.$emit("close"),
|
|
5326
|
-
onKeydown:
|
|
5371
|
+
onKeydown: L(g, ["enter"])
|
|
5327
5372
|
}, {
|
|
5328
|
-
default:
|
|
5329
|
-
o("div",
|
|
5330
|
-
o("div",
|
|
5331
|
-
o("div",
|
|
5373
|
+
default: F(() => [
|
|
5374
|
+
o("div", la, E(k(s)("dialogs.tableProperties.title")), 1),
|
|
5375
|
+
o("div", ua, [
|
|
5376
|
+
o("div", da, [o("label", fa, E(k(s)("dialogs.tableProperties.widthType")), 1), I(o("select", {
|
|
5332
5377
|
"onUpdate:modelValue": u[0] ||= (e) => m.value = e,
|
|
5333
5378
|
class: "tpd-select"
|
|
5334
5379
|
}, [
|
|
5335
|
-
o("option",
|
|
5336
|
-
o("option",
|
|
5337
|
-
o("option",
|
|
5338
|
-
], 512), [[
|
|
5339
|
-
m.value === "auto" ? i("", !0) : (
|
|
5340
|
-
o("label",
|
|
5341
|
-
|
|
5380
|
+
o("option", pa, E(k(s)("dialogs.tableProperties.widthTypes.auto")), 1),
|
|
5381
|
+
o("option", ma, E(k(s)("dialogs.tableProperties.widthTypes.fixed")), 1),
|
|
5382
|
+
o("option", ha, E(k(s)("dialogs.tableProperties.widthTypes.percentage")), 1)
|
|
5383
|
+
], 512), [[M, m.value]])]),
|
|
5384
|
+
m.value === "auto" ? i("", !0) : (y(), a("div", ga, [
|
|
5385
|
+
o("label", _a, E(k(s)("dialogs.tableProperties.widthLabel")), 1),
|
|
5386
|
+
I(o("input", {
|
|
5342
5387
|
"onUpdate:modelValue": u[1] ||= (e) => f.value = e,
|
|
5343
5388
|
type: "number",
|
|
5344
5389
|
class: "tpd-input",
|
|
5345
5390
|
min: 0,
|
|
5346
5391
|
step: m.value === "pct" ? 5 : 100
|
|
5347
|
-
}, null, 8,
|
|
5348
|
-
|
|
5392
|
+
}, null, 8, va), [[
|
|
5393
|
+
N,
|
|
5349
5394
|
f.value,
|
|
5350
5395
|
void 0,
|
|
5351
5396
|
{ number: !0 }
|
|
5352
5397
|
]]),
|
|
5353
|
-
o("span",
|
|
5398
|
+
o("span", ya, E(m.value === "pct" ? k(s)("dialogs.tableProperties.units.fiftiethsPercent") : k(s)("dialogs.tableProperties.units.twips")), 1)
|
|
5354
5399
|
])),
|
|
5355
|
-
o("div",
|
|
5400
|
+
o("div", ba, [o("label", xa, E(k(s)("dialogs.tableProperties.alignmentLabel")), 1), I(o("select", {
|
|
5356
5401
|
"onUpdate:modelValue": u[2] ||= (e) => h.value = e,
|
|
5357
5402
|
class: "tpd-select"
|
|
5358
|
-
}, [(
|
|
5403
|
+
}, [(y(!0), a(e, null, C(k(ce), (e) => (y(), a("option", {
|
|
5359
5404
|
key: e,
|
|
5360
5405
|
value: e
|
|
5361
|
-
},
|
|
5406
|
+
}, E(k(s)(l[e])), 9, Sa))), 128))], 512), [[M, h.value]])])
|
|
5362
5407
|
]),
|
|
5363
|
-
o("div",
|
|
5408
|
+
o("div", Ca, [o("button", {
|
|
5364
5409
|
class: "tpd-btn",
|
|
5365
5410
|
onClick: u[3] ||= (e) => n.$emit("close")
|
|
5366
|
-
},
|
|
5411
|
+
}, E(k(s)("common.cancel")), 1), o("button", {
|
|
5367
5412
|
class: "tpd-btn tpd-btn--primary",
|
|
5368
5413
|
onClick: g
|
|
5369
|
-
},
|
|
5414
|
+
}, E(k(s)("common.apply")), 1)])
|
|
5370
5415
|
]),
|
|
5371
5416
|
_: 1
|
|
5372
5417
|
}, 8, ["open", "aria-label"]));
|
|
5373
5418
|
}
|
|
5374
|
-
}), [["__scopeId", "data-v-ee9734b8"]]),
|
|
5419
|
+
}), [["__scopeId", "data-v-ee9734b8"]]), Ta = { class: "dialog__body" }, Ea = { class: "field" }, Da = {
|
|
5375
5420
|
key: 0,
|
|
5376
5421
|
class: "grid"
|
|
5377
|
-
},
|
|
5422
|
+
}, Oa = { class: "field field--wide" }, ka = { class: "field" }, Aa = { class: "field" }, ja = { class: "field" }, Ma = { class: "check" }, Na = {
|
|
5378
5423
|
key: 1,
|
|
5379
5424
|
class: "grid"
|
|
5380
|
-
},
|
|
5425
|
+
}, Pa = { class: "field field--wide" }, Fa = { class: "field field--wide" }, Ia = ["aria-invalid"], La = {
|
|
5381
5426
|
key: 0,
|
|
5382
5427
|
class: "field__error"
|
|
5383
|
-
},
|
|
5428
|
+
}, Ra = { class: "field" }, za = { class: "check" }, Ba = { class: "check field--wide" }, Va = { class: "dialog__footer" }, Ha = ["disabled"], Ua = "#C0C0C0", Wa = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5384
5429
|
__name: "WatermarkDialog",
|
|
5385
5430
|
props: {
|
|
5386
5431
|
isOpen: { type: Boolean },
|
|
@@ -5388,43 +5433,43 @@ var Yn = l({
|
|
|
5388
5433
|
},
|
|
5389
5434
|
emits: ["close", "apply"],
|
|
5390
5435
|
setup(e, { emit: t }) {
|
|
5391
|
-
let { Dialog: s } = Q(), c = e, l = t, u =
|
|
5392
|
-
|
|
5393
|
-
e && (t ? (u.value = t.kind, t.kind === "text" ? (d.value = t.text, f.value = t.font ?? "Calibri", p.value =
|
|
5436
|
+
let { Dialog: s } = Q(), c = e, l = t, u = S("text"), d = S("CONFIDENTIAL"), f = S("Calibri"), p = S(Ua), m = S(!0), h = S(50), g = S(""), _ = S(""), v = S(!1), b = S(100), x = S(!0), C = n(() => u.value === "picture" && v.value && _.value.trim().length > 0 ? L(_.value.trim()) : ""), w = n(() => u.value === "none" || u.value === "text" && d.value.trim().length > 0 || u.value === "picture" && g.value.trim().length > 0 && C.value.length === 0);
|
|
5437
|
+
P([() => c.isOpen, () => c.currentWatermark], ([e, t]) => {
|
|
5438
|
+
e && (t ? (u.value = t.kind, t.kind === "text" ? (d.value = t.text, f.value = t.font ?? "Calibri", p.value = R(t.color), m.value = t.diagonal ?? !0, h.value = Math.round((t.opacity ?? .5) * 100)) : (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)) : (u.value = "text", d.value = "CONFIDENTIAL", f.value = "Calibri", p.value = Ua, m.value = !0, h.value = 50, g.value = "", _.value = "", v.value = !1, b.value = 100, x.value = !0));
|
|
5394
5439
|
}, { immediate: !0 });
|
|
5395
|
-
function
|
|
5396
|
-
|
|
5440
|
+
function T() {
|
|
5441
|
+
w.value && (u.value === "none" ? (l("apply", void 0), l("close")) : u.value === "text" ? (l("apply", {
|
|
5397
5442
|
kind: "text",
|
|
5398
5443
|
text: d.value.trim(),
|
|
5399
5444
|
...f.value.trim() ? { font: f.value.trim() } : {},
|
|
5400
|
-
color:
|
|
5445
|
+
color: j(p.value),
|
|
5401
5446
|
diagonal: m.value,
|
|
5402
|
-
opacity:
|
|
5447
|
+
opacity: D(h.value) / 100
|
|
5403
5448
|
}), l("close")) : (l("apply", {
|
|
5404
5449
|
kind: "picture",
|
|
5405
5450
|
imageRId: g.value.trim(),
|
|
5406
5451
|
..._.value.trim() ? { imageTarget: _.value.trim() } : {},
|
|
5407
|
-
..._.value.trim() ? { imageTargetExternal:
|
|
5408
|
-
scale:
|
|
5409
|
-
washout:
|
|
5452
|
+
..._.value.trim() ? { imageTargetExternal: v.value } : {},
|
|
5453
|
+
scale: O(b.value) / 100,
|
|
5454
|
+
washout: x.value
|
|
5410
5455
|
}), l("close")));
|
|
5411
5456
|
}
|
|
5412
|
-
function
|
|
5457
|
+
function D(e) {
|
|
5413
5458
|
return Math.min(100, Math.max(0, e));
|
|
5414
5459
|
}
|
|
5415
|
-
function
|
|
5460
|
+
function O(e) {
|
|
5416
5461
|
return Math.min(300, Math.max(1, e));
|
|
5417
5462
|
}
|
|
5418
|
-
function
|
|
5463
|
+
function j(e) {
|
|
5419
5464
|
return e.startsWith("#") ? e.slice(1) : e;
|
|
5420
5465
|
}
|
|
5421
|
-
function
|
|
5422
|
-
return
|
|
5466
|
+
function L(e) {
|
|
5467
|
+
return z(e) ? "" : "Use a web address (http/https).";
|
|
5423
5468
|
}
|
|
5424
|
-
function
|
|
5425
|
-
return !e || e === "auto" ?
|
|
5469
|
+
function R(e) {
|
|
5470
|
+
return !e || e === "auto" ? Ua : e.startsWith("#") ? e : `#${e}`;
|
|
5426
5471
|
}
|
|
5427
|
-
return (t, n) => (
|
|
5472
|
+
return (t, n) => (y(), r(k(s), {
|
|
5428
5473
|
open: e.isOpen,
|
|
5429
5474
|
"aria-label": "Watermark",
|
|
5430
5475
|
style: {
|
|
@@ -5434,99 +5479,99 @@ var Yn = l({
|
|
|
5434
5479
|
},
|
|
5435
5480
|
onClose: n[12] ||= (e) => t.$emit("close")
|
|
5436
5481
|
}, {
|
|
5437
|
-
default:
|
|
5482
|
+
default: F(() => [
|
|
5438
5483
|
n[25] ||= o("div", { class: "dialog__header" }, "Watermark", -1),
|
|
5439
|
-
o("div",
|
|
5440
|
-
o("label",
|
|
5484
|
+
o("div", Ta, [
|
|
5485
|
+
o("label", Ea, [n[14] ||= o("span", { class: "field__label" }, "Type", -1), I(o("select", {
|
|
5441
5486
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
5442
5487
|
class: "field__input"
|
|
5443
5488
|
}, [...n[13] ||= [
|
|
5444
5489
|
o("option", { value: "text" }, "Text watermark", -1),
|
|
5445
5490
|
o("option", { value: "picture" }, "Picture watermark", -1),
|
|
5446
5491
|
o("option", { value: "none" }, "No watermark", -1)
|
|
5447
|
-
]], 512), [[
|
|
5448
|
-
u.value === "text" ? (
|
|
5449
|
-
o("label",
|
|
5492
|
+
]], 512), [[M, u.value]])]),
|
|
5493
|
+
u.value === "text" ? (y(), a("div", Da, [
|
|
5494
|
+
o("label", Oa, [n[15] ||= o("span", { class: "field__label" }, "Text", -1), I(o("input", {
|
|
5450
5495
|
"onUpdate:modelValue": n[1] ||= (e) => d.value = e,
|
|
5451
5496
|
class: "field__input"
|
|
5452
|
-
}, null, 512), [[
|
|
5453
|
-
o("label",
|
|
5497
|
+
}, null, 512), [[N, d.value]])]),
|
|
5498
|
+
o("label", ka, [n[16] ||= o("span", { class: "field__label" }, "Font", -1), I(o("input", {
|
|
5454
5499
|
"onUpdate:modelValue": n[2] ||= (e) => f.value = e,
|
|
5455
5500
|
class: "field__input"
|
|
5456
|
-
}, null, 512), [[
|
|
5457
|
-
o("label",
|
|
5501
|
+
}, null, 512), [[N, f.value]])]),
|
|
5502
|
+
o("label", Aa, [n[17] ||= o("span", { class: "field__label" }, "Color", -1), I(o("input", {
|
|
5458
5503
|
"onUpdate:modelValue": n[3] ||= (e) => p.value = e,
|
|
5459
5504
|
class: "field__input field__input--color",
|
|
5460
5505
|
type: "color"
|
|
5461
|
-
}, null, 512), [[
|
|
5462
|
-
o("label",
|
|
5506
|
+
}, null, 512), [[N, p.value]])]),
|
|
5507
|
+
o("label", ja, [n[18] ||= o("span", { class: "field__label" }, "Opacity", -1), I(o("input", {
|
|
5463
5508
|
"onUpdate:modelValue": n[4] ||= (e) => h.value = e,
|
|
5464
5509
|
class: "field__input",
|
|
5465
5510
|
max: "100",
|
|
5466
5511
|
min: "0",
|
|
5467
5512
|
type: "number"
|
|
5468
5513
|
}, null, 512), [[
|
|
5469
|
-
|
|
5514
|
+
N,
|
|
5470
5515
|
h.value,
|
|
5471
5516
|
void 0,
|
|
5472
5517
|
{ number: !0 }
|
|
5473
5518
|
]])]),
|
|
5474
|
-
o("label",
|
|
5519
|
+
o("label", Ma, [I(o("input", {
|
|
5475
5520
|
"onUpdate:modelValue": n[5] ||= (e) => m.value = e,
|
|
5476
5521
|
type: "checkbox"
|
|
5477
|
-
}, null, 512), [[
|
|
5522
|
+
}, null, 512), [[A, m.value]]), n[19] ||= o("span", null, "Diagonal", -1)])
|
|
5478
5523
|
])) : i("", !0),
|
|
5479
|
-
u.value === "picture" ? (
|
|
5480
|
-
o("label",
|
|
5524
|
+
u.value === "picture" ? (y(), a("div", Na, [
|
|
5525
|
+
o("label", Pa, [n[20] ||= o("span", { class: "field__label" }, "Header image relationship id", -1), I(o("input", {
|
|
5481
5526
|
"onUpdate:modelValue": n[6] ||= (e) => g.value = e,
|
|
5482
5527
|
class: "field__input",
|
|
5483
5528
|
placeholder: "rId12"
|
|
5484
|
-
}, null, 512), [[
|
|
5485
|
-
o("label",
|
|
5529
|
+
}, null, 512), [[N, g.value]])]),
|
|
5530
|
+
o("label", Fa, [
|
|
5486
5531
|
n[21] ||= o("span", { class: "field__label" }, "Image target", -1),
|
|
5487
|
-
|
|
5532
|
+
I(o("input", {
|
|
5488
5533
|
"onUpdate:modelValue": n[7] ||= (e) => _.value = e,
|
|
5489
5534
|
"aria-invalid": C.value.length > 0,
|
|
5490
5535
|
class: "field__input",
|
|
5491
5536
|
placeholder: "word/media/image1.png"
|
|
5492
|
-
}, null, 8,
|
|
5493
|
-
C.value.length > 0 ? (
|
|
5537
|
+
}, null, 8, Ia), [[N, _.value]]),
|
|
5538
|
+
C.value.length > 0 ? (y(), a("span", La, E(C.value), 1)) : i("", !0)
|
|
5494
5539
|
]),
|
|
5495
|
-
o("label",
|
|
5540
|
+
o("label", Ra, [n[22] ||= o("span", { class: "field__label" }, "Scale", -1), I(o("input", {
|
|
5496
5541
|
"onUpdate:modelValue": n[8] ||= (e) => b.value = e,
|
|
5497
5542
|
class: "field__input",
|
|
5498
5543
|
max: "300",
|
|
5499
5544
|
min: "1",
|
|
5500
5545
|
type: "number"
|
|
5501
5546
|
}, null, 512), [[
|
|
5502
|
-
|
|
5547
|
+
N,
|
|
5503
5548
|
b.value,
|
|
5504
5549
|
void 0,
|
|
5505
5550
|
{ number: !0 }
|
|
5506
5551
|
]])]),
|
|
5507
|
-
o("label",
|
|
5508
|
-
"onUpdate:modelValue": n[9] ||= (e) =>
|
|
5552
|
+
o("label", za, [I(o("input", {
|
|
5553
|
+
"onUpdate:modelValue": n[9] ||= (e) => x.value = e,
|
|
5509
5554
|
type: "checkbox"
|
|
5510
|
-
}, null, 512), [[
|
|
5511
|
-
o("label",
|
|
5512
|
-
"onUpdate:modelValue": n[10] ||= (e) =>
|
|
5555
|
+
}, null, 512), [[A, x.value]]), n[23] ||= o("span", null, "Washout", -1)]),
|
|
5556
|
+
o("label", Ba, [I(o("input", {
|
|
5557
|
+
"onUpdate:modelValue": n[10] ||= (e) => v.value = e,
|
|
5513
5558
|
type: "checkbox"
|
|
5514
|
-
}, null, 512), [[
|
|
5559
|
+
}, null, 512), [[A, v.value]]), n[24] ||= o("span", null, "Target is an external URL", -1)])
|
|
5515
5560
|
])) : i("", !0)
|
|
5516
5561
|
]),
|
|
5517
|
-
o("div",
|
|
5562
|
+
o("div", Va, [o("button", {
|
|
5518
5563
|
class: "dialog__btn",
|
|
5519
5564
|
onClick: n[11] ||= (e) => t.$emit("close")
|
|
5520
5565
|
}, "Cancel"), o("button", {
|
|
5521
5566
|
class: "dialog__btn dialog__btn--primary",
|
|
5522
|
-
disabled: !
|
|
5523
|
-
onClick:
|
|
5524
|
-
}, " Apply ", 8,
|
|
5567
|
+
disabled: !w.value,
|
|
5568
|
+
onClick: T
|
|
5569
|
+
}, " Apply ", 8, Ha)])
|
|
5525
5570
|
]),
|
|
5526
5571
|
_: 1
|
|
5527
5572
|
}, 8, ["open"]));
|
|
5528
5573
|
}
|
|
5529
|
-
}), [["__scopeId", "data-v-a51a359f"]]),
|
|
5574
|
+
}), [["__scopeId", "data-v-a51a359f"]]), Ga = { class: "fnpd-dialog__header" }, Ka = { class: "fnpd-dialog__body" }, qa = { class: "fnpd-fieldset" }, Ja = { class: "fnpd-legend" }, Ya = { class: "fnpd-row" }, Xa = { class: "fnpd-label" }, Za = { value: "pageBottom" }, Qa = { value: "beneathText" }, $a = { class: "fnpd-row" }, eo = { class: "fnpd-label" }, to = ["value"], no = { class: "fnpd-row" }, ro = { class: "fnpd-label" }, io = { class: "fnpd-row" }, ao = { class: "fnpd-label" }, oo = { value: "continuous" }, so = { value: "eachSect" }, co = { value: "eachPage" }, lo = { class: "fnpd-fieldset" }, uo = { class: "fnpd-legend" }, fo = { class: "fnpd-row" }, po = { class: "fnpd-label" }, mo = { value: "docEnd" }, ho = { value: "sectEnd" }, go = { class: "fnpd-row" }, _o = { class: "fnpd-label" }, vo = ["value"], yo = { class: "fnpd-row" }, bo = { class: "fnpd-label" }, xo = { class: "fnpd-row" }, So = { class: "fnpd-label" }, Co = { value: "continuous" }, wo = { value: "eachSect" }, To = { class: "fnpd-dialog__footer" }, Eo = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5530
5575
|
__name: "FootnotePropertiesDialog",
|
|
5531
5576
|
props: {
|
|
5532
5577
|
isOpen: { type: Boolean },
|
|
@@ -5560,11 +5605,11 @@ var Yn = l({
|
|
|
5560
5605
|
value: "chicago",
|
|
5561
5606
|
label: s("dialogs.footnoteProperties.formats.symbols")
|
|
5562
5607
|
}
|
|
5563
|
-
]), f =
|
|
5564
|
-
|
|
5565
|
-
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",
|
|
5608
|
+
]), f = S("pageBottom"), p = S("decimal"), m = S(1), h = S("continuous"), g = S("docEnd"), _ = S("lowerRoman"), v = S(1), b = S("continuous");
|
|
5609
|
+
P(() => l.isOpen, (e) => {
|
|
5610
|
+
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");
|
|
5566
5611
|
});
|
|
5567
|
-
function
|
|
5612
|
+
function x() {
|
|
5568
5613
|
u("apply", {
|
|
5569
5614
|
position: f.value,
|
|
5570
5615
|
numFmt: p.value,
|
|
@@ -5573,112 +5618,112 @@ var Yn = l({
|
|
|
5573
5618
|
}, {
|
|
5574
5619
|
position: g.value,
|
|
5575
5620
|
numFmt: _.value,
|
|
5576
|
-
numStart:
|
|
5621
|
+
numStart: v.value,
|
|
5577
5622
|
numRestart: b.value
|
|
5578
5623
|
}), u("close");
|
|
5579
5624
|
}
|
|
5580
|
-
return (n, i) => (
|
|
5625
|
+
return (n, i) => (y(), r(k(c), {
|
|
5581
5626
|
open: t.isOpen,
|
|
5582
|
-
"aria-label":
|
|
5627
|
+
"aria-label": k(s)("dialogs.footnoteProperties.title"),
|
|
5583
5628
|
style: {
|
|
5584
5629
|
width: "440px",
|
|
5585
5630
|
maxWidth: "90vw"
|
|
5586
5631
|
},
|
|
5587
5632
|
onClose: i[9] ||= (e) => n.$emit("close")
|
|
5588
5633
|
}, {
|
|
5589
|
-
default:
|
|
5590
|
-
o("div",
|
|
5591
|
-
o("div",
|
|
5592
|
-
o("legend",
|
|
5593
|
-
o("div",
|
|
5634
|
+
default: F(() => [
|
|
5635
|
+
o("div", Ga, E(k(s)("dialogs.footnoteProperties.title")), 1),
|
|
5636
|
+
o("div", Ka, [o("fieldset", qa, [
|
|
5637
|
+
o("legend", Ja, E(k(s)("dialogs.footnoteProperties.footnotes")), 1),
|
|
5638
|
+
o("div", Ya, [o("label", Xa, E(k(s)("dialogs.footnoteProperties.position")), 1), I(o("select", {
|
|
5594
5639
|
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
5595
5640
|
class: "fnpd-select"
|
|
5596
|
-
}, [o("option",
|
|
5597
|
-
o("div",
|
|
5641
|
+
}, [o("option", Za, E(k(s)("dialogs.footnoteProperties.footnotePositions.bottomOfPage")), 1), o("option", Qa, E(k(s)("dialogs.footnoteProperties.footnotePositions.belowText")), 1)], 512), [[M, f.value]])]),
|
|
5642
|
+
o("div", $a, [o("label", eo, E(k(s)("dialogs.footnoteProperties.numberFormat")), 1), I(o("select", {
|
|
5598
5643
|
"onUpdate:modelValue": i[1] ||= (e) => p.value = e,
|
|
5599
5644
|
class: "fnpd-select"
|
|
5600
|
-
}, [(
|
|
5645
|
+
}, [(y(!0), a(e, null, C(d.value, (e) => (y(), a("option", {
|
|
5601
5646
|
key: e.value,
|
|
5602
5647
|
value: e.value
|
|
5603
|
-
},
|
|
5604
|
-
o("div",
|
|
5648
|
+
}, E(e.label), 9, to))), 128))], 512), [[M, p.value]])]),
|
|
5649
|
+
o("div", no, [o("label", ro, E(k(s)("dialogs.footnoteProperties.startAt")), 1), I(o("input", {
|
|
5605
5650
|
"onUpdate:modelValue": i[2] ||= (e) => m.value = e,
|
|
5606
5651
|
type: "number",
|
|
5607
5652
|
class: "fnpd-input",
|
|
5608
5653
|
min: "1"
|
|
5609
5654
|
}, null, 512), [[
|
|
5610
|
-
|
|
5655
|
+
N,
|
|
5611
5656
|
m.value,
|
|
5612
5657
|
void 0,
|
|
5613
5658
|
{ number: !0 }
|
|
5614
5659
|
]])]),
|
|
5615
|
-
o("div",
|
|
5660
|
+
o("div", io, [o("label", ao, E(k(s)("dialogs.footnoteProperties.numbering")), 1), I(o("select", {
|
|
5616
5661
|
"onUpdate:modelValue": i[3] ||= (e) => h.value = e,
|
|
5617
5662
|
class: "fnpd-select"
|
|
5618
5663
|
}, [
|
|
5619
|
-
o("option",
|
|
5620
|
-
o("option",
|
|
5621
|
-
o("option",
|
|
5622
|
-
], 512), [[
|
|
5623
|
-
]), o("fieldset",
|
|
5624
|
-
o("legend",
|
|
5625
|
-
o("div",
|
|
5664
|
+
o("option", oo, E(k(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1),
|
|
5665
|
+
o("option", so, E(k(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1),
|
|
5666
|
+
o("option", co, E(k(s)("dialogs.footnoteProperties.numberingOptions.restartPage")), 1)
|
|
5667
|
+
], 512), [[M, h.value]])])
|
|
5668
|
+
]), o("fieldset", lo, [
|
|
5669
|
+
o("legend", uo, E(k(s)("dialogs.footnoteProperties.endnotes")), 1),
|
|
5670
|
+
o("div", fo, [o("label", po, E(k(s)("dialogs.footnoteProperties.position")), 1), I(o("select", {
|
|
5626
5671
|
"onUpdate:modelValue": i[4] ||= (e) => g.value = e,
|
|
5627
5672
|
class: "fnpd-select"
|
|
5628
|
-
}, [o("option",
|
|
5629
|
-
o("div",
|
|
5673
|
+
}, [o("option", mo, E(k(s)("dialogs.footnoteProperties.endnotePositions.endOfDocument")), 1), o("option", ho, E(k(s)("dialogs.footnoteProperties.endnotePositions.endOfSection")), 1)], 512), [[M, g.value]])]),
|
|
5674
|
+
o("div", go, [o("label", _o, E(k(s)("dialogs.footnoteProperties.numberFormat")), 1), I(o("select", {
|
|
5630
5675
|
"onUpdate:modelValue": i[5] ||= (e) => _.value = e,
|
|
5631
5676
|
class: "fnpd-select"
|
|
5632
|
-
}, [(
|
|
5677
|
+
}, [(y(!0), a(e, null, C(d.value, (e) => (y(), a("option", {
|
|
5633
5678
|
key: e.value,
|
|
5634
5679
|
value: e.value
|
|
5635
|
-
},
|
|
5636
|
-
o("div",
|
|
5637
|
-
"onUpdate:modelValue": i[6] ||= (e) =>
|
|
5680
|
+
}, E(e.label), 9, vo))), 128))], 512), [[M, _.value]])]),
|
|
5681
|
+
o("div", yo, [o("label", bo, E(k(s)("dialogs.footnoteProperties.startAt")), 1), I(o("input", {
|
|
5682
|
+
"onUpdate:modelValue": i[6] ||= (e) => v.value = e,
|
|
5638
5683
|
type: "number",
|
|
5639
5684
|
class: "fnpd-input",
|
|
5640
5685
|
min: "1"
|
|
5641
5686
|
}, null, 512), [[
|
|
5642
|
-
|
|
5643
|
-
|
|
5687
|
+
N,
|
|
5688
|
+
v.value,
|
|
5644
5689
|
void 0,
|
|
5645
5690
|
{ number: !0 }
|
|
5646
5691
|
]])]),
|
|
5647
|
-
o("div",
|
|
5692
|
+
o("div", xo, [o("label", So, E(k(s)("dialogs.footnoteProperties.numbering")), 1), I(o("select", {
|
|
5648
5693
|
"onUpdate:modelValue": i[7] ||= (e) => b.value = e,
|
|
5649
5694
|
class: "fnpd-select"
|
|
5650
|
-
}, [o("option",
|
|
5695
|
+
}, [o("option", Co, E(k(s)("dialogs.footnoteProperties.numberingOptions.continuous")), 1), o("option", wo, E(k(s)("dialogs.footnoteProperties.numberingOptions.restartSection")), 1)], 512), [[M, b.value]])])
|
|
5651
5696
|
])]),
|
|
5652
|
-
o("div",
|
|
5697
|
+
o("div", To, [o("button", {
|
|
5653
5698
|
class: "fnpd-btn",
|
|
5654
5699
|
onClick: i[8] ||= (e) => n.$emit("close")
|
|
5655
|
-
},
|
|
5700
|
+
}, E(k(s)("common.cancel")), 1), o("button", {
|
|
5656
5701
|
class: "fnpd-btn fnpd-btn--primary",
|
|
5657
|
-
onClick:
|
|
5658
|
-
},
|
|
5702
|
+
onClick: x
|
|
5703
|
+
}, E(k(s)("common.apply")), 1)])
|
|
5659
5704
|
]),
|
|
5660
5705
|
_: 1
|
|
5661
5706
|
}, 8, ["open", "aria-label"]));
|
|
5662
5707
|
}
|
|
5663
|
-
}), [["__scopeId", "data-v-93b3bef4"]]),
|
|
5708
|
+
}), [["__scopeId", "data-v-93b3bef4"]]), Do = { class: "ipd-dialog__header" }, Oo = { class: "ipd-dialog__body" }, ko = { class: "ipd-fieldset" }, Ao = { class: "ipd-legend" }, jo = { class: "ipd-row" }, Mo = { value: "align" }, No = { value: "offset" }, Po = {
|
|
5664
5709
|
key: 0,
|
|
5665
5710
|
class: "ipd-row"
|
|
5666
|
-
},
|
|
5711
|
+
}, Fo = { class: "ipd-label" }, Io = { value: "left" }, Lo = { value: "center" }, Ro = { value: "right" }, zo = {
|
|
5667
5712
|
key: 1,
|
|
5668
5713
|
class: "ipd-row"
|
|
5669
|
-
},
|
|
5714
|
+
}, Bo = { class: "ipd-label" }, Vo = { class: "ipd-row" }, Ho = { class: "ipd-label" }, Uo = { value: "page" }, Wo = { value: "column" }, Go = { value: "margin" }, Ko = { value: "character" }, qo = { class: "ipd-fieldset" }, Jo = { class: "ipd-legend" }, Yo = { class: "ipd-row" }, Xo = { value: "align" }, Zo = { value: "offset" }, Qo = {
|
|
5670
5715
|
key: 0,
|
|
5671
5716
|
class: "ipd-row"
|
|
5672
|
-
},
|
|
5717
|
+
}, $o = { class: "ipd-label" }, es = { value: "top" }, ts = { value: "center" }, ns = { value: "bottom" }, rs = {
|
|
5673
5718
|
key: 1,
|
|
5674
5719
|
class: "ipd-row"
|
|
5675
|
-
},
|
|
5720
|
+
}, is = { class: "ipd-label" }, as = { class: "ipd-row" }, os = { class: "ipd-label" }, ss = { value: "page" }, cs = { value: "margin" }, ls = { value: "paragraph" }, us = { value: "line" }, ds = { class: "ipd-fieldset" }, fs = { class: "ipd-row" }, ps = { class: "ipd-label" }, ms = {
|
|
5676
5721
|
class: "ipd-label",
|
|
5677
5722
|
style: { width: "60px" }
|
|
5678
|
-
},
|
|
5723
|
+
}, hs = { class: "ipd-row" }, gs = { class: "ipd-label" }, _s = {
|
|
5679
5724
|
class: "ipd-label",
|
|
5680
5725
|
style: { width: "60px" }
|
|
5681
|
-
},
|
|
5726
|
+
}, vs = { class: "ipd-dialog__footer" }, ys = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5682
5727
|
__name: "ImagePositionDialog",
|
|
5683
5728
|
props: {
|
|
5684
5729
|
isOpen: { type: Boolean },
|
|
@@ -5686,11 +5731,11 @@ var Yn = l({
|
|
|
5686
5731
|
},
|
|
5687
5732
|
emits: ["close", "apply"],
|
|
5688
5733
|
setup(e, { emit: t }) {
|
|
5689
|
-
let { t: n } = X(), { Dialog: i } = Q(), s = e, c = t, l =
|
|
5690
|
-
|
|
5734
|
+
let { t: n } = X(), { Dialog: i } = Q(), s = e, c = t, l = S("align"), u = S("left"), d = S(0), f = S("column"), p = S("align"), m = S("top"), h = S(0), g = S("paragraph"), _ = S(0), v = S(0), b = S(0), x = S(0);
|
|
5735
|
+
P(() => s.isOpen, (e) => {
|
|
5691
5736
|
if (!e) return;
|
|
5692
5737
|
let t = s.currentData;
|
|
5693
|
-
t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0,
|
|
5738
|
+
t?.horizontal?.align ? (l.value = "align", u.value = t.horizontal.align) : t?.horizontal?.posOffset != null && (l.value = "offset", d.value = t.horizontal.posOffset), f.value = t?.horizontal?.relativeTo ?? "column", t?.vertical?.align ? (p.value = "align", m.value = t.vertical.align) : t?.vertical?.posOffset != null && (p.value = "offset", h.value = t.vertical.posOffset), g.value = t?.vertical?.relativeTo ?? "paragraph", _.value = t?.distTop ?? 0, v.value = t?.distBottom ?? 0, b.value = t?.distLeft ?? 0, x.value = t?.distRight ?? 0;
|
|
5694
5739
|
});
|
|
5695
5740
|
function C() {
|
|
5696
5741
|
let e = {
|
|
@@ -5703,158 +5748,158 @@ var Yn = l({
|
|
|
5703
5748
|
...p.value === "align" ? { align: m.value } : { posOffset: h.value }
|
|
5704
5749
|
},
|
|
5705
5750
|
distTop: _.value,
|
|
5706
|
-
distBottom:
|
|
5751
|
+
distBottom: v.value,
|
|
5707
5752
|
distLeft: b.value,
|
|
5708
|
-
distRight:
|
|
5753
|
+
distRight: x.value
|
|
5709
5754
|
};
|
|
5710
5755
|
c("apply", e), c("close");
|
|
5711
5756
|
}
|
|
5712
|
-
return (t, s) => (
|
|
5757
|
+
return (t, s) => (y(), r(k(i), {
|
|
5713
5758
|
open: e.isOpen,
|
|
5714
|
-
"aria-label":
|
|
5759
|
+
"aria-label": k(n)("dialogs.imagePosition.title"),
|
|
5715
5760
|
style: {
|
|
5716
5761
|
width: "420px",
|
|
5717
5762
|
maxWidth: "90vw"
|
|
5718
5763
|
},
|
|
5719
5764
|
onClose: s[13] ||= (e) => t.$emit("close")
|
|
5720
5765
|
}, {
|
|
5721
|
-
default:
|
|
5722
|
-
o("div",
|
|
5723
|
-
o("div",
|
|
5724
|
-
o("fieldset",
|
|
5725
|
-
o("legend",
|
|
5726
|
-
o("div",
|
|
5766
|
+
default: F(() => [
|
|
5767
|
+
o("div", Do, E(k(n)("dialogs.imagePosition.title")), 1),
|
|
5768
|
+
o("div", Oo, [
|
|
5769
|
+
o("fieldset", ko, [
|
|
5770
|
+
o("legend", Ao, E(k(n)("dialogs.imagePosition.horizontal")), 1),
|
|
5771
|
+
o("div", jo, [s[14] ||= o("label", { class: "ipd-label" }, "Mode", -1), I(o("select", {
|
|
5727
5772
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
5728
5773
|
class: "ipd-select"
|
|
5729
|
-
}, [o("option",
|
|
5730
|
-
l.value === "align" ? (
|
|
5774
|
+
}, [o("option", Mo, E(k(n)("dialogs.imagePosition.alignment")), 1), o("option", No, E(k(n)("dialogs.imagePosition.offset")), 1)], 512), [[M, l.value]])]),
|
|
5775
|
+
l.value === "align" ? (y(), a("div", Po, [o("label", Fo, E(k(n)("dialogs.imagePosition.align")), 1), I(o("select", {
|
|
5731
5776
|
"onUpdate:modelValue": s[1] ||= (e) => u.value = e,
|
|
5732
5777
|
class: "ipd-select"
|
|
5733
5778
|
}, [
|
|
5734
|
-
o("option",
|
|
5735
|
-
o("option",
|
|
5736
|
-
o("option",
|
|
5737
|
-
], 512), [[
|
|
5779
|
+
o("option", Io, E(k(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5780
|
+
o("option", Lo, E(k(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5781
|
+
o("option", Ro, E(k(n)("dialogs.imagePosition.alignOptions.right")), 1)
|
|
5782
|
+
], 512), [[M, u.value]])])) : (y(), a("div", zo, [o("label", Bo, E(k(n)("dialogs.imagePosition.offsetPx")), 1), I(o("input", {
|
|
5738
5783
|
"onUpdate:modelValue": s[2] ||= (e) => d.value = e,
|
|
5739
5784
|
type: "number",
|
|
5740
5785
|
class: "ipd-input"
|
|
5741
5786
|
}, null, 512), [[
|
|
5742
|
-
|
|
5787
|
+
N,
|
|
5743
5788
|
d.value,
|
|
5744
5789
|
void 0,
|
|
5745
5790
|
{ number: !0 }
|
|
5746
5791
|
]])])),
|
|
5747
|
-
o("div",
|
|
5792
|
+
o("div", Vo, [o("label", Ho, E(k(n)("dialogs.imagePosition.relativeTo")), 1), I(o("select", {
|
|
5748
5793
|
"onUpdate:modelValue": s[3] ||= (e) => f.value = e,
|
|
5749
5794
|
class: "ipd-select"
|
|
5750
5795
|
}, [
|
|
5751
|
-
o("option",
|
|
5752
|
-
o("option",
|
|
5753
|
-
o("option",
|
|
5754
|
-
o("option",
|
|
5755
|
-
], 512), [[
|
|
5796
|
+
o("option", Uo, E(k(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5797
|
+
o("option", Wo, E(k(n)("dialogs.imagePosition.relativeOptions.column")), 1),
|
|
5798
|
+
o("option", Go, E(k(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5799
|
+
o("option", Ko, E(k(n)("dialogs.imagePosition.relativeOptions.character")), 1)
|
|
5800
|
+
], 512), [[M, f.value]])])
|
|
5756
5801
|
]),
|
|
5757
|
-
o("fieldset",
|
|
5758
|
-
o("legend",
|
|
5759
|
-
o("div",
|
|
5802
|
+
o("fieldset", qo, [
|
|
5803
|
+
o("legend", Jo, E(k(n)("dialogs.imagePosition.vertical")), 1),
|
|
5804
|
+
o("div", Yo, [s[15] ||= o("label", { class: "ipd-label" }, "Mode", -1), I(o("select", {
|
|
5760
5805
|
"onUpdate:modelValue": s[4] ||= (e) => p.value = e,
|
|
5761
5806
|
class: "ipd-select"
|
|
5762
|
-
}, [o("option",
|
|
5763
|
-
p.value === "align" ? (
|
|
5807
|
+
}, [o("option", Xo, E(k(n)("dialogs.imagePosition.alignment")), 1), o("option", Zo, E(k(n)("dialogs.imagePosition.offset")), 1)], 512), [[M, p.value]])]),
|
|
5808
|
+
p.value === "align" ? (y(), a("div", Qo, [o("label", $o, E(k(n)("dialogs.imagePosition.align")), 1), I(o("select", {
|
|
5764
5809
|
"onUpdate:modelValue": s[5] ||= (e) => m.value = e,
|
|
5765
5810
|
class: "ipd-select"
|
|
5766
5811
|
}, [
|
|
5767
|
-
o("option",
|
|
5768
|
-
o("option",
|
|
5769
|
-
o("option",
|
|
5770
|
-
], 512), [[
|
|
5812
|
+
o("option", es, E(k(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5813
|
+
o("option", ts, E(k(n)("dialogs.imagePosition.alignOptions.center")), 1),
|
|
5814
|
+
o("option", ns, E(k(n)("dialogs.imagePosition.alignOptions.bottom")), 1)
|
|
5815
|
+
], 512), [[M, m.value]])])) : (y(), a("div", rs, [o("label", is, E(k(n)("dialogs.imagePosition.offsetPx")), 1), I(o("input", {
|
|
5771
5816
|
"onUpdate:modelValue": s[6] ||= (e) => h.value = e,
|
|
5772
5817
|
type: "number",
|
|
5773
5818
|
class: "ipd-input"
|
|
5774
5819
|
}, null, 512), [[
|
|
5775
|
-
|
|
5820
|
+
N,
|
|
5776
5821
|
h.value,
|
|
5777
5822
|
void 0,
|
|
5778
5823
|
{ number: !0 }
|
|
5779
5824
|
]])])),
|
|
5780
|
-
o("div",
|
|
5825
|
+
o("div", as, [o("label", os, E(k(n)("dialogs.imagePosition.relativeTo")), 1), I(o("select", {
|
|
5781
5826
|
"onUpdate:modelValue": s[7] ||= (e) => g.value = e,
|
|
5782
5827
|
class: "ipd-select"
|
|
5783
5828
|
}, [
|
|
5784
|
-
o("option",
|
|
5785
|
-
o("option",
|
|
5786
|
-
o("option",
|
|
5787
|
-
o("option",
|
|
5788
|
-
], 512), [[
|
|
5829
|
+
o("option", ss, E(k(n)("dialogs.imagePosition.relativeOptions.page")), 1),
|
|
5830
|
+
o("option", cs, E(k(n)("dialogs.imagePosition.relativeOptions.margin")), 1),
|
|
5831
|
+
o("option", ls, E(k(n)("dialogs.imagePosition.relativeOptions.paragraph")), 1),
|
|
5832
|
+
o("option", us, E(k(n)("dialogs.imagePosition.relativeOptions.line")), 1)
|
|
5833
|
+
], 512), [[M, g.value]])])
|
|
5789
5834
|
]),
|
|
5790
|
-
o("fieldset",
|
|
5835
|
+
o("fieldset", ds, [
|
|
5791
5836
|
s[16] ||= o("legend", { class: "ipd-legend" }, "Distance from text (px)", -1),
|
|
5792
|
-
o("div",
|
|
5793
|
-
o("label",
|
|
5794
|
-
|
|
5837
|
+
o("div", fs, [
|
|
5838
|
+
o("label", ps, E(k(n)("dialogs.imagePosition.alignOptions.top")), 1),
|
|
5839
|
+
I(o("input", {
|
|
5795
5840
|
"onUpdate:modelValue": s[8] ||= (e) => _.value = e,
|
|
5796
5841
|
type: "number",
|
|
5797
5842
|
class: "ipd-input",
|
|
5798
5843
|
min: "0"
|
|
5799
5844
|
}, null, 512), [[
|
|
5800
|
-
|
|
5845
|
+
N,
|
|
5801
5846
|
_.value,
|
|
5802
5847
|
void 0,
|
|
5803
5848
|
{ number: !0 }
|
|
5804
5849
|
]]),
|
|
5805
|
-
o("label",
|
|
5806
|
-
|
|
5807
|
-
"onUpdate:modelValue": s[9] ||= (e) =>
|
|
5850
|
+
o("label", ms, E(k(n)("dialogs.imagePosition.alignOptions.bottom")), 1),
|
|
5851
|
+
I(o("input", {
|
|
5852
|
+
"onUpdate:modelValue": s[9] ||= (e) => v.value = e,
|
|
5808
5853
|
type: "number",
|
|
5809
5854
|
class: "ipd-input",
|
|
5810
5855
|
min: "0"
|
|
5811
5856
|
}, null, 512), [[
|
|
5812
|
-
|
|
5813
|
-
|
|
5857
|
+
N,
|
|
5858
|
+
v.value,
|
|
5814
5859
|
void 0,
|
|
5815
5860
|
{ number: !0 }
|
|
5816
5861
|
]])
|
|
5817
5862
|
]),
|
|
5818
|
-
o("div",
|
|
5819
|
-
o("label",
|
|
5820
|
-
|
|
5863
|
+
o("div", hs, [
|
|
5864
|
+
o("label", gs, E(k(n)("dialogs.imagePosition.alignOptions.left")), 1),
|
|
5865
|
+
I(o("input", {
|
|
5821
5866
|
"onUpdate:modelValue": s[10] ||= (e) => b.value = e,
|
|
5822
5867
|
type: "number",
|
|
5823
5868
|
class: "ipd-input",
|
|
5824
5869
|
min: "0"
|
|
5825
5870
|
}, null, 512), [[
|
|
5826
|
-
|
|
5871
|
+
N,
|
|
5827
5872
|
b.value,
|
|
5828
5873
|
void 0,
|
|
5829
5874
|
{ number: !0 }
|
|
5830
5875
|
]]),
|
|
5831
|
-
o("label",
|
|
5832
|
-
|
|
5833
|
-
"onUpdate:modelValue": s[11] ||= (e) =>
|
|
5876
|
+
o("label", _s, E(k(n)("dialogs.imagePosition.alignOptions.right")), 1),
|
|
5877
|
+
I(o("input", {
|
|
5878
|
+
"onUpdate:modelValue": s[11] ||= (e) => x.value = e,
|
|
5834
5879
|
type: "number",
|
|
5835
5880
|
class: "ipd-input",
|
|
5836
5881
|
min: "0"
|
|
5837
5882
|
}, null, 512), [[
|
|
5838
|
-
|
|
5839
|
-
|
|
5883
|
+
N,
|
|
5884
|
+
x.value,
|
|
5840
5885
|
void 0,
|
|
5841
5886
|
{ number: !0 }
|
|
5842
5887
|
]])
|
|
5843
5888
|
])
|
|
5844
5889
|
])
|
|
5845
5890
|
]),
|
|
5846
|
-
o("div",
|
|
5891
|
+
o("div", vs, [o("button", {
|
|
5847
5892
|
class: "ipd-btn",
|
|
5848
5893
|
onClick: s[12] ||= (e) => t.$emit("close")
|
|
5849
|
-
},
|
|
5894
|
+
}, E(k(n)("common.cancel")), 1), o("button", {
|
|
5850
5895
|
class: "ipd-btn ipd-btn--primary",
|
|
5851
5896
|
onClick: C
|
|
5852
|
-
},
|
|
5897
|
+
}, E(k(n)("common.apply")), 1)])
|
|
5853
5898
|
]),
|
|
5854
5899
|
_: 1
|
|
5855
5900
|
}, 8, ["open", "aria-label"]));
|
|
5856
5901
|
}
|
|
5857
|
-
}), [["__scopeId", "data-v-55f53deb"]]),
|
|
5902
|
+
}), [["__scopeId", "data-v-55f53deb"]]), bs = { class: "dialog__body" }, xs = { class: "field" }, Ss = ["accept"], Cs = { class: "field" }, ws = ["placeholder"], Ts = { class: "grid" }, Es = { class: "field" }, Ds = { class: "field" }, Os = { class: "dialog__footer" }, ks = ["disabled"], As = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
5858
5903
|
__name: "InsertImageDialog",
|
|
5859
5904
|
props: {
|
|
5860
5905
|
isOpen: { type: Boolean },
|
|
@@ -5862,8 +5907,8 @@ var Yn = l({
|
|
|
5862
5907
|
},
|
|
5863
5908
|
emits: ["close", "insert"],
|
|
5864
5909
|
setup(e, { emit: t }) {
|
|
5865
|
-
let { Dialog: n } = Q(), i = e, a = t, s =
|
|
5866
|
-
|
|
5910
|
+
let { Dialog: n } = Q(), i = e, a = t, s = S(null), c = S(""), l = S(""), u = S("");
|
|
5911
|
+
P(() => i.isOpen, (e) => {
|
|
5867
5912
|
e && (s.value = null, c.value = "", l.value = "", u.value = "");
|
|
5868
5913
|
});
|
|
5869
5914
|
function d(e) {
|
|
@@ -5884,7 +5929,7 @@ var Yn = l({
|
|
|
5884
5929
|
let t = Number(e);
|
|
5885
5930
|
return Number.isFinite(t) && t > 0 ? t : void 0;
|
|
5886
5931
|
}
|
|
5887
|
-
return (t, i) => (
|
|
5932
|
+
return (t, i) => (y(), r(k(n), {
|
|
5888
5933
|
open: e.isOpen,
|
|
5889
5934
|
"aria-label": "Insert Image",
|
|
5890
5935
|
style: {
|
|
@@ -5894,54 +5939,54 @@ var Yn = l({
|
|
|
5894
5939
|
},
|
|
5895
5940
|
onClose: i[4] ||= (e) => t.$emit("close")
|
|
5896
5941
|
}, {
|
|
5897
|
-
default:
|
|
5942
|
+
default: F(() => [
|
|
5898
5943
|
i[9] ||= o("div", { class: "dialog__header" }, "Insert Image", -1),
|
|
5899
|
-
o("div",
|
|
5900
|
-
o("label",
|
|
5944
|
+
o("div", bs, [
|
|
5945
|
+
o("label", xs, [i[5] ||= o("span", { class: "field__label" }, "Image file", -1), o("input", {
|
|
5901
5946
|
class: "field__input",
|
|
5902
5947
|
type: "file",
|
|
5903
5948
|
accept: e.accept,
|
|
5904
5949
|
onChange: d
|
|
5905
|
-
}, null, 40,
|
|
5906
|
-
o("label",
|
|
5950
|
+
}, null, 40, Ss)]),
|
|
5951
|
+
o("label", Cs, [i[6] ||= o("span", { class: "field__label" }, "Alt text", -1), I(o("input", {
|
|
5907
5952
|
"onUpdate:modelValue": i[0] ||= (e) => c.value = e,
|
|
5908
5953
|
class: "field__input",
|
|
5909
5954
|
placeholder: s.value?.name ?? ""
|
|
5910
|
-
}, null, 8,
|
|
5911
|
-
o("div",
|
|
5955
|
+
}, null, 8, ws), [[N, c.value]])]),
|
|
5956
|
+
o("div", Ts, [o("label", Es, [i[7] ||= o("span", { class: "field__label" }, "Width", -1), I(o("input", {
|
|
5912
5957
|
"onUpdate:modelValue": i[1] ||= (e) => l.value = e,
|
|
5913
5958
|
class: "field__input",
|
|
5914
5959
|
min: "1",
|
|
5915
5960
|
placeholder: "Auto",
|
|
5916
5961
|
type: "number"
|
|
5917
|
-
}, null, 512), [[
|
|
5962
|
+
}, null, 512), [[N, l.value]])]), o("label", Ds, [i[8] ||= o("span", { class: "field__label" }, "Height", -1), I(o("input", {
|
|
5918
5963
|
"onUpdate:modelValue": i[2] ||= (e) => u.value = e,
|
|
5919
5964
|
class: "field__input",
|
|
5920
5965
|
min: "1",
|
|
5921
5966
|
placeholder: "Auto",
|
|
5922
5967
|
type: "number"
|
|
5923
|
-
}, null, 512), [[
|
|
5968
|
+
}, null, 512), [[N, u.value]])])])
|
|
5924
5969
|
]),
|
|
5925
|
-
o("div",
|
|
5970
|
+
o("div", Os, [o("button", {
|
|
5926
5971
|
class: "dialog__btn",
|
|
5927
5972
|
onClick: i[3] ||= (e) => t.$emit("close")
|
|
5928
5973
|
}, "Cancel"), o("button", {
|
|
5929
5974
|
class: "dialog__btn dialog__btn--primary",
|
|
5930
5975
|
disabled: !s.value,
|
|
5931
5976
|
onClick: f
|
|
5932
|
-
}, " Insert ", 8,
|
|
5977
|
+
}, " Insert ", 8, ks)])
|
|
5933
5978
|
]),
|
|
5934
5979
|
_: 1
|
|
5935
5980
|
}, 8, ["open"]));
|
|
5936
5981
|
}
|
|
5937
|
-
}), [["__scopeId", "data-v-bb3a51b6"]]),
|
|
5982
|
+
}), [["__scopeId", "data-v-bb3a51b6"]]), js = x({
|
|
5938
5983
|
rows: 3,
|
|
5939
5984
|
cols: 3
|
|
5940
5985
|
}), $ = (e) => ({
|
|
5941
5986
|
style: "single",
|
|
5942
5987
|
size: 4,
|
|
5943
5988
|
color: { rgb: e }
|
|
5944
|
-
}),
|
|
5989
|
+
}), Ms = [
|
|
5945
5990
|
{
|
|
5946
5991
|
id: "TableNormal",
|
|
5947
5992
|
name: "Normal Table",
|
|
@@ -6233,7 +6278,7 @@ var Yn = l({
|
|
|
6233
6278
|
band1Horz: { backgroundColor: "#E2EFDA" }
|
|
6234
6279
|
}
|
|
6235
6280
|
}
|
|
6236
|
-
],
|
|
6281
|
+
], Ns = {
|
|
6237
6282
|
TableNormal: "table.styles.normalTable",
|
|
6238
6283
|
TableGrid: "table.styles.tableGrid",
|
|
6239
6284
|
TableGridLight: "table.styles.gridTableLight",
|
|
@@ -6248,15 +6293,15 @@ var Yn = l({
|
|
|
6248
6293
|
"ListTable4-Accent3": "table.styles.listTable4Accent3",
|
|
6249
6294
|
"GridTable4-Accent5": "table.styles.gridTable4Accent5",
|
|
6250
6295
|
"GridTable4-Accent6": "table.styles.gridTable4Accent6"
|
|
6251
|
-
},
|
|
6252
|
-
function
|
|
6253
|
-
let t = e ?
|
|
6296
|
+
}, Ps = 4, Fs = 3;
|
|
6297
|
+
function Is(e) {
|
|
6298
|
+
let t = e ? le(e.style) : "none";
|
|
6254
6299
|
return !e || t === "none" ? "none" : `${e.size ? Math.max(1, Math.round(e.size / 8)) : 1}px ${t} ${e.color?.rgb ? `#${e.color.rgb}` : "#000"}`;
|
|
6255
6300
|
}
|
|
6256
|
-
function
|
|
6257
|
-
return
|
|
6301
|
+
function Ls(e, t, n, r) {
|
|
6302
|
+
return Is(e === void 0 ? t ? n ?? r : r : e);
|
|
6258
6303
|
}
|
|
6259
|
-
function
|
|
6304
|
+
function Rs(e, t = Ps, n = Fs) {
|
|
6260
6305
|
let r = e.look ?? {}, i = e.conditionals ?? {}, a = e.tableBorders, o = [], s = 0;
|
|
6261
6306
|
for (let e = 0; e < t; e++) {
|
|
6262
6307
|
let c = e === 0 && !!r.firstRow, l = e === t - 1 && !!r.lastRow, u = r.noHBand !== !0, d;
|
|
@@ -6269,10 +6314,10 @@ function ks(e, t = Ts, n = Es) {
|
|
|
6269
6314
|
height: "10px",
|
|
6270
6315
|
boxSizing: "border-box",
|
|
6271
6316
|
backgroundColor: m?.backgroundColor ?? "transparent",
|
|
6272
|
-
borderTop:
|
|
6273
|
-
borderBottom:
|
|
6274
|
-
borderLeft:
|
|
6275
|
-
borderRight:
|
|
6317
|
+
borderTop: Ls(h?.top, e > 0, a?.insideH, a?.top),
|
|
6318
|
+
borderBottom: Ls(h?.bottom, e < t - 1, a?.insideH, a?.bottom),
|
|
6319
|
+
borderLeft: Ls(h?.left, s > 0, a?.insideV, a?.left),
|
|
6320
|
+
borderRight: Ls(h?.right, s < n - 1, a?.insideV, a?.right)
|
|
6276
6321
|
};
|
|
6277
6322
|
o.push(g);
|
|
6278
6323
|
}
|
|
@@ -6280,142 +6325,142 @@ function ks(e, t = Ts, n = Es) {
|
|
|
6280
6325
|
return o;
|
|
6281
6326
|
}
|
|
6282
6327
|
// src/components/ui/TableStyleGallery.vue?vue&type=script&setup=true&lang.ts
|
|
6283
|
-
var
|
|
6328
|
+
var zs = { class: "tsg" }, Bs = { class: "tsg__grid" }, Vs = ["title", "onMousedown"], Hs = { class: "tsg__preview" }, Us = { class: "tsg__name" }, Ws = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
6284
6329
|
__name: "TableStyleGallery",
|
|
6285
6330
|
props: { currentStyleId: {} },
|
|
6286
6331
|
emits: ["apply"],
|
|
6287
6332
|
setup(t) {
|
|
6288
|
-
let { t: n } = X(), r =
|
|
6333
|
+
let { t: n } = X(), r = Ms;
|
|
6289
6334
|
function i(e) {
|
|
6290
|
-
let t =
|
|
6335
|
+
let t = Ns[e.id];
|
|
6291
6336
|
return t ? n(t) : e.name;
|
|
6292
6337
|
}
|
|
6293
|
-
return (n, s) => (
|
|
6338
|
+
return (n, s) => (y(), a("div", zs, [o("div", Bs, [(y(!0), a(e, null, C(k(r), (r) => (y(), a("button", {
|
|
6294
6339
|
key: r.id,
|
|
6295
6340
|
class: m(["tsg__item", { "tsg__item--selected": t.currentStyleId === r.id }]),
|
|
6296
6341
|
title: i(r),
|
|
6297
|
-
onMousedown:
|
|
6298
|
-
}, [o("div",
|
|
6342
|
+
onMousedown: R((e) => n.$emit("apply", r.id), ["prevent"])
|
|
6343
|
+
}, [o("div", Hs, [(y(!0), a(e, null, C(k(Rs)(r), (e, t) => (y(), a("div", {
|
|
6299
6344
|
key: t,
|
|
6300
6345
|
class: "tsg__cell",
|
|
6301
6346
|
style: h(e)
|
|
6302
|
-
}, null, 4))), 128))]), o("span",
|
|
6347
|
+
}, null, 4))), 128))]), o("span", Us, E(i(r)), 1)], 42, Vs))), 128))])]));
|
|
6303
6348
|
}
|
|
6304
|
-
}), [["__scopeId", "data-v-5db7fd3c"]]),
|
|
6349
|
+
}), [["__scopeId", "data-v-5db7fd3c"]]), Gs = { class: "dialog__header" }, Ks = { class: "dialog__title" }, qs = ["title"], Js = { class: "dialog__body" }, Ys = ["aria-label"], Xs = ["onMouseenter", "onMousedown"], Zs = { class: "table-grid__label" }, Qs = { class: "dialog__separator" }, $s = { class: "table-manual" }, ec = { class: "table-manual__field" }, tc = { class: "table-manual__field" }, nc = { class: "table-options" }, rc = { class: "table-options__radio" }, ic = { class: "table-options__radio" }, ac = { class: "dialog__separator" }, oc = { class: "dialog__footer" }, sc = ["disabled"], cc = 8, lc = 10, uc = 1, dc = 100, fc = 1, pc = 20, mc = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
6305
6350
|
__name: "InsertTableDialog",
|
|
6306
6351
|
props: { isOpen: { type: Boolean } },
|
|
6307
6352
|
emits: ["close", "insert"],
|
|
6308
6353
|
setup(t, { emit: r }) {
|
|
6309
|
-
let { t: s } = X(), l = t, u = r, d =
|
|
6310
|
-
|
|
6311
|
-
e && (p.value =
|
|
6354
|
+
let { t: s } = X(), l = t, u = r, d = S(0), f = S(0), p = S(js.rows), h = S(js.cols), g = S("fixed"), _ = S(null);
|
|
6355
|
+
P(() => l.isOpen, (e) => {
|
|
6356
|
+
e && (p.value = js.rows, h.value = js.cols, d.value = 0, f.value = 0);
|
|
6312
6357
|
});
|
|
6313
|
-
let
|
|
6314
|
-
function
|
|
6358
|
+
let v = n(() => Number.parseInt(String(p.value), 10)), b = n(() => Number.parseInt(String(h.value), 10)), x = n(() => Number.isFinite(v.value) && v.value >= uc && v.value <= dc), w = n(() => Number.isFinite(b.value) && b.value >= fc && b.value <= pc), T = n(() => x.value && w.value);
|
|
6359
|
+
function D() {
|
|
6315
6360
|
u("close");
|
|
6316
6361
|
}
|
|
6317
|
-
function
|
|
6362
|
+
function O(e, t) {
|
|
6318
6363
|
d.value = e, f.value = t, p.value = e, h.value = t;
|
|
6319
6364
|
}
|
|
6320
|
-
function
|
|
6321
|
-
e.key === "Escape" ?
|
|
6365
|
+
function A(e) {
|
|
6366
|
+
e.key === "Escape" ? D() : e.key === "Enter" && (e.preventDefault(), M());
|
|
6322
6367
|
}
|
|
6323
|
-
function
|
|
6324
|
-
if (!
|
|
6325
|
-
let e = Math.min(Math.max(
|
|
6326
|
-
|
|
6368
|
+
function M() {
|
|
6369
|
+
if (!T.value) return;
|
|
6370
|
+
let e = Math.min(Math.max(uc, v.value), dc), t = Math.min(Math.max(fc, b.value), pc);
|
|
6371
|
+
js.rows = e, js.cols = t, u("insert", {
|
|
6327
6372
|
rows: e,
|
|
6328
6373
|
cols: t,
|
|
6329
6374
|
autofit: g.value === "autofit",
|
|
6330
6375
|
styleId: _.value
|
|
6331
|
-
}),
|
|
6376
|
+
}), D();
|
|
6332
6377
|
}
|
|
6333
|
-
return (n, r) => t.isOpen ? (
|
|
6378
|
+
return (n, r) => t.isOpen ? (y(), a("div", {
|
|
6334
6379
|
key: 0,
|
|
6335
6380
|
class: "dialog-overlay",
|
|
6336
|
-
onMousedown:
|
|
6381
|
+
onMousedown: R(D, ["self"])
|
|
6337
6382
|
}, [o("div", {
|
|
6338
6383
|
class: "dialog",
|
|
6339
|
-
onMousedown: r[7] ||=
|
|
6340
|
-
onKeydown:
|
|
6384
|
+
onMousedown: r[7] ||= R(() => {}, ["stop"]),
|
|
6385
|
+
onKeydown: R(A, ["stop"])
|
|
6341
6386
|
}, [
|
|
6342
|
-
o("div",
|
|
6387
|
+
o("div", Gs, [o("span", Ks, E(k(s)("dialogs.insertTable.title")), 1), o("button", {
|
|
6343
6388
|
class: "dialog__close",
|
|
6344
|
-
title:
|
|
6345
|
-
onClick:
|
|
6346
|
-
}, " ✕ ", 8,
|
|
6347
|
-
o("div",
|
|
6389
|
+
title: k(s)("common.closeDialog"),
|
|
6390
|
+
onClick: D
|
|
6391
|
+
}, " ✕ ", 8, qs)]),
|
|
6392
|
+
o("div", Js, [
|
|
6348
6393
|
o("div", {
|
|
6349
6394
|
class: "table-grid",
|
|
6350
|
-
"aria-label":
|
|
6395
|
+
"aria-label": k(s)("dialogs.insertTable.sizeSelector"),
|
|
6351
6396
|
onMouseleave: r[0] ||= (e) => {
|
|
6352
6397
|
d.value = 0, f.value = 0;
|
|
6353
6398
|
}
|
|
6354
|
-
}, [(
|
|
6399
|
+
}, [(y(), a(e, null, C(cc, (t) => o("div", {
|
|
6355
6400
|
key: t,
|
|
6356
6401
|
class: "table-grid__row"
|
|
6357
|
-
}, [(
|
|
6402
|
+
}, [(y(), a(e, null, C(lc, (e) => o("div", {
|
|
6358
6403
|
key: e,
|
|
6359
6404
|
class: m(["table-grid__cell", { highlight: t <= d.value && e <= f.value }]),
|
|
6360
6405
|
onMouseenter: (n) => {
|
|
6361
6406
|
d.value = t, f.value = e;
|
|
6362
6407
|
},
|
|
6363
|
-
onMousedown:
|
|
6364
|
-
}, null, 42,
|
|
6365
|
-
o("div",
|
|
6408
|
+
onMousedown: R((n) => O(t, e), ["prevent"])
|
|
6409
|
+
}, null, 42, Xs)), 64))])), 64))], 40, Ys),
|
|
6410
|
+
o("div", Zs, E(d.value > 0 ? k(s)("dialogs.insertTable.tableSize", {
|
|
6366
6411
|
cols: f.value,
|
|
6367
6412
|
rows: d.value
|
|
6368
|
-
}) :
|
|
6369
|
-
o("div",
|
|
6370
|
-
o("div",
|
|
6413
|
+
}) : k(s)("dialogs.insertTable.hoverToSelect")), 1),
|
|
6414
|
+
o("div", Qs, [o("span", null, E(k(s)("dialogs.insertTable.orSpecifySize")), 1)]),
|
|
6415
|
+
o("div", $s, [o("label", ec, [o("span", null, E(k(s)("dialogs.insertTable.rowsLabel")), 1), I(o("input", {
|
|
6371
6416
|
"onUpdate:modelValue": r[1] ||= (e) => p.value = e,
|
|
6372
6417
|
type: "number",
|
|
6373
|
-
min:
|
|
6374
|
-
max:
|
|
6375
|
-
class: m(["table-manual__input", { "table-manual__input--invalid": !
|
|
6376
|
-
}, null, 2), [[
|
|
6418
|
+
min: uc,
|
|
6419
|
+
max: dc,
|
|
6420
|
+
class: m(["table-manual__input", { "table-manual__input--invalid": !x.value }])
|
|
6421
|
+
}, null, 2), [[N, p.value]])]), o("label", tc, [o("span", null, E(k(s)("dialogs.insertTable.columnsLabel")), 1), I(o("input", {
|
|
6377
6422
|
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
6378
6423
|
type: "number",
|
|
6379
|
-
min:
|
|
6380
|
-
max:
|
|
6381
|
-
class: m(["table-manual__input", { "table-manual__input--invalid": !
|
|
6382
|
-
}, null, 2), [[
|
|
6383
|
-
o("div", { class: m(["table-manual__hint", { "table-manual__hint--error": !
|
|
6384
|
-
minRows:
|
|
6385
|
-
maxRows:
|
|
6386
|
-
minCols:
|
|
6387
|
-
maxCols:
|
|
6424
|
+
min: fc,
|
|
6425
|
+
max: pc,
|
|
6426
|
+
class: m(["table-manual__input", { "table-manual__input--invalid": !w.value }])
|
|
6427
|
+
}, null, 2), [[N, h.value]])])]),
|
|
6428
|
+
o("div", { class: m(["table-manual__hint", { "table-manual__hint--error": !T.value }]) }, E(k(s)("dialogs.insertTable.validationHint", {
|
|
6429
|
+
minRows: uc,
|
|
6430
|
+
maxRows: dc,
|
|
6431
|
+
minCols: fc,
|
|
6432
|
+
maxCols: pc
|
|
6388
6433
|
})), 3),
|
|
6389
|
-
o("fieldset",
|
|
6390
|
-
o("legend", null,
|
|
6391
|
-
o("label",
|
|
6434
|
+
o("fieldset", nc, [
|
|
6435
|
+
o("legend", null, E(k(s)("dialogs.insertTable.columnWidthLabel")), 1),
|
|
6436
|
+
o("label", rc, [I(o("input", {
|
|
6392
6437
|
type: "radio",
|
|
6393
6438
|
value: "fixed",
|
|
6394
6439
|
"onUpdate:modelValue": r[3] ||= (e) => g.value = e
|
|
6395
|
-
}, null, 512), [[
|
|
6396
|
-
o("label",
|
|
6440
|
+
}, null, 512), [[j, g.value]]), o("span", null, E(k(s)("dialogs.insertTable.fixedWidth")), 1)]),
|
|
6441
|
+
o("label", ic, [I(o("input", {
|
|
6397
6442
|
type: "radio",
|
|
6398
6443
|
value: "autofit",
|
|
6399
6444
|
"onUpdate:modelValue": r[4] ||= (e) => g.value = e
|
|
6400
|
-
}, null, 512), [[
|
|
6445
|
+
}, null, 512), [[j, g.value]]), o("span", null, E(k(s)("dialogs.insertTable.autofit")), 1)])
|
|
6401
6446
|
]),
|
|
6402
|
-
o("div",
|
|
6403
|
-
c(
|
|
6447
|
+
o("div", ac, [o("span", null, E(k(s)("dialogs.insertTable.style")), 1)]),
|
|
6448
|
+
c(Ws, {
|
|
6404
6449
|
"current-style-id": _.value,
|
|
6405
6450
|
onApply: r[5] ||= (e) => _.value = e
|
|
6406
6451
|
}, null, 8, ["current-style-id"])
|
|
6407
6452
|
]),
|
|
6408
|
-
o("div",
|
|
6453
|
+
o("div", oc, [o("button", {
|
|
6409
6454
|
class: "dialog__btn",
|
|
6410
|
-
onMousedown:
|
|
6411
|
-
},
|
|
6455
|
+
onMousedown: R(D, ["prevent"])
|
|
6456
|
+
}, E(k(s)("common.cancel")), 33), o("button", {
|
|
6412
6457
|
class: "dialog__btn dialog__btn--primary",
|
|
6413
|
-
disabled: !
|
|
6414
|
-
onMousedown: r[6] ||=
|
|
6415
|
-
},
|
|
6458
|
+
disabled: !T.value,
|
|
6459
|
+
onMousedown: r[6] ||= R((e) => M(), ["prevent"])
|
|
6460
|
+
}, E(k(s)("dialogs.insertTable.insertButton")), 41, sc)])
|
|
6416
6461
|
], 32)], 32)) : i("", !0);
|
|
6417
6462
|
}
|
|
6418
|
-
}), [["__scopeId", "data-v-5aff406f"]]),
|
|
6463
|
+
}), [["__scopeId", "data-v-5aff406f"]]), hc = { class: "dialog__body" }, gc = { class: "options" }, _c = ["value"], vc = { class: "option__body" }, yc = { class: "option__label" }, bc = { class: "option__description" }, xc = { class: "dialog__footer" }, Sc = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
6419
6464
|
__name: "PasteSpecialDialog",
|
|
6420
6465
|
props: {
|
|
6421
6466
|
isOpen: { type: Boolean },
|
|
@@ -6439,14 +6484,14 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6439
6484
|
label: "Unformatted text",
|
|
6440
6485
|
description: "Paste text only and use the destination formatting."
|
|
6441
6486
|
}
|
|
6442
|
-
], c = t, l = n, u =
|
|
6443
|
-
|
|
6487
|
+
], c = t, l = n, u = S(c.defaultMode);
|
|
6488
|
+
P(() => c.isOpen, (e) => {
|
|
6444
6489
|
e && (u.value = c.defaultMode);
|
|
6445
6490
|
});
|
|
6446
6491
|
function d() {
|
|
6447
6492
|
l("paste", u.value), l("close");
|
|
6448
6493
|
}
|
|
6449
|
-
return (n, c) => (
|
|
6494
|
+
return (n, c) => (y(), r(k(i), {
|
|
6450
6495
|
open: t.isOpen,
|
|
6451
6496
|
"aria-label": "Paste Special",
|
|
6452
6497
|
style: {
|
|
@@ -6456,17 +6501,17 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6456
6501
|
},
|
|
6457
6502
|
onClose: c[2] ||= (e) => n.$emit("close")
|
|
6458
6503
|
}, {
|
|
6459
|
-
default:
|
|
6504
|
+
default: F(() => [
|
|
6460
6505
|
c[4] ||= o("div", { class: "dialog__header" }, "Paste Special", -1),
|
|
6461
|
-
o("div",
|
|
6506
|
+
o("div", hc, [o("fieldset", gc, [c[3] ||= o("legend", { class: "options__legend" }, "Paste mode", -1), (y(), a(e, null, C(s, (e) => o("label", {
|
|
6462
6507
|
key: e.value,
|
|
6463
6508
|
class: "option"
|
|
6464
|
-
}, [
|
|
6509
|
+
}, [I(o("input", {
|
|
6465
6510
|
"onUpdate:modelValue": c[0] ||= (e) => u.value = e,
|
|
6466
6511
|
type: "radio",
|
|
6467
6512
|
value: e.value
|
|
6468
|
-
}, null, 8,
|
|
6469
|
-
o("div",
|
|
6513
|
+
}, null, 8, _c), [[j, u.value]]), o("span", vc, [o("span", yc, E(e.label), 1), o("span", bc, E(e.description), 1)])])), 64))])]),
|
|
6514
|
+
o("div", xc, [o("button", {
|
|
6470
6515
|
class: "dialog__btn",
|
|
6471
6516
|
onClick: c[1] ||= (e) => n.$emit("close")
|
|
6472
6517
|
}, "Cancel"), o("button", {
|
|
@@ -6477,7 +6522,7 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6477
6522
|
_: 1
|
|
6478
6523
|
}, 8, ["open"]));
|
|
6479
6524
|
}
|
|
6480
|
-
}), [["__scopeId", "data-v-b3987471"]]),
|
|
6525
|
+
}), [["__scopeId", "data-v-b3987471"]]), Cc = { class: "dialog__body" }, wc = { class: "grid" }, Tc = { class: "field" }, Ec = { class: "field" }, Dc = { class: "check" }, Oc = { class: "dialog__footer" }, kc = ["disabled"], Ac = 1, jc = 63, Mc = /*#__PURE__*/ Z(/* @__PURE__ */ l({
|
|
6481
6526
|
__name: "SplitCellDialog",
|
|
6482
6527
|
props: {
|
|
6483
6528
|
isOpen: { type: Boolean },
|
|
@@ -6486,8 +6531,8 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6486
6531
|
},
|
|
6487
6532
|
emits: ["close", "split"],
|
|
6488
6533
|
setup(e, { emit: t }) {
|
|
6489
|
-
let { Dialog: i } = Q(), a = e, s = t, c =
|
|
6490
|
-
|
|
6534
|
+
let { Dialog: i } = Q(), a = e, s = t, c = S(a.defaultRows), l = S(a.defaultColumns), u = S(!1), d = n(() => h(c.value)), f = n(() => h(l.value)), p = n(() => d.value > 1 || f.value > 1);
|
|
6535
|
+
P(() => a.isOpen, (e) => {
|
|
6491
6536
|
e && (c.value = a.defaultRows, l.value = a.defaultColumns, u.value = !1);
|
|
6492
6537
|
});
|
|
6493
6538
|
function m() {
|
|
@@ -6498,9 +6543,9 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6498
6543
|
}), s("close"));
|
|
6499
6544
|
}
|
|
6500
6545
|
function h(e) {
|
|
6501
|
-
return Math.min(
|
|
6546
|
+
return Math.min(jc, Math.max(Ac, Math.trunc(e)));
|
|
6502
6547
|
}
|
|
6503
|
-
return (t, n) => (
|
|
6548
|
+
return (t, n) => (y(), r(k(i), {
|
|
6504
6549
|
open: e.isOpen,
|
|
6505
6550
|
"aria-label": "Split Cell",
|
|
6506
6551
|
style: {
|
|
@@ -6509,47 +6554,47 @@ var As = { class: "tsg" }, js = { class: "tsg__grid" }, Ms = ["title", "onMoused
|
|
|
6509
6554
|
width: "100%"
|
|
6510
6555
|
},
|
|
6511
6556
|
onClose: n[4] ||= (e) => t.$emit("close"),
|
|
6512
|
-
onKeydown:
|
|
6557
|
+
onKeydown: L(m, ["enter"])
|
|
6513
6558
|
}, {
|
|
6514
|
-
default:
|
|
6559
|
+
default: F(() => [
|
|
6515
6560
|
n[8] ||= o("div", { class: "dialog__header" }, "Split Cell", -1),
|
|
6516
|
-
o("div",
|
|
6561
|
+
o("div", Cc, [o("div", wc, [o("label", Tc, [n[5] ||= o("span", { class: "field__label" }, "Columns", -1), I(o("input", {
|
|
6517
6562
|
"onUpdate:modelValue": n[0] ||= (e) => l.value = e,
|
|
6518
6563
|
class: "field__input",
|
|
6519
|
-
max:
|
|
6520
|
-
min:
|
|
6564
|
+
max: jc,
|
|
6565
|
+
min: Ac,
|
|
6521
6566
|
type: "number"
|
|
6522
6567
|
}, null, 512), [[
|
|
6523
|
-
|
|
6568
|
+
N,
|
|
6524
6569
|
l.value,
|
|
6525
6570
|
void 0,
|
|
6526
6571
|
{ number: !0 }
|
|
6527
|
-
]])]), o("label",
|
|
6572
|
+
]])]), o("label", Ec, [n[6] ||= o("span", { class: "field__label" }, "Rows", -1), I(o("input", {
|
|
6528
6573
|
"onUpdate:modelValue": n[1] ||= (e) => c.value = e,
|
|
6529
6574
|
class: "field__input",
|
|
6530
|
-
max:
|
|
6531
|
-
min:
|
|
6575
|
+
max: jc,
|
|
6576
|
+
min: Ac,
|
|
6532
6577
|
type: "number"
|
|
6533
6578
|
}, null, 512), [[
|
|
6534
|
-
|
|
6579
|
+
N,
|
|
6535
6580
|
c.value,
|
|
6536
6581
|
void 0,
|
|
6537
6582
|
{ number: !0 }
|
|
6538
|
-
]])])]), o("label",
|
|
6583
|
+
]])])]), o("label", Dc, [I(o("input", {
|
|
6539
6584
|
"onUpdate:modelValue": n[2] ||= (e) => u.value = e,
|
|
6540
6585
|
type: "checkbox"
|
|
6541
|
-
}, null, 512), [[
|
|
6542
|
-
o("div",
|
|
6586
|
+
}, null, 512), [[A, u.value]]), n[7] ||= o("span", null, "Merge selected cells before splitting", -1)])]),
|
|
6587
|
+
o("div", Oc, [o("button", {
|
|
6543
6588
|
class: "dialog__btn",
|
|
6544
6589
|
onClick: n[3] ||= (e) => t.$emit("close")
|
|
6545
6590
|
}, "Cancel"), o("button", {
|
|
6546
6591
|
class: "dialog__btn dialog__btn--primary",
|
|
6547
6592
|
disabled: !p.value,
|
|
6548
6593
|
onClick: m
|
|
6549
|
-
}, " Split ", 8,
|
|
6594
|
+
}, " Split ", 8, kc)])
|
|
6550
6595
|
]),
|
|
6551
6596
|
_: 1
|
|
6552
6597
|
}, 8, ["open"]));
|
|
6553
6598
|
}
|
|
6554
6599
|
}), [["__scopeId", "data-v-022ada6a"]]);
|
|
6555
|
-
export { Z as A,
|
|
6600
|
+
export { Z as A, Pn as C, En as D, On as E, Xt as F, X as I, Vt as M, Zt as N, cn as O, Gt as P, Un as S, An as T, rr as _, As as a, $n as b, Wa as c, Fi as d, gi as f, ir as g, er as h, Ws as i, en as j, rn as k, wa as l, pr as m, Sc as n, ys as o, Br as p, mc as r, Eo as s, Mc as t, ca as u, nr as v, Mn as w, Yn as x, Q as y };
|