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