vdc-editor 0.1.82 → 0.1.83
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/vdc-editor.mjs +649 -639
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +2 -2
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/vdc-editor.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var MR = Object.defineProperty;
|
|
|
2
2
|
var NR = (t, e, n) => e in t ? MR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var En = (t, e, n) => NR(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import * as Q3 from "vue";
|
|
5
|
-
import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as
|
|
5
|
+
import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as P, createCommentVNode as $e, withKeys as pc, withModifiers as Qn, h as Mn, normalizeProps as Ut, guardReactiveProps as Zt, onMounted as ht, toHandlers as RR, resolveDynamicComponent as Zr, getCurrentInstance as Br, toRef as LR, camelize as mx, toHandlerKey as IR, nextTick as Dt, inject as Xn, provide as rr, Comment as gx, cloneVNode as DR, readonly as bx, watchEffect as xn, Teleport as Qp, useSlots as eh, createTextVNode as lt, toDisplayString as Fe, onUnmounted as ur, reactive as vo, normalizeStyle as Jt, mergeDefaults as vx, watchPostEffect as PR, markRaw as pb, effectScope as hb, customRef as yx, onBeforeUnmount as Er, onBeforeUpdate as BR, onUpdated as FR, isRef as th, createElementVNode as ne, renderList as $t, onBeforeMount as jc, withDirectives as Io, vModelSelect as $R, Text as HR, normalizeClass as ut, createSlots as mb, vModelText as zR, render as e4, vShow as zi, useAttrs as nh } from "vue";
|
|
6
6
|
import { useVModel as VR, useLocalStorage as UR, createEventHook as t4, createGlobalState as WR, useFullscreen as jR, useEventBus as cr, useFocus as qR, onClickOutside as gb, useFileDialog as KR, useDark as rh, useToggle as oh, useElementSize as GR, useElementBounding as n4, useIntervalFn as JR } from "@vueuse/core";
|
|
7
7
|
const XR = ["top", "right", "bottom", "left"], Ms = Math.min, Wr = Math.max, Jf = Math.round, Zd = Math.floor, ti = (t) => ({
|
|
8
8
|
x: t,
|
|
@@ -287,7 +287,7 @@ const iL = (t) => ({
|
|
|
287
287
|
}, m = yb(o), g = vb(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", _ = i.reference[g] + i.reference[m] - h[m] - i.floating[g], k = h[m] - i.reference[m], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
288
288
|
let A = T ? T[S] : 0;
|
|
289
289
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(T))) && (A = a.floating[S] || i.floating[g]);
|
|
290
|
-
const
|
|
290
|
+
const D = _ / 2 - k / 2, I = A / 2 - y[g] / 2 - 1, B = Ms(p[x], I), V = Ms(p[C], I), ee = B, he = A - y[g] - V, Oe = A / 2 - y[g] / 2 + D, q = I1(ee, Oe, he), G = !l.arrow && Jl(o) != null && Oe !== q && i.reference[g] / 2 - (Oe < ee ? B : V) - y[g] / 2 < 0, F = G ? Oe < ee ? Oe - ee : Oe - he : 0;
|
|
291
291
|
return {
|
|
292
292
|
[m]: h[m] + F,
|
|
293
293
|
data: {
|
|
@@ -326,11 +326,11 @@ const iL = (t) => ({
|
|
|
326
326
|
return {};
|
|
327
327
|
const x = ji(o), C = Ns(a), S = ji(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = h || (S || !y ? [Xf(a)] : eL(a)), T = g !== "none";
|
|
328
328
|
!h && T && k.push(...nL(a, y, g, _));
|
|
329
|
-
const A = [a, ...k],
|
|
329
|
+
const A = [a, ...k], D = await hc(e, w), I = [];
|
|
330
330
|
let B = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
331
|
-
if (d && I.push(
|
|
331
|
+
if (d && I.push(D[x]), p) {
|
|
332
332
|
const Oe = QR(o, s, _);
|
|
333
|
-
I.push(
|
|
333
|
+
I.push(D[Oe[0]], D[Oe[1]]);
|
|
334
334
|
}
|
|
335
335
|
if (B = [...B, {
|
|
336
336
|
placement: o,
|
|
@@ -602,14 +602,14 @@ const uL = function(t) {
|
|
|
602
602
|
let w, x;
|
|
603
603
|
p === "top" || p === "bottom" ? (w = p, x = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = p, w = h === "end" ? "top" : "bottom");
|
|
604
604
|
const C = y - d.top - d.bottom, S = g - d.left - d.right, _ = Ms(y - d[w], C), k = Ms(g - d[x], S), T = !e.middlewareData.shift;
|
|
605
|
-
let A = _,
|
|
606
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (
|
|
605
|
+
let A = _, D = k;
|
|
606
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = S), (r = e.middlewareData.shift) != null && r.enabled.y && (A = C), T && !h) {
|
|
607
607
|
const B = Wr(d.left, 0), V = Wr(d.right, 0), ee = Wr(d.top, 0), he = Wr(d.bottom, 0);
|
|
608
|
-
m ?
|
|
608
|
+
m ? D = g - 2 * (B !== 0 || V !== 0 ? B + V : Wr(d.left, d.right)) : A = y - 2 * (ee !== 0 || he !== 0 ? ee + he : Wr(d.top, d.bottom));
|
|
609
609
|
}
|
|
610
610
|
await l({
|
|
611
611
|
...e,
|
|
612
|
-
availableWidth:
|
|
612
|
+
availableWidth: D,
|
|
613
613
|
availableHeight: A
|
|
614
614
|
});
|
|
615
615
|
const I = await s.getDimensions(a.floating);
|
|
@@ -1164,16 +1164,16 @@ function HL(t, e, n) {
|
|
|
1164
1164
|
};
|
|
1165
1165
|
if (!d.value)
|
|
1166
1166
|
return A;
|
|
1167
|
-
const
|
|
1167
|
+
const D = c4(d.value, p.value), I = c4(d.value, h.value);
|
|
1168
1168
|
return l.value ? {
|
|
1169
1169
|
...A,
|
|
1170
|
-
transform: "translate(" +
|
|
1170
|
+
transform: "translate(" + D + "px, " + I + "px)",
|
|
1171
1171
|
...Ax(d.value) >= 1.5 && {
|
|
1172
1172
|
willChange: "transform"
|
|
1173
1173
|
}
|
|
1174
1174
|
} : {
|
|
1175
1175
|
position: m.value,
|
|
1176
|
-
left:
|
|
1176
|
+
left: D + "px",
|
|
1177
1177
|
top: I + "px"
|
|
1178
1178
|
};
|
|
1179
1179
|
});
|
|
@@ -1186,8 +1186,8 @@ function HL(t, e, n) {
|
|
|
1186
1186
|
middleware: i.value,
|
|
1187
1187
|
placement: s.value,
|
|
1188
1188
|
strategy: a.value
|
|
1189
|
-
}).then((
|
|
1190
|
-
p.value =
|
|
1189
|
+
}).then((D) => {
|
|
1190
|
+
p.value = D.x, h.value = D.y, m.value = D.strategy, g.value = D.placement, y.value = D.middlewareData, w.value = A !== !1;
|
|
1191
1191
|
});
|
|
1192
1192
|
}
|
|
1193
1193
|
function _() {
|
|
@@ -1234,7 +1234,7 @@ function ln(t, e) {
|
|
|
1234
1234
|
", "
|
|
1235
1235
|
)}` : `\`${t}\``}`
|
|
1236
1236
|
);
|
|
1237
|
-
}, (o) => (
|
|
1237
|
+
}, (o) => (rr(r, o), o)];
|
|
1238
1238
|
}
|
|
1239
1239
|
function Ox(t, e, n) {
|
|
1240
1240
|
const r = n.originalEvent.target, o = new CustomEvent(t, {
|
|
@@ -1668,7 +1668,7 @@ function Kc(t, e = fI) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
return BR(() => {
|
|
1670
1670
|
o.value = [];
|
|
1671
|
-
}), ht(i), FR(i), He(() => r == null ? void 0 : r.value, i, { immediate: !0 }),
|
|
1671
|
+
}), ht(i), FR(i), He(() => r == null ? void 0 : r.value, i, { immediate: !0 }), rr(n, o), o;
|
|
1672
1672
|
}, injectCollection: () => Xn(n, U([])) };
|
|
1673
1673
|
}
|
|
1674
1674
|
function Da(t) {
|
|
@@ -2641,7 +2641,7 @@ const Kx = /* @__PURE__ */ j({
|
|
|
2641
2641
|
onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
|
|
2642
2642
|
}, {
|
|
2643
2643
|
default: M(() => [
|
|
2644
|
-
|
|
2644
|
+
P(b(Jc), Se({
|
|
2645
2645
|
id: b(o).contentId,
|
|
2646
2646
|
ref: b(i),
|
|
2647
2647
|
as: a.as,
|
|
@@ -2808,7 +2808,7 @@ const Kx = /* @__PURE__ */ j({
|
|
|
2808
2808
|
present: r.forceMount || b(e).open.value
|
|
2809
2809
|
}, {
|
|
2810
2810
|
default: M(() => [
|
|
2811
|
-
|
|
2811
|
+
P(eD, Se(r.$attrs, {
|
|
2812
2812
|
ref: b(n),
|
|
2813
2813
|
as: r.as,
|
|
2814
2814
|
"as-child": r.asChild
|
|
@@ -2913,7 +2913,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
|
|
|
2913
2913
|
disabled: o,
|
|
2914
2914
|
state: i
|
|
2915
2915
|
}), (d, p) => (N(), xe(et, null, [
|
|
2916
|
-
|
|
2916
|
+
P(b(ft), Se(d.$attrs, {
|
|
2917
2917
|
id: d.id,
|
|
2918
2918
|
ref: b(s),
|
|
2919
2919
|
role: "checkbox",
|
|
@@ -2926,7 +2926,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
|
|
|
2926
2926
|
"data-state": b(Jx)(b(i)),
|
|
2927
2927
|
"data-disabled": b(o) ? "" : void 0,
|
|
2928
2928
|
disabled: b(o),
|
|
2929
|
-
onKeydown: pc(
|
|
2929
|
+
onKeydown: pc(Qn(() => {
|
|
2930
2930
|
}, ["prevent"]), ["enter"]),
|
|
2931
2931
|
onClick: p[0] || (p[0] = (h) => i.value = b(Qf)(b(i)) ? !0 : !b(i))
|
|
2932
2932
|
}), {
|
|
@@ -2968,7 +2968,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
|
|
|
2968
2968
|
present: r.forceMount || b(Qf)(b(n).state.value) || b(n).state.value === !0
|
|
2969
2969
|
}, {
|
|
2970
2970
|
default: M(() => [
|
|
2971
|
-
|
|
2971
|
+
P(b(ft), Se({
|
|
2972
2972
|
ref: b(e),
|
|
2973
2973
|
"data-state": b(Jx)(b(n).state.value),
|
|
2974
2974
|
"data-disabled": b(n).disabled.value ? "" : void 0,
|
|
@@ -3150,7 +3150,7 @@ const Yx = {
|
|
|
3150
3150
|
xn(() => {
|
|
3151
3151
|
s.value && (A.value = window.getComputedStyle(s.value).zIndex);
|
|
3152
3152
|
});
|
|
3153
|
-
const
|
|
3153
|
+
const D = Y(() => {
|
|
3154
3154
|
var B;
|
|
3155
3155
|
return ((B = S.value.arrow) == null ? void 0 : B.x) ?? 0;
|
|
3156
3156
|
}), I = Y(() => {
|
|
@@ -3160,7 +3160,7 @@ const Yx = {
|
|
|
3160
3160
|
return fD({
|
|
3161
3161
|
placedSide: _,
|
|
3162
3162
|
onArrowChange: (B) => l.value = B,
|
|
3163
|
-
arrowX:
|
|
3163
|
+
arrowX: D,
|
|
3164
3164
|
arrowY: I,
|
|
3165
3165
|
shouldHideArrow: T
|
|
3166
3166
|
}), (B, V) => {
|
|
@@ -3188,7 +3188,7 @@ const Yx = {
|
|
|
3188
3188
|
}
|
|
3189
3189
|
})
|
|
3190
3190
|
}, [
|
|
3191
|
-
|
|
3191
|
+
P(b(ft), Se({ ref: b(i) }, B.$attrs, {
|
|
3192
3192
|
"as-child": n.asChild,
|
|
3193
3193
|
as: B.as,
|
|
3194
3194
|
"data-side": _.value,
|
|
@@ -3441,7 +3441,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3441
3441
|
}
|
|
3442
3442
|
}), (w, x) => (N(), $(b(gD), null, {
|
|
3443
3443
|
default: M(() => [
|
|
3444
|
-
|
|
3444
|
+
P(b(ft), {
|
|
3445
3445
|
tabindex: d.value || h.value === 0 ? -1 : 0,
|
|
3446
3446
|
"data-orientation": b(s),
|
|
3447
3447
|
as: w.as,
|
|
@@ -3512,7 +3512,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3512
3512
|
}
|
|
3513
3513
|
return (a, l) => (N(), $(b(Qx), null, {
|
|
3514
3514
|
default: M(() => [
|
|
3515
|
-
|
|
3515
|
+
P(b(ft), {
|
|
3516
3516
|
tabindex: o.value ? 0 : -1,
|
|
3517
3517
|
"data-orientation": b(n).orientation.value,
|
|
3518
3518
|
"data-active": a.active,
|
|
@@ -3603,7 +3603,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3603
3603
|
const q = S.value;
|
|
3604
3604
|
Wx.includes(B.key) && q.reverse(), V1(q);
|
|
3605
3605
|
}
|
|
3606
|
-
function
|
|
3606
|
+
function D(B) {
|
|
3607
3607
|
var V, ee;
|
|
3608
3608
|
(ee = (V = B == null ? void 0 : B.currentTarget) == null ? void 0 : V.contains) != null && ee.call(V, B.target) || (window.clearTimeout(d.value), u.value = "");
|
|
3609
3609
|
}
|
|
@@ -3636,7 +3636,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3636
3636
|
onUnmountAutoFocus: V[7] || (V[7] = (ee) => r("closeAutoFocus", ee))
|
|
3637
3637
|
}, {
|
|
3638
3638
|
default: M(() => [
|
|
3639
|
-
|
|
3639
|
+
P(b(Jc), {
|
|
3640
3640
|
"as-child": "",
|
|
3641
3641
|
"disable-outside-pointer-events": b(a),
|
|
3642
3642
|
onEscapeKeyDown: V[2] || (V[2] = (ee) => r("escapeKeyDown", ee)),
|
|
@@ -3646,7 +3646,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3646
3646
|
onDismiss: V[6] || (V[6] = (ee) => r("dismiss"))
|
|
3647
3647
|
}, {
|
|
3648
3648
|
default: M(() => [
|
|
3649
|
-
|
|
3649
|
+
P(b(i5), {
|
|
3650
3650
|
"current-tab-stop-id": y.value,
|
|
3651
3651
|
"onUpdate:currentTabStopId": V[0] || (V[0] = (ee) => y.value = ee),
|
|
3652
3652
|
"as-child": "",
|
|
@@ -3658,7 +3658,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3658
3658
|
})
|
|
3659
3659
|
}, {
|
|
3660
3660
|
default: M(() => [
|
|
3661
|
-
|
|
3661
|
+
P(b(gh), {
|
|
3662
3662
|
ref: b(x),
|
|
3663
3663
|
role: "menu",
|
|
3664
3664
|
as: B.as,
|
|
@@ -3679,7 +3679,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3679
3679
|
sticky: B.sticky,
|
|
3680
3680
|
"hide-when-detached": B.hideWhenDetached,
|
|
3681
3681
|
onKeydown: A,
|
|
3682
|
-
onBlur:
|
|
3682
|
+
onBlur: D,
|
|
3683
3683
|
onPointermove: I
|
|
3684
3684
|
}, {
|
|
3685
3685
|
default: M(() => [
|
|
@@ -3725,7 +3725,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3725
3725
|
value: { textValue: a.textValue }
|
|
3726
3726
|
}, {
|
|
3727
3727
|
default: M(() => [
|
|
3728
|
-
|
|
3728
|
+
P(b(ft), Se({
|
|
3729
3729
|
ref: b(r),
|
|
3730
3730
|
role: "menuitem",
|
|
3731
3731
|
tabindex: "-1"
|
|
@@ -3814,7 +3814,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3814
3814
|
present: n.forceMount || b(Zf)(b(e).checked.value) || b(e).checked.value === !0
|
|
3815
3815
|
}, {
|
|
3816
3816
|
default: M(() => [
|
|
3817
|
-
|
|
3817
|
+
P(b(ft), {
|
|
3818
3818
|
as: n.as,
|
|
3819
3819
|
"as-child": n.asChild,
|
|
3820
3820
|
"data-state": b(qx)(b(e).checked.value)
|
|
@@ -3881,7 +3881,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
|
|
|
3881
3881
|
"disable-outside-pointer-events": b(i).open.value,
|
|
3882
3882
|
"disable-outside-scroll": !0,
|
|
3883
3883
|
onDismiss: u[0] || (u[0] = (d) => b(i).onOpenChange(!1)),
|
|
3884
|
-
onFocusOutside: u[1] || (u[1] =
|
|
3884
|
+
onFocusOutside: u[1] || (u[1] = Qn((d) => r("focusOutside", d), ["prevent"]))
|
|
3885
3885
|
}), {
|
|
3886
3886
|
default: M(() => [
|
|
3887
3887
|
te(l.$slots, "default")
|
|
@@ -4072,11 +4072,11 @@ const zD = /* @__PURE__ */ j({
|
|
|
4072
4072
|
n.value || (await Dt(), g4(m) && !m.defaultPrevented && l());
|
|
4073
4073
|
}
|
|
4074
4074
|
return (m, g) => (N(), xe(et, null, [
|
|
4075
|
-
|
|
4075
|
+
P(b(n5), {
|
|
4076
4076
|
as: "template",
|
|
4077
4077
|
element: s.value
|
|
4078
4078
|
}, null, 8, ["element"]),
|
|
4079
|
-
|
|
4079
|
+
P(b(ft), Se({
|
|
4080
4080
|
ref: b(r),
|
|
4081
4081
|
as: m.as,
|
|
4082
4082
|
"as-child": m.asChild,
|
|
@@ -4231,7 +4231,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4231
4231
|
n.triggerElement = o;
|
|
4232
4232
|
}), n.triggerId || (n.triggerId = $o(void 0, "radix-vue-dropdown-menu-trigger")), (i, s) => (N(), $(b(n5), { "as-child": "" }, {
|
|
4233
4233
|
default: M(() => [
|
|
4234
|
-
|
|
4234
|
+
P(b(ft), {
|
|
4235
4235
|
id: b(n).triggerId,
|
|
4236
4236
|
ref: b(r),
|
|
4237
4237
|
type: i.as === "button" ? "button" : void 0,
|
|
@@ -4469,7 +4469,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4469
4469
|
n.triggerElement.value = o.value;
|
|
4470
4470
|
}), (i, s) => (N(), $(Zr(b(n).hasCustomAnchor.value ? b(ft) : b(mh)), { "as-child": "" }, {
|
|
4471
4471
|
default: M(() => [
|
|
4472
|
-
|
|
4472
|
+
P(b(ft), {
|
|
4473
4473
|
ref: b(r),
|
|
4474
4474
|
type: i.as === "button" ? "button" : void 0,
|
|
4475
4475
|
"aria-haspopup": "dialog",
|
|
@@ -4536,7 +4536,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4536
4536
|
onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
|
|
4537
4537
|
}, {
|
|
4538
4538
|
default: M(() => [
|
|
4539
|
-
|
|
4539
|
+
P(b(Jc), {
|
|
4540
4540
|
"as-child": "",
|
|
4541
4541
|
"disable-outside-pointer-events": a.disableOutsidePointerEvents,
|
|
4542
4542
|
onPointerDownOutside: l[0] || (l[0] = (u) => r("pointerDownOutside", u)),
|
|
@@ -4546,7 +4546,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4546
4546
|
onDismiss: l[4] || (l[4] = (u) => b(s).onOpenChange(!1))
|
|
4547
4547
|
}, {
|
|
4548
4548
|
default: M(() => [
|
|
4549
|
-
|
|
4549
|
+
P(b(gh), Se(b(o), {
|
|
4550
4550
|
id: b(s).contentId,
|
|
4551
4551
|
ref: b(i),
|
|
4552
4552
|
"data-state": b(s).open.value ? "open" : "closed",
|
|
@@ -4600,7 +4600,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4600
4600
|
ref: b(a),
|
|
4601
4601
|
"trap-focus": b(o).open.value,
|
|
4602
4602
|
"disable-outside-pointer-events": "",
|
|
4603
|
-
onCloseAutoFocus: d[0] || (d[0] =
|
|
4603
|
+
onCloseAutoFocus: d[0] || (d[0] = Qn(
|
|
4604
4604
|
(p) => {
|
|
4605
4605
|
var h;
|
|
4606
4606
|
r("closeAutoFocus", p), i.value || (h = b(o).triggerElement.value) == null || h.focus();
|
|
@@ -4612,7 +4612,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4612
4612
|
const h = p.detail.originalEvent, m = h.button === 0 && h.ctrlKey === !0, g = h.button === 2 || m;
|
|
4613
4613
|
i.value = g;
|
|
4614
4614
|
}),
|
|
4615
|
-
onFocusOutside: d[2] || (d[2] =
|
|
4615
|
+
onFocusOutside: d[2] || (d[2] = Qn(() => {
|
|
4616
4616
|
}, ["prevent"]))
|
|
4617
4617
|
}), {
|
|
4618
4618
|
default: M(() => [
|
|
@@ -4830,7 +4830,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4830
4830
|
overflowY: b(i).scrollbarYEnabled.value ? "scroll" : "hidden"
|
|
4831
4831
|
}
|
|
4832
4832
|
}, u.$attrs, { tabindex: 0 }), [
|
|
4833
|
-
|
|
4833
|
+
P(b(ft), {
|
|
4834
4834
|
ref: b(a),
|
|
4835
4835
|
style: Jt({
|
|
4836
4836
|
/**
|
|
@@ -4851,7 +4851,7 @@ const zD = /* @__PURE__ */ j({
|
|
|
4851
4851
|
_: 3
|
|
4852
4852
|
}, 8, ["style", "as-child", "as"])
|
|
4853
4853
|
], 16),
|
|
4854
|
-
|
|
4854
|
+
P(b(ft), {
|
|
4855
4855
|
as: "style",
|
|
4856
4856
|
nonce: b(o)
|
|
4857
4857
|
}, {
|
|
@@ -5134,7 +5134,7 @@ const m5 = /* @__PURE__ */ j({
|
|
|
5134
5134
|
present: s.forceMount || o.value
|
|
5135
5135
|
}, {
|
|
5136
5136
|
default: M(() => [
|
|
5137
|
-
|
|
5137
|
+
P(Nb, Se(s.$attrs, {
|
|
5138
5138
|
ref: b(r),
|
|
5139
5139
|
"data-state": o.value ? "visible" : "hidden"
|
|
5140
5140
|
}), {
|
|
@@ -5175,7 +5175,7 @@ const m5 = /* @__PURE__ */ j({
|
|
|
5175
5175
|
present: a.forceMount || o.value
|
|
5176
5176
|
}, {
|
|
5177
5177
|
default: M(() => [
|
|
5178
|
-
|
|
5178
|
+
P(g5, Se(a.$attrs, {
|
|
5179
5179
|
ref: b(n),
|
|
5180
5180
|
"data-state": o.value ? "visible" : "hidden"
|
|
5181
5181
|
}), {
|
|
@@ -5240,7 +5240,7 @@ const m5 = /* @__PURE__ */ j({
|
|
|
5240
5240
|
present: a.forceMount || b(o) !== "hidden"
|
|
5241
5241
|
}, {
|
|
5242
5242
|
default: M(() => [
|
|
5243
|
-
|
|
5243
|
+
P(Nb, Se(a.$attrs, { ref: b(r) }), {
|
|
5244
5244
|
default: M(() => [
|
|
5245
5245
|
te(a.$slots, "default")
|
|
5246
5246
|
]),
|
|
@@ -5572,7 +5572,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5572
5572
|
default: M(() => {
|
|
5573
5573
|
var y, w, x, C;
|
|
5574
5574
|
return [
|
|
5575
|
-
|
|
5575
|
+
P(b(ft), {
|
|
5576
5576
|
ref: b(o),
|
|
5577
5577
|
role: "combobox",
|
|
5578
5578
|
type: m.as === "button" ? "button" : void 0,
|
|
@@ -5597,7 +5597,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5597
5597
|
const _ = S.target;
|
|
5598
5598
|
_.hasPointerCapture(S.pointerId) && _.releasePointerCapture(S.pointerId), S.button === 0 && S.ctrlKey === !1 && (h(S), S.preventDefault());
|
|
5599
5599
|
}),
|
|
5600
|
-
onPointerup: g[2] || (g[2] =
|
|
5600
|
+
onPointerup: g[2] || (g[2] = Qn(
|
|
5601
5601
|
(S) => {
|
|
5602
5602
|
S.pointerType === "touch" && h(S);
|
|
5603
5603
|
},
|
|
@@ -5658,7 +5658,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5658
5658
|
);
|
|
5659
5659
|
d.value.style.minWidth = `${me}px`, d.value.style.right = `${qe}px`;
|
|
5660
5660
|
}
|
|
5661
|
-
const
|
|
5661
|
+
const D = a.value, I = window.innerHeight - Oo * 2, B = m.value.scrollHeight, V = window.getComputedStyle(h.value), ee = Number.parseInt(
|
|
5662
5662
|
V.borderTopWidth,
|
|
5663
5663
|
10
|
|
5664
5664
|
), he = Number.parseInt(V.paddingTop, 10), Oe = Number.parseInt(
|
|
@@ -5675,7 +5675,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5675
5675
|
10
|
|
5676
5676
|
), fe = _.top + _.height / 2 - Oo, Re = I - fe, Ie = g.value.offsetHeight / 2, ct = g.value.offsetTop + Ie, Ue = ee + he + ct, ke = G - Ue;
|
|
5677
5677
|
if (Ue <= fe) {
|
|
5678
|
-
const X = g.value ===
|
|
5678
|
+
const X = g.value === D[D.length - 1];
|
|
5679
5679
|
d.value.style.bottom = "0px";
|
|
5680
5680
|
const re = h.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, pe = Math.max(
|
|
5681
5681
|
Re,
|
|
@@ -5683,7 +5683,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5683
5683
|
), me = Ue + pe;
|
|
5684
5684
|
d.value.style.height = `${me}px`;
|
|
5685
5685
|
} else {
|
|
5686
|
-
const X = g.value ===
|
|
5686
|
+
const X = g.value === D[0];
|
|
5687
5687
|
d.value.style.top = "0px";
|
|
5688
5688
|
const re = Math.max(
|
|
5689
5689
|
fe,
|
|
@@ -5715,7 +5715,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5715
5715
|
zIndex: C.value
|
|
5716
5716
|
})
|
|
5717
5717
|
}, [
|
|
5718
|
-
|
|
5718
|
+
P(b(ft), Se({
|
|
5719
5719
|
ref: b(p),
|
|
5720
5720
|
style: {
|
|
5721
5721
|
// When we get the height of the content, it includes borders. If we were to set
|
|
@@ -5822,15 +5822,15 @@ const NP = /* @__PURE__ */ j({
|
|
|
5822
5822
|
Math.round(I.pageY) - (((V = x.value) == null ? void 0 : V.y) ?? 0)
|
|
5823
5823
|
)
|
|
5824
5824
|
};
|
|
5825
|
-
},
|
|
5825
|
+
}, D = (I) => {
|
|
5826
5826
|
var B;
|
|
5827
5827
|
I.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? I.preventDefault() : (B = s.value) != null && B.contains(I.target) || w(!1), document.removeEventListener("pointermove", A), x.value = null);
|
|
5828
5828
|
};
|
|
5829
|
-
x.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup",
|
|
5829
|
+
x.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", D, {
|
|
5830
5830
|
capture: !0,
|
|
5831
5831
|
once: !0
|
|
5832
5832
|
})), k(() => {
|
|
5833
|
-
document.removeEventListener("pointermove", A), document.removeEventListener("pointerup",
|
|
5833
|
+
document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", D, {
|
|
5834
5834
|
capture: !0
|
|
5835
5835
|
});
|
|
5836
5836
|
});
|
|
@@ -5840,7 +5840,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5840
5840
|
if (k.key === "Tab" && k.preventDefault(), !T && k.key.length === 1 && u(k.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(k.key)) {
|
|
5841
5841
|
let A = a.value;
|
|
5842
5842
|
if (["ArrowUp", "End"].includes(k.key) && (A = A.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(k.key)) {
|
|
5843
|
-
const
|
|
5843
|
+
const D = k.target, I = A.indexOf(D);
|
|
5844
5844
|
A = A.slice(I + 1);
|
|
5845
5845
|
}
|
|
5846
5846
|
setTimeout(() => V1(A)), k.preventDefault();
|
|
@@ -5854,9 +5854,9 @@ const NP = /* @__PURE__ */ j({
|
|
|
5854
5854
|
d.value = k;
|
|
5855
5855
|
},
|
|
5856
5856
|
itemRefCallback: (k, T, A) => {
|
|
5857
|
-
var
|
|
5857
|
+
var D, I;
|
|
5858
5858
|
const B = !g.value && !A;
|
|
5859
|
-
(((
|
|
5859
|
+
(((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (p.value = k, B && (g.value = !0));
|
|
5860
5860
|
},
|
|
5861
5861
|
selectedItem: p,
|
|
5862
5862
|
selectedItemText: h,
|
|
@@ -5865,9 +5865,9 @@ const NP = /* @__PURE__ */ j({
|
|
|
5865
5865
|
(k = s.value) == null || k.focus();
|
|
5866
5866
|
},
|
|
5867
5867
|
itemTextRefCallback: (k, T, A) => {
|
|
5868
|
-
var
|
|
5868
|
+
var D, I;
|
|
5869
5869
|
const B = !g.value && !A;
|
|
5870
|
-
(((
|
|
5870
|
+
(((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (h.value = k);
|
|
5871
5871
|
},
|
|
5872
5872
|
focusSelectedItem: y,
|
|
5873
5873
|
position: n.position,
|
|
@@ -5875,18 +5875,18 @@ const NP = /* @__PURE__ */ j({
|
|
|
5875
5875
|
searchRef: l
|
|
5876
5876
|
}), (k, T) => (N(), $(b(ph), {
|
|
5877
5877
|
"as-child": "",
|
|
5878
|
-
onMountAutoFocus: T[6] || (T[6] =
|
|
5878
|
+
onMountAutoFocus: T[6] || (T[6] = Qn(() => {
|
|
5879
5879
|
}, ["prevent"])),
|
|
5880
5880
|
onUnmountAutoFocus: T[7] || (T[7] = (A) => {
|
|
5881
|
-
var
|
|
5882
|
-
r("closeAutoFocus", A), !A.defaultPrevented && ((
|
|
5881
|
+
var D;
|
|
5882
|
+
r("closeAutoFocus", A), !A.defaultPrevented && ((D = b(o).triggerElement.value) == null || D.focus({ preventScroll: !0 }), A.preventDefault());
|
|
5883
5883
|
})
|
|
5884
5884
|
}, {
|
|
5885
5885
|
default: M(() => [
|
|
5886
|
-
|
|
5886
|
+
P(b(Jc), {
|
|
5887
5887
|
"as-child": "",
|
|
5888
5888
|
"disable-outside-pointer-events": "",
|
|
5889
|
-
onFocusOutside: T[2] || (T[2] =
|
|
5889
|
+
onFocusOutside: T[2] || (T[2] = Qn(() => {
|
|
5890
5890
|
}, ["prevent"])),
|
|
5891
5891
|
onDismiss: T[3] || (T[3] = (A) => b(o).onOpenChange(!1)),
|
|
5892
5892
|
onEscapeKeyDown: T[4] || (T[4] = (A) => r("escapeKeyDown", A)),
|
|
@@ -5910,7 +5910,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5910
5910
|
// reset the outline by default as the content MAY get focused
|
|
5911
5911
|
outline: "none"
|
|
5912
5912
|
},
|
|
5913
|
-
onContextmenu: T[0] || (T[0] =
|
|
5913
|
+
onContextmenu: T[0] || (T[0] = Qn(() => {
|
|
5914
5914
|
}, ["prevent"])),
|
|
5915
5915
|
onPlaced: T[1] || (T[1] = (A) => m.value = !0),
|
|
5916
5916
|
onKeydown: C
|
|
@@ -5974,7 +5974,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5974
5974
|
present: !0
|
|
5975
5975
|
}, {
|
|
5976
5976
|
default: M(() => [
|
|
5977
|
-
|
|
5977
|
+
P(BP, Ut(Zt({ ...b(r), ...l.$attrs })), {
|
|
5978
5978
|
default: M(() => [
|
|
5979
5979
|
te(l.$slots, "default")
|
|
5980
5980
|
]),
|
|
@@ -5984,7 +5984,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
5984
5984
|
_: 3
|
|
5985
5985
|
}, 512)) : !((d = s.value) != null && d.present) && i.value ? (N(), xe("div", $P, [
|
|
5986
5986
|
(N(), $(Qp, { to: i.value }, [
|
|
5987
|
-
|
|
5987
|
+
P(FP, { context: b(o) }, {
|
|
5988
5988
|
default: M(() => [
|
|
5989
5989
|
te(l.$slots, "default")
|
|
5990
5990
|
]),
|
|
@@ -6075,7 +6075,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
6075
6075
|
onPointerdown: w[2] || (w[2] = (x) => {
|
|
6076
6076
|
x.currentTarget.focus({ preventScroll: !0 });
|
|
6077
6077
|
}),
|
|
6078
|
-
onTouchend: w[3] || (w[3] =
|
|
6078
|
+
onTouchend: w[3] || (w[3] = Qn(() => {
|
|
6079
6079
|
}, ["prevent", "stop"])),
|
|
6080
6080
|
onPointermove: h,
|
|
6081
6081
|
onPointerleave: m,
|
|
@@ -6146,7 +6146,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
6146
6146
|
}), Er(() => {
|
|
6147
6147
|
o.onNativeOptionRemove(l.value);
|
|
6148
6148
|
}), (u, d) => (N(), xe(et, null, [
|
|
6149
|
-
|
|
6149
|
+
P(b(ft), Se({
|
|
6150
6150
|
id: b(i).textId,
|
|
6151
6151
|
ref: b(s)
|
|
6152
6152
|
}, { ...e, ...u.$attrs }, { "data-item-text": "" }), {
|
|
@@ -6193,7 +6193,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
6193
6193
|
l.value = p.scrollTop;
|
|
6194
6194
|
}
|
|
6195
6195
|
return (d, p) => (N(), xe(et, null, [
|
|
6196
|
-
|
|
6196
|
+
P(b(ft), Se({
|
|
6197
6197
|
ref: b(s),
|
|
6198
6198
|
"data-radix-select-viewport": "",
|
|
6199
6199
|
role: "presentation"
|
|
@@ -6213,7 +6213,7 @@ const NP = /* @__PURE__ */ j({
|
|
|
6213
6213
|
]),
|
|
6214
6214
|
_: 3
|
|
6215
6215
|
}, 16),
|
|
6216
|
-
|
|
6216
|
+
P(b(ft), {
|
|
6217
6217
|
as: "style",
|
|
6218
6218
|
nonce: b(r)
|
|
6219
6219
|
}, {
|
|
@@ -6500,7 +6500,7 @@ const [Lb, nB] = ln("TabsRoot"), rB = /* @__PURE__ */ j({
|
|
|
6500
6500
|
loop: b(n)
|
|
6501
6501
|
}, {
|
|
6502
6502
|
default: M(() => [
|
|
6503
|
-
|
|
6503
|
+
P(b(ft), {
|
|
6504
6504
|
ref: b(r),
|
|
6505
6505
|
role: "tablist",
|
|
6506
6506
|
"as-child": s.asChild,
|
|
@@ -6542,7 +6542,7 @@ const iB = /* @__PURE__ */ j({
|
|
|
6542
6542
|
"force-mount": ""
|
|
6543
6543
|
}, {
|
|
6544
6544
|
default: M(({ present: d }) => [
|
|
6545
|
-
|
|
6545
|
+
P(b(ft), {
|
|
6546
6546
|
id: i.value,
|
|
6547
6547
|
ref: b(n),
|
|
6548
6548
|
"as-child": l.asChild,
|
|
@@ -6582,7 +6582,7 @@ const iB = /* @__PURE__ */ j({
|
|
|
6582
6582
|
active: s.value
|
|
6583
6583
|
}, {
|
|
6584
6584
|
default: M(() => [
|
|
6585
|
-
|
|
6585
|
+
P(b(ft), {
|
|
6586
6586
|
id: o.value,
|
|
6587
6587
|
ref: b(n),
|
|
6588
6588
|
role: "tab",
|
|
@@ -6595,7 +6595,7 @@ const iB = /* @__PURE__ */ j({
|
|
|
6595
6595
|
disabled: a.disabled,
|
|
6596
6596
|
"data-disabled": a.disabled ? "" : void 0,
|
|
6597
6597
|
"data-orientation": b(r).orientation.value,
|
|
6598
|
-
onMousedown: l[0] || (l[0] =
|
|
6598
|
+
onMousedown: l[0] || (l[0] = Qn((u) => {
|
|
6599
6599
|
!a.disabled && u.ctrlKey === !1 ? b(r).changeModelValue(a.value) : u.preventDefault();
|
|
6600
6600
|
}, ["left"])),
|
|
6601
6601
|
onKeydown: l[1] || (l[1] = pc((u) => b(r).changeModelValue(a.value), ["enter", "space"])),
|
|
@@ -6790,7 +6790,7 @@ const iB = /* @__PURE__ */ j({
|
|
|
6790
6790
|
}
|
|
6791
6791
|
return (w, x) => (N(), $(b(mh), { "as-child": "" }, {
|
|
6792
6792
|
default: M(() => [
|
|
6793
|
-
|
|
6793
|
+
P(b(ft), Se({
|
|
6794
6794
|
ref: b(o),
|
|
6795
6795
|
"aria-describedby": b(n).open.value ? b(n).contentId : void 0,
|
|
6796
6796
|
"data-state": b(n).stateAttribute.value,
|
|
@@ -6855,12 +6855,12 @@ const iB = /* @__PURE__ */ j({
|
|
|
6855
6855
|
var m;
|
|
6856
6856
|
b(o).disableClosingTrigger.value && (m = b(o).trigger.value) != null && m.contains(h.target) && h.preventDefault(), r("pointerDownOutside", h);
|
|
6857
6857
|
}),
|
|
6858
|
-
onFocusOutside: p[2] || (p[2] =
|
|
6858
|
+
onFocusOutside: p[2] || (p[2] = Qn(() => {
|
|
6859
6859
|
}, ["prevent"])),
|
|
6860
6860
|
onDismiss: p[3] || (p[3] = (h) => b(o).onClose())
|
|
6861
6861
|
}, {
|
|
6862
6862
|
default: M(() => [
|
|
6863
|
-
|
|
6863
|
+
P(b(gh), Se({
|
|
6864
6864
|
ref: b(i),
|
|
6865
6865
|
"data-state": b(o).stateAttribute.value
|
|
6866
6866
|
}, { ...d.$attrs, ...u.value }, { style: {
|
|
@@ -6872,7 +6872,7 @@ const iB = /* @__PURE__ */ j({
|
|
|
6872
6872
|
} }), {
|
|
6873
6873
|
default: M(() => [
|
|
6874
6874
|
te(d.$slots, "default"),
|
|
6875
|
-
|
|
6875
|
+
P(b(Zx), {
|
|
6876
6876
|
id: b(o).contentId,
|
|
6877
6877
|
role: "tooltip"
|
|
6878
6878
|
}, {
|
|
@@ -7210,7 +7210,7 @@ const cn = (t) => {
|
|
|
7210
7210
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7211
7211
|
RB.test(t) && !LB.test(t)
|
|
7212
7212
|
), N5 = () => !1, WB = (t) => IB.test(t), jB = (t) => DB.test(t), qB = () => {
|
|
7213
|
-
const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"),
|
|
7213
|
+
const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"), D = cn("translate"), I = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", wt, e], ee = () => [wt, e], he = () => ["", Ti, ls], Oe = () => ["auto", Tl, wt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", wt], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Tl, wt];
|
|
7214
7214
|
return {
|
|
7215
7215
|
cacheSize: 500,
|
|
7216
7216
|
separator: ":",
|
|
@@ -8876,14 +8876,14 @@ const cn = (t) => {
|
|
|
8876
8876
|
* @see https://tailwindcss.com/docs/translate
|
|
8877
8877
|
*/
|
|
8878
8878
|
"translate-x": [{
|
|
8879
|
-
"translate-x": [
|
|
8879
|
+
"translate-x": [D]
|
|
8880
8880
|
}],
|
|
8881
8881
|
/**
|
|
8882
8882
|
* Translate Y
|
|
8883
8883
|
* @see https://tailwindcss.com/docs/translate
|
|
8884
8884
|
*/
|
|
8885
8885
|
"translate-y": [{
|
|
8886
|
-
"translate-y": [
|
|
8886
|
+
"translate-y": [D]
|
|
8887
8887
|
}],
|
|
8888
8888
|
/**
|
|
8889
8889
|
* Skew X
|
|
@@ -9281,7 +9281,7 @@ var ep = { exports: {} };
|
|
|
9281
9281
|
ep.exports;
|
|
9282
9282
|
(function(t, e) {
|
|
9283
9283
|
(function() {
|
|
9284
|
-
var n, r = "4.17.21", o = 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__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128,
|
|
9284
|
+
var n, r = "4.17.21", o = 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__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128, D = 256, I = 512, B = 30, V = "...", ee = 800, he = 16, Oe = 1, q = 2, G = 3, F = 1 / 0, Q = 9007199254740991, ie = 17976931348623157e292, ce = NaN, fe = 4294967295, Re = fe - 1, Ie = fe >>> 1, ct = [
|
|
9285
9285
|
["ary", A],
|
|
9286
9286
|
["bind", w],
|
|
9287
9287
|
["bindKey", x],
|
|
@@ -9290,7 +9290,7 @@ ep.exports;
|
|
|
9290
9290
|
["flip", I],
|
|
9291
9291
|
["partial", k],
|
|
9292
9292
|
["partialRight", T],
|
|
9293
|
-
["rearg",
|
|
9293
|
+
["rearg", D]
|
|
9294
9294
|
], Ue = "[object Arguments]", ke = "[object Array]", X = "[object AsyncFunction]", re = "[object Boolean]", pe = "[object Date]", me = "[object DOMException]", _e = "[object Error]", De = "[object Function]", qe = "[object GeneratorFunction]", le = "[object Map]", Le = "[object Number]", ot = "[object Null]", Ht = "[object Object]", W = "[object Promise]", H = "[object Proxy]", ge = "[object RegExp]", Ae = "[object Set]", Ge = "[object String]", gt = "[object Symbol]", tt = "[object Undefined]", se = "[object WeakMap]", Ee = "[object WeakSet]", be = "[object ArrayBuffer]", Te = "[object DataView]", Xe = "[object Float32Array]", bt = "[object Float64Array]", Kt = "[object Int8Array]", mn = "[object Int16Array]", pi = "[object Int32Array]", ue = "[object Uint8Array]", We = "[object Uint8ClampedArray]", nt = "[object Uint16Array]", Bt = "[object Uint32Array]", Rt = /\b__p \+= '';/g, Wn = /\b(__p \+=) '' \+/g, Sr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, hi = /&(?:amp|lt|gt|quot|#39);/g, gu = /[&<>"']/g, mi = RegExp(hi.source), bu = RegExp(gu.source), ja = /<%-([\s\S]+?)%>/g, Yi = /<%([\s\S]+?)%>/g, ud = /<%=([\s\S]+?)%>/g, vu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qa = /^\w*$/, sT = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, h0 = /[\\^$.*+?()[\]{}|]/g, aT = RegExp(h0.source), m0 = /^\s+/, lT = /\s/, uT = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, cT = /\{\n\/\* \[wrapped with (.+)\] \*/, dT = /,? & /, fT = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, pT = /[()=,{}\[\]\/\s]/, hT = /\\(\\)?/g, mT = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, kv = /\w*$/, gT = /^[-+]0x[0-9a-f]+$/i, bT = /^0b[01]+$/i, vT = /^\[object .+?Constructor\]$/, yT = /^0o[0-7]+$/i, wT = /^(?:0|[1-9]\d*)$/, xT = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, cd = /($^)/, _T = /['\n\r\u2028\u2029\\]/g, dd = "\\ud800-\\udfff", ET = "\\u0300-\\u036f", CT = "\\ufe20-\\ufe2f", ST = "\\u20d0-\\u20ff", Av = ET + CT + ST, Ov = "\\u2700-\\u27bf", Mv = "a-z\\xdf-\\xf6\\xf8-\\xff", TT = "\\xac\\xb1\\xd7\\xf7", kT = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", AT = "\\u2000-\\u206f", OT = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Nv = "A-Z\\xc0-\\xd6\\xd8-\\xde", Rv = "\\ufe0e\\ufe0f", Lv = TT + kT + AT + OT, g0 = "['’]", MT = "[" + dd + "]", Iv = "[" + Lv + "]", fd = "[" + Av + "]", Dv = "\\d+", NT = "[" + Ov + "]", Pv = "[" + Mv + "]", Bv = "[^" + dd + Lv + Dv + Ov + Mv + Nv + "]", b0 = "\\ud83c[\\udffb-\\udfff]", RT = "(?:" + fd + "|" + b0 + ")", Fv = "[^" + dd + "]", v0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", y0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ka = "[" + Nv + "]", $v = "\\u200d", Hv = "(?:" + Pv + "|" + Bv + ")", LT = "(?:" + Ka + "|" + Bv + ")", zv = "(?:" + g0 + "(?:d|ll|m|re|s|t|ve))?", Vv = "(?:" + g0 + "(?:D|LL|M|RE|S|T|VE))?", Uv = RT + "?", Wv = "[" + Rv + "]?", IT = "(?:" + $v + "(?:" + [Fv, v0, y0].join("|") + ")" + Wv + Uv + ")*", DT = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", PT = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", jv = Wv + Uv + IT, BT = "(?:" + [NT, v0, y0].join("|") + ")" + jv, FT = "(?:" + [Fv + fd + "?", fd, v0, y0, MT].join("|") + ")", $T = RegExp(g0, "g"), HT = RegExp(fd, "g"), w0 = RegExp(b0 + "(?=" + b0 + ")|" + FT + jv, "g"), zT = RegExp([
|
|
9295
9295
|
Ka + "?" + Pv + "+" + zv + "(?=" + [Iv, Ka, "$"].join("|") + ")",
|
|
9296
9296
|
LT + "+" + Vv + "(?=" + [Iv, Ka + Hv, "$"].join("|") + ")",
|
|
@@ -9836,7 +9836,7 @@ ep.exports;
|
|
|
9836
9836
|
return c({}, "", {}), c;
|
|
9837
9837
|
} catch {
|
|
9838
9838
|
}
|
|
9839
|
-
}(), Ok = de.clearTimeout !== jn.clearTimeout && de.clearTimeout, Mk = ze && ze.now !== jn.Date.now && ze.now, Nk = de.setTimeout !== jn.setTimeout && de.setTimeout, Sd = Dn.ceil, Td = Dn.floor, L0 = en.getOwnPropertySymbols, Rk = wd ? wd.isBuffer : n, my = de.isFinite, Lk = gd.join, Ik = ly(en.keys, en), Pn = Dn.max,
|
|
9839
|
+
}(), Ok = de.clearTimeout !== jn.clearTimeout && de.clearTimeout, Mk = ze && ze.now !== jn.Date.now && ze.now, Nk = de.setTimeout !== jn.setTimeout && de.setTimeout, Sd = Dn.ceil, Td = Dn.floor, L0 = en.getOwnPropertySymbols, Rk = wd ? wd.isBuffer : n, my = de.isFinite, Lk = gd.join, Ik = ly(en.keys, en), Pn = Dn.max, er = Dn.min, Dk = ze.now, Pk = de.parseInt, gy = Dn.random, Bk = gd.reverse, I0 = Qs(de, "DataView"), xu = Qs(de, "Map"), D0 = Qs(de, "Promise"), Qa = Qs(de, "Set"), _u = Qs(de, "WeakMap"), Eu = Qs(en, "create"), kd = _u && new _u(), el = {}, Fk = ea(I0), $k = ea(xu), Hk = ea(D0), zk = ea(Qa), Vk = ea(_u), Ad = ts ? ts.prototype : n, Cu = Ad ? Ad.valueOf : n, by = Ad ? Ad.toString : n;
|
|
9840
9840
|
function R(c) {
|
|
9841
9841
|
if (_n(c) && !mt(c) && !(c instanceof Mt)) {
|
|
9842
9842
|
if (c instanceof ro)
|
|
@@ -9925,7 +9925,7 @@ ep.exports;
|
|
|
9925
9925
|
return c;
|
|
9926
9926
|
}
|
|
9927
9927
|
function jk() {
|
|
9928
|
-
var c = this.__wrapped__.value(), f = this.__dir__, v = mt(c), E = f < 0, O = v ? c.length : 0, L = rA(0, O, this.__views__), z = L.start, K = L.end, Z = K - z, ve = E ? K : z - 1, we = this.__iteratees__, Ce = we.length, Pe = 0, Je =
|
|
9928
|
+
var c = this.__wrapped__.value(), f = this.__dir__, v = mt(c), E = f < 0, O = v ? c.length : 0, L = rA(0, O, this.__views__), z = L.start, K = L.end, Z = K - z, ve = E ? K : z - 1, we = this.__iteratees__, Ce = we.length, Pe = 0, Je = er(Z, this.__takeCount__);
|
|
9929
9929
|
if (!v || !E && O == Z && Je == Z)
|
|
9930
9930
|
return zy(c, this.__actions__);
|
|
9931
9931
|
var it = [];
|
|
@@ -10147,7 +10147,7 @@ ep.exports;
|
|
|
10147
10147
|
if (z = iA(c), !K)
|
|
10148
10148
|
return Tr(c, z);
|
|
10149
10149
|
} else {
|
|
10150
|
-
var Ce =
|
|
10150
|
+
var Ce = tr(c), Pe = Ce == De || Ce == qe;
|
|
10151
10151
|
if (as(c))
|
|
10152
10152
|
return Wy(c, K);
|
|
10153
10153
|
if (Ce == Ht || Ce == Ue || Pe && !O) {
|
|
@@ -10284,12 +10284,12 @@ ep.exports;
|
|
|
10284
10284
|
return c != null && f in en(c);
|
|
10285
10285
|
}
|
|
10286
10286
|
function E9(c, f, v) {
|
|
10287
|
-
return c >=
|
|
10287
|
+
return c >= er(f, v) && c < Pn(f, v);
|
|
10288
10288
|
}
|
|
10289
10289
|
function z0(c, f, v) {
|
|
10290
10290
|
for (var E = v ? E0 : pd, O = c[0].length, L = c.length, z = L, K = oe(L), Z = 1 / 0, ve = []; z--; ) {
|
|
10291
10291
|
var we = c[z];
|
|
10292
|
-
z && f && (we = fn(we, $r(f))), Z =
|
|
10292
|
+
z && f && (we = fn(we, $r(f))), Z = er(we.length, Z), K[z] = !v && (f || O >= 120 && we.length >= 120) ? new Xs(z && we) : n;
|
|
10293
10293
|
}
|
|
10294
10294
|
we = c[0];
|
|
10295
10295
|
var Ce = -1, Pe = K[0];
|
|
@@ -10330,7 +10330,7 @@ ep.exports;
|
|
|
10330
10330
|
return c === f ? !0 : c == null || f == null || !_n(c) && !_n(f) ? c !== c && f !== f : k9(c, f, v, E, Au, O);
|
|
10331
10331
|
}
|
|
10332
10332
|
function k9(c, f, v, E, O, L) {
|
|
10333
|
-
var z = mt(c), K = mt(f), Z = z ? ke :
|
|
10333
|
+
var z = mt(c), K = mt(f), Z = z ? ke : tr(c), ve = K ? ke : tr(f);
|
|
10334
10334
|
Z = Z == Ue ? Ht : Z, ve = ve == Ue ? Ht : ve;
|
|
10335
10335
|
var we = Z == Ht, Ce = ve == Ht, Pe = Z == ve;
|
|
10336
10336
|
if (Pe && as(c)) {
|
|
@@ -10350,7 +10350,7 @@ ep.exports;
|
|
|
10350
10350
|
return Pe ? (L || (L = new So()), tA(c, f, v, E, O, L)) : !1;
|
|
10351
10351
|
}
|
|
10352
10352
|
function A9(c) {
|
|
10353
|
-
return _n(c) &&
|
|
10353
|
+
return _n(c) && tr(c) == le;
|
|
10354
10354
|
}
|
|
10355
10355
|
function V0(c, f, v, E) {
|
|
10356
10356
|
var O = v.length, L = O, z = !E;
|
|
@@ -10387,7 +10387,7 @@ ep.exports;
|
|
|
10387
10387
|
return _n(c) && pr(c) == ge;
|
|
10388
10388
|
}
|
|
10389
10389
|
function M9(c) {
|
|
10390
|
-
return _n(c) &&
|
|
10390
|
+
return _n(c) && tr(c) == Ae;
|
|
10391
10391
|
}
|
|
10392
10392
|
function N9(c) {
|
|
10393
10393
|
return _n(c) && Jd(c.length) && !!un[pr(c)];
|
|
@@ -10604,7 +10604,7 @@ ep.exports;
|
|
|
10604
10604
|
else ve ? st = it && (E || Pe) : K ? st = it && Pe && (E || !Je) : Z ? st = it && Pe && !Je && (E || !xt) : Je || xt ? st = !1 : st = E ? Ce <= f : Ce < f;
|
|
10605
10605
|
st ? O = we + 1 : L = we;
|
|
10606
10606
|
}
|
|
10607
|
-
return
|
|
10607
|
+
return er(L, Re);
|
|
10608
10608
|
}
|
|
10609
10609
|
function Fy(c, f) {
|
|
10610
10610
|
for (var v = -1, E = c.length, O = 0, L = []; ++v < E; ) {
|
|
@@ -10920,7 +10920,7 @@ ep.exports;
|
|
|
10920
10920
|
for (E = z ? E : v; ++E < v; ) {
|
|
10921
10921
|
L = f[E];
|
|
10922
10922
|
var K = zd(L), Z = K == "wrapper" ? om(L) : n;
|
|
10923
|
-
Z && lm(Z[0]) && Z[1] == (A | S | k |
|
|
10923
|
+
Z && lm(Z[0]) && Z[1] == (A | S | k | D) && !Z[4].length && Z[9] == 1 ? z = z[zd(Z[0])].apply(z, Z[3]) : z = L.length == 1 && lm(L) ? z[K]() : z.thru(L);
|
|
10924
10924
|
}
|
|
10925
10925
|
return function() {
|
|
10926
10926
|
var ve = arguments, we = ve[0];
|
|
@@ -11036,7 +11036,7 @@ ep.exports;
|
|
|
11036
11036
|
function tm(c) {
|
|
11037
11037
|
var f = Dn[c];
|
|
11038
11038
|
return function(v, E) {
|
|
11039
|
-
if (v = ao(v), E = E == null ? 0 :
|
|
11039
|
+
if (v = ao(v), E = E == null ? 0 : er(yt(E), 292), E && my(v)) {
|
|
11040
11040
|
var O = (Wt(v) + "e").split("e"), L = f(O[0] + "e" + (+O[1] + E));
|
|
11041
11041
|
return O = (Wt(L) + "e").split("e"), +(O[0] + "e" + (+O[1] - E));
|
|
11042
11042
|
}
|
|
@@ -11048,7 +11048,7 @@ ep.exports;
|
|
|
11048
11048
|
} : Em;
|
|
11049
11049
|
function r3(c) {
|
|
11050
11050
|
return function(f) {
|
|
11051
|
-
var v =
|
|
11051
|
+
var v = tr(f);
|
|
11052
11052
|
return v == le ? N0(f) : v == Ae ? mk(f) : ak(f, c(f));
|
|
11053
11053
|
};
|
|
11054
11054
|
}
|
|
@@ -11248,8 +11248,8 @@ ep.exports;
|
|
|
11248
11248
|
for (var f = []; c; )
|
|
11249
11249
|
Qi(f, sm(c)), c = _d(c);
|
|
11250
11250
|
return f;
|
|
11251
|
-
} : Cm,
|
|
11252
|
-
(I0 &&
|
|
11251
|
+
} : Cm, tr = pr;
|
|
11252
|
+
(I0 && tr(new I0(new ArrayBuffer(1))) != Te || xu && tr(new xu()) != le || D0 && tr(D0.resolve()) != W || Qa && tr(new Qa()) != Ae || _u && tr(new _u()) != se) && (tr = function(c) {
|
|
11253
11253
|
var f = pr(c), v = f == Ht ? c.constructor : n, E = v ? ea(v) : "";
|
|
11254
11254
|
if (E)
|
|
11255
11255
|
switch (E) {
|
|
@@ -11277,7 +11277,7 @@ ep.exports;
|
|
|
11277
11277
|
f -= z;
|
|
11278
11278
|
break;
|
|
11279
11279
|
case "take":
|
|
11280
|
-
f =
|
|
11280
|
+
f = er(f, c + z);
|
|
11281
11281
|
break;
|
|
11282
11282
|
case "takeRight":
|
|
11283
11283
|
c = Pn(c, f - z);
|
|
@@ -11404,7 +11404,7 @@ ep.exports;
|
|
|
11404
11404
|
return f;
|
|
11405
11405
|
}
|
|
11406
11406
|
function pA(c, f) {
|
|
11407
|
-
var v = c[1], E = f[1], O = v | E, L = O < (w | x | A), z = E == A && v == S || E == A && v ==
|
|
11407
|
+
var v = c[1], E = f[1], O = v | E, L = O < (w | x | A), z = E == A && v == S || E == A && v == D && c[7].length <= f[8] || E == (A | D) && f[7].length <= f[8] && v == S;
|
|
11408
11408
|
if (!(L || z))
|
|
11409
11409
|
return c;
|
|
11410
11410
|
E & w && (c[2] = f[2], O |= v & w ? 0 : C);
|
|
@@ -11413,7 +11413,7 @@ ep.exports;
|
|
|
11413
11413
|
var Z = c[3];
|
|
11414
11414
|
c[3] = Z ? Ky(Z, K, f[4]) : K, c[4] = Z ? es(c[3], d) : f[4];
|
|
11415
11415
|
}
|
|
11416
|
-
return K = f[5], K && (Z = c[5], c[5] = Z ? Gy(Z, K, f[6]) : K, c[6] = Z ? es(c[5], d) : f[6]), K = f[7], K && (c[7] = K), E & A && (c[8] = c[8] == null ? f[8] :
|
|
11416
|
+
return K = f[5], K && (Z = c[5], c[5] = Z ? Gy(Z, K, f[6]) : K, c[6] = Z ? es(c[5], d) : f[6]), K = f[7], K && (c[7] = K), E & A && (c[8] = c[8] == null ? f[8] : er(c[8], f[8])), c[9] == null && (c[9] = f[9]), c[0] = f[0], c[1] = O, c;
|
|
11417
11417
|
}
|
|
11418
11418
|
function hA(c) {
|
|
11419
11419
|
var f = [];
|
|
@@ -11439,7 +11439,7 @@ ep.exports;
|
|
|
11439
11439
|
return f.length < 2 ? c : Zs(c, io(f, 0, -1));
|
|
11440
11440
|
}
|
|
11441
11441
|
function gA(c, f) {
|
|
11442
|
-
for (var v = c.length, E =
|
|
11442
|
+
for (var v = c.length, E = er(f.length, v), O = Tr(c); E--; ) {
|
|
11443
11443
|
var L = f[E];
|
|
11444
11444
|
c[E] = xi(L, v) ? O[L] : n;
|
|
11445
11445
|
}
|
|
@@ -11576,7 +11576,7 @@ ep.exports;
|
|
|
11576
11576
|
if (!E)
|
|
11577
11577
|
return -1;
|
|
11578
11578
|
var O = E - 1;
|
|
11579
|
-
return v !== n && (O = yt(v), O = v < 0 ? Pn(E + O, 0) :
|
|
11579
|
+
return v !== n && (O = yt(v), O = v < 0 ? Pn(E + O, 0) : er(O, E - 1)), hd(c, rt(f, 3), O, !0);
|
|
11580
11580
|
}
|
|
11581
11581
|
function x3(c) {
|
|
11582
11582
|
var f = c == null ? 0 : c.length;
|
|
@@ -11633,7 +11633,7 @@ ep.exports;
|
|
|
11633
11633
|
if (!E)
|
|
11634
11634
|
return -1;
|
|
11635
11635
|
var O = E;
|
|
11636
|
-
return v !== n && (O = yt(v), O = O < 0 ? Pn(E + O, 0) :
|
|
11636
|
+
return v !== n && (O = yt(v), O = O < 0 ? Pn(E + O, 0) : er(O, E - 1)), f === f ? bk(c, f, O) : hd(c, ny, O, !0);
|
|
11637
11637
|
}
|
|
11638
11638
|
function $A(c, f) {
|
|
11639
11639
|
return c && c.length ? Ly(c, yt(f)) : n;
|
|
@@ -11930,7 +11930,7 @@ ep.exports;
|
|
|
11930
11930
|
return 0;
|
|
11931
11931
|
if (kr(c))
|
|
11932
11932
|
return Xd(c) ? Xa(c) : c.length;
|
|
11933
|
-
var f =
|
|
11933
|
+
var f = tr(c);
|
|
11934
11934
|
return f == le || f == Ae ? c.size : U0(c).length;
|
|
11935
11935
|
}
|
|
11936
11936
|
function JO(c, f, v) {
|
|
@@ -12003,7 +12003,7 @@ ep.exports;
|
|
|
12003
12003
|
}
|
|
12004
12004
|
function xt(An) {
|
|
12005
12005
|
var ko = An - Z, Ci = An - ve, Z3 = f - ko;
|
|
12006
|
-
return Ce ?
|
|
12006
|
+
return Ce ? er(Z3, L - Ci) : Z3;
|
|
12007
12007
|
}
|
|
12008
12008
|
function st(An) {
|
|
12009
12009
|
var ko = An - Z, Ci = An - ve;
|
|
@@ -12082,7 +12082,7 @@ ep.exports;
|
|
|
12082
12082
|
f = f.length == 1 && mt(f[0]) ? fn(f[0], $r(rt())) : fn(qn(f, 1), $r(rt()));
|
|
12083
12083
|
var v = f.length;
|
|
12084
12084
|
return kt(function(E) {
|
|
12085
|
-
for (var O = -1, L =
|
|
12085
|
+
for (var O = -1, L = er(E.length, v); ++O < L; )
|
|
12086
12086
|
E[O] = f[O].call(this, E[O]);
|
|
12087
12087
|
return Fr(c, this, E);
|
|
12088
12088
|
});
|
|
@@ -12093,7 +12093,7 @@ ep.exports;
|
|
|
12093
12093
|
var v = es(f, ol(I3));
|
|
12094
12094
|
return yi(c, T, n, f, v);
|
|
12095
12095
|
}), rM = wi(function(c, f) {
|
|
12096
|
-
return yi(c,
|
|
12096
|
+
return yi(c, D, n, n, n, f);
|
|
12097
12097
|
});
|
|
12098
12098
|
function oM(c, f) {
|
|
12099
12099
|
if (typeof c != "function")
|
|
@@ -12173,7 +12173,7 @@ ep.exports;
|
|
|
12173
12173
|
return !0;
|
|
12174
12174
|
if (kr(c) && (mt(c) || typeof c == "string" || typeof c.splice == "function" || as(c) || il(c) || ta(c)))
|
|
12175
12175
|
return !c.length;
|
|
12176
|
-
var f =
|
|
12176
|
+
var f = tr(c);
|
|
12177
12177
|
if (f == le || f == Ae)
|
|
12178
12178
|
return !c.size;
|
|
12179
12179
|
if (Nu(c))
|
|
@@ -12268,7 +12268,7 @@ ep.exports;
|
|
|
12268
12268
|
return c === n;
|
|
12269
12269
|
}
|
|
12270
12270
|
function LM(c) {
|
|
12271
|
-
return _n(c) &&
|
|
12271
|
+
return _n(c) && tr(c) == se;
|
|
12272
12272
|
}
|
|
12273
12273
|
function IM(c) {
|
|
12274
12274
|
return _n(c) && pr(c) == Ee;
|
|
@@ -12283,7 +12283,7 @@ ep.exports;
|
|
|
12283
12283
|
return Xd(c) ? Co(c) : Tr(c);
|
|
12284
12284
|
if (wu && c[wu])
|
|
12285
12285
|
return hk(c[wu]());
|
|
12286
|
-
var f =
|
|
12286
|
+
var f = tr(c), v = f == le ? N0 : f == Ae ? md : sl;
|
|
12287
12287
|
return v(c);
|
|
12288
12288
|
}
|
|
12289
12289
|
function Ei(c) {
|
|
@@ -12499,7 +12499,7 @@ ep.exports;
|
|
|
12499
12499
|
}
|
|
12500
12500
|
if (v || c % 1 || f % 1) {
|
|
12501
12501
|
var O = gy();
|
|
12502
|
-
return
|
|
12502
|
+
return er(c + O * (f - c + XT("1e-" + ((O + "").length - 1))), f);
|
|
12503
12503
|
}
|
|
12504
12504
|
return q0(c, f);
|
|
12505
12505
|
}
|
|
@@ -12794,7 +12794,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
12794
12794
|
function fR(c, f) {
|
|
12795
12795
|
if (c = yt(c), c < 1 || c > Q)
|
|
12796
12796
|
return [];
|
|
12797
|
-
var v = fe, E =
|
|
12797
|
+
var v = fe, E = er(c, fe);
|
|
12798
12798
|
f = rt(f), c -= fe;
|
|
12799
12799
|
for (var O = O0(E, f); ++v < c; )
|
|
12800
12800
|
f(v);
|
|
@@ -12852,8 +12852,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
12852
12852
|
Mt.prototype[c] = function(v) {
|
|
12853
12853
|
v = v === n ? 1 : Pn(yt(v), 0);
|
|
12854
12854
|
var E = this.__filtered__ && !f ? new Mt(this) : this.clone();
|
|
12855
|
-
return E.__filtered__ ? E.__takeCount__ =
|
|
12856
|
-
size:
|
|
12855
|
+
return E.__filtered__ ? E.__takeCount__ = er(v, E.__takeCount__) : E.__views__.push({
|
|
12856
|
+
size: er(v, fe),
|
|
12857
12857
|
type: c + (E.__dir__ < 0 ? "Right" : "")
|
|
12858
12858
|
}), E;
|
|
12859
12859
|
}, Mt.prototype[c + "Right"] = function(v) {
|
|
@@ -13282,7 +13282,7 @@ function wF(t, e = {}) {
|
|
|
13282
13282
|
const Ae = x(W.currentPeek());
|
|
13283
13283
|
return W.resetPeek(), Ae;
|
|
13284
13284
|
}
|
|
13285
|
-
function
|
|
13285
|
+
function D(W, H) {
|
|
13286
13286
|
const { currentType: ge } = H;
|
|
13287
13287
|
if (!(ge === 7 || ge === 11))
|
|
13288
13288
|
return !1;
|
|
@@ -13527,7 +13527,7 @@ function wF(t, e = {}) {
|
|
|
13527
13527
|
/* TokenChars.LinkedDelimiter */
|
|
13528
13528
|
);
|
|
13529
13529
|
default:
|
|
13530
|
-
return B(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) ||
|
|
13530
|
+
return B(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) || D(W, H) ? (w(W), Le(W, H)) : A(W, H) ? (w(W), h(H, 11, _e(W))) : I(W, H) ? (w(W), Ge === "{" ? le(W, H) || Ae : h(H, 10, De(W))) : (ge === 7 && p(dt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, ot(W, H));
|
|
13531
13531
|
}
|
|
13532
13532
|
}
|
|
13533
13533
|
function ot(W, H) {
|
|
@@ -13594,11 +13594,11 @@ function CF(t = {}) {
|
|
|
13594
13594
|
function r(x, C, S, _, ...k) {
|
|
13595
13595
|
const T = x.currentPosition();
|
|
13596
13596
|
if (T.offset += _, T.column += _, n) {
|
|
13597
|
-
const A = e ? K1(S, T) : null,
|
|
13597
|
+
const A = e ? K1(S, T) : null, D = Ql(C, A, {
|
|
13598
13598
|
domain: xF,
|
|
13599
13599
|
args: k
|
|
13600
13600
|
});
|
|
13601
|
-
n(
|
|
13601
|
+
n(D);
|
|
13602
13602
|
}
|
|
13603
13603
|
}
|
|
13604
13604
|
function o(x, C, S) {
|
|
@@ -13696,8 +13696,8 @@ function CF(t = {}) {
|
|
|
13696
13696
|
}
|
|
13697
13697
|
}
|
|
13698
13698
|
} while (C.currentType !== 13 && C.currentType !== 1);
|
|
13699
|
-
const A = C.currentType === 1 ? C.lastOffset : x.currentOffset(),
|
|
13700
|
-
return i(k, A,
|
|
13699
|
+
const A = C.currentType === 1 ? C.lastOffset : x.currentOffset(), D = C.currentType === 1 ? C.lastEndLoc : x.currentPosition();
|
|
13700
|
+
return i(k, A, D), k;
|
|
13701
13701
|
}
|
|
13702
13702
|
function g(x, C, S, _) {
|
|
13703
13703
|
const k = x.context();
|
|
@@ -13705,8 +13705,8 @@ function CF(t = {}) {
|
|
|
13705
13705
|
const A = o(1, C, S);
|
|
13706
13706
|
A.cases = [], A.cases.push(_);
|
|
13707
13707
|
do {
|
|
13708
|
-
const
|
|
13709
|
-
T || (T =
|
|
13708
|
+
const D = m(x);
|
|
13709
|
+
T || (T = D.items.length === 0), A.cases.push(D);
|
|
13710
13710
|
} while (k.currentType !== 13);
|
|
13711
13711
|
return T && r(x, dt.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), i(A, x.currentOffset(), x.currentPosition()), A;
|
|
13712
13712
|
}
|
|
@@ -14198,7 +14198,7 @@ const s$ = /* @__PURE__ */ a$("function:translate");
|
|
|
14198
14198
|
function a$(t) {
|
|
14199
14199
|
return (e) => vc && vc.emit(t, e);
|
|
14200
14200
|
}
|
|
14201
|
-
const
|
|
14201
|
+
const or = {
|
|
14202
14202
|
INVALID_ARGUMENT: uF,
|
|
14203
14203
|
// 17
|
|
14204
14204
|
INVALID_DATE_ARGUMENT: 18,
|
|
@@ -14212,13 +14212,13 @@ function Bi(t) {
|
|
|
14212
14212
|
return Ql(t, null, process.env.NODE_ENV !== "production" ? { messages: u$ } : void 0);
|
|
14213
14213
|
}
|
|
14214
14214
|
const u$ = {
|
|
14215
|
-
[
|
|
14216
|
-
[
|
|
14217
|
-
[
|
|
14218
|
-
[
|
|
14219
|
-
[
|
|
14220
|
-
[
|
|
14221
|
-
[
|
|
14215
|
+
[or.INVALID_ARGUMENT]: "Invalid arguments",
|
|
14216
|
+
[or.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
14217
|
+
[or.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
14218
|
+
[or.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
|
|
14219
|
+
[or.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
|
|
14220
|
+
[or.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
|
|
14221
|
+
[or.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
|
|
14222
14222
|
};
|
|
14223
14223
|
function Ub(t, e) {
|
|
14224
14224
|
return e.locale != null ? N4(e.locale) : N4(t.locale);
|
|
@@ -14233,12 +14233,12 @@ function N4(t) {
|
|
|
14233
14233
|
if (t.constructor.name === "Function") {
|
|
14234
14234
|
const e = t();
|
|
14235
14235
|
if (iF(e))
|
|
14236
|
-
throw Bi(
|
|
14236
|
+
throw Bi(or.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
14237
14237
|
return Im = e;
|
|
14238
14238
|
} else
|
|
14239
|
-
throw Bi(
|
|
14239
|
+
throw Bi(or.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
|
|
14240
14240
|
} else
|
|
14241
|
-
throw Bi(
|
|
14241
|
+
throw Bi(or.NOT_SUPPORT_LOCALE_TYPE);
|
|
14242
14242
|
}
|
|
14243
14243
|
function c$(t, e, n) {
|
|
14244
14244
|
return [.../* @__PURE__ */ new Set([
|
|
@@ -14612,7 +14612,7 @@ let P4 = 0;
|
|
|
14612
14612
|
function N$(t = {}) {
|
|
14613
14613
|
const e = nn(t.onWarn) ? t.onWarn : $s, n = Be(t.version) ? t.version : E$, r = Be(t.locale) || nn(t.locale) ? t.locale : yc, o = nn(r) ? yc : r, i = vn(t.fallbackLocale) || St(t.fallbackLocale) || Be(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, s = St(t.messages) ? t.messages : Dm(o), a = St(t.datetimeFormats) ? t.datetimeFormats : Dm(o), l = St(t.numberFormats) ? t.numberFormats : Dm(o), u = Bn(Yt(), t.modifiers, C$()), d = t.pluralRules || Yt(), p = nn(t.missing) ? t.missing : null, h = Ft(t.missingWarn) || Ll(t.missingWarn) ? t.missingWarn : !0, m = Ft(t.fallbackWarn) || Ll(t.fallbackWarn) ? t.fallbackWarn : !0, g = !!t.fallbackFormat, y = !!t.unresolving, w = nn(t.postTranslation) ? t.postTranslation : null, x = St(t.processor) ? t.processor : null, C = Ft(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, _ = nn(t.messageCompiler) ? t.messageCompiler : D5;
|
|
14614
14614
|
process.env.NODE_ENV !== "production" && nn(t.messageCompiler) && L5(Ca(Mr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
14615
|
-
const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0,
|
|
14615
|
+
const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0, D = t, I = Pt(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), B = Pt(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), V = Pt(D.__meta) ? D.__meta : {};
|
|
14616
14616
|
P4++;
|
|
14617
14617
|
const ee = {
|
|
14618
14618
|
version: n,
|
|
@@ -14638,7 +14638,7 @@ function N$(t = {}) {
|
|
|
14638
14638
|
onWarn: e,
|
|
14639
14639
|
__meta: V
|
|
14640
14640
|
};
|
|
14641
|
-
return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = B, process.env.NODE_ENV !== "production" && (ee.__v_emitter =
|
|
14641
|
+
return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = B, process.env.NODE_ENV !== "production" && (ee.__v_emitter = D.__v_emitter != null ? D.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && i$(ee, n, V), ee;
|
|
14642
14642
|
}
|
|
14643
14643
|
const Dm = (t) => ({ [t]: Yt() });
|
|
14644
14644
|
function Sh(t, e) {
|
|
@@ -14720,8 +14720,8 @@ function F4(t, ...e) {
|
|
|
14720
14720
|
return r ? Ch : l;
|
|
14721
14721
|
let A = `${C}__${l}`;
|
|
14722
14722
|
Eh(p) || (A = `${A}__${JSON.stringify(p)}`);
|
|
14723
|
-
let
|
|
14724
|
-
return
|
|
14723
|
+
let D = a.get(A);
|
|
14724
|
+
return D || (D = new Intl.DateTimeFormat(C, Bn({}, S, p)), a.set(A, D)), g ? D.formatToParts(u) : D.format(u);
|
|
14725
14725
|
}
|
|
14726
14726
|
const U5 = [
|
|
14727
14727
|
"localeMatcher",
|
|
@@ -14751,22 +14751,22 @@ function J1(...t) {
|
|
|
14751
14751
|
if (Be(e)) {
|
|
14752
14752
|
const l = e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
14753
14753
|
if (!l)
|
|
14754
|
-
throw Bi(
|
|
14754
|
+
throw Bi(or.INVALID_ISO_DATE_ARGUMENT);
|
|
14755
14755
|
const u = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
|
|
14756
14756
|
a = new Date(u);
|
|
14757
14757
|
try {
|
|
14758
14758
|
a.toISOString();
|
|
14759
14759
|
} catch {
|
|
14760
|
-
throw Bi(
|
|
14760
|
+
throw Bi(or.INVALID_ISO_DATE_ARGUMENT);
|
|
14761
14761
|
}
|
|
14762
14762
|
} else if (nF(e)) {
|
|
14763
14763
|
if (isNaN(e.getTime()))
|
|
14764
|
-
throw Bi(
|
|
14764
|
+
throw Bi(or.INVALID_DATE_ARGUMENT);
|
|
14765
14765
|
a = e;
|
|
14766
14766
|
} else if (On(e))
|
|
14767
14767
|
a = e;
|
|
14768
14768
|
else
|
|
14769
|
-
throw Bi(
|
|
14769
|
+
throw Bi(or.INVALID_ARGUMENT);
|
|
14770
14770
|
return Be(n) ? i.key = n : St(n) && Object.keys(n).forEach((l) => {
|
|
14771
14771
|
U5.includes(l) ? s[l] = n[l] : i[l] = n[l];
|
|
14772
14772
|
}), Be(r) ? i.locale = r : St(r) && (s = r), St(o) && (s = o), [i.key || "", a, i, s];
|
|
@@ -14814,8 +14814,8 @@ function H4(t, ...e) {
|
|
|
14814
14814
|
return r ? Ch : l;
|
|
14815
14815
|
let A = `${C}__${l}`;
|
|
14816
14816
|
Eh(p) || (A = `${A}__${JSON.stringify(p)}`);
|
|
14817
|
-
let
|
|
14818
|
-
return
|
|
14817
|
+
let D = a.get(A);
|
|
14818
|
+
return D || (D = new Intl.NumberFormat(C, Bn({}, S, p)), a.set(A, D)), g ? D.formatToParts(u) : D.format(u);
|
|
14819
14819
|
}
|
|
14820
14820
|
const W5 = [
|
|
14821
14821
|
"localeMatcher",
|
|
@@ -14843,7 +14843,7 @@ function X1(...t) {
|
|
|
14843
14843
|
const [e, n, r, o] = t, i = Yt();
|
|
14844
14844
|
let s = Yt();
|
|
14845
14845
|
if (!On(e))
|
|
14846
|
-
throw Bi(
|
|
14846
|
+
throw Bi(or.INVALID_ARGUMENT);
|
|
14847
14847
|
const a = e;
|
|
14848
14848
|
return Be(n) ? i.key = n : St(n) && Object.keys(n).forEach((l) => {
|
|
14849
14849
|
W5.includes(l) ? s[l] = n[l] : i[l] = n[l];
|
|
@@ -14883,11 +14883,11 @@ function H$(t = {}) {
|
|
|
14883
14883
|
const [S, _] = C;
|
|
14884
14884
|
let k = "text", T = "";
|
|
14885
14885
|
C.length === 1 ? Pt(S) ? (T = S.modifier || T, k = S.type || k) : Be(S) && (T = S || T) : C.length === 2 && (Be(S) && (T = S || T), Be(_) && (k = _ || k));
|
|
14886
|
-
const A = d(x, !0)(w),
|
|
14886
|
+
const A = d(x, !0)(w), D = (
|
|
14887
14887
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
14888
14888
|
k === "vnode" && vn(A) && T ? A[0] : A
|
|
14889
14889
|
);
|
|
14890
|
-
return T ? p(T)(
|
|
14890
|
+
return T ? p(T)(D, k) : D;
|
|
14891
14891
|
},
|
|
14892
14892
|
message: d,
|
|
14893
14893
|
type: g,
|
|
@@ -14913,10 +14913,10 @@ function W4(t, ...e) {
|
|
|
14913
14913
|
let T = !1;
|
|
14914
14914
|
const A = () => {
|
|
14915
14915
|
T = !0;
|
|
14916
|
-
},
|
|
14916
|
+
}, D = po(_) ? _ : q5(t, l, C, _, k, A);
|
|
14917
14917
|
if (T)
|
|
14918
14918
|
return _;
|
|
14919
|
-
const I = j$(t, C, S, u), B = H$(I), V = V$(t,
|
|
14919
|
+
const I = j$(t, C, S, u), B = H$(I), V = V$(t, D, B), ee = r ? r(V, l) : V;
|
|
14920
14920
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
14921
14921
|
const he = {
|
|
14922
14922
|
timestamp: Date.now(),
|
|
@@ -15023,7 +15023,7 @@ function V$(t, e, n) {
|
|
|
15023
15023
|
function Y1(...t) {
|
|
15024
15024
|
const [e, n, r] = t, o = Yt();
|
|
15025
15025
|
if (!Be(e) && !On(e) && !po(e) && !Ls(e))
|
|
15026
|
-
throw Bi(
|
|
15026
|
+
throw Bi(or.INVALID_ARGUMENT);
|
|
15027
15027
|
const i = On(e) ? String(e) : (po(e), e);
|
|
15028
15028
|
return On(n) ? o.plural = n : Be(n) ? o.default = n : St(n) && !Eh(n) ? o.named = n : vn(n) && (o.list = n), On(r) ? o.plural = r : Be(r) ? o.default = r : St(r) && Bn(o, r), [i, o];
|
|
15029
15029
|
}
|
|
@@ -15305,7 +15305,7 @@ function Y5(t, e, n) {
|
|
|
15305
15305
|
}
|
|
15306
15306
|
}
|
|
15307
15307
|
function j4(t) {
|
|
15308
|
-
return
|
|
15308
|
+
return P(HR, null, t, 0);
|
|
15309
15309
|
}
|
|
15310
15310
|
const q4 = "__INTLIFY_META__", K4 = () => [], oH = () => !1;
|
|
15311
15311
|
let G4 = 0;
|
|
@@ -15871,9 +15871,9 @@ function yH(t) {
|
|
|
15871
15871
|
let g = t.messages;
|
|
15872
15872
|
if (St(t.sharedMessages)) {
|
|
15873
15873
|
const k = t.sharedMessages;
|
|
15874
|
-
g = Object.keys(k).reduce((A,
|
|
15875
|
-
const I = A[
|
|
15876
|
-
return Bn(I, k[
|
|
15874
|
+
g = Object.keys(k).reduce((A, D) => {
|
|
15875
|
+
const I = A[D] || (A[D] = {});
|
|
15876
|
+
return Bn(I, k[D]), A;
|
|
15877
15877
|
}, g || {});
|
|
15878
15878
|
}
|
|
15879
15879
|
const { __i18n: y, __root: w, __injectWithOption: x } = t, C = t.datetimeFormats, S = t.numberFormats, _ = t.flatJson;
|
|
@@ -16632,7 +16632,7 @@ const HH = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden"
|
|
|
16632
16632
|
}), i = sn(o, r);
|
|
16633
16633
|
return (s, a) => (N(), $(b(oP), null, {
|
|
16634
16634
|
default: M(() => [
|
|
16635
|
-
|
|
16635
|
+
P(b(aP), Se({ ...b(i), ...s.$attrs }, {
|
|
16636
16636
|
class: b(Qe)(
|
|
16637
16637
|
"z-50 w-72 rounded-md border bg-ed-popover p-4 text-ed-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
16638
16638
|
n.class
|
|
@@ -16916,7 +16916,7 @@ const o6 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, i6 = T5, Y
|
|
|
16916
16916
|
}), i = sn(o, r);
|
|
16917
16917
|
return (s, a) => (N(), $(b(mB), null, {
|
|
16918
16918
|
default: M(() => [
|
|
16919
|
-
|
|
16919
|
+
P(b(hB), Se({ ...b(i), ...s.$attrs }, {
|
|
16920
16920
|
class: b(Qe)(
|
|
16921
16921
|
"z-50 overflow-hidden rounded-md bg-ed-primary px-3 py-1.5 text-xs text-ed-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
16922
16922
|
n.class
|
|
@@ -17739,7 +17739,7 @@ function Sz(t, e, n, r) {
|
|
|
17739
17739
|
T.status === "pending" && (T.status = "aborted");
|
|
17740
17740
|
}), h = [];
|
|
17741
17741
|
}
|
|
17742
|
-
function _(T, A,
|
|
17742
|
+
function _(T, A, D) {
|
|
17743
17743
|
const I = A !== "success";
|
|
17744
17744
|
switch (h = h.filter((B) => B !== T), l) {
|
|
17745
17745
|
case "pending":
|
|
@@ -17752,11 +17752,11 @@ function Sz(t, e, n, r) {
|
|
|
17752
17752
|
return;
|
|
17753
17753
|
}
|
|
17754
17754
|
if (A === "abort") {
|
|
17755
|
-
d =
|
|
17755
|
+
d = D, C();
|
|
17756
17756
|
return;
|
|
17757
17757
|
}
|
|
17758
17758
|
if (I) {
|
|
17759
|
-
d =
|
|
17759
|
+
d = D, h.length || (s.length ? k() : C());
|
|
17760
17760
|
return;
|
|
17761
17761
|
}
|
|
17762
17762
|
if (g(), S(), !t.random) {
|
|
@@ -17764,7 +17764,7 @@ function Sz(t, e, n, r) {
|
|
|
17764
17764
|
B !== -1 && B !== t.index && (t.index = B);
|
|
17765
17765
|
}
|
|
17766
17766
|
l = "completed", m.forEach((B) => {
|
|
17767
|
-
B(
|
|
17767
|
+
B(D);
|
|
17768
17768
|
});
|
|
17769
17769
|
}
|
|
17770
17770
|
function k() {
|
|
@@ -17785,8 +17785,8 @@ function Sz(t, e, n, r) {
|
|
|
17785
17785
|
const A = {
|
|
17786
17786
|
status: "pending",
|
|
17787
17787
|
resource: T,
|
|
17788
|
-
callback: (
|
|
17789
|
-
_(A,
|
|
17788
|
+
callback: (D, I) => {
|
|
17789
|
+
_(A, D, I);
|
|
17790
17790
|
}
|
|
17791
17791
|
};
|
|
17792
17792
|
h.push(A), u++, p = setTimeout(k, t.rotate), n(T, e, A.callback);
|
|
@@ -18432,15 +18432,15 @@ const Uz = { key: 0 }, Wz = {
|
|
|
18432
18432
|
setup(t) {
|
|
18433
18433
|
return (e, n) => (N(), $(b(iu), null, {
|
|
18434
18434
|
default: M(() => [
|
|
18435
|
-
|
|
18435
|
+
P(b(ru), { "delay-duration": 0 }, {
|
|
18436
18436
|
default: M(() => [
|
|
18437
|
-
|
|
18437
|
+
P(b(ou), {
|
|
18438
18438
|
class: ut(e.customClassTooltip)
|
|
18439
18439
|
}, {
|
|
18440
18440
|
default: M(() => {
|
|
18441
18441
|
var r;
|
|
18442
18442
|
return [
|
|
18443
|
-
|
|
18443
|
+
P(b(o_), {
|
|
18444
18444
|
id: `action-btn-${e.id}`,
|
|
18445
18445
|
size: "sm",
|
|
18446
18446
|
class: ut(["h-[32px]", b(Qe)([e.customClass], { hidden: e.hidden })]),
|
|
@@ -18450,7 +18450,7 @@ const Uz = { key: 0 }, Wz = {
|
|
|
18450
18450
|
}, {
|
|
18451
18451
|
default: M(() => [
|
|
18452
18452
|
e.loading ? (N(), xe("div", Uz, [
|
|
18453
|
-
|
|
18453
|
+
P(b(hn), {
|
|
18454
18454
|
class: "animate-spin",
|
|
18455
18455
|
name: "LoaderCircle"
|
|
18456
18456
|
})
|
|
@@ -23715,7 +23715,7 @@ function GV(t, e, n) {
|
|
|
23715
23715
|
}
|
|
23716
23716
|
const ii = typeof navigator < "u" ? navigator : null, $6 = typeof document < "u" ? document : null, Ws = ii && ii.userAgent || "", bg = /Edge\/(\d+)/.exec(Ws), Q_ = /MSIE \d/.exec(Ws), vg = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ws), Rr = !!(Q_ || vg || bg), ks = Q_ ? document.documentMode : vg ? +vg[1] : bg ? +bg[1] : 0, zo = !Rr && /gecko\/(\d+)/i.test(Ws);
|
|
23717
23717
|
zo && +(/Firefox\/(\d+)/.exec(Ws) || [0, 0])[1];
|
|
23718
|
-
const yg = !Rr && /Chrome\/(\d+)/.exec(Ws),
|
|
23718
|
+
const yg = !Rr && /Chrome\/(\d+)/.exec(Ws), sr = !!yg, eE = yg ? +yg[1] : 0, vr = !Rr && !!ii && /Apple Computer/.test(ii.vendor), Hl = vr && (/Mobile\/\w+/.test(Ws) || !!ii && ii.maxTouchPoints > 2), fo = Hl || (ii ? /Mac/.test(ii.platform) : !1), JV = ii ? /Win/.test(ii.platform) : !1, Fi = /Android \d/.test(Ws), Zc = !!$6 && "webkitFontSmoothing" in $6.documentElement.style, XV = Zc ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
23719
23719
|
function YV(t) {
|
|
23720
23720
|
let e = t.defaultView && t.defaultView.visualViewport;
|
|
23721
23721
|
return e ? {
|
|
@@ -24931,7 +24931,7 @@ class mU {
|
|
|
24931
24931
|
for (; e instanceof Oa; )
|
|
24932
24932
|
n = e, e = n.children[n.children.length - 1];
|
|
24933
24933
|
(!e || // Empty textblock
|
|
24934
|
-
!(e instanceof Dh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((vr ||
|
|
24934
|
+
!(e instanceof Dh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((vr || sr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
24935
24935
|
}
|
|
24936
24936
|
addHackNode(e, n) {
|
|
24937
24937
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -25107,7 +25107,7 @@ function fE(t) {
|
|
|
25107
25107
|
function Ui(t, e = !1) {
|
|
25108
25108
|
let n = t.state.selection;
|
|
25109
25109
|
if (pE(t, n), !!fE(t)) {
|
|
25110
|
-
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault &&
|
|
25110
|
+
if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && sr) {
|
|
25111
25111
|
let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
|
|
25112
25112
|
if (r.anchorNode && o.anchorNode && Aa(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
|
|
25113
25113
|
t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
|
|
@@ -25123,7 +25123,7 @@ function Ui(t, e = !1) {
|
|
|
25123
25123
|
t.domObserver.setCurSelection(), t.domObserver.connectSelection();
|
|
25124
25124
|
}
|
|
25125
25125
|
}
|
|
25126
|
-
const G6 = vr ||
|
|
25126
|
+
const G6 = vr || sr && eE < 63;
|
|
25127
25127
|
function J6(t, e) {
|
|
25128
25128
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
|
|
25129
25129
|
if (vr && o && o.contentEditable == "false")
|
|
@@ -25351,7 +25351,7 @@ function Eg(t, e, n) {
|
|
|
25351
25351
|
}
|
|
25352
25352
|
function e8(t, e) {
|
|
25353
25353
|
let n = t.state.doc.resolve(e);
|
|
25354
|
-
if (!(
|
|
25354
|
+
if (!(sr || JV) && n.parent.inlineContent) {
|
|
25355
25355
|
let o = t.coordsAtPos(e);
|
|
25356
25356
|
if (e > n.start()) {
|
|
25357
25357
|
let i = t.coordsAtPos(e - 1), s = (i.top + i.bottom) / 2;
|
|
@@ -25604,7 +25604,7 @@ function IU(t) {
|
|
|
25604
25604
|
return n;
|
|
25605
25605
|
}
|
|
25606
25606
|
function DU(t) {
|
|
25607
|
-
let e = t.querySelectorAll(
|
|
25607
|
+
let e = t.querySelectorAll(sr ? "span:not([class]):not([style])" : "span.Apple-converted-space");
|
|
25608
25608
|
for (let n = 0; n < e.length; n++) {
|
|
25609
25609
|
let r = e[n];
|
|
25610
25610
|
r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
|
|
@@ -25679,7 +25679,7 @@ function VU(t, e) {
|
|
|
25679
25679
|
}
|
|
25680
25680
|
wr.keydown = (t, e) => {
|
|
25681
25681
|
let n = e;
|
|
25682
|
-
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !EE(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Fi &&
|
|
25682
|
+
if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !EE(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Fi && sr && n.keyCode == 13)))
|
|
25683
25683
|
if (n.keyCode != 229 && t.domObserver.forceFlush(), Hl && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
|
|
25684
25684
|
let r = Date.now();
|
|
25685
25685
|
t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
|
|
@@ -25823,7 +25823,7 @@ class XU {
|
|
|
25823
25823
|
// (hidden) cursor is doesn't change the selection, and
|
|
25824
25824
|
// thus doesn't get a reaction from ProseMirror. This
|
|
25825
25825
|
// works around that.
|
|
25826
|
-
|
|
25826
|
+
sr && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Al(this.view, Ye.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Cs(this.view, "pointer");
|
|
25827
25827
|
}
|
|
25828
25828
|
move(e) {
|
|
25829
25829
|
this.updateAllowDefault(e), Cs(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -25983,7 +25983,7 @@ yr.dragstart = (t, e) => {
|
|
|
25983
25983
|
}
|
|
25984
25984
|
}
|
|
25985
25985
|
let a = (s || t.state.selection).content(), { dom: l, text: u, slice: d } = u2(t, a);
|
|
25986
|
-
(!n.dataTransfer.files.length || !
|
|
25986
|
+
(!n.dataTransfer.files.length || !sr || eE > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Oc ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Oc || n.dataTransfer.setData("text/plain", u), t.dragging = new kE(d, !n[AE], s);
|
|
25987
25987
|
};
|
|
25988
25988
|
yr.dragend = (t) => {
|
|
25989
25989
|
let e = t.dragging;
|
|
@@ -26040,7 +26040,7 @@ yr.blur = (t, e) => {
|
|
|
26040
26040
|
t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
|
|
26041
26041
|
};
|
|
26042
26042
|
yr.beforeinput = (t, e) => {
|
|
26043
|
-
if (
|
|
26043
|
+
if (sr && Fi && e.inputType == "deleteContentBackward") {
|
|
26044
26044
|
t.domObserver.flushSoon();
|
|
26045
26045
|
let { domChangeCount: r } = t.input;
|
|
26046
26046
|
setTimeout(() => {
|
|
@@ -26208,7 +26208,7 @@ class It {
|
|
|
26208
26208
|
you must make a copy if you want need to preserve that.
|
|
26209
26209
|
*/
|
|
26210
26210
|
static create(e, n) {
|
|
26211
|
-
return n.length ? fp(n, e, 0, ga) :
|
|
26211
|
+
return n.length ? fp(n, e, 0, ga) : nr;
|
|
26212
26212
|
}
|
|
26213
26213
|
/**
|
|
26214
26214
|
Find all decorations in this set which touch the given range
|
|
@@ -26238,7 +26238,7 @@ class It {
|
|
|
26238
26238
|
document.
|
|
26239
26239
|
*/
|
|
26240
26240
|
map(e, n, r) {
|
|
26241
|
-
return this ==
|
|
26241
|
+
return this == nr || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || ga);
|
|
26242
26242
|
}
|
|
26243
26243
|
/**
|
|
26244
26244
|
@internal
|
|
@@ -26249,7 +26249,7 @@ class It {
|
|
|
26249
26249
|
let l = this.local[a].map(e, r, o);
|
|
26250
26250
|
l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
|
|
26251
26251
|
}
|
|
26252
|
-
return this.children.length ? rW(this.children, s || [], e, n, r, o, i) : s ? new It(s.sort(ba), yl) :
|
|
26252
|
+
return this.children.length ? rW(this.children, s || [], e, n, r, o, i) : s ? new It(s.sort(ba), yl) : nr;
|
|
26253
26253
|
}
|
|
26254
26254
|
/**
|
|
26255
26255
|
Add the given array of decorations to the ones in the set,
|
|
@@ -26258,7 +26258,7 @@ class It {
|
|
|
26258
26258
|
structure.
|
|
26259
26259
|
*/
|
|
26260
26260
|
add(e, n) {
|
|
26261
|
-
return n.length ? this ==
|
|
26261
|
+
return n.length ? this == nr ? It.create(e, n) : this.addInner(e, n, 0) : this;
|
|
26262
26262
|
}
|
|
26263
26263
|
addInner(e, n, r) {
|
|
26264
26264
|
let o, i = 0;
|
|
@@ -26280,7 +26280,7 @@ class It {
|
|
|
26280
26280
|
the ones in the given array.
|
|
26281
26281
|
*/
|
|
26282
26282
|
remove(e) {
|
|
26283
|
-
return e.length == 0 || this ==
|
|
26283
|
+
return e.length == 0 || this == nr ? this : this.removeInner(e, 0);
|
|
26284
26284
|
}
|
|
26285
26285
|
removeInner(e, n) {
|
|
26286
26286
|
let r = this.children, o = this.local;
|
|
@@ -26292,7 +26292,7 @@ class It {
|
|
|
26292
26292
|
continue;
|
|
26293
26293
|
r == this.children && (r = this.children.slice());
|
|
26294
26294
|
let u = r[i + 2].removeInner(s, a + 1);
|
|
26295
|
-
u !=
|
|
26295
|
+
u != nr ? r[i + 2] = u : (r.splice(i, 3), i -= 3);
|
|
26296
26296
|
}
|
|
26297
26297
|
if (o.length) {
|
|
26298
26298
|
for (let i = 0, s; i < e.length; i++)
|
|
@@ -26300,10 +26300,10 @@ class It {
|
|
|
26300
26300
|
for (let a = 0; a < o.length; a++)
|
|
26301
26301
|
o[a].eq(s, n) && (o == this.local && (o = this.local.slice()), o.splice(a--, 1));
|
|
26302
26302
|
}
|
|
26303
|
-
return r == this.children && o == this.local ? this : o.length || r.length ? new It(o, r) :
|
|
26303
|
+
return r == this.children && o == this.local ? this : o.length || r.length ? new It(o, r) : nr;
|
|
26304
26304
|
}
|
|
26305
26305
|
forChild(e, n) {
|
|
26306
|
-
if (this ==
|
|
26306
|
+
if (this == nr)
|
|
26307
26307
|
return this;
|
|
26308
26308
|
if (n.isLeaf)
|
|
26309
26309
|
return It.empty;
|
|
@@ -26325,7 +26325,7 @@ class It {
|
|
|
26325
26325
|
let a = new It(o.sort(ba), yl);
|
|
26326
26326
|
return r ? new bs([a, r]) : a;
|
|
26327
26327
|
}
|
|
26328
|
-
return r ||
|
|
26328
|
+
return r || nr;
|
|
26329
26329
|
}
|
|
26330
26330
|
/**
|
|
26331
26331
|
@internal
|
|
@@ -26353,7 +26353,7 @@ class It {
|
|
|
26353
26353
|
@internal
|
|
26354
26354
|
*/
|
|
26355
26355
|
localsInner(e) {
|
|
26356
|
-
if (this ==
|
|
26356
|
+
if (this == nr)
|
|
26357
26357
|
return yl;
|
|
26358
26358
|
if (e.inlineContent || !this.local.some(Os.is))
|
|
26359
26359
|
return this.local;
|
|
@@ -26368,7 +26368,7 @@ class It {
|
|
|
26368
26368
|
}
|
|
26369
26369
|
It.empty = new It([], []);
|
|
26370
26370
|
It.removeOverlap = h2;
|
|
26371
|
-
const
|
|
26371
|
+
const nr = It.empty;
|
|
26372
26372
|
class bs {
|
|
26373
26373
|
constructor(e) {
|
|
26374
26374
|
this.members = e;
|
|
@@ -26383,7 +26383,7 @@ class bs {
|
|
|
26383
26383
|
let r = [];
|
|
26384
26384
|
for (let o = 0; o < this.members.length; o++) {
|
|
26385
26385
|
let i = this.members[o].forChild(e, n);
|
|
26386
|
-
i !=
|
|
26386
|
+
i != nr && (i instanceof bs ? r = r.concat(i.members) : r.push(i));
|
|
26387
26387
|
}
|
|
26388
26388
|
return bs.from(r);
|
|
26389
26389
|
}
|
|
@@ -26415,7 +26415,7 @@ class bs {
|
|
|
26415
26415
|
static from(e) {
|
|
26416
26416
|
switch (e.length) {
|
|
26417
26417
|
case 0:
|
|
26418
|
-
return
|
|
26418
|
+
return nr;
|
|
26419
26419
|
case 1:
|
|
26420
26420
|
return e[0];
|
|
26421
26421
|
default:
|
|
@@ -26458,7 +26458,7 @@ function rW(t, e, n, r, o, i, s) {
|
|
|
26458
26458
|
let h = n.map(t[u + 1] + i, -1), m = h - o, { index: g, offset: y } = r.content.findIndex(p), w = r.maybeChild(g);
|
|
26459
26459
|
if (w && y == p && y + w.nodeSize == m) {
|
|
26460
26460
|
let x = a[u + 2].mapInner(n, w, d + 1, t[u] + i + 1, s);
|
|
26461
|
-
x !=
|
|
26461
|
+
x != nr ? (a[u] = p, a[u + 1] = m, a[u + 2] = x) : (a[u + 1] = -2, l = !0);
|
|
26462
26462
|
} else
|
|
26463
26463
|
l = !0;
|
|
26464
26464
|
}
|
|
@@ -26520,13 +26520,13 @@ function fp(t, e, n, r) {
|
|
|
26520
26520
|
if (u) {
|
|
26521
26521
|
i = !0;
|
|
26522
26522
|
let d = fp(u, a, n + l + 1, r);
|
|
26523
|
-
d !=
|
|
26523
|
+
d != nr && o.push(l, l + a.nodeSize, d);
|
|
26524
26524
|
}
|
|
26525
26525
|
});
|
|
26526
26526
|
let s = OE(i ? NE(t) : t, -n).sort(ba);
|
|
26527
26527
|
for (let a = 0; a < s.length; a++)
|
|
26528
26528
|
s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
|
|
26529
|
-
return s.length || o.length ? new It(s, o) :
|
|
26529
|
+
return s.length || o.length ? new It(s, o) : nr;
|
|
26530
26530
|
}
|
|
26531
26531
|
function ba(t, e) {
|
|
26532
26532
|
return t.from - e.from || t.to - e.to;
|
|
@@ -26558,7 +26558,7 @@ function Zm(t) {
|
|
|
26558
26558
|
let e = [];
|
|
26559
26559
|
return t.someProp("decorations", (n) => {
|
|
26560
26560
|
let r = n(t.state);
|
|
26561
|
-
r && r !=
|
|
26561
|
+
r && r != nr && e.push(r);
|
|
26562
26562
|
}), t.cursorWrapper && e.push(It.create(t.state.doc, [t.cursorWrapper.deco])), bs.from(e);
|
|
26563
26563
|
}
|
|
26564
26564
|
const iW = {
|
|
@@ -26759,7 +26759,7 @@ function dW(t, e) {
|
|
|
26759
26759
|
}
|
|
26760
26760
|
function fW(t, e, n) {
|
|
26761
26761
|
let { node: r, fromOffset: o, toOffset: i, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), u, d = l.anchorNode;
|
|
26762
|
-
if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], Ih(l) || u.push({ node: l.focusNode, offset: l.focusOffset })),
|
|
26762
|
+
if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], Ih(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), sr && t.input.lastKeyCode === 8)
|
|
26763
26763
|
for (let w = i; w > o; w--) {
|
|
26764
26764
|
let x = r.childNodes[w - 1], C = x.pmViewDesc;
|
|
26765
26765
|
if (x.nodeName == "BR" && !C) {
|
|
@@ -26806,7 +26806,7 @@ function mW(t, e, n, r, o) {
|
|
|
26806
26806
|
if (t.input.compositionPendingChanges = 0, e < 0) {
|
|
26807
26807
|
let I = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, B = a2(t, I);
|
|
26808
26808
|
if (B && !t.state.selection.eq(B)) {
|
|
26809
|
-
if (
|
|
26809
|
+
if (sr && Fi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (ee) => ee(t, aa(13, "Enter"))))
|
|
26810
26810
|
return;
|
|
26811
26811
|
let V = t.state.tr.setSelection(B);
|
|
26812
26812
|
I == "pointer" ? V.setMeta("pointer", !0) : I == "key" && V.scrollIntoView(), i && V.setMeta("composition", i), t.dispatch(V);
|
|
@@ -26842,23 +26842,23 @@ function mW(t, e, n, r, o) {
|
|
|
26842
26842
|
return;
|
|
26843
26843
|
}
|
|
26844
26844
|
if (t.state.selection.anchor > g.start && bW(d, g.start, g.endA, y, w) && t.someProp("handleKeyDown", (I) => I(t, aa(8, "Backspace")))) {
|
|
26845
|
-
Fi &&
|
|
26845
|
+
Fi && sr && t.domObserver.suppressSelectionUpdates();
|
|
26846
26846
|
return;
|
|
26847
26847
|
}
|
|
26848
|
-
|
|
26848
|
+
sr && g.endB == g.start && (t.input.lastChromeDelete = Date.now()), Fi && !C && y.start() != w.start() && w.parentOffset == 0 && y.depth == w.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == g.endA && (g.endB -= 2, w = u.doc.resolveNoCache(g.endB - u.from), setTimeout(() => {
|
|
26849
26849
|
t.someProp("handleKeyDown", function(I) {
|
|
26850
26850
|
return I(t, aa(13, "Enter"));
|
|
26851
26851
|
});
|
|
26852
26852
|
}, 20));
|
|
26853
|
-
let _ = g.start, k = g.endA, T, A,
|
|
26853
|
+
let _ = g.start, k = g.endA, T, A, D;
|
|
26854
26854
|
if (C) {
|
|
26855
26855
|
if (y.pos == w.pos)
|
|
26856
26856
|
Rr && ks <= 11 && y.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Ui(t), 20)), T = t.state.tr.delete(_, k), A = d.resolve(g.start).marksAcross(d.resolve(g.endA));
|
|
26857
26857
|
else if (
|
|
26858
26858
|
// Adding or removing a mark
|
|
26859
|
-
g.endA == g.endB && (
|
|
26859
|
+
g.endA == g.endB && (D = gW(y.parent.content.cut(y.parentOffset, w.parentOffset), x.parent.content.cut(x.parentOffset, g.endA - x.start())))
|
|
26860
26860
|
)
|
|
26861
|
-
T = t.state.tr,
|
|
26861
|
+
T = t.state.tr, D.type == "add" ? T.addMark(_, k, D.mark) : T.removeMark(_, k, D.mark);
|
|
26862
26862
|
else if (y.parent.child(y.index()).isText && y.index() == w.index() - (w.textOffset ? 0 : 1)) {
|
|
26863
26863
|
let I = y.parent.textBetween(y.parentOffset, w.parentOffset);
|
|
26864
26864
|
if (t.someProp("handleTextInput", (B) => B(t, _, k, I)))
|
|
@@ -26868,7 +26868,7 @@ function mW(t, e, n, r, o) {
|
|
|
26868
26868
|
}
|
|
26869
26869
|
if (T || (T = t.state.tr.replace(_, k, u.doc.slice(g.start - u.from, g.endB - u.from))), u.sel) {
|
|
26870
26870
|
let I = c8(t, T.doc, u.sel);
|
|
26871
|
-
I && !(
|
|
26871
|
+
I && !(sr && t.composing && I.empty && (g.start != g.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == _ || I.head == T.mapping.map(k) - 1) || Rr && I.empty && I.head == _) && T.setSelection(I);
|
|
26872
26872
|
}
|
|
26873
26873
|
A && T.ensureMarks(A), i && T.setMeta("composition", i), t.dispatch(T.scrollIntoView());
|
|
26874
26874
|
}
|
|
@@ -27022,9 +27022,9 @@ class yW {
|
|
|
27022
27022
|
let h = d == "preserve" && s && this.dom.style.overflowAnchor == null && QV(this);
|
|
27023
27023
|
if (s) {
|
|
27024
27024
|
this.domObserver.stop();
|
|
27025
|
-
let m = p && (Rr ||
|
|
27025
|
+
let m = p && (Rr || sr) && !this.composing && !o.selection.empty && !e.selection.empty && wW(o.selection, e.selection);
|
|
27026
27026
|
if (p) {
|
|
27027
|
-
let g =
|
|
27027
|
+
let g = sr ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
27028
27028
|
this.composing && (this.input.compositionNode = ZU(this)), (i || !this.docView.update(e.doc, u, l, this)) && (this.docView.updateOuterDeco(u), this.docView.destroy(), this.docView = q6(e.doc, u, l, this.dom, this)), g && !this.trackWrites && (m = !0);
|
|
27029
27029
|
}
|
|
27030
27030
|
m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && EU(this)) ? Ui(this, m) : (pE(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
@@ -28587,13 +28587,13 @@ function uj(t) {
|
|
|
28587
28587
|
if (C) {
|
|
28588
28588
|
let { text: k } = x;
|
|
28589
28589
|
typeof k == "string" ? k = k : k = w2(ye.from(k), m.schema);
|
|
28590
|
-
const { from: T } = x, A = T + k.length,
|
|
28590
|
+
const { from: T } = x, A = T + k.length, D = lj(k);
|
|
28591
28591
|
return l({
|
|
28592
28592
|
rule: d,
|
|
28593
28593
|
state: m,
|
|
28594
28594
|
from: T,
|
|
28595
28595
|
to: { b: A },
|
|
28596
|
-
pasteEvt:
|
|
28596
|
+
pasteEvt: D
|
|
28597
28597
|
});
|
|
28598
28598
|
}
|
|
28599
28599
|
const S = h.doc.content.findDiffStart(m.doc.content), _ = h.doc.content.findDiffEnd(m.doc.content);
|
|
@@ -29594,8 +29594,8 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29594
29594
|
if (o) {
|
|
29595
29595
|
let x = ye.empty;
|
|
29596
29596
|
const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
29597
|
-
for (let
|
|
29598
|
-
x = ye.from(l.node(
|
|
29597
|
+
for (let D = l.depth - C; D >= l.depth - 3; D -= 1)
|
|
29598
|
+
x = ye.from(l.node(D).copy(x));
|
|
29599
29599
|
const S = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, _ = {
|
|
29600
29600
|
...Bf(h, l.node().type.name, l.node().attrs),
|
|
29601
29601
|
...e
|
|
@@ -29604,10 +29604,10 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29604
29604
|
const T = l.before(l.depth - (C - 1));
|
|
29605
29605
|
n.replace(T, l.after(-S), new Ne(x, 4 - C, 0));
|
|
29606
29606
|
let A = -1;
|
|
29607
|
-
n.doc.nodesBetween(T, n.doc.content.size, (
|
|
29607
|
+
n.doc.nodesBetween(T, n.doc.content.size, (D, I) => {
|
|
29608
29608
|
if (A > -1)
|
|
29609
29609
|
return !1;
|
|
29610
|
-
|
|
29610
|
+
D.isTextblock && D.content.size === 0 && (A = I + 1);
|
|
29611
29611
|
}), A > -1 && n.setSelection(Ke.near(n.doc.resolve(A))), n.scrollIntoView();
|
|
29612
29612
|
}
|
|
29613
29613
|
return !0;
|
|
@@ -29664,7 +29664,7 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
29664
29664
|
return l().command(() => (i.setNodeMarkup(k.pos, m), !0)).command(() => r1(i, m)).command(() => o1(i, m)).run();
|
|
29665
29665
|
}
|
|
29666
29666
|
return !n || !_ || !a ? l().command(() => d().wrapInList(m, r) ? !0 : u.clearNodes()).wrapInList(m, r).command(() => r1(i, m)).command(() => o1(i, m)).run() : l().command(() => {
|
|
29667
|
-
const T = d().wrapInList(m, r), A = _.filter((
|
|
29667
|
+
const T = d().wrapInList(m, r), A = _.filter((D) => h.includes(D.type.name));
|
|
29668
29668
|
return i.ensureMarks(A), T ? !0 : u.clearNodes();
|
|
29669
29669
|
}).wrapInList(m, r).command(() => r1(i, m)).command(() => o1(i, m)).run();
|
|
29670
29670
|
}, gq = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
|
|
@@ -30969,8 +30969,8 @@ var eK = function(e, n) {
|
|
|
30969
30969
|
function tK(t) {
|
|
30970
30970
|
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = ri(n.placement), l = M2(a), u = [Ir, xo].indexOf(a) >= 0, d = u ? "height" : "width";
|
|
30971
30971
|
if (!(!i || !s)) {
|
|
30972
|
-
var p = eK(o.padding, n), h = O2(i), m = l === "y" ? Lr : Ir, g = l === "y" ? wo : xo, y = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], w = s[l] - n.rects.reference[l], x = nd(i), C = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, S = y / 2 - w / 2, _ = p[m], k = C - h[d] - p[g], T = C / 2 - h[d] / 2 + S, A = ec(_, T, k),
|
|
30973
|
-
n.modifiersData[r] = (e = {}, e[
|
|
30972
|
+
var p = eK(o.padding, n), h = O2(i), m = l === "y" ? Lr : Ir, g = l === "y" ? wo : xo, y = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], w = s[l] - n.rects.reference[l], x = nd(i), C = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, S = y / 2 - w / 2, _ = p[m], k = C - h[d] - p[g], T = C / 2 - h[d] / 2 + S, A = ec(_, T, k), D = l;
|
|
30973
|
+
n.modifiersData[r] = (e = {}, e[D] = A, e.centerOffset = A - T, e);
|
|
30974
30974
|
}
|
|
30975
30975
|
}
|
|
30976
30976
|
function nK(t) {
|
|
@@ -31013,8 +31013,8 @@ function T8(t) {
|
|
|
31013
31013
|
m = w.x, y = w.y;
|
|
31014
31014
|
var x = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), S = Ir, _ = Lr, k = window;
|
|
31015
31015
|
if (u) {
|
|
31016
|
-
var T = nd(n), A = "clientHeight",
|
|
31017
|
-
if (T === Qr(n) && (T = qs(n), qi(T).position !== "static" && a === "absolute" && (A = "scrollHeight",
|
|
31016
|
+
var T = nd(n), A = "clientHeight", D = "clientWidth";
|
|
31017
|
+
if (T === Qr(n) && (T = qs(n), qi(T).position !== "static" && a === "absolute" && (A = "scrollHeight", D = "scrollWidth")), T = T, o === Lr || (o === Ir || o === xo) && i === Lc) {
|
|
31018
31018
|
_ = wo;
|
|
31019
31019
|
var I = p && T === k && k.visualViewport ? k.visualViewport.height : (
|
|
31020
31020
|
// $FlowFixMe[prop-missing]
|
|
@@ -31026,7 +31026,7 @@ function T8(t) {
|
|
|
31026
31026
|
S = xo;
|
|
31027
31027
|
var B = p && T === k && k.visualViewport ? k.visualViewport.width : (
|
|
31028
31028
|
// $FlowFixMe[prop-missing]
|
|
31029
|
-
T[
|
|
31029
|
+
T[D]
|
|
31030
31030
|
);
|
|
31031
31031
|
m -= B - r.width, m *= l ? 1 : -1;
|
|
31032
31032
|
}
|
|
@@ -31248,7 +31248,7 @@ function Ic(t, e) {
|
|
|
31248
31248
|
reference: T,
|
|
31249
31249
|
element: S,
|
|
31250
31250
|
placement: o
|
|
31251
|
-
}),
|
|
31251
|
+
}), D = Ig(Object.assign({}, S, A)), I = h === Hu ? D : T, B = {
|
|
31252
31252
|
top: k.top - I.top + x.top,
|
|
31253
31253
|
bottom: I.bottom - k.bottom + x.bottom,
|
|
31254
31254
|
left: k.left - I.left + x.left,
|
|
@@ -31301,7 +31301,7 @@ function yK(t) {
|
|
|
31301
31301
|
flipVariations: g,
|
|
31302
31302
|
allowedAutoPlacements: y
|
|
31303
31303
|
}) : Ue);
|
|
31304
|
-
}, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(),
|
|
31304
|
+
}, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(), D = !0, I = _[0], B = 0; B < _.length; B++) {
|
|
31305
31305
|
var V = _[B], ee = ri(V), he = ql(V) === Ul, Oe = [Lr, wo].indexOf(ee) >= 0, q = Oe ? "width" : "height", G = Ic(e, {
|
|
31306
31306
|
placement: V,
|
|
31307
31307
|
boundary: d,
|
|
@@ -31314,12 +31314,12 @@ function yK(t) {
|
|
|
31314
31314
|
if (i && ie.push(G[ee] <= 0), a && ie.push(G[F] <= 0, G[Q] <= 0), ie.every(function(ct) {
|
|
31315
31315
|
return ct;
|
|
31316
31316
|
})) {
|
|
31317
|
-
I = V,
|
|
31317
|
+
I = V, D = !1;
|
|
31318
31318
|
break;
|
|
31319
31319
|
}
|
|
31320
31320
|
A.set(V, ie);
|
|
31321
31321
|
}
|
|
31322
|
-
if (
|
|
31322
|
+
if (D)
|
|
31323
31323
|
for (var ce = g ? 3 : 1, fe = function(Ue) {
|
|
31324
31324
|
var ke = _.find(function(X) {
|
|
31325
31325
|
var re = A.get(X);
|
|
@@ -31435,7 +31435,7 @@ function OK(t) {
|
|
|
31435
31435
|
rootBoundary: u,
|
|
31436
31436
|
padding: p,
|
|
31437
31437
|
altBoundary: d
|
|
31438
|
-
}), x = ri(e.placement), C = ql(e.placement), S = !C, _ = M2(x), k = AK(_), T = e.modifiersData.popperOffsets, A = e.rects.reference,
|
|
31438
|
+
}), x = ri(e.placement), C = ql(e.placement), S = !C, _ = M2(x), k = AK(_), T = e.modifiersData.popperOffsets, A = e.rects.reference, D = e.rects.popper, I = typeof y == "function" ? y(Object.assign({}, e.rects, {
|
|
31439
31439
|
placement: e.placement
|
|
31440
31440
|
})) : y, B = typeof I == "number" ? {
|
|
31441
31441
|
mainAxis: I,
|
|
@@ -31449,14 +31449,14 @@ function OK(t) {
|
|
|
31449
31449
|
};
|
|
31450
31450
|
if (T) {
|
|
31451
31451
|
if (i) {
|
|
31452
|
-
var he, Oe = _ === "y" ? Lr : Ir, q = _ === "y" ? wo : xo, G = _ === "y" ? "height" : "width", F = T[_], Q = F + w[Oe], ie = F - w[q], ce = m ? -
|
|
31452
|
+
var he, Oe = _ === "y" ? Lr : Ir, q = _ === "y" ? wo : xo, G = _ === "y" ? "height" : "width", F = T[_], Q = F + w[Oe], ie = F - w[q], ce = m ? -D[G] / 2 : 0, fe = C === Ul ? A[G] : D[G], Re = C === Ul ? -D[G] : -A[G], Ie = e.elements.arrow, ct = m && Ie ? O2(Ie) : {
|
|
31453
31453
|
width: 0,
|
|
31454
31454
|
height: 0
|
|
31455
31455
|
}, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : dC(), ke = Ue[Oe], X = Ue[q], re = ec(0, A[G], ct[G]), pe = S ? A[G] / 2 - ce - re - ke - B.mainAxis : fe - re - ke - B.mainAxis, me = S ? -A[G] / 2 + ce + re + X + B.mainAxis : Re + re + X + B.mainAxis, _e = e.elements.arrow && nd(e.elements.arrow), De = _e ? _ === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, qe = (he = V == null ? void 0 : V[_]) != null ? he : 0, le = F + pe - qe - De, Le = F + me - qe, ot = ec(m ? gp(Q, le) : Q, F, m ? va(ie, Le) : ie);
|
|
31456
31456
|
T[_] = ot, ee[_] = ot - F;
|
|
31457
31457
|
}
|
|
31458
31458
|
if (a) {
|
|
31459
|
-
var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] -
|
|
31459
|
+
var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] - D[Ae] - se + B.altAxis, be = tt ? ge + A[Ae] + D[Ae] - se - B.altAxis : gt, Te = m && tt ? Qq(Ee, ge, be) : ec(m ? Ee : Ge, ge, m ? be : gt);
|
|
31460
31460
|
T[k] = Te, ee[k] = Te - ge;
|
|
31461
31461
|
}
|
|
31462
31462
|
e.modifiersData[r] = ee;
|
|
@@ -31609,10 +31609,10 @@ function $K(t) {
|
|
|
31609
31609
|
d.reset = !1, _ = -1;
|
|
31610
31610
|
continue;
|
|
31611
31611
|
}
|
|
31612
|
-
var k = d.orderedModifiers[_], T = k.fn, A = k.options,
|
|
31612
|
+
var k = d.orderedModifiers[_], T = k.fn, A = k.options, D = A === void 0 ? {} : A, I = k.name;
|
|
31613
31613
|
typeof T == "function" && (d = T({
|
|
31614
31614
|
state: d,
|
|
31615
|
-
options:
|
|
31615
|
+
options: D,
|
|
31616
31616
|
name: I,
|
|
31617
31617
|
instance: m
|
|
31618
31618
|
}) || d);
|
|
@@ -32060,7 +32060,7 @@ function mG(t, e) {
|
|
|
32060
32060
|
return process.env.NODE_ENV !== "production" && Dg(!0, "render() function has not been supplied."), _;
|
|
32061
32061
|
var k = n.render(_), T = k.popper, A = k.onUpdate;
|
|
32062
32062
|
T.setAttribute("data-tippy-root", ""), T.id = "tippy-" + _.id, _.popper = T, t._tippy = _, T._tippy = _;
|
|
32063
|
-
var
|
|
32063
|
+
var D = C.map(function(ue) {
|
|
32064
32064
|
return ue.fn(_);
|
|
32065
32065
|
}), I = t.hasAttribute("aria-expanded");
|
|
32066
32066
|
return _e(), ce(), F(), Q("onCreate", [_]), n.showOnCreate && Ge(), T.addEventListener("mouseenter", function() {
|
|
@@ -32096,7 +32096,7 @@ function mG(t, e) {
|
|
|
32096
32096
|
ue === void 0 && (ue = !1), T.style.pointerEvents = _.props.interactive && !ue ? "" : "none", T.style.zIndex = "" + _.props.zIndex;
|
|
32097
32097
|
}
|
|
32098
32098
|
function Q(ue, We, nt) {
|
|
32099
|
-
if (nt === void 0 && (nt = !0),
|
|
32099
|
+
if (nt === void 0 && (nt = !0), D.forEach(function(Rt) {
|
|
32100
32100
|
Rt[ue] && Rt[ue].apply(Rt, We);
|
|
32101
32101
|
}), nt) {
|
|
32102
32102
|
var Bt;
|
|
@@ -33019,7 +33019,7 @@ class yG extends Dq {
|
|
|
33019
33019
|
template: this.component.template,
|
|
33020
33020
|
setup: (o) => {
|
|
33021
33021
|
var i, s;
|
|
33022
|
-
return
|
|
33022
|
+
return rr("onDragStart", n), rr("decorationClasses", this.decorationClasses), (s = (i = this.component).setup) === null || s === void 0 ? void 0 : s.call(i, o, {
|
|
33023
33023
|
expose: () => {
|
|
33024
33024
|
}
|
|
33025
33025
|
});
|
|
@@ -33209,7 +33209,7 @@ const NC = (t, e) => {
|
|
|
33209
33209
|
ed(_, k);
|
|
33210
33210
|
}
|
|
33211
33211
|
return (_, k) => {
|
|
33212
|
-
const T = at, A = Vi,
|
|
33212
|
+
const T = at, A = Vi, D = nu, I = Mf, B = Dl, V = Ec, ee = Xb, he = Jb, Oe = tu, q = eu;
|
|
33213
33213
|
return N(), $(b(Gh), {
|
|
33214
33214
|
editor: _.editor,
|
|
33215
33215
|
"plugin-key": "image-menus-123",
|
|
@@ -33230,35 +33230,35 @@ const NC = (t, e) => {
|
|
|
33230
33230
|
default: M(() => [
|
|
33231
33231
|
ne("div", wG, [
|
|
33232
33232
|
ne("div", xG, [
|
|
33233
|
-
|
|
33233
|
+
P(T, {
|
|
33234
33234
|
tooltip: b(n)("editor.image.menu.flipX"),
|
|
33235
33235
|
icon: "FlipVertical",
|
|
33236
33236
|
action: x
|
|
33237
33237
|
}, null, 8, ["tooltip"]),
|
|
33238
|
-
|
|
33238
|
+
P(T, {
|
|
33239
33239
|
tooltip: b(n)("editor.image.menu.flipY"),
|
|
33240
33240
|
icon: "FlipHorizontal",
|
|
33241
33241
|
action: C
|
|
33242
33242
|
}, null, 8, ["tooltip"]),
|
|
33243
|
-
|
|
33243
|
+
P(A, {
|
|
33244
33244
|
orientation: "vertical",
|
|
33245
33245
|
class: "mx-1 me-2 h-[16px]"
|
|
33246
33246
|
}),
|
|
33247
|
-
|
|
33247
|
+
P(q, null, {
|
|
33248
33248
|
default: M(() => [
|
|
33249
|
-
D
|
|
33249
|
+
P(D, null, {
|
|
33250
33250
|
default: M(() => [
|
|
33251
|
-
|
|
33251
|
+
P(T, {
|
|
33252
33252
|
title: b(n)("editor.image.menu.size"),
|
|
33253
33253
|
icon: "ImageSize"
|
|
33254
33254
|
}, null, 8, ["title"])
|
|
33255
33255
|
]),
|
|
33256
33256
|
_: 1
|
|
33257
33257
|
}),
|
|
33258
|
-
|
|
33258
|
+
P(Oe, { class: "w-84" }, {
|
|
33259
33259
|
default: M(() => [
|
|
33260
33260
|
ne("div", _G, [
|
|
33261
|
-
|
|
33261
|
+
P(I, {
|
|
33262
33262
|
for: "maxWidth",
|
|
33263
33263
|
class: "whitespace-nowrap"
|
|
33264
33264
|
}, {
|
|
@@ -33267,7 +33267,7 @@ const NC = (t, e) => {
|
|
|
33267
33267
|
]),
|
|
33268
33268
|
_: 1
|
|
33269
33269
|
}),
|
|
33270
|
-
|
|
33270
|
+
P(B, {
|
|
33271
33271
|
id: "maxWidth",
|
|
33272
33272
|
modelValue: o.value,
|
|
33273
33273
|
"onUpdate:modelValue": k[0] || (k[0] = (G) => o.value = G),
|
|
@@ -33276,7 +33276,7 @@ const NC = (t, e) => {
|
|
|
33276
33276
|
onInput: y,
|
|
33277
33277
|
onKeyup: pc(u, ["enter"])
|
|
33278
33278
|
}, null, 8, ["modelValue"]),
|
|
33279
|
-
|
|
33279
|
+
P(I, {
|
|
33280
33280
|
for: "maxWidth",
|
|
33281
33281
|
class: "whitespace-nowrap"
|
|
33282
33282
|
}, {
|
|
@@ -33285,7 +33285,7 @@ const NC = (t, e) => {
|
|
|
33285
33285
|
]),
|
|
33286
33286
|
_: 1
|
|
33287
33287
|
}),
|
|
33288
|
-
|
|
33288
|
+
P(B, {
|
|
33289
33289
|
id: "maxWidth",
|
|
33290
33290
|
modelValue: i.value,
|
|
33291
33291
|
"onUpdate:modelValue": k[1] || (k[1] = (G) => i.value = G),
|
|
@@ -33296,7 +33296,7 @@ const NC = (t, e) => {
|
|
|
33296
33296
|
}, null, 8, ["modelValue"])
|
|
33297
33297
|
]),
|
|
33298
33298
|
ne("div", EG, [
|
|
33299
|
-
|
|
33299
|
+
P(he, {
|
|
33300
33300
|
"model-value": r.value,
|
|
33301
33301
|
"onUpdate:modelValue": [
|
|
33302
33302
|
k[2] || (k[2] = (G) => r.value = G),
|
|
@@ -33306,9 +33306,9 @@ const NC = (t, e) => {
|
|
|
33306
33306
|
]
|
|
33307
33307
|
}, {
|
|
33308
33308
|
default: M(() => [
|
|
33309
|
-
|
|
33309
|
+
P(ee, null, {
|
|
33310
33310
|
default: M(() => [
|
|
33311
|
-
(N(), xe(et, null, $t(["25", "50", "75", "100"], (G) =>
|
|
33311
|
+
(N(), xe(et, null, $t(["25", "50", "75", "100"], (G) => P(V, {
|
|
33312
33312
|
key: G,
|
|
33313
33313
|
value: G
|
|
33314
33314
|
}, {
|
|
@@ -33330,11 +33330,11 @@ const NC = (t, e) => {
|
|
|
33330
33330
|
]),
|
|
33331
33331
|
_: 1
|
|
33332
33332
|
}),
|
|
33333
|
-
|
|
33333
|
+
P(A, {
|
|
33334
33334
|
orientation: "vertical",
|
|
33335
33335
|
class: "mx-1 me-2 h-[16px]"
|
|
33336
33336
|
}),
|
|
33337
|
-
(N(), xe(et, null, $t(a, (G, F) =>
|
|
33337
|
+
(N(), xe(et, null, $t(a, (G, F) => P(T, {
|
|
33338
33338
|
key: F,
|
|
33339
33339
|
tooltip: b(n)(`editor.textalign.${G}.tooltip`),
|
|
33340
33340
|
icon: l[G],
|
|
@@ -33342,11 +33342,11 @@ const NC = (t, e) => {
|
|
|
33342
33342
|
disabled: !_.editor.can().setTextAlign(G),
|
|
33343
33343
|
"is-active": () => _.editor.isActive({ textAlign: G }) || !1
|
|
33344
33344
|
}, null, 8, ["tooltip", "icon", "action", "disabled", "is-active"])), 64)),
|
|
33345
|
-
|
|
33345
|
+
P(A, {
|
|
33346
33346
|
orientation: "vertical",
|
|
33347
33347
|
class: "mx-1 me-2 h-[16px]"
|
|
33348
33348
|
}),
|
|
33349
|
-
|
|
33349
|
+
P(T, {
|
|
33350
33350
|
tooltip: b(n)("editor.remove"),
|
|
33351
33351
|
icon: "Trash2",
|
|
33352
33352
|
action: S,
|
|
@@ -33579,13 +33579,13 @@ const MG = { class: "flex flex-col" }, NG = { class: "w-6 h-6 p-0.5 inline-block
|
|
|
33579
33579
|
};
|
|
33580
33580
|
return (h, m) => (N(), $(b(eu), null, {
|
|
33581
33581
|
default: M(() => [
|
|
33582
|
-
|
|
33582
|
+
P(b(nu), { disabled: h.disabled }, {
|
|
33583
33583
|
default: M(() => [
|
|
33584
33584
|
te(h.$slots, "default")
|
|
33585
33585
|
]),
|
|
33586
33586
|
_: 3
|
|
33587
33587
|
}, 8, ["disabled"]),
|
|
33588
|
-
|
|
33588
|
+
P(b(tu), {
|
|
33589
33589
|
"hide-when-detached": "",
|
|
33590
33590
|
class: "w-full h-full p-2",
|
|
33591
33591
|
align: "start",
|
|
@@ -33858,7 +33858,7 @@ const XG = () => {
|
|
|
33858
33858
|
var V;
|
|
33859
33859
|
(V = k.value) == null || V.openDialog();
|
|
33860
33860
|
}
|
|
33861
|
-
function
|
|
33861
|
+
function D() {
|
|
33862
33862
|
var V;
|
|
33863
33863
|
(V = k.value) == null || V.closeDialog();
|
|
33864
33864
|
}
|
|
@@ -33890,7 +33890,7 @@ const XG = () => {
|
|
|
33890
33890
|
togglePrinter: _,
|
|
33891
33891
|
setEditorContextMenuRef: T,
|
|
33892
33892
|
openSuperInput: A,
|
|
33893
|
-
closeSuperInput:
|
|
33893
|
+
closeSuperInput: D,
|
|
33894
33894
|
imageAttachments: I,
|
|
33895
33895
|
setImageAttachment: B
|
|
33896
33896
|
};
|
|
@@ -35739,7 +35739,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
|
|
|
35739
35739
|
for (const Q of Object.keys(n))
|
|
35740
35740
|
n[Q] === F && delete n[Q];
|
|
35741
35741
|
}
|
|
35742
|
-
function
|
|
35742
|
+
function D() {
|
|
35743
35743
|
return Object.keys(e);
|
|
35744
35744
|
}
|
|
35745
35745
|
function I(F) {
|
|
@@ -35793,7 +35793,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
|
|
|
35793
35793
|
initHighlightingOnLoad: C,
|
|
35794
35794
|
registerLanguage: T,
|
|
35795
35795
|
unregisterLanguage: A,
|
|
35796
|
-
listLanguages:
|
|
35796
|
+
listLanguages: D,
|
|
35797
35797
|
getLanguage: I,
|
|
35798
35798
|
registerAliases: B,
|
|
35799
35799
|
autoDetection: V,
|
|
@@ -36085,9 +36085,9 @@ const $g = Zh("XIcon", [
|
|
|
36085
36085
|
}), {
|
|
36086
36086
|
default: M(() => [
|
|
36087
36087
|
te(o.$slots, "default"),
|
|
36088
|
-
|
|
36088
|
+
P(b(ZP), { "as-child": "" }, {
|
|
36089
36089
|
default: M(() => [
|
|
36090
|
-
|
|
36090
|
+
P(b(rS), { class: "w-4 h-4 opacity-50 shrink-0" })
|
|
36091
36091
|
]),
|
|
36092
36092
|
_: 1
|
|
36093
36093
|
})
|
|
@@ -36126,7 +36126,7 @@ const $g = Zh("XIcon", [
|
|
|
36126
36126
|
}), i = sn(o, r);
|
|
36127
36127
|
return (s, a) => (N(), $(b(RP), null, {
|
|
36128
36128
|
default: M(() => [
|
|
36129
|
-
|
|
36129
|
+
P(b(HP), Se({ ...b(i), ...s.$attrs }, {
|
|
36130
36130
|
class: b(Qe)(
|
|
36131
36131
|
"relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-ed-popover text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
36132
36132
|
s.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -36134,8 +36134,8 @@ const $g = Zh("XIcon", [
|
|
|
36134
36134
|
)
|
|
36135
36135
|
}), {
|
|
36136
36136
|
default: M(() => [
|
|
36137
|
-
|
|
36138
|
-
|
|
36137
|
+
P(b($X)),
|
|
36138
|
+
P(b(GP), {
|
|
36139
36139
|
class: ut(
|
|
36140
36140
|
b(Qe)(
|
|
36141
36141
|
"p-1",
|
|
@@ -36148,7 +36148,7 @@ const $g = Zh("XIcon", [
|
|
|
36148
36148
|
]),
|
|
36149
36149
|
_: 3
|
|
36150
36150
|
}, 8, ["class"]),
|
|
36151
|
-
|
|
36151
|
+
P(b(HX))
|
|
36152
36152
|
]),
|
|
36153
36153
|
_: 3
|
|
36154
36154
|
}, 16, ["class"])
|
|
@@ -36200,14 +36200,14 @@ const $g = Zh("XIcon", [
|
|
|
36200
36200
|
}), {
|
|
36201
36201
|
default: M(() => [
|
|
36202
36202
|
ne("span", FX, [
|
|
36203
|
-
|
|
36203
|
+
P(b(WP), null, {
|
|
36204
36204
|
default: M(() => [
|
|
36205
|
-
|
|
36205
|
+
P(b(H2), { class: "h-4 w-4" })
|
|
36206
36206
|
]),
|
|
36207
36207
|
_: 1
|
|
36208
36208
|
})
|
|
36209
36209
|
]),
|
|
36210
|
-
|
|
36210
|
+
P(b(KP), null, {
|
|
36211
36211
|
default: M(() => [
|
|
36212
36212
|
te(o.$slots, "default")
|
|
36213
36213
|
]),
|
|
@@ -36234,7 +36234,7 @@ const $g = Zh("XIcon", [
|
|
|
36234
36234
|
}), {
|
|
36235
36235
|
default: M(() => [
|
|
36236
36236
|
te(o.$slots, "default", {}, () => [
|
|
36237
|
-
|
|
36237
|
+
P(b(IX), { class: "h-4 w-4" })
|
|
36238
36238
|
])
|
|
36239
36239
|
]),
|
|
36240
36240
|
_: 3
|
|
@@ -36257,7 +36257,7 @@ const $g = Zh("XIcon", [
|
|
|
36257
36257
|
}), {
|
|
36258
36258
|
default: M(() => [
|
|
36259
36259
|
te(o.$slots, "default", {}, () => [
|
|
36260
|
-
|
|
36260
|
+
P(b(rS), { class: "h-4 w-4" })
|
|
36261
36261
|
])
|
|
36262
36262
|
]),
|
|
36263
36263
|
_: 3
|
|
@@ -36279,28 +36279,28 @@ const $g = Zh("XIcon", [
|
|
|
36279
36279
|
const s = OX;
|
|
36280
36280
|
return N(), $(b(Ha), { class: "code-block relative" }, {
|
|
36281
36281
|
default: M(() => [
|
|
36282
|
-
|
|
36282
|
+
P(b(MX), {
|
|
36283
36283
|
modelValue: r.value,
|
|
36284
36284
|
"onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a)
|
|
36285
36285
|
}, {
|
|
36286
36286
|
default: M(() => [
|
|
36287
|
-
|
|
36287
|
+
P(b(DX), { class: "w-[160px] h-8 absolute right-2 top-2 bg-ed-background" }, {
|
|
36288
36288
|
default: M(() => [
|
|
36289
|
-
|
|
36289
|
+
P(b(NX), { placeholder: "Select Language" })
|
|
36290
36290
|
]),
|
|
36291
36291
|
_: 1
|
|
36292
36292
|
}),
|
|
36293
|
-
|
|
36293
|
+
P(b(PX), null, {
|
|
36294
36294
|
default: M(() => [
|
|
36295
|
-
|
|
36295
|
+
P(b(BX), null, {
|
|
36296
36296
|
default: M(() => [
|
|
36297
|
-
|
|
36297
|
+
P(b(ow), { value: "auto" }, {
|
|
36298
36298
|
default: M(() => i[1] || (i[1] = [
|
|
36299
36299
|
lt(" Auto ")
|
|
36300
36300
|
])),
|
|
36301
36301
|
_: 1
|
|
36302
36302
|
}),
|
|
36303
|
-
|
|
36303
|
+
P(s),
|
|
36304
36304
|
(N(!0), xe(et, null, $t(n.value, (a, l) => (N(), $(b(ow), {
|
|
36305
36305
|
key: l,
|
|
36306
36306
|
value: a
|
|
@@ -36321,7 +36321,7 @@ const $g = Zh("XIcon", [
|
|
|
36321
36321
|
}, 8, ["modelValue"]),
|
|
36322
36322
|
ne("pre", null, [
|
|
36323
36323
|
ne("code", null, [
|
|
36324
|
-
|
|
36324
|
+
P(b(OC))
|
|
36325
36325
|
])
|
|
36326
36326
|
])
|
|
36327
36327
|
]),
|
|
@@ -36462,7 +36462,7 @@ const $g = Zh("XIcon", [
|
|
|
36462
36462
|
}), i = sn(o, r);
|
|
36463
36463
|
return (s, a) => (N(), $(b(GD), null, {
|
|
36464
36464
|
default: M(() => [
|
|
36465
|
-
|
|
36465
|
+
P(b(JD), Se(b(i), {
|
|
36466
36466
|
class: b(Qe)(
|
|
36467
36467
|
"z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
36468
36468
|
n.class
|
|
@@ -36529,9 +36529,9 @@ const $g = Zh("XIcon", [
|
|
|
36529
36529
|
}), {
|
|
36530
36530
|
default: M(() => [
|
|
36531
36531
|
ne("span", WX, [
|
|
36532
|
-
|
|
36532
|
+
P(b(QD), null, {
|
|
36533
36533
|
default: M(() => [
|
|
36534
|
-
|
|
36534
|
+
P(b(H2), { class: "w-4 h-4" })
|
|
36535
36535
|
]),
|
|
36536
36536
|
_: 1
|
|
36537
36537
|
})
|
|
@@ -36594,11 +36594,11 @@ const $g = Zh("XIcon", [
|
|
|
36594
36594
|
const e = t;
|
|
36595
36595
|
return (n, r) => (N(), $(b(iu), null, {
|
|
36596
36596
|
default: M(() => [
|
|
36597
|
-
|
|
36597
|
+
P(b(ru), { "delay-duration": 0 }, {
|
|
36598
36598
|
default: M(() => [
|
|
36599
|
-
|
|
36599
|
+
P(b(ou), { "as-child": "" }, {
|
|
36600
36600
|
default: M(() => [
|
|
36601
|
-
|
|
36601
|
+
P(b(Dr), {
|
|
36602
36602
|
id: `action-menu-${n.id}`,
|
|
36603
36603
|
class: ut(b(Qe)("h-[32px] px-1.5 py-0", e.class)),
|
|
36604
36604
|
variant: "ghost",
|
|
@@ -36612,7 +36612,7 @@ const $g = Zh("XIcon", [
|
|
|
36612
36612
|
class: "w-[16px] h-[16px]",
|
|
36613
36613
|
name: n.icon
|
|
36614
36614
|
}, null, 8, ["name"])) : $e("", !0),
|
|
36615
|
-
|
|
36615
|
+
P(b(hn), {
|
|
36616
36616
|
class: "flex-shrink-0 w-3 h-3 ml-1 text-zinc-500",
|
|
36617
36617
|
name: "ChevronDown"
|
|
36618
36618
|
})
|
|
@@ -36658,9 +36658,9 @@ const $g = Zh("XIcon", [
|
|
|
36658
36658
|
const e = t;
|
|
36659
36659
|
return (n, r) => (N(), $(b(oS), null, {
|
|
36660
36660
|
default: M(() => [
|
|
36661
|
-
|
|
36661
|
+
P(b(iS), { disabled: n.disabled }, {
|
|
36662
36662
|
default: M(() => [
|
|
36663
|
-
|
|
36663
|
+
P(JX, {
|
|
36664
36664
|
id: n.id,
|
|
36665
36665
|
class: ut(n.btn_class),
|
|
36666
36666
|
title: n.title,
|
|
@@ -36672,7 +36672,7 @@ const $g = Zh("XIcon", [
|
|
|
36672
36672
|
]),
|
|
36673
36673
|
_: 1
|
|
36674
36674
|
}, 8, ["disabled"]),
|
|
36675
|
-
|
|
36675
|
+
P(b(sS), Se({
|
|
36676
36676
|
class: b(Qe)("min-w-24", e.class),
|
|
36677
36677
|
align: "start",
|
|
36678
36678
|
side: "bottom"
|
|
@@ -36719,7 +36719,7 @@ const $g = Zh("XIcon", [
|
|
|
36719
36719
|
}, {
|
|
36720
36720
|
default: M(() => [
|
|
36721
36721
|
(N(!0), xe(et, null, $t(e.items, (s, a) => (N(), xe(et, { key: a }, [
|
|
36722
|
-
|
|
36722
|
+
P(b(lu), {
|
|
36723
36723
|
checked: n.value.title === s.title,
|
|
36724
36724
|
onClick: s.action
|
|
36725
36725
|
}, {
|
|
@@ -36727,7 +36727,7 @@ const $g = Zh("XIcon", [
|
|
|
36727
36727
|
ne("div", {
|
|
36728
36728
|
class: ut(["h-full ml-1", "heading-" + s.level])
|
|
36729
36729
|
}, Fe(s.title), 3),
|
|
36730
|
-
|
|
36730
|
+
P(b(aS), { class: "pl-4" }, {
|
|
36731
36731
|
default: M(() => {
|
|
36732
36732
|
var l;
|
|
36733
36733
|
return [
|
|
@@ -36852,18 +36852,18 @@ const $g = Zh("XIcon", [
|
|
|
36852
36852
|
class: "min-w-4 w-full flex flex-row gap-1"
|
|
36853
36853
|
}, {
|
|
36854
36854
|
default: M(() => [
|
|
36855
|
-
|
|
36855
|
+
P(b(iu), null, {
|
|
36856
36856
|
default: M(() => [
|
|
36857
36857
|
(N(!0), xe(et, null, $t(e.items, (i, s) => (N(), $(b(ru), { key: s }, {
|
|
36858
36858
|
default: M(() => [
|
|
36859
|
-
|
|
36859
|
+
P(b(ou), { "as-child": "" }, {
|
|
36860
36860
|
default: M(() => [
|
|
36861
|
-
|
|
36861
|
+
P(b(z2), {
|
|
36862
36862
|
class: "p-0",
|
|
36863
36863
|
onClick: i.action
|
|
36864
36864
|
}, {
|
|
36865
36865
|
default: M(() => [
|
|
36866
|
-
|
|
36866
|
+
P(b(o_), {
|
|
36867
36867
|
size: "sm",
|
|
36868
36868
|
class: "w-7 h-7 p-1",
|
|
36869
36869
|
pressed: n.value.title === i.title
|
|
@@ -36882,7 +36882,7 @@ const $g = Zh("XIcon", [
|
|
|
36882
36882
|
]),
|
|
36883
36883
|
_: 2
|
|
36884
36884
|
}, 1024),
|
|
36885
|
-
|
|
36885
|
+
P(b(Ta), { class: "flex flex-col items-center" }, {
|
|
36886
36886
|
default: M(() => {
|
|
36887
36887
|
var a;
|
|
36888
36888
|
return [
|
|
@@ -36963,7 +36963,7 @@ const $g = Zh("XIcon", [
|
|
|
36963
36963
|
)
|
|
36964
36964
|
}), {
|
|
36965
36965
|
default: M(() => [
|
|
36966
|
-
|
|
36966
|
+
P(b(wP), { class: "relative flex-1 rounded-full bg-ed-border" })
|
|
36967
36967
|
]),
|
|
36968
36968
|
_: 1
|
|
36969
36969
|
}, 16, ["class"]));
|
|
@@ -36987,14 +36987,14 @@ const $g = Zh("XIcon", [
|
|
|
36987
36987
|
class: b(Qe)("relative overflow-hidden", e.class)
|
|
36988
36988
|
}), {
|
|
36989
36989
|
default: M(() => [
|
|
36990
|
-
|
|
36990
|
+
P(b(cP), { class: "h-full w-full rounded-[inherit]" }, {
|
|
36991
36991
|
default: M(() => [
|
|
36992
36992
|
te(r.$slots, "default")
|
|
36993
36993
|
]),
|
|
36994
36994
|
_: 3
|
|
36995
36995
|
}),
|
|
36996
|
-
|
|
36997
|
-
|
|
36996
|
+
P(QX),
|
|
36997
|
+
P(b(_P))
|
|
36998
36998
|
]),
|
|
36999
36999
|
_: 3
|
|
37000
37000
|
}, 16, ["class"]));
|
|
@@ -37033,10 +37033,10 @@ const $g = Zh("XIcon", [
|
|
|
37033
37033
|
btn_class: `min-w-24 ${l.customClass}`
|
|
37034
37034
|
}, {
|
|
37035
37035
|
default: M(() => [
|
|
37036
|
-
|
|
37036
|
+
P(b(eY), { class: "w-32 h-96" }, {
|
|
37037
37037
|
default: M(() => [
|
|
37038
37038
|
(N(!0), xe(et, null, $t(e.items, (p, h) => (N(), xe(et, { key: h }, [
|
|
37039
|
-
|
|
37039
|
+
P(b(lu), {
|
|
37040
37040
|
checked: i.value.title === p.title,
|
|
37041
37041
|
onClick: () => a(p.title, p.action)
|
|
37042
37042
|
}, {
|
|
@@ -37260,7 +37260,7 @@ const $g = Zh("XIcon", [
|
|
|
37260
37260
|
(s = e.action) == null || s.call(e, n.value);
|
|
37261
37261
|
}
|
|
37262
37262
|
return (i, s) => (N(), xe("div", sY, [
|
|
37263
|
-
|
|
37263
|
+
P(at, {
|
|
37264
37264
|
id: "color",
|
|
37265
37265
|
tooltip: i.tooltip,
|
|
37266
37266
|
disabled: i.disabled,
|
|
@@ -37298,21 +37298,21 @@ const $g = Zh("XIcon", [
|
|
|
37298
37298
|
]),
|
|
37299
37299
|
_: 1
|
|
37300
37300
|
}, 8, ["tooltip", "disabled"]),
|
|
37301
|
-
|
|
37301
|
+
P(IC, {
|
|
37302
37302
|
modelValue: n.value,
|
|
37303
37303
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => n.value = a),
|
|
37304
37304
|
disabled: i.disabled,
|
|
37305
37305
|
onChange: r
|
|
37306
37306
|
}, {
|
|
37307
37307
|
default: M(() => [
|
|
37308
|
-
|
|
37308
|
+
P(b(Dr), {
|
|
37309
37309
|
variant: "ghost",
|
|
37310
37310
|
size: "icon",
|
|
37311
37311
|
class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
|
|
37312
37312
|
disabled: i.disabled
|
|
37313
37313
|
}, {
|
|
37314
37314
|
default: M(() => [
|
|
37315
|
-
|
|
37315
|
+
P(b(hn), {
|
|
37316
37316
|
class: "w-3 h-3 text-zinc-500",
|
|
37317
37317
|
name: "MenuDown"
|
|
37318
37318
|
})
|
|
@@ -37497,7 +37497,7 @@ const $g = Zh("XIcon", [
|
|
|
37497
37497
|
id: `dropdown-btn-${n.id}`,
|
|
37498
37498
|
class: ut(["flex items-center h-[32px] hover:bg-ed-muted rounded-md", [((o = n.isActive) == null ? void 0 : o.call(n)) && "bg-ed-muted"]])
|
|
37499
37499
|
}, [
|
|
37500
|
-
|
|
37500
|
+
P(at, {
|
|
37501
37501
|
class: ut(n.btnClass),
|
|
37502
37502
|
action: n.action,
|
|
37503
37503
|
title: n.title,
|
|
@@ -37506,18 +37506,18 @@ const $g = Zh("XIcon", [
|
|
|
37506
37506
|
disabled: n.disabled,
|
|
37507
37507
|
"shortcut-keys": n.shortcutKeys
|
|
37508
37508
|
}, null, 8, ["class", "action", "title", "icon", "tooltip", "disabled", "shortcut-keys"]),
|
|
37509
|
-
|
|
37509
|
+
P(b(oS), null, {
|
|
37510
37510
|
default: M(() => [
|
|
37511
|
-
|
|
37511
|
+
P(b(iS), { disabled: n.disabled }, {
|
|
37512
37512
|
default: M(() => [
|
|
37513
|
-
|
|
37513
|
+
P(Dr, {
|
|
37514
37514
|
variant: "ghost",
|
|
37515
37515
|
size: "icon",
|
|
37516
37516
|
class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
|
|
37517
37517
|
disabled: n.disabled
|
|
37518
37518
|
}, {
|
|
37519
37519
|
default: M(() => [
|
|
37520
|
-
|
|
37520
|
+
P(b(hn), {
|
|
37521
37521
|
class: "w-3 h-3 text-zinc-500",
|
|
37522
37522
|
name: "MenuDown"
|
|
37523
37523
|
})
|
|
@@ -37527,7 +37527,7 @@ const $g = Zh("XIcon", [
|
|
|
37527
37527
|
]),
|
|
37528
37528
|
_: 1
|
|
37529
37529
|
}, 8, ["disabled"]),
|
|
37530
|
-
|
|
37530
|
+
P(b(sS), Se({
|
|
37531
37531
|
class: b(Qe)("min-w-24", e.class),
|
|
37532
37532
|
align: "start",
|
|
37533
37533
|
side: "bottom"
|
|
@@ -37570,16 +37570,16 @@ const $g = Zh("XIcon", [
|
|
|
37570
37570
|
class: "grid w-full grid-cols-3 gap-1 min-w-4"
|
|
37571
37571
|
}, {
|
|
37572
37572
|
default: M(() => [
|
|
37573
|
-
|
|
37573
|
+
P(b(iu), null, {
|
|
37574
37574
|
default: M(() => [
|
|
37575
|
-
(N(), xe(et, null, $t(r, (l) =>
|
|
37575
|
+
(N(), xe(et, null, $t(r, (l) => P(b(ru), {
|
|
37576
37576
|
key: l.value,
|
|
37577
37577
|
"delay-duration": 0
|
|
37578
37578
|
}, {
|
|
37579
37579
|
default: M(() => [
|
|
37580
|
-
|
|
37580
|
+
P(b(ou), null, {
|
|
37581
37581
|
default: M(() => [
|
|
37582
|
-
|
|
37582
|
+
P(b(z2), {
|
|
37583
37583
|
class: "p-0",
|
|
37584
37584
|
onClick: (u) => i(l)
|
|
37585
37585
|
}, {
|
|
@@ -37602,7 +37602,7 @@ const $g = Zh("XIcon", [
|
|
|
37602
37602
|
]),
|
|
37603
37603
|
_: 2
|
|
37604
37604
|
}, 1024),
|
|
37605
|
-
|
|
37605
|
+
P(b(Ta), { side: "bottom" }, {
|
|
37606
37606
|
default: M(() => [
|
|
37607
37607
|
lt(Fe(b(n)(l.label)), 1)
|
|
37608
37608
|
]),
|
|
@@ -37777,16 +37777,16 @@ const $g = Zh("XIcon", [
|
|
|
37777
37777
|
class: "min-w-4 w-full grid grid-cols-3 gap-1"
|
|
37778
37778
|
}, {
|
|
37779
37779
|
default: M(() => [
|
|
37780
|
-
|
|
37780
|
+
P(b(iu), null, {
|
|
37781
37781
|
default: M(() => [
|
|
37782
|
-
(N(), xe(et, null, $t(r, (l) =>
|
|
37782
|
+
(N(), xe(et, null, $t(r, (l) => P(b(ru), {
|
|
37783
37783
|
key: l.value,
|
|
37784
37784
|
"delay-duration": 0
|
|
37785
37785
|
}, {
|
|
37786
37786
|
default: M(() => [
|
|
37787
|
-
|
|
37787
|
+
P(b(ou), { "as-child": "" }, {
|
|
37788
37788
|
default: M(() => [
|
|
37789
|
-
|
|
37789
|
+
P(b(z2), {
|
|
37790
37790
|
class: "p-0",
|
|
37791
37791
|
onClick: (u) => i(l)
|
|
37792
37792
|
}, {
|
|
@@ -37809,7 +37809,7 @@ const $g = Zh("XIcon", [
|
|
|
37809
37809
|
]),
|
|
37810
37810
|
_: 2
|
|
37811
37811
|
}, 1024),
|
|
37812
|
-
|
|
37812
|
+
P(b(Ta), { side: "bottom" }, {
|
|
37813
37813
|
default: M(() => [
|
|
37814
37814
|
lt(Fe(b(n)(l.label)), 1)
|
|
37815
37815
|
]),
|
|
@@ -38679,7 +38679,7 @@ function WY({
|
|
|
38679
38679
|
_t(S, t.numeric, _);
|
|
38680
38680
|
const k = lo(Ef), T = lo();
|
|
38681
38681
|
_t(k, e, k), _t(k, n, T), _t(T, e, k), _t(T, n, T), Me(C, Yo, k), Me(_, Yo, k);
|
|
38682
|
-
const A = Me(a, vs),
|
|
38682
|
+
const A = Me(a, vs), D = Me(l, vs), I = Me(D, Yo), B = Me(I, Yo);
|
|
38683
38683
|
_t(a, t.domain, s), Me(a, Xo, x), Me(a, uo, w), _t(l, t.domain, s), Me(l, Xo, x), Me(l, uo, w), _t(A, t.domain, k), Me(A, Yo, k), Me(A, lc, k), _t(B, t.domain, k), _t(B, e, k), Me(B, Yo, k);
|
|
38684
38684
|
const V = [
|
|
38685
38685
|
[ic, sc],
|
|
@@ -39084,10 +39084,10 @@ const ES = /* @__PURE__ */ j({
|
|
|
39084
39084
|
)
|
|
39085
39085
|
}), {
|
|
39086
39086
|
default: M(() => [
|
|
39087
|
-
|
|
39087
|
+
P(b(lD), { class: "flex h-full w-full items-center justify-center text-current" }, {
|
|
39088
39088
|
default: M(() => [
|
|
39089
39089
|
te(s.$slots, "default", {}, () => [
|
|
39090
|
-
|
|
39090
|
+
P(b(nZ), { class: "h-4 w-4" })
|
|
39091
39091
|
])
|
|
39092
39092
|
]),
|
|
39093
39093
|
_: 3
|
|
@@ -39130,9 +39130,9 @@ const ES = /* @__PURE__ */ j({
|
|
|
39130
39130
|
}, [
|
|
39131
39131
|
ne("form", {
|
|
39132
39132
|
class: "flex flex-col gap-2",
|
|
39133
|
-
onSubmit:
|
|
39133
|
+
onSubmit: Qn(d, ["prevent"])
|
|
39134
39134
|
}, [
|
|
39135
|
-
|
|
39135
|
+
P(b(Mf), null, {
|
|
39136
39136
|
default: M(() => [
|
|
39137
39137
|
lt(Fe(b(o)("editor.link.dialog.text")), 1)
|
|
39138
39138
|
]),
|
|
@@ -39140,7 +39140,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39140
39140
|
}),
|
|
39141
39141
|
ne("div", rZ, [
|
|
39142
39142
|
ne("div", oZ, [
|
|
39143
|
-
|
|
39143
|
+
P(b(Dl), {
|
|
39144
39144
|
modelValue: b(i).text,
|
|
39145
39145
|
"onUpdate:modelValue": h[0] || (h[0] = (g) => b(i).text = g),
|
|
39146
39146
|
type: "text",
|
|
@@ -39150,7 +39150,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39150
39150
|
}, null, 8, ["modelValue"])
|
|
39151
39151
|
])
|
|
39152
39152
|
]),
|
|
39153
|
-
|
|
39153
|
+
P(b(Mf), null, {
|
|
39154
39154
|
default: M(() => [
|
|
39155
39155
|
lt(Fe(b(o)("editor.link.dialog.link")), 1)
|
|
39156
39156
|
]),
|
|
@@ -39158,7 +39158,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39158
39158
|
}),
|
|
39159
39159
|
ne("div", iZ, [
|
|
39160
39160
|
ne("div", sZ, [
|
|
39161
|
-
|
|
39161
|
+
P(b(Dl), {
|
|
39162
39162
|
ref_key: "inputRef",
|
|
39163
39163
|
ref: s,
|
|
39164
39164
|
modelValue: b(i).link,
|
|
@@ -39168,7 +39168,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39168
39168
|
class: "pl-10"
|
|
39169
39169
|
}, null, 8, ["modelValue"]),
|
|
39170
39170
|
ne("span", aZ, [
|
|
39171
|
-
|
|
39171
|
+
P(b(hn), {
|
|
39172
39172
|
class: "size-5 text-ed-muted-foreground",
|
|
39173
39173
|
name: "Link"
|
|
39174
39174
|
})
|
|
@@ -39176,19 +39176,19 @@ const ES = /* @__PURE__ */ j({
|
|
|
39176
39176
|
])
|
|
39177
39177
|
]),
|
|
39178
39178
|
ne("div", lZ, [
|
|
39179
|
-
|
|
39179
|
+
P(m, {
|
|
39180
39180
|
id: "openInNewTab",
|
|
39181
39181
|
checked: l.value,
|
|
39182
39182
|
"onUpdate:checked": h[2] || (h[2] = (g) => l.value = g)
|
|
39183
39183
|
}, null, 8, ["checked"]),
|
|
39184
|
-
|
|
39184
|
+
P(b(Mf), { for: "openInNewTab" }, {
|
|
39185
39185
|
default: M(() => [
|
|
39186
39186
|
lt(Fe(b(o)("editor.link.dialog.openInNewTab")), 1)
|
|
39187
39187
|
]),
|
|
39188
39188
|
_: 1
|
|
39189
39189
|
})
|
|
39190
39190
|
]),
|
|
39191
|
-
|
|
39191
|
+
P(b(Dr), {
|
|
39192
39192
|
type: "submit",
|
|
39193
39193
|
class: "mt-2 self-end"
|
|
39194
39194
|
}, {
|
|
@@ -39220,9 +39220,9 @@ const ES = /* @__PURE__ */ j({
|
|
|
39220
39220
|
}
|
|
39221
39221
|
return (r, o) => (N(), $(b(eu), null, {
|
|
39222
39222
|
default: M(() => [
|
|
39223
|
-
|
|
39223
|
+
P(b(nu), { disabled: r.disabled }, {
|
|
39224
39224
|
default: M(() => [
|
|
39225
|
-
|
|
39225
|
+
P(at, {
|
|
39226
39226
|
icon: r.icon,
|
|
39227
39227
|
tooltip: r.tooltip,
|
|
39228
39228
|
"is-active": r.isActive,
|
|
@@ -39231,7 +39231,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39231
39231
|
]),
|
|
39232
39232
|
_: 1
|
|
39233
39233
|
}, 8, ["disabled"]),
|
|
39234
|
-
|
|
39234
|
+
P(b(tu), {
|
|
39235
39235
|
"hide-when-detached": "",
|
|
39236
39236
|
"as-child": "",
|
|
39237
39237
|
class: "w-full",
|
|
@@ -39239,7 +39239,7 @@ const ES = /* @__PURE__ */ j({
|
|
|
39239
39239
|
side: "bottom"
|
|
39240
39240
|
}, {
|
|
39241
39241
|
default: M(() => [
|
|
39242
|
-
|
|
39242
|
+
P(CS, {
|
|
39243
39243
|
editor: r.editor,
|
|
39244
39244
|
onOnSetLink: n
|
|
39245
39245
|
}, null, 8, ["editor"])
|
|
@@ -41882,7 +41882,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
41882
41882
|
}), i = sn(o, r);
|
|
41883
41883
|
return (s, a) => (N(), $(b(VD), null, {
|
|
41884
41884
|
default: M(() => [
|
|
41885
|
-
|
|
41885
|
+
P(b(UD), Se(b(i), {
|
|
41886
41886
|
class: b(Qe)(
|
|
41887
41887
|
"z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
41888
41888
|
n.class
|
|
@@ -41978,7 +41978,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
41978
41978
|
}), i = sn(o, r);
|
|
41979
41979
|
return (s, a) => (N(), $(b(zx), null, {
|
|
41980
41980
|
default: M(() => [
|
|
41981
|
-
|
|
41981
|
+
P(b(Gx), {
|
|
41982
41982
|
class: ut(
|
|
41983
41983
|
b(Qe)(
|
|
41984
41984
|
"fixed inset-0 z-[60] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
@@ -41986,7 +41986,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
41986
41986
|
)
|
|
41987
41987
|
)
|
|
41988
41988
|
}, null, 8, ["class"]),
|
|
41989
|
-
|
|
41989
|
+
P(b(QI), Se(b(i), {
|
|
41990
41990
|
class: b(Qe)(
|
|
41991
41991
|
"fixed left-1/2 top-1/2 z-[60] grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-ed-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
41992
41992
|
n.class
|
|
@@ -42117,7 +42117,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42117
42117
|
return e({ insertSpecialCharater: d, isChecked: p, toggleSpellCheck: h }), (m, g) => (N(), xe("div", {
|
|
42118
42118
|
class: ut(b(Qe)("h-40 overflow-y-auto", b(i) && "h-20 rounded-[5px]"))
|
|
42119
42119
|
}, [
|
|
42120
|
-
|
|
42120
|
+
P(b(rd), {
|
|
42121
42121
|
editor: b(u),
|
|
42122
42122
|
class: ut(
|
|
42123
42123
|
b(Qe)(
|
|
@@ -42143,22 +42143,22 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42143
42143
|
emits: ["close", "save"],
|
|
42144
42144
|
setup(t, { emit: e }) {
|
|
42145
42145
|
var T, A;
|
|
42146
|
-
const n = e, r = t, { t: o } = jt(), i = U(""), s = U(""), a = U(null), l = U(!1), u = vo({ x: 0, y: 0 }), d = U(!1), p = { x: 0, y: 0 }, h = (
|
|
42147
|
-
d.value = !0, p.x =
|
|
42148
|
-
}, m = (
|
|
42149
|
-
d.value && (u.x =
|
|
42146
|
+
const n = e, r = t, { t: o } = jt(), i = U(""), s = U(""), a = U(null), l = U(!1), u = vo({ x: 0, y: 0 }), d = U(!1), p = { x: 0, y: 0 }, h = (D) => {
|
|
42147
|
+
d.value = !0, p.x = D.clientX - u.x, p.y = D.clientY - u.y, document.addEventListener("mousemove", m), document.addEventListener("mouseup", g);
|
|
42148
|
+
}, m = (D) => {
|
|
42149
|
+
d.value && (u.x = D.clientX - p.x, u.y = D.clientY - p.y);
|
|
42150
42150
|
}, g = () => {
|
|
42151
42151
|
d.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", g);
|
|
42152
42152
|
}, y = Y(() => {
|
|
42153
42153
|
var I;
|
|
42154
42154
|
if (!i.value) return !0;
|
|
42155
|
-
const
|
|
42156
|
-
return
|
|
42155
|
+
const D = document.createElement("div");
|
|
42156
|
+
return D.innerHTML = i.value, ((I = D == null ? void 0 : D.textContent) == null ? void 0 : I.trim()) === "";
|
|
42157
42157
|
});
|
|
42158
42158
|
He(
|
|
42159
42159
|
() => r.open,
|
|
42160
|
-
async (
|
|
42161
|
-
if (
|
|
42160
|
+
async (D) => {
|
|
42161
|
+
if (D) {
|
|
42162
42162
|
r.superTextInit && (i.value = r.superTextInit, r.superTextId && (s.value = r.superTextId)), await Dt();
|
|
42163
42163
|
const I = document.querySelector(".draggable-dialog");
|
|
42164
42164
|
if (I) {
|
|
@@ -42173,26 +42173,26 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42173
42173
|
n("close"), i.value = "", s.value = "", l.value = !1;
|
|
42174
42174
|
}, x = () => {
|
|
42175
42175
|
n("save", i.value), i.value = "";
|
|
42176
|
-
}, C = (A = (T = r.editor) == null ? void 0 : T.extensionManager.extensions.find((
|
|
42176
|
+
}, C = (A = (T = r.editor) == null ? void 0 : T.extensionManager.extensions.find((D) => D.name === "superText")) == null ? void 0 : A.options.specialCharModal, S = (D, I) => {
|
|
42177
42177
|
var B;
|
|
42178
|
-
I && ((B = a.value) == null || B.insertSpecialCharater(
|
|
42178
|
+
I && ((B = a.value) == null || B.insertSpecialCharater(D));
|
|
42179
42179
|
}, _ = Y(() => {
|
|
42180
|
-
var
|
|
42181
|
-
return (
|
|
42180
|
+
var D;
|
|
42181
|
+
return (D = a.value) == null ? void 0 : D.isChecked;
|
|
42182
42182
|
}), k = () => {
|
|
42183
|
-
var
|
|
42184
|
-
(
|
|
42183
|
+
var D;
|
|
42184
|
+
(D = a.value) == null || D.toggleSpellCheck();
|
|
42185
42185
|
};
|
|
42186
42186
|
return ur(() => {
|
|
42187
42187
|
document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", g);
|
|
42188
|
-
}), (
|
|
42188
|
+
}), (D, I) => {
|
|
42189
42189
|
const B = n7, V = t7, ee = e7, he = QS, Oe = ZS, q = YS;
|
|
42190
|
-
return N(), $(q, { open:
|
|
42190
|
+
return N(), $(q, { open: D.open }, {
|
|
42191
42191
|
default: M(() => [
|
|
42192
|
-
|
|
42192
|
+
P(b(zx), null, {
|
|
42193
42193
|
default: M(() => [
|
|
42194
|
-
|
|
42195
|
-
|
|
42194
|
+
P(b(Gx), { class: "!pointer-events-none bg-black/30" }),
|
|
42195
|
+
P(Oe, {
|
|
42196
42196
|
"is-overlay-transparent": "",
|
|
42197
42197
|
class: "p-0 gap-0 !animate-none !transition-none",
|
|
42198
42198
|
"as-child": ""
|
|
@@ -42208,23 +42208,23 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42208
42208
|
left: "0px"
|
|
42209
42209
|
})
|
|
42210
42210
|
}, [
|
|
42211
|
-
|
|
42211
|
+
P(ee, {
|
|
42212
42212
|
class: "bg-blue-500 text-white p-2.5 rounded-t-[5px] cursor-move",
|
|
42213
|
-
onMousedown:
|
|
42213
|
+
onMousedown: Qn(h, ["prevent"])
|
|
42214
42214
|
}, {
|
|
42215
42215
|
default: M(() => [
|
|
42216
|
-
|
|
42216
|
+
P(B, null, {
|
|
42217
42217
|
default: M(() => [
|
|
42218
42218
|
lt(Fe(b(o)("editor.superinput")), 1)
|
|
42219
42219
|
]),
|
|
42220
42220
|
_: 1
|
|
42221
42221
|
}),
|
|
42222
|
-
|
|
42222
|
+
P(V, {
|
|
42223
42223
|
class: "absolute right-3 top-3 text-white",
|
|
42224
42224
|
onClick: w
|
|
42225
42225
|
}, {
|
|
42226
42226
|
default: M(() => [
|
|
42227
|
-
|
|
42227
|
+
P(b($g), { class: "w-5 h-5" }),
|
|
42228
42228
|
I[3] || (I[3] = ne("span", { class: "sr-only" }, "Close", -1))
|
|
42229
42229
|
]),
|
|
42230
42230
|
_: 1
|
|
@@ -42236,7 +42236,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42236
42236
|
ne("div", pee, [
|
|
42237
42237
|
I[4] || (I[4] = ne("label", { class: "w-1/6" }, " ", -1)),
|
|
42238
42238
|
ne("div", hee, [
|
|
42239
|
-
|
|
42239
|
+
P(Dr, {
|
|
42240
42240
|
class: "text-[#65558F] bg-[#ECE6F0] hover:bg-[#ECE6F0]/90 shadow text-xs rounded font-normal h-[25px] px-3",
|
|
42241
42241
|
onClick: I[0] || (I[0] = (ie) => l.value = !0)
|
|
42242
42242
|
}, {
|
|
@@ -42246,7 +42246,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42246
42246
|
_: 1
|
|
42247
42247
|
}),
|
|
42248
42248
|
ne("div", mee, [
|
|
42249
|
-
|
|
42249
|
+
P(ES, {
|
|
42250
42250
|
id: "spellcheck",
|
|
42251
42251
|
checked: b(_),
|
|
42252
42252
|
class: "border-gray-300",
|
|
@@ -42265,27 +42265,27 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42265
42265
|
]),
|
|
42266
42266
|
ne("div", bee, [
|
|
42267
42267
|
ne("label", vee, Fe(b(o)("editor.detail")), 1),
|
|
42268
|
-
|
|
42268
|
+
P(r7, {
|
|
42269
42269
|
ref_key: "simpleEditorRef",
|
|
42270
42270
|
ref: a,
|
|
42271
42271
|
modelValue: i.value,
|
|
42272
42272
|
"onUpdate:modelValue": I[2] || (I[2] = (ie) => i.value = ie),
|
|
42273
|
-
"parent-editor":
|
|
42273
|
+
"parent-editor": D.editor,
|
|
42274
42274
|
class: "flex-1"
|
|
42275
42275
|
}, null, 8, ["modelValue", "parent-editor"])
|
|
42276
42276
|
]),
|
|
42277
42277
|
ne("div", yee, [
|
|
42278
42278
|
I[5] || (I[5] = ne("label", { class: "w-1/6 text-right text-sm p-2" }, "ID", -1)),
|
|
42279
|
-
|
|
42279
|
+
P(Dl, {
|
|
42280
42280
|
class: "flex-1 rounded-none",
|
|
42281
42281
|
"default-value": s.value,
|
|
42282
42282
|
disabled: ""
|
|
42283
42283
|
}, null, 8, ["default-value"])
|
|
42284
42284
|
])
|
|
42285
42285
|
]),
|
|
42286
|
-
|
|
42286
|
+
P(he, { class: "sm:justify-center pb-3.5 pt-1" }, {
|
|
42287
42287
|
default: M(() => [
|
|
42288
|
-
|
|
42288
|
+
P(Dr, {
|
|
42289
42289
|
as: "button",
|
|
42290
42290
|
variant: "default",
|
|
42291
42291
|
class: "bg-blue-500 hover:bg-blue-500/90",
|
|
@@ -42293,18 +42293,18 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42293
42293
|
onClick: x
|
|
42294
42294
|
}, {
|
|
42295
42295
|
default: M(() => [
|
|
42296
|
-
|
|
42296
|
+
P(b(H2), { class: "w-5 h-5 mr-2" }),
|
|
42297
42297
|
lt(" " + Fe(b(o)("editor.check")), 1)
|
|
42298
42298
|
]),
|
|
42299
42299
|
_: 1
|
|
42300
42300
|
}, 8, ["disabled"]),
|
|
42301
|
-
|
|
42301
|
+
P(Dr, {
|
|
42302
42302
|
as: "button",
|
|
42303
42303
|
variant: "destructive",
|
|
42304
42304
|
onClick: w
|
|
42305
42305
|
}, {
|
|
42306
42306
|
default: M(() => [
|
|
42307
|
-
|
|
42307
|
+
P(b($g), { class: "w-5 h-5 mr-2" }),
|
|
42308
42308
|
I[6] || (I[6] = lt(" Close "))
|
|
42309
42309
|
]),
|
|
42310
42310
|
_: 1
|
|
@@ -42334,86 +42334,96 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
|
|
|
42334
42334
|
},
|
|
42335
42335
|
setup(t, { expose: e }) {
|
|
42336
42336
|
const n = t, { t: r } = jt(), o = U(!1), i = vo({ from: 0, to: 0, text: "" }), s = U(""), a = U(""), l = U(!0), u = Y(() => n.mode === Ct.EDITOR || n.mode === Ct.PLAIN_TEXT), d = () => {
|
|
42337
|
-
const { view:
|
|
42338
|
-
i.text =
|
|
42337
|
+
const { view: S, state: _ } = n.editor, { from: k, to: T } = S.state.selection, A = _.doc.textBetween(k, T, "");
|
|
42338
|
+
i.text = A, i.from = k, i.to = T;
|
|
42339
42339
|
}, p = () => o.value = !o.value, h = () => {
|
|
42340
42340
|
if (u.value) return;
|
|
42341
42341
|
o.value = !0, d();
|
|
42342
|
-
const { from:
|
|
42343
|
-
let
|
|
42344
|
-
n.editor.state.doc.nodesBetween(
|
|
42345
|
-
var
|
|
42346
|
-
(
|
|
42347
|
-
}), a.value =
|
|
42348
|
-
}, m = () => o.value = !1, g = (
|
|
42349
|
-
const
|
|
42342
|
+
const { from: S, to: _ } = n.editor.state.selection;
|
|
42343
|
+
let k = "";
|
|
42344
|
+
n.editor.state.doc.nodesBetween(S, _, (T) => {
|
|
42345
|
+
var A;
|
|
42346
|
+
(A = T.attrs) != null && A.id && (k = T.attrs.id);
|
|
42347
|
+
}), a.value = k, s.value = i.text;
|
|
42348
|
+
}, m = () => o.value = !1, g = (S) => {
|
|
42349
|
+
const _ = n == null ? void 0 : n.superTextStore.addMoreSuperText(S);
|
|
42350
42350
|
n.editor && n.editor.commands.insertContentAt(i.from, {
|
|
42351
42351
|
type: "superText",
|
|
42352
|
-
attrs: { "data-id":
|
|
42352
|
+
attrs: { "data-id": _, "data-text": S }
|
|
42353
42353
|
}), o.value = !1;
|
|
42354
42354
|
}, y = async () => {
|
|
42355
|
-
const { view:
|
|
42355
|
+
const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, `
|
|
42356
42356
|
`).trim();
|
|
42357
|
-
if (
|
|
42357
|
+
if (A)
|
|
42358
42358
|
try {
|
|
42359
|
-
await navigator.clipboard.writeText(
|
|
42360
|
-
} catch (
|
|
42361
|
-
console.error("Failed to copy:",
|
|
42359
|
+
await navigator.clipboard.writeText(A);
|
|
42360
|
+
} catch (D) {
|
|
42361
|
+
console.error("Failed to copy:", D);
|
|
42362
42362
|
}
|
|
42363
42363
|
}, w = async () => {
|
|
42364
42364
|
try {
|
|
42365
|
-
const
|
|
42366
|
-
|
|
42367
|
-
} catch (
|
|
42368
|
-
console.error("Failed to paste:",
|
|
42365
|
+
const S = await navigator.clipboard.readText();
|
|
42366
|
+
S && n.editor && n.editor.commands.insertContent(S);
|
|
42367
|
+
} catch (S) {
|
|
42368
|
+
console.error("Failed to paste:", S);
|
|
42369
42369
|
}
|
|
42370
|
-
}, x = async (
|
|
42371
|
-
if (
|
|
42370
|
+
}, x = async (S) => {
|
|
42371
|
+
if (S)
|
|
42372
42372
|
try {
|
|
42373
|
-
const
|
|
42374
|
-
l.value = !
|
|
42373
|
+
const _ = await navigator.clipboard.readText();
|
|
42374
|
+
l.value = !_.trim();
|
|
42375
42375
|
} catch {
|
|
42376
42376
|
l.value = !0;
|
|
42377
42377
|
}
|
|
42378
|
+
}, C = () => {
|
|
42379
|
+
if (!n.editor) return;
|
|
42380
|
+
const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, " ").trim();
|
|
42381
|
+
i.from = k, i.to = T, i.text = A, s.value = A;
|
|
42382
|
+
let D = "";
|
|
42383
|
+
_.doc.nodesBetween(k, T, (I) => {
|
|
42384
|
+
var B;
|
|
42385
|
+
(B = I.attrs) != null && B.id && (D = I.attrs.id);
|
|
42386
|
+
}), a.value = D, o.value = !0;
|
|
42378
42387
|
};
|
|
42379
|
-
return e({ toggleDialog: p, openDialog: h, closeDialog: m }), (
|
|
42380
|
-
const
|
|
42388
|
+
return e({ toggleDialog: p, openDialog: h, closeDialog: m }), (S, _) => {
|
|
42389
|
+
const k = sd, T = s0, A = i0, D = o0, I = r0;
|
|
42381
42390
|
return N(), xe(et, null, [
|
|
42382
|
-
|
|
42391
|
+
P(k, {
|
|
42383
42392
|
open: o.value,
|
|
42384
|
-
editor:
|
|
42393
|
+
editor: S.editor,
|
|
42385
42394
|
"super-text-init": s.value,
|
|
42386
42395
|
"super-text-id": a.value,
|
|
42387
42396
|
onClose: p,
|
|
42388
42397
|
onSave: g
|
|
42389
42398
|
}, null, 8, ["open", "editor", "super-text-init", "super-text-id"]),
|
|
42390
|
-
|
|
42399
|
+
P(I, { "onUpdate:open": x }, {
|
|
42391
42400
|
default: M(() => [
|
|
42392
|
-
|
|
42401
|
+
P(T, {
|
|
42393
42402
|
as: "template",
|
|
42394
42403
|
class: "relative",
|
|
42395
|
-
disabled: b(u)
|
|
42404
|
+
disabled: b(u),
|
|
42405
|
+
onDblclick: Qn(C, ["prevent", "stop"])
|
|
42396
42406
|
}, {
|
|
42397
42407
|
default: M(() => [
|
|
42398
|
-
te(
|
|
42408
|
+
te(S.$slots, "default")
|
|
42399
42409
|
]),
|
|
42400
42410
|
_: 3
|
|
42401
42411
|
}, 8, ["disabled"]),
|
|
42402
|
-
D
|
|
42412
|
+
P(D, null, {
|
|
42403
42413
|
default: M(() => [
|
|
42404
|
-
|
|
42414
|
+
P(A, { onSelect: h }, {
|
|
42405
42415
|
default: M(() => [
|
|
42406
42416
|
lt(Fe(b(r)("editor.inputSuper")), 1)
|
|
42407
42417
|
]),
|
|
42408
42418
|
_: 1
|
|
42409
42419
|
}),
|
|
42410
|
-
|
|
42420
|
+
P(A, { onSelect: y }, {
|
|
42411
42421
|
default: M(() => [
|
|
42412
42422
|
lt(Fe(b(r)("editor.copy")), 1)
|
|
42413
42423
|
]),
|
|
42414
42424
|
_: 1
|
|
42415
42425
|
}),
|
|
42416
|
-
|
|
42426
|
+
P(A, {
|
|
42417
42427
|
disabled: l.value,
|
|
42418
42428
|
onSelect: w
|
|
42419
42429
|
}, {
|
|
@@ -42475,13 +42485,13 @@ const wee = {
|
|
|
42475
42485
|
}, {
|
|
42476
42486
|
default: M(() => [
|
|
42477
42487
|
ne("div", wee, [
|
|
42478
|
-
|
|
42488
|
+
P(x, {
|
|
42479
42489
|
mode: u.value ? b(Ct).REPORT : b(Ct).EDITOR,
|
|
42480
42490
|
editor: y.editor,
|
|
42481
42491
|
"super-text-store": b(r)
|
|
42482
42492
|
}, {
|
|
42483
42493
|
default: M(() => [
|
|
42484
|
-
|
|
42494
|
+
P(b(OC), {
|
|
42485
42495
|
class: "umo-page-node-content",
|
|
42486
42496
|
style: Jt({
|
|
42487
42497
|
height: m.value
|
|
@@ -42568,10 +42578,10 @@ const Eee = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
|
42568
42578
|
const k = s.before(s.depth - (x - 1));
|
|
42569
42579
|
e.replace(k, s.after(-C), new Ne(w, 4 - x, 0));
|
|
42570
42580
|
let T = -1;
|
|
42571
|
-
e.doc.nodesBetween(k, e.doc.content.size, (A,
|
|
42581
|
+
e.doc.nodesBetween(k, e.doc.content.size, (A, D) => {
|
|
42572
42582
|
if (T > -1)
|
|
42573
42583
|
return !1;
|
|
42574
|
-
A.isTextblock && A.content.size === 0 && (T =
|
|
42584
|
+
A.isTextblock && A.content.size === 0 && (T = D + 1);
|
|
42575
42585
|
}), T > -1 && e.setSelection(Ke.near(e.doc.resolve(T))), e.scrollIntoView();
|
|
42576
42586
|
}
|
|
42577
42587
|
return !0;
|
|
@@ -42883,7 +42893,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
42883
42893
|
}, {
|
|
42884
42894
|
default: M(() => [
|
|
42885
42895
|
(N(!0), xe(et, null, $t(s.value, (m, g) => (N(), xe(et, { key: g }, [
|
|
42886
|
-
|
|
42896
|
+
P(b(lu), {
|
|
42887
42897
|
checked: a.value === m.value,
|
|
42888
42898
|
onClick: (y) => u(m)
|
|
42889
42899
|
}, {
|
|
@@ -42998,17 +43008,17 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
42998
43008
|
return (i, s) => {
|
|
42999
43009
|
const a = ou, l = ru, u = iu;
|
|
43000
43010
|
return N(), xe("div", Mee, [
|
|
43001
|
-
|
|
43011
|
+
P(u, null, {
|
|
43002
43012
|
default: M(() => [
|
|
43003
|
-
|
|
43013
|
+
P(l, { "delay-duration": 0 }, {
|
|
43004
43014
|
default: M(() => [
|
|
43005
|
-
|
|
43015
|
+
P(a, null, {
|
|
43006
43016
|
default: M(() => [
|
|
43007
43017
|
ne("button", {
|
|
43008
43018
|
class: "btn",
|
|
43009
43019
|
onClick: s[0] || (s[0] = (d) => o(!0))
|
|
43010
43020
|
}, [
|
|
43011
|
-
|
|
43021
|
+
P(b(hn), {
|
|
43012
43022
|
name: "Plus",
|
|
43013
43023
|
class: "w-6 h-6"
|
|
43014
43024
|
})
|
|
@@ -43016,7 +43026,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
43016
43026
|
]),
|
|
43017
43027
|
_: 1
|
|
43018
43028
|
}),
|
|
43019
|
-
|
|
43029
|
+
P(b(Ta), null, {
|
|
43020
43030
|
default: M(() => s[2] || (s[2] = [
|
|
43021
43031
|
lt(" 글꼴 크기 크게 ")
|
|
43022
43032
|
])),
|
|
@@ -43028,18 +43038,18 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
43028
43038
|
]),
|
|
43029
43039
|
_: 1
|
|
43030
43040
|
}),
|
|
43031
|
-
|
|
43041
|
+
P(u, null, {
|
|
43032
43042
|
default: M(() => [
|
|
43033
|
-
|
|
43043
|
+
P(l, { "delay-duration": 0 }, {
|
|
43034
43044
|
default: M(() => [
|
|
43035
|
-
|
|
43045
|
+
P(a, null, {
|
|
43036
43046
|
default: M(() => [
|
|
43037
43047
|
ne("button", {
|
|
43038
43048
|
class: "btn",
|
|
43039
43049
|
onClick: s[1] || (s[1] = (d) => o(!1)),
|
|
43040
43050
|
disabled: b(n)
|
|
43041
43051
|
}, [
|
|
43042
|
-
|
|
43052
|
+
P(b(hn), {
|
|
43043
43053
|
name: "Minus",
|
|
43044
43054
|
class: "w-6 h-6"
|
|
43045
43055
|
})
|
|
@@ -43047,7 +43057,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
43047
43057
|
]),
|
|
43048
43058
|
_: 1
|
|
43049
43059
|
}),
|
|
43050
|
-
|
|
43060
|
+
P(b(Ta), null, {
|
|
43051
43061
|
default: M(() => s[3] || (s[3] = [
|
|
43052
43062
|
lt(" 글꼴 크기 작게 ")
|
|
43053
43063
|
])),
|
|
@@ -43313,8 +43323,8 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
43313
43323
|
h: 0,
|
|
43314
43324
|
dir: ""
|
|
43315
43325
|
}), a = Y(() => {
|
|
43316
|
-
const { src: _, alt: k, width: T, height: A, flipX:
|
|
43317
|
-
|
|
43326
|
+
const { src: _, alt: k, width: T, height: A, flipX: D, flipY: I } = e.node.attrs, B = [];
|
|
43327
|
+
D && B.push("rotateX(180deg)"), I && B.push("rotateY(180deg)");
|
|
43318
43328
|
const V = B.join(" ");
|
|
43319
43329
|
return {
|
|
43320
43330
|
src: _ || void 0,
|
|
@@ -43343,14 +43353,14 @@ const Ow = (t) => t.command(({ tr: e }) => {
|
|
|
43343
43353
|
}, q8);
|
|
43344
43354
|
function m(_, k) {
|
|
43345
43355
|
_.preventDefault(), _.stopPropagation();
|
|
43346
|
-
const { width: T, height: A } = b(o),
|
|
43347
|
-
let I = Number(e.node.attrs.width) || T, B = Number(e.node.attrs.height) || Math.round(I /
|
|
43356
|
+
const { width: T, height: A } = b(o), D = T / A;
|
|
43357
|
+
let I = Number(e.node.attrs.width) || T, B = Number(e.node.attrs.height) || Math.round(I / D);
|
|
43348
43358
|
const V = b(r).width;
|
|
43349
|
-
I = Math.min(I > V ? V : I, V), B = Math.round(I /
|
|
43359
|
+
I = Math.min(I > V ? V : I, V), B = Math.round(I / D), Object.assign(s.value, { x: _.clientX, y: _.clientY, w: I, h: B, dir: k }), i.value = !0, w();
|
|
43350
43360
|
}
|
|
43351
43361
|
const g = Vt.throttle((_) => {
|
|
43352
43362
|
if (!b(i)) return;
|
|
43353
|
-
const { x: k, y: T, w: A, dir:
|
|
43363
|
+
const { x: k, y: T, w: A, dir: D } = b(s), I = (_.clientX - k) * (/l/.test(D) ? -1 : 1), B = ZB(A + I, TG, b(r).width);
|
|
43354
43364
|
e.updateAttributes({ width: B });
|
|
43355
43365
|
}, q8);
|
|
43356
43366
|
function y(_) {
|
|
@@ -43851,14 +43861,14 @@ const vv = Qt.create({
|
|
|
43851
43861
|
const y = n7, w = t7, x = e7, C = Zee, S = QS, _ = ZS, k = YS;
|
|
43852
43862
|
return N(), $(k, { open: m.open }, {
|
|
43853
43863
|
default: M(() => [
|
|
43854
|
-
|
|
43864
|
+
P(_, {
|
|
43855
43865
|
isOverlayTransparent: "",
|
|
43856
43866
|
class: "p-2.5 gap-0 gap-y-2.5 border-none w-[calc(100%-40px)] !shadow-ed rounded-[5px]"
|
|
43857
43867
|
}, {
|
|
43858
43868
|
default: M(() => [
|
|
43859
|
-
|
|
43869
|
+
P(x, { class: "text-left flex-row justify-between" }, {
|
|
43860
43870
|
default: M(() => [
|
|
43861
|
-
|
|
43871
|
+
P(y, { class: "text-base font-normal" }, {
|
|
43862
43872
|
default: M(() => [
|
|
43863
43873
|
lt(Fe(m.title ? m.title : b(o)("editor.superinput")), 1)
|
|
43864
43874
|
]),
|
|
@@ -43866,16 +43876,16 @@ const vv = Qt.create({
|
|
|
43866
43876
|
}),
|
|
43867
43877
|
ne("div", Qee, [
|
|
43868
43878
|
Io(ne("button", { onClick: h }, [
|
|
43869
|
-
|
|
43879
|
+
P(b(b_), { icon: "lucide:edit-2" })
|
|
43870
43880
|
], 512), [
|
|
43871
43881
|
[zi, a.value]
|
|
43872
43882
|
]),
|
|
43873
|
-
|
|
43883
|
+
P(w, {
|
|
43874
43884
|
class: "outline-none",
|
|
43875
43885
|
onClick: d
|
|
43876
43886
|
}, {
|
|
43877
43887
|
default: M(() => [
|
|
43878
|
-
|
|
43888
|
+
P(b($g), { class: "w-5 h-5" }),
|
|
43879
43889
|
ne("span", ete, Fe(b(o)("editor.close")), 1)
|
|
43880
43890
|
]),
|
|
43881
43891
|
_: 1
|
|
@@ -43884,13 +43894,13 @@ const vv = Qt.create({
|
|
|
43884
43894
|
]),
|
|
43885
43895
|
_: 1
|
|
43886
43896
|
}),
|
|
43887
|
-
|
|
43888
|
-
|
|
43897
|
+
P(C, { class: "hidden" }),
|
|
43898
|
+
P(r7, {
|
|
43889
43899
|
isReadOnly: a.value,
|
|
43890
43900
|
modelValue: i.value,
|
|
43891
43901
|
"onUpdate:modelValue": g[0] || (g[0] = (T) => i.value = T)
|
|
43892
43902
|
}, null, 8, ["isReadOnly", "modelValue"]),
|
|
43893
|
-
|
|
43903
|
+
P(S, { class: "flex-row justify-between" }, {
|
|
43894
43904
|
default: M(() => [
|
|
43895
43905
|
Io(ne("button", {
|
|
43896
43906
|
onClick: g[1] || (g[1] = (T) => n("delete"))
|
|
@@ -43970,7 +43980,7 @@ const vv = Qt.create({
|
|
|
43970
43980
|
n.value = !0, s && (a.value = !0);
|
|
43971
43981
|
}
|
|
43972
43982
|
return (x, C) => {
|
|
43973
|
-
const S = Dr, _ = s0, k = i0, T = o0, A = r0,
|
|
43983
|
+
const S = Dr, _ = s0, k = i0, T = o0, A = r0, D = sd;
|
|
43974
43984
|
return N(), $(b(Ha), {
|
|
43975
43985
|
as: "span",
|
|
43976
43986
|
class: ut(["w-fit text-inherit super-text align-middle", {
|
|
@@ -43981,14 +43991,14 @@ const vv = Qt.create({
|
|
|
43981
43991
|
contenteditable: "false"
|
|
43982
43992
|
}, {
|
|
43983
43993
|
default: M(() => [
|
|
43984
|
-
|
|
43994
|
+
P(A, null, {
|
|
43985
43995
|
default: M(() => [
|
|
43986
|
-
|
|
43996
|
+
P(_, {
|
|
43987
43997
|
as: "template",
|
|
43988
43998
|
class: "relative"
|
|
43989
43999
|
}, {
|
|
43990
44000
|
default: M(() => [
|
|
43991
|
-
|
|
44001
|
+
P(S, {
|
|
43992
44002
|
variant: "ghost",
|
|
43993
44003
|
class: "!p-0 !m-0 !h-fit",
|
|
43994
44004
|
onDblclick: w,
|
|
@@ -43996,7 +44006,7 @@ const vv = Qt.create({
|
|
|
43996
44006
|
onMouseleave: g
|
|
43997
44007
|
}, {
|
|
43998
44008
|
default: M(() => [
|
|
43999
|
-
|
|
44009
|
+
P(b(hn), {
|
|
44000
44010
|
name: "fileEdit",
|
|
44001
44011
|
class: ut({
|
|
44002
44012
|
"w-[13px] h-auto": b(s)
|
|
@@ -44018,9 +44028,9 @@ const vv = Qt.create({
|
|
|
44018
44028
|
]),
|
|
44019
44029
|
_: 1
|
|
44020
44030
|
}),
|
|
44021
|
-
|
|
44031
|
+
P(T, null, {
|
|
44022
44032
|
default: M(() => [
|
|
44023
|
-
|
|
44033
|
+
P(k, {
|
|
44024
44034
|
onSelect: C[0] || (C[0] = (I) => n.value = !0)
|
|
44025
44035
|
}, {
|
|
44026
44036
|
default: M(() => [
|
|
@@ -44028,7 +44038,7 @@ const vv = Qt.create({
|
|
|
44028
44038
|
]),
|
|
44029
44039
|
_: 1
|
|
44030
44040
|
}),
|
|
44031
|
-
|
|
44041
|
+
P(k, { onSelect: y }, {
|
|
44032
44042
|
default: M(() => [
|
|
44033
44043
|
lt(Fe(x.$t("editor.super.delete")), 1)
|
|
44034
44044
|
]),
|
|
@@ -44050,7 +44060,7 @@ const vv = Qt.create({
|
|
|
44050
44060
|
onClose: C[2] || (C[2] = (I) => n.value = !1),
|
|
44051
44061
|
onSave: h,
|
|
44052
44062
|
onDelete: y
|
|
44053
|
-
}, null, 8, ["open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(
|
|
44063
|
+
}, null, 8, ["open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(D, {
|
|
44054
44064
|
key: 0,
|
|
44055
44065
|
open: n.value,
|
|
44056
44066
|
editor: e.editor,
|
|
@@ -44235,7 +44245,7 @@ const vv = Qt.create({
|
|
|
44235
44245
|
n.value = !0, s && (a.value = !0);
|
|
44236
44246
|
}
|
|
44237
44247
|
return (x, C) => {
|
|
44238
|
-
const S = Dr, _ = s0, k = i0, T = o0, A = r0,
|
|
44248
|
+
const S = Dr, _ = s0, k = i0, T = o0, A = r0, D = sd;
|
|
44239
44249
|
return N(), $(b(Ha), {
|
|
44240
44250
|
as: "span",
|
|
44241
44251
|
class: ut(["w-fit text-inherit super-text align-middle", {
|
|
@@ -44246,14 +44256,14 @@ const vv = Qt.create({
|
|
|
44246
44256
|
contenteditable: "false"
|
|
44247
44257
|
}, {
|
|
44248
44258
|
default: M(() => [
|
|
44249
|
-
|
|
44259
|
+
P(A, null, {
|
|
44250
44260
|
default: M(() => [
|
|
44251
|
-
|
|
44261
|
+
P(_, {
|
|
44252
44262
|
as: "template",
|
|
44253
44263
|
class: "relative"
|
|
44254
44264
|
}, {
|
|
44255
44265
|
default: M(() => [
|
|
44256
|
-
|
|
44266
|
+
P(S, {
|
|
44257
44267
|
variant: "ghost",
|
|
44258
44268
|
class: "!p-0 !m-0 !h-fit font-normal !text-ed-blue",
|
|
44259
44269
|
onClick: w,
|
|
@@ -44261,7 +44271,7 @@ const vv = Qt.create({
|
|
|
44261
44271
|
onMouseleave: g
|
|
44262
44272
|
}, {
|
|
44263
44273
|
default: M(() => [
|
|
44264
|
-
|
|
44274
|
+
P(b(hn), {
|
|
44265
44275
|
name: "plan",
|
|
44266
44276
|
class: ut({
|
|
44267
44277
|
"w-[18px] h-auto pr-1": b(s)
|
|
@@ -44289,9 +44299,9 @@ const vv = Qt.create({
|
|
|
44289
44299
|
]),
|
|
44290
44300
|
_: 1
|
|
44291
44301
|
}),
|
|
44292
|
-
|
|
44302
|
+
P(T, null, {
|
|
44293
44303
|
default: M(() => [
|
|
44294
|
-
|
|
44304
|
+
P(k, {
|
|
44295
44305
|
onSelect: C[0] || (C[0] = (I) => n.value = !0)
|
|
44296
44306
|
}, {
|
|
44297
44307
|
default: M(() => [
|
|
@@ -44299,7 +44309,7 @@ const vv = Qt.create({
|
|
|
44299
44309
|
]),
|
|
44300
44310
|
_: 1
|
|
44301
44311
|
}),
|
|
44302
|
-
|
|
44312
|
+
P(k, { onSelect: y }, {
|
|
44303
44313
|
default: M(() => [
|
|
44304
44314
|
lt(Fe(x.$t("editor.configPlan.delete")), 1)
|
|
44305
44315
|
]),
|
|
@@ -44322,7 +44332,7 @@ const vv = Qt.create({
|
|
|
44322
44332
|
onClose: C[2] || (C[2] = (I) => n.value = !1),
|
|
44323
44333
|
onSave: h,
|
|
44324
44334
|
onDelete: y
|
|
44325
|
-
}, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(
|
|
44335
|
+
}, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(D, {
|
|
44326
44336
|
key: 0,
|
|
44327
44337
|
open: n.value,
|
|
44328
44338
|
editor: e.editor,
|
|
@@ -44548,8 +44558,8 @@ function lte(t) {
|
|
|
44548
44558
|
});
|
|
44549
44559
|
const T = C && C[k];
|
|
44550
44560
|
if (T) {
|
|
44551
|
-
const A = (_ + k) % e * 2,
|
|
44552
|
-
|
|
44561
|
+
const A = (_ + k) % e * 2, D = s[A];
|
|
44562
|
+
D == null || D != T && s[A + 1] == 1 ? (s[A] = T, s[A + 1] = 1) : D == T && s[A + 1]++;
|
|
44553
44563
|
}
|
|
44554
44564
|
}
|
|
44555
44565
|
}
|
|
@@ -46481,7 +46491,7 @@ const Af = ({ editor: t }) => {
|
|
|
46481
46491
|
}
|
|
46482
46492
|
return (d, p) => (N(), $(b(eu), null, {
|
|
46483
46493
|
default: M(() => [
|
|
46484
|
-
|
|
46494
|
+
P(b(nu), { "as-child": "" }, {
|
|
46485
46495
|
default: M(() => [
|
|
46486
46496
|
ne("button", {
|
|
46487
46497
|
disabled: t.disabled,
|
|
@@ -46492,7 +46502,7 @@ const Af = ({ editor: t }) => {
|
|
|
46492
46502
|
]),
|
|
46493
46503
|
_: 3
|
|
46494
46504
|
}),
|
|
46495
|
-
|
|
46505
|
+
P(b(tu), {
|
|
46496
46506
|
class: "w-full",
|
|
46497
46507
|
align: "start",
|
|
46498
46508
|
side: "bottom"
|
|
@@ -46548,7 +46558,7 @@ const Af = ({ editor: t }) => {
|
|
|
46548
46558
|
}, {
|
|
46549
46559
|
trigger: M(() => [
|
|
46550
46560
|
ne("div", Ene, [
|
|
46551
|
-
|
|
46561
|
+
P(at, {
|
|
46552
46562
|
icon: r.icon,
|
|
46553
46563
|
tooltip: r.tooltip,
|
|
46554
46564
|
disabled: r.disabled,
|
|
@@ -46682,7 +46692,7 @@ const Af = ({ editor: t }) => {
|
|
|
46682
46692
|
}, {
|
|
46683
46693
|
default: M(() => [
|
|
46684
46694
|
ne("div", Sne, [
|
|
46685
|
-
|
|
46695
|
+
P(b(hn), {
|
|
46686
46696
|
name: l.iconName,
|
|
46687
46697
|
class: "h3 w-3"
|
|
46688
46698
|
}, null, 8, ["name"]),
|
|
@@ -47034,7 +47044,7 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
47034
47044
|
view() {
|
|
47035
47045
|
return {
|
|
47036
47046
|
update: async (x, C) => {
|
|
47037
|
-
var S, _, k, T, A,
|
|
47047
|
+
var S, _, k, T, A, D, I;
|
|
47038
47048
|
const B = (S = this.key) === null || S === void 0 ? void 0 : S.getState(C), V = (_ = this.key) === null || _ === void 0 ? void 0 : _.getState(x.state), ee = B.active && V.active && B.range.from !== V.range.from, he = !B.active && V.active, Oe = B.active && !V.active, q = !he && !Oe && B.query !== V.query, G = he || ee && q, F = q || ee, Q = Oe || ee && q;
|
|
47039
47049
|
if (!G && !F && !Q)
|
|
47040
47050
|
return;
|
|
@@ -47061,7 +47071,7 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
47061
47071
|
}, G && ((k = y == null ? void 0 : y.onBeforeStart) === null || k === void 0 || k.call(y, g)), F && ((T = y == null ? void 0 : y.onBeforeUpdate) === null || T === void 0 || T.call(y, g)), (F || G) && (g.items = await d({
|
|
47062
47072
|
editor: e,
|
|
47063
47073
|
query: ie.query
|
|
47064
|
-
})), Q && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), F && ((
|
|
47074
|
+
})), Q && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), F && ((D = y == null ? void 0 : y.onUpdate) === null || D === void 0 || D.call(y, g)), G && ((I = y == null ? void 0 : y.onStart) === null || I === void 0 || I.call(y, g));
|
|
47065
47075
|
},
|
|
47066
47076
|
destroy: () => {
|
|
47067
47077
|
var x;
|
|
@@ -47085,8 +47095,8 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
|
|
|
47085
47095
|
},
|
|
47086
47096
|
// Apply changes to the plugin state from a view transaction.
|
|
47087
47097
|
apply(x, C, S, _) {
|
|
47088
|
-
const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty:
|
|
47089
|
-
if (B.composing = T, k && (
|
|
47098
|
+
const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty: D, from: I } = A, B = { ...C };
|
|
47099
|
+
if (B.composing = T, k && (D || e.view.composing)) {
|
|
47090
47100
|
(I < C.range.from || I > C.range.to) && !T && !C.composing && (B.active = !1);
|
|
47091
47101
|
const V = m({
|
|
47092
47102
|
char: n,
|
|
@@ -48080,53 +48090,53 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48080
48090
|
"data-drag-handle": ""
|
|
48081
48091
|
}, {
|
|
48082
48092
|
default: M(() => [
|
|
48083
|
-
|
|
48093
|
+
P(b(eu), {
|
|
48084
48094
|
"default-open": "",
|
|
48085
48095
|
modal: ""
|
|
48086
48096
|
}, {
|
|
48087
48097
|
default: M(() => [
|
|
48088
|
-
|
|
48098
|
+
P(b(nu), { "as-child": "" }, {
|
|
48089
48099
|
default: M(() => [
|
|
48090
48100
|
ne("div", pre, [
|
|
48091
48101
|
ne("div", hre, [
|
|
48092
48102
|
ne("div", mre, [
|
|
48093
|
-
|
|
48103
|
+
P(b(hn), {
|
|
48094
48104
|
name: "ImageUp",
|
|
48095
48105
|
class: "w-6 h-6"
|
|
48096
48106
|
}),
|
|
48097
48107
|
ne("span", gre, Fe(b(o)("editor.image.dialog.title")), 1)
|
|
48098
48108
|
]),
|
|
48099
|
-
|
|
48109
|
+
P(b(hn), {
|
|
48100
48110
|
name: "Trash2",
|
|
48101
48111
|
class: "hover:text-ed-foreground",
|
|
48102
|
-
onClick:
|
|
48112
|
+
onClick: Qn(a, ["stop"])
|
|
48103
48113
|
})
|
|
48104
48114
|
])
|
|
48105
48115
|
])
|
|
48106
48116
|
]),
|
|
48107
48117
|
_: 1
|
|
48108
48118
|
}),
|
|
48109
|
-
|
|
48119
|
+
P(b(tu), {
|
|
48110
48120
|
"trap-focus": "",
|
|
48111
48121
|
class: "w-full",
|
|
48112
48122
|
"on-open-auto-focus": (p) => p.preventDefault()
|
|
48113
48123
|
}, {
|
|
48114
48124
|
default: M(() => [
|
|
48115
|
-
|
|
48125
|
+
P(b(Jb), {
|
|
48116
48126
|
"default-value": "upload",
|
|
48117
48127
|
class: "w-[300px] sm:w-[400px]",
|
|
48118
48128
|
"activation-mode": "manual"
|
|
48119
48129
|
}, {
|
|
48120
48130
|
default: M(() => [
|
|
48121
|
-
|
|
48131
|
+
P(b(Xb), { class: "grid w-full grid-cols-2" }, {
|
|
48122
48132
|
default: M(() => [
|
|
48123
|
-
|
|
48133
|
+
P(b(Ec), { value: "upload" }, {
|
|
48124
48134
|
default: M(() => [
|
|
48125
48135
|
lt(Fe(b(o)("editor.image.dialog.tab.upload")), 1)
|
|
48126
48136
|
]),
|
|
48127
48137
|
_: 1
|
|
48128
48138
|
}),
|
|
48129
|
-
|
|
48139
|
+
P(b(Ec), { value: "link" }, {
|
|
48130
48140
|
default: M(() => [
|
|
48131
48141
|
lt(Fe(b(o)("editor.image.dialog.tab.url")), 1)
|
|
48132
48142
|
]),
|
|
@@ -48135,9 +48145,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48135
48145
|
]),
|
|
48136
48146
|
_: 1
|
|
48137
48147
|
}),
|
|
48138
|
-
|
|
48148
|
+
P(b(Jp), { value: "upload" }, {
|
|
48139
48149
|
default: M(() => [
|
|
48140
|
-
|
|
48150
|
+
P(b(Dr), {
|
|
48141
48151
|
class: "w-full mt-1",
|
|
48142
48152
|
size: "sm",
|
|
48143
48153
|
onClick: l
|
|
@@ -48159,10 +48169,10 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48159
48169
|
]),
|
|
48160
48170
|
_: 1
|
|
48161
48171
|
}),
|
|
48162
|
-
|
|
48172
|
+
P(b(Jp), { value: "link" }, {
|
|
48163
48173
|
default: M(() => [
|
|
48164
48174
|
ne("div", bre, [
|
|
48165
|
-
|
|
48175
|
+
P(b(Dl), {
|
|
48166
48176
|
modelValue: n.value,
|
|
48167
48177
|
"onUpdate:modelValue": d[0] || (d[0] = (p) => n.value = p),
|
|
48168
48178
|
type: "url",
|
|
@@ -48170,7 +48180,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48170
48180
|
required: "",
|
|
48171
48181
|
placeholder: b(o)("editor.image.dialog.placeholder")
|
|
48172
48182
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
48173
|
-
|
|
48183
|
+
P(b(Dr), { onClick: s }, {
|
|
48174
48184
|
default: M(() => [
|
|
48175
48185
|
lt(Fe(b(o)("editor.image.dialog.button.apply")), 1)
|
|
48176
48186
|
]),
|
|
@@ -48314,59 +48324,59 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48314
48324
|
"data-drag-handle": ""
|
|
48315
48325
|
}, {
|
|
48316
48326
|
default: M(() => [
|
|
48317
|
-
|
|
48327
|
+
P(b(eu), {
|
|
48318
48328
|
"default-open": "",
|
|
48319
48329
|
modal: ""
|
|
48320
48330
|
}, {
|
|
48321
48331
|
default: M(() => [
|
|
48322
|
-
|
|
48332
|
+
P(b(nu), { "as-child": "" }, {
|
|
48323
48333
|
default: M(() => [
|
|
48324
48334
|
ne("div", _re, [
|
|
48325
48335
|
r.value ? (N(), xe("div", Ere, [
|
|
48326
|
-
|
|
48336
|
+
P(b(hn), {
|
|
48327
48337
|
class: "animate-spin w-6 h-6",
|
|
48328
48338
|
name: "LoaderCircle"
|
|
48329
48339
|
}),
|
|
48330
48340
|
ne("span", null, Fe(b(i)("editor.video.dialog.uploading")) + "...", 1)
|
|
48331
48341
|
])) : (N(), xe("div", Cre, [
|
|
48332
48342
|
ne("div", Sre, [
|
|
48333
|
-
|
|
48343
|
+
P(b(hn), {
|
|
48334
48344
|
name: "Video",
|
|
48335
48345
|
class: "w-6 h-6"
|
|
48336
48346
|
}),
|
|
48337
48347
|
ne("span", Tre, Fe(b(i)("editor.video.dialog.title")), 1)
|
|
48338
48348
|
]),
|
|
48339
|
-
|
|
48349
|
+
P(b(hn), {
|
|
48340
48350
|
name: "Trash2",
|
|
48341
48351
|
class: "hover:text-ed-foreground",
|
|
48342
|
-
onClick:
|
|
48352
|
+
onClick: Qn(l, ["stop"])
|
|
48343
48353
|
})
|
|
48344
48354
|
]))
|
|
48345
48355
|
])
|
|
48346
48356
|
]),
|
|
48347
48357
|
_: 1
|
|
48348
48358
|
}),
|
|
48349
|
-
|
|
48359
|
+
P(b(tu), {
|
|
48350
48360
|
"trap-focus": "",
|
|
48351
48361
|
class: "w-full",
|
|
48352
48362
|
"on-open-auto-focus": (h) => h.preventDefault()
|
|
48353
48363
|
}, {
|
|
48354
48364
|
default: M(() => [
|
|
48355
|
-
|
|
48365
|
+
P(b(Jb), {
|
|
48356
48366
|
"default-value": "upload",
|
|
48357
48367
|
class: "w-[400px]",
|
|
48358
48368
|
"activation-mode": "manual"
|
|
48359
48369
|
}, {
|
|
48360
48370
|
default: M(() => [
|
|
48361
|
-
|
|
48371
|
+
P(b(Xb), { class: "grid w-full grid-cols-2" }, {
|
|
48362
48372
|
default: M(() => [
|
|
48363
|
-
|
|
48373
|
+
P(b(Ec), { value: "upload" }, {
|
|
48364
48374
|
default: M(() => [
|
|
48365
48375
|
lt(Fe(b(i)("editor.video.dialog.tab.upload")), 1)
|
|
48366
48376
|
]),
|
|
48367
48377
|
_: 1
|
|
48368
48378
|
}),
|
|
48369
|
-
|
|
48379
|
+
P(b(Ec), { value: "link" }, {
|
|
48370
48380
|
default: M(() => [
|
|
48371
48381
|
lt(Fe(b(i)("editor.video.dialog.link")), 1)
|
|
48372
48382
|
]),
|
|
@@ -48375,9 +48385,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48375
48385
|
]),
|
|
48376
48386
|
_: 1
|
|
48377
48387
|
}),
|
|
48378
|
-
|
|
48388
|
+
P(b(Jp), { value: "upload" }, {
|
|
48379
48389
|
default: M(() => [
|
|
48380
|
-
|
|
48390
|
+
P(b(Dr), {
|
|
48381
48391
|
class: "w-full mt-1",
|
|
48382
48392
|
size: "sm",
|
|
48383
48393
|
onClick: u
|
|
@@ -48399,13 +48409,13 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48399
48409
|
]),
|
|
48400
48410
|
_: 1
|
|
48401
48411
|
}),
|
|
48402
|
-
|
|
48412
|
+
P(b(Jp), { value: "link" }, {
|
|
48403
48413
|
default: M(() => [
|
|
48404
48414
|
ne("form", {
|
|
48405
|
-
onSubmit:
|
|
48415
|
+
onSubmit: Qn(a, ["prevent"])
|
|
48406
48416
|
}, [
|
|
48407
48417
|
ne("div", kre, [
|
|
48408
|
-
|
|
48418
|
+
P(b(Dl), {
|
|
48409
48419
|
modelValue: n.value,
|
|
48410
48420
|
"onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
|
|
48411
48421
|
type: "url",
|
|
@@ -48413,7 +48423,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
|
|
|
48413
48423
|
required: "",
|
|
48414
48424
|
placeholder: b(i)("editor.video.dialog.placeholder")
|
|
48415
48425
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
48416
|
-
|
|
48426
|
+
P(b(Dr), { type: "submit" }, {
|
|
48417
48427
|
default: M(() => [
|
|
48418
48428
|
lt(Fe(b(i)("editor.video.dialog.button.apply")), 1)
|
|
48419
48429
|
]),
|
|
@@ -49477,14 +49487,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bo
|
|
|
49477
49487
|
hasStandardBrowserWebWorkerEnv: Poe,
|
|
49478
49488
|
navigator: lb,
|
|
49479
49489
|
origin: Boe
|
|
49480
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
49490
|
+
}, Symbol.toStringTag, { value: "Module" })), ir = {
|
|
49481
49491
|
...Foe,
|
|
49482
49492
|
...Ioe
|
|
49483
49493
|
};
|
|
49484
49494
|
function $oe(t, e) {
|
|
49485
|
-
return d0(t, new
|
|
49495
|
+
return d0(t, new ir.classes.URLSearchParams(), Object.assign({
|
|
49486
49496
|
visitor: function(n, r, o, i) {
|
|
49487
|
-
return
|
|
49497
|
+
return ir.isNode && ae.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
49488
49498
|
}
|
|
49489
49499
|
}, e));
|
|
49490
49500
|
}
|
|
@@ -49578,8 +49588,8 @@ const ld = {
|
|
|
49578
49588
|
maxContentLength: -1,
|
|
49579
49589
|
maxBodyLength: -1,
|
|
49580
49590
|
env: {
|
|
49581
|
-
FormData:
|
|
49582
|
-
Blob:
|
|
49591
|
+
FormData: ir.classes.FormData,
|
|
49592
|
+
Blob: ir.classes.Blob
|
|
49583
49593
|
},
|
|
49584
49594
|
validateStatus: function(e) {
|
|
49585
49595
|
return e >= 200 && e < 300;
|
|
@@ -49871,10 +49881,10 @@ const Xp = (t, e, n = 3) => {
|
|
|
49871
49881
|
total: t,
|
|
49872
49882
|
loaded: r
|
|
49873
49883
|
}), e[1]];
|
|
49874
|
-
}, ix = (t) => (...e) => ae.asap(() => t(...e)), Zoe =
|
|
49875
|
-
new URL(
|
|
49876
|
-
|
|
49877
|
-
) : () => !0, Qoe =
|
|
49884
|
+
}, ix = (t) => (...e) => ae.asap(() => t(...e)), Zoe = ir.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, ir.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
49885
|
+
new URL(ir.origin),
|
|
49886
|
+
ir.navigator && /(msie|trident)/i.test(ir.navigator.userAgent)
|
|
49887
|
+
) : () => !0, Qoe = ir.hasStandardBrowserEnv ? (
|
|
49878
49888
|
// Standard browser envs support document.cookie
|
|
49879
49889
|
{
|
|
49880
49890
|
write(t, e, n, r, o, i) {
|
|
@@ -49985,14 +49995,14 @@ const H7 = (t) => {
|
|
|
49985
49995
|
);
|
|
49986
49996
|
let l;
|
|
49987
49997
|
if (ae.isFormData(n)) {
|
|
49988
|
-
if (
|
|
49998
|
+
if (ir.hasStandardBrowserEnv || ir.hasStandardBrowserWebWorkerEnv)
|
|
49989
49999
|
s.setContentType(void 0);
|
|
49990
50000
|
else if ((l = s.getContentType()) !== !1) {
|
|
49991
50001
|
const [u, ...d] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
49992
50002
|
s.setContentType([u || "multipart/form-data", ...d].join("; "));
|
|
49993
50003
|
}
|
|
49994
50004
|
}
|
|
49995
|
-
if (
|
|
50005
|
+
if (ir.hasStandardBrowserEnv && (r && ae.isFunction(r) && (r = r(e)), r || r !== !1 && Zoe(e.url))) {
|
|
49996
50006
|
const u = o && i && Qoe.read(i);
|
|
49997
50007
|
u && s.set(o, u);
|
|
49998
50008
|
}
|
|
@@ -50048,7 +50058,7 @@ const H7 = (t) => {
|
|
|
50048
50058
|
w && (r(!S || S.type ? new mu(null, t, w) : S), w.abort(), w = null);
|
|
50049
50059
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
50050
50060
|
const C = Joe(o.url);
|
|
50051
|
-
if (C &&
|
|
50061
|
+
if (C && ir.protocols.indexOf(C) === -1) {
|
|
50052
50062
|
r(new vt("Unsupported protocol " + C + ":", vt.ERR_BAD_REQUEST, t));
|
|
50053
50063
|
return;
|
|
50054
50064
|
}
|
|
@@ -50142,7 +50152,7 @@ const H7 = (t) => {
|
|
|
50142
50152
|
}
|
|
50143
50153
|
}, uie = z7 && V7(() => {
|
|
50144
50154
|
let t = !1;
|
|
50145
|
-
const e = new Request(
|
|
50155
|
+
const e = new Request(ir.origin, {
|
|
50146
50156
|
body: new ReadableStream(),
|
|
50147
50157
|
method: "POST",
|
|
50148
50158
|
get duplex() {
|
|
@@ -50166,7 +50176,7 @@ const cie = async (t) => {
|
|
|
50166
50176
|
if (ae.isBlob(t))
|
|
50167
50177
|
return t.size;
|
|
50168
50178
|
if (ae.isSpecCompliantForm(t))
|
|
50169
|
-
return (await new Request(
|
|
50179
|
+
return (await new Request(ir.origin, {
|
|
50170
50180
|
method: "POST",
|
|
50171
50181
|
body: t
|
|
50172
50182
|
}).arrayBuffer()).byteLength;
|
|
@@ -50206,11 +50216,11 @@ const cie = async (t) => {
|
|
|
50206
50216
|
duplex: "half"
|
|
50207
50217
|
}), T;
|
|
50208
50218
|
if (ae.isFormData(r) && (T = k.headers.get("content-type")) && d.setContentType(T), k.body) {
|
|
50209
|
-
const [A,
|
|
50219
|
+
const [A, D] = ox(
|
|
50210
50220
|
w,
|
|
50211
50221
|
Xp(ix(l))
|
|
50212
50222
|
);
|
|
50213
|
-
r = ax(k.body, lx, A,
|
|
50223
|
+
r = ax(k.body, lx, A, D);
|
|
50214
50224
|
}
|
|
50215
50225
|
}
|
|
50216
50226
|
ae.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -50231,13 +50241,13 @@ const cie = async (t) => {
|
|
|
50231
50241
|
["status", "statusText", "headers"].forEach((I) => {
|
|
50232
50242
|
k[I] = C[I];
|
|
50233
50243
|
});
|
|
50234
|
-
const T = ae.toFiniteNumber(C.headers.get("content-length")), [A,
|
|
50244
|
+
const T = ae.toFiniteNumber(C.headers.get("content-length")), [A, D] = a && ox(
|
|
50235
50245
|
T,
|
|
50236
50246
|
Xp(ix(a), !0)
|
|
50237
50247
|
) || [];
|
|
50238
50248
|
C = new Response(
|
|
50239
50249
|
ax(C.body, lx, A, () => {
|
|
50240
|
-
|
|
50250
|
+
D && D(), y && y();
|
|
50241
50251
|
}),
|
|
50242
50252
|
k
|
|
50243
50253
|
);
|
|
@@ -50921,7 +50931,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
50921
50931
|
const { color: s } = e.editor.getAttributes("highlight");
|
|
50922
50932
|
r.highlight = s;
|
|
50923
50933
|
}), (s, a) => (N(), xe("div", wie, [
|
|
50924
|
-
|
|
50934
|
+
P(at, {
|
|
50925
50935
|
id: "highlight",
|
|
50926
50936
|
tooltip: s.tooltip,
|
|
50927
50937
|
disabled: s.disabled,
|
|
@@ -50967,7 +50977,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
50967
50977
|
]),
|
|
50968
50978
|
_: 1
|
|
50969
50979
|
}, 8, ["tooltip", "disabled", "tooltip-options"]),
|
|
50970
|
-
|
|
50980
|
+
P(IC, {
|
|
50971
50981
|
modelValue: n.value,
|
|
50972
50982
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
|
|
50973
50983
|
highlight: "",
|
|
@@ -50975,14 +50985,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
50975
50985
|
onChange: o
|
|
50976
50986
|
}, {
|
|
50977
50987
|
default: M(() => [
|
|
50978
|
-
|
|
50988
|
+
P(b(Dr), {
|
|
50979
50989
|
variant: "ghost",
|
|
50980
50990
|
size: "icon",
|
|
50981
50991
|
class: "w-3 h-[32px] rounded-l-none hover:bg-ed-muted-foreground/20",
|
|
50982
50992
|
disabled: s.disabled
|
|
50983
50993
|
}, {
|
|
50984
50994
|
default: M(() => [
|
|
50985
|
-
|
|
50995
|
+
P(b(hn), {
|
|
50986
50996
|
class: "w-3 h-3 text-zinc-500",
|
|
50987
50997
|
name: "MenuDown"
|
|
50988
50998
|
})
|
|
@@ -51061,10 +51071,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51061
51071
|
}
|
|
51062
51072
|
}, {
|
|
51063
51073
|
default: M(() => {
|
|
51064
|
-
var x, C, S, _, k, T, A,
|
|
51074
|
+
var x, C, S, _, k, T, A, D, I;
|
|
51065
51075
|
return [
|
|
51066
51076
|
ne("div", Tie, [
|
|
51067
|
-
|
|
51077
|
+
P(at, {
|
|
51068
51078
|
icon: "TablerColumnInsertLeft",
|
|
51069
51079
|
iconClass: "w-5 h-5",
|
|
51070
51080
|
tooltip: b(r)("editor.table.menu.insertColumnBefore"),
|
|
@@ -51074,7 +51084,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51074
51084
|
},
|
|
51075
51085
|
disabled: !((x = y.editor) != null && x.can().addColumnBefore())
|
|
51076
51086
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51077
|
-
|
|
51087
|
+
P(at, {
|
|
51078
51088
|
icon: "TablerColumnInsertRight",
|
|
51079
51089
|
tooltip: b(r)("editor.table.menu.insertColumnAfter"),
|
|
51080
51090
|
iconClass: "w-5 h-5",
|
|
@@ -51084,7 +51094,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51084
51094
|
},
|
|
51085
51095
|
disabled: !((C = y.editor) != null && C.can().addColumnAfter())
|
|
51086
51096
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51087
|
-
|
|
51097
|
+
P(at, {
|
|
51088
51098
|
icon: "TablerColumnRemove",
|
|
51089
51099
|
action: s,
|
|
51090
51100
|
iconClass: "w-5 h-5",
|
|
@@ -51094,11 +51104,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51094
51104
|
},
|
|
51095
51105
|
disabled: !((S = y.editor) != null && S.can().deleteColumn())
|
|
51096
51106
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51097
|
-
|
|
51107
|
+
P(b(Vi), {
|
|
51098
51108
|
orientation: "vertical",
|
|
51099
51109
|
class: "mx-1 me-2 h-[16px]"
|
|
51100
51110
|
}),
|
|
51101
|
-
|
|
51111
|
+
P(at, {
|
|
51102
51112
|
icon: "TablerRowInsertTop",
|
|
51103
51113
|
action: a,
|
|
51104
51114
|
iconClass: "w-5 h-5",
|
|
@@ -51108,7 +51118,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51108
51118
|
},
|
|
51109
51119
|
disabled: !((_ = y.editor) != null && _.can().addRowBefore())
|
|
51110
51120
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51111
|
-
|
|
51121
|
+
P(at, {
|
|
51112
51122
|
icon: "TablerRowInsertBottom",
|
|
51113
51123
|
action: l,
|
|
51114
51124
|
iconClass: "w-5 h-5",
|
|
@@ -51118,7 +51128,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51118
51128
|
},
|
|
51119
51129
|
disabled: !((k = y.editor) != null && k.can().addRowAfter())
|
|
51120
51130
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51121
|
-
|
|
51131
|
+
P(at, {
|
|
51122
51132
|
icon: "TablerRowRemove",
|
|
51123
51133
|
action: u,
|
|
51124
51134
|
iconClass: "w-5 h-5",
|
|
@@ -51128,11 +51138,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51128
51138
|
},
|
|
51129
51139
|
disabled: !((T = y.editor) != null && T.can().deleteRow())
|
|
51130
51140
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51131
|
-
|
|
51141
|
+
P(b(Vi), {
|
|
51132
51142
|
orientation: "vertical",
|
|
51133
51143
|
class: "mx-1 me-2 h-[16px]"
|
|
51134
51144
|
}),
|
|
51135
|
-
|
|
51145
|
+
P(at, {
|
|
51136
51146
|
icon: "TableCellsMerge",
|
|
51137
51147
|
action: d,
|
|
51138
51148
|
iconClass: "w-5 h-5",
|
|
@@ -51142,7 +51152,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51142
51152
|
},
|
|
51143
51153
|
disabled: !((A = y.editor) != null && A.can().mergeCells())
|
|
51144
51154
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51145
|
-
|
|
51155
|
+
P(at, {
|
|
51146
51156
|
icon: "TableCellsSplit",
|
|
51147
51157
|
action: p,
|
|
51148
51158
|
iconClass: "w-5 h-5",
|
|
@@ -51150,13 +51160,13 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51150
51160
|
"tooltip-options": {
|
|
51151
51161
|
sideOffset: 15
|
|
51152
51162
|
},
|
|
51153
|
-
disabled: !((
|
|
51163
|
+
disabled: !((D = y.editor) != null && D.can().splitCell())
|
|
51154
51164
|
}, null, 8, ["tooltip", "disabled"]),
|
|
51155
|
-
|
|
51165
|
+
P(b(Vi), {
|
|
51156
51166
|
orientation: "vertical",
|
|
51157
51167
|
class: "mx-1 me-2 h-[16px]"
|
|
51158
51168
|
}),
|
|
51159
|
-
|
|
51169
|
+
P(G7, {
|
|
51160
51170
|
editor: y.editor,
|
|
51161
51171
|
tooltip: b(r)("editor.table.menu.setCellsBgColor"),
|
|
51162
51172
|
action: m,
|
|
@@ -51164,7 +51174,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51164
51174
|
sideOffset: 15
|
|
51165
51175
|
}
|
|
51166
51176
|
}, null, 8, ["editor", "tooltip"]),
|
|
51167
|
-
|
|
51177
|
+
P(at, {
|
|
51168
51178
|
icon: "Trash2",
|
|
51169
51179
|
tooltip: b(r)("editor.table.menu.deleteTable"),
|
|
51170
51180
|
iconClass: "w-5 h-5",
|
|
@@ -51215,7 +51225,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51215
51225
|
default: M(() => [
|
|
51216
51226
|
ne("div", kie, [
|
|
51217
51227
|
ne("div", Aie, [
|
|
51218
|
-
|
|
51228
|
+
P(at, {
|
|
51219
51229
|
id: "panel-left",
|
|
51220
51230
|
title: "ok",
|
|
51221
51231
|
icon: "PanelLeft",
|
|
@@ -51224,7 +51234,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51224
51234
|
"is-active": () => a.editor.isActive("columns", { layout: b(sa).SidebarLeft }),
|
|
51225
51235
|
"tooltip-options": { sideOffset: 15 }
|
|
51226
51236
|
}, null, 8, ["is-active"]),
|
|
51227
|
-
|
|
51237
|
+
P(at, {
|
|
51228
51238
|
id: "columns",
|
|
51229
51239
|
title: "ok",
|
|
51230
51240
|
icon: "Columns",
|
|
@@ -51233,7 +51243,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51233
51243
|
"is-active": () => a.editor.isActive("columns", { layout: b(sa).TwoColumn }),
|
|
51234
51244
|
"tooltip-options": { sideOffset: 15 }
|
|
51235
51245
|
}, null, 8, ["is-active"]),
|
|
51236
|
-
|
|
51246
|
+
P(at, {
|
|
51237
51247
|
id: "panel-right",
|
|
51238
51248
|
title: "ok",
|
|
51239
51249
|
icon: "PanelRight",
|
|
@@ -51279,13 +51289,13 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51279
51289
|
class: "h-4"
|
|
51280
51290
|
})) : $e("", !0),
|
|
51281
51291
|
ne("div", Nie, [
|
|
51282
|
-
|
|
51292
|
+
P(at, {
|
|
51283
51293
|
icon: "Pencil",
|
|
51284
51294
|
tooltip: b(n)("editor.link.edit.tooltip"),
|
|
51285
51295
|
action: i,
|
|
51286
51296
|
"tooltip-options": { sideOffset: 15 }
|
|
51287
51297
|
}, null, 8, ["tooltip"]),
|
|
51288
|
-
|
|
51298
|
+
P(at, {
|
|
51289
51299
|
icon: "Unlink",
|
|
51290
51300
|
tooltip: b(n)("editor.link.unlink.tooltip"),
|
|
51291
51301
|
action: o,
|
|
@@ -51413,30 +51423,30 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51413
51423
|
},
|
|
51414
51424
|
setup(t) {
|
|
51415
51425
|
const e = t, n = cr(_r.RENDER_SUPER_TEXT), r = U([]), o = U([]), i = U(!1), s = U(!1), a = Xn("isMobile", !1), l = U(null), u = (T, A) => {
|
|
51416
|
-
const
|
|
51417
|
-
|
|
51426
|
+
const D = o.value.findIndex((I) => I.id === T);
|
|
51427
|
+
D > -1 && (o.value[D].status = A);
|
|
51418
51428
|
}, d = () => {
|
|
51419
51429
|
const T = [];
|
|
51420
|
-
return document.querySelectorAll("#editor-container #editor-panel p[id]").forEach((
|
|
51421
|
-
const I =
|
|
51430
|
+
return document.querySelectorAll("#editor-container #editor-panel p[id]").forEach((D) => {
|
|
51431
|
+
const I = D.querySelectorAll("[node-id]");
|
|
51422
51432
|
I.length > 0 && T.push(I[I.length - 1]);
|
|
51423
51433
|
}), T;
|
|
51424
51434
|
}, p = (T) => {
|
|
51425
51435
|
const A = T.closest("#editor-container");
|
|
51426
51436
|
if (!A) return;
|
|
51427
|
-
const
|
|
51428
|
-
return T.getBoundingClientRect().top - (
|
|
51437
|
+
const D = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
|
|
51438
|
+
return T.getBoundingClientRect().top - (D - I);
|
|
51429
51439
|
}, h = (T) => T.replace(/<p><\/p>/g, "<p> </p>"), m = async () => {
|
|
51430
51440
|
await Dt();
|
|
51431
|
-
const A = d().map((
|
|
51432
|
-
const I =
|
|
51441
|
+
const A = d().map((D) => {
|
|
51442
|
+
const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
|
|
51433
51443
|
return {
|
|
51434
51444
|
position: he,
|
|
51435
51445
|
text: h(B),
|
|
51436
51446
|
id: I,
|
|
51437
51447
|
pageId: V,
|
|
51438
51448
|
pageNumber: ee,
|
|
51439
|
-
visiblePosition: p(
|
|
51449
|
+
visiblePosition: p(D),
|
|
51440
51450
|
status: 0,
|
|
51441
51451
|
lineId: Oe,
|
|
51442
51452
|
textOriginal: h(B)
|
|
@@ -51446,15 +51456,15 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51446
51456
|
}, g = (T) => {
|
|
51447
51457
|
const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
|
|
51448
51458
|
if (!A) return;
|
|
51449
|
-
const
|
|
51459
|
+
const D = Number(A.getAttribute("index"));
|
|
51450
51460
|
if (!T.text) {
|
|
51451
|
-
A.querySelector(".super-text-lines").innerHTML = o.value[
|
|
51461
|
+
A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
|
|
51452
51462
|
return;
|
|
51453
51463
|
}
|
|
51454
51464
|
A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
|
|
51455
51465
|
const I = A.getBoundingClientRect();
|
|
51456
51466
|
r.value.forEach((B, V) => {
|
|
51457
|
-
if (V !==
|
|
51467
|
+
if (V !== D) {
|
|
51458
51468
|
const ee = B.getBoundingClientRect();
|
|
51459
51469
|
w(I, ee) && B.classList.add("hidden");
|
|
51460
51470
|
}
|
|
@@ -51480,17 +51490,17 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51480
51490
|
n.off(y);
|
|
51481
51491
|
});
|
|
51482
51492
|
const w = (T, A) => {
|
|
51483
|
-
const
|
|
51484
|
-
return !(
|
|
51493
|
+
const D = T.bottom <= A.top, I = T.top >= A.bottom;
|
|
51494
|
+
return !(D || I);
|
|
51485
51495
|
};
|
|
51486
51496
|
async function x() {
|
|
51487
51497
|
const T = r.value;
|
|
51488
|
-
!T || T.length === 0 || (T.sort((A,
|
|
51489
|
-
const I = Number(A.getAttribute("index")), B = Number(
|
|
51498
|
+
!T || T.length === 0 || (T.sort((A, D) => {
|
|
51499
|
+
const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
|
|
51490
51500
|
return I - B;
|
|
51491
|
-
}), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A,
|
|
51501
|
+
}), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
|
|
51492
51502
|
const I = A.getBoundingClientRect();
|
|
51493
|
-
T.slice(
|
|
51503
|
+
T.slice(D + 1).forEach((B) => {
|
|
51494
51504
|
const V = B.getBoundingClientRect();
|
|
51495
51505
|
w(I, V) && A.classList.add("super-text-truncate");
|
|
51496
51506
|
});
|
|
@@ -51506,9 +51516,9 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51506
51516
|
}
|
|
51507
51517
|
);
|
|
51508
51518
|
const C = (T, A) => {
|
|
51509
|
-
const
|
|
51510
|
-
|
|
51511
|
-
const I =
|
|
51519
|
+
const D = T.currentTarget;
|
|
51520
|
+
D.classList.remove("super-text-truncate");
|
|
51521
|
+
const I = D.getBoundingClientRect();
|
|
51512
51522
|
r.value.forEach((B, V) => {
|
|
51513
51523
|
if (V !== A) {
|
|
51514
51524
|
const ee = B.getBoundingClientRect();
|
|
@@ -51525,18 +51535,18 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51525
51535
|
}, i.value = !0, a && (s.value = !0);
|
|
51526
51536
|
}, k = (T) => {
|
|
51527
51537
|
if (!l.value) return;
|
|
51528
|
-
const A = l.value.index,
|
|
51538
|
+
const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
|
|
51529
51539
|
let ee = !1;
|
|
51530
51540
|
I.doc.descendants((he, Oe) => {
|
|
51531
51541
|
var q;
|
|
51532
|
-
return ((q = he.attrs) == null ? void 0 : q["data-id"]) ===
|
|
51542
|
+
return ((q = he.attrs) == null ? void 0 : q["data-id"]) === D ? (V.setNodeMarkup(Oe, void 0, {
|
|
51533
51543
|
...he.attrs,
|
|
51534
51544
|
"data-text": T
|
|
51535
51545
|
}), ee = !0, !1) : !0;
|
|
51536
51546
|
}), ee && e.editor && e.editor.view.dispatch(V), A !== -1 && (o.value[A].text = T, o.value[A].textOriginal = T), i.value = !1;
|
|
51537
51547
|
};
|
|
51538
51548
|
return (T, A) => {
|
|
51539
|
-
const
|
|
51549
|
+
const D = hn;
|
|
51540
51550
|
return N(), xe("div", Iie, [
|
|
51541
51551
|
(N(!0), xe(et, null, $t(o.value, (I, B) => {
|
|
51542
51552
|
var V;
|
|
@@ -51553,7 +51563,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51553
51563
|
onMouseover: (ee) => C(ee, B),
|
|
51554
51564
|
onMouseleave: S
|
|
51555
51565
|
}, [
|
|
51556
|
-
|
|
51566
|
+
P(b(Z7), {
|
|
51557
51567
|
role: "text",
|
|
51558
51568
|
variant: "outline",
|
|
51559
51569
|
class: ut(
|
|
@@ -51569,7 +51579,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51569
51579
|
innerHTML: I.text,
|
|
51570
51580
|
class: "super-text-lines"
|
|
51571
51581
|
}, null, 8, Pie),
|
|
51572
|
-
D
|
|
51582
|
+
P(D, {
|
|
51573
51583
|
name: "triangle",
|
|
51574
51584
|
class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
|
|
51575
51585
|
})
|
|
@@ -51600,30 +51610,30 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51600
51610
|
},
|
|
51601
51611
|
setup(t) {
|
|
51602
51612
|
const e = t, n = cr(_r.RENDER_SUPER_TEXT), r = U([]), o = U([]), i = U(!1), s = U(!1), a = Xn("isMobile", !1), l = U(null), u = (T, A) => {
|
|
51603
|
-
const
|
|
51604
|
-
|
|
51613
|
+
const D = o.value.findIndex((I) => I.id === T);
|
|
51614
|
+
D > -1 && (o.value[D].status = A);
|
|
51605
51615
|
}, d = () => {
|
|
51606
51616
|
const T = [];
|
|
51607
|
-
return document.querySelectorAll("#editor-container-comment #editor-panel p[id]").forEach((
|
|
51608
|
-
const I =
|
|
51617
|
+
return document.querySelectorAll("#editor-container-comment #editor-panel p[id]").forEach((D) => {
|
|
51618
|
+
const I = D.querySelectorAll("[node-id]");
|
|
51609
51619
|
I.length > 0 && T.push(I[I.length - 1]);
|
|
51610
51620
|
}), T;
|
|
51611
51621
|
}, p = (T) => {
|
|
51612
51622
|
const A = T.closest("#editor-container-comment");
|
|
51613
51623
|
if (!A) return;
|
|
51614
|
-
const
|
|
51615
|
-
return T.getBoundingClientRect().top - (
|
|
51624
|
+
const D = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
|
|
51625
|
+
return T.getBoundingClientRect().top - (D - I);
|
|
51616
51626
|
}, h = (T) => T.replace(/<p><\/p>/g, "<p> </p>"), m = async () => {
|
|
51617
51627
|
await Dt();
|
|
51618
|
-
const A = d().map((
|
|
51619
|
-
const I =
|
|
51628
|
+
const A = d().map((D) => {
|
|
51629
|
+
const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
|
|
51620
51630
|
return {
|
|
51621
51631
|
position: he,
|
|
51622
51632
|
text: h(B),
|
|
51623
51633
|
id: I,
|
|
51624
51634
|
pageId: V,
|
|
51625
51635
|
pageNumber: ee,
|
|
51626
|
-
visiblePosition: p(
|
|
51636
|
+
visiblePosition: p(D),
|
|
51627
51637
|
status: 0,
|
|
51628
51638
|
lineId: Oe,
|
|
51629
51639
|
textOriginal: h(B)
|
|
@@ -51633,15 +51643,15 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51633
51643
|
}, g = (T) => {
|
|
51634
51644
|
const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
|
|
51635
51645
|
if (!A) return;
|
|
51636
|
-
const
|
|
51646
|
+
const D = Number(A.getAttribute("index"));
|
|
51637
51647
|
if (!T.text) {
|
|
51638
|
-
A.querySelector(".super-text-lines").innerHTML = o.value[
|
|
51648
|
+
A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
|
|
51639
51649
|
return;
|
|
51640
51650
|
}
|
|
51641
51651
|
A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
|
|
51642
51652
|
const I = A.getBoundingClientRect();
|
|
51643
51653
|
r.value.forEach((B, V) => {
|
|
51644
|
-
if (V !==
|
|
51654
|
+
if (V !== D) {
|
|
51645
51655
|
const ee = B.getBoundingClientRect();
|
|
51646
51656
|
w(I, ee) && B.classList.add("hidden");
|
|
51647
51657
|
}
|
|
@@ -51667,17 +51677,17 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51667
51677
|
n.off(y);
|
|
51668
51678
|
});
|
|
51669
51679
|
const w = (T, A) => {
|
|
51670
|
-
const
|
|
51671
|
-
return !(
|
|
51680
|
+
const D = T.bottom <= A.top, I = T.top >= A.bottom;
|
|
51681
|
+
return !(D || I);
|
|
51672
51682
|
};
|
|
51673
51683
|
async function x() {
|
|
51674
51684
|
const T = r.value;
|
|
51675
|
-
!T || T.length === 0 || (T.sort((A,
|
|
51676
|
-
const I = Number(A.getAttribute("index")), B = Number(
|
|
51685
|
+
!T || T.length === 0 || (T.sort((A, D) => {
|
|
51686
|
+
const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
|
|
51677
51687
|
return I - B;
|
|
51678
|
-
}), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A,
|
|
51688
|
+
}), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
|
|
51679
51689
|
const I = A.getBoundingClientRect();
|
|
51680
|
-
T.slice(
|
|
51690
|
+
T.slice(D + 1).forEach((B) => {
|
|
51681
51691
|
const V = B.getBoundingClientRect();
|
|
51682
51692
|
w(I, V) && A.classList.add("super-text-truncate");
|
|
51683
51693
|
});
|
|
@@ -51693,9 +51703,9 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51693
51703
|
}
|
|
51694
51704
|
);
|
|
51695
51705
|
const C = (T, A) => {
|
|
51696
|
-
const
|
|
51697
|
-
|
|
51698
|
-
const I =
|
|
51706
|
+
const D = T.currentTarget;
|
|
51707
|
+
D.classList.remove("super-text-truncate");
|
|
51708
|
+
const I = D.getBoundingClientRect();
|
|
51699
51709
|
r.value.forEach((B, V) => {
|
|
51700
51710
|
if (V !== A) {
|
|
51701
51711
|
const ee = B.getBoundingClientRect();
|
|
@@ -51712,18 +51722,18 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51712
51722
|
}, i.value = !0, a && (s.value = !0);
|
|
51713
51723
|
}, k = (T) => {
|
|
51714
51724
|
if (!l.value) return;
|
|
51715
|
-
const A = l.value.index,
|
|
51725
|
+
const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
|
|
51716
51726
|
let ee = !1;
|
|
51717
51727
|
I.doc.descendants((he, Oe) => {
|
|
51718
51728
|
var q;
|
|
51719
|
-
return ((q = he.attrs) == null ? void 0 : q["data-id"]) ===
|
|
51729
|
+
return ((q = he.attrs) == null ? void 0 : q["data-id"]) === D ? (V.setNodeMarkup(Oe, void 0, {
|
|
51720
51730
|
...he.attrs,
|
|
51721
51731
|
"data-text": T
|
|
51722
51732
|
}), ee = !0, !1) : !0;
|
|
51723
51733
|
}), ee && e.editor && e.editor.view.dispatch(V), A !== -1 && (o.value[A].text = T, o.value[A].textOriginal = T), i.value = !1;
|
|
51724
51734
|
};
|
|
51725
51735
|
return (T, A) => {
|
|
51726
|
-
const
|
|
51736
|
+
const D = hn;
|
|
51727
51737
|
return N(), xe("div", $ie, [
|
|
51728
51738
|
(N(!0), xe(et, null, $t(o.value, (I, B) => {
|
|
51729
51739
|
var V;
|
|
@@ -51740,7 +51750,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51740
51750
|
onMouseover: (ee) => C(ee, B),
|
|
51741
51751
|
onMouseleave: S
|
|
51742
51752
|
}, [
|
|
51743
|
-
|
|
51753
|
+
P(b(Z7), {
|
|
51744
51754
|
role: "text",
|
|
51745
51755
|
variant: "outline",
|
|
51746
51756
|
class: ut(
|
|
@@ -51756,7 +51766,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51756
51766
|
innerHTML: I.text,
|
|
51757
51767
|
class: "super-text-lines"
|
|
51758
51768
|
}, null, 8, zie),
|
|
51759
|
-
D
|
|
51769
|
+
P(D, {
|
|
51760
51770
|
name: "triangle",
|
|
51761
51771
|
class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
|
|
51762
51772
|
})
|
|
@@ -51857,14 +51867,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51857
51867
|
handleKeyDown: Vt.throttle((k, T) => T.key === "Enter" && s.enter && !T.shiftKey ? (o("enter"), !0) : !1, Ps),
|
|
51858
51868
|
transformPastedHTML: (k) => Q7(k),
|
|
51859
51869
|
clipboardTextParser: (k, T) => {
|
|
51860
|
-
const A = k.split(/(?:\r\n?|\n)/),
|
|
51870
|
+
const A = k.split(/(?:\r\n?|\n)/), D = [];
|
|
51861
51871
|
A.forEach((B) => {
|
|
51862
51872
|
let V = { type: "paragraph" };
|
|
51863
51873
|
B.length > 0 && (V.content = [{ type: "text", text: B }]);
|
|
51864
51874
|
let ee = Do.fromJSON(T.doc.type.schema, V);
|
|
51865
|
-
|
|
51875
|
+
D.push(ee);
|
|
51866
51876
|
});
|
|
51867
|
-
const I = ye.fromArray(
|
|
51877
|
+
const I = ye.fromArray(D);
|
|
51868
51878
|
return Ne.maxOpen(I);
|
|
51869
51879
|
}
|
|
51870
51880
|
},
|
|
@@ -51944,14 +51954,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51944
51954
|
}
|
|
51945
51955
|
), e({ editor: w }), (k, T) => (N(), xe("div", Wie, [
|
|
51946
51956
|
ne("div", jie, [
|
|
51947
|
-
Io(
|
|
51957
|
+
Io(P(Uie, {
|
|
51948
51958
|
editor: b(w),
|
|
51949
51959
|
class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
|
|
51950
51960
|
}, null, 8, ["editor"]), [
|
|
51951
51961
|
[zi, k.isOpenSuperView]
|
|
51952
51962
|
]),
|
|
51953
51963
|
ne("div", qie, [
|
|
51954
|
-
|
|
51964
|
+
P(mv, {
|
|
51955
51965
|
ref_key: "selectContextMenuRef",
|
|
51956
51966
|
ref: S,
|
|
51957
51967
|
editor: b(w),
|
|
@@ -51959,7 +51969,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
|
|
|
51959
51969
|
"super-text-store": b(h)
|
|
51960
51970
|
}, {
|
|
51961
51971
|
default: M(() => [
|
|
51962
|
-
|
|
51972
|
+
P(b(rd), {
|
|
51963
51973
|
editor: b(w),
|
|
51964
51974
|
spellcheck: "true",
|
|
51965
51975
|
class: "h-full break-all"
|
|
@@ -52045,8 +52055,8 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52045
52055
|
() => [...u.extensions, ...Vt.differenceBy(r.extensions, u.extensions, "name")].map(
|
|
52046
52056
|
(ke, X) => ke.configure({ sort: X })
|
|
52047
52057
|
)
|
|
52048
|
-
), A = Y(() => r.mode === Ct.EDITOR),
|
|
52049
|
-
|
|
52058
|
+
), A = Y(() => r.mode === Ct.EDITOR), D = U(r.fontSizeDefault), I = U(r.fontFamilyDefault);
|
|
52059
|
+
rr("fontSize", D), rr("fontFamily", I);
|
|
52050
52060
|
const B = Y(() => r.autoHeight ? {
|
|
52051
52061
|
height: "auto",
|
|
52052
52062
|
minHeight: r.minHeight ? Gn(r.minHeight) : void 0,
|
|
@@ -52054,7 +52064,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52054
52064
|
overflowY: "auto"
|
|
52055
52065
|
} : A.value ? {} : {
|
|
52056
52066
|
fontFamily: I.value,
|
|
52057
|
-
fontSize:
|
|
52067
|
+
fontSize: D.value
|
|
52058
52068
|
});
|
|
52059
52069
|
He(
|
|
52060
52070
|
() => B.value,
|
|
@@ -52065,8 +52075,8 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52065
52075
|
Oe();
|
|
52066
52076
|
});
|
|
52067
52077
|
const V = (ke) => {
|
|
52068
|
-
const X = parseInt(
|
|
52069
|
-
|
|
52078
|
+
const X = parseInt(D.value || "16px"), re = ke ? X + 2 : X - 2;
|
|
52079
|
+
D.value = re + "px";
|
|
52070
52080
|
};
|
|
52071
52081
|
jc(() => {
|
|
52072
52082
|
r.disabled || s.on(V);
|
|
@@ -52249,7 +52259,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52249
52259
|
"space-y-2 flex-1 flex flex-col break-keep",
|
|
52250
52260
|
!A.value && "[&_*]:!font-inherit [&_*]:!text-font-size-inherit",
|
|
52251
52261
|
I.value && !A.value && "[&_*]:!font-inherit",
|
|
52252
|
-
|
|
52262
|
+
D.value && !A.value && "[&_*]:!text-font-size-inherit"
|
|
52253
52263
|
)
|
|
52254
52264
|
),
|
|
52255
52265
|
style: Jt(B.value)
|
|
@@ -52280,14 +52290,14 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52280
52290
|
)
|
|
52281
52291
|
}, [
|
|
52282
52292
|
ne("div", Jie, [
|
|
52283
|
-
Io(
|
|
52293
|
+
Io(P(Fie, {
|
|
52284
52294
|
editor: b(he),
|
|
52285
52295
|
class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
|
|
52286
52296
|
}, null, 8, ["editor"]), [
|
|
52287
52297
|
[zi, F.value]
|
|
52288
52298
|
]),
|
|
52289
52299
|
ne("div", Xie, [
|
|
52290
|
-
|
|
52300
|
+
P(mv, {
|
|
52291
52301
|
ref_key: "selectContextMenuRef",
|
|
52292
52302
|
ref: ct,
|
|
52293
52303
|
editor: b(he),
|
|
@@ -52295,7 +52305,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52295
52305
|
"super-text-store": b(C)
|
|
52296
52306
|
}, {
|
|
52297
52307
|
default: M(() => [
|
|
52298
|
-
|
|
52308
|
+
P(b(rd), {
|
|
52299
52309
|
editor: b(he),
|
|
52300
52310
|
spellcheck: "true",
|
|
52301
52311
|
class: "h-full break-all"
|
|
@@ -52507,12 +52517,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52507
52517
|
}
|
|
52508
52518
|
}, h = Y(() => !1), m = Y(() => [...e.editor.extensionManager.extensions].find((x) => x.name === "configPlan")), g = Y(() => [...e.editor.extensionManager.extensions].find((x) => x.name === "superText"));
|
|
52509
52519
|
return (w, x) => {
|
|
52510
|
-
var T, A,
|
|
52520
|
+
var T, A, D;
|
|
52511
52521
|
const C = s0, S = i0, _ = o0, k = r0;
|
|
52512
52522
|
return N(), xe(et, null, [
|
|
52513
|
-
|
|
52523
|
+
P(k, { "onUpdate:open": p }, {
|
|
52514
52524
|
default: M(() => [
|
|
52515
|
-
|
|
52525
|
+
P(C, {
|
|
52516
52526
|
as: "template",
|
|
52517
52527
|
disabled: b(h)
|
|
52518
52528
|
}, {
|
|
@@ -52521,7 +52531,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52521
52531
|
]),
|
|
52522
52532
|
_: 3
|
|
52523
52533
|
}, 8, ["disabled"]),
|
|
52524
|
-
|
|
52534
|
+
P(_, { class: "flex bg-[#616161] text-white max-w-[310px] overflow-x-auto whitespace-nowrap" }, {
|
|
52525
52535
|
default: M(() => [
|
|
52526
52536
|
b(g) ? (N(), $(S, {
|
|
52527
52537
|
key: 0,
|
|
@@ -52541,7 +52551,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52541
52551
|
]),
|
|
52542
52552
|
_: 1
|
|
52543
52553
|
})) : $e("", !0),
|
|
52544
|
-
|
|
52554
|
+
P(S, {
|
|
52545
52555
|
onClick: x[2] || (x[2] = (I) => r.value = !0)
|
|
52546
52556
|
}, {
|
|
52547
52557
|
default: M(() => [
|
|
@@ -52558,19 +52568,19 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52558
52568
|
]),
|
|
52559
52569
|
_: 1
|
|
52560
52570
|
})) : $e("", !0),
|
|
52561
|
-
|
|
52571
|
+
P(S, { onClick: s }, {
|
|
52562
52572
|
default: M(() => [
|
|
52563
52573
|
lt(Fe(b(n)("editor.cut")), 1)
|
|
52564
52574
|
]),
|
|
52565
52575
|
_: 1
|
|
52566
52576
|
}),
|
|
52567
|
-
|
|
52577
|
+
P(S, { onClick: a }, {
|
|
52568
52578
|
default: M(() => [
|
|
52569
52579
|
lt(Fe(b(n)("editor.copy")), 1)
|
|
52570
52580
|
]),
|
|
52571
52581
|
_: 1
|
|
52572
52582
|
}),
|
|
52573
|
-
|
|
52583
|
+
P(S, { onClick: u }, {
|
|
52574
52584
|
default: M(() => [
|
|
52575
52585
|
lt(Fe(b(n)("editor.selectAll")), 1)
|
|
52576
52586
|
]),
|
|
@@ -52586,7 +52596,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52586
52596
|
(N(), $(Zr((T = b(o)) == null ? void 0 : T.component), {
|
|
52587
52597
|
"is-open": b(r),
|
|
52588
52598
|
open: b(r),
|
|
52589
|
-
class: ut((
|
|
52599
|
+
class: ut((D = (A = b(o)) == null ? void 0 : A.componentProps) == null ? void 0 : D.class),
|
|
52590
52600
|
onSelectedChar: i,
|
|
52591
52601
|
onClose: x[3] || (x[3] = (I) => r.value = !1)
|
|
52592
52602
|
}, null, 40, ["is-open", "open", "class"]))
|
|
@@ -52748,10 +52758,10 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52748
52758
|
S();
|
|
52749
52759
|
}
|
|
52750
52760
|
), e({ editor: g, isFocused: y }), (_, k) => {
|
|
52751
|
-
var
|
|
52761
|
+
var D;
|
|
52752
52762
|
const T = nT, A = eT;
|
|
52753
52763
|
return N(), xe(et, null, [
|
|
52754
|
-
(
|
|
52764
|
+
(D = _.fieldNameComment) != null && D.label ? (N(), $(T, {
|
|
52755
52765
|
key: 0,
|
|
52756
52766
|
"field-name": _.fieldNameComment,
|
|
52757
52767
|
mode: _.mode,
|
|
@@ -52765,12 +52775,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52765
52775
|
disabled: _.disabled,
|
|
52766
52776
|
class: "mb-[3px]"
|
|
52767
52777
|
}, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
|
|
52768
|
-
|
|
52778
|
+
P(tT, {
|
|
52769
52779
|
editor: b(g),
|
|
52770
52780
|
mode: _.mode
|
|
52771
52781
|
}, {
|
|
52772
52782
|
default: M(() => [
|
|
52773
|
-
|
|
52783
|
+
P(b(rd), {
|
|
52774
52784
|
editor: b(g),
|
|
52775
52785
|
spellcheck: "true",
|
|
52776
52786
|
class: "flex-1 flex-col"
|
|
@@ -52875,12 +52885,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52875
52885
|
return;
|
|
52876
52886
|
}
|
|
52877
52887
|
if (r.pushOtherPanes) {
|
|
52878
|
-
const W =
|
|
52888
|
+
const W = D(pe, De);
|
|
52879
52889
|
if (!W) return;
|
|
52880
52890
|
({ sums: pe, panesToResize: qe } = W), le = i.value[qe[0]] || null, Le = i.value[qe[1]] || null;
|
|
52881
52891
|
}
|
|
52882
52892
|
le !== null && (le.size = Math.min(Math.max(De - pe.prevPanesSize - pe.prevReachedMinPanes, le.min), le.max)), Le !== null && (Le.size = Math.min(Math.max(100 - De - pe.nextPanesSize - pe.nextReachedMinPanes, Le.min), Le.max));
|
|
52883
|
-
},
|
|
52893
|
+
}, D = (X, re) => {
|
|
52884
52894
|
const pe = d.value.activeSplitter, me = [pe, pe + 1];
|
|
52885
52895
|
return re < X.prevPanesSize + i.value[me[0]].min && (me[0] = V(pe).index, X.prevReachedMinPanes = 0, me[0] < pe && i.value.forEach((_e, De) => {
|
|
52886
52896
|
De > me[0] && De <= pe && (_e.size = _e.min, X.prevReachedMinPanes += _e.min);
|
|
@@ -52995,7 +53005,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
|
|
|
52995
53005
|
(X = o.default) == null ? void 0 : X.call(o)
|
|
52996
53006
|
);
|
|
52997
53007
|
};
|
|
52998
|
-
return
|
|
53008
|
+
return rr("panes", i), rr("indexedPanes", s), rr("horizontal", Y(() => r.horizontal)), rr("requestUpdate", F), rr("onPaneAdd", Q), rr("onPaneRemove", ie), rr("onPaneClick", _), (X, re) => (N(), $(Zr(ke)));
|
|
52999
53009
|
}
|
|
53000
53010
|
}, dc = {
|
|
53001
53011
|
__name: "pane",
|
|
@@ -53204,7 +53214,7 @@ const fc = /* @__PURE__ */ j({
|
|
|
53204
53214
|
emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected"],
|
|
53205
53215
|
setup(t, { expose: e, emit: n }) {
|
|
53206
53216
|
const r = t, o = n;
|
|
53207
|
-
|
|
53217
|
+
rr("isMobile", !0);
|
|
53208
53218
|
const { t: i } = jt(), s = cr(_r.RENDER_SUPER_TEXT), a = cr(_r.INCREASE_DECREASE_FONTSIZE), l = nh(), u = Vo(), {
|
|
53209
53219
|
state: d,
|
|
53210
53220
|
isFullscreen: p,
|
|
@@ -53219,11 +53229,11 @@ const fc = /* @__PURE__ */ j({
|
|
|
53219
53229
|
(le, Le) => le.configure({ sort: Le })
|
|
53220
53230
|
)
|
|
53221
53231
|
), _ = U(r.fontSizeDefault), k = U(r.fontFamilyDefault);
|
|
53222
|
-
|
|
53232
|
+
rr("fontSize", _), rr("fontFamily", k);
|
|
53223
53233
|
const T = Y(() => ({
|
|
53224
53234
|
fontFamily: k.value,
|
|
53225
53235
|
fontSize: _.value
|
|
53226
|
-
})), A = U(), { wrapHeight:
|
|
53236
|
+
})), A = U(), { wrapHeight: D } = ase(A, r.hideToolbar, r.height, r.autoResize);
|
|
53227
53237
|
He(
|
|
53228
53238
|
() => T.value,
|
|
53229
53239
|
() => {
|
|
@@ -53469,7 +53479,7 @@ const fc = /* @__PURE__ */ j({
|
|
|
53469
53479
|
disabled: le.disabled,
|
|
53470
53480
|
class: "mb-[3px]"
|
|
53471
53481
|
}, null, 8, ["editor", "mode", "disabled"])),
|
|
53472
|
-
|
|
53482
|
+
P(b(rT), {
|
|
53473
53483
|
class: ut(
|
|
53474
53484
|
b(Qe)(
|
|
53475
53485
|
"flex flex-col [&_*]:!font-inherit [&_*]:!text-font-size-inherit",
|
|
@@ -53477,7 +53487,7 @@ const fc = /* @__PURE__ */ j({
|
|
|
53477
53487
|
_.value && "[&_*]:!text-font-size-inherit"
|
|
53478
53488
|
)
|
|
53479
53489
|
),
|
|
53480
|
-
style: Jt({ ...T.value, height: b(Gn)(b(
|
|
53490
|
+
style: Jt({ ...T.value, height: b(Gn)(b(D)) }),
|
|
53481
53491
|
horizontal: "",
|
|
53482
53492
|
onReady: b(pe),
|
|
53483
53493
|
onResized: b(pe)
|
|
@@ -53505,7 +53515,7 @@ const fc = /* @__PURE__ */ j({
|
|
|
53505
53515
|
)
|
|
53506
53516
|
)
|
|
53507
53517
|
}, [
|
|
53508
|
-
|
|
53518
|
+
P(sse, {
|
|
53509
53519
|
ref_key: "editorCommentRef",
|
|
53510
53520
|
ref: he,
|
|
53511
53521
|
mode: le.mode,
|
|
@@ -53523,7 +53533,7 @@ const fc = /* @__PURE__ */ j({
|
|
|
53523
53533
|
}),
|
|
53524
53534
|
_: 1
|
|
53525
53535
|
}, 8, ["size"])) : $e("", !0),
|
|
53526
|
-
|
|
53536
|
+
P(b(dc), {
|
|
53527
53537
|
size: b(re),
|
|
53528
53538
|
class: "border-none p-0 flex flex-col"
|
|
53529
53539
|
}, {
|
|
@@ -53558,12 +53568,12 @@ const fc = /* @__PURE__ */ j({
|
|
|
53558
53568
|
disabled: le.disabled,
|
|
53559
53569
|
class: "mb-[3px]"
|
|
53560
53570
|
}, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
|
|
53561
|
-
|
|
53571
|
+
P(tT, {
|
|
53562
53572
|
editor: b(V),
|
|
53563
53573
|
mode: le.mode
|
|
53564
53574
|
}, {
|
|
53565
53575
|
default: M(() => [
|
|
53566
|
-
|
|
53576
|
+
P(b(rd), {
|
|
53567
53577
|
editor: b(V),
|
|
53568
53578
|
spellcheck: "true",
|
|
53569
53579
|
class: "flex-1 flex-col"
|
|
@@ -53915,7 +53925,7 @@ var iT = { exports: {} };
|
|
|
53915
53925
|
afterIndex: Q
|
|
53916
53926
|
};
|
|
53917
53927
|
}
|
|
53918
|
-
function
|
|
53928
|
+
function D(q) {
|
|
53919
53929
|
for (var G = new _(), F, Q = [q]; Q.length; )
|
|
53920
53930
|
if (q = Q.pop(), F = k(q), F && F.length) {
|
|
53921
53931
|
if (F.segmentStartInBefore > 0 && F.segmentStartInAfter > 0) {
|
|
@@ -53943,7 +53953,7 @@ var iT = { exports: {} };
|
|
|
53943
53953
|
function I(q, G) {
|
|
53944
53954
|
if (!q) throw new Error("Missing beforeTokens");
|
|
53945
53955
|
if (!G) throw new Error("Missing afterTokens");
|
|
53946
|
-
var F = 0, Q = 0, ie = [], ce = A(q, G, 0, 0), fe =
|
|
53956
|
+
var F = 0, Q = 0, ie = [], ce = A(q, G, 0, 0), fe = D(ce);
|
|
53947
53957
|
fe.push(new y(q.length, G.length, 0, ce));
|
|
53948
53958
|
for (var Re = 0; Re < fe.length; Re++) {
|
|
53949
53959
|
var Ie = fe[Re], ct = "none";
|
|
@@ -54056,7 +54066,7 @@ var iT = { exports: {} };
|
|
|
54056
54066
|
var ce = I(q, G);
|
|
54057
54067
|
return he(q, G, ce, Q, F);
|
|
54058
54068
|
}
|
|
54059
|
-
Oe.htmlToTokens = w, Oe.findMatchingBlocks =
|
|
54069
|
+
Oe.htmlToTokens = w, Oe.findMatchingBlocks = D, D.findBestMatch = k, D.createMap = C, D.createToken = g, D.createSegment = A, D.getKeyForToken = x, Oe.calculateOperations = I, Oe.renderOperations = he, t !== null ? t.exports = Oe : this.htmldiff = Oe;
|
|
54060
54070
|
}).call(gl);
|
|
54061
54071
|
})(iT);
|
|
54062
54072
|
var lse = iT.exports;
|
|
@@ -54107,13 +54117,13 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
|
|
|
54107
54117
|
ne("div", {
|
|
54108
54118
|
class: ut(b(Qe)("h-[600px]", g.editorClass))
|
|
54109
54119
|
}, [
|
|
54110
|
-
|
|
54120
|
+
P(b(rT), {
|
|
54111
54121
|
horizontal: "",
|
|
54112
54122
|
onReady: b(u),
|
|
54113
54123
|
onResized: b(u)
|
|
54114
54124
|
}, {
|
|
54115
54125
|
default: M(() => [
|
|
54116
|
-
|
|
54126
|
+
P(b(dc), {
|
|
54117
54127
|
size: b(a),
|
|
54118
54128
|
class: "flex flex-col"
|
|
54119
54129
|
}, {
|
|
@@ -54126,7 +54136,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
|
|
|
54126
54136
|
class: "text-[12px] mb-[3px]"
|
|
54127
54137
|
}, null, 8, ["title-bar"])) : $e("", !0),
|
|
54128
54138
|
ne("div", cse, [
|
|
54129
|
-
|
|
54139
|
+
P(fc, {
|
|
54130
54140
|
"editor-class": "h-full",
|
|
54131
54141
|
mode: b(Ct).REPORT,
|
|
54132
54142
|
disabled: "",
|
|
@@ -54147,7 +54157,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
|
|
|
54147
54157
|
var x, C, S, _;
|
|
54148
54158
|
return [
|
|
54149
54159
|
ne("div", dse, [
|
|
54150
|
-
|
|
54160
|
+
P(fc, {
|
|
54151
54161
|
"editor-class": "h-full",
|
|
54152
54162
|
mode: b(Ct).REPORT,
|
|
54153
54163
|
disabled: "",
|
|
@@ -54163,7 +54173,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
|
|
|
54163
54173
|
}),
|
|
54164
54174
|
_: 1
|
|
54165
54175
|
})) : $e("", !0),
|
|
54166
|
-
|
|
54176
|
+
P(b(dc), {
|
|
54167
54177
|
size: b(l),
|
|
54168
54178
|
class: "flex flex-col"
|
|
54169
54179
|
}, {
|
|
@@ -54177,7 +54187,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
|
|
|
54177
54187
|
"custom-class": "bg-[#34c759]"
|
|
54178
54188
|
}, null, 8, ["title-bar"])) : $e("", !0),
|
|
54179
54189
|
ne("div", fse, [
|
|
54180
|
-
|
|
54190
|
+
P(fc, {
|
|
54181
54191
|
"editor-class": "h-full",
|
|
54182
54192
|
mode: b(Ct).REPORT,
|
|
54183
54193
|
disabled: "",
|