@grapesjs/studio-sdk-plugins 1.0.31 → 1.0.32
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/googleFontsAssetProvider/index.cjs.js +1 -1
- package/dist/googleFontsAssetProvider/index.es.js +12 -12
- package/dist/googleFontsAssetProvider/index.umd.js +1 -1
- package/dist/iconifyComponent/index.cjs.js +1 -1
- package/dist/iconifyComponent/index.es.js +7 -7
- package/dist/iconifyComponent/index.umd.js +2 -2
- package/dist/index.cjs.js +68 -68
- package/dist/index.es.js +165 -165
- package/dist/index.umd.js +24 -24
- package/dist/layoutSidebarButtons/index.cjs.js +1 -1
- package/dist/layoutSidebarButtons/index.es.js +18 -18
- package/dist/layoutSidebarButtons/index.umd.js +1 -1
- package/dist/layoutSidebarButtons/types.d.ts +1 -1
- package/dist/presetPrintable/index.cjs.js +5 -5
- package/dist/presetPrintable/index.es.js +132 -132
- package/dist/presetPrintable/index.umd.js +6 -6
- package/dist/presetPrintable/types.d.ts +3 -0
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/prosemirror/index.umd.js +1 -1
- package/dist/rteTinyMce/index.cjs.js +1 -1
- package/dist/rteTinyMce/index.es.js +5 -5
- package/dist/rteTinyMce/index.umd.js +1 -1
- package/dist/tableComponent/index.cjs.js +1 -1
- package/dist/tableComponent/index.es.js +13 -13
- package/dist/tableComponent/index.umd.js +1 -1
- package/dist/youtubeAssetProvider/index.cjs.js +1 -1
- package/dist/youtubeAssetProvider/index.es.js +41 -41
- package/dist/youtubeAssetProvider/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -71,7 +71,7 @@ async function Dp({
|
|
|
71
71
|
throw new Error(`HTTP error! status: ${p.status}`);
|
|
72
72
|
return p.json();
|
|
73
73
|
}
|
|
74
|
-
var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), Ra = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(Ra || {}), W = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", 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.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", 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))(W || {}), Da = /* @__PURE__ */ ((n) => (n.layoutToggleId = "studio:layoutToggle:", n.toggleBlocksPanel = "studio:toggleBlocksPanel", n.pageSettingsUpdate = "studio:pageSettingsUpdate", n.toggleDataSourcesPreview = "studio:toggleDataSourcesPreview", n))(Da || {}), La = /* @__PURE__ */ ((n) => (n.dark = "dark", n.light = "light", n.auto = "auto", n))(La || {}), $a = /* @__PURE__ */ ((n) => (n.web = "web", n.email = "email", n.document = "document", n.react = "react", n))($a || {});
|
|
74
|
+
var H = /* @__PURE__ */ ((n) => (n.free = "free", n.startup = "startup", n.business = "business", n.enterprise = "enterprise", n))(H || {}), Ra = /* @__PURE__ */ ((n) => (n.Info = "info", n.Error = "error", n.Success = "success", n.Warning = "warning", n))(Ra || {}), W = /* @__PURE__ */ ((n) => (n.toastAdd = "studio:toastAdd", n.toastRemove = "studio:toastRemove", n.dialogOpen = "studio:dialogOpen", n.dialogClose = "studio:dialogClose", n.dialogExportCode = "studio:dialogExportCode", 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.getStateTheme = "studio:getStateTheme", n.setStateTheme = "studio:setStateTheme", 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))(W || {}), Da = /* @__PURE__ */ ((n) => (n.layoutToggleId = "studio:layoutToggle:", n.toggleBlocksPanel = "studio:toggleBlocksPanel", n.pageSettingsUpdate = "studio:pageSettingsUpdate", n.toggleDataSourcesPreview = "studio:toggleDataSourcesPreview", n))(Da || {}), La = /* @__PURE__ */ ((n) => (n.dark = "dark", n.light = "light", n.auto = "auto", n))(La || {}), $a = /* @__PURE__ */ ((n) => (n.web = "web", n.email = "email", n.document = "document", n.react = "react", n))($a || {});
|
|
75
75
|
const Cr = {
|
|
76
76
|
[H.free]: 0,
|
|
77
77
|
[H.startup]: 10,
|
|
@@ -82,8 +82,8 @@ function Lp(n) {
|
|
|
82
82
|
const e = n;
|
|
83
83
|
return e.init = (t) => (s) => n(s, t), e;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
async function
|
|
85
|
+
const _ = (n) => /* @__PURE__ */ Lp(n);
|
|
86
|
+
async function G({
|
|
87
87
|
editor: n,
|
|
88
88
|
plan: e,
|
|
89
89
|
pluginName: t,
|
|
@@ -448,7 +448,7 @@ const Ps = (n, e) => {
|
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
}),
|
|
451
|
+
}), G({
|
|
452
452
|
editor: n,
|
|
453
453
|
licenseKey: o,
|
|
454
454
|
plan: H.startup,
|
|
@@ -457,7 +457,7 @@ const Ps = (n, e) => {
|
|
|
457
457
|
t.remove(i), s.removeType(i);
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
|
-
}, Cb =
|
|
460
|
+
}, Cb = _(Fp), _p = "iconifyComponent", Gp = H.startup, Wp = { ratioDefault: !0, tc: !1, cl: !1, cr: !1, bc: !1 }, wo = `<svg viewBox="0 0 24 24">
|
|
461
461
|
<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" />
|
|
462
462
|
</svg>`, za = "layout-icon-picker", jp = "icons-layout-", Va = "icons-list-layout", Ba = "gs-iconify-picker", Ki = "__iconify_collection", qp = "https://api.iconify.design", Co = /* @__PURE__ */ new Map();
|
|
463
463
|
let fs;
|
|
@@ -708,7 +708,7 @@ const eu = function(n, e = {}) {
|
|
|
708
708
|
view: u
|
|
709
709
|
});
|
|
710
710
|
}
|
|
711
|
-
|
|
711
|
+
G({
|
|
712
712
|
editor: n,
|
|
713
713
|
licenseKey: r,
|
|
714
714
|
plan: Gp,
|
|
@@ -717,7 +717,7 @@ const eu = function(n, e = {}) {
|
|
|
717
717
|
s.remove(c), t.removeType(c);
|
|
718
718
|
}
|
|
719
719
|
});
|
|
720
|
-
}, kb =
|
|
720
|
+
}, kb = _(eu);
|
|
721
721
|
function jn(n, e, t) {
|
|
722
722
|
let s, o, i, r, l;
|
|
723
723
|
const a = e === void 0 ? 100 : e;
|
|
@@ -735,7 +735,7 @@ function jn(n, e, t) {
|
|
|
735
735
|
}, d;
|
|
736
736
|
}
|
|
737
737
|
const tu = "tableComponent", nu = H.startup;
|
|
738
|
-
var
|
|
738
|
+
var O = /* @__PURE__ */ ((n) => (n.table = "table", n.tableSettings = "tableSettings", n.tableDelete = "tableDelete", n.tableHead = "tableHead", n.tableFoot = "tableFoot", n.tableCellItems = "tableCellItems", n.tableCellProperties = "tableCellProperties", n.tableCellMerge = "tableCellMerge", n.tableCellSplit = "tableCellSplit", n.tableRowItems = "tableRowItems", n.tableRowInsertBefore = "tableRowInsertBefore", n.tableRowInsertAfter = "tableRowInsertAfter", n.tableRowDelete = "tableRowDelete", n.tableRowProperties = "tableRowProperties", n.tableRowCut = "tableRowCut", n.tableRowCopy = "tableRowCopy", n.tableRowPasteBefore = "tableRowPasteBefore", n.tableRowPasteAfter = "tableRowPasteAfter", n.tableColumn = "tableColumn", n.tableColumnItems = "tableColumnItems", n.tableColumnInsertBefore = "tableColumnInsertBefore", n.tableColumnInsertAfter = "tableColumnInsertAfter", n.tableColumnDelete = "tableColumnDelete", n.tableColumnCut = "tableColumnCut", n.tableColumnCopy = "tableColumnCopy", n.tableColumnPasteBefore = "tableColumnPasteBefore", n.tableColumnPasteAfter = "tableColumnPasteAfter", n))(O || {});
|
|
739
739
|
const V = {
|
|
740
740
|
table: '<svg viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 4v4h6V8H5m8 0v4h6V8h-6m-8 6v4h6v-4H5m8 0v4h6v-4h-6Z"/></svg>',
|
|
741
741
|
tableSettings: '<svg viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m0 4v4h6V8H5m8 0v4h6V8h-6m-8 6v4h6v-4H5m8 0v4h6v-4h-6Z"/></svg>',
|
|
@@ -813,14 +813,14 @@ const V = {
|
|
|
813
813
|
header: { label: ja }
|
|
814
814
|
}));
|
|
815
815
|
}, Ua = (n) => [{
|
|
816
|
-
id:
|
|
817
|
-
icon: V[
|
|
816
|
+
id: O.table,
|
|
817
|
+
icon: V[O.table],
|
|
818
818
|
label: "Table",
|
|
819
819
|
items: [
|
|
820
820
|
{
|
|
821
|
-
id:
|
|
821
|
+
id: O.tableSettings,
|
|
822
822
|
label: ja,
|
|
823
|
-
icon: V[
|
|
823
|
+
icon: V[O.tableSettings],
|
|
824
824
|
onClick: ({ event: t }) => lu({
|
|
825
825
|
...n,
|
|
826
826
|
// @ts-expect-error workaround for the build
|
|
@@ -828,9 +828,9 @@ const V = {
|
|
|
828
828
|
})
|
|
829
829
|
},
|
|
830
830
|
{
|
|
831
|
-
id:
|
|
831
|
+
id: O.tableDelete,
|
|
832
832
|
label: "Delete table",
|
|
833
|
-
icon: V[
|
|
833
|
+
icon: V[O.tableDelete],
|
|
834
834
|
onClick: () => ru(n)
|
|
835
835
|
}
|
|
836
836
|
]
|
|
@@ -868,51 +868,51 @@ const V = {
|
|
|
868
868
|
}, cu = (n) => {
|
|
869
869
|
const e = Ka(n);
|
|
870
870
|
return [{
|
|
871
|
-
id:
|
|
872
|
-
icon: V[
|
|
871
|
+
id: O.tableColumnItems,
|
|
872
|
+
icon: V[O.tableColumn],
|
|
873
873
|
label: "Column",
|
|
874
874
|
items: [
|
|
875
875
|
{
|
|
876
|
-
id:
|
|
876
|
+
id: O.tableColumnInsertBefore,
|
|
877
877
|
label: "Insert column before",
|
|
878
|
-
icon: V[
|
|
878
|
+
icon: V[O.tableColumnInsertBefore],
|
|
879
879
|
onClick: () => Mr(n)
|
|
880
880
|
},
|
|
881
881
|
{
|
|
882
|
-
id:
|
|
882
|
+
id: O.tableColumnInsertAfter,
|
|
883
883
|
label: "Insert column after",
|
|
884
|
-
icon: V[
|
|
884
|
+
icon: V[O.tableColumnInsertAfter],
|
|
885
885
|
onClick: () => Mr({ ...n, after: !0 })
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
|
-
id:
|
|
888
|
+
id: O.tableColumnDelete,
|
|
889
889
|
label: "Delete column",
|
|
890
|
-
icon: V[
|
|
890
|
+
icon: V[O.tableColumnDelete],
|
|
891
891
|
onClick: () => Ja(n)
|
|
892
892
|
},
|
|
893
893
|
{
|
|
894
|
-
id:
|
|
894
|
+
id: O.tableColumnCut,
|
|
895
895
|
label: "Cut column",
|
|
896
|
-
icon: V[
|
|
896
|
+
icon: V[O.tableColumnCut],
|
|
897
897
|
onClick: () => au(n)
|
|
898
898
|
},
|
|
899
899
|
{
|
|
900
|
-
id:
|
|
900
|
+
id: O.tableColumnCopy,
|
|
901
901
|
label: "Copy column",
|
|
902
|
-
icon: V[
|
|
902
|
+
icon: V[O.tableColumnCopy],
|
|
903
903
|
onClick: () => Za(n)
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
|
-
id:
|
|
906
|
+
id: O.tableColumnPasteBefore,
|
|
907
907
|
label: "Paste column before",
|
|
908
|
-
icon: V[
|
|
908
|
+
icon: V[O.tableColumnPasteBefore],
|
|
909
909
|
disabled: !e,
|
|
910
910
|
onClick: () => Ar(n)
|
|
911
911
|
},
|
|
912
912
|
{
|
|
913
|
-
id:
|
|
913
|
+
id: O.tableColumnPasteAfter,
|
|
914
914
|
label: "Paste column after",
|
|
915
|
-
icon: V[
|
|
915
|
+
icon: V[O.tableColumnPasteAfter],
|
|
916
916
|
disabled: !e,
|
|
917
917
|
onClick: () => Ar({ ...n, after: !0 })
|
|
918
918
|
}
|
|
@@ -959,32 +959,32 @@ const V = {
|
|
|
959
959
|
}, tc = (n) => {
|
|
960
960
|
const e = ec(n);
|
|
961
961
|
return [{
|
|
962
|
-
id:
|
|
963
|
-
icon: V[
|
|
962
|
+
id: O.tableRowItems,
|
|
963
|
+
icon: V[O.tableRowProperties],
|
|
964
964
|
label: "Row",
|
|
965
965
|
items: [
|
|
966
966
|
{
|
|
967
|
-
id:
|
|
967
|
+
id: O.tableRowInsertBefore,
|
|
968
968
|
label: "Insert row before",
|
|
969
|
-
icon: V[
|
|
969
|
+
icon: V[O.tableRowInsertBefore],
|
|
970
970
|
onClick: () => Pr(n)
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
|
-
id:
|
|
973
|
+
id: O.tableRowInsertAfter,
|
|
974
974
|
label: "Insert row after",
|
|
975
|
-
icon: V[
|
|
975
|
+
icon: V[O.tableRowInsertAfter],
|
|
976
976
|
onClick: () => Pr({ ...n, after: !0 })
|
|
977
977
|
},
|
|
978
978
|
{
|
|
979
|
-
id:
|
|
979
|
+
id: O.tableRowDelete,
|
|
980
980
|
label: "Delete row",
|
|
981
|
-
icon: V[
|
|
981
|
+
icon: V[O.tableRowDelete],
|
|
982
982
|
onClick: () => Xa(n)
|
|
983
983
|
},
|
|
984
984
|
{
|
|
985
|
-
id:
|
|
985
|
+
id: O.tableRowProperties,
|
|
986
986
|
label: Ya,
|
|
987
|
-
icon: V[
|
|
987
|
+
icon: V[O.tableRowProperties],
|
|
988
988
|
onClick: ({ event: s }) => uu({
|
|
989
989
|
...n,
|
|
990
990
|
// @ts-expect-error workaround for the build
|
|
@@ -992,28 +992,28 @@ const V = {
|
|
|
992
992
|
})
|
|
993
993
|
},
|
|
994
994
|
{
|
|
995
|
-
id:
|
|
995
|
+
id: O.tableRowCut,
|
|
996
996
|
label: "Cut row",
|
|
997
|
-
icon: V[
|
|
997
|
+
icon: V[O.tableRowCut],
|
|
998
998
|
onClick: () => pu(n)
|
|
999
999
|
},
|
|
1000
1000
|
{
|
|
1001
|
-
id:
|
|
1001
|
+
id: O.tableRowCopy,
|
|
1002
1002
|
label: "Copy row",
|
|
1003
|
-
icon: V[
|
|
1003
|
+
icon: V[O.tableRowCopy],
|
|
1004
1004
|
onClick: () => Qa(n)
|
|
1005
1005
|
},
|
|
1006
1006
|
{
|
|
1007
|
-
id:
|
|
1007
|
+
id: O.tableRowPasteBefore,
|
|
1008
1008
|
label: "Paste row before",
|
|
1009
|
-
icon: V[
|
|
1009
|
+
icon: V[O.tableRowPasteBefore],
|
|
1010
1010
|
disabled: !e,
|
|
1011
1011
|
onClick: () => Nr(n)
|
|
1012
1012
|
},
|
|
1013
1013
|
{
|
|
1014
|
-
id:
|
|
1014
|
+
id: O.tableRowPasteAfter,
|
|
1015
1015
|
label: "Paste row after",
|
|
1016
|
-
icon: V[
|
|
1016
|
+
icon: V[O.tableRowPasteAfter],
|
|
1017
1017
|
disabled: !e,
|
|
1018
1018
|
onClick: () => Nr({ ...n, after: !0 })
|
|
1019
1019
|
}
|
|
@@ -1174,14 +1174,14 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1174
1174
|
header: { label: oc }
|
|
1175
1175
|
});
|
|
1176
1176
|
}, Cu = (n) => [{
|
|
1177
|
-
id:
|
|
1178
|
-
icon: V[
|
|
1177
|
+
id: O.tableCellItems,
|
|
1178
|
+
icon: V[O.tableCellProperties],
|
|
1179
1179
|
label: "Cell",
|
|
1180
1180
|
items: [
|
|
1181
1181
|
{
|
|
1182
|
-
id:
|
|
1182
|
+
id: O.tableCellProperties,
|
|
1183
1183
|
label: oc,
|
|
1184
|
-
icon: V[
|
|
1184
|
+
icon: V[O.tableCellProperties],
|
|
1185
1185
|
onClick: ({ event: t }) => wu({
|
|
1186
1186
|
...n,
|
|
1187
1187
|
// @ts-expect-error workaround for the build
|
|
@@ -1189,16 +1189,16 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1189
1189
|
})
|
|
1190
1190
|
},
|
|
1191
1191
|
{
|
|
1192
|
-
id:
|
|
1192
|
+
id: O.tableCellMerge,
|
|
1193
1193
|
label: gu,
|
|
1194
|
-
icon: V[
|
|
1194
|
+
icon: V[O.tableCellMerge],
|
|
1195
1195
|
onClick: () => xu(n),
|
|
1196
1196
|
disabled: !ic(n)
|
|
1197
1197
|
},
|
|
1198
1198
|
{
|
|
1199
|
-
id:
|
|
1199
|
+
id: O.tableCellSplit,
|
|
1200
1200
|
label: yu,
|
|
1201
|
-
icon: V[
|
|
1201
|
+
icon: V[O.tableCellSplit],
|
|
1202
1202
|
onClick: () => Su(n),
|
|
1203
1203
|
disabled: !vu(n)
|
|
1204
1204
|
}
|
|
@@ -1404,7 +1404,7 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1404
1404
|
const d = a.map((u) => u.is(q) ? u : u.closestType(q)).filter(Boolean);
|
|
1405
1405
|
d.length === a.length && ku(d);
|
|
1406
1406
|
}, 0);
|
|
1407
|
-
n.on("component:select", i),
|
|
1407
|
+
n.on("component:select", i), G({
|
|
1408
1408
|
editor: n,
|
|
1409
1409
|
plan: nu,
|
|
1410
1410
|
pluginName: tu,
|
|
@@ -1413,7 +1413,7 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1413
1413
|
n.off("component:select", i), n.Blocks.remove(He), su.forEach((r) => s.removeType(r));
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
|
-
}, Eb =
|
|
1416
|
+
}, Eb = _(Eu), Tu = "listPagesComponent", Mu = H.startup, Ir = "page://", St = "list-pages", jt = "list-pages-item", xt = "list-pages-link", Au = (n) => n.components().reduce(
|
|
1417
1417
|
(e, t) => {
|
|
1418
1418
|
var r;
|
|
1419
1419
|
const s = t.findFirstType(xt), o = (r = s == null ? void 0 : s.attributes.attributes) == null ? void 0 : r.href, i = o != null && o.startsWith(Ir) ? o.replace(Ir, "") : "";
|
|
@@ -1513,7 +1513,7 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1513
1513
|
`
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
}),
|
|
1516
|
+
}), G({
|
|
1517
1517
|
editor: n,
|
|
1518
1518
|
licenseKey: i,
|
|
1519
1519
|
plan: Mu,
|
|
@@ -1522,7 +1522,7 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1522
1522
|
t.remove(St), s.removeType(St);
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
|
-
}, Tb =
|
|
1525
|
+
}, Tb = _(Ou), Ru = "fsLightboxComponent", Du = H.startup, ms = "data-fslightbox", gs = "data-type", Lu = "fslightbox-open", qt = "fslightbox", Ut = {
|
|
1526
1526
|
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>',
|
|
1527
1527
|
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>',
|
|
1528
1528
|
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>',
|
|
@@ -1544,10 +1544,10 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1544
1544
|
if ((M = w.fsLightboxInstances) == null || M[k], !w._isEditor) return;
|
|
1545
1545
|
Array.from(document.querySelectorAll(`[${v}]`)).forEach((P) => {
|
|
1546
1546
|
const N = P.onclick;
|
|
1547
|
-
P.onclick = function(
|
|
1548
|
-
|
|
1547
|
+
P.onclick = function(I) {
|
|
1548
|
+
I.preventDefault();
|
|
1549
1549
|
const R = P;
|
|
1550
|
-
!R.__skipLb && (N == null || N(
|
|
1550
|
+
!R.__skipLb && (N == null || N(I)), R.__skipLb = !0;
|
|
1551
1551
|
};
|
|
1552
1552
|
});
|
|
1553
1553
|
};
|
|
@@ -1694,12 +1694,12 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1694
1694
|
E.props.onOpen = () => {
|
|
1695
1695
|
N = w.getSpots(), setTimeout(() => w.removeSpots());
|
|
1696
1696
|
}, E.props.onClose = () => {
|
|
1697
|
-
N.forEach((
|
|
1697
|
+
N.forEach((I) => w.addSpot(I.attributes));
|
|
1698
1698
|
}, y.click();
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
}),
|
|
1702
|
+
}), G({
|
|
1703
1703
|
editor: n,
|
|
1704
1704
|
plan: Du,
|
|
1705
1705
|
licenseKey: r.licenseKey,
|
|
@@ -1708,7 +1708,7 @@ const oc = "Cell settings", gu = "Merge cells", yu = "Split cell", bu = (n) => n
|
|
|
1708
1708
|
t.remove(qt), s.removeType(qt);
|
|
1709
1709
|
}
|
|
1710
1710
|
});
|
|
1711
|
-
}, Mb =
|
|
1711
|
+
}, Mb = _($u), zu = "lightGalleryComponent", Vu = H.startup;
|
|
1712
1712
|
var Yt = /* @__PURE__ */ ((n) => (n.image = "image", n.video = "video", n.external = "external", n))(Yt || {});
|
|
1713
1713
|
const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${Is}-item`, Hs = "toggle", Tt = {
|
|
1714
1714
|
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>',
|
|
@@ -2148,7 +2148,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2148
2148
|
cdnStyle: `${Kt}/css/lightgallery-bundle.min.css`,
|
|
2149
2149
|
...e
|
|
2150
2150
|
}, { block: l, toolbarIconOpen: a, defaultSrc: c } = r, d = function(y) {
|
|
2151
|
-
const v = this, w = window, { plugins: S, cdnScript: x, cdnStyle: k, inline: E, lgLicenseKey: M, ...P } = y || {}, N = (R) => isNaN(R) ? void 0 : parseInt(R, 10),
|
|
2151
|
+
const v = this, w = window, { plugins: S, cdnScript: x, cdnStyle: k, inline: E, lgLicenseKey: M, ...P } = y || {}, N = (R) => isNaN(R) ? void 0 : parseInt(R, 10), I = () => {
|
|
2152
2152
|
var ie;
|
|
2153
2153
|
const R = {
|
|
2154
2154
|
...P,
|
|
@@ -2163,13 +2163,13 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2163
2163
|
plugins: (S || []).map((re) => w[re])
|
|
2164
2164
|
};
|
|
2165
2165
|
E && (R.container = v, R.closable = !1);
|
|
2166
|
-
const
|
|
2167
|
-
E &&
|
|
2166
|
+
const F = (ie = w.lightGallery) == null ? void 0 : ie.call(w, v, R);
|
|
2167
|
+
E && F.openGallery();
|
|
2168
2168
|
};
|
|
2169
2169
|
if (w.lightGallery)
|
|
2170
|
-
|
|
2170
|
+
I();
|
|
2171
2171
|
else {
|
|
2172
|
-
const { head: R } = document,
|
|
2172
|
+
const { head: R } = document, F = Array.isArray(x) ? [...x] : [x], ie = Array.isArray(k) ? [...k] : [k], re = (ye) => {
|
|
2173
2173
|
if (ye.length) {
|
|
2174
2174
|
const xe = document.createElement("link");
|
|
2175
2175
|
xe.href = ye.shift(), xe.rel = "stylesheet", R.appendChild(xe), re(ye);
|
|
@@ -2179,9 +2179,9 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2179
2179
|
const xe = document.createElement("script");
|
|
2180
2180
|
xe.src = ye.shift(), xe.onerror = xe.onload = je.bind(null, ye), R.appendChild(xe);
|
|
2181
2181
|
} else
|
|
2182
|
-
|
|
2182
|
+
I();
|
|
2183
2183
|
};
|
|
2184
|
-
re(ie), je(
|
|
2184
|
+
re(ie), je(F);
|
|
2185
2185
|
}
|
|
2186
2186
|
}, p = (y) => {
|
|
2187
2187
|
const v = y.getTrait(Hs);
|
|
@@ -2335,7 +2335,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2335
2335
|
y[ys] ? this.set(nt, Yt.external) : (y[Fs.name] || y[ii.name]) && this.set(nt, Yt.video);
|
|
2336
2336
|
}
|
|
2337
2337
|
}
|
|
2338
|
-
}),
|
|
2338
|
+
}), G({
|
|
2339
2339
|
editor: n,
|
|
2340
2340
|
plan: Vu,
|
|
2341
2341
|
licenseKey: r.licenseKey,
|
|
@@ -2344,7 +2344,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2344
2344
|
t.remove(Ct), s.removeType(Ct);
|
|
2345
2345
|
}
|
|
2346
2346
|
});
|
|
2347
|
-
}, Ab =
|
|
2347
|
+
}, Ab = _(qu), Oe = "swiper", qn = `${Oe}-slide`, on = `${Oe}-wrapper`, rn = `${Oe}-nav-prev`, _s = `${Oe}-nav-next`, ln = `${Oe}-pagination`, Dn = `${Oe}-scrollbar`, le = {
|
|
2348
2348
|
slider: `<svg viewBox="0 0 24 24">
|
|
2349
2349
|
<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"/>
|
|
2350
2350
|
<path d="M4 12.5L6 14v-3zM20 12.5L18 14v-3z"/>
|
|
@@ -2988,16 +2988,16 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
2988
2988
|
}
|
|
2989
2989
|
};
|
|
2990
2990
|
if (u.tablet) {
|
|
2991
|
-
const { tabletBreakpoint: P, tabletSlidesPerView: N } = u,
|
|
2992
|
-
E.breakpoints[
|
|
2991
|
+
const { tabletBreakpoint: P, tabletSlidesPerView: N } = u, I = S(P);
|
|
2992
|
+
E.breakpoints[I] = {
|
|
2993
2993
|
slidesPerView: isNaN(N) ? N : S(N),
|
|
2994
2994
|
slidesPerGroup: S(u.tabletSlidesPerGroup),
|
|
2995
2995
|
spaceBetween: S(u.tabletSpaceBetween)
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
2998
|
if (u.mobile) {
|
|
2999
|
-
const { mobileBreakpoint: P, mobileSlidesPerView: N } = u,
|
|
3000
|
-
E.breakpoints[
|
|
2999
|
+
const { mobileBreakpoint: P, mobileSlidesPerView: N } = u, I = S(P);
|
|
3000
|
+
E.breakpoints[I] = {
|
|
3001
3001
|
slidesPerView: isNaN(N) ? N : S(N),
|
|
3002
3002
|
slidesPerGroup: S(u.mobileSlidesPerGroup),
|
|
3003
3003
|
spaceBetween: S(u.mobileSpaceBetween)
|
|
@@ -3010,15 +3010,15 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
3010
3010
|
if (f.Swiper)
|
|
3011
3011
|
x();
|
|
3012
3012
|
else {
|
|
3013
|
-
const { head: k } = document, E = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (
|
|
3014
|
-
if (
|
|
3013
|
+
const { head: k } = document, E = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (I) => {
|
|
3014
|
+
if (I.length) {
|
|
3015
3015
|
const R = document.createElement("link");
|
|
3016
|
-
R.href =
|
|
3016
|
+
R.href = I.shift(), R.rel = "stylesheet", k.prepend(R), P(I);
|
|
3017
3017
|
}
|
|
3018
|
-
}, N = (
|
|
3019
|
-
if (
|
|
3018
|
+
}, N = (I) => {
|
|
3019
|
+
if (I.length) {
|
|
3020
3020
|
const R = document.createElement("script");
|
|
3021
|
-
R.src =
|
|
3021
|
+
R.src = I.shift(), R.onerror = R.onload = N.bind(null, I), k.appendChild(R);
|
|
3022
3022
|
} else
|
|
3023
3023
|
x();
|
|
3024
3024
|
};
|
|
@@ -3278,7 +3278,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
3278
3278
|
Xu(n),
|
|
3279
3279
|
eh(n)
|
|
3280
3280
|
];
|
|
3281
|
-
|
|
3281
|
+
G({
|
|
3282
3282
|
editor: n,
|
|
3283
3283
|
plan: rh,
|
|
3284
3284
|
licenseKey: t.licenseKey,
|
|
@@ -3287,7 +3287,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
3287
3287
|
s.forEach((o) => o());
|
|
3288
3288
|
}
|
|
3289
3289
|
});
|
|
3290
|
-
}, Pb =
|
|
3290
|
+
}, Pb = _(lh), he = "accordion", kn = `${he}-group`, Qe = `${he}-header`, at = `${he}-content`, Mt = `${he}-marker`, Wr = `${Me}${Qe}`, li = `${Me}${Mt}`, ah = `${Me}${at}`, lc = `${li}-open`, zt = {
|
|
3291
3291
|
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>',
|
|
3292
3292
|
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>',
|
|
3293
3293
|
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>',
|
|
@@ -3531,7 +3531,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
3531
3531
|
hh(n),
|
|
3532
3532
|
dh(n)
|
|
3533
3533
|
];
|
|
3534
|
-
|
|
3534
|
+
G({
|
|
3535
3535
|
editor: n,
|
|
3536
3536
|
licenseKey: e.licenseKey,
|
|
3537
3537
|
plan: mh,
|
|
@@ -3540,7 +3540,7 @@ const Ct = "lightGallery", Or = `${Ct}-item`, Is = "data-lightgallery", Rr = `${
|
|
|
3540
3540
|
t.forEach((s) => s());
|
|
3541
3541
|
}
|
|
3542
3542
|
});
|
|
3543
|
-
}, Nb =
|
|
3543
|
+
}, Nb = _(gh), _n = class _n {
|
|
3544
3544
|
constructor(e) {
|
|
3545
3545
|
this.config = e;
|
|
3546
3546
|
}
|
|
@@ -4058,7 +4058,7 @@ function $h(n, e) {
|
|
|
4058
4058
|
const k = x.clientX, E = x.clientY;
|
|
4059
4059
|
x.target.setPointerCapture(x.pointerId);
|
|
4060
4060
|
const M = (N) => {
|
|
4061
|
-
const
|
|
4061
|
+
const I = n.Canvas.getZoomMultiplier(), R = (N.clientX - k) * I, F = (N.clientY - E) * I, ie = Gs(S) ? F : R;
|
|
4062
4062
|
p.updateResizeByDelta(a, S, ie);
|
|
4063
4063
|
}, P = () => {
|
|
4064
4064
|
p.finishResize(a), x.target.releasePointerCapture(x.pointerId), document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", P);
|
|
@@ -4071,12 +4071,12 @@ function $h(n, e) {
|
|
|
4071
4071
|
const k = Un(x, e), E = hi({ componentRow: x, isVertical: k }, e), M = S.clientX, P = S.clientY;
|
|
4072
4072
|
S.target.setPointerCapture(S.pointerId);
|
|
4073
4073
|
const N = (R) => {
|
|
4074
|
-
const
|
|
4074
|
+
const F = n.Canvas.getZoomMultiplier(), ie = k ? (R.clientY - P) * F : (R.clientX - M) * F;
|
|
4075
4075
|
p.updateGapByDelta(x, ie, E, k);
|
|
4076
|
-
},
|
|
4077
|
-
p.finishGapAdjust(x), S.target.releasePointerCapture(S.pointerId), document.removeEventListener("pointermove", N), document.removeEventListener("pointerup",
|
|
4076
|
+
}, I = () => {
|
|
4077
|
+
p.finishGapAdjust(x), S.target.releasePointerCapture(S.pointerId), document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", I);
|
|
4078
4078
|
};
|
|
4079
|
-
document.addEventListener("pointermove", N), document.addEventListener("pointerup",
|
|
4079
|
+
document.addEventListener("pointermove", N), document.addEventListener("pointerup", I);
|
|
4080
4080
|
}, m = (S) => {
|
|
4081
4081
|
const x = S.component;
|
|
4082
4082
|
if (!x || !o || (a = x, c = x.parent(), !c)) return;
|
|
@@ -4085,13 +4085,13 @@ function $h(n, e) {
|
|
|
4085
4085
|
const E = S.getStyle();
|
|
4086
4086
|
i && Object.assign(i.style, E);
|
|
4087
4087
|
const M = Un(k, e), P = bh(M);
|
|
4088
|
-
if (Object.values(r).forEach(jr), P.forEach((
|
|
4089
|
-
if (Ch(x,
|
|
4090
|
-
const R = r[
|
|
4088
|
+
if (Object.values(r).forEach(jr), P.forEach((I) => {
|
|
4089
|
+
if (Ch(x, I)) return;
|
|
4090
|
+
const R = r[I];
|
|
4091
4091
|
qr(R);
|
|
4092
4092
|
}), Gt(e).gapHandler.isGapSupported() && l && kh(x)) {
|
|
4093
|
-
const
|
|
4094
|
-
g(
|
|
4093
|
+
const I = hi({ componentRow: k, isVertical: M }, e);
|
|
4094
|
+
g(I, M, xh(x));
|
|
4095
4095
|
}
|
|
4096
4096
|
}, g = (S, x, k = !1) => {
|
|
4097
4097
|
const E = e.gapHandleSize, M = l.style;
|
|
@@ -4133,7 +4133,7 @@ const zh = function(n, e = {}) {
|
|
|
4133
4133
|
minItemPercent: 5,
|
|
4134
4134
|
...e
|
|
4135
4135
|
}, s = [Ah(n, t), Mh(n, t)], o = $h(n, t), i = Th(n, t);
|
|
4136
|
-
|
|
4136
|
+
G({
|
|
4137
4137
|
editor: n,
|
|
4138
4138
|
licenseKey: t.licenseKey,
|
|
4139
4139
|
plan: Nh,
|
|
@@ -4142,7 +4142,7 @@ const zh = function(n, e = {}) {
|
|
|
4142
4142
|
s.forEach((r) => r == null ? void 0 : r()), o(), i == null || i();
|
|
4143
4143
|
}
|
|
4144
4144
|
});
|
|
4145
|
-
}, Ib =
|
|
4145
|
+
}, Ib = _(zh);
|
|
4146
4146
|
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 || {});
|
|
4147
4147
|
const Ve = "animation", nn = "animation-group", Zr = "animation:update", mi = "animation-group:update", pc = {
|
|
4148
4148
|
category: { id: "animations", label: "Animations" },
|
|
@@ -5153,7 +5153,7 @@ const Ve = "animation", nn = "animation-group", Zr = "animation:update", mi = "a
|
|
|
5153
5153
|
]
|
|
5154
5154
|
}
|
|
5155
5155
|
]
|
|
5156
|
-
}),
|
|
5156
|
+
}), G({
|
|
5157
5157
|
editor: n,
|
|
5158
5158
|
licenseKey: e.licenseKey,
|
|
5159
5159
|
plan: jh,
|
|
@@ -5162,7 +5162,7 @@ const Ve = "animation", nn = "animation-group", Zr = "animation:update", mi = "a
|
|
|
5162
5162
|
s.forEach((i) => i());
|
|
5163
5163
|
}
|
|
5164
5164
|
});
|
|
5165
|
-
}, Ob =
|
|
5165
|
+
}, Ob = _(qh), Uh = "shapeDividerComponent", Kh = H.startup, Jh = function(n, e = {}) {
|
|
5166
5166
|
const { Components: t, Blocks: s, Selectors: o } = n, i = "shape-divider", r = `${i}-cnt`, l = `${Me}${i}`, a = `${Me}${r}`, c = [
|
|
5167
5167
|
{
|
|
5168
5168
|
id: "tilt",
|
|
@@ -5469,7 +5469,7 @@ const Ve = "animation", nn = "animation-group", Zr = "animation:update", mi = "a
|
|
|
5469
5469
|
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);
|
|
5470
5470
|
}
|
|
5471
5471
|
}
|
|
5472
|
-
}),
|
|
5472
|
+
}), G({
|
|
5473
5473
|
editor: n,
|
|
5474
5474
|
licenseKey: e.licenseKey,
|
|
5475
5475
|
plan: Kh,
|
|
@@ -5478,7 +5478,7 @@ const Ve = "animation", nn = "animation-group", Zr = "animation:update", mi = "a
|
|
|
5478
5478
|
t.removeType(i), s.remove(i);
|
|
5479
5479
|
}
|
|
5480
5480
|
});
|
|
5481
|
-
}, Rb =
|
|
5481
|
+
}, Rb = _(Jh), Zh = (n) => n.dispatchEvent(new CustomEvent("input")), Yh = (n, e) => {
|
|
5482
5482
|
if (!e) return () => {
|
|
5483
5483
|
};
|
|
5484
5484
|
const t = "keydown", s = (i) => {
|
|
@@ -5724,7 +5724,7 @@ const Xh = "rteTinyMce", Qh = H.startup, ef = `
|
|
|
5724
5724
|
}
|
|
5725
5725
|
});
|
|
5726
5726
|
const c = fc(n, t.enableOnClick);
|
|
5727
|
-
|
|
5727
|
+
G({
|
|
5728
5728
|
editor: n,
|
|
5729
5729
|
licenseKey: t.licenseKey,
|
|
5730
5730
|
plan: Qh,
|
|
@@ -5733,7 +5733,7 @@ const Xh = "rteTinyMce", Qh = H.startup, ef = `
|
|
|
5733
5733
|
n.RichTextEditor.customRte = void 0, c();
|
|
5734
5734
|
}
|
|
5735
5735
|
});
|
|
5736
|
-
}, Db =
|
|
5736
|
+
}, Db = _(rf);
|
|
5737
5737
|
function Y(n) {
|
|
5738
5738
|
this.content = n;
|
|
5739
5739
|
}
|
|
@@ -18041,7 +18041,7 @@ const W0 = function(n, e = {}) {
|
|
|
18041
18041
|
}
|
|
18042
18042
|
});
|
|
18043
18043
|
const i = fc(n, t.enableOnClick), r = Yh(n, t.disableOnEsc);
|
|
18044
|
-
|
|
18044
|
+
G({
|
|
18045
18045
|
editor: n,
|
|
18046
18046
|
licenseKey: t.licenseKey,
|
|
18047
18047
|
plan: F0,
|
|
@@ -18050,7 +18050,7 @@ const W0 = function(n, e = {}) {
|
|
|
18050
18050
|
n.RichTextEditor.customRte = void 0, i(), r();
|
|
18051
18051
|
}
|
|
18052
18052
|
});
|
|
18053
|
-
}, Lb =
|
|
18053
|
+
}, Lb = _(W0), j0 = "canvasEmptyState", q0 = H.startup, U0 = function(n, e = {}) {
|
|
18054
18054
|
const t = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new WeakMap(), l = {
|
|
18055
18055
|
emptyStates: [],
|
|
18056
18056
|
...e
|
|
@@ -18100,7 +18100,7 @@ const W0 = function(n, e = {}) {
|
|
|
18100
18100
|
}, h = ({ model: y }) => {
|
|
18101
18101
|
p(y.getComponent());
|
|
18102
18102
|
}, f = n.Components.events, m = `${f.update}:components`, g = "component:mount", b = n.Canvas.events.frameLoadBody, C = f.removed;
|
|
18103
|
-
n.on(m, p), n.on(g, p), n.on(C, u), n.on(b, h),
|
|
18103
|
+
n.on(m, p), n.on(g, p), n.on(C, u), n.on(b, h), G({
|
|
18104
18104
|
editor: n,
|
|
18105
18105
|
licenseKey: l.licenseKey,
|
|
18106
18106
|
plan: q0,
|
|
@@ -18109,7 +18109,7 @@ const W0 = function(n, e = {}) {
|
|
|
18109
18109
|
n.off(m, p), n.off(g, p), n.off(C, u), n.off(b, h);
|
|
18110
18110
|
}
|
|
18111
18111
|
});
|
|
18112
|
-
}, $b =
|
|
18112
|
+
}, $b = _(U0), Sa = "canvasFullSize", K0 = H.startup, J0 = (n, e) => {
|
|
18113
18113
|
const { rule: t, ruleView: s } = e, { style: o } = t.attributes;
|
|
18114
18114
|
if (o && o[n]) {
|
|
18115
18115
|
const i = o[n], r = /([0-9.]+)(vh|dvh|lvh|svh)/g, l = r.test(i), a = s.frameView.model;
|
|
@@ -18170,12 +18170,12 @@ const W0 = function(n, e = {}) {
|
|
|
18170
18170
|
[data-gjs-type="mj-body"] { min-height: ${m} !important; }
|
|
18171
18171
|
`, !Le.contains(hs) && Le.appendChild(hs);
|
|
18172
18172
|
});
|
|
18173
|
-
const N = () => E.style.display = "none",
|
|
18173
|
+
const N = () => E.style.display = "none", I = () => E.style.display = "", R = () => {
|
|
18174
18174
|
var Le;
|
|
18175
18175
|
if (!u) return;
|
|
18176
18176
|
const z = t.getZoomMultiplier(), ue = t.getRect().height * z - l * 2;
|
|
18177
18177
|
(Le = o.getSelected()) == null || Le.set("height", `${Math.max(ue, p)}px`), t.fitViewport({ zoom: t.getZoom(), gap: x });
|
|
18178
|
-
},
|
|
18178
|
+
}, F = jn(() => {
|
|
18179
18179
|
t.fitViewport({
|
|
18180
18180
|
zoom: (z) => z > 100 ? 100 : z,
|
|
18181
18181
|
ignoreHeight: !0,
|
|
@@ -18183,7 +18183,7 @@ const W0 = function(n, e = {}) {
|
|
|
18183
18183
|
}), R(), P(), setTimeout(() => {
|
|
18184
18184
|
var pe, ue;
|
|
18185
18185
|
const { em: z } = n;
|
|
18186
|
-
z.destroyed || ((ue = (pe = n.getSelected()) == null ? void 0 : pe.getEl()) == null || ue.scrollIntoView({ block: "nearest" }), n.refresh({ tools: !0 }),
|
|
18186
|
+
z.destroyed || ((ue = (pe = n.getSelected()) == null ? void 0 : pe.getEl()) == null || ue.scrollIntoView({ block: "nearest" }), n.refresh({ tools: !0 }), I(), s.isActive(b) ? z.stopDefault() : z.runDefault());
|
|
18187
18187
|
}, S);
|
|
18188
18188
|
}, 100), ie = (z = {}) => {
|
|
18189
18189
|
z.options && z.options.from !== "fitViewport" && t.fitViewport({
|
|
@@ -18192,11 +18192,11 @@ const W0 = function(n, e = {}) {
|
|
|
18192
18192
|
gap: x
|
|
18193
18193
|
});
|
|
18194
18194
|
}, re = () => {
|
|
18195
|
-
N(),
|
|
18195
|
+
N(), F();
|
|
18196
18196
|
}, je = () => {
|
|
18197
18197
|
k.overflowX = "hidden", k.overflowY = "auto";
|
|
18198
18198
|
}, ye = () => {
|
|
18199
|
-
M == null || M.disconnect(),
|
|
18199
|
+
M == null || M.disconnect(), F.clear();
|
|
18200
18200
|
}, xe = [
|
|
18201
18201
|
[o.events.select, re],
|
|
18202
18202
|
[g.zoom, ie],
|
|
@@ -18209,9 +18209,9 @@ const W0 = function(n, e = {}) {
|
|
|
18209
18209
|
}), xe.forEach(([z, pe]) => n.on(z, pe)), n.onReady(() => {
|
|
18210
18210
|
const z = t.getElement(), pe = t.getFramesEl(), ue = t.getCanvasView();
|
|
18211
18211
|
E = t.getSpotsEl(), k = z.style, k.overflowX = "hidden", pe.style.transition = `transform ${c}s`, document.removeEventListener("keypress", ue.onKeyPress), P(), M = new ResizeObserver(() => {
|
|
18212
|
-
N(),
|
|
18213
|
-
}), M.observe(z.parentElement),
|
|
18214
|
-
}),
|
|
18212
|
+
N(), F();
|
|
18213
|
+
}), M.observe(z.parentElement), F();
|
|
18214
|
+
}), G({
|
|
18215
18215
|
editor: n,
|
|
18216
18216
|
licenseKey: r.licenseKey,
|
|
18217
18217
|
plan: K0,
|
|
@@ -18220,7 +18220,7 @@ const W0 = function(n, e = {}) {
|
|
|
18220
18220
|
n.runCommand(v);
|
|
18221
18221
|
}
|
|
18222
18222
|
});
|
|
18223
|
-
}, zb =
|
|
18223
|
+
}, zb = _(Y0), Vi = "canvasGridMode", X0 = H.startup, Bi = "component-grid-mode", ns = "grid-mode", ps = "gjs-drag-grid-spot", np = `${ps}__grid-item`, sp = `${ps}__grid-target`, op = `${ps}__snapped`, Q0 = `${ps}__container`, ey = () => {
|
|
18224
18224
|
const n = "data-gjs-drag-grid-style", e = document, t = "var(--gs-theme-cl-cmp-bg1, var(--gjs-color-highlight))", s = "var(--gs-theme-cl-cmp-bg2, var(--gjs-color-blue))", o = e.querySelector(`style[${n}]`) || e.createElement("style");
|
|
18225
18225
|
o.setAttribute(n, "true"), o.innerHTML = `
|
|
18226
18226
|
.${np} {
|
|
@@ -18401,7 +18401,7 @@ function dp(n, e) {
|
|
|
18401
18401
|
const r = n.parentElement, l = t.getComputedStyle(r), a = parseFloat(l.columnGap) || 0, c = parseFloat(l.rowGap) || 0, d = xa(l.gridTemplateColumns), p = xa(l.gridTemplateRows), u = parseFloat(l.paddingLeft) || 0, h = parseFloat(l.paddingTop) || 0, f = r.getBoundingClientRect(), m = n.getBoundingClientRect(), g = (w, S, x, k, E) => {
|
|
18402
18402
|
let M = 1, P = k + E;
|
|
18403
18403
|
for (let N = 0; N < S.length; N++) {
|
|
18404
|
-
const
|
|
18404
|
+
const I = S[N], R = P + I;
|
|
18405
18405
|
if (w >= P && w < R)
|
|
18406
18406
|
return M;
|
|
18407
18407
|
P = R + x, M++;
|
|
@@ -18460,8 +18460,8 @@ function ly(n) {
|
|
|
18460
18460
|
const { scroll: g } = cp(e), { columns: b, rows: C, gap: y, offset: v, padding: w } = p, { offset: S, margin: x } = r, k = S.top - v.top - w.top - x.top + m - d.top + g.top, E = S.left - v.left - w.left - x.left + f - d.left + g.left, M = Math.min(ut(b, 1, E, y.column, 0.5), b.length), P = Math.min(ut(C, 1, k, y.row, 0.5), C.length), N = Math.min(
|
|
18461
18461
|
ut(b, M, S.width, y.column) + 1,
|
|
18462
18462
|
b.length + 1
|
|
18463
|
-
),
|
|
18464
|
-
a.style.gridArea = `${P} / ${M} / ${
|
|
18463
|
+
), I = Math.min(ut(C, P, S.height, y.row) + 1, C.length + 1);
|
|
18464
|
+
a.style.gridArea = `${P} / ${M} / ${I} / ${N}`, c.style.top = `${k + w.top}px`, c.style.left = `${E + w.left}px`;
|
|
18465
18465
|
}
|
|
18466
18466
|
}).start(s.event);
|
|
18467
18467
|
}
|
|
@@ -18775,14 +18775,14 @@ const my = function(n, e = {}) {
|
|
|
18775
18775
|
n.off(y, v);
|
|
18776
18776
|
});
|
|
18777
18777
|
};
|
|
18778
|
-
|
|
18778
|
+
G({
|
|
18779
18779
|
editor: n,
|
|
18780
18780
|
licenseKey: t.licenseKey,
|
|
18781
18781
|
plan: X0,
|
|
18782
18782
|
pluginName: Vi,
|
|
18783
18783
|
cleanup: C
|
|
18784
18784
|
});
|
|
18785
|
-
}, Vb =
|
|
18785
|
+
}, Vb = _(my), gy = "canvasScreenshot", yy = H.startup;
|
|
18786
18786
|
var pp = /* @__PURE__ */ ((n) => (n.screenshot = "studioPlugin:screenshot", n))(pp || {});
|
|
18787
18787
|
const by = async (n) => await Ap([{ id: "html-to-image", src: n }]), vy = async (n, e = {}, t = {}) => {
|
|
18788
18788
|
const { cdnScript: s } = t;
|
|
@@ -18851,15 +18851,15 @@ const by = async (n) => await Ap([{ id: "html-to-image", src: n }]), vy = async
|
|
|
18851
18851
|
const a = () => {
|
|
18852
18852
|
delete t.commands[Zo], n.off(i, l);
|
|
18853
18853
|
};
|
|
18854
|
-
|
|
18854
|
+
G({
|
|
18855
18855
|
editor: n,
|
|
18856
18856
|
licenseKey: e.licenseKey,
|
|
18857
18857
|
plan: yy,
|
|
18858
18858
|
pluginName: gy,
|
|
18859
18859
|
cleanup: a
|
|
18860
18860
|
});
|
|
18861
|
-
}, Bb =
|
|
18862
|
-
var ze = /* @__PURE__ */ ((n) => (n.panelBlocks = "panelBlocks", n.panelPagesLayers = "panelPagesLayers", n.panelGlobalStyles = "panelGlobalStyles", n.panelSidebarTabs = "panelSidebarTabs", n.panelAssets = "panelAssets", n.aiChatPanel = "aiChatPanel", n.
|
|
18861
|
+
}, Bb = _(Sy);
|
|
18862
|
+
var ze = /* @__PURE__ */ ((n) => (n.panelBlocks = "panelBlocks", n.panelPagesLayers = "panelPagesLayers", n.panelGlobalStyles = "panelGlobalStyles", n.panelSidebarTabs = "panelSidebarTabs", n.panelAssets = "panelAssets", n.aiChatPanel = "aiChatPanel", n.panelDataSources = "panelDataSources", n))(ze || {});
|
|
18863
18863
|
const up = "sidebarButtonsTarget", Ms = (n, e) => {
|
|
18864
18864
|
const { id: t, icon: s, label: o, tooltip: i, className: r, skipSelfClose: l, removeLayouts: a, layoutComponent: c, layoutCommand: d } = n, { pluginOpts: p, breakpointProps: u } = e, h = t;
|
|
18865
18865
|
return {
|
|
@@ -19082,7 +19082,7 @@ const up = "sidebarButtonsTarget", Ms = (n, e) => {
|
|
|
19082
19082
|
c == null || c.click();
|
|
19083
19083
|
}), n.on(`${s.runCommand}core:preview`, () => {
|
|
19084
19084
|
fp(n);
|
|
19085
|
-
}),
|
|
19085
|
+
}), G({
|
|
19086
19086
|
editor: n,
|
|
19087
19087
|
licenseKey: o.licenseKey,
|
|
19088
19088
|
plan: xy,
|
|
@@ -19091,7 +19091,7 @@ const up = "sidebarButtonsTarget", Ms = (n, e) => {
|
|
|
19091
19091
|
n.runCommand(W.layoutConfigSet);
|
|
19092
19092
|
}
|
|
19093
19093
|
});
|
|
19094
|
-
}, Cy =
|
|
19094
|
+
}, Cy = _(wy);
|
|
19095
19095
|
Cy.createLayoutConfig = (n) => mp(n);
|
|
19096
19096
|
const wt = "page-break";
|
|
19097
19097
|
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 || {});
|
|
@@ -19288,23 +19288,23 @@ const Py = "presetPrintable", Ny = H.free, Iy = function(n, e = {}) {
|
|
|
19288
19288
|
o.devices.reset(p);
|
|
19289
19289
|
const u = a && o.get(a) || o.getAll().at(0);
|
|
19290
19290
|
o.select(u), ["map", "video"].forEach((x) => i.remove(x));
|
|
19291
|
-
const f = () => {
|
|
19292
|
-
const
|
|
19293
|
-
(k.where({ id: x }).pop() || k.add(
|
|
19291
|
+
const f = (x = {}) => {
|
|
19292
|
+
const k = "page-rule", { rules: E } = n.Css, { width: M, height: P, minHeight: N } = o.getSelected().attributes, I = P && P !== "auto" ? P : N, R = E.where({ id: k }).pop(), F = R || E.add(
|
|
19294
19293
|
{
|
|
19295
|
-
id:
|
|
19294
|
+
id: k,
|
|
19296
19295
|
selectors: [],
|
|
19297
19296
|
selectorsAdd: "@page"
|
|
19298
19297
|
},
|
|
19299
19298
|
{ at: 0 }
|
|
19300
|
-
)
|
|
19301
|
-
|
|
19302
|
-
|
|
19299
|
+
);
|
|
19300
|
+
(x.fromDeviceChange || !R) && F.addStyle({
|
|
19301
|
+
size: `${M} ${I}`,
|
|
19302
|
+
...!R && { margin: "0" }
|
|
19303
19303
|
});
|
|
19304
|
-
}, m = (x) => {
|
|
19305
|
-
const
|
|
19306
|
-
${!!parseFloat(`${
|
|
19307
|
-
[data-gjs-type="wrapper"] { min-height: ${
|
|
19304
|
+
}, m = (x, k = {}) => {
|
|
19305
|
+
const E = x.document, { minHeight: M } = o.getSelected().attributes, N = `
|
|
19306
|
+
${!!parseFloat(`${M}`) ? `
|
|
19307
|
+
[data-gjs-type="wrapper"] { min-height: ${M}; }
|
|
19308
19308
|
` : `
|
|
19309
19309
|
body {
|
|
19310
19310
|
overflow: hidden;
|
|
@@ -19316,7 +19316,7 @@ const Py = "presetPrintable", Ny = H.free, Iy = function(n, e = {}) {
|
|
|
19316
19316
|
}
|
|
19317
19317
|
`}
|
|
19318
19318
|
`;
|
|
19319
|
-
Ui(`${Bs}preset-printable`,
|
|
19319
|
+
Ui(`${Bs}preset-printable`, N, { doc: E, target: E.head }), f(k);
|
|
19320
19320
|
};
|
|
19321
19321
|
n.on(r.frameLoadBody, (x) => {
|
|
19322
19322
|
const k = x.window;
|
|
@@ -19330,7 +19330,7 @@ const Py = "presetPrintable", Ny = H.free, Iy = function(n, e = {}) {
|
|
|
19330
19330
|
}), n.on(o.events.select, () => {
|
|
19331
19331
|
var k;
|
|
19332
19332
|
const x = (k = s.getFrameEl().contentDocument) == null ? void 0 : k.defaultView;
|
|
19333
|
-
x && m(x);
|
|
19333
|
+
x && m(x, { fromDeviceChange: !0 });
|
|
19334
19334
|
});
|
|
19335
19335
|
const g = () => {
|
|
19336
19336
|
const k = n.Css.getRules().filter((E) => E.selectorsToString() === "body").pop();
|
|
@@ -19350,14 +19350,14 @@ const Py = "presetPrintable", Ny = H.free, Iy = function(n, e = {}) {
|
|
|
19350
19350
|
const w = () => {
|
|
19351
19351
|
b.forEach(([x, k]) => n.off(x, k)), C(), y(), v();
|
|
19352
19352
|
};
|
|
19353
|
-
n.on(l.destroy, w),
|
|
19353
|
+
n.on(l.destroy, w), G({
|
|
19354
19354
|
editor: n,
|
|
19355
19355
|
licenseKey: t.licenseKey,
|
|
19356
19356
|
plan: Ny,
|
|
19357
19357
|
pluginName: Py,
|
|
19358
19358
|
cleanup: w
|
|
19359
19359
|
});
|
|
19360
|
-
}, Hb =
|
|
19360
|
+
}, Hb = _(Iy), Oy = (n) => {
|
|
19361
19361
|
const e = n;
|
|
19362
19362
|
return e.logicalOperator === "and" || e.logicalOperator === "or";
|
|
19363
19363
|
}, gp = (n, e) => (n.config.optsHtml = {
|
|
@@ -19962,7 +19962,7 @@ const Vy = "dataSourceEjs", By = H.startup, Hy = function(n, e = {}) {
|
|
|
19962
19962
|
contains: "<%",
|
|
19963
19963
|
importer: new zy()
|
|
19964
19964
|
});
|
|
19965
|
-
|
|
19965
|
+
G({
|
|
19966
19966
|
editor: n,
|
|
19967
19967
|
licenseKey: e.licenseKey,
|
|
19968
19968
|
plan: By,
|
|
@@ -19971,7 +19971,7 @@ const Vy = "dataSourceEjs", By = H.startup, Hy = function(n, e = {}) {
|
|
|
19971
19971
|
t(), s();
|
|
19972
19972
|
}
|
|
19973
19973
|
});
|
|
19974
|
-
}, Fb =
|
|
19974
|
+
}, Fb = _(Hy), bp = {
|
|
19975
19975
|
equals: "equals",
|
|
19976
19976
|
isTruthy: "isTruthy",
|
|
19977
19977
|
isFalsy: "isFalsy",
|
|
@@ -20282,7 +20282,7 @@ const Wi = (n) => {
|
|
|
20282
20282
|
contains: "{{",
|
|
20283
20283
|
importer: new jy()
|
|
20284
20284
|
});
|
|
20285
|
-
|
|
20285
|
+
G({
|
|
20286
20286
|
editor: n,
|
|
20287
20287
|
licenseKey: e.licenseKey,
|
|
20288
20288
|
plan: Uy,
|
|
@@ -20291,7 +20291,7 @@ const Wi = (n) => {
|
|
|
20291
20291
|
t(), s();
|
|
20292
20292
|
}
|
|
20293
20293
|
});
|
|
20294
|
-
}, _b =
|
|
20294
|
+
}, _b = _(Ky), Jy = (n) => {
|
|
20295
20295
|
const e = {};
|
|
20296
20296
|
for (const t of Object.keys(n)) {
|
|
20297
20297
|
let s = n[t];
|
|
@@ -20430,7 +20430,7 @@ const Wi = (n) => {
|
|
|
20430
20430
|
}), n.I18n.addMessages({
|
|
20431
20431
|
en: Yy,
|
|
20432
20432
|
...s
|
|
20433
|
-
}),
|
|
20433
|
+
}), G({
|
|
20434
20434
|
editor: n,
|
|
20435
20435
|
licenseKey: e.licenseKey,
|
|
20436
20436
|
plan: Qy,
|
|
@@ -20445,7 +20445,7 @@ const Wi = (n) => {
|
|
|
20445
20445
|
});
|
|
20446
20446
|
}
|
|
20447
20447
|
});
|
|
20448
|
-
}, Gb =
|
|
20448
|
+
}, Gb = _(eb), ss = (n) => n.replaceAll('"', "").replaceAll("'", ""), ji = (n) => n.includes(",") ? n : /\s/.test(n) ? `'${ss(n)}'` : ss(n), Ma = (n, e, t) => ({ family: n, variant: e, ...t }), vp = (n, e) => {
|
|
20449
20449
|
n = ji(n);
|
|
20450
20450
|
const { menuVariant: t, variants: s } = e;
|
|
20451
20451
|
return {
|
|
@@ -20605,7 +20605,7 @@ const ob = (n) => {
|
|
|
20605
20605
|
n.runCommand(W.assetProviderAdd, { provider: s }), n.I18n.addMessages({
|
|
20606
20606
|
en: rb,
|
|
20607
20607
|
...t
|
|
20608
|
-
}),
|
|
20608
|
+
}), G({
|
|
20609
20609
|
editor: n,
|
|
20610
20610
|
licenseKey: e.licenseKey,
|
|
20611
20611
|
plan: ab,
|
|
@@ -20614,7 +20614,7 @@ const ob = (n) => {
|
|
|
20614
20614
|
n.runCommand(W.assetProviderRemove, { id: s.id });
|
|
20615
20615
|
}
|
|
20616
20616
|
});
|
|
20617
|
-
}, Wb =
|
|
20617
|
+
}, Wb = _(cb), db = "canvasAbsoluteMode", pb = H.startup, ub = (n, e, t) => {
|
|
20618
20618
|
var c, d;
|
|
20619
20619
|
const s = t.enableAbsolute ?? ((p) => p.hasAbsolute), i = (Array.isArray(e) ? e : e ? [e] : [...n.getSelectedAll()])[0], r = ((d = (c = i == null ? void 0 : i.delegate) == null ? void 0 : c.move) == null ? void 0 : d.call(c, i)) || i;
|
|
20620
20620
|
if (!r) return;
|
|
@@ -20660,15 +20660,15 @@ function Sp({
|
|
|
20660
20660
|
var P, N;
|
|
20661
20661
|
const { command: s, guidesMatched: o } = t, i = t.component, r = i.getEl(), l = e.Canvas.getCanvasView(), { x: a, y: c } = n ?? { x: 10, y: 10 }, d = s.opts.event, p = d.clientX, u = d.clientY;
|
|
20662
20662
|
if (!i.__lastSnappedPosition) {
|
|
20663
|
-
const
|
|
20664
|
-
i.__lastSnappedPosition = { left:
|
|
20663
|
+
const I = l.getElBoxRect(r), R = p - I.x, F = u - I.y;
|
|
20664
|
+
i.__lastSnappedPosition = { left: I.x, top: I.y }, i.__dragOffset = { x: R, y: F };
|
|
20665
20665
|
}
|
|
20666
20666
|
const h = ((P = i.__dragOffset) == null ? void 0 : P.x) || 0, f = ((N = i.__dragOffset) == null ? void 0 : N.y) || 0, m = i.__lastSnappedPosition, g = p - m.left - h, b = u - m.top - f;
|
|
20667
20667
|
let C = m.left, y = m.top;
|
|
20668
20668
|
const v = o == null ? void 0 : o[0], w = (v == null ? void 0 : v.guide.type) === "l", S = (v == null ? void 0 : v.guide.type) === "x", x = (v == null ? void 0 : v.guide.type) === "r", k = (v == null ? void 0 : v.guide.type) === "t", E = (v == null ? void 0 : v.guide.type) === "b", M = (v == null ? void 0 : v.guide.type) === "y";
|
|
20669
20669
|
if (v) {
|
|
20670
|
-
const { x:
|
|
20671
|
-
w ? C =
|
|
20670
|
+
const { x: I, y: R } = Vs({ guideMatched: v, canvasView: l }), F = r.offsetWidth, ie = r.offsetHeight;
|
|
20671
|
+
w ? C = I : x ? C = I - F : S ? C = I - F / 2 : k ? y = R : E ? y = R - ie : M && (y = R - ie / 2), i.__lastSnappedGuideMatched = v;
|
|
20672
20672
|
} else
|
|
20673
20673
|
Math.abs(g) >= a && (C = Math.round((m.left + g) / a) * a, i.__lastSnappedGuideMatched = null), Math.abs(b) >= c && (y = Math.round((m.top + b) / c) * c, i.__lastSnappedGuideMatched = null);
|
|
20674
20674
|
return i.addStyle({ left: `${C}px`, top: `${y}px` }, { partial: !0 }), i.__lastSnappedPosition = { left: C, top: y }, { x: C, y, guideMatched: i.__lastSnappedGuideMatched };
|
|
@@ -20694,11 +20694,11 @@ const mb = "core:component-drag", gb = "studio:setDragAbsolute", yb = "dmode:sta
|
|
|
20694
20694
|
const c = !!(r != null && r.x || r != null && r.y), d = !!(l != null && l.x || l != null && l.y), { Canvas: p } = n;
|
|
20695
20695
|
let u = null;
|
|
20696
20696
|
const h = (x) => {
|
|
20697
|
-
const { component: k, guidesMatched: E, command: M } = x, P = k.view, N = n.Canvas.getCanvasView(),
|
|
20698
|
-
let R = E.map((re) => re.matched.componentEl),
|
|
20697
|
+
const { component: k, guidesMatched: E, command: M } = x, P = k.view, N = n.Canvas.getCanvasView(), I = k.getEl();
|
|
20698
|
+
let R = E.map((re) => re.matched.componentEl), F = E.map((re) => Vs({ guideMatched: re, canvasView: N }));
|
|
20699
20699
|
if (c) {
|
|
20700
20700
|
const { guideMatched: re } = Sp({ snapping: r, props: x, editor: n });
|
|
20701
|
-
re ? (R = [re.matched.componentEl],
|
|
20701
|
+
re ? (R = [re.matched.componentEl], F = [Vs({ guideMatched: re, canvasView: N })]) : (R = [], F = []);
|
|
20702
20702
|
}
|
|
20703
20703
|
if (d)
|
|
20704
20704
|
if (M.opts.event.shiftKey)
|
|
@@ -20706,7 +20706,7 @@ const mb = "core:component-drag", gb = "studio:setDragAbsolute", yb = "dmode:sta
|
|
|
20706
20706
|
u = E[0];
|
|
20707
20707
|
else {
|
|
20708
20708
|
const je = u, ye = je.guide.x === void 0 ? "x" : "y";
|
|
20709
|
-
(ye === "x" && (l == null ? void 0 : l.x) || ye === "y" && (l == null ? void 0 : l.y)) && (hb({ guideMatched: je, component: k, canvasView: N }), R = [je.matched.componentEl],
|
|
20709
|
+
(ye === "x" && (l == null ? void 0 : l.x) || ye === "y" && (l == null ? void 0 : l.y)) && (hb({ guideMatched: je, component: k, canvasView: N }), R = [je.matched.componentEl], F = [Vs({ guideMatched: je, canvasView: N })]);
|
|
20710
20710
|
}
|
|
20711
20711
|
else
|
|
20712
20712
|
u = null;
|
|
@@ -20715,9 +20715,9 @@ const mb = "core:component-drag", gb = "studio:setDragAbsolute", yb = "dmode:sta
|
|
|
20715
20715
|
type: Xo,
|
|
20716
20716
|
component: k,
|
|
20717
20717
|
componentView: P,
|
|
20718
|
-
originComponent:
|
|
20718
|
+
originComponent: I,
|
|
20719
20719
|
matchedComponents: R,
|
|
20720
|
-
originMatchedDistances:
|
|
20720
|
+
originMatchedDistances: F
|
|
20721
20721
|
};
|
|
20722
20722
|
p.addSpot(ie);
|
|
20723
20723
|
}, f = ({ enabled: x }) => {
|
|
@@ -20746,7 +20746,7 @@ const mb = "core:component-drag", gb = "studio:setDragAbsolute", yb = "dmode:sta
|
|
|
20746
20746
|
E != null && E.result && !E.dmode && (x.options.mode = "absolute");
|
|
20747
20747
|
}]
|
|
20748
20748
|
];
|
|
20749
|
-
S.forEach(([x, k]) => n.on(x, k)),
|
|
20749
|
+
S.forEach(([x, k]) => n.on(x, k)), G({
|
|
20750
20750
|
editor: n,
|
|
20751
20751
|
licenseKey: e.licenseKey,
|
|
20752
20752
|
plan: pb,
|
|
@@ -20755,7 +20755,7 @@ const mb = "core:component-drag", gb = "studio:setDragAbsolute", yb = "dmode:sta
|
|
|
20755
20755
|
f({ enabled: !1 }), S.forEach(([x, k]) => n.off(x, k));
|
|
20756
20756
|
}
|
|
20757
20757
|
});
|
|
20758
|
-
}, jb =
|
|
20758
|
+
}, jb = _(xb);
|
|
20759
20759
|
export {
|
|
20760
20760
|
Nb as accordionComponent,
|
|
20761
20761
|
Ob as animationComponent,
|