@grapesjs/studio-sdk-plugins 1.0.35 → 1.0.36
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/accordionComponent/index.cjs.js +7 -7
- package/dist/accordionComponent/index.es.js +175 -162
- package/dist/accordionComponent/index.umd.js +7 -7
- package/dist/aiChat/index.cjs.js +64 -64
- package/dist/aiChat/index.es.js +5785 -5757
- package/dist/aiChat/index.js +64 -64
- package/dist/aiChat/index.umd.js +63 -63
- package/dist/animationComponent/index.cjs.js +3 -3
- package/dist/animationComponent/index.es.js +204 -191
- package/dist/animationComponent/index.umd.js +3 -3
- package/dist/canvasAbsoluteMode/index.cjs.js +1 -1
- package/dist/canvasAbsoluteMode/index.es.js +183 -170
- package/dist/canvasAbsoluteMode/index.umd.js +1 -1
- package/dist/canvasEmptyState/index.cjs.js +1 -1
- package/dist/canvasEmptyState/index.es.js +134 -121
- package/dist/canvasEmptyState/index.umd.js +1 -1
- package/dist/canvasFullSize/index.cjs.js +9 -9
- package/dist/canvasFullSize/index.es.js +165 -152
- package/dist/canvasFullSize/index.umd.js +9 -9
- package/dist/canvasGridMode/index.cjs.js +5 -5
- package/dist/canvasGridMode/index.es.js +245 -232
- package/dist/canvasGridMode/index.umd.js +4 -4
- package/dist/canvasScreenshot/index.cjs.js +1 -1
- package/dist/canvasScreenshot/index.es.js +155 -142
- package/dist/canvasScreenshot/index.umd.js +1 -1
- package/dist/dataSourceEjs/index.cjs.js +9 -9
- package/dist/dataSourceEjs/index.es.js +257 -244
- package/dist/dataSourceEjs/index.umd.js +9 -9
- package/dist/dataSourceHandlebars/index.cjs.js +8 -8
- package/dist/dataSourceHandlebars/index.es.js +216 -203
- package/dist/dataSourceHandlebars/index.umd.js +7 -7
- package/dist/dialogComponent/index.cjs.js +14 -14
- package/dist/dialogComponent/index.es.js +141 -128
- package/dist/dialogComponent/index.umd.js +14 -14
- package/dist/flexComponent/index.cjs.js +13 -13
- package/dist/flexComponent/index.es.js +484 -471
- package/dist/flexComponent/index.umd.js +13 -13
- package/dist/fsLightboxComponent/index.cjs.js +3 -3
- package/dist/fsLightboxComponent/index.es.js +173 -160
- package/dist/fsLightboxComponent/index.umd.js +3 -3
- package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
- package/dist/googleFontsAssetProvider/index.es.js +160 -147
- package/dist/googleFontsAssetProvider/index.umd.js +1 -1
- package/dist/iconifyComponent/index.cjs.js +2 -2
- package/dist/iconifyComponent/index.es.js +196 -183
- package/dist/iconifyComponent/index.umd.js +2 -2
- package/dist/index.cjs.js +25 -25
- package/dist/index.es.js +121 -108
- package/dist/index.umd.js +18 -18
- package/dist/layoutSidebarButtons/index.cjs.js +1 -1
- package/dist/layoutSidebarButtons/index.es.js +157 -144
- package/dist/layoutSidebarButtons/index.umd.js +1 -1
- package/dist/lightGalleryComponent/index.cjs.js +1 -1
- package/dist/lightGalleryComponent/index.es.js +245 -232
- package/dist/lightGalleryComponent/index.umd.js +1 -1
- package/dist/linkImageComponent/index.cjs.js +2 -2
- package/dist/linkImageComponent/index.es.js +106 -93
- package/dist/linkImageComponent/index.umd.js +2 -2
- package/dist/listPagesComponent/index.cjs.js +5 -5
- package/dist/listPagesComponent/index.es.js +157 -144
- package/dist/listPagesComponent/index.umd.js +5 -5
- package/dist/presetPrintable/index.cjs.js +3 -3
- package/dist/presetPrintable/index.es.js +181 -168
- package/dist/presetPrintable/index.umd.js +3 -3
- package/dist/prosemirror/index.cjs.js +7 -7
- package/dist/prosemirror/index.es.js +385 -372
- package/dist/prosemirror/index.umd.js +8 -8
- package/dist/rendererReact/index.cjs.js +1 -1
- package/dist/rendererReact/index.es.js +200 -187
- package/dist/rendererReact/index.js +1 -1
- package/dist/rendererReact/index.umd.js +1 -1
- package/dist/rteTinyMce/index.cjs.js +2 -2
- package/dist/rteTinyMce/index.es.js +118 -105
- package/dist/rteTinyMce/index.umd.js +2 -2
- package/dist/shapeDividerComponent/index.cjs.js +4 -4
- package/dist/shapeDividerComponent/index.es.js +129 -116
- package/dist/shapeDividerComponent/index.umd.js +4 -4
- package/dist/swiperComponent/index.cjs.js +9 -9
- package/dist/swiperComponent/index.es.js +203 -190
- package/dist/swiperComponent/index.umd.js +7 -7
- package/dist/tableComponent/index.cjs.js +1 -1
- package/dist/tableComponent/index.es.js +257 -244
- package/dist/tableComponent/index.umd.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/youtubeAssetProvider/index.cjs.js +1 -1
- package/dist/youtubeAssetProvider/index.es.js +121 -108
- package/dist/youtubeAssetProvider/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12,8 +12,8 @@ const Ra = "app.grapesjs.com", Da = "app-stage.grapesjs.com", Ep = "app2.grapesj
|
|
|
12
12
|
// For stackblitz.com demos
|
|
13
13
|
"-sandpack.codesandbox.io"
|
|
14
14
|
// For Sandpack demos
|
|
15
|
-
], Mp = "license:check:
|
|
16
|
-
const t =
|
|
15
|
+
], Mp = "license:check:end", Ap = () => typeof window < "u", nr = (n, e = {}) => {
|
|
16
|
+
const t = Lp(n) ? { id: n, src: n } : n;
|
|
17
17
|
return new Promise((o, s) => {
|
|
18
18
|
var u, h;
|
|
19
19
|
const { loadedScripts: r } = e, { id: i, src: l } = t, a = document.querySelector(`script[src="${l}"]`);
|
|
@@ -35,26 +35,26 @@ const Ra = "app.grapesjs.com", Da = "app-stage.grapesjs.com", Ep = "app2.grapesj
|
|
|
35
35
|
s(i), d();
|
|
36
36
|
}, document.head.appendChild(p), (h = e.onScript) == null || h.call(e, p);
|
|
37
37
|
});
|
|
38
|
-
},
|
|
38
|
+
}, Pp = (n) => {
|
|
39
39
|
const e = n.map((t) => nr(t));
|
|
40
40
|
return Promise.allSettled(e);
|
|
41
|
-
},
|
|
41
|
+
}, Np = async (n) => {
|
|
42
42
|
const e = window.define;
|
|
43
43
|
window.define = void 0;
|
|
44
|
-
const t = await
|
|
44
|
+
const t = await Pp(n);
|
|
45
45
|
return window.define = e, t;
|
|
46
|
-
},
|
|
46
|
+
}, Ip = ({
|
|
47
47
|
isDev: n,
|
|
48
48
|
isStage: e,
|
|
49
49
|
isPlatform: t
|
|
50
|
-
}) => `${n ? "" : `https://${e ? Da : Ra}`}/${t ? "platform-api" : "api"}`,
|
|
51
|
-
const n =
|
|
50
|
+
}) => `${n ? "" : `https://${e ? Da : Ra}`}/${t ? "platform-api" : "api"}`, Op = () => {
|
|
51
|
+
const n = Ap() && window.location.hostname;
|
|
52
52
|
return !!n && (ki.includes(n) || ki.some((e) => n.endsWith(e)));
|
|
53
|
-
},
|
|
53
|
+
}, Rp = (n) => n.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (e, t) => (t ? "-" : "") + e.toLowerCase()), Dp = (n) => typeof n < "u", Lp = (n) => typeof n == "string";
|
|
54
54
|
function _t(n) {
|
|
55
55
|
return typeof n == "function";
|
|
56
56
|
}
|
|
57
|
-
async function
|
|
57
|
+
async function $p({
|
|
58
58
|
path: n,
|
|
59
59
|
baseApiUrl: e,
|
|
60
60
|
method: t = "GET",
|
|
@@ -62,7 +62,7 @@ async function zp({
|
|
|
62
62
|
params: s,
|
|
63
63
|
body: r
|
|
64
64
|
}) {
|
|
65
|
-
const l = `${e ||
|
|
65
|
+
const l = `${e || Ip({ isDev: !1, isStage: !1 })}${n}`, a = {
|
|
66
66
|
method: t,
|
|
67
67
|
headers: {
|
|
68
68
|
"Content-Type": "application/json",
|
|
@@ -75,19 +75,19 @@ async function zp({
|
|
|
75
75
|
throw new Error(`HTTP error! status: ${p.status}`);
|
|
76
76
|
return p.json();
|
|
77
77
|
}
|
|
78
|
-
var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), La = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(La || {}),
|
|
78
|
+
var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), La = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(La || {}), _ = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.dialogExportCode = "studio:dialogExportCode", n.dialogImportCode = "studio:dialogImportCode", n.sidebarLeftSet = "studio:sidebarLeft:set", n.sidebarLeftGet = "studio:sidebarLeft:get", n.sidebarLeftToggle = "studio:sidebarLeft:toggle", n.sidebarRightSet = "studio:sidebarRight:set", n.sidebarRightGet = "studio:sidebarRight:get", n.sidebarRightToggle = "studio:sidebarRight:toggle", n.sidebarTopSet = "studio:sidebarTop:set", n.sidebarTopGet = "studio:sidebarTop:get", n.sidebarTopToggle = "studio:sidebarTop:toggle", n.sidebarBottomSet = "studio:sidebarBottom:set", n.sidebarBottomGet = "studio:sidebarBottom:get", n.sidebarBottomToggle = "studio:sidebarBottom:toggle", n.symbolAdd = "studio:symbolAdd", n.symbolDetach = "studio:symbolDetach", n.symbolOverride = "studio:symbolOverride", n.symbolPropagateStyles = "studio:propagateStyles", n.getPagesConfig = "studio:getPagesConfig", n.setPagesConfig = "studio:setPagesConfig", n.getPageSettings = "studio:getPageSettings", n.setPageSettings = "studio:setPageSettings", n.clearPage = "studio:clearPage", n.projectFiles = "studio:projectFiles", n.validateCode = "studio:validateCode", n.canvasReload = "studio:canvasReload", n.getBlocksPanel = "studio:getBlocksPanel", n.setBlocksPanel = "studio:setBlocksPanel", n.getStateContextMenu = "studio:getStateContextMenu", n.setStateContextMenu = "studio:setStateContextMenu", n.contextMenuComponent = "studio:contextMenuComponent", n.layoutAdd = "studio:layoutAdd", n.layoutRemove = "studio:layoutRemove", n.layoutToggle = "studio:layoutToggle", n.layoutUpdate = "studio:layoutUpdate", n.layoutGet = "studio:layoutGet", n.layoutConfigGet = "studio:layoutConfigGet", n.layoutConfigSet = "studio:layoutConfigSet", n.layoutComponentAdd = "studio:layoutComponentAdd", n.layoutComponentGet = "studio:layoutComponentGet", n.layoutComponentRemove = "studio:layoutComponentRemove", n.layoutComponentRender = "studio:layoutComponentRender", n.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", n.settings = "studio:settings", n.assetProviderGet = "studio:assetProviderGet", n.assetProviderAdd = "studio:assetProviderAdd", n.assetProviderRemove = "studio:assetProviderRemove", n.fontGet = "studio:fontGet", n.fontAdd = "studio:fontAdd", n.fontRemove = "studio:fontRemove", n.fontManagerOpen = "studio:fontManagerOpen", n.menuFontLoad = "studio:menuFontLoad", n.toggleStateDataSource = "studio:toggleStateDataSource", n.getStateDataSource = "studio:getStateDataSource", n.dataSourceSetGlobalData = "studio:dataSourceSetGlobalData", n.dataSourceSetImporter = "studio:dataSourceSetImporter", n.dataSourceSetExporter = "studio:dataSourceSetExporter", n.setDragAbsolute = "studio:setDragAbsolute", n))(_ || {}), $a = /* @__PURE__ */ ((n) => (n.layoutToggleId = "studio:layoutToggle:", n.toggleBlocksPanel = "studio:toggleBlocksPanel", n.pageSettingsUpdate = "studio:pageSettingsUpdate", n.toggleDataSourcesPreview = "studio:toggleDataSourcesPreview", n))($a || {}), za = /* @__PURE__ */ ((n) => (n.dark = "dark", n.light = "light", n.auto = "auto", n))(za || {}), Va = /* @__PURE__ */ ((n) => (n.web = "web", n.email = "email", n.document = "document", n.react = "react", n))(Va || {});
|
|
79
79
|
const Ei = {
|
|
80
80
|
[H.free]: 0,
|
|
81
81
|
[H.startup]: 10,
|
|
82
82
|
[H.business]: 20,
|
|
83
83
|
[H.enterprise]: 30
|
|
84
84
|
};
|
|
85
|
-
function
|
|
85
|
+
function zp(n) {
|
|
86
86
|
const e = n;
|
|
87
87
|
return e.init = (t) => (o) => n(o, t), e;
|
|
88
88
|
}
|
|
89
|
-
const
|
|
90
|
-
async function
|
|
89
|
+
const G = (n) => /* @__PURE__ */ zp(n);
|
|
90
|
+
async function W({
|
|
91
91
|
editor: n,
|
|
92
92
|
plan: e,
|
|
93
93
|
pluginName: t,
|
|
@@ -95,38 +95,51 @@ async function G({
|
|
|
95
95
|
onLicenseCheckResponse: s,
|
|
96
96
|
cleanup: r
|
|
97
97
|
}) {
|
|
98
|
-
let i = "", l
|
|
99
|
-
const a =
|
|
98
|
+
let i = "", l;
|
|
99
|
+
const a = (p) => {
|
|
100
100
|
console.warn("Cleanup plugin:", t, "Reason:", p), r();
|
|
101
|
-
},
|
|
101
|
+
}, c = (p = {}) => {
|
|
102
102
|
var g;
|
|
103
103
|
const { error: u, sdkLicense: h } = p, f = (g = p.plan) == null ? void 0 : g.category;
|
|
104
104
|
if (!(h || p.license) || u)
|
|
105
|
-
|
|
105
|
+
a(u || "Invalid license");
|
|
106
106
|
else if (f) {
|
|
107
107
|
const b = Ei[e], C = Ei[f];
|
|
108
|
-
b > C &&
|
|
108
|
+
b > C && a({ pluginRequiredPlan: e, licensePlan: f });
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
|
-
n.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if (
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
111
|
+
n.Commands.has(_.settings) && (l = n.runCommand(_.settings), i = (l == null ? void 0 : l.baseUrl) || "");
|
|
112
|
+
const d = (p) => {
|
|
113
|
+
s == null || s(p), p && c(p);
|
|
114
|
+
};
|
|
115
|
+
if (!l) {
|
|
116
|
+
n.onReady(async () => {
|
|
117
|
+
if (!Op())
|
|
118
|
+
if (o) {
|
|
119
|
+
const p = await Bp({ licenseKey: o, pluginName: t, baseApiUrl: i });
|
|
120
|
+
d(p);
|
|
121
|
+
} else
|
|
122
|
+
a("The `licenseKey` option not provided");
|
|
123
|
+
});
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (l.licensePlan || l.licenseError) {
|
|
127
|
+
const p = Vp(l);
|
|
128
|
+
d(p);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
n.on(Mp, (p) => d(p));
|
|
125
132
|
}
|
|
133
|
+
const Vp = (n) => ({
|
|
134
|
+
sdkLicense: n.license,
|
|
135
|
+
license: n.license,
|
|
136
|
+
error: n.licenseError,
|
|
137
|
+
plan: n.licensePlan
|
|
138
|
+
});
|
|
126
139
|
async function Bp(n) {
|
|
127
140
|
const { licenseKey: e, pluginName: t, baseApiUrl: o } = n;
|
|
128
141
|
try {
|
|
129
|
-
return (await
|
|
142
|
+
return (await $p({
|
|
130
143
|
baseApiUrl: o,
|
|
131
144
|
path: `/sdk/${e || "na"}`,
|
|
132
145
|
method: "POST",
|
|
@@ -153,7 +166,7 @@ const Po = (n, e) => {
|
|
|
153
166
|
const t = {}, o = [], s = [];
|
|
154
167
|
for (const i in n) {
|
|
155
168
|
const { value: l, ...a } = n[i];
|
|
156
|
-
o.push({ id: i, name: i, changeProp: !0, category: e.category, ...a }), t[i] = l, !
|
|
169
|
+
o.push({ id: i, name: i, changeProp: !0, category: e.category, ...a }), t[i] = l, !Dp(l) && s.push(i);
|
|
157
170
|
const { subTraits: c = {} } = a;
|
|
158
171
|
for (const d in a.subTraits)
|
|
159
172
|
(r = c[d]) == null || r.forEach((p) => {
|
|
@@ -187,7 +200,7 @@ const Po = (n, e) => {
|
|
|
187
200
|
r.setAttribute(n, "true"), r.innerHTML = e, !s.contains(r) && s.appendChild(r);
|
|
188
201
|
}, _p = (n, e) => {
|
|
189
202
|
e.forEach((t) => {
|
|
190
|
-
const o =
|
|
203
|
+
const o = Rp(t);
|
|
191
204
|
o !== t && n.has(o) && n.set({ [t]: n.get(o), [o]: void 0 });
|
|
192
205
|
});
|
|
193
206
|
}, Me = "gjs-plg-", Bo = "data-gs-plg-", Re = "data-type-role", Mi = (...n) => n.map((e) => `[data-gjs-type="${e}"]`).join(","), Gp = "dialogComponent", Wp = function(n, e = {}) {
|
|
@@ -453,7 +466,7 @@ const Po = (n, e) => {
|
|
|
453
466
|
});
|
|
454
467
|
}
|
|
455
468
|
}
|
|
456
|
-
}),
|
|
469
|
+
}), W({
|
|
457
470
|
editor: n,
|
|
458
471
|
licenseKey: s,
|
|
459
472
|
plan: H.startup,
|
|
@@ -462,7 +475,7 @@ const Po = (n, e) => {
|
|
|
462
475
|
t.remove(r), o.removeType(r);
|
|
463
476
|
}
|
|
464
477
|
});
|
|
465
|
-
}, Pb =
|
|
478
|
+
}, Pb = G(Wp), jp = "iconifyComponent", qp = H.startup, Up = { ratioDefault: !0, tc: !1, cl: !1, cr: !1, bc: !1 }, ks = `<svg viewBox="0 0 24 24">
|
|
466
479
|
<path d="M19 0H9C7.9 0 7 .9 7 2V18C7 19.1 7.9 20 9 20H19C20.1 20 21 19.1 21 18V2C21 .9 20.1 0 19 0M19 18H9V2H19V18M3 4V22C3 23.1 3.9 24 5 24H17V22H5V4H3M14 5L11 10L14 15L17 10L14 5Z" />
|
|
467
480
|
</svg>`, Ba = "layout-icon-picker", Kp = "icons-layout-", Ha = "icons-list-layout", Fa = "gs-iconify-picker", Xr = "__iconify_collection", Jp = "https://api.iconify.design", Es = /* @__PURE__ */ new Map();
|
|
468
481
|
let fo;
|
|
@@ -475,7 +488,7 @@ async function _a({ collectionId: n, editor: e }) {
|
|
|
475
488
|
const o = await t.json();
|
|
476
489
|
return Es.set(n, o), o;
|
|
477
490
|
} catch (t) {
|
|
478
|
-
console.error("Error fetching collection", t), e.runCommand(
|
|
491
|
+
console.error("Error fetching collection", t), e.runCommand(_.toastAdd, nu());
|
|
479
492
|
return;
|
|
480
493
|
}
|
|
481
494
|
}
|
|
@@ -486,7 +499,7 @@ async function Yp({ collectionIds: n, editor: e }) {
|
|
|
486
499
|
if (!o.ok) throw new Error(`Failed to fetch collections: ${o.statusText}`);
|
|
487
500
|
return fo = await o.json(), fo;
|
|
488
501
|
} catch (t) {
|
|
489
|
-
console.error("Error fetching collections", t), e.runCommand(
|
|
502
|
+
console.error("Error fetching collections", t), e.runCommand(_.toastAdd, Wa());
|
|
490
503
|
return;
|
|
491
504
|
}
|
|
492
505
|
}
|
|
@@ -508,7 +521,7 @@ async function Xp({ collectionIds: n, editor: e, component: t }) {
|
|
|
508
521
|
const s = ({ icon: a, collectionId: c, iconId: d }) => {
|
|
509
522
|
t.components(a), t.set({ collectionId: c, iconId: d });
|
|
510
523
|
}, r = Object.entries(o).map(([a, c]) => ({ id: a, ...c })).sort((a, c) => a.name.localeCompare(c.name)), i = t.get("collectionId") ?? r[0].id;
|
|
511
|
-
e.runCommand(
|
|
524
|
+
e.runCommand(_.layoutToggle, {
|
|
512
525
|
id: Ba,
|
|
513
526
|
placer: { type: "dialog", size: "l", title: "Select Icon" },
|
|
514
527
|
header: !1,
|
|
@@ -542,7 +555,7 @@ function Qp(n) {
|
|
|
542
555
|
}
|
|
543
556
|
function or(n) {
|
|
544
557
|
const { editor: e } = n;
|
|
545
|
-
e.runCommand(
|
|
558
|
+
e.runCommand(_.layoutUpdate, {
|
|
546
559
|
id: Kp,
|
|
547
560
|
layout: tu(n),
|
|
548
561
|
header: !1,
|
|
@@ -624,7 +637,7 @@ function tu({
|
|
|
624
637
|
const b = h.cloneNode(!0);
|
|
625
638
|
b.removeAttribute("style");
|
|
626
639
|
const C = b.outerHTML;
|
|
627
|
-
t({ icon: C, collectionId: i, iconId: a.name }), d == null || d.runCommand(
|
|
640
|
+
t({ icon: C, collectionId: i, iconId: a.name }), d == null || d.runCommand(_.layoutRemove, { id: Ba });
|
|
628
641
|
}
|
|
629
642
|
],
|
|
630
643
|
[
|
|
@@ -713,7 +726,7 @@ const ou = function(n, e = {}) {
|
|
|
713
726
|
view: u
|
|
714
727
|
});
|
|
715
728
|
}
|
|
716
|
-
|
|
729
|
+
W({
|
|
717
730
|
editor: n,
|
|
718
731
|
licenseKey: i,
|
|
719
732
|
plan: qp,
|
|
@@ -722,7 +735,7 @@ const ou = function(n, e = {}) {
|
|
|
722
735
|
o.remove(c), t.removeType(c);
|
|
723
736
|
}
|
|
724
737
|
});
|
|
725
|
-
}, Nb =
|
|
738
|
+
}, Nb = G(ou);
|
|
726
739
|
function jn(n, e, t) {
|
|
727
740
|
let o, s, r, i, l;
|
|
728
741
|
const a = e === void 0 ? 100 : e;
|
|
@@ -791,7 +804,7 @@ const V = {
|
|
|
791
804
|
},
|
|
792
805
|
...e
|
|
793
806
|
};
|
|
794
|
-
_t(s.openSettings) ? s.openSettings({ ...n, layoutProps: d }) : t.runCommand(
|
|
807
|
+
_t(s.openSettings) ? s.openSettings({ ...n, layoutProps: d }) : t.runCommand(_.layoutToggle, d);
|
|
795
808
|
}, au = (n, {
|
|
796
809
|
rows: e = 1,
|
|
797
810
|
cells: t = 5,
|
|
@@ -1409,7 +1422,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1409
1422
|
const d = a.map((u) => u.is(q) ? u : u.closestType(q)).filter(Boolean);
|
|
1410
1423
|
d.length === a.length && Mu(d);
|
|
1411
1424
|
}, 0);
|
|
1412
|
-
n.on("component:select", r),
|
|
1425
|
+
n.on("component:select", r), W({
|
|
1413
1426
|
editor: n,
|
|
1414
1427
|
plan: ru,
|
|
1415
1428
|
pluginName: su,
|
|
@@ -1418,7 +1431,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1418
1431
|
n.off("component:select", r), n.Blocks.remove(Ge), iu.forEach((i) => o.removeType(i));
|
|
1419
1432
|
}
|
|
1420
1433
|
});
|
|
1421
|
-
}, Ib =
|
|
1434
|
+
}, Ib = G(Au), Pu = "listPagesComponent", Nu = H.startup, Ri = "page://", St = "list-pages", jt = "list-pages-item", xt = "list-pages-link", Iu = (n) => n.components().reduce(
|
|
1422
1435
|
(e, t) => {
|
|
1423
1436
|
var i;
|
|
1424
1437
|
const o = t.findFirstType(xt), s = (i = o == null ? void 0 : o.attributes.attributes) == null ? void 0 : i.href, r = s != null && s.startsWith(Ri) ? s.replace(Ri, "") : "";
|
|
@@ -1518,7 +1531,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1518
1531
|
`
|
|
1519
1532
|
}
|
|
1520
1533
|
}
|
|
1521
|
-
}),
|
|
1534
|
+
}), W({
|
|
1522
1535
|
editor: n,
|
|
1523
1536
|
licenseKey: r,
|
|
1524
1537
|
plan: Nu,
|
|
@@ -1527,7 +1540,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1527
1540
|
t.remove(St), o.removeType(St);
|
|
1528
1541
|
}
|
|
1529
1542
|
});
|
|
1530
|
-
}, Ob =
|
|
1543
|
+
}, Ob = G(Lu), $u = "fsLightboxComponent", zu = H.startup, mo = "data-fslightbox", go = "data-type", Vu = "fslightbox-open", qt = "fslightbox", Ut = {
|
|
1531
1544
|
image: '<svg viewBox="0 0 24 24"><path d="m8.5 13.5 2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Z"/></svg>',
|
|
1532
1545
|
video: '<svg viewBox="0 0 24 24"><path d="M17 10.5V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-3.5l4 4v-11l-4 4Z"/></svg>',
|
|
1533
1546
|
imageLightbox: '<svg viewBox="0 0 24 24"><path d="M4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H16L12,22L8,18H4A2,2 0 0,1 2,16V4A2,2 0 0,1 4,2M19,15V7L15,11L13,9L7,15H19M7,5A2,2 0 0,0 5,7A2,2 0 0,0 7,9A2,2 0 0,0 9,7A2,2 0 0,0 7,5Z" /></svg>',
|
|
@@ -1704,7 +1717,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1704
1717
|
}
|
|
1705
1718
|
}
|
|
1706
1719
|
}
|
|
1707
|
-
}),
|
|
1720
|
+
}), W({
|
|
1708
1721
|
editor: n,
|
|
1709
1722
|
plan: zu,
|
|
1710
1723
|
licenseKey: i.licenseKey,
|
|
@@ -1713,7 +1726,7 @@ const ic = "Cell settings", vu = "Merge cells", Su = "Split cell", xu = (n) => n
|
|
|
1713
1726
|
t.remove(qt), o.removeType(qt);
|
|
1714
1727
|
}
|
|
1715
1728
|
});
|
|
1716
|
-
}, Rb =
|
|
1729
|
+
}, Rb = G(Bu), Hu = "lightGalleryComponent", Fu = H.startup;
|
|
1717
1730
|
var Yt = /* @__PURE__ */ ((n) => (n.image = "image", n.video = "video", n.external = "external", n))(Yt || {});
|
|
1718
1731
|
const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${Io}-item`, Ho = "toggle", Tt = {
|
|
1719
1732
|
image: '<svg viewBox="0 0 24 24"><path d="m8.5 13.5 2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2Z"/></svg>',
|
|
@@ -2340,7 +2353,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
2340
2353
|
y[yo] ? this.set(nt, Yt.external) : (y[Fo.name] || y[ar.name]) && this.set(nt, Yt.video);
|
|
2341
2354
|
}
|
|
2342
2355
|
}
|
|
2343
|
-
}),
|
|
2356
|
+
}), W({
|
|
2344
2357
|
editor: n,
|
|
2345
2358
|
plan: Fu,
|
|
2346
2359
|
licenseKey: i.licenseKey,
|
|
@@ -2349,7 +2362,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
2349
2362
|
t.remove(Ct), o.removeType(Ct);
|
|
2350
2363
|
}
|
|
2351
2364
|
});
|
|
2352
|
-
}, Db =
|
|
2365
|
+
}, Db = G(Ju), Oe = "swiper", qn = `${Oe}-slide`, sn = `${Oe}-wrapper`, rn = `${Oe}-nav-prev`, _o = `${Oe}-nav-next`, ln = `${Oe}-pagination`, Dn = `${Oe}-scrollbar`, ce = {
|
|
2353
2366
|
slider: `<svg viewBox="0 0 24 24">
|
|
2354
2367
|
<path d="M22 7.6c0-1-.5-1.6-1.3-1.6H3.4C2.5 6 2 6.7 2 7.6v9.8c0 1 .5 1.6 1.3 1.6h17.4c.8 0 1.3-.6 1.3-1.6V7.6zM21 18H3V7h18v11z" fill-rule="nonzero"/>
|
|
2355
2368
|
<path d="M4 12.5L6 14v-3zM20 12.5L18 14v-3z"/>
|
|
@@ -3283,7 +3296,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
3283
3296
|
th(n),
|
|
3284
3297
|
oh(n)
|
|
3285
3298
|
];
|
|
3286
|
-
|
|
3299
|
+
W({
|
|
3287
3300
|
editor: n,
|
|
3288
3301
|
plan: ch,
|
|
3289
3302
|
licenseKey: t.licenseKey,
|
|
@@ -3292,7 +3305,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
3292
3305
|
o.forEach((s) => s());
|
|
3293
3306
|
}
|
|
3294
3307
|
});
|
|
3295
|
-
}, Lb =
|
|
3308
|
+
}, Lb = G(dh), me = "accordion", kn = `${me}-group`, Qe = `${me}-header`, at = `${me}-content`, Mt = `${me}-marker`, qi = `${Me}${Qe}`, dr = `${Me}${Mt}`, ph = `${Me}${at}`, cc = `${dr}-open`, zt = {
|
|
3296
3309
|
accordion: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M5.616 20q-.691 0-1.153-.462T4 18.384V5.616q0-.691.463-1.153T5.616 4h12.769q.69 0 1.153.463T20 5.616v12.769q0 .69-.462 1.153T18.384 20zm0-1h12.769q.23 0 .423-.192t.192-.424V8.154H5v10.23q0 .232.192.424t.423.192"/></svg>',
|
|
3297
3310
|
accordionGroup: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M8.116 16h10.769q.23 0 .423-.192t.192-.423V6h-12v9.385q0 .23.192.423t.423.192m0 1q-.69 0-1.153-.462T6.5 15.385V4.615q0-.69.463-1.153T8.116 3h10.769q.69 0 1.153.462t.462 1.153v10.77q0 .69-.462 1.152T18.884 17zm-3 3q-.69 0-1.153-.462T3.5 18.385V6.615h1v11.77q0 .23.192.423t.423.192h11.77v1zM7.5 4v12z"/></svg>',
|
|
3298
3311
|
accordionHeader: '<svg viewBox="0 0 24 24"><path fill="currentColor" d="M5.616 20q-.691 0-1.153-.462T4 18.384V5.616q0-.691.463-1.153T5.616 4h12.769q.69 0 1.153.463T20 5.616v12.769q0 .69-.462 1.153T18.384 20zm0-1h12.769q.23 0 .423-.192t.192-.424V5.616q0-.231-.192-.424T18.384 5H5.616q-.231 0-.424.192T5 5.616v12.769q0 .23.192.423t.423.192M5 5v14zm2.616 4.192h6q.413 0 .706-.293q.294-.293.294-.707t-.294-.706q-.293-.294-.706-.294h-6q-.414 0-.707.294t-.293.706t.293.707t.707.293"/></svg>',
|
|
@@ -3536,7 +3549,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
3536
3549
|
gh(n),
|
|
3537
3550
|
hh(n)
|
|
3538
3551
|
];
|
|
3539
|
-
|
|
3552
|
+
W({
|
|
3540
3553
|
editor: n,
|
|
3541
3554
|
licenseKey: e.licenseKey,
|
|
3542
3555
|
plan: bh,
|
|
@@ -3545,7 +3558,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
|
|
|
3545
3558
|
t.forEach((o) => o());
|
|
3546
3559
|
}
|
|
3547
3560
|
});
|
|
3548
|
-
}, $b =
|
|
3561
|
+
}, $b = G(vh), _n = class _n {
|
|
3549
3562
|
constructor(e) {
|
|
3550
3563
|
this.config = e;
|
|
3551
3564
|
}
|
|
@@ -4138,7 +4151,7 @@ const Hh = function(n, e = {}) {
|
|
|
4138
4151
|
minItemPercent: 5,
|
|
4139
4152
|
...e
|
|
4140
4153
|
}, o = [Ih(n, t), Nh(n, t)], s = Bh(n, t), r = Ph(n, t);
|
|
4141
|
-
|
|
4154
|
+
W({
|
|
4142
4155
|
editor: n,
|
|
4143
4156
|
licenseKey: t.licenseKey,
|
|
4144
4157
|
plan: Rh,
|
|
@@ -4147,7 +4160,7 @@ const Hh = function(n, e = {}) {
|
|
|
4147
4160
|
o.forEach((i) => i == null ? void 0 : i()), s(), r == null || r();
|
|
4148
4161
|
}
|
|
4149
4162
|
});
|
|
4150
|
-
}, zb =
|
|
4163
|
+
}, zb = G(Hh);
|
|
4151
4164
|
var Ne = /* @__PURE__ */ ((n) => (n.name = "animation-name", n.duration = "animation-duration", n.delay = "animation-delay", n.iterationCount = "animation-iteration-count", n.timingFunction = "animation-timing-function", n.fillMode = "animation-fill-mode", n))(Ne || {}), an = /* @__PURE__ */ ((n) => (n.onScroll = "--animation-on-scroll", n.threshold = "--animation-threshold", n.repeat = "--animation-repeat", n))(an || {});
|
|
4152
4165
|
const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "animation-group:update", hc = {
|
|
4153
4166
|
category: { id: "animations", label: "Animations" },
|
|
@@ -5158,7 +5171,7 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
|
|
|
5158
5171
|
]
|
|
5159
5172
|
}
|
|
5160
5173
|
]
|
|
5161
|
-
}),
|
|
5174
|
+
}), W({
|
|
5162
5175
|
editor: n,
|
|
5163
5176
|
licenseKey: e.licenseKey,
|
|
5164
5177
|
plan: Kh,
|
|
@@ -5167,7 +5180,7 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
|
|
|
5167
5180
|
o.forEach((r) => r());
|
|
5168
5181
|
}
|
|
5169
5182
|
});
|
|
5170
|
-
}, Vb =
|
|
5183
|
+
}, Vb = G(Jh), Zh = "shapeDividerComponent", Yh = H.startup, Xh = function(n, e = {}) {
|
|
5171
5184
|
const { Components: t, Blocks: o, Selectors: s } = n, r = "shape-divider", i = `${r}-cnt`, l = `${Me}${r}`, a = `${Me}${i}`, c = [
|
|
5172
5185
|
{
|
|
5173
5186
|
id: "tilt",
|
|
@@ -5474,7 +5487,7 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
|
|
|
5474
5487
|
y && v ? S = w[2] : v ? S = w[1] : y && (S = w[0]), this.removeClass(w), S && this.addClass(S), this.set("resizable", y ? u : p);
|
|
5475
5488
|
}
|
|
5476
5489
|
}
|
|
5477
|
-
}),
|
|
5490
|
+
}), W({
|
|
5478
5491
|
editor: n,
|
|
5479
5492
|
licenseKey: e.licenseKey,
|
|
5480
5493
|
plan: Yh,
|
|
@@ -5483,7 +5496,7 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
|
|
|
5483
5496
|
t.removeType(r), o.remove(r);
|
|
5484
5497
|
}
|
|
5485
5498
|
});
|
|
5486
|
-
}, Bb =
|
|
5499
|
+
}, Bb = G(Xh), Qh = (n) => n.dispatchEvent(new CustomEvent("input")), ef = (n, e) => {
|
|
5487
5500
|
if (!e) return () => {
|
|
5488
5501
|
};
|
|
5489
5502
|
const t = "keydown", o = (r) => {
|
|
@@ -5642,7 +5655,7 @@ const tf = "rteTinyMce", nf = H.startup, of = `
|
|
|
5642
5655
|
n.execCommand("SelectAll");
|
|
5643
5656
|
}, af = (n) => {
|
|
5644
5657
|
var c, d;
|
|
5645
|
-
const { el: e, editor: t, componentView: o } = n, s = t.runCommand(
|
|
5658
|
+
const { el: e, editor: t, componentView: o } = n, s = t.runCommand(_.getStateTheme), r = o.model, i = {
|
|
5646
5659
|
target: e,
|
|
5647
5660
|
inline: !0,
|
|
5648
5661
|
skin: (s == null ? void 0 : s.theme) === za.dark ? "oxide-dark" : "oxide",
|
|
@@ -5700,9 +5713,9 @@ const tf = "rteTinyMce", nf = H.startup, of = `
|
|
|
5700
5713
|
v && (v == null ? void 0 : v.ownerDocument) !== document && (document.body.appendChild(v), b.once("CloseWindow", () => {
|
|
5701
5714
|
v && v.ownerDocument === document && u.body.appendChild(v);
|
|
5702
5715
|
}));
|
|
5703
|
-
}), d.addEventListener("dragstart", tl, { capture: !0 }), n.runCommand(
|
|
5716
|
+
}), d.addEventListener("dragstart", tl, { capture: !0 }), n.runCommand(_.setStateContextMenu, { enabled: !1 }), lf(b, p), { rteEditor: b, rteEditorShallow: y };
|
|
5704
5717
|
}, a = (d, p) => {
|
|
5705
|
-
d.ownerDocument.body.removeEventListener("mousedown", So), document.body.removeEventListener("mousedown", So), d.removeEventListener("dragstart", tl, { capture: !0 }), n.runCommand(
|
|
5718
|
+
d.ownerDocument.body.removeEventListener("mousedown", So), document.body.removeEventListener("mousedown", So), d.removeEventListener("dragstart", tl, { capture: !0 }), n.runCommand(_.setStateContextMenu, { enabled: !0 }), p.rteEditor.destroy(), p.rteEditorShallow.destroy();
|
|
5706
5719
|
};
|
|
5707
5720
|
n.on(s.frameLoad, async ({ window: d }) => {
|
|
5708
5721
|
const p = d.document;
|
|
@@ -5729,7 +5742,7 @@ const tf = "rteTinyMce", nf = H.startup, of = `
|
|
|
5729
5742
|
}
|
|
5730
5743
|
});
|
|
5731
5744
|
const c = gc(n, t.enableOnClick);
|
|
5732
|
-
|
|
5745
|
+
W({
|
|
5733
5746
|
editor: n,
|
|
5734
5747
|
licenseKey: t.licenseKey,
|
|
5735
5748
|
plan: nf,
|
|
@@ -5738,7 +5751,7 @@ const tf = "rteTinyMce", nf = H.startup, of = `
|
|
|
5738
5751
|
n.RichTextEditor.customRte = void 0, c();
|
|
5739
5752
|
}
|
|
5740
5753
|
});
|
|
5741
|
-
}, Hb =
|
|
5754
|
+
}, Hb = G(cf);
|
|
5742
5755
|
function X(n) {
|
|
5743
5756
|
this.content = n;
|
|
5744
5757
|
}
|
|
@@ -17543,7 +17556,7 @@ const E0 = (n, e) => {
|
|
|
17543
17556
|
}
|
|
17544
17557
|
}
|
|
17545
17558
|
};
|
|
17546
|
-
e.runCommand(
|
|
17559
|
+
e.runCommand(_.layoutToggle, h);
|
|
17547
17560
|
}
|
|
17548
17561
|
},
|
|
17549
17562
|
heading: {
|
|
@@ -17832,7 +17845,7 @@ const q0 = "rteProseMirror", U0 = H.free, ae = "rte:selectionchange", J = {
|
|
|
17832
17845
|
}
|
|
17833
17846
|
},
|
|
17834
17847
|
onClick: ({ event: c }) => {
|
|
17835
|
-
const d = c.currentTarget || c.target, p = "linkLayout", u = () => t.runCommand(
|
|
17848
|
+
const d = c.currentTarget || c.target, p = "linkLayout", u = () => t.runCommand(_.layoutRemove, { id: p }), h = r.link.get(), f = {
|
|
17836
17849
|
id: p,
|
|
17837
17850
|
style: { width: 240 },
|
|
17838
17851
|
disablePropagation: !0,
|
|
@@ -17893,7 +17906,7 @@ const q0 = "rteProseMirror", U0 = H.free, ae = "rte:selectionchange", J = {
|
|
|
17893
17906
|
]
|
|
17894
17907
|
}
|
|
17895
17908
|
};
|
|
17896
|
-
t.runCommand(
|
|
17909
|
+
t.runCommand(_.layoutToggle, f);
|
|
17897
17910
|
}
|
|
17898
17911
|
},
|
|
17899
17912
|
alignText: {
|
|
@@ -18210,7 +18223,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18210
18223
|
}
|
|
18211
18224
|
});
|
|
18212
18225
|
const r = gc(n, t.enableOnClick), i = ef(n, t.disableOnEsc);
|
|
18213
|
-
|
|
18226
|
+
W({
|
|
18214
18227
|
editor: n,
|
|
18215
18228
|
licenseKey: t.licenseKey,
|
|
18216
18229
|
plan: U0,
|
|
@@ -18219,7 +18232,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18219
18232
|
n.RichTextEditor.customRte = void 0, r(), i();
|
|
18220
18233
|
}
|
|
18221
18234
|
});
|
|
18222
|
-
}, Fb =
|
|
18235
|
+
}, Fb = G(Z0), Y0 = "canvasEmptyState", X0 = H.startup, Q0 = function(n, e = {}) {
|
|
18223
18236
|
const t = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new WeakMap(), l = {
|
|
18224
18237
|
emptyStates: [],
|
|
18225
18238
|
...e
|
|
@@ -18269,7 +18282,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18269
18282
|
}, h = ({ model: y }) => {
|
|
18270
18283
|
p(y.getComponent());
|
|
18271
18284
|
}, f = n.Components.events, m = `${f.update}:components`, g = "component:mount", b = n.Canvas.events.frameLoadBody, C = f.removed;
|
|
18272
|
-
n.on(m, p), n.on(g, p), n.on(C, u), n.on(b, h),
|
|
18285
|
+
n.on(m, p), n.on(g, p), n.on(C, u), n.on(b, h), W({
|
|
18273
18286
|
editor: n,
|
|
18274
18287
|
licenseKey: l.licenseKey,
|
|
18275
18288
|
plan: X0,
|
|
@@ -18278,7 +18291,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18278
18291
|
n.off(m, p), n.off(g, p), n.off(C, u), n.off(b, h);
|
|
18279
18292
|
}
|
|
18280
18293
|
});
|
|
18281
|
-
}, _b =
|
|
18294
|
+
}, _b = G(Q0), wa = "canvasFullSize", ey = H.startup, ty = (n, e) => {
|
|
18282
18295
|
const { rule: t, ruleView: o } = e, { style: s } = t.attributes;
|
|
18283
18296
|
if (s && s[n]) {
|
|
18284
18297
|
const r = s[n], i = /([0-9.]+)(vh|dvh|lvh|svh)/g, l = i.test(r), a = o.frameView.model;
|
|
@@ -18380,7 +18393,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18380
18393
|
E = t.getSpotsEl(), k = z.style, k.overflowX = "hidden", he.style.transition = `transform ${c}s`, document.removeEventListener("keypress", fe.onKeyPress), P(), M = new ResizeObserver(() => {
|
|
18381
18394
|
N(), F();
|
|
18382
18395
|
}), M.observe(z.parentElement), F();
|
|
18383
|
-
}),
|
|
18396
|
+
}), W({
|
|
18384
18397
|
editor: n,
|
|
18385
18398
|
licenseKey: i.licenseKey,
|
|
18386
18399
|
plan: ey,
|
|
@@ -18389,7 +18402,7 @@ const Z0 = function(n, e = {}) {
|
|
|
18389
18402
|
n.runCommand(v);
|
|
18390
18403
|
}
|
|
18391
18404
|
});
|
|
18392
|
-
}, Gb =
|
|
18405
|
+
}, Gb = G(oy), _r = "canvasGridMode", sy = H.startup, Gr = "component-grid-mode", no = "grid-mode", po = "gjs-drag-grid-spot", rp = `${po}__grid-item`, ip = `${po}__grid-target`, lp = `${po}__snapped`, ry = `${po}__container`, iy = () => {
|
|
18393
18406
|
const n = "data-gjs-drag-grid-style", e = document, t = "var(--gs-theme-cl-cmp-bg1, var(--gjs-color-highlight))", o = "var(--gs-theme-cl-cmp-bg2, var(--gjs-color-blue))", s = e.querySelector(`style[${n}]`) || e.createElement("style");
|
|
18394
18407
|
s.setAttribute(n, "true"), s.innerHTML = `
|
|
18395
18408
|
.${rp} {
|
|
@@ -18944,16 +18957,16 @@ const xy = function(n, e = {}) {
|
|
|
18944
18957
|
n.off(y, v);
|
|
18945
18958
|
});
|
|
18946
18959
|
};
|
|
18947
|
-
|
|
18960
|
+
W({
|
|
18948
18961
|
editor: n,
|
|
18949
18962
|
licenseKey: t.licenseKey,
|
|
18950
18963
|
plan: sy,
|
|
18951
18964
|
pluginName: _r,
|
|
18952
18965
|
cleanup: C
|
|
18953
18966
|
});
|
|
18954
|
-
}, Wb =
|
|
18967
|
+
}, Wb = G(xy), wy = "canvasScreenshot", Cy = H.startup;
|
|
18955
18968
|
var fp = /* @__PURE__ */ ((n) => (n.screenshot = "studioPlugin:screenshot", n))(fp || {});
|
|
18956
|
-
const ky = async (n) => await
|
|
18969
|
+
const ky = async (n) => await Np([{ id: "html-to-image", src: n }]), Ey = async (n, e = {}, t = {}) => {
|
|
18957
18970
|
const { cdnScript: o } = t;
|
|
18958
18971
|
if (!window.htmlToImage) {
|
|
18959
18972
|
if (!o) return;
|
|
@@ -19020,14 +19033,14 @@ const ky = async (n) => await Ip([{ id: "html-to-image", src: n }]), Ey = async
|
|
|
19020
19033
|
const a = () => {
|
|
19021
19034
|
delete t.commands[Qs], n.off(r, l);
|
|
19022
19035
|
};
|
|
19023
|
-
|
|
19036
|
+
W({
|
|
19024
19037
|
editor: n,
|
|
19025
19038
|
licenseKey: e.licenseKey,
|
|
19026
19039
|
plan: Cy,
|
|
19027
19040
|
pluginName: wy,
|
|
19028
19041
|
cleanup: a
|
|
19029
19042
|
});
|
|
19030
|
-
}, jb =
|
|
19043
|
+
}, jb = G(Ty);
|
|
19031
19044
|
var Be = /* @__PURE__ */ ((n) => (n.panelBlocks = "panelBlocks", n.panelPagesLayers = "panelPagesLayers", n.panelGlobalStyles = "panelGlobalStyles", n.panelSidebarTabs = "panelSidebarTabs", n.panelAssets = "panelAssets", n.aiChatPanel = "aiChatPanel", n.panelDataSources = "panelDataSources", n))(Be || {});
|
|
19032
19045
|
const mp = "sidebarButtonsTarget", Mo = (n, e) => {
|
|
19033
19046
|
const { id: t, icon: o, label: s, tooltip: r, className: i, skipSelfClose: l, removeLayouts: a, layoutComponent: c, layoutCommand: d } = n, { pluginOpts: p, breakpointProps: u } = e, h = t;
|
|
@@ -19063,11 +19076,11 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
|
|
|
19063
19076
|
layoutCommand: y,
|
|
19064
19077
|
sidebarButtonProps: n
|
|
19065
19078
|
})) || y;
|
|
19066
|
-
f.runCommand(
|
|
19079
|
+
f.runCommand(_.layoutToggle, { ...v });
|
|
19067
19080
|
}
|
|
19068
19081
|
};
|
|
19069
19082
|
}, gp = (n) => `button__${n}`, yp = (n, e = {}) => {
|
|
19070
|
-
(e.removeLayouts || Object.keys(Be)).forEach((o) => n.runCommand(
|
|
19083
|
+
(e.removeLayouts || Object.keys(Be)).forEach((o) => n.runCommand(_.layoutRemove, { id: o, layout: e.layout }));
|
|
19071
19084
|
}, bp = (n) => {
|
|
19072
19085
|
const e = (n == null ? void 0 : n.breakpointTablet) ?? 1024, t = (n == null ? void 0 : n.breakpointMobile) ?? 768, o = {}, s = [
|
|
19073
19086
|
{
|
|
@@ -19243,24 +19256,24 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
|
|
|
19243
19256
|
...e
|
|
19244
19257
|
};
|
|
19245
19258
|
(() => {
|
|
19246
|
-
if (n.runCommand(
|
|
19259
|
+
if (n.runCommand(_.layoutConfigGet) || s.skipLayoutConfig === !0) return;
|
|
19247
19260
|
const l = bp(s);
|
|
19248
|
-
n.runCommand(
|
|
19261
|
+
n.runCommand(_.layoutConfigSet, { ...l });
|
|
19249
19262
|
})(), t.add(`${Ta}:toggleButton`, (i, l, a) => {
|
|
19250
19263
|
const c = document.getElementById(gp(a == null ? void 0 : a.id));
|
|
19251
19264
|
c == null || c.click();
|
|
19252
19265
|
}), n.on(`${o.runCommand}core:preview`, () => {
|
|
19253
19266
|
yp(n);
|
|
19254
|
-
}),
|
|
19267
|
+
}), W({
|
|
19255
19268
|
editor: n,
|
|
19256
19269
|
licenseKey: s.licenseKey,
|
|
19257
19270
|
plan: My,
|
|
19258
19271
|
pluginName: Ta,
|
|
19259
19272
|
cleanup: () => {
|
|
19260
|
-
n.runCommand(
|
|
19273
|
+
n.runCommand(_.layoutConfigSet);
|
|
19261
19274
|
}
|
|
19262
19275
|
});
|
|
19263
|
-
}, Py =
|
|
19276
|
+
}, Py = G(Ay);
|
|
19264
19277
|
Py.createLayoutConfig = (n) => bp(n);
|
|
19265
19278
|
const wt = "page-break";
|
|
19266
19279
|
var Ae = /* @__PURE__ */ ((n) => (n.A5 = "a5", n.A5Portrait = "a5-portrait", n.A4 = "a4", n.A3 = "a3", n.B5 = "b5", n.B4 = "b4", n.letter = "letter", n.legal = "legal", n.ledger = "ledger", n))(Ae || {});
|
|
@@ -19390,7 +19403,7 @@ function Ry(n, e) {
|
|
|
19390
19403
|
// Avoid DataSource exporter
|
|
19391
19404
|
exporter: null
|
|
19392
19405
|
}
|
|
19393
|
-
}, c = (await t.run(
|
|
19406
|
+
}, c = (await t.run(_.projectFiles, l)).filter((u) => u.filename.endsWith(".html")), d = c.map((u) => u.content).join('<div style="break-before: page;"></div>'), p = [];
|
|
19394
19407
|
if (i.separatePrints)
|
|
19395
19408
|
for (const u of c)
|
|
19396
19409
|
p.push(await Ma(u));
|
|
@@ -19519,14 +19532,14 @@ const Ly = "presetPrintable", $y = H.free, zy = function(n, e = {}) {
|
|
|
19519
19532
|
const w = () => {
|
|
19520
19533
|
b.forEach(([x, k]) => n.off(x, k)), C(), y(), v();
|
|
19521
19534
|
};
|
|
19522
|
-
n.on(l.destroy, w),
|
|
19535
|
+
n.on(l.destroy, w), W({
|
|
19523
19536
|
editor: n,
|
|
19524
19537
|
licenseKey: t.licenseKey,
|
|
19525
19538
|
plan: $y,
|
|
19526
19539
|
pluginName: Ly,
|
|
19527
19540
|
cleanup: w
|
|
19528
19541
|
});
|
|
19529
|
-
}, qb =
|
|
19542
|
+
}, qb = G(zy), Vy = (n) => {
|
|
19530
19543
|
const e = n;
|
|
19531
19544
|
return e.logicalOperator === "and" || e.logicalOperator === "or";
|
|
19532
19545
|
}, vp = (n, e) => (n.config.optsHtml = {
|
|
@@ -20131,7 +20144,7 @@ const Wy = "dataSourceEjs", jy = H.startup, qy = function(n, e = {}) {
|
|
|
20131
20144
|
contains: "<%",
|
|
20132
20145
|
importer: new Gy()
|
|
20133
20146
|
});
|
|
20134
|
-
|
|
20147
|
+
W({
|
|
20135
20148
|
editor: n,
|
|
20136
20149
|
licenseKey: e.licenseKey,
|
|
20137
20150
|
plan: jy,
|
|
@@ -20140,7 +20153,7 @@ const Wy = "dataSourceEjs", jy = H.startup, qy = function(n, e = {}) {
|
|
|
20140
20153
|
t(), o();
|
|
20141
20154
|
}
|
|
20142
20155
|
});
|
|
20143
|
-
}, Ub =
|
|
20156
|
+
}, Ub = G(qy), xp = {
|
|
20144
20157
|
equals: "equals",
|
|
20145
20158
|
isTruthy: "isTruthy",
|
|
20146
20159
|
isFalsy: "isFalsy",
|
|
@@ -20451,7 +20464,7 @@ const Kr = (n) => {
|
|
|
20451
20464
|
contains: "{{",
|
|
20452
20465
|
importer: new Yy()
|
|
20453
20466
|
});
|
|
20454
|
-
|
|
20467
|
+
W({
|
|
20455
20468
|
editor: n,
|
|
20456
20469
|
licenseKey: e.licenseKey,
|
|
20457
20470
|
plan: Qy,
|
|
@@ -20460,7 +20473,7 @@ const Kr = (n) => {
|
|
|
20460
20473
|
t(), o();
|
|
20461
20474
|
}
|
|
20462
20475
|
});
|
|
20463
|
-
}, Kb =
|
|
20476
|
+
}, Kb = G(eb), tb = (n) => {
|
|
20464
20477
|
const e = {};
|
|
20465
20478
|
for (const t of Object.keys(n)) {
|
|
20466
20479
|
let o = n[t];
|
|
@@ -20552,7 +20565,7 @@ const Kr = (n) => {
|
|
|
20552
20565
|
}, sb = "youtubeAssetProvider", rb = H.startup, ib = function(n, e) {
|
|
20553
20566
|
var c;
|
|
20554
20567
|
const { skipVideoComponent: t, i18n: o = {} } = e, s = nb(e);
|
|
20555
|
-
n.runCommand(
|
|
20568
|
+
n.runCommand(_.assetProviderAdd, { provider: s });
|
|
20556
20569
|
const r = "search-on-youtube", i = "video", l = (c = n.Components.getType(i)) == null ? void 0 : c.model.prototype, a = (d) => {
|
|
20557
20570
|
n.Assets.open({
|
|
20558
20571
|
modalTitle: n.I18n.t("youtubeAssetProvider.modalTitle"),
|
|
@@ -20599,13 +20612,13 @@ const Kr = (n) => {
|
|
|
20599
20612
|
}), n.I18n.addMessages({
|
|
20600
20613
|
en: ob,
|
|
20601
20614
|
...o
|
|
20602
|
-
}),
|
|
20615
|
+
}), W({
|
|
20603
20616
|
editor: n,
|
|
20604
20617
|
licenseKey: e.licenseKey,
|
|
20605
20618
|
plan: rb,
|
|
20606
20619
|
pluginName: sb,
|
|
20607
20620
|
cleanup: () => {
|
|
20608
|
-
n.runCommand(
|
|
20621
|
+
n.runCommand(_.assetProviderRemove, { id: s.id }), !t && l && n.Components.addType(i, {
|
|
20609
20622
|
model: {
|
|
20610
20623
|
getYoutubeTraits() {
|
|
20611
20624
|
return l.getYoutubeTraits.apply(this).filter((d) => d.id !== r);
|
|
@@ -20614,7 +20627,7 @@ const Kr = (n) => {
|
|
|
20614
20627
|
});
|
|
20615
20628
|
}
|
|
20616
20629
|
});
|
|
20617
|
-
}, Jb =
|
|
20630
|
+
}, Jb = G(ib), oo = (n) => n.replaceAll('"', "").replaceAll("'", ""), Jr = (n) => n.includes(",") ? n : /\s/.test(n) ? `'${oo(n)}'` : oo(n), Pa = (n, e, t) => ({ family: n, variant: e, ...t }), wp = (n, e) => {
|
|
20618
20631
|
n = Jr(n);
|
|
20619
20632
|
const { menuVariant: t, variants: o } = e;
|
|
20620
20633
|
return {
|
|
@@ -20771,19 +20784,19 @@ const db = (n) => {
|
|
|
20771
20784
|
}
|
|
20772
20785
|
}, hb = "googleFontsAssetProvider", fb = H.startup, mb = function(n, e) {
|
|
20773
20786
|
const { i18n: t = {} } = e, o = pb(e);
|
|
20774
|
-
n.runCommand(
|
|
20787
|
+
n.runCommand(_.assetProviderAdd, { provider: o }), n.I18n.addMessages({
|
|
20775
20788
|
en: ub,
|
|
20776
20789
|
...t
|
|
20777
|
-
}),
|
|
20790
|
+
}), W({
|
|
20778
20791
|
editor: n,
|
|
20779
20792
|
licenseKey: e.licenseKey,
|
|
20780
20793
|
plan: fb,
|
|
20781
20794
|
pluginName: hb,
|
|
20782
20795
|
cleanup: () => {
|
|
20783
|
-
n.runCommand(
|
|
20796
|
+
n.runCommand(_.assetProviderRemove, { id: o.id });
|
|
20784
20797
|
}
|
|
20785
20798
|
});
|
|
20786
|
-
}, Zb =
|
|
20799
|
+
}, Zb = G(mb), gb = "canvasAbsoluteMode", yb = H.startup, bb = (n, e, t) => {
|
|
20787
20800
|
var c, d;
|
|
20788
20801
|
const o = t.enableAbsolute ?? ((p) => p.hasAbsolute), r = (Array.isArray(e) ? e : e ? [e] : [...n.getSelectedAll()])[0], i = ((d = (c = r == null ? void 0 : r.delegate) == null ? void 0 : c.move) == null ? void 0 : d.call(c, r)) || r;
|
|
20789
20802
|
if (!i) return;
|
|
@@ -20915,7 +20928,7 @@ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:sta
|
|
|
20915
20928
|
E != null && E.result && !E.dmode && (x.options.mode = "absolute");
|
|
20916
20929
|
}]
|
|
20917
20930
|
];
|
|
20918
|
-
S.forEach(([x, k]) => n.on(x, k)),
|
|
20931
|
+
S.forEach(([x, k]) => n.on(x, k)), W({
|
|
20919
20932
|
editor: n,
|
|
20920
20933
|
licenseKey: e.licenseKey,
|
|
20921
20934
|
plan: yb,
|
|
@@ -20924,7 +20937,7 @@ const xb = "core:component-drag", wb = "studio:setDragAbsolute", Cb = "dmode:sta
|
|
|
20924
20937
|
f({ enabled: !1 }), S.forEach(([x, k]) => n.off(x, k));
|
|
20925
20938
|
}
|
|
20926
20939
|
});
|
|
20927
|
-
}, Yb =
|
|
20940
|
+
}, Yb = G(Mb);
|
|
20928
20941
|
export {
|
|
20929
20942
|
$b as accordionComponent,
|
|
20930
20943
|
Vb as animationComponent,
|