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