kindy-editor 1.0.0 → 1.0.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 +165 -101
- package/dist/kindy-editor.cjs +13 -13
- package/dist/kindy-editor.css +1 -1
- package/dist/kindy-editor.iife.js +14 -14
- package/dist/kindy-editor.js +188 -171
- package/package.json +1 -1
package/dist/kindy-editor.js
CHANGED
|
@@ -3,16 +3,16 @@ var K4 = (t, e, n) => e in t ? W4(t, e, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Rg = (t, e, n) => K4(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import "./kindy-editor.css";
|
|
5
5
|
import * as U4 from "vue";
|
|
6
|
-
import { getCurrentInstance as Sn, inject as ne, computed as O, h as Nt, ref as W, provide as Ht, watch as ve, onMounted as nt, onBeforeUnmount as Ut, readonly as Zk, defineComponent as ye, nextTick as et, createVNode as p, isVNode as pn, Comment as Nu, Fragment as Me, toRefs as at, Teleport as qa, mergeProps as Fe, reactive as On, render as po, onUnmounted as Za, onActivated as Y4, onDeactivated as q4, Text as Jk, onUpdated as Wo, withDirectives as
|
|
7
|
-
import { useStorage as
|
|
6
|
+
import { getCurrentInstance as Sn, inject as ne, computed as O, h as Nt, ref as W, provide as Ht, watch as ve, onMounted as nt, onBeforeUnmount as Ut, readonly as Zk, defineComponent as ye, nextTick as et, createVNode as p, isVNode as pn, Comment as Nu, Fragment as Me, toRefs as at, Teleport as qa, mergeProps as Fe, reactive as On, render as po, onUnmounted as Za, onActivated as Y4, onDeactivated as q4, Text as Jk, onUpdated as Wo, withDirectives as yr, vShow as Yr, Transition as Zc, watchEffect as Km, createTextVNode as Ye, onBeforeMount as Qk, unref as k, getCurrentScope as G4, onScopeDispose as X4, TransitionGroup as Z4, resolveDirective as e_, shallowRef as yf, openBlock as N, createElementBlock as de, createElementVNode as X, renderList as bt, toDisplayString as se, normalizeClass as ht, createBlock as J, createCommentVNode as oe, resolveDynamicComponent as t_, withCtx as ee, renderSlot as Gt, isRef as it, normalizeStyle as Rt, useAttrs as J4, withModifiers as ia, normalizeProps as Lo, guardReactiveProps as Ro, shallowReactive as Q4, createSlots as Cf, createApp as e5 } from "vue";
|
|
7
|
+
import { useStorage as gr, useDebounceFn as mc, useFullscreen as t5, useTimeAgoIntl as n5, onClickOutside as Ko, useClipboard as n_, useFileDialog as r5, useResizeObserver as a5, useDateFormat as o5, useNow as l5, useOnline as i5, useTimestamp as u5, isDefined as Ng } from "@vueuse/core";
|
|
8
8
|
import { isRecord as Va, isString as Tr, isFunction as Zi, isAsyncFunction as Zs, isNumber as li, isBoolean as Bg } from "@tool-belt/type-predicates";
|
|
9
9
|
import { createI18n as s5 } from "vue-i18n";
|
|
10
10
|
import kf from "hotkeys-js";
|
|
11
|
-
import { NodeSelection as ya, TextSelection as va, PluginKey as Er, Plugin as
|
|
11
|
+
import { NodeSelection as ya, TextSelection as va, PluginKey as Er, Plugin as pr, AllSelection as c5 } from "@tiptap/pm/state";
|
|
12
12
|
import Um from "pretty-bytes";
|
|
13
13
|
import d5 from "cropperjs";
|
|
14
|
-
import { Node as
|
|
15
|
-
import { nodeViewProps as Fr, NodeViewWrapper as Lr, VueNodeViewRenderer as
|
|
14
|
+
import { Node as Cr, mergeAttributes as Fn, Mark as Ym, wrappingInputRule as v5, Extension as jr, nodeInputRule as f5, isNodeEmpty as r_ } from "@tiptap/core";
|
|
15
|
+
import { nodeViewProps as Fr, NodeViewWrapper as Lr, VueNodeViewRenderer as kr, NodeViewContent as Bu, VueRenderer as m5, posToDOMRect as h5, Editor as g5, EditorContent as p5 } from "@tiptap/vue-3";
|
|
16
16
|
import b5 from "jsbarcode";
|
|
17
17
|
import { qrcode as y5 } from "pure-svg-code";
|
|
18
18
|
import C5 from "smooth-signature";
|
|
@@ -982,7 +982,7 @@ function J_(t) {
|
|
|
982
982
|
return _P(iT($P(e).replace(sT, "")), t, "");
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
var
|
|
985
|
+
var br = J_(function(t, e, n) {
|
|
986
986
|
return e = e.toLowerCase(), t + (n ? kP(e) : e);
|
|
987
987
|
}), cT = Math.ceil, dT = Math.max;
|
|
988
988
|
function dd(t, e, n) {
|
|
@@ -3122,7 +3122,7 @@ var wD = Object.prototype.hasOwnProperty, Rf = function(e, n) {
|
|
|
3122
3122
|
return Rf(e, n) ? e[n] : void 0;
|
|
3123
3123
|
};
|
|
3124
3124
|
function hs(t, e, n) {
|
|
3125
|
-
var r, a, o, l, i = (r = (a = t.slots)[
|
|
3125
|
+
var r, a, o, l, i = (r = (a = t.slots)[br(e)]) === null || r === void 0 ? void 0 : r.call(a, n);
|
|
3126
3126
|
return i && i.filter(function(u) {
|
|
3127
3127
|
return !jp(u);
|
|
3128
3128
|
}).length || (i = (o = (l = t.slots)[Ur(e)]) === null || o === void 0 ? void 0 : o.call(l, n), i && i.filter(function(u) {
|
|
@@ -3139,16 +3139,16 @@ function Lp(t) {
|
|
|
3139
3139
|
}
|
|
3140
3140
|
function xD(t, e) {
|
|
3141
3141
|
var n = (t == null ? void 0 : t.vnode.props) || {};
|
|
3142
|
-
return Rf(n,
|
|
3142
|
+
return Rf(n, br(e)) || Rf(n, Ur(e));
|
|
3143
3143
|
}
|
|
3144
3144
|
var Tt = function() {
|
|
3145
3145
|
var e = Sn();
|
|
3146
3146
|
return function(n, r) {
|
|
3147
|
-
var a = Nw(r), o = hh(r), l = _D(r), i = e.slots[
|
|
3147
|
+
var a = Nw(r), o = hh(r), l = _D(r), i = e.slots[br(n)] || e.slots[Ur(n)];
|
|
3148
3148
|
if (l && i)
|
|
3149
3149
|
return hs(e, n, a);
|
|
3150
3150
|
if (xD(e, n)) {
|
|
3151
|
-
var u, s = e.props[
|
|
3151
|
+
var u, s = e.props[br(n)] || e.props[Ur(n)], c = (u = e.type.props[n]) === null || u === void 0 ? void 0 : u.type;
|
|
3152
3152
|
if ((c == null ? void 0 : c.length) > 1 && c.includes(Boolean) && c.includes(Function) && s === "" && !i)
|
|
3153
3153
|
return o;
|
|
3154
3154
|
if (s === !1 || s === null) return;
|
|
@@ -3160,7 +3160,7 @@ var Tt = function() {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
if (i)
|
|
3162
3162
|
return hs(e, n, a);
|
|
3163
|
-
var d = e.props[
|
|
3163
|
+
var d = e.props[br(n)] || e.props[Ur(n)];
|
|
3164
3164
|
return d === !1 || d === null ? void 0 : d === !0 ? o : ze(d) ? d(Nt, a) : d;
|
|
3165
3165
|
};
|
|
3166
3166
|
}, qo = function() {
|
|
@@ -9777,7 +9777,7 @@ var yj = ye({
|
|
|
9777
9777
|
});
|
|
9778
9778
|
}
|
|
9779
9779
|
return function() {
|
|
9780
|
-
var Z = d("content"), te = e.hideEmptyPopup && ["", void 0, null].includes(Z), ae = c.value || !e.destroyOnClose ?
|
|
9780
|
+
var Z = d("content"), te = e.hideEmptyPopup && ["", void 0, null].includes(Z), ae = c.value || !e.destroyOnClose ? yr(p("div", Fe(Q(Q({}, v2, _), Wf, I == null ? void 0 : I.id), {
|
|
9781
9781
|
class: [T.value, e.overlayClassName],
|
|
9782
9782
|
ref: function(ue) {
|
|
9783
9783
|
return C.value = ue;
|
|
@@ -10294,7 +10294,7 @@ var nc = function(e) {
|
|
|
10294
10294
|
return !xt(T.children) && ["TDropdownMenu", "TDropdownItem"].includes((M = T.type) === null || M === void 0 ? void 0 : M.name);
|
|
10295
10295
|
}), I = Object.keys(u.props || {}).reduce(function(T, M) {
|
|
10296
10296
|
var $;
|
|
10297
|
-
return u.props[M] === "" && (($ = u.type) === null || $ === void 0 ? void 0 : $.name) === "TDropdownItem" && ["active", "divider", "disabled"].includes(M) ? T[
|
|
10297
|
+
return u.props[M] === "" && (($ = u.type) === null || $ === void 0 ? void 0 : $.name) === "TDropdownItem" && ["active", "divider", "disabled"].includes(M) ? T[br(M)] = !0 : T[br(M)] = u.props[M], T;
|
|
10298
10298
|
}, {});
|
|
10299
10299
|
return Av(Av(Av({
|
|
10300
10300
|
content: C || x || S
|
|
@@ -10980,7 +10980,7 @@ var Fj = ye({
|
|
|
10980
10980
|
onMousedown: P.onClearIconMousedown
|
|
10981
10981
|
}, null));
|
|
10982
10982
|
var ge = [d.value, e.inputClass, Q(Q(Q(Q(Q(Q(Q(Q(Q(Q({}, b.value[e.size], e.size !== "medium"), g.value.disabled, v.value), g.value.focused, v.value ? !1 : M.value), "".concat(y.value, "-is-").concat(x.value), x.value && x.value !== "default"), "".concat(y.value, "-align-").concat(e.align), e.align !== "left"), "".concat(y.value, "-is-readonly"), c.value), "".concat(d.value, "--prefix"), H || ue), "".concat(d.value, "--suffix"), G || ce), "".concat(d.value, "--borderless"), e.borderless), "".concat(d.value, "--focused"), M.value)], xe = C("tips"), Ue = [f.value, "".concat(y.value, "-tips"), "".concat(y.value, "-is-").concat(x.value || "default")];
|
|
10983
|
-
return
|
|
10983
|
+
return yr(p("div", {
|
|
10984
10984
|
class: U.value
|
|
10985
10985
|
}, [p("div", {
|
|
10986
10986
|
class: ge,
|
|
@@ -17509,7 +17509,7 @@ var XF = /* @__PURE__ */ (function() {
|
|
|
17509
17509
|
}, {
|
|
17510
17510
|
key: "emit",
|
|
17511
17511
|
value: function(n, r) {
|
|
17512
|
-
var a = this.config, o = this.emitter, l =
|
|
17512
|
+
var a = this.config, o = this.emitter, l = br("on-".concat(n)), i = a[l];
|
|
17513
17513
|
ze(i) && i(r), o.emit(n, r);
|
|
17514
17514
|
}
|
|
17515
17515
|
}, {
|
|
@@ -25622,7 +25622,7 @@ function Z9(t) {
|
|
|
25622
25622
|
return t;
|
|
25623
25623
|
}
|
|
25624
25624
|
function ei(t, e, n) {
|
|
25625
|
-
var r =
|
|
25625
|
+
var r = br("on-".concat(n));
|
|
25626
25626
|
n.replace(/^on/, "").toLowerCase();
|
|
25627
25627
|
for (var a = arguments.length, o = new Array(a > 3 ? a - 3 : 0), l = 3; l < a; l++)
|
|
25628
25628
|
o[l - 3] = arguments[l];
|
|
@@ -29751,7 +29751,7 @@ var $x = ye({
|
|
|
29751
29751
|
return p(Me, null, [q(), U(), !!e.footer && z()]);
|
|
29752
29752
|
};
|
|
29753
29753
|
return function() {
|
|
29754
|
-
return
|
|
29754
|
+
return yr(p("div", {
|
|
29755
29755
|
key: "dialog",
|
|
29756
29756
|
ref: a,
|
|
29757
29757
|
class: j.value,
|
|
@@ -29952,7 +29952,7 @@ var _N = 1, Ix = ye({
|
|
|
29952
29952
|
onAfterLeave: U
|
|
29953
29953
|
}, {
|
|
29954
29954
|
default: function() {
|
|
29955
|
-
return [R.value &&
|
|
29955
|
+
return [R.value && yr(p("div", Fe({
|
|
29956
29956
|
class: te,
|
|
29957
29957
|
style: Z
|
|
29958
29958
|
}, n.attrs), [G]), [[Yr, e.visible]])];
|
|
@@ -30652,7 +30652,7 @@ var MN = function(e) {
|
|
|
30652
30652
|
default: function() {
|
|
30653
30653
|
return [p(Zc, null, {
|
|
30654
30654
|
default: function() {
|
|
30655
|
-
return [(S.value || !_.value) &&
|
|
30655
|
+
return [(S.value || !_.value) && yr(p("div", {
|
|
30656
30656
|
ref: be,
|
|
30657
30657
|
class: M.value,
|
|
30658
30658
|
style: {
|
|
@@ -32333,7 +32333,7 @@ var Hx = ["bordered", "rowKey", "rowClassName", "rowAttributes", "loading", "emp
|
|
|
32333
32333
|
} : {}
|
|
32334
32334
|
}, [a("empty") || v(d.value.empty)])])]);
|
|
32335
32335
|
}, I = function(B, V) {
|
|
32336
|
-
var q =
|
|
32336
|
+
var q = br(V), U = a(q);
|
|
32337
32337
|
if (["", null, void 0, !1].includes(U)) return null;
|
|
32338
32338
|
var z = e.isWidthOverflow && i.value.find(function(Y) {
|
|
32339
32339
|
return Y.fixed === "left";
|
|
@@ -33053,7 +33053,7 @@ var Kx = ye({
|
|
|
33053
33053
|
}), nt(function() {
|
|
33054
33054
|
zn(), ke(K.value), Xe(l.value);
|
|
33055
33055
|
});
|
|
33056
|
-
var
|
|
33056
|
+
var vr = function() {
|
|
33057
33057
|
e.activeRowType && _t(), Et.value && ot();
|
|
33058
33058
|
}, Jt = function() {
|
|
33059
33059
|
e.activeRowType && wt(), Et.value && Kt();
|
|
@@ -33088,7 +33088,7 @@ var Kx = ye({
|
|
|
33088
33088
|
else {
|
|
33089
33089
|
var Zn, Vn, Hn = (Zn = u.value) === null || Zn === void 0 ? void 0 : Zn.$el, _n = Hn == null || (Vn = Hn.children) === null || Vn === void 0 ? void 0 : Vn[on];
|
|
33090
33090
|
if (_n) {
|
|
33091
|
-
var Ln, Rn, wr = _n.offsetTop,
|
|
33091
|
+
var Ln, Rn, wr = _n.offsetTop, fr = K.value.scrollTop, ea = wr - fr - ((Ln = Vt.top) !== null && Ln !== void 0 ? Ln : 0);
|
|
33092
33092
|
K.value.scrollBy({
|
|
33093
33093
|
top: ea,
|
|
33094
33094
|
behavior: (Rn = Vt.behavior) !== null && Rn !== void 0 ? Rn : "auto"
|
|
@@ -33108,7 +33108,7 @@ var Kx = ye({
|
|
|
33108
33108
|
}, null);
|
|
33109
33109
|
var _n = We.value ? Le.value : e.data, Ln = (M == null ? void 0 : M.value.leafColumns) || e.columns, Rn = (Bt = e.allowResizeColumnWidth) !== null && Bt !== void 0 ? Bt : e.resizable;
|
|
33110
33110
|
Rn && e.tableLayout === "auto" && zt.warn("Table", "table-layout can not be `auto`, cause you are using column resizable, set `table-layout: fixed` please.");
|
|
33111
|
-
var wr = e.tableLayout === "fixed" && Y.value ? "100px" : void 0,
|
|
33111
|
+
var wr = e.tableLayout === "fixed" && Y.value ? "100px" : void 0, fr = function() {
|
|
33112
33112
|
var ss = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
33113
33113
|
return p("colgroup", null, [Ln.map(function(el) {
|
|
33114
33114
|
var cs = {
|
|
@@ -33187,10 +33187,10 @@ var Kx = ye({
|
|
|
33187
33187
|
height: "".concat(ln.value, "px"),
|
|
33188
33188
|
opacity: yn
|
|
33189
33189
|
};
|
|
33190
|
-
}),
|
|
33190
|
+
}), mr = e.bordered ? 1 : 0, Oo = !!((e.headerAffixedTop || an.isVirtualScroll.value) && U.value) && p("div", {
|
|
33191
33191
|
ref: me,
|
|
33192
33192
|
style: {
|
|
33193
|
-
width: "".concat(U.value -
|
|
33193
|
+
width: "".concat(U.value - mr, "px"),
|
|
33194
33194
|
opacity: Number(Pe.value)
|
|
33195
33195
|
},
|
|
33196
33196
|
class: ["scrollbar", Q({}, h.affixedHeaderElm, e.headerAffixedTop || an.isVirtualScroll.value)]
|
|
@@ -33199,7 +33199,7 @@ var Kx = ye({
|
|
|
33199
33199
|
style: Jn(Jn({}, S.value), {}, {
|
|
33200
33200
|
width: "".concat(z.value, "px")
|
|
33201
33201
|
})
|
|
33202
|
-
}, [
|
|
33202
|
+
}, [fr(!0), p(dC, pe, n.slots)])]), _a = p("div", {
|
|
33203
33203
|
class: h.affixedHeaderWrap,
|
|
33204
33204
|
style: un.value
|
|
33205
33205
|
}, [Oo]), Rl = Y.value ? q.value : 0;
|
|
@@ -33218,7 +33218,7 @@ var Kx = ye({
|
|
|
33218
33218
|
return [p("div", {
|
|
33219
33219
|
ref: Ie,
|
|
33220
33220
|
style: {
|
|
33221
|
-
width: "".concat(U.value -
|
|
33221
|
+
width: "".concat(U.value - mr, "px"),
|
|
33222
33222
|
opacity: Number(we.value)
|
|
33223
33223
|
},
|
|
33224
33224
|
class: ["scrollbar", Q({}, h.affixedFooterElm, e.footerAffixedBottom || an.isVirtualScroll.value)]
|
|
@@ -33227,7 +33227,7 @@ var Kx = ye({
|
|
|
33227
33227
|
style: Jn(Jn({}, S.value), {}, {
|
|
33228
33228
|
width: "".concat(z.value, "px")
|
|
33229
33229
|
})
|
|
33230
|
-
}, [
|
|
33230
|
+
}, [fr(!0), p(mC, {
|
|
33231
33231
|
rowKey: e.rowKey,
|
|
33232
33232
|
isFixedHeader: R.value,
|
|
33233
33233
|
rowAndColFixedPosition: te.value,
|
|
@@ -33283,7 +33283,7 @@ var Kx = ye({
|
|
|
33283
33283
|
style: Jn(Jn({}, S.value), {}, {
|
|
33284
33284
|
width: e.resizable && Y.value && z.value ? "".concat(z.value, "px") : S.value.width
|
|
33285
33285
|
})
|
|
33286
|
-
}, [
|
|
33286
|
+
}, [fr(!1), e.showHeader && p(dC, Jn(Jn({}, pe), {}, {
|
|
33287
33287
|
thWidthList: Rn ? G.value : {}
|
|
33288
33288
|
}), n.slots), p(tB, Fe({
|
|
33289
33289
|
ref: u
|
|
@@ -33320,7 +33320,7 @@ var Kx = ye({
|
|
|
33320
33320
|
ref: l,
|
|
33321
33321
|
tabindex: mn.value,
|
|
33322
33322
|
class: gt.value,
|
|
33323
|
-
onFocus:
|
|
33323
|
+
onFocus: vr,
|
|
33324
33324
|
onBlur: Jt
|
|
33325
33325
|
}, [!!Fg && p("div", {
|
|
33326
33326
|
class: h.topContent
|
|
@@ -35105,7 +35105,7 @@ var DB = ["evt"], xr = function(e, n) {
|
|
|
35105
35105
|
Io = !1;
|
|
35106
35106
|
},
|
|
35107
35107
|
dispatchSortableEvent: function(i) {
|
|
35108
|
-
|
|
35108
|
+
hr({
|
|
35109
35109
|
sortable: n,
|
|
35110
35110
|
name: i,
|
|
35111
35111
|
originalEvent: a
|
|
@@ -35113,7 +35113,7 @@ var DB = ["evt"], xr = function(e, n) {
|
|
|
35113
35113
|
}
|
|
35114
35114
|
}, o));
|
|
35115
35115
|
};
|
|
35116
|
-
function
|
|
35116
|
+
function hr(t) {
|
|
35117
35117
|
AB(Xa({
|
|
35118
35118
|
putSortable: nr,
|
|
35119
35119
|
cloneEl: jn,
|
|
@@ -35272,7 +35272,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35272
35272
|
if (WB(r), !Qe && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || a.disabled) && !s.isContentEditable && !(!this.nativeDraggable && mu && u && u.tagName.toUpperCase() === "SELECT") && (u = Ta(u, a.draggable, r, !1), !(u && u.animated) && ic !== u)) {
|
|
35273
35273
|
if (ai = la(u), gu = la(u, a.draggable), typeof c == "function") {
|
|
35274
35274
|
if (c.call(this, e, u, this)) {
|
|
35275
|
-
|
|
35275
|
+
hr({
|
|
35276
35276
|
sortable: n,
|
|
35277
35277
|
rootEl: s,
|
|
35278
35278
|
name: "filter",
|
|
@@ -35286,7 +35286,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35286
35286
|
}
|
|
35287
35287
|
} else if (c && (c = c.split(",").some(function(v) {
|
|
35288
35288
|
if (v = Ta(s, v.trim(), r, !1), v)
|
|
35289
|
-
return
|
|
35289
|
+
return hr({
|
|
35290
35290
|
sortable: n,
|
|
35291
35291
|
rootEl: v,
|
|
35292
35292
|
name: "filter",
|
|
@@ -35319,7 +35319,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35319
35319
|
a._onDrop();
|
|
35320
35320
|
return;
|
|
35321
35321
|
}
|
|
35322
|
-
a._disableDelayedDragEvents(), !OC && a.nativeDraggable && (Qe.draggable = !0), a._triggerDragStart(e, n),
|
|
35322
|
+
a._disableDelayedDragEvents(), !OC && a.nativeDraggable && (Qe.draggable = !0), a._triggerDragStart(e, n), hr({
|
|
35323
35323
|
sortable: a,
|
|
35324
35324
|
name: "choose",
|
|
35325
35325
|
originalEvent: e
|
|
@@ -35364,7 +35364,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35364
35364
|
evt: n
|
|
35365
35365
|
}), this.nativeDraggable && nn(document, "dragover", FB);
|
|
35366
35366
|
var r = this.options;
|
|
35367
|
-
!e && Vr(Qe, r.dragClass, !1), Vr(Qe, r.ghostClass, !0), St.active = this, e && this._appendGhost(),
|
|
35367
|
+
!e && Vr(Qe, r.dragClass, !1), Vr(Qe, r.ghostClass, !0), St.active = this, e && this._appendGhost(), hr({
|
|
35368
35368
|
sortable: this,
|
|
35369
35369
|
name: "start",
|
|
35370
35370
|
originalEvent: n
|
|
@@ -35437,7 +35437,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35437
35437
|
return;
|
|
35438
35438
|
}
|
|
35439
35439
|
xr("setupClone", this), St.eventCanceled || (jn = tS(Qe), jn.removeAttribute("id"), jn.draggable = !1, jn.style["will-change"] = "", this._hideClone(), Vr(jn, this.options.chosenClass, !1), St.clone = jn), r.cloneId = sc(function() {
|
|
35440
|
-
xr("clone", r), !St.eventCanceled && (r.options.removeCloneOnHide || En.insertBefore(jn, Qe), r._hideClone(),
|
|
35440
|
+
xr("clone", r), !St.eventCanceled && (r.options.removeCloneOnHide || En.insertBefore(jn, Qe), r._hideClone(), hr({
|
|
35441
35441
|
sortable: r,
|
|
35442
35442
|
name: "clone"
|
|
35443
35443
|
}));
|
|
@@ -35476,7 +35476,7 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35476
35476
|
}), f !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (r === Qe && !Qe.animated || r === n && !r.animated) && (ql = null), !i.dragoverBubble && !e.rootEl && r !== document && (Qe.parentNode[Mr]._isOutsideThisEl(e.target), !A && ol(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
|
|
35477
35477
|
}
|
|
35478
35478
|
function C() {
|
|
35479
|
-
Hr = la(Qe), Ao = la(Qe, i.draggable),
|
|
35479
|
+
Hr = la(Qe), Ao = la(Qe, i.draggable), hr({
|
|
35480
35480
|
sortable: f,
|
|
35481
35481
|
name: "change",
|
|
35482
35482
|
toEl: n,
|
|
@@ -35545,46 +35545,46 @@ St.prototype = /** @lends Sortable.prototype */
|
|
|
35545
35545
|
this._nulling();
|
|
35546
35546
|
return;
|
|
35547
35547
|
}
|
|
35548
|
-
ni = !1, js = !1, bu = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), wm(this.cloneId), wm(this._dragStartId), this.nativeDraggable && (Qt(document, "drop", this), Qt(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), mu && Pt(document.body, "user-select", ""), Pt(Qe, "transform", ""), e && (tu && (e.cancelable && e.preventDefault(), !r.dropBubble && e.stopPropagation()), jt && jt.parentNode && jt.parentNode.removeChild(jt), (En === Nn || nr && nr.lastPutMode !== "clone") && jn && jn.parentNode && jn.parentNode.removeChild(jn), Qe && (this.nativeDraggable && Qt(Qe, "dragend", this), Jv(Qe), Qe.style["will-change"] = "", tu && !ni && Vr(Qe, nr ? nr.options.ghostClass : this.options.ghostClass, !1), Vr(Qe, this.options.chosenClass, !1),
|
|
35548
|
+
ni = !1, js = !1, bu = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), wm(this.cloneId), wm(this._dragStartId), this.nativeDraggable && (Qt(document, "drop", this), Qt(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), mu && Pt(document.body, "user-select", ""), Pt(Qe, "transform", ""), e && (tu && (e.cancelable && e.preventDefault(), !r.dropBubble && e.stopPropagation()), jt && jt.parentNode && jt.parentNode.removeChild(jt), (En === Nn || nr && nr.lastPutMode !== "clone") && jn && jn.parentNode && jn.parentNode.removeChild(jn), Qe && (this.nativeDraggable && Qt(Qe, "dragend", this), Jv(Qe), Qe.style["will-change"] = "", tu && !ni && Vr(Qe, nr ? nr.options.ghostClass : this.options.ghostClass, !1), Vr(Qe, this.options.chosenClass, !1), hr({
|
|
35549
35549
|
sortable: this,
|
|
35550
35550
|
name: "unchoose",
|
|
35551
35551
|
toEl: Nn,
|
|
35552
35552
|
newIndex: null,
|
|
35553
35553
|
newDraggableIndex: null,
|
|
35554
35554
|
originalEvent: e
|
|
35555
|
-
}), En !== Nn ? (Hr >= 0 && (
|
|
35555
|
+
}), En !== Nn ? (Hr >= 0 && (hr({
|
|
35556
35556
|
rootEl: Nn,
|
|
35557
35557
|
name: "add",
|
|
35558
35558
|
toEl: Nn,
|
|
35559
35559
|
fromEl: En,
|
|
35560
35560
|
originalEvent: e
|
|
35561
|
-
}),
|
|
35561
|
+
}), hr({
|
|
35562
35562
|
sortable: this,
|
|
35563
35563
|
name: "remove",
|
|
35564
35564
|
toEl: Nn,
|
|
35565
35565
|
originalEvent: e
|
|
35566
|
-
}),
|
|
35566
|
+
}), hr({
|
|
35567
35567
|
rootEl: Nn,
|
|
35568
35568
|
name: "sort",
|
|
35569
35569
|
toEl: Nn,
|
|
35570
35570
|
fromEl: En,
|
|
35571
35571
|
originalEvent: e
|
|
35572
|
-
}),
|
|
35572
|
+
}), hr({
|
|
35573
35573
|
sortable: this,
|
|
35574
35574
|
name: "sort",
|
|
35575
35575
|
toEl: Nn,
|
|
35576
35576
|
originalEvent: e
|
|
35577
|
-
})), nr && nr.save()) : Hr !== ai && Hr >= 0 && (
|
|
35577
|
+
})), nr && nr.save()) : Hr !== ai && Hr >= 0 && (hr({
|
|
35578
35578
|
sortable: this,
|
|
35579
35579
|
name: "update",
|
|
35580
35580
|
toEl: Nn,
|
|
35581
35581
|
originalEvent: e
|
|
35582
|
-
}),
|
|
35582
|
+
}), hr({
|
|
35583
35583
|
sortable: this,
|
|
35584
35584
|
name: "sort",
|
|
35585
35585
|
toEl: Nn,
|
|
35586
35586
|
originalEvent: e
|
|
35587
|
-
})), St.active && ((Hr == null || Hr === -1) && (Hr = ai, Ao = gu),
|
|
35587
|
+
})), St.active && ((Hr == null || Hr === -1) && (Hr = ai, Ao = gu), hr({
|
|
35588
35588
|
sortable: this,
|
|
35589
35589
|
name: "end",
|
|
35590
35590
|
toEl: Nn,
|
|
@@ -36674,7 +36674,7 @@ var ZB = ["hideSortTips", "dragSort", "defaultExpandedRowKeys", "defaultSelected
|
|
|
36674
36674
|
Le(mn, ot.row, Q({}, ot.col.colKey, ot.value));
|
|
36675
36675
|
}, ct = function(ot) {
|
|
36676
36676
|
for (var Kt = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, mn = [], kn = function() {
|
|
36677
|
-
var Bn, _r, zn, ir,
|
|
36677
|
+
var Bn, _r, zn, ir, vr, Jt = no({}, ot[At]), Ja = ((Bn = Jt.children) === null || Bn === void 0 ? void 0 : Bn.length) || ((_r = S.value) === null || _r === void 0 ? void 0 : _r.includes(Jt.colKey));
|
|
36678
36678
|
if (!Ja && (e.columnController || e.displayColumns || e.defaultDisplayColumns) && !Kt) return 1;
|
|
36679
36679
|
Jt = q(Jt);
|
|
36680
36680
|
var ka = e.sort;
|
|
@@ -36687,8 +36687,8 @@ var ZB = ["hideSortTips", "dragSort", "defaultExpandedRowKeys", "defaultSelected
|
|
|
36687
36687
|
if (Jt.sorter || Jt.filter) {
|
|
36688
36688
|
var Vt = Id(n.slots, Jt, At), on = Jt, bn = on.ellipsisTitle;
|
|
36689
36689
|
Jt.title = function(Hn, _n) {
|
|
36690
|
-
var Ln, Rn = Jt.sorter ? E(_n) : null, wr = Jt.filter ? G(_n) : null,
|
|
36691
|
-
return Ae([Vt, Rn, wr], _n.col, _n.colIndex, bn,
|
|
36690
|
+
var Ln, Rn = Jt.sorter ? E(_n) : null, wr = Jt.filter ? G(_n) : null, fr = (Ln = i.value) === null || Ln === void 0 ? void 0 : Ln.tableContentRef;
|
|
36691
|
+
return Ae([Vt, Rn, wr], _n.col, _n.colIndex, bn, fr, {
|
|
36692
36692
|
classPrefix: c,
|
|
36693
36693
|
ellipsisOverlayClassName: C.value !== "medium" ? y[C.value] : ""
|
|
36694
36694
|
});
|
|
@@ -36711,7 +36711,7 @@ var ZB = ["hideSortTips", "dragSort", "defaultExpandedRowKeys", "defaultSelected
|
|
|
36711
36711
|
if (e.editableRowKeys) {
|
|
36712
36712
|
var Rn, wr = $e(_n.row, e.rowKey || "id");
|
|
36713
36713
|
Ln.editable = Je.value[wr] || !1;
|
|
36714
|
-
var
|
|
36714
|
+
var fr = [wr, _n.col.colKey].join("__"), ea = (Rn = Se.value) === null || Rn === void 0 ? void 0 : Rn[fr];
|
|
36715
36715
|
ea && (Ln.errors = ea);
|
|
36716
36716
|
}
|
|
36717
36717
|
e.editableCellState && (Ln.readonly = !e.editableCellState(_n));
|
|
@@ -36727,7 +36727,7 @@ var ZB = ["hideSortTips", "dragSort", "defaultExpandedRowKeys", "defaultSelected
|
|
|
36727
36727
|
var Vn;
|
|
36728
36728
|
Jt.children = ct(Jt.children, Kt || ((Vn = S.value) === null || Vn === void 0 ? void 0 : Vn.includes(Jt.colKey)));
|
|
36729
36729
|
}
|
|
36730
|
-
(!Jt.children || (
|
|
36730
|
+
(!Jt.children || (vr = Jt.children) !== null && vr !== void 0 && vr.length) && mn.push(Jt);
|
|
36731
36731
|
}, At = 0, Zt = ot.length; At < Zt; At++)
|
|
36732
36732
|
kn();
|
|
36733
36733
|
return mn;
|
|
@@ -38762,24 +38762,24 @@ const Mz = ["width", "height"], Ez = ["xlink:href", "fill"], Ot = {
|
|
|
38762
38762
|
function gn(t, e) {
|
|
38763
38763
|
const n = e.value, r = `kindy-editor:${n.editorKey || "default"}:${t}`;
|
|
38764
38764
|
if (t === "document")
|
|
38765
|
-
return
|
|
38765
|
+
return gr(r, n.document);
|
|
38766
38766
|
if (t === "recent")
|
|
38767
|
-
return
|
|
38767
|
+
return gr(r, {
|
|
38768
38768
|
fonts: [],
|
|
38769
38769
|
colors: [],
|
|
38770
38770
|
downloadedFonts: []
|
|
38771
38771
|
});
|
|
38772
38772
|
if (t === "toolbar")
|
|
38773
|
-
return
|
|
38773
|
+
return gr(r, {
|
|
38774
38774
|
mode: n.toolbar.defaultMode || "classic",
|
|
38775
38775
|
show: n.toolbar.defaultShow || !0
|
|
38776
38776
|
});
|
|
38777
38777
|
if (t === "theme")
|
|
38778
|
-
return
|
|
38778
|
+
return gr(r, n.theme || "light");
|
|
38779
38779
|
if (t === "skin")
|
|
38780
|
-
return
|
|
38780
|
+
return gr(r, n.skin || "default");
|
|
38781
38781
|
if (t === "layout")
|
|
38782
|
-
return
|
|
38782
|
+
return gr(r, n.page.layouts[0] || "page");
|
|
38783
38783
|
throw new Error("[useStorage]", { cause: "Key is not valid" });
|
|
38784
38784
|
}
|
|
38785
38785
|
const Az = "%cThanks for using Kindy Editor%cCurrent version: v{version}, More info: {homepage}", Dz = { ribbon: "Professional", classic: "Classic", toggle: "Toolbar", show: "Show Toolbar", hide: "Hide Toolbar", base: "Home", insert: "Insert", table: "Table", tools: "Tools", page: "Page", view: "View", export: "Export" }, $z = { align: { title: "Alignment", left: "Left", center: "Center", right: "Right", justify: "Justify", distributed: "Distributed" }, bgColor: "Background Color of Text", bold: "Bold", letterSpacing: { text: "Letter Spacing", tip: "Current Spacing: {value} Character", reset: "Reset Letter Spacing" }, clearFormat: "Clear Text Formatting", code: "Code", color: "Font Color", fontFamily: { text: "Select Font", all: "Common Fonts", recent: "Recently Used", used: "Used Fonts", unsupport: "This font may not display properly, possibly due to it not being installed on this device", download: "Download", downloading: "Downloading", downloadActionTip: "Download and enable this font in current browser", downloadStart: "{font} is downloading and will be enabled automatically when finished", autoDownloadStart: "Downloading required fonts for this document", autoDownloadDone: "Required document fonts downloaded", downloadSuccess: "{font} downloaded and enabled", downloadFailed: "Failed to download {font}, please try again later", noDownloadUrl: "No download URL configured for this font" }, fontSize: { text: "Font Size", increase: "Increase Font Size", decrease: "Decrease Font Size", default: "Default", "42pt": "First", "36pt": "Sub-first", "26pt": "First Level", "24pt": "Sub-first Level", "22pt": "Second Level", "18pt": "Sub-second Level", "16pt": "Third Level", "15pt": "Sub-third Level", "14pt": "Fourth Level", "12pt": "Sub-fourth Level", "10_5pt": "Fifth Level", "9pt": "Sub-fifth Level", "7_5pt": "Sub-sixth Level", "6_5pt": "Default" }, formatPainter: { text: "Format Painter", tip: "Format Painter: Double click to reuse, press ESC to exit" }, wordWrap: { text: "Word Wrap", normal: "Normal", breakWord: "Break Word", breakAll: "Break All" }, heading: { text: "Title {level}", paragraph: "Normal", tip: "Set heading, can generate document map based on headings" }, highlight: { text: "Highlight", clear: "Clear Highlight", yellowBg: "Yellow Background", purpleBg: "Purple Background", greenBg: "Green Background", blueBg: "Blue Background", red: "Red Text", green: "Green Text" }, indent: "Increase Indent", italic: "Italic", lineHeight: { text: "Line Height", default: " (Default)" }, outdent: "Decrease Indent", margin: { text: "Vertical Spacing", top: "Top", bottom: "Bottom", default: "Default", reset: "Auto Spacing" }, markdown: { text: "Markdown", enable: "Enable Markdown", disable: "Disable Markdown", message: "This action will reset the editor, and after switching, current history will be lost, unable to undo, etc. Confirm now?", toggle: "Switch Now" }, quote: "Quote", redo: "Redo", selectAll: "Select All", strike: "Strikethrough", subscript: "Subscript", superscript: "Superscript", underline: "Underline", undo: "Undo" }, Iz = { audio: "Audio", codeBlock: "Code Block", date: "Chinese Date", emoji: "Emoji", file: "File", hardBreak: "Line Break", hr: { text: "Divider", title: "Divider Style", color: "Divider Color", signle: "Single Line", double: "Double Thin Lines", dotted: "Dotted Line", dashed: "Dashed Line", dashedDouble: "Double Dashed Line", signleBold: "Thick Line", doubleBoldTop: "Thick & Thin Lines (Top)", doubleBoldBottom: "Thin & Thick Lines (Bottom)", wavy: "Wavy Line" }, option: { text: "Option", radio: "Radio Button", checkbox: "Checkbox", tip: "Option Type", content: "Option Content", add: "Add Option", checkall: "Show Select All", check: "Select All", confirm: "Confirm", cancel: "Cancel", text1: "Option 1", text2: "Option 2" }, image: { text: "Image", block: "Image", blockdesc: "Insert new image node", inline: "Inline Image", inlinedesc: "Insert inline image in the current line" }, link: { text: "Link", confirm: "Confirm", remove: "Remove Link", hrefText: "Link Text:", hrefTextTip: "Enter or select link text", href: "Link URL:", hrefTip: "Usually starting with http:// or https://", copy: "Copy Link", copySuccess: "Copy successful", open: "Open Link", edit: "Edit Link" }, details: "Details", columns: { text: "Columns", number: "Number of Columns" }, tag: "Tag", callout: "Callout", mention: "Mention", bookmark: { text: "Bookmark", set: "Set bookmarks", ok: "Confirmed", textName: "Bookmark name", placeholder: " Please enter the bookmark name...", show: "Show bookmarks", actions: "Actions", delete: "Delete bookmark", emptyError: "Please enter the bookmark name or select the bookmark!" }, symbol: "Symbol", template: "Template", textBox: "Text Box", toc: "Document Map", newline: "Insert New Line", video: "Video", web: { text: "Web Page", insert: "Insert", title: "Insert Web Page", tip: "Some web pages may not support embedding.", invalidUrl: "Please enter a valid web address or confirm the link format for the selected platform.", insertError: "Failed to insert the web page. Please check the link and try again.", type: "Link Type:", url: "Page URL:", placeholder: "Enter a web address, starting with http:// or https://" }, footnote: "Footnote" }, jz = { addColumnAfter: "Insert Column After", addColumnBefore: "Insert Column Before", addRowAfter: "Insert Row Below", addRowBefore: "Insert Row Above", borderColor: "Border Color", cellAlign: { text: "Alignment", tip: "Cell Alignment", lt: "Top Left", ct: "Top Center", rt: "Top Right", jt: "Top Justify", lm: "Middle Left", cm: "Middle Center", rm: "Middle Right", jm: "Middle Justify", lb: "Bottom Left", cb: "Bottom Center", rb: "Bottom Right", jb: "Bottom Justify" }, cellBgColor: { text: "Background", tip: "Cell Background Color" }, deleteColumn: { text: "Delete Column", title: "Delete Table Column", message: "This operation will delete the selected table column. Continue?", delete: "Delete Now", success: "Deleted Successfully" }, deleteRow: { text: "Delete Row", title: "Delete Table Row", message: "This operation will delete the selected table row. Continue?", delete: "Delete Now", success: "Deleted Successfully" }, delete: { text: "Delete Table", title: "Delete Current Table", message: "This operation will delete the selected table. Continue?", delete: "Delete Now", success: "Deleted Successfully" }, fix: { text: "Fix Table", tip: "Click to automatically fix table when it's disordered" }, insert: { text: "Insert Table", tip: "Insert New Table", property: "Table Properties", withHeader: "Include Header", rows: "Number of Rows:", cols: "Number of Columns:", create: "Create Table" }, mergeCells: "Merge Cells", nextCell: "Next Cell", prevCell: "Previous Cell", splitCell: "Split Cell", toggleHeaderCell: "Header Cell", toggleHeaderRow: "Header Row", toggleHeaderColumn: "Header Column" }, Fz = { barcode: { text: "Barcode", edit: "Edit Barcode", title: "Barcode", format: "Format", font: "Font Style", lineColor: "Barcode & Text Color", bgColor: "Barcode Background Color", more: "More", width: "Width:", height: "Height:", margin: "Margin:", displayValue: "Display Text", displayValueText: "Show Text", textContent: "Text Content:", textContentTip: "Overrides barcode content text", textPosition: "Text Position:", top: "Top", bottom: "Bottom", textMargin: "Vertical Distance:", fontSize: "Font Size:", placeholder: "Enter content to convert into barcode", error: "Your input may not comply with the current barcode standard constraints, please check.", preview: "Preview", renderError: "No preview available", notEmpty: "Barcode content cannot be empty" }, chineseCase: { text: "Chinese Case", tip: "Chinese Case Conversion" }, math: { text: "Mathematics", insert: "Insert LaTeX Math", edit: "Edit LaTeX Math", update: "Update Math", inline: "Inline Math", block: "Block Math", placeholder: "Enter LaTeX or select from the right", preview: "Math Preview Area", template: "Math templates", cancel: "Cancel", confirm: "Insert Math" }, diagrams: { text: "Diagram", edit: "Edit Diagram", loading: "Loading..." }, mermaid: { text: "Mermaid", edit: "Edit Mermaid", theme: "Select Theme", themes: { default: "Default Theme", base: "Simple Theme", dark: "Dark Theme", forest: "Forest Theme", neutral: "Neutral Theme" }, copy: "Copy Code", clear: "Clear Code", copied: "Code Copied to Clipboard", placeholder: "Enter or paste Mermaid code", preview: "Preview", notEmpty: "Mermaid content cannot be empty", codeEmpty: "Mermaid code cannot be empty", notLoaded: "Mermaid is still loading", keepSize: "Keep Original Size", renderError: "Syntax error in graph" }, echarts: { text: "Chart", add: "Create a new chart", edit: "Change Chart", source: "Advanced Mode", visualization: "Basic Mode", placeholder: "Please enter or paste data in echarts format", sourceerror: "Echarts structure is incorrect, please confirm!", sourceerror2: "Echarts structure incorrect or undefined!", dataGrid: "Data Grid", setting: "Settings", settingError: "Please confirm if the preview view is displayed correctly!", set: { bar: "Bar", line: "Line", pie: "Pie", top: "Top", bottom: "Bottom", left: "Left", center: "Center", right: "Right", horizontal: "Horizontal", vertical: "Vertical", smooth: "Smooth", seriesType: "Chart type", legend: "Show Legend", legendorient: "Legend layout", legendlocation: "Legend vertical", legendleft: "Legend horizontal", titleText: "Chart title", titleTextPlaceholder: "Please enter a title name...", titleleft: "Title Position" } }, mindMap: "Mind Map", qrcode: { text: "QR Code", edit: "Edit QR Code", level: "QR Code Error Correction Level", levelL: "Low", levelM: "Medium", levelQ: "Quartile", levelH: "High", padding: "padding:", paddingTip: "white space padding", width: "Size:", widthTip: "QR Code size in pixels", color: "QR Code Color", bgColor: "Color of background", placeholder: "Enter or paste content to convert into QR Code", preview: "Preview", renderError: "QR Code generation failed", notEmpty: "QR Code content cannot be empty" }, signature: { text: "E-Signature", title: "Insert Electronic Signature", tabs: { online: "Sign Online", select: "Choose Signature" }, clear: "Clear", lineWidth: "Pen Thickness", lineColor: "Pen Color", smooth: "Show Brush Strokes", reset: "Reset Options", tip: "Please sign in the this area", notEmpty: "No signature detected", selectLocal: "Upload Signature Image", reselect: "Choose Another", selectEmpty: "Please choose a signature image first", cropTitle: "Crop Signature", cropTip: "Drag the crop box and crop area box to adjust the visible area.", fileSize: "File Size", imageSize: "Image Dimensions", unknownDimensions: "Unknown dimensions", cropFailed: "Failed to crop the signature image" }, stamp: { text: "E-Stamp", title: "Insert Stamp", presetTitle: "Stamp Size Presets", presets: { company: "Company Seal", contract: "Contract Seal", finance: "Financial Seal", invoice: "Invoice Seal", legal: "Legal Representative Seal", customs: "Customs Declaration Seal", other: "Other" }, previewTitle: "Preview Stamp", previewTip: "Drag the crop box and crop area box to adjust the visible area.", selectLocal: "Upload Stamp Image", reselect: "Choose Another", selectEmpty: "Please choose a stamp image first", fileSize: "File Size", imageSize: "Image Dimensions", unknownDimensions: "Unknown dimensions", notEmpty: "Please upload a stamp image first" } }, Lz = { bg: { text: "Background", custom: "Custom Page Background", default: "Default", color1: `Eye-friendly
|
|
@@ -38828,7 +38828,7 @@ Black` }, breakMarks: "Line Breaks", break: "Page Break", lineNumber: "Line Numb
|
|
|
38828
38828
|
Dễ nhìn`, color2: `Vàng
|
|
38829
38829
|
Thanh lịch`, color3: `Xanh dương
|
|
38830
38830
|
Mây`, color4: "Xanh trời", color5: `Đen
|
|
38831
|
-
Đêm tối` }, breakMarks: "Ngắt dòng", break: "Ngắt trang", lineNumber: "Số dòng", margin: "Lề", orientation: { text: "Hướng", landscape: "Nằm ngang", portrait: "Dọc" }, preview: "Trình chiếu", size: { text: "Kích thước", cm: "CM", custom: "Tùy chỉnh" }, watermark: { text: "Hình mờ", fontFamily: "Phông chữ hình mờ", fontSize: "Kích thước hình mờ", fontColor: "Màu hình mờ", content: "Văn bản hình mờ", type: "Kiểu hình mờ", compact: "Gọn", spacious: "Rộng", clear: "Xóa hình mờ" } }, kV = { zoom: "Phóng to", zoomOriginal: "Kích thước gốc", zoomAuto: "Vừa khít", theme: "Chủ đề", themeLight: "Chế độ sáng", themeDark: "Chế độ tối", skin: "Giao diện", skinDefault: "Mặc định", skinModern: "Hiện đại", locale: "Ngôn ngữ" }, _V = { bullet: { text: "Danh sách ký hiệu", disc: "Hình tròn đặc", circle: "Hình tròn rỗng", square: "Hình vuông đặc" }, ordered: { text: "Danh sách đánh số", property: "Thuộc tính danh sách", startAt: "Số bắt đầu:", continuePrevious: "Tiếp tục đánh số trước đó", startNew: "Bắt đầu danh sách mới", changeStart: "Đặt giá trị đánh số", numberType: "Loại số", startValue: "Giá trị đánh số", apply: "Áp dụng", cancel: "Hủy", decimal: "Số", decimalLeadingZero: "Số kèm số 0 dẫn đầu", lowerRoman: "Số La Mã thường", upperRoman: "Số La Mã hoa", lowerLatin: "Chữ cái thường", upperLatin: "Chữ cái hoa", tradChineseInformal: "Số đếm Trung Quốc truyền thống", simpChineseFormal: "Số đếm Trung Quốc chính thức" }, task: { text: "Danh sách việc cần làm", split: "Thêm công việc", sink: "Thụt lề (Tạo công việc con)", lift: "Giảm thụt lề (Chuyển thành công việc cha)" } }, wV = { default: "Màu mặc định", standard: "Màu chuẩn", recent: "Sử dụng gần đây", more: "Thêm màu" }, xV = { insert: "Chèn nội dung", template: "Chèn mẫu", common: "Thao tác thường dùng", clearFormat: "Xóa định dạng", duplicate: "Nhân bản", copy: "Sao chép", cut: "Cắt", delete: "Xóa" }, SV = { code: { copy: { text: "Sao chép mã", success: "Đã sao chép mã vào clipboard" }, languages: "Ngôn ngữ", lineNumbers: "Hiện số dòng", themes: { text: "Chủ đề", light: "Chủ đề sáng", dark: "Chủ đề tối" }, wordWrap: "Ngắt dòng" }, file: { autoWidth: "Vừa chiều rộng", download: "Tải xuống tệp" }, image: { crop: "Cắt hình ảnh", applyCrop: "Áp dụng cắt", cropFailed: "Cắt hình ảnh thất bại", open: "Mở trong cửa sổ mới", draggable: "Kéo di chuyển hình ảnh", flipX: "Lật ngang", flipY: "Lật dọc", preview: "Xem trước hình ảnh", proportion: "Khóa tỷ lệ hình ảnh", title: "Hiện mô tả hình ảnh", reset: "Đặt lại vị trí hình ảnh", resetAll: "Đặt lại tất cả cài đặt", rotateCC: "Xoay ngược chiều kim đồng hồ 90°", rotateC: "Xoay theo chiều kim đồng hồ 90°", convertToNode: "Chuyển thành hình ảnh khối", convertToInline: "Chuyển thành hình ảnh nội dòng" }, textBox: { background: "Màu nền", border: "Cài đặt viền", borderColor: "Màu viền", borderStyle: "Kiểu viền", noBorder: "Không viền", writingMode: "Chế độ viết", horizontalTb: "Văn bản ngang", verticalLr: "Văn bản dọc (Trái sang phải)", verticalRl: "Văn bản dọc (Phải sang trái)" }, callout: { removeEmoji: "Xóa biểu tượng cảm xúc", background: "Màu nền" }, tag: { placeholder: "Tên thẻ", content: "Tên thẻ", background: "Màu nền", color: "Màu chữ", delete: "Xóa thẻ" }, webpage: { clickable: "Bật/tắt nhấp chuột", open: "Mở trong cửa sổ mới" }, toFile: "Chuyển thành tệp", delete: "Xóa" }, OV = { title: "Cài đặt trang", size: { text: "Kích thước trang", width: "Chiều rộng:", height: "Chiều cao:", custom: "Tùy chỉnh" }, margin: { text: "Lề trang", default: "Mặc định", narrow: "Hẹp", moderate: "Vừa", wide: "Rộng", top: "Trên:", right: "Phải:", bottom: "Dưới:", left: "Trái:" } }, PV = { untitled: "Tài liệu chưa có tiêu đề", headingPlaceholder: "Nhập tiêu đề" }, TV = { text: "Tìm kiếm", title: "Tìm kiếm và thay thế", searchText: "Tìm kiếm...", replaceText: "Thay thế...", caseSensitive: "Phân biệt chữ hoa/thường", search: "Tìm kiếm", replace: "Thay thế", replaceAll: "Thay thế tất cả" }, MV = { title: "Mục lục tài liệu", show: "Hiện mục lục", hide: "Ẩn mục lục", empty: "Không có mục lục" }, EV = { title: "Bình luận", add: "Thêm bình luận", show: "Hiện bình luận", hide: "Ẩn bình luận", empty: "Chưa có bình luận nào", emptyTip: 'Chọn một đoạn văn bản rồi bấm nút "Thêm bình luận" để bắt đầu', placeholder: "Nhập nội dung bình luận...", noBody: "Nhấp đúp để nhập nội dung bình luận", save: "Lưu", cancel: "Hủy", delete: "Xóa bình luận", deleteConfirm: "Bạn có chắc chắn muốn xóa bình luận này?", resolve: "Giải quyết", reopen: "Mở lại", resolvedTip: "Đã giải quyết", reply: "Trả lời", replyPlaceholder: "Viết câu trả lời...", selectTextTip: "Vui lòng chọn một đoạn văn bản trong tài liệu trước khi thêm bình luận.", anonymous: "Người dùng ẩn danh" }, AV = { enable: "Bật kiểm tra chính tả", disable: "Tắt kiểm tra chính tả" }, DV = { title: "Phím tắt", text: "Văn bản", commonlyUsed: "Phổ biến", copy: "Sao chép", paste: "Dán", pasteAsText: "Dán dưới dạng văn bản thuần", paragraph: "Chèn đoạn văn mới", hardBreak: "Ngắt dòng", format: "Văn bản", page: "Trang", pageZoomIn: "Phóng to", pageZoomOut: "Thu nhỏ", pageZoomReset: "Đặt lại zoom về mặc định", pageAutoWidth: "Tự động vừa chiều rộng", markdown: "Markdown" }, $V = { title: "Đổi ngôn ngữ", message: "Sau khi đổi ngôn ngữ, trang sẽ được làm mới. Vui lòng lưu nội dung tài liệu trước. Bạn có chắc chắn muốn chuyển ngay?", confirm: "Chuyển" }, IV = { title: "Đặt lại cài đặt", message: "Thao tác này sẽ xóa tất cả cài đặt trình soạn thảo và nội dung hiện tại, sau đó làm mới trang. Nên lưu nội dung trước khi đặt lại. Bạn có chắc chắn muốn đặt lại ngay?", reset: "Đặt lại" }, jV = { title: "Về Kindy Editor", poweredBy: 'Được hỗ trợ bởi <a href="https://github.com/hotienky/editor" target="_blank">Kindy Editor</a>', version: "Phiên bản", openSource: "phiên bản mã nguồn mở", documentation: "Tài liệu", thanks: "Cảm ơn tất cả người đóng góp", next: 'Tìm hiểu thêm về phiên bản nâng cao tại <a href="https://github.com/hotienky/editor" target="_blank">Kindy Editor Next</a>' }, FV = { web: "Xem web", page: "Xem trang" }, LV = { characters: "Ký tự", title: "Thống kê tài liệu", input: "Ký tự đã nhập", selection: "Ký tự đã chọn", limit: "Giới hạn ký tự" }, RV = { title: "Trình chiếu", disable: "Thoát trình chiếu", countdown: { title: "Đặt thời gian đếm ngược", select: "Chọn", selectTip: "Chọn thời lượng đếm ngược", custom: "Tùy chỉnh", hours: "Giờ", minutes: "Phút", seconds: "Giây", whenEnd: "Khi kết thúc", showEndMessage: "Hiện thông báo kết thúc", exitPreview: "Thoát chế độ trình chiếu", start: "Bắt đầu", cancel: "Hủy", "1hour": "1 giờ", "45minutes": "45 phút", "30minutes": "30 phút", "15minutes": "15 phút", "10minutes": "10 phút", "5minutes": "5 phút", error: "Vui lòng đặt thời gian đếm ngược hợp lệ", endCountdown: "Đếm ngược đã kết thúc", remaining: "Thời gian còn lại" }, laserPointer: "Con trỏ laser" }, NV = { title: "Toàn màn hình", disable: "Thoát toàn màn hình" }, BV = { zoomIn: "Phóng to", zoomOut: "Thu nhỏ", level: "Mức phóng to: ", autoWidth: "Vừa chiều rộng tốt nhất", autoWidthError: "Lỗi tính toán chiều rộng trang tự động", reset: "Quay lại 100%" }, zV = { codeBlock: { menu: "Menu" }, image: { loading: "Đang tải hình ảnh...", error: "Tải hình ảnh thất bại", altPlaceholder: "Nhập mô tả hình ảnh..." }, textBox: { tip: "Nhấp đúp để chỉnh sửa" } }, VV = { uploading: "Đang tải tệp lên...", preview: "Xem trước tệp", download: "Tải xuống tệp", limit: 'Tệp "{filename}" vượt quá giới hạn {size}MB', unknownName: "Tên không xác định", unknownSize: "Kích thước không xác định", notAllow: { title: "Thông báo lỗi", message: "Không được phép chèn loại tệp này vào tài liệu hiện tại." } }, HV = { placeholder: "Vui lòng nhập nội dung" }, WV = { loading: "Đang tìm kiếm", noResult: "Không có kết quả" }, KV = { text: "Lưu", saved: "Đã lưu", unsaved: "Chưa lưu", network: "Trạng thái mạng:", online: "Trực tuyến", offline: "Ngoại tuyến", saving: "Đang lưu tài liệu...", savedAt: "Đã lưu lúc:", savedAtText: "Đã lưu lúc {time}", failed: "Lưu tài liệu thất bại", success: "Đã lưu tài liệu thành công", error: "Lỗi lưu tài liệu", cache: { text: "Khôi phục từ bộ nhớ đệm", error: { title: "Thông báo lỗi", message: "Không có nội dung trong bộ nhớ đệm!" } } }, UV = { text: "In", title: "In tài liệu", message: "Trước khi in tài liệu, vui lòng đảm bảo rằng tất cả hình ảnh trên trang đã tải xong. Để đảm bảo tất cả nội dung được hiển thị đúng, vui lòng kiểm tra tùy chọn 'Đồ họa nền' trong hộp thoại in và đặt 'Lề' thành 'Không có.'", confirm: "In ngay" }, YV = { cancel: "Hủy" }, qV = { notSupported: "Trình duyệt không hỗ trợ chức năng sao chép", copyFailed: "Sao chép thất bại" }, GV = { imagePlaceholder: "[Hình ảnh]", dialog: { title: "Thông báo", body: "Nội dung clipboard đã được dán, nhưng hình ảnh đi kèm không được xử lý đúng. Vui lòng sao chép và thay thế thủ công các hình ảnh chưa được xử lý trong tài liệu." } }, XV = {
|
|
38831
|
+
Đêm tối` }, breakMarks: "Ngắt dòng", break: "Ngắt trang", lineNumber: "Số dòng", margin: "Lề", orientation: { text: "Hướng", landscape: "Nằm ngang", portrait: "Dọc" }, preview: "Trình chiếu", size: { text: "Kích thước", cm: "CM", custom: "Tùy chỉnh" }, watermark: { text: "Hình mờ", fontFamily: "Phông chữ hình mờ", fontSize: "Kích thước hình mờ", fontColor: "Màu hình mờ", content: "Văn bản hình mờ", type: "Kiểu hình mờ", compact: "Gọn", spacious: "Rộng", clear: "Xóa hình mờ" } }, kV = { zoom: "Phóng to", zoomOriginal: "Kích thước gốc", zoomAuto: "Vừa khít", theme: "Chủ đề", themeLight: "Chế độ sáng", themeDark: "Chế độ tối", skin: "Giao diện", skinDefault: "Mặc định", skinModern: "Hiện đại", locale: "Ngôn ngữ" }, _V = { bullet: { text: "Danh sách ký hiệu", disc: "Hình tròn đặc", circle: "Hình tròn rỗng", square: "Hình vuông đặc" }, ordered: { text: "Danh sách đánh số", property: "Thuộc tính danh sách", startAt: "Số bắt đầu:", continuePrevious: "Tiếp tục đánh số trước đó", startNew: "Bắt đầu danh sách mới", changeStart: "Đặt giá trị đánh số", numberType: "Loại số", startValue: "Giá trị đánh số", apply: "Áp dụng", cancel: "Hủy", decimal: "Số", decimalLeadingZero: "Số kèm số 0 dẫn đầu", lowerRoman: "Số La Mã thường", upperRoman: "Số La Mã hoa", lowerLatin: "Chữ cái thường", upperLatin: "Chữ cái hoa", tradChineseInformal: "Số đếm Trung Quốc truyền thống", simpChineseFormal: "Số đếm Trung Quốc chính thức" }, task: { text: "Danh sách việc cần làm", split: "Thêm công việc", sink: "Thụt lề (Tạo công việc con)", lift: "Giảm thụt lề (Chuyển thành công việc cha)" } }, wV = { default: "Màu mặc định", standard: "Màu chuẩn", recent: "Sử dụng gần đây", more: "Thêm màu" }, xV = { insert: "Chèn nội dung", template: "Chèn mẫu", common: "Thao tác thường dùng", clearFormat: "Xóa định dạng", duplicate: "Nhân bản", copy: "Sao chép", cut: "Cắt", delete: "Xóa" }, SV = { code: { copy: { text: "Sao chép mã", success: "Đã sao chép mã vào clipboard" }, languages: "Ngôn ngữ", lineNumbers: "Hiện số dòng", themes: { text: "Chủ đề", light: "Chủ đề sáng", dark: "Chủ đề tối" }, wordWrap: "Ngắt dòng" }, file: { autoWidth: "Vừa chiều rộng", download: "Tải xuống tệp" }, image: { crop: "Cắt hình ảnh", applyCrop: "Áp dụng cắt", cropFailed: "Cắt hình ảnh thất bại", open: "Mở trong cửa sổ mới", draggable: "Kéo di chuyển hình ảnh", flipX: "Lật ngang", flipY: "Lật dọc", preview: "Xem trước hình ảnh", proportion: "Khóa tỷ lệ hình ảnh", title: "Hiện mô tả hình ảnh", reset: "Đặt lại vị trí hình ảnh", resetAll: "Đặt lại tất cả cài đặt", rotateCC: "Xoay ngược chiều kim đồng hồ 90°", rotateC: "Xoay theo chiều kim đồng hồ 90°", convertToNode: "Chuyển thành hình ảnh khối", convertToInline: "Chuyển thành hình ảnh nội dòng" }, textBox: { background: "Màu nền", border: "Cài đặt viền", borderColor: "Màu viền", borderStyle: "Kiểu viền", noBorder: "Không viền", writingMode: "Chế độ viết", horizontalTb: "Văn bản ngang", verticalLr: "Văn bản dọc (Trái sang phải)", verticalRl: "Văn bản dọc (Phải sang trái)" }, callout: { removeEmoji: "Xóa biểu tượng cảm xúc", background: "Màu nền" }, tag: { placeholder: "Tên thẻ", content: "Tên thẻ", background: "Màu nền", color: "Màu chữ", delete: "Xóa thẻ" }, webpage: { clickable: "Bật/tắt nhấp chuột", open: "Mở trong cửa sổ mới" }, toFile: "Chuyển thành tệp", delete: "Xóa" }, OV = { title: "Cài đặt trang", size: { text: "Kích thước trang", width: "Chiều rộng:", height: "Chiều cao:", custom: "Tùy chỉnh" }, margin: { text: "Lề trang", default: "Mặc định", narrow: "Hẹp", moderate: "Vừa", wide: "Rộng", top: "Trên:", right: "Phải:", bottom: "Dưới:", left: "Trái:" } }, PV = { untitled: "Tài liệu chưa có tiêu đề", headingPlaceholder: "Nhập tiêu đề" }, TV = { text: "Tìm kiếm", title: "Tìm kiếm và thay thế", searchText: "Tìm kiếm...", replaceText: "Thay thế...", caseSensitive: "Phân biệt chữ hoa/thường", search: "Tìm kiếm", replace: "Thay thế", replaceAll: "Thay thế tất cả" }, MV = { title: "Mục lục tài liệu", show: "Hiện mục lục", hide: "Ẩn mục lục", empty: "Không có mục lục" }, EV = { title: "Bình luận", add: "Thêm bình luận", show: "Hiện bình luận", hide: "Ẩn bình luận", empty: "Chưa có bình luận nào", emptyTip: 'Chọn một đoạn văn bản rồi bấm nút "Thêm bình luận" để bắt đầu', placeholder: "Nhập nội dung bình luận...", noBody: "Nhấp đúp để nhập nội dung bình luận", save: "Lưu", cancel: "Hủy", delete: "Xóa bình luận", deleteConfirm: "Bạn có chắc chắn muốn xóa bình luận này?", resolve: "Giải quyết", reopen: "Mở lại", resolvedTip: "Đã giải quyết", reply: "Trả lời", replyPlaceholder: "Viết câu trả lời...", selectTextTip: "Vui lòng chọn một đoạn văn bản trong tài liệu trước khi thêm bình luận.", anonymous: "Người dùng ẩn danh" }, AV = { enable: "Bật kiểm tra chính tả", disable: "Tắt kiểm tra chính tả" }, DV = { title: "Phím tắt", text: "Văn bản", commonlyUsed: "Phổ biến", copy: "Sao chép", paste: "Dán", pasteAsText: "Dán dưới dạng văn bản thuần", paragraph: "Chèn đoạn văn mới", hardBreak: "Ngắt dòng", format: "Văn bản", page: "Trang", pageZoomIn: "Phóng to", pageZoomOut: "Thu nhỏ", pageZoomReset: "Đặt lại zoom về mặc định", pageAutoWidth: "Tự động vừa chiều rộng", markdown: "Markdown" }, $V = { title: "Đổi ngôn ngữ", message: "Sau khi đổi ngôn ngữ, trang sẽ được làm mới. Vui lòng lưu nội dung tài liệu trước. Bạn có chắc chắn muốn chuyển ngay?", confirm: "Chuyển" }, IV = { title: "Đặt lại cài đặt", message: "Thao tác này sẽ xóa tất cả cài đặt trình soạn thảo và nội dung hiện tại, sau đó làm mới trang. Nên lưu nội dung trước khi đặt lại. Bạn có chắc chắn muốn đặt lại ngay?", reset: "Đặt lại" }, jV = { title: "Về Kindy Editor", poweredBy: 'Được hỗ trợ bởi <a href="https://github.com/hotienky/editor" target="_blank">Kindy Editor</a>', version: "Phiên bản", openSource: "phiên bản mã nguồn mở", documentation: "Tài liệu", thanks: "Cảm ơn tất cả người đóng góp", next: 'Tìm hiểu thêm về phiên bản nâng cao tại <a href="https://github.com/hotienky/editor" target="_blank">Kindy Editor Next</a>' }, FV = { web: "Xem web", page: "Xem trang" }, LV = { characters: "Ký tự", title: "Thống kê tài liệu", input: "Ký tự đã nhập", selection: "Ký tự đã chọn", limit: "Giới hạn ký tự" }, RV = { title: "Trình chiếu", disable: "Thoát trình chiếu", countdown: { title: "Đặt thời gian đếm ngược", select: "Chọn", selectTip: "Chọn thời lượng đếm ngược", custom: "Tùy chỉnh", hours: "Giờ", minutes: "Phút", seconds: "Giây", whenEnd: "Khi kết thúc", showEndMessage: "Hiện thông báo kết thúc", exitPreview: "Thoát chế độ trình chiếu", start: "Bắt đầu", cancel: "Hủy", "1hour": "1 giờ", "45minutes": "45 phút", "30minutes": "30 phút", "15minutes": "15 phút", "10minutes": "10 phút", "5minutes": "5 phút", error: "Vui lòng đặt thời gian đếm ngược hợp lệ", endCountdown: "Đếm ngược đã kết thúc", remaining: "Thời gian còn lại" }, laserPointer: "Con trỏ laser" }, NV = { title: "Toàn màn hình", disable: "Thoát toàn màn hình" }, BV = { zoomIn: "Phóng to", zoomOut: "Thu nhỏ", level: "Mức phóng to: ", autoWidth: "Vừa chiều rộng tốt nhất", autoWidthError: "Lỗi tính toán chiều rộng trang tự động", reset: "Quay lại 100%" }, zV = { codeBlock: { menu: "Menu" }, image: { loading: "Đang tải hình ảnh...", error: "Tải hình ảnh thất bại", altPlaceholder: "Nhập mô tả hình ảnh..." }, textBox: { tip: "Nhấp đúp để chỉnh sửa" } }, VV = { uploading: "Đang tải tệp lên...", preview: "Xem trước tệp", download: "Tải xuống tệp", limit: 'Tệp "{filename}" vượt quá giới hạn {size}MB', unknownName: "Tên không xác định", unknownSize: "Kích thước không xác định", notAllow: { title: "Thông báo lỗi", message: "Không được phép chèn loại tệp này vào tài liệu hiện tại." } }, HV = { placeholder: "Vui lòng nhập nội dung" }, WV = { loading: "Đang tìm kiếm", noResult: "Không có kết quả" }, KV = { text: "Lưu", saved: "Đã lưu", unsaved: "Chưa lưu", network: "Trạng thái mạng:", online: "Trực tuyến", offline: "Ngoại tuyến", saving: "Đang lưu tài liệu...", savedAt: "Đã lưu lúc:", savedAtText: "Đã lưu lúc {time}", failed: "Lưu tài liệu thất bại", success: "Đã lưu tài liệu thành công", error: "Lỗi lưu tài liệu", cache: { text: "Khôi phục từ bộ nhớ đệm", error: { title: "Thông báo lỗi", message: "Không có nội dung trong bộ nhớ đệm!" } } }, UV = { text: "In", title: "In tài liệu", message: "Trước khi in tài liệu, vui lòng đảm bảo rằng tất cả hình ảnh trên trang đã tải xong. Để đảm bảo tất cả nội dung được hiển thị đúng, vui lòng kiểm tra tùy chọn 'Đồ họa nền' trong hộp thoại in và đặt 'Lề' thành 'Không có.'", confirm: "In ngay" }, YV = { confirm: "Xác nhận", cancel: "Hủy" }, qV = { notSupported: "Trình duyệt không hỗ trợ chức năng sao chép", copyFailed: "Sao chép thất bại" }, GV = { imagePlaceholder: "[Hình ảnh]", dialog: { title: "Thông báo", body: "Nội dung clipboard đã được dán, nhưng hình ảnh đi kèm không được xử lý đúng. Vui lòng sao chép và thay thế thủ công các hình ảnh chưa được xử lý trong tài liệu." } }, XV = {
|
|
38832
38832
|
welcome: mV,
|
|
38833
38833
|
toolbar: hV,
|
|
38834
38834
|
base: gV,
|
|
@@ -38922,7 +38922,7 @@ Mây`, color4: "Xanh trời", color5: `Đen
|
|
|
38922
38922
|
return t[e] || t.vi_VN || t.en_US || t.zh_CN || Object.values(t)[0] || "";
|
|
38923
38923
|
}
|
|
38924
38924
|
return "";
|
|
38925
|
-
},
|
|
38925
|
+
}, dr = () => Zh, It = (t, e) => {
|
|
38926
38926
|
const n = t.__vccOpts || t;
|
|
38927
38927
|
for (const [r, a] of e)
|
|
38928
38928
|
n[r] = a;
|
|
@@ -40133,7 +40133,7 @@ var fW = Object.prototype.hasOwnProperty, Am = function(e, n) {
|
|
|
40133
40133
|
return Am(e, n) ? e[n] : void 0;
|
|
40134
40134
|
};
|
|
40135
40135
|
function Us(t, e, n) {
|
|
40136
|
-
var r, a, o, l, i = (r = (a = t.slots)[
|
|
40136
|
+
var r, a, o, l, i = (r = (a = t.slots)[br(e)]) === null || r === void 0 ? void 0 : r.call(a, n);
|
|
40137
40137
|
return i && i.filter(function(u) {
|
|
40138
40138
|
return !ek(u);
|
|
40139
40139
|
}).length || (i = (o = (l = t.slots)[Ur(e)]) === null || o === void 0 ? void 0 : o.call(l, n), i && i.filter(function(u) {
|
|
@@ -40150,16 +40150,16 @@ function nk(t) {
|
|
|
40150
40150
|
}
|
|
40151
40151
|
function mW(t, e) {
|
|
40152
40152
|
var n = (t == null ? void 0 : t.vnode.props) || {};
|
|
40153
|
-
return Am(n,
|
|
40153
|
+
return Am(n, br(e)) || Am(n, Ur(e));
|
|
40154
40154
|
}
|
|
40155
40155
|
var Jo = function() {
|
|
40156
40156
|
var e = Sn();
|
|
40157
40157
|
return function(n, r) {
|
|
40158
|
-
var a = gS(r), o = hS(r), l = tW(r), i = e.slots[
|
|
40158
|
+
var a = gS(r), o = hS(r), l = tW(r), i = e.slots[br(n)] || e.slots[Ur(n)];
|
|
40159
40159
|
if (l && i)
|
|
40160
40160
|
return Us(e, n, a);
|
|
40161
40161
|
if (mW(e, n)) {
|
|
40162
|
-
var u, s = e.props[
|
|
40162
|
+
var u, s = e.props[br(n)] || e.props[Ur(n)], c = (u = e.type.props[n]) === null || u === void 0 ? void 0 : u.type;
|
|
40163
40163
|
if ((c == null ? void 0 : c.length) > 1 && c.includes(Boolean) && c.includes(Function) && s === "" && !i)
|
|
40164
40164
|
return o;
|
|
40165
40165
|
if (s === !1 || s === null) return;
|
|
@@ -40171,7 +40171,7 @@ var Jo = function() {
|
|
|
40171
40171
|
}
|
|
40172
40172
|
if (i)
|
|
40173
40173
|
return Us(e, n, a);
|
|
40174
|
-
var d = e.props[
|
|
40174
|
+
var d = e.props[br(n)] || e.props[Ur(n)];
|
|
40175
40175
|
return d === !1 || d === null ? void 0 : d === !0 ? o : ze(d) ? d(Nt, a) : d;
|
|
40176
40176
|
};
|
|
40177
40177
|
}, Bd = function() {
|
|
@@ -41887,7 +41887,7 @@ var sK = ye({
|
|
|
41887
41887
|
onMousedown: P.onClearIconMousedown
|
|
41888
41888
|
}, null));
|
|
41889
41889
|
var ge = [d.value, e.inputClass, Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt(Dt({}, b.value[e.size], e.size !== "medium"), g.value.disabled, v.value), g.value.focused, v.value ? !1 : M.value), "".concat(y.value, "-is-").concat(x.value), x.value && x.value !== "default"), "".concat(y.value, "-align-").concat(e.align), e.align !== "left"), "".concat(y.value, "-is-readonly"), c.value), "".concat(d.value, "--prefix"), H || ue), "".concat(d.value, "--suffix"), G || ce), "".concat(d.value, "--borderless"), e.borderless), "".concat(d.value, "--focused"), M.value)], xe = C("tips"), Ue = [f.value, "".concat(y.value, "-tips"), "".concat(y.value, "-is-").concat(x.value || "default")];
|
|
41890
|
-
return
|
|
41890
|
+
return yr(p("div", {
|
|
41891
41891
|
class: U.value
|
|
41892
41892
|
}, [p("div", {
|
|
41893
41893
|
class: ge,
|
|
@@ -42319,7 +42319,7 @@ var ES = ye({
|
|
|
42319
42319
|
return p(Me, null, [q(), U(), !!e.footer && z()]);
|
|
42320
42320
|
};
|
|
42321
42321
|
return function() {
|
|
42322
|
-
return
|
|
42322
|
+
return yr(p("div", {
|
|
42323
42323
|
key: "dialog",
|
|
42324
42324
|
ref: a,
|
|
42325
42325
|
class: j.value,
|
|
@@ -42520,7 +42520,7 @@ var CK = 1, AS = ye({
|
|
|
42520
42520
|
onAfterLeave: U
|
|
42521
42521
|
}, {
|
|
42522
42522
|
default: function() {
|
|
42523
|
-
return [R.value &&
|
|
42523
|
+
return [R.value && yr(p("div", Fe({
|
|
42524
42524
|
class: te,
|
|
42525
42525
|
style: Z
|
|
42526
42526
|
}, n.attrs), [G]), [[Yr, e.visible]])];
|
|
@@ -42643,16 +42643,23 @@ Ii(ES);
|
|
|
42643
42643
|
const lr = {
|
|
42644
42644
|
__name: "modal",
|
|
42645
42645
|
setup(t) {
|
|
42646
|
-
const e = ne("container", "body"), n =
|
|
42647
|
-
return (
|
|
42646
|
+
const e = ne("container", "body"), { t: n } = dr(), r = Sn(), a = (o) => r.expose = o;
|
|
42647
|
+
return (o, l) => (N(), J(t_(
|
|
42648
42648
|
Nt(
|
|
42649
42649
|
k(wK),
|
|
42650
|
-
{
|
|
42651
|
-
|
|
42650
|
+
{
|
|
42651
|
+
placement: "center",
|
|
42652
|
+
attach: k(e),
|
|
42653
|
+
confirmBtn: k(n)("dialog.confirm"),
|
|
42654
|
+
cancelBtn: k(n)("dialog.cancel"),
|
|
42655
|
+
...o.$attrs,
|
|
42656
|
+
ref: a
|
|
42657
|
+
},
|
|
42658
|
+
o.$slots
|
|
42652
42659
|
)
|
|
42653
42660
|
)));
|
|
42654
42661
|
}
|
|
42655
|
-
}, xK = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgNDAiIGZpbGw9Im5vbmUiPgogIDxyZWN0IHg9IjIiIHk9IjQiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiM0RjQ2RTUiLz4KICA8cGF0aCBkPSJNMTAgMTRoMjBNMTAgMjBoMjBNMTAgMjZoMTQiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICA8dGV4dCB4PSI0NCIgeT0iMjgiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMiIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzFGMjkzNyI+S2luZHkgRWRpdG9yPC90ZXh0Pgo8L3N2Zz4K", SK = "1.0.
|
|
42662
|
+
}, xK = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgNDAiIGZpbGw9Im5vbmUiPgogIDxyZWN0IHg9IjIiIHk9IjQiIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgcng9IjYiIGZpbGw9IiM0RjQ2RTUiLz4KICA8cGF0aCBkPSJNMTAgMTRoMjBNMTAgMjBoMjBNMTAgMjZoMTQiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMi41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICA8dGV4dCB4PSI0NCIgeT0iMjgiIGZvbnQtZmFtaWx5PSJBcmlhbCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyMiIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzFGMjkzNyI+S2luZHkgRWRpdG9yPC90ZXh0Pgo8L3N2Zz4K", SK = "1.0.1", OK = "https://github.com/hotienky/editor", Fm = {
|
|
42656
42663
|
version: SK,
|
|
42657
42664
|
homepage: OK
|
|
42658
42665
|
}, PK = () => {
|
|
@@ -42671,7 +42678,7 @@ const lr = {
|
|
|
42671
42678
|
},
|
|
42672
42679
|
emits: ["close"],
|
|
42673
42680
|
setup(t, { emit: e }) {
|
|
42674
|
-
const n = e, { locale: r } =
|
|
42681
|
+
const n = e, { locale: r } = dr();
|
|
42675
42682
|
return (a, o) => {
|
|
42676
42683
|
const l = Ot, i = lr;
|
|
42677
42684
|
return N(), J(i, {
|
|
@@ -43007,7 +43014,7 @@ const RK = {
|
|
|
43007
43014
|
}, XK = { class: "kindy-shortcuts-drawer-header" }, ZK = {
|
|
43008
43015
|
__name: "index",
|
|
43009
43016
|
setup(t) {
|
|
43010
|
-
const { locale: e } =
|
|
43017
|
+
const { locale: e } = dr(), n = ne("container"), r = ne("editor"), a = ne("page"), o = ne("options"), l = gn("document", o), i = W(!1), u = ne("reset"), s = W(!1);
|
|
43011
43018
|
let c = W(0), v = W(0);
|
|
43012
43019
|
const d = () => {
|
|
43013
43020
|
var z, K, R;
|
|
@@ -43654,7 +43661,7 @@ const RK = {
|
|
|
43654
43661
|
};
|
|
43655
43662
|
}
|
|
43656
43663
|
}, JK = /* @__PURE__ */ It(ZK, [["__scopeId", "data-v-e7c5cc23"]]), Wc = (t) => {
|
|
43657
|
-
const { locale: e } =
|
|
43664
|
+
const { locale: e } = dr();
|
|
43658
43665
|
return n5(new Date(t), { locale: e.value }).value.replace(/"/gi, "");
|
|
43659
43666
|
}, QK = { class: "kindy-comment-title" }, eU = { class: "kindy-comment-count" }, tU = { class: "kindy-comment-toolbar" }, nU = { class: "kindy-comment-content kindy-scrollbar" }, rU = {
|
|
43660
43667
|
key: 0,
|
|
@@ -44955,7 +44962,7 @@ const RK = {
|
|
|
44955
44962
|
}, 8, ["visible", "attach"]);
|
|
44956
44963
|
};
|
|
44957
44964
|
}
|
|
44958
|
-
}, Ce = /* @__PURE__ */ It(lY, [["__scopeId", "data-v-
|
|
44965
|
+
}, Ce = /* @__PURE__ */ It(lY, [["__scopeId", "data-v-4afc5cde"]]), iY = {
|
|
44959
44966
|
__name: "writing-mode",
|
|
44960
44967
|
setup(t) {
|
|
44961
44968
|
var a, o, l;
|
|
@@ -45834,7 +45841,7 @@ const RK = {
|
|
|
45834
45841
|
])
|
|
45835
45842
|
]),
|
|
45836
45843
|
X("div", RY, [
|
|
45837
|
-
(N(), de(Me, null, bt(a, (_, I) =>
|
|
45844
|
+
(N(), de(Me, null, bt(a, (_, I) => yr(X("div", {
|
|
45838
45845
|
key: I,
|
|
45839
45846
|
class: "kindy-math-select-item",
|
|
45840
45847
|
onClick: (T) => v(_)
|
|
@@ -48294,7 +48301,7 @@ class qq {
|
|
|
48294
48301
|
}
|
|
48295
48302
|
// 创建 iframe
|
|
48296
48303
|
createFrame() {
|
|
48297
|
-
const e = Object.keys(this.params).map((o) => `${o}=${this.params[o]}`).join("&"), { locale: n } =
|
|
48304
|
+
const e = Object.keys(this.params).map((o) => `${o}=${this.params[o]}`).join("&"), { locale: n } = dr(), r = Yq[n.value], a = document.createElement("iframe");
|
|
48298
48305
|
return a.setAttribute("class", "kindy-diagrams-iframe"), a.setAttribute("src", `${this.domain}?${e}&lang=${r}`), a;
|
|
48299
48306
|
}
|
|
48300
48307
|
// diagrams页面和当前页面通信
|
|
@@ -48760,7 +48767,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
48760
48767
|
return e.toString();
|
|
48761
48768
|
let n = [...e];
|
|
48762
48769
|
return n.includes(`${t}/*`) || e.length === 0 ? n = Cu[t] : n.filter((r) => r.startsWith(t)).length > 0 ? n = e.filter((r) => Cu[t].includes(r)) : n = ["notAllow"], n.length === 0 ? "" : n.toString();
|
|
48763
|
-
}, dG =
|
|
48770
|
+
}, dG = Cr.create({
|
|
48764
48771
|
name: "file",
|
|
48765
48772
|
group: "block",
|
|
48766
48773
|
atom: !0,
|
|
@@ -48819,7 +48826,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
48819
48826
|
];
|
|
48820
48827
|
},
|
|
48821
48828
|
addNodeView() {
|
|
48822
|
-
return
|
|
48829
|
+
return kr(cG);
|
|
48823
48830
|
},
|
|
48824
48831
|
addCommands() {
|
|
48825
48832
|
return {
|
|
@@ -49005,7 +49012,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49005
49012
|
setup(t, { emit: e }) {
|
|
49006
49013
|
const n = t, r = e, a = ne("container"), o = ne("options");
|
|
49007
49014
|
ne("openFilePicker", null);
|
|
49008
|
-
const l = ne("filePicker", null), { t: i } =
|
|
49015
|
+
const l = ne("filePicker", null), { t: i } = dr(), u = W(null), s = W(null), c = W(null), v = W(null), d = new bg();
|
|
49009
49016
|
let m = W("company"), f = null, h = W(!1), g = W(null);
|
|
49010
49017
|
const b = O(() => GS(o.value)), y = O(() => {
|
|
49011
49018
|
var K, R;
|
|
@@ -49298,7 +49305,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49298
49305
|
}
|
|
49299
49306
|
},
|
|
49300
49307
|
setup(t) {
|
|
49301
|
-
const e = t, n = ne("uploadFileMap"), r = ne("editor"), { t: a } =
|
|
49308
|
+
const e = t, n = ne("uploadFileMap"), r = ne("editor"), { t: a } = dr();
|
|
49302
49309
|
let o = W(!1);
|
|
49303
49310
|
const l = (i) => {
|
|
49304
49311
|
var c, v, d, m, f, h;
|
|
@@ -49366,7 +49373,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49366
49373
|
},
|
|
49367
49374
|
emits: ["update:visible", "confirm"],
|
|
49368
49375
|
setup(t, { emit: e }) {
|
|
49369
|
-
const n = t, r = e, { popupVisible: a, togglePopup: o } = In(), l = ne("container"), i = ne("options"), { t: u } =
|
|
49376
|
+
const n = t, r = e, { popupVisible: a, togglePopup: o } = In(), l = ne("container"), i = ne("options"), { t: u } = dr(), s = [
|
|
49370
49377
|
{ label: "CODE128", value: "CODE128" },
|
|
49371
49378
|
{ label: "CODE128 A", value: "CODE128A" },
|
|
49372
49379
|
{ label: "CODE128 B", value: "CODE128B" },
|
|
@@ -49722,7 +49729,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49722
49729
|
class: "kindy-barcode-empty",
|
|
49723
49730
|
textContent: se(k(u)("tools.barcode.renderError"))
|
|
49724
49731
|
}, null, 8, VG)) : oe("", !0),
|
|
49725
|
-
|
|
49732
|
+
yr((N(), de("svg", {
|
|
49726
49733
|
id: "variable-barcode",
|
|
49727
49734
|
ref_key: "barcodeSvgRef",
|
|
49728
49735
|
ref: g
|
|
@@ -49754,7 +49761,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49754
49761
|
}
|
|
49755
49762
|
},
|
|
49756
49763
|
setup(t) {
|
|
49757
|
-
const e = t, n = ne("editor"), { t: r } =
|
|
49764
|
+
const e = t, n = ne("editor"), { t: r } = dr();
|
|
49758
49765
|
let a = W(!1);
|
|
49759
49766
|
const o = O(() => e.replace || !!e.content), l = (i) => {
|
|
49760
49767
|
var u, s, c, v;
|
|
@@ -49814,7 +49821,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
49814
49821
|
},
|
|
49815
49822
|
emits: ["update:visible", "confirm"],
|
|
49816
49823
|
setup(t, { emit: e }) {
|
|
49817
|
-
const n = t, r = e, a = ne("container"), { t: o } =
|
|
49824
|
+
const n = t, r = e, a = ne("container"), { t: o } = dr(), l = [
|
|
49818
49825
|
{ label: o("tools.qrcode.levelL"), value: "L" },
|
|
49819
49826
|
{ label: o("tools.qrcode.levelM"), value: "M" },
|
|
49820
49827
|
{ label: o("tools.qrcode.levelQ"), value: "Q" },
|
|
@@ -50032,7 +50039,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
50032
50039
|
}
|
|
50033
50040
|
},
|
|
50034
50041
|
setup(t) {
|
|
50035
|
-
const e = t, n = ne("editor"), { t: r } =
|
|
50042
|
+
const e = t, n = ne("editor"), { t: r } = dr();
|
|
50036
50043
|
let a = W(!1);
|
|
50037
50044
|
const o = O(() => e.replace || !!e.content), l = (i) => {
|
|
50038
50045
|
var u, s, c, v;
|
|
@@ -50099,7 +50106,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
50099
50106
|
setup(t, { emit: e }) {
|
|
50100
50107
|
const n = t, r = e, a = ne("container"), o = ne("options");
|
|
50101
50108
|
ne("openFilePicker", null);
|
|
50102
|
-
const l = ne("filePicker", null), { t: i } =
|
|
50109
|
+
const l = ne("filePicker", null), { t: i } = dr(), u = [
|
|
50103
50110
|
{ content: "2", value: 2 },
|
|
50104
50111
|
{ content: "3", value: 3 },
|
|
50105
50112
|
{ content: "4", value: 4 },
|
|
@@ -50501,7 +50508,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
50501
50508
|
}
|
|
50502
50509
|
},
|
|
50503
50510
|
setup(t) {
|
|
50504
|
-
const e = t, n = ne("uploadFileMap"), r = ne("editor"), { t: a } =
|
|
50511
|
+
const e = t, n = ne("uploadFileMap"), r = ne("editor"), { t: a } = dr();
|
|
50505
50512
|
let o = W(!1);
|
|
50506
50513
|
const l = (i) => {
|
|
50507
50514
|
var c, v, d, m;
|
|
@@ -51930,7 +51937,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
51930
51937
|
enabled: "Enabled"
|
|
51931
51938
|
}
|
|
51932
51939
|
}, QS = async (t, e) => {
|
|
51933
|
-
const { locale: n } =
|
|
51940
|
+
const { locale: n } = dr();
|
|
51934
51941
|
return await da(`${e}/libs/plyr/plyr.css`, "css", "plyr-style"), await da(`${e}/libs/plyr/plyr.min.js`, "script", "plyr-script"), new Plyr(t, {
|
|
51935
51942
|
i18n: GX[n.value],
|
|
51936
51943
|
settings: [],
|
|
@@ -52002,7 +52009,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
52002
52009
|
}, {
|
|
52003
52010
|
default: ee(() => [
|
|
52004
52011
|
X("div", XX, [
|
|
52005
|
-
|
|
52012
|
+
yr(X("audio", {
|
|
52006
52013
|
ref_key: "audioRef",
|
|
52007
52014
|
ref: u,
|
|
52008
52015
|
src: n.value.src,
|
|
@@ -52018,7 +52025,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
52018
52025
|
_: 1
|
|
52019
52026
|
}, 8, ["id", "style"]));
|
|
52020
52027
|
}
|
|
52021
|
-
}, eZ =
|
|
52028
|
+
}, eZ = Cr.create({
|
|
52022
52029
|
name: "audio",
|
|
52023
52030
|
group: "block",
|
|
52024
52031
|
atom: !0,
|
|
@@ -52057,7 +52064,7 @@ const yg = (t) => t instanceof RangeError && /outside of fragment|out of range/i
|
|
|
52057
52064
|
return ["audio", Fn(t)];
|
|
52058
52065
|
},
|
|
52059
52066
|
addNodeView() {
|
|
52060
|
-
return
|
|
52067
|
+
return kr(QX);
|
|
52061
52068
|
},
|
|
52062
52069
|
addCommands() {
|
|
52063
52070
|
return {
|
|
@@ -52404,7 +52411,7 @@ const rZ = G5.configure({
|
|
|
52404
52411
|
});
|
|
52405
52412
|
};
|
|
52406
52413
|
}
|
|
52407
|
-
}, bZ =
|
|
52414
|
+
}, bZ = Cr.create({
|
|
52408
52415
|
name: "callout",
|
|
52409
52416
|
group: "block",
|
|
52410
52417
|
content: "paragraph+",
|
|
@@ -52435,7 +52442,7 @@ const rZ = G5.configure({
|
|
|
52435
52442
|
];
|
|
52436
52443
|
},
|
|
52437
52444
|
addNodeView() {
|
|
52438
|
-
return
|
|
52445
|
+
return kr(pZ);
|
|
52439
52446
|
},
|
|
52440
52447
|
addCommands() {
|
|
52441
52448
|
return {
|
|
@@ -52619,7 +52626,7 @@ const rZ = G5.configure({
|
|
|
52619
52626
|
};
|
|
52620
52627
|
},
|
|
52621
52628
|
addNodeView() {
|
|
52622
|
-
return
|
|
52629
|
+
return kr(wZ);
|
|
52623
52630
|
}
|
|
52624
52631
|
}), SZ = xZ.configure({
|
|
52625
52632
|
lowlight: u_(s_),
|
|
@@ -52808,7 +52815,7 @@ const AZ = (t, e, n) => {
|
|
|
52808
52815
|
), e.preventDefault(), !0;
|
|
52809
52816
|
}, RZ = (t) => {
|
|
52810
52817
|
const e = t == null ? void 0 : t.handleWidth, n = t == null ? void 0 : t.columnMinWidth;
|
|
52811
|
-
return new
|
|
52818
|
+
return new pr({
|
|
52812
52819
|
key: ca,
|
|
52813
52820
|
state: {
|
|
52814
52821
|
init: () => new Kc(-1, !1),
|
|
@@ -52832,7 +52839,7 @@ const AZ = (t, e, n) => {
|
|
|
52832
52839
|
}
|
|
52833
52840
|
}
|
|
52834
52841
|
});
|
|
52835
|
-
}, NZ =
|
|
52842
|
+
}, NZ = Cr.create({
|
|
52836
52843
|
name: "column",
|
|
52837
52844
|
group: "block",
|
|
52838
52845
|
content: "block+",
|
|
@@ -52862,7 +52869,7 @@ const AZ = (t, e, n) => {
|
|
|
52862
52869
|
0
|
|
52863
52870
|
];
|
|
52864
52871
|
}
|
|
52865
|
-
}), BZ =
|
|
52872
|
+
}), BZ = Cr.create({
|
|
52866
52873
|
name: "columnContainer",
|
|
52867
52874
|
group: "block",
|
|
52868
52875
|
content: "column+",
|
|
@@ -52916,7 +52923,7 @@ const AZ = (t, e, n) => {
|
|
|
52916
52923
|
node: t.nodeAfter,
|
|
52917
52924
|
pos: t.pos
|
|
52918
52925
|
} : null);
|
|
52919
|
-
}, WZ = () => new
|
|
52926
|
+
}, WZ = () => new pr({
|
|
52920
52927
|
appendTransaction(t, e, n) {
|
|
52921
52928
|
var v;
|
|
52922
52929
|
if (t.some((d) => d.getMeta("columnsAutoFocus")) || !t.some((d) => d.docChanged) || !t.some(VZ))
|
|
@@ -53178,7 +53185,7 @@ const AZ = (t, e, n) => {
|
|
|
53178
53185
|
});
|
|
53179
53186
|
};
|
|
53180
53187
|
}
|
|
53181
|
-
}, XZ =
|
|
53188
|
+
}, XZ = Cr.create({
|
|
53182
53189
|
name: "datetime",
|
|
53183
53190
|
group: "inline",
|
|
53184
53191
|
inline: !0,
|
|
@@ -53205,7 +53212,7 @@ const AZ = (t, e, n) => {
|
|
|
53205
53212
|
];
|
|
53206
53213
|
},
|
|
53207
53214
|
addNodeView() {
|
|
53208
|
-
return
|
|
53215
|
+
return kr(GZ);
|
|
53209
53216
|
},
|
|
53210
53217
|
addCommands() {
|
|
53211
53218
|
return {
|
|
@@ -53328,7 +53335,7 @@ const AZ = (t, e, n) => {
|
|
|
53328
53335
|
_: 1
|
|
53329
53336
|
}, 8, ["id", "style"]));
|
|
53330
53337
|
}
|
|
53331
|
-
}, eJ =
|
|
53338
|
+
}, eJ = Cr.create({
|
|
53332
53339
|
name: "echarts",
|
|
53333
53340
|
inline: !1,
|
|
53334
53341
|
group: "block",
|
|
@@ -53395,7 +53402,7 @@ const AZ = (t, e, n) => {
|
|
|
53395
53402
|
return ["echarts", Fn(t)];
|
|
53396
53403
|
},
|
|
53397
53404
|
addNodeView() {
|
|
53398
|
-
return
|
|
53405
|
+
return kr(QZ);
|
|
53399
53406
|
},
|
|
53400
53407
|
addCommands() {
|
|
53401
53408
|
return {
|
|
@@ -53484,7 +53491,7 @@ function rO(t) {
|
|
|
53484
53491
|
}
|
|
53485
53492
|
const nJ = (t) => {
|
|
53486
53493
|
const { key: e, editor: n, onPaste: r, onDrop: a, allowedMimeTypes: o } = t;
|
|
53487
|
-
return new
|
|
53494
|
+
return new pr({
|
|
53488
53495
|
key: e || new Er("file-handler"),
|
|
53489
53496
|
props: {
|
|
53490
53497
|
handleDrop(l, i) {
|
|
@@ -53744,7 +53751,7 @@ const nJ = (t) => {
|
|
|
53744
53751
|
},
|
|
53745
53752
|
addProseMirrorPlugins() {
|
|
53746
53753
|
return [
|
|
53747
|
-
new
|
|
53754
|
+
new pr({
|
|
53748
53755
|
key: new Er("footnoteRules"),
|
|
53749
53756
|
filterTransaction(t) {
|
|
53750
53757
|
const { from: e, to: n } = t.selection;
|
|
@@ -53818,7 +53825,7 @@ const nJ = (t) => {
|
|
|
53818
53825
|
addExtensions() {
|
|
53819
53826
|
return [cJ];
|
|
53820
53827
|
}
|
|
53821
|
-
}), Sk = "data-ref-num", vf = "kindy-node-footnote-ref", vJ = (t) => String(t || "").replace(/\s+/g, " ").trim(), fJ =
|
|
53828
|
+
}), Sk = "data-ref-num", vf = "kindy-node-footnote-ref", vJ = (t) => String(t || "").replace(/\s+/g, " ").trim(), fJ = Cr.create({
|
|
53822
53829
|
name: "footnoteReference",
|
|
53823
53830
|
inline: !0,
|
|
53824
53831
|
content: "text*",
|
|
@@ -53897,7 +53904,7 @@ const nJ = (t) => {
|
|
|
53897
53904
|
return n;
|
|
53898
53905
|
};
|
|
53899
53906
|
return [
|
|
53900
|
-
new
|
|
53907
|
+
new pr({
|
|
53901
53908
|
key: new Er("footnotePasteHandler"),
|
|
53902
53909
|
props: {
|
|
53903
53910
|
transformPasted(n) {
|
|
@@ -53914,7 +53921,7 @@ const nJ = (t) => {
|
|
|
53914
53921
|
}
|
|
53915
53922
|
}
|
|
53916
53923
|
}),
|
|
53917
|
-
new
|
|
53924
|
+
new pr({
|
|
53918
53925
|
key: new Er("footnoteRefClick"),
|
|
53919
53926
|
props: {
|
|
53920
53927
|
handleDoubleClickOn(n, r, a, o, l) {
|
|
@@ -53935,7 +53942,7 @@ const nJ = (t) => {
|
|
|
53935
53942
|
}
|
|
53936
53943
|
}
|
|
53937
53944
|
}),
|
|
53938
|
-
new
|
|
53945
|
+
new pr({
|
|
53939
53946
|
key: new Er("footnoteRefHoverTitle"),
|
|
53940
53947
|
props: {
|
|
53941
53948
|
handleDOMEvents: {
|
|
@@ -54006,7 +54013,7 @@ const nJ = (t) => {
|
|
|
54006
54013
|
},
|
|
54007
54014
|
addProseMirrorPlugins() {
|
|
54008
54015
|
return [
|
|
54009
|
-
new
|
|
54016
|
+
new pr({
|
|
54010
54017
|
key: new Er("format-painter"),
|
|
54011
54018
|
state: {
|
|
54012
54019
|
init: () => [],
|
|
@@ -54175,7 +54182,7 @@ const nJ = (t) => {
|
|
|
54175
54182
|
_: 1
|
|
54176
54183
|
}, 8, ["id", "style"]));
|
|
54177
54184
|
}
|
|
54178
|
-
}, bJ =
|
|
54185
|
+
}, bJ = Cr.create({
|
|
54179
54186
|
name: "iframe",
|
|
54180
54187
|
inline: !1,
|
|
54181
54188
|
group: "block",
|
|
@@ -54209,7 +54216,7 @@ const nJ = (t) => {
|
|
|
54209
54216
|
return ["iframe", Fn(t)];
|
|
54210
54217
|
},
|
|
54211
54218
|
addNodeView() {
|
|
54212
|
-
return
|
|
54219
|
+
return kr(pJ);
|
|
54213
54220
|
},
|
|
54214
54221
|
addCommands() {
|
|
54215
54222
|
return {
|
|
@@ -54493,11 +54500,11 @@ const nJ = (t) => {
|
|
|
54493
54500
|
if (yt && ln) return { width: yt, height: ln };
|
|
54494
54501
|
const yn = ut.getAttribute("viewBox");
|
|
54495
54502
|
if (yn) {
|
|
54496
|
-
const un = yn.trim().split(/[\s,]+/).map((
|
|
54497
|
-
if (un.length === 4 && un.every((
|
|
54498
|
-
const [, ,
|
|
54499
|
-
if (
|
|
54500
|
-
return { width:
|
|
54503
|
+
const un = yn.trim().split(/[\s,]+/).map((mr) => Number.parseFloat(mr));
|
|
54504
|
+
if (un.length === 4 && un.every((mr) => Number.isFinite(mr))) {
|
|
54505
|
+
const [, , mr, Oo] = un;
|
|
54506
|
+
if (mr > 0 && Oo > 0)
|
|
54507
|
+
return { width: mr, height: Oo };
|
|
54501
54508
|
}
|
|
54502
54509
|
}
|
|
54503
54510
|
} catch (Oe) {
|
|
@@ -54555,7 +54562,7 @@ const nJ = (t) => {
|
|
|
54555
54562
|
return;
|
|
54556
54563
|
const ut = rt.encode(String(d.value.content)), yt = await fetch(`${Oe}/svg/${ut}`);
|
|
54557
54564
|
yt.ok && Bn(await yt.text(), pe);
|
|
54558
|
-
},
|
|
54565
|
+
}, vr = (pe, Oe) => {
|
|
54559
54566
|
try {
|
|
54560
54567
|
return {
|
|
54561
54568
|
...Oe,
|
|
@@ -54565,7 +54572,7 @@ const nJ = (t) => {
|
|
|
54565
54572
|
return Oe;
|
|
54566
54573
|
}
|
|
54567
54574
|
}, Jt = async (pe) => {
|
|
54568
|
-
var
|
|
54575
|
+
var mr;
|
|
54569
54576
|
await da(
|
|
54570
54577
|
`${u.value.cdnUrl}/libs/flowchart/raphael.min.js`,
|
|
54571
54578
|
"script",
|
|
@@ -54578,12 +54585,12 @@ const nJ = (t) => {
|
|
|
54578
54585
|
const { flowchart: Oe } = window;
|
|
54579
54586
|
if (!(Oe != null && Oe.parse))
|
|
54580
54587
|
return;
|
|
54581
|
-
const { data: rt, config: ut } = normalizeFlowchartContent(d.value.content), yt = initFlowchartBaseConfig(ut), ln =
|
|
54588
|
+
const { data: rt, config: ut } = normalizeFlowchartContent(d.value.content), yt = initFlowchartBaseConfig(ut), ln = vr(yt.startNode, {
|
|
54582
54589
|
"font-color": "#000000",
|
|
54583
54590
|
fill: "#ADD8E6",
|
|
54584
54591
|
stroke: "#ADD8E6"
|
|
54585
|
-
}), yn =
|
|
54586
|
-
(
|
|
54592
|
+
}), yn = vr(
|
|
54593
|
+
(mr = yt.endNode) != null ? mr : yt.end,
|
|
54587
54594
|
{
|
|
54588
54595
|
"font-color": "#000000",
|
|
54589
54596
|
fill: "#ADD8E6",
|
|
@@ -54693,12 +54700,12 @@ const nJ = (t) => {
|
|
|
54693
54700
|
});
|
|
54694
54701
|
}, Rn = (pe) => {
|
|
54695
54702
|
_.value || pe.preventDefault();
|
|
54696
|
-
}, wr = (pe) => pe instanceof HTMLElement && !!pe.closest(".es-drager-dot, .es-drager-rotate"),
|
|
54703
|
+
}, wr = (pe) => pe instanceof HTMLElement && !!pe.closest(".es-drager-dot, .es-drager-rotate"), fr = (pe) => {
|
|
54697
54704
|
if (wr(pe.target) || (Be(), bn(), C.value = !0, pe.stopPropagation(), !G.value))
|
|
54698
54705
|
return;
|
|
54699
54706
|
const Oe = pe.clientX, rt = pe.clientY, ut = Number(d.value.left) || 0, yt = Number(d.value.top) || 0;
|
|
54700
54707
|
let ln = null, yn = null, un = !1;
|
|
54701
|
-
const
|
|
54708
|
+
const mr = (_a) => {
|
|
54702
54709
|
const Rl = _a.clientX - Oe, ls = _a.clientY - rt;
|
|
54703
54710
|
if (!un) {
|
|
54704
54711
|
if (Math.abs(Rl) < 3 && Math.abs(ls) < 3)
|
|
@@ -54716,9 +54723,9 @@ const nJ = (t) => {
|
|
|
54716
54723
|
!ji || !yn || (ji.style.left = `${yn.left}px`, ji.style.top = `${yn.top}px`);
|
|
54717
54724
|
}));
|
|
54718
54725
|
}, Oo = () => {
|
|
54719
|
-
document.removeEventListener("mousemove",
|
|
54726
|
+
document.removeEventListener("mousemove", mr), document.removeEventListener("mouseup", Oo), A && (cancelAnimationFrame(A), A = 0), !(!un || !ln) && c(ln);
|
|
54720
54727
|
};
|
|
54721
|
-
document.addEventListener("mousemove",
|
|
54728
|
+
document.addEventListener("mousemove", mr), document.addEventListener("mouseup", Oo);
|
|
54722
54729
|
}, ea = async (pe) => {
|
|
54723
54730
|
_.value || on(pe == null ? void 0 : pe.target) || d.value.previewType === null || (d.value.id === null && _e({ id: Lt(10) }), await et(), i.value.visible = !0, i.value.current = d.value.id);
|
|
54724
54731
|
};
|
|
@@ -54849,7 +54856,7 @@ const nJ = (t) => {
|
|
|
54849
54856
|
key: 1,
|
|
54850
54857
|
class: "kindy-node-image-frame",
|
|
54851
54858
|
style: Rt(Xe.value),
|
|
54852
|
-
onMousedownCapture:
|
|
54859
|
+
onMousedownCapture: fr
|
|
54853
54860
|
}, [
|
|
54854
54861
|
p(k(zu), {
|
|
54855
54862
|
class: ht(["kindy-select-outline", xe.value]),
|
|
@@ -54923,7 +54930,7 @@ const nJ = (t) => {
|
|
|
54923
54930
|
_: 1
|
|
54924
54931
|
}, 8, ["class", "style", "selected", "rotatable", "disabled", "angle", "width", "height", "max-width", "max-height", "equal-proportion"])
|
|
54925
54932
|
], 36)),
|
|
54926
|
-
|
|
54933
|
+
yr(p(k(Bu), {
|
|
54927
54934
|
as: "figcaption",
|
|
54928
54935
|
class: ht(["kindy-node-image-alt kindy-node-image-alt-content", [be.value, { "is-empty": Y.value }]]),
|
|
54929
54936
|
"data-placeholder": te.value,
|
|
@@ -55198,11 +55205,11 @@ const nJ = (t) => {
|
|
|
55198
55205
|
];
|
|
55199
55206
|
},
|
|
55200
55207
|
addNodeView() {
|
|
55201
|
-
return
|
|
55208
|
+
return kr(aO);
|
|
55202
55209
|
},
|
|
55203
55210
|
addProseMirrorPlugins() {
|
|
55204
55211
|
return [
|
|
55205
|
-
new
|
|
55212
|
+
new pr({
|
|
55206
55213
|
key: new Er("image-paste-normalize"),
|
|
55207
55214
|
props: {
|
|
55208
55215
|
transformPastedHTML: (t) => AJ(t)
|
|
@@ -55247,7 +55254,7 @@ const nJ = (t) => {
|
|
|
55247
55254
|
return ["inline-img", Fn(t)];
|
|
55248
55255
|
},
|
|
55249
55256
|
addNodeView() {
|
|
55250
|
-
return
|
|
55257
|
+
return kr(aO);
|
|
55251
55258
|
},
|
|
55252
55259
|
addCommands() {
|
|
55253
55260
|
var t;
|
|
@@ -55446,7 +55453,7 @@ const nJ = (t) => {
|
|
|
55446
55453
|
addProseMirrorPlugins() {
|
|
55447
55454
|
const { editor: t } = this;
|
|
55448
55455
|
return [
|
|
55449
|
-
new
|
|
55456
|
+
new pr({
|
|
55450
55457
|
key: ro,
|
|
55451
55458
|
view(e) {
|
|
55452
55459
|
return Ak(e), {
|
|
@@ -56350,7 +56357,7 @@ const Fo = (t) => {
|
|
|
56350
56357
|
}, 8, ["class", "data-checked"]);
|
|
56351
56358
|
};
|
|
56352
56359
|
}
|
|
56353
|
-
}, hf = new Er("kindy-list-item-state"), vO = () =>
|
|
56360
|
+
}, hf = new Er("kindy-list-item-state"), vO = () => kr(vQ), Fk = (t, e = 0) => ({
|
|
56354
56361
|
activeListItemPos: nQ(t),
|
|
56355
56362
|
structureVersion: e
|
|
56356
56363
|
}), Lk = (t, e) => (t == null ? void 0 : t.activeListItemPos) === e.activeListItemPos && (t == null ? void 0 : t.structureVersion) === e.structureVersion, fQ = o_.extend({
|
|
@@ -56370,7 +56377,7 @@ const Fo = (t) => {
|
|
|
56370
56377
|
!n || Lk(t, n) || (t.activeListItemPos = n.activeListItemPos, t.structureVersion = n.structureVersion);
|
|
56371
56378
|
};
|
|
56372
56379
|
return [
|
|
56373
|
-
new
|
|
56380
|
+
new pr({
|
|
56374
56381
|
key: hf,
|
|
56375
56382
|
state: {
|
|
56376
56383
|
init: (n, r) => Fk(r),
|
|
@@ -56946,7 +56953,7 @@ const Fo = (t) => {
|
|
|
56946
56953
|
addProseMirrorPlugins() {
|
|
56947
56954
|
const { types: t } = this.options;
|
|
56948
56955
|
return [
|
|
56949
|
-
new
|
|
56956
|
+
new pr({
|
|
56950
56957
|
key: new Er("select-node"),
|
|
56951
56958
|
props: {
|
|
56952
56959
|
handleDOMEvents: {
|
|
@@ -57213,7 +57220,7 @@ const Kk = (t, e) => {
|
|
|
57213
57220
|
html: r,
|
|
57214
57221
|
hasImage: a
|
|
57215
57222
|
}, Xs;
|
|
57216
|
-
}, iee = () => new
|
|
57223
|
+
}, iee = () => new pr({
|
|
57217
57224
|
key: new Er("office-paste"),
|
|
57218
57225
|
props: {
|
|
57219
57226
|
transformPastedHTML(t) {
|
|
@@ -57346,7 +57353,7 @@ const Kk = (t, e) => {
|
|
|
57346
57353
|
});
|
|
57347
57354
|
};
|
|
57348
57355
|
}
|
|
57349
|
-
}, fee =
|
|
57356
|
+
}, fee = Cr.create({
|
|
57350
57357
|
name: "optionBox",
|
|
57351
57358
|
group: "inline",
|
|
57352
57359
|
inline: !0,
|
|
@@ -57391,7 +57398,7 @@ const Kk = (t, e) => {
|
|
|
57391
57398
|
];
|
|
57392
57399
|
},
|
|
57393
57400
|
addNodeView() {
|
|
57394
|
-
return
|
|
57401
|
+
return kr(vee);
|
|
57395
57402
|
},
|
|
57396
57403
|
addCommands() {
|
|
57397
57404
|
return {
|
|
@@ -57564,7 +57571,7 @@ const Kk = (t, e) => {
|
|
|
57564
57571
|
})
|
|
57565
57572
|
};
|
|
57566
57573
|
}
|
|
57567
|
-
}), _ee =
|
|
57574
|
+
}), _ee = Cr.create({
|
|
57568
57575
|
name: "pageBreak",
|
|
57569
57576
|
group: "block",
|
|
57570
57577
|
addOptions() {
|
|
@@ -57623,7 +57630,7 @@ const Kk = (t, e) => {
|
|
|
57623
57630
|
},
|
|
57624
57631
|
addProseMirrorPlugins() {
|
|
57625
57632
|
return [
|
|
57626
|
-
new
|
|
57633
|
+
new pr({
|
|
57627
57634
|
key: new Er("placeholder"),
|
|
57628
57635
|
props: {
|
|
57629
57636
|
decorations: ({ doc: t, selection: e }) => {
|
|
@@ -57780,7 +57787,7 @@ const Kk = (t, e) => {
|
|
|
57780
57787
|
addProseMirrorPlugins() {
|
|
57781
57788
|
const { editor: t } = this, { searchResultClass: e, disableRegex: n } = this.options, r = (l) => t.storage.searchAndReplace.lastSearchTerm = l, a = (l) => t.storage.searchAndReplace.lastCaseSensitive = l, o = (l) => t.storage.searchAndReplace.lastResultIndex = l;
|
|
57782
57789
|
return [
|
|
57783
|
-
new
|
|
57790
|
+
new pr({
|
|
57784
57791
|
key: "search-replace",
|
|
57785
57792
|
state: {
|
|
57786
57793
|
init: () => No.empty,
|
|
@@ -57907,7 +57914,7 @@ const Kk = (t, e) => {
|
|
|
57907
57914
|
_: 1
|
|
57908
57915
|
}));
|
|
57909
57916
|
}
|
|
57910
|
-
}, Nee =
|
|
57917
|
+
}, Nee = Cr.create({
|
|
57911
57918
|
name: "tag",
|
|
57912
57919
|
group: "inline",
|
|
57913
57920
|
inline: !0,
|
|
@@ -57931,7 +57938,7 @@ const Kk = (t, e) => {
|
|
|
57931
57938
|
];
|
|
57932
57939
|
},
|
|
57933
57940
|
addNodeView() {
|
|
57934
|
-
return
|
|
57941
|
+
return kr(Ree);
|
|
57935
57942
|
},
|
|
57936
57943
|
addCommands() {
|
|
57937
57944
|
return {
|
|
@@ -58051,7 +58058,7 @@ const Kk = (t, e) => {
|
|
|
58051
58058
|
_: 1
|
|
58052
58059
|
}, 8, ["id", "style"]));
|
|
58053
58060
|
}
|
|
58054
|
-
}, Hee =
|
|
58061
|
+
}, Hee = Cr.create({
|
|
58055
58062
|
name: "textBox",
|
|
58056
58063
|
group: "block",
|
|
58057
58064
|
content: "inline*",
|
|
@@ -58105,7 +58112,7 @@ const Kk = (t, e) => {
|
|
|
58105
58112
|
return ["text-box", Fn(t), 0];
|
|
58106
58113
|
},
|
|
58107
58114
|
addNodeView() {
|
|
58108
|
-
return
|
|
58115
|
+
return kr(Vee);
|
|
58109
58116
|
},
|
|
58110
58117
|
addCommands() {
|
|
58111
58118
|
return {
|
|
@@ -58201,7 +58208,7 @@ const Kk = (t, e) => {
|
|
|
58201
58208
|
}, 8, ["id"]);
|
|
58202
58209
|
};
|
|
58203
58210
|
}
|
|
58204
|
-
}, qee =
|
|
58211
|
+
}, qee = Cr.create({
|
|
58205
58212
|
name: "toc",
|
|
58206
58213
|
group: "block",
|
|
58207
58214
|
atom: !0,
|
|
@@ -58219,7 +58226,7 @@ const Kk = (t, e) => {
|
|
|
58219
58226
|
return ["toc", Fn(this.options.HTMLAttributes, t)];
|
|
58220
58227
|
},
|
|
58221
58228
|
addNodeView() {
|
|
58222
|
-
return
|
|
58229
|
+
return kr(Yee);
|
|
58223
58230
|
},
|
|
58224
58231
|
addGlobalAttributes() {
|
|
58225
58232
|
return [
|
|
@@ -58457,7 +58464,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
58457
58464
|
onFocus: x[0] || (x[0] = (T) => it(v) ? v.value = !0 : v = !0)
|
|
58458
58465
|
}, {
|
|
58459
58466
|
default: ee(() => [
|
|
58460
|
-
|
|
58467
|
+
yr(X("video", {
|
|
58461
58468
|
ref_key: "videoRef",
|
|
58462
58469
|
ref: d,
|
|
58463
58470
|
src: n.value.src,
|
|
@@ -58478,7 +58485,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
58478
58485
|
_: 1
|
|
58479
58486
|
}, 8, ["id", "style"]));
|
|
58480
58487
|
}
|
|
58481
|
-
}, tte =
|
|
58488
|
+
}, tte = Cr.create({
|
|
58482
58489
|
name: "video",
|
|
58483
58490
|
group: "block",
|
|
58484
58491
|
atom: !0,
|
|
@@ -58523,7 +58530,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
58523
58530
|
return ["video", Fn(t)];
|
|
58524
58531
|
},
|
|
58525
58532
|
addNodeView() {
|
|
58526
|
-
return
|
|
58533
|
+
return kr(ete);
|
|
58527
58534
|
},
|
|
58528
58535
|
addCommands() {
|
|
58529
58536
|
return {
|
|
@@ -58996,13 +59003,13 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
58996
59003
|
spellcheck: ((B = k(r).document) == null ? void 0 : B.enableSpellcheck) && k(l).enableSpellcheck
|
|
58997
59004
|
}, null, 8, ["class", "editor", "style", "spellcheck"]),
|
|
58998
59005
|
k(C) && !k(e) ? (N(), de(Me, { key: 0 }, [
|
|
58999
|
-
(V = k(r).document) != null && V.enableBlockMenu ?
|
|
59006
|
+
(V = k(r).document) != null && V.enableBlockMenu ? yr((N(), J($, { key: 0 }, null, 512)), [
|
|
59000
59007
|
[
|
|
59001
59008
|
Yr,
|
|
59002
59009
|
k(n).zoomLevel === 100 && !((q = k(n).preview) != null && q.enabled) && k(C).isEditable
|
|
59003
59010
|
]
|
|
59004
59011
|
]) : oe("", !0),
|
|
59005
|
-
(U = k(r).document) != null && U.enableBubbleMenu ?
|
|
59012
|
+
(U = k(r).document) != null && U.enableBubbleMenu ? yr((N(), J(L, { key: 1 }, {
|
|
59006
59013
|
bubble_menu: ee((Y) => [
|
|
59007
59014
|
Gt(T.$slots, "bubble_menu", Lo(Ro(Y)))
|
|
59008
59015
|
]),
|
|
@@ -59514,7 +59521,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
59514
59521
|
}, OO = {
|
|
59515
59522
|
__name: "locale",
|
|
59516
59523
|
setup(t) {
|
|
59517
|
-
const e = ne("setLocale"), { locale: n } =
|
|
59524
|
+
const e = ne("setLocale"), { locale: n } = dr(), r = O(() => [
|
|
59518
59525
|
{
|
|
59519
59526
|
content: "🇻🇳 Tiếng Việt",
|
|
59520
59527
|
value: "vi-VN",
|
|
@@ -59549,7 +59556,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
59549
59556
|
__name: "theme",
|
|
59550
59557
|
setup(t) {
|
|
59551
59558
|
const e = ne("options"), n = ne("setTheme"), r = O(() => {
|
|
59552
|
-
const o =
|
|
59559
|
+
const o = gr("kindy-editor:theme", e.value.theme);
|
|
59553
59560
|
return [
|
|
59554
59561
|
{
|
|
59555
59562
|
content: ie("view.themeLight"),
|
|
@@ -59581,7 +59588,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
59581
59588
|
__name: "skin",
|
|
59582
59589
|
setup(t) {
|
|
59583
59590
|
const e = ne("options"), n = ne("page"), r = ne("setSkin"), a = O(() => {
|
|
59584
|
-
const l =
|
|
59591
|
+
const l = gr("kindy-editor:skin", e.value.skin);
|
|
59585
59592
|
return [
|
|
59586
59593
|
{
|
|
59587
59594
|
content: ie("view.skinDefault"),
|
|
@@ -62642,7 +62649,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
62642
62649
|
a("menu-change", d), await et(), (m = c.value) == null || m.update();
|
|
62643
62650
|
};
|
|
62644
62651
|
return (d, m) => {
|
|
62645
|
-
const f = Ot, h = Zo, g = Xr, b = L4, y = F4, C = j4, w = I4, S = $4, x = D4, _ = lg, I = A4, T = os, M = Yd, $ = ag, L = rg, D = E4, j = M4, E = Ll, P = as, F = ng, A = T4, B = P4, V = O4, q = S4, U = x4, z = w4, K = _4, R = k4, Y = jS, H = C4, G = y4, Z = b4, te = p4, ae = g4, le = h4, ue = kg, ce = m4, fe = Tg, ge = Pg, xe = Og, Ue = _g, Xe = Sg, Ae = f4, be = v4, me = d4, Ie = Mg, Se = c4, Je = s4, Pe = xg, we = u4, De = og, _e = i4, ke = l4, Be = o4, tt = a4, Le = wg, Ve = r4, We = n4, Ge = Gd, je = t4, He = e4, qe = gg, vt = hg, gt = mg, st = fg, ct = vg, re = dg, he = cg, Re = sg, ft = ug, _t = ig, wt = QO, Ft = JO, Xt = ZO, Et = XO, pt = GO, ot = qO, Kt = lv, mn = rv, kn = ov, At = av, Zt = Ud, an = tv, Bn = qd, _r = ev, zn = YO, ir = UO,
|
|
62652
|
+
const f = Ot, h = Zo, g = Xr, b = L4, y = F4, C = j4, w = I4, S = $4, x = D4, _ = lg, I = A4, T = os, M = Yd, $ = ag, L = rg, D = E4, j = M4, E = Ll, P = as, F = ng, A = T4, B = P4, V = O4, q = S4, U = x4, z = w4, K = _4, R = k4, Y = jS, H = C4, G = y4, Z = b4, te = p4, ae = g4, le = h4, ue = kg, ce = m4, fe = Tg, ge = Pg, xe = Og, Ue = _g, Xe = Sg, Ae = f4, be = v4, me = d4, Ie = Mg, Se = c4, Je = s4, Pe = xg, we = u4, De = og, _e = i4, ke = l4, Be = o4, tt = a4, Le = wg, Ve = r4, We = n4, Ge = Gd, je = t4, He = e4, qe = gg, vt = hg, gt = mg, st = fg, ct = vg, re = dg, he = cg, Re = sg, ft = ug, _t = ig, wt = QO, Ft = JO, Xt = ZO, Et = XO, pt = GO, ot = qO, Kt = lv, mn = rv, kn = ov, At = av, Zt = Ud, an = tv, Bn = qd, _r = ev, zn = YO, ir = UO, vr = KO, Jt = HO, Ja = VO, ka = zO, Na = BO, Bt = NO, Vt = RO, on = LO, bn = FO, Zn = jO, Vn = IO, Hn = $O, _n = DO, Ln = AO, Rn = EO, wr = MO, fr = TO, ea = PO, ta = OO, pe = SO, Oe = xO, rt = wO, ut = _O, yt = kO, ln = CO, yn = yO;
|
|
62646
62653
|
return N(), J(yn, {
|
|
62647
62654
|
ref_key: "scrollableRef",
|
|
62648
62655
|
ref: c,
|
|
@@ -62825,7 +62832,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
62825
62832
|
k(s) === "page" ? (N(), de(Me, { key: 5 }, [
|
|
62826
62833
|
X("div", xre, [
|
|
62827
62834
|
p(ir),
|
|
62828
|
-
k(i).layout === "page" ? (N(), J(
|
|
62835
|
+
k(i).layout === "page" ? (N(), J(vr, { key: 0 })) : oe("", !0),
|
|
62829
62836
|
k(i).layout === "page" ? (N(), J(Jt, { key: 1 })) : oe("", !0)
|
|
62830
62837
|
]),
|
|
62831
62838
|
X("div", Sre, [
|
|
@@ -62856,7 +62863,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
62856
62863
|
u("zoom-auto") ? oe("", !0) : (N(), J(wr, { key: 2 }))
|
|
62857
62864
|
]),
|
|
62858
62865
|
X("div", Ere, [
|
|
62859
|
-
u("skin") ? oe("", !0) : (N(), J(
|
|
62866
|
+
u("skin") ? oe("", !0) : (N(), J(fr, { key: 0 })),
|
|
62860
62867
|
u("theme") ? oe("", !0) : (N(), J(ea, { key: 1 })),
|
|
62861
62868
|
u("locale") ? oe("", !0) : (N(), J(ta, { key: 2 }))
|
|
62862
62869
|
]),
|
|
@@ -62908,7 +62915,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
62908
62915
|
n("menu-change", u), await et(), l.value && l.value.update();
|
|
62909
62916
|
};
|
|
62910
62917
|
return (u, s) => {
|
|
62911
|
-
const c = L4, v = F4, d = j4, m = I4, f = D4, h = lg, g = A4, b = os, y = Yd, C = ag, w = rg, S = E4, x = M4, _ = Ll, I = as, T = ng, M = T4, $ = P4, L = O4, D = S4, j = x4, E = w4, P = _4, F = k4, A = Kd, B = Wd, V = Hd, q = IS, U = $S, z = C4, K = y4, R = b4, Y = $4, H = p4, G = g4, Z = h4, te = kg, ae = m4, le = Tg, ue = Pg, ce = Og, fe = _g, ge = Sg, xe = f4, Ue = v4, Xe = d4, Ae = Mg, be = c4, me = s4, Ie = xg, Se = u4, Je = og, Pe = i4, we = l4, De = o4, _e = a4, ke = wg, Be = r4, tt = n4, Le = Gd, Ve = t4, We = e4, Ge = gg, je = hg, He = mg, qe = fg, vt = cg, gt = vg, st = dg, ct = sg, re = ug, he = ig, Re = QO, ft = JO, _t = ZO, wt = XO, Ft = GO, Xt = qO, Et = lv, pt = rv, ot = ov, Kt = av, mn = Ud, kn = tv, At = qd, Zt = ev, an = YO, Bn = UO, _r = KO, zn = HO, ir = VO,
|
|
62918
|
+
const c = L4, v = F4, d = j4, m = I4, f = D4, h = lg, g = A4, b = os, y = Yd, C = ag, w = rg, S = E4, x = M4, _ = Ll, I = as, T = ng, M = T4, $ = P4, L = O4, D = S4, j = x4, E = w4, P = _4, F = k4, A = Kd, B = Wd, V = Hd, q = IS, U = $S, z = C4, K = y4, R = b4, Y = $4, H = p4, G = g4, Z = h4, te = kg, ae = m4, le = Tg, ue = Pg, ce = Og, fe = _g, ge = Sg, xe = f4, Ue = v4, Xe = d4, Ae = Mg, be = c4, me = s4, Ie = xg, Se = u4, Je = og, Pe = i4, we = l4, De = o4, _e = a4, ke = wg, Be = r4, tt = n4, Le = Gd, Ve = t4, We = e4, Ge = gg, je = hg, He = mg, qe = fg, vt = cg, gt = vg, st = dg, ct = sg, re = ug, he = ig, Re = QO, ft = JO, _t = ZO, wt = XO, Ft = GO, Xt = qO, Et = lv, pt = rv, ot = ov, Kt = av, mn = Ud, kn = tv, At = qd, Zt = ev, an = YO, Bn = UO, _r = KO, zn = HO, ir = VO, vr = zO, Jt = BO, Ja = NO, ka = RO, Na = LO, Bt = FO, Vt = jO, on = IO, bn = $O, Zn = DO, Vn = AO, Hn = EO, _n = MO, Ln = TO, Rn = PO, wr = OO, fr = SO, ea = xO, ta = wO, pe = _O, Oe = kO, rt = CO, ut = yO;
|
|
62912
62919
|
return N(), de("div", Rre, [
|
|
62913
62920
|
t.menus.length > 1 ? (N(), de("div", Nre, [
|
|
62914
62921
|
(N(!0), de(Me, null, bt(t.menus, (yt) => (N(), de("div", {
|
|
@@ -63117,7 +63124,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
63117
63124
|
]),
|
|
63118
63125
|
X("div", Aae, [
|
|
63119
63126
|
p(ir),
|
|
63120
|
-
p(
|
|
63127
|
+
p(vr),
|
|
63121
63128
|
p(Jt),
|
|
63122
63129
|
o("watermark") ? oe("", !0) : (N(), J(Ja, { key: 0 })),
|
|
63123
63130
|
o("background") ? oe("", !0) : (N(), J(ka, { key: 1 }))
|
|
@@ -63148,7 +63155,7 @@ const Gee = (t) => t.reduce((e, n) => n.type === "paragraph" && n.content ? n.co
|
|
|
63148
63155
|
o("locale") ? oe("", !0) : (N(), J(wr, { key: 2 }))
|
|
63149
63156
|
]),
|
|
63150
63157
|
X("div", Lae, [
|
|
63151
|
-
o("reset") ? oe("", !0) : (N(), J(
|
|
63158
|
+
o("reset") ? oe("", !0) : (N(), J(fr, { key: 0 }))
|
|
63152
63159
|
]),
|
|
63153
63160
|
X("div", Rae, [
|
|
63154
63161
|
Gt(u.$slots, "toolbar_view", { toolbarMode: "ribbon" }, void 0, !0)
|
|
@@ -64867,7 +64874,7 @@ const roe = [
|
|
|
64867
64874
|
return null;
|
|
64868
64875
|
}
|
|
64869
64876
|
}, hoe = (t, e) => {
|
|
64870
|
-
const n =
|
|
64877
|
+
const n = gr("kindy-comment-sidebar-visible", !1), r = On({
|
|
64871
64878
|
comments: [],
|
|
64872
64879
|
activeId: null,
|
|
64873
64880
|
visible: n,
|
|
@@ -65095,7 +65102,7 @@ const roe = [
|
|
|
65095
65102
|
await et(), L.value = Lt();
|
|
65096
65103
|
}
|
|
65097
65104
|
), nt(() => {
|
|
65098
|
-
const re =
|
|
65105
|
+
const re = gr("kindy-editor:theme", v.value.theme), he = gr("kindy-editor:skin", v.value.skin);
|
|
65099
65106
|
Z(re.value), te(he.value), window.addEventListener("beforeunload", B);
|
|
65100
65107
|
}), Ut(() => {
|
|
65101
65108
|
window.removeEventListener("beforeunload", B), V(), We();
|
|
@@ -65296,7 +65303,7 @@ const roe = [
|
|
|
65296
65303
|
},
|
|
65297
65304
|
{ deep: !0 }
|
|
65298
65305
|
);
|
|
65299
|
-
const { t: q, locale: U, mergeLocaleMessage: z } =
|
|
65306
|
+
const { t: q, locale: U, mergeLocaleMessage: z } = dr(), K = gr("kindy-editor:locale", v.value.locale);
|
|
65300
65307
|
U.value = K.value, PK();
|
|
65301
65308
|
const R = (re) => {
|
|
65302
65309
|
var Re;
|
|
@@ -65314,11 +65321,21 @@ const roe = [
|
|
|
65314
65321
|
const H = W({
|
|
65315
65322
|
"zh-CN": Iw,
|
|
65316
65323
|
"en-US": qk,
|
|
65317
|
-
"vi-VN":
|
|
65324
|
+
"vi-VN": {
|
|
65325
|
+
...qk,
|
|
65326
|
+
dialog: {
|
|
65327
|
+
confirm: "Xác nhận",
|
|
65328
|
+
cancel: "Hủy"
|
|
65329
|
+
},
|
|
65330
|
+
popconfirm: {
|
|
65331
|
+
confirm: "Xác nhận",
|
|
65332
|
+
cancel: "Hủy"
|
|
65333
|
+
}
|
|
65334
|
+
}
|
|
65318
65335
|
}), G = (re) => {
|
|
65319
65336
|
try {
|
|
65320
65337
|
v.value = Gk(re, c);
|
|
65321
|
-
const he =
|
|
65338
|
+
const he = gr("kindy-editor:locale", v.value.locale);
|
|
65322
65339
|
he.value || (he.value = v.value.locale);
|
|
65323
65340
|
} catch (he) {
|
|
65324
65341
|
}
|
|
@@ -65329,7 +65346,7 @@ const roe = [
|
|
|
65329
65346
|
throw new Error('"theme" must be one of "light", "dark" or "auto".');
|
|
65330
65347
|
if (re !== "auto") {
|
|
65331
65348
|
(ft = document.querySelector("html")) == null || ft.setAttribute("theme-mode", re);
|
|
65332
|
-
const _t =
|
|
65349
|
+
const _t = gr("kindy-editor:theme", v.value.theme);
|
|
65333
65350
|
_t.value = re, i("changed:theme", re);
|
|
65334
65351
|
return;
|
|
65335
65352
|
}
|
|
@@ -65340,7 +65357,7 @@ const roe = [
|
|
|
65340
65357
|
}, te = (re) => {
|
|
65341
65358
|
if (!Tr(re) || !["modern", "default"].includes(re))
|
|
65342
65359
|
throw new Error('"skin" must be one of "modern" or "default".');
|
|
65343
|
-
const he =
|
|
65360
|
+
const he = gr("kindy-editor:skin", v.value.skin);
|
|
65344
65361
|
he.value = re, v.value.skin = re, i("changed:skin", re);
|
|
65345
65362
|
}, ae = (re) => {
|
|
65346
65363
|
if (!Va(re))
|
|
@@ -65555,9 +65572,9 @@ const roe = [
|
|
|
65555
65572
|
const an = document.querySelector("#kindy-icons");
|
|
65556
65573
|
At.forEach((Bn) => {
|
|
65557
65574
|
Bn.querySelectorAll(".kindy-icon").forEach((zn) => {
|
|
65558
|
-
var
|
|
65575
|
+
var vr;
|
|
65559
65576
|
const ir = zn.childNodes[0].getAttribute("xlink:href");
|
|
65560
|
-
zn.setAttribute("viewBox", "0 0 48 48"), zn.setAttribute("fill", "none"), zn.setAttribute("width", Zt), zn.setAttribute("height", Zt), zn.innerHTML = ((
|
|
65577
|
+
zn.setAttribute("viewBox", "0 0 48 48"), zn.setAttribute("fill", "none"), zn.setAttribute("width", Zt), zn.setAttribute("height", Zt), zn.innerHTML = ((vr = an == null ? void 0 : an.querySelector(ir)) == null ? void 0 : vr.innerHTML) || "";
|
|
65561
65578
|
});
|
|
65562
65579
|
});
|
|
65563
65580
|
};
|