low-code-form-generator 1.1.0 → 1.1.2

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.
@@ -1,10 +1,10 @@
1
- import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as J2, reactive as L1, normalizeClass as P0, unref as M2, renderSlot as s1, computed as G2, onUnmounted as i1, normalizeStyle as c1, onMounted as u1, resolveComponent as N, createBlock as Q, withCtx as z, resolveDynamicComponent as T1, h as f2, createVNode as g, withDirectives as B0, createCommentVNode as z2, vShow as A0, Fragment as V2, createTextVNode as w2, renderList as z0, createSlots as r4, toDisplayString as h0, createApp as p1, watch as Q0, onBeforeUnmount as n4, Teleport as o4 } from "vue";
1
+ import { defineComponent as s, createElementBlock as l, openBlock as o, createElementVNode as r, ref as F, nextTick as q2, reactive as L1, normalizeClass as I0, unref as C2, renderSlot as i1, computed as J2, onUnmounted as c1, normalizeStyle as u1, onMounted as p1, resolveComponent as N, createBlock as Z, withCtx as z, resolveDynamicComponent as T1, h as v2, createVNode as g, withDirectives as D0, createCommentVNode as H2, vShow as L0, Fragment as V2, createTextVNode as f2, renderList as E0, createSlots as r4, toDisplayString as d0, createApp as _1, watch as Z0, onBeforeUnmount as n4, Teleport as o4 } from "vue";
2
2
  import * as L2 from "element-plus";
3
3
  import { ElMessage as C1, ElMessageBox as l4 } from "element-plus";
4
4
  const s4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
5
  __proto__: null,
6
6
  get default() {
7
- return l1;
7
+ return s1;
8
8
  }
9
9
  }, Symbol.toStringTag, { value: "Module" }));
10
10
  /**!
@@ -34,13 +34,13 @@ function S2(t) {
34
34
  }
35
35
  return t;
36
36
  }
37
- function H0(t) {
37
+ function V0(t) {
38
38
  "@babel/helpers - typeof";
39
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? H0 = function(e) {
39
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? V0 = function(e) {
40
40
  return typeof e;
41
- } : H0 = function(e) {
41
+ } : V0 = function(e) {
42
42
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
43
- }, H0(t);
43
+ }, V0(t);
44
44
  }
45
45
  function i4(t, e, a) {
46
46
  return e in t ? Object.defineProperty(t, e, {
@@ -82,17 +82,17 @@ function D2(t) {
82
82
  if (typeof window < "u" && window.navigator)
83
83
  return !!/* @__PURE__ */ navigator.userAgent.match(t);
84
84
  }
