zs_library 0.3.11 → 0.3.13
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/MdEditor/index.d.ts +6 -1
- package/dist/components/MdEditor/preview.d.ts +7 -0
- package/dist/components/MdEditor/style.d.ts +2 -0
- package/dist/index.es.js +1420 -863
- package/dist/index.umd.js +177 -122
- package/dist/style.css +1 -1
- package/package.json +9 -2
package/dist/index.es.js
CHANGED
|
@@ -1,20 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Br = Object.defineProperty;
|
|
2
|
+
var Lr = (g, r, l) => r in g ? Br(g, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : g[r] = l;
|
|
3
|
+
var Ae = (g, r, l) => Lr(g, typeof r != "symbol" ? r + "" : r, l);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as
|
|
6
|
-
import { cx as
|
|
7
|
-
import
|
|
5
|
+
import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as te, useRef as Me, useEffect as we } from "react";
|
|
6
|
+
import { cx as z, css as d } from "@emotion/css";
|
|
7
|
+
import Fr from "react-slick";
|
|
8
8
|
import { ReactSortable as Fe } from "react-sortablejs";
|
|
9
|
-
import { AnimatePresence as
|
|
9
|
+
import { AnimatePresence as zr, motion as A } from "framer-motion";
|
|
10
10
|
import { useLocalStorageState as Yr, useDebounceEffect as Wr } from "ahooks";
|
|
11
11
|
import { v4 as rr } from "uuid";
|
|
12
|
-
import
|
|
13
|
-
import { RiPencilRuler2Line as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { MDXEditor as Jr, toolbarPlugin as Kr, DiffSourceToggleWrapper as
|
|
17
|
-
|
|
12
|
+
import Vr from "rc-tooltip";
|
|
13
|
+
import { RiPencilRuler2Line as Ur, RiShareLine as Gr, RiInformationLine as Xr, RiCloseCircleLine as qr } from "@remixicon/react";
|
|
14
|
+
import lr from "rc-dialog";
|
|
15
|
+
import Hr from "react-json-view";
|
|
16
|
+
import { MDXEditor as Jr, toolbarPlugin as Kr, DiffSourceToggleWrapper as Zr, UndoRedo as Qr, Separator as ge, BoldItalicUnderlineToggles as eo, CodeToggle as ro, StrikeThroughSupSubToggles as oo, ListsToggle as to, CreateLink as no, InsertImage as ao, InsertTable as io, InsertThematicBreak as lo, InsertCodeBlock as so, InsertFrontmatter as co, diffSourcePlugin as uo, listsPlugin as go, quotePlugin as mo, headingsPlugin as po, linkPlugin as fo, linkDialogPlugin as ho, imagePlugin as bo, tablePlugin as vo, thematicBreakPlugin as ko, frontmatterPlugin as xo, codeBlockPlugin as wo, codeMirrorPlugin as yo, markdownShortcutPlugin as Co, directivesPlugin as So, AdmonitionDirectiveDescriptor as jo } from "@mdxeditor/editor";
|
|
17
|
+
import Io from "react-markdown";
|
|
18
|
+
import To from "remark-gfm";
|
|
19
|
+
import Ro from "remark-emoji";
|
|
20
|
+
import Eo from "rehype-raw";
|
|
21
|
+
import { Prism as Mo } from "react-syntax-highlighter";
|
|
22
|
+
var Le = { exports: {} }, ke = {};
|
|
18
23
|
/**
|
|
19
24
|
* @license React
|
|
20
25
|
* react-jsx-runtime.production.min.js
|
|
@@ -24,21 +29,21 @@ var Le = { exports: {} }, be = {};
|
|
|
24
29
|
* This source code is licensed under the MIT license found in the
|
|
25
30
|
* LICENSE file in the root directory of this source tree.
|
|
26
31
|
*/
|
|
27
|
-
var
|
|
28
|
-
function
|
|
29
|
-
if (
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
function
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
for (
|
|
36
|
-
if (b && b.defaultProps) for (
|
|
37
|
-
return { $$typeof: r, type: b, key:
|
|
32
|
+
var or;
|
|
33
|
+
function _o() {
|
|
34
|
+
if (or) return ke;
|
|
35
|
+
or = 1;
|
|
36
|
+
var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, m = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
37
|
+
function f(b, i, I) {
|
|
38
|
+
var v, N = {}, _ = null, W = null;
|
|
39
|
+
I !== void 0 && (_ = "" + I), i.key !== void 0 && (_ = "" + i.key), i.ref !== void 0 && (W = i.ref);
|
|
40
|
+
for (v in i) a.call(i, v) && !s.hasOwnProperty(v) && (N[v] = i[v]);
|
|
41
|
+
if (b && b.defaultProps) for (v in i = b.defaultProps, i) N[v] === void 0 && (N[v] = i[v]);
|
|
42
|
+
return { $$typeof: r, type: b, key: _, ref: W, props: N, _owner: m.current };
|
|
38
43
|
}
|
|
39
|
-
return
|
|
44
|
+
return ke.Fragment = l, ke.jsx = f, ke.jsxs = f, ke;
|
|
40
45
|
}
|
|
41
|
-
var
|
|
46
|
+
var xe = {};
|
|
42
47
|
/**
|
|
43
48
|
* @license React
|
|
44
49
|
* react-jsx-runtime.development.js
|
|
@@ -48,91 +53,91 @@ var ke = {};
|
|
|
48
53
|
* This source code is licensed under the MIT license found in the
|
|
49
54
|
* LICENSE file in the root directory of this source tree.
|
|
50
55
|
*/
|
|
51
|
-
var
|
|
52
|
-
function
|
|
53
|
-
return
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
+
var tr;
|
|
57
|
+
function Po() {
|
|
58
|
+
return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
59
|
+
var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), V = Symbol.iterator, h = "@@iterator";
|
|
60
|
+
function u(e) {
|
|
56
61
|
if (e === null || typeof e != "object")
|
|
57
62
|
return null;
|
|
58
|
-
var
|
|
59
|
-
return typeof
|
|
63
|
+
var o = V && e[V] || e[h];
|
|
64
|
+
return typeof o == "function" ? o : null;
|
|
60
65
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
66
|
+
var R = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
67
|
+
function p(e) {
|
|
63
68
|
{
|
|
64
|
-
for (var
|
|
69
|
+
for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
65
70
|
n[c - 1] = arguments[c];
|
|
66
71
|
G("error", e, n);
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
|
-
function G(e,
|
|
74
|
+
function G(e, o, n) {
|
|
70
75
|
{
|
|
71
|
-
var c =
|
|
72
|
-
|
|
73
|
-
var $ = n.map(function(
|
|
74
|
-
return String(
|
|
76
|
+
var c = R.ReactDebugCurrentFrame, T = c.getStackAddendum();
|
|
77
|
+
T !== "" && (o += "%s", n = n.concat([T]));
|
|
78
|
+
var $ = n.map(function(S) {
|
|
79
|
+
return String(S);
|
|
75
80
|
});
|
|
76
|
-
$.unshift("Warning: " +
|
|
81
|
+
$.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, $);
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
|
-
var
|
|
84
|
+
var k = !1, P = !1, E = !1, x = !1, y = !1, X;
|
|
80
85
|
X = Symbol.for("react.module.reference");
|
|
81
86
|
function ce(e) {
|
|
82
|
-
return !!(typeof e == "string" || typeof e == "function" || e === a || e ===
|
|
87
|
+
return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || y || e === m || e === I || e === v || x || e === W || k || P || E || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === N || e.$$typeof === f || e.$$typeof === b || e.$$typeof === i || // This needs to include all possible module reference object
|
|
83
88
|
// types supported by any Flight configuration anywhere since
|
|
84
89
|
// we don't know which Flight build this will end up being used
|
|
85
90
|
// with.
|
|
86
91
|
e.$$typeof === X || e.getModuleId !== void 0));
|
|
87
92
|
}
|
|
88
|
-
function
|
|
93
|
+
function H(e, o, n) {
|
|
89
94
|
var c = e.displayName;
|
|
90
95
|
if (c)
|
|
91
96
|
return c;
|
|
92
|
-
var
|
|
93
|
-
return
|
|
97
|
+
var T = o.displayName || o.name || "";
|
|
98
|
+
return T !== "" ? n + "(" + T + ")" : n;
|
|
94
99
|
}
|
|
95
|
-
function
|
|
100
|
+
function pe(e) {
|
|
96
101
|
return e.displayName || "Context";
|
|
97
102
|
}
|
|
98
103
|
function q(e) {
|
|
99
104
|
if (e == null)
|
|
100
105
|
return null;
|
|
101
|
-
if (typeof e.tag == "number" &&
|
|
106
|
+
if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
102
107
|
return e.displayName || e.name || null;
|
|
103
108
|
if (typeof e == "string")
|
|
104
109
|
return e;
|
|
105
110
|
switch (e) {
|
|
106
111
|
case a:
|
|
107
112
|
return "Fragment";
|
|
108
|
-
case i:
|
|
109
|
-
return "Portal";
|
|
110
113
|
case l:
|
|
114
|
+
return "Portal";
|
|
115
|
+
case s:
|
|
111
116
|
return "Profiler";
|
|
112
|
-
case
|
|
117
|
+
case m:
|
|
113
118
|
return "StrictMode";
|
|
114
|
-
case
|
|
119
|
+
case I:
|
|
115
120
|
return "Suspense";
|
|
116
|
-
case
|
|
121
|
+
case v:
|
|
117
122
|
return "SuspenseList";
|
|
118
123
|
}
|
|
119
124
|
if (typeof e == "object")
|
|
120
125
|
switch (e.$$typeof) {
|
|
121
126
|
case b:
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
case
|
|
127
|
+
var o = e;
|
|
128
|
+
return pe(o) + ".Consumer";
|
|
129
|
+
case f:
|
|
125
130
|
var n = e;
|
|
126
|
-
return
|
|
127
|
-
case
|
|
128
|
-
return
|
|
131
|
+
return pe(n._context) + ".Provider";
|
|
132
|
+
case i:
|
|
133
|
+
return H(e, e.render, "ForwardRef");
|
|
129
134
|
case N:
|
|
130
135
|
var c = e.displayName || null;
|
|
131
136
|
return c !== null ? c : q(e.type) || "Memo";
|
|
132
|
-
case
|
|
133
|
-
var
|
|
137
|
+
case _: {
|
|
138
|
+
var T = e, $ = T._payload, S = T._init;
|
|
134
139
|
try {
|
|
135
|
-
return q(
|
|
140
|
+
return q(S($));
|
|
136
141
|
} catch {
|
|
137
142
|
return null;
|
|
138
143
|
}
|
|
@@ -140,18 +145,18 @@ function Tt() {
|
|
|
140
145
|
}
|
|
141
146
|
return null;
|
|
142
147
|
}
|
|
143
|
-
var re = Object.assign,
|
|
144
|
-
function
|
|
148
|
+
var re = Object.assign, le = 0, B, ne, se, ye, Ce, Se, je;
|
|
149
|
+
function j() {
|
|
145
150
|
}
|
|
146
|
-
|
|
147
|
-
function
|
|
151
|
+
j.__reactDisabledLog = !0;
|
|
152
|
+
function K() {
|
|
148
153
|
{
|
|
149
|
-
if (
|
|
150
|
-
B = console.log, ne = console.info,
|
|
154
|
+
if (le === 0) {
|
|
155
|
+
B = console.log, ne = console.info, se = console.warn, ye = console.error, Ce = console.group, Se = console.groupCollapsed, je = console.groupEnd;
|
|
151
156
|
var e = {
|
|
152
157
|
configurable: !0,
|
|
153
158
|
enumerable: !0,
|
|
154
|
-
value:
|
|
159
|
+
value: j,
|
|
155
160
|
writable: !0
|
|
156
161
|
};
|
|
157
162
|
Object.defineProperties(console, {
|
|
@@ -164,12 +169,12 @@ function Tt() {
|
|
|
164
169
|
groupEnd: e
|
|
165
170
|
});
|
|
166
171
|
}
|
|
167
|
-
|
|
172
|
+
le++;
|
|
168
173
|
}
|
|
169
174
|
}
|
|
170
|
-
function
|
|
175
|
+
function J() {
|
|
171
176
|
{
|
|
172
|
-
if (
|
|
177
|
+
if (le--, le === 0) {
|
|
173
178
|
var e = {
|
|
174
179
|
configurable: !0,
|
|
175
180
|
enumerable: !0,
|
|
@@ -183,81 +188,81 @@ function Tt() {
|
|
|
183
188
|
value: ne
|
|
184
189
|
}),
|
|
185
190
|
warn: re({}, e, {
|
|
186
|
-
value:
|
|
191
|
+
value: se
|
|
187
192
|
}),
|
|
188
193
|
error: re({}, e, {
|
|
189
|
-
value:
|
|
194
|
+
value: ye
|
|
190
195
|
}),
|
|
191
196
|
group: re({}, e, {
|
|
192
|
-
value:
|
|
197
|
+
value: Ce
|
|
193
198
|
}),
|
|
194
199
|
groupCollapsed: re({}, e, {
|
|
195
|
-
value:
|
|
200
|
+
value: Se
|
|
196
201
|
}),
|
|
197
202
|
groupEnd: re({}, e, {
|
|
198
|
-
value:
|
|
203
|
+
value: je
|
|
199
204
|
})
|
|
200
205
|
});
|
|
201
206
|
}
|
|
202
|
-
|
|
207
|
+
le < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
203
208
|
}
|
|
204
209
|
}
|
|
205
|
-
var D =
|
|
206
|
-
function O(e,
|
|
210
|
+
var D = R.ReactCurrentDispatcher, L;
|
|
211
|
+
function O(e, o, n) {
|
|
207
212
|
{
|
|
208
213
|
if (L === void 0)
|
|
209
214
|
try {
|
|
210
215
|
throw Error();
|
|
211
|
-
} catch (
|
|
212
|
-
var c =
|
|
216
|
+
} catch (T) {
|
|
217
|
+
var c = T.stack.trim().match(/\n( *(at )?)/);
|
|
213
218
|
L = c && c[1] || "";
|
|
214
219
|
}
|
|
215
220
|
return `
|
|
216
221
|
` + L + e;
|
|
217
222
|
}
|
|
218
223
|
}
|
|
219
|
-
var
|
|
224
|
+
var C = !1, M;
|
|
220
225
|
{
|
|
221
|
-
var
|
|
222
|
-
|
|
226
|
+
var U = typeof WeakMap == "function" ? WeakMap : Map;
|
|
227
|
+
M = new U();
|
|
223
228
|
}
|
|
224
|
-
function
|
|
225
|
-
if (!e ||
|
|
229
|
+
function oe(e, o) {
|
|
230
|
+
if (!e || C)
|
|
226
231
|
return "";
|
|
227
232
|
{
|
|
228
|
-
var n =
|
|
233
|
+
var n = M.get(e);
|
|
229
234
|
if (n !== void 0)
|
|
230
235
|
return n;
|
|
231
236
|
}
|
|
232
237
|
var c;
|
|
233
|
-
|
|
234
|
-
var
|
|
238
|
+
C = !0;
|
|
239
|
+
var T = Error.prepareStackTrace;
|
|
235
240
|
Error.prepareStackTrace = void 0;
|
|
236
241
|
var $;
|
|
237
|
-
$ = D.current, D.current = null,
|
|
242
|
+
$ = D.current, D.current = null, K();
|
|
238
243
|
try {
|
|
239
|
-
if (
|
|
240
|
-
var
|
|
244
|
+
if (o) {
|
|
245
|
+
var S = function() {
|
|
241
246
|
throw Error();
|
|
242
247
|
};
|
|
243
|
-
if (Object.defineProperty(
|
|
248
|
+
if (Object.defineProperty(S.prototype, "props", {
|
|
244
249
|
set: function() {
|
|
245
250
|
throw Error();
|
|
246
251
|
}
|
|
247
252
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
248
253
|
try {
|
|
249
|
-
Reflect.construct(
|
|
254
|
+
Reflect.construct(S, []);
|
|
250
255
|
} catch (ee) {
|
|
251
256
|
c = ee;
|
|
252
257
|
}
|
|
253
|
-
Reflect.construct(e, [],
|
|
258
|
+
Reflect.construct(e, [], S);
|
|
254
259
|
} else {
|
|
255
260
|
try {
|
|
256
|
-
|
|
261
|
+
S.call();
|
|
257
262
|
} catch (ee) {
|
|
258
263
|
c = ee;
|
|
259
264
|
}
|
|
260
|
-
e.call(
|
|
265
|
+
e.call(S.prototype);
|
|
261
266
|
}
|
|
262
267
|
} else {
|
|
263
268
|
try {
|
|
@@ -269,103 +274,103 @@ function Tt() {
|
|
|
269
274
|
}
|
|
270
275
|
} catch (ee) {
|
|
271
276
|
if (ee && c && typeof ee.stack == "string") {
|
|
272
|
-
for (var
|
|
277
|
+
for (var w = ee.stack.split(`
|
|
273
278
|
`), Z = c.stack.split(`
|
|
274
|
-
`), F =
|
|
275
|
-
|
|
276
|
-
for (; F >= 1 &&
|
|
277
|
-
if (
|
|
278
|
-
if (F !== 1 ||
|
|
279
|
+
`), F = w.length - 1, Y = Z.length - 1; F >= 1 && Y >= 0 && w[F] !== Z[Y]; )
|
|
280
|
+
Y--;
|
|
281
|
+
for (; F >= 1 && Y >= 0; F--, Y--)
|
|
282
|
+
if (w[F] !== Z[Y]) {
|
|
283
|
+
if (F !== 1 || Y !== 1)
|
|
279
284
|
do
|
|
280
|
-
if (F--,
|
|
285
|
+
if (F--, Y--, Y < 0 || w[F] !== Z[Y]) {
|
|
281
286
|
var ae = `
|
|
282
|
-
` +
|
|
283
|
-
return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
287
|
+
` + w[F].replace(" at new ", " at ");
|
|
288
|
+
return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, ae), ae;
|
|
284
289
|
}
|
|
285
|
-
while (F >= 1 &&
|
|
290
|
+
while (F >= 1 && Y >= 0);
|
|
286
291
|
break;
|
|
287
292
|
}
|
|
288
293
|
}
|
|
289
294
|
} finally {
|
|
290
|
-
|
|
295
|
+
C = !1, D.current = $, J(), Error.prepareStackTrace = T;
|
|
291
296
|
}
|
|
292
|
-
var he = e ? e.displayName || e.name : "",
|
|
293
|
-
return typeof e == "function" &&
|
|
297
|
+
var he = e ? e.displayName || e.name : "", ue = he ? O(he) : "";
|
|
298
|
+
return typeof e == "function" && M.set(e, ue), ue;
|
|
294
299
|
}
|
|
295
|
-
function
|
|
296
|
-
return
|
|
300
|
+
function Ie(e, o, n) {
|
|
301
|
+
return oe(e, !1);
|
|
297
302
|
}
|
|
298
303
|
function Te(e) {
|
|
299
|
-
var
|
|
300
|
-
return !!(
|
|
304
|
+
var o = e.prototype;
|
|
305
|
+
return !!(o && o.isReactComponent);
|
|
301
306
|
}
|
|
302
|
-
function Q(e,
|
|
307
|
+
function Q(e, o, n) {
|
|
303
308
|
if (e == null)
|
|
304
309
|
return "";
|
|
305
310
|
if (typeof e == "function")
|
|
306
|
-
return
|
|
311
|
+
return oe(e, Te(e));
|
|
307
312
|
if (typeof e == "string")
|
|
308
313
|
return O(e);
|
|
309
314
|
switch (e) {
|
|
310
|
-
case
|
|
315
|
+
case I:
|
|
311
316
|
return O("Suspense");
|
|
312
|
-
case
|
|
317
|
+
case v:
|
|
313
318
|
return O("SuspenseList");
|
|
314
319
|
}
|
|
315
320
|
if (typeof e == "object")
|
|
316
321
|
switch (e.$$typeof) {
|
|
317
|
-
case
|
|
318
|
-
return
|
|
322
|
+
case i:
|
|
323
|
+
return Ie(e.render);
|
|
319
324
|
case N:
|
|
320
|
-
return Q(e.type,
|
|
321
|
-
case
|
|
322
|
-
var c = e,
|
|
325
|
+
return Q(e.type, o, n);
|
|
326
|
+
case _: {
|
|
327
|
+
var c = e, T = c._payload, $ = c._init;
|
|
323
328
|
try {
|
|
324
|
-
return Q($(
|
|
329
|
+
return Q($(T), o, n);
|
|
325
330
|
} catch {
|
|
326
331
|
}
|
|
327
332
|
}
|
|
328
333
|
}
|
|
329
334
|
return "";
|
|
330
335
|
}
|
|
331
|
-
var de = Object.prototype.hasOwnProperty,
|
|
336
|
+
var de = Object.prototype.hasOwnProperty, Ye = {}, We = R.ReactDebugCurrentFrame;
|
|
332
337
|
function Re(e) {
|
|
333
338
|
if (e) {
|
|
334
|
-
var
|
|
335
|
-
|
|
339
|
+
var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
|
|
340
|
+
We.setExtraStackFrame(n);
|
|
336
341
|
} else
|
|
337
|
-
|
|
342
|
+
We.setExtraStackFrame(null);
|
|
338
343
|
}
|
|
339
|
-
function
|
|
344
|
+
function hr(e, o, n, c, T) {
|
|
340
345
|
{
|
|
341
346
|
var $ = Function.call.bind(de);
|
|
342
|
-
for (var
|
|
343
|
-
if ($(e,
|
|
344
|
-
var
|
|
347
|
+
for (var S in e)
|
|
348
|
+
if ($(e, S)) {
|
|
349
|
+
var w = void 0;
|
|
345
350
|
try {
|
|
346
|
-
if (typeof e[
|
|
347
|
-
var Z = Error((c || "React class") + ": " + n + " type `" +
|
|
351
|
+
if (typeof e[S] != "function") {
|
|
352
|
+
var Z = Error((c || "React class") + ": " + n + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
348
353
|
throw Z.name = "Invariant Violation", Z;
|
|
349
354
|
}
|
|
350
|
-
|
|
355
|
+
w = e[S](o, S, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
351
356
|
} catch (F) {
|
|
352
|
-
|
|
357
|
+
w = F;
|
|
353
358
|
}
|
|
354
|
-
|
|
359
|
+
w && !(w instanceof Error) && (Re(T), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, S, typeof w), Re(null)), w instanceof Error && !(w.message in Ye) && (Ye[w.message] = !0, Re(T), p("Failed %s type: %s", n, w.message), Re(null));
|
|
355
360
|
}
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
|
-
var
|
|
363
|
+
var br = Array.isArray;
|
|
359
364
|
function _e(e) {
|
|
360
|
-
return
|
|
365
|
+
return br(e);
|
|
361
366
|
}
|
|
362
367
|
function vr(e) {
|
|
363
368
|
{
|
|
364
|
-
var
|
|
369
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, n = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
365
370
|
return n;
|
|
366
371
|
}
|
|
367
372
|
}
|
|
368
|
-
function
|
|
373
|
+
function kr(e) {
|
|
369
374
|
try {
|
|
370
375
|
return Ve(e), !1;
|
|
371
376
|
} catch {
|
|
@@ -375,43 +380,43 @@ function Tt() {
|
|
|
375
380
|
function Ve(e) {
|
|
376
381
|
return "" + e;
|
|
377
382
|
}
|
|
378
|
-
function
|
|
379
|
-
if (
|
|
380
|
-
return
|
|
383
|
+
function Ue(e) {
|
|
384
|
+
if (kr(e))
|
|
385
|
+
return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vr(e)), Ve(e);
|
|
381
386
|
}
|
|
382
|
-
var
|
|
387
|
+
var ve = R.ReactCurrentOwner, xr = {
|
|
383
388
|
key: !0,
|
|
384
389
|
ref: !0,
|
|
385
390
|
__self: !0,
|
|
386
391
|
__source: !0
|
|
387
|
-
}, Ge, Xe,
|
|
388
|
-
|
|
389
|
-
function
|
|
392
|
+
}, Ge, Xe, Pe;
|
|
393
|
+
Pe = {};
|
|
394
|
+
function wr(e) {
|
|
390
395
|
if (de.call(e, "ref")) {
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
396
|
+
var o = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
397
|
+
if (o && o.isReactWarning)
|
|
393
398
|
return !1;
|
|
394
399
|
}
|
|
395
400
|
return e.ref !== void 0;
|
|
396
401
|
}
|
|
397
402
|
function yr(e) {
|
|
398
403
|
if (de.call(e, "key")) {
|
|
399
|
-
var
|
|
400
|
-
if (
|
|
404
|
+
var o = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
405
|
+
if (o && o.isReactWarning)
|
|
401
406
|
return !1;
|
|
402
407
|
}
|
|
403
408
|
return e.key !== void 0;
|
|
404
409
|
}
|
|
405
|
-
function Cr(e,
|
|
406
|
-
if (typeof e.ref == "string" &&
|
|
407
|
-
var n = q(
|
|
408
|
-
|
|
410
|
+
function Cr(e, o) {
|
|
411
|
+
if (typeof e.ref == "string" && ve.current && o && ve.current.stateNode !== o) {
|
|
412
|
+
var n = q(ve.current.type);
|
|
413
|
+
Pe[n] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(ve.current.type), e.ref), Pe[n] = !0);
|
|
409
414
|
}
|
|
410
415
|
}
|
|
411
|
-
function
|
|
416
|
+
function Sr(e, o) {
|
|
412
417
|
{
|
|
413
418
|
var n = function() {
|
|
414
|
-
Ge || (Ge = !0,
|
|
419
|
+
Ge || (Ge = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
415
420
|
};
|
|
416
421
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
417
422
|
get: n,
|
|
@@ -419,10 +424,10 @@ function Tt() {
|
|
|
419
424
|
});
|
|
420
425
|
}
|
|
421
426
|
}
|
|
422
|
-
function jr(e,
|
|
427
|
+
function jr(e, o) {
|
|
423
428
|
{
|
|
424
429
|
var n = function() {
|
|
425
|
-
Xe || (Xe = !0,
|
|
430
|
+
Xe || (Xe = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
426
431
|
};
|
|
427
432
|
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
428
433
|
get: n,
|
|
@@ -430,70 +435,70 @@ function Tt() {
|
|
|
430
435
|
});
|
|
431
436
|
}
|
|
432
437
|
}
|
|
433
|
-
var Ir = function(e,
|
|
434
|
-
var
|
|
438
|
+
var Ir = function(e, o, n, c, T, $, S) {
|
|
439
|
+
var w = {
|
|
435
440
|
// This tag allows us to uniquely identify this as a React Element
|
|
436
441
|
$$typeof: r,
|
|
437
442
|
// Built-in properties that belong on the element
|
|
438
443
|
type: e,
|
|
439
|
-
key:
|
|
444
|
+
key: o,
|
|
440
445
|
ref: n,
|
|
441
|
-
props:
|
|
446
|
+
props: S,
|
|
442
447
|
// Record the component responsible for creating this element.
|
|
443
448
|
_owner: $
|
|
444
449
|
};
|
|
445
|
-
return
|
|
450
|
+
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
446
451
|
configurable: !1,
|
|
447
452
|
enumerable: !1,
|
|
448
453
|
writable: !0,
|
|
449
454
|
value: !1
|
|
450
|
-
}), Object.defineProperty(
|
|
455
|
+
}), Object.defineProperty(w, "_self", {
|
|
451
456
|
configurable: !1,
|
|
452
457
|
enumerable: !1,
|
|
453
458
|
writable: !1,
|
|
454
459
|
value: c
|
|
455
|
-
}), Object.defineProperty(
|
|
460
|
+
}), Object.defineProperty(w, "_source", {
|
|
456
461
|
configurable: !1,
|
|
457
462
|
enumerable: !1,
|
|
458
463
|
writable: !1,
|
|
459
|
-
value:
|
|
460
|
-
}), Object.freeze && (Object.freeze(
|
|
464
|
+
value: T
|
|
465
|
+
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
461
466
|
};
|
|
462
|
-
function
|
|
467
|
+
function Tr(e, o, n, c, T) {
|
|
463
468
|
{
|
|
464
|
-
var $,
|
|
465
|
-
n !== void 0 && (
|
|
466
|
-
for ($ in
|
|
467
|
-
de.call(
|
|
469
|
+
var $, S = {}, w = null, Z = null;
|
|
470
|
+
n !== void 0 && (Ue(n), w = "" + n), yr(o) && (Ue(o.key), w = "" + o.key), wr(o) && (Z = o.ref, Cr(o, T));
|
|
471
|
+
for ($ in o)
|
|
472
|
+
de.call(o, $) && !xr.hasOwnProperty($) && (S[$] = o[$]);
|
|
468
473
|
if (e && e.defaultProps) {
|
|
469
474
|
var F = e.defaultProps;
|
|
470
475
|
for ($ in F)
|
|
471
|
-
|
|
476
|
+
S[$] === void 0 && (S[$] = F[$]);
|
|
472
477
|
}
|
|
473
|
-
if (
|
|
474
|
-
var
|
|
475
|
-
|
|
478
|
+
if (w || Z) {
|
|
479
|
+
var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
480
|
+
w && Sr(S, Y), Z && jr(S, Y);
|
|
476
481
|
}
|
|
477
|
-
return Ir(e,
|
|
482
|
+
return Ir(e, w, Z, T, c, ve.current, S);
|
|
478
483
|
}
|
|
479
484
|
}
|
|
480
|
-
var
|
|
481
|
-
function
|
|
485
|
+
var De = R.ReactCurrentOwner, qe = R.ReactDebugCurrentFrame;
|
|
486
|
+
function fe(e) {
|
|
482
487
|
if (e) {
|
|
483
|
-
var
|
|
488
|
+
var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
|
|
484
489
|
qe.setExtraStackFrame(n);
|
|
485
490
|
} else
|
|
486
491
|
qe.setExtraStackFrame(null);
|
|
487
492
|
}
|
|
488
|
-
var
|
|
489
|
-
|
|
490
|
-
function
|
|
493
|
+
var $e;
|
|
494
|
+
$e = !1;
|
|
495
|
+
function Ne(e) {
|
|
491
496
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
492
497
|
}
|
|
493
|
-
function
|
|
498
|
+
function He() {
|
|
494
499
|
{
|
|
495
|
-
if (
|
|
496
|
-
var e = q(
|
|
500
|
+
if (De.current) {
|
|
501
|
+
var e = q(De.current.type);
|
|
497
502
|
if (e)
|
|
498
503
|
return `
|
|
499
504
|
|
|
@@ -502,108 +507,108 @@ Check the render method of \`` + e + "`.";
|
|
|
502
507
|
return "";
|
|
503
508
|
}
|
|
504
509
|
}
|
|
505
|
-
function
|
|
510
|
+
function Rr(e) {
|
|
506
511
|
return "";
|
|
507
512
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
513
|
+
var Je = {};
|
|
514
|
+
function Er(e) {
|
|
510
515
|
{
|
|
511
|
-
var
|
|
512
|
-
if (!
|
|
516
|
+
var o = He();
|
|
517
|
+
if (!o) {
|
|
513
518
|
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
514
|
-
n && (
|
|
519
|
+
n && (o = `
|
|
515
520
|
|
|
516
521
|
Check the top-level render call using <` + n + ">.");
|
|
517
522
|
}
|
|
518
|
-
return
|
|
523
|
+
return o;
|
|
519
524
|
}
|
|
520
525
|
}
|
|
521
|
-
function
|
|
526
|
+
function Ke(e, o) {
|
|
522
527
|
{
|
|
523
528
|
if (!e._store || e._store.validated || e.key != null)
|
|
524
529
|
return;
|
|
525
530
|
e._store.validated = !0;
|
|
526
|
-
var n =
|
|
527
|
-
if (
|
|
531
|
+
var n = Er(o);
|
|
532
|
+
if (Je[n])
|
|
528
533
|
return;
|
|
529
|
-
|
|
534
|
+
Je[n] = !0;
|
|
530
535
|
var c = "";
|
|
531
|
-
e && e._owner && e._owner !==
|
|
536
|
+
e && e._owner && e._owner !== De.current && (c = " It was passed a child from " + q(e._owner.type) + "."), fe(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, c), fe(null);
|
|
532
537
|
}
|
|
533
538
|
}
|
|
534
|
-
function Ze(e,
|
|
539
|
+
function Ze(e, o) {
|
|
535
540
|
{
|
|
536
541
|
if (typeof e != "object")
|
|
537
542
|
return;
|
|
538
543
|
if (_e(e))
|
|
539
544
|
for (var n = 0; n < e.length; n++) {
|
|
540
545
|
var c = e[n];
|
|
541
|
-
|
|
546
|
+
Ne(c) && Ke(c, o);
|
|
542
547
|
}
|
|
543
|
-
else if (
|
|
548
|
+
else if (Ne(e))
|
|
544
549
|
e._store && (e._store.validated = !0);
|
|
545
550
|
else if (e) {
|
|
546
|
-
var
|
|
547
|
-
if (typeof
|
|
548
|
-
for (var $ =
|
|
549
|
-
|
|
551
|
+
var T = u(e);
|
|
552
|
+
if (typeof T == "function" && T !== e.entries)
|
|
553
|
+
for (var $ = T.call(e), S; !(S = $.next()).done; )
|
|
554
|
+
Ne(S.value) && Ke(S.value, o);
|
|
550
555
|
}
|
|
551
556
|
}
|
|
552
557
|
}
|
|
553
|
-
function
|
|
558
|
+
function Mr(e) {
|
|
554
559
|
{
|
|
555
|
-
var
|
|
556
|
-
if (
|
|
560
|
+
var o = e.type;
|
|
561
|
+
if (o == null || typeof o == "string")
|
|
557
562
|
return;
|
|
558
563
|
var n;
|
|
559
|
-
if (typeof
|
|
560
|
-
n =
|
|
561
|
-
else if (typeof
|
|
564
|
+
if (typeof o == "function")
|
|
565
|
+
n = o.propTypes;
|
|
566
|
+
else if (typeof o == "object" && (o.$$typeof === i || // Note: Memo only checks outer props here.
|
|
562
567
|
// Inner props are checked in the reconciler.
|
|
563
|
-
|
|
564
|
-
n =
|
|
568
|
+
o.$$typeof === N))
|
|
569
|
+
n = o.propTypes;
|
|
565
570
|
else
|
|
566
571
|
return;
|
|
567
572
|
if (n) {
|
|
568
|
-
var c = q(
|
|
569
|
-
|
|
570
|
-
} else if (
|
|
571
|
-
|
|
572
|
-
var
|
|
573
|
-
|
|
573
|
+
var c = q(o);
|
|
574
|
+
hr(n, e.props, "prop", c, e);
|
|
575
|
+
} else if (o.PropTypes !== void 0 && !$e) {
|
|
576
|
+
$e = !0;
|
|
577
|
+
var T = q(o);
|
|
578
|
+
p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
|
|
574
579
|
}
|
|
575
|
-
typeof
|
|
580
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
576
581
|
}
|
|
577
582
|
}
|
|
578
583
|
function _r(e) {
|
|
579
584
|
{
|
|
580
|
-
for (var
|
|
581
|
-
var c =
|
|
585
|
+
for (var o = Object.keys(e.props), n = 0; n < o.length; n++) {
|
|
586
|
+
var c = o[n];
|
|
582
587
|
if (c !== "children" && c !== "key") {
|
|
583
|
-
|
|
588
|
+
fe(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), fe(null);
|
|
584
589
|
break;
|
|
585
590
|
}
|
|
586
591
|
}
|
|
587
|
-
e.ref !== null && (
|
|
592
|
+
e.ref !== null && (fe(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
588
593
|
}
|
|
589
594
|
}
|
|
590
595
|
var Qe = {};
|
|
591
|
-
function er(e,
|
|
596
|
+
function er(e, o, n, c, T, $) {
|
|
592
597
|
{
|
|
593
|
-
var
|
|
594
|
-
if (!
|
|
595
|
-
var
|
|
596
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
597
|
-
var Z =
|
|
598
|
-
Z ?
|
|
598
|
+
var S = ce(e);
|
|
599
|
+
if (!S) {
|
|
600
|
+
var w = "";
|
|
601
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
602
|
+
var Z = Rr();
|
|
603
|
+
Z ? w += Z : w += He();
|
|
599
604
|
var F;
|
|
600
|
-
e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (q(e.type) || "Unknown") + " />",
|
|
605
|
+
e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (q(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
|
|
601
606
|
}
|
|
602
|
-
var
|
|
603
|
-
if (
|
|
604
|
-
return
|
|
605
|
-
if (
|
|
606
|
-
var ae =
|
|
607
|
+
var Y = Tr(e, o, n, T, $);
|
|
608
|
+
if (Y == null)
|
|
609
|
+
return Y;
|
|
610
|
+
if (S) {
|
|
611
|
+
var ae = o.children;
|
|
607
612
|
if (ae !== void 0)
|
|
608
613
|
if (c)
|
|
609
614
|
if (_e(ae)) {
|
|
@@ -611,40 +616,40 @@ Check the top-level render call using <` + n + ">.");
|
|
|
611
616
|
Ze(ae[he], e);
|
|
612
617
|
Object.freeze && Object.freeze(ae);
|
|
613
618
|
} else
|
|
614
|
-
|
|
619
|
+
p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
615
620
|
else
|
|
616
621
|
Ze(ae, e);
|
|
617
622
|
}
|
|
618
|
-
if (de.call(
|
|
619
|
-
var
|
|
620
|
-
return
|
|
621
|
-
}),
|
|
622
|
-
if (!Qe[
|
|
623
|
-
var
|
|
624
|
-
|
|
623
|
+
if (de.call(o, "key")) {
|
|
624
|
+
var ue = q(e), ee = Object.keys(o).filter(function(Ar) {
|
|
625
|
+
return Ar !== "key";
|
|
626
|
+
}), Oe = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
627
|
+
if (!Qe[ue + Oe]) {
|
|
628
|
+
var Or = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
629
|
+
p(`A props object containing a "key" prop is being spread into JSX:
|
|
625
630
|
let props = %s;
|
|
626
631
|
<%s {...props} />
|
|
627
632
|
React keys must be passed directly to JSX without using spread:
|
|
628
633
|
let props = %s;
|
|
629
|
-
<%s key={someKey} {...props} />`,
|
|
634
|
+
<%s key={someKey} {...props} />`, Oe, ue, Or, ue), Qe[ue + Oe] = !0;
|
|
630
635
|
}
|
|
631
636
|
}
|
|
632
|
-
return e === a ? _r(
|
|
637
|
+
return e === a ? _r(Y) : Mr(Y), Y;
|
|
633
638
|
}
|
|
634
639
|
}
|
|
635
|
-
function
|
|
636
|
-
return er(e,
|
|
640
|
+
function Pr(e, o, n) {
|
|
641
|
+
return er(e, o, n, !0);
|
|
637
642
|
}
|
|
638
|
-
function
|
|
639
|
-
return er(e,
|
|
643
|
+
function Dr(e, o, n) {
|
|
644
|
+
return er(e, o, n, !1);
|
|
640
645
|
}
|
|
641
|
-
var
|
|
642
|
-
|
|
643
|
-
}()),
|
|
646
|
+
var $r = Dr, Nr = Pr;
|
|
647
|
+
xe.Fragment = a, xe.jsx = $r, xe.jsxs = Nr;
|
|
648
|
+
}()), xe;
|
|
644
649
|
}
|
|
645
|
-
process.env.NODE_ENV === "production" ? Le.exports =
|
|
646
|
-
var
|
|
647
|
-
const
|
|
650
|
+
process.env.NODE_ENV === "production" ? Le.exports = _o() : Le.exports = Po();
|
|
651
|
+
var t = Le.exports;
|
|
652
|
+
const sr = {
|
|
648
653
|
token: {
|
|
649
654
|
itemNameColor: "#1a1a1a",
|
|
650
655
|
itemIconBackgroundColor: "white",
|
|
@@ -670,26 +675,26 @@ const lr = {
|
|
|
670
675
|
contextMenuBackgroundColor: "#1a1a1a",
|
|
671
676
|
contextMenuShadowColor: "rgba(255, 255, 255, 0.1)"
|
|
672
677
|
}
|
|
673
|
-
},
|
|
678
|
+
}, dr = ar(
|
|
674
679
|
{}
|
|
675
|
-
),
|
|
676
|
-
const { children: r, theme:
|
|
677
|
-
return /* @__PURE__ */
|
|
678
|
-
}, me = () => ir(
|
|
680
|
+
), Do = (g) => {
|
|
681
|
+
const { children: r, theme: l, ...a } = g, m = Ee(() => l === "light" ? sr : l === "dark" ? cr : l, [l]);
|
|
682
|
+
return /* @__PURE__ */ t.jsx(dr.Provider, { value: { theme: m, ...a }, children: r });
|
|
683
|
+
}, me = () => ir(dr), ur = {
|
|
679
684
|
maxRow: 2,
|
|
680
685
|
maxCol: 2
|
|
681
|
-
},
|
|
682
|
-
...
|
|
683
|
-
},
|
|
684
|
-
app:
|
|
685
|
-
group:
|
|
686
|
+
}, $o = {
|
|
687
|
+
...ur
|
|
688
|
+
}, gr = {
|
|
689
|
+
app: ur,
|
|
690
|
+
group: $o
|
|
686
691
|
};
|
|
687
692
|
class ie {
|
|
688
693
|
}
|
|
689
694
|
/** 清理重复id */
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
return { light:
|
|
695
|
+
Ae(ie, "uniqueArray", (r) => r.reduce((l, a) => l.find((s) => s.id === a.id) ? l : l.concat([a]), [])), Ae(ie, "getTheme", (r) => {
|
|
696
|
+
const l = sr.token, a = cr.token, m = { ...l, ...r == null ? void 0 : r.token }, s = { ...a, ...r == null ? void 0 : r.token };
|
|
697
|
+
return { light: m, dark: s };
|
|
693
698
|
});
|
|
694
699
|
const mr = ar({
|
|
695
700
|
list: [],
|
|
@@ -726,197 +731,197 @@ const mr = ar({
|
|
|
726
731
|
moveTargetId: null,
|
|
727
732
|
setMoveTargetId: () => {
|
|
728
733
|
}
|
|
729
|
-
}),
|
|
734
|
+
}), No = (g) => {
|
|
730
735
|
const {
|
|
731
736
|
children: r,
|
|
732
|
-
list:
|
|
737
|
+
list: l = [],
|
|
733
738
|
onChange: a,
|
|
734
|
-
storageKey:
|
|
735
|
-
enableCaching:
|
|
736
|
-
} =
|
|
739
|
+
storageKey: m = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
|
|
740
|
+
enableCaching: s = !0
|
|
741
|
+
} = g, [f, b] = te(), [i, I] = te(), [v, N] = te(null), _ = Me(v), [W, V] = te(null), [h, u] = te([]), [R, p] = te(
|
|
737
742
|
null
|
|
738
|
-
), [G,
|
|
743
|
+
), [G, k] = te(
|
|
739
744
|
null
|
|
740
|
-
), [P,
|
|
745
|
+
), [P, E] = te(!1), [x, y] = te(null), [X, ce] = te(
|
|
741
746
|
null
|
|
742
|
-
), [
|
|
747
|
+
), [H, pe] = te(!1), [q, re] = Yr(m, {
|
|
743
748
|
defaultValue: [],
|
|
744
749
|
listenStorageChange: !0
|
|
745
|
-
}),
|
|
746
|
-
|
|
747
|
-
}, B = (
|
|
748
|
-
|
|
749
|
-
}, ne = (
|
|
750
|
-
const { config:
|
|
751
|
-
return
|
|
750
|
+
}), le = () => {
|
|
751
|
+
V(null), clearTimeout(f), b(void 0), _.current = null;
|
|
752
|
+
}, B = (j, K) => {
|
|
753
|
+
V({ ...j, pageX: j.pageX, pageY: j.pageY, data: K }), clearTimeout(f);
|
|
754
|
+
}, ne = (j, K = !0) => {
|
|
755
|
+
const { config: J = {} } = j;
|
|
756
|
+
return J.allowContextMenu === !1 ? {} : {
|
|
752
757
|
onMouseDown: (D) => {
|
|
753
758
|
b(
|
|
754
759
|
setTimeout(() => {
|
|
755
|
-
|
|
760
|
+
K && _.current === null && B(D, j);
|
|
756
761
|
}, 800)
|
|
757
|
-
),
|
|
762
|
+
), E(!1), I(
|
|
758
763
|
setTimeout(() => {
|
|
759
|
-
|
|
764
|
+
E(!0);
|
|
760
765
|
}, 800)
|
|
761
766
|
);
|
|
762
767
|
},
|
|
763
768
|
onMouseUp: () => {
|
|
764
|
-
clearTimeout(
|
|
769
|
+
clearTimeout(i), I(void 0), clearTimeout(f), b(void 0);
|
|
765
770
|
},
|
|
766
771
|
onContextMenu: (D) => {
|
|
767
|
-
|
|
772
|
+
K && (D.preventDefault(), B(D, j));
|
|
768
773
|
}
|
|
769
774
|
};
|
|
770
|
-
},
|
|
771
|
-
const
|
|
772
|
-
if (
|
|
773
|
-
|
|
774
|
-
const L = [...D], O = (
|
|
775
|
-
var
|
|
776
|
-
const
|
|
777
|
-
if (
|
|
778
|
-
if (((
|
|
779
|
-
(Q) => !
|
|
780
|
-
).length) === 1 &&
|
|
781
|
-
const Q = { ...
|
|
782
|
-
return
|
|
775
|
+
}, se = (j, K) => {
|
|
776
|
+
const J = [...K || []];
|
|
777
|
+
if (J.length > 0)
|
|
778
|
+
u((D) => {
|
|
779
|
+
const L = [...D], O = (C) => {
|
|
780
|
+
var Ie, Te;
|
|
781
|
+
const M = J.shift(), U = C.find((Q) => Q.id === M), oe = C.findIndex((Q) => Q.id === M);
|
|
782
|
+
if (J.length && U) {
|
|
783
|
+
if (((Ie = U.children) == null ? void 0 : Ie.filter(
|
|
784
|
+
(Q) => !j.some((de) => de.id === Q.id)
|
|
785
|
+
).length) === 1 && j.length === 1) {
|
|
786
|
+
const Q = { ...j[0] };
|
|
787
|
+
return C.splice(oe, 1, Q), a == null || a(C), C;
|
|
783
788
|
}
|
|
784
|
-
return
|
|
789
|
+
return U.children = O(U.children || []), C.splice(oe, 1, U), a == null || a(C), C;
|
|
785
790
|
}
|
|
786
|
-
if (
|
|
787
|
-
if (!((Te =
|
|
788
|
-
const Q = { ...
|
|
789
|
-
return
|
|
791
|
+
if (U) {
|
|
792
|
+
if (!((Te = U.children) != null && Te.length) && j.length) {
|
|
793
|
+
const Q = { ...U };
|
|
794
|
+
return U.data = { name: "文件夹" }, U.type = "group", U.children = [Q, ...j], U.id = rr(), C.splice(oe, 1, U), a == null || a(C), C;
|
|
790
795
|
}
|
|
791
|
-
return
|
|
796
|
+
return U.children = ie.uniqueArray(j), C.splice(oe, 1, U), a == null || a(C), C;
|
|
792
797
|
}
|
|
793
|
-
return ie.uniqueArray(
|
|
798
|
+
return ie.uniqueArray(j);
|
|
794
799
|
};
|
|
795
800
|
return ie.uniqueArray(O(L));
|
|
796
801
|
});
|
|
797
802
|
else {
|
|
798
|
-
const D = ie.uniqueArray(
|
|
799
|
-
a == null || a(D),
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
|
|
803
|
-
const D = [...
|
|
804
|
-
var
|
|
805
|
-
for (let
|
|
806
|
-
if (O[
|
|
807
|
-
O[
|
|
803
|
+
const D = ie.uniqueArray(j);
|
|
804
|
+
a == null || a(D), u(D);
|
|
805
|
+
}
|
|
806
|
+
}, ye = (j, K) => {
|
|
807
|
+
u((J) => {
|
|
808
|
+
const D = [...J], L = (O) => {
|
|
809
|
+
var C;
|
|
810
|
+
for (let M = 0; M < O.length; M++)
|
|
811
|
+
if (O[M].id === j) {
|
|
812
|
+
O[M].config = K;
|
|
808
813
|
break;
|
|
809
|
-
} else ((
|
|
814
|
+
} else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
|
|
810
815
|
};
|
|
811
816
|
return L(D), a == null || a(D), D;
|
|
812
817
|
});
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
const D = [...
|
|
816
|
-
var
|
|
817
|
-
for (let
|
|
818
|
-
if (O[
|
|
819
|
-
O[
|
|
818
|
+
}, Ce = (j, K) => {
|
|
819
|
+
u((J) => {
|
|
820
|
+
const D = [...J], L = (O) => {
|
|
821
|
+
var C;
|
|
822
|
+
for (let M = 0; M < O.length; M++)
|
|
823
|
+
if (O[M].id === j) {
|
|
824
|
+
O[M].data = K;
|
|
820
825
|
break;
|
|
821
|
-
} else ((
|
|
826
|
+
} else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
|
|
822
827
|
};
|
|
823
828
|
return L(D), a == null || a(D), D;
|
|
824
829
|
});
|
|
825
|
-
},
|
|
826
|
-
|
|
827
|
-
const
|
|
830
|
+
}, Se = (j) => {
|
|
831
|
+
u((K) => {
|
|
832
|
+
const J = [...K], D = (L) => {
|
|
828
833
|
var O;
|
|
829
|
-
for (let
|
|
830
|
-
if (L[
|
|
831
|
-
L.splice(
|
|
834
|
+
for (let C = 0; C < L.length; C++)
|
|
835
|
+
if (L[C].id === j) {
|
|
836
|
+
L.splice(C, 1);
|
|
832
837
|
break;
|
|
833
|
-
} else ((O = L[
|
|
838
|
+
} else ((O = L[C].children) == null ? void 0 : O.length) !== void 0 && D(L[C].children);
|
|
834
839
|
};
|
|
835
|
-
return D(
|
|
840
|
+
return D(J), a == null || a(J), J;
|
|
836
841
|
});
|
|
837
|
-
},
|
|
838
|
-
const
|
|
839
|
-
const
|
|
840
|
-
if (
|
|
842
|
+
}, je = (j, K) => {
|
|
843
|
+
const J = [...h], D = (L, O) => {
|
|
844
|
+
const C = O.shift(), M = L.find((oe) => oe.id === C), U = L.findIndex((oe) => oe.id === C);
|
|
845
|
+
if (M) {
|
|
841
846
|
if (O.length)
|
|
842
|
-
|
|
847
|
+
M.children = D(M.children || [], O);
|
|
843
848
|
else {
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
...
|
|
849
|
+
const oe = (j == null ? void 0 : j.type) ?? "app";
|
|
850
|
+
M.children = [
|
|
851
|
+
...M.children ?? [],
|
|
847
852
|
{
|
|
848
|
-
...
|
|
853
|
+
...j,
|
|
849
854
|
id: rr(),
|
|
850
|
-
config: (
|
|
855
|
+
config: (j == null ? void 0 : j.config) ?? gr[oe]
|
|
851
856
|
}
|
|
852
857
|
];
|
|
853
858
|
}
|
|
854
|
-
return L.splice(
|
|
859
|
+
return L.splice(U, 1, M), L;
|
|
855
860
|
} else
|
|
856
861
|
return L;
|
|
857
862
|
};
|
|
858
|
-
|
|
863
|
+
u(D(J, K));
|
|
859
864
|
};
|
|
860
|
-
return
|
|
861
|
-
(
|
|
862
|
-
}, [
|
|
863
|
-
|
|
864
|
-
}, [
|
|
865
|
-
|
|
866
|
-
}, [q,
|
|
865
|
+
return we(() => {
|
|
866
|
+
(l == null ? void 0 : l.length) > 0 && h.length === 0 && se(l);
|
|
867
|
+
}, [l]), we(() => {
|
|
868
|
+
_.current = v, v !== null && le();
|
|
869
|
+
}, [v]), we(() => {
|
|
870
|
+
s && q != null && q.length && !H && (se(q), pe(!0));
|
|
871
|
+
}, [q, H, s]), Wr(
|
|
867
872
|
() => {
|
|
868
|
-
|
|
873
|
+
s && re(h);
|
|
869
874
|
},
|
|
870
|
-
[
|
|
875
|
+
[h, s],
|
|
871
876
|
{
|
|
872
877
|
wait: 1e3
|
|
873
878
|
}
|
|
874
|
-
), /* @__PURE__ */
|
|
879
|
+
), /* @__PURE__ */ t.jsx(
|
|
875
880
|
mr.Provider,
|
|
876
881
|
{
|
|
877
882
|
value: {
|
|
878
|
-
list:
|
|
879
|
-
setList:
|
|
880
|
-
contextMenu:
|
|
881
|
-
setContextMenu:
|
|
882
|
-
listStatus:
|
|
883
|
+
list: h,
|
|
884
|
+
setList: se,
|
|
885
|
+
contextMenu: W,
|
|
886
|
+
setContextMenu: V,
|
|
887
|
+
listStatus: v,
|
|
883
888
|
setListStatus: N,
|
|
884
889
|
contextMenuFuns: ne,
|
|
885
|
-
hideContextMenu:
|
|
886
|
-
showInfoItemData:
|
|
887
|
-
setShowInfoItemData:
|
|
890
|
+
hideContextMenu: le,
|
|
891
|
+
showInfoItemData: R,
|
|
892
|
+
setShowInfoItemData: p,
|
|
888
893
|
openGroupItemData: G,
|
|
889
|
-
setOpenGroupItemData:
|
|
894
|
+
setOpenGroupItemData: k,
|
|
890
895
|
longPressTriggered: P,
|
|
891
|
-
updateItemConfig:
|
|
892
|
-
updateItem:
|
|
893
|
-
removeItem:
|
|
894
|
-
addItem:
|
|
896
|
+
updateItemConfig: ye,
|
|
897
|
+
updateItem: Ce,
|
|
898
|
+
removeItem: Se,
|
|
899
|
+
addItem: je,
|
|
895
900
|
moveItemId: x,
|
|
896
|
-
setMoveItemId:
|
|
901
|
+
setMoveItemId: y,
|
|
897
902
|
moveTargetId: X,
|
|
898
903
|
setMoveTargetId: ce
|
|
899
904
|
},
|
|
900
905
|
children: r
|
|
901
906
|
}
|
|
902
907
|
);
|
|
903
|
-
},
|
|
908
|
+
}, be = () => ir(mr), Oo = {
|
|
904
909
|
menuShow: {
|
|
905
910
|
opacity: 1,
|
|
906
911
|
y: 0,
|
|
907
912
|
transition: { type: "spring", stiffness: 300, damping: 24 }
|
|
908
913
|
},
|
|
909
914
|
menuHide: { opacity: 0, y: 20, transition: { duration: 0.2 } }
|
|
910
|
-
},
|
|
911
|
-
const { icon: r, title:
|
|
912
|
-
return /* @__PURE__ */
|
|
915
|
+
}, Be = (g) => {
|
|
916
|
+
const { icon: r, title: l, onClick: a } = g, { theme: m } = me(), { light: s, dark: f } = ie.getTheme(m);
|
|
917
|
+
return /* @__PURE__ */ t.jsx(
|
|
913
918
|
A.div,
|
|
914
919
|
{
|
|
915
|
-
className:
|
|
920
|
+
className: d`
|
|
916
921
|
&:hover {
|
|
917
|
-
background-color: ${
|
|
922
|
+
background-color: ${s.contextMenuActiveColor};
|
|
918
923
|
@media (prefers-color-scheme: dark) {
|
|
919
|
-
background-color: ${
|
|
924
|
+
background-color: ${f.contextMenuActiveColor};
|
|
920
925
|
}
|
|
921
926
|
}
|
|
922
927
|
@media (prefers-color-scheme: dark) {
|
|
@@ -932,13 +937,13 @@ const mr = ar({
|
|
|
932
937
|
onClick: (b) => {
|
|
933
938
|
b.stopPropagation(), a == null || a();
|
|
934
939
|
},
|
|
935
|
-
variants:
|
|
936
|
-
children: /* @__PURE__ */
|
|
940
|
+
variants: Oo,
|
|
941
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
937
942
|
A.div,
|
|
938
943
|
{
|
|
939
|
-
className:
|
|
944
|
+
className: z(
|
|
940
945
|
"py-1.5 px-3 rounded-lg",
|
|
941
|
-
|
|
946
|
+
d`
|
|
942
947
|
padding-top: 0.375rem;
|
|
943
948
|
padding-bottom: 0.375rem;
|
|
944
949
|
padding-left: 0.75rem;
|
|
@@ -948,11 +953,11 @@ const mr = ar({
|
|
|
948
953
|
),
|
|
949
954
|
whileTap: { scale: 0.9 },
|
|
950
955
|
children: [
|
|
951
|
-
/* @__PURE__ */
|
|
956
|
+
/* @__PURE__ */ t.jsx(
|
|
952
957
|
A.div,
|
|
953
958
|
{
|
|
954
|
-
className:
|
|
955
|
-
|
|
959
|
+
className: z(
|
|
960
|
+
d`
|
|
956
961
|
margin-bottom: 0.375rem;
|
|
957
962
|
display: flex;
|
|
958
963
|
justify-content: center;
|
|
@@ -961,65 +966,65 @@ const mr = ar({
|
|
|
961
966
|
children: r
|
|
962
967
|
}
|
|
963
968
|
),
|
|
964
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ t.jsx(A.div, { children: l })
|
|
965
970
|
]
|
|
966
971
|
}
|
|
967
972
|
)
|
|
968
973
|
}
|
|
969
974
|
);
|
|
970
|
-
},
|
|
975
|
+
}, Ao = (g) => {
|
|
971
976
|
const {
|
|
972
977
|
showInfoButton: r = !0,
|
|
973
|
-
showRemoveButton:
|
|
978
|
+
showRemoveButton: l = !0,
|
|
974
979
|
showShareButton: a = !0,
|
|
975
|
-
showSizeButton:
|
|
976
|
-
onInfoClick:
|
|
977
|
-
onShareClick:
|
|
980
|
+
showSizeButton: m = !0,
|
|
981
|
+
onInfoClick: s,
|
|
982
|
+
onShareClick: f,
|
|
978
983
|
onRemoveClick: b
|
|
979
|
-
} =
|
|
980
|
-
contextMenu:
|
|
981
|
-
setContextMenu:
|
|
982
|
-
hideContextMenu:
|
|
984
|
+
} = g, {
|
|
985
|
+
contextMenu: i,
|
|
986
|
+
setContextMenu: I,
|
|
987
|
+
hideContextMenu: v,
|
|
983
988
|
setShowInfoItemData: N,
|
|
984
|
-
removeItem:
|
|
985
|
-
updateItemConfig:
|
|
986
|
-
} =
|
|
987
|
-
var
|
|
988
|
-
const
|
|
989
|
-
for (let x = 1; x <= ((
|
|
990
|
-
for (let
|
|
991
|
-
P.push(`${x}x${
|
|
989
|
+
removeItem: _,
|
|
990
|
+
updateItemConfig: W
|
|
991
|
+
} = be(), { theme: V } = me(), { light: h, dark: u } = ie.getTheme(V), { data: R } = i ?? {}, { config: p = {} } = R ?? {}, G = () => {
|
|
992
|
+
var E;
|
|
993
|
+
const k = gr[(E = i == null ? void 0 : i.data) == null ? void 0 : E.type], P = [];
|
|
994
|
+
for (let x = 1; x <= ((k == null ? void 0 : k.maxRow) ?? 2); x++)
|
|
995
|
+
for (let y = 1; y <= ((k == null ? void 0 : k.maxCol) ?? 2); y++)
|
|
996
|
+
P.push(`${x}x${y}`);
|
|
992
997
|
return P;
|
|
993
998
|
};
|
|
994
|
-
return /* @__PURE__ */
|
|
999
|
+
return /* @__PURE__ */ t.jsx(zr, { children: i && /* @__PURE__ */ t.jsxs(
|
|
995
1000
|
A.div,
|
|
996
1001
|
{
|
|
997
1002
|
initial: { opacity: 0 },
|
|
998
1003
|
animate: { opacity: 1 },
|
|
999
1004
|
exit: { opacity: 0 },
|
|
1000
|
-
onMouseDown: (
|
|
1001
|
-
|
|
1005
|
+
onMouseDown: (k) => {
|
|
1006
|
+
k.stopPropagation(), k.preventDefault();
|
|
1002
1007
|
},
|
|
1003
1008
|
children: [
|
|
1004
|
-
/* @__PURE__ */
|
|
1009
|
+
/* @__PURE__ */ t.jsx(
|
|
1005
1010
|
A.div,
|
|
1006
1011
|
{
|
|
1007
|
-
className:
|
|
1008
|
-
|
|
1012
|
+
className: z(
|
|
1013
|
+
d`
|
|
1009
1014
|
border-radius: 0.5rem;
|
|
1010
1015
|
overflow: hidden;
|
|
1011
|
-
background-color: ${
|
|
1012
|
-
box-shadow: 0 0 0.5rem ${
|
|
1016
|
+
background-color: ${h.contextMenuBackgroundColor};
|
|
1017
|
+
box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
|
|
1013
1018
|
@media (prefers-color-scheme: dark) {
|
|
1014
|
-
background-color: ${
|
|
1015
|
-
box-shadow: 0 0 0.5rem ${
|
|
1019
|
+
background-color: ${u.contextMenuBackgroundColor};
|
|
1020
|
+
box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
|
|
1016
1021
|
}
|
|
1017
1022
|
`
|
|
1018
1023
|
),
|
|
1019
|
-
children:
|
|
1024
|
+
children: m && p.allowResize !== !1 && /* @__PURE__ */ t.jsx(
|
|
1020
1025
|
A.ul,
|
|
1021
1026
|
{
|
|
1022
|
-
className:
|
|
1027
|
+
className: d`
|
|
1023
1028
|
background-color: white;
|
|
1024
1029
|
padding: 0.25rem;
|
|
1025
1030
|
margin: 0;
|
|
@@ -1028,33 +1033,33 @@ const mr = ar({
|
|
|
1028
1033
|
{
|
|
1029
1034
|
label: "修改大小",
|
|
1030
1035
|
key: "size",
|
|
1031
|
-
icon: /* @__PURE__ */
|
|
1032
|
-
items: G().map((
|
|
1033
|
-
label:
|
|
1034
|
-
key:
|
|
1036
|
+
icon: /* @__PURE__ */ t.jsx(Ur, { size: 14 }),
|
|
1037
|
+
items: G().map((k) => ({
|
|
1038
|
+
label: k,
|
|
1039
|
+
key: k,
|
|
1035
1040
|
onClick: () => {
|
|
1036
|
-
const [P,
|
|
1037
|
-
|
|
1041
|
+
const [P, E] = k.split("x").map(Number);
|
|
1042
|
+
W(i.data.id, {
|
|
1038
1043
|
row: P,
|
|
1039
|
-
col:
|
|
1044
|
+
col: E
|
|
1040
1045
|
});
|
|
1041
1046
|
}
|
|
1042
1047
|
}))
|
|
1043
1048
|
}
|
|
1044
|
-
].map((
|
|
1049
|
+
].map((k) => /* @__PURE__ */ t.jsxs(
|
|
1045
1050
|
A.li,
|
|
1046
1051
|
{
|
|
1047
|
-
className:
|
|
1052
|
+
className: d`
|
|
1048
1053
|
padding-top: 0.5rem;
|
|
1049
1054
|
padding-bottom: 0.5rem;
|
|
1050
1055
|
padding-left: 0.75rem;
|
|
1051
1056
|
padding-right: 0.75rem;
|
|
1052
1057
|
`,
|
|
1053
1058
|
children: [
|
|
1054
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ t.jsxs(
|
|
1055
1060
|
A.p,
|
|
1056
1061
|
{
|
|
1057
|
-
className:
|
|
1062
|
+
className: d`
|
|
1058
1063
|
display: flex;
|
|
1059
1064
|
align-items: center;
|
|
1060
1065
|
font-size: 0.875rem;
|
|
@@ -1064,26 +1069,26 @@ const mr = ar({
|
|
|
1064
1069
|
margin: 0;
|
|
1065
1070
|
`,
|
|
1066
1071
|
children: [
|
|
1067
|
-
|
|
1072
|
+
k.icon,
|
|
1068
1073
|
" ",
|
|
1069
|
-
|
|
1074
|
+
k.label
|
|
1070
1075
|
]
|
|
1071
1076
|
}
|
|
1072
1077
|
),
|
|
1073
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ t.jsx(
|
|
1074
1079
|
A.div,
|
|
1075
1080
|
{
|
|
1076
|
-
className:
|
|
1081
|
+
className: d`
|
|
1077
1082
|
display: grid;
|
|
1078
1083
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1079
1084
|
gap: 0.25rem;
|
|
1080
1085
|
`,
|
|
1081
|
-
children:
|
|
1086
|
+
children: k.items.map((P) => /* @__PURE__ */ t.jsx(
|
|
1082
1087
|
A.div,
|
|
1083
1088
|
{
|
|
1084
|
-
className:
|
|
1089
|
+
className: z(
|
|
1085
1090
|
"py-1 px-2 hover:bg-gray-100 rounded transition-all cursor-pointer text-center text-sm",
|
|
1086
|
-
|
|
1091
|
+
d`
|
|
1087
1092
|
padding-top: 0.25rem;
|
|
1088
1093
|
padding-bottom: 0.25rem;
|
|
1089
1094
|
padding-left: 0.5rem;
|
|
@@ -1094,21 +1099,21 @@ const mr = ar({
|
|
|
1094
1099
|
line-height: 1.25rem;
|
|
1095
1100
|
cursor: pointer;
|
|
1096
1101
|
text-align: center;
|
|
1097
|
-
color: ${
|
|
1102
|
+
color: ${h.contextMenuTextColor};
|
|
1098
1103
|
@media (prefers-color-scheme: dark) {
|
|
1099
|
-
color: ${
|
|
1104
|
+
color: ${u.contextMenuTextColor};
|
|
1100
1105
|
}
|
|
1101
1106
|
&:hover {
|
|
1102
|
-
background-color: ${
|
|
1107
|
+
background-color: ${h.contextMenuActiveColor};
|
|
1103
1108
|
@media (prefers-color-scheme: dark) {
|
|
1104
|
-
background-color: ${
|
|
1109
|
+
background-color: ${u.contextMenuActiveColor};
|
|
1105
1110
|
}
|
|
1106
1111
|
}
|
|
1107
1112
|
`,
|
|
1108
|
-
`${
|
|
1109
|
-
background-color: ${
|
|
1113
|
+
`${p.row}x${p.col}` === P.key && d`
|
|
1114
|
+
background-color: ${h.contextMenuActiveColor};
|
|
1110
1115
|
@media (prefers-color-scheme: dark) {
|
|
1111
|
-
background-color: ${
|
|
1116
|
+
background-color: ${u.contextMenuActiveColor};
|
|
1112
1117
|
}
|
|
1113
1118
|
`
|
|
1114
1119
|
),
|
|
@@ -1121,22 +1126,22 @@ const mr = ar({
|
|
|
1121
1126
|
)
|
|
1122
1127
|
]
|
|
1123
1128
|
},
|
|
1124
|
-
|
|
1129
|
+
k.key
|
|
1125
1130
|
))
|
|
1126
1131
|
}
|
|
1127
1132
|
)
|
|
1128
1133
|
}
|
|
1129
1134
|
),
|
|
1130
|
-
/* @__PURE__ */
|
|
1135
|
+
/* @__PURE__ */ t.jsxs(
|
|
1131
1136
|
A.div,
|
|
1132
1137
|
{
|
|
1133
|
-
className:
|
|
1134
|
-
|
|
1135
|
-
background-color: ${
|
|
1136
|
-
box-shadow: 0 0 0.5rem ${
|
|
1138
|
+
className: z(
|
|
1139
|
+
d`
|
|
1140
|
+
background-color: ${h.contextMenuBackgroundColor};
|
|
1141
|
+
box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
|
|
1137
1142
|
@media (prefers-color-scheme: dark) {
|
|
1138
|
-
background-color: ${
|
|
1139
|
-
box-shadow: 0 0 0.5rem ${
|
|
1143
|
+
background-color: ${u.contextMenuBackgroundColor};
|
|
1144
|
+
box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
|
|
1140
1145
|
}
|
|
1141
1146
|
display: flex;
|
|
1142
1147
|
justify-content: space-around;
|
|
@@ -1148,48 +1153,48 @@ const mr = ar({
|
|
|
1148
1153
|
`
|
|
1149
1154
|
),
|
|
1150
1155
|
children: [
|
|
1151
|
-
a && /* @__PURE__ */
|
|
1152
|
-
|
|
1156
|
+
a && /* @__PURE__ */ t.jsx(
|
|
1157
|
+
Be,
|
|
1153
1158
|
{
|
|
1154
|
-
icon: /* @__PURE__ */
|
|
1159
|
+
icon: /* @__PURE__ */ t.jsx(Gr, { size: 20 }),
|
|
1155
1160
|
title: "分享",
|
|
1156
1161
|
onClick: () => {
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1162
|
+
if (f) {
|
|
1163
|
+
f(i.data);
|
|
1159
1164
|
return;
|
|
1160
1165
|
}
|
|
1161
1166
|
}
|
|
1162
1167
|
}
|
|
1163
1168
|
),
|
|
1164
|
-
r && /* @__PURE__ */
|
|
1165
|
-
|
|
1169
|
+
r && /* @__PURE__ */ t.jsx(
|
|
1170
|
+
Be,
|
|
1166
1171
|
{
|
|
1167
|
-
icon: /* @__PURE__ */
|
|
1172
|
+
icon: /* @__PURE__ */ t.jsx(Xr, { size: 20 }),
|
|
1168
1173
|
title: "信息",
|
|
1169
1174
|
onClick: () => {
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1175
|
+
if (s) {
|
|
1176
|
+
s(i.data);
|
|
1172
1177
|
return;
|
|
1173
1178
|
}
|
|
1174
1179
|
N({
|
|
1175
|
-
...
|
|
1176
|
-
pageX:
|
|
1177
|
-
pageY:
|
|
1178
|
-
}),
|
|
1180
|
+
...i.data,
|
|
1181
|
+
pageX: i.pageX,
|
|
1182
|
+
pageY: i.pageY
|
|
1183
|
+
}), v();
|
|
1179
1184
|
}
|
|
1180
1185
|
}
|
|
1181
1186
|
),
|
|
1182
|
-
|
|
1183
|
-
|
|
1187
|
+
l && /* @__PURE__ */ t.jsx(
|
|
1188
|
+
Be,
|
|
1184
1189
|
{
|
|
1185
|
-
icon: /* @__PURE__ */
|
|
1190
|
+
icon: /* @__PURE__ */ t.jsx(qr, { size: 20 }),
|
|
1186
1191
|
title: "移除",
|
|
1187
1192
|
onClick: () => {
|
|
1188
1193
|
if (b) {
|
|
1189
|
-
b(
|
|
1194
|
+
b(i.data, _);
|
|
1190
1195
|
return;
|
|
1191
1196
|
}
|
|
1192
|
-
|
|
1197
|
+
I(null), _(i.data.id);
|
|
1193
1198
|
}
|
|
1194
1199
|
}
|
|
1195
1200
|
)
|
|
@@ -1199,13 +1204,13 @@ const mr = ar({
|
|
|
1199
1204
|
]
|
|
1200
1205
|
}
|
|
1201
1206
|
) });
|
|
1202
|
-
},
|
|
1203
|
-
const { data: r, noLetters:
|
|
1204
|
-
return /* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1207
|
+
}, Bo = (g) => {
|
|
1208
|
+
const { data: r, noLetters: l = !1 } = g, { contextMenuFuns: a } = be(), { itemIconBuilder: m, theme: s, contextMenu: f } = me(), { light: b, dark: i } = ie.getTheme(s), { data: I = {} } = r, { name: v } = I;
|
|
1209
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1210
|
+
/* @__PURE__ */ t.jsx(
|
|
1206
1211
|
A.div,
|
|
1207
1212
|
{
|
|
1208
|
-
className:
|
|
1213
|
+
className: d`
|
|
1209
1214
|
width: 4rem;
|
|
1210
1215
|
height: 4rem;
|
|
1211
1216
|
background-color: ${b.itemIconBackgroundColor};
|
|
@@ -1215,15 +1220,15 @@ const mr = ar({
|
|
|
1215
1220
|
position: relative;
|
|
1216
1221
|
overflow: hidden;
|
|
1217
1222
|
@media (prefers-color-scheme: dark) {
|
|
1218
|
-
background-color: ${
|
|
1219
|
-
box-shadow: 0 0 0.5rem ${
|
|
1223
|
+
background-color: ${i.itemIconBackgroundColor};
|
|
1224
|
+
box-shadow: 0 0 0.5rem ${i.itemIconShadowColor};
|
|
1220
1225
|
}
|
|
1221
1226
|
`,
|
|
1222
1227
|
whileTap: { scale: 0.9 },
|
|
1223
|
-
children: /* @__PURE__ */
|
|
1228
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1224
1229
|
"div",
|
|
1225
1230
|
{
|
|
1226
|
-
className:
|
|
1231
|
+
className: d`
|
|
1227
1232
|
position: absolute;
|
|
1228
1233
|
left: 0;
|
|
1229
1234
|
top: 0;
|
|
@@ -1231,52 +1236,52 @@ const mr = ar({
|
|
|
1231
1236
|
height: 100%;
|
|
1232
1237
|
color: ${b.itemNameColor};
|
|
1233
1238
|
@media (prefers-color-scheme: dark) {
|
|
1234
|
-
color: ${
|
|
1239
|
+
color: ${i.itemNameColor};
|
|
1235
1240
|
}
|
|
1236
1241
|
`,
|
|
1237
|
-
...a(r,
|
|
1238
|
-
children:
|
|
1242
|
+
...a(r, f !== !1),
|
|
1243
|
+
children: m == null ? void 0 : m(r)
|
|
1239
1244
|
}
|
|
1240
1245
|
)
|
|
1241
1246
|
}
|
|
1242
1247
|
),
|
|
1243
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ t.jsx(
|
|
1244
1249
|
A.p,
|
|
1245
1250
|
{
|
|
1246
|
-
className:
|
|
1247
|
-
|
|
1251
|
+
className: z(
|
|
1252
|
+
d`
|
|
1248
1253
|
text-align: center;
|
|
1249
1254
|
margin-top: 0.25rem;
|
|
1250
1255
|
margin-bottom: 0;
|
|
1251
1256
|
color: ${b.itemNameColor};
|
|
1252
1257
|
@media (prefers-color-scheme: dark) {
|
|
1253
|
-
color: ${
|
|
1258
|
+
color: ${i.itemNameColor};
|
|
1254
1259
|
}
|
|
1255
1260
|
`,
|
|
1256
|
-
|
|
1261
|
+
l && d`
|
|
1257
1262
|
color: transparent;
|
|
1258
1263
|
`
|
|
1259
1264
|
),
|
|
1260
|
-
children:
|
|
1265
|
+
children: v
|
|
1261
1266
|
}
|
|
1262
1267
|
)
|
|
1263
1268
|
] });
|
|
1264
|
-
},
|
|
1269
|
+
}, ze = (g) => {
|
|
1265
1270
|
const {
|
|
1266
1271
|
data: r,
|
|
1267
|
-
className:
|
|
1272
|
+
className: l,
|
|
1268
1273
|
itemIndex: a,
|
|
1269
|
-
onClick:
|
|
1270
|
-
disabledDrag:
|
|
1271
|
-
children:
|
|
1274
|
+
onClick: m,
|
|
1275
|
+
disabledDrag: s = !1,
|
|
1276
|
+
children: f,
|
|
1272
1277
|
parentIds: b,
|
|
1273
|
-
childrenLength:
|
|
1274
|
-
} =
|
|
1275
|
-
return /* @__PURE__ */
|
|
1276
|
-
|
|
1278
|
+
childrenLength: i
|
|
1279
|
+
} = g, { contextMenu: I, setContextMenu: v } = be(), { contextMenu: N } = me();
|
|
1280
|
+
return /* @__PURE__ */ t.jsx(
|
|
1281
|
+
Vr,
|
|
1277
1282
|
{
|
|
1278
1283
|
placement: "bottom",
|
|
1279
|
-
overlayClassName:
|
|
1284
|
+
overlayClassName: d`
|
|
1280
1285
|
background-color: transparent;
|
|
1281
1286
|
.rc-tooltip-inner {
|
|
1282
1287
|
background-color: transparent;
|
|
@@ -1284,68 +1289,68 @@ const mr = ar({
|
|
|
1284
1289
|
border: none;
|
|
1285
1290
|
}
|
|
1286
1291
|
`,
|
|
1287
|
-
overlay: /* @__PURE__ */
|
|
1288
|
-
visible: (
|
|
1289
|
-
onVisibleChange: (
|
|
1290
|
-
|
|
1292
|
+
overlay: /* @__PURE__ */ t.jsx(Ao, { ...N }),
|
|
1293
|
+
visible: (I == null ? void 0 : I.data.id) === r.id,
|
|
1294
|
+
onVisibleChange: (_) => {
|
|
1295
|
+
_ || v(null);
|
|
1291
1296
|
},
|
|
1292
1297
|
destroyTooltipOnHide: !0,
|
|
1293
|
-
children: /* @__PURE__ */
|
|
1298
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1294
1299
|
A.div,
|
|
1295
1300
|
{
|
|
1296
1301
|
"data-id": r.id,
|
|
1297
1302
|
"data-index": a,
|
|
1298
1303
|
"data-parent-ids": b == null ? void 0 : b.join(","),
|
|
1299
|
-
"data-children-length":
|
|
1300
|
-
onClick: () =>
|
|
1301
|
-
className:
|
|
1302
|
-
children:
|
|
1304
|
+
"data-children-length": i,
|
|
1305
|
+
onClick: () => m == null ? void 0 : m(r),
|
|
1306
|
+
className: z(s && "drag-disabled", l),
|
|
1307
|
+
children: f ?? /* @__PURE__ */ t.jsx(Bo, { ...g })
|
|
1303
1308
|
}
|
|
1304
1309
|
)
|
|
1305
1310
|
}
|
|
1306
1311
|
);
|
|
1307
|
-
},
|
|
1312
|
+
}, Lo = (g) => {
|
|
1308
1313
|
const {
|
|
1309
1314
|
data: r,
|
|
1310
|
-
className:
|
|
1315
|
+
className: l,
|
|
1311
1316
|
parentIds: a,
|
|
1312
|
-
itemIndex:
|
|
1313
|
-
onClick:
|
|
1314
|
-
noLetters:
|
|
1315
|
-
} =
|
|
1317
|
+
itemIndex: m,
|
|
1318
|
+
onClick: s,
|
|
1319
|
+
noLetters: f = !1
|
|
1320
|
+
} = g, {
|
|
1316
1321
|
contextMenuFuns: b,
|
|
1317
|
-
setList:
|
|
1318
|
-
setOpenGroupItemData:
|
|
1319
|
-
longPressTriggered:
|
|
1322
|
+
setList: i,
|
|
1323
|
+
setOpenGroupItemData: I,
|
|
1324
|
+
longPressTriggered: v,
|
|
1320
1325
|
moveItemId: N,
|
|
1321
|
-
moveTargetId:
|
|
1322
|
-
setMoveTargetId:
|
|
1323
|
-
listStatus:
|
|
1324
|
-
} =
|
|
1326
|
+
moveTargetId: _,
|
|
1327
|
+
setMoveTargetId: W,
|
|
1328
|
+
listStatus: V
|
|
1329
|
+
} = be(), { itemIconBuilder: h, theme: u, contextMenu: R } = me(), { light: p, dark: G } = ie.getTheme(u), { children: k, data: P, config: E } = r, { row: x = 1, col: y = 1 } = E ?? {}, X = {
|
|
1325
1330
|
visible: { opacity: 1, scale: 1 },
|
|
1326
1331
|
hidden: { opacity: 0, scale: 0.95 }
|
|
1327
|
-
}, ce = ((
|
|
1332
|
+
}, ce = ((k == null ? void 0 : k.length) ?? 0) === 0, H = ce ? [r] : [...k ?? []].slice(0, 9), pe = Ee(() => N === r.id.toString(), [r.id, N]), q = Ee(() => _ === r.id, [r.id, _]), re = d`
|
|
1328
1333
|
overflow: hidden;
|
|
1329
1334
|
cursor: pointer;
|
|
1330
|
-
background-color: ${
|
|
1331
|
-
box-shadow: 0 0 0.5rem ${
|
|
1335
|
+
background-color: ${p.itemIconBackgroundColor};
|
|
1336
|
+
box-shadow: 0 0 0.5rem ${p.itemIconShadowColor};
|
|
1332
1337
|
@media (prefers-color-scheme: dark) {
|
|
1333
1338
|
background-color: ${G.itemIconBackgroundColor};
|
|
1334
1339
|
box-shadow: 0 0 0.5rem ${G.itemIconShadowColor};
|
|
1335
1340
|
}
|
|
1336
|
-
`,
|
|
1341
|
+
`, le = () => {
|
|
1337
1342
|
if (ce)
|
|
1338
|
-
return /* @__PURE__ */
|
|
1343
|
+
return /* @__PURE__ */ t.jsx(
|
|
1339
1344
|
A.div,
|
|
1340
1345
|
{
|
|
1341
|
-
className:
|
|
1346
|
+
className: z(
|
|
1342
1347
|
"sortable-group-item",
|
|
1343
|
-
|
|
1348
|
+
d`
|
|
1344
1349
|
overflow: hidden;
|
|
1345
1350
|
cursor: pointer;
|
|
1346
1351
|
width: 100%;
|
|
1347
1352
|
height: 100%;
|
|
1348
|
-
background-color: ${
|
|
1353
|
+
background-color: ${p.itemIconBackgroundColor};
|
|
1349
1354
|
position: absolute;
|
|
1350
1355
|
left: 0;
|
|
1351
1356
|
top: 0;
|
|
@@ -1356,50 +1361,50 @@ const mr = ar({
|
|
|
1356
1361
|
`
|
|
1357
1362
|
),
|
|
1358
1363
|
onClick: (B) => {
|
|
1359
|
-
B.stopPropagation(),
|
|
1364
|
+
B.stopPropagation(), s == null || s(r);
|
|
1360
1365
|
},
|
|
1361
|
-
children:
|
|
1366
|
+
children: h == null ? void 0 : h(r)
|
|
1362
1367
|
}
|
|
1363
1368
|
);
|
|
1364
|
-
if (x === 1 &&
|
|
1365
|
-
return /* @__PURE__ */
|
|
1369
|
+
if (x === 1 && y === 1 || x === 2 && y === 2)
|
|
1370
|
+
return /* @__PURE__ */ t.jsx(
|
|
1366
1371
|
A.div,
|
|
1367
1372
|
{
|
|
1368
|
-
className:
|
|
1373
|
+
className: d`
|
|
1369
1374
|
display: grid;
|
|
1370
1375
|
width: 100%;
|
|
1371
1376
|
height: 100%;
|
|
1372
1377
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1373
1378
|
grid-template-rows: repeat(3, minmax(0, 1fr));
|
|
1374
|
-
padding: ${
|
|
1375
|
-
gap: ${
|
|
1379
|
+
padding: ${y === 1 ? "0.125rem" : "0.25rem"};
|
|
1380
|
+
gap: ${y === 1 ? "0.125rem" : "0.5rem"};
|
|
1376
1381
|
place-items: center;
|
|
1377
1382
|
`,
|
|
1378
|
-
children:
|
|
1383
|
+
children: H == null ? void 0 : H.slice(0, 9).map((B) => /* @__PURE__ */ t.jsx(
|
|
1379
1384
|
A.div,
|
|
1380
1385
|
{
|
|
1381
|
-
className:
|
|
1386
|
+
className: z(
|
|
1382
1387
|
re,
|
|
1383
|
-
|
|
1384
|
-
border-radius: ${
|
|
1388
|
+
d`
|
|
1389
|
+
border-radius: ${y === 1 ? "0.25rem" : "0.5rem"};
|
|
1385
1390
|
width: 100%;
|
|
1386
1391
|
height: 100%;
|
|
1387
1392
|
`
|
|
1388
1393
|
),
|
|
1389
1394
|
onClick: (ne) => {
|
|
1390
|
-
ne.stopPropagation(),
|
|
1395
|
+
ne.stopPropagation(), s == null || s(B);
|
|
1391
1396
|
},
|
|
1392
|
-
children:
|
|
1397
|
+
children: h == null ? void 0 : h(B)
|
|
1393
1398
|
},
|
|
1394
1399
|
B.id
|
|
1395
1400
|
))
|
|
1396
1401
|
}
|
|
1397
1402
|
);
|
|
1398
|
-
if (x === 1 &&
|
|
1399
|
-
return /* @__PURE__ */
|
|
1403
|
+
if (x === 1 && y === 2)
|
|
1404
|
+
return /* @__PURE__ */ t.jsx(
|
|
1400
1405
|
A.div,
|
|
1401
1406
|
{
|
|
1402
|
-
className:
|
|
1407
|
+
className: d`
|
|
1403
1408
|
display: grid;
|
|
1404
1409
|
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1405
1410
|
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
@@ -1409,18 +1414,18 @@ const mr = ar({
|
|
|
1409
1414
|
height: 52px;
|
|
1410
1415
|
place-items: center;
|
|
1411
1416
|
`,
|
|
1412
|
-
children:
|
|
1417
|
+
children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
|
|
1413
1418
|
A.div,
|
|
1414
1419
|
{
|
|
1415
|
-
className:
|
|
1420
|
+
className: z(
|
|
1416
1421
|
re,
|
|
1417
|
-
ne < 2 ?
|
|
1422
|
+
ne < 2 ? d`
|
|
1418
1423
|
width: 52px;
|
|
1419
1424
|
height: 52px;
|
|
1420
1425
|
border-radius: 0.5rem;
|
|
1421
1426
|
grid-column: span 4 / span 4;
|
|
1422
1427
|
grid-row: span 4 / span 4;
|
|
1423
|
-
` :
|
|
1428
|
+
` : d`
|
|
1424
1429
|
width: 1.5rem;
|
|
1425
1430
|
height: 1.5rem;
|
|
1426
1431
|
border-radius: 0.375rem;
|
|
@@ -1428,20 +1433,20 @@ const mr = ar({
|
|
|
1428
1433
|
grid-row: span 2 / span 2;
|
|
1429
1434
|
`
|
|
1430
1435
|
),
|
|
1431
|
-
onClick: (
|
|
1432
|
-
ne > 2 || (
|
|
1436
|
+
onClick: (se) => {
|
|
1437
|
+
ne > 2 || (se.stopPropagation(), s == null || s(B));
|
|
1433
1438
|
},
|
|
1434
|
-
children:
|
|
1439
|
+
children: h == null ? void 0 : h(B)
|
|
1435
1440
|
},
|
|
1436
1441
|
B.id
|
|
1437
1442
|
))
|
|
1438
1443
|
}
|
|
1439
1444
|
);
|
|
1440
|
-
if (x === 2 &&
|
|
1441
|
-
return /* @__PURE__ */
|
|
1445
|
+
if (x === 2 && y === 1)
|
|
1446
|
+
return /* @__PURE__ */ t.jsx(
|
|
1442
1447
|
A.div,
|
|
1443
1448
|
{
|
|
1444
|
-
className:
|
|
1449
|
+
className: d`
|
|
1445
1450
|
display: grid;
|
|
1446
1451
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1447
1452
|
grid-template-rows: repeat(10, minmax(0, 1fr));
|
|
@@ -1451,61 +1456,61 @@ const mr = ar({
|
|
|
1451
1456
|
height: 144px;
|
|
1452
1457
|
place-items: center;
|
|
1453
1458
|
`,
|
|
1454
|
-
children:
|
|
1459
|
+
children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
|
|
1455
1460
|
A.div,
|
|
1456
1461
|
{
|
|
1457
|
-
className:
|
|
1462
|
+
className: z(
|
|
1458
1463
|
re,
|
|
1459
|
-
ne < 2 ?
|
|
1464
|
+
ne < 2 ? d`
|
|
1460
1465
|
width: 52px;
|
|
1461
1466
|
height: 52px;
|
|
1462
1467
|
border-radius: 0.5rem;
|
|
1463
1468
|
grid-column: span 4 / span 4;
|
|
1464
1469
|
grid-row: span 4 / span 4;
|
|
1465
|
-
` :
|
|
1470
|
+
` : d`
|
|
1466
1471
|
width: 1.5rem;
|
|
1467
1472
|
height: 1.5rem;
|
|
1468
1473
|
grid-column: span 2 / span 2;
|
|
1469
1474
|
grid-row: span 2 / span 2;
|
|
1470
1475
|
`
|
|
1471
1476
|
),
|
|
1472
|
-
onClick: (
|
|
1473
|
-
ne > 2 || (
|
|
1477
|
+
onClick: (se) => {
|
|
1478
|
+
ne > 2 || (se.stopPropagation(), s == null || s(B));
|
|
1474
1479
|
},
|
|
1475
|
-
children:
|
|
1480
|
+
children: h == null ? void 0 : h(B)
|
|
1476
1481
|
},
|
|
1477
1482
|
B.id
|
|
1478
1483
|
))
|
|
1479
1484
|
}
|
|
1480
1485
|
);
|
|
1481
1486
|
};
|
|
1482
|
-
return /* @__PURE__ */
|
|
1483
|
-
|
|
1487
|
+
return /* @__PURE__ */ t.jsxs(
|
|
1488
|
+
ze,
|
|
1484
1489
|
{
|
|
1485
1490
|
data: r,
|
|
1486
|
-
itemIndex:
|
|
1491
|
+
itemIndex: m,
|
|
1487
1492
|
parentIds: a,
|
|
1488
|
-
childrenLength:
|
|
1489
|
-
className:
|
|
1490
|
-
|
|
1493
|
+
childrenLength: k == null ? void 0 : k.length,
|
|
1494
|
+
className: z(
|
|
1495
|
+
d`
|
|
1491
1496
|
grid-row: span ${x};
|
|
1492
|
-
grid-column: span ${
|
|
1497
|
+
grid-column: span ${y};
|
|
1493
1498
|
`,
|
|
1494
|
-
|
|
1499
|
+
l
|
|
1495
1500
|
),
|
|
1496
1501
|
children: [
|
|
1497
|
-
/* @__PURE__ */
|
|
1502
|
+
/* @__PURE__ */ t.jsx(
|
|
1498
1503
|
A.div,
|
|
1499
1504
|
{
|
|
1500
1505
|
whileTap: { scale: 0.9 },
|
|
1501
|
-
className:
|
|
1506
|
+
className: z(
|
|
1502
1507
|
q ? "!scale-110" : "",
|
|
1503
|
-
|
|
1508
|
+
d`
|
|
1504
1509
|
cursor: pointer;
|
|
1505
1510
|
position: relative;
|
|
1506
1511
|
border-radius: 0.75rem;
|
|
1507
|
-
background-color: ${
|
|
1508
|
-
box-shadow: 0 0 0.5rem ${
|
|
1512
|
+
background-color: ${p.groupItemIconBackgroundColor};
|
|
1513
|
+
box-shadow: 0 0 0.5rem ${p.groupItemIconShadowColor};
|
|
1509
1514
|
@media (prefers-color-scheme: dark) {
|
|
1510
1515
|
background-color: ${G.groupItemIconBackgroundColor};
|
|
1511
1516
|
box-shadow: 0 0 0.5rem ${G.groupItemIconShadowColor};
|
|
@@ -1513,18 +1518,18 @@ const mr = ar({
|
|
|
1513
1518
|
/* overflow: hidden; */
|
|
1514
1519
|
transition: all 0.3s;
|
|
1515
1520
|
margin: 0 auto;
|
|
1516
|
-
width: ${
|
|
1521
|
+
width: ${y * 64 + 32 * (y - 1)}px;
|
|
1517
1522
|
height: ${x * 64 + 32 * (x - 1)}px;
|
|
1518
1523
|
`
|
|
1519
1524
|
),
|
|
1520
1525
|
onClick: (B) => {
|
|
1521
|
-
!ce && !
|
|
1526
|
+
!ce && !v && (r.parentIds = a, r.pageX = B.pageX, r.pageY = B.pageY, I(r));
|
|
1522
1527
|
},
|
|
1523
|
-
...b(r,
|
|
1524
|
-
children: /* @__PURE__ */
|
|
1528
|
+
...b(r, R !== !1),
|
|
1529
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
1525
1530
|
A.div,
|
|
1526
1531
|
{
|
|
1527
|
-
className:
|
|
1532
|
+
className: d`
|
|
1528
1533
|
position: relative;
|
|
1529
1534
|
width: 100%;
|
|
1530
1535
|
height: 100%;
|
|
@@ -1534,20 +1539,20 @@ const mr = ar({
|
|
|
1534
1539
|
padding: 0.375rem;
|
|
1535
1540
|
`,
|
|
1536
1541
|
children: [
|
|
1537
|
-
|
|
1538
|
-
/* @__PURE__ */
|
|
1542
|
+
le(),
|
|
1543
|
+
/* @__PURE__ */ t.jsx(
|
|
1539
1544
|
Fe,
|
|
1540
1545
|
{
|
|
1541
|
-
className:
|
|
1546
|
+
className: z(
|
|
1542
1547
|
"sortable-group-item",
|
|
1543
|
-
|
|
1548
|
+
d`
|
|
1544
1549
|
position: absolute;
|
|
1545
1550
|
cursor: pointer;
|
|
1546
1551
|
left: 0.375rem;
|
|
1547
1552
|
top: 0.375rem;
|
|
1548
1553
|
width: calc(100% - 0.75rem);
|
|
1549
1554
|
height: calc(100% - 0.75rem);
|
|
1550
|
-
pointer-events: ${
|
|
1555
|
+
pointer-events: ${V === null ? "none" : "auto"};
|
|
1551
1556
|
> * {
|
|
1552
1557
|
opacity: 0;
|
|
1553
1558
|
}
|
|
@@ -1556,12 +1561,12 @@ const mr = ar({
|
|
|
1556
1561
|
group: { name: "nested", pull: !1, put: !0 },
|
|
1557
1562
|
animation: 150,
|
|
1558
1563
|
fallbackOnBody: !0,
|
|
1559
|
-
list:
|
|
1560
|
-
setList: (B) =>
|
|
1564
|
+
list: k ?? [],
|
|
1565
|
+
setList: (B) => i(B, a),
|
|
1561
1566
|
filter: () => !0,
|
|
1562
1567
|
"data-id": r.id,
|
|
1563
1568
|
onChange: () => {
|
|
1564
|
-
|
|
1569
|
+
W(r.id);
|
|
1565
1570
|
}
|
|
1566
1571
|
}
|
|
1567
1572
|
)
|
|
@@ -1570,32 +1575,32 @@ const mr = ar({
|
|
|
1570
1575
|
)
|
|
1571
1576
|
}
|
|
1572
1577
|
),
|
|
1573
|
-
/* @__PURE__ */
|
|
1578
|
+
/* @__PURE__ */ t.jsx(
|
|
1574
1579
|
A.p,
|
|
1575
1580
|
{
|
|
1576
|
-
className:
|
|
1577
|
-
|
|
1581
|
+
className: z(
|
|
1582
|
+
d`
|
|
1578
1583
|
text-align: center;
|
|
1579
1584
|
margin-top: 0.25rem;
|
|
1580
1585
|
margin-bottom: 0;
|
|
1581
|
-
color: ${
|
|
1586
|
+
color: ${p.itemNameColor};
|
|
1582
1587
|
@media (prefers-color-scheme: dark) {
|
|
1583
1588
|
color: ${G.itemNameColor};
|
|
1584
1589
|
}
|
|
1585
1590
|
`,
|
|
1586
|
-
|
|
1591
|
+
f && d`
|
|
1587
1592
|
color: transparent;
|
|
1588
1593
|
`
|
|
1589
1594
|
),
|
|
1590
1595
|
variants: X,
|
|
1591
|
-
animate:
|
|
1596
|
+
animate: pe ? "hidden" : "visible",
|
|
1592
1597
|
children: (P == null ? void 0 : P.name) ?? "文件夹"
|
|
1593
1598
|
}
|
|
1594
1599
|
)
|
|
1595
1600
|
]
|
|
1596
1601
|
}
|
|
1597
1602
|
);
|
|
1598
|
-
},
|
|
1603
|
+
}, pr = d`
|
|
1599
1604
|
padding: 8px;
|
|
1600
1605
|
transition: all 0.2s;
|
|
1601
1606
|
> div {
|
|
@@ -1607,24 +1612,24 @@ const mr = ar({
|
|
|
1607
1612
|
transition: all 0.2s;
|
|
1608
1613
|
}
|
|
1609
1614
|
}
|
|
1610
|
-
`,
|
|
1611
|
-
const { data: r, onClose:
|
|
1612
|
-
list:
|
|
1613
|
-
setList:
|
|
1614
|
-
setListStatus:
|
|
1615
|
+
`, Fo = (g) => {
|
|
1616
|
+
const { data: r, onClose: l, onItemClick: a } = g, {
|
|
1617
|
+
list: m,
|
|
1618
|
+
setList: s,
|
|
1619
|
+
setListStatus: f,
|
|
1615
1620
|
setMoveItemId: b,
|
|
1616
|
-
setMoveTargetId:
|
|
1617
|
-
updateItem:
|
|
1618
|
-
} =
|
|
1619
|
-
return
|
|
1620
|
-
var
|
|
1621
|
-
r &&
|
|
1622
|
-
}, [r]), /* @__PURE__ */
|
|
1623
|
-
|
|
1621
|
+
setMoveTargetId: i,
|
|
1622
|
+
updateItem: I
|
|
1623
|
+
} = be(), { theme: v } = me(), { light: N, dark: _ } = ie.getTheme(v), [W, V] = te("文件夹"), h = [...(r == null ? void 0 : r.children) ?? []];
|
|
1624
|
+
return we(() => {
|
|
1625
|
+
var u;
|
|
1626
|
+
r && V((u = r.data) == null ? void 0 : u.name);
|
|
1627
|
+
}, [r]), /* @__PURE__ */ t.jsx(
|
|
1628
|
+
lr,
|
|
1624
1629
|
{
|
|
1625
1630
|
visible: !!r,
|
|
1626
1631
|
onClose: () => {
|
|
1627
|
-
|
|
1632
|
+
l();
|
|
1628
1633
|
},
|
|
1629
1634
|
animation: "zoom",
|
|
1630
1635
|
maskAnimation: "fade",
|
|
@@ -1632,10 +1637,10 @@ const mr = ar({
|
|
|
1632
1637
|
x: r == null ? void 0 : r.pageX,
|
|
1633
1638
|
y: r == null ? void 0 : r.pageY
|
|
1634
1639
|
} : null,
|
|
1635
|
-
title: /* @__PURE__ */
|
|
1640
|
+
title: /* @__PURE__ */ t.jsx(
|
|
1636
1641
|
"input",
|
|
1637
1642
|
{
|
|
1638
|
-
className:
|
|
1643
|
+
className: d`
|
|
1639
1644
|
background-color: transparent;
|
|
1640
1645
|
border-style: none;
|
|
1641
1646
|
text-align: center;
|
|
@@ -1649,23 +1654,23 @@ const mr = ar({
|
|
|
1649
1654
|
outline: none;
|
|
1650
1655
|
}
|
|
1651
1656
|
`,
|
|
1652
|
-
value:
|
|
1653
|
-
onChange: (
|
|
1654
|
-
|
|
1657
|
+
value: W,
|
|
1658
|
+
onChange: (u) => {
|
|
1659
|
+
V(u.target.value);
|
|
1655
1660
|
},
|
|
1656
1661
|
onBlur: () => {
|
|
1657
|
-
r &&
|
|
1662
|
+
r && I(r.id, {
|
|
1658
1663
|
...r.data,
|
|
1659
|
-
name:
|
|
1664
|
+
name: W
|
|
1660
1665
|
});
|
|
1661
1666
|
}
|
|
1662
1667
|
}
|
|
1663
1668
|
),
|
|
1664
1669
|
footer: null,
|
|
1665
1670
|
closable: !1,
|
|
1666
|
-
className:
|
|
1671
|
+
className: z(
|
|
1667
1672
|
"group-item-modal",
|
|
1668
|
-
|
|
1673
|
+
d`
|
|
1669
1674
|
.rc-dialog-content {
|
|
1670
1675
|
background-color: transparent;
|
|
1671
1676
|
box-shadow: none;
|
|
@@ -1682,7 +1687,7 @@ const mr = ar({
|
|
|
1682
1687
|
.rc-dialog-body {
|
|
1683
1688
|
background-color: ${N.groupItemModalBackgroundColor};
|
|
1684
1689
|
@media (prefers-color-scheme: dark) {
|
|
1685
|
-
background-color: ${
|
|
1690
|
+
background-color: ${_.groupItemModalBackgroundColor};
|
|
1686
1691
|
}
|
|
1687
1692
|
border-radius: 0.5rem;
|
|
1688
1693
|
overflow: hidden;
|
|
@@ -1692,24 +1697,24 @@ const mr = ar({
|
|
|
1692
1697
|
),
|
|
1693
1698
|
width: 600,
|
|
1694
1699
|
destroyOnClose: !0,
|
|
1695
|
-
children: /* @__PURE__ */
|
|
1700
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1696
1701
|
"div",
|
|
1697
1702
|
{
|
|
1698
|
-
className:
|
|
1703
|
+
className: d`
|
|
1699
1704
|
overflow-y: auto;
|
|
1700
1705
|
max-height: 60vh;
|
|
1701
1706
|
padding: 1.25rem 0;
|
|
1702
1707
|
`,
|
|
1703
|
-
onDragLeave: (
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
|
|
1708
|
+
onDragLeave: (u) => {
|
|
1709
|
+
const R = u.relatedTarget;
|
|
1710
|
+
R && (u.currentTarget.contains(R) || setTimeout(() => {
|
|
1711
|
+
l();
|
|
1707
1712
|
}, 500));
|
|
1708
1713
|
},
|
|
1709
|
-
children: /* @__PURE__ */
|
|
1714
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1710
1715
|
Fe,
|
|
1711
1716
|
{
|
|
1712
|
-
className:
|
|
1717
|
+
className: d`
|
|
1713
1718
|
display: grid;
|
|
1714
1719
|
gap: 1rem;
|
|
1715
1720
|
place-items: center;
|
|
@@ -1721,28 +1726,28 @@ const mr = ar({
|
|
|
1721
1726
|
animation: 150,
|
|
1722
1727
|
fallbackOnBody: !0,
|
|
1723
1728
|
list: (r == null ? void 0 : r.children) ?? [],
|
|
1724
|
-
setList: (
|
|
1725
|
-
var G,
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1729
|
+
setList: (u) => {
|
|
1730
|
+
var G, k;
|
|
1731
|
+
const R = u.map((P) => P.id), p = (k = (G = m.find((P) => P.id === (r == null ? void 0 : r.id))) == null ? void 0 : G.children) == null ? void 0 : k.map((P) => P.id);
|
|
1732
|
+
R.length === (p == null ? void 0 : p.length) && R.every((P, E) => P === p[E]) || R.length < ((p == null ? void 0 : p.length) ?? 0) || s(u, [...(r == null ? void 0 : r.parentIds) ?? [], r == null ? void 0 : r.id]);
|
|
1728
1733
|
},
|
|
1729
|
-
onMove: () => (
|
|
1730
|
-
onStart: (
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1734
|
+
onMove: () => (i(null), f("onMove"), !0),
|
|
1735
|
+
onStart: (u) => {
|
|
1736
|
+
const R = u.item.dataset;
|
|
1737
|
+
R != null && R.id && b(R.id), f("onMove");
|
|
1733
1738
|
},
|
|
1734
1739
|
onEnd: () => {
|
|
1735
|
-
b(null),
|
|
1740
|
+
b(null), i(null), f(null);
|
|
1736
1741
|
},
|
|
1737
|
-
ghostClass:
|
|
1738
|
-
children:
|
|
1739
|
-
|
|
1742
|
+
ghostClass: pr,
|
|
1743
|
+
children: h.map((u, R) => /* @__PURE__ */ t.jsx(
|
|
1744
|
+
ze,
|
|
1740
1745
|
{
|
|
1741
|
-
data:
|
|
1742
|
-
itemIndex:
|
|
1746
|
+
data: u,
|
|
1747
|
+
itemIndex: R,
|
|
1743
1748
|
onClick: a
|
|
1744
1749
|
},
|
|
1745
|
-
|
|
1750
|
+
u.id
|
|
1746
1751
|
))
|
|
1747
1752
|
}
|
|
1748
1753
|
)
|
|
@@ -1750,15 +1755,15 @@ const mr = ar({
|
|
|
1750
1755
|
)
|
|
1751
1756
|
}
|
|
1752
1757
|
);
|
|
1753
|
-
},
|
|
1758
|
+
}, zo = (g) => {
|
|
1754
1759
|
var a;
|
|
1755
|
-
const { data: r, onClose:
|
|
1756
|
-
return /* @__PURE__ */
|
|
1757
|
-
|
|
1760
|
+
const { data: r, onClose: l } = g;
|
|
1761
|
+
return /* @__PURE__ */ t.jsx(
|
|
1762
|
+
lr,
|
|
1758
1763
|
{
|
|
1759
1764
|
visible: !!r,
|
|
1760
1765
|
onClose: () => {
|
|
1761
|
-
|
|
1766
|
+
l();
|
|
1762
1767
|
},
|
|
1763
1768
|
animation: "zoom",
|
|
1764
1769
|
maskAnimation: "fade",
|
|
@@ -1768,32 +1773,32 @@ const mr = ar({
|
|
|
1768
1773
|
} : null,
|
|
1769
1774
|
footer: null,
|
|
1770
1775
|
title: ((a = r == null ? void 0 : r.data) == null ? void 0 : a.name) ?? "信息",
|
|
1771
|
-
children: r && /* @__PURE__ */
|
|
1772
|
-
/* @__PURE__ */
|
|
1773
|
-
/* @__PURE__ */
|
|
1776
|
+
children: r && /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1777
|
+
/* @__PURE__ */ t.jsx("div", { className: "mb-2", children: "开发者信息" }),
|
|
1778
|
+
/* @__PURE__ */ t.jsx("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ t.jsx(Hr, { src: r, theme: "monokai" }) })
|
|
1774
1779
|
] })
|
|
1775
1780
|
}
|
|
1776
1781
|
);
|
|
1777
|
-
},
|
|
1782
|
+
}, Yo = (g) => {
|
|
1778
1783
|
const {
|
|
1779
1784
|
pagination: r = { position: "bottom" },
|
|
1780
|
-
className:
|
|
1785
|
+
className: l,
|
|
1781
1786
|
sliderProps: a,
|
|
1782
|
-
sliderRef:
|
|
1783
|
-
onItemClick:
|
|
1784
|
-
} =
|
|
1785
|
-
list:
|
|
1786
|
-
setList:
|
|
1787
|
-
setListStatus:
|
|
1787
|
+
sliderRef: m,
|
|
1788
|
+
onItemClick: s
|
|
1789
|
+
} = g, f = Me(null), b = Me(null), {
|
|
1790
|
+
list: i,
|
|
1791
|
+
setList: I,
|
|
1792
|
+
setListStatus: v,
|
|
1788
1793
|
showInfoItemData: N,
|
|
1789
|
-
setShowInfoItemData:
|
|
1790
|
-
openGroupItemData:
|
|
1791
|
-
setOpenGroupItemData:
|
|
1792
|
-
setMoveItemId:
|
|
1793
|
-
setMoveTargetId:
|
|
1794
|
-
addItem:
|
|
1795
|
-
} =
|
|
1796
|
-
top:
|
|
1794
|
+
setShowInfoItemData: _,
|
|
1795
|
+
openGroupItemData: W,
|
|
1796
|
+
setOpenGroupItemData: V,
|
|
1797
|
+
setMoveItemId: h,
|
|
1798
|
+
setMoveTargetId: u,
|
|
1799
|
+
addItem: R
|
|
1800
|
+
} = be(), { pagingDotBuilder: p, pagingDotsBuilder: G, itemBuilder: k } = me(), P = Ee(() => r === !1 ? {} : {
|
|
1801
|
+
top: d`
|
|
1797
1802
|
display: flex;
|
|
1798
1803
|
flex-direction: column;
|
|
1799
1804
|
.slick-list {
|
|
@@ -1803,12 +1808,12 @@ const mr = ar({
|
|
|
1803
1808
|
position: static;
|
|
1804
1809
|
}
|
|
1805
1810
|
`,
|
|
1806
|
-
bottom:
|
|
1811
|
+
bottom: d`
|
|
1807
1812
|
.slick-dots {
|
|
1808
1813
|
position: static;
|
|
1809
1814
|
}
|
|
1810
1815
|
`,
|
|
1811
|
-
left:
|
|
1816
|
+
left: d`
|
|
1812
1817
|
.slick-dots {
|
|
1813
1818
|
position: absolute;
|
|
1814
1819
|
width: auto;
|
|
@@ -1824,7 +1829,7 @@ const mr = ar({
|
|
|
1824
1829
|
}
|
|
1825
1830
|
}
|
|
1826
1831
|
`,
|
|
1827
|
-
right:
|
|
1832
|
+
right: d`
|
|
1828
1833
|
.slick-dots {
|
|
1829
1834
|
position: absolute;
|
|
1830
1835
|
width: auto;
|
|
@@ -1841,21 +1846,21 @@ const mr = ar({
|
|
|
1841
1846
|
}
|
|
1842
1847
|
`
|
|
1843
1848
|
}[r.position ?? "bottom"], [r]);
|
|
1844
|
-
return /* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
|
|
1849
|
+
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
1850
|
+
/* @__PURE__ */ t.jsx(
|
|
1851
|
+
Fr,
|
|
1847
1852
|
{
|
|
1848
1853
|
useCSS: !0,
|
|
1849
1854
|
useTransform: !0,
|
|
1850
1855
|
arrows: !1,
|
|
1851
|
-
ref:
|
|
1856
|
+
ref: m ?? f,
|
|
1852
1857
|
infinite: !1,
|
|
1853
1858
|
dots: !0,
|
|
1854
1859
|
touchMove: !1,
|
|
1855
1860
|
lazyLoad: "anticipated",
|
|
1856
|
-
className:
|
|
1861
|
+
className: z(
|
|
1857
1862
|
P,
|
|
1858
|
-
|
|
1863
|
+
d`
|
|
1859
1864
|
.slick-track {
|
|
1860
1865
|
display: flex;
|
|
1861
1866
|
align-items: stretch;
|
|
@@ -1871,28 +1876,28 @@ const mr = ar({
|
|
|
1871
1876
|
}
|
|
1872
1877
|
}
|
|
1873
1878
|
`,
|
|
1874
|
-
|
|
1879
|
+
l
|
|
1875
1880
|
),
|
|
1876
|
-
customPaging: (
|
|
1877
|
-
var x,
|
|
1878
|
-
return
|
|
1881
|
+
customPaging: (E) => {
|
|
1882
|
+
var x, y;
|
|
1883
|
+
return p ? p(i[E], E) : /* @__PURE__ */ t.jsx(
|
|
1879
1884
|
"div",
|
|
1880
1885
|
{
|
|
1881
1886
|
onDragEnter: () => {
|
|
1882
1887
|
var X;
|
|
1883
|
-
(X = (
|
|
1888
|
+
(X = (m ?? f).current) == null || X.slickGoTo(E);
|
|
1884
1889
|
},
|
|
1885
|
-
children: (
|
|
1890
|
+
children: (y = (x = i[E]) == null ? void 0 : x.data) == null ? void 0 : y.name
|
|
1886
1891
|
}
|
|
1887
1892
|
);
|
|
1888
1893
|
},
|
|
1889
|
-
appendDots: (
|
|
1894
|
+
appendDots: (E) => G ? G(E) : r === !1 ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
1890
1895
|
"ul",
|
|
1891
1896
|
{
|
|
1892
1897
|
ref: b,
|
|
1893
|
-
className:
|
|
1898
|
+
className: z(
|
|
1894
1899
|
"slick-dots-default",
|
|
1895
|
-
|
|
1900
|
+
d`
|
|
1896
1901
|
padding: 0.5rem;
|
|
1897
1902
|
display: inline-flex;
|
|
1898
1903
|
justify-content: center;
|
|
@@ -1913,19 +1918,19 @@ const mr = ar({
|
|
|
1913
1918
|
}
|
|
1914
1919
|
`
|
|
1915
1920
|
),
|
|
1916
|
-
children:
|
|
1921
|
+
children: E
|
|
1917
1922
|
}
|
|
1918
1923
|
) }),
|
|
1919
1924
|
...a,
|
|
1920
|
-
children:
|
|
1925
|
+
children: i.map((E) => /* @__PURE__ */ t.jsx(
|
|
1921
1926
|
"div",
|
|
1922
1927
|
{
|
|
1923
1928
|
onDrop: (x) => {
|
|
1924
1929
|
x.preventDefault();
|
|
1925
|
-
const
|
|
1926
|
-
if (
|
|
1930
|
+
const y = x.dataTransfer.getData("text/plain");
|
|
1931
|
+
if (y !== "")
|
|
1927
1932
|
try {
|
|
1928
|
-
|
|
1933
|
+
R(JSON.parse(y), [E.id]);
|
|
1929
1934
|
} catch (X) {
|
|
1930
1935
|
console.log("drag error", X);
|
|
1931
1936
|
}
|
|
@@ -1933,11 +1938,11 @@ const mr = ar({
|
|
|
1933
1938
|
onDragOver: (x) => {
|
|
1934
1939
|
x.preventDefault();
|
|
1935
1940
|
},
|
|
1936
|
-
children: /* @__PURE__ */
|
|
1941
|
+
children: /* @__PURE__ */ t.jsx(
|
|
1937
1942
|
Fe,
|
|
1938
1943
|
{
|
|
1939
|
-
className:
|
|
1940
|
-
|
|
1944
|
+
className: z(
|
|
1945
|
+
d`
|
|
1941
1946
|
display: grid;
|
|
1942
1947
|
transition: all 0.3s;
|
|
1943
1948
|
grid-template-columns: repeat(auto-fill, 96px);
|
|
@@ -1952,47 +1957,47 @@ const mr = ar({
|
|
|
1952
1957
|
fallbackOnBody: !0,
|
|
1953
1958
|
swapThreshold: 0.65,
|
|
1954
1959
|
group: "nested",
|
|
1955
|
-
list:
|
|
1956
|
-
setList: (x) =>
|
|
1960
|
+
list: E.children ?? [],
|
|
1961
|
+
setList: (x) => I(x, [E.id]),
|
|
1957
1962
|
filter: ".drag-disabled",
|
|
1958
1963
|
onMove: (x) => {
|
|
1959
|
-
|
|
1960
|
-
const { dragged:
|
|
1961
|
-
return
|
|
1964
|
+
v("onMove");
|
|
1965
|
+
const { dragged: y, related: X } = x, ce = y.dataset, H = X.dataset;
|
|
1966
|
+
return u(null), !((Object.keys(H).length === 0 || H.parentIds) && Number(ce.childrenLength) > 0 && X.classList.contains("sortable-group-item"));
|
|
1962
1967
|
},
|
|
1963
1968
|
onStart: (x) => {
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1969
|
+
const y = x.item.dataset;
|
|
1970
|
+
y != null && y.id && h(y.id), v("onMove");
|
|
1966
1971
|
},
|
|
1967
1972
|
onEnd: () => {
|
|
1968
|
-
|
|
1973
|
+
h(null), u(null), v(null);
|
|
1969
1974
|
},
|
|
1970
|
-
ghostClass:
|
|
1971
|
-
children: (
|
|
1975
|
+
ghostClass: pr,
|
|
1976
|
+
children: (E.children ?? []).map((x, y) => {
|
|
1972
1977
|
let X;
|
|
1973
|
-
if (
|
|
1974
|
-
return
|
|
1978
|
+
if (k)
|
|
1979
|
+
return k(x);
|
|
1975
1980
|
switch (x.type) {
|
|
1976
1981
|
case "group":
|
|
1977
1982
|
case "app":
|
|
1978
|
-
X = /* @__PURE__ */
|
|
1979
|
-
|
|
1983
|
+
X = /* @__PURE__ */ t.jsx(
|
|
1984
|
+
Lo,
|
|
1980
1985
|
{
|
|
1981
1986
|
data: x,
|
|
1982
|
-
itemIndex:
|
|
1983
|
-
parentIds: [
|
|
1984
|
-
onClick:
|
|
1987
|
+
itemIndex: y,
|
|
1988
|
+
parentIds: [E.id, x.id],
|
|
1989
|
+
onClick: s
|
|
1985
1990
|
},
|
|
1986
1991
|
x.id
|
|
1987
1992
|
);
|
|
1988
1993
|
break;
|
|
1989
1994
|
default:
|
|
1990
|
-
X = /* @__PURE__ */
|
|
1991
|
-
|
|
1995
|
+
X = /* @__PURE__ */ t.jsx(
|
|
1996
|
+
ze,
|
|
1992
1997
|
{
|
|
1993
1998
|
data: x,
|
|
1994
|
-
itemIndex:
|
|
1995
|
-
onClick:
|
|
1999
|
+
itemIndex: y,
|
|
2000
|
+
onClick: s
|
|
1996
2001
|
},
|
|
1997
2002
|
x.id
|
|
1998
2003
|
);
|
|
@@ -2003,62 +2008,62 @@ const mr = ar({
|
|
|
2003
2008
|
}
|
|
2004
2009
|
)
|
|
2005
2010
|
},
|
|
2006
|
-
|
|
2011
|
+
E.id
|
|
2007
2012
|
))
|
|
2008
2013
|
}
|
|
2009
2014
|
),
|
|
2010
|
-
/* @__PURE__ */
|
|
2011
|
-
|
|
2015
|
+
/* @__PURE__ */ t.jsx(
|
|
2016
|
+
zo,
|
|
2012
2017
|
{
|
|
2013
2018
|
data: N,
|
|
2014
2019
|
onClose: () => {
|
|
2015
|
-
|
|
2020
|
+
_(null);
|
|
2016
2021
|
}
|
|
2017
2022
|
}
|
|
2018
2023
|
),
|
|
2019
|
-
/* @__PURE__ */
|
|
2020
|
-
|
|
2024
|
+
/* @__PURE__ */ t.jsx(
|
|
2025
|
+
Fo,
|
|
2021
2026
|
{
|
|
2022
|
-
data:
|
|
2027
|
+
data: W,
|
|
2023
2028
|
onClose: () => {
|
|
2024
|
-
|
|
2029
|
+
V(null);
|
|
2025
2030
|
},
|
|
2026
|
-
onItemClick:
|
|
2031
|
+
onItemClick: s
|
|
2027
2032
|
}
|
|
2028
2033
|
)
|
|
2029
2034
|
] });
|
|
2030
|
-
},
|
|
2035
|
+
}, ft = (g) => {
|
|
2031
2036
|
const {
|
|
2032
2037
|
list: r,
|
|
2033
|
-
onChange:
|
|
2038
|
+
onChange: l,
|
|
2034
2039
|
storageKey: a,
|
|
2035
|
-
enableCaching:
|
|
2036
|
-
theme:
|
|
2037
|
-
noLetters:
|
|
2040
|
+
enableCaching: m,
|
|
2041
|
+
theme: s,
|
|
2042
|
+
noLetters: f,
|
|
2038
2043
|
contextMenu: b,
|
|
2039
|
-
contextMenuBuilder:
|
|
2040
|
-
itemBuilder:
|
|
2041
|
-
itemIconBuilder:
|
|
2044
|
+
contextMenuBuilder: i,
|
|
2045
|
+
itemBuilder: I,
|
|
2046
|
+
itemIconBuilder: v,
|
|
2042
2047
|
pagingDotBuilder: N,
|
|
2043
|
-
pagingDotsBuilder:
|
|
2044
|
-
...
|
|
2045
|
-
} =
|
|
2048
|
+
pagingDotsBuilder: _,
|
|
2049
|
+
...W
|
|
2050
|
+
} = g, V = {
|
|
2046
2051
|
list: r,
|
|
2047
|
-
onChange:
|
|
2052
|
+
onChange: l,
|
|
2048
2053
|
storageKey: a,
|
|
2049
|
-
enableCaching:
|
|
2050
|
-
},
|
|
2051
|
-
theme:
|
|
2052
|
-
noLetters:
|
|
2054
|
+
enableCaching: m
|
|
2055
|
+
}, h = {
|
|
2056
|
+
theme: s,
|
|
2057
|
+
noLetters: f,
|
|
2053
2058
|
contextMenu: b,
|
|
2054
|
-
pagingDotsBuilder:
|
|
2059
|
+
pagingDotsBuilder: _,
|
|
2055
2060
|
pagingDotBuilder: N,
|
|
2056
|
-
itemBuilder:
|
|
2057
|
-
itemIconBuilder:
|
|
2058
|
-
contextMenuBuilder:
|
|
2061
|
+
itemBuilder: I,
|
|
2062
|
+
itemIconBuilder: v,
|
|
2063
|
+
contextMenuBuilder: i
|
|
2059
2064
|
};
|
|
2060
|
-
return /* @__PURE__ */
|
|
2061
|
-
},
|
|
2065
|
+
return /* @__PURE__ */ t.jsx(No, { ...V, children: /* @__PURE__ */ t.jsx(Do, { ...h, children: /* @__PURE__ */ t.jsx(Yo, { ...W }) }) });
|
|
2066
|
+
}, Wo = {
|
|
2062
2067
|
frontmatterEditor: {
|
|
2063
2068
|
title: "编辑前置元数据",
|
|
2064
2069
|
key: "键",
|
|
@@ -2175,29 +2180,628 @@ const mr = ar({
|
|
|
2175
2180
|
image: {
|
|
2176
2181
|
delete: "删除图片"
|
|
2177
2182
|
}
|
|
2178
|
-
},
|
|
2179
|
-
const
|
|
2180
|
-
(
|
|
2181
|
-
|
|
2183
|
+
}, Vo = (g, r, l) => {
|
|
2184
|
+
const m = g.split(".").reduce(
|
|
2185
|
+
(s, f) => typeof s == "string" ? s : s[f],
|
|
2186
|
+
Wo
|
|
2182
2187
|
);
|
|
2183
|
-
return typeof
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2188
|
+
return typeof m != "string" ? r : l ? m.replace(/{{(.*?)}}/g, (s, f) => l[f]) : m;
|
|
2189
|
+
}, Uo = d`
|
|
2190
|
+
[class*="_toolbarRoot"] {
|
|
2191
|
+
flex-wrap: wrap;
|
|
2192
|
+
}
|
|
2193
|
+
[class*="_codeMirrorWrapper"] {
|
|
2194
|
+
padding: 0;
|
|
2195
|
+
[class*="_codeMirrorToolbar"] {
|
|
2196
|
+
position: static;
|
|
2197
|
+
background-color: var(--bgColor-muted);
|
|
2198
|
+
justify-content: flex-end;
|
|
2199
|
+
[class*="_iconButton"] {
|
|
2200
|
+
cursor: pointer;
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
[class*="_tableEditor"] {
|
|
2205
|
+
border-spacing: 0;
|
|
2206
|
+
border-collapse: collapse;
|
|
2207
|
+
width: 100%;
|
|
2208
|
+
display: table;
|
|
2209
|
+
th[data-tool-cell],
|
|
2210
|
+
td[data-tool-cell] {
|
|
2211
|
+
padding: 0;
|
|
2212
|
+
border: none;
|
|
2213
|
+
}
|
|
2214
|
+
tr {
|
|
2215
|
+
border-top: 0;
|
|
2216
|
+
}
|
|
2217
|
+
thead {
|
|
2218
|
+
th {
|
|
2219
|
+
padding: 0;
|
|
2220
|
+
border: none;
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
tfoot {
|
|
2224
|
+
th {
|
|
2225
|
+
padding: 0;
|
|
2226
|
+
border: none;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
[class*="_addRowButton"],
|
|
2230
|
+
[class*="_addColumnButton"],
|
|
2231
|
+
[class*="_tableColumnEditorTrigger"],
|
|
2232
|
+
[class*="_iconButton"] {
|
|
2233
|
+
cursor: pointer;
|
|
2234
|
+
transition: all 0.3s;
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
ul {
|
|
2238
|
+
[role="checkbox"] {
|
|
2239
|
+
padding: 0 20px;
|
|
2240
|
+
&::before {
|
|
2241
|
+
width: 13px;
|
|
2242
|
+
height: 13px;
|
|
2243
|
+
top: 6px;
|
|
2244
|
+
}
|
|
2245
|
+
&::after {
|
|
2246
|
+
top: 7px;
|
|
2247
|
+
left: 4px;
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
ul,
|
|
2252
|
+
ol {
|
|
2253
|
+
li {
|
|
2254
|
+
margin-top: 4px;
|
|
2255
|
+
margin-bottom: 0;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
`, fr = z(
|
|
2259
|
+
"markdown-body",
|
|
2260
|
+
d`
|
|
2261
|
+
p {
|
|
2262
|
+
margin-bottom: 8px;
|
|
2263
|
+
}
|
|
2264
|
+
ul {
|
|
2265
|
+
list-style: disc;
|
|
2266
|
+
}
|
|
2267
|
+
ol {
|
|
2268
|
+
list-style: decimal;
|
|
2269
|
+
}
|
|
2270
|
+
table {
|
|
2271
|
+
width: 100%;
|
|
2272
|
+
display: table;
|
|
2273
|
+
}
|
|
2274
|
+
pre {
|
|
2275
|
+
padding: 0;
|
|
2276
|
+
> div {
|
|
2277
|
+
margin: 0 !important;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
`
|
|
2281
|
+
), Go = {
|
|
2282
|
+
'code[class*="language-"]': {
|
|
2283
|
+
background: "hsl(230, 1%, 98%)",
|
|
2284
|
+
color: "hsl(230, 8%, 24%)",
|
|
2285
|
+
fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
|
|
2286
|
+
direction: "ltr",
|
|
2287
|
+
textAlign: "left",
|
|
2288
|
+
whiteSpace: "pre",
|
|
2289
|
+
wordSpacing: "normal",
|
|
2290
|
+
wordBreak: "normal",
|
|
2291
|
+
lineHeight: "1.5",
|
|
2292
|
+
MozTabSize: "2",
|
|
2293
|
+
OTabSize: "2",
|
|
2294
|
+
tabSize: "2",
|
|
2295
|
+
WebkitHyphens: "none",
|
|
2296
|
+
MozHyphens: "none",
|
|
2297
|
+
msHyphens: "none",
|
|
2298
|
+
hyphens: "none"
|
|
2299
|
+
},
|
|
2300
|
+
'pre[class*="language-"]': {
|
|
2301
|
+
background: "hsl(230, 1%, 98%)",
|
|
2302
|
+
color: "hsl(230, 8%, 24%)",
|
|
2303
|
+
fontFamily: '"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',
|
|
2304
|
+
direction: "ltr",
|
|
2305
|
+
textAlign: "left",
|
|
2306
|
+
whiteSpace: "pre",
|
|
2307
|
+
wordSpacing: "normal",
|
|
2308
|
+
wordBreak: "normal",
|
|
2309
|
+
lineHeight: "1.5",
|
|
2310
|
+
MozTabSize: "2",
|
|
2311
|
+
OTabSize: "2",
|
|
2312
|
+
tabSize: "2",
|
|
2313
|
+
WebkitHyphens: "none",
|
|
2314
|
+
MozHyphens: "none",
|
|
2315
|
+
msHyphens: "none",
|
|
2316
|
+
hyphens: "none",
|
|
2317
|
+
padding: "1em",
|
|
2318
|
+
margin: "0.5em 0",
|
|
2319
|
+
overflow: "auto",
|
|
2320
|
+
borderRadius: "0.3em"
|
|
2321
|
+
},
|
|
2322
|
+
'code[class*="language-"]::-moz-selection': {
|
|
2323
|
+
background: "hsl(230, 1%, 90%)",
|
|
2324
|
+
color: "inherit"
|
|
2325
|
+
},
|
|
2326
|
+
'code[class*="language-"] *::-moz-selection': {
|
|
2327
|
+
background: "hsl(230, 1%, 90%)",
|
|
2328
|
+
color: "inherit"
|
|
2329
|
+
},
|
|
2330
|
+
'pre[class*="language-"] *::-moz-selection': {
|
|
2331
|
+
background: "hsl(230, 1%, 90%)",
|
|
2332
|
+
color: "inherit"
|
|
2333
|
+
},
|
|
2334
|
+
'code[class*="language-"]::selection': {
|
|
2335
|
+
background: "hsl(230, 1%, 90%)",
|
|
2336
|
+
color: "inherit"
|
|
2337
|
+
},
|
|
2338
|
+
'code[class*="language-"] *::selection': {
|
|
2339
|
+
background: "hsl(230, 1%, 90%)",
|
|
2340
|
+
color: "inherit"
|
|
2341
|
+
},
|
|
2342
|
+
'pre[class*="language-"] *::selection': {
|
|
2343
|
+
background: "hsl(230, 1%, 90%)",
|
|
2344
|
+
color: "inherit"
|
|
2345
|
+
},
|
|
2346
|
+
':not(pre) > code[class*="language-"]': {
|
|
2347
|
+
padding: "0.2em 0.3em",
|
|
2348
|
+
borderRadius: "0.3em",
|
|
2349
|
+
whiteSpace: "normal"
|
|
2350
|
+
},
|
|
2351
|
+
comment: {
|
|
2352
|
+
color: "hsl(230, 4%, 64%)",
|
|
2353
|
+
fontStyle: "italic"
|
|
2354
|
+
},
|
|
2355
|
+
prolog: {
|
|
2356
|
+
color: "hsl(230, 4%, 64%)"
|
|
2357
|
+
},
|
|
2358
|
+
cdata: {
|
|
2359
|
+
color: "hsl(230, 4%, 64%)"
|
|
2360
|
+
},
|
|
2361
|
+
doctype: {
|
|
2362
|
+
color: "hsl(230, 8%, 24%)"
|
|
2363
|
+
},
|
|
2364
|
+
punctuation: {
|
|
2365
|
+
color: "hsl(230, 8%, 24%)"
|
|
2366
|
+
},
|
|
2367
|
+
entity: {
|
|
2368
|
+
color: "hsl(230, 8%, 24%)",
|
|
2369
|
+
cursor: "help"
|
|
2370
|
+
},
|
|
2371
|
+
"attr-name": {
|
|
2372
|
+
color: "hsl(35, 99%, 36%)"
|
|
2373
|
+
},
|
|
2374
|
+
"class-name": {
|
|
2375
|
+
color: "hsl(35, 99%, 36%)"
|
|
2376
|
+
},
|
|
2377
|
+
boolean: {
|
|
2378
|
+
color: "hsl(35, 99%, 36%)"
|
|
2379
|
+
},
|
|
2380
|
+
constant: {
|
|
2381
|
+
color: "hsl(35, 99%, 36%)"
|
|
2382
|
+
},
|
|
2383
|
+
number: {
|
|
2384
|
+
color: "hsl(35, 99%, 36%)"
|
|
2385
|
+
},
|
|
2386
|
+
atrule: {
|
|
2387
|
+
color: "hsl(35, 99%, 36%)"
|
|
2388
|
+
},
|
|
2389
|
+
keyword: {
|
|
2390
|
+
color: "hsl(301, 63%, 40%)"
|
|
2391
|
+
},
|
|
2392
|
+
property: {
|
|
2393
|
+
color: "hsl(5, 74%, 59%)"
|
|
2394
|
+
},
|
|
2395
|
+
tag: {
|
|
2396
|
+
color: "hsl(5, 74%, 59%)"
|
|
2397
|
+
},
|
|
2398
|
+
symbol: {
|
|
2399
|
+
color: "hsl(5, 74%, 59%)"
|
|
2400
|
+
},
|
|
2401
|
+
deleted: {
|
|
2402
|
+
color: "hsl(5, 74%, 59%)"
|
|
2403
|
+
},
|
|
2404
|
+
important: {
|
|
2405
|
+
color: "hsl(5, 74%, 59%)"
|
|
2406
|
+
},
|
|
2407
|
+
selector: {
|
|
2408
|
+
color: "hsl(119, 34%, 47%)"
|
|
2409
|
+
},
|
|
2410
|
+
string: {
|
|
2411
|
+
color: "hsl(119, 34%, 47%)"
|
|
2412
|
+
},
|
|
2413
|
+
char: {
|
|
2414
|
+
color: "hsl(119, 34%, 47%)"
|
|
2415
|
+
},
|
|
2416
|
+
builtin: {
|
|
2417
|
+
color: "hsl(119, 34%, 47%)"
|
|
2418
|
+
},
|
|
2419
|
+
inserted: {
|
|
2420
|
+
color: "hsl(119, 34%, 47%)"
|
|
2421
|
+
},
|
|
2422
|
+
regex: {
|
|
2423
|
+
color: "hsl(119, 34%, 47%)"
|
|
2424
|
+
},
|
|
2425
|
+
"attr-value": {
|
|
2426
|
+
color: "hsl(119, 34%, 47%)"
|
|
2427
|
+
},
|
|
2428
|
+
"attr-value > .token.punctuation": {
|
|
2429
|
+
color: "hsl(119, 34%, 47%)"
|
|
2430
|
+
},
|
|
2431
|
+
variable: {
|
|
2432
|
+
color: "hsl(221, 87%, 60%)"
|
|
2433
|
+
},
|
|
2434
|
+
operator: {
|
|
2435
|
+
color: "hsl(221, 87%, 60%)"
|
|
2436
|
+
},
|
|
2437
|
+
function: {
|
|
2438
|
+
color: "hsl(221, 87%, 60%)"
|
|
2439
|
+
},
|
|
2440
|
+
url: {
|
|
2441
|
+
color: "hsl(198, 99%, 37%)"
|
|
2442
|
+
},
|
|
2443
|
+
"attr-value > .token.punctuation.attr-equals": {
|
|
2444
|
+
color: "hsl(230, 8%, 24%)"
|
|
2445
|
+
},
|
|
2446
|
+
"special-attr > .token.attr-value > .token.value.css": {
|
|
2447
|
+
color: "hsl(230, 8%, 24%)"
|
|
2448
|
+
},
|
|
2449
|
+
".language-css .token.selector": {
|
|
2450
|
+
color: "hsl(5, 74%, 59%)"
|
|
2451
|
+
},
|
|
2452
|
+
".language-css .token.property": {
|
|
2453
|
+
color: "hsl(230, 8%, 24%)"
|
|
2454
|
+
},
|
|
2455
|
+
".language-css .token.function": {
|
|
2456
|
+
color: "hsl(198, 99%, 37%)"
|
|
2457
|
+
},
|
|
2458
|
+
".language-css .token.url > .token.function": {
|
|
2459
|
+
color: "hsl(198, 99%, 37%)"
|
|
2460
|
+
},
|
|
2461
|
+
".language-css .token.url > .token.string.url": {
|
|
2462
|
+
color: "hsl(119, 34%, 47%)"
|
|
2463
|
+
},
|
|
2464
|
+
".language-css .token.important": {
|
|
2465
|
+
color: "hsl(301, 63%, 40%)"
|
|
2466
|
+
},
|
|
2467
|
+
".language-css .token.atrule .token.rule": {
|
|
2468
|
+
color: "hsl(301, 63%, 40%)"
|
|
2469
|
+
},
|
|
2470
|
+
".language-javascript .token.operator": {
|
|
2471
|
+
color: "hsl(301, 63%, 40%)"
|
|
2472
|
+
},
|
|
2473
|
+
".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation": {
|
|
2474
|
+
color: "hsl(344, 84%, 43%)"
|
|
2475
|
+
},
|
|
2476
|
+
".language-json .token.operator": {
|
|
2477
|
+
color: "hsl(230, 8%, 24%)"
|
|
2478
|
+
},
|
|
2479
|
+
".language-json .token.null.keyword": {
|
|
2480
|
+
color: "hsl(35, 99%, 36%)"
|
|
2481
|
+
},
|
|
2482
|
+
".language-markdown .token.url": {
|
|
2483
|
+
color: "hsl(230, 8%, 24%)"
|
|
2484
|
+
},
|
|
2485
|
+
".language-markdown .token.url > .token.operator": {
|
|
2486
|
+
color: "hsl(230, 8%, 24%)"
|
|
2487
|
+
},
|
|
2488
|
+
".language-markdown .token.url-reference.url > .token.string": {
|
|
2489
|
+
color: "hsl(230, 8%, 24%)"
|
|
2490
|
+
},
|
|
2491
|
+
".language-markdown .token.url > .token.content": {
|
|
2492
|
+
color: "hsl(221, 87%, 60%)"
|
|
2493
|
+
},
|
|
2494
|
+
".language-markdown .token.url > .token.url": {
|
|
2495
|
+
color: "hsl(198, 99%, 37%)"
|
|
2496
|
+
},
|
|
2497
|
+
".language-markdown .token.url-reference.url": {
|
|
2498
|
+
color: "hsl(198, 99%, 37%)"
|
|
2499
|
+
},
|
|
2500
|
+
".language-markdown .token.blockquote.punctuation": {
|
|
2501
|
+
color: "hsl(230, 4%, 64%)",
|
|
2502
|
+
fontStyle: "italic"
|
|
2503
|
+
},
|
|
2504
|
+
".language-markdown .token.hr.punctuation": {
|
|
2505
|
+
color: "hsl(230, 4%, 64%)",
|
|
2506
|
+
fontStyle: "italic"
|
|
2507
|
+
},
|
|
2508
|
+
".language-markdown .token.code-snippet": {
|
|
2509
|
+
color: "hsl(119, 34%, 47%)"
|
|
2510
|
+
},
|
|
2511
|
+
".language-markdown .token.bold .token.content": {
|
|
2512
|
+
color: "hsl(35, 99%, 36%)"
|
|
2513
|
+
},
|
|
2514
|
+
".language-markdown .token.italic .token.content": {
|
|
2515
|
+
color: "hsl(301, 63%, 40%)"
|
|
2516
|
+
},
|
|
2517
|
+
".language-markdown .token.strike .token.content": {
|
|
2518
|
+
color: "hsl(5, 74%, 59%)"
|
|
2519
|
+
},
|
|
2520
|
+
".language-markdown .token.strike .token.punctuation": {
|
|
2521
|
+
color: "hsl(5, 74%, 59%)"
|
|
2522
|
+
},
|
|
2523
|
+
".language-markdown .token.list.punctuation": {
|
|
2524
|
+
color: "hsl(5, 74%, 59%)"
|
|
2525
|
+
},
|
|
2526
|
+
".language-markdown .token.title.important > .token.punctuation": {
|
|
2527
|
+
color: "hsl(5, 74%, 59%)"
|
|
2528
|
+
},
|
|
2529
|
+
bold: {
|
|
2530
|
+
fontWeight: "bold"
|
|
2531
|
+
},
|
|
2532
|
+
italic: {
|
|
2533
|
+
fontStyle: "italic"
|
|
2534
|
+
},
|
|
2535
|
+
namespace: {
|
|
2536
|
+
Opacity: "0.8"
|
|
2537
|
+
},
|
|
2538
|
+
"token.tab:not(:empty):before": {
|
|
2539
|
+
color: "hsla(230, 8%, 24%, 0.2)"
|
|
2540
|
+
},
|
|
2541
|
+
"token.cr:before": {
|
|
2542
|
+
color: "hsla(230, 8%, 24%, 0.2)"
|
|
2543
|
+
},
|
|
2544
|
+
"token.lf:before": {
|
|
2545
|
+
color: "hsla(230, 8%, 24%, 0.2)"
|
|
2546
|
+
},
|
|
2547
|
+
"token.space:before": {
|
|
2548
|
+
color: "hsla(230, 8%, 24%, 0.2)"
|
|
2549
|
+
},
|
|
2550
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item": {
|
|
2551
|
+
marginRight: "0.4em"
|
|
2552
|
+
},
|
|
2553
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
|
|
2554
|
+
background: "hsl(230, 1%, 90%)",
|
|
2555
|
+
color: "hsl(230, 6%, 44%)",
|
|
2556
|
+
padding: "0.1em 0.4em",
|
|
2557
|
+
borderRadius: "0.3em"
|
|
2558
|
+
},
|
|
2559
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
|
|
2560
|
+
background: "hsl(230, 1%, 90%)",
|
|
2561
|
+
color: "hsl(230, 6%, 44%)",
|
|
2562
|
+
padding: "0.1em 0.4em",
|
|
2563
|
+
borderRadius: "0.3em"
|
|
2564
|
+
},
|
|
2565
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
|
|
2566
|
+
background: "hsl(230, 1%, 90%)",
|
|
2567
|
+
color: "hsl(230, 6%, 44%)",
|
|
2568
|
+
padding: "0.1em 0.4em",
|
|
2569
|
+
borderRadius: "0.3em"
|
|
2570
|
+
},
|
|
2571
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
|
|
2572
|
+
background: "hsl(230, 1%, 78%)",
|
|
2573
|
+
color: "hsl(230, 8%, 24%)"
|
|
2574
|
+
},
|
|
2575
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
|
|
2576
|
+
background: "hsl(230, 1%, 78%)",
|
|
2577
|
+
color: "hsl(230, 8%, 24%)"
|
|
2578
|
+
},
|
|
2579
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
|
|
2580
|
+
background: "hsl(230, 1%, 78%)",
|
|
2581
|
+
color: "hsl(230, 8%, 24%)"
|
|
2582
|
+
},
|
|
2583
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
|
|
2584
|
+
background: "hsl(230, 1%, 78%)",
|
|
2585
|
+
color: "hsl(230, 8%, 24%)"
|
|
2586
|
+
},
|
|
2587
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
|
|
2588
|
+
background: "hsl(230, 1%, 78%)",
|
|
2589
|
+
color: "hsl(230, 8%, 24%)"
|
|
2590
|
+
},
|
|
2591
|
+
"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
|
|
2592
|
+
background: "hsl(230, 1%, 78%)",
|
|
2593
|
+
color: "hsl(230, 8%, 24%)"
|
|
2594
|
+
},
|
|
2595
|
+
".line-highlight.line-highlight": {
|
|
2596
|
+
background: "hsla(230, 8%, 24%, 0.05)"
|
|
2597
|
+
},
|
|
2598
|
+
".line-highlight.line-highlight:before": {
|
|
2599
|
+
background: "hsl(230, 1%, 90%)",
|
|
2600
|
+
color: "hsl(230, 8%, 24%)",
|
|
2601
|
+
padding: "0.1em 0.6em",
|
|
2602
|
+
borderRadius: "0.3em",
|
|
2603
|
+
boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
2604
|
+
},
|
|
2605
|
+
".line-highlight.line-highlight[data-end]:after": {
|
|
2606
|
+
background: "hsl(230, 1%, 90%)",
|
|
2607
|
+
color: "hsl(230, 8%, 24%)",
|
|
2608
|
+
padding: "0.1em 0.6em",
|
|
2609
|
+
borderRadius: "0.3em",
|
|
2610
|
+
boxShadow: "0 2px 0 0 rgba(0, 0, 0, 0.2)"
|
|
2611
|
+
},
|
|
2612
|
+
"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
|
|
2613
|
+
backgroundColor: "hsla(230, 8%, 24%, 0.05)"
|
|
2614
|
+
},
|
|
2615
|
+
".line-numbers.line-numbers .line-numbers-rows": {
|
|
2616
|
+
borderRightColor: "hsla(230, 8%, 24%, 0.2)"
|
|
2617
|
+
},
|
|
2618
|
+
".command-line .command-line-prompt": {
|
|
2619
|
+
borderRightColor: "hsla(230, 8%, 24%, 0.2)"
|
|
2620
|
+
},
|
|
2621
|
+
".line-numbers .line-numbers-rows > span:before": {
|
|
2622
|
+
color: "hsl(230, 1%, 62%)"
|
|
2623
|
+
},
|
|
2624
|
+
".command-line .command-line-prompt > span:before": {
|
|
2625
|
+
color: "hsl(230, 1%, 62%)"
|
|
2626
|
+
},
|
|
2627
|
+
".rainbow-braces .token.token.punctuation.brace-level-1": {
|
|
2628
|
+
color: "hsl(5, 74%, 59%)"
|
|
2629
|
+
},
|
|
2630
|
+
".rainbow-braces .token.token.punctuation.brace-level-5": {
|
|
2631
|
+
color: "hsl(5, 74%, 59%)"
|
|
2632
|
+
},
|
|
2633
|
+
".rainbow-braces .token.token.punctuation.brace-level-9": {
|
|
2634
|
+
color: "hsl(5, 74%, 59%)"
|
|
2635
|
+
},
|
|
2636
|
+
".rainbow-braces .token.token.punctuation.brace-level-2": {
|
|
2637
|
+
color: "hsl(119, 34%, 47%)"
|
|
2638
|
+
},
|
|
2639
|
+
".rainbow-braces .token.token.punctuation.brace-level-6": {
|
|
2640
|
+
color: "hsl(119, 34%, 47%)"
|
|
2641
|
+
},
|
|
2642
|
+
".rainbow-braces .token.token.punctuation.brace-level-10": {
|
|
2643
|
+
color: "hsl(119, 34%, 47%)"
|
|
2644
|
+
},
|
|
2645
|
+
".rainbow-braces .token.token.punctuation.brace-level-3": {
|
|
2646
|
+
color: "hsl(221, 87%, 60%)"
|
|
2647
|
+
},
|
|
2648
|
+
".rainbow-braces .token.token.punctuation.brace-level-7": {
|
|
2649
|
+
color: "hsl(221, 87%, 60%)"
|
|
2650
|
+
},
|
|
2651
|
+
".rainbow-braces .token.token.punctuation.brace-level-11": {
|
|
2652
|
+
color: "hsl(221, 87%, 60%)"
|
|
2653
|
+
},
|
|
2654
|
+
".rainbow-braces .token.token.punctuation.brace-level-4": {
|
|
2655
|
+
color: "hsl(301, 63%, 40%)"
|
|
2656
|
+
},
|
|
2657
|
+
".rainbow-braces .token.token.punctuation.brace-level-8": {
|
|
2658
|
+
color: "hsl(301, 63%, 40%)"
|
|
2659
|
+
},
|
|
2660
|
+
".rainbow-braces .token.token.punctuation.brace-level-12": {
|
|
2661
|
+
color: "hsl(301, 63%, 40%)"
|
|
2662
|
+
},
|
|
2663
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
|
|
2664
|
+
backgroundColor: "hsla(353, 100%, 66%, 0.15)"
|
|
2665
|
+
},
|
|
2666
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
|
|
2667
|
+
backgroundColor: "hsla(353, 100%, 66%, 0.15)"
|
|
2668
|
+
},
|
|
2669
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection": {
|
|
2670
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2671
|
+
},
|
|
2672
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection": {
|
|
2673
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2674
|
+
},
|
|
2675
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection": {
|
|
2676
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2677
|
+
},
|
|
2678
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection": {
|
|
2679
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2680
|
+
},
|
|
2681
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection": {
|
|
2682
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2683
|
+
},
|
|
2684
|
+
"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection": {
|
|
2685
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2686
|
+
},
|
|
2687
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection": {
|
|
2688
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2689
|
+
},
|
|
2690
|
+
"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection": {
|
|
2691
|
+
backgroundColor: "hsla(353, 95%, 66%, 0.25)"
|
|
2692
|
+
},
|
|
2693
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
|
|
2694
|
+
backgroundColor: "hsla(137, 100%, 55%, 0.15)"
|
|
2695
|
+
},
|
|
2696
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
|
|
2697
|
+
backgroundColor: "hsla(137, 100%, 55%, 0.15)"
|
|
2698
|
+
},
|
|
2699
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection": {
|
|
2700
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2701
|
+
},
|
|
2702
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection": {
|
|
2703
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2704
|
+
},
|
|
2705
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection": {
|
|
2706
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2707
|
+
},
|
|
2708
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection": {
|
|
2709
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2710
|
+
},
|
|
2711
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection": {
|
|
2712
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2713
|
+
},
|
|
2714
|
+
"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection": {
|
|
2715
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2716
|
+
},
|
|
2717
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection": {
|
|
2718
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2719
|
+
},
|
|
2720
|
+
"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection": {
|
|
2721
|
+
backgroundColor: "hsla(135, 73%, 55%, 0.25)"
|
|
2722
|
+
},
|
|
2723
|
+
".prism-previewer.prism-previewer:before": {
|
|
2724
|
+
borderColor: "hsl(0, 0, 95%)"
|
|
2725
|
+
},
|
|
2726
|
+
".prism-previewer-gradient.prism-previewer-gradient div": {
|
|
2727
|
+
borderColor: "hsl(0, 0, 95%)",
|
|
2728
|
+
borderRadius: "0.3em"
|
|
2729
|
+
},
|
|
2730
|
+
".prism-previewer-color.prism-previewer-color:before": {
|
|
2731
|
+
borderRadius: "0.3em"
|
|
2732
|
+
},
|
|
2733
|
+
".prism-previewer-easing.prism-previewer-easing:before": {
|
|
2734
|
+
borderRadius: "0.3em"
|
|
2735
|
+
},
|
|
2736
|
+
".prism-previewer.prism-previewer:after": {
|
|
2737
|
+
borderTopColor: "hsl(0, 0, 95%)"
|
|
2738
|
+
},
|
|
2739
|
+
".prism-previewer-flipped.prism-previewer-flipped.after": {
|
|
2740
|
+
borderBottomColor: "hsl(0, 0, 95%)"
|
|
2741
|
+
},
|
|
2742
|
+
".prism-previewer-angle.prism-previewer-angle:before": {
|
|
2743
|
+
background: "hsl(0, 0%, 100%)"
|
|
2744
|
+
},
|
|
2745
|
+
".prism-previewer-time.prism-previewer-time:before": {
|
|
2746
|
+
background: "hsl(0, 0%, 100%)"
|
|
2747
|
+
},
|
|
2748
|
+
".prism-previewer-easing.prism-previewer-easing": {
|
|
2749
|
+
background: "hsl(0, 0%, 100%)"
|
|
2750
|
+
},
|
|
2751
|
+
".prism-previewer-angle.prism-previewer-angle circle": {
|
|
2752
|
+
stroke: "hsl(230, 8%, 24%)",
|
|
2753
|
+
strokeOpacity: "1"
|
|
2754
|
+
},
|
|
2755
|
+
".prism-previewer-time.prism-previewer-time circle": {
|
|
2756
|
+
stroke: "hsl(230, 8%, 24%)",
|
|
2757
|
+
strokeOpacity: "1"
|
|
2758
|
+
},
|
|
2759
|
+
".prism-previewer-easing.prism-previewer-easing circle": {
|
|
2760
|
+
stroke: "hsl(230, 8%, 24%)",
|
|
2761
|
+
fill: "transparent"
|
|
2762
|
+
},
|
|
2763
|
+
".prism-previewer-easing.prism-previewer-easing path": {
|
|
2764
|
+
stroke: "hsl(230, 8%, 24%)"
|
|
2765
|
+
},
|
|
2766
|
+
".prism-previewer-easing.prism-previewer-easing line": {
|
|
2767
|
+
stroke: "hsl(230, 8%, 24%)"
|
|
2768
|
+
}
|
|
2769
|
+
}, Xo = (g) => {
|
|
2770
|
+
const { children: r = "", className: l } = g;
|
|
2771
|
+
return /* @__PURE__ */ t.jsx(
|
|
2772
|
+
Io,
|
|
2773
|
+
{
|
|
2774
|
+
className: z(fr, l),
|
|
2775
|
+
remarkPlugins: [To, Ro],
|
|
2776
|
+
rehypePlugins: [Eo],
|
|
2777
|
+
components: {
|
|
2778
|
+
code(a) {
|
|
2779
|
+
const { children: m, className: s, node: f, ref: b, ...i } = a, I = /language-(\w+)/.exec(s || "");
|
|
2780
|
+
return I ? /* @__PURE__ */ t.jsx(
|
|
2781
|
+
Mo,
|
|
2782
|
+
{
|
|
2783
|
+
...i,
|
|
2784
|
+
PreTag: "div",
|
|
2785
|
+
children: String(m).replace(/\n$/, ""),
|
|
2786
|
+
language: I[1],
|
|
2787
|
+
style: Go
|
|
2788
|
+
}
|
|
2789
|
+
) : /* @__PURE__ */ t.jsx("code", { ...i, className: s, children: m });
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
children: r
|
|
2793
|
+
}
|
|
2189
2794
|
);
|
|
2190
|
-
}
|
|
2191
|
-
const
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
diffSource: b = {
|
|
2795
|
+
}, qo = (g) => {
|
|
2796
|
+
const { value: r, onChange: l, translation: a, pluginConfig: m, ...s } = g, f = Me(null), {
|
|
2797
|
+
image: b,
|
|
2798
|
+
diffSource: i = {
|
|
2195
2799
|
viewMode: "rich-text"
|
|
2196
2800
|
},
|
|
2197
|
-
headings:
|
|
2198
|
-
link:
|
|
2199
|
-
codeBlock:
|
|
2200
|
-
codeMirror:
|
|
2801
|
+
headings: I,
|
|
2802
|
+
link: v,
|
|
2803
|
+
codeBlock: N,
|
|
2804
|
+
codeMirror: _ = {
|
|
2201
2805
|
codeBlockLanguages: {
|
|
2202
2806
|
js: "JavaScript",
|
|
2203
2807
|
css: "CSS",
|
|
@@ -2206,115 +2810,68 @@ const to = (d) => {
|
|
|
2206
2810
|
"": "Unspecified"
|
|
2207
2811
|
}
|
|
2208
2812
|
},
|
|
2209
|
-
directives:
|
|
2210
|
-
directiveDescriptors: [
|
|
2813
|
+
directives: W = {
|
|
2814
|
+
directiveDescriptors: [jo]
|
|
2211
2815
|
}
|
|
2212
|
-
} =
|
|
2213
|
-
return
|
|
2214
|
-
|
|
2215
|
-
|
|
2816
|
+
} = m ?? {}, [V, h] = te("");
|
|
2817
|
+
return we(() => {
|
|
2818
|
+
var u;
|
|
2819
|
+
r !== void 0 && f.current && ((u = f.current) == null || u.setMarkdown(r), h(r));
|
|
2820
|
+
}, [r, f]), /* @__PURE__ */ t.jsx(
|
|
2216
2821
|
Jr,
|
|
2217
2822
|
{
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
table {
|
|
2222
|
-
border-spacing: 0;
|
|
2223
|
-
border-collapse: collapse;
|
|
2224
|
-
width: 100%;
|
|
2225
|
-
display: table;
|
|
2226
|
-
th[data-tool-cell],
|
|
2227
|
-
td[data-tool-cell] {
|
|
2228
|
-
padding: 0;
|
|
2229
|
-
border: none;
|
|
2230
|
-
}
|
|
2231
|
-
tr {
|
|
2232
|
-
border-top: 0;
|
|
2233
|
-
}
|
|
2234
|
-
thead {
|
|
2235
|
-
th {
|
|
2236
|
-
padding: 0;
|
|
2237
|
-
border: none;
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
tfoot {
|
|
2241
|
-
th {
|
|
2242
|
-
padding: 0;
|
|
2243
|
-
border: none;
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
[class*="_addRowButton"],
|
|
2247
|
-
[class*="_addColumnButton"],
|
|
2248
|
-
[class*="_tableColumnEditorTrigger"],
|
|
2249
|
-
[class*="_iconButton"] {
|
|
2250
|
-
cursor: pointer;
|
|
2251
|
-
transition: all 0.3s;
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
`
|
|
2255
|
-
),
|
|
2823
|
+
ref: f,
|
|
2824
|
+
className: Uo,
|
|
2825
|
+
contentEditableClassName: fr,
|
|
2256
2826
|
markdown: V,
|
|
2257
|
-
onChange: (
|
|
2258
|
-
!r && !
|
|
2827
|
+
onChange: (u) => {
|
|
2828
|
+
!r && !l && h(u), l && l(u);
|
|
2259
2829
|
},
|
|
2260
|
-
translation: a ??
|
|
2830
|
+
translation: a ?? Vo,
|
|
2261
2831
|
plugins: [
|
|
2262
2832
|
Kr({
|
|
2263
|
-
toolbarContents: () => /* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2266
|
-
/* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2268
|
-
/* @__PURE__ */
|
|
2269
|
-
/* @__PURE__ */
|
|
2270
|
-
/* @__PURE__ */
|
|
2271
|
-
/* @__PURE__ */
|
|
2272
|
-
/* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2274
|
-
/* @__PURE__ */
|
|
2275
|
-
/* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
/* @__PURE__ */
|
|
2278
|
-
/* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
|
|
2282
|
-
{
|
|
2283
|
-
options: [
|
|
2284
|
-
{
|
|
2285
|
-
when: (f) => !Ft(f),
|
|
2286
|
-
contents: () => /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2287
|
-
/* @__PURE__ */ o.jsx(ue, {}),
|
|
2288
|
-
/* @__PURE__ */ o.jsx(ct, {})
|
|
2289
|
-
] })
|
|
2290
|
-
}
|
|
2291
|
-
]
|
|
2292
|
-
}
|
|
2293
|
-
),
|
|
2294
|
-
/* @__PURE__ */ o.jsx(ue, {}),
|
|
2295
|
-
/* @__PURE__ */ o.jsx(ut, {})
|
|
2833
|
+
toolbarContents: () => /* @__PURE__ */ t.jsxs(Zr, { options: ["rich-text", "source"], children: [
|
|
2834
|
+
/* @__PURE__ */ t.jsx(Qr, {}),
|
|
2835
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2836
|
+
/* @__PURE__ */ t.jsx(eo, {}),
|
|
2837
|
+
/* @__PURE__ */ t.jsx(ro, {}),
|
|
2838
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2839
|
+
/* @__PURE__ */ t.jsx(oo, {}),
|
|
2840
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2841
|
+
/* @__PURE__ */ t.jsx(to, {}),
|
|
2842
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2843
|
+
/* @__PURE__ */ t.jsx(no, {}),
|
|
2844
|
+
/* @__PURE__ */ t.jsx(ao, {}),
|
|
2845
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2846
|
+
/* @__PURE__ */ t.jsx(io, {}),
|
|
2847
|
+
/* @__PURE__ */ t.jsx(lo, {}),
|
|
2848
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2849
|
+
/* @__PURE__ */ t.jsx(so, {}),
|
|
2850
|
+
/* @__PURE__ */ t.jsx(ge, {}),
|
|
2851
|
+
/* @__PURE__ */ t.jsx(co, {})
|
|
2296
2852
|
] })
|
|
2297
2853
|
}),
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2854
|
+
uo(i),
|
|
2855
|
+
go(),
|
|
2856
|
+
mo(),
|
|
2857
|
+
po(I),
|
|
2858
|
+
fo(v),
|
|
2859
|
+
ho(),
|
|
2860
|
+
bo(b),
|
|
2861
|
+
vo(),
|
|
2862
|
+
ko(),
|
|
2863
|
+
xo(),
|
|
2864
|
+
wo(N),
|
|
2865
|
+
yo(_),
|
|
2866
|
+
Co(),
|
|
2867
|
+
So(W)
|
|
2312
2868
|
],
|
|
2313
|
-
...
|
|
2869
|
+
...s
|
|
2314
2870
|
}
|
|
2315
2871
|
);
|
|
2316
|
-
};
|
|
2872
|
+
}, Ho = qo;
|
|
2873
|
+
Ho.Preview = Xo;
|
|
2317
2874
|
export {
|
|
2318
|
-
|
|
2319
|
-
|
|
2875
|
+
ft as Desktop,
|
|
2876
|
+
Ho as MdEditor
|
|
2320
2877
|
};
|