@templatical/editor 0.10.1 → 0.10.3
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-Dz5bH1z3.js → AiChatSidebar-BMwpZx-6.js} +14 -14
- package/dist/{AiFeatureMenu-D2Xn0jFx.js → AiFeatureMenu-BqLi9Kh7.js} +8 -8
- package/dist/{BlockIssueBadge-CnqD1cGo.js → BlockIssueBadge-3kNs6WoD.js} +5 -5
- package/dist/{CloudEditor-BizZwsfD.js → CloudEditor-DbyKnqbS.js} +21 -21
- package/dist/{CollaboratorBar-Bn2JDu6l.js → CollaboratorBar-BXLwod21.js} +4 -4
- package/dist/{CommentsSidebar-BAG6rdVC.js → CommentsSidebar-jFZj_CTo.js} +13 -13
- package/dist/{CountdownBlock-B_Hr9Bm9.js → CountdownBlock-S-SCyVye.js} +4 -4
- package/dist/{CountdownToolbar-DaqDLKLk.js → CountdownToolbar-Ckdo-3P-.js} +3 -3
- package/dist/{DesignReferenceSidebar-I9LWjvrj.js → DesignReferenceSidebar-B9QNPZNV.js} +10 -10
- package/dist/{IssuesPanel-B32Ifp4x.js → IssuesPanel-_E_fbSM8.js} +8 -8
- package/dist/{LoadingTrack-UTqOUN4O.js → LoadingTrack-BZ5KJyZ_.js} +2 -2
- package/dist/{ModuleBrowserModal-DodRped1.js → ModuleBrowserModal-Dy3fU2UD.js} +10 -10
- package/dist/{ModulePreviewCanvas-DhcnddJF.js → ModulePreviewCanvas-Cutg3m7U.js} +3 -3
- package/dist/{NumberWithSuffix-DB7GyyCI.js → NumberWithSuffix-BHDXHMpo.js} +3 -3
- package/dist/{ParagraphEditor-pJA9BHAL.js → ParagraphEditor-DkLmn3Nf.js} +24 -24
- package/dist/{RichTextEditorContent-dTGSUff_.js → RichTextEditorContent-COijbaWp.js} +8 -8
- package/dist/{SaveModuleDialog-D634e99d.js → SaveModuleDialog-C6cmHTRI.js} +7 -7
- package/dist/{SnapshotHistory-m_nGAHlb.js → SnapshotHistory-DcLZlAhz.js} +9 -9
- package/dist/{TemplateScoringPanel-BOQh9neV.js → TemplateScoringPanel-Dhf_Qgr7.js} +15 -15
- package/dist/{TestEmailModal-DOcwoKkc.js → TestEmailModal-iRqNzKLT.js} +5 -5
- package/dist/{TitleEditor-t6JMWamY.js → TitleEditor-B-Adnssr.js} +12 -12
- package/dist/{TplModal-BAtbfDB0.js → TplModal-BlqH7CdL.js} +4 -4
- package/dist/{blockTypeIcons-C4lXx3Au.js → blockTypeIcons-upTll6yr.js} +2 -2
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js → AiFeatureMenu-DwZWx_da.js} +4 -4
- package/dist/cdn/chunks/{AiFeatureMenu-BeOyHAoZ.js.map → AiFeatureMenu-DwZWx_da.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js → BlockIssueBadge-ClwC6oSs.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-C6YilQdl.js.map → BlockIssueBadge-ClwC6oSs.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js → CloudEditor-BCfQOcnm.js} +123 -123
- package/dist/cdn/chunks/{CloudEditor-DEA37rdW.js.map → CloudEditor-BCfQOcnm.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js → CollaboratorBar-yz1eW4cW.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-CKW7jOW4.js.map → CollaboratorBar-yz1eW4cW.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js → CountdownBlock-CXQnTPVs.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-DU9ga9Ki.js.map → CountdownBlock-CXQnTPVs.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js → CountdownToolbar-TQGPjSz_.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-BHWsxth7.js.map → CountdownToolbar-TQGPjSz_.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js → IssuesPanel-CTCK-R67.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-BkYhij39.js.map → IssuesPanel-CTCK-R67.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js → ModuleBrowserModal-CFpBtFiA.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-D51w942J.js.map → ModuleBrowserModal-CFpBtFiA.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js → ModulePreviewCanvas-DhAubE2o.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-BqTqcKHS.js.map → ModulePreviewCanvas-DhAubE2o.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js → NumberWithSuffix-DUwFMc_M.js} +3 -3
- package/dist/cdn/chunks/{NumberWithSuffix-DuUcF2zG.js.map → NumberWithSuffix-DUwFMc_M.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js → ParagraphEditor-B3az9xuj.js} +18 -18
- package/dist/cdn/chunks/{ParagraphEditor-Bqjn3ZNm.js.map → ParagraphEditor-B3az9xuj.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js → RichTextEditorContent-DtcHHUSO.js} +5 -5
- package/dist/cdn/chunks/{RichTextEditorContent-mIkkb5EK.js.map → RichTextEditorContent-DtcHHUSO.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js → SaveModuleDialog-Da8g2aeD.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Felfmkcj.js.map → SaveModuleDialog-Da8g2aeD.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js → TitleEditor-jxOFe6Q6.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-Dcldr8D6.js.map → TitleEditor-jxOFe6Q6.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js → blockTypeIcons-Cxjz4oHg.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-D05Wqf5u.js.map → blockTypeIcons-Cxjz4oHg.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js → draggable-BTGr7_-X.js} +19 -19
- package/dist/cdn/chunks/{draggable-J_1CPXYc.js.map → draggable-BTGr7_-X.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-CNmpC18A.js → extensions-2tEgrD-f.js} +4 -4
- package/dist/cdn/chunks/{extensions-CNmpC18A.js.map → extensions-2tEgrD-f.js.map} +1 -1
- package/dist/cdn/chunks/{features-_ar9QbVv.js → features-C3H2u-FV.js} +815 -810
- package/dist/cdn/chunks/features-C3H2u-FV.js.map +1 -0
- package/dist/cdn/chunks/{icons-CnwCLJX-.js → icons-DClusKFv.js} +2 -2
- package/dist/cdn/chunks/{icons-CnwCLJX-.js.map → icons-DClusKFv.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js → liquid.browser-DUDc3U21.js} +10 -10
- package/dist/cdn/chunks/{liquid.browser-rMoPo2t_.js.map → liquid.browser-DUDc3U21.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js → media-library-8bD3x0mc.js} +7 -7
- package/dist/cdn/chunks/{media-library-9jyt7Bf9.js.map → media-library-8bD3x0mc.js.map} +1 -1
- package/dist/cdn/chunks/pusher-CHo5Cua0.js.map +1 -1
- package/dist/cdn/chunks/{quality-CO9mj_RH.js → quality-Dqwx7TdN.js} +530 -530
- package/dist/cdn/chunks/{quality-CO9mj_RH.js.map → quality-Dqwx7TdN.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js → renderer-DwmyVTa2.js} +16 -16
- package/dist/cdn/chunks/{renderer-m6XTCWCL.js.map → renderer-DwmyVTa2.js.map} +1 -1
- package/dist/cdn/chunks/{src-DfMSYqvE.js → src-C2v-Zix_.js} +6 -6
- package/dist/cdn/chunks/{src-DfMSYqvE.js.map → src-C2v-Zix_.js.map} +1 -1
- package/dist/cdn/chunks/{styles-1uFWdD5T.js → styles-CwetU6QM.js} +143 -143
- package/dist/cdn/chunks/styles-CwetU6QM.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-CJbIm_hE.js → tiptap-P5abGB13.js} +4434 -2577
- package/dist/cdn/chunks/tiptap-P5abGB13.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +100 -100
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-Bs6_uQpm.js → check-KooI2jyS.js} +1 -1
- package/dist/{chevron-down-so1rnGwF.js → chevron-down-mnlFgueW.js} +1 -1
- package/dist/{circle-alert-CrKv0AuW.js → circle-alert-D89_hB8j.js} +1 -1
- package/dist/{clock-Cpx6GYpa.js → clock-BaadyUrg.js} +1 -1
- package/dist/{cloud-bHhCNRZa.js → cloud-D-FScaHx.js} +2 -2
- package/dist/{createLucideIcon-DFBxEm5K.js → createLucideIcon-D-6fpD2L.js} +1 -1
- package/dist/{dist-DwEpKyry.js → dist-BttO3Zdx.js} +44 -44
- package/dist/{dist-CMkZaqX1.js → dist-C1WcikEF.js} +5 -5
- package/dist/dist-CjULgTep.js +4072 -0
- package/dist/{dist-BufRk8ZY.js → dist-D6L_WdRL.js} +95 -85
- package/dist/{dist-DJ5YJLXn.js → dist-DaajG7Fo.js} +5 -5
- package/dist/dist-Df4eV6Zi.js +5 -0
- package/dist/{dist-BejBMbBX.js → dist-Dnqx5UF3.js} +171 -158
- package/dist/{dist-CIK3BYgh.js → dist-Drp5bNAu.js} +5 -5
- package/dist/dist-WJ1fVd5b.js +5 -0
- package/dist/{dist-CoaWXQ7N.js → dist-XA2i70J5.js} +8 -8
- package/dist/{dist-74n2Mqc6.js → dist-b52vYHb5.js} +2 -2
- package/dist/{dist-2-A7SaKm.js → dist-cl33Ip6W.js} +1 -1
- package/dist/{dist-0RguD1vS.js → dist-sqf7pq5q.js} +16 -16
- package/dist/{dist-B3CcePtK.js → dist-zInT3Lf6.js} +75 -57
- package/dist/{extensions-C810eSzv.js → extensions-DA-w1gVg.js} +29 -29
- package/dist/{image-up-kMLE5GsI.js → image-up-DjwfAom6.js} +1 -1
- package/dist/{info-xqRxLfNz.js → info-Db3HlTr8.js} +1 -1
- package/dist/{keys-BoYBr3PU.js → keys-BjmL5YCT.js} +1 -1
- package/dist/{liquid.browser-IgQrXHPQ.js → liquid.browser--qtl1Fqy.js} +9 -9
- package/dist/{list-checks-C81htkBJ.js → list-checks-BlAB0X8a.js} +1 -1
- package/dist/{loader-circle-C6cZPIum.js → loader-circle-EVqyIxjU.js} +1 -1
- package/dist/{message-circle-dqOBRe07.js → message-circle-BuI5pBVG.js} +1 -1
- package/dist/{refresh-cw-DCjNd6o0.js → refresh-cw-C2vM_6zQ.js} +1 -1
- package/dist/{scan-line-DXz0nZVJ.js → scan-line-AUIh_SHI.js} +1 -1
- package/dist/{send-C4uH_WaI.js → send-nrbwF7xg.js} +1 -1
- package/dist/{shield-check-B3U68ssA.js → shield-check-B55Ozmva.js} +1 -1
- package/dist/{sparkles-CsDweGUy.js → sparkles-oh1NUSFq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-CBlNpqL9.js → styles-DMh_bHK0.js} +34 -34
- package/dist/templatical-editor.js +81 -80
- package/dist/{text-align-start-BkKQePFp.js → text-align-start-B2MqzZwU.js} +1 -1
- package/dist/{trash-2-BIOkaEz1.js → trash-2-DH8RBwAx.js} +1 -1
- package/dist/{triangle-alert-Bbgu6uUG.js → triangle-alert-BQHjCt3B.js} +1 -1
- package/dist/{useAliveFlag-Bc99FWyR.js → useAliveFlag-B_b9ubwD.js} +1 -1
- package/dist/{useCloudI18n-DiwsLi6z.js → useCloudI18n-BHCrmQgj.js} +2 -2
- package/dist/{useEditorCore-7c1QpPlw.js → useEditorCore-wBmdLj66.js} +368 -375
- package/dist/{useI18n-DskZMfRJ.js → useI18n-Bb9-ha9X.js} +2 -2
- package/dist/{useMergeTag-Co4xYwG6.js → useMergeTag-HykzEtBn.js} +3 -3
- package/dist/usePopoverRoot-BZDkRRry.js +8 -0
- package/dist/{vue.runtime.esm-bundler-D0Hg03Ub.js → vue.runtime.esm-bundler-MzYCkFSH.js} +18 -18
- package/dist/{x-DWU6NCuE.js → x-DgCCENgP.js} +1 -1
- package/package.json +25 -25
- package/dist/cdn/chunks/features-_ar9QbVv.js.map +0 -1
- package/dist/cdn/chunks/styles-1uFWdD5T.js.map +0 -1
- package/dist/cdn/chunks/tiptap-CJbIm_hE.js.map +0 -1
- package/dist/dist-Bvje_Tqb.js +0 -5
- package/dist/dist-BxHa6kIT.js +0 -2243
- package/dist/dist-D1YvgM6p.js +0 -5
- package/dist/usePopoverRoot-DYH_gX8o.js +0 -8
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { A as e, B as t, D as n, E as r, F as i, G as a, J as o, L as s, M as c, N as l, O as u, Q as d, S as f, U as p, V as m, X as h, Y as g, _, at as v, b as y, c as b, d as x, et as S, f as C, h as w, it as T, j as E, k as ee, l as D, m as O, nt as k, o as te, ot as A, p as ne, q as re, rt as j, s as ie, st as M, v as N, w as
|
|
2
|
-
import { A as
|
|
3
|
-
import { c as Ne, i as Pe, l as Fe, n as Ie, o as Le, r as Re, u as ze } from "./dist-
|
|
4
|
-
import { A as Be, C as Ve, M as He, O as Ue, S as We, T as Ge, _ as Ke, a as qe, b as Je, d as Ye, f as Xe, g as Ze, h as Qe, i as $e, j as et, k as tt, m as nt, n as rt, o as it, p as at, s as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./keys-
|
|
5
|
-
import { t as ft } from "./useI18n-
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as pt } from "./message-circle-
|
|
8
|
-
import { t as mt } from "./trash-2-
|
|
9
|
-
import { t as ht } from "./triangle-alert-
|
|
10
|
-
import { t as gt } from "./LoadingTrack-
|
|
1
|
+
import { A as e, B as t, D as n, E as r, F as i, G as a, J as o, L as s, M as c, N as l, O as u, Q as d, S as f, U as p, V as m, X as h, Y as g, _, at as v, b as y, c as b, d as x, et as S, f as C, h as w, it as T, j as E, k as ee, l as D, m as O, nt as k, o as te, ot as A, p as ne, q as re, rt as j, s as ie, st as M, v as N, w as P, x as ae, y as oe, z as se } from "./vue.runtime.esm-bundler-MzYCkFSH.js";
|
|
2
|
+
import { A as ce, E as le, M as ue, S as de, T as fe, _ as pe, a as me, b as he, c as ge, d as _e, f as ve, g as ye, h as be, j as xe, k as Se, l as Ce, m as we, o as Te, p as Ee, s as De, t as Oe, u as ke, v as Ae, x as je, y as Me } from "./dist-D6L_WdRL.js";
|
|
3
|
+
import { c as Ne, i as Pe, l as Fe, n as Ie, o as Le, r as Re, u as ze } from "./dist-cl33Ip6W.js";
|
|
4
|
+
import { A as Be, C as Ve, M as He, O as Ue, S as We, T as Ge, _ as Ke, a as qe, b as Je, d as Ye, f as Xe, g as Ze, h as Qe, i as $e, j as et, k as tt, m as nt, n as rt, o as it, p as at, s as ot, u as st, v as ct, w as lt, x as ut, y as dt } from "./keys-BjmL5YCT.js";
|
|
5
|
+
import { t as ft } from "./useI18n-Bb9-ha9X.js";
|
|
6
|
+
import { t as F } from "./createLucideIcon-D-6fpD2L.js";
|
|
7
|
+
import { t as pt } from "./message-circle-BuI5pBVG.js";
|
|
8
|
+
import { t as mt } from "./trash-2-DH8RBwAx.js";
|
|
9
|
+
import { t as ht } from "./triangle-alert-BQHjCt3B.js";
|
|
10
|
+
import { t as gt } from "./LoadingTrack-BZ5KJyZ_.js";
|
|
11
11
|
import { t as _t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
-
import "./useCloudI18n-
|
|
13
|
-
import { t as vt } from "./useMergeTag-
|
|
14
|
-
import { t as yt } from "./useAliveFlag-
|
|
12
|
+
import "./useCloudI18n-BHCrmQgj.js";
|
|
13
|
+
import { t as vt } from "./useMergeTag-HykzEtBn.js";
|
|
14
|
+
import { t as yt } from "./useAliveFlag-B_b9ubwD.js";
|
|
15
15
|
//#region ../core/dist/index.js
|
|
16
16
|
function bt(e) {
|
|
17
17
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
@@ -171,14 +171,7 @@ var St = 50, Ct = 300, wt = 1500;
|
|
|
171
171
|
function Tt(e) {
|
|
172
172
|
let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = St } = e, a = h([]), o = h([]), s = h(!1), c = null, l = null, u = m(() => a.value.length > 0), d = m(() => o.value.length > 0);
|
|
173
173
|
function f() {
|
|
174
|
-
|
|
175
|
-
return JSON.parse(JSON.stringify(t.value, (t, n) => {
|
|
176
|
-
if (typeof n == "object" && n) {
|
|
177
|
-
if (e.has(n)) return;
|
|
178
|
-
e.add(n);
|
|
179
|
-
}
|
|
180
|
-
return n;
|
|
181
|
-
}));
|
|
174
|
+
return ue(t.value);
|
|
182
175
|
}
|
|
183
176
|
function p(e) {
|
|
184
177
|
a.value.push(e), a.value.length > i && a.value.splice(0, a.value.length - i);
|
|
@@ -690,7 +683,7 @@ function qt() {
|
|
|
690
683
|
let t = o(e.customType);
|
|
691
684
|
if (!t) return s("Block definition not found");
|
|
692
685
|
try {
|
|
693
|
-
let { Liquid: n } = await import("./liquid.browser
|
|
686
|
+
let { Liquid: n } = await import("./liquid.browser--qtl1Fqy.js");
|
|
694
687
|
return await new n({
|
|
695
688
|
strictVariables: !1,
|
|
696
689
|
strictFilters: !1
|
|
@@ -735,7 +728,7 @@ function Yt(e) {
|
|
|
735
728
|
}
|
|
736
729
|
function Xt(e, t) {
|
|
737
730
|
for (let n of e) {
|
|
738
|
-
if (
|
|
731
|
+
if (le(n)) {
|
|
739
732
|
t.add(n.customType);
|
|
740
733
|
continue;
|
|
741
734
|
}
|
|
@@ -887,10 +880,10 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
887
880
|
onClick: i[0] ||= b(() => {}, ["prevent"])
|
|
888
881
|
}, M(t.block.text), 13, nn)]));
|
|
889
882
|
}
|
|
890
|
-
}), an =
|
|
883
|
+
}), an = F("bookmark", [["path", {
|
|
891
884
|
d: "M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",
|
|
892
885
|
key: "oz39mx"
|
|
893
|
-
}]]), on =
|
|
886
|
+
}]]), on = F("box", [
|
|
894
887
|
["path", {
|
|
895
888
|
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",
|
|
896
889
|
key: "hh9hay"
|
|
@@ -903,13 +896,13 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
903
896
|
d: "M12 22V12",
|
|
904
897
|
key: "d0xqtd"
|
|
905
898
|
}]
|
|
906
|
-
]), sn =
|
|
899
|
+
]), sn = F("code", [["path", {
|
|
907
900
|
d: "m16 18 6-6-6-6",
|
|
908
901
|
key: "eg8j8"
|
|
909
902
|
}], ["path", {
|
|
910
903
|
d: "m8 6-6 6 6 6",
|
|
911
904
|
key: "ppft3o"
|
|
912
|
-
}]]), cn =
|
|
905
|
+
}]]), cn = F("copy", [["rect", {
|
|
913
906
|
width: "14",
|
|
914
907
|
height: "14",
|
|
915
908
|
x: "8",
|
|
@@ -920,7 +913,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
920
913
|
}], ["path", {
|
|
921
914
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
922
915
|
key: "zix9uf"
|
|
923
|
-
}]]), ln =
|
|
916
|
+
}]]), ln = F("eye-off", [
|
|
924
917
|
["path", {
|
|
925
918
|
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
|
|
926
919
|
key: "ct8e1f"
|
|
@@ -937,10 +930,10 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
937
930
|
d: "m2 2 20 20",
|
|
938
931
|
key: "1ooewy"
|
|
939
932
|
}]
|
|
940
|
-
]), un =
|
|
933
|
+
]), un = F("funnel", [["path", {
|
|
941
934
|
d: "M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",
|
|
942
935
|
key: "sc7q7i"
|
|
943
|
-
}]]), dn =
|
|
936
|
+
}]]), dn = F("grip-vertical", [
|
|
944
937
|
["circle", {
|
|
945
938
|
cx: "9",
|
|
946
939
|
cy: "12",
|
|
@@ -977,7 +970,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
977
970
|
r: "1",
|
|
978
971
|
key: "f4zoj3"
|
|
979
972
|
}]
|
|
980
|
-
]), fn =
|
|
973
|
+
]), fn = F("image", [
|
|
981
974
|
["rect", {
|
|
982
975
|
width: "18",
|
|
983
976
|
height: "18",
|
|
@@ -997,13 +990,13 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
997
990
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
998
991
|
key: "1xmnt7"
|
|
999
992
|
}]
|
|
1000
|
-
]), pn =
|
|
993
|
+
]), pn = F("navigation", [["polygon", {
|
|
1001
994
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
1002
995
|
key: "1ltx0t"
|
|
1003
|
-
}]]), mn =
|
|
996
|
+
}]]), mn = F("puzzle", [["path", {
|
|
1004
997
|
d: "M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",
|
|
1005
998
|
key: "w46dr5"
|
|
1006
|
-
}]]), hn =
|
|
999
|
+
}]]), hn = F("share-2", [
|
|
1007
1000
|
["circle", {
|
|
1008
1001
|
cx: "18",
|
|
1009
1002
|
cy: "5",
|
|
@@ -1036,7 +1029,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
1036
1029
|
y2: "10.49",
|
|
1037
1030
|
key: "1n3mei"
|
|
1038
1031
|
}]
|
|
1039
|
-
]), gn =
|
|
1032
|
+
]), gn = F("table", [
|
|
1040
1033
|
["path", {
|
|
1041
1034
|
d: "M12 3v18",
|
|
1042
1035
|
key: "108xh3"
|
|
@@ -1057,7 +1050,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
1057
1050
|
d: "M3 15h18",
|
|
1058
1051
|
key: "5xshup"
|
|
1059
1052
|
}]
|
|
1060
|
-
]), _n =
|
|
1053
|
+
]), _n = F("video", [["path", {
|
|
1061
1054
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
1062
1055
|
key: "ftymec"
|
|
1063
1056
|
}], ["rect", {
|
|
@@ -1104,7 +1097,7 @@ var tn = { class: "tpl:text-center" }, nn = ["href"], rn = /* @__PURE__ */ y({
|
|
|
1104
1097
|
//#endregion
|
|
1105
1098
|
//#region src/composables/useEditorRoot.ts
|
|
1106
1099
|
function xn() {
|
|
1107
|
-
return
|
|
1100
|
+
return P(Qe, document) ?? document;
|
|
1108
1101
|
}
|
|
1109
1102
|
//#endregion
|
|
1110
1103
|
//#region src/composables/useFocusTrap.ts
|
|
@@ -1392,7 +1385,7 @@ function An(e) {
|
|
|
1392
1385
|
//#endregion
|
|
1393
1386
|
//#region src/composables/useRichTextEditor.ts
|
|
1394
1387
|
function jn(e) {
|
|
1395
|
-
let t =
|
|
1388
|
+
let t = P(nt, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = vt(), f = P(Be, null), p = (a(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = fe(l), g = d(null), { showLinkDialog: _, linkUrl: v, linkDialogRef: y, openLinkDialog: b, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w } = An(g), { start: T, stop: E } = Ne(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = d(null), D = h(!0), O = h(null), k = !1;
|
|
1396
1389
|
async function te() {
|
|
1397
1390
|
O.value = null, D.value = !0;
|
|
1398
1391
|
try {
|
|
@@ -1491,7 +1484,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
|
|
|
1491
1484
|
},
|
|
1492
1485
|
emits: ["fetchData"],
|
|
1493
1486
|
setup(t, { emit: n }) {
|
|
1494
|
-
let r = t, i = n, { t: a } = ft(), o =
|
|
1487
|
+
let r = t, i = n, { t: a } = ft(), o = P(it, null), c = h(""), l = h(!1), d = x(() => o?.getDefinition(r.block.customType)), f = x(() => !!d.value), { isFetching: p, fetch: m, needsFetch: g, hasDataSource: v } = At({
|
|
1495
1488
|
definition: d,
|
|
1496
1489
|
block: x(() => r.block),
|
|
1497
1490
|
onUpdate: (e, t) => {
|
|
@@ -1587,7 +1580,7 @@ var Mn = { class: "tpl:w-full" }, Nn = {
|
|
|
1587
1580
|
},
|
|
1588
1581
|
emits: ["update"],
|
|
1589
1582
|
setup(t, { emit: n }) {
|
|
1590
|
-
let r = t, i = n, { t: a } = ft(), { syntax: o } = vt(), s =
|
|
1583
|
+
let r = t, i = n, { t: a } = ft(), { syntax: o } = vt(), s = P(Ve, null), c = x(() => !!s), l = yt();
|
|
1591
1584
|
async function u() {
|
|
1592
1585
|
let e = await s?.({ accept: ["images"] });
|
|
1593
1586
|
if (l.alive && e) {
|
|
@@ -1777,7 +1770,7 @@ function mr(e) {
|
|
|
1777
1770
|
//#endregion
|
|
1778
1771
|
//#region src/composables/useEditableTextBlock.ts
|
|
1779
1772
|
function hr(e) {
|
|
1780
|
-
let t =
|
|
1773
|
+
let t = P(dt, []), { syntax: n } = vt(), r = x(() => mr(Se(ce(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = Ie(a), c = x(() => ({
|
|
1781
1774
|
top: o.value - 8,
|
|
1782
1775
|
left: s.value
|
|
1783
1776
|
}));
|
|
@@ -1805,7 +1798,7 @@ var gr = ["innerHTML"], _r = /* @__PURE__ */ y({
|
|
|
1805
1798
|
viewport: {}
|
|
1806
1799
|
},
|
|
1807
1800
|
setup(t) {
|
|
1808
|
-
let n = t, r =
|
|
1801
|
+
let n = t, r = oe(() => import("./ParagraphEditor-DkLmn3Nf.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = hr(() => n.block.content);
|
|
1809
1802
|
return (n, u) => (e(), w("div", {
|
|
1810
1803
|
ref_key: "blockRef",
|
|
1811
1804
|
ref: a,
|
|
@@ -1858,7 +1851,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1858
1851
|
}, kr = ["aria-label", "title"], Ar = {
|
|
1859
1852
|
key: 3,
|
|
1860
1853
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1861
|
-
}, jr = ["aria-label"], Mr =
|
|
1854
|
+
}, jr = ["aria-label"], Mr = /*#__PURE__*/ _t(/* @__PURE__ */ y({
|
|
1862
1855
|
__name: "BlockWrapper",
|
|
1863
1856
|
props: {
|
|
1864
1857
|
block: {},
|
|
@@ -1868,7 +1861,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1868
1861
|
},
|
|
1869
1862
|
emits: ["select"],
|
|
1870
1863
|
setup(t, { emit: n }) {
|
|
1871
|
-
let i =
|
|
1864
|
+
let i = oe(() => import("./BlockIssueBadge-3kNs6WoD.js")), a = t, o = n, { t: s, format: c } = ft(), u = P(ct, null), d = h(null), f = x(() => u?.liftedBlockId.value === a.block.id), p = x(() => f.value ? c(s.blockActions.dragLifted, { block: a.block.type }) : s.blockActions.drag);
|
|
1872
1865
|
async function m() {
|
|
1873
1866
|
await r(), d.value?.focus();
|
|
1874
1867
|
}
|
|
@@ -1894,7 +1887,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1894
1887
|
let y = x(() => !a.viewport || !a.block.visibility ? !1 : a.block.visibility[a.viewport] === !1), S = x(() => a.previewMode === !0 && y.value), T = x(() => a.viewport ? {
|
|
1895
1888
|
desktop: s.viewport.desktop,
|
|
1896
1889
|
mobile: s.viewport.mobile
|
|
1897
|
-
}[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee =
|
|
1890
|
+
}[a.viewport] ?? a.viewport : ""), E = x(() => !!a.block.displayCondition), ee = P($e, null), D = P(st, null), k = P(ot, {}), te = x(() => !!k.savedModules), ne = x(() => k.comments?.getBlockCount(a.block.id) ?? 0), re = x(() => {
|
|
1898
1891
|
let e = yr(a.block);
|
|
1899
1892
|
return {
|
|
1900
1893
|
padding: e.padding,
|
|
@@ -1904,16 +1897,16 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1904
1897
|
function ie(e) {
|
|
1905
1898
|
a.previewMode || (e.stopPropagation(), o("select"));
|
|
1906
1899
|
}
|
|
1907
|
-
function
|
|
1900
|
+
function ae() {
|
|
1908
1901
|
ee?.deleteBlock(a.block.id);
|
|
1909
1902
|
}
|
|
1910
|
-
function
|
|
1903
|
+
function se() {
|
|
1911
1904
|
ee?.duplicateBlock(a.block);
|
|
1912
1905
|
}
|
|
1913
|
-
function
|
|
1906
|
+
function ce() {
|
|
1914
1907
|
k.savedModules?.openSaveDialog(a.block.id);
|
|
1915
1908
|
}
|
|
1916
|
-
function
|
|
1909
|
+
function le() {
|
|
1917
1910
|
D?.toggleBlock(a.block.id);
|
|
1918
1911
|
}
|
|
1919
1912
|
return (n, r) => S.value ? O("", !0) : (e(), w("div", {
|
|
@@ -1951,7 +1944,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1951
1944
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
1952
1945
|
"aria-label": j(s).blockActions.duplicate,
|
|
1953
1946
|
title: j(s).blockActions.duplicate,
|
|
1954
|
-
onClick: b(
|
|
1947
|
+
onClick: b(se, ["stop"])
|
|
1955
1948
|
}, [N(j(cn), {
|
|
1956
1949
|
size: 14,
|
|
1957
1950
|
"stroke-width": 1.5
|
|
@@ -1961,7 +1954,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1961
1954
|
class: "tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
1962
1955
|
"aria-label": j(s).blockActions.saveAsModule,
|
|
1963
1956
|
title: j(s).blockActions.saveAsModule,
|
|
1964
|
-
onClick: b(
|
|
1957
|
+
onClick: b(ce, ["stop"])
|
|
1965
1958
|
}, [N(j(an), {
|
|
1966
1959
|
size: 14,
|
|
1967
1960
|
"stroke-width": 1.5
|
|
@@ -1970,7 +1963,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1970
1963
|
class: "tpl-block-action-btn tpl-block-delete-btn tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150",
|
|
1971
1964
|
"aria-label": j(s).blockActions.delete,
|
|
1972
1965
|
title: j(s).blockActions.delete,
|
|
1973
|
-
onClick: b(
|
|
1966
|
+
onClick: b(ae, ["stop"])
|
|
1974
1967
|
}, [N(j(mt), {
|
|
1975
1968
|
size: 14,
|
|
1976
1969
|
"stroke-width": 1.5
|
|
@@ -1984,7 +1977,7 @@ var br = ["data-block-id", "data-block-type"], xr = ["aria-label"], Sr = [
|
|
|
1984
1977
|
class: "tpl-condition-toggle tpl:flex tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:p-1 tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-primary)] tpl:border tpl:border-[var(--tpl-border)]",
|
|
1985
1978
|
"aria-label": j(s).blockActions.conditionToggle,
|
|
1986
1979
|
title: t.block.displayCondition?.label,
|
|
1987
|
-
onClick: b(
|
|
1980
|
+
onClick: b(le, ["stop"])
|
|
1988
1981
|
}, [N(j(un), {
|
|
1989
1982
|
size: 12,
|
|
1990
1983
|
"stroke-width": 2
|
|
@@ -2019,7 +2012,7 @@ var Pr = /* @__PURE__ */ y({
|
|
|
2019
2012
|
viewport: {}
|
|
2020
2013
|
},
|
|
2021
2014
|
setup(t) {
|
|
2022
|
-
let n = t, r =
|
|
2015
|
+
let n = t, r = oe(() => import("./TitleEditor-B-Adnssr.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = hr(() => n.block.content), d = x(() => {
|
|
2023
2016
|
let e = {
|
|
2024
2017
|
fontSize: `${Oe[n.block.level]}px`,
|
|
2025
2018
|
color: n.block.color,
|
|
@@ -2194,10 +2187,10 @@ var gi = hi(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), _i = hi(/E
|
|
|
2194
2187
|
capture: !1,
|
|
2195
2188
|
passive: !1
|
|
2196
2189
|
};
|
|
2197
|
-
function
|
|
2190
|
+
function I(e, t, n) {
|
|
2198
2191
|
e.addEventListener(t, n, !gi && Si);
|
|
2199
2192
|
}
|
|
2200
|
-
function
|
|
2193
|
+
function L(e, t, n) {
|
|
2201
2194
|
e.removeEventListener(t, n, !gi && Si);
|
|
2202
2195
|
}
|
|
2203
2196
|
function Ci(e, t) {
|
|
@@ -2226,10 +2219,10 @@ function Ti(e, t, n, r) {
|
|
|
2226
2219
|
return null;
|
|
2227
2220
|
}
|
|
2228
2221
|
var Ei = /\s+/g;
|
|
2229
|
-
function
|
|
2222
|
+
function R(e, t, n) {
|
|
2230
2223
|
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Ei, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Ei, " "));
|
|
2231
2224
|
}
|
|
2232
|
-
function
|
|
2225
|
+
function z(e, t, n) {
|
|
2233
2226
|
var r = e && e.style;
|
|
2234
2227
|
if (r) {
|
|
2235
2228
|
if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
@@ -2240,7 +2233,7 @@ function Di(e, t) {
|
|
|
2240
2233
|
var n = "";
|
|
2241
2234
|
if (typeof e == "string") n = e;
|
|
2242
2235
|
else do {
|
|
2243
|
-
var r =
|
|
2236
|
+
var r = z(e, "transform");
|
|
2244
2237
|
r && r !== "none" && (n = r + " " + n);
|
|
2245
2238
|
} while (!t && (e = e.parentNode));
|
|
2246
2239
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
@@ -2257,13 +2250,13 @@ function Oi(e, t, n) {
|
|
|
2257
2250
|
function ki() {
|
|
2258
2251
|
return document.scrollingElement || document.documentElement;
|
|
2259
2252
|
}
|
|
2260
|
-
function
|
|
2253
|
+
function B(e, t, n, r, i) {
|
|
2261
2254
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2262
2255
|
var a, o, s, c, l, u, d;
|
|
2263
2256
|
if (e !== window && e.parentNode && e !== ki() ? (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, !gi)) do
|
|
2264
|
-
if (i && i.getBoundingClientRect && (
|
|
2257
|
+
if (i && i.getBoundingClientRect && (z(i, "transform") !== "none" || n && z(i, "position") !== "static")) {
|
|
2265
2258
|
var f = i.getBoundingClientRect();
|
|
2266
|
-
o -= f.top + parseInt(
|
|
2259
|
+
o -= f.top + parseInt(z(i, "border-top-width")), s -= f.left + parseInt(z(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
2267
2260
|
break;
|
|
2268
2261
|
}
|
|
2269
2262
|
while (i = i.parentNode);
|
|
@@ -2282,11 +2275,11 @@ function z(e, t, n, r, i) {
|
|
|
2282
2275
|
}
|
|
2283
2276
|
}
|
|
2284
2277
|
function Ai(e, t, n) {
|
|
2285
|
-
for (var r =
|
|
2286
|
-
var a =
|
|
2278
|
+
for (var r = Ii(e, !0), i = B(e)[t]; r;) {
|
|
2279
|
+
var a = B(r)[n], o = void 0;
|
|
2287
2280
|
if (o = i >= a, !o) return r;
|
|
2288
2281
|
if (r === ki()) break;
|
|
2289
|
-
r =
|
|
2282
|
+
r = Ii(r, !1);
|
|
2290
2283
|
}
|
|
2291
2284
|
return !1;
|
|
2292
2285
|
}
|
|
@@ -2301,16 +2294,16 @@ function ji(e, t, n, r) {
|
|
|
2301
2294
|
return null;
|
|
2302
2295
|
}
|
|
2303
2296
|
function Mi(e, t) {
|
|
2304
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost ||
|
|
2297
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || z(n, "display") === "none" || t && !Ci(n, t));) n = n.previousElementSibling;
|
|
2305
2298
|
return n || null;
|
|
2306
2299
|
}
|
|
2307
|
-
function
|
|
2300
|
+
function Ni(e, t) {
|
|
2308
2301
|
var n = 0;
|
|
2309
2302
|
if (!e || !e.parentNode) return -1;
|
|
2310
2303
|
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || Ci(e, t)) && n++;
|
|
2311
2304
|
return n;
|
|
2312
2305
|
}
|
|
2313
|
-
function
|
|
2306
|
+
function Pi(e) {
|
|
2314
2307
|
var t = 0, n = 0, r = ki();
|
|
2315
2308
|
if (e) do {
|
|
2316
2309
|
var i = Di(e), a = i.a, o = i.d;
|
|
@@ -2318,18 +2311,18 @@ function Ni(e) {
|
|
|
2318
2311
|
} while (e !== r && (e = e.parentNode));
|
|
2319
2312
|
return [t, n];
|
|
2320
2313
|
}
|
|
2321
|
-
function
|
|
2314
|
+
function Fi(e, t) {
|
|
2322
2315
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2323
2316
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2324
2317
|
}
|
|
2325
2318
|
return -1;
|
|
2326
2319
|
}
|
|
2327
|
-
function
|
|
2320
|
+
function Ii(e, t) {
|
|
2328
2321
|
if (!e || !e.getBoundingClientRect) return ki();
|
|
2329
2322
|
var n = e, r = !1;
|
|
2330
2323
|
do
|
|
2331
2324
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2332
|
-
var i =
|
|
2325
|
+
var i = z(n);
|
|
2333
2326
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2334
2327
|
if (!n.getBoundingClientRect || n === document.body) return ki();
|
|
2335
2328
|
if (r || t) return n;
|
|
@@ -2339,53 +2332,53 @@ function Fi(e, t) {
|
|
|
2339
2332
|
while (n = n.parentNode);
|
|
2340
2333
|
return ki();
|
|
2341
2334
|
}
|
|
2342
|
-
function
|
|
2335
|
+
function Li(e, t) {
|
|
2343
2336
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2344
2337
|
return e;
|
|
2345
2338
|
}
|
|
2346
|
-
function
|
|
2339
|
+
function Ri(e, t) {
|
|
2347
2340
|
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);
|
|
2348
2341
|
}
|
|
2349
|
-
var
|
|
2350
|
-
function
|
|
2342
|
+
var zi;
|
|
2343
|
+
function Bi(e, t) {
|
|
2351
2344
|
return function() {
|
|
2352
|
-
if (!
|
|
2345
|
+
if (!zi) {
|
|
2353
2346
|
var n = arguments, r = this;
|
|
2354
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2355
|
-
|
|
2347
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), zi = setTimeout(function() {
|
|
2348
|
+
zi = void 0;
|
|
2356
2349
|
}, t);
|
|
2357
2350
|
}
|
|
2358
2351
|
};
|
|
2359
2352
|
}
|
|
2360
|
-
function
|
|
2361
|
-
clearTimeout(
|
|
2353
|
+
function Vi() {
|
|
2354
|
+
clearTimeout(zi), zi = void 0;
|
|
2362
2355
|
}
|
|
2363
|
-
function
|
|
2356
|
+
function Hi(e, t, n) {
|
|
2364
2357
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2365
2358
|
}
|
|
2366
|
-
function
|
|
2359
|
+
function Ui(e) {
|
|
2367
2360
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2368
2361
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2369
2362
|
}
|
|
2370
|
-
function
|
|
2363
|
+
function Wi(e, t, n) {
|
|
2371
2364
|
var r = {};
|
|
2372
2365
|
return Array.from(e.children).forEach(function(i) {
|
|
2373
2366
|
if (!(!Ti(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
2374
|
-
var a =
|
|
2367
|
+
var a = B(i);
|
|
2375
2368
|
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);
|
|
2376
2369
|
}
|
|
2377
2370
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2378
2371
|
}
|
|
2379
2372
|
var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2380
|
-
function
|
|
2373
|
+
function Gi() {
|
|
2381
2374
|
var e = [], t;
|
|
2382
2375
|
return {
|
|
2383
2376
|
captureAnimationState: function() {
|
|
2384
2377
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
2385
|
-
if (!(
|
|
2378
|
+
if (!(z(t, "display") === "none" || t === Q.ghost)) {
|
|
2386
2379
|
e.push({
|
|
2387
2380
|
target: t,
|
|
2388
|
-
rect:
|
|
2381
|
+
rect: B(t)
|
|
2389
2382
|
});
|
|
2390
2383
|
var n = ci({}, e[e.length - 1].rect);
|
|
2391
2384
|
if (t.thisAnimationDuration) {
|
|
@@ -2400,7 +2393,7 @@ function Wi() {
|
|
|
2400
2393
|
e.push(t);
|
|
2401
2394
|
},
|
|
2402
2395
|
removeAnimationState: function(t) {
|
|
2403
|
-
e.splice(
|
|
2396
|
+
e.splice(Fi(e, { target: t }), 1);
|
|
2404
2397
|
},
|
|
2405
2398
|
animateAll: function(n) {
|
|
2406
2399
|
var r = this;
|
|
@@ -2410,8 +2403,8 @@ function Wi() {
|
|
|
2410
2403
|
}
|
|
2411
2404
|
var i = !1, a = 0;
|
|
2412
2405
|
e.forEach(function(e) {
|
|
2413
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
2414
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2406
|
+
var t = 0, n = e.target, o = n.fromRect, s = B(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Di(n, !0);
|
|
2407
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ri(c, s) && !Ri(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = qi(u, c, l, r.options)), Ri(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() {
|
|
2415
2408
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2416
2409
|
}, t), n.thisAnimationDuration = t);
|
|
2417
2410
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2420,27 +2413,27 @@ function Wi() {
|
|
|
2420
2413
|
},
|
|
2421
2414
|
animate: function(e, t, n, r) {
|
|
2422
2415
|
if (r) {
|
|
2423
|
-
|
|
2416
|
+
z(e, "transition", ""), z(e, "transform", "");
|
|
2424
2417
|
var i = Di(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2425
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
2426
|
-
|
|
2418
|
+
e.animatingX = !!s, e.animatingY = !!c, z(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ki(e), z(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), z(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2419
|
+
z(e, "transition", ""), z(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2427
2420
|
}, r);
|
|
2428
2421
|
}
|
|
2429
2422
|
}
|
|
2430
2423
|
};
|
|
2431
2424
|
}
|
|
2432
|
-
function
|
|
2425
|
+
function Ki(e) {
|
|
2433
2426
|
return e.offsetWidth;
|
|
2434
2427
|
}
|
|
2435
|
-
function
|
|
2428
|
+
function qi(e, t, n, r) {
|
|
2436
2429
|
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;
|
|
2437
2430
|
}
|
|
2438
|
-
var
|
|
2431
|
+
var Ji = [], Yi = { initializeByDefault: !0 }, Xi = {
|
|
2439
2432
|
mount: function(e) {
|
|
2440
|
-
for (var t in
|
|
2441
|
-
|
|
2433
|
+
for (var t in Yi) Yi.hasOwnProperty(t) && !(t in e) && (e[t] = Yi[t]);
|
|
2434
|
+
Ji.forEach(function(t) {
|
|
2442
2435
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2443
|
-
}),
|
|
2436
|
+
}), Ji.push(e);
|
|
2444
2437
|
},
|
|
2445
2438
|
pluginEvent: function(e, t, n) {
|
|
2446
2439
|
var r = this;
|
|
@@ -2448,12 +2441,12 @@ var qi = [], Ji = { initializeByDefault: !0 }, Yi = {
|
|
|
2448
2441
|
r.eventCanceled = !0;
|
|
2449
2442
|
};
|
|
2450
2443
|
var i = e + "Global";
|
|
2451
|
-
|
|
2444
|
+
Ji.forEach(function(r) {
|
|
2452
2445
|
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ci({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ci({ sortable: t }, n)));
|
|
2453
2446
|
});
|
|
2454
2447
|
},
|
|
2455
2448
|
initializePlugins: function(e, t, n, r) {
|
|
2456
|
-
for (var i in
|
|
2449
|
+
for (var i in Ji.forEach(function(r) {
|
|
2457
2450
|
var i = r.pluginName;
|
|
2458
2451
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
2459
2452
|
var a = new r(e, t, e.options);
|
|
@@ -2466,18 +2459,18 @@ var qi = [], Ji = { initializeByDefault: !0 }, Yi = {
|
|
|
2466
2459
|
},
|
|
2467
2460
|
getEventProperties: function(e, t) {
|
|
2468
2461
|
var n = {};
|
|
2469
|
-
return
|
|
2462
|
+
return Ji.forEach(function(r) {
|
|
2470
2463
|
typeof r.eventProperties == "function" && di(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2471
2464
|
}), n;
|
|
2472
2465
|
},
|
|
2473
2466
|
modifyOption: function(e, t, n) {
|
|
2474
2467
|
var r;
|
|
2475
|
-
return
|
|
2468
|
+
return Ji.forEach(function(i) {
|
|
2476
2469
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2477
2470
|
}), r;
|
|
2478
2471
|
}
|
|
2479
2472
|
};
|
|
2480
|
-
function
|
|
2473
|
+
function Zi(e) {
|
|
2481
2474
|
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;
|
|
2482
2475
|
if (t ||= n && n[V], t) {
|
|
2483
2476
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
@@ -2485,37 +2478,37 @@ function Xi(e) {
|
|
|
2485
2478
|
bubbles: !0,
|
|
2486
2479
|
cancelable: !0
|
|
2487
2480
|
}) : (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;
|
|
2488
|
-
var v = ci(ci({}, m),
|
|
2481
|
+
var v = ci(ci({}, m), Xi.getEventProperties(r, t));
|
|
2489
2482
|
for (var y in v) h[y] = v[y];
|
|
2490
2483
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
2491
2484
|
}
|
|
2492
2485
|
}
|
|
2493
|
-
var
|
|
2494
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = pi(n,
|
|
2495
|
-
|
|
2486
|
+
var Qi = ["evt"], H = function(e, t) {
|
|
2487
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = pi(n, Qi);
|
|
2488
|
+
Xi.pluginEvent.bind(Q)(e, t, ci({
|
|
2496
2489
|
dragEl: W,
|
|
2497
2490
|
parentEl: G,
|
|
2498
2491
|
ghostEl: K,
|
|
2499
2492
|
rootEl: q,
|
|
2500
|
-
nextEl:
|
|
2501
|
-
lastDownEl:
|
|
2493
|
+
nextEl: $i,
|
|
2494
|
+
lastDownEl: ea,
|
|
2502
2495
|
cloneEl: J,
|
|
2503
|
-
cloneHidden:
|
|
2504
|
-
dragStarted:
|
|
2496
|
+
cloneHidden: ta,
|
|
2497
|
+
dragStarted: ha,
|
|
2505
2498
|
putSortable: X,
|
|
2506
2499
|
activeSortable: Q.active,
|
|
2507
2500
|
originalEvent: r,
|
|
2508
|
-
oldIndex:
|
|
2509
|
-
oldDraggableIndex:
|
|
2501
|
+
oldIndex: na,
|
|
2502
|
+
oldDraggableIndex: ra,
|
|
2510
2503
|
newIndex: Y,
|
|
2511
|
-
newDraggableIndex:
|
|
2512
|
-
hideGhostForTarget:
|
|
2513
|
-
unhideGhostForTarget:
|
|
2504
|
+
newDraggableIndex: ia,
|
|
2505
|
+
hideGhostForTarget: Na,
|
|
2506
|
+
unhideGhostForTarget: Pa,
|
|
2514
2507
|
cloneNowHidden: function() {
|
|
2515
|
-
|
|
2508
|
+
ta = !0;
|
|
2516
2509
|
},
|
|
2517
2510
|
cloneNowShown: function() {
|
|
2518
|
-
|
|
2511
|
+
ta = !1;
|
|
2519
2512
|
},
|
|
2520
2513
|
dispatchSortableEvent: function(e) {
|
|
2521
2514
|
U({
|
|
@@ -2527,45 +2520,45 @@ var Zi = ["evt"], H = function(e, t) {
|
|
|
2527
2520
|
}, i));
|
|
2528
2521
|
};
|
|
2529
2522
|
function U(e) {
|
|
2530
|
-
|
|
2523
|
+
Zi(ci({
|
|
2531
2524
|
putSortable: X,
|
|
2532
2525
|
cloneEl: J,
|
|
2533
2526
|
targetEl: W,
|
|
2534
2527
|
rootEl: q,
|
|
2535
|
-
oldIndex:
|
|
2536
|
-
oldDraggableIndex:
|
|
2528
|
+
oldIndex: na,
|
|
2529
|
+
oldDraggableIndex: ra,
|
|
2537
2530
|
newIndex: Y,
|
|
2538
|
-
newDraggableIndex:
|
|
2531
|
+
newDraggableIndex: ia
|
|
2539
2532
|
}, e));
|
|
2540
2533
|
}
|
|
2541
|
-
var W, G, K, q,
|
|
2542
|
-
if (
|
|
2534
|
+
var W, G, K, q, $i, ea, J, ta, na, Y, ra, ia, aa, X, oa = !1, sa = !1, ca = [], la, ua, da, fa, pa, ma, ha, ga, _a, va = !1, ya = !1, ba, Z, xa = [], Sa = !1, Ca = [], wa = typeof document < "u", Ta = bi, Ea = _i || gi ? "cssFloat" : "float", Da = wa && !xi && !bi && "draggable" in document.createElement("div"), Oa = function() {
|
|
2535
|
+
if (wa) {
|
|
2543
2536
|
if (gi) return !1;
|
|
2544
2537
|
var e = document.createElement("x");
|
|
2545
2538
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2546
2539
|
}
|
|
2547
|
-
}(),
|
|
2548
|
-
var n =
|
|
2540
|
+
}(), ka = function(e, t) {
|
|
2541
|
+
var n = z(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = ji(e, 0, t), a = ji(e, 1, t), o = i && z(i), s = a && z(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + B(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
|
|
2549
2542
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2550
2543
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2551
2544
|
if (i && o.float && o.float !== "none") {
|
|
2552
2545
|
var u = o.float === "left" ? "left" : "right";
|
|
2553
2546
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2554
2547
|
}
|
|
2555
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2556
|
-
},
|
|
2548
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Ea] === "none" || a && n[Ea] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2549
|
+
}, Aa = function(e, t, n) {
|
|
2557
2550
|
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;
|
|
2558
2551
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2559
|
-
},
|
|
2552
|
+
}, ja = function(e, t) {
|
|
2560
2553
|
var n;
|
|
2561
|
-
return
|
|
2554
|
+
return ca.some(function(r) {
|
|
2562
2555
|
var i = r[V].options.emptyInsertThreshold;
|
|
2563
2556
|
if (!(!i || Mi(r))) {
|
|
2564
|
-
var a =
|
|
2557
|
+
var a = B(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2565
2558
|
if (o && s) return n = r;
|
|
2566
2559
|
}
|
|
2567
2560
|
}), n;
|
|
2568
|
-
},
|
|
2561
|
+
}, Ma = function(e) {
|
|
2569
2562
|
function t(e, n) {
|
|
2570
2563
|
return function(r, i, a, o) {
|
|
2571
2564
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2579,25 +2572,25 @@ var W, G, K, q, Qi, $i, J, ea, ta, Y, na, ra, ia, X, aa = !1, oa = !1, sa = [],
|
|
|
2579
2572
|
}
|
|
2580
2573
|
var n = {}, r = e.group;
|
|
2581
2574
|
(!r || li(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;
|
|
2582
|
-
}, Ma = function() {
|
|
2583
|
-
!Da && K && R(K, "display", "none");
|
|
2584
2575
|
}, Na = function() {
|
|
2585
|
-
!
|
|
2576
|
+
!Oa && K && z(K, "display", "none");
|
|
2577
|
+
}, Pa = function() {
|
|
2578
|
+
!Oa && K && z(K, "display", "");
|
|
2586
2579
|
};
|
|
2587
|
-
|
|
2588
|
-
if (
|
|
2580
|
+
wa && !xi && document.addEventListener("click", function(e) {
|
|
2581
|
+
if (sa) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), sa = !1, !1;
|
|
2589
2582
|
}, !0);
|
|
2590
|
-
var
|
|
2583
|
+
var Fa = function(e) {
|
|
2591
2584
|
if (W) {
|
|
2592
2585
|
e = e.touches ? e.touches[0] : e;
|
|
2593
|
-
var t =
|
|
2586
|
+
var t = ja(e.clientX, e.clientY);
|
|
2594
2587
|
if (t) {
|
|
2595
2588
|
var n = {};
|
|
2596
2589
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2597
2590
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
|
|
2598
2591
|
}
|
|
2599
2592
|
}
|
|
2600
|
-
},
|
|
2593
|
+
}, Ia = function(e) {
|
|
2601
2594
|
W && W.parentNode[V]._isOutsideThisEl(e.target);
|
|
2602
2595
|
};
|
|
2603
2596
|
function Q(e, t) {
|
|
@@ -2615,7 +2608,7 @@ function Q(e, t) {
|
|
|
2615
2608
|
invertedSwapThreshold: null,
|
|
2616
2609
|
removeCloneOnHide: !0,
|
|
2617
2610
|
direction: function() {
|
|
2618
|
-
return
|
|
2611
|
+
return ka(e, this.options);
|
|
2619
2612
|
},
|
|
2620
2613
|
ghostClass: "sortable-ghost",
|
|
2621
2614
|
chosenClass: "sortable-chosen",
|
|
@@ -2645,14 +2638,14 @@ function Q(e, t) {
|
|
|
2645
2638
|
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !yi,
|
|
2646
2639
|
emptyInsertThreshold: 5
|
|
2647
2640
|
};
|
|
2648
|
-
for (var r in
|
|
2649
|
-
for (var i in
|
|
2650
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
2641
|
+
for (var r in Xi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
2642
|
+
for (var i in Ma(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2643
|
+
this.nativeDraggable = t.forceFallback ? !1 : Da, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? I(e, "pointerdown", this._onTapStart) : (I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart)), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), ca.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), di(this, Gi());
|
|
2651
2644
|
}
|
|
2652
2645
|
Q.prototype = {
|
|
2653
2646
|
constructor: Q,
|
|
2654
2647
|
_isOutsideThisEl: function(e) {
|
|
2655
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2648
|
+
!this.el.contains(e) && e !== this.el && (ga = null);
|
|
2656
2649
|
},
|
|
2657
2650
|
_getDirection: function(e, t) {
|
|
2658
2651
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
|
|
@@ -2660,8 +2653,8 @@ Q.prototype = {
|
|
|
2660
2653
|
_onTapStart: function(e) {
|
|
2661
2654
|
if (e.cancelable) {
|
|
2662
2655
|
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;
|
|
2663
|
-
if (
|
|
2664
|
-
if (
|
|
2656
|
+
if (Ka(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && yi && s && s.tagName.toUpperCase() === "SELECT") && (s = Ti(s, r.draggable, n, !1), !(s && s.animated) && ea !== s)) {
|
|
2657
|
+
if (na = Ni(s), ra = Ni(s, r.draggable), typeof l == "function") {
|
|
2665
2658
|
if (l.call(this, e, s, this)) {
|
|
2666
2659
|
U({
|
|
2667
2660
|
sortable: t,
|
|
@@ -2693,12 +2686,12 @@ Q.prototype = {
|
|
|
2693
2686
|
_prepareDragStart: function(e, t, n) {
|
|
2694
2687
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2695
2688
|
if (n && !W && n.parentNode === i) {
|
|
2696
|
-
var c =
|
|
2697
|
-
if (q = i, W = n, G = W.parentNode,
|
|
2689
|
+
var c = B(n);
|
|
2690
|
+
if (q = i, W = n, G = W.parentNode, $i = W.nextSibling, ea = n, aa = a.group, Q.dragged = W, la = {
|
|
2698
2691
|
target: W,
|
|
2699
2692
|
clientX: (t || e).clientX,
|
|
2700
2693
|
clientY: (t || e).clientY
|
|
2701
|
-
},
|
|
2694
|
+
}, pa = la.clientX - c.left, ma = la.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
|
|
2702
2695
|
if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
2703
2696
|
r._onDrop();
|
|
2704
2697
|
return;
|
|
@@ -2707,15 +2700,15 @@ Q.prototype = {
|
|
|
2707
2700
|
sortable: r,
|
|
2708
2701
|
name: "choose",
|
|
2709
2702
|
originalEvent: e
|
|
2710
|
-
}),
|
|
2703
|
+
}), R(W, a.chosenClass, !0);
|
|
2711
2704
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2712
|
-
Oi(W, e.trim(),
|
|
2713
|
-
}),
|
|
2705
|
+
Oi(W, e.trim(), za);
|
|
2706
|
+
}), I(o, "dragover", Fa), I(o, "mousemove", Fa), I(o, "touchmove", Fa), I(o, "mouseup", r._onDrop), I(o, "touchend", r._onDrop), I(o, "touchcancel", r._onDrop), vi && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(_i || gi))) {
|
|
2714
2707
|
if (Q.eventCanceled) {
|
|
2715
2708
|
this._onDrop();
|
|
2716
2709
|
return;
|
|
2717
2710
|
}
|
|
2718
|
-
|
|
2711
|
+
I(o, "mouseup", r._disableDelayedDrag), I(o, "touchend", r._disableDelayedDrag), I(o, "touchcancel", r._disableDelayedDrag), I(o, "mousemove", r._delayedDragTouchMoveHandler), I(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && I(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
2719
2712
|
} else s();
|
|
2720
2713
|
}
|
|
2721
2714
|
},
|
|
@@ -2724,25 +2717,25 @@ Q.prototype = {
|
|
|
2724
2717
|
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();
|
|
2725
2718
|
},
|
|
2726
2719
|
_disableDelayedDrag: function() {
|
|
2727
|
-
W &&
|
|
2720
|
+
W && za(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2728
2721
|
},
|
|
2729
2722
|
_disableDelayedDragEvents: function() {
|
|
2730
2723
|
var e = this.el.ownerDocument;
|
|
2731
|
-
|
|
2724
|
+
L(e, "mouseup", this._disableDelayedDrag), L(e, "touchend", this._disableDelayedDrag), L(e, "touchcancel", this._disableDelayedDrag), L(e, "mousemove", this._delayedDragTouchMoveHandler), L(e, "touchmove", this._delayedDragTouchMoveHandler), L(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2732
2725
|
},
|
|
2733
2726
|
_triggerDragStart: function(e, t) {
|
|
2734
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
2727
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : t ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(W, "dragend", this), I(q, "dragstart", this._onDragStart));
|
|
2735
2728
|
try {
|
|
2736
|
-
document.selection ?
|
|
2729
|
+
document.selection ? qa(function() {
|
|
2737
2730
|
document.selection.empty();
|
|
2738
2731
|
}) : window.getSelection().removeAllRanges();
|
|
2739
2732
|
} catch {}
|
|
2740
2733
|
},
|
|
2741
2734
|
_dragStarted: function(e, t) {
|
|
2742
|
-
if (
|
|
2743
|
-
H("dragStarted", this, { evt: t }), this.nativeDraggable &&
|
|
2735
|
+
if (oa = !1, q && W) {
|
|
2736
|
+
H("dragStarted", this, { evt: t }), this.nativeDraggable && I(document, "dragover", Ia);
|
|
2744
2737
|
var n = this.options;
|
|
2745
|
-
!e &&
|
|
2738
|
+
!e && R(W, n.dragClass, !1), R(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
|
|
2746
2739
|
sortable: this,
|
|
2747
2740
|
name: "start",
|
|
2748
2741
|
originalEvent: t
|
|
@@ -2750,33 +2743,33 @@ Q.prototype = {
|
|
|
2750
2743
|
} else this._nulling();
|
|
2751
2744
|
},
|
|
2752
2745
|
_emulateDragOver: function() {
|
|
2753
|
-
if (
|
|
2754
|
-
this._lastX =
|
|
2755
|
-
for (var e = document.elementFromPoint(
|
|
2746
|
+
if (ua) {
|
|
2747
|
+
this._lastX = ua.clientX, this._lastY = ua.clientY, Na();
|
|
2748
|
+
for (var e = document.elementFromPoint(ua.clientX, ua.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ua.clientX, ua.clientY), e !== t);) t = e;
|
|
2756
2749
|
if (W.parentNode[V]._isOutsideThisEl(e), t) do {
|
|
2757
2750
|
if (t[V]) {
|
|
2758
2751
|
var n = void 0;
|
|
2759
2752
|
if (n = t[V]._onDragOver({
|
|
2760
|
-
clientX:
|
|
2761
|
-
clientY:
|
|
2753
|
+
clientX: ua.clientX,
|
|
2754
|
+
clientY: ua.clientY,
|
|
2762
2755
|
target: e,
|
|
2763
2756
|
rootEl: t
|
|
2764
2757
|
}), n && !this.options.dragoverBubble) break;
|
|
2765
2758
|
}
|
|
2766
2759
|
e = t;
|
|
2767
2760
|
} while (t = t.parentNode);
|
|
2768
|
-
|
|
2761
|
+
Pa();
|
|
2769
2762
|
}
|
|
2770
2763
|
},
|
|
2771
2764
|
_onTouchMove: function(e) {
|
|
2772
|
-
if (
|
|
2773
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Di(K, !0), o = K && a && a.a, s = K && a && a.d, c =
|
|
2774
|
-
if (!Q.active && !
|
|
2765
|
+
if (la) {
|
|
2766
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && Di(K, !0), o = K && a && a.a, s = K && a && a.d, c = Ta && Z && Pi(Z), l = (i.clientX - la.clientX + r.x) / (o || 1) + (c ? c[0] - xa[0] : 0) / (o || 1), u = (i.clientY - la.clientY + r.y) / (s || 1) + (c ? c[1] - xa[1] : 0) / (s || 1);
|
|
2767
|
+
if (!Q.active && !oa) {
|
|
2775
2768
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2776
2769
|
this._onDragStart(e, !0);
|
|
2777
2770
|
}
|
|
2778
2771
|
if (K) {
|
|
2779
|
-
a ? (a.e += l - (
|
|
2772
|
+
a ? (a.e += l - (da || 0), a.f += u - (fa || 0)) : a = {
|
|
2780
2773
|
a: 1,
|
|
2781
2774
|
b: 0,
|
|
2782
2775
|
c: 0,
|
|
@@ -2785,19 +2778,19 @@ Q.prototype = {
|
|
|
2785
2778
|
f: u
|
|
2786
2779
|
};
|
|
2787
2780
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2788
|
-
|
|
2781
|
+
z(K, "webkitTransform", d), z(K, "mozTransform", d), z(K, "msTransform", d), z(K, "transform", d), da = l, fa = u, ua = i;
|
|
2789
2782
|
}
|
|
2790
2783
|
e.cancelable && e.preventDefault();
|
|
2791
2784
|
}
|
|
2792
2785
|
},
|
|
2793
2786
|
_appendGhost: function() {
|
|
2794
2787
|
if (!K) {
|
|
2795
|
-
var e = this.options.fallbackOnBody ? document.body : q, t =
|
|
2796
|
-
if (
|
|
2797
|
-
for (Z = e;
|
|
2798
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ki()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ki(),
|
|
2788
|
+
var e = this.options.fallbackOnBody ? document.body : q, t = B(W, !0, Ta, !0, e), n = this.options;
|
|
2789
|
+
if (Ta) {
|
|
2790
|
+
for (Z = e; z(Z, "position") === "static" && z(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
2791
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = ki()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = ki(), xa = Pi(Z);
|
|
2799
2792
|
}
|
|
2800
|
-
K = W.cloneNode(!0),
|
|
2793
|
+
K = W.cloneNode(!0), R(K, n.ghostClass, !1), R(K, n.fallbackClass, !0), R(K, n.dragClass, !0), z(K, "transition", ""), z(K, "transform", ""), z(K, "box-sizing", "border-box"), z(K, "margin", 0), z(K, "top", t.top), z(K, "left", t.left), z(K, "width", t.width), z(K, "height", t.height), z(K, "opacity", "0.8"), z(K, "position", Ta ? "absolute" : "fixed"), z(K, "zIndex", "100000"), z(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), z(K, "transform-origin", pa / parseInt(K.style.width) * 100 + "% " + ma / parseInt(K.style.height) * 100 + "%");
|
|
2801
2794
|
}
|
|
2802
2795
|
},
|
|
2803
2796
|
_onDragStart: function(e, t) {
|
|
@@ -2806,16 +2799,16 @@ Q.prototype = {
|
|
|
2806
2799
|
this._onDrop();
|
|
2807
2800
|
return;
|
|
2808
2801
|
}
|
|
2809
|
-
H("setupClone", this), Q.eventCanceled || (J =
|
|
2802
|
+
H("setupClone", this), Q.eventCanceled || (J = Ui(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), R(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = qa(function() {
|
|
2810
2803
|
H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
|
|
2811
2804
|
sortable: n,
|
|
2812
2805
|
name: "clone"
|
|
2813
2806
|
}));
|
|
2814
|
-
}), !t &&
|
|
2807
|
+
}), !t && R(W, i.dragClass, !0), t ? (sa = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (L(document, "mouseup", n._onDrop), L(document, "touchend", n._onDrop), L(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), I(document, "drop", n), z(W, "transform", "translateZ(0)")), oa = !0, n._dragStartId = qa(n._dragStarted.bind(n, t, e)), I(document, "selectstart", n), ha = !0, yi && z(document.body, "user-select", "none");
|
|
2815
2808
|
},
|
|
2816
2809
|
_onDragOver: function(e) {
|
|
2817
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
2818
|
-
if (
|
|
2810
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = aa === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
2811
|
+
if (Sa) return;
|
|
2819
2812
|
function h(o, s) {
|
|
2820
2813
|
H(o, p, ci({
|
|
2821
2814
|
evt: e,
|
|
@@ -2829,7 +2822,7 @@ Q.prototype = {
|
|
|
2829
2822
|
target: n,
|
|
2830
2823
|
completed: _,
|
|
2831
2824
|
onMove: function(n, i) {
|
|
2832
|
-
return
|
|
2825
|
+
return Ra(q, t, W, r, n, B(n), e, i);
|
|
2833
2826
|
},
|
|
2834
2827
|
changed: v
|
|
2835
2828
|
}, s));
|
|
@@ -2838,50 +2831,50 @@ Q.prototype = {
|
|
|
2838
2831
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2839
2832
|
}
|
|
2840
2833
|
function _(r) {
|
|
2841
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2834
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (R(W, X ? X.options.ghostClass : c.options.ghostClass, !1), R(W, o.ghostClass, !0)), X !== p && p !== Q.active ? X = p : p === Q.active && X && (X = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2842
2835
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2843
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (
|
|
2836
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ga = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Fa(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2844
2837
|
}
|
|
2845
2838
|
function v() {
|
|
2846
|
-
Y =
|
|
2839
|
+
Y = Ni(W), ia = Ni(W, o.draggable), U({
|
|
2847
2840
|
sortable: p,
|
|
2848
2841
|
name: "change",
|
|
2849
2842
|
toEl: t,
|
|
2850
2843
|
newIndex: Y,
|
|
2851
|
-
newDraggableIndex:
|
|
2844
|
+
newDraggableIndex: ia,
|
|
2852
2845
|
originalEvent: e
|
|
2853
2846
|
});
|
|
2854
2847
|
}
|
|
2855
2848
|
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ti(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
2856
2849
|
if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2857
|
-
if (
|
|
2858
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
2859
|
-
if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
2850
|
+
if (sa = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = aa.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
|
|
2851
|
+
if (f = this._getDirection(e, n) === "vertical", r = B(W), h("dragOverValid"), Q.eventCanceled) return m;
|
|
2852
|
+
if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || ($i ? q.insertBefore(W, $i) : q.appendChild(W)), _(!0);
|
|
2860
2853
|
var y = Mi(t, o.draggable);
|
|
2861
|
-
if (!y ||
|
|
2854
|
+
if (!y || Ha(e, f, this) && !y.animated) {
|
|
2862
2855
|
if (y === W) return _(!1);
|
|
2863
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
2864
|
-
} else if (y &&
|
|
2856
|
+
if (y && t === e.target && (n = y), n && (i = B(n)), Ra(q, t, W, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(W, y.nextSibling) : t.appendChild(W), G = t, v(), _(!0);
|
|
2857
|
+
} else if (y && Va(e, f, this)) {
|
|
2865
2858
|
var b = ji(t, 0, o, !0);
|
|
2866
2859
|
if (b === W) return _(!1);
|
|
2867
|
-
if (n = b, i =
|
|
2860
|
+
if (n = b, i = B(n), Ra(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
|
|
2868
2861
|
} else if (n.parentNode === t) {
|
|
2869
|
-
i =
|
|
2870
|
-
var x = 0, S, C = W.parentNode !== t, w = !
|
|
2871
|
-
|
|
2862
|
+
i = B(n);
|
|
2863
|
+
var x = 0, S, C = W.parentNode !== t, w = !Aa(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ai(n, "top", "top") || Ai(W, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
2864
|
+
ga !== n && (S = i[T], va = !1, ya = !w && o.invertSwap || C), x = Ua(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ya, ga === n);
|
|
2872
2865
|
var D;
|
|
2873
2866
|
if (x !== 0) {
|
|
2874
|
-
var O =
|
|
2867
|
+
var O = Ni(W);
|
|
2875
2868
|
do
|
|
2876
2869
|
O -= x, D = G.children[O];
|
|
2877
|
-
while (D && (
|
|
2870
|
+
while (D && (z(D, "display") === "none" || D === K));
|
|
2878
2871
|
}
|
|
2879
2872
|
if (x === 0 || D === n) return _(!1);
|
|
2880
|
-
|
|
2873
|
+
ga = n, _a = x;
|
|
2881
2874
|
var k = n.nextElementSibling, te = !1;
|
|
2882
2875
|
te = x === 1;
|
|
2883
|
-
var A =
|
|
2884
|
-
if (A !== !1) return (A === 1 || A === -1) && (te = A === 1),
|
|
2876
|
+
var A = Ra(q, t, W, r, n, i, e, te);
|
|
2877
|
+
if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), Sa = !0, setTimeout(Ba, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && Hi(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !ya && (ba = Math.abs(S - B(n)[T])), v(), _(!0);
|
|
2885
2878
|
}
|
|
2886
2879
|
if (t.contains(W)) return _(!1);
|
|
2887
2880
|
}
|
|
@@ -2889,26 +2882,26 @@ Q.prototype = {
|
|
|
2889
2882
|
},
|
|
2890
2883
|
_ignoreWhileAnimating: null,
|
|
2891
2884
|
_offMoveEvents: function() {
|
|
2892
|
-
|
|
2885
|
+
L(document, "mousemove", this._onTouchMove), L(document, "touchmove", this._onTouchMove), L(document, "pointermove", this._onTouchMove), L(document, "dragover", Fa), L(document, "mousemove", Fa), L(document, "touchmove", Fa);
|
|
2893
2886
|
},
|
|
2894
2887
|
_offUpEvents: function() {
|
|
2895
2888
|
var e = this.el.ownerDocument;
|
|
2896
|
-
|
|
2889
|
+
L(e, "mouseup", this._onDrop), L(e, "touchend", this._onDrop), L(e, "pointerup", this._onDrop), L(e, "touchcancel", this._onDrop), L(document, "selectstart", this);
|
|
2897
2890
|
},
|
|
2898
2891
|
_onDrop: function(e) {
|
|
2899
2892
|
var t = this.el, n = this.options;
|
|
2900
|
-
if (Y =
|
|
2893
|
+
if (Y = Ni(W), ia = Ni(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = Ni(W), ia = Ni(W, n.draggable), Q.eventCanceled) {
|
|
2901
2894
|
this._nulling();
|
|
2902
2895
|
return;
|
|
2903
2896
|
}
|
|
2904
|
-
|
|
2897
|
+
oa = !1, ya = !1, va = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ja(this.cloneId), Ja(this._dragStartId), this.nativeDraggable && (L(document, "drop", this), L(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), yi && z(document.body, "user-select", ""), z(W, "transform", ""), e && (ha && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), K && K.parentNode && K.parentNode.removeChild(K), (q === G || X && X.lastPutMode !== "clone") && J && J.parentNode && J.parentNode.removeChild(J), W && (this.nativeDraggable && L(W, "dragend", this), za(W), W.style["will-change"] = "", ha && !oa && R(W, X ? X.options.ghostClass : this.options.ghostClass, !1), R(W, this.options.chosenClass, !1), U({
|
|
2905
2898
|
sortable: this,
|
|
2906
2899
|
name: "unchoose",
|
|
2907
2900
|
toEl: G,
|
|
2908
2901
|
newIndex: null,
|
|
2909
2902
|
newDraggableIndex: null,
|
|
2910
2903
|
originalEvent: e
|
|
2911
|
-
}), q === G ? Y !==
|
|
2904
|
+
}), q === G ? Y !== na && Y >= 0 && (U({
|
|
2912
2905
|
sortable: this,
|
|
2913
2906
|
name: "update",
|
|
2914
2907
|
toEl: G,
|
|
@@ -2940,7 +2933,7 @@ Q.prototype = {
|
|
|
2940
2933
|
name: "sort",
|
|
2941
2934
|
toEl: G,
|
|
2942
2935
|
originalEvent: e
|
|
2943
|
-
})), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y =
|
|
2936
|
+
})), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = na, ia = ra), U({
|
|
2944
2937
|
sortable: this,
|
|
2945
2938
|
name: "end",
|
|
2946
2939
|
toEl: G,
|
|
@@ -2948,9 +2941,9 @@ Q.prototype = {
|
|
|
2948
2941
|
}), this.save()))), this._nulling();
|
|
2949
2942
|
},
|
|
2950
2943
|
_nulling: function() {
|
|
2951
|
-
H("nulling", this), q = W = G = K =
|
|
2944
|
+
H("nulling", this), q = W = G = K = $i = J = ea = ta = la = ua = ha = Y = ia = na = ra = ga = _a = X = aa = Q.dragged = Q.ghost = Q.clone = Q.active = null, Ca.forEach(function(e) {
|
|
2952
2945
|
e.checked = !0;
|
|
2953
|
-
}),
|
|
2946
|
+
}), Ca.length = da = fa = 0;
|
|
2954
2947
|
},
|
|
2955
2948
|
handleEvent: function(e) {
|
|
2956
2949
|
switch (e.type) {
|
|
@@ -2960,7 +2953,7 @@ Q.prototype = {
|
|
|
2960
2953
|
break;
|
|
2961
2954
|
case "dragenter":
|
|
2962
2955
|
case "dragover":
|
|
2963
|
-
W && (this._onDragOver(e),
|
|
2956
|
+
W && (this._onDragOver(e), La(e));
|
|
2964
2957
|
break;
|
|
2965
2958
|
case "selectstart":
|
|
2966
2959
|
e.preventDefault();
|
|
@@ -2968,7 +2961,7 @@ Q.prototype = {
|
|
|
2968
2961
|
}
|
|
2969
2962
|
},
|
|
2970
2963
|
toArray: function() {
|
|
2971
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ti(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) ||
|
|
2964
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ti(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Ga(t));
|
|
2972
2965
|
return e;
|
|
2973
2966
|
},
|
|
2974
2967
|
sort: function(e, t) {
|
|
@@ -2990,20 +2983,20 @@ Q.prototype = {
|
|
|
2990
2983
|
option: function(e, t) {
|
|
2991
2984
|
var n = this.options;
|
|
2992
2985
|
if (t === void 0) return n[e];
|
|
2993
|
-
var r =
|
|
2994
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
2986
|
+
var r = Xi.modifyOption(this, e, t);
|
|
2987
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && Ma(n);
|
|
2995
2988
|
},
|
|
2996
2989
|
destroy: function() {
|
|
2997
2990
|
H("destroy", this);
|
|
2998
2991
|
var e = this.el;
|
|
2999
|
-
e[V] = null,
|
|
2992
|
+
e[V] = null, L(e, "mousedown", this._onTapStart), L(e, "touchstart", this._onTapStart), L(e, "pointerdown", this._onTapStart), this.nativeDraggable && (L(e, "dragover", this), L(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
3000
2993
|
e.removeAttribute("draggable");
|
|
3001
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2994
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ca.splice(ca.indexOf(this.el), 1), this.el = e = null;
|
|
3002
2995
|
},
|
|
3003
2996
|
_hideClone: function() {
|
|
3004
|
-
if (!
|
|
2997
|
+
if (!ta) {
|
|
3005
2998
|
if (H("hideClone", this), Q.eventCanceled) return;
|
|
3006
|
-
|
|
2999
|
+
z(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), ta = !0;
|
|
3007
3000
|
}
|
|
3008
3001
|
},
|
|
3009
3002
|
_showClone: function(e) {
|
|
@@ -3011,85 +3004,85 @@ Q.prototype = {
|
|
|
3011
3004
|
this._hideClone();
|
|
3012
3005
|
return;
|
|
3013
3006
|
}
|
|
3014
|
-
if (
|
|
3007
|
+
if (ta) {
|
|
3015
3008
|
if (H("showClone", this), Q.eventCanceled) return;
|
|
3016
|
-
W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) :
|
|
3009
|
+
W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : $i ? q.insertBefore(J, $i) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), z(J, "display", ""), ta = !1;
|
|
3017
3010
|
}
|
|
3018
3011
|
}
|
|
3019
3012
|
};
|
|
3020
|
-
function
|
|
3013
|
+
function La(e) {
|
|
3021
3014
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
3022
3015
|
}
|
|
3023
|
-
function
|
|
3016
|
+
function Ra(e, t, n, r, i, a, o, s) {
|
|
3024
3017
|
var c, l = e[V], u = l.options.onMove, d;
|
|
3025
3018
|
return window.CustomEvent && !gi && !_i ? c = new CustomEvent("move", {
|
|
3026
3019
|
bubbles: !0,
|
|
3027
3020
|
cancelable: !0
|
|
3028
|
-
}) : (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 ||
|
|
3021
|
+
}) : (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 || B(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
3029
3022
|
}
|
|
3030
|
-
function
|
|
3023
|
+
function za(e) {
|
|
3031
3024
|
e.draggable = !1;
|
|
3032
3025
|
}
|
|
3033
|
-
function
|
|
3034
|
-
|
|
3026
|
+
function Ba() {
|
|
3027
|
+
Sa = !1;
|
|
3035
3028
|
}
|
|
3036
|
-
function
|
|
3037
|
-
var r =
|
|
3029
|
+
function Va(e, t, n) {
|
|
3030
|
+
var r = B(ji(n.el, 0, n.options, !0)), i = Wi(n.el, n.options, K), a = 10;
|
|
3038
3031
|
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;
|
|
3039
3032
|
}
|
|
3040
|
-
function
|
|
3041
|
-
var r =
|
|
3033
|
+
function Ha(e, t, n) {
|
|
3034
|
+
var r = B(Mi(n.el, n.options.draggable)), i = Wi(n.el, n.options, K), a = 10;
|
|
3042
3035
|
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;
|
|
3043
3036
|
}
|
|
3044
|
-
function
|
|
3037
|
+
function Ua(e, t, n, r, i, a, o, s) {
|
|
3045
3038
|
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;
|
|
3046
3039
|
if (!o) {
|
|
3047
|
-
if (s &&
|
|
3048
|
-
if (!
|
|
3049
|
-
else if (
|
|
3050
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
3040
|
+
if (s && ba < l * i) {
|
|
3041
|
+
if (!va && (_a === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (va = !0), va) f = !0;
|
|
3042
|
+
else if (_a === 1 ? c < u + ba : c > d - ba) return -_a;
|
|
3043
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Wa(t);
|
|
3051
3044
|
}
|
|
3052
3045
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
3053
3046
|
}
|
|
3054
|
-
function Ua(e) {
|
|
3055
|
-
return B(W) < B(e) ? 1 : -1;
|
|
3056
|
-
}
|
|
3057
3047
|
function Wa(e) {
|
|
3048
|
+
return Ni(W) < Ni(e) ? 1 : -1;
|
|
3049
|
+
}
|
|
3050
|
+
function Ga(e) {
|
|
3058
3051
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
3059
3052
|
return r.toString(36);
|
|
3060
3053
|
}
|
|
3061
|
-
function
|
|
3062
|
-
|
|
3054
|
+
function Ka(e) {
|
|
3055
|
+
Ca.length = 0;
|
|
3063
3056
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
3064
3057
|
var r = t[n];
|
|
3065
|
-
r.checked &&
|
|
3058
|
+
r.checked && Ca.push(r);
|
|
3066
3059
|
}
|
|
3067
3060
|
}
|
|
3068
|
-
function
|
|
3061
|
+
function qa(e) {
|
|
3069
3062
|
return setTimeout(e, 0);
|
|
3070
3063
|
}
|
|
3071
|
-
function
|
|
3064
|
+
function Ja(e) {
|
|
3072
3065
|
return clearTimeout(e);
|
|
3073
3066
|
}
|
|
3074
|
-
|
|
3075
|
-
(Q.active ||
|
|
3067
|
+
wa && I(document, "touchmove", function(e) {
|
|
3068
|
+
(Q.active || oa) && e.cancelable && e.preventDefault();
|
|
3076
3069
|
}), Q.utils = {
|
|
3077
|
-
on:
|
|
3078
|
-
off:
|
|
3079
|
-
css:
|
|
3070
|
+
on: I,
|
|
3071
|
+
off: L,
|
|
3072
|
+
css: z,
|
|
3080
3073
|
find: Oi,
|
|
3081
3074
|
is: function(e, t) {
|
|
3082
3075
|
return !!Ti(e, t, e, !1);
|
|
3083
3076
|
},
|
|
3084
|
-
extend:
|
|
3085
|
-
throttle:
|
|
3077
|
+
extend: Li,
|
|
3078
|
+
throttle: Bi,
|
|
3086
3079
|
closest: Ti,
|
|
3087
|
-
toggleClass:
|
|
3088
|
-
clone:
|
|
3089
|
-
index:
|
|
3090
|
-
nextTick:
|
|
3091
|
-
cancelNextTick:
|
|
3092
|
-
detectDirection:
|
|
3080
|
+
toggleClass: R,
|
|
3081
|
+
clone: Ui,
|
|
3082
|
+
index: Ni,
|
|
3083
|
+
nextTick: qa,
|
|
3084
|
+
cancelNextTick: Ja,
|
|
3085
|
+
detectDirection: ka,
|
|
3093
3086
|
getChild: ji
|
|
3094
3087
|
}, Q.get = function(e) {
|
|
3095
3088
|
return e[V];
|
|
@@ -3097,13 +3090,13 @@ Ca && F(document, "touchmove", function(e) {
|
|
|
3097
3090
|
var e = [...arguments];
|
|
3098
3091
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3099
3092
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3100
|
-
e.utils && (Q.utils = ci(ci({}, Q.utils), e.utils)),
|
|
3093
|
+
e.utils && (Q.utils = ci(ci({}, Q.utils), e.utils)), Xi.mount(e);
|
|
3101
3094
|
});
|
|
3102
3095
|
}, Q.create = function(e, t) {
|
|
3103
3096
|
return new Q(e, t);
|
|
3104
3097
|
}, Q.version = mi;
|
|
3105
|
-
var $ = [],
|
|
3106
|
-
function
|
|
3098
|
+
var $ = [], Ya, Xa, Za = !1, Qa, $a, eo, to;
|
|
3099
|
+
function no() {
|
|
3107
3100
|
function e() {
|
|
3108
3101
|
for (var e in this.defaults = {
|
|
3109
3102
|
scroll: !0,
|
|
@@ -3116,36 +3109,36 @@ function to() {
|
|
|
3116
3109
|
return e.prototype = {
|
|
3117
3110
|
dragStarted: function(e) {
|
|
3118
3111
|
var t = e.originalEvent;
|
|
3119
|
-
this.sortable.nativeDraggable ?
|
|
3112
|
+
this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
|
|
3120
3113
|
},
|
|
3121
3114
|
dragOverCompleted: function(e) {
|
|
3122
3115
|
var t = e.originalEvent;
|
|
3123
3116
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3124
3117
|
},
|
|
3125
3118
|
drop: function() {
|
|
3126
|
-
this.sortable.nativeDraggable ?
|
|
3119
|
+
this.sortable.nativeDraggable ? L(document, "dragover", this._handleAutoScroll) : (L(document, "pointermove", this._handleFallbackAutoScroll), L(document, "touchmove", this._handleFallbackAutoScroll), L(document, "mousemove", this._handleFallbackAutoScroll)), io(), ro(), Vi();
|
|
3127
3120
|
},
|
|
3128
3121
|
nulling: function() {
|
|
3129
|
-
|
|
3122
|
+
eo = Xa = Ya = Za = to = Qa = $a = null, $.length = 0;
|
|
3130
3123
|
},
|
|
3131
3124
|
_handleFallbackAutoScroll: function(e) {
|
|
3132
3125
|
this._handleAutoScroll(e, !0);
|
|
3133
3126
|
},
|
|
3134
3127
|
_handleAutoScroll: function(e, t) {
|
|
3135
3128
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3136
|
-
if (
|
|
3137
|
-
|
|
3138
|
-
var o =
|
|
3139
|
-
|
|
3140
|
-
var a =
|
|
3141
|
-
a !== o && (o = a,
|
|
3142
|
-
}, 10),
|
|
3129
|
+
if (eo = e, t || this.options.forceAutoScrollFallback || _i || gi || yi) {
|
|
3130
|
+
ao(e, this.options, a, t);
|
|
3131
|
+
var o = Ii(a, !0);
|
|
3132
|
+
Za && (!to || r !== Qa || i !== $a) && (to && io(), to = setInterval(function() {
|
|
3133
|
+
var a = Ii(document.elementFromPoint(r, i), !0);
|
|
3134
|
+
a !== o && (o = a, ro()), ao(e, n.options, a, t);
|
|
3135
|
+
}, 10), Qa = r, $a = i);
|
|
3143
3136
|
} else {
|
|
3144
|
-
if (!this.options.bubbleScroll ||
|
|
3145
|
-
|
|
3137
|
+
if (!this.options.bubbleScroll || Ii(a, !0) === ki()) {
|
|
3138
|
+
ro();
|
|
3146
3139
|
return;
|
|
3147
3140
|
}
|
|
3148
|
-
|
|
3141
|
+
ao(e, this.options, Ii(a, !1), !1);
|
|
3149
3142
|
}
|
|
3150
3143
|
}
|
|
3151
3144
|
}, di(e, {
|
|
@@ -3153,33 +3146,33 @@ function to() {
|
|
|
3153
3146
|
initializeByDefault: !0
|
|
3154
3147
|
});
|
|
3155
3148
|
}
|
|
3156
|
-
function
|
|
3149
|
+
function ro() {
|
|
3157
3150
|
$.forEach(function(e) {
|
|
3158
3151
|
clearInterval(e.pid);
|
|
3159
3152
|
}), $ = [];
|
|
3160
3153
|
}
|
|
3161
|
-
function
|
|
3162
|
-
clearInterval(
|
|
3154
|
+
function io() {
|
|
3155
|
+
clearInterval(to);
|
|
3163
3156
|
}
|
|
3164
|
-
var
|
|
3157
|
+
var ao = Bi(function(e, t, n, r) {
|
|
3165
3158
|
if (t.scroll) {
|
|
3166
3159
|
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = ki(), l = !1, u;
|
|
3167
|
-
|
|
3168
|
-
var d = 0, f =
|
|
3160
|
+
Xa !== n && (Xa = n, ro(), Ya = t.scroll, u = t.scrollFn, Ya === !0 && (Ya = Ii(n, !0)));
|
|
3161
|
+
var d = 0, f = Ya;
|
|
3169
3162
|
do {
|
|
3170
|
-
var p = f, m =
|
|
3163
|
+
var p = f, m = B(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 = z(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
3171
3164
|
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"));
|
|
3172
3165
|
var D = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), O = S && (Math.abs(g - a) <= o && ee + b < w) - (Math.abs(h - a) <= o && !!ee);
|
|
3173
3166
|
if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
|
|
3174
3167
|
($[d].vx != D || $[d].vy != O || $[d].el !== p) && ($[d].el = p, $[d].vx = D, $[d].vy = O, clearInterval($[d].pid), (D != 0 || O != 0) && (l = !0, $[d].pid = setInterval(function() {
|
|
3175
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3168
|
+
r && this.layer === 0 && Q.active._onTouchMove(eo);
|
|
3176
3169
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3177
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e,
|
|
3170
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, eo, $[this.layer].el) !== "continue" || Hi($[this.layer].el, n, t);
|
|
3178
3171
|
}.bind({ layer: d }), 24))), d++;
|
|
3179
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3180
|
-
|
|
3172
|
+
} while (t.bubbleScroll && f !== c && (f = Ii(f, !1)));
|
|
3173
|
+
Za = l;
|
|
3181
3174
|
}
|
|
3182
|
-
}, 30),
|
|
3175
|
+
}, 30), oo = function(e) {
|
|
3183
3176
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3184
3177
|
if (t) {
|
|
3185
3178
|
var c = n || i;
|
|
@@ -3191,8 +3184,8 @@ var io = zi(function(e, t, n, r) {
|
|
|
3191
3184
|
}));
|
|
3192
3185
|
}
|
|
3193
3186
|
};
|
|
3194
|
-
function
|
|
3195
|
-
|
|
3187
|
+
function so() {}
|
|
3188
|
+
so.prototype = {
|
|
3196
3189
|
startIndex: null,
|
|
3197
3190
|
dragStart: function(e) {
|
|
3198
3191
|
var t = e.oldDraggableIndex;
|
|
@@ -3204,48 +3197,48 @@ oo.prototype = {
|
|
|
3204
3197
|
var r = ji(this.sortable.el, this.startIndex, this.options);
|
|
3205
3198
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3206
3199
|
},
|
|
3207
|
-
drop:
|
|
3208
|
-
}, di(
|
|
3209
|
-
function
|
|
3210
|
-
|
|
3200
|
+
drop: oo
|
|
3201
|
+
}, di(so, { pluginName: "revertOnSpill" });
|
|
3202
|
+
function co() {}
|
|
3203
|
+
co.prototype = {
|
|
3211
3204
|
onSpill: function(e) {
|
|
3212
3205
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3213
3206
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3214
3207
|
},
|
|
3215
|
-
drop:
|
|
3216
|
-
}, di(
|
|
3217
|
-
function co(e) {
|
|
3218
|
-
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3219
|
-
}
|
|
3208
|
+
drop: oo
|
|
3209
|
+
}, di(co, { pluginName: "removeOnSpill" }), Q.mount(new no()), Q.mount(co, so);
|
|
3220
3210
|
function lo(e) {
|
|
3221
|
-
|
|
3211
|
+
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3222
3212
|
}
|
|
3223
3213
|
function uo(e) {
|
|
3224
|
-
|
|
3214
|
+
ae() && ee(e);
|
|
3215
|
+
}
|
|
3216
|
+
function fo(e) {
|
|
3217
|
+
ae() ? u(e) : r(e);
|
|
3225
3218
|
}
|
|
3226
|
-
var
|
|
3227
|
-
function
|
|
3228
|
-
|
|
3219
|
+
var po = null, mo = null;
|
|
3220
|
+
function ho(e = null, t = null) {
|
|
3221
|
+
po = e, mo = t;
|
|
3229
3222
|
}
|
|
3230
|
-
function
|
|
3223
|
+
function go() {
|
|
3231
3224
|
return {
|
|
3232
|
-
data:
|
|
3233
|
-
clonedData:
|
|
3225
|
+
data: po,
|
|
3226
|
+
clonedData: mo
|
|
3234
3227
|
};
|
|
3235
3228
|
}
|
|
3236
|
-
var
|
|
3237
|
-
function
|
|
3238
|
-
let t =
|
|
3229
|
+
var _o = Symbol("cloneElement");
|
|
3230
|
+
function vo(...e) {
|
|
3231
|
+
let t = ae()?.proxy, n = null, i = e[0], [, o, c] = e;
|
|
3239
3232
|
Array.isArray(j(o)) || (c = o, o = null);
|
|
3240
|
-
let l = null, { immediate: u = !0, clone: d =
|
|
3233
|
+
let l = null, { immediate: u = !0, clone: d = lo, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
|
|
3241
3234
|
function h(e) {
|
|
3242
3235
|
let { from: t, oldIndex: r, item: i } = e, a = Array.from(t.childNodes);
|
|
3243
3236
|
n = f && !p ? a.slice(0, -1) : a;
|
|
3244
3237
|
let s = j(j(o)?.[r]), c = d(s);
|
|
3245
|
-
|
|
3238
|
+
ho(s, c), i[_o] = c;
|
|
3246
3239
|
}
|
|
3247
3240
|
function g(e) {
|
|
3248
|
-
let t = e.item[
|
|
3241
|
+
let t = e.item[_o];
|
|
3249
3242
|
if (!Xr(t)) {
|
|
3250
3243
|
if ($r(e.item), a(o)) {
|
|
3251
3244
|
let n = [...j(o)];
|
|
@@ -3298,7 +3291,7 @@ function _o(...e) {
|
|
|
3298
3291
|
n = null;
|
|
3299
3292
|
}
|
|
3300
3293
|
r(() => {
|
|
3301
|
-
if (
|
|
3294
|
+
if (ho(), s) throw s;
|
|
3302
3295
|
});
|
|
3303
3296
|
}
|
|
3304
3297
|
let b = {
|
|
@@ -3315,7 +3308,7 @@ function _o(...e) {
|
|
|
3315
3308
|
function S() {
|
|
3316
3309
|
let e = j(c) ?? {}, { immediate: t, clone: n } = e, r = Vr(e, ["immediate", "clone"]);
|
|
3317
3310
|
return ii(r, (e, t) => {
|
|
3318
|
-
ai(e) && (r[e] = (e, ...n) => (oi(e,
|
|
3311
|
+
ai(e) && (r[e] = (e, ...n) => (oi(e, go()), t(e, ...n)));
|
|
3319
3312
|
}), ni(o === null ? {} : b, r);
|
|
3320
3313
|
}
|
|
3321
3314
|
let C = (e) => {
|
|
@@ -3335,15 +3328,15 @@ function _o(...e) {
|
|
|
3335
3328
|
toArray: () => l?.toArray(),
|
|
3336
3329
|
closest: (...e) => l?.closest(...e)
|
|
3337
3330
|
};
|
|
3338
|
-
return
|
|
3331
|
+
return fo(() => {
|
|
3339
3332
|
u && C();
|
|
3340
|
-
}),
|
|
3333
|
+
}), uo(w.destroy), Br({
|
|
3341
3334
|
start: C,
|
|
3342
3335
|
pause: () => w?.option("disabled", !0),
|
|
3343
3336
|
resume: () => w?.option("disabled", !1)
|
|
3344
3337
|
}, w);
|
|
3345
3338
|
}
|
|
3346
|
-
var
|
|
3339
|
+
var yo = [
|
|
3347
3340
|
"update",
|
|
3348
3341
|
"start",
|
|
3349
3342
|
"add",
|
|
@@ -3356,7 +3349,7 @@ var vo = [
|
|
|
3356
3349
|
"clone",
|
|
3357
3350
|
"move",
|
|
3358
3351
|
"change"
|
|
3359
|
-
],
|
|
3352
|
+
], bo = y({
|
|
3360
3353
|
name: "VueDraggable",
|
|
3361
3354
|
model: {
|
|
3362
3355
|
prop: "modelValue",
|
|
@@ -3406,11 +3399,11 @@ var vo = [
|
|
|
3406
3399
|
"tag",
|
|
3407
3400
|
"target",
|
|
3408
3401
|
"customUpdate",
|
|
3409
|
-
...
|
|
3402
|
+
...yo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3410
3403
|
],
|
|
3411
|
-
emits: ["update:modelValue", ...
|
|
3404
|
+
emits: ["update:modelValue", ...yo],
|
|
3412
3405
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3413
|
-
let a =
|
|
3406
|
+
let a = yo.reduce((e, t) => {
|
|
3414
3407
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3415
3408
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3416
3409
|
}, {}), s = x(() => {
|
|
@@ -3422,21 +3415,21 @@ var vo = [
|
|
|
3422
3415
|
}), c = x({
|
|
3423
3416
|
get: () => e.modelValue,
|
|
3424
3417
|
set: (e) => n("update:modelValue", e)
|
|
3425
|
-
}), l = h(), u = o(
|
|
3418
|
+
}), l = h(), u = o(vo(e.target || l, c, s));
|
|
3426
3419
|
return r(u), () => f(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
|
|
3427
3420
|
}
|
|
3428
|
-
}),
|
|
3421
|
+
}), xo = {
|
|
3429
3422
|
mounted: "mounted",
|
|
3430
3423
|
unmounted: "unmounted"
|
|
3431
3424
|
};
|
|
3432
|
-
|
|
3425
|
+
xo.mounted, xo.unmounted;
|
|
3433
3426
|
//#endregion
|
|
3434
3427
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3435
|
-
var
|
|
3428
|
+
var So = { class: "tpl:w-full" }, Co = { class: "tpl:flex tpl:gap-0" }, wo = {
|
|
3436
3429
|
key: 0,
|
|
3437
3430
|
"data-testid": "section-drop-hint",
|
|
3438
3431
|
class: "tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:text-xs tpl:text-[var(--tpl-text-dim)]"
|
|
3439
|
-
},
|
|
3432
|
+
}, To = /* @__PURE__ */ y({
|
|
3440
3433
|
__name: "SectionBlock",
|
|
3441
3434
|
props: {
|
|
3442
3435
|
block: {},
|
|
@@ -3450,7 +3443,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3450
3443
|
button: rn,
|
|
3451
3444
|
divider: Hn,
|
|
3452
3445
|
custom: Bn
|
|
3453
|
-
}, a = n, { t: o } = ft(), s = He(nt, "SectionBlock"), l =
|
|
3446
|
+
}, a = n, { t: o } = ft(), s = He(nt, "SectionBlock"), l = P(st, null), u = P(it, null), d = x(() => {
|
|
3454
3447
|
switch (a.block.columns) {
|
|
3455
3448
|
case "2": return ["50%", "50%"];
|
|
3456
3449
|
case "3": return [
|
|
@@ -3484,11 +3477,11 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3484
3477
|
dataSourceFetched: t.dataSourceFetched
|
|
3485
3478
|
});
|
|
3486
3479
|
}
|
|
3487
|
-
return (r, a) => (e(), w("div",
|
|
3480
|
+
return (r, a) => (e(), w("div", So, [C("div", Co, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
|
|
3488
3481
|
key: a,
|
|
3489
3482
|
class: v(["tpl:relative tpl:min-h-[60px] tpl:rounded", p(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3490
3483
|
style: A({ width: d.value[a] })
|
|
3491
|
-
}, [N(j(
|
|
3484
|
+
}, [N(j(bo), {
|
|
3492
3485
|
"model-value": p(a),
|
|
3493
3486
|
group: {
|
|
3494
3487
|
name: "blocks",
|
|
@@ -3506,14 +3499,14 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3506
3499
|
class: "tpl:min-h-[60px]",
|
|
3507
3500
|
"onUpdate:modelValue": (e) => m(a, e)
|
|
3508
3501
|
}, {
|
|
3509
|
-
default:
|
|
3502
|
+
default: se(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Mr, {
|
|
3510
3503
|
block: r,
|
|
3511
3504
|
"is-selected": j(s).state.selectedBlockId === r.id,
|
|
3512
3505
|
viewport: n.viewport,
|
|
3513
3506
|
"preview-mode": j(s).state.previewMode,
|
|
3514
3507
|
onSelect: (e) => j(s).selectBlock(r.id)
|
|
3515
3508
|
}, {
|
|
3516
|
-
default:
|
|
3509
|
+
default: se(() => [(e(), ne(i(h(r)), {
|
|
3517
3510
|
block: r,
|
|
3518
3511
|
viewport: n.viewport,
|
|
3519
3512
|
onFetchData: (e) => g(r, e)
|
|
@@ -3535,9 +3528,9 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3535
3528
|
"model-value",
|
|
3536
3529
|
"group",
|
|
3537
3530
|
"onUpdate:modelValue"
|
|
3538
|
-
]), p(a).length === 0 ? (e(), w("div",
|
|
3531
|
+
]), p(a).length === 0 ? (e(), w("div", wo, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
|
|
3539
3532
|
}
|
|
3540
|
-
}),
|
|
3533
|
+
}), Eo = {
|
|
3541
3534
|
facebook: {
|
|
3542
3535
|
name: "Facebook",
|
|
3543
3536
|
color: "#1877F2",
|
|
@@ -3618,11 +3611,11 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3618
3611
|
color: "#1769FF",
|
|
3619
3612
|
path: "M22 7h-7V5h7v2zm1.726 10c-.442 1.297-2.029 3-5.101 3-3.074 0-5.564-1.729-5.564-5.675 0-3.91 2.325-5.92 5.466-5.92 3.082 0 4.964 1.782 5.375 4.426.078.506.109 1.188.095 2.14H15.97c.13 3.211 3.483 3.312 4.588 2.029h3.168zm-7.686-4h4.965c-.105-1.547-1.136-2.219-2.477-2.219-1.466 0-2.277.768-2.488 2.219zm-9.574 6.988H0V5.021h6.953c5.476.081 5.58 5.444 2.72 6.906 3.461 1.26 3.577 8.061-3.207 8.061zM3 11h3.584c2.508 0 2.906-3-.312-3H3v3zm3.391 3H3v3.016h3.341c3.055 0 2.868-3.016.05-3.016z"
|
|
3620
3613
|
}
|
|
3621
|
-
},
|
|
3614
|
+
}, Do = {
|
|
3622
3615
|
small: 24,
|
|
3623
3616
|
medium: 32,
|
|
3624
3617
|
large: 48
|
|
3625
|
-
},
|
|
3618
|
+
}, Oo = [
|
|
3626
3619
|
"facebook",
|
|
3627
3620
|
"twitter",
|
|
3628
3621
|
"instagram",
|
|
@@ -3639,11 +3632,11 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3639
3632
|
"github",
|
|
3640
3633
|
"dribbble",
|
|
3641
3634
|
"behance"
|
|
3642
|
-
],
|
|
3635
|
+
], ko = [
|
|
3643
3636
|
"width",
|
|
3644
3637
|
"height",
|
|
3645
3638
|
"fill"
|
|
3646
|
-
],
|
|
3639
|
+
], Ao = ["d"], jo = /* @__PURE__ */ y({
|
|
3647
3640
|
__name: "SocialIconSvg",
|
|
3648
3641
|
props: {
|
|
3649
3642
|
platform: {},
|
|
@@ -3651,7 +3644,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3651
3644
|
iconSize: {}
|
|
3652
3645
|
},
|
|
3653
3646
|
setup(t) {
|
|
3654
|
-
let n = t, r = x(() =>
|
|
3647
|
+
let n = t, r = x(() => Eo[n.platform]), i = x(() => Do[n.iconSize]), a = x(() => {
|
|
3655
3648
|
let e = {
|
|
3656
3649
|
display: "inline-flex",
|
|
3657
3650
|
alignItems: "center",
|
|
@@ -3695,12 +3688,12 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3695
3688
|
viewBox: "0 0 24 24",
|
|
3696
3689
|
fill: s.value,
|
|
3697
3690
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3698
|
-
}, [C("path", { d: r.value.path }, null, 8,
|
|
3691
|
+
}, [C("path", { d: r.value.path }, null, 8, Ao)], 8, ko))], 4));
|
|
3699
3692
|
}
|
|
3700
|
-
}),
|
|
3693
|
+
}), Mo = { class: "tpl:w-full" }, No = ["href"], Po = {
|
|
3701
3694
|
key: 1,
|
|
3702
3695
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3703
|
-
},
|
|
3696
|
+
}, Fo = /* @__PURE__ */ y({
|
|
3704
3697
|
__name: "SocialIconsBlock",
|
|
3705
3698
|
props: {
|
|
3706
3699
|
block: {},
|
|
@@ -3713,7 +3706,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3713
3706
|
gap: `${n.block.spacing}px`,
|
|
3714
3707
|
justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
|
|
3715
3708
|
})), a = x(() => n.block.icons.length > 0);
|
|
3716
|
-
return (n, o) => (e(), w("div",
|
|
3709
|
+
return (n, o) => (e(), w("div", Mo, [a.value ? (e(), w("div", {
|
|
3717
3710
|
key: 0,
|
|
3718
3711
|
style: A(i.value)
|
|
3719
3712
|
}, [(e(!0), w(D, null, c(t.block.icons, (n) => (e(), w("a", {
|
|
@@ -3721,7 +3714,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3721
3714
|
href: n.url || "#",
|
|
3722
3715
|
class: "tpl:cursor-default",
|
|
3723
3716
|
onClick: o[0] ||= b(() => {}, ["prevent"])
|
|
3724
|
-
}, [N(
|
|
3717
|
+
}, [N(jo, {
|
|
3725
3718
|
platform: n.platform,
|
|
3726
3719
|
"icon-style": t.block.iconStyle,
|
|
3727
3720
|
"icon-size": t.block.iconSize
|
|
@@ -3729,16 +3722,16 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3729
3722
|
"platform",
|
|
3730
3723
|
"icon-style",
|
|
3731
3724
|
"icon-size"
|
|
3732
|
-
])], 8,
|
|
3725
|
+
])], 8, No))), 128))], 4)) : (e(), w("div", Po, [N(j(hn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
|
|
3733
3726
|
}
|
|
3734
|
-
}),
|
|
3727
|
+
}), Io = { class: "tpl:w-full" }, Lo = {
|
|
3735
3728
|
key: 0,
|
|
3736
3729
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3737
3730
|
style: {
|
|
3738
3731
|
"background-color": "var(--tpl-bg-hover)",
|
|
3739
3732
|
color: "var(--tpl-text-dim)"
|
|
3740
3733
|
}
|
|
3741
|
-
},
|
|
3734
|
+
}, Ro = /* @__PURE__ */ y({
|
|
3742
3735
|
__name: "SpacerBlock",
|
|
3743
3736
|
props: {
|
|
3744
3737
|
block: {},
|
|
@@ -3750,23 +3743,23 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3750
3743
|
minHeight: `${n.block.height}px`,
|
|
3751
3744
|
...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3752
3745
|
}));
|
|
3753
|
-
return (n, a) => (e(), w("div",
|
|
3746
|
+
return (n, a) => (e(), w("div", Io, [C("div", {
|
|
3754
3747
|
style: A(i.value),
|
|
3755
3748
|
class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !j(r).state.previewMode }])
|
|
3756
|
-
}, [j(r).state.previewMode ? O("", !0) : (e(), w("span",
|
|
3749
|
+
}, [j(r).state.previewMode ? O("", !0) : (e(), w("span", Lo, M(t.block.height) + "px ", 1))], 6)]));
|
|
3757
3750
|
}
|
|
3758
|
-
}),
|
|
3751
|
+
}), zo = { class: "tpl:w-full" }, Bo = { key: 0 }, Vo = [
|
|
3759
3752
|
"aria-label",
|
|
3760
3753
|
"data-placeholder",
|
|
3761
3754
|
"onBlur"
|
|
3762
|
-
],
|
|
3755
|
+
], Ho = [
|
|
3763
3756
|
"aria-label",
|
|
3764
3757
|
"data-placeholder",
|
|
3765
3758
|
"onBlur"
|
|
3766
|
-
],
|
|
3759
|
+
], Uo = {
|
|
3767
3760
|
key: 1,
|
|
3768
3761
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:text-sm tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-text-dim)]"
|
|
3769
|
-
},
|
|
3762
|
+
}, Wo = /*#__PURE__*/ _t(/* @__PURE__ */ y({
|
|
3770
3763
|
__name: "TableBlock",
|
|
3771
3764
|
props: {
|
|
3772
3765
|
block: {},
|
|
@@ -3809,11 +3802,11 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3809
3802
|
} : n);
|
|
3810
3803
|
o.updateBlock(i.block.id, { rows: a });
|
|
3811
3804
|
}
|
|
3812
|
-
return (n, i) => (e(), w("div",
|
|
3805
|
+
return (n, i) => (e(), w("div", zo, [s.value ? (e(), w("table", {
|
|
3813
3806
|
key: 0,
|
|
3814
3807
|
style: A(l.value),
|
|
3815
3808
|
class: "tpl-table-editable"
|
|
3816
|
-
}, [f.value ? (e(), w("thead",
|
|
3809
|
+
}, [f.value ? (e(), w("thead", Bo, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
|
|
3817
3810
|
key: n.id,
|
|
3818
3811
|
style: A(d.value),
|
|
3819
3812
|
"aria-label": j(a).table.cellPlaceholder,
|
|
@@ -3822,7 +3815,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3822
3815
|
onBlur: (e) => h(f.value.id, n.id, e),
|
|
3823
3816
|
onKeydown: i[0] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3824
3817
|
onClick: b(m, ["stop"])
|
|
3825
|
-
}, null, 44,
|
|
3818
|
+
}, null, 44, Vo)), [[r, n.content]])), 128))])])) : O("", !0), C("tbody", null, [(e(!0), w(D, null, c(p.value, (n) => (e(), w("tr", { key: n.id }, [(e(!0), w(D, null, c(n.cells, (o) => t((e(), w("td", {
|
|
3826
3819
|
key: o.id,
|
|
3827
3820
|
style: A(u.value),
|
|
3828
3821
|
"aria-label": j(a).table.cellPlaceholder,
|
|
@@ -3831,9 +3824,9 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3831
3824
|
onBlur: (e) => h(n.id, o.id, e),
|
|
3832
3825
|
onKeydown: i[1] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3833
3826
|
onClick: b(m, ["stop"])
|
|
3834
|
-
}, null, 44,
|
|
3827
|
+
}, null, 44, Ho)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", Uo, [N(j(gn), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
|
|
3835
3828
|
}
|
|
3836
|
-
}), [["__scopeId", "data-v-
|
|
3829
|
+
}), [["__scopeId", "data-v-de1a7c76"]]), Go = /* @__PURE__ */ y({
|
|
3837
3830
|
__name: "VideoPlayButton",
|
|
3838
3831
|
props: { hoverEffect: {
|
|
3839
3832
|
type: Boolean,
|
|
@@ -3851,7 +3844,7 @@ var xo = { class: "tpl:w-full" }, So = { class: "tpl:flex tpl:gap-0" }, Co = {
|
|
|
3851
3844
|
});
|
|
3852
3845
|
//#endregion
|
|
3853
3846
|
//#region src/utils/videoThumbnail.ts
|
|
3854
|
-
function
|
|
3847
|
+
function Ko(e) {
|
|
3855
3848
|
if (!e) return {
|
|
3856
3849
|
platform: "unknown",
|
|
3857
3850
|
videoId: null,
|
|
@@ -3883,25 +3876,25 @@ function Go(e) {
|
|
|
3883
3876
|
thumbnailUrl: null
|
|
3884
3877
|
};
|
|
3885
3878
|
}
|
|
3886
|
-
function
|
|
3887
|
-
return t ||
|
|
3879
|
+
function qo(e, t) {
|
|
3880
|
+
return t || Ko(e).thumbnailUrl;
|
|
3888
3881
|
}
|
|
3889
3882
|
//#endregion
|
|
3890
3883
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3891
|
-
var
|
|
3884
|
+
var Jo = ["src", "alt"], Yo = {
|
|
3892
3885
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3893
3886
|
style: { opacity: "0.7" }
|
|
3894
|
-
},
|
|
3887
|
+
}, Xo = ["href"], Zo = ["src", "alt"], Qo = ["src", "alt"], $o = {
|
|
3895
3888
|
key: 3,
|
|
3896
3889
|
class: "tpl:flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-sm tpl:border-[var(--tpl-border-light)] tpl:bg-[var(--tpl-bg-hover)] tpl:text-[var(--tpl-text-dim)]"
|
|
3897
|
-
},
|
|
3890
|
+
}, es = /* @__PURE__ */ y({
|
|
3898
3891
|
__name: "VideoBlock",
|
|
3899
3892
|
props: {
|
|
3900
3893
|
block: {},
|
|
3901
3894
|
viewport: {}
|
|
3902
3895
|
},
|
|
3903
3896
|
setup(t) {
|
|
3904
|
-
let n = t, { t: r } = ft(), { syntax: i } = vt(), a = x(() => me(n.block.url, i) || me(n.block.thumbnailUrl, i)), o = x(() => a.value ? null :
|
|
3897
|
+
let n = t, { t: r } = ft(), { syntax: i } = vt(), a = x(() => me(n.block.url, i) || me(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : qo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => {
|
|
3905
3898
|
let e = n.block.align;
|
|
3906
3899
|
return {
|
|
3907
3900
|
maxWidth: "100%",
|
|
@@ -3922,7 +3915,7 @@ var qo = ["src", "alt"], Jo = {
|
|
|
3922
3915
|
class: "tpl:w-full tpl:border-0",
|
|
3923
3916
|
src: t.block.placeholderUrl,
|
|
3924
3917
|
alt: t.block.alt
|
|
3925
|
-
}, null, 8,
|
|
3918
|
+
}, null, 8, Jo), N(Go)], 4)) : a.value ? (e(), w("div", {
|
|
3926
3919
|
key: 1,
|
|
3927
3920
|
class: "tpl:relative tpl:!flex tpl:min-h-[150px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border-2 tpl:border-dashed tpl:text-center tpl:bg-[var(--tpl-bg-elevated)]",
|
|
3928
3921
|
style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, c.value])
|
|
@@ -3931,7 +3924,7 @@ var qo = ["src", "alt"], Jo = {
|
|
|
3931
3924
|
"stroke-width": 1.5,
|
|
3932
3925
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3933
3926
|
style: { opacity: "0.5" }
|
|
3934
|
-
}), C("span",
|
|
3927
|
+
}), C("span", Yo, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
|
|
3935
3928
|
key: 0,
|
|
3936
3929
|
href: t.block.url,
|
|
3937
3930
|
target: "_blank",
|
|
@@ -3943,7 +3936,7 @@ var qo = ["src", "alt"], Jo = {
|
|
|
3943
3936
|
class: "tpl:w-full tpl:border-0",
|
|
3944
3937
|
src: o.value,
|
|
3945
3938
|
alt: t.block.alt
|
|
3946
|
-
}, null, 8,
|
|
3939
|
+
}, null, 8, Zo), N(Go, { "hover-effect": "" })], 12, Xo)) : (e(), w("div", {
|
|
3947
3940
|
key: 1,
|
|
3948
3941
|
class: "tpl:relative tpl:inline-block",
|
|
3949
3942
|
style: A(c.value)
|
|
@@ -3951,28 +3944,28 @@ var qo = ["src", "alt"], Jo = {
|
|
|
3951
3944
|
class: "tpl:w-full tpl:border-0",
|
|
3952
3945
|
src: o.value,
|
|
3953
3946
|
alt: t.block.alt
|
|
3954
|
-
}, null, 8,
|
|
3947
|
+
}, null, 8, Qo), N(Go)], 4))], 64)) : (e(), w("div", $o, [N(j(_n), {
|
|
3955
3948
|
size: 40,
|
|
3956
3949
|
"stroke-width": 1.5,
|
|
3957
3950
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3958
3951
|
}), C("span", null, M(j(r).video.addVideo), 1)]))], 4));
|
|
3959
3952
|
}
|
|
3960
|
-
}),
|
|
3961
|
-
section:
|
|
3953
|
+
}), ts = {
|
|
3954
|
+
section: To,
|
|
3962
3955
|
title: Pr,
|
|
3963
3956
|
paragraph: _r,
|
|
3964
3957
|
image: ir,
|
|
3965
3958
|
button: rn,
|
|
3966
3959
|
divider: Hn,
|
|
3967
|
-
video:
|
|
3968
|
-
social:
|
|
3960
|
+
video: es,
|
|
3961
|
+
social: Fo,
|
|
3969
3962
|
menu: cr,
|
|
3970
|
-
table:
|
|
3971
|
-
spacer:
|
|
3963
|
+
table: Wo,
|
|
3964
|
+
spacer: Ro,
|
|
3972
3965
|
html: qn,
|
|
3973
|
-
countdown:
|
|
3966
|
+
countdown: oe(() => import("./CountdownBlock-S-SCyVye.js").then((e) => e.n))
|
|
3974
3967
|
};
|
|
3975
|
-
function
|
|
3968
|
+
function ns(e) {
|
|
3976
3969
|
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = ft(r);
|
|
3977
3970
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
3978
3971
|
let { resolvedTheme: c } = Vt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = Ut({
|
|
@@ -4004,7 +3997,7 @@ function ts(e) {
|
|
|
4004
3997
|
t: a,
|
|
4005
3998
|
format: o
|
|
4006
3999
|
}), y = qt();
|
|
4007
|
-
if (Qt(y,
|
|
4000
|
+
if (Qt(y, ts), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Bn);
|
|
4008
4001
|
function b(e) {
|
|
4009
4002
|
for (let t of e) y.registerCustom(t, Bn);
|
|
4010
4003
|
}
|
|
@@ -4061,4 +4054,4 @@ function ts(e) {
|
|
|
4061
4054
|
};
|
|
4062
4055
|
}
|
|
4063
4056
|
//#endregion
|
|
4064
|
-
export { ln as A, wn as C, hn as D, gn as E, zt as F, At as I, xt as L, sn as M, rn as N, pn as O, Kt as P, Tn as S, bn as T, qn as _,
|
|
4057
|
+
export { ln as A, wn as C, hn as D, gn as E, zt as F, At as I, xt as L, sn as M, rn as N, pn as O, Kt as P, Tn as S, bn as T, qn as _, Fo as a, jn as b, To as c, Mr as d, yr as f, ir as g, cr as h, Ro as i, cn as j, fn as k, bo as l, _r as m, es as n, Eo as o, vr as p, Wo as r, Oo as s, ns as t, Pr as u, Hn as v, Cn as w, kn as x, Bn as y };
|