vdc-editor 0.1.214 → 0.1.215
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/lib/{BulkSpellChecker-rs_0r0DS.mjs → BulkSpellChecker-CxF_-wmI.mjs} +2 -2
- package/lib/{BulkSpellChecker-rs_0r0DS.mjs.map → BulkSpellChecker-CxF_-wmI.mjs.map} +1 -1
- package/lib/{index-Dzwpymcg.mjs → index-BA-CmqOV.mjs} +373 -370
- package/lib/{index-Dzwpymcg.mjs.map → index-BA-CmqOV.mjs.map} +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/style.css +1 -1
- package/lib/vdc-editor.mjs +1 -1
- package/lib/vdc-editor.umd.js +1 -1
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -246,7 +246,7 @@ const gn = (t) => {
|
|
|
246
246
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
247
247
|
$R.test(t) && !HR.test(t)
|
|
248
248
|
), r5 = () => !1, JR = (t) => zR.test(t), ZR = (t) => VR.test(t), QR = () => {
|
|
249
|
-
const t = gn("colors"), e = gn("spacing"), n = gn("blur"), o = gn("brightness"), r = gn("borderColor"), i = gn("borderRadius"), s = gn("borderSpacing"), a = gn("borderWidth"), l = gn("contrast"), u = gn("grayscale"), d = gn("hueRotate"), f = gn("invert"), h = gn("gap"), m = gn("gradientColorStops"), b = gn("gradientColorStopPositions"), y = gn("inset"), w = gn("margin"), x = gn("opacity"), _ = gn("padding"), E = gn("saturate"), C = gn("scale"), T = gn("sepia"), A = gn("skew"), k = gn("space"), F = gn("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", _t, e],
|
|
249
|
+
const t = gn("colors"), e = gn("spacing"), n = gn("blur"), o = gn("brightness"), r = gn("borderColor"), i = gn("borderRadius"), s = gn("borderSpacing"), a = gn("borderWidth"), l = gn("contrast"), u = gn("grayscale"), d = gn("hueRotate"), f = gn("invert"), h = gn("gap"), m = gn("gradientColorStops"), b = gn("gradientColorStopPositions"), y = gn("inset"), w = gn("margin"), x = gn("opacity"), _ = gn("padding"), E = gn("saturate"), C = gn("scale"), T = gn("sepia"), A = gn("skew"), k = gn("space"), F = gn("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", _t, e], V = () => [_t, e], ue = () => ["", Di, ys], be = () => ["auto", Hl, _t], K = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", _t], ne = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], he = () => [Hl, _t];
|
|
250
250
|
return {
|
|
251
251
|
cacheSize: 500,
|
|
252
252
|
separator: ":",
|
|
@@ -257,25 +257,25 @@ const gn = (t) => {
|
|
|
257
257
|
brightness: he(),
|
|
258
258
|
borderColor: [t],
|
|
259
259
|
borderRadius: ["none", "", "full", ws, _t],
|
|
260
|
-
borderSpacing:
|
|
260
|
+
borderSpacing: V(),
|
|
261
261
|
borderWidth: ue(),
|
|
262
262
|
contrast: he(),
|
|
263
263
|
grayscale: re(),
|
|
264
264
|
hueRotate: he(),
|
|
265
265
|
invert: re(),
|
|
266
|
-
gap:
|
|
266
|
+
gap: V(),
|
|
267
267
|
gradientColorStops: [t],
|
|
268
268
|
gradientColorStopPositions: [UR, ys],
|
|
269
269
|
inset: Q(),
|
|
270
270
|
margin: Q(),
|
|
271
271
|
opacity: he(),
|
|
272
|
-
padding:
|
|
272
|
+
padding: V(),
|
|
273
273
|
saturate: he(),
|
|
274
274
|
scale: he(),
|
|
275
275
|
sepia: re(),
|
|
276
276
|
skew: he(),
|
|
277
|
-
space:
|
|
278
|
-
translate:
|
|
277
|
+
space: V(),
|
|
278
|
+
translate: V()
|
|
279
279
|
},
|
|
280
280
|
classGroups: {
|
|
281
281
|
// Layout
|
|
@@ -1061,7 +1061,7 @@ const gn = (t) => {
|
|
|
1061
1061
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1062
1062
|
*/
|
|
1063
1063
|
"text-decoration-style": [{
|
|
1064
|
-
decoration: [...
|
|
1064
|
+
decoration: [...U(), "wavy"]
|
|
1065
1065
|
}],
|
|
1066
1066
|
/**
|
|
1067
1067
|
* Text Decoration Thickness
|
|
@@ -1106,7 +1106,7 @@ const gn = (t) => {
|
|
|
1106
1106
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1107
1107
|
*/
|
|
1108
1108
|
indent: [{
|
|
1109
|
-
indent:
|
|
1109
|
+
indent: V()
|
|
1110
1110
|
}],
|
|
1111
1111
|
/**
|
|
1112
1112
|
* Vertical Alignment
|
|
@@ -1435,7 +1435,7 @@ const gn = (t) => {
|
|
|
1435
1435
|
* @see https://tailwindcss.com/docs/border-style
|
|
1436
1436
|
*/
|
|
1437
1437
|
"border-style": [{
|
|
1438
|
-
border: [...
|
|
1438
|
+
border: [...U(), "hidden"]
|
|
1439
1439
|
}],
|
|
1440
1440
|
/**
|
|
1441
1441
|
* Divide Width X
|
|
@@ -1473,7 +1473,7 @@ const gn = (t) => {
|
|
|
1473
1473
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1474
1474
|
*/
|
|
1475
1475
|
"divide-style": [{
|
|
1476
|
-
divide:
|
|
1476
|
+
divide: U()
|
|
1477
1477
|
}],
|
|
1478
1478
|
/**
|
|
1479
1479
|
* Border Color
|
|
@@ -1550,7 +1550,7 @@ const gn = (t) => {
|
|
|
1550
1550
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1551
1551
|
*/
|
|
1552
1552
|
"outline-style": [{
|
|
1553
|
-
outline: ["", ...
|
|
1553
|
+
outline: ["", ...U()]
|
|
1554
1554
|
}],
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Outline Offset
|
|
@@ -1997,126 +1997,126 @@ const gn = (t) => {
|
|
|
1997
1997
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
1998
1998
|
*/
|
|
1999
1999
|
"scroll-m": [{
|
|
2000
|
-
"scroll-m":
|
|
2000
|
+
"scroll-m": V()
|
|
2001
2001
|
}],
|
|
2002
2002
|
/**
|
|
2003
2003
|
* Scroll Margin X
|
|
2004
2004
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2005
2005
|
*/
|
|
2006
2006
|
"scroll-mx": [{
|
|
2007
|
-
"scroll-mx":
|
|
2007
|
+
"scroll-mx": V()
|
|
2008
2008
|
}],
|
|
2009
2009
|
/**
|
|
2010
2010
|
* Scroll Margin Y
|
|
2011
2011
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2012
2012
|
*/
|
|
2013
2013
|
"scroll-my": [{
|
|
2014
|
-
"scroll-my":
|
|
2014
|
+
"scroll-my": V()
|
|
2015
2015
|
}],
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Scroll Margin Start
|
|
2018
2018
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2019
2019
|
*/
|
|
2020
2020
|
"scroll-ms": [{
|
|
2021
|
-
"scroll-ms":
|
|
2021
|
+
"scroll-ms": V()
|
|
2022
2022
|
}],
|
|
2023
2023
|
/**
|
|
2024
2024
|
* Scroll Margin End
|
|
2025
2025
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2026
2026
|
*/
|
|
2027
2027
|
"scroll-me": [{
|
|
2028
|
-
"scroll-me":
|
|
2028
|
+
"scroll-me": V()
|
|
2029
2029
|
}],
|
|
2030
2030
|
/**
|
|
2031
2031
|
* Scroll Margin Top
|
|
2032
2032
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2033
2033
|
*/
|
|
2034
2034
|
"scroll-mt": [{
|
|
2035
|
-
"scroll-mt":
|
|
2035
|
+
"scroll-mt": V()
|
|
2036
2036
|
}],
|
|
2037
2037
|
/**
|
|
2038
2038
|
* Scroll Margin Right
|
|
2039
2039
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2040
2040
|
*/
|
|
2041
2041
|
"scroll-mr": [{
|
|
2042
|
-
"scroll-mr":
|
|
2042
|
+
"scroll-mr": V()
|
|
2043
2043
|
}],
|
|
2044
2044
|
/**
|
|
2045
2045
|
* Scroll Margin Bottom
|
|
2046
2046
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2047
2047
|
*/
|
|
2048
2048
|
"scroll-mb": [{
|
|
2049
|
-
"scroll-mb":
|
|
2049
|
+
"scroll-mb": V()
|
|
2050
2050
|
}],
|
|
2051
2051
|
/**
|
|
2052
2052
|
* Scroll Margin Left
|
|
2053
2053
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2054
2054
|
*/
|
|
2055
2055
|
"scroll-ml": [{
|
|
2056
|
-
"scroll-ml":
|
|
2056
|
+
"scroll-ml": V()
|
|
2057
2057
|
}],
|
|
2058
2058
|
/**
|
|
2059
2059
|
* Scroll Padding
|
|
2060
2060
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2061
2061
|
*/
|
|
2062
2062
|
"scroll-p": [{
|
|
2063
|
-
"scroll-p":
|
|
2063
|
+
"scroll-p": V()
|
|
2064
2064
|
}],
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Scroll Padding X
|
|
2067
2067
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2068
2068
|
*/
|
|
2069
2069
|
"scroll-px": [{
|
|
2070
|
-
"scroll-px":
|
|
2070
|
+
"scroll-px": V()
|
|
2071
2071
|
}],
|
|
2072
2072
|
/**
|
|
2073
2073
|
* Scroll Padding Y
|
|
2074
2074
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2075
2075
|
*/
|
|
2076
2076
|
"scroll-py": [{
|
|
2077
|
-
"scroll-py":
|
|
2077
|
+
"scroll-py": V()
|
|
2078
2078
|
}],
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Scroll Padding Start
|
|
2081
2081
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2082
2082
|
*/
|
|
2083
2083
|
"scroll-ps": [{
|
|
2084
|
-
"scroll-ps":
|
|
2084
|
+
"scroll-ps": V()
|
|
2085
2085
|
}],
|
|
2086
2086
|
/**
|
|
2087
2087
|
* Scroll Padding End
|
|
2088
2088
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2089
2089
|
*/
|
|
2090
2090
|
"scroll-pe": [{
|
|
2091
|
-
"scroll-pe":
|
|
2091
|
+
"scroll-pe": V()
|
|
2092
2092
|
}],
|
|
2093
2093
|
/**
|
|
2094
2094
|
* Scroll Padding Top
|
|
2095
2095
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2096
2096
|
*/
|
|
2097
2097
|
"scroll-pt": [{
|
|
2098
|
-
"scroll-pt":
|
|
2098
|
+
"scroll-pt": V()
|
|
2099
2099
|
}],
|
|
2100
2100
|
/**
|
|
2101
2101
|
* Scroll Padding Right
|
|
2102
2102
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2103
2103
|
*/
|
|
2104
2104
|
"scroll-pr": [{
|
|
2105
|
-
"scroll-pr":
|
|
2105
|
+
"scroll-pr": V()
|
|
2106
2106
|
}],
|
|
2107
2107
|
/**
|
|
2108
2108
|
* Scroll Padding Bottom
|
|
2109
2109
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2110
2110
|
*/
|
|
2111
2111
|
"scroll-pb": [{
|
|
2112
|
-
"scroll-pb":
|
|
2112
|
+
"scroll-pb": V()
|
|
2113
2113
|
}],
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Scroll Padding Left
|
|
2116
2116
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2117
2117
|
*/
|
|
2118
2118
|
"scroll-pl": [{
|
|
2119
|
-
"scroll-pl":
|
|
2119
|
+
"scroll-pl": V()
|
|
2120
2120
|
}],
|
|
2121
2121
|
/**
|
|
2122
2122
|
* Scroll Snap Align
|
|
@@ -10618,7 +10618,7 @@ function EP(t, e, n, o, r) {
|
|
|
10618
10618
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
10619
10619
|
let P = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, R = Db(t, P);
|
|
10620
10620
|
if (R && !t.state.selection.eq(R)) {
|
|
10621
|
-
if (go && Gi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (
|
|
10621
|
+
if (go && Gi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (V) => V(t, va(13, "Enter"))))
|
|
10622
10622
|
return;
|
|
10623
10623
|
let Q = t.state.tr.setSelection(R);
|
|
10624
10624
|
P == "pointer" ? Q.setMeta("pointer", !0) : P == "key" && Q.scrollIntoView(), i && Q.setMeta("composition", i), t.dispatch(Q);
|
|
@@ -14845,14 +14845,14 @@ function F6(t) {
|
|
|
14845
14845
|
}
|
|
14846
14846
|
var Q = Object.assign({
|
|
14847
14847
|
position: a
|
|
14848
|
-
}, u && p$),
|
|
14848
|
+
}, u && p$), V = d === !0 ? h$({
|
|
14849
14849
|
x: m,
|
|
14850
14850
|
y
|
|
14851
14851
|
}, cr(n)) : {
|
|
14852
14852
|
x: m,
|
|
14853
14853
|
y
|
|
14854
14854
|
};
|
|
14855
|
-
if (m =
|
|
14855
|
+
if (m = V.x, y = V.y, l) {
|
|
14856
14856
|
var ue;
|
|
14857
14857
|
return Object.assign({}, Q, (ue = {}, ue[C] = _ ? "0" : "", ue[E] = x ? "0" : "", ue.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + y + "px)" : "translate3d(" + m + "px, " + y + "px, 0)", ue));
|
|
14858
14858
|
}
|
|
@@ -15067,10 +15067,10 @@ function Nc(t, e) {
|
|
|
15067
15067
|
right: P.right - T.right + x.right
|
|
15068
15068
|
}, Q = t.modifiersData.offset;
|
|
15069
15069
|
if (h === Ku && Q) {
|
|
15070
|
-
var
|
|
15070
|
+
var V = Q[r];
|
|
15071
15071
|
Object.keys(R).forEach(function(ue) {
|
|
15072
15072
|
var be = [Mr, Or].indexOf(ue) >= 0 ? 1 : -1, K = [Uo, Or].indexOf(ue) >= 0 ? "y" : "x";
|
|
15073
|
-
R[ue] +=
|
|
15073
|
+
R[ue] += V[K] * be;
|
|
15074
15074
|
});
|
|
15075
15075
|
}
|
|
15076
15076
|
return R;
|
|
@@ -15114,7 +15114,7 @@ function A$(t) {
|
|
|
15114
15114
|
allowedAutoPlacements: y
|
|
15115
15115
|
}) : Ve);
|
|
15116
15116
|
}, []), T = e.rects.reference, A = e.rects.popper, k = /* @__PURE__ */ new Map(), F = !0, P = C[0], R = 0; R < C.length; R++) {
|
|
15117
|
-
var Q = C[R],
|
|
15117
|
+
var Q = C[R], V = di(Q), ue = tu(Q) === Zl, be = [Uo, Or].indexOf(V) >= 0, K = be ? "width" : "height", U = Nc(e, {
|
|
15118
15118
|
placement: Q,
|
|
15119
15119
|
boundary: d,
|
|
15120
15120
|
rootBoundary: f,
|
|
@@ -15123,7 +15123,7 @@ function A$(t) {
|
|
|
15123
15123
|
}), B = be ? ue ? Mr : Wo : ue ? Or : Uo;
|
|
15124
15124
|
T[K] > A[K] && (B = qf(B));
|
|
15125
15125
|
var J = qf(B), re = [];
|
|
15126
|
-
if (i && re.push(V
|
|
15126
|
+
if (i && re.push(U[V] <= 0), a && re.push(U[B] <= 0, U[J] <= 0), re.every(function(ot) {
|
|
15127
15127
|
return ot;
|
|
15128
15128
|
})) {
|
|
15129
15129
|
P = Q, F = !1;
|
|
@@ -15255,23 +15255,23 @@ function F$(t) {
|
|
|
15255
15255
|
} : Object.assign({
|
|
15256
15256
|
mainAxis: 0,
|
|
15257
15257
|
altAxis: 0
|
|
15258
|
-
}, P), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null,
|
|
15258
|
+
}, P), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, V = {
|
|
15259
15259
|
x: 0,
|
|
15260
15260
|
y: 0
|
|
15261
15261
|
};
|
|
15262
15262
|
if (A) {
|
|
15263
15263
|
if (i) {
|
|
15264
|
-
var ue, be = C === "y" ? Uo : Wo, K = C === "y" ? Or : Mr,
|
|
15264
|
+
var ue, be = C === "y" ? Uo : Wo, K = C === "y" ? Or : Mr, U = C === "y" ? "height" : "width", B = A[C], J = B + w[be], re = B - w[K], ne = m ? -F[U] / 2 : 0, he = _ === Zl ? k[U] : F[U], Re = _ === Zl ? -F[U] : -k[U], De = e.elements.arrow, ot = m && De ? ov(De) : {
|
|
15265
15265
|
width: 0,
|
|
15266
15266
|
height: 0
|
|
15267
|
-
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), Ye = Ve[be], se = Ve[K], ce = uc(0, k[
|
|
15268
|
-
A[C] = Nt,
|
|
15267
|
+
}, Ve = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ZC(), Ye = Ve[be], se = Ve[K], ce = uc(0, k[U], ot[U]), we = E ? k[U] / 2 - ne - ce - Ye - R.mainAxis : he - ce - Ye - R.mainAxis, xe = E ? -k[U] / 2 + ne + ce + se + R.mainAxis : Re + ce + se + R.mainAxis, Ae = e.elements.arrow && ld(e.elements.arrow), ae = Ae ? C === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, Me = (ue = Q == null ? void 0 : Q[C]) != null ? ue : 0, Ke = B + we - Me - ae, it = B + xe - Me, Nt = uc(m ? xp(J, Ke) : J, B, m ? Oa(re, it) : re);
|
|
15268
|
+
A[C] = Nt, V[C] = Nt - B;
|
|
15269
15269
|
}
|
|
15270
15270
|
if (a) {
|
|
15271
15271
|
var Ut, q = C === "x" ? Uo : Wo, z = C === "x" ? Or : Mr, ve = A[T], Oe = T === "y" ? "height" : "width", Ge = ve + w[q], mt = ve - w[z], oe = [Uo, Wo].indexOf(x) !== -1, X = (Ut = Q == null ? void 0 : Q[T]) != null ? Ut : 0, me = oe ? Ge : ve - k[Oe] - F[Oe] - X + R.altAxis, ge = oe ? ve + k[Oe] + F[Oe] - X - R.altAxis : mt, Ne = m && oe ? l$(me, ve, ge) : uc(m ? me : Ge, ve, m ? ge : mt);
|
|
15272
|
-
A[T] = Ne,
|
|
15272
|
+
A[T] = Ne, V[T] = Ne - ve;
|
|
15273
15273
|
}
|
|
15274
|
-
e.modifiersData[o] =
|
|
15274
|
+
e.modifiersData[o] = V;
|
|
15275
15275
|
}
|
|
15276
15276
|
}
|
|
15277
15277
|
const $$ = {
|
|
@@ -15887,7 +15887,7 @@ function _H(t, e) {
|
|
|
15887
15887
|
function Q() {
|
|
15888
15888
|
return R()[0] === "hold";
|
|
15889
15889
|
}
|
|
15890
|
-
function
|
|
15890
|
+
function V() {
|
|
15891
15891
|
var fe;
|
|
15892
15892
|
return !!((fe = C.props.render) != null && fe.$$tippy);
|
|
15893
15893
|
}
|
|
@@ -15901,7 +15901,7 @@ function _H(t, e) {
|
|
|
15901
15901
|
function K() {
|
|
15902
15902
|
return xg(A);
|
|
15903
15903
|
}
|
|
15904
|
-
function
|
|
15904
|
+
function U(fe) {
|
|
15905
15905
|
return C.state.isMounted && !C.state.isVisible || ci.isTouch || d && d.type === "focus" ? 0 : t1(C.props.delay, fe ? 0 : 1, nr.delay);
|
|
15906
15906
|
}
|
|
15907
15907
|
function B(fe) {
|
|
@@ -16070,7 +16070,7 @@ function _H(t, e) {
|
|
|
16070
16070
|
}
|
|
16071
16071
|
function q() {
|
|
16072
16072
|
z();
|
|
16073
|
-
var fe = C.props, qe = fe.popperOptions, rt = fe.placement, Pt = fe.offset, It = fe.getReferenceClientRect, Fn = fe.moveTransition, Zn =
|
|
16073
|
+
var fe = C.props, qe = fe.popperOptions, rt = fe.placement, Pt = fe.offset, It = fe.getReferenceClientRect, Fn = fe.moveTransition, Zn = V() ? xg(A).arrow : null, Qn = It ? {
|
|
16074
16074
|
getBoundingClientRect: It,
|
|
16075
16075
|
contextElement: It.contextElement || ue()
|
|
16076
16076
|
} : t, Dr = {
|
|
@@ -16080,7 +16080,7 @@ function _H(t, e) {
|
|
|
16080
16080
|
requires: ["computeStyles"],
|
|
16081
16081
|
fn: function(sl) {
|
|
16082
16082
|
var us = sl.state;
|
|
16083
|
-
if (
|
|
16083
|
+
if (V()) {
|
|
16084
16084
|
var Cd = K(), Au = Cd.box;
|
|
16085
16085
|
["placement", "reference-hidden", "escaped"].forEach(function(al) {
|
|
16086
16086
|
al === "placement" ? Au.setAttribute("data-placement", us.placement) : us.attributes.popper["data-popper-" + al] ? Au.setAttribute("data-" + al, "") : Au.removeAttribute("data-" + al);
|
|
@@ -16113,7 +16113,7 @@ function _H(t, e) {
|
|
|
16113
16113
|
adaptive: !Fn
|
|
16114
16114
|
}
|
|
16115
16115
|
}, Dr];
|
|
16116
|
-
|
|
16116
|
+
V() && Zn && eo.push({
|
|
16117
16117
|
name: "arrow",
|
|
16118
16118
|
options: {
|
|
16119
16119
|
element: Zn,
|
|
@@ -16143,7 +16143,7 @@ function _H(t, e) {
|
|
|
16143
16143
|
}
|
|
16144
16144
|
function Ge(fe) {
|
|
16145
16145
|
C.clearDelayTimeouts(), fe && J("onTrigger", [C, fe]), Ve();
|
|
16146
|
-
var qe =
|
|
16146
|
+
var qe = U(!0), rt = R(), Pt = rt[0], It = rt[1];
|
|
16147
16147
|
ci.isTouch && Pt === "hold" && It && (qe = It), qe ? o = setTimeout(function() {
|
|
16148
16148
|
C.show();
|
|
16149
16149
|
}, qe) : C.show();
|
|
@@ -16154,7 +16154,7 @@ function _H(t, e) {
|
|
|
16154
16154
|
return;
|
|
16155
16155
|
}
|
|
16156
16156
|
if (!(C.props.trigger.indexOf("mouseenter") >= 0 && C.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(fe.type) >= 0 && s)) {
|
|
16157
|
-
var qe =
|
|
16157
|
+
var qe = U(!1);
|
|
16158
16158
|
qe ? r = setTimeout(function() {
|
|
16159
16159
|
C.state.isVisible && C.hide();
|
|
16160
16160
|
}, qe) : i = requestAnimationFrame(function() {
|
|
@@ -16193,18 +16193,18 @@ function _H(t, e) {
|
|
|
16193
16193
|
process.env.NODE_ENV !== "production" && Wi(C.state.isDestroyed, Sl("show"));
|
|
16194
16194
|
var fe = C.state.isVisible, qe = C.state.isDestroyed, rt = !C.state.isEnabled, Pt = ci.isTouch && !C.props.touch, It = t1(C.props.duration, 0, nr.duration);
|
|
16195
16195
|
if (!(fe || qe || rt || Pt) && !ue().hasAttribute("disabled") && (J("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
16196
|
-
if (C.state.isVisible = !0,
|
|
16196
|
+
if (C.state.isVisible = !0, V() && (A.style.visibility = "visible"), B(), Ve(), C.state.isMounted || (A.style.transition = "none"), V()) {
|
|
16197
16197
|
var Fn = K(), Zn = Fn.box, Qn = Fn.content;
|
|
16198
16198
|
n1([Zn, Qn], 0);
|
|
16199
16199
|
}
|
|
16200
16200
|
h = function() {
|
|
16201
16201
|
var eo;
|
|
16202
16202
|
if (!(!C.state.isVisible || u)) {
|
|
16203
|
-
if (u = !0, A.offsetHeight, A.style.transition = C.props.moveTransition,
|
|
16203
|
+
if (u = !0, A.offsetHeight, A.style.transition = C.props.moveTransition, V() && C.props.animation) {
|
|
16204
16204
|
var Si = K(), sl = Si.box, us = Si.content;
|
|
16205
16205
|
n1([sl, us], It), G6([sl, us], "visible");
|
|
16206
16206
|
}
|
|
16207
|
-
re(), ne(), q6(r1, C), (eo = C.popperInstance) == null || eo.forceUpdate(), J("onMount", [C]), C.props.animation &&
|
|
16207
|
+
re(), ne(), q6(r1, C), (eo = C.popperInstance) == null || eo.forceUpdate(), J("onMount", [C]), C.props.animation && V() && ce(It, function() {
|
|
16208
16208
|
C.state.isShown = !0, J("onShown", [C]);
|
|
16209
16209
|
});
|
|
16210
16210
|
}
|
|
@@ -16215,11 +16215,11 @@ function _H(t, e) {
|
|
|
16215
16215
|
process.env.NODE_ENV !== "production" && Wi(C.state.isDestroyed, Sl("hide"));
|
|
16216
16216
|
var fe = !C.state.isVisible, qe = C.state.isDestroyed, rt = !C.state.isEnabled, Pt = t1(C.props.duration, 1, nr.duration);
|
|
16217
16217
|
if (!(fe || qe || rt) && (J("onHide", [C], !1), C.props.onHide(C) !== !1)) {
|
|
16218
|
-
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1,
|
|
16218
|
+
if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1, V() && (A.style.visibility = "hidden"), he(), Ye(), B(!0), V()) {
|
|
16219
16219
|
var It = K(), Fn = It.box, Zn = It.content;
|
|
16220
16220
|
C.props.animation && (n1([Fn, Zn], Pt), G6([Fn, Zn], "hidden"));
|
|
16221
16221
|
}
|
|
16222
|
-
re(), ne(), C.props.animation ?
|
|
16222
|
+
re(), ne(), C.props.animation ? V() && se(Pt, C.unmount) : C.unmount();
|
|
16223
16223
|
}
|
|
16224
16224
|
}
|
|
16225
16225
|
function jt(fe) {
|
|
@@ -17279,7 +17279,7 @@ var _p = { exports: {} };
|
|
|
17279
17279
|
_p.exports;
|
|
17280
17280
|
(function(t, e) {
|
|
17281
17281
|
(function() {
|
|
17282
|
-
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, y = 2, w = 1, x = 2, _ = 4, E = 8, C = 16, T = 32, A = 64, k = 128, F = 256, P = 512, R = 30, Q = "...",
|
|
17282
|
+
var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, y = 2, w = 1, x = 2, _ = 4, E = 8, C = 16, T = 32, A = 64, k = 128, F = 256, P = 512, R = 30, Q = "...", V = 800, ue = 16, be = 1, K = 2, U = 3, B = 1 / 0, J = 9007199254740991, re = 17976931348623157e292, ne = NaN, he = 4294967295, Re = he - 1, De = he >>> 1, ot = [
|
|
17283
17283
|
["ary", k],
|
|
17284
17284
|
["bind", w],
|
|
17285
17285
|
["bindKey", x],
|
|
@@ -19459,7 +19459,7 @@ _p.exports;
|
|
|
19459
19459
|
return function() {
|
|
19460
19460
|
var S = iA(), O = ue - (S - v);
|
|
19461
19461
|
if (v = S, O > 0) {
|
|
19462
|
-
if (++p >=
|
|
19462
|
+
if (++p >= V)
|
|
19463
19463
|
return arguments[0];
|
|
19464
19464
|
} else
|
|
19465
19465
|
p = 0;
|
|
@@ -20858,7 +20858,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20858
20858
|
return this.reverse()[c](v).reverse();
|
|
20859
20859
|
};
|
|
20860
20860
|
}), pr(["filter", "map", "takeWhile"], function(c, p) {
|
|
20861
|
-
var v = p + 1, S = v == be || v ==
|
|
20861
|
+
var v = p + 1, S = v == be || v == U;
|
|
20862
20862
|
Bt.prototype[c] = function(O) {
|
|
20863
20863
|
var L = this.clone();
|
|
20864
20864
|
return L.__iteratees__.push({
|
|
@@ -21420,17 +21420,17 @@ const tz = (t) => ({
|
|
|
21420
21420
|
}, m = pv(r), b = fv(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", _ = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", C = i.reference[b] + i.reference[m] - h[m] - i.floating[b], T = h[m] - i.reference[m], A = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
21421
21421
|
let k = A ? A[E] : 0;
|
|
21422
21422
|
(!k || !await (s.isElement == null ? void 0 : s.isElement(A))) && (k = a.floating[E] || i.floating[b]);
|
|
21423
|
-
const F = C / 2 - T / 2, P = k / 2 - y[b] / 2 - 1, R = Us(f[x], P), Q = Us(f[_], P),
|
|
21423
|
+
const F = C / 2 - T / 2, P = k / 2 - y[b] / 2 - 1, R = Us(f[x], P), Q = Us(f[_], P), V = R, ue = k - y[b] - Q, be = k / 2 - y[b] / 2 + F, K = _g(V, be, ue), U = !l.arrow && hu(r) != null && be !== K && i.reference[b] / 2 - (be < V ? R : Q) - y[b] / 2 < 0, B = U ? be < V ? be - V : be - ue : 0;
|
|
21424
21424
|
return {
|
|
21425
21425
|
[m]: h[m] + B,
|
|
21426
21426
|
data: {
|
|
21427
21427
|
[m]: K,
|
|
21428
21428
|
centerOffset: be - K - B,
|
|
21429
|
-
...
|
|
21429
|
+
...U && {
|
|
21430
21430
|
alignmentOffset: B
|
|
21431
21431
|
}
|
|
21432
21432
|
},
|
|
21433
|
-
reset:
|
|
21433
|
+
reset: U
|
|
21434
21434
|
};
|
|
21435
21435
|
}
|
|
21436
21436
|
}), nz = function(t) {
|
|
@@ -21469,7 +21469,7 @@ const tz = (t) => ({
|
|
|
21469
21469
|
placement: r,
|
|
21470
21470
|
overflows: P
|
|
21471
21471
|
}], !P.every((be) => be <= 0)) {
|
|
21472
|
-
var Q,
|
|
21472
|
+
var Q, V;
|
|
21473
21473
|
const be = (((Q = i.flip) == null ? void 0 : Q.index) || 0) + 1, K = k[be];
|
|
21474
21474
|
if (K)
|
|
21475
21475
|
return {
|
|
@@ -21481,8 +21481,8 @@ const tz = (t) => ({
|
|
|
21481
21481
|
placement: K
|
|
21482
21482
|
}
|
|
21483
21483
|
};
|
|
21484
|
-
let
|
|
21485
|
-
if (!
|
|
21484
|
+
let U = (V = R.filter((B) => B.overflows[0] <= 0).sort((B, J) => B.overflows[1] - J.overflows[1])[0]) == null ? void 0 : V.placement;
|
|
21485
|
+
if (!U)
|
|
21486
21486
|
switch (m) {
|
|
21487
21487
|
case "bestFit": {
|
|
21488
21488
|
var ue;
|
|
@@ -21495,17 +21495,17 @@ const tz = (t) => ({
|
|
|
21495
21495
|
}
|
|
21496
21496
|
return !0;
|
|
21497
21497
|
}).map((J) => [J.placement, J.overflows.filter((re) => re > 0).reduce((re, ne) => re + ne, 0)]).sort((J, re) => J[1] - re[1])[0]) == null ? void 0 : ue[0];
|
|
21498
|
-
B && (
|
|
21498
|
+
B && (U = B);
|
|
21499
21499
|
break;
|
|
21500
21500
|
}
|
|
21501
21501
|
case "initialPlacement":
|
|
21502
|
-
|
|
21502
|
+
U = a;
|
|
21503
21503
|
break;
|
|
21504
21504
|
}
|
|
21505
|
-
if (r !==
|
|
21505
|
+
if (r !== U)
|
|
21506
21506
|
return {
|
|
21507
21507
|
reset: {
|
|
21508
|
-
placement:
|
|
21508
|
+
placement: U
|
|
21509
21509
|
}
|
|
21510
21510
|
};
|
|
21511
21511
|
}
|
|
@@ -21737,8 +21737,8 @@ const iz = function(t) {
|
|
|
21737
21737
|
const _ = y - d.top - d.bottom, E = b - d.left - d.right, C = Us(y - d[w], _), T = Us(b - d[x], E), A = !e.middlewareData.shift;
|
|
21738
21738
|
let k = C, F = T;
|
|
21739
21739
|
if ((n = e.middlewareData.shift) != null && n.enabled.x && (F = E), (o = e.middlewareData.shift) != null && o.enabled.y && (k = _), A && !h) {
|
|
21740
|
-
const R = er(d.left, 0), Q = er(d.right, 0),
|
|
21741
|
-
m ? F = b - 2 * (R !== 0 || Q !== 0 ? R + Q : er(d.left, d.right)) : k = y - 2 * (
|
|
21740
|
+
const R = er(d.left, 0), Q = er(d.right, 0), V = er(d.top, 0), ue = er(d.bottom, 0);
|
|
21741
|
+
m ? F = b - 2 * (R !== 0 || Q !== 0 ? R + Q : er(d.left, d.right)) : k = y - 2 * (V !== 0 || ue !== 0 ? V + ue : er(d.top, d.bottom));
|
|
21742
21742
|
}
|
|
21743
21743
|
await l({
|
|
21744
21744
|
...e,
|
|
@@ -24257,18 +24257,18 @@ const GE = {
|
|
|
24257
24257
|
}),
|
|
24258
24258
|
Oz({
|
|
24259
24259
|
...b.value,
|
|
24260
|
-
apply: ({ elements: R, rects: Q, availableWidth:
|
|
24261
|
-
const { width: be, height: K } = Q.reference,
|
|
24262
|
-
|
|
24260
|
+
apply: ({ elements: R, rects: Q, availableWidth: V, availableHeight: ue }) => {
|
|
24261
|
+
const { width: be, height: K } = Q.reference, U = R.floating.style;
|
|
24262
|
+
U.setProperty(
|
|
24263
24263
|
"--radix-popper-available-width",
|
|
24264
|
-
`${
|
|
24265
|
-
),
|
|
24264
|
+
`${V}px`
|
|
24265
|
+
), U.setProperty(
|
|
24266
24266
|
"--radix-popper-available-height",
|
|
24267
24267
|
`${ue}px`
|
|
24268
|
-
),
|
|
24268
|
+
), U.setProperty(
|
|
24269
24269
|
"--radix-popper-anchor-width",
|
|
24270
24270
|
`${be}px`
|
|
24271
|
-
),
|
|
24271
|
+
), U.setProperty(
|
|
24272
24272
|
"--radix-popper-anchor-height",
|
|
24273
24273
|
`${K}px`
|
|
24274
24274
|
);
|
|
@@ -24322,7 +24322,7 @@ const GE = {
|
|
|
24322
24322
|
arrowY: P,
|
|
24323
24323
|
shouldHideArrow: A
|
|
24324
24324
|
}), (R, Q) => {
|
|
24325
|
-
var
|
|
24325
|
+
var V, ue, be;
|
|
24326
24326
|
return M(), pe("div", {
|
|
24327
24327
|
ref_key: "floatingRef",
|
|
24328
24328
|
ref: a,
|
|
@@ -24334,7 +24334,7 @@ const GE = {
|
|
|
24334
24334
|
minWidth: "max-content",
|
|
24335
24335
|
zIndex: k.value,
|
|
24336
24336
|
"--radix-popper-transform-origin": [
|
|
24337
|
-
(
|
|
24337
|
+
(V = g(E).transformOrigin) == null ? void 0 : V.x,
|
|
24338
24338
|
(ue = g(E).transformOrigin) == null ? void 0 : ue.y
|
|
24339
24339
|
].join(" "),
|
|
24340
24340
|
// hide the content if using the hide middleware and should be hidden
|
|
@@ -24729,8 +24729,8 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24729
24729
|
window.clearTimeout(d.value);
|
|
24730
24730
|
});
|
|
24731
24731
|
function T(R) {
|
|
24732
|
-
var Q,
|
|
24733
|
-
return m.value === ((Q = h.value) == null ? void 0 : Q.side) && UV(R, (
|
|
24732
|
+
var Q, V;
|
|
24733
|
+
return m.value === ((Q = h.value) == null ? void 0 : Q.side) && UV(R, (V = h.value) == null ? void 0 : V.area);
|
|
24734
24734
|
}
|
|
24735
24735
|
async function A(R) {
|
|
24736
24736
|
var Q;
|
|
@@ -24741,7 +24741,7 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24741
24741
|
function k(R) {
|
|
24742
24742
|
if (R.defaultPrevented)
|
|
24743
24743
|
return;
|
|
24744
|
-
const Q = R.target.closest("[data-radix-menu-content]") === R.currentTarget,
|
|
24744
|
+
const Q = R.target.closest("[data-radix-menu-content]") === R.currentTarget, V = R.ctrlKey || R.altKey || R.metaKey, ue = R.key.length === 1, be = tV(
|
|
24745
24745
|
R,
|
|
24746
24746
|
yo(),
|
|
24747
24747
|
_.value,
|
|
@@ -24755,22 +24755,22 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24755
24755
|
);
|
|
24756
24756
|
if (be)
|
|
24757
24757
|
return be == null ? void 0 : be.focus();
|
|
24758
|
-
if (R.code === "Space" || (Q && (R.key === "Tab" && R.preventDefault(), !
|
|
24758
|
+
if (R.code === "Space" || (Q && (R.key === "Tab" && R.preventDefault(), !V && ue && C(R.key)), R.target !== _.value) || !zV.includes(R.key))
|
|
24759
24759
|
return;
|
|
24760
24760
|
R.preventDefault();
|
|
24761
24761
|
const K = E.value;
|
|
24762
24762
|
VE.includes(R.key) && K.reverse(), Ig(K);
|
|
24763
24763
|
}
|
|
24764
24764
|
function F(R) {
|
|
24765
|
-
var Q,
|
|
24766
|
-
(
|
|
24765
|
+
var Q, V;
|
|
24766
|
+
(V = (Q = R == null ? void 0 : R.currentTarget) == null ? void 0 : Q.contains) != null && V.call(Q, R.target) || (window.clearTimeout(d.value), u.value = "");
|
|
24767
24767
|
}
|
|
24768
24768
|
function P(R) {
|
|
24769
24769
|
var Q;
|
|
24770
24770
|
if (!Rg(R))
|
|
24771
24771
|
return;
|
|
24772
|
-
const
|
|
24773
|
-
if ((Q = R == null ? void 0 : R.currentTarget) != null && Q.contains(
|
|
24772
|
+
const V = R.target, ue = b.value !== R.clientX;
|
|
24773
|
+
if ((Q = R == null ? void 0 : R.currentTarget) != null && Q.contains(V) && ue) {
|
|
24774
24774
|
const be = R.clientX > b.value ? "right" : "left";
|
|
24775
24775
|
m.value = be, b.value = R.clientX;
|
|
24776
24776
|
}
|
|
@@ -24791,28 +24791,28 @@ const [EU, _U] = cn("RovingFocusGroup"), n_ = /* @__PURE__ */ j({
|
|
|
24791
24791
|
"as-child": "",
|
|
24792
24792
|
trapped: g(s),
|
|
24793
24793
|
onMountAutoFocus: A,
|
|
24794
|
-
onUnmountAutoFocus: Q[7] || (Q[7] = (
|
|
24794
|
+
onUnmountAutoFocus: Q[7] || (Q[7] = (V) => o("closeAutoFocus", V))
|
|
24795
24795
|
}, {
|
|
24796
24796
|
default: N(() => [
|
|
24797
24797
|
D(g(hd), {
|
|
24798
24798
|
"as-child": "",
|
|
24799
24799
|
"disable-outside-pointer-events": g(a),
|
|
24800
|
-
onEscapeKeyDown: Q[2] || (Q[2] = (
|
|
24801
|
-
onPointerDownOutside: Q[3] || (Q[3] = (
|
|
24802
|
-
onFocusOutside: Q[4] || (Q[4] = (
|
|
24803
|
-
onInteractOutside: Q[5] || (Q[5] = (
|
|
24804
|
-
onDismiss: Q[6] || (Q[6] = (
|
|
24800
|
+
onEscapeKeyDown: Q[2] || (Q[2] = (V) => o("escapeKeyDown", V)),
|
|
24801
|
+
onPointerDownOutside: Q[3] || (Q[3] = (V) => o("pointerDownOutside", V)),
|
|
24802
|
+
onFocusOutside: Q[4] || (Q[4] = (V) => o("focusOutside", V)),
|
|
24803
|
+
onInteractOutside: Q[5] || (Q[5] = (V) => o("interactOutside", V)),
|
|
24804
|
+
onDismiss: Q[6] || (Q[6] = (V) => o("dismiss"))
|
|
24805
24805
|
}, {
|
|
24806
24806
|
default: N(() => [
|
|
24807
24807
|
D(g(n_), {
|
|
24808
24808
|
"current-tab-stop-id": y.value,
|
|
24809
|
-
"onUpdate:currentTabStopId": Q[0] || (Q[0] = (
|
|
24809
|
+
"onUpdate:currentTabStopId": Q[0] || (Q[0] = (V) => y.value = V),
|
|
24810
24810
|
"as-child": "",
|
|
24811
24811
|
orientation: "vertical",
|
|
24812
24812
|
dir: g(i).dir.value,
|
|
24813
24813
|
loop: g(l),
|
|
24814
|
-
onEntryFocus: Q[1] || (Q[1] = (
|
|
24815
|
-
o("entryFocus",
|
|
24814
|
+
onEntryFocus: Q[1] || (Q[1] = (V) => {
|
|
24815
|
+
o("entryFocus", V), g(i).isUsingKeyboardRef.value || V.preventDefault();
|
|
24816
24816
|
})
|
|
24817
24817
|
}, {
|
|
24818
24818
|
default: N(() => [
|
|
@@ -26838,7 +26838,7 @@ const AW = /* @__PURE__ */ j({
|
|
|
26838
26838
|
);
|
|
26839
26839
|
d.value.style.minWidth = `${xe}px`, d.value.style.right = `${Me}px`;
|
|
26840
26840
|
}
|
|
26841
|
-
const F = a.value, P = window.innerHeight - zr * 2, R = m.value.scrollHeight, Q = window.getComputedStyle(h.value),
|
|
26841
|
+
const F = a.value, P = window.innerHeight - zr * 2, R = m.value.scrollHeight, Q = window.getComputedStyle(h.value), V = Number.parseInt(
|
|
26842
26842
|
Q.borderTopWidth,
|
|
26843
26843
|
10
|
|
26844
26844
|
), ue = Number.parseInt(Q.paddingTop, 10), be = Number.parseInt(
|
|
@@ -26847,13 +26847,13 @@ const AW = /* @__PURE__ */ j({
|
|
|
26847
26847
|
), K = Number.parseInt(
|
|
26848
26848
|
Q.paddingBottom,
|
|
26849
26849
|
10
|
|
26850
|
-
),
|
|
26850
|
+
), U = V + ue + R + K + be, B = Math.min(
|
|
26851
26851
|
b.value.offsetHeight * 5,
|
|
26852
|
-
|
|
26852
|
+
U
|
|
26853
26853
|
), J = window.getComputedStyle(m.value), re = Number.parseInt(J.paddingTop, 10), ne = Number.parseInt(
|
|
26854
26854
|
J.paddingBottom,
|
|
26855
26855
|
10
|
|
26856
|
-
), he = C.top + C.height / 2 - zr, Re = P - he, De = b.value.offsetHeight / 2, ot = b.value.offsetTop + De, Ve =
|
|
26856
|
+
), he = C.top + C.height / 2 - zr, Re = P - he, De = b.value.offsetHeight / 2, ot = b.value.offsetTop + De, Ve = V + ue + ot, Ye = U - Ve;
|
|
26857
26857
|
if (Ve <= he) {
|
|
26858
26858
|
const se = b.value === F[F.length - 1];
|
|
26859
26859
|
d.value.style.bottom = "0px";
|
|
@@ -26867,7 +26867,7 @@ const AW = /* @__PURE__ */ j({
|
|
|
26867
26867
|
d.value.style.top = "0px";
|
|
26868
26868
|
const ce = Math.max(
|
|
26869
26869
|
he,
|
|
26870
|
-
|
|
26870
|
+
V + m.value.offsetTop + (se ? re : 0) + De
|
|
26871
26871
|
) + Ye;
|
|
26872
26872
|
d.value.style.height = `${ce}px`, m.value.scrollTop = Ve - he + m.value.offsetTop;
|
|
26873
26873
|
}
|
|
@@ -28595,7 +28595,7 @@ function $j(t, e = {}) {
|
|
|
28595
28595
|
}, Oe = ve();
|
|
28596
28596
|
return z && q.resetPeek(), Oe;
|
|
28597
28597
|
}
|
|
28598
|
-
function
|
|
28598
|
+
function V(q, z) {
|
|
28599
28599
|
const ve = q.currentChar();
|
|
28600
28600
|
return ve === xs ? xs : z(ve) ? (q.next(), ve) : null;
|
|
28601
28601
|
}
|
|
@@ -28608,7 +28608,7 @@ function $j(t, e = {}) {
|
|
|
28608
28608
|
z === 36;
|
|
28609
28609
|
}
|
|
28610
28610
|
function be(q) {
|
|
28611
|
-
return
|
|
28611
|
+
return V(q, ue);
|
|
28612
28612
|
}
|
|
28613
28613
|
function K(q) {
|
|
28614
28614
|
const z = q.charCodeAt(0);
|
|
@@ -28619,15 +28619,15 @@ function $j(t, e = {}) {
|
|
|
28619
28619
|
z === 36 || // $
|
|
28620
28620
|
z === 45;
|
|
28621
28621
|
}
|
|
28622
|
-
function
|
|
28623
|
-
return
|
|
28622
|
+
function U(q) {
|
|
28623
|
+
return V(q, K);
|
|
28624
28624
|
}
|
|
28625
28625
|
function B(q) {
|
|
28626
28626
|
const z = q.charCodeAt(0);
|
|
28627
28627
|
return z >= 48 && z <= 57;
|
|
28628
28628
|
}
|
|
28629
28629
|
function J(q) {
|
|
28630
|
-
return
|
|
28630
|
+
return V(q, B);
|
|
28631
28631
|
}
|
|
28632
28632
|
function re(q) {
|
|
28633
28633
|
const z = q.charCodeAt(0);
|
|
@@ -28636,7 +28636,7 @@ function $j(t, e = {}) {
|
|
|
28636
28636
|
z >= 97 && z <= 102;
|
|
28637
28637
|
}
|
|
28638
28638
|
function ne(q) {
|
|
28639
|
-
return
|
|
28639
|
+
return V(q, re);
|
|
28640
28640
|
}
|
|
28641
28641
|
function he(q) {
|
|
28642
28642
|
let z = "", ve = "";
|
|
@@ -28666,7 +28666,7 @@ function $j(t, e = {}) {
|
|
|
28666
28666
|
function De(q) {
|
|
28667
28667
|
w(q);
|
|
28668
28668
|
let z = "", ve = "";
|
|
28669
|
-
for (; z =
|
|
28669
|
+
for (; z = U(q); )
|
|
28670
28670
|
ve += z;
|
|
28671
28671
|
return q.currentChar() === xs && f(ft.UNTERMINATED_CLOSING_BRACE, i(), 0), ve;
|
|
28672
28672
|
}
|
|
@@ -28681,7 +28681,7 @@ function $j(t, e = {}) {
|
|
|
28681
28681
|
function Ye(q) {
|
|
28682
28682
|
w(q), b(q, "'");
|
|
28683
28683
|
let z = "", ve = "";
|
|
28684
|
-
for (; z =
|
|
28684
|
+
for (; z = V(q, Ve); )
|
|
28685
28685
|
z === "\\" ? ve += se(q) : ve += z;
|
|
28686
28686
|
const Oe = q.currentChar();
|
|
28687
28687
|
return Oe === To || Oe === xs ? (f(ft.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Oe === To && (q.next(), b(q, "'")), ve) : (b(q, "'"), ve);
|
|
@@ -28719,7 +28719,7 @@ function $j(t, e = {}) {
|
|
|
28719
28719
|
function xe(q) {
|
|
28720
28720
|
w(q);
|
|
28721
28721
|
let z = "", ve = "";
|
|
28722
|
-
for (; z =
|
|
28722
|
+
for (; z = V(q, we); )
|
|
28723
28723
|
ve += z;
|
|
28724
28724
|
return ve;
|
|
28725
28725
|
}
|
|
@@ -29897,7 +29897,7 @@ function Yq(t = {}) {
|
|
|
29897
29897
|
process.env.NODE_ENV !== "production" && sn(t.messageCompiler) && E_(za(Fo.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
29898
29898
|
const T = sn(t.messageResolver) ? t.messageResolver : T_ || Fq, A = sn(t.localeFallbacker) ? t.localeFallbacker : k_ || Oq, k = Ht(t.fallbackContext) ? t.fallbackContext : void 0, F = t, P = Ht(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), R = Ht(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), Q = Ht(F.__meta) ? F.__meta : {};
|
|
29899
29899
|
B8++;
|
|
29900
|
-
const
|
|
29900
|
+
const V = {
|
|
29901
29901
|
version: n,
|
|
29902
29902
|
cid: B8,
|
|
29903
29903
|
locale: o,
|
|
@@ -29921,7 +29921,7 @@ function Yq(t = {}) {
|
|
|
29921
29921
|
onWarn: e,
|
|
29922
29922
|
__meta: Q
|
|
29923
29923
|
};
|
|
29924
|
-
return
|
|
29924
|
+
return V.datetimeFormats = a, V.numberFormats = l, V.__datetimeFormatters = P, V.__numberFormatters = R, process.env.NODE_ENV !== "production" && (V.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && _q(V, n, Q), V;
|
|
29925
29925
|
}
|
|
29926
29926
|
const h1 = (t) => ({ [t]: en() });
|
|
29927
29927
|
function Qh(t, e) {
|
|
@@ -30199,18 +30199,18 @@ function j8(t, ...e) {
|
|
|
30199
30199
|
}, F = _r(C) ? C : P_(t, l, _, C, T, k);
|
|
30200
30200
|
if (A)
|
|
30201
30201
|
return C;
|
|
30202
|
-
const P = cK(t, _, E, u), R = iK(P), Q = aK(t, F, R),
|
|
30202
|
+
const P = cK(t, _, E, u), R = iK(P), Q = aK(t, F, R), V = o ? o(Q, l) : Q;
|
|
30203
30203
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
30204
30204
|
const ue = {
|
|
30205
30205
|
timestamp: Date.now(),
|
|
30206
30206
|
key: $e(l) ? l : _r(C) ? C.key : "",
|
|
30207
30207
|
locale: _ || (_r(C) ? C.locale : ""),
|
|
30208
30208
|
format: $e(C) ? C : _r(C) ? C.source : "",
|
|
30209
|
-
message:
|
|
30209
|
+
message: V
|
|
30210
30210
|
};
|
|
30211
30211
|
ue.meta = jn({}, t.__meta, /* @__PURE__ */ Gq() || {}), Sq(ue);
|
|
30212
30212
|
}
|
|
30213
|
-
return
|
|
30213
|
+
return V;
|
|
30214
30214
|
}
|
|
30215
30215
|
function sK(t) {
|
|
30216
30216
|
_n(t.list) ? t.list = t.list.map((e) => $e(e) ? S8(e) : e) : Ht(t.named) && Object.keys(t.named).forEach((e) => {
|
|
@@ -30657,11 +30657,11 @@ function Hv(t = {}) {
|
|
|
30657
30657
|
set: (X) => {
|
|
30658
30658
|
l.value = X, k.fallbackLocale = l.value, Gu(k, a.value, X);
|
|
30659
30659
|
}
|
|
30660
|
-
}),
|
|
30660
|
+
}), V = Y(() => u.value), ue = /* @__PURE__ */ Y(() => d.value), be = /* @__PURE__ */ Y(() => f.value);
|
|
30661
30661
|
function K() {
|
|
30662
30662
|
return sn(_) ? _ : null;
|
|
30663
30663
|
}
|
|
30664
|
-
function
|
|
30664
|
+
function U(X) {
|
|
30665
30665
|
_ = X, k.postTranslation = X;
|
|
30666
30666
|
}
|
|
30667
30667
|
function B() {
|
|
@@ -30827,7 +30827,7 @@ function Hv(t = {}) {
|
|
|
30827
30827
|
get availableLocales() {
|
|
30828
30828
|
return Object.keys(u.value).sort();
|
|
30829
30829
|
},
|
|
30830
|
-
messages:
|
|
30830
|
+
messages: V,
|
|
30831
30831
|
get modifiers() {
|
|
30832
30832
|
return T;
|
|
30833
30833
|
},
|
|
@@ -30878,7 +30878,7 @@ function Hv(t = {}) {
|
|
|
30878
30878
|
setLocaleMessage: Nt,
|
|
30879
30879
|
mergeLocaleMessage: Ut,
|
|
30880
30880
|
getPostTranslationHandler: K,
|
|
30881
|
-
setPostTranslationHandler:
|
|
30881
|
+
setPostTranslationHandler: U,
|
|
30882
30882
|
getMissingHandler: B,
|
|
30883
30883
|
setMissingHandler: J,
|
|
30884
30884
|
[F_]: Ae
|
|
@@ -31804,7 +31804,7 @@ const iG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
|
|
|
31804
31804
|
customClassToolbar: {}
|
|
31805
31805
|
},
|
|
31806
31806
|
setup(t) {
|
|
31807
|
-
const e = dR(() => import("./BulkSpellChecker-
|
|
31807
|
+
const e = dR(() => import("./BulkSpellChecker-CxF_-wmI.mjs")), { t: n } = Zt(), o = t, r = Yt("isEditable", H(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = Y(() => {
|
|
31808
31808
|
const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
|
|
31809
31809
|
let h = [];
|
|
31810
31810
|
for (const m of f) {
|
|
@@ -33931,7 +33931,7 @@ const uX = { key: 0 }, cX = {
|
|
|
33931
33931
|
sd(k, F);
|
|
33932
33932
|
}
|
|
33933
33933
|
return (k, F) => {
|
|
33934
|
-
const P = ct, R = Qi, Q = yu,
|
|
33934
|
+
const P = ct, R = Qi, Q = yu, V = Np, ue = au, be = Vc, K = Wv, U = Uv, B = nl, J = tl;
|
|
33935
33935
|
return M(), $(g(ud), {
|
|
33936
33936
|
editor: k.editor,
|
|
33937
33937
|
"plugin-key": "image-menus-123",
|
|
@@ -33983,7 +33983,7 @@ const uX = { key: 0 }, cX = {
|
|
|
33983
33983
|
D(B, { class: "w-84" }, {
|
|
33984
33984
|
default: N(() => [
|
|
33985
33985
|
ee("div", gX, [
|
|
33986
|
-
D(
|
|
33986
|
+
D(V, {
|
|
33987
33987
|
for: "maxWidth",
|
|
33988
33988
|
class: "whitespace-nowrap"
|
|
33989
33989
|
}, {
|
|
@@ -34001,7 +34001,7 @@ const uX = { key: 0 }, cX = {
|
|
|
34001
34001
|
onInput: _,
|
|
34002
34002
|
onKeyup: jl(d, ["enter"])
|
|
34003
34003
|
}, null, 8, ["modelValue"]),
|
|
34004
|
-
D(
|
|
34004
|
+
D(V, {
|
|
34005
34005
|
for: "maxWidth",
|
|
34006
34006
|
class: "whitespace-nowrap"
|
|
34007
34007
|
}, {
|
|
@@ -34021,7 +34021,7 @@ const uX = { key: 0 }, cX = {
|
|
|
34021
34021
|
}, null, 8, ["modelValue"])
|
|
34022
34022
|
]),
|
|
34023
34023
|
ee("div", bX, [
|
|
34024
|
-
D(
|
|
34024
|
+
D(U, {
|
|
34025
34025
|
"model-value": o.value,
|
|
34026
34026
|
"onUpdate:modelValue": [
|
|
34027
34027
|
F[2] || (F[2] = (re) => o.value = re),
|
|
@@ -34468,7 +34468,7 @@ const $X = () => {
|
|
|
34468
34468
|
(ne = k.value) == null || ne.closeDialog();
|
|
34469
34469
|
}
|
|
34470
34470
|
const Q = H([]);
|
|
34471
|
-
function
|
|
34471
|
+
function V(ne) {
|
|
34472
34472
|
Q.value = ne;
|
|
34473
34473
|
}
|
|
34474
34474
|
function ue(ne, he, Re = !0) {
|
|
@@ -34478,9 +34478,9 @@ const $X = () => {
|
|
|
34478
34478
|
we && (we.setAttribute(bt.ELEMENT_ID, Ye || ""), we.setAttribute(bt.TEXT, Re ? $H(se) : se));
|
|
34479
34479
|
}), ot.body.innerHTML;
|
|
34480
34480
|
}
|
|
34481
|
-
const be = (ne) => u.value = ne, K = H(null),
|
|
34481
|
+
const be = (ne) => u.value = ne, K = H(null), U = H();
|
|
34482
34482
|
function B(ne) {
|
|
34483
|
-
|
|
34483
|
+
U.value = ne;
|
|
34484
34484
|
}
|
|
34485
34485
|
const J = H();
|
|
34486
34486
|
function re(ne) {
|
|
@@ -34513,12 +34513,12 @@ const $X = () => {
|
|
|
34513
34513
|
openSuperInput: P,
|
|
34514
34514
|
closeSuperInput: R,
|
|
34515
34515
|
imageAttachments: Q,
|
|
34516
|
-
setImageAttachment:
|
|
34516
|
+
setImageAttachment: V,
|
|
34517
34517
|
getUpdatedContentBySuperText: ue,
|
|
34518
34518
|
textAlert: u,
|
|
34519
34519
|
setTextAlert: be,
|
|
34520
34520
|
focusFirstInvalidChar: K,
|
|
34521
|
-
editorSelectedMobile:
|
|
34521
|
+
editorSelectedMobile: U,
|
|
34522
34522
|
setEditorSelectedMobile: B,
|
|
34523
34523
|
editorContentMobile: J,
|
|
34524
34524
|
setEditorContentMobile: re
|
|
@@ -36390,7 +36390,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36390
36390
|
const J = P(B);
|
|
36391
36391
|
return J && !J.disableAutodetect;
|
|
36392
36392
|
}
|
|
36393
|
-
function
|
|
36393
|
+
function V(B) {
|
|
36394
36394
|
B["before:highlightBlock"] && !B["before:highlightElement"] && (B["before:highlightElement"] = (J) => {
|
|
36395
36395
|
B["before:highlightBlock"](
|
|
36396
36396
|
Object.assign({ block: J.el }, J)
|
|
@@ -36402,7 +36402,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36402
36402
|
});
|
|
36403
36403
|
}
|
|
36404
36404
|
function ue(B) {
|
|
36405
|
-
|
|
36405
|
+
V(B), o.push(B);
|
|
36406
36406
|
}
|
|
36407
36407
|
function be(B) {
|
|
36408
36408
|
const J = o.indexOf(B);
|
|
@@ -36414,7 +36414,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36414
36414
|
ne[re] && ne[re](J);
|
|
36415
36415
|
});
|
|
36416
36416
|
}
|
|
36417
|
-
function
|
|
36417
|
+
function U(B) {
|
|
36418
36418
|
return Ol("10.7.0", "highlightBlock will be removed entirely in v12.0"), Ol("10.7.0", "Please use highlightElement now."), y(B);
|
|
36419
36419
|
}
|
|
36420
36420
|
Object.assign(t, {
|
|
@@ -36423,7 +36423,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
|
|
|
36423
36423
|
highlightAll: C,
|
|
36424
36424
|
highlightElement: y,
|
|
36425
36425
|
// TODO: Remove with v12 API
|
|
36426
|
-
highlightBlock:
|
|
36426
|
+
highlightBlock: U,
|
|
36427
36427
|
configure: w,
|
|
36428
36428
|
initHighlighting: x,
|
|
36429
36429
|
initHighlightingOnLoad: _,
|
|
@@ -39336,13 +39336,13 @@ function IZ({
|
|
|
39336
39336
|
[Gp, Xp]
|
|
39337
39337
|
// <>
|
|
39338
39338
|
];
|
|
39339
|
-
for (let
|
|
39340
|
-
const [ue, be] = Q[
|
|
39339
|
+
for (let V = 0; V < Q.length; V++) {
|
|
39340
|
+
const [ue, be] = Q[V], K = Ie(T, ue);
|
|
39341
39341
|
Ie(A, ue, K), Ie(K, be, T);
|
|
39342
|
-
const
|
|
39343
|
-
Tt(K, e,
|
|
39342
|
+
const U = wr(Pf);
|
|
39343
|
+
Tt(K, e, U);
|
|
39344
39344
|
const B = wr();
|
|
39345
|
-
Tt(K, n), Tt(
|
|
39345
|
+
Tt(K, n), Tt(U, e, U), Tt(U, n, B), Tt(B, e, U), Tt(B, n, B), Ie(U, be, T), Ie(B, be, T);
|
|
39346
39346
|
}
|
|
39347
39347
|
return Ie(r, Gc, _), Ie(r, s2, NZ), {
|
|
39348
39348
|
start: r,
|
|
@@ -42822,12 +42822,12 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42822
42822
|
return (k = o.parentEditor) == null ? void 0 : k.extensionManager.extensions.find((F) => F.name === "spellchecker");
|
|
42823
42823
|
}), d = Y(
|
|
42824
42824
|
() => {
|
|
42825
|
-
var k, F, P, R, Q,
|
|
42825
|
+
var k, F, P, R, Q, V, ue;
|
|
42826
42826
|
return KT.configure({
|
|
42827
42827
|
proofreader: new v7({
|
|
42828
42828
|
api: (F = (k = u.value) == null ? void 0 : k.options.proofreader) == null ? void 0 : F.api,
|
|
42829
42829
|
limit: (R = (P = u.value) == null ? void 0 : P.options.proofreader) == null ? void 0 : R.limit,
|
|
42830
|
-
transfer: (
|
|
42830
|
+
transfer: (V = (Q = u.value) == null ? void 0 : Q.options.proofreader) == null ? void 0 : V.transfer,
|
|
42831
42831
|
enabled: l.value
|
|
42832
42832
|
}),
|
|
42833
42833
|
uiStrings: (ue = u.value) == null ? void 0 : ue.options.uiStrings
|
|
@@ -42885,29 +42885,29 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42885
42885
|
` }), F = getComputedStyle(b.value);
|
|
42886
42886
|
E.font = F.font;
|
|
42887
42887
|
const P = 20, R = () => Math.max(0, (y.value || 0) - P);
|
|
42888
|
-
function Q(K,
|
|
42888
|
+
function Q(K, U) {
|
|
42889
42889
|
let B = 1, J = K.length, re = 0;
|
|
42890
42890
|
for (; B <= J; ) {
|
|
42891
42891
|
const ne = Math.floor((B + J) / 2);
|
|
42892
|
-
E.measureText(K.slice(0, ne)).width <=
|
|
42892
|
+
E.measureText(K.slice(0, ne)).width <= U ? (re = ne, B = ne + 1) : J = ne - 1;
|
|
42893
42893
|
}
|
|
42894
42894
|
return re;
|
|
42895
42895
|
}
|
|
42896
|
-
let
|
|
42896
|
+
let V = "";
|
|
42897
42897
|
const ue = [];
|
|
42898
42898
|
for (const K of k) {
|
|
42899
42899
|
if (K === `
|
|
42900
42900
|
`) {
|
|
42901
|
-
ue.push(
|
|
42901
|
+
ue.push(V), V = "";
|
|
42902
42902
|
continue;
|
|
42903
42903
|
}
|
|
42904
|
-
if (
|
|
42905
|
-
for (; E.measureText(
|
|
42906
|
-
const
|
|
42907
|
-
|
|
42904
|
+
if (V += K, E.measureText(V).width > R())
|
|
42905
|
+
for (; E.measureText(V).width > R(); ) {
|
|
42906
|
+
const U = Q(V, R());
|
|
42907
|
+
U <= 0 ? (ue.push(V.charAt(0)), V = V.slice(1)) : (ue.push(V.slice(0, U)), V = V.slice(U));
|
|
42908
42908
|
}
|
|
42909
42909
|
}
|
|
42910
|
-
return ue.push(
|
|
42910
|
+
return ue.push(V), ue.map((K) => `<p>${K}</p>`).join("");
|
|
42911
42911
|
}
|
|
42912
42912
|
const { isScrolling: T, handleScroll: A } = Qc();
|
|
42913
42913
|
return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: C }), (k, F) => (M(), pe("div", {
|
|
@@ -42945,7 +42945,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42945
42945
|
},
|
|
42946
42946
|
emits: ["close", "save"],
|
|
42947
42947
|
setup(t, { emit: e }) {
|
|
42948
|
-
var Q,
|
|
42948
|
+
var Q, V;
|
|
42949
42949
|
const n = e, o = t, { t: r } = Zt(), i = H(""), s = H(""), a = H(null), l = H(!1), u = ur({ x: 0, y: 0 }), d = H(!1), f = { x: 0, y: 0 }, h = H(!1), m = H(!1), b = (ue) => {
|
|
42950
42950
|
d.value = !0, f.x = ue.clientX - u.x, f.y = ue.clientY - u.y, document.addEventListener("mousemove", y), document.addEventListener("mouseup", w);
|
|
42951
42951
|
}, y = (ue) => {
|
|
@@ -42960,8 +42960,8 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42960
42960
|
m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await Mt();
|
|
42961
42961
|
const be = document.querySelector(".draggable-dialog");
|
|
42962
42962
|
if (be) {
|
|
42963
|
-
const { width: K, height:
|
|
42964
|
-
u.x = 0, u.y = (B -
|
|
42963
|
+
const { width: K, height: U } = be.getBoundingClientRect(), B = window.innerHeight;
|
|
42964
|
+
u.x = 0, u.y = (B - U) / 2;
|
|
42965
42965
|
}
|
|
42966
42966
|
}
|
|
42967
42967
|
},
|
|
@@ -42973,7 +42973,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42973
42973
|
i.value = a.value.wrapText(), s.value = "", m.value ? h.value = !0 : n("close"), n("save", i.value), i.value = "";
|
|
42974
42974
|
}, E = () => {
|
|
42975
42975
|
h.value = !1, n("close");
|
|
42976
|
-
}, C = (
|
|
42976
|
+
}, C = (V = (Q = o.editor) == null ? void 0 : Q.extensionManager.extensions.find((ue) => ue.name === "superText")) == null ? void 0 : V.options.specialCharModal, T = Zx("recentSpecialChars", []), A = (ue) => {
|
|
42977
42977
|
if (!ue) return;
|
|
42978
42978
|
const be = (T.value ?? []).filter((K) => K !== ue);
|
|
42979
42979
|
be.unshift(ue), T.value = be.slice(0, 5);
|
|
@@ -42995,7 +42995,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
42995
42995
|
}), Be(i, (ue) => {
|
|
42996
42996
|
!o.superTextElementId || o.superTextElementId === "" || (m.value = ue !== (o.superTextInit ?? ""));
|
|
42997
42997
|
}), (ue, be) => {
|
|
42998
|
-
const K = B2,
|
|
42998
|
+
const K = B2, U = P2, B = D2, J = ST, re = L2, ne = R2, he = I2, Re = Zee;
|
|
42999
42999
|
return M(), pe(nt, null, [
|
|
43000
43000
|
D(he, { open: ue.open }, {
|
|
43001
43001
|
default: N(() => [
|
|
@@ -43030,7 +43030,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
|
|
|
43030
43030
|
]),
|
|
43031
43031
|
_: 1
|
|
43032
43032
|
}),
|
|
43033
|
-
D(
|
|
43033
|
+
D(U, {
|
|
43034
43034
|
class: "absolute right-3 top-3 text-white",
|
|
43035
43035
|
onClick: x
|
|
43036
43036
|
}, {
|
|
@@ -44197,9 +44197,9 @@ const nx = (t) => t.command(({ tr: e }) => {
|
|
|
44197
44197
|
else
|
|
44198
44198
|
return;
|
|
44199
44199
|
const { width: F, height: P } = g(r), R = F / P;
|
|
44200
|
-
let Q = Number(e.node.attrs.width) || F,
|
|
44200
|
+
let Q = Number(e.node.attrs.width) || F, V = Number(e.node.attrs.height) || Math.round(Q / R);
|
|
44201
44201
|
const ue = g(o).width;
|
|
44202
|
-
Q = Math.min(Q > ue ? ue : Q, ue),
|
|
44202
|
+
Q = Math.min(Q > ue ? ue : Q, ue), V = Math.round(Q / R), Object.assign(s.value, { x: T, y: A, w: Q, h: V, dir: C }), i.value = !0, y();
|
|
44203
44203
|
}
|
|
44204
44204
|
const m = xt.throttle((E) => {
|
|
44205
44205
|
if (!g(i)) return;
|
|
@@ -44671,8 +44671,8 @@ function Hte(t, e) {
|
|
|
44671
44671
|
P > k && (R = P - A);
|
|
44672
44672
|
const Q = C.state.doc.content.size;
|
|
44673
44673
|
R < 0 && (R = 0), R > Q && (R = Q);
|
|
44674
|
-
const
|
|
44675
|
-
ue.delete(k, F), ue.insert(R,
|
|
44674
|
+
const V = T.type.create(T.attrs), ue = C.state.tr;
|
|
44675
|
+
ue.delete(k, F), ue.insert(R, V), C.dispatch(ue), b();
|
|
44676
44676
|
return;
|
|
44677
44677
|
}
|
|
44678
44678
|
if (o) {
|
|
@@ -49148,10 +49148,10 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49148
49148
|
return {
|
|
49149
49149
|
update: async (x, _) => {
|
|
49150
49150
|
var E, C, T, A, k, F, P;
|
|
49151
|
-
const R = (E = this.key) === null || E === void 0 ? void 0 : E.getState(_), Q = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state),
|
|
49152
|
-
if (!
|
|
49151
|
+
const R = (E = this.key) === null || E === void 0 ? void 0 : E.getState(_), Q = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), V = R.active && Q.active && R.range.from !== Q.range.from, ue = !R.active && Q.active, be = R.active && !Q.active, K = !ue && !be && R.query !== Q.query, U = ue || V && K, B = K || V, J = be || V && K;
|
|
49152
|
+
if (!U && !B && !J)
|
|
49153
49153
|
return;
|
|
49154
|
-
const re = J && !
|
|
49154
|
+
const re = J && !U ? R : Q, ne = x.dom.querySelector(`[data-decoration-id="${re.decorationId}"]`);
|
|
49155
49155
|
b = {
|
|
49156
49156
|
editor: e,
|
|
49157
49157
|
range: re.range,
|
|
@@ -49171,10 +49171,10 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49171
49171
|
const { decorationId: Re } = (he = this.key) === null || he === void 0 ? void 0 : he.getState(e.state), De = x.dom.querySelector(`[data-decoration-id="${Re}"]`);
|
|
49172
49172
|
return (De == null ? void 0 : De.getBoundingClientRect()) || null;
|
|
49173
49173
|
} : null
|
|
49174
|
-
},
|
|
49174
|
+
}, U && ((T = y == null ? void 0 : y.onBeforeStart) === null || T === void 0 || T.call(y, b)), B && ((A = y == null ? void 0 : y.onBeforeUpdate) === null || A === void 0 || A.call(y, b)), (B || U) && (b.items = await d({
|
|
49175
49175
|
editor: e,
|
|
49176
49176
|
query: re.query
|
|
49177
|
-
})), J && ((k = y == null ? void 0 : y.onExit) === null || k === void 0 || k.call(y, b)), B && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, b)),
|
|
49177
|
+
})), J && ((k = y == null ? void 0 : y.onExit) === null || k === void 0 || k.call(y, b)), B && ((F = y == null ? void 0 : y.onUpdate) === null || F === void 0 || F.call(y, b)), U && ((P = y == null ? void 0 : y.onStart) === null || P === void 0 || P.call(y, b));
|
|
49178
49178
|
},
|
|
49179
49179
|
destroy: () => {
|
|
49180
49180
|
var x;
|
|
@@ -49208,13 +49208,13 @@ function yre({ pluginKey: t = vre, editor: e, char: n = "@", allowSpaces: o = !1
|
|
|
49208
49208
|
allowedPrefixes: i,
|
|
49209
49209
|
startOfLine: s,
|
|
49210
49210
|
$position: k.$from
|
|
49211
|
-
}),
|
|
49211
|
+
}), V = `id_${Math.floor(Math.random() * 4294967295)}`;
|
|
49212
49212
|
Q && h({
|
|
49213
49213
|
editor: e,
|
|
49214
49214
|
state: C,
|
|
49215
49215
|
range: Q.range,
|
|
49216
49216
|
isActive: _.active
|
|
49217
|
-
}) ? (R.active = !0, R.decorationId = _.decorationId ? _.decorationId :
|
|
49217
|
+
}) ? (R.active = !0, R.decorationId = _.decorationId ? _.decorationId : V, R.range = Q.range, R.query = Q.query, R.text = Q.text) : R.active = !1;
|
|
49218
49218
|
} else
|
|
49219
49219
|
R.active = !1;
|
|
49220
49220
|
return R.active || (R.decorationId = null, R.range = { from: 0, to: 0 }, R.query = null, R.text = null), R;
|
|
@@ -53002,15 +53002,15 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53002
53002
|
if (!e.value || !t) return;
|
|
53003
53003
|
const A = e.value.index, k = e.value.id, { state: F } = t, { tr: P } = F;
|
|
53004
53004
|
let R = !1;
|
|
53005
|
-
F.doc.descendants((Q,
|
|
53005
|
+
F.doc.descendants((Q, V) => {
|
|
53006
53006
|
var ue, be;
|
|
53007
53007
|
if (((ue = Q.attrs) == null ? void 0 : ue[bt.ID]) === k) {
|
|
53008
53008
|
(be = Q.attrs[bt.TEXT]) != null && be.trim();
|
|
53009
53009
|
const K = T.trim();
|
|
53010
53010
|
if (f0(K))
|
|
53011
|
-
return P.delete(
|
|
53012
|
-
const { [bt.ELEMENT_ID]:
|
|
53013
|
-
return P.setNodeMarkup(
|
|
53011
|
+
return P.delete(V, V + 1), R = !0, !1;
|
|
53012
|
+
const { [bt.ELEMENT_ID]: U, ...B } = Q.attrs;
|
|
53013
|
+
return P.setNodeMarkup(V, void 0, {
|
|
53014
53014
|
...B,
|
|
53015
53015
|
[bt.TEXT]: K
|
|
53016
53016
|
}), R = !0, !1;
|
|
@@ -53051,8 +53051,8 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53051
53051
|
T.forEach((P) => {
|
|
53052
53052
|
const R = P.getAttribute("book-mark-id");
|
|
53053
53053
|
if (!R) return;
|
|
53054
|
-
const Q = P.offsetTop + P.offsetHeight,
|
|
53055
|
-
l.value.set(R, Math.max(Q,
|
|
53054
|
+
const Q = P.offsetTop + P.offsetHeight, V = l.value.get(R) || 0;
|
|
53055
|
+
l.value.set(R, Math.max(Q, V));
|
|
53056
53056
|
}), T.forEach((P, R) => {
|
|
53057
53057
|
k[R].isHidden && P.classList.add("hidden"), k[R].isTruncated && P.classList.add("super-text-truncate");
|
|
53058
53058
|
});
|
|
@@ -53063,9 +53063,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53063
53063
|
}, b = async () => {
|
|
53064
53064
|
await Mt();
|
|
53065
53065
|
const A = u().map((k) => {
|
|
53066
|
-
const F = k.getAttribute("node-id"), P = k.getAttribute("book-mark-content"), R = k.getAttribute("page-id"), Q = k.getAttribute("page-number"),
|
|
53066
|
+
const F = k.getAttribute("node-id"), P = k.getAttribute("book-mark-content"), R = k.getAttribute("page-id"), Q = k.getAttribute("page-number"), V = k.getBoundingClientRect(), ue = k.getAttribute("line-id"), be = k.getAttribute("element-id");
|
|
53067
53067
|
return {
|
|
53068
|
-
position:
|
|
53068
|
+
position: V,
|
|
53069
53069
|
text: h(P),
|
|
53070
53070
|
id: F,
|
|
53071
53071
|
pageId: R,
|
|
@@ -53102,9 +53102,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53102
53102
|
const x = async (T) => {
|
|
53103
53103
|
await Mt();
|
|
53104
53104
|
const A = t == null ? void 0 : t.view.dom.querySelector(`[node-id='${T.dataId}']`), k = r.value.find((R) => {
|
|
53105
|
-
const Q = R.getBoundingClientRect().top,
|
|
53106
|
-
if (
|
|
53107
|
-
const ue =
|
|
53105
|
+
const Q = R.getBoundingClientRect().top, V = A == null ? void 0 : A.getBoundingClientRect().top;
|
|
53106
|
+
if (V == null) return !1;
|
|
53107
|
+
const ue = V - Q;
|
|
53108
53108
|
return Math.abs(ue - 9) <= 2;
|
|
53109
53109
|
});
|
|
53110
53110
|
if (!k) return;
|
|
@@ -53117,8 +53117,8 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53117
53117
|
const P = k.getBoundingClientRect();
|
|
53118
53118
|
r.value.forEach((R, Q) => {
|
|
53119
53119
|
if (Q !== F) {
|
|
53120
|
-
const
|
|
53121
|
-
y(P,
|
|
53120
|
+
const V = R.getBoundingClientRect();
|
|
53121
|
+
y(P, V) && R.classList.add("hidden");
|
|
53122
53122
|
}
|
|
53123
53123
|
}), m();
|
|
53124
53124
|
}, _ = (T) => {
|
|
@@ -53224,9 +53224,9 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53224
53224
|
"line-id": k.lineId,
|
|
53225
53225
|
class: We(g(He)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
|
|
53226
53226
|
style: Dt({ top: `${k.visiblePosition || ((P = k.position) == null ? void 0 : P.top)}px` }),
|
|
53227
|
-
onMouseover: (
|
|
53227
|
+
onMouseover: (V) => g(f)(V, F),
|
|
53228
53228
|
onMouseleave: C[0] || (C[0] = //@ts-ignore
|
|
53229
|
-
(...
|
|
53229
|
+
(...V) => g(h) && g(h)(...V))
|
|
53230
53230
|
}, [
|
|
53231
53231
|
D(g(w7), {
|
|
53232
53232
|
role: "text",
|
|
@@ -53240,7 +53240,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
53240
53240
|
}
|
|
53241
53241
|
)
|
|
53242
53242
|
),
|
|
53243
|
-
onDblclick: (
|
|
53243
|
+
onDblclick: (V) => b(k, F)
|
|
53244
53244
|
}, {
|
|
53245
53245
|
default: N(() => [
|
|
53246
53246
|
ee("div", {
|
|
@@ -53790,7 +53790,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53790
53790
|
}
|
|
53791
53791
|
});
|
|
53792
53792
|
fn("minCharSuperInput", o.minChar.superPreview);
|
|
53793
|
-
const { contentInner: Q, measuredMinWidth:
|
|
53793
|
+
const { contentInner: Q, measuredMinWidth: V, measure: ue } = Rh({
|
|
53794
53794
|
minChars: o.minChar.content,
|
|
53795
53795
|
fontSize: T,
|
|
53796
53796
|
editor: R
|
|
@@ -53799,7 +53799,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53799
53799
|
return (ae = be.value) == null ? void 0 : ae.measuredMinWidthComment;
|
|
53800
53800
|
});
|
|
53801
53801
|
fn("measuredMinWidthComment", K);
|
|
53802
|
-
const
|
|
53802
|
+
const U = Y(() => C.value ? 0 : ne.value ? Number(V == null ? void 0 : V.value) + Number(K == null ? void 0 : K.value) + 30 : Number(V == null ? void 0 : V.value));
|
|
53803
53803
|
async function B() {
|
|
53804
53804
|
await Mt(), i.emit({
|
|
53805
53805
|
action: "render"
|
|
@@ -53962,7 +53962,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
|
|
|
53962
53962
|
key: 1,
|
|
53963
53963
|
class: "space-y-2 flex-1 flex flex-col",
|
|
53964
53964
|
style: Dt({
|
|
53965
|
-
minWidth: `${
|
|
53965
|
+
minWidth: `${U.value}px`
|
|
53966
53966
|
})
|
|
53967
53967
|
}, [
|
|
53968
53968
|
ae.mode === g(et).REPORT && !ae.hideComment ? (M(), $(rae, {
|
|
@@ -54868,12 +54868,12 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54868
54868
|
ae > xe[0] && ae <= we && (Ae.size = Ae.min, se.prevReachedMinPanes += Ae.min);
|
|
54869
54869
|
}), se.prevPanesSize = P(xe[0]), xe[0] === void 0) ? (se.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((Ae, ae) => {
|
|
54870
54870
|
ae > 0 && ae <= we && (Ae.size = Ae.min, se.prevReachedMinPanes += Ae.min);
|
|
54871
|
-
}), i.value[xe[1]].size = 100 - se.prevReachedMinPanes - i.value[0].min - se.prevPanesSize - se.nextPanesSize, null) : ce > 100 - se.nextPanesSize - i.value[xe[1]].min && (xe[1] =
|
|
54871
|
+
}), i.value[xe[1]].size = 100 - se.prevReachedMinPanes - i.value[0].min - se.prevPanesSize - se.nextPanesSize, null) : ce > 100 - se.nextPanesSize - i.value[xe[1]].min && (xe[1] = V(we).index, se.nextReachedMinPanes = 0, xe[1] > we + 1 && i.value.forEach((Ae, ae) => {
|
|
54872
54872
|
ae > we && ae < xe[1] && (Ae.size = Ae.min, se.nextReachedMinPanes += Ae.min);
|
|
54873
54873
|
}), se.nextPanesSize = R(xe[1] - 1), xe[1] === void 0) ? (se.nextReachedMinPanes = 0, i.value.forEach((Ae, ae) => {
|
|
54874
54874
|
ae < a.value - 1 && ae >= we + 1 && (Ae.size = Ae.min, se.nextReachedMinPanes += Ae.min);
|
|
54875
54875
|
}), i.value[xe[0]].size = 100 - se.prevPanesSize - R(xe[0] - 1), null) : { sums: se, panesToResize: xe };
|
|
54876
|
-
}, P = (se) => i.value.reduce((ce, we, xe) => ce + (xe < se ? we.size : 0), 0), R = (se) => i.value.reduce((ce, we, xe) => ce + (xe > se + 1 ? we.size : 0), 0), Q = (se) => [...i.value].reverse().find((ce) => ce.index < se && ce.size > ce.min) || {},
|
|
54876
|
+
}, P = (se) => i.value.reduce((ce, we, xe) => ce + (xe < se ? we.size : 0), 0), R = (se) => i.value.reduce((ce, we, xe) => ce + (xe > se + 1 ? we.size : 0), 0), Q = (se) => [...i.value].reverse().find((ce) => ce.index < se && ce.size > ce.min) || {}, V = (se) => i.value.find((ce) => ce.index > se + 1 && ce.size > ce.min) || {}, ue = () => {
|
|
54877
54877
|
var se;
|
|
54878
54878
|
const ce = Array.from(((se = l.value) == null ? void 0 : se.children) || []);
|
|
54879
54879
|
for (const we of ce) {
|
|
@@ -54885,7 +54885,7 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54885
54885
|
Ae.classList.add("splitpanes__splitter"), we || (Ae.onmousedown = (ae) => y(ae, xe), typeof window < "u" && "ontouchstart" in window && (Ae.ontouchstart = (ae) => y(ae, xe)), Ae.onclick = (ae) => _(ae, xe + 1)), Ae.ondblclick = (ae) => E(ae, xe + 1), ce.parentNode.insertBefore(Ae, ce);
|
|
54886
54886
|
}, K = (se) => {
|
|
54887
54887
|
se.onmousedown = void 0, se.onclick = void 0, se.ondblclick = void 0, se.remove();
|
|
54888
|
-
},
|
|
54888
|
+
}, U = () => {
|
|
54889
54889
|
var se;
|
|
54890
54890
|
const ce = Array.from(((se = l.value) == null ? void 0 : se.children) || []);
|
|
54891
54891
|
for (const xe of ce)
|
|
@@ -54900,14 +54900,14 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54900
54900
|
var ce;
|
|
54901
54901
|
let we = -1;
|
|
54902
54902
|
Array.from(((ce = l.value) == null ? void 0 : ce.children) || []).some((xe) => (xe.className.includes("splitpanes__pane") && we++, xe.isSameNode(se.el))), i.value.splice(we, 0, { ...se, index: we }), i.value.forEach((xe, Ae) => xe.index = Ae), u.value && Mt(() => {
|
|
54903
|
-
|
|
54903
|
+
U(), ne({ addedPane: i.value[we] }), Ve("pane-add", { pane: i.value[we] });
|
|
54904
54904
|
});
|
|
54905
54905
|
}, re = (se) => {
|
|
54906
54906
|
const ce = i.value.findIndex((xe) => xe.id === se);
|
|
54907
54907
|
i.value[ce].el = null;
|
|
54908
54908
|
const we = i.value.splice(ce, 1)[0];
|
|
54909
54909
|
i.value.forEach((xe, Ae) => xe.index = Ae), Mt(() => {
|
|
54910
|
-
|
|
54910
|
+
U(), Ve("pane-remove", { pane: we }), ne({ removedPane: { ...we } });
|
|
54911
54911
|
});
|
|
54912
54912
|
}, ne = (se = {}) => {
|
|
54913
54913
|
!se.addedPane && !se.removedPane ? Re() : i.value.some((ce) => ce.givenSize !== null || ce.min || ce.max < 100) ? De(se) : he(), u.value && Ve("resized");
|
|
@@ -54966,8 +54966,8 @@ const S7 = /* @__PURE__ */ j({
|
|
|
54966
54966
|
panes: i.value.map((Ae) => ({ min: Ae.min, max: Ae.max, size: Ae.size }))
|
|
54967
54967
|
});
|
|
54968
54968
|
};
|
|
54969
|
-
Be(() => o.firstSplitter, () =>
|
|
54970
|
-
ue(),
|
|
54969
|
+
Be(() => o.firstSplitter, () => U()), pt(() => {
|
|
54970
|
+
ue(), U(), ne(), Ve("ready"), u.value = !0;
|
|
54971
54971
|
}), lo(() => u.value = !1);
|
|
54972
54972
|
const Ye = () => {
|
|
54973
54973
|
var se;
|
|
@@ -55165,7 +55165,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55165
55165
|
fontSize: C.value
|
|
55166
55166
|
})), k = H(), { height: F } = CR(), P = Y(() => {
|
|
55167
55167
|
var X;
|
|
55168
|
-
if (
|
|
55168
|
+
if (U.value)
|
|
55169
55169
|
return {
|
|
55170
55170
|
bottom: "15px"
|
|
55171
55171
|
};
|
|
@@ -55190,7 +55190,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55190
55190
|
maxWidth: Rn(o.maxWidth),
|
|
55191
55191
|
width: o.maxWidth ? "100%" : void 0,
|
|
55192
55192
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
55193
|
-
})),
|
|
55193
|
+
})), V = new is({
|
|
55194
55194
|
enablePasteRules: !1,
|
|
55195
55195
|
// disable Markdown when pasting
|
|
55196
55196
|
enableInputRules: !1,
|
|
@@ -55234,12 +55234,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55234
55234
|
});
|
|
55235
55235
|
}), y(X);
|
|
55236
55236
|
}
|
|
55237
|
-
const be = H(), K = H(!0),
|
|
55237
|
+
const be = H(), K = H(!0), U = H(!1);
|
|
55238
55238
|
function B() {
|
|
55239
55239
|
i.isNativeWebViewAvailable() && (i.receiveDataFromNative("keyboardDidShow", (oe) => {
|
|
55240
|
-
|
|
55240
|
+
U.value = !0;
|
|
55241
55241
|
}), i.receiveDataFromNative("keyboardDidHide", (oe) => {
|
|
55242
|
-
|
|
55242
|
+
U.value = !1;
|
|
55243
55243
|
}));
|
|
55244
55244
|
}
|
|
55245
55245
|
function J(oe) {
|
|
@@ -55253,13 +55253,13 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55253
55253
|
K.value = !me;
|
|
55254
55254
|
}
|
|
55255
55255
|
k4(document, "focusin", J), k4(document, "focusout", J), pt(() => {
|
|
55256
|
-
ne(
|
|
55256
|
+
ne(V), w(V), B();
|
|
55257
55257
|
});
|
|
55258
|
-
const re = Y(() => o.isShowFormatControlBar && K.value && !
|
|
55258
|
+
const re = Y(() => o.isShowFormatControlBar && K.value && !U.value);
|
|
55259
55259
|
function ne(oe) {
|
|
55260
|
-
be.value = oe ??
|
|
55260
|
+
be.value = oe ?? V, l.setEditorSelectedMobile(be.value);
|
|
55261
55261
|
}
|
|
55262
|
-
const he = Y(() =>
|
|
55262
|
+
const he = Y(() => V.storage.superText.isShowSuperInputMoblie);
|
|
55263
55263
|
function Re(oe, X) {
|
|
55264
55264
|
if (!oe) return "";
|
|
55265
55265
|
if (oe.isEmpty)
|
|
@@ -55280,19 +55280,19 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55280
55280
|
}
|
|
55281
55281
|
}
|
|
55282
55282
|
function De(oe) {
|
|
55283
|
-
return oe.every((X) =>
|
|
55283
|
+
return oe.every((X) => V == null ? void 0 : V.extensionManager.extensions.find((me) => me.name === X));
|
|
55284
55284
|
}
|
|
55285
55285
|
Be(
|
|
55286
55286
|
() => b.languages,
|
|
55287
55287
|
() => {
|
|
55288
|
-
|
|
55288
|
+
V.commands.checkSpelling();
|
|
55289
55289
|
}
|
|
55290
55290
|
), Be(
|
|
55291
55291
|
() => o.modelValue,
|
|
55292
55292
|
(oe) => {
|
|
55293
|
-
if (!
|
|
55294
|
-
const { from: X, to: me } =
|
|
55295
|
-
|
|
55293
|
+
if (!V || xt.isEqual(Re(V, o.output), oe)) return;
|
|
55294
|
+
const { from: X, to: me } = V.state.selection;
|
|
55295
|
+
V.commands.setTextSelection({ from: X, to: me }), V.commands.setContent(bo(oe, o.disabled, o.mode), !1, {
|
|
55296
55296
|
preserveWhitespace: "full"
|
|
55297
55297
|
});
|
|
55298
55298
|
},
|
|
@@ -55307,7 +55307,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55307
55307
|
() => E.value,
|
|
55308
55308
|
(oe) => {
|
|
55309
55309
|
var X;
|
|
55310
|
-
|
|
55310
|
+
V == null || V.setEditable(oe), (X = V == null ? void 0 : V.commands) != null && X.setIsEnableSuggestion && V.commands.setIsEnableSuggestion(oe);
|
|
55311
55311
|
},
|
|
55312
55312
|
{ immediate: !0 }
|
|
55313
55313
|
), Be(
|
|
@@ -55319,12 +55319,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55319
55319
|
}
|
|
55320
55320
|
), zn(() => {
|
|
55321
55321
|
var oe;
|
|
55322
|
-
|
|
55322
|
+
V == null || V.destroy(), (oe = be.value) == null || oe.destroy();
|
|
55323
55323
|
}), bd(cd.SAVE, () => {
|
|
55324
|
-
localStorage.setItem("content", Re(
|
|
55324
|
+
localStorage.setItem("content", Re(V, "html"));
|
|
55325
55325
|
});
|
|
55326
55326
|
const ot = (oe, X) => {
|
|
55327
|
-
const me =
|
|
55327
|
+
const me = V;
|
|
55328
55328
|
if (me) {
|
|
55329
55329
|
if (X) {
|
|
55330
55330
|
const ge = me.state.doc.nodeAt(+X), { [bt.ELEMENT_ID]: Ne, ...Je } = (ge == null ? void 0 : ge.attrs) || {};
|
|
@@ -55348,7 +55348,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55348
55348
|
}
|
|
55349
55349
|
}, Ve = (oe) => {
|
|
55350
55350
|
var me;
|
|
55351
|
-
const X = be.value ??
|
|
55351
|
+
const X = be.value ?? V;
|
|
55352
55352
|
if (X) {
|
|
55353
55353
|
const { from: ge } = X.view.state.selection;
|
|
55354
55354
|
X.commands.insertContentAt(ge, {
|
|
@@ -55359,19 +55359,19 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55359
55359
|
(me = be.value) == null || me.commands.toggleConfigPlanInput();
|
|
55360
55360
|
};
|
|
55361
55361
|
function Ye(oe) {
|
|
55362
|
-
oe === et.STRAIGHT &&
|
|
55362
|
+
oe === et.STRAIGHT && V.commands.focus("end"), oe === et.EDITOR && V.commands.focus("end");
|
|
55363
55363
|
}
|
|
55364
55364
|
const se = Y(() => E.value && o.mode === et.STRAIGHT || E.value && o.mode === et.REPORT);
|
|
55365
55365
|
pt(() => {
|
|
55366
55366
|
var oe, X;
|
|
55367
|
-
o.autoFocus && Ye(o.mode), (oe =
|
|
55367
|
+
o.autoFocus && Ye(o.mode), (oe = V == null ? void 0 : V.commands) != null && oe.setIsMobile && V.commands.setIsMobile(!0), (X = V.storage.superText) != null && X.enable && V.commands.toggleSuperTextView();
|
|
55368
55368
|
}), Be(
|
|
55369
55369
|
() => o.mode,
|
|
55370
55370
|
(oe) => {
|
|
55371
55371
|
o.autoFocus && Ye(oe);
|
|
55372
55372
|
}
|
|
55373
55373
|
);
|
|
55374
|
-
const ce = (mt =
|
|
55374
|
+
const ce = (mt = V.extensionManager.extensions.find((oe) => oe.name === "superText")) == null ? void 0 : mt.options.bottomSheetComponent, we = Y(() => {
|
|
55375
55375
|
const oe = o.mode === et.REPORT, X = o.mode === et.EDITOR && o.isScreenSplit, me = !o.hideComment;
|
|
55376
55376
|
return (oe || X) && me;
|
|
55377
55377
|
}), xe = Y(() => !we.value), {
|
|
@@ -55386,10 +55386,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55386
55386
|
function q() {
|
|
55387
55387
|
if (!o.contentAutoCopied) return;
|
|
55388
55388
|
const oe = eL(o.contentAutoCopied, ".super-text");
|
|
55389
|
-
_(
|
|
55389
|
+
_(V, oe);
|
|
55390
55390
|
}
|
|
55391
55391
|
const { isScrolling: z, handleScroll: ve } = Qc(), { isScrolling: Oe, handleScroll: Ge } = Qc();
|
|
55392
|
-
return e({ editor:
|
|
55392
|
+
return e({ editor: V }), (oe, X) => {
|
|
55393
55393
|
var Pt, It, Fn, Zn;
|
|
55394
55394
|
const me = S7, ge = C0, Ne = x0, Je = w0, yt = r0, jt = E7, pn = uae, Lr = Np, fe = aae, qe = ln, rt = ao;
|
|
55395
55395
|
return M(), pe(nt, null, [
|
|
@@ -55411,24 +55411,24 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55411
55411
|
}, [
|
|
55412
55412
|
!oe.hideBubble && !oe.disabled && g(E) ? (M(), pe(nt, { key: 0 }, [
|
|
55413
55413
|
D(me, {
|
|
55414
|
-
editor: g(
|
|
55414
|
+
editor: g(V),
|
|
55415
55415
|
mode: oe.mode
|
|
55416
55416
|
}, null, 8, ["editor", "mode"]),
|
|
55417
55417
|
De([g(vd)]) ? (M(), $(ge, {
|
|
55418
55418
|
key: 0,
|
|
55419
|
-
editor: g(
|
|
55419
|
+
editor: g(V)
|
|
55420
55420
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55421
55421
|
De([g(il)]) ? (M(), $(Ne, {
|
|
55422
55422
|
key: 1,
|
|
55423
|
-
editor: g(
|
|
55423
|
+
editor: g(V)
|
|
55424
55424
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55425
55425
|
De([g(ta)]) ? (M(), $(Je, {
|
|
55426
55426
|
key: 2,
|
|
55427
|
-
editor: g(
|
|
55427
|
+
editor: g(V)
|
|
55428
55428
|
}, null, 8, ["editor"])) : Se("", !0),
|
|
55429
55429
|
De([g(na), g(oa)]) ? (M(), $(yt, {
|
|
55430
55430
|
key: 3,
|
|
55431
|
-
editor: g(
|
|
55431
|
+
editor: g(V)
|
|
55432
55432
|
}, null, 8, ["editor"])) : Se("", !0)
|
|
55433
55433
|
], 64)) : Se("", !0),
|
|
55434
55434
|
oe.hideToolbar ? Se("", !0) : (M(), $(jt, {
|
|
@@ -55448,7 +55448,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55448
55448
|
visibility: g(K) ? "visible" : "hidden",
|
|
55449
55449
|
pointerEvents: g(K) ? "auto" : "none"
|
|
55450
55450
|
}),
|
|
55451
|
-
class: We(g(He)("absolute left-5 right-5 z-[12]", g(
|
|
55451
|
+
class: We(g(He)("absolute left-5 right-5 z-[12]", g(U) && "fixed", oe.customClassFormatControlBar))
|
|
55452
55452
|
}, [
|
|
55453
55453
|
D(pn, {
|
|
55454
55454
|
editor: g(be),
|
|
@@ -55464,7 +55464,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55464
55464
|
onResize: g(Ut)
|
|
55465
55465
|
}, {
|
|
55466
55466
|
default: N(() => [
|
|
55467
|
-
|
|
55467
|
+
g(we) ? (M(), $(g(Ra), {
|
|
55468
55468
|
key: 0,
|
|
55469
55469
|
size: g(Ke),
|
|
55470
55470
|
"min-size": g(Ae),
|
|
@@ -55581,10 +55581,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55581
55581
|
}),
|
|
55582
55582
|
D(fe, {
|
|
55583
55583
|
id: "superView",
|
|
55584
|
-
checked: g(
|
|
55584
|
+
checked: g(V).storage.superText.enable,
|
|
55585
55585
|
class: "w-8 h-5 data-[state=checked]:bg-blue-500",
|
|
55586
55586
|
"custom-class-thumb": "w-4 h-4 data-[state=checked]:translate-x-3",
|
|
55587
|
-
"onUpdate:checked": X[4] || (X[4] = (Si) => g(
|
|
55587
|
+
"onUpdate:checked": X[4] || (X[4] = (Si) => g(V).commands.toggleSuperTextView())
|
|
55588
55588
|
}, null, 8, ["checked"])
|
|
55589
55589
|
], 2)) : Se("", !0),
|
|
55590
55590
|
oe.contentAutoCopied ? (M(), $(rt, {
|
|
@@ -55617,7 +55617,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55617
55617
|
}, [
|
|
55618
55618
|
D(g(fi), {
|
|
55619
55619
|
id: "editor-panel",
|
|
55620
|
-
editor: g(
|
|
55620
|
+
editor: g(V),
|
|
55621
55621
|
class: We(["flex-1 flex-col relative break-all", oe.mode === g(et).PLAIN_TEXT && "plain-text"])
|
|
55622
55622
|
}, null, 8, ["editor", "class"])
|
|
55623
55623
|
], 34), [
|
|
@@ -55631,12 +55631,12 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
|
|
|
55631
55631
|
_: 1
|
|
55632
55632
|
}, 8, ["class", "style", "onResize"])
|
|
55633
55633
|
], 6)) : Se("", !0),
|
|
55634
|
-
(Pt = g(
|
|
55634
|
+
(Pt = g(V)) != null && Pt.storage.superText && g(ce) ? (M(), $(bae, {
|
|
55635
55635
|
key: 1,
|
|
55636
55636
|
open: g(he),
|
|
55637
|
-
editor: g(
|
|
55637
|
+
editor: g(V),
|
|
55638
55638
|
"bottom-sheet-component": g(ce),
|
|
55639
|
-
onClose: X[6] || (X[6] = (Qn) => g(
|
|
55639
|
+
onClose: X[6] || (X[6] = (Qn) => g(V).commands.toggleSuperInputMoblie()),
|
|
55640
55640
|
onSave: ot
|
|
55641
55641
|
}, null, 8, ["open", "editor", "bottom-sheet-component"])) : Se("", !0),
|
|
55642
55642
|
(It = g(be)) != null && It.storage.configPlan ? (M(), $(MT, {
|
|
@@ -55789,8 +55789,8 @@ var A7 = { exports: {} };
|
|
|
55789
55789
|
return /^\s+$/.test(K);
|
|
55790
55790
|
}
|
|
55791
55791
|
function r(K) {
|
|
55792
|
-
var
|
|
55793
|
-
return !!
|
|
55792
|
+
var U = K.match(/^\s*<([^!>][^>]*)>\s*$/);
|
|
55793
|
+
return !!U && U[1].trim().split(" ")[0];
|
|
55794
55794
|
}
|
|
55795
55795
|
function i(K) {
|
|
55796
55796
|
return !r(K);
|
|
@@ -55803,18 +55803,18 @@ var A7 = { exports: {} };
|
|
|
55803
55803
|
}
|
|
55804
55804
|
var l, u = new RegExp("^<(iframe|object|math|svg|script|video|head|style|a)");
|
|
55805
55805
|
function d(K) {
|
|
55806
|
-
var
|
|
55807
|
-
return
|
|
55806
|
+
var U = l.exec(K);
|
|
55807
|
+
return U && U[1];
|
|
55808
55808
|
}
|
|
55809
|
-
function f(K,
|
|
55810
|
-
return K.substring(K.length -
|
|
55809
|
+
function f(K, U) {
|
|
55810
|
+
return K.substring(K.length - U.length - 2) === "</" + U;
|
|
55811
55811
|
}
|
|
55812
55812
|
function h(K) {
|
|
55813
55813
|
return /^\s*<[^>]+\/>\s*$/.test(K);
|
|
55814
55814
|
}
|
|
55815
55815
|
function m(K) {
|
|
55816
|
-
var
|
|
55817
|
-
return
|
|
55816
|
+
var U = /^<img[\s>]/.test(K);
|
|
55817
|
+
return U || i(K) || d(K) || h(K);
|
|
55818
55818
|
}
|
|
55819
55819
|
function b(K) {
|
|
55820
55820
|
return {
|
|
@@ -55822,39 +55822,39 @@ var A7 = { exports: {} };
|
|
|
55822
55822
|
key: x(K)
|
|
55823
55823
|
};
|
|
55824
55824
|
}
|
|
55825
|
-
function y(K,
|
|
55826
|
-
this.segment = J, this.length = B, this.startInBefore = K + J.beforeIndex, this.startInAfter =
|
|
55825
|
+
function y(K, U, B, J) {
|
|
55826
|
+
this.segment = J, this.length = B, this.startInBefore = K + J.beforeIndex, this.startInAfter = U + J.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = K, this.segmentStartInAfter = U, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
|
|
55827
55827
|
}
|
|
55828
55828
|
function w(K) {
|
|
55829
|
-
for (var
|
|
55829
|
+
for (var U = "char", B = "", J = "", re = [], ne = 0; ne < K.length; ne++) {
|
|
55830
55830
|
var he = K[ne];
|
|
55831
|
-
switch (
|
|
55831
|
+
switch (U) {
|
|
55832
55832
|
case "tag":
|
|
55833
55833
|
var Re = d(B);
|
|
55834
|
-
Re ? (
|
|
55834
|
+
Re ? (U = "atomic_tag", J = Re, B += he) : s(B) ? (U = "html_comment", B += he) : e(he) ? (B += ">", re.push(b(B)), B = "", o(he) ? U = "whitespace" : U = "char") : B += he;
|
|
55835
55835
|
break;
|
|
55836
55836
|
case "atomic_tag":
|
|
55837
|
-
e(he) && f(B, J) ? (B += ">", re.push(b(B)), B = "", J = "",
|
|
55837
|
+
e(he) && f(B, J) ? (B += ">", re.push(b(B)), B = "", J = "", U = "char") : B += he;
|
|
55838
55838
|
break;
|
|
55839
55839
|
case "html_comment":
|
|
55840
|
-
B += he, a(B) && (B = "",
|
|
55840
|
+
B += he, a(B) && (B = "", U = "char");
|
|
55841
55841
|
break;
|
|
55842
55842
|
case "char":
|
|
55843
|
-
n(he) ? (B && re.push(b(B)), B = "<",
|
|
55843
|
+
n(he) ? (B && re.push(b(B)), B = "<", U = "tag") : /\s/.test(he) ? (B && re.push(b(B)), B = he, U = "whitespace") : /[\w\d\#@]/.test(he) ? B += he : /&/.test(he) ? (B && re.push(b(B)), B = he) : (B += he, re.push(b(B)), B = "");
|
|
55844
55844
|
break;
|
|
55845
55845
|
case "whitespace":
|
|
55846
|
-
n(he) ? (B && re.push(b(B)), B = "<",
|
|
55846
|
+
n(he) ? (B && re.push(b(B)), B = "<", U = "tag") : o(he) ? B += he : (B && re.push(b(B)), B = he, U = "char");
|
|
55847
55847
|
break;
|
|
55848
55848
|
default:
|
|
55849
|
-
throw new Error("Unknown mode " +
|
|
55849
|
+
throw new Error("Unknown mode " + U);
|
|
55850
55850
|
}
|
|
55851
55851
|
}
|
|
55852
55852
|
return B && re.push(b(B)), re;
|
|
55853
55853
|
}
|
|
55854
55854
|
function x(K) {
|
|
55855
|
-
var
|
|
55856
|
-
if (
|
|
55857
|
-
return '<img src="' +
|
|
55855
|
+
var U = /^<img.*src=['"]([^"']*)['"].*>$/.exec(K);
|
|
55856
|
+
if (U)
|
|
55857
|
+
return '<img src="' + U[1] + '">';
|
|
55858
55858
|
var B = /^<a.*href=['"]([^"']*)['"]/.exec(K);
|
|
55859
55859
|
if (B)
|
|
55860
55860
|
return '<a href="' + B[1] + '"></a>';
|
|
@@ -55876,12 +55876,12 @@ var A7 = { exports: {} };
|
|
|
55876
55876
|
return De ? "<" + De[1].toLowerCase() + ">" : K && K.replace(/(\s+| | )/g, " ");
|
|
55877
55877
|
}
|
|
55878
55878
|
function _(K) {
|
|
55879
|
-
return K.reduce(function(
|
|
55880
|
-
return
|
|
55879
|
+
return K.reduce(function(U, B, J) {
|
|
55880
|
+
return U[B.key] ? U[B.key].push(J) : U[B.key] = [J], U;
|
|
55881
55881
|
}, /* @__PURE__ */ Object.create(null));
|
|
55882
55882
|
}
|
|
55883
|
-
function E(K,
|
|
55884
|
-
return
|
|
55883
|
+
function E(K, U) {
|
|
55884
|
+
return U.endInBefore < K.startInBefore && U.endInAfter < K.startInAfter ? -1 : U.startInBefore > K.endInBefore && U.startInAfter > K.endInAfter ? 1 : 0;
|
|
55885
55885
|
}
|
|
55886
55886
|
function C() {
|
|
55887
55887
|
this._root = null;
|
|
@@ -55893,7 +55893,7 @@ var A7 = { exports: {} };
|
|
|
55893
55893
|
* @param {Match} value The match to add to the binary search tree.
|
|
55894
55894
|
*/
|
|
55895
55895
|
add: function(K) {
|
|
55896
|
-
var
|
|
55896
|
+
var U = {
|
|
55897
55897
|
value: K,
|
|
55898
55898
|
left: null,
|
|
55899
55899
|
right: null
|
|
@@ -55905,21 +55905,21 @@ var A7 = { exports: {} };
|
|
|
55905
55905
|
if (B.left)
|
|
55906
55906
|
B = B.left;
|
|
55907
55907
|
else {
|
|
55908
|
-
B.left =
|
|
55908
|
+
B.left = U;
|
|
55909
55909
|
break;
|
|
55910
55910
|
}
|
|
55911
55911
|
else if (J === 1)
|
|
55912
55912
|
if (B.right)
|
|
55913
55913
|
B = B.right;
|
|
55914
55914
|
else {
|
|
55915
|
-
B.right =
|
|
55915
|
+
B.right = U;
|
|
55916
55916
|
break;
|
|
55917
55917
|
}
|
|
55918
55918
|
else
|
|
55919
55919
|
break;
|
|
55920
55920
|
}
|
|
55921
55921
|
else
|
|
55922
|
-
this._root =
|
|
55922
|
+
this._root = U;
|
|
55923
55923
|
},
|
|
55924
55924
|
/**
|
|
55925
55925
|
* Converts the binary search tree into an array using an in-order traversal.
|
|
@@ -55927,18 +55927,18 @@ var A7 = { exports: {} };
|
|
|
55927
55927
|
* @return {Array.<Match>} An array containing the matches in the binary search tree.
|
|
55928
55928
|
*/
|
|
55929
55929
|
toArray: function() {
|
|
55930
|
-
function K(
|
|
55931
|
-
return
|
|
55930
|
+
function K(U, B) {
|
|
55931
|
+
return U && (K(U.left, B), B.push(U.value), K(U.right, B)), B;
|
|
55932
55932
|
}
|
|
55933
55933
|
return K(this._root, []);
|
|
55934
55934
|
}
|
|
55935
55935
|
};
|
|
55936
55936
|
function T(K) {
|
|
55937
|
-
for (var
|
|
55938
|
-
var he = !1, Re =
|
|
55937
|
+
for (var U = K.beforeTokens, B = K.afterMap, J = null, re = null, ne = 0; ne < U.length; ne++) {
|
|
55938
|
+
var he = !1, Re = U.length - ne;
|
|
55939
55939
|
if (re && Re < re.length)
|
|
55940
55940
|
break;
|
|
55941
|
-
var De =
|
|
55941
|
+
var De = U[ne];
|
|
55942
55942
|
if (De.key === " ") {
|
|
55943
55943
|
J = ne;
|
|
55944
55944
|
continue;
|
|
@@ -55958,37 +55958,37 @@ var A7 = { exports: {} };
|
|
|
55958
55958
|
}
|
|
55959
55959
|
return re;
|
|
55960
55960
|
}
|
|
55961
|
-
function A(K,
|
|
55962
|
-
var ne = K.beforeTokens, he = K.afterTokens, Re =
|
|
55961
|
+
function A(K, U, B, J, re) {
|
|
55962
|
+
var ne = K.beforeTokens, he = K.afterTokens, Re = U + J, De = B + J;
|
|
55963
55963
|
if (!(Re >= ne.length || De >= he.length)) {
|
|
55964
55964
|
if (J) {
|
|
55965
55965
|
var ot = ne[Re].key, Ve = he[De].key;
|
|
55966
55966
|
if (ot !== Ve)
|
|
55967
55967
|
return;
|
|
55968
55968
|
}
|
|
55969
|
-
for (var Ye = !0, se = 1, ce =
|
|
55969
|
+
for (var Ye = !0, se = 1, ce = U + se, we = B + se; Ye && ce < ne.length && we < he.length; ) {
|
|
55970
55970
|
var xe = ne[ce].key, Ae = he[we].key;
|
|
55971
|
-
xe === Ae ? (se++, ce =
|
|
55971
|
+
xe === Ae ? (se++, ce = U + se, we = B + se) : Ye = !1;
|
|
55972
55972
|
}
|
|
55973
|
-
if (re &&
|
|
55974
|
-
var ae = ne[
|
|
55975
|
-
ae === " " && Me === " " && (
|
|
55973
|
+
if (re && U > 0 && B > 0) {
|
|
55974
|
+
var ae = ne[U - 1].key, Me = he[B - 1].key;
|
|
55975
|
+
ae === " " && Me === " " && (U--, B--, se++);
|
|
55976
55976
|
}
|
|
55977
|
-
return new y(
|
|
55977
|
+
return new y(U, B, se, K);
|
|
55978
55978
|
}
|
|
55979
55979
|
}
|
|
55980
|
-
function k(K,
|
|
55980
|
+
function k(K, U, B, J) {
|
|
55981
55981
|
return {
|
|
55982
55982
|
beforeTokens: K,
|
|
55983
|
-
afterTokens:
|
|
55983
|
+
afterTokens: U,
|
|
55984
55984
|
beforeMap: _(K),
|
|
55985
|
-
afterMap: _(
|
|
55985
|
+
afterMap: _(U),
|
|
55986
55986
|
beforeIndex: B,
|
|
55987
55987
|
afterIndex: J
|
|
55988
55988
|
};
|
|
55989
55989
|
}
|
|
55990
55990
|
function F(K) {
|
|
55991
|
-
for (var
|
|
55991
|
+
for (var U = new C(), B, J = [K]; J.length; )
|
|
55992
55992
|
if (K = J.pop(), B = T(K), B && B.length) {
|
|
55993
55993
|
if (B.segmentStartInBefore > 0 && B.segmentStartInAfter > 0) {
|
|
55994
55994
|
var re = K.beforeTokens.slice(
|
|
@@ -56008,15 +56008,15 @@ var A7 = { exports: {} };
|
|
|
56008
56008
|
Re,
|
|
56009
56009
|
De,
|
|
56010
56010
|
ot
|
|
56011
|
-
)),
|
|
56011
|
+
)), U.add(B);
|
|
56012
56012
|
}
|
|
56013
|
-
return
|
|
56013
|
+
return U.toArray();
|
|
56014
56014
|
}
|
|
56015
|
-
function P(K,
|
|
56015
|
+
function P(K, U) {
|
|
56016
56016
|
if (!K) throw new Error("Missing beforeTokens");
|
|
56017
|
-
if (!
|
|
56018
|
-
var B = 0, J = 0, re = [], ne = k(K,
|
|
56019
|
-
he.push(new y(K.length,
|
|
56017
|
+
if (!U) throw new Error("Missing afterTokens");
|
|
56018
|
+
var B = 0, J = 0, re = [], ne = k(K, U, 0, 0), he = F(ne);
|
|
56019
|
+
he.push(new y(K.length, U.length, 0, ne));
|
|
56020
56020
|
for (var Re = 0; Re < he.length; Re++) {
|
|
56021
56021
|
var De = he[Re], ot = "none";
|
|
56022
56022
|
B === De.startInBefore ? J !== De.startInAfter && (ot = "insert") : (ot = "delete", J !== De.startInAfter && (ot = "replace")), ot !== "none" && re.push({
|
|
@@ -56044,21 +56044,21 @@ var A7 = { exports: {} };
|
|
|
56044
56044
|
return Ve;
|
|
56045
56045
|
}
|
|
56046
56046
|
function R(K) {
|
|
56047
|
-
this.tokens = K, this.notes = K.reduce(function(
|
|
56048
|
-
|
|
56047
|
+
this.tokens = K, this.notes = K.reduce(function(U, B, J) {
|
|
56048
|
+
U.notes.push({
|
|
56049
56049
|
isWrappable: m(B),
|
|
56050
56050
|
insertedTag: !1
|
|
56051
56051
|
});
|
|
56052
|
-
var re = !h(B) && r(B), ne =
|
|
56053
|
-
return re && (ne && "/" + ne.tag === re ? (
|
|
56052
|
+
var re = !h(B) && r(B), ne = U.tagStack[U.tagStack.length - 1];
|
|
56053
|
+
return re && (ne && "/" + ne.tag === re ? (U.notes[ne.position].insertedTag = !0, U.tagStack.pop()) : U.tagStack.push({
|
|
56054
56054
|
tag: re,
|
|
56055
56055
|
position: J
|
|
56056
|
-
})),
|
|
56056
|
+
})), U;
|
|
56057
56057
|
}, { notes: [], tagStack: [] }).notes;
|
|
56058
56058
|
}
|
|
56059
|
-
R.prototype.combine = function(K,
|
|
56059
|
+
R.prototype.combine = function(K, U) {
|
|
56060
56060
|
var B = this.notes, J = this.tokens.slice(), re = J.reduce(function(ne, he, Re) {
|
|
56061
|
-
B[Re].insertedTag && (J[Re] =
|
|
56061
|
+
B[Re].insertedTag && (J[Re] = U(J[Re])), ne.status === null && (ne.status = B[Re].isWrappable);
|
|
56062
56062
|
var De = B[Re].isWrappable;
|
|
56063
56063
|
return De !== ne.status && (ne.list.push({
|
|
56064
56064
|
isWrappable: ne.status,
|
|
@@ -56070,8 +56070,8 @@ var A7 = { exports: {} };
|
|
|
56070
56070
|
}, { list: [], status: null, lastIndex: 0 }).list;
|
|
56071
56071
|
return re.map(K).join("");
|
|
56072
56072
|
};
|
|
56073
|
-
function Q(K,
|
|
56074
|
-
var ne = new R(
|
|
56073
|
+
function Q(K, U, B, J, re) {
|
|
56074
|
+
var ne = new R(U);
|
|
56075
56075
|
J = J ? J + "-" : "";
|
|
56076
56076
|
var he = " data-" + J + 'operation-index="' + B + '"';
|
|
56077
56077
|
return re && (he += ' class="' + re + '"'), ne.combine(function(Re) {
|
|
@@ -56087,46 +56087,46 @@ var A7 = { exports: {} };
|
|
|
56087
56087
|
return De += " data-" + J + 'operation-index="' + B + '"', Re.replace(/>\s*$/, De + "$&");
|
|
56088
56088
|
});
|
|
56089
56089
|
}
|
|
56090
|
-
var
|
|
56091
|
-
equal: function(K,
|
|
56090
|
+
var V = {
|
|
56091
|
+
equal: function(K, U, B, J, re, ne) {
|
|
56092
56092
|
var he = B.slice(K.startInAfter, K.endInAfter + 1);
|
|
56093
56093
|
return he.reduce(function(Re, De) {
|
|
56094
56094
|
return Re + De.string;
|
|
56095
56095
|
}, "");
|
|
56096
56096
|
},
|
|
56097
|
-
insert: function(K,
|
|
56097
|
+
insert: function(K, U, B, J, re, ne) {
|
|
56098
56098
|
var he = B.slice(K.startInAfter, K.endInAfter + 1), Re = he.map(function(De) {
|
|
56099
56099
|
return De.string;
|
|
56100
56100
|
});
|
|
56101
56101
|
return Q("ins", Re, J, re, ne);
|
|
56102
56102
|
},
|
|
56103
|
-
delete: function(K,
|
|
56104
|
-
var he =
|
|
56103
|
+
delete: function(K, U, B, J, re, ne) {
|
|
56104
|
+
var he = U.slice(K.startInBefore, K.endInBefore + 1), Re = he.map(function(De) {
|
|
56105
56105
|
return De.string;
|
|
56106
56106
|
});
|
|
56107
56107
|
return Q("del", Re, J, re, ne);
|
|
56108
56108
|
},
|
|
56109
56109
|
replace: function() {
|
|
56110
|
-
return
|
|
56110
|
+
return V.delete.apply(null, arguments) + V.insert.apply(null, arguments);
|
|
56111
56111
|
}
|
|
56112
56112
|
};
|
|
56113
|
-
function ue(K,
|
|
56113
|
+
function ue(K, U, B, J, re) {
|
|
56114
56114
|
return B.reduce(function(ne, he, Re) {
|
|
56115
|
-
return ne +
|
|
56115
|
+
return ne + V[he.action](
|
|
56116
56116
|
he,
|
|
56117
56117
|
K,
|
|
56118
|
-
|
|
56118
|
+
U,
|
|
56119
56119
|
Re,
|
|
56120
56120
|
J,
|
|
56121
56121
|
re
|
|
56122
56122
|
);
|
|
56123
56123
|
}, "");
|
|
56124
56124
|
}
|
|
56125
|
-
function be(K,
|
|
56126
|
-
if (K ===
|
|
56127
|
-
re ? l = new RegExp("^<(" + re.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, K = w(K),
|
|
56128
|
-
var ne = P(K,
|
|
56129
|
-
return ue(K,
|
|
56125
|
+
function be(K, U, B, J, re) {
|
|
56126
|
+
if (K === U) return K;
|
|
56127
|
+
re ? l = new RegExp("^<(" + re.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, K = w(K), U = w(U);
|
|
56128
|
+
var ne = P(K, U);
|
|
56129
|
+
return ue(K, U, ne, J, B);
|
|
56130
56130
|
}
|
|
56131
56131
|
be.htmlToTokens = w, be.findMatchingBlocks = F, F.findBestMatch = T, F.createMap = _, F.createToken = b, F.createSegment = k, F.getKeyForToken = x, be.calculateOperations = P, be.renderOperations = ue, t !== null ? t.exports = be : this.htmldiff = be;
|
|
56132
56132
|
}).call(Rl);
|
|
@@ -56177,7 +56177,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56177
56177
|
class: "flex flex-col"
|
|
56178
56178
|
}, {
|
|
56179
56179
|
default: N(() => {
|
|
56180
|
-
var x, _, E, C, T, A, k, F, P, R;
|
|
56180
|
+
var x, _, E, C, T, A, k, F, P, R, Q;
|
|
56181
56181
|
return [
|
|
56182
56182
|
(_ = (x = b.originalData) == null ? void 0 : x.titleBar) != null && _.title ? (M(), pe("div", Eae, [
|
|
56183
56183
|
ee("div", _ae, [
|
|
@@ -56202,7 +56202,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56202
56202
|
)
|
|
56203
56203
|
),
|
|
56204
56204
|
onScroll: y[0] || (y[0] = //@ts-ignore
|
|
56205
|
-
(...
|
|
56205
|
+
(...V) => g(f) && g(f)(...V))
|
|
56206
56206
|
}, [
|
|
56207
56207
|
D(xc, {
|
|
56208
56208
|
"editor-class": "h-full",
|
|
@@ -56213,8 +56213,9 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56213
56213
|
"field-name-comment": (k = b.originalData) == null ? void 0 : k.fieldNameComment,
|
|
56214
56214
|
"field-name-content": (F = b.originalData) == null ? void 0 : F.fieldNameContent,
|
|
56215
56215
|
comment: (P = b.originalData) == null ? void 0 : P.comment,
|
|
56216
|
-
"model-value": (R = b.originalData) == null ? void 0 : R.content
|
|
56217
|
-
|
|
56216
|
+
"model-value": (R = b.originalData) == null ? void 0 : R.content,
|
|
56217
|
+
"hide-comment": (Q = b.originalData) == null ? void 0 : Q.hideComment
|
|
56218
|
+
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
|
|
56218
56219
|
], 34), [
|
|
56219
56220
|
[ir, g(i)]
|
|
56220
56221
|
])
|
|
@@ -56224,7 +56225,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56224
56225
|
}, 8, ["size", "min-size"]),
|
|
56225
56226
|
g(n) ? (M(), $(g(Ra), { key: 0 }, {
|
|
56226
56227
|
default: N(() => {
|
|
56227
|
-
var x, _, E, C;
|
|
56228
|
+
var x, _, E, C, T;
|
|
56228
56229
|
return [
|
|
56229
56230
|
ee("div", Mae, [
|
|
56230
56231
|
D(xc, {
|
|
@@ -56236,8 +56237,9 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56236
56237
|
"field-name-comment": (x = b.changedData) == null ? void 0 : x.fieldNameComment,
|
|
56237
56238
|
"field-name-content": (_ = b.changedData) == null ? void 0 : _.fieldNameContent,
|
|
56238
56239
|
comment: (E = b.changedData) == null ? void 0 : E.comment,
|
|
56239
|
-
"model-value": (C = b.changedData) == null ? void 0 : C.content
|
|
56240
|
-
|
|
56240
|
+
"model-value": (C = b.changedData) == null ? void 0 : C.content,
|
|
56241
|
+
"hide-comment": (T = b.changedData) == null ? void 0 : T.hideComment
|
|
56242
|
+
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
|
|
56241
56243
|
])
|
|
56242
56244
|
];
|
|
56243
56245
|
}),
|
|
@@ -56249,7 +56251,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56249
56251
|
class: "flex flex-col"
|
|
56250
56252
|
}, {
|
|
56251
56253
|
default: N(() => {
|
|
56252
|
-
var x, _, E, C, T, A, k, F;
|
|
56254
|
+
var x, _, E, C, T, A, k, F, P;
|
|
56253
56255
|
return [
|
|
56254
56256
|
(_ = (x = b.changedData) == null ? void 0 : x.titleBar) != null && _.title ? (M(), pe("div", Nae, [
|
|
56255
56257
|
ee("div", Iae, [
|
|
@@ -56274,7 +56276,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56274
56276
|
)
|
|
56275
56277
|
),
|
|
56276
56278
|
onScroll: y[1] || (y[1] = //@ts-ignore
|
|
56277
|
-
(...
|
|
56279
|
+
(...R) => g(m) && g(m)(...R))
|
|
56278
56280
|
}, [
|
|
56279
56281
|
D(xc, {
|
|
56280
56282
|
"editor-class": "h-full",
|
|
@@ -56285,8 +56287,9 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56285
56287
|
"field-name-comment": (k = b.changedData) == null ? void 0 : k.fieldNameComment,
|
|
56286
56288
|
"field-name-content": (F = b.changedData) == null ? void 0 : F.fieldNameContent,
|
|
56287
56289
|
comment: g(o).comment,
|
|
56288
|
-
"model-value": g(o).content
|
|
56289
|
-
|
|
56290
|
+
"model-value": g(o).content,
|
|
56291
|
+
"hide-comment": (P = b.changedData) == null ? void 0 : P.hideComment
|
|
56292
|
+
}, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
|
|
56290
56293
|
], 34), [
|
|
56291
56294
|
[ir, g(s)]
|
|
56292
56295
|
])
|
|
@@ -56300,7 +56303,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
|
|
|
56300
56303
|
], 2);
|
|
56301
56304
|
};
|
|
56302
56305
|
}
|
|
56303
|
-
}), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-
|
|
56306
|
+
}), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-cff36561"]]), O7 = (t) => {
|
|
56304
56307
|
if (!t) return -1;
|
|
56305
56308
|
const { from: e } = t.state.selection;
|
|
56306
56309
|
let n = 0;
|
|
@@ -56558,15 +56561,15 @@ const kle = /* @__PURE__ */ j({
|
|
|
56558
56561
|
fn("isEditable", m);
|
|
56559
56562
|
const b = H(void 0), y = H(), w = Y(
|
|
56560
56563
|
() => [...a.extensions, ...xt.differenceBy(o.extensions, a.extensions, "name")].map(
|
|
56561
|
-
(
|
|
56564
|
+
(U, B) => U.configure({ sort: B })
|
|
56562
56565
|
)
|
|
56563
56566
|
), x = H(o.fontSizeDefault), _ = H(o.fontFamilyDefault);
|
|
56564
56567
|
fn("fontSize", x), fn("fontFamily", _);
|
|
56565
56568
|
const E = Y(() => ({
|
|
56566
56569
|
fontFamily: _.value,
|
|
56567
56570
|
fontSize: x.value
|
|
56568
|
-
})), C = H(), T = (
|
|
56569
|
-
const B = parseInt(x.value || "12px"), J =
|
|
56571
|
+
})), C = H(), T = (U) => {
|
|
56572
|
+
const B = parseInt(x.value || "12px"), J = U ? B + 2 : B - 2;
|
|
56570
56573
|
x.value = J + "px";
|
|
56571
56574
|
};
|
|
56572
56575
|
du(() => {
|
|
@@ -56584,9 +56587,9 @@ const kle = /* @__PURE__ */ j({
|
|
|
56584
56587
|
width: o.maxWidth ? "100%" : void 0,
|
|
56585
56588
|
margin: o.maxWidth ? "0 auto" : void 0
|
|
56586
56589
|
}));
|
|
56587
|
-
function k(
|
|
56590
|
+
function k(U) {
|
|
56588
56591
|
if (o.disabled || o.readonly) return;
|
|
56589
|
-
const B = O7(
|
|
56592
|
+
const B = O7(U);
|
|
56590
56593
|
b.value = B;
|
|
56591
56594
|
}
|
|
56592
56595
|
function F() {
|
|
@@ -56598,13 +56601,13 @@ const kle = /* @__PURE__ */ j({
|
|
|
56598
56601
|
enableInputRules: !1,
|
|
56599
56602
|
// disable Markdown when typing
|
|
56600
56603
|
content: bo(o.modelValue, o.disabled, o.mode),
|
|
56601
|
-
onCreate: ({ editor:
|
|
56602
|
-
f(
|
|
56604
|
+
onCreate: ({ editor: U }) => {
|
|
56605
|
+
f(U);
|
|
56603
56606
|
},
|
|
56604
|
-
onUpdate: xt.throttle(({ editor:
|
|
56607
|
+
onUpdate: xt.throttle(({ editor: U }) => {
|
|
56605
56608
|
u.value = !0;
|
|
56606
|
-
const B = be(
|
|
56607
|
-
r("update:modelValue", B), r("change", { editor:
|
|
56609
|
+
const B = be(U, o.output);
|
|
56610
|
+
r("update:modelValue", B), r("change", { editor: U, output: B }), f(U);
|
|
56608
56611
|
}, vi),
|
|
56609
56612
|
extensions: xt.uniqBy(xt.reverse(g(w)), "name"),
|
|
56610
56613
|
editable: m.value,
|
|
@@ -56621,40 +56624,40 @@ const kle = /* @__PURE__ */ j({
|
|
|
56621
56624
|
pt(() => {
|
|
56622
56625
|
Q.value = P;
|
|
56623
56626
|
});
|
|
56624
|
-
const
|
|
56627
|
+
const V = ({ lineIndex: U }) => {
|
|
56625
56628
|
var J;
|
|
56626
|
-
P && Wx({ lineIndex:
|
|
56629
|
+
P && Wx({ lineIndex: U, editor: P });
|
|
56627
56630
|
const B = (J = y.value) == null ? void 0 : J.editor;
|
|
56628
|
-
B && Wx({ lineIndex:
|
|
56631
|
+
B && Wx({ lineIndex: U, editor: B });
|
|
56629
56632
|
};
|
|
56630
56633
|
Be(
|
|
56631
56634
|
() => b.value,
|
|
56632
|
-
(
|
|
56633
|
-
r("lineFocus", { lineIndex:
|
|
56635
|
+
(U) => {
|
|
56636
|
+
r("lineFocus", { lineIndex: U }), V({ lineIndex: U });
|
|
56634
56637
|
},
|
|
56635
56638
|
{ immediate: !0 }
|
|
56636
56639
|
);
|
|
56637
|
-
function ue(
|
|
56640
|
+
function ue(U) {
|
|
56638
56641
|
Q.value = P;
|
|
56639
56642
|
}
|
|
56640
|
-
function be(
|
|
56641
|
-
if (!
|
|
56642
|
-
if (
|
|
56643
|
+
function be(U, B) {
|
|
56644
|
+
if (!U) return "";
|
|
56645
|
+
if (U.isEmpty)
|
|
56643
56646
|
return B === "json" ? {} : "";
|
|
56644
56647
|
switch (B) {
|
|
56645
56648
|
case "html":
|
|
56646
|
-
return
|
|
56649
|
+
return U.getHTML();
|
|
56647
56650
|
case "json":
|
|
56648
|
-
return
|
|
56651
|
+
return U.getJSON();
|
|
56649
56652
|
case "text":
|
|
56650
|
-
return
|
|
56653
|
+
return U.getText({ blockSeparator: `
|
|
56651
56654
|
` });
|
|
56652
56655
|
default:
|
|
56653
56656
|
return "";
|
|
56654
56657
|
}
|
|
56655
56658
|
}
|
|
56656
|
-
function K(
|
|
56657
|
-
return
|
|
56659
|
+
function K(U) {
|
|
56660
|
+
return U.every((B) => P == null ? void 0 : P.extensionManager.extensions.find((J) => J.name === B));
|
|
56658
56661
|
}
|
|
56659
56662
|
return Be(
|
|
56660
56663
|
() => h.languages,
|
|
@@ -56663,28 +56666,28 @@ const kle = /* @__PURE__ */ j({
|
|
|
56663
56666
|
}
|
|
56664
56667
|
), Be(
|
|
56665
56668
|
() => o.modelValue,
|
|
56666
|
-
(
|
|
56667
|
-
if (!P || xt.isEqual(be(P, o.output),
|
|
56669
|
+
(U) => {
|
|
56670
|
+
if (!P || xt.isEqual(be(P, o.output), U)) return;
|
|
56668
56671
|
const { from: B, to: J } = P.state.selection;
|
|
56669
|
-
P.commands.setTextSelection({ from: B, to: J }), P.commands.setContent(bo(
|
|
56672
|
+
P.commands.setTextSelection({ from: B, to: J }), P.commands.setContent(bo(U, o.disabled, o.mode), !1);
|
|
56670
56673
|
},
|
|
56671
56674
|
{ deep: !0 }
|
|
56672
56675
|
), Be(
|
|
56673
56676
|
() => d.value,
|
|
56674
56677
|
() => {
|
|
56675
|
-
d.value && d.value.on("selectionUpdate", ({ editor:
|
|
56676
|
-
r("changed:selection", { editor:
|
|
56678
|
+
d.value && d.value.on("selectionUpdate", ({ editor: U }) => {
|
|
56679
|
+
r("changed:selection", { editor: U });
|
|
56677
56680
|
});
|
|
56678
56681
|
}
|
|
56679
56682
|
), zn(() => {
|
|
56680
|
-
var
|
|
56681
|
-
P == null || P.destroy(), (
|
|
56683
|
+
var U;
|
|
56684
|
+
P == null || P.destroy(), (U = Q.value) == null || U.destroy();
|
|
56682
56685
|
}), bd(cd.SAVE, () => {
|
|
56683
56686
|
localStorage.setItem("content", be(P, "html"));
|
|
56684
56687
|
}), pt(() => {
|
|
56685
|
-
var
|
|
56686
|
-
(
|
|
56687
|
-
}), E0(P), e({ editor: P }), (
|
|
56688
|
+
var U, B;
|
|
56689
|
+
(U = P == null ? void 0 : P.commands) != null && U.setIsEnableSuggestion && P.commands.setIsEnableSuggestion(!1), (B = P == null ? void 0 : P.commands) != null && B.setIsMobile && P.commands.setIsMobile(!0);
|
|
56690
|
+
}), E0(P), e({ editor: P }), (U, B) => {
|
|
56688
56691
|
const J = C0, re = x0, ne = w0, he = r0, Re = E7, De = ph;
|
|
56689
56692
|
return Q.value ? (M(), pe("div", {
|
|
56690
56693
|
key: 0,
|
|
@@ -56696,11 +56699,11 @@ const kle = /* @__PURE__ */ j({
|
|
|
56696
56699
|
g(He)(
|
|
56697
56700
|
"vdc-editor mobile relative w-full flex flex-col editor-line-number editor-line",
|
|
56698
56701
|
!o.height && "flex-1",
|
|
56699
|
-
|
|
56702
|
+
U.editorClass
|
|
56700
56703
|
)
|
|
56701
56704
|
)
|
|
56702
56705
|
}, [
|
|
56703
|
-
!
|
|
56706
|
+
!U.hideBubble && !U.disabled && m.value ? (M(), pe(nt, { key: 0 }, [
|
|
56704
56707
|
K([g(vd)]) ? (M(), $(J, {
|
|
56705
56708
|
key: 0,
|
|
56706
56709
|
editor: g(P)
|
|
@@ -56718,13 +56721,13 @@ const kle = /* @__PURE__ */ j({
|
|
|
56718
56721
|
editor: g(P)
|
|
56719
56722
|
}, null, 8, ["editor"])) : Se("", !0)
|
|
56720
56723
|
], 64)) : Se("", !0),
|
|
56721
|
-
|
|
56724
|
+
U.hideToolbar ? Se("", !0) : (M(), $(Re, {
|
|
56722
56725
|
key: 1,
|
|
56723
56726
|
editor: Q.value,
|
|
56724
|
-
mode:
|
|
56725
|
-
disabled:
|
|
56727
|
+
mode: U.mode,
|
|
56728
|
+
disabled: U.disabled,
|
|
56726
56729
|
class: "mb-[3px]",
|
|
56727
|
-
"custom-class-toolbar":
|
|
56730
|
+
"custom-class-toolbar": U.customClassToolbar,
|
|
56728
56731
|
"active-extensions": [Yc]
|
|
56729
56732
|
}, null, 8, ["editor", "mode", "disabled", "custom-class-toolbar", "active-extensions"])),
|
|
56730
56733
|
D(g(J2), {
|
|
@@ -56744,15 +56747,15 @@ const kle = /* @__PURE__ */ j({
|
|
|
56744
56747
|
class: We(
|
|
56745
56748
|
g(He)(
|
|
56746
56749
|
"flex-1 !overflow-y-auto scrollbar-hide basis-0 flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56747
|
-
|
|
56750
|
+
U.contentClass
|
|
56748
56751
|
)
|
|
56749
56752
|
)
|
|
56750
56753
|
}, [
|
|
56751
|
-
(ot =
|
|
56754
|
+
(ot = U.fieldNameContent) != null && ot.label ? (M(), $(De, {
|
|
56752
56755
|
key: 0,
|
|
56753
|
-
"field-name":
|
|
56754
|
-
mode:
|
|
56755
|
-
disabled:
|
|
56756
|
+
"field-name": U.fieldNameContent,
|
|
56757
|
+
mode: U.mode,
|
|
56758
|
+
disabled: U.disabled,
|
|
56756
56759
|
class: "mb-1"
|
|
56757
56760
|
}, null, 8, ["field-name", "mode", "disabled"])) : Se("", !0),
|
|
56758
56761
|
D(g(fi), {
|
|
@@ -56775,21 +56778,21 @@ const kle = /* @__PURE__ */ j({
|
|
|
56775
56778
|
g(He)(
|
|
56776
56779
|
"flex-1 overflow-y-auto scrollbar-hide flex flex-col pt-1.5 p-2.5 border border-ed-gray rounded-[5px]",
|
|
56777
56780
|
R.value && "border-ed-blue",
|
|
56778
|
-
|
|
56779
|
-
|
|
56781
|
+
U.disabled && "border-transparent",
|
|
56782
|
+
U.contentClass
|
|
56780
56783
|
)
|
|
56781
56784
|
)
|
|
56782
56785
|
}, [
|
|
56783
56786
|
D($ae, {
|
|
56784
56787
|
ref_key: "superEditorRef",
|
|
56785
56788
|
ref: y,
|
|
56786
|
-
mode:
|
|
56787
|
-
"field-name-super":
|
|
56788
|
-
extensions:
|
|
56789
|
-
"model-value":
|
|
56790
|
-
disabled:
|
|
56791
|
-
readonly:
|
|
56792
|
-
onLineFocus:
|
|
56789
|
+
mode: U.mode,
|
|
56790
|
+
"field-name-super": U.fieldNameSuper,
|
|
56791
|
+
extensions: U.extensions,
|
|
56792
|
+
"model-value": U.modelValue,
|
|
56793
|
+
disabled: U.disabled,
|
|
56794
|
+
readonly: U.readonly,
|
|
56795
|
+
onLineFocus: V
|
|
56793
56796
|
}, null, 8, ["mode", "field-name-super", "extensions", "model-value", "disabled", "readonly"])
|
|
56794
56797
|
], 2)
|
|
56795
56798
|
]),
|
|
@@ -57252,4 +57255,4 @@ export {
|
|
|
57252
57255
|
nle as y,
|
|
57253
57256
|
Yae as z
|
|
57254
57257
|
};
|
|
57255
|
-
//# sourceMappingURL=index-
|
|
57258
|
+
//# sourceMappingURL=index-BA-CmqOV.mjs.map
|