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