@educorvi/vue-json-form-webcomponent 3.0.0-beta.5 → 3.0.0-beta.6

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