@templatical/editor 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AiChatSidebar-busJk9hm.js → AiChatSidebar-CjfhTZwo.js} +1 -1
- package/dist/{AiFeatureMenu-DLGv_-pj.js → AiFeatureMenu-K44aZa_P.js} +3 -3
- package/dist/CloudEditor-DFyuRxUV.js +926 -0
- package/dist/{CollaboratorBar-Dv3l52vC.js → CollaboratorBar-BuCEcdbB.js} +25 -21
- package/dist/{CommentsSidebar-4tjp0VU5.js → CommentsSidebar-2lcqMfIP.js} +2 -2
- package/dist/{DesignReferenceSidebar-CmwXvltV.js → DesignReferenceSidebar-CNMu4Zrx.js} +2 -2
- package/dist/{ModuleBrowserModal-lrk3Fr0H.js → ModuleBrowserModal-CvQ0xyQf.js} +6 -6
- package/dist/{ModulePreviewCanvas-BcBJLnwL.js → ModulePreviewCanvas-Be2B3Y07.js} +2 -2
- package/dist/ParagraphEditor-CcMPnbDr.js +652 -0
- package/dist/{RichTextEditorContent-CQqodi7p.js → RichTextEditorContent-CHJlh7HJ.js} +8 -4
- package/dist/{SaveModuleDialog-Bmzi72td.js → SaveModuleDialog-BaaeH5Xm.js} +5 -5
- package/dist/{SnapshotHistory-AEgi9Xsn.js → SnapshotHistory-BPfjiuu1.js} +2 -2
- package/dist/{TemplateScoringPanel-CTgMtc0-.js → TemplateScoringPanel-D58A23Vq.js} +3 -3
- package/dist/{TestEmailModal-Dpq1is9S.js → TestEmailModal-DIAlB3e_.js} +3 -3
- package/dist/{TitleEditor-CLcDdcWI.js → TitleEditor-D9DPjQkX.js} +7 -7
- package/dist/{TplModal-CGzRjR96.js → TplModal-CmTSvCY-.js} +2 -2
- package/dist/{blockTypeIcons-BpPTqcok.js → blockTypeIcons-D1RTWOkx.js} +1 -1
- package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +2 -0
- package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js +59 -0
- package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +1 -0
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +900 -0
- package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +1 -0
- package/dist/cdn/chunks/CollaboratorBar-D2PKtlOw.js +51 -0
- package/dist/cdn/chunks/CollaboratorBar-D2PKtlOw.js.map +1 -0
- package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +2 -0
- package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +2 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js +195 -0
- package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +1 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-DEfHampA.js +107 -0
- package/dist/cdn/chunks/ModulePreviewCanvas-DEfHampA.js.map +1 -0
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +503 -0
- package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +1 -0
- package/dist/cdn/chunks/RichTextEditorContent-DWUzizsC.js +106 -0
- package/dist/cdn/chunks/RichTextEditorContent-DWUzizsC.js.map +1 -0
- package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js +119 -0
- package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +1 -0
- package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +2 -0
- package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +2 -0
- package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +2 -0
- package/dist/cdn/chunks/TitleEditor-DDf_OcHS.js +166 -0
- package/dist/cdn/chunks/TitleEditor-DDf_OcHS.js.map +1 -0
- package/dist/cdn/chunks/_rolldown_dynamic_import_helper-DMEI4TQ3.js +9 -0
- package/dist/cdn/chunks/blockTypeIcons-BnobReQm.js +22 -0
- package/dist/cdn/chunks/blockTypeIcons-BnobReQm.js.map +1 -0
- package/dist/cdn/chunks/de-BB3dgVOc.js +700 -0
- package/dist/cdn/chunks/de-BB3dgVOc.js.map +1 -0
- package/dist/cdn/chunks/de-BvYD17KT.js +89 -0
- package/dist/cdn/chunks/de-BvYD17KT.js.map +1 -0
- package/dist/cdn/chunks/dist-B6AUkMyh.js +2 -0
- package/dist/cdn/chunks/dist-B878xb_62.js +457 -0
- package/dist/cdn/chunks/dist-B878xb_62.js.map +1 -0
- package/dist/cdn/chunks/dist-Bf1Op9A1.js +2 -0
- package/dist/cdn/chunks/dist-BkETaOfw.js +2 -0
- package/dist/cdn/chunks/dist-CJcMnY7o.js +2 -0
- package/dist/cdn/chunks/dist-CWsl6S1K.js +2 -0
- package/dist/cdn/chunks/dist-CllLxIMQ.js +2 -0
- package/dist/cdn/chunks/dist-Cs0wFwdw.js +2 -0
- package/dist/cdn/chunks/dist-DLWHlekl.js +2 -0
- package/dist/cdn/chunks/dist-DS3_HVpX.js +2 -0
- package/dist/cdn/chunks/dist-DTXopj1a.js +2 -0
- package/dist/cdn/chunks/dist-DnwLoNLm.js +2 -0
- package/dist/cdn/chunks/draggable-BQNU47zu.js +11544 -0
- package/dist/cdn/chunks/{draggable-ClUwYCFL.js.map → draggable-BQNU47zu.js.map} +1 -1
- package/dist/cdn/chunks/emojiData-BVEJHcNH.js +19 -0
- package/dist/cdn/chunks/{emojiData-6fVLNqeH.js.map → emojiData-BVEJHcNH.js.map} +1 -1
- package/dist/cdn/chunks/en-CpotcOPr.js +89 -0
- package/dist/cdn/chunks/en-CpotcOPr.js.map +1 -0
- package/dist/cdn/chunks/en-DeDcpnoS.js +700 -0
- package/dist/cdn/chunks/en-DeDcpnoS.js.map +1 -0
- package/dist/cdn/chunks/extensions-B_kcV0tK.js +419 -0
- package/dist/cdn/chunks/{extensions-ea_ewKUl.js.map → extensions-B_kcV0tK.js.map} +1 -1
- package/dist/cdn/chunks/features-ofOGnSC0.js +6700 -0
- package/dist/cdn/chunks/features-ofOGnSC0.js.map +1 -0
- package/dist/cdn/chunks/icons-bIb7PBOE.js +653 -0
- package/dist/cdn/chunks/icons-bIb7PBOE.js.map +1 -0
- package/dist/cdn/chunks/liquid.browser-C1VIYISn.js +3272 -0
- package/dist/cdn/chunks/liquid.browser-C1VIYISn.js.map +1 -0
- package/dist/cdn/chunks/media-library-BIYzV2Y2.js +6005 -0
- package/dist/cdn/chunks/media-library-BIYzV2Y2.js.map +1 -0
- package/dist/cdn/chunks/pusher-DJPhQnE8.js +2505 -0
- package/dist/cdn/chunks/pusher-DJPhQnE8.js.map +1 -0
- package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js +32 -0
- package/dist/cdn/chunks/readableTextColor-Cd_cgWO_.js.map +1 -0
- package/dist/cdn/chunks/rolldown-runtime-DPITmOBR.js +20 -0
- package/dist/cdn/chunks/src-BuW9oYtm.js +494 -0
- package/dist/cdn/chunks/src-BuW9oYtm.js.map +1 -0
- package/dist/cdn/chunks/styleConstants-1KwsBMxJ.js +57 -0
- package/dist/cdn/chunks/{styleConstants-CNejCb-L.js.map → styleConstants-1KwsBMxJ.js.map} +1 -1
- package/dist/cdn/chunks/styles-DQFExz-T.js +3222 -0
- package/dist/cdn/chunks/styles-DQFExz-T.js.map +1 -0
- package/dist/cdn/chunks/tiptap-DplY-S-k.js +14208 -0
- package/dist/cdn/chunks/{tiptap-Cya4P9CN.js.map → tiptap-DplY-S-k.js.map} +1 -1
- package/dist/cdn/editor.css +2 -1
- package/dist/cdn/editor.js +260 -1
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{de-B4Ob4vCo.js → de-D7TLGIPA.js} +20 -4
- package/dist/{dist-DmpMJbmZ.js → dist-BkIys9zn.js} +1 -1
- package/dist/{en-YXsspZJG.js → en-DvtiEMwP.js} +20 -4
- package/dist/{extensions-CKM99njP.js → extensions-DEjfEFhD.js} +3 -3
- package/dist/{keys-Dwa2PmdD.js → keys-C0MQRs8d.js} +3 -3
- package/dist/readableTextColor-LDlmVEUv.js +30 -0
- package/dist/{styles-DSw1VNU3.js → styles-CgLaxDfu.js} +1096 -1074
- package/dist/templatical-editor.css +1 -1
- package/dist/templatical-editor.js +113 -89
- package/dist/templatical-editor.umd.cjs +59 -59
- package/dist/{useEditorCore-Cc4RCwWq.js → useEditorCore-CjwRMl7K.js} +1152 -1014
- package/dist/{useI18n-DUirdXEX.js → useI18n-D6m7ZUgY.js} +1 -1
- package/dist/{useMergeTag-DVnlvPYJ.js → useMergeTag-BZ3X0bNr.js} +1 -1
- package/package.json +2 -2
- package/dist/CloudEditor-BDnHd6Um.js +0 -919
- package/dist/ParagraphEditor-DH8cSC6m.js +0 -625
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js +0 -3
- package/dist/cdn/chunks/ParagraphEditor-CCtWbGDv.js.map +0 -1
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js +0 -2
- package/dist/cdn/chunks/RichTextEditorContent-BUD9veXd.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js +0 -3
- package/dist/cdn/chunks/TitleEditor-e_UTyxjd.js.map +0 -1
- package/dist/cdn/chunks/dist-0UheN8rK.js +0 -1
- package/dist/cdn/chunks/dist-55mmbGQ9.js +0 -1
- package/dist/cdn/chunks/dist-B31mxKyP.js +0 -1
- package/dist/cdn/chunks/dist-B5JI9nIg.js +0 -1
- package/dist/cdn/chunks/dist-B93vLKhU.js +0 -1
- package/dist/cdn/chunks/dist-BDt3FJvj.js +0 -1
- package/dist/cdn/chunks/dist-BJRuFHmi.js +0 -1
- package/dist/cdn/chunks/dist-BKSzrf0L.js +0 -1
- package/dist/cdn/chunks/dist-BL8c5gYQ.js +0 -1
- package/dist/cdn/chunks/dist-CYThWMP5.js +0 -1
- package/dist/cdn/chunks/dist-DxZbPJYt.js +0 -1
- package/dist/cdn/chunks/draggable-ClUwYCFL.js +0 -17
- package/dist/cdn/chunks/emojiData-6fVLNqeH.js +0 -2
- package/dist/cdn/chunks/extensions-ea_ewKUl.js +0 -2
- package/dist/cdn/chunks/icons-vmLJTaJk.js +0 -2
- package/dist/cdn/chunks/icons-vmLJTaJk.js.map +0 -1
- package/dist/cdn/chunks/rolldown-runtime-BakkzWXw.js +0 -1
- package/dist/cdn/chunks/styleConstants-CNejCb-L.js +0 -2
- package/dist/cdn/chunks/tiptap-Cya4P9CN.js +0 -145
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js +0 -2
- package/dist/cdn/chunks/useEditorCore-CwuxQuvh.js.map +0 -1
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js +0 -2
- package/dist/cdn/chunks/useMergeTag-DVOz1v9p.js.map +0 -1
- package/dist/i18n-CJsFtdbZ.js +0 -23
|
@@ -1,13 +1,13 @@
|
|
|
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
|
-
import { C as s, S as c,
|
|
3
|
-
import { t as E } from "./useI18n-
|
|
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
|
+
import { t as E } from "./useI18n-D6m7ZUgY.js";
|
|
4
4
|
import { n as D, t as O } from "./_plugin-vue_export-helper-B1-bu7yR.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as te } from "./message-circle-Blgm6V_h.js";
|
|
6
6
|
import { t as k } from "./trash-2-OwjZ-guZ.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Fragment as
|
|
7
|
+
import { t as ne } from "./triangle-alert-DOSRIUYZ.js";
|
|
8
|
+
import { t as re } from "./LoadingTrack-vK8W2PJf.js";
|
|
9
|
+
import { t as ie } from "./useMergeTag-BZ3X0bNr.js";
|
|
10
|
+
import { Fragment as ae, computed as A, createBlock as oe, createCommentVNode as se, createElementBlock as j, createElementVNode as M, createTextVNode as ce, createVNode as N, defineAsyncComponent as le, defineComponent as P, getCurrentScope as ue, inject as F, nextTick as de, normalizeClass as fe, normalizeStyle as I, onBeforeUnmount as pe, onMounted as me, onScopeDispose as he, openBlock as L, provide as R, ref as z, renderList as ge, renderSlot as _e, resolveDynamicComponent as ve, shallowRef as ye, toDisplayString as B, triggerRef as be, unref as V, vShow as xe, watch as Se, withCtx as Ce, withDirectives as we, withKeys as Te, withModifiers as Ee } from "vue";
|
|
11
11
|
import { useAutoSave as De, useBlockActions as Oe, useConditionPreview as ke, useDataSourceFetch as Ae, useHistory as je, useHistoryInterceptor as Me } from "@templatical/core";
|
|
12
12
|
import { HEADING_LEVEL_FONT_SIZE as Ne, containsMergeTag as Pe, createButtonBlock as Fe, createCountdownBlock as Ie, createCustomBlock as Le, createDividerBlock as Re, createHtmlBlock as ze, createImageBlock as Be, createMenuBlock as Ve, createParagraphBlock as He, createSectionBlock as Ue, createSocialIconsBlock as We, createSpacerBlock as Ge, createTableBlock as Ke, createTitleBlock as qe, createVideoBlock as Je, resolveHtmlLogicMergeTagLabels as Ye, resolveHtmlMergeTagLabels as Xe, resolveSyntax as Ze } from "@templatical/types";
|
|
13
13
|
//#region \0rolldown/runtime.js
|
|
@@ -32,14 +32,115 @@ var Qe = Object.create, $e = Object.defineProperty, et = Object.getOwnPropertyDe
|
|
|
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
|
+
//#region src/utils/blockTypeLabels.ts
|
|
36
|
+
function dt(e, t) {
|
|
37
|
+
return t.blocks[e] ?? e;
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/composables/useKeyboardReorder.ts
|
|
41
|
+
function ft(e, t) {
|
|
42
|
+
let n = z(null), r = z(""), i = null;
|
|
43
|
+
function a(t) {
|
|
44
|
+
let n = e.content.value.blocks, r = n.findIndex((e) => e.id === t);
|
|
45
|
+
if (r !== -1) return {
|
|
46
|
+
index: r,
|
|
47
|
+
total: n.length
|
|
48
|
+
};
|
|
49
|
+
for (let e of n) {
|
|
50
|
+
if (e.type !== "section") continue;
|
|
51
|
+
let n = e;
|
|
52
|
+
for (let e = 0; e < n.children.length; e++) {
|
|
53
|
+
let r = n.children[e], i = r.findIndex((e) => e.id === t);
|
|
54
|
+
if (i !== -1) return {
|
|
55
|
+
index: i,
|
|
56
|
+
total: r.length,
|
|
57
|
+
sectionId: n.id,
|
|
58
|
+
columnIndex: e
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
function o(n) {
|
|
65
|
+
let r = a(n);
|
|
66
|
+
if (!r) return "";
|
|
67
|
+
let i = (r.sectionId ? s(r.sectionId, r.columnIndex ?? 0) : e.content.value.blocks)?.[r.index];
|
|
68
|
+
return i ? dt(i.type, t.t) : "";
|
|
69
|
+
}
|
|
70
|
+
function s(t, n) {
|
|
71
|
+
return e.content.value.blocks.find((e) => e.id === t && e.type === "section")?.children[n] ?? null;
|
|
72
|
+
}
|
|
73
|
+
function c(e) {
|
|
74
|
+
r.value = "", queueMicrotask(() => {
|
|
75
|
+
r.value = e;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function l(e) {
|
|
79
|
+
return n.value === e;
|
|
80
|
+
}
|
|
81
|
+
function u(e) {
|
|
82
|
+
let r = a(e);
|
|
83
|
+
r && (n.value = e, i = r, c(t.format(t.t.blockActions.lifted, {
|
|
84
|
+
block: o(e),
|
|
85
|
+
position: String(r.index + 1),
|
|
86
|
+
total: String(r.total)
|
|
87
|
+
})));
|
|
88
|
+
}
|
|
89
|
+
function d(n, r) {
|
|
90
|
+
let i = a(n);
|
|
91
|
+
if (!i) return;
|
|
92
|
+
let s = i.index + r;
|
|
93
|
+
s < 0 || s >= i.total || (e.moveBlock(n, s, i.sectionId, i.columnIndex), c(t.format(t.t.blockActions.moved, {
|
|
94
|
+
block: o(n),
|
|
95
|
+
position: String(s + 1),
|
|
96
|
+
total: String(i.total)
|
|
97
|
+
})));
|
|
98
|
+
}
|
|
99
|
+
function f(e) {
|
|
100
|
+
d(e, -1);
|
|
101
|
+
}
|
|
102
|
+
function p(e) {
|
|
103
|
+
d(e, 1);
|
|
104
|
+
}
|
|
105
|
+
function m(e) {
|
|
106
|
+
let r = a(e);
|
|
107
|
+
r && c(t.format(t.t.blockActions.dropped, {
|
|
108
|
+
block: o(e),
|
|
109
|
+
position: String(r.index + 1),
|
|
110
|
+
total: String(r.total)
|
|
111
|
+
})), n.value = null, i = null;
|
|
112
|
+
}
|
|
113
|
+
function h() {
|
|
114
|
+
let r = n.value;
|
|
115
|
+
if (r && i) {
|
|
116
|
+
let n = a(r);
|
|
117
|
+
n && n.index !== i.index && e.moveBlock(r, i.index, i.sectionId, i.columnIndex), c(t.format(t.t.blockActions.cancelled, {
|
|
118
|
+
block: o(r),
|
|
119
|
+
position: String(i.index + 1)
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
n.value = null, i = null;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
liftedBlockId: n,
|
|
126
|
+
announcement: r,
|
|
127
|
+
isLifted: l,
|
|
128
|
+
lift: u,
|
|
129
|
+
cancel: h,
|
|
130
|
+
moveUp: f,
|
|
131
|
+
moveDown: p,
|
|
132
|
+
drop: m
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
35
136
|
//#region src/composables/useUiTheme.ts
|
|
36
|
-
function
|
|
137
|
+
function pt(e) {
|
|
37
138
|
let t = n("(prefers-color-scheme: dark)");
|
|
38
139
|
return { resolvedTheme: A(() => e.value === "auto" ? t.value ? "dark" : "light" : e.value) };
|
|
39
140
|
}
|
|
40
141
|
//#endregion
|
|
41
142
|
//#region src/composables/useThemeStyles.ts
|
|
42
|
-
var
|
|
143
|
+
var mt = {
|
|
43
144
|
bg: "--tpl-bg",
|
|
44
145
|
bgElevated: "--tpl-bg-elevated",
|
|
45
146
|
bgHover: "--tpl-bg-hover",
|
|
@@ -63,10 +164,10 @@ var ft = {
|
|
|
63
164
|
dangerLight: "--tpl-danger-light",
|
|
64
165
|
canvasBg: "--tpl-canvas-bg"
|
|
65
166
|
};
|
|
66
|
-
function
|
|
167
|
+
function ht({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
67
168
|
return { themeStyles: A(() => {
|
|
68
169
|
let r = {}, i = e.value, a = t.value === "dark" ? i.dark : i;
|
|
69
|
-
if (a) for (let [e, t] of Object.entries(
|
|
170
|
+
if (a) for (let [e, t] of Object.entries(mt)) {
|
|
70
171
|
let n = a[e];
|
|
71
172
|
n && (r[t] = n);
|
|
72
173
|
}
|
|
@@ -75,7 +176,7 @@ function pt({ themeOverrides: e, resolvedTheme: t, extraStyles: n }) {
|
|
|
75
176
|
}
|
|
76
177
|
//#endregion
|
|
77
178
|
//#region src/composables/useBlockRegistry.ts
|
|
78
|
-
function
|
|
179
|
+
function gt() {
|
|
79
180
|
let e = ye(/* @__PURE__ */ new Map());
|
|
80
181
|
function t(t, n) {
|
|
81
182
|
e.value.set(t, n), be(e);
|
|
@@ -146,7 +247,7 @@ function mt() {
|
|
|
146
247
|
}
|
|
147
248
|
//#endregion
|
|
148
249
|
//#region src/utils/registerBuiltInBlocks.ts
|
|
149
|
-
var
|
|
250
|
+
var _t = [
|
|
150
251
|
{
|
|
151
252
|
type: "section",
|
|
152
253
|
label: "Section",
|
|
@@ -213,8 +314,8 @@ var ht = [
|
|
|
213
314
|
createBlock: Ie
|
|
214
315
|
}
|
|
215
316
|
];
|
|
216
|
-
function
|
|
217
|
-
for (let n of
|
|
317
|
+
function vt(e, t) {
|
|
318
|
+
for (let n of _t) {
|
|
218
319
|
let r = t[n.type];
|
|
219
320
|
r && e.registerBuiltIn(n.type, {
|
|
220
321
|
component: r,
|
|
@@ -229,18 +330,18 @@ function gt(e, t) {
|
|
|
229
330
|
}
|
|
230
331
|
//#endregion
|
|
231
332
|
//#region src/utils/keyboardShortcuts.ts
|
|
232
|
-
function
|
|
333
|
+
function yt(e) {
|
|
233
334
|
let t = e.target;
|
|
234
335
|
return t.isContentEditable || t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.tagName === "SELECT";
|
|
235
336
|
}
|
|
236
|
-
function
|
|
337
|
+
function bt(e, t) {
|
|
237
338
|
let n = e.metaKey || e.ctrlKey;
|
|
238
339
|
if (n && e.key === "s") {
|
|
239
340
|
e.preventDefault(), t.onSave?.();
|
|
240
341
|
return;
|
|
241
342
|
}
|
|
242
343
|
if (n && e.key.toLowerCase() === "z") {
|
|
243
|
-
if (
|
|
344
|
+
if (yt(e)) return;
|
|
244
345
|
e.preventDefault(), e.shiftKey ? t.history.redo() : (t.onBeforeUndo?.(), t.history.undo());
|
|
245
346
|
return;
|
|
246
347
|
}
|
|
@@ -248,11 +349,11 @@ function vt(e, t) {
|
|
|
248
349
|
t.selectBlock(null);
|
|
249
350
|
return;
|
|
250
351
|
}
|
|
251
|
-
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !
|
|
352
|
+
(e.key === "Delete" || e.key === "Backspace") && t.getSelectedBlockId() && !yt(e) && (e.preventDefault(), t.history.record(), t.removeBlock(t.getSelectedBlockId()));
|
|
252
353
|
}
|
|
253
354
|
//#endregion
|
|
254
355
|
//#region src/components/blocks/ButtonBlock.vue?vue&type=script&setup=true&lang.ts
|
|
255
|
-
var
|
|
356
|
+
var xt = { class: "tpl:text-center" }, St = ["href"], Ct = /* @__PURE__ */ P({
|
|
256
357
|
__name: "ButtonBlock",
|
|
257
358
|
props: {
|
|
258
359
|
block: {},
|
|
@@ -273,27 +374,27 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
273
374
|
};
|
|
274
375
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
275
376
|
});
|
|
276
|
-
return (t, r) => (
|
|
377
|
+
return (t, r) => (L(), j("div", xt, [M("a", {
|
|
277
378
|
href: e.block.url || "#",
|
|
278
|
-
style:
|
|
379
|
+
style: I(n.value),
|
|
279
380
|
class: "tpl:cursor-default",
|
|
280
381
|
onClick: r[0] ||= Ee(() => {}, ["prevent"])
|
|
281
|
-
},
|
|
382
|
+
}, B(e.block.text), 13, St)]));
|
|
282
383
|
}
|
|
283
|
-
}),
|
|
384
|
+
}), wt = {
|
|
284
385
|
key: 0,
|
|
285
386
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-8 tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
286
|
-
},
|
|
387
|
+
}, Tt = {
|
|
287
388
|
key: 1,
|
|
288
389
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:py-4 tpl:text-xs tpl:text-[var(--tpl-text-dim)] tpl:opacity-50"
|
|
289
|
-
},
|
|
390
|
+
}, Et = { class: "tpl:text-center" }, Dt = /* @__PURE__ */ P({
|
|
290
391
|
__name: "CountdownBlock",
|
|
291
392
|
props: {
|
|
292
393
|
block: {},
|
|
293
394
|
viewport: {}
|
|
294
395
|
},
|
|
295
396
|
setup(e) {
|
|
296
|
-
let t = e, { t: n } = E(), r =
|
|
397
|
+
let t = e, { t: n } = E(), r = z(Date.now());
|
|
297
398
|
i(() => {
|
|
298
399
|
r.value = Date.now();
|
|
299
400
|
}, 1e3);
|
|
@@ -347,27 +448,27 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
347
448
|
color: t.block.digitColor,
|
|
348
449
|
fontFamily: t.block.fontFamily || "inherit"
|
|
349
450
|
}));
|
|
350
|
-
return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (
|
|
451
|
+
return (t, r) => e.block.targetDate ? o.value && e.block.hideOnExpiry ? (L(), j("div", Tt, B(V(n).countdown.hidden), 1)) : o.value ? (L(), j("div", {
|
|
351
452
|
key: 2,
|
|
352
|
-
style:
|
|
453
|
+
style: I(l.value),
|
|
353
454
|
class: "tpl:py-4 tpl:text-center"
|
|
354
|
-
}, [M("span", { style:
|
|
455
|
+
}, [M("span", { style: I({
|
|
355
456
|
fontSize: `${e.block.digitFontSize}px`,
|
|
356
457
|
color: e.block.digitColor
|
|
357
|
-
}) },
|
|
458
|
+
}) }, B(e.block.expiredMessage), 5)], 4)) : (L(), j("div", {
|
|
358
459
|
key: 3,
|
|
359
|
-
style:
|
|
460
|
+
style: I(l.value),
|
|
360
461
|
class: "tpl:flex tpl:items-center tpl:justify-center tpl:gap-2 tpl:py-4"
|
|
361
|
-
}, [(
|
|
462
|
+
}, [(L(!0), j(ae, null, ge(c.value, (t, n) => (L(), j(ae, { key: t.label }, [n > 0 ? (L(), j("span", {
|
|
362
463
|
key: 0,
|
|
363
|
-
style:
|
|
464
|
+
style: I(f.value),
|
|
364
465
|
class: "tpl:self-start"
|
|
365
|
-
},
|
|
466
|
+
}, B(e.block.separator), 5)) : se("", !0), M("div", Et, [M("div", { style: I(u.value) }, B(t.value), 5), M("div", { style: I(d.value) }, B(t.label), 5)])], 64))), 128))], 4)) : (L(), j("div", wt, B(V(n).countdown.setDate), 1));
|
|
366
467
|
}
|
|
367
|
-
}),
|
|
468
|
+
}), Ot = D("bookmark", [["path", {
|
|
368
469
|
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",
|
|
369
470
|
key: "oz39mx"
|
|
370
|
-
}]]),
|
|
471
|
+
}]]), kt = D("box", [
|
|
371
472
|
["path", {
|
|
372
473
|
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",
|
|
373
474
|
key: "hh9hay"
|
|
@@ -380,13 +481,13 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
380
481
|
d: "M12 22V12",
|
|
381
482
|
key: "d0xqtd"
|
|
382
483
|
}]
|
|
383
|
-
]),
|
|
484
|
+
]), At = D("code", [["path", {
|
|
384
485
|
d: "m16 18 6-6-6-6",
|
|
385
486
|
key: "eg8j8"
|
|
386
487
|
}], ["path", {
|
|
387
488
|
d: "m8 6-6 6 6 6",
|
|
388
489
|
key: "ppft3o"
|
|
389
|
-
}]]),
|
|
490
|
+
}]]), jt = D("copy", [["rect", {
|
|
390
491
|
width: "14",
|
|
391
492
|
height: "14",
|
|
392
493
|
x: "8",
|
|
@@ -397,7 +498,7 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
397
498
|
}], ["path", {
|
|
398
499
|
d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
|
|
399
500
|
key: "zix9uf"
|
|
400
|
-
}]]),
|
|
501
|
+
}]]), Mt = D("eye-off", [
|
|
401
502
|
["path", {
|
|
402
503
|
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",
|
|
403
504
|
key: "ct8e1f"
|
|
@@ -414,10 +515,10 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
414
515
|
d: "m2 2 20 20",
|
|
415
516
|
key: "1ooewy"
|
|
416
517
|
}]
|
|
417
|
-
]),
|
|
518
|
+
]), Nt = D("funnel", [["path", {
|
|
418
519
|
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",
|
|
419
520
|
key: "sc7q7i"
|
|
420
|
-
}]]),
|
|
521
|
+
}]]), Pt = D("grip-vertical", [
|
|
421
522
|
["circle", {
|
|
422
523
|
cx: "9",
|
|
423
524
|
cy: "12",
|
|
@@ -454,7 +555,7 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
454
555
|
r: "1",
|
|
455
556
|
key: "f4zoj3"
|
|
456
557
|
}]
|
|
457
|
-
]),
|
|
558
|
+
]), Ft = D("image", [
|
|
458
559
|
["rect", {
|
|
459
560
|
width: "18",
|
|
460
561
|
height: "18",
|
|
@@ -474,13 +575,13 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
474
575
|
d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",
|
|
475
576
|
key: "1xmnt7"
|
|
476
577
|
}]
|
|
477
|
-
]),
|
|
578
|
+
]), It = D("navigation", [["polygon", {
|
|
478
579
|
points: "3 11 22 2 13 21 11 13 3 11",
|
|
479
580
|
key: "1ltx0t"
|
|
480
|
-
}]]),
|
|
581
|
+
}]]), Lt = D("puzzle", [["path", {
|
|
481
582
|
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",
|
|
482
583
|
key: "w46dr5"
|
|
483
|
-
}]]),
|
|
584
|
+
}]]), Rt = D("share-2", [
|
|
484
585
|
["circle", {
|
|
485
586
|
cx: "18",
|
|
486
587
|
cy: "5",
|
|
@@ -513,7 +614,7 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
513
614
|
y2: "10.49",
|
|
514
615
|
key: "1n3mei"
|
|
515
616
|
}]
|
|
516
|
-
]),
|
|
617
|
+
]), zt = D("table", [
|
|
517
618
|
["path", {
|
|
518
619
|
d: "M12 3v18",
|
|
519
620
|
key: "108xh3"
|
|
@@ -534,7 +635,7 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
534
635
|
d: "M3 15h18",
|
|
535
636
|
key: "5xshup"
|
|
536
637
|
}]
|
|
537
|
-
]),
|
|
638
|
+
]), Bt = D("video", [["path", {
|
|
538
639
|
d: "m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",
|
|
539
640
|
key: "ftymec"
|
|
540
641
|
}], ["rect", {
|
|
@@ -544,11 +645,11 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
544
645
|
height: "12",
|
|
545
646
|
rx: "2",
|
|
546
647
|
key: "158x01"
|
|
547
|
-
}]]),
|
|
648
|
+
}]]), Vt = ["innerHTML"], Ht = [
|
|
548
649
|
"src",
|
|
549
650
|
"width",
|
|
550
651
|
"height"
|
|
551
|
-
],
|
|
652
|
+
], Ut = /* @__PURE__ */ P({
|
|
552
653
|
__name: "CustomBlockIcon",
|
|
553
654
|
props: {
|
|
554
655
|
icon: {},
|
|
@@ -556,32 +657,32 @@ var yt = { class: "tpl:text-center" }, bt = ["href"], xt = /* @__PURE__ */ le({
|
|
|
556
657
|
},
|
|
557
658
|
setup(e) {
|
|
558
659
|
let t = e, n = A(() => t.size ?? 20), r = A(() => t.icon && (t.icon.trimStart().startsWith("<svg") || t.icon.trimStart().startsWith("<SVG"))), i = A(() => t.icon && !r.value && (t.icon.startsWith("http") || t.icon.startsWith("/")));
|
|
559
|
-
return (t, a) => r.value ? (
|
|
660
|
+
return (t, a) => r.value ? (L(), j("span", {
|
|
560
661
|
key: 0,
|
|
561
662
|
class: "tpl:inline-flex tpl:items-center tpl:justify-center",
|
|
562
|
-
style:
|
|
663
|
+
style: I({
|
|
563
664
|
width: `${n.value}px`,
|
|
564
665
|
height: `${n.value}px`
|
|
565
666
|
}),
|
|
566
667
|
innerHTML: e.icon
|
|
567
|
-
}, null, 12,
|
|
668
|
+
}, null, 12, Vt)) : i.value ? (L(), j("img", {
|
|
568
669
|
key: 1,
|
|
569
670
|
src: e.icon,
|
|
570
671
|
width: n.value,
|
|
571
672
|
height: n.value,
|
|
572
673
|
class: "tpl:inline-block",
|
|
573
674
|
alt: ""
|
|
574
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, Ht)) : (L(), oe(V(kt), {
|
|
575
676
|
key: 2,
|
|
576
677
|
size: n.value,
|
|
577
678
|
"stroke-width": 1.5
|
|
578
679
|
}, null, 8, ["size"]));
|
|
579
680
|
}
|
|
580
|
-
}),
|
|
581
|
-
function
|
|
681
|
+
}), Wt = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
682
|
+
function Gt(e, t) {
|
|
582
683
|
let n = null, r = null;
|
|
583
684
|
function i() {
|
|
584
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
685
|
+
return e.value ? Array.from(e.value.querySelectorAll(Wt)).filter((e) => e.offsetParent !== null) : [];
|
|
585
686
|
}
|
|
586
687
|
function o(e) {
|
|
587
688
|
if (e.key !== "Tab") return;
|
|
@@ -608,7 +709,7 @@ function Ut(e, t) {
|
|
|
608
709
|
}
|
|
609
710
|
//#endregion
|
|
610
711
|
//#region src/composables/useEmoji.ts
|
|
611
|
-
function
|
|
712
|
+
function Kt() {
|
|
612
713
|
let [e, n] = t(!1), r = ye([]);
|
|
613
714
|
Se(e, async (e) => {
|
|
614
715
|
if (e && r.value.length === 0) {
|
|
@@ -631,8 +732,8 @@ function Wt() {
|
|
|
631
732
|
}
|
|
632
733
|
//#endregion
|
|
633
734
|
//#region src/composables/useDragDrop.ts
|
|
634
|
-
function
|
|
635
|
-
let { onBlockMove: t, onBlockAdd: n } = e, r =
|
|
735
|
+
function qt(e) {
|
|
736
|
+
let { onBlockMove: t, onBlockAdd: n } = e, r = z(!1), i = z(null), a = z(null);
|
|
636
737
|
function o(e) {
|
|
637
738
|
r.value = !0, i.value = e;
|
|
638
739
|
}
|
|
@@ -681,7 +782,7 @@ function Gt(e) {
|
|
|
681
782
|
}
|
|
682
783
|
//#endregion
|
|
683
784
|
//#region src/composables/useFonts.ts
|
|
684
|
-
var
|
|
785
|
+
var Jt = [
|
|
685
786
|
{
|
|
686
787
|
value: "Arial",
|
|
687
788
|
label: "Arial"
|
|
@@ -710,7 +811,7 @@ var Kt = [
|
|
|
710
811
|
value: "Courier New",
|
|
711
812
|
label: "Courier New"
|
|
712
813
|
}
|
|
713
|
-
],
|
|
814
|
+
], Yt = {
|
|
714
815
|
arial: "Arial, sans-serif",
|
|
715
816
|
helvetica: "Helvetica, sans-serif",
|
|
716
817
|
georgia: "Georgia, serif",
|
|
@@ -718,14 +819,14 @@ var Kt = [
|
|
|
718
819
|
verdana: "Verdana, sans-serif",
|
|
719
820
|
"trebuchet ms": "'Trebuchet MS', sans-serif",
|
|
720
821
|
"courier new": "'Courier New', monospace"
|
|
721
|
-
},
|
|
722
|
-
function
|
|
723
|
-
let t =
|
|
822
|
+
}, Xt = "Arial, sans-serif";
|
|
823
|
+
function Zt(e) {
|
|
824
|
+
let t = z(e?.customFonts ?? []), n = z(!0), r = z(!1), i = A(() => e?.defaultFallback ?? Xt);
|
|
724
825
|
function a(e) {
|
|
725
826
|
n.value = e;
|
|
726
827
|
}
|
|
727
828
|
let o = A(() => {
|
|
728
|
-
let e = [...
|
|
829
|
+
let e = [...Jt];
|
|
729
830
|
if (!n.value) return e.sort((e, t) => e.label.localeCompare(t.label));
|
|
730
831
|
let r = t.value.map((e) => ({
|
|
731
832
|
value: e.name,
|
|
@@ -738,17 +839,17 @@ function Yt(e) {
|
|
|
738
839
|
return o.value.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
739
840
|
}
|
|
740
841
|
function c(e) {
|
|
741
|
-
return
|
|
842
|
+
return Jt.some((t) => t.label.toLowerCase() === e.toLowerCase() || t.value.toLowerCase().startsWith(e.toLowerCase()));
|
|
742
843
|
}
|
|
743
844
|
function l() {
|
|
744
845
|
if (e?.defaultFont) {
|
|
745
|
-
if (!n.value && !c(e.defaultFont)) return
|
|
846
|
+
if (!n.value && !c(e.defaultFont)) return Xt;
|
|
746
847
|
if (s(e.defaultFont)) {
|
|
747
848
|
let t = o.value.find((t) => t.label.toLowerCase() === e.defaultFont.toLowerCase() || t.value.toLowerCase().startsWith(e.defaultFont.toLowerCase()));
|
|
748
849
|
if (t) return t.value;
|
|
749
850
|
}
|
|
750
851
|
}
|
|
751
|
-
return
|
|
852
|
+
return Xt;
|
|
752
853
|
}
|
|
753
854
|
let u = A(() => l());
|
|
754
855
|
function d(e) {
|
|
@@ -758,7 +859,7 @@ function Yt(e) {
|
|
|
758
859
|
let e = n.fallback ?? i.value;
|
|
759
860
|
return `'${n.name}', ${e}`;
|
|
760
861
|
}
|
|
761
|
-
return
|
|
862
|
+
return Yt[e.toLowerCase()] || (e.includes(",") ? e : `${e}, ${i.value}`);
|
|
762
863
|
}
|
|
763
864
|
let f = [];
|
|
764
865
|
async function p() {
|
|
@@ -799,9 +900,9 @@ function Yt(e) {
|
|
|
799
900
|
}
|
|
800
901
|
//#endregion
|
|
801
902
|
//#region src/composables/useRichTextLinkDialog.ts
|
|
802
|
-
function
|
|
803
|
-
let t =
|
|
804
|
-
|
|
903
|
+
function Qt(e) {
|
|
904
|
+
let t = z(!1), n = z(""), r = z(null);
|
|
905
|
+
Gt(r, t);
|
|
805
906
|
function i() {
|
|
806
907
|
n.value = e.value?.getAttributes("link").href || "", t.value = !0;
|
|
807
908
|
}
|
|
@@ -834,9 +935,9 @@ function Xt(e) {
|
|
|
834
935
|
}
|
|
835
936
|
//#endregion
|
|
836
937
|
//#region src/composables/useRichTextEditor.ts
|
|
837
|
-
function
|
|
838
|
-
let t =
|
|
839
|
-
async function
|
|
938
|
+
function $t(e) {
|
|
939
|
+
let t = F(p, null), { mergeTags: n, isEnabled: r, isRequesting: i, requestMergeTag: s, syntax: c } = ie(), l = ye(null), { showLinkDialog: u, linkUrl: d, linkDialogRef: f, openLinkDialog: m, insertLink: h, removeLink: g, closeLinkDialog: _, handleLinkKeydown: v } = Qt(l), { start: y, stop: b } = o(() => l.value?.commands.focus("end"), 0, { immediate: !1 }), x = ye(null), S = z(!0), C = z(null);
|
|
940
|
+
async function ee() {
|
|
840
941
|
C.value = null, S.value = !0;
|
|
841
942
|
try {
|
|
842
943
|
let { TiptapEditor: r, EC: i, extensions: a } = await e.loadExtensions({
|
|
@@ -857,22 +958,22 @@ function Zt(e) {
|
|
|
857
958
|
console.error(`[${e.editorName ?? "RichTextEditor"}] Failed to initialize TipTap editor:`, t), C.value = t instanceof Error ? t.message : "Failed to load editor", S.value = !1;
|
|
858
959
|
}
|
|
859
960
|
}
|
|
860
|
-
function
|
|
861
|
-
l.value?.destroy(), l.value = null,
|
|
961
|
+
function w() {
|
|
962
|
+
l.value?.destroy(), l.value = null, ee();
|
|
862
963
|
}
|
|
863
|
-
|
|
864
|
-
let
|
|
964
|
+
ee();
|
|
965
|
+
let T = Se(() => e.blockContent(), (e) => {
|
|
865
966
|
l.value && l.value.getHTML() !== e && l.value.commands.setContent(e, { emitUpdate: !1 });
|
|
866
967
|
});
|
|
867
|
-
function
|
|
968
|
+
function E(t) {
|
|
868
969
|
if (i.value) return;
|
|
869
970
|
let n = t.target;
|
|
870
971
|
e.onClickOutsideSideEffect?.(n), !(n.closest(".tpl-text-editor-wrapper") || n.closest(".tpl-text-toolbar") || n.closest(".tpl-link-dialog")) && e.onDone();
|
|
871
972
|
}
|
|
872
|
-
a(document, "mousedown",
|
|
873
|
-
|
|
973
|
+
a(document, "mousedown", E), pe(() => {
|
|
974
|
+
T(), b(), l.value?.destroy();
|
|
874
975
|
});
|
|
875
|
-
async function
|
|
976
|
+
async function D() {
|
|
876
977
|
let e = await s();
|
|
877
978
|
e && l.value ? l.value.chain().focus().insertMergeTag({
|
|
878
979
|
label: e.label,
|
|
@@ -884,10 +985,10 @@ function Zt(e) {
|
|
|
884
985
|
EditorContent: x,
|
|
885
986
|
isLoading: S,
|
|
886
987
|
initError: C,
|
|
887
|
-
retry:
|
|
988
|
+
retry: w,
|
|
888
989
|
showLinkDialog: u,
|
|
889
990
|
linkUrl: d,
|
|
890
|
-
linkDialogRef:
|
|
991
|
+
linkDialogRef: f,
|
|
891
992
|
mergeTags: n,
|
|
892
993
|
mergeTagEnabled: r,
|
|
893
994
|
isRequestingMergeTag: i,
|
|
@@ -897,25 +998,25 @@ function Zt(e) {
|
|
|
897
998
|
removeLink: g,
|
|
898
999
|
closeLinkDialog: _,
|
|
899
1000
|
handleLinkKeydown: v,
|
|
900
|
-
handleAddMergeTag:
|
|
1001
|
+
handleAddMergeTag: D
|
|
901
1002
|
};
|
|
902
1003
|
}
|
|
903
1004
|
//#endregion
|
|
904
1005
|
//#region src/components/blocks/CustomBlock.vue?vue&type=script&setup=true&lang.ts
|
|
905
|
-
var
|
|
1006
|
+
var en = { class: "tpl:w-full" }, tn = {
|
|
906
1007
|
key: 0,
|
|
907
1008
|
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)]"
|
|
908
|
-
},
|
|
1009
|
+
}, nn = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, rn = {
|
|
909
1010
|
key: 1,
|
|
910
1011
|
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)]"
|
|
911
|
-
},
|
|
1012
|
+
}, an = { class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]" }, on = {
|
|
912
1013
|
key: 2,
|
|
913
1014
|
class: "tpl:relative"
|
|
914
|
-
},
|
|
1015
|
+
}, sn = ["innerHTML"], cn = {
|
|
915
1016
|
key: 0,
|
|
916
1017
|
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]",
|
|
917
1018
|
style: { "background-color": "color-mix(in srgb, var(--tpl-bg) 80%, transparent)" }
|
|
918
|
-
},
|
|
1019
|
+
}, ln = /* @__PURE__ */ P({
|
|
919
1020
|
__name: "CustomBlock",
|
|
920
1021
|
props: {
|
|
921
1022
|
block: {},
|
|
@@ -923,7 +1024,7 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
923
1024
|
},
|
|
924
1025
|
emits: ["fetchData"],
|
|
925
1026
|
setup(t, { emit: n }) {
|
|
926
|
-
let r = t, i = n, { t: a } = E(), o =
|
|
1027
|
+
let r = t, i = n, { t: a } = E(), o = F(b, null), s = z(""), c = z(!1), l = A(() => o?.getDefinition(r.block.customType)), u = A(() => !!l.value), { isFetching: d, fetch: f, needsFetch: p, hasDataSource: m } = Ae({
|
|
927
1028
|
definition: l,
|
|
928
1029
|
block: A(() => r.block),
|
|
929
1030
|
onUpdate: (e, t) => {
|
|
@@ -949,27 +1050,27 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
949
1050
|
h();
|
|
950
1051
|
}), Se(() => r.block.fieldValues, () => {
|
|
951
1052
|
g();
|
|
952
|
-
}, { deep: !0 }), (e, t) => (
|
|
1053
|
+
}, { deep: !0 }), (e, t) => (L(), j("div", en, [u.value ? c.value ? (L(), j("div", rn, [N(V(ne), {
|
|
953
1054
|
size: 24,
|
|
954
1055
|
class: "tpl:text-[var(--tpl-danger)]"
|
|
955
|
-
}), M("span",
|
|
1056
|
+
}), M("span", an, B(V(a).customBlocks.renderError), 1)])) : (L(), j("div", on, [M("div", { innerHTML: s.value }, null, 8, sn), V(m) && V(p) ? (L(), j("div", cn, [V(d) ? (L(), oe(re, {
|
|
956
1057
|
key: 1,
|
|
957
1058
|
class: "tpl:w-48"
|
|
958
|
-
})) : (
|
|
1059
|
+
})) : (L(), j("button", {
|
|
959
1060
|
key: 0,
|
|
960
1061
|
type: "button",
|
|
961
1062
|
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)]",
|
|
962
|
-
onClick: t[0] ||= Ee((...e) =>
|
|
963
|
-
}, [l.value?.icon ? (
|
|
1063
|
+
onClick: t[0] ||= Ee((...e) => V(f) && V(f)(...e), ["stop"])
|
|
1064
|
+
}, [l.value?.icon ? (L(), oe(Ut, {
|
|
964
1065
|
key: 0,
|
|
965
1066
|
icon: l.value.icon,
|
|
966
1067
|
size: 16
|
|
967
|
-
}, null, 8, ["icon"])) :
|
|
1068
|
+
}, null, 8, ["icon"])) : se("", !0), ce(" " + B(l.value?.dataSource?.label || V(a).customBlocks.dataSource.fetchButton), 1)]))])) : se("", !0)])) : (L(), j("div", tn, [N(V(Lt), {
|
|
968
1069
|
size: 24,
|
|
969
1070
|
class: "tpl:text-[var(--tpl-warning)]"
|
|
970
|
-
}), M("span",
|
|
1071
|
+
}), M("span", nn, B(V(a).customBlocks.definitionNotFound), 1)]))]));
|
|
971
1072
|
}
|
|
972
|
-
}),
|
|
1073
|
+
}), un = { class: "tpl:w-full" }, dn = /* @__PURE__ */ P({
|
|
973
1074
|
__name: "DividerBlock",
|
|
974
1075
|
props: {
|
|
975
1076
|
block: {},
|
|
@@ -981,18 +1082,18 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
981
1082
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
982
1083
|
margin: t.block.width === "full" ? "0" : "0 auto"
|
|
983
1084
|
}));
|
|
984
|
-
return (e, t) => (
|
|
1085
|
+
return (e, t) => (L(), j("div", un, [M("hr", {
|
|
985
1086
|
class: "tpl:m-0 tpl:border-none",
|
|
986
|
-
style:
|
|
1087
|
+
style: I(n.value)
|
|
987
1088
|
}, null, 4)]));
|
|
988
1089
|
}
|
|
989
|
-
}),
|
|
1090
|
+
}), fn = { class: "tpl:w-full" }, pn = { 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)]" }, mn = {
|
|
990
1091
|
key: 0,
|
|
991
1092
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-muted)]"
|
|
992
|
-
},
|
|
1093
|
+
}, hn = {
|
|
993
1094
|
key: 1,
|
|
994
1095
|
class: "tpl:text-sm tpl:text-[var(--tpl-text-dim)]"
|
|
995
|
-
},
|
|
1096
|
+
}, gn = /* @__PURE__ */ P({
|
|
996
1097
|
__name: "HtmlBlock",
|
|
997
1098
|
props: {
|
|
998
1099
|
block: {},
|
|
@@ -1000,18 +1101,18 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1000
1101
|
},
|
|
1001
1102
|
setup(e) {
|
|
1002
1103
|
let t = e, { t: n } = E(), r = A(() => t.block.content.trim().length > 0);
|
|
1003
|
-
return (e, t) => (
|
|
1104
|
+
return (e, t) => (L(), j("div", fn, [M("div", pn, [N(V(At), {
|
|
1004
1105
|
size: 24,
|
|
1005
1106
|
class: "tpl:text-[var(--tpl-text-dim)]"
|
|
1006
|
-
}), r.value ? (
|
|
1107
|
+
}), r.value ? (L(), j("span", mn, B(V(n).html.preview), 1)) : (L(), j("span", hn, B(V(n).html.empty), 1))])]));
|
|
1007
1108
|
}
|
|
1008
|
-
}),
|
|
1109
|
+
}), _n = ["href"], vn = ["src", "alt"], yn = ["src", "alt"], bn = {
|
|
1009
1110
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
1010
1111
|
style: { opacity: "0.7" }
|
|
1011
|
-
},
|
|
1112
|
+
}, xn = ["href"], Sn = ["src", "alt"], Cn = ["src", "alt"], wn = {
|
|
1012
1113
|
key: 3,
|
|
1013
1114
|
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)]"
|
|
1014
|
-
},
|
|
1115
|
+
}, Tn = ["aria-label"], En = { key: 1 }, Dn = /* @__PURE__ */ P({
|
|
1015
1116
|
__name: "ImageBlock",
|
|
1016
1117
|
props: {
|
|
1017
1118
|
block: {},
|
|
@@ -1019,7 +1120,7 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1019
1120
|
},
|
|
1020
1121
|
emits: ["update"],
|
|
1021
1122
|
setup(e, { emit: t }) {
|
|
1022
|
-
let n = e, r = t, { t: i } = E(), { syntax: a } =
|
|
1123
|
+
let n = e, r = t, { t: i } = E(), { syntax: a } = ie(), o = F(ee, null), s = A(() => !!o);
|
|
1023
1124
|
async function c() {
|
|
1024
1125
|
let e = await o?.({ accept: ["images"] });
|
|
1025
1126
|
if (e) {
|
|
@@ -1027,17 +1128,17 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1027
1128
|
e.alt && (t.alt = e.alt), r("update", t);
|
|
1028
1129
|
}
|
|
1029
1130
|
}
|
|
1030
|
-
let
|
|
1131
|
+
let l = A(() => ({ textAlign: n.block.align })), u = A(() => ({
|
|
1031
1132
|
maxWidth: "100%",
|
|
1032
1133
|
width: n.block.width === "full" ? "100%" : `${n.block.width}px`,
|
|
1033
1134
|
display: "block",
|
|
1034
1135
|
margin: n.block.align === "center" ? "0 auto" : void 0,
|
|
1035
1136
|
marginLeft: n.block.align === "right" ? "auto" : void 0
|
|
1036
|
-
})),
|
|
1037
|
-
return (t, n) => (
|
|
1137
|
+
})), d = A(() => Pe(n.block.src, a));
|
|
1138
|
+
return (t, n) => (L(), j("div", {
|
|
1038
1139
|
class: "tpl:w-full",
|
|
1039
|
-
style:
|
|
1040
|
-
}, [e.block.src &&
|
|
1140
|
+
style: I(l.value)
|
|
1141
|
+
}, [e.block.src && d.value && e.block.placeholderUrl ? (L(), j(ae, { key: 0 }, [e.block.linkUrl ? (L(), j("a", {
|
|
1041
1142
|
key: 0,
|
|
1042
1143
|
href: e.block.linkUrl,
|
|
1043
1144
|
target: "_blank",
|
|
@@ -1047,24 +1148,24 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1047
1148
|
class: "tpl:border-0",
|
|
1048
1149
|
loading: "lazy",
|
|
1049
1150
|
src: e.block.placeholderUrl,
|
|
1050
|
-
alt: e.block.alt ||
|
|
1051
|
-
style:
|
|
1052
|
-
}, null, 12,
|
|
1151
|
+
alt: e.block.alt || V(i).image.altTextPlaceholder,
|
|
1152
|
+
style: I(u.value)
|
|
1153
|
+
}, null, 12, vn)], 8, _n)) : (L(), j("img", {
|
|
1053
1154
|
key: 1,
|
|
1054
1155
|
class: "tpl:border-0",
|
|
1055
1156
|
src: e.block.placeholderUrl,
|
|
1056
1157
|
alt: e.block.alt,
|
|
1057
|
-
style:
|
|
1058
|
-
}, null, 12,
|
|
1158
|
+
style: I(u.value)
|
|
1159
|
+
}, null, 12, yn))], 64)) : e.block.src && d.value ? (L(), j("div", {
|
|
1059
1160
|
key: 1,
|
|
1060
1161
|
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)]",
|
|
1061
|
-
style:
|
|
1062
|
-
}, [N(
|
|
1162
|
+
style: I([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, u.value])
|
|
1163
|
+
}, [N(V(Ft), {
|
|
1063
1164
|
size: 32,
|
|
1064
1165
|
"stroke-width": 1.5,
|
|
1065
1166
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
1066
1167
|
style: { opacity: "0.5" }
|
|
1067
|
-
}), M("span",
|
|
1168
|
+
}), M("span", bn, B(e.block.src), 1)], 4)) : e.block.src ? (L(), j(ae, { key: 2 }, [e.block.linkUrl ? (L(), j("a", {
|
|
1068
1169
|
key: 0,
|
|
1069
1170
|
href: e.block.linkUrl,
|
|
1070
1171
|
target: "_blank",
|
|
@@ -1074,28 +1175,28 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1074
1175
|
class: "tpl:border-0",
|
|
1075
1176
|
loading: "lazy",
|
|
1076
1177
|
src: e.block.src,
|
|
1077
|
-
alt: e.block.alt ||
|
|
1078
|
-
style:
|
|
1079
|
-
}, null, 12,
|
|
1178
|
+
alt: e.block.alt || V(i).image.altTextPlaceholder,
|
|
1179
|
+
style: I(u.value)
|
|
1180
|
+
}, null, 12, Sn)], 8, xn)) : (L(), j("img", {
|
|
1080
1181
|
key: 1,
|
|
1081
1182
|
class: "tpl:border-0",
|
|
1082
1183
|
src: e.block.src,
|
|
1083
1184
|
alt: e.block.alt,
|
|
1084
|
-
style:
|
|
1085
|
-
}, null, 12,
|
|
1185
|
+
style: I(u.value)
|
|
1186
|
+
}, null, 12, Cn))], 64)) : (L(), j("div", wn, [s.value ? (L(), j("button", {
|
|
1086
1187
|
key: 0,
|
|
1087
|
-
"aria-label":
|
|
1188
|
+
"aria-label": V(i).image.browseMedia,
|
|
1088
1189
|
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)]",
|
|
1089
1190
|
onClick: Ee(c, ["stop"])
|
|
1090
|
-
}, [N(
|
|
1191
|
+
}, [N(V(Ft), {
|
|
1091
1192
|
size: 14,
|
|
1092
1193
|
"stroke-width": 1.5
|
|
1093
|
-
}),
|
|
1194
|
+
}), ce(" " + B(V(i).image.browseMedia), 1)], 8, Tn)) : (L(), j("span", En, B(V(i).image.clickToAdd), 1))]))], 4));
|
|
1094
1195
|
}
|
|
1095
|
-
}),
|
|
1196
|
+
}), On = { class: "tpl:w-full" }, kn = ["href"], An = {
|
|
1096
1197
|
key: 1,
|
|
1097
1198
|
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)]"
|
|
1098
|
-
},
|
|
1199
|
+
}, jn = /* @__PURE__ */ P({
|
|
1099
1200
|
__name: "MenuBlock",
|
|
1100
1201
|
props: {
|
|
1101
1202
|
block: {},
|
|
@@ -1114,31 +1215,31 @@ var Qt = { class: "tpl:w-full" }, $t = {
|
|
|
1114
1215
|
function a(e) {
|
|
1115
1216
|
return e || t.block.linkColor || t.block.color;
|
|
1116
1217
|
}
|
|
1117
|
-
return (t, o) => (
|
|
1218
|
+
return (t, o) => (L(), j("div", On, [i.value ? (L(), j("div", {
|
|
1118
1219
|
key: 0,
|
|
1119
|
-
style:
|
|
1120
|
-
}, [(
|
|
1220
|
+
style: I(r.value)
|
|
1221
|
+
}, [(L(!0), j(ae, null, ge(e.block.items, (t, n) => (L(), j(ae, { key: t.id }, [M("a", {
|
|
1121
1222
|
href: t.url || "#",
|
|
1122
1223
|
class: "tpl:cursor-default tpl:no-underline",
|
|
1123
|
-
style:
|
|
1224
|
+
style: I({
|
|
1124
1225
|
color: a(t.color),
|
|
1125
1226
|
fontWeight: t.bold ? "bold" : "normal",
|
|
1126
1227
|
textDecoration: t.underline ? "underline" : "none"
|
|
1127
1228
|
}),
|
|
1128
1229
|
onClick: o[0] ||= Ee(() => {}, ["prevent"])
|
|
1129
|
-
},
|
|
1230
|
+
}, B(t.text || "..."), 13, kn), n < e.block.items.length - 1 ? (L(), j("span", {
|
|
1130
1231
|
key: 0,
|
|
1131
|
-
style:
|
|
1232
|
+
style: I({
|
|
1132
1233
|
color: e.block.separatorColor,
|
|
1133
1234
|
padding: `0 ${e.block.spacing}px`
|
|
1134
1235
|
})
|
|
1135
|
-
},
|
|
1236
|
+
}, B(e.block.separator), 5)) : se("", !0)], 64))), 128))], 4)) : (L(), j("div", An, [N(V(It), { size: 16 }), M("span", null, B(V(n).menu.addLinks), 1)]))]));
|
|
1136
1237
|
}
|
|
1137
1238
|
});
|
|
1138
1239
|
//#endregion
|
|
1139
1240
|
//#region src/composables/useEditableTextBlock.ts
|
|
1140
|
-
function
|
|
1141
|
-
let t =
|
|
1241
|
+
function Mn(e) {
|
|
1242
|
+
let t = F(m, []), { syntax: n } = ie(), i = A(() => Ye(Xe(e(), t), n)), a = z(!1), o = z(null), { top: s, left: c } = r(o), l = A(() => ({
|
|
1142
1243
|
top: s.value - 8,
|
|
1143
1244
|
left: c.value
|
|
1144
1245
|
}));
|
|
@@ -1159,45 +1260,45 @@ function An(e) {
|
|
|
1159
1260
|
}
|
|
1160
1261
|
//#endregion
|
|
1161
1262
|
//#region src/components/blocks/ParagraphBlock.vue?vue&type=script&setup=true&lang.ts
|
|
1162
|
-
var
|
|
1263
|
+
var Nn = ["innerHTML"], Pn = /* @__PURE__ */ P({
|
|
1163
1264
|
__name: "ParagraphBlock",
|
|
1164
1265
|
props: {
|
|
1165
1266
|
block: {},
|
|
1166
1267
|
viewport: {}
|
|
1167
1268
|
},
|
|
1168
1269
|
setup(e) {
|
|
1169
|
-
let t = e, n =
|
|
1170
|
-
return (t, l) => (
|
|
1270
|
+
let t = e, n = le(() => import("./ParagraphEditor-CcMPnbDr.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Mn(() => t.block.content);
|
|
1271
|
+
return (t, l) => (L(), j("div", {
|
|
1171
1272
|
ref_key: "blockRef",
|
|
1172
1273
|
ref: i,
|
|
1173
1274
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1174
|
-
onDblclick: l[0] ||= (...e) =>
|
|
1175
|
-
}, [
|
|
1275
|
+
onDblclick: l[0] ||= (...e) => V(s) && V(s)(...e)
|
|
1276
|
+
}, [V(r) ? (L(), oe(V(n), {
|
|
1176
1277
|
key: 0,
|
|
1177
1278
|
block: e.block,
|
|
1178
|
-
"toolbar-position":
|
|
1179
|
-
onDone:
|
|
1279
|
+
"toolbar-position": V(a),
|
|
1280
|
+
onDone: V(c)
|
|
1180
1281
|
}, null, 8, [
|
|
1181
1282
|
"block",
|
|
1182
1283
|
"toolbar-position",
|
|
1183
1284
|
"onDone"
|
|
1184
|
-
])) : (
|
|
1285
|
+
])) : (L(), j("div", {
|
|
1185
1286
|
key: 1,
|
|
1186
1287
|
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",
|
|
1187
|
-
innerHTML:
|
|
1188
|
-
}, null, 8,
|
|
1288
|
+
innerHTML: V(o)
|
|
1289
|
+
}, null, 8, Nn))], 544));
|
|
1189
1290
|
}
|
|
1190
1291
|
});
|
|
1191
1292
|
//#endregion
|
|
1192
1293
|
//#region src/utils/blockComponentResolver.ts
|
|
1193
|
-
function
|
|
1294
|
+
function Fn(e, t, n) {
|
|
1194
1295
|
if (t) {
|
|
1195
1296
|
let n = t.getComponent(e);
|
|
1196
1297
|
if (n) return n;
|
|
1197
1298
|
}
|
|
1198
1299
|
return n[e.type] ?? null;
|
|
1199
1300
|
}
|
|
1200
|
-
function
|
|
1301
|
+
function In(e) {
|
|
1201
1302
|
let { padding: t, margin: n, backgroundColor: r } = e.styles;
|
|
1202
1303
|
return {
|
|
1203
1304
|
padding: `${t.top}px ${t.right}px ${t.bottom}px ${t.left}px`,
|
|
@@ -1207,16 +1308,20 @@ function Pn(e) {
|
|
|
1207
1308
|
}
|
|
1208
1309
|
//#endregion
|
|
1209
1310
|
//#region src/components/blocks/BlockWrapper.vue?vue&type=script&setup=true&lang.ts
|
|
1210
|
-
var
|
|
1311
|
+
var Ln = ["data-block-id", "data-block-type"], Rn = ["aria-label"], zn = [
|
|
1312
|
+
"aria-label",
|
|
1313
|
+
"aria-pressed",
|
|
1314
|
+
"title"
|
|
1315
|
+
], Bn = ["aria-label", "title"], Vn = ["aria-label", "title"], Hn = ["aria-label", "title"], Un = {
|
|
1211
1316
|
key: 1,
|
|
1212
1317
|
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"
|
|
1213
|
-
},
|
|
1318
|
+
}, Wn = { 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)]" }, Gn = {
|
|
1214
1319
|
key: 2,
|
|
1215
1320
|
class: "tpl:absolute tpl:-left-1 tpl:top-1/2 tpl:z-[5] tpl:-translate-x-full tpl:-translate-y-1/2"
|
|
1216
|
-
},
|
|
1321
|
+
}, Kn = ["aria-label", "title"], qn = {
|
|
1217
1322
|
key: 3,
|
|
1218
1323
|
class: "tpl:absolute tpl:-right-1 tpl:-top-1 tpl:z-[5] tpl:translate-x-full"
|
|
1219
|
-
},
|
|
1324
|
+
}, Jn = ["aria-label"], Yn = /* @__PURE__ */ O(/* @__PURE__ */ P({
|
|
1220
1325
|
__name: "BlockWrapper",
|
|
1221
1326
|
props: {
|
|
1222
1327
|
block: {},
|
|
@@ -1226,112 +1331,141 @@ var Fn = ["data-block-id", "data-block-type"], In = ["aria-label"], Ln = ["aria-
|
|
|
1226
1331
|
},
|
|
1227
1332
|
emits: ["select"],
|
|
1228
1333
|
setup(e, { emit: t }) {
|
|
1229
|
-
let n = e, r = t, { t: i, format: a } = E(), o = A(() =>
|
|
1334
|
+
let n = e, r = t, { t: i, format: a } = E(), o = F(h, null), s = z(null), c = A(() => o?.liftedBlockId.value === n.block.id), l = A(() => c.value ? a(i.blockActions.dragLifted, { block: n.block.type }) : i.blockActions.drag);
|
|
1335
|
+
async function u() {
|
|
1336
|
+
await de(), s.value?.focus();
|
|
1337
|
+
}
|
|
1338
|
+
function d(e) {
|
|
1339
|
+
if (o) {
|
|
1340
|
+
if (e.key === " " || e.key === "Enter") {
|
|
1341
|
+
e.preventDefault(), e.stopPropagation(), c.value ? o.drop(n.block.id) : o.lift(n.block.id);
|
|
1342
|
+
return;
|
|
1343
|
+
}
|
|
1344
|
+
if (c.value) {
|
|
1345
|
+
if (e.key === "Escape") {
|
|
1346
|
+
e.preventDefault(), e.stopPropagation(), o.cancel(), u();
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
if (e.key === "ArrowUp") {
|
|
1350
|
+
e.preventDefault(), e.stopPropagation(), o.moveUp(n.block.id), u();
|
|
1351
|
+
return;
|
|
1352
|
+
}
|
|
1353
|
+
e.key === "ArrowDown" && (e.preventDefault(), e.stopPropagation(), o.moveDown(n.block.id), u());
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
let f = A(() => !n.viewport || !n.block.visibility ? !1 : n.block.visibility[n.viewport] === !1), p = A(() => n.viewport ? {
|
|
1230
1358
|
desktop: i.viewport.desktop,
|
|
1231
1359
|
tablet: i.viewport.tablet,
|
|
1232
1360
|
mobile: i.viewport.mobile
|
|
1233
|
-
}[n.viewport] ?? n.viewport : ""),
|
|
1234
|
-
function
|
|
1361
|
+
}[n.viewport] ?? n.viewport : ""), m = A(() => !!n.block.displayCondition), v = F(g, null), y = F(_, null), b = F(S, {}), x = A(() => !!b.savedModules), C = A(() => b.comments?.getBlockCount(n.block.id) ?? 0), ee = A(() => In(n.block));
|
|
1362
|
+
function w(e) {
|
|
1235
1363
|
n.previewMode || (e.stopPropagation(), r("select"));
|
|
1236
1364
|
}
|
|
1237
|
-
function
|
|
1238
|
-
|
|
1365
|
+
function T() {
|
|
1366
|
+
v?.deleteBlock(n.block.id);
|
|
1239
1367
|
}
|
|
1240
|
-
function
|
|
1241
|
-
|
|
1368
|
+
function D() {
|
|
1369
|
+
v?.duplicateBlock(n.block);
|
|
1242
1370
|
}
|
|
1243
|
-
function
|
|
1244
|
-
|
|
1371
|
+
function O() {
|
|
1372
|
+
b.savedModules?.openSaveDialog(n.block.id);
|
|
1245
1373
|
}
|
|
1246
|
-
function
|
|
1247
|
-
|
|
1374
|
+
function ne() {
|
|
1375
|
+
y?.toggleBlock(n.block.id);
|
|
1248
1376
|
}
|
|
1249
|
-
return (t, n) => (
|
|
1377
|
+
return (t, n) => (L(), j("div", {
|
|
1250
1378
|
class: fe(["tpl-block tpl:group tpl:relative tpl:cursor-pointer tpl:rounded-sm tpl:transition-shadow tpl:duration-150", {
|
|
1251
1379
|
"tpl-block--selected": e.isSelected,
|
|
1252
|
-
"tpl-block--idle": !e.isSelected
|
|
1380
|
+
"tpl-block--idle": !e.isSelected,
|
|
1381
|
+
"tpl-block--lifted": c.value
|
|
1253
1382
|
}]),
|
|
1254
|
-
style:
|
|
1383
|
+
style: I(ee.value),
|
|
1255
1384
|
"data-block-id": e.block.id,
|
|
1256
1385
|
"data-block-type": e.block.type,
|
|
1257
1386
|
draggable: "false",
|
|
1258
|
-
onClick:
|
|
1387
|
+
onClick: w
|
|
1259
1388
|
}, [
|
|
1260
|
-
e.isSelected ? (
|
|
1389
|
+
e.isSelected ? (L(), j("div", {
|
|
1261
1390
|
key: 0,
|
|
1262
1391
|
role: "toolbar",
|
|
1263
|
-
"aria-label":
|
|
1392
|
+
"aria-label": V(i).blockActions.drag,
|
|
1264
1393
|
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)]"
|
|
1265
1394
|
}, [
|
|
1266
1395
|
M("button", {
|
|
1396
|
+
ref_key: "dragButtonRef",
|
|
1397
|
+
ref: s,
|
|
1267
1398
|
class: "tpl-block-btn tpl-block-action-btn tpl:flex tpl:size-7 tpl:cursor-grab tpl:items-center tpl:justify-center tpl:rounded-sm tpl:border-none tpl:transition-colors tpl:duration-150 tpl:active:cursor-grabbing",
|
|
1268
|
-
"aria-label":
|
|
1269
|
-
|
|
1270
|
-
|
|
1399
|
+
"aria-label": l.value,
|
|
1400
|
+
"aria-pressed": c.value,
|
|
1401
|
+
"aria-keyshortcuts": "Space Enter ArrowUp ArrowDown Escape",
|
|
1402
|
+
title: V(i).blockActions.drag,
|
|
1403
|
+
onKeydown: d
|
|
1404
|
+
}, [N(V(Pt), {
|
|
1271
1405
|
size: 14,
|
|
1272
1406
|
"stroke-width": 1.5
|
|
1273
|
-
})],
|
|
1407
|
+
})], 40, zn),
|
|
1274
1408
|
M("button", {
|
|
1275
1409
|
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",
|
|
1276
|
-
"aria-label":
|
|
1277
|
-
title:
|
|
1278
|
-
onClick: Ee(
|
|
1279
|
-
}, [N(
|
|
1410
|
+
"aria-label": V(i).blockActions.duplicate,
|
|
1411
|
+
title: V(i).blockActions.duplicate,
|
|
1412
|
+
onClick: Ee(D, ["stop"])
|
|
1413
|
+
}, [N(V(jt), {
|
|
1280
1414
|
size: 14,
|
|
1281
1415
|
"stroke-width": 1.5
|
|
1282
|
-
})], 8,
|
|
1283
|
-
|
|
1416
|
+
})], 8, Bn),
|
|
1417
|
+
x.value ? (L(), j("button", {
|
|
1284
1418
|
key: 0,
|
|
1285
1419
|
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",
|
|
1286
|
-
"aria-label":
|
|
1287
|
-
title:
|
|
1288
|
-
onClick: Ee(
|
|
1289
|
-
}, [N(
|
|
1420
|
+
"aria-label": V(i).blockActions.saveAsModule,
|
|
1421
|
+
title: V(i).blockActions.saveAsModule,
|
|
1422
|
+
onClick: Ee(O, ["stop"])
|
|
1423
|
+
}, [N(V(Ot), {
|
|
1290
1424
|
size: 14,
|
|
1291
1425
|
"stroke-width": 1.5
|
|
1292
|
-
})], 8,
|
|
1426
|
+
})], 8, Vn)) : se("", !0),
|
|
1293
1427
|
M("button", {
|
|
1294
1428
|
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",
|
|
1295
|
-
"aria-label":
|
|
1296
|
-
title:
|
|
1297
|
-
onClick: Ee(
|
|
1298
|
-
}, [N(
|
|
1429
|
+
"aria-label": V(i).blockActions.delete,
|
|
1430
|
+
title: V(i).blockActions.delete,
|
|
1431
|
+
onClick: Ee(T, ["stop"])
|
|
1432
|
+
}, [N(V(k), {
|
|
1299
1433
|
size: 14,
|
|
1300
1434
|
"stroke-width": 1.5
|
|
1301
|
-
})], 8,
|
|
1302
|
-
], 8,
|
|
1303
|
-
|
|
1435
|
+
})], 8, Hn)
|
|
1436
|
+
], 8, Rn)) : se("", !0),
|
|
1437
|
+
f.value ? (L(), j("div", Un, [M("span", Wn, [N(V(Mt), {
|
|
1304
1438
|
size: 12,
|
|
1305
1439
|
"stroke-width": 1.5
|
|
1306
|
-
}),
|
|
1307
|
-
|
|
1440
|
+
}), ce(" " + B(V(a)(V(i).blockActions.hiddenOnViewport, { viewport: p.value })), 1)])])) : se("", !0),
|
|
1441
|
+
m.value && !f.value ? (L(), j("div", Gn, [M("button", {
|
|
1308
1442
|
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)]",
|
|
1309
|
-
"aria-label":
|
|
1443
|
+
"aria-label": V(i).blockActions.conditionToggle,
|
|
1310
1444
|
title: e.block.displayCondition?.label,
|
|
1311
|
-
onClick: Ee(
|
|
1312
|
-
}, [N(
|
|
1445
|
+
onClick: Ee(ne, ["stop"])
|
|
1446
|
+
}, [N(V(Nt), {
|
|
1313
1447
|
size: 12,
|
|
1314
1448
|
"stroke-width": 2
|
|
1315
|
-
})], 8,
|
|
1316
|
-
|
|
1317
|
-
class: "tpl-comment-indicator tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-0.5 tpl:rounded-full tpl:border-none tpl:px-
|
|
1318
|
-
"aria-label":
|
|
1319
|
-
onClick: n[0] ||= Ee((t) =>
|
|
1320
|
-
}, [N(
|
|
1321
|
-
size:
|
|
1449
|
+
})], 8, Kn)])) : se("", !0),
|
|
1450
|
+
C.value > 0 && !f.value ? (L(), j("div", qn, [M("button", {
|
|
1451
|
+
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": V(a)(V(i).blockActions.comments, { count: String(C.value) }),
|
|
1453
|
+
onClick: n[0] ||= Ee((t) => V(b).comments?.openForBlock(e.block.id), ["stop"])
|
|
1454
|
+
}, [N(V(te), {
|
|
1455
|
+
size: 12,
|
|
1322
1456
|
"stroke-width": 2.5
|
|
1323
|
-
}),
|
|
1457
|
+
}), ce(" " + B(C.value), 1)], 8, Jn)])) : se("", !0),
|
|
1324
1458
|
_e(t.$slots, "default", {}, void 0, !0)
|
|
1325
|
-
], 14,
|
|
1459
|
+
], 14, Ln));
|
|
1326
1460
|
}
|
|
1327
|
-
}), [["__scopeId", "data-v-
|
|
1461
|
+
}), [["__scopeId", "data-v-8d0416c4"]]), Xn = ["innerHTML"], Zn = /* @__PURE__ */ P({
|
|
1328
1462
|
__name: "TitleBlock",
|
|
1329
1463
|
props: {
|
|
1330
1464
|
block: {},
|
|
1331
1465
|
viewport: {}
|
|
1332
1466
|
},
|
|
1333
1467
|
setup(e) {
|
|
1334
|
-
let t = e, n =
|
|
1468
|
+
let t = e, n = le(() => import("./TitleEditor-D9DPjQkX.js")), { isEditing: r, blockRef: i, toolbarPosition: a, resolvedContent: o, handleDoubleClick: s, handleEditorDone: c } = Mn(() => t.block.content), l = A(() => {
|
|
1335
1469
|
let e = {
|
|
1336
1470
|
fontSize: `${Ne[t.block.level]}px`,
|
|
1337
1471
|
color: t.block.color,
|
|
@@ -1339,34 +1473,34 @@ var Fn = ["data-block-id", "data-block-type"], In = ["aria-label"], Ln = ["aria-
|
|
|
1339
1473
|
};
|
|
1340
1474
|
return t.block.fontFamily && (e.fontFamily = t.block.fontFamily), e;
|
|
1341
1475
|
});
|
|
1342
|
-
return (t, u) => (
|
|
1476
|
+
return (t, u) => (L(), j("div", {
|
|
1343
1477
|
ref_key: "blockRef",
|
|
1344
1478
|
ref: i,
|
|
1345
1479
|
class: "tpl:min-h-[1em] tpl:w-full",
|
|
1346
|
-
style:
|
|
1347
|
-
onDblclick: u[0] ||= (...e) =>
|
|
1348
|
-
}, [
|
|
1480
|
+
style: I(l.value),
|
|
1481
|
+
onDblclick: u[0] ||= (...e) => V(s) && V(s)(...e)
|
|
1482
|
+
}, [V(r) ? (L(), oe(V(n), {
|
|
1349
1483
|
key: 0,
|
|
1350
1484
|
block: e.block,
|
|
1351
|
-
"toolbar-position":
|
|
1352
|
-
onDone:
|
|
1485
|
+
"toolbar-position": V(a),
|
|
1486
|
+
onDone: V(c)
|
|
1353
1487
|
}, null, 8, [
|
|
1354
1488
|
"block",
|
|
1355
1489
|
"toolbar-position",
|
|
1356
1490
|
"onDone"
|
|
1357
|
-
])) : (
|
|
1491
|
+
])) : (L(), j("div", {
|
|
1358
1492
|
key: 1,
|
|
1359
1493
|
class: "tpl-text-content tpl:outline-none [&_a]:tpl:underline [&_p]:tpl:m-0 [&_p]:tpl:mb-2 [&_p:last-child]:tpl:mb-0",
|
|
1360
|
-
innerHTML:
|
|
1361
|
-
}, null, 8,
|
|
1494
|
+
innerHTML: V(o)
|
|
1495
|
+
}, null, 8, Xn))], 36));
|
|
1362
1496
|
}
|
|
1363
|
-
}),
|
|
1364
|
-
MultiDrag: () =>
|
|
1365
|
-
Sortable: () =>
|
|
1366
|
-
Swap: () =>
|
|
1367
|
-
default: () =>
|
|
1497
|
+
}), Qn = /* @__PURE__ */ ot({
|
|
1498
|
+
MultiDrag: () => ri,
|
|
1499
|
+
Sortable: () => J,
|
|
1500
|
+
Swap: () => ti,
|
|
1501
|
+
default: () => J
|
|
1368
1502
|
});
|
|
1369
|
-
function
|
|
1503
|
+
function $n(e, t) {
|
|
1370
1504
|
var n = Object.keys(e);
|
|
1371
1505
|
if (Object.getOwnPropertySymbols) {
|
|
1372
1506
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -1376,26 +1510,26 @@ function Zn(e, t) {
|
|
|
1376
1510
|
}
|
|
1377
1511
|
return n;
|
|
1378
1512
|
}
|
|
1379
|
-
function
|
|
1513
|
+
function er(e) {
|
|
1380
1514
|
for (var t = 1; t < arguments.length; t++) {
|
|
1381
1515
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
1382
|
-
t % 2 ?
|
|
1383
|
-
|
|
1384
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
1516
|
+
t % 2 ? $n(Object(n), !0).forEach(function(t) {
|
|
1517
|
+
nr(e, t, n[t]);
|
|
1518
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : $n(Object(n)).forEach(function(t) {
|
|
1385
1519
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
1386
1520
|
});
|
|
1387
1521
|
}
|
|
1388
1522
|
return e;
|
|
1389
1523
|
}
|
|
1390
|
-
function
|
|
1524
|
+
function tr(e) {
|
|
1391
1525
|
"@babel/helpers - typeof";
|
|
1392
|
-
return
|
|
1526
|
+
return tr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1393
1527
|
return typeof e;
|
|
1394
1528
|
} : function(e) {
|
|
1395
1529
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1396
|
-
},
|
|
1530
|
+
}, tr(e);
|
|
1397
1531
|
}
|
|
1398
|
-
function
|
|
1532
|
+
function nr(e, t, n) {
|
|
1399
1533
|
return t in e ? Object.defineProperty(e, t, {
|
|
1400
1534
|
value: n,
|
|
1401
1535
|
enumerable: !0,
|
|
@@ -1403,65 +1537,65 @@ function er(e, t, n) {
|
|
|
1403
1537
|
writable: !0
|
|
1404
1538
|
}) : e[t] = n, e;
|
|
1405
1539
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
1540
|
+
function rr() {
|
|
1541
|
+
return rr = Object.assign || function(e) {
|
|
1408
1542
|
for (var t = 1; t < arguments.length; t++) {
|
|
1409
1543
|
var n = arguments[t];
|
|
1410
1544
|
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
1411
1545
|
}
|
|
1412
1546
|
return e;
|
|
1413
|
-
},
|
|
1547
|
+
}, rr.apply(this, arguments);
|
|
1414
1548
|
}
|
|
1415
|
-
function
|
|
1549
|
+
function ir(e, t) {
|
|
1416
1550
|
if (e == null) return {};
|
|
1417
1551
|
var n = {}, r = Object.keys(e), i, a;
|
|
1418
1552
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
1419
1553
|
return n;
|
|
1420
1554
|
}
|
|
1421
|
-
function
|
|
1555
|
+
function ar(e, t) {
|
|
1422
1556
|
if (e == null) return {};
|
|
1423
|
-
var n =
|
|
1557
|
+
var n = ir(e, t), r, i;
|
|
1424
1558
|
if (Object.getOwnPropertySymbols) {
|
|
1425
1559
|
var a = Object.getOwnPropertySymbols(e);
|
|
1426
1560
|
for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
|
|
1427
1561
|
}
|
|
1428
1562
|
return n;
|
|
1429
1563
|
}
|
|
1430
|
-
function
|
|
1431
|
-
return
|
|
1564
|
+
function or(e) {
|
|
1565
|
+
return sr(e) || cr(e) || lr(e) || dr();
|
|
1432
1566
|
}
|
|
1433
|
-
function
|
|
1434
|
-
if (Array.isArray(e)) return
|
|
1567
|
+
function sr(e) {
|
|
1568
|
+
if (Array.isArray(e)) return ur(e);
|
|
1435
1569
|
}
|
|
1436
|
-
function
|
|
1570
|
+
function cr(e) {
|
|
1437
1571
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
1438
1572
|
}
|
|
1439
|
-
function
|
|
1573
|
+
function lr(e, t) {
|
|
1440
1574
|
if (e) {
|
|
1441
|
-
if (typeof e == "string") return
|
|
1575
|
+
if (typeof e == "string") return ur(e, t);
|
|
1442
1576
|
var n = Object.prototype.toString.call(e).slice(8, -1);
|
|
1443
1577
|
if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
|
|
1444
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return
|
|
1578
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ur(e, t);
|
|
1445
1579
|
}
|
|
1446
1580
|
}
|
|
1447
|
-
function
|
|
1581
|
+
function ur(e, t) {
|
|
1448
1582
|
(t == null || t > e.length) && (t = e.length);
|
|
1449
1583
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
1450
1584
|
return r;
|
|
1451
1585
|
}
|
|
1452
|
-
function
|
|
1586
|
+
function dr() {
|
|
1453
1587
|
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1454
1588
|
}
|
|
1455
|
-
function
|
|
1589
|
+
function fr(e) {
|
|
1456
1590
|
if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
1457
1591
|
}
|
|
1458
|
-
function
|
|
1459
|
-
e.addEventListener(t, n, !
|
|
1592
|
+
function H(e, t, n) {
|
|
1593
|
+
e.addEventListener(t, n, !ci && mi);
|
|
1460
1594
|
}
|
|
1461
|
-
function
|
|
1462
|
-
e.removeEventListener(t, n, !
|
|
1595
|
+
function U(e, t, n) {
|
|
1596
|
+
e.removeEventListener(t, n, !ci && mi);
|
|
1463
1597
|
}
|
|
1464
|
-
function
|
|
1598
|
+
function pr(e, t) {
|
|
1465
1599
|
if (t) {
|
|
1466
1600
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
1467
1601
|
if (e.matches) return e.matches(t);
|
|
@@ -1473,40 +1607,40 @@ function dr(e, t) {
|
|
|
1473
1607
|
return !1;
|
|
1474
1608
|
}
|
|
1475
1609
|
}
|
|
1476
|
-
function
|
|
1610
|
+
function mr(e) {
|
|
1477
1611
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
1478
1612
|
}
|
|
1479
|
-
function
|
|
1613
|
+
function hr(e, t, n, r) {
|
|
1480
1614
|
if (e) {
|
|
1481
1615
|
n ||= document;
|
|
1482
1616
|
do {
|
|
1483
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
1617
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && pr(e, t) : pr(e, t)) || r && e === n) return e;
|
|
1484
1618
|
if (e === n) break;
|
|
1485
|
-
} while (e =
|
|
1619
|
+
} while (e = mr(e));
|
|
1486
1620
|
}
|
|
1487
1621
|
return null;
|
|
1488
1622
|
}
|
|
1489
|
-
function
|
|
1490
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
1623
|
+
function W(e, t, n) {
|
|
1624
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(hi, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(hi, " "));
|
|
1491
1625
|
}
|
|
1492
|
-
function
|
|
1626
|
+
function G(e, t, n) {
|
|
1493
1627
|
var r = e && e.style;
|
|
1494
1628
|
if (r) {
|
|
1495
1629
|
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];
|
|
1496
1630
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
1497
1631
|
}
|
|
1498
1632
|
}
|
|
1499
|
-
function
|
|
1633
|
+
function gr(e, t) {
|
|
1500
1634
|
var n = "";
|
|
1501
1635
|
if (typeof e == "string") n = e;
|
|
1502
1636
|
else do {
|
|
1503
|
-
var r =
|
|
1637
|
+
var r = G(e, "transform");
|
|
1504
1638
|
r && r !== "none" && (n = r + " " + n);
|
|
1505
1639
|
} while (!t && (e = e.parentNode));
|
|
1506
1640
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
1507
1641
|
return i && new i(n);
|
|
1508
1642
|
}
|
|
1509
|
-
function
|
|
1643
|
+
function _r(e, t, n) {
|
|
1510
1644
|
if (e) {
|
|
1511
1645
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
1512
1646
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -1514,21 +1648,21 @@ function hr(e, t, n) {
|
|
|
1514
1648
|
}
|
|
1515
1649
|
return [];
|
|
1516
1650
|
}
|
|
1517
|
-
function
|
|
1651
|
+
function vr() {
|
|
1518
1652
|
return document.scrollingElement || document.documentElement;
|
|
1519
1653
|
}
|
|
1520
|
-
function
|
|
1654
|
+
function K(e, t, n, r, i) {
|
|
1521
1655
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
1522
1656
|
var a, o, s, c, l, u, d;
|
|
1523
|
-
if (e !== window && e.parentNode && e !==
|
|
1524
|
-
if (i && i.getBoundingClientRect && (
|
|
1657
|
+
if (e !== window && e.parentNode && e !== vr() ? (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, !ci)) do
|
|
1658
|
+
if (i && i.getBoundingClientRect && (G(i, "transform") !== "none" || n && G(i, "position") !== "static")) {
|
|
1525
1659
|
var f = i.getBoundingClientRect();
|
|
1526
|
-
o -= f.top + parseInt(
|
|
1660
|
+
o -= f.top + parseInt(G(i, "border-top-width")), s -= f.left + parseInt(G(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
1527
1661
|
break;
|
|
1528
1662
|
}
|
|
1529
1663
|
while (i = i.parentNode);
|
|
1530
1664
|
if (r && e !== window) {
|
|
1531
|
-
var p =
|
|
1665
|
+
var p = gr(i || e), m = p && p.a, h = p && p.d;
|
|
1532
1666
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
1533
1667
|
}
|
|
1534
1668
|
return {
|
|
@@ -1541,18 +1675,18 @@ function W(e, t, n, r, i) {
|
|
|
1541
1675
|
};
|
|
1542
1676
|
}
|
|
1543
1677
|
}
|
|
1544
|
-
function
|
|
1545
|
-
for (var r =
|
|
1546
|
-
var a =
|
|
1678
|
+
function yr(e, t, n) {
|
|
1679
|
+
for (var r = wr(e, !0), i = K(e)[t]; r;) {
|
|
1680
|
+
var a = K(r)[n], o = void 0;
|
|
1547
1681
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
1548
|
-
if (r ===
|
|
1549
|
-
r =
|
|
1682
|
+
if (r === vr()) break;
|
|
1683
|
+
r = wr(r, !1);
|
|
1550
1684
|
}
|
|
1551
1685
|
return !1;
|
|
1552
1686
|
}
|
|
1553
|
-
function
|
|
1687
|
+
function br(e, t, n, r) {
|
|
1554
1688
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
1555
|
-
if (o[a].style.display !== "none" && o[a] !==
|
|
1689
|
+
if (o[a].style.display !== "none" && o[a] !== J.ghost && (r || o[a] !== J.dragged) && hr(o[a], n.draggable, e, !1)) {
|
|
1556
1690
|
if (i === t) return o[a];
|
|
1557
1691
|
i++;
|
|
1558
1692
|
}
|
|
@@ -1560,91 +1694,91 @@ function vr(e, t, n, r) {
|
|
|
1560
1694
|
}
|
|
1561
1695
|
return null;
|
|
1562
1696
|
}
|
|
1563
|
-
function
|
|
1564
|
-
for (var n = e.lastElementChild; n && (n ===
|
|
1697
|
+
function xr(e, t) {
|
|
1698
|
+
for (var n = e.lastElementChild; n && (n === J.ghost || G(n, "display") === "none" || t && !pr(n, t));) n = n.previousElementSibling;
|
|
1565
1699
|
return n || null;
|
|
1566
1700
|
}
|
|
1567
|
-
function
|
|
1701
|
+
function q(e, t) {
|
|
1568
1702
|
var n = 0;
|
|
1569
1703
|
if (!e || !e.parentNode) return -1;
|
|
1570
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
1704
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== J.clone && (!t || pr(e, t)) && n++;
|
|
1571
1705
|
return n;
|
|
1572
1706
|
}
|
|
1573
|
-
function
|
|
1574
|
-
var t = 0, n = 0, r =
|
|
1707
|
+
function Sr(e) {
|
|
1708
|
+
var t = 0, n = 0, r = vr();
|
|
1575
1709
|
if (e) do {
|
|
1576
|
-
var i =
|
|
1710
|
+
var i = gr(e), a = i.a, o = i.d;
|
|
1577
1711
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
1578
1712
|
} while (e !== r && (e = e.parentNode));
|
|
1579
1713
|
return [t, n];
|
|
1580
1714
|
}
|
|
1581
|
-
function
|
|
1715
|
+
function Cr(e, t) {
|
|
1582
1716
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
1583
1717
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
1584
1718
|
}
|
|
1585
1719
|
return -1;
|
|
1586
1720
|
}
|
|
1587
|
-
function
|
|
1588
|
-
if (!e || !e.getBoundingClientRect) return
|
|
1721
|
+
function wr(e, t) {
|
|
1722
|
+
if (!e || !e.getBoundingClientRect) return vr();
|
|
1589
1723
|
var n = e, r = !1;
|
|
1590
1724
|
do
|
|
1591
1725
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
1592
|
-
var i =
|
|
1726
|
+
var i = G(n);
|
|
1593
1727
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
1594
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
1728
|
+
if (!n.getBoundingClientRect || n === document.body) return vr();
|
|
1595
1729
|
if (r || t) return n;
|
|
1596
1730
|
r = !0;
|
|
1597
1731
|
}
|
|
1598
1732
|
}
|
|
1599
1733
|
while (n = n.parentNode);
|
|
1600
|
-
return
|
|
1734
|
+
return vr();
|
|
1601
1735
|
}
|
|
1602
|
-
function
|
|
1736
|
+
function Tr(e, t) {
|
|
1603
1737
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
1604
1738
|
return e;
|
|
1605
1739
|
}
|
|
1606
|
-
function
|
|
1740
|
+
function Er(e, t) {
|
|
1607
1741
|
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);
|
|
1608
1742
|
}
|
|
1609
|
-
function
|
|
1743
|
+
function Dr(e, t) {
|
|
1610
1744
|
return function() {
|
|
1611
|
-
if (!
|
|
1745
|
+
if (!gi) {
|
|
1612
1746
|
var n = arguments, r = this;
|
|
1613
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
1614
|
-
|
|
1747
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), gi = setTimeout(function() {
|
|
1748
|
+
gi = void 0;
|
|
1615
1749
|
}, t);
|
|
1616
1750
|
}
|
|
1617
1751
|
};
|
|
1618
1752
|
}
|
|
1619
|
-
function
|
|
1620
|
-
clearTimeout(
|
|
1753
|
+
function Or() {
|
|
1754
|
+
clearTimeout(gi), gi = void 0;
|
|
1621
1755
|
}
|
|
1622
|
-
function
|
|
1756
|
+
function kr(e, t, n) {
|
|
1623
1757
|
e.scrollLeft += t, e.scrollTop += n;
|
|
1624
1758
|
}
|
|
1625
|
-
function
|
|
1759
|
+
function Ar(e) {
|
|
1626
1760
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
1627
1761
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
1628
1762
|
}
|
|
1629
|
-
function
|
|
1630
|
-
|
|
1763
|
+
function jr(e, t) {
|
|
1764
|
+
G(e, "position", "absolute"), G(e, "top", t.top), G(e, "left", t.left), G(e, "width", t.width), G(e, "height", t.height);
|
|
1631
1765
|
}
|
|
1632
|
-
function
|
|
1633
|
-
|
|
1766
|
+
function Mr(e) {
|
|
1767
|
+
G(e, "position", ""), G(e, "top", ""), G(e, "left", ""), G(e, "width", ""), G(e, "height", "");
|
|
1634
1768
|
}
|
|
1635
|
-
function
|
|
1769
|
+
function Nr() {
|
|
1636
1770
|
var e = [], t;
|
|
1637
1771
|
return {
|
|
1638
1772
|
captureAnimationState: function() {
|
|
1639
1773
|
e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
|
|
1640
|
-
if (!(
|
|
1774
|
+
if (!(G(t, "display") === "none" || t === J.ghost)) {
|
|
1641
1775
|
e.push({
|
|
1642
1776
|
target: t,
|
|
1643
|
-
rect:
|
|
1777
|
+
rect: K(t)
|
|
1644
1778
|
});
|
|
1645
|
-
var n =
|
|
1779
|
+
var n = er({}, e[e.length - 1].rect);
|
|
1646
1780
|
if (t.thisAnimationDuration) {
|
|
1647
|
-
var r =
|
|
1781
|
+
var r = gr(t, !0);
|
|
1648
1782
|
r && (n.top -= r.f, n.left -= r.e);
|
|
1649
1783
|
}
|
|
1650
1784
|
t.fromRect = n;
|
|
@@ -1655,7 +1789,7 @@ function jr() {
|
|
|
1655
1789
|
e.push(t);
|
|
1656
1790
|
},
|
|
1657
1791
|
removeAnimationState: function(t) {
|
|
1658
|
-
e.splice(
|
|
1792
|
+
e.splice(Cr(e, { target: t }), 1);
|
|
1659
1793
|
},
|
|
1660
1794
|
animateAll: function(n) {
|
|
1661
1795
|
var r = this;
|
|
@@ -1665,8 +1799,8 @@ function jr() {
|
|
|
1665
1799
|
}
|
|
1666
1800
|
var i = !1, a = 0;
|
|
1667
1801
|
e.forEach(function(e) {
|
|
1668
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
1669
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
1802
|
+
var t = 0, n = e.target, o = n.fromRect, s = K(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = gr(n, !0);
|
|
1803
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Er(c, s) && !Er(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = Fr(u, c, l, r.options)), Er(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() {
|
|
1670
1804
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
1671
1805
|
}, t), n.thisAnimationDuration = t);
|
|
1672
1806
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -1675,49 +1809,49 @@ function jr() {
|
|
|
1675
1809
|
},
|
|
1676
1810
|
animate: function(e, t, n, r) {
|
|
1677
1811
|
if (r) {
|
|
1678
|
-
|
|
1679
|
-
var i =
|
|
1680
|
-
e.animatingX = !!s, e.animatingY = !!c,
|
|
1681
|
-
|
|
1812
|
+
G(e, "transition", ""), G(e, "transform", "");
|
|
1813
|
+
var i = gr(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
1814
|
+
e.animatingX = !!s, e.animatingY = !!c, G(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Pr(e), G(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), G(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
1815
|
+
G(e, "transition", ""), G(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
1682
1816
|
}, r);
|
|
1683
1817
|
}
|
|
1684
1818
|
}
|
|
1685
1819
|
};
|
|
1686
1820
|
}
|
|
1687
|
-
function
|
|
1821
|
+
function Pr(e) {
|
|
1688
1822
|
return e.offsetWidth;
|
|
1689
1823
|
}
|
|
1690
|
-
function
|
|
1824
|
+
function Fr(e, t, n, r) {
|
|
1691
1825
|
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;
|
|
1692
1826
|
}
|
|
1693
|
-
function
|
|
1827
|
+
function Ir(e) {
|
|
1694
1828
|
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;
|
|
1695
|
-
if (t ||= n && n[
|
|
1829
|
+
if (t ||= n && n[_i], t) {
|
|
1696
1830
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
1697
|
-
window.CustomEvent && !
|
|
1831
|
+
window.CustomEvent && !ci && !li ? h = new CustomEvent(r, {
|
|
1698
1832
|
bubbles: !0,
|
|
1699
1833
|
cancelable: !0
|
|
1700
1834
|
}) : (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;
|
|
1701
|
-
var v =
|
|
1835
|
+
var v = er(er({}, m), bi.getEventProperties(r, t));
|
|
1702
1836
|
for (var y in v) h[y] = v[y];
|
|
1703
1837
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
1704
1838
|
}
|
|
1705
1839
|
}
|
|
1706
|
-
function
|
|
1707
|
-
|
|
1708
|
-
putSortable:
|
|
1709
|
-
cloneEl:
|
|
1710
|
-
targetEl:
|
|
1711
|
-
rootEl:
|
|
1712
|
-
oldIndex:
|
|
1713
|
-
oldDraggableIndex:
|
|
1714
|
-
newIndex:
|
|
1715
|
-
newDraggableIndex:
|
|
1840
|
+
function Lr(e) {
|
|
1841
|
+
Ir(er({
|
|
1842
|
+
putSortable: Ni,
|
|
1843
|
+
cloneEl: Ei,
|
|
1844
|
+
targetEl: Y,
|
|
1845
|
+
rootEl: Z,
|
|
1846
|
+
oldIndex: Oi,
|
|
1847
|
+
oldDraggableIndex: Ai,
|
|
1848
|
+
newIndex: ki,
|
|
1849
|
+
newDraggableIndex: ji
|
|
1716
1850
|
}, e));
|
|
1717
1851
|
}
|
|
1718
|
-
function
|
|
1852
|
+
function J(e, t) {
|
|
1719
1853
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
1720
|
-
this.el = e, this.options = t =
|
|
1854
|
+
this.el = e, this.options = t = rr({}, t), e[_i] = this;
|
|
1721
1855
|
var n = {
|
|
1722
1856
|
group: null,
|
|
1723
1857
|
sort: !0,
|
|
@@ -1730,7 +1864,7 @@ function K(e, t) {
|
|
|
1730
1864
|
invertedSwapThreshold: null,
|
|
1731
1865
|
removeCloneOnHide: !0,
|
|
1732
1866
|
direction: function() {
|
|
1733
|
-
return
|
|
1867
|
+
return ia(e, this.options);
|
|
1734
1868
|
},
|
|
1735
1869
|
ghostClass: "sortable-ghost",
|
|
1736
1870
|
chosenClass: "sortable-chosen",
|
|
@@ -1757,68 +1891,68 @@ function K(e, t) {
|
|
|
1757
1891
|
x: 0,
|
|
1758
1892
|
y: 0
|
|
1759
1893
|
},
|
|
1760
|
-
supportPointer:
|
|
1894
|
+
supportPointer: J.supportPointer !== !1 && "PointerEvent" in window && !di,
|
|
1761
1895
|
emptyInsertThreshold: 5
|
|
1762
1896
|
};
|
|
1763
|
-
for (var r in
|
|
1764
|
-
for (var i in
|
|
1765
|
-
this.nativeDraggable = t.forceFallback ? !1 :
|
|
1897
|
+
for (var r in bi.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
1898
|
+
for (var i in sa(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
1899
|
+
this.nativeDraggable = t.forceFallback ? !1 : na, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? H(e, "pointerdown", this._onTapStart) : (H(e, "mousedown", this._onTapStart), H(e, "touchstart", this._onTapStart)), this.nativeDraggable && (H(e, "dragover", this), H(e, "dragenter", this)), Ii.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), rr(this, Nr());
|
|
1766
1900
|
}
|
|
1767
|
-
function
|
|
1901
|
+
function Rr(e) {
|
|
1768
1902
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1769
1903
|
}
|
|
1770
|
-
function
|
|
1771
|
-
var c, l = e[
|
|
1772
|
-
return window.CustomEvent && !
|
|
1904
|
+
function zr(e, t, n, r, i, a, o, s) {
|
|
1905
|
+
var c, l = e[_i], u = l.options.onMove, d;
|
|
1906
|
+
return window.CustomEvent && !ci && !li ? c = new CustomEvent("move", {
|
|
1773
1907
|
bubbles: !0,
|
|
1774
1908
|
cancelable: !0
|
|
1775
|
-
}) : (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 ||
|
|
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 || K(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
1776
1910
|
}
|
|
1777
|
-
function
|
|
1911
|
+
function Br(e) {
|
|
1778
1912
|
e.draggable = !1;
|
|
1779
1913
|
}
|
|
1780
|
-
function
|
|
1781
|
-
|
|
1914
|
+
function Vr() {
|
|
1915
|
+
Zi = !1;
|
|
1782
1916
|
}
|
|
1783
|
-
function
|
|
1784
|
-
var r =
|
|
1917
|
+
function Hr(e, t, n) {
|
|
1918
|
+
var r = K(br(n.el, 0, n.options, !0)), i = 10;
|
|
1785
1919
|
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;
|
|
1786
1920
|
}
|
|
1787
|
-
function
|
|
1788
|
-
var r =
|
|
1921
|
+
function Ur(e, t, n) {
|
|
1922
|
+
var r = K(xr(n.el, n.options.draggable)), i = 10;
|
|
1789
1923
|
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;
|
|
1790
1924
|
}
|
|
1791
|
-
function
|
|
1925
|
+
function Wr(e, t, n, r, i, a, o, s) {
|
|
1792
1926
|
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;
|
|
1793
1927
|
if (!o) {
|
|
1794
|
-
if (s &&
|
|
1795
|
-
if (!
|
|
1796
|
-
else if (
|
|
1797
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
1928
|
+
if (s && Ji < l * i) {
|
|
1929
|
+
if (!Ki && (Gi === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ki = !0), Ki) f = !0;
|
|
1930
|
+
else if (Gi === 1 ? c < u + Ji : c > d - Ji) return -Gi;
|
|
1931
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Gr(t);
|
|
1798
1932
|
}
|
|
1799
1933
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
1800
1934
|
}
|
|
1801
|
-
function
|
|
1802
|
-
return
|
|
1935
|
+
function Gr(e) {
|
|
1936
|
+
return q(Y) < q(e) ? 1 : -1;
|
|
1803
1937
|
}
|
|
1804
|
-
function
|
|
1938
|
+
function Kr(e) {
|
|
1805
1939
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
1806
1940
|
return r.toString(36);
|
|
1807
1941
|
}
|
|
1808
|
-
function
|
|
1809
|
-
|
|
1942
|
+
function qr(e) {
|
|
1943
|
+
Qi.length = 0;
|
|
1810
1944
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
1811
1945
|
var r = t[n];
|
|
1812
|
-
r.checked &&
|
|
1946
|
+
r.checked && Qi.push(r);
|
|
1813
1947
|
}
|
|
1814
1948
|
}
|
|
1815
|
-
function
|
|
1949
|
+
function Jr(e) {
|
|
1816
1950
|
return setTimeout(e, 0);
|
|
1817
1951
|
}
|
|
1818
|
-
function
|
|
1952
|
+
function Yr(e) {
|
|
1819
1953
|
return clearTimeout(e);
|
|
1820
1954
|
}
|
|
1821
|
-
function
|
|
1955
|
+
function Xr() {
|
|
1822
1956
|
function e() {
|
|
1823
1957
|
for (var e in this.defaults = {
|
|
1824
1958
|
scroll: !0,
|
|
@@ -1831,99 +1965,99 @@ function Jr() {
|
|
|
1831
1965
|
return e.prototype = {
|
|
1832
1966
|
dragStarted: function(e) {
|
|
1833
1967
|
var t = e.originalEvent;
|
|
1834
|
-
this.sortable.nativeDraggable ?
|
|
1968
|
+
this.sortable.nativeDraggable ? H(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? H(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? H(document, "touchmove", this._handleFallbackAutoScroll) : H(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1835
1969
|
},
|
|
1836
1970
|
dragOverCompleted: function(e) {
|
|
1837
1971
|
var t = e.originalEvent;
|
|
1838
1972
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1839
1973
|
},
|
|
1840
1974
|
drop: function() {
|
|
1841
|
-
this.sortable.nativeDraggable ?
|
|
1975
|
+
this.sortable.nativeDraggable ? U(document, "dragover", this._handleAutoScroll) : (U(document, "pointermove", this._handleFallbackAutoScroll), U(document, "touchmove", this._handleFallbackAutoScroll), U(document, "mousemove", this._handleFallbackAutoScroll)), Qr(), Zr(), Or();
|
|
1842
1976
|
},
|
|
1843
1977
|
nulling: function() {
|
|
1844
|
-
|
|
1978
|
+
va = ma = pa = ha = ya = ga = _a = null, fa.length = 0;
|
|
1845
1979
|
},
|
|
1846
1980
|
_handleFallbackAutoScroll: function(e) {
|
|
1847
1981
|
this._handleAutoScroll(e, !0);
|
|
1848
1982
|
},
|
|
1849
1983
|
_handleAutoScroll: function(e, t) {
|
|
1850
1984
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
1851
|
-
if (
|
|
1852
|
-
|
|
1853
|
-
var o =
|
|
1854
|
-
|
|
1855
|
-
var a =
|
|
1856
|
-
a !== o && (o = a,
|
|
1857
|
-
}, 10),
|
|
1985
|
+
if (va = e, t || this.options.forceAutoScrollFallback || li || ci || di) {
|
|
1986
|
+
ba(e, this.options, a, t);
|
|
1987
|
+
var o = wr(a, !0);
|
|
1988
|
+
ha && (!ya || r !== ga || i !== _a) && (ya && Qr(), ya = setInterval(function() {
|
|
1989
|
+
var a = wr(document.elementFromPoint(r, i), !0);
|
|
1990
|
+
a !== o && (o = a, Zr()), ba(e, n.options, a, t);
|
|
1991
|
+
}, 10), ga = r, _a = i);
|
|
1858
1992
|
} else {
|
|
1859
|
-
if (!this.options.bubbleScroll ||
|
|
1860
|
-
|
|
1993
|
+
if (!this.options.bubbleScroll || wr(a, !0) === vr()) {
|
|
1994
|
+
Zr();
|
|
1861
1995
|
return;
|
|
1862
1996
|
}
|
|
1863
|
-
|
|
1997
|
+
ba(e, this.options, wr(a, !1), !1);
|
|
1864
1998
|
}
|
|
1865
1999
|
}
|
|
1866
|
-
},
|
|
2000
|
+
}, rr(e, {
|
|
1867
2001
|
pluginName: "scroll",
|
|
1868
2002
|
initializeByDefault: !0
|
|
1869
2003
|
});
|
|
1870
2004
|
}
|
|
1871
|
-
function
|
|
1872
|
-
|
|
2005
|
+
function Zr() {
|
|
2006
|
+
fa.forEach(function(e) {
|
|
1873
2007
|
clearInterval(e.pid);
|
|
1874
|
-
}),
|
|
2008
|
+
}), fa = [];
|
|
1875
2009
|
}
|
|
1876
|
-
function
|
|
1877
|
-
clearInterval(
|
|
2010
|
+
function Qr() {
|
|
2011
|
+
clearInterval(ya);
|
|
1878
2012
|
}
|
|
1879
|
-
function
|
|
1880
|
-
function
|
|
1881
|
-
function
|
|
2013
|
+
function $r() {}
|
|
2014
|
+
function ei() {}
|
|
2015
|
+
function ti() {
|
|
1882
2016
|
function e() {
|
|
1883
2017
|
this.defaults = { swapClass: "sortable-swap-highlight" };
|
|
1884
2018
|
}
|
|
1885
2019
|
return e.prototype = {
|
|
1886
2020
|
dragStart: function(e) {
|
|
1887
|
-
|
|
2021
|
+
Sa = e.dragEl;
|
|
1888
2022
|
},
|
|
1889
2023
|
dragOverValid: function(e) {
|
|
1890
2024
|
var t = e.completed, n = e.target, r = e.onMove, i = e.activeSortable, a = e.changed, o = e.cancel;
|
|
1891
2025
|
if (i.options.swap) {
|
|
1892
2026
|
var s = this.sortable.el, c = this.options;
|
|
1893
2027
|
if (n && n !== s) {
|
|
1894
|
-
var l =
|
|
1895
|
-
r(n) === !1 ?
|
|
2028
|
+
var l = Sa;
|
|
2029
|
+
r(n) === !1 ? Sa = null : (W(n, c.swapClass, !0), Sa = n), l && l !== Sa && W(l, c.swapClass, !1);
|
|
1896
2030
|
}
|
|
1897
2031
|
a(), t(!0), o();
|
|
1898
2032
|
}
|
|
1899
2033
|
},
|
|
1900
2034
|
drop: function(e) {
|
|
1901
2035
|
var t = e.activeSortable, n = e.putSortable, r = e.dragEl, i = n || this.sortable, a = this.options;
|
|
1902
|
-
|
|
2036
|
+
Sa && W(Sa, a.swapClass, !1), Sa && (a.swap || n && n.options.swap) && r !== Sa && (i.captureAnimationState(), i !== t && t.captureAnimationState(), ni(r, Sa), i.animateAll(), i !== t && t.animateAll());
|
|
1903
2037
|
},
|
|
1904
2038
|
nulling: function() {
|
|
1905
|
-
|
|
2039
|
+
Sa = null;
|
|
1906
2040
|
}
|
|
1907
|
-
},
|
|
2041
|
+
}, rr(e, {
|
|
1908
2042
|
pluginName: "swap",
|
|
1909
2043
|
eventProperties: function() {
|
|
1910
|
-
return { swapItem:
|
|
2044
|
+
return { swapItem: Sa };
|
|
1911
2045
|
}
|
|
1912
2046
|
});
|
|
1913
2047
|
}
|
|
1914
|
-
function
|
|
2048
|
+
function ni(e, t) {
|
|
1915
2049
|
var n = e.parentNode, r = t.parentNode, i, a;
|
|
1916
|
-
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i =
|
|
2050
|
+
!n || !r || n.isEqualNode(t) || r.isEqualNode(e) || (i = q(e), a = q(t), n.isEqualNode(r) && i < a && a++, n.insertBefore(t, n.children[i]), r.insertBefore(e, r.children[a]));
|
|
1917
2051
|
}
|
|
1918
|
-
function
|
|
2052
|
+
function ri() {
|
|
1919
2053
|
function e(e) {
|
|
1920
2054
|
for (var t in this) t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1921
|
-
e.options.supportPointer ?
|
|
2055
|
+
e.options.supportPointer ? 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), this.defaults = {
|
|
1922
2056
|
selectedClass: "sortable-selected",
|
|
1923
2057
|
multiDragKey: null,
|
|
1924
2058
|
setData: function(t, n) {
|
|
1925
2059
|
var r = "";
|
|
1926
|
-
Q.length &&
|
|
2060
|
+
Q.length && Ta === e ? Q.forEach(function(e, t) {
|
|
1927
2061
|
r += (t ? ", " : "") + e.textContent;
|
|
1928
2062
|
}) : r = n.textContent, t.setData("Text", r);
|
|
1929
2063
|
}
|
|
@@ -1941,83 +2075,83 @@ function ti() {
|
|
|
1941
2075
|
setupClone: function(e) {
|
|
1942
2076
|
var t = e.sortable, n = e.cancel;
|
|
1943
2077
|
if (this.isMultiDrag) {
|
|
1944
|
-
for (var r = 0; r < Q.length; r++)
|
|
2078
|
+
for (var r = 0; r < Q.length; r++) Ca.push(Ar(Q[r])), Ca[r].sortableIndex = Q[r].sortableIndex, Ca[r].draggable = !1, Ca[r].style["will-change"] = "", W(Ca[r], this.options.selectedClass, !1), Q[r] === $ && W(Ca[r], this.options.chosenClass, !1);
|
|
1945
2079
|
t._hideClone(), n();
|
|
1946
2080
|
}
|
|
1947
2081
|
},
|
|
1948
2082
|
clone: function(e) {
|
|
1949
2083
|
var t = e.sortable, n = e.rootEl, r = e.dispatchSortableEvent, i = e.cancel;
|
|
1950
|
-
this.isMultiDrag && (this.options.removeCloneOnHide || Q.length &&
|
|
2084
|
+
this.isMultiDrag && (this.options.removeCloneOnHide || Q.length && Ta === t && (ai(!0, n), r("clone"), i()));
|
|
1951
2085
|
},
|
|
1952
2086
|
showClone: function(e) {
|
|
1953
2087
|
var t = e.cloneNowShown, n = e.rootEl, r = e.cancel;
|
|
1954
|
-
this.isMultiDrag && (
|
|
1955
|
-
|
|
1956
|
-
}), t(),
|
|
2088
|
+
this.isMultiDrag && (ai(!1, n), Ca.forEach(function(e) {
|
|
2089
|
+
G(e, "display", "");
|
|
2090
|
+
}), t(), Aa = !1, r());
|
|
1957
2091
|
},
|
|
1958
2092
|
hideClone: function(e) {
|
|
1959
2093
|
var t = this;
|
|
1960
2094
|
e.sortable;
|
|
1961
2095
|
var n = e.cloneNowHidden, r = e.cancel;
|
|
1962
|
-
this.isMultiDrag && (
|
|
1963
|
-
|
|
1964
|
-
}), n(),
|
|
2096
|
+
this.isMultiDrag && (Ca.forEach(function(e) {
|
|
2097
|
+
G(e, "display", "none"), t.options.removeCloneOnHide && e.parentNode && e.parentNode.removeChild(e);
|
|
2098
|
+
}), n(), Aa = !0, r());
|
|
1965
2099
|
},
|
|
1966
2100
|
dragStartGlobal: function(e) {
|
|
1967
|
-
e.sortable, !this.isMultiDrag &&
|
|
1968
|
-
e.sortableIndex =
|
|
2101
|
+
e.sortable, !this.isMultiDrag && Ta && Ta.multiDrag._deselectMultiDrag(), Q.forEach(function(e) {
|
|
2102
|
+
e.sortableIndex = q(e);
|
|
1969
2103
|
}), Q = Q.sort(function(e, t) {
|
|
1970
2104
|
return e.sortableIndex - t.sortableIndex;
|
|
1971
|
-
}),
|
|
2105
|
+
}), Oa = !0;
|
|
1972
2106
|
},
|
|
1973
2107
|
dragStarted: function(e) {
|
|
1974
2108
|
var t = this, n = e.sortable;
|
|
1975
2109
|
if (this.isMultiDrag) {
|
|
1976
2110
|
if (this.options.sort && (n.captureAnimationState(), this.options.animation)) {
|
|
1977
2111
|
Q.forEach(function(e) {
|
|
1978
|
-
e !== $ &&
|
|
2112
|
+
e !== $ && G(e, "position", "absolute");
|
|
1979
2113
|
});
|
|
1980
|
-
var r =
|
|
2114
|
+
var r = K($, !1, !0, !0);
|
|
1981
2115
|
Q.forEach(function(e) {
|
|
1982
|
-
e !== $ &&
|
|
1983
|
-
}),
|
|
2116
|
+
e !== $ && jr(e, r);
|
|
2117
|
+
}), Da = !0, Ea = !0;
|
|
1984
2118
|
}
|
|
1985
2119
|
n.animateAll(function() {
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
}), t.options.sort &&
|
|
2120
|
+
Da = !1, Ea = !1, t.options.animation && Q.forEach(function(e) {
|
|
2121
|
+
Mr(e);
|
|
2122
|
+
}), t.options.sort && oi();
|
|
1989
2123
|
});
|
|
1990
2124
|
}
|
|
1991
2125
|
},
|
|
1992
2126
|
dragOver: function(e) {
|
|
1993
2127
|
var t = e.target, n = e.completed, r = e.cancel;
|
|
1994
|
-
|
|
2128
|
+
Da && ~Q.indexOf(t) && (n(!1), r());
|
|
1995
2129
|
},
|
|
1996
2130
|
revert: function(e) {
|
|
1997
2131
|
var t = e.fromSortable, n = e.rootEl, r = e.sortable, i = e.dragRect;
|
|
1998
2132
|
Q.length > 1 && (Q.forEach(function(e) {
|
|
1999
2133
|
r.addAnimationState({
|
|
2000
2134
|
target: e,
|
|
2001
|
-
rect:
|
|
2002
|
-
}),
|
|
2003
|
-
}),
|
|
2135
|
+
rect: Da ? K(e) : i
|
|
2136
|
+
}), Mr(e), e.fromRect = i, t.removeAnimationState(e);
|
|
2137
|
+
}), Da = !1, ii(!this.options.removeCloneOnHide, n));
|
|
2004
2138
|
},
|
|
2005
2139
|
dragOverCompleted: function(e) {
|
|
2006
2140
|
var t = e.sortable, n = e.isOwner, r = e.insertion, i = e.activeSortable, a = e.parentEl, o = e.putSortable, s = this.options;
|
|
2007
2141
|
if (r) {
|
|
2008
|
-
if (n && i._hideClone(),
|
|
2009
|
-
var c =
|
|
2142
|
+
if (n && i._hideClone(), Ea = !1, s.animation && Q.length > 1 && (Da || !n && !i.options.sort && !o)) {
|
|
2143
|
+
var c = K($, !1, !0, !0);
|
|
2010
2144
|
Q.forEach(function(e) {
|
|
2011
|
-
e !== $ && (
|
|
2012
|
-
}),
|
|
2145
|
+
e !== $ && (jr(e, c), a.appendChild(e));
|
|
2146
|
+
}), Da = !0;
|
|
2013
2147
|
}
|
|
2014
|
-
if (!n) if (
|
|
2015
|
-
var l =
|
|
2016
|
-
i._showClone(t), i.options.animation && !
|
|
2148
|
+
if (!n) if (Da || oi(), Q.length > 1) {
|
|
2149
|
+
var l = Aa;
|
|
2150
|
+
i._showClone(t), i.options.animation && !Aa && l && Ca.forEach(function(e) {
|
|
2017
2151
|
i.addAnimationState({
|
|
2018
2152
|
target: e,
|
|
2019
|
-
rect:
|
|
2020
|
-
}), e.fromRect =
|
|
2153
|
+
rect: ka
|
|
2154
|
+
}), e.fromRect = ka, e.thisAnimationDuration = null;
|
|
2021
2155
|
});
|
|
2022
2156
|
} else i._showClone(t);
|
|
2023
2157
|
}
|
|
@@ -2027,19 +2161,19 @@ function ti() {
|
|
|
2027
2161
|
if (Q.forEach(function(e) {
|
|
2028
2162
|
e.thisAnimationDuration = null;
|
|
2029
2163
|
}), r.options.animation && !n && r.multiDrag.isMultiDrag) {
|
|
2030
|
-
|
|
2031
|
-
var i =
|
|
2032
|
-
|
|
2164
|
+
ka = rr({}, t);
|
|
2165
|
+
var i = gr($, !0);
|
|
2166
|
+
ka.top -= i.f, ka.left -= i.e;
|
|
2033
2167
|
}
|
|
2034
2168
|
},
|
|
2035
2169
|
dragOverAnimationComplete: function() {
|
|
2036
|
-
|
|
2170
|
+
Da && (Da = !1, oi());
|
|
2037
2171
|
},
|
|
2038
2172
|
drop: function(e) {
|
|
2039
2173
|
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;
|
|
2040
2174
|
if (t) {
|
|
2041
2175
|
var l = this.options, u = r.children;
|
|
2042
|
-
if (!
|
|
2176
|
+
if (!Oa) if (l.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), W($, l.selectedClass, !~Q.indexOf($)), ~Q.indexOf($)) Q.splice(Q.indexOf($), 1), wa = null, Ir({
|
|
2043
2177
|
sortable: i,
|
|
2044
2178
|
rootEl: n,
|
|
2045
2179
|
name: "deselect",
|
|
@@ -2047,17 +2181,17 @@ function ti() {
|
|
|
2047
2181
|
originalEvt: t
|
|
2048
2182
|
});
|
|
2049
2183
|
else {
|
|
2050
|
-
if (Q.push($),
|
|
2184
|
+
if (Q.push($), Ir({
|
|
2051
2185
|
sortable: i,
|
|
2052
2186
|
rootEl: n,
|
|
2053
2187
|
name: "select",
|
|
2054
2188
|
targetEl: $,
|
|
2055
2189
|
originalEvt: t
|
|
2056
|
-
}), t.shiftKey &&
|
|
2057
|
-
var d =
|
|
2190
|
+
}), t.shiftKey && wa && i.el.contains(wa)) {
|
|
2191
|
+
var d = q(wa), f = q($);
|
|
2058
2192
|
if (~d && ~f && d !== f) {
|
|
2059
2193
|
var p, m;
|
|
2060
|
-
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (
|
|
2194
|
+
for (f > d ? (m = d, p = f) : (m = f, p = d + 1); m < p; m++) ~Q.indexOf(u[m]) || (W(u[m], l.selectedClass, !0), Q.push(u[m]), Ir({
|
|
2061
2195
|
sortable: i,
|
|
2062
2196
|
rootEl: n,
|
|
2063
2197
|
name: "select",
|
|
@@ -2065,52 +2199,52 @@ function ti() {
|
|
|
2065
2199
|
originalEvt: t
|
|
2066
2200
|
}));
|
|
2067
2201
|
}
|
|
2068
|
-
} else
|
|
2069
|
-
|
|
2202
|
+
} else wa = $;
|
|
2203
|
+
Ta = c;
|
|
2070
2204
|
}
|
|
2071
|
-
if (
|
|
2072
|
-
if (
|
|
2073
|
-
var h =
|
|
2074
|
-
if (!
|
|
2205
|
+
if (Oa && this.isMultiDrag) {
|
|
2206
|
+
if (Da = !1, (r[_i].options.sort || r !== n) && Q.length > 1) {
|
|
2207
|
+
var h = K($), g = q($, ":not(." + this.options.selectedClass + ")");
|
|
2208
|
+
if (!Ea && l.animation && ($.thisAnimationDuration = null), c.captureAnimationState(), !Ea && (l.animation && ($.fromRect = h, Q.forEach(function(e) {
|
|
2075
2209
|
if (e.thisAnimationDuration = null, e !== $) {
|
|
2076
|
-
var t =
|
|
2210
|
+
var t = Da ? K(e) : h;
|
|
2077
2211
|
e.fromRect = t, c.addAnimationState({
|
|
2078
2212
|
target: e,
|
|
2079
2213
|
rect: t
|
|
2080
2214
|
});
|
|
2081
2215
|
}
|
|
2082
|
-
})),
|
|
2216
|
+
})), oi(), Q.forEach(function(e) {
|
|
2083
2217
|
u[g] ? r.insertBefore(e, u[g]) : r.appendChild(e), g++;
|
|
2084
|
-
}), o ===
|
|
2218
|
+
}), o === q($))) {
|
|
2085
2219
|
var _ = !1;
|
|
2086
2220
|
Q.forEach(function(e) {
|
|
2087
|
-
if (e.sortableIndex !==
|
|
2221
|
+
if (e.sortableIndex !== q(e)) {
|
|
2088
2222
|
_ = !0;
|
|
2089
2223
|
return;
|
|
2090
2224
|
}
|
|
2091
2225
|
}), _ && a("update");
|
|
2092
2226
|
}
|
|
2093
2227
|
Q.forEach(function(e) {
|
|
2094
|
-
|
|
2228
|
+
Mr(e);
|
|
2095
2229
|
}), c.animateAll();
|
|
2096
2230
|
}
|
|
2097
|
-
|
|
2231
|
+
Ta = c;
|
|
2098
2232
|
}
|
|
2099
|
-
(n === r || s && s.lastPutMode !== "clone") &&
|
|
2233
|
+
(n === r || s && s.lastPutMode !== "clone") && Ca.forEach(function(e) {
|
|
2100
2234
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2101
2235
|
});
|
|
2102
2236
|
}
|
|
2103
2237
|
},
|
|
2104
2238
|
nullingGlobal: function() {
|
|
2105
|
-
this.isMultiDrag =
|
|
2239
|
+
this.isMultiDrag = Oa = !1, Ca.length = 0;
|
|
2106
2240
|
},
|
|
2107
2241
|
destroyGlobal: function() {
|
|
2108
|
-
this._deselectMultiDrag(),
|
|
2242
|
+
this._deselectMultiDrag(), U(document, "pointerup", this._deselectMultiDrag), U(document, "mouseup", this._deselectMultiDrag), U(document, "touchend", this._deselectMultiDrag), U(document, "keydown", this._checkKeyDown), U(document, "keyup", this._checkKeyUp);
|
|
2109
2243
|
},
|
|
2110
2244
|
_deselectMultiDrag: function(e) {
|
|
2111
|
-
if (!(
|
|
2245
|
+
if (!(Oa !== void 0 && Oa) && Ta === this.sortable && !(e && hr(e.target, this.options.draggable, this.sortable.el, !1)) && !(e && e.button !== 0)) for (; Q.length;) {
|
|
2112
2246
|
var t = Q[0];
|
|
2113
|
-
|
|
2247
|
+
W(t, this.options.selectedClass, !1), Q.shift(), Ir({
|
|
2114
2248
|
sortable: this.sortable,
|
|
2115
2249
|
rootEl: this.sortable.el,
|
|
2116
2250
|
name: "deselect",
|
|
@@ -2125,16 +2259,16 @@ function ti() {
|
|
|
2125
2259
|
_checkKeyUp: function(e) {
|
|
2126
2260
|
e.key === this.options.multiDragKey && (this.multiDragKeyDown = !1);
|
|
2127
2261
|
}
|
|
2128
|
-
},
|
|
2262
|
+
}, rr(e, {
|
|
2129
2263
|
pluginName: "multiDrag",
|
|
2130
2264
|
utils: {
|
|
2131
2265
|
select: function(e) {
|
|
2132
|
-
var t = e.parentNode[
|
|
2133
|
-
!t || !t.options.multiDrag || ~Q.indexOf(e) || (
|
|
2266
|
+
var t = e.parentNode[_i];
|
|
2267
|
+
!t || !t.options.multiDrag || ~Q.indexOf(e) || (Ta && Ta !== t && (Ta.multiDrag._deselectMultiDrag(), Ta = t), W(e, t.options.selectedClass, !0), Q.push(e));
|
|
2134
2268
|
},
|
|
2135
2269
|
deselect: function(e) {
|
|
2136
|
-
var t = e.parentNode[
|
|
2137
|
-
!t || !t.options.multiDrag || !~n || (
|
|
2270
|
+
var t = e.parentNode[_i], n = Q.indexOf(e);
|
|
2271
|
+
!t || !t.options.multiDrag || !~n || (W(e, t.options.selectedClass, !1), Q.splice(n, 1));
|
|
2138
2272
|
}
|
|
2139
2273
|
},
|
|
2140
2274
|
eventProperties: function() {
|
|
@@ -2144,14 +2278,14 @@ function ti() {
|
|
|
2144
2278
|
multiDragElement: r,
|
|
2145
2279
|
index: r.sortableIndex
|
|
2146
2280
|
});
|
|
2147
|
-
var i =
|
|
2281
|
+
var i = Da && r !== $ ? -1 : Da ? q(r, ":not(." + e.options.selectedClass + ")") : q(r);
|
|
2148
2282
|
n.push({
|
|
2149
2283
|
multiDragElement: r,
|
|
2150
2284
|
index: i
|
|
2151
2285
|
});
|
|
2152
2286
|
}), {
|
|
2153
|
-
items:
|
|
2154
|
-
clones: [].concat(
|
|
2287
|
+
items: or(Q),
|
|
2288
|
+
clones: [].concat(Ca),
|
|
2155
2289
|
oldIndicies: t,
|
|
2156
2290
|
newIndicies: n
|
|
2157
2291
|
};
|
|
@@ -2161,33 +2295,33 @@ function ti() {
|
|
|
2161
2295
|
} }
|
|
2162
2296
|
});
|
|
2163
2297
|
}
|
|
2164
|
-
function
|
|
2298
|
+
function ii(e, t) {
|
|
2165
2299
|
Q.forEach(function(n, r) {
|
|
2166
2300
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
2167
2301
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
2168
2302
|
});
|
|
2169
2303
|
}
|
|
2170
|
-
function
|
|
2171
|
-
|
|
2304
|
+
function ai(e, t) {
|
|
2305
|
+
Ca.forEach(function(n, r) {
|
|
2172
2306
|
var i = t.children[n.sortableIndex + (e ? Number(r) : 0)];
|
|
2173
2307
|
i ? t.insertBefore(n, i) : t.appendChild(n);
|
|
2174
2308
|
});
|
|
2175
2309
|
}
|
|
2176
|
-
function
|
|
2310
|
+
function oi() {
|
|
2177
2311
|
Q.forEach(function(e) {
|
|
2178
2312
|
e !== $ && e.parentNode && e.parentNode.removeChild(e);
|
|
2179
2313
|
});
|
|
2180
2314
|
}
|
|
2181
|
-
var
|
|
2182
|
-
|
|
2315
|
+
var si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, xi, Si, Y, Ci, X, Z, wi, Ti, Ei, 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, Q, Ca, wa, Ta, Ea, Da, Oa, $, ka, Aa, ja = it((() => {
|
|
2316
|
+
si = "1.14.0", ci = fr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), li = fr(/Edge/i), ui = fr(/firefox/i), di = fr(/safari/i) && !fr(/chrome/i) && !fr(/android/i), fi = fr(/iP(ad|od|hone)/i), pi = fr(/chrome/i) && fr(/android/i), mi = {
|
|
2183
2317
|
capture: !1,
|
|
2184
2318
|
passive: !1
|
|
2185
|
-
},
|
|
2319
|
+
}, hi = /\s+/g, _i = "Sortable" + (/* @__PURE__ */ new Date()).getTime(), vi = [], yi = { initializeByDefault: !0 }, bi = {
|
|
2186
2320
|
mount: function(e) {
|
|
2187
|
-
for (var t in
|
|
2188
|
-
|
|
2321
|
+
for (var t in yi) yi.hasOwnProperty(t) && !(t in e) && (e[t] = yi[t]);
|
|
2322
|
+
vi.forEach(function(t) {
|
|
2189
2323
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
2190
|
-
}),
|
|
2324
|
+
}), vi.push(e);
|
|
2191
2325
|
},
|
|
2192
2326
|
pluginEvent: function(e, t, n) {
|
|
2193
2327
|
var r = this;
|
|
@@ -2195,16 +2329,16 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2195
2329
|
r.eventCanceled = !0;
|
|
2196
2330
|
};
|
|
2197
2331
|
var i = e + "Global";
|
|
2198
|
-
|
|
2199
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
2332
|
+
vi.forEach(function(r) {
|
|
2333
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](er({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](er({ sortable: t }, n)));
|
|
2200
2334
|
});
|
|
2201
2335
|
},
|
|
2202
2336
|
initializePlugins: function(e, t, n, r) {
|
|
2203
|
-
for (var i in
|
|
2337
|
+
for (var i in vi.forEach(function(r) {
|
|
2204
2338
|
var i = r.pluginName;
|
|
2205
2339
|
if (!(!e.options[i] && !r.initializeByDefault)) {
|
|
2206
2340
|
var a = new r(e, t, e.options);
|
|
2207
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
2341
|
+
a.sortable = e, a.options = e.options, e[i] = a, rr(n, a.defaults);
|
|
2208
2342
|
}
|
|
2209
2343
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
2210
2344
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -2213,79 +2347,79 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2213
2347
|
},
|
|
2214
2348
|
getEventProperties: function(e, t) {
|
|
2215
2349
|
var n = {};
|
|
2216
|
-
return
|
|
2217
|
-
typeof r.eventProperties == "function" &&
|
|
2350
|
+
return vi.forEach(function(r) {
|
|
2351
|
+
typeof r.eventProperties == "function" && rr(n, r.eventProperties.call(t[r.pluginName], e));
|
|
2218
2352
|
}), n;
|
|
2219
2353
|
},
|
|
2220
2354
|
modifyOption: function(e, t, n) {
|
|
2221
2355
|
var r;
|
|
2222
|
-
return
|
|
2356
|
+
return vi.forEach(function(i) {
|
|
2223
2357
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
2224
2358
|
}), r;
|
|
2225
2359
|
}
|
|
2226
|
-
},
|
|
2227
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
2228
|
-
|
|
2229
|
-
dragEl:
|
|
2230
|
-
parentEl:
|
|
2231
|
-
ghostEl:
|
|
2232
|
-
rootEl:
|
|
2233
|
-
nextEl:
|
|
2234
|
-
lastDownEl:
|
|
2235
|
-
cloneEl:
|
|
2236
|
-
cloneHidden:
|
|
2237
|
-
dragStarted:
|
|
2238
|
-
putSortable:
|
|
2239
|
-
activeSortable:
|
|
2360
|
+
}, xi = ["evt"], Si = function(e, t) {
|
|
2361
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = ar(n, xi);
|
|
2362
|
+
bi.pluginEvent.bind(J)(e, t, er({
|
|
2363
|
+
dragEl: Y,
|
|
2364
|
+
parentEl: Ci,
|
|
2365
|
+
ghostEl: X,
|
|
2366
|
+
rootEl: Z,
|
|
2367
|
+
nextEl: wi,
|
|
2368
|
+
lastDownEl: Ti,
|
|
2369
|
+
cloneEl: Ei,
|
|
2370
|
+
cloneHidden: Di,
|
|
2371
|
+
dragStarted: Ui,
|
|
2372
|
+
putSortable: Ni,
|
|
2373
|
+
activeSortable: J.active,
|
|
2240
2374
|
originalEvent: r,
|
|
2241
|
-
oldIndex:
|
|
2242
|
-
oldDraggableIndex:
|
|
2243
|
-
newIndex:
|
|
2244
|
-
newDraggableIndex:
|
|
2245
|
-
hideGhostForTarget:
|
|
2246
|
-
unhideGhostForTarget:
|
|
2375
|
+
oldIndex: Oi,
|
|
2376
|
+
oldDraggableIndex: Ai,
|
|
2377
|
+
newIndex: ki,
|
|
2378
|
+
newDraggableIndex: ji,
|
|
2379
|
+
hideGhostForTarget: ca,
|
|
2380
|
+
unhideGhostForTarget: la,
|
|
2247
2381
|
cloneNowHidden: function() {
|
|
2248
|
-
|
|
2382
|
+
Di = !0;
|
|
2249
2383
|
},
|
|
2250
2384
|
cloneNowShown: function() {
|
|
2251
|
-
|
|
2385
|
+
Di = !1;
|
|
2252
2386
|
},
|
|
2253
2387
|
dispatchSortableEvent: function(e) {
|
|
2254
|
-
|
|
2388
|
+
Lr({
|
|
2255
2389
|
sortable: t,
|
|
2256
2390
|
name: e,
|
|
2257
2391
|
originalEvent: r
|
|
2258
2392
|
});
|
|
2259
2393
|
}
|
|
2260
2394
|
}, i));
|
|
2261
|
-
},
|
|
2262
|
-
if (
|
|
2263
|
-
if (
|
|
2395
|
+
}, Pi = !1, Fi = !1, Ii = [], Ki = !1, qi = !1, Xi = [], Zi = !1, Qi = [], $i = typeof document < "u", ea = fi, ta = li || ci ? "cssFloat" : "float", na = $i && !pi && !fi && "draggable" in document.createElement("div"), ra = function() {
|
|
2396
|
+
if ($i) {
|
|
2397
|
+
if (ci) return !1;
|
|
2264
2398
|
var e = document.createElement("x");
|
|
2265
2399
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
2266
2400
|
}
|
|
2267
|
-
}(),
|
|
2268
|
-
var n =
|
|
2401
|
+
}(), ia = function(e, t) {
|
|
2402
|
+
var n = G(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = br(e, 0, t), a = br(e, 1, t), o = i && G(i), s = a && G(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + K(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + K(a).width;
|
|
2269
2403
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
2270
2404
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
2271
2405
|
if (i && o.float && o.float !== "none") {
|
|
2272
2406
|
var u = o.float === "left" ? "left" : "right";
|
|
2273
2407
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
2274
2408
|
}
|
|
2275
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
2276
|
-
},
|
|
2409
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[ta] === "none" || a && n[ta] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
2410
|
+
}, aa = function(e, t, n) {
|
|
2277
2411
|
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;
|
|
2278
2412
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
2279
|
-
},
|
|
2413
|
+
}, oa = function(e, t) {
|
|
2280
2414
|
var n;
|
|
2281
|
-
return
|
|
2282
|
-
var i = r[
|
|
2283
|
-
if (!(!i ||
|
|
2284
|
-
var a =
|
|
2415
|
+
return Ii.some(function(r) {
|
|
2416
|
+
var i = r[_i].options.emptyInsertThreshold;
|
|
2417
|
+
if (!(!i || xr(r))) {
|
|
2418
|
+
var a = K(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
2285
2419
|
if (o && s) return n = r;
|
|
2286
2420
|
}
|
|
2287
2421
|
}), n;
|
|
2288
|
-
},
|
|
2422
|
+
}, sa = function(e) {
|
|
2289
2423
|
function t(e, n) {
|
|
2290
2424
|
return function(r, i, a, o) {
|
|
2291
2425
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -2298,92 +2432,92 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2298
2432
|
};
|
|
2299
2433
|
}
|
|
2300
2434
|
var n = {}, r = e.group;
|
|
2301
|
-
(!r ||
|
|
2302
|
-
},
|
|
2303
|
-
|
|
2304
|
-
},
|
|
2305
|
-
|
|
2306
|
-
},
|
|
2307
|
-
if (
|
|
2308
|
-
}, !0),
|
|
2309
|
-
if (
|
|
2435
|
+
(!r || tr(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;
|
|
2436
|
+
}, ca = function() {
|
|
2437
|
+
!ra && X && G(X, "display", "none");
|
|
2438
|
+
}, la = function() {
|
|
2439
|
+
!ra && X && G(X, "display", "");
|
|
2440
|
+
}, $i && document.addEventListener("click", function(e) {
|
|
2441
|
+
if (Fi) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Fi = !1, !1;
|
|
2442
|
+
}, !0), ua = function(e) {
|
|
2443
|
+
if (Y) {
|
|
2310
2444
|
e = e.touches ? e.touches[0] : e;
|
|
2311
|
-
var t =
|
|
2445
|
+
var t = oa(e.clientX, e.clientY);
|
|
2312
2446
|
if (t) {
|
|
2313
2447
|
var n = {};
|
|
2314
2448
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
2315
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
2449
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[_i]._onDragOver(n);
|
|
2316
2450
|
}
|
|
2317
2451
|
}
|
|
2318
|
-
},
|
|
2319
|
-
|
|
2320
|
-
},
|
|
2321
|
-
constructor:
|
|
2452
|
+
}, da = function(e) {
|
|
2453
|
+
Y && Y.parentNode[_i]._isOutsideThisEl(e.target);
|
|
2454
|
+
}, J.prototype = {
|
|
2455
|
+
constructor: J,
|
|
2322
2456
|
_isOutsideThisEl: function(e) {
|
|
2323
|
-
!this.el.contains(e) && e !== this.el && (
|
|
2457
|
+
!this.el.contains(e) && e !== this.el && (Wi = null);
|
|
2324
2458
|
},
|
|
2325
2459
|
_getDirection: function(e, t) {
|
|
2326
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t,
|
|
2460
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Y) : this.options.direction;
|
|
2327
2461
|
},
|
|
2328
2462
|
_onTapStart: function(e) {
|
|
2329
2463
|
if (e.cancelable) {
|
|
2330
2464
|
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;
|
|
2331
|
-
if (
|
|
2332
|
-
if (
|
|
2465
|
+
if (qr(n), !Y && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && di && s && s.tagName.toUpperCase() === "SELECT") && (s = hr(s, r.draggable, n, !1), !(s && s.animated) && Ti !== s)) {
|
|
2466
|
+
if (Oi = q(s), Ai = q(s, r.draggable), typeof l == "function") {
|
|
2333
2467
|
if (l.call(this, e, s, this)) {
|
|
2334
|
-
|
|
2468
|
+
Lr({
|
|
2335
2469
|
sortable: t,
|
|
2336
2470
|
rootEl: c,
|
|
2337
2471
|
name: "filter",
|
|
2338
2472
|
targetEl: s,
|
|
2339
2473
|
toEl: n,
|
|
2340
2474
|
fromEl: n
|
|
2341
|
-
}),
|
|
2475
|
+
}), Si("filter", t, { evt: e }), i && e.cancelable && e.preventDefault();
|
|
2342
2476
|
return;
|
|
2343
2477
|
}
|
|
2344
2478
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
2345
|
-
if (r =
|
|
2479
|
+
if (r = hr(c, r.trim(), n, !1), r) return Lr({
|
|
2346
2480
|
sortable: t,
|
|
2347
2481
|
rootEl: r,
|
|
2348
2482
|
name: "filter",
|
|
2349
2483
|
targetEl: s,
|
|
2350
2484
|
fromEl: n,
|
|
2351
2485
|
toEl: n
|
|
2352
|
-
}),
|
|
2486
|
+
}), Si("filter", t, { evt: e }), !0;
|
|
2353
2487
|
}), l)) {
|
|
2354
2488
|
i && e.cancelable && e.preventDefault();
|
|
2355
2489
|
return;
|
|
2356
2490
|
}
|
|
2357
|
-
r.handle && !
|
|
2491
|
+
r.handle && !hr(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
|
|
2358
2492
|
}
|
|
2359
2493
|
}
|
|
2360
2494
|
},
|
|
2361
2495
|
_prepareDragStart: function(e, t, n) {
|
|
2362
2496
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
2363
|
-
if (n && !
|
|
2364
|
-
var c =
|
|
2365
|
-
if (
|
|
2366
|
-
target:
|
|
2497
|
+
if (n && !Y && n.parentNode === i) {
|
|
2498
|
+
var c = K(n);
|
|
2499
|
+
if (Z = i, Y = n, Ci = Y.parentNode, wi = Y.nextSibling, Ti = n, Mi = a.group, J.dragged = Y, Li = {
|
|
2500
|
+
target: Y,
|
|
2367
2501
|
clientX: (t || e).clientX,
|
|
2368
2502
|
clientY: (t || e).clientY
|
|
2369
|
-
},
|
|
2370
|
-
if (
|
|
2503
|
+
}, Vi = Li.clientX - c.left, Hi = Li.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Y.style["will-change"] = "all", s = function() {
|
|
2504
|
+
if (Si("delayEnded", r, { evt: e }), J.eventCanceled) {
|
|
2371
2505
|
r._onDrop();
|
|
2372
2506
|
return;
|
|
2373
2507
|
}
|
|
2374
|
-
r._disableDelayedDragEvents(), !
|
|
2508
|
+
r._disableDelayedDragEvents(), !ui && r.nativeDraggable && (Y.draggable = !0), r._triggerDragStart(e, t), Lr({
|
|
2375
2509
|
sortable: r,
|
|
2376
2510
|
name: "choose",
|
|
2377
2511
|
originalEvent: e
|
|
2378
|
-
}),
|
|
2512
|
+
}), W(Y, a.chosenClass, !0);
|
|
2379
2513
|
}, a.ignore.split(",").forEach(function(e) {
|
|
2380
|
-
|
|
2381
|
-
}),
|
|
2382
|
-
if (
|
|
2514
|
+
_r(Y, e.trim(), Br);
|
|
2515
|
+
}), H(o, "dragover", ua), H(o, "mousemove", ua), H(o, "touchmove", ua), H(o, "mouseup", r._onDrop), H(o, "touchend", r._onDrop), H(o, "touchcancel", r._onDrop), ui && this.nativeDraggable && (this.options.touchStartThreshold = 4, Y.draggable = !0), Si("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(li || ci))) {
|
|
2516
|
+
if (J.eventCanceled) {
|
|
2383
2517
|
this._onDrop();
|
|
2384
2518
|
return;
|
|
2385
2519
|
}
|
|
2386
|
-
|
|
2520
|
+
H(o, "mouseup", r._disableDelayedDrag), H(o, "touchend", r._disableDelayedDrag), H(o, "touchcancel", r._disableDelayedDrag), H(o, "mousemove", r._delayedDragTouchMoveHandler), H(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && H(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
|
|
2387
2521
|
} else s();
|
|
2388
2522
|
}
|
|
2389
2523
|
},
|
|
@@ -2392,25 +2526,25 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2392
2526
|
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();
|
|
2393
2527
|
},
|
|
2394
2528
|
_disableDelayedDrag: function() {
|
|
2395
|
-
|
|
2529
|
+
Y && Br(Y), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
2396
2530
|
},
|
|
2397
2531
|
_disableDelayedDragEvents: function() {
|
|
2398
2532
|
var e = this.el.ownerDocument;
|
|
2399
|
-
|
|
2533
|
+
U(e, "mouseup", this._disableDelayedDrag), U(e, "touchend", this._disableDelayedDrag), U(e, "touchcancel", this._disableDelayedDrag), U(e, "mousemove", this._delayedDragTouchMoveHandler), U(e, "touchmove", this._delayedDragTouchMoveHandler), U(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
2400
2534
|
},
|
|
2401
2535
|
_triggerDragStart: function(e, t) {
|
|
2402
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ?
|
|
2536
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? H(document, "pointermove", this._onTouchMove) : t ? H(document, "touchmove", this._onTouchMove) : H(document, "mousemove", this._onTouchMove) : (H(Y, "dragend", this), H(Z, "dragstart", this._onDragStart));
|
|
2403
2537
|
try {
|
|
2404
|
-
document.selection ?
|
|
2538
|
+
document.selection ? Jr(function() {
|
|
2405
2539
|
document.selection.empty();
|
|
2406
2540
|
}) : window.getSelection().removeAllRanges();
|
|
2407
2541
|
} catch {}
|
|
2408
2542
|
},
|
|
2409
2543
|
_dragStarted: function(e, t) {
|
|
2410
|
-
if (
|
|
2411
|
-
|
|
2544
|
+
if (Pi = !1, Z && Y) {
|
|
2545
|
+
Si("dragStarted", this, { evt: t }), this.nativeDraggable && H(document, "dragover", da);
|
|
2412
2546
|
var n = this.options;
|
|
2413
|
-
!e &&
|
|
2547
|
+
!e && W(Y, n.dragClass, !1), W(Y, n.ghostClass, !0), J.active = this, e && this._appendGhost(), Lr({
|
|
2414
2548
|
sortable: this,
|
|
2415
2549
|
name: "start",
|
|
2416
2550
|
originalEvent: t
|
|
@@ -2418,33 +2552,33 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2418
2552
|
} else this._nulling();
|
|
2419
2553
|
},
|
|
2420
2554
|
_emulateDragOver: function() {
|
|
2421
|
-
if (
|
|
2422
|
-
this._lastX =
|
|
2423
|
-
for (var e = document.elementFromPoint(
|
|
2424
|
-
if (
|
|
2425
|
-
if (t[
|
|
2555
|
+
if (Ri) {
|
|
2556
|
+
this._lastX = Ri.clientX, this._lastY = Ri.clientY, ca();
|
|
2557
|
+
for (var e = document.elementFromPoint(Ri.clientX, Ri.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Ri.clientX, Ri.clientY), e !== t);) t = e;
|
|
2558
|
+
if (Y.parentNode[_i]._isOutsideThisEl(e), t) do {
|
|
2559
|
+
if (t[_i]) {
|
|
2426
2560
|
var n = void 0;
|
|
2427
|
-
if (n = t[
|
|
2428
|
-
clientX:
|
|
2429
|
-
clientY:
|
|
2561
|
+
if (n = t[_i]._onDragOver({
|
|
2562
|
+
clientX: Ri.clientX,
|
|
2563
|
+
clientY: Ri.clientY,
|
|
2430
2564
|
target: e,
|
|
2431
2565
|
rootEl: t
|
|
2432
2566
|
}), n && !this.options.dragoverBubble) break;
|
|
2433
2567
|
}
|
|
2434
2568
|
e = t;
|
|
2435
2569
|
} while (t = t.parentNode);
|
|
2436
|
-
|
|
2570
|
+
la();
|
|
2437
2571
|
}
|
|
2438
2572
|
},
|
|
2439
2573
|
_onTouchMove: function(e) {
|
|
2440
|
-
if (
|
|
2441
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a =
|
|
2442
|
-
if (!
|
|
2574
|
+
if (Li) {
|
|
2575
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = X && gr(X, !0), o = X && a && a.a, s = X && a && a.d, c = ea && Yi && Sr(Yi), l = (i.clientX - Li.clientX + r.x) / (o || 1) + (c ? c[0] - Xi[0] : 0) / (o || 1), u = (i.clientY - Li.clientY + r.y) / (s || 1) + (c ? c[1] - Xi[1] : 0) / (s || 1);
|
|
2576
|
+
if (!J.active && !Pi) {
|
|
2443
2577
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
2444
2578
|
this._onDragStart(e, !0);
|
|
2445
2579
|
}
|
|
2446
|
-
if (
|
|
2447
|
-
a ? (a.e += l - (
|
|
2580
|
+
if (X) {
|
|
2581
|
+
a ? (a.e += l - (zi || 0), a.f += u - (Bi || 0)) : a = {
|
|
2448
2582
|
a: 1,
|
|
2449
2583
|
b: 0,
|
|
2450
2584
|
c: 0,
|
|
@@ -2453,39 +2587,39 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2453
2587
|
f: u
|
|
2454
2588
|
};
|
|
2455
2589
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
2456
|
-
|
|
2590
|
+
G(X, "webkitTransform", d), G(X, "mozTransform", d), G(X, "msTransform", d), G(X, "transform", d), zi = l, Bi = u, Ri = i;
|
|
2457
2591
|
}
|
|
2458
2592
|
e.cancelable && e.preventDefault();
|
|
2459
2593
|
}
|
|
2460
2594
|
},
|
|
2461
2595
|
_appendGhost: function() {
|
|
2462
|
-
if (!
|
|
2463
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
2464
|
-
if (
|
|
2465
|
-
for (
|
|
2466
|
-
|
|
2596
|
+
if (!X) {
|
|
2597
|
+
var e = this.options.fallbackOnBody ? document.body : Z, t = K(Y, !0, ea, !0, e), n = this.options;
|
|
2598
|
+
if (ea) {
|
|
2599
|
+
for (Yi = e; G(Yi, "position") === "static" && G(Yi, "transform") === "none" && Yi !== document;) Yi = Yi.parentNode;
|
|
2600
|
+
Yi !== document.body && Yi !== document.documentElement ? (Yi === document && (Yi = vr()), t.top += Yi.scrollTop, t.left += Yi.scrollLeft) : Yi = vr(), Xi = Sr(Yi);
|
|
2467
2601
|
}
|
|
2468
|
-
|
|
2602
|
+
X = Y.cloneNode(!0), W(X, n.ghostClass, !1), W(X, n.fallbackClass, !0), W(X, n.dragClass, !0), G(X, "transition", ""), G(X, "transform", ""), G(X, "box-sizing", "border-box"), G(X, "margin", 0), G(X, "top", t.top), G(X, "left", t.left), G(X, "width", t.width), G(X, "height", t.height), G(X, "opacity", "0.8"), G(X, "position", ea ? "absolute" : "fixed"), G(X, "zIndex", "100000"), G(X, "pointerEvents", "none"), J.ghost = X, e.appendChild(X), G(X, "transform-origin", Vi / parseInt(X.style.width) * 100 + "% " + Hi / parseInt(X.style.height) * 100 + "%");
|
|
2469
2603
|
}
|
|
2470
2604
|
},
|
|
2471
2605
|
_onDragStart: function(e, t) {
|
|
2472
2606
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
2473
|
-
if (
|
|
2607
|
+
if (Si("dragStart", this, { evt: e }), J.eventCanceled) {
|
|
2474
2608
|
this._onDrop();
|
|
2475
2609
|
return;
|
|
2476
2610
|
}
|
|
2477
|
-
|
|
2478
|
-
|
|
2611
|
+
Si("setupClone", this), J.eventCanceled || (Ei = Ar(Y), Ei.draggable = !1, Ei.style["will-change"] = "", this._hideClone(), W(Ei, this.options.chosenClass, !1), J.clone = Ei), n.cloneId = Jr(function() {
|
|
2612
|
+
Si("clone", n), !J.eventCanceled && (n.options.removeCloneOnHide || Z.insertBefore(Ei, Y), n._hideClone(), Lr({
|
|
2479
2613
|
sortable: n,
|
|
2480
2614
|
name: "clone"
|
|
2481
2615
|
}));
|
|
2482
|
-
}), !t &&
|
|
2616
|
+
}), !t && W(Y, i.dragClass, !0), t ? (Fi = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (U(document, "mouseup", n._onDrop), U(document, "touchend", n._onDrop), U(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, Y)), H(document, "drop", n), G(Y, "transform", "translateZ(0)")), Pi = !0, n._dragStartId = Jr(n._dragStarted.bind(n, t, e)), H(document, "selectstart", n), Ui = !0, di && G(document.body, "user-select", "none");
|
|
2483
2617
|
},
|
|
2484
2618
|
_onDragOver: function(e) {
|
|
2485
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c =
|
|
2486
|
-
if (
|
|
2619
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = J.active, l = Mi === s, u = o.sort, d = Ni || c, f, p = this, m = !1;
|
|
2620
|
+
if (Zi) return;
|
|
2487
2621
|
function h(o, s) {
|
|
2488
|
-
|
|
2622
|
+
Si(o, p, er({
|
|
2489
2623
|
evt: e,
|
|
2490
2624
|
isOwner: l,
|
|
2491
2625
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -2497,7 +2631,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2497
2631
|
target: n,
|
|
2498
2632
|
completed: _,
|
|
2499
2633
|
onMove: function(n, i) {
|
|
2500
|
-
return
|
|
2634
|
+
return zr(Z, t, Y, r, n, K(n), e, i);
|
|
2501
2635
|
},
|
|
2502
2636
|
changed: v
|
|
2503
2637
|
}, s));
|
|
@@ -2506,119 +2640,119 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2506
2640
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
2507
2641
|
}
|
|
2508
2642
|
function _(r) {
|
|
2509
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
2643
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (W(Y, Ni ? Ni.options.ghostClass : c.options.ghostClass, !1), W(Y, o.ghostClass, !0)), Ni !== p && p !== J.active ? Ni = p : p === J.active && Ni && (Ni = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
2510
2644
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
2511
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n ===
|
|
2645
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Y && !Y.animated || n === t && !n.animated) && (Wi = null), !o.dragoverBubble && !e.rootEl && n !== document && (Y.parentNode[_i]._isOutsideThisEl(e.target), !r && ua(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
2512
2646
|
}
|
|
2513
2647
|
function v() {
|
|
2514
|
-
|
|
2648
|
+
ki = q(Y), ji = q(Y, o.draggable), Lr({
|
|
2515
2649
|
sortable: p,
|
|
2516
2650
|
name: "change",
|
|
2517
2651
|
toEl: t,
|
|
2518
|
-
newIndex:
|
|
2519
|
-
newDraggableIndex:
|
|
2652
|
+
newIndex: ki,
|
|
2653
|
+
newDraggableIndex: ji,
|
|
2520
2654
|
originalEvent: e
|
|
2521
2655
|
});
|
|
2522
2656
|
}
|
|
2523
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
2524
|
-
if (
|
|
2525
|
-
if (
|
|
2526
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
2527
|
-
if (a) return
|
|
2528
|
-
var y =
|
|
2529
|
-
if (!y ||
|
|
2530
|
-
if (y ===
|
|
2531
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
2532
|
-
} else if (y &&
|
|
2533
|
-
var b =
|
|
2534
|
-
if (b ===
|
|
2535
|
-
if (n = b, i =
|
|
2657
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = hr(n, o.draggable, t, !0), h("dragOver"), J.eventCanceled) return m;
|
|
2658
|
+
if (Y.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
2659
|
+
if (Fi = !1, c && !o.disabled && (l ? u || (a = Ci !== Z) : Ni === this || (this.lastPutMode = Mi.checkPull(this, c, Y, e)) && s.checkPut(this, c, Y, e))) {
|
|
2660
|
+
if (f = this._getDirection(e, n) === "vertical", r = K(Y), h("dragOverValid"), J.eventCanceled) return m;
|
|
2661
|
+
if (a) return Ci = Z, g(), this._hideClone(), h("revert"), J.eventCanceled || (wi ? Z.insertBefore(Y, wi) : Z.appendChild(Y)), _(!0);
|
|
2662
|
+
var y = xr(t, o.draggable);
|
|
2663
|
+
if (!y || Ur(e, f, this) && !y.animated) {
|
|
2664
|
+
if (y === Y) return _(!1);
|
|
2665
|
+
if (y && t === e.target && (n = y), n && (i = K(n)), zr(Z, t, Y, r, n, i, e, !!n) !== !1) return g(), t.appendChild(Y), Ci = t, v(), _(!0);
|
|
2666
|
+
} else if (y && Hr(e, f, this)) {
|
|
2667
|
+
var b = br(t, 0, o, !0);
|
|
2668
|
+
if (b === Y) return _(!1);
|
|
2669
|
+
if (n = b, i = K(n), zr(Z, t, Y, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Y, b), Ci = t, v(), _(!0);
|
|
2536
2670
|
} else if (n.parentNode === t) {
|
|
2537
|
-
i =
|
|
2538
|
-
var x = 0, S, C =
|
|
2539
|
-
|
|
2540
|
-
var
|
|
2671
|
+
i = K(n);
|
|
2672
|
+
var x = 0, S, C = Y.parentNode !== t, ee = !aa(Y.animated && Y.toRect || r, n.animated && n.toRect || i, f), w = f ? "top" : "left", T = yr(n, "top", "top") || yr(Y, "top", "top"), E = T ? T.scrollTop : void 0;
|
|
2673
|
+
Wi !== n && (S = i[w], Ki = !1, qi = !ee && o.invertSwap || C), x = Wr(e, n, i, f, ee ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, qi, Wi === n);
|
|
2674
|
+
var D;
|
|
2541
2675
|
if (x !== 0) {
|
|
2542
|
-
var
|
|
2676
|
+
var O = q(Y);
|
|
2543
2677
|
do
|
|
2544
|
-
|
|
2545
|
-
while (
|
|
2678
|
+
O -= x, D = Ci.children[O];
|
|
2679
|
+
while (D && (G(D, "display") === "none" || D === X));
|
|
2546
2680
|
}
|
|
2547
|
-
if (x === 0 ||
|
|
2548
|
-
|
|
2549
|
-
var
|
|
2550
|
-
|
|
2551
|
-
var ne =
|
|
2552
|
-
if (ne !== !1) return (ne === 1 || ne === -1) && (
|
|
2681
|
+
if (x === 0 || D === n) return _(!1);
|
|
2682
|
+
Wi = n, Gi = x;
|
|
2683
|
+
var te = n.nextElementSibling, k = !1;
|
|
2684
|
+
k = x === 1;
|
|
2685
|
+
var ne = zr(Z, t, Y, r, n, i, e, k);
|
|
2686
|
+
if (ne !== !1) return (ne === 1 || ne === -1) && (k = ne === 1), Zi = !0, setTimeout(Vr, 30), g(), k && !te ? t.appendChild(Y) : n.parentNode.insertBefore(Y, k ? te : n), T && kr(T, 0, E - T.scrollTop), Ci = Y.parentNode, S !== void 0 && !qi && (Ji = Math.abs(S - K(n)[w])), v(), _(!0);
|
|
2553
2687
|
}
|
|
2554
|
-
if (t.contains(
|
|
2688
|
+
if (t.contains(Y)) return _(!1);
|
|
2555
2689
|
}
|
|
2556
2690
|
return !1;
|
|
2557
2691
|
},
|
|
2558
2692
|
_ignoreWhileAnimating: null,
|
|
2559
2693
|
_offMoveEvents: function() {
|
|
2560
|
-
|
|
2694
|
+
U(document, "mousemove", this._onTouchMove), U(document, "touchmove", this._onTouchMove), U(document, "pointermove", this._onTouchMove), U(document, "dragover", ua), U(document, "mousemove", ua), U(document, "touchmove", ua);
|
|
2561
2695
|
},
|
|
2562
2696
|
_offUpEvents: function() {
|
|
2563
2697
|
var e = this.el.ownerDocument;
|
|
2564
|
-
|
|
2698
|
+
U(e, "mouseup", this._onDrop), U(e, "touchend", this._onDrop), U(e, "pointerup", this._onDrop), U(e, "touchcancel", this._onDrop), U(document, "selectstart", this);
|
|
2565
2699
|
},
|
|
2566
2700
|
_onDrop: function(e) {
|
|
2567
2701
|
var t = this.el, n = this.options;
|
|
2568
|
-
if (
|
|
2702
|
+
if (ki = q(Y), ji = q(Y, n.draggable), Si("drop", this, { evt: e }), Ci = Y && Y.parentNode, ki = q(Y), ji = q(Y, n.draggable), J.eventCanceled) {
|
|
2569
2703
|
this._nulling();
|
|
2570
2704
|
return;
|
|
2571
2705
|
}
|
|
2572
|
-
|
|
2706
|
+
Pi = !1, qi = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Yr(this.cloneId), Yr(this._dragStartId), this.nativeDraggable && (U(document, "drop", this), U(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), di && G(document.body, "user-select", ""), G(Y, "transform", ""), e && (Ui && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), X && X.parentNode && X.parentNode.removeChild(X), (Z === Ci || Ni && Ni.lastPutMode !== "clone") && Ei && Ei.parentNode && Ei.parentNode.removeChild(Ei), Y && (this.nativeDraggable && U(Y, "dragend", this), Br(Y), Y.style["will-change"] = "", Ui && !Pi && W(Y, Ni ? Ni.options.ghostClass : this.options.ghostClass, !1), W(Y, this.options.chosenClass, !1), Lr({
|
|
2573
2707
|
sortable: this,
|
|
2574
2708
|
name: "unchoose",
|
|
2575
|
-
toEl:
|
|
2709
|
+
toEl: Ci,
|
|
2576
2710
|
newIndex: null,
|
|
2577
2711
|
newDraggableIndex: null,
|
|
2578
2712
|
originalEvent: e
|
|
2579
|
-
}),
|
|
2713
|
+
}), Z === Ci ? ki !== Oi && ki >= 0 && (Lr({
|
|
2580
2714
|
sortable: this,
|
|
2581
2715
|
name: "update",
|
|
2582
|
-
toEl:
|
|
2716
|
+
toEl: Ci,
|
|
2583
2717
|
originalEvent: e
|
|
2584
|
-
}),
|
|
2718
|
+
}), Lr({
|
|
2585
2719
|
sortable: this,
|
|
2586
2720
|
name: "sort",
|
|
2587
|
-
toEl:
|
|
2721
|
+
toEl: Ci,
|
|
2588
2722
|
originalEvent: e
|
|
2589
|
-
})) : (
|
|
2590
|
-
rootEl:
|
|
2723
|
+
})) : (ki >= 0 && (Lr({
|
|
2724
|
+
rootEl: Ci,
|
|
2591
2725
|
name: "add",
|
|
2592
|
-
toEl:
|
|
2593
|
-
fromEl:
|
|
2726
|
+
toEl: Ci,
|
|
2727
|
+
fromEl: Z,
|
|
2594
2728
|
originalEvent: e
|
|
2595
|
-
}),
|
|
2729
|
+
}), Lr({
|
|
2596
2730
|
sortable: this,
|
|
2597
2731
|
name: "remove",
|
|
2598
|
-
toEl:
|
|
2732
|
+
toEl: Ci,
|
|
2599
2733
|
originalEvent: e
|
|
2600
|
-
}),
|
|
2601
|
-
rootEl:
|
|
2734
|
+
}), Lr({
|
|
2735
|
+
rootEl: Ci,
|
|
2602
2736
|
name: "sort",
|
|
2603
|
-
toEl:
|
|
2604
|
-
fromEl:
|
|
2737
|
+
toEl: Ci,
|
|
2738
|
+
fromEl: Z,
|
|
2605
2739
|
originalEvent: e
|
|
2606
|
-
}),
|
|
2740
|
+
}), Lr({
|
|
2607
2741
|
sortable: this,
|
|
2608
2742
|
name: "sort",
|
|
2609
|
-
toEl:
|
|
2743
|
+
toEl: Ci,
|
|
2610
2744
|
originalEvent: e
|
|
2611
|
-
})),
|
|
2745
|
+
})), Ni && Ni.save()), J.active && ((ki == null || ki === -1) && (ki = Oi, ji = Ai), Lr({
|
|
2612
2746
|
sortable: this,
|
|
2613
2747
|
name: "end",
|
|
2614
|
-
toEl:
|
|
2748
|
+
toEl: Ci,
|
|
2615
2749
|
originalEvent: e
|
|
2616
2750
|
}), this.save()))), this._nulling();
|
|
2617
2751
|
},
|
|
2618
2752
|
_nulling: function() {
|
|
2619
|
-
|
|
2753
|
+
Si("nulling", this), Z = Y = Ci = X = wi = Ei = Ti = Di = Li = Ri = Ui = ki = ji = Oi = Ai = Wi = Gi = Ni = Mi = J.dragged = J.ghost = J.clone = J.active = null, Qi.forEach(function(e) {
|
|
2620
2754
|
e.checked = !0;
|
|
2621
|
-
}),
|
|
2755
|
+
}), Qi.length = zi = Bi = 0;
|
|
2622
2756
|
},
|
|
2623
2757
|
handleEvent: function(e) {
|
|
2624
2758
|
switch (e.type) {
|
|
@@ -2628,7 +2762,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2628
2762
|
break;
|
|
2629
2763
|
case "dragenter":
|
|
2630
2764
|
case "dragover":
|
|
2631
|
-
|
|
2765
|
+
Y && (this._onDragOver(e), Rr(e));
|
|
2632
2766
|
break;
|
|
2633
2767
|
case "selectstart":
|
|
2634
2768
|
e.preventDefault();
|
|
@@ -2636,14 +2770,14 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2636
2770
|
}
|
|
2637
2771
|
},
|
|
2638
2772
|
toArray: function() {
|
|
2639
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
2773
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], hr(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || Kr(t));
|
|
2640
2774
|
return e;
|
|
2641
2775
|
},
|
|
2642
2776
|
sort: function(e, t) {
|
|
2643
2777
|
var n = {}, r = this.el;
|
|
2644
2778
|
this.toArray().forEach(function(e, t) {
|
|
2645
2779
|
var i = r.children[t];
|
|
2646
|
-
|
|
2780
|
+
hr(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
2647
2781
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
2648
2782
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
2649
2783
|
}), t && this.animateAll();
|
|
@@ -2653,25 +2787,25 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2653
2787
|
e && e.set && e.set(this);
|
|
2654
2788
|
},
|
|
2655
2789
|
closest: function(e, t) {
|
|
2656
|
-
return
|
|
2790
|
+
return hr(e, t || this.options.draggable, this.el, !1);
|
|
2657
2791
|
},
|
|
2658
2792
|
option: function(e, t) {
|
|
2659
2793
|
var n = this.options;
|
|
2660
2794
|
if (t === void 0) return n[e];
|
|
2661
|
-
var r =
|
|
2662
|
-
r === void 0 ? n[e] = t : n[e] = r, e === "group" &&
|
|
2795
|
+
var r = bi.modifyOption(this, e, t);
|
|
2796
|
+
r === void 0 ? n[e] = t : n[e] = r, e === "group" && sa(n);
|
|
2663
2797
|
},
|
|
2664
2798
|
destroy: function() {
|
|
2665
|
-
|
|
2799
|
+
Si("destroy", this);
|
|
2666
2800
|
var e = this.el;
|
|
2667
|
-
e[
|
|
2801
|
+
e[_i] = null, U(e, "mousedown", this._onTapStart), U(e, "touchstart", this._onTapStart), U(e, "pointerdown", this._onTapStart), this.nativeDraggable && (U(e, "dragover", this), U(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
2668
2802
|
e.removeAttribute("draggable");
|
|
2669
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
2803
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Ii.splice(Ii.indexOf(this.el), 1), this.el = e = null;
|
|
2670
2804
|
},
|
|
2671
2805
|
_hideClone: function() {
|
|
2672
|
-
if (!
|
|
2673
|
-
if (
|
|
2674
|
-
|
|
2806
|
+
if (!Di) {
|
|
2807
|
+
if (Si("hideClone", this), J.eventCanceled) return;
|
|
2808
|
+
G(Ei, "display", "none"), this.options.removeCloneOnHide && Ei.parentNode && Ei.parentNode.removeChild(Ei), Di = !0;
|
|
2675
2809
|
}
|
|
2676
2810
|
},
|
|
2677
2811
|
_showClone: function(e) {
|
|
@@ -2679,60 +2813,60 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2679
2813
|
this._hideClone();
|
|
2680
2814
|
return;
|
|
2681
2815
|
}
|
|
2682
|
-
if (
|
|
2683
|
-
if (
|
|
2684
|
-
|
|
2816
|
+
if (Di) {
|
|
2817
|
+
if (Si("showClone", this), J.eventCanceled) return;
|
|
2818
|
+
Y.parentNode == Z && !this.options.group.revertClone ? Z.insertBefore(Ei, Y) : wi ? Z.insertBefore(Ei, wi) : Z.appendChild(Ei), this.options.group.revertClone && this.animate(Y, Ei), G(Ei, "display", ""), Di = !1;
|
|
2685
2819
|
}
|
|
2686
2820
|
}
|
|
2687
|
-
},
|
|
2688
|
-
(
|
|
2689
|
-
}),
|
|
2690
|
-
on:
|
|
2691
|
-
off:
|
|
2692
|
-
css:
|
|
2693
|
-
find:
|
|
2821
|
+
}, $i && H(document, "touchmove", function(e) {
|
|
2822
|
+
(J.active || Pi) && e.cancelable && e.preventDefault();
|
|
2823
|
+
}), J.utils = {
|
|
2824
|
+
on: H,
|
|
2825
|
+
off: U,
|
|
2826
|
+
css: G,
|
|
2827
|
+
find: _r,
|
|
2694
2828
|
is: function(e, t) {
|
|
2695
|
-
return !!
|
|
2829
|
+
return !!hr(e, t, e, !1);
|
|
2696
2830
|
},
|
|
2697
|
-
extend:
|
|
2698
|
-
throttle:
|
|
2699
|
-
closest:
|
|
2700
|
-
toggleClass:
|
|
2701
|
-
clone:
|
|
2702
|
-
index:
|
|
2703
|
-
nextTick:
|
|
2704
|
-
cancelNextTick:
|
|
2705
|
-
detectDirection:
|
|
2706
|
-
getChild:
|
|
2707
|
-
},
|
|
2708
|
-
return e[
|
|
2709
|
-
},
|
|
2831
|
+
extend: Tr,
|
|
2832
|
+
throttle: Dr,
|
|
2833
|
+
closest: hr,
|
|
2834
|
+
toggleClass: W,
|
|
2835
|
+
clone: Ar,
|
|
2836
|
+
index: q,
|
|
2837
|
+
nextTick: Jr,
|
|
2838
|
+
cancelNextTick: Yr,
|
|
2839
|
+
detectDirection: ia,
|
|
2840
|
+
getChild: br
|
|
2841
|
+
}, J.get = function(e) {
|
|
2842
|
+
return e[_i];
|
|
2843
|
+
}, J.mount = function() {
|
|
2710
2844
|
var e = [...arguments];
|
|
2711
2845
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
2712
2846
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
2713
|
-
e.utils && (
|
|
2847
|
+
e.utils && (J.utils = er(er({}, J.utils), e.utils)), bi.mount(e);
|
|
2714
2848
|
});
|
|
2715
|
-
},
|
|
2716
|
-
return new
|
|
2717
|
-
},
|
|
2849
|
+
}, J.create = function(e, t) {
|
|
2850
|
+
return new J(e, t);
|
|
2851
|
+
}, J.version = si, fa = [], ha = !1, ba = Dr(function(e, t, n, r) {
|
|
2718
2852
|
if (t.scroll) {
|
|
2719
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
2720
|
-
|
|
2721
|
-
var d = 0, f =
|
|
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 = vr(), l = !1, u;
|
|
2854
|
+
ma !== n && (ma = n, Zr(), pa = t.scroll, u = t.scrollFn, pa === !0 && (pa = wr(n, !0)));
|
|
2855
|
+
var d = 0, f = pa;
|
|
2722
2856
|
do {
|
|
2723
|
-
var p = f, m =
|
|
2724
|
-
p === c ? (x = y < C && (
|
|
2725
|
-
var
|
|
2726
|
-
if (!
|
|
2727
|
-
(
|
|
2728
|
-
r && this.layer === 0 &&
|
|
2729
|
-
var t =
|
|
2730
|
-
typeof u == "function" && u.call(
|
|
2857
|
+
var p = f, m = K(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 = G(p), T = p.scrollLeft, E = p.scrollTop;
|
|
2858
|
+
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), O = S && (Math.abs(g - a) <= o && E + b < ee) - (Math.abs(h - a) <= o && !!E);
|
|
2860
|
+
if (!fa[d]) for (var te = 0; te <= d; te++) fa[te] || (fa[te] = {});
|
|
2861
|
+
(fa[d].vx != D || fa[d].vy != O || fa[d].el !== p) && (fa[d].el = p, fa[d].vx = D, fa[d].vy = O, clearInterval(fa[d].pid), (D != 0 || O != 0) && (l = !0, fa[d].pid = setInterval(function() {
|
|
2862
|
+
r && this.layer === 0 && J.active._onTouchMove(va);
|
|
2863
|
+
var t = fa[this.layer].vy ? fa[this.layer].vy * s : 0, n = fa[this.layer].vx ? fa[this.layer].vx * s : 0;
|
|
2864
|
+
typeof u == "function" && u.call(J.dragged.parentNode[_i], n, t, e, va, fa[this.layer].el) !== "continue" || kr(fa[this.layer].el, n, t);
|
|
2731
2865
|
}.bind({ layer: d }), 24))), d++;
|
|
2732
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
2733
|
-
|
|
2866
|
+
} while (t.bubbleScroll && f !== c && (f = wr(f, !1)));
|
|
2867
|
+
ha = l;
|
|
2734
2868
|
}
|
|
2735
|
-
}, 30),
|
|
2869
|
+
}, 30), xa = function(e) {
|
|
2736
2870
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
2737
2871
|
if (t) {
|
|
2738
2872
|
var c = n || i;
|
|
@@ -2743,7 +2877,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2743
2877
|
putSortable: n
|
|
2744
2878
|
}));
|
|
2745
2879
|
}
|
|
2746
|
-
},
|
|
2880
|
+
}, $r.prototype = {
|
|
2747
2881
|
startIndex: null,
|
|
2748
2882
|
dragStart: function(e) {
|
|
2749
2883
|
this.startIndex = e.oldDraggableIndex;
|
|
@@ -2751,20 +2885,20 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
2751
2885
|
onSpill: function(e) {
|
|
2752
2886
|
var t = e.dragEl, n = e.putSortable;
|
|
2753
2887
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
2754
|
-
var r =
|
|
2888
|
+
var r = br(this.sortable.el, this.startIndex, this.options);
|
|
2755
2889
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
2756
2890
|
},
|
|
2757
|
-
drop:
|
|
2758
|
-
},
|
|
2891
|
+
drop: xa
|
|
2892
|
+
}, rr($r, { pluginName: "revertOnSpill" }), ei.prototype = {
|
|
2759
2893
|
onSpill: function(e) {
|
|
2760
2894
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
2761
2895
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
2762
2896
|
},
|
|
2763
|
-
drop:
|
|
2764
|
-
},
|
|
2765
|
-
})),
|
|
2897
|
+
drop: xa
|
|
2898
|
+
}, rr(ei, { pluginName: "removeOnSpill" }), Q = [], Ca = [], Ea = !1, Da = !1, Oa = !1, J.mount(new Xr()), J.mount(ei, $r);
|
|
2899
|
+
})), Ma = /* @__PURE__ */ at(((e, t) => {
|
|
2766
2900
|
(function(n, r) {
|
|
2767
|
-
typeof e == "object" && typeof t == "object" ? t.exports = r(ut("vue"), (
|
|
2901
|
+
typeof e == "object" && typeof t == "object" ? t.exports = r(ut("vue"), (ja(), lt(Qn))) : typeof define == "function" && define.amd ? define([, "sortablejs"], r) : typeof e == "object" ? e.vuedraggable = r(ut("vue"), (ja(), lt(Qn))) : n.vuedraggable = r(n.Vue, n.Sortable);
|
|
2768
2902
|
})(typeof self < "u" ? self : e, function(e, t) {
|
|
2769
2903
|
return (function(e) {
|
|
2770
2904
|
var t = {};
|
|
@@ -3184,18 +3318,18 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3184
3318
|
if (C === null || (S.push(C), !h)) break;
|
|
3185
3319
|
String(C[0]) === "" && (c.lastIndex = l(p, o(c.lastIndex), x));
|
|
3186
3320
|
}
|
|
3187
|
-
for (var
|
|
3188
|
-
C = S[
|
|
3189
|
-
for (var
|
|
3190
|
-
var
|
|
3321
|
+
for (var ee = "", w = 0, T = 0; T < S.length; T++) {
|
|
3322
|
+
C = S[T];
|
|
3323
|
+
for (var E = String(C[0]), D = d(f(s(C.index), p.length), 0), O = [], te = 1; te < C.length; te++) O.push(g(C[te]));
|
|
3324
|
+
var k = C.groups;
|
|
3191
3325
|
if (m) {
|
|
3192
|
-
var ne = [
|
|
3193
|
-
|
|
3326
|
+
var ne = [E].concat(O, D, p);
|
|
3327
|
+
k !== void 0 && ne.push(k);
|
|
3194
3328
|
var re = String(r.apply(void 0, ne));
|
|
3195
|
-
} else re = b(
|
|
3196
|
-
|
|
3329
|
+
} else re = b(E, p, D, O, k, r);
|
|
3330
|
+
D >= w && (ee += p.slice(w, D) + re, w = D + E.length);
|
|
3197
3331
|
}
|
|
3198
|
-
return
|
|
3332
|
+
return ee + p.slice(w);
|
|
3199
3333
|
}];
|
|
3200
3334
|
function b(e, n, r, i, o, s) {
|
|
3201
3335
|
var c = r + e.length, l = i.length, u = h;
|
|
@@ -3408,8 +3542,8 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3408
3542
|
e.exports = function(e, t, n, u, p, x, S) {
|
|
3409
3543
|
i(n, t, u);
|
|
3410
3544
|
var C = function(e) {
|
|
3411
|
-
if (e === p &&
|
|
3412
|
-
if (!h && e in
|
|
3545
|
+
if (e === p && D) return D;
|
|
3546
|
+
if (!h && e in T) return T[e];
|
|
3413
3547
|
switch (e) {
|
|
3414
3548
|
case _: return function() {
|
|
3415
3549
|
return new n(this, e);
|
|
@@ -3424,20 +3558,20 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3424
3558
|
return function() {
|
|
3425
3559
|
return new n(this);
|
|
3426
3560
|
};
|
|
3427
|
-
},
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3430
|
-
}), (!d || S) &&
|
|
3561
|
+
}, ee = t + " Iterator", w = !1, T = e.prototype, E = T[g] || T["@@iterator"] || p && T[p], D = !h && E || C(p), O = t == "Array" && T.entries || E, te, k, ne;
|
|
3562
|
+
if (O && (te = a(O.call(new e())), m !== Object.prototype && te.next && (!d && a(te) !== m && (o ? o(te, m) : typeof te[g] != "function" && c(te, g, b)), s(te, ee, !0, !0), d && (f[ee] = b))), p == v && E && E.name !== v && (w = !0, D = function() {
|
|
3563
|
+
return E.call(this);
|
|
3564
|
+
}), (!d || S) && T[g] !== D && c(T, g, D), f[t] = D, p) if (k = {
|
|
3431
3565
|
values: C(v),
|
|
3432
|
-
keys: x ?
|
|
3566
|
+
keys: x ? D : C(_),
|
|
3433
3567
|
entries: C(y)
|
|
3434
|
-
}, S) for (ne in
|
|
3568
|
+
}, S) for (ne in k) (h || w || !(ne in T)) && l(T, ne, k[ne]);
|
|
3435
3569
|
else r({
|
|
3436
3570
|
target: t,
|
|
3437
3571
|
proto: !0,
|
|
3438
|
-
forced: h ||
|
|
3439
|
-
},
|
|
3440
|
-
return
|
|
3572
|
+
forced: h || w
|
|
3573
|
+
}, k);
|
|
3574
|
+
return k;
|
|
3441
3575
|
};
|
|
3442
3576
|
}),
|
|
3443
3577
|
"7f9a": (function(e, t, n) {
|
|
@@ -3651,103 +3785,103 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3651
3785
|
} });
|
|
3652
3786
|
}),
|
|
3653
3787
|
a4d3: (function(e, t, n) {
|
|
3654
|
-
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"),
|
|
3655
|
-
return y(
|
|
3656
|
-
return
|
|
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"), O = n("5692"), te = n("f772"), k = n("d012"), ne = n("90e3"), re = n("b622"), ie = n("e538"), ae = n("746f"), A = n("d44e"), oe = n("69f3"), se = n("b727").forEach, j = te("hidden"), M = "Symbol", ce = "prototype", N = re("toPrimitive"), le = oe.set, P = oe.getterFor(M), ue = Object[ce], F = i.Symbol, de = a("JSON", "stringify"), fe = ee.f, I = w.f, pe = S.f, me = T.f, he = O("symbols"), L = O("op-symbols"), R = O("string-to-symbol-registry"), z = O("symbol-to-string-registry"), ge = O("wks"), _e = i.QObject, ve = !_e || !_e[ce] || !_e[ce].findChild, ye = s && u(function() {
|
|
3789
|
+
return y(I({}, "a", { get: function() {
|
|
3790
|
+
return I(this, "a", { value: 7 }).a;
|
|
3657
3791
|
} })).a != 7;
|
|
3658
3792
|
}) ? function(e, t, n) {
|
|
3659
|
-
var r =
|
|
3660
|
-
r && delete
|
|
3661
|
-
} :
|
|
3662
|
-
var n =
|
|
3793
|
+
var r = fe(ue, t);
|
|
3794
|
+
r && delete ue[t], I(e, t, n), r && e !== ue && I(ue, t, r);
|
|
3795
|
+
} : I, B = function(e, t) {
|
|
3796
|
+
var n = he[e] = y(F[ce]);
|
|
3663
3797
|
return le(n, {
|
|
3664
|
-
type:
|
|
3798
|
+
type: M,
|
|
3665
3799
|
tag: e,
|
|
3666
3800
|
description: t
|
|
3667
3801
|
}), s || (n.description = t), n;
|
|
3668
|
-
},
|
|
3802
|
+
}, be = l ? function(e) {
|
|
3669
3803
|
return typeof e == "symbol";
|
|
3670
3804
|
} : function(e) {
|
|
3671
|
-
return Object(e) instanceof
|
|
3672
|
-
},
|
|
3673
|
-
e ===
|
|
3805
|
+
return Object(e) instanceof F;
|
|
3806
|
+
}, V = function(e, t, n) {
|
|
3807
|
+
e === ue && V(L, t, n), m(e);
|
|
3674
3808
|
var r = _(t, !0);
|
|
3675
|
-
return m(n), d(
|
|
3676
|
-
},
|
|
3809
|
+
return m(n), d(he, r) ? (n.enumerable ? (d(e, j) && e[j][r] && (e[j][r] = !1), n = y(n, { enumerable: v(0, !1) })) : (d(e, j) || I(e, j, v(1, {})), e[j][r] = !0), ye(e, r, n)) : I(e, r, n);
|
|
3810
|
+
}, xe = function(e, t) {
|
|
3677
3811
|
m(e);
|
|
3678
3812
|
var n = g(t);
|
|
3679
|
-
return
|
|
3680
|
-
(!s ||
|
|
3813
|
+
return se(b(n).concat(Ee(n)), function(t) {
|
|
3814
|
+
(!s || Ce.call(n, t)) && V(e, t, n[t]);
|
|
3681
3815
|
}), e;
|
|
3816
|
+
}, Se = function(e, t) {
|
|
3817
|
+
return t === void 0 ? y(e) : xe(y(e), t);
|
|
3818
|
+
}, Ce = function(e) {
|
|
3819
|
+
var t = _(e, !0), n = me.call(this, t);
|
|
3820
|
+
return this === ue && d(he, t) && !d(L, t) ? !1 : n || !d(this, t) || !d(he, t) || d(this, j) && this[j][t] ? n : !0;
|
|
3682
3821
|
}, we = function(e, t) {
|
|
3683
|
-
return t === void 0 ? y(e) : Ce(y(e), t);
|
|
3684
|
-
}, Te = function(e) {
|
|
3685
|
-
var t = _(e, !0), n = F.call(this, t);
|
|
3686
|
-
return this === de && d(I, t) && !d(L, t) ? !1 : n || !d(this, t) || !d(I, t) || d(this, M) && this[M][t] ? n : !0;
|
|
3687
|
-
}, Ee = function(e, t) {
|
|
3688
3822
|
var n = g(e), r = _(t, !0);
|
|
3689
|
-
if (!(n ===
|
|
3690
|
-
var i =
|
|
3691
|
-
return i && d(
|
|
3823
|
+
if (!(n === ue && d(he, r) && !d(L, r))) {
|
|
3824
|
+
var i = fe(n, r);
|
|
3825
|
+
return i && d(he, r) && !(d(n, j) && n[j][r]) && (i.enumerable = !0), i;
|
|
3692
3826
|
}
|
|
3693
|
-
},
|
|
3694
|
-
var t =
|
|
3695
|
-
return
|
|
3696
|
-
!d(
|
|
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);
|
|
3697
3831
|
}), n;
|
|
3698
|
-
},
|
|
3699
|
-
var t = e ===
|
|
3700
|
-
return
|
|
3701
|
-
d(
|
|
3832
|
+
}, Ee = function(e) {
|
|
3833
|
+
var t = e === ue, n = pe(t ? L : g(e)), r = [];
|
|
3834
|
+
return se(n, function(e) {
|
|
3835
|
+
d(he, e) && (!t || d(ue, e)) && r.push(he[e]);
|
|
3702
3836
|
}), r;
|
|
3703
3837
|
};
|
|
3704
|
-
c || (
|
|
3705
|
-
if (this instanceof
|
|
3838
|
+
c || (F = function() {
|
|
3839
|
+
if (this instanceof F) throw TypeError("Symbol is not a constructor");
|
|
3706
3840
|
var e = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), t = ne(e), n = function(e) {
|
|
3707
|
-
this ===
|
|
3841
|
+
this === ue && n.call(L, e), d(this, j) && d(this[j], t) && (this[j][t] = !1), ye(this, t, v(1, e));
|
|
3708
3842
|
};
|
|
3709
|
-
return s &&
|
|
3843
|
+
return s && ve && ye(ue, t, {
|
|
3710
3844
|
configurable: !0,
|
|
3711
3845
|
set: n
|
|
3712
|
-
}),
|
|
3713
|
-
},
|
|
3714
|
-
return
|
|
3715
|
-
}),
|
|
3716
|
-
return
|
|
3717
|
-
}),
|
|
3718
|
-
return
|
|
3719
|
-
}, s && (
|
|
3846
|
+
}), B(t, e);
|
|
3847
|
+
}, D(F[ce], "toString", function() {
|
|
3848
|
+
return P(this).tag;
|
|
3849
|
+
}), D(F, "withoutSetter", function(e) {
|
|
3850
|
+
return B(ne(e), e);
|
|
3851
|
+
}), T.f = Ce, w.f = V, ee.f = we, x.f = S.f = Te, C.f = Ee, ie.f = function(e) {
|
|
3852
|
+
return B(re(e), e);
|
|
3853
|
+
}, s && (I(F[ce], "description", {
|
|
3720
3854
|
configurable: !0,
|
|
3721
3855
|
get: function() {
|
|
3722
|
-
return
|
|
3856
|
+
return P(this).description;
|
|
3723
3857
|
}
|
|
3724
|
-
}), o ||
|
|
3858
|
+
}), o || D(ue, "propertyIsEnumerable", Ce, { unsafe: !0 }))), r({
|
|
3725
3859
|
global: !0,
|
|
3726
3860
|
wrap: !0,
|
|
3727
3861
|
forced: !c,
|
|
3728
3862
|
sham: !c
|
|
3729
|
-
}, { Symbol:
|
|
3730
|
-
|
|
3863
|
+
}, { Symbol: F }), se(b(ge), function(e) {
|
|
3864
|
+
ae(e);
|
|
3731
3865
|
}), r({
|
|
3732
|
-
target:
|
|
3866
|
+
target: M,
|
|
3733
3867
|
stat: !0,
|
|
3734
3868
|
forced: !c
|
|
3735
3869
|
}, {
|
|
3736
3870
|
for: function(e) {
|
|
3737
3871
|
var t = String(e);
|
|
3738
|
-
if (d(
|
|
3739
|
-
var n =
|
|
3740
|
-
return
|
|
3872
|
+
if (d(R, t)) return R[t];
|
|
3873
|
+
var n = F(t);
|
|
3874
|
+
return R[t] = n, z[n] = t, n;
|
|
3741
3875
|
},
|
|
3742
3876
|
keyFor: function(e) {
|
|
3743
|
-
if (!
|
|
3744
|
-
if (d(
|
|
3877
|
+
if (!be(e)) throw TypeError(e + " is not a symbol");
|
|
3878
|
+
if (d(z, e)) return z[e];
|
|
3745
3879
|
},
|
|
3746
3880
|
useSetter: function() {
|
|
3747
|
-
|
|
3881
|
+
ve = !0;
|
|
3748
3882
|
},
|
|
3749
3883
|
useSimple: function() {
|
|
3750
|
-
|
|
3884
|
+
ve = !1;
|
|
3751
3885
|
}
|
|
3752
3886
|
}), r({
|
|
3753
3887
|
target: "Object",
|
|
@@ -3755,17 +3889,17 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3755
3889
|
forced: !c,
|
|
3756
3890
|
sham: !s
|
|
3757
3891
|
}, {
|
|
3758
|
-
create:
|
|
3759
|
-
defineProperty:
|
|
3760
|
-
defineProperties:
|
|
3761
|
-
getOwnPropertyDescriptor:
|
|
3892
|
+
create: Se,
|
|
3893
|
+
defineProperty: V,
|
|
3894
|
+
defineProperties: xe,
|
|
3895
|
+
getOwnPropertyDescriptor: we
|
|
3762
3896
|
}), r({
|
|
3763
3897
|
target: "Object",
|
|
3764
3898
|
stat: !0,
|
|
3765
3899
|
forced: !c
|
|
3766
3900
|
}, {
|
|
3767
|
-
getOwnPropertyNames:
|
|
3768
|
-
getOwnPropertySymbols:
|
|
3901
|
+
getOwnPropertyNames: Te,
|
|
3902
|
+
getOwnPropertySymbols: Ee
|
|
3769
3903
|
}), r({
|
|
3770
3904
|
target: "Object",
|
|
3771
3905
|
stat: !0,
|
|
@@ -3774,19 +3908,19 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3774
3908
|
})
|
|
3775
3909
|
}, { getOwnPropertySymbols: function(e) {
|
|
3776
3910
|
return C.f(h(e));
|
|
3777
|
-
} }),
|
|
3911
|
+
} }), de && r({
|
|
3778
3912
|
target: "JSON",
|
|
3779
3913
|
stat: !0,
|
|
3780
3914
|
forced: !c || u(function() {
|
|
3781
|
-
var e =
|
|
3782
|
-
return
|
|
3915
|
+
var e = F();
|
|
3916
|
+
return de([e]) != "[null]" || de({ a: e }) != "{}" || de(Object(e)) != "{}";
|
|
3783
3917
|
})
|
|
3784
3918
|
}, { stringify: function(e, t, n) {
|
|
3785
3919
|
for (var r = [e], i = 1, a; arguments.length > i;) r.push(arguments[i++]);
|
|
3786
|
-
if (a = t, !(!p(t) && e === void 0 ||
|
|
3787
|
-
if (typeof a == "function" && (t = a.call(this, e, t)), !
|
|
3788
|
-
}), r[1] = t,
|
|
3789
|
-
} }),
|
|
3920
|
+
if (a = t, !(!p(t) && e === void 0 || be(e))) return f(t) || (t = function(e, t) {
|
|
3921
|
+
if (typeof a == "function" && (t = a.call(this, e, t)), !be(t)) return t;
|
|
3922
|
+
}), r[1] = t, de.apply(null, r);
|
|
3923
|
+
} }), F[ce][N] || E(F[ce], N, F[ce].valueOf), A(F, M), k[j] = !0;
|
|
3790
3924
|
}),
|
|
3791
3925
|
a630: (function(e, t, n) {
|
|
3792
3926
|
var r = n("23e7"), i = n("4df4");
|
|
@@ -3912,13 +4046,13 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
3912
4046
|
var r = n("0366"), i = n("44ad"), a = n("7b0b"), o = n("50c4"), s = n("65f0"), c = [].push, l = function(e) {
|
|
3913
4047
|
var t = e == 1, n = e == 2, l = e == 3, u = e == 4, d = e == 6, f = e == 5 || d;
|
|
3914
4048
|
return function(p, m, h, g) {
|
|
3915
|
-
for (var _ = a(p), v = i(_), y = r(m, h, 3), b = o(v.length), x = 0, S = g || s, C = t ? S(p, b) : n ? S(p, 0) : void 0,
|
|
3916
|
-
if (t) C[x] =
|
|
3917
|
-
else if (
|
|
4049
|
+
for (var _ = a(p), v = i(_), y = r(m, h, 3), b = o(v.length), x = 0, S = g || s, C = t ? S(p, b) : n ? S(p, 0) : void 0, ee, w; b > x; x++) if ((f || x in v) && (ee = v[x], w = y(ee, x, _), e)) {
|
|
4050
|
+
if (t) C[x] = w;
|
|
4051
|
+
else if (w) switch (e) {
|
|
3918
4052
|
case 3: return !0;
|
|
3919
|
-
case 5: return
|
|
4053
|
+
case 5: return ee;
|
|
3920
4054
|
case 6: return x;
|
|
3921
|
-
case 2: c.call(C,
|
|
4055
|
+
case 2: c.call(C, ee);
|
|
3922
4056
|
}
|
|
3923
4057
|
else if (u) return !1;
|
|
3924
4058
|
}
|
|
@@ -4449,55 +4583,55 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4449
4583
|
}
|
|
4450
4584
|
var C = n("dbf1");
|
|
4451
4585
|
n("13d5"), n("4fad"), n("ac1f"), n("5319");
|
|
4452
|
-
function
|
|
4586
|
+
function ee(e) {
|
|
4453
4587
|
var t = Object.create(null);
|
|
4454
4588
|
return function(n) {
|
|
4455
4589
|
return t[n] || (t[n] = e(n));
|
|
4456
4590
|
};
|
|
4457
4591
|
}
|
|
4458
|
-
var
|
|
4459
|
-
return e.replace(
|
|
4592
|
+
var w = /-(\w)/g, T = ee(function(e) {
|
|
4593
|
+
return e.replace(w, function(e, t) {
|
|
4460
4594
|
return t.toUpperCase();
|
|
4461
4595
|
});
|
|
4462
4596
|
});
|
|
4463
4597
|
n("5db7"), n("73d9");
|
|
4464
|
-
var
|
|
4598
|
+
var E = [
|
|
4465
4599
|
"Start",
|
|
4466
4600
|
"Add",
|
|
4467
4601
|
"Remove",
|
|
4468
4602
|
"Update",
|
|
4469
4603
|
"End"
|
|
4470
|
-
],
|
|
4604
|
+
], D = [
|
|
4471
4605
|
"Choose",
|
|
4472
4606
|
"Unchoose",
|
|
4473
4607
|
"Sort",
|
|
4474
4608
|
"Filter",
|
|
4475
4609
|
"Clone"
|
|
4476
|
-
],
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4610
|
+
], O = ["Move"], te = [
|
|
4611
|
+
O,
|
|
4612
|
+
E,
|
|
4613
|
+
D
|
|
4480
4614
|
].flatMap(function(e) {
|
|
4481
4615
|
return e;
|
|
4482
4616
|
}).map(function(e) {
|
|
4483
4617
|
return `on${e}`;
|
|
4484
|
-
}),
|
|
4485
|
-
manage:
|
|
4486
|
-
manageAndEmit:
|
|
4487
|
-
emit:
|
|
4618
|
+
}), k = {
|
|
4619
|
+
manage: O,
|
|
4620
|
+
manageAndEmit: E,
|
|
4621
|
+
emit: D
|
|
4488
4622
|
};
|
|
4489
4623
|
function ne(e) {
|
|
4490
|
-
return
|
|
4624
|
+
return te.indexOf(e) !== -1;
|
|
4491
4625
|
}
|
|
4492
4626
|
n("caad"), n("2ca0");
|
|
4493
4627
|
var re = /* @__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(".");
|
|
4494
4628
|
function ie(e) {
|
|
4495
4629
|
return re.includes(e);
|
|
4496
4630
|
}
|
|
4497
|
-
function
|
|
4631
|
+
function ae(e) {
|
|
4498
4632
|
return ["transition-group", "TransitionGroup"].includes(e);
|
|
4499
4633
|
}
|
|
4500
|
-
function
|
|
4634
|
+
function A(e) {
|
|
4501
4635
|
return [
|
|
4502
4636
|
"id",
|
|
4503
4637
|
"class",
|
|
@@ -4511,59 +4645,59 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4511
4645
|
return e[r] = n[1], e;
|
|
4512
4646
|
}, {});
|
|
4513
4647
|
}
|
|
4514
|
-
function
|
|
4648
|
+
function se(e) {
|
|
4515
4649
|
var t = e.$attrs, n = e.componentData, r = n === void 0 ? {} : n;
|
|
4516
4650
|
return c(c({}, oe(Object.entries(t).filter(function(e) {
|
|
4517
4651
|
var t = m(e, 2), n = t[0];
|
|
4518
|
-
return t[1],
|
|
4652
|
+
return t[1], A(n);
|
|
4519
4653
|
}))), r);
|
|
4520
4654
|
}
|
|
4521
|
-
function
|
|
4522
|
-
var t = e.$attrs, n = e.callBackBuilder, r = oe(
|
|
4655
|
+
function j(e) {
|
|
4656
|
+
var t = e.$attrs, n = e.callBackBuilder, r = oe(M(t));
|
|
4523
4657
|
Object.entries(n).forEach(function(e) {
|
|
4524
4658
|
var t = m(e, 2), n = t[0], i = t[1];
|
|
4525
|
-
|
|
4659
|
+
k[n].forEach(function(e) {
|
|
4526
4660
|
r[`on${e}`] = i(e);
|
|
4527
4661
|
});
|
|
4528
4662
|
});
|
|
4529
4663
|
var i = `[data-draggable]${r.draggable || ""}`;
|
|
4530
4664
|
return c(c({}, r), {}, { draggable: i });
|
|
4531
4665
|
}
|
|
4532
|
-
function
|
|
4666
|
+
function M(e) {
|
|
4533
4667
|
return Object.entries(e).filter(function(e) {
|
|
4534
4668
|
var t = m(e, 2), n = t[0];
|
|
4535
|
-
return t[1], !
|
|
4669
|
+
return t[1], !A(n);
|
|
4536
4670
|
}).map(function(e) {
|
|
4537
4671
|
var t = m(e, 2), n = t[0], r = t[1];
|
|
4538
|
-
return [
|
|
4672
|
+
return [T(n), r];
|
|
4539
4673
|
}).filter(function(e) {
|
|
4540
4674
|
var t = m(e, 2), n = t[0];
|
|
4541
4675
|
return t[1], !ne(n);
|
|
4542
4676
|
});
|
|
4543
4677
|
}
|
|
4544
4678
|
n("c740");
|
|
4545
|
-
function
|
|
4679
|
+
function ce(e, t) {
|
|
4546
4680
|
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
4547
4681
|
}
|
|
4548
|
-
function
|
|
4682
|
+
function N(e, t) {
|
|
4549
4683
|
for (var n = 0; n < t.length; n++) {
|
|
4550
4684
|
var r = t[n];
|
|
4551
4685
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
4552
4686
|
}
|
|
4553
4687
|
}
|
|
4554
4688
|
function le(e, t, n) {
|
|
4555
|
-
return t &&
|
|
4689
|
+
return t && N(e.prototype, t), n && N(e, n), e;
|
|
4556
4690
|
}
|
|
4557
|
-
var
|
|
4691
|
+
var P = function(e) {
|
|
4558
4692
|
return e.el;
|
|
4559
|
-
},
|
|
4693
|
+
}, ue = function(e, t) {
|
|
4560
4694
|
return e.__draggable_context = t;
|
|
4561
|
-
},
|
|
4695
|
+
}, F = function(e) {
|
|
4562
4696
|
return e.__draggable_context;
|
|
4563
|
-
},
|
|
4697
|
+
}, de = /* @__PURE__ */ function() {
|
|
4564
4698
|
function e(t) {
|
|
4565
4699
|
var n = t.nodes, r = n.header, i = n.default, a = n.footer, o = t.root, s = t.realList;
|
|
4566
|
-
|
|
4700
|
+
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;
|
|
4567
4701
|
}
|
|
4568
4702
|
return le(e, [
|
|
4569
4703
|
{
|
|
@@ -4580,7 +4714,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4580
4714
|
value: function() {
|
|
4581
4715
|
var e = this.defaultNodes, t = this.realList;
|
|
4582
4716
|
e.forEach(function(e, n) {
|
|
4583
|
-
|
|
4717
|
+
ue(P(e), {
|
|
4584
4718
|
element: t[n],
|
|
4585
4719
|
index: n
|
|
4586
4720
|
});
|
|
@@ -4590,7 +4724,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4590
4724
|
{
|
|
4591
4725
|
key: "getUnderlyingVm",
|
|
4592
4726
|
value: function(e) {
|
|
4593
|
-
return
|
|
4727
|
+
return F(e);
|
|
4594
4728
|
}
|
|
4595
4729
|
},
|
|
4596
4730
|
{
|
|
@@ -4598,10 +4732,10 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4598
4732
|
value: function(e, t) {
|
|
4599
4733
|
var n = this.defaultNodes, r = n.length, i = t.children, a = i.item(e);
|
|
4600
4734
|
if (a === null) return r;
|
|
4601
|
-
var o =
|
|
4735
|
+
var o = F(a);
|
|
4602
4736
|
if (o) return o.index;
|
|
4603
4737
|
if (r === 0) return 0;
|
|
4604
|
-
var s =
|
|
4738
|
+
var s = P(n[0]);
|
|
4605
4739
|
return e < v(i).findIndex(function(e) {
|
|
4606
4740
|
return e === s;
|
|
4607
4741
|
}) ? 0 : r;
|
|
@@ -4614,14 +4748,14 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4614
4748
|
}
|
|
4615
4749
|
}
|
|
4616
4750
|
]), e;
|
|
4617
|
-
}(),
|
|
4618
|
-
function
|
|
4751
|
+
}(), fe = n("8bbf");
|
|
4752
|
+
function I(e, t) {
|
|
4619
4753
|
var n = e[t];
|
|
4620
4754
|
return n ? n() : [];
|
|
4621
4755
|
}
|
|
4622
|
-
function
|
|
4756
|
+
function pe(e) {
|
|
4623
4757
|
var t = e.$slots, n = e.realList, r = e.getKey, i = n || [], a = m(["header", "footer"].map(function(e) {
|
|
4624
|
-
return
|
|
4758
|
+
return I(t, e);
|
|
4625
4759
|
}), 2), o = a[0], s = a[1], l = t.item;
|
|
4626
4760
|
if (!l) throw Error("draggable element must have an item slot");
|
|
4627
4761
|
var u = i.flatMap(function(e, t) {
|
|
@@ -4639,45 +4773,45 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4639
4773
|
default: u
|
|
4640
4774
|
};
|
|
4641
4775
|
}
|
|
4642
|
-
function
|
|
4643
|
-
var t =
|
|
4776
|
+
function me(e) {
|
|
4777
|
+
var t = ae(e), n = !ie(e) && !t;
|
|
4644
4778
|
return {
|
|
4645
4779
|
transition: t,
|
|
4646
4780
|
externalComponent: n,
|
|
4647
|
-
tag: n ? (0,
|
|
4781
|
+
tag: n ? (0, fe.resolveComponent)(e) : t ? fe.TransitionGroup : e
|
|
4648
4782
|
};
|
|
4649
4783
|
}
|
|
4650
|
-
function
|
|
4784
|
+
function he(e) {
|
|
4651
4785
|
var t = e.$slots, n = e.tag, r = e.realList, i = e.getKey;
|
|
4652
|
-
return new
|
|
4653
|
-
nodes:
|
|
4786
|
+
return new de({
|
|
4787
|
+
nodes: pe({
|
|
4654
4788
|
$slots: t,
|
|
4655
4789
|
realList: r,
|
|
4656
4790
|
getKey: i
|
|
4657
4791
|
}),
|
|
4658
|
-
root:
|
|
4792
|
+
root: me(n),
|
|
4659
4793
|
realList: r
|
|
4660
4794
|
});
|
|
4661
4795
|
}
|
|
4662
4796
|
function L(e, t) {
|
|
4663
4797
|
var n = this;
|
|
4664
|
-
(0,
|
|
4798
|
+
(0, fe.nextTick)(function() {
|
|
4665
4799
|
return n.$emit(e.toLowerCase(), t);
|
|
4666
4800
|
});
|
|
4667
4801
|
}
|
|
4668
|
-
function
|
|
4802
|
+
function R(e) {
|
|
4669
4803
|
var t = this;
|
|
4670
4804
|
return function(n, r) {
|
|
4671
4805
|
if (t.realList !== null) return t[`onDrag${e}`](n, r);
|
|
4672
4806
|
};
|
|
4673
4807
|
}
|
|
4674
|
-
function
|
|
4675
|
-
var t = this, n =
|
|
4808
|
+
function z(e) {
|
|
4809
|
+
var t = this, n = R.call(this, e);
|
|
4676
4810
|
return function(r, i) {
|
|
4677
4811
|
n.call(t, r, i), L.call(t, e, r);
|
|
4678
4812
|
};
|
|
4679
4813
|
}
|
|
4680
|
-
var
|
|
4814
|
+
var ge = null, _e = {
|
|
4681
4815
|
list: {
|
|
4682
4816
|
type: Array,
|
|
4683
4817
|
required: !1,
|
|
@@ -4711,34 +4845,34 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4711
4845
|
required: !1,
|
|
4712
4846
|
default: null
|
|
4713
4847
|
}
|
|
4714
|
-
},
|
|
4848
|
+
}, ve = ["update:modelValue", "change"].concat(v([].concat(v(k.manageAndEmit), v(k.emit)).map(function(e) {
|
|
4715
4849
|
return e.toLowerCase();
|
|
4716
4850
|
})));
|
|
4717
|
-
t.default = (0,
|
|
4851
|
+
t.default = (0, fe.defineComponent)({
|
|
4718
4852
|
name: "draggable",
|
|
4719
4853
|
inheritAttrs: !1,
|
|
4720
|
-
props:
|
|
4721
|
-
emits:
|
|
4854
|
+
props: _e,
|
|
4855
|
+
emits: ve,
|
|
4722
4856
|
data: function() {
|
|
4723
4857
|
return { error: !1 };
|
|
4724
4858
|
},
|
|
4725
4859
|
render: function() {
|
|
4726
4860
|
try {
|
|
4727
4861
|
this.error = !1;
|
|
4728
|
-
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o =
|
|
4862
|
+
var e = this.$slots, t = this.$attrs, n = this.tag, r = this.componentData, i = this.realList, a = this.getKey, o = he({
|
|
4729
4863
|
$slots: e,
|
|
4730
4864
|
tag: n,
|
|
4731
4865
|
realList: i,
|
|
4732
4866
|
getKey: a
|
|
4733
4867
|
});
|
|
4734
4868
|
this.componentStructure = o;
|
|
4735
|
-
var s =
|
|
4869
|
+
var s = se({
|
|
4736
4870
|
$attrs: t,
|
|
4737
4871
|
componentData: r
|
|
4738
4872
|
});
|
|
4739
|
-
return o.render(
|
|
4873
|
+
return o.render(fe.h, s);
|
|
4740
4874
|
} catch (e) {
|
|
4741
|
-
return this.error = !0, (0,
|
|
4875
|
+
return this.error = !0, (0, fe.h)("pre", { style: { color: "red" } }, e.stack);
|
|
4742
4876
|
}
|
|
4743
4877
|
},
|
|
4744
4878
|
created: function() {
|
|
@@ -4749,17 +4883,17 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4749
4883
|
if (!this.error) {
|
|
4750
4884
|
var t = this.$attrs, n = this.$el;
|
|
4751
4885
|
this.componentStructure.updated();
|
|
4752
|
-
var r =
|
|
4886
|
+
var r = j({
|
|
4753
4887
|
$attrs: t,
|
|
4754
4888
|
callBackBuilder: {
|
|
4755
4889
|
manageAndEmit: function(t) {
|
|
4756
|
-
return
|
|
4890
|
+
return z.call(e, t);
|
|
4757
4891
|
},
|
|
4758
4892
|
emit: function(t) {
|
|
4759
4893
|
return L.bind(e, t);
|
|
4760
4894
|
},
|
|
4761
4895
|
manage: function(t) {
|
|
4762
|
-
return
|
|
4896
|
+
return R.call(e, t);
|
|
4763
4897
|
}
|
|
4764
4898
|
}
|
|
4765
4899
|
}), i = n.nodeType === 1 ? n : n.parentElement;
|
|
@@ -4786,7 +4920,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4786
4920
|
watch: { $attrs: {
|
|
4787
4921
|
handler: function(e) {
|
|
4788
4922
|
var t = this._sortable;
|
|
4789
|
-
t &&
|
|
4923
|
+
t && M(e).forEach(function(e) {
|
|
4790
4924
|
var n = m(e, 2), r = n[0], i = n[1];
|
|
4791
4925
|
t.option(r, i);
|
|
4792
4926
|
});
|
|
@@ -4802,7 +4936,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4802
4936
|
},
|
|
4803
4937
|
emitChanges: function(e) {
|
|
4804
4938
|
var t = this;
|
|
4805
|
-
(0,
|
|
4939
|
+
(0, fe.nextTick)(function() {
|
|
4806
4940
|
return t.$emit("change", e);
|
|
4807
4941
|
});
|
|
4808
4942
|
},
|
|
@@ -4838,7 +4972,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4838
4972
|
return this.componentStructure.getVmIndexFromDomIndex(e, this.targetDomElement);
|
|
4839
4973
|
},
|
|
4840
4974
|
onDragStart: function(e) {
|
|
4841
|
-
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element),
|
|
4975
|
+
this.context = this.getUnderlyingVm(e.item), e.item._underlying_vm_ = this.clone(this.context.element), ge = e.item;
|
|
4842
4976
|
},
|
|
4843
4977
|
onDragAdd: function(e) {
|
|
4844
4978
|
var t = e.item._underlying_vm_;
|
|
@@ -4882,7 +5016,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4882
5016
|
var n = v(t.to.children).filter(function(e) {
|
|
4883
5017
|
return e.style.display !== "none";
|
|
4884
5018
|
}), r = n.indexOf(t.related), i = e.component.getVmIndexFromDomIndex(r);
|
|
4885
|
-
return n.indexOf(
|
|
5019
|
+
return n.indexOf(ge) !== -1 || !t.willInsertAfter ? i : i + 1;
|
|
4886
5020
|
},
|
|
4887
5021
|
onDragMove: function(e, t) {
|
|
4888
5022
|
var n = this.move, r = this.realList;
|
|
@@ -4894,7 +5028,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4894
5028
|
}), t);
|
|
4895
5029
|
},
|
|
4896
5030
|
onDragEnd: function() {
|
|
4897
|
-
|
|
5031
|
+
ge = null;
|
|
4898
5032
|
}
|
|
4899
5033
|
}
|
|
4900
5034
|
});
|
|
@@ -4962,10 +5096,10 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4962
5096
|
})
|
|
4963
5097
|
}).default;
|
|
4964
5098
|
});
|
|
4965
|
-
})),
|
|
5099
|
+
})), Na = /* @__PURE__ */ ct(Ma(), 1), Pa = { class: "tpl:w-full" }, Fa = { class: "tpl:flex tpl:gap-0" }, Ia = {
|
|
4966
5100
|
key: 0,
|
|
4967
5101
|
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)]"
|
|
4968
|
-
},
|
|
5102
|
+
}, La = /* @__PURE__ */ P({
|
|
4969
5103
|
__name: "SectionBlock",
|
|
4970
5104
|
props: {
|
|
4971
5105
|
block: {},
|
|
@@ -4973,13 +5107,13 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4973
5107
|
},
|
|
4974
5108
|
setup(e) {
|
|
4975
5109
|
let t = {
|
|
4976
|
-
title:
|
|
4977
|
-
paragraph:
|
|
4978
|
-
image:
|
|
4979
|
-
button:
|
|
4980
|
-
divider:
|
|
4981
|
-
custom:
|
|
4982
|
-
}, n = e, { t: r } = E(), i =
|
|
5110
|
+
title: Zn,
|
|
5111
|
+
paragraph: Pn,
|
|
5112
|
+
image: Dn,
|
|
5113
|
+
button: Ct,
|
|
5114
|
+
divider: dn,
|
|
5115
|
+
custom: ln
|
|
5116
|
+
}, n = e, { t: r } = E(), i = l(p, "SectionBlock"), a = F(_, null), o = F(b, null), s = A(() => {
|
|
4983
5117
|
switch (n.block.columns) {
|
|
4984
5118
|
case "2": return ["50%", "50%"];
|
|
4985
5119
|
case "3": return [
|
|
@@ -4996,29 +5130,29 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
4996
5130
|
for (; t.length < e;) t.push([]);
|
|
4997
5131
|
return t.slice(0, e);
|
|
4998
5132
|
});
|
|
4999
|
-
function
|
|
5133
|
+
function u(e) {
|
|
5000
5134
|
return c.value[e] || [];
|
|
5001
5135
|
}
|
|
5002
|
-
function
|
|
5136
|
+
function d(e, t) {
|
|
5003
5137
|
let r = [...n.block.children];
|
|
5004
5138
|
for (; r.length <= e;) r.push([]);
|
|
5005
5139
|
r[e] = t, i.updateBlock(n.block.id, { children: r });
|
|
5006
5140
|
}
|
|
5007
|
-
function
|
|
5008
|
-
return
|
|
5141
|
+
function f(e) {
|
|
5142
|
+
return Fn(e, o, t);
|
|
5009
5143
|
}
|
|
5010
|
-
function
|
|
5144
|
+
function m(e, t) {
|
|
5011
5145
|
e.type === "custom" && i.updateBlock(e.id, {
|
|
5012
5146
|
fieldValues: t.fieldValues,
|
|
5013
5147
|
dataSourceFetched: t.dataSourceFetched
|
|
5014
5148
|
});
|
|
5015
5149
|
}
|
|
5016
|
-
return (t, n) => (
|
|
5150
|
+
return (t, n) => (L(), j("div", Pa, [M("div", Fa, [(L(!0), j(ae, null, ge(c.value, (t, n) => (L(), j("div", {
|
|
5017
5151
|
key: n,
|
|
5018
|
-
class: fe(["tpl:relative tpl:min-h-[60px] tpl:rounded",
|
|
5019
|
-
style:
|
|
5020
|
-
}, [N(
|
|
5021
|
-
"model-value":
|
|
5152
|
+
class: fe(["tpl:relative tpl:min-h-[60px] tpl:rounded", u(n).length === 0 ? "tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)]" : ""]),
|
|
5153
|
+
style: I({ width: s.value[n] })
|
|
5154
|
+
}, [N(V(Na.default), {
|
|
5155
|
+
"model-value": u(n),
|
|
5022
5156
|
group: {
|
|
5023
5157
|
name: "blocks",
|
|
5024
5158
|
pull: !0,
|
|
@@ -5029,18 +5163,18 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5029
5163
|
"ghost-class": "tpl-ghost",
|
|
5030
5164
|
"empty-insert-threshold": 20,
|
|
5031
5165
|
class: "tpl:min-h-[60px]",
|
|
5032
|
-
"onUpdate:modelValue": (e) =>
|
|
5166
|
+
"onUpdate:modelValue": (e) => d(n, e)
|
|
5033
5167
|
}, {
|
|
5034
|
-
item: Ce(({ element: t }) => [we(M("div", null, [N(
|
|
5168
|
+
item: Ce(({ element: t }) => [we(M("div", null, [N(Yn, {
|
|
5035
5169
|
block: t,
|
|
5036
|
-
"is-selected":
|
|
5170
|
+
"is-selected": V(i).state.selectedBlockId === t.id,
|
|
5037
5171
|
viewport: e.viewport,
|
|
5038
|
-
onSelect: (e) =>
|
|
5172
|
+
onSelect: (e) => V(i).selectBlock(t.id)
|
|
5039
5173
|
}, {
|
|
5040
|
-
default: Ce(() => [(
|
|
5174
|
+
default: Ce(() => [(L(), oe(ve(f(t)), {
|
|
5041
5175
|
block: t,
|
|
5042
5176
|
viewport: e.viewport,
|
|
5043
|
-
onFetchData: (e) =>
|
|
5177
|
+
onFetchData: (e) => m(t, e)
|
|
5044
5178
|
}, null, 40, [
|
|
5045
5179
|
"block",
|
|
5046
5180
|
"viewport",
|
|
@@ -5052,15 +5186,15 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5052
5186
|
"is-selected",
|
|
5053
5187
|
"viewport",
|
|
5054
5188
|
"onSelect"
|
|
5055
|
-
])], 512), [[xe, !
|
|
5189
|
+
])], 512), [[xe, !V(a)?.isHidden(t.id)]])]),
|
|
5056
5190
|
_: 1
|
|
5057
5191
|
}, 8, [
|
|
5058
5192
|
"model-value",
|
|
5059
5193
|
"group",
|
|
5060
5194
|
"onUpdate:modelValue"
|
|
5061
|
-
]),
|
|
5195
|
+
]), u(n).length === 0 ? (L(), j("div", Ia, [M("span", null, B(V(r).section.dropHere), 1)])) : se("", !0)], 6))), 128))])]));
|
|
5062
5196
|
}
|
|
5063
|
-
}),
|
|
5197
|
+
}), Ra = {
|
|
5064
5198
|
facebook: {
|
|
5065
5199
|
name: "Facebook",
|
|
5066
5200
|
color: "#1877F2",
|
|
@@ -5141,11 +5275,11 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5141
5275
|
color: "#1769FF",
|
|
5142
5276
|
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"
|
|
5143
5277
|
}
|
|
5144
|
-
},
|
|
5278
|
+
}, za = {
|
|
5145
5279
|
small: 24,
|
|
5146
5280
|
medium: 32,
|
|
5147
5281
|
large: 48
|
|
5148
|
-
},
|
|
5282
|
+
}, Ba = [
|
|
5149
5283
|
"facebook",
|
|
5150
5284
|
"twitter",
|
|
5151
5285
|
"instagram",
|
|
@@ -5162,11 +5296,11 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5162
5296
|
"github",
|
|
5163
5297
|
"dribbble",
|
|
5164
5298
|
"behance"
|
|
5165
|
-
],
|
|
5299
|
+
], Va = [
|
|
5166
5300
|
"width",
|
|
5167
5301
|
"height",
|
|
5168
5302
|
"fill"
|
|
5169
|
-
],
|
|
5303
|
+
], Ha = ["d"], Ua = /* @__PURE__ */ P({
|
|
5170
5304
|
__name: "SocialIconSvg",
|
|
5171
5305
|
props: {
|
|
5172
5306
|
platform: {},
|
|
@@ -5174,7 +5308,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5174
5308
|
iconSize: {}
|
|
5175
5309
|
},
|
|
5176
5310
|
setup(e) {
|
|
5177
|
-
let t = e, n = A(() =>
|
|
5311
|
+
let t = e, n = A(() => Ra[t.platform]), r = A(() => za[t.iconSize]), i = A(() => {
|
|
5178
5312
|
let e = {
|
|
5179
5313
|
display: "inline-flex",
|
|
5180
5314
|
alignItems: "center",
|
|
@@ -5212,18 +5346,18 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5212
5346
|
default: return e;
|
|
5213
5347
|
}
|
|
5214
5348
|
}), a = A(() => Math.floor(r.value * .6)), o = A(() => t.iconStyle === "outlined" ? n.value.color : "#ffffff");
|
|
5215
|
-
return (e, t) => (
|
|
5349
|
+
return (e, t) => (L(), j("span", { style: I(i.value) }, [(L(), j("svg", {
|
|
5216
5350
|
width: a.value,
|
|
5217
5351
|
height: a.value,
|
|
5218
5352
|
viewBox: "0 0 24 24",
|
|
5219
5353
|
fill: o.value,
|
|
5220
5354
|
xmlns: "http://www.w3.org/2000/svg"
|
|
5221
|
-
}, [M("path", { d: n.value.path }, null, 8,
|
|
5355
|
+
}, [M("path", { d: n.value.path }, null, 8, Ha)], 8, Va))], 4));
|
|
5222
5356
|
}
|
|
5223
|
-
}),
|
|
5357
|
+
}), Wa = { class: "tpl:w-full" }, Ga = ["href"], Ka = {
|
|
5224
5358
|
key: 1,
|
|
5225
5359
|
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)]"
|
|
5226
|
-
},
|
|
5360
|
+
}, qa = /* @__PURE__ */ P({
|
|
5227
5361
|
__name: "SocialIconsBlock",
|
|
5228
5362
|
props: {
|
|
5229
5363
|
block: {},
|
|
@@ -5236,15 +5370,15 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5236
5370
|
gap: `${t.block.spacing}px`,
|
|
5237
5371
|
justifyContent: t.block.align === "left" ? "flex-start" : t.block.align === "right" ? "flex-end" : "center"
|
|
5238
5372
|
})), i = A(() => t.block.icons.length > 0);
|
|
5239
|
-
return (t, a) => (
|
|
5373
|
+
return (t, a) => (L(), j("div", Wa, [i.value ? (L(), j("div", {
|
|
5240
5374
|
key: 0,
|
|
5241
|
-
style:
|
|
5242
|
-
}, [(
|
|
5375
|
+
style: I(r.value)
|
|
5376
|
+
}, [(L(!0), j(ae, null, ge(e.block.icons, (t) => (L(), j("a", {
|
|
5243
5377
|
key: t.id,
|
|
5244
5378
|
href: t.url || "#",
|
|
5245
5379
|
class: "tpl:cursor-default",
|
|
5246
5380
|
onClick: a[0] ||= Ee(() => {}, ["prevent"])
|
|
5247
|
-
}, [N(
|
|
5381
|
+
}, [N(Ua, {
|
|
5248
5382
|
platform: t.platform,
|
|
5249
5383
|
"icon-style": e.block.iconStyle,
|
|
5250
5384
|
"icon-size": e.block.iconSize
|
|
@@ -5252,53 +5386,53 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5252
5386
|
"platform",
|
|
5253
5387
|
"icon-style",
|
|
5254
5388
|
"icon-size"
|
|
5255
|
-
])], 8,
|
|
5389
|
+
])], 8, Ga))), 128))], 4)) : (L(), j("div", Ka, [N(V(Rt), { size: 16 }), M("span", null, B(V(n).social.addIcons), 1)]))]));
|
|
5256
5390
|
}
|
|
5257
|
-
}),
|
|
5391
|
+
}), Ja = { class: "tpl:w-full" }, Ya = {
|
|
5258
5392
|
key: 0,
|
|
5259
5393
|
class: "tpl:absolute tpl:rounded tpl:px-2 tpl:py-0.5 tpl:text-[10px] tpl:font-medium",
|
|
5260
5394
|
style: {
|
|
5261
5395
|
"background-color": "var(--tpl-bg-hover)",
|
|
5262
5396
|
color: "var(--tpl-text-dim)"
|
|
5263
5397
|
}
|
|
5264
|
-
},
|
|
5398
|
+
}, Xa = /* @__PURE__ */ P({
|
|
5265
5399
|
__name: "SpacerBlock",
|
|
5266
5400
|
props: {
|
|
5267
5401
|
block: {},
|
|
5268
5402
|
viewport: {}
|
|
5269
5403
|
},
|
|
5270
5404
|
setup(e) {
|
|
5271
|
-
let t = e, n =
|
|
5405
|
+
let t = e, n = l(p, "SpacerBlock"), r = A(() => ({
|
|
5272
5406
|
height: `${t.block.height}px`,
|
|
5273
5407
|
minHeight: `${t.block.height}px`,
|
|
5274
5408
|
...n.state.previewMode ? {} : { borderColor: "var(--tpl-border)" }
|
|
5275
5409
|
}));
|
|
5276
|
-
return (t, i) => (
|
|
5277
|
-
style:
|
|
5278
|
-
class: fe(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !
|
|
5279
|
-
}, [
|
|
5410
|
+
return (t, i) => (L(), j("div", Ja, [M("div", {
|
|
5411
|
+
style: I(r.value),
|
|
5412
|
+
class: fe(["tpl:relative tpl:flex tpl:items-center tpl:justify-center", { "tpl:border-y tpl:border-dashed": !V(n).state.previewMode }])
|
|
5413
|
+
}, [V(n).state.previewMode ? se("", !0) : (L(), j("span", Ya, B(e.block.height) + "px ", 1))], 6)]));
|
|
5280
5414
|
}
|
|
5281
|
-
}),
|
|
5415
|
+
}), Za = { class: "tpl:w-full" }, Qa = { key: 0 }, $a = [
|
|
5282
5416
|
"aria-label",
|
|
5283
5417
|
"data-placeholder",
|
|
5284
5418
|
"onBlur",
|
|
5285
5419
|
"textContent"
|
|
5286
|
-
],
|
|
5420
|
+
], eo = [
|
|
5287
5421
|
"aria-label",
|
|
5288
5422
|
"data-placeholder",
|
|
5289
5423
|
"onBlur",
|
|
5290
5424
|
"textContent"
|
|
5291
|
-
],
|
|
5425
|
+
], to = {
|
|
5292
5426
|
key: 1,
|
|
5293
5427
|
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)]"
|
|
5294
|
-
},
|
|
5428
|
+
}, no = /* @__PURE__ */ O(/* @__PURE__ */ P({
|
|
5295
5429
|
__name: "TableBlock",
|
|
5296
5430
|
props: {
|
|
5297
5431
|
block: {},
|
|
5298
5432
|
viewport: {}
|
|
5299
5433
|
},
|
|
5300
5434
|
setup(e) {
|
|
5301
|
-
let t = e, { t: n } = E(), r =
|
|
5435
|
+
let t = e, { t: n } = E(), r = l(p, "TableBlock"), i = A(() => t.block.rows.length > 0), a = A(() => ({
|
|
5302
5436
|
width: "100%",
|
|
5303
5437
|
borderCollapse: "collapse",
|
|
5304
5438
|
fontSize: `${t.block.fontSize}px`,
|
|
@@ -5313,11 +5447,11 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5313
5447
|
...o.value,
|
|
5314
5448
|
fontWeight: "bold",
|
|
5315
5449
|
backgroundColor: t.block.headerBackgroundColor || "transparent"
|
|
5316
|
-
})), c = A(() => t.block.hasHeaderRow && t.block.rows.length > 0 ? t.block.rows[0] : null),
|
|
5317
|
-
function
|
|
5450
|
+
})), c = A(() => t.block.hasHeaderRow && t.block.rows.length > 0 ? t.block.rows[0] : null), u = A(() => t.block.hasHeaderRow ? t.block.rows.slice(1) : t.block.rows);
|
|
5451
|
+
function d() {
|
|
5318
5452
|
r.selectBlock(t.block.id);
|
|
5319
5453
|
}
|
|
5320
|
-
function
|
|
5454
|
+
function f(e, n, i) {
|
|
5321
5455
|
let a = i.target.innerText.trim(), o = t.block.rows.map((t) => t.id === e ? {
|
|
5322
5456
|
...t,
|
|
5323
5457
|
cells: t.cells.map((e) => e.id === n ? {
|
|
@@ -5327,40 +5461,40 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5327
5461
|
} : t);
|
|
5328
5462
|
r.updateBlock(t.block.id, { rows: o });
|
|
5329
5463
|
}
|
|
5330
|
-
return (e, t) => (
|
|
5464
|
+
return (e, t) => (L(), j("div", Za, [i.value ? (L(), j("table", {
|
|
5331
5465
|
key: 0,
|
|
5332
|
-
style:
|
|
5466
|
+
style: I(a.value),
|
|
5333
5467
|
class: "tpl-table-editable"
|
|
5334
|
-
}, [c.value ? (
|
|
5468
|
+
}, [c.value ? (L(), j("thead", Qa, [M("tr", null, [(L(!0), j(ae, null, ge(c.value.cells, (e) => (L(), j("th", {
|
|
5335
5469
|
key: e.id,
|
|
5336
|
-
style:
|
|
5337
|
-
"aria-label":
|
|
5470
|
+
style: I(s.value),
|
|
5471
|
+
"aria-label": V(n).table.cellPlaceholder,
|
|
5338
5472
|
contenteditable: "true",
|
|
5339
|
-
"data-placeholder":
|
|
5340
|
-
onBlur: (t) =>
|
|
5473
|
+
"data-placeholder": V(n).table.cellPlaceholder,
|
|
5474
|
+
onBlur: (t) => f(c.value.id, e.id, t),
|
|
5341
5475
|
onKeydown: t[0] ||= Te(Ee((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
5342
|
-
onClick: Ee(
|
|
5343
|
-
textContent:
|
|
5344
|
-
}, null, 44,
|
|
5476
|
+
onClick: Ee(d, ["stop"]),
|
|
5477
|
+
textContent: B(e.content)
|
|
5478
|
+
}, null, 44, $a))), 128))])])) : se("", !0), M("tbody", null, [(L(!0), j(ae, null, ge(u.value, (e) => (L(), j("tr", { key: e.id }, [(L(!0), j(ae, null, ge(e.cells, (r) => (L(), j("td", {
|
|
5345
5479
|
key: r.id,
|
|
5346
|
-
style:
|
|
5347
|
-
"aria-label":
|
|
5480
|
+
style: I(o.value),
|
|
5481
|
+
"aria-label": V(n).table.cellPlaceholder,
|
|
5348
5482
|
contenteditable: "true",
|
|
5349
|
-
"data-placeholder":
|
|
5350
|
-
onBlur: (t) =>
|
|
5483
|
+
"data-placeholder": V(n).table.cellPlaceholder,
|
|
5484
|
+
onBlur: (t) => f(e.id, r.id, t),
|
|
5351
5485
|
onKeydown: t[1] ||= Te(Ee((e) => e.target.blur(), ["prevent"]), ["enter"]),
|
|
5352
|
-
onClick: Ee(
|
|
5353
|
-
textContent:
|
|
5354
|
-
}, null, 44,
|
|
5486
|
+
onClick: Ee(d, ["stop"]),
|
|
5487
|
+
textContent: B(r.content)
|
|
5488
|
+
}, null, 44, eo))), 128))]))), 128))])], 4)) : (L(), j("div", to, [N(V(zt), { size: 16 }), M("span", null, B(V(n).table.empty), 1)]))]));
|
|
5355
5489
|
}
|
|
5356
|
-
}), [["__scopeId", "data-v-dfc60174"]]),
|
|
5490
|
+
}), [["__scopeId", "data-v-dfc60174"]]), ro = /* @__PURE__ */ P({
|
|
5357
5491
|
__name: "VideoPlayButton",
|
|
5358
5492
|
props: { hoverEffect: {
|
|
5359
5493
|
type: Boolean,
|
|
5360
5494
|
default: !1
|
|
5361
5495
|
} },
|
|
5362
5496
|
setup(e) {
|
|
5363
|
-
return (t, n) => (
|
|
5497
|
+
return (t, n) => (L(), j("div", { class: fe(["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", {
|
|
5364
5498
|
class: "tpl:ml-1 tpl:text-[var(--tpl-danger)]",
|
|
5365
5499
|
width: "28",
|
|
5366
5500
|
height: "28",
|
|
@@ -5371,7 +5505,7 @@ var ai, oi, si, ci, li, ui, di, fi, pi, mi, hi, gi, _i, vi, yi, bi, q, J, Y, X,
|
|
|
5371
5505
|
});
|
|
5372
5506
|
//#endregion
|
|
5373
5507
|
//#region src/utils/videoThumbnail.ts
|
|
5374
|
-
function
|
|
5508
|
+
function io(e) {
|
|
5375
5509
|
if (!e) return {
|
|
5376
5510
|
platform: "unknown",
|
|
5377
5511
|
videoId: null,
|
|
@@ -5403,96 +5537,96 @@ function eo(e) {
|
|
|
5403
5537
|
thumbnailUrl: null
|
|
5404
5538
|
};
|
|
5405
5539
|
}
|
|
5406
|
-
function
|
|
5407
|
-
return t ||
|
|
5540
|
+
function ao(e, t) {
|
|
5541
|
+
return t || io(e).thumbnailUrl;
|
|
5408
5542
|
}
|
|
5409
5543
|
//#endregion
|
|
5410
5544
|
//#region src/components/blocks/VideoBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5411
|
-
var
|
|
5545
|
+
var oo = ["src", "alt"], so = {
|
|
5412
5546
|
class: "tpl:max-w-full tpl:truncate tpl:px-3 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-primary)]",
|
|
5413
5547
|
style: { opacity: "0.7" }
|
|
5414
|
-
},
|
|
5548
|
+
}, co = ["href"], lo = ["src", "alt"], uo = ["src", "alt"], fo = {
|
|
5415
5549
|
key: 3,
|
|
5416
5550
|
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)]"
|
|
5417
|
-
},
|
|
5551
|
+
}, po = /* @__PURE__ */ P({
|
|
5418
5552
|
__name: "VideoBlock",
|
|
5419
5553
|
props: {
|
|
5420
5554
|
block: {},
|
|
5421
5555
|
viewport: {}
|
|
5422
5556
|
},
|
|
5423
5557
|
setup(e) {
|
|
5424
|
-
let t = e, { t: n } = E(), { syntax: r } =
|
|
5558
|
+
let t = e, { t: n } = E(), { syntax: r } = ie(), i = A(() => Pe(t.block.url, r) || Pe(t.block.thumbnailUrl, r)), a = A(() => i.value ? null : ao(t.block.url, t.block.thumbnailUrl)), o = A(() => ({ textAlign: t.block.align })), s = A(() => ({
|
|
5425
5559
|
maxWidth: "100%",
|
|
5426
5560
|
width: t.block.width === "full" ? "100%" : `${t.block.width}px`,
|
|
5427
5561
|
display: "block",
|
|
5428
5562
|
margin: t.block.align === "center" ? "0 auto" : void 0,
|
|
5429
5563
|
marginLeft: t.block.align === "right" ? "auto" : void 0
|
|
5430
5564
|
})), c = A(() => Pe(t.block.url, r) ? t.block.url : t.block.thumbnailUrl);
|
|
5431
|
-
return (t, r) => (
|
|
5565
|
+
return (t, r) => (L(), j("div", {
|
|
5432
5566
|
class: "tpl:w-full",
|
|
5433
|
-
style:
|
|
5434
|
-
}, [i.value && e.block.placeholderUrl ? (
|
|
5567
|
+
style: I(o.value)
|
|
5568
|
+
}, [i.value && e.block.placeholderUrl ? (L(), j("div", {
|
|
5435
5569
|
key: 0,
|
|
5436
5570
|
class: "tpl:relative tpl:inline-block",
|
|
5437
|
-
style:
|
|
5571
|
+
style: I(s.value)
|
|
5438
5572
|
}, [M("img", {
|
|
5439
5573
|
class: "tpl:w-full tpl:border-0",
|
|
5440
5574
|
src: e.block.placeholderUrl,
|
|
5441
5575
|
alt: e.block.alt
|
|
5442
|
-
}, null, 8,
|
|
5576
|
+
}, null, 8, oo), N(ro)], 4)) : i.value ? (L(), j("div", {
|
|
5443
5577
|
key: 1,
|
|
5444
5578
|
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)]",
|
|
5445
|
-
style:
|
|
5446
|
-
}, [N(
|
|
5579
|
+
style: I([{ "border-color": "color-mix(in srgb, var(--tpl-primary) 40%, transparent)" }, s.value])
|
|
5580
|
+
}, [N(V(Bt), {
|
|
5447
5581
|
size: 36,
|
|
5448
5582
|
"stroke-width": 1.5,
|
|
5449
5583
|
class: "tpl:text-[var(--tpl-primary)]",
|
|
5450
5584
|
style: { opacity: "0.5" }
|
|
5451
|
-
}), M("span",
|
|
5585
|
+
}), M("span", so, B(c.value), 1)], 4)) : a.value ? (L(), j(ae, { key: 2 }, [e.block.url ? (L(), j("a", {
|
|
5452
5586
|
key: 0,
|
|
5453
5587
|
href: e.block.url,
|
|
5454
5588
|
target: "_blank",
|
|
5455
5589
|
rel: "noopener noreferrer",
|
|
5456
5590
|
class: "tpl:group tpl:relative tpl:inline-block",
|
|
5457
|
-
style:
|
|
5591
|
+
style: I(s.value),
|
|
5458
5592
|
onClick: r[0] ||= Ee(() => {}, ["prevent"])
|
|
5459
5593
|
}, [M("img", {
|
|
5460
5594
|
class: "tpl:w-full tpl:border-0",
|
|
5461
5595
|
src: a.value,
|
|
5462
5596
|
alt: e.block.alt
|
|
5463
|
-
}, null, 8,
|
|
5597
|
+
}, null, 8, lo), N(ro, { "hover-effect": "" })], 12, co)) : (L(), j("div", {
|
|
5464
5598
|
key: 1,
|
|
5465
5599
|
class: "tpl:relative tpl:inline-block",
|
|
5466
|
-
style:
|
|
5600
|
+
style: I(s.value)
|
|
5467
5601
|
}, [M("img", {
|
|
5468
5602
|
class: "tpl:w-full tpl:border-0",
|
|
5469
5603
|
src: a.value,
|
|
5470
5604
|
alt: e.block.alt
|
|
5471
|
-
}, null, 8,
|
|
5605
|
+
}, null, 8, uo), N(ro)], 4))], 64)) : (L(), j("div", fo, [N(V(Bt), {
|
|
5472
5606
|
size: 40,
|
|
5473
5607
|
"stroke-width": 1.5,
|
|
5474
5608
|
class: "tpl:text-[var(--tpl-border-light)]"
|
|
5475
|
-
}), M("span", null,
|
|
5609
|
+
}), M("span", null, B(V(n).video.addVideo), 1)]))], 4));
|
|
5476
5610
|
}
|
|
5477
|
-
}),
|
|
5478
|
-
section:
|
|
5479
|
-
title:
|
|
5480
|
-
paragraph:
|
|
5481
|
-
image:
|
|
5482
|
-
button:
|
|
5483
|
-
divider:
|
|
5484
|
-
video:
|
|
5485
|
-
social:
|
|
5486
|
-
menu:
|
|
5487
|
-
table:
|
|
5488
|
-
spacer:
|
|
5489
|
-
html:
|
|
5490
|
-
countdown:
|
|
5611
|
+
}), mo = {
|
|
5612
|
+
section: La,
|
|
5613
|
+
title: Zn,
|
|
5614
|
+
paragraph: Pn,
|
|
5615
|
+
image: Dn,
|
|
5616
|
+
button: Ct,
|
|
5617
|
+
divider: dn,
|
|
5618
|
+
video: po,
|
|
5619
|
+
social: qa,
|
|
5620
|
+
menu: jn,
|
|
5621
|
+
table: no,
|
|
5622
|
+
spacer: Xa,
|
|
5623
|
+
html: gn,
|
|
5624
|
+
countdown: Dt
|
|
5491
5625
|
};
|
|
5492
|
-
function
|
|
5493
|
-
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: o, format:
|
|
5626
|
+
function ho(e) {
|
|
5627
|
+
let { editor: t, config: n, translations: r, fontsManager: i } = e, { t: o, format: l } = E(r);
|
|
5494
5628
|
t.setUiTheme(n.uiTheme ?? "auto");
|
|
5495
|
-
let { resolvedTheme: D } =
|
|
5629
|
+
let { resolvedTheme: D } = pt(A(() => t.state.uiTheme)), O = z(n.theme ?? {}), { themeStyles: te } = ht({
|
|
5496
5630
|
themeOverrides: O,
|
|
5497
5631
|
resolvedTheme: D,
|
|
5498
5632
|
extraStyles: e.themeExtraStyles
|
|
@@ -5502,27 +5636,30 @@ function uo(e) {
|
|
|
5502
5636
|
...e.historyOptions
|
|
5503
5637
|
});
|
|
5504
5638
|
Me(t, k);
|
|
5505
|
-
let
|
|
5639
|
+
let ne = Oe({
|
|
5506
5640
|
addBlock: t.addBlock,
|
|
5507
5641
|
removeBlock: t.removeBlock,
|
|
5508
5642
|
updateBlock: t.updateBlock,
|
|
5509
5643
|
selectBlock: t.selectBlock,
|
|
5510
5644
|
blockDefaults: n.blockDefaults
|
|
5511
|
-
}),
|
|
5645
|
+
}), re = ke(t), ie = e.autoSaveOptions !== null && e.autoSaveOptions !== void 0 ? De({
|
|
5512
5646
|
content: t.content,
|
|
5513
5647
|
isDirty: () => t.state.isDirty,
|
|
5514
5648
|
...e.autoSaveOptions
|
|
5515
|
-
}) : null,
|
|
5516
|
-
|
|
5517
|
-
e ?
|
|
5649
|
+
}) : null, ae = null;
|
|
5650
|
+
ie && (ae = Se(k.isNavigating, (e) => {
|
|
5651
|
+
e ? ie.pause() : ie.resume();
|
|
5518
5652
|
}));
|
|
5519
|
-
let
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5653
|
+
let oe = ft(t, {
|
|
5654
|
+
t: o,
|
|
5655
|
+
format: l
|
|
5656
|
+
}), se = gt();
|
|
5657
|
+
if (vt(se, mo), n.customBlocks?.length) for (let e of n.customBlocks) se.registerCustom(e, ln);
|
|
5658
|
+
function j(e) {
|
|
5659
|
+
for (let t of e) se.registerCustom(t, ln);
|
|
5523
5660
|
}
|
|
5524
|
-
function
|
|
5525
|
-
|
|
5661
|
+
function M(r) {
|
|
5662
|
+
bt(r, {
|
|
5526
5663
|
history: k,
|
|
5527
5664
|
selectBlock: (e) => t.selectBlock(e),
|
|
5528
5665
|
getSelectedBlockId: () => t.state.selectedBlockId,
|
|
@@ -5531,26 +5668,27 @@ function uo(e) {
|
|
|
5531
5668
|
onBeforeUndo: e.keyboardOptions?.onBeforeUndo
|
|
5532
5669
|
});
|
|
5533
5670
|
}
|
|
5534
|
-
a(document, "keydown",
|
|
5535
|
-
let
|
|
5536
|
-
|
|
5537
|
-
function
|
|
5538
|
-
|
|
5671
|
+
a(document, "keydown", M), R(s, r), R(p, t), R(v, k), R(g, ne), R(_, re), R(x, i), R(c, te), R(w, D), R(d, n.blockDefaults), R(b, se), R(C, n.customBlocks ?? []);
|
|
5672
|
+
let ce = Ze(n.mergeTags?.syntax);
|
|
5673
|
+
R(m, n.mergeTags?.tags ?? []), R(u, ce), R(T, n.mergeTags?.onRequest ?? null), R(ee, n.onRequestMedia ?? null), R(f, n.displayConditions?.conditions ?? []), R(y, n.displayConditions?.allowCustom ?? !1), R(S, e.capabilities ?? {}), R(h, oe);
|
|
5674
|
+
function N() {
|
|
5675
|
+
ae?.(), ie?.destroy(), k.destroy();
|
|
5539
5676
|
}
|
|
5540
5677
|
return {
|
|
5541
5678
|
t: o,
|
|
5542
|
-
format:
|
|
5679
|
+
format: l,
|
|
5543
5680
|
history: k,
|
|
5544
|
-
blockActions:
|
|
5545
|
-
conditionPreview:
|
|
5546
|
-
autoSave:
|
|
5681
|
+
blockActions: ne,
|
|
5682
|
+
conditionPreview: re,
|
|
5683
|
+
autoSave: ie,
|
|
5547
5684
|
resolvedTheme: D,
|
|
5548
|
-
themeStyles:
|
|
5685
|
+
themeStyles: te,
|
|
5549
5686
|
themeOverrides: O,
|
|
5550
|
-
registry:
|
|
5551
|
-
|
|
5552
|
-
|
|
5687
|
+
registry: se,
|
|
5688
|
+
keyboardReorder: oe,
|
|
5689
|
+
registerCustomBlocks: j,
|
|
5690
|
+
destroy: N
|
|
5553
5691
|
};
|
|
5554
5692
|
}
|
|
5555
5693
|
//#endregion
|
|
5556
|
-
export {
|
|
5694
|
+
export { Mt as A, Kt as C, Rt as D, zt as E, dt as F, ot as I, ct as L, At as M, Dt as N, It as O, Ct as P, qt as S, Ut as T, gn as _, qa as a, $t as b, La as c, Yn as d, In as f, Dn as g, jn as h, Xa as i, jt as j, Ft as k, Ma as l, Pn as m, po as n, Ra as o, Fn as p, no as r, Ba as s, ho as t, Zn as u, dn as v, Gt as w, Zt as x, ln as y };
|