zs_library 0.3.15 → 0.3.16
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/index.es.js +819 -1451
- package/dist/index.umd.js +93 -122
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,660 +1,28 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var Ae = Object.defineProperty;
|
|
2
|
+
var je = (a, e, r) => e in a ? Ae(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r;
|
|
3
|
+
var ie = (a, e, r) => je(a, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import "./zs_library.css";
|
|
5
|
-
import
|
|
6
|
-
import { cx as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
* @license React
|
|
27
|
-
* react-jsx-runtime.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/
|
|
34
|
-
var ar;
|
|
35
|
-
function Yo() {
|
|
36
|
-
if (ar) return xe;
|
|
37
|
-
ar = 1;
|
|
38
|
-
var d = sr, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, c = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
39
|
-
function u(h, l, y) {
|
|
40
|
-
var v, _ = {}, E = null, F = null;
|
|
41
|
-
y !== void 0 && (E = "" + y), l.key !== void 0 && (E = "" + l.key), l.ref !== void 0 && (F = l.ref);
|
|
42
|
-
for (v in l) n.call(l, v) && !s.hasOwnProperty(v) && (_[v] = l[v]);
|
|
43
|
-
if (h && h.defaultProps) for (v in l = h.defaultProps, l) _[v] === void 0 && (_[v] = l[v]);
|
|
44
|
-
return { $$typeof: r, type: h, key: E, ref: F, props: _, _owner: c.current };
|
|
45
|
-
}
|
|
46
|
-
return xe.Fragment = i, xe.jsx = u, xe.jsxs = u, xe;
|
|
47
|
-
}
|
|
48
|
-
var we = {};
|
|
49
|
-
/**
|
|
50
|
-
* @license React
|
|
51
|
-
* react-jsx-runtime.development.js
|
|
52
|
-
*
|
|
53
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
54
|
-
*
|
|
55
|
-
* This source code is licensed under the MIT license found in the
|
|
56
|
-
* LICENSE file in the root directory of this source tree.
|
|
57
|
-
*/
|
|
58
|
-
var ir;
|
|
59
|
-
function Wo() {
|
|
60
|
-
return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
|
|
61
|
-
var d = sr, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), z = Symbol.iterator, b = "@@iterator";
|
|
62
|
-
function m(e) {
|
|
63
|
-
if (e === null || typeof e != "object")
|
|
64
|
-
return null;
|
|
65
|
-
var t = z && e[z] || e[b];
|
|
66
|
-
return typeof t == "function" ? t : null;
|
|
67
|
-
}
|
|
68
|
-
var R = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
69
|
-
function f(e) {
|
|
70
|
-
{
|
|
71
|
-
for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), g = 1; g < t; g++)
|
|
72
|
-
a[g - 1] = arguments[g];
|
|
73
|
-
Y("error", e, a);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function Y(e, t, a) {
|
|
77
|
-
{
|
|
78
|
-
var g = R.ReactDebugCurrentFrame, M = g.getStackAddendum();
|
|
79
|
-
M !== "" && (t += "%s", a = a.concat([M]));
|
|
80
|
-
var O = a.map(function(S) {
|
|
81
|
-
return String(S);
|
|
82
|
-
});
|
|
83
|
-
O.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, O);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
var k = !1, N = !1, P = !1, x = !1, C = !1, U;
|
|
87
|
-
U = Symbol.for("react.module.reference");
|
|
88
|
-
function ce(e) {
|
|
89
|
-
return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || C || e === c || e === y || e === v || x || e === F || k || N || P || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === _ || e.$$typeof === u || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
|
|
90
|
-
// types supported by any Flight configuration anywhere since
|
|
91
|
-
// we don't know which Flight build this will end up being used
|
|
92
|
-
// with.
|
|
93
|
-
e.$$typeof === U || e.getModuleId !== void 0));
|
|
94
|
-
}
|
|
95
|
-
function H(e, t, a) {
|
|
96
|
-
var g = e.displayName;
|
|
97
|
-
if (g)
|
|
98
|
-
return g;
|
|
99
|
-
var M = t.displayName || t.name || "";
|
|
100
|
-
return M !== "" ? a + "(" + M + ")" : a;
|
|
101
|
-
}
|
|
102
|
-
function pe(e) {
|
|
103
|
-
return e.displayName || "Context";
|
|
104
|
-
}
|
|
105
|
-
function G(e) {
|
|
106
|
-
if (e == null)
|
|
107
|
-
return null;
|
|
108
|
-
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
109
|
-
return e.displayName || e.name || null;
|
|
110
|
-
if (typeof e == "string")
|
|
111
|
-
return e;
|
|
112
|
-
switch (e) {
|
|
113
|
-
case n:
|
|
114
|
-
return "Fragment";
|
|
115
|
-
case i:
|
|
116
|
-
return "Portal";
|
|
117
|
-
case s:
|
|
118
|
-
return "Profiler";
|
|
119
|
-
case c:
|
|
120
|
-
return "StrictMode";
|
|
121
|
-
case y:
|
|
122
|
-
return "Suspense";
|
|
123
|
-
case v:
|
|
124
|
-
return "SuspenseList";
|
|
125
|
-
}
|
|
126
|
-
if (typeof e == "object")
|
|
127
|
-
switch (e.$$typeof) {
|
|
128
|
-
case h:
|
|
129
|
-
var t = e;
|
|
130
|
-
return pe(t) + ".Consumer";
|
|
131
|
-
case u:
|
|
132
|
-
var a = e;
|
|
133
|
-
return pe(a._context) + ".Provider";
|
|
134
|
-
case l:
|
|
135
|
-
return H(e, e.render, "ForwardRef");
|
|
136
|
-
case _:
|
|
137
|
-
var g = e.displayName || null;
|
|
138
|
-
return g !== null ? g : G(e.type) || "Memo";
|
|
139
|
-
case E: {
|
|
140
|
-
var M = e, O = M._payload, S = M._init;
|
|
141
|
-
try {
|
|
142
|
-
return G(S(O));
|
|
143
|
-
} catch {
|
|
144
|
-
return null;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return null;
|
|
149
|
-
}
|
|
150
|
-
var oe = Object.assign, le = 0, A, ne, se, je, Se, Ie, Te;
|
|
151
|
-
function I() {
|
|
152
|
-
}
|
|
153
|
-
I.__reactDisabledLog = !0;
|
|
154
|
-
function K() {
|
|
155
|
-
{
|
|
156
|
-
if (le === 0) {
|
|
157
|
-
A = console.log, ne = console.info, se = console.warn, je = console.error, Se = console.group, Ie = console.groupCollapsed, Te = console.groupEnd;
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
value: I,
|
|
162
|
-
writable: !0
|
|
163
|
-
};
|
|
164
|
-
Object.defineProperties(console, {
|
|
165
|
-
info: e,
|
|
166
|
-
log: e,
|
|
167
|
-
warn: e,
|
|
168
|
-
error: e,
|
|
169
|
-
group: e,
|
|
170
|
-
groupCollapsed: e,
|
|
171
|
-
groupEnd: e
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
le++;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
function J() {
|
|
178
|
-
{
|
|
179
|
-
if (le--, le === 0) {
|
|
180
|
-
var e = {
|
|
181
|
-
configurable: !0,
|
|
182
|
-
enumerable: !0,
|
|
183
|
-
writable: !0
|
|
184
|
-
};
|
|
185
|
-
Object.defineProperties(console, {
|
|
186
|
-
log: oe({}, e, {
|
|
187
|
-
value: A
|
|
188
|
-
}),
|
|
189
|
-
info: oe({}, e, {
|
|
190
|
-
value: ne
|
|
191
|
-
}),
|
|
192
|
-
warn: oe({}, e, {
|
|
193
|
-
value: se
|
|
194
|
-
}),
|
|
195
|
-
error: oe({}, e, {
|
|
196
|
-
value: je
|
|
197
|
-
}),
|
|
198
|
-
group: oe({}, e, {
|
|
199
|
-
value: Se
|
|
200
|
-
}),
|
|
201
|
-
groupCollapsed: oe({}, e, {
|
|
202
|
-
value: Ie
|
|
203
|
-
}),
|
|
204
|
-
groupEnd: oe({}, e, {
|
|
205
|
-
value: Te
|
|
206
|
-
})
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
le < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
var $ = R.ReactCurrentDispatcher, L;
|
|
213
|
-
function B(e, t, a) {
|
|
214
|
-
{
|
|
215
|
-
if (L === void 0)
|
|
216
|
-
try {
|
|
217
|
-
throw Error();
|
|
218
|
-
} catch (M) {
|
|
219
|
-
var g = M.stack.trim().match(/\n( *(at )?)/);
|
|
220
|
-
L = g && g[1] || "";
|
|
221
|
-
}
|
|
222
|
-
return `
|
|
223
|
-
` + L + e;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
var j = !1, D;
|
|
227
|
-
{
|
|
228
|
-
var q = typeof WeakMap == "function" ? WeakMap : Map;
|
|
229
|
-
D = new q();
|
|
230
|
-
}
|
|
231
|
-
function te(e, t) {
|
|
232
|
-
if (!e || j)
|
|
233
|
-
return "";
|
|
234
|
-
{
|
|
235
|
-
var a = D.get(e);
|
|
236
|
-
if (a !== void 0)
|
|
237
|
-
return a;
|
|
238
|
-
}
|
|
239
|
-
var g;
|
|
240
|
-
j = !0;
|
|
241
|
-
var M = Error.prepareStackTrace;
|
|
242
|
-
Error.prepareStackTrace = void 0;
|
|
243
|
-
var O;
|
|
244
|
-
O = $.current, $.current = null, K();
|
|
245
|
-
try {
|
|
246
|
-
if (t) {
|
|
247
|
-
var S = function() {
|
|
248
|
-
throw Error();
|
|
249
|
-
};
|
|
250
|
-
if (Object.defineProperty(S.prototype, "props", {
|
|
251
|
-
set: function() {
|
|
252
|
-
throw Error();
|
|
253
|
-
}
|
|
254
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
255
|
-
try {
|
|
256
|
-
Reflect.construct(S, []);
|
|
257
|
-
} catch (re) {
|
|
258
|
-
g = re;
|
|
259
|
-
}
|
|
260
|
-
Reflect.construct(e, [], S);
|
|
261
|
-
} else {
|
|
262
|
-
try {
|
|
263
|
-
S.call();
|
|
264
|
-
} catch (re) {
|
|
265
|
-
g = re;
|
|
266
|
-
}
|
|
267
|
-
e.call(S.prototype);
|
|
268
|
-
}
|
|
269
|
-
} else {
|
|
270
|
-
try {
|
|
271
|
-
throw Error();
|
|
272
|
-
} catch (re) {
|
|
273
|
-
g = re;
|
|
274
|
-
}
|
|
275
|
-
e();
|
|
276
|
-
}
|
|
277
|
-
} catch (re) {
|
|
278
|
-
if (re && g && typeof re.stack == "string") {
|
|
279
|
-
for (var w = re.stack.split(`
|
|
280
|
-
`), Z = g.stack.split(`
|
|
281
|
-
`), W = w.length - 1, X = Z.length - 1; W >= 1 && X >= 0 && w[W] !== Z[X]; )
|
|
282
|
-
X--;
|
|
283
|
-
for (; W >= 1 && X >= 0; W--, X--)
|
|
284
|
-
if (w[W] !== Z[X]) {
|
|
285
|
-
if (W !== 1 || X !== 1)
|
|
286
|
-
do
|
|
287
|
-
if (W--, X--, X < 0 || w[W] !== Z[X]) {
|
|
288
|
-
var ae = `
|
|
289
|
-
` + w[W].replace(" at new ", " at ");
|
|
290
|
-
return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && D.set(e, ae), ae;
|
|
291
|
-
}
|
|
292
|
-
while (W >= 1 && X >= 0);
|
|
293
|
-
break;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
} finally {
|
|
297
|
-
j = !1, $.current = O, J(), Error.prepareStackTrace = M;
|
|
298
|
-
}
|
|
299
|
-
var he = e ? e.displayName || e.name : "", ue = he ? B(he) : "";
|
|
300
|
-
return typeof e == "function" && D.set(e, ue), ue;
|
|
301
|
-
}
|
|
302
|
-
function Re(e, t, a) {
|
|
303
|
-
return te(e, !1);
|
|
304
|
-
}
|
|
305
|
-
function Me(e) {
|
|
306
|
-
var t = e.prototype;
|
|
307
|
-
return !!(t && t.isReactComponent);
|
|
308
|
-
}
|
|
309
|
-
function ee(e, t, a) {
|
|
310
|
-
if (e == null)
|
|
311
|
-
return "";
|
|
312
|
-
if (typeof e == "function")
|
|
313
|
-
return te(e, Me(e));
|
|
314
|
-
if (typeof e == "string")
|
|
315
|
-
return B(e);
|
|
316
|
-
switch (e) {
|
|
317
|
-
case y:
|
|
318
|
-
return B("Suspense");
|
|
319
|
-
case v:
|
|
320
|
-
return B("SuspenseList");
|
|
321
|
-
}
|
|
322
|
-
if (typeof e == "object")
|
|
323
|
-
switch (e.$$typeof) {
|
|
324
|
-
case l:
|
|
325
|
-
return Re(e.render);
|
|
326
|
-
case _:
|
|
327
|
-
return ee(e.type, t, a);
|
|
328
|
-
case E: {
|
|
329
|
-
var g = e, M = g._payload, O = g._init;
|
|
330
|
-
try {
|
|
331
|
-
return ee(O(M), t, a);
|
|
332
|
-
} catch {
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
return "";
|
|
337
|
-
}
|
|
338
|
-
var de = Object.prototype.hasOwnProperty, Xe = {}, qe = R.ReactDebugCurrentFrame;
|
|
339
|
-
function Ee(e) {
|
|
340
|
-
if (e) {
|
|
341
|
-
var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
|
|
342
|
-
qe.setExtraStackFrame(a);
|
|
343
|
-
} else
|
|
344
|
-
qe.setExtraStackFrame(null);
|
|
345
|
-
}
|
|
346
|
-
function jr(e, t, a, g, M) {
|
|
347
|
-
{
|
|
348
|
-
var O = Function.call.bind(de);
|
|
349
|
-
for (var S in e)
|
|
350
|
-
if (O(e, S)) {
|
|
351
|
-
var w = void 0;
|
|
352
|
-
try {
|
|
353
|
-
if (typeof e[S] != "function") {
|
|
354
|
-
var Z = Error((g || "React class") + ": " + a + " 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`.");
|
|
355
|
-
throw Z.name = "Invariant Violation", Z;
|
|
356
|
-
}
|
|
357
|
-
w = e[S](t, S, g, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
358
|
-
} catch (W) {
|
|
359
|
-
w = W;
|
|
360
|
-
}
|
|
361
|
-
w && !(w instanceof Error) && (Ee(M), f("%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).", g || "React class", a, S, typeof w), Ee(null)), w instanceof Error && !(w.message in Xe) && (Xe[w.message] = !0, Ee(M), f("Failed %s type: %s", a, w.message), Ee(null));
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
var Sr = Array.isArray;
|
|
366
|
-
function Ne(e) {
|
|
367
|
-
return Sr(e);
|
|
368
|
-
}
|
|
369
|
-
function Ir(e) {
|
|
370
|
-
{
|
|
371
|
-
var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
372
|
-
return a;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
function Tr(e) {
|
|
376
|
-
try {
|
|
377
|
-
return Ue(e), !1;
|
|
378
|
-
} catch {
|
|
379
|
-
return !0;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
function Ue(e) {
|
|
383
|
-
return "" + e;
|
|
384
|
-
}
|
|
385
|
-
function Ge(e) {
|
|
386
|
-
if (Tr(e))
|
|
387
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ir(e)), Ue(e);
|
|
388
|
-
}
|
|
389
|
-
var ve = R.ReactCurrentOwner, Rr = {
|
|
390
|
-
key: !0,
|
|
391
|
-
ref: !0,
|
|
392
|
-
__self: !0,
|
|
393
|
-
__source: !0
|
|
394
|
-
}, He, Je, $e;
|
|
395
|
-
$e = {};
|
|
396
|
-
function Mr(e) {
|
|
397
|
-
if (de.call(e, "ref")) {
|
|
398
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
399
|
-
if (t && t.isReactWarning)
|
|
400
|
-
return !1;
|
|
401
|
-
}
|
|
402
|
-
return e.ref !== void 0;
|
|
403
|
-
}
|
|
404
|
-
function Er(e) {
|
|
405
|
-
if (de.call(e, "key")) {
|
|
406
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
407
|
-
if (t && t.isReactWarning)
|
|
408
|
-
return !1;
|
|
409
|
-
}
|
|
410
|
-
return e.key !== void 0;
|
|
411
|
-
}
|
|
412
|
-
function _r(e, t) {
|
|
413
|
-
if (typeof e.ref == "string" && ve.current && t && ve.current.stateNode !== t) {
|
|
414
|
-
var a = G(ve.current.type);
|
|
415
|
-
$e[a] || (f('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', G(ve.current.type), e.ref), $e[a] = !0);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
function Pr(e, t) {
|
|
419
|
-
{
|
|
420
|
-
var a = function() {
|
|
421
|
-
He || (He = !0, f("%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)", t));
|
|
422
|
-
};
|
|
423
|
-
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
424
|
-
get: a,
|
|
425
|
-
configurable: !0
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
function Dr(e, t) {
|
|
430
|
-
{
|
|
431
|
-
var a = function() {
|
|
432
|
-
Je || (Je = !0, f("%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)", t));
|
|
433
|
-
};
|
|
434
|
-
a.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
435
|
-
get: a,
|
|
436
|
-
configurable: !0
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
var Nr = function(e, t, a, g, M, O, S) {
|
|
441
|
-
var w = {
|
|
442
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
443
|
-
$$typeof: r,
|
|
444
|
-
// Built-in properties that belong on the element
|
|
445
|
-
type: e,
|
|
446
|
-
key: t,
|
|
447
|
-
ref: a,
|
|
448
|
-
props: S,
|
|
449
|
-
// Record the component responsible for creating this element.
|
|
450
|
-
_owner: O
|
|
451
|
-
};
|
|
452
|
-
return w._store = {}, Object.defineProperty(w._store, "validated", {
|
|
453
|
-
configurable: !1,
|
|
454
|
-
enumerable: !1,
|
|
455
|
-
writable: !0,
|
|
456
|
-
value: !1
|
|
457
|
-
}), Object.defineProperty(w, "_self", {
|
|
458
|
-
configurable: !1,
|
|
459
|
-
enumerable: !1,
|
|
460
|
-
writable: !1,
|
|
461
|
-
value: g
|
|
462
|
-
}), Object.defineProperty(w, "_source", {
|
|
463
|
-
configurable: !1,
|
|
464
|
-
enumerable: !1,
|
|
465
|
-
writable: !1,
|
|
466
|
-
value: M
|
|
467
|
-
}), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
|
|
468
|
-
};
|
|
469
|
-
function $r(e, t, a, g, M) {
|
|
470
|
-
{
|
|
471
|
-
var O, S = {}, w = null, Z = null;
|
|
472
|
-
a !== void 0 && (Ge(a), w = "" + a), Er(t) && (Ge(t.key), w = "" + t.key), Mr(t) && (Z = t.ref, _r(t, M));
|
|
473
|
-
for (O in t)
|
|
474
|
-
de.call(t, O) && !Rr.hasOwnProperty(O) && (S[O] = t[O]);
|
|
475
|
-
if (e && e.defaultProps) {
|
|
476
|
-
var W = e.defaultProps;
|
|
477
|
-
for (O in W)
|
|
478
|
-
S[O] === void 0 && (S[O] = W[O]);
|
|
479
|
-
}
|
|
480
|
-
if (w || Z) {
|
|
481
|
-
var X = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
482
|
-
w && Pr(S, X), Z && Dr(S, X);
|
|
483
|
-
}
|
|
484
|
-
return Nr(e, w, Z, M, g, ve.current, S);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
var Oe = R.ReactCurrentOwner, Ke = R.ReactDebugCurrentFrame;
|
|
488
|
-
function fe(e) {
|
|
489
|
-
if (e) {
|
|
490
|
-
var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
|
|
491
|
-
Ke.setExtraStackFrame(a);
|
|
492
|
-
} else
|
|
493
|
-
Ke.setExtraStackFrame(null);
|
|
494
|
-
}
|
|
495
|
-
var Be;
|
|
496
|
-
Be = !1;
|
|
497
|
-
function Ae(e) {
|
|
498
|
-
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
499
|
-
}
|
|
500
|
-
function Ze() {
|
|
501
|
-
{
|
|
502
|
-
if (Oe.current) {
|
|
503
|
-
var e = G(Oe.current.type);
|
|
504
|
-
if (e)
|
|
505
|
-
return `
|
|
506
|
-
|
|
507
|
-
Check the render method of \`` + e + "`.";
|
|
508
|
-
}
|
|
509
|
-
return "";
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
function Or(e) {
|
|
513
|
-
return "";
|
|
514
|
-
}
|
|
515
|
-
var Qe = {};
|
|
516
|
-
function Br(e) {
|
|
517
|
-
{
|
|
518
|
-
var t = Ze();
|
|
519
|
-
if (!t) {
|
|
520
|
-
var a = typeof e == "string" ? e : e.displayName || e.name;
|
|
521
|
-
a && (t = `
|
|
522
|
-
|
|
523
|
-
Check the top-level render call using <` + a + ">.");
|
|
524
|
-
}
|
|
525
|
-
return t;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
function er(e, t) {
|
|
529
|
-
{
|
|
530
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
531
|
-
return;
|
|
532
|
-
e._store.validated = !0;
|
|
533
|
-
var a = Br(t);
|
|
534
|
-
if (Qe[a])
|
|
535
|
-
return;
|
|
536
|
-
Qe[a] = !0;
|
|
537
|
-
var g = "";
|
|
538
|
-
e && e._owner && e._owner !== Oe.current && (g = " It was passed a child from " + G(e._owner.type) + "."), fe(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, g), fe(null);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
function rr(e, t) {
|
|
542
|
-
{
|
|
543
|
-
if (typeof e != "object")
|
|
544
|
-
return;
|
|
545
|
-
if (Ne(e))
|
|
546
|
-
for (var a = 0; a < e.length; a++) {
|
|
547
|
-
var g = e[a];
|
|
548
|
-
Ae(g) && er(g, t);
|
|
549
|
-
}
|
|
550
|
-
else if (Ae(e))
|
|
551
|
-
e._store && (e._store.validated = !0);
|
|
552
|
-
else if (e) {
|
|
553
|
-
var M = m(e);
|
|
554
|
-
if (typeof M == "function" && M !== e.entries)
|
|
555
|
-
for (var O = M.call(e), S; !(S = O.next()).done; )
|
|
556
|
-
Ae(S.value) && er(S.value, t);
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function Ar(e) {
|
|
561
|
-
{
|
|
562
|
-
var t = e.type;
|
|
563
|
-
if (t == null || typeof t == "string")
|
|
564
|
-
return;
|
|
565
|
-
var a;
|
|
566
|
-
if (typeof t == "function")
|
|
567
|
-
a = t.propTypes;
|
|
568
|
-
else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
|
|
569
|
-
// Inner props are checked in the reconciler.
|
|
570
|
-
t.$$typeof === _))
|
|
571
|
-
a = t.propTypes;
|
|
572
|
-
else
|
|
573
|
-
return;
|
|
574
|
-
if (a) {
|
|
575
|
-
var g = G(t);
|
|
576
|
-
jr(a, e.props, "prop", g, e);
|
|
577
|
-
} else if (t.PropTypes !== void 0 && !Be) {
|
|
578
|
-
Be = !0;
|
|
579
|
-
var M = G(t);
|
|
580
|
-
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
|
|
581
|
-
}
|
|
582
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
function Lr(e) {
|
|
586
|
-
{
|
|
587
|
-
for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
|
|
588
|
-
var g = t[a];
|
|
589
|
-
if (g !== "children" && g !== "key") {
|
|
590
|
-
fe(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), fe(null);
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
e.ref !== null && (fe(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
var or = {};
|
|
598
|
-
function tr(e, t, a, g, M, O) {
|
|
599
|
-
{
|
|
600
|
-
var S = ce(e);
|
|
601
|
-
if (!S) {
|
|
602
|
-
var w = "";
|
|
603
|
-
(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.");
|
|
604
|
-
var Z = Or();
|
|
605
|
-
Z ? w += Z : w += Ze();
|
|
606
|
-
var W;
|
|
607
|
-
e === null ? W = "null" : Ne(e) ? W = "array" : e !== void 0 && e.$$typeof === r ? (W = "<" + (G(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, w);
|
|
608
|
-
}
|
|
609
|
-
var X = $r(e, t, a, M, O);
|
|
610
|
-
if (X == null)
|
|
611
|
-
return X;
|
|
612
|
-
if (S) {
|
|
613
|
-
var ae = t.children;
|
|
614
|
-
if (ae !== void 0)
|
|
615
|
-
if (g)
|
|
616
|
-
if (Ne(ae)) {
|
|
617
|
-
for (var he = 0; he < ae.length; he++)
|
|
618
|
-
rr(ae[he], e);
|
|
619
|
-
Object.freeze && Object.freeze(ae);
|
|
620
|
-
} else
|
|
621
|
-
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
622
|
-
else
|
|
623
|
-
rr(ae, e);
|
|
624
|
-
}
|
|
625
|
-
if (de.call(t, "key")) {
|
|
626
|
-
var ue = G(e), re = Object.keys(t).filter(function(Xr) {
|
|
627
|
-
return Xr !== "key";
|
|
628
|
-
}), Le = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
629
|
-
if (!or[ue + Le]) {
|
|
630
|
-
var Vr = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
|
|
631
|
-
f(`A props object containing a "key" prop is being spread into JSX:
|
|
632
|
-
let props = %s;
|
|
633
|
-
<%s {...props} />
|
|
634
|
-
React keys must be passed directly to JSX without using spread:
|
|
635
|
-
let props = %s;
|
|
636
|
-
<%s key={someKey} {...props} />`, Le, ue, Vr, ue), or[ue + Le] = !0;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
return e === n ? Lr(X) : Ar(X), X;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
function Fr(e, t, a) {
|
|
643
|
-
return tr(e, t, a, !0);
|
|
644
|
-
}
|
|
645
|
-
function zr(e, t, a) {
|
|
646
|
-
return tr(e, t, a, !1);
|
|
647
|
-
}
|
|
648
|
-
var Yr = zr, Wr = Fr;
|
|
649
|
-
we.Fragment = n, we.jsx = Yr, we.jsxs = Wr;
|
|
650
|
-
}()), we;
|
|
651
|
-
}
|
|
652
|
-
var lr;
|
|
653
|
-
function Vo() {
|
|
654
|
-
return lr || (lr = 1, process.env.NODE_ENV === "production" ? Pe.exports = Yo() : Pe.exports = Wo()), Pe.exports;
|
|
655
|
-
}
|
|
656
|
-
var o = Vo();
|
|
657
|
-
const mr = {
|
|
5
|
+
import { jsx as o, jsxs as H, Fragment as ce } from "react/jsx-runtime";
|
|
6
|
+
import { cx as D, css as i } from "@emotion/css";
|
|
7
|
+
import { createContext as fe, useMemo as le, useContext as be, useState as F, useRef as te, useEffect as oe } from "react";
|
|
8
|
+
import Ee from "react-slick";
|
|
9
|
+
import { ReactSortable as de } from "react-sortablejs";
|
|
10
|
+
import { AnimatePresence as ue, motion as f, useMotionValue as Xe, useTransform as ee, useSpring as ne } from "framer-motion";
|
|
11
|
+
import { useLocalStorageState as Fe, useDebounceEffect as Ge } from "ahooks";
|
|
12
|
+
import { v4 as he } from "uuid";
|
|
13
|
+
import He from "rc-tooltip";
|
|
14
|
+
import { RiPencilRuler2Line as qe, RiShareLine as Ye, RiInformationLine as Ve, RiCloseCircleLine as _e, RiMoreLine as Oe } from "@remixicon/react";
|
|
15
|
+
import ke from "rc-dialog";
|
|
16
|
+
import Ue from "react-json-view";
|
|
17
|
+
import { MDXEditor as We, toolbarPlugin as Je, DiffSourceToggleWrapper as Ke, UndoRedo as Ze, Separator as J, BoldItalicUnderlineToggles as Qe, CodeToggle as eo, StrikeThroughSupSubToggles as oo, ListsToggle as to, CreateLink as ro, InsertImage as no, InsertTable as lo, InsertThematicBreak as ao, InsertCodeBlock as io, InsertFrontmatter as so, diffSourcePlugin as co, listsPlugin as uo, quotePlugin as mo, headingsPlugin as go, linkPlugin as po, linkDialogPlugin as ho, imagePlugin as fo, tablePlugin as bo, thematicBreakPlugin as ko, frontmatterPlugin as vo, codeBlockPlugin as xo, codeMirrorPlugin as wo, markdownShortcutPlugin as Co, directivesPlugin as yo, AdmonitionDirectiveDescriptor as Io } from "@mdxeditor/editor";
|
|
18
|
+
import Mo from "react-markdown";
|
|
19
|
+
import So from "remark-gfm";
|
|
20
|
+
import To from "remark-emoji";
|
|
21
|
+
import No from "rehype-raw";
|
|
22
|
+
import { Prism as Bo } from "react-syntax-highlighter";
|
|
23
|
+
import { clsx as Do } from "clsx";
|
|
24
|
+
import { twMerge as $o } from "tailwind-merge";
|
|
25
|
+
const ve = {
|
|
658
26
|
token: {
|
|
659
27
|
itemNameColor: "#1a1a1a",
|
|
660
28
|
itemIconBackgroundColor: "white",
|
|
@@ -667,7 +35,7 @@ const mr = {
|
|
|
667
35
|
contextMenuBackgroundColor: "white",
|
|
668
36
|
contextMenuShadowColor: "rgba(0, 0, 0, 0.1)"
|
|
669
37
|
}
|
|
670
|
-
},
|
|
38
|
+
}, xe = {
|
|
671
39
|
token: {
|
|
672
40
|
itemNameColor: "white",
|
|
673
41
|
itemIconBackgroundColor: "#1f2937",
|
|
@@ -680,28 +48,28 @@ const mr = {
|
|
|
680
48
|
contextMenuBackgroundColor: "#1a1a1a",
|
|
681
49
|
contextMenuShadowColor: "rgba(255, 255, 255, 0.1)"
|
|
682
50
|
}
|
|
683
|
-
},
|
|
51
|
+
}, we = fe(
|
|
684
52
|
{}
|
|
685
|
-
),
|
|
686
|
-
const { children:
|
|
687
|
-
return /* @__PURE__ */ o
|
|
688
|
-
},
|
|
53
|
+
), Po = (a) => {
|
|
54
|
+
const { children: e, theme: r, ...t } = a, l = le(() => r === "light" ? ve : r === "dark" ? xe : r, [r]);
|
|
55
|
+
return /* @__PURE__ */ o(we.Provider, { value: { theme: l, ...t }, children: e });
|
|
56
|
+
}, K = () => be(we), Ce = {
|
|
689
57
|
maxRow: 2,
|
|
690
58
|
maxCol: 2
|
|
691
|
-
},
|
|
692
|
-
...
|
|
693
|
-
},
|
|
694
|
-
app:
|
|
695
|
-
group:
|
|
59
|
+
}, Ro = {
|
|
60
|
+
...Ce
|
|
61
|
+
}, ye = {
|
|
62
|
+
app: Ce,
|
|
63
|
+
group: Ro
|
|
696
64
|
};
|
|
697
|
-
class
|
|
65
|
+
class q {
|
|
698
66
|
}
|
|
699
67
|
/** 清理重复id */
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
return { light:
|
|
68
|
+
ie(q, "uniqueArray", (e) => e.reduce((r, t) => r.find((n) => n.id === t.id) ? r : r.concat([t]), [])), ie(q, "getTheme", (e) => {
|
|
69
|
+
const r = ve.token, t = xe.token, l = { ...r, ...e == null ? void 0 : e.token }, n = { ...t, ...e == null ? void 0 : e.token };
|
|
70
|
+
return { light: l, dark: n };
|
|
703
71
|
});
|
|
704
|
-
const
|
|
72
|
+
const Ie = fe({
|
|
705
73
|
list: [],
|
|
706
74
|
setList: () => {
|
|
707
75
|
},
|
|
@@ -736,197 +104,197 @@ const br = cr({
|
|
|
736
104
|
moveTargetId: null,
|
|
737
105
|
setMoveTargetId: () => {
|
|
738
106
|
}
|
|
739
|
-
}),
|
|
107
|
+
}), Lo = (a) => {
|
|
740
108
|
const {
|
|
741
|
-
children:
|
|
742
|
-
list:
|
|
743
|
-
onChange:
|
|
744
|
-
storageKey:
|
|
745
|
-
enableCaching:
|
|
746
|
-
} =
|
|
109
|
+
children: e,
|
|
110
|
+
list: r = [],
|
|
111
|
+
onChange: t,
|
|
112
|
+
storageKey: l = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
|
|
113
|
+
enableCaching: n = !0
|
|
114
|
+
} = a, [d, p] = F(), [s, v] = F(), [C, R] = F(null), T = te(C), [A, L] = F(null), [u, c] = F([]), [I, x] = F(
|
|
747
115
|
null
|
|
748
|
-
), [
|
|
116
|
+
), [$, m] = F(
|
|
749
117
|
null
|
|
750
|
-
), [
|
|
118
|
+
), [y, w] = F(!1), [g, h] = F(null), [j, O] = F(
|
|
751
119
|
null
|
|
752
|
-
), [
|
|
120
|
+
), [E, ae] = F(!1), [U, Q] = Fe(l, {
|
|
753
121
|
defaultValue: [],
|
|
754
122
|
listenStorageChange: !0
|
|
755
|
-
}),
|
|
756
|
-
|
|
757
|
-
},
|
|
758
|
-
|
|
759
|
-
},
|
|
760
|
-
const { config:
|
|
761
|
-
return
|
|
762
|
-
onMouseDown: (
|
|
763
|
-
|
|
123
|
+
}), re = () => {
|
|
124
|
+
L(null), clearTimeout(d), p(void 0), T.current = null;
|
|
125
|
+
}, N = (b, G) => {
|
|
126
|
+
L({ ...b, pageX: b.pageX, pageY: b.pageY, data: G }), clearTimeout(d);
|
|
127
|
+
}, V = (b, G = !0) => {
|
|
128
|
+
const { config: X = {} } = b;
|
|
129
|
+
return X.allowContextMenu === !1 ? {} : {
|
|
130
|
+
onMouseDown: (M) => {
|
|
131
|
+
p(
|
|
764
132
|
setTimeout(() => {
|
|
765
|
-
|
|
133
|
+
G && T.current === null && N(M, b);
|
|
766
134
|
}, 800)
|
|
767
|
-
),
|
|
135
|
+
), w(!1), v(
|
|
768
136
|
setTimeout(() => {
|
|
769
|
-
|
|
137
|
+
w(!0);
|
|
770
138
|
}, 800)
|
|
771
139
|
);
|
|
772
140
|
},
|
|
773
141
|
onMouseUp: () => {
|
|
774
|
-
clearTimeout(
|
|
142
|
+
clearTimeout(s), v(void 0), clearTimeout(d), p(void 0);
|
|
775
143
|
},
|
|
776
|
-
onContextMenu: (
|
|
777
|
-
|
|
144
|
+
onContextMenu: (M) => {
|
|
145
|
+
G && (M.preventDefault(), N(M, b));
|
|
778
146
|
}
|
|
779
147
|
};
|
|
780
|
-
},
|
|
781
|
-
const
|
|
782
|
-
if (
|
|
783
|
-
|
|
784
|
-
const
|
|
785
|
-
var
|
|
786
|
-
const
|
|
787
|
-
if (
|
|
788
|
-
if (((
|
|
789
|
-
(
|
|
790
|
-
).length) === 1 &&
|
|
791
|
-
const
|
|
792
|
-
return
|
|
148
|
+
}, W = (b, G) => {
|
|
149
|
+
const X = [...G || []];
|
|
150
|
+
if (X.length > 0)
|
|
151
|
+
c((M) => {
|
|
152
|
+
const P = [...M], B = (k) => {
|
|
153
|
+
var ge, pe;
|
|
154
|
+
const S = X.shift(), z = k.find((_) => _.id === S), Y = k.findIndex((_) => _.id === S);
|
|
155
|
+
if (X.length && z) {
|
|
156
|
+
if (((ge = z.children) == null ? void 0 : ge.filter(
|
|
157
|
+
(_) => !b.some((ze) => ze.id === _.id)
|
|
158
|
+
).length) === 1 && b.length === 1) {
|
|
159
|
+
const _ = { ...b[0] };
|
|
160
|
+
return k.splice(Y, 1, _), t == null || t(k), k;
|
|
793
161
|
}
|
|
794
|
-
return
|
|
162
|
+
return z.children = B(z.children || []), k.splice(Y, 1, z), t == null || t(k), k;
|
|
795
163
|
}
|
|
796
|
-
if (
|
|
797
|
-
if (!((
|
|
798
|
-
const
|
|
799
|
-
return
|
|
164
|
+
if (z) {
|
|
165
|
+
if (!((pe = z.children) != null && pe.length) && b.length) {
|
|
166
|
+
const _ = { ...z };
|
|
167
|
+
return z.data = { name: "文件夹" }, z.type = "group", z.children = [_, ...b], z.id = he(), k.splice(Y, 1, z), t == null || t(k), k;
|
|
800
168
|
}
|
|
801
|
-
return
|
|
169
|
+
return z.children = q.uniqueArray(b), k.splice(Y, 1, z), t == null || t(k), k;
|
|
802
170
|
}
|
|
803
|
-
return
|
|
171
|
+
return q.uniqueArray(b);
|
|
804
172
|
};
|
|
805
|
-
return
|
|
173
|
+
return q.uniqueArray(B(P));
|
|
806
174
|
});
|
|
807
175
|
else {
|
|
808
|
-
const
|
|
809
|
-
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
const
|
|
814
|
-
var
|
|
815
|
-
for (let
|
|
816
|
-
if (B[
|
|
817
|
-
B[
|
|
176
|
+
const M = q.uniqueArray(b);
|
|
177
|
+
t == null || t(M), c(M);
|
|
178
|
+
}
|
|
179
|
+
}, $e = (b, G) => {
|
|
180
|
+
c((X) => {
|
|
181
|
+
const M = [...X], P = (B) => {
|
|
182
|
+
var k;
|
|
183
|
+
for (let S = 0; S < B.length; S++)
|
|
184
|
+
if (B[S].id === b) {
|
|
185
|
+
B[S].config = G;
|
|
818
186
|
break;
|
|
819
|
-
} else ((
|
|
187
|
+
} else ((k = B[S].children) == null ? void 0 : k.length) !== void 0 && P(B[S].children);
|
|
820
188
|
};
|
|
821
|
-
return
|
|
189
|
+
return P(M), t == null || t(M), M;
|
|
822
190
|
});
|
|
823
|
-
},
|
|
824
|
-
|
|
825
|
-
const
|
|
826
|
-
var
|
|
827
|
-
for (let
|
|
828
|
-
if (B[
|
|
829
|
-
B[
|
|
191
|
+
}, Pe = (b, G) => {
|
|
192
|
+
c((X) => {
|
|
193
|
+
const M = [...X], P = (B) => {
|
|
194
|
+
var k;
|
|
195
|
+
for (let S = 0; S < B.length; S++)
|
|
196
|
+
if (B[S].id === b) {
|
|
197
|
+
B[S].data = G;
|
|
830
198
|
break;
|
|
831
|
-
} else ((
|
|
199
|
+
} else ((k = B[S].children) == null ? void 0 : k.length) !== void 0 && P(B[S].children);
|
|
832
200
|
};
|
|
833
|
-
return
|
|
201
|
+
return P(M), t == null || t(M), M;
|
|
834
202
|
});
|
|
835
|
-
},
|
|
836
|
-
|
|
837
|
-
const
|
|
203
|
+
}, Re = (b) => {
|
|
204
|
+
c((G) => {
|
|
205
|
+
const X = [...G], M = (P) => {
|
|
838
206
|
var B;
|
|
839
|
-
for (let
|
|
840
|
-
if (
|
|
841
|
-
|
|
207
|
+
for (let k = 0; k < P.length; k++)
|
|
208
|
+
if (P[k].id === b) {
|
|
209
|
+
P.splice(k, 1);
|
|
842
210
|
break;
|
|
843
|
-
} else ((B =
|
|
211
|
+
} else ((B = P[k].children) == null ? void 0 : B.length) !== void 0 && M(P[k].children);
|
|
844
212
|
};
|
|
845
|
-
return
|
|
213
|
+
return M(X), t == null || t(X), X;
|
|
846
214
|
});
|
|
847
|
-
},
|
|
848
|
-
const
|
|
849
|
-
const
|
|
850
|
-
if (
|
|
215
|
+
}, Le = (b, G) => {
|
|
216
|
+
const X = [...u], M = (P, B) => {
|
|
217
|
+
const k = B.shift(), S = P.find((Y) => Y.id === k), z = P.findIndex((Y) => Y.id === k);
|
|
218
|
+
if (S) {
|
|
851
219
|
if (B.length)
|
|
852
|
-
|
|
220
|
+
S.children = M(S.children || [], B);
|
|
853
221
|
else {
|
|
854
|
-
const
|
|
855
|
-
|
|
856
|
-
...
|
|
222
|
+
const Y = (b == null ? void 0 : b.type) ?? "app";
|
|
223
|
+
S.children = [
|
|
224
|
+
...S.children ?? [],
|
|
857
225
|
{
|
|
858
|
-
...
|
|
859
|
-
id:
|
|
860
|
-
config: (
|
|
226
|
+
...b,
|
|
227
|
+
id: he(),
|
|
228
|
+
config: (b == null ? void 0 : b.config) ?? ye[Y]
|
|
861
229
|
}
|
|
862
230
|
];
|
|
863
231
|
}
|
|
864
|
-
return
|
|
232
|
+
return P.splice(z, 1, S), P;
|
|
865
233
|
} else
|
|
866
|
-
return
|
|
234
|
+
return P;
|
|
867
235
|
};
|
|
868
|
-
|
|
236
|
+
c(M(X, G));
|
|
869
237
|
};
|
|
870
|
-
return
|
|
871
|
-
(
|
|
872
|
-
}, [
|
|
873
|
-
|
|
874
|
-
}, [
|
|
875
|
-
|
|
876
|
-
}, [
|
|
238
|
+
return oe(() => {
|
|
239
|
+
(r == null ? void 0 : r.length) > 0 && u.length === 0 && W(r);
|
|
240
|
+
}, [r]), oe(() => {
|
|
241
|
+
T.current = C, C !== null && re();
|
|
242
|
+
}, [C]), oe(() => {
|
|
243
|
+
n && U != null && U.length && !E && (W(U), ae(!0));
|
|
244
|
+
}, [U, E, n]), Ge(
|
|
877
245
|
() => {
|
|
878
|
-
|
|
246
|
+
n && Q(u);
|
|
879
247
|
},
|
|
880
|
-
[
|
|
248
|
+
[u, n],
|
|
881
249
|
{
|
|
882
250
|
wait: 1e3
|
|
883
251
|
}
|
|
884
|
-
), /* @__PURE__ */ o
|
|
885
|
-
|
|
252
|
+
), /* @__PURE__ */ o(
|
|
253
|
+
Ie.Provider,
|
|
886
254
|
{
|
|
887
255
|
value: {
|
|
888
|
-
list:
|
|
889
|
-
setList:
|
|
890
|
-
contextMenu:
|
|
891
|
-
setContextMenu:
|
|
892
|
-
listStatus:
|
|
893
|
-
setListStatus:
|
|
894
|
-
contextMenuFuns:
|
|
895
|
-
hideContextMenu:
|
|
896
|
-
showInfoItemData:
|
|
897
|
-
setShowInfoItemData:
|
|
898
|
-
openGroupItemData:
|
|
899
|
-
setOpenGroupItemData:
|
|
900
|
-
longPressTriggered:
|
|
901
|
-
updateItemConfig:
|
|
902
|
-
updateItem:
|
|
903
|
-
removeItem:
|
|
904
|
-
addItem:
|
|
905
|
-
moveItemId:
|
|
906
|
-
setMoveItemId:
|
|
907
|
-
moveTargetId:
|
|
908
|
-
setMoveTargetId:
|
|
256
|
+
list: u,
|
|
257
|
+
setList: W,
|
|
258
|
+
contextMenu: A,
|
|
259
|
+
setContextMenu: L,
|
|
260
|
+
listStatus: C,
|
|
261
|
+
setListStatus: R,
|
|
262
|
+
contextMenuFuns: V,
|
|
263
|
+
hideContextMenu: re,
|
|
264
|
+
showInfoItemData: I,
|
|
265
|
+
setShowInfoItemData: x,
|
|
266
|
+
openGroupItemData: $,
|
|
267
|
+
setOpenGroupItemData: m,
|
|
268
|
+
longPressTriggered: y,
|
|
269
|
+
updateItemConfig: $e,
|
|
270
|
+
updateItem: Pe,
|
|
271
|
+
removeItem: Re,
|
|
272
|
+
addItem: Le,
|
|
273
|
+
moveItemId: g,
|
|
274
|
+
setMoveItemId: h,
|
|
275
|
+
moveTargetId: j,
|
|
276
|
+
setMoveTargetId: O
|
|
909
277
|
},
|
|
910
|
-
children:
|
|
278
|
+
children: e
|
|
911
279
|
}
|
|
912
280
|
);
|
|
913
|
-
},
|
|
281
|
+
}, Z = () => be(Ie), zo = {
|
|
914
282
|
menuShow: {
|
|
915
283
|
opacity: 1,
|
|
916
284
|
y: 0,
|
|
917
285
|
transition: { type: "spring", stiffness: 300, damping: 24 }
|
|
918
286
|
},
|
|
919
287
|
menuHide: { opacity: 0, y: 20, transition: { duration: 0.2 } }
|
|
920
|
-
},
|
|
921
|
-
const { icon:
|
|
922
|
-
return /* @__PURE__ */ o
|
|
923
|
-
|
|
288
|
+
}, se = (a) => {
|
|
289
|
+
const { icon: e, title: r, onClick: t } = a, { theme: l } = K(), { light: n, dark: d } = q.getTheme(l);
|
|
290
|
+
return /* @__PURE__ */ o(
|
|
291
|
+
f.div,
|
|
924
292
|
{
|
|
925
|
-
className:
|
|
293
|
+
className: i`
|
|
926
294
|
&:hover {
|
|
927
|
-
background-color: ${
|
|
295
|
+
background-color: ${n.contextMenuActiveColor};
|
|
928
296
|
@media (prefers-color-scheme: dark) {
|
|
929
|
-
background-color: ${
|
|
297
|
+
background-color: ${d.contextMenuActiveColor};
|
|
930
298
|
}
|
|
931
299
|
}
|
|
932
300
|
@media (prefers-color-scheme: dark) {
|
|
@@ -939,16 +307,16 @@ const br = cr({
|
|
|
939
307
|
user-select: none;
|
|
940
308
|
border-radius: 0.5rem;
|
|
941
309
|
`,
|
|
942
|
-
onClick: (
|
|
943
|
-
|
|
310
|
+
onClick: (p) => {
|
|
311
|
+
p.stopPropagation(), t == null || t();
|
|
944
312
|
},
|
|
945
|
-
variants:
|
|
946
|
-
children: /* @__PURE__ */
|
|
947
|
-
|
|
313
|
+
variants: zo,
|
|
314
|
+
children: /* @__PURE__ */ H(
|
|
315
|
+
f.div,
|
|
948
316
|
{
|
|
949
|
-
className:
|
|
317
|
+
className: D(
|
|
950
318
|
"py-1.5 px-3 rounded-lg",
|
|
951
|
-
|
|
319
|
+
i`
|
|
952
320
|
padding-top: 0.375rem;
|
|
953
321
|
padding-bottom: 0.375rem;
|
|
954
322
|
padding-left: 0.75rem;
|
|
@@ -958,78 +326,78 @@ const br = cr({
|
|
|
958
326
|
),
|
|
959
327
|
whileTap: { scale: 0.9 },
|
|
960
328
|
children: [
|
|
961
|
-
/* @__PURE__ */ o
|
|
962
|
-
|
|
329
|
+
/* @__PURE__ */ o(
|
|
330
|
+
f.div,
|
|
963
331
|
{
|
|
964
|
-
className:
|
|
965
|
-
|
|
332
|
+
className: D(
|
|
333
|
+
i`
|
|
966
334
|
margin-bottom: 0.375rem;
|
|
967
335
|
display: flex;
|
|
968
336
|
justify-content: center;
|
|
969
337
|
`
|
|
970
338
|
),
|
|
971
|
-
children:
|
|
339
|
+
children: e
|
|
972
340
|
}
|
|
973
341
|
),
|
|
974
|
-
/* @__PURE__ */ o
|
|
342
|
+
/* @__PURE__ */ o(f.div, { children: r })
|
|
975
343
|
]
|
|
976
344
|
}
|
|
977
345
|
)
|
|
978
346
|
}
|
|
979
347
|
);
|
|
980
|
-
},
|
|
348
|
+
}, Ao = (a) => {
|
|
981
349
|
const {
|
|
982
|
-
showInfoButton:
|
|
983
|
-
showRemoveButton:
|
|
984
|
-
showShareButton:
|
|
985
|
-
showSizeButton:
|
|
986
|
-
onInfoClick:
|
|
987
|
-
onShareClick:
|
|
988
|
-
onRemoveClick:
|
|
989
|
-
} =
|
|
990
|
-
contextMenu:
|
|
991
|
-
setContextMenu:
|
|
992
|
-
hideContextMenu:
|
|
993
|
-
setShowInfoItemData:
|
|
994
|
-
removeItem:
|
|
995
|
-
updateItemConfig:
|
|
996
|
-
} =
|
|
997
|
-
var
|
|
998
|
-
const
|
|
999
|
-
for (let
|
|
1000
|
-
for (let
|
|
1001
|
-
|
|
1002
|
-
return
|
|
350
|
+
showInfoButton: e = !0,
|
|
351
|
+
showRemoveButton: r = !0,
|
|
352
|
+
showShareButton: t = !0,
|
|
353
|
+
showSizeButton: l = !0,
|
|
354
|
+
onInfoClick: n,
|
|
355
|
+
onShareClick: d,
|
|
356
|
+
onRemoveClick: p
|
|
357
|
+
} = a, {
|
|
358
|
+
contextMenu: s,
|
|
359
|
+
setContextMenu: v,
|
|
360
|
+
hideContextMenu: C,
|
|
361
|
+
setShowInfoItemData: R,
|
|
362
|
+
removeItem: T,
|
|
363
|
+
updateItemConfig: A
|
|
364
|
+
} = Z(), { theme: L } = K(), { light: u, dark: c } = q.getTheme(L), { data: I } = s ?? {}, { config: x = {} } = I ?? {}, $ = () => {
|
|
365
|
+
var w;
|
|
366
|
+
const m = ye[(w = s == null ? void 0 : s.data) == null ? void 0 : w.type], y = [];
|
|
367
|
+
for (let g = 1; g <= ((m == null ? void 0 : m.maxRow) ?? 2); g++)
|
|
368
|
+
for (let h = 1; h <= ((m == null ? void 0 : m.maxCol) ?? 2); h++)
|
|
369
|
+
y.push(`${g}x${h}`);
|
|
370
|
+
return y;
|
|
1003
371
|
};
|
|
1004
|
-
return /* @__PURE__ */ o
|
|
1005
|
-
|
|
372
|
+
return /* @__PURE__ */ o(ue, { children: s && /* @__PURE__ */ H(
|
|
373
|
+
f.div,
|
|
1006
374
|
{
|
|
1007
375
|
initial: { opacity: 0 },
|
|
1008
376
|
animate: { opacity: 1 },
|
|
1009
377
|
exit: { opacity: 0 },
|
|
1010
|
-
onMouseDown: (
|
|
1011
|
-
|
|
378
|
+
onMouseDown: (m) => {
|
|
379
|
+
m.stopPropagation(), m.preventDefault();
|
|
1012
380
|
},
|
|
1013
381
|
children: [
|
|
1014
|
-
/* @__PURE__ */ o
|
|
1015
|
-
|
|
382
|
+
/* @__PURE__ */ o(
|
|
383
|
+
f.div,
|
|
1016
384
|
{
|
|
1017
|
-
className:
|
|
1018
|
-
|
|
385
|
+
className: D(
|
|
386
|
+
i`
|
|
1019
387
|
border-radius: 0.5rem;
|
|
1020
388
|
overflow: hidden;
|
|
1021
|
-
background-color: ${
|
|
1022
|
-
box-shadow: 0 0 0.5rem ${
|
|
389
|
+
background-color: ${u.contextMenuBackgroundColor};
|
|
390
|
+
box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
|
|
1023
391
|
@media (prefers-color-scheme: dark) {
|
|
1024
|
-
background-color: ${
|
|
1025
|
-
box-shadow: 0 0 0.5rem ${
|
|
392
|
+
background-color: ${c.contextMenuBackgroundColor};
|
|
393
|
+
box-shadow: 0 0 0.5rem ${c.contextMenuShadowColor};
|
|
1026
394
|
}
|
|
1027
395
|
`
|
|
1028
396
|
),
|
|
1029
|
-
children:
|
|
1030
|
-
|
|
397
|
+
children: l && x.allowResize !== !1 && /* @__PURE__ */ o(
|
|
398
|
+
f.ul,
|
|
1031
399
|
{
|
|
1032
|
-
className:
|
|
400
|
+
className: i`
|
|
1033
401
|
background-color: white;
|
|
1034
402
|
padding: 0.25rem;
|
|
1035
403
|
margin: 0;
|
|
@@ -1038,33 +406,33 @@ const br = cr({
|
|
|
1038
406
|
{
|
|
1039
407
|
label: "修改大小",
|
|
1040
408
|
key: "size",
|
|
1041
|
-
icon: /* @__PURE__ */ o
|
|
1042
|
-
items:
|
|
1043
|
-
label:
|
|
1044
|
-
key:
|
|
409
|
+
icon: /* @__PURE__ */ o(qe, { size: 14 }),
|
|
410
|
+
items: $().map((m) => ({
|
|
411
|
+
label: m,
|
|
412
|
+
key: m,
|
|
1045
413
|
onClick: () => {
|
|
1046
|
-
const [
|
|
1047
|
-
|
|
1048
|
-
row:
|
|
1049
|
-
col:
|
|
414
|
+
const [y, w] = m.split("x").map(Number);
|
|
415
|
+
A(s.data.id, {
|
|
416
|
+
row: y,
|
|
417
|
+
col: w
|
|
1050
418
|
});
|
|
1051
419
|
}
|
|
1052
420
|
}))
|
|
1053
421
|
}
|
|
1054
|
-
].map((
|
|
1055
|
-
|
|
422
|
+
].map((m) => /* @__PURE__ */ H(
|
|
423
|
+
f.li,
|
|
1056
424
|
{
|
|
1057
|
-
className:
|
|
425
|
+
className: i`
|
|
1058
426
|
padding-top: 0.5rem;
|
|
1059
427
|
padding-bottom: 0.5rem;
|
|
1060
428
|
padding-left: 0.75rem;
|
|
1061
429
|
padding-right: 0.75rem;
|
|
1062
430
|
`,
|
|
1063
431
|
children: [
|
|
1064
|
-
/* @__PURE__ */
|
|
1065
|
-
|
|
432
|
+
/* @__PURE__ */ H(
|
|
433
|
+
f.p,
|
|
1066
434
|
{
|
|
1067
|
-
className:
|
|
435
|
+
className: i`
|
|
1068
436
|
display: flex;
|
|
1069
437
|
align-items: center;
|
|
1070
438
|
font-size: 0.875rem;
|
|
@@ -1074,26 +442,26 @@ const br = cr({
|
|
|
1074
442
|
margin: 0;
|
|
1075
443
|
`,
|
|
1076
444
|
children: [
|
|
1077
|
-
|
|
445
|
+
m.icon,
|
|
1078
446
|
" ",
|
|
1079
|
-
|
|
447
|
+
m.label
|
|
1080
448
|
]
|
|
1081
449
|
}
|
|
1082
450
|
),
|
|
1083
|
-
/* @__PURE__ */ o
|
|
1084
|
-
|
|
451
|
+
/* @__PURE__ */ o(
|
|
452
|
+
f.div,
|
|
1085
453
|
{
|
|
1086
|
-
className:
|
|
454
|
+
className: i`
|
|
1087
455
|
display: grid;
|
|
1088
456
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
1089
457
|
gap: 0.25rem;
|
|
1090
458
|
`,
|
|
1091
|
-
children:
|
|
1092
|
-
|
|
459
|
+
children: m.items.map((y) => /* @__PURE__ */ o(
|
|
460
|
+
f.div,
|
|
1093
461
|
{
|
|
1094
|
-
className:
|
|
462
|
+
className: D(
|
|
1095
463
|
"py-1 px-2 hover:bg-gray-100 rounded transition-all cursor-pointer text-center text-sm",
|
|
1096
|
-
|
|
464
|
+
i`
|
|
1097
465
|
padding-top: 0.25rem;
|
|
1098
466
|
padding-bottom: 0.25rem;
|
|
1099
467
|
padding-left: 0.5rem;
|
|
@@ -1104,49 +472,49 @@ const br = cr({
|
|
|
1104
472
|
line-height: 1.25rem;
|
|
1105
473
|
cursor: pointer;
|
|
1106
474
|
text-align: center;
|
|
1107
|
-
color: ${
|
|
475
|
+
color: ${u.contextMenuTextColor};
|
|
1108
476
|
@media (prefers-color-scheme: dark) {
|
|
1109
|
-
color: ${
|
|
477
|
+
color: ${c.contextMenuTextColor};
|
|
1110
478
|
}
|
|
1111
479
|
&:hover {
|
|
1112
|
-
background-color: ${
|
|
480
|
+
background-color: ${u.contextMenuActiveColor};
|
|
1113
481
|
@media (prefers-color-scheme: dark) {
|
|
1114
|
-
background-color: ${
|
|
482
|
+
background-color: ${c.contextMenuActiveColor};
|
|
1115
483
|
}
|
|
1116
484
|
}
|
|
1117
485
|
`,
|
|
1118
|
-
`${
|
|
1119
|
-
background-color: ${
|
|
486
|
+
`${x.row}x${x.col}` === y.key && i`
|
|
487
|
+
background-color: ${u.contextMenuActiveColor};
|
|
1120
488
|
@media (prefers-color-scheme: dark) {
|
|
1121
|
-
background-color: ${
|
|
489
|
+
background-color: ${c.contextMenuActiveColor};
|
|
1122
490
|
}
|
|
1123
491
|
`
|
|
1124
492
|
),
|
|
1125
|
-
onClick:
|
|
1126
|
-
children:
|
|
493
|
+
onClick: y.onClick,
|
|
494
|
+
children: y.label
|
|
1127
495
|
},
|
|
1128
|
-
|
|
496
|
+
y.key
|
|
1129
497
|
))
|
|
1130
498
|
}
|
|
1131
499
|
)
|
|
1132
500
|
]
|
|
1133
501
|
},
|
|
1134
|
-
|
|
502
|
+
m.key
|
|
1135
503
|
))
|
|
1136
504
|
}
|
|
1137
505
|
)
|
|
1138
506
|
}
|
|
1139
507
|
),
|
|
1140
|
-
/* @__PURE__ */
|
|
1141
|
-
|
|
508
|
+
/* @__PURE__ */ H(
|
|
509
|
+
f.div,
|
|
1142
510
|
{
|
|
1143
|
-
className:
|
|
1144
|
-
|
|
1145
|
-
background-color: ${
|
|
1146
|
-
box-shadow: 0 0 0.5rem ${
|
|
511
|
+
className: D(
|
|
512
|
+
i`
|
|
513
|
+
background-color: ${u.contextMenuBackgroundColor};
|
|
514
|
+
box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
|
|
1147
515
|
@media (prefers-color-scheme: dark) {
|
|
1148
|
-
background-color: ${
|
|
1149
|
-
box-shadow: 0 0 0.5rem ${
|
|
516
|
+
background-color: ${c.contextMenuBackgroundColor};
|
|
517
|
+
box-shadow: 0 0 0.5rem ${c.contextMenuShadowColor};
|
|
1150
518
|
}
|
|
1151
519
|
display: flex;
|
|
1152
520
|
justify-content: space-around;
|
|
@@ -1158,48 +526,48 @@ const br = cr({
|
|
|
1158
526
|
`
|
|
1159
527
|
),
|
|
1160
528
|
children: [
|
|
1161
|
-
|
|
1162
|
-
|
|
529
|
+
t && /* @__PURE__ */ o(
|
|
530
|
+
se,
|
|
1163
531
|
{
|
|
1164
|
-
icon: /* @__PURE__ */ o
|
|
532
|
+
icon: /* @__PURE__ */ o(Ye, { size: 20 }),
|
|
1165
533
|
title: "分享",
|
|
1166
534
|
onClick: () => {
|
|
1167
|
-
if (
|
|
1168
|
-
|
|
535
|
+
if (d) {
|
|
536
|
+
d(s.data);
|
|
1169
537
|
return;
|
|
1170
538
|
}
|
|
1171
539
|
}
|
|
1172
540
|
}
|
|
1173
541
|
),
|
|
1174
|
-
|
|
1175
|
-
|
|
542
|
+
e && /* @__PURE__ */ o(
|
|
543
|
+
se,
|
|
1176
544
|
{
|
|
1177
|
-
icon: /* @__PURE__ */ o
|
|
545
|
+
icon: /* @__PURE__ */ o(Ve, { size: 20 }),
|
|
1178
546
|
title: "信息",
|
|
1179
547
|
onClick: () => {
|
|
1180
|
-
if (
|
|
1181
|
-
s
|
|
548
|
+
if (n) {
|
|
549
|
+
n(s.data);
|
|
1182
550
|
return;
|
|
1183
551
|
}
|
|
1184
|
-
|
|
1185
|
-
...
|
|
1186
|
-
pageX:
|
|
1187
|
-
pageY:
|
|
1188
|
-
}),
|
|
552
|
+
R({
|
|
553
|
+
...s.data,
|
|
554
|
+
pageX: s.pageX,
|
|
555
|
+
pageY: s.pageY
|
|
556
|
+
}), C();
|
|
1189
557
|
}
|
|
1190
558
|
}
|
|
1191
559
|
),
|
|
1192
|
-
|
|
1193
|
-
|
|
560
|
+
r && /* @__PURE__ */ o(
|
|
561
|
+
se,
|
|
1194
562
|
{
|
|
1195
|
-
icon: /* @__PURE__ */ o
|
|
563
|
+
icon: /* @__PURE__ */ o(_e, { size: 20 }),
|
|
1196
564
|
title: "移除",
|
|
1197
565
|
onClick: () => {
|
|
1198
|
-
if (
|
|
1199
|
-
|
|
566
|
+
if (p) {
|
|
567
|
+
p(s.data, T);
|
|
1200
568
|
return;
|
|
1201
569
|
}
|
|
1202
|
-
|
|
570
|
+
v(null), T(s.data.id);
|
|
1203
571
|
}
|
|
1204
572
|
}
|
|
1205
573
|
)
|
|
@@ -1209,84 +577,84 @@ const br = cr({
|
|
|
1209
577
|
]
|
|
1210
578
|
}
|
|
1211
579
|
) });
|
|
1212
|
-
},
|
|
1213
|
-
const { data:
|
|
1214
|
-
return /* @__PURE__ */
|
|
1215
|
-
/* @__PURE__ */ o
|
|
1216
|
-
|
|
580
|
+
}, jo = (a) => {
|
|
581
|
+
const { data: e, noLetters: r = !1 } = a, { contextMenuFuns: t } = Z(), { itemIconBuilder: l, theme: n, contextMenu: d } = K(), { light: p, dark: s } = q.getTheme(n), { data: v = {} } = e, { name: C } = v;
|
|
582
|
+
return /* @__PURE__ */ H(ce, { children: [
|
|
583
|
+
/* @__PURE__ */ o(
|
|
584
|
+
f.div,
|
|
1217
585
|
{
|
|
1218
|
-
className:
|
|
586
|
+
className: i`
|
|
1219
587
|
width: 4rem;
|
|
1220
588
|
height: 4rem;
|
|
1221
|
-
background-color: ${
|
|
589
|
+
background-color: ${p.itemIconBackgroundColor};
|
|
1222
590
|
border-radius: 0.75rem;
|
|
1223
|
-
box-shadow: 0 0 0.5rem ${
|
|
591
|
+
box-shadow: 0 0 0.5rem ${p.itemIconShadowColor};
|
|
1224
592
|
cursor: pointer;
|
|
1225
593
|
position: relative;
|
|
1226
594
|
overflow: hidden;
|
|
1227
595
|
@media (prefers-color-scheme: dark) {
|
|
1228
|
-
background-color: ${
|
|
1229
|
-
box-shadow: 0 0 0.5rem ${
|
|
596
|
+
background-color: ${s.itemIconBackgroundColor};
|
|
597
|
+
box-shadow: 0 0 0.5rem ${s.itemIconShadowColor};
|
|
1230
598
|
}
|
|
1231
599
|
`,
|
|
1232
600
|
whileTap: { scale: 0.9 },
|
|
1233
|
-
children: /* @__PURE__ */ o
|
|
601
|
+
children: /* @__PURE__ */ o(
|
|
1234
602
|
"div",
|
|
1235
603
|
{
|
|
1236
|
-
className:
|
|
604
|
+
className: i`
|
|
1237
605
|
position: absolute;
|
|
1238
606
|
left: 0;
|
|
1239
607
|
top: 0;
|
|
1240
608
|
width: 100%;
|
|
1241
609
|
height: 100%;
|
|
1242
|
-
color: ${
|
|
610
|
+
color: ${p.itemNameColor};
|
|
1243
611
|
@media (prefers-color-scheme: dark) {
|
|
1244
|
-
color: ${
|
|
612
|
+
color: ${s.itemNameColor};
|
|
1245
613
|
}
|
|
1246
614
|
`,
|
|
1247
|
-
...
|
|
1248
|
-
children:
|
|
615
|
+
...t(e, d !== !1),
|
|
616
|
+
children: l == null ? void 0 : l(e)
|
|
1249
617
|
}
|
|
1250
618
|
)
|
|
1251
619
|
}
|
|
1252
620
|
),
|
|
1253
|
-
/* @__PURE__ */ o
|
|
1254
|
-
|
|
621
|
+
/* @__PURE__ */ o(
|
|
622
|
+
f.p,
|
|
1255
623
|
{
|
|
1256
|
-
className:
|
|
1257
|
-
|
|
624
|
+
className: D(
|
|
625
|
+
i`
|
|
1258
626
|
text-align: center;
|
|
1259
627
|
margin-top: 0.25rem;
|
|
1260
628
|
margin-bottom: 0;
|
|
1261
|
-
color: ${
|
|
629
|
+
color: ${p.itemNameColor};
|
|
1262
630
|
@media (prefers-color-scheme: dark) {
|
|
1263
|
-
color: ${
|
|
631
|
+
color: ${s.itemNameColor};
|
|
1264
632
|
}
|
|
1265
633
|
`,
|
|
1266
|
-
|
|
634
|
+
r && i`
|
|
1267
635
|
color: transparent;
|
|
1268
636
|
`
|
|
1269
637
|
),
|
|
1270
|
-
children:
|
|
638
|
+
children: C
|
|
1271
639
|
}
|
|
1272
640
|
)
|
|
1273
641
|
] });
|
|
1274
|
-
},
|
|
642
|
+
}, me = (a) => {
|
|
1275
643
|
const {
|
|
1276
|
-
data:
|
|
1277
|
-
className:
|
|
1278
|
-
itemIndex:
|
|
1279
|
-
onClick:
|
|
1280
|
-
disabledDrag:
|
|
1281
|
-
children:
|
|
1282
|
-
parentIds:
|
|
1283
|
-
childrenLength:
|
|
1284
|
-
} =
|
|
1285
|
-
return /* @__PURE__ */ o
|
|
1286
|
-
|
|
644
|
+
data: e,
|
|
645
|
+
className: r,
|
|
646
|
+
itemIndex: t,
|
|
647
|
+
onClick: l,
|
|
648
|
+
disabledDrag: n = !1,
|
|
649
|
+
children: d,
|
|
650
|
+
parentIds: p,
|
|
651
|
+
childrenLength: s
|
|
652
|
+
} = a, { contextMenu: v, setContextMenu: C } = Z(), { contextMenu: R } = K();
|
|
653
|
+
return /* @__PURE__ */ o(
|
|
654
|
+
He,
|
|
1287
655
|
{
|
|
1288
656
|
placement: "bottom",
|
|
1289
|
-
overlayClassName:
|
|
657
|
+
overlayClassName: i`
|
|
1290
658
|
background-color: transparent;
|
|
1291
659
|
.rc-tooltip-inner {
|
|
1292
660
|
background-color: transparent;
|
|
@@ -1294,122 +662,122 @@ const br = cr({
|
|
|
1294
662
|
border: none;
|
|
1295
663
|
}
|
|
1296
664
|
`,
|
|
1297
|
-
overlay: /* @__PURE__ */ o
|
|
1298
|
-
visible: (
|
|
1299
|
-
onVisibleChange: (
|
|
1300
|
-
|
|
665
|
+
overlay: /* @__PURE__ */ o(Ao, { ...R }),
|
|
666
|
+
visible: (v == null ? void 0 : v.data.id) === e.id,
|
|
667
|
+
onVisibleChange: (T) => {
|
|
668
|
+
T || C(null);
|
|
1301
669
|
},
|
|
1302
670
|
destroyTooltipOnHide: !0,
|
|
1303
|
-
children: /* @__PURE__ */ o
|
|
1304
|
-
|
|
671
|
+
children: /* @__PURE__ */ o(
|
|
672
|
+
f.div,
|
|
1305
673
|
{
|
|
1306
|
-
"data-id":
|
|
1307
|
-
"data-index":
|
|
1308
|
-
"data-parent-ids":
|
|
1309
|
-
"data-children-length":
|
|
1310
|
-
onClick: () =>
|
|
1311
|
-
className:
|
|
1312
|
-
children:
|
|
674
|
+
"data-id": e.id,
|
|
675
|
+
"data-index": t,
|
|
676
|
+
"data-parent-ids": p == null ? void 0 : p.join(","),
|
|
677
|
+
"data-children-length": s,
|
|
678
|
+
onClick: () => l == null ? void 0 : l(e),
|
|
679
|
+
className: D(n && "drag-disabled", r),
|
|
680
|
+
children: d ?? /* @__PURE__ */ o(jo, { ...a })
|
|
1313
681
|
}
|
|
1314
682
|
)
|
|
1315
683
|
}
|
|
1316
684
|
);
|
|
1317
|
-
},
|
|
685
|
+
}, Eo = (a) => {
|
|
1318
686
|
const {
|
|
1319
|
-
data:
|
|
1320
|
-
className:
|
|
1321
|
-
parentIds:
|
|
1322
|
-
itemIndex:
|
|
1323
|
-
onClick:
|
|
1324
|
-
noLetters:
|
|
1325
|
-
} =
|
|
1326
|
-
contextMenuFuns:
|
|
1327
|
-
setList:
|
|
1328
|
-
setOpenGroupItemData:
|
|
1329
|
-
longPressTriggered:
|
|
1330
|
-
moveItemId:
|
|
1331
|
-
moveTargetId:
|
|
1332
|
-
setMoveTargetId:
|
|
1333
|
-
listStatus:
|
|
1334
|
-
} =
|
|
687
|
+
data: e,
|
|
688
|
+
className: r,
|
|
689
|
+
parentIds: t,
|
|
690
|
+
itemIndex: l,
|
|
691
|
+
onClick: n,
|
|
692
|
+
noLetters: d = !1
|
|
693
|
+
} = a, {
|
|
694
|
+
contextMenuFuns: p,
|
|
695
|
+
setList: s,
|
|
696
|
+
setOpenGroupItemData: v,
|
|
697
|
+
longPressTriggered: C,
|
|
698
|
+
moveItemId: R,
|
|
699
|
+
moveTargetId: T,
|
|
700
|
+
setMoveTargetId: A,
|
|
701
|
+
listStatus: L
|
|
702
|
+
} = Z(), { itemIconBuilder: u, theme: c, contextMenu: I } = K(), { light: x, dark: $ } = q.getTheme(c), { children: m, data: y, config: w } = e, { row: g = 1, col: h = 1 } = w ?? {}, j = {
|
|
1335
703
|
visible: { opacity: 1, scale: 1 },
|
|
1336
704
|
hidden: { opacity: 0, scale: 0.95 }
|
|
1337
|
-
},
|
|
705
|
+
}, O = ((m == null ? void 0 : m.length) ?? 0) === 0, E = O ? [e] : [...m ?? []].slice(0, 9), ae = le(() => R === e.id.toString(), [e.id, R]), U = le(() => T === e.id, [e.id, T]), Q = i`
|
|
1338
706
|
overflow: hidden;
|
|
1339
707
|
cursor: pointer;
|
|
1340
|
-
background-color: ${
|
|
1341
|
-
box-shadow: 0 0 0.5rem ${
|
|
708
|
+
background-color: ${x.itemIconBackgroundColor};
|
|
709
|
+
box-shadow: 0 0 0.5rem ${x.itemIconShadowColor};
|
|
1342
710
|
@media (prefers-color-scheme: dark) {
|
|
1343
|
-
background-color: ${
|
|
1344
|
-
box-shadow: 0 0 0.5rem ${
|
|
711
|
+
background-color: ${$.itemIconBackgroundColor};
|
|
712
|
+
box-shadow: 0 0 0.5rem ${$.itemIconShadowColor};
|
|
1345
713
|
}
|
|
1346
|
-
`,
|
|
1347
|
-
if (
|
|
1348
|
-
return /* @__PURE__ */ o
|
|
1349
|
-
|
|
714
|
+
`, re = () => {
|
|
715
|
+
if (O)
|
|
716
|
+
return /* @__PURE__ */ o(
|
|
717
|
+
f.div,
|
|
1350
718
|
{
|
|
1351
|
-
className:
|
|
719
|
+
className: D(
|
|
1352
720
|
"sortable-group-item",
|
|
1353
|
-
|
|
721
|
+
i`
|
|
1354
722
|
overflow: hidden;
|
|
1355
723
|
cursor: pointer;
|
|
1356
724
|
width: 100%;
|
|
1357
725
|
height: 100%;
|
|
1358
|
-
background-color: ${
|
|
726
|
+
background-color: ${x.itemIconBackgroundColor};
|
|
1359
727
|
position: absolute;
|
|
1360
728
|
left: 0;
|
|
1361
729
|
top: 0;
|
|
1362
730
|
border-radius: 0.75rem;
|
|
1363
731
|
@media (prefers-color-scheme: dark) {
|
|
1364
|
-
background-color: ${
|
|
732
|
+
background-color: ${$.itemIconBackgroundColor};
|
|
1365
733
|
}
|
|
1366
734
|
`
|
|
1367
735
|
),
|
|
1368
|
-
onClick: (
|
|
1369
|
-
|
|
736
|
+
onClick: (N) => {
|
|
737
|
+
N.stopPropagation(), n == null || n(e);
|
|
1370
738
|
},
|
|
1371
|
-
children:
|
|
739
|
+
children: u == null ? void 0 : u(e)
|
|
1372
740
|
}
|
|
1373
741
|
);
|
|
1374
|
-
if (
|
|
1375
|
-
return /* @__PURE__ */ o
|
|
1376
|
-
|
|
742
|
+
if (g === 1 && h === 1 || g === 2 && h === 2)
|
|
743
|
+
return /* @__PURE__ */ o(
|
|
744
|
+
f.div,
|
|
1377
745
|
{
|
|
1378
|
-
className:
|
|
746
|
+
className: i`
|
|
1379
747
|
display: grid;
|
|
1380
748
|
width: 100%;
|
|
1381
749
|
height: 100%;
|
|
1382
750
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
1383
751
|
grid-template-rows: repeat(3, minmax(0, 1fr));
|
|
1384
|
-
padding: ${
|
|
1385
|
-
gap: ${
|
|
752
|
+
padding: ${h === 1 ? "0.125rem" : "0.25rem"};
|
|
753
|
+
gap: ${h === 1 ? "0.125rem" : "0.5rem"};
|
|
1386
754
|
place-items: center;
|
|
1387
755
|
`,
|
|
1388
|
-
children:
|
|
1389
|
-
|
|
756
|
+
children: E == null ? void 0 : E.slice(0, 9).map((N) => /* @__PURE__ */ o(
|
|
757
|
+
f.div,
|
|
1390
758
|
{
|
|
1391
|
-
className:
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
border-radius: ${
|
|
759
|
+
className: D(
|
|
760
|
+
Q,
|
|
761
|
+
i`
|
|
762
|
+
border-radius: ${h === 1 ? "0.25rem" : "0.5rem"};
|
|
1395
763
|
width: 100%;
|
|
1396
764
|
height: 100%;
|
|
1397
765
|
`
|
|
1398
766
|
),
|
|
1399
|
-
onClick: (
|
|
1400
|
-
|
|
767
|
+
onClick: (V) => {
|
|
768
|
+
V.stopPropagation(), n == null || n(N);
|
|
1401
769
|
},
|
|
1402
|
-
children:
|
|
770
|
+
children: u == null ? void 0 : u(N)
|
|
1403
771
|
},
|
|
1404
|
-
|
|
772
|
+
N.id
|
|
1405
773
|
))
|
|
1406
774
|
}
|
|
1407
775
|
);
|
|
1408
|
-
if (
|
|
1409
|
-
return /* @__PURE__ */ o
|
|
1410
|
-
|
|
776
|
+
if (g === 1 && h === 2)
|
|
777
|
+
return /* @__PURE__ */ o(
|
|
778
|
+
f.div,
|
|
1411
779
|
{
|
|
1412
|
-
className:
|
|
780
|
+
className: i`
|
|
1413
781
|
display: grid;
|
|
1414
782
|
grid-template-columns: repeat(10, minmax(0, 1fr));
|
|
1415
783
|
grid-template-rows: repeat(4, minmax(0, 1fr));
|
|
@@ -1419,18 +787,18 @@ const br = cr({
|
|
|
1419
787
|
height: 52px;
|
|
1420
788
|
place-items: center;
|
|
1421
789
|
`,
|
|
1422
|
-
children:
|
|
1423
|
-
|
|
790
|
+
children: E == null ? void 0 : E.slice(0, 4).map((N, V) => /* @__PURE__ */ o(
|
|
791
|
+
f.div,
|
|
1424
792
|
{
|
|
1425
|
-
className:
|
|
1426
|
-
|
|
1427
|
-
|
|
793
|
+
className: D(
|
|
794
|
+
Q,
|
|
795
|
+
V < 2 ? i`
|
|
1428
796
|
width: 52px;
|
|
1429
797
|
height: 52px;
|
|
1430
798
|
border-radius: 0.5rem;
|
|
1431
799
|
grid-column: span 4 / span 4;
|
|
1432
800
|
grid-row: span 4 / span 4;
|
|
1433
|
-
` :
|
|
801
|
+
` : i`
|
|
1434
802
|
width: 1.5rem;
|
|
1435
803
|
height: 1.5rem;
|
|
1436
804
|
border-radius: 0.375rem;
|
|
@@ -1438,20 +806,20 @@ const br = cr({
|
|
|
1438
806
|
grid-row: span 2 / span 2;
|
|
1439
807
|
`
|
|
1440
808
|
),
|
|
1441
|
-
onClick: (
|
|
1442
|
-
|
|
809
|
+
onClick: (W) => {
|
|
810
|
+
V > 2 || (W.stopPropagation(), n == null || n(N));
|
|
1443
811
|
},
|
|
1444
|
-
children:
|
|
812
|
+
children: u == null ? void 0 : u(N)
|
|
1445
813
|
},
|
|
1446
|
-
|
|
814
|
+
N.id
|
|
1447
815
|
))
|
|
1448
816
|
}
|
|
1449
817
|
);
|
|
1450
|
-
if (
|
|
1451
|
-
return /* @__PURE__ */ o
|
|
1452
|
-
|
|
818
|
+
if (g === 2 && h === 1)
|
|
819
|
+
return /* @__PURE__ */ o(
|
|
820
|
+
f.div,
|
|
1453
821
|
{
|
|
1454
|
-
className:
|
|
822
|
+
className: i`
|
|
1455
823
|
display: grid;
|
|
1456
824
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
1457
825
|
grid-template-rows: repeat(10, minmax(0, 1fr));
|
|
@@ -1461,80 +829,80 @@ const br = cr({
|
|
|
1461
829
|
height: 144px;
|
|
1462
830
|
place-items: center;
|
|
1463
831
|
`,
|
|
1464
|
-
children:
|
|
1465
|
-
|
|
832
|
+
children: E == null ? void 0 : E.slice(0, 4).map((N, V) => /* @__PURE__ */ o(
|
|
833
|
+
f.div,
|
|
1466
834
|
{
|
|
1467
|
-
className:
|
|
1468
|
-
|
|
1469
|
-
|
|
835
|
+
className: D(
|
|
836
|
+
Q,
|
|
837
|
+
V < 2 ? i`
|
|
1470
838
|
width: 52px;
|
|
1471
839
|
height: 52px;
|
|
1472
840
|
border-radius: 0.5rem;
|
|
1473
841
|
grid-column: span 4 / span 4;
|
|
1474
842
|
grid-row: span 4 / span 4;
|
|
1475
|
-
` :
|
|
843
|
+
` : i`
|
|
1476
844
|
width: 1.5rem;
|
|
1477
845
|
height: 1.5rem;
|
|
1478
846
|
grid-column: span 2 / span 2;
|
|
1479
847
|
grid-row: span 2 / span 2;
|
|
1480
848
|
`
|
|
1481
849
|
),
|
|
1482
|
-
onClick: (
|
|
1483
|
-
|
|
850
|
+
onClick: (W) => {
|
|
851
|
+
V > 2 || (W.stopPropagation(), n == null || n(N));
|
|
1484
852
|
},
|
|
1485
|
-
children:
|
|
853
|
+
children: u == null ? void 0 : u(N)
|
|
1486
854
|
},
|
|
1487
|
-
|
|
855
|
+
N.id
|
|
1488
856
|
))
|
|
1489
857
|
}
|
|
1490
858
|
);
|
|
1491
859
|
};
|
|
1492
|
-
return /* @__PURE__ */
|
|
1493
|
-
|
|
860
|
+
return /* @__PURE__ */ H(
|
|
861
|
+
me,
|
|
1494
862
|
{
|
|
1495
|
-
data:
|
|
1496
|
-
itemIndex:
|
|
1497
|
-
parentIds:
|
|
1498
|
-
childrenLength:
|
|
1499
|
-
className:
|
|
1500
|
-
|
|
1501
|
-
grid-row: span ${
|
|
1502
|
-
grid-column: span ${
|
|
863
|
+
data: e,
|
|
864
|
+
itemIndex: l,
|
|
865
|
+
parentIds: t,
|
|
866
|
+
childrenLength: m == null ? void 0 : m.length,
|
|
867
|
+
className: D(
|
|
868
|
+
i`
|
|
869
|
+
grid-row: span ${g};
|
|
870
|
+
grid-column: span ${h};
|
|
1503
871
|
`,
|
|
1504
|
-
|
|
872
|
+
r
|
|
1505
873
|
),
|
|
1506
874
|
children: [
|
|
1507
|
-
/* @__PURE__ */ o
|
|
1508
|
-
|
|
875
|
+
/* @__PURE__ */ o(
|
|
876
|
+
f.div,
|
|
1509
877
|
{
|
|
1510
878
|
whileTap: { scale: 0.9 },
|
|
1511
|
-
className:
|
|
1512
|
-
|
|
1513
|
-
|
|
879
|
+
className: D(
|
|
880
|
+
U ? "!scale-110" : "",
|
|
881
|
+
i`
|
|
1514
882
|
cursor: pointer;
|
|
1515
883
|
position: relative;
|
|
1516
884
|
border-radius: 0.75rem;
|
|
1517
|
-
background-color: ${
|
|
1518
|
-
box-shadow: 0 0 0.5rem ${
|
|
885
|
+
background-color: ${x.groupItemIconBackgroundColor};
|
|
886
|
+
box-shadow: 0 0 0.5rem ${x.groupItemIconShadowColor};
|
|
1519
887
|
@media (prefers-color-scheme: dark) {
|
|
1520
|
-
background-color: ${
|
|
1521
|
-
box-shadow: 0 0 0.5rem ${
|
|
888
|
+
background-color: ${$.groupItemIconBackgroundColor};
|
|
889
|
+
box-shadow: 0 0 0.5rem ${$.groupItemIconShadowColor};
|
|
1522
890
|
}
|
|
1523
891
|
/* overflow: hidden; */
|
|
1524
892
|
transition: all 0.3s;
|
|
1525
893
|
margin: 0 auto;
|
|
1526
|
-
width: ${
|
|
1527
|
-
height: ${
|
|
894
|
+
width: ${h * 64 + 32 * (h - 1)}px;
|
|
895
|
+
height: ${g * 64 + 32 * (g - 1)}px;
|
|
1528
896
|
`
|
|
1529
897
|
),
|
|
1530
|
-
onClick: (
|
|
1531
|
-
!
|
|
898
|
+
onClick: (N) => {
|
|
899
|
+
!O && !C && (e.parentIds = t, e.pageX = N.pageX, e.pageY = N.pageY, v(e));
|
|
1532
900
|
},
|
|
1533
|
-
...
|
|
1534
|
-
children: /* @__PURE__ */
|
|
1535
|
-
|
|
901
|
+
...p(e, I !== !1),
|
|
902
|
+
children: /* @__PURE__ */ H(
|
|
903
|
+
f.div,
|
|
1536
904
|
{
|
|
1537
|
-
className:
|
|
905
|
+
className: i`
|
|
1538
906
|
position: relative;
|
|
1539
907
|
width: 100%;
|
|
1540
908
|
height: 100%;
|
|
@@ -1544,20 +912,20 @@ const br = cr({
|
|
|
1544
912
|
padding: 0.375rem;
|
|
1545
913
|
`,
|
|
1546
914
|
children: [
|
|
1547
|
-
|
|
1548
|
-
/* @__PURE__ */ o
|
|
1549
|
-
|
|
915
|
+
re(),
|
|
916
|
+
/* @__PURE__ */ o(
|
|
917
|
+
de,
|
|
1550
918
|
{
|
|
1551
|
-
className:
|
|
919
|
+
className: D(
|
|
1552
920
|
"sortable-group-item",
|
|
1553
|
-
|
|
921
|
+
i`
|
|
1554
922
|
position: absolute;
|
|
1555
923
|
cursor: pointer;
|
|
1556
924
|
left: 0.375rem;
|
|
1557
925
|
top: 0.375rem;
|
|
1558
926
|
width: calc(100% - 0.75rem);
|
|
1559
927
|
height: calc(100% - 0.75rem);
|
|
1560
|
-
pointer-events: ${
|
|
928
|
+
pointer-events: ${L === null ? "none" : "auto"};
|
|
1561
929
|
> * {
|
|
1562
930
|
opacity: 0;
|
|
1563
931
|
}
|
|
@@ -1566,12 +934,12 @@ const br = cr({
|
|
|
1566
934
|
group: { name: "nested", pull: !1, put: !0 },
|
|
1567
935
|
animation: 150,
|
|
1568
936
|
fallbackOnBody: !0,
|
|
1569
|
-
list:
|
|
1570
|
-
setList: (
|
|
937
|
+
list: m ?? [],
|
|
938
|
+
setList: (N) => s(N, t),
|
|
1571
939
|
filter: () => !0,
|
|
1572
|
-
"data-id":
|
|
940
|
+
"data-id": e.id,
|
|
1573
941
|
onChange: () => {
|
|
1574
|
-
|
|
942
|
+
A(e.id);
|
|
1575
943
|
}
|
|
1576
944
|
}
|
|
1577
945
|
)
|
|
@@ -1580,32 +948,32 @@ const br = cr({
|
|
|
1580
948
|
)
|
|
1581
949
|
}
|
|
1582
950
|
),
|
|
1583
|
-
/* @__PURE__ */ o
|
|
1584
|
-
|
|
951
|
+
/* @__PURE__ */ o(
|
|
952
|
+
f.p,
|
|
1585
953
|
{
|
|
1586
|
-
className:
|
|
1587
|
-
|
|
954
|
+
className: D(
|
|
955
|
+
i`
|
|
1588
956
|
text-align: center;
|
|
1589
957
|
margin-top: 0.25rem;
|
|
1590
958
|
margin-bottom: 0;
|
|
1591
|
-
color: ${
|
|
959
|
+
color: ${x.itemNameColor};
|
|
1592
960
|
@media (prefers-color-scheme: dark) {
|
|
1593
|
-
color: ${
|
|
961
|
+
color: ${$.itemNameColor};
|
|
1594
962
|
}
|
|
1595
963
|
`,
|
|
1596
|
-
|
|
964
|
+
d && i`
|
|
1597
965
|
color: transparent;
|
|
1598
966
|
`
|
|
1599
967
|
),
|
|
1600
|
-
variants:
|
|
1601
|
-
animate:
|
|
1602
|
-
children: (
|
|
968
|
+
variants: j,
|
|
969
|
+
animate: ae ? "hidden" : "visible",
|
|
970
|
+
children: (y == null ? void 0 : y.name) ?? "文件夹"
|
|
1603
971
|
}
|
|
1604
972
|
)
|
|
1605
973
|
]
|
|
1606
974
|
}
|
|
1607
975
|
);
|
|
1608
|
-
},
|
|
976
|
+
}, Me = i`
|
|
1609
977
|
padding: 8px;
|
|
1610
978
|
transition: all 0.2s;
|
|
1611
979
|
> div {
|
|
@@ -1617,35 +985,35 @@ const br = cr({
|
|
|
1617
985
|
transition: all 0.2s;
|
|
1618
986
|
}
|
|
1619
987
|
}
|
|
1620
|
-
`,
|
|
1621
|
-
const { data:
|
|
1622
|
-
list:
|
|
1623
|
-
setList:
|
|
1624
|
-
setListStatus:
|
|
1625
|
-
setMoveItemId:
|
|
1626
|
-
setMoveTargetId:
|
|
1627
|
-
updateItem:
|
|
1628
|
-
} =
|
|
1629
|
-
return
|
|
1630
|
-
var
|
|
1631
|
-
|
|
1632
|
-
}, [
|
|
1633
|
-
|
|
988
|
+
`, Xo = (a) => {
|
|
989
|
+
const { data: e, onClose: r, onItemClick: t } = a, {
|
|
990
|
+
list: l,
|
|
991
|
+
setList: n,
|
|
992
|
+
setListStatus: d,
|
|
993
|
+
setMoveItemId: p,
|
|
994
|
+
setMoveTargetId: s,
|
|
995
|
+
updateItem: v
|
|
996
|
+
} = Z(), { theme: C } = K(), { light: R, dark: T } = q.getTheme(C), [A, L] = F("文件夹"), u = [...(e == null ? void 0 : e.children) ?? []];
|
|
997
|
+
return oe(() => {
|
|
998
|
+
var c;
|
|
999
|
+
e && L((c = e.data) == null ? void 0 : c.name);
|
|
1000
|
+
}, [e]), /* @__PURE__ */ o(
|
|
1001
|
+
ke,
|
|
1634
1002
|
{
|
|
1635
|
-
visible: !!
|
|
1003
|
+
visible: !!e,
|
|
1636
1004
|
onClose: () => {
|
|
1637
|
-
|
|
1005
|
+
r();
|
|
1638
1006
|
},
|
|
1639
1007
|
animation: "zoom",
|
|
1640
1008
|
maskAnimation: "fade",
|
|
1641
|
-
mousePosition:
|
|
1642
|
-
x:
|
|
1643
|
-
y:
|
|
1009
|
+
mousePosition: e != null && e.pageX && (e != null && e.pageY) ? {
|
|
1010
|
+
x: e == null ? void 0 : e.pageX,
|
|
1011
|
+
y: e == null ? void 0 : e.pageY
|
|
1644
1012
|
} : null,
|
|
1645
|
-
title: /* @__PURE__ */ o
|
|
1013
|
+
title: /* @__PURE__ */ o(
|
|
1646
1014
|
"input",
|
|
1647
1015
|
{
|
|
1648
|
-
className:
|
|
1016
|
+
className: i`
|
|
1649
1017
|
background-color: transparent;
|
|
1650
1018
|
border-style: none;
|
|
1651
1019
|
text-align: center;
|
|
@@ -1659,23 +1027,23 @@ const br = cr({
|
|
|
1659
1027
|
outline: none;
|
|
1660
1028
|
}
|
|
1661
1029
|
`,
|
|
1662
|
-
value:
|
|
1663
|
-
onChange: (
|
|
1664
|
-
|
|
1030
|
+
value: A,
|
|
1031
|
+
onChange: (c) => {
|
|
1032
|
+
L(c.target.value);
|
|
1665
1033
|
},
|
|
1666
1034
|
onBlur: () => {
|
|
1667
|
-
|
|
1668
|
-
...
|
|
1669
|
-
name:
|
|
1035
|
+
e && v(e.id, {
|
|
1036
|
+
...e.data,
|
|
1037
|
+
name: A
|
|
1670
1038
|
});
|
|
1671
1039
|
}
|
|
1672
1040
|
}
|
|
1673
1041
|
),
|
|
1674
1042
|
footer: null,
|
|
1675
1043
|
closable: !1,
|
|
1676
|
-
className:
|
|
1044
|
+
className: D(
|
|
1677
1045
|
"group-item-modal",
|
|
1678
|
-
|
|
1046
|
+
i`
|
|
1679
1047
|
.rc-dialog-content {
|
|
1680
1048
|
background-color: transparent;
|
|
1681
1049
|
box-shadow: none;
|
|
@@ -1690,9 +1058,9 @@ const br = cr({
|
|
|
1690
1058
|
}
|
|
1691
1059
|
}
|
|
1692
1060
|
.rc-dialog-body {
|
|
1693
|
-
background-color: ${
|
|
1061
|
+
background-color: ${R.groupItemModalBackgroundColor};
|
|
1694
1062
|
@media (prefers-color-scheme: dark) {
|
|
1695
|
-
background-color: ${
|
|
1063
|
+
background-color: ${T.groupItemModalBackgroundColor};
|
|
1696
1064
|
}
|
|
1697
1065
|
border-radius: 0.5rem;
|
|
1698
1066
|
overflow: hidden;
|
|
@@ -1702,24 +1070,24 @@ const br = cr({
|
|
|
1702
1070
|
),
|
|
1703
1071
|
width: 600,
|
|
1704
1072
|
destroyOnClose: !0,
|
|
1705
|
-
children: /* @__PURE__ */ o
|
|
1073
|
+
children: /* @__PURE__ */ o(
|
|
1706
1074
|
"div",
|
|
1707
1075
|
{
|
|
1708
|
-
className:
|
|
1076
|
+
className: i`
|
|
1709
1077
|
overflow-y: auto;
|
|
1710
1078
|
max-height: 60vh;
|
|
1711
1079
|
padding: 1.25rem 0;
|
|
1712
1080
|
`,
|
|
1713
|
-
onDragLeave: (
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1716
|
-
|
|
1081
|
+
onDragLeave: (c) => {
|
|
1082
|
+
const I = c.relatedTarget;
|
|
1083
|
+
I && (c.currentTarget.contains(I) || setTimeout(() => {
|
|
1084
|
+
r();
|
|
1717
1085
|
}, 500));
|
|
1718
1086
|
},
|
|
1719
|
-
children: /* @__PURE__ */ o
|
|
1720
|
-
|
|
1087
|
+
children: /* @__PURE__ */ o(
|
|
1088
|
+
de,
|
|
1721
1089
|
{
|
|
1722
|
-
className:
|
|
1090
|
+
className: i`
|
|
1723
1091
|
display: grid;
|
|
1724
1092
|
gap: 1rem;
|
|
1725
1093
|
place-items: center;
|
|
@@ -1730,29 +1098,29 @@ const br = cr({
|
|
|
1730
1098
|
group: { name: "nested", pull: !0, put: !1 },
|
|
1731
1099
|
animation: 150,
|
|
1732
1100
|
fallbackOnBody: !0,
|
|
1733
|
-
list: (
|
|
1734
|
-
setList: (
|
|
1735
|
-
var
|
|
1736
|
-
const
|
|
1737
|
-
|
|
1101
|
+
list: (e == null ? void 0 : e.children) ?? [],
|
|
1102
|
+
setList: (c) => {
|
|
1103
|
+
var $, m;
|
|
1104
|
+
const I = c.map((y) => y.id), x = (m = ($ = l.find((y) => y.id === (e == null ? void 0 : e.id))) == null ? void 0 : $.children) == null ? void 0 : m.map((y) => y.id);
|
|
1105
|
+
I.length === (x == null ? void 0 : x.length) && I.every((y, w) => y === x[w]) || I.length < ((x == null ? void 0 : x.length) ?? 0) || n(c, [...(e == null ? void 0 : e.parentIds) ?? [], e == null ? void 0 : e.id]);
|
|
1738
1106
|
},
|
|
1739
|
-
onMove: () => (
|
|
1740
|
-
onStart: (
|
|
1741
|
-
const
|
|
1742
|
-
|
|
1107
|
+
onMove: () => (s(null), d("onMove"), !0),
|
|
1108
|
+
onStart: (c) => {
|
|
1109
|
+
const I = c.item.dataset;
|
|
1110
|
+
I != null && I.id && p(I.id), d("onMove");
|
|
1743
1111
|
},
|
|
1744
1112
|
onEnd: () => {
|
|
1745
|
-
|
|
1113
|
+
p(null), s(null), d(null);
|
|
1746
1114
|
},
|
|
1747
|
-
ghostClass:
|
|
1748
|
-
children:
|
|
1749
|
-
|
|
1115
|
+
ghostClass: Me,
|
|
1116
|
+
children: u.map((c, I) => /* @__PURE__ */ o(
|
|
1117
|
+
me,
|
|
1750
1118
|
{
|
|
1751
|
-
data:
|
|
1752
|
-
itemIndex:
|
|
1753
|
-
onClick:
|
|
1119
|
+
data: c,
|
|
1120
|
+
itemIndex: I,
|
|
1121
|
+
onClick: t
|
|
1754
1122
|
},
|
|
1755
|
-
|
|
1123
|
+
c.id
|
|
1756
1124
|
))
|
|
1757
1125
|
}
|
|
1758
1126
|
)
|
|
@@ -1760,50 +1128,50 @@ const br = cr({
|
|
|
1760
1128
|
)
|
|
1761
1129
|
}
|
|
1762
1130
|
);
|
|
1763
|
-
},
|
|
1764
|
-
var
|
|
1765
|
-
const { data:
|
|
1766
|
-
return /* @__PURE__ */ o
|
|
1767
|
-
|
|
1131
|
+
}, Fo = (a) => {
|
|
1132
|
+
var t;
|
|
1133
|
+
const { data: e, onClose: r } = a;
|
|
1134
|
+
return /* @__PURE__ */ o(
|
|
1135
|
+
ke,
|
|
1768
1136
|
{
|
|
1769
|
-
visible: !!
|
|
1137
|
+
visible: !!e,
|
|
1770
1138
|
onClose: () => {
|
|
1771
|
-
|
|
1139
|
+
r();
|
|
1772
1140
|
},
|
|
1773
1141
|
animation: "zoom",
|
|
1774
1142
|
maskAnimation: "fade",
|
|
1775
|
-
mousePosition:
|
|
1776
|
-
x:
|
|
1777
|
-
y:
|
|
1143
|
+
mousePosition: e != null && e.pageX && (e != null && e.pageY) ? {
|
|
1144
|
+
x: e == null ? void 0 : e.pageX,
|
|
1145
|
+
y: e == null ? void 0 : e.pageY
|
|
1778
1146
|
} : null,
|
|
1779
1147
|
footer: null,
|
|
1780
|
-
title: ((
|
|
1781
|
-
children:
|
|
1782
|
-
/* @__PURE__ */ o
|
|
1783
|
-
/* @__PURE__ */ o
|
|
1148
|
+
title: ((t = e == null ? void 0 : e.data) == null ? void 0 : t.name) ?? "信息",
|
|
1149
|
+
children: e && /* @__PURE__ */ H("div", { children: [
|
|
1150
|
+
/* @__PURE__ */ o("div", { className: "mb-2", children: "开发者信息" }),
|
|
1151
|
+
/* @__PURE__ */ o("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ o(Ue, { src: e, theme: "monokai" }) })
|
|
1784
1152
|
] })
|
|
1785
1153
|
}
|
|
1786
1154
|
);
|
|
1787
|
-
},
|
|
1155
|
+
}, Go = (a) => {
|
|
1788
1156
|
const {
|
|
1789
|
-
pagination:
|
|
1790
|
-
className:
|
|
1791
|
-
sliderProps:
|
|
1792
|
-
sliderRef:
|
|
1793
|
-
onItemClick:
|
|
1794
|
-
} =
|
|
1795
|
-
list:
|
|
1796
|
-
setList:
|
|
1797
|
-
setListStatus:
|
|
1798
|
-
showInfoItemData:
|
|
1799
|
-
setShowInfoItemData:
|
|
1800
|
-
openGroupItemData:
|
|
1801
|
-
setOpenGroupItemData:
|
|
1802
|
-
setMoveItemId:
|
|
1803
|
-
setMoveTargetId:
|
|
1804
|
-
addItem:
|
|
1805
|
-
} =
|
|
1806
|
-
top:
|
|
1157
|
+
pagination: e = { position: "bottom" },
|
|
1158
|
+
className: r,
|
|
1159
|
+
sliderProps: t,
|
|
1160
|
+
sliderRef: l,
|
|
1161
|
+
onItemClick: n
|
|
1162
|
+
} = a, d = te(null), p = te(null), {
|
|
1163
|
+
list: s,
|
|
1164
|
+
setList: v,
|
|
1165
|
+
setListStatus: C,
|
|
1166
|
+
showInfoItemData: R,
|
|
1167
|
+
setShowInfoItemData: T,
|
|
1168
|
+
openGroupItemData: A,
|
|
1169
|
+
setOpenGroupItemData: L,
|
|
1170
|
+
setMoveItemId: u,
|
|
1171
|
+
setMoveTargetId: c,
|
|
1172
|
+
addItem: I
|
|
1173
|
+
} = Z(), { pagingDotBuilder: x, pagingDotsBuilder: $, itemBuilder: m } = K(), y = le(() => e === !1 ? {} : {
|
|
1174
|
+
top: i`
|
|
1807
1175
|
display: flex;
|
|
1808
1176
|
flex-direction: column;
|
|
1809
1177
|
.slick-list {
|
|
@@ -1813,12 +1181,12 @@ const br = cr({
|
|
|
1813
1181
|
position: static;
|
|
1814
1182
|
}
|
|
1815
1183
|
`,
|
|
1816
|
-
bottom:
|
|
1184
|
+
bottom: i`
|
|
1817
1185
|
.slick-dots {
|
|
1818
1186
|
position: static;
|
|
1819
1187
|
}
|
|
1820
1188
|
`,
|
|
1821
|
-
left:
|
|
1189
|
+
left: i`
|
|
1822
1190
|
.slick-dots {
|
|
1823
1191
|
position: absolute;
|
|
1824
1192
|
width: auto;
|
|
@@ -1834,7 +1202,7 @@ const br = cr({
|
|
|
1834
1202
|
}
|
|
1835
1203
|
}
|
|
1836
1204
|
`,
|
|
1837
|
-
right:
|
|
1205
|
+
right: i`
|
|
1838
1206
|
.slick-dots {
|
|
1839
1207
|
position: absolute;
|
|
1840
1208
|
width: auto;
|
|
@@ -1850,22 +1218,22 @@ const br = cr({
|
|
|
1850
1218
|
}
|
|
1851
1219
|
}
|
|
1852
1220
|
`
|
|
1853
|
-
}[
|
|
1854
|
-
return /* @__PURE__ */
|
|
1855
|
-
/* @__PURE__ */ o
|
|
1856
|
-
|
|
1221
|
+
}[e.position ?? "bottom"], [e]);
|
|
1222
|
+
return /* @__PURE__ */ H(ce, { children: [
|
|
1223
|
+
/* @__PURE__ */ o(
|
|
1224
|
+
Ee,
|
|
1857
1225
|
{
|
|
1858
1226
|
useCSS: !0,
|
|
1859
1227
|
useTransform: !0,
|
|
1860
1228
|
arrows: !1,
|
|
1861
|
-
ref:
|
|
1229
|
+
ref: l ?? d,
|
|
1862
1230
|
infinite: !1,
|
|
1863
1231
|
dots: !0,
|
|
1864
1232
|
touchMove: !1,
|
|
1865
1233
|
lazyLoad: "anticipated",
|
|
1866
|
-
className:
|
|
1867
|
-
|
|
1868
|
-
|
|
1234
|
+
className: D(
|
|
1235
|
+
y,
|
|
1236
|
+
i`
|
|
1869
1237
|
.slick-track {
|
|
1870
1238
|
display: flex;
|
|
1871
1239
|
align-items: stretch;
|
|
@@ -1881,28 +1249,28 @@ const br = cr({
|
|
|
1881
1249
|
}
|
|
1882
1250
|
}
|
|
1883
1251
|
`,
|
|
1884
|
-
|
|
1252
|
+
r
|
|
1885
1253
|
),
|
|
1886
|
-
customPaging: (
|
|
1887
|
-
var
|
|
1888
|
-
return
|
|
1254
|
+
customPaging: (w) => {
|
|
1255
|
+
var g, h;
|
|
1256
|
+
return x ? x(s[w], w) : /* @__PURE__ */ o(
|
|
1889
1257
|
"div",
|
|
1890
1258
|
{
|
|
1891
1259
|
onDragEnter: () => {
|
|
1892
|
-
var
|
|
1893
|
-
(
|
|
1260
|
+
var j;
|
|
1261
|
+
(j = (l ?? d).current) == null || j.slickGoTo(w);
|
|
1894
1262
|
},
|
|
1895
|
-
children: (
|
|
1263
|
+
children: (h = (g = s[w]) == null ? void 0 : g.data) == null ? void 0 : h.name
|
|
1896
1264
|
}
|
|
1897
1265
|
);
|
|
1898
1266
|
},
|
|
1899
|
-
appendDots: (
|
|
1267
|
+
appendDots: (w) => $ ? $(w) : e === !1 ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
|
|
1900
1268
|
"ul",
|
|
1901
1269
|
{
|
|
1902
|
-
ref:
|
|
1903
|
-
className:
|
|
1270
|
+
ref: p,
|
|
1271
|
+
className: D(
|
|
1904
1272
|
"slick-dots-default",
|
|
1905
|
-
|
|
1273
|
+
i`
|
|
1906
1274
|
padding: 0.5rem;
|
|
1907
1275
|
display: inline-flex;
|
|
1908
1276
|
justify-content: center;
|
|
@@ -1923,31 +1291,31 @@ const br = cr({
|
|
|
1923
1291
|
}
|
|
1924
1292
|
`
|
|
1925
1293
|
),
|
|
1926
|
-
children:
|
|
1294
|
+
children: w
|
|
1927
1295
|
}
|
|
1928
1296
|
) }),
|
|
1929
|
-
...
|
|
1930
|
-
children:
|
|
1297
|
+
...t,
|
|
1298
|
+
children: s.map((w) => /* @__PURE__ */ o(
|
|
1931
1299
|
"div",
|
|
1932
1300
|
{
|
|
1933
|
-
onDrop: (
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
if (
|
|
1301
|
+
onDrop: (g) => {
|
|
1302
|
+
g.preventDefault();
|
|
1303
|
+
const h = g.dataTransfer.getData("text/plain");
|
|
1304
|
+
if (h !== "")
|
|
1937
1305
|
try {
|
|
1938
|
-
|
|
1939
|
-
} catch (
|
|
1940
|
-
console.log("drag error",
|
|
1306
|
+
I(JSON.parse(h), [w.id]);
|
|
1307
|
+
} catch (j) {
|
|
1308
|
+
console.log("drag error", j);
|
|
1941
1309
|
}
|
|
1942
1310
|
},
|
|
1943
|
-
onDragOver: (
|
|
1944
|
-
|
|
1311
|
+
onDragOver: (g) => {
|
|
1312
|
+
g.preventDefault();
|
|
1945
1313
|
},
|
|
1946
|
-
children: /* @__PURE__ */ o
|
|
1947
|
-
|
|
1314
|
+
children: /* @__PURE__ */ o(
|
|
1315
|
+
de,
|
|
1948
1316
|
{
|
|
1949
|
-
className:
|
|
1950
|
-
|
|
1317
|
+
className: D(
|
|
1318
|
+
i`
|
|
1951
1319
|
display: grid;
|
|
1952
1320
|
transition: all 0.3s;
|
|
1953
1321
|
grid-template-columns: repeat(auto-fill, 96px);
|
|
@@ -1962,113 +1330,113 @@ const br = cr({
|
|
|
1962
1330
|
fallbackOnBody: !0,
|
|
1963
1331
|
swapThreshold: 0.65,
|
|
1964
1332
|
group: "nested",
|
|
1965
|
-
list:
|
|
1966
|
-
setList: (
|
|
1333
|
+
list: w.children ?? [],
|
|
1334
|
+
setList: (g) => v(g, [w.id]),
|
|
1967
1335
|
filter: ".drag-disabled",
|
|
1968
|
-
onMove: (
|
|
1969
|
-
|
|
1970
|
-
const { dragged:
|
|
1971
|
-
return
|
|
1336
|
+
onMove: (g) => {
|
|
1337
|
+
C("onMove");
|
|
1338
|
+
const { dragged: h, related: j } = g, O = h.dataset, E = j.dataset;
|
|
1339
|
+
return c(null), !((Object.keys(E).length === 0 || E.parentIds) && Number(O.childrenLength) > 0 && j.classList.contains("sortable-group-item"));
|
|
1972
1340
|
},
|
|
1973
|
-
onStart: (
|
|
1974
|
-
const
|
|
1975
|
-
|
|
1341
|
+
onStart: (g) => {
|
|
1342
|
+
const h = g.item.dataset;
|
|
1343
|
+
h != null && h.id && u(h.id), C("onMove");
|
|
1976
1344
|
},
|
|
1977
1345
|
onEnd: () => {
|
|
1978
|
-
|
|
1346
|
+
u(null), c(null), C(null);
|
|
1979
1347
|
},
|
|
1980
|
-
ghostClass:
|
|
1981
|
-
children: (
|
|
1982
|
-
let
|
|
1983
|
-
if (
|
|
1984
|
-
return
|
|
1985
|
-
switch (
|
|
1348
|
+
ghostClass: Me,
|
|
1349
|
+
children: (w.children ?? []).map((g, h) => {
|
|
1350
|
+
let j;
|
|
1351
|
+
if (m)
|
|
1352
|
+
return m(g);
|
|
1353
|
+
switch (g.type) {
|
|
1986
1354
|
case "group":
|
|
1987
1355
|
case "app":
|
|
1988
|
-
|
|
1989
|
-
|
|
1356
|
+
j = /* @__PURE__ */ o(
|
|
1357
|
+
Eo,
|
|
1990
1358
|
{
|
|
1991
|
-
data:
|
|
1992
|
-
itemIndex:
|
|
1993
|
-
parentIds: [
|
|
1994
|
-
onClick:
|
|
1359
|
+
data: g,
|
|
1360
|
+
itemIndex: h,
|
|
1361
|
+
parentIds: [w.id, g.id],
|
|
1362
|
+
onClick: n
|
|
1995
1363
|
},
|
|
1996
|
-
|
|
1364
|
+
g.id
|
|
1997
1365
|
);
|
|
1998
1366
|
break;
|
|
1999
1367
|
default:
|
|
2000
|
-
|
|
2001
|
-
|
|
1368
|
+
j = /* @__PURE__ */ o(
|
|
1369
|
+
me,
|
|
2002
1370
|
{
|
|
2003
|
-
data:
|
|
2004
|
-
itemIndex:
|
|
2005
|
-
onClick:
|
|
1371
|
+
data: g,
|
|
1372
|
+
itemIndex: h,
|
|
1373
|
+
onClick: n
|
|
2006
1374
|
},
|
|
2007
|
-
|
|
1375
|
+
g.id
|
|
2008
1376
|
);
|
|
2009
1377
|
break;
|
|
2010
1378
|
}
|
|
2011
|
-
return
|
|
1379
|
+
return j;
|
|
2012
1380
|
})
|
|
2013
1381
|
}
|
|
2014
1382
|
)
|
|
2015
1383
|
},
|
|
2016
|
-
|
|
1384
|
+
w.id
|
|
2017
1385
|
))
|
|
2018
1386
|
}
|
|
2019
1387
|
),
|
|
2020
|
-
/* @__PURE__ */ o
|
|
2021
|
-
|
|
1388
|
+
/* @__PURE__ */ o(
|
|
1389
|
+
Fo,
|
|
2022
1390
|
{
|
|
2023
|
-
data:
|
|
1391
|
+
data: R,
|
|
2024
1392
|
onClose: () => {
|
|
2025
|
-
|
|
1393
|
+
T(null);
|
|
2026
1394
|
}
|
|
2027
1395
|
}
|
|
2028
1396
|
),
|
|
2029
|
-
/* @__PURE__ */ o
|
|
2030
|
-
|
|
1397
|
+
/* @__PURE__ */ o(
|
|
1398
|
+
Xo,
|
|
2031
1399
|
{
|
|
2032
|
-
data:
|
|
1400
|
+
data: A,
|
|
2033
1401
|
onClose: () => {
|
|
2034
|
-
|
|
1402
|
+
L(null);
|
|
2035
1403
|
},
|
|
2036
|
-
onItemClick:
|
|
1404
|
+
onItemClick: n
|
|
2037
1405
|
}
|
|
2038
1406
|
)
|
|
2039
1407
|
] });
|
|
2040
|
-
},
|
|
1408
|
+
}, vt = (a) => {
|
|
2041
1409
|
const {
|
|
2042
|
-
list:
|
|
2043
|
-
onChange:
|
|
2044
|
-
storageKey:
|
|
2045
|
-
enableCaching:
|
|
2046
|
-
theme:
|
|
2047
|
-
noLetters:
|
|
2048
|
-
contextMenu:
|
|
2049
|
-
contextMenuBuilder:
|
|
2050
|
-
itemBuilder:
|
|
2051
|
-
itemIconBuilder:
|
|
2052
|
-
pagingDotBuilder:
|
|
2053
|
-
pagingDotsBuilder:
|
|
2054
|
-
...
|
|
2055
|
-
} =
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
},
|
|
1410
|
+
list: e,
|
|
1411
|
+
onChange: r,
|
|
1412
|
+
storageKey: t,
|
|
1413
|
+
enableCaching: l,
|
|
1414
|
+
theme: n,
|
|
1415
|
+
noLetters: d,
|
|
1416
|
+
contextMenu: p,
|
|
1417
|
+
contextMenuBuilder: s,
|
|
1418
|
+
itemBuilder: v,
|
|
1419
|
+
itemIconBuilder: C,
|
|
1420
|
+
pagingDotBuilder: R,
|
|
1421
|
+
pagingDotsBuilder: T,
|
|
1422
|
+
...A
|
|
1423
|
+
} = a;
|
|
1424
|
+
return /* @__PURE__ */ o(Lo, { ...{
|
|
1425
|
+
list: e,
|
|
1426
|
+
onChange: r,
|
|
1427
|
+
storageKey: t,
|
|
1428
|
+
enableCaching: l
|
|
1429
|
+
}, children: /* @__PURE__ */ o(Po, { ...{
|
|
1430
|
+
theme: n,
|
|
1431
|
+
noLetters: d,
|
|
1432
|
+
contextMenu: p,
|
|
1433
|
+
pagingDotsBuilder: T,
|
|
1434
|
+
pagingDotBuilder: R,
|
|
1435
|
+
itemBuilder: v,
|
|
1436
|
+
itemIconBuilder: C,
|
|
1437
|
+
contextMenuBuilder: s
|
|
1438
|
+
}, children: /* @__PURE__ */ o(Go, { ...A }) }) });
|
|
1439
|
+
}, Ho = {
|
|
2072
1440
|
frontmatterEditor: {
|
|
2073
1441
|
title: "编辑前置元数据",
|
|
2074
1442
|
key: "键",
|
|
@@ -2185,13 +1553,13 @@ const br = cr({
|
|
|
2185
1553
|
image: {
|
|
2186
1554
|
delete: "删除图片"
|
|
2187
1555
|
}
|
|
2188
|
-
},
|
|
2189
|
-
const
|
|
2190
|
-
(
|
|
2191
|
-
|
|
1556
|
+
}, qo = (a, e, r) => {
|
|
1557
|
+
const l = a.split(".").reduce(
|
|
1558
|
+
(n, d) => typeof n == "string" ? n : n[d],
|
|
1559
|
+
Ho
|
|
2192
1560
|
);
|
|
2193
|
-
return typeof
|
|
2194
|
-
},
|
|
1561
|
+
return typeof l != "string" ? e : r ? l.replace(/{{(.*?)}}/g, (n, d) => r[d]) : l;
|
|
1562
|
+
}, Yo = i`
|
|
2195
1563
|
[class*="_toolbarRoot"] {
|
|
2196
1564
|
flex-wrap: wrap;
|
|
2197
1565
|
}
|
|
@@ -2260,9 +1628,9 @@ const br = cr({
|
|
|
2260
1628
|
margin-bottom: 0;
|
|
2261
1629
|
}
|
|
2262
1630
|
}
|
|
2263
|
-
`,
|
|
1631
|
+
`, Se = D(
|
|
2264
1632
|
"markdown-body",
|
|
2265
|
-
|
|
1633
|
+
i`
|
|
2266
1634
|
p {
|
|
2267
1635
|
margin-bottom: 8px;
|
|
2268
1636
|
}
|
|
@@ -2283,7 +1651,7 @@ const br = cr({
|
|
|
2283
1651
|
}
|
|
2284
1652
|
}
|
|
2285
1653
|
`
|
|
2286
|
-
),
|
|
1654
|
+
), Vo = {
|
|
2287
1655
|
'code[class*="language-"]': {
|
|
2288
1656
|
background: "hsl(230, 1%, 98%)",
|
|
2289
1657
|
color: "hsl(230, 8%, 24%)",
|
|
@@ -2771,42 +2139,42 @@ const br = cr({
|
|
|
2771
2139
|
".prism-previewer-easing.prism-previewer-easing line": {
|
|
2772
2140
|
stroke: "hsl(230, 8%, 24%)"
|
|
2773
2141
|
}
|
|
2774
|
-
},
|
|
2775
|
-
const { children:
|
|
2776
|
-
return /* @__PURE__ */ o
|
|
2777
|
-
|
|
2142
|
+
}, _o = (a) => {
|
|
2143
|
+
const { children: e = "", className: r } = a;
|
|
2144
|
+
return /* @__PURE__ */ o(
|
|
2145
|
+
Mo,
|
|
2778
2146
|
{
|
|
2779
|
-
className:
|
|
2780
|
-
remarkPlugins: [
|
|
2781
|
-
rehypePlugins: [
|
|
2147
|
+
className: D(Se, r),
|
|
2148
|
+
remarkPlugins: [So, To],
|
|
2149
|
+
rehypePlugins: [No],
|
|
2782
2150
|
components: {
|
|
2783
|
-
code(
|
|
2784
|
-
const { children:
|
|
2785
|
-
return
|
|
2786
|
-
|
|
2151
|
+
code(t) {
|
|
2152
|
+
const { children: l, className: n, node: d, ref: p, ...s } = t, v = /language-(\w+)/.exec(n || "");
|
|
2153
|
+
return v ? /* @__PURE__ */ o(
|
|
2154
|
+
Bo,
|
|
2787
2155
|
{
|
|
2788
|
-
...
|
|
2156
|
+
...s,
|
|
2789
2157
|
PreTag: "div",
|
|
2790
|
-
children: String(
|
|
2791
|
-
language:
|
|
2792
|
-
style:
|
|
2158
|
+
children: String(l).replace(/\n$/, ""),
|
|
2159
|
+
language: v[1],
|
|
2160
|
+
style: Vo
|
|
2793
2161
|
}
|
|
2794
|
-
) : /* @__PURE__ */ o
|
|
2162
|
+
) : /* @__PURE__ */ o("code", { ...s, className: n, children: l });
|
|
2795
2163
|
}
|
|
2796
2164
|
},
|
|
2797
|
-
children:
|
|
2165
|
+
children: e
|
|
2798
2166
|
}
|
|
2799
2167
|
);
|
|
2800
|
-
},
|
|
2801
|
-
const { value:
|
|
2802
|
-
image:
|
|
2803
|
-
diffSource:
|
|
2168
|
+
}, Oo = (a) => {
|
|
2169
|
+
const { value: e, onChange: r, translation: t, pluginConfig: l, ...n } = a, d = te(null), {
|
|
2170
|
+
image: p,
|
|
2171
|
+
diffSource: s = {
|
|
2804
2172
|
viewMode: "rich-text"
|
|
2805
2173
|
},
|
|
2806
|
-
headings:
|
|
2807
|
-
link:
|
|
2808
|
-
codeBlock:
|
|
2809
|
-
codeMirror:
|
|
2174
|
+
headings: v,
|
|
2175
|
+
link: C,
|
|
2176
|
+
codeBlock: R,
|
|
2177
|
+
codeMirror: T = {
|
|
2810
2178
|
codeBlockLanguages: {
|
|
2811
2179
|
js: "JavaScript",
|
|
2812
2180
|
css: "CSS",
|
|
@@ -2815,164 +2183,164 @@ const br = cr({
|
|
|
2815
2183
|
"": "Unspecified"
|
|
2816
2184
|
}
|
|
2817
2185
|
},
|
|
2818
|
-
directives:
|
|
2819
|
-
directiveDescriptors: [
|
|
2820
|
-
}
|
|
2821
|
-
} =
|
|
2822
|
-
return
|
|
2823
|
-
var
|
|
2824
|
-
|
|
2825
|
-
}, [
|
|
2826
|
-
|
|
2186
|
+
directives: A = {
|
|
2187
|
+
directiveDescriptors: [Io]
|
|
2188
|
+
}
|
|
2189
|
+
} = l ?? {}, [L, u] = F("");
|
|
2190
|
+
return oe(() => {
|
|
2191
|
+
var c;
|
|
2192
|
+
e !== void 0 && d.current && ((c = d.current) == null || c.setMarkdown(e), u(e));
|
|
2193
|
+
}, [e, d]), /* @__PURE__ */ o(
|
|
2194
|
+
We,
|
|
2827
2195
|
{
|
|
2828
|
-
ref:
|
|
2829
|
-
className:
|
|
2830
|
-
contentEditableClassName:
|
|
2831
|
-
markdown:
|
|
2832
|
-
onChange: (
|
|
2833
|
-
!
|
|
2196
|
+
ref: d,
|
|
2197
|
+
className: Yo,
|
|
2198
|
+
contentEditableClassName: Se,
|
|
2199
|
+
markdown: L,
|
|
2200
|
+
onChange: (c) => {
|
|
2201
|
+
!e && !r && u(c), r && r(c);
|
|
2834
2202
|
},
|
|
2835
|
-
translation:
|
|
2203
|
+
translation: t ?? qo,
|
|
2836
2204
|
plugins: [
|
|
2837
|
-
|
|
2838
|
-
toolbarContents: () => /* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */ o
|
|
2840
|
-
/* @__PURE__ */ o
|
|
2841
|
-
/* @__PURE__ */ o
|
|
2842
|
-
/* @__PURE__ */ o
|
|
2843
|
-
/* @__PURE__ */ o
|
|
2844
|
-
/* @__PURE__ */ o
|
|
2845
|
-
/* @__PURE__ */ o
|
|
2846
|
-
/* @__PURE__ */ o
|
|
2847
|
-
/* @__PURE__ */ o
|
|
2848
|
-
/* @__PURE__ */ o
|
|
2849
|
-
/* @__PURE__ */ o
|
|
2850
|
-
/* @__PURE__ */ o
|
|
2851
|
-
/* @__PURE__ */ o
|
|
2852
|
-
/* @__PURE__ */ o
|
|
2853
|
-
/* @__PURE__ */ o
|
|
2854
|
-
/* @__PURE__ */ o
|
|
2855
|
-
/* @__PURE__ */ o
|
|
2856
|
-
/* @__PURE__ */ o
|
|
2205
|
+
Je({
|
|
2206
|
+
toolbarContents: () => /* @__PURE__ */ H(Ke, { options: ["rich-text", "source"], children: [
|
|
2207
|
+
/* @__PURE__ */ o(Ze, {}),
|
|
2208
|
+
/* @__PURE__ */ o(J, {}),
|
|
2209
|
+
/* @__PURE__ */ o(Qe, {}),
|
|
2210
|
+
/* @__PURE__ */ o(eo, {}),
|
|
2211
|
+
/* @__PURE__ */ o(J, {}),
|
|
2212
|
+
/* @__PURE__ */ o(oo, {}),
|
|
2213
|
+
/* @__PURE__ */ o(J, {}),
|
|
2214
|
+
/* @__PURE__ */ o(to, {}),
|
|
2215
|
+
/* @__PURE__ */ o(J, {}),
|
|
2216
|
+
/* @__PURE__ */ o(ro, {}),
|
|
2217
|
+
/* @__PURE__ */ o(no, {}),
|
|
2218
|
+
/* @__PURE__ */ o(J, {}),
|
|
2219
|
+
/* @__PURE__ */ o(lo, {}),
|
|
2220
|
+
/* @__PURE__ */ o(ao, {}),
|
|
2221
|
+
/* @__PURE__ */ o(J, {}),
|
|
2222
|
+
/* @__PURE__ */ o(io, {}),
|
|
2223
|
+
/* @__PURE__ */ o(J, {}),
|
|
2224
|
+
/* @__PURE__ */ o(so, {})
|
|
2857
2225
|
] })
|
|
2858
2226
|
}),
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2227
|
+
co(s),
|
|
2228
|
+
uo(),
|
|
2229
|
+
mo(),
|
|
2230
|
+
go(v),
|
|
2231
|
+
po(C),
|
|
2232
|
+
ho(),
|
|
2233
|
+
fo(p),
|
|
2234
|
+
bo(),
|
|
2235
|
+
ko(),
|
|
2236
|
+
vo(),
|
|
2237
|
+
xo(R),
|
|
2238
|
+
wo(T),
|
|
2239
|
+
Co(),
|
|
2240
|
+
yo(A)
|
|
2873
2241
|
],
|
|
2874
|
-
...
|
|
2242
|
+
...n
|
|
2875
2243
|
}
|
|
2876
2244
|
);
|
|
2877
|
-
},
|
|
2878
|
-
|
|
2879
|
-
function
|
|
2880
|
-
return
|
|
2245
|
+
}, Uo = Oo;
|
|
2246
|
+
Uo.Preview = _o;
|
|
2247
|
+
function Te(...a) {
|
|
2248
|
+
return $o(Do(a));
|
|
2881
2249
|
}
|
|
2882
|
-
const
|
|
2883
|
-
const { mouseX:
|
|
2884
|
-
var
|
|
2885
|
-
const
|
|
2886
|
-
return
|
|
2887
|
-
}),
|
|
2888
|
-
|
|
2250
|
+
const Wo = (a) => {
|
|
2251
|
+
const { mouseX: e, title: r, icon: t, href: l } = a, n = te(null), d = ee(e, (I) => {
|
|
2252
|
+
var $;
|
|
2253
|
+
const x = (($ = n.current) == null ? void 0 : $.getBoundingClientRect()) ?? { x: 0, width: 0 };
|
|
2254
|
+
return I - x.x - x.width / 2;
|
|
2255
|
+
}), p = ee(d, [-150, 0, 150], [40, 80, 40]), s = ee(d, [-150, 0, 150], [40, 80, 40]), v = ee(
|
|
2256
|
+
d,
|
|
2889
2257
|
[-150, 0, 150],
|
|
2890
2258
|
[20, 40, 20]
|
|
2891
|
-
),
|
|
2892
|
-
|
|
2259
|
+
), C = ee(
|
|
2260
|
+
d,
|
|
2893
2261
|
[-150, 0, 150],
|
|
2894
2262
|
[20, 40, 20]
|
|
2895
|
-
),
|
|
2263
|
+
), R = ne(p, {
|
|
2896
2264
|
mass: 0.1,
|
|
2897
2265
|
stiffness: 150,
|
|
2898
2266
|
damping: 12
|
|
2899
|
-
}),
|
|
2267
|
+
}), T = ne(s, {
|
|
2900
2268
|
mass: 0.1,
|
|
2901
2269
|
stiffness: 150,
|
|
2902
2270
|
damping: 12
|
|
2903
|
-
}),
|
|
2271
|
+
}), A = ne(v, {
|
|
2904
2272
|
mass: 0.1,
|
|
2905
2273
|
stiffness: 150,
|
|
2906
2274
|
damping: 12
|
|
2907
|
-
}),
|
|
2275
|
+
}), L = ne(C, {
|
|
2908
2276
|
mass: 0.1,
|
|
2909
2277
|
stiffness: 150,
|
|
2910
2278
|
damping: 12
|
|
2911
|
-
}), [
|
|
2912
|
-
return /* @__PURE__ */ o
|
|
2913
|
-
|
|
2279
|
+
}), [u, c] = F(!1);
|
|
2280
|
+
return /* @__PURE__ */ o("a", { href: l, children: /* @__PURE__ */ H(
|
|
2281
|
+
f.div,
|
|
2914
2282
|
{
|
|
2915
|
-
ref:
|
|
2916
|
-
style: { width:
|
|
2917
|
-
onMouseEnter: () =>
|
|
2918
|
-
onMouseLeave: () =>
|
|
2283
|
+
ref: n,
|
|
2284
|
+
style: { width: R, height: T },
|
|
2285
|
+
onMouseEnter: () => c(!0),
|
|
2286
|
+
onMouseLeave: () => c(!1),
|
|
2919
2287
|
className: "aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative",
|
|
2920
2288
|
children: [
|
|
2921
|
-
/* @__PURE__ */ o
|
|
2922
|
-
|
|
2289
|
+
/* @__PURE__ */ o(ue, { children: u && /* @__PURE__ */ o(
|
|
2290
|
+
f.div,
|
|
2923
2291
|
{
|
|
2924
2292
|
initial: { opacity: 0, y: 10, x: "-50%" },
|
|
2925
2293
|
animate: { opacity: 1, y: 0, x: "-50%" },
|
|
2926
2294
|
exit: { opacity: 0, y: 2, x: "-50%" },
|
|
2927
2295
|
className: "px-2 py-0.5 whitespace-pre rounded-md bg-gray-100 border dark:bg-neutral-800 dark:border-neutral-900 dark:text-white border-gray-200 text-neutral-700 absolute left-1/2 -translate-x-1/2 -top-8 w-fit text-xs",
|
|
2928
|
-
children:
|
|
2296
|
+
children: r
|
|
2929
2297
|
}
|
|
2930
2298
|
) }),
|
|
2931
|
-
/* @__PURE__ */ o
|
|
2932
|
-
|
|
2299
|
+
/* @__PURE__ */ o(
|
|
2300
|
+
f.div,
|
|
2933
2301
|
{
|
|
2934
|
-
style: { width:
|
|
2302
|
+
style: { width: A, height: L },
|
|
2935
2303
|
className: "flex items-center justify-center",
|
|
2936
|
-
children:
|
|
2304
|
+
children: t
|
|
2937
2305
|
}
|
|
2938
2306
|
)
|
|
2939
2307
|
]
|
|
2940
2308
|
}
|
|
2941
2309
|
) });
|
|
2942
|
-
},
|
|
2943
|
-
const { items:
|
|
2944
|
-
return /* @__PURE__ */ o
|
|
2945
|
-
|
|
2310
|
+
}, Ne = (a) => {
|
|
2311
|
+
const { items: e, className: r } = a, t = Xe(1 / 0);
|
|
2312
|
+
return /* @__PURE__ */ o(
|
|
2313
|
+
f.div,
|
|
2946
2314
|
{
|
|
2947
|
-
onMouseMove: (
|
|
2948
|
-
onMouseLeave: () =>
|
|
2949
|
-
className:
|
|
2315
|
+
onMouseMove: (l) => t.set(l.pageX),
|
|
2316
|
+
onMouseLeave: () => t.set(1 / 0),
|
|
2317
|
+
className: Te(
|
|
2950
2318
|
"mx-auto hidden md:flex h-16 gap-4 items-end rounded-2xl bg-gray-50 dark:bg-neutral-900 px-4 pb-3",
|
|
2951
|
-
|
|
2319
|
+
r
|
|
2952
2320
|
),
|
|
2953
|
-
children:
|
|
2321
|
+
children: e.map((l) => /* @__PURE__ */ o(Wo, { mouseX: t, ...l }, l.title))
|
|
2954
2322
|
}
|
|
2955
2323
|
);
|
|
2956
|
-
},
|
|
2957
|
-
const { items:
|
|
2958
|
-
|
|
2324
|
+
}, Be = (a) => {
|
|
2325
|
+
const { items: e, className: r, collapseIcon: t, autoHidden: l = !1 } = a, [n, d] = F(!1), p = () => {
|
|
2326
|
+
d(!n);
|
|
2959
2327
|
};
|
|
2960
|
-
return /* @__PURE__ */
|
|
2328
|
+
return /* @__PURE__ */ H(
|
|
2961
2329
|
"div",
|
|
2962
2330
|
{
|
|
2963
|
-
className:
|
|
2331
|
+
className: Te(
|
|
2964
2332
|
"relative block",
|
|
2965
|
-
|
|
2966
|
-
|
|
2333
|
+
l ? "md:hidden" : "",
|
|
2334
|
+
r
|
|
2967
2335
|
),
|
|
2968
2336
|
children: [
|
|
2969
|
-
/* @__PURE__ */ o
|
|
2970
|
-
|
|
2337
|
+
/* @__PURE__ */ o(ue, { children: n && /* @__PURE__ */ o(
|
|
2338
|
+
f.div,
|
|
2971
2339
|
{
|
|
2972
2340
|
layoutId: "nav",
|
|
2973
2341
|
className: "absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2",
|
|
2974
|
-
children:
|
|
2975
|
-
|
|
2342
|
+
children: e.map((s, v) => /* @__PURE__ */ o(
|
|
2343
|
+
f.div,
|
|
2976
2344
|
{
|
|
2977
2345
|
initial: { opacity: 0, y: 10 },
|
|
2978
2346
|
animate: {
|
|
@@ -2983,54 +2351,54 @@ const st = (d) => {
|
|
|
2983
2351
|
opacity: 0,
|
|
2984
2352
|
y: 10,
|
|
2985
2353
|
transition: {
|
|
2986
|
-
delay:
|
|
2354
|
+
delay: v * 0.05
|
|
2987
2355
|
}
|
|
2988
2356
|
},
|
|
2989
|
-
transition: { delay: (
|
|
2990
|
-
children: /* @__PURE__ */ o
|
|
2357
|
+
transition: { delay: (e.length - 1 - v) * 0.05 },
|
|
2358
|
+
children: /* @__PURE__ */ o(
|
|
2991
2359
|
"a",
|
|
2992
2360
|
{
|
|
2993
|
-
href:
|
|
2361
|
+
href: s.href,
|
|
2994
2362
|
className: "h-10 w-10 rounded-full bg-gray-50 dark:bg-neutral-900 flex items-center justify-center",
|
|
2995
|
-
children: /* @__PURE__ */ o
|
|
2363
|
+
children: /* @__PURE__ */ o("div", { className: "h-4 w-4", children: s.icon })
|
|
2996
2364
|
},
|
|
2997
|
-
|
|
2365
|
+
s.title
|
|
2998
2366
|
)
|
|
2999
2367
|
},
|
|
3000
|
-
|
|
2368
|
+
s.title
|
|
3001
2369
|
))
|
|
3002
2370
|
}
|
|
3003
2371
|
) }),
|
|
3004
|
-
/* @__PURE__ */ o
|
|
2372
|
+
/* @__PURE__ */ o(
|
|
3005
2373
|
"button",
|
|
3006
2374
|
{
|
|
3007
|
-
onClick:
|
|
2375
|
+
onClick: p,
|
|
3008
2376
|
className: "h-10 w-10 rounded-full bg-gray-50 dark:bg-neutral-800 flex items-center justify-center",
|
|
3009
|
-
children:
|
|
2377
|
+
children: t || /* @__PURE__ */ o(Oe, { className: "h-5 w-5 text-neutral-500 dark:text-neutral-400" })
|
|
3010
2378
|
}
|
|
3011
2379
|
)
|
|
3012
2380
|
]
|
|
3013
2381
|
}
|
|
3014
2382
|
);
|
|
3015
|
-
},
|
|
3016
|
-
const { items:
|
|
3017
|
-
return /* @__PURE__ */
|
|
3018
|
-
/* @__PURE__ */ o
|
|
3019
|
-
/* @__PURE__ */ o
|
|
3020
|
-
|
|
2383
|
+
}, Jo = (a) => {
|
|
2384
|
+
const { items: e, desktopClassName: r, mobileClassName: t, ...l } = a;
|
|
2385
|
+
return /* @__PURE__ */ H(ce, { children: [
|
|
2386
|
+
/* @__PURE__ */ o(Ne, { items: e, className: r, ...l }),
|
|
2387
|
+
/* @__PURE__ */ o(
|
|
2388
|
+
Be,
|
|
3021
2389
|
{
|
|
3022
|
-
items:
|
|
3023
|
-
className:
|
|
2390
|
+
items: e,
|
|
2391
|
+
className: t,
|
|
3024
2392
|
autoHidden: !0,
|
|
3025
|
-
...
|
|
2393
|
+
...l
|
|
3026
2394
|
}
|
|
3027
2395
|
)
|
|
3028
2396
|
] });
|
|
3029
|
-
},
|
|
3030
|
-
|
|
3031
|
-
|
|
2397
|
+
}, De = Jo;
|
|
2398
|
+
De.Desktop = Ne;
|
|
2399
|
+
De.Mobile = Be;
|
|
3032
2400
|
export {
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
2401
|
+
vt as Desktop,
|
|
2402
|
+
De as Dock,
|
|
2403
|
+
Uo as MdEditor
|
|
3036
2404
|
};
|