@cling-se/widget 1.0.0-beta.2 → 1.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddClientCallout-e8d19R3f.js → AddClientCallout-C2OgCvX1.js} +4 -4
- package/dist/{AnswerModal-BGvB8IVV.js → AnswerModal-C3ZiCo8B.js} +9 -6
- package/dist/{AttachmentItem-CkHbAm4l.js → AttachmentItem-Bmp-QH-3.js} +4 -4
- package/dist/{BaseUpload-BiJBcWRu.js → BaseUpload-D5hFSuY1.js} +3 -3
- package/dist/{BlockMedia-CW5wgipC.js → BlockMedia-CaOxWdgC.js} +1 -1
- package/dist/{CCallout-Cy2eeIYd.js → CCallout-DpRDlPTh.js} +1 -1
- package/dist/{CCurrencyDropdown-DE_3CTjm.js → CCurrencyDropdown-BAYBH0At.js} +3 -3
- package/dist/{CDropdownItem-Dmq5gYzA.js → CDropdownItem-D_JIqQry.js} +28 -30
- package/dist/{CFormField.vue_vue_type_script_setup_true_lang-D_U9coAY.js → CFormField.vue_vue_type_script_setup_true_lang-Dc8lJfJY.js} +2 -2
- package/dist/{CPhoneFormat-BS2nP9kc.js → CPhoneFormat-Btul_rlt.js} +1 -1
- package/dist/{CPhoneInput-Bf6329PO.js → CPhoneInput-D-p7_u60.js} +5 -5
- package/dist/{CPriceInput-d1yjuMQr.js → CPriceInput-DQCgLaC1.js} +2 -2
- package/dist/{CSelect-DgnT07Hk.js → CSelect-0b-bjuIN.js} +1 -1
- package/dist/{CSkeleton.vue_vue_type_script_setup_true_lang-Ckl--dyv.js → CSkeleton.vue_vue_type_script_setup_true_lang-YuPayxdi.js} +1 -1
- package/dist/{ClientAutocomplete-9JzGcO9O.js → ClientAutocomplete-BgNYrRFx.js} +3 -3
- package/dist/{ClientModal-BzWQtWSZ.js → ClientModal-CpvE9Yri.js} +8 -8
- package/dist/{ColorPicker-BvoFN8nu.js → ColorPicker-GwUKNxvH.js} +1 -1
- package/dist/{CompanyModal-Bp4V_az9.js → CompanyModal-DtswcomF.js} +7 -7
- package/dist/{ContentWrapper-CuH6xKmo.js → ContentWrapper-CFEzfK8g.js} +6 -6
- package/dist/{CoverBlockSettings-BA5L0Zee.js → CoverBlockSettings-CgLUx9us.js} +7 -7
- package/dist/{DocAnswer-BcNA_KEg.js → DocAnswer-BcoD8Yw-.js} +2 -2
- package/dist/{DocDetails-CStEwWnU.js → DocDetails-_NvlTv8l.js} +4 -4
- package/dist/{DocForm-BOoILf5E.js → DocForm-DqcBP2UJ.js} +422 -426
- package/dist/{DocFormSend-CQIf-HJY.js → DocFormSend-TzrCOshc.js} +2 -2
- package/dist/{DocLinks-BRX5QzNe.js → DocLinks-DdGHeEK5.js} +2 -2
- package/dist/{DocModalBase-D72yWj-x.js → DocModalBase-uEWXUCOP.js} +1 -1
- package/dist/{DocPrint-BI1LXUPE.js → DocPrint-DpwJqeth.js} +1 -1
- package/dist/{DocReceipt-DaZ4V76p.js → DocReceipt-CHDIaBsy.js} +2 -2
- package/dist/{DocSendReminder-DKGZlo7s.js → DocSendReminder-Cgd1CoAa.js} +1 -1
- package/dist/{DocTextEditor-Dm-cTZpA.js → DocTextEditor-Bms9GA2x.js} +10 -9
- package/dist/{DocTimeline-DCwofzuk.js → DocTimeline-Cl_R4cvY.js} +2 -2
- package/dist/{DocumentClient-vJdxCB53.js → DocumentClient-DRJu10BP.js} +5 -5
- package/dist/{DocumentLayout-CKSi42ev.js → DocumentLayout-BaoFdMO6.js} +30 -30
- package/dist/{DocumentLogotype-DbQlvQ-y.js → DocumentLogotype-BaSeCt14.js} +4 -4
- package/dist/{DocumentVoided-CRX2WxWO.js → DocumentVoided-BufyN2Zg.js} +1 -1
- package/dist/{EmbedInput-B-oeC4Wy.js → EmbedInput-C8Ihhw_-.js} +4 -4
- package/dist/{EmbedSettings-B9Yka2yB.js → EmbedSettings-CUivGrWn.js} +3 -3
- package/dist/{ErrorCallout-B_ygH33E.js → ErrorCallout-BGE4T44w.js} +8 -8
- package/dist/{FilePreviewModal-Bf3ELTow.js → FilePreviewModal-ehIP1e7n.js} +2 -2
- package/dist/{Flag-BwTgCNHO.js → Flag-Dm9W55kn.js} +1 -1
- package/dist/{HeaderSettings-DvC7nlyY.js → HeaderSettings-C4qr3GJS.js} +11 -11
- package/dist/{ImageSelectModal-D3sP3lhR.js → ImageSelectModal-uXAwJvLi.js} +3 -3
- package/dist/{ImageUploadWrapper-RWNa-yIq.js → ImageUploadWrapper-DPPNn3Jl.js} +2 -2
- package/dist/{Index-CjfjdZj5.js → Index--fE6Lnz4.js} +3 -3
- package/dist/{Index-DfLLA0ij.js → Index-0VQ5iLzN.js} +81 -66
- package/dist/{Index-Df9skok6.js → Index-9TcCW4m0.js} +3 -3
- package/dist/{Index-BvMPCgdH.js → Index-B4O99pvQ.js} +5 -5
- package/dist/{Index-DI5EB5Rt.js → Index-BAXiY2iZ.js} +4 -4
- package/dist/{Index-CRzsnIij.js → Index-BWZ911DD.js} +19 -18
- package/dist/{Index-BcUNnxLC.js → Index-Bab6i9Cy.js} +10 -10
- package/dist/{Index-D5qwbCo1.js → Index-Bbs2o-XY.js} +4 -4
- package/dist/{Index-CskKmZpd.js → Index-BcoM6Ey6.js} +8 -8
- package/dist/{Index-CeSG1C41.js → Index-Bh2soZ1F.js} +4 -4
- package/dist/{Index-BBkCYm2q.js → Index-BhiRvxHn.js} +9 -9
- package/dist/{Index-4NPe0sfX.js → Index-Bs5HNmiU.js} +13 -13
- package/dist/{Index-CQpznMKV.js → Index-BvTmpPmR.js} +2 -2
- package/dist/{Index-cjKGSiDi.js → Index-BwT8Hwoq.js} +6 -6
- package/dist/{Index-BBwvo7S9.js → Index-CCFnGPfp.js} +2 -2
- package/dist/{Index-Bo6ExBUL.js → Index-CUkfchwo.js} +1 -1
- package/dist/{Index-DaV57YPP.js → Index-Cb5darWj.js} +5 -5
- package/dist/{Index-PZXyOoVb.js → Index-Cb8tNL45.js} +5 -5
- package/dist/{Index-BTFmHjUt.js → Index-CojPfAIx.js} +2 -2
- package/dist/{Index-BEMlsYwJ.js → Index-CyKsGzuK.js} +2 -2
- package/dist/{Index-0_3ULrWX.js → Index-D8KEDcDO.js} +7 -7
- package/dist/{Index-rGeWbLcB.js → Index-DHdoQxcG.js} +3 -3
- package/dist/{Index-CNWhm07R.js → Index-DNS5qQfm.js} +4 -4
- package/dist/Index-DXAI1Ne1.js +4 -0
- package/dist/{Index-vrljNp6G.js → Index-Db3i6u-o.js} +4 -4
- package/dist/{Index-Dw1CO5F9.js → Index-Dhh6Hcr9.js} +4 -4
- package/dist/{Index-DbwkmoyM.js → Index-DifFBTvj.js} +4 -4
- package/dist/{Index-Bx5TOI9k.js → Index-DsY2ydJE.js} +5 -5
- package/dist/{Index-m-goRuKD.js → Index-DyHhaZLs.js} +1 -1
- package/dist/{Index-ZUnH-BHj.js → Index-JomDf8y9.js} +2 -2
- package/dist/{Index-D8Ae1Txt.js → Index-Nx_Pp81f.js} +6 -6
- package/dist/{Index-BRBhJ6kz.js → Index-RRgjc-py.js} +3 -3
- package/dist/{Index-DE8aenDB.js → Index-d37tI3EX.js} +19 -19
- package/dist/{Index-C7GZS8EI.js → Index-sn6tE9Is.js} +1 -1
- package/dist/{Index.vue_vue_type_script_lang-aeVuChGF.js → Index.vue_vue_type_script_lang-Df0f-ak3.js} +2 -2
- package/dist/{InputToggleRow-v6qAWPg6.js → InputToggleRow-CzoU5I5q.js} +1 -1
- package/dist/ManualPopover-CFr4JxmL.js +64 -0
- package/dist/{MediaWrapper-CXb2UGd9.js → MediaWrapper-B5iL81Z_.js} +3 -3
- package/dist/{NotBindingText-BqESO13N.js → NotBindingText-B4_b2Zig.js} +2 -2
- package/dist/{PackageGroup-AIysVmyh.js → PackageGroup-C7FCSBfp.js} +5 -5
- package/dist/{PdfTerms-BlhHdTu3.js → PdfTerms-Dlvz9_Ud.js} +2 -2
- package/dist/{PdfViewer-DwZ1rwlN.js → PdfViewer-dI4v28Bk.js} +3 -3
- package/dist/{PlainHtml.vue_vue_type_script_setup_true_lang-D6NNUTz0.js → PlainHtml.vue_vue_type_script_setup_true_lang-i7vjlHZm.js} +1 -1
- package/dist/{PriceHeader-C4XhnoA3.js → PriceHeader-BA-ft89g.js} +7 -7
- package/dist/{SearchApi-B7lXgUY6.js → SearchApi-BrSR5t7r.js} +2 -2
- package/dist/{SendForm-BcD0xSvB.js → SendForm-CEA1OWuP.js} +8 -8
- package/dist/{Setup-C2qaYDei.js → Setup-BTMzlhTj.js} +1 -1
- package/dist/{SmartList-DqG7Q5t7.js → SmartList-BbJIkRWT.js} +1 -1
- package/dist/{Sortable.vue_vue_type_script_setup_true_lang-CzMbr8AX.js → Sortable.vue_vue_type_script_setup_true_lang-BKt64PhC.js} +422 -414
- package/dist/{TermsSettings-BOCONyM4.js → TermsSettings-D1JXAN6J.js} +5 -5
- package/dist/{ThemeColorRow-sjGdMzGN.js → ThemeColorRow-DPW6oW_h.js} +3 -3
- package/dist/{ToggleBinding-7oq_oXPt.js → ToggleBinding-CriwSuzJ.js} +4 -4
- package/dist/{UploadModal-C_X2NjVY.js → UploadModal-C2UwnKBa.js} +2 -2
- package/dist/{VideoPlayerInput-BsUcmpl4.js → VideoPlayerInput-BWxlDUeC.js} +5 -5
- package/dist/{VideoPlayerSettings-BXMmxaZQ.js → VideoPlayerSettings-BesM2EOS.js} +2 -2
- package/dist/{VideoSelectModal-CW0OweCw.js → VideoSelectModal-BPipM_DD.js} +6 -6
- package/dist/{debounce-DNl99Gyo.js → debounce-maYKTo6w.js} +1 -1
- package/dist/{focusDrawerMixin-BwcErMDY.js → focusDrawerMixin-Cv4Fnb64.js} +1 -1
- package/dist/{formDrawerState-DaurePnd.js → formDrawerState-Cdrp-3tw.js} +1 -1
- package/dist/{helpers-CPW--XIz.js → helpers-lVEFx0PD.js} +1 -1
- package/dist/{index-E32WgUp9.js → index-5ijAriB0.js} +7 -7
- package/dist/{index-DKMxIBz_.js → index-CuYKY2w0.js} +5 -5
- package/dist/{index-BjiGCJPI.js → index-D0vSroeo.js} +1 -1
- package/dist/{index-Cx71On5Z.js → index-DEAKYn6U.js} +8 -8
- package/dist/{index-CFNv6OvX.js → index-dVnUqU3i.js} +1 -1
- package/dist/{index-DKf5SGLD.js → index-x9x0Q0A6.js} +1 -1
- package/dist/{index-kp-GC5I0.js → index-ypqE1092.js} +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +140 -140
- package/dist/{main-Cb-nyil1.js → main-HovvOABR.js} +7557 -7652
- package/dist/{mapFormMixin-D3BihYWW.js → mapFormMixin-Drw03jK5.js} +2 -2
- package/dist/{omit--YYr41Xp.js → omit-CD-TQz-x.js} +1 -1
- package/dist/{publicSenderState-CdRW_Wwp.js → publicSenderState-DYJ1eAeA.js} +1 -1
- package/dist/{splitpanes-D-ThFkeR.js → splitpanes-n62uCqvD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-BvaNnq-g.js → template-Cjq_4YHS.js} +1 -1
- package/dist/{throttle-D-bUGaVh.js → throttle-euWYHMPo.js} +2 -2
- package/dist/{tippy.esm-BmKNqohP.js → tippy.esm-15L5vY3N.js} +5 -5
- package/dist/{useTermsModal-Dhf6_eYb.js → useTermsModal-CHDFrnZm.js} +4 -4
- package/dist/{utils-CBPcYdLv.js → utils-CcUDRZ3Y.js} +1 -1
- package/dist/{validation-DOcUOoMe.js → validation-021sKbqs.js} +2 -2
- package/package.json +7 -7
- package/dist/Index-B1uA0FF6.js +0 -4
- package/dist/ManualPopover-BONBJIUA.js +0 -57
|
@@ -1,189 +1,189 @@
|
|
|
1
|
-
import { aW as Pt, aX as
|
|
1
|
+
import { aW as Pt, aX as Nt, aY as xt, aZ as Mt, L as Ft, a_ as at, Q as kt, h as Xt, i as Rt, $ as Yt, o as lt, c as Bt, w as Lt, d as Ht, k as Wt, F as Gt, n as zt, l as Vt, aq as jt, S as $t } from "./main-HovvOABR.js";
|
|
2
2
|
/**!
|
|
3
3
|
* Sortable 1.10.2
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
5
5
|
* @author owenm <owen23355@gmail.com>
|
|
6
6
|
* @license MIT
|
|
7
7
|
*/
|
|
8
|
-
function Ae(
|
|
8
|
+
function Ae(t) {
|
|
9
9
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ae = function(e) {
|
|
10
10
|
return typeof e;
|
|
11
11
|
} : Ae = function(e) {
|
|
12
12
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
13
|
-
}, Ae(
|
|
13
|
+
}, Ae(t);
|
|
14
14
|
}
|
|
15
|
-
function Ut(
|
|
16
|
-
return e in
|
|
17
|
-
value:
|
|
15
|
+
function Ut(t, e, n) {
|
|
16
|
+
return e in t ? Object.defineProperty(t, e, {
|
|
17
|
+
value: n,
|
|
18
18
|
enumerable: !0,
|
|
19
19
|
configurable: !0,
|
|
20
20
|
writable: !0
|
|
21
|
-
}) :
|
|
21
|
+
}) : t[e] = n, t;
|
|
22
22
|
}
|
|
23
23
|
function j() {
|
|
24
|
-
return j = Object.assign || function(
|
|
24
|
+
return j = Object.assign || function(t) {
|
|
25
25
|
for (var e = 1; e < arguments.length; e++) {
|
|
26
|
-
var
|
|
27
|
-
for (var o in
|
|
28
|
-
Object.prototype.hasOwnProperty.call(
|
|
26
|
+
var n = arguments[e];
|
|
27
|
+
for (var o in n)
|
|
28
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
29
29
|
}
|
|
30
|
-
return
|
|
30
|
+
return t;
|
|
31
31
|
}, j.apply(this, arguments);
|
|
32
32
|
}
|
|
33
|
-
function ee(
|
|
33
|
+
function ee(t) {
|
|
34
34
|
for (var e = 1; e < arguments.length; e++) {
|
|
35
|
-
var
|
|
36
|
-
typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(
|
|
37
|
-
return Object.getOwnPropertyDescriptor(
|
|
35
|
+
var n = arguments[e] != null ? arguments[e] : {}, o = Object.keys(n);
|
|
36
|
+
typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(n).filter(function(i) {
|
|
37
|
+
return Object.getOwnPropertyDescriptor(n, i).enumerable;
|
|
38
38
|
}))), o.forEach(function(i) {
|
|
39
|
-
Ut(
|
|
39
|
+
Ut(t, i, n[i]);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return t;
|
|
43
43
|
}
|
|
44
|
-
function qt(
|
|
45
|
-
if (
|
|
46
|
-
var
|
|
44
|
+
function qt(t, e) {
|
|
45
|
+
if (t == null) return {};
|
|
46
|
+
var n = {}, o = Object.keys(t), i, r;
|
|
47
47
|
for (r = 0; r < o.length; r++)
|
|
48
|
-
i = o[r], !(e.indexOf(i) >= 0) && (
|
|
49
|
-
return
|
|
48
|
+
i = o[r], !(e.indexOf(i) >= 0) && (n[i] = t[i]);
|
|
49
|
+
return n;
|
|
50
50
|
}
|
|
51
|
-
function Zt(
|
|
52
|
-
if (
|
|
53
|
-
var
|
|
51
|
+
function Zt(t, e) {
|
|
52
|
+
if (t == null) return {};
|
|
53
|
+
var n = qt(t, e), o, i;
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var r = Object.getOwnPropertySymbols(
|
|
55
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
56
56
|
for (i = 0; i < r.length; i++)
|
|
57
|
-
o = r[i], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(
|
|
57
|
+
o = r[i], !(e.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (n[o] = t[o]);
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return n;
|
|
60
60
|
}
|
|
61
61
|
var Qt = "1.10.2";
|
|
62
|
-
function V(
|
|
62
|
+
function V(t) {
|
|
63
63
|
if (typeof window < "u" && window.navigator)
|
|
64
|
-
return !!/* @__PURE__ */ navigator.userAgent.match(
|
|
64
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
65
65
|
}
|
|
66
66
|
var $ = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), _e = V(/Edge/i), st = V(/firefox/i), Qe = V(/safari/i) && !V(/chrome/i) && !V(/android/i), mt = V(/iP(ad|od|hone)/i), Kt = V(/chrome/i) && V(/android/i), vt = {
|
|
67
67
|
capture: !1,
|
|
68
68
|
passive: !1
|
|
69
69
|
};
|
|
70
|
-
function y(
|
|
71
|
-
|
|
70
|
+
function y(t, e, n) {
|
|
71
|
+
t.addEventListener(e, n, !$ && vt);
|
|
72
72
|
}
|
|
73
|
-
function b(
|
|
74
|
-
|
|
73
|
+
function b(t, e, n) {
|
|
74
|
+
t.removeEventListener(e, n, !$ && vt);
|
|
75
75
|
}
|
|
76
|
-
function Fe(
|
|
76
|
+
function Fe(t, e) {
|
|
77
77
|
if (e) {
|
|
78
|
-
if (e[0] === ">" && (e = e.substring(1)),
|
|
78
|
+
if (e[0] === ">" && (e = e.substring(1)), t)
|
|
79
79
|
try {
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
if (
|
|
83
|
-
return
|
|
84
|
-
if (
|
|
85
|
-
return
|
|
80
|
+
if (t.matches)
|
|
81
|
+
return t.matches(e);
|
|
82
|
+
if (t.msMatchesSelector)
|
|
83
|
+
return t.msMatchesSelector(e);
|
|
84
|
+
if (t.webkitMatchesSelector)
|
|
85
|
+
return t.webkitMatchesSelector(e);
|
|
86
86
|
} catch {
|
|
87
87
|
return !1;
|
|
88
88
|
}
|
|
89
89
|
return !1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function Jt(
|
|
93
|
-
return
|
|
92
|
+
function Jt(t) {
|
|
93
|
+
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
94
94
|
}
|
|
95
|
-
function H(
|
|
96
|
-
if (
|
|
97
|
-
|
|
95
|
+
function H(t, e, n, o) {
|
|
96
|
+
if (t) {
|
|
97
|
+
n = n || document;
|
|
98
98
|
do {
|
|
99
|
-
if (e != null && (e[0] === ">" ?
|
|
100
|
-
return
|
|
101
|
-
if (
|
|
102
|
-
} while (
|
|
99
|
+
if (e != null && (e[0] === ">" ? t.parentNode === n && Fe(t, e) : Fe(t, e)) || o && t === n)
|
|
100
|
+
return t;
|
|
101
|
+
if (t === n) break;
|
|
102
|
+
} while (t = Jt(t));
|
|
103
103
|
}
|
|
104
104
|
return null;
|
|
105
105
|
}
|
|
106
106
|
var ut = /\s+/g;
|
|
107
|
-
function M(
|
|
108
|
-
if (
|
|
109
|
-
if (
|
|
110
|
-
|
|
107
|
+
function M(t, e, n) {
|
|
108
|
+
if (t && e)
|
|
109
|
+
if (t.classList)
|
|
110
|
+
t.classList[n ? "add" : "remove"](e);
|
|
111
111
|
else {
|
|
112
|
-
var o = (" " +
|
|
113
|
-
|
|
112
|
+
var o = (" " + t.className + " ").replace(ut, " ").replace(" " + e + " ", " ");
|
|
113
|
+
t.className = (o + (n ? " " + e : "")).replace(ut, " ");
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function h(
|
|
117
|
-
var o =
|
|
116
|
+
function h(t, e, n) {
|
|
117
|
+
var o = t && t.style;
|
|
118
118
|
if (o) {
|
|
119
|
-
if (
|
|
120
|
-
return document.defaultView && document.defaultView.getComputedStyle ?
|
|
121
|
-
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] =
|
|
119
|
+
if (n === void 0)
|
|
120
|
+
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (n = t.currentStyle), e === void 0 ? n : n[e];
|
|
121
|
+
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function ce(
|
|
125
|
-
var
|
|
126
|
-
if (typeof
|
|
127
|
-
|
|
124
|
+
function ce(t, e) {
|
|
125
|
+
var n = "";
|
|
126
|
+
if (typeof t == "string")
|
|
127
|
+
n = t;
|
|
128
128
|
else
|
|
129
129
|
do {
|
|
130
|
-
var o = h(
|
|
131
|
-
o && o !== "none" && (
|
|
132
|
-
} while (!e && (
|
|
130
|
+
var o = h(t, "transform");
|
|
131
|
+
o && o !== "none" && (n = o + " " + n);
|
|
132
|
+
} while (!e && (t = t.parentNode));
|
|
133
133
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
134
|
-
return i && new i(
|
|
134
|
+
return i && new i(n);
|
|
135
135
|
}
|
|
136
|
-
function bt(
|
|
137
|
-
if (
|
|
138
|
-
var o =
|
|
139
|
-
if (
|
|
136
|
+
function bt(t, e, n) {
|
|
137
|
+
if (t) {
|
|
138
|
+
var o = t.getElementsByTagName(e), i = 0, r = o.length;
|
|
139
|
+
if (n)
|
|
140
140
|
for (; i < r; i++)
|
|
141
|
-
|
|
141
|
+
n(o[i], i);
|
|
142
142
|
return o;
|
|
143
143
|
}
|
|
144
144
|
return [];
|
|
145
145
|
}
|
|
146
146
|
function W() {
|
|
147
|
-
var
|
|
148
|
-
return
|
|
147
|
+
var t = document.scrollingElement;
|
|
148
|
+
return t || document.documentElement;
|
|
149
149
|
}
|
|
150
|
-
function I(
|
|
151
|
-
if (!(!
|
|
152
|
-
var r, a, l, s, u,
|
|
153
|
-
if (
|
|
150
|
+
function I(t, e, n, o, i) {
|
|
151
|
+
if (!(!t.getBoundingClientRect && t !== window)) {
|
|
152
|
+
var r, a, l, s, u, f, c;
|
|
153
|
+
if (t !== window && t !== W() ? (r = t.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, f = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, c = window.innerWidth), (e || n) && t !== window && (i = i || t.parentNode, !$))
|
|
154
154
|
do
|
|
155
|
-
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" ||
|
|
155
|
+
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || n && h(i, "position") !== "static")) {
|
|
156
156
|
var m = i.getBoundingClientRect();
|
|
157
157
|
a -= m.top + parseInt(h(i, "border-top-width")), l -= m.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
158
158
|
break;
|
|
159
159
|
}
|
|
160
160
|
while (i = i.parentNode);
|
|
161
|
-
if (o &&
|
|
162
|
-
var w = ce(i ||
|
|
163
|
-
w && (a /= E, l /= v,
|
|
161
|
+
if (o && t !== window) {
|
|
162
|
+
var w = ce(i || t), v = w && w.a, E = w && w.d;
|
|
163
|
+
w && (a /= E, l /= v, c /= v, f /= E, s = a + f, u = l + c);
|
|
164
164
|
}
|
|
165
165
|
return {
|
|
166
166
|
top: a,
|
|
167
167
|
left: l,
|
|
168
168
|
bottom: s,
|
|
169
169
|
right: u,
|
|
170
|
-
width:
|
|
171
|
-
height:
|
|
170
|
+
width: c,
|
|
171
|
+
height: f
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
function dt(
|
|
176
|
-
for (var o = J(
|
|
177
|
-
var r = I(o)[
|
|
175
|
+
function dt(t, e, n) {
|
|
176
|
+
for (var o = J(t, !0), i = I(t)[e]; o; ) {
|
|
177
|
+
var r = I(o)[n], a = void 0;
|
|
178
178
|
if (a = i >= r, !a) return o;
|
|
179
179
|
if (o === W()) break;
|
|
180
180
|
o = J(o, !1);
|
|
181
181
|
}
|
|
182
182
|
return !1;
|
|
183
183
|
}
|
|
184
|
-
function ke(
|
|
185
|
-
for (var o = 0, i = 0, r =
|
|
186
|
-
if (r[i].style.display !== "none" && r[i] !== p.ghost && r[i] !== p.dragged && H(r[i],
|
|
184
|
+
function ke(t, e, n) {
|
|
185
|
+
for (var o = 0, i = 0, r = t.children; i < r.length; ) {
|
|
186
|
+
if (r[i].style.display !== "none" && r[i] !== p.ghost && r[i] !== p.dragged && H(r[i], n.draggable, t, !1)) {
|
|
187
187
|
if (o === e)
|
|
188
188
|
return r[i];
|
|
189
189
|
o++;
|
|
@@ -192,66 +192,66 @@ function ke(n, e, t) {
|
|
|
192
192
|
}
|
|
193
193
|
return null;
|
|
194
194
|
}
|
|
195
|
-
function nt(
|
|
196
|
-
for (var
|
|
197
|
-
|
|
198
|
-
return
|
|
195
|
+
function nt(t, e) {
|
|
196
|
+
for (var n = t.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || e && !Fe(n, e)); )
|
|
197
|
+
n = n.previousElementSibling;
|
|
198
|
+
return n || null;
|
|
199
199
|
}
|
|
200
|
-
function X(
|
|
201
|
-
var
|
|
202
|
-
if (!
|
|
200
|
+
function X(t, e) {
|
|
201
|
+
var n = 0;
|
|
202
|
+
if (!t || !t.parentNode)
|
|
203
203
|
return -1;
|
|
204
|
-
for (;
|
|
205
|
-
|
|
206
|
-
return
|
|
204
|
+
for (; t = t.previousElementSibling; )
|
|
205
|
+
t.nodeName.toUpperCase() !== "TEMPLATE" && t !== p.clone && (!e || Fe(t, e)) && n++;
|
|
206
|
+
return n;
|
|
207
207
|
}
|
|
208
|
-
function ft(
|
|
209
|
-
var e = 0,
|
|
210
|
-
if (
|
|
208
|
+
function ft(t) {
|
|
209
|
+
var e = 0, n = 0, o = W();
|
|
210
|
+
if (t)
|
|
211
211
|
do {
|
|
212
|
-
var i = ce(
|
|
213
|
-
e +=
|
|
214
|
-
} while (
|
|
215
|
-
return [e,
|
|
212
|
+
var i = ce(t), r = i.a, a = i.d;
|
|
213
|
+
e += t.scrollLeft * r, n += t.scrollTop * a;
|
|
214
|
+
} while (t !== o && (t = t.parentNode));
|
|
215
|
+
return [e, n];
|
|
216
216
|
}
|
|
217
|
-
function en(
|
|
218
|
-
for (var
|
|
219
|
-
if (
|
|
217
|
+
function en(t, e) {
|
|
218
|
+
for (var n in t)
|
|
219
|
+
if (t.hasOwnProperty(n)) {
|
|
220
220
|
for (var o in e)
|
|
221
|
-
if (e.hasOwnProperty(o) && e[o] === n
|
|
221
|
+
if (e.hasOwnProperty(o) && e[o] === t[n][o]) return Number(n);
|
|
222
222
|
}
|
|
223
223
|
return -1;
|
|
224
224
|
}
|
|
225
|
-
function J(
|
|
226
|
-
if (!
|
|
227
|
-
var
|
|
225
|
+
function J(t, e) {
|
|
226
|
+
if (!t || !t.getBoundingClientRect) return W();
|
|
227
|
+
var n = t, o = !1;
|
|
228
228
|
do
|
|
229
|
-
if (
|
|
230
|
-
var i = h(
|
|
231
|
-
if (
|
|
232
|
-
if (!
|
|
233
|
-
if (o || e) return
|
|
229
|
+
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
230
|
+
var i = h(n);
|
|
231
|
+
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
232
|
+
if (!n.getBoundingClientRect || n === document.body) return W();
|
|
233
|
+
if (o || e) return n;
|
|
234
234
|
o = !0;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
while (
|
|
237
|
+
while (n = n.parentNode);
|
|
238
238
|
return W();
|
|
239
239
|
}
|
|
240
|
-
function tn(
|
|
241
|
-
if (
|
|
242
|
-
for (var
|
|
243
|
-
e.hasOwnProperty(
|
|
244
|
-
return
|
|
240
|
+
function tn(t, e) {
|
|
241
|
+
if (t && e)
|
|
242
|
+
for (var n in e)
|
|
243
|
+
e.hasOwnProperty(n) && (t[n] = e[n]);
|
|
244
|
+
return t;
|
|
245
245
|
}
|
|
246
|
-
function He(
|
|
247
|
-
return Math.round(
|
|
246
|
+
function He(t, e) {
|
|
247
|
+
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
248
248
|
}
|
|
249
249
|
var ye;
|
|
250
|
-
function yt(
|
|
250
|
+
function yt(t, e) {
|
|
251
251
|
return function() {
|
|
252
252
|
if (!ye) {
|
|
253
|
-
var
|
|
254
|
-
|
|
253
|
+
var n = arguments, o = this;
|
|
254
|
+
n.length === 1 ? t.call(o, n[0]) : t.apply(o, n), ye = setTimeout(function() {
|
|
255
255
|
ye = void 0;
|
|
256
256
|
}, e);
|
|
257
257
|
}
|
|
@@ -260,27 +260,27 @@ function yt(n, e) {
|
|
|
260
260
|
function nn() {
|
|
261
261
|
clearTimeout(ye), ye = void 0;
|
|
262
262
|
}
|
|
263
|
-
function Et(
|
|
264
|
-
|
|
263
|
+
function Et(t, e, n) {
|
|
264
|
+
t.scrollLeft += e, t.scrollTop += n;
|
|
265
265
|
}
|
|
266
|
-
function wt(
|
|
267
|
-
var e = window.Polymer,
|
|
268
|
-
return e && e.dom ? e.dom(
|
|
266
|
+
function wt(t) {
|
|
267
|
+
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
|
268
|
+
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
|
269
269
|
}
|
|
270
270
|
var k = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
271
271
|
function on() {
|
|
272
|
-
var
|
|
272
|
+
var t = [], e;
|
|
273
273
|
return {
|
|
274
274
|
captureAnimationState: function() {
|
|
275
|
-
if (
|
|
275
|
+
if (t = [], !!this.options.animation) {
|
|
276
276
|
var o = [].slice.call(this.el.children);
|
|
277
277
|
o.forEach(function(i) {
|
|
278
278
|
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
279
|
-
|
|
279
|
+
t.push({
|
|
280
280
|
target: i,
|
|
281
281
|
rect: I(i)
|
|
282
282
|
});
|
|
283
|
-
var r = ee({},
|
|
283
|
+
var r = ee({}, t[t.length - 1].rect);
|
|
284
284
|
if (i.thisAnimationDuration) {
|
|
285
285
|
var a = ce(i, !0);
|
|
286
286
|
a && (r.top -= a.f, r.left -= a.e);
|
|
@@ -291,10 +291,10 @@ function on() {
|
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
293
|
addAnimationState: function(o) {
|
|
294
|
-
|
|
294
|
+
t.push(o);
|
|
295
295
|
},
|
|
296
296
|
removeAnimationState: function(o) {
|
|
297
|
-
|
|
297
|
+
t.splice(en(t, {
|
|
298
298
|
target: o
|
|
299
299
|
}), 1);
|
|
300
300
|
},
|
|
@@ -305,60 +305,60 @@ function on() {
|
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
307
|
var r = !1, a = 0;
|
|
308
|
-
|
|
309
|
-
var s = 0, u = l.target,
|
|
310
|
-
E && (
|
|
311
|
-
(v.top -
|
|
308
|
+
t.forEach(function(l) {
|
|
309
|
+
var s = 0, u = l.target, f = u.fromRect, c = I(u), m = u.prevFromRect, w = u.prevToRect, v = l.rect, E = ce(u, !0);
|
|
310
|
+
E && (c.top -= E.f, c.left -= E.e), u.toRect = c, u.thisAnimationDuration && He(m, c) && !He(f, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
311
|
+
(v.top - c.top) / (v.left - c.left) === (f.top - c.top) / (f.left - c.left) && (s = an(v, m, w, i.options)), He(c, f) || (u.prevFromRect = f, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, v, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
312
312
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
313
313
|
}, s), u.thisAnimationDuration = s);
|
|
314
314
|
}), clearTimeout(e), r ? e = setTimeout(function() {
|
|
315
315
|
typeof o == "function" && o();
|
|
316
|
-
}, a) : typeof o == "function" && o(),
|
|
316
|
+
}, a) : typeof o == "function" && o(), t = [];
|
|
317
317
|
},
|
|
318
318
|
animate: function(o, i, r, a) {
|
|
319
319
|
if (a) {
|
|
320
320
|
h(o, "transition", ""), h(o, "transform", "");
|
|
321
|
-
var l = ce(this.el), s = l && l.a, u = l && l.d,
|
|
322
|
-
o.animatingX = !!
|
|
321
|
+
var l = ce(this.el), s = l && l.a, u = l && l.d, f = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
|
|
322
|
+
o.animatingX = !!f, o.animatingY = !!c, h(o, "transform", "translate3d(" + f + "px," + c + "px,0)"), rn(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() {
|
|
323
323
|
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
324
324
|
}, a);
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
function rn(
|
|
330
|
-
return
|
|
329
|
+
function rn(t) {
|
|
330
|
+
return t.offsetWidth;
|
|
331
331
|
}
|
|
332
|
-
function an(
|
|
333
|
-
return Math.sqrt(Math.pow(e.top -
|
|
332
|
+
function an(t, e, n, o) {
|
|
333
|
+
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
|
334
334
|
}
|
|
335
335
|
var ge = [], We = {
|
|
336
336
|
initializeByDefault: !0
|
|
337
337
|
}, Se = {
|
|
338
338
|
mount: function(e) {
|
|
339
|
-
for (var
|
|
340
|
-
We.hasOwnProperty(
|
|
339
|
+
for (var n in We)
|
|
340
|
+
We.hasOwnProperty(n) && !(n in e) && (e[n] = We[n]);
|
|
341
341
|
ge.push(e);
|
|
342
342
|
},
|
|
343
|
-
pluginEvent: function(e,
|
|
343
|
+
pluginEvent: function(e, n, o) {
|
|
344
344
|
var i = this;
|
|
345
345
|
this.eventCanceled = !1, o.cancel = function() {
|
|
346
346
|
i.eventCanceled = !0;
|
|
347
347
|
};
|
|
348
348
|
var r = e + "Global";
|
|
349
349
|
ge.forEach(function(a) {
|
|
350
|
-
|
|
351
|
-
sortable:
|
|
352
|
-
}, o)),
|
|
353
|
-
sortable:
|
|
350
|
+
n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](ee({
|
|
351
|
+
sortable: n
|
|
352
|
+
}, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](ee({
|
|
353
|
+
sortable: n
|
|
354
354
|
}, o)));
|
|
355
355
|
});
|
|
356
356
|
},
|
|
357
|
-
initializePlugins: function(e,
|
|
357
|
+
initializePlugins: function(e, n, o, i) {
|
|
358
358
|
ge.forEach(function(l) {
|
|
359
359
|
var s = l.pluginName;
|
|
360
360
|
if (!(!e.options[s] && !l.initializeByDefault)) {
|
|
361
|
-
var u = new l(e,
|
|
361
|
+
var u = new l(e, n, e.options);
|
|
362
362
|
u.sortable = e, u.options = e.options, e[s] = u, j(o, u.defaults);
|
|
363
363
|
}
|
|
364
364
|
});
|
|
@@ -368,36 +368,36 @@ var ge = [], We = {
|
|
|
368
368
|
typeof a < "u" && (e.options[r] = a);
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
|
-
getEventProperties: function(e,
|
|
371
|
+
getEventProperties: function(e, n) {
|
|
372
372
|
var o = {};
|
|
373
373
|
return ge.forEach(function(i) {
|
|
374
|
-
typeof i.eventProperties == "function" && j(o, i.eventProperties.call(
|
|
374
|
+
typeof i.eventProperties == "function" && j(o, i.eventProperties.call(n[i.pluginName], e));
|
|
375
375
|
}), o;
|
|
376
376
|
},
|
|
377
|
-
modifyOption: function(e,
|
|
377
|
+
modifyOption: function(e, n, o) {
|
|
378
378
|
var i;
|
|
379
379
|
return ge.forEach(function(r) {
|
|
380
|
-
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[
|
|
380
|
+
e[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(e[r.pluginName], o));
|
|
381
381
|
}), i;
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
|
-
function ln(
|
|
385
|
-
var e =
|
|
386
|
-
if (e = e ||
|
|
384
|
+
function ln(t) {
|
|
385
|
+
var e = t.sortable, n = t.rootEl, o = t.name, i = t.targetEl, r = t.cloneEl, a = t.toEl, l = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, c = t.newDraggableIndex, m = t.originalEvent, w = t.putSortable, v = t.extraEventProperties;
|
|
386
|
+
if (e = e || n && n[k], !!e) {
|
|
387
387
|
var E, R = e.options, U = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
388
388
|
window.CustomEvent && !$ && !_e ? E = new CustomEvent(o, {
|
|
389
389
|
bubbles: !0,
|
|
390
390
|
cancelable: !0
|
|
391
|
-
}) : (E = document.createEvent("Event"), E.initEvent(o, !0, !0)), E.to = a ||
|
|
392
|
-
var
|
|
393
|
-
for (var B in
|
|
394
|
-
E[B] =
|
|
395
|
-
|
|
391
|
+
}) : (E = document.createEvent("Event"), E.initEvent(o, !0, !0)), E.to = a || n, E.from = l || n, E.item = i || n, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = f, E.newDraggableIndex = c, E.originalEvent = m, E.pullMode = w ? w.lastPutMode : void 0;
|
|
392
|
+
var N = ee({}, v, Se.getEventProperties(o, e));
|
|
393
|
+
for (var B in N)
|
|
394
|
+
E[B] = N[B];
|
|
395
|
+
n && n.dispatchEvent(E), R[U] && R[U].call(e, E);
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
var P = function(e,
|
|
398
|
+
var P = function(e, n) {
|
|
399
399
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = Zt(o, ["evt"]);
|
|
400
|
-
Se.pluginEvent.bind(p)(e,
|
|
400
|
+
Se.pluginEvent.bind(p)(e, n, ee({
|
|
401
401
|
dragEl: d,
|
|
402
402
|
parentEl: S,
|
|
403
403
|
ghostEl: g,
|
|
@@ -424,14 +424,14 @@ var P = function(e, t) {
|
|
|
424
424
|
},
|
|
425
425
|
dispatchSortableEvent: function(l) {
|
|
426
426
|
A({
|
|
427
|
-
sortable:
|
|
427
|
+
sortable: n,
|
|
428
428
|
name: l,
|
|
429
429
|
originalEvent: i
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
}, r));
|
|
433
433
|
};
|
|
434
|
-
function A(
|
|
434
|
+
function A(t) {
|
|
435
435
|
ln(ee({
|
|
436
436
|
putSortable: C,
|
|
437
437
|
cloneEl: _,
|
|
@@ -441,50 +441,50 @@ function A(n) {
|
|
|
441
441
|
oldDraggableIndex: Ee,
|
|
442
442
|
newIndex: F,
|
|
443
443
|
newDraggableIndex: Q
|
|
444
|
-
},
|
|
444
|
+
}, t));
|
|
445
445
|
}
|
|
446
|
-
var d, S, g, D, ae, Pe, _, K, fe, F, Ee, Q, Ce, C, de = !1, Xe = !1, Re = [], ie, Y, Ge, ze, ct, ht, me, ue, we, De = !1, Ie = !1,
|
|
446
|
+
var d, S, g, D, ae, Pe, _, K, fe, F, Ee, Q, Ce, C, de = !1, Xe = !1, Re = [], ie, Y, Ge, ze, ct, ht, me, ue, we, De = !1, Ie = !1, Ne, O, Ve = [], Ke = !1, Ye = [], Le = typeof document < "u", Oe = mt, pt = _e || $ ? "cssFloat" : "float", sn = Le && !Kt && !mt && "draggable" in document.createElement("div"), Dt = function() {
|
|
447
447
|
if (Le) {
|
|
448
448
|
if ($)
|
|
449
449
|
return !1;
|
|
450
|
-
var
|
|
451
|
-
return
|
|
450
|
+
var t = document.createElement("x");
|
|
451
|
+
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
452
452
|
}
|
|
453
|
-
}(), _t = function(e,
|
|
454
|
-
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = ke(e, 0,
|
|
453
|
+
}(), _t = function(e, n) {
|
|
454
|
+
var o = h(e), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = ke(e, 0, n), a = ke(e, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + I(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + I(a).width;
|
|
455
455
|
if (o.display === "flex")
|
|
456
456
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
457
457
|
if (o.display === "grid")
|
|
458
458
|
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
459
459
|
if (r && l.float && l.float !== "none") {
|
|
460
|
-
var
|
|
461
|
-
return a && (s.clear === "both" || s.clear ===
|
|
460
|
+
var c = l.float === "left" ? "left" : "right";
|
|
461
|
+
return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
|
|
462
462
|
}
|
|
463
|
-
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[pt] === "none" || a && o[pt] === "none" && u +
|
|
464
|
-
}, un = function(e,
|
|
465
|
-
var i = o ? e.left : e.top, r = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ?
|
|
463
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[pt] === "none" || a && o[pt] === "none" && u + f > i) ? "vertical" : "horizontal";
|
|
464
|
+
}, un = function(e, n, o) {
|
|
465
|
+
var i = o ? e.left : e.top, r = o ? e.right : e.bottom, a = o ? e.width : e.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
466
466
|
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
467
|
-
}, dn = function(e,
|
|
467
|
+
}, dn = function(e, n) {
|
|
468
468
|
var o;
|
|
469
469
|
return Re.some(function(i) {
|
|
470
470
|
if (!nt(i)) {
|
|
471
|
-
var r = I(i), a = i[k].options.emptyInsertThreshold, l = e >= r.left - a && e <= r.right + a, s =
|
|
471
|
+
var r = I(i), a = i[k].options.emptyInsertThreshold, l = e >= r.left - a && e <= r.right + a, s = n >= r.top - a && n <= r.bottom + a;
|
|
472
472
|
if (a && l && s)
|
|
473
473
|
return o = i;
|
|
474
474
|
}
|
|
475
475
|
}), o;
|
|
476
476
|
}, St = function(e) {
|
|
477
|
-
function
|
|
478
|
-
return function(l, s, u,
|
|
479
|
-
var
|
|
480
|
-
if (r == null && (a ||
|
|
477
|
+
function n(r, a) {
|
|
478
|
+
return function(l, s, u, f) {
|
|
479
|
+
var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
480
|
+
if (r == null && (a || c))
|
|
481
481
|
return !0;
|
|
482
482
|
if (r == null || r === !1)
|
|
483
483
|
return !1;
|
|
484
484
|
if (a && r === "clone")
|
|
485
485
|
return r;
|
|
486
486
|
if (typeof r == "function")
|
|
487
|
-
return
|
|
487
|
+
return n(r(l, s, u, f), a)(l, s, u, f);
|
|
488
488
|
var m = (a ? l : s).options.group.name;
|
|
489
489
|
return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
|
|
490
490
|
};
|
|
@@ -492,41 +492,41 @@ var d, S, g, D, ae, Pe, _, K, fe, F, Ee, Q, Ce, C, de = !1, Xe = !1, Re = [], ie
|
|
|
492
492
|
var o = {}, i = e.group;
|
|
493
493
|
(!i || Ae(i) != "object") && (i = {
|
|
494
494
|
name: i
|
|
495
|
-
}), o.name = i.name, o.checkPull =
|
|
495
|
+
}), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, e.group = o;
|
|
496
496
|
}, Tt = function() {
|
|
497
497
|
!Dt && g && h(g, "display", "none");
|
|
498
498
|
}, Ct = function() {
|
|
499
499
|
!Dt && g && h(g, "display", "");
|
|
500
500
|
};
|
|
501
|
-
Le && document.addEventListener("click", function(
|
|
501
|
+
Le && document.addEventListener("click", function(t) {
|
|
502
502
|
if (Xe)
|
|
503
|
-
return
|
|
503
|
+
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Xe = !1, !1;
|
|
504
504
|
}, !0);
|
|
505
505
|
var re = function(e) {
|
|
506
506
|
if (d) {
|
|
507
507
|
e = e.touches ? e.touches[0] : e;
|
|
508
|
-
var
|
|
509
|
-
if (
|
|
508
|
+
var n = dn(e.clientX, e.clientY);
|
|
509
|
+
if (n) {
|
|
510
510
|
var o = {};
|
|
511
511
|
for (var i in e)
|
|
512
512
|
e.hasOwnProperty(i) && (o[i] = e[i]);
|
|
513
|
-
o.target = o.rootEl =
|
|
513
|
+
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[k]._onDragOver(o);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}, fn = function(e) {
|
|
517
517
|
d && d.parentNode[k]._isOutsideThisEl(e.target);
|
|
518
518
|
};
|
|
519
|
-
function p(
|
|
520
|
-
if (!(
|
|
521
|
-
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(
|
|
522
|
-
this.el =
|
|
523
|
-
var
|
|
519
|
+
function p(t, e) {
|
|
520
|
+
if (!(t && t.nodeType && t.nodeType === 1))
|
|
521
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
|
|
522
|
+
this.el = t, this.options = e = j({}, e), t[k] = this;
|
|
523
|
+
var n = {
|
|
524
524
|
group: null,
|
|
525
525
|
sort: !0,
|
|
526
526
|
disabled: !1,
|
|
527
527
|
store: null,
|
|
528
528
|
handle: null,
|
|
529
|
-
draggable: /^[uo]l$/i.test(
|
|
529
|
+
draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
|
|
530
530
|
swapThreshold: 1,
|
|
531
531
|
// percentage; 0 <= x <= 1
|
|
532
532
|
invertSwap: !1,
|
|
@@ -535,7 +535,7 @@ function p(n, e) {
|
|
|
535
535
|
// will be set to same as swapThreshold if default
|
|
536
536
|
removeCloneOnHide: !0,
|
|
537
537
|
direction: function() {
|
|
538
|
-
return _t(
|
|
538
|
+
return _t(t, this.options);
|
|
539
539
|
},
|
|
540
540
|
ghostClass: "sortable-ghost",
|
|
541
541
|
chosenClass: "sortable-chosen",
|
|
@@ -565,13 +565,13 @@ function p(n, e) {
|
|
|
565
565
|
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window,
|
|
566
566
|
emptyInsertThreshold: 5
|
|
567
567
|
};
|
|
568
|
-
Se.initializePlugins(this,
|
|
569
|
-
for (var o in
|
|
570
|
-
!(o in e) && (e[o] =
|
|
568
|
+
Se.initializePlugins(this, t, n);
|
|
569
|
+
for (var o in n)
|
|
570
|
+
!(o in e) && (e[o] = n[o]);
|
|
571
571
|
St(e);
|
|
572
572
|
for (var i in this)
|
|
573
573
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
574
|
-
this.nativeDraggable = e.forceFallback ? !1 : sn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(
|
|
574
|
+
this.nativeDraggable = e.forceFallback ? !1 : sn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? y(t, "pointerdown", this._onTapStart) : (y(t, "mousedown", this._onTapStart), y(t, "touchstart", this._onTapStart)), this.nativeDraggable && (y(t, "dragover", this), y(t, "dragenter", this)), Re.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), j(this, on());
|
|
575
575
|
}
|
|
576
576
|
p.prototype = /** @lends Sortable.prototype */
|
|
577
577
|
{
|
|
@@ -579,40 +579,40 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
579
579
|
_isOutsideThisEl: function(e) {
|
|
580
580
|
!this.el.contains(e) && e !== this.el && (ue = null);
|
|
581
581
|
},
|
|
582
|
-
_getDirection: function(e,
|
|
583
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e,
|
|
582
|
+
_getDirection: function(e, n) {
|
|
583
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, d) : this.options.direction;
|
|
584
584
|
},
|
|
585
585
|
_onTapStart: function(e) {
|
|
586
586
|
if (e.cancelable) {
|
|
587
|
-
var
|
|
587
|
+
var n = this, o = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = i.filter;
|
|
588
588
|
if (bn(o), !d && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && (s = H(s, i.draggable, o, !1), !(s && s.animated) && Pe !== s)) {
|
|
589
|
-
if (fe = X(s), Ee = X(s, i.draggable), typeof
|
|
590
|
-
if (
|
|
589
|
+
if (fe = X(s), Ee = X(s, i.draggable), typeof f == "function") {
|
|
590
|
+
if (f.call(this, e, s, this)) {
|
|
591
591
|
A({
|
|
592
|
-
sortable:
|
|
592
|
+
sortable: n,
|
|
593
593
|
rootEl: u,
|
|
594
594
|
name: "filter",
|
|
595
595
|
targetEl: s,
|
|
596
596
|
toEl: o,
|
|
597
597
|
fromEl: o
|
|
598
|
-
}), P("filter",
|
|
598
|
+
}), P("filter", n, {
|
|
599
599
|
evt: e
|
|
600
600
|
}), r && e.cancelable && e.preventDefault();
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
|
-
} else if (
|
|
604
|
-
if (
|
|
603
|
+
} else if (f && (f = f.split(",").some(function(c) {
|
|
604
|
+
if (c = H(u, c.trim(), o, !1), c)
|
|
605
605
|
return A({
|
|
606
|
-
sortable:
|
|
607
|
-
rootEl:
|
|
606
|
+
sortable: n,
|
|
607
|
+
rootEl: c,
|
|
608
608
|
name: "filter",
|
|
609
609
|
targetEl: s,
|
|
610
610
|
fromEl: o,
|
|
611
611
|
toEl: o
|
|
612
|
-
}), P("filter",
|
|
612
|
+
}), P("filter", n, {
|
|
613
613
|
evt: e
|
|
614
614
|
}), !0;
|
|
615
|
-
}),
|
|
615
|
+
}), f)) {
|
|
616
616
|
r && e.cancelable && e.preventDefault();
|
|
617
617
|
return;
|
|
618
618
|
}
|
|
@@ -620,31 +620,31 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
},
|
|
623
|
-
_prepareDragStart: function(e,
|
|
623
|
+
_prepareDragStart: function(e, n, o) {
|
|
624
624
|
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
625
625
|
if (o && !d && o.parentNode === r) {
|
|
626
626
|
var u = I(o);
|
|
627
627
|
if (D = r, d = o, S = d.parentNode, ae = d.nextSibling, Pe = o, Ce = a.group, p.dragged = d, ie = {
|
|
628
628
|
target: d,
|
|
629
|
-
clientX: (
|
|
630
|
-
clientY: (
|
|
631
|
-
}, ct = ie.clientX - u.left, ht = ie.clientY - u.top, this._lastX = (
|
|
629
|
+
clientX: (n || e).clientX,
|
|
630
|
+
clientY: (n || e).clientY
|
|
631
|
+
}, ct = ie.clientX - u.left, ht = ie.clientY - u.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, d.style["will-change"] = "all", s = function() {
|
|
632
632
|
if (P("delayEnded", i, {
|
|
633
633
|
evt: e
|
|
634
634
|
}), p.eventCanceled) {
|
|
635
635
|
i._onDrop();
|
|
636
636
|
return;
|
|
637
637
|
}
|
|
638
|
-
i._disableDelayedDragEvents(), !st && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e,
|
|
638
|
+
i._disableDelayedDragEvents(), !st && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(e, n), A({
|
|
639
639
|
sortable: i,
|
|
640
640
|
name: "choose",
|
|
641
641
|
originalEvent: e
|
|
642
642
|
}), M(d, a.chosenClass, !0);
|
|
643
|
-
}, a.ignore.split(",").forEach(function(
|
|
644
|
-
bt(d,
|
|
643
|
+
}, a.ignore.split(",").forEach(function(f) {
|
|
644
|
+
bt(d, f.trim(), $e);
|
|
645
645
|
}), y(l, "dragover", re), y(l, "mousemove", re), y(l, "touchmove", re), y(l, "mouseup", i._onDrop), y(l, "touchend", i._onDrop), y(l, "touchcancel", i._onDrop), st && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), P("delayStart", this, {
|
|
646
646
|
evt: e
|
|
647
|
-
}), a.delay && (!a.delayOnTouchOnly ||
|
|
647
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(_e || $))) {
|
|
648
648
|
if (p.eventCanceled) {
|
|
649
649
|
this._onDrop();
|
|
650
650
|
return;
|
|
@@ -655,8 +655,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
655
655
|
}
|
|
656
656
|
},
|
|
657
657
|
_delayedDragTouchMoveHandler: function(e) {
|
|
658
|
-
var
|
|
659
|
-
Math.max(Math.abs(
|
|
658
|
+
var n = e.touches ? e.touches[0] : e;
|
|
659
|
+
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();
|
|
660
660
|
},
|
|
661
661
|
_disableDelayedDrag: function() {
|
|
662
662
|
d && $e(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
@@ -665,25 +665,25 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
665
665
|
var e = this.el.ownerDocument;
|
|
666
666
|
b(e, "mouseup", this._disableDelayedDrag), b(e, "touchend", this._disableDelayedDrag), b(e, "touchcancel", this._disableDelayedDrag), b(e, "mousemove", this._delayedDragTouchMoveHandler), b(e, "touchmove", this._delayedDragTouchMoveHandler), b(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
667
667
|
},
|
|
668
|
-
_triggerDragStart: function(e,
|
|
669
|
-
|
|
668
|
+
_triggerDragStart: function(e, n) {
|
|
669
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? y(document, "pointermove", this._onTouchMove) : n ? y(document, "touchmove", this._onTouchMove) : y(document, "mousemove", this._onTouchMove) : (y(d, "dragend", this), y(D, "dragstart", this._onDragStart));
|
|
670
670
|
try {
|
|
671
|
-
document.selection ?
|
|
671
|
+
document.selection ? xe(function() {
|
|
672
672
|
document.selection.empty();
|
|
673
673
|
}) : window.getSelection().removeAllRanges();
|
|
674
674
|
} catch {
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
|
-
_dragStarted: function(e,
|
|
677
|
+
_dragStarted: function(e, n) {
|
|
678
678
|
if (de = !1, D && d) {
|
|
679
679
|
P("dragStarted", this, {
|
|
680
|
-
evt:
|
|
680
|
+
evt: n
|
|
681
681
|
}), this.nativeDraggable && y(document, "dragover", fn);
|
|
682
682
|
var o = this.options;
|
|
683
683
|
!e && M(d, o.dragClass, !1), M(d, o.ghostClass, !0), p.active = this, e && this._appendGhost(), A({
|
|
684
684
|
sortable: this,
|
|
685
685
|
name: "start",
|
|
686
|
-
originalEvent:
|
|
686
|
+
originalEvent: n
|
|
687
687
|
});
|
|
688
688
|
} else
|
|
689
689
|
this._nulling();
|
|
@@ -691,60 +691,60 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
691
691
|
_emulateDragOver: function() {
|
|
692
692
|
if (Y) {
|
|
693
693
|
this._lastX = Y.clientX, this._lastY = Y.clientY, Tt();
|
|
694
|
-
for (var e = document.elementFromPoint(Y.clientX, Y.clientY),
|
|
695
|
-
|
|
696
|
-
if (d.parentNode[k]._isOutsideThisEl(e),
|
|
694
|
+
for (var e = document.elementFromPoint(Y.clientX, Y.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), e !== n); )
|
|
695
|
+
n = e;
|
|
696
|
+
if (d.parentNode[k]._isOutsideThisEl(e), n)
|
|
697
697
|
do {
|
|
698
|
-
if (
|
|
698
|
+
if (n[k]) {
|
|
699
699
|
var o = void 0;
|
|
700
|
-
if (o =
|
|
700
|
+
if (o = n[k]._onDragOver({
|
|
701
701
|
clientX: Y.clientX,
|
|
702
702
|
clientY: Y.clientY,
|
|
703
703
|
target: e,
|
|
704
|
-
rootEl:
|
|
704
|
+
rootEl: n
|
|
705
705
|
}), o && !this.options.dragoverBubble)
|
|
706
706
|
break;
|
|
707
707
|
}
|
|
708
|
-
e =
|
|
709
|
-
} while (
|
|
708
|
+
e = n;
|
|
709
|
+
} while (n = n.parentNode);
|
|
710
710
|
Ct();
|
|
711
711
|
}
|
|
712
712
|
},
|
|
713
713
|
_onTouchMove: function(e) {
|
|
714
714
|
if (ie) {
|
|
715
|
-
var
|
|
715
|
+
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && ce(g, !0), l = g && a && a.a, s = g && a && a.d, u = Oe && O && ft(O), f = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Ve[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - Ve[1] : 0) / (s || 1);
|
|
716
716
|
if (!p.active && !de) {
|
|
717
717
|
if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
|
|
718
718
|
return;
|
|
719
719
|
this._onDragStart(e, !0);
|
|
720
720
|
}
|
|
721
721
|
if (g) {
|
|
722
|
-
a ? (a.e +=
|
|
722
|
+
a ? (a.e += f - (Ge || 0), a.f += c - (ze || 0)) : a = {
|
|
723
723
|
a: 1,
|
|
724
724
|
b: 0,
|
|
725
725
|
c: 0,
|
|
726
726
|
d: 1,
|
|
727
|
-
e:
|
|
728
|
-
f
|
|
727
|
+
e: f,
|
|
728
|
+
f: c
|
|
729
729
|
};
|
|
730
730
|
var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
731
|
-
h(g, "webkitTransform", m), h(g, "mozTransform", m), h(g, "msTransform", m), h(g, "transform", m), Ge =
|
|
731
|
+
h(g, "webkitTransform", m), h(g, "mozTransform", m), h(g, "msTransform", m), h(g, "transform", m), Ge = f, ze = c, Y = r;
|
|
732
732
|
}
|
|
733
733
|
e.cancelable && e.preventDefault();
|
|
734
734
|
}
|
|
735
735
|
},
|
|
736
736
|
_appendGhost: function() {
|
|
737
737
|
if (!g) {
|
|
738
|
-
var e = this.options.fallbackOnBody ? document.body : D,
|
|
738
|
+
var e = this.options.fallbackOnBody ? document.body : D, n = I(d, !0, Oe, !0, e), o = this.options;
|
|
739
739
|
if (Oe) {
|
|
740
740
|
for (O = e; h(O, "position") === "static" && h(O, "transform") === "none" && O !== document; )
|
|
741
741
|
O = O.parentNode;
|
|
742
|
-
O !== document.body && O !== document.documentElement ? (O === document && (O = W()),
|
|
742
|
+
O !== document.body && O !== document.documentElement ? (O === document && (O = W()), n.top += O.scrollTop, n.left += O.scrollLeft) : O = W(), Ve = ft(O);
|
|
743
743
|
}
|
|
744
|
-
g = d.cloneNode(!0), M(g, o.ghostClass, !1), M(g, o.fallbackClass, !0), M(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top",
|
|
744
|
+
g = d.cloneNode(!0), M(g, o.ghostClass, !1), M(g, o.fallbackClass, !0), M(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", n.top), h(g, "left", n.left), h(g, "width", n.width), h(g, "height", n.height), h(g, "opacity", "0.8"), h(g, "position", Oe ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", ct / parseInt(g.style.width) * 100 + "% " + ht / parseInt(g.style.height) * 100 + "%");
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
|
-
_onDragStart: function(e,
|
|
747
|
+
_onDragStart: function(e, n) {
|
|
748
748
|
var o = this, i = e.dataTransfer, r = o.options;
|
|
749
749
|
if (P("dragStart", this, {
|
|
750
750
|
evt: e
|
|
@@ -752,31 +752,31 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
752
752
|
this._onDrop();
|
|
753
753
|
return;
|
|
754
754
|
}
|
|
755
|
-
P("setupClone", this), p.eventCanceled || (_ = wt(d), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), M(_, this.options.chosenClass, !1), p.clone = _), o.cloneId =
|
|
755
|
+
P("setupClone", this), p.eventCanceled || (_ = wt(d), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), M(_, this.options.chosenClass, !1), p.clone = _), o.cloneId = xe(function() {
|
|
756
756
|
P("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || D.insertBefore(_, d), o._hideClone(), A({
|
|
757
757
|
sortable: o,
|
|
758
758
|
name: "clone"
|
|
759
759
|
}));
|
|
760
|
-
}), !
|
|
760
|
+
}), !n && M(d, r.dragClass, !0), n ? (Xe = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (b(document, "mouseup", o._onDrop), b(document, "touchend", o._onDrop), b(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, d)), y(document, "drop", o), h(d, "transform", "translateZ(0)")), de = !0, o._dragStartId = xe(o._dragStarted.bind(o, n, e)), y(document, "selectstart", o), me = !0, Qe && h(document.body, "user-select", "none");
|
|
761
761
|
},
|
|
762
762
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
763
763
|
_onDragOver: function(e) {
|
|
764
|
-
var
|
|
764
|
+
var n = this.el, o = e.target, i, r, a, l = this.options, s = l.group, u = p.active, f = Ce === s, c = l.sort, m = C || u, w, v = this, E = !1;
|
|
765
765
|
if (Ke) return;
|
|
766
766
|
function R(pe, Ot) {
|
|
767
767
|
P(pe, v, ee({
|
|
768
768
|
evt: e,
|
|
769
|
-
isOwner:
|
|
769
|
+
isOwner: f,
|
|
770
770
|
axis: w ? "vertical" : "horizontal",
|
|
771
771
|
revert: a,
|
|
772
772
|
dragRect: i,
|
|
773
773
|
targetRect: r,
|
|
774
|
-
canSort:
|
|
774
|
+
canSort: c,
|
|
775
775
|
fromSortable: m,
|
|
776
776
|
target: o,
|
|
777
|
-
completed:
|
|
777
|
+
completed: N,
|
|
778
778
|
onMove: function(rt, At) {
|
|
779
|
-
return je(D,
|
|
779
|
+
return je(D, n, d, i, rt, I(rt), e, At);
|
|
780
780
|
},
|
|
781
781
|
changed: B
|
|
782
782
|
}, Ot));
|
|
@@ -784,40 +784,40 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
784
784
|
function U() {
|
|
785
785
|
R("dragOverAnimationCapture"), v.captureAnimationState(), v !== m && m.captureAnimationState();
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function N(pe) {
|
|
788
788
|
return R("dragOverCompleted", {
|
|
789
789
|
insertion: pe
|
|
790
|
-
}), pe && (
|
|
790
|
+
}), pe && (f ? u._hideClone() : u._showClone(v), v !== m && (M(d, C ? C.options.ghostClass : u.options.ghostClass, !1), M(d, l.ghostClass, !0)), C !== v && v !== p.active ? C = v : v === p.active && C && (C = null), m === v && (v._ignoreWhileAnimating = o), v.animateAll(function() {
|
|
791
791
|
R("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
792
|
-
}), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === d && !d.animated || o ===
|
|
792
|
+
}), v !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === d && !d.animated || o === n && !o.animated) && (ue = null), !l.dragoverBubble && !e.rootEl && o !== document && (d.parentNode[k]._isOutsideThisEl(e.target), !pe && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
793
793
|
}
|
|
794
794
|
function B() {
|
|
795
795
|
F = X(d), Q = X(d, l.draggable), A({
|
|
796
796
|
sortable: v,
|
|
797
797
|
name: "change",
|
|
798
|
-
toEl:
|
|
798
|
+
toEl: n,
|
|
799
799
|
newIndex: F,
|
|
800
800
|
newDraggableIndex: Q,
|
|
801
801
|
originalEvent: e
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = H(o, l.draggable,
|
|
804
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = H(o, l.draggable, n, !0), R("dragOver"), p.eventCanceled) return E;
|
|
805
805
|
if (d.contains(e.target) || o.animated && o.animatingX && o.animatingY || v._ignoreWhileAnimating === o)
|
|
806
|
-
return
|
|
807
|
-
if (Xe = !1, u && !l.disabled && (
|
|
806
|
+
return N(!1);
|
|
807
|
+
if (Xe = !1, u && !l.disabled && (f ? c || (a = !D.contains(d)) : C === this || (this.lastPutMode = Ce.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
|
|
808
808
|
if (w = this._getDirection(e, o) === "vertical", i = I(d), R("dragOverValid"), p.eventCanceled) return E;
|
|
809
809
|
if (a)
|
|
810
|
-
return S = D, U(), this._hideClone(), R("revert"), p.eventCanceled || (ae ? D.insertBefore(d, ae) : D.appendChild(d)),
|
|
811
|
-
var G = nt(
|
|
810
|
+
return S = D, U(), this._hideClone(), R("revert"), p.eventCanceled || (ae ? D.insertBefore(d, ae) : D.appendChild(d)), N(!0);
|
|
811
|
+
var G = nt(n, l.draggable);
|
|
812
812
|
if (!G || pn(e, w, this) && !G.animated) {
|
|
813
813
|
if (G === d)
|
|
814
|
-
return
|
|
815
|
-
if (G &&
|
|
816
|
-
return U(),
|
|
817
|
-
} else if (o.parentNode ===
|
|
814
|
+
return N(!1);
|
|
815
|
+
if (G && n === e.target && (o = G), o && (r = I(o)), je(D, n, d, i, o, r, e, !!o) !== !1)
|
|
816
|
+
return U(), n.appendChild(d), S = n, B(), N(!0);
|
|
817
|
+
} else if (o.parentNode === n) {
|
|
818
818
|
r = I(o);
|
|
819
|
-
var L = 0, te, he = d.parentNode !==
|
|
820
|
-
ue !== o && (te = r[
|
|
819
|
+
var L = 0, te, he = d.parentNode !== n, le = !un(d.animated && d.toRect || i, o.animated && o.toRect || r, w), x = w ? "top" : "left", q = dt(o, "top", "top") || dt(d, "top", "top"), Te = q ? q.scrollTop : void 0;
|
|
820
|
+
ue !== o && (te = r[x], De = !1, Ie = !le && l.invertSwap || he), L = gn(e, o, r, w, le ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ie, ue === o);
|
|
821
821
|
var z;
|
|
822
822
|
if (L !== 0) {
|
|
823
823
|
var se = X(d);
|
|
@@ -826,16 +826,16 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
826
826
|
while (z && (h(z, "display") === "none" || z === g));
|
|
827
827
|
}
|
|
828
828
|
if (L === 0 || z === o)
|
|
829
|
-
return
|
|
829
|
+
return N(!1);
|
|
830
830
|
ue = o, we = L;
|
|
831
831
|
var ne = o.nextElementSibling, Z = !1;
|
|
832
832
|
Z = L === 1;
|
|
833
|
-
var oe = je(D,
|
|
833
|
+
var oe = je(D, n, d, i, o, r, e, Z);
|
|
834
834
|
if (oe !== !1)
|
|
835
|
-
return (oe === 1 || oe === -1) && (Z = oe === 1), Ke = !0, setTimeout(hn, 30), U(), Z && !ne ?
|
|
835
|
+
return (oe === 1 || oe === -1) && (Z = oe === 1), Ke = !0, setTimeout(hn, 30), U(), Z && !ne ? n.appendChild(d) : o.parentNode.insertBefore(d, Z ? ne : o), q && Et(q, 0, Te - q.scrollTop), S = d.parentNode, te !== void 0 && !Ie && (Ne = Math.abs(te - I(o)[x])), B(), N(!0);
|
|
836
836
|
}
|
|
837
|
-
if (
|
|
838
|
-
return
|
|
837
|
+
if (n.contains(d))
|
|
838
|
+
return N(!1);
|
|
839
839
|
}
|
|
840
840
|
return !1;
|
|
841
841
|
},
|
|
@@ -848,14 +848,14 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
848
848
|
b(e, "mouseup", this._onDrop), b(e, "touchend", this._onDrop), b(e, "pointerup", this._onDrop), b(e, "touchcancel", this._onDrop), b(document, "selectstart", this);
|
|
849
849
|
},
|
|
850
850
|
_onDrop: function(e) {
|
|
851
|
-
var
|
|
851
|
+
var n = this.el, o = this.options;
|
|
852
852
|
if (F = X(d), Q = X(d, o.draggable), P("drop", this, {
|
|
853
853
|
evt: e
|
|
854
854
|
}), S = d && d.parentNode, F = X(d), Q = X(d, o.draggable), p.eventCanceled) {
|
|
855
855
|
this._nulling();
|
|
856
856
|
return;
|
|
857
857
|
}
|
|
858
|
-
de = !1, Ie = !1, De = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Je(this.cloneId), Je(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(
|
|
858
|
+
de = !1, Ie = !1, De = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Je(this.cloneId), Je(this._dragStartId), this.nativeDraggable && (b(document, "drop", this), b(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Qe && h(document.body, "user-select", ""), h(d, "transform", ""), e && (me && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (D === S || C && C.lastPutMode !== "clone") && _ && _.parentNode && _.parentNode.removeChild(_), d && (this.nativeDraggable && b(d, "dragend", this), $e(d), d.style["will-change"] = "", me && !de && M(d, C ? C.options.ghostClass : this.options.ghostClass, !1), M(d, this.options.chosenClass, !1), A({
|
|
859
859
|
sortable: this,
|
|
860
860
|
name: "unchoose",
|
|
861
861
|
toEl: S,
|
|
@@ -926,8 +926,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
926
926
|
* @returns {String[]}
|
|
927
927
|
*/
|
|
928
928
|
toArray: function() {
|
|
929
|
-
for (var e = [],
|
|
930
|
-
|
|
929
|
+
for (var e = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
|
|
930
|
+
n = o[i], H(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || vn(n));
|
|
931
931
|
return e;
|
|
932
932
|
},
|
|
933
933
|
/**
|
|
@@ -935,12 +935,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
935
935
|
* @param {String[]} order order of the items
|
|
936
936
|
*/
|
|
937
937
|
sort: function(e) {
|
|
938
|
-
var
|
|
938
|
+
var n = {}, o = this.el;
|
|
939
939
|
this.toArray().forEach(function(i, r) {
|
|
940
940
|
var a = o.children[r];
|
|
941
|
-
H(a, this.options.draggable, o, !1) && (
|
|
941
|
+
H(a, this.options.draggable, o, !1) && (n[i] = a);
|
|
942
942
|
}, this), e.forEach(function(i) {
|
|
943
|
-
|
|
943
|
+
n[i] && (o.removeChild(n[i]), o.appendChild(n[i]));
|
|
944
944
|
});
|
|
945
945
|
},
|
|
946
946
|
/**
|
|
@@ -956,8 +956,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
956
956
|
* @param {String} [selector] default: `options.draggable`
|
|
957
957
|
* @returns {HTMLElement|null}
|
|
958
958
|
*/
|
|
959
|
-
closest: function(e,
|
|
960
|
-
return H(e,
|
|
959
|
+
closest: function(e, n) {
|
|
960
|
+
return H(e, n || this.options.draggable, this.el, !1);
|
|
961
961
|
},
|
|
962
962
|
/**
|
|
963
963
|
* Set/get option
|
|
@@ -965,12 +965,12 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
965
965
|
* @param {*} [value]
|
|
966
966
|
* @returns {*}
|
|
967
967
|
*/
|
|
968
|
-
option: function(e,
|
|
968
|
+
option: function(e, n) {
|
|
969
969
|
var o = this.options;
|
|
970
|
-
if (
|
|
970
|
+
if (n === void 0)
|
|
971
971
|
return o[e];
|
|
972
|
-
var i = Se.modifyOption(this, e,
|
|
973
|
-
typeof i < "u" ? o[e] = i : o[e] =
|
|
972
|
+
var i = Se.modifyOption(this, e, n);
|
|
973
|
+
typeof i < "u" ? o[e] = i : o[e] = n, e === "group" && St(o);
|
|
974
974
|
},
|
|
975
975
|
/**
|
|
976
976
|
* Destroy
|
|
@@ -978,8 +978,8 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
978
978
|
destroy: function() {
|
|
979
979
|
P("destroy", this);
|
|
980
980
|
var e = this.el;
|
|
981
|
-
e[k] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(
|
|
982
|
-
|
|
981
|
+
e[k] = null, b(e, "mousedown", this._onTapStart), b(e, "touchstart", this._onTapStart), b(e, "pointerdown", this._onTapStart), this.nativeDraggable && (b(e, "dragover", this), b(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(n) {
|
|
982
|
+
n.removeAttribute("draggable");
|
|
983
983
|
}), this._onDrop(), this._disableDelayedDragEvents(), Re.splice(Re.indexOf(this.el), 1), this.el = e = null;
|
|
984
984
|
},
|
|
985
985
|
_hideClone: function() {
|
|
@@ -999,70 +999,70 @@ p.prototype = /** @lends Sortable.prototype */
|
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
1001
|
};
|
|
1002
|
-
function cn(
|
|
1003
|
-
|
|
1002
|
+
function cn(t) {
|
|
1003
|
+
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1004
1004
|
}
|
|
1005
|
-
function je(
|
|
1006
|
-
var s, u =
|
|
1005
|
+
function je(t, e, n, o, i, r, a, l) {
|
|
1006
|
+
var s, u = t[k], f = u.options.onMove, c;
|
|
1007
1007
|
return window.CustomEvent && !$ && !_e ? s = new CustomEvent("move", {
|
|
1008
1008
|
bubbles: !0,
|
|
1009
1009
|
cancelable: !0
|
|
1010
|
-
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from =
|
|
1010
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = n, s.draggedRect = o, s.related = i || e, s.relatedRect = r || I(e), s.willInsertAfter = l, s.originalEvent = a, t.dispatchEvent(s), f && (c = f.call(u, s, a)), c;
|
|
1011
1011
|
}
|
|
1012
|
-
function $e(
|
|
1013
|
-
|
|
1012
|
+
function $e(t) {
|
|
1013
|
+
t.draggable = !1;
|
|
1014
1014
|
}
|
|
1015
1015
|
function hn() {
|
|
1016
1016
|
Ke = !1;
|
|
1017
1017
|
}
|
|
1018
|
-
function pn(
|
|
1019
|
-
var o = I(nt(
|
|
1020
|
-
return e ?
|
|
1018
|
+
function pn(t, e, n) {
|
|
1019
|
+
var o = I(nt(n.el, n.options.draggable)), i = 10;
|
|
1020
|
+
return e ? t.clientX > o.right + i || 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 + i;
|
|
1021
1021
|
}
|
|
1022
|
-
function gn(
|
|
1023
|
-
var s = o ?
|
|
1022
|
+
function gn(t, e, n, o, i, r, a, l) {
|
|
1023
|
+
var s = o ? t.clientY : t.clientX, u = o ? n.height : n.width, f = o ? n.top : n.left, c = o ? n.bottom : n.right, m = !1;
|
|
1024
1024
|
if (!a) {
|
|
1025
|
-
if (l &&
|
|
1026
|
-
if (!De && (we === 1 ? s >
|
|
1025
|
+
if (l && Ne < u * i) {
|
|
1026
|
+
if (!De && (we === 1 ? s > f + u * r / 2 : s < c - u * r / 2) && (De = !0), De)
|
|
1027
1027
|
m = !0;
|
|
1028
|
-
else if (we === 1 ? s <
|
|
1028
|
+
else if (we === 1 ? s < f + Ne : s > c - Ne)
|
|
1029
1029
|
return -we;
|
|
1030
|
-
} else if (s >
|
|
1030
|
+
} else if (s > f + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
|
|
1031
1031
|
return mn(e);
|
|
1032
1032
|
}
|
|
1033
|
-
return m = m || a, m && (s <
|
|
1033
|
+
return m = m || a, m && (s < f + u * r / 2 || s > c - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
|
|
1034
1034
|
}
|
|
1035
|
-
function mn(
|
|
1036
|
-
return X(d) < X(
|
|
1035
|
+
function mn(t) {
|
|
1036
|
+
return X(d) < X(t) ? 1 : -1;
|
|
1037
1037
|
}
|
|
1038
|
-
function vn(
|
|
1039
|
-
for (var e =
|
|
1040
|
-
o += e.charCodeAt(
|
|
1038
|
+
function vn(t) {
|
|
1039
|
+
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
1040
|
+
o += e.charCodeAt(n);
|
|
1041
1041
|
return o.toString(36);
|
|
1042
1042
|
}
|
|
1043
|
-
function bn(
|
|
1043
|
+
function bn(t) {
|
|
1044
1044
|
Ye.length = 0;
|
|
1045
|
-
for (var e =
|
|
1046
|
-
var o = e[
|
|
1045
|
+
for (var e = t.getElementsByTagName("input"), n = e.length; n--; ) {
|
|
1046
|
+
var o = e[n];
|
|
1047
1047
|
o.checked && Ye.push(o);
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return setTimeout(
|
|
1050
|
+
function xe(t) {
|
|
1051
|
+
return setTimeout(t, 0);
|
|
1052
1052
|
}
|
|
1053
|
-
function Je(
|
|
1054
|
-
return clearTimeout(
|
|
1053
|
+
function Je(t) {
|
|
1054
|
+
return clearTimeout(t);
|
|
1055
1055
|
}
|
|
1056
|
-
Le && y(document, "touchmove", function(
|
|
1057
|
-
(p.active || de) &&
|
|
1056
|
+
Le && y(document, "touchmove", function(t) {
|
|
1057
|
+
(p.active || de) && t.cancelable && t.preventDefault();
|
|
1058
1058
|
});
|
|
1059
1059
|
p.utils = {
|
|
1060
1060
|
on: y,
|
|
1061
1061
|
off: b,
|
|
1062
1062
|
css: h,
|
|
1063
1063
|
find: bt,
|
|
1064
|
-
is: function(e,
|
|
1065
|
-
return !!H(e,
|
|
1064
|
+
is: function(e, n) {
|
|
1065
|
+
return !!H(e, n, e, !1);
|
|
1066
1066
|
},
|
|
1067
1067
|
extend: tn,
|
|
1068
1068
|
throttle: yt,
|
|
@@ -1070,30 +1070,30 @@ p.utils = {
|
|
|
1070
1070
|
toggleClass: M,
|
|
1071
1071
|
clone: wt,
|
|
1072
1072
|
index: X,
|
|
1073
|
-
nextTick:
|
|
1073
|
+
nextTick: xe,
|
|
1074
1074
|
cancelNextTick: Je,
|
|
1075
1075
|
detectDirection: _t,
|
|
1076
1076
|
getChild: ke
|
|
1077
1077
|
};
|
|
1078
|
-
p.get = function(
|
|
1079
|
-
return
|
|
1078
|
+
p.get = function(t) {
|
|
1079
|
+
return t[k];
|
|
1080
1080
|
};
|
|
1081
1081
|
p.mount = function() {
|
|
1082
|
-
for (var
|
|
1083
|
-
e[
|
|
1082
|
+
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
1083
|
+
e[n] = arguments[n];
|
|
1084
1084
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(o) {
|
|
1085
1085
|
if (!o.prototype || !o.prototype.constructor)
|
|
1086
1086
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1087
1087
|
o.utils && (p.utils = ee({}, p.utils, o.utils)), Se.mount(o);
|
|
1088
1088
|
});
|
|
1089
1089
|
};
|
|
1090
|
-
p.create = function(
|
|
1091
|
-
return new p(
|
|
1090
|
+
p.create = function(t, e) {
|
|
1091
|
+
return new p(t, e);
|
|
1092
1092
|
};
|
|
1093
1093
|
p.version = Qt;
|
|
1094
1094
|
var T = [], ve, et, tt = !1, Ue, qe, Be, be;
|
|
1095
1095
|
function yn() {
|
|
1096
|
-
function
|
|
1096
|
+
function t() {
|
|
1097
1097
|
this.defaults = {
|
|
1098
1098
|
scroll: !0,
|
|
1099
1099
|
scrollSensitivity: 30,
|
|
@@ -1103,13 +1103,13 @@ function yn() {
|
|
|
1103
1103
|
for (var e in this)
|
|
1104
1104
|
e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
|
|
1105
1105
|
}
|
|
1106
|
-
return
|
|
1107
|
-
dragStarted: function(
|
|
1108
|
-
var o =
|
|
1106
|
+
return t.prototype = {
|
|
1107
|
+
dragStarted: function(n) {
|
|
1108
|
+
var o = n.originalEvent;
|
|
1109
1109
|
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);
|
|
1110
1110
|
},
|
|
1111
|
-
dragOverCompleted: function(
|
|
1112
|
-
var o =
|
|
1111
|
+
dragOverCompleted: function(n) {
|
|
1112
|
+
var o = n.originalEvent;
|
|
1113
1113
|
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1114
1114
|
},
|
|
1115
1115
|
drop: function() {
|
|
@@ -1118,68 +1118,68 @@ function yn() {
|
|
|
1118
1118
|
nulling: function() {
|
|
1119
1119
|
Be = et = ve = tt = be = Ue = qe = null, T.length = 0;
|
|
1120
1120
|
},
|
|
1121
|
-
_handleFallbackAutoScroll: function(
|
|
1122
|
-
this._handleAutoScroll(
|
|
1121
|
+
_handleFallbackAutoScroll: function(n) {
|
|
1122
|
+
this._handleAutoScroll(n, !0);
|
|
1123
1123
|
},
|
|
1124
|
-
_handleAutoScroll: function(
|
|
1125
|
-
var i = this, r = (
|
|
1126
|
-
if (Be =
|
|
1127
|
-
Ze(
|
|
1124
|
+
_handleAutoScroll: function(n, o) {
|
|
1125
|
+
var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
|
|
1126
|
+
if (Be = n, o || _e || $ || Qe) {
|
|
1127
|
+
Ze(n, this.options, l, o);
|
|
1128
1128
|
var s = J(l, !0);
|
|
1129
1129
|
tt && (!be || r !== Ue || a !== qe) && (be && gt(), be = setInterval(function() {
|
|
1130
1130
|
var u = J(document.elementFromPoint(r, a), !0);
|
|
1131
|
-
u !== s && (s = u, Me()), Ze(
|
|
1131
|
+
u !== s && (s = u, Me()), Ze(n, i.options, u, o);
|
|
1132
1132
|
}, 10), Ue = r, qe = a);
|
|
1133
1133
|
} else {
|
|
1134
1134
|
if (!this.options.bubbleScroll || J(l, !0) === W()) {
|
|
1135
1135
|
Me();
|
|
1136
1136
|
return;
|
|
1137
1137
|
}
|
|
1138
|
-
Ze(
|
|
1138
|
+
Ze(n, this.options, J(l, !1), !1);
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
|
1141
|
-
}, j(
|
|
1141
|
+
}, j(t, {
|
|
1142
1142
|
pluginName: "scroll",
|
|
1143
1143
|
initializeByDefault: !0
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
1146
|
function Me() {
|
|
1147
|
-
T.forEach(function(
|
|
1148
|
-
clearInterval(
|
|
1147
|
+
T.forEach(function(t) {
|
|
1148
|
+
clearInterval(t.pid);
|
|
1149
1149
|
}), T = [];
|
|
1150
1150
|
}
|
|
1151
1151
|
function gt() {
|
|
1152
1152
|
clearInterval(be);
|
|
1153
1153
|
}
|
|
1154
|
-
var Ze = yt(function(
|
|
1154
|
+
var Ze = yt(function(t, e, n, o) {
|
|
1155
1155
|
if (e.scroll) {
|
|
1156
|
-
var i = (
|
|
1157
|
-
et !==
|
|
1158
|
-
var
|
|
1156
|
+
var i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = W(), u = !1, f;
|
|
1157
|
+
et !== n && (et = n, Me(), ve = e.scroll, f = e.scrollFn, ve === !0 && (ve = J(n, !0)));
|
|
1158
|
+
var c = 0, m = ve;
|
|
1159
1159
|
do {
|
|
1160
|
-
var w = m, v = I(w), E = v.top, R = v.bottom, U = v.left,
|
|
1161
|
-
w === s ? (L = B < he && (
|
|
1162
|
-
var z = L && (Math.abs(
|
|
1163
|
-
if (!T[
|
|
1164
|
-
for (var ne = 0; ne <=
|
|
1160
|
+
var w = m, v = I(w), E = v.top, R = v.bottom, U = v.left, N = v.right, B = v.width, G = v.height, L = void 0, te = void 0, he = w.scrollWidth, le = w.scrollHeight, x = h(w), q = w.scrollLeft, Te = w.scrollTop;
|
|
1161
|
+
w === s ? (L = B < he && (x.overflowX === "auto" || x.overflowX === "scroll" || x.overflowX === "visible"), te = G < le && (x.overflowY === "auto" || x.overflowY === "scroll" || x.overflowY === "visible")) : (L = B < he && (x.overflowX === "auto" || x.overflowX === "scroll"), te = G < le && (x.overflowY === "auto" || x.overflowY === "scroll"));
|
|
1162
|
+
var z = L && (Math.abs(N - i) <= a && q + B < he) - (Math.abs(U - i) <= a && !!q), se = te && (Math.abs(R - r) <= a && Te + G < le) - (Math.abs(E - r) <= a && !!Te);
|
|
1163
|
+
if (!T[c])
|
|
1164
|
+
for (var ne = 0; ne <= c; ne++)
|
|
1165
1165
|
T[ne] || (T[ne] = {});
|
|
1166
|
-
(T[
|
|
1166
|
+
(T[c].vx != z || T[c].vy != se || T[c].el !== w) && (T[c].el = w, T[c].vx = z, T[c].vy = se, clearInterval(T[c].pid), (z != 0 || se != 0) && (u = !0, T[c].pid = setInterval((function() {
|
|
1167
1167
|
o && this.layer === 0 && p.active._onTouchMove(Be);
|
|
1168
1168
|
var Z = T[this.layer].vy ? T[this.layer].vy * l : 0, oe = T[this.layer].vx ? T[this.layer].vx * l : 0;
|
|
1169
|
-
typeof
|
|
1169
|
+
typeof f == "function" && f.call(p.dragged.parentNode[k], oe, Z, t, Be, T[this.layer].el) !== "continue" || Et(T[this.layer].el, oe, Z);
|
|
1170
1170
|
}).bind({
|
|
1171
|
-
layer:
|
|
1172
|
-
}), 24))),
|
|
1171
|
+
layer: c
|
|
1172
|
+
}), 24))), c++;
|
|
1173
1173
|
} while (e.bubbleScroll && m !== s && (m = J(m, !1)));
|
|
1174
1174
|
tt = u;
|
|
1175
1175
|
}
|
|
1176
1176
|
}, 30), It = function(e) {
|
|
1177
|
-
var
|
|
1178
|
-
if (
|
|
1177
|
+
var n = e.originalEvent, o = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1178
|
+
if (n) {
|
|
1179
1179
|
var u = o || r;
|
|
1180
1180
|
l();
|
|
1181
|
-
var
|
|
1182
|
-
s(), u && !u.el.contains(
|
|
1181
|
+
var f = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, c = document.elementFromPoint(f.clientX, f.clientY);
|
|
1182
|
+
s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
|
|
1183
1183
|
dragEl: i,
|
|
1184
1184
|
putSortable: o
|
|
1185
1185
|
}));
|
|
@@ -1190,14 +1190,14 @@ function ot() {
|
|
|
1190
1190
|
ot.prototype = {
|
|
1191
1191
|
startIndex: null,
|
|
1192
1192
|
dragStart: function(e) {
|
|
1193
|
-
var
|
|
1194
|
-
this.startIndex =
|
|
1193
|
+
var n = e.oldDraggableIndex;
|
|
1194
|
+
this.startIndex = n;
|
|
1195
1195
|
},
|
|
1196
1196
|
onSpill: function(e) {
|
|
1197
|
-
var
|
|
1197
|
+
var n = e.dragEl, o = e.putSortable;
|
|
1198
1198
|
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1199
1199
|
var i = ke(this.sortable.el, this.startIndex, this.options);
|
|
1200
|
-
i ? this.sortable.el.insertBefore(
|
|
1200
|
+
i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1201
1201
|
},
|
|
1202
1202
|
drop: It
|
|
1203
1203
|
};
|
|
@@ -1208,8 +1208,8 @@ function it() {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
it.prototype = {
|
|
1210
1210
|
onSpill: function(e) {
|
|
1211
|
-
var
|
|
1212
|
-
i.captureAnimationState(),
|
|
1211
|
+
var n = e.dragEl, o = e.putSortable, i = o || this.sortable;
|
|
1212
|
+
i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
|
|
1213
1213
|
},
|
|
1214
1214
|
drop: It
|
|
1215
1215
|
};
|
|
@@ -1218,43 +1218,51 @@ j(it, {
|
|
|
1218
1218
|
});
|
|
1219
1219
|
p.mount(new yn());
|
|
1220
1220
|
p.mount(it, ot);
|
|
1221
|
-
function En(
|
|
1221
|
+
function En(t, e, n = {}) {
|
|
1222
1222
|
let o;
|
|
1223
|
-
const { document: i = Mt, ...r } =
|
|
1224
|
-
onUpdate: (
|
|
1225
|
-
|
|
1223
|
+
const { document: i = Mt, ...r } = n, a = {
|
|
1224
|
+
onUpdate: (f) => {
|
|
1225
|
+
_n(e, f.oldIndex, f.newIndex, f);
|
|
1226
1226
|
}
|
|
1227
1227
|
}, l = () => {
|
|
1228
|
-
const
|
|
1229
|
-
!
|
|
1228
|
+
const f = typeof t == "string" ? i == null ? void 0 : i.querySelector(t) : Nt(t);
|
|
1229
|
+
!f || o !== void 0 || (o = new p(f, { ...a, ...r }));
|
|
1230
1230
|
}, s = () => {
|
|
1231
1231
|
o == null || o.destroy(), o = void 0;
|
|
1232
|
-
}, u = (
|
|
1233
|
-
if (
|
|
1234
|
-
o == null || o.option(
|
|
1232
|
+
}, u = (f, c) => {
|
|
1233
|
+
if (c !== void 0)
|
|
1234
|
+
o == null || o.option(f, c);
|
|
1235
1235
|
else
|
|
1236
|
-
return o == null ? void 0 : o.option(
|
|
1236
|
+
return o == null ? void 0 : o.option(f);
|
|
1237
1237
|
};
|
|
1238
|
-
return Pt(l),
|
|
1238
|
+
return Pt(l), xt(s), {
|
|
1239
1239
|
stop: s,
|
|
1240
1240
|
start: l,
|
|
1241
1241
|
option: u
|
|
1242
1242
|
};
|
|
1243
1243
|
}
|
|
1244
|
-
function wn(
|
|
1245
|
-
const o =
|
|
1246
|
-
|
|
1247
|
-
|
|
1244
|
+
function wn(t, e, n) {
|
|
1245
|
+
const o = t.children[n];
|
|
1246
|
+
t.insertBefore(e, o);
|
|
1247
|
+
}
|
|
1248
|
+
function Dn(t) {
|
|
1249
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
1250
|
+
}
|
|
1251
|
+
function _n(t, e, n, o = null) {
|
|
1252
|
+
o != null && (Dn(o.item), wn(o.from, o.item, e));
|
|
1253
|
+
const i = Ft(t), r = i ? [...at(t)] : at(t);
|
|
1254
|
+
if (n >= 0 && n < r.length) {
|
|
1255
|
+
const a = r.splice(e, 1)[0];
|
|
1248
1256
|
kt(() => {
|
|
1249
|
-
|
|
1257
|
+
r.splice(n, 0, a), i && (t.value = r);
|
|
1250
1258
|
});
|
|
1251
1259
|
}
|
|
1252
1260
|
}
|
|
1253
|
-
function
|
|
1254
|
-
const o =
|
|
1255
|
-
return o.splice(
|
|
1261
|
+
function Sn(t, e, n) {
|
|
1262
|
+
const o = t.slice(), i = o.splice(e, 1)[0];
|
|
1263
|
+
return o.splice(n, 0, i), o;
|
|
1256
1264
|
}
|
|
1257
|
-
const
|
|
1265
|
+
const In = /* @__PURE__ */ Xt({
|
|
1258
1266
|
__name: "Sortable",
|
|
1259
1267
|
props: {
|
|
1260
1268
|
tag: { default: "div" },
|
|
@@ -1262,24 +1270,24 @@ const Tn = /* @__PURE__ */ Xt({
|
|
|
1262
1270
|
modelValue: { default: null },
|
|
1263
1271
|
list: { default: () => [] },
|
|
1264
1272
|
options: { default: null },
|
|
1265
|
-
clone: { type: Function, default: (
|
|
1273
|
+
clone: { type: Function, default: (t) => t }
|
|
1266
1274
|
},
|
|
1267
1275
|
emits: ["update:modelValue"],
|
|
1268
|
-
setup(
|
|
1269
|
-
const
|
|
1276
|
+
setup(t, { emit: e }) {
|
|
1277
|
+
const n = e, o = Rt(() => t.modelValue || t.list), i = Yt("container");
|
|
1270
1278
|
return En(i, o, {
|
|
1271
1279
|
animation: 250,
|
|
1272
1280
|
onChoose(r) {
|
|
1273
1281
|
const { item: a } = r, l = r.oldIndex;
|
|
1274
|
-
a._data =
|
|
1282
|
+
a._data = t.clone(o.value[l]);
|
|
1275
1283
|
},
|
|
1276
|
-
...
|
|
1284
|
+
...t.modelValue && {
|
|
1277
1285
|
onUpdate(r) {
|
|
1278
|
-
const { oldIndex: a, newIndex: l } = r, s =
|
|
1279
|
-
|
|
1286
|
+
const { oldIndex: a, newIndex: l } = r, s = Sn(t.modelValue, a, l);
|
|
1287
|
+
n("update:modelValue", s);
|
|
1280
1288
|
}
|
|
1281
1289
|
},
|
|
1282
|
-
...
|
|
1290
|
+
...t.options
|
|
1283
1291
|
}), (r, a) => (lt(), Bt(jt(r.tag), {
|
|
1284
1292
|
ref_key: "container",
|
|
1285
1293
|
ref: i,
|
|
@@ -1298,6 +1306,6 @@ const Tn = /* @__PURE__ */ Xt({
|
|
|
1298
1306
|
}
|
|
1299
1307
|
});
|
|
1300
1308
|
export {
|
|
1301
|
-
|
|
1302
|
-
|
|
1309
|
+
In as _,
|
|
1310
|
+
Sn as m
|
|
1303
1311
|
};
|