@opentiny/tiny-robot 0.4.2-alpha.3 → 0.4.2-alpha.4
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/action-group/index.js +3 -3
- package/dist/anchor/index.js +44 -44
- package/dist/attachments/index.js +95 -95
- package/dist/container/index.js +13 -13
- package/dist/drag-overlay/index.js +1 -1
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/index.d.ts +38 -19
- package/dist/index.js +2 -2
- package/dist/index2.js +139 -121
- package/dist/index3.js +1 -1
- package/dist/index4.js +13 -13
- package/dist/index6.js +19 -19
- package/dist/index7.js +30 -30
- package/dist/index8.js +8 -8
- package/dist/mcp-server-picker/index.js +160 -162
- package/dist/sender/index.js +178 -164
- package/dist/sender-actions/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +113 -116
- package/dist/useSlotRefs.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/no-data.js +0 -4
package/dist/sender/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as X, openBlock as k, createBlock as U, unref as L, withCtx as
|
|
2
|
-
import {
|
|
3
|
-
import { NodeViewWrapper as
|
|
1
|
+
import { defineComponent as X, openBlock as k, createBlock as U, unref as L, withCtx as I, createTextVNode as un, toDisplayString as pe, ref as H, watch as j, createElementBlock as M, Fragment as De, renderList as Be, withModifiers as et, normalizeClass as Q, createCommentVNode as W, createElementVNode as B, nextTick as me, isRef as Le, Transition as dn, normalizeStyle as fn, createVNode as oe, toRaw as pn, computed as D, onMounted as mn, onUnmounted as hn, Teleport as gn, toRef as Pe, onBeforeUnmount as xn, provide as yn, renderSlot as R, createSlots as Ie, normalizeProps as he, guardReactiveProps as ge } from "vue";
|
|
2
|
+
import { S as bn, u as Me, W as Pt, D as Dt } from "../index2.js";
|
|
3
|
+
import { NodeViewWrapper as rt, VueRenderer as Bt, VueNodeViewRenderer as it, NodeViewContent as vn, useEditor as Tn, EditorContent as En } from "@tiptap/vue-3";
|
|
4
4
|
import wn from "@tiptap/extension-document";
|
|
5
5
|
import An from "@tiptap/extension-paragraph";
|
|
6
6
|
import Sn from "@tiptap/extension-text";
|
|
7
7
|
import Cn from "@tiptap/extension-history";
|
|
8
8
|
import _n from "@tiptap/extension-placeholder";
|
|
9
9
|
import Ln from "@tiptap/extension-character-count";
|
|
10
|
-
import {
|
|
10
|
+
import { k as kn, i as Mn, a as On } from "../index4.js";
|
|
11
11
|
import { PluginKey as re, Plugin as ie, TextSelection as O } from "@tiptap/pm/state";
|
|
12
12
|
import { DecorationSet as _e, Decoration as It } from "@tiptap/pm/view";
|
|
13
13
|
import { _ as Y } from "../_plugin-vue_export-helper.js";
|
|
14
14
|
import { IconAssociate as Rn, IconArrowDown as Pn } from "@opentiny/tiny-robot-svgs";
|
|
15
|
-
import { Node as
|
|
15
|
+
import { Node as lt, mergeAttributes as at, Extension as $t } from "@tiptap/core";
|
|
16
16
|
const Dn = /* @__PURE__ */ X({
|
|
17
17
|
__name: "mention-view",
|
|
18
18
|
props: {
|
|
@@ -20,19 +20,19 @@ const Dn = /* @__PURE__ */ X({
|
|
|
20
20
|
extension: {}
|
|
21
21
|
},
|
|
22
22
|
setup(e) {
|
|
23
|
-
return (t, n) => (k(), U(L(
|
|
23
|
+
return (t, n) => (k(), U(L(rt), {
|
|
24
24
|
as: "span",
|
|
25
25
|
class: "mention",
|
|
26
26
|
"data-id": e.node.attrs.id,
|
|
27
27
|
"data-value": e.node.attrs.value
|
|
28
28
|
}, {
|
|
29
|
-
default:
|
|
29
|
+
default: I(() => [
|
|
30
30
|
un(pe(e.extension.options.char) + pe(e.node.attrs.label), 1)
|
|
31
31
|
]),
|
|
32
32
|
_: 1
|
|
33
33
|
}, 8, ["data-id", "data-value"]));
|
|
34
34
|
}
|
|
35
|
-
}), Bn = /* @__PURE__ */ Y(Dn, [["__scopeId", "data-v-b42c4fae"]]),
|
|
35
|
+
}), Bn = /* @__PURE__ */ Y(Dn, [["__scopeId", "data-v-b42c4fae"]]), $e = Math.min, fe = Math.max, je = Math.round, Re = Math.floor, G = (e) => ({
|
|
36
36
|
x: e,
|
|
37
37
|
y: e
|
|
38
38
|
}), In = {
|
|
@@ -42,15 +42,15 @@ const Dn = /* @__PURE__ */ X({
|
|
|
42
42
|
top: "bottom"
|
|
43
43
|
};
|
|
44
44
|
function vt(e, t, n) {
|
|
45
|
-
return fe(e,
|
|
45
|
+
return fe(e, $e(t, n));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ze(e, t) {
|
|
48
48
|
return typeof e == "function" ? e(t) : e;
|
|
49
49
|
}
|
|
50
50
|
function xe(e) {
|
|
51
51
|
return e.split("-")[0];
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Fe(e) {
|
|
54
54
|
return e.split("-")[1];
|
|
55
55
|
}
|
|
56
56
|
function jt(e) {
|
|
@@ -68,15 +68,15 @@ function Wt(e) {
|
|
|
68
68
|
}
|
|
69
69
|
function $n(e, t, n) {
|
|
70
70
|
n === void 0 && (n = !1);
|
|
71
|
-
const s =
|
|
71
|
+
const s = Fe(e), r = Wt(e), o = Nt(r);
|
|
72
72
|
let l = r === "x" ? s === (n ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
73
|
-
return t.reference[o] > t.floating[o] && (l =
|
|
73
|
+
return t.reference[o] > t.floating[o] && (l = Ne(l)), [l, Ne(l)];
|
|
74
74
|
}
|
|
75
75
|
function jn(e) {
|
|
76
|
-
const t =
|
|
77
|
-
return [
|
|
76
|
+
const t = Ne(e);
|
|
77
|
+
return [tt(e), t, tt(t)];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function tt(e) {
|
|
80
80
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
81
81
|
}
|
|
82
82
|
const Tt = ["left", "right"], Et = ["right", "left"], Nn = ["top", "bottom"], Wn = ["bottom", "top"];
|
|
@@ -93,11 +93,11 @@ function Kn(e, t, n) {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
function qn(e, t, n, s) {
|
|
96
|
-
const r =
|
|
96
|
+
const r = Fe(e);
|
|
97
97
|
let o = Kn(xe(e), n === "start", s);
|
|
98
|
-
return r && (o = o.map((l) => l + "-" + r), t && (o = o.concat(o.map(
|
|
98
|
+
return r && (o = o.map((l) => l + "-" + r), t && (o = o.concat(o.map(tt)))), o;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Ne(e) {
|
|
101
101
|
const t = xe(e);
|
|
102
102
|
return In[t] + e.slice(t.length);
|
|
103
103
|
}
|
|
@@ -118,7 +118,7 @@ function zn(e) {
|
|
|
118
118
|
left: e
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function We(e) {
|
|
122
122
|
const {
|
|
123
123
|
x: t,
|
|
124
124
|
y: n,
|
|
@@ -174,7 +174,7 @@ function wt(e, t, n) {
|
|
|
174
174
|
y: s.y
|
|
175
175
|
};
|
|
176
176
|
}
|
|
177
|
-
switch (
|
|
177
|
+
switch (Fe(t)) {
|
|
178
178
|
case "start":
|
|
179
179
|
h[l] -= y * (n && c ? -1 : 1);
|
|
180
180
|
break;
|
|
@@ -200,7 +200,7 @@ async function Fn(e, t) {
|
|
|
200
200
|
elementContext: u = "floating",
|
|
201
201
|
altBoundary: y = !1,
|
|
202
202
|
padding: h = 0
|
|
203
|
-
} =
|
|
203
|
+
} = ze(t, e), E = zn(h), v = i[y ? u === "floating" ? "reference" : "floating" : u], g = We(await o.getClippingRect({
|
|
204
204
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(v))) == null || n ? v : v.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
|
|
205
205
|
boundary: c,
|
|
206
206
|
rootBoundary: d,
|
|
@@ -216,7 +216,7 @@ async function Fn(e, t) {
|
|
|
216
216
|
} : {
|
|
217
217
|
x: 1,
|
|
218
218
|
y: 1
|
|
219
|
-
}, m =
|
|
219
|
+
}, m = We(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
220
220
|
elements: i,
|
|
221
221
|
rect: b,
|
|
222
222
|
offsetParent: p,
|
|
@@ -314,41 +314,41 @@ const Vn = 50, Gn = async (e, t, n) => {
|
|
|
314
314
|
fallbackAxisSideDirection: E = "none",
|
|
315
315
|
flipAlignment: w = !0,
|
|
316
316
|
...v
|
|
317
|
-
} =
|
|
317
|
+
} = ze(e, t);
|
|
318
318
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
319
319
|
return {};
|
|
320
|
-
const g = xe(r), b = ne(i), p = xe(i) === i, f = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), m = y || (p || !w ? [
|
|
320
|
+
const g = xe(r), b = ne(i), p = xe(i) === i, f = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), m = y || (p || !w ? [Ne(i)] : jn(i)), x = E !== "none";
|
|
321
321
|
!y && x && m.push(...qn(i, w, E, f));
|
|
322
322
|
const T = [i, ...m], _ = await a.detectOverflow(t, v), C = [];
|
|
323
|
-
let
|
|
323
|
+
let $ = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
324
324
|
if (d && C.push(_[g]), u) {
|
|
325
325
|
const ae = $n(r, l, f);
|
|
326
326
|
C.push(_[ae[0]], _[ae[1]]);
|
|
327
327
|
}
|
|
328
|
-
if (
|
|
328
|
+
if ($ = [...$, {
|
|
329
329
|
placement: r,
|
|
330
330
|
overflows: C
|
|
331
331
|
}], !C.every((ae) => ae <= 0)) {
|
|
332
|
-
var J,
|
|
333
|
-
const ae = (((J = o.flip) == null ? void 0 : J.index) || 0) + 1,
|
|
334
|
-
if (
|
|
332
|
+
var J, yt;
|
|
333
|
+
const ae = (((J = o.flip) == null ? void 0 : J.index) || 0) + 1, Ye = T[ae];
|
|
334
|
+
if (Ye && (!(u === "alignment" ? b !== ne(Ye) : !1) || // We leave the current main axis only if every placement on that axis
|
|
335
335
|
// overflows the main axis.
|
|
336
|
-
|
|
336
|
+
$.every((K) => ne(K.placement) === b ? K.overflows[0] > 0 : !0)))
|
|
337
337
|
return {
|
|
338
338
|
data: {
|
|
339
339
|
index: ae,
|
|
340
|
-
overflows:
|
|
340
|
+
overflows: $
|
|
341
341
|
},
|
|
342
342
|
reset: {
|
|
343
|
-
placement:
|
|
343
|
+
placement: Ye
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
|
-
let Ce = (
|
|
346
|
+
let Ce = (yt = $.filter((ce) => ce.overflows[0] <= 0).sort((ce, K) => ce.overflows[1] - K.overflows[1])[0]) == null ? void 0 : yt.placement;
|
|
347
347
|
if (!Ce)
|
|
348
348
|
switch (h) {
|
|
349
349
|
case "bestFit": {
|
|
350
|
-
var
|
|
351
|
-
const ce = (
|
|
350
|
+
var bt;
|
|
351
|
+
const ce = (bt = $.filter((K) => {
|
|
352
352
|
if (x) {
|
|
353
353
|
const te = ne(K.placement);
|
|
354
354
|
return te === b || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -356,7 +356,7 @@ const Vn = 50, Gn = async (e, t, n) => {
|
|
|
356
356
|
te === "y";
|
|
357
357
|
}
|
|
358
358
|
return !0;
|
|
359
|
-
}).map((K) => [K.placement, K.overflows.filter((te) => te > 0).reduce((te, cn) => te + cn, 0)]).sort((K, te) => K[1] - te[1])[0]) == null ? void 0 :
|
|
359
|
+
}).map((K) => [K.placement, K.overflows.filter((te) => te > 0).reduce((te, cn) => te + cn, 0)]).sort((K, te) => K[1] - te[1])[0]) == null ? void 0 : bt[0];
|
|
360
360
|
ce && (Ce = ce);
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
@@ -380,7 +380,7 @@ async function Yn(e, t) {
|
|
|
380
380
|
placement: n,
|
|
381
381
|
platform: s,
|
|
382
382
|
elements: r
|
|
383
|
-
} = e, o = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), l = xe(n), i =
|
|
383
|
+
} = e, o = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), l = xe(n), i = Fe(n), a = ne(n) === "y", c = Xn.has(l) ? -1 : 1, d = o && a ? -1 : 1, u = ze(t, e);
|
|
384
384
|
let {
|
|
385
385
|
mainAxis: y,
|
|
386
386
|
crossAxis: h,
|
|
@@ -450,7 +450,7 @@ const Zn = function(e) {
|
|
|
450
450
|
}
|
|
451
451
|
},
|
|
452
452
|
...c
|
|
453
|
-
} =
|
|
453
|
+
} = ze(e, t), d = {
|
|
454
454
|
x: n,
|
|
455
455
|
y: s
|
|
456
456
|
}, u = await o.detectOverflow(t, c), y = ne(xe(r)), h = jt(y);
|
|
@@ -482,7 +482,7 @@ const Zn = function(e) {
|
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
};
|
|
485
|
-
function
|
|
485
|
+
function Ve() {
|
|
486
486
|
return typeof window < "u";
|
|
487
487
|
}
|
|
488
488
|
function Se(e) {
|
|
@@ -497,16 +497,16 @@ function Z(e) {
|
|
|
497
497
|
return (t = (Kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
498
498
|
}
|
|
499
499
|
function Kt(e) {
|
|
500
|
-
return
|
|
500
|
+
return Ve() ? e instanceof Node || e instanceof N(e).Node : !1;
|
|
501
501
|
}
|
|
502
502
|
function z(e) {
|
|
503
|
-
return
|
|
503
|
+
return Ve() ? e instanceof Element || e instanceof N(e).Element : !1;
|
|
504
504
|
}
|
|
505
505
|
function ee(e) {
|
|
506
|
-
return
|
|
506
|
+
return Ve() ? e instanceof HTMLElement || e instanceof N(e).HTMLElement : !1;
|
|
507
507
|
}
|
|
508
508
|
function At(e) {
|
|
509
|
-
return !
|
|
509
|
+
return !Ve() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof N(e).ShadowRoot;
|
|
510
510
|
}
|
|
511
511
|
function Oe(e) {
|
|
512
512
|
const {
|
|
@@ -520,7 +520,7 @@ function Oe(e) {
|
|
|
520
520
|
function Qn(e) {
|
|
521
521
|
return /^(table|td|th)$/.test(Se(e));
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ge(e) {
|
|
524
524
|
try {
|
|
525
525
|
if (e.matches(":popover-open"))
|
|
526
526
|
return !0;
|
|
@@ -533,24 +533,24 @@ function Ve(e) {
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
const eo = /transform|translate|scale|rotate|perspective|filter/, to = /paint|layout|strict|content/, ue = (e) => !!e && e !== "none";
|
|
536
|
-
let
|
|
537
|
-
function
|
|
536
|
+
let Ze;
|
|
537
|
+
function ct(e) {
|
|
538
538
|
const t = z(e) ? F(e) : e;
|
|
539
|
-
return ue(t.transform) || ue(t.translate) || ue(t.scale) || ue(t.rotate) || ue(t.perspective) || !
|
|
539
|
+
return ue(t.transform) || ue(t.translate) || ue(t.scale) || ue(t.rotate) || ue(t.perspective) || !ut() && (ue(t.backdropFilter) || ue(t.filter)) || eo.test(t.willChange || "") || to.test(t.contain || "");
|
|
540
540
|
}
|
|
541
541
|
function no(e) {
|
|
542
542
|
let t = se(e);
|
|
543
543
|
for (; ee(t) && !Ee(t); ) {
|
|
544
|
-
if (
|
|
544
|
+
if (ct(t))
|
|
545
545
|
return t;
|
|
546
|
-
if (
|
|
546
|
+
if (Ge(t))
|
|
547
547
|
return null;
|
|
548
548
|
t = se(t);
|
|
549
549
|
}
|
|
550
550
|
return null;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function ut() {
|
|
553
|
+
return Ze == null && (Ze = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Ze;
|
|
554
554
|
}
|
|
555
555
|
function Ee(e) {
|
|
556
556
|
return /^(html|body|#document)$/.test(Se(e));
|
|
@@ -558,7 +558,7 @@ function Ee(e) {
|
|
|
558
558
|
function F(e) {
|
|
559
559
|
return N(e).getComputedStyle(e);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ue(e) {
|
|
562
562
|
return z(e) ? {
|
|
563
563
|
scrollLeft: e.scrollLeft,
|
|
564
564
|
scrollTop: e.scrollTop
|
|
@@ -588,29 +588,29 @@ function ke(e, t, n) {
|
|
|
588
588
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
589
589
|
const r = qt(e), o = r === ((s = e.ownerDocument) == null ? void 0 : s.body), l = N(r);
|
|
590
590
|
if (o) {
|
|
591
|
-
const i =
|
|
591
|
+
const i = nt(l);
|
|
592
592
|
return t.concat(l, l.visualViewport || [], Oe(r) ? r : [], i && n ? ke(i) : []);
|
|
593
593
|
} else
|
|
594
594
|
return t.concat(r, ke(r, [], n));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function nt(e) {
|
|
597
597
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
598
598
|
}
|
|
599
599
|
function Ht(e) {
|
|
600
600
|
const t = F(e);
|
|
601
601
|
let n = parseFloat(t.width) || 0, s = parseFloat(t.height) || 0;
|
|
602
|
-
const r = ee(e), o = r ? e.offsetWidth : n, l = r ? e.offsetHeight : s, i =
|
|
602
|
+
const r = ee(e), o = r ? e.offsetWidth : n, l = r ? e.offsetHeight : s, i = je(n) !== o || je(s) !== l;
|
|
603
603
|
return i && (n = o, s = l), {
|
|
604
604
|
width: n,
|
|
605
605
|
height: s,
|
|
606
606
|
$: i
|
|
607
607
|
};
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function dt(e) {
|
|
610
610
|
return z(e) ? e : e.contextElement;
|
|
611
611
|
}
|
|
612
612
|
function Te(e) {
|
|
613
|
-
const t =
|
|
613
|
+
const t = dt(e);
|
|
614
614
|
if (!ee(t))
|
|
615
615
|
return G(1);
|
|
616
616
|
const n = t.getBoundingClientRect(), {
|
|
@@ -618,7 +618,7 @@ function Te(e) {
|
|
|
618
618
|
height: r,
|
|
619
619
|
$: o
|
|
620
620
|
} = Ht(t);
|
|
621
|
-
let l = (o ?
|
|
621
|
+
let l = (o ? je(n.width) : n.width) / s, i = (o ? je(n.height) : n.height) / r;
|
|
622
622
|
return (!l || !Number.isFinite(l)) && (l = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
623
623
|
x: l,
|
|
624
624
|
y: i
|
|
@@ -627,7 +627,7 @@ function Te(e) {
|
|
|
627
627
|
const oo = /* @__PURE__ */ G(0);
|
|
628
628
|
function zt(e) {
|
|
629
629
|
const t = N(e);
|
|
630
|
-
return !
|
|
630
|
+
return !ut() || !t.visualViewport ? oo : {
|
|
631
631
|
x: t.visualViewport.offsetLeft,
|
|
632
632
|
y: t.visualViewport.offsetTop
|
|
633
633
|
};
|
|
@@ -637,32 +637,32 @@ function so(e, t, n) {
|
|
|
637
637
|
}
|
|
638
638
|
function ye(e, t, n, s) {
|
|
639
639
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
640
|
-
const r = e.getBoundingClientRect(), o =
|
|
640
|
+
const r = e.getBoundingClientRect(), o = dt(e);
|
|
641
641
|
let l = G(1);
|
|
642
642
|
t && (s ? z(s) && (l = Te(s)) : l = Te(e));
|
|
643
643
|
const i = so(o, n, s) ? zt(o) : G(0);
|
|
644
644
|
let a = (r.left + i.x) / l.x, c = (r.top + i.y) / l.y, d = r.width / l.x, u = r.height / l.y;
|
|
645
645
|
if (o) {
|
|
646
646
|
const y = N(o), h = s && z(s) ? N(s) : s;
|
|
647
|
-
let E = y, w =
|
|
647
|
+
let E = y, w = nt(E);
|
|
648
648
|
for (; w && s && h !== E; ) {
|
|
649
649
|
const v = Te(w), g = w.getBoundingClientRect(), b = F(w), p = g.left + (w.clientLeft + parseFloat(b.paddingLeft)) * v.x, f = g.top + (w.clientTop + parseFloat(b.paddingTop)) * v.y;
|
|
650
|
-
a *= v.x, c *= v.y, d *= v.x, u *= v.y, a += p, c += f, E = N(w), w =
|
|
650
|
+
a *= v.x, c *= v.y, d *= v.x, u *= v.y, a += p, c += f, E = N(w), w = nt(E);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return We({
|
|
654
654
|
width: d,
|
|
655
655
|
height: u,
|
|
656
656
|
x: a,
|
|
657
657
|
y: c
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
const n =
|
|
660
|
+
function Xe(e, t) {
|
|
661
|
+
const n = Ue(e).scrollLeft;
|
|
662
662
|
return t ? t.left + n : ye(Z(e)).left + n;
|
|
663
663
|
}
|
|
664
664
|
function Ft(e, t) {
|
|
665
|
-
const n = e.getBoundingClientRect(), s = n.left + t.scrollLeft -
|
|
665
|
+
const n = e.getBoundingClientRect(), s = n.left + t.scrollLeft - Xe(e, n), r = n.top + t.scrollTop;
|
|
666
666
|
return {
|
|
667
667
|
x: s,
|
|
668
668
|
y: r
|
|
@@ -675,7 +675,7 @@ function ro(e) {
|
|
|
675
675
|
offsetParent: s,
|
|
676
676
|
strategy: r
|
|
677
677
|
} = e;
|
|
678
|
-
const o = r === "fixed", l = Z(s), i = t ?
|
|
678
|
+
const o = r === "fixed", l = Z(s), i = t ? Ge(t.floating) : !1;
|
|
679
679
|
if (s === l || i && o)
|
|
680
680
|
return n;
|
|
681
681
|
let a = {
|
|
@@ -683,7 +683,7 @@ function ro(e) {
|
|
|
683
683
|
scrollTop: 0
|
|
684
684
|
}, c = G(1);
|
|
685
685
|
const d = G(0), u = ee(s);
|
|
686
|
-
if ((u || !u && !o) && ((Se(s) !== "body" || Oe(l)) && (a =
|
|
686
|
+
if ((u || !u && !o) && ((Se(s) !== "body" || Oe(l)) && (a = Ue(s)), u)) {
|
|
687
687
|
const h = ye(s);
|
|
688
688
|
c = Te(s), d.x = h.x + s.clientLeft, d.y = h.y + s.clientTop;
|
|
689
689
|
}
|
|
@@ -699,8 +699,8 @@ function io(e) {
|
|
|
699
699
|
return Array.from(e.getClientRects());
|
|
700
700
|
}
|
|
701
701
|
function lo(e) {
|
|
702
|
-
const t = Z(e), n =
|
|
703
|
-
let l = -n.scrollLeft +
|
|
702
|
+
const t = Z(e), n = Ue(e), s = e.ownerDocument.body, r = fe(t.scrollWidth, t.clientWidth, s.scrollWidth, s.clientWidth), o = fe(t.scrollHeight, t.clientHeight, s.scrollHeight, s.clientHeight);
|
|
703
|
+
let l = -n.scrollLeft + Xe(e);
|
|
704
704
|
const i = -n.scrollTop;
|
|
705
705
|
return F(s).direction === "rtl" && (l += fe(t.clientWidth, s.clientWidth) - r), {
|
|
706
706
|
width: r,
|
|
@@ -715,10 +715,10 @@ function ao(e, t) {
|
|
|
715
715
|
let o = s.clientWidth, l = s.clientHeight, i = 0, a = 0;
|
|
716
716
|
if (r) {
|
|
717
717
|
o = r.width, l = r.height;
|
|
718
|
-
const d =
|
|
718
|
+
const d = ut();
|
|
719
719
|
(!d || d && t === "fixed") && (i = r.offsetLeft, a = r.offsetTop);
|
|
720
720
|
}
|
|
721
|
-
const c =
|
|
721
|
+
const c = Xe(s);
|
|
722
722
|
if (c <= 0) {
|
|
723
723
|
const d = s.ownerDocument, u = d.body, y = getComputedStyle(u), h = d.compatMode === "CSS1Compat" && parseFloat(y.marginLeft) + parseFloat(y.marginRight) || 0, E = Math.abs(s.clientWidth - u.clientWidth - h);
|
|
724
724
|
E <= St && (o -= E);
|
|
@@ -756,7 +756,7 @@ function Ct(e, t, n) {
|
|
|
756
756
|
height: t.height
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
return
|
|
759
|
+
return We(s);
|
|
760
760
|
}
|
|
761
761
|
function Vt(e, t) {
|
|
762
762
|
const n = se(e);
|
|
@@ -770,7 +770,7 @@ function uo(e, t) {
|
|
|
770
770
|
const o = F(e).position === "fixed";
|
|
771
771
|
let l = o ? se(e) : e;
|
|
772
772
|
for (; z(l) && !Ee(l); ) {
|
|
773
|
-
const i = F(l), a =
|
|
773
|
+
const i = F(l), a = ct(l);
|
|
774
774
|
!a && i.position === "fixed" && (r = null), (o ? !a && !r : !a && i.position === "static" && !!r && (r.position === "absolute" || r.position === "fixed") || Oe(l) && !a && Vt(e, l)) ? s = s.filter((d) => d !== l) : r = i, l = se(l);
|
|
775
775
|
}
|
|
776
776
|
return t.set(e, s), s;
|
|
@@ -782,11 +782,11 @@ function fo(e) {
|
|
|
782
782
|
rootBoundary: s,
|
|
783
783
|
strategy: r
|
|
784
784
|
} = e;
|
|
785
|
-
const l = [...n === "clippingAncestors" ?
|
|
785
|
+
const l = [...n === "clippingAncestors" ? Ge(t) ? [] : uo(t, this._c) : [].concat(n), s], i = Ct(t, l[0], r);
|
|
786
786
|
let a = i.top, c = i.right, d = i.bottom, u = i.left;
|
|
787
787
|
for (let y = 1; y < l.length; y++) {
|
|
788
788
|
const h = Ct(t, l[y], r);
|
|
789
|
-
a = fe(h.top, a), c =
|
|
789
|
+
a = fe(h.top, a), c = $e(h.right, c), d = $e(h.bottom, d), u = fe(h.left, u);
|
|
790
790
|
}
|
|
791
791
|
return {
|
|
792
792
|
width: c - u,
|
|
@@ -813,10 +813,10 @@ function mo(e, t, n) {
|
|
|
813
813
|
};
|
|
814
814
|
const a = G(0);
|
|
815
815
|
function c() {
|
|
816
|
-
a.x =
|
|
816
|
+
a.x = Xe(r);
|
|
817
817
|
}
|
|
818
818
|
if (s || !s && !o)
|
|
819
|
-
if ((Se(t) !== "body" || Oe(r)) && (i =
|
|
819
|
+
if ((Se(t) !== "body" || Oe(r)) && (i = Ue(t)), s) {
|
|
820
820
|
const h = ye(t, !0, o, t);
|
|
821
821
|
a.x = h.x + t.clientLeft, a.y = h.y + t.clientTop;
|
|
822
822
|
} else r && c();
|
|
@@ -829,7 +829,7 @@ function mo(e, t, n) {
|
|
|
829
829
|
height: l.height
|
|
830
830
|
};
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function Je(e) {
|
|
833
833
|
return F(e).position === "static";
|
|
834
834
|
}
|
|
835
835
|
function _t(e, t) {
|
|
@@ -842,21 +842,21 @@ function _t(e, t) {
|
|
|
842
842
|
}
|
|
843
843
|
function Gt(e, t) {
|
|
844
844
|
const n = N(e);
|
|
845
|
-
if (
|
|
845
|
+
if (Ge(e))
|
|
846
846
|
return n;
|
|
847
847
|
if (!ee(e)) {
|
|
848
848
|
let r = se(e);
|
|
849
849
|
for (; r && !Ee(r); ) {
|
|
850
|
-
if (z(r) && !
|
|
850
|
+
if (z(r) && !Je(r))
|
|
851
851
|
return r;
|
|
852
852
|
r = se(r);
|
|
853
853
|
}
|
|
854
854
|
return n;
|
|
855
855
|
}
|
|
856
856
|
let s = _t(e, t);
|
|
857
|
-
for (; s && Qn(s) &&
|
|
857
|
+
for (; s && Qn(s) && Je(s); )
|
|
858
858
|
s = _t(s, t);
|
|
859
|
-
return s && Ee(s) &&
|
|
859
|
+
return s && Ee(s) && Je(s) && !ct(s) ? n : s || no(e) || n;
|
|
860
860
|
}
|
|
861
861
|
const ho = async function(e) {
|
|
862
862
|
const t = this.getOffsetParent || Gt, n = this.getDimensions, s = await n(e.floating);
|
|
@@ -907,7 +907,7 @@ function yo(e, t) {
|
|
|
907
907
|
return;
|
|
908
908
|
const E = Re(u), w = Re(r.clientWidth - (d + y)), v = Re(r.clientHeight - (u + h)), g = Re(d), p = {
|
|
909
909
|
rootMargin: -E + "px " + -w + "px " + -v + "px " + -g + "px",
|
|
910
|
-
threshold: fe(0,
|
|
910
|
+
threshold: fe(0, $e(1, a)) || 1
|
|
911
911
|
};
|
|
912
912
|
let f = !0;
|
|
913
913
|
function m(x) {
|
|
@@ -934,7 +934,7 @@ function yo(e, t) {
|
|
|
934
934
|
}
|
|
935
935
|
return l(!0), o;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function ft(e, t, n, s) {
|
|
938
938
|
s === void 0 && (s = {});
|
|
939
939
|
const {
|
|
940
940
|
ancestorScroll: r = !0,
|
|
@@ -942,7 +942,7 @@ function dt(e, t, n, s) {
|
|
|
942
942
|
elementResize: l = typeof ResizeObserver == "function",
|
|
943
943
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
944
944
|
animationFrame: a = !1
|
|
945
|
-
} = s, c =
|
|
945
|
+
} = s, c = dt(e), d = r || o ? [...c ? ke(c) : [], ...t ? ke(t) : []] : [];
|
|
946
946
|
d.forEach((g) => {
|
|
947
947
|
r && g.addEventListener("scroll", n, {
|
|
948
948
|
passive: !0
|
|
@@ -970,7 +970,7 @@ function dt(e, t, n, s) {
|
|
|
970
970
|
}), u == null || u(), (g = h) == null || g.disconnect(), h = null, a && cancelAnimationFrame(E);
|
|
971
971
|
};
|
|
972
972
|
}
|
|
973
|
-
const
|
|
973
|
+
const pt = Zn, mt = Jn, ht = Un, gt = (e, t, n) => {
|
|
974
974
|
const s = /* @__PURE__ */ new Map(), r = {
|
|
975
975
|
platform: xo,
|
|
976
976
|
...n
|
|
@@ -1122,7 +1122,7 @@ const be = {
|
|
|
1122
1122
|
key: u.id,
|
|
1123
1123
|
type: "button",
|
|
1124
1124
|
class: Q(["mention-item", { "is-selected": y === s.value }]),
|
|
1125
|
-
onMousedown:
|
|
1125
|
+
onMousedown: et((h) => i(y), ["prevent"]),
|
|
1126
1126
|
onMouseenter: (h) => a(y)
|
|
1127
1127
|
}, [
|
|
1128
1128
|
u.icon ? (k(), M("span", To, pe(u.icon), 1)) : W("", !0),
|
|
@@ -1251,10 +1251,10 @@ function _o(e) {
|
|
|
1251
1251
|
editor: t
|
|
1252
1252
|
}), l = o.element, l.style.position = "absolute", l.style.zIndex = "1000", document.body.appendChild(l));
|
|
1253
1253
|
const d = a.dom.querySelector(".mention-trigger");
|
|
1254
|
-
d && l && (i == null || i(), i =
|
|
1255
|
-
|
|
1254
|
+
d && l && (i == null || i(), i = ft(d, l, () => {
|
|
1255
|
+
gt(d, l, {
|
|
1256
1256
|
placement: "bottom-start",
|
|
1257
|
-
middleware: [
|
|
1257
|
+
middleware: [pt(8), ht(), mt({ padding: 8 })]
|
|
1258
1258
|
}).then((u) => {
|
|
1259
1259
|
l && Object.assign(l.style, {
|
|
1260
1260
|
left: `${u.x}px`,
|
|
@@ -1305,7 +1305,7 @@ const Lo = {
|
|
|
1305
1305
|
return t.delete(o, o + r.nodeSize), s = !0, !1;
|
|
1306
1306
|
}), s;
|
|
1307
1307
|
}
|
|
1308
|
-
}, Yt =
|
|
1308
|
+
}, Yt = lt.create({
|
|
1309
1309
|
name: be.MENTION,
|
|
1310
1310
|
// 节点配置
|
|
1311
1311
|
group: "inline",
|
|
@@ -1352,7 +1352,7 @@ const Lo = {
|
|
|
1352
1352
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
1353
1353
|
return [
|
|
1354
1354
|
"span",
|
|
1355
|
-
|
|
1355
|
+
at(this.options.HTMLAttributes || {}, t, {
|
|
1356
1356
|
"data-mention": "",
|
|
1357
1357
|
"data-id": e.attrs.id,
|
|
1358
1358
|
"data-label": e.attrs.label,
|
|
@@ -1363,7 +1363,7 @@ const Lo = {
|
|
|
1363
1363
|
},
|
|
1364
1364
|
// 使用 Vue 组件渲染
|
|
1365
1365
|
addNodeView() {
|
|
1366
|
-
return
|
|
1366
|
+
return it(Bn);
|
|
1367
1367
|
},
|
|
1368
1368
|
// 添加 storage 用于存储实例状态
|
|
1369
1369
|
addStorage() {
|
|
@@ -1525,7 +1525,7 @@ const Zt = (e, t) => {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
}
|
|
1527
1527
|
), (i, a) => (k(), U(dn, { name: "suggestion-slide-up" }, {
|
|
1528
|
-
default:
|
|
1528
|
+
default: I(() => [
|
|
1529
1529
|
t.show && t.suggestions.length ? (k(), M("div", {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
ref_key: "suggestionsListRef",
|
|
@@ -1622,15 +1622,15 @@ function No(e) {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
return "400px";
|
|
1624
1624
|
};
|
|
1625
|
-
c =
|
|
1626
|
-
|
|
1625
|
+
c = ft(x, f, () => {
|
|
1626
|
+
gt(x, f, {
|
|
1627
1627
|
placement: "top-start",
|
|
1628
1628
|
middleware: [
|
|
1629
|
-
|
|
1630
|
-
|
|
1629
|
+
pt(8),
|
|
1630
|
+
ht({
|
|
1631
1631
|
fallbackPlacements: ["bottom-start", "top-start"]
|
|
1632
1632
|
}),
|
|
1633
|
-
|
|
1633
|
+
mt({ padding: 8 })
|
|
1634
1634
|
]
|
|
1635
1635
|
}).then(({ x: _, y: C }) => {
|
|
1636
1636
|
f.style.position = "absolute", f.style.left = `${_}px`, f.style.top = `${C}px`, f.style.zIndex = "2000", f.style.width = T();
|
|
@@ -1648,8 +1648,8 @@ function No(e) {
|
|
|
1648
1648
|
() => {
|
|
1649
1649
|
const C = document.createElement("span");
|
|
1650
1650
|
C.className = "suggestion-autocomplete", C.contentEditable = "false";
|
|
1651
|
-
const
|
|
1652
|
-
if (
|
|
1651
|
+
const $ = document.createElement("span");
|
|
1652
|
+
if ($.className = "autocomplete-text", $.textContent = p.autoCompleteText, C.appendChild($), p.showTabIndicator) {
|
|
1653
1653
|
const J = document.createElement("span");
|
|
1654
1654
|
J.className = "tab-hint", J.textContent = "TAB", C.appendChild(J);
|
|
1655
1655
|
}
|
|
@@ -1692,9 +1692,9 @@ function No(e) {
|
|
|
1692
1692
|
showTabIndicator: !1
|
|
1693
1693
|
};
|
|
1694
1694
|
if (m.type === "updateIndex") {
|
|
1695
|
-
const
|
|
1695
|
+
const $ = { ...f, selectedIndex: m.index }, J = E(m.index, f.query, f.filteredSuggestions);
|
|
1696
1696
|
return {
|
|
1697
|
-
|
|
1697
|
+
...$,
|
|
1698
1698
|
autoCompleteText: J.text,
|
|
1699
1699
|
showTabIndicator: J.showTab
|
|
1700
1700
|
};
|
|
@@ -1961,7 +1961,7 @@ const qo = {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
})
|
|
1963
1963
|
}, A = "";
|
|
1964
|
-
function
|
|
1964
|
+
function Qe(e) {
|
|
1965
1965
|
return Qt(e).map((n) => n.content).join("");
|
|
1966
1966
|
}
|
|
1967
1967
|
function Qt(e) {
|
|
@@ -2003,12 +2003,12 @@ const Ho = /* @__PURE__ */ X({
|
|
|
2003
2003
|
const s = t.node.textContent || "";
|
|
2004
2004
|
return s.length === 0 || s === A;
|
|
2005
2005
|
});
|
|
2006
|
-
return (s, r) => (k(), U(L(
|
|
2006
|
+
return (s, r) => (k(), U(L(rt), {
|
|
2007
2007
|
as: "span",
|
|
2008
2008
|
class: Q(["template-block", { "is-empty": n.value }]),
|
|
2009
2009
|
"data-id": e.node.attrs.id
|
|
2010
2010
|
}, {
|
|
2011
|
-
default:
|
|
2011
|
+
default: I(() => [
|
|
2012
2012
|
r[0] || (r[0] = B("span", {
|
|
2013
2013
|
contenteditable: "false",
|
|
2014
2014
|
class: "template-block__prefix"
|
|
@@ -2298,7 +2298,7 @@ function Uo() {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
});
|
|
2300
2300
|
}
|
|
2301
|
-
const Xo =
|
|
2301
|
+
const Xo = lt.create({
|
|
2302
2302
|
name: S.TEMPLATE_BLOCK,
|
|
2303
2303
|
// 节点配置
|
|
2304
2304
|
group: "inline",
|
|
@@ -2352,7 +2352,7 @@ const Xo = it.create({
|
|
|
2352
2352
|
const n = e.textContent || "";
|
|
2353
2353
|
return [
|
|
2354
2354
|
"span",
|
|
2355
|
-
|
|
2355
|
+
at(this.options.HTMLAttributes || {}, t, {
|
|
2356
2356
|
"data-template": "",
|
|
2357
2357
|
"data-id": e.attrs.id,
|
|
2358
2358
|
"data-content": n
|
|
@@ -2362,7 +2362,7 @@ const Xo = it.create({
|
|
|
2362
2362
|
},
|
|
2363
2363
|
// 使用 Vue 组件渲染
|
|
2364
2364
|
addNodeView() {
|
|
2365
|
-
return
|
|
2365
|
+
return it(zo);
|
|
2366
2366
|
},
|
|
2367
2367
|
// 添加插件
|
|
2368
2368
|
addProseMirrorPlugins() {
|
|
@@ -2519,12 +2519,12 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2519
2519
|
}, E = (m) => {
|
|
2520
2520
|
t.updateAttributes({ value: m.value }), h();
|
|
2521
2521
|
}, w = () => {
|
|
2522
|
-
!r.value || !o.value || (i && (i(), i = null), i =
|
|
2523
|
-
!r.value || !o.value ||
|
|
2522
|
+
!r.value || !o.value || (i && (i(), i = null), i = ft(r.value, o.value, () => {
|
|
2523
|
+
!r.value || !o.value || gt(r.value, o.value, {
|
|
2524
2524
|
placement: "bottom-start",
|
|
2525
2525
|
strategy: "fixed",
|
|
2526
2526
|
// 使用 fixed 定位策略,相对于视口
|
|
2527
|
-
middleware: [
|
|
2527
|
+
middleware: [pt(4), ht(), mt({ padding: 8 })]
|
|
2528
2528
|
}).then(({ x: m, y: x }) => {
|
|
2529
2529
|
o.value && Object.assign(o.value.style, {
|
|
2530
2530
|
left: `${m}px`,
|
|
@@ -2568,11 +2568,11 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2568
2568
|
document.addEventListener("keydown", v);
|
|
2569
2569
|
}), hn(() => {
|
|
2570
2570
|
document.removeEventListener("keydown", v), l && l(), i && i();
|
|
2571
|
-
}), (m, x) => (k(), U(L(
|
|
2571
|
+
}), (m, x) => (k(), U(L(rt), {
|
|
2572
2572
|
as: "span",
|
|
2573
2573
|
class: "template-select"
|
|
2574
2574
|
}, {
|
|
2575
|
-
default:
|
|
2575
|
+
default: I(() => [
|
|
2576
2576
|
x[0] || (x[0] = B("span", {
|
|
2577
2577
|
contenteditable: "false",
|
|
2578
2578
|
class: "template-select__prefix"
|
|
@@ -2581,7 +2581,7 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2581
2581
|
ref_key: "triggerRef",
|
|
2582
2582
|
ref: r,
|
|
2583
2583
|
class: Q(["template-select__trigger", { "is-open": n.value }]),
|
|
2584
|
-
onMousedown:
|
|
2584
|
+
onMousedown: et(u, ["prevent"])
|
|
2585
2585
|
}, [
|
|
2586
2586
|
B("span", {
|
|
2587
2587
|
class: Q(["template-select__text", { "is-placeholder": d.value }])
|
|
@@ -2607,7 +2607,7 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2607
2607
|
"is-highlighted": _ === s.value,
|
|
2608
2608
|
"is-selected": T.value === e.node.attrs.value
|
|
2609
2609
|
}]),
|
|
2610
|
-
onMousedown:
|
|
2610
|
+
onMousedown: et((C) => E(T), ["prevent"]),
|
|
2611
2611
|
onMouseenter: (C) => s.value = _
|
|
2612
2612
|
}, pe(T.label), 43, ts))), 128))
|
|
2613
2613
|
], 512)) : W("", !0)
|
|
@@ -2616,7 +2616,7 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2616
2616
|
_: 1
|
|
2617
2617
|
}));
|
|
2618
2618
|
}
|
|
2619
|
-
}), os = /* @__PURE__ */ Y(ns, [["__scopeId", "data-v-dbb18436"]]), ss =
|
|
2619
|
+
}), os = /* @__PURE__ */ Y(ns, [["__scopeId", "data-v-dbb18436"]]), ss = lt.create({
|
|
2620
2620
|
name: S.TEMPLATE_SELECT,
|
|
2621
2621
|
// 节点配置
|
|
2622
2622
|
group: "inline",
|
|
@@ -2685,7 +2685,7 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2685
2685
|
}
|
|
2686
2686
|
return [
|
|
2687
2687
|
"span",
|
|
2688
|
-
|
|
2688
|
+
at(t, {
|
|
2689
2689
|
"data-template-select": "",
|
|
2690
2690
|
"data-id": e.attrs.id,
|
|
2691
2691
|
"data-placeholder": e.attrs.placeholder,
|
|
@@ -2697,7 +2697,7 @@ const es = { class: "template-select__icon" }, ts = ["onMousedown", "onMouseente
|
|
|
2697
2697
|
},
|
|
2698
2698
|
// 使用 Vue 组件渲染
|
|
2699
2699
|
addNodeView() {
|
|
2700
|
-
return
|
|
2700
|
+
return it(os);
|
|
2701
2701
|
},
|
|
2702
2702
|
// 添加插件
|
|
2703
2703
|
addProseMirrorPlugins() {
|
|
@@ -2742,7 +2742,7 @@ function nn(e, t, n = 0, s = t.length - 1) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
return -1;
|
|
2744
2744
|
}
|
|
2745
|
-
const
|
|
2745
|
+
const ot = tn(
|
|
2746
2746
|
/** @type {UnicodeDataEncoding} */
|
|
2747
2747
|
",9,a,,b,1,d,,e,h,3j,w,4p,,4t,,4u,,lc,33,w3,6,13l,18,14v,,14x,1,150,1,153,,16o,5,174,a,17g,,18r,k,19s,,1cm,6,1ct,,1cv,5,1d3,1,1d6,3,1e7,,1e9,,1f4,q,1ie,a,1kb,8,1kt,,1li,3,1ln,8,1lx,2,1m1,4,1nd,2,1ow,1,1p3,8,1qi,n,1r6,,1r7,v,1s3,,1tm,,1tn,,1to,,1tq,2,1tt,7,1u1,3,1u5,,1u6,1,1u9,6,1uq,1,1vl,,1vm,1,1x8,,1xa,,1xb,1,1xd,3,1xj,1,1xn,1,1xp,,1xz,,1ya,1,1z2,,1z5,1,1z7,,20s,,20u,2,20x,1,213,1,217,2,21d,,228,1,22d,,22p,1,22r,,24c,,24e,2,24h,4,24n,1,24p,,24r,1,24t,,25e,1,262,5,269,,26a,1,27w,,27y,1,280,,281,3,287,1,28b,1,28d,,28l,2,28y,1,29u,,2bi,,2bj,,2bk,,2bl,1,2bq,2,2bu,2,2bx,,2c7,,2dc,,2dd,2,2dg,,2f0,,2f2,2,2f5,3,2fa,2,2fe,3,2fp,1,2g2,1,2gx,,2gy,1,2ik,,2im,,2in,1,2ip,,2iq,,2ir,1,2iu,2,2iy,3,2j9,1,2jm,1,2k3,,2kg,1,2ki,1,2m3,1,2m6,,2m7,1,2m9,3,2me,2,2mi,2,2ml,,2mm,,2mv,,2n6,1,2o1,,2o2,1,2q2,,2q7,,2q8,1,2qa,2,2qe,,2qg,6,2qn,,2r6,1,2sx,,2sz,,2t0,6,2tj,7,2wh,,2wj,,2wk,8,2x4,6,2zc,1,305,,307,,309,,30e,1,31t,d,327,,328,4,32e,1,32l,a,32x,z,346,,371,3,375,,376,5,37d,1,37f,1,37h,1,386,1,388,1,38e,2,38x,3,39e,,39g,,39h,1,39p,,3a5,,3cw,2n,3fk,1z,3hk,2f,3tp,2,4k2,3,4ky,2,4lu,1,4mq,1,4ok,1,4om,,4on,6,4ou,7,4p2,,4p3,1,4p5,a,4pp,,4qz,2,4r2,,4r3,,4ud,1,4vd,,4yo,2,4yr,3,4yv,1,4yx,2,4z4,1,4z6,,4z7,5,4zd,2,55j,1,55l,1,55n,,579,,57a,,57b,,57c,6,57k,,57m,,57p,7,57x,5,583,9,58f,,59s,u,5c0,3,5c4,,5dg,9,5dq,3,5du,2,5ez,8,5fk,1,5fm,,5gh,,5gi,3,5gm,1,5go,5,5ie,,5if,,5ig,1,5ii,2,5il,,5im,,5in,4,5k4,7,5kc,7,5kk,1,5km,1,5ow,2,5p0,c,5pd,,5pe,6,5pp,,5pw,,5pz,,5q0,1,5vk,1r,6bv,,6bw,,6bx,,6by,1,6co,6,6d8,,6dl,,6e8,f,6hc,w,6jm,,6k9,,6ms,5,6nd,1,6xm,1,6y0,,70o,,72n,,73d,a,73s,2,79e,,7fu,1,7g6,,7gg,,7i3,3,7i8,5,7if,b,7is,35,7m8,39,7pk,a,7pw,,7py,,7q5,,7q9,,7qg,,7qr,1,7r8,,7rb,,7rg,,7ri,,7rn,2,7rr,,7s3,4,7th,2,7tt,,7u8,,7un,,850,1,8hx,2,8ij,1,8k0,,8k5,,8vj,2,8zj,,928,v,wvj,3,wvo,9,wwu,1,wz4,1,x6q,,x6u,,x6z,,x7n,1,x7p,1,x7r,,x7w,,xa8,1,xbo,f,xc4,1,xcw,h,xdr,,xeu,7,xfr,a,xg2,,xg3,,xgg,s,xhc,2,xhf,,xir,,xis,1,xiu,3,xiy,1,xj0,1,xj2,1,xj4,,xk5,,xm1,5,xm7,1,xm9,1,xmb,1,xmd,1,xmr,,xn0,,xn1,,xoc,,xps,,xpu,2,xpz,1,xq6,1,xq9,,xrf,,xrg,1,xri,1,xrp,,xrq,,xyb,1,xyd,,xye,1,xyg,,xyh,1,xyk,,xyl,,1e68,f,1e74,f,1edb,,1ehq,1,1ek0,b,1eyl,,1f4w,,1f92,4,1gjl,2,1gjp,1,1gjw,3,1gl4,2,1glb,,1gpx,1,1h5w,3,1h7t,4,1hgr,1,1hj0,3,1hl2,a,1hmq,3,1hq8,,1hq9,,1hqa,,1hrs,e,1htc,,1htf,1,1htr,2,1htu,,1hv4,2,1hv7,3,1hvb,1,1hvd,1,1hvh,,1hvm,,1hvx,,1hxc,2,1hyf,4,1hyk,,1hyl,7,1hz9,1,1i0j,,1i0w,1,1i0y,,1i2b,2,1i2e,8,1i2n,,1i2o,,1i2q,1,1i2x,3,1i32,,1i33,,1i5o,2,1i5r,2,1i5u,1,1i5w,3,1i66,,1i69,,1ian,,1iao,2,1iar,7,1ibk,1,1ibm,1,1id7,1,1ida,,1idb,,1idc,,1idd,3,1idj,1,1idn,1,1idp,,1idz,,1iea,1,1iee,6,1ieo,4,1igo,,1igp,1,1igr,5,1igy,,1ih1,,1ih3,2,1ih6,,1ih8,1,1iha,2,1ihd,,1ihe,,1iht,1,1ik5,2,1ik8,7,1ikg,1,1iki,2,1ikl,,1ikm,,1ila,,1ink,,1inl,1,1inn,5,1int,,1inu,,1inv,1,1inx,,1iny,,1inz,1,1io1,,1io2,1,1iun,,1iuo,1,1iuq,3,1iuw,3,1iv0,1,1iv2,,1iv3,1,1ivw,1,1iy8,2,1iyb,7,1iyj,1,1iyl,,1iym,,1iyn,1,1j1n,,1j1o,,1j1p,,1j1q,1,1j1s,7,1j4t,,1j4u,,1j4v,,1j4y,3,1j52,,1j53,4,1jcc,2,1jcf,8,1jco,,1jcp,1,1jjk,,1jjl,4,1jjr,1,1jjv,3,1jjz,,1jk0,,1jk1,,1jk2,,1jk3,,1jo1,2,1jo4,3,1joa,1,1joc,3,1jog,,1jok,,1jpd,9,1jqr,5,1jqx,,1jqy,,1jqz,3,1jrb,,1jrl,5,1jrr,1,1jrt,2,1jt0,5,1jt6,c,1jtj,,1jtk,1,1k4v,,1k4w,6,1k54,5,1k5a,,1k5b,,1k7m,l,1k89,,1k8a,6,1k8h,,1k8i,1,1k8k,,1k8l,1,1kc1,5,1kca,,1kcc,1,1kcf,6,1kcm,,1kcn,,1kei,4,1keo,1,1ker,1,1ket,,1keu,,1kev,,1koj,1,1kol,1,1kow,1,1koy,,1koz,,1kqc,1,1kqe,4,1kqm,1,1kqo,2,1kre,,1ovk,f,1ow0,,1ow7,e,1xr2,b,1xre,2,1xrh,2,1zow,4,1zqo,6,206b,,206f,3,20jz,,20k1,1i,20lr,3,20o4,,20og,1,2ftp,1,2fts,3,2jgg,19,2jhs,m,2jxh,4,2jxp,5,2jxv,7,2jy3,7,2jyd,6,2jze,3,2k3m,2,2lmo,1i,2lob,1d,2lpx,,2lqc,,2lqz,4,2lr5,e,2mtc,6,2mtk,g,2mu3,6,2mub,1,2mue,4,2mxb,,2n1s,6,2nce,,2ne4,3,2nsc,3,2nzi,1,2ok0,6,2on8,6,2pz4,73,2q6l,2,2q7j,,2q98,5,2q9q,1,2qa6,,2qa9,9,2qb1,1k,2qcm,p,2qdd,e,2qe2,,2qen,,2qeq,8,2qf0,3,2qfd,c1,2qrf,4,2qrk,8t,2r0m,7d,2r9c,3j,2rg4,b,2rit,16,2rkc,3,2rm0,7,2rmi,5,2rns,7,2rou,29,2rrg,1a,2rss,9,2rt3,c8,2scg,sd,jny8,v,jnz4,2n,jo1s,3j,jo5c,6n,joc0,2rz",
|
|
2748
2748
|
"262122424333333393233393339333333333393393b3b3b3b3b333b33b3bb33333b3b3333333b3b33bb3333b33b3bb33333b3bbb333b333b33333b3b3b3b3333b3b33b3bb39333b33b33b3b3b333b333333b3b333333b33b3b3333b3335dc333333b3b3b33323333b3bb3b33b3b3b3333b3333b3b333bb3b33b3b3b3b3b333b333b3323e2244234444444444444444444444444444444444444444443333333333b3b3bb33333b353b3b3b3b333b3b333b333333b3bb3b3b3bb333232333333333333333b3b3333bb3b393933b3b33bb3b393b3b3b3333b33b33b3bbb33b333b3333bb3933b3b3b333b3b3b3b3b33b3b3b33b3b3b33b3b33b33b3b3b33bb39b9b3b33b3b33b9333b393b3b33b33b3b3b3333393b3b3b33b39bb3b332333b333dd3b33332333323333333333333333333333344444444a44444434444444444444423232"
|
|
@@ -2781,33 +2781,33 @@ function as(e) {
|
|
|
2781
2781
|
for (let n of ls(e)) t += 1;
|
|
2782
2782
|
return t;
|
|
2783
2783
|
}
|
|
2784
|
-
const on = new Uint8Array(6080),
|
|
2784
|
+
const on = new Uint8Array(6080), Ke = 128, st = 12287, sn = new Uint8Array(1536), qe = 40960, rn = 44031, cs = (() => {
|
|
2785
2785
|
let e = 0;
|
|
2786
2786
|
for (; ; ) {
|
|
2787
|
-
let [t, n, s] =
|
|
2787
|
+
let [t, n, s] = ot[e];
|
|
2788
2788
|
if (t > rn) break;
|
|
2789
|
-
if (e++, !(n <
|
|
2789
|
+
if (e++, !(n < Ke || t > st && n < qe))
|
|
2790
2790
|
for (let r = t; r <= n; r++) {
|
|
2791
2791
|
let o, l = 0;
|
|
2792
|
-
r <=
|
|
2792
|
+
r <= st ? (o = on, l = r - Ke >> 1) : (o = sn, l = r - qe >> 1), o[l] = r & 1 ? o[l] & 15 | s << 4 : o[l] & 240 | s;
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
2795
|
return e;
|
|
2796
2796
|
})();
|
|
2797
2797
|
function Mt(e) {
|
|
2798
|
-
if (e <
|
|
2798
|
+
if (e < Ke)
|
|
2799
2799
|
return e >= 32 ? 0 : e === 10 ? 6 : e === 13 ? 1 : 2;
|
|
2800
|
-
if (e <=
|
|
2801
|
-
let n = on[e -
|
|
2800
|
+
if (e <= st) {
|
|
2801
|
+
let n = on[e - Ke >> 1];
|
|
2802
2802
|
return (
|
|
2803
2803
|
/** @type {GraphemeCategoryNum} */
|
|
2804
2804
|
e & 1 ? n >> 4 : n & 15
|
|
2805
2805
|
);
|
|
2806
2806
|
}
|
|
2807
|
-
if (e <
|
|
2807
|
+
if (e < qe)
|
|
2808
2808
|
return e < 12336 ? e >= 12330 ? 3 : 0 : e < 12443 ? e === 12336 || e === 12349 ? 4 : e >= 12441 ? 3 : 0 : e === 12951 || e === 12953 ? 4 : 0;
|
|
2809
2809
|
if (e <= rn) {
|
|
2810
|
-
let n = sn[e -
|
|
2810
|
+
let n = sn[e - qe >> 1];
|
|
2811
2811
|
return (
|
|
2812
2812
|
/** @type {GraphemeCategoryNum} */
|
|
2813
2813
|
e & 1 ? n >> 4 : n & 15
|
|
@@ -2819,8 +2819,8 @@ function Mt(e) {
|
|
|
2819
2819
|
return e <= 55238 ? e >= 55216 ? 13 : 0 : e >= 55243 ? 12 : 0;
|
|
2820
2820
|
if (e < 65024)
|
|
2821
2821
|
return e === 64286 ? 3 : 0;
|
|
2822
|
-
let t = nn(e,
|
|
2823
|
-
return t < 0 ? 0 :
|
|
2822
|
+
let t = nn(e, ot, cs);
|
|
2823
|
+
return t < 0 ? 0 : ot[t][2];
|
|
2824
2824
|
}
|
|
2825
2825
|
function Ot(e) {
|
|
2826
2826
|
return nn(e, is) >= 0;
|
|
@@ -3031,7 +3031,7 @@ function ps(e, t, n) {
|
|
|
3031
3031
|
};
|
|
3032
3032
|
}
|
|
3033
3033
|
function ms(e, t) {
|
|
3034
|
-
const { editor: n, editorRef: s } = us(e, t), r = D(() => n.value ?
|
|
3034
|
+
const { editor: n, editorRef: s } = us(e, t), r = D(() => n.value ? Qe(n.value).trim().length > 0 : !1), o = D(() => n.value ? ln(Qe(n.value)) : 0), l = D(() => e.maxLength ? o.value > e.maxLength : !1), i = D(() => {
|
|
3035
3035
|
var m, x;
|
|
3036
3036
|
return !e.disabled && !e.loading && r.value && !l.value && !((x = (m = e.defaultActions) == null ? void 0 : m.submit) != null && x.disabled);
|
|
3037
3037
|
}), a = () => {
|
|
@@ -3039,7 +3039,7 @@ function ms(e, t) {
|
|
|
3039
3039
|
let m, x = "";
|
|
3040
3040
|
if (n.value.extensionManager.extensions.some((T) => T.name === be.TEMPLATE)) {
|
|
3041
3041
|
const T = Qt(n.value);
|
|
3042
|
-
T.length > 0 && (m = T), x =
|
|
3042
|
+
T.length > 0 && (m = T), x = Qe(n.value);
|
|
3043
3043
|
} else if (n.value.extensionManager.extensions.some((T) => T.name === be.MENTION)) {
|
|
3044
3044
|
const T = Mo(n.value);
|
|
3045
3045
|
T.length > 0 && (m = T), x = ko(n.value);
|
|
@@ -3055,8 +3055,8 @@ function ms(e, t) {
|
|
|
3055
3055
|
editorProps: {
|
|
3056
3056
|
...m.options.editorProps,
|
|
3057
3057
|
handleKeyDown: (x, T) => {
|
|
3058
|
-
const _ = de.getState(x.state), C = q.getState(x.state),
|
|
3059
|
-
return _ && _.active || C && C.active ||
|
|
3058
|
+
const _ = de.getState(x.state), C = q.getState(x.state), $ = Ae.getState(x.state);
|
|
3059
|
+
return _ && _.active || C && C.active || $ && $.isOpen ? !1 : h.checkSubmitShortcut(T) ? (T.preventDefault(), a(), !0) : h.checkNewlineShortcut(T) ? (T.preventDefault(), c.value === "single" ? (u("multiple"), setTimeout(() => {
|
|
3060
3060
|
m.commands.splitBlock(), m.commands.focus();
|
|
3061
3061
|
}, 0)) : m.commands.splitBlock(), !0) : !1;
|
|
3062
3062
|
}
|
|
@@ -3133,7 +3133,7 @@ function ms(e, t) {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3136
|
+
function xt() {
|
|
3137
3137
|
const e = Me();
|
|
3138
3138
|
return D(() => ({
|
|
3139
3139
|
// 编辑器实例
|
|
@@ -3189,7 +3189,7 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3189
3189
|
}, Es = { class: "tr-sender-content" }, ws = /* @__PURE__ */ X({
|
|
3190
3190
|
__name: "SingleLineLayout",
|
|
3191
3191
|
setup(e) {
|
|
3192
|
-
const { editor: t, hasContent: n, loading: s, showWordLimit: r, maxLength: o } = Me(), l =
|
|
3192
|
+
const { editor: t, hasContent: n, loading: s, showWordLimit: r, maxLength: o } = Me(), l = xt();
|
|
3193
3193
|
return (i, a) => (k(), M("div", xs, [
|
|
3194
3194
|
i.$slots.header ? (k(), M("div", ys, [
|
|
3195
3195
|
R(i.$slots, "header", {}, void 0, !0)
|
|
@@ -3209,31 +3209,45 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3209
3209
|
class: Q(["tr-sender-actions-inline", { "has-content": L(n) || L(s) }])
|
|
3210
3210
|
}, [
|
|
3211
3211
|
L(r) && L(o) ? (k(), U(L(Pt), { key: 0 })) : W("", !0),
|
|
3212
|
-
|
|
3213
|
-
|
|
3212
|
+
oe(L(Dt), null, Ie({ _: 2 }, [
|
|
3213
|
+
i.$slots["actions-inline"] ? {
|
|
3214
|
+
name: "prepend",
|
|
3215
|
+
fn: I(() => [
|
|
3216
|
+
R(i.$slots, "actions-inline", he(ge(L(l))), void 0, !0)
|
|
3217
|
+
]),
|
|
3218
|
+
key: "0"
|
|
3219
|
+
} : void 0
|
|
3220
|
+
]), 1024)
|
|
3214
3221
|
], 2)
|
|
3215
3222
|
])
|
|
3216
3223
|
]));
|
|
3217
3224
|
}
|
|
3218
|
-
}), As = /* @__PURE__ */ Y(ws, [["__scopeId", "data-v-
|
|
3225
|
+
}), As = /* @__PURE__ */ Y(ws, [["__scopeId", "data-v-7b0a576c"]]), Ss = {
|
|
3219
3226
|
key: 0,
|
|
3220
3227
|
class: "tr-sender-footer"
|
|
3221
3228
|
}, Cs = { class: "tr-sender-footer-left" }, _s = { class: "tr-sender-footer-right" }, Ls = /* @__PURE__ */ X({
|
|
3222
3229
|
__name: "index",
|
|
3223
3230
|
setup(e) {
|
|
3224
|
-
const { mode: t, showWordLimit: n, maxLength: s } = Me(), r =
|
|
3231
|
+
const { mode: t, showWordLimit: n, maxLength: s } = Me(), r = xt();
|
|
3225
3232
|
return (o, l) => L(t) === "multiple" ? (k(), M("div", Ss, [
|
|
3226
3233
|
B("div", Cs, [
|
|
3227
3234
|
R(o.$slots, "footer", he(ge(L(r))), void 0, !0)
|
|
3228
3235
|
]),
|
|
3229
3236
|
B("div", _s, [
|
|
3230
3237
|
L(n) && L(s) ? (k(), U(L(Pt), { key: 0 })) : W("", !0),
|
|
3231
|
-
|
|
3232
|
-
|
|
3238
|
+
oe(L(Dt), null, Ie({ _: 2 }, [
|
|
3239
|
+
o.$slots["footer-right"] ? {
|
|
3240
|
+
name: "prepend",
|
|
3241
|
+
fn: I(() => [
|
|
3242
|
+
R(o.$slots, "footer-right", he(ge(L(r))), void 0, !0)
|
|
3243
|
+
]),
|
|
3244
|
+
key: "0"
|
|
3245
|
+
} : void 0
|
|
3246
|
+
]), 1024)
|
|
3233
3247
|
])
|
|
3234
3248
|
])) : W("", !0);
|
|
3235
3249
|
}
|
|
3236
|
-
}), ks = /* @__PURE__ */ Y(Ls, [["__scopeId", "data-v-
|
|
3250
|
+
}), ks = /* @__PURE__ */ Y(Ls, [["__scopeId", "data-v-ffcdce27"]]), Ms = { class: "tr-sender-multi-layout" }, Os = {
|
|
3237
3251
|
key: 0,
|
|
3238
3252
|
class: "tr-sender-header"
|
|
3239
3253
|
}, Rs = { class: "tr-sender-main" }, Ps = {
|
|
@@ -3242,7 +3256,7 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3242
3256
|
}, Ds = { class: "tr-sender-content" }, Bs = /* @__PURE__ */ X({
|
|
3243
3257
|
__name: "MultiLineLayout",
|
|
3244
3258
|
setup(e) {
|
|
3245
|
-
const t = Me(), n =
|
|
3259
|
+
const t = Me(), n = xt();
|
|
3246
3260
|
return (s, r) => (k(), M("div", Ms, [
|
|
3247
3261
|
s.$slots.header ? (k(), M("div", Os, [
|
|
3248
3262
|
R(s.$slots, "header", {}, void 0, !0)
|
|
@@ -3260,10 +3274,10 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3260
3274
|
])
|
|
3261
3275
|
]),
|
|
3262
3276
|
oe(ks, null, {
|
|
3263
|
-
footer:
|
|
3277
|
+
footer: I(() => [
|
|
3264
3278
|
R(s.$slots, "footer", he(ge(L(n))), void 0, !0)
|
|
3265
3279
|
]),
|
|
3266
|
-
"footer-right":
|
|
3280
|
+
"footer-right": I(() => [
|
|
3267
3281
|
R(s.$slots, "footer-right", he(ge(L(n))), void 0, !0)
|
|
3268
3282
|
]),
|
|
3269
3283
|
_: 3
|
|
@@ -3305,67 +3319,67 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3305
3319
|
}
|
|
3306
3320
|
])
|
|
3307
3321
|
}, [
|
|
3308
|
-
L(o).mode.value === "single" ? (k(), U(As, { key: 0 },
|
|
3322
|
+
L(o).mode.value === "single" ? (k(), U(As, { key: 0 }, Ie({ _: 2 }, [
|
|
3309
3323
|
i.$slots.header ? {
|
|
3310
3324
|
name: "header",
|
|
3311
|
-
fn:
|
|
3325
|
+
fn: I(() => [
|
|
3312
3326
|
R(i.$slots, "header", {}, void 0, !0)
|
|
3313
3327
|
]),
|
|
3314
3328
|
key: "0"
|
|
3315
3329
|
} : void 0,
|
|
3316
3330
|
i.$slots.prefix ? {
|
|
3317
3331
|
name: "prefix",
|
|
3318
|
-
fn:
|
|
3332
|
+
fn: I(() => [
|
|
3319
3333
|
R(i.$slots, "prefix", {}, void 0, !0)
|
|
3320
3334
|
]),
|
|
3321
3335
|
key: "1"
|
|
3322
3336
|
} : void 0,
|
|
3323
3337
|
i.$slots.content ? {
|
|
3324
3338
|
name: "content",
|
|
3325
|
-
fn:
|
|
3339
|
+
fn: I((c) => [
|
|
3326
3340
|
R(i.$slots, "content", he(ge(c)), void 0, !0)
|
|
3327
3341
|
]),
|
|
3328
3342
|
key: "2"
|
|
3329
3343
|
} : void 0,
|
|
3330
3344
|
i.$slots["actions-inline"] ? {
|
|
3331
3345
|
name: "actions-inline",
|
|
3332
|
-
fn:
|
|
3346
|
+
fn: I(() => [
|
|
3333
3347
|
R(i.$slots, "actions-inline", {}, void 0, !0)
|
|
3334
3348
|
]),
|
|
3335
3349
|
key: "3"
|
|
3336
3350
|
} : void 0
|
|
3337
|
-
]), 1024)) : (k(), U(Is, { key: 1 },
|
|
3351
|
+
]), 1024)) : (k(), U(Is, { key: 1 }, Ie({ _: 2 }, [
|
|
3338
3352
|
i.$slots.header ? {
|
|
3339
3353
|
name: "header",
|
|
3340
|
-
fn:
|
|
3354
|
+
fn: I(() => [
|
|
3341
3355
|
R(i.$slots, "header", {}, void 0, !0)
|
|
3342
3356
|
]),
|
|
3343
3357
|
key: "0"
|
|
3344
3358
|
} : void 0,
|
|
3345
3359
|
i.$slots.prefix ? {
|
|
3346
3360
|
name: "prefix",
|
|
3347
|
-
fn:
|
|
3361
|
+
fn: I(() => [
|
|
3348
3362
|
R(i.$slots, "prefix", {}, void 0, !0)
|
|
3349
3363
|
]),
|
|
3350
3364
|
key: "1"
|
|
3351
3365
|
} : void 0,
|
|
3352
3366
|
i.$slots.content ? {
|
|
3353
3367
|
name: "content",
|
|
3354
|
-
fn:
|
|
3368
|
+
fn: I((c) => [
|
|
3355
3369
|
R(i.$slots, "content", he(ge(c)), void 0, !0)
|
|
3356
3370
|
]),
|
|
3357
3371
|
key: "2"
|
|
3358
3372
|
} : void 0,
|
|
3359
3373
|
i.$slots.footer ? {
|
|
3360
3374
|
name: "footer",
|
|
3361
|
-
fn:
|
|
3375
|
+
fn: I(() => [
|
|
3362
3376
|
R(i.$slots, "footer", {}, void 0, !0)
|
|
3363
3377
|
]),
|
|
3364
3378
|
key: "3"
|
|
3365
3379
|
} : void 0,
|
|
3366
3380
|
i.$slots["footer-right"] ? {
|
|
3367
3381
|
name: "footer-right",
|
|
3368
|
-
fn:
|
|
3382
|
+
fn: I(() => [
|
|
3369
3383
|
R(i.$slots, "footer-right", {}, void 0, !0)
|
|
3370
3384
|
]),
|
|
3371
3385
|
key: "4"
|
|
@@ -3373,11 +3387,11 @@ const hs = { class: "tr-sender-editor-scroll" }, gs = /* @__PURE__ */ X({
|
|
|
3373
3387
|
]), 1024))
|
|
3374
3388
|
], 2));
|
|
3375
3389
|
}
|
|
3376
|
-
}),
|
|
3377
|
-
|
|
3390
|
+
}), He = /* @__PURE__ */ Y($s, [["__scopeId", "data-v-6c700cc1"]]);
|
|
3391
|
+
He.name = "TrSender";
|
|
3378
3392
|
const js = function(e) {
|
|
3379
|
-
e.component(
|
|
3380
|
-
}, er = Object.assign(
|
|
3393
|
+
e.component(He.name, He);
|
|
3394
|
+
}, er = Object.assign(He, {
|
|
3381
3395
|
install: js,
|
|
3382
3396
|
// 扩展类(用于继承)
|
|
3383
3397
|
Mention: Yt,
|