@eigenpal/docx-editor-vue 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/KeyboardShortcutsDialog-Dohz9D39.cjs +1 -0
- package/dist/{KeyboardShortcutsDialog-BbuDgglK.js → KeyboardShortcutsDialog-OPAV0oVm.js} +351 -506
- package/dist/{MenuBar-CbONA9-a.js → MenuBar-BLKoZqG3.js} +813 -692
- package/dist/MenuBar-BP-XM0MI.cjs +4 -0
- package/dist/{TablePropertiesDialog-JWT68zEO.cjs → TablePropertiesDialog-B-FVOqkH.cjs} +1 -1
- package/dist/TablePropertiesDialog-B3oZIIjw.js +1145 -0
- package/dist/components/DocxEditor/types.d.ts +26 -0
- package/dist/components/Toolbar/presets.d.ts +0 -1
- package/dist/components/ui/fontPickerValue.d.ts +1 -0
- package/dist/components/ui/fontPickerValue.test.d.ts +1 -0
- package/dist/composables/imageOverlayRect.d.ts +44 -0
- package/dist/composables/imageOverlayRect.test.d.ts +1 -0
- package/dist/composables/useColorMode.d.ts +8 -0
- package/dist/composables/useCommentSidebarItems.test.d.ts +1 -0
- package/dist/composables/useDocxEditorRefApi.d.ts +4 -0
- package/dist/composables/useFileIO.d.ts +5 -0
- package/dist/composables/useFormattingActions.d.ts +5 -2
- package/dist/composables/useImageActions.d.ts +0 -6
- package/dist/composables/useMenuActions.d.ts +3 -1
- package/dist/composables/useParagraphStyleOptions.d.ts +18 -0
- package/dist/composables/useToolbarDropdowns.d.ts +1 -0
- package/dist/composables/useToolbarFontSize.d.ts +15 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +5 -4
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +3 -3
- package/dist/docx-editor-vue.css +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.js +1375 -1258
- package/dist/plugin-api.cjs +1 -1
- package/dist/plugin-api.js +1 -1
- package/dist/ui.cjs +2 -2
- package/dist/ui.js +253 -230
- package/dist/{useCommentSidebarItems-CbNvNCd3.cjs → useCommentSidebarItems-DBeGKNGA.cjs} +1 -1
- package/dist/{useCommentSidebarItems-BHomCzpj.js → useCommentSidebarItems-DXbF857R.js} +2 -1
- package/dist/{useDragAutoScroll-BNPB-6SM.js → useDragAutoScroll-B21Ec-Zy.js} +6 -7
- package/dist/useDragAutoScroll-BPnc7LEO.cjs +1 -0
- package/package.json +4 -4
- package/dist/KeyboardShortcutsDialog-Bct8AJ0i.cjs +0 -1
- package/dist/MenuBar-m0JEaF1X.cjs +0 -4
- package/dist/TablePropertiesDialog-D5MIF3cj.js +0 -987
- package/dist/useDragAutoScroll-DCUotwOX.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B52Kst-M.js";
|
|
2
|
-
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o,
|
|
3
|
-
import { TextSelection as
|
|
4
|
-
import { TWIPS_PER_INCH as
|
|
5
|
-
var
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, inject as c, nextTick as l, normalizeClass as u, normalizeStyle as d, openBlock as f, provide as p, ref as m, renderList as h, toDisplayString as g, unref as _, vModelCheckbox as v, vModelSelect as y, vModelText as b, watch as x, withDirectives as S, withKeys as C, withModifiers as w } from "vue";
|
|
3
|
+
import { TextSelection as T } from "prosemirror-state";
|
|
4
|
+
import { TWIPS_PER_INCH as E } from "@eigenpal/docx-editor-core/utils";
|
|
5
|
+
var D = {
|
|
6
6
|
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"],
|
|
7
7
|
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"],
|
|
8
8
|
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"],
|
|
@@ -101,7 +101,7 @@ var O = {
|
|
|
101
101
|
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"],
|
|
102
102
|
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"],
|
|
103
103
|
"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"]
|
|
104
|
-
},
|
|
104
|
+
}, O = ["width", "height"], k = ["d"], A = /* @__PURE__ */ s({
|
|
105
105
|
__name: "MaterialSymbol",
|
|
106
106
|
props: {
|
|
107
107
|
name: {},
|
|
@@ -110,37 +110,37 @@ var O = {
|
|
|
110
110
|
style: {}
|
|
111
111
|
},
|
|
112
112
|
setup(e) {
|
|
113
|
-
let r = e, a = n(() =>
|
|
114
|
-
return (n, r) => a.value ? (
|
|
113
|
+
let r = e, a = n(() => D[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
|
|
114
|
+
return (n, r) => a.value ? (f(), i("svg", {
|
|
115
115
|
key: 0,
|
|
116
116
|
xmlns: "http://www.w3.org/2000/svg",
|
|
117
117
|
width: e.size,
|
|
118
118
|
height: e.size,
|
|
119
119
|
viewBox: "0 -960 960 960",
|
|
120
120
|
fill: "currentColor",
|
|
121
|
-
class:
|
|
122
|
-
style:
|
|
121
|
+
class: u(e.className),
|
|
122
|
+
style: d({
|
|
123
123
|
display: "inline-flex",
|
|
124
124
|
flexShrink: 0,
|
|
125
125
|
...e.style ?? {}
|
|
126
126
|
}),
|
|
127
127
|
"aria-hidden": "true"
|
|
128
|
-
}, [(
|
|
128
|
+
}, [(f(!0), i(t, null, h(a.value, (e, t) => (f(), i("path", {
|
|
129
129
|
key: t,
|
|
130
130
|
d: e
|
|
131
|
-
}, null, 8,
|
|
131
|
+
}, null, 8, k))), 128))], 14, O)) : (f(), i("span", {
|
|
132
132
|
key: 1,
|
|
133
|
-
class:
|
|
134
|
-
style:
|
|
133
|
+
class: u(e.className),
|
|
134
|
+
style: d({
|
|
135
135
|
fontSize: `${e.size}px`,
|
|
136
136
|
width: `${e.size}px`,
|
|
137
137
|
height: `${e.size}px`,
|
|
138
138
|
display: "inline-flex",
|
|
139
139
|
...e.style ?? {}
|
|
140
140
|
})
|
|
141
|
-
},
|
|
141
|
+
}, g(e.name), 7));
|
|
142
142
|
}
|
|
143
|
-
}),
|
|
143
|
+
}), j = {
|
|
144
144
|
_lang: "en",
|
|
145
145
|
common: {
|
|
146
146
|
cancel: "Cancel",
|
|
@@ -179,7 +179,10 @@ var O = {
|
|
|
179
179
|
rightToLeft: "Right-to-left text",
|
|
180
180
|
image: "Image",
|
|
181
181
|
table: "Table",
|
|
182
|
+
break: "Break",
|
|
182
183
|
pageBreak: "Page break",
|
|
184
|
+
sectionBreakNextPage: "Section break (next page)",
|
|
185
|
+
sectionBreakContinuous: "Section break (continuous)",
|
|
183
186
|
tableOfContents: "Table of contents",
|
|
184
187
|
symbol: "Symbol",
|
|
185
188
|
watermark: "Watermark",
|
|
@@ -1001,36 +1004,36 @@ var O = {
|
|
|
1001
1004
|
}
|
|
1002
1005
|
}
|
|
1003
1006
|
};
|
|
1004
|
-
function
|
|
1007
|
+
function M(e) {
|
|
1005
1008
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1006
1009
|
}
|
|
1007
|
-
function
|
|
1010
|
+
function N(e, t) {
|
|
1008
1011
|
if (!t) return e;
|
|
1009
1012
|
let n = { ...e };
|
|
1010
1013
|
for (let r of Object.keys(t)) {
|
|
1011
1014
|
let i = t[r];
|
|
1012
|
-
i !== null && (
|
|
1015
|
+
i !== null && (M(e[r]) && M(i) ? n[r] = N(e[r], i) : i !== void 0 && (n[r] = i));
|
|
1013
1016
|
}
|
|
1014
1017
|
return n;
|
|
1015
1018
|
}
|
|
1016
|
-
function
|
|
1019
|
+
function P(e, t) {
|
|
1017
1020
|
let n = e;
|
|
1018
1021
|
for (let e of t.split(".")) {
|
|
1019
|
-
if (!
|
|
1022
|
+
if (!M(n)) return;
|
|
1020
1023
|
n = n[e];
|
|
1021
1024
|
}
|
|
1022
1025
|
return typeof n == "string" ? n : void 0;
|
|
1023
1026
|
}
|
|
1024
|
-
function
|
|
1027
|
+
function F(e) {
|
|
1025
1028
|
let t = {}, n = /(=\d+|\w+)\s*\{([^}]*)\}/g, r;
|
|
1026
1029
|
for (; (r = n.exec(e)) !== null;) t[r[1]] = r[2];
|
|
1027
1030
|
return t;
|
|
1028
1031
|
}
|
|
1029
|
-
function
|
|
1032
|
+
function I(e, t, n) {
|
|
1030
1033
|
return t ? e.replace(/\{(\w+),\s*plural,\s*((?:[^{}]|\{[^{}]*\})*)\}/g, (e, r, i) => {
|
|
1031
1034
|
let a = Number(t[r]);
|
|
1032
1035
|
if (isNaN(a)) return e;
|
|
1033
|
-
let o =
|
|
1036
|
+
let o = F(i), s = o[`=${a}`];
|
|
1034
1037
|
if (s !== void 0) return s.replace(/#/g, String(a));
|
|
1035
1038
|
let c;
|
|
1036
1039
|
try {
|
|
@@ -1044,44 +1047,44 @@ function L(e, t, n) {
|
|
|
1044
1047
|
return r === void 0 ? `{${n}}` : String(r);
|
|
1045
1048
|
}) : e;
|
|
1046
1049
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return (n, r) =>
|
|
1050
|
+
function L(e, t = "en") {
|
|
1051
|
+
return (n, r) => I(P(e, n) ?? n, r, t);
|
|
1049
1052
|
}
|
|
1050
1053
|
//#endregion
|
|
1051
1054
|
//#region src/i18n/index.ts
|
|
1052
|
-
var
|
|
1053
|
-
function
|
|
1055
|
+
var R = Symbol("docx-locale"), z = Symbol("docx-lang");
|
|
1056
|
+
function B(e) {
|
|
1054
1057
|
return {
|
|
1055
|
-
strings: n(() =>
|
|
1058
|
+
strings: n(() => N(j, _(e))),
|
|
1056
1059
|
lang: n(() => {
|
|
1057
|
-
let t =
|
|
1060
|
+
let t = _(e)?._lang;
|
|
1058
1061
|
return typeof t == "string" ? t : "en";
|
|
1059
1062
|
})
|
|
1060
1063
|
};
|
|
1061
1064
|
}
|
|
1062
1065
|
function ee(e) {
|
|
1063
|
-
let { strings: t, lang: n } =
|
|
1064
|
-
|
|
1066
|
+
let { strings: t, lang: n } = B(e);
|
|
1067
|
+
p(R, t), p(z, n);
|
|
1065
1068
|
}
|
|
1066
1069
|
function te(e) {
|
|
1067
|
-
let { strings: t, lang: n } =
|
|
1068
|
-
return { t: (e, r) =>
|
|
1070
|
+
let { strings: t, lang: n } = B(e);
|
|
1071
|
+
return { t: (e, r) => L(_(t), _(n))(e, r) };
|
|
1069
1072
|
}
|
|
1070
|
-
function
|
|
1071
|
-
let e =
|
|
1072
|
-
return { t: (n, r) =>
|
|
1073
|
+
function V() {
|
|
1074
|
+
let e = c(R, j), t = c(z, "en");
|
|
1075
|
+
return { t: (n, r) => L(_(e), _(t))(n, r) };
|
|
1073
1076
|
}
|
|
1074
1077
|
var ne = { install(e, t) {
|
|
1075
|
-
let n = typeof t?._lang == "string" ? t._lang : "en", r =
|
|
1076
|
-
e.provide(
|
|
1077
|
-
} }, re = { class: "find-replace-dialog__header" }, ie = { class: "find-replace-dialog__title" },
|
|
1078
|
+
let n = typeof t?._lang == "string" ? t._lang : "en", r = N(j, t);
|
|
1079
|
+
e.provide(R, r), e.provide(z, n);
|
|
1080
|
+
} }, re = { class: "find-replace-dialog__header" }, ie = { class: "find-replace-dialog__title" }, H = ["title"], U = { class: "find-replace-dialog__body" }, W = { class: "find-replace-dialog__row" }, G = ["placeholder", "aria-label"], K = { class: "find-replace-dialog__count" }, q = ["title"], J = ["title"], Y = { class: "find-replace-dialog__options" }, ae = ["title"], oe = {
|
|
1078
1081
|
key: 0,
|
|
1079
1082
|
class: "find-replace-dialog__row"
|
|
1080
|
-
},
|
|
1083
|
+
}, se = [
|
|
1081
1084
|
"placeholder",
|
|
1082
1085
|
"aria-label",
|
|
1083
1086
|
"onKeydown"
|
|
1084
|
-
],
|
|
1087
|
+
], ce = ["title"], le = ["title"], ue = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
1085
1088
|
__name: "FindReplaceDialog",
|
|
1086
1089
|
props: {
|
|
1087
1090
|
isOpen: { type: Boolean },
|
|
@@ -1090,24 +1093,24 @@ var ne = { install(e, t) {
|
|
|
1090
1093
|
},
|
|
1091
1094
|
emits: ["close"],
|
|
1092
1095
|
setup(e, { emit: t }) {
|
|
1093
|
-
let { t: s } =
|
|
1096
|
+
let { t: s } = V(), c = e, d = t, p = m(null), h = m(""), y = m(""), E = m(!1), D = m(!1), O = m(!1), k = m([]), A = m(-1), j = n(() => h.value.trim() ? k.value.length === 0 ? s("dialogs.findReplace.noResults") : A.value < 0 ? s("dialogs.findReplace.matchesFound", { total: k.value.length }) : s("dialogs.findReplace.matchCount", {
|
|
1094
1097
|
current: A.value + 1,
|
|
1095
1098
|
total: k.value.length
|
|
1096
1099
|
}) : "");
|
|
1097
|
-
|
|
1098
|
-
e ? (await
|
|
1100
|
+
x(() => c.isOpen, async (e) => {
|
|
1101
|
+
e ? (await l(), p.value?.focus(), p.value?.select(), N()) : z();
|
|
1099
1102
|
});
|
|
1100
1103
|
function M() {
|
|
1101
|
-
z(),
|
|
1104
|
+
z(), d("close");
|
|
1102
1105
|
}
|
|
1103
1106
|
function N() {
|
|
1104
1107
|
k.value = [], A.value = -1;
|
|
1105
1108
|
let e = c.view;
|
|
1106
|
-
if (!e || !
|
|
1109
|
+
if (!e || !h.value.trim()) {
|
|
1107
1110
|
z();
|
|
1108
1111
|
return;
|
|
1109
1112
|
}
|
|
1110
|
-
let t = e.state.doc, n =
|
|
1113
|
+
let t = e.state.doc, n = h.value, r = !E.value, i = [];
|
|
1111
1114
|
t.descendants((e, a) => {
|
|
1112
1115
|
if (!e.isTextblock) return !0;
|
|
1113
1116
|
let o = t.textBetween(a + 1, a + e.nodeSize - 1, "", "");
|
|
@@ -1139,7 +1142,7 @@ var ne = { install(e, t) {
|
|
|
1139
1142
|
A.value = e;
|
|
1140
1143
|
let { from: r, to: i } = n;
|
|
1141
1144
|
try {
|
|
1142
|
-
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a =
|
|
1145
|
+
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a = T.between(e, n);
|
|
1143
1146
|
t.dispatch(t.state.tr.setSelection(a)), c.scrollVisiblePositionIntoView?.(r);
|
|
1144
1147
|
} catch {}
|
|
1145
1148
|
}
|
|
@@ -1160,7 +1163,7 @@ var ne = { install(e, t) {
|
|
|
1160
1163
|
if (t) {
|
|
1161
1164
|
try {
|
|
1162
1165
|
let n;
|
|
1163
|
-
n =
|
|
1166
|
+
n = y.value ? e.state.tr.replaceWith(t.from, t.to, e.state.schema.text(y.value)) : e.state.tr.delete(t.from, t.to), e.dispatch(n);
|
|
1164
1167
|
} catch {}
|
|
1165
1168
|
N();
|
|
1166
1169
|
}
|
|
@@ -1170,7 +1173,7 @@ var ne = { install(e, t) {
|
|
|
1170
1173
|
if (!e || k.value.length === 0) return;
|
|
1171
1174
|
let t = [...k.value].sort((e, t) => t.from - e.from), n = e.state.tr;
|
|
1172
1175
|
for (let r of t) try {
|
|
1173
|
-
n =
|
|
1176
|
+
n = y.value ? n.replaceWith(r.from, r.to, e.state.schema.text(y.value)) : n.delete(r.from, r.to);
|
|
1174
1177
|
} catch {}
|
|
1175
1178
|
e.dispatch(n), N();
|
|
1176
1179
|
}
|
|
@@ -1180,252 +1183,94 @@ var ne = { install(e, t) {
|
|
|
1180
1183
|
function B(e) {
|
|
1181
1184
|
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? I() : F()) : e.key === "Escape" && M();
|
|
1182
1185
|
}
|
|
1183
|
-
return (t, n) => e.isOpen ? (
|
|
1186
|
+
return (t, n) => e.isOpen ? (f(), i("div", {
|
|
1184
1187
|
key: 0,
|
|
1185
1188
|
class: "find-replace-dialog",
|
|
1186
|
-
onMousedown: n[5] ||=
|
|
1187
|
-
onKeydown: n[6] ||=
|
|
1188
|
-
}, [a("div", re, [a("span", ie,
|
|
1189
|
+
onMousedown: n[5] ||= w(() => {}, ["stop"]),
|
|
1190
|
+
onKeydown: n[6] ||= w(() => {}, ["stop"])
|
|
1191
|
+
}, [a("div", re, [a("span", ie, g(O.value ? _(s)("dialogs.findReplace.titleFindReplace") : _(s)("dialogs.findReplace.titleFind")), 1), a("button", {
|
|
1189
1192
|
class: "find-replace-dialog__close",
|
|
1190
1193
|
onClick: M,
|
|
1191
|
-
title:
|
|
1192
|
-
}, " ✕ ", 8,
|
|
1193
|
-
a("div",
|
|
1194
|
-
|
|
1194
|
+
title: _(s)("common.closeDialog")
|
|
1195
|
+
}, " ✕ ", 8, H)]), a("div", U, [
|
|
1196
|
+
a("div", W, [
|
|
1197
|
+
S(a("input", {
|
|
1195
1198
|
ref_key: "searchInputRef",
|
|
1196
|
-
ref:
|
|
1197
|
-
"onUpdate:modelValue": n[0] ||= (e) =>
|
|
1199
|
+
ref: p,
|
|
1200
|
+
"onUpdate:modelValue": n[0] ||= (e) => h.value = e,
|
|
1198
1201
|
class: "find-replace-dialog__input",
|
|
1199
|
-
placeholder:
|
|
1200
|
-
"aria-label":
|
|
1202
|
+
placeholder: _(s)("dialogs.findReplace.findPlaceholder"),
|
|
1203
|
+
"aria-label": _(s)("dialogs.findReplace.findAriaLabel"),
|
|
1201
1204
|
onKeydown: B,
|
|
1202
1205
|
onInput: N
|
|
1203
|
-
}, null, 40,
|
|
1204
|
-
a("span",
|
|
1206
|
+
}, null, 40, G), [[b, h.value]]),
|
|
1207
|
+
a("span", K, g(j.value), 1),
|
|
1205
1208
|
a("button", {
|
|
1206
|
-
title:
|
|
1207
|
-
onMousedown:
|
|
1208
|
-
}, " ▲ ", 40,
|
|
1209
|
+
title: _(s)("dialogs.findReplace.findPreviousTitle"),
|
|
1210
|
+
onMousedown: w(I, ["prevent"])
|
|
1211
|
+
}, " ▲ ", 40, q),
|
|
1209
1212
|
a("button", {
|
|
1210
|
-
title:
|
|
1211
|
-
onMousedown:
|
|
1212
|
-
}, " ▼ ", 40,
|
|
1213
|
+
title: _(s)("dialogs.findReplace.findNextTitle"),
|
|
1214
|
+
onMousedown: w(F, ["prevent"])
|
|
1215
|
+
}, " ▼ ", 40, J)
|
|
1213
1216
|
]),
|
|
1214
|
-
a("div",
|
|
1215
|
-
a("label", null, [
|
|
1217
|
+
a("div", Y, [
|
|
1218
|
+
a("label", null, [S(a("input", {
|
|
1216
1219
|
type: "checkbox",
|
|
1217
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
1220
|
+
"onUpdate:modelValue": n[1] ||= (e) => E.value = e,
|
|
1218
1221
|
onChange: N
|
|
1219
|
-
}, null, 544), [[
|
|
1220
|
-
a("label", null, [
|
|
1222
|
+
}, null, 544), [[v, E.value]]), o(" " + g(_(s)("dialogs.findReplace.matchCase")), 1)]),
|
|
1223
|
+
a("label", null, [S(a("input", {
|
|
1221
1224
|
type: "checkbox",
|
|
1222
1225
|
"onUpdate:modelValue": n[2] ||= (e) => D.value = e,
|
|
1223
1226
|
onChange: N
|
|
1224
|
-
}, null, 544), [[
|
|
1227
|
+
}, null, 544), [[v, D.value]]), o(" " + g(_(s)("dialogs.findReplace.wholeWords")), 1)]),
|
|
1225
1228
|
a("button", {
|
|
1226
|
-
class:
|
|
1227
|
-
onMousedown: n[3] ||=
|
|
1228
|
-
title:
|
|
1229
|
-
}, " ↔ " + _(
|
|
1229
|
+
class: u(["find-replace-dialog__toggle", { active: O.value }]),
|
|
1230
|
+
onMousedown: n[3] ||= w((e) => O.value = !O.value, ["prevent"]),
|
|
1231
|
+
title: _(s)("dialogs.findReplace.toggleReplace")
|
|
1232
|
+
}, " ↔ " + g(_(s)("dialogs.findReplace.replaceButton")), 43, ae)
|
|
1230
1233
|
]),
|
|
1231
|
-
O.value ? (
|
|
1232
|
-
|
|
1233
|
-
"onUpdate:modelValue": n[4] ||= (e) =>
|
|
1234
|
+
O.value ? (f(), i("div", oe, [
|
|
1235
|
+
S(a("input", {
|
|
1236
|
+
"onUpdate:modelValue": n[4] ||= (e) => y.value = e,
|
|
1234
1237
|
class: "find-replace-dialog__input",
|
|
1235
|
-
placeholder:
|
|
1236
|
-
"aria-label":
|
|
1237
|
-
onKeydown: w(
|
|
1238
|
-
}, null, 40,
|
|
1238
|
+
placeholder: _(s)("dialogs.findReplace.replacePlaceholder"),
|
|
1239
|
+
"aria-label": _(s)("dialogs.findReplace.replaceAriaLabel"),
|
|
1240
|
+
onKeydown: C(w(L, ["prevent"]), ["enter"])
|
|
1241
|
+
}, null, 40, se), [[b, y.value]]),
|
|
1239
1242
|
a("button", {
|
|
1240
|
-
title:
|
|
1241
|
-
onMousedown:
|
|
1242
|
-
}, _(
|
|
1243
|
+
title: _(s)("dialogs.findReplace.replaceCurrentTitle"),
|
|
1244
|
+
onMousedown: w(L, ["prevent"])
|
|
1245
|
+
}, g(_(s)("dialogs.findReplace.replaceButton")), 41, ce),
|
|
1243
1246
|
a("button", {
|
|
1244
|
-
title:
|
|
1245
|
-
onMousedown:
|
|
1246
|
-
}, _(
|
|
1247
|
+
title: _(s)("dialogs.findReplace.replaceAllTitle"),
|
|
1248
|
+
onMousedown: w(R, ["prevent"])
|
|
1249
|
+
}, g(_(s)("dialogs.findReplace.replaceAllButton")), 41, le)
|
|
1247
1250
|
])) : r("", !0)
|
|
1248
1251
|
])], 32)) : r("", !0);
|
|
1249
1252
|
}
|
|
1250
|
-
}), [["__scopeId", "data-v-
|
|
1251
|
-
key: 0,
|
|
1252
|
-
class: "drop-zone__error"
|
|
1253
|
-
}, Se = {
|
|
1254
|
-
key: 1,
|
|
1255
|
-
class: "image-controls"
|
|
1256
|
-
}, Ce = { class: "lock-label" }, we = {
|
|
1257
|
-
key: 2,
|
|
1258
|
-
class: "image-controls"
|
|
1259
|
-
}, Te = { style: { flex: "1" } }, Ee = ["placeholder"], De = {
|
|
1260
|
-
key: 3,
|
|
1261
|
-
class: "dialog__actions"
|
|
1262
|
-
}, Oe = /* @__PURE__ */ e(/* @__PURE__ */ c({
|
|
1263
|
-
__name: "InsertImageDialog",
|
|
1264
|
-
props: { isOpen: { type: Boolean } },
|
|
1265
|
-
emits: ["close", "insert"],
|
|
1266
|
-
setup(e, { emit: n }) {
|
|
1267
|
-
let { t: c } = H(), l = n, u = h(null), f = h(""), m = h(400), g = h(300), b = h(!0), S = h(""), w = h(""), E = h(!1), D = 1;
|
|
1268
|
-
function O() {
|
|
1269
|
-
l("close");
|
|
1270
|
-
}
|
|
1271
|
-
function k() {
|
|
1272
|
-
f.value = "", w.value = "", S.value = "", m.value = 400, g.value = 300;
|
|
1273
|
-
}
|
|
1274
|
-
function A(e) {
|
|
1275
|
-
E.value = !1;
|
|
1276
|
-
let t = e.dataTransfer?.files?.[0];
|
|
1277
|
-
t && N(t);
|
|
1278
|
-
}
|
|
1279
|
-
function M(e) {
|
|
1280
|
-
let t = e.target.files?.[0];
|
|
1281
|
-
t && N(t);
|
|
1282
|
-
}
|
|
1283
|
-
function N(e) {
|
|
1284
|
-
if (w.value = "", !e.type.startsWith("image/")) {
|
|
1285
|
-
w.value = c("dialogs.insertImage.invalidFile");
|
|
1286
|
-
return;
|
|
1287
|
-
}
|
|
1288
|
-
if (e.size > 10 * 1024 * 1024) {
|
|
1289
|
-
w.value = c("dialogs.insertImage.fileTooLarge");
|
|
1290
|
-
return;
|
|
1291
|
-
}
|
|
1292
|
-
S.value = e.name.replace(/\.[^.]+$/, "");
|
|
1293
|
-
let t = new FileReader();
|
|
1294
|
-
t.onload = () => {
|
|
1295
|
-
let e = t.result, n = new Image();
|
|
1296
|
-
n.onload = () => {
|
|
1297
|
-
let t = n.naturalWidth, r = n.naturalHeight;
|
|
1298
|
-
t > 800 && (r = Math.round(800 / t * r), t = 800), r > 600 && (t = Math.round(600 / r * t), r = 600), m.value = t, g.value = r, D = t / r, f.value = e;
|
|
1299
|
-
}, n.onerror = () => {
|
|
1300
|
-
w.value = c("dialogs.insertImage.loadFailed");
|
|
1301
|
-
}, n.src = e;
|
|
1302
|
-
}, t.onerror = () => {
|
|
1303
|
-
w.value = c("dialogs.insertImage.readFailed");
|
|
1304
|
-
}, t.readAsDataURL(e);
|
|
1305
|
-
}
|
|
1306
|
-
function P() {
|
|
1307
|
-
b.value && D && (g.value = Math.round(m.value / D));
|
|
1308
|
-
}
|
|
1309
|
-
function F() {
|
|
1310
|
-
b.value && D && (m.value = Math.round(g.value * D));
|
|
1311
|
-
}
|
|
1312
|
-
function I() {
|
|
1313
|
-
f.value && (l("insert", {
|
|
1314
|
-
src: f.value,
|
|
1315
|
-
width: m.value,
|
|
1316
|
-
height: g.value,
|
|
1317
|
-
alt: S.value
|
|
1318
|
-
}), k(), O());
|
|
1319
|
-
}
|
|
1320
|
-
return (n, l) => e.isOpen ? (p(), i("div", {
|
|
1321
|
-
key: 0,
|
|
1322
|
-
class: "dialog-overlay",
|
|
1323
|
-
onMousedown: T(O, ["self"])
|
|
1324
|
-
}, [a("div", {
|
|
1325
|
-
class: "dialog",
|
|
1326
|
-
onMousedown: l[7] ||= T(() => {}, ["stop"]),
|
|
1327
|
-
onKeydown: l[8] ||= T(() => {}, ["stop"])
|
|
1328
|
-
}, [a("div", fe, [a("span", pe, _(v(c)("dialogs.insertImage.title")), 1), a("button", {
|
|
1329
|
-
class: "dialog__close",
|
|
1330
|
-
"aria-label": v(c)("common.closeDialog"),
|
|
1331
|
-
onClick: O
|
|
1332
|
-
}, " ✕ ", 8, me)]), a("div", he, [
|
|
1333
|
-
a("div", {
|
|
1334
|
-
class: d(["drop-zone", { "drop-zone--active": E.value }]),
|
|
1335
|
-
onDragover: l[0] ||= T((e) => E.value = !0, ["prevent"]),
|
|
1336
|
-
onDragleave: l[1] ||= (e) => E.value = !1,
|
|
1337
|
-
onDrop: T(A, ["prevent"]),
|
|
1338
|
-
onClick: l[2] ||= (e) => u.value?.click()
|
|
1339
|
-
}, [f.value ? (p(), i("img", {
|
|
1340
|
-
key: 1,
|
|
1341
|
-
src: f.value,
|
|
1342
|
-
class: "drop-zone__preview",
|
|
1343
|
-
alt: v(c)("dialogs.insertImage.preview")
|
|
1344
|
-
}, null, 8, ye)) : (p(), i(t, { key: 0 }, [
|
|
1345
|
-
a("div", ge, [s(j, {
|
|
1346
|
-
name: "image",
|
|
1347
|
-
size: 48
|
|
1348
|
-
})]),
|
|
1349
|
-
a("div", _e, _(v(c)("dialogs.insertImage.uploadText")), 1),
|
|
1350
|
-
a("div", ve, _(v(c)("dialogs.insertImage.uploadSubtext")), 1)
|
|
1351
|
-
], 64))], 34),
|
|
1352
|
-
a("input", {
|
|
1353
|
-
ref_key: "fileInput",
|
|
1354
|
-
ref: u,
|
|
1355
|
-
type: "file",
|
|
1356
|
-
accept: "image/*",
|
|
1357
|
-
style: { display: "none" },
|
|
1358
|
-
"aria-label": v(c)("dialogs.insertImage.uploadAriaLabel"),
|
|
1359
|
-
onChange: M
|
|
1360
|
-
}, null, 40, be),
|
|
1361
|
-
w.value ? (p(), i("div", xe, _(w.value), 1)) : r("", !0),
|
|
1362
|
-
f.value ? (p(), i("div", Se, [
|
|
1363
|
-
a("label", null, [o(_(v(c)("dialogs.insertImage.widthLabel")) + " ", 1), C(a("input", {
|
|
1364
|
-
"onUpdate:modelValue": l[3] ||= (e) => m.value = e,
|
|
1365
|
-
type: "number",
|
|
1366
|
-
min: "1",
|
|
1367
|
-
max: "2000",
|
|
1368
|
-
class: "dim-input",
|
|
1369
|
-
onInput: P
|
|
1370
|
-
}, null, 544), [[
|
|
1371
|
-
x,
|
|
1372
|
-
m.value,
|
|
1373
|
-
void 0,
|
|
1374
|
-
{ number: !0 }
|
|
1375
|
-
]])]),
|
|
1376
|
-
a("label", null, [o(_(v(c)("dialogs.insertImage.heightLabel")) + " ", 1), C(a("input", {
|
|
1377
|
-
"onUpdate:modelValue": l[4] ||= (e) => g.value = e,
|
|
1378
|
-
type: "number",
|
|
1379
|
-
min: "1",
|
|
1380
|
-
max: "2000",
|
|
1381
|
-
class: "dim-input",
|
|
1382
|
-
onInput: F
|
|
1383
|
-
}, null, 544), [[
|
|
1384
|
-
x,
|
|
1385
|
-
g.value,
|
|
1386
|
-
void 0,
|
|
1387
|
-
{ number: !0 }
|
|
1388
|
-
]])]),
|
|
1389
|
-
a("label", Ce, [C(a("input", {
|
|
1390
|
-
type: "checkbox",
|
|
1391
|
-
"onUpdate:modelValue": l[5] ||= (e) => b.value = e
|
|
1392
|
-
}, null, 512), [[y, b.value]]), o(" " + _(b.value ? v(c)("dialogs.insertImage.aspectRatioLocked") : v(c)("dialogs.insertImage.aspectRatioUnlocked")), 1)])
|
|
1393
|
-
])) : r("", !0),
|
|
1394
|
-
f.value ? (p(), i("div", we, [a("label", Te, [o(_(v(c)("dialogs.insertImage.altTextLabel")) + " ", 1), C(a("input", {
|
|
1395
|
-
"onUpdate:modelValue": l[6] ||= (e) => S.value = e,
|
|
1396
|
-
class: "alt-input",
|
|
1397
|
-
placeholder: v(c)("dialogs.insertImage.altTextPlaceholder")
|
|
1398
|
-
}, null, 8, Ee), [[x, S.value]])])])) : r("", !0),
|
|
1399
|
-
f.value ? (p(), i("div", De, [a("button", {
|
|
1400
|
-
class: "dialog__btn",
|
|
1401
|
-
onClick: k
|
|
1402
|
-
}, _(v(c)("common.clear")), 1), a("button", {
|
|
1403
|
-
class: "dialog__btn dialog__btn--primary",
|
|
1404
|
-
onMousedown: T(I, ["prevent"])
|
|
1405
|
-
}, _(v(c)("dialogs.insertImage.insertButton")), 33)])) : r("", !0)
|
|
1406
|
-
])], 32)], 32)) : r("", !0);
|
|
1407
|
-
}
|
|
1408
|
-
}), [["__scopeId", "data-v-8ea71e65"]]), ke = { class: "dialog__header" }, Ae = { class: "dialog__title" }, je = ["aria-label"], Me = { class: "dialog__body" }, Ne = {
|
|
1253
|
+
}), [["__scopeId", "data-v-88f1979d"]]), de = { class: "dialog__header" }, fe = { class: "dialog__title" }, pe = ["aria-label"], me = { class: "dialog__body" }, he = {
|
|
1409
1254
|
key: 0,
|
|
1410
1255
|
class: "link-tabs",
|
|
1411
1256
|
role: "tablist"
|
|
1412
|
-
},
|
|
1257
|
+
}, ge = ["aria-selected"], _e = ["aria-selected"], ve = {
|
|
1413
1258
|
key: 1,
|
|
1414
1259
|
class: "field"
|
|
1415
|
-
},
|
|
1260
|
+
}, ye = { class: "field__label" }, be = [
|
|
1416
1261
|
"placeholder",
|
|
1417
1262
|
"aria-invalid",
|
|
1418
1263
|
"onKeydown"
|
|
1419
|
-
],
|
|
1264
|
+
], xe = {
|
|
1420
1265
|
key: 0,
|
|
1421
1266
|
class: "field__error"
|
|
1422
|
-
},
|
|
1267
|
+
}, Se = {
|
|
1423
1268
|
key: 1,
|
|
1424
1269
|
class: "field__hint"
|
|
1425
|
-
},
|
|
1270
|
+
}, Ce = {
|
|
1426
1271
|
key: 2,
|
|
1427
1272
|
class: "field"
|
|
1428
|
-
},
|
|
1273
|
+
}, we = { class: "field__label" }, Te = ["onKeydown"], Ee = { value: "" }, De = ["value"], Oe = { class: "field" }, ke = { class: "field__label" }, Ae = ["placeholder"], je = { class: "field__hint" }, Me = { class: "field" }, Ne = { class: "field__label" }, Pe = ["placeholder"], Fe = { class: "dialog__actions" }, Ie = ["disabled"], Le = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
1429
1274
|
__name: "HyperlinkDialog",
|
|
1430
1275
|
props: {
|
|
1431
1276
|
isOpen: { type: Boolean },
|
|
@@ -1438,8 +1283,8 @@ var ne = { install(e, t) {
|
|
|
1438
1283
|
"remove"
|
|
1439
1284
|
],
|
|
1440
1285
|
setup(e, { emit: o }) {
|
|
1441
|
-
let { t: s } =
|
|
1442
|
-
|
|
1286
|
+
let { t: s } = V(), c = e, d = o, p = m(null), v = m(null), T = m("url"), E = m(""), D = m(""), O = m(""), k = m(""), A = m(!1), j = m(""), M = m(!1), N = n(() => c.bookmarks ?? []), P = n(() => T.value === "bookmark" ? !!D.value : !!E.value.trim() && !j.value);
|
|
1287
|
+
x(E, () => {
|
|
1443
1288
|
j.value &&= "";
|
|
1444
1289
|
});
|
|
1445
1290
|
function F(e) {
|
|
@@ -1458,27 +1303,27 @@ var ne = { install(e, t) {
|
|
|
1458
1303
|
let t = e.trim();
|
|
1459
1304
|
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
1460
1305
|
}
|
|
1461
|
-
|
|
1306
|
+
x(() => c.isOpen, async (e) => {
|
|
1462
1307
|
if (e) {
|
|
1463
1308
|
let e = c.view;
|
|
1464
1309
|
if (e) {
|
|
1465
1310
|
let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
|
|
1466
1311
|
if (a) {
|
|
1467
1312
|
let e = a.attrs.href || "";
|
|
1468
|
-
e.startsWith("#") ? (
|
|
1469
|
-
} else
|
|
1313
|
+
e.startsWith("#") ? (T.value = "bookmark", D.value = e.slice(1), E.value = "") : (T.value = "url", E.value = e, D.value = ""), k.value = a.attrs.tooltip || "", A.value = !0;
|
|
1314
|
+
} else T.value = "url", E.value = "", D.value = "", k.value = "", A.value = !1;
|
|
1470
1315
|
n ? O.value = "" : O.value = e.state.doc.textBetween(r, i);
|
|
1471
1316
|
}
|
|
1472
|
-
await
|
|
1317
|
+
await l(), T.value === "bookmark" ? v.value?.focus() : p.value?.focus();
|
|
1473
1318
|
} else M.value = !1, j.value = "";
|
|
1474
1319
|
});
|
|
1475
1320
|
function L() {
|
|
1476
|
-
|
|
1321
|
+
d("close");
|
|
1477
1322
|
}
|
|
1478
1323
|
function R() {
|
|
1479
|
-
if (
|
|
1324
|
+
if (T.value === "bookmark") {
|
|
1480
1325
|
if (!D.value) return;
|
|
1481
|
-
|
|
1326
|
+
d("submit", {
|
|
1482
1327
|
bookmark: D.value,
|
|
1483
1328
|
displayText: O.value,
|
|
1484
1329
|
tooltip: k.value
|
|
@@ -1489,14 +1334,14 @@ var ne = { install(e, t) {
|
|
|
1489
1334
|
j.value = E.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
1490
1335
|
return;
|
|
1491
1336
|
}
|
|
1492
|
-
|
|
1337
|
+
d("submit", {
|
|
1493
1338
|
url: I(E.value),
|
|
1494
1339
|
displayText: O.value,
|
|
1495
1340
|
tooltip: k.value
|
|
1496
1341
|
}), L();
|
|
1497
1342
|
}
|
|
1498
1343
|
function z() {
|
|
1499
|
-
if (
|
|
1344
|
+
if (T.value === "url") {
|
|
1500
1345
|
if (M.value = !0, !E.value.trim()) {
|
|
1501
1346
|
j.value = "";
|
|
1502
1347
|
return;
|
|
@@ -1505,110 +1350,110 @@ var ne = { install(e, t) {
|
|
|
1505
1350
|
}
|
|
1506
1351
|
}
|
|
1507
1352
|
function B() {
|
|
1508
|
-
|
|
1353
|
+
d("remove"), L();
|
|
1509
1354
|
}
|
|
1510
|
-
return (n, o) => e.isOpen ? (
|
|
1355
|
+
return (n, o) => e.isOpen ? (f(), i("div", {
|
|
1511
1356
|
key: 0,
|
|
1512
1357
|
class: "dialog-overlay",
|
|
1513
|
-
onMousedown:
|
|
1358
|
+
onMousedown: w(L, ["self"])
|
|
1514
1359
|
}, [a("div", {
|
|
1515
1360
|
class: "dialog",
|
|
1516
|
-
onMousedown: o[6] ||=
|
|
1517
|
-
onKeydown: o[7] ||=
|
|
1518
|
-
}, [a("div",
|
|
1361
|
+
onMousedown: o[6] ||= w(() => {}, ["stop"]),
|
|
1362
|
+
onKeydown: o[7] ||= w(() => {}, ["stop"])
|
|
1363
|
+
}, [a("div", de, [a("span", fe, g(A.value ? _(s)("dialogs.hyperlink.titleEdit") : _(s)("dialogs.hyperlink.titleInsert")), 1), a("button", {
|
|
1519
1364
|
class: "dialog__close",
|
|
1520
|
-
"aria-label":
|
|
1365
|
+
"aria-label": _(s)("common.closeDialog"),
|
|
1521
1366
|
onClick: L
|
|
1522
|
-
}, " ✕ ", 8,
|
|
1523
|
-
N.value.length > 0 ? (
|
|
1524
|
-
class:
|
|
1367
|
+
}, " ✕ ", 8, pe)]), a("div", me, [
|
|
1368
|
+
N.value.length > 0 ? (f(), i("div", he, [a("button", {
|
|
1369
|
+
class: u(["link-tab", { active: T.value === "url" }]),
|
|
1525
1370
|
role: "tab",
|
|
1526
|
-
"aria-selected":
|
|
1527
|
-
onMousedown: o[0] ||=
|
|
1528
|
-
}, _(
|
|
1529
|
-
class:
|
|
1371
|
+
"aria-selected": T.value === "url",
|
|
1372
|
+
onMousedown: o[0] ||= w((e) => T.value = "url", ["prevent"])
|
|
1373
|
+
}, g(_(s)("dialogs.hyperlink.tabWebAddress")), 43, ge), a("button", {
|
|
1374
|
+
class: u(["link-tab", { active: T.value === "bookmark" }]),
|
|
1530
1375
|
role: "tab",
|
|
1531
|
-
"aria-selected":
|
|
1532
|
-
onMousedown: o[1] ||=
|
|
1533
|
-
}, _(
|
|
1534
|
-
|
|
1535
|
-
a("label",
|
|
1536
|
-
|
|
1376
|
+
"aria-selected": T.value === "bookmark",
|
|
1377
|
+
onMousedown: o[1] ||= w((e) => T.value = "bookmark", ["prevent"])
|
|
1378
|
+
}, g(_(s)("dialogs.hyperlink.tabBookmark")), 43, _e)])) : r("", !0),
|
|
1379
|
+
T.value === "url" ? (f(), i("div", ve, [
|
|
1380
|
+
a("label", ye, g(_(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
1381
|
+
S(a("input", {
|
|
1537
1382
|
ref_key: "urlInputRef",
|
|
1538
|
-
ref:
|
|
1383
|
+
ref: p,
|
|
1539
1384
|
"onUpdate:modelValue": o[2] ||= (e) => E.value = e,
|
|
1540
|
-
class:
|
|
1541
|
-
placeholder:
|
|
1385
|
+
class: u(["field__input", { "field__input--error": M.value && !!j.value }]),
|
|
1386
|
+
placeholder: _(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
1542
1387
|
"aria-invalid": M.value && !!j.value,
|
|
1543
|
-
onKeydown: w(
|
|
1388
|
+
onKeydown: C(w(R, ["prevent"]), ["enter"]),
|
|
1544
1389
|
onBlur: z
|
|
1545
|
-
}, null, 42,
|
|
1546
|
-
M.value && j.value ? (
|
|
1547
|
-
])) : (
|
|
1390
|
+
}, null, 42, be), [[b, E.value]]),
|
|
1391
|
+
M.value && j.value ? (f(), i("div", xe, g(j.value), 1)) : (f(), i("div", Se, g(_(s)("dialogs.hyperlink.urlHint")), 1))
|
|
1392
|
+
])) : (f(), i("div", Ce, [a("label", we, g(_(s)("dialogs.hyperlink.bookmarkLabel")), 1), S(a("select", {
|
|
1548
1393
|
ref_key: "bookmarkSelectRef",
|
|
1549
|
-
ref:
|
|
1394
|
+
ref: v,
|
|
1550
1395
|
"onUpdate:modelValue": o[3] ||= (e) => D.value = e,
|
|
1551
1396
|
class: "field__input",
|
|
1552
|
-
onKeydown: w(
|
|
1553
|
-
}, [a("option",
|
|
1397
|
+
onKeydown: C(w(R, ["prevent"]), ["enter"])
|
|
1398
|
+
}, [a("option", Ee, g(_(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (f(!0), i(t, null, h(N.value, (e) => (f(), i("option", {
|
|
1554
1399
|
key: e.name,
|
|
1555
1400
|
value: e.name
|
|
1556
|
-
},
|
|
1557
|
-
a("div",
|
|
1558
|
-
a("label",
|
|
1559
|
-
|
|
1401
|
+
}, g(e.label || e.name), 9, De))), 128))], 40, Te), [[y, D.value]])])),
|
|
1402
|
+
a("div", Oe, [
|
|
1403
|
+
a("label", ke, g(_(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
1404
|
+
S(a("input", {
|
|
1560
1405
|
"onUpdate:modelValue": o[4] ||= (e) => O.value = e,
|
|
1561
1406
|
class: "field__input",
|
|
1562
|
-
placeholder:
|
|
1563
|
-
}, null, 8,
|
|
1564
|
-
a("div",
|
|
1407
|
+
placeholder: _(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
1408
|
+
}, null, 8, Ae), [[b, O.value]]),
|
|
1409
|
+
a("div", je, g(_(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
1565
1410
|
]),
|
|
1566
|
-
a("div",
|
|
1411
|
+
a("div", Me, [a("label", Ne, g(_(s)("dialogs.hyperlink.tooltipLabel")), 1), S(a("input", {
|
|
1567
1412
|
"onUpdate:modelValue": o[5] ||= (e) => k.value = e,
|
|
1568
1413
|
class: "field__input",
|
|
1569
|
-
placeholder:
|
|
1570
|
-
}, null, 8,
|
|
1571
|
-
a("div",
|
|
1572
|
-
A.value ? (
|
|
1414
|
+
placeholder: _(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
1415
|
+
}, null, 8, Pe), [[b, k.value]])]),
|
|
1416
|
+
a("div", Fe, [
|
|
1417
|
+
A.value ? (f(), i("button", {
|
|
1573
1418
|
key: 0,
|
|
1574
1419
|
class: "dialog__btn dialog__btn--danger",
|
|
1575
|
-
onMousedown:
|
|
1576
|
-
}, _(
|
|
1420
|
+
onMousedown: w(B, ["prevent"])
|
|
1421
|
+
}, g(_(s)("dialogs.hyperlink.removeLink")), 33)) : r("", !0),
|
|
1577
1422
|
o[8] ||= a("div", { style: { flex: "1" } }, null, -1),
|
|
1578
1423
|
a("button", {
|
|
1579
1424
|
class: "dialog__btn",
|
|
1580
1425
|
onClick: L
|
|
1581
|
-
}, _(
|
|
1426
|
+
}, g(_(s)("common.cancel")), 1),
|
|
1582
1427
|
a("button", {
|
|
1583
1428
|
class: "dialog__btn dialog__btn--primary",
|
|
1584
|
-
onMousedown:
|
|
1429
|
+
onMousedown: w(R, ["prevent"]),
|
|
1585
1430
|
disabled: !P.value
|
|
1586
|
-
},
|
|
1431
|
+
}, g(A.value ? _(s)("common.update") : _(s)("common.insert")), 41, Ie)
|
|
1587
1432
|
])
|
|
1588
1433
|
])], 32)], 32)) : r("", !0);
|
|
1589
1434
|
}
|
|
1590
|
-
}), [["__scopeId", "data-v-
|
|
1435
|
+
}), [["__scopeId", "data-v-3677ac5b"]]), Re = { class: "dialog__header" }, ze = { class: "dialog__title" }, Be = ["title"], Ve = { class: "dialog__body" }, He = ["placeholder"], Ue = {
|
|
1591
1436
|
key: 0,
|
|
1592
1437
|
class: "symbol-tabs"
|
|
1593
|
-
},
|
|
1438
|
+
}, We = ["onMousedown"], Ge = { class: "symbol-grid" }, Ke = [
|
|
1594
1439
|
"title",
|
|
1595
1440
|
"onClick",
|
|
1596
1441
|
"onDblclick"
|
|
1597
|
-
],
|
|
1442
|
+
], qe = {
|
|
1598
1443
|
key: 0,
|
|
1599
1444
|
class: "symbol-empty"
|
|
1600
|
-
},
|
|
1445
|
+
}, Je = {
|
|
1601
1446
|
key: 1,
|
|
1602
1447
|
class: "symbol-preview"
|
|
1603
|
-
},
|
|
1448
|
+
}, Ye = { class: "symbol-preview__char" }, Xe = { class: "symbol-preview__info" }, Ze = {
|
|
1604
1449
|
key: 2,
|
|
1605
1450
|
class: "symbol-recent"
|
|
1606
|
-
},
|
|
1451
|
+
}, Qe = { class: "symbol-recent__label" }, $e = ["onDblclick", "onClick"], et = { class: "dialog__actions" }, tt = ["disabled"], nt = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
1607
1452
|
__name: "InsertSymbolDialog",
|
|
1608
1453
|
props: { isOpen: { type: Boolean } },
|
|
1609
1454
|
emits: ["close", "insert"],
|
|
1610
1455
|
setup(e, { emit: o }) {
|
|
1611
|
-
let { t: s } =
|
|
1456
|
+
let { t: s } = V(), c = e, d = o, p = m(null), v = m(""), y = m("Common"), T = m(""), E = m([]), D = [
|
|
1612
1457
|
{
|
|
1613
1458
|
name: "Common",
|
|
1614
1459
|
nameKey: "dialogs.insertSymbol.categories.common",
|
|
@@ -2109,8 +1954,8 @@ var ne = { install(e, t) {
|
|
|
2109
1954
|
});
|
|
2110
1955
|
return e;
|
|
2111
1956
|
}), k = n(() => {
|
|
2112
|
-
if (
|
|
2113
|
-
let e =
|
|
1957
|
+
if (v.value) {
|
|
1958
|
+
let e = v.value.toLowerCase();
|
|
2114
1959
|
return O.value.filter((t) => t.name.toLowerCase().includes(e) || t.char === e);
|
|
2115
1960
|
}
|
|
2116
1961
|
let e = D.find((e) => e.name === y.value);
|
|
@@ -2119,66 +1964,66 @@ var ne = { install(e, t) {
|
|
|
2119
1964
|
category: e.name
|
|
2120
1965
|
})) : [];
|
|
2121
1966
|
});
|
|
2122
|
-
|
|
2123
|
-
e && (await
|
|
1967
|
+
x(() => c.isOpen, async (e) => {
|
|
1968
|
+
e && (await l(), p.value?.focus());
|
|
2124
1969
|
});
|
|
2125
1970
|
function A() {
|
|
2126
|
-
|
|
1971
|
+
d("close");
|
|
2127
1972
|
}
|
|
2128
1973
|
function j(e) {
|
|
2129
|
-
e && (E.value = [e, ...E.value.filter((t) => t !== e)].slice(0, 10),
|
|
1974
|
+
e && (E.value = [e, ...E.value.filter((t) => t !== e)].slice(0, 10), d("insert", e));
|
|
2130
1975
|
}
|
|
2131
|
-
return (n, o) => e.isOpen ? (
|
|
1976
|
+
return (n, o) => e.isOpen ? (f(), i("div", {
|
|
2132
1977
|
key: 0,
|
|
2133
1978
|
class: "dialog-overlay",
|
|
2134
|
-
onMousedown:
|
|
1979
|
+
onMousedown: w(A, ["self"])
|
|
2135
1980
|
}, [a("div", {
|
|
2136
1981
|
class: "dialog symbol-dialog",
|
|
2137
|
-
onMousedown: o[2] ||=
|
|
2138
|
-
onKeydown: o[3] ||=
|
|
2139
|
-
}, [a("div",
|
|
1982
|
+
onMousedown: o[2] ||= w(() => {}, ["stop"]),
|
|
1983
|
+
onKeydown: o[3] ||= w(() => {}, ["stop"])
|
|
1984
|
+
}, [a("div", Re, [a("span", ze, g(_(s)("dialogs.insertSymbol.title")), 1), a("button", {
|
|
2140
1985
|
class: "dialog__close",
|
|
2141
|
-
title:
|
|
1986
|
+
title: _(s)("common.closeDialog"),
|
|
2142
1987
|
onClick: A
|
|
2143
|
-
}, "✕", 8,
|
|
2144
|
-
|
|
1988
|
+
}, "✕", 8, Be)]), a("div", Ve, [
|
|
1989
|
+
S(a("input", {
|
|
2145
1990
|
ref_key: "searchRef",
|
|
2146
|
-
ref:
|
|
2147
|
-
"onUpdate:modelValue": o[0] ||= (e) =>
|
|
1991
|
+
ref: p,
|
|
1992
|
+
"onUpdate:modelValue": o[0] ||= (e) => v.value = e,
|
|
2148
1993
|
class: "symbol-search",
|
|
2149
|
-
placeholder:
|
|
2150
|
-
onKeydown:
|
|
2151
|
-
}, null, 40,
|
|
2152
|
-
|
|
1994
|
+
placeholder: _(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
1995
|
+
onKeydown: C(A, ["escape"])
|
|
1996
|
+
}, null, 40, He), [[b, v.value]]),
|
|
1997
|
+
v.value ? r("", !0) : (f(), i("div", Ue, [(f(), i(t, null, h(D, (e) => a("button", {
|
|
2153
1998
|
key: e.name,
|
|
2154
|
-
class:
|
|
2155
|
-
onMousedown:
|
|
2156
|
-
}, _(
|
|
2157
|
-
a("div",
|
|
1999
|
+
class: u(["symbol-tab", { active: y.value === e.name }]),
|
|
2000
|
+
onMousedown: w((t) => y.value = e.name, ["prevent"])
|
|
2001
|
+
}, g(_(s)(e.nameKey)), 43, We)), 64))])),
|
|
2002
|
+
a("div", Ge, [(f(!0), i(t, null, h(k.value, (e) => (f(), i("button", {
|
|
2158
2003
|
key: e.char,
|
|
2159
|
-
class:
|
|
2004
|
+
class: u(["symbol-cell", { selected: T.value === e.char }]),
|
|
2160
2005
|
title: e.name,
|
|
2161
|
-
onClick: (t) =>
|
|
2006
|
+
onClick: (t) => T.value = e.char,
|
|
2162
2007
|
onDblclick: (t) => j(e.char)
|
|
2163
|
-
},
|
|
2164
|
-
|
|
2165
|
-
E.value.length > 0 && !
|
|
2008
|
+
}, g(e.char), 43, Ke))), 128)), k.value.length === 0 ? (f(), i("div", qe, g(v.value ? _(s)("dialogs.insertSymbol.noResults", { query: v.value }) : _(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : r("", !0)]),
|
|
2009
|
+
T.value ? (f(), i("div", Je, [a("span", Ye, g(T.value), 1), a("span", Xe, "U+" + g(T.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : r("", !0),
|
|
2010
|
+
E.value.length > 0 && !v.value ? (f(), i("div", Ze, [a("div", Qe, g(_(s)("dialogs.insertSymbol.recent")), 1), (f(!0), i(t, null, h(E.value, (e) => (f(), i("button", {
|
|
2166
2011
|
key: e,
|
|
2167
2012
|
class: "symbol-cell symbol-cell--small",
|
|
2168
2013
|
onDblclick: (t) => j(e),
|
|
2169
|
-
onClick: (t) =>
|
|
2170
|
-
},
|
|
2171
|
-
a("div",
|
|
2014
|
+
onClick: (t) => T.value = e
|
|
2015
|
+
}, g(e), 41, $e))), 128))])) : r("", !0),
|
|
2016
|
+
a("div", et, [a("button", {
|
|
2172
2017
|
class: "dialog__btn",
|
|
2173
2018
|
onClick: A
|
|
2174
|
-
}, _(
|
|
2019
|
+
}, g(_(s)("common.cancel")), 1), a("button", {
|
|
2175
2020
|
class: "dialog__btn dialog__btn--primary",
|
|
2176
|
-
onMousedown: o[1] ||=
|
|
2177
|
-
disabled: !
|
|
2178
|
-
}, _(
|
|
2021
|
+
onMousedown: o[1] ||= w((e) => j(T.value), ["prevent"]),
|
|
2022
|
+
disabled: !T.value
|
|
2023
|
+
}, g(_(s)("common.insert")), 41, tt)])
|
|
2179
2024
|
])], 32)], 32)) : r("", !0);
|
|
2180
2025
|
}
|
|
2181
|
-
}), [["__scopeId", "data-v-
|
|
2026
|
+
}), [["__scopeId", "data-v-a0833b79"]]), rt = { class: "dialog__header" }, it = { class: "dialog__title" }, at = ["aria-label"], ot = { class: "dialog__body" }, st = { class: "field" }, ct = { class: "field__label" }, lt = ["placeholder"], ut = { class: "field" }, dt = { class: "field__label" }, ft = { value: "inline" }, pt = { value: "wrapRight" }, mt = { value: "wrapLeft" }, ht = { value: "topAndBottom" }, gt = { value: "behind" }, _t = { value: "inFront" }, vt = { class: "field" }, yt = { class: "field__label" }, bt = { class: "field-row" }, xt = { value: "solid" }, St = { value: "dashed" }, Ct = { value: "dotted" }, wt = { value: "double" }, Tt = { class: "field" }, Et = { class: "field__label" }, Dt = { class: "field-row" }, Ot = ["value"], kt = ["value"], At = { class: "field__checkbox" }, jt = { class: "dialog__actions" }, Mt = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
2182
2027
|
__name: "ImagePropertiesDialog",
|
|
2183
2028
|
props: {
|
|
2184
2029
|
isOpen: { type: Boolean },
|
|
@@ -2187,12 +2032,12 @@ var ne = { install(e, t) {
|
|
|
2187
2032
|
},
|
|
2188
2033
|
emits: ["close"],
|
|
2189
2034
|
setup(e, { emit: t }) {
|
|
2190
|
-
let { t: n } =
|
|
2191
|
-
|
|
2035
|
+
let { t: n } = V(), s = e, c = t, l = m(""), u = m("inline"), d = m(0), p = m("solid"), h = m("#000000"), C = m(200), T = m(150), E = m(!0), D = 1;
|
|
2036
|
+
x(() => s.isOpen, (e) => {
|
|
2192
2037
|
if (!(!e || !s.view || s.pmPos === null)) try {
|
|
2193
2038
|
let e = s.view.state.doc.nodeAt(s.pmPos);
|
|
2194
2039
|
if (e && e.type.name === "image") {
|
|
2195
|
-
l.value = e.attrs.alt || "", d.value = e.attrs.borderWidth || 0,
|
|
2040
|
+
l.value = e.attrs.alt || "", d.value = e.attrs.borderWidth || 0, p.value = e.attrs.borderStyle || "solid", h.value = e.attrs.borderColor || "#000000", C.value = e.attrs.width || 200, T.value = e.attrs.height || 150, D = C.value / (T.value || 1), E.value = !0;
|
|
2196
2041
|
let t = e.attrs.displayMode, n = e.attrs.cssFloat, r = e.attrs.wrapType;
|
|
2197
2042
|
t === "float" && n === "left" ? u.value = "wrapRight" : t === "float" && n === "right" ? u.value = "wrapLeft" : t === "block" ? u.value = "topAndBottom" : r === "behind" ? u.value = "behind" : r === "inFront" ? u.value = "inFront" : u.value = "inline";
|
|
2198
2043
|
}
|
|
@@ -2200,11 +2045,11 @@ var ne = { install(e, t) {
|
|
|
2200
2045
|
});
|
|
2201
2046
|
function O(e) {
|
|
2202
2047
|
let t = Number(e.target.value);
|
|
2203
|
-
isNaN(t) || t < 1 || (
|
|
2048
|
+
isNaN(t) || t < 1 || (C.value = t, E.value && D > 0 && (T.value = Math.round(t / D)));
|
|
2204
2049
|
}
|
|
2205
2050
|
function k(e) {
|
|
2206
2051
|
let t = Number(e.target.value);
|
|
2207
|
-
isNaN(t) || t < 1 || (
|
|
2052
|
+
isNaN(t) || t < 1 || (T.value = t, E.value && D > 0 && (C.value = Math.round(t * D)));
|
|
2208
2053
|
}
|
|
2209
2054
|
function A() {
|
|
2210
2055
|
c("close");
|
|
@@ -2239,11 +2084,11 @@ var ne = { install(e, t) {
|
|
|
2239
2084
|
let a = e.state.tr.setNodeMarkup(s.pmPos, void 0, {
|
|
2240
2085
|
...t.attrs,
|
|
2241
2086
|
alt: l.value,
|
|
2242
|
-
width:
|
|
2243
|
-
height:
|
|
2087
|
+
width: C.value,
|
|
2088
|
+
height: T.value,
|
|
2244
2089
|
borderWidth: d.value || void 0,
|
|
2245
|
-
borderStyle: d.value > 0 ?
|
|
2246
|
-
borderColor: d.value > 0 ?
|
|
2090
|
+
borderStyle: d.value > 0 ? p.value : void 0,
|
|
2091
|
+
borderColor: d.value > 0 ? h.value : void 0,
|
|
2247
2092
|
displayMode: n,
|
|
2248
2093
|
cssFloat: r,
|
|
2249
2094
|
wrapType: i
|
|
@@ -2253,40 +2098,40 @@ var ne = { install(e, t) {
|
|
|
2253
2098
|
A();
|
|
2254
2099
|
}
|
|
2255
2100
|
}
|
|
2256
|
-
return (t, s) => e.isOpen ? (
|
|
2101
|
+
return (t, s) => e.isOpen ? (f(), i("div", {
|
|
2257
2102
|
key: 0,
|
|
2258
2103
|
class: "dialog-overlay",
|
|
2259
|
-
onMousedown:
|
|
2104
|
+
onMousedown: w(A, ["self"])
|
|
2260
2105
|
}, [a("div", {
|
|
2261
2106
|
class: "dialog",
|
|
2262
|
-
onMousedown: s[6] ||=
|
|
2263
|
-
onKeydown: s[7] ||=
|
|
2264
|
-
}, [a("div",
|
|
2107
|
+
onMousedown: s[6] ||= w(() => {}, ["stop"]),
|
|
2108
|
+
onKeydown: s[7] ||= w(() => {}, ["stop"])
|
|
2109
|
+
}, [a("div", rt, [a("span", it, g(_(n)("dialogs.imageProperties.title")), 1), a("button", {
|
|
2265
2110
|
class: "dialog__close",
|
|
2266
|
-
"aria-label":
|
|
2111
|
+
"aria-label": _(n)("common.closeDialog"),
|
|
2267
2112
|
onClick: A
|
|
2268
|
-
}, " ✕ ", 8,
|
|
2269
|
-
a("div",
|
|
2113
|
+
}, " ✕ ", 8, at)]), a("div", ot, [
|
|
2114
|
+
a("div", st, [a("label", ct, g(_(n)("dialogs.imageProperties.altText")), 1), S(a("textarea", {
|
|
2270
2115
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
2271
2116
|
class: "field__textarea",
|
|
2272
|
-
placeholder:
|
|
2117
|
+
placeholder: _(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
2273
2118
|
rows: "2"
|
|
2274
|
-
}, null, 8,
|
|
2275
|
-
a("div",
|
|
2119
|
+
}, null, 8, lt), [[b, l.value]])]),
|
|
2120
|
+
a("div", ut, [a("label", dt, g(_(n)("dialogs.imageProperties.textWrapping")), 1), S(a("select", {
|
|
2276
2121
|
"onUpdate:modelValue": s[1] ||= (e) => u.value = e,
|
|
2277
2122
|
class: "field__select"
|
|
2278
2123
|
}, [
|
|
2279
|
-
a("option",
|
|
2280
|
-
a("option",
|
|
2281
|
-
a("option",
|
|
2282
|
-
a("option",
|
|
2283
|
-
a("option",
|
|
2284
|
-
a("option",
|
|
2285
|
-
], 512), [[
|
|
2286
|
-
a("div",
|
|
2124
|
+
a("option", ft, g(_(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
2125
|
+
a("option", pt, g(_(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
2126
|
+
a("option", mt, g(_(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
2127
|
+
a("option", ht, g(_(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
2128
|
+
a("option", gt, g(_(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
2129
|
+
a("option", _t, g(_(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
2130
|
+
], 512), [[y, u.value]])]),
|
|
2131
|
+
a("div", vt, [a("label", yt, g(_(n)("dialogs.imageProperties.border")), 1), a("div", bt, [
|
|
2287
2132
|
a("label", null, [
|
|
2288
|
-
o(_(
|
|
2289
|
-
|
|
2133
|
+
o(g(_(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
2134
|
+
S(a("input", {
|
|
2290
2135
|
"onUpdate:modelValue": s[2] ||= (e) => d.value = e,
|
|
2291
2136
|
type: "number",
|
|
2292
2137
|
min: "0",
|
|
@@ -2294,71 +2139,71 @@ var ne = { install(e, t) {
|
|
|
2294
2139
|
step: "0.5",
|
|
2295
2140
|
class: "field__input--small"
|
|
2296
2141
|
}, null, 512), [[
|
|
2297
|
-
|
|
2142
|
+
b,
|
|
2298
2143
|
d.value,
|
|
2299
2144
|
void 0,
|
|
2300
2145
|
{ number: !0 }
|
|
2301
2146
|
]]),
|
|
2302
|
-
o(_(
|
|
2147
|
+
o(g(_(n)("common.px")), 1)
|
|
2303
2148
|
]),
|
|
2304
|
-
a("label", null, [o(_(
|
|
2305
|
-
"onUpdate:modelValue": s[3] ||= (e) =>
|
|
2149
|
+
a("label", null, [o(g(_(n)("dialogs.imageProperties.style")) + ": ", 1), S(a("select", {
|
|
2150
|
+
"onUpdate:modelValue": s[3] ||= (e) => p.value = e,
|
|
2306
2151
|
class: "field__select--small"
|
|
2307
2152
|
}, [
|
|
2308
|
-
a("option",
|
|
2309
|
-
a("option",
|
|
2310
|
-
a("option",
|
|
2311
|
-
a("option",
|
|
2312
|
-
], 512), [[
|
|
2313
|
-
a("label", null, [o(_(
|
|
2314
|
-
"onUpdate:modelValue": s[4] ||= (e) =>
|
|
2153
|
+
a("option", xt, g(_(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
2154
|
+
a("option", St, g(_(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
2155
|
+
a("option", Ct, g(_(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
2156
|
+
a("option", wt, g(_(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
2157
|
+
], 512), [[y, p.value]])]),
|
|
2158
|
+
a("label", null, [o(g(_(n)("dialogs.imageProperties.color")) + ": ", 1), S(a("input", {
|
|
2159
|
+
"onUpdate:modelValue": s[4] ||= (e) => h.value = e,
|
|
2315
2160
|
type: "color",
|
|
2316
2161
|
class: "field__color"
|
|
2317
|
-
}, null, 512), [[
|
|
2162
|
+
}, null, 512), [[b, h.value]])])
|
|
2318
2163
|
])]),
|
|
2319
|
-
a("div",
|
|
2320
|
-
a("label",
|
|
2321
|
-
a("div",
|
|
2322
|
-
o(_(
|
|
2164
|
+
a("div", Tt, [
|
|
2165
|
+
a("label", Et, g(_(n)("dialogs.imageProperties.dimensions")), 1),
|
|
2166
|
+
a("div", Dt, [a("label", null, [
|
|
2167
|
+
o(g(_(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
2323
2168
|
a("input", {
|
|
2324
|
-
value:
|
|
2169
|
+
value: C.value,
|
|
2325
2170
|
type: "number",
|
|
2326
2171
|
min: "1",
|
|
2327
2172
|
max: "2000",
|
|
2328
2173
|
class: "field__input--small",
|
|
2329
2174
|
onInput: O
|
|
2330
|
-
}, null, 40,
|
|
2331
|
-
o(_(
|
|
2175
|
+
}, null, 40, Ot),
|
|
2176
|
+
o(g(_(n)("common.px")), 1)
|
|
2332
2177
|
]), a("label", null, [
|
|
2333
|
-
o(_(
|
|
2178
|
+
o(g(_(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
2334
2179
|
a("input", {
|
|
2335
|
-
value:
|
|
2180
|
+
value: T.value,
|
|
2336
2181
|
type: "number",
|
|
2337
2182
|
min: "1",
|
|
2338
2183
|
max: "2000",
|
|
2339
2184
|
class: "field__input--small",
|
|
2340
2185
|
onInput: k
|
|
2341
|
-
}, null, 40,
|
|
2342
|
-
o(_(
|
|
2186
|
+
}, null, 40, kt),
|
|
2187
|
+
o(g(_(n)("common.px")), 1)
|
|
2343
2188
|
])]),
|
|
2344
|
-
a("label",
|
|
2189
|
+
a("label", At, [S(a("input", {
|
|
2345
2190
|
"onUpdate:modelValue": s[5] ||= (e) => E.value = e,
|
|
2346
2191
|
type: "checkbox"
|
|
2347
|
-
}, null, 512), [[
|
|
2192
|
+
}, null, 512), [[v, E.value]]), o(" " + g(_(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
2348
2193
|
]),
|
|
2349
|
-
a("div",
|
|
2194
|
+
a("div", jt, [a("button", {
|
|
2350
2195
|
class: "dialog__btn",
|
|
2351
2196
|
onClick: A
|
|
2352
|
-
}, _(
|
|
2197
|
+
}, g(_(n)("common.cancel")), 1), a("button", {
|
|
2353
2198
|
class: "dialog__btn dialog__btn--primary",
|
|
2354
|
-
onMousedown:
|
|
2355
|
-
}, _(
|
|
2199
|
+
onMousedown: w(j, ["prevent"])
|
|
2200
|
+
}, g(_(n)("common.apply")), 33)])
|
|
2356
2201
|
])], 32)], 32)) : r("", !0);
|
|
2357
2202
|
}
|
|
2358
|
-
}), [["__scopeId", "data-v-
|
|
2203
|
+
}), [["__scopeId", "data-v-e3e3414c"]]), Nt = ["aria-label"], Pt = { class: "ps-header" }, Ft = { class: "ps-body" }, It = { class: "ps-section-label" }, Lt = { class: "ps-row" }, Rt = { class: "ps-label" }, zt = ["value"], Bt = ["value"], Vt = {
|
|
2359
2204
|
key: 0,
|
|
2360
2205
|
value: -1
|
|
2361
|
-
},
|
|
2206
|
+
}, Ht = { class: "ps-row" }, Ut = { class: "ps-label" }, Wt = ["value"], Gt = { value: "portrait" }, Kt = { value: "landscape" }, qt = { class: "ps-section-label ps-section-label--spaced" }, Jt = { class: "ps-row" }, Yt = { class: "ps-label" }, Xt = { class: "ps-row" }, Zt = { class: "ps-label" }, Qt = { class: "ps-row" }, $t = { class: "ps-label" }, en = { class: "ps-row" }, tn = { class: "ps-label" }, nn = { class: "ps-footer" }, X = 12240, Z = 15840, Q = 1440, rn = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
2362
2207
|
__name: "PageSetupDialog",
|
|
2363
2208
|
props: {
|
|
2364
2209
|
isOpen: { type: Boolean },
|
|
@@ -2366,7 +2211,7 @@ var ne = { install(e, t) {
|
|
|
2366
2211
|
},
|
|
2367
2212
|
emits: ["close", "apply"],
|
|
2368
2213
|
setup(e, { emit: o }) {
|
|
2369
|
-
let { t: s } =
|
|
2214
|
+
let { t: s } = V(), c = [
|
|
2370
2215
|
{
|
|
2371
2216
|
labelKey: "dialogs.pageSetup.pageSizes.letter",
|
|
2372
2217
|
width: 12240,
|
|
@@ -2402,34 +2247,34 @@ var ne = { install(e, t) {
|
|
|
2402
2247
|
width: 10440,
|
|
2403
2248
|
height: 15120
|
|
2404
2249
|
}
|
|
2405
|
-
], l = e, u = o, d =
|
|
2250
|
+
], l = e, u = o, d = m(X), p = m(Z), v = m("portrait"), y = m(1), C = m(1), T = m(1), D = m(1);
|
|
2406
2251
|
function O(e) {
|
|
2407
|
-
return Math.round(e /
|
|
2252
|
+
return Math.round(e / E * 100) / 100;
|
|
2408
2253
|
}
|
|
2409
2254
|
function k(e) {
|
|
2410
|
-
return Math.round((Number(e) || 0) *
|
|
2255
|
+
return Math.round((Number(e) || 0) * E);
|
|
2411
2256
|
}
|
|
2412
2257
|
let A = n(() => {
|
|
2413
|
-
let e = Math.min(d.value,
|
|
2258
|
+
let e = Math.min(d.value, p.value), t = Math.max(d.value, p.value);
|
|
2414
2259
|
return c.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
2415
2260
|
});
|
|
2416
|
-
|
|
2261
|
+
x(() => l.isOpen, (e) => {
|
|
2417
2262
|
if (!e) return;
|
|
2418
2263
|
let t = l.sectionProperties, n = t?.pageWidth || X, r = t?.pageHeight || Z;
|
|
2419
|
-
d.value = n,
|
|
2264
|
+
d.value = n, p.value = r, v.value = t?.orientation || (n > r ? "landscape" : "portrait"), y.value = O(t?.marginTop ?? Q), C.value = O(t?.marginBottom ?? Q), T.value = O(t?.marginLeft ?? Q), D.value = O(t?.marginRight ?? Q);
|
|
2420
2265
|
}, { immediate: !0 });
|
|
2421
2266
|
function j(e) {
|
|
2422
2267
|
let t = Number(e.target.value);
|
|
2423
2268
|
if (t < 0) return;
|
|
2424
2269
|
let n = c[t];
|
|
2425
|
-
|
|
2270
|
+
v.value === "landscape" ? (d.value = n.height, p.value = n.width) : (d.value = n.width, p.value = n.height);
|
|
2426
2271
|
}
|
|
2427
2272
|
function M(e) {
|
|
2428
2273
|
let t = e.target.value;
|
|
2429
|
-
if (t ===
|
|
2430
|
-
|
|
2274
|
+
if (t === v.value) return;
|
|
2275
|
+
v.value = t;
|
|
2431
2276
|
let n = d.value;
|
|
2432
|
-
d.value =
|
|
2277
|
+
d.value = p.value, p.value = n;
|
|
2433
2278
|
}
|
|
2434
2279
|
function N() {
|
|
2435
2280
|
u("close");
|
|
@@ -2437,48 +2282,48 @@ var ne = { install(e, t) {
|
|
|
2437
2282
|
function P() {
|
|
2438
2283
|
u("apply", {
|
|
2439
2284
|
pageWidth: d.value,
|
|
2440
|
-
pageHeight:
|
|
2441
|
-
orientation:
|
|
2285
|
+
pageHeight: p.value,
|
|
2286
|
+
orientation: v.value,
|
|
2442
2287
|
marginTop: k(y.value),
|
|
2443
|
-
marginBottom: k(
|
|
2444
|
-
marginLeft: k(
|
|
2445
|
-
marginRight: k(
|
|
2288
|
+
marginBottom: k(C.value),
|
|
2289
|
+
marginLeft: k(T.value),
|
|
2290
|
+
marginRight: k(D.value)
|
|
2446
2291
|
}), N();
|
|
2447
2292
|
}
|
|
2448
2293
|
function F(e) {
|
|
2449
2294
|
e.key === "Escape" && N(), e.key === "Enter" && P();
|
|
2450
2295
|
}
|
|
2451
|
-
return (n, o) => e.isOpen ? (
|
|
2296
|
+
return (n, o) => e.isOpen ? (f(), i("div", {
|
|
2452
2297
|
key: 0,
|
|
2453
2298
|
class: "ps-overlay",
|
|
2454
|
-
onMousedown:
|
|
2299
|
+
onMousedown: w(N, ["self"]),
|
|
2455
2300
|
onKeydown: F
|
|
2456
2301
|
}, [a("div", {
|
|
2457
2302
|
class: "ps-dialog",
|
|
2458
2303
|
role: "dialog",
|
|
2459
|
-
"aria-label":
|
|
2460
|
-
onMousedown: o[4] ||=
|
|
2304
|
+
"aria-label": _(s)("dialogs.pageSetup.title"),
|
|
2305
|
+
onMousedown: o[4] ||= w(() => {}, ["stop"])
|
|
2461
2306
|
}, [
|
|
2462
|
-
a("div",
|
|
2463
|
-
a("div",
|
|
2464
|
-
a("div",
|
|
2465
|
-
a("div",
|
|
2307
|
+
a("div", Pt, g(_(s)("dialogs.pageSetup.title")), 1),
|
|
2308
|
+
a("div", Ft, [
|
|
2309
|
+
a("div", It, g(_(s)("dialogs.pageSetup.pageSize")), 1),
|
|
2310
|
+
a("div", Lt, [a("label", Rt, g(_(s)("dialogs.pageSetup.sizeLabel")), 1), a("select", {
|
|
2466
2311
|
class: "ps-input",
|
|
2467
2312
|
value: A.value,
|
|
2468
2313
|
onChange: j
|
|
2469
|
-
}, [(
|
|
2314
|
+
}, [(f(), i(t, null, h(c, (e, t) => a("option", {
|
|
2470
2315
|
key: e.labelKey,
|
|
2471
2316
|
value: t
|
|
2472
|
-
}, _(
|
|
2473
|
-
a("div",
|
|
2317
|
+
}, g(_(s)(e.labelKey)), 9, Bt)), 64)), A.value < 0 ? (f(), i("option", Vt, g(_(s)("dialogs.pageSetup.custom")), 1)) : r("", !0)], 40, zt)]),
|
|
2318
|
+
a("div", Ht, [a("label", Ut, g(_(s)("dialogs.pageSetup.orientation")), 1), a("select", {
|
|
2474
2319
|
class: "ps-input",
|
|
2475
|
-
value:
|
|
2320
|
+
value: v.value,
|
|
2476
2321
|
onChange: M
|
|
2477
|
-
}, [a("option",
|
|
2478
|
-
a("div",
|
|
2479
|
-
a("div",
|
|
2480
|
-
a("label",
|
|
2481
|
-
|
|
2322
|
+
}, [a("option", Gt, g(_(s)("dialogs.pageSetup.portrait")), 1), a("option", Kt, g(_(s)("dialogs.pageSetup.landscape")), 1)], 40, Wt)]),
|
|
2323
|
+
a("div", qt, g(_(s)("dialogs.pageSetup.margins")), 1),
|
|
2324
|
+
a("div", Jt, [
|
|
2325
|
+
a("label", Yt, g(_(s)("dialogs.pageSetup.top")), 1),
|
|
2326
|
+
S(a("input", {
|
|
2482
2327
|
class: "ps-input",
|
|
2483
2328
|
type: "number",
|
|
2484
2329
|
min: "0",
|
|
@@ -2486,86 +2331,86 @@ var ne = { install(e, t) {
|
|
|
2486
2331
|
step: "0.1",
|
|
2487
2332
|
"onUpdate:modelValue": o[0] ||= (e) => y.value = e
|
|
2488
2333
|
}, null, 512), [[
|
|
2489
|
-
|
|
2334
|
+
b,
|
|
2490
2335
|
y.value,
|
|
2491
2336
|
void 0,
|
|
2492
2337
|
{ number: !0 }
|
|
2493
2338
|
]]),
|
|
2494
2339
|
o[5] ||= a("span", { class: "ps-unit" }, "in", -1)
|
|
2495
2340
|
]),
|
|
2496
|
-
a("div",
|
|
2497
|
-
a("label",
|
|
2498
|
-
|
|
2341
|
+
a("div", Xt, [
|
|
2342
|
+
a("label", Zt, g(_(s)("dialogs.pageSetup.bottom")), 1),
|
|
2343
|
+
S(a("input", {
|
|
2499
2344
|
class: "ps-input",
|
|
2500
2345
|
type: "number",
|
|
2501
2346
|
min: "0",
|
|
2502
2347
|
max: "10",
|
|
2503
2348
|
step: "0.1",
|
|
2504
|
-
"onUpdate:modelValue": o[1] ||= (e) =>
|
|
2349
|
+
"onUpdate:modelValue": o[1] ||= (e) => C.value = e
|
|
2505
2350
|
}, null, 512), [[
|
|
2506
|
-
|
|
2507
|
-
|
|
2351
|
+
b,
|
|
2352
|
+
C.value,
|
|
2508
2353
|
void 0,
|
|
2509
2354
|
{ number: !0 }
|
|
2510
2355
|
]]),
|
|
2511
2356
|
o[6] ||= a("span", { class: "ps-unit" }, "in", -1)
|
|
2512
2357
|
]),
|
|
2513
|
-
a("div",
|
|
2514
|
-
a("label",
|
|
2515
|
-
|
|
2358
|
+
a("div", Qt, [
|
|
2359
|
+
a("label", $t, g(_(s)("dialogs.pageSetup.left")), 1),
|
|
2360
|
+
S(a("input", {
|
|
2516
2361
|
class: "ps-input",
|
|
2517
2362
|
type: "number",
|
|
2518
2363
|
min: "0",
|
|
2519
2364
|
max: "10",
|
|
2520
2365
|
step: "0.1",
|
|
2521
|
-
"onUpdate:modelValue": o[2] ||= (e) =>
|
|
2366
|
+
"onUpdate:modelValue": o[2] ||= (e) => T.value = e
|
|
2522
2367
|
}, null, 512), [[
|
|
2523
|
-
|
|
2524
|
-
|
|
2368
|
+
b,
|
|
2369
|
+
T.value,
|
|
2525
2370
|
void 0,
|
|
2526
2371
|
{ number: !0 }
|
|
2527
2372
|
]]),
|
|
2528
2373
|
o[7] ||= a("span", { class: "ps-unit" }, "in", -1)
|
|
2529
2374
|
]),
|
|
2530
|
-
a("div",
|
|
2531
|
-
a("label",
|
|
2532
|
-
|
|
2375
|
+
a("div", en, [
|
|
2376
|
+
a("label", tn, g(_(s)("dialogs.pageSetup.right")), 1),
|
|
2377
|
+
S(a("input", {
|
|
2533
2378
|
class: "ps-input",
|
|
2534
2379
|
type: "number",
|
|
2535
2380
|
min: "0",
|
|
2536
2381
|
max: "10",
|
|
2537
2382
|
step: "0.1",
|
|
2538
|
-
"onUpdate:modelValue": o[3] ||= (e) =>
|
|
2383
|
+
"onUpdate:modelValue": o[3] ||= (e) => D.value = e
|
|
2539
2384
|
}, null, 512), [[
|
|
2540
|
-
|
|
2541
|
-
|
|
2385
|
+
b,
|
|
2386
|
+
D.value,
|
|
2542
2387
|
void 0,
|
|
2543
2388
|
{ number: !0 }
|
|
2544
2389
|
]]),
|
|
2545
2390
|
o[8] ||= a("span", { class: "ps-unit" }, "in", -1)
|
|
2546
2391
|
])
|
|
2547
2392
|
]),
|
|
2548
|
-
a("div",
|
|
2393
|
+
a("div", nn, [a("button", {
|
|
2549
2394
|
type: "button",
|
|
2550
2395
|
class: "ps-btn",
|
|
2551
2396
|
onClick: N
|
|
2552
|
-
}, _(
|
|
2397
|
+
}, g(_(s)("common.cancel")), 1), a("button", {
|
|
2553
2398
|
type: "button",
|
|
2554
2399
|
class: "ps-btn ps-btn--primary",
|
|
2555
2400
|
onClick: P
|
|
2556
|
-
}, _(
|
|
2557
|
-
], 40,
|
|
2401
|
+
}, g(_(s)("common.apply")), 1)])
|
|
2402
|
+
], 40, Nt)], 32)) : r("", !0);
|
|
2558
2403
|
}
|
|
2559
|
-
}), [["__scopeId", "data-v-
|
|
2404
|
+
}), [["__scopeId", "data-v-84701763"]]), an = { class: "kbd-dialog__header" }, on = { class: "kbd-dialog__title" }, sn = ["aria-label"], $ = {
|
|
2560
2405
|
key: 0,
|
|
2561
2406
|
class: "kbd-dialog__search"
|
|
2562
|
-
},
|
|
2407
|
+
}, cn = ["placeholder"], ln = { class: "kbd-dialog__body" }, un = { class: "kbd-category" }, dn = { class: "kbd-item__info" }, fn = { class: "kbd-item__name" }, pn = { class: "kbd-item__desc" }, mn = { class: "kbd-item__keys" }, hn = { class: "kbd-badge" }, gn = { class: "kbd-or" }, _n = { class: "kbd-badge" }, vn = {
|
|
2563
2408
|
key: 0,
|
|
2564
2409
|
class: "kbd-dialog__empty"
|
|
2565
|
-
},
|
|
2410
|
+
}, yn = { class: "kbd-dialog__footer" }, bn = {
|
|
2566
2411
|
key: 0,
|
|
2567
2412
|
class: "kbd-badge kbd-badge--small"
|
|
2568
|
-
},
|
|
2413
|
+
}, xn = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
2569
2414
|
__name: "KeyboardShortcutsDialog",
|
|
2570
2415
|
props: {
|
|
2571
2416
|
isOpen: { type: Boolean },
|
|
@@ -2576,17 +2421,17 @@ var ne = { install(e, t) {
|
|
|
2576
2421
|
},
|
|
2577
2422
|
emits: ["close"],
|
|
2578
2423
|
setup(e, { emit: o }) {
|
|
2579
|
-
let { t: s } =
|
|
2424
|
+
let { t: s } = V(), c = e, u = o, d = m(null), p = m(""), v = typeof navigator < "u" && /Mac/.test(navigator.platform);
|
|
2580
2425
|
function y(e) {
|
|
2581
|
-
return
|
|
2426
|
+
return v ? e.replace(/Ctrl/g, "⌘").replace(/Alt/g, "⌥").replace(/Shift/g, "⇧") : e;
|
|
2582
2427
|
}
|
|
2583
|
-
function
|
|
2584
|
-
|
|
2428
|
+
function C() {
|
|
2429
|
+
p.value = "", u("close");
|
|
2585
2430
|
}
|
|
2586
|
-
|
|
2587
|
-
e &&
|
|
2431
|
+
x(() => c.isOpen, (e) => {
|
|
2432
|
+
e && l(() => d.value?.focus());
|
|
2588
2433
|
});
|
|
2589
|
-
let
|
|
2434
|
+
let T = n(() => s("dialogs.keyboardShortcuts.pressEscToClose", { key: "Esc" }).split("Esc")), E = [
|
|
2590
2435
|
{
|
|
2591
2436
|
id: "undo",
|
|
2592
2437
|
nameKey: "dialogs.keyboardShortcuts.shortcuts.undo",
|
|
@@ -2903,7 +2748,7 @@ var ne = { install(e, t) {
|
|
|
2903
2748
|
"Navigation",
|
|
2904
2749
|
"View"
|
|
2905
2750
|
], k = n(() => {
|
|
2906
|
-
let e =
|
|
2751
|
+
let e = p.value.toLowerCase().trim(), t = [];
|
|
2907
2752
|
for (let n of O) {
|
|
2908
2753
|
let r = E.filter((e) => e.category === n);
|
|
2909
2754
|
e && (r = r.filter((t) => {
|
|
@@ -2917,35 +2762,35 @@ var ne = { install(e, t) {
|
|
|
2917
2762
|
}
|
|
2918
2763
|
return t;
|
|
2919
2764
|
});
|
|
2920
|
-
return (n, o) => e.isOpen ? (
|
|
2765
|
+
return (n, o) => e.isOpen ? (f(), i("div", {
|
|
2921
2766
|
key: 0,
|
|
2922
2767
|
class: "kbd-overlay",
|
|
2923
|
-
onMousedown:
|
|
2768
|
+
onMousedown: w(C, ["self"])
|
|
2924
2769
|
}, [a("div", {
|
|
2925
2770
|
class: "kbd-dialog",
|
|
2926
|
-
onMousedown: o[1] ||=
|
|
2927
|
-
onKeydown: o[2] ||=
|
|
2771
|
+
onMousedown: o[1] ||= w(() => {}, ["stop"]),
|
|
2772
|
+
onKeydown: o[2] ||= w(() => {}, ["stop"])
|
|
2928
2773
|
}, [
|
|
2929
|
-
a("div",
|
|
2774
|
+
a("div", an, [a("span", on, g(_(s)("dialogs.keyboardShortcuts.ariaLabel")), 1), a("button", {
|
|
2930
2775
|
class: "kbd-dialog__close",
|
|
2931
|
-
"aria-label":
|
|
2932
|
-
onClick:
|
|
2933
|
-
}, " ✕ ", 8,
|
|
2934
|
-
e.showSearch ? (
|
|
2776
|
+
"aria-label": _(s)("common.closeDialog"),
|
|
2777
|
+
onClick: C
|
|
2778
|
+
}, " ✕ ", 8, sn)]),
|
|
2779
|
+
e.showSearch ? (f(), i("div", $, [S(a("input", {
|
|
2935
2780
|
ref_key: "searchInput",
|
|
2936
2781
|
ref: d,
|
|
2937
|
-
"onUpdate:modelValue": o[0] ||= (e) =>
|
|
2782
|
+
"onUpdate:modelValue": o[0] ||= (e) => p.value = e,
|
|
2938
2783
|
class: "kbd-dialog__search-input",
|
|
2939
|
-
placeholder:
|
|
2784
|
+
placeholder: _(s)("dialogs.keyboardShortcuts.searchPlaceholder"),
|
|
2940
2785
|
type: "text"
|
|
2941
|
-
}, null, 8,
|
|
2942
|
-
a("div",
|
|
2786
|
+
}, null, 8, cn), [[b, p.value]])])) : r("", !0),
|
|
2787
|
+
a("div", ln, [(f(!0), i(t, null, h(k.value, (e) => (f(), i(t, { key: e.name }, [a("div", un, g(_(s)(e.labelKey).toUpperCase()), 1), (f(!0), i(t, null, h(e.shortcuts, (e) => (f(), i("div", {
|
|
2943
2788
|
key: e.id,
|
|
2944
2789
|
class: "kbd-item"
|
|
2945
|
-
}, [a("div",
|
|
2946
|
-
a("div",
|
|
2790
|
+
}, [a("div", dn, [a("span", fn, g(e.nameKey ? _(s)(e.nameKey) : e.name), 1), a("span", pn, g(e.descriptionKey ? _(s)(e.descriptionKey) : e.description), 1)]), a("div", mn, [a("kbd", hn, g(y(e.keys)), 1), e.altKeys ? (f(), i(t, { key: 0 }, [a("span", gn, g(_(s)("dialogs.keyboardShortcuts.or")), 1), a("kbd", _n, g(y(e.altKeys)), 1)], 64)) : r("", !0)])]))), 128))], 64))), 128)), k.value.length === 0 ? (f(), i("div", vn, g(_(s)("dialogs.keyboardShortcuts.noResults", { query: p.value })), 1)) : r("", !0)]),
|
|
2791
|
+
a("div", yn, [(f(!0), i(t, null, h(T.value, (e, n) => (f(), i(t, { key: n }, [a("span", null, g(e), 1), n < T.value.length - 1 ? (f(), i("kbd", bn, "Esc")) : r("", !0)], 64))), 128))])
|
|
2947
2792
|
], 32)], 32)) : r("", !0);
|
|
2948
2793
|
}
|
|
2949
|
-
}), [["__scopeId", "data-v-
|
|
2794
|
+
}), [["__scopeId", "data-v-06644bb3"]]);
|
|
2950
2795
|
//#endregion
|
|
2951
|
-
export {
|
|
2796
|
+
export { Le as a, ne as c, j as d, A as f, nt as i, ee as l, rn as n, ue as o, Mt as r, te as s, xn as t, V as u };
|