@gct-paas/core-web 0.1.4-dev.13 → 0.1.4-dev.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/dist/de_DE-CYotlhMS.js +1 -0
- package/dist/en_US-DjLwq3RF.js +1 -0
- package/dist/es_ES-0UhVFVHw.js +1 -0
- package/dist/fr_FR-Xgsbf3iG.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/ja_JP-3aUbzjBv.js +1 -0
- package/dist/loader.esm.min.js +1 -9583
- package/dist/monaco-editor-DKwtDu2R.js +1 -0
- package/dist/objectSpread2-BL8YUfIz.js +1 -0
- package/dist/pt_PT-BzMPT58e.js +1 -0
- package/dist/ru_RU-BRHq1RXx.js +1 -0
- package/dist/tr_TR-CPqM558w.js +1 -0
- package/dist/useMonacoEditor-DrIqFqr0.js +1 -0
- package/dist/vi_VN-BOKGrWoY.js +1 -0
- package/dist/zh_CN-upOsz50m.js +1 -0
- package/dist/zh_TW-jlmatmAz.js +1 -0
- package/es/components/UserPick/index.d.ts +46 -0
- package/es/components/UserPick/index.mjs +113 -0
- package/es/components/UserPick/src/components/dept-item.vue.d.ts +11 -0
- package/es/components/UserPick/src/components/dept-item.vue.mjs +7 -0
- package/es/components/UserPick/src/components/dept-item.vue_vue_type_script_setup_true_lang.mjs +32 -0
- package/es/components/UserPick/src/components/dept-item.vue_vue_type_style_index_0_scoped_075b8ce7_lang.css +3 -0
- package/es/components/UserPick/src/components/user-item.vue.d.ts +11 -0
- package/es/components/UserPick/src/components/user-item.vue.mjs +7 -0
- package/es/components/UserPick/src/components/user-item.vue_vue_type_script_setup_true_lang.mjs +33 -0
- package/es/components/UserPick/src/components/user-item.vue_vue_type_style_index_0_scoped_1456f8b9_lang.css +3 -0
- package/es/components/UserPick/src/hooks.d.ts +1 -0
- package/es/components/UserPick/src/hooks.mjs +94 -0
- package/es/components/UserPick/src/user-pick.vue.d.ts +17 -0
- package/es/components/UserPick/src/user-pick.vue.mjs +7 -0
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +280 -0
- package/es/components/UserPick/src/user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css +39 -0
- package/es/components/index.d.ts +3 -1
- package/es/components/index.mjs +1 -0
- package/es/create-app-vue.mjs +2 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/{modules/Cropper/hooks → hooks}/useFile.mjs +4 -3
- package/es/index.mjs +4 -2
- package/es/loader.mjs +92 -0
- package/es/modules/Cropper/index.d.ts +0 -1
- package/es/modules/Cropper/index.mjs +0 -1
- package/es/modules/Cropper/src/Cropper.vue.d.ts +2 -2
- package/es/modules/Cropper/src/CropperAvatar.vue.mjs +2 -2
- package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +1 -1
- package/es/modules/Cropper/src/{CropperAvatar.vue_vue_type_style_index_0_scoped_b5d65cd4_lang.css → CropperAvatar.vue_vue_type_style_index_0_scoped_66052c52_lang.css} +7 -7
- package/es/modules/Cropper/src/CropperFree.vue.mjs +2 -2
- package/es/modules/Cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +2 -1
- package/es/modules/Cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_3cc5e19b_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_dc019220_lang.css} +16 -16
- package/es/modules/global-modal/src/BasicModal.vue.d.ts +2 -2
- package/package.json +5 -12
- package/dist/de_DE-Dlmr1Wso.js +0 -152
- package/dist/en_US-B9GNh9s3.js +0 -173
- package/dist/es_ES-CdOh6_BZ.js +0 -159
- package/dist/fr_FR-DA5AJaJ_.js +0 -168
- package/dist/ja_JP-DE6fp7p7.js +0 -140
- package/dist/monaco-editor-Di2Ob0f2.js +0 -279
- package/dist/objectSpread2-fLnUNEWu.js +0 -62
- package/dist/pt_PT-DqWIQ8Sv.js +0 -134
- package/dist/ru_RU-B7eejpuq.js +0 -165
- package/dist/tr_TR-Cp-TWGG5.js +0 -167
- package/dist/useMonacoEditor-B4gp3RiK.js +0 -2788
- package/dist/vi_VN-BWekEft9.js +0 -85
- package/dist/zh_CN-CaadhslE.js +0 -174
- package/dist/zh_TW-DHMPuQGm.js +0 -169
- /package/es/{modules/Cropper/hooks → hooks}/useFile.d.ts +0 -0
|
@@ -1,2788 +0,0 @@
|
|
|
1
|
-
import { Modal as e, OverlayContainer as t, useNamespace as n } from "@gct-paas/core";
|
|
2
|
-
import * as r from "vue";
|
|
3
|
-
import { createVNode as i, defineComponent as a, h as o, isVNode as s, provide as c, ref as l, resolveComponent as u } from "vue";
|
|
4
|
-
import { isFunction as d, isString as f } from "lodash-es";
|
|
5
|
-
import { ConfigProvider as p, message as m } from "ant-design-vue";
|
|
6
|
-
//#region \0rolldown/runtime.js
|
|
7
|
-
var h = Object.create, g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, v = Object.getOwnPropertyNames, y = Object.getPrototypeOf, ee = Object.prototype.hasOwnProperty, b = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), te = (e, t) => {
|
|
8
|
-
let n = {};
|
|
9
|
-
for (var r in e) g(n, r, {
|
|
10
|
-
get: e[r],
|
|
11
|
-
enumerable: !0
|
|
12
|
-
});
|
|
13
|
-
return t || g(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
14
|
-
}, x = (e, t, n, r) => {
|
|
15
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = v(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !ee.call(e, s) && s !== n && g(e, s, {
|
|
16
|
-
get: ((e) => t[e]).bind(null, s),
|
|
17
|
-
enumerable: !(r = _(t, s)) || r.enumerable
|
|
18
|
-
});
|
|
19
|
-
return e;
|
|
20
|
-
}, ne = (e, t, n) => (x(e, t, "default"), n && x(n, t, "default")), re = (e, t, n) => (n = e == null ? {} : h(y(e)), x(t || !e || !e.__esModule ? g(n, "default", {
|
|
21
|
-
value: e,
|
|
22
|
-
enumerable: !0
|
|
23
|
-
}) : n, e)), ie = (e, t) => {
|
|
24
|
-
let n = e.__vccOpts || e;
|
|
25
|
-
for (let [e, r] of t) n[e] = r;
|
|
26
|
-
return n;
|
|
27
|
-
}, ae = class {
|
|
28
|
-
info(e, t) {
|
|
29
|
-
return new Promise((n) => {
|
|
30
|
-
m.info(e, t?.duration, n);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
success(e, t) {
|
|
34
|
-
return new Promise((n) => {
|
|
35
|
-
m.success(e, t?.duration, n);
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
warning(e, t) {
|
|
39
|
-
return new Promise((n) => {
|
|
40
|
-
m.warning(e, t?.duration, n);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
error(e, t) {
|
|
44
|
-
return new Promise((n) => {
|
|
45
|
-
m.error(e, t?.duration, n);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
|
|
51
|
-
function oe(e, t) {
|
|
52
|
-
(t == null || t > e.length) && (t = e.length);
|
|
53
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
54
|
-
return r;
|
|
55
|
-
}
|
|
56
|
-
function se(e) {
|
|
57
|
-
if (Array.isArray(e)) return e;
|
|
58
|
-
}
|
|
59
|
-
function ce(e, t, n) {
|
|
60
|
-
return (t = _e(t)) in e ? Object.defineProperty(e, t, {
|
|
61
|
-
value: n,
|
|
62
|
-
enumerable: !0,
|
|
63
|
-
configurable: !0,
|
|
64
|
-
writable: !0
|
|
65
|
-
}) : e[t] = n, e;
|
|
66
|
-
}
|
|
67
|
-
function le(e, t) {
|
|
68
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
69
|
-
if (n != null) {
|
|
70
|
-
var r, i, a, o, s = [], c = !0, l = !1;
|
|
71
|
-
try {
|
|
72
|
-
if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
73
|
-
} catch (e) {
|
|
74
|
-
l = !0, i = e;
|
|
75
|
-
} finally {
|
|
76
|
-
try {
|
|
77
|
-
if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
|
|
78
|
-
} finally {
|
|
79
|
-
if (l) throw i;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return s;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
function ue() {
|
|
86
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
87
|
-
}
|
|
88
|
-
function de(e, t) {
|
|
89
|
-
var n = Object.keys(e);
|
|
90
|
-
if (Object.getOwnPropertySymbols) {
|
|
91
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
92
|
-
t && (r = r.filter(function(t) {
|
|
93
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
94
|
-
})), n.push.apply(n, r);
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
}
|
|
98
|
-
function fe(e) {
|
|
99
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
100
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
101
|
-
t % 2 ? de(Object(n), !0).forEach(function(t) {
|
|
102
|
-
ce(e, t, n[t]);
|
|
103
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : de(Object(n)).forEach(function(t) {
|
|
104
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
return e;
|
|
108
|
-
}
|
|
109
|
-
function pe(e, t) {
|
|
110
|
-
if (e == null) return {};
|
|
111
|
-
var n, r, i = me(e, t);
|
|
112
|
-
if (Object.getOwnPropertySymbols) {
|
|
113
|
-
var a = Object.getOwnPropertySymbols(e);
|
|
114
|
-
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
115
|
-
}
|
|
116
|
-
return i;
|
|
117
|
-
}
|
|
118
|
-
function me(e, t) {
|
|
119
|
-
if (e == null) return {};
|
|
120
|
-
var n = {};
|
|
121
|
-
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
122
|
-
if (t.indexOf(r) !== -1) continue;
|
|
123
|
-
n[r] = e[r];
|
|
124
|
-
}
|
|
125
|
-
return n;
|
|
126
|
-
}
|
|
127
|
-
function he(e, t) {
|
|
128
|
-
return se(e) || le(e, t) || ve(e, t) || ue();
|
|
129
|
-
}
|
|
130
|
-
function ge(e, t) {
|
|
131
|
-
if (typeof e != "object" || !e) return e;
|
|
132
|
-
var n = e[Symbol.toPrimitive];
|
|
133
|
-
if (n !== void 0) {
|
|
134
|
-
var r = n.call(e, t);
|
|
135
|
-
if (typeof r != "object") return r;
|
|
136
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
137
|
-
}
|
|
138
|
-
return (t === "string" ? String : Number)(e);
|
|
139
|
-
}
|
|
140
|
-
function _e(e) {
|
|
141
|
-
var t = ge(e, "string");
|
|
142
|
-
return typeof t == "symbol" ? t : t + "";
|
|
143
|
-
}
|
|
144
|
-
function ve(e, t) {
|
|
145
|
-
if (e) {
|
|
146
|
-
if (typeof e == "string") return oe(e, t);
|
|
147
|
-
var n = {}.toString.call(e).slice(8, -1);
|
|
148
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? oe(e, t) : void 0;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region ../../node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.js
|
|
153
|
-
function ye(e, t, n) {
|
|
154
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
155
|
-
value: n,
|
|
156
|
-
enumerable: !0,
|
|
157
|
-
configurable: !0,
|
|
158
|
-
writable: !0
|
|
159
|
-
}) : e[t] = n, e;
|
|
160
|
-
}
|
|
161
|
-
function be(e, t) {
|
|
162
|
-
var n = Object.keys(e);
|
|
163
|
-
if (Object.getOwnPropertySymbols) {
|
|
164
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
165
|
-
t && (r = r.filter(function(t) {
|
|
166
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
167
|
-
})), n.push.apply(n, r);
|
|
168
|
-
}
|
|
169
|
-
return n;
|
|
170
|
-
}
|
|
171
|
-
function xe(e) {
|
|
172
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
173
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
174
|
-
t % 2 ? be(Object(n), !0).forEach(function(t) {
|
|
175
|
-
ye(e, t, n[t]);
|
|
176
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : be(Object(n)).forEach(function(t) {
|
|
177
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
return e;
|
|
181
|
-
}
|
|
182
|
-
function Se() {
|
|
183
|
-
var e = [...arguments];
|
|
184
|
-
return function(t) {
|
|
185
|
-
return e.reduceRight(function(e, t) {
|
|
186
|
-
return t(e);
|
|
187
|
-
}, t);
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
function S(e) {
|
|
191
|
-
return function t() {
|
|
192
|
-
var n = this, r = [...arguments];
|
|
193
|
-
return r.length >= e.length ? e.apply(this, r) : function() {
|
|
194
|
-
var e = [...arguments];
|
|
195
|
-
return t.apply(n, [].concat(r, e));
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function C(e) {
|
|
200
|
-
return {}.toString.call(e).includes("Object");
|
|
201
|
-
}
|
|
202
|
-
function Ce(e) {
|
|
203
|
-
return !Object.keys(e).length;
|
|
204
|
-
}
|
|
205
|
-
function w(e) {
|
|
206
|
-
return typeof e == "function";
|
|
207
|
-
}
|
|
208
|
-
function we(e, t) {
|
|
209
|
-
return Object.prototype.hasOwnProperty.call(e, t);
|
|
210
|
-
}
|
|
211
|
-
function Te(e, t) {
|
|
212
|
-
return C(t) || T("changeType"), Object.keys(t).some(function(t) {
|
|
213
|
-
return !we(e, t);
|
|
214
|
-
}) && T("changeField"), t;
|
|
215
|
-
}
|
|
216
|
-
function Ee(e) {
|
|
217
|
-
w(e) || T("selectorType");
|
|
218
|
-
}
|
|
219
|
-
function De(e) {
|
|
220
|
-
w(e) || C(e) || T("handlerType"), C(e) && Object.values(e).some(function(e) {
|
|
221
|
-
return !w(e);
|
|
222
|
-
}) && T("handlersType");
|
|
223
|
-
}
|
|
224
|
-
function Oe(e) {
|
|
225
|
-
e || T("initialIsRequired"), C(e) || T("initialType"), Ce(e) && T("initialContent");
|
|
226
|
-
}
|
|
227
|
-
function ke(e, t) {
|
|
228
|
-
throw Error(e[t] || e.default);
|
|
229
|
-
}
|
|
230
|
-
var T = S(ke)({
|
|
231
|
-
initialIsRequired: "initial state is required",
|
|
232
|
-
initialType: "initial state should be an object",
|
|
233
|
-
initialContent: "initial state shouldn't be an empty object",
|
|
234
|
-
handlerType: "handler should be an object or a function",
|
|
235
|
-
handlersType: "all handlers should be a functions",
|
|
236
|
-
selectorType: "selector should be a function",
|
|
237
|
-
changeType: "provided value of changes should be an object",
|
|
238
|
-
changeField: "it seams you want to change a field in the state which is not specified in the \"initial\" state",
|
|
239
|
-
default: "an unknown error accured in `state-local` package"
|
|
240
|
-
}), E = {
|
|
241
|
-
changes: Te,
|
|
242
|
-
selector: Ee,
|
|
243
|
-
handler: De,
|
|
244
|
-
initial: Oe
|
|
245
|
-
};
|
|
246
|
-
function Ae(e) {
|
|
247
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
248
|
-
E.initial(e), E.handler(t);
|
|
249
|
-
var n = { current: e }, r = S(Ne)(n, t), i = S(Me)(n), a = S(E.changes)(e), o = S(je)(n);
|
|
250
|
-
function s() {
|
|
251
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(e) {
|
|
252
|
-
return e;
|
|
253
|
-
};
|
|
254
|
-
return E.selector(e), e(n.current);
|
|
255
|
-
}
|
|
256
|
-
function c(e) {
|
|
257
|
-
Se(r, i, a, o)(e);
|
|
258
|
-
}
|
|
259
|
-
return [s, c];
|
|
260
|
-
}
|
|
261
|
-
function je(e, t) {
|
|
262
|
-
return w(t) ? t(e.current) : t;
|
|
263
|
-
}
|
|
264
|
-
function Me(e, t) {
|
|
265
|
-
return e.current = xe(xe({}, e.current), t), t;
|
|
266
|
-
}
|
|
267
|
-
function Ne(e, t, n) {
|
|
268
|
-
return w(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
|
|
269
|
-
return t[n]?.call(t, e.current[n]);
|
|
270
|
-
}), n;
|
|
271
|
-
}
|
|
272
|
-
var Pe = { create: Ae }, Fe = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
|
|
273
|
-
//#endregion
|
|
274
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.js
|
|
275
|
-
function Ie(e) {
|
|
276
|
-
return function t() {
|
|
277
|
-
var n = this, r = [...arguments];
|
|
278
|
-
return r.length >= e.length ? e.apply(this, r) : function() {
|
|
279
|
-
var e = [...arguments];
|
|
280
|
-
return t.apply(n, [].concat(r, e));
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
//#endregion
|
|
285
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
|
|
286
|
-
function Le(e) {
|
|
287
|
-
return {}.toString.call(e).includes("Object");
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/validators/index.js
|
|
291
|
-
function Re(e) {
|
|
292
|
-
return e || He("configIsRequired"), Le(e) || He("configType"), e.urls ? (ze(), { paths: { vs: e.urls.monacoBase } }) : e;
|
|
293
|
-
}
|
|
294
|
-
function ze() {
|
|
295
|
-
console.warn(Ve.deprecation);
|
|
296
|
-
}
|
|
297
|
-
function Be(e, t) {
|
|
298
|
-
throw Error(e[t] || e.default);
|
|
299
|
-
}
|
|
300
|
-
var Ve = {
|
|
301
|
-
configIsRequired: "the configuration object is required",
|
|
302
|
-
configType: "the configuration object should be an object",
|
|
303
|
-
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
304
|
-
deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
|
|
305
|
-
}, He = Ie(Be)(Ve), Ue = { config: Re }, We = function() {
|
|
306
|
-
var e = [...arguments];
|
|
307
|
-
return function(t) {
|
|
308
|
-
return e.reduceRight(function(e, t) {
|
|
309
|
-
return t(e);
|
|
310
|
-
}, t);
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
//#endregion
|
|
314
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
|
|
315
|
-
function Ge(e, t) {
|
|
316
|
-
return Object.keys(t).forEach(function(n) {
|
|
317
|
-
t[n] instanceof Object && e[n] && Object.assign(t[n], Ge(e[n], t[n]));
|
|
318
|
-
}), fe(fe({}, e), t);
|
|
319
|
-
}
|
|
320
|
-
//#endregion
|
|
321
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
|
|
322
|
-
var Ke = {
|
|
323
|
-
type: "cancelation",
|
|
324
|
-
msg: "operation is manually canceled"
|
|
325
|
-
};
|
|
326
|
-
function qe(e) {
|
|
327
|
-
var t = !1, n = new Promise(function(n, r) {
|
|
328
|
-
e.then(function(e) {
|
|
329
|
-
return t ? r(Ke) : n(e);
|
|
330
|
-
}), e.catch(r);
|
|
331
|
-
});
|
|
332
|
-
return n.cancel = function() {
|
|
333
|
-
return t = !0;
|
|
334
|
-
}, n;
|
|
335
|
-
}
|
|
336
|
-
//#endregion
|
|
337
|
-
//#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/loader/index.js
|
|
338
|
-
var Je = ["monaco"], Ye = he(Pe.create({
|
|
339
|
-
config: Fe,
|
|
340
|
-
isInitialized: !1,
|
|
341
|
-
resolve: null,
|
|
342
|
-
reject: null,
|
|
343
|
-
monaco: null
|
|
344
|
-
}), 2), D = Ye[0], O = Ye[1];
|
|
345
|
-
function Xe(e) {
|
|
346
|
-
var t = Ue.config(e), n = t.monaco, r = pe(t, Je);
|
|
347
|
-
O(function(e) {
|
|
348
|
-
return {
|
|
349
|
-
config: Ge(e.config, r),
|
|
350
|
-
monaco: n
|
|
351
|
-
};
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
function Ze() {
|
|
355
|
-
var e = D(function(e) {
|
|
356
|
-
return {
|
|
357
|
-
monaco: e.monaco,
|
|
358
|
-
isInitialized: e.isInitialized,
|
|
359
|
-
resolve: e.resolve
|
|
360
|
-
};
|
|
361
|
-
});
|
|
362
|
-
if (!e.isInitialized) {
|
|
363
|
-
if (O({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), qe(k);
|
|
364
|
-
if (window.monaco && window.monaco.editor) return nt(window.monaco), e.resolve(window.monaco), qe(k);
|
|
365
|
-
We(Qe, et)(tt);
|
|
366
|
-
}
|
|
367
|
-
return qe(k);
|
|
368
|
-
}
|
|
369
|
-
function Qe(e) {
|
|
370
|
-
return document.body.appendChild(e);
|
|
371
|
-
}
|
|
372
|
-
function $e(e) {
|
|
373
|
-
var t = document.createElement("script");
|
|
374
|
-
return e && (t.src = e), t;
|
|
375
|
-
}
|
|
376
|
-
function et(e) {
|
|
377
|
-
var t = D(function(e) {
|
|
378
|
-
return {
|
|
379
|
-
config: e.config,
|
|
380
|
-
reject: e.reject
|
|
381
|
-
};
|
|
382
|
-
}), n = $e(`${t.config.paths.vs}/loader.js`);
|
|
383
|
-
return n.onload = function() {
|
|
384
|
-
return e();
|
|
385
|
-
}, n.onerror = t.reject, n;
|
|
386
|
-
}
|
|
387
|
-
function tt() {
|
|
388
|
-
var e = D(function(e) {
|
|
389
|
-
return {
|
|
390
|
-
config: e.config,
|
|
391
|
-
resolve: e.resolve,
|
|
392
|
-
reject: e.reject
|
|
393
|
-
};
|
|
394
|
-
}), t = window.require;
|
|
395
|
-
t.config(e.config), t(["vs/editor/editor.main"], function(t) {
|
|
396
|
-
var n = t.m || t;
|
|
397
|
-
nt(n), e.resolve(n);
|
|
398
|
-
}, function(t) {
|
|
399
|
-
e.reject(t);
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
function nt(e) {
|
|
403
|
-
D().monaco || O({ monaco: e });
|
|
404
|
-
}
|
|
405
|
-
function rt() {
|
|
406
|
-
return D(function(e) {
|
|
407
|
-
return e.monaco;
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
var k = new Promise(function(e, t) {
|
|
411
|
-
return O({
|
|
412
|
-
resolve: e,
|
|
413
|
-
reject: t
|
|
414
|
-
});
|
|
415
|
-
}), A = {
|
|
416
|
-
config: Xe,
|
|
417
|
-
init: Ze,
|
|
418
|
-
__getMonacoInstance: rt
|
|
419
|
-
}, it = new class {
|
|
420
|
-
_monacoInstance = null;
|
|
421
|
-
_loadingPromise = null;
|
|
422
|
-
constructor() {
|
|
423
|
-
this._configureLoader();
|
|
424
|
-
}
|
|
425
|
-
_configureLoader() {
|
|
426
|
-
A.config({ paths: { vs: location.origin + "/extras/monaco-editor/0.55.1/min/vs" } });
|
|
427
|
-
}
|
|
428
|
-
async loadMonaco() {
|
|
429
|
-
if (this._monacoInstance) return this._monacoInstance;
|
|
430
|
-
if (this._loadingPromise) return this._loadingPromise;
|
|
431
|
-
this._loadingPromise = A.init();
|
|
432
|
-
try {
|
|
433
|
-
return this._monacoInstance = await this._loadingPromise, console.info("✓ Monaco Editor loaded successfully"), this._monacoInstance;
|
|
434
|
-
} catch (e) {
|
|
435
|
-
throw console.error("✗ Failed to load Monaco Editor:", e), this._loadingPromise = null, e;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
getMonaco() {
|
|
439
|
-
return this._monacoInstance;
|
|
440
|
-
}
|
|
441
|
-
isMonacoLoaded() {
|
|
442
|
-
return this._monacoInstance !== null;
|
|
443
|
-
}
|
|
444
|
-
async createMonacoEditor(e, t) {
|
|
445
|
-
return (await this.loadMonaco()).editor.create(e, t);
|
|
446
|
-
}
|
|
447
|
-
async createMonacoDiffEditor(e, t) {
|
|
448
|
-
return (await this.loadMonaco()).editor.createDiffEditor(e, t);
|
|
449
|
-
}
|
|
450
|
-
async createMonacoModel(e, t, n) {
|
|
451
|
-
return (await this.loadMonaco()).editor.createModel(e, t, n);
|
|
452
|
-
}
|
|
453
|
-
}(), j = /* @__PURE__ */ te({
|
|
454
|
-
Vue: () => r,
|
|
455
|
-
Vue2: () => void 0,
|
|
456
|
-
del: () => st,
|
|
457
|
-
install: () => ot,
|
|
458
|
-
isVue2: () => !1,
|
|
459
|
-
isVue3: () => !0,
|
|
460
|
-
set: () => M
|
|
461
|
-
});
|
|
462
|
-
import * as at from "vue";
|
|
463
|
-
ne(j, at);
|
|
464
|
-
function ot() {}
|
|
465
|
-
function M(e, t, n) {
|
|
466
|
-
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
467
|
-
}
|
|
468
|
-
function st(e, t) {
|
|
469
|
-
if (Array.isArray(e)) {
|
|
470
|
-
e.splice(t, 1);
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
delete e[t];
|
|
474
|
-
}
|
|
475
|
-
//#endregion
|
|
476
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/core/DndContext.js
|
|
477
|
-
var ct = Symbol.for("DndContextType");
|
|
478
|
-
function lt(e) {
|
|
479
|
-
(0, j.provide)(ct, e);
|
|
480
|
-
}
|
|
481
|
-
function ut() {
|
|
482
|
-
return (0, j.inject)(ct);
|
|
483
|
-
}
|
|
484
|
-
//#endregion
|
|
485
|
-
//#region ../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js
|
|
486
|
-
function N(e) {
|
|
487
|
-
return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
|
|
488
|
-
}
|
|
489
|
-
var dt = (function() {
|
|
490
|
-
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
491
|
-
})(), P = function() {
|
|
492
|
-
return Math.random().toString(36).substring(7).split("").join(".");
|
|
493
|
-
}, ft = {
|
|
494
|
-
INIT: "@@redux/INIT" + P(),
|
|
495
|
-
REPLACE: "@@redux/REPLACE" + P(),
|
|
496
|
-
PROBE_UNKNOWN_ACTION: function() {
|
|
497
|
-
return "@@redux/PROBE_UNKNOWN_ACTION" + P();
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
function pt(e) {
|
|
501
|
-
if (typeof e != "object" || !e) return !1;
|
|
502
|
-
for (var t = e; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
|
|
503
|
-
return Object.getPrototypeOf(e) === t;
|
|
504
|
-
}
|
|
505
|
-
function mt(e, t, n) {
|
|
506
|
-
var r;
|
|
507
|
-
if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(N(0));
|
|
508
|
-
if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
|
|
509
|
-
if (typeof n != "function") throw Error(N(1));
|
|
510
|
-
return n(mt)(e, t);
|
|
511
|
-
}
|
|
512
|
-
if (typeof e != "function") throw Error(N(2));
|
|
513
|
-
var i = e, a = t, o = [], s = o, c = !1;
|
|
514
|
-
function l() {
|
|
515
|
-
s === o && (s = o.slice());
|
|
516
|
-
}
|
|
517
|
-
function u() {
|
|
518
|
-
if (c) throw Error(N(3));
|
|
519
|
-
return a;
|
|
520
|
-
}
|
|
521
|
-
function d(e) {
|
|
522
|
-
if (typeof e != "function") throw Error(N(4));
|
|
523
|
-
if (c) throw Error(N(5));
|
|
524
|
-
var t = !0;
|
|
525
|
-
return l(), s.push(e), function() {
|
|
526
|
-
if (t) {
|
|
527
|
-
if (c) throw Error(N(6));
|
|
528
|
-
t = !1, l();
|
|
529
|
-
var n = s.indexOf(e);
|
|
530
|
-
s.splice(n, 1), o = null;
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
function f(e) {
|
|
535
|
-
if (!pt(e)) throw Error(N(7));
|
|
536
|
-
if (e.type === void 0) throw Error(N(8));
|
|
537
|
-
if (c) throw Error(N(9));
|
|
538
|
-
try {
|
|
539
|
-
c = !0, a = i(a, e);
|
|
540
|
-
} finally {
|
|
541
|
-
c = !1;
|
|
542
|
-
}
|
|
543
|
-
for (var t = o = s, n = 0; n < t.length; n++) {
|
|
544
|
-
var r = t[n];
|
|
545
|
-
r();
|
|
546
|
-
}
|
|
547
|
-
return e;
|
|
548
|
-
}
|
|
549
|
-
function p(e) {
|
|
550
|
-
if (typeof e != "function") throw Error(N(10));
|
|
551
|
-
i = e, f({ type: ft.REPLACE });
|
|
552
|
-
}
|
|
553
|
-
function m() {
|
|
554
|
-
var e, t = d;
|
|
555
|
-
return e = { subscribe: function(e) {
|
|
556
|
-
if (typeof e != "object" || !e) throw Error(N(11));
|
|
557
|
-
function n() {
|
|
558
|
-
e.next && e.next(u());
|
|
559
|
-
}
|
|
560
|
-
return n(), { unsubscribe: t(n) };
|
|
561
|
-
} }, e[dt] = function() {
|
|
562
|
-
return this;
|
|
563
|
-
}, e;
|
|
564
|
-
}
|
|
565
|
-
return f({ type: ft.INIT }), r = {
|
|
566
|
-
dispatch: f,
|
|
567
|
-
subscribe: d,
|
|
568
|
-
getState: u,
|
|
569
|
-
replaceReducer: p
|
|
570
|
-
}, r[dt] = m, r;
|
|
571
|
-
}
|
|
572
|
-
//#endregion
|
|
573
|
-
//#region ../../node_modules/.pnpm/@react-dnd+invariant@4.0.2/node_modules/@react-dnd/invariant/dist/index.js
|
|
574
|
-
function F(e, t, ...n) {
|
|
575
|
-
if (ht() && t === void 0) throw Error("invariant requires an error message argument");
|
|
576
|
-
if (!e) {
|
|
577
|
-
let e;
|
|
578
|
-
if (t === void 0) e = /* @__PURE__ */ Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
579
|
-
else {
|
|
580
|
-
let r = 0;
|
|
581
|
-
e = Error(t.replace(/%s/g, function() {
|
|
582
|
-
return n[r++];
|
|
583
|
-
})), e.name = "Invariant Violation";
|
|
584
|
-
}
|
|
585
|
-
throw e.framesToPop = 1, e;
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
function ht() {
|
|
589
|
-
return typeof process < "u" && !0;
|
|
590
|
-
}
|
|
591
|
-
//#endregion
|
|
592
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/js_utils.js
|
|
593
|
-
function gt(e, t, n) {
|
|
594
|
-
return t.split(".").reduce((e, t) => e && e[t] ? e[t] : n || null, e);
|
|
595
|
-
}
|
|
596
|
-
function _t(e, t) {
|
|
597
|
-
return e.filter((e) => e !== t);
|
|
598
|
-
}
|
|
599
|
-
function vt(e) {
|
|
600
|
-
return typeof e == "object";
|
|
601
|
-
}
|
|
602
|
-
function yt(e, t) {
|
|
603
|
-
let n = /* @__PURE__ */ new Map(), r = (e) => {
|
|
604
|
-
n.set(e, n.has(e) ? n.get(e) + 1 : 1);
|
|
605
|
-
};
|
|
606
|
-
e.forEach(r), t.forEach(r);
|
|
607
|
-
let i = [];
|
|
608
|
-
return n.forEach((e, t) => {
|
|
609
|
-
e === 1 && i.push(t);
|
|
610
|
-
}), i;
|
|
611
|
-
}
|
|
612
|
-
function bt(e, t) {
|
|
613
|
-
return e.filter((e) => t.indexOf(e) > -1);
|
|
614
|
-
}
|
|
615
|
-
//#endregion
|
|
616
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/types.js
|
|
617
|
-
var I = "dnd-core/INIT_COORDS", L = "dnd-core/BEGIN_DRAG", R = "dnd-core/PUBLISH_DRAG_SOURCE", z = "dnd-core/HOVER", B = "dnd-core/DROP", V = "dnd-core/END_DRAG";
|
|
618
|
-
//#endregion
|
|
619
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js
|
|
620
|
-
function xt(e, t) {
|
|
621
|
-
return {
|
|
622
|
-
type: I,
|
|
623
|
-
payload: {
|
|
624
|
-
sourceClientOffset: t || null,
|
|
625
|
-
clientOffset: e || null
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
}
|
|
629
|
-
//#endregion
|
|
630
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js
|
|
631
|
-
var St = {
|
|
632
|
-
type: I,
|
|
633
|
-
payload: {
|
|
634
|
-
clientOffset: null,
|
|
635
|
-
sourceClientOffset: null
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
function Ct(e) {
|
|
639
|
-
return function(t = [], n = { publishSource: !0 }) {
|
|
640
|
-
let { publishSource: r = !0, clientOffset: i, getSourceClientOffset: a } = n, o = e.getMonitor(), s = e.getRegistry();
|
|
641
|
-
e.dispatch(xt(i)), wt(t, o, s);
|
|
642
|
-
let c = Dt(t, o);
|
|
643
|
-
if (c == null) {
|
|
644
|
-
e.dispatch(St);
|
|
645
|
-
return;
|
|
646
|
-
}
|
|
647
|
-
let l = null;
|
|
648
|
-
if (i) {
|
|
649
|
-
if (!a) throw Error("getSourceClientOffset must be defined");
|
|
650
|
-
Tt(a), l = a(c);
|
|
651
|
-
}
|
|
652
|
-
e.dispatch(xt(i, l));
|
|
653
|
-
let u = s.getSource(c).beginDrag(o, c);
|
|
654
|
-
if (u != null) return Et(u), s.pinSource(c), {
|
|
655
|
-
type: L,
|
|
656
|
-
payload: {
|
|
657
|
-
itemType: s.getSourceType(c),
|
|
658
|
-
item: u,
|
|
659
|
-
sourceId: c,
|
|
660
|
-
clientOffset: i || null,
|
|
661
|
-
sourceClientOffset: l || null,
|
|
662
|
-
isSourcePublic: !!r
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
};
|
|
666
|
-
}
|
|
667
|
-
function wt(e, t, n) {
|
|
668
|
-
F(!t.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(e) {
|
|
669
|
-
F(n.getSource(e), "Expected sourceIds to be registered.");
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
function Tt(e) {
|
|
673
|
-
F(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
|
|
674
|
-
}
|
|
675
|
-
function Et(e) {
|
|
676
|
-
F(vt(e), "Item must be an object.");
|
|
677
|
-
}
|
|
678
|
-
function Dt(e, t) {
|
|
679
|
-
let n = null;
|
|
680
|
-
for (let r = e.length - 1; r >= 0; r--) if (t.canDragSource(e[r])) {
|
|
681
|
-
n = e[r];
|
|
682
|
-
break;
|
|
683
|
-
}
|
|
684
|
-
return n;
|
|
685
|
-
}
|
|
686
|
-
//#endregion
|
|
687
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/drop.js
|
|
688
|
-
function Ot(e, t, n) {
|
|
689
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
690
|
-
value: n,
|
|
691
|
-
enumerable: !0,
|
|
692
|
-
configurable: !0,
|
|
693
|
-
writable: !0
|
|
694
|
-
}) : e[t] = n, e;
|
|
695
|
-
}
|
|
696
|
-
function kt(e) {
|
|
697
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
698
|
-
var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
|
|
699
|
-
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
700
|
-
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
701
|
-
}))), r.forEach(function(t) {
|
|
702
|
-
Ot(e, t, n[t]);
|
|
703
|
-
});
|
|
704
|
-
}
|
|
705
|
-
return e;
|
|
706
|
-
}
|
|
707
|
-
function At(e) {
|
|
708
|
-
return function(t = {}) {
|
|
709
|
-
let n = e.getMonitor(), r = e.getRegistry();
|
|
710
|
-
jt(n), Pt(n).forEach((i, a) => {
|
|
711
|
-
let o = {
|
|
712
|
-
type: B,
|
|
713
|
-
payload: { dropResult: kt({}, t, Mt(i, a, r, n)) }
|
|
714
|
-
};
|
|
715
|
-
e.dispatch(o);
|
|
716
|
-
});
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
function jt(e) {
|
|
720
|
-
F(e.isDragging(), "Cannot call drop while not dragging."), F(!e.didDrop(), "Cannot call drop twice during one drag operation.");
|
|
721
|
-
}
|
|
722
|
-
function Mt(e, t, n, r) {
|
|
723
|
-
let i = n.getTarget(e), a = i ? i.drop(r, e) : void 0;
|
|
724
|
-
return Nt(a), a === void 0 && (a = t === 0 ? {} : r.getDropResult()), a;
|
|
725
|
-
}
|
|
726
|
-
function Nt(e) {
|
|
727
|
-
F(e === void 0 || vt(e), "Drop result must either be an object or undefined.");
|
|
728
|
-
}
|
|
729
|
-
function Pt(e) {
|
|
730
|
-
let t = e.getTargetIds().filter(e.canDropOnTarget, e);
|
|
731
|
-
return t.reverse(), t;
|
|
732
|
-
}
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js
|
|
735
|
-
function Ft(e) {
|
|
736
|
-
return function() {
|
|
737
|
-
let t = e.getMonitor(), n = e.getRegistry();
|
|
738
|
-
It(t);
|
|
739
|
-
let r = t.getSourceId();
|
|
740
|
-
return r != null && (n.getSource(r, !0).endDrag(t, r), n.unpinSource()), { type: V };
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
function It(e) {
|
|
744
|
-
F(e.isDragging(), "Cannot call endDrag while not dragging.");
|
|
745
|
-
}
|
|
746
|
-
//#endregion
|
|
747
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/matchesType.js
|
|
748
|
-
function H(e, t) {
|
|
749
|
-
return t === null ? e === null : Array.isArray(e) ? e.some((e) => e === t) : e === t;
|
|
750
|
-
}
|
|
751
|
-
//#endregion
|
|
752
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/hover.js
|
|
753
|
-
function Lt(e) {
|
|
754
|
-
return function(t, { clientOffset: n } = {}) {
|
|
755
|
-
Rt(t);
|
|
756
|
-
let r = t.slice(0), i = e.getMonitor(), a = e.getRegistry();
|
|
757
|
-
return Bt(r, a, i.getItemType()), zt(r, i, a), Vt(r, i, a), {
|
|
758
|
-
type: z,
|
|
759
|
-
payload: {
|
|
760
|
-
targetIds: r,
|
|
761
|
-
clientOffset: n || null
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
};
|
|
765
|
-
}
|
|
766
|
-
function Rt(e) {
|
|
767
|
-
F(Array.isArray(e), "Expected targetIds to be an array.");
|
|
768
|
-
}
|
|
769
|
-
function zt(e, t, n) {
|
|
770
|
-
F(t.isDragging(), "Cannot call hover while not dragging."), F(!t.didDrop(), "Cannot call hover after drop.");
|
|
771
|
-
for (let t = 0; t < e.length; t++) {
|
|
772
|
-
let r = e[t];
|
|
773
|
-
F(e.lastIndexOf(r) === t, "Expected targetIds to be unique in the passed array."), F(n.getTarget(r), "Expected targetIds to be registered.");
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
function Bt(e, t, n) {
|
|
777
|
-
for (let r = e.length - 1; r >= 0; r--) {
|
|
778
|
-
let i = e[r];
|
|
779
|
-
H(t.getTargetType(i), n) || e.splice(r, 1);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
function Vt(e, t, n) {
|
|
783
|
-
e.forEach(function(e) {
|
|
784
|
-
n.getTarget(e).hover(t, e);
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
//#endregion
|
|
788
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js
|
|
789
|
-
function Ht(e) {
|
|
790
|
-
return function() {
|
|
791
|
-
if (e.getMonitor().isDragging()) return { type: R };
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
//#endregion
|
|
795
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/index.js
|
|
796
|
-
function Ut(e) {
|
|
797
|
-
return {
|
|
798
|
-
beginDrag: Ct(e),
|
|
799
|
-
publishDragSource: Ht(e),
|
|
800
|
-
hover: Lt(e),
|
|
801
|
-
drop: At(e),
|
|
802
|
-
endDrag: Ft(e)
|
|
803
|
-
};
|
|
804
|
-
}
|
|
805
|
-
//#endregion
|
|
806
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js
|
|
807
|
-
var Wt = class {
|
|
808
|
-
receiveBackend(e) {
|
|
809
|
-
this.backend = e;
|
|
810
|
-
}
|
|
811
|
-
getMonitor() {
|
|
812
|
-
return this.monitor;
|
|
813
|
-
}
|
|
814
|
-
getBackend() {
|
|
815
|
-
return this.backend;
|
|
816
|
-
}
|
|
817
|
-
getRegistry() {
|
|
818
|
-
return this.monitor.registry;
|
|
819
|
-
}
|
|
820
|
-
getActions() {
|
|
821
|
-
let e = this, { dispatch: t } = this.store;
|
|
822
|
-
function n(n) {
|
|
823
|
-
return (...r) => {
|
|
824
|
-
let i = n.apply(e, r);
|
|
825
|
-
i !== void 0 && t(i);
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
let r = Ut(this);
|
|
829
|
-
return Object.keys(r).reduce((e, t) => {
|
|
830
|
-
let i = r[t];
|
|
831
|
-
return e[t] = n(i), e;
|
|
832
|
-
}, {});
|
|
833
|
-
}
|
|
834
|
-
dispatch(e) {
|
|
835
|
-
this.store.dispatch(e);
|
|
836
|
-
}
|
|
837
|
-
constructor(e, t) {
|
|
838
|
-
this.isSetUp = !1, this.handleRefCountChange = () => {
|
|
839
|
-
let e = this.store.getState().refCount > 0;
|
|
840
|
-
this.backend && (e && !this.isSetUp ? (this.backend.setup(), this.isSetUp = !0) : !e && this.isSetUp && (this.backend.teardown(), this.isSetUp = !1));
|
|
841
|
-
}, this.store = e, this.monitor = t, e.subscribe(this.handleRefCountChange);
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
//#endregion
|
|
845
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/coords.js
|
|
846
|
-
function Gt(e, t) {
|
|
847
|
-
return {
|
|
848
|
-
x: e.x + t.x,
|
|
849
|
-
y: e.y + t.y
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
function Kt(e, t) {
|
|
853
|
-
return {
|
|
854
|
-
x: e.x - t.x,
|
|
855
|
-
y: e.y - t.y
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
function qt(e) {
|
|
859
|
-
let { clientOffset: t, initialClientOffset: n, initialSourceClientOffset: r } = e;
|
|
860
|
-
return !t || !n || !r ? null : Kt(Gt(t, r), n);
|
|
861
|
-
}
|
|
862
|
-
function Jt(e) {
|
|
863
|
-
let { clientOffset: t, initialClientOffset: n } = e;
|
|
864
|
-
return !t || !n ? null : Kt(t, n);
|
|
865
|
-
}
|
|
866
|
-
//#endregion
|
|
867
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/dirtiness.js
|
|
868
|
-
var U = [], W = [];
|
|
869
|
-
U.__IS_NONE__ = !0, W.__IS_ALL__ = !0;
|
|
870
|
-
function Yt(e, t) {
|
|
871
|
-
return e === U ? !1 : e === W || t === void 0 ? !0 : bt(t, e).length > 0;
|
|
872
|
-
}
|
|
873
|
-
//#endregion
|
|
874
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js
|
|
875
|
-
var Xt = class {
|
|
876
|
-
subscribeToStateChange(e, t = {}) {
|
|
877
|
-
let { handlerIds: n } = t;
|
|
878
|
-
F(typeof e == "function", "listener must be a function."), F(n === void 0 || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
|
|
879
|
-
let r = this.store.getState().stateId;
|
|
880
|
-
return this.store.subscribe(() => {
|
|
881
|
-
let t = this.store.getState(), i = t.stateId;
|
|
882
|
-
try {
|
|
883
|
-
i === r || i === r + 1 && !Yt(t.dirtyHandlerIds, n) || e();
|
|
884
|
-
} finally {
|
|
885
|
-
r = i;
|
|
886
|
-
}
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
subscribeToOffsetChange(e) {
|
|
890
|
-
F(typeof e == "function", "listener must be a function.");
|
|
891
|
-
let t = this.store.getState().dragOffset;
|
|
892
|
-
return this.store.subscribe(() => {
|
|
893
|
-
let n = this.store.getState().dragOffset;
|
|
894
|
-
n !== t && (t = n, e());
|
|
895
|
-
});
|
|
896
|
-
}
|
|
897
|
-
canDragSource(e) {
|
|
898
|
-
if (!e) return !1;
|
|
899
|
-
let t = this.registry.getSource(e);
|
|
900
|
-
return F(t, `Expected to find a valid source. sourceId=${e}`), this.isDragging() ? !1 : t.canDrag(this, e);
|
|
901
|
-
}
|
|
902
|
-
canDropOnTarget(e) {
|
|
903
|
-
if (!e) return !1;
|
|
904
|
-
let t = this.registry.getTarget(e);
|
|
905
|
-
return F(t, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop() ? !1 : H(this.registry.getTargetType(e), this.getItemType()) && t.canDrop(this, e);
|
|
906
|
-
}
|
|
907
|
-
isDragging() {
|
|
908
|
-
return !!this.getItemType();
|
|
909
|
-
}
|
|
910
|
-
isDraggingSource(e) {
|
|
911
|
-
if (!e) return !1;
|
|
912
|
-
let t = this.registry.getSource(e, !0);
|
|
913
|
-
return F(t, `Expected to find a valid source. sourceId=${e}`), !this.isDragging() || !this.isSourcePublic() || this.registry.getSourceType(e) !== this.getItemType() ? !1 : t.isDragging(this, e);
|
|
914
|
-
}
|
|
915
|
-
isOverTarget(e, t = { shallow: !1 }) {
|
|
916
|
-
if (!e) return !1;
|
|
917
|
-
let { shallow: n } = t;
|
|
918
|
-
if (!this.isDragging()) return !1;
|
|
919
|
-
let r = this.registry.getTargetType(e), i = this.getItemType();
|
|
920
|
-
if (i && !H(r, i)) return !1;
|
|
921
|
-
let a = this.getTargetIds();
|
|
922
|
-
if (!a.length) return !1;
|
|
923
|
-
let o = a.indexOf(e);
|
|
924
|
-
return n ? o === a.length - 1 : o > -1;
|
|
925
|
-
}
|
|
926
|
-
getItemType() {
|
|
927
|
-
return this.store.getState().dragOperation.itemType;
|
|
928
|
-
}
|
|
929
|
-
getItem() {
|
|
930
|
-
return this.store.getState().dragOperation.item;
|
|
931
|
-
}
|
|
932
|
-
getSourceId() {
|
|
933
|
-
return this.store.getState().dragOperation.sourceId;
|
|
934
|
-
}
|
|
935
|
-
getTargetIds() {
|
|
936
|
-
return this.store.getState().dragOperation.targetIds;
|
|
937
|
-
}
|
|
938
|
-
getDropResult() {
|
|
939
|
-
return this.store.getState().dragOperation.dropResult;
|
|
940
|
-
}
|
|
941
|
-
didDrop() {
|
|
942
|
-
return this.store.getState().dragOperation.didDrop;
|
|
943
|
-
}
|
|
944
|
-
isSourcePublic() {
|
|
945
|
-
return !!this.store.getState().dragOperation.isSourcePublic;
|
|
946
|
-
}
|
|
947
|
-
getInitialClientOffset() {
|
|
948
|
-
return this.store.getState().dragOffset.initialClientOffset;
|
|
949
|
-
}
|
|
950
|
-
getInitialSourceClientOffset() {
|
|
951
|
-
return this.store.getState().dragOffset.initialSourceClientOffset;
|
|
952
|
-
}
|
|
953
|
-
getClientOffset() {
|
|
954
|
-
return this.store.getState().dragOffset.clientOffset;
|
|
955
|
-
}
|
|
956
|
-
getSourceClientOffset() {
|
|
957
|
-
return qt(this.store.getState().dragOffset);
|
|
958
|
-
}
|
|
959
|
-
getDifferenceFromInitialOffset() {
|
|
960
|
-
return Jt(this.store.getState().dragOffset);
|
|
961
|
-
}
|
|
962
|
-
constructor(e, t) {
|
|
963
|
-
this.store = e, this.registry = t;
|
|
964
|
-
}
|
|
965
|
-
}, Zt = typeof global < "u" ? global : self, Qt = Zt.MutationObserver || Zt.WebKitMutationObserver;
|
|
966
|
-
function $t(e) {
|
|
967
|
-
return function() {
|
|
968
|
-
let t = setTimeout(r, 0), n = setInterval(r, 50);
|
|
969
|
-
function r() {
|
|
970
|
-
clearTimeout(t), clearInterval(n), e();
|
|
971
|
-
}
|
|
972
|
-
};
|
|
973
|
-
}
|
|
974
|
-
function en(e) {
|
|
975
|
-
let t = 1, n = new Qt(e), r = document.createTextNode("");
|
|
976
|
-
return n.observe(r, { characterData: !0 }), function() {
|
|
977
|
-
t = -t, r.data = t;
|
|
978
|
-
};
|
|
979
|
-
}
|
|
980
|
-
var tn = typeof Qt == "function" ? en : $t, nn = class {
|
|
981
|
-
enqueueTask(e) {
|
|
982
|
-
let { queue: t, requestFlush: n } = this;
|
|
983
|
-
t.length || (n(), this.flushing = !0), t[t.length] = e;
|
|
984
|
-
}
|
|
985
|
-
constructor() {
|
|
986
|
-
this.queue = [], this.pendingErrors = [], this.flushing = !1, this.index = 0, this.capacity = 1024, this.flush = () => {
|
|
987
|
-
let { queue: e } = this;
|
|
988
|
-
for (; this.index < e.length;) {
|
|
989
|
-
let t = this.index;
|
|
990
|
-
if (this.index++, e[t].call(), this.index > this.capacity) {
|
|
991
|
-
for (let t = 0, n = e.length - this.index; t < n; t++) e[t] = e[t + this.index];
|
|
992
|
-
e.length -= this.index, this.index = 0;
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
e.length = 0, this.index = 0, this.flushing = !1;
|
|
996
|
-
}, this.registerPendingError = (e) => {
|
|
997
|
-
this.pendingErrors.push(e), this.requestErrorThrow();
|
|
998
|
-
}, this.requestFlush = tn(this.flush), this.requestErrorThrow = $t(() => {
|
|
999
|
-
if (this.pendingErrors.length) throw this.pendingErrors.shift();
|
|
1000
|
-
});
|
|
1001
|
-
}
|
|
1002
|
-
}, rn = class {
|
|
1003
|
-
call() {
|
|
1004
|
-
try {
|
|
1005
|
-
this.task && this.task();
|
|
1006
|
-
} catch (e) {
|
|
1007
|
-
this.onError(e);
|
|
1008
|
-
} finally {
|
|
1009
|
-
this.task = null, this.release(this);
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
constructor(e, t) {
|
|
1013
|
-
this.onError = e, this.release = t, this.task = null;
|
|
1014
|
-
}
|
|
1015
|
-
}, an = class {
|
|
1016
|
-
create(e) {
|
|
1017
|
-
let t = this.freeTasks, n = t.length ? t.pop() : new rn(this.onError, (e) => t[t.length] = e);
|
|
1018
|
-
return n.task = e, n;
|
|
1019
|
-
}
|
|
1020
|
-
constructor(e) {
|
|
1021
|
-
this.onError = e, this.freeTasks = [];
|
|
1022
|
-
}
|
|
1023
|
-
}, on = new nn(), sn = new an(on.registerPendingError);
|
|
1024
|
-
function cn(e) {
|
|
1025
|
-
on.enqueueTask(sn.create(e));
|
|
1026
|
-
}
|
|
1027
|
-
//#endregion
|
|
1028
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/registry.js
|
|
1029
|
-
var G = "dnd-core/ADD_SOURCE", K = "dnd-core/ADD_TARGET", q = "dnd-core/REMOVE_SOURCE", J = "dnd-core/REMOVE_TARGET";
|
|
1030
|
-
function ln(e) {
|
|
1031
|
-
return {
|
|
1032
|
-
type: G,
|
|
1033
|
-
payload: { sourceId: e }
|
|
1034
|
-
};
|
|
1035
|
-
}
|
|
1036
|
-
function un(e) {
|
|
1037
|
-
return {
|
|
1038
|
-
type: K,
|
|
1039
|
-
payload: { targetId: e }
|
|
1040
|
-
};
|
|
1041
|
-
}
|
|
1042
|
-
function dn(e) {
|
|
1043
|
-
return {
|
|
1044
|
-
type: q,
|
|
1045
|
-
payload: { sourceId: e }
|
|
1046
|
-
};
|
|
1047
|
-
}
|
|
1048
|
-
function fn(e) {
|
|
1049
|
-
return {
|
|
1050
|
-
type: J,
|
|
1051
|
-
payload: { targetId: e }
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
//#endregion
|
|
1055
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/contracts.js
|
|
1056
|
-
function pn(e) {
|
|
1057
|
-
F(typeof e.canDrag == "function", "Expected canDrag to be a function."), F(typeof e.beginDrag == "function", "Expected beginDrag to be a function."), F(typeof e.endDrag == "function", "Expected endDrag to be a function.");
|
|
1058
|
-
}
|
|
1059
|
-
function mn(e) {
|
|
1060
|
-
F(typeof e.canDrop == "function", "Expected canDrop to be a function."), F(typeof e.hover == "function", "Expected hover to be a function."), F(typeof e.drop == "function", "Expected beginDrag to be a function.");
|
|
1061
|
-
}
|
|
1062
|
-
function hn(e, t) {
|
|
1063
|
-
if (t && Array.isArray(e)) {
|
|
1064
|
-
e.forEach((e) => hn(e, !1));
|
|
1065
|
-
return;
|
|
1066
|
-
}
|
|
1067
|
-
F(typeof e == "string" || typeof e == "symbol", t ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
|
|
1068
|
-
}
|
|
1069
|
-
//#endregion
|
|
1070
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/interfaces.js
|
|
1071
|
-
var Y;
|
|
1072
|
-
(function(e) {
|
|
1073
|
-
e.SOURCE = "SOURCE", e.TARGET = "TARGET";
|
|
1074
|
-
})(Y ||= {});
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/getNextUniqueId.js
|
|
1077
|
-
var gn = 0;
|
|
1078
|
-
function _n() {
|
|
1079
|
-
return gn++;
|
|
1080
|
-
}
|
|
1081
|
-
//#endregion
|
|
1082
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js
|
|
1083
|
-
function vn(e) {
|
|
1084
|
-
let t = _n().toString();
|
|
1085
|
-
switch (e) {
|
|
1086
|
-
case Y.SOURCE: return `S${t}`;
|
|
1087
|
-
case Y.TARGET: return `T${t}`;
|
|
1088
|
-
default: throw Error(`Unknown Handler Role: ${e}`);
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
function yn(e) {
|
|
1092
|
-
switch (e[0]) {
|
|
1093
|
-
case "S": return Y.SOURCE;
|
|
1094
|
-
case "T": return Y.TARGET;
|
|
1095
|
-
default: throw Error(`Cannot parse handler ID: ${e}`);
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
function bn(e, t) {
|
|
1099
|
-
let n = e.entries(), r = !1;
|
|
1100
|
-
do {
|
|
1101
|
-
let { done: e, value: [, i] } = n.next();
|
|
1102
|
-
if (i === t) return !0;
|
|
1103
|
-
r = !!e;
|
|
1104
|
-
} while (!r);
|
|
1105
|
-
return !1;
|
|
1106
|
-
}
|
|
1107
|
-
var xn = class {
|
|
1108
|
-
addSource(e, t) {
|
|
1109
|
-
hn(e), pn(t);
|
|
1110
|
-
let n = this.addHandler(Y.SOURCE, e, t);
|
|
1111
|
-
return this.store.dispatch(ln(n)), n;
|
|
1112
|
-
}
|
|
1113
|
-
addTarget(e, t) {
|
|
1114
|
-
hn(e, !0), mn(t);
|
|
1115
|
-
let n = this.addHandler(Y.TARGET, e, t);
|
|
1116
|
-
return this.store.dispatch(un(n)), n;
|
|
1117
|
-
}
|
|
1118
|
-
containsHandler(e) {
|
|
1119
|
-
return bn(this.dragSources, e) || bn(this.dropTargets, e);
|
|
1120
|
-
}
|
|
1121
|
-
getSource(e, t = !1) {
|
|
1122
|
-
return F(this.isSourceId(e), "Expected a valid source ID."), t && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
|
|
1123
|
-
}
|
|
1124
|
-
getTarget(e) {
|
|
1125
|
-
return F(this.isTargetId(e), "Expected a valid target ID."), this.dropTargets.get(e);
|
|
1126
|
-
}
|
|
1127
|
-
getSourceType(e) {
|
|
1128
|
-
return F(this.isSourceId(e), "Expected a valid source ID."), this.types.get(e);
|
|
1129
|
-
}
|
|
1130
|
-
getTargetType(e) {
|
|
1131
|
-
return F(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
|
|
1132
|
-
}
|
|
1133
|
-
isSourceId(e) {
|
|
1134
|
-
return yn(e) === Y.SOURCE;
|
|
1135
|
-
}
|
|
1136
|
-
isTargetId(e) {
|
|
1137
|
-
return yn(e) === Y.TARGET;
|
|
1138
|
-
}
|
|
1139
|
-
removeSource(e) {
|
|
1140
|
-
F(this.getSource(e), "Expected an existing source."), this.store.dispatch(dn(e)), cn(() => {
|
|
1141
|
-
this.dragSources.delete(e), this.types.delete(e);
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
removeTarget(e) {
|
|
1145
|
-
F(this.getTarget(e), "Expected an existing target."), this.store.dispatch(fn(e)), this.dropTargets.delete(e), this.types.delete(e);
|
|
1146
|
-
}
|
|
1147
|
-
pinSource(e) {
|
|
1148
|
-
let t = this.getSource(e);
|
|
1149
|
-
F(t, "Expected an existing source."), this.pinnedSourceId = e, this.pinnedSource = t;
|
|
1150
|
-
}
|
|
1151
|
-
unpinSource() {
|
|
1152
|
-
F(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
|
|
1153
|
-
}
|
|
1154
|
-
addHandler(e, t, n) {
|
|
1155
|
-
let r = vn(e);
|
|
1156
|
-
return this.types.set(r, t), e === Y.SOURCE ? this.dragSources.set(r, n) : e === Y.TARGET && this.dropTargets.set(r, n), r;
|
|
1157
|
-
}
|
|
1158
|
-
constructor(e) {
|
|
1159
|
-
this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
|
|
1160
|
-
}
|
|
1161
|
-
}, Sn = (e, t) => e === t;
|
|
1162
|
-
function Cn(e, t) {
|
|
1163
|
-
return !e && !t ? !0 : !e || !t ? !1 : e.x === t.x && e.y === t.y;
|
|
1164
|
-
}
|
|
1165
|
-
function wn(e, t, n = Sn) {
|
|
1166
|
-
if (e.length !== t.length) return !1;
|
|
1167
|
-
for (let r = 0; r < e.length; ++r) if (!n(e[r], t[r])) return !1;
|
|
1168
|
-
return !0;
|
|
1169
|
-
}
|
|
1170
|
-
//#endregion
|
|
1171
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js
|
|
1172
|
-
function Tn(e = U, t) {
|
|
1173
|
-
switch (t.type) {
|
|
1174
|
-
case z: break;
|
|
1175
|
-
case G:
|
|
1176
|
-
case K:
|
|
1177
|
-
case J:
|
|
1178
|
-
case q: return U;
|
|
1179
|
-
case L:
|
|
1180
|
-
case R:
|
|
1181
|
-
case V:
|
|
1182
|
-
case B:
|
|
1183
|
-
default: return W;
|
|
1184
|
-
}
|
|
1185
|
-
let { targetIds: n = [], prevTargetIds: r = [] } = t.payload, i = yt(n, r);
|
|
1186
|
-
if (!(i.length > 0 || !wn(n, r))) return U;
|
|
1187
|
-
let a = r[r.length - 1], o = n[n.length - 1];
|
|
1188
|
-
return a !== o && (a && i.push(a), o && i.push(o)), i;
|
|
1189
|
-
}
|
|
1190
|
-
//#endregion
|
|
1191
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dragOffset.js
|
|
1192
|
-
function En(e, t, n) {
|
|
1193
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
1194
|
-
value: n,
|
|
1195
|
-
enumerable: !0,
|
|
1196
|
-
configurable: !0,
|
|
1197
|
-
writable: !0
|
|
1198
|
-
}) : e[t] = n, e;
|
|
1199
|
-
}
|
|
1200
|
-
function Dn(e) {
|
|
1201
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1202
|
-
var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
|
|
1203
|
-
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
1204
|
-
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
1205
|
-
}))), r.forEach(function(t) {
|
|
1206
|
-
En(e, t, n[t]);
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
return e;
|
|
1210
|
-
}
|
|
1211
|
-
var On = {
|
|
1212
|
-
initialSourceClientOffset: null,
|
|
1213
|
-
initialClientOffset: null,
|
|
1214
|
-
clientOffset: null
|
|
1215
|
-
};
|
|
1216
|
-
function kn(e = On, t) {
|
|
1217
|
-
let { payload: n } = t;
|
|
1218
|
-
switch (t.type) {
|
|
1219
|
-
case I:
|
|
1220
|
-
case L: return {
|
|
1221
|
-
initialSourceClientOffset: n.sourceClientOffset,
|
|
1222
|
-
initialClientOffset: n.clientOffset,
|
|
1223
|
-
clientOffset: n.clientOffset
|
|
1224
|
-
};
|
|
1225
|
-
case z: return Cn(e.clientOffset, n.clientOffset) ? e : Dn({}, e, { clientOffset: n.clientOffset });
|
|
1226
|
-
case V:
|
|
1227
|
-
case B: return On;
|
|
1228
|
-
default: return e;
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
//#endregion
|
|
1232
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dragOperation.js
|
|
1233
|
-
function An(e, t, n) {
|
|
1234
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
1235
|
-
value: n,
|
|
1236
|
-
enumerable: !0,
|
|
1237
|
-
configurable: !0,
|
|
1238
|
-
writable: !0
|
|
1239
|
-
}) : e[t] = n, e;
|
|
1240
|
-
}
|
|
1241
|
-
function X(e) {
|
|
1242
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1243
|
-
var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
|
|
1244
|
-
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
1245
|
-
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
1246
|
-
}))), r.forEach(function(t) {
|
|
1247
|
-
An(e, t, n[t]);
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
return e;
|
|
1251
|
-
}
|
|
1252
|
-
var jn = {
|
|
1253
|
-
itemType: null,
|
|
1254
|
-
item: null,
|
|
1255
|
-
sourceId: null,
|
|
1256
|
-
targetIds: [],
|
|
1257
|
-
dropResult: null,
|
|
1258
|
-
didDrop: !1,
|
|
1259
|
-
isSourcePublic: null
|
|
1260
|
-
};
|
|
1261
|
-
function Mn(e = jn, t) {
|
|
1262
|
-
let { payload: n } = t;
|
|
1263
|
-
switch (t.type) {
|
|
1264
|
-
case L: return X({}, e, {
|
|
1265
|
-
itemType: n.itemType,
|
|
1266
|
-
item: n.item,
|
|
1267
|
-
sourceId: n.sourceId,
|
|
1268
|
-
isSourcePublic: n.isSourcePublic,
|
|
1269
|
-
dropResult: null,
|
|
1270
|
-
didDrop: !1
|
|
1271
|
-
});
|
|
1272
|
-
case R: return X({}, e, { isSourcePublic: !0 });
|
|
1273
|
-
case z: return X({}, e, { targetIds: n.targetIds });
|
|
1274
|
-
case J: return e.targetIds.indexOf(n.targetId) === -1 ? e : X({}, e, { targetIds: _t(e.targetIds, n.targetId) });
|
|
1275
|
-
case B: return X({}, e, {
|
|
1276
|
-
dropResult: n.dropResult,
|
|
1277
|
-
didDrop: !0,
|
|
1278
|
-
targetIds: []
|
|
1279
|
-
});
|
|
1280
|
-
case V: return X({}, e, {
|
|
1281
|
-
itemType: null,
|
|
1282
|
-
item: null,
|
|
1283
|
-
sourceId: null,
|
|
1284
|
-
dropResult: null,
|
|
1285
|
-
didDrop: !1,
|
|
1286
|
-
isSourcePublic: null,
|
|
1287
|
-
targetIds: []
|
|
1288
|
-
});
|
|
1289
|
-
default: return e;
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
//#endregion
|
|
1293
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/refCount.js
|
|
1294
|
-
function Nn(e = 0, t) {
|
|
1295
|
-
switch (t.type) {
|
|
1296
|
-
case G:
|
|
1297
|
-
case K: return e + 1;
|
|
1298
|
-
case q:
|
|
1299
|
-
case J: return e - 1;
|
|
1300
|
-
default: return e;
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
//#endregion
|
|
1304
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/stateId.js
|
|
1305
|
-
function Pn(e = 0) {
|
|
1306
|
-
return e + 1;
|
|
1307
|
-
}
|
|
1308
|
-
//#endregion
|
|
1309
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/index.js
|
|
1310
|
-
function Fn(e, t, n) {
|
|
1311
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
1312
|
-
value: n,
|
|
1313
|
-
enumerable: !0,
|
|
1314
|
-
configurable: !0,
|
|
1315
|
-
writable: !0
|
|
1316
|
-
}) : e[t] = n, e;
|
|
1317
|
-
}
|
|
1318
|
-
function In(e) {
|
|
1319
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1320
|
-
var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
|
|
1321
|
-
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
1322
|
-
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
1323
|
-
}))), r.forEach(function(t) {
|
|
1324
|
-
Fn(e, t, n[t]);
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
return e;
|
|
1328
|
-
}
|
|
1329
|
-
function Ln(e = {}, t) {
|
|
1330
|
-
return {
|
|
1331
|
-
dirtyHandlerIds: Tn(e.dirtyHandlerIds, {
|
|
1332
|
-
type: t.type,
|
|
1333
|
-
payload: In({}, t.payload, { prevTargetIds: gt(e, "dragOperation.targetIds", []) })
|
|
1334
|
-
}),
|
|
1335
|
-
dragOffset: kn(e.dragOffset, t),
|
|
1336
|
-
refCount: Nn(e.refCount, t),
|
|
1337
|
-
dragOperation: Mn(e.dragOperation, t),
|
|
1338
|
-
stateId: Pn(e.stateId)
|
|
1339
|
-
};
|
|
1340
|
-
}
|
|
1341
|
-
//#endregion
|
|
1342
|
-
//#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/createDragDropManager.js
|
|
1343
|
-
function Rn(e, t = void 0, n = {}, r = !1) {
|
|
1344
|
-
let i = zn(r), a = new Wt(i, new Xt(i, new xn(i))), o = e(a, t, n);
|
|
1345
|
-
return a.receiveBackend(o), a;
|
|
1346
|
-
}
|
|
1347
|
-
function zn(e) {
|
|
1348
|
-
let t = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
1349
|
-
return mt(Ln, e && t && t({
|
|
1350
|
-
name: "dnd-core",
|
|
1351
|
-
instanceId: "dnd-core"
|
|
1352
|
-
}));
|
|
1353
|
-
}
|
|
1354
|
-
//#endregion
|
|
1355
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/core/DndProvider.js
|
|
1356
|
-
function Bn(e, t) {
|
|
1357
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1358
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1359
|
-
return r;
|
|
1360
|
-
}
|
|
1361
|
-
function Vn(e) {
|
|
1362
|
-
if (Array.isArray(e)) return e;
|
|
1363
|
-
}
|
|
1364
|
-
function Hn(e, t) {
|
|
1365
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1366
|
-
if (n != null) {
|
|
1367
|
-
var r = [], i = !0, a = !1, o, s;
|
|
1368
|
-
try {
|
|
1369
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
1370
|
-
} catch (e) {
|
|
1371
|
-
a = !0, s = e;
|
|
1372
|
-
} finally {
|
|
1373
|
-
try {
|
|
1374
|
-
!i && n.return != null && n.return();
|
|
1375
|
-
} finally {
|
|
1376
|
-
if (a) throw s;
|
|
1377
|
-
}
|
|
1378
|
-
}
|
|
1379
|
-
return r;
|
|
1380
|
-
}
|
|
1381
|
-
}
|
|
1382
|
-
function Un() {
|
|
1383
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1384
|
-
}
|
|
1385
|
-
function Wn(e, t) {
|
|
1386
|
-
return Vn(e) || Hn(e, t) || Gn(e, t) || Un();
|
|
1387
|
-
}
|
|
1388
|
-
function Gn(e, t) {
|
|
1389
|
-
if (e) {
|
|
1390
|
-
if (typeof e == "string") return Bn(e, t);
|
|
1391
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1392
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
1393
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Bn(e, t);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
var Kn = 0, Z = Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");
|
|
1397
|
-
function qn(e) {
|
|
1398
|
-
return "manager" in e && e.manager;
|
|
1399
|
-
}
|
|
1400
|
-
function Jn(e) {
|
|
1401
|
-
return qn(e) ? [e.manager, !1] : [Yn(e.backend, e.context, e.options, e.debugMode), !e.context];
|
|
1402
|
-
}
|
|
1403
|
-
function Yn(e) {
|
|
1404
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Xn(), n = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, i = t;
|
|
1405
|
-
return i[Z] || (i[Z] = Rn(e, t, n, r)), i[Z];
|
|
1406
|
-
}
|
|
1407
|
-
function Xn() {
|
|
1408
|
-
return typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : window;
|
|
1409
|
-
}
|
|
1410
|
-
var Zn = (0, j.defineComponent)({
|
|
1411
|
-
name: "DndProvider",
|
|
1412
|
-
props: {
|
|
1413
|
-
manager: { type: Object },
|
|
1414
|
-
backend: { type: Function },
|
|
1415
|
-
context: { type: Object },
|
|
1416
|
-
options: { type: Object },
|
|
1417
|
-
debugMode: { type: Boolean }
|
|
1418
|
-
},
|
|
1419
|
-
setup: function(e, t) {
|
|
1420
|
-
var n = t.slots, r = Wn(Jn(e), 2), i = r[0], a = r[1];
|
|
1421
|
-
return a && ++Kn, (0, j.onUnmounted)(function() {
|
|
1422
|
-
if (a) {
|
|
1423
|
-
var e = Xn();
|
|
1424
|
-
--Kn === 0 && (e[Z] = null);
|
|
1425
|
-
}
|
|
1426
|
-
}), lt(i), function() {
|
|
1427
|
-
return n.default?.call(n) ?? null;
|
|
1428
|
-
};
|
|
1429
|
-
}
|
|
1430
|
-
});
|
|
1431
|
-
(0, j.defineComponent)({
|
|
1432
|
-
props: {
|
|
1433
|
-
connect: {
|
|
1434
|
-
type: Function,
|
|
1435
|
-
required: !0
|
|
1436
|
-
},
|
|
1437
|
-
src: {
|
|
1438
|
-
type: String,
|
|
1439
|
-
required: !0
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
setup: function(e) {
|
|
1443
|
-
return (0, j.watchEffect)(function() {
|
|
1444
|
-
if (!(typeof Image > "u")) {
|
|
1445
|
-
var t = !1, n = new Image();
|
|
1446
|
-
return n.src = e.src, n.onload = function() {
|
|
1447
|
-
e.connect(n), t = !0;
|
|
1448
|
-
}, function() {
|
|
1449
|
-
t && e.connect(null);
|
|
1450
|
-
};
|
|
1451
|
-
}
|
|
1452
|
-
}), function() {
|
|
1453
|
-
return null;
|
|
1454
|
-
};
|
|
1455
|
-
}
|
|
1456
|
-
});
|
|
1457
|
-
//#endregion
|
|
1458
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/DragSourceMonitorImpl.js
|
|
1459
|
-
function Qn(e, t) {
|
|
1460
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1461
|
-
}
|
|
1462
|
-
var $n = !1, er = !1, tr = /* @__PURE__ */ function() {
|
|
1463
|
-
function e(t) {
|
|
1464
|
-
Qn(this, e), this.sourceId = null, this.internalMonitor = t.getMonitor();
|
|
1465
|
-
}
|
|
1466
|
-
var t = e.prototype;
|
|
1467
|
-
return t.receiveHandlerId = function(e) {
|
|
1468
|
-
this.sourceId = e;
|
|
1469
|
-
}, t.getHandlerId = function() {
|
|
1470
|
-
return this.sourceId;
|
|
1471
|
-
}, t.canDrag = function() {
|
|
1472
|
-
F(!$n, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
1473
|
-
try {
|
|
1474
|
-
return $n = !0, this.internalMonitor.canDragSource(this.sourceId);
|
|
1475
|
-
} finally {
|
|
1476
|
-
$n = !1;
|
|
1477
|
-
}
|
|
1478
|
-
}, t.isDragging = function() {
|
|
1479
|
-
if (!this.sourceId) return !1;
|
|
1480
|
-
F(!er, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
|
|
1481
|
-
try {
|
|
1482
|
-
return er = !0, this.internalMonitor.isDraggingSource(this.sourceId);
|
|
1483
|
-
} finally {
|
|
1484
|
-
er = !1;
|
|
1485
|
-
}
|
|
1486
|
-
}, t.subscribeToStateChange = function(e, t) {
|
|
1487
|
-
return this.internalMonitor.subscribeToStateChange(e, t);
|
|
1488
|
-
}, t.isDraggingSource = function(e) {
|
|
1489
|
-
return this.internalMonitor.isDraggingSource(e);
|
|
1490
|
-
}, t.isOverTarget = function(e, t) {
|
|
1491
|
-
return this.internalMonitor.isOverTarget(e, t);
|
|
1492
|
-
}, t.getTargetIds = function() {
|
|
1493
|
-
return this.internalMonitor.getTargetIds();
|
|
1494
|
-
}, t.isSourcePublic = function() {
|
|
1495
|
-
return this.internalMonitor.isSourcePublic();
|
|
1496
|
-
}, t.getSourceId = function() {
|
|
1497
|
-
return this.internalMonitor.getSourceId();
|
|
1498
|
-
}, t.subscribeToOffsetChange = function(e) {
|
|
1499
|
-
return this.internalMonitor.subscribeToOffsetChange(e);
|
|
1500
|
-
}, t.canDragSource = function(e) {
|
|
1501
|
-
return this.internalMonitor.canDragSource(e);
|
|
1502
|
-
}, t.canDropOnTarget = function(e) {
|
|
1503
|
-
return this.internalMonitor.canDropOnTarget(e);
|
|
1504
|
-
}, t.getItemType = function() {
|
|
1505
|
-
return this.internalMonitor.getItemType();
|
|
1506
|
-
}, t.getItem = function() {
|
|
1507
|
-
return this.internalMonitor.getItem();
|
|
1508
|
-
}, t.getDropResult = function() {
|
|
1509
|
-
return this.internalMonitor.getDropResult();
|
|
1510
|
-
}, t.didDrop = function() {
|
|
1511
|
-
return this.internalMonitor.didDrop();
|
|
1512
|
-
}, t.getInitialClientOffset = function() {
|
|
1513
|
-
return this.internalMonitor.getInitialClientOffset();
|
|
1514
|
-
}, t.getInitialSourceClientOffset = function() {
|
|
1515
|
-
return this.internalMonitor.getInitialSourceClientOffset();
|
|
1516
|
-
}, t.getSourceClientOffset = function() {
|
|
1517
|
-
return this.internalMonitor.getSourceClientOffset();
|
|
1518
|
-
}, t.getClientOffset = function() {
|
|
1519
|
-
return this.internalMonitor.getClientOffset();
|
|
1520
|
-
}, t.getDifferenceFromInitialOffset = function() {
|
|
1521
|
-
return this.internalMonitor.getDifferenceFromInitialOffset();
|
|
1522
|
-
}, e;
|
|
1523
|
-
}();
|
|
1524
|
-
//#endregion
|
|
1525
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/DropTargetMonitorImpl.js
|
|
1526
|
-
function nr(e, t) {
|
|
1527
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1528
|
-
}
|
|
1529
|
-
var rr = !1, ir = /* @__PURE__ */ function() {
|
|
1530
|
-
function e(t) {
|
|
1531
|
-
nr(this, e), this.targetId = null, this.internalMonitor = t.getMonitor();
|
|
1532
|
-
}
|
|
1533
|
-
var t = e.prototype;
|
|
1534
|
-
return t.receiveHandlerId = function(e) {
|
|
1535
|
-
this.targetId = e;
|
|
1536
|
-
}, t.getHandlerId = function() {
|
|
1537
|
-
return this.targetId;
|
|
1538
|
-
}, t.subscribeToStateChange = function(e, t) {
|
|
1539
|
-
return this.internalMonitor.subscribeToStateChange(e, t);
|
|
1540
|
-
}, t.canDrop = function() {
|
|
1541
|
-
if (!this.targetId) return !1;
|
|
1542
|
-
F(!rr, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
|
|
1543
|
-
try {
|
|
1544
|
-
return rr = !0, this.internalMonitor.canDropOnTarget(this.targetId);
|
|
1545
|
-
} finally {
|
|
1546
|
-
rr = !1;
|
|
1547
|
-
}
|
|
1548
|
-
}, t.isOver = function(e) {
|
|
1549
|
-
return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, e) : !1;
|
|
1550
|
-
}, t.getItemType = function() {
|
|
1551
|
-
return this.internalMonitor.getItemType();
|
|
1552
|
-
}, t.getItem = function() {
|
|
1553
|
-
return this.internalMonitor.getItem();
|
|
1554
|
-
}, t.getDropResult = function() {
|
|
1555
|
-
return this.internalMonitor.getDropResult();
|
|
1556
|
-
}, t.didDrop = function() {
|
|
1557
|
-
return this.internalMonitor.didDrop();
|
|
1558
|
-
}, t.getInitialClientOffset = function() {
|
|
1559
|
-
return this.internalMonitor.getInitialClientOffset();
|
|
1560
|
-
}, t.getInitialSourceClientOffset = function() {
|
|
1561
|
-
return this.internalMonitor.getInitialSourceClientOffset();
|
|
1562
|
-
}, t.getSourceClientOffset = function() {
|
|
1563
|
-
return this.internalMonitor.getSourceClientOffset();
|
|
1564
|
-
}, t.getClientOffset = function() {
|
|
1565
|
-
return this.internalMonitor.getClientOffset();
|
|
1566
|
-
}, t.getDifferenceFromInitialOffset = function() {
|
|
1567
|
-
return this.internalMonitor.getDifferenceFromInitialOffset();
|
|
1568
|
-
}, e;
|
|
1569
|
-
}(), ar = function(e) {
|
|
1570
|
-
"@swc/helpers - typeof";
|
|
1571
|
-
return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
|
|
1572
|
-
};
|
|
1573
|
-
function or(e) {
|
|
1574
|
-
return e ? e.__v_isVNode === !0 : !1;
|
|
1575
|
-
}
|
|
1576
|
-
function sr(e) {
|
|
1577
|
-
return e ? e.__v_skip : !1;
|
|
1578
|
-
}
|
|
1579
|
-
function cr(e) {
|
|
1580
|
-
return or(e) && ar(e.type) !== "symbol";
|
|
1581
|
-
}
|
|
1582
|
-
//#endregion
|
|
1583
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/wrapConnectorHooks.js
|
|
1584
|
-
function lr() {
|
|
1585
|
-
throw Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.");
|
|
1586
|
-
}
|
|
1587
|
-
function ur(e) {
|
|
1588
|
-
return function() {
|
|
1589
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
1590
|
-
if (sr(t) && lr(), !cr(t)) {
|
|
1591
|
-
var r = t;
|
|
1592
|
-
return e(r, n), r;
|
|
1593
|
-
}
|
|
1594
|
-
};
|
|
1595
|
-
}
|
|
1596
|
-
function dr(e) {
|
|
1597
|
-
var t = {};
|
|
1598
|
-
return Object.keys(e).forEach(function(n) {
|
|
1599
|
-
var r = e[n];
|
|
1600
|
-
if (n.endsWith("Ref")) t[n] = e[n];
|
|
1601
|
-
else {
|
|
1602
|
-
var i = ur(r);
|
|
1603
|
-
t[n] = function() {
|
|
1604
|
-
return i;
|
|
1605
|
-
};
|
|
1606
|
-
}
|
|
1607
|
-
}), t;
|
|
1608
|
-
}
|
|
1609
|
-
//#endregion
|
|
1610
|
-
//#region ../../node_modules/.pnpm/@react-dnd+shallowequal@4.0.2/node_modules/@react-dnd/shallowequal/dist/index.js
|
|
1611
|
-
function fr(e, t, n, r) {
|
|
1612
|
-
let i = n ? n.call(r, e, t) : void 0;
|
|
1613
|
-
if (i !== void 0) return !!i;
|
|
1614
|
-
if (e === t) return !0;
|
|
1615
|
-
if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
|
|
1616
|
-
let a = Object.keys(e), o = Object.keys(t);
|
|
1617
|
-
if (a.length !== o.length) return !1;
|
|
1618
|
-
let s = Object.prototype.hasOwnProperty.bind(t);
|
|
1619
|
-
for (let o = 0; o < a.length; o++) {
|
|
1620
|
-
let c = a[o];
|
|
1621
|
-
if (!s(c)) return !1;
|
|
1622
|
-
let l = e[c], u = t[c];
|
|
1623
|
-
if (i = n ? n.call(r, l, u, c) : void 0, i === !1 || i === void 0 && l !== u) return !1;
|
|
1624
|
-
}
|
|
1625
|
-
return !0;
|
|
1626
|
-
}
|
|
1627
|
-
//#endregion
|
|
1628
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/SourceConnector.js
|
|
1629
|
-
function pr(e, t) {
|
|
1630
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1631
|
-
}
|
|
1632
|
-
function mr(e, t) {
|
|
1633
|
-
for (var n = 0; n < t.length; n++) {
|
|
1634
|
-
var r = t[n];
|
|
1635
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
function hr(e, t, n) {
|
|
1639
|
-
return t && mr(e.prototype, t), n && mr(e, n), e;
|
|
1640
|
-
}
|
|
1641
|
-
var gr = /* @__PURE__ */ function() {
|
|
1642
|
-
function e(t) {
|
|
1643
|
-
var n = this;
|
|
1644
|
-
pr(this, e), this.hooks = dr({
|
|
1645
|
-
dragSource: function(e, t) {
|
|
1646
|
-
n.clearDragSource(), n.dragSourceOptions = t || null, n.dragSourceNode = e, n.reconnectDragSource();
|
|
1647
|
-
},
|
|
1648
|
-
dragPreview: function(e, t) {
|
|
1649
|
-
n.clearDragPreview(), n.dragPreviewOptions = t || null, n.dragPreviewNode = e, n.reconnectDragPreview();
|
|
1650
|
-
}
|
|
1651
|
-
}), this.handlerId = null, this.dragSourceOptionsInternal = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = t;
|
|
1652
|
-
}
|
|
1653
|
-
var t = e.prototype;
|
|
1654
|
-
return t.receiveHandlerId = function(e) {
|
|
1655
|
-
this.handlerId !== e && (this.handlerId = e, this.reconnect());
|
|
1656
|
-
}, t.reconnect = function() {
|
|
1657
|
-
var e = this.reconnectDragSource();
|
|
1658
|
-
this.reconnectDragPreview(e);
|
|
1659
|
-
}, t.reconnectDragSource = function() {
|
|
1660
|
-
var e = this.dragSource, t = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
|
|
1661
|
-
return t && this.disconnectDragSource(), this.handlerId ? e ? (t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = e, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, e, this.dragSourceOptions)), t) : (this.lastConnectedDragSource = e, t) : t;
|
|
1662
|
-
}, t.reconnectDragPreview = function() {
|
|
1663
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = this.dragPreview, n = e || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
|
|
1664
|
-
if (n && this.disconnectDragPreview(), this.handlerId) {
|
|
1665
|
-
if (!t) {
|
|
1666
|
-
this.lastConnectedDragPreview = t;
|
|
1667
|
-
return;
|
|
1668
|
-
}
|
|
1669
|
-
n && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = t, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, t, this.dragPreviewOptions));
|
|
1670
|
-
}
|
|
1671
|
-
}, t.didHandlerIdChange = function() {
|
|
1672
|
-
return this.lastConnectedHandlerId !== this.handlerId;
|
|
1673
|
-
}, t.didConnectedDragSourceChange = function() {
|
|
1674
|
-
return this.lastConnectedDragSource !== this.dragSource;
|
|
1675
|
-
}, t.didConnectedDragPreviewChange = function() {
|
|
1676
|
-
return this.lastConnectedDragPreview !== this.dragPreview;
|
|
1677
|
-
}, t.didDragSourceOptionsChange = function() {
|
|
1678
|
-
return !fr(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
|
|
1679
|
-
}, t.didDragPreviewOptionsChange = function() {
|
|
1680
|
-
return !fr(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
|
|
1681
|
-
}, t.disconnectDragSource = function() {
|
|
1682
|
-
this.dragSourceUnsubscribe &&= (this.dragSourceUnsubscribe(), void 0);
|
|
1683
|
-
}, t.disconnectDragPreview = function() {
|
|
1684
|
-
this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null);
|
|
1685
|
-
}, t.clearDragSource = function() {
|
|
1686
|
-
this.dragSourceNode = null;
|
|
1687
|
-
}, t.clearDragPreview = function() {
|
|
1688
|
-
this.dragPreviewNode = null;
|
|
1689
|
-
}, hr(e, [
|
|
1690
|
-
{
|
|
1691
|
-
key: "connectTarget",
|
|
1692
|
-
get: function() {
|
|
1693
|
-
return this.dragSource;
|
|
1694
|
-
}
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
key: "dragSourceOptions",
|
|
1698
|
-
get: function() {
|
|
1699
|
-
return this.dragSourceOptionsInternal;
|
|
1700
|
-
},
|
|
1701
|
-
set: function(e) {
|
|
1702
|
-
this.dragSourceOptionsInternal = e;
|
|
1703
|
-
}
|
|
1704
|
-
},
|
|
1705
|
-
{
|
|
1706
|
-
key: "dragPreviewOptions",
|
|
1707
|
-
get: function() {
|
|
1708
|
-
return this.dragPreviewOptionsInternal;
|
|
1709
|
-
},
|
|
1710
|
-
set: function(e) {
|
|
1711
|
-
this.dragPreviewOptionsInternal = e;
|
|
1712
|
-
}
|
|
1713
|
-
},
|
|
1714
|
-
{
|
|
1715
|
-
key: "dragSource",
|
|
1716
|
-
get: function() {
|
|
1717
|
-
return this.dragSourceNode;
|
|
1718
|
-
}
|
|
1719
|
-
},
|
|
1720
|
-
{
|
|
1721
|
-
key: "dragPreview",
|
|
1722
|
-
get: function() {
|
|
1723
|
-
return this.dragPreviewNode;
|
|
1724
|
-
}
|
|
1725
|
-
}
|
|
1726
|
-
]), e;
|
|
1727
|
-
}();
|
|
1728
|
-
//#endregion
|
|
1729
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/TargetConnector.js
|
|
1730
|
-
function _r(e, t) {
|
|
1731
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1732
|
-
}
|
|
1733
|
-
function vr(e, t) {
|
|
1734
|
-
for (var n = 0; n < t.length; n++) {
|
|
1735
|
-
var r = t[n];
|
|
1736
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
function yr(e, t, n) {
|
|
1740
|
-
return t && vr(e.prototype, t), n && vr(e, n), e;
|
|
1741
|
-
}
|
|
1742
|
-
var br = /* @__PURE__ */ function() {
|
|
1743
|
-
function e(t) {
|
|
1744
|
-
var n = this;
|
|
1745
|
-
_r(this, e), this.hooks = dr({ dropTarget: function(e, t) {
|
|
1746
|
-
n.clearDropTarget(), n.dropTargetOptions = t, (0, j.isRef)(e) ? n.dropTargetRef = e : n.dropTargetNode = e, n.reconnect();
|
|
1747
|
-
} }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = t;
|
|
1748
|
-
}
|
|
1749
|
-
var t = e.prototype;
|
|
1750
|
-
return t.reconnect = function() {
|
|
1751
|
-
var e = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange();
|
|
1752
|
-
e && this.disconnectDropTarget();
|
|
1753
|
-
var t = this.dropTarget;
|
|
1754
|
-
if (this.handlerId) {
|
|
1755
|
-
if (!t) {
|
|
1756
|
-
this.lastConnectedDropTarget = t;
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
e && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDropTarget = t, this.lastConnectedDropTargetOptions = this.dropTargetOptions, this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, t, this.dropTargetOptions));
|
|
1760
|
-
}
|
|
1761
|
-
}, t.receiveHandlerId = function(e) {
|
|
1762
|
-
e !== this.handlerId && (this.handlerId = e, this.reconnect());
|
|
1763
|
-
}, t.didHandlerIdChange = function() {
|
|
1764
|
-
return this.lastConnectedHandlerId !== this.handlerId;
|
|
1765
|
-
}, t.didDropTargetChange = function() {
|
|
1766
|
-
return this.lastConnectedDropTarget !== this.dropTarget;
|
|
1767
|
-
}, t.didOptionsChange = function() {
|
|
1768
|
-
return !fr(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
|
|
1769
|
-
}, t.disconnectDropTarget = function() {
|
|
1770
|
-
this.unsubscribeDropTarget &&= (this.unsubscribeDropTarget(), void 0);
|
|
1771
|
-
}, t.clearDropTarget = function() {
|
|
1772
|
-
this.dropTargetRef = null, this.dropTargetNode = null;
|
|
1773
|
-
}, yr(e, [
|
|
1774
|
-
{
|
|
1775
|
-
key: "connectTarget",
|
|
1776
|
-
get: function() {
|
|
1777
|
-
return this.dropTarget;
|
|
1778
|
-
}
|
|
1779
|
-
},
|
|
1780
|
-
{
|
|
1781
|
-
key: "dropTargetOptions",
|
|
1782
|
-
get: function() {
|
|
1783
|
-
return this.dropTargetOptionsInternal;
|
|
1784
|
-
},
|
|
1785
|
-
set: function(e) {
|
|
1786
|
-
this.dropTargetOptionsInternal = e;
|
|
1787
|
-
}
|
|
1788
|
-
},
|
|
1789
|
-
{
|
|
1790
|
-
key: "dropTarget",
|
|
1791
|
-
get: function() {
|
|
1792
|
-
return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.value;
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
]), e;
|
|
1796
|
-
}();
|
|
1797
|
-
//#endregion
|
|
1798
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/registration.js
|
|
1799
|
-
function xr(e, t, n) {
|
|
1800
|
-
var r = (0, j.unref)(n).getRegistry(), i = r.addTarget((0, j.unref)(e), (0, j.unref)(t));
|
|
1801
|
-
return [i, function() {
|
|
1802
|
-
return r.removeTarget(i);
|
|
1803
|
-
}];
|
|
1804
|
-
}
|
|
1805
|
-
function Sr(e, t, n) {
|
|
1806
|
-
var r = n.getRegistry(), i = r.addSource(e, t);
|
|
1807
|
-
return [i, function() {
|
|
1808
|
-
return r.removeSource(i);
|
|
1809
|
-
}];
|
|
1810
|
-
}
|
|
1811
|
-
//#endregion
|
|
1812
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/DragSourceImpl.js
|
|
1813
|
-
function Cr(e, t) {
|
|
1814
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
1815
|
-
}
|
|
1816
|
-
var wr = /* @__PURE__ */ function() {
|
|
1817
|
-
function e(t, n, r) {
|
|
1818
|
-
Cr(this, e), this.spec = t, this.monitor = n, this.connector = r;
|
|
1819
|
-
}
|
|
1820
|
-
var t = e.prototype;
|
|
1821
|
-
return t.beginDrag = function() {
|
|
1822
|
-
var e = this.spec, t = this.monitor, n = null;
|
|
1823
|
-
return n = typeof e.item == "object" ? e.item : typeof e.item == "function" ? e.item(t) : {}, n ?? null;
|
|
1824
|
-
}, t.canDrag = function() {
|
|
1825
|
-
var e = this.spec, t = this.monitor;
|
|
1826
|
-
return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(t) : !0;
|
|
1827
|
-
}, t.isDragging = function(e, t) {
|
|
1828
|
-
var n = this.spec, r = this.monitor, i = n.isDragging;
|
|
1829
|
-
return i ? i(r) : t === e.getSourceId();
|
|
1830
|
-
}, t.endDrag = function() {
|
|
1831
|
-
var e = this.spec, t = this.monitor, n = this.connector, r = e.end;
|
|
1832
|
-
r && r(t.getItem(), t), n.reconnect();
|
|
1833
|
-
}, e;
|
|
1834
|
-
}();
|
|
1835
|
-
//#endregion
|
|
1836
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSource.js
|
|
1837
|
-
function Tr(e, t, n) {
|
|
1838
|
-
var r = (0, j.computed)(function() {
|
|
1839
|
-
return new wr((0, j.unref)(e), (0, j.unref)(t), (0, j.unref)(n));
|
|
1840
|
-
});
|
|
1841
|
-
return (0, j.watchEffect)(function() {
|
|
1842
|
-
r.value.spec = (0, j.unref)(e);
|
|
1843
|
-
}), r;
|
|
1844
|
-
}
|
|
1845
|
-
//#endregion
|
|
1846
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDragDropManager.js
|
|
1847
|
-
function Q() {
|
|
1848
|
-
var e = ut();
|
|
1849
|
-
return F(e != null, "Expected drag drop context"), e;
|
|
1850
|
-
}
|
|
1851
|
-
//#endregion
|
|
1852
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragType.js
|
|
1853
|
-
function Er(e) {
|
|
1854
|
-
return (0, j.computed)(function() {
|
|
1855
|
-
var t = (0, j.unref)(e).type;
|
|
1856
|
-
return F(t != null, "spec.type must be defined"), t;
|
|
1857
|
-
});
|
|
1858
|
-
}
|
|
1859
|
-
//#endregion
|
|
1860
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useRegisteredDragSource.js
|
|
1861
|
-
function Dr(e, t) {
|
|
1862
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1863
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1864
|
-
return r;
|
|
1865
|
-
}
|
|
1866
|
-
function Or(e) {
|
|
1867
|
-
if (Array.isArray(e)) return e;
|
|
1868
|
-
}
|
|
1869
|
-
function kr(e, t) {
|
|
1870
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1871
|
-
if (n != null) {
|
|
1872
|
-
var r = [], i = !0, a = !1, o, s;
|
|
1873
|
-
try {
|
|
1874
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
1875
|
-
} catch (e) {
|
|
1876
|
-
a = !0, s = e;
|
|
1877
|
-
} finally {
|
|
1878
|
-
try {
|
|
1879
|
-
!i && n.return != null && n.return();
|
|
1880
|
-
} finally {
|
|
1881
|
-
if (a) throw s;
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
return r;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
function Ar() {
|
|
1888
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1889
|
-
}
|
|
1890
|
-
function jr(e, t) {
|
|
1891
|
-
return Or(e) || kr(e, t) || Mr(e, t) || Ar();
|
|
1892
|
-
}
|
|
1893
|
-
function Mr(e, t) {
|
|
1894
|
-
if (e) {
|
|
1895
|
-
if (typeof e == "string") return Dr(e, t);
|
|
1896
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1897
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
1898
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Dr(e, t);
|
|
1899
|
-
}
|
|
1900
|
-
}
|
|
1901
|
-
function Nr(e, t, n) {
|
|
1902
|
-
var r = Q(), i = Tr(e, t, n), a = Er(e);
|
|
1903
|
-
(0, j.watchEffect)(function(e) {
|
|
1904
|
-
if ((0, j.unref)(a) != null) {
|
|
1905
|
-
var o = jr(Sr((0, j.unref)(a), (0, j.unref)(i), (0, j.unref)(r)), 2), s = o[0], c = o[1];
|
|
1906
|
-
(0, j.unref)(t).receiveHandlerId(s), (0, j.unref)(n).receiveHandlerId(s), e(c);
|
|
1907
|
-
}
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
//#endregion
|
|
1911
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useOptionalFactory.js
|
|
1912
|
-
function Pr(e) {
|
|
1913
|
-
return (0, j.computed)(function() {
|
|
1914
|
-
return typeof e == "function" ? e() : e;
|
|
1915
|
-
});
|
|
1916
|
-
}
|
|
1917
|
-
//#endregion
|
|
1918
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSourceMonitor.js
|
|
1919
|
-
function Fr() {
|
|
1920
|
-
var e = Q();
|
|
1921
|
-
return (0, j.computed)(function() {
|
|
1922
|
-
return new tr((0, j.unref)(e));
|
|
1923
|
-
});
|
|
1924
|
-
}
|
|
1925
|
-
//#endregion
|
|
1926
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSourceConnector.js
|
|
1927
|
-
function Ir(e, t) {
|
|
1928
|
-
var n = Q(), r = (0, j.computed)(function() {
|
|
1929
|
-
return new gr((0, j.unref)(n).getBackend());
|
|
1930
|
-
});
|
|
1931
|
-
return (0, j.watchEffect)(function(t) {
|
|
1932
|
-
r.value.dragSourceOptions = (0, j.unref)(e) || null, (0, j.unref)(r).reconnect(), t(function() {
|
|
1933
|
-
r.value.disconnectDragSource();
|
|
1934
|
-
});
|
|
1935
|
-
}), (0, j.watchEffect)(function(e) {
|
|
1936
|
-
r.value.dragPreviewOptions = (0, j.unref)(t) || null, (0, j.unref)(r).reconnect(), e(function() {
|
|
1937
|
-
r.value.disconnectDragPreview();
|
|
1938
|
-
});
|
|
1939
|
-
}), r;
|
|
1940
|
-
}
|
|
1941
|
-
//#endregion
|
|
1942
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useCollector.js
|
|
1943
|
-
var Lr = /* @__PURE__ */ re((/* @__PURE__ */ b(((e, t) => {
|
|
1944
|
-
t.exports = function e(t, n) {
|
|
1945
|
-
if (t === n) return !0;
|
|
1946
|
-
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
1947
|
-
if (t.constructor !== n.constructor) return !1;
|
|
1948
|
-
var r, i, a;
|
|
1949
|
-
if (Array.isArray(t)) {
|
|
1950
|
-
if (r = t.length, r != n.length) return !1;
|
|
1951
|
-
for (i = r; i-- !== 0;) if (!e(t[i], n[i])) return !1;
|
|
1952
|
-
return !0;
|
|
1953
|
-
}
|
|
1954
|
-
if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
|
|
1955
|
-
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
|
|
1956
|
-
if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
|
|
1957
|
-
if (a = Object.keys(t), r = a.length, r !== Object.keys(n).length) return !1;
|
|
1958
|
-
for (i = r; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(n, a[i])) return !1;
|
|
1959
|
-
for (i = r; i-- !== 0;) {
|
|
1960
|
-
var o = a[i];
|
|
1961
|
-
if (!e(t[o], n[o])) return !1;
|
|
1962
|
-
}
|
|
1963
|
-
return !0;
|
|
1964
|
-
}
|
|
1965
|
-
return t !== t && n !== n;
|
|
1966
|
-
};
|
|
1967
|
-
})))());
|
|
1968
|
-
function Rr(e, t, n) {
|
|
1969
|
-
var r = (0, j.ref)((0, j.unref)(t)((0, j.unref)(e))), i = function() {
|
|
1970
|
-
var i = (0, j.unref)(t)((0, j.unref)(e));
|
|
1971
|
-
(0, Lr.default)(r.value, i) || (r.value = i, n && n());
|
|
1972
|
-
};
|
|
1973
|
-
return (0, j.watchEffect)(i), [r, i];
|
|
1974
|
-
}
|
|
1975
|
-
//#endregion
|
|
1976
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useMonitorOutput.js
|
|
1977
|
-
function zr(e, t) {
|
|
1978
|
-
(t == null || t > e.length) && (t = e.length);
|
|
1979
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1980
|
-
return r;
|
|
1981
|
-
}
|
|
1982
|
-
function Br(e) {
|
|
1983
|
-
if (Array.isArray(e)) return e;
|
|
1984
|
-
}
|
|
1985
|
-
function Vr(e, t) {
|
|
1986
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1987
|
-
if (n != null) {
|
|
1988
|
-
var r = [], i = !0, a = !1, o, s;
|
|
1989
|
-
try {
|
|
1990
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
1991
|
-
} catch (e) {
|
|
1992
|
-
a = !0, s = e;
|
|
1993
|
-
} finally {
|
|
1994
|
-
try {
|
|
1995
|
-
!i && n.return != null && n.return();
|
|
1996
|
-
} finally {
|
|
1997
|
-
if (a) throw s;
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
return r;
|
|
2001
|
-
}
|
|
2002
|
-
}
|
|
2003
|
-
function Hr() {
|
|
2004
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2005
|
-
}
|
|
2006
|
-
function Ur(e, t) {
|
|
2007
|
-
return Br(e) || Vr(e, t) || Wr(e, t) || Hr();
|
|
2008
|
-
}
|
|
2009
|
-
function Wr(e, t) {
|
|
2010
|
-
if (e) {
|
|
2011
|
-
if (typeof e == "string") return zr(e, t);
|
|
2012
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2013
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
2014
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return zr(e, t);
|
|
2015
|
-
}
|
|
2016
|
-
}
|
|
2017
|
-
function Gr(e, t, n) {
|
|
2018
|
-
var r = Ur(Rr(e, t, n), 2), i = r[0], a = r[1];
|
|
2019
|
-
return (0, j.watchEffect)(function(t) {
|
|
2020
|
-
var n = (0, j.unref)(e).getHandlerId();
|
|
2021
|
-
n != null && t((0, j.unref)(e).subscribeToStateChange(a, { handlerIds: [n] }));
|
|
2022
|
-
}), i;
|
|
2023
|
-
}
|
|
2024
|
-
//#endregion
|
|
2025
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useCollectedProps.js
|
|
2026
|
-
function Kr(e, t, n) {
|
|
2027
|
-
return Gr(t, e || function() {
|
|
2028
|
-
return {};
|
|
2029
|
-
}, function() {
|
|
2030
|
-
return (0, j.unref)(n).reconnect();
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
//#endregion
|
|
2034
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useConnector.js
|
|
2035
|
-
function qr(e, t) {
|
|
2036
|
-
var n = (0, j.reactive)({
|
|
2037
|
-
el: null,
|
|
2038
|
-
options: (0, j.unref)(t)
|
|
2039
|
-
});
|
|
2040
|
-
return (0, j.watchEffect)(function() {
|
|
2041
|
-
e(n);
|
|
2042
|
-
}, { flush: "post" }), function(e, r) {
|
|
2043
|
-
M(n, "el", e);
|
|
2044
|
-
var i = (0, j.unref)(t) || r;
|
|
2045
|
-
return (0, Lr.default)(n.options, i) || M(n, "options", i), (0, j.unref)(e);
|
|
2046
|
-
};
|
|
2047
|
-
}
|
|
2048
|
-
//#endregion
|
|
2049
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/connectors.js
|
|
2050
|
-
function Jr(e, t) {
|
|
2051
|
-
return qr(function(t) {
|
|
2052
|
-
(0, j.unref)(e).hooks.dragSource()(t.el, t.options);
|
|
2053
|
-
}, (0, j.computed)(function() {
|
|
2054
|
-
return (0, j.unref)(t).options;
|
|
2055
|
-
}));
|
|
2056
|
-
}
|
|
2057
|
-
function Yr(e, t) {
|
|
2058
|
-
return qr(function(t) {
|
|
2059
|
-
(0, j.unref)(e).hooks.dragPreview()(t.el, t.options);
|
|
2060
|
-
}, (0, j.computed)(function() {
|
|
2061
|
-
return (0, j.unref)(t).previewOptions;
|
|
2062
|
-
}));
|
|
2063
|
-
}
|
|
2064
|
-
//#endregion
|
|
2065
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDrag.js
|
|
2066
|
-
function Xr(e) {
|
|
2067
|
-
var t = Pr(e), n = Fr(), r = Ir((0, j.computed)(function() {
|
|
2068
|
-
return (0, j.unref)(t).options;
|
|
2069
|
-
}), (0, j.computed)(function() {
|
|
2070
|
-
return (0, j.unref)(t).previewOptions;
|
|
2071
|
-
}));
|
|
2072
|
-
return Nr(t, n, r), [
|
|
2073
|
-
Kr((0, j.computed)(function() {
|
|
2074
|
-
return (0, j.unref)(t).collect || function() {
|
|
2075
|
-
return {};
|
|
2076
|
-
};
|
|
2077
|
-
}), n, r),
|
|
2078
|
-
Jr(r, t),
|
|
2079
|
-
Yr(r, t)
|
|
2080
|
-
];
|
|
2081
|
-
}
|
|
2082
|
-
//#endregion
|
|
2083
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useAccept.js
|
|
2084
|
-
function Zr(e) {
|
|
2085
|
-
return (0, j.computed)(function() {
|
|
2086
|
-
var t = (0, j.unref)(e).accept;
|
|
2087
|
-
return F(t != null, "accept must be defined"), Array.isArray(t) ? t : [t];
|
|
2088
|
-
});
|
|
2089
|
-
}
|
|
2090
|
-
//#endregion
|
|
2091
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/DropTargetImpl.js
|
|
2092
|
-
function Qr(e, t) {
|
|
2093
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
2094
|
-
}
|
|
2095
|
-
var $r = /* @__PURE__ */ function() {
|
|
2096
|
-
function e(t, n) {
|
|
2097
|
-
Qr(this, e), this.spec = t, this.monitor = n;
|
|
2098
|
-
}
|
|
2099
|
-
var t = e.prototype;
|
|
2100
|
-
return t.canDrop = function() {
|
|
2101
|
-
var e = this.spec, t = this.monitor;
|
|
2102
|
-
return e.canDrop ? e.canDrop(t.getItem(), t) : !0;
|
|
2103
|
-
}, t.hover = function() {
|
|
2104
|
-
var e = this.spec, t = this.monitor;
|
|
2105
|
-
e.hover && e.hover(t.getItem(), t);
|
|
2106
|
-
}, t.drop = function() {
|
|
2107
|
-
var e = this.spec, t = this.monitor;
|
|
2108
|
-
if (e.drop) return e.drop(t.getItem(), t);
|
|
2109
|
-
}, e;
|
|
2110
|
-
}();
|
|
2111
|
-
//#endregion
|
|
2112
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTarget.js
|
|
2113
|
-
function ei(e, t) {
|
|
2114
|
-
var n = (0, j.computed)(function() {
|
|
2115
|
-
return new $r((0, j.unref)(e), (0, j.unref)(t));
|
|
2116
|
-
});
|
|
2117
|
-
return (0, j.watchEffect)(function() {
|
|
2118
|
-
n.value.spec = (0, j.unref)(e);
|
|
2119
|
-
}), n;
|
|
2120
|
-
}
|
|
2121
|
-
//#endregion
|
|
2122
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useRegisteredDropTarget.js
|
|
2123
|
-
function ti(e, t) {
|
|
2124
|
-
(t == null || t > e.length) && (t = e.length);
|
|
2125
|
-
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
2126
|
-
return r;
|
|
2127
|
-
}
|
|
2128
|
-
function ni(e) {
|
|
2129
|
-
if (Array.isArray(e)) return e;
|
|
2130
|
-
}
|
|
2131
|
-
function ri(e, t) {
|
|
2132
|
-
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
2133
|
-
if (n != null) {
|
|
2134
|
-
var r = [], i = !0, a = !1, o, s;
|
|
2135
|
-
try {
|
|
2136
|
-
for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
|
|
2137
|
-
} catch (e) {
|
|
2138
|
-
a = !0, s = e;
|
|
2139
|
-
} finally {
|
|
2140
|
-
try {
|
|
2141
|
-
!i && n.return != null && n.return();
|
|
2142
|
-
} finally {
|
|
2143
|
-
if (a) throw s;
|
|
2144
|
-
}
|
|
2145
|
-
}
|
|
2146
|
-
return r;
|
|
2147
|
-
}
|
|
2148
|
-
}
|
|
2149
|
-
function ii() {
|
|
2150
|
-
throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2151
|
-
}
|
|
2152
|
-
function ai(e, t) {
|
|
2153
|
-
return ni(e) || ri(e, t) || oi(e, t) || ii();
|
|
2154
|
-
}
|
|
2155
|
-
function oi(e, t) {
|
|
2156
|
-
if (e) {
|
|
2157
|
-
if (typeof e == "string") return ti(e, t);
|
|
2158
|
-
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
2159
|
-
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
|
|
2160
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ti(e, t);
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
|
-
function si(e, t, n) {
|
|
2164
|
-
var r = Q(), i = ei(e, t), a = Zr(e);
|
|
2165
|
-
(0, j.watchEffect)(function(e) {
|
|
2166
|
-
var o = ai(xr(a, i, r), 2), s = o[0], c = o[1];
|
|
2167
|
-
(0, j.unref)(t).receiveHandlerId(s), (0, j.unref)(n).receiveHandlerId(s), e(c);
|
|
2168
|
-
});
|
|
2169
|
-
}
|
|
2170
|
-
//#endregion
|
|
2171
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTargetMonitor.js
|
|
2172
|
-
function ci() {
|
|
2173
|
-
var e = Q();
|
|
2174
|
-
return (0, j.computed)(function() {
|
|
2175
|
-
return new ir((0, j.unref)(e));
|
|
2176
|
-
});
|
|
2177
|
-
}
|
|
2178
|
-
//#endregion
|
|
2179
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTargetConnector.js
|
|
2180
|
-
function li(e) {
|
|
2181
|
-
var t = Q(), n = (0, j.computed)(function() {
|
|
2182
|
-
return new br((0, j.unref)(t).getBackend());
|
|
2183
|
-
});
|
|
2184
|
-
return (0, j.watchEffect)(function(t) {
|
|
2185
|
-
n.value.dropTargetOptions = (0, j.unref)(e) || null, n.value.reconnect(), t(function() {
|
|
2186
|
-
return n.value.disconnectDropTarget();
|
|
2187
|
-
});
|
|
2188
|
-
}), n;
|
|
2189
|
-
}
|
|
2190
|
-
//#endregion
|
|
2191
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/connectors.js
|
|
2192
|
-
function ui(e, t) {
|
|
2193
|
-
return qr(function(t) {
|
|
2194
|
-
(0, j.unref)(e).hooks.dropTarget()(t.el, t.options);
|
|
2195
|
-
}, (0, j.computed)(function() {
|
|
2196
|
-
return (0, j.unref)(t).options;
|
|
2197
|
-
}));
|
|
2198
|
-
}
|
|
2199
|
-
//#endregion
|
|
2200
|
-
//#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.30_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDrop.js
|
|
2201
|
-
function di(e) {
|
|
2202
|
-
var t = Pr(e), n = ci(), r = li((0, j.computed)(function() {
|
|
2203
|
-
return (0, j.unref)(t).options;
|
|
2204
|
-
}));
|
|
2205
|
-
return si(t, n, r), [Kr((0, j.computed)(function() {
|
|
2206
|
-
return (0, j.unref)(t).collect || function() {
|
|
2207
|
-
return {};
|
|
2208
|
-
};
|
|
2209
|
-
}), n, r), ui(r, t)];
|
|
2210
|
-
}
|
|
2211
|
-
//#endregion
|
|
2212
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js
|
|
2213
|
-
function fi(e) {
|
|
2214
|
-
let t = null;
|
|
2215
|
-
return () => (t ??= e(), t);
|
|
2216
|
-
}
|
|
2217
|
-
function pi(e, t) {
|
|
2218
|
-
return e.filter((e) => e !== t);
|
|
2219
|
-
}
|
|
2220
|
-
function mi(e, t) {
|
|
2221
|
-
let n = /* @__PURE__ */ new Set(), r = (e) => n.add(e);
|
|
2222
|
-
e.forEach(r), t.forEach(r);
|
|
2223
|
-
let i = [];
|
|
2224
|
-
return n.forEach((e) => i.push(e)), i;
|
|
2225
|
-
}
|
|
2226
|
-
//#endregion
|
|
2227
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js
|
|
2228
|
-
var hi = class {
|
|
2229
|
-
enter(e) {
|
|
2230
|
-
let t = this.entered.length;
|
|
2231
|
-
return this.entered = mi(this.entered.filter((t) => this.isNodeInDocument(t) && (!t.contains || t.contains(e))), [e]), t === 0 && this.entered.length > 0;
|
|
2232
|
-
}
|
|
2233
|
-
leave(e) {
|
|
2234
|
-
let t = this.entered.length;
|
|
2235
|
-
return this.entered = pi(this.entered.filter(this.isNodeInDocument), e), t > 0 && this.entered.length === 0;
|
|
2236
|
-
}
|
|
2237
|
-
reset() {
|
|
2238
|
-
this.entered = [];
|
|
2239
|
-
}
|
|
2240
|
-
constructor(e) {
|
|
2241
|
-
this.entered = [], this.isNodeInDocument = e;
|
|
2242
|
-
}
|
|
2243
|
-
}, gi = class {
|
|
2244
|
-
initializeExposedProperties() {
|
|
2245
|
-
Object.keys(this.config.exposeProperties).forEach((e) => {
|
|
2246
|
-
Object.defineProperty(this.item, e, {
|
|
2247
|
-
configurable: !0,
|
|
2248
|
-
enumerable: !0,
|
|
2249
|
-
get() {
|
|
2250
|
-
return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`), null;
|
|
2251
|
-
}
|
|
2252
|
-
});
|
|
2253
|
-
});
|
|
2254
|
-
}
|
|
2255
|
-
loadDataTransfer(e) {
|
|
2256
|
-
if (e) {
|
|
2257
|
-
let t = {};
|
|
2258
|
-
Object.keys(this.config.exposeProperties).forEach((n) => {
|
|
2259
|
-
let r = this.config.exposeProperties[n];
|
|
2260
|
-
r != null && (t[n] = {
|
|
2261
|
-
value: r(e, this.config.matchesTypes),
|
|
2262
|
-
configurable: !0,
|
|
2263
|
-
enumerable: !0
|
|
2264
|
-
});
|
|
2265
|
-
}), Object.defineProperties(this.item, t);
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
canDrag() {
|
|
2269
|
-
return !0;
|
|
2270
|
-
}
|
|
2271
|
-
beginDrag() {
|
|
2272
|
-
return this.item;
|
|
2273
|
-
}
|
|
2274
|
-
isDragging(e, t) {
|
|
2275
|
-
return t === e.getSourceId();
|
|
2276
|
-
}
|
|
2277
|
-
endDrag() {}
|
|
2278
|
-
constructor(e) {
|
|
2279
|
-
this.config = e, this.item = {}, this.initializeExposedProperties();
|
|
2280
|
-
}
|
|
2281
|
-
}, _i = /* @__PURE__ */ te({
|
|
2282
|
-
FILE: () => vi,
|
|
2283
|
-
HTML: () => xi,
|
|
2284
|
-
TEXT: () => bi,
|
|
2285
|
-
URL: () => yi
|
|
2286
|
-
}), vi = "__NATIVE_FILE__", yi = "__NATIVE_URL__", bi = "__NATIVE_TEXT__", xi = "__NATIVE_HTML__";
|
|
2287
|
-
//#endregion
|
|
2288
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js
|
|
2289
|
-
function Si(e, t, n) {
|
|
2290
|
-
return t.reduce((t, n) => t || e.getData(n), "") ?? n;
|
|
2291
|
-
}
|
|
2292
|
-
//#endregion
|
|
2293
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js
|
|
2294
|
-
var Ci = {
|
|
2295
|
-
[vi]: {
|
|
2296
|
-
exposeProperties: {
|
|
2297
|
-
files: (e) => Array.prototype.slice.call(e.files),
|
|
2298
|
-
items: (e) => e.items,
|
|
2299
|
-
dataTransfer: (e) => e
|
|
2300
|
-
},
|
|
2301
|
-
matchesTypes: ["Files"]
|
|
2302
|
-
},
|
|
2303
|
-
[xi]: {
|
|
2304
|
-
exposeProperties: {
|
|
2305
|
-
html: (e, t) => Si(e, t, ""),
|
|
2306
|
-
dataTransfer: (e) => e
|
|
2307
|
-
},
|
|
2308
|
-
matchesTypes: ["Html", "text/html"]
|
|
2309
|
-
},
|
|
2310
|
-
[yi]: {
|
|
2311
|
-
exposeProperties: {
|
|
2312
|
-
urls: (e, t) => Si(e, t, "").split("\n"),
|
|
2313
|
-
dataTransfer: (e) => e
|
|
2314
|
-
},
|
|
2315
|
-
matchesTypes: ["Url", "text/uri-list"]
|
|
2316
|
-
},
|
|
2317
|
-
[bi]: {
|
|
2318
|
-
exposeProperties: {
|
|
2319
|
-
text: (e, t) => Si(e, t, ""),
|
|
2320
|
-
dataTransfer: (e) => e
|
|
2321
|
-
},
|
|
2322
|
-
matchesTypes: ["Text", "text/plain"]
|
|
2323
|
-
}
|
|
2324
|
-
};
|
|
2325
|
-
//#endregion
|
|
2326
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js
|
|
2327
|
-
function wi(e, t) {
|
|
2328
|
-
let n = Ci[e];
|
|
2329
|
-
if (!n) throw Error(`native type ${e} has no configuration`);
|
|
2330
|
-
let r = new gi(n);
|
|
2331
|
-
return r.loadDataTransfer(t), r;
|
|
2332
|
-
}
|
|
2333
|
-
function Ti(e) {
|
|
2334
|
-
if (!e) return null;
|
|
2335
|
-
let t = Array.prototype.slice.call(e.types || []);
|
|
2336
|
-
return Object.keys(Ci).filter((e) => {
|
|
2337
|
-
let n = Ci[e];
|
|
2338
|
-
return n?.matchesTypes ? n.matchesTypes.some((e) => t.indexOf(e) > -1) : !1;
|
|
2339
|
-
})[0] || null;
|
|
2340
|
-
}
|
|
2341
|
-
//#endregion
|
|
2342
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js
|
|
2343
|
-
var Ei = fi(() => /firefox/i.test(navigator.userAgent)), Di = fi(() => !!window.safari), Oi = class {
|
|
2344
|
-
interpolate(e) {
|
|
2345
|
-
let { xs: t, ys: n, c1s: r, c2s: i, c3s: a } = this, o = t.length - 1;
|
|
2346
|
-
if (e === t[o]) return n[o];
|
|
2347
|
-
let s = 0, c = a.length - 1, l;
|
|
2348
|
-
for (; s <= c;) {
|
|
2349
|
-
l = Math.floor(.5 * (s + c));
|
|
2350
|
-
let r = t[l];
|
|
2351
|
-
if (r < e) s = l + 1;
|
|
2352
|
-
else if (r > e) c = l - 1;
|
|
2353
|
-
else return n[l];
|
|
2354
|
-
}
|
|
2355
|
-
o = Math.max(0, c);
|
|
2356
|
-
let u = e - t[o], d = u * u;
|
|
2357
|
-
return n[o] + r[o] * u + i[o] * d + a[o] * u * d;
|
|
2358
|
-
}
|
|
2359
|
-
constructor(e, t) {
|
|
2360
|
-
let { length: n } = e, r = [];
|
|
2361
|
-
for (let e = 0; e < n; e++) r.push(e);
|
|
2362
|
-
r.sort((t, n) => e[t] < e[n] ? -1 : 1);
|
|
2363
|
-
let i = [], a = [], o = [], s, c;
|
|
2364
|
-
for (let r = 0; r < n - 1; r++) s = e[r + 1] - e[r], c = t[r + 1] - t[r], a.push(s), i.push(c), o.push(c / s);
|
|
2365
|
-
let l = [o[0]];
|
|
2366
|
-
for (let e = 0; e < a.length - 1; e++) {
|
|
2367
|
-
let t = o[e], n = o[e + 1];
|
|
2368
|
-
if (t * n <= 0) l.push(0);
|
|
2369
|
-
else {
|
|
2370
|
-
s = a[e];
|
|
2371
|
-
let r = a[e + 1], i = s + r;
|
|
2372
|
-
l.push(3 * i / ((i + r) / t + (i + s) / n));
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
l.push(o[o.length - 1]);
|
|
2376
|
-
let u = [], d = [], f;
|
|
2377
|
-
for (let e = 0; e < l.length - 1; e++) {
|
|
2378
|
-
f = o[e];
|
|
2379
|
-
let t = l[e], n = 1 / a[e], r = t + l[e + 1] - f - f;
|
|
2380
|
-
u.push((f - t - r) * n), d.push(r * n * n);
|
|
2381
|
-
}
|
|
2382
|
-
this.xs = e, this.ys = t, this.c1s = l, this.c2s = u, this.c3s = d;
|
|
2383
|
-
}
|
|
2384
|
-
}, ki = 1;
|
|
2385
|
-
function Ai(e) {
|
|
2386
|
-
let t = e.nodeType === ki ? e : e.parentElement;
|
|
2387
|
-
if (!t) return null;
|
|
2388
|
-
let { top: n, left: r } = t.getBoundingClientRect();
|
|
2389
|
-
return {
|
|
2390
|
-
x: r,
|
|
2391
|
-
y: n
|
|
2392
|
-
};
|
|
2393
|
-
}
|
|
2394
|
-
function $(e) {
|
|
2395
|
-
return {
|
|
2396
|
-
x: e.clientX,
|
|
2397
|
-
y: e.clientY
|
|
2398
|
-
};
|
|
2399
|
-
}
|
|
2400
|
-
function ji(e) {
|
|
2401
|
-
return e.nodeName === "IMG" && (Ei() || !document.documentElement?.contains(e));
|
|
2402
|
-
}
|
|
2403
|
-
function Mi(e, t, n, r) {
|
|
2404
|
-
let i = e ? t.width : n, a = e ? t.height : r;
|
|
2405
|
-
return Di() && e && (a /= window.devicePixelRatio, i /= window.devicePixelRatio), {
|
|
2406
|
-
dragPreviewWidth: i,
|
|
2407
|
-
dragPreviewHeight: a
|
|
2408
|
-
};
|
|
2409
|
-
}
|
|
2410
|
-
function Ni(e, t, n, r, i) {
|
|
2411
|
-
let a = ji(t), o = Ai(a ? e : t), s = {
|
|
2412
|
-
x: n.x - o.x,
|
|
2413
|
-
y: n.y - o.y
|
|
2414
|
-
}, { offsetWidth: c, offsetHeight: l } = e, { anchorX: u, anchorY: d } = r, { dragPreviewWidth: f, dragPreviewHeight: p } = Mi(a, t, c, l), m = () => {
|
|
2415
|
-
let e = new Oi([
|
|
2416
|
-
0,
|
|
2417
|
-
.5,
|
|
2418
|
-
1
|
|
2419
|
-
], [
|
|
2420
|
-
s.y,
|
|
2421
|
-
s.y / l * p,
|
|
2422
|
-
s.y + p - l
|
|
2423
|
-
]).interpolate(d);
|
|
2424
|
-
return Di() && a && (e += (window.devicePixelRatio - 1) * p), e;
|
|
2425
|
-
}, h = () => new Oi([
|
|
2426
|
-
0,
|
|
2427
|
-
.5,
|
|
2428
|
-
1
|
|
2429
|
-
], [
|
|
2430
|
-
s.x,
|
|
2431
|
-
s.x / c * f,
|
|
2432
|
-
s.x + f - c
|
|
2433
|
-
]).interpolate(u), { offsetX: g, offsetY: _ } = i, v = g === 0 || g, y = _ === 0 || _;
|
|
2434
|
-
return {
|
|
2435
|
-
x: v ? g : h(),
|
|
2436
|
-
y: y ? _ : m()
|
|
2437
|
-
};
|
|
2438
|
-
}
|
|
2439
|
-
//#endregion
|
|
2440
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/OptionsReader.js
|
|
2441
|
-
var Pi = class {
|
|
2442
|
-
get window() {
|
|
2443
|
-
if (this.globalContext) return this.globalContext;
|
|
2444
|
-
if (typeof window < "u") return window;
|
|
2445
|
-
}
|
|
2446
|
-
get document() {
|
|
2447
|
-
if (this.globalContext?.document) return this.globalContext.document;
|
|
2448
|
-
if (this.window) return this.window.document;
|
|
2449
|
-
}
|
|
2450
|
-
get rootElement() {
|
|
2451
|
-
return this.optionsArgs?.rootElement || this.window;
|
|
2452
|
-
}
|
|
2453
|
-
constructor(e, t) {
|
|
2454
|
-
this.ownerDocument = null, this.globalContext = e, this.optionsArgs = t;
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2457
|
-
//#endregion
|
|
2458
|
-
//#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js
|
|
2459
|
-
function Fi(e, t, n) {
|
|
2460
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
2461
|
-
value: n,
|
|
2462
|
-
enumerable: !0,
|
|
2463
|
-
configurable: !0,
|
|
2464
|
-
writable: !0
|
|
2465
|
-
}) : e[t] = n, e;
|
|
2466
|
-
}
|
|
2467
|
-
function Ii(e) {
|
|
2468
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
2469
|
-
var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
|
|
2470
|
-
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
|
|
2471
|
-
return Object.getOwnPropertyDescriptor(n, e).enumerable;
|
|
2472
|
-
}))), r.forEach(function(t) {
|
|
2473
|
-
Fi(e, t, n[t]);
|
|
2474
|
-
});
|
|
2475
|
-
}
|
|
2476
|
-
return e;
|
|
2477
|
-
}
|
|
2478
|
-
var Li = class {
|
|
2479
|
-
profile() {
|
|
2480
|
-
return {
|
|
2481
|
-
sourcePreviewNodes: this.sourcePreviewNodes.size,
|
|
2482
|
-
sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size,
|
|
2483
|
-
sourceNodeOptions: this.sourceNodeOptions.size,
|
|
2484
|
-
sourceNodes: this.sourceNodes.size,
|
|
2485
|
-
dragStartSourceIds: this.dragStartSourceIds?.length || 0,
|
|
2486
|
-
dropTargetIds: this.dropTargetIds.length,
|
|
2487
|
-
dragEnterTargetIds: this.dragEnterTargetIds.length,
|
|
2488
|
-
dragOverTargetIds: this.dragOverTargetIds?.length || 0
|
|
2489
|
-
};
|
|
2490
|
-
}
|
|
2491
|
-
get window() {
|
|
2492
|
-
return this.options.window;
|
|
2493
|
-
}
|
|
2494
|
-
get document() {
|
|
2495
|
-
return this.options.document;
|
|
2496
|
-
}
|
|
2497
|
-
get rootElement() {
|
|
2498
|
-
return this.options.rootElement;
|
|
2499
|
-
}
|
|
2500
|
-
setup() {
|
|
2501
|
-
let e = this.rootElement;
|
|
2502
|
-
if (e !== void 0) {
|
|
2503
|
-
if (e.__isReactDndBackendSetUp) throw Error("Cannot have two HTML5 backends at the same time.");
|
|
2504
|
-
e.__isReactDndBackendSetUp = !0, this.addEventListeners(e);
|
|
2505
|
-
}
|
|
2506
|
-
}
|
|
2507
|
-
teardown() {
|
|
2508
|
-
let e = this.rootElement;
|
|
2509
|
-
if (e !== void 0 && (e.__isReactDndBackendSetUp = !1, this.removeEventListeners(this.rootElement), this.clearCurrentDragSourceNode(), this.asyncEndDragFrameId)) {
|
|
2510
|
-
var t;
|
|
2511
|
-
(t = this.window) == null || t.cancelAnimationFrame(this.asyncEndDragFrameId);
|
|
2512
|
-
}
|
|
2513
|
-
}
|
|
2514
|
-
connectDragPreview(e, t, n) {
|
|
2515
|
-
return this.sourcePreviewNodeOptions.set(e, n), this.sourcePreviewNodes.set(e, t), () => {
|
|
2516
|
-
this.sourcePreviewNodes.delete(e), this.sourcePreviewNodeOptions.delete(e);
|
|
2517
|
-
};
|
|
2518
|
-
}
|
|
2519
|
-
connectDragSource(e, t, n) {
|
|
2520
|
-
this.sourceNodes.set(e, t), this.sourceNodeOptions.set(e, n);
|
|
2521
|
-
let r = (t) => this.handleDragStart(t, e), i = (e) => this.handleSelectStart(e);
|
|
2522
|
-
return t.setAttribute("draggable", "true"), t.addEventListener("dragstart", r), t.addEventListener("selectstart", i), () => {
|
|
2523
|
-
this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), t.removeEventListener("dragstart", r), t.removeEventListener("selectstart", i), t.setAttribute("draggable", "false");
|
|
2524
|
-
};
|
|
2525
|
-
}
|
|
2526
|
-
connectDropTarget(e, t) {
|
|
2527
|
-
let n = (t) => this.handleDragEnter(t, e), r = (t) => this.handleDragOver(t, e), i = (t) => this.handleDrop(t, e);
|
|
2528
|
-
return t.addEventListener("dragenter", n), t.addEventListener("dragover", r), t.addEventListener("drop", i), () => {
|
|
2529
|
-
t.removeEventListener("dragenter", n), t.removeEventListener("dragover", r), t.removeEventListener("drop", i);
|
|
2530
|
-
};
|
|
2531
|
-
}
|
|
2532
|
-
addEventListeners(e) {
|
|
2533
|
-
e.addEventListener && (e.addEventListener("dragstart", this.handleTopDragStart), e.addEventListener("dragstart", this.handleTopDragStartCapture, !0), e.addEventListener("dragend", this.handleTopDragEndCapture, !0), e.addEventListener("dragenter", this.handleTopDragEnter), e.addEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.addEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.addEventListener("dragover", this.handleTopDragOver), e.addEventListener("dragover", this.handleTopDragOverCapture, !0), e.addEventListener("drop", this.handleTopDrop), e.addEventListener("drop", this.handleTopDropCapture, !0));
|
|
2534
|
-
}
|
|
2535
|
-
removeEventListeners(e) {
|
|
2536
|
-
e.removeEventListener && (e.removeEventListener("dragstart", this.handleTopDragStart), e.removeEventListener("dragstart", this.handleTopDragStartCapture, !0), e.removeEventListener("dragend", this.handleTopDragEndCapture, !0), e.removeEventListener("dragenter", this.handleTopDragEnter), e.removeEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.removeEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.removeEventListener("dragover", this.handleTopDragOver), e.removeEventListener("dragover", this.handleTopDragOverCapture, !0), e.removeEventListener("drop", this.handleTopDrop), e.removeEventListener("drop", this.handleTopDropCapture, !0));
|
|
2537
|
-
}
|
|
2538
|
-
getCurrentSourceNodeOptions() {
|
|
2539
|
-
let e = this.monitor.getSourceId(), t = this.sourceNodeOptions.get(e);
|
|
2540
|
-
return Ii({ dropEffect: this.altKeyPressed ? "copy" : "move" }, t || {});
|
|
2541
|
-
}
|
|
2542
|
-
getCurrentDropEffect() {
|
|
2543
|
-
return this.isDraggingNativeItem() ? "copy" : this.getCurrentSourceNodeOptions().dropEffect;
|
|
2544
|
-
}
|
|
2545
|
-
getCurrentSourcePreviewNodeOptions() {
|
|
2546
|
-
let e = this.monitor.getSourceId();
|
|
2547
|
-
return Ii({
|
|
2548
|
-
anchorX: .5,
|
|
2549
|
-
anchorY: .5,
|
|
2550
|
-
captureDraggingState: !1
|
|
2551
|
-
}, this.sourcePreviewNodeOptions.get(e) || {});
|
|
2552
|
-
}
|
|
2553
|
-
isDraggingNativeItem() {
|
|
2554
|
-
let e = this.monitor.getItemType();
|
|
2555
|
-
return Object.keys(_i).some((t) => _i[t] === e);
|
|
2556
|
-
}
|
|
2557
|
-
beginDragNativeItem(e, t) {
|
|
2558
|
-
this.clearCurrentDragSourceNode(), this.currentNativeSource = wi(e, t), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([this.currentNativeHandle]);
|
|
2559
|
-
}
|
|
2560
|
-
setCurrentDragSourceNode(e) {
|
|
2561
|
-
this.clearCurrentDragSourceNode(), this.currentDragSourceNode = e, this.mouseMoveTimeoutTimer = setTimeout(() => this.rootElement?.addEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0), 1e3);
|
|
2562
|
-
}
|
|
2563
|
-
clearCurrentDragSourceNode() {
|
|
2564
|
-
if (this.currentDragSourceNode) {
|
|
2565
|
-
if (this.currentDragSourceNode = null, this.rootElement) {
|
|
2566
|
-
var e;
|
|
2567
|
-
(e = this.window) == null || e.clearTimeout(this.mouseMoveTimeoutTimer || void 0), this.rootElement.removeEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0);
|
|
2568
|
-
}
|
|
2569
|
-
return this.mouseMoveTimeoutTimer = null, !0;
|
|
2570
|
-
}
|
|
2571
|
-
return !1;
|
|
2572
|
-
}
|
|
2573
|
-
handleDragStart(e, t) {
|
|
2574
|
-
e.defaultPrevented || (this.dragStartSourceIds ||= [], this.dragStartSourceIds.unshift(t));
|
|
2575
|
-
}
|
|
2576
|
-
handleDragEnter(e, t) {
|
|
2577
|
-
this.dragEnterTargetIds.unshift(t);
|
|
2578
|
-
}
|
|
2579
|
-
handleDragOver(e, t) {
|
|
2580
|
-
this.dragOverTargetIds === null && (this.dragOverTargetIds = []), this.dragOverTargetIds.unshift(t);
|
|
2581
|
-
}
|
|
2582
|
-
handleDrop(e, t) {
|
|
2583
|
-
this.dropTargetIds.unshift(t);
|
|
2584
|
-
}
|
|
2585
|
-
constructor(e, t, n) {
|
|
2586
|
-
this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (e) => {
|
|
2587
|
-
let t = this.sourceNodes.get(e);
|
|
2588
|
-
return t && Ai(t) || null;
|
|
2589
|
-
}, this.endDragNativeItem = () => {
|
|
2590
|
-
this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
|
|
2591
|
-
}, this.isNodeInDocument = (e) => !!(e && this.document && this.document.body && this.document.body.contains(e)), this.endDragIfSourceWasRemovedFromDOM = () => {
|
|
2592
|
-
let e = this.currentDragSourceNode;
|
|
2593
|
-
e == null || this.isNodeInDocument(e) || (this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover());
|
|
2594
|
-
}, this.scheduleHover = (e) => {
|
|
2595
|
-
this.hoverRafId === null && typeof requestAnimationFrame < "u" && (this.hoverRafId = requestAnimationFrame(() => {
|
|
2596
|
-
this.monitor.isDragging() && this.actions.hover(e || [], { clientOffset: this.lastClientOffset }), this.hoverRafId = null;
|
|
2597
|
-
}));
|
|
2598
|
-
}, this.cancelHover = () => {
|
|
2599
|
-
this.hoverRafId !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(this.hoverRafId), this.hoverRafId = null);
|
|
2600
|
-
}, this.handleTopDragStartCapture = () => {
|
|
2601
|
-
this.clearCurrentDragSourceNode(), this.dragStartSourceIds = [];
|
|
2602
|
-
}, this.handleTopDragStart = (e) => {
|
|
2603
|
-
if (e.defaultPrevented) return;
|
|
2604
|
-
let { dragStartSourceIds: t } = this;
|
|
2605
|
-
this.dragStartSourceIds = null;
|
|
2606
|
-
let n = $(e);
|
|
2607
|
-
this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(t || [], {
|
|
2608
|
-
publishSource: !1,
|
|
2609
|
-
getSourceClientOffset: this.getSourceClientOffset,
|
|
2610
|
-
clientOffset: n
|
|
2611
|
-
});
|
|
2612
|
-
let { dataTransfer: r } = e, i = Ti(r);
|
|
2613
|
-
if (this.monitor.isDragging()) {
|
|
2614
|
-
if (r && typeof r.setDragImage == "function") {
|
|
2615
|
-
let e = this.monitor.getSourceId(), t = this.sourceNodes.get(e), i = this.sourcePreviewNodes.get(e) || t;
|
|
2616
|
-
if (i) {
|
|
2617
|
-
let { anchorX: e, anchorY: a, offsetX: o, offsetY: s } = this.getCurrentSourcePreviewNodeOptions(), c = Ni(t, i, n, {
|
|
2618
|
-
anchorX: e,
|
|
2619
|
-
anchorY: a
|
|
2620
|
-
}, {
|
|
2621
|
-
offsetX: o,
|
|
2622
|
-
offsetY: s
|
|
2623
|
-
});
|
|
2624
|
-
r.setDragImage(i, c.x, c.y);
|
|
2625
|
-
}
|
|
2626
|
-
}
|
|
2627
|
-
try {
|
|
2628
|
-
r?.setData("application/json", {});
|
|
2629
|
-
} catch {}
|
|
2630
|
-
this.setCurrentDragSourceNode(e.target);
|
|
2631
|
-
let { captureDraggingState: t } = this.getCurrentSourcePreviewNodeOptions();
|
|
2632
|
-
t ? this.actions.publishDragSource() : setTimeout(() => this.actions.publishDragSource(), 0);
|
|
2633
|
-
} else if (i) this.beginDragNativeItem(i);
|
|
2634
|
-
else if (r && !r.types && (e.target && !e.target.hasAttribute || !e.target.hasAttribute("draggable"))) return;
|
|
2635
|
-
else e.preventDefault();
|
|
2636
|
-
}, this.handleTopDragEndCapture = () => {
|
|
2637
|
-
this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2638
|
-
}, this.handleTopDragEnterCapture = (e) => {
|
|
2639
|
-
if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
|
|
2640
|
-
var t;
|
|
2641
|
-
(t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
|
|
2642
|
-
}
|
|
2643
|
-
if (!this.enterLeaveCounter.enter(e.target) || this.monitor.isDragging()) return;
|
|
2644
|
-
let { dataTransfer: n } = e, r = Ti(n);
|
|
2645
|
-
r && this.beginDragNativeItem(r, n);
|
|
2646
|
-
}, this.handleTopDragEnter = (e) => {
|
|
2647
|
-
let { dragEnterTargetIds: t } = this;
|
|
2648
|
-
this.dragEnterTargetIds = [], this.monitor.isDragging() && (this.altKeyPressed = e.altKey, t.length > 0 && this.actions.hover(t, { clientOffset: $(e) }), t.some((e) => this.monitor.canDropOnTarget(e)) && (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = this.getCurrentDropEffect())));
|
|
2649
|
-
}, this.handleTopDragOverCapture = (e) => {
|
|
2650
|
-
if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
|
|
2651
|
-
var t;
|
|
2652
|
-
(t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
|
|
2653
|
-
}
|
|
2654
|
-
}, this.handleTopDragOver = (e) => {
|
|
2655
|
-
let { dragOverTargetIds: t } = this;
|
|
2656
|
-
if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
|
|
2657
|
-
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "none");
|
|
2658
|
-
return;
|
|
2659
|
-
}
|
|
2660
|
-
this.altKeyPressed = e.altKey, this.lastClientOffset = $(e), this.scheduleHover(t), (t || []).some((e) => this.monitor.canDropOnTarget(e)) ? (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? e.preventDefault() : (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "none"));
|
|
2661
|
-
}, this.handleTopDragLeaveCapture = (e) => {
|
|
2662
|
-
this.isDraggingNativeItem() && e.preventDefault(), this.enterLeaveCounter.leave(e.target) && (this.isDraggingNativeItem() && setTimeout(() => this.endDragNativeItem(), 0), this.cancelHover());
|
|
2663
|
-
}, this.handleTopDropCapture = (e) => {
|
|
2664
|
-
if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
|
|
2665
|
-
var t;
|
|
2666
|
-
e.preventDefault(), (t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
|
|
2667
|
-
} else Ti(e.dataTransfer) && e.preventDefault();
|
|
2668
|
-
this.enterLeaveCounter.reset();
|
|
2669
|
-
}, this.handleTopDrop = (e) => {
|
|
2670
|
-
let { dropTargetIds: t } = this;
|
|
2671
|
-
this.dropTargetIds = [], this.actions.hover(t, { clientOffset: $(e) }), this.actions.drop({ dropEffect: this.getCurrentDropEffect() }), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
|
|
2672
|
-
}, this.handleSelectStart = (e) => {
|
|
2673
|
-
let t = e.target;
|
|
2674
|
-
typeof t.dragDrop == "function" && (t.tagName === "INPUT" || t.tagName === "SELECT" || t.tagName === "TEXTAREA" || t.isContentEditable || (e.preventDefault(), t.dragDrop()));
|
|
2675
|
-
}, this.options = new Pi(t, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new hi(this.isNodeInDocument);
|
|
2676
|
-
}
|
|
2677
|
-
}, Ri = function(e, t, n) {
|
|
2678
|
-
return new Li(e, t, n);
|
|
2679
|
-
};
|
|
2680
|
-
//#endregion
|
|
2681
|
-
//#region src/components/app-modal/app-modal-component.tsx
|
|
2682
|
-
function zi(e) {
|
|
2683
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
2684
|
-
}
|
|
2685
|
-
var Bi = /* @__PURE__ */ a({
|
|
2686
|
-
props: { opts: {
|
|
2687
|
-
type: Object,
|
|
2688
|
-
default: () => ({})
|
|
2689
|
-
} },
|
|
2690
|
-
setup(t, r) {
|
|
2691
|
-
let a = n("modal"), s = l(!1), d = l(!!t.opts.defaultFullscreen), f = () => {
|
|
2692
|
-
d.value = !d.value;
|
|
2693
|
-
}, m = l({});
|
|
2694
|
-
t.opts && Object.assign(m.value, t.opts);
|
|
2695
|
-
let h = null, g = new e({
|
|
2696
|
-
dismiss: (e) => {
|
|
2697
|
-
s.value = !1, h = e, r.emit("dismiss", h);
|
|
2698
|
-
},
|
|
2699
|
-
setOptions(e) {
|
|
2700
|
-
Object.assign(m.value, e);
|
|
2701
|
-
}
|
|
2702
|
-
});
|
|
2703
|
-
c("modal", g);
|
|
2704
|
-
let _ = (e) => g.dismiss(e);
|
|
2705
|
-
r.expose({
|
|
2706
|
-
present: () => {
|
|
2707
|
-
s.value = !0;
|
|
2708
|
-
},
|
|
2709
|
-
dismiss: _
|
|
2710
|
-
});
|
|
2711
|
-
let v = l(!1), y = async () => {
|
|
2712
|
-
if (g.ok) try {
|
|
2713
|
-
v.value = !0;
|
|
2714
|
-
let e = await g.ok();
|
|
2715
|
-
v.value = !1, e && (e.ok === !0 || e.close === !0) && _(e);
|
|
2716
|
-
} finally {
|
|
2717
|
-
v.value = !1;
|
|
2718
|
-
}
|
|
2719
|
-
else console.warn("打开模态未实现ok方法");
|
|
2720
|
-
}, ee = async () => {
|
|
2721
|
-
g.cancel && await g.cancel() === !1 || _();
|
|
2722
|
-
}, { getAntdLocale: b } = { getAntdLocale: { locale: {} } };
|
|
2723
|
-
return () => {
|
|
2724
|
-
let e, t = r.slots.default?.();
|
|
2725
|
-
return t && t.length > 0 && (t[0].props.modal = g), i(p, { locale: b }, { default: () => [i(Zn, { backend: Ri }, zi(e = o(u("a-modal"), {
|
|
2726
|
-
visible: s.value,
|
|
2727
|
-
class: [
|
|
2728
|
-
a.b(),
|
|
2729
|
-
m.value.placement && a.m(m.value.placement),
|
|
2730
|
-
m.value.modalClass,
|
|
2731
|
-
a.is("hidden-footer", m.value.showFooter === !1),
|
|
2732
|
-
a.is("hidden-close-btn", m.value.showCloseBtn === !1),
|
|
2733
|
-
a.is("hidden-cancel-btn", m.value.showCancelBtn === !1),
|
|
2734
|
-
a.is("full-screen", d.value)
|
|
2735
|
-
],
|
|
2736
|
-
centered: !0,
|
|
2737
|
-
onOk: y,
|
|
2738
|
-
confirmLoading: v.value,
|
|
2739
|
-
onCancel: ee,
|
|
2740
|
-
okText: "确认",
|
|
2741
|
-
okButtonProps: { disabled: g.state.okDisabled },
|
|
2742
|
-
...m.value
|
|
2743
|
-
}, [m.value.canFullscreen === !1 ? null : i("div", {
|
|
2744
|
-
class: a.e("full-screen"),
|
|
2745
|
-
onClick: f
|
|
2746
|
-
}, [i("i", { class: `iconfont ${d.value ? "icon-tuichuquanping" : "icon-quanping"}` }, null)]), t])) ? e : { default: () => [e] })] });
|
|
2747
|
-
};
|
|
2748
|
-
}
|
|
2749
|
-
});
|
|
2750
|
-
function Vi(e, n) {
|
|
2751
|
-
return new t(Bi, e, n);
|
|
2752
|
-
}
|
|
2753
|
-
//#endregion
|
|
2754
|
-
//#region src/utils/overlay-controller/overlay-controller.ts
|
|
2755
|
-
function Hi(e) {
|
|
2756
|
-
return f(e) ? u(e) : e;
|
|
2757
|
-
}
|
|
2758
|
-
var Ui = class {
|
|
2759
|
-
async modal(e, t, n) {
|
|
2760
|
-
let r = this.createModal(e, t, n);
|
|
2761
|
-
return r.present(), r.onWillDismiss();
|
|
2762
|
-
}
|
|
2763
|
-
createModal(e, t, n) {
|
|
2764
|
-
return Vi(d(e) ? e : () => o(Hi(e), { ...t }), n);
|
|
2765
|
-
}
|
|
2766
|
-
}, Wi = new Ui(), Gi = (e, t) => (e.install = (n) => {
|
|
2767
|
-
let r = e.name || e.displayName;
|
|
2768
|
-
r && (n.component(r, e), t && (n.config.globalProperties[t] = e));
|
|
2769
|
-
}, e), Ki = {
|
|
2770
|
-
VS: "vs",
|
|
2771
|
-
BLACK: "hc-black",
|
|
2772
|
-
DARK: "vs-dark"
|
|
2773
|
-
}, qi = {
|
|
2774
|
-
JS: "javascript",
|
|
2775
|
-
SQL: "sql",
|
|
2776
|
-
PWSH: "powershell",
|
|
2777
|
-
JAVA: "java",
|
|
2778
|
-
C_SHARP: "csharp",
|
|
2779
|
-
JSON: "json"
|
|
2780
|
-
}, Ji = class {
|
|
2781
|
-
value;
|
|
2782
|
-
title;
|
|
2783
|
-
language;
|
|
2784
|
-
theme;
|
|
2785
|
-
readonly;
|
|
2786
|
-
};
|
|
2787
|
-
//#endregion
|
|
2788
|
-
export { Ui as a, Xr as c, ae as d, ie as f, Gi as i, it as l, re as m, Ji as n, Wi as o, b as p, Ki as r, di as s, qi as t, A as u };
|