@templatical/editor 0.0.4 → 0.0.5
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-CjfhTZwo.js → AiChatSidebar-DwME3f-a.js} +84 -70
- package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-DJvWL1GZ.js} +23 -23
- package/dist/CloudEditor-Fe0ssRgi.js +1082 -0
- package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-DTT0EkZn.js} +1 -1
- package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-DrJhQRXK.js} +131 -131
- package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-DdOht5zn.js} +49 -49
- package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-CiV_jOEM.js} +58 -58
- package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-Bmy6Y1WE.js} +1 -1
- package/dist/ParagraphEditor-CoQ3NlS7.js +688 -0
- package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-CD2ZYq1o.js} +25 -25
- package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-DltsKvhP.js} +1 -1
- package/dist/TemplateScoringPanel-DmnmUE3y.js +254 -0
- package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Dl633j9o.js} +2 -2
- package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-C7fds2Nc.js} +3 -3
- package/dist/{TplModal-CmTSvCY-.js → TplModal-C5_CF-qn.js} +1 -1
- package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-BrKZB10B.js} +1 -1
- package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +2 -0
- package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-C5UQmEgV.js} +16 -16
- package/dist/cdn/chunks/AiFeatureMenu-C5UQmEgV.js.map +1 -0
- package/dist/cdn/chunks/CloudEditor-DeTolKnf.js +1056 -0
- package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +1 -0
- package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-DO1nxSrr.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-DO1nxSrr.js.map} +1 -1
- package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +2 -0
- package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +2 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-ChBr3aXj.js} +52 -52
- package/dist/cdn/chunks/ModuleBrowserModal-ChBr3aXj.js.map +1 -0
- package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DkSvri9H.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DkSvri9H.js.map} +1 -1
- package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js +539 -0
- package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-BrsW1p9s.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-BrsW1p9s.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-CjqKkTEc.js} +24 -24
- package/dist/cdn/chunks/SaveModuleDialog-CjqKkTEc.js.map +1 -0
- package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +2 -0
- package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +2 -0
- package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +2 -0
- package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-C8FYbadT.js} +9 -9
- package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-C8FYbadT.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-5QwYklNq.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-5QwYklNq.js.map} +1 -1
- package/dist/cdn/chunks/{dist-CJcMnY7o.js → dist-BF5c3Dr-.js} +1 -1
- package/dist/cdn/chunks/dist-BGzvIxcJ.js +2 -0
- package/dist/cdn/chunks/dist-CFemF8rI.js +2 -0
- package/dist/cdn/chunks/dist-Co6uFhFK.js +2 -0
- package/dist/cdn/chunks/{dist-BkETaOfw.js → dist-DCikBY9K.js} +1 -1
- package/dist/cdn/chunks/dist-DUILafAC.js +2 -0
- package/dist/cdn/chunks/dist-DghiKH0A.js +2 -0
- package/dist/cdn/chunks/dist-Dw8ckvfK.js +2 -0
- package/dist/cdn/chunks/dist-H07p0KAw.js +2 -0
- package/dist/cdn/chunks/{dist-B878xb_62.js → dist-KYv9v_1z2.js} +11 -11
- package/dist/cdn/chunks/{dist-B878xb_62.js.map → dist-KYv9v_1z2.js.map} +1 -1
- package/dist/cdn/chunks/{dist-DLWHlekl.js → dist-MjnKIc0W.js} +1 -1
- package/dist/cdn/chunks/{dist-CllLxIMQ.js → dist-odp0vGRv.js} +1 -1
- package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-Bj7USRLr.js} +20 -20
- package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-Bj7USRLr.js.map} +1 -1
- package/dist/cdn/chunks/{features-ofOGnSC0.js → features-Ds0XUfte.js} +1235 -1198
- package/dist/cdn/chunks/features-Ds0XUfte.js.map +1 -0
- package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-fWsuSvgd.js} +2 -2
- package/dist/cdn/chunks/{icons-bIb7PBOE.js.map → icons-fWsuSvgd.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-BGQm_OyC.js} +528 -528
- package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-BGQm_OyC.js.map} +1 -1
- package/dist/cdn/chunks/{src-BuW9oYtm.js → src-3i8rPuqd.js} +4 -4
- package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-3i8rPuqd.js.map} +1 -1
- package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
- package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
- package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-Dgijy53u.js} +1224 -1096
- package/dist/cdn/chunks/styles-Dgijy53u.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-BhxaWR8R.js} +2 -2
- package/dist/cdn/chunks/{tiptap-DplY-S-k.js.map → tiptap-BhxaWR8R.js.map} +1 -1
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +110 -139
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{dist-BkIys9zn.js → dist-Ci5lFuUy.js} +1 -1
- package/dist/{extensions-DEjfEFhD.js → extensions-DWx_jj8v.js} +1 -1
- package/dist/{styleConstants-D4SOZGBV.js → styleConstants-Cxw88naD.js} +5 -5
- package/dist/{styles-CgLaxDfu.js → styles-fdXNRqI3.js} +1341 -1213
- package/dist/templatical-editor.css +1 -1
- package/dist/templatical-editor.js +99 -129
- package/dist/templatical-editor.umd.cjs +55 -64
- package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-DUGD6pq_.js} +1054 -1033
- package/package.json +4 -2
- package/dist/CloudEditor-DFyuRxUV.js +0 -926
- package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
- package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
- package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
- package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
- package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
- package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
- package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
- package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
- package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
- package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
- package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
- package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
- package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
- package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
- package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
- package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
- package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
- package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
- package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
- package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, n as r, o as i, r as a, s as o } from "./dist-CG-vEqSU.js";
|
|
2
2
|
import { C as s, S as c, T as l, _ as u, a as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, s as S, u as C, v as ee, w, y as T } from "./keys-C0MQRs8d.js";
|
|
3
3
|
import { t as E } from "./useI18n-D6m7ZUgY.js";
|
|
4
|
-
import { n as D, t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { useAutoSave as
|
|
12
|
-
import { HEADING_LEVEL_FONT_SIZE as
|
|
4
|
+
import { n as D, t as te } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
5
|
+
import { t as ne } from "./message-circle-Blgm6V_h.js";
|
|
6
|
+
import { t as O } from "./trash-2-OwjZ-guZ.js";
|
|
7
|
+
import { t as re } from "./triangle-alert-DOSRIUYZ.js";
|
|
8
|
+
import { t as ie } from "./LoadingTrack-vK8W2PJf.js";
|
|
9
|
+
import { t as ae } from "./useMergeTag-BZ3X0bNr.js";
|
|
10
|
+
import { Fragment as oe, computed as k, createBlock as se, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createTextVNode as ce, createVNode as N, defineAsyncComponent as le, defineComponent as ue, getCurrentScope as de, inject as P, nextTick as fe, normalizeClass as pe, normalizeStyle as F, onBeforeUnmount as me, onMounted as he, onScopeDispose as ge, openBlock as I, provide as L, ref as R, renderList as _e, renderSlot as ve, resolveDynamicComponent as ye, shallowRef as be, toDisplayString as z, triggerRef as xe, unref as B, vShow as Se, watch as Ce, withCtx as we, withDirectives as Te, withKeys as Ee, withModifiers as De } from "vue";
|
|
11
|
+
import { useAutoSave as Oe, useBlockActions as ke, useConditionPreview as Ae, useDataSourceFetch as je, useHistory as Me, useHistoryInterceptor as Ne } from "@templatical/core";
|
|
12
|
+
import { HEADING_LEVEL_FONT_SIZE as Pe, containsMergeTag as Fe, createButtonBlock as Ie, createCountdownBlock as Le, createCustomBlock as Re, createDividerBlock as ze, createHtmlBlock as Be, createImageBlock as Ve, createMenuBlock as He, createParagraphBlock as Ue, createSectionBlock as We, createSocialIconsBlock as Ge, createSpacerBlock as Ke, createTableBlock as qe, createTitleBlock as Je, createVideoBlock as Ye, resolveHtmlLogicMergeTagLabels as Xe, resolveHtmlMergeTagLabels as Ze, resolveSyntax as Qe } from "@templatical/types";
|
|
13
13
|
//#region \0rolldown/runtime.js
|
|
14
|
-
var
|
|
14
|
+
var $e = Object.create, et = Object.defineProperty, tt = Object.getOwnPropertyDescriptor, nt = Object.getOwnPropertyNames, rt = Object.getPrototypeOf, it = Object.prototype.hasOwnProperty, at = (e, t) => () => (e && (t = e(e = 0)), t), ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), st = (e, t) => {
|
|
15
15
|
let n = {};
|
|
16
|
-
for (var r in e)
|
|
16
|
+
for (var r in e) et(n, r, {
|
|
17
17
|
get: e[r],
|
|
18
18
|
enumerable: !0
|
|
19
19
|
});
|
|
20
|
-
return t ||
|
|
21
|
-
},
|
|
22
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i =
|
|
20
|
+
return t || et(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
21
|
+
}, ct = (e, t, n, r) => {
|
|
22
|
+
if (t && typeof t == "object" || typeof t == "function") for (var i = nt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !it.call(e, s) && s !== n && et(e, s, {
|
|
23
23
|
get: ((e) => t[e]).bind(null, s),
|
|
24
|
-
enumerable: !(r =
|
|
24
|
+
enumerable: !(r = tt(t, s)) || r.enumerable
|
|
25
25
|
});
|
|
26
26
|
return e;
|
|
27
|
-
},
|
|
27
|
+
}, lt = (e, t, n) => (n = e == null ? {} : $e(rt(e)), ct(t || !e || !e.__esModule ? et(n, "default", {
|
|
28
28
|
value: e,
|
|
29
29
|
enumerable: !0
|
|
30
|
-
}) : n, e)),
|
|
30
|
+
}) : n, e)), ut = (e) => it.call(e, "module.exports") ? e["module.exports"] : ct(et({}, "__esModule", { value: !0 }), e), dt = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
31
31
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
32
32
|
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/utils/blockTypeLabels.ts
|
|
36
|
-
function
|
|
36
|
+
function ft(e, t) {
|
|
37
37
|
return t.blocks[e] ?? e;
|
|
38
38
|
}
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/composables/useKeyboardReorder.ts
|
|
41
|
-
function
|
|
42
|
-
let n =
|
|
41
|
+
function pt(e, t) {
|
|
42
|
+
let n = R(null), r = R(""), i = null;
|
|
43
43
|
function a(t) {
|
|
44
44
|
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
45
45
|
if (r !== -1) return {
|
|
@@ -65,7 +65,7 @@ function ft(e, t) {
|
|
|
65
65
|
let r = a(n);
|
|
66
66
|
if (!r) return "";
|
|
67
67
|
let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
|
|
68
|
-
return i ?
|
|
68
|
+
return i ? ft(i.type, t.t) : "";
|
|
69
69
|
}
|
|
70
70
|
function s(t, n) {
|
|
71
71
|
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
@@ -134,13 +134,13 @@ function ft(e, t) {
|
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region src/composables/useUiTheme.ts
|
|
137
|
-
function
|
|
137
|
+
function mt(e) {
|
|
138
138
|
let t = n("(prefers-color-scheme: dark)");
|
|
139
|
-
return { resolvedTheme:
|
|
139
|
+
return { resolvedTheme: k(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region src/composables/useThemeStyles.ts
|
|
143
|
-
var
|
|
143
|
+
var ht = {
|
|
144
144
|
bg: "--tpl-bg",
|
|
145
145
|
bgElevated: "--tpl-bg-elevated",
|
|
146
146
|
bgHover: "--tpl-bg-hover",
|
|
@@ -164,10 +164,10 @@ var mt = {
|
|
|
164
164
|
dangerLight: "--tpl-danger-light",
|
|
165
165
|
canvasBg: "--tpl-canvas-bg"
|
|
166
166
|
};
|
|
167
|
-
function
|
|
168
|
-
return { themeStyles:
|
|
167
|
+
function gt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
168
|
+
return { themeStyles: k(() => {
|
|
169
169
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
170
|
-
if (a) for (let [e, t] of Object.entries(
|
|
170
|
+
if (a) for (let [e, t] of Object.entries(ht)) {
|
|
171
171
|
let n = a[e];
|
|
172
172
|
n && (r[t] = n);
|
|
173
173
|
}
|
|
@@ -175,16 +175,36 @@ function ht({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
175
175
|
}) };
|
|
176
176
|
}
|
|
177
177
|
//#endregion
|
|
178
|
+
//#region src/utils/logger.ts
|
|
179
|
+
var _t = "[Templatical]";
|
|
180
|
+
function vt() {
|
|
181
|
+
return typeof process < "u" && process.env.NODE_ENV === "production";
|
|
182
|
+
}
|
|
183
|
+
var yt = {
|
|
184
|
+
warn(...e) {
|
|
185
|
+
console.warn(_t, ...e);
|
|
186
|
+
},
|
|
187
|
+
error(...e) {
|
|
188
|
+
console.error(_t, ...e);
|
|
189
|
+
},
|
|
190
|
+
debug(...e) {
|
|
191
|
+
vt() || console.debug(_t, ...e);
|
|
192
|
+
},
|
|
193
|
+
info(...e) {
|
|
194
|
+
vt() || console.info(_t, ...e);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
//#endregion
|
|
178
198
|
//#region src/composables/useBlockRegistry.ts
|
|
179
|
-
function
|
|
180
|
-
let e =
|
|
199
|
+
function bt() {
|
|
200
|
+
let e = be(/* @__PURE__ */ new Map());
|
|
181
201
|
function t(t, n) {
|
|
182
|
-
e.value.set(t, n),
|
|
202
|
+
e.value.set(t, n), xe(e);
|
|
183
203
|
}
|
|
184
204
|
function n(t, n) {
|
|
185
205
|
let r = `custom:${t.type}`, i = {
|
|
186
206
|
component: n,
|
|
187
|
-
createBlock: () =>
|
|
207
|
+
createBlock: () => Re(t),
|
|
188
208
|
sidebarItem: {
|
|
189
209
|
type: r,
|
|
190
210
|
label: t.name,
|
|
@@ -194,7 +214,7 @@ function gt() {
|
|
|
194
214
|
},
|
|
195
215
|
definition: t
|
|
196
216
|
};
|
|
197
|
-
e.value.set(r, i),
|
|
217
|
+
e.value.set(r, i), xe(e);
|
|
198
218
|
}
|
|
199
219
|
function r(t) {
|
|
200
220
|
if (t.type === "custom") {
|
|
@@ -228,7 +248,7 @@ function gt() {
|
|
|
228
248
|
strictFilters: !1
|
|
229
249
|
}).parseAndRender(t.template, e.fieldValues);
|
|
230
250
|
} catch (t) {
|
|
231
|
-
return
|
|
251
|
+
return yt.error(`Failed to render custom block "${e.customType}":`, t), s(`Render error: ${e.customType}`);
|
|
232
252
|
}
|
|
233
253
|
}
|
|
234
254
|
function l(t) {
|
|
@@ -247,75 +267,75 @@ function gt() {
|
|
|
247
267
|
}
|
|
248
268
|
//#endregion
|
|
249
269
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
250
|
-
var
|
|
270
|
+
var xt = [
|
|
251
271
|
{
|
|
252
272
|
type: "section",
|
|
253
273
|
label: "Section",
|
|
254
|
-
createBlock:
|
|
274
|
+
createBlock: We
|
|
255
275
|
},
|
|
256
276
|
{
|
|
257
277
|
type: "title",
|
|
258
278
|
label: "Title",
|
|
259
|
-
createBlock:
|
|
279
|
+
createBlock: Je
|
|
260
280
|
},
|
|
261
281
|
{
|
|
262
282
|
type: "paragraph",
|
|
263
283
|
label: "Paragraph",
|
|
264
|
-
createBlock:
|
|
284
|
+
createBlock: Ue
|
|
265
285
|
},
|
|
266
286
|
{
|
|
267
287
|
type: "image",
|
|
268
288
|
label: "Image",
|
|
269
|
-
createBlock:
|
|
289
|
+
createBlock: Ve
|
|
270
290
|
},
|
|
271
291
|
{
|
|
272
292
|
type: "button",
|
|
273
293
|
label: "Button",
|
|
274
|
-
createBlock:
|
|
294
|
+
createBlock: Ie
|
|
275
295
|
},
|
|
276
296
|
{
|
|
277
297
|
type: "divider",
|
|
278
298
|
label: "Divider",
|
|
279
|
-
createBlock:
|
|
299
|
+
createBlock: ze
|
|
280
300
|
},
|
|
281
301
|
{
|
|
282
302
|
type: "video",
|
|
283
303
|
label: "Video",
|
|
284
|
-
createBlock:
|
|
304
|
+
createBlock: Ye
|
|
285
305
|
},
|
|
286
306
|
{
|
|
287
307
|
type: "social",
|
|
288
308
|
label: "Social",
|
|
289
|
-
createBlock:
|
|
309
|
+
createBlock: Ge
|
|
290
310
|
},
|
|
291
311
|
{
|
|
292
312
|
type: "menu",
|
|
293
313
|
label: "Menu",
|
|
294
|
-
createBlock:
|
|
314
|
+
createBlock: He
|
|
295
315
|
},
|
|
296
316
|
{
|
|
297
317
|
type: "table",
|
|
298
318
|
label: "Table",
|
|
299
|
-
createBlock:
|
|
319
|
+
createBlock: qe
|
|
300
320
|
},
|
|
301
321
|
{
|
|
302
322
|
type: "spacer",
|
|
303
323
|
label: "Spacer",
|
|
304
|
-
createBlock:
|
|
324
|
+
createBlock: Ke
|
|
305
325
|
},
|
|
306
326
|
{
|
|
307
327
|
type: "html",
|
|
308
328
|
label: "HTML",
|
|
309
|
-
createBlock:
|
|
329
|
+
createBlock: Be
|
|
310
330
|
},
|
|
311
331
|
{
|
|
312
332
|
type: "countdown",
|
|
313
333
|
label: "Countdown",
|
|
314
|
-
createBlock:
|
|
334
|
+
createBlock: Le
|
|
315
335
|
}
|
|
316
336
|
];
|
|
317
|
-
function
|
|
318
|
-
for (let n of
|
|
337
|
+
function St(e, t) {
|
|
338
|
+
for (let n of xt) {
|
|
319
339
|
let r = t[n.type];
|
|
320
340
|
r && e.registerBuiltIn(n.type, {
|
|
321
341
|
component: r,
|
|
@@ -330,18 +350,18 @@ function vt(e, t) {
|
|
|
330
350
|
}
|
|
331
351
|
//#endregion
|
|
332
352
|
//#region src/utils/keyboardShortcuts.ts
|
|
333
|
-
function
|
|
353
|
+
function Ct(e) {
|
|
334
354
|
let t = e.target;
|
|
335
355
|
return t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.tagName === "SELECT";
|
|
336
356
|
}
|
|
337
|
-
function
|
|
357
|
+
function wt(e, t) {
|
|
338
358
|
let n = e.metaKey || e.ctrlKey;
|
|
339
359
|
if (n && e.key === "s") {
|
|
340
360
|
e.preventDefault(), t.onSave?.();
|
|
341
361
|
return;
|
|
342
362
|
}
|
|
343
363
|
if (n && e.key.toLowerCase() === "z") {
|
|
344
|
-
if (
|
|
364
|
+
if (Ct(e)) return;
|
|
345
365
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
346
366
|
return;
|
|
347
367
|
}
|
|
@@ -349,18 +369,18 @@ function bt(e, t) {
|
|
|
349
369
|
t.selectBlock(null);
|
|
350
370
|
return;
|
|
351
371
|
}
|
|
352
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
372
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !Ct(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
353
373
|
}
|
|
354
374
|
//#endregion
|
|
355
375
|
//#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
|
|
356
|
-
var
|
|
376
|
+
var Tt = { class: "tpl:text-center" }, Et = ["href"], Dt = /* @__PURE__ */ ue({
|
|
357
377
|
__name: "ButtonBlock",
|
|
358
378
|
props: {
|
|
359
379
|
block: {},
|
|
360
380
|
viewport: {}
|
|
361
381
|
},
|
|
362
382
|
setup(e) {
|
|
363
|
-
let t = e, n =
|
|
383
|
+
let t = e, n = k(() => {
|
|
364
384
|
let e = {
|
|
365
385
|
display: "inline-block",
|
|
366
386
|
padding: `${t.block.buttonPadding.top}px ${t.block.buttonPadding.right}px ${t.block.buttonPadding.bottom}px ${t.block.buttonPadding.left}px`,
|
|
@@ -374,35 +394,35 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
374
394
|
};
|
|
375
395
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
376
396
|
});
|
|
377
|
-
return (t, r) => (
|
|
397
|
+
return (t, r) => (I(), j("div", Tt, [M("a", {
|
|
378
398
|
href: e.block.url || "#",
|
|
379
|
-
style:
|
|
399
|
+
style: F(n.value),
|
|
380
400
|
class: "tpl:cursor-default",
|
|
381
|
-
onClick: r[0] ||=
|
|
382
|
-
},
|
|
401
|
+
onClick: r[0] ||= De(() => {}, ["prevent"])
|
|
402
|
+
}, z(e.block.text), 13, Et)]));
|
|
383
403
|
}
|
|
384
|
-
}),
|
|
404
|
+
}), Ot = {
|
|
385
405
|
key: 0,
|
|
386
406
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
387
|
-
},
|
|
407
|
+
}, kt = {
|
|
388
408
|
key: 1,
|
|
389
409
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
390
|
-
},
|
|
410
|
+
}, At = { class: "tpl:text-center" }, jt = /* @__PURE__ */ ue({
|
|
391
411
|
__name: "CountdownBlock",
|
|
392
412
|
props: {
|
|
393
413
|
block: {},
|
|
394
414
|
viewport: {}
|
|
395
415
|
},
|
|
396
416
|
setup(e) {
|
|
397
|
-
let t = e, { t: n } = E(), r =
|
|
417
|
+
let t = e, { t: n } = E(), r = R(Date.now());
|
|
398
418
|
i(() => {
|
|
399
419
|
r.value = Date.now();
|
|
400
420
|
}, 1e3);
|
|
401
|
-
let a =
|
|
421
|
+
let a = k(() => {
|
|
402
422
|
if (!t.block.targetDate) return null;
|
|
403
423
|
let e = new Date(t.block.targetDate);
|
|
404
424
|
return isNaN(e.getTime()) ? null : e.getTime();
|
|
405
|
-
}), o =
|
|
425
|
+
}), o = k(() => a.value ? r.value >= a.value : !1), s = k(() => {
|
|
406
426
|
if (!a.value || o.value) return {
|
|
407
427
|
days: 0,
|
|
408
428
|
hours: 0,
|
|
@@ -416,7 +436,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
416
436
|
minutes: Math.floor(t % 3600 / 60),
|
|
417
437
|
seconds: t % 60
|
|
418
438
|
};
|
|
419
|
-
}), c =
|
|
439
|
+
}), c = k(() => {
|
|
420
440
|
let e = [];
|
|
421
441
|
return t.block.showDays && e.push({
|
|
422
442
|
value: String(s.value.days).padStart(2, "0"),
|
|
@@ -431,44 +451,44 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
431
451
|
value: String(s.value.seconds).padStart(2, "0"),
|
|
432
452
|
label: t.block.labelSeconds
|
|
433
453
|
}), e;
|
|
434
|
-
}), l =
|
|
454
|
+
}), l = k(() => ({
|
|
435
455
|
backgroundColor: t.block.backgroundColor,
|
|
436
456
|
fontFamily: t.block.fontFamily || "inherit"
|
|
437
|
-
})), u =
|
|
457
|
+
})), u = k(() => ({
|
|
438
458
|
fontSize: `${t.block.digitFontSize}px`,
|
|
439
459
|
fontWeight: "bold",
|
|
440
460
|
color: t.block.digitColor,
|
|
441
461
|
lineHeight: "1.2"
|
|
442
|
-
})), d =
|
|
462
|
+
})), d = k(() => ({
|
|
443
463
|
fontSize: `${t.block.labelFontSize}px`,
|
|
444
464
|
color: t.block.labelColor,
|
|
445
465
|
marginTop: "4px"
|
|
446
|
-
})), f =
|
|
466
|
+
})), f = k(() => ({
|
|
447
467
|
fontSize: `${t.block.digitFontSize}px`,
|
|
448
468
|
color: t.block.digitColor,
|
|
449
469
|
fontFamily: t.block.fontFamily || "inherit"
|
|
450
470
|
}));
|
|
451
|
-
return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (
|
|
471
|
+
return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (I(), j("div", kt, z(B(n).countdown.hidden), 1)) : o.value ? (I(), j("div", {
|
|
452
472
|
key: 2,
|
|
453
|
-
style:
|
|
473
|
+
style: F(l.value),
|
|
454
474
|
class: "tpl:py-4 tpl:text-center"
|
|
455
|
-
}, [M("span", { style:
|
|
475
|
+
}, [M("span", { style: F({
|
|
456
476
|
fontSize: `${e.block.digitFontSize}px`,
|
|
457
477
|
color: e.block.digitColor
|
|
458
|
-
}) },
|
|
478
|
+
}) }, z(e.block.expiredMessage), 5)], 4)) : (I(), j("div", {
|
|
459
479
|
key: 3,
|
|
460
|
-
style:
|
|
480
|
+
style: F(l.value),
|
|
461
481
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
462
|
-
}, [(
|
|
482
|
+
}, [(I(!0), j(oe, null, _e(c.value, (t, n) => (I(), j(oe, { key: t.label }, [n > 0 ? (I(), j("span", {
|
|
463
483
|
key: 0,
|
|
464
|
-
style:
|
|
484
|
+
style: F(f.value),
|
|
465
485
|
class: "tpl:self-start"
|
|
466
|
-
},
|
|
486
|
+
}, z(e.block.separator), 5)) : A("", !0), M("div", At, [M("div", { style: F(u.value) }, z(t.value), 5), M("div", { style: F(d.value) }, z(t.label), 5)])], 64))), 128))], 4)) : (I(), j("div", Ot, z(B(n).countdown.setDate), 1));
|
|
467
487
|
}
|
|
468
|
-
}),
|
|
488
|
+
}), Mt = D("bookmark", [["path", {
|
|
469
489
|
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",
|
|
470
490
|
key: "oz39mx"
|
|
471
|
-
}]]),
|
|
491
|
+
}]]), Nt = D("box", [
|
|
472
492
|
["path", {
|
|
473
493
|
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",
|
|
474
494
|
key: "hh9hay"
|
|
@@ -481,13 +501,13 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
481
501
|
d: "M12 22V12",
|
|
482
502
|
key: "d0xqtd"
|
|
483
503
|
}]
|
|
484
|
-
]),
|
|
504
|
+
]), Pt = D("code", [["path", {
|
|
485
505
|
d: "m16 18 6-6-6-6",
|
|
486
506
|
key: "eg8j8"
|
|
487
507
|
}], ["path", {
|
|
488
508
|
d: "m8 6-6 6 6 6",
|
|
489
509
|
key: "ppft3o"
|
|
490
|
-
}]]),
|
|
510
|
+
}]]), Ft = D("copy", [["rect", {
|
|
491
511
|
width: "14",
|
|
492
512
|
height: "14",
|
|
493
513
|
x: "8",
|
|
@@ -498,7 +518,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
498
518
|
}], ["path", {
|
|
499
519
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
500
520
|
key: "zix9uf"
|
|
501
|
-
}]]),
|
|
521
|
+
}]]), It = D("eye-off", [
|
|
502
522
|
["path", {
|
|
503
523
|
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",
|
|
504
524
|
key: "ct8e1f"
|
|
@@ -515,10 +535,10 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
515
535
|
d: "m2 2 20 20",
|
|
516
536
|
key: "1ooewy"
|
|
517
537
|
}]
|
|
518
|
-
]),
|
|
538
|
+
]), Lt = D("funnel", [["path", {
|
|
519
539
|
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",
|
|
520
540
|
key: "sc7q7i"
|
|
521
|
-
}]]),
|
|
541
|
+
}]]), Rt = D("grip-vertical", [
|
|
522
542
|
["circle", {
|
|
523
543
|
cx: "9",
|
|
524
544
|
cy: "12",
|
|
@@ -555,7 +575,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
555
575
|
r: "1",
|
|
556
576
|
key: "f4zoj3"
|
|
557
577
|
}]
|
|
558
|
-
]),
|
|
578
|
+
]), zt = D("image", [
|
|
559
579
|
["rect", {
|
|
560
580
|
width: "18",
|
|
561
581
|
height: "18",
|
|
@@ -575,13 +595,13 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
575
595
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
576
596
|
key: "1xmnt7"
|
|
577
597
|
}]
|
|
578
|
-
]),
|
|
598
|
+
]), Bt = D("navigation", [["polygon", {
|
|
579
599
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
580
600
|
key: "1ltx0t"
|
|
581
|
-
}]]),
|
|
601
|
+
}]]), Vt = D("puzzle", [["path", {
|
|
582
602
|
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",
|
|
583
603
|
key: "w46dr5"
|
|
584
|
-
}]]),
|
|
604
|
+
}]]), Ht = D("share-2", [
|
|
585
605
|
["circle", {
|
|
586
606
|
cx: "18",
|
|
587
607
|
cy: "5",
|
|
@@ -614,7 +634,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
614
634
|
y2: "10.49",
|
|
615
635
|
key: "1n3mei"
|
|
616
636
|
}]
|
|
617
|
-
]),
|
|
637
|
+
]), Ut = D("table", [
|
|
618
638
|
["path", {
|
|
619
639
|
d: "M12 3v18",
|
|
620
640
|
key: "108xh3"
|
|
@@ -635,7 +655,7 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
635
655
|
d: "M3 15h18",
|
|
636
656
|
key: "5xshup"
|
|
637
657
|
}]
|
|
638
|
-
]),
|
|
658
|
+
]), Wt = D("video", [["path", {
|
|
639
659
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
640
660
|
key: "ftymec"
|
|
641
661
|
}], ["rect", {
|
|
@@ -645,44 +665,44 @@ var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
|
645
665
|
height: "12",
|
|
646
666
|
rx: "2",
|
|
647
667
|
key: "158x01"
|
|
648
|
-
}]]),
|
|
668
|
+
}]]), Gt = ["innerHTML"], Kt = [
|
|
649
669
|
"src",
|
|
650
670
|
"width",
|
|
651
671
|
"height"
|
|
652
|
-
],
|
|
672
|
+
], qt = /* @__PURE__ */ ue({
|
|
653
673
|
__name: "CustomBlockIcon",
|
|
654
674
|
props: {
|
|
655
675
|
icon: {},
|
|
656
676
|
size: {}
|
|
657
677
|
},
|
|
658
678
|
setup(e) {
|
|
659
|
-
let t = e, n =
|
|
660
|
-
return (t, a) => r.value ? (
|
|
679
|
+
let t = e, n = k(() => t.size ?? 20), r = k(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = k(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
|
|
680
|
+
return (t, a) => r.value ? (I(), j("span", {
|
|
661
681
|
key: 0,
|
|
662
682
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
663
|
-
style:
|
|
683
|
+
style: F({
|
|
664
684
|
width: `${n.value}px`,
|
|
665
685
|
height: `${n.value}px`
|
|
666
686
|
}),
|
|
667
687
|
innerHTML: e.icon
|
|
668
|
-
}, null, 12,
|
|
688
|
+
}, null, 12, Gt)) : i.value ? (I(), j("img", {
|
|
669
689
|
key: 1,
|
|
670
690
|
src: e.icon,
|
|
671
691
|
width: n.value,
|
|
672
692
|
height: n.value,
|
|
673
693
|
class: "tpl:inline-block",
|
|
674
694
|
alt: ""
|
|
675
|
-
}, null, 8,
|
|
695
|
+
}, null, 8, Kt)) : (I(), se(B(Nt), {
|
|
676
696
|
key: 2,
|
|
677
697
|
size: n.value,
|
|
678
698
|
"stroke-width": 1.5
|
|
679
699
|
}, null, 8, ["size"]));
|
|
680
700
|
}
|
|
681
|
-
}),
|
|
682
|
-
function
|
|
701
|
+
}), Jt = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
702
|
+
function Yt(e, t) {
|
|
683
703
|
let n = null, r = null;
|
|
684
704
|
function i() {
|
|
685
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
705
|
+
return e.value ? Array.from(e.value.querySelectorAll(Jt)).filter((e) => e.offsetParent !== null) : [];
|
|
686
706
|
}
|
|
687
707
|
function o(e) {
|
|
688
708
|
if (e.key !== "Tab") return;
|
|
@@ -700,18 +720,18 @@ function Gt(e, t) {
|
|
|
700
720
|
function c() {
|
|
701
721
|
r?.(), r = null, n && n.focus && (n.focus(), n = null);
|
|
702
722
|
}
|
|
703
|
-
let l =
|
|
723
|
+
let l = Ce([t, e], ([e, t]) => {
|
|
704
724
|
e && t ? s() : c();
|
|
705
725
|
}, { flush: "post" });
|
|
706
|
-
|
|
726
|
+
ge(() => {
|
|
707
727
|
l(), c();
|
|
708
728
|
});
|
|
709
729
|
}
|
|
710
730
|
//#endregion
|
|
711
731
|
//#region src/composables/useEmoji.ts
|
|
712
|
-
function
|
|
713
|
-
let [e, n] = t(!1), r =
|
|
714
|
-
|
|
732
|
+
function Xt() {
|
|
733
|
+
let [e, n] = t(!1), r = be([]);
|
|
734
|
+
Ce(e, async (e) => {
|
|
715
735
|
if (e && r.value.length === 0) {
|
|
716
736
|
let { emojiCategories: e } = await import("./emojiData-BfWQS72m.js");
|
|
717
737
|
r.value = e;
|
|
@@ -732,8 +752,8 @@ function Kt() {
|
|
|
732
752
|
}
|
|
733
753
|
//#endregion
|
|
734
754
|
//#region src/composables/useDragDrop.ts
|
|
735
|
-
function
|
|
736
|
-
let { onBlockMove: t, onBlockAdd: n } = e, r =
|
|
755
|
+
function Zt(e) {
|
|
756
|
+
let { onBlockMove: t, onBlockAdd: n } = e, r = R(!1), i = R(null), a = R(null);
|
|
737
757
|
function o(e) {
|
|
738
758
|
r.value = !0, i.value = e;
|
|
739
759
|
}
|
|
@@ -782,7 +802,7 @@ function qt(e) {
|
|
|
782
802
|
}
|
|
783
803
|
//#endregion
|
|
784
804
|
//#region src/composables/useFonts.ts
|
|
785
|
-
var
|
|
805
|
+
var Qt = [
|
|
786
806
|
{
|
|
787
807
|
value: "Arial",
|
|
788
808
|
label: "Arial"
|
|
@@ -811,7 +831,7 @@ var Jt = [
|
|
|
811
831
|
value: "Courier New",
|
|
812
832
|
label: "Courier New"
|
|
813
833
|
}
|
|
814
|
-
],
|
|
834
|
+
], $t = {
|
|
815
835
|
arial: "Arial, sans-serif",
|
|
816
836
|
helvetica: "Helvetica, sans-serif",
|
|
817
837
|
georgia: "Georgia, serif",
|
|
@@ -819,14 +839,14 @@ var Jt = [
|
|
|
819
839
|
verdana: "Verdana, sans-serif",
|
|
820
840
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
821
841
|
"courier new": "'Courier New', monospace"
|
|
822
|
-
},
|
|
823
|
-
function
|
|
824
|
-
let t =
|
|
842
|
+
}, en = "Arial, sans-serif";
|
|
843
|
+
function tn(e) {
|
|
844
|
+
let t = R(e?.customFonts ?? []), n = R(!0), r = R(!1), i = k(() => e?.defaultFallback ?? en);
|
|
825
845
|
function a(e) {
|
|
826
846
|
n.value = e;
|
|
827
847
|
}
|
|
828
|
-
let o =
|
|
829
|
-
let e = [...
|
|
848
|
+
let o = k(() => {
|
|
849
|
+
let e = [...Qt];
|
|
830
850
|
if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
|
|
831
851
|
let r = t.value.map((e) => ({
|
|
832
852
|
value: e.name,
|
|
@@ -839,19 +859,19 @@ function Zt(e) {
|
|
|
839
859
|
return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
840
860
|
}
|
|
841
861
|
function c(e) {
|
|
842
|
-
return
|
|
862
|
+
return Qt.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
843
863
|
}
|
|
844
864
|
function l() {
|
|
845
865
|
if (e?.defaultFont) {
|
|
846
|
-
if (!n.value && !c(e.defaultFont)) return
|
|
866
|
+
if (!n.value && !c(e.defaultFont)) return en;
|
|
847
867
|
if (s(e.defaultFont)) {
|
|
848
868
|
let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
849
869
|
if (t) return t.value;
|
|
850
870
|
}
|
|
851
871
|
}
|
|
852
|
-
return
|
|
872
|
+
return en;
|
|
853
873
|
}
|
|
854
|
-
let u =
|
|
874
|
+
let u = k(() => l());
|
|
855
875
|
function d(e) {
|
|
856
876
|
if (!e) return i.value;
|
|
857
877
|
let n = t.value.find((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
@@ -859,7 +879,7 @@ function Zt(e) {
|
|
|
859
879
|
let e = n.fallback ?? i.value;
|
|
860
880
|
return `'${n.name}', ${e}`;
|
|
861
881
|
}
|
|
862
|
-
return
|
|
882
|
+
return $t[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
|
|
863
883
|
}
|
|
864
884
|
let f = [];
|
|
865
885
|
async function p() {
|
|
@@ -875,7 +895,7 @@ function Zt(e) {
|
|
|
875
895
|
t.onload = () => n(), t.onerror = () => r(/* @__PURE__ */ Error(`Failed to load font: ${e.name}`)), document.head.appendChild(t);
|
|
876
896
|
}), f.push(t);
|
|
877
897
|
} catch (t) {
|
|
878
|
-
|
|
898
|
+
yt.warn(`Failed to load custom font "${e.name}":`, t);
|
|
879
899
|
}
|
|
880
900
|
});
|
|
881
901
|
await Promise.allSettled(e), r.value = !0;
|
|
@@ -884,7 +904,7 @@ function Zt(e) {
|
|
|
884
904
|
for (let e of f) e.remove();
|
|
885
905
|
f.length = 0;
|
|
886
906
|
}
|
|
887
|
-
return
|
|
907
|
+
return de() && ge(m), {
|
|
888
908
|
fonts: o,
|
|
889
909
|
defaultFont: u,
|
|
890
910
|
defaultFallback: i,
|
|
@@ -900,9 +920,9 @@ function Zt(e) {
|
|
|
900
920
|
}
|
|
901
921
|
//#endregion
|
|
902
922
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
903
|
-
function
|
|
904
|
-
let t =
|
|
905
|
-
|
|
923
|
+
function nn(e) {
|
|
924
|
+
let t = R(!1), n = R(""), r = R(null);
|
|
925
|
+
Yt(r, t);
|
|
906
926
|
function i() {
|
|
907
927
|
n.value = e.value?.getAttributes("link").href || "", t.value = !0;
|
|
908
928
|
}
|
|
@@ -935,8 +955,8 @@ function Qt(e) {
|
|
|
935
955
|
}
|
|
936
956
|
//#endregion
|
|
937
957
|
//#region src/composables/useRichTextEditor.ts
|
|
938
|
-
function
|
|
939
|
-
let t =
|
|
958
|
+
function rn(e) {
|
|
959
|
+
let t = P(p, null), { mergeTags: n, isEnabled: r, isRequesting: i, requestMergeTag: s, syntax: c } = ae(), l = be(null), { showLinkDialog: u, linkUrl: d, linkDialogRef: f, openLinkDialog: m, insertLink: h, removeLink: g, closeLinkDialog: _, handleLinkKeydown: v } = nn(l), { start: y, stop: b } = o(() => l.value?.commands.focus("end"), 0, { immediate: !1 }), x = be(null), S = R(!0), C = R(null);
|
|
940
960
|
async function ee() {
|
|
941
961
|
C.value = null, S.value = !0;
|
|
942
962
|
try {
|
|
@@ -955,14 +975,14 @@ function $t(e) {
|
|
|
955
975
|
}
|
|
956
976
|
}), S.value = !1, y();
|
|
957
977
|
} catch (t) {
|
|
958
|
-
|
|
978
|
+
yt.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), C.value = t instanceof Error ? t.message : "Failed to load editor", S.value = !1;
|
|
959
979
|
}
|
|
960
980
|
}
|
|
961
981
|
function w() {
|
|
962
982
|
l.value?.destroy(), l.value = null, ee();
|
|
963
983
|
}
|
|
964
984
|
ee();
|
|
965
|
-
let T =
|
|
985
|
+
let T = Ce(() => e.blockContent(), (e) => {
|
|
966
986
|
l.value && l.value.getHTML() !== e && l.value.commands.setContent(e, { emitUpdate: !1 });
|
|
967
987
|
});
|
|
968
988
|
function E(t) {
|
|
@@ -970,7 +990,7 @@ function $t(e) {
|
|
|
970
990
|
let n = t.target;
|
|
971
991
|
e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone();
|
|
972
992
|
}
|
|
973
|
-
a(document, "mousedown", E),
|
|
993
|
+
a(document, "mousedown", E), me(() => {
|
|
974
994
|
T(), b(), l.value?.destroy();
|
|
975
995
|
});
|
|
976
996
|
async function D() {
|
|
@@ -1003,20 +1023,20 @@ function $t(e) {
|
|
|
1003
1023
|
}
|
|
1004
1024
|
//#endregion
|
|
1005
1025
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1006
|
-
var
|
|
1026
|
+
var an = { class: "tpl:w-full" }, on = {
|
|
1007
1027
|
key: 0,
|
|
1008
1028
|
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)]"
|
|
1009
|
-
},
|
|
1029
|
+
}, sn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, cn = {
|
|
1010
1030
|
key: 1,
|
|
1011
1031
|
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)]"
|
|
1012
|
-
},
|
|
1032
|
+
}, ln = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, un = {
|
|
1013
1033
|
key: 2,
|
|
1014
1034
|
class: "tpl:relative"
|
|
1015
|
-
},
|
|
1035
|
+
}, dn = ["innerHTML"], fn = {
|
|
1016
1036
|
key: 0,
|
|
1017
1037
|
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]",
|
|
1018
1038
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
1019
|
-
},
|
|
1039
|
+
}, pn = /* @__PURE__ */ ue({
|
|
1020
1040
|
__name: "CustomBlock",
|
|
1021
1041
|
props: {
|
|
1022
1042
|
block: {},
|
|
@@ -1024,9 +1044,9 @@ var en = { class: "tpl:w-full" }, tn = {
|
|
|
1024
1044
|
},
|
|
1025
1045
|
emits: ["fetchData"],
|
|
1026
1046
|
setup(t, { emit: n }) {
|
|
1027
|
-
let r = t, i = n, { t: a } = E(), o =
|
|
1047
|
+
let r = t, i = n, { t: a } = E(), o = P(b, null), s = R(""), c = R(!1), l = k(() => o?.getDefinition(r.block.customType)), u = k(() => !!l.value), { isFetching: d, fetch: f, needsFetch: p, hasDataSource: m } = je({
|
|
1028
1048
|
definition: l,
|
|
1029
|
-
block:
|
|
1049
|
+
block: k(() => r.block),
|
|
1030
1050
|
onUpdate: (e, t) => {
|
|
1031
1051
|
i("fetchData", {
|
|
1032
1052
|
fieldValues: e,
|
|
@@ -1046,73 +1066,73 @@ var en = { class: "tpl:w-full" }, tn = {
|
|
|
1046
1066
|
}
|
|
1047
1067
|
}
|
|
1048
1068
|
let g = e(h, 150);
|
|
1049
|
-
return
|
|
1069
|
+
return he(() => {
|
|
1050
1070
|
h();
|
|
1051
|
-
}),
|
|
1071
|
+
}), Ce(() => r.block.fieldValues, () => {
|
|
1052
1072
|
g();
|
|
1053
|
-
}, { deep: !0 }), (e, t) => (
|
|
1073
|
+
}, { deep: !0 }), (e, t) => (I(), j("div", an, [u.value ? c.value ? (I(), j("div", cn, [N(B(re), {
|
|
1054
1074
|
size: 24,
|
|
1055
1075
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
1056
|
-
}), M("span",
|
|
1076
|
+
}), M("span", ln, z(B(a).customBlocks.renderError), 1)])) : (I(), j("div", un, [M("div", { innerHTML: s.value }, null, 8, dn), B(m) && B(p) ? (I(), j("div", fn, [B(d) ? (I(), se(ie, {
|
|
1057
1077
|
key: 1,
|
|
1058
1078
|
class: "tpl:w-48"
|
|
1059
|
-
})) : (
|
|
1079
|
+
})) : (I(), j("button", {
|
|
1060
1080
|
key: 0,
|
|
1061
1081
|
type: "button",
|
|
1062
1082
|
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)]",
|
|
1063
|
-
onClick: t[0] ||=
|
|
1064
|
-
}, [l.value?.icon ? (
|
|
1083
|
+
onClick: t[0] ||= De((...e) => B(f) && B(f)(...e), ["stop"])
|
|
1084
|
+
}, [l.value?.icon ? (I(), se(qt, {
|
|
1065
1085
|
key: 0,
|
|
1066
1086
|
icon: l.value.icon,
|
|
1067
1087
|
size: 16
|
|
1068
|
-
}, null, 8, ["icon"])) :
|
|
1088
|
+
}, null, 8, ["icon"])) : A("", !0), ce(" " + z(l.value?.dataSource?.label || B(a).customBlocks.dataSource.fetchButton), 1)]))])) : A("", !0)])) : (I(), j("div", on, [N(B(Vt), {
|
|
1069
1089
|
size: 24,
|
|
1070
1090
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
1071
|
-
}), M("span",
|
|
1091
|
+
}), M("span", sn, z(B(a).customBlocks.definitionNotFound), 1)]))]));
|
|
1072
1092
|
}
|
|
1073
|
-
}),
|
|
1093
|
+
}), mn = { class: "tpl:w-full" }, hn = /* @__PURE__ */ ue({
|
|
1074
1094
|
__name: "DividerBlock",
|
|
1075
1095
|
props: {
|
|
1076
1096
|
block: {},
|
|
1077
1097
|
viewport: {}
|
|
1078
1098
|
},
|
|
1079
1099
|
setup(e) {
|
|
1080
|
-
let t = e, n =
|
|
1100
|
+
let t = e, n = k(() => ({
|
|
1081
1101
|
borderTop: `${t.block.thickness}px ${t.block.lineStyle} ${t.block.color}`,
|
|
1082
1102
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
1083
1103
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
1084
1104
|
}));
|
|
1085
|
-
return (e, t) => (
|
|
1105
|
+
return (e, t) => (I(), j("div", mn, [M("hr", {
|
|
1086
1106
|
class: "tpl:m-0 tpl:border-none",
|
|
1087
|
-
style:
|
|
1107
|
+
style: F(n.value)
|
|
1088
1108
|
}, null, 4)]));
|
|
1089
1109
|
}
|
|
1090
|
-
}),
|
|
1110
|
+
}), gn = { class: "tpl:w-full" }, _n = { 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)]" }, vn = {
|
|
1091
1111
|
key: 0,
|
|
1092
1112
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
1093
|
-
},
|
|
1113
|
+
}, yn = {
|
|
1094
1114
|
key: 1,
|
|
1095
1115
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
1096
|
-
},
|
|
1116
|
+
}, bn = /* @__PURE__ */ ue({
|
|
1097
1117
|
__name: "HtmlBlock",
|
|
1098
1118
|
props: {
|
|
1099
1119
|
block: {},
|
|
1100
1120
|
viewport: {}
|
|
1101
1121
|
},
|
|
1102
1122
|
setup(e) {
|
|
1103
|
-
let t = e, { t: n } = E(), r =
|
|
1104
|
-
return (e, t) => (
|
|
1123
|
+
let t = e, { t: n } = E(), r = k(() => t.block.content.trim().length > 0);
|
|
1124
|
+
return (e, t) => (I(), j("div", gn, [M("div", _n, [N(B(Pt), {
|
|
1105
1125
|
size: 24,
|
|
1106
1126
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1107
|
-
}), r.value ? (
|
|
1127
|
+
}), r.value ? (I(), j("span", vn, z(B(n).html.preview), 1)) : (I(), j("span", yn, z(B(n).html.empty), 1))])]));
|
|
1108
1128
|
}
|
|
1109
|
-
}),
|
|
1129
|
+
}), xn = ["href"], Sn = ["src", "alt"], Cn = ["src", "alt"], wn = {
|
|
1110
1130
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1111
1131
|
style: { opacity: "0.7" }
|
|
1112
|
-
},
|
|
1132
|
+
}, Tn = ["href"], En = ["src", "alt"], Dn = ["src", "alt"], On = {
|
|
1113
1133
|
key: 3,
|
|
1114
1134
|
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)]"
|
|
1115
|
-
},
|
|
1135
|
+
}, kn = ["aria-label"], An = { key: 1 }, jn = /* @__PURE__ */ ue({
|
|
1116
1136
|
__name: "ImageBlock",
|
|
1117
1137
|
props: {
|
|
1118
1138
|
block: {},
|
|
@@ -1120,7 +1140,7 @@ var en = { class: "tpl:w-full" }, tn = {
|
|
|
1120
1140
|
},
|
|
1121
1141
|
emits: ["update"],
|
|
1122
1142
|
setup(e, { emit: t }) {
|
|
1123
|
-
let n = e, r = t, { t: i } = E(), { syntax: a } =
|
|
1143
|
+
let n = e, r = t, { t: i } = E(), { syntax: a } = ae(), o = P(ee, null), s = k(() => !!o);
|
|
1124
1144
|
async function c() {
|
|
1125
1145
|
let e = await o?.({ accept: ["images"] });
|
|
1126
1146
|
if (e) {
|
|
@@ -1128,82 +1148,82 @@ var en = { class: "tpl:w-full" }, tn = {
|
|
|
1128
1148
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1129
1149
|
}
|
|
1130
1150
|
}
|
|
1131
|
-
let l =
|
|
1151
|
+
let l = k(() => ({ textAlign: n.block.align })), u = k(() => ({
|
|
1132
1152
|
maxWidth: "100%",
|
|
1133
1153
|
width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
|
|
1134
1154
|
display: "block",
|
|
1135
1155
|
margin: n.block.align === "center" ? "0 auto" : void 0,
|
|
1136
1156
|
marginLeft: n.block.align === "right" ? "auto" : void 0
|
|
1137
|
-
})), d =
|
|
1138
|
-
return (t, n) => (
|
|
1157
|
+
})), d = k(() => Fe(n.block.src, a));
|
|
1158
|
+
return (t, n) => (I(), j("div", {
|
|
1139
1159
|
class: "tpl:w-full",
|
|
1140
|
-
style:
|
|
1141
|
-
}, [e.block.src && d.value && e.block.placeholderUrl ? (
|
|
1160
|
+
style: F(l.value)
|
|
1161
|
+
}, [e.block.src && d.value && e.block.placeholderUrl ? (I(), j(oe, { key: 0 }, [e.block.linkUrl ? (I(), j("a", {
|
|
1142
1162
|
key: 0,
|
|
1143
1163
|
href: e.block.linkUrl,
|
|
1144
1164
|
target: "_blank",
|
|
1145
1165
|
rel: "noopener noreferrer",
|
|
1146
|
-
onClick: n[0] ||=
|
|
1166
|
+
onClick: n[0] ||= De(() => {}, ["prevent"])
|
|
1147
1167
|
}, [M("img", {
|
|
1148
1168
|
class: "tpl:border-0",
|
|
1149
1169
|
loading: "lazy",
|
|
1150
1170
|
src: e.block.placeholderUrl,
|
|
1151
|
-
alt: e.block.alt ||
|
|
1152
|
-
style:
|
|
1153
|
-
}, null, 12,
|
|
1171
|
+
alt: e.block.alt || B(i).image.altTextPlaceholder,
|
|
1172
|
+
style: F(u.value)
|
|
1173
|
+
}, null, 12, Sn)], 8, xn)) : (I(), j("img", {
|
|
1154
1174
|
key: 1,
|
|
1155
1175
|
class: "tpl:border-0",
|
|
1156
1176
|
src: e.block.placeholderUrl,
|
|
1157
1177
|
alt: e.block.alt,
|
|
1158
|
-
style:
|
|
1159
|
-
}, null, 12,
|
|
1178
|
+
style: F(u.value)
|
|
1179
|
+
}, null, 12, Cn))], 64)) : e.block.src && d.value ? (I(), j("div", {
|
|
1160
1180
|
key: 1,
|
|
1161
1181
|
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)]",
|
|
1162
|
-
style:
|
|
1163
|
-
}, [N(
|
|
1182
|
+
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
1183
|
+
}, [N(B(zt), {
|
|
1164
1184
|
size: 32,
|
|
1165
1185
|
"stroke-width": 1.5,
|
|
1166
1186
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1167
1187
|
style: { opacity: "0.5" }
|
|
1168
|
-
}), M("span",
|
|
1188
|
+
}), M("span", wn, z(e.block.src), 1)], 4)) : e.block.src ? (I(), j(oe, { key: 2 }, [e.block.linkUrl ? (I(), j("a", {
|
|
1169
1189
|
key: 0,
|
|
1170
1190
|
href: e.block.linkUrl,
|
|
1171
1191
|
target: "_blank",
|
|
1172
1192
|
rel: "noopener noreferrer",
|
|
1173
|
-
onClick: n[1] ||=
|
|
1193
|
+
onClick: n[1] ||= De(() => {}, ["prevent"])
|
|
1174
1194
|
}, [M("img", {
|
|
1175
1195
|
class: "tpl:border-0",
|
|
1176
1196
|
loading: "lazy",
|
|
1177
1197
|
src: e.block.src,
|
|
1178
|
-
alt: e.block.alt ||
|
|
1179
|
-
style:
|
|
1180
|
-
}, null, 12,
|
|
1198
|
+
alt: e.block.alt || B(i).image.altTextPlaceholder,
|
|
1199
|
+
style: F(u.value)
|
|
1200
|
+
}, null, 12, En)], 8, Tn)) : (I(), j("img", {
|
|
1181
1201
|
key: 1,
|
|
1182
1202
|
class: "tpl:border-0",
|
|
1183
1203
|
src: e.block.src,
|
|
1184
1204
|
alt: e.block.alt,
|
|
1185
|
-
style:
|
|
1186
|
-
}, null, 12,
|
|
1205
|
+
style: F(u.value)
|
|
1206
|
+
}, null, 12, Dn))], 64)) : (I(), j("div", On, [s.value ? (I(), j("button", {
|
|
1187
1207
|
key: 0,
|
|
1188
|
-
"aria-label":
|
|
1208
|
+
"aria-label": B(i).image.browseMedia,
|
|
1189
1209
|
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)]",
|
|
1190
|
-
onClick:
|
|
1191
|
-
}, [N(
|
|
1210
|
+
onClick: De(c, ["stop"])
|
|
1211
|
+
}, [N(B(zt), {
|
|
1192
1212
|
size: 14,
|
|
1193
1213
|
"stroke-width": 1.5
|
|
1194
|
-
}), ce(" " + B(
|
|
1214
|
+
}), ce(" " + z(B(i).image.browseMedia), 1)], 8, kn)) : (I(), j("span", An, z(B(i).image.clickToAdd), 1))]))], 4));
|
|
1195
1215
|
}
|
|
1196
|
-
}),
|
|
1216
|
+
}), Mn = { class: "tpl:w-full" }, Nn = ["href"], Pn = {
|
|
1197
1217
|
key: 1,
|
|
1198
1218
|
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)]"
|
|
1199
|
-
},
|
|
1219
|
+
}, Fn = /* @__PURE__ */ ue({
|
|
1200
1220
|
__name: "MenuBlock",
|
|
1201
1221
|
props: {
|
|
1202
1222
|
block: {},
|
|
1203
1223
|
viewport: {}
|
|
1204
1224
|
},
|
|
1205
1225
|
setup(e) {
|
|
1206
|
-
let t = e, { t: n } = E(), r =
|
|
1226
|
+
let t = e, { t: n } = E(), r = k(() => ({
|
|
1207
1227
|
display: "flex",
|
|
1208
1228
|
flexWrap: "wrap",
|
|
1209
1229
|
gap: `0 ${t.block.spacing}px`,
|
|
@@ -1211,35 +1231,35 @@ var en = { class: "tpl:w-full" }, tn = {
|
|
|
1211
1231
|
fontSize: `${t.block.fontSize}px`,
|
|
1212
1232
|
fontFamily: t.block.fontFamily || "inherit",
|
|
1213
1233
|
alignItems: "center"
|
|
1214
|
-
})), i =
|
|
1234
|
+
})), i = k(() => t.block.items.length > 0);
|
|
1215
1235
|
function a(e) {
|
|
1216
1236
|
return e || t.block.linkColor || t.block.color;
|
|
1217
1237
|
}
|
|
1218
|
-
return (t, o) => (
|
|
1238
|
+
return (t, o) => (I(), j("div", Mn, [i.value ? (I(), j("div", {
|
|
1219
1239
|
key: 0,
|
|
1220
|
-
style:
|
|
1221
|
-
}, [(
|
|
1240
|
+
style: F(r.value)
|
|
1241
|
+
}, [(I(!0), j(oe, null, _e(e.block.items, (t, n) => (I(), j(oe, { key: t.id }, [M("a", {
|
|
1222
1242
|
href: t.url || "#",
|
|
1223
1243
|
class: "tpl:cursor-default tpl:no-underline",
|
|
1224
|
-
style:
|
|
1244
|
+
style: F({
|
|
1225
1245
|
color: a(t.color),
|
|
1226
1246
|
fontWeight: t.bold ? "bold" : "normal",
|
|
1227
1247
|
textDecoration: t.underline ? "underline" : "none"
|
|
1228
1248
|
}),
|
|
1229
|
-
onClick: o[0] ||=
|
|
1230
|
-
},
|
|
1249
|
+
onClick: o[0] ||= De(() => {}, ["prevent"])
|
|
1250
|
+
}, z(t.text || "..."), 13, Nn), n < e.block.items.length - 1 ? (I(), j("span", {
|
|
1231
1251
|
key: 0,
|
|
1232
|
-
style:
|
|
1252
|
+
style: F({
|
|
1233
1253
|
color: e.block.separatorColor,
|
|
1234
1254
|
padding: `0 ${e.block.spacing}px`
|
|
1235
1255
|
})
|
|
1236
|
-
},
|
|
1256
|
+
}, z(e.block.separator), 5)) : A("", !0)], 64))), 128))], 4)) : (I(), j("div", Pn, [N(B(Bt), { size: 16 }), M("span", null, z(B(n).menu.addLinks), 1)]))]));
|
|
1237
1257
|
}
|
|
1238
1258
|
});
|
|
1239
1259
|
//#endregion
|
|
1240
1260
|
//#region src/composables/useEditableTextBlock.ts
|
|
1241
|
-
function
|
|
1242
|
-
let t =
|
|
1261
|
+
function In(e) {
|
|
1262
|
+
let t = P(m, []), { syntax: n } = ae(), i = k(() => Xe(Ze(e(), t), n)), a = R(!1), o = R(null), { top: s, left: c } = r(o), l = k(() => ({
|
|
1243
1263
|
top: s.value - 8,
|
|
1244
1264
|
left: c.value
|
|
1245
1265
|
}));
|
|
@@ -1260,45 +1280,45 @@ function Mn(e) {
|
|
|
1260
1280
|
}
|
|
1261
1281
|
//#endregion
|
|
1262
1282
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1263
|
-
var
|
|
1283
|
+
var Ln = ["innerHTML"], Rn = /* @__PURE__ */ ue({
|
|
1264
1284
|
__name: "ParagraphBlock",
|
|
1265
1285
|
props: {
|
|
1266
1286
|
block: {},
|
|
1267
1287
|
viewport: {}
|
|
1268
1288
|
},
|
|
1269
1289
|
setup(e) {
|
|
1270
|
-
let t = e, n = le(() => import("./ParagraphEditor-
|
|
1271
|
-
return (t, l) => (
|
|
1290
|
+
let t = e, n = le(() => import("./ParagraphEditor-CoQ3NlS7.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = In(() => t.block.content);
|
|
1291
|
+
return (t, l) => (I(), j("div", {
|
|
1272
1292
|
ref_key: "blockRef",
|
|
1273
1293
|
ref: i,
|
|
1274
1294
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1275
|
-
onDblclick: l[0] ||= (...e) =>
|
|
1276
|
-
}, [
|
|
1295
|
+
onDblclick: l[0] ||= (...e) => B(s) && B(s)(...e)
|
|
1296
|
+
}, [B(r) ? (I(), se(B(n), {
|
|
1277
1297
|
key: 0,
|
|
1278
1298
|
block: e.block,
|
|
1279
|
-
"toolbar-position":
|
|
1280
|
-
onDone:
|
|
1299
|
+
"toolbar-position": B(a),
|
|
1300
|
+
onDone: B(c)
|
|
1281
1301
|
}, null, 8, [
|
|
1282
1302
|
"block",
|
|
1283
1303
|
"toolbar-position",
|
|
1284
1304
|
"onDone"
|
|
1285
|
-
])) : (
|
|
1305
|
+
])) : (I(), j("div", {
|
|
1286
1306
|
key: 1,
|
|
1287
1307
|
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",
|
|
1288
|
-
innerHTML:
|
|
1289
|
-
}, null, 8,
|
|
1308
|
+
innerHTML: B(o)
|
|
1309
|
+
}, null, 8, Ln))], 544));
|
|
1290
1310
|
}
|
|
1291
1311
|
});
|
|
1292
1312
|
//#endregion
|
|
1293
1313
|
//#region src/utils/blockComponentResolver.ts
|
|
1294
|
-
function
|
|
1314
|
+
function zn(e, t, n) {
|
|
1295
1315
|
if (t) {
|
|
1296
1316
|
let n = t.getComponent(e);
|
|
1297
1317
|
if (n) return n;
|
|
1298
1318
|
}
|
|
1299
1319
|
return n[e.type] ?? null;
|
|
1300
1320
|
}
|
|
1301
|
-
function
|
|
1321
|
+
function Bn(e) {
|
|
1302
1322
|
let { padding: t, margin: n, backgroundColor: r } = e.styles;
|
|
1303
1323
|
return {
|
|
1304
1324
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
@@ -1308,20 +1328,20 @@ function In(e) {
|
|
|
1308
1328
|
}
|
|
1309
1329
|
//#endregion
|
|
1310
1330
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
1311
|
-
var
|
|
1331
|
+
var Vn = ["data-block-id", "data-block-type"], Hn = ["aria-label"], Un = [
|
|
1312
1332
|
"aria-label",
|
|
1313
1333
|
"aria-pressed",
|
|
1314
1334
|
"title"
|
|
1315
|
-
],
|
|
1335
|
+
], Wn = ["aria-label", "title"], Gn = ["aria-label", "title"], Kn = ["aria-label", "title"], qn = {
|
|
1316
1336
|
key: 1,
|
|
1317
1337
|
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"
|
|
1318
|
-
},
|
|
1338
|
+
}, Jn = { 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)]" }, Yn = {
|
|
1319
1339
|
key: 2,
|
|
1320
1340
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1321
|
-
},
|
|
1341
|
+
}, Xn = ["aria-label", "title"], Zn = {
|
|
1322
1342
|
key: 3,
|
|
1323
1343
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1324
|
-
},
|
|
1344
|
+
}, Qn = ["aria-label"], $n = /* @__PURE__ */ te(/* @__PURE__ */ ue({
|
|
1325
1345
|
__name: "BlockWrapper",
|
|
1326
1346
|
props: {
|
|
1327
1347
|
block: {},
|
|
@@ -1331,9 +1351,9 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
|
|
|
1331
1351
|
},
|
|
1332
1352
|
emits: ["select"],
|
|
1333
1353
|
setup(e, { emit: t }) {
|
|
1334
|
-
let n = e, r = t, { t: i, format: a } = E(), o =
|
|
1354
|
+
let n = e, r = t, { t: i, format: a } = E(), o = P(h, null), s = R(null), c = k(() => o?.liftedBlockId.value === n.block.id), l = k(() => c.value ? a(i.blockActions.dragLifted, { block: n.block.type }) : i.blockActions.drag);
|
|
1335
1355
|
async function u() {
|
|
1336
|
-
await
|
|
1356
|
+
await fe(), s.value?.focus();
|
|
1337
1357
|
}
|
|
1338
1358
|
function d(e) {
|
|
1339
1359
|
if (o) {
|
|
@@ -1354,11 +1374,11 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
|
|
|
1354
1374
|
}
|
|
1355
1375
|
}
|
|
1356
1376
|
}
|
|
1357
|
-
let f =
|
|
1377
|
+
let f = k(() => !n.viewport || !n.block.visibility ? !1 : n.block.visibility[n.viewport] === !1), p = k(() => n.viewport ? {
|
|
1358
1378
|
desktop: i.viewport.desktop,
|
|
1359
1379
|
tablet: i.viewport.tablet,
|
|
1360
1380
|
mobile: i.viewport.mobile
|
|
1361
|
-
}[n.viewport] ?? n.viewport : ""), m =
|
|
1381
|
+
}[n.viewport] ?? n.viewport : ""), m = k(() => !!n.block.displayCondition), v = P(g, null), y = P(_, null), b = P(S, {}), x = k(() => !!b.savedModules), C = k(() => b.comments?.getBlockCount(n.block.id) ?? 0), ee = k(() => Bn(n.block));
|
|
1362
1382
|
function w(e) {
|
|
1363
1383
|
n.previewMode || (e.stopPropagation(), r("select"));
|
|
1364
1384
|
}
|
|
@@ -1368,28 +1388,28 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
|
|
|
1368
1388
|
function D() {
|
|
1369
1389
|
v?.duplicateBlock(n.block);
|
|
1370
1390
|
}
|
|
1371
|
-
function
|
|
1391
|
+
function te() {
|
|
1372
1392
|
b.savedModules?.openSaveDialog(n.block.id);
|
|
1373
1393
|
}
|
|
1374
|
-
function
|
|
1394
|
+
function re() {
|
|
1375
1395
|
y?.toggleBlock(n.block.id);
|
|
1376
1396
|
}
|
|
1377
|
-
return (t, n) => (
|
|
1378
|
-
class:
|
|
1397
|
+
return (t, n) => (I(), j("div", {
|
|
1398
|
+
class: pe(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
|
|
1379
1399
|
"tpl-block--selected": e.isSelected,
|
|
1380
1400
|
"tpl-block--idle": !e.isSelected,
|
|
1381
1401
|
"tpl-block--lifted": c.value
|
|
1382
1402
|
}]),
|
|
1383
|
-
style:
|
|
1403
|
+
style: F(ee.value),
|
|
1384
1404
|
"data-block-id": e.block.id,
|
|
1385
1405
|
"data-block-type": e.block.type,
|
|
1386
1406
|
draggable: "false",
|
|
1387
1407
|
onClick: w
|
|
1388
1408
|
}, [
|
|
1389
|
-
e.isSelected ? (
|
|
1409
|
+
e.isSelected ? (I(), j("div", {
|
|
1390
1410
|
key: 0,
|
|
1391
1411
|
role: "toolbar",
|
|
1392
|
-
"aria-label":
|
|
1412
|
+
"aria-label": B(i).blockActions.drag,
|
|
1393
1413
|
class: "tpl-block-actions tpl-fade-in tpl:absolute tpl:-right-2 tpl:top-1/2 tpl:z-10 tpl:flex tpl:-translate-y-1/2 tpl:translate-x-full tpl:gap-0.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:p-1 tpl:bg-[var(--tpl-bg-elevated)] tpl:shadow-[var(--tpl-shadow-md)] tpl:border tpl:border-[var(--tpl-border)]"
|
|
1394
1414
|
}, [
|
|
1395
1415
|
M("button", {
|
|
@@ -1399,108 +1419,108 @@ var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
|
|
|
1399
1419
|
"aria-label": l.value,
|
|
1400
1420
|
"aria-pressed": c.value,
|
|
1401
1421
|
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
1402
|
-
title:
|
|
1422
|
+
title: B(i).blockActions.drag,
|
|
1403
1423
|
onKeydown: d
|
|
1404
|
-
}, [N(
|
|
1424
|
+
}, [N(B(Rt), {
|
|
1405
1425
|
size: 14,
|
|
1406
1426
|
"stroke-width": 1.5
|
|
1407
|
-
})], 40,
|
|
1427
|
+
})], 40, Un),
|
|
1408
1428
|
M("button", {
|
|
1409
1429
|
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",
|
|
1410
|
-
"aria-label":
|
|
1411
|
-
title:
|
|
1412
|
-
onClick:
|
|
1413
|
-
}, [N(
|
|
1430
|
+
"aria-label": B(i).blockActions.duplicate,
|
|
1431
|
+
title: B(i).blockActions.duplicate,
|
|
1432
|
+
onClick: De(D, ["stop"])
|
|
1433
|
+
}, [N(B(Ft), {
|
|
1414
1434
|
size: 14,
|
|
1415
1435
|
"stroke-width": 1.5
|
|
1416
|
-
})], 8,
|
|
1417
|
-
x.value ? (
|
|
1436
|
+
})], 8, Wn),
|
|
1437
|
+
x.value ? (I(), j("button", {
|
|
1418
1438
|
key: 0,
|
|
1419
1439
|
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",
|
|
1420
|
-
"aria-label":
|
|
1421
|
-
title:
|
|
1422
|
-
onClick:
|
|
1423
|
-
}, [N(
|
|
1440
|
+
"aria-label": B(i).blockActions.saveAsModule,
|
|
1441
|
+
title: B(i).blockActions.saveAsModule,
|
|
1442
|
+
onClick: De(te, ["stop"])
|
|
1443
|
+
}, [N(B(Mt), {
|
|
1424
1444
|
size: 14,
|
|
1425
1445
|
"stroke-width": 1.5
|
|
1426
|
-
})], 8,
|
|
1446
|
+
})], 8, Gn)) : A("", !0),
|
|
1427
1447
|
M("button", {
|
|
1428
1448
|
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",
|
|
1429
|
-
"aria-label":
|
|
1430
|
-
title:
|
|
1431
|
-
onClick:
|
|
1432
|
-
}, [N(
|
|
1449
|
+
"aria-label": B(i).blockActions.delete,
|
|
1450
|
+
title: B(i).blockActions.delete,
|
|
1451
|
+
onClick: De(T, ["stop"])
|
|
1452
|
+
}, [N(B(O), {
|
|
1433
1453
|
size: 14,
|
|
1434
1454
|
"stroke-width": 1.5
|
|
1435
|
-
})], 8,
|
|
1436
|
-
], 8,
|
|
1437
|
-
f.value ? (
|
|
1455
|
+
})], 8, Kn)
|
|
1456
|
+
], 8, Hn)) : A("", !0),
|
|
1457
|
+
f.value ? (I(), j("div", qn, [M("span", Jn, [N(B(It), {
|
|
1438
1458
|
size: 12,
|
|
1439
1459
|
"stroke-width": 1.5
|
|
1440
|
-
}), ce(" " + B(
|
|
1441
|
-
m.value && !f.value ? (
|
|
1460
|
+
}), ce(" " + z(B(a)(B(i).blockActions.hiddenOnViewport, { viewport: p.value })), 1)])])) : A("", !0),
|
|
1461
|
+
m.value && !f.value ? (I(), j("div", Yn, [M("button", {
|
|
1442
1462
|
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)]",
|
|
1443
|
-
"aria-label":
|
|
1463
|
+
"aria-label": B(i).blockActions.conditionToggle,
|
|
1444
1464
|
title: e.block.displayCondition?.label,
|
|
1445
|
-
onClick:
|
|
1446
|
-
}, [N(
|
|
1465
|
+
onClick: De(re, ["stop"])
|
|
1466
|
+
}, [N(B(Lt), {
|
|
1447
1467
|
size: 12,
|
|
1448
1468
|
"stroke-width": 2
|
|
1449
|
-
})], 8,
|
|
1450
|
-
C.value > 0 && !f.value ? (
|
|
1469
|
+
})], 8, Xn)])) : A("", !0),
|
|
1470
|
+
C.value > 0 && !f.value ? (I(), j("div", Zn, [M("button", {
|
|
1451
1471
|
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)]",
|
|
1452
|
-
"aria-label":
|
|
1453
|
-
onClick: n[0] ||=
|
|
1454
|
-
}, [N(
|
|
1472
|
+
"aria-label": B(a)(B(i).blockActions.comments, { count: String(C.value) }),
|
|
1473
|
+
onClick: n[0] ||= De((t) => B(b).comments?.openForBlock(e.block.id), ["stop"])
|
|
1474
|
+
}, [N(B(ne), {
|
|
1455
1475
|
size: 12,
|
|
1456
1476
|
"stroke-width": 2.5
|
|
1457
|
-
}), ce(" " +
|
|
1458
|
-
|
|
1459
|
-
], 14,
|
|
1477
|
+
}), ce(" " + z(C.value), 1)], 8, Qn)])) : A("", !0),
|
|
1478
|
+
ve(t.$slots, "default", {}, void 0, !0)
|
|
1479
|
+
], 14, Vn));
|
|
1460
1480
|
}
|
|
1461
|
-
}), [["__scopeId", "data-v-8d0416c4"]]),
|
|
1481
|
+
}), [["__scopeId", "data-v-8d0416c4"]]), er = ["innerHTML"], tr = /* @__PURE__ */ ue({
|
|
1462
1482
|
__name: "TitleBlock",
|
|
1463
1483
|
props: {
|
|
1464
1484
|
block: {},
|
|
1465
1485
|
viewport: {}
|
|
1466
1486
|
},
|
|
1467
1487
|
setup(e) {
|
|
1468
|
-
let t = e, n = le(() => import("./TitleEditor-
|
|
1488
|
+
let t = e, n = le(() => import("./TitleEditor-C7fds2Nc.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = In(() => t.block.content), l = k(() => {
|
|
1469
1489
|
let e = {
|
|
1470
|
-
fontSize: `${
|
|
1490
|
+
fontSize: `${Pe[t.block.level]}px`,
|
|
1471
1491
|
color: t.block.color,
|
|
1472
1492
|
textAlign: t.block.textAlign
|
|
1473
1493
|
};
|
|
1474
1494
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
1475
1495
|
});
|
|
1476
|
-
return (t, u) => (
|
|
1496
|
+
return (t, u) => (I(), j("div", {
|
|
1477
1497
|
ref_key: "blockRef",
|
|
1478
1498
|
ref: i,
|
|
1479
1499
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1480
|
-
style:
|
|
1481
|
-
onDblclick: u[0] ||= (...e) =>
|
|
1482
|
-
}, [
|
|
1500
|
+
style: F(l.value),
|
|
1501
|
+
onDblclick: u[0] ||= (...e) => B(s) && B(s)(...e)
|
|
1502
|
+
}, [B(r) ? (I(), se(B(n), {
|
|
1483
1503
|
key: 0,
|
|
1484
1504
|
block: e.block,
|
|
1485
|
-
"toolbar-position":
|
|
1486
|
-
onDone:
|
|
1505
|
+
"toolbar-position": B(a),
|
|
1506
|
+
onDone: B(c)
|
|
1487
1507
|
}, null, 8, [
|
|
1488
1508
|
"block",
|
|
1489
1509
|
"toolbar-position",
|
|
1490
1510
|
"onDone"
|
|
1491
|
-
])) : (
|
|
1511
|
+
])) : (I(), j("div", {
|
|
1492
1512
|
key: 1,
|
|
1493
1513
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
|
|
1494
|
-
innerHTML:
|
|
1495
|
-
}, null, 8,
|
|
1514
|
+
innerHTML: B(o)
|
|
1515
|
+
}, null, 8, er))], 36));
|
|
1496
1516
|
}
|
|
1497
|
-
}),
|
|
1498
|
-
MultiDrag: () =>
|
|
1499
|
-
Sortable: () =>
|
|
1500
|
-
Swap: () =>
|
|
1501
|
-
default: () =>
|
|
1517
|
+
}), nr = /* @__PURE__ */ st({
|
|
1518
|
+
MultiDrag: () => si,
|
|
1519
|
+
Sortable: () => q,
|
|
1520
|
+
Swap: () => ai,
|
|
1521
|
+
default: () => q
|
|
1502
1522
|
});
|
|
1503
|
-
function
|
|
1523
|
+
function rr(e, t) {
|
|
1504
1524
|
var n = Object.keys(e);
|
|
1505
1525
|
if (Object.getOwnPropertySymbols) {
|
|
1506
1526
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1510,26 +1530,26 @@ function $n(e, t) {
|
|
|
1510
1530
|
}
|
|
1511
1531
|
return n;
|
|
1512
1532
|
}
|
|
1513
|
-
function
|
|
1533
|
+
function ir(e) {
|
|
1514
1534
|
for (var t = 1; t < arguments.length; t++) {
|
|
1515
1535
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1516
|
-
t % 2 ?
|
|
1517
|
-
|
|
1518
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1536
|
+
t % 2 ? rr(Object(n), !0).forEach(function(t) {
|
|
1537
|
+
or(e, t, n[t]);
|
|
1538
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : rr(Object(n)).forEach(function(t) {
|
|
1519
1539
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1520
1540
|
});
|
|
1521
1541
|
}
|
|
1522
1542
|
return e;
|
|
1523
1543
|
}
|
|
1524
|
-
function
|
|
1544
|
+
function ar(e) {
|
|
1525
1545
|
"@babel/helpers - typeof";
|
|
1526
|
-
return
|
|
1546
|
+
return ar = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1527
1547
|
return typeof e;
|
|
1528
1548
|
} : function(e) {
|
|
1529
1549
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1530
|
-
},
|
|
1550
|
+
}, ar(e);
|
|
1531
1551
|
}
|
|
1532
|
-
function
|
|
1552
|
+
function or(e, t, n) {
|
|
1533
1553
|
return t in e ? Object.defineProperty(e, t, {
|
|
1534
1554
|
value: n,
|
|
1535
1555
|
enumerable: !0,
|
|
@@ -1537,65 +1557,65 @@ function nr(e, t, n) {
|
|
|
1537
1557
|
writable: !0
|
|
1538
1558
|
}) : e[t] = n, e;
|
|
1539
1559
|
}
|
|
1540
|
-
function
|
|
1541
|
-
return
|
|
1560
|
+
function sr() {
|
|
1561
|
+
return sr = Object.assign || function(e) {
|
|
1542
1562
|
for (var t = 1; t < arguments.length; t++) {
|
|
1543
1563
|
var n = arguments[t];
|
|
1544
1564
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1545
1565
|
}
|
|
1546
1566
|
return e;
|
|
1547
|
-
},
|
|
1567
|
+
}, sr.apply(this, arguments);
|
|
1548
1568
|
}
|
|
1549
|
-
function
|
|
1569
|
+
function cr(e, t) {
|
|
1550
1570
|
if (e == null) return {};
|
|
1551
1571
|
var n = {}, r = Object.keys(e), i, a;
|
|
1552
1572
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
1553
1573
|
return n;
|
|
1554
1574
|
}
|
|
1555
|
-
function
|
|
1575
|
+
function lr(e, t) {
|
|
1556
1576
|
if (e == null) return {};
|
|
1557
|
-
var n =
|
|
1577
|
+
var n = cr(e, t), r, i;
|
|
1558
1578
|
if (Object.getOwnPropertySymbols) {
|
|
1559
1579
|
var a = Object.getOwnPropertySymbols(e);
|
|
1560
1580
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
1561
1581
|
}
|
|
1562
1582
|
return n;
|
|
1563
1583
|
}
|
|
1564
|
-
function
|
|
1565
|
-
return
|
|
1584
|
+
function ur(e) {
|
|
1585
|
+
return dr(e) || fr(e) || pr(e) || hr();
|
|
1566
1586
|
}
|
|
1567
|
-
function
|
|
1568
|
-
if (Array.isArray(e)) return
|
|
1587
|
+
function dr(e) {
|
|
1588
|
+
if (Array.isArray(e)) return mr(e);
|
|
1569
1589
|
}
|
|
1570
|
-
function
|
|
1590
|
+
function fr(e) {
|
|
1571
1591
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1572
1592
|
}
|
|
1573
|
-
function
|
|
1593
|
+
function pr(e, t) {
|
|
1574
1594
|
if (e) {
|
|
1575
|
-
if (typeof e == "string") return
|
|
1595
|
+
if (typeof e == "string") return mr(e, t);
|
|
1576
1596
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1577
1597
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1578
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
1598
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return mr(e, t);
|
|
1579
1599
|
}
|
|
1580
1600
|
}
|
|
1581
|
-
function
|
|
1601
|
+
function mr(e, t) {
|
|
1582
1602
|
(t == null || t > e.length) && (t = e.length);
|
|
1583
1603
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1584
1604
|
return r;
|
|
1585
1605
|
}
|
|
1586
|
-
function
|
|
1606
|
+
function hr() {
|
|
1587
1607
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1588
1608
|
}
|
|
1589
|
-
function
|
|
1609
|
+
function gr(e) {
|
|
1590
1610
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1591
1611
|
}
|
|
1592
|
-
function
|
|
1593
|
-
e.addEventListener(t, n, !
|
|
1612
|
+
function V(e, t, n) {
|
|
1613
|
+
e.addEventListener(t, n, !fi && vi);
|
|
1594
1614
|
}
|
|
1595
|
-
function
|
|
1596
|
-
e.removeEventListener(t, n, !
|
|
1615
|
+
function H(e, t, n) {
|
|
1616
|
+
e.removeEventListener(t, n, !fi && vi);
|
|
1597
1617
|
}
|
|
1598
|
-
function
|
|
1618
|
+
function _r(e, t) {
|
|
1599
1619
|
if (t) {
|
|
1600
1620
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
1601
1621
|
if (e.matches) return e.matches(t);
|
|
@@ -1607,40 +1627,40 @@ function pr(e, t) {
|
|
|
1607
1627
|
return !1;
|
|
1608
1628
|
}
|
|
1609
1629
|
}
|
|
1610
|
-
function
|
|
1630
|
+
function vr(e) {
|
|
1611
1631
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1612
1632
|
}
|
|
1613
|
-
function
|
|
1633
|
+
function yr(e, t, n, r) {
|
|
1614
1634
|
if (e) {
|
|
1615
1635
|
n ||= document;
|
|
1616
1636
|
do {
|
|
1617
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
1637
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && _r(e, t) : _r(e, t)) || r && e === n) return e;
|
|
1618
1638
|
if (e === n) break;
|
|
1619
|
-
} while (e =
|
|
1639
|
+
} while (e = vr(e));
|
|
1620
1640
|
}
|
|
1621
1641
|
return null;
|
|
1622
1642
|
}
|
|
1623
|
-
function
|
|
1624
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
1643
|
+
function U(e, t, n) {
|
|
1644
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(yi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(yi, " "));
|
|
1625
1645
|
}
|
|
1626
|
-
function
|
|
1646
|
+
function W(e, t, n) {
|
|
1627
1647
|
var r = e && e.style;
|
|
1628
1648
|
if (r) {
|
|
1629
1649
|
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];
|
|
1630
1650
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
1631
1651
|
}
|
|
1632
1652
|
}
|
|
1633
|
-
function
|
|
1653
|
+
function br(e, t) {
|
|
1634
1654
|
var n = "";
|
|
1635
1655
|
if (typeof e == "string") n = e;
|
|
1636
1656
|
else do {
|
|
1637
|
-
var r =
|
|
1657
|
+
var r = W(e, "transform");
|
|
1638
1658
|
r && r !== "none" && (n = r + " " + n);
|
|
1639
1659
|
} while (!t && (e = e.parentNode));
|
|
1640
1660
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1641
1661
|
return i && new i(n);
|
|
1642
1662
|
}
|
|
1643
|
-
function
|
|
1663
|
+
function xr(e, t, n) {
|
|
1644
1664
|
if (e) {
|
|
1645
1665
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
1646
1666
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -1648,21 +1668,21 @@ function _r(e, t, n) {
|
|
|
1648
1668
|
}
|
|
1649
1669
|
return [];
|
|
1650
1670
|
}
|
|
1651
|
-
function
|
|
1671
|
+
function Sr() {
|
|
1652
1672
|
return document.scrollingElement || document.documentElement;
|
|
1653
1673
|
}
|
|
1654
|
-
function
|
|
1674
|
+
function G(e, t, n, r, i) {
|
|
1655
1675
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1656
1676
|
var a, o, s, c, l, u, d;
|
|
1657
|
-
if (e !== window && e.parentNode && e !==
|
|
1658
|
-
if (i && i.getBoundingClientRect && (
|
|
1677
|
+
if (e !== window && e.parentNode && e !== Sr() ? (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, !fi)) do
|
|
1678
|
+
if (i && i.getBoundingClientRect && (W(i, "transform") !== "none" || n && W(i, "position") !== "static")) {
|
|
1659
1679
|
var f = i.getBoundingClientRect();
|
|
1660
|
-
o -= f.top + parseInt(
|
|
1680
|
+
o -= f.top + parseInt(W(i, "border-top-width")), s -= f.left + parseInt(W(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
1661
1681
|
break;
|
|
1662
1682
|
}
|
|
1663
1683
|
while (i = i.parentNode);
|
|
1664
1684
|
if (r && e !== window) {
|
|
1665
|
-
var p =
|
|
1685
|
+
var p = br(i || e), m = p && p.a, h = p && p.d;
|
|
1666
1686
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
1667
1687
|
}
|
|
1668
1688
|
return {
|
|
@@ -1675,18 +1695,18 @@ function K(e, t, n, r, i) {
|
|
|
1675
1695
|
};
|
|
1676
1696
|
}
|
|
1677
1697
|
}
|
|
1678
|
-
function
|
|
1679
|
-
for (var r =
|
|
1680
|
-
var a =
|
|
1698
|
+
function Cr(e, t, n) {
|
|
1699
|
+
for (var r = Or(e, !0), i = G(e)[t]; r;) {
|
|
1700
|
+
var a = G(r)[n], o = void 0;
|
|
1681
1701
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
1682
|
-
if (r ===
|
|
1683
|
-
r =
|
|
1702
|
+
if (r === Sr()) break;
|
|
1703
|
+
r = Or(r, !1);
|
|
1684
1704
|
}
|
|
1685
1705
|
return !1;
|
|
1686
1706
|
}
|
|
1687
|
-
function
|
|
1707
|
+
function wr(e, t, n, r) {
|
|
1688
1708
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
1689
|
-
if (o[a].style.display !== "none" && o[a] !==
|
|
1709
|
+
if (o[a].style.display !== "none" && o[a] !== q.ghost && (r || o[a] !== q.dragged) && yr(o[a], n.draggable, e, !1)) {
|
|
1690
1710
|
if (i === t) return o[a];
|
|
1691
1711
|
i++;
|
|
1692
1712
|
}
|
|
@@ -1694,91 +1714,91 @@ function br(e, t, n, r) {
|
|
|
1694
1714
|
}
|
|
1695
1715
|
return null;
|
|
1696
1716
|
}
|
|
1697
|
-
function
|
|
1698
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
1717
|
+
function Tr(e, t) {
|
|
1718
|
+
for (var n = e.lastElementChild; n && (n === q.ghost || W(n, "display") === "none" || t && !_r(n, t));) n = n.previousElementSibling;
|
|
1699
1719
|
return n || null;
|
|
1700
1720
|
}
|
|
1701
|
-
function
|
|
1721
|
+
function K(e, t) {
|
|
1702
1722
|
var n = 0;
|
|
1703
1723
|
if (!e || !e.parentNode) return -1;
|
|
1704
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
1724
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== q.clone && (!t || _r(e, t)) && n++;
|
|
1705
1725
|
return n;
|
|
1706
1726
|
}
|
|
1707
|
-
function
|
|
1708
|
-
var t = 0, n = 0, r =
|
|
1727
|
+
function Er(e) {
|
|
1728
|
+
var t = 0, n = 0, r = Sr();
|
|
1709
1729
|
if (e) do {
|
|
1710
|
-
var i =
|
|
1730
|
+
var i = br(e), a = i.a, o = i.d;
|
|
1711
1731
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
1712
1732
|
} while (e !== r && (e = e.parentNode));
|
|
1713
1733
|
return [t, n];
|
|
1714
1734
|
}
|
|
1715
|
-
function
|
|
1735
|
+
function Dr(e, t) {
|
|
1716
1736
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
1717
1737
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
1718
1738
|
}
|
|
1719
1739
|
return -1;
|
|
1720
1740
|
}
|
|
1721
|
-
function
|
|
1722
|
-
if (!e || !e.getBoundingClientRect) return
|
|
1741
|
+
function Or(e, t) {
|
|
1742
|
+
if (!e || !e.getBoundingClientRect) return Sr();
|
|
1723
1743
|
var n = e, r = !1;
|
|
1724
1744
|
do
|
|
1725
1745
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
1726
|
-
var i =
|
|
1746
|
+
var i = W(n);
|
|
1727
1747
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
1728
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
1748
|
+
if (!n.getBoundingClientRect || n === document.body) return Sr();
|
|
1729
1749
|
if (r || t) return n;
|
|
1730
1750
|
r = !0;
|
|
1731
1751
|
}
|
|
1732
1752
|
}
|
|
1733
1753
|
while (n = n.parentNode);
|
|
1734
|
-
return
|
|
1754
|
+
return Sr();
|
|
1735
1755
|
}
|
|
1736
|
-
function
|
|
1756
|
+
function kr(e, t) {
|
|
1737
1757
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
1738
1758
|
return e;
|
|
1739
1759
|
}
|
|
1740
|
-
function
|
|
1760
|
+
function Ar(e, t) {
|
|
1741
1761
|
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);
|
|
1742
1762
|
}
|
|
1743
|
-
function
|
|
1763
|
+
function jr(e, t) {
|
|
1744
1764
|
return function() {
|
|
1745
|
-
if (!
|
|
1765
|
+
if (!bi) {
|
|
1746
1766
|
var n = arguments, r = this;
|
|
1747
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
1748
|
-
|
|
1767
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), bi = setTimeout(function() {
|
|
1768
|
+
bi = void 0;
|
|
1749
1769
|
}, t);
|
|
1750
1770
|
}
|
|
1751
1771
|
};
|
|
1752
1772
|
}
|
|
1753
|
-
function
|
|
1754
|
-
clearTimeout(
|
|
1773
|
+
function Mr() {
|
|
1774
|
+
clearTimeout(bi), bi = void 0;
|
|
1755
1775
|
}
|
|
1756
|
-
function
|
|
1776
|
+
function Nr(e, t, n) {
|
|
1757
1777
|
e.scrollLeft += t, e.scrollTop += n;
|
|
1758
1778
|
}
|
|
1759
|
-
function
|
|
1779
|
+
function Pr(e) {
|
|
1760
1780
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
1761
1781
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1762
1782
|
}
|
|
1763
|
-
function
|
|
1764
|
-
|
|
1783
|
+
function Fr(e, t) {
|
|
1784
|
+
W(e, "position", "absolute"), W(e, "top", t.top), W(e, "left", t.left), W(e, "width", t.width), W(e, "height", t.height);
|
|
1765
1785
|
}
|
|
1766
|
-
function
|
|
1767
|
-
|
|
1786
|
+
function Ir(e) {
|
|
1787
|
+
W(e, "position", ""), W(e, "top", ""), W(e, "left", ""), W(e, "width", ""), W(e, "height", "");
|
|
1768
1788
|
}
|
|
1769
|
-
function
|
|
1789
|
+
function Lr() {
|
|
1770
1790
|
var e = [], t;
|
|
1771
1791
|
return {
|
|
1772
1792
|
captureAnimationState: function() {
|
|
1773
1793
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
1774
|
-
if (!(
|
|
1794
|
+
if (!(W(t, "display") === "none" || t === q.ghost)) {
|
|
1775
1795
|
e.push({
|
|
1776
1796
|
target: t,
|
|
1777
|
-
rect:
|
|
1797
|
+
rect: G(t)
|
|
1778
1798
|
});
|
|
1779
|
-
var n =
|
|
1799
|
+
var n = ir({}, e[e.length - 1].rect);
|
|
1780
1800
|
if (t.thisAnimationDuration) {
|
|
1781
|
-
var r =
|
|
1801
|
+
var r = br(t, !0);
|
|
1782
1802
|
r && (n.top -= r.f, n.left -= r.e);
|
|
1783
1803
|
}
|
|
1784
1804
|
t.fromRect = n;
|
|
@@ -1789,7 +1809,7 @@ function Nr() {
|
|
|
1789
1809
|
e.push(t);
|
|
1790
1810
|
},
|
|
1791
1811
|
removeAnimationState: function(t) {
|
|
1792
|
-
e.splice(
|
|
1812
|
+
e.splice(Dr(e, { target: t }), 1);
|
|
1793
1813
|
},
|
|
1794
1814
|
animateAll: function(n) {
|
|
1795
1815
|
var r = this;
|
|
@@ -1799,8 +1819,8 @@ function Nr() {
|
|
|
1799
1819
|
}
|
|
1800
1820
|
var i = !1, a = 0;
|
|
1801
1821
|
e.forEach(function(e) {
|
|
1802
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
1803
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
1822
|
+
var t = 0, n = e.target, o = n.fromRect, s = G(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = br(n, !0);
|
|
1823
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Ar(c, s) && !Ar(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = zr(u, c, l, r.options)), Ar(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() {
|
|
1804
1824
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
1805
1825
|
}, t), n.thisAnimationDuration = t);
|
|
1806
1826
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -1809,49 +1829,49 @@ function Nr() {
|
|
|
1809
1829
|
},
|
|
1810
1830
|
animate: function(e, t, n, r) {
|
|
1811
1831
|
if (r) {
|
|
1812
|
-
|
|
1813
|
-
var i =
|
|
1814
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
1815
|
-
|
|
1832
|
+
W(e, "transition", ""), W(e, "transform", "");
|
|
1833
|
+
var i = br(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
1834
|
+
e.animatingX = !!s, e.animatingY = !!c, W(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Rr(e), W(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), W(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
1835
|
+
W(e, "transition", ""), W(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
1816
1836
|
}, r);
|
|
1817
1837
|
}
|
|
1818
1838
|
}
|
|
1819
1839
|
};
|
|
1820
1840
|
}
|
|
1821
|
-
function
|
|
1841
|
+
function Rr(e) {
|
|
1822
1842
|
return e.offsetWidth;
|
|
1823
1843
|
}
|
|
1824
|
-
function
|
|
1844
|
+
function zr(e, t, n, r) {
|
|
1825
1845
|
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;
|
|
1826
1846
|
}
|
|
1827
|
-
function
|
|
1847
|
+
function Br(e) {
|
|
1828
1848
|
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;
|
|
1829
|
-
if (t ||= n && n[
|
|
1849
|
+
if (t ||= n && n[xi], t) {
|
|
1830
1850
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
1831
|
-
window.CustomEvent && !
|
|
1851
|
+
window.CustomEvent && !fi && !pi ? h = new CustomEvent(r, {
|
|
1832
1852
|
bubbles: !0,
|
|
1833
1853
|
cancelable: !0
|
|
1834
1854
|
}) : (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;
|
|
1835
|
-
var v =
|
|
1855
|
+
var v = ir(ir({}, m), wi.getEventProperties(r, t));
|
|
1836
1856
|
for (var y in v) h[y] = v[y];
|
|
1837
1857
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
1838
1858
|
}
|
|
1839
1859
|
}
|
|
1840
|
-
function
|
|
1841
|
-
|
|
1842
|
-
putSortable:
|
|
1843
|
-
cloneEl:
|
|
1844
|
-
targetEl:
|
|
1860
|
+
function Vr(e) {
|
|
1861
|
+
Br(ir({
|
|
1862
|
+
putSortable: Ii,
|
|
1863
|
+
cloneEl: ki,
|
|
1864
|
+
targetEl: J,
|
|
1845
1865
|
rootEl: Z,
|
|
1846
|
-
oldIndex:
|
|
1847
|
-
oldDraggableIndex:
|
|
1848
|
-
newIndex:
|
|
1849
|
-
newDraggableIndex:
|
|
1866
|
+
oldIndex: ji,
|
|
1867
|
+
oldDraggableIndex: Ni,
|
|
1868
|
+
newIndex: Mi,
|
|
1869
|
+
newDraggableIndex: Pi
|
|
1850
1870
|
}, e));
|
|
1851
1871
|
}
|
|
1852
|
-
function
|
|
1872
|
+
function q(e, t) {
|
|
1853
1873
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
1854
|
-
this.el = e, this.options = t =
|
|
1874
|
+
this.el = e, this.options = t = sr({}, t), e[xi] = this;
|
|
1855
1875
|
var n = {
|
|
1856
1876
|
group: null,
|
|
1857
1877
|
sort: !0,
|
|
@@ -1864,7 +1884,7 @@ function J(e, t) {
|
|
|
1864
1884
|
invertedSwapThreshold: null,
|
|
1865
1885
|
removeCloneOnHide: !0,
|
|
1866
1886
|
direction: function() {
|
|
1867
|
-
return
|
|
1887
|
+
return sa(e, this.options);
|
|
1868
1888
|
},
|
|
1869
1889
|
ghostClass: "sortable-ghost",
|
|
1870
1890
|
chosenClass: "sortable-chosen",
|
|
@@ -1891,68 +1911,68 @@ function J(e, t) {
|
|
|
1891
1911
|
x: 0,
|
|
1892
1912
|
y: 0
|
|
1893
1913
|
},
|
|
1894
|
-
supportPointer:
|
|
1914
|
+
supportPointer: q.supportPointer !== !1 && "PointerEvent" in window && !hi,
|
|
1895
1915
|
emptyInsertThreshold: 5
|
|
1896
1916
|
};
|
|
1897
|
-
for (var r in
|
|
1898
|
-
for (var i in
|
|
1899
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1917
|
+
for (var r in wi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
1918
|
+
for (var i in ua(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
1919
|
+
this.nativeDraggable = t.forceFallback ? !1 : aa, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? V(e, "pointerdown", this._onTapStart) : (V(e, "mousedown", this._onTapStart), V(e, "touchstart", this._onTapStart)), this.nativeDraggable && (V(e, "dragover", this), V(e, "dragenter", this)), zi.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), sr(this, Lr());
|
|
1900
1920
|
}
|
|
1901
|
-
function
|
|
1921
|
+
function Hr(e) {
|
|
1902
1922
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1903
1923
|
}
|
|
1904
|
-
function
|
|
1905
|
-
var c, l = e[
|
|
1906
|
-
return window.CustomEvent && !
|
|
1924
|
+
function Ur(e, t, n, r, i, a, o, s) {
|
|
1925
|
+
var c, l = e[xi], u = l.options.onMove, d;
|
|
1926
|
+
return window.CustomEvent && !fi && !pi ? c = new CustomEvent("move", {
|
|
1907
1927
|
bubbles: !0,
|
|
1908
1928
|
cancelable: !0
|
|
1909
|
-
}) : (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 ||
|
|
1929
|
+
}) : (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 || G(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
1910
1930
|
}
|
|
1911
|
-
function
|
|
1931
|
+
function Wr(e) {
|
|
1912
1932
|
e.draggable = !1;
|
|
1913
1933
|
}
|
|
1914
|
-
function
|
|
1915
|
-
|
|
1934
|
+
function Gr() {
|
|
1935
|
+
ea = !1;
|
|
1916
1936
|
}
|
|
1917
|
-
function
|
|
1918
|
-
var r =
|
|
1937
|
+
function Kr(e, t, n) {
|
|
1938
|
+
var r = G(wr(n.el, 0, n.options, !0)), i = 10;
|
|
1919
1939
|
return t ? e.clientX < r.left - i || e.clientY < r.top && e.clientX < r.right : e.clientY < r.top - i || e.clientY < r.bottom && e.clientX < r.left;
|
|
1920
1940
|
}
|
|
1921
|
-
function
|
|
1922
|
-
var r =
|
|
1941
|
+
function qr(e, t, n) {
|
|
1942
|
+
var r = G(Tr(n.el, n.options.draggable)), i = 10;
|
|
1923
1943
|
return t ? e.clientX > r.right + i || e.clientX <= r.right && e.clientY > r.bottom && e.clientX >= r.left : e.clientX > r.right && e.clientY > r.top || e.clientX <= r.right && e.clientY > r.bottom + i;
|
|
1924
1944
|
}
|
|
1925
|
-
function
|
|
1945
|
+
function Jr(e, t, n, r, i, a, o, s) {
|
|
1926
1946
|
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;
|
|
1927
1947
|
if (!o) {
|
|
1928
|
-
if (s &&
|
|
1929
|
-
if (!
|
|
1930
|
-
else if (
|
|
1931
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
1948
|
+
if (s && Zi < l * i) {
|
|
1949
|
+
if (!Yi && (Ji === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Yi = !0), Yi) f = !0;
|
|
1950
|
+
else if (Ji === 1 ? c < u + Zi : c > d - Zi) return -Ji;
|
|
1951
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Yr(t);
|
|
1932
1952
|
}
|
|
1933
1953
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
1934
1954
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return
|
|
1955
|
+
function Yr(e) {
|
|
1956
|
+
return K(J) < K(e) ? 1 : -1;
|
|
1937
1957
|
}
|
|
1938
|
-
function
|
|
1958
|
+
function Xr(e) {
|
|
1939
1959
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
1940
1960
|
return r.toString(36);
|
|
1941
1961
|
}
|
|
1942
|
-
function
|
|
1943
|
-
|
|
1962
|
+
function Zr(e) {
|
|
1963
|
+
ta.length = 0;
|
|
1944
1964
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
1945
1965
|
var r = t[n];
|
|
1946
|
-
r.checked &&
|
|
1966
|
+
r.checked && ta.push(r);
|
|
1947
1967
|
}
|
|
1948
1968
|
}
|
|
1949
|
-
function
|
|
1969
|
+
function Qr(e) {
|
|
1950
1970
|
return setTimeout(e, 0);
|
|
1951
1971
|
}
|
|
1952
|
-
function
|
|
1972
|
+
function $r(e) {
|
|
1953
1973
|
return clearTimeout(e);
|
|
1954
1974
|
}
|
|
1955
|
-
function
|
|
1975
|
+
function ei() {
|
|
1956
1976
|
function e() {
|
|
1957
1977
|
for (var e in this.defaults = {
|
|
1958
1978
|
scroll: !0,
|
|
@@ -1965,99 +1985,99 @@ function Xr() {
|
|
|
1965
1985
|
return e.prototype = {
|
|
1966
1986
|
dragStarted: function(e) {
|
|
1967
1987
|
var t = e.originalEvent;
|
|
1968
|
-
this.sortable.nativeDraggable ?
|
|
1988
|
+
this.sortable.nativeDraggable ? V(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? V(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? V(document, "touchmove", this._handleFallbackAutoScroll) : V(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1969
1989
|
},
|
|
1970
1990
|
dragOverCompleted: function(e) {
|
|
1971
1991
|
var t = e.originalEvent;
|
|
1972
1992
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1973
1993
|
},
|
|
1974
1994
|
drop: function() {
|
|
1975
|
-
this.sortable.nativeDraggable ?
|
|
1995
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : (H(document, "pointermove", this._handleFallbackAutoScroll), H(document, "touchmove", this._handleFallbackAutoScroll), H(document, "mousemove", this._handleFallbackAutoScroll)), ni(), ti(), Mr();
|
|
1976
1996
|
},
|
|
1977
1997
|
nulling: function() {
|
|
1978
|
-
|
|
1998
|
+
xa = _a = ga = va = Sa = ya = ba = null, ha.length = 0;
|
|
1979
1999
|
},
|
|
1980
2000
|
_handleFallbackAutoScroll: function(e) {
|
|
1981
2001
|
this._handleAutoScroll(e, !0);
|
|
1982
2002
|
},
|
|
1983
2003
|
_handleAutoScroll: function(e, t) {
|
|
1984
2004
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1985
|
-
if (
|
|
1986
|
-
|
|
1987
|
-
var o =
|
|
1988
|
-
|
|
1989
|
-
var a =
|
|
1990
|
-
a !== o && (o = a,
|
|
1991
|
-
}, 10),
|
|
2005
|
+
if (xa = e, t || this.options.forceAutoScrollFallback || pi || fi || hi) {
|
|
2006
|
+
Ca(e, this.options, a, t);
|
|
2007
|
+
var o = Or(a, !0);
|
|
2008
|
+
va && (!Sa || r !== ya || i !== ba) && (Sa && ni(), Sa = setInterval(function() {
|
|
2009
|
+
var a = Or(document.elementFromPoint(r, i), !0);
|
|
2010
|
+
a !== o && (o = a, ti()), Ca(e, n.options, a, t);
|
|
2011
|
+
}, 10), ya = r, ba = i);
|
|
1992
2012
|
} else {
|
|
1993
|
-
if (!this.options.bubbleScroll ||
|
|
1994
|
-
|
|
2013
|
+
if (!this.options.bubbleScroll || Or(a, !0) === Sr()) {
|
|
2014
|
+
ti();
|
|
1995
2015
|
return;
|
|
1996
2016
|
}
|
|
1997
|
-
|
|
2017
|
+
Ca(e, this.options, Or(a, !1), !1);
|
|
1998
2018
|
}
|
|
1999
2019
|
}
|
|
2000
|
-
},
|
|
2020
|
+
}, sr(e, {
|
|
2001
2021
|
pluginName: "scroll",
|
|
2002
2022
|
initializeByDefault: !0
|
|
2003
2023
|
});
|
|
2004
2024
|
}
|
|
2005
|
-
function
|
|
2006
|
-
|
|
2025
|
+
function ti() {
|
|
2026
|
+
ha.forEach(function(e) {
|
|
2007
2027
|
clearInterval(e.pid);
|
|
2008
|
-
}),
|
|
2028
|
+
}), ha = [];
|
|
2009
2029
|
}
|
|
2010
|
-
function
|
|
2011
|
-
clearInterval(
|
|
2030
|
+
function ni() {
|
|
2031
|
+
clearInterval(Sa);
|
|
2012
2032
|
}
|
|
2013
|
-
function
|
|
2014
|
-
function
|
|
2015
|
-
function
|
|
2033
|
+
function ri() {}
|
|
2034
|
+
function ii() {}
|
|
2035
|
+
function ai() {
|
|
2016
2036
|
function e() {
|
|
2017
2037
|
this.defaults = { swapClass: "sortable-swap-highlight" };
|
|
2018
2038
|
}
|
|
2019
2039
|
return e.prototype = {
|
|
2020
2040
|
dragStart: function(e) {
|
|
2021
|
-
|
|
2041
|
+
Ta = e.dragEl;
|
|
2022
2042
|
},
|
|
2023
2043
|
dragOverValid: function(e) {
|
|
2024
2044
|
var t = e.completed, n = e.target, r = e.onMove, i = e.activeSortable, a = e.changed, o = e.cancel;
|
|
2025
2045
|
if (i.options.swap) {
|
|
2026
2046
|
var s = this.sortable.el, c = this.options;
|
|
2027
2047
|
if (n && n !== s) {
|
|
2028
|
-
var l =
|
|
2029
|
-
r(n) === !1 ?
|
|
2048
|
+
var l = Ta;
|
|
2049
|
+
r(n) === !1 ? Ta = null : (U(n, c.swapClass, !0), Ta = n), l && l !== Ta && U(l, c.swapClass, !1);
|
|
2030
2050
|
}
|
|
2031
2051
|
a(), t(!0), o();
|
|
2032
2052
|
}
|
|
2033
2053
|
},
|
|
2034
2054
|
drop: function(e) {
|
|
2035
2055
|
var t = e.activeSortable, n = e.putSortable, r = e.dragEl, i = n || this.sortable, a = this.options;
|
|
2036
|
-
|
|
2056
|
+
Ta && U(Ta, a.swapClass, !1), Ta && (a.swap || n && n.options.swap) && r !== Ta && (i.captureAnimationState(), i !== t && t.captureAnimationState(), oi(r, Ta), i.animateAll(), i !== t && t.animateAll());
|
|
2037
2057
|
},
|
|
2038
2058
|
nulling: function() {
|
|
2039
|
-
|
|
2059
|
+
Ta = null;
|
|
2040
2060
|
}
|
|
2041
|
-
},
|
|
2061
|
+
}, sr(e, {
|
|
2042
2062
|
pluginName: "swap",
|
|
2043
2063
|
eventProperties: function() {
|
|
2044
|
-
return { swapItem:
|
|
2064
|
+
return { swapItem: Ta };
|
|
2045
2065
|
}
|
|
2046
2066
|
});
|
|
2047
2067
|
}
|
|
2048
|
-
function
|
|
2068
|
+
function oi(e, t) {
|
|
2049
2069
|
var n = e.parentNode, r = t.parentNode, i, a;
|
|
2050
|
-
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i =
|
|
2070
|
+
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i = K(e), a = K(t), n.isEqualNode(r) && i < a && a++, n.insertBefore(t, n.children[i]), r.insertBefore(e, r.children[a]));
|
|
2051
2071
|
}
|
|
2052
|
-
function
|
|
2072
|
+
function si() {
|
|
2053
2073
|
function e(e) {
|
|
2054
2074
|
for (var t in this) t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
2055
|
-
e.options.supportPointer ?
|
|
2075
|
+
e.options.supportPointer ? V(document, "pointerup", this._deselectMultiDrag) : (V(document, "mouseup", this._deselectMultiDrag), V(document, "touchend", this._deselectMultiDrag)), V(document, "keydown", this._checkKeyDown), V(document, "keyup", this._checkKeyUp), this.defaults = {
|
|
2056
2076
|
selectedClass: "sortable-selected",
|
|
2057
2077
|
multiDragKey: null,
|
|
2058
2078
|
setData: function(t, n) {
|
|
2059
2079
|
var r = "";
|
|
2060
|
-
Q.length &&
|
|
2080
|
+
Q.length && Oa === e ? Q.forEach(function(e, t) {
|
|
2061
2081
|
r += (t ? ", " : "") + e.textContent;
|
|
2062
2082
|
}) : r = n.textContent, t.setData("Text", r);
|
|
2063
2083
|
}
|
|
@@ -2075,83 +2095,83 @@ function ri() {
|
|
|
2075
2095
|
setupClone: function(e) {
|
|
2076
2096
|
var t = e.sortable, n = e.cancel;
|
|
2077
2097
|
if (this.isMultiDrag) {
|
|
2078
|
-
for (var r = 0; r < Q.length; r++)
|
|
2098
|
+
for (var r = 0; r < Q.length; r++) Ea.push(Pr(Q[r])), Ea[r].sortableIndex = Q[r].sortableIndex, Ea[r].draggable = !1, Ea[r].style["will-change"] = "", U(Ea[r], this.options.selectedClass, !1), Q[r] === $ && U(Ea[r], this.options.chosenClass, !1);
|
|
2079
2099
|
t._hideClone(), n();
|
|
2080
2100
|
}
|
|
2081
2101
|
},
|
|
2082
2102
|
clone: function(e) {
|
|
2083
2103
|
var t = e.sortable, n = e.rootEl, r = e.dispatchSortableEvent, i = e.cancel;
|
|
2084
|
-
this.isMultiDrag && (this.options.removeCloneOnHide || Q.length &&
|
|
2104
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || Q.length && Oa === t && (li(!0, n), r("clone"), i()));
|
|
2085
2105
|
},
|
|
2086
2106
|
showClone: function(e) {
|
|
2087
2107
|
var t = e.cloneNowShown, n = e.rootEl, r = e.cancel;
|
|
2088
|
-
this.isMultiDrag && (
|
|
2089
|
-
|
|
2090
|
-
}), t(),
|
|
2108
|
+
this.isMultiDrag && (li(!1, n), Ea.forEach(function(e) {
|
|
2109
|
+
W(e, "display", "");
|
|
2110
|
+
}), t(), Na = !1, r());
|
|
2091
2111
|
},
|
|
2092
2112
|
hideClone: function(e) {
|
|
2093
2113
|
var t = this;
|
|
2094
2114
|
e.sortable;
|
|
2095
2115
|
var n = e.cloneNowHidden, r = e.cancel;
|
|
2096
|
-
this.isMultiDrag && (
|
|
2097
|
-
|
|
2098
|
-
}), n(),
|
|
2116
|
+
this.isMultiDrag && (Ea.forEach(function(e) {
|
|
2117
|
+
W(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e);
|
|
2118
|
+
}), n(), Na = !0, r());
|
|
2099
2119
|
},
|
|
2100
2120
|
dragStartGlobal: function(e) {
|
|
2101
|
-
e.sortable, !this.isMultiDrag &&
|
|
2102
|
-
e.sortableIndex =
|
|
2121
|
+
e.sortable, !this.isMultiDrag && Oa && Oa.multiDrag._deselectMultiDrag(), Q.forEach(function(e) {
|
|
2122
|
+
e.sortableIndex = K(e);
|
|
2103
2123
|
}), Q = Q.sort(function(e, t) {
|
|
2104
2124
|
return e.sortableIndex - t.sortableIndex;
|
|
2105
|
-
}),
|
|
2125
|
+
}), ja = !0;
|
|
2106
2126
|
},
|
|
2107
2127
|
dragStarted: function(e) {
|
|
2108
2128
|
var t = this, n = e.sortable;
|
|
2109
2129
|
if (this.isMultiDrag) {
|
|
2110
2130
|
if (this.options.sort && (n.captureAnimationState(), this.options.animation)) {
|
|
2111
2131
|
Q.forEach(function(e) {
|
|
2112
|
-
e !== $ &&
|
|
2132
|
+
e !== $ && W(e, "position", "absolute");
|
|
2113
2133
|
});
|
|
2114
|
-
var r =
|
|
2134
|
+
var r = G($, !1, !0, !0);
|
|
2115
2135
|
Q.forEach(function(e) {
|
|
2116
|
-
e !== $ &&
|
|
2117
|
-
}),
|
|
2136
|
+
e !== $ && Fr(e, r);
|
|
2137
|
+
}), Aa = !0, ka = !0;
|
|
2118
2138
|
}
|
|
2119
2139
|
n.animateAll(function() {
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
}), t.options.sort &&
|
|
2140
|
+
Aa = !1, ka = !1, t.options.animation && Q.forEach(function(e) {
|
|
2141
|
+
Ir(e);
|
|
2142
|
+
}), t.options.sort && ui();
|
|
2123
2143
|
});
|
|
2124
2144
|
}
|
|
2125
2145
|
},
|
|
2126
2146
|
dragOver: function(e) {
|
|
2127
2147
|
var t = e.target, n = e.completed, r = e.cancel;
|
|
2128
|
-
|
|
2148
|
+
Aa && ~Q.indexOf(t) && (n(!1), r());
|
|
2129
2149
|
},
|
|
2130
2150
|
revert: function(e) {
|
|
2131
2151
|
var t = e.fromSortable, n = e.rootEl, r = e.sortable, i = e.dragRect;
|
|
2132
2152
|
Q.length > 1 && (Q.forEach(function(e) {
|
|
2133
2153
|
r.addAnimationState({
|
|
2134
2154
|
target: e,
|
|
2135
|
-
rect:
|
|
2136
|
-
}),
|
|
2137
|
-
}),
|
|
2155
|
+
rect: Aa ? G(e) : i
|
|
2156
|
+
}), Ir(e), e.fromRect = i, t.removeAnimationState(e);
|
|
2157
|
+
}), Aa = !1, ci(!this.options.removeCloneOnHide, n));
|
|
2138
2158
|
},
|
|
2139
2159
|
dragOverCompleted: function(e) {
|
|
2140
2160
|
var t = e.sortable, n = e.isOwner, r = e.insertion, i = e.activeSortable, a = e.parentEl, o = e.putSortable, s = this.options;
|
|
2141
2161
|
if (r) {
|
|
2142
|
-
if (n && i._hideClone(),
|
|
2143
|
-
var c =
|
|
2162
|
+
if (n && i._hideClone(), ka = !1, s.animation && Q.length > 1 && (Aa || !n && !i.options.sort && !o)) {
|
|
2163
|
+
var c = G($, !1, !0, !0);
|
|
2144
2164
|
Q.forEach(function(e) {
|
|
2145
|
-
e !== $ && (
|
|
2146
|
-
}),
|
|
2165
|
+
e !== $ && (Fr(e, c), a.appendChild(e));
|
|
2166
|
+
}), Aa = !0;
|
|
2147
2167
|
}
|
|
2148
|
-
if (!n) if (
|
|
2149
|
-
var l =
|
|
2150
|
-
i._showClone(t), i.options.animation && !
|
|
2168
|
+
if (!n) if (Aa || ui(), Q.length > 1) {
|
|
2169
|
+
var l = Na;
|
|
2170
|
+
i._showClone(t), i.options.animation && !Na && l && Ea.forEach(function(e) {
|
|
2151
2171
|
i.addAnimationState({
|
|
2152
2172
|
target: e,
|
|
2153
|
-
rect:
|
|
2154
|
-
}), e.fromRect =
|
|
2173
|
+
rect: Ma
|
|
2174
|
+
}), e.fromRect = Ma, e.thisAnimationDuration = null;
|
|
2155
2175
|
});
|
|
2156
2176
|
} else i._showClone(t);
|
|
2157
2177
|
}
|
|
@@ -2161,19 +2181,19 @@ function ri() {
|
|
|
2161
2181
|
if (Q.forEach(function(e) {
|
|
2162
2182
|
e.thisAnimationDuration = null;
|
|
2163
2183
|
}), r.options.animation && !n && r.multiDrag.isMultiDrag) {
|
|
2164
|
-
|
|
2165
|
-
var i =
|
|
2166
|
-
|
|
2184
|
+
Ma = sr({}, t);
|
|
2185
|
+
var i = br($, !0);
|
|
2186
|
+
Ma.top -= i.f, Ma.left -= i.e;
|
|
2167
2187
|
}
|
|
2168
2188
|
},
|
|
2169
2189
|
dragOverAnimationComplete: function() {
|
|
2170
|
-
|
|
2190
|
+
Aa && (Aa = !1, ui());
|
|
2171
2191
|
},
|
|
2172
2192
|
drop: function(e) {
|
|
2173
2193
|
var t = e.originalEvent, n = e.rootEl, r = e.parentEl, i = e.sortable, a = e.dispatchSortableEvent, o = e.oldIndex, s = e.putSortable, c = s || this.sortable;
|
|
2174
2194
|
if (t) {
|
|
2175
2195
|
var l = this.options, u = r.children;
|
|
2176
|
-
if (!
|
|
2196
|
+
if (!ja) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), U($, l.selectedClass, !~Q.indexOf($)), ~Q.indexOf($)) Q.splice(Q.indexOf($), 1), Da = null, Br({
|
|
2177
2197
|
sortable: i,
|
|
2178
2198
|
rootEl: n,
|
|
2179
2199
|
name: "deselect",
|
|
@@ -2181,17 +2201,17 @@ function ri() {
|
|
|
2181
2201
|
originalEvt: t
|
|
2182
2202
|
});
|
|
2183
2203
|
else {
|
|
2184
|
-
if (Q.push($),
|
|
2204
|
+
if (Q.push($), Br({
|
|
2185
2205
|
sortable: i,
|
|
2186
2206
|
rootEl: n,
|
|
2187
2207
|
name: "select",
|
|
2188
2208
|
targetEl: $,
|
|
2189
2209
|
originalEvt: t
|
|
2190
|
-
}), t.shiftKey &&
|
|
2191
|
-
var d =
|
|
2210
|
+
}), t.shiftKey && Da && i.el.contains(Da)) {
|
|
2211
|
+
var d = K(Da), f = K($);
|
|
2192
2212
|
if (~d && ~f && d !== f) {
|
|
2193
2213
|
var p, m;
|
|
2194
|
-
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (
|
|
2214
|
+
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (U(u[m], l.selectedClass, !0), Q.push(u[m]), Br({
|
|
2195
2215
|
sortable: i,
|
|
2196
2216
|
rootEl: n,
|
|
2197
2217
|
name: "select",
|
|
@@ -2199,52 +2219,52 @@ function ri() {
|
|
|
2199
2219
|
originalEvt: t
|
|
2200
2220
|
}));
|
|
2201
2221
|
}
|
|
2202
|
-
} else
|
|
2203
|
-
|
|
2222
|
+
} else Da = $;
|
|
2223
|
+
Oa = c;
|
|
2204
2224
|
}
|
|
2205
|
-
if (
|
|
2206
|
-
if (
|
|
2207
|
-
var h =
|
|
2208
|
-
if (!
|
|
2225
|
+
if (ja && this.isMultiDrag) {
|
|
2226
|
+
if (Aa = !1, (r[xi].options.sort || r !== n) && Q.length > 1) {
|
|
2227
|
+
var h = G($), g = K($, ":not(." + this.options.selectedClass + ")");
|
|
2228
|
+
if (!ka && l.animation && ($.thisAnimationDuration = null), c.captureAnimationState(), !ka && (l.animation && ($.fromRect = h, Q.forEach(function(e) {
|
|
2209
2229
|
if (e.thisAnimationDuration = null, e !== $) {
|
|
2210
|
-
var t =
|
|
2230
|
+
var t = Aa ? G(e) : h;
|
|
2211
2231
|
e.fromRect = t, c.addAnimationState({
|
|
2212
2232
|
target: e,
|
|
2213
2233
|
rect: t
|
|
2214
2234
|
});
|
|
2215
2235
|
}
|
|
2216
|
-
})),
|
|
2236
|
+
})), ui(), Q.forEach(function(e) {
|
|
2217
2237
|
u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++;
|
|
2218
|
-
}), o ===
|
|
2238
|
+
}), o === K($))) {
|
|
2219
2239
|
var _ = !1;
|
|
2220
2240
|
Q.forEach(function(e) {
|
|
2221
|
-
if (e.sortableIndex !==
|
|
2241
|
+
if (e.sortableIndex !== K(e)) {
|
|
2222
2242
|
_ = !0;
|
|
2223
2243
|
return;
|
|
2224
2244
|
}
|
|
2225
2245
|
}), _ && a("update");
|
|
2226
2246
|
}
|
|
2227
2247
|
Q.forEach(function(e) {
|
|
2228
|
-
|
|
2248
|
+
Ir(e);
|
|
2229
2249
|
}), c.animateAll();
|
|
2230
2250
|
}
|
|
2231
|
-
|
|
2251
|
+
Oa = c;
|
|
2232
2252
|
}
|
|
2233
|
-
(n === r || s && s.lastPutMode !== "clone") &&
|
|
2253
|
+
(n === r || s && s.lastPutMode !== "clone") && Ea.forEach(function(e) {
|
|
2234
2254
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2235
2255
|
});
|
|
2236
2256
|
}
|
|
2237
2257
|
},
|
|
2238
2258
|
nullingGlobal: function() {
|
|
2239
|
-
this.isMultiDrag =
|
|
2259
|
+
this.isMultiDrag = ja = !1, Ea.length = 0;
|
|
2240
2260
|
},
|
|
2241
2261
|
destroyGlobal: function() {
|
|
2242
|
-
this._deselectMultiDrag(),
|
|
2262
|
+
this._deselectMultiDrag(), H(document, "pointerup", this._deselectMultiDrag), H(document, "mouseup", this._deselectMultiDrag), H(document, "touchend", this._deselectMultiDrag), H(document, "keydown", this._checkKeyDown), H(document, "keyup", this._checkKeyUp);
|
|
2243
2263
|
},
|
|
2244
2264
|
_deselectMultiDrag: function(e) {
|
|
2245
|
-
if (!(
|
|
2265
|
+
if (!(ja !== void 0 && ja) && Oa === this.sortable && !(e && yr(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0)) for (; Q.length;) {
|
|
2246
2266
|
var t = Q[0];
|
|
2247
|
-
|
|
2267
|
+
U(t, this.options.selectedClass, !1), Q.shift(), Br({
|
|
2248
2268
|
sortable: this.sortable,
|
|
2249
2269
|
rootEl: this.sortable.el,
|
|
2250
2270
|
name: "deselect",
|
|
@@ -2259,16 +2279,16 @@ function ri() {
|
|
|
2259
2279
|
_checkKeyUp: function(e) {
|
|
2260
2280
|
e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
2261
2281
|
}
|
|
2262
|
-
},
|
|
2282
|
+
}, sr(e, {
|
|
2263
2283
|
pluginName: "multiDrag",
|
|
2264
2284
|
utils: {
|
|
2265
2285
|
select: function(e) {
|
|
2266
|
-
var t = e.parentNode[
|
|
2267
|
-
!t || !t.options.multiDrag || ~Q.indexOf(e) || (
|
|
2286
|
+
var t = e.parentNode[xi];
|
|
2287
|
+
!t || !t.options.multiDrag || ~Q.indexOf(e) || (Oa && Oa !== t && (Oa.multiDrag._deselectMultiDrag(), Oa = t), U(e, t.options.selectedClass, !0), Q.push(e));
|
|
2268
2288
|
},
|
|
2269
2289
|
deselect: function(e) {
|
|
2270
|
-
var t = e.parentNode[
|
|
2271
|
-
!t || !t.options.multiDrag || !~n || (
|
|
2290
|
+
var t = e.parentNode[xi], n = Q.indexOf(e);
|
|
2291
|
+
!t || !t.options.multiDrag || !~n || (U(e, t.options.selectedClass, !1), Q.splice(n, 1));
|
|
2272
2292
|
}
|
|
2273
2293
|
},
|
|
2274
2294
|
eventProperties: function() {
|
|
@@ -2278,14 +2298,14 @@ function ri() {
|
|
|
2278
2298
|
multiDragElement: r,
|
|
2279
2299
|
index: r.sortableIndex
|
|
2280
2300
|
});
|
|
2281
|
-
var i =
|
|
2301
|
+
var i = Aa && r !== $ ? -1 : Aa ? K(r, ":not(." + e.options.selectedClass + ")") : K(r);
|
|
2282
2302
|
n.push({
|
|
2283
2303
|
multiDragElement: r,
|
|
2284
2304
|
index: i
|
|
2285
2305
|
});
|
|
2286
2306
|
}), {
|
|
2287
|
-
items:
|
|
2288
|
-
clones: [].concat(
|
|
2307
|
+
items: ur(Q),
|
|
2308
|
+
clones: [].concat(Ea),
|
|
2289
2309
|
oldIndicies: t,
|
|
2290
2310
|
newIndicies: n
|
|
2291
2311
|
};
|
|
@@ -2295,33 +2315,33 @@ function ri() {
|
|
|
2295
2315
|
} }
|
|
2296
2316
|
});
|
|
2297
2317
|
}
|
|
2298
|
-
function
|
|
2318
|
+
function ci(e, t) {
|
|
2299
2319
|
Q.forEach(function(n, r) {
|
|
2300
2320
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
2301
2321
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
2302
2322
|
});
|
|
2303
2323
|
}
|
|
2304
|
-
function
|
|
2305
|
-
|
|
2324
|
+
function li(e, t) {
|
|
2325
|
+
Ea.forEach(function(n, r) {
|
|
2306
2326
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
2307
2327
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
2308
2328
|
});
|
|
2309
2329
|
}
|
|
2310
|
-
function
|
|
2330
|
+
function ui() {
|
|
2311
2331
|
Q.forEach(function(e) {
|
|
2312
2332
|
e !== $ && e.parentNode && e.parentNode.removeChild(e);
|
|
2313
2333
|
});
|
|
2314
2334
|
}
|
|
2315
|
-
var
|
|
2316
|
-
|
|
2335
|
+
var di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Ci, wi, Ti, Ei, J, Y, X, Z, Di, Oi, ki, Ai, ji, Mi, Ni, Pi, Fi, Ii, Li, Ri, zi, Bi, Vi, Hi, Ui, Wi, Gi, Ki, qi, Ji, Yi, Xi, Zi, Qi, $i, ea, ta, na, ra, ia, aa, oa, sa, ca, la, ua, da, fa, pa, ma, ha, ga, _a, va, ya, ba, xa, Sa, Ca, wa, Ta, Q, Ea, Da, Oa, ka, Aa, ja, $, Ma, Na, Pa = at((() => {
|
|
2336
|
+
di = "1.14.0", fi = gr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), pi = gr(/Edge/i), mi = gr(/firefox/i), hi = gr(/safari/i) && !gr(/chrome/i) && !gr(/android/i), gi = gr(/iP(ad|od|hone)/i), _i = gr(/chrome/i) && gr(/android/i), vi = {
|
|
2317
2337
|
capture: !1,
|
|
2318
2338
|
passive: !1
|
|
2319
|
-
},
|
|
2339
|
+
}, yi = /\s+/g, xi = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), Si = [], Ci = { initializeByDefault: !0 }, wi = {
|
|
2320
2340
|
mount: function(e) {
|
|
2321
|
-
for (var t in
|
|
2322
|
-
|
|
2341
|
+
for (var t in Ci) Ci.hasOwnProperty(t) && !(t in e) && (e[t] = Ci[t]);
|
|
2342
|
+
Si.forEach(function(t) {
|
|
2323
2343
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2324
|
-
}),
|
|
2344
|
+
}), Si.push(e);
|
|
2325
2345
|
},
|
|
2326
2346
|
pluginEvent: function(e, t, n) {
|
|
2327
2347
|
var r = this;
|
|
@@ -2329,16 +2349,16 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2329
2349
|
r.eventCanceled = !0;
|
|
2330
2350
|
};
|
|
2331
2351
|
var i = e + "Global";
|
|
2332
|
-
|
|
2333
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2352
|
+
Si.forEach(function(r) {
|
|
2353
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](ir({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](ir({ sortable: t }, n)));
|
|
2334
2354
|
});
|
|
2335
2355
|
},
|
|
2336
2356
|
initializePlugins: function(e, t, n, r) {
|
|
2337
|
-
for (var i in
|
|
2357
|
+
for (var i in Si.forEach(function(r) {
|
|
2338
2358
|
var i = r.pluginName;
|
|
2339
2359
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
2340
2360
|
var a = new r(e, t, e.options);
|
|
2341
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2361
|
+
a.sortable = e, a.options = e.options, e[i] = a, sr(n, a.defaults);
|
|
2342
2362
|
}
|
|
2343
2363
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2344
2364
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2347,79 +2367,79 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2347
2367
|
},
|
|
2348
2368
|
getEventProperties: function(e, t) {
|
|
2349
2369
|
var n = {};
|
|
2350
|
-
return
|
|
2351
|
-
typeof r.eventProperties == "function" &&
|
|
2370
|
+
return Si.forEach(function(r) {
|
|
2371
|
+
typeof r.eventProperties == "function" && sr(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2352
2372
|
}), n;
|
|
2353
2373
|
},
|
|
2354
2374
|
modifyOption: function(e, t, n) {
|
|
2355
2375
|
var r;
|
|
2356
|
-
return
|
|
2376
|
+
return Si.forEach(function(i) {
|
|
2357
2377
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2358
2378
|
}), r;
|
|
2359
2379
|
}
|
|
2360
|
-
},
|
|
2361
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2362
|
-
|
|
2363
|
-
dragEl:
|
|
2364
|
-
parentEl:
|
|
2380
|
+
}, Ti = ["evt"], Ei = function(e, t) {
|
|
2381
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = lr(n, Ti);
|
|
2382
|
+
wi.pluginEvent.bind(q)(e, t, ir({
|
|
2383
|
+
dragEl: J,
|
|
2384
|
+
parentEl: Y,
|
|
2365
2385
|
ghostEl: X,
|
|
2366
2386
|
rootEl: Z,
|
|
2367
|
-
nextEl:
|
|
2368
|
-
lastDownEl:
|
|
2369
|
-
cloneEl:
|
|
2370
|
-
cloneHidden:
|
|
2371
|
-
dragStarted:
|
|
2372
|
-
putSortable:
|
|
2373
|
-
activeSortable:
|
|
2387
|
+
nextEl: Di,
|
|
2388
|
+
lastDownEl: Oi,
|
|
2389
|
+
cloneEl: ki,
|
|
2390
|
+
cloneHidden: Ai,
|
|
2391
|
+
dragStarted: Ki,
|
|
2392
|
+
putSortable: Ii,
|
|
2393
|
+
activeSortable: q.active,
|
|
2374
2394
|
originalEvent: r,
|
|
2375
|
-
oldIndex:
|
|
2376
|
-
oldDraggableIndex:
|
|
2377
|
-
newIndex:
|
|
2378
|
-
newDraggableIndex:
|
|
2379
|
-
hideGhostForTarget:
|
|
2380
|
-
unhideGhostForTarget:
|
|
2395
|
+
oldIndex: ji,
|
|
2396
|
+
oldDraggableIndex: Ni,
|
|
2397
|
+
newIndex: Mi,
|
|
2398
|
+
newDraggableIndex: Pi,
|
|
2399
|
+
hideGhostForTarget: da,
|
|
2400
|
+
unhideGhostForTarget: fa,
|
|
2381
2401
|
cloneNowHidden: function() {
|
|
2382
|
-
|
|
2402
|
+
Ai = !0;
|
|
2383
2403
|
},
|
|
2384
2404
|
cloneNowShown: function() {
|
|
2385
|
-
|
|
2405
|
+
Ai = !1;
|
|
2386
2406
|
},
|
|
2387
2407
|
dispatchSortableEvent: function(e) {
|
|
2388
|
-
|
|
2408
|
+
Vr({
|
|
2389
2409
|
sortable: t,
|
|
2390
2410
|
name: e,
|
|
2391
2411
|
originalEvent: r
|
|
2392
2412
|
});
|
|
2393
2413
|
}
|
|
2394
2414
|
}, i));
|
|
2395
|
-
},
|
|
2396
|
-
if (
|
|
2397
|
-
if (
|
|
2415
|
+
}, Li = !1, Ri = !1, zi = [], Yi = !1, Xi = !1, $i = [], ea = !1, ta = [], na = typeof document < "u", ra = gi, ia = pi || fi ? "cssFloat" : "float", aa = na && !_i && !gi && "draggable" in document.createElement("div"), oa = function() {
|
|
2416
|
+
if (na) {
|
|
2417
|
+
if (fi) return !1;
|
|
2398
2418
|
var e = document.createElement("x");
|
|
2399
2419
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2400
2420
|
}
|
|
2401
|
-
}(),
|
|
2402
|
-
var n =
|
|
2421
|
+
}(), sa = function(e, t) {
|
|
2422
|
+
var n = W(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = wr(e, 0, t), a = wr(e, 1, t), o = i && W(i), s = a && W(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + G(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + G(a).width;
|
|
2403
2423
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2404
2424
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2405
2425
|
if (i && o.float && o.float !== "none") {
|
|
2406
2426
|
var u = o.float === "left" ? "left" : "right";
|
|
2407
2427
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2408
2428
|
}
|
|
2409
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2410
|
-
},
|
|
2429
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ia] === "none" || a && n[ia] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2430
|
+
}, ca = function(e, t, n) {
|
|
2411
2431
|
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;
|
|
2412
2432
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2413
|
-
},
|
|
2433
|
+
}, la = function(e, t) {
|
|
2414
2434
|
var n;
|
|
2415
|
-
return
|
|
2416
|
-
var i = r[
|
|
2417
|
-
if (!(!i ||
|
|
2418
|
-
var a =
|
|
2435
|
+
return zi.some(function(r) {
|
|
2436
|
+
var i = r[xi].options.emptyInsertThreshold;
|
|
2437
|
+
if (!(!i || Tr(r))) {
|
|
2438
|
+
var a = G(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2419
2439
|
if (o && s) return n = r;
|
|
2420
2440
|
}
|
|
2421
2441
|
}), n;
|
|
2422
|
-
},
|
|
2442
|
+
}, ua = function(e) {
|
|
2423
2443
|
function t(e, n) {
|
|
2424
2444
|
return function(r, i, a, o) {
|
|
2425
2445
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2432,92 +2452,92 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2432
2452
|
};
|
|
2433
2453
|
}
|
|
2434
2454
|
var n = {}, r = e.group;
|
|
2435
|
-
(!r ||
|
|
2436
|
-
},
|
|
2437
|
-
!
|
|
2438
|
-
},
|
|
2439
|
-
!
|
|
2440
|
-
},
|
|
2441
|
-
if (
|
|
2442
|
-
}, !0),
|
|
2443
|
-
if (
|
|
2455
|
+
(!r || ar(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;
|
|
2456
|
+
}, da = function() {
|
|
2457
|
+
!oa && X && W(X, "display", "none");
|
|
2458
|
+
}, fa = function() {
|
|
2459
|
+
!oa && X && W(X, "display", "");
|
|
2460
|
+
}, na && document.addEventListener("click", function(e) {
|
|
2461
|
+
if (Ri) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ri = !1, !1;
|
|
2462
|
+
}, !0), pa = function(e) {
|
|
2463
|
+
if (J) {
|
|
2444
2464
|
e = e.touches ? e.touches[0] : e;
|
|
2445
|
-
var t =
|
|
2465
|
+
var t = la(e.clientX, e.clientY);
|
|
2446
2466
|
if (t) {
|
|
2447
2467
|
var n = {};
|
|
2448
2468
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2449
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
2469
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[xi]._onDragOver(n);
|
|
2450
2470
|
}
|
|
2451
2471
|
}
|
|
2452
|
-
},
|
|
2453
|
-
|
|
2454
|
-
},
|
|
2455
|
-
constructor:
|
|
2472
|
+
}, ma = function(e) {
|
|
2473
|
+
J && J.parentNode[xi]._isOutsideThisEl(e.target);
|
|
2474
|
+
}, q.prototype = {
|
|
2475
|
+
constructor: q,
|
|
2456
2476
|
_isOutsideThisEl: function(e) {
|
|
2457
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2477
|
+
!this.el.contains(e) && e !== this.el && (qi = null);
|
|
2458
2478
|
},
|
|
2459
2479
|
_getDirection: function(e, t) {
|
|
2460
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t,
|
|
2480
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, J) : this.options.direction;
|
|
2461
2481
|
},
|
|
2462
2482
|
_onTapStart: function(e) {
|
|
2463
2483
|
if (e.cancelable) {
|
|
2464
2484
|
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;
|
|
2465
|
-
if (
|
|
2466
|
-
if (
|
|
2485
|
+
if (Zr(n), !J && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && hi && s && s.tagName.toUpperCase() === "SELECT") && (s = yr(s, r.draggable, n, !1), !(s && s.animated) && Oi !== s)) {
|
|
2486
|
+
if (ji = K(s), Ni = K(s, r.draggable), typeof l == "function") {
|
|
2467
2487
|
if (l.call(this, e, s, this)) {
|
|
2468
|
-
|
|
2488
|
+
Vr({
|
|
2469
2489
|
sortable: t,
|
|
2470
2490
|
rootEl: c,
|
|
2471
2491
|
name: "filter",
|
|
2472
2492
|
targetEl: s,
|
|
2473
2493
|
toEl: n,
|
|
2474
2494
|
fromEl: n
|
|
2475
|
-
}),
|
|
2495
|
+
}), Ei("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
2476
2496
|
return;
|
|
2477
2497
|
}
|
|
2478
2498
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2479
|
-
if (r =
|
|
2499
|
+
if (r = yr(c, r.trim(), n, !1), r) return Vr({
|
|
2480
2500
|
sortable: t,
|
|
2481
2501
|
rootEl: r,
|
|
2482
2502
|
name: "filter",
|
|
2483
2503
|
targetEl: s,
|
|
2484
2504
|
fromEl: n,
|
|
2485
2505
|
toEl: n
|
|
2486
|
-
}),
|
|
2506
|
+
}), Ei("filter", t, { evt: e }), !0;
|
|
2487
2507
|
}), l)) {
|
|
2488
2508
|
i && e.cancelable && e.preventDefault();
|
|
2489
2509
|
return;
|
|
2490
2510
|
}
|
|
2491
|
-
r.handle && !
|
|
2511
|
+
r.handle && !yr(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2492
2512
|
}
|
|
2493
2513
|
}
|
|
2494
2514
|
},
|
|
2495
2515
|
_prepareDragStart: function(e, t, n) {
|
|
2496
2516
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2497
|
-
if (n && !
|
|
2498
|
-
var c =
|
|
2499
|
-
if (Z = i,
|
|
2500
|
-
target:
|
|
2517
|
+
if (n && !J && n.parentNode === i) {
|
|
2518
|
+
var c = G(n);
|
|
2519
|
+
if (Z = i, J = n, Y = J.parentNode, Di = J.nextSibling, Oi = n, Fi = a.group, q.dragged = J, Bi = {
|
|
2520
|
+
target: J,
|
|
2501
2521
|
clientX: (t || e).clientX,
|
|
2502
2522
|
clientY: (t || e).clientY
|
|
2503
|
-
},
|
|
2504
|
-
if (
|
|
2523
|
+
}, Wi = Bi.clientX - c.left, Gi = Bi.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, J.style["will-change"] = "all", s = function() {
|
|
2524
|
+
if (Ei("delayEnded", r, { evt: e }), q.eventCanceled) {
|
|
2505
2525
|
r._onDrop();
|
|
2506
2526
|
return;
|
|
2507
2527
|
}
|
|
2508
|
-
r._disableDelayedDragEvents(), !
|
|
2528
|
+
r._disableDelayedDragEvents(), !mi && r.nativeDraggable && (J.draggable = !0), r._triggerDragStart(e, t), Vr({
|
|
2509
2529
|
sortable: r,
|
|
2510
2530
|
name: "choose",
|
|
2511
2531
|
originalEvent: e
|
|
2512
|
-
}),
|
|
2532
|
+
}), U(J, a.chosenClass, !0);
|
|
2513
2533
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2514
|
-
|
|
2515
|
-
}),
|
|
2516
|
-
if (
|
|
2534
|
+
xr(J, e.trim(), Wr);
|
|
2535
|
+
}), V(o, "dragover", pa), V(o, "mousemove", pa), V(o, "touchmove", pa), V(o, "mouseup", r._onDrop), V(o, "touchend", r._onDrop), V(o, "touchcancel", r._onDrop), mi && this.nativeDraggable && (this.options.touchStartThreshold = 4, J.draggable = !0), Ei("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(pi || fi))) {
|
|
2536
|
+
if (q.eventCanceled) {
|
|
2517
2537
|
this._onDrop();
|
|
2518
2538
|
return;
|
|
2519
2539
|
}
|
|
2520
|
-
|
|
2540
|
+
V(o, "mouseup", r._disableDelayedDrag), V(o, "touchend", r._disableDelayedDrag), V(o, "touchcancel", r._disableDelayedDrag), V(o, "mousemove", r._delayedDragTouchMoveHandler), V(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && V(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
2521
2541
|
} else s();
|
|
2522
2542
|
}
|
|
2523
2543
|
},
|
|
@@ -2526,25 +2546,25 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2526
2546
|
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();
|
|
2527
2547
|
},
|
|
2528
2548
|
_disableDelayedDrag: function() {
|
|
2529
|
-
|
|
2549
|
+
J && Wr(J), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2530
2550
|
},
|
|
2531
2551
|
_disableDelayedDragEvents: function() {
|
|
2532
2552
|
var e = this.el.ownerDocument;
|
|
2533
|
-
|
|
2553
|
+
H(e, "mouseup", this._disableDelayedDrag), H(e, "touchend", this._disableDelayedDrag), H(e, "touchcancel", this._disableDelayedDrag), H(e, "mousemove", this._delayedDragTouchMoveHandler), H(e, "touchmove", this._delayedDragTouchMoveHandler), H(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2534
2554
|
},
|
|
2535
2555
|
_triggerDragStart: function(e, t) {
|
|
2536
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
2556
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? V(document, "pointermove", this._onTouchMove) : t ? V(document, "touchmove", this._onTouchMove) : V(document, "mousemove", this._onTouchMove) : (V(J, "dragend", this), V(Z, "dragstart", this._onDragStart));
|
|
2537
2557
|
try {
|
|
2538
|
-
document.selection ?
|
|
2558
|
+
document.selection ? Qr(function() {
|
|
2539
2559
|
document.selection.empty();
|
|
2540
2560
|
}) : window.getSelection().removeAllRanges();
|
|
2541
2561
|
} catch {}
|
|
2542
2562
|
},
|
|
2543
2563
|
_dragStarted: function(e, t) {
|
|
2544
|
-
if (
|
|
2545
|
-
|
|
2564
|
+
if (Li = !1, Z && J) {
|
|
2565
|
+
Ei("dragStarted", this, { evt: t }), this.nativeDraggable && V(document, "dragover", ma);
|
|
2546
2566
|
var n = this.options;
|
|
2547
|
-
!e &&
|
|
2567
|
+
!e && U(J, n.dragClass, !1), U(J, n.ghostClass, !0), q.active = this, e && this._appendGhost(), Vr({
|
|
2548
2568
|
sortable: this,
|
|
2549
2569
|
name: "start",
|
|
2550
2570
|
originalEvent: t
|
|
@@ -2552,33 +2572,33 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2552
2572
|
} else this._nulling();
|
|
2553
2573
|
},
|
|
2554
2574
|
_emulateDragOver: function() {
|
|
2555
|
-
if (
|
|
2556
|
-
this._lastX =
|
|
2557
|
-
for (var e = document.elementFromPoint(
|
|
2558
|
-
if (
|
|
2559
|
-
if (t[
|
|
2575
|
+
if (Vi) {
|
|
2576
|
+
this._lastX = Vi.clientX, this._lastY = Vi.clientY, da();
|
|
2577
|
+
for (var e = document.elementFromPoint(Vi.clientX, Vi.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Vi.clientX, Vi.clientY), e !== t);) t = e;
|
|
2578
|
+
if (J.parentNode[xi]._isOutsideThisEl(e), t) do {
|
|
2579
|
+
if (t[xi]) {
|
|
2560
2580
|
var n = void 0;
|
|
2561
|
-
if (n = t[
|
|
2562
|
-
clientX:
|
|
2563
|
-
clientY:
|
|
2581
|
+
if (n = t[xi]._onDragOver({
|
|
2582
|
+
clientX: Vi.clientX,
|
|
2583
|
+
clientY: Vi.clientY,
|
|
2564
2584
|
target: e,
|
|
2565
2585
|
rootEl: t
|
|
2566
2586
|
}), n && !this.options.dragoverBubble) break;
|
|
2567
2587
|
}
|
|
2568
2588
|
e = t;
|
|
2569
2589
|
} while (t = t.parentNode);
|
|
2570
|
-
|
|
2590
|
+
fa();
|
|
2571
2591
|
}
|
|
2572
2592
|
},
|
|
2573
2593
|
_onTouchMove: function(e) {
|
|
2574
|
-
if (
|
|
2575
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X &&
|
|
2576
|
-
if (!
|
|
2594
|
+
if (Bi) {
|
|
2595
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && br(X, !0), o = X && a && a.a, s = X && a && a.d, c = ra && Qi && Er(Qi), l = (i.clientX - Bi.clientX + r.x) / (o || 1) + (c ? c[0] - $i[0] : 0) / (o || 1), u = (i.clientY - Bi.clientY + r.y) / (s || 1) + (c ? c[1] - $i[1] : 0) / (s || 1);
|
|
2596
|
+
if (!q.active && !Li) {
|
|
2577
2597
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2578
2598
|
this._onDragStart(e, !0);
|
|
2579
2599
|
}
|
|
2580
2600
|
if (X) {
|
|
2581
|
-
a ? (a.e += l - (
|
|
2601
|
+
a ? (a.e += l - (Hi || 0), a.f += u - (Ui || 0)) : a = {
|
|
2582
2602
|
a: 1,
|
|
2583
2603
|
b: 0,
|
|
2584
2604
|
c: 0,
|
|
@@ -2587,39 +2607,39 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2587
2607
|
f: u
|
|
2588
2608
|
};
|
|
2589
2609
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2590
|
-
|
|
2610
|
+
W(X, "webkitTransform", d), W(X, "mozTransform", d), W(X, "msTransform", d), W(X, "transform", d), Hi = l, Ui = u, Vi = i;
|
|
2591
2611
|
}
|
|
2592
2612
|
e.cancelable && e.preventDefault();
|
|
2593
2613
|
}
|
|
2594
2614
|
},
|
|
2595
2615
|
_appendGhost: function() {
|
|
2596
2616
|
if (!X) {
|
|
2597
|
-
var e = this.options.fallbackOnBody ? document.body : Z, t =
|
|
2598
|
-
if (
|
|
2599
|
-
for (
|
|
2600
|
-
|
|
2617
|
+
var e = this.options.fallbackOnBody ? document.body : Z, t = G(J, !0, ra, !0, e), n = this.options;
|
|
2618
|
+
if (ra) {
|
|
2619
|
+
for (Qi = e; W(Qi, "position") === "static" && W(Qi, "transform") === "none" && Qi !== document;) Qi = Qi.parentNode;
|
|
2620
|
+
Qi !== document.body && Qi !== document.documentElement ? (Qi === document && (Qi = Sr()), t.top += Qi.scrollTop, t.left += Qi.scrollLeft) : Qi = Sr(), $i = Er(Qi);
|
|
2601
2621
|
}
|
|
2602
|
-
X =
|
|
2622
|
+
X = J.cloneNode(!0), U(X, n.ghostClass, !1), U(X, n.fallbackClass, !0), U(X, n.dragClass, !0), W(X, "transition", ""), W(X, "transform", ""), W(X, "box-sizing", "border-box"), W(X, "margin", 0), W(X, "top", t.top), W(X, "left", t.left), W(X, "width", t.width), W(X, "height", t.height), W(X, "opacity", "0.8"), W(X, "position", ra ? "absolute" : "fixed"), W(X, "zIndex", "100000"), W(X, "pointerEvents", "none"), q.ghost = X, e.appendChild(X), W(X, "transform-origin", Wi / parseInt(X.style.width) * 100 + "% " + Gi / parseInt(X.style.height) * 100 + "%");
|
|
2603
2623
|
}
|
|
2604
2624
|
},
|
|
2605
2625
|
_onDragStart: function(e, t) {
|
|
2606
2626
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
2607
|
-
if (
|
|
2627
|
+
if (Ei("dragStart", this, { evt: e }), q.eventCanceled) {
|
|
2608
2628
|
this._onDrop();
|
|
2609
2629
|
return;
|
|
2610
2630
|
}
|
|
2611
|
-
|
|
2612
|
-
|
|
2631
|
+
Ei("setupClone", this), q.eventCanceled || (ki = Pr(J), ki.draggable = !1, ki.style["will-change"] = "", this._hideClone(), U(ki, this.options.chosenClass, !1), q.clone = ki), n.cloneId = Qr(function() {
|
|
2632
|
+
Ei("clone", n), !q.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(ki, J), n._hideClone(), Vr({
|
|
2613
2633
|
sortable: n,
|
|
2614
2634
|
name: "clone"
|
|
2615
2635
|
}));
|
|
2616
|
-
}), !t &&
|
|
2636
|
+
}), !t && U(J, i.dragClass, !0), t ? (Ri = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (H(document, "mouseup", n._onDrop), H(document, "touchend", n._onDrop), H(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, J)), V(document, "drop", n), W(J, "transform", "translateZ(0)")), Li = !0, n._dragStartId = Qr(n._dragStarted.bind(n, t, e)), V(document, "selectstart", n), Ki = !0, hi && W(document.body, "user-select", "none");
|
|
2617
2637
|
},
|
|
2618
2638
|
_onDragOver: function(e) {
|
|
2619
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c =
|
|
2620
|
-
if (
|
|
2639
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = q.active, l = Fi === s, u = o.sort, d = Ii || c, f, p = this, m = !1;
|
|
2640
|
+
if (ea) return;
|
|
2621
2641
|
function h(o, s) {
|
|
2622
|
-
|
|
2642
|
+
Ei(o, p, ir({
|
|
2623
2643
|
evt: e,
|
|
2624
2644
|
isOwner: l,
|
|
2625
2645
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2631,7 +2651,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2631
2651
|
target: n,
|
|
2632
2652
|
completed: _,
|
|
2633
2653
|
onMove: function(n, i) {
|
|
2634
|
-
return
|
|
2654
|
+
return Ur(Z, t, J, r, n, G(n), e, i);
|
|
2635
2655
|
},
|
|
2636
2656
|
changed: v
|
|
2637
2657
|
}, s));
|
|
@@ -2640,119 +2660,119 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2640
2660
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2641
2661
|
}
|
|
2642
2662
|
function _(r) {
|
|
2643
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2663
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (U(J, Ii ? Ii.options.ghostClass : c.options.ghostClass, !1), U(J, o.ghostClass, !0)), Ii !== p && p !== q.active ? Ii = p : p === q.active && Ii && (Ii = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2644
2664
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2645
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n ===
|
|
2665
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === J && !J.animated || n === t && !n.animated) && (qi = null), !o.dragoverBubble && !e.rootEl && n !== document && (J.parentNode[xi]._isOutsideThisEl(e.target), !r && pa(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2646
2666
|
}
|
|
2647
2667
|
function v() {
|
|
2648
|
-
|
|
2668
|
+
Mi = K(J), Pi = K(J, o.draggable), Vr({
|
|
2649
2669
|
sortable: p,
|
|
2650
2670
|
name: "change",
|
|
2651
2671
|
toEl: t,
|
|
2652
|
-
newIndex:
|
|
2653
|
-
newDraggableIndex:
|
|
2672
|
+
newIndex: Mi,
|
|
2673
|
+
newDraggableIndex: Pi,
|
|
2654
2674
|
originalEvent: e
|
|
2655
2675
|
});
|
|
2656
2676
|
}
|
|
2657
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2658
|
-
if (
|
|
2659
|
-
if (
|
|
2660
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
2661
|
-
if (a) return
|
|
2662
|
-
var y =
|
|
2663
|
-
if (!y ||
|
|
2664
|
-
if (y ===
|
|
2665
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
2666
|
-
} else if (y &&
|
|
2667
|
-
var b =
|
|
2668
|
-
if (b ===
|
|
2669
|
-
if (n = b, i =
|
|
2677
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = yr(n, o.draggable, t, !0), h("dragOver"), q.eventCanceled) return m;
|
|
2678
|
+
if (J.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2679
|
+
if (Ri = !1, c && !o.disabled && (l ? u || (a = Y !== Z) : Ii === this || (this.lastPutMode = Fi.checkPull(this, c, J, e)) && s.checkPut(this, c, J, e))) {
|
|
2680
|
+
if (f = this._getDirection(e, n) === "vertical", r = G(J), h("dragOverValid"), q.eventCanceled) return m;
|
|
2681
|
+
if (a) return Y = Z, g(), this._hideClone(), h("revert"), q.eventCanceled || (Di ? Z.insertBefore(J, Di) : Z.appendChild(J)), _(!0);
|
|
2682
|
+
var y = Tr(t, o.draggable);
|
|
2683
|
+
if (!y || qr(e, f, this) && !y.animated) {
|
|
2684
|
+
if (y === J) return _(!1);
|
|
2685
|
+
if (y && t === e.target && (n = y), n && (i = G(n)), Ur(Z, t, J, r, n, i, e, !!n) !== !1) return g(), t.appendChild(J), Y = t, v(), _(!0);
|
|
2686
|
+
} else if (y && Kr(e, f, this)) {
|
|
2687
|
+
var b = wr(t, 0, o, !0);
|
|
2688
|
+
if (b === J) return _(!1);
|
|
2689
|
+
if (n = b, i = G(n), Ur(Z, t, J, r, n, i, e, !1) !== !1) return g(), t.insertBefore(J, b), Y = t, v(), _(!0);
|
|
2670
2690
|
} else if (n.parentNode === t) {
|
|
2671
|
-
i =
|
|
2672
|
-
var x = 0, S, C =
|
|
2673
|
-
|
|
2691
|
+
i = G(n);
|
|
2692
|
+
var x = 0, S, C = J.parentNode !== t, ee = !ca(J.animated && J.toRect || r, n.animated && n.toRect || i, f), w = f ? "top" : "left", T = Cr(n, "top", "top") || Cr(J, "top", "top"), E = T ? T.scrollTop : void 0;
|
|
2693
|
+
qi !== n && (S = i[w], Yi = !1, Xi = !ee && o.invertSwap || C), x = Jr(e, n, i, f, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Xi, qi === n);
|
|
2674
2694
|
var D;
|
|
2675
2695
|
if (x !== 0) {
|
|
2676
|
-
var
|
|
2696
|
+
var te = K(J);
|
|
2677
2697
|
do
|
|
2678
|
-
|
|
2679
|
-
while (D && (
|
|
2698
|
+
te -= x, D = Y.children[te];
|
|
2699
|
+
while (D && (W(D, "display") === "none" || D === X));
|
|
2680
2700
|
}
|
|
2681
2701
|
if (x === 0 || D === n) return _(!1);
|
|
2682
|
-
|
|
2683
|
-
var
|
|
2684
|
-
|
|
2685
|
-
var
|
|
2686
|
-
if (
|
|
2702
|
+
qi = n, Ji = x;
|
|
2703
|
+
var ne = n.nextElementSibling, O = !1;
|
|
2704
|
+
O = x === 1;
|
|
2705
|
+
var re = Ur(Z, t, J, r, n, i, e, O);
|
|
2706
|
+
if (re !== !1) return (re === 1 || re === -1) && (O = re === 1), ea = !0, setTimeout(Gr, 30), g(), O && !ne ? t.appendChild(J) : n.parentNode.insertBefore(J, O ? ne : n), T && Nr(T, 0, E - T.scrollTop), Y = J.parentNode, S !== void 0 && !Xi && (Zi = Math.abs(S - G(n)[w])), v(), _(!0);
|
|
2687
2707
|
}
|
|
2688
|
-
if (t.contains(
|
|
2708
|
+
if (t.contains(J)) return _(!1);
|
|
2689
2709
|
}
|
|
2690
2710
|
return !1;
|
|
2691
2711
|
},
|
|
2692
2712
|
_ignoreWhileAnimating: null,
|
|
2693
2713
|
_offMoveEvents: function() {
|
|
2694
|
-
|
|
2714
|
+
H(document, "mousemove", this._onTouchMove), H(document, "touchmove", this._onTouchMove), H(document, "pointermove", this._onTouchMove), H(document, "dragover", pa), H(document, "mousemove", pa), H(document, "touchmove", pa);
|
|
2695
2715
|
},
|
|
2696
2716
|
_offUpEvents: function() {
|
|
2697
2717
|
var e = this.el.ownerDocument;
|
|
2698
|
-
|
|
2718
|
+
H(e, "mouseup", this._onDrop), H(e, "touchend", this._onDrop), H(e, "pointerup", this._onDrop), H(e, "touchcancel", this._onDrop), H(document, "selectstart", this);
|
|
2699
2719
|
},
|
|
2700
2720
|
_onDrop: function(e) {
|
|
2701
2721
|
var t = this.el, n = this.options;
|
|
2702
|
-
if (
|
|
2722
|
+
if (Mi = K(J), Pi = K(J, n.draggable), Ei("drop", this, { evt: e }), Y = J && J.parentNode, Mi = K(J), Pi = K(J, n.draggable), q.eventCanceled) {
|
|
2703
2723
|
this._nulling();
|
|
2704
2724
|
return;
|
|
2705
2725
|
}
|
|
2706
|
-
|
|
2726
|
+
Li = !1, Xi = !1, Yi = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), $r(this.cloneId), $r(this._dragStartId), this.nativeDraggable && (H(document, "drop", this), H(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), hi && W(document.body, "user-select", ""), W(J, "transform", ""), e && (Ki && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Y || Ii && Ii.lastPutMode !== "clone") && ki && ki.parentNode && ki.parentNode.removeChild(ki), J && (this.nativeDraggable && H(J, "dragend", this), Wr(J), J.style["will-change"] = "", Ki && !Li && U(J, Ii ? Ii.options.ghostClass : this.options.ghostClass, !1), U(J, this.options.chosenClass, !1), Vr({
|
|
2707
2727
|
sortable: this,
|
|
2708
2728
|
name: "unchoose",
|
|
2709
|
-
toEl:
|
|
2729
|
+
toEl: Y,
|
|
2710
2730
|
newIndex: null,
|
|
2711
2731
|
newDraggableIndex: null,
|
|
2712
2732
|
originalEvent: e
|
|
2713
|
-
}), Z ===
|
|
2733
|
+
}), Z === Y ? Mi !== ji && Mi >= 0 && (Vr({
|
|
2714
2734
|
sortable: this,
|
|
2715
2735
|
name: "update",
|
|
2716
|
-
toEl:
|
|
2736
|
+
toEl: Y,
|
|
2717
2737
|
originalEvent: e
|
|
2718
|
-
}),
|
|
2738
|
+
}), Vr({
|
|
2719
2739
|
sortable: this,
|
|
2720
2740
|
name: "sort",
|
|
2721
|
-
toEl:
|
|
2741
|
+
toEl: Y,
|
|
2722
2742
|
originalEvent: e
|
|
2723
|
-
})) : (
|
|
2724
|
-
rootEl:
|
|
2743
|
+
})) : (Mi >= 0 && (Vr({
|
|
2744
|
+
rootEl: Y,
|
|
2725
2745
|
name: "add",
|
|
2726
|
-
toEl:
|
|
2746
|
+
toEl: Y,
|
|
2727
2747
|
fromEl: Z,
|
|
2728
2748
|
originalEvent: e
|
|
2729
|
-
}),
|
|
2749
|
+
}), Vr({
|
|
2730
2750
|
sortable: this,
|
|
2731
2751
|
name: "remove",
|
|
2732
|
-
toEl:
|
|
2752
|
+
toEl: Y,
|
|
2733
2753
|
originalEvent: e
|
|
2734
|
-
}),
|
|
2735
|
-
rootEl:
|
|
2754
|
+
}), Vr({
|
|
2755
|
+
rootEl: Y,
|
|
2736
2756
|
name: "sort",
|
|
2737
|
-
toEl:
|
|
2757
|
+
toEl: Y,
|
|
2738
2758
|
fromEl: Z,
|
|
2739
2759
|
originalEvent: e
|
|
2740
|
-
}),
|
|
2760
|
+
}), Vr({
|
|
2741
2761
|
sortable: this,
|
|
2742
2762
|
name: "sort",
|
|
2743
|
-
toEl:
|
|
2763
|
+
toEl: Y,
|
|
2744
2764
|
originalEvent: e
|
|
2745
|
-
})),
|
|
2765
|
+
})), Ii && Ii.save()), q.active && ((Mi == null || Mi === -1) && (Mi = ji, Pi = Ni), Vr({
|
|
2746
2766
|
sortable: this,
|
|
2747
2767
|
name: "end",
|
|
2748
|
-
toEl:
|
|
2768
|
+
toEl: Y,
|
|
2749
2769
|
originalEvent: e
|
|
2750
2770
|
}), this.save()))), this._nulling();
|
|
2751
2771
|
},
|
|
2752
2772
|
_nulling: function() {
|
|
2753
|
-
|
|
2773
|
+
Ei("nulling", this), Z = J = Y = X = Di = ki = Oi = Ai = Bi = Vi = Ki = Mi = Pi = ji = Ni = qi = Ji = Ii = Fi = q.dragged = q.ghost = q.clone = q.active = null, ta.forEach(function(e) {
|
|
2754
2774
|
e.checked = !0;
|
|
2755
|
-
}),
|
|
2775
|
+
}), ta.length = Hi = Ui = 0;
|
|
2756
2776
|
},
|
|
2757
2777
|
handleEvent: function(e) {
|
|
2758
2778
|
switch (e.type) {
|
|
@@ -2762,7 +2782,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2762
2782
|
break;
|
|
2763
2783
|
case "dragenter":
|
|
2764
2784
|
case "dragover":
|
|
2765
|
-
|
|
2785
|
+
J && (this._onDragOver(e), Hr(e));
|
|
2766
2786
|
break;
|
|
2767
2787
|
case "selectstart":
|
|
2768
2788
|
e.preventDefault();
|
|
@@ -2770,14 +2790,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2770
2790
|
}
|
|
2771
2791
|
},
|
|
2772
2792
|
toArray: function() {
|
|
2773
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
2793
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], yr(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Xr(t));
|
|
2774
2794
|
return e;
|
|
2775
2795
|
},
|
|
2776
2796
|
sort: function(e, t) {
|
|
2777
2797
|
var n = {}, r = this.el;
|
|
2778
2798
|
this.toArray().forEach(function(e, t) {
|
|
2779
2799
|
var i = r.children[t];
|
|
2780
|
-
|
|
2800
|
+
yr(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
2781
2801
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
2782
2802
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
2783
2803
|
}), t && this.animateAll();
|
|
@@ -2787,25 +2807,25 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2787
2807
|
e && e.set && e.set(this);
|
|
2788
2808
|
},
|
|
2789
2809
|
closest: function(e, t) {
|
|
2790
|
-
return
|
|
2810
|
+
return yr(e, t || this.options.draggable, this.el, !1);
|
|
2791
2811
|
},
|
|
2792
2812
|
option: function(e, t) {
|
|
2793
2813
|
var n = this.options;
|
|
2794
2814
|
if (t === void 0) return n[e];
|
|
2795
|
-
var r =
|
|
2796
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
2815
|
+
var r = wi.modifyOption(this, e, t);
|
|
2816
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && ua(n);
|
|
2797
2817
|
},
|
|
2798
2818
|
destroy: function() {
|
|
2799
|
-
|
|
2819
|
+
Ei("destroy", this);
|
|
2800
2820
|
var e = this.el;
|
|
2801
|
-
e[
|
|
2821
|
+
e[xi] = null, H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart), H(e, "pointerdown", this._onTapStart), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
2802
2822
|
e.removeAttribute("draggable");
|
|
2803
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2823
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), zi.splice(zi.indexOf(this.el), 1), this.el = e = null;
|
|
2804
2824
|
},
|
|
2805
2825
|
_hideClone: function() {
|
|
2806
|
-
if (!
|
|
2807
|
-
if (
|
|
2808
|
-
|
|
2826
|
+
if (!Ai) {
|
|
2827
|
+
if (Ei("hideClone", this), q.eventCanceled) return;
|
|
2828
|
+
W(ki, "display", "none"), this.options.removeCloneOnHide && ki.parentNode && ki.parentNode.removeChild(ki), Ai = !0;
|
|
2809
2829
|
}
|
|
2810
2830
|
},
|
|
2811
2831
|
_showClone: function(e) {
|
|
@@ -2813,60 +2833,60 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2813
2833
|
this._hideClone();
|
|
2814
2834
|
return;
|
|
2815
2835
|
}
|
|
2816
|
-
if (
|
|
2817
|
-
if (
|
|
2818
|
-
|
|
2836
|
+
if (Ai) {
|
|
2837
|
+
if (Ei("showClone", this), q.eventCanceled) return;
|
|
2838
|
+
J.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(ki, J) : Di ? Z.insertBefore(ki, Di) : Z.appendChild(ki), this.options.group.revertClone && this.animate(J, ki), W(ki, "display", ""), Ai = !1;
|
|
2819
2839
|
}
|
|
2820
2840
|
}
|
|
2821
|
-
},
|
|
2822
|
-
(
|
|
2823
|
-
}),
|
|
2824
|
-
on:
|
|
2825
|
-
off:
|
|
2826
|
-
css:
|
|
2827
|
-
find:
|
|
2841
|
+
}, na && V(document, "touchmove", function(e) {
|
|
2842
|
+
(q.active || Li) && e.cancelable && e.preventDefault();
|
|
2843
|
+
}), q.utils = {
|
|
2844
|
+
on: V,
|
|
2845
|
+
off: H,
|
|
2846
|
+
css: W,
|
|
2847
|
+
find: xr,
|
|
2828
2848
|
is: function(e, t) {
|
|
2829
|
-
return !!
|
|
2849
|
+
return !!yr(e, t, e, !1);
|
|
2830
2850
|
},
|
|
2831
|
-
extend:
|
|
2832
|
-
throttle:
|
|
2833
|
-
closest:
|
|
2834
|
-
toggleClass:
|
|
2835
|
-
clone:
|
|
2836
|
-
index:
|
|
2837
|
-
nextTick:
|
|
2838
|
-
cancelNextTick:
|
|
2839
|
-
detectDirection:
|
|
2840
|
-
getChild:
|
|
2841
|
-
},
|
|
2842
|
-
return e[
|
|
2843
|
-
},
|
|
2851
|
+
extend: kr,
|
|
2852
|
+
throttle: jr,
|
|
2853
|
+
closest: yr,
|
|
2854
|
+
toggleClass: U,
|
|
2855
|
+
clone: Pr,
|
|
2856
|
+
index: K,
|
|
2857
|
+
nextTick: Qr,
|
|
2858
|
+
cancelNextTick: $r,
|
|
2859
|
+
detectDirection: sa,
|
|
2860
|
+
getChild: wr
|
|
2861
|
+
}, q.get = function(e) {
|
|
2862
|
+
return e[xi];
|
|
2863
|
+
}, q.mount = function() {
|
|
2844
2864
|
var e = [...arguments];
|
|
2845
2865
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
2846
2866
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
2847
|
-
e.utils && (
|
|
2867
|
+
e.utils && (q.utils = ir(ir({}, q.utils), e.utils)), wi.mount(e);
|
|
2848
2868
|
});
|
|
2849
|
-
},
|
|
2850
|
-
return new
|
|
2851
|
-
},
|
|
2869
|
+
}, q.create = function(e, t) {
|
|
2870
|
+
return new q(e, t);
|
|
2871
|
+
}, q.version = di, ha = [], va = !1, Ca = jr(function(e, t, n, r) {
|
|
2852
2872
|
if (t.scroll) {
|
|
2853
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
2854
|
-
|
|
2855
|
-
var d = 0, f =
|
|
2873
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Sr(), l = !1, u;
|
|
2874
|
+
_a !== n && (_a = n, ti(), ga = t.scroll, u = t.scrollFn, ga === !0 && (ga = Or(n, !0)));
|
|
2875
|
+
var d = 0, f = ga;
|
|
2856
2876
|
do {
|
|
2857
|
-
var p = f, m =
|
|
2877
|
+
var p = f, m = G(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, ee = p.scrollHeight, w = W(p), T = p.scrollLeft, E = p.scrollTop;
|
|
2858
2878
|
p === c ? (x = y < C && (w.overflowX === "auto" || w.overflowX === "scroll" || w.overflowX === "visible"), S = b < ee && (w.overflowY === "auto" || w.overflowY === "scroll" || w.overflowY === "visible")) : (x = y < C && (w.overflowX === "auto" || w.overflowX === "scroll"), S = b < ee && (w.overflowY === "auto" || w.overflowY === "scroll"));
|
|
2859
|
-
var D = x && (Math.abs(v - i) <= o && T + y < C) - (Math.abs(_ - i) <= o && !!T),
|
|
2860
|
-
if (!
|
|
2861
|
-
(
|
|
2862
|
-
r && this.layer === 0 &&
|
|
2863
|
-
var t =
|
|
2864
|
-
typeof u == "function" && u.call(
|
|
2879
|
+
var D = x && (Math.abs(v - i) <= o && T + y < C) - (Math.abs(_ - i) <= o && !!T), te = S && (Math.abs(g - a) <= o && E + b < ee) - (Math.abs(h - a) <= o && !!E);
|
|
2880
|
+
if (!ha[d]) for (var ne = 0; ne <= d; ne++) ha[ne] || (ha[ne] = {});
|
|
2881
|
+
(ha[d].vx != D || ha[d].vy != te || ha[d].el !== p) && (ha[d].el = p, ha[d].vx = D, ha[d].vy = te, clearInterval(ha[d].pid), (D != 0 || te != 0) && (l = !0, ha[d].pid = setInterval(function() {
|
|
2882
|
+
r && this.layer === 0 && q.active._onTouchMove(xa);
|
|
2883
|
+
var t = ha[this.layer].vy ? ha[this.layer].vy * s : 0, n = ha[this.layer].vx ? ha[this.layer].vx * s : 0;
|
|
2884
|
+
typeof u == "function" && u.call(q.dragged.parentNode[xi], n, t, e, xa, ha[this.layer].el) !== "continue" || Nr(ha[this.layer].el, n, t);
|
|
2865
2885
|
}.bind({ layer: d }), 24))), d++;
|
|
2866
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
2867
|
-
|
|
2886
|
+
} while (t.bubbleScroll && f !== c && (f = Or(f, !1)));
|
|
2887
|
+
va = l;
|
|
2868
2888
|
}
|
|
2869
|
-
}, 30),
|
|
2889
|
+
}, 30), wa = function(e) {
|
|
2870
2890
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
2871
2891
|
if (t) {
|
|
2872
2892
|
var c = n || i;
|
|
@@ -2877,7 +2897,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2877
2897
|
putSortable: n
|
|
2878
2898
|
}));
|
|
2879
2899
|
}
|
|
2880
|
-
},
|
|
2900
|
+
}, ri.prototype = {
|
|
2881
2901
|
startIndex: null,
|
|
2882
2902
|
dragStart: function(e) {
|
|
2883
2903
|
this.startIndex = e.oldDraggableIndex;
|
|
@@ -2885,20 +2905,20 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
2885
2905
|
onSpill: function(e) {
|
|
2886
2906
|
var t = e.dragEl, n = e.putSortable;
|
|
2887
2907
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2888
|
-
var r =
|
|
2908
|
+
var r = wr(this.sortable.el, this.startIndex, this.options);
|
|
2889
2909
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
2890
2910
|
},
|
|
2891
|
-
drop:
|
|
2892
|
-
},
|
|
2911
|
+
drop: wa
|
|
2912
|
+
}, sr(ri, { pluginName: "revertOnSpill" }), ii.prototype = {
|
|
2893
2913
|
onSpill: function(e) {
|
|
2894
2914
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
2895
2915
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
2896
2916
|
},
|
|
2897
|
-
drop:
|
|
2898
|
-
},
|
|
2899
|
-
})),
|
|
2917
|
+
drop: wa
|
|
2918
|
+
}, sr(ii, { pluginName: "removeOnSpill" }), Q = [], Ea = [], ka = !1, Aa = !1, ja = !1, q.mount(new ei()), q.mount(ii, ri);
|
|
2919
|
+
})), Fa = /* @__PURE__ */ ot(((e, t) => {
|
|
2900
2920
|
(function(n, r) {
|
|
2901
|
-
typeof e == "object" && typeof t == "object" ? t.exports = r(
|
|
2921
|
+
typeof e == "object" && typeof t == "object" ? t.exports = r(dt("vue"), (Pa(), ut(nr))) : typeof define == "function" && define.amd ? define([, "sortablejs"], r) : typeof e == "object" ? e.vuedraggable = r(dt("vue"), (Pa(), ut(nr))) : n.vuedraggable = r(n.Vue, n.Sortable);
|
|
2902
2922
|
})(typeof self < "u" ? self : e, function(e, t) {
|
|
2903
2923
|
return (function(e) {
|
|
2904
2924
|
var t = {};
|
|
@@ -3320,14 +3340,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3320
3340
|
}
|
|
3321
3341
|
for (var ee = "", w = 0, T = 0; T < S.length; T++) {
|
|
3322
3342
|
C = S[T];
|
|
3323
|
-
for (var E = String(C[0]), D = d(f(s(C.index), p.length), 0),
|
|
3324
|
-
var
|
|
3343
|
+
for (var E = String(C[0]), D = d(f(s(C.index), p.length), 0), te = [], ne = 1; ne < C.length; ne++) te.push(g(C[ne]));
|
|
3344
|
+
var O = C.groups;
|
|
3325
3345
|
if (m) {
|
|
3326
|
-
var
|
|
3327
|
-
|
|
3328
|
-
var
|
|
3329
|
-
} else
|
|
3330
|
-
D >= w && (ee += p.slice(w, D) +
|
|
3346
|
+
var re = [E].concat(te, D, p);
|
|
3347
|
+
O !== void 0 && re.push(O);
|
|
3348
|
+
var ie = String(r.apply(void 0, re));
|
|
3349
|
+
} else ie = b(E, p, D, te, O, r);
|
|
3350
|
+
D >= w && (ee += p.slice(w, D) + ie, w = D + E.length);
|
|
3331
3351
|
}
|
|
3332
3352
|
return ee + p.slice(w);
|
|
3333
3353
|
}];
|
|
@@ -3558,20 +3578,20 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3558
3578
|
return function() {
|
|
3559
3579
|
return new n(this);
|
|
3560
3580
|
};
|
|
3561
|
-
}, ee = t + " Iterator", w = !1, T = e.prototype, E = T[g] || T["@@iterator"] || p && T[p], D = !h && E || C(p),
|
|
3562
|
-
if (
|
|
3581
|
+
}, ee = t + " Iterator", w = !1, T = e.prototype, E = T[g] || T["@@iterator"] || p && T[p], D = !h && E || C(p), te = t == "Array" && T.entries || E, ne, O, re;
|
|
3582
|
+
if (te && (ne = a(te.call(new e())), m !== Object.prototype && ne.next && (!d && a(ne) !== m && (o ? o(ne, m) : typeof ne[g] != "function" && c(ne, g, b)), s(ne, ee, !0, !0), d && (f[ee] = b))), p == v && E && E.name !== v && (w = !0, D = function() {
|
|
3563
3583
|
return E.call(this);
|
|
3564
|
-
}), (!d || S) && T[g] !== D && c(T, g, D), f[t] = D, p) if (
|
|
3584
|
+
}), (!d || S) && T[g] !== D && c(T, g, D), f[t] = D, p) if (O = {
|
|
3565
3585
|
values: C(v),
|
|
3566
3586
|
keys: x ? D : C(_),
|
|
3567
3587
|
entries: C(y)
|
|
3568
|
-
}, S) for (
|
|
3588
|
+
}, S) for (re in O) (h || w || !(re in T)) && l(T, re, O[re]);
|
|
3569
3589
|
else r({
|
|
3570
3590
|
target: t,
|
|
3571
3591
|
proto: !0,
|
|
3572
3592
|
forced: h || w
|
|
3573
|
-
},
|
|
3574
|
-
return
|
|
3593
|
+
}, O);
|
|
3594
|
+
return O;
|
|
3575
3595
|
};
|
|
3576
3596
|
}),
|
|
3577
3597
|
"7f9a": (function(e, t, n) {
|
|
@@ -3785,83 +3805,83 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3785
3805
|
} });
|
|
3786
3806
|
}),
|
|
3787
3807
|
a4d3: (function(e, t, n) {
|
|
3788
|
-
var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), ee = n("06cf"), w = n("9bf2"), T = n("d1e7"), E = n("9112"), D = n("6eeb"),
|
|
3789
|
-
return y(
|
|
3790
|
-
return
|
|
3808
|
+
var r = n("23e7"), i = n("da84"), a = n("d066"), o = n("c430"), s = n("83ab"), c = n("4930"), l = n("fdbf"), u = n("d039"), d = n("5135"), f = n("e8b5"), p = n("861d"), m = n("825a"), h = n("7b0b"), g = n("fc6a"), _ = n("c04e"), v = n("5c6c"), y = n("7c73"), b = n("df75"), x = n("241c"), S = n("057f"), C = n("7418"), ee = n("06cf"), w = n("9bf2"), T = n("d1e7"), E = n("9112"), D = n("6eeb"), te = n("5692"), ne = n("f772"), O = n("d012"), re = n("90e3"), ie = n("b622"), ae = n("e538"), oe = n("746f"), k = n("d44e"), se = n("69f3"), A = n("b727").forEach, j = ne("hidden"), M = "Symbol", ce = "prototype", N = ie("toPrimitive"), le = se.set, ue = se.getterFor(M), de = Object[ce], P = i.Symbol, fe = a("JSON", "stringify"), pe = ee.f, F = w.f, me = S.f, he = T.f, ge = te("symbols"), I = te("op-symbols"), L = te("string-to-symbol-registry"), R = te("symbol-to-string-registry"), _e = te("wks"), ve = i.QObject, ye = !ve || !ve[ce] || !ve[ce].findChild, be = s && u(function() {
|
|
3809
|
+
return y(F({}, "a", { get: function() {
|
|
3810
|
+
return F(this, "a", { value: 7 }).a;
|
|
3791
3811
|
} })).a != 7;
|
|
3792
3812
|
}) ? function(e, t, n) {
|
|
3793
|
-
var r =
|
|
3794
|
-
r && delete
|
|
3795
|
-
} :
|
|
3796
|
-
var n =
|
|
3813
|
+
var r = pe(de, t);
|
|
3814
|
+
r && delete de[t], F(e, t, n), r && e !== de && F(de, t, r);
|
|
3815
|
+
} : F, z = function(e, t) {
|
|
3816
|
+
var n = ge[e] = y(P[ce]);
|
|
3797
3817
|
return le(n, {
|
|
3798
3818
|
type: M,
|
|
3799
3819
|
tag: e,
|
|
3800
3820
|
description: t
|
|
3801
3821
|
}), s || (n.description = t), n;
|
|
3802
|
-
},
|
|
3822
|
+
}, xe = l ? function(e) {
|
|
3803
3823
|
return typeof e == "symbol";
|
|
3804
3824
|
} : function(e) {
|
|
3805
|
-
return Object(e) instanceof
|
|
3806
|
-
},
|
|
3807
|
-
e ===
|
|
3825
|
+
return Object(e) instanceof P;
|
|
3826
|
+
}, B = function(e, t, n) {
|
|
3827
|
+
e === de && B(I, t, n), m(e);
|
|
3808
3828
|
var r = _(t, !0);
|
|
3809
|
-
return m(n), d(
|
|
3810
|
-
},
|
|
3829
|
+
return m(n), d(ge, r) ? (n.enumerable ? (d(e, j) && e[j][r] && (e[j][r] = !1), n = y(n, { enumerable: v(0, !1) })) : (d(e, j) || F(e, j, v(1, {})), e[j][r] = !0), be(e, r, n)) : F(e, r, n);
|
|
3830
|
+
}, Se = function(e, t) {
|
|
3811
3831
|
m(e);
|
|
3812
3832
|
var n = g(t);
|
|
3813
|
-
return
|
|
3814
|
-
(!s ||
|
|
3833
|
+
return A(b(n).concat(De(n)), function(t) {
|
|
3834
|
+
(!s || we.call(n, t)) && B(e, t, n[t]);
|
|
3815
3835
|
}), e;
|
|
3816
|
-
},
|
|
3817
|
-
return t === void 0 ? y(e) :
|
|
3818
|
-
},
|
|
3819
|
-
var t = _(e, !0), n =
|
|
3820
|
-
return this ===
|
|
3821
|
-
},
|
|
3836
|
+
}, Ce = function(e, t) {
|
|
3837
|
+
return t === void 0 ? y(e) : Se(y(e), t);
|
|
3838
|
+
}, we = function(e) {
|
|
3839
|
+
var t = _(e, !0), n = he.call(this, t);
|
|
3840
|
+
return this === de && d(ge, t) && !d(I, t) ? !1 : n || !d(this, t) || !d(ge, t) || d(this, j) && this[j][t] ? n : !0;
|
|
3841
|
+
}, Te = function(e, t) {
|
|
3822
3842
|
var n = g(e), r = _(t, !0);
|
|
3823
|
-
if (!(n ===
|
|
3824
|
-
var i =
|
|
3825
|
-
return i && d(
|
|
3843
|
+
if (!(n === de && d(ge, r) && !d(I, r))) {
|
|
3844
|
+
var i = pe(n, r);
|
|
3845
|
+
return i && d(ge, r) && !(d(n, j) && n[j][r]) && (i.enumerable = !0), i;
|
|
3826
3846
|
}
|
|
3827
|
-
}, Te = function(e) {
|
|
3828
|
-
var t = pe(g(e)), n = [];
|
|
3829
|
-
return se(t, function(e) {
|
|
3830
|
-
!d(he, e) && !d(k, e) && n.push(e);
|
|
3831
|
-
}), n;
|
|
3832
3847
|
}, Ee = function(e) {
|
|
3833
|
-
var t =
|
|
3834
|
-
return
|
|
3835
|
-
d(
|
|
3848
|
+
var t = me(g(e)), n = [];
|
|
3849
|
+
return A(t, function(e) {
|
|
3850
|
+
!d(ge, e) && !d(O, e) && n.push(e);
|
|
3851
|
+
}), n;
|
|
3852
|
+
}, De = function(e) {
|
|
3853
|
+
var t = e === de, n = me(t ? I : g(e)), r = [];
|
|
3854
|
+
return A(n, function(e) {
|
|
3855
|
+
d(ge, e) && (!t || d(de, e)) && r.push(ge[e]);
|
|
3836
3856
|
}), r;
|
|
3837
3857
|
};
|
|
3838
|
-
c || (
|
|
3839
|
-
if (this instanceof
|
|
3840
|
-
var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t =
|
|
3841
|
-
this ===
|
|
3858
|
+
c || (P = function() {
|
|
3859
|
+
if (this instanceof P) throw TypeError("Symbol is not a constructor");
|
|
3860
|
+
var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t = re(e), n = function(e) {
|
|
3861
|
+
this === de && n.call(I, e), d(this, j) && d(this[j], t) && (this[j][t] = !1), be(this, t, v(1, e));
|
|
3842
3862
|
};
|
|
3843
|
-
return s &&
|
|
3863
|
+
return s && ye && be(de, t, {
|
|
3844
3864
|
configurable: !0,
|
|
3845
3865
|
set: n
|
|
3846
|
-
}),
|
|
3847
|
-
}, D(
|
|
3848
|
-
return
|
|
3849
|
-
}), D(
|
|
3850
|
-
return
|
|
3851
|
-
}), T.f =
|
|
3852
|
-
return
|
|
3853
|
-
}, s && (
|
|
3866
|
+
}), z(t, e);
|
|
3867
|
+
}, D(P[ce], "toString", function() {
|
|
3868
|
+
return ue(this).tag;
|
|
3869
|
+
}), D(P, "withoutSetter", function(e) {
|
|
3870
|
+
return z(re(e), e);
|
|
3871
|
+
}), T.f = we, w.f = B, ee.f = Te, x.f = S.f = Ee, C.f = De, ae.f = function(e) {
|
|
3872
|
+
return z(ie(e), e);
|
|
3873
|
+
}, s && (F(P[ce], "description", {
|
|
3854
3874
|
configurable: !0,
|
|
3855
3875
|
get: function() {
|
|
3856
|
-
return
|
|
3876
|
+
return ue(this).description;
|
|
3857
3877
|
}
|
|
3858
|
-
}), o || D(
|
|
3878
|
+
}), o || D(de, "propertyIsEnumerable", we, { unsafe: !0 }))), r({
|
|
3859
3879
|
global: !0,
|
|
3860
3880
|
wrap: !0,
|
|
3861
3881
|
forced: !c,
|
|
3862
3882
|
sham: !c
|
|
3863
|
-
}, { Symbol:
|
|
3864
|
-
|
|
3883
|
+
}, { Symbol: P }), A(b(_e), function(e) {
|
|
3884
|
+
oe(e);
|
|
3865
3885
|
}), r({
|
|
3866
3886
|
target: M,
|
|
3867
3887
|
stat: !0,
|
|
@@ -3869,19 +3889,19 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3869
3889
|
}, {
|
|
3870
3890
|
for: function(e) {
|
|
3871
3891
|
var t = String(e);
|
|
3872
|
-
if (d(
|
|
3873
|
-
var n =
|
|
3874
|
-
return
|
|
3892
|
+
if (d(L, t)) return L[t];
|
|
3893
|
+
var n = P(t);
|
|
3894
|
+
return L[t] = n, R[n] = t, n;
|
|
3875
3895
|
},
|
|
3876
3896
|
keyFor: function(e) {
|
|
3877
|
-
if (!
|
|
3878
|
-
if (d(
|
|
3897
|
+
if (!xe(e)) throw TypeError(e + " is not a symbol");
|
|
3898
|
+
if (d(R, e)) return R[e];
|
|
3879
3899
|
},
|
|
3880
3900
|
useSetter: function() {
|
|
3881
|
-
|
|
3901
|
+
ye = !0;
|
|
3882
3902
|
},
|
|
3883
3903
|
useSimple: function() {
|
|
3884
|
-
|
|
3904
|
+
ye = !1;
|
|
3885
3905
|
}
|
|
3886
3906
|
}), r({
|
|
3887
3907
|
target: "Object",
|
|
@@ -3889,17 +3909,17 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3889
3909
|
forced: !c,
|
|
3890
3910
|
sham: !s
|
|
3891
3911
|
}, {
|
|
3892
|
-
create:
|
|
3893
|
-
defineProperty:
|
|
3894
|
-
defineProperties:
|
|
3895
|
-
getOwnPropertyDescriptor:
|
|
3912
|
+
create: Ce,
|
|
3913
|
+
defineProperty: B,
|
|
3914
|
+
defineProperties: Se,
|
|
3915
|
+
getOwnPropertyDescriptor: Te
|
|
3896
3916
|
}), r({
|
|
3897
3917
|
target: "Object",
|
|
3898
3918
|
stat: !0,
|
|
3899
3919
|
forced: !c
|
|
3900
3920
|
}, {
|
|
3901
|
-
getOwnPropertyNames:
|
|
3902
|
-
getOwnPropertySymbols:
|
|
3921
|
+
getOwnPropertyNames: Ee,
|
|
3922
|
+
getOwnPropertySymbols: De
|
|
3903
3923
|
}), r({
|
|
3904
3924
|
target: "Object",
|
|
3905
3925
|
stat: !0,
|
|
@@ -3908,19 +3928,19 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
3908
3928
|
})
|
|
3909
3929
|
}, { getOwnPropertySymbols: function(e) {
|
|
3910
3930
|
return C.f(h(e));
|
|
3911
|
-
} }),
|
|
3931
|
+
} }), fe && r({
|
|
3912
3932
|
target: "JSON",
|
|
3913
3933
|
stat: !0,
|
|
3914
3934
|
forced: !c || u(function() {
|
|
3915
|
-
var e =
|
|
3916
|
-
return
|
|
3935
|
+
var e = P();
|
|
3936
|
+
return fe([e]) != "[null]" || fe({ a: e }) != "{}" || fe(Object(e)) != "{}";
|
|
3917
3937
|
})
|
|
3918
3938
|
}, { stringify: function(e, t, n) {
|
|
3919
3939
|
for (var r = [e], i = 1, a; arguments.length > i;) r.push(arguments[i++]);
|
|
3920
|
-
if (a = t, !(!p(t) && e === void 0 ||
|
|
3921
|
-
if (typeof a == "function" && (t = a.call(this, e, t)), !
|
|
3922
|
-
}), r[1] = t,
|
|
3923
|
-
} }),
|
|
3940
|
+
if (a = t, !(!p(t) && e === void 0 || xe(e))) return f(t) || (t = function(e, t) {
|
|
3941
|
+
if (typeof a == "function" && (t = a.call(this, e, t)), !xe(t)) return t;
|
|
3942
|
+
}), r[1] = t, fe.apply(null, r);
|
|
3943
|
+
} }), P[ce][N] || E(P[ce], N, P[ce].valueOf), k(P, M), O[j] = !0;
|
|
3924
3944
|
}),
|
|
3925
3945
|
a630: (function(e, t, n) {
|
|
3926
3946
|
var r = n("23e7"), i = n("4df4");
|
|
@@ -4607,31 +4627,31 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4607
4627
|
"Sort",
|
|
4608
4628
|
"Filter",
|
|
4609
4629
|
"Clone"
|
|
4610
|
-
],
|
|
4611
|
-
|
|
4630
|
+
], te = ["Move"], ne = [
|
|
4631
|
+
te,
|
|
4612
4632
|
E,
|
|
4613
4633
|
D
|
|
4614
4634
|
].flatMap(function(e) {
|
|
4615
4635
|
return e;
|
|
4616
4636
|
}).map(function(e) {
|
|
4617
4637
|
return `on${e}`;
|
|
4618
|
-
}),
|
|
4619
|
-
manage:
|
|
4638
|
+
}), O = {
|
|
4639
|
+
manage: te,
|
|
4620
4640
|
manageAndEmit: E,
|
|
4621
4641
|
emit: D
|
|
4622
4642
|
};
|
|
4623
|
-
function
|
|
4624
|
-
return
|
|
4643
|
+
function re(e) {
|
|
4644
|
+
return ne.indexOf(e) !== -1;
|
|
4625
4645
|
}
|
|
4626
4646
|
n("caad"), n("2ca0");
|
|
4627
|
-
var
|
|
4628
|
-
function ie(e) {
|
|
4629
|
-
return re.includes(e);
|
|
4630
|
-
}
|
|
4647
|
+
var ie = /* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr".split(".");
|
|
4631
4648
|
function ae(e) {
|
|
4649
|
+
return ie.includes(e);
|
|
4650
|
+
}
|
|
4651
|
+
function oe(e) {
|
|
4632
4652
|
return ["transition-group", "TransitionGroup"].includes(e);
|
|
4633
4653
|
}
|
|
4634
|
-
function
|
|
4654
|
+
function k(e) {
|
|
4635
4655
|
return [
|
|
4636
4656
|
"id",
|
|
4637
4657
|
"class",
|
|
@@ -4639,24 +4659,24 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4639
4659
|
"style"
|
|
4640
4660
|
].includes(e) || e.startsWith("data-") || e.startsWith("aria-") || e.startsWith("on");
|
|
4641
4661
|
}
|
|
4642
|
-
function
|
|
4662
|
+
function se(e) {
|
|
4643
4663
|
return e.reduce(function(e, t) {
|
|
4644
4664
|
var n = m(t, 2), r = n[0];
|
|
4645
4665
|
return e[r] = n[1], e;
|
|
4646
4666
|
}, {});
|
|
4647
4667
|
}
|
|
4648
|
-
function
|
|
4668
|
+
function A(e) {
|
|
4649
4669
|
var t = e.$attrs, n = e.componentData, r = n === void 0 ? {} : n;
|
|
4650
|
-
return c(c({},
|
|
4670
|
+
return c(c({}, se(Object.entries(t).filter(function(e) {
|
|
4651
4671
|
var t = m(e, 2), n = t[0];
|
|
4652
|
-
return t[1],
|
|
4672
|
+
return t[1], k(n);
|
|
4653
4673
|
}))), r);
|
|
4654
4674
|
}
|
|
4655
4675
|
function j(e) {
|
|
4656
|
-
var t = e.$attrs, n = e.callBackBuilder, r =
|
|
4676
|
+
var t = e.$attrs, n = e.callBackBuilder, r = se(M(t));
|
|
4657
4677
|
Object.entries(n).forEach(function(e) {
|
|
4658
4678
|
var t = m(e, 2), n = t[0], i = t[1];
|
|
4659
|
-
|
|
4679
|
+
O[n].forEach(function(e) {
|
|
4660
4680
|
r[`on${e}`] = i(e);
|
|
4661
4681
|
});
|
|
4662
4682
|
});
|
|
@@ -4666,13 +4686,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4666
4686
|
function M(e) {
|
|
4667
4687
|
return Object.entries(e).filter(function(e) {
|
|
4668
4688
|
var t = m(e, 2), n = t[0];
|
|
4669
|
-
return t[1], !
|
|
4689
|
+
return t[1], !k(n);
|
|
4670
4690
|
}).map(function(e) {
|
|
4671
4691
|
var t = m(e, 2), n = t[0], r = t[1];
|
|
4672
4692
|
return [T(n), r];
|
|
4673
4693
|
}).filter(function(e) {
|
|
4674
4694
|
var t = m(e, 2), n = t[0];
|
|
4675
|
-
return t[1], !
|
|
4695
|
+
return t[1], !re(n);
|
|
4676
4696
|
});
|
|
4677
4697
|
}
|
|
4678
4698
|
n("c740");
|
|
@@ -4688,13 +4708,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4688
4708
|
function le(e, t, n) {
|
|
4689
4709
|
return t && N(e.prototype, t), n && N(e, n), e;
|
|
4690
4710
|
}
|
|
4691
|
-
var
|
|
4711
|
+
var ue = function(e) {
|
|
4692
4712
|
return e.el;
|
|
4693
|
-
},
|
|
4713
|
+
}, de = function(e, t) {
|
|
4694
4714
|
return e.__draggable_context = t;
|
|
4695
|
-
},
|
|
4715
|
+
}, P = function(e) {
|
|
4696
4716
|
return e.__draggable_context;
|
|
4697
|
-
},
|
|
4717
|
+
}, fe = /* @__PURE__ */ function() {
|
|
4698
4718
|
function e(t) {
|
|
4699
4719
|
var n = t.nodes, r = n.header, i = n.default, a = n.footer, o = t.root, s = t.realList;
|
|
4700
4720
|
ce(this, e), this.defaultNodes = i, this.children = [].concat(v(r), v(i), v(a)), this.externalComponent = o.externalComponent, this.rootTransition = o.transition, this.tag = o.tag, this.realList = s;
|
|
@@ -4714,7 +4734,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4714
4734
|
value: function() {
|
|
4715
4735
|
var e = this.defaultNodes, t = this.realList;
|
|
4716
4736
|
e.forEach(function(e, n) {
|
|
4717
|
-
ue(
|
|
4737
|
+
de(ue(e), {
|
|
4718
4738
|
element: t[n],
|
|
4719
4739
|
index: n
|
|
4720
4740
|
});
|
|
@@ -4724,7 +4744,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4724
4744
|
{
|
|
4725
4745
|
key: "getUnderlyingVm",
|
|
4726
4746
|
value: function(e) {
|
|
4727
|
-
return
|
|
4747
|
+
return P(e);
|
|
4728
4748
|
}
|
|
4729
4749
|
},
|
|
4730
4750
|
{
|
|
@@ -4732,10 +4752,10 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4732
4752
|
value: function(e, t) {
|
|
4733
4753
|
var n = this.defaultNodes, r = n.length, i = t.children, a = i.item(e);
|
|
4734
4754
|
if (a === null) return r;
|
|
4735
|
-
var o =
|
|
4755
|
+
var o = P(a);
|
|
4736
4756
|
if (o) return o.index;
|
|
4737
4757
|
if (r === 0) return 0;
|
|
4738
|
-
var s =
|
|
4758
|
+
var s = ue(n[0]);
|
|
4739
4759
|
return e < v(i).findIndex(function(e) {
|
|
4740
4760
|
return e === s;
|
|
4741
4761
|
}) ? 0 : r;
|
|
@@ -4748,14 +4768,14 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4748
4768
|
}
|
|
4749
4769
|
}
|
|
4750
4770
|
]), e;
|
|
4751
|
-
}(),
|
|
4752
|
-
function
|
|
4771
|
+
}(), pe = n("8bbf");
|
|
4772
|
+
function F(e, t) {
|
|
4753
4773
|
var n = e[t];
|
|
4754
4774
|
return n ? n() : [];
|
|
4755
4775
|
}
|
|
4756
|
-
function
|
|
4776
|
+
function me(e) {
|
|
4757
4777
|
var t = e.$slots, n = e.realList, r = e.getKey, i = n || [], a = m(["header", "footer"].map(function(e) {
|
|
4758
|
-
return
|
|
4778
|
+
return F(t, e);
|
|
4759
4779
|
}), 2), o = a[0], s = a[1], l = t.item;
|
|
4760
4780
|
if (!l) throw Error("draggable element must have an item slot");
|
|
4761
4781
|
var u = i.flatMap(function(e, t) {
|
|
@@ -4773,45 +4793,45 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4773
4793
|
default: u
|
|
4774
4794
|
};
|
|
4775
4795
|
}
|
|
4776
|
-
function
|
|
4777
|
-
var t =
|
|
4796
|
+
function he(e) {
|
|
4797
|
+
var t = oe(e), n = !ae(e) && !t;
|
|
4778
4798
|
return {
|
|
4779
4799
|
transition: t,
|
|
4780
4800
|
externalComponent: n,
|
|
4781
|
-
tag: n ? (0,
|
|
4801
|
+
tag: n ? (0, pe.resolveComponent)(e) : t ? pe.TransitionGroup : e
|
|
4782
4802
|
};
|
|
4783
4803
|
}
|
|
4784
|
-
function
|
|
4804
|
+
function ge(e) {
|
|
4785
4805
|
var t = e.$slots, n = e.tag, r = e.realList, i = e.getKey;
|
|
4786
|
-
return new
|
|
4787
|
-
nodes:
|
|
4806
|
+
return new fe({
|
|
4807
|
+
nodes: me({
|
|
4788
4808
|
$slots: t,
|
|
4789
4809
|
realList: r,
|
|
4790
4810
|
getKey: i
|
|
4791
4811
|
}),
|
|
4792
|
-
root:
|
|
4812
|
+
root: he(n),
|
|
4793
4813
|
realList: r
|
|
4794
4814
|
});
|
|
4795
4815
|
}
|
|
4796
|
-
function
|
|
4816
|
+
function I(e, t) {
|
|
4797
4817
|
var n = this;
|
|
4798
|
-
(0,
|
|
4818
|
+
(0, pe.nextTick)(function() {
|
|
4799
4819
|
return n.$emit(e.toLowerCase(), t);
|
|
4800
4820
|
});
|
|
4801
4821
|
}
|
|
4802
|
-
function
|
|
4822
|
+
function L(e) {
|
|
4803
4823
|
var t = this;
|
|
4804
4824
|
return function(n, r) {
|
|
4805
4825
|
if (t.realList !== null) return t[`onDrag${e}`](n, r);
|
|
4806
4826
|
};
|
|
4807
4827
|
}
|
|
4808
|
-
function
|
|
4809
|
-
var t = this, n =
|
|
4828
|
+
function R(e) {
|
|
4829
|
+
var t = this, n = L.call(this, e);
|
|
4810
4830
|
return function(r, i) {
|
|
4811
|
-
n.call(t, r, i),
|
|
4831
|
+
n.call(t, r, i), I.call(t, e, r);
|
|
4812
4832
|
};
|
|
4813
4833
|
}
|
|
4814
|
-
var
|
|
4834
|
+
var _e = null, ve = {
|
|
4815
4835
|
list: {
|
|
4816
4836
|
type: Array,
|
|
4817
4837
|
required: !1,
|
|
@@ -4845,34 +4865,34 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4845
4865
|
required: !1,
|
|
4846
4866
|
default: null
|
|
4847
4867
|
}
|
|
4848
|
-
},
|
|
4868
|
+
}, ye = ["update:modelValue", "change"].concat(v([].concat(v(O.manageAndEmit), v(O.emit)).map(function(e) {
|
|
4849
4869
|
return e.toLowerCase();
|
|
4850
4870
|
})));
|
|
4851
|
-
t.default = (0,
|
|
4871
|
+
t.default = (0, pe.defineComponent)({
|
|
4852
4872
|
name: "draggable",
|
|
4853
4873
|
inheritAttrs: !1,
|
|
4854
|
-
props:
|
|
4855
|
-
emits:
|
|
4874
|
+
props: ve,
|
|
4875
|
+
emits: ye,
|
|
4856
4876
|
data: function() {
|
|
4857
4877
|
return { error: !1 };
|
|
4858
4878
|
},
|
|
4859
4879
|
render: function() {
|
|
4860
4880
|
try {
|
|
4861
4881
|
this.error = !1;
|
|
4862
|
-
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o =
|
|
4882
|
+
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o = ge({
|
|
4863
4883
|
$slots: e,
|
|
4864
4884
|
tag: n,
|
|
4865
4885
|
realList: i,
|
|
4866
4886
|
getKey: a
|
|
4867
4887
|
});
|
|
4868
4888
|
this.componentStructure = o;
|
|
4869
|
-
var s =
|
|
4889
|
+
var s = A({
|
|
4870
4890
|
$attrs: t,
|
|
4871
4891
|
componentData: r
|
|
4872
4892
|
});
|
|
4873
|
-
return o.render(
|
|
4893
|
+
return o.render(pe.h, s);
|
|
4874
4894
|
} catch (e) {
|
|
4875
|
-
return this.error = !0, (0,
|
|
4895
|
+
return this.error = !0, (0, pe.h)("pre", { style: { color: "red" } }, e.stack);
|
|
4876
4896
|
}
|
|
4877
4897
|
},
|
|
4878
4898
|
created: function() {
|
|
@@ -4887,13 +4907,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4887
4907
|
$attrs: t,
|
|
4888
4908
|
callBackBuilder: {
|
|
4889
4909
|
manageAndEmit: function(t) {
|
|
4890
|
-
return
|
|
4910
|
+
return R.call(e, t);
|
|
4891
4911
|
},
|
|
4892
4912
|
emit: function(t) {
|
|
4893
|
-
return
|
|
4913
|
+
return I.bind(e, t);
|
|
4894
4914
|
},
|
|
4895
4915
|
manage: function(t) {
|
|
4896
|
-
return
|
|
4916
|
+
return L.call(e, t);
|
|
4897
4917
|
}
|
|
4898
4918
|
}
|
|
4899
4919
|
}), i = n.nodeType === 1 ? n : n.parentElement;
|
|
@@ -4936,7 +4956,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4936
4956
|
},
|
|
4937
4957
|
emitChanges: function(e) {
|
|
4938
4958
|
var t = this;
|
|
4939
|
-
(0,
|
|
4959
|
+
(0, pe.nextTick)(function() {
|
|
4940
4960
|
return t.$emit("change", e);
|
|
4941
4961
|
});
|
|
4942
4962
|
},
|
|
@@ -4972,7 +4992,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
4972
4992
|
return this.componentStructure.getVmIndexFromDomIndex(e, this.targetDomElement);
|
|
4973
4993
|
},
|
|
4974
4994
|
onDragStart: function(e) {
|
|
4975
|
-
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element),
|
|
4995
|
+
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element), _e = e.item;
|
|
4976
4996
|
},
|
|
4977
4997
|
onDragAdd: function(e) {
|
|
4978
4998
|
var t = e.item._underlying_vm_;
|
|
@@ -5016,7 +5036,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5016
5036
|
var n = v(t.to.children).filter(function(e) {
|
|
5017
5037
|
return e.style.display !== "none";
|
|
5018
5038
|
}), r = n.indexOf(t.related), i = e.component.getVmIndexFromDomIndex(r);
|
|
5019
|
-
return n.indexOf(
|
|
5039
|
+
return n.indexOf(_e) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
5020
5040
|
},
|
|
5021
5041
|
onDragMove: function(e, t) {
|
|
5022
5042
|
var n = this.move, r = this.realList;
|
|
@@ -5028,7 +5048,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5028
5048
|
}), t);
|
|
5029
5049
|
},
|
|
5030
5050
|
onDragEnd: function() {
|
|
5031
|
-
|
|
5051
|
+
_e = null;
|
|
5032
5052
|
}
|
|
5033
5053
|
}
|
|
5034
5054
|
});
|
|
@@ -5096,10 +5116,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5096
5116
|
})
|
|
5097
5117
|
}).default;
|
|
5098
5118
|
});
|
|
5099
|
-
})),
|
|
5119
|
+
})), Ia = /* @__PURE__ */ lt(Fa(), 1), La = { class: "tpl:w-full" }, Ra = { class: "tpl:flex tpl:gap-0" }, za = {
|
|
5100
5120
|
key: 0,
|
|
5121
|
+
"data-testid": "section-drop-hint",
|
|
5101
5122
|
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)]"
|
|
5102
|
-
},
|
|
5123
|
+
}, Ba = /* @__PURE__ */ ue({
|
|
5103
5124
|
__name: "SectionBlock",
|
|
5104
5125
|
props: {
|
|
5105
5126
|
block: {},
|
|
@@ -5107,13 +5128,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5107
5128
|
},
|
|
5108
5129
|
setup(e) {
|
|
5109
5130
|
let t = {
|
|
5110
|
-
title:
|
|
5111
|
-
paragraph:
|
|
5112
|
-
image:
|
|
5113
|
-
button:
|
|
5114
|
-
divider:
|
|
5115
|
-
custom:
|
|
5116
|
-
}, n = e, { t: r } = E(), i = l(p, "SectionBlock"), a =
|
|
5131
|
+
title: tr,
|
|
5132
|
+
paragraph: Rn,
|
|
5133
|
+
image: jn,
|
|
5134
|
+
button: Dt,
|
|
5135
|
+
divider: hn,
|
|
5136
|
+
custom: pn
|
|
5137
|
+
}, n = e, { t: r } = E(), i = l(p, "SectionBlock"), a = P(_, null), o = P(b, null), s = k(() => {
|
|
5117
5138
|
switch (n.block.columns) {
|
|
5118
5139
|
case "2": return ["50%", "50%"];
|
|
5119
5140
|
case "3": return [
|
|
@@ -5125,7 +5146,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5125
5146
|
case "2-1": return ["66.67%", "33.33%"];
|
|
5126
5147
|
default: return ["100%"];
|
|
5127
5148
|
}
|
|
5128
|
-
}), c =
|
|
5149
|
+
}), c = k(() => {
|
|
5129
5150
|
let e = s.value.length, t = [...n.block.children];
|
|
5130
5151
|
for (; t.length < e;) t.push([]);
|
|
5131
5152
|
return t.slice(0, e);
|
|
@@ -5139,7 +5160,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5139
5160
|
r[e] = t, i.updateBlock(n.block.id, { children: r });
|
|
5140
5161
|
}
|
|
5141
5162
|
function f(e) {
|
|
5142
|
-
return
|
|
5163
|
+
return zn(e, o, t);
|
|
5143
5164
|
}
|
|
5144
5165
|
function m(e, t) {
|
|
5145
5166
|
e.type === "custom" && i.updateBlock(e.id, {
|
|
@@ -5147,11 +5168,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5147
5168
|
dataSourceFetched: t.dataSourceFetched
|
|
5148
5169
|
});
|
|
5149
5170
|
}
|
|
5150
|
-
return (t, n) => (
|
|
5171
|
+
return (t, n) => (I(), j("div", La, [M("div", Ra, [(I(!0), j(oe, null, _e(c.value, (t, n) => (I(), j("div", {
|
|
5151
5172
|
key: n,
|
|
5152
|
-
class:
|
|
5153
|
-
style:
|
|
5154
|
-
}, [N(
|
|
5173
|
+
class: pe(["tpl:relative tpl:min-h-[60px] tpl:rounded", u(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
5174
|
+
style: F({ width: s.value[n] })
|
|
5175
|
+
}, [N(B(Ia.default), {
|
|
5155
5176
|
"model-value": u(n),
|
|
5156
5177
|
group: {
|
|
5157
5178
|
name: "blocks",
|
|
@@ -5165,13 +5186,13 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5165
5186
|
class: "tpl:min-h-[60px]",
|
|
5166
5187
|
"onUpdate:modelValue": (e) => d(n, e)
|
|
5167
5188
|
}, {
|
|
5168
|
-
item:
|
|
5189
|
+
item: we(({ element: t }) => [Te(M("div", null, [N($n, {
|
|
5169
5190
|
block: t,
|
|
5170
|
-
"is-selected":
|
|
5191
|
+
"is-selected": B(i).state.selectedBlockId === t.id,
|
|
5171
5192
|
viewport: e.viewport,
|
|
5172
|
-
onSelect: (e) =>
|
|
5193
|
+
onSelect: (e) => B(i).selectBlock(t.id)
|
|
5173
5194
|
}, {
|
|
5174
|
-
default:
|
|
5195
|
+
default: we(() => [(I(), se(ye(f(t)), {
|
|
5175
5196
|
block: t,
|
|
5176
5197
|
viewport: e.viewport,
|
|
5177
5198
|
onFetchData: (e) => m(t, e)
|
|
@@ -5186,15 +5207,15 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5186
5207
|
"is-selected",
|
|
5187
5208
|
"viewport",
|
|
5188
5209
|
"onSelect"
|
|
5189
|
-
])], 512), [[
|
|
5210
|
+
])], 512), [[Se, !B(a)?.isHidden(t.id)]])]),
|
|
5190
5211
|
_: 1
|
|
5191
5212
|
}, 8, [
|
|
5192
5213
|
"model-value",
|
|
5193
5214
|
"group",
|
|
5194
5215
|
"onUpdate:modelValue"
|
|
5195
|
-
]), u(n).length === 0 ? (
|
|
5216
|
+
]), u(n).length === 0 ? (I(), j("div", za, [M("span", null, z(B(r).section.dropHere), 1)])) : A("", !0)], 6))), 128))])]));
|
|
5196
5217
|
}
|
|
5197
|
-
}),
|
|
5218
|
+
}), Va = {
|
|
5198
5219
|
facebook: {
|
|
5199
5220
|
name: "Facebook",
|
|
5200
5221
|
color: "#1877F2",
|
|
@@ -5275,11 +5296,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5275
5296
|
color: "#1769FF",
|
|
5276
5297
|
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"
|
|
5277
5298
|
}
|
|
5278
|
-
},
|
|
5299
|
+
}, Ha = {
|
|
5279
5300
|
small: 24,
|
|
5280
5301
|
medium: 32,
|
|
5281
5302
|
large: 48
|
|
5282
|
-
},
|
|
5303
|
+
}, Ua = [
|
|
5283
5304
|
"facebook",
|
|
5284
5305
|
"twitter",
|
|
5285
5306
|
"instagram",
|
|
@@ -5296,11 +5317,11 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5296
5317
|
"github",
|
|
5297
5318
|
"dribbble",
|
|
5298
5319
|
"behance"
|
|
5299
|
-
],
|
|
5320
|
+
], Wa = [
|
|
5300
5321
|
"width",
|
|
5301
5322
|
"height",
|
|
5302
5323
|
"fill"
|
|
5303
|
-
],
|
|
5324
|
+
], Ga = ["d"], Ka = /* @__PURE__ */ ue({
|
|
5304
5325
|
__name: "SocialIconSvg",
|
|
5305
5326
|
props: {
|
|
5306
5327
|
platform: {},
|
|
@@ -5308,7 +5329,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5308
5329
|
iconSize: {}
|
|
5309
5330
|
},
|
|
5310
5331
|
setup(e) {
|
|
5311
|
-
let t = e, n =
|
|
5332
|
+
let t = e, n = k(() => Va[t.platform]), r = k(() => Ha[t.iconSize]), i = k(() => {
|
|
5312
5333
|
let e = {
|
|
5313
5334
|
display: "inline-flex",
|
|
5314
5335
|
alignItems: "center",
|
|
@@ -5345,40 +5366,40 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5345
5366
|
};
|
|
5346
5367
|
default: return e;
|
|
5347
5368
|
}
|
|
5348
|
-
}), a =
|
|
5349
|
-
return (e, t) => (
|
|
5369
|
+
}), a = k(() => Math.floor(r.value * .6)), o = k(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
|
|
5370
|
+
return (e, t) => (I(), j("span", { style: F(i.value) }, [(I(), j("svg", {
|
|
5350
5371
|
width: a.value,
|
|
5351
5372
|
height: a.value,
|
|
5352
5373
|
viewBox: "0 0 24 24",
|
|
5353
5374
|
fill: o.value,
|
|
5354
5375
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5355
|
-
}, [M("path", { d: n.value.path }, null, 8,
|
|
5376
|
+
}, [M("path", { d: n.value.path }, null, 8, Ga)], 8, Wa))], 4));
|
|
5356
5377
|
}
|
|
5357
|
-
}),
|
|
5378
|
+
}), qa = { class: "tpl:w-full" }, Ja = ["href"], Ya = {
|
|
5358
5379
|
key: 1,
|
|
5359
5380
|
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)]"
|
|
5360
|
-
},
|
|
5381
|
+
}, Xa = /* @__PURE__ */ ue({
|
|
5361
5382
|
__name: "SocialIconsBlock",
|
|
5362
5383
|
props: {
|
|
5363
5384
|
block: {},
|
|
5364
5385
|
viewport: {}
|
|
5365
5386
|
},
|
|
5366
5387
|
setup(e) {
|
|
5367
|
-
let t = e, { t: n } = E(), r =
|
|
5388
|
+
let t = e, { t: n } = E(), r = k(() => ({
|
|
5368
5389
|
display: "flex",
|
|
5369
5390
|
flexWrap: "wrap",
|
|
5370
5391
|
gap: `${t.block.spacing}px`,
|
|
5371
5392
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
5372
|
-
})), i =
|
|
5373
|
-
return (t, a) => (
|
|
5393
|
+
})), i = k(() => t.block.icons.length > 0);
|
|
5394
|
+
return (t, a) => (I(), j("div", qa, [i.value ? (I(), j("div", {
|
|
5374
5395
|
key: 0,
|
|
5375
|
-
style:
|
|
5376
|
-
}, [(
|
|
5396
|
+
style: F(r.value)
|
|
5397
|
+
}, [(I(!0), j(oe, null, _e(e.block.icons, (t) => (I(), j("a", {
|
|
5377
5398
|
key: t.id,
|
|
5378
5399
|
href: t.url || "#",
|
|
5379
5400
|
class: "tpl:cursor-default",
|
|
5380
|
-
onClick: a[0] ||=
|
|
5381
|
-
}, [N(
|
|
5401
|
+
onClick: a[0] ||= De(() => {}, ["prevent"])
|
|
5402
|
+
}, [N(Ka, {
|
|
5382
5403
|
platform: t.platform,
|
|
5383
5404
|
"icon-style": e.block.iconStyle,
|
|
5384
5405
|
"icon-size": e.block.iconSize
|
|
@@ -5386,68 +5407,68 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5386
5407
|
"platform",
|
|
5387
5408
|
"icon-style",
|
|
5388
5409
|
"icon-size"
|
|
5389
|
-
])], 8,
|
|
5410
|
+
])], 8, Ja))), 128))], 4)) : (I(), j("div", Ya, [N(B(Ht), { size: 16 }), M("span", null, z(B(n).social.addIcons), 1)]))]));
|
|
5390
5411
|
}
|
|
5391
|
-
}),
|
|
5412
|
+
}), Za = { class: "tpl:w-full" }, Qa = {
|
|
5392
5413
|
key: 0,
|
|
5393
5414
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
5394
5415
|
style: {
|
|
5395
5416
|
"background-color": "var(--tpl-bg-hover)",
|
|
5396
5417
|
color: "var(--tpl-text-dim)"
|
|
5397
5418
|
}
|
|
5398
|
-
},
|
|
5419
|
+
}, $a = /* @__PURE__ */ ue({
|
|
5399
5420
|
__name: "SpacerBlock",
|
|
5400
5421
|
props: {
|
|
5401
5422
|
block: {},
|
|
5402
5423
|
viewport: {}
|
|
5403
5424
|
},
|
|
5404
5425
|
setup(e) {
|
|
5405
|
-
let t = e, n = l(p, "SpacerBlock"), r =
|
|
5426
|
+
let t = e, n = l(p, "SpacerBlock"), r = k(() => ({
|
|
5406
5427
|
height: `${t.block.height}px`,
|
|
5407
5428
|
minHeight: `${t.block.height}px`,
|
|
5408
5429
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
5409
5430
|
}));
|
|
5410
|
-
return (t, i) => (
|
|
5411
|
-
style:
|
|
5412
|
-
class:
|
|
5413
|
-
}, [
|
|
5431
|
+
return (t, i) => (I(), j("div", Za, [M("div", {
|
|
5432
|
+
style: F(r.value),
|
|
5433
|
+
class: pe(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !B(n).state.previewMode }])
|
|
5434
|
+
}, [B(n).state.previewMode ? A("", !0) : (I(), j("span", Qa, z(e.block.height) + "px ", 1))], 6)]));
|
|
5414
5435
|
}
|
|
5415
|
-
}),
|
|
5436
|
+
}), eo = { class: "tpl:w-full" }, to = { key: 0 }, no = [
|
|
5416
5437
|
"aria-label",
|
|
5417
5438
|
"data-placeholder",
|
|
5418
5439
|
"onBlur",
|
|
5419
5440
|
"textContent"
|
|
5420
|
-
],
|
|
5441
|
+
], ro = [
|
|
5421
5442
|
"aria-label",
|
|
5422
5443
|
"data-placeholder",
|
|
5423
5444
|
"onBlur",
|
|
5424
5445
|
"textContent"
|
|
5425
|
-
],
|
|
5446
|
+
], io = {
|
|
5426
5447
|
key: 1,
|
|
5427
5448
|
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)]"
|
|
5428
|
-
},
|
|
5449
|
+
}, ao = /* @__PURE__ */ te(/* @__PURE__ */ ue({
|
|
5429
5450
|
__name: "TableBlock",
|
|
5430
5451
|
props: {
|
|
5431
5452
|
block: {},
|
|
5432
5453
|
viewport: {}
|
|
5433
5454
|
},
|
|
5434
5455
|
setup(e) {
|
|
5435
|
-
let t = e, { t: n } = E(), r = l(p, "TableBlock"), i =
|
|
5456
|
+
let t = e, { t: n } = E(), r = l(p, "TableBlock"), i = k(() => t.block.rows.length > 0), a = k(() => ({
|
|
5436
5457
|
width: "100%",
|
|
5437
5458
|
borderCollapse: "collapse",
|
|
5438
5459
|
fontSize: `${t.block.fontSize}px`,
|
|
5439
5460
|
color: t.block.color,
|
|
5440
5461
|
textAlign: t.block.textAlign,
|
|
5441
5462
|
fontFamily: t.block.fontFamily || "inherit"
|
|
5442
|
-
})), o =
|
|
5463
|
+
})), o = k(() => ({
|
|
5443
5464
|
border: `${t.block.borderWidth}px solid ${t.block.borderColor}`,
|
|
5444
5465
|
padding: `${t.block.cellPadding}px`,
|
|
5445
5466
|
textAlign: t.block.textAlign
|
|
5446
|
-
})), s =
|
|
5467
|
+
})), s = k(() => ({
|
|
5447
5468
|
...o.value,
|
|
5448
5469
|
fontWeight: "bold",
|
|
5449
5470
|
backgroundColor: t.block.headerBackgroundColor || "transparent"
|
|
5450
|
-
})), c =
|
|
5471
|
+
})), c = k(() => t.block.hasHeaderRow && t.block.rows.length > 0 ? t.block.rows[0] : null), u = k(() => t.block.hasHeaderRow ? t.block.rows.slice(1) : t.block.rows);
|
|
5451
5472
|
function d() {
|
|
5452
5473
|
r.selectBlock(t.block.id);
|
|
5453
5474
|
}
|
|
@@ -5461,40 +5482,40 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5461
5482
|
} : t);
|
|
5462
5483
|
r.updateBlock(t.block.id, { rows: o });
|
|
5463
5484
|
}
|
|
5464
|
-
return (e, t) => (
|
|
5485
|
+
return (e, t) => (I(), j("div", eo, [i.value ? (I(), j("table", {
|
|
5465
5486
|
key: 0,
|
|
5466
|
-
style:
|
|
5487
|
+
style: F(a.value),
|
|
5467
5488
|
class: "tpl-table-editable"
|
|
5468
|
-
}, [c.value ? (
|
|
5489
|
+
}, [c.value ? (I(), j("thead", to, [M("tr", null, [(I(!0), j(oe, null, _e(c.value.cells, (e) => (I(), j("th", {
|
|
5469
5490
|
key: e.id,
|
|
5470
|
-
style:
|
|
5471
|
-
"aria-label":
|
|
5491
|
+
style: F(s.value),
|
|
5492
|
+
"aria-label": B(n).table.cellPlaceholder,
|
|
5472
5493
|
contenteditable: "true",
|
|
5473
|
-
"data-placeholder":
|
|
5494
|
+
"data-placeholder": B(n).table.cellPlaceholder,
|
|
5474
5495
|
onBlur: (t) => f(c.value.id, e.id, t),
|
|
5475
|
-
onKeydown: t[0] ||=
|
|
5476
|
-
onClick:
|
|
5477
|
-
textContent:
|
|
5478
|
-
}, null, 44,
|
|
5496
|
+
onKeydown: t[0] ||= Ee(De((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
5497
|
+
onClick: De(d, ["stop"]),
|
|
5498
|
+
textContent: z(e.content)
|
|
5499
|
+
}, null, 44, no))), 128))])])) : A("", !0), M("tbody", null, [(I(!0), j(oe, null, _e(u.value, (e) => (I(), j("tr", { key: e.id }, [(I(!0), j(oe, null, _e(e.cells, (r) => (I(), j("td", {
|
|
5479
5500
|
key: r.id,
|
|
5480
|
-
style:
|
|
5481
|
-
"aria-label":
|
|
5501
|
+
style: F(o.value),
|
|
5502
|
+
"aria-label": B(n).table.cellPlaceholder,
|
|
5482
5503
|
contenteditable: "true",
|
|
5483
|
-
"data-placeholder":
|
|
5504
|
+
"data-placeholder": B(n).table.cellPlaceholder,
|
|
5484
5505
|
onBlur: (t) => f(e.id, r.id, t),
|
|
5485
|
-
onKeydown: t[1] ||=
|
|
5486
|
-
onClick:
|
|
5487
|
-
textContent:
|
|
5488
|
-
}, null, 44,
|
|
5506
|
+
onKeydown: t[1] ||= Ee(De((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
5507
|
+
onClick: De(d, ["stop"]),
|
|
5508
|
+
textContent: z(r.content)
|
|
5509
|
+
}, null, 44, ro))), 128))]))), 128))])], 4)) : (I(), j("div", io, [N(B(Ut), { size: 16 }), M("span", null, z(B(n).table.empty), 1)]))]));
|
|
5489
5510
|
}
|
|
5490
|
-
}), [["__scopeId", "data-v-dfc60174"]]),
|
|
5511
|
+
}), [["__scopeId", "data-v-dfc60174"]]), oo = /* @__PURE__ */ ue({
|
|
5491
5512
|
__name: "VideoPlayButton",
|
|
5492
5513
|
props: { hoverEffect: {
|
|
5493
5514
|
type: Boolean,
|
|
5494
5515
|
default: !1
|
|
5495
5516
|
} },
|
|
5496
5517
|
setup(e) {
|
|
5497
|
-
return (t, n) => (
|
|
5518
|
+
return (t, n) => (I(), j("div", { class: pe(["tpl:absolute tpl:inset-0 tpl:flex tpl:items-center tpl:justify-center tpl:bg-black/30", e.hoverEffect && "tpl:transition-opacity tpl:group-hover:bg-black/40"]) }, [...n[0] ||= [M("div", { class: "tpl:flex tpl:size-16 tpl:items-center tpl:justify-center tpl:rounded-full tpl:bg-white/90 tpl:shadow-lg" }, [M("svg", {
|
|
5498
5519
|
class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]",
|
|
5499
5520
|
width: "28",
|
|
5500
5521
|
height: "28",
|
|
@@ -5505,7 +5526,7 @@ var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z,
|
|
|
5505
5526
|
});
|
|
5506
5527
|
//#endregion
|
|
5507
5528
|
//#region src/utils/videoThumbnail.ts
|
|
5508
|
-
function
|
|
5529
|
+
function so(e) {
|
|
5509
5530
|
if (!e) return {
|
|
5510
5531
|
platform: "unknown",
|
|
5511
5532
|
videoId: null,
|
|
@@ -5537,130 +5558,130 @@ function io(e) {
|
|
|
5537
5558
|
thumbnailUrl: null
|
|
5538
5559
|
};
|
|
5539
5560
|
}
|
|
5540
|
-
function
|
|
5541
|
-
return t ||
|
|
5561
|
+
function co(e, t) {
|
|
5562
|
+
return t || so(e).thumbnailUrl;
|
|
5542
5563
|
}
|
|
5543
5564
|
//#endregion
|
|
5544
5565
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5545
|
-
var
|
|
5566
|
+
var lo = ["src", "alt"], uo = {
|
|
5546
5567
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
5547
5568
|
style: { opacity: "0.7" }
|
|
5548
|
-
},
|
|
5569
|
+
}, fo = ["href"], po = ["src", "alt"], mo = ["src", "alt"], ho = {
|
|
5549
5570
|
key: 3,
|
|
5550
5571
|
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)]"
|
|
5551
|
-
},
|
|
5572
|
+
}, go = /* @__PURE__ */ ue({
|
|
5552
5573
|
__name: "VideoBlock",
|
|
5553
5574
|
props: {
|
|
5554
5575
|
block: {},
|
|
5555
5576
|
viewport: {}
|
|
5556
5577
|
},
|
|
5557
5578
|
setup(e) {
|
|
5558
|
-
let t = e, { t: n } = E(), { syntax: r } =
|
|
5579
|
+
let t = e, { t: n } = E(), { syntax: r } = ae(), i = k(() => Fe(t.block.url, r) || Fe(t.block.thumbnailUrl, r)), a = k(() => i.value ? null : co(t.block.url, t.block.thumbnailUrl)), o = k(() => ({ textAlign: t.block.align })), s = k(() => ({
|
|
5559
5580
|
maxWidth: "100%",
|
|
5560
5581
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
5561
5582
|
display: "block",
|
|
5562
5583
|
margin: t.block.align === "center" ? "0 auto" : void 0,
|
|
5563
5584
|
marginLeft: t.block.align === "right" ? "auto" : void 0
|
|
5564
|
-
})), c =
|
|
5565
|
-
return (t, r) => (
|
|
5585
|
+
})), c = k(() => Fe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
5586
|
+
return (t, r) => (I(), j("div", {
|
|
5566
5587
|
class: "tpl:w-full",
|
|
5567
|
-
style:
|
|
5568
|
-
}, [i.value && e.block.placeholderUrl ? (
|
|
5588
|
+
style: F(o.value)
|
|
5589
|
+
}, [i.value && e.block.placeholderUrl ? (I(), j("div", {
|
|
5569
5590
|
key: 0,
|
|
5570
5591
|
class: "tpl:relative tpl:inline-block",
|
|
5571
|
-
style:
|
|
5592
|
+
style: F(s.value)
|
|
5572
5593
|
}, [M("img", {
|
|
5573
5594
|
class: "tpl:w-full tpl:border-0",
|
|
5574
5595
|
src: e.block.placeholderUrl,
|
|
5575
5596
|
alt: e.block.alt
|
|
5576
|
-
}, null, 8,
|
|
5597
|
+
}, null, 8, lo), N(oo)], 4)) : i.value ? (I(), j("div", {
|
|
5577
5598
|
key: 1,
|
|
5578
5599
|
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)]",
|
|
5579
|
-
style:
|
|
5580
|
-
}, [N(
|
|
5600
|
+
style: F([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
|
|
5601
|
+
}, [N(B(Wt), {
|
|
5581
5602
|
size: 36,
|
|
5582
5603
|
"stroke-width": 1.5,
|
|
5583
5604
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
5584
5605
|
style: { opacity: "0.5" }
|
|
5585
|
-
}), M("span",
|
|
5606
|
+
}), M("span", uo, z(c.value), 1)], 4)) : a.value ? (I(), j(oe, { key: 2 }, [e.block.url ? (I(), j("a", {
|
|
5586
5607
|
key: 0,
|
|
5587
5608
|
href: e.block.url,
|
|
5588
5609
|
target: "_blank",
|
|
5589
5610
|
rel: "noopener noreferrer",
|
|
5590
5611
|
class: "tpl:group tpl:relative tpl:inline-block",
|
|
5591
|
-
style:
|
|
5592
|
-
onClick: r[0] ||=
|
|
5612
|
+
style: F(s.value),
|
|
5613
|
+
onClick: r[0] ||= De(() => {}, ["prevent"])
|
|
5593
5614
|
}, [M("img", {
|
|
5594
5615
|
class: "tpl:w-full tpl:border-0",
|
|
5595
5616
|
src: a.value,
|
|
5596
5617
|
alt: e.block.alt
|
|
5597
|
-
}, null, 8,
|
|
5618
|
+
}, null, 8, po), N(oo, { "hover-effect": "" })], 12, fo)) : (I(), j("div", {
|
|
5598
5619
|
key: 1,
|
|
5599
5620
|
class: "tpl:relative tpl:inline-block",
|
|
5600
|
-
style:
|
|
5621
|
+
style: F(s.value)
|
|
5601
5622
|
}, [M("img", {
|
|
5602
5623
|
class: "tpl:w-full tpl:border-0",
|
|
5603
5624
|
src: a.value,
|
|
5604
5625
|
alt: e.block.alt
|
|
5605
|
-
}, null, 8,
|
|
5626
|
+
}, null, 8, mo), N(oo)], 4))], 64)) : (I(), j("div", ho, [N(B(Wt), {
|
|
5606
5627
|
size: 40,
|
|
5607
5628
|
"stroke-width": 1.5,
|
|
5608
5629
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
5609
|
-
}), M("span", null, B(
|
|
5630
|
+
}), M("span", null, z(B(n).video.addVideo), 1)]))], 4));
|
|
5610
5631
|
}
|
|
5611
|
-
}),
|
|
5612
|
-
section:
|
|
5613
|
-
title:
|
|
5614
|
-
paragraph:
|
|
5615
|
-
image:
|
|
5616
|
-
button:
|
|
5617
|
-
divider:
|
|
5618
|
-
video:
|
|
5619
|
-
social:
|
|
5620
|
-
menu:
|
|
5621
|
-
table:
|
|
5622
|
-
spacer:
|
|
5623
|
-
html:
|
|
5624
|
-
countdown:
|
|
5632
|
+
}), _o = {
|
|
5633
|
+
section: Ba,
|
|
5634
|
+
title: tr,
|
|
5635
|
+
paragraph: Rn,
|
|
5636
|
+
image: jn,
|
|
5637
|
+
button: Dt,
|
|
5638
|
+
divider: hn,
|
|
5639
|
+
video: go,
|
|
5640
|
+
social: Xa,
|
|
5641
|
+
menu: Fn,
|
|
5642
|
+
table: ao,
|
|
5643
|
+
spacer: $a,
|
|
5644
|
+
html: bn,
|
|
5645
|
+
countdown: jt
|
|
5625
5646
|
};
|
|
5626
|
-
function
|
|
5647
|
+
function vo(e) {
|
|
5627
5648
|
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: o, format: l } = E(r);
|
|
5628
5649
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
5629
|
-
let { resolvedTheme: D } =
|
|
5630
|
-
themeOverrides:
|
|
5650
|
+
let { resolvedTheme: D } = mt(k(() => t.state.uiTheme)), te = R(n.theme ?? {}), { themeStyles: ne } = gt({
|
|
5651
|
+
themeOverrides: te,
|
|
5631
5652
|
resolvedTheme: D,
|
|
5632
5653
|
extraStyles: e.themeExtraStyles
|
|
5633
|
-
}),
|
|
5654
|
+
}), O = Me({
|
|
5634
5655
|
content: t.content,
|
|
5635
5656
|
setContent: (e, n) => t.setContent(e, n),
|
|
5636
5657
|
...e.historyOptions
|
|
5637
5658
|
});
|
|
5638
|
-
|
|
5639
|
-
let
|
|
5659
|
+
Ne(t, O);
|
|
5660
|
+
let re = ke({
|
|
5640
5661
|
addBlock: t.addBlock,
|
|
5641
5662
|
removeBlock: t.removeBlock,
|
|
5642
5663
|
updateBlock: t.updateBlock,
|
|
5643
5664
|
selectBlock: t.selectBlock,
|
|
5644
5665
|
blockDefaults: n.blockDefaults
|
|
5645
|
-
}),
|
|
5666
|
+
}), ie = Ae(t), ae = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? Oe({
|
|
5646
5667
|
content: t.content,
|
|
5647
5668
|
isDirty: () => t.state.isDirty,
|
|
5648
5669
|
...e.autoSaveOptions
|
|
5649
|
-
}) : null,
|
|
5650
|
-
|
|
5651
|
-
e ?
|
|
5670
|
+
}) : null, oe = null;
|
|
5671
|
+
ae && (oe = Ce(O.isNavigating, (e) => {
|
|
5672
|
+
e ? ae.pause() : ae.resume();
|
|
5652
5673
|
}));
|
|
5653
|
-
let
|
|
5674
|
+
let se = pt(t, {
|
|
5654
5675
|
t: o,
|
|
5655
5676
|
format: l
|
|
5656
|
-
}),
|
|
5657
|
-
if (
|
|
5677
|
+
}), A = bt();
|
|
5678
|
+
if (St(A, _o), n.customBlocks?.length) for (let e of n.customBlocks) A.registerCustom(e, pn);
|
|
5658
5679
|
function j(e) {
|
|
5659
|
-
for (let t of e)
|
|
5680
|
+
for (let t of e) A.registerCustom(t, pn);
|
|
5660
5681
|
}
|
|
5661
5682
|
function M(r) {
|
|
5662
|
-
|
|
5663
|
-
history:
|
|
5683
|
+
wt(r, {
|
|
5684
|
+
history: O,
|
|
5664
5685
|
selectBlock: (e) => t.selectBlock(e),
|
|
5665
5686
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
5666
5687
|
removeBlock: (e) => t.removeBlock(e),
|
|
@@ -5668,27 +5689,27 @@ function ho(e) {
|
|
|
5668
5689
|
onBeforeUndo: e.keyboardOptions?.onBeforeUndo
|
|
5669
5690
|
});
|
|
5670
5691
|
}
|
|
5671
|
-
a(document, "keydown", M),
|
|
5672
|
-
let ce =
|
|
5673
|
-
|
|
5692
|
+
a(document, "keydown", M), L(s, r), L(p, t), L(v, O), L(g, re), L(_, ie), L(x, i), L(c, ne), L(w, D), L(d, n.blockDefaults), L(b, A), L(C, n.customBlocks ?? []);
|
|
5693
|
+
let ce = Qe(n.mergeTags?.syntax);
|
|
5694
|
+
L(m, n.mergeTags?.tags ?? []), L(u, ce), L(T, n.mergeTags?.onRequest ?? null), L(ee, n.onRequestMedia ?? null), L(f, n.displayConditions?.conditions ?? []), L(y, n.displayConditions?.allowCustom ?? !1), L(S, e.capabilities ?? {}), L(h, se);
|
|
5674
5695
|
function N() {
|
|
5675
|
-
|
|
5696
|
+
oe?.(), ae?.destroy(), O.destroy();
|
|
5676
5697
|
}
|
|
5677
5698
|
return {
|
|
5678
5699
|
t: o,
|
|
5679
5700
|
format: l,
|
|
5680
|
-
history:
|
|
5681
|
-
blockActions:
|
|
5682
|
-
conditionPreview:
|
|
5683
|
-
autoSave:
|
|
5701
|
+
history: O,
|
|
5702
|
+
blockActions: re,
|
|
5703
|
+
conditionPreview: ie,
|
|
5704
|
+
autoSave: ae,
|
|
5684
5705
|
resolvedTheme: D,
|
|
5685
|
-
themeStyles:
|
|
5686
|
-
themeOverrides:
|
|
5687
|
-
registry:
|
|
5688
|
-
keyboardReorder:
|
|
5706
|
+
themeStyles: ne,
|
|
5707
|
+
themeOverrides: te,
|
|
5708
|
+
registry: A,
|
|
5709
|
+
keyboardReorder: se,
|
|
5689
5710
|
registerCustomBlocks: j,
|
|
5690
5711
|
destroy: N
|
|
5691
5712
|
};
|
|
5692
5713
|
}
|
|
5693
5714
|
//#endregion
|
|
5694
|
-
export {
|
|
5715
|
+
export { It as A, Xt as C, Ht as D, Ut as E, yt as F, ft as I, st as L, Pt as M, jt as N, Bt as O, Dt as P, lt as R, Zt as S, qt as T, bn as _, Xa as a, rn as b, Ba as c, $n as d, Bn as f, jn as g, Fn as h, $a as i, Ft as j, zt as k, Fa as l, Rn as m, go as n, Va as o, zn as p, ao as r, Ua as s, vo as t, tr as u, hn as v, Yt as w, tn as x, pn as y };
|