@templatical/editor 0.7.3 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-H7SIsxeC.js → AiChatSidebar-B74X6tIx.js} +3 -3
- package/dist/{AiFeatureMenu-CJGX-fP5.js → AiFeatureMenu-BPOVM_Ou.js} +4 -4
- package/dist/{BlockA11yBadge-BhyoMZJ9.js → BlockIssueBadge-DJTiT1eF.js} +6 -6
- package/dist/{CloudEditor-BBs3p-mW.js → CloudEditor-wAkx8TH_.js} +24 -24
- package/dist/{CollaboratorBar-CiEo25lb.js → CollaboratorBar-DIr5ZUv9.js} +2 -2
- package/dist/{CommentsSidebar-DikjSLtH.js → CommentsSidebar-Qvppl-DR.js} +6 -6
- package/dist/{CountdownBlock-ByJ0_8Pk.js → CountdownBlock-D0IiMliC.js} +1 -1
- package/dist/{CountdownToolbar-Bn4RwJVN.js → CountdownToolbar-BVVT8U5C.js} +2 -2
- package/dist/{DesignReferenceSidebar-D08CLZPA.js → DesignReferenceSidebar-ucgtoDll.js} +6 -6
- package/dist/{AccessibilityPanel-BeUibrUb.js → IssuesPanel-XVdvrgmq.js} +18 -18
- package/dist/{ModuleBrowserModal-D6637s8j.js → ModuleBrowserModal-VqGNisDp.js} +7 -7
- package/dist/{ModulePreviewCanvas-DBFmwq-y.js → ModulePreviewCanvas-DmzW6I_9.js} +2 -2
- package/dist/{NumberWithSuffix-CyFX9w1e.js → NumberWithSuffix-n-cr7lpU.js} +1 -1
- package/dist/{ParagraphEditor-DC2jOjNh.js → ParagraphEditor-BQTPI8j8.js} +6 -6
- package/dist/{RichTextEditorContent-8NkjTIua.js → RichTextEditorContent-Cu9NEkKd.js} +3 -3
- package/dist/{SaveModuleDialog-NKT7bWWs.js → SaveModuleDialog-DhgHOGgX.js} +6 -6
- package/dist/{SnapshotHistory-XNqYxPBj.js → SnapshotHistory-DJOsWv4i.js} +5 -5
- package/dist/{TemplateScoringPanel-kYOGtac3.js → TemplateScoringPanel-BzDVdfOx.js} +6 -6
- package/dist/{TestEmailModal-B_-Qo5Us.js → TestEmailModal-Dqj50aHe.js} +3 -3
- package/dist/{TitleEditor-DnH3yyTr.js → TitleEditor-PQYXfY6W.js} +6 -6
- package/dist/{TplModal-BoEZFe3U.js → TplModal-Dy6RXBV_.js} +3 -3
- package/dist/{blockTypeIcons-CUcYuWAO.js → blockTypeIcons-qnUeTls5.js} +1 -1
- package/dist/bundle-stats.json +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js → AiFeatureMenu-Cr6_Q9Zv.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-SxIqfqA0.js.map → AiFeatureMenu-Cr6_Q9Zv.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-QqW6nomn.js → BlockIssueBadge-D0_mYpkl.js} +6 -6
- package/dist/cdn/chunks/BlockIssueBadge-D0_mYpkl.js.map +1 -0
- package/dist/cdn/chunks/{CloudEditor-ChWUIMw7.js → CloudEditor-BtAkuQB4.js} +101 -101
- package/dist/cdn/chunks/CloudEditor-BtAkuQB4.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js → CollaboratorBar-C-P00I9l.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-73LfbzqF.js.map → CollaboratorBar-C-P00I9l.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js → CountdownBlock-BEWsiqgw.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-WYz9b9Ex.js.map → CountdownBlock-BEWsiqgw.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js → CountdownToolbar-CdjFGEI7.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-B9fPfFqp.js.map → CountdownToolbar-CdjFGEI7.js.map} +1 -1
- package/dist/cdn/chunks/{AccessibilityPanel-CQt87OMk.js → IssuesPanel-DJOLYNAJ.js} +15 -15
- package/dist/cdn/chunks/IssuesPanel-DJOLYNAJ.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js → ModuleBrowserModal-hnbUUl8w.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-DfnJQBkM.js.map → ModuleBrowserModal-hnbUUl8w.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js → ModulePreviewCanvas-_DoUZGQh.js} +24 -24
- package/dist/cdn/chunks/{ModulePreviewCanvas-DE4_oHA_.js.map → ModulePreviewCanvas-_DoUZGQh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js → NumberWithSuffix-ryhWFnCJ.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BST0yRor.js.map → NumberWithSuffix-ryhWFnCJ.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js → ParagraphEditor-BtzinrI_.js} +15 -15
- package/dist/cdn/chunks/{ParagraphEditor-CQfijF3i.js.map → ParagraphEditor-BtzinrI_.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js → RichTextEditorContent-CRlcjuMH.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-CBds8dnm.js.map → RichTextEditorContent-CRlcjuMH.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js → SaveModuleDialog-D-g-nYuL.js} +4 -4
- package/dist/cdn/chunks/{SaveModuleDialog-DXhuZgZ4.js.map → SaveModuleDialog-D-g-nYuL.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js → TitleEditor-Bzsbpajt.js} +7 -7
- package/dist/cdn/chunks/{TitleEditor-BdQvH7eK.js.map → TitleEditor-Bzsbpajt.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js → blockTypeIcons-B_klsmQ1.js} +8 -8
- package/dist/cdn/chunks/{blockTypeIcons-D3CGFW5P.js.map → blockTypeIcons-B_klsmQ1.js.map} +1 -1
- package/dist/{de-C9hp3n_a.js → cdn/chunks/de-BBEGQDsd.js} +9 -7
- package/dist/cdn/chunks/{de-B_6zGPbx.js.map → de-BBEGQDsd.js.map} +1 -1
- package/dist/{en-Dv776AqL.js → cdn/chunks/en-CHha-_ta.js} +9 -7
- package/dist/cdn/chunks/{en-pYt1-lm4.js.map → en-CHha-_ta.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BE81zpqP.js → extensions-DIHxPVrP.js} +2 -2
- package/dist/cdn/chunks/{extensions-BE81zpqP.js.map → extensions-DIHxPVrP.js.map} +1 -1
- package/dist/cdn/chunks/{features-CXF_YKlL.js → features-BsW4aFcn.js} +642 -627
- package/dist/cdn/chunks/features-BsW4aFcn.js.map +1 -0
- package/dist/cdn/chunks/{icons-KbmhF7rg.js → icons-BgPk6tUq.js} +36 -38
- package/dist/cdn/chunks/icons-BgPk6tUq.js.map +1 -0
- package/dist/cdn/chunks/{media-library-BERe10wA.js → media-library-C1Ue4At9.js} +13 -13
- package/dist/cdn/chunks/{media-library-BERe10wA.js.map → media-library-C1Ue4At9.js.map} +1 -1
- package/dist/{pt-BR-6n58Fl_q.js → cdn/chunks/pt-BR-CFomv2R8.js} +9 -7
- package/dist/cdn/chunks/{pt-BR-CtDwVsN-.js.map → pt-BR-CFomv2R8.js.map} +1 -1
- package/dist/cdn/chunks/{quality-CmkY1kMU.js → quality-BDr54nMA.js} +858 -436
- package/dist/cdn/chunks/quality-BDr54nMA.js.map +1 -0
- package/dist/cdn/chunks/{renderer-OttGEYkY.js → renderer-BdjvKDwC.js} +3 -3
- package/dist/cdn/chunks/{renderer-OttGEYkY.js.map → renderer-BdjvKDwC.js.map} +1 -1
- package/dist/cdn/chunks/{src-C21GI0p6.js → src-BI22RLP6.js} +6 -6
- package/dist/cdn/chunks/{src-C21GI0p6.js.map → src-BI22RLP6.js.map} +1 -1
- package/dist/cdn/chunks/{styles-Cy-My9zK.js → styles-BkubbXy8.js} +310 -285
- package/dist/cdn/chunks/styles-BkubbXy8.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +11 -11
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{cdn/chunks/de-B_6zGPbx.js → de-KFqjrxG3.js} +7 -9
- package/dist/{cdn/chunks/en-pYt1-lm4.js → en-CNm94YYD.js} +7 -9
- package/dist/{extensions-p6UBqXfg.js → extensions-C-FpnfJn.js} +2 -2
- package/dist/index.d.ts +16 -14
- package/dist/{keys-B5SJtPWf.js → keys-CY3tkCsv.js} +2 -2
- package/dist/list-checks-CMtEXe9l.js +25 -0
- package/dist/{cdn/chunks/pt-BR-CtDwVsN-.js → pt-BR-gxZZAUWp.js} +7 -9
- package/dist/style.css +1 -1
- package/dist/{styles-BP15QmP3.js → styles-BEhOSxt5.js} +204 -179
- package/dist/templatical-editor.js +9 -9
- package/dist/{useCloudI18n-ByEMykjO.js → useCloudI18n-BPUHj2CZ.js} +1 -1
- package/dist/{useEditorCore-_rbu6iMu.js → useEditorCore-DnCOsekL.js} +737 -722
- package/dist/{useI18n-PEB8ioi_.js → useI18n-CWX9ZTCW.js} +1 -1
- package/dist/{useMergeTag-C47xwU7X.js → useMergeTag-B3F9VR04.js} +2 -2
- package/dist/{usePopoverRoot-BwzFSPLy.js → usePopoverRoot-BKJcxsst.js} +1 -1
- package/package.json +7 -7
- package/dist/accessibility-BgUEA-Ai.js +0 -27
- package/dist/cdn/chunks/AccessibilityPanel-CQt87OMk.js.map +0 -1
- package/dist/cdn/chunks/BlockA11yBadge-QqW6nomn.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-ChWUIMw7.js.map +0 -1
- package/dist/cdn/chunks/features-CXF_YKlL.js.map +0 -1
- package/dist/cdn/chunks/icons-KbmhF7rg.js.map +0 -1
- package/dist/cdn/chunks/quality-CmkY1kMU.js.map +0 -1
- package/dist/cdn/chunks/styles-Cy-My9zK.js.map +0 -1
- /package/dist/{check-Bg5yrRmX.js → check-BF4bEbCU.js} +0 -0
- /package/dist/{chevron-down-tee-ghFi.js → chevron-down-4NzWtv6Y.js} +0 -0
- /package/dist/{circle-alert-C0L9pUQ4.js → circle-alert-CPIth9bC.js} +0 -0
- /package/dist/{clock-CDlEdqiP.js → clock-B9-ct9r_.js} +0 -0
- /package/dist/{image-up-1D_3XDdO.js → image-up-CubAveUO.js} +0 -0
- /package/dist/{info-DTGrc0Bx.js → info-DiINxXfZ.js} +0 -0
- /package/dist/{refresh-cw-BNAhAmtL.js → refresh-cw-C9_M6yB3.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
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 { a as
|
|
4
|
-
import { A as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import "./useCloudI18n-
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
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 ae, x as oe, y as se, z as ce } from "./vue.runtime.esm-bundler-Bxqkjqhc.js";
|
|
2
|
+
import { A as le, S as ue, T as de, _ as fe, a as pe, b as me, c as he, d as ge, f as _e, g as ve, h as ye, j as be, k as xe, l as Se, m as Ce, o as we, p as Te, s as Ee, t as De, u as Oe, v as ke, x as Ae, y as je } from "./dist-DJmnUmW9.js";
|
|
3
|
+
import { a as Me, c as Ne, i as Pe, l as Fe, n as Ie, r as Le, s as Re } from "./dist-BzRLLpfq.js";
|
|
4
|
+
import { A as ze, C as Be, D as Ve, E as He, O as Ue, S as We, _ as Ge, a as Ke, b as qe, d as Je, f as Ye, g as Xe, h as Ze, i as Qe, k as $e, m as et, n as tt, o as nt, p as rt, s as it, u as at, v as ot, x as st, y as ct } from "./keys-CY3tkCsv.js";
|
|
5
|
+
import { t as lt } from "./useI18n-CWX9ZTCW.js";
|
|
6
|
+
import { t as P } from "./createLucideIcon-Di4mqmGn.js";
|
|
7
|
+
import { t as ut } from "./message-circle-gzy2ZGJ3.js";
|
|
8
|
+
import { t as dt } from "./trash-2-424iqbpN.js";
|
|
9
|
+
import { t as ft } from "./triangle-alert-DWQySIE2.js";
|
|
10
|
+
import { t as pt } from "./LoadingTrack-CFkDkjBb.js";
|
|
11
|
+
import { t as mt } from "./_plugin-vue_export-helper-B0hnzhyu.js";
|
|
12
|
+
import "./useCloudI18n-BPUHj2CZ.js";
|
|
13
|
+
import { t as ht } from "./useMergeTag-B3F9VR04.js";
|
|
14
|
+
import { t as gt } from "./useAliveFlag-D8GoB4VE.js";
|
|
15
15
|
//#region ../core/dist/index.js
|
|
16
|
-
function
|
|
16
|
+
function _t(e) {
|
|
17
17
|
return e === "1" ? 1 : e === "3" ? 3 : 2;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function vt(e) {
|
|
20
20
|
let t = o({
|
|
21
|
-
content: e.content ??
|
|
21
|
+
content: e.content ?? Oe(e.defaultFontFamily, e.templateDefaults),
|
|
22
22
|
selectedBlockId: null,
|
|
23
23
|
viewport: "desktop",
|
|
24
24
|
darkMode: !1,
|
|
@@ -106,7 +106,7 @@ function _t(e) {
|
|
|
106
106
|
if (c(n)) return;
|
|
107
107
|
let o = i(t.content.blocks, n);
|
|
108
108
|
if (o && o.type === "section") {
|
|
109
|
-
if (r < 0 || r >=
|
|
109
|
+
if (r < 0 || r >= _t(o.columns)) return;
|
|
110
110
|
o.children[r] = o.children[r] || [];
|
|
111
111
|
let t = o.children[r];
|
|
112
112
|
a !== void 0 && a < t.length ? t.splice(a, 0, e) : t.push(e);
|
|
@@ -138,7 +138,7 @@ function _t(e) {
|
|
|
138
138
|
let u;
|
|
139
139
|
if (r) {
|
|
140
140
|
let e = i(t.content.blocks, r);
|
|
141
|
-
if (!e || e.type !== "section" || a < 0 || a >=
|
|
141
|
+
if (!e || e.type !== "section" || a < 0 || a >= _t(e.columns)) return;
|
|
142
142
|
e.children[a] = e.children[a] || [], u = e.children[a];
|
|
143
143
|
} else u = t.content.blocks;
|
|
144
144
|
let [d] = o.blocks.splice(l, 1);
|
|
@@ -167,9 +167,9 @@ function _t(e) {
|
|
|
167
167
|
findBlockLocation: l
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
function
|
|
172
|
-
let { content: t, setContent: n, isRemoteOperation: r, maxSize: i =
|
|
170
|
+
var yt = 50, bt = 300, xt = 1500;
|
|
171
|
+
function St(e) {
|
|
172
|
+
let { content: t, setContent: n, isRemoteOperation: r, maxSize: i = yt } = 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
174
|
let e = /* @__PURE__ */ new WeakSet();
|
|
175
175
|
return JSON.parse(JSON.stringify(t.value, (t, n) => {
|
|
@@ -194,21 +194,21 @@ function xt(e) {
|
|
|
194
194
|
if (l && l.blockId === e) {
|
|
195
195
|
clearTimeout(l.timeoutId), l.timeoutId = setTimeout(() => {
|
|
196
196
|
l = null;
|
|
197
|
-
},
|
|
197
|
+
}, bt);
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
g(), p(f()), o.value = [], l = {
|
|
201
201
|
blockId: e,
|
|
202
202
|
timeoutId: setTimeout(() => {
|
|
203
203
|
l = null;
|
|
204
|
-
},
|
|
204
|
+
}, bt)
|
|
205
205
|
};
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
function y() {
|
|
209
209
|
s.value = !0, c && clearTimeout(c), c = setTimeout(() => {
|
|
210
210
|
s.value = !1, c = null;
|
|
211
|
-
},
|
|
211
|
+
}, xt);
|
|
212
212
|
}
|
|
213
213
|
function b() {
|
|
214
214
|
if (a.value.length === 0) return;
|
|
@@ -240,33 +240,33 @@ function xt(e) {
|
|
|
240
240
|
destroy: C
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ct(e) {
|
|
244
244
|
e.type === "table" ? e.rows = e.rows.map((e) => ({
|
|
245
245
|
...e,
|
|
246
|
-
id:
|
|
246
|
+
id: ue(),
|
|
247
247
|
cells: e.cells.map((e) => ({
|
|
248
248
|
...e,
|
|
249
|
-
id:
|
|
249
|
+
id: ue()
|
|
250
250
|
}))
|
|
251
251
|
})) : e.type === "social" ? e.icons = e.icons.map((e) => ({
|
|
252
252
|
...e,
|
|
253
|
-
id:
|
|
253
|
+
id: ue()
|
|
254
254
|
})) : e.type === "menu" && (e.items = e.items.map((e) => ({
|
|
255
255
|
...e,
|
|
256
|
-
id:
|
|
256
|
+
id: ue()
|
|
257
257
|
})));
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function wt(e) {
|
|
260
260
|
let { addBlock: t, removeBlock: n, updateBlock: r, selectBlock: i, findBlockLocation: a } = e;
|
|
261
261
|
function o(n, r, a) {
|
|
262
|
-
let o =
|
|
262
|
+
let o = we(n, e.blockDefaults);
|
|
263
263
|
return t(o, r, a), i(o.id), o;
|
|
264
264
|
}
|
|
265
265
|
function s(e, n, r) {
|
|
266
266
|
let o = JSON.parse(JSON.stringify(e));
|
|
267
|
-
if (o.id =
|
|
267
|
+
if (o.id = ue(), Ct(o), o.type === "section" && (o.children = o.children.map((e) => e.map((e) => {
|
|
268
268
|
let t = JSON.parse(JSON.stringify(e));
|
|
269
|
-
return t.id =
|
|
269
|
+
return t.id = ue(), Ct(t), t;
|
|
270
270
|
}))), n !== void 0 || r !== void 0) t(o, n, r);
|
|
271
271
|
else {
|
|
272
272
|
let i = a?.(e.id) ?? null;
|
|
@@ -287,7 +287,7 @@ function Ct(e) {
|
|
|
287
287
|
updateBlockProperty: l
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Tt(e) {
|
|
291
291
|
let { content: t, isDirty: n, onChange: r, debounce: i = 1e3, enabled: a = !0 } = e, o = null, s = !1;
|
|
292
292
|
function c() {
|
|
293
293
|
return typeof a == "function" ? a() : a;
|
|
@@ -323,7 +323,7 @@ function wt(e) {
|
|
|
323
323
|
destroy: h
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Et(e) {
|
|
327
327
|
let t = o(/* @__PURE__ */ new Set()), n = m(() => t.size > 0);
|
|
328
328
|
function r(e) {
|
|
329
329
|
return t.has(e);
|
|
@@ -341,7 +341,7 @@ function Tt(e) {
|
|
|
341
341
|
hasHiddenBlocks: n
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Dt(e) {
|
|
345
345
|
let t = h(!1), n = h(!1), r = m(() => !!e.definition.value?.dataSource), i = m(() => r.value && !e.block.value.dataSourceFetched);
|
|
346
346
|
async function a() {
|
|
347
347
|
let r = e.definition.value;
|
|
@@ -371,7 +371,7 @@ function Et(e) {
|
|
|
371
371
|
needsFetch: i
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ot(e, t) {
|
|
375
375
|
let n = e.addBlock, r = e.removeBlock, i = e.moveBlock, a = e.updateBlock, o = e.updateSettings;
|
|
376
376
|
e.addBlock = (r, i, a, o) => {
|
|
377
377
|
i && e.isBlockLocked(i) || (t.record(), n(r, i, a, o));
|
|
@@ -387,33 +387,40 @@ function Dt(e, t) {
|
|
|
387
387
|
}
|
|
388
388
|
//#endregion
|
|
389
389
|
//#region src/utils/activeEditorTracker.ts
|
|
390
|
-
var
|
|
391
|
-
function
|
|
392
|
-
let e = ++
|
|
393
|
-
return
|
|
390
|
+
var kt = /* @__PURE__ */ new Set(), At = 0, jt = 0;
|
|
391
|
+
function Mt() {
|
|
392
|
+
let e = ++jt;
|
|
393
|
+
return kt.add(e), At === 0 && (At = e), {
|
|
394
394
|
id: e,
|
|
395
|
-
isActive: () =>
|
|
395
|
+
isActive: () => kt.size <= 1 || At === e,
|
|
396
396
|
claim: () => {
|
|
397
|
-
|
|
397
|
+
At = e;
|
|
398
398
|
},
|
|
399
399
|
dispose: () => {
|
|
400
|
-
if (
|
|
401
|
-
let e = Array.from(
|
|
402
|
-
|
|
400
|
+
if (kt.delete(e), At === e) {
|
|
401
|
+
let e = Array.from(kt);
|
|
402
|
+
At = e[e.length - 1] ?? 0;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
}
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region src/composables/
|
|
409
|
-
function
|
|
410
|
-
|
|
408
|
+
//#region src/composables/useTemplateLint.ts
|
|
409
|
+
function Nt(e) {
|
|
410
|
+
return e ? e.disabled === !0 ? !0 : e.accessibility === !1 && e.structure === !1 && e.links === !1 : !1;
|
|
411
|
+
}
|
|
412
|
+
function Pt(e) {
|
|
413
|
+
let t = h([]), n = h(!1), r = h(!1), i = d(null), a = Nt(e.options), o = null, c = !1;
|
|
411
414
|
a || l();
|
|
412
415
|
async function l() {
|
|
413
416
|
try {
|
|
414
417
|
let t = await import("@templatical/quality");
|
|
415
418
|
if (c) return;
|
|
416
|
-
i.value =
|
|
419
|
+
i.value = {
|
|
420
|
+
lintAccessibility: t.lintAccessibility,
|
|
421
|
+
lintStructure: t.lintStructure,
|
|
422
|
+
lintLinks: t.lintLinks
|
|
423
|
+
}, n.value = !0, u(), o = Fe(e.content, u, {
|
|
417
424
|
debounce: e.debounce ?? 500,
|
|
418
425
|
deep: !0
|
|
419
426
|
});
|
|
@@ -423,7 +430,13 @@ function Mt(e) {
|
|
|
423
430
|
}
|
|
424
431
|
}
|
|
425
432
|
function u() {
|
|
426
|
-
|
|
433
|
+
if (!i.value) return;
|
|
434
|
+
let n = i.value.lintAccessibility(e.content.value, e.options), r = i.value.lintStructure(e.content.value, e.options), a = i.value.lintLinks(e.content.value, e.options);
|
|
435
|
+
t.value = [
|
|
436
|
+
...n,
|
|
437
|
+
...r,
|
|
438
|
+
...a
|
|
439
|
+
];
|
|
427
440
|
}
|
|
428
441
|
let f = s(() => e.options, () => {
|
|
429
442
|
i.value && u();
|
|
@@ -431,7 +444,8 @@ function Mt(e) {
|
|
|
431
444
|
function p(t) {
|
|
432
445
|
t.fix && t.fix.apply({
|
|
433
446
|
updateBlock: e.updateBlock,
|
|
434
|
-
updateSettings: e.updateSettings
|
|
447
|
+
updateSettings: e.updateSettings,
|
|
448
|
+
removeBlock: e.removeBlock
|
|
435
449
|
});
|
|
436
450
|
}
|
|
437
451
|
function m() {
|
|
@@ -447,12 +461,12 @@ function Mt(e) {
|
|
|
447
461
|
}
|
|
448
462
|
//#endregion
|
|
449
463
|
//#region src/utils/blockTypeLabels.ts
|
|
450
|
-
function
|
|
464
|
+
function Ft(e, t) {
|
|
451
465
|
return t.blocks[e] ?? e;
|
|
452
466
|
}
|
|
453
467
|
//#endregion
|
|
454
468
|
//#region src/composables/useKeyboardReorder.ts
|
|
455
|
-
function
|
|
469
|
+
function It(e, t) {
|
|
456
470
|
let n = h(null), r = h(""), i = null;
|
|
457
471
|
function a(t) {
|
|
458
472
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
@@ -479,7 +493,7 @@ function Pt(e, t) {
|
|
|
479
493
|
let r = a(n);
|
|
480
494
|
if (!r) return "";
|
|
481
495
|
let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
|
|
482
|
-
return i ?
|
|
496
|
+
return i ? Ft(i.type, t.t) : "";
|
|
483
497
|
}
|
|
484
498
|
function s(t, n) {
|
|
485
499
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -548,13 +562,13 @@ function Pt(e, t) {
|
|
|
548
562
|
}
|
|
549
563
|
//#endregion
|
|
550
564
|
//#region src/composables/useUiTheme.ts
|
|
551
|
-
function
|
|
552
|
-
let t =
|
|
565
|
+
function Lt(e) {
|
|
566
|
+
let t = Pe("(prefers-color-scheme: dark)");
|
|
553
567
|
return { resolvedTheme: x(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
554
568
|
}
|
|
555
569
|
//#endregion
|
|
556
570
|
//#region src/composables/useThemeStyles.ts
|
|
557
|
-
var
|
|
571
|
+
var Rt = {
|
|
558
572
|
bg: "--tpl-bg",
|
|
559
573
|
bgElevated: "--tpl-bg-elevated",
|
|
560
574
|
bgHover: "--tpl-bg-hover",
|
|
@@ -578,10 +592,10 @@ var It = {
|
|
|
578
592
|
dangerLight: "--tpl-danger-light",
|
|
579
593
|
canvasBg: "--tpl-canvas-bg"
|
|
580
594
|
};
|
|
581
|
-
function
|
|
595
|
+
function zt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
582
596
|
return { themeStyles: x(() => {
|
|
583
597
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
584
|
-
if (a) for (let [e, t] of Object.entries(
|
|
598
|
+
if (a) for (let [e, t] of Object.entries(Rt)) {
|
|
585
599
|
let n = a[e];
|
|
586
600
|
n && (r[t] = n);
|
|
587
601
|
}
|
|
@@ -590,27 +604,27 @@ function Lt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
590
604
|
}
|
|
591
605
|
//#endregion
|
|
592
606
|
//#region src/utils/logger.ts
|
|
593
|
-
var
|
|
594
|
-
function
|
|
607
|
+
var Bt = "[Templatical]";
|
|
608
|
+
function Vt() {
|
|
595
609
|
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
596
610
|
}
|
|
597
|
-
var
|
|
611
|
+
var Ht = {
|
|
598
612
|
warn(...e) {
|
|
599
|
-
console.warn(
|
|
613
|
+
console.warn(Bt, ...e);
|
|
600
614
|
},
|
|
601
615
|
error(...e) {
|
|
602
|
-
console.error(
|
|
616
|
+
console.error(Bt, ...e);
|
|
603
617
|
},
|
|
604
618
|
debug(...e) {
|
|
605
|
-
|
|
619
|
+
Vt() || console.debug(Bt, ...e);
|
|
606
620
|
},
|
|
607
621
|
info(...e) {
|
|
608
|
-
|
|
622
|
+
Vt() || console.info(Bt, ...e);
|
|
609
623
|
}
|
|
610
624
|
};
|
|
611
625
|
//#endregion
|
|
612
626
|
//#region src/composables/useBlockRegistry.ts
|
|
613
|
-
function
|
|
627
|
+
function Ut() {
|
|
614
628
|
let e = d(/* @__PURE__ */ new Map());
|
|
615
629
|
function t(t, n) {
|
|
616
630
|
e.value.set(t, n), k(e);
|
|
@@ -618,7 +632,7 @@ function Vt() {
|
|
|
618
632
|
function n(t, n) {
|
|
619
633
|
let r = `custom:${t.type}`, i = {
|
|
620
634
|
component: n,
|
|
621
|
-
createBlock: () =>
|
|
635
|
+
createBlock: () => Se(t),
|
|
622
636
|
sidebarItem: {
|
|
623
637
|
type: r,
|
|
624
638
|
label: t.name,
|
|
@@ -662,7 +676,7 @@ function Vt() {
|
|
|
662
676
|
strictFilters: !1
|
|
663
677
|
}).parseAndRender(t.template, e.fieldValues);
|
|
664
678
|
} catch (t) {
|
|
665
|
-
return
|
|
679
|
+
return Ht.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
|
|
666
680
|
}
|
|
667
681
|
}
|
|
668
682
|
function l(t) {
|
|
@@ -681,75 +695,75 @@ function Vt() {
|
|
|
681
695
|
}
|
|
682
696
|
//#endregion
|
|
683
697
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
684
|
-
var
|
|
698
|
+
var Wt = [
|
|
685
699
|
{
|
|
686
700
|
type: "section",
|
|
687
701
|
label: "Section",
|
|
688
|
-
createBlock:
|
|
702
|
+
createBlock: ve
|
|
689
703
|
},
|
|
690
704
|
{
|
|
691
705
|
type: "title",
|
|
692
706
|
label: "Title",
|
|
693
|
-
createBlock:
|
|
707
|
+
createBlock: me
|
|
694
708
|
},
|
|
695
709
|
{
|
|
696
710
|
type: "paragraph",
|
|
697
711
|
label: "Paragraph",
|
|
698
|
-
createBlock:
|
|
712
|
+
createBlock: ye
|
|
699
713
|
},
|
|
700
714
|
{
|
|
701
715
|
type: "image",
|
|
702
716
|
label: "Image",
|
|
703
|
-
createBlock:
|
|
717
|
+
createBlock: Te
|
|
704
718
|
},
|
|
705
719
|
{
|
|
706
720
|
type: "button",
|
|
707
721
|
label: "Button",
|
|
708
|
-
createBlock:
|
|
722
|
+
createBlock: Ee
|
|
709
723
|
},
|
|
710
724
|
{
|
|
711
725
|
type: "divider",
|
|
712
726
|
label: "Divider",
|
|
713
|
-
createBlock:
|
|
727
|
+
createBlock: ge
|
|
714
728
|
},
|
|
715
729
|
{
|
|
716
730
|
type: "video",
|
|
717
731
|
label: "Video",
|
|
718
|
-
createBlock:
|
|
732
|
+
createBlock: Ae
|
|
719
733
|
},
|
|
720
734
|
{
|
|
721
735
|
type: "social",
|
|
722
736
|
label: "Social",
|
|
723
|
-
createBlock:
|
|
737
|
+
createBlock: fe
|
|
724
738
|
},
|
|
725
739
|
{
|
|
726
740
|
type: "menu",
|
|
727
741
|
label: "Menu",
|
|
728
|
-
createBlock:
|
|
742
|
+
createBlock: Ce
|
|
729
743
|
},
|
|
730
744
|
{
|
|
731
745
|
type: "table",
|
|
732
746
|
label: "Table",
|
|
733
|
-
createBlock:
|
|
747
|
+
createBlock: je
|
|
734
748
|
},
|
|
735
749
|
{
|
|
736
750
|
type: "spacer",
|
|
737
751
|
label: "Spacer",
|
|
738
|
-
createBlock:
|
|
752
|
+
createBlock: ke
|
|
739
753
|
},
|
|
740
754
|
{
|
|
741
755
|
type: "html",
|
|
742
756
|
label: "HTML",
|
|
743
|
-
createBlock:
|
|
757
|
+
createBlock: _e
|
|
744
758
|
},
|
|
745
759
|
{
|
|
746
760
|
type: "countdown",
|
|
747
761
|
label: "Countdown",
|
|
748
|
-
createBlock:
|
|
762
|
+
createBlock: he
|
|
749
763
|
}
|
|
750
764
|
];
|
|
751
|
-
function
|
|
752
|
-
for (let n of
|
|
765
|
+
function Gt(e, t) {
|
|
766
|
+
for (let n of Wt) {
|
|
753
767
|
let r = t[n.type];
|
|
754
768
|
r && e.registerBuiltIn(n.type, {
|
|
755
769
|
component: r,
|
|
@@ -764,7 +778,7 @@ function Ut(e, t) {
|
|
|
764
778
|
}
|
|
765
779
|
//#endregion
|
|
766
780
|
//#region src/utils/keyboardShortcuts.ts
|
|
767
|
-
function
|
|
781
|
+
function Kt(e) {
|
|
768
782
|
for (let t of e.composedPath()) {
|
|
769
783
|
if (!(t instanceof HTMLElement)) continue;
|
|
770
784
|
if (t.isContentEditable) return !0;
|
|
@@ -773,14 +787,14 @@ function Wt(e) {
|
|
|
773
787
|
}
|
|
774
788
|
return !1;
|
|
775
789
|
}
|
|
776
|
-
function
|
|
790
|
+
function qt(e, t) {
|
|
777
791
|
let n = e.metaKey || e.ctrlKey;
|
|
778
792
|
if (n && e.key.toLowerCase() === "s") {
|
|
779
793
|
e.preventDefault(), t.onSave?.();
|
|
780
794
|
return;
|
|
781
795
|
}
|
|
782
796
|
if (n && e.key.toLowerCase() === "z") {
|
|
783
|
-
if (
|
|
797
|
+
if (Kt(e)) return;
|
|
784
798
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
785
799
|
return;
|
|
786
800
|
}
|
|
@@ -788,11 +802,11 @@ function Gt(e, t) {
|
|
|
788
802
|
t.selectBlock(null);
|
|
789
803
|
return;
|
|
790
804
|
}
|
|
791
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
805
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Kt(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
792
806
|
}
|
|
793
807
|
//#endregion
|
|
794
808
|
//#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
|
|
795
|
-
var
|
|
809
|
+
var Jt = { class: "tpl:text-center" }, Yt = ["href"], Xt = /* @__PURE__ */ y({
|
|
796
810
|
__name: "ButtonBlock",
|
|
797
811
|
props: {
|
|
798
812
|
block: {},
|
|
@@ -813,17 +827,17 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
813
827
|
};
|
|
814
828
|
return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
|
|
815
829
|
});
|
|
816
|
-
return (n, i) => (e(), w("div",
|
|
830
|
+
return (n, i) => (e(), w("div", Jt, [C("a", {
|
|
817
831
|
href: t.block.url || "#",
|
|
818
832
|
style: A(r.value),
|
|
819
833
|
class: "tpl:cursor-default",
|
|
820
834
|
onClick: i[0] ||= b(() => {}, ["prevent"])
|
|
821
|
-
}, M(t.block.text), 13,
|
|
835
|
+
}, M(t.block.text), 13, Yt)]));
|
|
822
836
|
}
|
|
823
|
-
}),
|
|
837
|
+
}), Zt = P("bookmark", [["path", {
|
|
824
838
|
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",
|
|
825
839
|
key: "oz39mx"
|
|
826
|
-
}]]),
|
|
840
|
+
}]]), Qt = P("box", [
|
|
827
841
|
["path", {
|
|
828
842
|
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",
|
|
829
843
|
key: "hh9hay"
|
|
@@ -836,13 +850,13 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
836
850
|
d: "M12 22V12",
|
|
837
851
|
key: "d0xqtd"
|
|
838
852
|
}]
|
|
839
|
-
]),
|
|
853
|
+
]), $t = P("code", [["path", {
|
|
840
854
|
d: "m16 18 6-6-6-6",
|
|
841
855
|
key: "eg8j8"
|
|
842
856
|
}], ["path", {
|
|
843
857
|
d: "m8 6-6 6 6 6",
|
|
844
858
|
key: "ppft3o"
|
|
845
|
-
}]]),
|
|
859
|
+
}]]), en = P("copy", [["rect", {
|
|
846
860
|
width: "14",
|
|
847
861
|
height: "14",
|
|
848
862
|
x: "8",
|
|
@@ -853,7 +867,7 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
853
867
|
}], ["path", {
|
|
854
868
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
855
869
|
key: "zix9uf"
|
|
856
|
-
}]]),
|
|
870
|
+
}]]), tn = P("eye-off", [
|
|
857
871
|
["path", {
|
|
858
872
|
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",
|
|
859
873
|
key: "ct8e1f"
|
|
@@ -870,10 +884,10 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
870
884
|
d: "m2 2 20 20",
|
|
871
885
|
key: "1ooewy"
|
|
872
886
|
}]
|
|
873
|
-
]),
|
|
887
|
+
]), nn = P("funnel", [["path", {
|
|
874
888
|
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",
|
|
875
889
|
key: "sc7q7i"
|
|
876
|
-
}]]),
|
|
890
|
+
}]]), rn = P("grip-vertical", [
|
|
877
891
|
["circle", {
|
|
878
892
|
cx: "9",
|
|
879
893
|
cy: "12",
|
|
@@ -910,7 +924,7 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
910
924
|
r: "1",
|
|
911
925
|
key: "f4zoj3"
|
|
912
926
|
}]
|
|
913
|
-
]),
|
|
927
|
+
]), an = P("image", [
|
|
914
928
|
["rect", {
|
|
915
929
|
width: "18",
|
|
916
930
|
height: "18",
|
|
@@ -930,13 +944,13 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
930
944
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
931
945
|
key: "1xmnt7"
|
|
932
946
|
}]
|
|
933
|
-
]),
|
|
947
|
+
]), on = P("navigation", [["polygon", {
|
|
934
948
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
935
949
|
key: "1ltx0t"
|
|
936
|
-
}]]),
|
|
950
|
+
}]]), sn = P("puzzle", [["path", {
|
|
937
951
|
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",
|
|
938
952
|
key: "w46dr5"
|
|
939
|
-
}]]),
|
|
953
|
+
}]]), cn = P("share-2", [
|
|
940
954
|
["circle", {
|
|
941
955
|
cx: "18",
|
|
942
956
|
cy: "5",
|
|
@@ -969,7 +983,7 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
969
983
|
y2: "10.49",
|
|
970
984
|
key: "1n3mei"
|
|
971
985
|
}]
|
|
972
|
-
]),
|
|
986
|
+
]), ln = P("table", [
|
|
973
987
|
["path", {
|
|
974
988
|
d: "M12 3v18",
|
|
975
989
|
key: "108xh3"
|
|
@@ -990,7 +1004,7 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
990
1004
|
d: "M3 15h18",
|
|
991
1005
|
key: "5xshup"
|
|
992
1006
|
}]
|
|
993
|
-
]),
|
|
1007
|
+
]), un = P("video", [["path", {
|
|
994
1008
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
995
1009
|
key: "ftymec"
|
|
996
1010
|
}], ["rect", {
|
|
@@ -1000,11 +1014,11 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
1000
1014
|
height: "12",
|
|
1001
1015
|
rx: "2",
|
|
1002
1016
|
key: "158x01"
|
|
1003
|
-
}]]),
|
|
1017
|
+
}]]), dn = ["innerHTML"], fn = [
|
|
1004
1018
|
"src",
|
|
1005
1019
|
"width",
|
|
1006
1020
|
"height"
|
|
1007
|
-
],
|
|
1021
|
+
], pn = /* @__PURE__ */ y({
|
|
1008
1022
|
__name: "CustomBlockIcon",
|
|
1009
1023
|
props: {
|
|
1010
1024
|
icon: {},
|
|
@@ -1020,14 +1034,14 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
1020
1034
|
height: `${r.value}px`
|
|
1021
1035
|
}),
|
|
1022
1036
|
innerHTML: t.icon
|
|
1023
|
-
}, null, 12,
|
|
1037
|
+
}, null, 12, dn)) : a.value ? (e(), w("img", {
|
|
1024
1038
|
key: 1,
|
|
1025
1039
|
src: t.icon,
|
|
1026
1040
|
width: r.value,
|
|
1027
1041
|
height: r.value,
|
|
1028
1042
|
class: "tpl:inline-block",
|
|
1029
1043
|
alt: ""
|
|
1030
|
-
}, null, 8,
|
|
1044
|
+
}, null, 8, fn)) : (e(), ne(j(Qt), {
|
|
1031
1045
|
key: 2,
|
|
1032
1046
|
size: r.value,
|
|
1033
1047
|
"stroke-width": 1.5
|
|
@@ -1036,16 +1050,16 @@ var Kt = { class: "tpl:text-center" }, qt = ["href"], Jt = /* @__PURE__ */ y({
|
|
|
1036
1050
|
});
|
|
1037
1051
|
//#endregion
|
|
1038
1052
|
//#region src/composables/useEditorRoot.ts
|
|
1039
|
-
function
|
|
1040
|
-
return
|
|
1053
|
+
function mn() {
|
|
1054
|
+
return ae(et, document) ?? document;
|
|
1041
1055
|
}
|
|
1042
1056
|
//#endregion
|
|
1043
1057
|
//#region src/composables/useFocusTrap.ts
|
|
1044
|
-
var
|
|
1045
|
-
function
|
|
1046
|
-
let n =
|
|
1058
|
+
var hn = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1059
|
+
function gn(e, t) {
|
|
1060
|
+
let n = mn(), r = null, i = null, a = null;
|
|
1047
1061
|
function o() {
|
|
1048
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
1062
|
+
return e.value ? Array.from(e.value.querySelectorAll(hn)).filter((e) => e.offsetParent !== null) : [];
|
|
1049
1063
|
}
|
|
1050
1064
|
function c(e) {
|
|
1051
1065
|
if (e.key !== "Tab") return;
|
|
@@ -1060,7 +1074,7 @@ function mn(e, t) {
|
|
|
1060
1074
|
a = null;
|
|
1061
1075
|
let t = o();
|
|
1062
1076
|
t.length > 0 && (e.value?.querySelector("[autofocus], input:not([disabled])") ?? t[0]).focus();
|
|
1063
|
-
}), i =
|
|
1077
|
+
}), i = Le(e, "keydown", c);
|
|
1064
1078
|
}
|
|
1065
1079
|
function u(e = {}) {
|
|
1066
1080
|
let t = e.restoreFocus !== !1;
|
|
@@ -1075,8 +1089,8 @@ function mn(e, t) {
|
|
|
1075
1089
|
}
|
|
1076
1090
|
//#endregion
|
|
1077
1091
|
//#region src/composables/useEmoji.ts
|
|
1078
|
-
function
|
|
1079
|
-
let [e, t] =
|
|
1092
|
+
function _n() {
|
|
1093
|
+
let [e, t] = Ne(!1), n = d([]), r = !1;
|
|
1080
1094
|
re(() => {
|
|
1081
1095
|
r = !0;
|
|
1082
1096
|
}), s(e, async (e) => {
|
|
@@ -1101,7 +1115,7 @@ function hn() {
|
|
|
1101
1115
|
}
|
|
1102
1116
|
//#endregion
|
|
1103
1117
|
//#region src/composables/useDragDrop.ts
|
|
1104
|
-
function
|
|
1118
|
+
function vn(e) {
|
|
1105
1119
|
let { onBlockMove: t, onBlockAdd: n } = e, r = h(!1), i = h(null), a = h(null);
|
|
1106
1120
|
function o(e) {
|
|
1107
1121
|
r.value = !0, i.value = e;
|
|
@@ -1151,7 +1165,7 @@ function gn(e) {
|
|
|
1151
1165
|
}
|
|
1152
1166
|
//#endregion
|
|
1153
1167
|
//#region src/composables/useFonts.ts
|
|
1154
|
-
var
|
|
1168
|
+
var yn = [
|
|
1155
1169
|
{
|
|
1156
1170
|
value: "Arial",
|
|
1157
1171
|
label: "Arial"
|
|
@@ -1180,7 +1194,7 @@ var _n = [
|
|
|
1180
1194
|
value: "Courier New",
|
|
1181
1195
|
label: "Courier New"
|
|
1182
1196
|
}
|
|
1183
|
-
],
|
|
1197
|
+
], bn = {
|
|
1184
1198
|
arial: "Arial, sans-serif",
|
|
1185
1199
|
helvetica: "Helvetica, sans-serif",
|
|
1186
1200
|
georgia: "Georgia, serif",
|
|
@@ -1188,14 +1202,14 @@ var _n = [
|
|
|
1188
1202
|
verdana: "Verdana, sans-serif",
|
|
1189
1203
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
1190
1204
|
"courier new": "'Courier New', monospace"
|
|
1191
|
-
},
|
|
1192
|
-
function
|
|
1193
|
-
let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ??
|
|
1205
|
+
}, xn = "Arial, sans-serif";
|
|
1206
|
+
function Sn(e) {
|
|
1207
|
+
let t = h(e?.customFonts ?? []), n = h(!0), r = h(!1), i = x(() => e?.defaultFallback ?? xn);
|
|
1194
1208
|
function a(e) {
|
|
1195
1209
|
n.value = e;
|
|
1196
1210
|
}
|
|
1197
1211
|
let o = x(() => {
|
|
1198
|
-
let e = [...
|
|
1212
|
+
let e = [...yn];
|
|
1199
1213
|
if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
|
|
1200
1214
|
let r = t.value.map((e) => ({
|
|
1201
1215
|
value: e.name,
|
|
@@ -1208,17 +1222,17 @@ function bn(e) {
|
|
|
1208
1222
|
return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1209
1223
|
}
|
|
1210
1224
|
function c(e) {
|
|
1211
|
-
return
|
|
1225
|
+
return yn.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
1212
1226
|
}
|
|
1213
1227
|
function l() {
|
|
1214
1228
|
if (e?.defaultFont) {
|
|
1215
|
-
if (!n.value && !c(e.defaultFont)) return
|
|
1229
|
+
if (!n.value && !c(e.defaultFont)) return xn;
|
|
1216
1230
|
if (s(e.defaultFont)) {
|
|
1217
1231
|
let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
1218
1232
|
if (t) return t.value;
|
|
1219
1233
|
}
|
|
1220
1234
|
}
|
|
1221
|
-
return
|
|
1235
|
+
return xn;
|
|
1222
1236
|
}
|
|
1223
1237
|
let u = x(() => l());
|
|
1224
1238
|
function d(e) {
|
|
@@ -1228,7 +1242,7 @@ function bn(e) {
|
|
|
1228
1242
|
let e = n.fallback ?? i.value;
|
|
1229
1243
|
return `'${n.name}', ${e}`;
|
|
1230
1244
|
}
|
|
1231
|
-
return
|
|
1245
|
+
return bn[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
|
|
1232
1246
|
}
|
|
1233
1247
|
let f = [], m = !1;
|
|
1234
1248
|
async function g() {
|
|
@@ -1244,7 +1258,7 @@ function bn(e) {
|
|
|
1244
1258
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
1245
1259
|
});
|
|
1246
1260
|
} catch (t) {
|
|
1247
|
-
|
|
1261
|
+
Ht.warn(`Failed to load custom font "${e.name}":`, t);
|
|
1248
1262
|
}
|
|
1249
1263
|
});
|
|
1250
1264
|
await Promise.allSettled(e), !m && (r.value = !0);
|
|
@@ -1271,9 +1285,9 @@ function bn(e) {
|
|
|
1271
1285
|
}
|
|
1272
1286
|
//#endregion
|
|
1273
1287
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
1274
|
-
function
|
|
1288
|
+
function Cn(e) {
|
|
1275
1289
|
let t = h(!1), n = h(""), r = h(null);
|
|
1276
|
-
|
|
1290
|
+
gn(r, t);
|
|
1277
1291
|
function i() {
|
|
1278
1292
|
n.value = e.value?.getAttributes("link").href || "", t.value = !0;
|
|
1279
1293
|
}
|
|
@@ -1324,8 +1338,8 @@ function xn(e) {
|
|
|
1324
1338
|
}
|
|
1325
1339
|
//#endregion
|
|
1326
1340
|
//#region src/composables/useRichTextEditor.ts
|
|
1327
|
-
function
|
|
1328
|
-
let t =
|
|
1341
|
+
function wn(e) {
|
|
1342
|
+
let t = ae(rt, null), { mergeTags: r, canRequestMergeTag: i, isRequesting: o, requestMergeTag: c, syntax: l, autocomplete: u } = ht(), f = ae(Ue, null), p = (a(f) ? f.value : f)?.mergeTag?.suggestionEmpty ?? "No matching merge tags", m = de(l), g = d(null), { showLinkDialog: _, linkUrl: v, linkDialogRef: y, openLinkDialog: b, insertLink: x, removeLink: S, closeLinkDialog: C, handleLinkKeydown: w } = Cn(g), { start: T, stop: E } = Re(() => g.value?.commands.focus("end"), 0, { immediate: !1 }), ee = d(null), D = h(!0), O = h(null), k = !1;
|
|
1329
1343
|
async function te() {
|
|
1330
1344
|
O.value = null, D.value = !0;
|
|
1331
1345
|
try {
|
|
@@ -1355,7 +1369,7 @@ function Sn(e) {
|
|
|
1355
1369
|
g.value = s, D.value = !1, T();
|
|
1356
1370
|
} catch (t) {
|
|
1357
1371
|
if (k) return;
|
|
1358
|
-
|
|
1372
|
+
Ht.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), O.value = t instanceof Error ? t.message : "Failed to load editor", D.value = !1;
|
|
1359
1373
|
}
|
|
1360
1374
|
}
|
|
1361
1375
|
function A() {
|
|
@@ -1370,7 +1384,7 @@ function Sn(e) {
|
|
|
1370
1384
|
let n = t.composedPath().find((e) => e instanceof HTMLElement);
|
|
1371
1385
|
n && (e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone());
|
|
1372
1386
|
}
|
|
1373
|
-
|
|
1387
|
+
Le(document, "mousedown", re), n(() => {
|
|
1374
1388
|
k = !0, ne(), E(), g.value?.destroy();
|
|
1375
1389
|
});
|
|
1376
1390
|
async function j() {
|
|
@@ -1403,20 +1417,20 @@ function Sn(e) {
|
|
|
1403
1417
|
}
|
|
1404
1418
|
//#endregion
|
|
1405
1419
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1406
|
-
var
|
|
1420
|
+
var Tn = { class: "tpl:w-full" }, En = {
|
|
1407
1421
|
key: 0,
|
|
1408
1422
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-warning)] tpl:bg-[var(--tpl-warning-light)]"
|
|
1409
|
-
},
|
|
1423
|
+
}, Dn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, On = {
|
|
1410
1424
|
key: 1,
|
|
1411
1425
|
class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-danger)] tpl:bg-[var(--tpl-danger-light)]"
|
|
1412
|
-
},
|
|
1426
|
+
}, kn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, An = {
|
|
1413
1427
|
key: 2,
|
|
1414
1428
|
class: "tpl:relative"
|
|
1415
|
-
},
|
|
1429
|
+
}, jn = ["innerHTML"], Mn = {
|
|
1416
1430
|
key: 0,
|
|
1417
1431
|
class: "tpl:absolute tpl:inset-0 tpl:flex tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-3 tpl:rounded tpl:backdrop-blur-[2px]",
|
|
1418
1432
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1419
|
-
},
|
|
1433
|
+
}, Nn = /* @__PURE__ */ y({
|
|
1420
1434
|
__name: "CustomBlock",
|
|
1421
1435
|
props: {
|
|
1422
1436
|
block: {},
|
|
@@ -1424,7 +1438,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1424
1438
|
},
|
|
1425
1439
|
emits: ["fetchData"],
|
|
1426
1440
|
setup(t, { emit: n }) {
|
|
1427
|
-
let r = t, i = n, { t: a } =
|
|
1441
|
+
let r = t, i = n, { t: a } = lt(), o = ae(nt, 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 } = Dt({
|
|
1428
1442
|
definition: d,
|
|
1429
1443
|
block: x(() => r.block),
|
|
1430
1444
|
onUpdate: (e, t) => {
|
|
@@ -1445,15 +1459,15 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1445
1459
|
}
|
|
1446
1460
|
}
|
|
1447
1461
|
}
|
|
1448
|
-
let S =
|
|
1462
|
+
let S = Me(y, 150);
|
|
1449
1463
|
return u(() => {
|
|
1450
1464
|
y();
|
|
1451
1465
|
}), s(() => r.block.fieldValues, () => {
|
|
1452
1466
|
S();
|
|
1453
|
-
}, { deep: !0 }), (t, n) => (e(), w("div",
|
|
1467
|
+
}, { deep: !0 }), (t, n) => (e(), w("div", Tn, [f.value ? l.value ? (e(), w("div", On, [N(j(ft), {
|
|
1454
1468
|
size: 24,
|
|
1455
1469
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1456
|
-
}), C("span",
|
|
1470
|
+
}), C("span", kn, M(j(a).customBlocks.renderError), 1)])) : (e(), w("div", An, [C("div", { innerHTML: c.value }, null, 8, jn), j(v) && j(g) ? (e(), w("div", Mn, [j(p) ? (e(), ne(pt, {
|
|
1457
1471
|
key: 1,
|
|
1458
1472
|
class: "tpl:w-48"
|
|
1459
1473
|
})) : (e(), w("button", {
|
|
@@ -1461,16 +1475,16 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1461
1475
|
type: "button",
|
|
1462
1476
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-2 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:border-[var(--tpl-border)] tpl:px-4 tpl:py-2 tpl:text-sm tpl:font-semibold tpl:shadow-sm tpl:transition-all tpl:duration-150 hover:tpl:border-[var(--tpl-primary)] hover:tpl:shadow-md tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary-hover)]",
|
|
1463
1477
|
onClick: n[0] ||= b((...e) => j(m) && j(m)(...e), ["stop"])
|
|
1464
|
-
}, [d.value?.icon ? (e(), ne(
|
|
1478
|
+
}, [d.value?.icon ? (e(), ne(pn, {
|
|
1465
1479
|
key: 0,
|
|
1466
1480
|
icon: d.value.icon,
|
|
1467
1481
|
size: 16
|
|
1468
|
-
}, null, 8, ["icon"])) : O("", !0), _(" " + M(d.value?.dataSource?.label || j(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div",
|
|
1482
|
+
}, null, 8, ["icon"])) : O("", !0), _(" " + M(d.value?.dataSource?.label || j(a).customBlocks.dataSource.fetchButton), 1)]))])) : O("", !0)])) : (e(), w("div", En, [N(j(sn), {
|
|
1469
1483
|
size: 24,
|
|
1470
1484
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1471
|
-
}), C("span",
|
|
1485
|
+
}), C("span", Dn, M(j(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1472
1486
|
}
|
|
1473
|
-
}),
|
|
1487
|
+
}), Pn = { class: "tpl:w-full" }, Fn = /* @__PURE__ */ y({
|
|
1474
1488
|
__name: "DividerBlock",
|
|
1475
1489
|
props: {
|
|
1476
1490
|
block: {},
|
|
@@ -1482,37 +1496,37 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1482
1496
|
width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
|
|
1483
1497
|
margin: n.block.width === "full" ? "0" : "0 auto"
|
|
1484
1498
|
}));
|
|
1485
|
-
return (t, n) => (e(), w("div",
|
|
1499
|
+
return (t, n) => (e(), w("div", Pn, [C("hr", {
|
|
1486
1500
|
class: "tpl:m-0 tpl:border-none",
|
|
1487
1501
|
style: A(r.value)
|
|
1488
1502
|
}, null, 4)]));
|
|
1489
1503
|
}
|
|
1490
|
-
}),
|
|
1504
|
+
}), In = { class: "tpl:w-full" }, Ln = { class: "tpl:flex tpl:min-h-[80px] tpl:flex-col tpl:items-center tpl:justify-center tpl:gap-2 tpl:rounded tpl:border tpl:border-dashed tpl:py-4 tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-hover)]" }, Rn = {
|
|
1491
1505
|
key: 0,
|
|
1492
1506
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1493
|
-
},
|
|
1507
|
+
}, zn = {
|
|
1494
1508
|
key: 1,
|
|
1495
1509
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1496
|
-
},
|
|
1510
|
+
}, Bn = /* @__PURE__ */ y({
|
|
1497
1511
|
__name: "HtmlBlock",
|
|
1498
1512
|
props: {
|
|
1499
1513
|
block: {},
|
|
1500
1514
|
viewport: {}
|
|
1501
1515
|
},
|
|
1502
1516
|
setup(t) {
|
|
1503
|
-
let n = t, { t: r } =
|
|
1504
|
-
return (t, n) => (e(), w("div",
|
|
1517
|
+
let n = t, { t: r } = lt(), i = x(() => n.block.content.trim().length > 0);
|
|
1518
|
+
return (t, n) => (e(), w("div", In, [C("div", Ln, [N(j($t), {
|
|
1505
1519
|
size: 24,
|
|
1506
1520
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1507
|
-
}), i.value ? (e(), w("span",
|
|
1521
|
+
}), i.value ? (e(), w("span", Rn, M(j(r).html.preview), 1)) : (e(), w("span", zn, M(j(r).html.empty), 1))])]));
|
|
1508
1522
|
}
|
|
1509
|
-
}),
|
|
1523
|
+
}), Vn = ["href"], Hn = ["src", "alt"], Un = ["src", "alt"], Wn = {
|
|
1510
1524
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1511
1525
|
style: { opacity: "0.7" }
|
|
1512
|
-
},
|
|
1526
|
+
}, Gn = ["href"], Kn = ["src", "alt"], qn = ["src", "alt"], Jn = {
|
|
1513
1527
|
key: 3,
|
|
1514
1528
|
class: "tpl:flex tpl:min-h-[100px] 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)]"
|
|
1515
|
-
},
|
|
1529
|
+
}, Yn = ["aria-label"], Xn = { key: 1 }, Zn = /* @__PURE__ */ y({
|
|
1516
1530
|
__name: "ImageBlock",
|
|
1517
1531
|
props: {
|
|
1518
1532
|
block: {},
|
|
@@ -1520,7 +1534,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1520
1534
|
},
|
|
1521
1535
|
emits: ["update"],
|
|
1522
1536
|
setup(t, { emit: n }) {
|
|
1523
|
-
let r = t, i = n, { t: a } =
|
|
1537
|
+
let r = t, i = n, { t: a } = lt(), { syntax: o } = ht(), s = ae(st, null), c = x(() => !!s), l = gt();
|
|
1524
1538
|
async function u() {
|
|
1525
1539
|
let e = await s?.({ accept: ["images"] });
|
|
1526
1540
|
if (l.alive && e) {
|
|
@@ -1534,7 +1548,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1534
1548
|
display: "block",
|
|
1535
1549
|
margin: r.block.align === "center" ? "0 auto" : void 0,
|
|
1536
1550
|
marginLeft: r.block.align === "right" ? "auto" : void 0
|
|
1537
|
-
})), p = x(() =>
|
|
1551
|
+
})), p = x(() => pe(r.block.src, o));
|
|
1538
1552
|
return (n, r) => (e(), w("div", {
|
|
1539
1553
|
class: "tpl:w-full",
|
|
1540
1554
|
style: A(d.value)
|
|
@@ -1550,22 +1564,22 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1550
1564
|
src: t.block.placeholderUrl,
|
|
1551
1565
|
alt: t.block.alt || j(a).image.altTextPlaceholder,
|
|
1552
1566
|
style: A(f.value)
|
|
1553
|
-
}, null, 12,
|
|
1567
|
+
}, null, 12, Hn)], 8, Vn)) : (e(), w("img", {
|
|
1554
1568
|
key: 1,
|
|
1555
1569
|
class: "tpl:border-0",
|
|
1556
1570
|
src: t.block.placeholderUrl,
|
|
1557
1571
|
alt: t.block.alt,
|
|
1558
1572
|
style: A(f.value)
|
|
1559
|
-
}, null, 12,
|
|
1573
|
+
}, null, 12, Un))], 64)) : t.block.src && p.value ? (e(), w("div", {
|
|
1560
1574
|
key: 1,
|
|
1561
1575
|
class: "tpl:!flex tpl:min-h-[120px] 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)]",
|
|
1562
1576
|
style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, f.value])
|
|
1563
|
-
}, [N(j(
|
|
1577
|
+
}, [N(j(an), {
|
|
1564
1578
|
size: 32,
|
|
1565
1579
|
"stroke-width": 1.5,
|
|
1566
1580
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1567
1581
|
style: { opacity: "0.5" }
|
|
1568
|
-
}), C("span",
|
|
1582
|
+
}), C("span", Wn, M(t.block.src), 1)], 4)) : t.block.src ? (e(), w(D, { key: 2 }, [t.block.linkUrl ? (e(), w("a", {
|
|
1569
1583
|
key: 0,
|
|
1570
1584
|
href: t.block.linkUrl,
|
|
1571
1585
|
target: "_blank",
|
|
@@ -1577,33 +1591,33 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1577
1591
|
src: t.block.src,
|
|
1578
1592
|
alt: t.block.alt || j(a).image.altTextPlaceholder,
|
|
1579
1593
|
style: A(f.value)
|
|
1580
|
-
}, null, 12,
|
|
1594
|
+
}, null, 12, Kn)], 8, Gn)) : (e(), w("img", {
|
|
1581
1595
|
key: 1,
|
|
1582
1596
|
class: "tpl:border-0",
|
|
1583
1597
|
src: t.block.src,
|
|
1584
1598
|
alt: t.block.alt,
|
|
1585
1599
|
style: A(f.value)
|
|
1586
|
-
}, null, 12,
|
|
1600
|
+
}, null, 12, qn))], 64)) : (e(), w("div", Jn, [c.value ? (e(), w("button", {
|
|
1587
1601
|
key: 0,
|
|
1588
1602
|
"aria-label": j(a).image.browseMedia,
|
|
1589
1603
|
class: "tpl:flex tpl:items-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150 tpl:cursor-pointer tpl:border-[var(--tpl-border)] tpl:text-[var(--tpl-primary)] tpl:bg-[var(--tpl-bg)]",
|
|
1590
1604
|
onClick: b(u, ["stop"])
|
|
1591
|
-
}, [N(j(
|
|
1605
|
+
}, [N(j(an), {
|
|
1592
1606
|
size: 14,
|
|
1593
1607
|
"stroke-width": 1.5
|
|
1594
|
-
}), _(" " + M(j(a).image.browseMedia), 1)], 8,
|
|
1608
|
+
}), _(" " + M(j(a).image.browseMedia), 1)], 8, Yn)) : (e(), w("span", Xn, M(j(a).image.clickToAdd), 1))]))], 4));
|
|
1595
1609
|
}
|
|
1596
|
-
}),
|
|
1610
|
+
}), Qn = { class: "tpl:w-full" }, $n = ["href"], er = {
|
|
1597
1611
|
key: 1,
|
|
1598
1612
|
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)]"
|
|
1599
|
-
},
|
|
1613
|
+
}, tr = /* @__PURE__ */ y({
|
|
1600
1614
|
__name: "MenuBlock",
|
|
1601
1615
|
props: {
|
|
1602
1616
|
block: {},
|
|
1603
1617
|
viewport: {}
|
|
1604
1618
|
},
|
|
1605
1619
|
setup(t) {
|
|
1606
|
-
let n = t, { t: r } =
|
|
1620
|
+
let n = t, { t: r } = lt(), i = x(() => ({
|
|
1607
1621
|
display: "flex",
|
|
1608
1622
|
flexWrap: "wrap",
|
|
1609
1623
|
gap: `0 ${n.block.spacing}px`,
|
|
@@ -1615,7 +1629,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1615
1629
|
function o(e) {
|
|
1616
1630
|
return e || n.block.linkColor || n.block.color;
|
|
1617
1631
|
}
|
|
1618
|
-
return (n, s) => (e(), w("div",
|
|
1632
|
+
return (n, s) => (e(), w("div", Qn, [a.value ? (e(), w("div", {
|
|
1619
1633
|
key: 0,
|
|
1620
1634
|
style: A(i.value)
|
|
1621
1635
|
}, [(e(!0), w(D, null, c(t.block.items, (n, r) => (e(), w(D, { key: n.id }, [C("a", {
|
|
@@ -1627,15 +1641,15 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1627
1641
|
textDecoration: n.underline ? "underline" : "none"
|
|
1628
1642
|
}),
|
|
1629
1643
|
onClick: s[0] ||= b(() => {}, ["prevent"])
|
|
1630
|
-
}, M(n.text || "..."), 13,
|
|
1644
|
+
}, M(n.text || "..."), 13, $n), r < t.block.items.length - 1 ? (e(), w("span", {
|
|
1631
1645
|
key: 0,
|
|
1632
1646
|
style: A({
|
|
1633
1647
|
color: t.block.separatorColor,
|
|
1634
1648
|
padding: `0 ${t.block.spacing}px`
|
|
1635
1649
|
})
|
|
1636
|
-
}, M(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div",
|
|
1650
|
+
}, M(t.block.separator), 5)) : O("", !0)], 64))), 128))], 4)) : (e(), w("div", er, [N(j(on), { size: 16 }), C("span", null, M(j(r).menu.addLinks), 1)]))]));
|
|
1637
1651
|
}
|
|
1638
|
-
}),
|
|
1652
|
+
}), nr = new Set([
|
|
1639
1653
|
"http",
|
|
1640
1654
|
"https",
|
|
1641
1655
|
"mailto",
|
|
@@ -1645,7 +1659,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1645
1659
|
"sms",
|
|
1646
1660
|
"xmpp",
|
|
1647
1661
|
"cid"
|
|
1648
|
-
]),
|
|
1662
|
+
]), rr = new Set([
|
|
1649
1663
|
"SCRIPT",
|
|
1650
1664
|
"STYLE",
|
|
1651
1665
|
"IFRAME",
|
|
@@ -1655,7 +1669,7 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1655
1669
|
"META",
|
|
1656
1670
|
"BASE",
|
|
1657
1671
|
"FORM"
|
|
1658
|
-
]),
|
|
1672
|
+
]), ir = new Set([
|
|
1659
1673
|
"href",
|
|
1660
1674
|
"xlink:href",
|
|
1661
1675
|
"formaction",
|
|
@@ -1664,16 +1678,16 @@ var Cn = { class: "tpl:w-full" }, wn = {
|
|
|
1664
1678
|
"background",
|
|
1665
1679
|
"poster"
|
|
1666
1680
|
]);
|
|
1667
|
-
function
|
|
1681
|
+
function ar(e, t) {
|
|
1668
1682
|
let n = e.trim();
|
|
1669
1683
|
if (!n || n.startsWith("#")) return !0;
|
|
1670
1684
|
let r = /^([a-z][a-z0-9+.-]*):/i.exec(n);
|
|
1671
1685
|
if (!r) return !0;
|
|
1672
1686
|
let i = r[1].toLowerCase();
|
|
1673
|
-
return
|
|
1687
|
+
return nr.has(i) ? !0 : t && i === "data" ? /^data:image\/(png|jpe?g|gif|webp|svg\+xml);/i.test(n) : !1;
|
|
1674
1688
|
}
|
|
1675
|
-
function
|
|
1676
|
-
if (
|
|
1689
|
+
function or(e) {
|
|
1690
|
+
if (rr.has(e.tagName)) {
|
|
1677
1691
|
e.remove();
|
|
1678
1692
|
return;
|
|
1679
1693
|
}
|
|
@@ -1685,29 +1699,29 @@ function ir(e) {
|
|
|
1685
1699
|
e.removeAttribute(n);
|
|
1686
1700
|
continue;
|
|
1687
1701
|
}
|
|
1688
|
-
if (
|
|
1689
|
-
|
|
1702
|
+
if (ir.has(t)) {
|
|
1703
|
+
ar(e.getAttribute(n) ?? "", !1) || e.removeAttribute(n);
|
|
1690
1704
|
continue;
|
|
1691
1705
|
}
|
|
1692
1706
|
if (t === "src") {
|
|
1693
|
-
|
|
1707
|
+
ar(e.getAttribute(n) ?? "", !0) || e.removeAttribute(n);
|
|
1694
1708
|
continue;
|
|
1695
1709
|
}
|
|
1696
1710
|
t === "srcdoc" && e.removeAttribute(n);
|
|
1697
1711
|
}
|
|
1698
1712
|
let n = Array.from(e.children);
|
|
1699
|
-
for (let e of n)
|
|
1713
|
+
for (let e of n) or(e);
|
|
1700
1714
|
}
|
|
1701
|
-
function
|
|
1715
|
+
function sr(e) {
|
|
1702
1716
|
if (typeof DOMParser > "u") return e;
|
|
1703
1717
|
let t = new DOMParser().parseFromString(`<!doctype html><body>${e}</body>`, "text/html").body, n = Array.from(t.children);
|
|
1704
|
-
for (let e of n)
|
|
1718
|
+
for (let e of n) or(e);
|
|
1705
1719
|
return t.innerHTML;
|
|
1706
1720
|
}
|
|
1707
1721
|
//#endregion
|
|
1708
1722
|
//#region src/composables/useEditableTextBlock.ts
|
|
1709
|
-
function
|
|
1710
|
-
let t =
|
|
1723
|
+
function cr(e) {
|
|
1724
|
+
let t = ae(ot, []), { syntax: n } = ht(), r = x(() => sr(xe(le(e(), t), n))), i = h(!1), a = h(null), { top: o, left: s } = Ie(a), c = x(() => ({
|
|
1711
1725
|
top: o.value - 8,
|
|
1712
1726
|
left: s.value
|
|
1713
1727
|
}));
|
|
@@ -1728,14 +1742,14 @@ function or(e) {
|
|
|
1728
1742
|
}
|
|
1729
1743
|
//#endregion
|
|
1730
1744
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1731
|
-
var
|
|
1745
|
+
var lr = ["innerHTML"], ur = /* @__PURE__ */ y({
|
|
1732
1746
|
__name: "ParagraphBlock",
|
|
1733
1747
|
props: {
|
|
1734
1748
|
block: {},
|
|
1735
1749
|
viewport: {}
|
|
1736
1750
|
},
|
|
1737
1751
|
setup(t) {
|
|
1738
|
-
let n = t, r =
|
|
1752
|
+
let n = t, r = se(() => import("./ParagraphEditor-BQTPI8j8.js")), { isEditing: i, blockRef: a, toolbarPosition: o, resolvedContent: s, handleDoubleClick: c, handleEditorDone: l } = cr(() => n.block.content);
|
|
1739
1753
|
return (n, u) => (e(), w("div", {
|
|
1740
1754
|
ref_key: "blockRef",
|
|
1741
1755
|
ref: a,
|
|
@@ -1754,19 +1768,19 @@ var sr = ["innerHTML"], cr = /* @__PURE__ */ y({
|
|
|
1754
1768
|
key: 1,
|
|
1755
1769
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_li]:tpl:my-1 [&_ol]:tpl:my-2 [&_ol]:tpl:pl-6 [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0 [&_s]:tpl:line-through [&_sub]:tpl:align-sub [&_sub]:tpl:text-[0.75em] [&_sup]:tpl:align-super [&_sup]:tpl:text-[0.75em] [&_ul]:tpl:my-2 [&_ul]:tpl:pl-6",
|
|
1756
1770
|
innerHTML: j(s)
|
|
1757
|
-
}, null, 8,
|
|
1771
|
+
}, null, 8, lr))], 544));
|
|
1758
1772
|
}
|
|
1759
1773
|
});
|
|
1760
1774
|
//#endregion
|
|
1761
1775
|
//#region src/utils/blockComponentResolver.ts
|
|
1762
|
-
function
|
|
1776
|
+
function dr(e, t, n) {
|
|
1763
1777
|
if (t) {
|
|
1764
1778
|
let n = t.getComponent(e);
|
|
1765
1779
|
if (n) return n;
|
|
1766
1780
|
}
|
|
1767
1781
|
return n[e.type] ?? null;
|
|
1768
1782
|
}
|
|
1769
|
-
function
|
|
1783
|
+
function fr(e) {
|
|
1770
1784
|
let { padding: t, margin: n, backgroundColor: r } = e.styles;
|
|
1771
1785
|
return {
|
|
1772
1786
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
@@ -1776,20 +1790,20 @@ function ur(e) {
|
|
|
1776
1790
|
}
|
|
1777
1791
|
//#endregion
|
|
1778
1792
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
1779
|
-
var
|
|
1793
|
+
var pr = ["data-block-id", "data-block-type"], mr = ["aria-label"], hr = [
|
|
1780
1794
|
"aria-label",
|
|
1781
1795
|
"aria-pressed",
|
|
1782
1796
|
"title"
|
|
1783
|
-
],
|
|
1797
|
+
], gr = ["aria-label", "title"], _r = ["aria-label", "title"], vr = ["aria-label", "title"], yr = {
|
|
1784
1798
|
key: 1,
|
|
1785
1799
|
class: "tpl-block-hidden-overlay tpl:pointer-events-none tpl:absolute tpl:inset-0 tpl:z-[5] tpl:flex tpl:items-center tpl:justify-center tpl:rounded-sm"
|
|
1786
|
-
},
|
|
1800
|
+
}, br = { class: "tpl:flex tpl:items-center tpl:gap-1 tpl:rounded tpl:px-2 tpl:py-1 tpl:text-[10px] tpl:font-medium tpl:bg-[var(--tpl-bg-elevated)] tpl:text-[var(--tpl-text-muted)] tpl:shadow-[var(--tpl-shadow-sm)]" }, xr = {
|
|
1787
1801
|
key: 2,
|
|
1788
1802
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1789
|
-
},
|
|
1803
|
+
}, Sr = ["aria-label", "title"], Cr = {
|
|
1790
1804
|
key: 3,
|
|
1791
1805
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1792
|
-
},
|
|
1806
|
+
}, wr = ["aria-label"], Tr = /* @__PURE__ */ mt(/* @__PURE__ */ y({
|
|
1793
1807
|
__name: "BlockWrapper",
|
|
1794
1808
|
props: {
|
|
1795
1809
|
block: {},
|
|
@@ -1799,7 +1813,7 @@ var dr = ["data-block-id", "data-block-type"], fr = ["aria-label"], pr = [
|
|
|
1799
1813
|
},
|
|
1800
1814
|
emits: ["select"],
|
|
1801
1815
|
setup(t, { emit: n }) {
|
|
1802
|
-
let i =
|
|
1816
|
+
let i = se(() => import("./BlockIssueBadge-DJTiT1eF.js")), a = t, o = n, { t: s, format: c } = lt(), u = ae(Ge, 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);
|
|
1803
1817
|
async function m() {
|
|
1804
1818
|
await r(), d.value?.focus();
|
|
1805
1819
|
}
|
|
@@ -1826,8 +1840,8 @@ var dr = ["data-block-id", "data-block-type"], fr = ["aria-label"], pr = [
|
|
|
1826
1840
|
desktop: s.viewport.desktop,
|
|
1827
1841
|
tablet: s.viewport.tablet,
|
|
1828
1842
|
mobile: s.viewport.mobile
|
|
1829
|
-
}[a.viewport] ?? a.viewport : ""), T = x(() => !!a.block.displayCondition), E =
|
|
1830
|
-
let e =
|
|
1843
|
+
}[a.viewport] ?? a.viewport : ""), T = x(() => !!a.block.displayCondition), E = ae(Qe, null), ee = ae(at, null), D = ae(it, {}), k = x(() => !!D.savedModules), te = x(() => D.comments?.getBlockCount(a.block.id) ?? 0), ne = x(() => ({ margin: fr(a.block).margin })), re = x(() => {
|
|
1844
|
+
let e = fr(a.block);
|
|
1831
1845
|
return {
|
|
1832
1846
|
padding: e.padding,
|
|
1833
1847
|
backgroundColor: e.backgroundColor
|
|
@@ -1836,16 +1850,16 @@ var dr = ["data-block-id", "data-block-type"], fr = ["aria-label"], pr = [
|
|
|
1836
1850
|
function ie(e) {
|
|
1837
1851
|
a.previewMode || (e.stopPropagation(), o("select"));
|
|
1838
1852
|
}
|
|
1839
|
-
function
|
|
1853
|
+
function oe() {
|
|
1840
1854
|
E?.deleteBlock(a.block.id);
|
|
1841
1855
|
}
|
|
1842
|
-
function
|
|
1856
|
+
function ce() {
|
|
1843
1857
|
E?.duplicateBlock(a.block);
|
|
1844
1858
|
}
|
|
1845
|
-
function
|
|
1859
|
+
function le() {
|
|
1846
1860
|
D.savedModules?.openSaveDialog(a.block.id);
|
|
1847
1861
|
}
|
|
1848
|
-
function
|
|
1862
|
+
function ue() {
|
|
1849
1863
|
ee?.toggleBlock(a.block.id);
|
|
1850
1864
|
}
|
|
1851
1865
|
return (n, r) => (e(), w("div", {
|
|
@@ -1875,90 +1889,90 @@ var dr = ["data-block-id", "data-block-type"], fr = ["aria-label"], pr = [
|
|
|
1875
1889
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
1876
1890
|
title: j(s).blockActions.drag,
|
|
1877
1891
|
onKeydown: g
|
|
1878
|
-
}, [N(j(
|
|
1892
|
+
}, [N(j(rn), {
|
|
1879
1893
|
size: 14,
|
|
1880
1894
|
"stroke-width": 1.5
|
|
1881
|
-
})], 40,
|
|
1895
|
+
})], 40, hr),
|
|
1882
1896
|
C("button", {
|
|
1883
1897
|
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",
|
|
1884
1898
|
"aria-label": j(s).blockActions.duplicate,
|
|
1885
1899
|
title: j(s).blockActions.duplicate,
|
|
1886
|
-
onClick: b(
|
|
1887
|
-
}, [N(j(
|
|
1900
|
+
onClick: b(ce, ["stop"])
|
|
1901
|
+
}, [N(j(en), {
|
|
1888
1902
|
size: 14,
|
|
1889
1903
|
"stroke-width": 1.5
|
|
1890
|
-
})], 8,
|
|
1904
|
+
})], 8, gr),
|
|
1891
1905
|
k.value ? (e(), w("button", {
|
|
1892
1906
|
key: 0,
|
|
1893
1907
|
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",
|
|
1894
1908
|
"aria-label": j(s).blockActions.saveAsModule,
|
|
1895
1909
|
title: j(s).blockActions.saveAsModule,
|
|
1896
|
-
onClick: b(
|
|
1897
|
-
}, [N(j(
|
|
1910
|
+
onClick: b(le, ["stop"])
|
|
1911
|
+
}, [N(j(Zt), {
|
|
1898
1912
|
size: 14,
|
|
1899
1913
|
"stroke-width": 1.5
|
|
1900
|
-
})], 8,
|
|
1914
|
+
})], 8, _r)) : O("", !0),
|
|
1901
1915
|
C("button", {
|
|
1902
1916
|
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",
|
|
1903
1917
|
"aria-label": j(s).blockActions.delete,
|
|
1904
1918
|
title: j(s).blockActions.delete,
|
|
1905
|
-
onClick: b(
|
|
1906
|
-
}, [N(j(
|
|
1919
|
+
onClick: b(oe, ["stop"])
|
|
1920
|
+
}, [N(j(dt), {
|
|
1907
1921
|
size: 14,
|
|
1908
1922
|
"stroke-width": 1.5
|
|
1909
|
-
})], 8,
|
|
1910
|
-
], 8,
|
|
1911
|
-
y.value ? (e(), w("div",
|
|
1923
|
+
})], 8, vr)
|
|
1924
|
+
], 8, mr)) : O("", !0),
|
|
1925
|
+
y.value ? (e(), w("div", yr, [C("span", br, [N(j(tn), {
|
|
1912
1926
|
size: 12,
|
|
1913
1927
|
"stroke-width": 1.5
|
|
1914
1928
|
}), _(" " + M(j(c)(j(s).blockActions.hiddenOnViewport, { viewport: S.value })), 1)])])) : O("", !0),
|
|
1915
|
-
T.value && !y.value ? (e(), w("div",
|
|
1929
|
+
T.value && !y.value ? (e(), w("div", xr, [C("button", {
|
|
1916
1930
|
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)]",
|
|
1917
1931
|
"aria-label": j(s).blockActions.conditionToggle,
|
|
1918
1932
|
title: t.block.displayCondition?.label,
|
|
1919
|
-
onClick: b(
|
|
1920
|
-
}, [N(j(
|
|
1933
|
+
onClick: b(ue, ["stop"])
|
|
1934
|
+
}, [N(j(nn), {
|
|
1921
1935
|
size: 12,
|
|
1922
1936
|
"stroke-width": 2
|
|
1923
|
-
})], 8,
|
|
1924
|
-
te.value > 0 && !y.value ? (e(), w("div",
|
|
1937
|
+
})], 8, Sr)])) : O("", !0),
|
|
1938
|
+
te.value > 0 && !y.value ? (e(), w("div", Cr, [C("button", {
|
|
1925
1939
|
class: "tpl-comment-indicator tpl:flex tpl:min-h-6 tpl:min-w-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-semibold tpl:transition-colors tpl:duration-150 tpl:bg-[var(--tpl-primary-light)] tpl:text-[var(--tpl-primary)]",
|
|
1926
1940
|
"aria-label": j(c)(j(s).blockActions.comments, { count: String(te.value) }),
|
|
1927
1941
|
onClick: r[0] ||= b((e) => j(D).comments?.openForBlock(t.block.id), ["stop"])
|
|
1928
|
-
}, [N(j(
|
|
1942
|
+
}, [N(j(ut), {
|
|
1929
1943
|
size: 12,
|
|
1930
1944
|
"stroke-width": 2.5
|
|
1931
|
-
}), _(" " + M(te.value), 1)], 8,
|
|
1945
|
+
}), _(" " + M(te.value), 1)], 8, wr)])) : O("", !0),
|
|
1932
1946
|
C("div", {
|
|
1933
1947
|
class: "tpl-block-content",
|
|
1934
1948
|
style: A(re.value)
|
|
1935
1949
|
}, [l(n.$slots, "default", {}, void 0, !0)], 4)
|
|
1936
|
-
], 14,
|
|
1950
|
+
], 14, pr));
|
|
1937
1951
|
}
|
|
1938
|
-
}), [["__scopeId", "data-v-
|
|
1952
|
+
}), [["__scopeId", "data-v-e77eb94e"]]);
|
|
1939
1953
|
//#endregion
|
|
1940
1954
|
//#region src/utils/unwrapParagraph.ts
|
|
1941
|
-
function
|
|
1955
|
+
function Er(e) {
|
|
1942
1956
|
let t = e.match(/^\s*<p\b[^>]*>([\s\S]*)<\/p>\s*$/);
|
|
1943
1957
|
return !t || /<\/p>\s*<p\b/i.test(t[1]) ? e : t[1];
|
|
1944
1958
|
}
|
|
1945
1959
|
//#endregion
|
|
1946
1960
|
//#region src/components/blocks/TitleBlock.vue
|
|
1947
|
-
var
|
|
1961
|
+
var Dr = /* @__PURE__ */ y({
|
|
1948
1962
|
__name: "TitleBlock",
|
|
1949
1963
|
props: {
|
|
1950
1964
|
block: {},
|
|
1951
1965
|
viewport: {}
|
|
1952
1966
|
},
|
|
1953
1967
|
setup(t) {
|
|
1954
|
-
let n = t, r =
|
|
1968
|
+
let n = t, r = se(() => import("./TitleEditor-PQYXfY6W.js")), { isEditing: a, blockRef: o, toolbarPosition: s, resolvedContent: c, handleDoubleClick: l, handleEditorDone: u } = cr(() => n.block.content), d = x(() => {
|
|
1955
1969
|
let e = {
|
|
1956
|
-
fontSize: `${
|
|
1970
|
+
fontSize: `${De[n.block.level]}px`,
|
|
1957
1971
|
color: n.block.color,
|
|
1958
1972
|
textAlign: n.block.textAlign
|
|
1959
1973
|
};
|
|
1960
1974
|
return n.block.fontFamily && (e.fontFamily = n.block.fontFamily), e;
|
|
1961
|
-
}), f = x(() => `h${n.block.level}`), p = x(() =>
|
|
1975
|
+
}), f = x(() => `h${n.block.level}`), p = x(() => Er(c.value));
|
|
1962
1976
|
return (n, c) => (e(), w("div", {
|
|
1963
1977
|
ref_key: "blockRef",
|
|
1964
1978
|
ref: o,
|
|
@@ -1981,83 +1995,83 @@ var Tr = /* @__PURE__ */ y({
|
|
|
1981
1995
|
innerHTML: p.value
|
|
1982
1996
|
}, null, 8, ["innerHTML"]))], 36));
|
|
1983
1997
|
}
|
|
1984
|
-
}),
|
|
1998
|
+
}), Or = Object.defineProperty, kr = Object.getOwnPropertySymbols, Ar = Object.prototype.hasOwnProperty, jr = Object.prototype.propertyIsEnumerable, Mr = (e, t, n) => t in e ? Or(e, t, {
|
|
1985
1999
|
enumerable: !0,
|
|
1986
2000
|
configurable: !0,
|
|
1987
2001
|
writable: !0,
|
|
1988
2002
|
value: n
|
|
1989
|
-
}) : e[t] = n,
|
|
1990
|
-
for (var n in t ||= {})
|
|
1991
|
-
if (
|
|
2003
|
+
}) : e[t] = n, Nr = (e, t) => {
|
|
2004
|
+
for (var n in t ||= {}) Ar.call(t, n) && Mr(e, n, t[n]);
|
|
2005
|
+
if (kr) for (var n of kr(t)) jr.call(t, n) && Mr(e, n, t[n]);
|
|
1992
2006
|
return e;
|
|
1993
|
-
},
|
|
2007
|
+
}, Pr = (e, t) => {
|
|
1994
2008
|
var n = {};
|
|
1995
|
-
for (var r in e)
|
|
1996
|
-
if (e != null &&
|
|
2009
|
+
for (var r in e) Ar.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2010
|
+
if (e != null && kr) for (var r of kr(e)) t.indexOf(r) < 0 && jr.call(e, r) && (n[r] = e[r]);
|
|
1997
2011
|
return n;
|
|
1998
|
-
},
|
|
1999
|
-
function
|
|
2000
|
-
console.warn(
|
|
2012
|
+
}, Fr = "[vue-draggable-plus]: ";
|
|
2013
|
+
function Ir(e) {
|
|
2014
|
+
console.warn(Fr + e);
|
|
2001
2015
|
}
|
|
2002
|
-
function
|
|
2003
|
-
console.error(
|
|
2016
|
+
function Lr(e) {
|
|
2017
|
+
console.error(Fr + e);
|
|
2004
2018
|
}
|
|
2005
|
-
function
|
|
2019
|
+
function Rr(e, t, n) {
|
|
2006
2020
|
return n >= 0 && n < e.length && e.splice(n, 0, e.splice(t, 1)[0]), e;
|
|
2007
2021
|
}
|
|
2008
|
-
function
|
|
2022
|
+
function zr(e) {
|
|
2009
2023
|
return e.replace(/-(\w)/g, (e, t) => t ? t.toUpperCase() : "");
|
|
2010
2024
|
}
|
|
2011
|
-
function
|
|
2012
|
-
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[
|
|
2025
|
+
function Br(e) {
|
|
2026
|
+
return Object.keys(e).reduce((t, n) => (e[n] !== void 0 && (t[zr(n)] = e[n]), t), {});
|
|
2013
2027
|
}
|
|
2014
|
-
function
|
|
2028
|
+
function Vr(e, t) {
|
|
2015
2029
|
return Array.isArray(e) && e.splice(t, 1), e;
|
|
2016
2030
|
}
|
|
2017
|
-
function
|
|
2031
|
+
function Hr(e, t, n) {
|
|
2018
2032
|
return Array.isArray(e) && e.splice(t, 0, n), e;
|
|
2019
2033
|
}
|
|
2020
|
-
function
|
|
2034
|
+
function Ur(e) {
|
|
2021
2035
|
return e === void 0;
|
|
2022
2036
|
}
|
|
2023
|
-
function
|
|
2037
|
+
function Wr(e) {
|
|
2024
2038
|
return typeof e == "string";
|
|
2025
2039
|
}
|
|
2026
|
-
function
|
|
2040
|
+
function Gr(e, t, n) {
|
|
2027
2041
|
let r = e.children[n];
|
|
2028
2042
|
e.insertBefore(t, r);
|
|
2029
2043
|
}
|
|
2030
|
-
function
|
|
2044
|
+
function Kr(e) {
|
|
2031
2045
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2032
2046
|
}
|
|
2033
|
-
function
|
|
2047
|
+
function qr(e, t = document) {
|
|
2034
2048
|
let n = null;
|
|
2035
|
-
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n ||
|
|
2049
|
+
return n = typeof t?.querySelector == "function" ? (t?.querySelector)?.call(t, e) : document.querySelector(e), n || Ir(`Element not found: ${e}`), n;
|
|
2036
2050
|
}
|
|
2037
|
-
function
|
|
2051
|
+
function Jr(e, t, n = null) {
|
|
2038
2052
|
return function(...r) {
|
|
2039
2053
|
return e.apply(n, r), t.apply(n, r);
|
|
2040
2054
|
};
|
|
2041
2055
|
}
|
|
2042
|
-
function
|
|
2043
|
-
let n =
|
|
2056
|
+
function Yr(e, t) {
|
|
2057
|
+
let n = Nr({}, e);
|
|
2044
2058
|
return Object.keys(t).forEach((r) => {
|
|
2045
|
-
n[r] ? n[r] =
|
|
2059
|
+
n[r] ? n[r] = Jr(e[r], t[r]) : n[r] = t[r];
|
|
2046
2060
|
}), n;
|
|
2047
2061
|
}
|
|
2048
|
-
function
|
|
2062
|
+
function Xr(e) {
|
|
2049
2063
|
return e instanceof HTMLElement;
|
|
2050
2064
|
}
|
|
2051
|
-
function
|
|
2065
|
+
function Zr(e, t) {
|
|
2052
2066
|
Object.keys(e).forEach((n) => {
|
|
2053
2067
|
t(n, e[n]);
|
|
2054
2068
|
});
|
|
2055
2069
|
}
|
|
2056
|
-
function
|
|
2070
|
+
function Qr(e) {
|
|
2057
2071
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
2058
2072
|
}
|
|
2059
|
-
var
|
|
2060
|
-
function
|
|
2073
|
+
var $r = Object.assign;
|
|
2074
|
+
function ei(e, t) {
|
|
2061
2075
|
var n = Object.keys(e);
|
|
2062
2076
|
if (Object.getOwnPropertySymbols) {
|
|
2063
2077
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2067,26 +2081,26 @@ function Qr(e, t) {
|
|
|
2067
2081
|
}
|
|
2068
2082
|
return n;
|
|
2069
2083
|
}
|
|
2070
|
-
function
|
|
2084
|
+
function ti(e) {
|
|
2071
2085
|
for (var t = 1; t < arguments.length; t++) {
|
|
2072
2086
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
2073
|
-
t % 2 ?
|
|
2074
|
-
|
|
2075
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2087
|
+
t % 2 ? ei(Object(n), !0).forEach(function(t) {
|
|
2088
|
+
ri(e, t, n[t]);
|
|
2089
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ei(Object(n)).forEach(function(t) {
|
|
2076
2090
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
2077
2091
|
});
|
|
2078
2092
|
}
|
|
2079
2093
|
return e;
|
|
2080
2094
|
}
|
|
2081
|
-
function
|
|
2095
|
+
function ni(e) {
|
|
2082
2096
|
"@babel/helpers - typeof";
|
|
2083
|
-
return
|
|
2097
|
+
return ni = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2084
2098
|
return typeof e;
|
|
2085
2099
|
} : function(e) {
|
|
2086
2100
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2087
|
-
},
|
|
2101
|
+
}, ni(e);
|
|
2088
2102
|
}
|
|
2089
|
-
function
|
|
2103
|
+
function ri(e, t, n) {
|
|
2090
2104
|
return t in e ? Object.defineProperty(e, t, {
|
|
2091
2105
|
value: n,
|
|
2092
2106
|
enumerable: !0,
|
|
@@ -2094,45 +2108,45 @@ function ti(e, t, n) {
|
|
|
2094
2108
|
writable: !0
|
|
2095
2109
|
}) : e[t] = n, e;
|
|
2096
2110
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return
|
|
2111
|
+
function ii() {
|
|
2112
|
+
return ii = Object.assign || function(e) {
|
|
2099
2113
|
for (var t = 1; t < arguments.length; t++) {
|
|
2100
2114
|
var n = arguments[t];
|
|
2101
2115
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2102
2116
|
}
|
|
2103
2117
|
return e;
|
|
2104
|
-
},
|
|
2118
|
+
}, ii.apply(this, arguments);
|
|
2105
2119
|
}
|
|
2106
|
-
function
|
|
2120
|
+
function ai(e, t) {
|
|
2107
2121
|
if (e == null) return {};
|
|
2108
2122
|
var n = {}, r = Object.keys(e), i, a;
|
|
2109
2123
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
2110
2124
|
return n;
|
|
2111
2125
|
}
|
|
2112
|
-
function
|
|
2126
|
+
function oi(e, t) {
|
|
2113
2127
|
if (e == null) return {};
|
|
2114
|
-
var n =
|
|
2128
|
+
var n = ai(e, t), r, i;
|
|
2115
2129
|
if (Object.getOwnPropertySymbols) {
|
|
2116
2130
|
var a = Object.getOwnPropertySymbols(e);
|
|
2117
2131
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
2118
2132
|
}
|
|
2119
2133
|
return n;
|
|
2120
2134
|
}
|
|
2121
|
-
var
|
|
2122
|
-
function
|
|
2135
|
+
var si = "1.15.2";
|
|
2136
|
+
function ci(e) {
|
|
2123
2137
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
2124
2138
|
}
|
|
2125
|
-
var
|
|
2139
|
+
var li = ci(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), ui = ci(/Edge/i), di = ci(/firefox/i), fi = ci(/safari/i) && !ci(/chrome/i) && !ci(/android/i), pi = ci(/iP(ad|od|hone)/i), mi = ci(/chrome/i) && ci(/android/i), hi = {
|
|
2126
2140
|
capture: !1,
|
|
2127
2141
|
passive: !1
|
|
2128
2142
|
};
|
|
2129
|
-
function
|
|
2130
|
-
e.addEventListener(t, n, !
|
|
2143
|
+
function F(e, t, n) {
|
|
2144
|
+
e.addEventListener(t, n, !li && hi);
|
|
2131
2145
|
}
|
|
2132
|
-
function
|
|
2133
|
-
e.removeEventListener(t, n, !
|
|
2146
|
+
function I(e, t, n) {
|
|
2147
|
+
e.removeEventListener(t, n, !li && hi);
|
|
2134
2148
|
}
|
|
2135
|
-
function
|
|
2149
|
+
function gi(e, t) {
|
|
2136
2150
|
if (t) {
|
|
2137
2151
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
2138
2152
|
if (e.matches) return e.matches(t);
|
|
@@ -2144,41 +2158,41 @@ function mi(e, t) {
|
|
|
2144
2158
|
return !1;
|
|
2145
2159
|
}
|
|
2146
2160
|
}
|
|
2147
|
-
function
|
|
2161
|
+
function _i(e) {
|
|
2148
2162
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
2149
2163
|
}
|
|
2150
|
-
function
|
|
2164
|
+
function vi(e, t, n, r) {
|
|
2151
2165
|
if (e) {
|
|
2152
2166
|
n ||= document;
|
|
2153
2167
|
do {
|
|
2154
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
2168
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && gi(e, t) : gi(e, t)) || r && e === n) return e;
|
|
2155
2169
|
if (e === n) break;
|
|
2156
|
-
} while (e =
|
|
2170
|
+
} while (e = _i(e));
|
|
2157
2171
|
}
|
|
2158
2172
|
return null;
|
|
2159
2173
|
}
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2162
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
2174
|
+
var yi = /\s+/g;
|
|
2175
|
+
function L(e, t, n) {
|
|
2176
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(yi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(yi, " "));
|
|
2163
2177
|
}
|
|
2164
|
-
function
|
|
2178
|
+
function R(e, t, n) {
|
|
2165
2179
|
var r = e && e.style;
|
|
2166
2180
|
if (r) {
|
|
2167
2181
|
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];
|
|
2168
2182
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
2169
2183
|
}
|
|
2170
2184
|
}
|
|
2171
|
-
function
|
|
2185
|
+
function bi(e, t) {
|
|
2172
2186
|
var n = "";
|
|
2173
2187
|
if (typeof e == "string") n = e;
|
|
2174
2188
|
else do {
|
|
2175
|
-
var r =
|
|
2189
|
+
var r = R(e, "transform");
|
|
2176
2190
|
r && r !== "none" && (n = r + " " + n);
|
|
2177
2191
|
} while (!t && (e = e.parentNode));
|
|
2178
2192
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
2179
2193
|
return i && new i(n);
|
|
2180
2194
|
}
|
|
2181
|
-
function
|
|
2195
|
+
function xi(e, t, n) {
|
|
2182
2196
|
if (e) {
|
|
2183
2197
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
2184
2198
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -2186,21 +2200,21 @@ function yi(e, t, n) {
|
|
|
2186
2200
|
}
|
|
2187
2201
|
return [];
|
|
2188
2202
|
}
|
|
2189
|
-
function
|
|
2203
|
+
function Si() {
|
|
2190
2204
|
return document.scrollingElement || document.documentElement;
|
|
2191
2205
|
}
|
|
2192
|
-
function
|
|
2206
|
+
function z(e, t, n, r, i) {
|
|
2193
2207
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
2194
2208
|
var a, o, s, c, l, u, d;
|
|
2195
|
-
if (e !== window && e.parentNode && e !==
|
|
2196
|
-
if (i && i.getBoundingClientRect && (
|
|
2209
|
+
if (e !== window && e.parentNode && e !== Si() ? (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, !li)) do
|
|
2210
|
+
if (i && i.getBoundingClientRect && (R(i, "transform") !== "none" || n && R(i, "position") !== "static")) {
|
|
2197
2211
|
var f = i.getBoundingClientRect();
|
|
2198
|
-
o -= f.top + parseInt(
|
|
2212
|
+
o -= f.top + parseInt(R(i, "border-top-width")), s -= f.left + parseInt(R(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
2199
2213
|
break;
|
|
2200
2214
|
}
|
|
2201
2215
|
while (i = i.parentNode);
|
|
2202
2216
|
if (r && e !== window) {
|
|
2203
|
-
var p =
|
|
2217
|
+
var p = bi(i || e), m = p && p.a, h = p && p.d;
|
|
2204
2218
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
2205
2219
|
}
|
|
2206
2220
|
return {
|
|
@@ -2213,18 +2227,18 @@ function B(e, t, n, r, i) {
|
|
|
2213
2227
|
};
|
|
2214
2228
|
}
|
|
2215
2229
|
}
|
|
2216
|
-
function
|
|
2217
|
-
for (var r =
|
|
2218
|
-
var a =
|
|
2230
|
+
function Ci(e, t, n) {
|
|
2231
|
+
for (var r = Oi(e, !0), i = z(e)[t]; r;) {
|
|
2232
|
+
var a = z(r)[n], o = void 0;
|
|
2219
2233
|
if (o = i >= a, !o) return r;
|
|
2220
|
-
if (r ===
|
|
2221
|
-
r =
|
|
2234
|
+
if (r === Si()) break;
|
|
2235
|
+
r = Oi(r, !1);
|
|
2222
2236
|
}
|
|
2223
2237
|
return !1;
|
|
2224
2238
|
}
|
|
2225
|
-
function
|
|
2239
|
+
function wi(e, t, n, r) {
|
|
2226
2240
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
2227
|
-
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) &&
|
|
2241
|
+
if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && vi(o[a], n.draggable, e, !1)) {
|
|
2228
2242
|
if (i === t) return o[a];
|
|
2229
2243
|
i++;
|
|
2230
2244
|
}
|
|
@@ -2232,96 +2246,96 @@ function Si(e, t, n, r) {
|
|
|
2232
2246
|
}
|
|
2233
2247
|
return null;
|
|
2234
2248
|
}
|
|
2235
|
-
function
|
|
2236
|
-
for (var n = e.lastElementChild; n && (n === Q.ghost ||
|
|
2249
|
+
function Ti(e, t) {
|
|
2250
|
+
for (var n = e.lastElementChild; n && (n === Q.ghost || R(n, "display") === "none" || t && !gi(n, t));) n = n.previousElementSibling;
|
|
2237
2251
|
return n || null;
|
|
2238
2252
|
}
|
|
2239
|
-
function
|
|
2253
|
+
function B(e, t) {
|
|
2240
2254
|
var n = 0;
|
|
2241
2255
|
if (!e || !e.parentNode) return -1;
|
|
2242
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t ||
|
|
2256
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || gi(e, t)) && n++;
|
|
2243
2257
|
return n;
|
|
2244
2258
|
}
|
|
2245
|
-
function
|
|
2246
|
-
var t = 0, n = 0, r =
|
|
2259
|
+
function Ei(e) {
|
|
2260
|
+
var t = 0, n = 0, r = Si();
|
|
2247
2261
|
if (e) do {
|
|
2248
|
-
var i =
|
|
2262
|
+
var i = bi(e), a = i.a, o = i.d;
|
|
2249
2263
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
2250
2264
|
} while (e !== r && (e = e.parentNode));
|
|
2251
2265
|
return [t, n];
|
|
2252
2266
|
}
|
|
2253
|
-
function
|
|
2267
|
+
function Di(e, t) {
|
|
2254
2268
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
2255
2269
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
2256
2270
|
}
|
|
2257
2271
|
return -1;
|
|
2258
2272
|
}
|
|
2259
|
-
function
|
|
2260
|
-
if (!e || !e.getBoundingClientRect) return
|
|
2273
|
+
function Oi(e, t) {
|
|
2274
|
+
if (!e || !e.getBoundingClientRect) return Si();
|
|
2261
2275
|
var n = e, r = !1;
|
|
2262
2276
|
do
|
|
2263
2277
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
2264
|
-
var i =
|
|
2278
|
+
var i = R(n);
|
|
2265
2279
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
2266
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
2280
|
+
if (!n.getBoundingClientRect || n === document.body) return Si();
|
|
2267
2281
|
if (r || t) return n;
|
|
2268
2282
|
r = !0;
|
|
2269
2283
|
}
|
|
2270
2284
|
}
|
|
2271
2285
|
while (n = n.parentNode);
|
|
2272
|
-
return
|
|
2286
|
+
return Si();
|
|
2273
2287
|
}
|
|
2274
|
-
function
|
|
2288
|
+
function ki(e, t) {
|
|
2275
2289
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
2276
2290
|
return e;
|
|
2277
2291
|
}
|
|
2278
|
-
function
|
|
2292
|
+
function Ai(e, t) {
|
|
2279
2293
|
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);
|
|
2280
2294
|
}
|
|
2281
|
-
var
|
|
2282
|
-
function
|
|
2295
|
+
var ji;
|
|
2296
|
+
function Mi(e, t) {
|
|
2283
2297
|
return function() {
|
|
2284
|
-
if (!
|
|
2298
|
+
if (!ji) {
|
|
2285
2299
|
var n = arguments, r = this;
|
|
2286
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
2287
|
-
|
|
2300
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), ji = setTimeout(function() {
|
|
2301
|
+
ji = void 0;
|
|
2288
2302
|
}, t);
|
|
2289
2303
|
}
|
|
2290
2304
|
};
|
|
2291
2305
|
}
|
|
2292
|
-
function
|
|
2293
|
-
clearTimeout(
|
|
2306
|
+
function Ni() {
|
|
2307
|
+
clearTimeout(ji), ji = void 0;
|
|
2294
2308
|
}
|
|
2295
|
-
function
|
|
2309
|
+
function Pi(e, t, n) {
|
|
2296
2310
|
e.scrollLeft += t, e.scrollTop += n;
|
|
2297
2311
|
}
|
|
2298
|
-
function
|
|
2312
|
+
function Fi(e) {
|
|
2299
2313
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
2300
2314
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
2301
2315
|
}
|
|
2302
|
-
function
|
|
2316
|
+
function Ii(e, t, n) {
|
|
2303
2317
|
var r = {};
|
|
2304
2318
|
return Array.from(e.children).forEach(function(i) {
|
|
2305
|
-
if (!(!
|
|
2306
|
-
var a =
|
|
2319
|
+
if (!(!vi(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
2320
|
+
var a = z(i);
|
|
2307
2321
|
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);
|
|
2308
2322
|
}
|
|
2309
2323
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
2310
2324
|
}
|
|
2311
2325
|
var V = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
2312
|
-
function
|
|
2326
|
+
function Li() {
|
|
2313
2327
|
var e = [], t;
|
|
2314
2328
|
return {
|
|
2315
2329
|
captureAnimationState: function() {
|
|
2316
2330
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
2317
|
-
if (!(
|
|
2331
|
+
if (!(R(t, "display") === "none" || t === Q.ghost)) {
|
|
2318
2332
|
e.push({
|
|
2319
2333
|
target: t,
|
|
2320
|
-
rect:
|
|
2334
|
+
rect: z(t)
|
|
2321
2335
|
});
|
|
2322
|
-
var n =
|
|
2336
|
+
var n = ti({}, e[e.length - 1].rect);
|
|
2323
2337
|
if (t.thisAnimationDuration) {
|
|
2324
|
-
var r =
|
|
2338
|
+
var r = bi(t, !0);
|
|
2325
2339
|
r && (n.top -= r.f, n.left -= r.e);
|
|
2326
2340
|
}
|
|
2327
2341
|
t.fromRect = n;
|
|
@@ -2332,7 +2346,7 @@ function Ii() {
|
|
|
2332
2346
|
e.push(t);
|
|
2333
2347
|
},
|
|
2334
2348
|
removeAnimationState: function(t) {
|
|
2335
|
-
e.splice(
|
|
2349
|
+
e.splice(Di(e, { target: t }), 1);
|
|
2336
2350
|
},
|
|
2337
2351
|
animateAll: function(n) {
|
|
2338
2352
|
var r = this;
|
|
@@ -2342,8 +2356,8 @@ function Ii() {
|
|
|
2342
2356
|
}
|
|
2343
2357
|
var i = !1, a = 0;
|
|
2344
2358
|
e.forEach(function(e) {
|
|
2345
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
2346
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
2359
|
+
var t = 0, n = e.target, o = n.fromRect, s = z(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = bi(n, !0);
|
|
2360
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ai(c, s) && !Ai(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = zi(u, c, l, r.options)), Ai(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() {
|
|
2347
2361
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
2348
2362
|
}, t), n.thisAnimationDuration = t);
|
|
2349
2363
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -2352,27 +2366,27 @@ function Ii() {
|
|
|
2352
2366
|
},
|
|
2353
2367
|
animate: function(e, t, n, r) {
|
|
2354
2368
|
if (r) {
|
|
2355
|
-
|
|
2356
|
-
var i =
|
|
2357
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
2358
|
-
|
|
2369
|
+
R(e, "transition", ""), R(e, "transform", "");
|
|
2370
|
+
var i = bi(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
2371
|
+
e.animatingX = !!s, e.animatingY = !!c, R(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Ri(e), R(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), R(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
2372
|
+
R(e, "transition", ""), R(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
2359
2373
|
}, r);
|
|
2360
2374
|
}
|
|
2361
2375
|
}
|
|
2362
2376
|
};
|
|
2363
2377
|
}
|
|
2364
|
-
function
|
|
2378
|
+
function Ri(e) {
|
|
2365
2379
|
return e.offsetWidth;
|
|
2366
2380
|
}
|
|
2367
|
-
function
|
|
2381
|
+
function zi(e, t, n, r) {
|
|
2368
2382
|
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;
|
|
2369
2383
|
}
|
|
2370
|
-
var
|
|
2384
|
+
var Bi = [], Vi = { initializeByDefault: !0 }, Hi = {
|
|
2371
2385
|
mount: function(e) {
|
|
2372
|
-
for (var t in
|
|
2373
|
-
|
|
2386
|
+
for (var t in Vi) Vi.hasOwnProperty(t) && !(t in e) && (e[t] = Vi[t]);
|
|
2387
|
+
Bi.forEach(function(t) {
|
|
2374
2388
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2375
|
-
}),
|
|
2389
|
+
}), Bi.push(e);
|
|
2376
2390
|
},
|
|
2377
2391
|
pluginEvent: function(e, t, n) {
|
|
2378
2392
|
var r = this;
|
|
@@ -2380,16 +2394,16 @@ var zi = [], Bi = { initializeByDefault: !0 }, Vi = {
|
|
|
2380
2394
|
r.eventCanceled = !0;
|
|
2381
2395
|
};
|
|
2382
2396
|
var i = e + "Global";
|
|
2383
|
-
|
|
2384
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2397
|
+
Bi.forEach(function(r) {
|
|
2398
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ti({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ti({ sortable: t }, n)));
|
|
2385
2399
|
});
|
|
2386
2400
|
},
|
|
2387
2401
|
initializePlugins: function(e, t, n, r) {
|
|
2388
|
-
for (var i in
|
|
2402
|
+
for (var i in Bi.forEach(function(r) {
|
|
2389
2403
|
var i = r.pluginName;
|
|
2390
2404
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
2391
2405
|
var a = new r(e, t, e.options);
|
|
2392
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2406
|
+
a.sortable = e, a.options = e.options, e[i] = a, ii(n, a.defaults);
|
|
2393
2407
|
}
|
|
2394
2408
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2395
2409
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2398,56 +2412,56 @@ var zi = [], Bi = { initializeByDefault: !0 }, Vi = {
|
|
|
2398
2412
|
},
|
|
2399
2413
|
getEventProperties: function(e, t) {
|
|
2400
2414
|
var n = {};
|
|
2401
|
-
return
|
|
2402
|
-
typeof r.eventProperties == "function" &&
|
|
2415
|
+
return Bi.forEach(function(r) {
|
|
2416
|
+
typeof r.eventProperties == "function" && ii(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2403
2417
|
}), n;
|
|
2404
2418
|
},
|
|
2405
2419
|
modifyOption: function(e, t, n) {
|
|
2406
2420
|
var r;
|
|
2407
|
-
return
|
|
2421
|
+
return Bi.forEach(function(i) {
|
|
2408
2422
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2409
2423
|
}), r;
|
|
2410
2424
|
}
|
|
2411
2425
|
};
|
|
2412
|
-
function
|
|
2426
|
+
function Ui(e) {
|
|
2413
2427
|
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;
|
|
2414
2428
|
if (t ||= n && n[V], t) {
|
|
2415
2429
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
2416
|
-
window.CustomEvent && !
|
|
2430
|
+
window.CustomEvent && !li && !ui ? h = new CustomEvent(r, {
|
|
2417
2431
|
bubbles: !0,
|
|
2418
2432
|
cancelable: !0
|
|
2419
2433
|
}) : (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;
|
|
2420
|
-
var v =
|
|
2434
|
+
var v = ti(ti({}, m), Hi.getEventProperties(r, t));
|
|
2421
2435
|
for (var y in v) h[y] = v[y];
|
|
2422
2436
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
2423
2437
|
}
|
|
2424
2438
|
}
|
|
2425
|
-
var
|
|
2426
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2427
|
-
|
|
2439
|
+
var Wi = ["evt"], H = function(e, t) {
|
|
2440
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = oi(n, Wi);
|
|
2441
|
+
Hi.pluginEvent.bind(Q)(e, t, ti({
|
|
2428
2442
|
dragEl: W,
|
|
2429
2443
|
parentEl: G,
|
|
2430
2444
|
ghostEl: K,
|
|
2431
2445
|
rootEl: q,
|
|
2432
|
-
nextEl:
|
|
2433
|
-
lastDownEl:
|
|
2446
|
+
nextEl: Gi,
|
|
2447
|
+
lastDownEl: Ki,
|
|
2434
2448
|
cloneEl: J,
|
|
2435
|
-
cloneHidden:
|
|
2436
|
-
dragStarted:
|
|
2449
|
+
cloneHidden: qi,
|
|
2450
|
+
dragStarted: sa,
|
|
2437
2451
|
putSortable: X,
|
|
2438
2452
|
activeSortable: Q.active,
|
|
2439
2453
|
originalEvent: r,
|
|
2440
|
-
oldIndex:
|
|
2441
|
-
oldDraggableIndex:
|
|
2454
|
+
oldIndex: Ji,
|
|
2455
|
+
oldDraggableIndex: Yi,
|
|
2442
2456
|
newIndex: Y,
|
|
2443
|
-
newDraggableIndex:
|
|
2444
|
-
hideGhostForTarget:
|
|
2445
|
-
unhideGhostForTarget:
|
|
2457
|
+
newDraggableIndex: Xi,
|
|
2458
|
+
hideGhostForTarget: Ta,
|
|
2459
|
+
unhideGhostForTarget: Ea,
|
|
2446
2460
|
cloneNowHidden: function() {
|
|
2447
|
-
|
|
2461
|
+
qi = !0;
|
|
2448
2462
|
},
|
|
2449
2463
|
cloneNowShown: function() {
|
|
2450
|
-
|
|
2464
|
+
qi = !1;
|
|
2451
2465
|
},
|
|
2452
2466
|
dispatchSortableEvent: function(e) {
|
|
2453
2467
|
U({
|
|
@@ -2459,45 +2473,45 @@ var Ui = ["evt"], H = function(e, t) {
|
|
|
2459
2473
|
}, i));
|
|
2460
2474
|
};
|
|
2461
2475
|
function U(e) {
|
|
2462
|
-
|
|
2476
|
+
Ui(ti({
|
|
2463
2477
|
putSortable: X,
|
|
2464
2478
|
cloneEl: J,
|
|
2465
2479
|
targetEl: W,
|
|
2466
2480
|
rootEl: q,
|
|
2467
|
-
oldIndex:
|
|
2468
|
-
oldDraggableIndex:
|
|
2481
|
+
oldIndex: Ji,
|
|
2482
|
+
oldDraggableIndex: Yi,
|
|
2469
2483
|
newIndex: Y,
|
|
2470
|
-
newDraggableIndex:
|
|
2484
|
+
newDraggableIndex: Xi
|
|
2471
2485
|
}, e));
|
|
2472
2486
|
}
|
|
2473
|
-
var W, G, K, q,
|
|
2474
|
-
if (
|
|
2475
|
-
if (
|
|
2487
|
+
var W, G, K, q, Gi, Ki, J, qi, Ji, Y, Yi, Xi, Zi, X, Qi = !1, $i = !1, ea = [], ta, na, ra, ia, aa, oa, sa, ca, la, ua = !1, da = !1, fa, Z, pa = [], ma = !1, ha = [], ga = typeof document < "u", _a = pi, va = ui || li ? "cssFloat" : "float", ya = ga && !mi && !pi && "draggable" in document.createElement("div"), ba = function() {
|
|
2488
|
+
if (ga) {
|
|
2489
|
+
if (li) return !1;
|
|
2476
2490
|
var e = document.createElement("x");
|
|
2477
2491
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2478
2492
|
}
|
|
2479
|
-
}(),
|
|
2480
|
-
var n =
|
|
2493
|
+
}(), xa = function(e, t) {
|
|
2494
|
+
var n = R(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = wi(e, 0, t), a = wi(e, 1, t), o = i && R(i), s = a && R(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + z(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(a).width;
|
|
2481
2495
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2482
2496
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2483
2497
|
if (i && o.float && o.float !== "none") {
|
|
2484
2498
|
var u = o.float === "left" ? "left" : "right";
|
|
2485
2499
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2486
2500
|
}
|
|
2487
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2488
|
-
},
|
|
2501
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[va] === "none" || a && n[va] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2502
|
+
}, Sa = function(e, t, n) {
|
|
2489
2503
|
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;
|
|
2490
2504
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2491
|
-
},
|
|
2505
|
+
}, Ca = function(e, t) {
|
|
2492
2506
|
var n;
|
|
2493
|
-
return
|
|
2507
|
+
return ea.some(function(r) {
|
|
2494
2508
|
var i = r[V].options.emptyInsertThreshold;
|
|
2495
|
-
if (!(!i ||
|
|
2496
|
-
var a =
|
|
2509
|
+
if (!(!i || Ti(r))) {
|
|
2510
|
+
var a = z(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2497
2511
|
if (o && s) return n = r;
|
|
2498
2512
|
}
|
|
2499
2513
|
}), n;
|
|
2500
|
-
},
|
|
2514
|
+
}, wa = function(e) {
|
|
2501
2515
|
function t(e, n) {
|
|
2502
2516
|
return function(r, i, a, o) {
|
|
2503
2517
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2510,31 +2524,31 @@ var W, G, K, q, Wi, Gi, J, Ki, qi, Y, Ji, Yi, Xi, X, Zi = !1, Qi = !1, $i = [],
|
|
|
2510
2524
|
};
|
|
2511
2525
|
}
|
|
2512
2526
|
var n = {}, r = e.group;
|
|
2513
|
-
(!r ||
|
|
2514
|
-
}, wa = function() {
|
|
2515
|
-
!ya && K && z(K, "display", "none");
|
|
2527
|
+
(!r || ni(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;
|
|
2516
2528
|
}, Ta = function() {
|
|
2517
|
-
!
|
|
2529
|
+
!ba && K && R(K, "display", "none");
|
|
2530
|
+
}, Ea = function() {
|
|
2531
|
+
!ba && K && R(K, "display", "");
|
|
2518
2532
|
};
|
|
2519
|
-
|
|
2520
|
-
if (
|
|
2533
|
+
ga && !mi && document.addEventListener("click", function(e) {
|
|
2534
|
+
if ($i) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), $i = !1, !1;
|
|
2521
2535
|
}, !0);
|
|
2522
|
-
var
|
|
2536
|
+
var Da = function(e) {
|
|
2523
2537
|
if (W) {
|
|
2524
2538
|
e = e.touches ? e.touches[0] : e;
|
|
2525
|
-
var t =
|
|
2539
|
+
var t = Ca(e.clientX, e.clientY);
|
|
2526
2540
|
if (t) {
|
|
2527
2541
|
var n = {};
|
|
2528
2542
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2529
2543
|
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[V]._onDragOver(n);
|
|
2530
2544
|
}
|
|
2531
2545
|
}
|
|
2532
|
-
},
|
|
2546
|
+
}, Oa = function(e) {
|
|
2533
2547
|
W && W.parentNode[V]._isOutsideThisEl(e.target);
|
|
2534
2548
|
};
|
|
2535
2549
|
function Q(e, t) {
|
|
2536
2550
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
2537
|
-
this.el = e, this.options = t =
|
|
2551
|
+
this.el = e, this.options = t = ii({}, t), e[V] = this;
|
|
2538
2552
|
var n = {
|
|
2539
2553
|
group: null,
|
|
2540
2554
|
sort: !0,
|
|
@@ -2547,7 +2561,7 @@ function Q(e, t) {
|
|
|
2547
2561
|
invertedSwapThreshold: null,
|
|
2548
2562
|
removeCloneOnHide: !0,
|
|
2549
2563
|
direction: function() {
|
|
2550
|
-
return
|
|
2564
|
+
return xa(e, this.options);
|
|
2551
2565
|
},
|
|
2552
2566
|
ghostClass: "sortable-ghost",
|
|
2553
2567
|
chosenClass: "sortable-chosen",
|
|
@@ -2574,17 +2588,17 @@ function Q(e, t) {
|
|
|
2574
2588
|
x: 0,
|
|
2575
2589
|
y: 0
|
|
2576
2590
|
},
|
|
2577
|
-
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !
|
|
2591
|
+
supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && !fi,
|
|
2578
2592
|
emptyInsertThreshold: 5
|
|
2579
2593
|
};
|
|
2580
|
-
for (var r in
|
|
2581
|
-
for (var i in
|
|
2582
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
2594
|
+
for (var r in Hi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
2595
|
+
for (var i in wa(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
2596
|
+
this.nativeDraggable = t.forceFallback ? !1 : ya, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? F(e, "pointerdown", this._onTapStart) : (F(e, "mousedown", this._onTapStart), F(e, "touchstart", this._onTapStart)), this.nativeDraggable && (F(e, "dragover", this), F(e, "dragenter", this)), ea.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), ii(this, Li());
|
|
2583
2597
|
}
|
|
2584
2598
|
Q.prototype = {
|
|
2585
2599
|
constructor: Q,
|
|
2586
2600
|
_isOutsideThisEl: function(e) {
|
|
2587
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2601
|
+
!this.el.contains(e) && e !== this.el && (ca = null);
|
|
2588
2602
|
},
|
|
2589
2603
|
_getDirection: function(e, t) {
|
|
2590
2604
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, W) : this.options.direction;
|
|
@@ -2592,8 +2606,8 @@ Q.prototype = {
|
|
|
2592
2606
|
_onTapStart: function(e) {
|
|
2593
2607
|
if (e.cancelable) {
|
|
2594
2608
|
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;
|
|
2595
|
-
if (
|
|
2596
|
-
if (
|
|
2609
|
+
if (Ra(n), !W && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && fi && s && s.tagName.toUpperCase() === "SELECT") && (s = vi(s, r.draggable, n, !1), !(s && s.animated) && Ki !== s)) {
|
|
2610
|
+
if (Ji = B(s), Yi = B(s, r.draggable), typeof l == "function") {
|
|
2597
2611
|
if (l.call(this, e, s, this)) {
|
|
2598
2612
|
U({
|
|
2599
2613
|
sortable: t,
|
|
@@ -2606,7 +2620,7 @@ Q.prototype = {
|
|
|
2606
2620
|
return;
|
|
2607
2621
|
}
|
|
2608
2622
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2609
|
-
if (r =
|
|
2623
|
+
if (r = vi(c, r.trim(), n, !1), r) return U({
|
|
2610
2624
|
sortable: t,
|
|
2611
2625
|
rootEl: r,
|
|
2612
2626
|
name: "filter",
|
|
@@ -2618,36 +2632,36 @@ Q.prototype = {
|
|
|
2618
2632
|
i && e.cancelable && e.preventDefault();
|
|
2619
2633
|
return;
|
|
2620
2634
|
}
|
|
2621
|
-
r.handle && !
|
|
2635
|
+
r.handle && !vi(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2622
2636
|
}
|
|
2623
2637
|
}
|
|
2624
2638
|
},
|
|
2625
2639
|
_prepareDragStart: function(e, t, n) {
|
|
2626
2640
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2627
2641
|
if (n && !W && n.parentNode === i) {
|
|
2628
|
-
var c =
|
|
2629
|
-
if (q = i, W = n, G = W.parentNode,
|
|
2642
|
+
var c = z(n);
|
|
2643
|
+
if (q = i, W = n, G = W.parentNode, Gi = W.nextSibling, Ki = n, Zi = a.group, Q.dragged = W, ta = {
|
|
2630
2644
|
target: W,
|
|
2631
2645
|
clientX: (t || e).clientX,
|
|
2632
2646
|
clientY: (t || e).clientY
|
|
2633
|
-
},
|
|
2647
|
+
}, aa = ta.clientX - c.left, oa = ta.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, W.style["will-change"] = "all", s = function() {
|
|
2634
2648
|
if (H("delayEnded", r, { evt: e }), Q.eventCanceled) {
|
|
2635
2649
|
r._onDrop();
|
|
2636
2650
|
return;
|
|
2637
2651
|
}
|
|
2638
|
-
r._disableDelayedDragEvents(), !
|
|
2652
|
+
r._disableDelayedDragEvents(), !di && r.nativeDraggable && (W.draggable = !0), r._triggerDragStart(e, t), U({
|
|
2639
2653
|
sortable: r,
|
|
2640
2654
|
name: "choose",
|
|
2641
2655
|
originalEvent: e
|
|
2642
|
-
}),
|
|
2656
|
+
}), L(W, a.chosenClass, !0);
|
|
2643
2657
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2644
|
-
|
|
2645
|
-
}),
|
|
2658
|
+
xi(W, e.trim(), ja);
|
|
2659
|
+
}), F(o, "dragover", Da), F(o, "mousemove", Da), F(o, "touchmove", Da), F(o, "mouseup", r._onDrop), F(o, "touchend", r._onDrop), F(o, "touchcancel", r._onDrop), di && this.nativeDraggable && (this.options.touchStartThreshold = 4, W.draggable = !0), H("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(ui || li))) {
|
|
2646
2660
|
if (Q.eventCanceled) {
|
|
2647
2661
|
this._onDrop();
|
|
2648
2662
|
return;
|
|
2649
2663
|
}
|
|
2650
|
-
|
|
2664
|
+
F(o, "mouseup", r._disableDelayedDrag), F(o, "touchend", r._disableDelayedDrag), F(o, "touchcancel", r._disableDelayedDrag), F(o, "mousemove", r._delayedDragTouchMoveHandler), F(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && F(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
2651
2665
|
} else s();
|
|
2652
2666
|
}
|
|
2653
2667
|
},
|
|
@@ -2656,25 +2670,25 @@ Q.prototype = {
|
|
|
2656
2670
|
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();
|
|
2657
2671
|
},
|
|
2658
2672
|
_disableDelayedDrag: function() {
|
|
2659
|
-
W &&
|
|
2673
|
+
W && ja(W), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2660
2674
|
},
|
|
2661
2675
|
_disableDelayedDragEvents: function() {
|
|
2662
2676
|
var e = this.el.ownerDocument;
|
|
2663
|
-
|
|
2677
|
+
I(e, "mouseup", this._disableDelayedDrag), I(e, "touchend", this._disableDelayedDrag), I(e, "touchcancel", this._disableDelayedDrag), I(e, "mousemove", this._delayedDragTouchMoveHandler), I(e, "touchmove", this._delayedDragTouchMoveHandler), I(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2664
2678
|
},
|
|
2665
2679
|
_triggerDragStart: function(e, t) {
|
|
2666
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
2680
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : t ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(W, "dragend", this), F(q, "dragstart", this._onDragStart));
|
|
2667
2681
|
try {
|
|
2668
|
-
document.selection ?
|
|
2682
|
+
document.selection ? za(function() {
|
|
2669
2683
|
document.selection.empty();
|
|
2670
2684
|
}) : window.getSelection().removeAllRanges();
|
|
2671
2685
|
} catch {}
|
|
2672
2686
|
},
|
|
2673
2687
|
_dragStarted: function(e, t) {
|
|
2674
|
-
if (
|
|
2675
|
-
H("dragStarted", this, { evt: t }), this.nativeDraggable &&
|
|
2688
|
+
if (Qi = !1, q && W) {
|
|
2689
|
+
H("dragStarted", this, { evt: t }), this.nativeDraggable && F(document, "dragover", Oa);
|
|
2676
2690
|
var n = this.options;
|
|
2677
|
-
!e &&
|
|
2691
|
+
!e && L(W, n.dragClass, !1), L(W, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), U({
|
|
2678
2692
|
sortable: this,
|
|
2679
2693
|
name: "start",
|
|
2680
2694
|
originalEvent: t
|
|
@@ -2682,33 +2696,33 @@ Q.prototype = {
|
|
|
2682
2696
|
} else this._nulling();
|
|
2683
2697
|
},
|
|
2684
2698
|
_emulateDragOver: function() {
|
|
2685
|
-
if (
|
|
2686
|
-
this._lastX =
|
|
2687
|
-
for (var e = document.elementFromPoint(
|
|
2699
|
+
if (na) {
|
|
2700
|
+
this._lastX = na.clientX, this._lastY = na.clientY, Ta();
|
|
2701
|
+
for (var e = document.elementFromPoint(na.clientX, na.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(na.clientX, na.clientY), e !== t);) t = e;
|
|
2688
2702
|
if (W.parentNode[V]._isOutsideThisEl(e), t) do {
|
|
2689
2703
|
if (t[V]) {
|
|
2690
2704
|
var n = void 0;
|
|
2691
2705
|
if (n = t[V]._onDragOver({
|
|
2692
|
-
clientX:
|
|
2693
|
-
clientY:
|
|
2706
|
+
clientX: na.clientX,
|
|
2707
|
+
clientY: na.clientY,
|
|
2694
2708
|
target: e,
|
|
2695
2709
|
rootEl: t
|
|
2696
2710
|
}), n && !this.options.dragoverBubble) break;
|
|
2697
2711
|
}
|
|
2698
2712
|
e = t;
|
|
2699
2713
|
} while (t = t.parentNode);
|
|
2700
|
-
|
|
2714
|
+
Ea();
|
|
2701
2715
|
}
|
|
2702
2716
|
},
|
|
2703
2717
|
_onTouchMove: function(e) {
|
|
2704
|
-
if (
|
|
2705
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K &&
|
|
2706
|
-
if (!Q.active && !
|
|
2718
|
+
if (ta) {
|
|
2719
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = K && bi(K, !0), o = K && a && a.a, s = K && a && a.d, c = _a && Z && Ei(Z), l = (i.clientX - ta.clientX + r.x) / (o || 1) + (c ? c[0] - pa[0] : 0) / (o || 1), u = (i.clientY - ta.clientY + r.y) / (s || 1) + (c ? c[1] - pa[1] : 0) / (s || 1);
|
|
2720
|
+
if (!Q.active && !Qi) {
|
|
2707
2721
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2708
2722
|
this._onDragStart(e, !0);
|
|
2709
2723
|
}
|
|
2710
2724
|
if (K) {
|
|
2711
|
-
a ? (a.e += l - (
|
|
2725
|
+
a ? (a.e += l - (ra || 0), a.f += u - (ia || 0)) : a = {
|
|
2712
2726
|
a: 1,
|
|
2713
2727
|
b: 0,
|
|
2714
2728
|
c: 0,
|
|
@@ -2717,19 +2731,19 @@ Q.prototype = {
|
|
|
2717
2731
|
f: u
|
|
2718
2732
|
};
|
|
2719
2733
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2720
|
-
|
|
2734
|
+
R(K, "webkitTransform", d), R(K, "mozTransform", d), R(K, "msTransform", d), R(K, "transform", d), ra = l, ia = u, na = i;
|
|
2721
2735
|
}
|
|
2722
2736
|
e.cancelable && e.preventDefault();
|
|
2723
2737
|
}
|
|
2724
2738
|
},
|
|
2725
2739
|
_appendGhost: function() {
|
|
2726
2740
|
if (!K) {
|
|
2727
|
-
var e = this.options.fallbackOnBody ? document.body : q, t =
|
|
2728
|
-
if (
|
|
2729
|
-
for (Z = e;
|
|
2730
|
-
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z =
|
|
2741
|
+
var e = this.options.fallbackOnBody ? document.body : q, t = z(W, !0, _a, !0, e), n = this.options;
|
|
2742
|
+
if (_a) {
|
|
2743
|
+
for (Z = e; R(Z, "position") === "static" && R(Z, "transform") === "none" && Z !== document;) Z = Z.parentNode;
|
|
2744
|
+
Z !== document.body && Z !== document.documentElement ? (Z === document && (Z = Si()), t.top += Z.scrollTop, t.left += Z.scrollLeft) : Z = Si(), pa = Ei(Z);
|
|
2731
2745
|
}
|
|
2732
|
-
K = W.cloneNode(!0),
|
|
2746
|
+
K = W.cloneNode(!0), L(K, n.ghostClass, !1), L(K, n.fallbackClass, !0), L(K, n.dragClass, !0), R(K, "transition", ""), R(K, "transform", ""), R(K, "box-sizing", "border-box"), R(K, "margin", 0), R(K, "top", t.top), R(K, "left", t.left), R(K, "width", t.width), R(K, "height", t.height), R(K, "opacity", "0.8"), R(K, "position", _a ? "absolute" : "fixed"), R(K, "zIndex", "100000"), R(K, "pointerEvents", "none"), Q.ghost = K, e.appendChild(K), R(K, "transform-origin", aa / parseInt(K.style.width) * 100 + "% " + oa / parseInt(K.style.height) * 100 + "%");
|
|
2733
2747
|
}
|
|
2734
2748
|
},
|
|
2735
2749
|
_onDragStart: function(e, t) {
|
|
@@ -2738,18 +2752,18 @@ Q.prototype = {
|
|
|
2738
2752
|
this._onDrop();
|
|
2739
2753
|
return;
|
|
2740
2754
|
}
|
|
2741
|
-
H("setupClone", this), Q.eventCanceled || (J =
|
|
2755
|
+
H("setupClone", this), Q.eventCanceled || (J = Fi(W), J.removeAttribute("id"), J.draggable = !1, J.style["will-change"] = "", this._hideClone(), L(J, this.options.chosenClass, !1), Q.clone = J), n.cloneId = za(function() {
|
|
2742
2756
|
H("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || q.insertBefore(J, W), n._hideClone(), U({
|
|
2743
2757
|
sortable: n,
|
|
2744
2758
|
name: "clone"
|
|
2745
2759
|
}));
|
|
2746
|
-
}), !t &&
|
|
2760
|
+
}), !t && L(W, i.dragClass, !0), t ? ($i = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (I(document, "mouseup", n._onDrop), I(document, "touchend", n._onDrop), I(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, W)), F(document, "drop", n), R(W, "transform", "translateZ(0)")), Qi = !0, n._dragStartId = za(n._dragStarted.bind(n, t, e)), F(document, "selectstart", n), sa = !0, fi && R(document.body, "user-select", "none");
|
|
2747
2761
|
},
|
|
2748
2762
|
_onDragOver: function(e) {
|
|
2749
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l =
|
|
2750
|
-
if (
|
|
2763
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = Q.active, l = Zi === s, u = o.sort, d = X || c, f, p = this, m = !1;
|
|
2764
|
+
if (ma) return;
|
|
2751
2765
|
function h(o, s) {
|
|
2752
|
-
H(o, p,
|
|
2766
|
+
H(o, p, ti({
|
|
2753
2767
|
evt: e,
|
|
2754
2768
|
isOwner: l,
|
|
2755
2769
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2761,7 +2775,7 @@ Q.prototype = {
|
|
|
2761
2775
|
target: n,
|
|
2762
2776
|
completed: _,
|
|
2763
2777
|
onMove: function(n, i) {
|
|
2764
|
-
return
|
|
2778
|
+
return Aa(q, t, W, r, n, z(n), e, i);
|
|
2765
2779
|
},
|
|
2766
2780
|
changed: v
|
|
2767
2781
|
}, s));
|
|
@@ -2770,50 +2784,50 @@ Q.prototype = {
|
|
|
2770
2784
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2771
2785
|
}
|
|
2772
2786
|
function _(r) {
|
|
2773
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2787
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (L(W, X ? X.options.ghostClass : c.options.ghostClass, !1), L(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() {
|
|
2774
2788
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2775
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (
|
|
2789
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === W && !W.animated || n === t && !n.animated) && (ca = null), !o.dragoverBubble && !e.rootEl && n !== document && (W.parentNode[V]._isOutsideThisEl(e.target), !r && Da(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2776
2790
|
}
|
|
2777
2791
|
function v() {
|
|
2778
|
-
Y =
|
|
2792
|
+
Y = B(W), Xi = B(W, o.draggable), U({
|
|
2779
2793
|
sortable: p,
|
|
2780
2794
|
name: "change",
|
|
2781
2795
|
toEl: t,
|
|
2782
2796
|
newIndex: Y,
|
|
2783
|
-
newDraggableIndex:
|
|
2797
|
+
newDraggableIndex: Xi,
|
|
2784
2798
|
originalEvent: e
|
|
2785
2799
|
});
|
|
2786
2800
|
}
|
|
2787
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2801
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = vi(n, o.draggable, t, !0), h("dragOver"), Q.eventCanceled) return m;
|
|
2788
2802
|
if (W.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2789
|
-
if (
|
|
2790
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
2791
|
-
if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (
|
|
2792
|
-
var y =
|
|
2793
|
-
if (!y ||
|
|
2803
|
+
if ($i = !1, c && !o.disabled && (l ? u || (a = G !== q) : X === this || (this.lastPutMode = Zi.checkPull(this, c, W, e)) && s.checkPut(this, c, W, e))) {
|
|
2804
|
+
if (f = this._getDirection(e, n) === "vertical", r = z(W), h("dragOverValid"), Q.eventCanceled) return m;
|
|
2805
|
+
if (a) return G = q, g(), this._hideClone(), h("revert"), Q.eventCanceled || (Gi ? q.insertBefore(W, Gi) : q.appendChild(W)), _(!0);
|
|
2806
|
+
var y = Ti(t, o.draggable);
|
|
2807
|
+
if (!y || Pa(e, f, this) && !y.animated) {
|
|
2794
2808
|
if (y === W) return _(!1);
|
|
2795
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
2796
|
-
} else if (y &&
|
|
2797
|
-
var b =
|
|
2809
|
+
if (y && t === e.target && (n = y), n && (i = z(n)), Aa(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);
|
|
2810
|
+
} else if (y && Na(e, f, this)) {
|
|
2811
|
+
var b = wi(t, 0, o, !0);
|
|
2798
2812
|
if (b === W) return _(!1);
|
|
2799
|
-
if (n = b, i =
|
|
2813
|
+
if (n = b, i = z(n), Aa(q, t, W, r, n, i, e, !1) !== !1) return g(), t.insertBefore(W, b), G = t, v(), _(!0);
|
|
2800
2814
|
} else if (n.parentNode === t) {
|
|
2801
|
-
i =
|
|
2802
|
-
var x = 0, S, C = W.parentNode !== t, w = !
|
|
2803
|
-
|
|
2815
|
+
i = z(n);
|
|
2816
|
+
var x = 0, S, C = W.parentNode !== t, w = !Sa(W.animated && W.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Ci(n, "top", "top") || Ci(W, "top", "top"), ee = E ? E.scrollTop : void 0;
|
|
2817
|
+
ca !== n && (S = i[T], ua = !1, da = !w && o.invertSwap || C), x = Fa(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, da, ca === n);
|
|
2804
2818
|
var D;
|
|
2805
2819
|
if (x !== 0) {
|
|
2806
|
-
var O =
|
|
2820
|
+
var O = B(W);
|
|
2807
2821
|
do
|
|
2808
2822
|
O -= x, D = G.children[O];
|
|
2809
|
-
while (D && (
|
|
2823
|
+
while (D && (R(D, "display") === "none" || D === K));
|
|
2810
2824
|
}
|
|
2811
2825
|
if (x === 0 || D === n) return _(!1);
|
|
2812
|
-
|
|
2826
|
+
ca = n, la = x;
|
|
2813
2827
|
var k = n.nextElementSibling, te = !1;
|
|
2814
2828
|
te = x === 1;
|
|
2815
|
-
var A =
|
|
2816
|
-
if (A !== !1) return (A === 1 || A === -1) && (te = A === 1),
|
|
2829
|
+
var A = Aa(q, t, W, r, n, i, e, te);
|
|
2830
|
+
if (A !== !1) return (A === 1 || A === -1) && (te = A === 1), ma = !0, setTimeout(Ma, 30), g(), te && !k ? t.appendChild(W) : n.parentNode.insertBefore(W, te ? k : n), E && Pi(E, 0, ee - E.scrollTop), G = W.parentNode, S !== void 0 && !da && (fa = Math.abs(S - z(n)[T])), v(), _(!0);
|
|
2817
2831
|
}
|
|
2818
2832
|
if (t.contains(W)) return _(!1);
|
|
2819
2833
|
}
|
|
@@ -2821,26 +2835,26 @@ Q.prototype = {
|
|
|
2821
2835
|
},
|
|
2822
2836
|
_ignoreWhileAnimating: null,
|
|
2823
2837
|
_offMoveEvents: function() {
|
|
2824
|
-
|
|
2838
|
+
I(document, "mousemove", this._onTouchMove), I(document, "touchmove", this._onTouchMove), I(document, "pointermove", this._onTouchMove), I(document, "dragover", Da), I(document, "mousemove", Da), I(document, "touchmove", Da);
|
|
2825
2839
|
},
|
|
2826
2840
|
_offUpEvents: function() {
|
|
2827
2841
|
var e = this.el.ownerDocument;
|
|
2828
|
-
|
|
2842
|
+
I(e, "mouseup", this._onDrop), I(e, "touchend", this._onDrop), I(e, "pointerup", this._onDrop), I(e, "touchcancel", this._onDrop), I(document, "selectstart", this);
|
|
2829
2843
|
},
|
|
2830
2844
|
_onDrop: function(e) {
|
|
2831
2845
|
var t = this.el, n = this.options;
|
|
2832
|
-
if (Y =
|
|
2846
|
+
if (Y = B(W), Xi = B(W, n.draggable), H("drop", this, { evt: e }), G = W && W.parentNode, Y = B(W), Xi = B(W, n.draggable), Q.eventCanceled) {
|
|
2833
2847
|
this._nulling();
|
|
2834
2848
|
return;
|
|
2835
2849
|
}
|
|
2836
|
-
|
|
2850
|
+
Qi = !1, da = !1, ua = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ba(this.cloneId), Ba(this._dragStartId), this.nativeDraggable && (I(document, "drop", this), I(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), fi && R(document.body, "user-select", ""), R(W, "transform", ""), e && (sa && (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 && I(W, "dragend", this), ja(W), W.style["will-change"] = "", sa && !Qi && L(W, X ? X.options.ghostClass : this.options.ghostClass, !1), L(W, this.options.chosenClass, !1), U({
|
|
2837
2851
|
sortable: this,
|
|
2838
2852
|
name: "unchoose",
|
|
2839
2853
|
toEl: G,
|
|
2840
2854
|
newIndex: null,
|
|
2841
2855
|
newDraggableIndex: null,
|
|
2842
2856
|
originalEvent: e
|
|
2843
|
-
}), q === G ? Y !==
|
|
2857
|
+
}), q === G ? Y !== Ji && Y >= 0 && (U({
|
|
2844
2858
|
sortable: this,
|
|
2845
2859
|
name: "update",
|
|
2846
2860
|
toEl: G,
|
|
@@ -2872,7 +2886,7 @@ Q.prototype = {
|
|
|
2872
2886
|
name: "sort",
|
|
2873
2887
|
toEl: G,
|
|
2874
2888
|
originalEvent: e
|
|
2875
|
-
})), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y =
|
|
2889
|
+
})), X && X.save()), Q.active && ((Y == null || Y === -1) && (Y = Ji, Xi = Yi), U({
|
|
2876
2890
|
sortable: this,
|
|
2877
2891
|
name: "end",
|
|
2878
2892
|
toEl: G,
|
|
@@ -2880,9 +2894,9 @@ Q.prototype = {
|
|
|
2880
2894
|
}), this.save()))), this._nulling();
|
|
2881
2895
|
},
|
|
2882
2896
|
_nulling: function() {
|
|
2883
|
-
H("nulling", this), q = W = G = K =
|
|
2897
|
+
H("nulling", this), q = W = G = K = Gi = J = Ki = qi = ta = na = sa = Y = Xi = Ji = Yi = ca = la = X = Zi = Q.dragged = Q.ghost = Q.clone = Q.active = null, ha.forEach(function(e) {
|
|
2884
2898
|
e.checked = !0;
|
|
2885
|
-
}),
|
|
2899
|
+
}), ha.length = ra = ia = 0;
|
|
2886
2900
|
},
|
|
2887
2901
|
handleEvent: function(e) {
|
|
2888
2902
|
switch (e.type) {
|
|
@@ -2892,7 +2906,7 @@ Q.prototype = {
|
|
|
2892
2906
|
break;
|
|
2893
2907
|
case "dragenter":
|
|
2894
2908
|
case "dragover":
|
|
2895
|
-
W && (this._onDragOver(e),
|
|
2909
|
+
W && (this._onDragOver(e), ka(e));
|
|
2896
2910
|
break;
|
|
2897
2911
|
case "selectstart":
|
|
2898
2912
|
e.preventDefault();
|
|
@@ -2900,14 +2914,14 @@ Q.prototype = {
|
|
|
2900
2914
|
}
|
|
2901
2915
|
},
|
|
2902
2916
|
toArray: function() {
|
|
2903
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
2917
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], vi(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || La(t));
|
|
2904
2918
|
return e;
|
|
2905
2919
|
},
|
|
2906
2920
|
sort: function(e, t) {
|
|
2907
2921
|
var n = {}, r = this.el;
|
|
2908
2922
|
this.toArray().forEach(function(e, t) {
|
|
2909
2923
|
var i = r.children[t];
|
|
2910
|
-
|
|
2924
|
+
vi(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
2911
2925
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
2912
2926
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
2913
2927
|
}), t && this.animateAll();
|
|
@@ -2917,25 +2931,25 @@ Q.prototype = {
|
|
|
2917
2931
|
e && e.set && e.set(this);
|
|
2918
2932
|
},
|
|
2919
2933
|
closest: function(e, t) {
|
|
2920
|
-
return
|
|
2934
|
+
return vi(e, t || this.options.draggable, this.el, !1);
|
|
2921
2935
|
},
|
|
2922
2936
|
option: function(e, t) {
|
|
2923
2937
|
var n = this.options;
|
|
2924
2938
|
if (t === void 0) return n[e];
|
|
2925
|
-
var r =
|
|
2926
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
2939
|
+
var r = Hi.modifyOption(this, e, t);
|
|
2940
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && wa(n);
|
|
2927
2941
|
},
|
|
2928
2942
|
destroy: function() {
|
|
2929
2943
|
H("destroy", this);
|
|
2930
2944
|
var e = this.el;
|
|
2931
|
-
e[V] = null,
|
|
2945
|
+
e[V] = null, I(e, "mousedown", this._onTapStart), I(e, "touchstart", this._onTapStart), I(e, "pointerdown", this._onTapStart), this.nativeDraggable && (I(e, "dragover", this), I(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
2932
2946
|
e.removeAttribute("draggable");
|
|
2933
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2947
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), ea.splice(ea.indexOf(this.el), 1), this.el = e = null;
|
|
2934
2948
|
},
|
|
2935
2949
|
_hideClone: function() {
|
|
2936
|
-
if (!
|
|
2950
|
+
if (!qi) {
|
|
2937
2951
|
if (H("hideClone", this), Q.eventCanceled) return;
|
|
2938
|
-
|
|
2952
|
+
R(J, "display", "none"), this.options.removeCloneOnHide && J.parentNode && J.parentNode.removeChild(J), qi = !0;
|
|
2939
2953
|
}
|
|
2940
2954
|
},
|
|
2941
2955
|
_showClone: function(e) {
|
|
@@ -2943,99 +2957,99 @@ Q.prototype = {
|
|
|
2943
2957
|
this._hideClone();
|
|
2944
2958
|
return;
|
|
2945
2959
|
}
|
|
2946
|
-
if (
|
|
2960
|
+
if (qi) {
|
|
2947
2961
|
if (H("showClone", this), Q.eventCanceled) return;
|
|
2948
|
-
W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) :
|
|
2962
|
+
W.parentNode == q && !this.options.group.revertClone ? q.insertBefore(J, W) : Gi ? q.insertBefore(J, Gi) : q.appendChild(J), this.options.group.revertClone && this.animate(W, J), R(J, "display", ""), qi = !1;
|
|
2949
2963
|
}
|
|
2950
2964
|
}
|
|
2951
2965
|
};
|
|
2952
|
-
function
|
|
2966
|
+
function ka(e) {
|
|
2953
2967
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
2954
2968
|
}
|
|
2955
|
-
function
|
|
2969
|
+
function Aa(e, t, n, r, i, a, o, s) {
|
|
2956
2970
|
var c, l = e[V], u = l.options.onMove, d;
|
|
2957
|
-
return window.CustomEvent && !
|
|
2971
|
+
return window.CustomEvent && !li && !ui ? c = new CustomEvent("move", {
|
|
2958
2972
|
bubbles: !0,
|
|
2959
2973
|
cancelable: !0
|
|
2960
|
-
}) : (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 ||
|
|
2974
|
+
}) : (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 || z(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
2961
2975
|
}
|
|
2962
|
-
function
|
|
2976
|
+
function ja(e) {
|
|
2963
2977
|
e.draggable = !1;
|
|
2964
2978
|
}
|
|
2965
|
-
function
|
|
2966
|
-
|
|
2979
|
+
function Ma() {
|
|
2980
|
+
ma = !1;
|
|
2967
2981
|
}
|
|
2968
|
-
function
|
|
2969
|
-
var r =
|
|
2982
|
+
function Na(e, t, n) {
|
|
2983
|
+
var r = z(wi(n.el, 0, n.options, !0)), i = Ii(n.el, n.options, K), a = 10;
|
|
2970
2984
|
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;
|
|
2971
2985
|
}
|
|
2972
|
-
function
|
|
2973
|
-
var r =
|
|
2986
|
+
function Pa(e, t, n) {
|
|
2987
|
+
var r = z(Ti(n.el, n.options.draggable)), i = Ii(n.el, n.options, K), a = 10;
|
|
2974
2988
|
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;
|
|
2975
2989
|
}
|
|
2976
|
-
function
|
|
2990
|
+
function Fa(e, t, n, r, i, a, o, s) {
|
|
2977
2991
|
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;
|
|
2978
2992
|
if (!o) {
|
|
2979
|
-
if (s &&
|
|
2980
|
-
if (!
|
|
2981
|
-
else if (
|
|
2982
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
2993
|
+
if (s && fa < l * i) {
|
|
2994
|
+
if (!ua && (la === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (ua = !0), ua) f = !0;
|
|
2995
|
+
else if (la === 1 ? c < u + fa : c > d - fa) return -la;
|
|
2996
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Ia(t);
|
|
2983
2997
|
}
|
|
2984
2998
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
2985
2999
|
}
|
|
2986
|
-
function Fa(e) {
|
|
2987
|
-
return wi(W) < wi(e) ? 1 : -1;
|
|
2988
|
-
}
|
|
2989
3000
|
function Ia(e) {
|
|
3001
|
+
return B(W) < B(e) ? 1 : -1;
|
|
3002
|
+
}
|
|
3003
|
+
function La(e) {
|
|
2990
3004
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
2991
3005
|
return r.toString(36);
|
|
2992
3006
|
}
|
|
2993
|
-
function
|
|
2994
|
-
|
|
3007
|
+
function Ra(e) {
|
|
3008
|
+
ha.length = 0;
|
|
2995
3009
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
2996
3010
|
var r = t[n];
|
|
2997
|
-
r.checked &&
|
|
3011
|
+
r.checked && ha.push(r);
|
|
2998
3012
|
}
|
|
2999
3013
|
}
|
|
3000
|
-
function
|
|
3014
|
+
function za(e) {
|
|
3001
3015
|
return setTimeout(e, 0);
|
|
3002
3016
|
}
|
|
3003
|
-
function
|
|
3017
|
+
function Ba(e) {
|
|
3004
3018
|
return clearTimeout(e);
|
|
3005
3019
|
}
|
|
3006
|
-
|
|
3007
|
-
(Q.active ||
|
|
3020
|
+
ga && F(document, "touchmove", function(e) {
|
|
3021
|
+
(Q.active || Qi) && e.cancelable && e.preventDefault();
|
|
3008
3022
|
}), Q.utils = {
|
|
3009
|
-
on:
|
|
3010
|
-
off:
|
|
3011
|
-
css:
|
|
3012
|
-
find:
|
|
3023
|
+
on: F,
|
|
3024
|
+
off: I,
|
|
3025
|
+
css: R,
|
|
3026
|
+
find: xi,
|
|
3013
3027
|
is: function(e, t) {
|
|
3014
|
-
return !!
|
|
3015
|
-
},
|
|
3016
|
-
extend:
|
|
3017
|
-
throttle:
|
|
3018
|
-
closest:
|
|
3019
|
-
toggleClass:
|
|
3020
|
-
clone:
|
|
3021
|
-
index:
|
|
3022
|
-
nextTick:
|
|
3023
|
-
cancelNextTick:
|
|
3024
|
-
detectDirection:
|
|
3025
|
-
getChild:
|
|
3028
|
+
return !!vi(e, t, e, !1);
|
|
3029
|
+
},
|
|
3030
|
+
extend: ki,
|
|
3031
|
+
throttle: Mi,
|
|
3032
|
+
closest: vi,
|
|
3033
|
+
toggleClass: L,
|
|
3034
|
+
clone: Fi,
|
|
3035
|
+
index: B,
|
|
3036
|
+
nextTick: za,
|
|
3037
|
+
cancelNextTick: Ba,
|
|
3038
|
+
detectDirection: xa,
|
|
3039
|
+
getChild: wi
|
|
3026
3040
|
}, Q.get = function(e) {
|
|
3027
3041
|
return e[V];
|
|
3028
3042
|
}, Q.mount = function() {
|
|
3029
3043
|
var e = [...arguments];
|
|
3030
3044
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
3031
3045
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
3032
|
-
e.utils && (Q.utils =
|
|
3046
|
+
e.utils && (Q.utils = ti(ti({}, Q.utils), e.utils)), Hi.mount(e);
|
|
3033
3047
|
});
|
|
3034
3048
|
}, Q.create = function(e, t) {
|
|
3035
3049
|
return new Q(e, t);
|
|
3036
|
-
}, Q.version =
|
|
3037
|
-
var $ = [],
|
|
3038
|
-
function
|
|
3050
|
+
}, Q.version = si;
|
|
3051
|
+
var $ = [], Va, Ha, Ua = !1, Wa, Ga, Ka, qa;
|
|
3052
|
+
function Ja() {
|
|
3039
3053
|
function e() {
|
|
3040
3054
|
for (var e in this.defaults = {
|
|
3041
3055
|
scroll: !0,
|
|
@@ -3048,70 +3062,70 @@ function qa() {
|
|
|
3048
3062
|
return e.prototype = {
|
|
3049
3063
|
dragStarted: function(e) {
|
|
3050
3064
|
var t = e.originalEvent;
|
|
3051
|
-
this.sortable.nativeDraggable ?
|
|
3065
|
+
this.sortable.nativeDraggable ? F(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? F(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? F(document, "touchmove", this._handleFallbackAutoScroll) : F(document, "mousemove", this._handleFallbackAutoScroll);
|
|
3052
3066
|
},
|
|
3053
3067
|
dragOverCompleted: function(e) {
|
|
3054
3068
|
var t = e.originalEvent;
|
|
3055
3069
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
3056
3070
|
},
|
|
3057
3071
|
drop: function() {
|
|
3058
|
-
this.sortable.nativeDraggable ?
|
|
3072
|
+
this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : (I(document, "pointermove", this._handleFallbackAutoScroll), I(document, "touchmove", this._handleFallbackAutoScroll), I(document, "mousemove", this._handleFallbackAutoScroll)), Xa(), Ya(), Ni();
|
|
3059
3073
|
},
|
|
3060
3074
|
nulling: function() {
|
|
3061
|
-
|
|
3075
|
+
Ka = Ha = Va = Ua = qa = Wa = Ga = null, $.length = 0;
|
|
3062
3076
|
},
|
|
3063
3077
|
_handleFallbackAutoScroll: function(e) {
|
|
3064
3078
|
this._handleAutoScroll(e, !0);
|
|
3065
3079
|
},
|
|
3066
3080
|
_handleAutoScroll: function(e, t) {
|
|
3067
3081
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
3068
|
-
if (
|
|
3069
|
-
|
|
3070
|
-
var o =
|
|
3071
|
-
|
|
3072
|
-
var a =
|
|
3073
|
-
a !== o && (o = a,
|
|
3074
|
-
}, 10),
|
|
3082
|
+
if (Ka = e, t || this.options.forceAutoScrollFallback || ui || li || fi) {
|
|
3083
|
+
Za(e, this.options, a, t);
|
|
3084
|
+
var o = Oi(a, !0);
|
|
3085
|
+
Ua && (!qa || r !== Wa || i !== Ga) && (qa && Xa(), qa = setInterval(function() {
|
|
3086
|
+
var a = Oi(document.elementFromPoint(r, i), !0);
|
|
3087
|
+
a !== o && (o = a, Ya()), Za(e, n.options, a, t);
|
|
3088
|
+
}, 10), Wa = r, Ga = i);
|
|
3075
3089
|
} else {
|
|
3076
|
-
if (!this.options.bubbleScroll ||
|
|
3077
|
-
|
|
3090
|
+
if (!this.options.bubbleScroll || Oi(a, !0) === Si()) {
|
|
3091
|
+
Ya();
|
|
3078
3092
|
return;
|
|
3079
3093
|
}
|
|
3080
|
-
|
|
3094
|
+
Za(e, this.options, Oi(a, !1), !1);
|
|
3081
3095
|
}
|
|
3082
3096
|
}
|
|
3083
|
-
},
|
|
3097
|
+
}, ii(e, {
|
|
3084
3098
|
pluginName: "scroll",
|
|
3085
3099
|
initializeByDefault: !0
|
|
3086
3100
|
});
|
|
3087
3101
|
}
|
|
3088
|
-
function
|
|
3102
|
+
function Ya() {
|
|
3089
3103
|
$.forEach(function(e) {
|
|
3090
3104
|
clearInterval(e.pid);
|
|
3091
3105
|
}), $ = [];
|
|
3092
3106
|
}
|
|
3093
|
-
function
|
|
3094
|
-
clearInterval(
|
|
3107
|
+
function Xa() {
|
|
3108
|
+
clearInterval(qa);
|
|
3095
3109
|
}
|
|
3096
|
-
var
|
|
3110
|
+
var Za = Mi(function(e, t, n, r) {
|
|
3097
3111
|
if (t.scroll) {
|
|
3098
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
3099
|
-
|
|
3100
|
-
var d = 0, f =
|
|
3112
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Si(), l = !1, u;
|
|
3113
|
+
Ha !== n && (Ha = n, Ya(), Va = t.scroll, u = t.scrollFn, Va === !0 && (Va = Oi(n, !0)));
|
|
3114
|
+
var d = 0, f = Va;
|
|
3101
3115
|
do {
|
|
3102
|
-
var p = f, m =
|
|
3116
|
+
var p = f, m = z(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 = R(p), E = p.scrollLeft, ee = p.scrollTop;
|
|
3103
3117
|
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"));
|
|
3104
3118
|
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);
|
|
3105
3119
|
if (!$[d]) for (var k = 0; k <= d; k++) $[k] || ($[k] = {});
|
|
3106
3120
|
($[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() {
|
|
3107
|
-
r && this.layer === 0 && Q.active._onTouchMove(
|
|
3121
|
+
r && this.layer === 0 && Q.active._onTouchMove(Ka);
|
|
3108
3122
|
var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
|
|
3109
|
-
typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e,
|
|
3123
|
+
typeof u == "function" && u.call(Q.dragged.parentNode[V], n, t, e, Ka, $[this.layer].el) !== "continue" || Pi($[this.layer].el, n, t);
|
|
3110
3124
|
}.bind({ layer: d }), 24))), d++;
|
|
3111
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
3112
|
-
|
|
3125
|
+
} while (t.bubbleScroll && f !== c && (f = Oi(f, !1)));
|
|
3126
|
+
Ua = l;
|
|
3113
3127
|
}
|
|
3114
|
-
}, 30),
|
|
3128
|
+
}, 30), Qa = function(e) {
|
|
3115
3129
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
3116
3130
|
if (t) {
|
|
3117
3131
|
var c = n || i;
|
|
@@ -3123,8 +3137,8 @@ var Xa = ji(function(e, t, n, r) {
|
|
|
3123
3137
|
}));
|
|
3124
3138
|
}
|
|
3125
3139
|
};
|
|
3126
|
-
function
|
|
3127
|
-
|
|
3140
|
+
function $a() {}
|
|
3141
|
+
$a.prototype = {
|
|
3128
3142
|
startIndex: null,
|
|
3129
3143
|
dragStart: function(e) {
|
|
3130
3144
|
var t = e.oldDraggableIndex;
|
|
@@ -3133,72 +3147,72 @@ Qa.prototype = {
|
|
|
3133
3147
|
onSpill: function(e) {
|
|
3134
3148
|
var t = e.dragEl, n = e.putSortable;
|
|
3135
3149
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
3136
|
-
var r =
|
|
3150
|
+
var r = wi(this.sortable.el, this.startIndex, this.options);
|
|
3137
3151
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
3138
3152
|
},
|
|
3139
|
-
drop:
|
|
3140
|
-
},
|
|
3141
|
-
function
|
|
3142
|
-
|
|
3153
|
+
drop: Qa
|
|
3154
|
+
}, ii($a, { pluginName: "revertOnSpill" });
|
|
3155
|
+
function eo() {}
|
|
3156
|
+
eo.prototype = {
|
|
3143
3157
|
onSpill: function(e) {
|
|
3144
3158
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
3145
3159
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
3146
3160
|
},
|
|
3147
|
-
drop:
|
|
3148
|
-
},
|
|
3149
|
-
function eo(e) {
|
|
3150
|
-
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3151
|
-
}
|
|
3161
|
+
drop: Qa
|
|
3162
|
+
}, ii(eo, { pluginName: "removeOnSpill" }), Q.mount(new Ja()), Q.mount(eo, $a);
|
|
3152
3163
|
function to(e) {
|
|
3153
|
-
|
|
3164
|
+
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
3154
3165
|
}
|
|
3155
3166
|
function no(e) {
|
|
3156
|
-
|
|
3167
|
+
oe() && ee(e);
|
|
3168
|
+
}
|
|
3169
|
+
function ro(e) {
|
|
3170
|
+
oe() ? u(e) : r(e);
|
|
3157
3171
|
}
|
|
3158
|
-
var
|
|
3159
|
-
function
|
|
3160
|
-
|
|
3172
|
+
var io = null, ao = null;
|
|
3173
|
+
function oo(e = null, t = null) {
|
|
3174
|
+
io = e, ao = t;
|
|
3161
3175
|
}
|
|
3162
|
-
function
|
|
3176
|
+
function so() {
|
|
3163
3177
|
return {
|
|
3164
|
-
data:
|
|
3165
|
-
clonedData:
|
|
3178
|
+
data: io,
|
|
3179
|
+
clonedData: ao
|
|
3166
3180
|
};
|
|
3167
3181
|
}
|
|
3168
|
-
var
|
|
3169
|
-
function
|
|
3170
|
-
let t =
|
|
3182
|
+
var co = Symbol("cloneElement");
|
|
3183
|
+
function lo(...e) {
|
|
3184
|
+
let t = oe()?.proxy, n = null, i = e[0], [, o, c] = e;
|
|
3171
3185
|
Array.isArray(j(o)) || (c = o, o = null);
|
|
3172
|
-
let l = null, { immediate: u = !0, clone: d =
|
|
3186
|
+
let l = null, { immediate: u = !0, clone: d = to, forceFallback: f, fallbackOnBody: p, customUpdate: m } = j(c) ?? {};
|
|
3173
3187
|
function h(e) {
|
|
3174
3188
|
let { from: t, oldIndex: r, item: i } = e, a = Array.from(t.childNodes);
|
|
3175
3189
|
n = f && !p ? a.slice(0, -1) : a;
|
|
3176
3190
|
let s = j(j(o)?.[r]), c = d(s);
|
|
3177
|
-
|
|
3191
|
+
oo(s, c), i[co] = c;
|
|
3178
3192
|
}
|
|
3179
3193
|
function g(e) {
|
|
3180
|
-
let t = e.item[
|
|
3181
|
-
if (!
|
|
3182
|
-
if (
|
|
3194
|
+
let t = e.item[co];
|
|
3195
|
+
if (!Ur(t)) {
|
|
3196
|
+
if (Kr(e.item), a(o)) {
|
|
3183
3197
|
let n = [...j(o)];
|
|
3184
|
-
o.value =
|
|
3198
|
+
o.value = Hr(n, e.newDraggableIndex, t);
|
|
3185
3199
|
return;
|
|
3186
3200
|
}
|
|
3187
|
-
|
|
3201
|
+
Hr(j(o), e.newDraggableIndex, t);
|
|
3188
3202
|
}
|
|
3189
3203
|
}
|
|
3190
3204
|
function _(e) {
|
|
3191
3205
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, pullMode: s, clone: c } = e;
|
|
3192
|
-
if (
|
|
3193
|
-
|
|
3206
|
+
if (Gr(t, n, r), s === "clone") {
|
|
3207
|
+
Kr(c);
|
|
3194
3208
|
return;
|
|
3195
3209
|
}
|
|
3196
3210
|
if (a(o)) {
|
|
3197
3211
|
let e = [...j(o)];
|
|
3198
|
-
o.value =
|
|
3212
|
+
o.value = Vr(e, i);
|
|
3199
3213
|
return;
|
|
3200
3214
|
}
|
|
3201
|
-
|
|
3215
|
+
Vr(j(o), i);
|
|
3202
3216
|
}
|
|
3203
3217
|
function v(e) {
|
|
3204
3218
|
if (m) {
|
|
@@ -3206,12 +3220,12 @@ function co(...e) {
|
|
|
3206
3220
|
return;
|
|
3207
3221
|
}
|
|
3208
3222
|
let { from: t, item: n, oldIndex: r, oldDraggableIndex: i, newDraggableIndex: s } = e;
|
|
3209
|
-
if (
|
|
3223
|
+
if (Kr(n), Gr(t, n, r), a(o)) {
|
|
3210
3224
|
let e = [...j(o)];
|
|
3211
|
-
o.value =
|
|
3225
|
+
o.value = Rr(e, i, s);
|
|
3212
3226
|
return;
|
|
3213
3227
|
}
|
|
3214
|
-
|
|
3228
|
+
Rr(j(o), i, s);
|
|
3215
3229
|
}
|
|
3216
3230
|
function y(e) {
|
|
3217
3231
|
let { newIndex: t, oldIndex: i, from: a, to: o } = e, s = null, c = t === i && a === o;
|
|
@@ -3230,7 +3244,7 @@ function co(...e) {
|
|
|
3230
3244
|
n = null;
|
|
3231
3245
|
}
|
|
3232
3246
|
r(() => {
|
|
3233
|
-
if (
|
|
3247
|
+
if (oo(), s) throw s;
|
|
3234
3248
|
});
|
|
3235
3249
|
}
|
|
3236
3250
|
let b = {
|
|
@@ -3242,19 +3256,19 @@ function co(...e) {
|
|
|
3242
3256
|
};
|
|
3243
3257
|
function x(e) {
|
|
3244
3258
|
let n = j(i);
|
|
3245
|
-
return e ||=
|
|
3259
|
+
return e ||= Wr(n) ? qr(n, t?.$el) : n, e && !Xr(e) && (e = e.$el), e || Lr("Root element not found"), e;
|
|
3246
3260
|
}
|
|
3247
3261
|
function S() {
|
|
3248
|
-
let e = j(c) ?? {}, { immediate: t, clone: n } = e, r =
|
|
3249
|
-
return
|
|
3250
|
-
|
|
3251
|
-
}),
|
|
3262
|
+
let e = j(c) ?? {}, { immediate: t, clone: n } = e, r = Pr(e, ["immediate", "clone"]);
|
|
3263
|
+
return Zr(r, (e, t) => {
|
|
3264
|
+
Qr(e) && (r[e] = (e, ...n) => ($r(e, so()), t(e, ...n)));
|
|
3265
|
+
}), Yr(o === null ? {} : b, r);
|
|
3252
3266
|
}
|
|
3253
3267
|
let C = (e) => {
|
|
3254
3268
|
e = x(e), l && w.destroy(), l = new Q(e, S());
|
|
3255
3269
|
};
|
|
3256
3270
|
s(() => c, () => {
|
|
3257
|
-
l &&
|
|
3271
|
+
l && Zr(S(), (e, t) => {
|
|
3258
3272
|
l?.option(e, t);
|
|
3259
3273
|
});
|
|
3260
3274
|
}, { deep: !0 });
|
|
@@ -3267,15 +3281,15 @@ function co(...e) {
|
|
|
3267
3281
|
toArray: () => l?.toArray(),
|
|
3268
3282
|
closest: (...e) => l?.closest(...e)
|
|
3269
3283
|
};
|
|
3270
|
-
return
|
|
3284
|
+
return ro(() => {
|
|
3271
3285
|
u && C();
|
|
3272
|
-
}),
|
|
3286
|
+
}), no(w.destroy), Nr({
|
|
3273
3287
|
start: C,
|
|
3274
3288
|
pause: () => w?.option("disabled", !0),
|
|
3275
3289
|
resume: () => w?.option("disabled", !1)
|
|
3276
3290
|
}, w);
|
|
3277
3291
|
}
|
|
3278
|
-
var
|
|
3292
|
+
var uo = [
|
|
3279
3293
|
"update",
|
|
3280
3294
|
"start",
|
|
3281
3295
|
"add",
|
|
@@ -3288,7 +3302,7 @@ var lo = [
|
|
|
3288
3302
|
"clone",
|
|
3289
3303
|
"move",
|
|
3290
3304
|
"change"
|
|
3291
|
-
],
|
|
3305
|
+
], fo = y({
|
|
3292
3306
|
name: "VueDraggable",
|
|
3293
3307
|
model: {
|
|
3294
3308
|
prop: "modelValue",
|
|
@@ -3338,37 +3352,37 @@ var lo = [
|
|
|
3338
3352
|
"tag",
|
|
3339
3353
|
"target",
|
|
3340
3354
|
"customUpdate",
|
|
3341
|
-
...
|
|
3355
|
+
...uo.map((e) => `on${e.replace(/^\S/, (e) => e.toUpperCase())}`)
|
|
3342
3356
|
],
|
|
3343
|
-
emits: ["update:modelValue", ...
|
|
3357
|
+
emits: ["update:modelValue", ...uo],
|
|
3344
3358
|
setup(e, { slots: t, emit: n, expose: r, attrs: i }) {
|
|
3345
|
-
let a =
|
|
3359
|
+
let a = uo.reduce((e, t) => {
|
|
3346
3360
|
let r = `on${t.replace(/^\S/, (e) => e.toUpperCase())}`;
|
|
3347
3361
|
return e[r] = (...e) => n(t, ...e), e;
|
|
3348
3362
|
}, {}), s = x(() => {
|
|
3349
|
-
let t = S(e), { modelValue: n } = t, r =
|
|
3363
|
+
let t = S(e), { modelValue: n } = t, r = Pr(t, ["modelValue"]), o = Object.entries(r).reduce((e, [t, n]) => {
|
|
3350
3364
|
let r = j(n);
|
|
3351
3365
|
return r !== void 0 && (e[t] = r), e;
|
|
3352
3366
|
}, {});
|
|
3353
|
-
return
|
|
3367
|
+
return Nr(Nr({}, a), Br(Nr(Nr({}, i), o)));
|
|
3354
3368
|
}), c = x({
|
|
3355
3369
|
get: () => e.modelValue,
|
|
3356
3370
|
set: (e) => n("update:modelValue", e)
|
|
3357
|
-
}), l = h(), u = o(
|
|
3371
|
+
}), l = h(), u = o(lo(e.target || l, c, s));
|
|
3358
3372
|
return r(u), () => f(e.tag || "div", { ref: l }, (t?.default)?.call(t, u));
|
|
3359
3373
|
}
|
|
3360
|
-
}),
|
|
3374
|
+
}), po = {
|
|
3361
3375
|
mounted: "mounted",
|
|
3362
3376
|
unmounted: "unmounted"
|
|
3363
3377
|
};
|
|
3364
|
-
|
|
3378
|
+
po.mounted, po.unmounted;
|
|
3365
3379
|
//#endregion
|
|
3366
3380
|
//#region src/components/blocks/SectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3367
|
-
var
|
|
3381
|
+
var mo = { class: "tpl:w-full" }, ho = { class: "tpl:flex tpl:gap-0" }, go = {
|
|
3368
3382
|
key: 0,
|
|
3369
3383
|
"data-testid": "section-drop-hint",
|
|
3370
3384
|
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)]"
|
|
3371
|
-
},
|
|
3385
|
+
}, _o = /* @__PURE__ */ y({
|
|
3372
3386
|
__name: "SectionBlock",
|
|
3373
3387
|
props: {
|
|
3374
3388
|
block: {},
|
|
@@ -3376,13 +3390,13 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3376
3390
|
},
|
|
3377
3391
|
setup(n) {
|
|
3378
3392
|
let r = {
|
|
3379
|
-
title:
|
|
3380
|
-
paragraph:
|
|
3381
|
-
image:
|
|
3382
|
-
button:
|
|
3383
|
-
divider:
|
|
3384
|
-
custom:
|
|
3385
|
-
}, a = n, { t: o } =
|
|
3393
|
+
title: Dr,
|
|
3394
|
+
paragraph: ur,
|
|
3395
|
+
image: Zn,
|
|
3396
|
+
button: Xt,
|
|
3397
|
+
divider: Fn,
|
|
3398
|
+
custom: Nn
|
|
3399
|
+
}, a = n, { t: o } = lt(), s = ze(rt, "SectionBlock"), l = ae(at, null), u = ae(nt, null), d = x(() => {
|
|
3386
3400
|
switch (a.block.columns) {
|
|
3387
3401
|
case "2": return ["50%", "50%"];
|
|
3388
3402
|
case "3": return [
|
|
@@ -3408,7 +3422,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3408
3422
|
r[e] = n, s.updateBlock(a.block.id, { children: r });
|
|
3409
3423
|
}
|
|
3410
3424
|
function h(e) {
|
|
3411
|
-
return
|
|
3425
|
+
return dr(e, u, r);
|
|
3412
3426
|
}
|
|
3413
3427
|
function g(e, t) {
|
|
3414
3428
|
e.type === "custom" && s.updateBlock(e.id, {
|
|
@@ -3416,11 +3430,11 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3416
3430
|
dataSourceFetched: t.dataSourceFetched
|
|
3417
3431
|
});
|
|
3418
3432
|
}
|
|
3419
|
-
return (r, a) => (e(), w("div",
|
|
3433
|
+
return (r, a) => (e(), w("div", mo, [C("div", ho, [(e(!0), w(D, null, c(f.value, (r, a) => (e(), w("div", {
|
|
3420
3434
|
key: a,
|
|
3421
3435
|
class: v(["tpl:relative tpl:min-h-[60px] tpl:rounded", p(a).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
3422
3436
|
style: A({ width: d.value[a] })
|
|
3423
|
-
}, [N(j(
|
|
3437
|
+
}, [N(j(fo), {
|
|
3424
3438
|
"model-value": p(a),
|
|
3425
3439
|
group: {
|
|
3426
3440
|
name: "blocks",
|
|
@@ -3438,13 +3452,13 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3438
3452
|
class: "tpl:min-h-[60px]",
|
|
3439
3453
|
"onUpdate:modelValue": (e) => m(a, e)
|
|
3440
3454
|
}, {
|
|
3441
|
-
default:
|
|
3455
|
+
default: ce(() => [(e(!0), w(D, null, c(p(a), (r) => t((e(), w("div", { key: r.id }, [N(Tr, {
|
|
3442
3456
|
block: r,
|
|
3443
3457
|
"is-selected": j(s).state.selectedBlockId === r.id,
|
|
3444
3458
|
viewport: n.viewport,
|
|
3445
3459
|
onSelect: (e) => j(s).selectBlock(r.id)
|
|
3446
3460
|
}, {
|
|
3447
|
-
default:
|
|
3461
|
+
default: ce(() => [(e(), ne(i(h(r)), {
|
|
3448
3462
|
block: r,
|
|
3449
3463
|
viewport: n.viewport,
|
|
3450
3464
|
onFetchData: (e) => g(r, e)
|
|
@@ -3465,9 +3479,9 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3465
3479
|
"model-value",
|
|
3466
3480
|
"group",
|
|
3467
3481
|
"onUpdate:modelValue"
|
|
3468
|
-
]), p(a).length === 0 ? (e(), w("div",
|
|
3482
|
+
]), p(a).length === 0 ? (e(), w("div", go, [C("span", null, M(j(o).section.dropHere), 1)])) : O("", !0)], 6))), 128))])]));
|
|
3469
3483
|
}
|
|
3470
|
-
}),
|
|
3484
|
+
}), vo = {
|
|
3471
3485
|
facebook: {
|
|
3472
3486
|
name: "Facebook",
|
|
3473
3487
|
color: "#1877F2",
|
|
@@ -3548,11 +3562,11 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3548
3562
|
color: "#1769FF",
|
|
3549
3563
|
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"
|
|
3550
3564
|
}
|
|
3551
|
-
},
|
|
3565
|
+
}, yo = {
|
|
3552
3566
|
small: 24,
|
|
3553
3567
|
medium: 32,
|
|
3554
3568
|
large: 48
|
|
3555
|
-
},
|
|
3569
|
+
}, bo = [
|
|
3556
3570
|
"facebook",
|
|
3557
3571
|
"twitter",
|
|
3558
3572
|
"instagram",
|
|
@@ -3569,11 +3583,11 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3569
3583
|
"github",
|
|
3570
3584
|
"dribbble",
|
|
3571
3585
|
"behance"
|
|
3572
|
-
],
|
|
3586
|
+
], xo = [
|
|
3573
3587
|
"width",
|
|
3574
3588
|
"height",
|
|
3575
3589
|
"fill"
|
|
3576
|
-
],
|
|
3590
|
+
], So = ["d"], Co = /* @__PURE__ */ y({
|
|
3577
3591
|
__name: "SocialIconSvg",
|
|
3578
3592
|
props: {
|
|
3579
3593
|
platform: {},
|
|
@@ -3581,7 +3595,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3581
3595
|
iconSize: {}
|
|
3582
3596
|
},
|
|
3583
3597
|
setup(t) {
|
|
3584
|
-
let n = t, r = x(() =>
|
|
3598
|
+
let n = t, r = x(() => vo[n.platform]), i = x(() => yo[n.iconSize]), a = x(() => {
|
|
3585
3599
|
let e = {
|
|
3586
3600
|
display: "inline-flex",
|
|
3587
3601
|
alignItems: "center",
|
|
@@ -3625,25 +3639,25 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3625
3639
|
viewBox: "0 0 24 24",
|
|
3626
3640
|
fill: s.value,
|
|
3627
3641
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3628
|
-
}, [C("path", { d: r.value.path }, null, 8,
|
|
3642
|
+
}, [C("path", { d: r.value.path }, null, 8, So)], 8, xo))], 4));
|
|
3629
3643
|
}
|
|
3630
|
-
}),
|
|
3644
|
+
}), wo = { class: "tpl:w-full" }, To = ["href"], Eo = {
|
|
3631
3645
|
key: 1,
|
|
3632
3646
|
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)]"
|
|
3633
|
-
},
|
|
3647
|
+
}, Do = /* @__PURE__ */ y({
|
|
3634
3648
|
__name: "SocialIconsBlock",
|
|
3635
3649
|
props: {
|
|
3636
3650
|
block: {},
|
|
3637
3651
|
viewport: {}
|
|
3638
3652
|
},
|
|
3639
3653
|
setup(t) {
|
|
3640
|
-
let n = t, { t: r } =
|
|
3654
|
+
let n = t, { t: r } = lt(), i = x(() => ({
|
|
3641
3655
|
display: "flex",
|
|
3642
3656
|
flexWrap: "wrap",
|
|
3643
3657
|
gap: `${n.block.spacing}px`,
|
|
3644
3658
|
justifyContent: n.block.align === "left" ? "flex-start" : n.block.align === "right" ? "flex-end" : "center"
|
|
3645
3659
|
})), a = x(() => n.block.icons.length > 0);
|
|
3646
|
-
return (n, o) => (e(), w("div",
|
|
3660
|
+
return (n, o) => (e(), w("div", wo, [a.value ? (e(), w("div", {
|
|
3647
3661
|
key: 0,
|
|
3648
3662
|
style: A(i.value)
|
|
3649
3663
|
}, [(e(!0), w(D, null, c(t.block.icons, (n) => (e(), w("a", {
|
|
@@ -3651,7 +3665,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3651
3665
|
href: n.url || "#",
|
|
3652
3666
|
class: "tpl:cursor-default",
|
|
3653
3667
|
onClick: o[0] ||= b(() => {}, ["prevent"])
|
|
3654
|
-
}, [N(
|
|
3668
|
+
}, [N(Co, {
|
|
3655
3669
|
platform: n.platform,
|
|
3656
3670
|
"icon-style": t.block.iconStyle,
|
|
3657
3671
|
"icon-size": t.block.iconSize
|
|
@@ -3659,44 +3673,44 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3659
3673
|
"platform",
|
|
3660
3674
|
"icon-style",
|
|
3661
3675
|
"icon-size"
|
|
3662
|
-
])], 8,
|
|
3676
|
+
])], 8, To))), 128))], 4)) : (e(), w("div", Eo, [N(j(cn), { size: 16 }), C("span", null, M(j(r).social.addIcons), 1)]))]));
|
|
3663
3677
|
}
|
|
3664
|
-
}),
|
|
3678
|
+
}), Oo = { class: "tpl:w-full" }, ko = {
|
|
3665
3679
|
key: 0,
|
|
3666
3680
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
3667
3681
|
style: {
|
|
3668
3682
|
"background-color": "var(--tpl-bg-hover)",
|
|
3669
3683
|
color: "var(--tpl-text-dim)"
|
|
3670
3684
|
}
|
|
3671
|
-
},
|
|
3685
|
+
}, Ao = /* @__PURE__ */ y({
|
|
3672
3686
|
__name: "SpacerBlock",
|
|
3673
3687
|
props: {
|
|
3674
3688
|
block: {},
|
|
3675
3689
|
viewport: {}
|
|
3676
3690
|
},
|
|
3677
3691
|
setup(t) {
|
|
3678
|
-
let n = t, r =
|
|
3692
|
+
let n = t, r = ze(rt, "SpacerBlock"), i = x(() => ({
|
|
3679
3693
|
height: `${n.block.height}px`,
|
|
3680
3694
|
minHeight: `${n.block.height}px`,
|
|
3681
3695
|
...r.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
3682
3696
|
}));
|
|
3683
|
-
return (n, a) => (e(), w("div",
|
|
3697
|
+
return (n, a) => (e(), w("div", Oo, [C("div", {
|
|
3684
3698
|
style: A(i.value),
|
|
3685
3699
|
class: v(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !j(r).state.previewMode }])
|
|
3686
|
-
}, [j(r).state.previewMode ? O("", !0) : (e(), w("span",
|
|
3700
|
+
}, [j(r).state.previewMode ? O("", !0) : (e(), w("span", ko, M(t.block.height) + "px ", 1))], 6)]));
|
|
3687
3701
|
}
|
|
3688
|
-
}),
|
|
3702
|
+
}), jo = { class: "tpl:w-full" }, Mo = { key: 0 }, No = [
|
|
3689
3703
|
"aria-label",
|
|
3690
3704
|
"data-placeholder",
|
|
3691
3705
|
"onBlur"
|
|
3692
|
-
],
|
|
3706
|
+
], Po = [
|
|
3693
3707
|
"aria-label",
|
|
3694
3708
|
"data-placeholder",
|
|
3695
3709
|
"onBlur"
|
|
3696
|
-
],
|
|
3710
|
+
], Fo = {
|
|
3697
3711
|
key: 1,
|
|
3698
3712
|
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)]"
|
|
3699
|
-
},
|
|
3713
|
+
}, Io = /* @__PURE__ */ mt(/* @__PURE__ */ y({
|
|
3700
3714
|
__name: "TableBlock",
|
|
3701
3715
|
props: {
|
|
3702
3716
|
block: {},
|
|
@@ -3710,7 +3724,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3710
3724
|
updated(e, t) {
|
|
3711
3725
|
t.value !== t.oldValue && e.ownerDocument.activeElement !== e && (e.textContent = t.value ?? "");
|
|
3712
3726
|
}
|
|
3713
|
-
}, i = n, { t: a } =
|
|
3727
|
+
}, i = n, { t: a } = lt(), o = ze(rt, "TableBlock"), s = x(() => i.block.rows.length > 0), l = x(() => ({
|
|
3714
3728
|
width: "100%",
|
|
3715
3729
|
borderCollapse: "collapse",
|
|
3716
3730
|
fontSize: `${i.block.fontSize}px`,
|
|
@@ -3739,11 +3753,11 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3739
3753
|
} : n);
|
|
3740
3754
|
o.updateBlock(i.block.id, { rows: a });
|
|
3741
3755
|
}
|
|
3742
|
-
return (n, i) => (e(), w("div",
|
|
3756
|
+
return (n, i) => (e(), w("div", jo, [s.value ? (e(), w("table", {
|
|
3743
3757
|
key: 0,
|
|
3744
3758
|
style: A(l.value),
|
|
3745
3759
|
class: "tpl-table-editable"
|
|
3746
|
-
}, [f.value ? (e(), w("thead",
|
|
3760
|
+
}, [f.value ? (e(), w("thead", Mo, [C("tr", null, [(e(!0), w(D, null, c(f.value.cells, (n) => t((e(), w("th", {
|
|
3747
3761
|
key: n.id,
|
|
3748
3762
|
style: A(d.value),
|
|
3749
3763
|
"aria-label": j(a).table.cellPlaceholder,
|
|
@@ -3752,7 +3766,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3752
3766
|
onBlur: (e) => h(f.value.id, n.id, e),
|
|
3753
3767
|
onKeydown: i[0] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3754
3768
|
onClick: b(m, ["stop"])
|
|
3755
|
-
}, null, 44,
|
|
3769
|
+
}, null, 44, No)), [[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", {
|
|
3756
3770
|
key: o.id,
|
|
3757
3771
|
style: A(u.value),
|
|
3758
3772
|
"aria-label": j(a).table.cellPlaceholder,
|
|
@@ -3761,9 +3775,9 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3761
3775
|
onBlur: (e) => h(n.id, o.id, e),
|
|
3762
3776
|
onKeydown: i[1] ||= ie(b((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
3763
3777
|
onClick: b(m, ["stop"])
|
|
3764
|
-
}, null, 44,
|
|
3778
|
+
}, null, 44, Po)), [[r, o.content]])), 128))]))), 128))])], 4)) : (e(), w("div", Fo, [N(j(ln), { size: 16 }), C("span", null, M(j(a).table.empty), 1)]))]));
|
|
3765
3779
|
}
|
|
3766
|
-
}), [["__scopeId", "data-v-4f49860b"]]),
|
|
3780
|
+
}), [["__scopeId", "data-v-4f49860b"]]), Lo = /* @__PURE__ */ y({
|
|
3767
3781
|
__name: "VideoPlayButton",
|
|
3768
3782
|
props: { hoverEffect: {
|
|
3769
3783
|
type: Boolean,
|
|
@@ -3781,7 +3795,7 @@ var po = { class: "tpl:w-full" }, mo = { class: "tpl:flex tpl:gap-0" }, ho = {
|
|
|
3781
3795
|
});
|
|
3782
3796
|
//#endregion
|
|
3783
3797
|
//#region src/utils/videoThumbnail.ts
|
|
3784
|
-
function
|
|
3798
|
+
function Ro(e) {
|
|
3785
3799
|
if (!e) return {
|
|
3786
3800
|
platform: "unknown",
|
|
3787
3801
|
videoId: null,
|
|
@@ -3813,31 +3827,31 @@ function Lo(e) {
|
|
|
3813
3827
|
thumbnailUrl: null
|
|
3814
3828
|
};
|
|
3815
3829
|
}
|
|
3816
|
-
function
|
|
3817
|
-
return t ||
|
|
3830
|
+
function zo(e, t) {
|
|
3831
|
+
return t || Ro(e).thumbnailUrl;
|
|
3818
3832
|
}
|
|
3819
3833
|
//#endregion
|
|
3820
3834
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
3821
|
-
var
|
|
3835
|
+
var Bo = ["src", "alt"], Vo = {
|
|
3822
3836
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
3823
3837
|
style: { opacity: "0.7" }
|
|
3824
|
-
},
|
|
3838
|
+
}, Ho = ["href"], Uo = ["src", "alt"], Wo = ["src", "alt"], Go = {
|
|
3825
3839
|
key: 3,
|
|
3826
3840
|
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)]"
|
|
3827
|
-
},
|
|
3841
|
+
}, Ko = /* @__PURE__ */ y({
|
|
3828
3842
|
__name: "VideoBlock",
|
|
3829
3843
|
props: {
|
|
3830
3844
|
block: {},
|
|
3831
3845
|
viewport: {}
|
|
3832
3846
|
},
|
|
3833
3847
|
setup(t) {
|
|
3834
|
-
let n = t, { t: r } =
|
|
3848
|
+
let n = t, { t: r } = lt(), { syntax: i } = ht(), a = x(() => pe(n.block.url, i) || pe(n.block.thumbnailUrl, i)), o = x(() => a.value ? null : zo(n.block.url, n.block.thumbnailUrl)), s = x(() => ({ textAlign: n.block.align })), c = x(() => ({
|
|
3835
3849
|
maxWidth: "100%",
|
|
3836
3850
|
width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
|
|
3837
3851
|
display: "block",
|
|
3838
3852
|
margin: n.block.align === "center" ? "0 auto" : void 0,
|
|
3839
3853
|
marginLeft: n.block.align === "right" ? "auto" : void 0
|
|
3840
|
-
})), l = x(() =>
|
|
3854
|
+
})), l = x(() => pe(n.block.url, i) ? n.block.url : n.block.thumbnailUrl);
|
|
3841
3855
|
return (n, i) => (e(), w("div", {
|
|
3842
3856
|
class: "tpl:w-full",
|
|
3843
3857
|
style: A(s.value)
|
|
@@ -3849,16 +3863,16 @@ var zo = ["src", "alt"], Bo = {
|
|
|
3849
3863
|
class: "tpl:w-full tpl:border-0",
|
|
3850
3864
|
src: t.block.placeholderUrl,
|
|
3851
3865
|
alt: t.block.alt
|
|
3852
|
-
}, null, 8,
|
|
3866
|
+
}, null, 8, Bo), N(Lo)], 4)) : a.value ? (e(), w("div", {
|
|
3853
3867
|
key: 1,
|
|
3854
3868
|
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)]",
|
|
3855
3869
|
style: A([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, c.value])
|
|
3856
|
-
}, [N(j(
|
|
3870
|
+
}, [N(j(un), {
|
|
3857
3871
|
size: 36,
|
|
3858
3872
|
"stroke-width": 1.5,
|
|
3859
3873
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
3860
3874
|
style: { opacity: "0.5" }
|
|
3861
|
-
}), C("span",
|
|
3875
|
+
}), C("span", Vo, M(l.value), 1)], 4)) : o.value ? (e(), w(D, { key: 2 }, [t.block.url ? (e(), w("a", {
|
|
3862
3876
|
key: 0,
|
|
3863
3877
|
href: t.block.url,
|
|
3864
3878
|
target: "_blank",
|
|
@@ -3870,7 +3884,7 @@ var zo = ["src", "alt"], Bo = {
|
|
|
3870
3884
|
class: "tpl:w-full tpl:border-0",
|
|
3871
3885
|
src: o.value,
|
|
3872
3886
|
alt: t.block.alt
|
|
3873
|
-
}, null, 8,
|
|
3887
|
+
}, null, 8, Uo), N(Lo, { "hover-effect": "" })], 12, Ho)) : (e(), w("div", {
|
|
3874
3888
|
key: 1,
|
|
3875
3889
|
class: "tpl:relative tpl:inline-block",
|
|
3876
3890
|
style: A(c.value)
|
|
@@ -3878,48 +3892,48 @@ var zo = ["src", "alt"], Bo = {
|
|
|
3878
3892
|
class: "tpl:w-full tpl:border-0",
|
|
3879
3893
|
src: o.value,
|
|
3880
3894
|
alt: t.block.alt
|
|
3881
|
-
}, null, 8,
|
|
3895
|
+
}, null, 8, Wo), N(Lo)], 4))], 64)) : (e(), w("div", Go, [N(j(un), {
|
|
3882
3896
|
size: 40,
|
|
3883
3897
|
"stroke-width": 1.5,
|
|
3884
3898
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
3885
3899
|
}), C("span", null, M(j(r).video.addVideo), 1)]))], 4));
|
|
3886
3900
|
}
|
|
3887
|
-
}),
|
|
3888
|
-
section:
|
|
3889
|
-
title:
|
|
3890
|
-
paragraph:
|
|
3891
|
-
image:
|
|
3892
|
-
button:
|
|
3893
|
-
divider:
|
|
3894
|
-
video:
|
|
3895
|
-
social:
|
|
3896
|
-
menu:
|
|
3897
|
-
table:
|
|
3898
|
-
spacer:
|
|
3899
|
-
html:
|
|
3900
|
-
countdown:
|
|
3901
|
+
}), qo = {
|
|
3902
|
+
section: _o,
|
|
3903
|
+
title: Dr,
|
|
3904
|
+
paragraph: ur,
|
|
3905
|
+
image: Zn,
|
|
3906
|
+
button: Xt,
|
|
3907
|
+
divider: Fn,
|
|
3908
|
+
video: Ko,
|
|
3909
|
+
social: Do,
|
|
3910
|
+
menu: tr,
|
|
3911
|
+
table: Io,
|
|
3912
|
+
spacer: Ao,
|
|
3913
|
+
html: Bn,
|
|
3914
|
+
countdown: se(() => import("./CountdownBlock-D0IiMliC.js").then((e) => e.n))
|
|
3901
3915
|
};
|
|
3902
|
-
function
|
|
3903
|
-
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } =
|
|
3916
|
+
function Jo(e) {
|
|
3917
|
+
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: a, format: o } = lt(r);
|
|
3904
3918
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
3905
|
-
let { resolvedTheme: c } =
|
|
3919
|
+
let { resolvedTheme: c } = Lt(x(() => t.state.uiTheme)), l = h(n.theme ?? {}), { themeStyles: u } = zt({
|
|
3906
3920
|
themeOverrides: l,
|
|
3907
3921
|
resolvedTheme: c,
|
|
3908
3922
|
extraStyles: e.themeExtraStyles
|
|
3909
|
-
}), d =
|
|
3923
|
+
}), d = St({
|
|
3910
3924
|
content: t.content,
|
|
3911
3925
|
setContent: (e, n) => t.setContent(e, n),
|
|
3912
3926
|
...e.historyOptions
|
|
3913
3927
|
});
|
|
3914
|
-
|
|
3915
|
-
let f =
|
|
3928
|
+
Ot(t, d);
|
|
3929
|
+
let f = wt({
|
|
3916
3930
|
addBlock: t.addBlock,
|
|
3917
3931
|
removeBlock: t.removeBlock,
|
|
3918
3932
|
updateBlock: t.updateBlock,
|
|
3919
3933
|
selectBlock: t.selectBlock,
|
|
3920
3934
|
findBlockLocation: t.findBlockLocation,
|
|
3921
3935
|
blockDefaults: n.blockDefaults
|
|
3922
|
-
}), m =
|
|
3936
|
+
}), m = Et(t), g = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Tt({
|
|
3923
3937
|
content: t.content,
|
|
3924
3938
|
isDirty: () => t.state.isDirty,
|
|
3925
3939
|
...e.autoSaveOptions
|
|
@@ -3927,24 +3941,24 @@ function qo(e) {
|
|
|
3927
3941
|
g && (_ = s(d.isNavigating, (e) => {
|
|
3928
3942
|
e ? g.pause() : g.resume();
|
|
3929
3943
|
}));
|
|
3930
|
-
let v =
|
|
3944
|
+
let v = It(t, {
|
|
3931
3945
|
t: a,
|
|
3932
3946
|
format: o
|
|
3933
|
-
}), y =
|
|
3934
|
-
if (
|
|
3947
|
+
}), y = Ut();
|
|
3948
|
+
if (Gt(y, qo), n.customBlocks?.length) for (let e of n.customBlocks) y.registerCustom(e, Nn);
|
|
3935
3949
|
function b(e) {
|
|
3936
|
-
for (let t of e) y.registerCustom(t,
|
|
3950
|
+
for (let t of e) y.registerCustom(t, Nn);
|
|
3937
3951
|
}
|
|
3938
|
-
let S =
|
|
3952
|
+
let S = Mt();
|
|
3939
3953
|
if (p() && re(S.dispose), e.containerEl) {
|
|
3940
3954
|
let t = e.containerEl;
|
|
3941
|
-
|
|
3955
|
+
Le(document, "pointerdown", (e) => {
|
|
3942
3956
|
let n = t.value;
|
|
3943
3957
|
n && (e.composedPath?.() ?? []).includes(n) && S.claim();
|
|
3944
3958
|
}, { capture: !0 });
|
|
3945
3959
|
}
|
|
3946
3960
|
function C(r) {
|
|
3947
|
-
S.isActive() &&
|
|
3961
|
+
S.isActive() && qt(r, {
|
|
3948
3962
|
history: d,
|
|
3949
3963
|
selectBlock: (e) => t.selectBlock(e),
|
|
3950
3964
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -3953,18 +3967,19 @@ function qo(e) {
|
|
|
3953
3967
|
onBeforeUndo: e.keyboardOptions?.onBeforeUndo
|
|
3954
3968
|
});
|
|
3955
3969
|
}
|
|
3956
|
-
|
|
3970
|
+
Le(document, "keydown", C);
|
|
3957
3971
|
let w = h(null);
|
|
3958
|
-
E(
|
|
3959
|
-
let T =
|
|
3960
|
-
E(
|
|
3961
|
-
let ee = n.
|
|
3972
|
+
E(et, e.editorRoot ?? document), E(Be, w), E(Ue, r), E(rt, t), E(Xe, d), E(Qe, f), E(at, m), E(Ze, i), E(Ve, u), E($e, c), E(Ke, n.blockDefaults), E(nt, y), E(Je, n.customBlocks ?? []);
|
|
3973
|
+
let T = be(n.mergeTags?.syntax);
|
|
3974
|
+
E(ot, n.mergeTags?.tags ?? []), E(qe, T), E(We, n.mergeTags?.onRequest ?? null), E(ct, n.mergeTags?.autocomplete !== !1), E(st, n.onRequestMedia ?? null), E(Ye, n.displayConditions?.conditions ?? []), E(tt, n.displayConditions?.allowCustom ?? !1), E(it, e.capabilities ?? {}), E(Ge, v);
|
|
3975
|
+
let ee = Nt(n.lint) ? null : Pt({
|
|
3962
3976
|
content: t.content,
|
|
3963
|
-
options: n.
|
|
3977
|
+
options: n.lint ?? {},
|
|
3964
3978
|
updateBlock: t.updateBlock,
|
|
3965
|
-
updateSettings: t.updateSettings
|
|
3979
|
+
updateSettings: t.updateSettings,
|
|
3980
|
+
removeBlock: t.removeBlock
|
|
3966
3981
|
});
|
|
3967
|
-
E(
|
|
3982
|
+
E(He, ee);
|
|
3968
3983
|
function D() {
|
|
3969
3984
|
_?.(), ee?.destroy(), g?.destroy(), d.destroy();
|
|
3970
3985
|
}
|
|
@@ -3980,11 +3995,11 @@ function qo(e) {
|
|
|
3980
3995
|
themeOverrides: l,
|
|
3981
3996
|
registry: y,
|
|
3982
3997
|
keyboardReorder: v,
|
|
3983
|
-
|
|
3998
|
+
templateLint: ee,
|
|
3984
3999
|
popoverRoot: w,
|
|
3985
4000
|
registerCustomBlocks: b,
|
|
3986
4001
|
destroy: D
|
|
3987
4002
|
};
|
|
3988
4003
|
}
|
|
3989
4004
|
//#endregion
|
|
3990
|
-
export {
|
|
4005
|
+
export { tn as A, _n as C, cn as D, ln as E, Ft as F, Dt as I, vt as L, $t as M, Xt as N, on as O, Ht as P, vn as S, pn as T, Bn as _, Do as a, wn as b, _o as c, Tr as d, fr as f, Zn as g, tr as h, Ao as i, en as j, an as k, fo as l, ur as m, Ko as n, vo as o, dr as p, Io as r, bo as s, Jo as t, Dr as u, Fn as v, gn as w, Sn as x, Nn as y };
|