@templatical/editor 0.11.1 → 0.12.1
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/{AiChatSidebar-Cm5RM5Qh.js → AiChatSidebar-CXH7l1Ar.js} +13 -13
- package/dist/{AiFeatureMenu-DBWcfcWl.js → AiFeatureMenu-BKbUUc1D.js} +10 -10
- package/dist/{BlockIssueBadge-BF4sdsr4.js → BlockIssueBadge-C-EPqWsh.js} +5 -5
- package/dist/{CloudEditor-C6cSXtcP.js → CloudEditor-CB16QzKM.js} +60 -60
- package/dist/{CollaboratorBar-B8-AQfG2.js → CollaboratorBar-ACUA7lBJ.js} +4 -4
- package/dist/{CommentsSidebar-BQJzyCc6.js → CommentsSidebar-CpRLN40c.js} +19 -19
- package/dist/{CountdownBlock-D_AsF4F3.js → CountdownBlock-C-6o19qS.js} +3 -3
- package/dist/{CountdownToolbar-BGTkFky9.js → CountdownToolbar-Dol7Q0Pv.js} +3 -3
- package/dist/{DesignReferenceSidebar-O3epZMXD.js → DesignReferenceSidebar-0dTsBW08.js} +9 -9
- package/dist/{IssuesPanel-CPBbR8yp.js → IssuesPanel-I0z6k6-H.js} +11 -11
- package/dist/{LoadingTrack-e67FA0NP.js → LoadingTrack-C7mGWPHS.js} +1 -1
- package/dist/{ModuleBrowserModal-B_tLzFAk.js → ModuleBrowserModal-Bz9hSjMS.js} +10 -10
- package/dist/{ModulePreviewCanvas-B7pNpAHM.js → ModulePreviewCanvas-CpaumPMS.js} +23 -23
- package/dist/{NumberWithSuffix-eI9pPDWT.js → NumberWithSuffix-Bp40ik4l.js} +101 -79
- package/dist/{ParagraphEditor-DmA9K7dx.js → ParagraphEditor-BqRFV_Y-.js} +47 -47
- package/dist/{RichTextEditorContent-Dvn4woIt.js → RichTextEditorContent-Q5altsx1.js} +6 -6
- package/dist/{SaveModuleDialog-B8ypoxdj.js → SaveModuleDialog-DmfvH5D0.js} +7 -7
- package/dist/{SnapshotHistory-BTHd7CVP.js → SnapshotHistory-C052o-8U.js} +13 -13
- package/dist/{TemplateScoringPanel-Bt5Rsgen.js → TemplateScoringPanel-CUs8XmIi.js} +24 -24
- package/dist/{TestEmailModal-CBIFMzK6.js → TestEmailModal-BIIxRWUt.js} +5 -5
- package/dist/{TitleEditor-C9jDA5lI.js → TitleEditor-FMh54Cx5.js} +18 -18
- package/dist/{TplModal-ND4fiqOS.js → TplModal-utMtXzSO.js} +4 -4
- package/dist/{blockTypeIcons-Bn-_Smlm.js → blockTypeIcons-C6UGDmrC.js} +5 -5
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js → AiFeatureMenu-4NhCFeTh.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BuSO0dXP.js.map → AiFeatureMenu-4NhCFeTh.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js → BlockIssueBadge-BYKThwhE.js} +6 -6
- package/dist/cdn/chunks/{BlockIssueBadge-sv3IZ1Pb.js.map → BlockIssueBadge-BYKThwhE.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js → CloudEditor-DSeihOan.js} +162 -162
- package/dist/cdn/chunks/{CloudEditor-hxoqsTsq.js.map → CloudEditor-DSeihOan.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js → CollaboratorBar-Dn5gXNDt.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-DFqsaNX0.js.map → CollaboratorBar-Dn5gXNDt.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js → CountdownBlock-hYoJdVOt.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-PpH3fxAX.js.map → CountdownBlock-hYoJdVOt.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js → CountdownToolbar-BQn0Kj0X.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-CZN92Bhz.js.map → CountdownToolbar-BQn0Kj0X.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js → IssuesPanel-_5fEnivU.js} +11 -11
- package/dist/cdn/chunks/{IssuesPanel-wQjrnuyc.js.map → IssuesPanel-_5fEnivU.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js → ModuleBrowserModal-DtCksAeW.js} +9 -9
- package/dist/cdn/chunks/{ModuleBrowserModal-348wCgft.js.map → ModuleBrowserModal-DtCksAeW.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js → ModulePreviewCanvas-CCOvabZd.js} +33 -33
- package/dist/cdn/chunks/{ModulePreviewCanvas-Cf6DUHml.js.map → ModulePreviewCanvas-CCOvabZd.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-Deo8EOSz.js → NumberWithSuffix-cdWjAK6y.js} +140 -119
- package/dist/cdn/chunks/NumberWithSuffix-cdWjAK6y.js.map +1 -0
- package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js → ParagraphEditor-BnhnFOW1.js} +67 -67
- package/dist/cdn/chunks/{ParagraphEditor-Cbl_gBYM.js.map → ParagraphEditor-BnhnFOW1.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js → RichTextEditorContent-DV2yknp8.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-TBPzn3RC.js.map → RichTextEditorContent-DV2yknp8.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js → SaveModuleDialog-CCX5U7VA.js} +6 -6
- package/dist/cdn/chunks/{SaveModuleDialog-CxdYMutK.js.map → SaveModuleDialog-CCX5U7VA.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor--XulEf7R.js → TitleEditor-CQqklX0D.js} +13 -13
- package/dist/cdn/chunks/{TitleEditor--XulEf7R.js.map → TitleEditor-CQqklX0D.js.map} +1 -1
- package/dist/cdn/chunks/blockTypeIcons-CpGPHppB.js +22 -0
- package/dist/cdn/chunks/{blockTypeIcons-BJND4L-A.js.map → blockTypeIcons-CpGPHppB.js.map} +1 -1
- package/dist/{de-BJMLpg_p.js → cdn/chunks/de-BpseTWOA.js} +12 -2
- package/dist/cdn/chunks/de-BpseTWOA.js.map +1 -0
- package/dist/cdn/chunks/{draggable-iAb7QVJo.js → draggable-Bci-fq8y.js} +473 -465
- package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +1 -0
- package/dist/{en-DFMMw7SL.js → cdn/chunks/en-VGIQ0WNq.js} +12 -2
- package/dist/cdn/chunks/en-VGIQ0WNq.js.map +1 -0
- package/dist/cdn/chunks/{extensions-BtWoLy6E.js → extensions-Ds9GnMcd.js} +25 -25
- package/dist/cdn/chunks/{extensions-BtWoLy6E.js.map → extensions-Ds9GnMcd.js.map} +1 -1
- package/dist/cdn/chunks/{features-mO5NzwnN.js → features-DxWz_Enw.js} +1048 -1059
- package/dist/cdn/chunks/features-DxWz_Enw.js.map +1 -0
- package/dist/cdn/chunks/{icons-CuXm6XAT.js → icons-BflGUmFY.js} +146 -146
- package/dist/cdn/chunks/icons-BflGUmFY.js.map +1 -0
- package/dist/cdn/chunks/{liquid.browser-DUDc3U21.js → liquid.browser-DKKBzRQu.js} +502 -497
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BtNzYUTi.js → media-library-C479-QcE.js} +565 -565
- package/dist/cdn/chunks/{media-library-BtNzYUTi.js.map → media-library-C479-QcE.js.map} +1 -1
- package/dist/cdn/chunks/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +11 -3
- package/dist/cdn/chunks/pt-BR-zAqpLQbW.js.map +1 -0
- package/dist/cdn/chunks/{pusher-CHo5Cua0.js → pusher-BICWUP2j.js} +3 -3
- package/dist/cdn/chunks/{pusher-CHo5Cua0.js.map → pusher-BICWUP2j.js.map} +1 -1
- package/dist/cdn/chunks/{quality-YKe19zp8.js → quality-BL_pEvFP.js} +101 -101
- package/dist/cdn/chunks/{quality-YKe19zp8.js.map → quality-BL_pEvFP.js.map} +1 -1
- package/dist/cdn/chunks/readableTextColor-f8Kykfnh.js.map +1 -1
- package/dist/cdn/chunks/{renderer-BcOaxCs6.js → renderer-C0vdAODQ.js} +53 -50
- package/dist/cdn/chunks/renderer-C0vdAODQ.js.map +1 -0
- package/dist/cdn/chunks/{src-B_ZRmuit.js → src-DzvOWQ9S.js} +11 -11
- package/dist/cdn/chunks/{src-B_ZRmuit.js.map → src-DzvOWQ9S.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DDBCCJ-l.js → styles-LfeoSNRA.js} +673 -599
- package/dist/cdn/chunks/styles-LfeoSNRA.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BAwu9VcJ.js → tiptap-CwScfbsM.js} +5 -4
- package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +36 -36
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-BsNM6BDs.js → check-BRzXxFHr.js} +1 -1
- package/dist/{chevron-down-fcsZ5DU7.js → chevron-down-DmEgzmYT.js} +1 -1
- package/dist/{circle-alert-BZTbwc-B.js → circle-alert-BStvZr3O.js} +1 -1
- package/dist/{clock-B7iQRubC.js → clock-Blwp_1R6.js} +1 -1
- package/dist/{cloud-Dom4EH5Z.js → cloud-_olro76D.js} +6 -6
- package/dist/{createLucideIcon-C_fetdGM.js → createLucideIcon-CmPAC-gt.js} +3 -3
- package/dist/{cdn/chunks/de-BJMLpg_p.js → de-BpseTWOA.js} +10 -4
- package/dist/{dist-ByBVNmRN.js → dist-412xXefB.js} +1 -1
- package/dist/{dist-XdF11ZkX.js → dist-BCQZZUE9.js} +1 -1
- package/dist/{dist-CD3wbUoR.js → dist-BNEdeWub.js} +1 -1
- package/dist/dist-BctFrpeA.js +472 -0
- package/dist/{dist-eVlXvuKI.js → dist-BlG7k25W.js} +1 -1
- package/dist/{dist-BLcYl_de.js → dist-BwgjpLfr.js} +1 -1
- package/dist/{dist-Dhs3W2WW.js → dist-Cz79qrLL.js} +1 -1
- package/dist/{dist-c2sj5PQ5.js → dist-D6x1cQeh.js} +3 -3
- package/dist/{dist-cT52Hh9L.js → dist-DJ9aD8yA.js} +3 -3
- package/dist/{dist-Cwl7XXr4.js → dist-DULfKmTh.js} +3 -3
- package/dist/{dist-Dem8ODLh.js → dist-DhKTdU52.js} +3 -2
- package/dist/{dist-BOHAk4zI.js → dist-b7Ak-CuM.js} +1 -1
- package/dist/{dist-B4NkMBYc.js → dist-o73iaGqy.js} +1 -1
- package/dist/{dist-BsB4nPJD.js → dist-u0iIJH3V.js} +1 -1
- package/dist/{cdn/chunks/en-DFMMw7SL.js → en-VGIQ0WNq.js} +10 -4
- package/dist/{extensions-B2lSGCA8.js → extensions-XPlNAKIL.js} +23 -23
- package/dist/formatRelativeTime-CtUU-QZ8.js +10 -0
- package/dist/{image-up-1xrPPJYH.js → image-up-BFPbw_Zq.js} +1 -1
- package/dist/{info-ByAFxArD.js → info-B_qLEBN2.js} +1 -1
- package/dist/{keys-DsRdOmg3.js → keys-mFiJ5N0_.js} +1 -1
- package/dist/{liquid.browser--qtl1Fqy.js → liquid.browser-CVjP5Mex.js} +501 -496
- package/dist/{list-checks-CKUP4UZU.js → list-checks-CGg7JxPm.js} +1 -1
- package/dist/{loader-circle-BuxX338d.js → loader-circle-CDF8eR_Q.js} +1 -1
- package/dist/{message-circle-nLwqegRi.js → message-circle-C3cHsCJl.js} +1 -1
- package/dist/{pt-BR-C-9aWLlR.js → pt-BR-zAqpLQbW.js} +10 -2
- package/dist/{refresh-cw-DAkD6iDI.js → refresh-cw-Butml7Q4.js} +1 -1
- package/dist/{scan-line-DEELRJJ5.js → scan-line-XYEqim_E.js} +1 -1
- package/dist/{send-DCMgrNT4.js → send-k7npFJNO.js} +1 -1
- package/dist/{shield-check-BFtVr_ov.js → shield-check-CV6GbmCu.js} +1 -1
- package/dist/{sparkles-CeYIQ5RJ.js → sparkles-C965Xop4.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-DZcQGzsN.js → styles-DSm9Ijxt.js} +898 -824
- package/dist/templatical-editor.js +14 -14
- package/dist/{text-align-start-BsmIoqLS.js → text-align-start-Bxnps8fH.js} +1 -1
- package/dist/{trash-2-C2S4-CIH.js → trash-2-DpGb7fIt.js} +1 -1
- package/dist/{triangle-alert-DMdedF6W.js → triangle-alert-BKYElAwz.js} +1 -1
- package/dist/{useAliveFlag-DlVvpZxc.js → useAliveFlag-BinvbqQR.js} +1 -1
- package/dist/{useCloudI18n-BEuiZdzs.js → useCloudI18n-L3H2XvdW.js} +2 -2
- package/dist/{useEditorCore-D00QzW07.js → useEditorCore-D7dQFRkw.js} +406 -486
- package/dist/{useI18n-DNspT6uw.js → useI18n-CTs_bP9d.js} +2 -2
- package/dist/{useMergeTag-abutjUud.js → useMergeTag-e3RSY-s3.js} +6 -6
- package/dist/usePopoverRoot-DVh7NY1q.js +8 -0
- package/dist/{vue.runtime.esm-bundler-mPytWZFh.js → vue.runtime.esm-bundler-B2k01iQh.js} +345 -337
- package/dist/{x-_9jw816B.js → x-CGjkjdKK.js} +1 -1
- package/package.json +10 -10
- package/dist/cdn/chunks/NumberWithSuffix-Deo8EOSz.js.map +0 -1
- package/dist/cdn/chunks/blockTypeIcons-BJND4L-A.js +0 -22
- package/dist/cdn/chunks/de-BJMLpg_p.js.map +0 -1
- package/dist/cdn/chunks/draggable-iAb7QVJo.js.map +0 -1
- package/dist/cdn/chunks/en-DFMMw7SL.js.map +0 -1
- package/dist/cdn/chunks/features-mO5NzwnN.js.map +0 -1
- package/dist/cdn/chunks/icons-CuXm6XAT.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DUDc3U21.js.map +0 -1
- package/dist/cdn/chunks/pt-BR-C-9aWLlR.js.map +0 -1
- package/dist/cdn/chunks/renderer-BcOaxCs6.js.map +0 -1
- package/dist/cdn/chunks/styles-DDBCCJ-l.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BAwu9VcJ.js.map +0 -1
- package/dist/dist-D6L_WdRL.js +0 -403
- package/dist/formatRelativeTime-CyDg5cDD.js +0 -12
- package/dist/usePopoverRoot-DG3mlvd1.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@vue+shared@3.5.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@vue+shared@3.5.39/node_modules/@vue/shared/dist/shared.esm-bundler.js
|
|
2
2
|
// @__NO_SIDE_EFFECTS__
|
|
3
3
|
function e(e) {
|
|
4
4
|
let t = /* @__PURE__ */ Object.create(null);
|
|
@@ -563,7 +563,7 @@ var gt = class {
|
|
|
563
563
|
if (!/* @__PURE__ */ Gt(n) && !/* @__PURE__ */ Wt(n) && (i = /* @__PURE__ */ P(i), n = /* @__PURE__ */ P(n)), !a && /* @__PURE__ */ F(i) && !/* @__PURE__ */ F(n)) return e || (i.value = n), !0;
|
|
564
564
|
}
|
|
565
565
|
let o = a ? Number(t) < e.length : u(e, t), s = Reflect.set(e, t, n, /* @__PURE__ */ F(e) ? e : r);
|
|
566
|
-
return e === /* @__PURE__ */ P(r) && (o ? k(n, i) && tt(e, "set", t, n, i) : tt(e, "add", t, n)), s;
|
|
566
|
+
return e === /* @__PURE__ */ P(r) && s && (o ? k(n, i) && tt(e, "set", t, n, i) : tt(e, "add", t, n)), s;
|
|
567
567
|
}
|
|
568
568
|
deleteProperty(e, t) {
|
|
569
569
|
let n = u(e, t), r = e[t], i = Reflect.deleteProperty(e, t);
|
|
@@ -947,7 +947,7 @@ function yn(e, t = Infinity, n) {
|
|
|
947
947
|
return e;
|
|
948
948
|
}
|
|
949
949
|
//#endregion
|
|
950
|
-
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.
|
|
950
|
+
//#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.39/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
|
|
951
951
|
function bn(e, t, n, r) {
|
|
952
952
|
try {
|
|
953
953
|
return r ? e(...r) : e();
|
|
@@ -1210,17 +1210,17 @@ var nr = /* @__PURE__ */ new WeakMap(), rr = /* @__PURE__ */ Symbol("_vte"), ir
|
|
|
1210
1210
|
let p = t.target = e.target, h = t.targetAnchor = e.targetAnchor, g = ar(e.props), _ = g ? n : p, b = g ? r : h;
|
|
1211
1211
|
if (o === "svg" || sr(p) ? o = "svg" : (o === "mathml" || cr(p)) && (o = "mathml"), y ? (f(e.dynamicChildren, y, _, i, a, o, s), Sa(e, t, !0)) : c || d(e, t, _, b, i, a, o, s, !1), v) g ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : dr(t, n, r, l, 1);
|
|
1212
1212
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1213
|
-
let e =
|
|
1214
|
-
e && dr(t, e, null, l, 0);
|
|
1213
|
+
let e = lr(t.props, m);
|
|
1214
|
+
e && (t.target = e, dr(t, e, null, l, 0));
|
|
1215
1215
|
} else g && dr(t, p, h, l, 1);
|
|
1216
1216
|
mr(t, v);
|
|
1217
1217
|
}
|
|
1218
1218
|
},
|
|
1219
1219
|
remove(e, t, n, { um: r, o: { remove: i } }, a) {
|
|
1220
|
-
let { shapeFlag: o, children: s, anchor: c, targetStart: l, targetAnchor: u, target: d, props: f } = e, p =
|
|
1221
|
-
if (
|
|
1220
|
+
let { shapeFlag: o, children: s, anchor: c, targetStart: l, targetAnchor: u, target: d, props: f } = e, p = ar(f), m = a || !p, h = nr.get(e);
|
|
1221
|
+
if (h && (h.flags |= 8, nr.delete(e)), d && (i(l), i(u)), a && i(c), !h && (p || d) && o & 16) for (let e = 0; e < s.length; e++) {
|
|
1222
1222
|
let i = s[e];
|
|
1223
|
-
r(i, t, n,
|
|
1223
|
+
r(i, t, n, m, !!i.dynamicChildren);
|
|
1224
1224
|
}
|
|
1225
1225
|
},
|
|
1226
1226
|
move: dr,
|
|
@@ -1454,8 +1454,14 @@ function Fr(e, n, r, a, o = !1) {
|
|
|
1454
1454
|
x(m, e.k) && (m.value = null), e.k && (_[e.k] = null);
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
if (h(p))
|
|
1458
|
-
|
|
1457
|
+
if (h(p)) {
|
|
1458
|
+
We();
|
|
1459
|
+
try {
|
|
1460
|
+
bn(p, f, 12, [l, _]);
|
|
1461
|
+
} finally {
|
|
1462
|
+
Ge();
|
|
1463
|
+
}
|
|
1464
|
+
} else {
|
|
1459
1465
|
let t = g(p), n = /* @__PURE__ */ F(p);
|
|
1460
1466
|
if (t || n) {
|
|
1461
1467
|
let i = () => {
|
|
@@ -2006,7 +2012,7 @@ function Ui(e, t, n = !1) {
|
|
|
2006
2012
|
return !a && !c ? (v(e) && r.set(e, null), null) : (d(a) ? a.forEach((e) => o[e] = null) : s(o, a), v(e) && r.set(e, o), o);
|
|
2007
2013
|
}
|
|
2008
2014
|
function Wi(e, t) {
|
|
2009
|
-
return !e || !a(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), u(e, t[0].toLowerCase() + t.slice(1)) || u(e, O(t)) || u(e, t));
|
|
2015
|
+
return !e || !a(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), u(e, t[0].toLowerCase() + t.slice(1)) || u(e, O(t)) || u(e, t));
|
|
2010
2016
|
}
|
|
2011
2017
|
function Gi(e) {
|
|
2012
2018
|
let { type: t, vnode: n, proxy: r, withProxy: i, propsOptions: [a], slots: s, attrs: c, emit: l, render: u, renderCache: d, props: f, data: p, setupState: m, ctx: h, inheritAttrs: g } = e, _ = Vn(e), v, y;
|
|
@@ -2301,7 +2307,7 @@ function va(e, i) {
|
|
|
2301
2307
|
let l = n.el = e.el, { patchFlag: u, dynamicChildren: d, dirs: f } = n;
|
|
2302
2308
|
u |= e.patchFlag & 16;
|
|
2303
2309
|
let m = e.props || t, h = n.props || t, g;
|
|
2304
|
-
if (r && ba(r, !1), (g = h.onVnodeBeforeUpdate) && no(g, r, n, e), f && Wn(n, e, r, "beforeUpdate"), r && ba(r, !0), (m.innerHTML && h.innerHTML == null || m.textContent && h.textContent == null) && p(l, ""), d ? O(e.dynamicChildren, d, l, r, i, ya(n, a), o) : s || le(e, n, l, null, r, i, ya(n, a), o, !1), u > 0) {
|
|
2310
|
+
if (r && ba(r, !1), (g = h.onVnodeBeforeUpdate) && no(g, r, n, e), f && Wn(n, e, r, "beforeUpdate"), r && ba(r, !0), d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length) && (u = 0, s = !1, d = null), (m.innerHTML && h.innerHTML == null || m.textContent && h.textContent == null) && p(l, ""), d ? O(e.dynamicChildren, d, l, r, i, ya(n, a), o) : s || le(e, n, l, null, r, i, ya(n, a), o, !1), u > 0) {
|
|
2305
2311
|
if (u & 16) ne(l, m, h, r, a);
|
|
2306
2312
|
else if (u & 2 && m.class !== h.class && c(l, "class", null, h.class, a), u & 4 && c(l, "style", m.style, h.style, a), u & 8) {
|
|
2307
2313
|
let e = n.dynamicProps;
|
|
@@ -2767,10 +2773,16 @@ function eo(e, t) {
|
|
|
2767
2773
|
let r = t._;
|
|
2768
2774
|
!r && !ea(t) ? t._ctx = L : r === 3 && L && (L.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2769
2775
|
}
|
|
2770
|
-
else h(t)
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2776
|
+
else if (h(t)) {
|
|
2777
|
+
if (r & 65) {
|
|
2778
|
+
eo(e, { default: t });
|
|
2779
|
+
return;
|
|
2780
|
+
}
|
|
2781
|
+
t = {
|
|
2782
|
+
default: t,
|
|
2783
|
+
_ctx: L
|
|
2784
|
+
}, n = 32;
|
|
2785
|
+
} else t = String(t), r & 64 ? (n = 16, t = [Ya(t)]) : n = 8;
|
|
2774
2786
|
e.children = t, e.shapeFlag |= n;
|
|
2775
2787
|
}
|
|
2776
2788
|
function to(...e) {
|
|
@@ -2972,7 +2984,7 @@ function Eo(e, t, n) {
|
|
|
2972
2984
|
La(1);
|
|
2973
2985
|
}
|
|
2974
2986
|
}
|
|
2975
|
-
var Do = "3.5.
|
|
2987
|
+
var Do = "3.5.39", Oo = void 0, ko = typeof window < "u" && window.trustedTypes;
|
|
2976
2988
|
if (ko) try {
|
|
2977
2989
|
Oo = /* @__PURE__ */ ko.createPolicy("vue", { createHTML: (e) => e });
|
|
2978
2990
|
} catch {}
|
|
@@ -3252,22 +3264,18 @@ function xs(e, t, n, r, i = null) {
|
|
|
3252
3264
|
let a = e[bs] || (e[bs] = {}), o = a[t];
|
|
3253
3265
|
if (r && o) o.value = r;
|
|
3254
3266
|
else {
|
|
3255
|
-
let [n, s] =
|
|
3256
|
-
r ? vs(e, n, a[t] =
|
|
3267
|
+
let [n, s] = ws(t);
|
|
3268
|
+
r ? vs(e, n, a[t] = Os(r, i), s) : o && (ys(e, n, o, s), a[t] = void 0);
|
|
3257
3269
|
}
|
|
3258
3270
|
}
|
|
3259
|
-
var Ss = /(?:Once|Passive|Capture)$/;
|
|
3260
|
-
function
|
|
3261
|
-
let t;
|
|
3262
|
-
|
|
3263
|
-
t = {};
|
|
3264
|
-
let n;
|
|
3265
|
-
for (; n = e.match(Ss);) e = e.slice(0, e.length - n[0].length), t[n[0].toLowerCase()] = !0;
|
|
3266
|
-
}
|
|
3271
|
+
var Ss = /(Once|Passive|Capture)$/, Cs = /^on:?(?:Once|Passive|Capture)$/;
|
|
3272
|
+
function ws(e) {
|
|
3273
|
+
let t, n;
|
|
3274
|
+
for (; (n = e.match(Ss)) && !Cs.test(e);) t ||= {}, e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
|
|
3267
3275
|
return [e[2] === ":" ? e.slice(3) : O(e.slice(2)), t];
|
|
3268
3276
|
}
|
|
3269
|
-
var
|
|
3270
|
-
function
|
|
3277
|
+
var Ts = 0, Es = /* @__PURE__ */ Promise.resolve(), Ds = () => Ts ||= (Es.then(() => Ts = 0), Date.now());
|
|
3278
|
+
function Os(e, t) {
|
|
3271
3279
|
let n = (e) => {
|
|
3272
3280
|
if (!e._vts) e._vts = Date.now();
|
|
3273
3281
|
else if (e._vts <= n.attached) return;
|
|
@@ -3284,93 +3292,93 @@ function Ds(e, t) {
|
|
|
3284
3292
|
}
|
|
3285
3293
|
} else xn(r, t, 5, [e]);
|
|
3286
3294
|
};
|
|
3287
|
-
return n.value = e, n.attached =
|
|
3295
|
+
return n.value = e, n.attached = Ds(), n;
|
|
3288
3296
|
}
|
|
3289
|
-
var
|
|
3297
|
+
var ks = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, As = (e, t, n, r, i, s) => {
|
|
3290
3298
|
let c = i === "svg";
|
|
3291
|
-
t === "class" ? ts(e, r, c) : t === "style" ? cs(e, n, r) : a(t) ? o(t) || xs(e, t, n, r, s) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) :
|
|
3299
|
+
t === "class" ? ts(e, r, c) : t === "style" ? cs(e, n, r) : a(t) ? o(t) || xs(e, t, n, r, s) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : js(e, t, r, c)) ? (_s(e, t, r), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && gs(e, t, r, c, s, t !== "value")) : e._isVueCE && (Ms(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !g(r))) ? _s(e, D(t), r, s, t) : (t === "true-value" ? e._trueValue = r : t === "false-value" && (e._falseValue = r), gs(e, t, r, c));
|
|
3292
3300
|
};
|
|
3293
|
-
function
|
|
3294
|
-
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e &&
|
|
3301
|
+
function js(e, t, n, r) {
|
|
3302
|
+
if (r) return !!(t === "innerHTML" || t === "textContent" || t in e && ks(t) && h(n));
|
|
3295
3303
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
|
|
3296
3304
|
if (t === "width" || t === "height") {
|
|
3297
3305
|
let t = e.tagName;
|
|
3298
3306
|
if (t === "IMG" || t === "VIDEO" || t === "CANVAS" || t === "SOURCE") return !1;
|
|
3299
3307
|
}
|
|
3300
|
-
return
|
|
3308
|
+
return ks(t) && g(n) ? !1 : t in e;
|
|
3301
3309
|
}
|
|
3302
|
-
function
|
|
3310
|
+
function Ms(e, t) {
|
|
3303
3311
|
let n = e._def.props;
|
|
3304
3312
|
if (!n) return !1;
|
|
3305
3313
|
let r = D(t);
|
|
3306
3314
|
return Array.isArray(n) ? n.some((e) => D(e) === r) : Object.keys(n).some((e) => D(e) === r);
|
|
3307
3315
|
}
|
|
3308
|
-
var
|
|
3316
|
+
var Ns = (e) => {
|
|
3309
3317
|
let t = e.props["onUpdate:modelValue"] || !1;
|
|
3310
3318
|
return d(t) ? (e) => ie(t, e) : t;
|
|
3311
3319
|
};
|
|
3312
|
-
function
|
|
3320
|
+
function Ps(e) {
|
|
3313
3321
|
e.target.composing = !0;
|
|
3314
3322
|
}
|
|
3315
|
-
function
|
|
3323
|
+
function Fs(e) {
|
|
3316
3324
|
let t = e.target;
|
|
3317
3325
|
t.composing && (t.composing = !1, t.dispatchEvent(new Event("input")));
|
|
3318
3326
|
}
|
|
3319
|
-
var
|
|
3320
|
-
function
|
|
3327
|
+
var Is = /* @__PURE__ */ Symbol("_assign");
|
|
3328
|
+
function Ls(e, t, n) {
|
|
3321
3329
|
return t && (e = e.trim()), n && (e = ae(e)), e;
|
|
3322
3330
|
}
|
|
3323
|
-
var
|
|
3331
|
+
var Rs = {
|
|
3324
3332
|
created(e, { modifiers: { lazy: t, trim: n, number: r } }, i) {
|
|
3325
|
-
e[
|
|
3333
|
+
e[Is] = Ns(i);
|
|
3326
3334
|
let a = r || i.props && i.props.type === "number";
|
|
3327
3335
|
vs(e, t ? "change" : "input", (t) => {
|
|
3328
|
-
t.target.composing || e[
|
|
3336
|
+
t.target.composing || e[Is](Ls(e.value, n, a));
|
|
3329
3337
|
}), (n || a) && vs(e, "change", () => {
|
|
3330
|
-
e.value =
|
|
3331
|
-
}), t || (vs(e, "compositionstart",
|
|
3338
|
+
e.value = Ls(e.value, n, a);
|
|
3339
|
+
}), t || (vs(e, "compositionstart", Ps), vs(e, "compositionend", Fs), vs(e, "change", Fs));
|
|
3332
3340
|
},
|
|
3333
3341
|
mounted(e, { value: t }) {
|
|
3334
3342
|
e.value = t ?? "";
|
|
3335
3343
|
},
|
|
3336
3344
|
beforeUpdate(e, { value: t, oldValue: n, modifiers: { lazy: r, trim: i, number: a } }, o) {
|
|
3337
|
-
if (e[
|
|
3345
|
+
if (e[Is] = Ns(o), e.composing) return;
|
|
3338
3346
|
let s = (a || e.type === "number") && !/^0\d/.test(e.value) ? ae(e.value) : e.value, c = t ?? "";
|
|
3339
3347
|
if (s === c) return;
|
|
3340
3348
|
let l = e.getRootNode();
|
|
3341
3349
|
(l instanceof Document || l instanceof ShadowRoot) && l.activeElement === e && e.type !== "range" && (r && t === n || i && e.value.trim() === c) || (e.value = c);
|
|
3342
3350
|
}
|
|
3343
|
-
},
|
|
3351
|
+
}, zs = {
|
|
3344
3352
|
deep: !0,
|
|
3345
3353
|
created(e, { value: t, modifiers: { number: n } }, r) {
|
|
3346
3354
|
let i = p(t);
|
|
3347
3355
|
vs(e, "change", () => {
|
|
3348
|
-
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(
|
|
3349
|
-
e[
|
|
3356
|
+
let t = Array.prototype.filter.call(e.options, (e) => e.selected).map((e) => n ? ae(Vs(e)) : Vs(e));
|
|
3357
|
+
e[Is](e.multiple ? i ? new Set(t) : t : t[0]), e._assigning = !0, jn(() => {
|
|
3350
3358
|
e._assigning = !1;
|
|
3351
3359
|
});
|
|
3352
|
-
}), e[
|
|
3360
|
+
}), e[Is] = Ns(r);
|
|
3353
3361
|
},
|
|
3354
3362
|
mounted(e, { value: t }) {
|
|
3355
|
-
|
|
3363
|
+
Bs(e, t);
|
|
3356
3364
|
},
|
|
3357
3365
|
beforeUpdate(e, t, n) {
|
|
3358
|
-
e[
|
|
3366
|
+
e[Is] = Ns(n);
|
|
3359
3367
|
},
|
|
3360
3368
|
updated(e, { value: t }) {
|
|
3361
|
-
e._assigning ||
|
|
3369
|
+
e._assigning || Bs(e, t);
|
|
3362
3370
|
}
|
|
3363
3371
|
};
|
|
3364
|
-
function
|
|
3372
|
+
function Bs(e, t) {
|
|
3365
3373
|
let n = e.multiple, r = d(t);
|
|
3366
3374
|
if (!(n && !r && !p(t))) {
|
|
3367
3375
|
for (let i = 0, a = e.options.length; i < a; i++) {
|
|
3368
|
-
let a = e.options[i], o =
|
|
3376
|
+
let a = e.options[i], o = Vs(a);
|
|
3369
3377
|
if (n) if (r) {
|
|
3370
3378
|
let e = typeof o;
|
|
3371
3379
|
e === "string" || e === "number" ? a.selected = t.some((e) => String(e) === String(o)) : a.selected = be(t, o) > -1;
|
|
3372
3380
|
} else a.selected = t.has(o);
|
|
3373
|
-
else if (ye(
|
|
3381
|
+
else if (ye(Vs(a), t)) {
|
|
3374
3382
|
e.selectedIndex !== i && (e.selectedIndex = i);
|
|
3375
3383
|
return;
|
|
3376
3384
|
}
|
|
@@ -3378,15 +3386,15 @@ function zs(e, t) {
|
|
|
3378
3386
|
!n && e.selectedIndex !== -1 && (e.selectedIndex = -1);
|
|
3379
3387
|
}
|
|
3380
3388
|
}
|
|
3381
|
-
function
|
|
3389
|
+
function Vs(e) {
|
|
3382
3390
|
return "_value" in e ? e._value : e.value;
|
|
3383
3391
|
}
|
|
3384
|
-
var
|
|
3392
|
+
var Hs = [
|
|
3385
3393
|
"ctrl",
|
|
3386
3394
|
"shift",
|
|
3387
3395
|
"alt",
|
|
3388
3396
|
"meta"
|
|
3389
|
-
],
|
|
3397
|
+
], Us = {
|
|
3390
3398
|
stop: (e) => e.stopPropagation(),
|
|
3391
3399
|
prevent: (e) => e.preventDefault(),
|
|
3392
3400
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -3397,18 +3405,18 @@ var Vs = [
|
|
|
3397
3405
|
left: (e) => "button" in e && e.button !== 0,
|
|
3398
3406
|
middle: (e) => "button" in e && e.button !== 1,
|
|
3399
3407
|
right: (e) => "button" in e && e.button !== 2,
|
|
3400
|
-
exact: (e, t) =>
|
|
3401
|
-
},
|
|
3408
|
+
exact: (e, t) => Hs.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
3409
|
+
}, Ws = (e, t) => {
|
|
3402
3410
|
if (!e) return e;
|
|
3403
3411
|
let n = e._withMods ||= {}, r = t.join(".");
|
|
3404
3412
|
return n[r] || (n[r] = ((n, ...r) => {
|
|
3405
3413
|
for (let e = 0; e < t.length; e++) {
|
|
3406
|
-
let r =
|
|
3414
|
+
let r = Us[t[e]];
|
|
3407
3415
|
if (r && r(n, t)) return;
|
|
3408
3416
|
}
|
|
3409
3417
|
return e(n, ...r);
|
|
3410
3418
|
}));
|
|
3411
|
-
},
|
|
3419
|
+
}, Gs = {
|
|
3412
3420
|
esc: "escape",
|
|
3413
3421
|
space: " ",
|
|
3414
3422
|
up: "arrow-up",
|
|
@@ -3416,115 +3424,115 @@ var Vs = [
|
|
|
3416
3424
|
right: "arrow-right",
|
|
3417
3425
|
down: "arrow-down",
|
|
3418
3426
|
delete: "backspace"
|
|
3419
|
-
},
|
|
3427
|
+
}, Ks = (e, t) => {
|
|
3420
3428
|
let n = e._withKeys ||= {}, r = t.join(".");
|
|
3421
3429
|
return n[r] || (n[r] = ((n) => {
|
|
3422
3430
|
if (!("key" in n)) return;
|
|
3423
3431
|
let r = O(n.key);
|
|
3424
|
-
if (t.some((e) => e === r ||
|
|
3432
|
+
if (t.some((e) => e === r || Gs[e] === r)) return e(n);
|
|
3425
3433
|
}));
|
|
3426
|
-
},
|
|
3427
|
-
function
|
|
3428
|
-
return
|
|
3429
|
-
}
|
|
3430
|
-
var
|
|
3431
|
-
|
|
3432
|
-
}),
|
|
3433
|
-
let t =
|
|
3434
|
+
}, qs = /* @__PURE__ */ s({ patchProp: As }, Fo), Js;
|
|
3435
|
+
function Ys() {
|
|
3436
|
+
return Js ||= _a(qs);
|
|
3437
|
+
}
|
|
3438
|
+
var Xs = ((...e) => {
|
|
3439
|
+
Ys().render(...e);
|
|
3440
|
+
}), Zs = ((...e) => {
|
|
3441
|
+
let t = Ys().createApp(...e), { mount: n } = t;
|
|
3434
3442
|
return t.mount = (e) => {
|
|
3435
|
-
let r =
|
|
3443
|
+
let r = $s(e);
|
|
3436
3444
|
if (!r) return;
|
|
3437
3445
|
let i = t._component;
|
|
3438
3446
|
!h(i) && !i.render && !i.template && (i.template = r.innerHTML), r.nodeType === 1 && (r.textContent = "");
|
|
3439
|
-
let a = n(r, !1,
|
|
3447
|
+
let a = n(r, !1, Qs(r));
|
|
3440
3448
|
return r instanceof Element && (r.removeAttribute("v-cloak"), r.setAttribute("data-v-app", "")), a;
|
|
3441
3449
|
}, t;
|
|
3442
3450
|
});
|
|
3443
|
-
function
|
|
3451
|
+
function Qs(e) {
|
|
3444
3452
|
if (e instanceof SVGElement) return "svg";
|
|
3445
3453
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
3446
3454
|
}
|
|
3447
|
-
function
|
|
3455
|
+
function $s(e) {
|
|
3448
3456
|
return g(e) ? document.querySelector(e) : e;
|
|
3449
3457
|
}
|
|
3450
3458
|
//#endregion
|
|
3451
3459
|
//#region ../../node_modules/.pnpm/vue-draggable-plus@0.6.1_@types+sortablejs@1.15.9/node_modules/vue-draggable-plus/dist/vue-draggable-plus.js
|
|
3452
|
-
var
|
|
3460
|
+
var ec = Object.defineProperty, tc = Object.getOwnPropertySymbols, nc = Object.prototype.hasOwnProperty, rc = Object.prototype.propertyIsEnumerable, ic = (e, t, n) => t in e ? ec(e, t, {
|
|
3453
3461
|
enumerable: !0,
|
|
3454
3462
|
configurable: !0,
|
|
3455
3463
|
writable: !0,
|
|
3456
3464
|
value: n
|
|
3457
|
-
}) : e[t] = n,
|
|
3458
|
-
for (var n in t ||= {})
|
|
3459
|
-
if (
|
|
3465
|
+
}) : e[t] = n, ac = (e, t) => {
|
|
3466
|
+
for (var n in t ||= {}) nc.call(t, n) && ic(e, n, t[n]);
|
|
3467
|
+
if (tc) for (var n of tc(t)) rc.call(t, n) && ic(e, n, t[n]);
|
|
3460
3468
|
return e;
|
|
3461
|
-
},
|
|
3469
|
+
}, oc = (e, t) => {
|
|
3462
3470
|
var n = {};
|
|
3463
|
-
for (var r in e)
|
|
3464
|
-
if (e != null &&
|
|
3471
|
+
for (var r in e) nc.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3472
|
+
if (e != null && tc) for (var r of tc(e)) t.indexOf(r) < 0 && rc.call(e, r) && (n[r] = e[r]);
|
|
3465
3473
|
return n;
|
|
3466
|
-
},
|
|
3467
|
-
function sc(e) {
|
|
3468
|
-
console.warn(oc + e);
|
|
3469
|
-
}
|
|
3474
|
+
}, sc = "[vue-draggable-plus]: ";
|
|
3470
3475
|
function cc(e) {
|
|
3471
|
-
console.
|
|
3476
|
+
console.warn(sc + e);
|
|
3477
|
+
}
|
|
3478
|
+
function lc(e) {
|
|
3479
|
+
console.error(sc + e);
|
|
3472
3480
|
}
|
|
3473
|
-
function
|
|
3481
|
+
function uc(e, t, n) {
|
|
3474
3482
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
3475
3483
|
}
|
|
3476
|
-
function
|
|
3484
|
+
function dc(e) {
|
|
3477
3485
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
3478
3486
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
3487
|
+
function fc(e) {
|
|
3488
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[dc(n)] = e[n]), t), {});
|
|
3481
3489
|
}
|
|
3482
|
-
function
|
|
3490
|
+
function pc(e, t) {
|
|
3483
3491
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
3484
3492
|
}
|
|
3485
|
-
function
|
|
3493
|
+
function mc(e, t, n) {
|
|
3486
3494
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
3487
3495
|
}
|
|
3488
|
-
function
|
|
3496
|
+
function hc(e) {
|
|
3489
3497
|
return e === void 0;
|
|
3490
3498
|
}
|
|
3491
|
-
function
|
|
3499
|
+
function gc(e) {
|
|
3492
3500
|
return typeof e == "string";
|
|
3493
3501
|
}
|
|
3494
|
-
function
|
|
3502
|
+
function _c(e, t, n) {
|
|
3495
3503
|
e.insertBefore(t, e.children[n]);
|
|
3496
3504
|
}
|
|
3497
|
-
function
|
|
3505
|
+
function vc(e) {
|
|
3498
3506
|
e.parentNode && e.parentNode.removeChild(e);
|
|
3499
3507
|
}
|
|
3500
|
-
function
|
|
3508
|
+
function yc(e, t = document) {
|
|
3501
3509
|
let n = null;
|
|
3502
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
3510
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || cc(`Element not found: ${e}`), n;
|
|
3503
3511
|
}
|
|
3504
|
-
function
|
|
3512
|
+
function bc(e, t, n = null) {
|
|
3505
3513
|
return function(...r) {
|
|
3506
3514
|
return e.apply(n, r), t.apply(n, r);
|
|
3507
3515
|
};
|
|
3508
3516
|
}
|
|
3509
|
-
function
|
|
3510
|
-
let n =
|
|
3517
|
+
function xc(e, t) {
|
|
3518
|
+
let n = ac({}, e);
|
|
3511
3519
|
return Object.keys(t).forEach((r) => {
|
|
3512
|
-
n[r] ? n[r] =
|
|
3520
|
+
n[r] ? n[r] = bc(e[r], t[r]) : n[r] = t[r];
|
|
3513
3521
|
}), n;
|
|
3514
3522
|
}
|
|
3515
|
-
function
|
|
3523
|
+
function Sc(e) {
|
|
3516
3524
|
return e instanceof HTMLElement;
|
|
3517
3525
|
}
|
|
3518
|
-
function
|
|
3526
|
+
function Cc(e, t) {
|
|
3519
3527
|
Object.keys(e).forEach((n) => {
|
|
3520
3528
|
t(n, e[n]);
|
|
3521
3529
|
});
|
|
3522
3530
|
}
|
|
3523
|
-
function
|
|
3531
|
+
function wc(e) {
|
|
3524
3532
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
3525
3533
|
}
|
|
3526
|
-
var
|
|
3527
|
-
function
|
|
3534
|
+
var Tc = Object.assign;
|
|
3535
|
+
function Ec(e, t) {
|
|
3528
3536
|
var n = Object.keys(e);
|
|
3529
3537
|
if (Object.getOwnPropertySymbols) {
|
|
3530
3538
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -3534,26 +3542,26 @@ function Tc(e, t) {
|
|
|
3534
3542
|
}
|
|
3535
3543
|
return n;
|
|
3536
3544
|
}
|
|
3537
|
-
function
|
|
3545
|
+
function Dc(e) {
|
|
3538
3546
|
for (var t = 1; t < arguments.length; t++) {
|
|
3539
3547
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
3540
|
-
t % 2 ?
|
|
3541
|
-
|
|
3542
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3548
|
+
t % 2 ? Ec(Object(n), !0).forEach(function(t) {
|
|
3549
|
+
kc(e, t, n[t]);
|
|
3550
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ec(Object(n)).forEach(function(t) {
|
|
3543
3551
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
3544
3552
|
});
|
|
3545
3553
|
}
|
|
3546
3554
|
return e;
|
|
3547
3555
|
}
|
|
3548
|
-
function
|
|
3556
|
+
function Oc(e) {
|
|
3549
3557
|
"@babel/helpers - typeof";
|
|
3550
|
-
return
|
|
3558
|
+
return Oc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
3551
3559
|
return typeof e;
|
|
3552
3560
|
} : function(e) {
|
|
3553
3561
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3554
|
-
},
|
|
3562
|
+
}, Oc(e);
|
|
3555
3563
|
}
|
|
3556
|
-
function
|
|
3564
|
+
function kc(e, t, n) {
|
|
3557
3565
|
return t in e ? Object.defineProperty(e, t, {
|
|
3558
3566
|
value: n,
|
|
3559
3567
|
enumerable: !0,
|
|
@@ -3561,45 +3569,45 @@ function Oc(e, t, n) {
|
|
|
3561
3569
|
writable: !0
|
|
3562
3570
|
}) : e[t] = n, e;
|
|
3563
3571
|
}
|
|
3564
|
-
function
|
|
3565
|
-
return
|
|
3572
|
+
function Ac() {
|
|
3573
|
+
return Ac = Object.assign || function(e) {
|
|
3566
3574
|
for (var t = 1; t < arguments.length; t++) {
|
|
3567
3575
|
var n = arguments[t];
|
|
3568
3576
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3569
3577
|
}
|
|
3570
3578
|
return e;
|
|
3571
|
-
},
|
|
3579
|
+
}, Ac.apply(this, arguments);
|
|
3572
3580
|
}
|
|
3573
|
-
function
|
|
3581
|
+
function jc(e, t) {
|
|
3574
3582
|
if (e == null) return {};
|
|
3575
3583
|
var n = {}, r = Object.keys(e), i, a;
|
|
3576
3584
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
3577
3585
|
return n;
|
|
3578
3586
|
}
|
|
3579
|
-
function
|
|
3587
|
+
function Mc(e, t) {
|
|
3580
3588
|
if (e == null) return {};
|
|
3581
|
-
var n =
|
|
3589
|
+
var n = jc(e, t), r, i;
|
|
3582
3590
|
if (Object.getOwnPropertySymbols) {
|
|
3583
3591
|
var a = Object.getOwnPropertySymbols(e);
|
|
3584
3592
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
3585
3593
|
}
|
|
3586
3594
|
return n;
|
|
3587
3595
|
}
|
|
3588
|
-
var
|
|
3589
|
-
function
|
|
3596
|
+
var Nc = "1.15.2";
|
|
3597
|
+
function Pc(e) {
|
|
3590
3598
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
3591
3599
|
}
|
|
3592
|
-
var
|
|
3600
|
+
var Fc = Pc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ic = Pc(/Edge/i), Lc = Pc(/firefox/i), Rc = Pc(/safari/i) && !Pc(/chrome/i) && !Pc(/android/i), zc = Pc(/iP(ad|od|hone)/i), Bc = Pc(/chrome/i) && Pc(/android/i), Vc = {
|
|
3593
3601
|
capture: !1,
|
|
3594
3602
|
passive: !1
|
|
3595
3603
|
};
|
|
3596
3604
|
function V(e, t, n) {
|
|
3597
|
-
e.addEventListener(t, n, !
|
|
3605
|
+
e.addEventListener(t, n, !Fc && Vc);
|
|
3598
3606
|
}
|
|
3599
3607
|
function H(e, t, n) {
|
|
3600
|
-
e.removeEventListener(t, n, !
|
|
3608
|
+
e.removeEventListener(t, n, !Fc && Vc);
|
|
3601
3609
|
}
|
|
3602
|
-
function
|
|
3610
|
+
function Hc(e, t) {
|
|
3603
3611
|
if (t) {
|
|
3604
3612
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
3605
3613
|
if (e.matches) return e.matches(t);
|
|
@@ -3611,22 +3619,22 @@ function Vc(e, t) {
|
|
|
3611
3619
|
return !1;
|
|
3612
3620
|
}
|
|
3613
3621
|
}
|
|
3614
|
-
function
|
|
3622
|
+
function Uc(e) {
|
|
3615
3623
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
3616
3624
|
}
|
|
3617
|
-
function
|
|
3625
|
+
function Wc(e, t, n, r) {
|
|
3618
3626
|
if (e) {
|
|
3619
3627
|
n ||= document;
|
|
3620
3628
|
do {
|
|
3621
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
3629
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Hc(e, t) : Hc(e, t)) || r && e === n) return e;
|
|
3622
3630
|
if (e === n) break;
|
|
3623
|
-
} while (e =
|
|
3631
|
+
} while (e = Uc(e));
|
|
3624
3632
|
}
|
|
3625
3633
|
return null;
|
|
3626
3634
|
}
|
|
3627
|
-
var
|
|
3628
|
-
function
|
|
3629
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
3635
|
+
var Gc = /\s+/g;
|
|
3636
|
+
function Kc(e, t, n) {
|
|
3637
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Gc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Gc, " "));
|
|
3630
3638
|
}
|
|
3631
3639
|
function U(e, t, n) {
|
|
3632
3640
|
var r = e && e.style;
|
|
@@ -3635,7 +3643,7 @@ function U(e, t, n) {
|
|
|
3635
3643
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
3636
3644
|
}
|
|
3637
3645
|
}
|
|
3638
|
-
function
|
|
3646
|
+
function qc(e, t) {
|
|
3639
3647
|
var n = "";
|
|
3640
3648
|
if (typeof e == "string") n = e;
|
|
3641
3649
|
else do {
|
|
@@ -3645,7 +3653,7 @@ function Kc(e, t) {
|
|
|
3645
3653
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
3646
3654
|
return i && new i(n);
|
|
3647
3655
|
}
|
|
3648
|
-
function
|
|
3656
|
+
function Jc(e, t, n) {
|
|
3649
3657
|
if (e) {
|
|
3650
3658
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
3651
3659
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -3653,13 +3661,13 @@ function qc(e, t, n) {
|
|
|
3653
3661
|
}
|
|
3654
3662
|
return [];
|
|
3655
3663
|
}
|
|
3656
|
-
function
|
|
3664
|
+
function Yc() {
|
|
3657
3665
|
return document.scrollingElement || document.documentElement;
|
|
3658
3666
|
}
|
|
3659
3667
|
function W(e, t, n, r, i) {
|
|
3660
3668
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
3661
3669
|
var a, o, s, c, l, u, d;
|
|
3662
|
-
if (e !== window && e.parentNode && e !==
|
|
3670
|
+
if (e !== window && e.parentNode && e !== Yc() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !Fc)) do
|
|
3663
3671
|
if (i && i.getBoundingClientRect && (U(i, "transform") !== "none" || n && U(i, "position") !== "static")) {
|
|
3664
3672
|
var f = i.getBoundingClientRect();
|
|
3665
3673
|
o -= f.top + parseInt(U(i, "border-top-width")), s -= f.left + parseInt(U(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -3667,7 +3675,7 @@ function W(e, t, n, r, i) {
|
|
|
3667
3675
|
}
|
|
3668
3676
|
while (i = i.parentNode);
|
|
3669
3677
|
if (r && e !== window) {
|
|
3670
|
-
var p =
|
|
3678
|
+
var p = qc(i || e), m = p && p.a, h = p && p.d;
|
|
3671
3679
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
3672
3680
|
}
|
|
3673
3681
|
return {
|
|
@@ -3680,18 +3688,18 @@ function W(e, t, n, r, i) {
|
|
|
3680
3688
|
};
|
|
3681
3689
|
}
|
|
3682
3690
|
}
|
|
3683
|
-
function
|
|
3684
|
-
for (var r =
|
|
3691
|
+
function Xc(e, t, n) {
|
|
3692
|
+
for (var r = nl(e, !0), i = W(e)[t]; r;) {
|
|
3685
3693
|
var a = W(r)[n], o = void 0;
|
|
3686
3694
|
if (o = i >= a, !o) return r;
|
|
3687
|
-
if (r ===
|
|
3688
|
-
r =
|
|
3695
|
+
if (r === Yc()) break;
|
|
3696
|
+
r = nl(r, !1);
|
|
3689
3697
|
}
|
|
3690
3698
|
return !1;
|
|
3691
3699
|
}
|
|
3692
|
-
function
|
|
3700
|
+
function Zc(e, t, n, r) {
|
|
3693
3701
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
3694
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
3702
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && Wc(o[a], n.draggable, e, !1)) {
|
|
3695
3703
|
if (i === t) return o[a];
|
|
3696
3704
|
i++;
|
|
3697
3705
|
}
|
|
@@ -3699,84 +3707,84 @@ function Xc(e, t, n, r) {
|
|
|
3699
3707
|
}
|
|
3700
3708
|
return null;
|
|
3701
3709
|
}
|
|
3702
|
-
function
|
|
3703
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !
|
|
3710
|
+
function Qc(e, t) {
|
|
3711
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || U(n, "display") === "none" || t && !Hc(n, t));) n = n.previousElementSibling;
|
|
3704
3712
|
return n || null;
|
|
3705
3713
|
}
|
|
3706
|
-
function
|
|
3714
|
+
function $c(e, t) {
|
|
3707
3715
|
var n = 0;
|
|
3708
3716
|
if (!e || !e.parentNode) return -1;
|
|
3709
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
3717
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Hc(e, t)) && n++;
|
|
3710
3718
|
return n;
|
|
3711
3719
|
}
|
|
3712
|
-
function
|
|
3713
|
-
var t = 0, n = 0, r =
|
|
3720
|
+
function el(e) {
|
|
3721
|
+
var t = 0, n = 0, r = Yc();
|
|
3714
3722
|
if (e) do {
|
|
3715
|
-
var i =
|
|
3723
|
+
var i = qc(e), a = i.a, o = i.d;
|
|
3716
3724
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
3717
3725
|
} while (e !== r && (e = e.parentNode));
|
|
3718
3726
|
return [t, n];
|
|
3719
3727
|
}
|
|
3720
|
-
function
|
|
3728
|
+
function tl(e, t) {
|
|
3721
3729
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
3722
3730
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
3723
3731
|
}
|
|
3724
3732
|
return -1;
|
|
3725
3733
|
}
|
|
3726
|
-
function
|
|
3727
|
-
if (!e || !e.getBoundingClientRect) return
|
|
3734
|
+
function nl(e, t) {
|
|
3735
|
+
if (!e || !e.getBoundingClientRect) return Yc();
|
|
3728
3736
|
var n = e, r = !1;
|
|
3729
3737
|
do
|
|
3730
3738
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
3731
3739
|
var i = U(n);
|
|
3732
3740
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
3733
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
3741
|
+
if (!n.getBoundingClientRect || n === document.body) return Yc();
|
|
3734
3742
|
if (r || t) return n;
|
|
3735
3743
|
r = !0;
|
|
3736
3744
|
}
|
|
3737
3745
|
}
|
|
3738
3746
|
while (n = n.parentNode);
|
|
3739
|
-
return
|
|
3747
|
+
return Yc();
|
|
3740
3748
|
}
|
|
3741
|
-
function
|
|
3749
|
+
function rl(e, t) {
|
|
3742
3750
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
3743
3751
|
return e;
|
|
3744
3752
|
}
|
|
3745
|
-
function
|
|
3753
|
+
function il(e, t) {
|
|
3746
3754
|
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);
|
|
3747
3755
|
}
|
|
3748
|
-
var
|
|
3749
|
-
function
|
|
3756
|
+
var al;
|
|
3757
|
+
function ol(e, t) {
|
|
3750
3758
|
return function() {
|
|
3751
|
-
if (!
|
|
3759
|
+
if (!al) {
|
|
3752
3760
|
var n = arguments, r = this;
|
|
3753
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
3754
|
-
|
|
3761
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), al = setTimeout(function() {
|
|
3762
|
+
al = void 0;
|
|
3755
3763
|
}, t);
|
|
3756
3764
|
}
|
|
3757
3765
|
};
|
|
3758
3766
|
}
|
|
3759
|
-
function
|
|
3760
|
-
clearTimeout(
|
|
3767
|
+
function sl() {
|
|
3768
|
+
clearTimeout(al), al = void 0;
|
|
3761
3769
|
}
|
|
3762
|
-
function
|
|
3770
|
+
function cl(e, t, n) {
|
|
3763
3771
|
e.scrollLeft += t, e.scrollTop += n;
|
|
3764
3772
|
}
|
|
3765
|
-
function
|
|
3773
|
+
function ll(e) {
|
|
3766
3774
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
3767
3775
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
3768
3776
|
}
|
|
3769
|
-
function
|
|
3777
|
+
function ul(e, t, n) {
|
|
3770
3778
|
var r = {};
|
|
3771
3779
|
return Array.from(e.children).forEach(function(i) {
|
|
3772
|
-
if (!(!
|
|
3780
|
+
if (!(!Wc(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
3773
3781
|
var a = W(i);
|
|
3774
3782
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
3775
3783
|
}
|
|
3776
3784
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
3777
3785
|
}
|
|
3778
|
-
var
|
|
3779
|
-
function
|
|
3786
|
+
var dl = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
3787
|
+
function fl() {
|
|
3780
3788
|
var e = [], t;
|
|
3781
3789
|
return {
|
|
3782
3790
|
captureAnimationState: function() {
|
|
@@ -3786,9 +3794,9 @@ function dl() {
|
|
|
3786
3794
|
target: t,
|
|
3787
3795
|
rect: W(t)
|
|
3788
3796
|
});
|
|
3789
|
-
var n =
|
|
3797
|
+
var n = Dc({}, e[e.length - 1].rect);
|
|
3790
3798
|
if (t.thisAnimationDuration) {
|
|
3791
|
-
var r =
|
|
3799
|
+
var r = qc(t, !0);
|
|
3792
3800
|
r && (n.top -= r.f, n.left -= r.e);
|
|
3793
3801
|
}
|
|
3794
3802
|
t.fromRect = n;
|
|
@@ -3799,7 +3807,7 @@ function dl() {
|
|
|
3799
3807
|
e.push(t);
|
|
3800
3808
|
},
|
|
3801
3809
|
removeAnimationState: function(t) {
|
|
3802
|
-
e.splice(
|
|
3810
|
+
e.splice(tl(e, { target: t }), 1);
|
|
3803
3811
|
},
|
|
3804
3812
|
animateAll: function(n) {
|
|
3805
3813
|
var r = this;
|
|
@@ -3809,8 +3817,8 @@ function dl() {
|
|
|
3809
3817
|
}
|
|
3810
3818
|
var i = !1, a = 0;
|
|
3811
3819
|
e.forEach(function(e) {
|
|
3812
|
-
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d =
|
|
3813
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
3820
|
+
var t = 0, n = e.target, o = n.fromRect, s = W(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = qc(n, !0);
|
|
3821
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && il(c, s) && !il(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ml(u, c, l, r.options)), il(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
3814
3822
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
3815
3823
|
}, t), n.thisAnimationDuration = t);
|
|
3816
3824
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -3820,26 +3828,26 @@ function dl() {
|
|
|
3820
3828
|
animate: function(e, t, n, r) {
|
|
3821
3829
|
if (r) {
|
|
3822
3830
|
U(e, "transition", ""), U(e, "transform", "");
|
|
3823
|
-
var i =
|
|
3824
|
-
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
3831
|
+
var i = qc(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
3832
|
+
e.animatingX = !!s, e.animatingY = !!c, U(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = pl(e), U(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), U(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
3825
3833
|
U(e, "transition", ""), U(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
3826
3834
|
}, r);
|
|
3827
3835
|
}
|
|
3828
3836
|
}
|
|
3829
3837
|
};
|
|
3830
3838
|
}
|
|
3831
|
-
function
|
|
3839
|
+
function pl(e) {
|
|
3832
3840
|
return e.offsetWidth;
|
|
3833
3841
|
}
|
|
3834
|
-
function
|
|
3842
|
+
function ml(e, t, n, r) {
|
|
3835
3843
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
3836
3844
|
}
|
|
3837
|
-
var
|
|
3845
|
+
var hl = [], gl = { initializeByDefault: !0 }, _l = {
|
|
3838
3846
|
mount: function(e) {
|
|
3839
|
-
for (var t in
|
|
3840
|
-
|
|
3847
|
+
for (var t in gl) gl.hasOwnProperty(t) && !(t in e) && (e[t] = gl[t]);
|
|
3848
|
+
hl.forEach(function(t) {
|
|
3841
3849
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
3842
|
-
}),
|
|
3850
|
+
}), hl.push(e);
|
|
3843
3851
|
},
|
|
3844
3852
|
pluginEvent: function(e, t, n) {
|
|
3845
3853
|
var r = this;
|
|
@@ -3847,16 +3855,16 @@ var ml = [], hl = { initializeByDefault: !0 }, gl = {
|
|
|
3847
3855
|
r.eventCanceled = !0;
|
|
3848
3856
|
};
|
|
3849
3857
|
var i = e + "Global";
|
|
3850
|
-
|
|
3851
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
3858
|
+
hl.forEach(function(r) {
|
|
3859
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Dc({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Dc({ sortable: t }, n)));
|
|
3852
3860
|
});
|
|
3853
3861
|
},
|
|
3854
3862
|
initializePlugins: function(e, t, n, r) {
|
|
3855
|
-
for (var i in
|
|
3863
|
+
for (var i in hl.forEach(function(r) {
|
|
3856
3864
|
var i = r.pluginName;
|
|
3857
3865
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
3858
3866
|
var a = new r(e, t, e.options);
|
|
3859
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
3867
|
+
a.sortable = e, a.options = e.options, e[i] = a, Ac(n, a.defaults);
|
|
3860
3868
|
}
|
|
3861
3869
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
3862
3870
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -3865,59 +3873,59 @@ var ml = [], hl = { initializeByDefault: !0 }, gl = {
|
|
|
3865
3873
|
},
|
|
3866
3874
|
getEventProperties: function(e, t) {
|
|
3867
3875
|
var n = {};
|
|
3868
|
-
return
|
|
3869
|
-
typeof r.eventProperties == "function" &&
|
|
3876
|
+
return hl.forEach(function(r) {
|
|
3877
|
+
typeof r.eventProperties == "function" && Ac(n, r.eventProperties.call(t[r.pluginName], e));
|
|
3870
3878
|
}), n;
|
|
3871
3879
|
},
|
|
3872
3880
|
modifyOption: function(e, t, n) {
|
|
3873
3881
|
var r;
|
|
3874
|
-
return
|
|
3882
|
+
return hl.forEach(function(i) {
|
|
3875
3883
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
3876
3884
|
}), r;
|
|
3877
3885
|
}
|
|
3878
3886
|
};
|
|
3879
|
-
function
|
|
3887
|
+
function vl(e) {
|
|
3880
3888
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
3881
|
-
if (t ||= n && n[
|
|
3889
|
+
if (t ||= n && n[dl], t) {
|
|
3882
3890
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
3883
|
-
window.CustomEvent && !
|
|
3891
|
+
window.CustomEvent && !Fc && !Ic ? h = new CustomEvent(r, {
|
|
3884
3892
|
bubbles: !0,
|
|
3885
3893
|
cancelable: !0
|
|
3886
3894
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
3887
|
-
var v =
|
|
3895
|
+
var v = Dc(Dc({}, m), _l.getEventProperties(r, t));
|
|
3888
3896
|
for (var y in v) h[y] = v[y];
|
|
3889
3897
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
3890
3898
|
}
|
|
3891
3899
|
}
|
|
3892
|
-
var
|
|
3893
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
3894
|
-
|
|
3900
|
+
var yl = ["evt"], bl = function(e, t) {
|
|
3901
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Mc(n, yl);
|
|
3902
|
+
_l.pluginEvent.bind(Q)(e, t, Dc({
|
|
3895
3903
|
dragEl: G,
|
|
3896
3904
|
parentEl: K,
|
|
3897
3905
|
ghostEl: q,
|
|
3898
3906
|
rootEl: J,
|
|
3899
|
-
nextEl:
|
|
3900
|
-
lastDownEl:
|
|
3907
|
+
nextEl: Sl,
|
|
3908
|
+
lastDownEl: Cl,
|
|
3901
3909
|
cloneEl: Y,
|
|
3902
|
-
cloneHidden:
|
|
3903
|
-
dragStarted:
|
|
3910
|
+
cloneHidden: wl,
|
|
3911
|
+
dragStarted: zl,
|
|
3904
3912
|
putSortable: X,
|
|
3905
3913
|
activeSortable: Q.active,
|
|
3906
3914
|
originalEvent: r,
|
|
3907
|
-
oldIndex:
|
|
3908
|
-
oldDraggableIndex:
|
|
3909
|
-
newIndex:
|
|
3910
|
-
newDraggableIndex:
|
|
3911
|
-
hideGhostForTarget:
|
|
3912
|
-
unhideGhostForTarget:
|
|
3915
|
+
oldIndex: Tl,
|
|
3916
|
+
oldDraggableIndex: Dl,
|
|
3917
|
+
newIndex: El,
|
|
3918
|
+
newDraggableIndex: Ol,
|
|
3919
|
+
hideGhostForTarget: ru,
|
|
3920
|
+
unhideGhostForTarget: iu,
|
|
3913
3921
|
cloneNowHidden: function() {
|
|
3914
|
-
|
|
3922
|
+
wl = !0;
|
|
3915
3923
|
},
|
|
3916
3924
|
cloneNowShown: function() {
|
|
3917
|
-
|
|
3925
|
+
wl = !1;
|
|
3918
3926
|
},
|
|
3919
3927
|
dispatchSortableEvent: function(e) {
|
|
3920
|
-
|
|
3928
|
+
xl({
|
|
3921
3929
|
sortable: t,
|
|
3922
3930
|
name: e,
|
|
3923
3931
|
originalEvent: r
|
|
@@ -3925,40 +3933,40 @@ var vl = ["evt"], yl = function(e, t) {
|
|
|
3925
3933
|
}
|
|
3926
3934
|
}, i));
|
|
3927
3935
|
};
|
|
3928
|
-
function
|
|
3929
|
-
|
|
3936
|
+
function xl(e) {
|
|
3937
|
+
vl(Dc({
|
|
3930
3938
|
putSortable: X,
|
|
3931
3939
|
cloneEl: Y,
|
|
3932
3940
|
targetEl: G,
|
|
3933
3941
|
rootEl: J,
|
|
3934
|
-
oldIndex:
|
|
3935
|
-
oldDraggableIndex:
|
|
3936
|
-
newIndex:
|
|
3937
|
-
newDraggableIndex:
|
|
3942
|
+
oldIndex: Tl,
|
|
3943
|
+
oldDraggableIndex: Dl,
|
|
3944
|
+
newIndex: El,
|
|
3945
|
+
newDraggableIndex: Ol
|
|
3938
3946
|
}, e));
|
|
3939
3947
|
}
|
|
3940
|
-
var G, K, q, J,
|
|
3941
|
-
if (
|
|
3942
|
-
if (
|
|
3948
|
+
var G, K, q, J, Sl, Cl, Y, wl, Tl, El, Dl, Ol, kl, X, Al = !1, jl = !1, Ml = [], Nl, Pl, Fl, Il, Ll, Rl, zl, Bl, Vl, Hl = !1, Ul = !1, Wl, Z, Gl = [], Kl = !1, ql = [], Jl = typeof document < "u", Yl = zc, Xl = Ic || Fc ? "cssFloat" : "float", Zl = Jl && !Bc && !zc && "draggable" in document.createElement("div"), Ql = function() {
|
|
3949
|
+
if (Jl) {
|
|
3950
|
+
if (Fc) return !1;
|
|
3943
3951
|
var e = document.createElement("x");
|
|
3944
3952
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
3945
3953
|
}
|
|
3946
|
-
}(),
|
|
3947
|
-
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
3948
|
-
return n.display === "flex" ? n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal" : n.display === "grid" ? n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal" : i && o.float && o.float !== "none" ? a && (s.clear === "both" || s.clear === (o.float === "left" ? "left" : "right")) ? "vertical" : "horizontal" : i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
3949
|
-
},
|
|
3954
|
+
}(), $l = function(e, t) {
|
|
3955
|
+
var n = U(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Zc(e, 0, t), a = Zc(e, 1, t), o = i && U(i), s = a && U(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + W(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + W(a).width;
|
|
3956
|
+
return n.display === "flex" ? n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal" : n.display === "grid" ? n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal" : i && o.float && o.float !== "none" ? a && (s.clear === "both" || s.clear === (o.float === "left" ? "left" : "right")) ? "vertical" : "horizontal" : i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Xl] === "none" || a && n[Xl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
3957
|
+
}, eu = function(e, t, n) {
|
|
3950
3958
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
3951
3959
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
3952
|
-
},
|
|
3960
|
+
}, tu = function(e, t) {
|
|
3953
3961
|
var n;
|
|
3954
|
-
return
|
|
3955
|
-
var i = r[
|
|
3956
|
-
if (!(!i ||
|
|
3962
|
+
return Ml.some(function(r) {
|
|
3963
|
+
var i = r[dl].options.emptyInsertThreshold;
|
|
3964
|
+
if (!(!i || Qc(r))) {
|
|
3957
3965
|
var a = W(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
3958
3966
|
if (o && s) return n = r;
|
|
3959
3967
|
}
|
|
3960
3968
|
}), n;
|
|
3961
|
-
},
|
|
3969
|
+
}, nu = function(e) {
|
|
3962
3970
|
function t(e, n) {
|
|
3963
3971
|
return function(r, i, a, o) {
|
|
3964
3972
|
if (e == null && (n || r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name)) return !0;
|
|
@@ -3970,31 +3978,31 @@ var G, K, q, J, xl, Sl, Y, Cl, wl, Tl, El, Dl, Ol, X, kl = !1, Al = !1, jl = [],
|
|
|
3970
3978
|
};
|
|
3971
3979
|
}
|
|
3972
3980
|
var n = {}, r = e.group;
|
|
3973
|
-
(!r ||
|
|
3974
|
-
}, nu = function() {
|
|
3975
|
-
!Zl && q && U(q, "display", "none");
|
|
3981
|
+
(!r || Oc(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
3976
3982
|
}, ru = function() {
|
|
3977
|
-
!
|
|
3983
|
+
!Ql && q && U(q, "display", "none");
|
|
3984
|
+
}, iu = function() {
|
|
3985
|
+
!Ql && q && U(q, "display", "");
|
|
3978
3986
|
};
|
|
3979
|
-
|
|
3980
|
-
if (
|
|
3987
|
+
Jl && !Bc && document.addEventListener("click", function(e) {
|
|
3988
|
+
if (jl) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), jl = !1, !1;
|
|
3981
3989
|
}, !0);
|
|
3982
|
-
var
|
|
3990
|
+
var au = function(e) {
|
|
3983
3991
|
if (G) {
|
|
3984
3992
|
e = e.touches ? e.touches[0] : e;
|
|
3985
|
-
var t =
|
|
3993
|
+
var t = tu(e.clientX, e.clientY);
|
|
3986
3994
|
if (t) {
|
|
3987
3995
|
var n = {};
|
|
3988
3996
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
3989
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
3997
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[dl]._onDragOver(n);
|
|
3990
3998
|
}
|
|
3991
3999
|
}
|
|
3992
|
-
},
|
|
3993
|
-
G && G.parentNode[
|
|
4000
|
+
}, ou = function(e) {
|
|
4001
|
+
G && G.parentNode[dl]._isOutsideThisEl(e.target);
|
|
3994
4002
|
};
|
|
3995
4003
|
function Q(e, t) {
|
|
3996
4004
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
3997
|
-
this.el = e, this.options = t =
|
|
4005
|
+
this.el = e, this.options = t = Ac({}, t), e[dl] = this;
|
|
3998
4006
|
var n = {
|
|
3999
4007
|
group: null,
|
|
4000
4008
|
sort: !0,
|
|
@@ -4007,7 +4015,7 @@ function Q(e, t) {
|
|
|
4007
4015
|
invertedSwapThreshold: null,
|
|
4008
4016
|
removeCloneOnHide: !0,
|
|
4009
4017
|
direction: function() {
|
|
4010
|
-
return
|
|
4018
|
+
return $l(e, this.options);
|
|
4011
4019
|
},
|
|
4012
4020
|
ghostClass: "sortable-ghost",
|
|
4013
4021
|
chosenClass: "sortable-chosen",
|
|
@@ -4034,17 +4042,17 @@ function Q(e, t) {
|
|
|
4034
4042
|
x: 0,
|
|
4035
4043
|
y: 0
|
|
4036
4044
|
},
|
|
4037
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
4045
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !Rc,
|
|
4038
4046
|
emptyInsertThreshold: 5
|
|
4039
4047
|
};
|
|
4040
|
-
for (var r in
|
|
4041
|
-
for (var i in
|
|
4042
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
4048
|
+
for (var r in _l.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4049
|
+
for (var i in nu(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4050
|
+
this.nativeDraggable = t.forceFallback ? !1 : Zl, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), Ml.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), Ac(this, fl());
|
|
4043
4051
|
}
|
|
4044
4052
|
Q.prototype = {
|
|
4045
4053
|
constructor: Q,
|
|
4046
4054
|
_isOutsideThisEl: function(e) {
|
|
4047
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4055
|
+
!this.el.contains(e) && e !== this.el && (Bl = null);
|
|
4048
4056
|
},
|
|
4049
4057
|
_getDirection: function(e, t) {
|
|
4050
4058
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, G) : this.options.direction;
|
|
@@ -4052,33 +4060,33 @@ Q.prototype = {
|
|
|
4052
4060
|
_onTapStart: function(e) {
|
|
4053
4061
|
if (e.cancelable) {
|
|
4054
4062
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
4055
|
-
if (
|
|
4056
|
-
if (
|
|
4063
|
+
if (gu(n), !G && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Rc && s && s.tagName.toUpperCase() === "SELECT") && (s = Wc(s, r.draggable, n, !1), !(s && s.animated) && Cl !== s)) {
|
|
4064
|
+
if (Tl = $c(s), Dl = $c(s, r.draggable), typeof l == "function") {
|
|
4057
4065
|
if (l.call(this, e, s, this)) {
|
|
4058
|
-
|
|
4066
|
+
xl({
|
|
4059
4067
|
sortable: t,
|
|
4060
4068
|
rootEl: c,
|
|
4061
4069
|
name: "filter",
|
|
4062
4070
|
targetEl: s,
|
|
4063
4071
|
toEl: n,
|
|
4064
4072
|
fromEl: n
|
|
4065
|
-
}),
|
|
4073
|
+
}), bl("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
4066
4074
|
return;
|
|
4067
4075
|
}
|
|
4068
4076
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4069
|
-
if (r =
|
|
4077
|
+
if (r = Wc(c, r.trim(), n, !1), r) return xl({
|
|
4070
4078
|
sortable: t,
|
|
4071
4079
|
rootEl: r,
|
|
4072
4080
|
name: "filter",
|
|
4073
4081
|
targetEl: s,
|
|
4074
4082
|
fromEl: n,
|
|
4075
4083
|
toEl: n
|
|
4076
|
-
}),
|
|
4084
|
+
}), bl("filter", t, { evt: e }), !0;
|
|
4077
4085
|
}), l)) {
|
|
4078
4086
|
i && e.cancelable && e.preventDefault();
|
|
4079
4087
|
return;
|
|
4080
4088
|
}
|
|
4081
|
-
r.handle && !
|
|
4089
|
+
r.handle && !Wc(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
4082
4090
|
}
|
|
4083
4091
|
}
|
|
4084
4092
|
},
|
|
@@ -4086,23 +4094,23 @@ Q.prototype = {
|
|
|
4086
4094
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4087
4095
|
if (n && !G && n.parentNode === i) {
|
|
4088
4096
|
var c = W(n);
|
|
4089
|
-
if (J = i, G = n, K = G.parentNode,
|
|
4097
|
+
if (J = i, G = n, K = G.parentNode, Sl = G.nextSibling, Cl = n, kl = a.group, Q.dragged = G, Nl = {
|
|
4090
4098
|
target: G,
|
|
4091
4099
|
clientX: (t || e).clientX,
|
|
4092
4100
|
clientY: (t || e).clientY
|
|
4093
|
-
},
|
|
4094
|
-
if (
|
|
4101
|
+
}, Ll = Nl.clientX - c.left, Rl = Nl.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, G.style["will-change"] = "all", s = function() {
|
|
4102
|
+
if (bl("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
4095
4103
|
r._onDrop();
|
|
4096
4104
|
return;
|
|
4097
4105
|
}
|
|
4098
|
-
r._disableDelayedDragEvents(), !
|
|
4106
|
+
r._disableDelayedDragEvents(), !Lc && r.nativeDraggable && (G.draggable = !0), r._triggerDragStart(e, t), xl({
|
|
4099
4107
|
sortable: r,
|
|
4100
4108
|
name: "choose",
|
|
4101
4109
|
originalEvent: e
|
|
4102
|
-
}),
|
|
4110
|
+
}), Kc(G, a.chosenClass, !0);
|
|
4103
4111
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4104
|
-
|
|
4105
|
-
}), V(o, "dragover",
|
|
4112
|
+
Jc(G, e.trim(), lu);
|
|
4113
|
+
}), V(o, "dragover", au), V(o, "mousemove", au), V(o, "touchmove", au), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), Lc && this.nativeDraggable && (this.options.touchStartThreshold = 4, G.draggable = !0), bl("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ic || Fc))) {
|
|
4106
4114
|
if (Q.eventCanceled) {
|
|
4107
4115
|
this._onDrop();
|
|
4108
4116
|
return;
|
|
@@ -4116,7 +4124,7 @@ Q.prototype = {
|
|
|
4116
4124
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
4117
4125
|
},
|
|
4118
4126
|
_disableDelayedDrag: function() {
|
|
4119
|
-
G &&
|
|
4127
|
+
G && lu(G), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4120
4128
|
},
|
|
4121
4129
|
_disableDelayedDragEvents: function() {
|
|
4122
4130
|
var e = this.el.ownerDocument;
|
|
@@ -4125,16 +4133,16 @@ Q.prototype = {
|
|
|
4125
4133
|
_triggerDragStart: function(e, t) {
|
|
4126
4134
|
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(G, "dragend", this), V(J, "dragstart", this._onDragStart));
|
|
4127
4135
|
try {
|
|
4128
|
-
document.selection ?
|
|
4136
|
+
document.selection ? _u(function() {
|
|
4129
4137
|
document.selection.empty();
|
|
4130
4138
|
}) : window.getSelection().removeAllRanges();
|
|
4131
4139
|
} catch {}
|
|
4132
4140
|
},
|
|
4133
4141
|
_dragStarted: function(e, t) {
|
|
4134
|
-
if (
|
|
4135
|
-
|
|
4142
|
+
if (Al = !1, J && G) {
|
|
4143
|
+
bl("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", ou);
|
|
4136
4144
|
var n = this.options;
|
|
4137
|
-
!e &&
|
|
4145
|
+
!e && Kc(G, n.dragClass, !1), Kc(G, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), xl({
|
|
4138
4146
|
sortable: this,
|
|
4139
4147
|
name: "start",
|
|
4140
4148
|
originalEvent: t
|
|
@@ -4142,33 +4150,33 @@ Q.prototype = {
|
|
|
4142
4150
|
} else this._nulling();
|
|
4143
4151
|
},
|
|
4144
4152
|
_emulateDragOver: function() {
|
|
4145
|
-
if (
|
|
4146
|
-
this._lastX =
|
|
4147
|
-
for (var e = document.elementFromPoint(
|
|
4148
|
-
if (G.parentNode[
|
|
4149
|
-
if (t[
|
|
4153
|
+
if (Pl) {
|
|
4154
|
+
this._lastX = Pl.clientX, this._lastY = Pl.clientY, ru();
|
|
4155
|
+
for (var e = document.elementFromPoint(Pl.clientX, Pl.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Pl.clientX, Pl.clientY), e !== t);) t = e;
|
|
4156
|
+
if (G.parentNode[dl]._isOutsideThisEl(e), t) do {
|
|
4157
|
+
if (t[dl]) {
|
|
4150
4158
|
var n = void 0;
|
|
4151
|
-
if (n = t[
|
|
4152
|
-
clientX:
|
|
4153
|
-
clientY:
|
|
4159
|
+
if (n = t[dl]._onDragOver({
|
|
4160
|
+
clientX: Pl.clientX,
|
|
4161
|
+
clientY: Pl.clientY,
|
|
4154
4162
|
target: e,
|
|
4155
4163
|
rootEl: t
|
|
4156
4164
|
}), n && !this.options.dragoverBubble) break;
|
|
4157
4165
|
}
|
|
4158
4166
|
e = t;
|
|
4159
4167
|
} while (t = t.parentNode);
|
|
4160
|
-
|
|
4168
|
+
iu();
|
|
4161
4169
|
}
|
|
4162
4170
|
},
|
|
4163
4171
|
_onTouchMove: function(e) {
|
|
4164
|
-
if (
|
|
4165
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q &&
|
|
4166
|
-
if (!Q.active && !
|
|
4172
|
+
if (Nl) {
|
|
4173
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = q && qc(q, !0), o = q && a && a.a, s = q && a && a.d, c = Yl && Z && el(Z), l = (i.clientX - Nl.clientX + r.x) / (o || 1) + (c ? c[0] - Gl[0] : 0) / (o || 1), u = (i.clientY - Nl.clientY + r.y) / (s || 1) + (c ? c[1] - Gl[1] : 0) / (s || 1);
|
|
4174
|
+
if (!Q.active && !Al) {
|
|
4167
4175
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4168
4176
|
this._onDragStart(e, !0);
|
|
4169
4177
|
}
|
|
4170
4178
|
if (q) {
|
|
4171
|
-
a ? (a.e += l - (
|
|
4179
|
+
a ? (a.e += l - (Fl || 0), a.f += u - (Il || 0)) : a = {
|
|
4172
4180
|
a: 1,
|
|
4173
4181
|
b: 0,
|
|
4174
4182
|
c: 0,
|
|
@@ -4177,39 +4185,39 @@ Q.prototype = {
|
|
|
4177
4185
|
f: u
|
|
4178
4186
|
};
|
|
4179
4187
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
4180
|
-
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d),
|
|
4188
|
+
U(q, "webkitTransform", d), U(q, "mozTransform", d), U(q, "msTransform", d), U(q, "transform", d), Fl = l, Il = u, Pl = i;
|
|
4181
4189
|
}
|
|
4182
4190
|
e.cancelable && e.preventDefault();
|
|
4183
4191
|
}
|
|
4184
4192
|
},
|
|
4185
4193
|
_appendGhost: function() {
|
|
4186
4194
|
if (!q) {
|
|
4187
|
-
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0,
|
|
4188
|
-
if (
|
|
4195
|
+
var e = this.options.fallbackOnBody ? document.body : J, t = W(G, !0, Yl, !0, e), n = this.options;
|
|
4196
|
+
if (Yl) {
|
|
4189
4197
|
for (Z = e; U(Z, "position") === "static" && U(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
4190
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
4198
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Yc()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Yc(), Gl = el(Z);
|
|
4191
4199
|
}
|
|
4192
|
-
q = G.cloneNode(!0),
|
|
4200
|
+
q = G.cloneNode(!0), Kc(q, n.ghostClass, !1), Kc(q, n.fallbackClass, !0), Kc(q, n.dragClass, !0), U(q, "transition", ""), U(q, "transform", ""), U(q, "box-sizing", "border-box"), U(q, "margin", 0), U(q, "top", t.top), U(q, "left", t.left), U(q, "width", t.width), U(q, "height", t.height), U(q, "opacity", "0.8"), U(q, "position", Yl ? "absolute" : "fixed"), U(q, "zIndex", "100000"), U(q, "pointerEvents", "none"), Q.ghost = q, e.appendChild(q), U(q, "transform-origin", Ll / parseInt(q.style.width) * 100 + "% " + Rl / parseInt(q.style.height) * 100 + "%");
|
|
4193
4201
|
}
|
|
4194
4202
|
},
|
|
4195
4203
|
_onDragStart: function(e, t) {
|
|
4196
4204
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4197
|
-
if (
|
|
4205
|
+
if (bl("dragStart", this, { evt: e }), Q.eventCanceled) {
|
|
4198
4206
|
this._onDrop();
|
|
4199
4207
|
return;
|
|
4200
4208
|
}
|
|
4201
|
-
|
|
4202
|
-
|
|
4209
|
+
bl("setupClone", this), Q.eventCanceled || (Y = ll(G), Y.removeAttribute("id"), Y.draggable = !1, Y.style["will-change"] = "", this._hideClone(), Kc(Y, this.options.chosenClass, !1), Q.clone = Y), n.cloneId = _u(function() {
|
|
4210
|
+
bl("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || J.insertBefore(Y, G), n._hideClone(), xl({
|
|
4203
4211
|
sortable: n,
|
|
4204
4212
|
name: "clone"
|
|
4205
4213
|
}));
|
|
4206
|
-
}), !t &&
|
|
4214
|
+
}), !t && Kc(G, i.dragClass, !0), t ? (jl = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, G)), V(document, "drop", n), U(G, "transform", "translateZ(0)")), Al = !0, n._dragStartId = _u(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), zl = !0, Rc && U(document.body, "user-select", "none");
|
|
4207
4215
|
},
|
|
4208
4216
|
_onDragOver: function(e) {
|
|
4209
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
4210
|
-
if (
|
|
4217
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = kl === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
4218
|
+
if (Kl) return;
|
|
4211
4219
|
function h(o, s) {
|
|
4212
|
-
|
|
4220
|
+
bl(o, p, Dc({
|
|
4213
4221
|
evt: e,
|
|
4214
4222
|
isOwner: l,
|
|
4215
4223
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -4221,7 +4229,7 @@ Q.prototype = {
|
|
|
4221
4229
|
target: n,
|
|
4222
4230
|
completed: _,
|
|
4223
4231
|
onMove: function(n, i) {
|
|
4224
|
-
return
|
|
4232
|
+
return cu(J, t, G, r, n, W(n), e, i);
|
|
4225
4233
|
},
|
|
4226
4234
|
changed: v
|
|
4227
4235
|
}, s));
|
|
@@ -4230,50 +4238,50 @@ Q.prototype = {
|
|
|
4230
4238
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
4231
4239
|
}
|
|
4232
4240
|
function _(r) {
|
|
4233
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
4241
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Kc(G, X ? X.options.ghostClass : c.options.ghostClass, !1), Kc(G, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
4234
4242
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
4235
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (
|
|
4243
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === G && !G.animated || n === t && !n.animated) && (Bl = null), !o.dragoverBubble && !e.rootEl && n !== document && (G.parentNode[dl]._isOutsideThisEl(e.target), !r && au(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
4236
4244
|
}
|
|
4237
4245
|
function v() {
|
|
4238
|
-
|
|
4246
|
+
El = $c(G), Ol = $c(G, o.draggable), xl({
|
|
4239
4247
|
sortable: p,
|
|
4240
4248
|
name: "change",
|
|
4241
4249
|
toEl: t,
|
|
4242
|
-
newIndex:
|
|
4243
|
-
newDraggableIndex:
|
|
4250
|
+
newIndex: El,
|
|
4251
|
+
newDraggableIndex: Ol,
|
|
4244
4252
|
originalEvent: e
|
|
4245
4253
|
});
|
|
4246
4254
|
}
|
|
4247
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
4255
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Wc(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
4248
4256
|
if (G.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
4249
|
-
if (
|
|
4257
|
+
if (jl = !1, c && !o.disabled && (l ? u || (a = K !== J) : X === this || (this.lastPutMode = kl.checkPull(this, c, G, e)) && s.checkPut(this, c, G, e))) {
|
|
4250
4258
|
if (f = this._getDirection(e, n) === "vertical", r = W(G), h("dragOverValid"), Q.eventCanceled) return m;
|
|
4251
|
-
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
4252
|
-
var y =
|
|
4253
|
-
if (!y ||
|
|
4259
|
+
if (a) return K = J, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Sl ? J.insertBefore(G, Sl) : J.appendChild(G)), _(!0);
|
|
4260
|
+
var y = Qc(t, o.draggable);
|
|
4261
|
+
if (!y || fu(e, f, this) && !y.animated) {
|
|
4254
4262
|
if (y === G) return _(!1);
|
|
4255
|
-
if (y && t === e.target && (n = y), n && (i = W(n)),
|
|
4256
|
-
} else if (y &&
|
|
4257
|
-
var b =
|
|
4263
|
+
if (y && t === e.target && (n = y), n && (i = W(n)), cu(J, t, G, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(G, y.nextSibling) : t.appendChild(G), K = t, v(), _(!0);
|
|
4264
|
+
} else if (y && du(e, f, this)) {
|
|
4265
|
+
var b = Zc(t, 0, o, !0);
|
|
4258
4266
|
if (b === G) return _(!1);
|
|
4259
|
-
if (n = b, i = W(n),
|
|
4267
|
+
if (n = b, i = W(n), cu(J, t, G, r, n, i, e, !1) !== !1) return g(), t.insertBefore(G, b), K = t, v(), _(!0);
|
|
4260
4268
|
} else if (n.parentNode === t) {
|
|
4261
4269
|
i = W(n);
|
|
4262
|
-
var x = 0, S, C = G.parentNode !== t, w =
|
|
4263
|
-
|
|
4270
|
+
var x = 0, S, C = G.parentNode !== t, w = !eu(G.animated && G.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Xc(n, "top", "top") || Xc(G, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
4271
|
+
Bl !== n && (S = i[T], Hl = !1, Ul = !w && o.invertSwap || C), x = pu(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ul, Bl === n);
|
|
4264
4272
|
var D;
|
|
4265
4273
|
if (x !== 0) {
|
|
4266
|
-
var te =
|
|
4274
|
+
var te = $c(G);
|
|
4267
4275
|
do
|
|
4268
4276
|
te -= x, D = K.children[te];
|
|
4269
4277
|
while (D && (U(D, "display") === "none" || D === q));
|
|
4270
4278
|
}
|
|
4271
4279
|
if (x === 0 || D === n) return _(!1);
|
|
4272
|
-
|
|
4280
|
+
Bl = n, Vl = x;
|
|
4273
4281
|
var O = n.nextElementSibling, ne = !1;
|
|
4274
4282
|
ne = x === 1;
|
|
4275
|
-
var re =
|
|
4276
|
-
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1),
|
|
4283
|
+
var re = cu(J, t, G, r, n, i, e, ne);
|
|
4284
|
+
if (re !== !1) return (re === 1 || re === -1) && (ne = re === 1), Kl = !0, setTimeout(uu, 30), g(), ne && !O ? t.appendChild(G) : n.parentNode.insertBefore(G, ne ? O : n), E && cl(E, 0, ee - E.scrollTop), K = G.parentNode, S !== void 0 && !Ul && (Wl = Math.abs(S - W(n)[T])), v(), _(!0);
|
|
4277
4285
|
}
|
|
4278
4286
|
if (t.contains(G)) return _(!1);
|
|
4279
4287
|
}
|
|
@@ -4281,7 +4289,7 @@ Q.prototype = {
|
|
|
4281
4289
|
},
|
|
4282
4290
|
_ignoreWhileAnimating: null,
|
|
4283
4291
|
_offMoveEvents: function() {
|
|
4284
|
-
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover",
|
|
4292
|
+
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", au), H(document, "mousemove", au), H(document, "touchmove", au);
|
|
4285
4293
|
},
|
|
4286
4294
|
_offUpEvents: function() {
|
|
4287
4295
|
var e = this.el.ownerDocument;
|
|
@@ -4289,50 +4297,50 @@ Q.prototype = {
|
|
|
4289
4297
|
},
|
|
4290
4298
|
_onDrop: function(e) {
|
|
4291
4299
|
var t = this.el, n = this.options;
|
|
4292
|
-
if (
|
|
4300
|
+
if (El = $c(G), Ol = $c(G, n.draggable), bl("drop", this, { evt: e }), K = G && G.parentNode, El = $c(G), Ol = $c(G, n.draggable), Q.eventCanceled) {
|
|
4293
4301
|
this._nulling();
|
|
4294
4302
|
return;
|
|
4295
4303
|
}
|
|
4296
|
-
|
|
4304
|
+
Al = !1, Ul = !1, Hl = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), vu(this.cloneId), vu(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Rc && U(document.body, "user-select", ""), U(G, "transform", ""), e && (zl && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), q && q.parentNode && q.parentNode.removeChild(q), (J === K || X && X.lastPutMode !== "clone") && Y && Y.parentNode && Y.parentNode.removeChild(Y), G && (this.nativeDraggable && H(G, "dragend", this), lu(G), G.style["will-change"] = "", zl && !Al && Kc(G, X ? X.options.ghostClass : this.options.ghostClass, !1), Kc(G, this.options.chosenClass, !1), xl({
|
|
4297
4305
|
sortable: this,
|
|
4298
4306
|
name: "unchoose",
|
|
4299
4307
|
toEl: K,
|
|
4300
4308
|
newIndex: null,
|
|
4301
4309
|
newDraggableIndex: null,
|
|
4302
4310
|
originalEvent: e
|
|
4303
|
-
}), J === K ?
|
|
4311
|
+
}), J === K ? El !== Tl && El >= 0 && (xl({
|
|
4304
4312
|
sortable: this,
|
|
4305
4313
|
name: "update",
|
|
4306
4314
|
toEl: K,
|
|
4307
4315
|
originalEvent: e
|
|
4308
|
-
}),
|
|
4316
|
+
}), xl({
|
|
4309
4317
|
sortable: this,
|
|
4310
4318
|
name: "sort",
|
|
4311
4319
|
toEl: K,
|
|
4312
4320
|
originalEvent: e
|
|
4313
|
-
})) : (
|
|
4321
|
+
})) : (El >= 0 && (xl({
|
|
4314
4322
|
rootEl: K,
|
|
4315
4323
|
name: "add",
|
|
4316
4324
|
toEl: K,
|
|
4317
4325
|
fromEl: J,
|
|
4318
4326
|
originalEvent: e
|
|
4319
|
-
}),
|
|
4327
|
+
}), xl({
|
|
4320
4328
|
sortable: this,
|
|
4321
4329
|
name: "remove",
|
|
4322
4330
|
toEl: K,
|
|
4323
4331
|
originalEvent: e
|
|
4324
|
-
}),
|
|
4332
|
+
}), xl({
|
|
4325
4333
|
rootEl: K,
|
|
4326
4334
|
name: "sort",
|
|
4327
4335
|
toEl: K,
|
|
4328
4336
|
fromEl: J,
|
|
4329
4337
|
originalEvent: e
|
|
4330
|
-
}),
|
|
4338
|
+
}), xl({
|
|
4331
4339
|
sortable: this,
|
|
4332
4340
|
name: "sort",
|
|
4333
4341
|
toEl: K,
|
|
4334
4342
|
originalEvent: e
|
|
4335
|
-
})), X && X.save()), Q.active && ((
|
|
4343
|
+
})), X && X.save()), Q.active && ((El == null || El === -1) && (El = Tl, Ol = Dl), xl({
|
|
4336
4344
|
sortable: this,
|
|
4337
4345
|
name: "end",
|
|
4338
4346
|
toEl: K,
|
|
@@ -4340,9 +4348,9 @@ Q.prototype = {
|
|
|
4340
4348
|
}), this.save()))), this._nulling();
|
|
4341
4349
|
},
|
|
4342
4350
|
_nulling: function() {
|
|
4343
|
-
|
|
4351
|
+
bl("nulling", this), J = G = K = q = Sl = Y = Cl = wl = Nl = Pl = zl = El = Ol = Tl = Dl = Bl = Vl = X = kl = Q.dragged = Q.ghost = Q.clone = Q.active = null, ql.forEach(function(e) {
|
|
4344
4352
|
e.checked = !0;
|
|
4345
|
-
}),
|
|
4353
|
+
}), ql.length = Fl = Il = 0;
|
|
4346
4354
|
},
|
|
4347
4355
|
handleEvent: function(e) {
|
|
4348
4356
|
switch (e.type) {
|
|
@@ -4352,7 +4360,7 @@ Q.prototype = {
|
|
|
4352
4360
|
break;
|
|
4353
4361
|
case "dragenter":
|
|
4354
4362
|
case "dragover":
|
|
4355
|
-
G && (this._onDragOver(e),
|
|
4363
|
+
G && (this._onDragOver(e), su(e));
|
|
4356
4364
|
break;
|
|
4357
4365
|
case "selectstart":
|
|
4358
4366
|
e.preventDefault();
|
|
@@ -4360,14 +4368,14 @@ Q.prototype = {
|
|
|
4360
4368
|
}
|
|
4361
4369
|
},
|
|
4362
4370
|
toArray: function() {
|
|
4363
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
4371
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Wc(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || hu(t));
|
|
4364
4372
|
return e;
|
|
4365
4373
|
},
|
|
4366
4374
|
sort: function(e, t) {
|
|
4367
4375
|
var n = {}, r = this.el;
|
|
4368
4376
|
this.toArray().forEach(function(e, t) {
|
|
4369
4377
|
var i = r.children[t];
|
|
4370
|
-
|
|
4378
|
+
Wc(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
4371
4379
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
4372
4380
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
4373
4381
|
}), t && this.animateAll();
|
|
@@ -4377,25 +4385,25 @@ Q.prototype = {
|
|
|
4377
4385
|
e && e.set && e.set(this);
|
|
4378
4386
|
},
|
|
4379
4387
|
closest: function(e, t) {
|
|
4380
|
-
return
|
|
4388
|
+
return Wc(e, t || this.options.draggable, this.el, !1);
|
|
4381
4389
|
},
|
|
4382
4390
|
option: function(e, t) {
|
|
4383
4391
|
var n = this.options;
|
|
4384
4392
|
if (t === void 0) return n[e];
|
|
4385
|
-
var r =
|
|
4386
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
4393
|
+
var r = _l.modifyOption(this, e, t);
|
|
4394
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && nu(n);
|
|
4387
4395
|
},
|
|
4388
4396
|
destroy: function() {
|
|
4389
|
-
|
|
4397
|
+
bl("destroy", this);
|
|
4390
4398
|
var e = this.el;
|
|
4391
|
-
e[
|
|
4399
|
+
e[dl] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
4392
4400
|
e.removeAttribute("draggable");
|
|
4393
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
4401
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ml.splice(Ml.indexOf(this.el), 1), this.el = e = null;
|
|
4394
4402
|
},
|
|
4395
4403
|
_hideClone: function() {
|
|
4396
|
-
if (!
|
|
4397
|
-
if (
|
|
4398
|
-
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y),
|
|
4404
|
+
if (!wl) {
|
|
4405
|
+
if (bl("hideClone", this), Q.eventCanceled) return;
|
|
4406
|
+
U(Y, "display", "none"), this.options.removeCloneOnHide && Y.parentNode && Y.parentNode.removeChild(Y), wl = !0;
|
|
4399
4407
|
}
|
|
4400
4408
|
},
|
|
4401
4409
|
_showClone: function(e) {
|
|
@@ -4403,99 +4411,99 @@ Q.prototype = {
|
|
|
4403
4411
|
this._hideClone();
|
|
4404
4412
|
return;
|
|
4405
4413
|
}
|
|
4406
|
-
if (
|
|
4407
|
-
if (
|
|
4408
|
-
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) :
|
|
4414
|
+
if (wl) {
|
|
4415
|
+
if (bl("showClone", this), Q.eventCanceled) return;
|
|
4416
|
+
G.parentNode == J && !this.options.group.revertClone ? J.insertBefore(Y, G) : Sl ? J.insertBefore(Y, Sl) : J.appendChild(Y), this.options.group.revertClone && this.animate(G, Y), U(Y, "display", ""), wl = !1;
|
|
4409
4417
|
}
|
|
4410
4418
|
}
|
|
4411
4419
|
};
|
|
4412
|
-
function
|
|
4420
|
+
function su(e) {
|
|
4413
4421
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
4414
4422
|
}
|
|
4415
|
-
function
|
|
4416
|
-
var c, l = e[
|
|
4417
|
-
return window.CustomEvent && !
|
|
4423
|
+
function cu(e, t, n, r, i, a, o, s) {
|
|
4424
|
+
var c, l = e[dl], u = l.options.onMove, d;
|
|
4425
|
+
return window.CustomEvent && !Fc && !Ic ? c = new CustomEvent("move", {
|
|
4418
4426
|
bubbles: !0,
|
|
4419
4427
|
cancelable: !0
|
|
4420
4428
|
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || W(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
4421
4429
|
}
|
|
4422
|
-
function
|
|
4430
|
+
function lu(e) {
|
|
4423
4431
|
e.draggable = !1;
|
|
4424
4432
|
}
|
|
4425
|
-
function
|
|
4426
|
-
|
|
4433
|
+
function uu() {
|
|
4434
|
+
Kl = !1;
|
|
4427
4435
|
}
|
|
4428
|
-
function
|
|
4429
|
-
var r = W(
|
|
4436
|
+
function du(e, t, n) {
|
|
4437
|
+
var r = W(Zc(n.el, 0, n.options, !0)), i = ul(n.el, n.options, q), a = 10;
|
|
4430
4438
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
4431
4439
|
}
|
|
4432
|
-
function
|
|
4433
|
-
var r = W(
|
|
4440
|
+
function fu(e, t, n) {
|
|
4441
|
+
var r = W(Qc(n.el, n.options.draggable)), i = ul(n.el, n.options, q), a = 10;
|
|
4434
4442
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
4435
4443
|
}
|
|
4436
|
-
function
|
|
4444
|
+
function pu(e, t, n, r, i, a, o, s) {
|
|
4437
4445
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
4438
4446
|
if (!o) {
|
|
4439
|
-
if (s &&
|
|
4440
|
-
if (!
|
|
4441
|
-
else if (
|
|
4442
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
4447
|
+
if (s && Wl < l * i) {
|
|
4448
|
+
if (!Hl && (Vl === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Hl = !0), Hl) f = !0;
|
|
4449
|
+
else if (Vl === 1 ? c < u + Wl : c > d - Wl) return -Vl;
|
|
4450
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return mu(t);
|
|
4443
4451
|
}
|
|
4444
4452
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
4445
4453
|
}
|
|
4446
|
-
function pu(e) {
|
|
4447
|
-
return Qc(G) < Qc(e) ? 1 : -1;
|
|
4448
|
-
}
|
|
4449
4454
|
function mu(e) {
|
|
4455
|
+
return $c(G) < $c(e) ? 1 : -1;
|
|
4456
|
+
}
|
|
4457
|
+
function hu(e) {
|
|
4450
4458
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
4451
4459
|
return r.toString(36);
|
|
4452
4460
|
}
|
|
4453
|
-
function
|
|
4454
|
-
|
|
4461
|
+
function gu(e) {
|
|
4462
|
+
ql.length = 0;
|
|
4455
4463
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
4456
4464
|
var r = t[n];
|
|
4457
|
-
r.checked &&
|
|
4465
|
+
r.checked && ql.push(r);
|
|
4458
4466
|
}
|
|
4459
4467
|
}
|
|
4460
|
-
function
|
|
4468
|
+
function _u(e) {
|
|
4461
4469
|
return setTimeout(e, 0);
|
|
4462
4470
|
}
|
|
4463
|
-
function
|
|
4471
|
+
function vu(e) {
|
|
4464
4472
|
return clearTimeout(e);
|
|
4465
4473
|
}
|
|
4466
|
-
|
|
4467
|
-
(Q.active ||
|
|
4474
|
+
Jl && V(document, "touchmove", function(e) {
|
|
4475
|
+
(Q.active || Al) && e.cancelable && e.preventDefault();
|
|
4468
4476
|
}), Q.utils = {
|
|
4469
4477
|
on: V,
|
|
4470
4478
|
off: H,
|
|
4471
4479
|
css: U,
|
|
4472
|
-
find:
|
|
4480
|
+
find: Jc,
|
|
4473
4481
|
is: function(e, t) {
|
|
4474
|
-
return !!
|
|
4482
|
+
return !!Wc(e, t, e, !1);
|
|
4475
4483
|
},
|
|
4476
|
-
extend:
|
|
4477
|
-
throttle:
|
|
4478
|
-
closest:
|
|
4479
|
-
toggleClass:
|
|
4480
|
-
clone:
|
|
4481
|
-
index:
|
|
4482
|
-
nextTick:
|
|
4483
|
-
cancelNextTick:
|
|
4484
|
-
detectDirection:
|
|
4485
|
-
getChild:
|
|
4484
|
+
extend: rl,
|
|
4485
|
+
throttle: ol,
|
|
4486
|
+
closest: Wc,
|
|
4487
|
+
toggleClass: Kc,
|
|
4488
|
+
clone: ll,
|
|
4489
|
+
index: $c,
|
|
4490
|
+
nextTick: _u,
|
|
4491
|
+
cancelNextTick: vu,
|
|
4492
|
+
detectDirection: $l,
|
|
4493
|
+
getChild: Zc
|
|
4486
4494
|
}, Q.get = function(e) {
|
|
4487
|
-
return e[
|
|
4495
|
+
return e[dl];
|
|
4488
4496
|
}, Q.mount = function() {
|
|
4489
4497
|
var e = [...arguments];
|
|
4490
4498
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
4491
4499
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
4492
|
-
e.utils && (Q.utils =
|
|
4500
|
+
e.utils && (Q.utils = Dc(Dc({}, Q.utils), e.utils)), _l.mount(e);
|
|
4493
4501
|
});
|
|
4494
4502
|
}, Q.create = function(e, t) {
|
|
4495
4503
|
return new Q(e, t);
|
|
4496
|
-
}, Q.version =
|
|
4497
|
-
var $ = [],
|
|
4498
|
-
function
|
|
4504
|
+
}, Q.version = Nc;
|
|
4505
|
+
var $ = [], yu, bu, xu = !1, Su, Cu, wu, Tu;
|
|
4506
|
+
function Eu() {
|
|
4499
4507
|
function e() {
|
|
4500
4508
|
for (var e in this.defaults = {
|
|
4501
4509
|
scroll: !0,
|
|
@@ -4515,63 +4523,63 @@ function Tu() {
|
|
|
4515
4523
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
4516
4524
|
},
|
|
4517
4525
|
drop: function() {
|
|
4518
|
-
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
4526
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), Ou(), Du(), sl();
|
|
4519
4527
|
},
|
|
4520
4528
|
nulling: function() {
|
|
4521
|
-
|
|
4529
|
+
wu = bu = yu = xu = Tu = Su = Cu = null, $.length = 0;
|
|
4522
4530
|
},
|
|
4523
4531
|
_handleFallbackAutoScroll: function(e) {
|
|
4524
4532
|
this._handleAutoScroll(e, !0);
|
|
4525
4533
|
},
|
|
4526
4534
|
_handleAutoScroll: function(e, t) {
|
|
4527
4535
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
4528
|
-
if (
|
|
4529
|
-
|
|
4530
|
-
var o =
|
|
4531
|
-
|
|
4532
|
-
var a =
|
|
4533
|
-
a !== o && (o = a,
|
|
4534
|
-
}, 10),
|
|
4536
|
+
if (wu = e, t || this.options.forceAutoScrollFallback || Ic || Fc || Rc) {
|
|
4537
|
+
ku(e, this.options, a, t);
|
|
4538
|
+
var o = nl(a, !0);
|
|
4539
|
+
xu && (!Tu || r !== Su || i !== Cu) && (Tu && Ou(), Tu = setInterval(function() {
|
|
4540
|
+
var a = nl(document.elementFromPoint(r, i), !0);
|
|
4541
|
+
a !== o && (o = a, Du()), ku(e, n.options, a, t);
|
|
4542
|
+
}, 10), Su = r, Cu = i);
|
|
4535
4543
|
} else {
|
|
4536
|
-
if (!this.options.bubbleScroll ||
|
|
4537
|
-
|
|
4544
|
+
if (!this.options.bubbleScroll || nl(a, !0) === Yc()) {
|
|
4545
|
+
Du();
|
|
4538
4546
|
return;
|
|
4539
4547
|
}
|
|
4540
|
-
|
|
4548
|
+
ku(e, this.options, nl(a, !1), !1);
|
|
4541
4549
|
}
|
|
4542
4550
|
}
|
|
4543
|
-
},
|
|
4551
|
+
}, Ac(e, {
|
|
4544
4552
|
pluginName: "scroll",
|
|
4545
4553
|
initializeByDefault: !0
|
|
4546
4554
|
});
|
|
4547
4555
|
}
|
|
4548
|
-
function
|
|
4556
|
+
function Du() {
|
|
4549
4557
|
$.forEach(function(e) {
|
|
4550
4558
|
clearInterval(e.pid);
|
|
4551
4559
|
}), $ = [];
|
|
4552
4560
|
}
|
|
4553
|
-
function
|
|
4554
|
-
clearInterval(
|
|
4561
|
+
function Ou() {
|
|
4562
|
+
clearInterval(Tu);
|
|
4555
4563
|
}
|
|
4556
|
-
var
|
|
4564
|
+
var ku = ol(function(e, t, n, r) {
|
|
4557
4565
|
if (t.scroll) {
|
|
4558
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
4559
|
-
|
|
4560
|
-
var d = 0, f =
|
|
4566
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Yc(), l = !1, u;
|
|
4567
|
+
bu !== n && (bu = n, Du(), yu = t.scroll, u = t.scrollFn, yu === !0 && (yu = nl(n, !0)));
|
|
4568
|
+
var d = 0, f = yu;
|
|
4561
4569
|
do {
|
|
4562
4570
|
var p = f, m = W(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = U(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
4563
4571
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
4564
4572
|
var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), te = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
4565
4573
|
if (!$[d]) for (var O = 0; O <= d; O++) $[O] || ($[O] = {});
|
|
4566
4574
|
($[d].vx != D || $[d].vy != te || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = te, clearInterval($[d].pid), (D != 0 || te != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
4567
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
4575
|
+
r && this.layer === 0 && Q.active._onTouchMove(wu);
|
|
4568
4576
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
4569
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[
|
|
4577
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[dl], n, t, e, wu, $[this.layer].el) !== "continue" || cl($[this.layer].el, n, t);
|
|
4570
4578
|
}.bind({ layer: d }), 24))), d++;
|
|
4571
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
4572
|
-
|
|
4579
|
+
} while (t.bubbleScroll && f !== c && (f = nl(f, !1)));
|
|
4580
|
+
xu = l;
|
|
4573
4581
|
}
|
|
4574
|
-
}, 30),
|
|
4582
|
+
}, 30), Au = function(e) {
|
|
4575
4583
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
4576
4584
|
if (t) {
|
|
4577
4585
|
var c = n || i;
|
|
@@ -4583,8 +4591,8 @@ var Ou = al(function(e, t, n, r) {
|
|
|
4583
4591
|
}));
|
|
4584
4592
|
}
|
|
4585
4593
|
};
|
|
4586
|
-
function
|
|
4587
|
-
|
|
4594
|
+
function ju() {}
|
|
4595
|
+
ju.prototype = {
|
|
4588
4596
|
startIndex: null,
|
|
4589
4597
|
dragStart: function(e) {
|
|
4590
4598
|
var t = e.oldDraggableIndex;
|
|
@@ -4593,72 +4601,72 @@ Au.prototype = {
|
|
|
4593
4601
|
onSpill: function(e) {
|
|
4594
4602
|
var t = e.dragEl, n = e.putSortable;
|
|
4595
4603
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
4596
|
-
var r =
|
|
4604
|
+
var r = Zc(this.sortable.el, this.startIndex, this.options);
|
|
4597
4605
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
4598
4606
|
},
|
|
4599
|
-
drop:
|
|
4600
|
-
},
|
|
4601
|
-
function
|
|
4602
|
-
|
|
4607
|
+
drop: Au
|
|
4608
|
+
}, Ac(ju, { pluginName: "revertOnSpill" });
|
|
4609
|
+
function Mu() {}
|
|
4610
|
+
Mu.prototype = {
|
|
4603
4611
|
onSpill: function(e) {
|
|
4604
4612
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
4605
4613
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
4606
4614
|
},
|
|
4607
|
-
drop:
|
|
4608
|
-
},
|
|
4609
|
-
function
|
|
4615
|
+
drop: Au
|
|
4616
|
+
}, Ac(Mu, { pluginName: "removeOnSpill" }), Q.mount(new Eu()), Q.mount(Mu, ju);
|
|
4617
|
+
function Nu(e) {
|
|
4610
4618
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
4611
4619
|
}
|
|
4612
|
-
function
|
|
4620
|
+
function Pu(e) {
|
|
4613
4621
|
oo() && ei(e);
|
|
4614
4622
|
}
|
|
4615
|
-
function
|
|
4623
|
+
function Fu(e) {
|
|
4616
4624
|
oo() ? Xr(e) : jn(e);
|
|
4617
4625
|
}
|
|
4618
|
-
var
|
|
4619
|
-
function
|
|
4620
|
-
|
|
4626
|
+
var Iu = null, Lu = null;
|
|
4627
|
+
function Ru(e = null, t = null) {
|
|
4628
|
+
Iu = e, Lu = t;
|
|
4621
4629
|
}
|
|
4622
|
-
function
|
|
4630
|
+
function zu() {
|
|
4623
4631
|
return {
|
|
4624
|
-
data:
|
|
4625
|
-
clonedData:
|
|
4632
|
+
data: Iu,
|
|
4633
|
+
clonedData: Lu
|
|
4626
4634
|
};
|
|
4627
4635
|
}
|
|
4628
|
-
var
|
|
4629
|
-
function
|
|
4636
|
+
var Bu = Symbol("cloneElement");
|
|
4637
|
+
function Vu(...e) {
|
|
4630
4638
|
let t = oo()?.proxy, n = null, r = e[0], [, i, a] = e;
|
|
4631
4639
|
Array.isArray(I(i)) || (a = i, i = null);
|
|
4632
|
-
let o = null, { immediate: s = !0, clone: c =
|
|
4640
|
+
let o = null, { immediate: s = !0, clone: c = Nu, forceFallback: l, fallbackOnBody: u, customUpdate: d } = I(a) ?? {};
|
|
4633
4641
|
function f(e) {
|
|
4634
4642
|
let { from: t, oldIndex: r, item: a } = e, o = Array.from(t.childNodes);
|
|
4635
4643
|
n = l && !u ? o.slice(0, -1) : o;
|
|
4636
4644
|
let s = I(I(i)?.[r]), d = c(s);
|
|
4637
|
-
|
|
4645
|
+
Ru(s, d), a[Bu] = d;
|
|
4638
4646
|
}
|
|
4639
4647
|
function p(e) {
|
|
4640
|
-
let t = e.item[
|
|
4641
|
-
if (!
|
|
4642
|
-
if (
|
|
4648
|
+
let t = e.item[Bu];
|
|
4649
|
+
if (!hc(t)) {
|
|
4650
|
+
if (vc(e.item), /* @__PURE__ */ F(i)) {
|
|
4643
4651
|
let n = [...I(i)];
|
|
4644
|
-
i.value =
|
|
4652
|
+
i.value = mc(n, e.newDraggableIndex, t);
|
|
4645
4653
|
return;
|
|
4646
4654
|
}
|
|
4647
|
-
|
|
4655
|
+
mc(I(i), e.newDraggableIndex, t);
|
|
4648
4656
|
}
|
|
4649
4657
|
}
|
|
4650
4658
|
function m(e) {
|
|
4651
4659
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, pullMode: o, clone: s } = e;
|
|
4652
|
-
if (
|
|
4653
|
-
|
|
4660
|
+
if (_c(t, n, r), o === "clone") {
|
|
4661
|
+
vc(s);
|
|
4654
4662
|
return;
|
|
4655
4663
|
}
|
|
4656
4664
|
if (/* @__PURE__ */ F(i)) {
|
|
4657
4665
|
let e = [...I(i)];
|
|
4658
|
-
i.value =
|
|
4666
|
+
i.value = pc(e, a);
|
|
4659
4667
|
return;
|
|
4660
4668
|
}
|
|
4661
|
-
|
|
4669
|
+
pc(I(i), a);
|
|
4662
4670
|
}
|
|
4663
4671
|
function h(e) {
|
|
4664
4672
|
if (d) {
|
|
@@ -4666,12 +4674,12 @@ function Bu(...e) {
|
|
|
4666
4674
|
return;
|
|
4667
4675
|
}
|
|
4668
4676
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: a, newDraggableIndex: o } = e;
|
|
4669
|
-
if (
|
|
4677
|
+
if (vc(n), _c(t, n, r), /* @__PURE__ */ F(i)) {
|
|
4670
4678
|
let e = [...I(i)];
|
|
4671
|
-
i.value =
|
|
4679
|
+
i.value = uc(e, a, o);
|
|
4672
4680
|
return;
|
|
4673
4681
|
}
|
|
4674
|
-
|
|
4682
|
+
uc(I(i), a, o);
|
|
4675
4683
|
}
|
|
4676
4684
|
function g(e) {
|
|
4677
4685
|
let { newIndex: t, oldIndex: r, from: i, to: a } = e, o = null, s = t === r && i === a;
|
|
@@ -4689,7 +4697,7 @@ function Bu(...e) {
|
|
|
4689
4697
|
n = null;
|
|
4690
4698
|
}
|
|
4691
4699
|
jn(() => {
|
|
4692
|
-
if (
|
|
4700
|
+
if (Ru(), o) throw o;
|
|
4693
4701
|
});
|
|
4694
4702
|
}
|
|
4695
4703
|
let _ = {
|
|
@@ -4701,19 +4709,19 @@ function Bu(...e) {
|
|
|
4701
4709
|
};
|
|
4702
4710
|
function v(e) {
|
|
4703
4711
|
let n = I(r);
|
|
4704
|
-
return e ||=
|
|
4712
|
+
return e ||= gc(n) ? yc(n, t?.$el) : n, e && !Sc(e) && (e = e.$el), e || lc("Root element not found"), e;
|
|
4705
4713
|
}
|
|
4706
4714
|
function y() {
|
|
4707
|
-
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r =
|
|
4708
|
-
return
|
|
4709
|
-
|
|
4710
|
-
}),
|
|
4715
|
+
let e = I(a) ?? {}, { immediate: t, clone: n } = e, r = oc(e, ["immediate", "clone"]);
|
|
4716
|
+
return Cc(r, (e, t) => {
|
|
4717
|
+
wc(e) && (r[e] = (e, ...n) => (Tc(e, zu()), t(e, ...n)));
|
|
4718
|
+
}), xc(i === null ? {} : _, r);
|
|
4711
4719
|
}
|
|
4712
4720
|
let b = (e) => {
|
|
4713
4721
|
e = v(e), o && x.destroy(), o = new Q(e, y());
|
|
4714
4722
|
};
|
|
4715
4723
|
Qn(() => a, () => {
|
|
4716
|
-
o &&
|
|
4724
|
+
o && Cc(y(), (e, t) => {
|
|
4717
4725
|
o?.option(e, t);
|
|
4718
4726
|
});
|
|
4719
4727
|
}, { deep: !0 });
|
|
@@ -4726,15 +4734,15 @@ function Bu(...e) {
|
|
|
4726
4734
|
toArray: () => o?.toArray(),
|
|
4727
4735
|
closest: (...e) => o?.closest(...e)
|
|
4728
4736
|
};
|
|
4729
|
-
return
|
|
4737
|
+
return Fu(() => {
|
|
4730
4738
|
s && b();
|
|
4731
|
-
}),
|
|
4739
|
+
}), Pu(x.destroy), ac({
|
|
4732
4740
|
start: b,
|
|
4733
4741
|
pause: () => x?.option("disabled", !0),
|
|
4734
4742
|
resume: () => x?.option("disabled", !1)
|
|
4735
4743
|
}, x);
|
|
4736
4744
|
}
|
|
4737
|
-
var
|
|
4745
|
+
var Hu = [
|
|
4738
4746
|
"update",
|
|
4739
4747
|
"start",
|
|
4740
4748
|
"add",
|
|
@@ -4747,7 +4755,7 @@ var Vu = [
|
|
|
4747
4755
|
"clone",
|
|
4748
4756
|
"move",
|
|
4749
4757
|
"change"
|
|
4750
|
-
],
|
|
4758
|
+
], Uu = /* @__PURE__ */ jr({
|
|
4751
4759
|
name: "VueDraggable",
|
|
4752
4760
|
model: {
|
|
4753
4761
|
prop: "modelValue",
|
|
@@ -4797,27 +4805,27 @@ var Vu = [
|
|
|
4797
4805
|
"tag",
|
|
4798
4806
|
"target",
|
|
4799
4807
|
"customUpdate",
|
|
4800
|
-
...
|
|
4808
|
+
...Hu.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
4801
4809
|
],
|
|
4802
|
-
emits: ["update:modelValue", ...
|
|
4810
|
+
emits: ["update:modelValue", ...Hu],
|
|
4803
4811
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
4804
|
-
let a =
|
|
4812
|
+
let a = Hu.reduce((e, t) => {
|
|
4805
4813
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
4806
4814
|
return e[r] = (...e) => n(t, ...e), e;
|
|
4807
4815
|
}, {}), o = To(() => {
|
|
4808
|
-
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r =
|
|
4816
|
+
let t = /* @__PURE__ */ sn(e), { modelValue: n } = t, r = oc(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
4809
4817
|
let r = I(n);
|
|
4810
4818
|
return r !== void 0 && (e[t] = r), e;
|
|
4811
4819
|
}, {});
|
|
4812
|
-
return
|
|
4820
|
+
return ac(ac({}, a), fc(ac(ac({}, i), o)));
|
|
4813
4821
|
}), s = To({
|
|
4814
4822
|
get: () => e.modelValue,
|
|
4815
4823
|
set: (e) => n("update:modelValue", e)
|
|
4816
|
-
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(
|
|
4824
|
+
}), c = /* @__PURE__ */ Xt(), l = /* @__PURE__ */ Rt(Vu(e.target || c, s, o));
|
|
4817
4825
|
return r(l), () => Eo(e.tag || "div", { ref: c }, (t?.default)?.call(t, l));
|
|
4818
4826
|
}
|
|
4819
4827
|
});
|
|
4820
4828
|
//#endregion
|
|
4821
|
-
export { Zt as $, Xr as A, Xn as B, Eo as C, to as D, yi as E, fi as F, Ee as G, Un as H, oi as I, De as J, F as K, ci as L, Pa as M, Gn as N, jn as O, di as P, Vt as Q, zi as R, oo as S, Kn as T, pn as U, Hn as V, on as W, Bt as X, Rt as Y, Xt as Z, Xa as _,
|
|
4829
|
+
export { Zt as $, Xr as A, Xn as B, Eo as C, to as D, yi as E, fi as F, Ee as G, Un as H, oi as I, De as J, F as K, ci as L, Pa as M, Gn as N, jn as O, di as P, Vt as Q, zi as R, oo as S, Kn as T, pn as U, Hn as V, on as W, Bt as X, Rt as Y, Xt as Z, Xa as _, zs as a, vn as at, Br as b, Ks as c, Se as ct, pr as d, P as et, To as f, za as g, Za as h, Xs as i, I as it, ei as j, $r as k, Ws as l, Ba as m, Vo as n, tn as nt, Rs as o, me as ot, Ga as p, qt as q, Zs as r, en as rt, is as s, le as st, Uu as t, un as tt, ka as u, Ya as v, qn as w, jr as x, z as y, Qn as z };
|
|
4822
4830
|
|
|
4823
|
-
//# sourceMappingURL=draggable-
|
|
4831
|
+
//# sourceMappingURL=draggable-Bci-fq8y.js.map
|