@zealsolutions/zeal-ui 1.0.0-alpha.354 → 1.0.0-alpha.355
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/tiptap/index.js +598 -595
- package/dist/css/editorStyles.css +14 -14
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as sr, ref as U, onMounted as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { defineComponent as sr, ref as U, onMounted as Ml, onBeforeUnmount as Fo, h as lr, getCurrentInstance as hp, watchEffect as mp, nextTick as gp, unref as K, markRaw as Td, provide as ga, customRef as yp, reactive as bp, render as ya, computed as qt, openBlock as E, createBlock as X, withCtx as P, createElementVNode as x, normalizeClass as W, createElementBlock as V, createCommentVNode as _, createVNode as I, pushScopeId as vp, popScopeId as xp, createTextVNode as Be, resolveComponent as Tr, normalizeStyle as un, withModifiers as xr, toDisplayString as kn, Fragment as Cn, renderList as Fr, withDirectives as wp, vShow as kp, Transition as Cp, renderSlot as Sp, watch as Tp } from "vue";
|
|
2
|
+
import { _ as El } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import { DropdownMenu as Ad, DropdownMenuItem as Ap } from "@zealsolutions/zeal-ui/menus";
|
|
4
4
|
import { BaseModal as qi } from "@zealsolutions/zeal-ui/modals";
|
|
5
5
|
import { InputField as Md, ToggleSwitch as Mp } from "@zealsolutions/zeal-ui/inputs";
|
|
@@ -7,7 +7,7 @@ import { GearComplexIcon as Ep, DownloadIcon as Op, ChevronDownIcon as Np } from
|
|
|
7
7
|
import { a as Vr, _ as jr } from "../../SecondaryButton-At_I-S4K.js";
|
|
8
8
|
import { _ as Ed } from "../../BaseModal-BriJhnSM.js";
|
|
9
9
|
import { _ as xi } from "../../FormField-XR9nvyQr.js";
|
|
10
|
-
import { _ as
|
|
10
|
+
import { _ as us } from "../../InputField-BrSFZ5Eu.js";
|
|
11
11
|
import Dp from "../../MagnifyingGlassIcon-ChYNIA-H.js";
|
|
12
12
|
import ba from "../../ImageIcon-jkYGKPiB.js";
|
|
13
13
|
import va from "../../ListTreeIcon-DMhYL_id.js";
|
|
@@ -427,9 +427,9 @@ class S {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
S.empty = new S([], 0);
|
|
430
|
-
const
|
|
430
|
+
const fs = { index: 0, offset: 0 };
|
|
431
431
|
function wi(n, e) {
|
|
432
|
-
return
|
|
432
|
+
return fs.index = n, fs.offset = e, fs;
|
|
433
433
|
}
|
|
434
434
|
function Ki(n, e) {
|
|
435
435
|
if (n === e)
|
|
@@ -455,7 +455,7 @@ function Ki(n, e) {
|
|
|
455
455
|
}
|
|
456
456
|
return !0;
|
|
457
457
|
}
|
|
458
|
-
let Z = class
|
|
458
|
+
let Z = class _s {
|
|
459
459
|
/**
|
|
460
460
|
@internal
|
|
461
461
|
*/
|
|
@@ -553,8 +553,8 @@ let Z = class js {
|
|
|
553
553
|
*/
|
|
554
554
|
static setFrom(e) {
|
|
555
555
|
if (!e || Array.isArray(e) && e.length == 0)
|
|
556
|
-
return
|
|
557
|
-
if (e instanceof
|
|
556
|
+
return _s.none;
|
|
557
|
+
if (e instanceof _s)
|
|
558
558
|
return [e];
|
|
559
559
|
let t = e.slice();
|
|
560
560
|
return t.sort((r, i) => r.type.rank - i.type.rank), t;
|
|
@@ -689,7 +689,7 @@ function $d(n, e) {
|
|
|
689
689
|
if (!e.type.compatibleContent(n.type))
|
|
690
690
|
throw new Ji("Cannot join " + e.type.name + " onto " + n.type.name);
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Ws(n, e, t) {
|
|
693
693
|
let r = n.node(t);
|
|
694
694
|
return $d(r, e.node(t)), r;
|
|
695
695
|
}
|
|
@@ -708,13 +708,13 @@ function gn(n, e) {
|
|
|
708
708
|
return n.type.checkContent(e), n.copy(e);
|
|
709
709
|
}
|
|
710
710
|
function Hd(n, e, t, r, i) {
|
|
711
|
-
let o = n.depth > i &&
|
|
711
|
+
let o = n.depth > i && Ws(n, e, i + 1), s = r.depth > i && Ws(t, r, i + 1), l = [];
|
|
712
712
|
return Ar(null, n, i, l), o && s && e.index(i) == t.index(i) ? ($d(o, s), mn(gn(o, Hd(n, e, t, r, i + 1)), l)) : (o && mn(gn(o, Gi(n, e, i + 1)), l), Ar(e, t, i, l), s && mn(gn(s, Gi(t, r, i + 1)), l)), Ar(r, null, i, l), new S(l);
|
|
713
713
|
}
|
|
714
714
|
function Gi(n, e, t) {
|
|
715
715
|
let r = [];
|
|
716
716
|
if (Ar(null, n, t, r), n.depth > t) {
|
|
717
|
-
let i =
|
|
717
|
+
let i = Ws(n, e, t + 1);
|
|
718
718
|
mn(gn(i, Gi(n, e, t + 1)), r);
|
|
719
719
|
}
|
|
720
720
|
return Ar(e, null, t, r), new S(r);
|
|
@@ -1022,7 +1022,7 @@ class Yi {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
}
|
|
1024
1024
|
const Bp = /* @__PURE__ */ Object.create(null);
|
|
1025
|
-
let yn = class
|
|
1025
|
+
let yn = class Us {
|
|
1026
1026
|
/**
|
|
1027
1027
|
@internal
|
|
1028
1028
|
*/
|
|
@@ -1141,14 +1141,14 @@ let yn = class Ws {
|
|
|
1141
1141
|
the given content (or empty, if no content is given).
|
|
1142
1142
|
*/
|
|
1143
1143
|
copy(e = null) {
|
|
1144
|
-
return e == this.content ? this : new
|
|
1144
|
+
return e == this.content ? this : new Us(this.type, this.attrs, e, this.marks);
|
|
1145
1145
|
}
|
|
1146
1146
|
/**
|
|
1147
1147
|
Create a copy of this node, with the given set of marks instead
|
|
1148
1148
|
of the node's own marks.
|
|
1149
1149
|
*/
|
|
1150
1150
|
mark(e) {
|
|
1151
|
-
return e == this.marks ? this : new
|
|
1151
|
+
return e == this.marks ? this : new Us(this.type, this.attrs, this.content, e);
|
|
1152
1152
|
}
|
|
1153
1153
|
/**
|
|
1154
1154
|
Create a copy of this node with only the content between the
|
|
@@ -2678,7 +2678,7 @@ class Nn {
|
|
|
2678
2678
|
nodes.
|
|
2679
2679
|
*/
|
|
2680
2680
|
serializeFragment(e, t = {}, r) {
|
|
2681
|
-
r || (r =
|
|
2681
|
+
r || (r = ps(t).createDocumentFragment());
|
|
2682
2682
|
let i = r, o = [];
|
|
2683
2683
|
return e.forEach((s) => {
|
|
2684
2684
|
if (o.length || s.marks.length) {
|
|
@@ -2707,7 +2707,7 @@ class Nn {
|
|
|
2707
2707
|
@internal
|
|
2708
2708
|
*/
|
|
2709
2709
|
serializeNodeInner(e, t) {
|
|
2710
|
-
let { dom: r, contentDOM: i } = $i(
|
|
2710
|
+
let { dom: r, contentDOM: i } = $i(ps(t), this.nodes[e.type.name](e), null, e.attrs);
|
|
2711
2711
|
if (i) {
|
|
2712
2712
|
if (e.isLeaf)
|
|
2713
2713
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -2735,7 +2735,7 @@ class Nn {
|
|
|
2735
2735
|
*/
|
|
2736
2736
|
serializeMark(e, t, r = {}) {
|
|
2737
2737
|
let i = this.marks[e.type.name];
|
|
2738
|
-
return i && $i(
|
|
2738
|
+
return i && $i(ps(r), i(e, t), null, e.attrs);
|
|
2739
2739
|
}
|
|
2740
2740
|
static renderSpec(e, t, r = null, i) {
|
|
2741
2741
|
return $i(e, t, r, i);
|
|
@@ -2770,7 +2770,7 @@ function Pa(n) {
|
|
|
2770
2770
|
}
|
|
2771
2771
|
return e;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function ps(n) {
|
|
2774
2774
|
return n.document || window.document;
|
|
2775
2775
|
}
|
|
2776
2776
|
const Ba = /* @__PURE__ */ new WeakMap();
|
|
@@ -2845,7 +2845,7 @@ function nh(n) {
|
|
|
2845
2845
|
return (n - (n & Xd)) / Qd;
|
|
2846
2846
|
}
|
|
2847
2847
|
const Zd = 1, eu = 2, Hi = 4, tu = 8;
|
|
2848
|
-
class
|
|
2848
|
+
class qs {
|
|
2849
2849
|
/**
|
|
2850
2850
|
@internal
|
|
2851
2851
|
*/
|
|
@@ -2922,11 +2922,11 @@ class Fe {
|
|
|
2922
2922
|
if (r)
|
|
2923
2923
|
return p;
|
|
2924
2924
|
let h = e == (t < 0 ? a : u) ? null : th(l / 3, e - a), m = e == a ? eu : e == u ? Zd : Hi;
|
|
2925
|
-
return (t < 0 ? e != a : e != u) && (m |= tu), new
|
|
2925
|
+
return (t < 0 ? e != a : e != u) && (m |= tu), new qs(p, m, h);
|
|
2926
2926
|
}
|
|
2927
2927
|
i += d - c;
|
|
2928
2928
|
}
|
|
2929
|
-
return r ? e + i : new
|
|
2929
|
+
return r ? e + i : new qs(e + i, 0, null);
|
|
2930
2930
|
}
|
|
2931
2931
|
/**
|
|
2932
2932
|
@internal
|
|
@@ -3082,10 +3082,10 @@ class qn {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
i |= l.delInfo, e = l.pos;
|
|
3084
3084
|
}
|
|
3085
|
-
return r ? e : new
|
|
3085
|
+
return r ? e : new qs(e, i, null);
|
|
3086
3086
|
}
|
|
3087
3087
|
}
|
|
3088
|
-
const
|
|
3088
|
+
const hs = /* @__PURE__ */ Object.create(null);
|
|
3089
3089
|
class Oe {
|
|
3090
3090
|
/**
|
|
3091
3091
|
Get the step map that represents the changes made by this step,
|
|
@@ -3110,7 +3110,7 @@ class Oe {
|
|
|
3110
3110
|
static fromJSON(e, t) {
|
|
3111
3111
|
if (!t || !t.stepType)
|
|
3112
3112
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
3113
|
-
let r =
|
|
3113
|
+
let r = hs[t.stepType];
|
|
3114
3114
|
if (!r)
|
|
3115
3115
|
throw new RangeError(`No step type ${t.stepType} defined`);
|
|
3116
3116
|
return r.fromJSON(e, t);
|
|
@@ -3122,9 +3122,9 @@ class Oe {
|
|
|
3122
3122
|
that's unlikely to clash with steps from other modules.
|
|
3123
3123
|
*/
|
|
3124
3124
|
static jsonID(e, t) {
|
|
3125
|
-
if (e in
|
|
3125
|
+
if (e in hs)
|
|
3126
3126
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
3127
|
-
return
|
|
3127
|
+
return hs[e] = t, t.prototype.jsonID = e, t;
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
3130
|
class pe {
|
|
@@ -3161,11 +3161,11 @@ class pe {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
}
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Ol(n, e, t) {
|
|
3165
3165
|
let r = [];
|
|
3166
3166
|
for (let i = 0; i < n.childCount; i++) {
|
|
3167
3167
|
let o = n.child(i);
|
|
3168
|
-
o.content.size && (o = o.copy(
|
|
3168
|
+
o.content.size && (o = o.copy(Ol(o.content, e, o))), o.isInline && (o = e(o, t, i)), r.push(o);
|
|
3169
3169
|
}
|
|
3170
3170
|
return S.fromArray(r);
|
|
3171
3171
|
}
|
|
@@ -3177,7 +3177,7 @@ class _t extends Oe {
|
|
|
3177
3177
|
super(), this.from = e, this.to = t, this.mark = r;
|
|
3178
3178
|
}
|
|
3179
3179
|
apply(e) {
|
|
3180
|
-
let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), o = new M(
|
|
3180
|
+
let t = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), o = new M(Ol(t.content, (s, l) => !s.isAtom || !l.type.allowsMarkType(this.mark.type) ? s : s.mark(this.mark.addToSet(s.marks)), i), t.openStart, t.openEnd);
|
|
3181
3181
|
return pe.fromReplace(e, this.from, this.to, o);
|
|
3182
3182
|
}
|
|
3183
3183
|
invert() {
|
|
@@ -3216,7 +3216,7 @@ class pt extends Oe {
|
|
|
3216
3216
|
super(), this.from = e, this.to = t, this.mark = r;
|
|
3217
3217
|
}
|
|
3218
3218
|
apply(e) {
|
|
3219
|
-
let t = e.slice(this.from, this.to), r = new M(
|
|
3219
|
+
let t = e.slice(this.from, this.to), r = new M(Ol(t.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), t.openStart, t.openEnd);
|
|
3220
3220
|
return pe.fromReplace(e, this.from, this.to, r);
|
|
3221
3221
|
}
|
|
3222
3222
|
invert() {
|
|
@@ -3340,7 +3340,7 @@ class ge extends Oe {
|
|
|
3340
3340
|
super(), this.from = e, this.to = t, this.slice = r, this.structure = i;
|
|
3341
3341
|
}
|
|
3342
3342
|
apply(e) {
|
|
3343
|
-
return this.structure &&
|
|
3343
|
+
return this.structure && Ks(e, this.from, this.to) ? pe.fail("Structure replace would overwrite content") : pe.fromReplace(e, this.from, this.to, this.slice);
|
|
3344
3344
|
}
|
|
3345
3345
|
getMap() {
|
|
3346
3346
|
return new Fe([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -3389,7 +3389,7 @@ class ye extends Oe {
|
|
|
3389
3389
|
super(), this.from = e, this.to = t, this.gapFrom = r, this.gapTo = i, this.slice = o, this.insert = s, this.structure = l;
|
|
3390
3390
|
}
|
|
3391
3391
|
apply(e) {
|
|
3392
|
-
if (this.structure && (
|
|
3392
|
+
if (this.structure && (Ks(e, this.from, this.gapFrom) || Ks(e, this.gapTo, this.to)))
|
|
3393
3393
|
return pe.fail("Structure gap-replace would overwrite content");
|
|
3394
3394
|
let t = e.slice(this.gapFrom, this.gapTo);
|
|
3395
3395
|
if (t.openStart || t.openEnd)
|
|
@@ -3436,7 +3436,7 @@ class ye extends Oe {
|
|
|
3436
3436
|
}
|
|
3437
3437
|
}
|
|
3438
3438
|
Oe.jsonID("replaceAround", ye);
|
|
3439
|
-
function
|
|
3439
|
+
function Ks(n, e, t) {
|
|
3440
3440
|
let r = n.resolve(e), i = t - e, o = r.depth;
|
|
3441
3441
|
for (; i > 0 && o > 0 && r.indexAfter(o) == r.node(o).childCount; )
|
|
3442
3442
|
o--, i--;
|
|
@@ -3490,7 +3490,7 @@ function ih(n, e, t, r) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
}), i.forEach((s) => n.step(new pt(s.from, s.to, s.style)));
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Nl(n, e, t, r = t.contentMatch, i = !0) {
|
|
3494
3494
|
let o = n.doc.nodeAt(e), s = [], l = e + 1;
|
|
3495
3495
|
for (let a = 0; a < o.childCount; a++) {
|
|
3496
3496
|
let c = o.child(a), d = l + c.nodeSize, u = r.matchType(c.type);
|
|
@@ -3538,7 +3538,7 @@ function sh(n, e, t) {
|
|
|
3538
3538
|
m || i.after(h + 1) < i.end(h) ? (m = !0, f = S.from(i.node(h).copy(f)), p++) : c++;
|
|
3539
3539
|
n.step(new ye(a, c, s, l, new M(d.append(f), u, p), d.size - u, !0));
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function Dl(n, e, t = null, r = n) {
|
|
3542
3542
|
let i = lh(n, e), o = i && ah(r, e);
|
|
3543
3543
|
return o ? i.map($a).concat({ type: e, attrs: t }).concat(o.map($a)) : null;
|
|
3544
3544
|
}
|
|
@@ -3586,7 +3586,7 @@ function dh(n, e, t, r, i) {
|
|
|
3586
3586
|
let p = r.whitespace == "pre", h = !!r.contentMatch.matchType(r.schema.linebreakReplacement);
|
|
3587
3587
|
p && !h ? c = !1 : !p && h && (c = !0);
|
|
3588
3588
|
}
|
|
3589
|
-
c === !1 && ru(n, s, l, o),
|
|
3589
|
+
c === !1 && ru(n, s, l, o), Nl(n, n.mapping.slice(o).map(l, 1), r, void 0, c === null);
|
|
3590
3590
|
let d = n.mapping.slice(o), u = d.map(l, 1), f = d.map(l + s.nodeSize, 1);
|
|
3591
3591
|
return n.step(new ye(u, f, u + 1, f - 1, new M(S.from(r.create(a, null, s.marks)), 0, 0), 1, !0)), c === !0 && nu(n, s, l, o), !1;
|
|
3592
3592
|
}
|
|
@@ -3693,7 +3693,7 @@ function mh(n, e, t) {
|
|
|
3693
3693
|
let d = n.doc.resolve(e + t);
|
|
3694
3694
|
ru(n, d.node(), d.before(), l);
|
|
3695
3695
|
}
|
|
3696
|
-
s.inlineContent &&
|
|
3696
|
+
s.inlineContent && Nl(n, e + t - 1, s, o.node().contentMatchAt(o.index()), r == null);
|
|
3697
3697
|
let a = n.mapping.slice(l), c = a.map(e - t);
|
|
3698
3698
|
if (n.step(new ge(c, a.map(e + t, -1), M.empty, !0)), r === !0) {
|
|
3699
3699
|
let d = n.doc.resolve(c);
|
|
@@ -3799,7 +3799,7 @@ class yh {
|
|
|
3799
3799
|
for (let t = 1; t <= 2; t++)
|
|
3800
3800
|
for (let r = t == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
3801
3801
|
let i, o = null;
|
|
3802
|
-
r ? (o =
|
|
3802
|
+
r ? (o = ms(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
|
|
3803
3803
|
let s = i.firstChild;
|
|
3804
3804
|
for (let l = this.depth; l >= 0; l--) {
|
|
3805
3805
|
let { type: a, match: c } = this.frontier[l], d, u = null;
|
|
@@ -3813,11 +3813,11 @@ class yh {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
}
|
|
3815
3815
|
openMore() {
|
|
3816
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
3816
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = ms(e, t);
|
|
3817
3817
|
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new M(e, t + 1, Math.max(r, i.size + t >= e.size - r ? t + 1 : 0)), !0);
|
|
3818
3818
|
}
|
|
3819
3819
|
dropNode() {
|
|
3820
|
-
let { content: e, openStart: t, openEnd: r } = this.unplaced, i =
|
|
3820
|
+
let { content: e, openStart: t, openEnd: r } = this.unplaced, i = ms(e, t);
|
|
3821
3821
|
if (i.childCount <= 1 && t > 0) {
|
|
3822
3822
|
let o = e.size - t <= t + i.size;
|
|
3823
3823
|
this.unplaced = new M(wr(e, t - 1, 1), t - 1, o ? t - 1 : r);
|
|
@@ -3858,7 +3858,7 @@ class yh {
|
|
|
3858
3858
|
if (!this.$to.parent.isTextblock)
|
|
3859
3859
|
return -1;
|
|
3860
3860
|
let e = this.frontier[this.depth], t;
|
|
3861
|
-
if (!e.type.isTextblock || !
|
|
3861
|
+
if (!e.type.isTextblock || !gs(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
|
|
3862
3862
|
return -1;
|
|
3863
3863
|
let { depth: r } = this.$to, i = this.$to.after(r);
|
|
3864
3864
|
for (; r > 1 && i == this.$to.end(--r); )
|
|
@@ -3868,10 +3868,10 @@ class yh {
|
|
|
3868
3868
|
findCloseLevel(e) {
|
|
3869
3869
|
e:
|
|
3870
3870
|
for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
|
|
3871
|
-
let { match: r, type: i } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), s =
|
|
3871
|
+
let { match: r, type: i } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), s = gs(e, t, i, r, o);
|
|
3872
3872
|
if (s) {
|
|
3873
3873
|
for (let l = t - 1; l >= 0; l--) {
|
|
3874
|
-
let { match: a, type: c } = this.frontier[l], d =
|
|
3874
|
+
let { match: a, type: c } = this.frontier[l], d = gs(e, l, c, a, !0);
|
|
3875
3875
|
if (!d || d.childCount)
|
|
3876
3876
|
continue e;
|
|
3877
3877
|
}
|
|
@@ -3907,7 +3907,7 @@ function wr(n, e, t) {
|
|
|
3907
3907
|
function kr(n, e, t) {
|
|
3908
3908
|
return e == 0 ? n.append(t) : n.replaceChild(n.childCount - 1, n.lastChild.copy(kr(n.lastChild.content, e - 1, t)));
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function ms(n, e) {
|
|
3911
3911
|
for (let t = 0; t < e; t++)
|
|
3912
3912
|
n = n.firstChild.content;
|
|
3913
3913
|
return n;
|
|
@@ -3918,7 +3918,7 @@ function lu(n, e, t) {
|
|
|
3918
3918
|
let r = n.content;
|
|
3919
3919
|
return e > 1 && (r = r.replaceChild(0, lu(r.firstChild, e - 1, r.childCount == 1 ? t - 1 : 0))), e > 0 && (r = n.type.contentMatch.fillBefore(r).append(r), t <= 0 && (r = r.append(n.type.contentMatch.matchFragment(r).fillBefore(S.empty, !0)))), n.copy(r);
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function gs(n, e, t, r, i) {
|
|
3922
3922
|
let o = n.node(e), s = i ? n.indexAfter(e) : n.index(e);
|
|
3923
3923
|
if (s == o.childCount && !t.compatibleContent(o.type))
|
|
3924
3924
|
return null;
|
|
@@ -4104,7 +4104,7 @@ Xn = function n(e) {
|
|
|
4104
4104
|
Xn.prototype = Object.create(Error.prototype);
|
|
4105
4105
|
Xn.prototype.constructor = Xn;
|
|
4106
4106
|
Xn.prototype.name = "TransformError";
|
|
4107
|
-
class
|
|
4107
|
+
class Rl {
|
|
4108
4108
|
/**
|
|
4109
4109
|
Create a transform that starts with the given document.
|
|
4110
4110
|
*/
|
|
@@ -4321,10 +4321,10 @@ class Dl {
|
|
|
4321
4321
|
third argument.
|
|
4322
4322
|
*/
|
|
4323
4323
|
clearIncompatible(e, t, r) {
|
|
4324
|
-
return
|
|
4324
|
+
return Nl(this, e, t, r), this;
|
|
4325
4325
|
}
|
|
4326
4326
|
}
|
|
4327
|
-
const
|
|
4327
|
+
const ys = /* @__PURE__ */ Object.create(null);
|
|
4328
4328
|
class z {
|
|
4329
4329
|
/**
|
|
4330
4330
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -4460,7 +4460,7 @@ class z {
|
|
|
4460
4460
|
static fromJSON(e, t) {
|
|
4461
4461
|
if (!t || !t.type)
|
|
4462
4462
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
4463
|
-
let r =
|
|
4463
|
+
let r = ys[t.type];
|
|
4464
4464
|
if (!r)
|
|
4465
4465
|
throw new RangeError(`No selection type ${t.type} defined`);
|
|
4466
4466
|
return r.fromJSON(e, t);
|
|
@@ -4472,9 +4472,9 @@ class z {
|
|
|
4472
4472
|
clash with classes from other modules.
|
|
4473
4473
|
*/
|
|
4474
4474
|
static jsonID(e, t) {
|
|
4475
|
-
if (e in
|
|
4475
|
+
if (e in ys)
|
|
4476
4476
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
4477
|
-
return
|
|
4477
|
+
return ys[e] = t, t.prototype.jsonID = e, t;
|
|
4478
4478
|
}
|
|
4479
4479
|
/**
|
|
4480
4480
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -4608,7 +4608,7 @@ class L extends z {
|
|
|
4608
4608
|
return { type: "node", anchor: this.anchor };
|
|
4609
4609
|
}
|
|
4610
4610
|
getBookmark() {
|
|
4611
|
-
return new
|
|
4611
|
+
return new Il(this.anchor);
|
|
4612
4612
|
}
|
|
4613
4613
|
/**
|
|
4614
4614
|
@internal
|
|
@@ -4634,13 +4634,13 @@ class L extends z {
|
|
|
4634
4634
|
}
|
|
4635
4635
|
L.prototype.visible = !1;
|
|
4636
4636
|
z.jsonID("node", L);
|
|
4637
|
-
class
|
|
4637
|
+
class Il {
|
|
4638
4638
|
constructor(e) {
|
|
4639
4639
|
this.anchor = e;
|
|
4640
4640
|
}
|
|
4641
4641
|
map(e) {
|
|
4642
4642
|
let { deleted: t, pos: r } = e.mapResult(this.anchor);
|
|
4643
|
-
return t ? new Wo(r, r) : new
|
|
4643
|
+
return t ? new Wo(r, r) : new Il(r);
|
|
4644
4644
|
}
|
|
4645
4645
|
resolve(e) {
|
|
4646
4646
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
@@ -4720,7 +4720,7 @@ function Va(n, e, t) {
|
|
|
4720
4720
|
}), n.setSelection(z.near(n.doc.resolve(s), t));
|
|
4721
4721
|
}
|
|
4722
4722
|
const ja = 1, Ci = 2, _a = 4;
|
|
4723
|
-
class Sh extends
|
|
4723
|
+
class Sh extends Rl {
|
|
4724
4724
|
/**
|
|
4725
4725
|
@internal
|
|
4726
4726
|
*/
|
|
@@ -4913,7 +4913,7 @@ const Th = [
|
|
|
4913
4913
|
}
|
|
4914
4914
|
})
|
|
4915
4915
|
];
|
|
4916
|
-
class
|
|
4916
|
+
class bs {
|
|
4917
4917
|
constructor(e, t) {
|
|
4918
4918
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Th.slice(), t && t.forEach((r) => {
|
|
4919
4919
|
if (this.pluginsByKey[r.key])
|
|
@@ -5014,7 +5014,7 @@ class Wn {
|
|
|
5014
5014
|
Create a new state.
|
|
5015
5015
|
*/
|
|
5016
5016
|
static create(e) {
|
|
5017
|
-
let t = new
|
|
5017
|
+
let t = new bs(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Wn(t);
|
|
5018
5018
|
for (let i = 0; i < t.fields.length; i++)
|
|
5019
5019
|
r[t.fields[i].name] = t.fields[i].init(e, r);
|
|
5020
5020
|
return r;
|
|
@@ -5028,7 +5028,7 @@ class Wn {
|
|
|
5028
5028
|
configuration object..
|
|
5029
5029
|
*/
|
|
5030
5030
|
reconfigure(e) {
|
|
5031
|
-
let t = new
|
|
5031
|
+
let t = new bs(this.schema, e.plugins), r = t.fields, i = new Wn(t);
|
|
5032
5032
|
for (let o = 0; o < r.length; o++) {
|
|
5033
5033
|
let s = r[o].name;
|
|
5034
5034
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -5065,7 +5065,7 @@ class Wn {
|
|
|
5065
5065
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
5066
5066
|
if (!e.schema)
|
|
5067
5067
|
throw new RangeError("Required config field 'schema' missing");
|
|
5068
|
-
let i = new
|
|
5068
|
+
let i = new bs(e.schema, e.plugins), o = new Wn(i);
|
|
5069
5069
|
return i.fields.forEach((s) => {
|
|
5070
5070
|
if (s.name == "doc")
|
|
5071
5071
|
o.doc = yn.fromJSON(e.schema, t.doc);
|
|
@@ -5108,9 +5108,9 @@ class le {
|
|
|
5108
5108
|
return e[this.key];
|
|
5109
5109
|
}
|
|
5110
5110
|
}
|
|
5111
|
-
const
|
|
5111
|
+
const vs = /* @__PURE__ */ Object.create(null);
|
|
5112
5112
|
function fu(n) {
|
|
5113
|
-
return n in
|
|
5113
|
+
return n in vs ? n + "$" + ++vs[n] : (vs[n] = 0, n + "$");
|
|
5114
5114
|
}
|
|
5115
5115
|
class he {
|
|
5116
5116
|
/**
|
|
@@ -5141,12 +5141,12 @@ const Ce = function(n) {
|
|
|
5141
5141
|
let e = n.assignedSlot || n.parentNode;
|
|
5142
5142
|
return e && e.nodeType == 11 ? e.host : e;
|
|
5143
5143
|
};
|
|
5144
|
-
let
|
|
5144
|
+
let Js = null;
|
|
5145
5145
|
const Et = function(n, e, t) {
|
|
5146
|
-
let r =
|
|
5146
|
+
let r = Js || (Js = document.createRange());
|
|
5147
5147
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
5148
5148
|
}, Ah = function() {
|
|
5149
|
-
|
|
5149
|
+
Js = null;
|
|
5150
5150
|
}, Tn = function(n, e, t, r) {
|
|
5151
5151
|
return t && (Ua(n, e, t, r, -1) || Ua(n, e, t, r, 1));
|
|
5152
5152
|
}, Mh = /^(img|br|input|textarea|hr)$/i;
|
|
@@ -5241,9 +5241,9 @@ function Rh(n, e, t) {
|
|
|
5241
5241
|
return { node: r.startContainer, offset: Math.min(Je(r.startContainer), r.startOffset) };
|
|
5242
5242
|
}
|
|
5243
5243
|
}
|
|
5244
|
-
const mt = typeof navigator < "u" ? navigator : null, qa = typeof document < "u" ? document : null, Zt = mt && mt.userAgent || "",
|
|
5244
|
+
const mt = typeof navigator < "u" ? navigator : null, qa = typeof document < "u" ? document : null, Zt = mt && mt.userAgent || "", Gs = /Edge\/(\d+)/.exec(Zt), pu = /MSIE \d/.exec(Zt), Ys = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt), ze = !!(pu || Ys || Gs), Jt = pu ? document.documentMode : Ys ? +Ys[1] : Gs ? +Gs[1] : 0, it = !ze && /gecko\/(\d+)/i.test(Zt);
|
|
5245
5245
|
it && +(/Firefox\/(\d+)/.exec(Zt) || [0, 0])[1];
|
|
5246
|
-
const
|
|
5246
|
+
const Xs = !ze && /Chrome\/(\d+)/.exec(Zt), Ae = !!Xs, hu = Xs ? +Xs[1] : 0, De = !ze && !!mt && /Apple Computer/.test(mt.vendor), Qn = De && (/Mobile\/\w+/.test(Zt) || !!mt && mt.maxTouchPoints > 2), Ke = Qn || (mt ? /Mac/.test(mt.platform) : !1), Ih = mt ? /Win/.test(mt.platform) : !1, tt = /Android \d/.test(Zt), oi = !!qa && "webkitFontSmoothing" in qa.documentElement.style, Lh = oi ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
5247
5247
|
function Ph(n) {
|
|
5248
5248
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
5249
5249
|
return e ? {
|
|
@@ -5366,12 +5366,12 @@ function Fh(n, e) {
|
|
|
5366
5366
|
for (let i = 0; i < t; i++) {
|
|
5367
5367
|
r.setEnd(n, i + 1), r.setStart(n, i);
|
|
5368
5368
|
let o = Bt(r, 1);
|
|
5369
|
-
if (o.top != o.bottom &&
|
|
5369
|
+
if (o.top != o.bottom && Ll(e, o))
|
|
5370
5370
|
return { node: n, offset: i + (e.left >= (o.left + o.right) / 2 ? 1 : 0) };
|
|
5371
5371
|
}
|
|
5372
5372
|
return { node: n, offset: 0 };
|
|
5373
5373
|
}
|
|
5374
|
-
function
|
|
5374
|
+
function Ll(n, e) {
|
|
5375
5375
|
return n.left >= e.left - 1 && n.left <= e.right + 1 && n.top >= e.top - 1 && n.top <= e.bottom + 1;
|
|
5376
5376
|
}
|
|
5377
5377
|
function Vh(n, e) {
|
|
@@ -5410,7 +5410,7 @@ function bu(n, e, t) {
|
|
|
5410
5410
|
let l = s.getClientRects();
|
|
5411
5411
|
for (let a = 0; a < l.length; a++) {
|
|
5412
5412
|
let c = l[a];
|
|
5413
|
-
if (
|
|
5413
|
+
if (Ll(e, c))
|
|
5414
5414
|
return bu(s, e, c);
|
|
5415
5415
|
}
|
|
5416
5416
|
}
|
|
@@ -5425,7 +5425,7 @@ function Wh(n, e) {
|
|
|
5425
5425
|
let s = (n.root.elementFromPoint ? n.root : t).elementFromPoint(e.left, e.top), l;
|
|
5426
5426
|
if (!s || !n.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
|
|
5427
5427
|
let c = n.dom.getBoundingClientRect();
|
|
5428
|
-
if (!
|
|
5428
|
+
if (!Ll(e, c) || (s = bu(n.dom, e, c), !s))
|
|
5429
5429
|
return null;
|
|
5430
5430
|
}
|
|
5431
5431
|
if (De)
|
|
@@ -5478,14 +5478,14 @@ function vu(n, e, t) {
|
|
|
5478
5478
|
if (o == null && i && (t < 0 || i == Je(r))) {
|
|
5479
5479
|
let a = r.childNodes[i - 1];
|
|
5480
5480
|
if (a.nodeType == 1)
|
|
5481
|
-
return
|
|
5481
|
+
return xs(a.getBoundingClientRect(), !1);
|
|
5482
5482
|
}
|
|
5483
5483
|
if (o == null && i < Je(r)) {
|
|
5484
5484
|
let a = r.childNodes[i];
|
|
5485
5485
|
if (a.nodeType == 1)
|
|
5486
|
-
return
|
|
5486
|
+
return xs(a.getBoundingClientRect(), !0);
|
|
5487
5487
|
}
|
|
5488
|
-
return
|
|
5488
|
+
return xs(r.getBoundingClientRect(), t >= 0);
|
|
5489
5489
|
}
|
|
5490
5490
|
if (o == null && i && (t < 0 || i == Je(r))) {
|
|
5491
5491
|
let a = r.childNodes[i - 1], c = a.nodeType == 3 ? Et(a, Je(a) - (s ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
|
|
@@ -5508,7 +5508,7 @@ function yr(n, e) {
|
|
|
5508
5508
|
let t = e ? n.left : n.right;
|
|
5509
5509
|
return { top: n.top, bottom: n.bottom, left: t, right: t };
|
|
5510
5510
|
}
|
|
5511
|
-
function
|
|
5511
|
+
function xs(n, e) {
|
|
5512
5512
|
if (n.height == 0)
|
|
5513
5513
|
return n;
|
|
5514
5514
|
let t = e ? n.top : n.bottom;
|
|
@@ -5993,7 +5993,7 @@ class An extends si {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
slice(e, t, r) {
|
|
5995
5995
|
let i = An.create(this.parent, this.mark, !0, r), o = this.children, s = this.size;
|
|
5996
|
-
t < s && (o =
|
|
5996
|
+
t < s && (o = Zs(o, t, s, r)), e > 0 && (o = Zs(o, 0, e, r));
|
|
5997
5997
|
for (let l = 0; l < o.length; l++)
|
|
5998
5998
|
o[l].parent = i;
|
|
5999
5999
|
return i.children = o, i;
|
|
@@ -6101,7 +6101,7 @@ class Gt extends si {
|
|
|
6101
6101
|
o.pmViewDesc && (o.pmViewDesc = void 0);
|
|
6102
6102
|
}
|
|
6103
6103
|
let s = new Yh(this, o, t, i);
|
|
6104
|
-
e.input.compositionNodes.push(s), this.children =
|
|
6104
|
+
e.input.compositionNodes.push(s), this.children = Zs(this.children, r, r + i.length, e, s);
|
|
6105
6105
|
}
|
|
6106
6106
|
// If this desc must be updated to match the given node decoration,
|
|
6107
6107
|
// do so and return true.
|
|
@@ -6115,7 +6115,7 @@ class Gt extends si {
|
|
|
6115
6115
|
if (eo(e, this.outerDeco))
|
|
6116
6116
|
return;
|
|
6117
6117
|
let t = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
6118
|
-
this.dom = Su(this.dom, this.nodeDOM,
|
|
6118
|
+
this.dom = Su(this.dom, this.nodeDOM, Qs(this.outerDeco, this.node, t), Qs(e, this.node, t)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
6119
6119
|
}
|
|
6120
6120
|
// Mark this node as being the selected node.
|
|
6121
6121
|
selectNode() {
|
|
@@ -6250,7 +6250,7 @@ const Er = function(n) {
|
|
|
6250
6250
|
};
|
|
6251
6251
|
Er.prototype = /* @__PURE__ */ Object.create(null);
|
|
6252
6252
|
const pn = [new Er()];
|
|
6253
|
-
function
|
|
6253
|
+
function Qs(n, e, t) {
|
|
6254
6254
|
if (n.length == 0)
|
|
6255
6255
|
return pn;
|
|
6256
6256
|
let r = t ? pn[0] : new Er(), i = [r];
|
|
@@ -6303,7 +6303,7 @@ function Qh(n, e, t) {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
}
|
|
6305
6305
|
function Tu(n, e, t) {
|
|
6306
|
-
return Su(n, n, pn,
|
|
6306
|
+
return Su(n, n, pn, Qs(e, t, n.nodeType != 1));
|
|
6307
6307
|
}
|
|
6308
6308
|
function eo(n, e) {
|
|
6309
6309
|
if (n.length != e.length)
|
|
@@ -6576,7 +6576,7 @@ function im(n, e, t, r) {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
return -1;
|
|
6578
6578
|
}
|
|
6579
|
-
function
|
|
6579
|
+
function Zs(n, e, t, r, i) {
|
|
6580
6580
|
let o = [];
|
|
6581
6581
|
for (let s = 0, l = 0; s < n.length; s++) {
|
|
6582
6582
|
let a = n[s], c = l, d = l += a.size;
|
|
@@ -6584,7 +6584,7 @@ function Qs(n, e, t, r, i) {
|
|
|
6584
6584
|
}
|
|
6585
6585
|
return o;
|
|
6586
6586
|
}
|
|
6587
|
-
function
|
|
6587
|
+
function Pl(n, e = null) {
|
|
6588
6588
|
let t = n.domSelectionRange(), r = n.state.doc;
|
|
6589
6589
|
if (!t.focusNode)
|
|
6590
6590
|
return null;
|
|
@@ -6618,7 +6618,7 @@ function Ll(n, e = null) {
|
|
|
6618
6618
|
let d = r.resolve(a);
|
|
6619
6619
|
if (!c) {
|
|
6620
6620
|
let u = e == "pointer" || n.state.selection.head < l.pos && !o ? 1 : -1;
|
|
6621
|
-
c =
|
|
6621
|
+
c = Bl(n, d, l, u);
|
|
6622
6622
|
}
|
|
6623
6623
|
return c;
|
|
6624
6624
|
}
|
|
@@ -6648,15 +6648,15 @@ const tc = De || Ae && hu < 63;
|
|
|
6648
6648
|
function nc(n, e) {
|
|
6649
6649
|
let { node: t, offset: r } = n.docView.domFromPos(e, 0), i = r < t.childNodes.length ? t.childNodes[r] : null, o = r ? t.childNodes[r - 1] : null;
|
|
6650
6650
|
if (De && i && i.contentEditable == "false")
|
|
6651
|
-
return
|
|
6651
|
+
return ws(i);
|
|
6652
6652
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
6653
6653
|
if (i)
|
|
6654
|
-
return
|
|
6654
|
+
return ws(i);
|
|
6655
6655
|
if (o)
|
|
6656
|
-
return
|
|
6656
|
+
return ws(o);
|
|
6657
6657
|
}
|
|
6658
6658
|
}
|
|
6659
|
-
function
|
|
6659
|
+
function ws(n) {
|
|
6660
6660
|
return n.contentEditable = "true", De && n.draggable && (n.draggable = !1, n.wasDraggable = !0), n;
|
|
6661
6661
|
}
|
|
6662
6662
|
function rc(n) {
|
|
@@ -6689,7 +6689,7 @@ function Mu(n, e) {
|
|
|
6689
6689
|
function ic(n) {
|
|
6690
6690
|
n.lastSelectedViewDesc && (n.lastSelectedViewDesc.parent && n.lastSelectedViewDesc.deselectNode(), n.lastSelectedViewDesc = void 0);
|
|
6691
6691
|
}
|
|
6692
|
-
function
|
|
6692
|
+
function Bl(n, e, t, r) {
|
|
6693
6693
|
return n.someProp("createSelectionBetween", (i) => i(n, e, t)) || B.between(e, t, r);
|
|
6694
6694
|
}
|
|
6695
6695
|
function oc(n) {
|
|
@@ -6709,7 +6709,7 @@ function lm(n) {
|
|
|
6709
6709
|
let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
|
|
6710
6710
|
return Tn(e.node, e.offset, t.anchorNode, t.anchorOffset);
|
|
6711
6711
|
}
|
|
6712
|
-
function
|
|
6712
|
+
function el(n, e) {
|
|
6713
6713
|
let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), o = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
|
|
6714
6714
|
return o && z.findFrom(o, e);
|
|
6715
6715
|
}
|
|
@@ -6727,7 +6727,7 @@ function sc(n, e, t) {
|
|
|
6727
6727
|
return zt(n, new B(r.$anchor, s));
|
|
6728
6728
|
} else if (r.empty) {
|
|
6729
6729
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
6730
|
-
let i =
|
|
6730
|
+
let i = el(n.state, e);
|
|
6731
6731
|
return i && i instanceof L ? zt(n, i) : !1;
|
|
6732
6732
|
} else if (!(Ke && t.indexOf("m") > -1)) {
|
|
6733
6733
|
let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
|
|
@@ -6742,7 +6742,7 @@ function sc(n, e, t) {
|
|
|
6742
6742
|
if (r instanceof L && r.node.isInline)
|
|
6743
6743
|
return zt(n, new B(e > 0 ? r.$to : r.$from));
|
|
6744
6744
|
{
|
|
6745
|
-
let i =
|
|
6745
|
+
let i = el(n.state, e);
|
|
6746
6746
|
return i ? zt(n, i) : !1;
|
|
6747
6747
|
}
|
|
6748
6748
|
}
|
|
@@ -6791,7 +6791,7 @@ function am(n) {
|
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
6793
|
}
|
|
6794
|
-
s ?
|
|
6794
|
+
s ? tl(n, t, r) : i && tl(n, i, o);
|
|
6795
6795
|
}
|
|
6796
6796
|
function cm(n) {
|
|
6797
6797
|
let e = n.domSelectionRange(), t = e.focusNode, r = e.focusOffset;
|
|
@@ -6823,7 +6823,7 @@ function cm(n) {
|
|
|
6823
6823
|
}
|
|
6824
6824
|
}
|
|
6825
6825
|
}
|
|
6826
|
-
o &&
|
|
6826
|
+
o && tl(n, o, s);
|
|
6827
6827
|
}
|
|
6828
6828
|
function Ou(n) {
|
|
6829
6829
|
let e = n.pmViewDesc;
|
|
@@ -6853,7 +6853,7 @@ function um(n, e) {
|
|
|
6853
6853
|
n = t, e = n.childNodes.length;
|
|
6854
6854
|
}
|
|
6855
6855
|
}
|
|
6856
|
-
function
|
|
6856
|
+
function tl(n, e, t) {
|
|
6857
6857
|
if (e.nodeType != 3) {
|
|
6858
6858
|
let o, s;
|
|
6859
6859
|
(s = dm(e, t)) ? (e = s, t = 0) : (o = um(e, t)) && (e = o, t = o.nodeValue.length);
|
|
@@ -6895,7 +6895,7 @@ function ac(n, e, t) {
|
|
|
6895
6895
|
return !1;
|
|
6896
6896
|
let { $from: i, $to: o } = r;
|
|
6897
6897
|
if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
6898
|
-
let s =
|
|
6898
|
+
let s = el(n.state, e);
|
|
6899
6899
|
if (s && s instanceof L)
|
|
6900
6900
|
return zt(n, s);
|
|
6901
6901
|
}
|
|
@@ -7090,12 +7090,12 @@ function Lu(n, e) {
|
|
|
7090
7090
|
let t = n.content.replaceChild(n.childCount - 1, Lu(n.lastChild, e - 1)), r = n.contentMatchAt(n.childCount).fillBefore(S.empty, !0);
|
|
7091
7091
|
return n.copy(t.append(r));
|
|
7092
7092
|
}
|
|
7093
|
-
function
|
|
7093
|
+
function nl(n, e, t, r, i, o) {
|
|
7094
7094
|
let s = e < 0 ? n.firstChild : n.lastChild, l = s.content;
|
|
7095
|
-
return n.childCount > 1 && (o = 0), i < r - 1 && (l =
|
|
7095
|
+
return n.childCount > 1 && (o = 0), i < r - 1 && (l = nl(l, e, t, r, i + 1, o)), i >= t && (l = e < 0 ? s.contentMatchAt(0).fillBefore(l, o <= i).append(l) : l.append(s.contentMatchAt(s.childCount).fillBefore(S.empty, !0))), n.replaceChild(e < 0 ? 0 : n.childCount - 1, s.copy(l));
|
|
7096
7096
|
}
|
|
7097
7097
|
function uc(n, e, t) {
|
|
7098
|
-
return e < n.openStart && (n = new M(
|
|
7098
|
+
return e < n.openStart && (n = new M(nl(n.content, -1, e, n.openStart, 0, n.openEnd), e, n.openEnd)), t < n.openEnd && (n = new M(nl(n.content, 1, t, n.openEnd, 0, 0), n.openStart, t)), n;
|
|
7099
7099
|
}
|
|
7100
7100
|
const Pu = {
|
|
7101
7101
|
thead: ["table"],
|
|
@@ -7112,10 +7112,10 @@ let fc = null;
|
|
|
7112
7112
|
function Bu() {
|
|
7113
7113
|
return fc || (fc = document.implementation.createHTMLDocument("title"));
|
|
7114
7114
|
}
|
|
7115
|
-
let
|
|
7115
|
+
let ks = null;
|
|
7116
7116
|
function ym(n) {
|
|
7117
7117
|
let e = window.trustedTypes;
|
|
7118
|
-
return e ? (
|
|
7118
|
+
return e ? (ks || (ks = e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), ks.createHTML(n)) : n;
|
|
7119
7119
|
}
|
|
7120
7120
|
function bm(n) {
|
|
7121
7121
|
let e = /^(\s*<meta [^>]*>)*/.exec(n);
|
|
@@ -7161,10 +7161,10 @@ function Cm(n) {
|
|
|
7161
7161
|
for (let e in Re) {
|
|
7162
7162
|
let t = Re[e];
|
|
7163
7163
|
n.dom.addEventListener(e, n.input.eventHandlers[e] = (r) => {
|
|
7164
|
-
Tm(n, r) && !
|
|
7164
|
+
Tm(n, r) && !zl(n, r) && (n.editable || !(r.type in Ie)) && t(n, r);
|
|
7165
7165
|
}, wm[e] ? { passive: !0 } : void 0);
|
|
7166
7166
|
}
|
|
7167
|
-
De && n.dom.addEventListener("input", () => null),
|
|
7167
|
+
De && n.dom.addEventListener("input", () => null), rl(n);
|
|
7168
7168
|
}
|
|
7169
7169
|
function Ut(n, e) {
|
|
7170
7170
|
n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
|
|
@@ -7175,13 +7175,13 @@ function Sm(n) {
|
|
|
7175
7175
|
n.dom.removeEventListener(e, n.input.eventHandlers[e]);
|
|
7176
7176
|
clearTimeout(n.input.composingTimeout), clearTimeout(n.input.lastIOSEnterFallbackTimeout);
|
|
7177
7177
|
}
|
|
7178
|
-
function
|
|
7178
|
+
function rl(n) {
|
|
7179
7179
|
n.someProp("handleDOMEvents", (e) => {
|
|
7180
7180
|
for (let t in e)
|
|
7181
|
-
n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) =>
|
|
7181
|
+
n.input.eventHandlers[t] || n.dom.addEventListener(t, n.input.eventHandlers[t] = (r) => zl(n, r));
|
|
7182
7182
|
});
|
|
7183
7183
|
}
|
|
7184
|
-
function
|
|
7184
|
+
function zl(n, e) {
|
|
7185
7185
|
return n.someProp("handleDOMEvents", (t) => {
|
|
7186
7186
|
let r = t[e.type];
|
|
7187
7187
|
return r ? r(n, e) || e.defaultPrevented : !1;
|
|
@@ -7198,7 +7198,7 @@ function Tm(n, e) {
|
|
|
7198
7198
|
return !0;
|
|
7199
7199
|
}
|
|
7200
7200
|
function Am(n, e) {
|
|
7201
|
-
!
|
|
7201
|
+
!zl(n, e) && Re[e.type] && (n.editable || !(e.type in Ie)) && Re[e.type](n, e);
|
|
7202
7202
|
}
|
|
7203
7203
|
Ie.keydown = (n, e) => {
|
|
7204
7204
|
let t = e;
|
|
@@ -7235,7 +7235,7 @@ function Mm(n, e) {
|
|
|
7235
7235
|
let t = e.x - n.clientX, r = e.y - n.clientY;
|
|
7236
7236
|
return t * t + r * r < 100;
|
|
7237
7237
|
}
|
|
7238
|
-
function
|
|
7238
|
+
function $l(n, e, t, r, i) {
|
|
7239
7239
|
if (r == -1)
|
|
7240
7240
|
return !1;
|
|
7241
7241
|
let o = n.state.doc.resolve(r);
|
|
@@ -7272,13 +7272,13 @@ function Om(n, e) {
|
|
|
7272
7272
|
return i != null ? (Gn(n, L.create(n.state.doc, i)), !0) : !1;
|
|
7273
7273
|
}
|
|
7274
7274
|
function Nm(n, e, t, r, i) {
|
|
7275
|
-
return
|
|
7275
|
+
return $l(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (o) => o(n, e, r)) || (i ? Om(n, t) : Em(n, t));
|
|
7276
7276
|
}
|
|
7277
7277
|
function Dm(n, e, t, r) {
|
|
7278
|
-
return
|
|
7278
|
+
return $l(n, "handleDoubleClickOn", e, t, r) || n.someProp("handleDoubleClick", (i) => i(n, e, r));
|
|
7279
7279
|
}
|
|
7280
7280
|
function Rm(n, e, t, r) {
|
|
7281
|
-
return
|
|
7281
|
+
return $l(n, "handleTripleClickOn", e, t, r) || n.someProp("handleTripleClick", (i) => i(n, e, r)) || Im(n, t, r);
|
|
7282
7282
|
}
|
|
7283
7283
|
function Im(n, e, t) {
|
|
7284
7284
|
if (t.button != 0)
|
|
@@ -7298,14 +7298,14 @@ function Im(n, e, t) {
|
|
|
7298
7298
|
return !0;
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
|
-
function
|
|
7301
|
+
function Hl(n) {
|
|
7302
7302
|
return no(n);
|
|
7303
7303
|
}
|
|
7304
7304
|
const zu = Ke ? "metaKey" : "ctrlKey";
|
|
7305
7305
|
Re.mousedown = (n, e) => {
|
|
7306
7306
|
let t = e;
|
|
7307
7307
|
n.input.shiftKey = t.shiftKey;
|
|
7308
|
-
let r =
|
|
7308
|
+
let r = Hl(n), i = Date.now(), o = "singleClick";
|
|
7309
7309
|
i - n.input.lastClick.time < 500 && Mm(t, n.input.lastClick) && !t[zu] && (n.input.lastClick.type == "singleClick" ? o = "doubleClick" : n.input.lastClick.type == "doubleClick" && (o = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: o };
|
|
7310
7310
|
let s = n.posAtCoords(Ko(t));
|
|
7311
7311
|
s && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new Lm(n, s, t, !!r)) : (o == "doubleClick" ? Dm : Rm)(n, s.pos, s.inside, t) ? t.preventDefault() : Ut(n, "pointer"));
|
|
@@ -7357,12 +7357,12 @@ class Lm {
|
|
|
7357
7357
|
}
|
|
7358
7358
|
}
|
|
7359
7359
|
Re.touchstart = (n) => {
|
|
7360
|
-
n.input.lastTouch = Date.now(),
|
|
7360
|
+
n.input.lastTouch = Date.now(), Hl(n), Ut(n, "pointer");
|
|
7361
7361
|
};
|
|
7362
7362
|
Re.touchmove = (n) => {
|
|
7363
7363
|
n.input.lastTouch = Date.now(), Ut(n, "pointer");
|
|
7364
7364
|
};
|
|
7365
|
-
Re.contextmenu = (n) =>
|
|
7365
|
+
Re.contextmenu = (n) => Hl(n);
|
|
7366
7366
|
function $u(n, e) {
|
|
7367
7367
|
return n.composing ? !0 : De && Math.abs(e.timeStamp - n.input.compositionEndedAt) < 500 ? (n.input.compositionEndedAt = -2e8, !0) : !1;
|
|
7368
7368
|
}
|
|
@@ -7427,7 +7427,7 @@ function zm() {
|
|
|
7427
7427
|
function no(n, e = !1) {
|
|
7428
7428
|
if (!(tt && n.domObserver.flushingSoon >= 0)) {
|
|
7429
7429
|
if (n.domObserver.forceFlush(), Fu(n), e || n.docView && n.docView.dirty) {
|
|
7430
|
-
let t =
|
|
7430
|
+
let t = Pl(n);
|
|
7431
7431
|
return t && !t.eq(n.state.selection) ? n.dispatch(n.state.tr.setSelection(t)) : (n.markCursor || e) && !n.state.selection.empty ? n.dispatch(n.state.tr.deleteSelection()) : n.updateState(n.state), !0;
|
|
7432
7432
|
}
|
|
7433
7433
|
return !1;
|
|
@@ -7550,7 +7550,7 @@ Ie.drop = (n, e) => {
|
|
|
7550
7550
|
c.setSelection(new L(p));
|
|
7551
7551
|
else {
|
|
7552
7552
|
let h = c.mapping.map(a);
|
|
7553
|
-
c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, v) => h = v), c.setSelection(
|
|
7553
|
+
c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, v) => h = v), c.setSelection(Bl(n, p, c.doc.resolve(h)));
|
|
7554
7554
|
}
|
|
7555
7555
|
n.focus(), n.dispatch(c.setMeta("uiEvent", "drop"));
|
|
7556
7556
|
};
|
|
@@ -7626,7 +7626,7 @@ class Yt {
|
|
|
7626
7626
|
destroy() {
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
|
-
class
|
|
7629
|
+
class Fl {
|
|
7630
7630
|
constructor(e, t) {
|
|
7631
7631
|
this.attrs = e, this.spec = t || bn;
|
|
7632
7632
|
}
|
|
@@ -7642,7 +7642,7 @@ class Hl {
|
|
|
7642
7642
|
return i == t.from && !(o = e.child(r)).isText && i + o.nodeSize == t.to;
|
|
7643
7643
|
}
|
|
7644
7644
|
eq(e) {
|
|
7645
|
-
return this == e || e instanceof
|
|
7645
|
+
return this == e || e instanceof Fl && Jr(this.attrs, e.attrs) && Jr(this.spec, e.spec);
|
|
7646
7646
|
}
|
|
7647
7647
|
destroy() {
|
|
7648
7648
|
}
|
|
@@ -7696,7 +7696,7 @@ class Me {
|
|
|
7696
7696
|
node, will receive the given attributes.
|
|
7697
7697
|
*/
|
|
7698
7698
|
static node(e, t, r, i) {
|
|
7699
|
-
return new Me(e, t, new
|
|
7699
|
+
return new Me(e, t, new Fl(r, i));
|
|
7700
7700
|
}
|
|
7701
7701
|
/**
|
|
7702
7702
|
The spec provided when creating this decoration. Can be useful
|
|
@@ -7871,7 +7871,7 @@ class se {
|
|
|
7871
7871
|
@internal
|
|
7872
7872
|
*/
|
|
7873
7873
|
locals(e) {
|
|
7874
|
-
return
|
|
7874
|
+
return Vl(this.localsInner(e));
|
|
7875
7875
|
}
|
|
7876
7876
|
/**
|
|
7877
7877
|
@internal
|
|
@@ -7891,7 +7891,7 @@ class se {
|
|
|
7891
7891
|
}
|
|
7892
7892
|
}
|
|
7893
7893
|
se.empty = new se([], []);
|
|
7894
|
-
se.removeOverlap =
|
|
7894
|
+
se.removeOverlap = Vl;
|
|
7895
7895
|
const Te = se.empty;
|
|
7896
7896
|
class Ft {
|
|
7897
7897
|
constructor(e) {
|
|
@@ -7932,7 +7932,7 @@ class Ft {
|
|
|
7932
7932
|
t.push(o[s]);
|
|
7933
7933
|
}
|
|
7934
7934
|
}
|
|
7935
|
-
return t ?
|
|
7935
|
+
return t ? Vl(r ? t : t.sort(vn)) : Vn;
|
|
7936
7936
|
}
|
|
7937
7937
|
// Create a group for the given array of decoration sets, or return
|
|
7938
7938
|
// a single set when possible.
|
|
@@ -8055,7 +8055,7 @@ function io(n, e, t, r) {
|
|
|
8055
8055
|
function vn(n, e) {
|
|
8056
8056
|
return n.from - e.from || n.to - e.to;
|
|
8057
8057
|
}
|
|
8058
|
-
function
|
|
8058
|
+
function Vl(n) {
|
|
8059
8059
|
let e = n;
|
|
8060
8060
|
for (let t = 0; t < e.length - 1; t++) {
|
|
8061
8061
|
let r = e[t];
|
|
@@ -8078,7 +8078,7 @@ function pc(n, e, t) {
|
|
|
8078
8078
|
e++;
|
|
8079
8079
|
n.splice(e, 0, t);
|
|
8080
8080
|
}
|
|
8081
|
-
function
|
|
8081
|
+
function Cs(n) {
|
|
8082
8082
|
let e = [];
|
|
8083
8083
|
return n.someProp("decorations", (t) => {
|
|
8084
8084
|
let r = t(n.state);
|
|
@@ -8214,7 +8214,7 @@ class qm {
|
|
|
8214
8214
|
}
|
|
8215
8215
|
}
|
|
8216
8216
|
let c = null;
|
|
8217
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Uo(r) && (c =
|
|
8217
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Uo(r) && (c = Pl(e)) && c.eq(z.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Dt(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), Km(e)), this.handleDOMChange(o, s, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Dt(e), this.currentSelection.set(r));
|
|
8218
8218
|
}
|
|
8219
8219
|
registerMutation(e, t) {
|
|
8220
8220
|
if (t.indexOf(e.target) > -1)
|
|
@@ -8329,7 +8329,7 @@ const Qm = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
|
8329
8329
|
function Zm(n, e, t, r, i) {
|
|
8330
8330
|
let o = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
|
|
8331
8331
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
|
8332
|
-
let D = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, q =
|
|
8332
|
+
let D = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, q = Pl(n, D);
|
|
8333
8333
|
if (q && !n.state.selection.eq(q)) {
|
|
8334
8334
|
if (Ae && tt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (Y) => Y(n, cn(13, "Enter"))))
|
|
8335
8335
|
return;
|
|
@@ -8398,7 +8398,7 @@ function Zm(n, e, t, r, i) {
|
|
|
8398
8398
|
O && k.ensureMarks(O), o && k.setMeta("composition", o), n.dispatch(k.scrollIntoView());
|
|
8399
8399
|
}
|
|
8400
8400
|
function yc(n, e, t) {
|
|
8401
|
-
return Math.max(t.anchor, t.head) > e.content.size ? null :
|
|
8401
|
+
return Math.max(t.anchor, t.head) > e.content.size ? null : Bl(n, e.resolve(t.anchor), e.resolve(t.head));
|
|
8402
8402
|
}
|
|
8403
8403
|
function eg(n, e) {
|
|
8404
8404
|
let t = n.firstChild.marks, r = e.firstChild.marks, i = t, o = r, s, l, a;
|
|
@@ -8422,7 +8422,7 @@ function tg(n, e, t, r, i) {
|
|
|
8422
8422
|
if (
|
|
8423
8423
|
// The content must have shrunk
|
|
8424
8424
|
t - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
8425
|
-
|
|
8425
|
+
Ss(r, !0, !1) < i.pos
|
|
8426
8426
|
)
|
|
8427
8427
|
return !1;
|
|
8428
8428
|
let o = n.resolve(e);
|
|
@@ -8432,10 +8432,10 @@ function tg(n, e, t, r, i) {
|
|
|
8432
8432
|
}
|
|
8433
8433
|
if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
|
|
8434
8434
|
return !1;
|
|
8435
|
-
let s = n.resolve(
|
|
8436
|
-
return !s.parent.isTextblock || s.pos > t ||
|
|
8435
|
+
let s = n.resolve(Ss(o, !0, !0));
|
|
8436
|
+
return !s.parent.isTextblock || s.pos > t || Ss(s, !0, !1) < t ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
|
|
8437
8437
|
}
|
|
8438
|
-
function
|
|
8438
|
+
function Ss(n, e, t) {
|
|
8439
8439
|
let r = n.depth, i = e ? n.end() : n.pos;
|
|
8440
8440
|
for (; r > 0 && (e || n.indexAfter(r) == n.node(r).childCount); )
|
|
8441
8441
|
r--, i++, e = !1;
|
|
@@ -8479,7 +8479,7 @@ class rg {
|
|
|
8479
8479
|
added to the document.
|
|
8480
8480
|
*/
|
|
8481
8481
|
constructor(e, t) {
|
|
8482
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new km(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Cc), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = wc(this), xc(this), this.nodeViews = kc(this), this.docView = Za(this.state.doc, vc(this),
|
|
8482
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new km(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(Cc), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = wc(this), xc(this), this.nodeViews = kc(this), this.docView = Za(this.state.doc, vc(this), Cs(this), this.dom, this), this.domObserver = new qm(this, (r, i, o, s) => Zm(this, r, i, o, s)), this.domObserver.start(), Cm(this), this.updatePluginViews();
|
|
8483
8483
|
}
|
|
8484
8484
|
/**
|
|
8485
8485
|
Holds `true` when a
|
|
@@ -8507,7 +8507,7 @@ class rg {
|
|
|
8507
8507
|
the DOM.
|
|
8508
8508
|
*/
|
|
8509
8509
|
update(e) {
|
|
8510
|
-
e.handleDOMEvents != this._props.handleDOMEvents &&
|
|
8510
|
+
e.handleDOMEvents != this._props.handleDOMEvents && rl(this);
|
|
8511
8511
|
let t = this._props;
|
|
8512
8512
|
this._props = e, e.plugins && (e.plugins.forEach(Cc), this.directPlugins = e.plugins), this.updateStateInner(e.state, t);
|
|
8513
8513
|
}
|
|
@@ -8541,8 +8541,8 @@ class rg {
|
|
|
8541
8541
|
let p = kc(this);
|
|
8542
8542
|
og(p, this.nodeViews) && (this.nodeViews = p, o = !0);
|
|
8543
8543
|
}
|
|
8544
|
-
(l || t.handleDOMEvents != this._props.handleDOMEvents) &&
|
|
8545
|
-
let a =
|
|
8544
|
+
(l || t.handleDOMEvents != this._props.handleDOMEvents) && rl(this), this.editable = wc(this), xc(this);
|
|
8545
|
+
let a = Cs(this), c = vc(this), d = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", u = o || !this.docView.matchesNode(e.doc, c, a);
|
|
8546
8546
|
(u || !e.selection.eq(i.selection)) && (s = !0);
|
|
8547
8547
|
let f = d == "preserve" && s && this.dom.style.overflowAnchor == null && zh(this);
|
|
8548
8548
|
if (s) {
|
|
@@ -8760,7 +8760,7 @@ class rg {
|
|
|
8760
8760
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
8761
8761
|
*/
|
|
8762
8762
|
destroy() {
|
|
8763
|
-
this.docView && (Sm(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
8763
|
+
this.docView && (Sm(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Cs(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Ah());
|
|
8764
8764
|
}
|
|
8765
8765
|
/**
|
|
8766
8766
|
This is true when the view has been
|
|
@@ -8933,8 +8933,8 @@ for (var Se = 1; Se <= 24; Se++)
|
|
|
8933
8933
|
Xt[Se + 111] = "F" + Se;
|
|
8934
8934
|
for (var Se = 65; Se <= 90; Se++)
|
|
8935
8935
|
Xt[Se] = String.fromCharCode(Se + 32), oo[Se] = String.fromCharCode(Se);
|
|
8936
|
-
for (var
|
|
8937
|
-
oo.hasOwnProperty(
|
|
8936
|
+
for (var Ts in Xt)
|
|
8937
|
+
oo.hasOwnProperty(Ts) || (oo[Ts] = Xt[Ts]);
|
|
8938
8938
|
function ag(n) {
|
|
8939
8939
|
var e = sg && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || lg && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? oo : Xt)[n.keyCode] || n.key || "Unidentified";
|
|
8940
8940
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
@@ -8967,26 +8967,26 @@ function ug(n) {
|
|
|
8967
8967
|
e[dg(t)] = n[t];
|
|
8968
8968
|
return e;
|
|
8969
8969
|
}
|
|
8970
|
-
function
|
|
8970
|
+
function As(n, e, t = !0) {
|
|
8971
8971
|
return e.altKey && (n = "Alt-" + n), e.ctrlKey && (n = "Ctrl-" + n), e.metaKey && (n = "Meta-" + n), t && e.shiftKey && (n = "Shift-" + n), n;
|
|
8972
8972
|
}
|
|
8973
8973
|
function fg(n) {
|
|
8974
|
-
return new le({ props: { handleKeyDown:
|
|
8974
|
+
return new le({ props: { handleKeyDown: jl(n) } });
|
|
8975
8975
|
}
|
|
8976
|
-
function
|
|
8976
|
+
function jl(n) {
|
|
8977
8977
|
let e = ug(n);
|
|
8978
8978
|
return function(t, r) {
|
|
8979
|
-
let i = ag(r), o, s = e[
|
|
8979
|
+
let i = ag(r), o, s = e[As(i, r)];
|
|
8980
8980
|
if (s && s(t.state, t.dispatch, t))
|
|
8981
8981
|
return !0;
|
|
8982
8982
|
if (i.length == 1 && i != " ") {
|
|
8983
8983
|
if (r.shiftKey) {
|
|
8984
|
-
let l = e[
|
|
8984
|
+
let l = e[As(i, r, !1)];
|
|
8985
8985
|
if (l && l(t.state, t.dispatch, t))
|
|
8986
8986
|
return !0;
|
|
8987
8987
|
}
|
|
8988
8988
|
if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Xt[r.keyCode]) && o != i) {
|
|
8989
|
-
let l = e[
|
|
8989
|
+
let l = e[As(o, r)];
|
|
8990
8990
|
if (l && l(t.state, t.dispatch, t))
|
|
8991
8991
|
return !0;
|
|
8992
8992
|
}
|
|
@@ -9003,7 +9003,7 @@ const hg = (n, e, t) => {
|
|
|
9003
9003
|
let r = Ku(n, t);
|
|
9004
9004
|
if (!r)
|
|
9005
9005
|
return !1;
|
|
9006
|
-
let i =
|
|
9006
|
+
let i = _l(r);
|
|
9007
9007
|
if (!i) {
|
|
9008
9008
|
let s = r.blockRange(), l = s && ar(s);
|
|
9009
9009
|
return l == null ? !1 : (e && e(n.tr.lift(s, l).scrollIntoView()), !0);
|
|
@@ -9029,13 +9029,13 @@ const hg = (n, e, t) => {
|
|
|
9029
9029
|
let r = Ku(n, t);
|
|
9030
9030
|
if (!r)
|
|
9031
9031
|
return !1;
|
|
9032
|
-
let i =
|
|
9032
|
+
let i = _l(r);
|
|
9033
9033
|
return i ? Ju(n, i, e) : !1;
|
|
9034
9034
|
}, gg = (n, e, t) => {
|
|
9035
9035
|
let r = Gu(n, t);
|
|
9036
9036
|
if (!r)
|
|
9037
9037
|
return !1;
|
|
9038
|
-
let i =
|
|
9038
|
+
let i = Wl(r);
|
|
9039
9039
|
return i ? Ju(n, i, e) : !1;
|
|
9040
9040
|
};
|
|
9041
9041
|
function Ju(n, e, t) {
|
|
@@ -9082,12 +9082,12 @@ const yg = (n, e, t) => {
|
|
|
9082
9082
|
if (r.parent.isTextblock) {
|
|
9083
9083
|
if (t ? !t.endOfTextblock("backward", n) : r.parentOffset > 0)
|
|
9084
9084
|
return !1;
|
|
9085
|
-
o =
|
|
9085
|
+
o = _l(r);
|
|
9086
9086
|
}
|
|
9087
9087
|
let s = o && o.nodeBefore;
|
|
9088
9088
|
return !s || !L.isSelectable(s) ? !1 : (e && e(n.tr.setSelection(L.create(n.doc, o.pos - s.nodeSize)).scrollIntoView()), !0);
|
|
9089
9089
|
};
|
|
9090
|
-
function
|
|
9090
|
+
function _l(n) {
|
|
9091
9091
|
if (!n.parent.type.spec.isolating)
|
|
9092
9092
|
for (let e = n.depth - 1; e >= 0; e--) {
|
|
9093
9093
|
if (n.index(e) > 0)
|
|
@@ -9105,7 +9105,7 @@ const bg = (n, e, t) => {
|
|
|
9105
9105
|
let r = Gu(n, t);
|
|
9106
9106
|
if (!r)
|
|
9107
9107
|
return !1;
|
|
9108
|
-
let i =
|
|
9108
|
+
let i = Wl(r);
|
|
9109
9109
|
if (!i)
|
|
9110
9110
|
return !1;
|
|
9111
9111
|
let o = i.nodeAfter;
|
|
@@ -9129,12 +9129,12 @@ const bg = (n, e, t) => {
|
|
|
9129
9129
|
if (r.parent.isTextblock) {
|
|
9130
9130
|
if (t ? !t.endOfTextblock("forward", n) : r.parentOffset < r.parent.content.size)
|
|
9131
9131
|
return !1;
|
|
9132
|
-
o =
|
|
9132
|
+
o = Wl(r);
|
|
9133
9133
|
}
|
|
9134
9134
|
let s = o && o.nodeAfter;
|
|
9135
9135
|
return !s || !L.isSelectable(s) ? !1 : (e && e(n.tr.setSelection(L.create(n.doc, o.pos)).scrollIntoView()), !0);
|
|
9136
9136
|
};
|
|
9137
|
-
function
|
|
9137
|
+
function Wl(n) {
|
|
9138
9138
|
if (!n.parent.type.spec.isolating)
|
|
9139
9139
|
for (let e = n.depth - 1; e >= 0; e--) {
|
|
9140
9140
|
let t = n.node(e);
|
|
@@ -9279,7 +9279,7 @@ function Qu(n) {
|
|
|
9279
9279
|
const Og = Qu(-1), Ng = Qu(1);
|
|
9280
9280
|
function Dg(n, e = null) {
|
|
9281
9281
|
return function(t, r) {
|
|
9282
|
-
let { $from: i, $to: o } = t.selection, s = i.blockRange(o), l = s &&
|
|
9282
|
+
let { $from: i, $to: o } = t.selection, s = i.blockRange(o), l = s && Dl(s, n, e);
|
|
9283
9283
|
return l ? (r && r(t.tr.wrap(s, l).scrollIntoView()), !0) : !1;
|
|
9284
9284
|
};
|
|
9285
9285
|
}
|
|
@@ -9325,7 +9325,7 @@ function Rg(n, e = null) {
|
|
|
9325
9325
|
let d = t.doc.resolve(s.start - 2);
|
|
9326
9326
|
a = new Yi(d, d, s.depth), s.endIndex < s.parent.childCount && (s = new Yi(i, t.doc.resolve(o.end(s.depth)), s.depth)), l = !0;
|
|
9327
9327
|
}
|
|
9328
|
-
let c =
|
|
9328
|
+
let c = Dl(a, n, e, s);
|
|
9329
9329
|
return c ? (r && r(Ig(t.tr, s, c, l, n).scrollIntoView()), !0) : !1;
|
|
9330
9330
|
};
|
|
9331
9331
|
}
|
|
@@ -9594,7 +9594,7 @@ function ee(...n) {
|
|
|
9594
9594
|
}), r;
|
|
9595
9595
|
}, {});
|
|
9596
9596
|
}
|
|
9597
|
-
function
|
|
9597
|
+
function il(n, e) {
|
|
9598
9598
|
return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
|
|
9599
9599
|
[t.name]: n.attrs[t.name]
|
|
9600
9600
|
}).reduce((t, r) => ee(t, r), {});
|
|
@@ -9671,7 +9671,7 @@ function Vg(n, e) {
|
|
|
9671
9671
|
const m = N(c, "renderHTML", u);
|
|
9672
9672
|
m && (p.toDOM = (y) => m({
|
|
9673
9673
|
node: y,
|
|
9674
|
-
HTMLAttributes:
|
|
9674
|
+
HTMLAttributes: il(y, d)
|
|
9675
9675
|
}));
|
|
9676
9676
|
const g = N(c, "renderText", u);
|
|
9677
9677
|
return g && (p.toText = g), [c.name, p];
|
|
@@ -9703,7 +9703,7 @@ function Vg(n, e) {
|
|
|
9703
9703
|
const m = N(c, "renderHTML", u);
|
|
9704
9704
|
return m && (p.toDOM = (g) => m({
|
|
9705
9705
|
mark: g,
|
|
9706
|
-
HTMLAttributes:
|
|
9706
|
+
HTMLAttributes: il(g, d)
|
|
9707
9707
|
})), [c.name, p];
|
|
9708
9708
|
}));
|
|
9709
9709
|
return new Jd({
|
|
@@ -9712,7 +9712,7 @@ function Vg(n, e) {
|
|
|
9712
9712
|
marks: a
|
|
9713
9713
|
});
|
|
9714
9714
|
}
|
|
9715
|
-
function
|
|
9715
|
+
function Ms(n, e) {
|
|
9716
9716
|
return e.nodes[n] || e.marks[n] || null;
|
|
9717
9717
|
}
|
|
9718
9718
|
function Mc(n, e) {
|
|
@@ -9732,7 +9732,7 @@ const jg = (n, e = 500) => {
|
|
|
9732
9732
|
t += i.isAtom && !i.isText ? d : d.slice(0, Math.max(0, r - o));
|
|
9733
9733
|
}), t;
|
|
9734
9734
|
};
|
|
9735
|
-
function
|
|
9735
|
+
function Ul(n) {
|
|
9736
9736
|
return Object.prototype.toString.call(n) === "[object RegExp]";
|
|
9737
9737
|
}
|
|
9738
9738
|
class Xo {
|
|
@@ -9741,7 +9741,7 @@ class Xo {
|
|
|
9741
9741
|
}
|
|
9742
9742
|
}
|
|
9743
9743
|
const _g = (n, e) => {
|
|
9744
|
-
if (
|
|
9744
|
+
if (Ul(e))
|
|
9745
9745
|
return e.exec(n);
|
|
9746
9746
|
const t = e(n);
|
|
9747
9747
|
if (!t)
|
|
@@ -9930,7 +9930,7 @@ class Kg {
|
|
|
9930
9930
|
}
|
|
9931
9931
|
}
|
|
9932
9932
|
const Jg = (n, e, t) => {
|
|
9933
|
-
if (
|
|
9933
|
+
if (Ul(e))
|
|
9934
9934
|
return [...n.matchAll(e)];
|
|
9935
9935
|
const r = e(n, t);
|
|
9936
9936
|
return r ? r.map((i) => {
|
|
@@ -10097,7 +10097,7 @@ class Un {
|
|
|
10097
10097
|
options: t.options,
|
|
10098
10098
|
storage: t.storage,
|
|
10099
10099
|
editor: this.editor,
|
|
10100
|
-
type:
|
|
10100
|
+
type: Ms(t.name, this.schema)
|
|
10101
10101
|
}, i = N(t, "addCommands", r);
|
|
10102
10102
|
return i ? {
|
|
10103
10103
|
...e,
|
|
@@ -10116,7 +10116,7 @@ class Un {
|
|
|
10116
10116
|
options: s.options,
|
|
10117
10117
|
storage: s.storage,
|
|
10118
10118
|
editor: e,
|
|
10119
|
-
type:
|
|
10119
|
+
type: Ms(s.name, this.schema)
|
|
10120
10120
|
}, a = [], c = N(s, "addKeyboardShortcuts", l);
|
|
10121
10121
|
let d = {};
|
|
10122
10122
|
if (s.type === "mark" && N(s, "exitable", l) && (d.ArrowRight = () => Xe.handleExit({ editor: e, mark: s })), c) {
|
|
@@ -10172,7 +10172,7 @@ class Un {
|
|
|
10172
10172
|
if (!s)
|
|
10173
10173
|
return [];
|
|
10174
10174
|
const l = (a, c, d, u, f) => {
|
|
10175
|
-
const p =
|
|
10175
|
+
const p = il(a, i);
|
|
10176
10176
|
return s()({
|
|
10177
10177
|
// pass-through
|
|
10178
10178
|
node: a,
|
|
@@ -10202,7 +10202,7 @@ class Un {
|
|
|
10202
10202
|
options: e.options,
|
|
10203
10203
|
storage: e.storage,
|
|
10204
10204
|
editor: this.editor,
|
|
10205
|
-
type:
|
|
10205
|
+
type: Ms(e.name, this.schema)
|
|
10206
10206
|
};
|
|
10207
10207
|
e.type === "mark" && (!((t = j(N(e, "keepOnSplit", r))) !== null && t !== void 0) || t) && this.splittableMarks.push(e.name);
|
|
10208
10208
|
const i = N(e, "onBeforeCreate", r), o = N(e, "onCreate", r), s = N(e, "onUpdate", r), l = N(e, "onSelectionUpdate", r), a = N(e, "onTransaction", r), c = N(e, "onFocus", r), d = N(e, "onBlur", r), u = N(e, "onDestroy", r);
|
|
@@ -10347,25 +10347,25 @@ const Zg = fe.create({
|
|
|
10347
10347
|
}, cy = () => ({ state: n, dispatch: e }) => pg(n, e), dy = () => ({ commands: n }) => n.keyboardShortcut("Enter"), uy = () => ({ state: n, dispatch: e }) => Sg(n, e);
|
|
10348
10348
|
function so(n, e, t = { strict: !0 }) {
|
|
10349
10349
|
const r = Object.keys(e);
|
|
10350
|
-
return r.length ? r.every((i) => t.strict ? e[i] === n[i] :
|
|
10350
|
+
return r.length ? r.every((i) => t.strict ? e[i] === n[i] : Ul(e[i]) ? e[i].test(n[i]) : e[i] === n[i]) : !0;
|
|
10351
10351
|
}
|
|
10352
|
-
function
|
|
10352
|
+
function ol(n, e, t = {}) {
|
|
10353
10353
|
return n.find((r) => r.type === e && so(r.attrs, t));
|
|
10354
10354
|
}
|
|
10355
10355
|
function fy(n, e, t = {}) {
|
|
10356
|
-
return !!
|
|
10356
|
+
return !!ol(n, e, t);
|
|
10357
10357
|
}
|
|
10358
|
-
function
|
|
10358
|
+
function ql(n, e, t = {}) {
|
|
10359
10359
|
if (!n || !e)
|
|
10360
10360
|
return;
|
|
10361
10361
|
let r = n.parent.childAfter(n.parentOffset);
|
|
10362
10362
|
if ((!r.node || !r.node.marks.some((c) => c.type === e)) && (r = n.parent.childBefore(n.parentOffset)), !r.node || !r.node.marks.some((c) => c.type === e))
|
|
10363
10363
|
return;
|
|
10364
|
-
const i =
|
|
10364
|
+
const i = ol([...r.node.marks], e, t);
|
|
10365
10365
|
if (!i)
|
|
10366
10366
|
return;
|
|
10367
10367
|
let o = r.index, s = n.start() + r.offset, l = o + 1, a = s + r.node.nodeSize;
|
|
10368
|
-
for (
|
|
10368
|
+
for (ol([...r.node.marks], e, t); o > 0 && i.isInSet(n.parent.child(o - 1).marks); )
|
|
10369
10369
|
o -= 1, s -= n.parent.child(o).nodeSize;
|
|
10370
10370
|
for (; l < n.parent.childCount && fy([...n.parent.child(l).marks], e, t); )
|
|
10371
10371
|
a += n.parent.child(l).nodeSize, l += 1;
|
|
@@ -10385,7 +10385,7 @@ function en(n, e) {
|
|
|
10385
10385
|
const py = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
10386
10386
|
const o = en(n, r.schema), { doc: s, selection: l } = t, { $from: a, from: c, to: d } = l;
|
|
10387
10387
|
if (i) {
|
|
10388
|
-
const u =
|
|
10388
|
+
const u = ql(a, o, e);
|
|
10389
10389
|
if (u && u.from <= c && u.to >= d) {
|
|
10390
10390
|
const f = B.create(s, u.from, u.to);
|
|
10391
10391
|
t.setSelection(f);
|
|
@@ -10399,7 +10399,7 @@ const py = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
10399
10399
|
return !0;
|
|
10400
10400
|
return !1;
|
|
10401
10401
|
};
|
|
10402
|
-
function
|
|
10402
|
+
function Kl(n) {
|
|
10403
10403
|
return n instanceof B;
|
|
10404
10404
|
}
|
|
10405
10405
|
function Nt(n = 0, e = 0, t = 0) {
|
|
@@ -10438,7 +10438,7 @@ const my = (n = null, e = {}) => ({ editor: t, view: r, tr: i, dispatch: o }) =>
|
|
|
10438
10438
|
};
|
|
10439
10439
|
if (r.hasFocus() && n === null || n === !1)
|
|
10440
10440
|
return !0;
|
|
10441
|
-
if (o && n === null && !
|
|
10441
|
+
if (o && n === null && !Kl(t.state.selection))
|
|
10442
10442
|
return s(), !0;
|
|
10443
10443
|
const l = rf(i.doc, n) || t.state.selection, a = t.state.selection.eq(l);
|
|
10444
10444
|
return o && (a || i.setSelection(l), a && i.storedMarks && i.setStoredMarks(i.storedMarks), s()), !0;
|
|
@@ -10653,7 +10653,7 @@ const Py = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
10653
10653
|
from: 0,
|
|
10654
10654
|
to: n.doc.content.size
|
|
10655
10655
|
}), $y = () => ({ state: n, dispatch: e }) => yg(n, e), Hy = () => ({ state: n, dispatch: e }) => vg(n, e), Fy = () => ({ state: n, dispatch: e }) => Mg(n, e), Vy = () => ({ state: n, dispatch: e }) => Ng(n, e), jy = () => ({ state: n, dispatch: e }) => Og(n, e);
|
|
10656
|
-
function
|
|
10656
|
+
function sl(n, e, t = {}, r = {}) {
|
|
10657
10657
|
return lo(n, e, {
|
|
10658
10658
|
slice: !1,
|
|
10659
10659
|
parseOptions: t,
|
|
@@ -10664,7 +10664,7 @@ const _y = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
|
|
|
10664
10664
|
var a, c;
|
|
10665
10665
|
const { doc: d } = o;
|
|
10666
10666
|
if (t.preserveWhitespace !== "full") {
|
|
10667
|
-
const u =
|
|
10667
|
+
const u = sl(n, i.schema, t, {
|
|
10668
10668
|
errorOnInvalidContent: (a = r.errorOnInvalidContent) !== null && a !== void 0 ? a : i.options.enableContentCheck
|
|
10669
10669
|
});
|
|
10670
10670
|
return s && o.replaceWith(0, d.content.size, u).setMeta("preventUpdate", !e), !0;
|
|
@@ -10674,7 +10674,7 @@ const _y = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
|
|
|
10674
10674
|
errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
|
|
10675
10675
|
});
|
|
10676
10676
|
};
|
|
10677
|
-
function
|
|
10677
|
+
function Jl(n, e) {
|
|
10678
10678
|
const t = en(e, n.schema), { from: r, to: i, empty: o } = n.selection, s = [];
|
|
10679
10679
|
o ? (n.storedMarks && s.push(...n.storedMarks), s.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (a) => {
|
|
10680
10680
|
s.push(...a.marks);
|
|
@@ -10683,7 +10683,7 @@ function Kl(n, e) {
|
|
|
10683
10683
|
return l ? { ...l.attrs } : {};
|
|
10684
10684
|
}
|
|
10685
10685
|
function Wy(n, e) {
|
|
10686
|
-
const t = new
|
|
10686
|
+
const t = new Rl(n);
|
|
10687
10687
|
return e.forEach((r) => {
|
|
10688
10688
|
r.steps.forEach((i) => {
|
|
10689
10689
|
t.step(i);
|
|
@@ -10719,7 +10719,7 @@ function lf(n, e) {
|
|
|
10719
10719
|
};
|
|
10720
10720
|
}
|
|
10721
10721
|
}
|
|
10722
|
-
function
|
|
10722
|
+
function Gl(n) {
|
|
10723
10723
|
return (e) => lf(e.$from, n);
|
|
10724
10724
|
}
|
|
10725
10725
|
function Ky(n, e) {
|
|
@@ -10743,7 +10743,7 @@ function Gy(n, e) {
|
|
|
10743
10743
|
}
|
|
10744
10744
|
function af(n, e) {
|
|
10745
10745
|
const t = es(typeof e == "string" ? e : e.name, n.schema);
|
|
10746
|
-
return t === "node" ? Gy(n, e) : t === "mark" ?
|
|
10746
|
+
return t === "node" ? Gy(n, e) : t === "mark" ? Jl(n, e) : {};
|
|
10747
10747
|
}
|
|
10748
10748
|
function Yy(n, e = JSON.stringify) {
|
|
10749
10749
|
const t = {};
|
|
@@ -10785,10 +10785,10 @@ function Qy(n) {
|
|
|
10785
10785
|
});
|
|
10786
10786
|
}), Xy(r);
|
|
10787
10787
|
}
|
|
10788
|
-
function
|
|
10788
|
+
function Yl(n, e, t) {
|
|
10789
10789
|
const r = [];
|
|
10790
10790
|
return n === e ? t.resolve(n).marks().forEach((i) => {
|
|
10791
|
-
const o = t.resolve(n), s =
|
|
10791
|
+
const o = t.resolve(n), s = ql(o, i.type);
|
|
10792
10792
|
s && r.push({
|
|
10793
10793
|
mark: i,
|
|
10794
10794
|
...s
|
|
@@ -10807,7 +10807,7 @@ function Fi(n, e, t) {
|
|
|
10807
10807
|
return i ? i.attribute.keepOnSplit : !1;
|
|
10808
10808
|
}));
|
|
10809
10809
|
}
|
|
10810
|
-
function
|
|
10810
|
+
function ll(n, e, t = {}) {
|
|
10811
10811
|
const { empty: r, ranges: i } = n.selection, o = e ? en(e, n.schema) : null;
|
|
10812
10812
|
if (r)
|
|
10813
10813
|
return !!(n.storedMarks || n.selection.$from.marks()).filter((u) => o ? o.name === u.type.name : !0).find((u) => so(u.attrs, t, { strict: !1 }));
|
|
@@ -10832,9 +10832,9 @@ function sl(n, e, t = {}) {
|
|
|
10832
10832
|
}
|
|
10833
10833
|
function Zy(n, e, t = {}) {
|
|
10834
10834
|
if (!e)
|
|
10835
|
-
return Gr(n, null, t) ||
|
|
10835
|
+
return Gr(n, null, t) || ll(n, null, t);
|
|
10836
10836
|
const r = es(e, n.schema);
|
|
10837
|
-
return r === "node" ? Gr(n, e, t) : r === "mark" ?
|
|
10837
|
+
return r === "node" ? Gr(n, e, t) : r === "mark" ? ll(n, e, t) : !1;
|
|
10838
10838
|
}
|
|
10839
10839
|
function Oc(n, e) {
|
|
10840
10840
|
const { nodeExtensions: t } = Yo(e), r = t.find((s) => s.name === n);
|
|
@@ -10892,7 +10892,7 @@ function e0(n, e, t) {
|
|
|
10892
10892
|
var r;
|
|
10893
10893
|
const { selection: i } = e;
|
|
10894
10894
|
let o = null;
|
|
10895
|
-
if (
|
|
10895
|
+
if (Kl(i) && (o = i.$cursor), o) {
|
|
10896
10896
|
const l = (r = n.storedMarks) !== null && r !== void 0 ? r : o.marks();
|
|
10897
10897
|
return !!t.isInSet(l) || !l.some((a) => a.type.excludes(t));
|
|
10898
10898
|
}
|
|
@@ -10914,7 +10914,7 @@ const t0 = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
10914
10914
|
const { selection: o } = t, { empty: s, ranges: l } = o, a = en(n, r.schema);
|
|
10915
10915
|
if (i)
|
|
10916
10916
|
if (s) {
|
|
10917
|
-
const c =
|
|
10917
|
+
const c = Jl(r, a);
|
|
10918
10918
|
t.addStoredMark(a.create({
|
|
10919
10919
|
...c,
|
|
10920
10920
|
...e
|
|
@@ -11040,8 +11040,8 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
11040
11040
|
t.ensureMarks(T);
|
|
11041
11041
|
}
|
|
11042
11042
|
return !0;
|
|
11043
|
-
},
|
|
11044
|
-
const t =
|
|
11043
|
+
}, Es = (n, e) => {
|
|
11044
|
+
const t = Gl((s) => s.type === e)(n.selection);
|
|
11045
11045
|
if (!t)
|
|
11046
11046
|
return !0;
|
|
11047
11047
|
const r = n.doc.resolve(Math.max(0, t.pos - 1)).before(t.depth);
|
|
@@ -11049,8 +11049,8 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
11049
11049
|
return !0;
|
|
11050
11050
|
const i = n.doc.nodeAt(r);
|
|
11051
11051
|
return t.node.type === (i == null ? void 0 : i.type) && Qt(n.doc, t.pos) && n.join(t.pos), !0;
|
|
11052
|
-
},
|
|
11053
|
-
const t =
|
|
11052
|
+
}, Os = (n, e) => {
|
|
11053
|
+
const t = Gl((s) => s.type === e)(n.selection);
|
|
11054
11054
|
if (!t)
|
|
11055
11055
|
return !0;
|
|
11056
11056
|
const r = n.doc.resolve(t.start).after(t.depth);
|
|
@@ -11062,20 +11062,20 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
11062
11062
|
const { extensions: u, splittableMarks: f } = i.extensionManager, p = ve(n, s.schema), h = ve(e, s.schema), { selection: m, storedMarks: g } = s, { $from: y, $to: v } = m, w = y.blockRange(v), b = g || m.$to.parentOffset && m.$from.marks();
|
|
11063
11063
|
if (!w)
|
|
11064
11064
|
return !1;
|
|
11065
|
-
const T =
|
|
11065
|
+
const T = Gl((k) => Oc(k.type.name, u))(m);
|
|
11066
11066
|
if (w.depth >= 1 && T && w.depth - T.depth <= 1) {
|
|
11067
11067
|
if (T.node.type === p)
|
|
11068
11068
|
return c.liftListItem(h);
|
|
11069
11069
|
if (Oc(T.node.type.name, u) && p.validContent(T.node.content) && l)
|
|
11070
|
-
return a().command(() => (o.setNodeMarkup(T.pos, p), !0)).command(() =>
|
|
11070
|
+
return a().command(() => (o.setNodeMarkup(T.pos, p), !0)).command(() => Es(o, p)).command(() => Os(o, p)).run();
|
|
11071
11071
|
}
|
|
11072
|
-
return !t || !b || !l ? a().command(() => d().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() =>
|
|
11072
|
+
return !t || !b || !l ? a().command(() => d().wrapInList(p, r) ? !0 : c.clearNodes()).wrapInList(p, r).command(() => Es(o, p)).command(() => Os(o, p)).run() : a().command(() => {
|
|
11073
11073
|
const k = d().wrapInList(p, r), O = b.filter((H) => f.includes(H.type.name));
|
|
11074
11074
|
return o.ensureMarks(O), k ? !0 : c.clearNodes();
|
|
11075
|
-
}).wrapInList(p, r).command(() =>
|
|
11075
|
+
}).wrapInList(p, r).command(() => Es(o, p)).command(() => Os(o, p)).run();
|
|
11076
11076
|
}, d0 = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
|
|
11077
11077
|
const { extendEmptyMarkRange: o = !1 } = t, s = en(n, r.schema);
|
|
11078
|
-
return
|
|
11078
|
+
return ll(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
|
|
11079
11079
|
}, u0 = (n, e, t = {}) => ({ state: r, commands: i }) => {
|
|
11080
11080
|
const o = ve(n, r.schema), s = ve(e, r.schema), l = Gr(r, o, t);
|
|
11081
11081
|
let a;
|
|
@@ -11115,7 +11115,7 @@ const l0 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
11115
11115
|
return !0;
|
|
11116
11116
|
if (d && s) {
|
|
11117
11117
|
let { from: f, to: p } = l;
|
|
11118
|
-
const h = (o = c.marks().find((g) => g.type === a)) === null || o === void 0 ? void 0 : o.attrs, m =
|
|
11118
|
+
const h = (o = c.marks().find((g) => g.type === a)) === null || o === void 0 ? void 0 : o.attrs, m = ql(c, a, h);
|
|
11119
11119
|
m && (f = m.from, p = m.to), t.removeMark(f, p, a);
|
|
11120
11120
|
} else
|
|
11121
11121
|
u.forEach((f) => {
|
|
@@ -11748,7 +11748,7 @@ let O0 = class extends $g {
|
|
|
11748
11748
|
createView() {
|
|
11749
11749
|
let e;
|
|
11750
11750
|
try {
|
|
11751
|
-
e =
|
|
11751
|
+
e = sl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: this.options.enableContentCheck });
|
|
11752
11752
|
} catch (o) {
|
|
11753
11753
|
if (!(o instanceof Error) || !["[tiptap error]: Invalid JSON content", "[tiptap error]: Invalid HTML content"].includes(o.message))
|
|
11754
11754
|
throw o;
|
|
@@ -11758,7 +11758,7 @@ let O0 = class extends $g {
|
|
|
11758
11758
|
disableCollaboration: () => {
|
|
11759
11759
|
this.storage.collaboration && (this.storage.collaboration.isDisabled = !0), this.options.extensions = this.options.extensions.filter((s) => s.name !== "collaboration"), this.createExtensionManager();
|
|
11760
11760
|
}
|
|
11761
|
-
}), e =
|
|
11761
|
+
}), e = sl(this.options.content, this.schema, this.options.parseOptions, { errorOnInvalidContent: !1 });
|
|
11762
11762
|
}
|
|
11763
11763
|
const t = rf(e, this.options.autofocus);
|
|
11764
11764
|
this.view = new rg(this.options.element, {
|
|
@@ -11934,7 +11934,7 @@ function er(n) {
|
|
|
11934
11934
|
const { tr: o } = e, s = r[r.length - 1], l = r[0];
|
|
11935
11935
|
if (s) {
|
|
11936
11936
|
const a = l.search(/\S/), c = t.from + l.indexOf(s), d = c + s.length;
|
|
11937
|
-
if (
|
|
11937
|
+
if (Yl(t.from, t.to, e.doc).filter((p) => p.mark.type.excluded.find((m) => m === n.type && m !== p.mark.type)).filter((p) => p.to > c).length)
|
|
11938
11938
|
return null;
|
|
11939
11939
|
d < t.to && o.delete(d, t.to), c > t.from && o.delete(t.from + a, c);
|
|
11940
11940
|
const f = t.from + a + s.length;
|
|
@@ -11964,7 +11964,7 @@ function N0(n) {
|
|
|
11964
11964
|
}
|
|
11965
11965
|
});
|
|
11966
11966
|
}
|
|
11967
|
-
function
|
|
11967
|
+
function al(n) {
|
|
11968
11968
|
return new Xo({
|
|
11969
11969
|
find: n.find,
|
|
11970
11970
|
handler: ({ state: e, range: t, match: r }) => {
|
|
@@ -11979,7 +11979,7 @@ function Yr(n) {
|
|
|
11979
11979
|
return new Xo({
|
|
11980
11980
|
find: n.find,
|
|
11981
11981
|
handler: ({ state: e, range: t, match: r, chain: i }) => {
|
|
11982
|
-
const o = j(n.getAttributes, void 0, r) || {}, s = e.tr.delete(t.from, t.to), a = s.doc.resolve(t.from).blockRange(), c = a &&
|
|
11982
|
+
const o = j(n.getAttributes, void 0, r) || {}, s = e.tr.delete(t.from, t.to), a = s.doc.resolve(t.from).blockRange(), c = a && Dl(a, n.type, o);
|
|
11983
11983
|
if (!c)
|
|
11984
11984
|
return null;
|
|
11985
11985
|
if (s.wrap(a, c), n.keepMarks && n.editor) {
|
|
@@ -12141,16 +12141,16 @@ function Mn(n) {
|
|
|
12141
12141
|
let c = t.to;
|
|
12142
12142
|
if (l) {
|
|
12143
12143
|
const d = a.search(/\S/), u = t.from + a.indexOf(l), f = u + l.length;
|
|
12144
|
-
if (
|
|
12144
|
+
if (Yl(t.from, t.to, e.doc).filter((h) => h.mark.type.excluded.find((g) => g === n.type && g !== h.mark.type)).filter((h) => h.to > u).length)
|
|
12145
12145
|
return null;
|
|
12146
12146
|
f < t.to && s.delete(f, t.to), u > t.from && s.delete(t.from + d, u), c = t.from + d + l.length, s.addMark(t.from + d, c, n.type.create(o || {})), s.removeStoredMark(n.type);
|
|
12147
12147
|
}
|
|
12148
12148
|
}
|
|
12149
12149
|
});
|
|
12150
12150
|
}
|
|
12151
|
-
var $e = "top", Qe = "bottom", Ze = "right", He = "left",
|
|
12151
|
+
var $e = "top", Qe = "bottom", Ze = "right", He = "left", Xl = "auto", li = [$e, Qe, Ze, He], tr = "start", Xr = "end", I0 = "clippingParents", uf = "viewport", br = "popper", L0 = "reference", Dc = /* @__PURE__ */ li.reduce(function(n, e) {
|
|
12152
12152
|
return n.concat([e + "-" + tr, e + "-" + Xr]);
|
|
12153
|
-
}, []), ff = /* @__PURE__ */ [].concat(li, [
|
|
12153
|
+
}, []), ff = /* @__PURE__ */ [].concat(li, [Xl]).reduce(function(n, e) {
|
|
12154
12154
|
return n.concat([e, e + "-" + tr, e + "-" + Xr]);
|
|
12155
12155
|
}, []), P0 = "beforeRead", B0 = "read", z0 = "afterRead", $0 = "beforeMain", H0 = "main", F0 = "afterMain", V0 = "beforeWrite", j0 = "write", _0 = "afterWrite", W0 = [P0, B0, z0, $0, H0, F0, V0, j0, _0];
|
|
12156
12156
|
function yt(n) {
|
|
@@ -12173,7 +12173,7 @@ function Ye(n) {
|
|
|
12173
12173
|
var e = _e(n).HTMLElement;
|
|
12174
12174
|
return n instanceof e || n instanceof HTMLElement;
|
|
12175
12175
|
}
|
|
12176
|
-
function
|
|
12176
|
+
function Ql(n) {
|
|
12177
12177
|
if (typeof ShadowRoot > "u")
|
|
12178
12178
|
return !1;
|
|
12179
12179
|
var e = _e(n).ShadowRoot;
|
|
@@ -12225,14 +12225,14 @@ function ht(n) {
|
|
|
12225
12225
|
return n.split("-")[0];
|
|
12226
12226
|
}
|
|
12227
12227
|
var xn = Math.max, ao = Math.min, nr = Math.round;
|
|
12228
|
-
function
|
|
12228
|
+
function cl() {
|
|
12229
12229
|
var n = navigator.userAgentData;
|
|
12230
12230
|
return n != null && n.brands && Array.isArray(n.brands) ? n.brands.map(function(e) {
|
|
12231
12231
|
return e.brand + "/" + e.version;
|
|
12232
12232
|
}).join(" ") : navigator.userAgent;
|
|
12233
12233
|
}
|
|
12234
12234
|
function hf() {
|
|
12235
|
-
return !/^((?!chrome|android).)*safari/i.test(
|
|
12235
|
+
return !/^((?!chrome|android).)*safari/i.test(cl());
|
|
12236
12236
|
}
|
|
12237
12237
|
function rr(n, e, t) {
|
|
12238
12238
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
@@ -12250,7 +12250,7 @@ function rr(n, e, t) {
|
|
|
12250
12250
|
y: d
|
|
12251
12251
|
};
|
|
12252
12252
|
}
|
|
12253
|
-
function
|
|
12253
|
+
function Zl(n) {
|
|
12254
12254
|
var e = rr(n), t = n.offsetWidth, r = n.offsetHeight;
|
|
12255
12255
|
return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
12256
12256
|
x: n.offsetLeft,
|
|
@@ -12263,7 +12263,7 @@ function mf(n, e) {
|
|
|
12263
12263
|
var t = e.getRootNode && e.getRootNode();
|
|
12264
12264
|
if (n.contains(e))
|
|
12265
12265
|
return !0;
|
|
12266
|
-
if (t &&
|
|
12266
|
+
if (t && Ql(t)) {
|
|
12267
12267
|
var r = e;
|
|
12268
12268
|
do {
|
|
12269
12269
|
if (r && n.isSameNode(r))
|
|
@@ -12292,7 +12292,7 @@ function ns(n) {
|
|
|
12292
12292
|
// $FlowFixMe[prop-missing]
|
|
12293
12293
|
n.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
12294
12294
|
n.parentNode || // DOM Element detected
|
|
12295
|
-
(
|
|
12295
|
+
(Ql(n) ? n.host : null) || // ShadowRoot detected
|
|
12296
12296
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
12297
12297
|
tn(n)
|
|
12298
12298
|
);
|
|
@@ -12302,14 +12302,14 @@ function Rc(n) {
|
|
|
12302
12302
|
Rt(n).position === "fixed" ? null : n.offsetParent;
|
|
12303
12303
|
}
|
|
12304
12304
|
function J0(n) {
|
|
12305
|
-
var e = /firefox/i.test(
|
|
12305
|
+
var e = /firefox/i.test(cl()), t = /Trident/i.test(cl());
|
|
12306
12306
|
if (t && Ye(n)) {
|
|
12307
12307
|
var r = Rt(n);
|
|
12308
12308
|
if (r.position === "fixed")
|
|
12309
12309
|
return null;
|
|
12310
12310
|
}
|
|
12311
12311
|
var i = ns(n);
|
|
12312
|
-
for (
|
|
12312
|
+
for (Ql(i) && (i = i.host); Ye(i) && ["html", "body"].indexOf(yt(i)) < 0; ) {
|
|
12313
12313
|
var o = Rt(i);
|
|
12314
12314
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
12315
12315
|
return i;
|
|
@@ -12322,7 +12322,7 @@ function ai(n) {
|
|
|
12322
12322
|
t = Rc(t);
|
|
12323
12323
|
return t && (yt(t) === "html" || yt(t) === "body" && Rt(t).position === "static") ? e : t || J0(n) || e;
|
|
12324
12324
|
}
|
|
12325
|
-
function
|
|
12325
|
+
function ea(n) {
|
|
12326
12326
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
12327
12327
|
}
|
|
12328
12328
|
function Nr(n, e, t) {
|
|
@@ -12354,9 +12354,9 @@ var Y0 = function(e, t) {
|
|
|
12354
12354
|
})) : e, yf(typeof e != "number" ? e : bf(e, li));
|
|
12355
12355
|
};
|
|
12356
12356
|
function X0(n) {
|
|
12357
|
-
var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, l = ht(t.placement), a =
|
|
12357
|
+
var e, t = n.state, r = n.name, i = n.options, o = t.elements.arrow, s = t.modifiersData.popperOffsets, l = ht(t.placement), a = ea(l), c = [He, Ze].indexOf(l) >= 0, d = c ? "height" : "width";
|
|
12358
12358
|
if (!(!o || !s)) {
|
|
12359
|
-
var u = Y0(i.padding, t), f =
|
|
12359
|
+
var u = Y0(i.padding, t), f = Zl(o), p = a === "y" ? $e : He, h = a === "y" ? Qe : Ze, m = t.rects.reference[d] + t.rects.reference[a] - s[a] - t.rects.popper[d], g = s[a] - t.rects.reference[a], y = ai(o), v = y ? a === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, w = m / 2 - g / 2, b = u[p], T = v - f[d] - u[h], k = v / 2 - f[d] / 2 + w, O = Nr(b, k, T), H = a;
|
|
12360
12360
|
t.modifiersData[r] = (e = {}, e[H] = O, e.centerOffset = O - k, e);
|
|
12361
12361
|
}
|
|
12362
12362
|
}
|
|
@@ -12505,15 +12505,15 @@ function Lc(n) {
|
|
|
12505
12505
|
return lb[e];
|
|
12506
12506
|
});
|
|
12507
12507
|
}
|
|
12508
|
-
function
|
|
12508
|
+
function ta(n) {
|
|
12509
12509
|
var e = _e(n), t = e.pageXOffset, r = e.pageYOffset;
|
|
12510
12510
|
return {
|
|
12511
12511
|
scrollLeft: t,
|
|
12512
12512
|
scrollTop: r
|
|
12513
12513
|
};
|
|
12514
12514
|
}
|
|
12515
|
-
function
|
|
12516
|
-
return rr(tn(n)).left +
|
|
12515
|
+
function na(n) {
|
|
12516
|
+
return rr(tn(n)).left + ta(n).scrollLeft;
|
|
12517
12517
|
}
|
|
12518
12518
|
function ab(n, e) {
|
|
12519
12519
|
var t = _e(n), r = tn(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
|
|
@@ -12525,12 +12525,12 @@ function ab(n, e) {
|
|
|
12525
12525
|
return {
|
|
12526
12526
|
width: o,
|
|
12527
12527
|
height: s,
|
|
12528
|
-
x: l +
|
|
12528
|
+
x: l + na(n),
|
|
12529
12529
|
y: a
|
|
12530
12530
|
};
|
|
12531
12531
|
}
|
|
12532
12532
|
function cb(n) {
|
|
12533
|
-
var e, t = tn(n), r =
|
|
12533
|
+
var e, t = tn(n), r = ta(n), i = (e = n.ownerDocument) == null ? void 0 : e.body, o = xn(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), s = xn(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), l = -r.scrollLeft + na(n), a = -r.scrollTop;
|
|
12534
12534
|
return Rt(i || t).direction === "rtl" && (l += xn(t.clientWidth, i ? i.clientWidth : 0) - o), {
|
|
12535
12535
|
width: o,
|
|
12536
12536
|
height: s,
|
|
@@ -12538,23 +12538,23 @@ function cb(n) {
|
|
|
12538
12538
|
y: a
|
|
12539
12539
|
};
|
|
12540
12540
|
}
|
|
12541
|
-
function
|
|
12541
|
+
function ra(n) {
|
|
12542
12542
|
var e = Rt(n), t = e.overflow, r = e.overflowX, i = e.overflowY;
|
|
12543
12543
|
return /auto|scroll|overlay|hidden/.test(t + i + r);
|
|
12544
12544
|
}
|
|
12545
12545
|
function vf(n) {
|
|
12546
|
-
return ["html", "body", "#document"].indexOf(yt(n)) >= 0 ? n.ownerDocument.body : Ye(n) &&
|
|
12546
|
+
return ["html", "body", "#document"].indexOf(yt(n)) >= 0 ? n.ownerDocument.body : Ye(n) && ra(n) ? n : vf(ns(n));
|
|
12547
12547
|
}
|
|
12548
12548
|
function Dr(n, e) {
|
|
12549
12549
|
var t;
|
|
12550
12550
|
e === void 0 && (e = []);
|
|
12551
|
-
var r = vf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = _e(r), s = i ? [o].concat(o.visualViewport || [],
|
|
12551
|
+
var r = vf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = _e(r), s = i ? [o].concat(o.visualViewport || [], ra(r) ? r : []) : r, l = e.concat(s);
|
|
12552
12552
|
return i ? l : (
|
|
12553
12553
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
12554
12554
|
l.concat(Dr(ns(s)))
|
|
12555
12555
|
);
|
|
12556
12556
|
}
|
|
12557
|
-
function
|
|
12557
|
+
function dl(n) {
|
|
12558
12558
|
return Object.assign({}, n, {
|
|
12559
12559
|
left: n.x,
|
|
12560
12560
|
top: n.y,
|
|
@@ -12567,7 +12567,7 @@ function db(n, e) {
|
|
|
12567
12567
|
return t.top = t.top + n.clientTop, t.left = t.left + n.clientLeft, t.bottom = t.top + n.clientHeight, t.right = t.left + n.clientWidth, t.width = n.clientWidth, t.height = n.clientHeight, t.x = t.left, t.y = t.top, t;
|
|
12568
12568
|
}
|
|
12569
12569
|
function Pc(n, e, t) {
|
|
12570
|
-
return e === uf ?
|
|
12570
|
+
return e === uf ? dl(ab(n, t)) : En(e) ? db(e, t) : dl(cb(tn(n)));
|
|
12571
12571
|
}
|
|
12572
12572
|
function ub(n) {
|
|
12573
12573
|
var e = Dr(ns(n)), t = ["absolute", "fixed"].indexOf(Rt(n).position) >= 0, r = t && Ye(n) ? ai(n) : n;
|
|
@@ -12615,7 +12615,7 @@ function xf(n) {
|
|
|
12615
12615
|
y: e.y
|
|
12616
12616
|
};
|
|
12617
12617
|
}
|
|
12618
|
-
var c = i ?
|
|
12618
|
+
var c = i ? ea(i) : null;
|
|
12619
12619
|
if (c != null) {
|
|
12620
12620
|
var d = c === "y" ? "height" : "width";
|
|
12621
12621
|
switch (o) {
|
|
@@ -12636,7 +12636,7 @@ function Qr(n, e) {
|
|
|
12636
12636
|
element: w,
|
|
12637
12637
|
strategy: "absolute",
|
|
12638
12638
|
placement: i
|
|
12639
|
-
}), H =
|
|
12639
|
+
}), H = dl(Object.assign({}, w, O)), D = f === br ? H : k, q = {
|
|
12640
12640
|
top: T.top - D.top + y.top,
|
|
12641
12641
|
bottom: D.bottom - T.bottom + y.bottom,
|
|
12642
12642
|
left: T.left - D.left + y.left,
|
|
@@ -12672,7 +12672,7 @@ function pb(n, e) {
|
|
|
12672
12672
|
});
|
|
12673
12673
|
}
|
|
12674
12674
|
function hb(n) {
|
|
12675
|
-
if (ht(n) ===
|
|
12675
|
+
if (ht(n) === Xl)
|
|
12676
12676
|
return [];
|
|
12677
12677
|
var e = Vi(n);
|
|
12678
12678
|
return [Lc(n), e, Lc(e)];
|
|
@@ -12681,7 +12681,7 @@ function mb(n) {
|
|
|
12681
12681
|
var e = n.state, t = n.options, r = n.name;
|
|
12682
12682
|
if (!e.modifiersData[r]._skip) {
|
|
12683
12683
|
for (var i = t.mainAxis, o = i === void 0 ? !0 : i, s = t.altAxis, l = s === void 0 ? !0 : s, a = t.fallbackPlacements, c = t.padding, d = t.boundary, u = t.rootBoundary, f = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, m = t.allowedAutoPlacements, g = e.options.placement, y = ht(g), v = y === g, w = a || (v || !h ? [Vi(g)] : hb(g)), b = [g].concat(w).reduce(function(vt, et) {
|
|
12684
|
-
return vt.concat(ht(et) ===
|
|
12684
|
+
return vt.concat(ht(et) === Xl ? pb(e, {
|
|
12685
12685
|
placement: et,
|
|
12686
12686
|
boundary: d,
|
|
12687
12687
|
rootBoundary: u,
|
|
@@ -12825,7 +12825,7 @@ function Tb(n) {
|
|
|
12825
12825
|
rootBoundary: c,
|
|
12826
12826
|
padding: u,
|
|
12827
12827
|
altBoundary: d
|
|
12828
|
-
}), y = ht(e.placement), v = ir(e.placement), w = !v, b =
|
|
12828
|
+
}), y = ht(e.placement), v = ir(e.placement), w = !v, b = ea(y), T = Sb(b), k = e.modifiersData.popperOffsets, O = e.rects.reference, H = e.rects.popper, D = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
12829
12829
|
placement: e.placement
|
|
12830
12830
|
})) : m, q = typeof D == "number" ? {
|
|
12831
12831
|
mainAxis: D,
|
|
@@ -12839,7 +12839,7 @@ function Tb(n) {
|
|
|
12839
12839
|
};
|
|
12840
12840
|
if (k) {
|
|
12841
12841
|
if (o) {
|
|
12842
|
-
var te, xe = b === "y" ? $e : He, me = b === "y" ? Qe : Ze, oe = b === "y" ? "height" : "width", ae = k[b], we = ae + g[xe], st = ae - g[me], lt = p ? -H[oe] / 2 : 0, nn = v === tr ? O[oe] : H[oe], at = v === tr ? -H[oe] : -O[oe], rn = e.elements.arrow, vt = p && rn ?
|
|
12842
|
+
var te, xe = b === "y" ? $e : He, me = b === "y" ? Qe : Ze, oe = b === "y" ? "height" : "width", ae = k[b], we = ae + g[xe], st = ae - g[me], lt = p ? -H[oe] / 2 : 0, nn = v === tr ? O[oe] : H[oe], at = v === tr ? -H[oe] : -O[oe], rn = e.elements.arrow, vt = p && rn ? Zl(rn) : {
|
|
12843
12843
|
width: 0,
|
|
12844
12844
|
height: 0
|
|
12845
12845
|
}, et = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gf(), xt = et[xe], Dn = et[me], wt = Nr(0, O[oe], vt[oe]), Rn = w ? O[oe] / 2 - lt - wt - xt - q.mainAxis : nn - wt - xt - q.mainAxis, It = w ? -O[oe] / 2 + lt + wt + Dn + q.mainAxis : at + wt + Dn + q.mainAxis, In = e.elements.arrow && ai(e.elements.arrow), ci = In ? b === "y" ? In.clientTop || 0 : In.clientLeft || 0 : 0, fr = (te = Q == null ? void 0 : Q[b]) != null ? te : 0, di = ae + Rn - fr - ci, ui = ae + It - fr, pr = Nr(p ? ao(we, di) : we, ae, p ? xn(st, ui) : st);
|
|
@@ -12866,7 +12866,7 @@ function Mb(n) {
|
|
|
12866
12866
|
};
|
|
12867
12867
|
}
|
|
12868
12868
|
function Eb(n) {
|
|
12869
|
-
return n === _e(n) || !Ye(n) ?
|
|
12869
|
+
return n === _e(n) || !Ye(n) ? ta(n) : Mb(n);
|
|
12870
12870
|
}
|
|
12871
12871
|
function Ob(n) {
|
|
12872
12872
|
var e = n.getBoundingClientRect(), t = nr(e.width) / n.offsetWidth || 1, r = nr(e.height) / n.offsetHeight || 1;
|
|
@@ -12882,7 +12882,7 @@ function Nb(n, e, t) {
|
|
|
12882
12882
|
y: 0
|
|
12883
12883
|
};
|
|
12884
12884
|
return (r || !r && !t) && ((yt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
12885
|
-
|
|
12885
|
+
ra(o)) && (l = Eb(e)), Ye(e) ? (a = rr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = na(o))), {
|
|
12886
12886
|
x: s.left + l.scrollLeft - a.x,
|
|
12887
12887
|
y: s.top + l.scrollTop - a.y,
|
|
12888
12888
|
width: s.width,
|
|
@@ -12990,7 +12990,7 @@ function Pb(n) {
|
|
|
12990
12990
|
if (Hc(v, w)) {
|
|
12991
12991
|
d.rects = {
|
|
12992
12992
|
reference: Nb(v, ai(w), d.options.strategy === "fixed"),
|
|
12993
|
-
popper:
|
|
12993
|
+
popper: Zl(w)
|
|
12994
12994
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(q) {
|
|
12995
12995
|
return d.modifiersData[q.name] = Object.assign({}, q.data);
|
|
12996
12996
|
});
|
|
@@ -13060,14 +13060,14 @@ var Bb = [ob, Cb, rb, pf, wb, gb, Ab, Z0, bb], zb = /* @__PURE__ */ Pb({
|
|
|
13060
13060
|
function Fb(n, e) {
|
|
13061
13061
|
return {}.hasOwnProperty.call(n, e);
|
|
13062
13062
|
}
|
|
13063
|
-
function
|
|
13063
|
+
function Ns(n, e, t) {
|
|
13064
13064
|
if (Array.isArray(n)) {
|
|
13065
13065
|
var r = n[e];
|
|
13066
13066
|
return r ?? (Array.isArray(t) ? t[e] : t);
|
|
13067
13067
|
}
|
|
13068
13068
|
return n;
|
|
13069
13069
|
}
|
|
13070
|
-
function
|
|
13070
|
+
function ia(n, e) {
|
|
13071
13071
|
var t = {}.toString.call(n);
|
|
13072
13072
|
return t.indexOf("[object") === 0 && t.indexOf(e + "]") > -1;
|
|
13073
13073
|
}
|
|
@@ -13120,14 +13120,14 @@ function Rr() {
|
|
|
13120
13120
|
}
|
|
13121
13121
|
function Zr(n) {
|
|
13122
13122
|
return ["Element", "Fragment"].some(function(e) {
|
|
13123
|
-
return
|
|
13123
|
+
return ia(n, e);
|
|
13124
13124
|
});
|
|
13125
13125
|
}
|
|
13126
13126
|
function Ub(n) {
|
|
13127
|
-
return
|
|
13127
|
+
return ia(n, "NodeList");
|
|
13128
13128
|
}
|
|
13129
13129
|
function qb(n) {
|
|
13130
|
-
return
|
|
13130
|
+
return ia(n, "MouseEvent");
|
|
13131
13131
|
}
|
|
13132
13132
|
function Kb(n) {
|
|
13133
13133
|
return !!(n && n._tippy && n._tippy.reference === n);
|
|
@@ -13135,7 +13135,7 @@ function Kb(n) {
|
|
|
13135
13135
|
function Jb(n) {
|
|
13136
13136
|
return Zr(n) ? [n] : Ub(n) ? co(n) : Array.isArray(n) ? n : co(document.querySelectorAll(n));
|
|
13137
13137
|
}
|
|
13138
|
-
function
|
|
13138
|
+
function Ds(n, e) {
|
|
13139
13139
|
n.forEach(function(t) {
|
|
13140
13140
|
t && (t.style.transitionDuration = e + "ms");
|
|
13141
13141
|
});
|
|
@@ -13159,7 +13159,7 @@ function Yb(n, e) {
|
|
|
13159
13159
|
return m || g || y || v;
|
|
13160
13160
|
});
|
|
13161
13161
|
}
|
|
13162
|
-
function
|
|
13162
|
+
function Rs(n, e, t) {
|
|
13163
13163
|
var r = e + "EventListener";
|
|
13164
13164
|
["transitionend", "webkitTransitionEnd"].forEach(function(i) {
|
|
13165
13165
|
n[r](i, t);
|
|
@@ -13237,7 +13237,7 @@ function Ot(n, e) {
|
|
|
13237
13237
|
ei.add(e), (t = console).warn.apply(t, Mf(e));
|
|
13238
13238
|
}
|
|
13239
13239
|
}
|
|
13240
|
-
function
|
|
13240
|
+
function ul(n, e) {
|
|
13241
13241
|
if (n && !ei.has(e)) {
|
|
13242
13242
|
var t;
|
|
13243
13243
|
ei.add(e), (t = console).error.apply(t, Mf(e));
|
|
@@ -13245,7 +13245,7 @@ function dl(n, e) {
|
|
|
13245
13245
|
}
|
|
13246
13246
|
function iv(n) {
|
|
13247
13247
|
var e = !n, t = Object.prototype.toString.call(n) === "[object Object]" && !n.addEventListener;
|
|
13248
|
-
|
|
13248
|
+
ul(e, ["tippy() was passed", "`" + String(n) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), ul(t, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
13249
13249
|
}
|
|
13250
13250
|
var Ef = {
|
|
13251
13251
|
animateFill: !1,
|
|
@@ -13372,17 +13372,17 @@ function Nf(n, e) {
|
|
|
13372
13372
|
var cv = function() {
|
|
13373
13373
|
return "innerHTML";
|
|
13374
13374
|
};
|
|
13375
|
-
function
|
|
13375
|
+
function fl(n, e) {
|
|
13376
13376
|
n[cv()] = e;
|
|
13377
13377
|
}
|
|
13378
13378
|
function Jc(n) {
|
|
13379
13379
|
var e = Rr();
|
|
13380
|
-
return n === !0 ? e.className = kf : (e.className = Cf, Zr(n) ? e.appendChild(n) :
|
|
13380
|
+
return n === !0 ? e.className = kf : (e.className = Cf, Zr(n) ? e.appendChild(n) : fl(e, n)), e;
|
|
13381
13381
|
}
|
|
13382
13382
|
function Gc(n, e) {
|
|
13383
|
-
Zr(e.content) ? (
|
|
13383
|
+
Zr(e.content) ? (fl(n, ""), n.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? fl(n, e.content) : n.textContent = e.content);
|
|
13384
13384
|
}
|
|
13385
|
-
function
|
|
13385
|
+
function pl(n) {
|
|
13386
13386
|
var e = n.firstElementChild, t = co(e.children);
|
|
13387
13387
|
return {
|
|
13388
13388
|
box: e,
|
|
@@ -13403,7 +13403,7 @@ function Df(n) {
|
|
|
13403
13403
|
var r = Rr();
|
|
13404
13404
|
r.className = wf, r.setAttribute("data-state", "hidden"), Gc(r, n.props), e.appendChild(t), t.appendChild(r), i(n.props, n.props);
|
|
13405
13405
|
function i(o, s) {
|
|
13406
|
-
var l =
|
|
13406
|
+
var l = pl(e), a = l.box, c = l.content, d = l.arrow;
|
|
13407
13407
|
s.theme ? a.setAttribute("data-theme", s.theme) : a.removeAttribute("data-theme"), typeof s.animation == "string" ? a.setAttribute("data-animation", s.animation) : a.removeAttribute("data-animation"), s.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? a.setAttribute("role", s.role) : a.removeAttribute("role"), (o.content !== s.content || o.allowHTML !== s.allowHTML) && Gc(c, n.props), s.arrow ? d ? o.arrow !== s.arrow && (a.removeChild(d), a.appendChild(Jc(s.arrow))) : a.appendChild(Jc(s.arrow)) : d && a.removeChild(d);
|
|
13408
13408
|
}
|
|
13409
13409
|
return {
|
|
@@ -13412,7 +13412,7 @@ function Df(n) {
|
|
|
13412
13412
|
};
|
|
13413
13413
|
}
|
|
13414
13414
|
Df.$$tippy = !0;
|
|
13415
|
-
var dv = 1, Ei = [],
|
|
13415
|
+
var dv = 1, Ei = [], Is = [];
|
|
13416
13416
|
function uv(n, e) {
|
|
13417
13417
|
var t = Kc(n, Object.assign({}, Ve, Of(jc(e)))), r, i, o, s = !1, l = !1, a = !1, c = !1, d, u, f, p = [], h = Fc(di, t.interactiveDebounce), m, g = dv++, y = null, v = _b(t.plugins), w = {
|
|
13418
13418
|
// Is the instance currently enabled?
|
|
@@ -13447,7 +13447,7 @@ function uv(n, e) {
|
|
|
13447
13447
|
destroy: fp
|
|
13448
13448
|
};
|
|
13449
13449
|
if (!t.render)
|
|
13450
|
-
return process.env.NODE_ENV !== "production" &&
|
|
13450
|
+
return process.env.NODE_ENV !== "production" && ul(!0, "render() function has not been supplied."), b;
|
|
13451
13451
|
var T = t.render(b), k = T.popper, O = T.onUpdate;
|
|
13452
13452
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + b.id, b.popper = k, n._tippy = b, k._tippy = b;
|
|
13453
13453
|
var H = v.map(function(C) {
|
|
@@ -13477,10 +13477,10 @@ function uv(n, e) {
|
|
|
13477
13477
|
return C ? Gb(C) : document;
|
|
13478
13478
|
}
|
|
13479
13479
|
function me() {
|
|
13480
|
-
return
|
|
13480
|
+
return pl(k);
|
|
13481
13481
|
}
|
|
13482
13482
|
function oe(C) {
|
|
13483
|
-
return b.state.isMounted && !b.state.isVisible || ft.isTouch || d && d.type === "focus" ? 0 :
|
|
13483
|
+
return b.state.isMounted && !b.state.isVisible || ft.isTouch || d && d.type === "focus" ? 0 : Ns(b.props.delay, C ? 0 : 1, Ve.delay);
|
|
13484
13484
|
}
|
|
13485
13485
|
function ae(C) {
|
|
13486
13486
|
C === void 0 && (C = !1), k.style.pointerEvents = b.props.interactive && !C ? "" : "none", k.style.zIndex = "" + b.props.zIndex;
|
|
@@ -13563,11 +13563,11 @@ function uv(n, e) {
|
|
|
13563
13563
|
function Rn(C, R) {
|
|
13564
13564
|
var $ = me().box;
|
|
13565
13565
|
function G(J) {
|
|
13566
|
-
J.target === $ && (
|
|
13566
|
+
J.target === $ && (Rs($, "remove", G), R());
|
|
13567
13567
|
}
|
|
13568
13568
|
if (C === 0)
|
|
13569
13569
|
return R();
|
|
13570
|
-
|
|
13570
|
+
Rs($, "remove", u), Rs($, "add", G), u = G;
|
|
13571
13571
|
}
|
|
13572
13572
|
function It(C, R, $) {
|
|
13573
13573
|
$ === void 0 && ($ = !1);
|
|
@@ -13648,7 +13648,7 @@ function uv(n, e) {
|
|
|
13648
13648
|
}
|
|
13649
13649
|
function fi() {
|
|
13650
13650
|
pi();
|
|
13651
|
-
var C = b.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, We = Y() ?
|
|
13651
|
+
var C = b.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, We = Y() ? pl(k).arrow : null, Ln = J ? {
|
|
13652
13652
|
getBoundingClientRect: J,
|
|
13653
13653
|
contextElement: J.contextElement || te()
|
|
13654
13654
|
} : n, ma = {
|
|
@@ -13659,9 +13659,9 @@ function uv(n, e) {
|
|
|
13659
13659
|
fn: function(bi) {
|
|
13660
13660
|
var Pn = bi.state;
|
|
13661
13661
|
if (Y()) {
|
|
13662
|
-
var pp = me(),
|
|
13662
|
+
var pp = me(), ds = pp.box;
|
|
13663
13663
|
["placement", "reference-hidden", "escaped"].forEach(function(vi) {
|
|
13664
|
-
vi === "placement" ?
|
|
13664
|
+
vi === "placement" ? ds.setAttribute("data-placement", Pn.placement) : Pn.attributes.popper["data-popper-" + vi] ? ds.setAttribute("data-" + vi, "") : ds.removeAttribute("data-" + vi);
|
|
13665
13665
|
}), Pn.attributes.popper = {};
|
|
13666
13666
|
}
|
|
13667
13667
|
}
|
|
@@ -13769,20 +13769,20 @@ function uv(n, e) {
|
|
|
13769
13769
|
}
|
|
13770
13770
|
function ap() {
|
|
13771
13771
|
process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("show"));
|
|
13772
|
-
var C = b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G = ft.isTouch && !b.props.touch, J =
|
|
13772
|
+
var C = b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G = ft.isTouch && !b.props.touch, J = Ns(b.props.duration, 0, Ve.duration);
|
|
13773
13773
|
if (!(C || R || $ || G) && !te().hasAttribute("disabled") && (we("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
|
13774
13774
|
if (b.state.isVisible = !0, Y() && (k.style.visibility = "visible"), ae(), et(), b.state.isMounted || (k.style.transition = "none"), Y()) {
|
|
13775
13775
|
var Ne = me(), We = Ne.box, Ln = Ne.content;
|
|
13776
|
-
|
|
13776
|
+
Ds([We, Ln], 0);
|
|
13777
13777
|
}
|
|
13778
13778
|
f = function() {
|
|
13779
13779
|
var sn;
|
|
13780
13780
|
if (!(!b.state.isVisible || c)) {
|
|
13781
13781
|
if (c = !0, k.offsetHeight, k.style.transition = b.props.moveTransition, Y() && b.props.animation) {
|
|
13782
|
-
var
|
|
13783
|
-
|
|
13782
|
+
var cs = me(), bi = cs.box, Pn = cs.content;
|
|
13783
|
+
Ds([bi, Pn], J), _c([bi, Pn], "visible");
|
|
13784
13784
|
}
|
|
13785
|
-
st(), lt(), Vc(
|
|
13785
|
+
st(), lt(), Vc(Is, b), (sn = b.popperInstance) == null || sn.forceUpdate(), we("onMount", [b]), b.props.animation && Y() && wt(J, function() {
|
|
13786
13786
|
b.state.isShown = !0, we("onShown", [b]);
|
|
13787
13787
|
});
|
|
13788
13788
|
}
|
|
@@ -13791,11 +13791,11 @@ function uv(n, e) {
|
|
|
13791
13791
|
}
|
|
13792
13792
|
function cp() {
|
|
13793
13793
|
process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("hide"));
|
|
13794
|
-
var C = !b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G =
|
|
13794
|
+
var C = !b.state.isVisible, R = b.state.isDestroyed, $ = !b.state.isEnabled, G = Ns(b.props.duration, 1, Ve.duration);
|
|
13795
13795
|
if (!(C || R || $) && (we("onHide", [b], !1), b.props.onHide(b) !== !1)) {
|
|
13796
13796
|
if (b.state.isVisible = !1, b.state.isShown = !1, c = !1, s = !1, Y() && (k.style.visibility = "hidden"), nn(), xt(), ae(!0), Y()) {
|
|
13797
13797
|
var J = me(), Ne = J.box, We = J.content;
|
|
13798
|
-
b.props.animation && (
|
|
13798
|
+
b.props.animation && (Ds([Ne, We], G), _c([Ne, We], "hidden"));
|
|
13799
13799
|
}
|
|
13800
13800
|
st(), lt(), b.props.animation ? Y() && Dn(G, b.unmount) : b.unmount();
|
|
13801
13801
|
}
|
|
@@ -13806,7 +13806,7 @@ function uv(n, e) {
|
|
|
13806
13806
|
function up() {
|
|
13807
13807
|
process.env.NODE_ENV !== "production" && Ot(b.state.isDestroyed, $n("unmount")), b.state.isVisible && b.hide(), b.state.isMounted && (pi(), Lt().forEach(function(C) {
|
|
13808
13808
|
C._tippy.unmount();
|
|
13809
|
-
}), k.parentNode && k.parentNode.removeChild(k),
|
|
13809
|
+
}), k.parentNode && k.parentNode.removeChild(k), Is = Is.filter(function(C) {
|
|
13810
13810
|
return C !== b;
|
|
13811
13811
|
}), b.state.isMounted = !1, we("onHidden", [b]));
|
|
13812
13812
|
}
|
|
@@ -13862,7 +13862,7 @@ cr.setDefaultProps({
|
|
|
13862
13862
|
class fv {
|
|
13863
13863
|
constructor({ editor: e, element: t, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
|
|
13864
13864
|
this.preventHide = !1, this.shouldShow = ({ view: l, state: a, from: c, to: d }) => {
|
|
13865
|
-
const { doc: u, selection: f } = a, { empty: p } = f, h = !u.textBetween(c, d).length &&
|
|
13865
|
+
const { doc: u, selection: f } = a, { empty: p } = f, h = !u.textBetween(c, d).length && Kl(a.selection), m = this.element.contains(document.activeElement);
|
|
13866
13866
|
return !(!(l.hasFocus() || m) || p || h || !this.editor.isEditable);
|
|
13867
13867
|
}, this.mousedownHandler = () => {
|
|
13868
13868
|
this.preventHide = !0;
|
|
@@ -14094,7 +14094,7 @@ const hv = sr({
|
|
|
14094
14094
|
},
|
|
14095
14095
|
setup(n, { slots: e }) {
|
|
14096
14096
|
const t = U(null);
|
|
14097
|
-
return
|
|
14097
|
+
return Ml(() => {
|
|
14098
14098
|
const { updateDelay: r, editor: i, pluginKey: o, shouldShow: s, tippyOptions: l } = n;
|
|
14099
14099
|
i.registerPlugin(Rf({
|
|
14100
14100
|
updateDelay: r,
|
|
@@ -14217,7 +14217,7 @@ sr({
|
|
|
14217
14217
|
},
|
|
14218
14218
|
setup(n, { slots: e }) {
|
|
14219
14219
|
const t = U(null);
|
|
14220
|
-
return
|
|
14220
|
+
return Ml(() => {
|
|
14221
14221
|
const { pluginKey: r, editor: i, tippyOptions: o, shouldShow: s } = n;
|
|
14222
14222
|
i.registerPlugin(If({
|
|
14223
14223
|
pluginKey: r,
|
|
@@ -14724,14 +14724,14 @@ const vv = /^\s*>\s$/, xv = ie.create({
|
|
|
14724
14724
|
},
|
|
14725
14725
|
addInputRules() {
|
|
14726
14726
|
return [
|
|
14727
|
-
|
|
14727
|
+
al({
|
|
14728
14728
|
find: Dv,
|
|
14729
14729
|
type: this.type,
|
|
14730
14730
|
getAttributes: (n) => ({
|
|
14731
14731
|
language: n[1]
|
|
14732
14732
|
})
|
|
14733
14733
|
}),
|
|
14734
|
-
|
|
14734
|
+
al({
|
|
14735
14735
|
find: Rv,
|
|
14736
14736
|
type: this.type,
|
|
14737
14737
|
getAttributes: (n) => ({
|
|
@@ -14892,7 +14892,7 @@ class de extends z {
|
|
|
14892
14892
|
@internal
|
|
14893
14893
|
*/
|
|
14894
14894
|
getBookmark() {
|
|
14895
|
-
return new
|
|
14895
|
+
return new oa(this.anchor);
|
|
14896
14896
|
}
|
|
14897
14897
|
/**
|
|
14898
14898
|
@internal
|
|
@@ -14949,12 +14949,12 @@ class de extends z {
|
|
|
14949
14949
|
de.prototype.visible = !1;
|
|
14950
14950
|
de.findFrom = de.findGapCursorFrom;
|
|
14951
14951
|
z.jsonID("gapcursor", de);
|
|
14952
|
-
class
|
|
14952
|
+
class oa {
|
|
14953
14953
|
constructor(e) {
|
|
14954
14954
|
this.pos = e;
|
|
14955
14955
|
}
|
|
14956
14956
|
map(e) {
|
|
14957
|
-
return new
|
|
14957
|
+
return new oa(e.map(this.pos));
|
|
14958
14958
|
}
|
|
14959
14959
|
resolve(e) {
|
|
14960
14960
|
let t = e.resolve(this.pos);
|
|
@@ -15008,7 +15008,7 @@ function Fv() {
|
|
|
15008
15008
|
}
|
|
15009
15009
|
});
|
|
15010
15010
|
}
|
|
15011
|
-
const Vv =
|
|
15011
|
+
const Vv = jl({
|
|
15012
15012
|
ArrowLeft: Oi("horiz", -1),
|
|
15013
15013
|
ArrowRight: Oi("horiz", 1),
|
|
15014
15014
|
ArrowUp: Oi("vert", -1),
|
|
@@ -15162,7 +15162,7 @@ const Uv = fe.create({
|
|
|
15162
15162
|
}), {});
|
|
15163
15163
|
},
|
|
15164
15164
|
addInputRules() {
|
|
15165
|
-
return this.options.levels.map((n) =>
|
|
15165
|
+
return this.options.levels.map((n) => al({
|
|
15166
15166
|
find: new RegExp(`^(#{1,${n}})\\s$`),
|
|
15167
15167
|
type: this.type,
|
|
15168
15168
|
getAttributes: {
|
|
@@ -15419,10 +15419,10 @@ function Qv(n, e, t, r) {
|
|
|
15419
15419
|
if (s && s.getMeta(wn))
|
|
15420
15420
|
return s.getMeta(wn).redo ? new $t(n.done.addTransform(t, void 0, r, ji(e)), n.undone, Zc(t.mapping.maps), n.prevTime, n.prevComposition) : new $t(n.done, n.undone.addTransform(t, void 0, r, ji(e)), null, n.prevTime, n.prevComposition);
|
|
15421
15421
|
if (t.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
15422
|
-
let l = t.getMeta("composition"), a = n.prevTime == 0 || !s && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Zv(t, n.prevRanges)), c = s ?
|
|
15422
|
+
let l = t.getMeta("composition"), a = n.prevTime == 0 || !s && n.prevComposition != l && (n.prevTime < (t.time || 0) - r.newGroupDelay || !Zv(t, n.prevRanges)), c = s ? Ls(n.prevRanges, t.mapping) : Zc(t.mapping.maps);
|
|
15423
15423
|
return new $t(n.done.addTransform(t, a ? e.selection.getBookmark() : void 0, r, ji(e)), nt.empty, c, t.time, l ?? n.prevComposition);
|
|
15424
15424
|
} else
|
|
15425
|
-
return (o = t.getMeta("rebased")) ? new $t(n.done.rebased(t, o), n.undone.rebased(t, o),
|
|
15425
|
+
return (o = t.getMeta("rebased")) ? new $t(n.done.rebased(t, o), n.undone.rebased(t, o), Ls(n.prevRanges, t.mapping), n.prevTime, n.prevComposition) : new $t(n.done.addMaps(t.mapping.maps), n.undone.addMaps(t.mapping.maps), Ls(n.prevRanges, t.mapping), n.prevTime, n.prevComposition);
|
|
15426
15426
|
}
|
|
15427
15427
|
function Zv(n, e) {
|
|
15428
15428
|
if (!e)
|
|
@@ -15441,7 +15441,7 @@ function Zc(n) {
|
|
|
15441
15441
|
n[t].forEach((r, i, o, s) => e.push(o, s));
|
|
15442
15442
|
return e;
|
|
15443
15443
|
}
|
|
15444
|
-
function
|
|
15444
|
+
function Ls(n, e) {
|
|
15445
15445
|
if (!n)
|
|
15446
15446
|
return null;
|
|
15447
15447
|
let t = [];
|
|
@@ -15458,18 +15458,18 @@ function e1(n, e, t) {
|
|
|
15458
15458
|
let s = o.selection.resolve(o.transform.doc), l = (t ? n.done : n.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), a = new $t(t ? l : o.remaining, t ? o.remaining : l, null, 0, -1);
|
|
15459
15459
|
return o.transform.setSelection(s).setMeta(wn, { redo: t, historyState: a });
|
|
15460
15460
|
}
|
|
15461
|
-
let
|
|
15461
|
+
let Ps = !1, ed = null;
|
|
15462
15462
|
function ji(n) {
|
|
15463
15463
|
let e = n.plugins;
|
|
15464
15464
|
if (ed != e) {
|
|
15465
|
-
|
|
15465
|
+
Ps = !1, ed = e;
|
|
15466
15466
|
for (let t = 0; t < e.length; t++)
|
|
15467
15467
|
if (e[t].spec.historyPreserveItems) {
|
|
15468
|
-
|
|
15468
|
+
Ps = !0;
|
|
15469
15469
|
break;
|
|
15470
15470
|
}
|
|
15471
15471
|
}
|
|
15472
|
-
return
|
|
15472
|
+
return Ps;
|
|
15473
15473
|
}
|
|
15474
15474
|
const wn = new he("history"), t1 = new he("closeHistory");
|
|
15475
15475
|
function n1(n = {}) {
|
|
@@ -15898,7 +15898,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
|
|
|
15898
15898
|
addCommands() {
|
|
15899
15899
|
return {
|
|
15900
15900
|
removeEmptyTextStyle: () => ({ state: n, commands: e }) => {
|
|
15901
|
-
const t =
|
|
15901
|
+
const t = Jl(n, this.type);
|
|
15902
15902
|
return Object.entries(t).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name);
|
|
15903
15903
|
}
|
|
15904
15904
|
};
|
|
@@ -16042,7 +16042,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
|
|
|
16042
16042
|
}, s = () => {
|
|
16043
16043
|
r.value = -1;
|
|
16044
16044
|
};
|
|
16045
|
-
|
|
16045
|
+
Ml(() => {
|
|
16046
16046
|
e.editor.on("selectionUpdate", o), e.editor.on("focus", o), e.editor.on("blur", s);
|
|
16047
16047
|
}), Fo(() => {
|
|
16048
16048
|
e.editor.off("selectionUpdate", o), e.editor.off("focus", o), e.editor.off("blur", s);
|
|
@@ -16092,7 +16092,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
|
|
|
16092
16092
|
_: 1
|
|
16093
16093
|
}));
|
|
16094
16094
|
}
|
|
16095
|
-
}, P1 = /* @__PURE__ */
|
|
16095
|
+
}, P1 = /* @__PURE__ */ El(L1, [["__scopeId", "data-v-5373471c"]]), B1 = ie.create({
|
|
16096
16096
|
name: "customColumnBlock",
|
|
16097
16097
|
group: "block",
|
|
16098
16098
|
content: "customColumn{2,3}",
|
|
@@ -16240,18 +16240,18 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
|
|
|
16240
16240
|
};
|
|
16241
16241
|
}
|
|
16242
16242
|
});
|
|
16243
|
-
var
|
|
16243
|
+
var hl, ml;
|
|
16244
16244
|
if (typeof WeakMap < "u") {
|
|
16245
16245
|
let n = /* @__PURE__ */ new WeakMap();
|
|
16246
|
-
|
|
16246
|
+
hl = (e) => n.get(e), ml = (e, t) => (n.set(e, t), t);
|
|
16247
16247
|
} else {
|
|
16248
16248
|
const n = [];
|
|
16249
16249
|
let t = 0;
|
|
16250
|
-
|
|
16250
|
+
hl = (r) => {
|
|
16251
16251
|
for (let i = 0; i < n.length; i += 2)
|
|
16252
16252
|
if (n[i] == r)
|
|
16253
16253
|
return n[i + 1];
|
|
16254
|
-
},
|
|
16254
|
+
}, ml = (r, i) => (t == 10 && (t = 0), n[t++] = r, n[t++] = i);
|
|
16255
16255
|
}
|
|
16256
16256
|
var ue = class {
|
|
16257
16257
|
constructor(n, e, t, r) {
|
|
@@ -16334,7 +16334,7 @@ var ue = class {
|
|
|
16334
16334
|
}
|
|
16335
16335
|
// Find the table map for the given table node.
|
|
16336
16336
|
static get(n) {
|
|
16337
|
-
return
|
|
16337
|
+
return hl(n) || ml(n, $1(n));
|
|
16338
16338
|
}
|
|
16339
16339
|
};
|
|
16340
16340
|
function $1(n) {
|
|
@@ -16501,13 +16501,13 @@ function _1(n) {
|
|
|
16501
16501
|
return n.doc.resolve(t - e.nodeSize);
|
|
16502
16502
|
}
|
|
16503
16503
|
}
|
|
16504
|
-
function
|
|
16504
|
+
function gl(n) {
|
|
16505
16505
|
return n.parent.type.spec.tableRole == "row" && !!n.nodeAfter;
|
|
16506
16506
|
}
|
|
16507
16507
|
function W1(n) {
|
|
16508
16508
|
return n.node(0).resolve(n.pos + n.nodeAfter.nodeSize);
|
|
16509
16509
|
}
|
|
16510
|
-
function
|
|
16510
|
+
function sa(n, e) {
|
|
16511
16511
|
return n.depth == e.depth && n.pos >= e.start(-1) && n.pos <= e.end(-1);
|
|
16512
16512
|
}
|
|
16513
16513
|
function Hf(n, e, t) {
|
|
@@ -16559,7 +16559,7 @@ var ne = class At extends z {
|
|
|
16559
16559
|
}
|
|
16560
16560
|
map(e, t) {
|
|
16561
16561
|
const r = e.resolve(t.map(this.$anchorCell.pos)), i = e.resolve(t.map(this.$headCell.pos));
|
|
16562
|
-
if (
|
|
16562
|
+
if (gl(r) && gl(i) && sa(r, i)) {
|
|
16563
16563
|
const o = this.$anchorCell.node(-1) != r.node(-1);
|
|
16564
16564
|
return o && this.isRowSelection() ? At.rowSelection(r, i) : o && this.isColSelection() ? At.colSelection(r, i) : new At(r, i);
|
|
16565
16565
|
}
|
|
@@ -16712,7 +16712,7 @@ var q1 = class Vf {
|
|
|
16712
16712
|
}
|
|
16713
16713
|
resolve(e) {
|
|
16714
16714
|
const t = e.resolve(this.anchor), r = e.resolve(this.head);
|
|
16715
|
-
return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount &&
|
|
16715
|
+
return t.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && t.index() < t.parent.childCount && r.index() < r.parent.childCount && sa(t, r) ? new ne(t, r) : z.near(r, 1);
|
|
16716
16716
|
}
|
|
16717
16717
|
};
|
|
16718
16718
|
function K1(n) {
|
|
@@ -17321,14 +17321,14 @@ function mx(n) {
|
|
|
17321
17321
|
for (let a = 0; a < e.childCount; a++) {
|
|
17322
17322
|
let c = e.child(a).content;
|
|
17323
17323
|
const d = a ? 0 : Math.max(0, t - 1), u = a < e.childCount - 1 ? 0 : Math.max(0, r - 1);
|
|
17324
|
-
(d || u) && (c =
|
|
17324
|
+
(d || u) && (c = yl(
|
|
17325
17325
|
Ee(s).row,
|
|
17326
17326
|
new M(c, d, u)
|
|
17327
17327
|
).content), l.push(c);
|
|
17328
17328
|
}
|
|
17329
17329
|
else if (o == "cell" || o == "header_cell")
|
|
17330
17330
|
l.push(
|
|
17331
|
-
t || r ?
|
|
17331
|
+
t || r ? yl(
|
|
17332
17332
|
Ee(s).row,
|
|
17333
17333
|
new M(e, t, r)
|
|
17334
17334
|
).content : e
|
|
@@ -17359,9 +17359,9 @@ function gx(n, e) {
|
|
|
17359
17359
|
}
|
|
17360
17360
|
return { height: e.length, width: r, rows: e };
|
|
17361
17361
|
}
|
|
17362
|
-
function
|
|
17362
|
+
function yl(n, e) {
|
|
17363
17363
|
const t = n.createAndFill();
|
|
17364
|
-
return new
|
|
17364
|
+
return new Rl(t).replace(0, t.content.size, e).doc;
|
|
17365
17365
|
}
|
|
17366
17366
|
function yx({ width: n, height: e, rows: t }, r, i) {
|
|
17367
17367
|
if (n != r) {
|
|
@@ -17512,7 +17512,7 @@ function dd(n, e, t, r, i) {
|
|
|
17512
17512
|
)
|
|
17513
17513
|
), e(u);
|
|
17514
17514
|
}
|
|
17515
|
-
var vx =
|
|
17515
|
+
var vx = jl({
|
|
17516
17516
|
ArrowLeft: Di("horiz", -1),
|
|
17517
17517
|
ArrowRight: Di("horiz", 1),
|
|
17518
17518
|
ArrowUp: Di("vert", -1),
|
|
@@ -17595,7 +17595,7 @@ function wx(n, e, t) {
|
|
|
17595
17595
|
height: 1,
|
|
17596
17596
|
rows: [
|
|
17597
17597
|
S.from(
|
|
17598
|
-
|
|
17598
|
+
yl(Ee(n.state.schema).cell, t)
|
|
17599
17599
|
)
|
|
17600
17600
|
]
|
|
17601
17601
|
});
|
|
@@ -17624,14 +17624,14 @@ function kx(n, e) {
|
|
|
17624
17624
|
let i;
|
|
17625
17625
|
if (e.shiftKey && n.state.selection instanceof ne)
|
|
17626
17626
|
o(n.state.selection.$anchorCell, e), e.preventDefault();
|
|
17627
|
-
else if (e.shiftKey && r && (i = ur(n.state.selection.$anchor)) != null && ((t =
|
|
17627
|
+
else if (e.shiftKey && r && (i = ur(n.state.selection.$anchor)) != null && ((t = Bs(n, e)) == null ? void 0 : t.pos) != i.pos)
|
|
17628
17628
|
o(i, e), e.preventDefault();
|
|
17629
17629
|
else if (!r)
|
|
17630
17630
|
return;
|
|
17631
17631
|
function o(a, c) {
|
|
17632
|
-
let d =
|
|
17632
|
+
let d = Bs(n, c);
|
|
17633
17633
|
const u = Vt.getState(n.state) == null;
|
|
17634
|
-
if (!d || !
|
|
17634
|
+
if (!d || !sa(a, d))
|
|
17635
17635
|
if (u)
|
|
17636
17636
|
d = a;
|
|
17637
17637
|
else
|
|
@@ -17650,7 +17650,7 @@ function kx(n, e) {
|
|
|
17650
17650
|
let u;
|
|
17651
17651
|
if (d != null)
|
|
17652
17652
|
u = n.state.doc.resolve(d);
|
|
17653
|
-
else if (ud(n, c.target) != r && (u =
|
|
17653
|
+
else if (ud(n, c.target) != r && (u = Bs(n, e), !u))
|
|
17654
17654
|
return s();
|
|
17655
17655
|
u && o(u, c);
|
|
17656
17656
|
}
|
|
@@ -17677,7 +17677,7 @@ function ud(n, e) {
|
|
|
17677
17677
|
return e;
|
|
17678
17678
|
return null;
|
|
17679
17679
|
}
|
|
17680
|
-
function
|
|
17680
|
+
function Bs(n, e) {
|
|
17681
17681
|
const t = n.posAtCoords({
|
|
17682
17682
|
left: e.clientX,
|
|
17683
17683
|
top: e.clientY
|
|
@@ -17689,10 +17689,10 @@ var Cx = class {
|
|
|
17689
17689
|
this.node = e, this.defaultCellMinWidth = t, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", this.table = this.dom.appendChild(document.createElement("table")), this.table.style.setProperty(
|
|
17690
17690
|
"--default-cell-min-width",
|
|
17691
17691
|
`${t}px`
|
|
17692
|
-
), this.colgroup = this.table.appendChild(document.createElement("colgroup")),
|
|
17692
|
+
), this.colgroup = this.table.appendChild(document.createElement("colgroup")), bl(e, this.colgroup, this.table, t), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
17693
17693
|
}
|
|
17694
17694
|
update(e) {
|
|
17695
|
-
return e.type != this.node.type ? !1 : (this.node = e,
|
|
17695
|
+
return e.type != this.node.type ? !1 : (this.node = e, bl(
|
|
17696
17696
|
e,
|
|
17697
17697
|
this.colgroup,
|
|
17698
17698
|
this.table,
|
|
@@ -17703,7 +17703,7 @@ var Cx = class {
|
|
|
17703
17703
|
return e.type == "attributes" && (e.target == this.table || this.colgroup.contains(e.target));
|
|
17704
17704
|
}
|
|
17705
17705
|
};
|
|
17706
|
-
function
|
|
17706
|
+
function bl(n, e, t, r, i, o) {
|
|
17707
17707
|
var s;
|
|
17708
17708
|
let l = 0, a = !0, c = e.firstChild;
|
|
17709
17709
|
const d = n.firstChild;
|
|
@@ -17787,7 +17787,7 @@ var Tx = class Wi {
|
|
|
17787
17787
|
return new Wi(t.activeHandle, r.setDragging);
|
|
17788
17788
|
if (t.activeHandle > -1 && e.docChanged) {
|
|
17789
17789
|
let i = e.mapping.map(t.activeHandle, -1);
|
|
17790
|
-
return
|
|
17790
|
+
return gl(e.doc.resolve(i)) || (i = -1), new Wi(i, t.dragging);
|
|
17791
17791
|
}
|
|
17792
17792
|
return t;
|
|
17793
17793
|
}
|
|
@@ -17917,7 +17917,7 @@ function hd(n, e, t, r) {
|
|
|
17917
17917
|
let a = n.domAtPos(i.start(-1)).node;
|
|
17918
17918
|
for (; a && a.nodeName != "TABLE"; )
|
|
17919
17919
|
a = a.parentNode;
|
|
17920
|
-
a &&
|
|
17920
|
+
a && bl(
|
|
17921
17921
|
o,
|
|
17922
17922
|
a.firstChild,
|
|
17923
17923
|
a,
|
|
@@ -18399,7 +18399,7 @@ const Ii = ({ editor: n }) => {
|
|
|
18399
18399
|
required: !1
|
|
18400
18400
|
}, {
|
|
18401
18401
|
default: P(() => [
|
|
18402
|
-
I(
|
|
18402
|
+
I(us, {
|
|
18403
18403
|
placeholder: "This is the title of the image",
|
|
18404
18404
|
modelValue: i.value,
|
|
18405
18405
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => i.value = u)
|
|
@@ -18413,7 +18413,7 @@ const Ii = ({ editor: n }) => {
|
|
|
18413
18413
|
required: !1
|
|
18414
18414
|
}, {
|
|
18415
18415
|
default: P(() => [
|
|
18416
|
-
I(
|
|
18416
|
+
I(us, {
|
|
18417
18417
|
placeholder: "This is a description of the image for ALT purposes",
|
|
18418
18418
|
modelValue: o.value,
|
|
18419
18419
|
"onUpdate:modelValue": d[1] || (d[1] = (u) => o.value = u)
|
|
@@ -18427,7 +18427,7 @@ const Ii = ({ editor: n }) => {
|
|
|
18427
18427
|
required: !1
|
|
18428
18428
|
}, {
|
|
18429
18429
|
default: P(() => [
|
|
18430
|
-
I(
|
|
18430
|
+
I(us, {
|
|
18431
18431
|
placeholder: "Type/paste HTML link here...",
|
|
18432
18432
|
modelValue: s.value,
|
|
18433
18433
|
"onUpdate:modelValue": d[2] || (d[2] = (u) => s.value = u)
|
|
@@ -18646,7 +18646,7 @@ function fw(n, e, t, r, i, o) {
|
|
|
18646
18646
|
_: 1
|
|
18647
18647
|
}, 8, ["onClick"]);
|
|
18648
18648
|
}
|
|
18649
|
-
const pw = /* @__PURE__ */
|
|
18649
|
+
const pw = /* @__PURE__ */ El(cw, [["render", fw]]), hw = ie.create({
|
|
18650
18650
|
name: "ResizeableImage",
|
|
18651
18651
|
group: "block",
|
|
18652
18652
|
inline: !1,
|
|
@@ -18743,36 +18743,60 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18743
18743
|
}
|
|
18744
18744
|
};
|
|
18745
18745
|
}
|
|
18746
|
-
})
|
|
18746
|
+
});
|
|
18747
|
+
function ls(n) {
|
|
18748
|
+
if (Array.isArray(n))
|
|
18749
|
+
return n.filter(Boolean);
|
|
18750
|
+
if (typeof n != "string")
|
|
18751
|
+
return [];
|
|
18752
|
+
const e = n.trim();
|
|
18753
|
+
if (!e)
|
|
18754
|
+
return [];
|
|
18755
|
+
if (e.startsWith("["))
|
|
18756
|
+
try {
|
|
18757
|
+
const t = JSON.parse(e);
|
|
18758
|
+
if (Array.isArray(t))
|
|
18759
|
+
return t.filter(Boolean);
|
|
18760
|
+
} catch {
|
|
18761
|
+
}
|
|
18762
|
+
return e.split(/,(?=data:|https?:|\/)/).map((t) => t.trim()).filter(Boolean);
|
|
18763
|
+
}
|
|
18764
|
+
function mw(n) {
|
|
18765
|
+
return JSON.stringify(ls(n));
|
|
18766
|
+
}
|
|
18767
|
+
function gw(n) {
|
|
18768
|
+
return [...new Set(ls(n))];
|
|
18769
|
+
}
|
|
18770
|
+
const yw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
|
|
18747
18771
|
/* @__PURE__ */ x("p", { class: "flex-1 text-[18px] font-bold text-black-950 leading-normal" }, "Carousel")
|
|
18748
|
-
], -1),
|
|
18749
|
-
|
|
18750
|
-
],
|
|
18772
|
+
], -1), bw = { class: "bg-[rgba(7,21,30,0.04)] flex flex-wrap content-center items-center gap-[10px] px-[20px] py-[15px]" }, vw = ["src"], xw = ["onClick"], ww = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), kw = [
|
|
18773
|
+
ww
|
|
18774
|
+
], Cw = {
|
|
18751
18775
|
key: 0,
|
|
18752
18776
|
class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex items-center justify-center"
|
|
18753
|
-
},
|
|
18754
|
-
|
|
18755
|
-
],
|
|
18777
|
+
}, Sw = /* @__PURE__ */ x("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-proclus-950" }, null, -1), Tw = [
|
|
18778
|
+
Sw
|
|
18779
|
+
], Aw = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Mw = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
|
|
18756
18780
|
/* @__PURE__ */ x("p", { class: "text-[13px] leading-[1.2]" }, [
|
|
18757
18781
|
/* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file"),
|
|
18758
18782
|
/* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop")
|
|
18759
18783
|
]),
|
|
18760
18784
|
/* @__PURE__ */ x("p", { class: "text-[11px] leading-[1.2] text-black-700" }, "PNG or JPG up to 5MB")
|
|
18761
|
-
], -1),
|
|
18785
|
+
], -1), Ew = ["onClick"], Ow = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[24px] text-black-150" }, null, -1), Nw = /* @__PURE__ */ x("div", { class: "flex flex-col gap-[5px] items-center text-center w-full" }, [
|
|
18762
18786
|
/* @__PURE__ */ x("p", { class: "text-[13px] leading-[1.2]" }, [
|
|
18763
18787
|
/* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file"),
|
|
18764
18788
|
/* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop")
|
|
18765
18789
|
]),
|
|
18766
18790
|
/* @__PURE__ */ x("p", { class: "text-[11px] leading-[1.2] text-black-700" }, "PNG or JPG up to 5MB")
|
|
18767
|
-
], -1),
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
],
|
|
18791
|
+
], -1), Dw = /* @__PURE__ */ x("i", { class: "fa-light fa-plus text-[24px] text-black-400" }, null, -1), Rw = /* @__PURE__ */ x("p", { class: "text-[13px] font-bold text-black-400 leading-[1.2]" }, "Click to add", -1), Iw = [
|
|
18792
|
+
Dw,
|
|
18793
|
+
Rw
|
|
18794
|
+
], Lw = /* @__PURE__ */ x("div", { class: "flex flex-[1_0_0] flex-col items-start pt-[5px] w-full" }, [
|
|
18771
18795
|
/* @__PURE__ */ x("p", { class: "text-[12px] text-center w-full" }, [
|
|
18772
18796
|
/* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Max 8"),
|
|
18773
18797
|
/* @__PURE__ */ x("span", { class: "text-black-700" }, " carousel items")
|
|
18774
18798
|
])
|
|
18775
|
-
], -1),
|
|
18799
|
+
], -1), Pw = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, Gf = {
|
|
18776
18800
|
__name: "ImageCarouselModal",
|
|
18777
18801
|
props: {
|
|
18778
18802
|
images: {
|
|
@@ -18790,7 +18814,7 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18790
18814
|
},
|
|
18791
18815
|
emits: ["close", "save"],
|
|
18792
18816
|
setup(n, { emit: e }) {
|
|
18793
|
-
const t = n, r = e, i = U(
|
|
18817
|
+
const t = n, r = e, i = U(gw(t.images)), o = U(null), s = U({}), l = U(0), a = U(!1), c = () => {
|
|
18794
18818
|
var y;
|
|
18795
18819
|
(y = o.value) == null || y.click();
|
|
18796
18820
|
}, d = (y) => t.uploadImage ? t.uploadImage(y) : new Promise((v, w) => {
|
|
@@ -18801,7 +18825,7 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18801
18825
|
a.value = !0;
|
|
18802
18826
|
try {
|
|
18803
18827
|
const w = await d(y);
|
|
18804
|
-
i.value.length < 8 && (i.value.push(w), v && l.value > 0 && l.value--);
|
|
18828
|
+
i.value.length < 8 && (i.value.includes(w) || i.value.push(w), v && l.value > 0 && l.value--);
|
|
18805
18829
|
} catch (w) {
|
|
18806
18830
|
console.error("Carousel image upload failed:", w);
|
|
18807
18831
|
} finally {
|
|
@@ -18830,10 +18854,10 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18830
18854
|
class: "w-[410px] max-w-[93vw] !p-0 !rounded-[20px] !top-[calc(50%+10.5px)] !shadow-[0px_6px_15px_0px_rgba(0,0,0,0.1),0px_3px_8px_0px_rgba(0,0,0,0.1)]"
|
|
18831
18855
|
}, {
|
|
18832
18856
|
header: P(() => [
|
|
18833
|
-
|
|
18857
|
+
yw
|
|
18834
18858
|
]),
|
|
18835
18859
|
footer: P(() => [
|
|
18836
|
-
x("div",
|
|
18860
|
+
x("div", Pw, [
|
|
18837
18861
|
I(Vr, {
|
|
18838
18862
|
onClick: v[1] || (v[1] = (w) => y.$emit("close"))
|
|
18839
18863
|
}, {
|
|
@@ -18854,7 +18878,7 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18854
18878
|
])
|
|
18855
18879
|
]),
|
|
18856
18880
|
default: P(() => [
|
|
18857
|
-
x("div",
|
|
18881
|
+
x("div", bw, [
|
|
18858
18882
|
(E(!0), V(Cn, null, Fr(i.value, (w, b) => (E(), V("div", {
|
|
18859
18883
|
key: "img-" + b,
|
|
18860
18884
|
class: "relative w-[calc(50%-5px)] h-[115px] rounded-[8px] overflow-hidden border-[1px] border-black-150"
|
|
@@ -18863,20 +18887,20 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18863
18887
|
src: w,
|
|
18864
18888
|
alt: "",
|
|
18865
18889
|
class: "w-full h-full object-cover"
|
|
18866
|
-
}, null, 8,
|
|
18890
|
+
}, null, 8, vw),
|
|
18867
18891
|
x("button", {
|
|
18868
18892
|
class: "absolute top-[11px] right-[10px] w-[16px] h-[16px] flex items-center justify-center text-black-700 hover:text-error-950 transition-colors",
|
|
18869
18893
|
onClick: (T) => m(b)
|
|
18870
|
-
},
|
|
18894
|
+
}, kw, 8, xw)
|
|
18871
18895
|
]))), 128)),
|
|
18872
|
-
a.value ? (E(), V("div",
|
|
18896
|
+
a.value ? (E(), V("div", Cw, Tw)) : _("", !0),
|
|
18873
18897
|
i.value.length < 8 && !a.value ? (E(), V("div", {
|
|
18874
18898
|
key: 1,
|
|
18875
18899
|
class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex flex-col gap-[10px] items-center justify-center p-[15px] cursor-pointer",
|
|
18876
18900
|
onClick: c
|
|
18877
18901
|
}, [
|
|
18878
|
-
|
|
18879
|
-
|
|
18902
|
+
Aw,
|
|
18903
|
+
Mw,
|
|
18880
18904
|
x("input", {
|
|
18881
18905
|
ref_key: "fileInput",
|
|
18882
18906
|
ref: o,
|
|
@@ -18891,8 +18915,8 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18891
18915
|
class: "relative w-[calc(50%-5px)] h-[115px] bg-[#ffffff] border-[1px] border-dashed border-black-150 rounded-[8px] flex flex-col gap-[10px] items-center justify-center p-[15px] cursor-pointer",
|
|
18892
18916
|
onClick: (b) => p(w - 1)
|
|
18893
18917
|
}, [
|
|
18894
|
-
|
|
18895
|
-
|
|
18918
|
+
Ow,
|
|
18919
|
+
Nw,
|
|
18896
18920
|
x("input", {
|
|
18897
18921
|
ref_for: !0,
|
|
18898
18922
|
ref: (b) => {
|
|
@@ -18903,52 +18927,31 @@ const pw = /* @__PURE__ */ Ml(cw, [["render", fw]]), hw = ie.create({
|
|
|
18903
18927
|
class: "hidden",
|
|
18904
18928
|
onChange: h
|
|
18905
18929
|
}, null, 544)
|
|
18906
|
-
], 8,
|
|
18930
|
+
], 8, Ew)), [
|
|
18907
18931
|
[kp, !a.value]
|
|
18908
18932
|
])), 128)),
|
|
18909
18933
|
i.value.length + l.value + 1 < 8 && !a.value ? (E(), V("div", {
|
|
18910
18934
|
key: 2,
|
|
18911
18935
|
class: "w-[calc(50%-5px)] h-[115px] flex flex-col gap-[10px] items-center justify-center rounded-[8px] border-[1px] border-dashed border-black-150 bg-black-100 cursor-pointer p-[15px]",
|
|
18912
18936
|
onClick: v[0] || (v[0] = (w) => l.value++)
|
|
18913
|
-
},
|
|
18914
|
-
|
|
18937
|
+
}, Iw)) : _("", !0),
|
|
18938
|
+
Lw
|
|
18915
18939
|
])
|
|
18916
18940
|
]),
|
|
18917
18941
|
_: 1
|
|
18918
18942
|
}));
|
|
18919
18943
|
}
|
|
18920
|
-
}
|
|
18921
|
-
|
|
18922
|
-
|
|
18923
|
-
return n.filter(Boolean);
|
|
18924
|
-
if (typeof n != "string")
|
|
18925
|
-
return [];
|
|
18926
|
-
const e = n.trim();
|
|
18927
|
-
if (!e)
|
|
18928
|
-
return [];
|
|
18929
|
-
if (e.startsWith("["))
|
|
18930
|
-
try {
|
|
18931
|
-
const t = JSON.parse(e);
|
|
18932
|
-
if (Array.isArray(t))
|
|
18933
|
-
return t.filter(Boolean);
|
|
18934
|
-
} catch {
|
|
18935
|
-
}
|
|
18936
|
-
return e.split(/,(?=data:|https?:|\/)/).map((t) => t.trim()).filter(Boolean);
|
|
18937
|
-
}
|
|
18938
|
-
function Lw(n) {
|
|
18939
|
-
return JSON.stringify(sa(n));
|
|
18940
|
-
}
|
|
18941
|
-
const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2 border-[rgb(128,128,128)] border-dotted rounded-lg carousel-edit relative group" }, Bw = /* @__PURE__ */ x("i", { class: "fa-solid fa-times text-sm text-black-950" }, null, -1), zw = [
|
|
18942
|
-
Bw
|
|
18943
|
-
], $w = { class: "m-2 !mt-2" }, Hw = { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg" }, Fw = ["src"], Vw = /* @__PURE__ */ x("div", { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg hover:bg-steel-400 transition-all duration-300 cursor-pointer" }, [
|
|
18944
|
+
}, Bw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2 border-[rgb(128,128,128)] border-dotted rounded-lg carousel-edit relative group" }, zw = /* @__PURE__ */ x("i", { class: "fa-solid fa-times text-sm text-black-950" }, null, -1), $w = [
|
|
18945
|
+
zw
|
|
18946
|
+
], Hw = { class: "m-2 !mt-2" }, Fw = { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg" }, Vw = ["src"], jw = /* @__PURE__ */ x("div", { class: "bg-steel-300 min-w-24 min-h-36 flex justify-center items-center border-[1px] border-[rgb(128,128,128)] border-dotted rounded-lg hover:bg-steel-400 transition-all duration-300 cursor-pointer" }, [
|
|
18944
18947
|
/* @__PURE__ */ x("i", { class: "fa-solid fa-plus" })
|
|
18945
|
-
], -1),
|
|
18946
|
-
|
|
18947
|
-
],
|
|
18948
|
-
|
|
18949
|
-
],
|
|
18950
|
-
|
|
18951
|
-
],
|
|
18948
|
+
], -1), _w = [
|
|
18949
|
+
jw
|
|
18950
|
+
], Ww = { class: "w-full max-w-[500px] justify-between items-center carousel-view flex-row my-2" }, Uw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-left text-xl pointer-events-none" }, null, -1), qw = [
|
|
18951
|
+
Uw
|
|
18952
|
+
], Kw = { class: "flex justify-center w-[80%] relative h-[250px] overflow-hidden" }, Jw = ["src"], Gw = /* @__PURE__ */ x("i", { class: "fa-solid fa-arrow-right text-xl pointer-events-none" }, null, -1), Yw = [
|
|
18953
|
+
Gw
|
|
18954
|
+
], Xw = {
|
|
18952
18955
|
__name: "ImageCarousel",
|
|
18953
18956
|
props: {
|
|
18954
18957
|
node: {
|
|
@@ -18969,7 +18972,7 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
18969
18972
|
}
|
|
18970
18973
|
},
|
|
18971
18974
|
setup(n) {
|
|
18972
|
-
const e = n, t = U(
|
|
18975
|
+
const e = n, t = U(ls(e.node.attrs.srcs)), r = U(0), i = qt(() => t.value[r.value]), o = () => {
|
|
18973
18976
|
const d = t.value.length;
|
|
18974
18977
|
d && (r.value = (r.value - 1 + d) % d);
|
|
18975
18978
|
}, s = () => {
|
|
@@ -18982,17 +18985,17 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
18982
18985
|
};
|
|
18983
18986
|
return (d, u) => (E(), X(K(rs), { class: "vue-component" }, {
|
|
18984
18987
|
default: P(() => [
|
|
18985
|
-
x("div",
|
|
18988
|
+
x("div", Bw, [
|
|
18986
18989
|
x("div", {
|
|
18987
18990
|
class: "absolute top-0 right-0 w-6 h-6 bg-red-500 text-white rounded-full flex items-center justify-center cursor-pointer hover:bg-red-600 transition-colors duration-200 z-10 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
18988
18991
|
onClick: c
|
|
18989
|
-
},
|
|
18990
|
-
(E(!0), V(Cn, null, Fr(t.value, (f) => (E(), V("div",
|
|
18991
|
-
x("div",
|
|
18992
|
+
}, $w),
|
|
18993
|
+
(E(!0), V(Cn, null, Fr(t.value, (f) => (E(), V("div", Hw, [
|
|
18994
|
+
x("div", Fw, [
|
|
18992
18995
|
x("img", {
|
|
18993
18996
|
class: "h-[136px]",
|
|
18994
18997
|
src: f
|
|
18995
|
-
}, null, 8,
|
|
18998
|
+
}, null, 8, Vw)
|
|
18996
18999
|
])
|
|
18997
19000
|
]))), 256)),
|
|
18998
19001
|
t.value.length < 8 ? (E(), V("div", {
|
|
@@ -19001,22 +19004,22 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19001
19004
|
onClick: u[0] || (u[0] = (f) => {
|
|
19002
19005
|
l.value = !0;
|
|
19003
19006
|
})
|
|
19004
|
-
},
|
|
19007
|
+
}, _w)) : _("", !0)
|
|
19005
19008
|
]),
|
|
19006
|
-
x("div",
|
|
19009
|
+
x("div", Ww, [
|
|
19007
19010
|
x("div", {
|
|
19008
19011
|
class: "w-[10%] flex justify-center items-center relative z-10 cursor-pointer",
|
|
19009
19012
|
"data-testid": "carousel-prev",
|
|
19010
19013
|
onClick: u[1] || (u[1] = (f) => o())
|
|
19011
|
-
},
|
|
19012
|
-
x("div",
|
|
19014
|
+
}, qw),
|
|
19015
|
+
x("div", Kw, [
|
|
19013
19016
|
I(Cp, null, {
|
|
19014
19017
|
default: P(() => [
|
|
19015
19018
|
(E(), V("img", {
|
|
19016
19019
|
src: i.value,
|
|
19017
19020
|
key: r.value,
|
|
19018
19021
|
class: "absolute max-h-full max-w-full w-auto pointer-events-none"
|
|
19019
|
-
}, null, 8,
|
|
19022
|
+
}, null, 8, Jw))
|
|
19020
19023
|
]),
|
|
19021
19024
|
_: 1
|
|
19022
19025
|
})
|
|
@@ -19025,7 +19028,7 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19025
19028
|
class: "w-[10%] flex justify-center items-center relative z-10 cursor-pointer",
|
|
19026
19029
|
"data-testid": "carousel-next",
|
|
19027
19030
|
onClick: u[2] || (u[2] = (f) => s())
|
|
19028
|
-
},
|
|
19031
|
+
}, Yw)
|
|
19029
19032
|
]),
|
|
19030
19033
|
l.value ? (E(), X(Gf, {
|
|
19031
19034
|
key: 0,
|
|
@@ -19039,7 +19042,7 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19039
19042
|
_: 1
|
|
19040
19043
|
}));
|
|
19041
19044
|
}
|
|
19042
|
-
},
|
|
19045
|
+
}, Qw = ie.create({
|
|
19043
19046
|
name: "ImageCarousel",
|
|
19044
19047
|
group: "block",
|
|
19045
19048
|
content: "inline*",
|
|
@@ -19055,7 +19058,7 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19055
19058
|
return ["image-carousel", ee(n)];
|
|
19056
19059
|
},
|
|
19057
19060
|
addNodeView() {
|
|
19058
|
-
return is(
|
|
19061
|
+
return is(Xw);
|
|
19059
19062
|
},
|
|
19060
19063
|
addAttributes() {
|
|
19061
19064
|
return {
|
|
@@ -19064,15 +19067,15 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19064
19067
|
// corrupts data-URI images (they contain their own comma). See carouselSrcs.js.
|
|
19065
19068
|
srcs: {
|
|
19066
19069
|
default: [],
|
|
19067
|
-
parseHTML: (n) =>
|
|
19068
|
-
renderHTML: (n) => ({ srcs:
|
|
19070
|
+
parseHTML: (n) => ls(n.getAttribute("srcs")),
|
|
19071
|
+
renderHTML: (n) => ({ srcs: mw(n.srcs) })
|
|
19069
19072
|
}
|
|
19070
19073
|
};
|
|
19071
19074
|
},
|
|
19072
19075
|
addCommands() {
|
|
19073
19076
|
return {};
|
|
19074
19077
|
}
|
|
19075
|
-
}),
|
|
19078
|
+
}), Zw = fe.create({
|
|
19076
19079
|
name: "placeholder",
|
|
19077
19080
|
addOptions() {
|
|
19078
19081
|
return {
|
|
@@ -19117,7 +19120,7 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19117
19120
|
})
|
|
19118
19121
|
];
|
|
19119
19122
|
}
|
|
19120
|
-
}),
|
|
19123
|
+
}), ek = ie.create({
|
|
19121
19124
|
name: "UneditableTitle",
|
|
19122
19125
|
group: "block",
|
|
19123
19126
|
content: "inline*",
|
|
@@ -19144,22 +19147,22 @@ const Pw = { class: "w-full max-w-[500px] bg-steel-200 grid grid-cols-2 border-2
|
|
|
19144
19147
|
};
|
|
19145
19148
|
};
|
|
19146
19149
|
}
|
|
19147
|
-
}),
|
|
19150
|
+
}), tk = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", nk = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", or = (n, e) => {
|
|
19148
19151
|
for (const t in e)
|
|
19149
19152
|
n[t] = e[t];
|
|
19150
19153
|
return n;
|
|
19151
|
-
},
|
|
19152
|
-
function
|
|
19154
|
+
}, vl = "numeric", xl = "ascii", wl = "alpha", Ir = "asciinumeric", Sr = "alphanumeric", kl = "domain", Yf = "emoji", rk = "scheme", ik = "slashscheme", zs = "whitespace";
|
|
19155
|
+
function ok(n, e) {
|
|
19153
19156
|
return n in e || (e[n] = []), e[n];
|
|
19154
19157
|
}
|
|
19155
19158
|
function hn(n, e, t) {
|
|
19156
|
-
e[
|
|
19159
|
+
e[vl] && (e[Ir] = !0, e[Sr] = !0), e[xl] && (e[Ir] = !0, e[wl] = !0), e[Ir] && (e[Sr] = !0), e[wl] && (e[Sr] = !0), e[Sr] && (e[kl] = !0), e[Yf] && (e[kl] = !0);
|
|
19157
19160
|
for (const r in e) {
|
|
19158
|
-
const i =
|
|
19161
|
+
const i = ok(r, t);
|
|
19159
19162
|
i.indexOf(n) < 0 && i.push(n);
|
|
19160
19163
|
}
|
|
19161
19164
|
}
|
|
19162
|
-
function
|
|
19165
|
+
function sk(n, e) {
|
|
19163
19166
|
const t = {};
|
|
19164
19167
|
for (const r in e)
|
|
19165
19168
|
e[r].indexOf(n) >= 0 && (t[r] = !0);
|
|
@@ -19281,7 +19284,7 @@ Pe.prototype = {
|
|
|
19281
19284
|
if (l ? (s = new Pe(), or(s.j, l.j), s.jr.push.apply(s.jr, l.jr), s.jd = l.jd, s.t = l.t) : s = new Pe(), o) {
|
|
19282
19285
|
if (r)
|
|
19283
19286
|
if (s.t && typeof s.t == "string") {
|
|
19284
|
-
const a = or(
|
|
19287
|
+
const a = or(sk(s.t, r), t);
|
|
19285
19288
|
hn(o, a, r);
|
|
19286
19289
|
} else
|
|
19287
19290
|
t && hn(o, t, r);
|
|
@@ -19290,7 +19293,7 @@ Pe.prototype = {
|
|
|
19290
19293
|
return i.j[n] = s, s;
|
|
19291
19294
|
}
|
|
19292
19295
|
};
|
|
19293
|
-
const F = (n, e, t, r, i) => n.ta(e, t, r, i), ce = (n, e, t, r, i) => n.tr(e, t, r, i), yd = (n, e, t, r, i) => n.ts(e, t, r, i), A = (n, e, t, r, i) => n.tt(e, t, r, i), Mt = "WORD",
|
|
19296
|
+
const F = (n, e, t, r, i) => n.ta(e, t, r, i), ce = (n, e, t, r, i) => n.tr(e, t, r, i), yd = (n, e, t, r, i) => n.ts(e, t, r, i), A = (n, e, t, r, i) => n.tt(e, t, r, i), Mt = "WORD", Cl = "UWORD", Xf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", ni = "LOCALHOST", Sl = "TLD", Tl = "UTLD", Ui = "SCHEME", _n = "SLASH_SCHEME", la = "NUM", Al = "WS", aa = "NL", Lr = "OPENBRACE", Pr = "CLOSEBRACE", fo = "OPENBRACKET", po = "CLOSEBRACKET", ho = "OPENPAREN", mo = "CLOSEPAREN", go = "OPENANGLEBRACKET", yo = "CLOSEANGLEBRACKET", bo = "FULLWIDTHLEFTPAREN", vo = "FULLWIDTHRIGHTPAREN", xo = "LEFTCORNERBRACKET", wo = "RIGHTCORNERBRACKET", ko = "LEFTWHITECORNERBRACKET", Co = "RIGHTWHITECORNERBRACKET", So = "FULLWIDTHLESSTHAN", To = "FULLWIDTHGREATERTHAN", Ao = "AMPERSAND", Mo = "APOSTROPHE", Eo = "ASTERISK", Ht = "AT", Oo = "BACKSLASH", No = "BACKTICK", Do = "CARET", jt = "COLON", ca = "COMMA", Ro = "DOLLAR", dt = "DOT", Io = "EQUALS", da = "EXCLAMATION", qe = "HYPHEN", Br = "PERCENT", Lo = "PIPE", Po = "PLUS", Bo = "POUND", zr = "QUERY", ua = "QUOTE", Zf = "FULLWIDTHMIDDLEDOT", fa = "SEMI", ut = "SLASH", $r = "TILDE", zo = "UNDERSCORE", ep = "EMOJI", $o = "SYM";
|
|
19294
19297
|
var tp = /* @__PURE__ */ Object.freeze({
|
|
19295
19298
|
__proto__: null,
|
|
19296
19299
|
ALPHANUMERICAL: Qf,
|
|
@@ -19342,23 +19345,23 @@ var tp = /* @__PURE__ */ Object.freeze({
|
|
|
19342
19345
|
SLASH_SCHEME: _n,
|
|
19343
19346
|
SYM: $o,
|
|
19344
19347
|
TILDE: $r,
|
|
19345
|
-
TLD:
|
|
19348
|
+
TLD: Sl,
|
|
19346
19349
|
UNDERSCORE: zo,
|
|
19347
|
-
UTLD:
|
|
19348
|
-
UWORD:
|
|
19350
|
+
UTLD: Tl,
|
|
19351
|
+
UWORD: Cl,
|
|
19349
19352
|
WORD: Mt,
|
|
19350
|
-
WS:
|
|
19353
|
+
WS: Al
|
|
19351
19354
|
});
|
|
19352
|
-
const St = /[a-z]/, vr = new RegExp("\\p{L}", "u"),
|
|
19353
|
-
`,
|
|
19355
|
+
const St = /[a-z]/, vr = new RegExp("\\p{L}", "u"), $s = new RegExp("\\p{Emoji}", "u"), Tt = /\d/, Hs = /\s/, bd = "\r", Fs = `
|
|
19356
|
+
`, lk = "️", ak = "", Vs = "";
|
|
19354
19357
|
let Li = null, Pi = null;
|
|
19355
|
-
function
|
|
19358
|
+
function ck(n = []) {
|
|
19356
19359
|
const e = {};
|
|
19357
19360
|
Pe.groups = e;
|
|
19358
19361
|
const t = new Pe();
|
|
19359
|
-
Li == null && (Li = vd(
|
|
19362
|
+
Li == null && (Li = vd(tk)), Pi == null && (Pi = vd(nk)), A(t, "'", Mo), A(t, "{", Lr), A(t, "}", Pr), A(t, "[", fo), A(t, "]", po), A(t, "(", ho), A(t, ")", mo), A(t, "<", go), A(t, ">", yo), A(t, "(", bo), A(t, ")", vo), A(t, "「", xo), A(t, "」", wo), A(t, "『", ko), A(t, "』", Co), A(t, "<", So), A(t, ">", To), A(t, "&", Ao), A(t, "*", Eo), A(t, "@", Ht), A(t, "`", No), A(t, "^", Do), A(t, ":", jt), A(t, ",", ca), A(t, "$", Ro), A(t, ".", dt), A(t, "=", Io), A(t, "!", da), A(t, "-", qe), A(t, "%", Br), A(t, "|", Lo), A(t, "+", Po), A(t, "#", Bo), A(t, "?", zr), A(t, '"', ua), A(t, "/", ut), A(t, ";", fa), A(t, "~", $r), A(t, "_", zo), A(t, "\\", Oo), A(t, "・", Zf);
|
|
19360
19363
|
const r = ce(t, Tt, la, {
|
|
19361
|
-
[
|
|
19364
|
+
[vl]: !0
|
|
19362
19365
|
});
|
|
19363
19366
|
ce(r, Tt, r);
|
|
19364
19367
|
const i = ce(r, St, Xf, {
|
|
@@ -19366,36 +19369,36 @@ function ak(n = []) {
|
|
|
19366
19369
|
}), o = ce(r, vr, Qf, {
|
|
19367
19370
|
[Sr]: !0
|
|
19368
19371
|
}), s = ce(t, St, Mt, {
|
|
19369
|
-
[
|
|
19372
|
+
[xl]: !0
|
|
19370
19373
|
});
|
|
19371
19374
|
ce(s, Tt, i), ce(s, St, s), ce(i, Tt, i), ce(i, St, i);
|
|
19372
|
-
const l = ce(t, vr,
|
|
19373
|
-
[
|
|
19375
|
+
const l = ce(t, vr, Cl, {
|
|
19376
|
+
[wl]: !0
|
|
19374
19377
|
});
|
|
19375
19378
|
ce(l, St), ce(l, Tt, o), ce(l, vr, l), ce(o, Tt, o), ce(o, St), ce(o, vr, o);
|
|
19376
|
-
const a = A(t,
|
|
19377
|
-
[
|
|
19378
|
-
}), c = A(t, bd,
|
|
19379
|
-
[
|
|
19380
|
-
}), d = ce(t,
|
|
19381
|
-
[
|
|
19379
|
+
const a = A(t, Fs, aa, {
|
|
19380
|
+
[zs]: !0
|
|
19381
|
+
}), c = A(t, bd, Al, {
|
|
19382
|
+
[zs]: !0
|
|
19383
|
+
}), d = ce(t, Hs, Al, {
|
|
19384
|
+
[zs]: !0
|
|
19382
19385
|
});
|
|
19383
|
-
A(t,
|
|
19384
|
-
const u = ce(t,
|
|
19386
|
+
A(t, Vs, d), A(c, Fs, a), A(c, Vs, d), ce(c, Hs, d), A(d, bd), A(d, Fs), ce(d, Hs, d), A(d, Vs, d);
|
|
19387
|
+
const u = ce(t, $s, ep, {
|
|
19385
19388
|
[Yf]: !0
|
|
19386
19389
|
});
|
|
19387
|
-
A(u, "#"), ce(u,
|
|
19388
|
-
const f = A(u,
|
|
19389
|
-
A(f, "#"), ce(f,
|
|
19390
|
+
A(u, "#"), ce(u, $s, u), A(u, lk, u);
|
|
19391
|
+
const f = A(u, ak);
|
|
19392
|
+
A(f, "#"), ce(f, $s, u);
|
|
19390
19393
|
const p = [[St, s], [Tt, i]], h = [[St, null], [vr, l], [Tt, o]];
|
|
19391
19394
|
for (let m = 0; m < Li.length; m++)
|
|
19392
|
-
Pt(t, Li[m],
|
|
19395
|
+
Pt(t, Li[m], Sl, Mt, p);
|
|
19393
19396
|
for (let m = 0; m < Pi.length; m++)
|
|
19394
|
-
Pt(t, Pi[m],
|
|
19395
|
-
hn(
|
|
19397
|
+
Pt(t, Pi[m], Tl, Cl, h);
|
|
19398
|
+
hn(Sl, {
|
|
19396
19399
|
tld: !0,
|
|
19397
19400
|
ascii: !0
|
|
19398
|
-
}, e), hn(
|
|
19401
|
+
}, e), hn(Tl, {
|
|
19399
19402
|
utld: !0,
|
|
19400
19403
|
alpha: !0
|
|
19401
19404
|
}, e), Pt(t, "file", Ui, Mt, p), Pt(t, "mailto", Ui, Mt, p), Pt(t, "http", _n, Mt, p), Pt(t, "https", _n, Mt, p), Pt(t, "ftp", _n, Mt, p), Pt(t, "ftps", _n, Mt, p), hn(Ui, {
|
|
@@ -19407,11 +19410,11 @@ function ak(n = []) {
|
|
|
19407
19410
|
}, e), n = n.sort((m, g) => m[0] > g[0] ? 1 : -1);
|
|
19408
19411
|
for (let m = 0; m < n.length; m++) {
|
|
19409
19412
|
const g = n[m][0], v = n[m][1] ? {
|
|
19410
|
-
[nk]: !0
|
|
19411
|
-
} : {
|
|
19412
19413
|
[rk]: !0
|
|
19414
|
+
} : {
|
|
19415
|
+
[ik]: !0
|
|
19413
19416
|
};
|
|
19414
|
-
g.indexOf("-") >= 0 ? v[
|
|
19417
|
+
g.indexOf("-") >= 0 ? v[kl] = !0 : St.test(g) ? Tt.test(g) ? v[Ir] = !0 : v[xl] = !0 : v[vl] = !0, yd(t, g, g, v);
|
|
19415
19418
|
}
|
|
19416
19419
|
return yd(t, "localhost", ni, {
|
|
19417
19420
|
ascii: !0
|
|
@@ -19423,7 +19426,7 @@ function ak(n = []) {
|
|
|
19423
19426
|
};
|
|
19424
19427
|
}
|
|
19425
19428
|
function np(n, e) {
|
|
19426
|
-
const t =
|
|
19429
|
+
const t = dk(e.replace(/[A-Z]/g, (l) => l.toLowerCase())), r = t.length, i = [];
|
|
19427
19430
|
let o = 0, s = 0;
|
|
19428
19431
|
for (; s < r; ) {
|
|
19429
19432
|
let l = n, a = null, c = 0, d = null, u = -1, f = -1;
|
|
@@ -19442,7 +19445,7 @@ function np(n, e) {
|
|
|
19442
19445
|
}
|
|
19443
19446
|
return i;
|
|
19444
19447
|
}
|
|
19445
|
-
function
|
|
19448
|
+
function dk(n) {
|
|
19446
19449
|
const e = [], t = n.length;
|
|
19447
19450
|
let r = 0;
|
|
19448
19451
|
for (; r < t; ) {
|
|
@@ -19673,7 +19676,7 @@ rp.prototype = {
|
|
|
19673
19676
|
};
|
|
19674
19677
|
}
|
|
19675
19678
|
};
|
|
19676
|
-
function
|
|
19679
|
+
function as(n, e) {
|
|
19677
19680
|
class t extends rp {
|
|
19678
19681
|
constructor(i, o) {
|
|
19679
19682
|
super(i, o), this.t = n;
|
|
@@ -19683,12 +19686,12 @@ function ls(n, e) {
|
|
|
19683
19686
|
t.prototype[r] = e[r];
|
|
19684
19687
|
return t.t = n, t;
|
|
19685
19688
|
}
|
|
19686
|
-
const wd =
|
|
19689
|
+
const wd = as("email", {
|
|
19687
19690
|
isLink: !0,
|
|
19688
19691
|
toHref() {
|
|
19689
19692
|
return "mailto:" + this.toString();
|
|
19690
19693
|
}
|
|
19691
|
-
}), kd =
|
|
19694
|
+
}), kd = as("text"), uk = as("nl"), Bi = as("url", {
|
|
19692
19695
|
isLink: !0,
|
|
19693
19696
|
/**
|
|
19694
19697
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -19709,7 +19712,7 @@ const wd = ls("email", {
|
|
|
19709
19712
|
return n.length >= 2 && n[0].t !== ni && n[1].t === jt;
|
|
19710
19713
|
}
|
|
19711
19714
|
}), Ue = (n) => new Pe(n);
|
|
19712
|
-
function
|
|
19715
|
+
function fk({
|
|
19713
19716
|
groups: n
|
|
19714
19717
|
}) {
|
|
19715
19718
|
const e = n.domain.concat([Ao, Eo, Ht, Oo, No, Do, Ro, Io, qe, la, Br, Lo, Po, Bo, ut, $o, $r, zo]), t = [Mo, jt, ca, dt, da, Br, zr, ua, fa, go, yo, Lr, Pr, po, fo, ho, mo, bo, vo, xo, wo, ko, Co, So, To], r = [Ao, Mo, Eo, Oo, No, Do, Ro, Io, qe, Lr, Pr, Br, Lo, Po, Bo, zr, ut, $o, $r, zo], i = Ue(), o = A(i, $r);
|
|
@@ -19766,12 +19769,12 @@ function uk({
|
|
|
19766
19769
|
const ae = Ue();
|
|
19767
19770
|
F(me, t), F(oe, e, oe), F(oe, t, ae), F(ae, e, oe), F(ae, t, ae), A(oe, xe, T), A(ae, xe, T);
|
|
19768
19771
|
}
|
|
19769
|
-
return A(i, ni, v), A(i, aa,
|
|
19772
|
+
return A(i, ni, v), A(i, aa, uk), {
|
|
19770
19773
|
start: i,
|
|
19771
19774
|
tokens: tp
|
|
19772
19775
|
};
|
|
19773
19776
|
}
|
|
19774
|
-
function
|
|
19777
|
+
function pk(n, e, t) {
|
|
19775
19778
|
let r = t.length, i = 0, o = [], s = [];
|
|
19776
19779
|
for (; i < r; ) {
|
|
19777
19780
|
let l = n, a = null, c = null, d = 0, u = null, f = -1;
|
|
@@ -19782,19 +19785,19 @@ function fk(n, e, t) {
|
|
|
19782
19785
|
if (f < 0)
|
|
19783
19786
|
i -= d, i < r && (s.push(t[i]), i++);
|
|
19784
19787
|
else {
|
|
19785
|
-
s.length > 0 && (o.push(
|
|
19788
|
+
s.length > 0 && (o.push(js(kd, e, s)), s = []), i -= f, d -= f;
|
|
19786
19789
|
const p = u.t, h = t.slice(i - d, i);
|
|
19787
|
-
o.push(
|
|
19790
|
+
o.push(js(p, e, h));
|
|
19788
19791
|
}
|
|
19789
19792
|
}
|
|
19790
|
-
return s.length > 0 && o.push(
|
|
19793
|
+
return s.length > 0 && o.push(js(kd, e, s)), o;
|
|
19791
19794
|
}
|
|
19792
|
-
function
|
|
19795
|
+
function js(n, e, t) {
|
|
19793
19796
|
const r = t[0].s, i = t[t.length - 1].e, o = e.slice(r, i);
|
|
19794
19797
|
return new n(o, t);
|
|
19795
19798
|
}
|
|
19796
|
-
const
|
|
19797
|
-
}),
|
|
19799
|
+
const hk = typeof console < "u" && console && console.warn || (() => {
|
|
19800
|
+
}), mk = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", re = {
|
|
19798
19801
|
scanner: null,
|
|
19799
19802
|
parser: null,
|
|
19800
19803
|
tokenQueue: [],
|
|
@@ -19802,24 +19805,24 @@ const pk = typeof console < "u" && console && console.warn || (() => {
|
|
|
19802
19805
|
customSchemes: [],
|
|
19803
19806
|
initialized: !1
|
|
19804
19807
|
};
|
|
19805
|
-
function
|
|
19808
|
+
function gk() {
|
|
19806
19809
|
return Pe.groups = {}, re.scanner = null, re.parser = null, re.tokenQueue = [], re.pluginQueue = [], re.customSchemes = [], re.initialized = !1, re;
|
|
19807
19810
|
}
|
|
19808
19811
|
function Cd(n, e = !1) {
|
|
19809
|
-
if (re.initialized &&
|
|
19812
|
+
if (re.initialized && hk(`linkifyjs: already initialized - will not register custom scheme "${n}" ${mk}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))
|
|
19810
19813
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
19811
19814
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
19812
19815
|
2. Cannot start or end with "-"
|
|
19813
19816
|
3. "-" cannot repeat`);
|
|
19814
19817
|
re.customSchemes.push([n, e]);
|
|
19815
19818
|
}
|
|
19816
|
-
function
|
|
19817
|
-
re.scanner =
|
|
19819
|
+
function yk() {
|
|
19820
|
+
re.scanner = ck(re.customSchemes);
|
|
19818
19821
|
for (let n = 0; n < re.tokenQueue.length; n++)
|
|
19819
19822
|
re.tokenQueue[n][1]({
|
|
19820
19823
|
scanner: re.scanner
|
|
19821
19824
|
});
|
|
19822
|
-
re.parser =
|
|
19825
|
+
re.parser = fk(re.scanner.tokens);
|
|
19823
19826
|
for (let n = 0; n < re.pluginQueue.length; n++)
|
|
19824
19827
|
re.pluginQueue[n][1]({
|
|
19825
19828
|
scanner: re.scanner,
|
|
@@ -19828,7 +19831,7 @@ function gk() {
|
|
|
19828
19831
|
return re.initialized = !0, re;
|
|
19829
19832
|
}
|
|
19830
19833
|
function ha(n) {
|
|
19831
|
-
return re.initialized ||
|
|
19834
|
+
return re.initialized || yk(), pk(re.parser.start, n, np(re.scanner.start, n));
|
|
19832
19835
|
}
|
|
19833
19836
|
ha.scan = np;
|
|
19834
19837
|
function ip(n, e = null, t = null) {
|
|
@@ -19844,10 +19847,10 @@ function ip(n, e = null, t = null) {
|
|
|
19844
19847
|
}
|
|
19845
19848
|
return o;
|
|
19846
19849
|
}
|
|
19847
|
-
function
|
|
19850
|
+
function bk(n) {
|
|
19848
19851
|
return n.length === 1 ? n[0].isLink : n.length === 3 && n[1].isLink ? ["()", "[]"].includes(n[0].value + n[2].value) : !1;
|
|
19849
19852
|
}
|
|
19850
|
-
function
|
|
19853
|
+
function vk(n) {
|
|
19851
19854
|
return new le({
|
|
19852
19855
|
key: new he("autolink"),
|
|
19853
19856
|
appendTransaction: (e, t, r) => {
|
|
@@ -19866,14 +19869,14 @@ function bk(n) {
|
|
|
19866
19869
|
if (!h)
|
|
19867
19870
|
return !1;
|
|
19868
19871
|
const g = ha(h).map((y) => y.toObject(n.defaultProtocol));
|
|
19869
|
-
if (!
|
|
19872
|
+
if (!bk(g))
|
|
19870
19873
|
return !1;
|
|
19871
19874
|
g.filter((y) => y.isLink).map((y) => ({
|
|
19872
19875
|
...y,
|
|
19873
19876
|
from: m + y.start + 1,
|
|
19874
19877
|
to: m + y.end + 1
|
|
19875
19878
|
})).filter((y) => r.schema.marks.code ? !r.doc.rangeHasMark(y.from, y.to, r.schema.marks.code) : !0).filter((y) => n.validate(y.value)).filter((y) => n.shouldAutoLink(y.value)).forEach((y) => {
|
|
19876
|
-
|
|
19879
|
+
Yl(y.from, y.to, r.doc).some((v) => v.mark.type === n.type) || s.addMark(y.from, y.to, n.type.create({
|
|
19877
19880
|
href: y.href
|
|
19878
19881
|
}));
|
|
19879
19882
|
});
|
|
@@ -19883,7 +19886,7 @@ function bk(n) {
|
|
|
19883
19886
|
}
|
|
19884
19887
|
});
|
|
19885
19888
|
}
|
|
19886
|
-
function
|
|
19889
|
+
function xk(n) {
|
|
19887
19890
|
return new le({
|
|
19888
19891
|
key: new he("handleClickLink"),
|
|
19889
19892
|
props: {
|
|
@@ -19903,7 +19906,7 @@ function vk(n) {
|
|
|
19903
19906
|
}
|
|
19904
19907
|
});
|
|
19905
19908
|
}
|
|
19906
|
-
function
|
|
19909
|
+
function wk(n) {
|
|
19907
19910
|
return new le({
|
|
19908
19911
|
key: new he("handlePasteLink"),
|
|
19909
19912
|
props: {
|
|
@@ -19923,7 +19926,7 @@ function xk(n) {
|
|
|
19923
19926
|
}
|
|
19924
19927
|
});
|
|
19925
19928
|
}
|
|
19926
|
-
const
|
|
19929
|
+
const kk = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
|
|
19927
19930
|
function ln(n, e) {
|
|
19928
19931
|
const t = [
|
|
19929
19932
|
"http",
|
|
@@ -19940,13 +19943,13 @@ function ln(n, e) {
|
|
|
19940
19943
|
return e && e.forEach((r) => {
|
|
19941
19944
|
const i = typeof r == "string" ? r : r.scheme;
|
|
19942
19945
|
i && t.push(i);
|
|
19943
|
-
}), !n || n.replace(
|
|
19946
|
+
}), !n || n.replace(kk, "").match(new RegExp(
|
|
19944
19947
|
// eslint-disable-next-line no-useless-escape
|
|
19945
19948
|
`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
19946
19949
|
"i"
|
|
19947
19950
|
));
|
|
19948
19951
|
}
|
|
19949
|
-
const
|
|
19952
|
+
const Ck = Xe.create({
|
|
19950
19953
|
name: "link",
|
|
19951
19954
|
priority: 1e3,
|
|
19952
19955
|
keepOnSplit: !1,
|
|
@@ -19961,7 +19964,7 @@ const kk = Xe.create({
|
|
|
19961
19964
|
});
|
|
19962
19965
|
},
|
|
19963
19966
|
onDestroy() {
|
|
19964
|
-
|
|
19967
|
+
gk();
|
|
19965
19968
|
},
|
|
19966
19969
|
inclusive() {
|
|
19967
19970
|
return this.options.autolink;
|
|
@@ -20082,7 +20085,7 @@ const kk = Xe.create({
|
|
|
20082
20085
|
},
|
|
20083
20086
|
addProseMirrorPlugins() {
|
|
20084
20087
|
const n = [], { protocols: e, defaultProtocol: t } = this.options;
|
|
20085
|
-
return this.options.autolink && n.push(
|
|
20088
|
+
return this.options.autolink && n.push(vk({
|
|
20086
20089
|
type: this.type,
|
|
20087
20090
|
defaultProtocol: this.options.defaultProtocol,
|
|
20088
20091
|
validate: (r) => this.options.isAllowedUri(r, {
|
|
@@ -20091,15 +20094,15 @@ const kk = Xe.create({
|
|
|
20091
20094
|
defaultProtocol: t
|
|
20092
20095
|
}),
|
|
20093
20096
|
shouldAutoLink: this.options.shouldAutoLink
|
|
20094
|
-
})), this.options.openOnClick === !0 && n.push(
|
|
20097
|
+
})), this.options.openOnClick === !0 && n.push(xk({
|
|
20095
20098
|
type: this.type
|
|
20096
|
-
})), this.options.linkOnPaste && n.push(
|
|
20099
|
+
})), this.options.linkOnPaste && n.push(wk({
|
|
20097
20100
|
editor: this.editor,
|
|
20098
20101
|
defaultProtocol: this.options.defaultProtocol,
|
|
20099
20102
|
type: this.type
|
|
20100
20103
|
})), n;
|
|
20101
20104
|
}
|
|
20102
|
-
}),
|
|
20105
|
+
}), Sk = { class: "text-steel-900 font-semibold" }, Tk = {
|
|
20103
20106
|
__name: "DocumentNodeView",
|
|
20104
20107
|
props: {
|
|
20105
20108
|
node: Object
|
|
@@ -20118,7 +20121,7 @@ const kk = Xe.create({
|
|
|
20118
20121
|
};
|
|
20119
20122
|
return (i, o) => (E(), X(K(rs), { class: "bg-steel-300 p-2 rounded-md w-fit flex flex-row items-center gap-x-2" }, {
|
|
20120
20123
|
default: P(() => [
|
|
20121
|
-
x("span",
|
|
20124
|
+
x("span", Sk, kn(K(t).textContent), 1),
|
|
20122
20125
|
I(K(Op), {
|
|
20123
20126
|
class: "text-steel-900 font-semibold cursor-pointer",
|
|
20124
20127
|
onClick: o[0] || (o[0] = (s) => r(K(t).attrs.sasToken))
|
|
@@ -20127,7 +20130,7 @@ const kk = Xe.create({
|
|
|
20127
20130
|
_: 1
|
|
20128
20131
|
}));
|
|
20129
20132
|
}
|
|
20130
|
-
},
|
|
20133
|
+
}, Ak = ie.create({
|
|
20131
20134
|
name: "documentNode",
|
|
20132
20135
|
group: "block",
|
|
20133
20136
|
content: "inline*",
|
|
@@ -20160,13 +20163,13 @@ const kk = Xe.create({
|
|
|
20160
20163
|
};
|
|
20161
20164
|
},
|
|
20162
20165
|
addNodeView() {
|
|
20163
|
-
return is(
|
|
20166
|
+
return is(Tk);
|
|
20164
20167
|
}
|
|
20165
|
-
}),
|
|
20168
|
+
}), Mk = new he("templateLock"), Ek = /* @__PURE__ */ new Set(["UneditableTitle", "customColumnBlock"]);
|
|
20166
20169
|
function Sd(n) {
|
|
20167
20170
|
const e = [];
|
|
20168
20171
|
return n.forEach((t, r, i) => {
|
|
20169
|
-
if (
|
|
20172
|
+
if (Ek.has(t.type.name)) {
|
|
20170
20173
|
const o = { type: t.type.name };
|
|
20171
20174
|
if (t.type.name === "UneditableTitle" && (o.text = t.textContent), t.type.name === "customColumnBlock") {
|
|
20172
20175
|
o.childCount = t.childCount;
|
|
@@ -20181,7 +20184,7 @@ function Sd(n) {
|
|
|
20181
20184
|
}
|
|
20182
20185
|
}), e;
|
|
20183
20186
|
}
|
|
20184
|
-
function
|
|
20187
|
+
function Ok(n, e) {
|
|
20185
20188
|
if (n.length !== e.length)
|
|
20186
20189
|
return !1;
|
|
20187
20190
|
for (let t = 0; t < n.length; t++) {
|
|
@@ -20197,7 +20200,7 @@ function Ek(n, e) {
|
|
|
20197
20200
|
}
|
|
20198
20201
|
return !0;
|
|
20199
20202
|
}
|
|
20200
|
-
const
|
|
20203
|
+
const Nk = fe.create({
|
|
20201
20204
|
name: "templateLock",
|
|
20202
20205
|
addOptions() {
|
|
20203
20206
|
return { enabled: !1 };
|
|
@@ -20205,17 +20208,17 @@ const Ok = fe.create({
|
|
|
20205
20208
|
addProseMirrorPlugins() {
|
|
20206
20209
|
return this.options.enabled ? [
|
|
20207
20210
|
new le({
|
|
20208
|
-
key:
|
|
20211
|
+
key: Mk,
|
|
20209
20212
|
filterTransaction: (n, e) => {
|
|
20210
20213
|
if (!n.docChanged || n.getMeta("initialContent"))
|
|
20211
20214
|
return !0;
|
|
20212
20215
|
const t = Sd(e.doc), r = Sd(n.doc);
|
|
20213
|
-
return
|
|
20216
|
+
return Ok(t, r);
|
|
20214
20217
|
}
|
|
20215
20218
|
})
|
|
20216
20219
|
] : [];
|
|
20217
20220
|
}
|
|
20218
|
-
}),
|
|
20221
|
+
}), Dk = [
|
|
20219
20222
|
b1.configure({
|
|
20220
20223
|
heading: {
|
|
20221
20224
|
levels: [1, 2],
|
|
@@ -20281,12 +20284,12 @@ const Ok = fe.create({
|
|
|
20281
20284
|
Wx.configure({ types: ["heading", "paragraph"] }),
|
|
20282
20285
|
Ux,
|
|
20283
20286
|
hw,
|
|
20284
|
-
|
|
20285
|
-
|
|
20287
|
+
Qw,
|
|
20288
|
+
Zw.configure({
|
|
20286
20289
|
placeholder: "Enter textarea text here..."
|
|
20287
20290
|
}),
|
|
20288
|
-
|
|
20289
|
-
|
|
20291
|
+
ek,
|
|
20292
|
+
Ck.configure({
|
|
20290
20293
|
openOnClick: !0,
|
|
20291
20294
|
autolink: !0,
|
|
20292
20295
|
linkOnPaste: !0,
|
|
@@ -20297,11 +20300,11 @@ const Ok = fe.create({
|
|
|
20297
20300
|
rel: "noopener noreferrer nofollow"
|
|
20298
20301
|
}
|
|
20299
20302
|
}),
|
|
20300
|
-
|
|
20303
|
+
Ak
|
|
20301
20304
|
], op = (n, e, { templateLocked: t = !1 } = {}) => {
|
|
20302
20305
|
const r = [
|
|
20303
|
-
...
|
|
20304
|
-
|
|
20306
|
+
...Dk,
|
|
20307
|
+
Nk.configure({ enabled: t })
|
|
20305
20308
|
];
|
|
20306
20309
|
return new mv({
|
|
20307
20310
|
extensions: r,
|
|
@@ -20310,7 +20313,7 @@ const Ok = fe.create({
|
|
|
20310
20313
|
});
|
|
20311
20314
|
}, zi = (n, e) => {
|
|
20312
20315
|
n.setOptions({ editable: e }), e && n.commands.focus("start"), n.view.update(n.view.props);
|
|
20313
|
-
},
|
|
20316
|
+
}, Rk = { class: "p-2.5 flex flex-col items-center justify-center h-[50px] text-center leading-tight gap-y-[5px]" }, Ik = { class: "w-[24px] h-[24px] flex items-center justify-center" }, Le = {
|
|
20314
20317
|
__name: "ControlItem",
|
|
20315
20318
|
props: {
|
|
20316
20319
|
controlName: {
|
|
@@ -20331,8 +20334,8 @@ const Ok = fe.create({
|
|
|
20331
20334
|
return (t, r) => (E(), V("div", {
|
|
20332
20335
|
class: W(["rounded-[10px] transition duration-300 ease-in-out", e.disabled ? "opacity-30 cursor-default" : "cursor-pointer"])
|
|
20333
20336
|
}, [
|
|
20334
|
-
x("div",
|
|
20335
|
-
x("div",
|
|
20337
|
+
x("div", Rk, [
|
|
20338
|
+
x("div", Ik, [
|
|
20336
20339
|
Sp(t.$slots, "icon")
|
|
20337
20340
|
]),
|
|
20338
20341
|
x("span", {
|
|
@@ -20341,27 +20344,27 @@ const Ok = fe.create({
|
|
|
20341
20344
|
])
|
|
20342
20345
|
], 2));
|
|
20343
20346
|
}
|
|
20344
|
-
},
|
|
20345
|
-
|
|
20346
|
-
],
|
|
20347
|
+
}, Lk = ["src"], Pk = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), Bk = [
|
|
20348
|
+
Pk
|
|
20349
|
+
], zk = {
|
|
20347
20350
|
key: 1,
|
|
20348
20351
|
class: "flex flex-col gap-[10px] items-center justify-center w-full"
|
|
20349
|
-
},
|
|
20352
|
+
}, $k = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[28px] text-black-150" }, null, -1), Hk = { class: "flex flex-col gap-[5px] items-center text-center w-full" }, Fk = {
|
|
20350
20353
|
key: 0,
|
|
20351
20354
|
class: "text-[14px] leading-[1.2]"
|
|
20352
|
-
},
|
|
20353
|
-
|
|
20354
|
-
|
|
20355
|
-
],
|
|
20355
|
+
}, Vk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Tap to choose", -1), jk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " from photos or camera", -1), _k = [
|
|
20356
|
+
Vk,
|
|
20357
|
+
jk
|
|
20358
|
+
], Wk = {
|
|
20356
20359
|
key: 1,
|
|
20357
20360
|
class: "text-[14px] leading-[1.2]"
|
|
20358
|
-
},
|
|
20359
|
-
|
|
20360
|
-
|
|
20361
|
-
],
|
|
20361
|
+
}, Uk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file", -1), qk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop", -1), Kk = [
|
|
20362
|
+
Uk,
|
|
20363
|
+
qk
|
|
20364
|
+
], Jk = { class: "text-[12px] leading-[1.2] text-black-700" }, Gk = {
|
|
20362
20365
|
key: 2,
|
|
20363
20366
|
class: "absolute -bottom-5 left-0 text-[11px] text-error-950"
|
|
20364
|
-
},
|
|
20367
|
+
}, Yk = ["accept"], Xk = {
|
|
20365
20368
|
__name: "FileUploadZone",
|
|
20366
20369
|
props: {
|
|
20367
20370
|
acceptedTypes: {
|
|
@@ -20411,19 +20414,19 @@ const Ok = fe.create({
|
|
|
20411
20414
|
src: n.previewUrl,
|
|
20412
20415
|
alt: "Preview",
|
|
20413
20416
|
class: "w-full h-full object-cover rounded-[8px]"
|
|
20414
|
-
}, null, 8,
|
|
20417
|
+
}, null, 8, Lk),
|
|
20415
20418
|
x("button", {
|
|
20416
20419
|
class: "absolute top-[10px] right-[10px] w-[24px] h-[24px] flex items-center justify-center bg-[#ffffff] rounded shadow text-black-700 hover:text-error-950 transition-colors",
|
|
20417
20420
|
onClick: m[0] || (m[0] = xr((g) => h.$emit("fileRemoved"), ["stop"]))
|
|
20418
|
-
},
|
|
20419
|
-
], 64)) : (E(), V("div",
|
|
20420
|
-
|
|
20421
|
-
x("div",
|
|
20422
|
-
a.value ? (E(), V("p",
|
|
20423
|
-
x("p",
|
|
20421
|
+
}, Bk)
|
|
20422
|
+
], 64)) : (E(), V("div", zk, [
|
|
20423
|
+
$k,
|
|
20424
|
+
x("div", Hk, [
|
|
20425
|
+
a.value ? (E(), V("p", Fk, _k)) : (E(), V("p", Wk, Kk)),
|
|
20426
|
+
x("p", Jk, " PNG or JPG up to " + kn(l.value) + "MB ", 1)
|
|
20424
20427
|
])
|
|
20425
20428
|
])),
|
|
20426
|
-
s.value ? (E(), V("p",
|
|
20429
|
+
s.value ? (E(), V("p", Gk, kn(s.value), 1)) : _("", !0),
|
|
20427
20430
|
x("input", {
|
|
20428
20431
|
ref_key: "fileInput",
|
|
20429
20432
|
ref: i,
|
|
@@ -20431,12 +20434,12 @@ const Ok = fe.create({
|
|
|
20431
20434
|
accept: c.value,
|
|
20432
20435
|
class: "hidden",
|
|
20433
20436
|
onChange: f
|
|
20434
|
-
}, null, 40,
|
|
20437
|
+
}, null, 40, Yk)
|
|
20435
20438
|
], 34));
|
|
20436
20439
|
}
|
|
20437
|
-
},
|
|
20440
|
+
}, Qk = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
|
|
20438
20441
|
/* @__PURE__ */ x("p", { class: "flex-1 text-[18px] font-bold text-black-950 leading-normal" }, "Image upload")
|
|
20439
|
-
], -1),
|
|
20442
|
+
], -1), Zk = { class: "bg-[rgba(7,21,30,0.04)] px-[20px] py-[15px]" }, eC = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, tC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Image to Editor", -1), nC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, sp = {
|
|
20440
20443
|
__name: "AddImageModal",
|
|
20441
20444
|
props: {
|
|
20442
20445
|
mode: {
|
|
@@ -20496,10 +20499,10 @@ const Ok = fe.create({
|
|
|
20496
20499
|
class: "w-[410px] max-w-[93vw] !p-0 !rounded-[20px] !top-[calc(50%+83px)] !shadow-[0px_6px_15px_0px_rgba(0,0,0,0.1),0px_3px_8px_0px_rgba(0,0,0,0.1)]"
|
|
20497
20500
|
}, {
|
|
20498
20501
|
header: P(() => [
|
|
20499
|
-
|
|
20502
|
+
Qk
|
|
20500
20503
|
]),
|
|
20501
20504
|
footer: P(() => [
|
|
20502
|
-
x("div",
|
|
20505
|
+
x("div", eC, [
|
|
20503
20506
|
I(K(Od), {
|
|
20504
20507
|
onClick: h[0] || (h[0] = (m) => p.$emit("close"))
|
|
20505
20508
|
}, {
|
|
@@ -20520,8 +20523,8 @@ const Ok = fe.create({
|
|
|
20520
20523
|
])
|
|
20521
20524
|
]),
|
|
20522
20525
|
default: P(() => [
|
|
20523
|
-
x("div",
|
|
20524
|
-
I(
|
|
20526
|
+
x("div", Zk, [
|
|
20527
|
+
I(Xk, {
|
|
20525
20528
|
acceptedTypes: n.acceptedTypes,
|
|
20526
20529
|
maxFileSize: n.maxFileSize,
|
|
20527
20530
|
previewUrl: o.value,
|
|
@@ -20537,14 +20540,14 @@ const Ok = fe.create({
|
|
|
20537
20540
|
class: "w-[90vw] md:w-[600px] h-fit !p-0"
|
|
20538
20541
|
}, {
|
|
20539
20542
|
header: P(({ handleClose: m }) => [
|
|
20540
|
-
|
|
20543
|
+
tC,
|
|
20541
20544
|
I(Dd, {
|
|
20542
20545
|
class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
|
|
20543
20546
|
onClick: h[1] || (h[1] = (g) => p.$emit("close"))
|
|
20544
20547
|
})
|
|
20545
20548
|
]),
|
|
20546
20549
|
default: P(() => [
|
|
20547
|
-
x("div",
|
|
20550
|
+
x("div", nC, [
|
|
20548
20551
|
I(K(Rd), {
|
|
20549
20552
|
tableData: c.value,
|
|
20550
20553
|
tableCols: d,
|
|
@@ -20556,13 +20559,13 @@ const Ok = fe.create({
|
|
|
20556
20559
|
_: 1
|
|
20557
20560
|
}));
|
|
20558
20561
|
}
|
|
20559
|
-
},
|
|
20562
|
+
}, rC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Link to Editor", -1), iC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, oC = {
|
|
20560
20563
|
key: 0,
|
|
20561
20564
|
class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
|
|
20562
|
-
},
|
|
20565
|
+
}, sC = {
|
|
20563
20566
|
key: 1,
|
|
20564
20567
|
class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
|
|
20565
|
-
},
|
|
20568
|
+
}, lC = {
|
|
20566
20569
|
key: 0,
|
|
20567
20570
|
class: "border-t-[1px] border-steel-500 flex justify-end gap-x-[30px] pt-[25px] p-6"
|
|
20568
20571
|
}, lp = {
|
|
@@ -20599,14 +20602,14 @@ const Ok = fe.create({
|
|
|
20599
20602
|
class: "w-[50%] h-fit !p-0"
|
|
20600
20603
|
}, {
|
|
20601
20604
|
header: P(({ handleClose: f }) => [
|
|
20602
|
-
|
|
20605
|
+
rC,
|
|
20603
20606
|
I(Dd, {
|
|
20604
20607
|
class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
|
|
20605
20608
|
onClick: u[0] || (u[0] = (p) => d.$emit("close"))
|
|
20606
20609
|
})
|
|
20607
20610
|
]),
|
|
20608
20611
|
footer: P(() => [
|
|
20609
|
-
r.value ? _("", !0) : (E(), V("div",
|
|
20612
|
+
r.value ? _("", !0) : (E(), V("div", lC, [
|
|
20610
20613
|
I(K(Od), {
|
|
20611
20614
|
onClick: u[4] || (u[4] = (f) => d.$emit("close"))
|
|
20612
20615
|
}, {
|
|
@@ -20626,7 +20629,7 @@ const Ok = fe.create({
|
|
|
20626
20629
|
]))
|
|
20627
20630
|
]),
|
|
20628
20631
|
default: P(() => [
|
|
20629
|
-
x("div",
|
|
20632
|
+
x("div", iC, [
|
|
20630
20633
|
I(K(Mp), {
|
|
20631
20634
|
useLabels: "",
|
|
20632
20635
|
leftLabel: "Web URL",
|
|
@@ -20636,7 +20639,7 @@ const Ok = fe.create({
|
|
|
20636
20639
|
"onUpdate:modelValue": u[1] || (u[1] = (f) => r.value = f)
|
|
20637
20640
|
}, null, 8, ["modelValue"])
|
|
20638
20641
|
]),
|
|
20639
|
-
r.value ? _("", !0) : (E(), V("div",
|
|
20642
|
+
r.value ? _("", !0) : (E(), V("div", oC, [
|
|
20640
20643
|
I(K(Ta), {
|
|
20641
20644
|
label: "Display Text",
|
|
20642
20645
|
placeholder: "Enter display text for link...",
|
|
@@ -20654,7 +20657,7 @@ const Ok = fe.create({
|
|
|
20654
20657
|
required: ""
|
|
20655
20658
|
}, null, 8, ["modelValue"])
|
|
20656
20659
|
])),
|
|
20657
|
-
r.value ? (E(), V("div",
|
|
20660
|
+
r.value ? (E(), V("div", sC, [
|
|
20658
20661
|
I(K(Rd), {
|
|
20659
20662
|
tableData: n.documents,
|
|
20660
20663
|
tableCols: s,
|
|
@@ -20666,18 +20669,18 @@ const Ok = fe.create({
|
|
|
20666
20669
|
_: 1
|
|
20667
20670
|
}));
|
|
20668
20671
|
}
|
|
20669
|
-
},
|
|
20672
|
+
}, aC = { key: 0 }, cC = {
|
|
20670
20673
|
key: 0,
|
|
20671
20674
|
class: "flex flex-col"
|
|
20672
|
-
},
|
|
20675
|
+
}, dC = /* @__PURE__ */ x("div", { class: "w-full bg-proclus-950 px-[15px] py-[8px] leading-tight" }, [
|
|
20673
20676
|
/* @__PURE__ */ x("h2", { class: "text-[14px] font-semibold text-white" }, "Edit options")
|
|
20674
|
-
], -1),
|
|
20677
|
+
], -1), uC = { class: "w-full flex flex-wrap justify-between p-[15px] gap-y-[15px]" }, fC = { class: "w-full border-t-[1px] border-black-600 flex flex-row items-center justify-between px-[15px] py-[15px]" }, pC = {
|
|
20675
20678
|
key: 0,
|
|
20676
20679
|
class: "flex flex-col justify-start items-start h-full"
|
|
20677
|
-
},
|
|
20680
|
+
}, hC = /* @__PURE__ */ x("div", { class: "w-full bg-black-950 px-4 py-6 leading-tight" }, [
|
|
20678
20681
|
/* @__PURE__ */ x("h2", { class: "text-base font-semibold text-white" }, "Edit options"),
|
|
20679
20682
|
/* @__PURE__ */ x("p", { class: "text-steel-600" }, "Use the options below to add elements to the editor.")
|
|
20680
|
-
], -1),
|
|
20683
|
+
], -1), mC = { class: "w-full px-4" }, gC = { class: "w-full grid grid-cols-2 gap-5 gap-y-3 px-4 mt-4" }, yC = { class: "w-full border-t-[1px] border-steel-500 h-12 mt-auto flex flex-row items-center justify-end py-8 px-6 gap-6" }, bC = {
|
|
20681
20684
|
__name: "Sidebar",
|
|
20682
20685
|
props: {
|
|
20683
20686
|
editor: {
|
|
@@ -20798,13 +20801,13 @@ const Ok = fe.create({
|
|
|
20798
20801
|
}, g = () => {
|
|
20799
20802
|
r("save");
|
|
20800
20803
|
};
|
|
20801
|
-
return (y, v) => n.editor ? (E(), V("div",
|
|
20804
|
+
return (y, v) => n.editor ? (E(), V("div", aC, [
|
|
20802
20805
|
x("div", {
|
|
20803
20806
|
class: W(["sidebar-mobile lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#ffffff] shadow-xl transition-transform ease-in-out duration-300", n.isOpen ? "translate-y-0" : "translate-y-full"])
|
|
20804
20807
|
}, [
|
|
20805
|
-
n.isOpen ? (E(), V("div",
|
|
20806
|
-
|
|
20807
|
-
x("div",
|
|
20808
|
+
n.isOpen ? (E(), V("div", cC, [
|
|
20809
|
+
dC,
|
|
20810
|
+
x("div", uC, [
|
|
20808
20811
|
I(Le, {
|
|
20809
20812
|
controlName: "Image",
|
|
20810
20813
|
active: n.editor.isActive("image"),
|
|
@@ -20900,7 +20903,7 @@ const Ok = fe.create({
|
|
|
20900
20903
|
_: 1
|
|
20901
20904
|
}, 8, ["active", "disabled"])
|
|
20902
20905
|
]),
|
|
20903
|
-
x("div",
|
|
20906
|
+
x("div", fC, [
|
|
20904
20907
|
I(Vr, { onClick: m }, {
|
|
20905
20908
|
default: P(() => [
|
|
20906
20909
|
Be("Cancel")
|
|
@@ -20920,9 +20923,9 @@ const Ok = fe.create({
|
|
|
20920
20923
|
key: 0,
|
|
20921
20924
|
class: W(["hidden lg:block h-full absolute fixed right-0 top-0 bg-[#ffffff] shadow-xl z-50 transition transition-width ease-in-out duration-300", [n.isOpen ? "w-72" : "w-0", n.customClasses]])
|
|
20922
20925
|
}, [
|
|
20923
|
-
n.isOpen ? (E(), V("div",
|
|
20924
|
-
|
|
20925
|
-
x("div",
|
|
20926
|
+
n.isOpen ? (E(), V("div", pC, [
|
|
20927
|
+
hC,
|
|
20928
|
+
x("div", mC, [
|
|
20926
20929
|
I(K(Md), {
|
|
20927
20930
|
modelValue: i.value,
|
|
20928
20931
|
"onUpdate:modelValue": v[6] || (v[6] = (w) => i.value = w),
|
|
@@ -20935,7 +20938,7 @@ const Ok = fe.create({
|
|
|
20935
20938
|
_: 1
|
|
20936
20939
|
}, 8, ["modelValue"])
|
|
20937
20940
|
]),
|
|
20938
|
-
x("div",
|
|
20941
|
+
x("div", gC, [
|
|
20939
20942
|
new String("image").includes(i.value.toLowerCase()) ? (E(), X(Le, {
|
|
20940
20943
|
key: 0,
|
|
20941
20944
|
controlName: "Image",
|
|
@@ -21031,7 +21034,7 @@ const Ok = fe.create({
|
|
|
21031
21034
|
_: 1
|
|
21032
21035
|
}, 8, ["active", "disabled"])) : _("", !0)
|
|
21033
21036
|
]),
|
|
21034
|
-
x("div",
|
|
21037
|
+
x("div", yC, [
|
|
21035
21038
|
I(Vr, { onClick: m }, {
|
|
21036
21039
|
default: P(() => [
|
|
21037
21040
|
Be("Cancel")
|
|
@@ -21067,7 +21070,7 @@ const Ok = fe.create({
|
|
|
21067
21070
|
}, null, 8, ["uploadImage"])) : _("", !0)
|
|
21068
21071
|
])) : _("", !0);
|
|
21069
21072
|
}
|
|
21070
|
-
},
|
|
21073
|
+
}, vC = {
|
|
21071
21074
|
name: "InlineMenu",
|
|
21072
21075
|
data() {
|
|
21073
21076
|
return {
|
|
@@ -21139,33 +21142,33 @@ const Ok = fe.create({
|
|
|
21139
21142
|
this.editor.chain().focus().setFontSize({ fontSize: this.fontSize }).run();
|
|
21140
21143
|
}
|
|
21141
21144
|
}
|
|
21142
|
-
},
|
|
21145
|
+
}, xC = { class: "bg-[#ffffff] flex flex-row rounded-md p-1 border-[1px] border-steel-500 max-w-[450px]" }, wC = { class: "flex flex-row gap-x-2" }, kC = ["onClick"], CC = ["onClick"], SC = { class: "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center" }, TC = {
|
|
21143
21146
|
key: 0,
|
|
21144
21147
|
class: "absolute top-9 z-10 p-1 rounded bg-steel-200 flex flex-row flex-wrap gap-x-1 max-w-[188px] border-[1px] border-steel-500"
|
|
21145
|
-
},
|
|
21146
|
-
|
|
21147
|
-
],
|
|
21148
|
-
|
|
21149
|
-
],
|
|
21150
|
-
|
|
21151
|
-
],
|
|
21152
|
-
|
|
21153
|
-
],
|
|
21154
|
-
|
|
21155
|
-
],
|
|
21156
|
-
|
|
21157
|
-
],
|
|
21158
|
-
|
|
21159
|
-
],
|
|
21148
|
+
}, AC = ["onClick"], MC = /* @__PURE__ */ x("b", null, "B", -1), EC = [
|
|
21149
|
+
MC
|
|
21150
|
+
], OC = /* @__PURE__ */ x("i", null, "I", -1), NC = [
|
|
21151
|
+
OC
|
|
21152
|
+
], DC = /* @__PURE__ */ x("u", null, "U", -1), RC = [
|
|
21153
|
+
DC
|
|
21154
|
+
], IC = /* @__PURE__ */ x("del", null, "ab", -1), LC = [
|
|
21155
|
+
IC
|
|
21156
|
+
], PC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-left" }, null, -1), BC = [
|
|
21157
|
+
PC
|
|
21158
|
+
], zC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-center" }, null, -1), $C = [
|
|
21159
|
+
zC
|
|
21160
|
+
], HC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-right" }, null, -1), FC = [
|
|
21161
|
+
HC
|
|
21162
|
+
], VC = {
|
|
21160
21163
|
key: 0,
|
|
21161
21164
|
class: "flex flex-row gap-x-2 border-s-[1px] border-s-steel-950 pl-2 ml-2"
|
|
21162
21165
|
};
|
|
21163
|
-
function
|
|
21166
|
+
function jC(n, e, t, r, i, o) {
|
|
21164
21167
|
const s = Tr("ChevronDownIcon"), l = Tr("DropdownMenu"), a = Tr("bubble-menu");
|
|
21165
21168
|
return E(), X(a, { editor: t.editor }, {
|
|
21166
21169
|
default: P(() => [
|
|
21167
|
-
x("div",
|
|
21168
|
-
x("div",
|
|
21170
|
+
x("div", xC, [
|
|
21171
|
+
x("div", wC, [
|
|
21169
21172
|
I(l, {
|
|
21170
21173
|
data: i.fontSizeSelection,
|
|
21171
21174
|
forceWidth: "60px",
|
|
@@ -21179,25 +21182,25 @@ function VC(n, e, t, r, i, o) {
|
|
|
21179
21182
|
}, [
|
|
21180
21183
|
x("p", null, kn(o.findFontSize), 1),
|
|
21181
21184
|
I(s, { class: "w-2 h-2 ml-1" })
|
|
21182
|
-
], 8,
|
|
21185
|
+
], 8, kC)
|
|
21183
21186
|
]),
|
|
21184
21187
|
default: P(({ itemList: c, selectItem: d }) => [
|
|
21185
21188
|
(E(!0), V(Cn, null, Fr(c, (u) => (E(), V("div", {
|
|
21186
21189
|
key: u.id,
|
|
21187
21190
|
onClick: (f) => d(u.id),
|
|
21188
21191
|
class: "bg-[#ffffff] p-0.5 items-center flex justify-center cursor-pointer hover:bg-steel-500"
|
|
21189
|
-
}, kn(u.val), 9,
|
|
21192
|
+
}, kn(u.val), 9, CC))), 128))
|
|
21190
21193
|
]),
|
|
21191
21194
|
_: 1
|
|
21192
21195
|
}, 8, ["data", "modelValue"]),
|
|
21193
|
-
x("button",
|
|
21196
|
+
x("button", SC, [
|
|
21194
21197
|
x("div", {
|
|
21195
21198
|
class: "size-4 rounded",
|
|
21196
21199
|
style: un("background-color:" + o.findFontColor),
|
|
21197
21200
|
onClick: e[1] || (e[1] = (...c) => o.toggleColorPicker && o.toggleColorPicker(...c))
|
|
21198
21201
|
}, null, 4)
|
|
21199
21202
|
]),
|
|
21200
|
-
i.colorPicker ? (E(), V("div",
|
|
21203
|
+
i.colorPicker ? (E(), V("div", TC, [
|
|
21201
21204
|
(E(!0), V(Cn, null, Fr(i.colors, (c) => (E(), V("div", {
|
|
21202
21205
|
class: "rounded border-[1px] border-steel-500 mb-1 cursor-pointer",
|
|
21203
21206
|
key: c.id,
|
|
@@ -21207,38 +21210,38 @@ function VC(n, e, t, r, i, o) {
|
|
|
21207
21210
|
class: "size-4 rounded m-1",
|
|
21208
21211
|
style: un("background-color:" + c.color)
|
|
21209
21212
|
}, null, 4)
|
|
21210
|
-
], 8,
|
|
21213
|
+
], 8, AC))), 128))
|
|
21211
21214
|
])) : _("", !0),
|
|
21212
21215
|
x("button", {
|
|
21213
21216
|
onClick: e[2] || (e[2] = (c) => t.editor.chain().focus().toggleBold().run()),
|
|
21214
21217
|
class: W([t.editor.isActive("bold") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21215
|
-
},
|
|
21218
|
+
}, EC, 2),
|
|
21216
21219
|
x("button", {
|
|
21217
21220
|
onClick: e[3] || (e[3] = (c) => t.editor.chain().focus().toggleItalic().run()),
|
|
21218
21221
|
class: W([t.editor.isActive("italic") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21219
|
-
},
|
|
21222
|
+
}, NC, 2),
|
|
21220
21223
|
x("button", {
|
|
21221
21224
|
onClick: e[4] || (e[4] = (c) => t.editor.chain().focus().toggleUnderline().run()),
|
|
21222
21225
|
class: W([t.editor.isActive("underline") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21223
|
-
},
|
|
21226
|
+
}, RC, 2),
|
|
21224
21227
|
x("button", {
|
|
21225
21228
|
onClick: e[5] || (e[5] = (c) => t.editor.chain().focus().toggleStrike().run()),
|
|
21226
21229
|
class: W([t.editor.isActive("strike") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21227
|
-
},
|
|
21230
|
+
}, LC, 2),
|
|
21228
21231
|
x("button", {
|
|
21229
21232
|
onClick: e[6] || (e[6] = (c) => t.editor.chain().focus().setTextAlign("left").run()),
|
|
21230
21233
|
class: W([t.editor.isActive({ textAlign: "left" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21231
|
-
},
|
|
21234
|
+
}, BC, 2),
|
|
21232
21235
|
x("button", {
|
|
21233
21236
|
onClick: e[7] || (e[7] = (c) => t.editor.chain().focus().setTextAlign("center").run()),
|
|
21234
21237
|
class: W([t.editor.isActive({ textAlign: "center" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21235
|
-
},
|
|
21238
|
+
}, $C, 2),
|
|
21236
21239
|
x("button", {
|
|
21237
21240
|
onClick: e[8] || (e[8] = (c) => t.editor.chain().focus().setTextAlign("right").run()),
|
|
21238
21241
|
class: W([t.editor.isActive({ textAlign: "right" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21239
|
-
},
|
|
21242
|
+
}, FC, 2)
|
|
21240
21243
|
]),
|
|
21241
|
-
o.listActive ? (E(), V("div",
|
|
21244
|
+
o.listActive ? (E(), V("div", VC, [
|
|
21242
21245
|
t.editor.can().sinkListItem("listItem") ? (E(), V("button", {
|
|
21243
21246
|
key: 0,
|
|
21244
21247
|
onClick: e[9] || (e[9] = (c) => t.editor.chain().focus().sinkListItem("listItem").run()),
|
|
@@ -21255,10 +21258,10 @@ function VC(n, e, t, r, i, o) {
|
|
|
21255
21258
|
_: 1
|
|
21256
21259
|
}, 8, ["editor"]);
|
|
21257
21260
|
}
|
|
21258
|
-
const
|
|
21261
|
+
const _C = /* @__PURE__ */ El(vC, [["render", jC]]), WC = {
|
|
21259
21262
|
key: 0,
|
|
21260
21263
|
class: "flex flex-row justify-end mx-8 mb-2"
|
|
21261
|
-
},
|
|
21264
|
+
}, AS = {
|
|
21262
21265
|
__name: "Tiptap",
|
|
21263
21266
|
props: {
|
|
21264
21267
|
modelValue: {
|
|
@@ -21323,7 +21326,7 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21323
21326
|
const h = p && !r.readOnly;
|
|
21324
21327
|
s.value = h, zi(l, h), h ? (c(), o("sidebarOpened")) : o("sidebarClosed");
|
|
21325
21328
|
} }), (p, h) => (E(), V("div", null, [
|
|
21326
|
-
!r.readOnly && !r.hideEditButton ? (E(), V("div",
|
|
21329
|
+
!r.readOnly && !r.hideEditButton ? (E(), V("div", WC, [
|
|
21327
21330
|
s.value ? _("", !0) : (E(), X(K(jr), {
|
|
21328
21331
|
key: 0,
|
|
21329
21332
|
class: "ml-8 mt-2",
|
|
@@ -21341,7 +21344,7 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21341
21344
|
class: "mx-8 bg-surface-raised text-black-950 dark:text-content rounded-md p-2 box-content transition transition-width ease-in-out duration-300",
|
|
21342
21345
|
style: un("min-height:" + n.editorHeight + "; max-height:")
|
|
21343
21346
|
}, null, 8, ["editor", "style"])) : _("", !0),
|
|
21344
|
-
K(l) ? (E(), X(
|
|
21347
|
+
K(l) ? (E(), X(bC, {
|
|
21345
21348
|
key: 2,
|
|
21346
21349
|
editor: K(l),
|
|
21347
21350
|
isOpen: K(l) && s.value,
|
|
@@ -21352,24 +21355,24 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21352
21355
|
onCancel: d,
|
|
21353
21356
|
onSave: u
|
|
21354
21357
|
}, null, 8, ["editor", "isOpen", "customClasses", "templateLocked", "documents", "uploadImage"])) : _("", !0),
|
|
21355
|
-
K(l) && s.value ? (E(), X(
|
|
21358
|
+
K(l) && s.value ? (E(), X(_C, {
|
|
21356
21359
|
key: 3,
|
|
21357
21360
|
editor: K(l),
|
|
21358
21361
|
class: "max-w-[450px]"
|
|
21359
21362
|
}, null, 8, ["editor"])) : _("", !0)
|
|
21360
21363
|
]));
|
|
21361
21364
|
}
|
|
21362
|
-
},
|
|
21363
|
-
|
|
21364
|
-
],
|
|
21365
|
-
|
|
21366
|
-
],
|
|
21367
|
-
|
|
21368
|
-
],
|
|
21369
|
-
|
|
21370
|
-
],
|
|
21371
|
-
|
|
21372
|
-
],
|
|
21365
|
+
}, UC = { class: "flex flex-col w-full" }, qC = /* @__PURE__ */ x("i", { class: "fa-solid fa-bold text-sm" }, null, -1), KC = [
|
|
21366
|
+
qC
|
|
21367
|
+
], JC = /* @__PURE__ */ x("i", { class: "fa-solid fa-italic text-sm" }, null, -1), GC = [
|
|
21368
|
+
JC
|
|
21369
|
+
], YC = /* @__PURE__ */ x("i", { class: "fa-solid fa-globe-pointer text-sm" }, null, -1), XC = [
|
|
21370
|
+
YC
|
|
21371
|
+
], QC = /* @__PURE__ */ x("i", { class: "fa-solid fa-list text-sm" }, null, -1), ZC = [
|
|
21372
|
+
QC
|
|
21373
|
+
], eS = /* @__PURE__ */ x("i", { class: "fa-solid fa-image text-sm" }, null, -1), tS = [
|
|
21374
|
+
eS
|
|
21375
|
+
], MS = {
|
|
21373
21376
|
__name: "TiptapTextArea",
|
|
21374
21377
|
props: {
|
|
21375
21378
|
modelValue: {
|
|
@@ -21480,30 +21483,30 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21480
21483
|
o.value = !0;
|
|
21481
21484
|
};
|
|
21482
21485
|
return (y, v) => (E(), V(Cn, null, [
|
|
21483
|
-
x("div",
|
|
21486
|
+
x("div", UC, [
|
|
21484
21487
|
x("div", {
|
|
21485
21488
|
class: W(["flex flex-row items-center w-full border-t-[1px] border-l border-r border-steel-500 rounded-tl-2xl rounded-tr-2xl bg-steel-100 px-5 gap-x-1", { "opacity-50 pointer-events-none": n.readOnly }])
|
|
21486
21489
|
}, [
|
|
21487
21490
|
x("button", {
|
|
21488
21491
|
class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bold") ? "bg-app-950" : ""]),
|
|
21489
21492
|
onClick: a
|
|
21490
|
-
},
|
|
21493
|
+
}, KC, 2),
|
|
21491
21494
|
x("button", {
|
|
21492
21495
|
class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("italic") ? "bg-app-950" : ""]),
|
|
21493
21496
|
onClick: c
|
|
21494
|
-
},
|
|
21497
|
+
}, GC, 2),
|
|
21495
21498
|
x("button", {
|
|
21496
21499
|
class: "h-8 w-8 hover:bg-steel-300",
|
|
21497
21500
|
onClick: h
|
|
21498
|
-
},
|
|
21501
|
+
}, XC),
|
|
21499
21502
|
x("button", {
|
|
21500
21503
|
class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bulletList") ? "bg-app-950" : ""]),
|
|
21501
21504
|
onClick: d
|
|
21502
|
-
},
|
|
21505
|
+
}, ZC, 2),
|
|
21503
21506
|
x("button", {
|
|
21504
21507
|
class: "h-8 w-8 hover:bg-steel-300",
|
|
21505
21508
|
onClick: g
|
|
21506
|
-
},
|
|
21509
|
+
}, tS)
|
|
21507
21510
|
], 2),
|
|
21508
21511
|
x("div", {
|
|
21509
21512
|
class: W(["w-full px-5 py-3 rounded-bl-2xl rounded-br-2xl border-[1px] border-steel-500 dark:border-line overflow-auto resize-y text-black-950 dark:text-content", { "bg-surface-raised": !n.readOnly, "bg-surface-sunken cursor-not-allowed": n.readOnly }])
|
|
@@ -21550,7 +21553,7 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21550
21553
|
]
|
|
21551
21554
|
}
|
|
21552
21555
|
]
|
|
21553
|
-
}),
|
|
21556
|
+
}), ES = {
|
|
21554
21557
|
type: "doc",
|
|
21555
21558
|
content: [
|
|
21556
21559
|
Ho("Description"),
|
|
@@ -21567,7 +21570,7 @@ const jC = /* @__PURE__ */ Ml(bC, [["render", VC]]), _C = {
|
|
|
21567
21570
|
]
|
|
21568
21571
|
};
|
|
21569
21572
|
export {
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
+
ES as EDSTemplate,
|
|
21574
|
+
AS as Tiptap,
|
|
21575
|
+
MS as TiptapTextArea
|
|
21573
21576
|
};
|