85
- var F2 = D2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), d0 = D2(/Edge/i), b1 = D2(/firefox/i), i0 = D2(/safari/i) && !D2(/chrome/i) && !D2(/android/i), _1 = D2(/iP(ad|od|hone)/i), F1 = D2(/chrome/i) && D2(/android/i), k1 = {
85
+ var F2 = D2(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), v0 = D2(/Edge/i), b1 = D2(/firefox/i), c0 = D2(/safari/i) && !D2(/chrome/i) && !D2(/android/i), m1 = D2(/iP(ad|od|hone)/i), F1 = D2(/chrome/i) && D2(/android/i), k1 = {
86
86
  capture: !1,
87
87
  passive: !1
88
88
  };
89
- function T(t, e, a) {
89
+ function L(t, e, a) {
90
90
  t.addEventListener(e, a, !F2 && k1);
91
91
  }
92
92
  function D(t, e, a) {
93
93
  t.removeEventListener(e, a, !F2 && k1);
94
94
  }
95
- function D0(t, e) {
95
+ function T0(t, e) {
96
96
  if (e) {
97
97
  if (e[0] === ">" && (e = e.substring(1)), t)
98
98
  try {
@@ -111,11 +111,11 @@ function D0(t, e) {
111
111
  function O1(t) {
112
112
  return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
113
113
  }
114
- function H2(t, e, a, n) {
114
+ function E2(t, e, a, n) {
115
115
  if (t) {
116
116
  a = a || document;
117
117
  do {
118
- if (e != null && (e[0] === ">" ? t.parentNode === a && D0(t, e) : D0(t, e)) || n && t === a)
118
+ if (e != null && (e[0] === ">" ? t.parentNode === a && T0(t, e) : T0(t, e)) || n && t === a)
119
119
  return t;
120
120
  if (t === a) break;
121
121
  } while (t = O1(t));
@@ -123,7 +123,7 @@ function H2(t, e, a, n) {
123
123
  return null;
124
124
  }
125
125
  var z1 = /\s+/g;
126
- function d2(t, e, a) {
126
+ function m2(t, e, a) {
127
127
  if (t && e)
128
128
  if (t.classList)
129
129
  t.classList[a ? "add" : "remove"](e);
@@ -140,7 +140,7 @@ function V(t, e, a) {
140
140
  !(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = a + (typeof a == "string" ? "" : "px");
141
141
  }
142
142
  }
143
- function e0(t, e) {
143
+ function t0(t, e) {
144
144
  var a = "";
145
145
  if (typeof t == "string")
146
146
  a = t;
@@ -166,7 +166,7 @@ function y2() {
166
166
  var t = document.scrollingElement;
167
167
  return t || document.documentElement;
168
168
  }
169
- function Z(t, e, a, n, i) {
169
+ function e2(t, e, a, n, i) {
170
170
  if (!(!t.getBoundingClientRect && t !== window)) {
171
171
  var c, u, p, _, m, d, h;
172
172
  if (t !== window && t.parentNode && t !== y2() ? (c = t.getBoundingClientRect(), u = c.top, p = c.left, _ = c.bottom, m = c.right, d = c.height, h = c.width) : (u = 0, p = 0, _ = window.innerHeight, m = window.innerWidth, d = window.innerHeight, h = window.innerWidth), (e || a) && t !== window && (i = i || t.parentNode, !F2))
@@ -178,8 +178,8 @@ function Z(t, e, a, n, i) {
178
178
  }
179
179
  while (i = i.parentNode);
180
180
  if (n && t !== window) {
181
- var E = e0(i || t), M = E && E.a, y = E && E.d;
182
- E && (u /= y, p /= M, h /= M, d /= y, _ = u + d, m = p + h);
181
+ var E = t0(i || t), b = E && E.a, y = E && E.d;
182
+ E && (u /= y, p /= b, h /= b, d /= y, _ = u + d, m = p + h);
183
183
  }
184
184
  return {
185
185
  top: u,
@@ -192,17 +192,17 @@ function Z(t, e, a, n, i) {
192
192
  }
193
193
  }
194
194
  function H1(t, e, a) {
195
- for (var n = R2(t, !0), i = Z(t)[e]; n; ) {
196
- var c = Z(n)[a], u = void 0;
195
+ for (var n = I2(t, !0), i = e2(t)[e]; n; ) {
196
+ var c = e2(n)[a], u = void 0;
197
197
  if (u = i >= c, !u) return n;
198
198
  if (n === y2()) break;
199
- n = R2(n, !1);
199
+ n = I2(n, !1);
200
200
  }
201
201
  return !1;
202
202
  }
203
- function t0(t, e, a, n) {
203
+ function a0(t, e, a, n) {
204
204
  for (var i = 0, c = 0, u = t.children; c < u.length; ) {
205
- if (u[c].style.display !== "none" && u[c] !== H.ghost && (n || u[c] !== H.dragged) && H2(u[c], a.draggable, t, !1)) {
205
+ if (u[c].style.display !== "none" && u[c] !== H.ghost && (n || u[c] !== H.dragged) && E2(u[c], a.draggable, t, !1)) {
206
206
  if (i === e)
207
207
  return u[c];
208
208
  i++;
@@ -211,8 +211,8 @@ function t0(t, e, a, n) {
211
211
  }
212
212
  return null;
213
213
  }
214
- function m1(t, e) {
215
- for (var a = t.lastElementChild; a && (a === H.ghost || V(a, "display") === "none" || e && !D0(a, e)); )
214
+ function h1(t, e) {
215
+ for (var a = t.lastElementChild; a && (a === H.ghost || V(a, "display") === "none" || e && !T0(a, e)); )
216
216
  a = a.previousElementSibling;
217
217
  return a || null;
218
218
  }
@@ -221,14 +221,14 @@ function g2(t, e) {
221
221
  if (!t || !t.parentNode)
222
222
  return -1;
223
223
  for (; t = t.previousElementSibling; )
224
- t.nodeName.toUpperCase() !== "TEMPLATE" && t !== H.clone && (!e || D0(t, e)) && a++;
224
+ t.nodeName.toUpperCase() !== "TEMPLATE" && t !== H.clone && (!e || T0(t, e)) && a++;
225
225
  return a;
226
226
  }
227
227
  function E1(t) {
228
228
  var e = 0, a = 0, n = y2();
229
229
  if (t)
230
230
  do {
231
- var i = e0(t), c = i.a, u = i.d;
231
+ var i = t0(t), c = i.a, u = i.d;
232
232
  e += t.scrollLeft * c, a += t.scrollTop * u;
233
233
  } while (t !== n && (t = t.parentNode));
234
234
  return [e, a];
@@ -241,7 +241,7 @@ function _4(t, e) {
241
241
  }
242
242
  return -1;
243
243
  }
244
- function R2(t, e) {
244
+ function I2(t, e) {
245
245
  if (!t || !t.getBoundingClientRect) return y2();
246
246
  var a = t, n = !1;
247
247
  do
@@ -262,22 +262,22 @@ function m4(t, e) {
262
262
  e.hasOwnProperty(a) && (t[a] = e[a]);
263
263
  return t;
264
264
  }
265
- function q0(t, e) {
265
+ function $0(t, e) {
266
266
  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);
267
267
  }
268
- var c0;
268
+ var u0;
269
269
  function P1(t, e) {
270
270
  return function() {
271
- if (!c0) {
271
+ if (!u0) {
272
272
  var a = arguments, n = this;
273
- a.length === 1 ? t.call(n, a[0]) : t.apply(n, a), c0 = setTimeout(function() {
274
- c0 = void 0;
273
+ a.length === 1 ? t.call(n, a[0]) : t.apply(n, a), u0 = setTimeout(function() {
274
+ u0 = void 0;
275
275
  }, e);
276
276
  }
277
277
  };
278
278
  }
279
279
  function h4() {
280
- clearTimeout(c0), c0 = void 0;
280
+ clearTimeout(u0), u0 = void 0;
281
281
  }
282
282
  function I1(t, e, a) {
283
283
  t.scrollLeft += e, t.scrollTop += a;
@@ -290,8 +290,8 @@ function q1(t, e, a) {
290
290
  var n = {};
291
291
  return Array.from(t.children).forEach(function(i) {
292
292
  var c, u, p, _;
293
- if (!(!H2(i, e.draggable, t, !1) || i.animated || i === a)) {
294
- var m = Z(i);
293
+ if (!(!E2(i, e.draggable, t, !1) || i.animated || i === a)) {
294
+ var m = e2(i);
295
295
  n.left = Math.min((c = n.left) !== null && c !== void 0 ? c : 1 / 0, m.left), n.top = Math.min((u = n.top) !== null && u !== void 0 ? u : 1 / 0, m.top), n.right = Math.max((p = n.right) !== null && p !== void 0 ? p : -1 / 0, m.right), n.bottom = Math.max((_ = n.bottom) !== null && _ !== void 0 ? _ : -1 / 0, m.bottom);
296
296
  }
297
297
  }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
@@ -307,11 +307,11 @@ function d4() {
307
307
  if (!(V(i, "display") === "none" || i === H.ghost)) {
308
308
  t.push({
309
309
  target: i,
310
- rect: Z(i)
310
+ rect: e2(i)
311
311
  });
312
312
  var c = S2({}, t[t.length - 1].rect);
313
313
  if (i.thisAnimationDuration) {
314
- var u = e0(i, !0);
314
+ var u = t0(i, !0);
315
315
  u && (c.top -= u.f, c.left -= u.e);
316
316
  }
317
317
  i.fromRect = c;
@@ -335,9 +335,9 @@ function d4() {
335
335
  }
336
336
  var c = !1, u = 0;
337
337
  t.forEach(function(p) {
338
- var _ = 0, m = p.target, d = m.fromRect, h = Z(m), w = m.prevFromRect, E = m.prevToRect, M = p.rect, y = e0(m, !0);
339
- y && (h.top -= y.f, h.left -= y.e), m.toRect = h, m.thisAnimationDuration && q0(w, h) && !q0(d, h) && // Make sure animatingRect is on line between toRect & fromRect
340
- (M.top - h.top) / (M.left - h.left) === (d.top - h.top) / (d.left - h.left) && (_ = f4(M, w, E, i.options)), q0(h, d) || (m.prevFromRect = d, m.prevToRect = h, _ || (_ = i.options.animation), i.animate(m, M, h, _)), _ && (c = !0, u = Math.max(u, _), clearTimeout(m.animationResetTimer), m.animationResetTimer = setTimeout(function() {
338
+ var _ = 0, m = p.target, d = m.fromRect, h = e2(m), w = m.prevFromRect, E = m.prevToRect, b = p.rect, y = t0(m, !0);
339
+ y && (h.top -= y.f, h.left -= y.e), m.toRect = h, m.thisAnimationDuration && $0(w, h) && !$0(d, h) && // Make sure animatingRect is on line between toRect & fromRect
340
+ (b.top - h.top) / (b.left - h.left) === (d.top - h.top) / (d.left - h.left) && (_ = f4(b, w, E, i.options)), $0(h, d) || (m.prevFromRect = d, m.prevToRect = h, _ || (_ = i.options.animation), i.animate(m, b, h, _)), _ && (c = !0, u = Math.max(u, _), clearTimeout(m.animationResetTimer), m.animationResetTimer = setTimeout(function() {
341
341
  m.animationTime = 0, m.prevFromRect = null, m.fromRect = null, m.prevToRect = null, m.thisAnimationDuration = null;
342
342
  }, _), m.thisAnimationDuration = _);
343
343
  }), clearTimeout(e), c ? e = setTimeout(function() {
@@ -347,7 +347,7 @@ function d4() {
347
347
  animate: function(n, i, c, u) {
348
348
  if (u) {
349
349
  V(n, "transition", ""), V(n, "transform", "");
350
- var p = e0(this.el), _ = p && p.a, m = p && p.d, d = (i.left - c.left) / (_ || 1), h = (i.top - c.top) / (m || 1);
350
+ var p = t0(this.el), _ = p && p.a, m = p && p.d, d = (i.left - c.left) / (_ || 1), h = (i.top - c.top) / (m || 1);
351
351
  n.animatingX = !!d, n.animatingY = !!h, V(n, "transform", "translate3d(" + d + "px," + h + "px,0)"), this.forRepaintDummy = v4(n), V(n, "transition", "transform " + u + "ms" + (this.options.easing ? " " + this.options.easing : "")), V(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
352
352
  V(n, "transition", ""), V(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
353
353
  }, u);
@@ -361,12 +361,12 @@ function v4(t) {
361
361
  function f4(t, e, a, n) {
362
362
  return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - a.top, 2) + Math.pow(e.left - a.left, 2)) * n.animation;
363
363
  }
364
- var X2 = [], $0 = {
364
+ var X2 = [], j0 = {
365
365
  initializeByDefault: !0
366
- }, v0 = {
366
+ }, f0 = {
367
367
  mount: function(e) {
368
- for (var a in $0)
369
- $0.hasOwnProperty(a) && !(a in e) && (e[a] = $0[a]);
368
+ for (var a in j0)
369
+ j0.hasOwnProperty(a) && !(a in e) && (e[a] = j0[a]);
370
370
  X2.forEach(function(n) {
371
371
  if (n.pluginName === e.pluginName)
372
372
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
@@ -414,48 +414,48 @@ var X2 = [], $0 = {
414
414
  }
415
415
  };
416
416
  function w4(t) {
417
- var e = t.sortable, a = t.rootEl, n = t.name, i = t.targetEl, c = t.cloneEl, u = t.toEl, p = t.fromEl, _ = t.oldIndex, m = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, w = t.originalEvent, E = t.putSortable, M = t.extraEventProperties;
417
+ var e = t.sortable, a = t.rootEl, n = t.name, i = t.targetEl, c = t.cloneEl, u = t.toEl, p = t.fromEl, _ = t.oldIndex, m = t.newIndex, d = t.oldDraggableIndex, h = t.newDraggableIndex, w = t.originalEvent, E = t.putSortable, b = t.extraEventProperties;
418
418
  if (e = e || a && a[_2], !!e) {
419
- var y, L = e.options, R = "on" + n.charAt(0).toUpperCase() + n.substr(1);
420
- window.CustomEvent && !F2 && !d0 ? y = new CustomEvent(n, {
419
+ var y, T = e.options, P = "on" + n.charAt(0).toUpperCase() + n.substr(1);
420
+ window.CustomEvent && !F2 && !v0 ? y = new CustomEvent(n, {
421
421
  bubbles: !0,
422
422
  cancelable: !0
423
423
  }) : (y = document.createEvent("Event"), y.initEvent(n, !0, !0)), y.to = u || a, y.from = p || a, y.item = i || a, y.clone = c, y.oldIndex = _, y.newIndex = m, y.oldDraggableIndex = d, y.newDraggableIndex = h, y.originalEvent = w, y.pullMode = E ? E.lastPutMode : void 0;
424
- var O = S2(S2({}, M), v0.getEventProperties(n, e));
425
- for (var e2 in O)
426
- y[e2] = O[e2];
427
- a && a.dispatchEvent(y), L[R] && L[R].call(e, y);
424
+ var I = S2(S2({}, b), f0.getEventProperties(n, e));
425
+ for (var R in I)
426
+ y[R] = I[R];
427
+ a && a.dispatchEvent(y), T[P] && T[P].call(e, y);
428
428
  }
429
429
  }
430
430
  var g4 = ["evt"], u2 = function(e, a) {
431
431
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, c = u4(n, g4);
432
- v0.pluginEvent.bind(H)(e, a, S2({
432
+ f0.pluginEvent.bind(H)(e, a, S2({
433
433
  dragEl: f,
434
- parentEl: G,
434
+ parentEl: X,
435
435
  ghostEl: S,
436
- rootEl: j,
437
- nextEl: W2,
438
- lastDownEl: E0,
439
- cloneEl: Y,
440
- cloneHidden: P2,
441
- dragStarted: o0,
442
- putSortable: a2,
436
+ rootEl: U,
437
+ nextEl: G2,
438
+ lastDownEl: y0,
439
+ cloneEl: G,
440
+ cloneHidden: N2,
441
+ dragStarted: l0,
442
+ putSortable: r2,
443
443
  activeSortable: H.active,
444
444
  originalEvent: i,
445
445
  oldIndex: Z2,
446
- oldDraggableIndex: u0,
447
- newIndex: v2,
448
- newDraggableIndex: N2,
446
+ oldDraggableIndex: p0,
447
+ newIndex: h2,
448
+ newDraggableIndex: O2,
449
449
  hideGhostForTarget: Y1,
450
450
  unhideGhostForTarget: W1,
451
451
  cloneNowHidden: function() {
452
- P2 = !0;
452
+ N2 = !0;
453
453
  },
454
454
  cloneNowShown: function() {
455
- P2 = !1;
455
+ N2 = !1;
456
456
  },
457
457
  dispatchSortableEvent: function(p) {
458
- l2({
458
+ i2({
459
459
  sortable: a,
460
460
  name: p,
461
461
  originalEvent: i
@@ -463,27 +463,27 @@ var g4 = ["evt"], u2 = function(e, a) {
463
463
  }
464
464
  }, c));
465
465
  };
466
- function l2(t) {
466
+ function i2(t) {
467
467
  w4(S2({
468
- putSortable: a2,
469
- cloneEl: Y,
468
+ putSortable: r2,
469
+ cloneEl: G,
470
470
  targetEl: f,
471
- rootEl: j,
471
+ rootEl: U,
472
472
  oldIndex: Z2,
473
- oldDraggableIndex: u0,
474
- newIndex: v2,
475
- newDraggableIndex: N2
473
+ oldDraggableIndex: p0,
474
+ newIndex: h2,
475
+ newDraggableIndex: O2
476
476
  }, t));
477
477
  }
478
- var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = [], U2, b2, j0, U0, V1, y1, o0, K2, p0, _0 = !1, x0 = !1, V0, n2, Y0 = [], Z0 = !1, F0 = [], I0 = typeof document < "u", C0 = _1, S1 = d0 || F2 ? "cssFloat" : "float", x4 = I0 && !F1 && !_1 && "draggable" in document.createElement("div"), $1 = function() {
479
- if (I0) {
478
+ var f, X, S, U, G2, y0, G, N2, Z2, h2, p0, O2, C0, r2, Q2 = !1, F0 = !1, k0 = [], Y2, z2, U0, Y0, V1, y1, l0, K2, _0, m0 = !1, M0 = !1, S0, l2, W0 = [], e1 = !1, O0 = [], R0 = typeof document < "u", b0 = m1, S1 = v0 || F2 ? "cssFloat" : "float", x4 = R0 && !F1 && !m1 && "draggable" in document.createElement("div"), $1 = function() {
479
+ if (R0) {
480
480
  if (F2)
481
481
  return !1;
482
482
  var t = document.createElement("x");
483
483
  return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
484
484
  }
485
485
  }(), j1 = function(e, a) {
486
- var n = V(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), c = t0(e, 0, a), u = t0(e, 1, a), p = c && V(c), _ = u && V(u), m = p && parseInt(p.marginLeft) + parseInt(p.marginRight) + Z(c).width, d = _ && parseInt(_.marginLeft) + parseInt(_.marginRight) + Z(u).width;
486
+ var n = V(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), c = a0(e, 0, a), u = a0(e, 1, a), p = c && V(c), _ = u && V(u), m = p && parseInt(p.marginLeft) + parseInt(p.marginRight) + e2(c).width, d = _ && parseInt(_.marginLeft) + parseInt(_.marginRight) + e2(u).width;
487
487
  if (n.display === "flex")
488
488
  return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
489
489
  if (n.display === "grid")
@@ -498,10 +498,10 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
498
498
  return i === p || c === _ || i + u / 2 === p + m / 2;
499
499
  }, M4 = function(e, a) {
500
500
  var n;
501
- return T0.some(function(i) {
501
+ return k0.some(function(i) {
502
502
  var c = i[_2].options.emptyInsertThreshold;
503
- if (!(!c || m1(i))) {
504
- var u = Z(i), p = e >= u.left - c && e <= u.right + c, _ = a >= u.top - c && a <= u.bottom + c;
503
+ if (!(!c || h1(i))) {
504
+ var u = e2(i), p = e >= u.left - c && e <= u.right + c, _ = a >= u.top - c && a <= u.bottom + c;
505
505
  if (p && _)
506
506
  return n = i;
507
507
  }
@@ -523,7 +523,7 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
523
523
  };
524
524
  }
525
525
  var n = {}, i = e.group;
526
- (!i || H0(i) != "object") && (i = {
526
+ (!i || V0(i) != "object") && (i = {
527
527
  name: i
528
528
  }), n.name = i.name, n.checkPull = a(i.pull, !0), n.checkPut = a(i.put), n.revertClone = i.revertClone, e.group = n;
529
529
  }, Y1 = function() {
@@ -531,11 +531,11 @@ var f, G, S, j, W2, E0, Y, P2, Z2, v2, u0, N2, g0, a2, Q2 = !1, L0 = !1, T0 = []
531
531
  }, W1 = function() {
532
532
  !$1 && S && V(S, "display", "");
533
533
  };
534
- I0 && !F1 && document.addEventListener("click", function(t) {
535
- if (L0)
536
- return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), L0 = !1, !1;
534
+ R0 && !F1 && document.addEventListener("click", function(t) {
535
+ if (F0)
536
+ return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), F0 = !1, !1;
537
537
  }, !0);
538
- var Y2 = function(e) {
538
+ var W2 = function(e) {
539
539
  if (f) {
540
540
  e = e.touches ? e.touches[0] : e;
541
541
  var a = M4(e.clientX, e.clientY);
@@ -596,16 +596,16 @@ function H(t, e) {
596
596
  y: 0
597
597
  },
598
598
  // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
599
- supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && (!i0 || _1),
599
+ supportPointer: H.supportPointer !== !1 && "PointerEvent" in window && (!c0 || m1),
600
600
  emptyInsertThreshold: 5
601
601
  };
602
- v0.initializePlugins(this, t, a);
602
+ f0.initializePlugins(this, t, a);
603
603
  for (var n in a)
604
604
  !(n in e) && (e[n] = a[n]);
605
605
  U1(e);
606
606
  for (var i in this)
607
607
  i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
608
- this.nativeDraggable = e.forceFallback ? !1 : x4, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? T(t, "pointerdown", this._onTapStart) : (T(t, "mousedown", this._onTapStart), T(t, "touchstart", this._onTapStart)), this.nativeDraggable && (T(t, "dragover", this), T(t, "dragenter", this)), T0.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), T2(this, d4());
608
+ this.nativeDraggable = e.forceFallback ? !1 : x4, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? L(t, "pointerdown", this._onTapStart) : (L(t, "mousedown", this._onTapStart), L(t, "touchstart", this._onTapStart)), this.nativeDraggable && (L(t, "dragover", this), L(t, "dragenter", this)), k0.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), T2(this, d4());
609
609
  }
610
610
  H.prototype = /** @lends Sortable.prototype */
611
611
  {
@@ -619,10 +619,10 @@ H.prototype = /** @lends Sortable.prototype */
619
619
  _onTapStart: function(e) {
620
620
  if (e.cancelable) {
621
621
  var a = this, n = this.el, i = this.options, c = i.preventOnFilter, u = e.type, p = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, _ = (p || e).target, m = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || _, d = i.filter;
622
- if (A4(n), !f && !(/mousedown|pointerdown/.test(u) && e.button !== 0 || i.disabled) && !m.isContentEditable && !(!this.nativeDraggable && i0 && _ && _.tagName.toUpperCase() === "SELECT") && (_ = H2(_, i.draggable, n, !1), !(_ && _.animated) && E0 !== _)) {
623
- if (Z2 = g2(_), u0 = g2(_, i.draggable), typeof d == "function") {
622
+ if (B4(n), !f && !(/mousedown|pointerdown/.test(u) && e.button !== 0 || i.disabled) && !m.isContentEditable && !(!this.nativeDraggable && c0 && _ && _.tagName.toUpperCase() === "SELECT") && (_ = E2(_, i.draggable, n, !1), !(_ && _.animated) && y0 !== _)) {
623
+ if (Z2 = g2(_), p0 = g2(_, i.draggable), typeof d == "function") {
624
624
  if (d.call(this, e, _, this)) {
625
- l2({
625
+ i2({
626
626
  sortable: a,
627
627
  rootEl: m,
628
628
  name: "filter",
@@ -635,8 +635,8 @@ H.prototype = /** @lends Sortable.prototype */
635
635
  return;
636
636
  }
637
637
  } else if (d && (d = d.split(",").some(function(h) {
638
- if (h = H2(m, h.trim(), n, !1), h)
639
- return l2({
638
+ if (h = E2(m, h.trim(), n, !1), h)
639
+ return i2({
640
640
  sortable: a,
641
641
  rootEl: h,
642
642
  name: "filter",
@@ -650,40 +650,40 @@ H.prototype = /** @lends Sortable.prototype */
650
650
  c && e.preventDefault();
651
651
  return;
652
652
  }
653
- i.handle && !H2(m, i.handle, n, !1) || this._prepareDragStart(e, p, _);
653
+ i.handle && !E2(m, i.handle, n, !1) || this._prepareDragStart(e, p, _);
654
654
  }
655
655
  }
656
656
  },
657
657
  _prepareDragStart: function(e, a, n) {
658
658
  var i = this, c = i.el, u = i.options, p = c.ownerDocument, _;
659
659
  if (n && !f && n.parentNode === c) {
660
- var m = Z(n);
661
- if (j = c, f = n, G = f.parentNode, W2 = f.nextSibling, E0 = n, g0 = u.group, H.dragged = f, U2 = {
660
+ var m = e2(n);
661
+ if (U = c, f = n, X = f.parentNode, G2 = f.nextSibling, y0 = n, C0 = u.group, H.dragged = f, Y2 = {
662
662
  target: f,
663
663
  clientX: (a || e).clientX,
664
664
  clientY: (a || e).clientY
665
- }, V1 = U2.clientX - m.left, y1 = U2.clientY - m.top, this._lastX = (a || e).clientX, this._lastY = (a || e).clientY, f.style["will-change"] = "all", _ = function() {
665
+ }, V1 = Y2.clientX - m.left, y1 = Y2.clientY - m.top, this._lastX = (a || e).clientX, this._lastY = (a || e).clientY, f.style["will-change"] = "all", _ = function() {
666
666
  if (u2("delayEnded", i, {
667
667
  evt: e
668
668
  }), H.eventCanceled) {
669
669
  i._onDrop();
670
670
  return;
671
671
  }
672
- i._disableDelayedDragEvents(), !b1 && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, a), l2({
672
+ i._disableDelayedDragEvents(), !b1 && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, a), i2({
673
673
  sortable: i,
674
674
  name: "choose",
675
675
  originalEvent: e
676
- }), d2(f, u.chosenClass, !0);
676
+ }), m2(f, u.chosenClass, !0);
677
677
  }, u.ignore.split(",").forEach(function(d) {
678
- N1(f, d.trim(), W0);
679
- }), T(p, "dragover", Y2), T(p, "mousemove", Y2), T(p, "touchmove", Y2), u.supportPointer ? (T(p, "pointerup", i._onDrop), !this.nativeDraggable && T(p, "pointercancel", i._onDrop)) : (T(p, "mouseup", i._onDrop), T(p, "touchend", i._onDrop), T(p, "touchcancel", i._onDrop)), b1 && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), u2("delayStart", this, {
678
+ N1(f, d.trim(), G0);
679
+ }), L(p, "dragover", W2), L(p, "mousemove", W2), L(p, "touchmove", W2), u.supportPointer ? (L(p, "pointerup", i._onDrop), !this.nativeDraggable && L(p, "pointercancel", i._onDrop)) : (L(p, "mouseup", i._onDrop), L(p, "touchend", i._onDrop), L(p, "touchcancel", i._onDrop)), b1 && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), u2("delayStart", this, {
680
680
  evt: e
681
- }), u.delay && (!u.delayOnTouchOnly || a) && (!this.nativeDraggable || !(d0 || F2))) {
681
+ }), u.delay && (!u.delayOnTouchOnly || a) && (!this.nativeDraggable || !(v0 || F2))) {
682
682
  if (H.eventCanceled) {
683
683
  this._onDrop();
684
684
  return;
685
685
  }
686
- u.supportPointer ? (T(p, "pointerup", i._disableDelayedDrag), T(p, "pointercancel", i._disableDelayedDrag)) : (T(p, "mouseup", i._disableDelayedDrag), T(p, "touchend", i._disableDelayedDrag), T(p, "touchcancel", i._disableDelayedDrag)), T(p, "mousemove", i._delayedDragTouchMoveHandler), T(p, "touchmove", i._delayedDragTouchMoveHandler), u.supportPointer && T(p, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(_, u.delay);
686
+ u.supportPointer ? (L(p, "pointerup", i._disableDelayedDrag), L(p, "pointercancel", i._disableDelayedDrag)) : (L(p, "mouseup", i._disableDelayedDrag), L(p, "touchend", i._disableDelayedDrag), L(p, "touchcancel", i._disableDelayedDrag)), L(p, "mousemove", i._delayedDragTouchMoveHandler), L(p, "touchmove", i._delayedDragTouchMoveHandler), u.supportPointer && L(p, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(_, u.delay);
687
687
  } else
688
688
  _();
689
689
  }
@@ -693,28 +693,28 @@ H.prototype = /** @lends Sortable.prototype */
693
693
  Math.max(Math.abs(a.clientX - this._lastX), Math.abs(a.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
694
694
  },
695
695
  _disableDelayedDrag: function() {
696
- f && W0(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
696
+ f && G0(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
697
697
  },
698
698
  _disableDelayedDragEvents: function() {
699
699
  var e = this.el.ownerDocument;
700
700
  D(e, "mouseup", this._disableDelayedDrag), D(e, "touchend", this._disableDelayedDrag), D(e, "touchcancel", this._disableDelayedDrag), D(e, "pointerup", this._disableDelayedDrag), D(e, "pointercancel", this._disableDelayedDrag), D(e, "mousemove", this._delayedDragTouchMoveHandler), D(e, "touchmove", this._delayedDragTouchMoveHandler), D(e, "pointermove", this._delayedDragTouchMoveHandler);
701
701
  },
702
702
  _triggerDragStart: function(e, a) {
703
- a = a || e.pointerType == "touch" && e, !this.nativeDraggable || a ? this.options.supportPointer ? T(document, "pointermove", this._onTouchMove) : a ? T(document, "touchmove", this._onTouchMove) : T(document, "mousemove", this._onTouchMove) : (T(f, "dragend", this), T(j, "dragstart", this._onDragStart));
703
+ a = a || e.pointerType == "touch" && e, !this.nativeDraggable || a ? this.options.supportPointer ? L(document, "pointermove", this._onTouchMove) : a ? L(document, "touchmove", this._onTouchMove) : L(document, "mousemove", this._onTouchMove) : (L(f, "dragend", this), L(U, "dragstart", this._onDragStart));
704
704
  try {
705
- document.selection ? y0(function() {
705
+ document.selection ? A0(function() {
706
706
  document.selection.empty();
707
707
  }) : window.getSelection().removeAllRanges();
708
708
  } catch {
709
709
  }
710
710
  },
711
711
  _dragStarted: function(e, a) {
712
- if (Q2 = !1, j && f) {
712
+ if (Q2 = !1, U && f) {
713
713
  u2("dragStarted", this, {
714
714
  evt: a
715
- }), this.nativeDraggable && T(document, "dragover", b4);
715
+ }), this.nativeDraggable && L(document, "dragover", b4);
716
716
  var n = this.options;
717
- !e && d2(f, n.dragClass, !1), d2(f, n.ghostClass, !0), H.active = this, e && this._appendGhost(), l2({
717
+ !e && m2(f, n.dragClass, !1), m2(f, n.ghostClass, !0), H.active = this, e && this._appendGhost(), i2({
718
718
  sortable: this,
719
719
  name: "start",
720
720
  originalEvent: a
@@ -723,17 +723,17 @@ H.prototype = /** @lends Sortable.prototype */
723
723
  this._nulling();
724
724
  },
725
725
  _emulateDragOver: function() {
726
- if (b2) {
727
- this._lastX = b2.clientX, this._lastY = b2.clientY, Y1();
728
- for (var e = document.elementFromPoint(b2.clientX, b2.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(b2.clientX, b2.clientY), e !== a); )
726
+ if (z2) {
727
+ this._lastX = z2.clientX, this._lastY = z2.clientY, Y1();
728
+ for (var e = document.elementFromPoint(z2.clientX, z2.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(z2.clientX, z2.clientY), e !== a); )
729
729
  a = e;
730
730
  if (f.parentNode[_2]._isOutsideThisEl(e), a)
731
731
  do {
732
732
  if (a[_2]) {
733
733
  var n = void 0;
734
734
  if (n = a[_2]._onDragOver({
735
- clientX: b2.clientX,
736
- clientY: b2.clientY,
735
+ clientX: z2.clientX,
736
+ clientY: z2.clientY,
737
737
  target: e,
738
738
  rootEl: a
739
739
  }), n && !this.options.dragoverBubble)
@@ -745,15 +745,15 @@ H.prototype = /** @lends Sortable.prototype */
745
745
  }
746
746
  },
747
747
  _onTouchMove: function(e) {
748
- if (U2) {
749
- var a = this.options, n = a.fallbackTolerance, i = a.fallbackOffset, c = e.touches ? e.touches[0] : e, u = S && e0(S, !0), p = S && u && u.a, _ = S && u && u.d, m = C0 && n2 && E1(n2), d = (c.clientX - U2.clientX + i.x) / (p || 1) + (m ? m[0] - Y0[0] : 0) / (p || 1), h = (c.clientY - U2.clientY + i.y) / (_ || 1) + (m ? m[1] - Y0[1] : 0) / (_ || 1);
748
+ if (Y2) {
749
+ var a = this.options, n = a.fallbackTolerance, i = a.fallbackOffset, c = e.touches ? e.touches[0] : e, u = S && t0(S, !0), p = S && u && u.a, _ = S && u && u.d, m = b0 && l2 && E1(l2), d = (c.clientX - Y2.clientX + i.x) / (p || 1) + (m ? m[0] - W0[0] : 0) / (p || 1), h = (c.clientY - Y2.clientY + i.y) / (_ || 1) + (m ? m[1] - W0[1] : 0) / (_ || 1);
750
750
  if (!H.active && !Q2) {
751
751
  if (n && Math.max(Math.abs(c.clientX - this._lastX), Math.abs(c.clientY - this._lastY)) < n)
752
752
  return;
753
753
  this._onDragStart(e, !0);
754
754
  }
755
755
  if (S) {
756
- u ? (u.e += d - (j0 || 0), u.f += h - (U0 || 0)) : u = {
756
+ u ? (u.e += d - (U0 || 0), u.f += h - (Y0 || 0)) : u = {
757
757
  a: 1,
758
758
  b: 0,
759
759
  c: 0,
@@ -762,20 +762,20 @@ H.prototype = /** @lends Sortable.prototype */
762
762
  f: h
763
763
  };
764
764
  var w = "matrix(".concat(u.a, ",").concat(u.b, ",").concat(u.c, ",").concat(u.d, ",").concat(u.e, ",").concat(u.f, ")");
765
- V(S, "webkitTransform", w), V(S, "mozTransform", w), V(S, "msTransform", w), V(S, "transform", w), j0 = d, U0 = h, b2 = c;
765
+ V(S, "webkitTransform", w), V(S, "mozTransform", w), V(S, "msTransform", w), V(S, "transform", w), U0 = d, Y0 = h, z2 = c;
766
766
  }
767
767
  e.cancelable && e.preventDefault();
768
768
  }
769
769
  },
770
770
  _appendGhost: function() {
771
771
  if (!S) {
772
- var e = this.options.fallbackOnBody ? document.body : j, a = Z(f, !0, C0, !0, e), n = this.options;
773
- if (C0) {
774
- for (n2 = e; V(n2, "position") === "static" && V(n2, "transform") === "none" && n2 !== document; )
775
- n2 = n2.parentNode;
776
- n2 !== document.body && n2 !== document.documentElement ? (n2 === document && (n2 = y2()), a.top += n2.scrollTop, a.left += n2.scrollLeft) : n2 = y2(), Y0 = E1(n2);
772
+ var e = this.options.fallbackOnBody ? document.body : U, a = e2(f, !0, b0, !0, e), n = this.options;
773
+ if (b0) {
774
+ for (l2 = e; V(l2, "position") === "static" && V(l2, "transform") === "none" && l2 !== document; )
775
+ l2 = l2.parentNode;
776
+ l2 !== document.body && l2 !== document.documentElement ? (l2 === document && (l2 = y2()), a.top += l2.scrollTop, a.left += l2.scrollLeft) : l2 = y2(), W0 = E1(l2);
777
777
  }
778
- S = f.cloneNode(!0), d2(S, n.ghostClass, !1), d2(S, n.fallbackClass, !0), d2(S, n.dragClass, !0), V(S, "transition", ""), V(S, "transform", ""), V(S, "box-sizing", "border-box"), V(S, "margin", 0), V(S, "top", a.top), V(S, "left", a.left), V(S, "width", a.width), V(S, "height", a.height), V(S, "opacity", "0.8"), V(S, "position", C0 ? "absolute" : "fixed"), V(S, "zIndex", "100000"), V(S, "pointerEvents", "none"), H.ghost = S, e.appendChild(S), V(S, "transform-origin", V1 / parseInt(S.style.width) * 100 + "% " + y1 / parseInt(S.style.height) * 100 + "%");
778
+ S = f.cloneNode(!0), m2(S, n.ghostClass, !1), m2(S, n.fallbackClass, !0), m2(S, n.dragClass, !0), V(S, "transition", ""), V(S, "transform", ""), V(S, "box-sizing", "border-box"), V(S, "margin", 0), V(S, "top", a.top), V(S, "left", a.left), V(S, "width", a.width), V(S, "height", a.height), V(S, "opacity", "0.8"), V(S, "position", b0 ? "absolute" : "fixed"), V(S, "zIndex", "100000"), V(S, "pointerEvents", "none"), H.ghost = S, e.appendChild(S), V(S, "transform-origin", V1 / parseInt(S.style.width) * 100 + "% " + y1 / parseInt(S.style.height) * 100 + "%");
779
779
  }
780
780
  },
781
781
  _onDragStart: function(e, a) {
@@ -786,19 +786,19 @@ H.prototype = /** @lends Sortable.prototype */
786
786
  this._onDrop();
787
787
  return;
788
788
  }
789
- u2("setupClone", this), H.eventCanceled || (Y = R1(f), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), d2(Y, this.options.chosenClass, !1), H.clone = Y), n.cloneId = y0(function() {
790
- u2("clone", n), !H.eventCanceled && (n.options.removeCloneOnHide || j.insertBefore(Y, f), n._hideClone(), l2({
789
+ u2("setupClone", this), H.eventCanceled || (G = R1(f), G.removeAttribute("id"), G.draggable = !1, G.style["will-change"] = "", this._hideClone(), m2(G, this.options.chosenClass, !1), H.clone = G), n.cloneId = A0(function() {
790
+ u2("clone", n), !H.eventCanceled && (n.options.removeCloneOnHide || U.insertBefore(G, f), n._hideClone(), i2({
791
791
  sortable: n,
792
792
  name: "clone"
793
793
  }));
794
- }), !a && d2(f, c.dragClass, !0), a ? (L0 = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (D(document, "mouseup", n._onDrop), D(document, "touchend", n._onDrop), D(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", c.setData && c.setData.call(n, i, f)), T(document, "drop", n), V(f, "transform", "translateZ(0)")), Q2 = !0, n._dragStartId = y0(n._dragStarted.bind(n, a, e)), T(document, "selectstart", n), o0 = !0, window.getSelection().removeAllRanges(), i0 && V(document.body, "user-select", "none");
794
+ }), !a && m2(f, c.dragClass, !0), a ? (F0 = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (D(document, "mouseup", n._onDrop), D(document, "touchend", n._onDrop), D(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", c.setData && c.setData.call(n, i, f)), L(document, "drop", n), V(f, "transform", "translateZ(0)")), Q2 = !0, n._dragStartId = A0(n._dragStarted.bind(n, a, e)), L(document, "selectstart", n), l0 = !0, window.getSelection().removeAllRanges(), c0 && V(document.body, "user-select", "none");
795
795
  },
796
796
  // Returns true - if no further action is needed (either inserted or another condition)
797
797
  _onDragOver: function(e) {
798
- var a = this.el, n = e.target, i, c, u, p = this.options, _ = p.group, m = H.active, d = g0 === _, h = p.sort, w = a2 || m, E, M = this, y = !1;
799
- if (Z0) return;
800
- function L(B2, r2) {
801
- u2(B2, M, S2({
798
+ var a = this.el, n = e.target, i, c, u, p = this.options, _ = p.group, m = H.active, d = C0 === _, h = p.sort, w = r2 || m, E, b = this, y = !1;
799
+ if (e1) return;
800
+ function T(W, j2) {
801
+ u2(W, b, S2({
802
802
  evt: e,
803
803
  isOwner: d,
804
804
  axis: E ? "vertical" : "horizontal",
@@ -808,80 +808,80 @@ H.prototype = /** @lends Sortable.prototype */
808
808
  canSort: h,
809
809
  fromSortable: w,
810
810
  target: n,
811
- completed: O,
812
- onMove: function(v, b) {
813
- return M0(j, a, f, i, v, Z(v), e, b);
811
+ completed: I,
812
+ onMove: function(v, M) {
813
+ return z0(U, a, f, i, v, e2(v), e, M);
814
814
  },
815
- changed: e2
816
- }, r2));
815
+ changed: R
816
+ }, j2));
817
817
  }
818
- function R() {
819
- L("dragOverAnimationCapture"), M.captureAnimationState(), M !== w && w.captureAnimationState();
818
+ function P() {
819
+ T("dragOverAnimationCapture"), b.captureAnimationState(), b !== w && w.captureAnimationState();
820
820
  }
821
- function O(B2) {
822
- return L("dragOverCompleted", {
823
- insertion: B2
824
- }), B2 && (d ? m._hideClone() : m._showClone(M), M !== w && (d2(f, a2 ? a2.options.ghostClass : m.options.ghostClass, !1), d2(f, p.ghostClass, !0)), a2 !== M && M !== H.active ? a2 = M : M === H.active && a2 && (a2 = null), w === M && (M._ignoreWhileAnimating = n), M.animateAll(function() {
825
- L("dragOverAnimationComplete"), M._ignoreWhileAnimating = null;
826
- }), M !== w && (w.animateAll(), w._ignoreWhileAnimating = null)), (n === f && !f.animated || n === a && !n.animated) && (K2 = null), !p.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[_2]._isOutsideThisEl(e.target), !B2 && Y2(e)), !p.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
821
+ function I(W) {
822
+ return T("dragOverCompleted", {
823
+ insertion: W
824
+ }), W && (d ? m._hideClone() : m._showClone(b), b !== w && (m2(f, r2 ? r2.options.ghostClass : m.options.ghostClass, !1), m2(f, p.ghostClass, !0)), r2 !== b && b !== H.active ? r2 = b : b === H.active && r2 && (r2 = null), w === b && (b._ignoreWhileAnimating = n), b.animateAll(function() {
825
+ T("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
826
+ }), b !== w && (w.animateAll(), w._ignoreWhileAnimating = null)), (n === f && !f.animated || n === a && !n.animated) && (K2 = null), !p.dragoverBubble && !e.rootEl && n !== document && (f.parentNode[_2]._isOutsideThisEl(e.target), !W && W2(e)), !p.dragoverBubble && e.stopPropagation && e.stopPropagation(), y = !0;
827
827
  }
828
- function e2() {
829
- v2 = g2(f), N2 = g2(f, p.draggable), l2({
830
- sortable: M,
828
+ function R() {
829
+ h2 = g2(f), O2 = g2(f, p.draggable), i2({
830
+ sortable: b,
831
831
  name: "change",
832
832
  toEl: a,
833
- newIndex: v2,
834
- newDraggableIndex: N2,
833
+ newIndex: h2,
834
+ newDraggableIndex: O2,
835
835
  originalEvent: e
836
836
  });
837
837
  }
838
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = H2(n, p.draggable, a, !0), L("dragOver"), H.eventCanceled) return y;
839
- if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || M._ignoreWhileAnimating === n)
840
- return O(!1);
841
- if (L0 = !1, m && !p.disabled && (d ? h || (u = G !== j) : a2 === this || (this.lastPutMode = g0.checkPull(this, m, f, e)) && _.checkPut(this, m, f, e))) {
842
- if (E = this._getDirection(e, n) === "vertical", i = Z(f), L("dragOverValid"), H.eventCanceled) return y;
838
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = E2(n, p.draggable, a, !0), T("dragOver"), H.eventCanceled) return y;
839
+ if (f.contains(e.target) || n.animated && n.animatingX && n.animatingY || b._ignoreWhileAnimating === n)
840
+ return I(!1);
841
+ if (F0 = !1, m && !p.disabled && (d ? h || (u = X !== U) : r2 === this || (this.lastPutMode = C0.checkPull(this, m, f, e)) && _.checkPut(this, m, f, e))) {
842
+ if (E = this._getDirection(e, n) === "vertical", i = e2(f), T("dragOverValid"), H.eventCanceled) return y;
843
843
  if (u)
844
- return G = j, R(), this._hideClone(), L("revert"), H.eventCanceled || (W2 ? j.insertBefore(f, W2) : j.appendChild(f)), O(!0);
845
- var P = m1(a, p.draggable);
846
- if (!P || V4(e, E, this) && !P.animated) {
847
- if (P === f)
848
- return O(!1);
849
- if (P && a === e.target && (n = P), n && (c = Z(n)), M0(j, a, f, i, n, c, e, !!n) !== !1)
850
- return R(), P && P.nextSibling ? a.insertBefore(f, P.nextSibling) : a.appendChild(f), G = a, e2(), O(!0);
851
- } else if (P && E4(e, E, this)) {
852
- var m2 = t0(a, 0, p, !0);
853
- if (m2 === f)
854
- return O(!1);
855
- if (n = m2, c = Z(n), M0(j, a, f, i, n, c, e, !1) !== !1)
856
- return R(), a.insertBefore(f, m2), G = a, e2(), O(!0);
844
+ return X = U, P(), this._hideClone(), T("revert"), H.eventCanceled || (G2 ? U.insertBefore(f, G2) : U.appendChild(f)), I(!0);
845
+ var q = h1(a, p.draggable);
846
+ if (!q || V4(e, E, this) && !q.animated) {
847
+ if (q === f)
848
+ return I(!1);
849
+ if (q && a === e.target && (n = q), n && (c = e2(n)), z0(U, a, f, i, n, c, e, !!n) !== !1)
850
+ return P(), q && q.nextSibling ? a.insertBefore(f, q.nextSibling) : a.appendChild(f), X = a, R(), I(!0);
851
+ } else if (q && E4(e, E, this)) {
852
+ var a2 = a0(a, 0, p, !0);
853
+ if (a2 === f)
854
+ return I(!1);
855
+ if (n = a2, c = e2(n), z0(U, a, f, i, n, c, e, !1) !== !1)
856
+ return P(), a.insertBefore(f, a2), X = a, R(), I(!0);
857
857
  } else if (n.parentNode === a) {
858
- c = Z(n);
859
- var s2 = 0, i2, E2 = f.parentNode !== a, t2 = !C4(f.animated && f.toRect || i, n.animated && n.toRect || c, E), A = E ? "top" : "left", x = H1(n, "top", "top") || H1(f, "top", "top"), J = x ? x.scrollTop : void 0;
860
- K2 !== n && (i2 = c[A], _0 = !1, x0 = !t2 && p.invertSwap || E2), s2 = y4(e, n, c, E, t2 ? 1 : p.swapThreshold, p.invertedSwapThreshold == null ? p.swapThreshold : p.invertedSwapThreshold, x0, K2 === n);
861
- var X;
858
+ c = e2(n);
859
+ var s2 = 0, M2, A2 = f.parentNode !== a, K = !C4(f.animated && f.toRect || i, n.animated && n.toRect || c, E), b2 = E ? "top" : "left", w2 = H1(n, "top", "top") || H1(f, "top", "top"), B = w2 ? w2.scrollTop : void 0;
860
+ K2 !== n && (M2 = c[b2], m0 = !1, M0 = !K && p.invertSwap || A2), s2 = y4(e, n, c, E, K ? 1 : p.swapThreshold, p.invertedSwapThreshold == null ? p.swapThreshold : p.invertedSwapThreshold, M0, K2 === n);
861
+ var x;
862
862
  if (s2 !== 0) {
863
- var o2 = g2(f);
863
+ var Y = g2(f);
864
864
  do
865
- o2 -= s2, X = G.children[o2];
866
- while (X && (V(X, "display") === "none" || X === S));
865
+ Y -= s2, x = X.children[Y];
866
+ while (x && (V(x, "display") === "none" || x === S));
867
867
  }
868
- if (s2 === 0 || X === n)
869
- return O(!1);
870
- K2 = n, p0 = s2;
871
- var W = n.nextElementSibling, I = !1;
872
- I = s2 === 1;
873
- var O2 = M0(j, a, f, i, n, c, e, I);
874
- if (O2 !== !1)
875
- return (O2 === 1 || O2 === -1) && (I = O2 === 1), Z0 = !0, setTimeout(H4, 30), R(), I && !W ? a.appendChild(f) : n.parentNode.insertBefore(f, I ? W : n), x && I1(x, 0, J - x.scrollTop), G = f.parentNode, i2 !== void 0 && !x0 && (V0 = Math.abs(i2 - Z(n)[A])), e2(), O(!0);
868
+ if (s2 === 0 || x === n)
869
+ return I(!1);
870
+ K2 = n, _0 = s2;
871
+ var J = n.nextElementSibling, n2 = !1;
872
+ n2 = s2 === 1;
873
+ var o2 = z0(U, a, f, i, n, c, e, n2);
874
+ if (o2 !== !1)
875
+ return (o2 === 1 || o2 === -1) && (n2 = o2 === 1), e1 = !0, setTimeout(H4, 30), P(), n2 && !J ? a.appendChild(f) : n.parentNode.insertBefore(f, n2 ? J : n), w2 && I1(w2, 0, B - w2.scrollTop), X = f.parentNode, M2 !== void 0 && !M0 && (S0 = Math.abs(M2 - e2(n)[b2])), R(), I(!0);
876
876
  }
877
877
  if (a.contains(f))
878
- return O(!1);
878
+ return I(!1);
879
879
  }
880
880
  return !1;
881
881
  },
882
882
  _ignoreWhileAnimating: null,
883
883
  _offMoveEvents: function() {
884
- D(document, "mousemove", this._onTouchMove), D(document, "touchmove", this._onTouchMove), D(document, "pointermove", this._onTouchMove), D(document, "dragover", Y2), D(document, "mousemove", Y2), D(document, "touchmove", Y2);
884
+ D(document, "mousemove", this._onTouchMove), D(document, "touchmove", this._onTouchMove), D(document, "pointermove", this._onTouchMove), D(document, "dragover", W2), D(document, "mousemove", W2), D(document, "touchmove", W2);
885
885
  },
886
886
  _offUpEvents: function() {
887
887
  var e = this.el.ownerDocument;
@@ -889,62 +889,62 @@ H.prototype = /** @lends Sortable.prototype */
889
889
  },
890
890
  _onDrop: function(e) {
891
891
  var a = this.el, n = this.options;
892
- if (v2 = g2(f), N2 = g2(f, n.draggable), u2("drop", this, {
892
+ if (h2 = g2(f), O2 = g2(f, n.draggable), u2("drop", this, {
893
893
  evt: e
894
- }), G = f && f.parentNode, v2 = g2(f), N2 = g2(f, n.draggable), H.eventCanceled) {
894
+ }), X = f && f.parentNode, h2 = g2(f), O2 = g2(f, n.draggable), H.eventCanceled) {
895
895
  this._nulling();
896
896
  return;
897
897
  }
898
- Q2 = !1, x0 = !1, _0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), e1(this.cloneId), e1(this._dragStartId), this.nativeDraggable && (D(document, "drop", this), D(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), i0 && V(document.body, "user-select", ""), V(f, "transform", ""), e && (o0 && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (j === G || a2 && a2.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), f && (this.nativeDraggable && D(f, "dragend", this), W0(f), f.style["will-change"] = "", o0 && !Q2 && d2(f, a2 ? a2.options.ghostClass : this.options.ghostClass, !1), d2(f, this.options.chosenClass, !1), l2({
898
+ Q2 = !1, M0 = !1, m0 = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), t1(this.cloneId), t1(this._dragStartId), this.nativeDraggable && (D(document, "drop", this), D(a, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), c0 && V(document.body, "user-select", ""), V(f, "transform", ""), e && (l0 && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), S && S.parentNode && S.parentNode.removeChild(S), (U === X || r2 && r2.lastPutMode !== "clone") && G && G.parentNode && G.parentNode.removeChild(G), f && (this.nativeDraggable && D(f, "dragend", this), G0(f), f.style["will-change"] = "", l0 && !Q2 && m2(f, r2 ? r2.options.ghostClass : this.options.ghostClass, !1), m2(f, this.options.chosenClass, !1), i2({
899
899
  sortable: this,
900
900
  name: "unchoose",
901
- toEl: G,
901
+ toEl: X,
902
902
  newIndex: null,
903
903
  newDraggableIndex: null,
904
904
  originalEvent: e
905
- }), j !== G ? (v2 >= 0 && (l2({
906
- rootEl: G,
905
+ }), U !== X ? (h2 >= 0 && (i2({
906
+ rootEl: X,
907
907
  name: "add",
908
- toEl: G,
909
- fromEl: j,
908
+ toEl: X,
909
+ fromEl: U,
910
910
  originalEvent: e
911
- }), l2({
911
+ }), i2({
912
912
  sortable: this,
913
913
  name: "remove",
914
- toEl: G,
914
+ toEl: X,
915
915
  originalEvent: e
916
- }), l2({
917
- rootEl: G,
916
+ }), i2({
917
+ rootEl: X,
918
918
  name: "sort",
919
- toEl: G,
920
- fromEl: j,
919
+ toEl: X,
920
+ fromEl: U,
921
921
  originalEvent: e
922
- }), l2({
922
+ }), i2({
923
923
  sortable: this,
924
924
  name: "sort",
925
- toEl: G,
925
+ toEl: X,
926
926
  originalEvent: e
927
- })), a2 && a2.save()) : v2 !== Z2 && v2 >= 0 && (l2({
927
+ })), r2 && r2.save()) : h2 !== Z2 && h2 >= 0 && (i2({
928
928
  sortable: this,
929
929
  name: "update",
930
- toEl: G,
930
+ toEl: X,
931
931
  originalEvent: e
932
- }), l2({
932
+ }), i2({
933
933
  sortable: this,
934
934
  name: "sort",
935
- toEl: G,
935
+ toEl: X,
936
936
  originalEvent: e
937
- })), H.active && ((v2 == null || v2 === -1) && (v2 = Z2, N2 = u0), l2({
937
+ })), H.active && ((h2 == null || h2 === -1) && (h2 = Z2, O2 = p0), i2({
938
938
  sortable: this,
939
939
  name: "end",
940
- toEl: G,
940
+ toEl: X,
941
941
  originalEvent: e
942
942
  }), this.save()))), this._nulling();
943
943
  },
944
944
  _nulling: function() {
945
- u2("nulling", this), j = f = G = S = W2 = Y = E0 = P2 = U2 = b2 = o0 = v2 = N2 = Z2 = u0 = K2 = p0 = a2 = g0 = H.dragged = H.ghost = H.clone = H.active = null, F0.forEach(function(e) {
945
+ u2("nulling", this), U = f = X = S = G2 = G = y0 = N2 = Y2 = z2 = l0 = h2 = O2 = Z2 = p0 = K2 = _0 = r2 = C0 = H.dragged = H.ghost = H.clone = H.active = null, O0.forEach(function(e) {
946
946
  e.checked = !0;
947
- }), F0.length = j0 = U0 = 0;
947
+ }), O0.length = U0 = Y0 = 0;
948
948
  },
949
949
  handleEvent: function(e) {
950
950
  switch (e.type) {
@@ -967,7 +967,7 @@ H.prototype = /** @lends Sortable.prototype */
967
967
  */
968
968
  toArray: function() {
969
969
  for (var e = [], a, n = this.el.children, i = 0, c = n.length, u = this.options; i < c; i++)
970
- a = n[i], H2(a, u.draggable, this.el, !1) && e.push(a.getAttribute(u.dataIdAttr) || B4(a));
970
+ a = n[i], E2(a, u.draggable, this.el, !1) && e.push(a.getAttribute(u.dataIdAttr) || A4(a));
971
971
  return e;
972
972
  },
973
973
  /**
@@ -978,7 +978,7 @@ H.prototype = /** @lends Sortable.prototype */
978
978
  var n = {}, i = this.el;
979
979
  this.toArray().forEach(function(c, u) {
980
980
  var p = i.children[u];
981
- H2(p, this.options.draggable, i, !1) && (n[c] = p);
981
+ E2(p, this.options.draggable, i, !1) && (n[c] = p);
982
982
  }, this), a && this.captureAnimationState(), e.forEach(function(c) {
983
983
  n[c] && (i.removeChild(n[c]), i.appendChild(n[c]));
984
984
  }), a && this.animateAll();
@@ -997,7 +997,7 @@ H.prototype = /** @lends Sortable.prototype */
997
997
  * @returns {HTMLElement|null}
998
998
  */
999
999
  closest: function(e, a) {
1000
- return H2(e, a || this.options.draggable, this.el, !1);
1000
+ return E2(e, a || this.options.draggable, this.el, !1);
1001
1001
  },
1002
1002
  /**
1003
1003
  * Set/get option
@@ -1009,7 +1009,7 @@ H.prototype = /** @lends Sortable.prototype */
1009
1009
  var n = this.options;
1010
1010
  if (a === void 0)
1011
1011
  return n[e];
1012
- var i = v0.modifyOption(this, e, a);
1012
+ var i = f0.modifyOption(this, e, a);
1013
1013
  typeof i < "u" ? n[e] = i : n[e] = a, e === "group" && U1(n);
1014
1014
  },
1015
1015
  /**
@@ -1020,12 +1020,12 @@ H.prototype = /** @lends Sortable.prototype */
1020
1020
  var e = this.el;
1021
1021
  e[_2] = null, D(e, "mousedown", this._onTapStart), D(e, "touchstart", this._onTapStart), D(e, "pointerdown", this._onTapStart), this.nativeDraggable && (D(e, "dragover", this), D(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(a) {
1022
1022
  a.removeAttribute("draggable");
1023
- }), this._onDrop(), this._disableDelayedDragEvents(), T0.splice(T0.indexOf(this.el), 1), this.el = e = null;
1023
+ }), this._onDrop(), this._disableDelayedDragEvents(), k0.splice(k0.indexOf(this.el), 1), this.el = e = null;
1024
1024
  },
1025
1025
  _hideClone: function() {
1026
- if (!P2) {
1026
+ if (!N2) {
1027
1027
  if (u2("hideClone", this), H.eventCanceled) return;
1028
- V(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), P2 = !0;
1028
+ V(G, "display", "none"), this.options.removeCloneOnHide && G.parentNode && G.parentNode.removeChild(G), N2 = !0;
1029
1029
  }
1030
1030
  },
1031
1031
  _showClone: function(e) {
@@ -1033,44 +1033,44 @@ H.prototype = /** @lends Sortable.prototype */
1033
1033
  this._hideClone();
1034
1034
  return;
1035
1035
  }
1036
- if (P2) {
1036
+ if (N2) {
1037
1037
  if (u2("showClone", this), H.eventCanceled) return;
1038
- f.parentNode == j && !this.options.group.revertClone ? j.insertBefore(Y, f) : W2 ? j.insertBefore(Y, W2) : j.appendChild(Y), this.options.group.revertClone && this.animate(f, Y), V(Y, "display", ""), P2 = !1;
1038
+ f.parentNode == U && !this.options.group.revertClone ? U.insertBefore(G, f) : G2 ? U.insertBefore(G, G2) : U.appendChild(G), this.options.group.revertClone && this.animate(f, G), V(G, "display", ""), N2 = !1;
1039
1039
  }
1040
1040
  }
1041
1041
  };
1042
1042
  function z4(t) {
1043
1043
  t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1044
1044
  }
1045
- function M0(t, e, a, n, i, c, u, p) {
1045
+ function z0(t, e, a, n, i, c, u, p) {
1046
1046
  var _, m = t[_2], d = m.options.onMove, h;
1047
- return window.CustomEvent && !F2 && !d0 ? _ = new CustomEvent("move", {
1047
+ return window.CustomEvent && !F2 && !v0 ? _ = new CustomEvent("move", {
1048
1048
  bubbles: !0,
1049
1049
  cancelable: !0
1050
- }) : (_ = document.createEvent("Event"), _.initEvent("move", !0, !0)), _.to = e, _.from = t, _.dragged = a, _.draggedRect = n, _.related = i || e, _.relatedRect = c || Z(e), _.willInsertAfter = p, _.originalEvent = u, t.dispatchEvent(_), d && (h = d.call(m, _, u)), h;
1050
+ }) : (_ = document.createEvent("Event"), _.initEvent("move", !0, !0)), _.to = e, _.from = t, _.dragged = a, _.draggedRect = n, _.related = i || e, _.relatedRect = c || e2(e), _.willInsertAfter = p, _.originalEvent = u, t.dispatchEvent(_), d && (h = d.call(m, _, u)), h;
1051
1051
  }
1052
- function W0(t) {
1052
+ function G0(t) {
1053
1053
  t.draggable = !1;
1054
1054
  }
1055
1055
  function H4() {
1056
- Z0 = !1;
1056
+ e1 = !1;
1057
1057
  }
1058
1058
  function E4(t, e, a) {
1059
- var n = Z(t0(a.el, 0, a.options, !0)), i = q1(a.el, a.options, S), c = 10;
1059
+ var n = e2(a0(a.el, 0, a.options, !0)), i = q1(a.el, a.options, S), c = 10;
1060
1060
  return e ? t.clientX < i.left - c || t.clientY < n.top && t.clientX < n.right : t.clientY < i.top - c || t.clientY < n.bottom && t.clientX < n.left;
1061
1061
  }
1062
1062
  function V4(t, e, a) {
1063
- var n = Z(m1(a.el, a.options.draggable)), i = q1(a.el, a.options, S), c = 10;
1063
+ var n = e2(h1(a.el, a.options.draggable)), i = q1(a.el, a.options, S), c = 10;
1064
1064
  return e ? t.clientX > i.right + c || t.clientY > n.bottom && t.clientX > n.left : t.clientY > i.bottom + c || t.clientX > n.right && t.clientY > n.top;
1065
1065
  }
1066
1066
  function y4(t, e, a, n, i, c, u, p) {
1067
1067
  var _ = n ? t.clientY : t.clientX, m = n ? a.height : a.width, d = n ? a.top : a.left, h = n ? a.bottom : a.right, w = !1;
1068
1068
  if (!u) {
1069
- if (p && V0 < m * i) {
1070
- if (!_0 && (p0 === 1 ? _ > d + m * c / 2 : _ < h - m * c / 2) && (_0 = !0), _0)
1069
+ if (p && S0 < m * i) {
1070
+ if (!m0 && (_0 === 1 ? _ > d + m * c / 2 : _ < h - m * c / 2) && (m0 = !0), m0)
1071
1071
  w = !0;
1072
- else if (p0 === 1 ? _ < d + V0 : _ > h - V0)
1073
- return -p0;
1072
+ else if (_0 === 1 ? _ < d + S0 : _ > h - S0)
1073
+ return -_0;
1074
1074
  } else if (_ > d + m * (1 - i) / 2 && _ < h - m * (1 - i) / 2)
1075
1075
  return S4(e);
1076
1076
  }
@@ -1079,45 +1079,45 @@ function y4(t, e, a, n, i, c, u, p) {
1079
1079
  function S4(t) {
1080
1080
  return g2(f) < g2(t) ? 1 : -1;
1081
1081
  }
1082
- function B4(t) {
1082
+ function A4(t) {
1083
1083
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, a = e.length, n = 0; a--; )
1084
1084
  n += e.charCodeAt(a);
1085
1085
  return n.toString(36);
1086
1086
  }
1087
- function A4(t) {
1088
- F0.length = 0;
1087
+ function B4(t) {
1088
+ O0.length = 0;
1089
1089
  for (var e = t.getElementsByTagName("input"), a = e.length; a--; ) {
1090
1090
  var n = e[a];
1091
- n.checked && F0.push(n);
1091
+ n.checked && O0.push(n);
1092
1092
  }
1093
1093
  }
1094
- function y0(t) {
1094
+ function A0(t) {
1095
1095
  return setTimeout(t, 0);
1096
1096
  }
1097
- function e1(t) {
1097
+ function t1(t) {
1098
1098
  return clearTimeout(t);
1099
1099
  }
1100
- I0 && T(document, "touchmove", function(t) {
1100
+ R0 && L(document, "touchmove", function(t) {
1101
1101
  (H.active || Q2) && t.cancelable && t.preventDefault();
1102
1102
  });
1103
1103
  H.utils = {
1104
- on: T,
1104
+ on: L,
1105
1105
  off: D,
1106
1106
  css: V,
1107
1107
  find: N1,
1108
1108
  is: function(e, a) {
1109
- return !!H2(e, a, e, !1);
1109
+ return !!E2(e, a, e, !1);
1110
1110
  },
1111
1111
  extend: m4,
1112
1112
  throttle: P1,
1113
- closest: H2,
1114
- toggleClass: d2,
1113
+ closest: E2,
1114
+ toggleClass: m2,
1115
1115
  clone: R1,
1116
1116
  index: g2,
1117
- nextTick: y0,
1118
- cancelNextTick: e1,
1117
+ nextTick: A0,
1118
+ cancelNextTick: t1,
1119
1119
  detectDirection: j1,
1120
- getChild: t0,
1120
+ getChild: a0,
1121
1121
  expando: _2
1122
1122
  };
1123
1123
  H.get = function(t) {
@@ -1129,14 +1129,14 @@ H.mount = function() {
1129
1129
  e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
1130
1130
  if (!n.prototype || !n.prototype.constructor)
1131
1131
  throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1132
- n.utils && (H.utils = S2(S2({}, H.utils), n.utils)), v0.mount(n);
1132
+ n.utils && (H.utils = S2(S2({}, H.utils), n.utils)), f0.mount(n);
1133
1133
  });
1134
1134
  };
1135
1135
  H.create = function(t, e) {
1136
1136
  return new H(t, e);
1137
1137
  };
1138
1138
  H.version = p4;
1139
- var K = [], l0, t1, a1 = !1, G0, J0, k0, s0;
1139
+ var Q = [], s0, a1, r1 = !1, J0, X0, N0, i0;
1140
1140
  function D4() {
1141
1141
  function t() {
1142
1142
  this.defaults = {
@@ -1152,36 +1152,36 @@ function D4() {
1152
1152
  return t.prototype = {
1153
1153
  dragStarted: function(a) {
1154
1154
  var n = a.originalEvent;
1155
- this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? T(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? T(document, "touchmove", this._handleFallbackAutoScroll) : T(document, "mousemove", this._handleFallbackAutoScroll);
1155
+ this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? L(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? L(document, "touchmove", this._handleFallbackAutoScroll) : L(document, "mousemove", this._handleFallbackAutoScroll);
1156
1156
  },
1157
1157
  dragOverCompleted: function(a) {
1158
1158
  var n = a.originalEvent;
1159
1159
  !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1160
1160
  },
1161
1161
  drop: function() {
1162
- this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : (D(document, "pointermove", this._handleFallbackAutoScroll), D(document, "touchmove", this._handleFallbackAutoScroll), D(document, "mousemove", this._handleFallbackAutoScroll)), B1(), S0(), h4();
1162
+ this.sortable.nativeDraggable ? D(document, "dragover", this._handleAutoScroll) : (D(document, "pointermove", this._handleFallbackAutoScroll), D(document, "touchmove", this._handleFallbackAutoScroll), D(document, "mousemove", this._handleFallbackAutoScroll)), A1(), B0(), h4();
1163
1163
  },
1164
1164
  nulling: function() {
1165
- k0 = t1 = l0 = a1 = s0 = G0 = J0 = null, K.length = 0;
1165
+ N0 = a1 = s0 = r1 = i0 = J0 = X0 = null, Q.length = 0;
1166
1166
  },
1167
1167
  _handleFallbackAutoScroll: function(a) {
1168
1168
  this._handleAutoScroll(a, !0);
1169
1169
  },
1170
1170
  _handleAutoScroll: function(a, n) {
1171
1171
  var i = this, c = (a.touches ? a.touches[0] : a).clientX, u = (a.touches ? a.touches[0] : a).clientY, p = document.elementFromPoint(c, u);
1172
- if (k0 = a, n || this.options.forceAutoScrollFallback || d0 || F2 || i0) {
1173
- X0(a, this.options, p, n);
1174
- var _ = R2(p, !0);
1175
- a1 && (!s0 || c !== G0 || u !== J0) && (s0 && B1(), s0 = setInterval(function() {
1176
- var m = R2(document.elementFromPoint(c, u), !0);
1177
- m !== _ && (_ = m, S0()), X0(a, i.options, m, n);
1178
- }, 10), G0 = c, J0 = u);
1172
+ if (N0 = a, n || this.options.forceAutoScrollFallback || v0 || F2 || c0) {
1173
+ K0(a, this.options, p, n);
1174
+ var _ = I2(p, !0);
1175
+ r1 && (!i0 || c !== J0 || u !== X0) && (i0 && A1(), i0 = setInterval(function() {
1176
+ var m = I2(document.elementFromPoint(c, u), !0);
1177
+ m !== _ && (_ = m, B0()), K0(a, i.options, m, n);
1178
+ }, 10), J0 = c, X0 = u);
1179
1179
  } else {
1180
- if (!this.options.bubbleScroll || R2(p, !0) === y2()) {
1181
- S0();
1180
+ if (!this.options.bubbleScroll || I2(p, !0) === y2()) {
1181
+ B0();
1182
1182
  return;
1183
1183
  }
1184
- X0(a, this.options, R2(p, !1), !1);
1184
+ K0(a, this.options, I2(p, !1), !1);
1185
1185
  }
1186
1186
  }
1187
1187
  }, T2(t, {
@@ -1189,35 +1189,35 @@ function D4() {
1189
1189
  initializeByDefault: !0
1190
1190
  });
1191
1191
  }
1192
- function S0() {
1193
- K.forEach(function(t) {
1192
+ function B0() {
1193
+ Q.forEach(function(t) {
1194
1194
  clearInterval(t.pid);
1195
- }), K = [];
1195
+ }), Q = [];
1196
1196
  }
1197
- function B1() {
1198
- clearInterval(s0);
1197
+ function A1() {
1198
+ clearInterval(i0);
1199
1199
  }
1200
- var X0 = P1(function(t, e, a, n) {
1200
+ var K0 = P1(function(t, e, a, n) {
1201
1201
  if (e.scroll) {
1202
1202
  var i = (t.touches ? t.touches[0] : t).clientX, c = (t.touches ? t.touches[0] : t).clientY, u = e.scrollSensitivity, p = e.scrollSpeed, _ = y2(), m = !1, d;
1203
- t1 !== a && (t1 = a, S0(), l0 = e.scroll, d = e.scrollFn, l0 === !0 && (l0 = R2(a, !0)));
1204
- var h = 0, w = l0;
1203
+ a1 !== a && (a1 = a, B0(), s0 = e.scroll, d = e.scrollFn, s0 === !0 && (s0 = I2(a, !0)));
1204
+ var h = 0, w = s0;
1205
1205
  do {
1206
- var E = w, M = Z(E), y = M.top, L = M.bottom, R = M.left, O = M.right, e2 = M.width, P = M.height, m2 = void 0, s2 = void 0, i2 = E.scrollWidth, E2 = E.scrollHeight, t2 = V(E), A = E.scrollLeft, x = E.scrollTop;
1207
- E === _ ? (m2 = e2 < i2 && (t2.overflowX === "auto" || t2.overflowX === "scroll" || t2.overflowX === "visible"), s2 = P < E2 && (t2.overflowY === "auto" || t2.overflowY === "scroll" || t2.overflowY === "visible")) : (m2 = e2 < i2 && (t2.overflowX === "auto" || t2.overflowX === "scroll"), s2 = P < E2 && (t2.overflowY === "auto" || t2.overflowY === "scroll"));
1208
- var J = m2 && (Math.abs(O - i) <= u && A + e2 < i2) - (Math.abs(R - i) <= u && !!A), X = s2 && (Math.abs(L - c) <= u && x + P < E2) - (Math.abs(y - c) <= u && !!x);
1209
- if (!K[h])
1210
- for (var o2 = 0; o2 <= h; o2++)
1211
- K[o2] || (K[o2] = {});
1212
- (K[h].vx != J || K[h].vy != X || K[h].el !== E) && (K[h].el = E, K[h].vx = J, K[h].vy = X, clearInterval(K[h].pid), (J != 0 || X != 0) && (m = !0, K[h].pid = setInterval((function() {
1213
- n && this.layer === 0 && H.active._onTouchMove(k0);
1214
- var W = K[this.layer].vy ? K[this.layer].vy * p : 0, I = K[this.layer].vx ? K[this.layer].vx * p : 0;
1215
- typeof d == "function" && d.call(H.dragged.parentNode[_2], I, W, t, k0, K[this.layer].el) !== "continue" || I1(K[this.layer].el, I, W);
1206
+ var E = w, b = e2(E), y = b.top, T = b.bottom, P = b.left, I = b.right, R = b.width, q = b.height, a2 = void 0, s2 = void 0, M2 = E.scrollWidth, A2 = E.scrollHeight, K = V(E), b2 = E.scrollLeft, w2 = E.scrollTop;
1207
+ E === _ ? (a2 = R < M2 && (K.overflowX === "auto" || K.overflowX === "scroll" || K.overflowX === "visible"), s2 = q < A2 && (K.overflowY === "auto" || K.overflowY === "scroll" || K.overflowY === "visible")) : (a2 = R < M2 && (K.overflowX === "auto" || K.overflowX === "scroll"), s2 = q < A2 && (K.overflowY === "auto" || K.overflowY === "scroll"));
1208
+ var B = a2 && (Math.abs(I - i) <= u && b2 + R < M2) - (Math.abs(P - i) <= u && !!b2), x = s2 && (Math.abs(T - c) <= u && w2 + q < A2) - (Math.abs(y - c) <= u && !!w2);
1209
+ if (!Q[h])
1210
+ for (var Y = 0; Y <= h; Y++)
1211
+ Q[Y] || (Q[Y] = {});
1212
+ (Q[h].vx != B || Q[h].vy != x || Q[h].el !== E) && (Q[h].el = E, Q[h].vx = B, Q[h].vy = x, clearInterval(Q[h].pid), (B != 0 || x != 0) && (m = !0, Q[h].pid = setInterval((function() {
1213
+ n && this.layer === 0 && H.active._onTouchMove(N0);
1214
+ var J = Q[this.layer].vy ? Q[this.layer].vy * p : 0, n2 = Q[this.layer].vx ? Q[this.layer].vx * p : 0;
1215
+ typeof d == "function" && d.call(H.dragged.parentNode[_2], n2, J, t, N0, Q[this.layer].el) !== "continue" || I1(Q[this.layer].el, n2, J);
1216
1216
  }).bind({
1217
1217
  layer: h
1218
1218
  }), 24))), h++;
1219
- } while (e.bubbleScroll && w !== _ && (w = R2(w, !1)));
1220
- a1 = m;
1219
+ } while (e.bubbleScroll && w !== _ && (w = I2(w, !1)));
1220
+ r1 = m;
1221
1221
  }
1222
1222
  }, 30), G1 = function(e) {
1223
1223
  var a = e.originalEvent, n = e.putSortable, i = e.dragEl, c = e.activeSortable, u = e.dispatchSortableEvent, p = e.hideGhostForTarget, _ = e.unhideGhostForTarget;
@@ -1231,9 +1231,9 @@ var X0 = P1(function(t, e, a, n) {
1231
1231
  }));
1232
1232
  }
1233
1233
  };
1234
- function h1() {
1234
+ function d1() {
1235
1235
  }
1236
- h1.prototype = {
1236
+ d1.prototype = {
1237
1237
  startIndex: null,
1238
1238
  dragStart: function(e) {
1239
1239
  var a = e.oldDraggableIndex;
@@ -1242,29 +1242,29 @@ h1.prototype = {
1242
1242
  onSpill: function(e) {
1243
1243
  var a = e.dragEl, n = e.putSortable;
1244
1244
  this.sortable.captureAnimationState(), n && n.captureAnimationState();
1245
- var i = t0(this.sortable.el, this.startIndex, this.options);
1245
+ var i = a0(this.sortable.el, this.startIndex, this.options);
1246
1246
  i ? this.sortable.el.insertBefore(a, i) : this.sortable.el.appendChild(a), this.sortable.animateAll(), n && n.animateAll();
1247
1247
  },
1248
1248
  drop: G1
1249
1249
  };
1250
- T2(h1, {
1250
+ T2(d1, {
1251
1251
  pluginName: "revertOnSpill"
1252
1252
  });
1253
- function d1() {
1253
+ function v1() {
1254
1254
  }
1255
- d1.prototype = {
1255
+ v1.prototype = {
1256
1256
  onSpill: function(e) {
1257
1257
  var a = e.dragEl, n = e.putSortable, i = n || this.sortable;
1258
1258
  i.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), i.animateAll();
1259
1259
  },
1260
1260
  drop: G1
1261
1261
  };
1262
- T2(d1, {
1262
+ T2(v1, {
1263
1263
  pluginName: "removeOnSpill"
1264
1264
  });
1265
1265
  H.mount(new D4());
1266
- H.mount(d1, h1);
1267
- var v1 = {
1266
+ H.mount(v1, d1);
1267
+ var f1 = {
1268
1268
  name: "zh-cn",
1269
1269
  el: {
1270
1270
  breadcrumb: {
@@ -1875,7 +1875,7 @@ var L4 = /* @__PURE__ */ s({
1875
1875
  })
1876
1876
  ]));
1877
1877
  }
1878
- }), Be = Se, Ae = /* @__PURE__ */ s({
1878
+ }), Ae = Se, Be = /* @__PURE__ */ s({
1879
1879
  name: "Brush",
1880
1880
  __name: "brush",
1881
1881
  setup(t) {
@@ -1889,7 +1889,7 @@ var L4 = /* @__PURE__ */ s({
1889
1889
  })
1890
1890
  ]));
1891
1891
  }
1892
- }), De = Ae, Le = /* @__PURE__ */ s({
1892
+ }), De = Be, Le = /* @__PURE__ */ s({
1893
1893
  name: "Burger",
1894
1894
  __name: "burger",
1895
1895
  setup(t) {
@@ -2294,7 +2294,7 @@ var L4 = /* @__PURE__ */ s({
2294
2294
  })
2295
2295
  ]));
2296
2296
  }
2297
- }), B6 = S6, A6 = /* @__PURE__ */ s({
2297
+ }), A6 = S6, B6 = /* @__PURE__ */ s({
2298
2298
  name: "Clock",
2299
2299
  __name: "clock",
2300
2300
  setup(t) {
@@ -2316,7 +2316,7 @@ var L4 = /* @__PURE__ */ s({
2316
2316
  })
2317
2317
  ]));
2318
2318
  }
2319
- }), D6 = A6, L6 = /* @__PURE__ */ s({
2319
+ }), D6 = B6, L6 = /* @__PURE__ */ s({
2320
2320
  name: "CloseBold",
2321
2321
  __name: "close-bold",
2322
2322
  setup(t) {
@@ -2736,7 +2736,7 @@ var L4 = /* @__PURE__ */ s({
2736
2736
  })
2737
2737
  ]));
2738
2738
  }
2739
- }), f1 = S3, B3 = /* @__PURE__ */ s({
2739
+ }), w1 = S3, A3 = /* @__PURE__ */ s({
2740
2740
  name: "Dessert",
2741
2741
  __name: "dessert",
2742
2742
  setup(t) {
@@ -2750,7 +2750,7 @@ var L4 = /* @__PURE__ */ s({
2750
2750
  })
2751
2751
  ]));
2752
2752
  }
2753
- }), A3 = B3, D3 = /* @__PURE__ */ s({
2753
+ }), B3 = A3, D3 = /* @__PURE__ */ s({
2754
2754
  name: "Discount",
2755
2755
  __name: "discount",
2756
2756
  setup(t) {
@@ -3152,7 +3152,7 @@ var L4 = /* @__PURE__ */ s({
3152
3152
  })
3153
3153
  ]));
3154
3154
  }
3155
- }), Bt = St, At = /* @__PURE__ */ s({
3155
+ }), At = St, Bt = /* @__PURE__ */ s({
3156
3156
  name: "FolderChecked",
3157
3157
  __name: "folder-checked",
3158
3158
  setup(t) {
@@ -3166,7 +3166,7 @@ var L4 = /* @__PURE__ */ s({
3166
3166
  })
3167
3167
  ]));
3168
3168
  }
3169
- }), Dt = At, Lt = /* @__PURE__ */ s({
3169
+ }), Dt = Bt, Lt = /* @__PURE__ */ s({
3170
3170
  name: "FolderDelete",
3171
3171
  __name: "folder-delete",
3172
3172
  setup(t) {
@@ -3548,7 +3548,7 @@ var L4 = /* @__PURE__ */ s({
3548
3548
  })
3549
3549
  ]));
3550
3550
  }
3551
- }), Ba = Sa, Aa = /* @__PURE__ */ s({
3551
+ }), Aa = Sa, Ba = /* @__PURE__ */ s({
3552
3552
  name: "HotWater",
3553
3553
  __name: "hot-water",
3554
3554
  setup(t) {
@@ -3562,7 +3562,7 @@ var L4 = /* @__PURE__ */ s({
3562
3562
  })
3563
3563
  ]));
3564
3564
  }
3565
- }), Da = Aa, La = /* @__PURE__ */ s({
3565
+ }), Da = Ba, La = /* @__PURE__ */ s({
3566
3566
  name: "House",
3567
3567
  __name: "house",
3568
3568
  setup(t) {
@@ -3971,7 +3971,7 @@ var L4 = /* @__PURE__ */ s({
3971
3971
  })
3972
3972
  ]));
3973
3973
  }
3974
- }), B8 = S8, A8 = /* @__PURE__ */ s({
3974
+ }), A8 = S8, B8 = /* @__PURE__ */ s({
3975
3975
  name: "Menu",
3976
3976
  __name: "menu",
3977
3977
  setup(t) {
@@ -3985,7 +3985,7 @@ var L4 = /* @__PURE__ */ s({
3985
3985
  })
3986
3986
  ]));
3987
3987
  }
3988
- }), D8 = A8, L8 = /* @__PURE__ */ s({
3988
+ }), D8 = B8, L8 = /* @__PURE__ */ s({
3989
3989
  name: "MessageBox",
3990
3990
  __name: "message-box",
3991
3991
  setup(t) {
@@ -4405,7 +4405,7 @@ var L4 = /* @__PURE__ */ s({
4405
4405
  })
4406
4406
  ]));
4407
4407
  }
4408
- }), Br = Sr, Ar = /* @__PURE__ */ s({
4408
+ }), Ar = Sr, Br = /* @__PURE__ */ s({
4409
4409
  name: "Paperclip",
4410
4410
  __name: "paperclip",
4411
4411
  setup(t) {
@@ -4419,7 +4419,7 @@ var L4 = /* @__PURE__ */ s({
4419
4419
  })
4420
4420
  ]));
4421
4421
  }
4422
- }), Dr = Ar, Lr = /* @__PURE__ */ s({
4422
+ }), Dr = Br, Lr = /* @__PURE__ */ s({
4423
4423
  name: "PartlyCloudy",
4424
4424
  __name: "partly-cloudy",
4425
4425
  setup(t) {
@@ -4830,7 +4830,7 @@ var L4 = /* @__PURE__ */ s({
4830
4830
  })
4831
4831
  ]));
4832
4832
  }
4833
- }), Sn = yn, Bn = /* @__PURE__ */ s({
4833
+ }), Sn = yn, An = /* @__PURE__ */ s({
4834
4834
  name: "RefreshRight",
4835
4835
  __name: "refresh-right",
4836
4836
  setup(t) {
@@ -4844,7 +4844,7 @@ var L4 = /* @__PURE__ */ s({
4844
4844
  })
4845
4845
  ]));
4846
4846
  }
4847
- }), An = Bn, Dn = /* @__PURE__ */ s({
4847
+ }), Bn = An, Dn = /* @__PURE__ */ s({
4848
4848
  name: "Refresh",
4849
4849
  __name: "refresh",
4850
4850
  setup(t) {
@@ -5245,7 +5245,7 @@ var L4 = /* @__PURE__ */ s({
5245
5245
  })
5246
5246
  ]));
5247
5247
  }
5248
- }), Bo = So, Ao = /* @__PURE__ */ s({
5248
+ }), Ao = So, Bo = /* @__PURE__ */ s({
5249
5249
  name: "SortUp",
5250
5250
  __name: "sort-up",
5251
5251
  setup(t) {
@@ -5259,7 +5259,7 @@ var L4 = /* @__PURE__ */ s({
5259
5259
  })
5260
5260
  ]));
5261
5261
  }
5262
- }), Do = Ao, Lo = /* @__PURE__ */ s({
5262
+ }), Do = Bo, Lo = /* @__PURE__ */ s({
5263
5263
  name: "Sort",
5264
5264
  __name: "sort",
5265
5265
  setup(t) {
@@ -5662,7 +5662,7 @@ var L4 = /* @__PURE__ */ s({
5662
5662
  })
5663
5663
  ]));
5664
5664
  }
5665
- }), Bl = Sl, Al = /* @__PURE__ */ s({
5665
+ }), Al = Sl, Bl = /* @__PURE__ */ s({
5666
5666
  name: "Trophy",
5667
5667
  __name: "trophy",
5668
5668
  setup(t) {
@@ -5676,7 +5676,7 @@ var L4 = /* @__PURE__ */ s({
5676
5676
  })
5677
5677
  ]));
5678
5678
  }
5679
- }), Dl = Al, Ll = /* @__PURE__ */ s({
5679
+ }), Dl = Bl, Ll = /* @__PURE__ */ s({
5680
5680
  name: "TurnOff",
5681
5681
  __name: "turn-off",
5682
5682
  setup(t) {
@@ -5931,7 +5931,7 @@ var L4 = /* @__PURE__ */ s({
5931
5931
  })
5932
5932
  ]));
5933
5933
  }
5934
- }), O0 = u5, p5 = /* @__PURE__ */ s({
5934
+ }), P0 = u5, p5 = /* @__PURE__ */ s({
5935
5935
  name: "Warning",
5936
5936
  __name: "warning",
5937
5937
  setup(t) {
@@ -6052,7 +6052,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6052
6052
  Box: Ee,
6053
6053
  Briefcase: ye,
6054
6054
  Brush: De,
6055
- BrushFilled: Be,
6055
+ BrushFilled: Ae,
6056
6056
  Burger: Te,
6057
6057
  Calendar: ke,
6058
6058
  Camera: Ie,
@@ -6077,7 +6077,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6077
6077
  CircleCheckFilled: x6,
6078
6078
  CircleClose: E6,
6079
6079
  CircleCloseFilled: z6,
6080
- CirclePlus: B6,
6080
+ CirclePlus: A6,
6081
6081
  CirclePlusFilled: y6,
6082
6082
  Clock: D6,
6083
6083
  Close: k6,
@@ -6103,10 +6103,10 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6103
6103
  DataAnalysis: x3,
6104
6104
  DataBoard: M3,
6105
6105
  DataLine: z3,
6106
- Delete: f1,
6106
+ Delete: w1,
6107
6107
  DeleteFilled: E3,
6108
6108
  DeleteLocation: y3,
6109
- Dessert: A3,
6109
+ Dessert: B3,
6110
6110
  Discount: L3,
6111
6111
  Dish: O3,
6112
6112
  DishDot: F3,
@@ -6134,7 +6134,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6134
6134
  Flag: Et,
6135
6135
  Fold: yt,
6136
6136
  Folder: It,
6137
- FolderAdd: Bt,
6137
+ FolderAdd: At,
6138
6138
  FolderChecked: Dt,
6139
6139
  FolderDelete: Tt,
6140
6140
  FolderOpened: kt,
@@ -6160,7 +6160,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6160
6160
  HelpFilled: Ma,
6161
6161
  Hide: Ea,
6162
6162
  Histogram: ya,
6163
- HomeFilled: Ba,
6163
+ HomeFilled: Aa,
6164
6164
  HotWater: Da,
6165
6165
  House: Ta,
6166
6166
  IceCream: Ia,
@@ -6187,7 +6187,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6187
6187
  Management: z8,
6188
6188
  MapLocation: E8,
6189
6189
  Medal: y8,
6190
- Memo: B8,
6190
+ Memo: A8,
6191
6191
  Menu: D8,
6192
6192
  Message: k8,
6193
6193
  MessageBox: T8,
@@ -6214,7 +6214,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6214
6214
  Open: zr,
6215
6215
  Operation: Er,
6216
6216
  Opportunity: yr,
6217
- Orange: Br,
6217
+ Orange: Ar,
6218
6218
  Paperclip: Dr,
6219
6219
  PartlyCloudy: Tr,
6220
6220
  Pear: kr,
@@ -6242,7 +6242,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6242
6242
  ReadingLamp: Hn,
6243
6243
  Refresh: Ln,
6244
6244
  RefreshLeft: Sn,
6245
- RefreshRight: An,
6245
+ RefreshRight: Bn,
6246
6246
  Refrigerator: Fn,
6247
6247
  Remove: Pn,
6248
6248
  RemoveFilled: On,
@@ -6268,7 +6268,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6268
6268
  Soccer: Eo,
6269
6269
  SoldOut: yo,
6270
6270
  Sort: To,
6271
- SortDown: Bo,
6271
+ SortDown: Ao,
6272
6272
  SortUp: Do,
6273
6273
  Stamp: ko,
6274
6274
  Star: Io,
@@ -6295,7 +6295,7 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6295
6295
  TopRight: zl,
6296
6296
  TrendCharts: yl,
6297
6297
  Trophy: Dl,
6298
- TrophyBase: Bl,
6298
+ TrophyBase: Al,
6299
6299
  TurnOff: Tl,
6300
6300
  Umbrella: kl,
6301
6301
  Unlock: Nl,
@@ -6313,25 +6313,25 @@ const b5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6313
6313
  WalletFilled: o5,
6314
6314
  WarnTriangleFilled: c5,
6315
6315
  Warning: _5,
6316
- WarningFilled: O0,
6316
+ WarningFilled: P0,
6317
6317
  Watch: h5,
6318
6318
  Watermelon: v5,
6319
6319
  WindPower: w5,
6320
6320
  ZoomIn: x5,
6321
6321
  ZoomOut: M5
6322
6322
  }, Symbol.toStringTag, { value: "Module" }));
6323
- function R0() {
6323
+ function q0() {
6324
6324
  const t = (/* @__PURE__ */ new Date()).getTime(), e = Math.floor(Math.random() * 1e3);
6325
6325
  return `${t}${e}`;
6326
6326
  }
6327
6327
  let K1 = null;
6328
- function w1(t = [], e) {
6328
+ function g1(t = [], e) {
6329
6329
  t.forEach((a) => {
6330
6330
  const n = a.componentName;
6331
- ["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(n) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && w1(a.children, e);
6331
+ ["ElCard", "ElTabPane", "GridComponent", "DivComponent"].includes(n) && a.id && e({ id: a.id }), a.children && Array.isArray(a.children) && g1(a.children, e);
6332
6332
  });
6333
6333
  }
6334
- function C2() {
6334
+ function x2() {
6335
6335
  return K1;
6336
6336
  }
6337
6337
  function z5(t) {
@@ -6343,13 +6343,13 @@ function Q1(t, e, a = null) {
6343
6343
  id: e,
6344
6344
  parentId: a
6345
6345
  };
6346
- return t.children && (n.children = t.children.map((i) => Q1(i, R0(), e))), n;
6346
+ return t.children && (n.children = t.children.map((i) => Q1(i, q0(), e))), n;
6347
6347
  }
6348
- let r1 = {};
6348
+ let n1 = {};
6349
6349
  function Z1(t, e) {
6350
6350
  var a;
6351
6351
  for (const n of t) {
6352
- if (r1[e] = n, n.id === e) return n;
6352
+ if (n1[e] = n, n.id === e) return n;
6353
6353
  if ((a = n.children) != null && a.length) {
6354
6354
  const i = Z1(n.children, e);
6355
6355
  if (i) return i;
@@ -6357,8 +6357,8 @@ function Z1(t, e) {
6357
6357
  }
6358
6358
  return null;
6359
6359
  }
6360
- function K0(t, e) {
6361
- return r1[e] ? r1[e] : Z1(t, e);
6360
+ function Q0(t, e) {
6361
+ return n1[e] ? n1[e] : Z1(t, e);
6362
6362
  }
6363
6363
  function e4(t, e) {
6364
6364
  var a;
@@ -6373,9 +6373,9 @@ function e4(t, e) {
6373
6373
  }
6374
6374
  function t4(t, e) {
6375
6375
  const a = e.dataset.component;
6376
- t.setData("type", a), e.closest("[data-id]") ? t.setData("itemId", e.closest("[data-id]").dataset.id) : t.setData("itemId", R0());
6376
+ t.setData("type", a), e.closest("[data-id]") ? t.setData("itemId", e.closest("[data-id]").dataset.id) : t.setData("itemId", q0());
6377
6377
  }
6378
- const m0 = {
6378
+ const h0 = {
6379
6379
  teleportTo: F(null),
6380
6380
  SET_TELEPORT_TO(t) {
6381
6381
  this.teleportTo.value = t;
@@ -6386,9 +6386,9 @@ const m0 = {
6386
6386
  this.componentMap = t;
6387
6387
  }
6388
6388
  };
6389
- function A2(t) {
6390
- const e = C2();
6391
- e && (e.onmouseenter = null, e.onmouseleave = null), t && (m0.SET_TELEPORT_TO(t), J2(() => {
6389
+ function B2(t) {
6390
+ const e = x2();
6391
+ e && (e.onmouseenter = null, e.onmouseleave = null), t && (h0.SET_TELEPORT_TO(t), q2(() => {
6392
6392
  const a = t.querySelector(".toolbar");
6393
6393
  t.style.position = "relative", a.style.left = `${t.getBoundingClientRect().width - a.clientWidth}px`, a.style.bottom = "0px", a.style.zIndex = "auto", t.onmouseenter = () => {
6394
6394
  a.style.zIndex = "auto";
@@ -6397,38 +6397,40 @@ function A2(t) {
6397
6397
  };
6398
6398
  }));
6399
6399
  }
6400
- function n1(t) {
6400
+ function o1(t) {
6401
6401
  if (t === null || typeof t != "object") return t;
6402
6402
  if (Array.isArray(t))
6403
- return t.map((a) => n1(a)).filter((a) => a !== void 0);
6403
+ return t.map((a) => o1(a)).filter((a) => a !== void 0);
6404
6404
  const e = {};
6405
6405
  for (const a in t)
6406
6406
  if (Object.prototype.hasOwnProperty.call(t, a)) {
6407
- const n = n1(t[a]);
6407
+ const n = o1(t[a]);
6408
6408
  n !== void 0 && (e[a] = n);
6409
6409
  }
6410
6410
  return e;
6411
6411
  }
6412
- const x2 = F({
6412
+ const d2 = F({
6413
6413
  components: []
6414
6414
  // 顶级组件列表,支持嵌套 children
6415
6415
  });
6416
- let q2 = {};
6417
- function b0(t) {
6418
- x2.value.components = JSON.parse(JSON.stringify(t));
6416
+ let R2 = {};
6417
+ function H0(t) {
6418
+ d2.value.components = JSON.parse(JSON.stringify(t));
6419
6419
  }
6420
6420
  function H5() {
6421
6421
  function t({ id: n = "", el: i = null, componentJSON: c = null }) {
6422
6422
  var p, _, m;
6423
- if (!i && !n)
6423
+ if (!i && !n) {
6424
+ console.error("必须提供 id 或 el");
6424
6425
  return;
6425
- q2[n] && (q2[n].destroy(), delete q2[n]);
6426
+ }
6427
+ R2[n] && (R2[n].destroy(), delete R2[n]);
6426
6428
  let u = i || document.querySelector(`[data-id='${n}']`);
6427
6429
  if (((p = u == null ? void 0 : u.dataset) == null ? void 0 : p.component) === "ElCard") {
6428
6430
  if (u = u.querySelector(".el-card__body"), !u) return;
6429
6431
  } else if ((((_ = u == null ? void 0 : u.dataset) == null ? void 0 : _.component) === "GridComponent" || ((m = u == null ? void 0 : u.dataset) == null ? void 0 : m.component) === "DivComponent") && (u = u.querySelector(".element"), !u))
6430
6432
  return;
6431
- q2[n] = H.create(u, {
6433
+ R2[n] = H.create(u, {
6432
6434
  group: { name: "shared" },
6433
6435
  animation: 150,
6434
6436
  setData: t4,
@@ -6440,7 +6442,7 @@ function H5() {
6440
6442
  e(d);
6441
6443
  },
6442
6444
  onMove: () => {
6443
- m0.SET_TELEPORT_TO(null);
6445
+ h0.SET_TELEPORT_TO(null);
6444
6446
  },
6445
6447
  onUpdate: a
6446
6448
  });
@@ -6452,7 +6454,7 @@ function H5() {
6452
6454
  return;
6453
6455
  }
6454
6456
  const u = n.originalEvent.dataTransfer.getData("itemId");
6455
- let p = n1(a4.componentMap[i]);
6457
+ let p = o1(a4.componentMap[i]);
6456
6458
  if (!p) return;
6457
6459
  let _ = Q1(p, u);
6458
6460
  if (_.noUseForm)
@@ -6468,50 +6470,54 @@ function H5() {
6468
6470
  // if (name !== 'ElRadioGroup' && name !== 'ElCheckboxGroup') e.preventDefault();
6469
6471
  // }
6470
6472
  // },
6471
- id: R0(),
6473
+ id: q0(),
6472
6474
  children: [_]
6473
6475
  };
6474
6476
  }
6475
6477
  if (c) {
6476
- const m = c.dataset.id, d = K0(x2.value.components, m);
6478
+ const m = c.dataset.id, d = Q0(d2.value.components, m);
6477
6479
  d && d.children.splice(n.newIndex, 0, _);
6478
6480
  } else
6479
- x2.value.components[n.newIndex] ? x2.value.components.splice(n.newIndex, 0, _) : x2.value.components.push(_);
6480
- (i === "ElCard" || i === "ElTabs" || i === "GridComponent" || i === "DivComponent") && J2(() => {
6481
+ d2.value.components[n.newIndex] ? d2.value.components.splice(n.newIndex, 0, _) : d2.value.components.push(_);
6482
+ (i === "ElCard" || i === "ElTabs" || i === "GridComponent" || i === "DivComponent") && q2(() => {
6481
6483
  var m;
6482
6484
  (m = _.children) != null && m.length ? _.children.forEach((d) => t({ id: d.id })) : t({ id: _.id });
6483
6485
  });
6484
6486
  }
6485
6487
  function a(n) {
6486
6488
  var w;
6487
- if (!((w = n.item) == null ? void 0 : w.dataset.id))
6489
+ if (!((w = n.item) == null ? void 0 : w.dataset.id)) {
6490
+ console.error("itemId 为空");
6488
6491
  return;
6489
- const c = n.from.closest("[data-id]"), u = n.to.closest("[data-id]"), p = (c == null ? void 0 : c.dataset.id) || null, _ = (u == null ? void 0 : u.dataset.id) || null, m = p ? K0(x2.value.components, p) : { children: x2.value.components }, d = _ ? K0(x2.value.components, _) : { children: x2.value.components };
6492
+ }
6493
+ const c = n.from.closest("[data-id]"), u = n.to.closest("[data-id]"), p = (c == null ? void 0 : c.dataset.id) || null, _ = (u == null ? void 0 : u.dataset.id) || null, m = p ? Q0(d2.value.components, p) : { children: d2.value.components }, d = _ ? Q0(d2.value.components, _) : { children: d2.value.components };
6490
6494
  let [h] = m.children.splice(n.oldDraggableIndex, 1);
6491
- d.children.splice(n.newIndex, 0, h), h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? J2(() => {
6495
+ d.children.splice(n.newIndex, 0, h), d2.value.components, h.componentName === "ElCard" || h.componentName === "ElTabs" || h.componentName === "GridComponent" || h.componentName === "DivComponent" ? q2(() => {
6492
6496
  var E;
6493
- (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length && w1(h.children, t), A2(C2());
6494
- }) : A2(C2());
6497
+ (h.componentName === "ElCard" || h.componentName === "GridComponent" || h.componentName === "DivComponent") && t({ id: h.id }), (E = h.children) != null && E.length && g1(h.children, t), B2(x2());
6498
+ }) : B2(x2());
6495
6499
  }
6496
6500
  return {
6497
6501
  initSortable: t,
6498
- schema: x2
6502
+ schema: d2
6499
6503
  };
6500
6504
  }
6501
6505
  function E5() {
6502
- Object.keys(q2).forEach((t) => {
6503
- q2[t] && t !== "" && (q2[t].destroy(), delete q2[t]);
6506
+ Object.keys(R2).forEach((t) => {
6507
+ R2[t] && t !== "" && (R2[t].destroy(), delete R2[t]);
6504
6508
  });
6505
6509
  }
6506
- const I2 = {
6510
+ const P2 = {
6507
6511
  componentDataMap: {},
6508
6512
  SET_COMPONENT_DATA_MAP(t, e) {
6509
- !e || !t || (this.componentDataMap[t] = e);
6513
+ if (!e || !t)
6514
+ return console.error("组件和ID不能为空");
6515
+ this.componentDataMap[t] = e;
6510
6516
  },
6511
6517
  CLEAR_COMPONENT_DATA_MAP() {
6512
6518
  this.componentDataMap = {};
6513
6519
  }
6514
- }, B = {
6520
+ }, A = {
6515
6521
  formOptions: L1({
6516
6522
  labelWidth: null,
6517
6523
  labelPosition: "right",
@@ -6554,7 +6560,7 @@ const I2 = {
6554
6560
  function V5(t) {
6555
6561
  return t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").toLowerCase();
6556
6562
  }
6557
- const y5 = ["data-component", "data-id"], A1 = {
6563
+ const y5 = ["data-component", "data-id"], B1 = {
6558
6564
  __name: "dropItemComponent",
6559
6565
  props: {
6560
6566
  componentData: {
@@ -6567,11 +6573,11 @@ const y5 = ["data-component", "data-id"], A1 = {
6567
6573
  return (e, a) => {
6568
6574
  var n, i;
6569
6575
  return o(), l("div", {
6570
- class: P0(`drop-item drop-item-${M2(V5)(t.componentData.componentName)}`),
6576
+ class: I0(`drop-item drop-item-${C2(V5)(t.componentData.componentName)}`),
6571
6577
  "data-component": t.componentData.componentName,
6572
6578
  "data-id": t.componentData.id || ((i = (n = t.componentData.children) == null ? void 0 : n[0]) == null ? void 0 : i.id)
6573
6579
  }, [
6574
- s1(e.$slots, "default")
6580
+ i1(e.$slots, "default")
6575
6581
  ], 10, y5);
6576
6582
  };
6577
6583
  }
@@ -6617,23 +6623,23 @@ ${this.styleObjectToCssString(e)}
6617
6623
  }
6618
6624
  },
6619
6625
  setup(t) {
6620
- const e = t, a = G2(() => {
6626
+ const e = t, a = J2(() => {
6621
6627
  const n = {
6622
6628
  textAlign: e.textAlign,
6623
6629
  padding: e.padding
6624
6630
  };
6625
6631
  return $2.SET_STYLES(e.class.split(" ")[1], n), n;
6626
6632
  });
6627
- return i1(() => {
6633
+ return c1(() => {
6628
6634
  $2.DELETE_STYLES(e.class.split(" ")[1]);
6629
6635
  }), (n, i) => (o(), l("div", {
6630
- class: P0(["element block-element", { "div-border": !t.isPreview }]),
6631
- style: c1(a.value)
6636
+ class: I0(["element block-element", { "div-border": !t.isPreview }]),
6637
+ style: u1(a.value)
6632
6638
  }, [
6633
- s1(n.$slots, "default", {}, void 0, !0)
6639
+ i1(n.$slots, "default", {}, void 0, !0)
6634
6640
  ], 6));
6635
6641
  }
6636
- }, B5 = /* @__PURE__ */ k2(S5, [["__scopeId", "data-v-b4ec6a05"]]), A5 = {
6642
+ }, A5 = /* @__PURE__ */ k2(S5, [["__scopeId", "data-v-b4ec6a05"]]), B5 = {
6637
6643
  __name: "gridComponent",
6638
6644
  props: {
6639
6645
  class: {
@@ -6653,23 +6659,23 @@ ${this.styleObjectToCssString(e)}
6653
6659
  }
6654
6660
  },
6655
6661
  setup(t) {
6656
- const e = t, a = G2(() => {
6662
+ const e = t, a = J2(() => {
6657
6663
  const n = {
6658
6664
  "grid-template-columns": `repeat(${e.columns || 1}, calc(100% / ${e.columns || 1} - ${(e.gap ? e.gap : 0) + "px"}))`,
6659
6665
  "grid-gap": `${e.gap}px`
6660
6666
  };
6661
6667
  return $2.SET_STYLES(e.class.split(" ")[1], { ...n, display: "grid" }), n;
6662
6668
  });
6663
- return i1(() => {
6669
+ return c1(() => {
6664
6670
  $2.DELETE_STYLES(e.class.split(" ")[1]);
6665
6671
  }), (n, i) => (o(), l("div", {
6666
- class: P0(["element grid", { "grid-border": !t.isPreview }]),
6667
- style: c1(a.value)
6672
+ class: I0(["element grid", { "grid-border": !t.isPreview }]),
6673
+ style: u1(a.value)
6668
6674
  }, [
6669
- s1(n.$slots, "default", {}, void 0, !0)
6675
+ i1(n.$slots, "default", {}, void 0, !0)
6670
6676
  ], 6));
6671
6677
  }
6672
- }, D5 = /* @__PURE__ */ k2(A5, [["__scopeId", "data-v-9c27fd62"]]), D1 = {
6678
+ }, D5 = /* @__PURE__ */ k2(B5, [["__scopeId", "data-v-9c27fd62"]]), D1 = {
6673
6679
  icons: {},
6674
6680
  SET_ICONS(t, e) {
6675
6681
  this.icons[t] = e;
@@ -6696,38 +6702,38 @@ ${this.styleObjectToCssString(e)}
6696
6702
  }
6697
6703
  },
6698
6704
  setup(t) {
6699
- const e = t, a = G2(() => {
6705
+ const e = t, a = J2(() => {
6700
6706
  const n = {};
6701
6707
  return e.fontSize && (n.fontSize = `${e.fontSize}px`), e.color && (n.color = e.color), Object.keys(n).length ? $2.SET_STYLES(`${e.class} ::v-deep(.el-icon)`, n) : $2.DELETE_STYLES(`${e.class} ::v-deep(.el-icon)`), n;
6702
6708
  });
6703
- return u1(() => {
6709
+ return p1(() => {
6704
6710
  D1.SET_ICONS(e.class, e.icon);
6705
- }), i1(() => {
6711
+ }), c1(() => {
6706
6712
  D1.DELETE_ICONS(e.class), $2.DELETE_STYLES(`${e.class} ::v-deep(.el-icon)`);
6707
6713
  }), (n, i) => {
6708
6714
  const c = N("el-icon");
6709
- return o(), Q(c, {
6710
- style: c1(a.value)
6715
+ return o(), Z(c, {
6716
+ style: u1(a.value)
6711
6717
  }, {
6712
6718
  default: z(() => [
6713
- (o(), Q(T1(b5[e.icon])))
6719
+ (o(), Z(T1(b5[e.icon])))
6714
6720
  ]),
6715
6721
  _: 1
6716
6722
  }, 8, ["style"]);
6717
6723
  };
6718
6724
  }
6719
6725
  }, T5 = ["ElCheckbox", "ElFormItem", "ElRadio", "ElOption", "ElTable", "ElTableColumn", "ElTabPane", "ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent", "div"], F5 = ["ElFormItem", "ElTabs", "ElTable", "ElDivider", "ElButton", "DivComponent"];
6720
- function o1(t, e) {
6726
+ function l1(t, e) {
6721
6727
  return t.map((a) => {
6722
6728
  var n;
6723
6729
  if (a.componentName === "template" && a[e])
6724
- return o1(a[e]);
6730
+ return l1(a[e]);
6725
6731
  if (a.componentName) {
6726
6732
  const i = {
6727
6733
  ...a.props,
6728
6734
  class: ((n = a.props) == null ? void 0 : n.class) || ""
6729
- }, c = a[e] ? o1(a[e]) : void 0;
6730
- return f2(
6735
+ }, c = a[e] ? l1(a[e]) : void 0;
6736
+ return v2(
6731
6737
  L2[a.componentName] || a.componentName,
6732
6738
  i,
6733
6739
  c || a.label
@@ -6739,60 +6745,60 @@ function o1(t, e) {
6739
6745
  const k5 = {
6740
6746
  ElUpload: "fileList"
6741
6747
  };
6742
- function g1({ isPreview: t = !1, callback: e }) {
6743
- const a = t ? B.previewFormData : B.formData, n = T5;
6748
+ function x1({ isPreview: t = !1, callback: e }) {
6749
+ const a = t ? A.previewFormData : A.formData, n = T5;
6744
6750
  function i(c) {
6745
- var M, y;
6746
- c.parentId || I2.SET_COMPONENT_DATA_MAP(c.id, c), c.componentName === "ElFormItem" && c.props.rules && !t && B.SET_FORM_RULES(`field${c.children[0].id}`, c.props.rules);
6751
+ var b, y;
6752
+ c.parentId || P2.SET_COMPONENT_DATA_MAP(c.id, c), c.componentName === "ElFormItem" && c.props.rules && !t && A.SET_FORM_RULES(`field${c.children[0].id}`, c.props.rules);
6747
6753
  const u = `field${c.id}`, p = t ? "SET_PREVIEW_FORM_DATA" : "SET_FORM_DATA";
6748
- n.indexOf(c.componentName) === -1 && !(u in a.value) && (c.componentName === "ElTabs" ? B[p](u, c.children[0].props.name || "") : B[p](u, c.componentName === "ElCheckboxGroup" || c.componentName === "ElUpload" ? [] : ""));
6754
+ n.indexOf(c.componentName) === -1 && !(u in a.value) && (c.componentName === "ElTabs" ? A[p](u, c.children[0].props.name || "") : A[p](u, c.componentName === "ElCheckboxGroup" || c.componentName === "ElUpload" ? [] : ""));
6749
6755
  const _ = { ...c.props }, m = c.on && Object.keys(c.on) ? c.on : {};
6750
6756
  if (a && n.indexOf(c.componentName) === -1) {
6751
- const L = k5[c.componentName] || "modelValue";
6752
- _[L] = a.value[u], _[`onUpdate:${L}`] = (R) => {
6753
- B[p](u, R);
6757
+ const T = k5[c.componentName] || "modelValue";
6758
+ _[T] = a.value[u], _[`onUpdate:${T}`] = (P) => {
6759
+ A[p](u, P);
6754
6760
  };
6755
6761
  }
6756
6762
  let d = {};
6757
6763
  if (c.children && Array.isArray(c.children))
6758
- for (const L of c.children)
6759
- L && (L.componentName === "template" && L.slot ? d[L.slot] = () => {
6760
- var R;
6761
- return (R = L.children) == null ? void 0 : R.map(i);
6762
- } : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ ((R) => () => [...R(), i(L)])(d.default)));
6764
+ for (const T of c.children)
6765
+ T && (T.componentName === "template" && T.slot ? d[T.slot] = () => {
6766
+ var P;
6767
+ return (P = T.children) == null ? void 0 : P.map(i);
6768
+ } : (d.default || (d.default = () => []), d.default = /* @__PURE__ */ ((P) => () => [...P(), i(T)])(d.default)));
6763
6769
  else c.label && (d.default = () => c.label);
6764
- c.componentName === "ElTabPane" && (_["data-id"] = c.id), _.icon && (_.icon = f2(L5, { icon: _.icon, ..._.iconStyle, class: _.class }, {}));
6770
+ c.componentName === "ElTabPane" && (_["data-id"] = c.id), _.icon && (_.icon = v2(L5, { icon: _.icon, ..._.iconStyle, class: _.class }, {}));
6765
6771
  const h = c.id;
6766
6772
  if (c.componentName === "ElCard")
6767
- return f2("div", {
6773
+ return v2("div", {
6768
6774
  key: h,
6769
6775
  class: "drop-item drop-item-card",
6770
6776
  "data-id": c.id,
6771
6777
  "data-component": c.componentName
6772
- }, [f2(L2[c.componentName], _, {
6778
+ }, [v2(L2[c.componentName], _, {
6773
6779
  ...d,
6774
- [c.staticChildren[0].slot]: () => o1(c.staticChildren, "staticChildren")
6780
+ [c.staticChildren[0].slot]: () => l1(c.staticChildren, "staticChildren")
6775
6781
  })]);
6776
- const w = c.componentName === "ElFormItem" ? (y = (M = c.children) == null ? void 0 : M[0]) == null ? void 0 : y.componentName : c.componentName;
6782
+ const w = c.componentName === "ElFormItem" ? (y = (b = c.children) == null ? void 0 : b[0]) == null ? void 0 : y.componentName : c.componentName;
6777
6783
  if (c.componentName === "GridComponent")
6778
- return f2(A1, { componentData: { ...c, componentName: w }, key: h }, {
6779
- default: () => f2(D5, { isPreview: t, ...c.props }, d)
6784
+ return v2(B1, { componentData: { ...c, componentName: w }, key: h }, {
6785
+ default: () => v2(D5, { isPreview: t, ...c.props }, d)
6780
6786
  });
6781
6787
  let E;
6782
6788
  if (c.componentName === "DivComponent")
6783
6789
  E = {
6784
- default: () => f2(B5, { isPreview: t, ...c.props }, d)
6790
+ default: () => v2(A5, { isPreview: t, ...c.props }, d)
6785
6791
  };
6786
6792
  else {
6787
- const L = f2(L2[c.componentName] || c.componentName, {
6793
+ const T = v2(L2[c.componentName] || c.componentName, {
6788
6794
  ..._,
6789
6795
  ...m
6790
6796
  }, d);
6791
6797
  E = {
6792
- default: () => L
6793
- }, e && e(c.componentName, u, L);
6798
+ default: () => T
6799
+ }, e && e(c.componentName, u, T);
6794
6800
  }
6795
- return F5.indexOf(c.componentName) > -1 && !c.parentId ? f2(A1, {
6801
+ return F5.indexOf(c.componentName) > -1 && !c.parentId ? v2(B1, {
6796
6802
  componentData: { ...c, componentName: w },
6797
6803
  key: h
6798
6804
  }, E) : E.default();
@@ -6891,7 +6897,7 @@ const O5 = [
6891
6897
  ElTableConfigProps: J5,
6892
6898
  ElUploadConfigProps: G5,
6893
6899
  GridComponentConfigProps: j5
6894
- }, Symbol.toStringTag, { value: "Module" })), N0 = {
6900
+ }, Symbol.toStringTag, { value: "Module" })), e0 = {
6895
6901
  tableData: [],
6896
6902
  tableKeys: [],
6897
6903
  SET_TABLE_DATA(t) {
@@ -6916,10 +6922,10 @@ const O5 = [
6916
6922
  formRef: Object
6917
6923
  },
6918
6924
  setup(t, { expose: e }) {
6919
- e({ reset: P, select: e2 });
6925
+ e({ reset: q, select: R });
6920
6926
  const a = t, n = F(""), i = F(null), c = F(!1), u = F(null), p = F(null), _ = F([]), m = F([]), d = F([]), h = F(!1), w = ["ElTabs"], E = ["ElCard", "ElButton", "ElDivider", "GridComponent", "DivComponent"];
6921
- let M = !1;
6922
- const y = G2(() => u.value ? !u.value.noUseForm : !1), L = G2(() => (v) => {
6927
+ let b = !1;
6928
+ const y = J2(() => u.value ? !u.value.noUseForm : !1), T = J2(() => (v) => {
6923
6929
  if (p.value.componentName === "ElUpload") {
6924
6930
  if (v.name === "提示内容")
6925
6931
  return p.value.children[1].children[0];
@@ -6936,34 +6942,36 @@ const O5 = [
6936
6942
  return p.value;
6937
6943
  }
6938
6944
  return p.value.props;
6939
- }), R = G2(() => (v) => p.value.componentName === "ElUpload" && v.key === "text" ? p.value.children[0].props : p.value.props), O = G2(() => (v) => p.value.componentName === "ElUpload" && v.key === "fontSize" ? p.value.children[0].props.iconStyle : p.value.props);
6940
- function e2(v) {
6941
- var b, k;
6942
- if (h.value = v.componentName === "ElTable", M = v.componentName === "ElTabs", _.value = [], u.value = v, p.value = E.indexOf(v.componentName) > -1 || h.value ? u.value : u.value.children[0], v.props && (n.value = v.props.label, i.value = v.props["label-width"], c.value = ((b = v.props.rules) == null ? void 0 : b.required) || !1), d.value = [], m.value = [], v.children && v.children[0] && ((k = v.children[0]) == null ? void 0 : k.componentName) !== "ElUpload" && !v.parentId) {
6943
- let q;
6944
- w.indexOf(v.componentName) > -1 || h.value ? q = v.children : v.componentName === "ElFormItem" && (q = v.children[0].children), m.value = (q || []).map((U, h2) => (d.value[h2] = U.props.label, U.props));
6945
+ }), P = J2(() => (v) => p.value.componentName === "ElUpload" && v.key === "text" ? p.value.children[0].props : p.value.props), I = J2(() => (v) => p.value.componentName === "ElUpload" && v.key === "fontSize" ? p.value.children[0].props.iconStyle : p.value.props);
6946
+ function R(v) {
6947
+ var M, k;
6948
+ if (h.value = v.componentName === "ElTable", b = v.componentName === "ElTabs", _.value = [], u.value = v, p.value = E.indexOf(v.componentName) > -1 || h.value ? u.value : u.value.children[0], v.props && (n.value = v.props.label, i.value = v.props["label-width"], c.value = ((M = v.props.rules) == null ? void 0 : M.required) || !1), d.value = [], m.value = [], v.children && v.children[0] && ((k = v.children[0]) == null ? void 0 : k.componentName) !== "ElUpload" && !v.parentId) {
6949
+ let $;
6950
+ w.indexOf(v.componentName) > -1 || h.value ? $ = v.children : v.componentName === "ElFormItem" && ($ = v.children[0].children), m.value = ($ || []).map((O, t2) => (d.value[t2] = O.props.label, O.props));
6945
6951
  }
6946
6952
  (y.value && v.children[0] || E.indexOf(p.value.componentName) > -1 || h.value) && (_.value = X5[`${p.value.componentName}ConfigProps`]);
6947
6953
  }
6948
- function P() {
6954
+ function q() {
6949
6955
  n.value = "", c.value = !1, u.value = null, _.value = [], m.value = [];
6950
6956
  }
6951
- function m2() {
6952
- h && (N0.SET_TABLE_DATA(p.value.props.data), N0.SET_TABLE_DATA_KEYS(u.value.children.map((v) => v.props.prop)));
6957
+ function a2() {
6958
+ h && (e0.SET_TABLE_DATA(p.value.props.data), e0.SET_TABLE_DATA_KEYS(u.value.children.map((v) => v.props.prop)));
6953
6959
  }
6954
6960
  function s2(v) {
6955
6961
  u.value.props.label = v;
6956
6962
  }
6957
- function i2(v) {
6963
+ function M2(v) {
6958
6964
  v ? u.value.props["label-width"] = Number(v) : delete u.value.props["label-width"];
6959
6965
  }
6960
- function E2() {
6961
- var k, U;
6962
- if (!((k = u.value) != null && k.props))
6966
+ function A2() {
6967
+ var k, $, O;
6968
+ if (!((k = u.value) != null && k.props)) {
6969
+ console.error(`currentData.value.props ${($ = u.value) == null ? void 0 : $.props}`);
6963
6970
  return;
6964
- const v = (U = u.value.children) == null ? void 0 : U[0], b = `field${v == null ? void 0 : v.id}`;
6965
- if (!c.value && B.rules.value[b]) {
6966
- delete u.value.props.rules, B.DELETE_FORM_DATA(b), B.DELETE_RULES(b), setTimeout(() => {
6971
+ }
6972
+ const v = (O = u.value.children) == null ? void 0 : O[0], M = `field${v == null ? void 0 : v.id}`;
6973
+ if (!c.value && A.rules.value[M]) {
6974
+ delete u.value.props.rules, A.DELETE_FORM_DATA(M), A.DELETE_RULES(M), setTimeout(() => {
6967
6975
  a.formRef.resetFields();
6968
6976
  });
6969
6977
  return;
@@ -6973,213 +6981,225 @@ const O5 = [
6973
6981
  // message: ()=> useFormCurrentData.value.props.ruleMessage,
6974
6982
  message: "该项为必填项!",
6975
6983
  trigger: v.children ? "change" : "blur"
6976
- }, B.SET_FORM_RULES(b, JSON.parse(JSON.stringify(u.value.props.rules))), setTimeout(() => {
6984
+ }, A.SET_FORM_RULES(M, JSON.parse(JSON.stringify(u.value.props.rules))), setTimeout(() => {
6977
6985
  a.formRef.resetFields();
6978
6986
  }));
6979
6987
  }
6980
- function t2(v) {
6981
- var q, U, h2;
6982
- const b = v.key, k = ((h2 = (U = (q = u.value) == null ? void 0 : q.children) == null ? void 0 : U[0]) == null ? void 0 : h2.props) || {};
6983
- return b === "multiple-limit" || b === "collapse-tags" ? k.multiple === !0 : b === "unlink-panels" || b === "range-separator" ? k.type === "daterange" || k.type === "datetimerange" : b === "show-password" ? k.type === "password" : b === "maxlength" || b === "show-word-limit" ? k.type === "textarea" : !0;
6988
+ function K(v) {
6989
+ var $, O, t2;
6990
+ const M = v.key, k = ((t2 = (O = ($ = u.value) == null ? void 0 : $.children) == null ? void 0 : O[0]) == null ? void 0 : t2.props) || {};
6991
+ return M === "multiple-limit" || M === "collapse-tags" ? k.multiple === !0 : M === "unlink-panels" || M === "range-separator" ? k.type === "daterange" || k.type === "datetimerange" : M === "show-password" ? k.type === "password" : M === "maxlength" || M === "show-word-limit" ? k.type === "textarea" : !0;
6984
6992
  }
6985
- let A = "";
6986
- function x(v, b, k) {
6987
- if (v === "textarea" || A === "textarea") {
6988
- A = v, A2(C2()), delete u.value.children[0].props["show-password"], delete u.value.children[0].props["show-word-limit"], delete u.value.children[0].props.maxlength;
6993
+ let b2 = "";
6994
+ function w2(v, M, k) {
6995
+ if (v === "textarea" || b2 === "textarea") {
6996
+ b2 = v, B2(x2()), delete u.value.children[0].props["show-password"], delete u.value.children[0].props["show-word-limit"], delete u.value.children[0].props.maxlength;
6989
6997
  return;
6990
6998
  }
6991
6999
  if (v === "text" || v === "password") {
6992
7000
  delete u.value.children[0].props["show-password"], delete u.value.children[0].props["show-word-limit"], delete u.value.children[0].props.maxlength;
6993
7001
  return;
6994
7002
  }
6995
- b === "type" && k === "ElDatePicker" && B.SET_FORM_DATA([`field${u.value.children[0].id}`], null);
7003
+ M === "type" && k === "ElDatePicker" && A.SET_FORM_DATA([`field${u.value.children[0].id}`], null);
6996
7004
  }
6997
- function J(v, b) {
7005
+ function B(v, M) {
6998
7006
  if (h.value && v === "rows") {
6999
7007
  const k = {};
7000
- p.value.children.forEach((q) => {
7001
- k[q.props.prop] = "";
7008
+ p.value.children.forEach((t2) => {
7009
+ k[t2.props.prop] = "";
7002
7010
  });
7003
- for (let q = 0; q <= b - 1; q++)
7004
- p.value.props.data.push({ ...k });
7005
- m2();
7011
+ const $ = p.value.props.data.length;
7012
+ let O = -1;
7013
+ if ($ < M) {
7014
+ O = M - $ - 1;
7015
+ for (let t2 = 0; t2 <= O; t2++)
7016
+ p.value.props.data.push({ ...k });
7017
+ } else
7018
+ O = M, p.value.props.data.splice(O);
7019
+ a2();
7006
7020
  }
7007
7021
  }
7008
- function X(v, b) {
7022
+ function x(v, M) {
7009
7023
  if (v === "collapse-tags") {
7010
- typeof u.value.children[0].props["collapse-tags-tooltip"] == "boolean" && !b ? (delete u.value.children[0].props["collapse-tags-tooltip"], delete u.value.children[0].props["collapse-tags"]) : u.value.children[0].props["collapse-tags-tooltip"] = b;
7024
+ typeof u.value.children[0].props["collapse-tags-tooltip"] == "boolean" && !M ? (delete u.value.children[0].props["collapse-tags-tooltip"], delete u.value.children[0].props["collapse-tags"]) : u.value.children[0].props["collapse-tags-tooltip"] = M;
7011
7025
  return;
7012
7026
  }
7013
- v === "border" && p.value.componentName !== "ElTable" && (b ? u.value.children[0].children.forEach((k) => {
7027
+ v === "border" && p.value.componentName !== "ElTable" && (M ? u.value.children[0].children.forEach((k) => {
7014
7028
  k.props.border = !0;
7015
7029
  }) : u.value.children[0].children.forEach((k) => {
7016
7030
  delete k.props.border;
7017
7031
  }));
7018
7032
  }
7019
- function o2(v) {
7020
- h.value || M ? u.value.children.splice(v, 1) : u.value.children[0].children.splice(v, 1), m.value.splice(v, 1), d.value.splice(v, 1), A2(C2());
7033
+ function Y(v) {
7034
+ h.value || b ? u.value.children.splice(v, 1) : u.value.children[0].children.splice(v, 1), m.value.splice(v, 1), d.value.splice(v, 1), B2(x2());
7021
7035
  }
7022
- function W(v, b, k) {
7023
- const q = v[b];
7024
- v.splice(b, 1, v[k]), v.splice(k, 1, q);
7036
+ function J(v, M, k) {
7037
+ const $ = v[M];
7038
+ v.splice(M, 1, v[k]), v.splice(k, 1, $);
7025
7039
  }
7026
- function I(v) {
7027
- W(m.value, v, v - 1), W(d.value, v, v - 1), W(M || h.value ? u.value.children : u.value.children[0].children, v, v - 1), A2(C2()), m2();
7040
+ function n2(v) {
7041
+ J(m.value, v, v - 1), J(d.value, v, v - 1), J(b || h.value ? u.value.children : u.value.children[0].children, v, v - 1), B2(x2()), a2();
7028
7042
  }
7029
- function O2(v) {
7030
- W(m.value, v, v + 1), W(d.value, v, v + 1), W(M || h.value ? u.value.children : u.value.children[0].children, v, v + 1), A2(C2()), m2();
7043
+ function o2(v) {
7044
+ J(m.value, v, v + 1), J(d.value, v, v + 1), J(b || h.value ? u.value.children : u.value.children[0].children, v, v + 1), B2(x2()), a2();
7031
7045
  }
7032
- function B2(v, b) {
7033
- m.value[b].label = v, A2(C2());
7046
+ function W(v, M) {
7047
+ m.value[M].label = v, B2(x2());
7034
7048
  }
7035
- function r2(v, b) {
7036
- m.value[b].name = v;
7049
+ function j2(v, M) {
7050
+ m.value[M].name = v;
7037
7051
  }
7038
- function x1() {
7039
- var h2, a0, r0, j2, n0, f0, w0;
7040
- if (!((a0 = (h2 = u.value) == null ? void 0 : h2.children) != null && a0.length))
7052
+ function w0() {
7053
+ var t2, r0, n0, U2, o0, g0, x0;
7054
+ if (!((r0 = (t2 = u.value) == null ? void 0 : t2.children) != null && r0.length)) {
7055
+ console.error("当前组件 length 为 0");
7041
7056
  return;
7042
- const v = M || h.value ? u.value.children : (r0 = u.value.children[0]) == null ? void 0 : r0.children;
7043
- if (!v)
7057
+ }
7058
+ const v = b || h.value ? u.value.children : (n0 = u.value.children[0]) == null ? void 0 : n0.children;
7059
+ if (!v) {
7060
+ console.error("目标children不存在");
7044
7061
  return;
7045
- const b = (/* @__PURE__ */ new Date()).getTime(), k = {
7062
+ }
7063
+ const M = (/* @__PURE__ */ new Date()).getTime(), k = {
7046
7064
  label: "New Option",
7047
- ...M ? { name: b } : { [h.value ? "prop" : "value"]: b.toString() }
7065
+ ...b ? { name: M } : { [h.value ? "prop" : "value"]: M.toString() }
7048
7066
  };
7049
- (n0 = (j2 = u.value.children[0]) == null ? void 0 : j2.props) != null && n0.border && (k.border = !0);
7050
- const q = M || h.value ? u.value.children[0].componentName : (w0 = (f0 = u.value.children[0]) == null ? void 0 : f0.children[0]) == null ? void 0 : w0.componentName;
7051
- if (!q)
7067
+ (o0 = (U2 = u.value.children[0]) == null ? void 0 : U2.props) != null && o0.border && (k.border = !0);
7068
+ const $ = b || h.value ? u.value.children[0].componentName : (x0 = (g0 = u.value.children[0]) == null ? void 0 : g0.children[0]) == null ? void 0 : x0.componentName;
7069
+ if (!$) {
7070
+ console.error("无法确定组件类型");
7052
7071
  return;
7053
- const U = {
7054
- componentName: q,
7055
- id: R0(),
7072
+ }
7073
+ const O = {
7074
+ componentName: $,
7075
+ id: q0(),
7056
7076
  parentId: u.value.componentName === "ElFormItem" ? u.value.children[0].id : u.value.id,
7057
7077
  props: k,
7058
- ...M ? { children: [] } : {}
7078
+ ...b ? { children: [] } : {}
7059
7079
  };
7060
- v.push(L1({ ...U })), m.value && (d.value[d.value.length] = k.label, m.value.push(k)), M && J2(() => {
7080
+ v.push(L1({ ...O })), m.value && (d.value[d.value.length] = k.label, m.value.push(k)), b && q2(() => {
7061
7081
  var C;
7062
- (C = a.initSortable) == null || C.call(a, { id: U.id, componentJSON: U });
7063
- }), A2(C2());
7082
+ (C = a.initSortable) == null || C.call(a, { id: O.id, componentJSON: O });
7083
+ }), B2(x2());
7064
7084
  }
7065
- return (v, b) => {
7066
- const k = N("el-divider"), q = N("el-input"), U = N("el-form-item"), h2 = N("el-icon"), a0 = N("el-input-number"), r0 = N("el-switch"), j2 = N("el-option"), n0 = N("el-select"), f0 = N("el-button"), w0 = N("el-form");
7085
+ return (v, M) => {
7086
+ const k = N("el-divider"), $ = N("el-input"), O = N("el-form-item"), t2 = N("el-icon"), r0 = N("el-input-number"), n0 = N("el-switch"), U2 = N("el-option"), o0 = N("el-select"), g0 = N("el-button"), x0 = N("el-form");
7067
7087
  return o(), l("div", null, [
7068
- g(w0, { "label-width": "90px" }, {
7088
+ g(x0, { "label-width": "90px" }, {
7069
7089
  default: z(() => [
7070
- B0(g(k, null, {
7071
- default: z(() => b[4] || (b[4] = [
7090
+ D0(g(k, null, {
7091
+ default: z(() => M[4] || (M[4] = [
7072
7092
  r("p", null, "表单属性", -1)
7073
7093
  ])),
7074
7094
  _: 1
7075
7095
  }, 512), [
7076
- [A0, y.value]
7096
+ [L0, y.value]
7077
7097
  ]),
7078
7098
  y.value ? (o(), l(V2, { key: 0 }, [
7079
- g(U, { label: "标签文本" }, {
7099
+ g(O, { label: "标签文本" }, {
7080
7100
  default: z(() => [
7081
- g(q, {
7101
+ g($, {
7082
7102
  modelValue: n.value,
7083
- "onUpdate:modelValue": b[0] || (b[0] = (C) => n.value = C),
7103
+ "onUpdate:modelValue": M[0] || (M[0] = (C) => n.value = C),
7084
7104
  onChange: s2
7085
7105
  }, null, 8, ["modelValue"])
7086
7106
  ]),
7087
7107
  _: 1
7088
7108
  }),
7089
- g(U, null, {
7109
+ g(O, null, {
7090
7110
  label: z(() => [
7091
- b[5] || (b[5] = w2(" 标签宽度 ")),
7092
- g(h2, {
7111
+ M[5] || (M[5] = f2(" 标签宽度 ")),
7112
+ g(t2, {
7093
7113
  class: "form-item-tip",
7094
7114
  title: "0 或空为 auto"
7095
7115
  }, {
7096
7116
  default: z(() => [
7097
- g(M2(O0))
7117
+ g(C2(P0))
7098
7118
  ]),
7099
7119
  _: 1
7100
7120
  })
7101
7121
  ]),
7102
7122
  default: z(() => [
7103
- g(a0, {
7123
+ g(r0, {
7104
7124
  controls: !1,
7105
7125
  modelValue: i.value,
7106
- "onUpdate:modelValue": b[1] || (b[1] = (C) => i.value = C),
7126
+ "onUpdate:modelValue": M[1] || (M[1] = (C) => i.value = C),
7107
7127
  min: 0,
7108
7128
  "step-strictly": "",
7109
7129
  step: 1,
7110
- onChange: i2
7130
+ onChange: M2
7111
7131
  }, null, 8, ["modelValue"])
7112
7132
  ]),
7113
7133
  _: 1
7114
7134
  }),
7115
- g(U, { label: "是否必填" }, {
7135
+ g(O, { label: "是否必填" }, {
7116
7136
  default: z(() => [
7117
- g(r0, {
7137
+ g(n0, {
7118
7138
  modelValue: c.value,
7119
- "onUpdate:modelValue": b[2] || (b[2] = (C) => c.value = C),
7120
- onChange: E2
7139
+ "onUpdate:modelValue": M[2] || (M[2] = (C) => c.value = C),
7140
+ onChange: A2
7121
7141
  }, null, 8, ["modelValue"])
7122
7142
  ]),
7123
7143
  _: 1
7124
7144
  }),
7125
- c.value ? (o(), Q(U, {
7145
+ c.value ? (o(), Z(O, {
7126
7146
  key: 0,
7127
7147
  label: "必填提示"
7128
7148
  }, {
7129
7149
  default: z(() => [
7130
- g(q, {
7150
+ g($, {
7131
7151
  modelValue: u.value.props.rules.message,
7132
- "onUpdate:modelValue": b[3] || (b[3] = (C) => u.value.props.rules.message = C)
7152
+ "onUpdate:modelValue": M[3] || (M[3] = (C) => u.value.props.rules.message = C)
7133
7153
  }, null, 8, ["modelValue"])
7134
7154
  ]),
7135
7155
  _: 1
7136
- })) : z2("", !0)
7137
- ], 64)) : z2("", !0),
7138
- B0(g(k, null, {
7139
- default: z(() => b[6] || (b[6] = [
7156
+ })) : H2("", !0)
7157
+ ], 64)) : H2("", !0),
7158
+ D0(g(k, null, {
7159
+ default: z(() => M[6] || (M[6] = [
7140
7160
  r("p", null, "组件属性", -1)
7141
7161
  ])),
7142
7162
  _: 1
7143
7163
  }, 512), [
7144
- [A0, _.value && _.value.length]
7164
+ [L0, _.value && _.value.length]
7145
7165
  ]),
7146
- (o(!0), l(V2, null, z0(_.value, (C) => (o(), l(V2, null, [
7147
- t2(C) ? (o(), Q(U, {
7166
+ (o(!0), l(V2, null, E0(_.value, (C) => (o(), l(V2, null, [
7167
+ K(C) ? (o(), Z(O, {
7148
7168
  key: 0,
7149
7169
  label: C.name
7150
7170
  }, r4({
7151
7171
  default: z(() => [
7152
- C.values ? (o(), Q(n0, {
7172
+ C.values ? (o(), Z(o0, {
7153
7173
  key: 0,
7154
7174
  modelValue: p.value.props[C.key],
7155
- "onUpdate:modelValue": ($) => p.value.props[C.key] = $,
7175
+ "onUpdate:modelValue": (j) => p.value.props[C.key] = j,
7156
7176
  placeholder: "请选择",
7157
- onChange: ($) => x(p.value.props[C.key], C.key, p.value.componentName),
7177
+ onChange: (j) => w2(p.value.props[C.key], C.key, p.value.componentName),
7158
7178
  clearable: C.clearable
7159
7179
  }, {
7160
7180
  default: z(() => [
7161
- (o(!0), l(V2, null, z0(C.values, ($) => (o(), Q(j2, {
7162
- value: $,
7163
- label: $
7181
+ (o(!0), l(V2, null, E0(C.values, (j) => (o(), Z(U2, {
7182
+ value: j,
7183
+ label: j
7164
7184
  }, null, 8, ["value", "label"]))), 256))
7165
7185
  ]),
7166
7186
  _: 2
7167
7187
  }, 1032, ["modelValue", "onUpdate:modelValue", "onChange", "clearable"])) : (o(), l(V2, { key: 1 }, [
7168
- typeof C.value == "boolean" ? (o(), Q(r0, {
7188
+ typeof C.value == "boolean" ? (o(), Z(n0, {
7169
7189
  key: 0,
7170
- modelValue: R.value(C)[C.key],
7171
- "onUpdate:modelValue": ($) => R.value(C)[C.key] = $,
7172
- onChange: ($) => X(C.key, p.value.props[C.key])
7173
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : typeof C.value == "number" ? (o(), Q(a0, {
7190
+ modelValue: P.value(C)[C.key],
7191
+ "onUpdate:modelValue": (j) => P.value(C)[C.key] = j,
7192
+ onChange: (j) => x(C.key, p.value.props[C.key])
7193
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : typeof C.value == "number" ? (o(), Z(r0, {
7174
7194
  key: 1,
7175
- modelValue: O.value(C)[C.key],
7176
- "onUpdate:modelValue": ($) => O.value(C)[C.key] = $,
7177
- onChange: ($) => J(C.key, O.value(C)[C.key]),
7195
+ modelValue: I.value(C)[C.key],
7196
+ "onUpdate:modelValue": (j) => I.value(C)[C.key] = j,
7197
+ onChange: (j) => B(C.key, I.value(C)[C.key]),
7178
7198
  min: 0
7179
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (o(), Q(q, {
7199
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])) : (o(), Z($, {
7180
7200
  key: 2,
7181
- modelValue: L.value(C)[C.key],
7182
- "onUpdate:modelValue": ($) => L.value(C)[C.key] = $,
7201
+ modelValue: T.value(C)[C.key],
7202
+ "onUpdate:modelValue": (j) => T.value(C)[C.key] = j,
7183
7203
  placeholder: `请输入${C.name}`,
7184
7204
  clearable: C.clearable
7185
7205
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "clearable"]))
@@ -7190,79 +7210,79 @@ const O5 = [
7190
7210
  C.tip ? {
7191
7211
  name: "label",
7192
7212
  fn: z(() => [
7193
- w2(h0(C.name) + " ", 1),
7194
- g(h2, {
7213
+ f2(d0(C.name) + " ", 1),
7214
+ g(t2, {
7195
7215
  class: "form-item-tip",
7196
7216
  title: C.tip
7197
7217
  }, {
7198
7218
  default: z(() => [
7199
- g(M2(O0))
7219
+ g(C2(P0))
7200
7220
  ]),
7201
7221
  _: 2
7202
7222
  }, 1032, ["title"])
7203
7223
  ]),
7204
7224
  key: "0"
7205
7225
  } : void 0
7206
- ]), 1032, ["label"])) : z2("", !0)
7226
+ ]), 1032, ["label"])) : H2("", !0)
7207
7227
  ], 64))), 256)),
7208
7228
  m.value.length ? (o(), l("div", K5, [
7209
7229
  g(k, null, {
7210
7230
  default: z(() => [
7211
- r("p", null, h0(h.value ? "表头" : "Options"), 1)
7231
+ r("p", null, d0(h.value ? "表头" : "Options"), 1)
7212
7232
  ]),
7213
7233
  _: 1
7214
7234
  }),
7215
7235
  r("ul", null, [
7216
- (o(!0), l(V2, null, z0(m.value, (C, $) => (o(), l("li", null, [
7217
- g(U, { label: "文本" }, {
7236
+ (o(!0), l(V2, null, E0(m.value, (C, j) => (o(), l("li", null, [
7237
+ g(O, { label: "文本" }, {
7218
7238
  default: z(() => [
7219
- g(q, {
7220
- modelValue: d.value[$],
7221
- "onUpdate:modelValue": (c2) => d.value[$] = c2,
7222
- onChange: (c2) => B2(d.value[$], $)
7239
+ g($, {
7240
+ modelValue: d.value[j],
7241
+ "onUpdate:modelValue": (c2) => d.value[j] = c2,
7242
+ onChange: (c2) => W(d.value[j], j)
7223
7243
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
7224
7244
  ]),
7225
7245
  _: 2
7226
7246
  }, 1024),
7227
- typeof C.value < "u" ? (o(), Q(U, {
7247
+ typeof C.value < "u" ? (o(), Z(O, {
7228
7248
  key: 0,
7229
7249
  label: "值(value)"
7230
7250
  }, {
7231
7251
  default: z(() => [
7232
- g(q, {
7252
+ g($, {
7233
7253
  modelValue: C.value,
7234
7254
  "onUpdate:modelValue": (c2) => C.value = c2
7235
7255
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7236
7256
  ]),
7237
7257
  _: 2
7238
7258
  }, 1024)) : h.value ? (o(), l(V2, { key: 1 }, [
7239
- g(U, { label: "值(prop)" }, {
7259
+ g(O, { label: "值(prop)" }, {
7240
7260
  default: z(() => [
7241
- g(q, {
7261
+ g($, {
7242
7262
  modelValue: C.prop,
7243
7263
  "onUpdate:modelValue": (c2) => C.prop = c2
7244
7264
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7245
7265
  ]),
7246
7266
  _: 2
7247
7267
  }, 1024),
7248
- g(U, { label: "对齐方式" }, {
7268
+ g(O, { label: "对齐方式" }, {
7249
7269
  default: z(() => [
7250
- g(n0, {
7270
+ g(o0, {
7251
7271
  modelValue: C.align,
7252
7272
  "onUpdate:modelValue": (c2) => C.align = c2,
7253
7273
  placeholder: "请选择",
7254
7274
  clearable: ""
7255
7275
  }, {
7256
7276
  default: z(() => [
7257
- g(j2, {
7277
+ g(U2, {
7258
7278
  value: "center",
7259
7279
  label: "center"
7260
7280
  }),
7261
- g(j2, {
7281
+ g(U2, {
7262
7282
  value: "right",
7263
7283
  label: "right"
7264
7284
  }),
7265
- g(j2, {
7285
+ g(U2, {
7266
7286
  value: "left",
7267
7287
  label: "left"
7268
7288
  })
@@ -7272,73 +7292,73 @@ const O5 = [
7272
7292
  ]),
7273
7293
  _: 2
7274
7294
  }, 1024)
7275
- ], 64)) : p.value.componentName !== "ElButton" ? (o(), Q(U, {
7295
+ ], 64)) : p.value.componentName !== "ElButton" ? (o(), Z(O, {
7276
7296
  key: 2,
7277
7297
  label: "值(name)"
7278
7298
  }, {
7279
7299
  default: z(() => [
7280
- g(q, {
7300
+ g($, {
7281
7301
  modelValue: C.name,
7282
7302
  "onUpdate:modelValue": (c2) => C.name = c2,
7283
- onChange: (c2) => r2(C.name, $)
7303
+ onChange: (c2) => j2(C.name, j)
7284
7304
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
7285
7305
  ]),
7286
7306
  _: 2
7287
- }, 1024)) : z2("", !0),
7307
+ }, 1024)) : H2("", !0),
7288
7308
  m.value.length > 1 ? (o(), l("div", Q5, [
7289
- g(h2, {
7309
+ g(t2, {
7290
7310
  class: "delete",
7291
- onClick: (c2) => o2($),
7311
+ onClick: (c2) => Y(j),
7292
7312
  title: "删除"
7293
7313
  }, {
7294
7314
  default: z(() => [
7295
- g(M2(f1))
7315
+ g(C2(w1))
7296
7316
  ]),
7297
7317
  _: 2
7298
7318
  }, 1032, ["onClick"]),
7299
- $ !== 0 ? (o(), Q(h2, {
7319
+ j !== 0 ? (o(), Z(t2, {
7300
7320
  key: 0,
7301
- onClick: (c2) => I($),
7321
+ onClick: (c2) => n2(j),
7302
7322
  title: "上移"
7303
7323
  }, {
7304
7324
  default: z(() => [
7305
- g(M2(X1))
7325
+ g(C2(X1))
7306
7326
  ]),
7307
7327
  _: 2
7308
- }, 1032, ["onClick"])) : z2("", !0),
7309
- m.value.length - 1 !== $ ? (o(), Q(h2, {
7328
+ }, 1032, ["onClick"])) : H2("", !0),
7329
+ m.value.length - 1 !== j ? (o(), Z(t2, {
7310
7330
  key: 1,
7311
- onClick: (c2) => O2($),
7331
+ onClick: (c2) => o2(j),
7312
7332
  title: "下移"
7313
7333
  }, {
7314
7334
  default: z(() => [
7315
- g(M2(J1))
7335
+ g(C2(J1))
7316
7336
  ]),
7317
7337
  _: 2
7318
- }, 1032, ["onClick"])) : z2("", !0)
7319
- ])) : z2("", !0)
7338
+ }, 1032, ["onClick"])) : H2("", !0)
7339
+ ])) : H2("", !0)
7320
7340
  ]))), 256))
7321
7341
  ]),
7322
7342
  r("div", null, [
7323
- g(f0, {
7343
+ g(g0, {
7324
7344
  link: "",
7325
7345
  type: "primary",
7326
- onClick: x1
7346
+ onClick: w0
7327
7347
  }, {
7328
- default: z(() => b[7] || (b[7] = [
7329
- w2("增加")
7348
+ default: z(() => M[7] || (M[7] = [
7349
+ f2("增加")
7330
7350
  ])),
7331
7351
  _: 1
7332
7352
  })
7333
7353
  ])
7334
- ])) : z2("", !0)
7354
+ ])) : H2("", !0)
7335
7355
  ]),
7336
7356
  _: 1
7337
7357
  })
7338
7358
  ]);
7339
7359
  };
7340
7360
  }
7341
- }, e9 = /* @__PURE__ */ k2(Z5, [["__scopeId", "data-v-2f0cb2a2"]]), t9 = {
7361
+ }, e9 = /* @__PURE__ */ k2(Z5, [["__scopeId", "data-v-b84d8444"]]), t9 = {
7342
7362
  __name: "setForm",
7343
7363
  emits: ["inlineChange"],
7344
7364
  setup(t, { expose: e, emit: a }) {
@@ -7350,35 +7370,35 @@ const O5 = [
7350
7370
  c.value = h.labelWidth, i.value = h.labelPosition, u.value = h.inline;
7351
7371
  }
7352
7372
  function _() {
7353
- B.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
7373
+ A.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
7354
7374
  }
7355
7375
  function m() {
7356
- B.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
7376
+ A.SET_FORM_OPTIONS({ labelPosition: i.value, labelWidth: c.value });
7357
7377
  }
7358
7378
  function d(h) {
7359
7379
  n("inlineChange", h);
7360
7380
  }
7361
7381
  return (h, w) => {
7362
- const E = N("el-icon"), M = N("el-input-number"), y = N("el-form-item"), L = N("el-radio"), R = N("el-radio-group"), O = N("el-switch"), e2 = N("el-form");
7363
- return o(), Q(e2, { "label-width": "100px" }, {
7382
+ const E = N("el-icon"), b = N("el-input-number"), y = N("el-form-item"), T = N("el-radio"), P = N("el-radio-group"), I = N("el-switch"), R = N("el-form");
7383
+ return o(), Z(R, { "label-width": "100px" }, {
7364
7384
  default: z(() => [
7365
7385
  g(y, null, {
7366
7386
  label: z(() => [
7367
- w[3] || (w[3] = w2(" 标签宽度 ")),
7387
+ w[3] || (w[3] = f2(" 标签宽度 ")),
7368
7388
  g(E, {
7369
7389
  class: "form-item-tip",
7370
7390
  title: "0 或空为 auto"
7371
7391
  }, {
7372
7392
  default: z(() => [
7373
- g(M2(O0))
7393
+ g(C2(P0))
7374
7394
  ]),
7375
7395
  _: 1
7376
7396
  })
7377
7397
  ]),
7378
7398
  default: z(() => [
7379
- g(M, {
7399
+ g(b, {
7380
7400
  modelValue: c.value,
7381
- "onUpdate:modelValue": w[0] || (w[0] = (P) => c.value = P),
7401
+ "onUpdate:modelValue": w[0] || (w[0] = (q) => c.value = q),
7382
7402
  min: 0,
7383
7403
  "step-strictly": "",
7384
7404
  step: 1,
@@ -7390,27 +7410,27 @@ const O5 = [
7390
7410
  }),
7391
7411
  g(y, { label: "标签文本对齐" }, {
7392
7412
  default: z(() => [
7393
- g(R, {
7413
+ g(P, {
7394
7414
  modelValue: i.value,
7395
- "onUpdate:modelValue": w[1] || (w[1] = (P) => i.value = P),
7415
+ "onUpdate:modelValue": w[1] || (w[1] = (q) => i.value = q),
7396
7416
  onChange: _
7397
7417
  }, {
7398
7418
  default: z(() => [
7399
- g(L, { value: "left" }, {
7419
+ g(T, { value: "left" }, {
7400
7420
  default: z(() => w[4] || (w[4] = [
7401
- w2("左对齐")
7421
+ f2("左对齐")
7402
7422
  ])),
7403
7423
  _: 1
7404
7424
  }),
7405
- g(L, { value: "right" }, {
7425
+ g(T, { value: "right" }, {
7406
7426
  default: z(() => w[5] || (w[5] = [
7407
- w2("右对齐")
7427
+ f2("右对齐")
7408
7428
  ])),
7409
7429
  _: 1
7410
7430
  }),
7411
- g(L, { value: "top" }, {
7431
+ g(T, { value: "top" }, {
7412
7432
  default: z(() => w[6] || (w[6] = [
7413
- w2("上对齐")
7433
+ f2("上对齐")
7414
7434
  ])),
7415
7435
  _: 1
7416
7436
  })
@@ -7422,9 +7442,9 @@ const O5 = [
7422
7442
  }),
7423
7443
  g(y, { label: "表单内联" }, {
7424
7444
  default: z(() => [
7425
- g(O, {
7445
+ g(I, {
7426
7446
  modelValue: u.value,
7427
- "onUpdate:modelValue": w[2] || (w[2] = (P) => u.value = P),
7447
+ "onUpdate:modelValue": w[2] || (w[2] = (q) => u.value = q),
7428
7448
  onChange: d
7429
7449
  }, null, 8, ["modelValue"])
7430
7450
  ]),
@@ -7441,33 +7461,33 @@ const O5 = [
7441
7461
  e({
7442
7462
  open: p
7443
7463
  });
7444
- const a = F(!1), n = F(null), i = B.previewFormData, c = B.rules;
7464
+ const a = F(!1), n = F(null), i = A.previewFormData, c = A.rules;
7445
7465
  let u = null;
7446
7466
  function p() {
7447
- a.value = !0, J2(() => {
7448
- const h = g1({ isPreview: !0 });
7449
- u = p1({
7467
+ a.value = !0, q2(() => {
7468
+ const h = x1({ isPreview: !0 });
7469
+ u = _1({
7450
7470
  render() {
7451
- const w = JSON.parse(JSON.stringify(x2.value.components));
7452
- return f2(
7471
+ const w = JSON.parse(JSON.stringify(d2.value.components));
7472
+ return v2(
7453
7473
  L2.ElForm,
7454
7474
  {
7455
7475
  key: "preview",
7456
7476
  ref: n,
7457
7477
  model: i,
7458
7478
  rules: c,
7459
- ...B.formOptions
7479
+ ...A.formOptions
7460
7480
  },
7461
7481
  {
7462
7482
  default: () => w.map((E) => h(E))
7463
7483
  }
7464
7484
  );
7465
7485
  }
7466
- }).use(L2, { locale: v1 }), u.mount("#preview-box");
7486
+ }).use(L2, { locale: f1 }), u.mount("#preview-box");
7467
7487
  });
7468
7488
  }
7469
7489
  function _() {
7470
- a.value = !1, u.unmount(), B.CLEAR_PREVIEW_FORM_DATA();
7490
+ a.value = !1, u.unmount(), A.CLEAR_PREVIEW_FORM_DATA();
7471
7491
  }
7472
7492
  function m() {
7473
7493
  n.value.validate((h, w) => {
@@ -7478,8 +7498,8 @@ const O5 = [
7478
7498
  n.value.resetFields();
7479
7499
  }
7480
7500
  return (h, w) => {
7481
- const E = N("el-button"), M = N("el-dialog");
7482
- return o(), Q(M, {
7501
+ const E = N("el-button"), b = N("el-dialog");
7502
+ return o(), Z(b, {
7483
7503
  modelValue: a.value,
7484
7504
  "onUpdate:modelValue": w[0] || (w[0] = (y) => a.value = y),
7485
7505
  title: "预览",
@@ -7492,7 +7512,7 @@ const O5 = [
7492
7512
  onClick: m
7493
7513
  }, {
7494
7514
  default: z(() => w[1] || (w[1] = [
7495
- w2("触发校验")
7515
+ f2("触发校验")
7496
7516
  ])),
7497
7517
  _: 1
7498
7518
  }),
@@ -7501,7 +7521,7 @@ const O5 = [
7501
7521
  onClick: d
7502
7522
  }, {
7503
7523
  default: z(() => w[2] || (w[2] = [
7504
- w2("重置")
7524
+ f2("重置")
7505
7525
  ])),
7506
7526
  _: 1
7507
7527
  })
@@ -7526,7 +7546,7 @@ const O5 = [
7526
7546
  i.value = !i.value, n("onDragDrop", i.value);
7527
7547
  }
7528
7548
  function p() {
7529
- c.value.open(B.formOptions.inline, a.json);
7549
+ c.value.open(A.formOptions.inline, a.json);
7530
7550
  }
7531
7551
  function _() {
7532
7552
  l4.confirm("这将清空画布,是否继续?", "提示", {
@@ -7534,7 +7554,7 @@ const O5 = [
7534
7554
  cancelButtonText: "取消",
7535
7555
  type: "warning"
7536
7556
  }).then(() => {
7537
- I2.CLEAR_COMPONENT_DATA_MAP(), B.INIT_FORM_OPTIONS(), n("clearAll");
7557
+ P2.CLEAR_COMPONENT_DATA_MAP(), A.INIT_FORM_OPTIONS(), n("clearAll");
7538
7558
  }).catch(() => {
7539
7559
  });
7540
7560
  }
@@ -7548,7 +7568,7 @@ const O5 = [
7548
7568
  onClick: u
7549
7569
  }, {
7550
7570
  default: z(() => [
7551
- w2(h0(i.value ? "开启" : "关闭") + "拖放", 1)
7571
+ f2(d0(i.value ? "开启" : "关闭") + "拖放", 1)
7552
7572
  ]),
7553
7573
  _: 1
7554
7574
  }),
@@ -7558,7 +7578,7 @@ const O5 = [
7558
7578
  onClick: _
7559
7579
  }, {
7560
7580
  default: z(() => d[0] || (d[0] = [
7561
- w2("清空画布")
7581
+ f2("清空画布")
7562
7582
  ])),
7563
7583
  _: 1
7564
7584
  }),
@@ -7568,7 +7588,7 @@ const O5 = [
7568
7588
  onClick: p
7569
7589
  }, {
7570
7590
  default: z(() => d[1] || (d[1] = [
7571
- w2("预览")
7591
+ f2("预览")
7572
7592
  ])),
7573
7593
  _: 1
7574
7594
  })
@@ -7709,16 +7729,16 @@ const E9 = { render: H9 }, V9 = () => ({
7709
7729
  class: "icon",
7710
7730
  viewBox: "0 0 1024 1024"
7711
7731
  };
7712
- function B9(t, e) {
7732
+ function A9(t, e) {
7713
7733
  return o(), l("svg", S9, e[0] || (e[0] = [
7714
7734
  r("path", { d: "M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0m0 960C262.4 960 64 761.6 64 512S262.4 64 512 64s448 198.4 448 448-198.4 448-448 448" }, null, -1),
7715
7735
  r("path", { d: "M691.2 531.2h-160v-256c0-19.2-12.8-32-32-32s-32 12.8-32 32v288c0 19.2 12.8 32 32 32h192c19.2 0 32-12.8 32-32s-12.8-32-32-32" }, null, -1)
7716
7736
  ]));
7717
7737
  }
7718
- const A9 = { render: B9 }, D9 = () => ({
7738
+ const B9 = { render: A9 }, D9 = () => ({
7719
7739
  componentName: "ElDatePicker",
7720
7740
  text: "日期选择器",
7721
- icon: A9,
7741
+ icon: B9,
7722
7742
  props: {
7723
7743
  type: "date",
7724
7744
  // 日期选择器的类型,可以是 'date', 'daterange', 'datetime', 'datetimerange', 'year', 'month'
@@ -8094,7 +8114,7 @@ function Vs(t) {
8094
8114
  }
8095
8115
  return a;
8096
8116
  }
8097
- const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8117
+ const ys = ["index.js", "imports.js"], p2 = Vs(ys), s1 = [
8098
8118
  { title: "容器组件" },
8099
8119
  p2.elCard(),
8100
8120
  p2.elTabsJson(),
@@ -8116,7 +8136,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8116
8136
  ], Ss = {
8117
8137
  key: 0,
8118
8138
  class: "group-title"
8119
- }, Bs = ["data-component"], As = { class: "canvas-content" }, Ds = {
8139
+ }, As = ["data-component"], Bs = { class: "canvas-content" }, Ds = {
8120
8140
  key: 0,
8121
8141
  class: "mask"
8122
8142
  }, Ls = {
@@ -8125,27 +8145,27 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8125
8145
  data: { type: Object }
8126
8146
  },
8127
8147
  setup(t) {
8128
- const e = l1, a = {};
8129
- l1.forEach((A) => {
8130
- A.componentName && (a[A.componentName] = A);
8148
+ const e = s1, a = {};
8149
+ s1.forEach((B) => {
8150
+ B.componentName && (a[B.componentName] = B);
8131
8151
  }), a4.SET_COMPONENT_MAP(a);
8132
- const n = F("first"), i = F("first"), c = F(null), u = F(null), p = F(null), _ = F(null), m = F(null), d = F(null), h = F(!1), w = F(m0.teleportTo.value), E = B.formData, M = B.rules;
8133
- let y = null, L = !1, R = null;
8134
- const O = t;
8135
- Q0(m0.teleportTo, (A) => {
8136
- w.value = A;
8137
- }), Q0(() => O.data, () => {
8138
- E5(), L = !0, B.CLEAR_ALL(), u.value.init(B.formOptions), O.data && O.data.forms ? (B.SET_FORM_OPTIONS_INIT(O.data.formOptions.inline), B.SET_FORM_OPTIONS(O.data.formOptions), b0(O.data.forms)) : b0([]);
8152
+ const n = F("first"), i = F("first"), c = F(null), u = F(null), p = F(null), _ = F(null), m = F(null), d = F(null), h = F(!1), w = F(h0.teleportTo.value), E = A.formData, b = A.rules;
8153
+ let y = null, T = !0, P = !1, I = null;
8154
+ const R = t;
8155
+ Z0(h0.teleportTo, (B) => {
8156
+ w.value = B;
8157
+ }), Z0(() => R.data, () => {
8158
+ s2();
8139
8159
  });
8140
8160
  const {
8141
- initSortable: e2,
8142
- schema: P
8161
+ initSortable: q,
8162
+ schema: a2
8143
8163
  } = H5();
8144
- u1(() => {
8145
- const A = g1({});
8146
- R = p1({
8164
+ p1(() => {
8165
+ const B = x1({});
8166
+ I = _1({
8147
8167
  mounted() {
8148
- J2(() => {
8168
+ q2(() => {
8149
8169
  H.create(c.value, {
8150
8170
  group: {
8151
8171
  name: "shared",
@@ -8158,91 +8178,96 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8158
8178
  animation: 150,
8159
8179
  setData: t4,
8160
8180
  onStart(x) {
8161
- B.formOptions.inline && x.item.classList.add("inline-block");
8162
- const J = x.item.getBoundingClientRect().width;
8163
- x.item.classList.remove("item-component"), x.item.style.width = `${J}px`;
8181
+ A.formOptions.inline && x.item.classList.add("inline-block");
8182
+ const Y = x.item.getBoundingClientRect().width;
8183
+ x.item.classList.remove("item-component"), x.item.style.width = `${Y}px`;
8164
8184
  },
8165
8185
  onEnd(x) {
8166
8186
  x.originalEvent.dataTransfer.getData("type") && !x.to.classList.contains("component-box") ? x.item.remove() : (x.item.classList.add("item-component"), x.item.style.width = "");
8167
8187
  }
8168
- }), J2(() => {
8169
- e2({ el: p.value });
8188
+ }), q2(() => {
8189
+ q({ el: p.value });
8170
8190
  });
8171
8191
  });
8172
8192
  },
8173
8193
  updated() {
8174
- L && (w1(P.value.components, e2), L = !1);
8194
+ P && (g1(a2.value.components, q), P = !1);
8175
8195
  },
8176
8196
  render() {
8177
- O.data && O.data.forms && b0(O.data.forms);
8178
- const x = P.value.components;
8179
- return f2(
8197
+ R.data && R.data.forms && T === !0 && (H0(R.data.forms), T = !1);
8198
+ const x = a2.value.components;
8199
+ return v2(
8180
8200
  L2.ElForm,
8181
8201
  {
8182
8202
  ref: _,
8183
8203
  model: E,
8184
- rules: M,
8185
- ...B.formOptions
8204
+ rules: b,
8205
+ ...A.formOptions
8186
8206
  },
8187
8207
  {
8188
8208
  default: () => [
8189
- f2("div", {
8209
+ v2("div", {
8190
8210
  ref: p,
8191
8211
  class: "drop-zone-box",
8192
- onClick: m2
8212
+ onClick: M2
8193
8213
  }, {
8194
- default: () => x.map((J) => (I2.SET_COMPONENT_DATA_MAP(J.id, J), A(J)))
8214
+ default: () => x.map((Y) => (P2.SET_COMPONENT_DATA_MAP(Y.id, Y), B(Y)))
8195
8215
  })
8196
8216
  ]
8197
8217
  }
8198
8218
  );
8199
8219
  }
8200
- }).use(L2, { locale: v1 }), R.mount("#canvas-drop");
8220
+ }).use(L2, { locale: f1 }), I.mount("#canvas-drop"), q2(() => {
8221
+ s2();
8222
+ });
8201
8223
  }), n4(() => {
8202
- b0([]), B.CLEAR_ALL(), R.unmount();
8224
+ H0([]), A.CLEAR_ALL(), I.unmount();
8203
8225
  });
8204
- function m2(A) {
8205
- const x = A.target.closest(".drop-item"), J = C2();
8206
- if (J && J.classList.remove("selected-component"), !x) {
8207
- i2();
8226
+ function s2() {
8227
+ E5(), P = !0, A.CLEAR_ALL(), u.value && u.value.init(A.formOptions), R.data && R.data.forms ? (A.SET_FORM_OPTIONS_INIT(R.data.formOptions.inline), A.SET_FORM_OPTIONS(R.data.formOptions), H0(R.data.forms)) : H0([]);
8228
+ }
8229
+ function M2(B) {
8230
+ const x = B.target.closest(".drop-item"), Y = x2();
8231
+ if (Y && Y.classList.remove("selected-component"), !x) {
8232
+ K();
8208
8233
  return;
8209
8234
  }
8210
8235
  z5(x), x.classList.add("selected-component");
8211
- const X = I2.componentDataMap;
8212
- y = X[x.dataset.id], d.value.select(X[x.dataset.id]), A2(x);
8213
- const o2 = A.target.className === "cell";
8214
- if (A.target.parentElement.tagName !== "TH" && A.target.tagName !== "TH" && (A.target.className.indexOf("el-table__cell") > -1 || o2)) {
8215
- let W;
8216
- o2 ? W = A.target : W = A.target.querySelector(".cell");
8217
- let I = document.createElement("input");
8218
- I.style.width = "100%", I.style.height = "100%", I.style.boxSizing = "border-box", I.style.border = "1px solid rgba(0, 0, 0, 0.1)", I.style.outline = "none", I.style.minHeight = "21px", W.innerText !== "" && (I.value = W.innerText, N0.SET_TABLE_DATA_ITEM(A.target.closest("tr").rowIndex, A.target.closest("td").cellIndex, "")), W.appendChild(I), I.focus(), I.onblur = () => {
8219
- N0.SET_TABLE_DATA_ITEM(A.target.closest("tr").rowIndex, A.target.closest("td").cellIndex, I.value), W.removeChild(I), I = null;
8236
+ const J = P2.componentDataMap;
8237
+ y = J[x.dataset.id], d.value.select(J[x.dataset.id]), B2(x);
8238
+ const n2 = B.target.className === "cell";
8239
+ if (B.target.parentElement.tagName !== "TH" && B.target.tagName !== "TH" && (B.target.className.indexOf("el-table__cell") > -1 || n2)) {
8240
+ let o2;
8241
+ n2 ? o2 = B.target : o2 = B.target.querySelector(".cell");
8242
+ let W = document.createElement("input");
8243
+ W.style.width = "100%", W.style.height = "100%", W.style.boxSizing = "border-box", W.style.border = "1px solid rgba(0, 0, 0, 0.1)", W.style.outline = "none", W.style.minHeight = "21px", o2.innerText !== "" && (W.value = o2.innerText, e0.SET_TABLE_DATA(y.props.data), e0.SET_TABLE_DATA_KEYS(y.children.map((j2) => j2.props.prop)), e0.SET_TABLE_DATA_ITEM(B.target.closest("tr").rowIndex, B.target.closest("td").cellIndex, "")), o2.appendChild(W), W.focus(), W.onblur = () => {
8244
+ e0.SET_TABLE_DATA_ITEM(B.target.closest("tr").rowIndex, B.target.closest("td").cellIndex, W.value), o2.removeChild(W), W = null;
8220
8245
  };
8221
8246
  }
8222
8247
  }
8223
- function s2(A) {
8224
- h.value = A;
8248
+ function A2(B) {
8249
+ h.value = B;
8225
8250
  }
8226
- function i2(A = null) {
8227
- A !== null && B.SET_FORM_OPTIONS_INIT(A);
8228
- const x = C2();
8229
- x && (x.classList.remove("selected-component"), m0.SET_TELEPORT_TO(null), d.value.reset());
8251
+ function K(B = null) {
8252
+ B !== null && A.SET_FORM_OPTIONS_INIT(B);
8253
+ const x = x2();
8254
+ x && (x.classList.remove("selected-component"), h0.SET_TELEPORT_TO(null), d.value.reset());
8230
8255
  }
8231
- function E2(A) {
8232
- var J;
8233
- let x = A;
8234
- A || (x = y, C2().remove(), e4(P.value.components, x.id), i2()), delete I2.componentDataMap[x.id], (J = x.children) != null && J[0] && (delete I2.componentDataMap[x.children[0].id], (x.componentName === "ElFormItem" || x.componentName === "ElTabs") && (B.DELETE_FORM_DATA(x.props.prop || `field${x.id}`), B.DELETE_RULES(x.props.prop))), x.componentName === "ElUpload" && $2.DELETE_STYLES(`${x.children[0].props.class} ::v-deep(.el-icon)`), x.children && x.children.length && x.children.forEach((X) => {
8235
- E2(X);
8256
+ function b2(B) {
8257
+ var Y;
8258
+ let x = B;
8259
+ B || (x = y, x2().remove(), e4(a2.value.components, x.id), K()), delete P2.componentDataMap[x.id], (Y = x.children) != null && Y[0] && (delete P2.componentDataMap[x.children[0].id], (x.componentName === "ElFormItem" || x.componentName === "ElTabs") && (A.DELETE_FORM_DATA(x.props.prop || `field${x.id}`), A.DELETE_RULES(x.props.prop))), x.componentName === "ElUpload" && $2.DELETE_STYLES(`${x.children[0].props.class} ::v-deep(.el-icon)`), x.children && x.children.length && x.children.forEach((J) => {
8260
+ b2(J);
8236
8261
  });
8237
8262
  }
8238
- function t2() {
8239
- P.value.components = [], B.CLEAR_ALL(), I2.componentDataMap = {}, u.value.init(B.formOptions), i2();
8263
+ function w2() {
8264
+ a2.value.components = [], A.CLEAR_ALL(), P2.componentDataMap = {}, u.value.init(A.formOptions), K();
8240
8265
  }
8241
- return (A, x) => {
8242
- const J = N("el-icon"), X = N("el-tab-pane"), o2 = N("el-tabs"), W = N("el-aside"), I = N("el-header"), O2 = N("el-main"), B2 = N("el-container");
8243
- return o(), Q(B2, { style: { position: "relative" } }, {
8266
+ return (B, x) => {
8267
+ const Y = N("el-icon"), J = N("el-tab-pane"), n2 = N("el-tabs"), o2 = N("el-aside"), W = N("el-header"), j2 = N("el-main"), w0 = N("el-container");
8268
+ return o(), Z(w0, { style: { position: "relative" } }, {
8244
8269
  default: z(() => [
8245
- w.value ? (o(), Q(o4, {
8270
+ w.value ? (o(), Z(o4, {
8246
8271
  key: 0,
8247
8272
  to: w.value
8248
8273
  }, [
@@ -8251,29 +8276,29 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8251
8276
  ref_key: "toolbarRef",
8252
8277
  ref: m
8253
8278
  }, [
8254
- g(J, {
8279
+ g(Y, {
8255
8280
  class: "delete",
8256
8281
  title: "删除",
8257
- onClick: x[0] || (x[0] = (r2) => E2())
8282
+ onClick: x[0] || (x[0] = (v) => b2())
8258
8283
  }, {
8259
8284
  default: z(() => [
8260
- g(M2(f1))
8285
+ g(C2(w1))
8261
8286
  ]),
8262
8287
  _: 1
8263
8288
  })
8264
8289
  ], 512)
8265
- ], 8, ["to"])) : z2("", !0),
8266
- g(W, {
8290
+ ], 8, ["to"])) : H2("", !0),
8291
+ g(o2, {
8267
8292
  width: "300px",
8268
8293
  class: "panel"
8269
8294
  }, {
8270
8295
  default: z(() => [
8271
- g(o2, {
8296
+ g(n2, {
8272
8297
  modelValue: n.value,
8273
- "onUpdate:modelValue": x[1] || (x[1] = (r2) => n.value = r2)
8298
+ "onUpdate:modelValue": x[1] || (x[1] = (v) => n.value = v)
8274
8299
  }, {
8275
8300
  default: z(() => [
8276
- g(X, {
8301
+ g(J, {
8277
8302
  label: "组件库",
8278
8303
  name: "first"
8279
8304
  }, {
@@ -8283,15 +8308,15 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8283
8308
  ref: c,
8284
8309
  class: "component-box"
8285
8310
  }, [
8286
- (o(!0), l(V2, null, z0(M2(e), (r2) => (o(), l(V2, null, [
8287
- r2.title ? (o(), l("div", Ss, h0(r2.title), 1)) : (o(), l("div", {
8311
+ (o(!0), l(V2, null, E0(C2(e), (v) => (o(), l(V2, null, [
8312
+ v.title ? (o(), l("div", Ss, d0(v.title), 1)) : (o(), l("div", {
8288
8313
  key: 1,
8289
8314
  class: "item item-component grab",
8290
- "data-component": r2.componentName
8315
+ "data-component": v.componentName
8291
8316
  }, [
8292
- r2.icon ? (o(), Q(T1(r2.icon), { key: 0 })) : z2("", !0),
8293
- w2(" " + h0(r2.text || r2.label), 1)
8294
- ], 8, Bs))
8317
+ v.icon ? (o(), Z(T1(v.icon), { key: 0 })) : H2("", !0),
8318
+ f2(" " + d0(v.text || v.label), 1)
8319
+ ], 8, As))
8295
8320
  ], 64))), 256))
8296
8321
  ], 512)
8297
8322
  ]),
@@ -8303,40 +8328,40 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8303
8328
  ]),
8304
8329
  _: 1
8305
8330
  }),
8306
- g(O2, { class: "canvas" }, {
8331
+ g(j2, { class: "canvas" }, {
8307
8332
  default: z(() => [
8308
- g(I, { height: "50px" }, {
8333
+ g(W, { height: "50px" }, {
8309
8334
  default: z(() => [
8310
8335
  g(i9, {
8311
- json: M2(P).components,
8312
- onOnDragDrop: s2,
8313
- onClearAll: t2
8336
+ json: C2(a2).components,
8337
+ onOnDragDrop: A2,
8338
+ onClearAll: w2
8314
8339
  }, null, 8, ["json"])
8315
8340
  ]),
8316
8341
  _: 1
8317
8342
  }),
8318
- r("div", As, [
8319
- h.value ? (o(), l("div", Ds)) : z2("", !0),
8343
+ r("div", Bs, [
8344
+ h.value ? (o(), l("div", Ds)) : H2("", !0),
8320
8345
  x[3] || (x[3] = r("div", { id: "canvas-drop" }, null, -1))
8321
8346
  ])
8322
8347
  ]),
8323
8348
  _: 1
8324
8349
  }),
8325
- g(W, {
8350
+ g(o2, {
8326
8351
  width: "400px",
8327
8352
  class: "editor-panel"
8328
8353
  }, {
8329
8354
  default: z(() => [
8330
- g(o2, {
8355
+ g(n2, {
8331
8356
  modelValue: i.value,
8332
- "onUpdate:modelValue": x[2] || (x[2] = (r2) => i.value = r2)
8357
+ "onUpdate:modelValue": x[2] || (x[2] = (v) => i.value = v)
8333
8358
  }, {
8334
8359
  default: z(() => [
8335
- g(X, {
8360
+ g(J, {
8336
8361
  label: "组件设置",
8337
8362
  name: "first"
8338
8363
  }),
8339
- g(X, {
8364
+ g(J, {
8340
8365
  label: "表单设置",
8341
8366
  name: "form"
8342
8367
  })
@@ -8344,22 +8369,22 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8344
8369
  _: 1
8345
8370
  }, 8, ["modelValue"]),
8346
8371
  r("div", {
8347
- class: P0({ "panel-content": i.value !== "second", "panel-code": i.value === "second" })
8372
+ class: I0({ "panel-content": i.value !== "second", "panel-code": i.value === "second" })
8348
8373
  }, [
8349
- B0(g(M2(e9), {
8374
+ D0(g(C2(e9), {
8350
8375
  ref_key: "setComponentRef",
8351
8376
  ref: d,
8352
8377
  formRef: _.value,
8353
- initSortable: M2(e2)
8378
+ initSortable: C2(q)
8354
8379
  }, null, 8, ["formRef", "initSortable"]), [
8355
- [A0, i.value === "first"]
8380
+ [L0, i.value === "first"]
8356
8381
  ]),
8357
- B0(g(a9, {
8382
+ D0(g(a9, {
8358
8383
  ref_key: "setFormRef",
8359
8384
  ref: u,
8360
- onInlineChange: i2
8385
+ onInlineChange: K
8361
8386
  }, null, 512), [
8362
- [A0, i.value === "form"]
8387
+ [L0, i.value === "form"]
8363
8388
  ])
8364
8389
  ], 2)
8365
8390
  ]),
@@ -8370,7 +8395,7 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8370
8395
  });
8371
8396
  };
8372
8397
  }
8373
- }, Ts = /* @__PURE__ */ k2(Ls, [["__scopeId", "data-v-a7910661"]]), Fs = { id: "preview-panel" }, ks = {
8398
+ }, Ts = /* @__PURE__ */ k2(Ls, [["__scopeId", "data-v-a09157ef"]]), Fs = { id: "preview-panel" }, ks = {
8374
8399
  __name: "previewPanel",
8375
8400
  props: {
8376
8401
  data: { type: Object, required: !0, default: () => ({}) },
@@ -8378,29 +8403,29 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8378
8403
  callback: { type: Function }
8379
8404
  },
8380
8405
  setup(t, { expose: e }) {
8381
- const a = t, n = F(null), i = B.previewFormData, c = B.rules;
8406
+ const a = t, n = F(null), i = A.previewFormData, c = A.rules;
8382
8407
  return e({
8383
8408
  formRef: n
8384
- }), Q0(() => a.variables, (u) => {
8409
+ }), Z0(() => a.variables, (u) => {
8385
8410
  i.value = u;
8386
- }, { immediate: !0 }), u1(() => {
8387
- const u = g1({ isPreview: !0, callback: a.callback });
8388
- p1({
8411
+ }, { immediate: !0 }), p1(() => {
8412
+ const u = x1({ isPreview: !0, callback: a.callback });
8413
+ _1({
8389
8414
  render() {
8390
- return f2(
8415
+ return v2(
8391
8416
  L2.ElForm,
8392
8417
  {
8393
8418
  ref: n,
8394
8419
  model: i,
8395
8420
  rules: c,
8396
- ...B.formOptions
8421
+ ...A.formOptions
8397
8422
  },
8398
8423
  {
8399
- default: () => (a.data.forms || []).map((_) => (I2.SET_COMPONENT_DATA_MAP(_.id, _), u(_)))
8424
+ default: () => (a.data.forms || []).map((_) => (P2.SET_COMPONENT_DATA_MAP(_.id, _), u(_)))
8400
8425
  }
8401
8426
  );
8402
8427
  }
8403
- }).use(L2, { locale: v1 }).mount("#preview-panel");
8428
+ }).use(L2, { locale: f1 }).mount("#preview-panel");
8404
8429
  }), (u, p) => (o(), l("div", Fs));
8405
8430
  }
8406
8431
  }, Os = /* @__PURE__ */ k2(ks, [["__scopeId", "data-v-ce37e41c"]]), Ns = { class: "low-code-form" }, Ps = {
@@ -8428,21 +8453,21 @@ const ys = ["index.js", "imports.js"], p2 = Vs(ys), l1 = [
8428
8453
  return a.value.formRef;
8429
8454
  }
8430
8455
  function i() {
8431
- return B.formData.value;
8456
+ return A.formData.value;
8432
8457
  }
8433
8458
  function c() {
8434
- const { labelPosition: u, labelWidth: p, inline: _ } = B.formOptions, m = {};
8435
- return u !== "right" && u !== "" && (m.labelPosition = u), p !== "" && p !== "auto" && (m.labelWidth = p), _ && (m.inline = _), { formOptions: m, forms: x2.value.components };
8459
+ const { labelPosition: u, labelWidth: p, inline: _ } = A.formOptions, m = {};
8460
+ return u !== "right" && u !== "" && (m.labelPosition = u), p !== "" && p !== "auto" && (m.labelWidth = p), _ && (m.inline = _), { formOptions: m, forms: d2.value.components };
8436
8461
  }
8437
8462
  return (u, p) => (o(), l("div", Ns, [
8438
- t.isPreview ? (o(), Q(Os, {
8463
+ t.isPreview ? (o(), Z(Os, {
8439
8464
  key: 1,
8440
8465
  ref_key: "previewRef",
8441
8466
  ref: a,
8442
8467
  data: t.data,
8443
8468
  variables: t.variables,
8444
8469
  callback: t.callback
8445
- }, null, 8, ["data", "variables", "callback"])) : (o(), Q(Ts, {
8470
+ }, null, 8, ["data", "variables", "callback"])) : (o(), Z(Ts, {
8446
8471
  key: 0,
8447
8472
  data: t.data
8448
8473
  }, null, 8, ["data"]))