@feedmepos/mf-report 5.3.15-rc.9 → 5.4.0-beta.0
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/DateRangeSelect.vue_vue_type_script_setup_true_lang-G0LCMQmy.js +148 -0
- package/dist/Default.vue_vue_type_script_setup_true_lang-U8MvQ-Uz.js +32 -0
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-WNX1hHIm.js +990 -0
- package/dist/HeaderTab.vue_vue_type_script_setup_true_lang-pwHzeuLE.js +18 -0
- package/dist/InsightView-riOJbWA9.js +9683 -0
- package/dist/Integration-jUUBKs84.js +2585 -0
- package/dist/Integrations-0JKt6eet.js +335 -0
- package/dist/Layout-W7RwCrDD.js +21 -0
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-VTjz4xCE.js +81 -0
- package/dist/MenuTab.vue_vue_type_script_setup_true_lang-GRUzIsKG.js +240 -0
- package/dist/NoData.vue_vue_type_script_setup_true_lang-FeKqFs4A.js +30 -0
- package/dist/OverviewView-yLAxCi0u.js +78 -0
- package/dist/Report-iaMxvukU.js +402 -0
- package/dist/ReportEditor-0l6N2bUP.js +524 -0
- package/dist/ReportView-kAjlmKii.js +183 -0
- package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-6i3u0Axg.js +103 -0
- package/dist/Setting-bs2gczqL.js +326 -0
- package/dist/TileEditor-J0YjUD7R.js +2298 -0
- package/dist/TransitionFade-ryomNLIZ.js +1982 -0
- package/dist/XeroRedirect-sLBv-Aqc.js +13 -0
- package/dist/app-eKZV2PPB.js +47435 -0
- package/dist/app.js +3 -67233
- package/dist/style.css +1 -1
- package/dist/timeFormat-chUhgTmK.js +9 -0
- package/package.json +5 -5
|
@@ -0,0 +1,1982 @@
|
|
|
1
|
+
import { defineComponent as Ne, onBeforeMount as sn, onBeforeUnmount as un, resolveComponent as ge, openBlock as ne, createElementBlock as ce, normalizeStyle as cn, unref as Ve, createVNode as ue, createElementVNode as Lt, renderSlot as Pe, TransitionGroup as dn, h as Dt, nextTick as Rt, mergeModels as fn, useModel as Bt, Fragment as vt, renderList as hn, createBlock as pn, normalizeClass as mn, withCtx as ze, createTextVNode as gn, toDisplayString as vn, ref as bn, Transition as ct, createCommentVNode as dt } from "vue";
|
|
2
|
+
import { c as yn, W as x, p as _n, l as bt } from "./app-eKZV2PPB.js";
|
|
3
|
+
import { useCoreStore as wn } from "@feedmepos/mf-common";
|
|
4
|
+
import { storeToRefs as En } from "pinia";
|
|
5
|
+
import { useRoute as Dn } from "vue-router";
|
|
6
|
+
import { R as Sn } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-WNX1hHIm.js";
|
|
7
|
+
const Cn = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
10
|
+
}, Mo = /* @__PURE__ */ Ne({
|
|
11
|
+
__name: "FullScreen",
|
|
12
|
+
setup(t) {
|
|
13
|
+
const e = Dn(), { isLoading: n } = En(yn()), o = wn();
|
|
14
|
+
return sn(() => {
|
|
15
|
+
o.hideSidebarToggle(!0);
|
|
16
|
+
}), un(() => {
|
|
17
|
+
o.hideSidebarToggle(!1);
|
|
18
|
+
}), (r, i) => {
|
|
19
|
+
const a = ge("FmCircularProgress");
|
|
20
|
+
return ne(), ce("div", {
|
|
21
|
+
class: "mx-auto",
|
|
22
|
+
style: cn({
|
|
23
|
+
height: `calc(100vh - ${Ve(e).query.token && Ve(e).query.businessId ? "0" : "64"}px)`
|
|
24
|
+
})
|
|
25
|
+
}, [
|
|
26
|
+
Ve(n) ? (ne(), ce("div", Cn, [
|
|
27
|
+
ue(a, { size: "xl" }),
|
|
28
|
+
i[0] || (i[0] = Lt("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Loading data... ", -1))
|
|
29
|
+
])) : Pe(r.$slots, "default", { key: 1 })
|
|
30
|
+
], 4);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
/**!
|
|
35
|
+
* Sortable 1.14.0
|
|
36
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
37
|
+
* @author owenm <owen23355@gmail.com>
|
|
38
|
+
* @license MIT
|
|
39
|
+
*/
|
|
40
|
+
function St(t, e) {
|
|
41
|
+
var n = Object.keys(t);
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
44
|
+
e && (o = o.filter(function(r) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(t, r).enumerable;
|
|
46
|
+
})), n.push.apply(n, o);
|
|
47
|
+
}
|
|
48
|
+
return n;
|
|
49
|
+
}
|
|
50
|
+
function j(t) {
|
|
51
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
52
|
+
var n = arguments[e] != null ? arguments[e] : {};
|
|
53
|
+
e % 2 ? St(Object(n), !0).forEach(function(o) {
|
|
54
|
+
Tn(t, o, n[o]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : St(Object(n)).forEach(function(o) {
|
|
56
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(n, o));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return t;
|
|
60
|
+
}
|
|
61
|
+
function Ye(t) {
|
|
62
|
+
"@babel/helpers - typeof";
|
|
63
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ye = function(e) {
|
|
64
|
+
return typeof e;
|
|
65
|
+
} : Ye = function(e) {
|
|
66
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
67
|
+
}, Ye(t);
|
|
68
|
+
}
|
|
69
|
+
function Tn(t, e, n) {
|
|
70
|
+
return e in t ? Object.defineProperty(t, e, {
|
|
71
|
+
value: n,
|
|
72
|
+
enumerable: !0,
|
|
73
|
+
configurable: !0,
|
|
74
|
+
writable: !0
|
|
75
|
+
}) : t[e] = n, t;
|
|
76
|
+
}
|
|
77
|
+
function q() {
|
|
78
|
+
return q = Object.assign || function(t) {
|
|
79
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
80
|
+
var n = arguments[e];
|
|
81
|
+
for (var o in n)
|
|
82
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
83
|
+
}
|
|
84
|
+
return t;
|
|
85
|
+
}, q.apply(this, arguments);
|
|
86
|
+
}
|
|
87
|
+
function xn(t, e) {
|
|
88
|
+
if (t == null)
|
|
89
|
+
return {};
|
|
90
|
+
var n = {}, o = Object.keys(t), r, i;
|
|
91
|
+
for (i = 0; i < o.length; i++)
|
|
92
|
+
r = o[i], !(e.indexOf(r) >= 0) && (n[r] = t[r]);
|
|
93
|
+
return n;
|
|
94
|
+
}
|
|
95
|
+
function In(t, e) {
|
|
96
|
+
if (t == null)
|
|
97
|
+
return {};
|
|
98
|
+
var n = xn(t, e), o, r;
|
|
99
|
+
if (Object.getOwnPropertySymbols) {
|
|
100
|
+
var i = Object.getOwnPropertySymbols(t);
|
|
101
|
+
for (r = 0; r < i.length; r++)
|
|
102
|
+
o = i[r], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
|
|
103
|
+
}
|
|
104
|
+
return n;
|
|
105
|
+
}
|
|
106
|
+
var On = "1.14.0";
|
|
107
|
+
function U(t) {
|
|
108
|
+
if (typeof window < "u" && window.navigator)
|
|
109
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
110
|
+
}
|
|
111
|
+
var K = U(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ke = U(/Edge/i), Ct = U(/firefox/i), Te = U(/safari/i) && !U(/chrome/i) && !U(/android/i), Xt = U(/iP(ad|od|hone)/i), An = U(/chrome/i) && U(/android/i), Vt = {
|
|
112
|
+
capture: !1,
|
|
113
|
+
passive: !1
|
|
114
|
+
};
|
|
115
|
+
function y(t, e, n) {
|
|
116
|
+
t.addEventListener(e, n, !K && Vt);
|
|
117
|
+
}
|
|
118
|
+
function b(t, e, n) {
|
|
119
|
+
t.removeEventListener(e, n, !K && Vt);
|
|
120
|
+
}
|
|
121
|
+
function Ge(t, e) {
|
|
122
|
+
if (e) {
|
|
123
|
+
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
124
|
+
try {
|
|
125
|
+
if (t.matches)
|
|
126
|
+
return t.matches(e);
|
|
127
|
+
if (t.msMatchesSelector)
|
|
128
|
+
return t.msMatchesSelector(e);
|
|
129
|
+
if (t.webkitMatchesSelector)
|
|
130
|
+
return t.webkitMatchesSelector(e);
|
|
131
|
+
} catch {
|
|
132
|
+
return !1;
|
|
133
|
+
}
|
|
134
|
+
return !1;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function Pn(t) {
|
|
138
|
+
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
139
|
+
}
|
|
140
|
+
function W(t, e, n, o) {
|
|
141
|
+
if (t) {
|
|
142
|
+
n = n || document;
|
|
143
|
+
do {
|
|
144
|
+
if (e != null && (e[0] === ">" ? t.parentNode === n && Ge(t, e) : Ge(t, e)) || o && t === n)
|
|
145
|
+
return t;
|
|
146
|
+
if (t === n)
|
|
147
|
+
break;
|
|
148
|
+
} while (t = Pn(t));
|
|
149
|
+
}
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
var Tt = /\s+/g;
|
|
153
|
+
function F(t, e, n) {
|
|
154
|
+
if (t && e)
|
|
155
|
+
if (t.classList)
|
|
156
|
+
t.classList[n ? "add" : "remove"](e);
|
|
157
|
+
else {
|
|
158
|
+
var o = (" " + t.className + " ").replace(Tt, " ").replace(" " + e + " ", " ");
|
|
159
|
+
t.className = (o + (n ? " " + e : "")).replace(Tt, " ");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
function h(t, e, n) {
|
|
163
|
+
var o = t && t.style;
|
|
164
|
+
if (o) {
|
|
165
|
+
if (n === void 0)
|
|
166
|
+
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
|
|
167
|
+
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function me(t, e) {
|
|
171
|
+
var n = "";
|
|
172
|
+
if (typeof t == "string")
|
|
173
|
+
n = t;
|
|
174
|
+
else
|
|
175
|
+
do {
|
|
176
|
+
var o = h(t, "transform");
|
|
177
|
+
o && o !== "none" && (n = o + " " + n);
|
|
178
|
+
} while (!e && (t = t.parentNode));
|
|
179
|
+
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
180
|
+
return r && new r(n);
|
|
181
|
+
}
|
|
182
|
+
function Yt(t, e, n) {
|
|
183
|
+
if (t) {
|
|
184
|
+
var o = t.getElementsByTagName(e), r = 0, i = o.length;
|
|
185
|
+
if (n)
|
|
186
|
+
for (; r < i; r++)
|
|
187
|
+
n(o[r], r);
|
|
188
|
+
return o;
|
|
189
|
+
}
|
|
190
|
+
return [];
|
|
191
|
+
}
|
|
192
|
+
function H() {
|
|
193
|
+
var t = document.scrollingElement;
|
|
194
|
+
return t || document.documentElement;
|
|
195
|
+
}
|
|
196
|
+
function T(t, e, n, o, r) {
|
|
197
|
+
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
198
|
+
var i, a, l, s, u, d, f;
|
|
199
|
+
if (t !== window && t.parentNode && t !== H() ? (i = t.getBoundingClientRect(), a = i.top, l = i.left, s = i.bottom, u = i.right, d = i.height, f = i.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (e || n) && t !== window && (r = r || t.parentNode, !K))
|
|
200
|
+
do
|
|
201
|
+
if (r && r.getBoundingClientRect && (h(r, "transform") !== "none" || n && h(r, "position") !== "static")) {
|
|
202
|
+
var g = r.getBoundingClientRect();
|
|
203
|
+
a -= g.top + parseInt(h(r, "border-top-width")), l -= g.left + parseInt(h(r, "border-left-width")), s = a + i.height, u = l + i.width;
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
while (r = r.parentNode);
|
|
207
|
+
if (o && t !== window) {
|
|
208
|
+
var w = me(r || t), v = w && w.a, _ = w && w.d;
|
|
209
|
+
w && (a /= _, l /= v, f /= v, d /= _, s = a + d, u = l + f);
|
|
210
|
+
}
|
|
211
|
+
return {
|
|
212
|
+
top: a,
|
|
213
|
+
left: l,
|
|
214
|
+
bottom: s,
|
|
215
|
+
right: u,
|
|
216
|
+
width: f,
|
|
217
|
+
height: d
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function xt(t, e, n) {
|
|
222
|
+
for (var o = te(t, !0), r = T(t)[e]; o; ) {
|
|
223
|
+
var i = T(o)[n], a = void 0;
|
|
224
|
+
if (n === "top" || n === "left" ? a = r >= i : a = r <= i, !a)
|
|
225
|
+
return o;
|
|
226
|
+
if (o === H())
|
|
227
|
+
break;
|
|
228
|
+
o = te(o, !1);
|
|
229
|
+
}
|
|
230
|
+
return !1;
|
|
231
|
+
}
|
|
232
|
+
function ve(t, e, n, o) {
|
|
233
|
+
for (var r = 0, i = 0, a = t.children; i < a.length; ) {
|
|
234
|
+
if (a[i].style.display !== "none" && a[i] !== p.ghost && (o || a[i] !== p.dragged) && W(a[i], n.draggable, t, !1)) {
|
|
235
|
+
if (r === e)
|
|
236
|
+
return a[i];
|
|
237
|
+
r++;
|
|
238
|
+
}
|
|
239
|
+
i++;
|
|
240
|
+
}
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
function yt(t, e) {
|
|
244
|
+
for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !Ge(n, e)); )
|
|
245
|
+
n = n.previousElementSibling;
|
|
246
|
+
return n || null;
|
|
247
|
+
}
|
|
248
|
+
function R(t, e) {
|
|
249
|
+
var n = 0;
|
|
250
|
+
if (!t || !t.parentNode)
|
|
251
|
+
return -1;
|
|
252
|
+
for (; t = t.previousElementSibling; )
|
|
253
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Ge(t, e)) && n++;
|
|
254
|
+
return n;
|
|
255
|
+
}
|
|
256
|
+
function It(t) {
|
|
257
|
+
var e = 0, n = 0, o = H();
|
|
258
|
+
if (t)
|
|
259
|
+
do {
|
|
260
|
+
var r = me(t), i = r.a, a = r.d;
|
|
261
|
+
e += t.scrollLeft * i, n += t.scrollTop * a;
|
|
262
|
+
} while (t !== o && (t = t.parentNode));
|
|
263
|
+
return [e, n];
|
|
264
|
+
}
|
|
265
|
+
function Nn(t, e) {
|
|
266
|
+
for (var n in t)
|
|
267
|
+
if (t.hasOwnProperty(n)) {
|
|
268
|
+
for (var o in e)
|
|
269
|
+
if (e.hasOwnProperty(o) && e[o] === t[n][o])
|
|
270
|
+
return Number(n);
|
|
271
|
+
}
|
|
272
|
+
return -1;
|
|
273
|
+
}
|
|
274
|
+
function te(t, e) {
|
|
275
|
+
if (!t || !t.getBoundingClientRect)
|
|
276
|
+
return H();
|
|
277
|
+
var n = t, o = !1;
|
|
278
|
+
do
|
|
279
|
+
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
280
|
+
var r = h(n);
|
|
281
|
+
if (n.clientWidth < n.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
|
|
282
|
+
if (!n.getBoundingClientRect || n === document.body)
|
|
283
|
+
return H();
|
|
284
|
+
if (o || e)
|
|
285
|
+
return n;
|
|
286
|
+
o = !0;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
while (n = n.parentNode);
|
|
290
|
+
return H();
|
|
291
|
+
}
|
|
292
|
+
function kn(t, e) {
|
|
293
|
+
if (t && e)
|
|
294
|
+
for (var n in e)
|
|
295
|
+
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
296
|
+
return t;
|
|
297
|
+
}
|
|
298
|
+
function Je(t, e) {
|
|
299
|
+
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
300
|
+
}
|
|
301
|
+
var xe;
|
|
302
|
+
function $t(t, e) {
|
|
303
|
+
return function() {
|
|
304
|
+
if (!xe) {
|
|
305
|
+
var n = arguments, o = this;
|
|
306
|
+
n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), xe = setTimeout(function() {
|
|
307
|
+
xe = void 0;
|
|
308
|
+
}, e);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function Fn() {
|
|
313
|
+
clearTimeout(xe), xe = void 0;
|
|
314
|
+
}
|
|
315
|
+
function Wt(t, e, n) {
|
|
316
|
+
t.scrollLeft += e, t.scrollTop += n;
|
|
317
|
+
}
|
|
318
|
+
function Ht(t) {
|
|
319
|
+
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
|
320
|
+
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
|
321
|
+
}
|
|
322
|
+
var L = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
323
|
+
function Mn() {
|
|
324
|
+
var t = [], e;
|
|
325
|
+
return {
|
|
326
|
+
captureAnimationState: function() {
|
|
327
|
+
if (t = [], !!this.options.animation) {
|
|
328
|
+
var o = [].slice.call(this.el.children);
|
|
329
|
+
o.forEach(function(r) {
|
|
330
|
+
if (!(h(r, "display") === "none" || r === p.ghost)) {
|
|
331
|
+
t.push({
|
|
332
|
+
target: r,
|
|
333
|
+
rect: T(r)
|
|
334
|
+
});
|
|
335
|
+
var i = j({}, t[t.length - 1].rect);
|
|
336
|
+
if (r.thisAnimationDuration) {
|
|
337
|
+
var a = me(r, !0);
|
|
338
|
+
a && (i.top -= a.f, i.left -= a.e);
|
|
339
|
+
}
|
|
340
|
+
r.fromRect = i;
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
addAnimationState: function(o) {
|
|
346
|
+
t.push(o);
|
|
347
|
+
},
|
|
348
|
+
removeAnimationState: function(o) {
|
|
349
|
+
t.splice(Nn(t, {
|
|
350
|
+
target: o
|
|
351
|
+
}), 1);
|
|
352
|
+
},
|
|
353
|
+
animateAll: function(o) {
|
|
354
|
+
var r = this;
|
|
355
|
+
if (!this.options.animation) {
|
|
356
|
+
clearTimeout(e), typeof o == "function" && o();
|
|
357
|
+
return;
|
|
358
|
+
}
|
|
359
|
+
var i = !1, a = 0;
|
|
360
|
+
t.forEach(function(l) {
|
|
361
|
+
var s = 0, u = l.target, d = u.fromRect, f = T(u), g = u.prevFromRect, w = u.prevToRect, v = l.rect, _ = me(u, !0);
|
|
362
|
+
_ && (f.top -= _.f, f.left -= _.e), u.toRect = f, u.thisAnimationDuration && Je(g, f) && !Je(d, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
363
|
+
(v.top - f.top) / (v.left - f.left) === (d.top - f.top) / (d.left - f.left) && (s = Rn(v, g, w, r.options)), Je(f, d) || (u.prevFromRect = d, u.prevToRect = f, s || (s = r.options.animation), r.animate(u, v, f, s)), s && (i = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
364
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
365
|
+
}, s), u.thisAnimationDuration = s);
|
|
366
|
+
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
367
|
+
typeof o == "function" && o();
|
|
368
|
+
}, a) : typeof o == "function" && o(), t = [];
|
|
369
|
+
},
|
|
370
|
+
animate: function(o, r, i, a) {
|
|
371
|
+
if (a) {
|
|
372
|
+
h(o, "transition", ""), h(o, "transform", "");
|
|
373
|
+
var l = me(this.el), s = l && l.a, u = l && l.d, d = (r.left - i.left) / (s || 1), f = (r.top - i.top) / (u || 1);
|
|
374
|
+
o.animatingX = !!d, o.animatingY = !!f, h(o, "transform", "translate3d(" + d + "px," + f + "px,0)"), this.forRepaintDummy = Ln(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
375
|
+
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
376
|
+
}, a);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
function Ln(t) {
|
|
382
|
+
return t.offsetWidth;
|
|
383
|
+
}
|
|
384
|
+
function Rn(t, e, n, o) {
|
|
385
|
+
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
|
386
|
+
}
|
|
387
|
+
var de = [], et = {
|
|
388
|
+
initializeByDefault: !0
|
|
389
|
+
}, Fe = {
|
|
390
|
+
mount: function(e) {
|
|
391
|
+
for (var n in et)
|
|
392
|
+
et.hasOwnProperty(n) && !(n in e) && (e[n] = et[n]);
|
|
393
|
+
de.forEach(function(o) {
|
|
394
|
+
if (o.pluginName === e.pluginName)
|
|
395
|
+
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
396
|
+
}), de.push(e);
|
|
397
|
+
},
|
|
398
|
+
pluginEvent: function(e, n, o) {
|
|
399
|
+
var r = this;
|
|
400
|
+
this.eventCanceled = !1, o.cancel = function() {
|
|
401
|
+
r.eventCanceled = !0;
|
|
402
|
+
};
|
|
403
|
+
var i = e + "Global";
|
|
404
|
+
de.forEach(function(a) {
|
|
405
|
+
n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](j({
|
|
406
|
+
sortable: n
|
|
407
|
+
}, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](j({
|
|
408
|
+
sortable: n
|
|
409
|
+
}, o)));
|
|
410
|
+
});
|
|
411
|
+
},
|
|
412
|
+
initializePlugins: function(e, n, o, r) {
|
|
413
|
+
de.forEach(function(l) {
|
|
414
|
+
var s = l.pluginName;
|
|
415
|
+
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
416
|
+
var u = new l(e, n, e.options);
|
|
417
|
+
u.sortable = e, u.options = e.options, e[s] = u, q(o, u.defaults);
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
for (var i in e.options)
|
|
421
|
+
if (e.options.hasOwnProperty(i)) {
|
|
422
|
+
var a = this.modifyOption(e, i, e.options[i]);
|
|
423
|
+
typeof a < "u" && (e.options[i] = a);
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
getEventProperties: function(e, n) {
|
|
427
|
+
var o = {};
|
|
428
|
+
return de.forEach(function(r) {
|
|
429
|
+
typeof r.eventProperties == "function" && q(o, r.eventProperties.call(n[r.pluginName], e));
|
|
430
|
+
}), o;
|
|
431
|
+
},
|
|
432
|
+
modifyOption: function(e, n, o) {
|
|
433
|
+
var r;
|
|
434
|
+
return de.forEach(function(i) {
|
|
435
|
+
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
|
|
436
|
+
}), r;
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
function Bn(t) {
|
|
440
|
+
var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, d = t.oldDraggableIndex, f = t.newDraggableIndex, g = t.originalEvent, w = t.putSortable, v = t.extraEventProperties;
|
|
441
|
+
if (e = e || n && n[L], !!e) {
|
|
442
|
+
var _, B = e.options, z = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
443
|
+
window.CustomEvent && !K && !ke ? _ = new CustomEvent(o, {
|
|
444
|
+
bubbles: !0,
|
|
445
|
+
cancelable: !0
|
|
446
|
+
}) : (_ = document.createEvent("Event"), _.initEvent(o, !0, !0)), _.to = a || n, _.from = l || n, _.item = r || n, _.clone = i, _.oldIndex = s, _.newIndex = u, _.oldDraggableIndex = d, _.newDraggableIndex = f, _.originalEvent = g, _.pullMode = w ? w.lastPutMode : void 0;
|
|
447
|
+
var A = j(j({}, v), Fe.getEventProperties(o, e));
|
|
448
|
+
for (var X in A)
|
|
449
|
+
_[X] = A[X];
|
|
450
|
+
n && n.dispatchEvent(_), B[z] && B[z].call(e, _);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
var Xn = ["evt"], N = function(e, n) {
|
|
454
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = In(o, Xn);
|
|
455
|
+
Fe.pluginEvent.bind(p)(e, n, j({
|
|
456
|
+
dragEl: c,
|
|
457
|
+
parentEl: D,
|
|
458
|
+
ghostEl: m,
|
|
459
|
+
rootEl: E,
|
|
460
|
+
nextEl: se,
|
|
461
|
+
lastDownEl: $e,
|
|
462
|
+
cloneEl: S,
|
|
463
|
+
cloneHidden: ee,
|
|
464
|
+
dragStarted: De,
|
|
465
|
+
putSortable: I,
|
|
466
|
+
activeSortable: p.active,
|
|
467
|
+
originalEvent: r,
|
|
468
|
+
oldIndex: pe,
|
|
469
|
+
oldDraggableIndex: Ie,
|
|
470
|
+
newIndex: M,
|
|
471
|
+
newDraggableIndex: J,
|
|
472
|
+
hideGhostForTarget: Ut,
|
|
473
|
+
unhideGhostForTarget: qt,
|
|
474
|
+
cloneNowHidden: function() {
|
|
475
|
+
ee = !0;
|
|
476
|
+
},
|
|
477
|
+
cloneNowShown: function() {
|
|
478
|
+
ee = !1;
|
|
479
|
+
},
|
|
480
|
+
dispatchSortableEvent: function(l) {
|
|
481
|
+
P({
|
|
482
|
+
sortable: n,
|
|
483
|
+
name: l,
|
|
484
|
+
originalEvent: r
|
|
485
|
+
});
|
|
486
|
+
}
|
|
487
|
+
}, i));
|
|
488
|
+
};
|
|
489
|
+
function P(t) {
|
|
490
|
+
Bn(j({
|
|
491
|
+
putSortable: I,
|
|
492
|
+
cloneEl: S,
|
|
493
|
+
targetEl: c,
|
|
494
|
+
rootEl: E,
|
|
495
|
+
oldIndex: pe,
|
|
496
|
+
oldDraggableIndex: Ie,
|
|
497
|
+
newIndex: M,
|
|
498
|
+
newDraggableIndex: J
|
|
499
|
+
}, t));
|
|
500
|
+
}
|
|
501
|
+
var c, D, m, E, se, $e, S, ee, pe, M, Ie, J, Le, I, he = !1, Ue = !1, qe = [], ae, V, tt, nt, Ot, At, De, fe, Oe, Ae = !1, Re = !1, We, O, ot = [], ft = !1, Ke = [], Qe = typeof document < "u", Be = Xt, Pt = ke || K ? "cssFloat" : "float", Vn = Qe && !An && !Xt && "draggable" in document.createElement("div"), jt = function() {
|
|
502
|
+
if (Qe) {
|
|
503
|
+
if (K)
|
|
504
|
+
return !1;
|
|
505
|
+
var t = document.createElement("x");
|
|
506
|
+
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
507
|
+
}
|
|
508
|
+
}(), zt = function(e, n) {
|
|
509
|
+
var o = h(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = ve(e, 0, n), a = ve(e, 1, n), l = i && h(i), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(a).width;
|
|
510
|
+
if (o.display === "flex")
|
|
511
|
+
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
512
|
+
if (o.display === "grid")
|
|
513
|
+
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
514
|
+
if (i && l.float && l.float !== "none") {
|
|
515
|
+
var f = l.float === "left" ? "left" : "right";
|
|
516
|
+
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
517
|
+
}
|
|
518
|
+
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && o[Pt] === "none" || a && o[Pt] === "none" && u + d > r) ? "vertical" : "horizontal";
|
|
519
|
+
}, Yn = function(e, n, o) {
|
|
520
|
+
var r = o ? e.left : e.top, i = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
521
|
+
return r === l || i === s || r + a / 2 === l + u / 2;
|
|
522
|
+
}, $n = function(e, n) {
|
|
523
|
+
var o;
|
|
524
|
+
return qe.some(function(r) {
|
|
525
|
+
var i = r[L].options.emptyInsertThreshold;
|
|
526
|
+
if (!(!i || yt(r))) {
|
|
527
|
+
var a = T(r), l = e >= a.left - i && e <= a.right + i, s = n >= a.top - i && n <= a.bottom + i;
|
|
528
|
+
if (l && s)
|
|
529
|
+
return o = r;
|
|
530
|
+
}
|
|
531
|
+
}), o;
|
|
532
|
+
}, Gt = function(e) {
|
|
533
|
+
function n(i, a) {
|
|
534
|
+
return function(l, s, u, d) {
|
|
535
|
+
var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
536
|
+
if (i == null && (a || f))
|
|
537
|
+
return !0;
|
|
538
|
+
if (i == null || i === !1)
|
|
539
|
+
return !1;
|
|
540
|
+
if (a && i === "clone")
|
|
541
|
+
return i;
|
|
542
|
+
if (typeof i == "function")
|
|
543
|
+
return n(i(l, s, u, d), a)(l, s, u, d);
|
|
544
|
+
var g = (a ? l : s).options.group.name;
|
|
545
|
+
return i === !0 || typeof i == "string" && i === g || i.join && i.indexOf(g) > -1;
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
var o = {}, r = e.group;
|
|
549
|
+
(!r || Ye(r) != "object") && (r = {
|
|
550
|
+
name: r
|
|
551
|
+
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
|
|
552
|
+
}, Ut = function() {
|
|
553
|
+
!jt && m && h(m, "display", "none");
|
|
554
|
+
}, qt = function() {
|
|
555
|
+
!jt && m && h(m, "display", "");
|
|
556
|
+
};
|
|
557
|
+
Qe && document.addEventListener("click", function(t) {
|
|
558
|
+
if (Ue)
|
|
559
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ue = !1, !1;
|
|
560
|
+
}, !0);
|
|
561
|
+
var le = function(e) {
|
|
562
|
+
if (c) {
|
|
563
|
+
e = e.touches ? e.touches[0] : e;
|
|
564
|
+
var n = $n(e.clientX, e.clientY);
|
|
565
|
+
if (n) {
|
|
566
|
+
var o = {};
|
|
567
|
+
for (var r in e)
|
|
568
|
+
e.hasOwnProperty(r) && (o[r] = e[r]);
|
|
569
|
+
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[L]._onDragOver(o);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}, Wn = function(e) {
|
|
573
|
+
c && c.parentNode[L]._isOutsideThisEl(e.target);
|
|
574
|
+
};
|
|
575
|
+
function p(t, e) {
|
|
576
|
+
if (!(t && t.nodeType && t.nodeType === 1))
|
|
577
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
578
|
+
this.el = t, this.options = e = q({}, e), t[L] = this;
|
|
579
|
+
var n = {
|
|
580
|
+
group: null,
|
|
581
|
+
sort: !0,
|
|
582
|
+
disabled: !1,
|
|
583
|
+
store: null,
|
|
584
|
+
handle: null,
|
|
585
|
+
draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
|
|
586
|
+
swapThreshold: 1,
|
|
587
|
+
// percentage; 0 <= x <= 1
|
|
588
|
+
invertSwap: !1,
|
|
589
|
+
// invert always
|
|
590
|
+
invertedSwapThreshold: null,
|
|
591
|
+
// will be set to same as swapThreshold if default
|
|
592
|
+
removeCloneOnHide: !0,
|
|
593
|
+
direction: function() {
|
|
594
|
+
return zt(t, this.options);
|
|
595
|
+
},
|
|
596
|
+
ghostClass: "sortable-ghost",
|
|
597
|
+
chosenClass: "sortable-chosen",
|
|
598
|
+
dragClass: "sortable-drag",
|
|
599
|
+
ignore: "a, img",
|
|
600
|
+
filter: null,
|
|
601
|
+
preventOnFilter: !0,
|
|
602
|
+
animation: 0,
|
|
603
|
+
easing: null,
|
|
604
|
+
setData: function(a, l) {
|
|
605
|
+
a.setData("Text", l.textContent);
|
|
606
|
+
},
|
|
607
|
+
dropBubble: !1,
|
|
608
|
+
dragoverBubble: !1,
|
|
609
|
+
dataIdAttr: "data-id",
|
|
610
|
+
delay: 0,
|
|
611
|
+
delayOnTouchOnly: !1,
|
|
612
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
613
|
+
forceFallback: !1,
|
|
614
|
+
fallbackClass: "sortable-fallback",
|
|
615
|
+
fallbackOnBody: !1,
|
|
616
|
+
fallbackTolerance: 0,
|
|
617
|
+
fallbackOffset: {
|
|
618
|
+
x: 0,
|
|
619
|
+
y: 0
|
|
620
|
+
},
|
|
621
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && !Te,
|
|
622
|
+
emptyInsertThreshold: 5
|
|
623
|
+
};
|
|
624
|
+
Fe.initializePlugins(this, t, n);
|
|
625
|
+
for (var o in n)
|
|
626
|
+
!(o in e) && (e[o] = n[o]);
|
|
627
|
+
Gt(e);
|
|
628
|
+
for (var r in this)
|
|
629
|
+
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
630
|
+
this.nativeDraggable = e.forceFallback ? !1 : Vn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, Mn());
|
|
631
|
+
}
|
|
632
|
+
p.prototype = /** @lends Sortable.prototype */
|
|
633
|
+
{
|
|
634
|
+
constructor: p,
|
|
635
|
+
_isOutsideThisEl: function(e) {
|
|
636
|
+
!this.el.contains(e) && e !== this.el && (fe = null);
|
|
637
|
+
},
|
|
638
|
+
_getDirection: function(e, n) {
|
|
639
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, c) : this.options.direction;
|
|
640
|
+
},
|
|
641
|
+
_onTapStart: function(e) {
|
|
642
|
+
if (e.cancelable) {
|
|
643
|
+
var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = r.filter;
|
|
644
|
+
if (Zn(o), !c && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Te && s && s.tagName.toUpperCase() === "SELECT") && (s = W(s, r.draggable, o, !1), !(s && s.animated) && $e !== s)) {
|
|
645
|
+
if (pe = R(s), Ie = R(s, r.draggable), typeof d == "function") {
|
|
646
|
+
if (d.call(this, e, s, this)) {
|
|
647
|
+
P({
|
|
648
|
+
sortable: n,
|
|
649
|
+
rootEl: u,
|
|
650
|
+
name: "filter",
|
|
651
|
+
targetEl: s,
|
|
652
|
+
toEl: o,
|
|
653
|
+
fromEl: o
|
|
654
|
+
}), N("filter", n, {
|
|
655
|
+
evt: e
|
|
656
|
+
}), i && e.cancelable && e.preventDefault();
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
} else if (d && (d = d.split(",").some(function(f) {
|
|
660
|
+
if (f = W(u, f.trim(), o, !1), f)
|
|
661
|
+
return P({
|
|
662
|
+
sortable: n,
|
|
663
|
+
rootEl: f,
|
|
664
|
+
name: "filter",
|
|
665
|
+
targetEl: s,
|
|
666
|
+
fromEl: o,
|
|
667
|
+
toEl: o
|
|
668
|
+
}), N("filter", n, {
|
|
669
|
+
evt: e
|
|
670
|
+
}), !0;
|
|
671
|
+
}), d)) {
|
|
672
|
+
i && e.cancelable && e.preventDefault();
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
r.handle && !W(u, r.handle, o, !1) || this._prepareDragStart(e, l, s);
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
_prepareDragStart: function(e, n, o) {
|
|
680
|
+
var r = this, i = r.el, a = r.options, l = i.ownerDocument, s;
|
|
681
|
+
if (o && !c && o.parentNode === i) {
|
|
682
|
+
var u = T(o);
|
|
683
|
+
if (E = i, c = o, D = c.parentNode, se = c.nextSibling, $e = o, Le = a.group, p.dragged = c, ae = {
|
|
684
|
+
target: c,
|
|
685
|
+
clientX: (n || e).clientX,
|
|
686
|
+
clientY: (n || e).clientY
|
|
687
|
+
}, Ot = ae.clientX - u.left, At = ae.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, c.style["will-change"] = "all", s = function() {
|
|
688
|
+
if (N("delayEnded", r, {
|
|
689
|
+
evt: e
|
|
690
|
+
}), p.eventCanceled) {
|
|
691
|
+
r._onDrop();
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
r._disableDelayedDragEvents(), !Ct && r.nativeDraggable && (c.draggable = !0), r._triggerDragStart(e, n), P({
|
|
695
|
+
sortable: r,
|
|
696
|
+
name: "choose",
|
|
697
|
+
originalEvent: e
|
|
698
|
+
}), F(c, a.chosenClass, !0);
|
|
699
|
+
}, a.ignore.split(",").forEach(function(d) {
|
|
700
|
+
Yt(c, d.trim(), rt);
|
|
701
|
+
}), y(l, "dragover", le), y(l, "mousemove", le), y(l, "touchmove", le), y(l, "mouseup", r._onDrop), y(l, "touchend", r._onDrop), y(l, "touchcancel", r._onDrop), Ct && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), N("delayStart", this, {
|
|
702
|
+
evt: e
|
|
703
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(ke || K))) {
|
|
704
|
+
if (p.eventCanceled) {
|
|
705
|
+
this._onDrop();
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
y(l, "mouseup", r._disableDelayedDrag), y(l, "touchend", r._disableDelayedDrag), y(l, "touchcancel", r._disableDelayedDrag), y(l, "mousemove", r._delayedDragTouchMoveHandler), y(l, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && y(l, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
709
|
+
} else
|
|
710
|
+
s();
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
_delayedDragTouchMoveHandler: function(e) {
|
|
714
|
+
var n = e.touches ? e.touches[0] : e;
|
|
715
|
+
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
716
|
+
},
|
|
717
|
+
_disableDelayedDrag: function() {
|
|
718
|
+
c && rt(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
719
|
+
},
|
|
720
|
+
_disableDelayedDragEvents: function() {
|
|
721
|
+
var e = this.el.ownerDocument;
|
|
722
|
+
b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
723
|
+
},
|
|
724
|
+
_triggerDragStart: function(e, n) {
|
|
725
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : n ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(c, "dragend", this), y(E, "dragstart", this._onDragStart));
|
|
726
|
+
try {
|
|
727
|
+
document.selection ? He(function() {
|
|
728
|
+
document.selection.empty();
|
|
729
|
+
}) : window.getSelection().removeAllRanges();
|
|
730
|
+
} catch {
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
_dragStarted: function(e, n) {
|
|
734
|
+
if (he = !1, E && c) {
|
|
735
|
+
N("dragStarted", this, {
|
|
736
|
+
evt: n
|
|
737
|
+
}), this.nativeDraggable && y(document, "dragover", Wn);
|
|
738
|
+
var o = this.options;
|
|
739
|
+
!e && F(c, o.dragClass, !1), F(c, o.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
|
|
740
|
+
sortable: this,
|
|
741
|
+
name: "start",
|
|
742
|
+
originalEvent: n
|
|
743
|
+
});
|
|
744
|
+
} else
|
|
745
|
+
this._nulling();
|
|
746
|
+
},
|
|
747
|
+
_emulateDragOver: function() {
|
|
748
|
+
if (V) {
|
|
749
|
+
this._lastX = V.clientX, this._lastY = V.clientY, Ut();
|
|
750
|
+
for (var e = document.elementFromPoint(V.clientX, V.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(V.clientX, V.clientY), e !== n); )
|
|
751
|
+
n = e;
|
|
752
|
+
if (c.parentNode[L]._isOutsideThisEl(e), n)
|
|
753
|
+
do {
|
|
754
|
+
if (n[L]) {
|
|
755
|
+
var o = void 0;
|
|
756
|
+
if (o = n[L]._onDragOver({
|
|
757
|
+
clientX: V.clientX,
|
|
758
|
+
clientY: V.clientY,
|
|
759
|
+
target: e,
|
|
760
|
+
rootEl: n
|
|
761
|
+
}), o && !this.options.dragoverBubble)
|
|
762
|
+
break;
|
|
763
|
+
}
|
|
764
|
+
e = n;
|
|
765
|
+
} while (n = n.parentNode);
|
|
766
|
+
qt();
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
_onTouchMove: function(e) {
|
|
770
|
+
if (ae) {
|
|
771
|
+
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = m && me(m, !0), l = m && a && a.a, s = m && a && a.d, u = Be && O && It(O), d = (i.clientX - ae.clientX + r.x) / (l || 1) + (u ? u[0] - ot[0] : 0) / (l || 1), f = (i.clientY - ae.clientY + r.y) / (s || 1) + (u ? u[1] - ot[1] : 0) / (s || 1);
|
|
772
|
+
if (!p.active && !he) {
|
|
773
|
+
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
774
|
+
return;
|
|
775
|
+
this._onDragStart(e, !0);
|
|
776
|
+
}
|
|
777
|
+
if (m) {
|
|
778
|
+
a ? (a.e += d - (tt || 0), a.f += f - (nt || 0)) : a = {
|
|
779
|
+
a: 1,
|
|
780
|
+
b: 0,
|
|
781
|
+
c: 0,
|
|
782
|
+
d: 1,
|
|
783
|
+
e: d,
|
|
784
|
+
f
|
|
785
|
+
};
|
|
786
|
+
var g = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
787
|
+
h(m, "webkitTransform", g), h(m, "mozTransform", g), h(m, "msTransform", g), h(m, "transform", g), tt = d, nt = f, V = i;
|
|
788
|
+
}
|
|
789
|
+
e.cancelable && e.preventDefault();
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
_appendGhost: function() {
|
|
793
|
+
if (!m) {
|
|
794
|
+
var e = this.options.fallbackOnBody ? document.body : E, n = T(c, !0, Be, !0, e), o = this.options;
|
|
795
|
+
if (Be) {
|
|
796
|
+
for (O = e; h(O, "position") === "static" && h(O, "transform") === "none" && O !== document; )
|
|
797
|
+
O = O.parentNode;
|
|
798
|
+
O !== document.body && O !== document.documentElement ? (O === document && (O = H()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = H(), ot = It(O);
|
|
799
|
+
}
|
|
800
|
+
m = c.cloneNode(!0), F(m, o.ghostClass, !1), F(m, o.fallbackClass, !0), F(m, o.dragClass, !0), h(m, "transition", ""), h(m, "transform", ""), h(m, "box-sizing", "border-box"), h(m, "margin", 0), h(m, "top", n.top), h(m, "left", n.left), h(m, "width", n.width), h(m, "height", n.height), h(m, "opacity", "0.8"), h(m, "position", Be ? "absolute" : "fixed"), h(m, "zIndex", "100000"), h(m, "pointerEvents", "none"), p.ghost = m, e.appendChild(m), h(m, "transform-origin", Ot / parseInt(m.style.width) * 100 + "% " + At / parseInt(m.style.height) * 100 + "%");
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
_onDragStart: function(e, n) {
|
|
804
|
+
var o = this, r = e.dataTransfer, i = o.options;
|
|
805
|
+
if (N("dragStart", this, {
|
|
806
|
+
evt: e
|
|
807
|
+
}), p.eventCanceled) {
|
|
808
|
+
this._onDrop();
|
|
809
|
+
return;
|
|
810
|
+
}
|
|
811
|
+
N("setupClone", this), p.eventCanceled || (S = Ht(c), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), F(S, this.options.chosenClass, !1), p.clone = S), o.cloneId = He(function() {
|
|
812
|
+
N("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || E.insertBefore(S, c), o._hideClone(), P({
|
|
813
|
+
sortable: o,
|
|
814
|
+
name: "clone"
|
|
815
|
+
}));
|
|
816
|
+
}), !n && F(c, i.dragClass, !0), n ? (Ue = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, c)), y(document, "drop", o), h(c, "transform", "translateZ(0)")), he = !0, o._dragStartId = He(o._dragStarted.bind(o, n, e)), y(document, "selectstart", o), De = !0, Te && h(document.body, "user-select", "none");
|
|
817
|
+
},
|
|
818
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
819
|
+
_onDragOver: function(e) {
|
|
820
|
+
var n = this.el, o = e.target, r, i, a, l = this.options, s = l.group, u = p.active, d = Le === s, f = l.sort, g = I || u, w, v = this, _ = !1;
|
|
821
|
+
if (ft)
|
|
822
|
+
return;
|
|
823
|
+
function B(Ee, an) {
|
|
824
|
+
N(Ee, v, j({
|
|
825
|
+
evt: e,
|
|
826
|
+
isOwner: d,
|
|
827
|
+
axis: w ? "vertical" : "horizontal",
|
|
828
|
+
revert: a,
|
|
829
|
+
dragRect: r,
|
|
830
|
+
targetRect: i,
|
|
831
|
+
canSort: f,
|
|
832
|
+
fromSortable: g,
|
|
833
|
+
target: o,
|
|
834
|
+
completed: A,
|
|
835
|
+
onMove: function(Et, ln) {
|
|
836
|
+
return Xe(E, n, c, r, Et, T(Et), e, ln);
|
|
837
|
+
},
|
|
838
|
+
changed: X
|
|
839
|
+
}, an));
|
|
840
|
+
}
|
|
841
|
+
function z() {
|
|
842
|
+
B("dragOverAnimationCapture"), v.captureAnimationState(), v !== g && g.captureAnimationState();
|
|
843
|
+
}
|
|
844
|
+
function A(Ee) {
|
|
845
|
+
return B("dragOverCompleted", {
|
|
846
|
+
insertion: Ee
|
|
847
|
+
}), Ee && (d ? u._hideClone() : u._showClone(v), v !== g && (F(c, I ? I.options.ghostClass : u.options.ghostClass, !1), F(c, l.ghostClass, !0)), I !== v && v !== p.active ? I = v : v === p.active && I && (I = null), g === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
|
|
848
|
+
B("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
849
|
+
}), v !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (o === c && !c.animated || o === n && !o.animated) && (fe = null), !l.dragoverBubble && !e.rootEl && o !== document && (c.parentNode[L]._isOutsideThisEl(e.target), !Ee && le(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), _ = !0;
|
|
850
|
+
}
|
|
851
|
+
function X() {
|
|
852
|
+
M = R(c), J = R(c, l.draggable), P({
|
|
853
|
+
sortable: v,
|
|
854
|
+
name: "change",
|
|
855
|
+
toEl: n,
|
|
856
|
+
newIndex: M,
|
|
857
|
+
newDraggableIndex: J,
|
|
858
|
+
originalEvent: e
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = W(o, l.draggable, n, !0), B("dragOver"), p.eventCanceled)
|
|
862
|
+
return _;
|
|
863
|
+
if (c.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
|
|
864
|
+
return A(!1);
|
|
865
|
+
if (Ue = !1, u && !l.disabled && (d ? f || (a = D !== E) : I === this || (this.lastPutMode = Le.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
|
|
866
|
+
if (w = this._getDirection(e, o) === "vertical", r = T(c), B("dragOverValid"), p.eventCanceled)
|
|
867
|
+
return _;
|
|
868
|
+
if (a)
|
|
869
|
+
return D = E, z(), this._hideClone(), B("revert"), p.eventCanceled || (se ? E.insertBefore(c, se) : E.appendChild(c)), A(!0);
|
|
870
|
+
var Y = yt(n, l.draggable);
|
|
871
|
+
if (!Y || Gn(e, w, this) && !Y.animated) {
|
|
872
|
+
if (Y === c)
|
|
873
|
+
return A(!1);
|
|
874
|
+
if (Y && n === e.target && (o = Y), o && (i = T(o)), Xe(E, n, c, r, o, i, e, !!o) !== !1)
|
|
875
|
+
return z(), n.appendChild(c), D = n, X(), A(!0);
|
|
876
|
+
} else if (Y && zn(e, w, this)) {
|
|
877
|
+
var oe = ve(n, 0, l, !0);
|
|
878
|
+
if (oe === c)
|
|
879
|
+
return A(!1);
|
|
880
|
+
if (o = oe, i = T(o), Xe(E, n, c, r, o, i, e, !1) !== !1)
|
|
881
|
+
return z(), n.insertBefore(c, oe), D = n, X(), A(!0);
|
|
882
|
+
} else if (o.parentNode === n) {
|
|
883
|
+
i = T(o);
|
|
884
|
+
var $ = 0, re, be = c.parentNode !== n, k = !Yn(c.animated && c.toRect || r, o.animated && o.toRect || i, w), ye = w ? "top" : "left", Z = xt(o, "top", "top") || xt(c, "top", "top"), _e = Z ? Z.scrollTop : void 0;
|
|
885
|
+
fe !== o && (re = i[ye], Ae = !1, Re = !k && l.invertSwap || be), $ = Un(e, o, i, w, k ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Re, fe === o);
|
|
886
|
+
var G;
|
|
887
|
+
if ($ !== 0) {
|
|
888
|
+
var ie = R(c);
|
|
889
|
+
do
|
|
890
|
+
ie -= $, G = D.children[ie];
|
|
891
|
+
while (G && (h(G, "display") === "none" || G === m));
|
|
892
|
+
}
|
|
893
|
+
if ($ === 0 || G === o)
|
|
894
|
+
return A(!1);
|
|
895
|
+
fe = o, Oe = $;
|
|
896
|
+
var we = o.nextElementSibling, Q = !1;
|
|
897
|
+
Q = $ === 1;
|
|
898
|
+
var Me = Xe(E, n, c, r, o, i, e, Q);
|
|
899
|
+
if (Me !== !1)
|
|
900
|
+
return (Me === 1 || Me === -1) && (Q = Me === 1), ft = !0, setTimeout(jn, 30), z(), Q && !we ? n.appendChild(c) : o.parentNode.insertBefore(c, Q ? we : o), Z && Wt(Z, 0, _e - Z.scrollTop), D = c.parentNode, re !== void 0 && !Re && (We = Math.abs(re - T(o)[ye])), X(), A(!0);
|
|
901
|
+
}
|
|
902
|
+
if (n.contains(c))
|
|
903
|
+
return A(!1);
|
|
904
|
+
}
|
|
905
|
+
return !1;
|
|
906
|
+
},
|
|
907
|
+
_ignoreWhileAnimating: null,
|
|
908
|
+
_offMoveEvents: function() {
|
|
909
|
+
b(document, "mousemove", this._onTouchMove), b(document, "touchmove", this._onTouchMove), b(document, "pointermove", this._onTouchMove), b(document, "dragover", le), b(document, "mousemove", le), b(document, "touchmove", le);
|
|
910
|
+
},
|
|
911
|
+
_offUpEvents: function() {
|
|
912
|
+
var e = this.el.ownerDocument;
|
|
913
|
+
b(e, "mouseup", this._onDrop), b(e, "touchend", this._onDrop), b(e, "pointerup", this._onDrop), b(e, "touchcancel", this._onDrop), b(document, "selectstart", this);
|
|
914
|
+
},
|
|
915
|
+
_onDrop: function(e) {
|
|
916
|
+
var n = this.el, o = this.options;
|
|
917
|
+
if (M = R(c), J = R(c, o.draggable), N("drop", this, {
|
|
918
|
+
evt: e
|
|
919
|
+
}), D = c && c.parentNode, M = R(c), J = R(c, o.draggable), p.eventCanceled) {
|
|
920
|
+
this._nulling();
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
he = !1, Re = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Te && h(document.body, "user-select", ""), h(c, "transform", ""), e && (De && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (E === D || I && I.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), c && (this.nativeDraggable && b(c, "dragend", this), rt(c), c.style["will-change"] = "", De && !he && F(c, I ? I.options.ghostClass : this.options.ghostClass, !1), F(c, this.options.chosenClass, !1), P({
|
|
924
|
+
sortable: this,
|
|
925
|
+
name: "unchoose",
|
|
926
|
+
toEl: D,
|
|
927
|
+
newIndex: null,
|
|
928
|
+
newDraggableIndex: null,
|
|
929
|
+
originalEvent: e
|
|
930
|
+
}), E !== D ? (M >= 0 && (P({
|
|
931
|
+
rootEl: D,
|
|
932
|
+
name: "add",
|
|
933
|
+
toEl: D,
|
|
934
|
+
fromEl: E,
|
|
935
|
+
originalEvent: e
|
|
936
|
+
}), P({
|
|
937
|
+
sortable: this,
|
|
938
|
+
name: "remove",
|
|
939
|
+
toEl: D,
|
|
940
|
+
originalEvent: e
|
|
941
|
+
}), P({
|
|
942
|
+
rootEl: D,
|
|
943
|
+
name: "sort",
|
|
944
|
+
toEl: D,
|
|
945
|
+
fromEl: E,
|
|
946
|
+
originalEvent: e
|
|
947
|
+
}), P({
|
|
948
|
+
sortable: this,
|
|
949
|
+
name: "sort",
|
|
950
|
+
toEl: D,
|
|
951
|
+
originalEvent: e
|
|
952
|
+
})), I && I.save()) : M !== pe && M >= 0 && (P({
|
|
953
|
+
sortable: this,
|
|
954
|
+
name: "update",
|
|
955
|
+
toEl: D,
|
|
956
|
+
originalEvent: e
|
|
957
|
+
}), P({
|
|
958
|
+
sortable: this,
|
|
959
|
+
name: "sort",
|
|
960
|
+
toEl: D,
|
|
961
|
+
originalEvent: e
|
|
962
|
+
})), p.active && ((M == null || M === -1) && (M = pe, J = Ie), P({
|
|
963
|
+
sortable: this,
|
|
964
|
+
name: "end",
|
|
965
|
+
toEl: D,
|
|
966
|
+
originalEvent: e
|
|
967
|
+
}), this.save()))), this._nulling();
|
|
968
|
+
},
|
|
969
|
+
_nulling: function() {
|
|
970
|
+
N("nulling", this), E = c = D = m = se = S = $e = ee = ae = V = De = M = J = pe = Ie = fe = Oe = I = Le = p.dragged = p.ghost = p.clone = p.active = null, Ke.forEach(function(e) {
|
|
971
|
+
e.checked = !0;
|
|
972
|
+
}), Ke.length = tt = nt = 0;
|
|
973
|
+
},
|
|
974
|
+
handleEvent: function(e) {
|
|
975
|
+
switch (e.type) {
|
|
976
|
+
case "drop":
|
|
977
|
+
case "dragend":
|
|
978
|
+
this._onDrop(e);
|
|
979
|
+
break;
|
|
980
|
+
case "dragenter":
|
|
981
|
+
case "dragover":
|
|
982
|
+
c && (this._onDragOver(e), Hn(e));
|
|
983
|
+
break;
|
|
984
|
+
case "selectstart":
|
|
985
|
+
e.preventDefault();
|
|
986
|
+
break;
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
/**
|
|
990
|
+
* Serializes the item into an array of string.
|
|
991
|
+
* @returns {String[]}
|
|
992
|
+
*/
|
|
993
|
+
toArray: function() {
|
|
994
|
+
for (var e = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
|
|
995
|
+
n = o[r], W(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || Kn(n));
|
|
996
|
+
return e;
|
|
997
|
+
},
|
|
998
|
+
/**
|
|
999
|
+
* Sorts the elements according to the array.
|
|
1000
|
+
* @param {String[]} order order of the items
|
|
1001
|
+
*/
|
|
1002
|
+
sort: function(e, n) {
|
|
1003
|
+
var o = {}, r = this.el;
|
|
1004
|
+
this.toArray().forEach(function(i, a) {
|
|
1005
|
+
var l = r.children[a];
|
|
1006
|
+
W(l, this.options.draggable, r, !1) && (o[i] = l);
|
|
1007
|
+
}, this), n && this.captureAnimationState(), e.forEach(function(i) {
|
|
1008
|
+
o[i] && (r.removeChild(o[i]), r.appendChild(o[i]));
|
|
1009
|
+
}), n && this.animateAll();
|
|
1010
|
+
},
|
|
1011
|
+
/**
|
|
1012
|
+
* Save the current sorting
|
|
1013
|
+
*/
|
|
1014
|
+
save: function() {
|
|
1015
|
+
var e = this.options.store;
|
|
1016
|
+
e && e.set && e.set(this);
|
|
1017
|
+
},
|
|
1018
|
+
/**
|
|
1019
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
1020
|
+
* @param {HTMLElement} el
|
|
1021
|
+
* @param {String} [selector] default: `options.draggable`
|
|
1022
|
+
* @returns {HTMLElement|null}
|
|
1023
|
+
*/
|
|
1024
|
+
closest: function(e, n) {
|
|
1025
|
+
return W(e, n || this.options.draggable, this.el, !1);
|
|
1026
|
+
},
|
|
1027
|
+
/**
|
|
1028
|
+
* Set/get option
|
|
1029
|
+
* @param {string} name
|
|
1030
|
+
* @param {*} [value]
|
|
1031
|
+
* @returns {*}
|
|
1032
|
+
*/
|
|
1033
|
+
option: function(e, n) {
|
|
1034
|
+
var o = this.options;
|
|
1035
|
+
if (n === void 0)
|
|
1036
|
+
return o[e];
|
|
1037
|
+
var r = Fe.modifyOption(this, e, n);
|
|
1038
|
+
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && Gt(o);
|
|
1039
|
+
},
|
|
1040
|
+
/**
|
|
1041
|
+
* Destroy
|
|
1042
|
+
*/
|
|
1043
|
+
destroy: function() {
|
|
1044
|
+
N("destroy", this);
|
|
1045
|
+
var e = this.el;
|
|
1046
|
+
e[L] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
1047
|
+
n.removeAttribute("draggable");
|
|
1048
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), qe.splice(qe.indexOf(this.el), 1), this.el = e = null;
|
|
1049
|
+
},
|
|
1050
|
+
_hideClone: function() {
|
|
1051
|
+
if (!ee) {
|
|
1052
|
+
if (N("hideClone", this), p.eventCanceled)
|
|
1053
|
+
return;
|
|
1054
|
+
h(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), ee = !0;
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
_showClone: function(e) {
|
|
1058
|
+
if (e.lastPutMode !== "clone") {
|
|
1059
|
+
this._hideClone();
|
|
1060
|
+
return;
|
|
1061
|
+
}
|
|
1062
|
+
if (ee) {
|
|
1063
|
+
if (N("showClone", this), p.eventCanceled)
|
|
1064
|
+
return;
|
|
1065
|
+
c.parentNode == E && !this.options.group.revertClone ? E.insertBefore(S, c) : se ? E.insertBefore(S, se) : E.appendChild(S), this.options.group.revertClone && this.animate(c, S), h(S, "display", ""), ee = !1;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
function Hn(t) {
|
|
1070
|
+
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1071
|
+
}
|
|
1072
|
+
function Xe(t, e, n, o, r, i, a, l) {
|
|
1073
|
+
var s, u = t[L], d = u.options.onMove, f;
|
|
1074
|
+
return window.CustomEvent && !K && !ke ? s = new CustomEvent("move", {
|
|
1075
|
+
bubbles: !0,
|
|
1076
|
+
cancelable: !0
|
|
1077
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = r || e, s.relatedRect = i || T(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), d && (f = d.call(u, s, a)), f;
|
|
1078
|
+
}
|
|
1079
|
+
function rt(t) {
|
|
1080
|
+
t.draggable = !1;
|
|
1081
|
+
}
|
|
1082
|
+
function jn() {
|
|
1083
|
+
ft = !1;
|
|
1084
|
+
}
|
|
1085
|
+
function zn(t, e, n) {
|
|
1086
|
+
var o = T(ve(n.el, 0, n.options, !0)), r = 10;
|
|
1087
|
+
return e ? t.clientX < o.left - r || t.clientY < o.top && t.clientX < o.right : t.clientY < o.top - r || t.clientY < o.bottom && t.clientX < o.left;
|
|
1088
|
+
}
|
|
1089
|
+
function Gn(t, e, n) {
|
|
1090
|
+
var o = T(yt(n.el, n.options.draggable)), r = 10;
|
|
1091
|
+
return e ? t.clientX > o.right + r || t.clientX <= o.right && t.clientY > o.bottom && t.clientX >= o.left : t.clientX > o.right && t.clientY > o.top || t.clientX <= o.right && t.clientY > o.bottom + r;
|
|
1092
|
+
}
|
|
1093
|
+
function Un(t, e, n, o, r, i, a, l) {
|
|
1094
|
+
var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, d = o ? n.top : n.left, f = o ? n.bottom : n.right, g = !1;
|
|
1095
|
+
if (!a) {
|
|
1096
|
+
if (l && We < u * r) {
|
|
1097
|
+
if (!Ae && (Oe === 1 ? s > d + u * i / 2 : s < f - u * i / 2) && (Ae = !0), Ae)
|
|
1098
|
+
g = !0;
|
|
1099
|
+
else if (Oe === 1 ? s < d + We : s > f - We)
|
|
1100
|
+
return -Oe;
|
|
1101
|
+
} else if (s > d + u * (1 - r) / 2 && s < f - u * (1 - r) / 2)
|
|
1102
|
+
return qn(e);
|
|
1103
|
+
}
|
|
1104
|
+
return g = g || a, g && (s < d + u * i / 2 || s > f - u * i / 2) ? s > d + u / 2 ? 1 : -1 : 0;
|
|
1105
|
+
}
|
|
1106
|
+
function qn(t) {
|
|
1107
|
+
return R(c) < R(t) ? 1 : -1;
|
|
1108
|
+
}
|
|
1109
|
+
function Kn(t) {
|
|
1110
|
+
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1111
|
+
o += e.charCodeAt(n);
|
|
1112
|
+
return o.toString(36);
|
|
1113
|
+
}
|
|
1114
|
+
function Zn(t) {
|
|
1115
|
+
Ke.length = 0;
|
|
1116
|
+
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1117
|
+
var o = e[n];
|
|
1118
|
+
o.checked && Ke.push(o);
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
function He(t) {
|
|
1122
|
+
return setTimeout(t, 0);
|
|
1123
|
+
}
|
|
1124
|
+
function ht(t) {
|
|
1125
|
+
return clearTimeout(t);
|
|
1126
|
+
}
|
|
1127
|
+
Qe && y(document, "touchmove", function(t) {
|
|
1128
|
+
(p.active || he) && t.cancelable && t.preventDefault();
|
|
1129
|
+
});
|
|
1130
|
+
p.utils = {
|
|
1131
|
+
on: y,
|
|
1132
|
+
off: b,
|
|
1133
|
+
css: h,
|
|
1134
|
+
find: Yt,
|
|
1135
|
+
is: function(e, n) {
|
|
1136
|
+
return !!W(e, n, e, !1);
|
|
1137
|
+
},
|
|
1138
|
+
extend: kn,
|
|
1139
|
+
throttle: $t,
|
|
1140
|
+
closest: W,
|
|
1141
|
+
toggleClass: F,
|
|
1142
|
+
clone: Ht,
|
|
1143
|
+
index: R,
|
|
1144
|
+
nextTick: He,
|
|
1145
|
+
cancelNextTick: ht,
|
|
1146
|
+
detectDirection: zt,
|
|
1147
|
+
getChild: ve
|
|
1148
|
+
};
|
|
1149
|
+
p.get = function(t) {
|
|
1150
|
+
return t[L];
|
|
1151
|
+
};
|
|
1152
|
+
p.mount = function() {
|
|
1153
|
+
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
1154
|
+
e[n] = arguments[n];
|
|
1155
|
+
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
1156
|
+
if (!o.prototype || !o.prototype.constructor)
|
|
1157
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1158
|
+
o.utils && (p.utils = j(j({}, p.utils), o.utils)), Fe.mount(o);
|
|
1159
|
+
});
|
|
1160
|
+
};
|
|
1161
|
+
p.create = function(t, e) {
|
|
1162
|
+
return new p(t, e);
|
|
1163
|
+
};
|
|
1164
|
+
p.version = On;
|
|
1165
|
+
var C = [], Se, pt, mt = !1, it, at, Ze, Ce;
|
|
1166
|
+
function Qn() {
|
|
1167
|
+
function t() {
|
|
1168
|
+
this.defaults = {
|
|
1169
|
+
scroll: !0,
|
|
1170
|
+
forceAutoScrollFallback: !1,
|
|
1171
|
+
scrollSensitivity: 30,
|
|
1172
|
+
scrollSpeed: 10,
|
|
1173
|
+
bubbleScroll: !0
|
|
1174
|
+
};
|
|
1175
|
+
for (var e in this)
|
|
1176
|
+
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1177
|
+
}
|
|
1178
|
+
return t.prototype = {
|
|
1179
|
+
dragStarted: function(n) {
|
|
1180
|
+
var o = n.originalEvent;
|
|
1181
|
+
this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? y(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? y(document, "touchmove", this._handleFallbackAutoScroll) : y(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1182
|
+
},
|
|
1183
|
+
dragOverCompleted: function(n) {
|
|
1184
|
+
var o = n.originalEvent;
|
|
1185
|
+
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1186
|
+
},
|
|
1187
|
+
drop: function() {
|
|
1188
|
+
this.sortable.nativeDraggable ? b(document, "dragover", this._handleAutoScroll) : (b(document, "pointermove", this._handleFallbackAutoScroll), b(document, "touchmove", this._handleFallbackAutoScroll), b(document, "mousemove", this._handleFallbackAutoScroll)), Nt(), je(), Fn();
|
|
1189
|
+
},
|
|
1190
|
+
nulling: function() {
|
|
1191
|
+
Ze = pt = Se = mt = Ce = it = at = null, C.length = 0;
|
|
1192
|
+
},
|
|
1193
|
+
_handleFallbackAutoScroll: function(n) {
|
|
1194
|
+
this._handleAutoScroll(n, !0);
|
|
1195
|
+
},
|
|
1196
|
+
_handleAutoScroll: function(n, o) {
|
|
1197
|
+
var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, a);
|
|
1198
|
+
if (Ze = n, o || this.options.forceAutoScrollFallback || ke || K || Te) {
|
|
1199
|
+
lt(n, this.options, l, o);
|
|
1200
|
+
var s = te(l, !0);
|
|
1201
|
+
mt && (!Ce || i !== it || a !== at) && (Ce && Nt(), Ce = setInterval(function() {
|
|
1202
|
+
var u = te(document.elementFromPoint(i, a), !0);
|
|
1203
|
+
u !== s && (s = u, je()), lt(n, r.options, u, o);
|
|
1204
|
+
}, 10), it = i, at = a);
|
|
1205
|
+
} else {
|
|
1206
|
+
if (!this.options.bubbleScroll || te(l, !0) === H()) {
|
|
1207
|
+
je();
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
lt(n, this.options, te(l, !1), !1);
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
}, q(t, {
|
|
1214
|
+
pluginName: "scroll",
|
|
1215
|
+
initializeByDefault: !0
|
|
1216
|
+
});
|
|
1217
|
+
}
|
|
1218
|
+
function je() {
|
|
1219
|
+
C.forEach(function(t) {
|
|
1220
|
+
clearInterval(t.pid);
|
|
1221
|
+
}), C = [];
|
|
1222
|
+
}
|
|
1223
|
+
function Nt() {
|
|
1224
|
+
clearInterval(Ce);
|
|
1225
|
+
}
|
|
1226
|
+
var lt = $t(function(t, e, n, o) {
|
|
1227
|
+
if (e.scroll) {
|
|
1228
|
+
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = H(), u = !1, d;
|
|
1229
|
+
pt !== n && (pt = n, je(), Se = e.scroll, d = e.scrollFn, Se === !0 && (Se = te(n, !0)));
|
|
1230
|
+
var f = 0, g = Se;
|
|
1231
|
+
do {
|
|
1232
|
+
var w = g, v = T(w), _ = v.top, B = v.bottom, z = v.left, A = v.right, X = v.width, Y = v.height, oe = void 0, $ = void 0, re = w.scrollWidth, be = w.scrollHeight, k = h(w), ye = w.scrollLeft, Z = w.scrollTop;
|
|
1233
|
+
w === s ? (oe = X < re && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), $ = Y < be && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (oe = X < re && (k.overflowX === "auto" || k.overflowX === "scroll"), $ = Y < be && (k.overflowY === "auto" || k.overflowY === "scroll"));
|
|
1234
|
+
var _e = oe && (Math.abs(A - r) <= a && ye + X < re) - (Math.abs(z - r) <= a && !!ye), G = $ && (Math.abs(B - i) <= a && Z + Y < be) - (Math.abs(_ - i) <= a && !!Z);
|
|
1235
|
+
if (!C[f])
|
|
1236
|
+
for (var ie = 0; ie <= f; ie++)
|
|
1237
|
+
C[ie] || (C[ie] = {});
|
|
1238
|
+
(C[f].vx != _e || C[f].vy != G || C[f].el !== w) && (C[f].el = w, C[f].vx = _e, C[f].vy = G, clearInterval(C[f].pid), (_e != 0 || G != 0) && (u = !0, C[f].pid = setInterval((function() {
|
|
1239
|
+
o && this.layer === 0 && p.active._onTouchMove(Ze);
|
|
1240
|
+
var we = C[this.layer].vy ? C[this.layer].vy * l : 0, Q = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1241
|
+
typeof d == "function" && d.call(p.dragged.parentNode[L], Q, we, t, Ze, C[this.layer].el) !== "continue" || Wt(C[this.layer].el, Q, we);
|
|
1242
|
+
}).bind({
|
|
1243
|
+
layer: f
|
|
1244
|
+
}), 24))), f++;
|
|
1245
|
+
} while (e.bubbleScroll && g !== s && (g = te(g, !1)));
|
|
1246
|
+
mt = u;
|
|
1247
|
+
}
|
|
1248
|
+
}, 30), Kt = function(e) {
|
|
1249
|
+
var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1250
|
+
if (n) {
|
|
1251
|
+
var u = o || i;
|
|
1252
|
+
l();
|
|
1253
|
+
var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(d.clientX, d.clientY);
|
|
1254
|
+
s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
|
|
1255
|
+
dragEl: r,
|
|
1256
|
+
putSortable: o
|
|
1257
|
+
}));
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
function _t() {
|
|
1261
|
+
}
|
|
1262
|
+
_t.prototype = {
|
|
1263
|
+
startIndex: null,
|
|
1264
|
+
dragStart: function(e) {
|
|
1265
|
+
var n = e.oldDraggableIndex;
|
|
1266
|
+
this.startIndex = n;
|
|
1267
|
+
},
|
|
1268
|
+
onSpill: function(e) {
|
|
1269
|
+
var n = e.dragEl, o = e.putSortable;
|
|
1270
|
+
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1271
|
+
var r = ve(this.sortable.el, this.startIndex, this.options);
|
|
1272
|
+
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1273
|
+
},
|
|
1274
|
+
drop: Kt
|
|
1275
|
+
};
|
|
1276
|
+
q(_t, {
|
|
1277
|
+
pluginName: "revertOnSpill"
|
|
1278
|
+
});
|
|
1279
|
+
function wt() {
|
|
1280
|
+
}
|
|
1281
|
+
wt.prototype = {
|
|
1282
|
+
onSpill: function(e) {
|
|
1283
|
+
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1284
|
+
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1285
|
+
},
|
|
1286
|
+
drop: Kt
|
|
1287
|
+
};
|
|
1288
|
+
q(wt, {
|
|
1289
|
+
pluginName: "removeOnSpill"
|
|
1290
|
+
});
|
|
1291
|
+
p.mount(new Qn());
|
|
1292
|
+
p.mount(wt, _t);
|
|
1293
|
+
function st(t) {
|
|
1294
|
+
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
1295
|
+
}
|
|
1296
|
+
function kt(t, e, n) {
|
|
1297
|
+
const o = n === 0 ? t.children[0] : t.children[n - 1].nextSibling;
|
|
1298
|
+
t.insertBefore(e, o);
|
|
1299
|
+
}
|
|
1300
|
+
function Jn() {
|
|
1301
|
+
return typeof window < "u" ? window.console : global.console;
|
|
1302
|
+
}
|
|
1303
|
+
const eo = Jn();
|
|
1304
|
+
function to(t) {
|
|
1305
|
+
const e = /* @__PURE__ */ Object.create(null);
|
|
1306
|
+
return function(o) {
|
|
1307
|
+
return e[o] || (e[o] = t(o));
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
const no = /-(\w)/g, oo = to((t) => t.replace(no, (e, n) => n.toUpperCase())), Zt = ["Start", "Add", "Remove", "Update", "End"], Qt = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], Jt = ["Move"], ro = [Jt, Zt, Qt].flatMap((t) => t).map((t) => `on${t}`), gt = {
|
|
1311
|
+
manage: Jt,
|
|
1312
|
+
manageAndEmit: Zt,
|
|
1313
|
+
emit: Qt
|
|
1314
|
+
};
|
|
1315
|
+
function io(t) {
|
|
1316
|
+
return ro.indexOf(t) !== -1;
|
|
1317
|
+
}
|
|
1318
|
+
const ao = [
|
|
1319
|
+
"a",
|
|
1320
|
+
"abbr",
|
|
1321
|
+
"address",
|
|
1322
|
+
"area",
|
|
1323
|
+
"article",
|
|
1324
|
+
"aside",
|
|
1325
|
+
"audio",
|
|
1326
|
+
"b",
|
|
1327
|
+
"base",
|
|
1328
|
+
"bdi",
|
|
1329
|
+
"bdo",
|
|
1330
|
+
"blockquote",
|
|
1331
|
+
"body",
|
|
1332
|
+
"br",
|
|
1333
|
+
"button",
|
|
1334
|
+
"canvas",
|
|
1335
|
+
"caption",
|
|
1336
|
+
"cite",
|
|
1337
|
+
"code",
|
|
1338
|
+
"col",
|
|
1339
|
+
"colgroup",
|
|
1340
|
+
"data",
|
|
1341
|
+
"datalist",
|
|
1342
|
+
"dd",
|
|
1343
|
+
"del",
|
|
1344
|
+
"details",
|
|
1345
|
+
"dfn",
|
|
1346
|
+
"dialog",
|
|
1347
|
+
"div",
|
|
1348
|
+
"dl",
|
|
1349
|
+
"dt",
|
|
1350
|
+
"em",
|
|
1351
|
+
"embed",
|
|
1352
|
+
"fieldset",
|
|
1353
|
+
"figcaption",
|
|
1354
|
+
"figure",
|
|
1355
|
+
"footer",
|
|
1356
|
+
"form",
|
|
1357
|
+
"h1",
|
|
1358
|
+
"h2",
|
|
1359
|
+
"h3",
|
|
1360
|
+
"h4",
|
|
1361
|
+
"h5",
|
|
1362
|
+
"h6",
|
|
1363
|
+
"head",
|
|
1364
|
+
"header",
|
|
1365
|
+
"hgroup",
|
|
1366
|
+
"hr",
|
|
1367
|
+
"html",
|
|
1368
|
+
"i",
|
|
1369
|
+
"iframe",
|
|
1370
|
+
"img",
|
|
1371
|
+
"input",
|
|
1372
|
+
"ins",
|
|
1373
|
+
"kbd",
|
|
1374
|
+
"label",
|
|
1375
|
+
"legend",
|
|
1376
|
+
"li",
|
|
1377
|
+
"link",
|
|
1378
|
+
"main",
|
|
1379
|
+
"map",
|
|
1380
|
+
"mark",
|
|
1381
|
+
"math",
|
|
1382
|
+
"menu",
|
|
1383
|
+
"menuitem",
|
|
1384
|
+
"meta",
|
|
1385
|
+
"meter",
|
|
1386
|
+
"nav",
|
|
1387
|
+
"noscript",
|
|
1388
|
+
"object",
|
|
1389
|
+
"ol",
|
|
1390
|
+
"optgroup",
|
|
1391
|
+
"option",
|
|
1392
|
+
"output",
|
|
1393
|
+
"p",
|
|
1394
|
+
"param",
|
|
1395
|
+
"picture",
|
|
1396
|
+
"pre",
|
|
1397
|
+
"progress",
|
|
1398
|
+
"q",
|
|
1399
|
+
"rb",
|
|
1400
|
+
"rp",
|
|
1401
|
+
"rt",
|
|
1402
|
+
"rtc",
|
|
1403
|
+
"ruby",
|
|
1404
|
+
"s",
|
|
1405
|
+
"samp",
|
|
1406
|
+
"script",
|
|
1407
|
+
"section",
|
|
1408
|
+
"select",
|
|
1409
|
+
"slot",
|
|
1410
|
+
"small",
|
|
1411
|
+
"source",
|
|
1412
|
+
"span",
|
|
1413
|
+
"strong",
|
|
1414
|
+
"style",
|
|
1415
|
+
"sub",
|
|
1416
|
+
"summary",
|
|
1417
|
+
"sup",
|
|
1418
|
+
"svg",
|
|
1419
|
+
"table",
|
|
1420
|
+
"tbody",
|
|
1421
|
+
"td",
|
|
1422
|
+
"template",
|
|
1423
|
+
"textarea",
|
|
1424
|
+
"tfoot",
|
|
1425
|
+
"th",
|
|
1426
|
+
"thead",
|
|
1427
|
+
"time",
|
|
1428
|
+
"title",
|
|
1429
|
+
"tr",
|
|
1430
|
+
"track",
|
|
1431
|
+
"u",
|
|
1432
|
+
"ul",
|
|
1433
|
+
"var",
|
|
1434
|
+
"video",
|
|
1435
|
+
"wbr"
|
|
1436
|
+
];
|
|
1437
|
+
function lo(t) {
|
|
1438
|
+
return ao.includes(t);
|
|
1439
|
+
}
|
|
1440
|
+
function so(t) {
|
|
1441
|
+
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1442
|
+
}
|
|
1443
|
+
function en(t) {
|
|
1444
|
+
return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
|
|
1445
|
+
}
|
|
1446
|
+
function tn(t) {
|
|
1447
|
+
return t.reduce((e, [n, o]) => (e[n] = o, e), {});
|
|
1448
|
+
}
|
|
1449
|
+
function uo({ $attrs: t, componentData: e = {} }) {
|
|
1450
|
+
return {
|
|
1451
|
+
...tn(
|
|
1452
|
+
Object.entries(t).filter(([o, r]) => en(o))
|
|
1453
|
+
),
|
|
1454
|
+
...e
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1457
|
+
function co({ $attrs: t, callBackBuilder: e }) {
|
|
1458
|
+
const n = tn(nn(t));
|
|
1459
|
+
Object.entries(e).forEach(([r, i]) => {
|
|
1460
|
+
gt[r].forEach((a) => {
|
|
1461
|
+
n[`on${a}`] = i(a);
|
|
1462
|
+
});
|
|
1463
|
+
});
|
|
1464
|
+
const o = `[data-draggable]${n.draggable || ""}`;
|
|
1465
|
+
return {
|
|
1466
|
+
...n,
|
|
1467
|
+
draggable: o
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
function nn(t) {
|
|
1471
|
+
return Object.entries(t).filter(([e, n]) => !en(e)).map(([e, n]) => [oo(e), n]).filter(([e, n]) => !io(e));
|
|
1472
|
+
}
|
|
1473
|
+
const Ft = ({ el: t }) => t, fo = (t, e) => t.__draggable_context = e, Mt = (t) => t.__draggable_context;
|
|
1474
|
+
class ho {
|
|
1475
|
+
constructor({
|
|
1476
|
+
nodes: { header: e, default: n, footer: o },
|
|
1477
|
+
root: r,
|
|
1478
|
+
realList: i
|
|
1479
|
+
}) {
|
|
1480
|
+
this.defaultNodes = n, this.children = [...e, ...n, ...o], this.externalComponent = r.externalComponent, this.rootTransition = r.transition, this.tag = r.tag, this.realList = i;
|
|
1481
|
+
}
|
|
1482
|
+
get _isRootComponent() {
|
|
1483
|
+
return this.externalComponent || this.rootTransition;
|
|
1484
|
+
}
|
|
1485
|
+
render(e, n) {
|
|
1486
|
+
const { tag: o, children: r, _isRootComponent: i } = this;
|
|
1487
|
+
return e(o, n, i ? { default: () => r } : r);
|
|
1488
|
+
}
|
|
1489
|
+
updated() {
|
|
1490
|
+
const { defaultNodes: e, realList: n } = this;
|
|
1491
|
+
e.forEach((o, r) => {
|
|
1492
|
+
fo(Ft(o), {
|
|
1493
|
+
element: n[r],
|
|
1494
|
+
index: r
|
|
1495
|
+
});
|
|
1496
|
+
});
|
|
1497
|
+
}
|
|
1498
|
+
getUnderlyingVm(e) {
|
|
1499
|
+
return Mt(e);
|
|
1500
|
+
}
|
|
1501
|
+
getVmIndexFromDomIndex(e, n) {
|
|
1502
|
+
const { defaultNodes: o } = this, { length: r } = o, i = n.children, a = i.item(e);
|
|
1503
|
+
if (a === null)
|
|
1504
|
+
return r;
|
|
1505
|
+
const l = Mt(a);
|
|
1506
|
+
if (l)
|
|
1507
|
+
return l.index;
|
|
1508
|
+
if (r === 0)
|
|
1509
|
+
return 0;
|
|
1510
|
+
const s = Ft(o[0]), u = [...i].findIndex(
|
|
1511
|
+
(d) => d === s
|
|
1512
|
+
);
|
|
1513
|
+
return e < u ? 0 : r;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
function po(t, e) {
|
|
1517
|
+
const n = t[e];
|
|
1518
|
+
return n ? n() : [];
|
|
1519
|
+
}
|
|
1520
|
+
function mo({ $slots: t, realList: e, getKey: n }) {
|
|
1521
|
+
const o = e || [], [r, i] = ["header", "footer"].map(
|
|
1522
|
+
(s) => po(t, s)
|
|
1523
|
+
), { item: a } = t;
|
|
1524
|
+
if (!a)
|
|
1525
|
+
throw new Error("draggable element must have an item slot");
|
|
1526
|
+
const l = o.flatMap(
|
|
1527
|
+
(s, u) => a({ element: s, index: u }).map((d) => (d.key = n(s), d.props = { ...d.props || {}, "data-draggable": !0 }, d))
|
|
1528
|
+
);
|
|
1529
|
+
if (l.length !== o.length)
|
|
1530
|
+
throw new Error("Item slot must have only one child");
|
|
1531
|
+
return {
|
|
1532
|
+
header: r,
|
|
1533
|
+
footer: i,
|
|
1534
|
+
default: l
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
function go(t) {
|
|
1538
|
+
const e = so(t), n = !lo(t) && !e;
|
|
1539
|
+
return {
|
|
1540
|
+
transition: e,
|
|
1541
|
+
externalComponent: n,
|
|
1542
|
+
tag: n ? ge(t) : e ? dn : t
|
|
1543
|
+
};
|
|
1544
|
+
}
|
|
1545
|
+
function vo({ $slots: t, tag: e, realList: n, getKey: o }) {
|
|
1546
|
+
const r = mo({ $slots: t, realList: n, getKey: o }), i = go(e);
|
|
1547
|
+
return new ho({ nodes: r, root: i, realList: n });
|
|
1548
|
+
}
|
|
1549
|
+
function on(t, e) {
|
|
1550
|
+
Rt(() => this.$emit(t.toLowerCase(), e));
|
|
1551
|
+
}
|
|
1552
|
+
function rn(t) {
|
|
1553
|
+
return (e, n) => {
|
|
1554
|
+
if (this.realList !== null)
|
|
1555
|
+
return this[`onDrag${t}`](e, n);
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
function bo(t) {
|
|
1559
|
+
const e = rn.call(this, t);
|
|
1560
|
+
return (n, o) => {
|
|
1561
|
+
e.call(this, n, o), on.call(this, t, n);
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
let ut = null;
|
|
1565
|
+
const yo = {
|
|
1566
|
+
list: {
|
|
1567
|
+
type: Array,
|
|
1568
|
+
required: !1,
|
|
1569
|
+
default: null
|
|
1570
|
+
},
|
|
1571
|
+
modelValue: {
|
|
1572
|
+
type: Array,
|
|
1573
|
+
required: !1,
|
|
1574
|
+
default: null
|
|
1575
|
+
},
|
|
1576
|
+
itemKey: {
|
|
1577
|
+
type: [String, Function],
|
|
1578
|
+
required: !0
|
|
1579
|
+
},
|
|
1580
|
+
clone: {
|
|
1581
|
+
type: Function,
|
|
1582
|
+
default: (t) => t
|
|
1583
|
+
},
|
|
1584
|
+
tag: {
|
|
1585
|
+
type: String,
|
|
1586
|
+
default: "div"
|
|
1587
|
+
},
|
|
1588
|
+
move: {
|
|
1589
|
+
type: Function,
|
|
1590
|
+
default: null
|
|
1591
|
+
},
|
|
1592
|
+
componentData: {
|
|
1593
|
+
type: Object,
|
|
1594
|
+
required: !1,
|
|
1595
|
+
default: null
|
|
1596
|
+
}
|
|
1597
|
+
}, _o = [
|
|
1598
|
+
"update:modelValue",
|
|
1599
|
+
"change",
|
|
1600
|
+
...[...gt.manageAndEmit, ...gt.emit].map((t) => t.toLowerCase())
|
|
1601
|
+
], wo = Ne({
|
|
1602
|
+
name: "draggable",
|
|
1603
|
+
inheritAttrs: !1,
|
|
1604
|
+
props: yo,
|
|
1605
|
+
emits: _o,
|
|
1606
|
+
data() {
|
|
1607
|
+
return {
|
|
1608
|
+
error: !1
|
|
1609
|
+
};
|
|
1610
|
+
},
|
|
1611
|
+
render() {
|
|
1612
|
+
try {
|
|
1613
|
+
this.error = !1;
|
|
1614
|
+
const { $slots: t, $attrs: e, tag: n, componentData: o, realList: r, getKey: i } = this, a = vo({
|
|
1615
|
+
$slots: t,
|
|
1616
|
+
tag: n,
|
|
1617
|
+
realList: r,
|
|
1618
|
+
getKey: i
|
|
1619
|
+
});
|
|
1620
|
+
this.componentStructure = a;
|
|
1621
|
+
const l = uo({ $attrs: e, componentData: o });
|
|
1622
|
+
return a.render(Dt, l);
|
|
1623
|
+
} catch (t) {
|
|
1624
|
+
return this.error = !0, Dt("pre", { style: { color: "red" } }, t.stack);
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
created() {
|
|
1628
|
+
this.list !== null && this.modelValue !== null && eo.error(
|
|
1629
|
+
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1630
|
+
);
|
|
1631
|
+
},
|
|
1632
|
+
mounted() {
|
|
1633
|
+
if (this.error)
|
|
1634
|
+
return;
|
|
1635
|
+
const { $attrs: t, $el: e, componentStructure: n } = this;
|
|
1636
|
+
n.updated();
|
|
1637
|
+
const o = co({
|
|
1638
|
+
$attrs: t,
|
|
1639
|
+
callBackBuilder: {
|
|
1640
|
+
manageAndEmit: (i) => bo.call(this, i),
|
|
1641
|
+
emit: (i) => on.bind(this, i),
|
|
1642
|
+
manage: (i) => rn.call(this, i)
|
|
1643
|
+
}
|
|
1644
|
+
}), r = e.nodeType === 1 ? e : e.parentElement;
|
|
1645
|
+
this._sortable = new p(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
|
|
1646
|
+
},
|
|
1647
|
+
updated() {
|
|
1648
|
+
this.componentStructure.updated();
|
|
1649
|
+
},
|
|
1650
|
+
beforeUnmount() {
|
|
1651
|
+
this._sortable !== void 0 && this._sortable.destroy();
|
|
1652
|
+
},
|
|
1653
|
+
computed: {
|
|
1654
|
+
realList() {
|
|
1655
|
+
const { list: t } = this;
|
|
1656
|
+
return t || this.modelValue;
|
|
1657
|
+
},
|
|
1658
|
+
getKey() {
|
|
1659
|
+
const { itemKey: t } = this;
|
|
1660
|
+
return typeof t == "function" ? t : (e) => e[t];
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
watch: {
|
|
1664
|
+
$attrs: {
|
|
1665
|
+
handler(t) {
|
|
1666
|
+
const { _sortable: e } = this;
|
|
1667
|
+
e && nn(t).forEach(([n, o]) => {
|
|
1668
|
+
e.option(n, o);
|
|
1669
|
+
});
|
|
1670
|
+
},
|
|
1671
|
+
deep: !0
|
|
1672
|
+
}
|
|
1673
|
+
},
|
|
1674
|
+
methods: {
|
|
1675
|
+
getUnderlyingVm(t) {
|
|
1676
|
+
return this.componentStructure.getUnderlyingVm(t) || null;
|
|
1677
|
+
},
|
|
1678
|
+
getUnderlyingPotencialDraggableComponent(t) {
|
|
1679
|
+
return t.__draggable_component__;
|
|
1680
|
+
},
|
|
1681
|
+
emitChanges(t) {
|
|
1682
|
+
Rt(() => this.$emit("change", t));
|
|
1683
|
+
},
|
|
1684
|
+
alterList(t) {
|
|
1685
|
+
if (this.list) {
|
|
1686
|
+
t(this.list);
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
const e = [...this.modelValue];
|
|
1690
|
+
t(e), this.$emit("update:modelValue", e);
|
|
1691
|
+
},
|
|
1692
|
+
spliceList() {
|
|
1693
|
+
const t = (e) => e.splice(...arguments);
|
|
1694
|
+
this.alterList(t);
|
|
1695
|
+
},
|
|
1696
|
+
updatePosition(t, e) {
|
|
1697
|
+
const n = (o) => o.splice(e, 0, o.splice(t, 1)[0]);
|
|
1698
|
+
this.alterList(n);
|
|
1699
|
+
},
|
|
1700
|
+
getRelatedContextFromMoveEvent({ to: t, related: e }) {
|
|
1701
|
+
const n = this.getUnderlyingPotencialDraggableComponent(t);
|
|
1702
|
+
if (!n)
|
|
1703
|
+
return { component: n };
|
|
1704
|
+
const o = n.realList, r = { list: o, component: n };
|
|
1705
|
+
return t !== e && o ? { ...n.getUnderlyingVm(e) || {}, ...r } : r;
|
|
1706
|
+
},
|
|
1707
|
+
getVmIndexFromDomIndex(t) {
|
|
1708
|
+
return this.componentStructure.getVmIndexFromDomIndex(
|
|
1709
|
+
t,
|
|
1710
|
+
this.targetDomElement
|
|
1711
|
+
);
|
|
1712
|
+
},
|
|
1713
|
+
onDragStart(t) {
|
|
1714
|
+
this.context = this.getUnderlyingVm(t.item), t.item._underlying_vm_ = this.clone(this.context.element), ut = t.item;
|
|
1715
|
+
},
|
|
1716
|
+
onDragAdd(t) {
|
|
1717
|
+
const e = t.item._underlying_vm_;
|
|
1718
|
+
if (e === void 0)
|
|
1719
|
+
return;
|
|
1720
|
+
st(t.item);
|
|
1721
|
+
const n = this.getVmIndexFromDomIndex(t.newIndex);
|
|
1722
|
+
this.spliceList(n, 0, e);
|
|
1723
|
+
const o = { element: e, newIndex: n };
|
|
1724
|
+
this.emitChanges({ added: o });
|
|
1725
|
+
},
|
|
1726
|
+
onDragRemove(t) {
|
|
1727
|
+
if (kt(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
|
|
1728
|
+
st(t.clone);
|
|
1729
|
+
return;
|
|
1730
|
+
}
|
|
1731
|
+
const { index: e, element: n } = this.context;
|
|
1732
|
+
this.spliceList(e, 1);
|
|
1733
|
+
const o = { element: n, oldIndex: e };
|
|
1734
|
+
this.emitChanges({ removed: o });
|
|
1735
|
+
},
|
|
1736
|
+
onDragUpdate(t) {
|
|
1737
|
+
st(t.item), kt(t.from, t.item, t.oldIndex);
|
|
1738
|
+
const e = this.context.index, n = this.getVmIndexFromDomIndex(t.newIndex);
|
|
1739
|
+
this.updatePosition(e, n);
|
|
1740
|
+
const o = { element: this.context.element, oldIndex: e, newIndex: n };
|
|
1741
|
+
this.emitChanges({ moved: o });
|
|
1742
|
+
},
|
|
1743
|
+
computeFutureIndex(t, e) {
|
|
1744
|
+
if (!t.element)
|
|
1745
|
+
return 0;
|
|
1746
|
+
const n = [...e.to.children].filter(
|
|
1747
|
+
(a) => a.style.display !== "none"
|
|
1748
|
+
), o = n.indexOf(e.related), r = t.component.getVmIndexFromDomIndex(
|
|
1749
|
+
o
|
|
1750
|
+
);
|
|
1751
|
+
return n.indexOf(ut) !== -1 || !e.willInsertAfter ? r : r + 1;
|
|
1752
|
+
},
|
|
1753
|
+
onDragMove(t, e) {
|
|
1754
|
+
const { move: n, realList: o } = this;
|
|
1755
|
+
if (!n || !o)
|
|
1756
|
+
return !0;
|
|
1757
|
+
const r = this.getRelatedContextFromMoveEvent(t), i = this.computeFutureIndex(r, t), a = {
|
|
1758
|
+
...this.context,
|
|
1759
|
+
futureIndex: i
|
|
1760
|
+
}, l = {
|
|
1761
|
+
...t,
|
|
1762
|
+
relatedContext: r,
|
|
1763
|
+
draggedContext: a
|
|
1764
|
+
};
|
|
1765
|
+
return n(l, e);
|
|
1766
|
+
},
|
|
1767
|
+
onDragEnd() {
|
|
1768
|
+
ut = null;
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}), Lo = wo, Eo = Object.entries(x).map((t) => {
|
|
1772
|
+
let e = "";
|
|
1773
|
+
switch (t[1]) {
|
|
1774
|
+
case x.BarChart:
|
|
1775
|
+
e = "bar_chart";
|
|
1776
|
+
break;
|
|
1777
|
+
case x.Table:
|
|
1778
|
+
e = "table";
|
|
1779
|
+
break;
|
|
1780
|
+
case x.Circular:
|
|
1781
|
+
e = "pie_chart";
|
|
1782
|
+
break;
|
|
1783
|
+
case x.LineChart:
|
|
1784
|
+
e = "show_chart";
|
|
1785
|
+
break;
|
|
1786
|
+
case x.Scorecard:
|
|
1787
|
+
e = "money";
|
|
1788
|
+
break;
|
|
1789
|
+
case x.Spacer:
|
|
1790
|
+
e = "space_bar";
|
|
1791
|
+
break;
|
|
1792
|
+
case x.StackBarChart:
|
|
1793
|
+
e = "stacked_bar_chart";
|
|
1794
|
+
break;
|
|
1795
|
+
case x.StackLineChart:
|
|
1796
|
+
e = "stacked_line_chart";
|
|
1797
|
+
break;
|
|
1798
|
+
}
|
|
1799
|
+
return {
|
|
1800
|
+
label: _n(t[0]),
|
|
1801
|
+
icon: e,
|
|
1802
|
+
value: t[1]
|
|
1803
|
+
};
|
|
1804
|
+
}), Do = /* @__PURE__ */ Ne({
|
|
1805
|
+
__name: "WidgetTypeList",
|
|
1806
|
+
props: /* @__PURE__ */ fn({
|
|
1807
|
+
childClass: {
|
|
1808
|
+
type: String,
|
|
1809
|
+
default: ""
|
|
1810
|
+
},
|
|
1811
|
+
excludeWidgeType: {
|
|
1812
|
+
type: Array,
|
|
1813
|
+
default: () => []
|
|
1814
|
+
},
|
|
1815
|
+
isList: {
|
|
1816
|
+
type: Boolean,
|
|
1817
|
+
required: !1,
|
|
1818
|
+
default: !1
|
|
1819
|
+
}
|
|
1820
|
+
}, {
|
|
1821
|
+
modelValue: {
|
|
1822
|
+
default: ""
|
|
1823
|
+
},
|
|
1824
|
+
modelModifiers: {}
|
|
1825
|
+
}),
|
|
1826
|
+
emits: ["update:modelValue"],
|
|
1827
|
+
setup(t) {
|
|
1828
|
+
const e = Bt(t, "modelValue"), n = t;
|
|
1829
|
+
return (o, r) => {
|
|
1830
|
+
const i = ge("FmIcon"), a = ge("FmCard");
|
|
1831
|
+
return ne(), ce("div", null, [
|
|
1832
|
+
(ne(!0), ce(vt, null, hn(Ve(Eo).filter(
|
|
1833
|
+
(l) => n.excludeWidgeType.indexOf(l.value) === -1
|
|
1834
|
+
), (l, s) => (ne(), pn(a, {
|
|
1835
|
+
key: s,
|
|
1836
|
+
class: mn(`items-center ${n.childClass} cursor-pointer rounded-[8px] ${n.isList ? "" : "gap-[16px]"} ${e.value === l.value ? "selected-widget" : ""}`),
|
|
1837
|
+
variant: "outlined",
|
|
1838
|
+
onClick: (u) => e.value = l.value
|
|
1839
|
+
}, {
|
|
1840
|
+
default: ze(() => [
|
|
1841
|
+
ue(i, {
|
|
1842
|
+
name: l.icon,
|
|
1843
|
+
size: n.isList ? "md" : "lg",
|
|
1844
|
+
outline: !0
|
|
1845
|
+
}, null, 8, ["name", "size"]),
|
|
1846
|
+
gn(" " + vn(l.label), 1)
|
|
1847
|
+
]),
|
|
1848
|
+
_: 2
|
|
1849
|
+
}, 1032, ["class", "onClick"]))), 128))
|
|
1850
|
+
]);
|
|
1851
|
+
};
|
|
1852
|
+
}
|
|
1853
|
+
}), Ro = /* @__PURE__ */ bt(Do, [["__scopeId", "data-v-c42ca7ee"]]);
|
|
1854
|
+
function So(t) {
|
|
1855
|
+
let e, n, o;
|
|
1856
|
+
switch (t) {
|
|
1857
|
+
case x.Table:
|
|
1858
|
+
e = [], n = !1, o = Sn.top;
|
|
1859
|
+
break;
|
|
1860
|
+
}
|
|
1861
|
+
return {
|
|
1862
|
+
schemaNames: [],
|
|
1863
|
+
dimensions: [],
|
|
1864
|
+
metrics: [],
|
|
1865
|
+
filters: [],
|
|
1866
|
+
sorts: [],
|
|
1867
|
+
breakdownDimension: void 0,
|
|
1868
|
+
sparklineDimension: void 0,
|
|
1869
|
+
limit: null,
|
|
1870
|
+
showGrandTotal: !1,
|
|
1871
|
+
rollupPosition: o,
|
|
1872
|
+
showSearchBar: n,
|
|
1873
|
+
isTransposed: !1,
|
|
1874
|
+
isDrillable: !1,
|
|
1875
|
+
columnIds: [],
|
|
1876
|
+
rowIds: [],
|
|
1877
|
+
joinDatasources: e
|
|
1878
|
+
};
|
|
1879
|
+
}
|
|
1880
|
+
function Bo(t, e) {
|
|
1881
|
+
let n = 1, o = 1;
|
|
1882
|
+
switch (t) {
|
|
1883
|
+
case x.Scorecard:
|
|
1884
|
+
n = 1, o = 2;
|
|
1885
|
+
break;
|
|
1886
|
+
case x.BarChart:
|
|
1887
|
+
case x.StackBarChart:
|
|
1888
|
+
case x.LineChart:
|
|
1889
|
+
case x.StackLineChart:
|
|
1890
|
+
n = 4, o = 6;
|
|
1891
|
+
break;
|
|
1892
|
+
case x.Table:
|
|
1893
|
+
n = 4, o = 12;
|
|
1894
|
+
break;
|
|
1895
|
+
case x.Circular:
|
|
1896
|
+
n = 4, o = 4;
|
|
1897
|
+
break;
|
|
1898
|
+
case x.Spacer:
|
|
1899
|
+
n = 0, o = 12;
|
|
1900
|
+
break;
|
|
1901
|
+
}
|
|
1902
|
+
return {
|
|
1903
|
+
size: {
|
|
1904
|
+
width: o,
|
|
1905
|
+
height: n
|
|
1906
|
+
},
|
|
1907
|
+
widget: {
|
|
1908
|
+
title: e || "New widget",
|
|
1909
|
+
type: t,
|
|
1910
|
+
config: So(t)
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
function Xo(t, e) {
|
|
1915
|
+
return t.filter((n, o) => o !== e);
|
|
1916
|
+
}
|
|
1917
|
+
const Co = {
|
|
1918
|
+
key: 0,
|
|
1919
|
+
class: "flex flex-col gap-5"
|
|
1920
|
+
}, To = /* @__PURE__ */ Ne({
|
|
1921
|
+
__name: "Section",
|
|
1922
|
+
setup(t) {
|
|
1923
|
+
const e = bn(!1);
|
|
1924
|
+
return (n, o) => {
|
|
1925
|
+
const r = ge("FmIcon"), i = ge("FmMenuDivider");
|
|
1926
|
+
return ne(), ce(vt, null, [
|
|
1927
|
+
Lt("div", {
|
|
1928
|
+
class: "flex items-center cursor-pointer fm-typo-en-body-lg-600",
|
|
1929
|
+
onClick: o[0] || (o[0] = (a) => e.value = !e.value)
|
|
1930
|
+
}, [
|
|
1931
|
+
Pe(n.$slots, "header", {}, void 0, !0),
|
|
1932
|
+
ue(r, {
|
|
1933
|
+
name: e.value ? "keyboard_arrow_down" : "keyboard_arrow_up"
|
|
1934
|
+
}, null, 8, ["name"])
|
|
1935
|
+
]),
|
|
1936
|
+
ue(ct, { name: "slide-fade" }, {
|
|
1937
|
+
default: ze(() => [
|
|
1938
|
+
e.value ? dt("", !0) : (ne(), ce("div", Co, [
|
|
1939
|
+
Pe(n.$slots, "content", {}, void 0, !0)
|
|
1940
|
+
]))
|
|
1941
|
+
]),
|
|
1942
|
+
_: 3
|
|
1943
|
+
}),
|
|
1944
|
+
ue(i)
|
|
1945
|
+
], 64);
|
|
1946
|
+
};
|
|
1947
|
+
}
|
|
1948
|
+
}), Vo = /* @__PURE__ */ bt(To, [["__scopeId", "data-v-f83598f1"]]), xo = /* @__PURE__ */ Ne({
|
|
1949
|
+
__name: "TransitionFade",
|
|
1950
|
+
props: {
|
|
1951
|
+
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
1952
|
+
modelModifiers: {}
|
|
1953
|
+
},
|
|
1954
|
+
emits: ["update:modelValue"],
|
|
1955
|
+
setup(t) {
|
|
1956
|
+
const e = Bt(t, "modelValue");
|
|
1957
|
+
return (n, o) => (ne(), ce(vt, null, [
|
|
1958
|
+
ue(ct, { name: "slide-fade-right" }, {
|
|
1959
|
+
default: ze(() => [
|
|
1960
|
+
e.value ? Pe(n.$slots, "right", { key: 0 }, void 0, !0) : dt("", !0)
|
|
1961
|
+
]),
|
|
1962
|
+
_: 3
|
|
1963
|
+
}),
|
|
1964
|
+
ue(ct, { name: "slide-fade-left" }, {
|
|
1965
|
+
default: ze(() => [
|
|
1966
|
+
e.value ? dt("", !0) : Pe(n.$slots, "left", { key: 0 }, void 0, !0)
|
|
1967
|
+
]),
|
|
1968
|
+
_: 3
|
|
1969
|
+
})
|
|
1970
|
+
], 64));
|
|
1971
|
+
}
|
|
1972
|
+
}), Yo = /* @__PURE__ */ bt(xo, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
1973
|
+
export {
|
|
1974
|
+
Lo as D,
|
|
1975
|
+
Vo as S,
|
|
1976
|
+
Yo as T,
|
|
1977
|
+
Ro as W,
|
|
1978
|
+
Mo as _,
|
|
1979
|
+
So as a,
|
|
1980
|
+
Xo as h,
|
|
1981
|
+
Bo as i
|
|
1982
|
+
};
|