@grapesjs/studio-sdk-plugins 1.0.37 → 1.0.38

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.
Files changed (93) hide show
  1. package/dist/accordionComponent/index.cjs.js +3 -3
  2. package/dist/accordionComponent/index.es.js +12 -12
  3. package/dist/accordionComponent/index.umd.js +3 -3
  4. package/dist/aiChat/index.cjs.js +85 -85
  5. package/dist/aiChat/index.es.js +9759 -9332
  6. package/dist/aiChat/index.js +85 -85
  7. package/dist/aiChat/index.umd.js +86 -86
  8. package/dist/aiChat/locales/en.d.ts +11 -0
  9. package/dist/aiChat/server/index.cjs.js +1 -1
  10. package/dist/aiChat/server/index.es.js +1 -1
  11. package/dist/aiChat/server/index.js +1 -1
  12. package/dist/aiChat/server/index.umd.js +1 -1
  13. package/dist/aiChat/types.d.ts +1 -1
  14. package/dist/animationComponent/index.cjs.js +3 -3
  15. package/dist/animationComponent/index.es.js +10 -10
  16. package/dist/animationComponent/index.umd.js +3 -3
  17. package/dist/canvasAbsoluteMode/index.cjs.js +1 -1
  18. package/dist/canvasAbsoluteMode/index.es.js +10 -10
  19. package/dist/canvasAbsoluteMode/index.umd.js +1 -1
  20. package/dist/canvasEmptyState/index.cjs.js +1 -1
  21. package/dist/canvasEmptyState/index.es.js +1 -1
  22. package/dist/canvasEmptyState/index.umd.js +1 -1
  23. package/dist/canvasFullSize/index.cjs.js +4 -4
  24. package/dist/canvasFullSize/index.es.js +15 -15
  25. package/dist/canvasFullSize/index.umd.js +3 -3
  26. package/dist/canvasGridMode/index.cjs.js +2 -2
  27. package/dist/canvasGridMode/index.es.js +233 -228
  28. package/dist/canvasGridMode/index.umd.js +2 -2
  29. package/dist/canvasScreenshot/index.cjs.js +1 -1
  30. package/dist/canvasScreenshot/index.es.js +11 -11
  31. package/dist/canvasScreenshot/index.umd.js +1 -1
  32. package/dist/dataSourceEjs/index.cjs.js +2 -2
  33. package/dist/dataSourceEjs/index.es.js +5 -5
  34. package/dist/dataSourceEjs/index.umd.js +1 -1
  35. package/dist/dataSourceHandlebars/index.cjs.js +1 -1
  36. package/dist/dataSourceHandlebars/index.es.js +105 -105
  37. package/dist/dataSourceHandlebars/index.umd.js +5 -5
  38. package/dist/dialogComponent/index.cjs.js +3 -3
  39. package/dist/dialogComponent/index.es.js +18 -18
  40. package/dist/dialogComponent/index.umd.js +3 -3
  41. package/dist/flexComponent/index.cjs.js +1 -1
  42. package/dist/flexComponent/index.es.js +1 -1
  43. package/dist/flexComponent/index.umd.js +3 -3
  44. package/dist/fsLightboxComponent/index.cjs.js +1 -1
  45. package/dist/fsLightboxComponent/index.es.js +7 -7
  46. package/dist/fsLightboxComponent/index.umd.js +2 -2
  47. package/dist/googleFontsAssetProvider/index.cjs.js +1 -1
  48. package/dist/googleFontsAssetProvider/index.es.js +12 -12
  49. package/dist/googleFontsAssetProvider/index.umd.js +1 -1
  50. package/dist/iconifyComponent/index.cjs.js +2 -2
  51. package/dist/iconifyComponent/index.es.js +61 -61
  52. package/dist/iconifyComponent/index.umd.js +2 -2
  53. package/dist/index.cjs.js +24 -24
  54. package/dist/index.es.js +335 -330
  55. package/dist/index.umd.js +25 -25
  56. package/dist/layoutSidebarButtons/index.cjs.js +1 -1
  57. package/dist/layoutSidebarButtons/index.es.js +15 -15
  58. package/dist/layoutSidebarButtons/index.umd.js +1 -1
  59. package/dist/lightGalleryComponent/index.cjs.js +1 -1
  60. package/dist/lightGalleryComponent/index.es.js +20 -20
  61. package/dist/lightGalleryComponent/index.umd.js +1 -1
  62. package/dist/linkImageComponent/index.cjs.js +1 -1
  63. package/dist/linkImageComponent/index.es.js +1 -1
  64. package/dist/linkImageComponent/index.umd.js +2 -2
  65. package/dist/listPagesComponent/index.cjs.js +2 -2
  66. package/dist/listPagesComponent/index.es.js +10 -10
  67. package/dist/listPagesComponent/index.umd.js +2 -2
  68. package/dist/presetPrintable/index.cjs.js +5 -5
  69. package/dist/presetPrintable/index.es.js +47 -47
  70. package/dist/presetPrintable/index.umd.js +4 -4
  71. package/dist/prosemirror/index.cjs.js +1 -1
  72. package/dist/prosemirror/index.es.js +1 -1
  73. package/dist/prosemirror/index.umd.js +1 -1
  74. package/dist/rendererReact/index.cjs.js +1 -1
  75. package/dist/rendererReact/index.es.js +16 -16
  76. package/dist/rendererReact/index.js +1 -1
  77. package/dist/rendererReact/index.umd.js +1 -1
  78. package/dist/rteTinyMce/index.cjs.js +2 -2
  79. package/dist/rteTinyMce/index.es.js +27 -27
  80. package/dist/rteTinyMce/index.umd.js +1 -1
  81. package/dist/shapeDividerComponent/index.cjs.js +1 -1
  82. package/dist/shapeDividerComponent/index.es.js +10 -10
  83. package/dist/shapeDividerComponent/index.umd.js +2 -2
  84. package/dist/swiperComponent/index.cjs.js +1 -1
  85. package/dist/swiperComponent/index.es.js +1 -1
  86. package/dist/swiperComponent/index.umd.js +1 -1
  87. package/dist/tableComponent/index.cjs.js +1 -1
  88. package/dist/tableComponent/index.es.js +9 -9
  89. package/dist/tableComponent/index.umd.js +1 -1
  90. package/dist/youtubeAssetProvider/index.cjs.js +1 -1
  91. package/dist/youtubeAssetProvider/index.es.js +5 -5
  92. package/dist/youtubeAssetProvider/index.umd.js +1 -1
  93. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -88,7 +88,7 @@ async function zp({
88
88
  throw new Error(`HTTP error! status: ${p.status}`);
89
89
  return p.json();
90
90
  }
91
- 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 || {});
91
+ 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.openEditCode = "studio:openEditCode", 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 || {});
92
92
  const Ei = {
93
93
  [H.free]: 0,
94
94
  [H.startup]: 10,
@@ -117,8 +117,8 @@ async function W({
117
117
  if (!(h || p.license) || u)
118
118
  a(u || "Invalid license");
119
119
  else if (f) {
120
- const b = Ei[e], C = Ei[f];
121
- b > C && a({ pluginRequiredPlan: e, licensePlan: f });
120
+ const b = Ei[e], w = Ei[f];
121
+ b > w && a({ pluginRequiredPlan: e, licensePlan: f });
122
122
  }
123
123
  };
124
124
  n.Commands.has(_.settings) && (l = n.runCommand(_.settings), i = (l == null ? void 0 : l.baseUrl) || "");
@@ -292,35 +292,35 @@ const Po = (n, e) => {
292
292
  script: function(f) {
293
293
  const m = this;
294
294
  function g(v) {
295
- const w = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]'), S = m.querySelector('[data-type-role="gjs-plg-dialog-close"]');
295
+ const C = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]'), S = m.querySelector('[data-type-role="gjs-plg-dialog-close"]');
296
296
  function x() {
297
- w.style.display = "none";
297
+ C.style.display = "none";
298
298
  }
299
299
  v ? (m._onCloseWhenPressingX = x, S.addEventListener("click", m._onCloseWhenPressingX)) : (S.removeEventListener("click", m._onCloseWhenPressingX), m._onCloseWhenPressingX = null);
300
300
  }
301
301
  function b(v) {
302
- const w = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
302
+ const C = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
303
303
  function S(x) {
304
- x.key === "Escape" && (w.style.display = "none");
304
+ x.key === "Escape" && (C.style.display = "none");
305
305
  }
306
306
  v ? (m._onCloseWhenPressingEsc = S, m.addEventListener("keydown", m._onCloseWhenPressingEsc)) : (m.removeEventListener("keydown", m._onCloseWhenPressingEsc), m._onCloseWhenPressingEsc = null);
307
307
  }
308
- function C(v) {
309
- const w = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
308
+ function w(v) {
309
+ const C = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
310
310
  function S() {
311
- w.style.display = "flex";
311
+ C.style.display = "flex";
312
312
  }
313
313
  v ? (m._onOpenWhenLeavingWindow = S, document.addEventListener("mouseleave", m._onOpenWhenLeavingWindow)) : (document.removeEventListener("mouseleave", m._onOpenWhenLeavingWindow), m._onOpenWhenLeavingWindow = null);
314
314
  }
315
315
  function y(v) {
316
- const w = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
316
+ const C = m.querySelector('[data-type-role="gjs-plg-dialog-overlay"]');
317
317
  function S() {
318
318
  const x = document.documentElement.scrollTop;
319
- v && x >= Number(v) && (w.style.display = "flex");
319
+ v && x >= Number(v) && (C.style.display = "flex");
320
320
  }
321
321
  v ? (m._onOpenWhenScrollingToLevel = S, document.addEventListener("scroll", m._onOpenWhenScrollingToLevel)) : (document.removeEventListener("scroll", m._onOpenWhenScrollingToLevel), m._onOpenWhenScrollingToLevel = null);
322
322
  }
323
- g(f.closeWhenPressingX), b(f.closeWhenPressingEsc), C(f.openWhenLeavingWindow), y(f.openWhenScrollingToLevel);
323
+ g(f.closeWhenPressingX), b(f.closeWhenPressingEsc), w(f.openWhenLeavingWindow), y(f.openWhenScrollingToLevel);
324
324
  }
325
325
  },
326
326
  init() {
@@ -649,8 +649,8 @@ function nu({
649
649
  () => {
650
650
  const b = h.cloneNode(!0);
651
651
  b.removeAttribute("style");
652
- const C = b.outerHTML;
653
- t({ icon: C, collectionId: i, iconId: a.name }), d == null || d.runCommand(_.layoutRemove, { id: Ba });
652
+ const w = b.outerHTML;
653
+ t({ icon: w, collectionId: i, iconId: a.name }), d == null || d.runCommand(_.layoutRemove, { id: Ba });
654
654
  }
655
655
  ],
656
656
  [
@@ -666,8 +666,8 @@ function nu({
666
666
  }
667
667
  ]
668
668
  ];
669
- return g.forEach(([b, C]) => h.addEventListener(b, C)), p(h), () => {
670
- g.forEach(([b, C]) => h.removeEventListener(b, C)), u(h);
669
+ return g.forEach(([b, w]) => h.addEventListener(b, w)), p(h), () => {
670
+ g.forEach(([b, w]) => h.removeEventListener(b, w)), u(h);
671
671
  };
672
672
  }
673
673
  })
@@ -1161,8 +1161,8 @@ function vu(n, e = {}) {
1161
1161
  for (let g = l; g <= c; g++) {
1162
1162
  const b = en(r, g, m);
1163
1163
  if (!b) continue;
1164
- const { cell: C } = b;
1165
- C !== f && h.push(C);
1164
+ const { cell: w } = b;
1165
+ w !== f && h.push(w);
1166
1166
  }
1167
1167
  h.forEach((m) => {
1168
1168
  e.mergeContent && f.append(m.components().models), m.remove();
@@ -1491,9 +1491,9 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1491
1491
  syncPageItems() {
1492
1492
  if (n.Components.getSymbolInfo(this).isInstance) return;
1493
1493
  const f = this.em.Pages.getAll(), m = this.components(), g = Ou(this);
1494
- f.forEach((b, C) => {
1495
- const y = b.id, v = b.getName(), w = g[y];
1496
- w ? w == null || w.forEach((S) => {
1494
+ f.forEach((b, w) => {
1495
+ const y = b.id, v = b.getName(), C = g[y];
1496
+ C ? C == null || C.forEach((S) => {
1497
1497
  S.getInnerHTML() !== v && S.components(v);
1498
1498
  }) : m.add(
1499
1499
  {
@@ -1506,7 +1506,7 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1506
1506
  }
1507
1507
  ]
1508
1508
  },
1509
- { at: C }
1509
+ { at: w }
1510
1510
  );
1511
1511
  });
1512
1512
  }
@@ -1566,13 +1566,13 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1566
1566
  defaultSrc: "https://placehold.co/300/777/white.png?text=Image",
1567
1567
  cdnScript: "https://cdn.jsdelivr.net/npm/fslightbox@3.4.2/index.js",
1568
1568
  ...e
1569
- }, { block: l, toolbarIconOpen: a, defaultSrc: c } = i, d = function(C) {
1570
- const y = this, v = "data-fslightbox", w = window, S = () => {
1569
+ }, { block: l, toolbarIconOpen: a, defaultSrc: c } = i, d = function(w) {
1570
+ const y = this, v = "data-fslightbox", C = window, S = () => {
1571
1571
  var M;
1572
- const x = w.refreshFsLightbox;
1572
+ const x = C.refreshFsLightbox;
1573
1573
  x == null || x();
1574
- const k = y.getAttribute(v);
1575
- if ((M = w.fsLightboxInstances) == null || M[k], !w._isEditor) return;
1574
+ const E = y.getAttribute(v);
1575
+ if ((M = C.fsLightboxInstances) == null || M[E], !C._isEditor) return;
1576
1576
  Array.from(document.querySelectorAll(`[${v}]`)).forEach((P) => {
1577
1577
  const N = P.onclick;
1578
1578
  P.onclick = function(I) {
@@ -1582,17 +1582,17 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1582
1582
  };
1583
1583
  });
1584
1584
  };
1585
- if (w.refreshFsLightbox)
1585
+ if (C.refreshFsLightbox)
1586
1586
  S();
1587
1587
  else {
1588
1588
  const x = document.createElement("script");
1589
- x.src = C.cdnScript, x.onload = S, document.head.appendChild(x);
1589
+ x.src = w.cdnScript, x.onload = S, document.head.appendChild(x);
1590
1590
  }
1591
- }, p = (C) => ({
1591
+ }, p = (w) => ({
1592
1592
  id: `${qt}-open-lb`,
1593
1593
  label: a,
1594
1594
  command: () => {
1595
- const y = C.getView();
1595
+ const y = w.getView();
1596
1596
  y == null || y.toggleLightbox();
1597
1597
  }
1598
1598
  }), u = "source-type", h = {
@@ -1635,9 +1635,9 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1635
1635
  select: !0,
1636
1636
  ...i.block
1637
1637
  },
1638
- isComponent: (C) => {
1638
+ isComponent: (w) => {
1639
1639
  var y;
1640
- return (y = C.hasAttribute) == null ? void 0 : y.call(C, mo);
1640
+ return (y = w.hasAttribute) == null ? void 0 : y.call(w, mo);
1641
1641
  },
1642
1642
  extendFn: ["initToolbar"],
1643
1643
  model: {
@@ -1646,7 +1646,7 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1646
1646
  name: s,
1647
1647
  icon: Ut.imageLightbox,
1648
1648
  classes: r,
1649
- draggable: (C, y) => !y.is(qt),
1649
+ draggable: (w, y) => !y.is(qt),
1650
1650
  attributes: {
1651
1651
  [mo]: "lightbox",
1652
1652
  [go]: "image",
@@ -1666,9 +1666,9 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1666
1666
  {
1667
1667
  type: "button",
1668
1668
  label: "Toggle Lightbox",
1669
- command(C, y) {
1670
- var w;
1671
- const v = (w = y.target) == null ? void 0 : w.getView();
1669
+ command(w, y) {
1670
+ var C;
1671
+ const v = (C = y.target) == null ? void 0 : C.getView();
1672
1672
  v == null || v.toggleLightbox();
1673
1673
  }
1674
1674
  }
@@ -1681,33 +1681,33 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1681
1681
  `
1682
1682
  },
1683
1683
  init() {
1684
- const C = [u].map((y) => `change:${y}`).join(" ");
1685
- this.on(C, this.updateTraits), this.on(`change:${u}`, this.onSourceTypeChange), this.on("change:attributes:href", this.adjustSourceType), this.updateTraits({ init: !0 }), this.adjustSourceType();
1684
+ const w = [u].map((y) => `change:${y}`).join(" ");
1685
+ this.on(w, this.updateTraits), this.on(`change:${u}`, this.onSourceTypeChange), this.on("change:attributes:href", this.adjustSourceType), this.updateTraits({ init: !0 }), this.adjustSourceType();
1686
1686
  },
1687
- onSourceTypeChange(C, y, v) {
1687
+ onSourceTypeChange(w, y, v) {
1688
1688
  if (v.adjust) return;
1689
1689
  const S = this.get(u) === "video" ? "video" : "image";
1690
1690
  this.addAttributes({ [go]: S, href: "" });
1691
1691
  },
1692
1692
  adjustSourceType() {
1693
- const C = this.get(u), y = this.getAttributes().href || "", v = { adjust: !0 };
1694
- if (C === "video") {
1695
- const w = y.includes("youtube.com") ? "youtube" : "video";
1696
- this.addAttributes({ [go]: w }, v);
1697
- } else C !== "el" && y.startsWith("#") ? this.set(u, "el", v) : C === "image" && this.addAttributes({ [go]: "image" }, v);
1693
+ const w = this.get(u), y = this.getAttributes().href || "", v = { adjust: !0 };
1694
+ if (w === "video") {
1695
+ const C = y.includes("youtube.com") ? "youtube" : "video";
1696
+ this.addAttributes({ [go]: C }, v);
1697
+ } else w !== "el" && y.startsWith("#") ? this.set(u, "el", v) : w === "image" && this.addAttributes({ [go]: "image" }, v);
1698
1698
  },
1699
- updateTraits(C = {}) {
1700
- const { changed: y } = this, { init: v } = C;
1699
+ updateTraits(w = {}) {
1700
+ const { changed: y } = this, { init: v } = w;
1701
1701
  if (y[h.name] || v) {
1702
1702
  this.removeTrait([f.name, m.name, g.name]);
1703
- const w = this.get(u) || "image", S = this.getTraitIndex(u) + 1;
1704
- this.addTrait(b[w], { at: S });
1703
+ const C = this.get(u) || "image", S = this.getTraitIndex(u) + 1;
1704
+ this.addTrait(b[C], { at: S });
1705
1705
  }
1706
1706
  },
1707
1707
  initToolbar() {
1708
1708
  if (!a) return;
1709
- const { toolbar: C } = this, y = p(this);
1710
- !C.find((w) => w.id === y.id) && (C == null || C.unshift(y));
1709
+ const { toolbar: w } = this, y = p(this);
1710
+ !w.find((C) => C.id === y.id) && (w == null || w.unshift(y));
1711
1711
  }
1712
1712
  },
1713
1713
  view: {
@@ -1716,16 +1716,16 @@ const ic = "Cell settings", Su = "Merge cells", xu = "Split cell", wu = (n) => n
1716
1716
  },
1717
1717
  toggleLightbox() {
1718
1718
  var P;
1719
- const { em: C, el: y, model: v } = this, { Canvas: w } = C, S = v.getAttributes()[mo], { defaultView: x, documentElement: k } = y.ownerDocument, E = (P = x.fsLightboxInstances) == null ? void 0 : P[S];
1720
- if (k.classList.contains(Bu))
1721
- E.close();
1719
+ const { em: w, el: y, model: v } = this, { Canvas: C } = w, S = v.getAttributes()[mo], { defaultView: x, documentElement: E } = y.ownerDocument, k = (P = x.fsLightboxInstances) == null ? void 0 : P[S];
1720
+ if (E.classList.contains(Bu))
1721
+ k.close();
1722
1722
  else {
1723
1723
  y.__skipLb = !1;
1724
1724
  let N;
1725
- E.props.onOpen = () => {
1726
- N = w.getSpots(), setTimeout(() => w.removeSpots());
1727
- }, E.props.onClose = () => {
1728
- N.forEach((I) => w.addSpot(I.attributes));
1725
+ k.props.onOpen = () => {
1726
+ N = C.getSpots(), setTimeout(() => C.removeSpots());
1727
+ }, k.props.onClose = () => {
1728
+ N.forEach((I) => C.addSpot(I.attributes));
1729
1729
  }, y.click();
1730
1730
  }
1731
1731
  }
@@ -2179,7 +2179,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2179
2179
  cdnStyle: `${Kt}/css/lightgallery-bundle.min.css`,
2180
2180
  ...e
2181
2181
  }, { block: l, toolbarIconOpen: a, defaultSrc: c } = i, d = function(y) {
2182
- 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 = () => {
2182
+ const v = this, C = window, { plugins: S, cdnScript: x, cdnStyle: E, inline: k, lgLicenseKey: M, ...P } = y || {}, N = (R) => isNaN(R) ? void 0 : parseInt(R, 10), I = () => {
2183
2183
  var ie;
2184
2184
  const R = {
2185
2185
  ...P,
@@ -2191,16 +2191,16 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2191
2191
  slideShowInterval: N(P.slideShowInterval),
2192
2192
  scale: N(P.scale),
2193
2193
  enableZoomAfter: N(P.enableZoomAfter),
2194
- plugins: (S || []).map((le) => w[le])
2194
+ plugins: (S || []).map((le) => C[le])
2195
2195
  };
2196
- E && (R.container = v, R.closable = !1);
2197
- const F = (ie = w.lightGallery) == null ? void 0 : ie.call(w, v, R);
2198
- E && F.openGallery();
2196
+ k && (R.container = v, R.closable = !1);
2197
+ const F = (ie = C.lightGallery) == null ? void 0 : ie.call(C, v, R);
2198
+ k && F.openGallery();
2199
2199
  };
2200
- if (w.lightGallery)
2200
+ if (C.lightGallery)
2201
2201
  I();
2202
2202
  else {
2203
- const { head: R } = document, F = Array.isArray(x) ? [...x] : [x], ie = Array.isArray(k) ? [...k] : [k], le = (ve) => {
2203
+ const { head: R } = document, F = Array.isArray(x) ? [...x] : [x], ie = Array.isArray(E) ? [...E] : [E], le = (ve) => {
2204
2204
  if (ve.length) {
2205
2205
  const Ce = document.createElement("link");
2206
2206
  Ce.href = ve.shift(), Ce.rel = "stylesheet", R.appendChild(Ce), le(ve);
@@ -2217,12 +2217,12 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2217
2217
  }, p = (y) => {
2218
2218
  const v = y.getTrait(Ho);
2219
2219
  if (!a || !v) return;
2220
- const { toolbar: w } = y, S = {
2220
+ const { toolbar: C } = y, S = {
2221
2221
  id: Ho,
2222
2222
  label: a,
2223
2223
  command: () => setTimeout(() => v.runCommand(), 100)
2224
2224
  };
2225
- !w.find((k) => k.id === S.id) && (w == null || w.unshift(S));
2225
+ !C.find((E) => E.id === S.id) && (C == null || C.unshift(S));
2226
2226
  };
2227
2227
  let u = [];
2228
2228
  const h = i.plugins || [], f = Cn(Wu), m = h.includes(zi) ? Cn(ju) : Ms, g = h.includes(Vi) ? Cn(qu) : Ms, b = h.includes(Bi) ? Cn(Uu) : Ms;
@@ -2306,8 +2306,8 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2306
2306
  this.el.__lg = y.detail.instance, !this.isInlineGallery() && this.disableLgInCanvas();
2307
2307
  },
2308
2308
  onLgOpen() {
2309
- const { em: y } = this, { Canvas: v } = y, w = this.getLightGallery();
2310
- u = v.getSpots(), setTimeout(() => v.removeSpots()), w.__lgOpened = !0;
2309
+ const { em: y } = this, { Canvas: v } = y, C = this.getLightGallery();
2310
+ u = v.getSpots(), setTimeout(() => v.removeSpots()), C.__lgOpened = !0;
2311
2311
  },
2312
2312
  onLgClose() {
2313
2313
  const y = this.getLightGallery();
@@ -2320,7 +2320,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2320
2320
  }
2321
2321
  }
2322
2322
  });
2323
- const C = Cn(Ku);
2323
+ const w = Cn(Ku);
2324
2324
  o.addType(Di, {
2325
2325
  isComponent: (y) => Po(y, Li) || y.tagName === "A" && Po(y.parentElement, Io),
2326
2326
  extendFn: ["init", "initToolbar"],
@@ -2331,8 +2331,8 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2331
2331
  icon: Tt.galleryItem,
2332
2332
  attributes: { [Li]: !0, href: c },
2333
2333
  components: { type: "image", attributes: { alt: "Image", src: c } },
2334
- ...C.props,
2335
- traits: [...C.traits]
2334
+ ...w.props,
2335
+ traits: [...w.traits]
2336
2336
  },
2337
2337
  init() {
2338
2338
  const y = [nt].map((v) => `change:${v}`).join(" ");
@@ -2350,8 +2350,8 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2350
2350
  (v = this.closestType(Ct)) == null || v.__scriptPropsChange(...y);
2351
2351
  },
2352
2352
  updateTraits(y = {}) {
2353
- const { changed: v } = this, { init: w } = y;
2354
- if (v[nt] || w) {
2353
+ const { changed: v } = this, { init: C } = y;
2354
+ if (v[nt] || C) {
2355
2355
  ir(this, nt);
2356
2356
  const S = this.getTrait(nt).getValue();
2357
2357
  if (S === Yt.image) {
@@ -2946,10 +2946,10 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2946
2946
  }
2947
2947
  }, _i = "Slider", cr = "swiper", xn = `${cr}-`, Xu = (n, e) => {
2948
2948
  const { Components: t, Blocks: o, Commands: s } = n, { block: r } = e, i = Fp(Yu), l = "core:preview", a = s.events, c = function(u) {
2949
- const h = this, f = window, m = h.__onLoad, g = h.__activeSlide, b = h.__inPreview, C = f._isEditor && !b ? u.autoplayEditor : !0, { cdnScript: y, cdnStyle: v, slidesPerView: w } = u || {}, S = (k) => isNaN(k) ? void 0 : parseFloat(k), x = () => {
2950
- const k = h.parentElement;
2951
- k && (k.style.minWidth = "0");
2952
- const E = {
2949
+ const h = this, f = window, m = h.__onLoad, g = h.__activeSlide, b = h.__inPreview, w = f._isEditor && !b ? u.autoplayEditor : !0, { cdnScript: y, cdnStyle: v, slidesPerView: C } = u || {}, S = (E) => isNaN(E) ? void 0 : parseFloat(E), x = () => {
2950
+ const E = h.parentElement;
2951
+ E && (E.style.minWidth = "0");
2952
+ const k = {
2953
2953
  loop: u.loop,
2954
2954
  speed: u.speed,
2955
2955
  initialSlide: u.initialSlide,
@@ -2962,7 +2962,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
2962
2962
  grabCursor: u.grabCursor,
2963
2963
  simulateTouch: !0,
2964
2964
  breakpoints: {},
2965
- slidesPerView: isNaN(w) ? w : S(w),
2965
+ slidesPerView: isNaN(C) ? C : S(C),
2966
2966
  slidesPerGroup: S(u.slidesPerGroup),
2967
2967
  spaceBetween: S(u.spaceBetween),
2968
2968
  slidesOffsetBefore: S(u.slidesOffsetBefore),
@@ -3009,7 +3009,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
3009
3009
  draggable: u.scrollbarDraggable,
3010
3010
  hide: u.scrollbarHide
3011
3011
  },
3012
- autoplay: u.autoplay && C && {
3012
+ autoplay: u.autoplay && w && {
3013
3013
  delay: u.autoplayDelay,
3014
3014
  disableOnInteraction: u.autoplayDisableOnInteraction,
3015
3015
  pauseOnMouseEnter: u.autoplayPauseOnMouseEnter,
@@ -3020,7 +3020,7 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
3020
3020
  };
3021
3021
  if (u.tablet) {
3022
3022
  const { tabletBreakpoint: P, tabletSlidesPerView: N } = u, I = S(P);
3023
- E.breakpoints[I] = {
3023
+ k.breakpoints[I] = {
3024
3024
  slidesPerView: isNaN(N) ? N : S(N),
3025
3025
  slidesPerGroup: S(u.tabletSlidesPerGroup),
3026
3026
  spaceBetween: S(u.tabletSpaceBetween)
@@ -3028,32 +3028,32 @@ const Ct = "lightGallery", Di = `${Ct}-item`, Io = "data-lightgallery", Li = `${
3028
3028
  }
3029
3029
  if (u.mobile) {
3030
3030
  const { mobileBreakpoint: P, mobileSlidesPerView: N } = u, I = S(P);
3031
- E.breakpoints[I] = {
3031
+ k.breakpoints[I] = {
3032
3032
  slidesPerView: isNaN(N) ? N : S(N),
3033
3033
  slidesPerGroup: S(u.mobileSlidesPerGroup),
3034
3034
  spaceBetween: S(u.mobileSpaceBetween)
3035
3035
  };
3036
3036
  }
3037
- m && !b && (E.simulateTouch = !1), g && (E.initialSlide = g);
3038
- const M = new f.Swiper(h, E);
3037
+ m && !b && (k.simulateTouch = !1), g && (k.initialSlide = g);
3038
+ const M = new f.Swiper(h, k);
3039
3039
  m == null || m(M);
3040
3040
  };
3041
3041
  if (f.Swiper)
3042
3042
  x();
3043
3043
  else {
3044
- const { head: k } = document, E = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (I) => {
3044
+ const { head: E } = document, k = Array.isArray(y) ? [...y] : [y], M = Array.isArray(v) ? [...v] : [v], P = (I) => {
3045
3045
  if (I.length) {
3046
3046
  const R = document.createElement("link");
3047
- R.href = I.shift(), R.rel = "stylesheet", k.prepend(R), P(I);
3047
+ R.href = I.shift(), R.rel = "stylesheet", E.prepend(R), P(I);
3048
3048
  }
3049
3049
  }, N = (I) => {
3050
3050
  if (I.length) {
3051
3051
  const R = document.createElement("script");
3052
- R.src = I.shift(), R.onerror = R.onload = N.bind(null, I), k.appendChild(R);
3052
+ R.src = I.shift(), R.onerror = R.onload = N.bind(null, I), E.appendChild(R);
3053
3053
  } else
3054
3054
  x();
3055
3055
  };
3056
- P(M), N(E);
3056
+ P(M), N(k);
3057
3057
  }
3058
3058
  }, d = (u = 0) => ({
3059
3059
  type: qn,
@@ -3980,23 +3980,23 @@ class $h {
3980
3980
  if (!r) return;
3981
3981
  const l = i.minItemPercent ?? 0, a = Go(t), c = yr({ componentRow: r, isVertical: a }, i), d = Zi(r, a, this.opts), u = 100 - d / c * 100, h = o / (c - d) * u, { startPercent: f = 0, neighborStartPercent: m = 0 } = s, g = { componentRow: r, isVertical: a, componentColumn: e, partial: !0 }, b = Ji(t, o) ? f + Math.abs(h) : f - Math.abs(h);
3982
3982
  if (typeof s.adjacentIdx < "u") {
3983
- const C = r.components().models[s.adjacentIdx], y = f + m, v = y - l, S = Math.min(v, Math.max(l, b)), x = y - S;
3983
+ const w = r.components().models[s.adjacentIdx], y = f + m, v = y - l, S = Math.min(v, Math.max(l, b)), x = y - S;
3984
3984
  $n({ ...g, sizeValue: `${Ln(S)}%` }, i), $n(
3985
- { ...g, componentColumn: C, sizeValue: `${Ln(x)}%` },
3985
+ { ...g, componentColumn: w, sizeValue: `${Ln(x)}%` },
3986
3986
  i
3987
3987
  );
3988
3988
  } else {
3989
- const C = Math.max(l, Math.min(u, b));
3990
- $n({ ...g, sizeValue: `${Ln(C)}%` }, i);
3989
+ const w = Math.max(l, Math.min(u, b));
3990
+ $n({ ...g, sizeValue: `${Ln(w)}%` }, i);
3991
3991
  }
3992
3992
  }
3993
3993
  updateSnapResize(e, t, o) {
3994
- const s = this.getState(e), r = e.parent(), i = Go(t), l = yr({ componentRow: r, isVertical: i }, this.opts), a = Zi(r, i, this.opts), c = l - a, d = o / c * 100, p = Ji(t, o), { startPercent: u = 0, snapDivisions: h = 12 } = s, f = p ? u + Math.abs(d) : u - Math.abs(d), m = 100 / h, g = Math.floor(f / m) * m, b = Math.ceil(f / m) * m, C = Math.abs(b - f), y = Math.abs(f - g), v = m * 0.2, w = C < y ? b : g;
3995
- if (w > 0 && w < 100 && (C < v || y < v) && s.lastSnappedPercent !== w) {
3996
- s.lastSnappedPercent = w;
3997
- let k = Math.abs(w - u) / 100 * c;
3998
- (p && (t === "left" || t === "top") || !p && (t === "right" || t === "bottom")) && (k = -k), this.updateContinuesResize(e, t, k);
3999
- } else C >= v && y >= v && (s.lastSnappedPercent = void 0);
3994
+ const s = this.getState(e), r = e.parent(), i = Go(t), l = yr({ componentRow: r, isVertical: i }, this.opts), a = Zi(r, i, this.opts), c = l - a, d = o / c * 100, p = Ji(t, o), { startPercent: u = 0, snapDivisions: h = 12 } = s, f = p ? u + Math.abs(d) : u - Math.abs(d), m = 100 / h, g = Math.floor(f / m) * m, b = Math.ceil(f / m) * m, w = Math.abs(b - f), y = Math.abs(f - g), v = m * 0.2, C = w < y ? b : g;
3995
+ if (C > 0 && C < 100 && (w < v || y < v) && s.lastSnappedPercent !== C) {
3996
+ s.lastSnappedPercent = C;
3997
+ let E = Math.abs(C - u) / 100 * c;
3998
+ (p && (t === "left" || t === "top") || !p && (t === "right" || t === "bottom")) && (E = -E), this.updateContinuesResize(e, t, E);
3999
+ } else w >= v && y >= v && (s.lastSnappedPercent = void 0);
4000
4000
  }
4001
4001
  }
4002
4002
  class zh {
@@ -4006,14 +4006,14 @@ class zh {
4006
4006
  updateGapByDelta(e, t, o, s) {
4007
4007
  if (!this.registry.isGapAdjustableParent(e)) return;
4008
4008
  const { opts: r } = this, i = Math.max(0, o + t), l = yr({ componentRow: e, isVertical: s }, r), a = i / l * 100, c = e.components().models, d = c.length - 1, p = { componentRow: e, isVertical: s }, u = c.reduce(
4009
- (v, w) => v + Kn({ ...p, componentColumn: w }, r),
4009
+ (v, C) => v + Kn({ ...p, componentColumn: C }, r),
4010
4010
  0
4011
4011
  ), f = 100 - a * d, m = r.minItemPercent || 5;
4012
4012
  if (f < m * c.length)
4013
4013
  return;
4014
- const b = 100 - d * a, C = u - b, y = { componentRow: e, isVertical: s, partial: !0 };
4014
+ const b = 100 - d * a, w = u - b, y = { componentRow: e, isVertical: s, partial: !0 };
4015
4015
  c.map((v) => {
4016
- const w = Kn({ ...p, componentColumn: v }, r), S = w - w / u * C;
4016
+ const C = Kn({ ...p, componentColumn: v }, r), S = C - C / u * w;
4017
4017
  $n({ ...y, componentColumn: v, sizeValue: `${Ln(S)}%` }, r);
4018
4018
  }), uc({ ...y, gapValue: `${Ln(a)}%` }, r);
4019
4019
  }
@@ -4059,19 +4059,19 @@ function Hh(n, e) {
4059
4059
  right: document.createElement("div"),
4060
4060
  top: document.createElement("div"),
4061
4061
  bottom: document.createElement("div")
4062
- }, Object.entries(i).forEach(([x, k]) => {
4063
- const E = x, M = Go(E);
4064
- k.className = `${Yi} ${Yi}-${E} gjs-resizer-h gjs-cv-unscale`, k.style.cssText = `
4062
+ }, Object.entries(i).forEach(([x, E]) => {
4063
+ const k = x, M = Go(k);
4064
+ E.className = `${Yi} ${Yi}-${k} gjs-resizer-h gjs-cv-unscale`, E.style.cssText = `
4065
4065
  pointer-events: all;
4066
4066
  position: absolute;
4067
4067
  z-index: 1;
4068
4068
  cursor: ${M ? "ns-resize" : "ew-resize"};
4069
4069
  ${M ? "left: 50%;" : "top: 50%;"}
4070
- ${E === "left" ? "left: 0px;" : ""}
4071
- ${E === "right" ? "right: 0px;" : ""}
4072
- ${E === "top" ? "top: 0px;" : ""}
4073
- ${E === "bottom" ? "bottom: 0px;" : ""}
4074
- `, k.addEventListener("pointerdown", h(E)), r.appendChild(k);
4070
+ ${k === "left" ? "left: 0px;" : ""}
4071
+ ${k === "right" ? "right: 0px;" : ""}
4072
+ ${k === "top" ? "top: 0px;" : ""}
4073
+ ${k === "bottom" ? "bottom: 0px;" : ""}
4074
+ `, E.addEventListener("pointerdown", h(k)), r.appendChild(E);
4075
4075
  }), !e.disableGapHandler && !fn(e) && (l = document.createElement("div"), l.className = Bh, l.style.cssText = `
4076
4076
  position: absolute;
4077
4077
  background-color: var(--gs-theme-cl-cmp-bg1, #3b97e3);
@@ -4086,10 +4086,10 @@ function Hh(n, e) {
4086
4086
  }, h = (S) => (x) => {
4087
4087
  if (!a) return;
4088
4088
  x.stopPropagation(), x.preventDefault(), p.startResize(a, S, x);
4089
- const k = x.clientX, E = x.clientY;
4089
+ const E = x.clientX, k = x.clientY;
4090
4090
  x.target.setPointerCapture(x.pointerId);
4091
4091
  const M = (N) => {
4092
- const I = n.Canvas.getZoomMultiplier(), R = (N.clientX - k) * I, F = (N.clientY - E) * I, ie = Go(S) ? F : R;
4092
+ const I = n.Canvas.getZoomMultiplier(), R = (N.clientX - E) * I, F = (N.clientY - k) * I, ie = Go(S) ? F : R;
4093
4093
  p.updateResizeByDelta(a, S, ie);
4094
4094
  }, P = () => {
4095
4095
  p.finishResize(a), x.target.releasePointerCapture(x.pointerId), document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", P);
@@ -4099,11 +4099,11 @@ function Hh(n, e) {
4099
4099
  if (!c) return;
4100
4100
  const x = c;
4101
4101
  S.stopPropagation(), S.preventDefault();
4102
- const k = Un(x, e), E = gr({ componentRow: x, isVertical: k }, e), M = S.clientX, P = S.clientY;
4102
+ const E = Un(x, e), k = gr({ componentRow: x, isVertical: E }, e), M = S.clientX, P = S.clientY;
4103
4103
  S.target.setPointerCapture(S.pointerId);
4104
4104
  const N = (R) => {
4105
- const F = n.Canvas.getZoomMultiplier(), ie = k ? (R.clientY - P) * F : (R.clientX - M) * F;
4106
- p.updateGapByDelta(x, ie, E, k);
4105
+ const F = n.Canvas.getZoomMultiplier(), ie = E ? (R.clientY - P) * F : (R.clientX - M) * F;
4106
+ p.updateGapByDelta(x, ie, k, E);
4107
4107
  }, I = () => {
4108
4108
  p.finishGapAdjust(x), S.target.releasePointerCapture(S.pointerId), document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", I);
4109
4109
  };
@@ -4111,33 +4111,33 @@ function Hh(n, e) {
4111
4111
  }, m = (S) => {
4112
4112
  const x = S.component;
4113
4113
  if (!x || !s || (a = x, c = x.parent(), !c)) return;
4114
- const k = c;
4114
+ const E = c;
4115
4115
  Ki(s);
4116
- const E = S.getStyle();
4117
- r && Object.assign(r.style, E);
4118
- const M = Un(k, e), P = wh(M);
4116
+ const k = S.getStyle();
4117
+ r && Object.assign(r.style, k);
4118
+ const M = Un(E, e), P = wh(M);
4119
4119
  if (Object.values(i).forEach(Ui), P.forEach((I) => {
4120
4120
  if (Mh(x, I)) return;
4121
4121
  const R = i[I];
4122
4122
  Ki(R);
4123
4123
  }), Gt(e).gapHandler.isGapSupported() && l && Ah(x)) {
4124
- const I = gr({ componentRow: k, isVertical: M }, e);
4124
+ const I = gr({ componentRow: E, isVertical: M }, e);
4125
4125
  g(I, M, Eh(x));
4126
4126
  }
4127
- }, g = (S, x, k = !1) => {
4128
- const E = e.gapHandleSize, M = l.style;
4127
+ }, g = (S, x, E = !1) => {
4128
+ const k = e.gapHandleSize, M = l.style;
4129
4129
  if (x) {
4130
- M.height = `${E}px`;
4130
+ M.height = `${k}px`;
4131
4131
  const P = l.offsetHeight;
4132
- k ? (M.top = `-${(S + P) / 2}px`, M.bottom = "") : (M.bottom = `-${(S + P) / 2}px`, M.top = ""), M.width = "50%", M.left = "50%", M.transform = "translateX(-50%)", M.cursor = "row-resize";
4132
+ E ? (M.top = `-${(S + P) / 2}px`, M.bottom = "") : (M.bottom = `-${(S + P) / 2}px`, M.top = ""), M.width = "50%", M.left = "50%", M.transform = "translateX(-50%)", M.cursor = "row-resize";
4133
4133
  } else {
4134
- M.width = `${E}px`;
4134
+ M.width = `${k}px`;
4135
4135
  const P = l.offsetWidth;
4136
- k ? (M.left = `-${(S + P) / 2}px`, M.right = "") : (M.right = `-${(S + P) / 2}px`, M.left = ""), M.height = "50%", M.top = "50%", M.transform = "translateY(-50%)", M.cursor = "col-resize";
4136
+ E ? (M.left = `-${(S + P) / 2}px`, M.right = "") : (M.right = `-${(S + P) / 2}px`, M.left = ""), M.height = "50%", M.top = "50%", M.transform = "translateY(-50%)", M.cursor = "col-resize";
4137
4137
  }
4138
4138
  }, b = () => {
4139
4139
  s && (Ui(s), a = null, c = null);
4140
- }, C = () => {
4140
+ }, w = () => {
4141
4141
  t.removeSpots({ type: o });
4142
4142
  const S = n.getSelected(), x = S == null ? void 0 : S.parent();
4143
4143
  S && x && d.isValidRelationship(x, S) ? t.addSpot({ type: o, component: S }) : b();
@@ -4150,9 +4150,9 @@ function Hh(n, e) {
4150
4150
  n.onReady(() => {
4151
4151
  u(), fn(e) ? v("mj-section", "mj-column") : v(e.typeRow, e.typeColumn);
4152
4152
  });
4153
- const w = "component:toggled";
4154
- return n.on(t.events.spot, y), n.on(w, C), () => {
4155
- n.off(t.events.spot, y), n.off(w, C);
4153
+ const C = "component:toggled";
4154
+ return n.on(t.events.spot, y), n.on(C, w), () => {
4155
+ n.off(t.events.spot, y), n.off(C, w);
4156
4156
  };
4157
4157
  }
4158
4158
  const Fh = function(n, e = {}) {
@@ -5376,17 +5376,17 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
5376
5376
  br: !1
5377
5377
  }, p = { ...d, bc: !0 }, u = { ...d, tc: !0 }, h = "shape", f = "flip-y", m = "flip-x", g = "Shape Divider", b = `<svg viewBox="0 0 22 22">
5378
5378
  <path fill="currentColor" d="M2 2v18h18V2H2zm0-2h18a2 2 0 012 2v18a2 2 0 01-2 2H2a2 2 0 01-2-2V2C0 .9.9 0 2 0zM1 13L2 0h18l1 9-20 4z"/>
5379
- </svg>`, { block: C = {} } = e;
5379
+ </svg>`, { block: w = {} } = e;
5380
5380
  n.on(s.events.add, (y) => {
5381
5381
  y.getFullName().startsWith(`.${l}`) && y.set({ private: !0 });
5382
5382
  }), t.addType(r, {
5383
5383
  isComponent: (y) => We(r)(y) || gt(y, l),
5384
- block: C && {
5384
+ block: w && {
5385
5385
  label: g,
5386
5386
  media: b,
5387
5387
  category: "Extra",
5388
5388
  select: !0,
5389
- ...C
5389
+ ...w
5390
5390
  },
5391
5391
  model: {
5392
5392
  defaults: {
@@ -5467,10 +5467,10 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
5467
5467
  name: h,
5468
5468
  label: "Shape",
5469
5469
  changeProp: !0,
5470
- options: c.map(({ id: y, label: v, value: w }) => ({
5470
+ options: c.map(({ id: y, label: v, value: C }) => ({
5471
5471
  id: y,
5472
5472
  label: v,
5473
- icon: { icon: w.replace("<svg ", '<svg style="width: 35px; height: 7px; fill: currentColor;"') }
5473
+ icon: { icon: C.replace("<svg ", '<svg style="width: 35px; height: 7px; fill: currentColor;"') }
5474
5474
  }))
5475
5475
  },
5476
5476
  {
@@ -5491,13 +5491,13 @@ const Fe = "animation", nn = "animation-group", Xi = "animation:update", br = "a
5491
5491
  this.on(`change:${h}`, this.onShapeChange), this.on(`change:${m} change:${f}`, this.onFlip), this.onShapeChange();
5492
5492
  },
5493
5493
  onShapeChange() {
5494
- const y = this.get(h), v = c.find((S) => S.id === y), w = (v == null ? void 0 : v.value) || this.getInnerHTML().trim();
5495
- this.components(""), w && this.set("content", w);
5494
+ const y = this.get(h), v = c.find((S) => S.id === y), C = (v == null ? void 0 : v.value) || this.getInnerHTML().trim();
5495
+ this.components(""), C && this.set("content", C);
5496
5496
  },
5497
5497
  onFlip() {
5498
- const y = this.get(f), v = this.get(m), w = ["fl-v", "fl-h", "fl-v-h"].map((x) => `${a}--${x}`);
5498
+ const y = this.get(f), v = this.get(m), C = ["fl-v", "fl-h", "fl-v-h"].map((x) => `${a}--${x}`);
5499
5499
  let S;
5500
- 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);
5500
+ y && v ? S = C[2] : v ? S = C[1] : y && (S = C[0]), this.removeClass(C), S && this.addClass(S), this.set("resizable", y ? u : p);
5501
5501
  }
5502
5502
  }
5503
5503
  }), W({
@@ -9701,8 +9701,8 @@ function nm(n, e, t, o) {
9701
9701
  for (let m = 0; m < i.length; m++) {
9702
9702
  let g = i[(m + a) % i.length], b = !0;
9703
9703
  g < 0 && (b = !1, g = -g);
9704
- let C = s.node(g - 1), y = s.index(g - 1);
9705
- if (C.canReplaceWith(y, y, f.type, f.marks))
9704
+ let w = s.node(g - 1), y = s.index(g - 1);
9705
+ if (w.canReplaceWith(y, y, f.type, f.marks))
9706
9706
  return n.replace(s.before(g), b ? r.after(g) : t, new A(Wc(o.content, 0, o.openStart, h), h, o.openEnd));
9707
9707
  }
9708
9708
  }
@@ -11089,8 +11089,8 @@ function od(n, e, t, o) {
11089
11089
  let b = T.empty;
11090
11090
  for (let y = f.length - 1; y >= 0; y--)
11091
11091
  b = T.from(f[y].copy(b));
11092
- let C = n.tr.step(new te(e.pos - f.length, e.pos + r.nodeSize, e.pos + g, e.pos + r.nodeSize - g, new A(b, f.length, 0), 0, !0));
11093
- t(C.scrollIntoView());
11092
+ let w = n.tr.step(new te(e.pos - f.length, e.pos + r.nodeSize, e.pos + g, e.pos + r.nodeSize - g, new A(b, f.length, 0), 0, !0));
11093
+ t(w.scrollIntoView());
11094
11094
  }
11095
11095
  return !0;
11096
11096
  }
@@ -11168,8 +11168,8 @@ function kt(n, e = null, t) {
11168
11168
  if (!c)
11169
11169
  d.removeMark(u.pos, h.pos, n);
11170
11170
  else {
11171
- let f = u.pos, m = h.pos, g = u.nodeAfter, b = h.nodeBefore, C = g && g.isText ? /^\s*/.exec(g.text)[0].length : 0, y = b && b.isText ? /\s*$/.exec(b.text)[0].length : 0;
11172
- f + C < m && (f += C, m -= y), d.addMark(f, m, n.create(e));
11171
+ let f = u.pos, m = h.pos, g = u.nodeAfter, b = h.nodeBefore, w = g && g.isText ? /^\s*/.exec(g.text)[0].length : 0, y = b && b.isText ? /\s*$/.exec(b.text)[0].length : 0;
11172
+ f + w < m && (f += w, m -= y), d.addMark(f, m, n.create(e));
11173
11173
  }
11174
11174
  }
11175
11175
  r(d.scrollIntoView());
@@ -11734,10 +11734,10 @@ function Hm(n, e) {
11734
11734
  let h = s.indexAfter(-1) < s.node(-2).childCount ? 1 : s.indexAfter(-2) < s.node(-3).childCount ? 2 : 3;
11735
11735
  p = p.append(T.from(n.createAndFill()));
11736
11736
  let f = s.before(s.depth - (u - 1)), m = t.tr.replace(f, s.after(-h), new A(p, 4 - u, 0)), g = -1;
11737
- m.doc.nodesBetween(f, m.doc.content.size, (b, C) => {
11737
+ m.doc.nodesBetween(f, m.doc.content.size, (b, w) => {
11738
11738
  if (g > -1)
11739
11739
  return !1;
11740
- b.isTextblock && b.content.size == 0 && (g = C + 1);
11740
+ b.isTextblock && b.content.size == 0 && (g = w + 1);
11741
11741
  }), g > -1 && m.setSelection(L.near(m.doc.resolve(g))), o(m.scrollIntoView());
11742
11742
  }
11743
11743
  return !0;
@@ -14206,7 +14206,7 @@ ue.drop = (n, e) => {
14206
14206
  c.setSelection(new D(h));
14207
14207
  else {
14208
14208
  let f = c.mapping.map(a);
14209
- c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, b, C) => f = C), c.setSelection(pi(n, h, c.doc.resolve(f)));
14209
+ c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, b, w) => f = w), c.setSelection(pi(n, h, c.doc.resolve(f)));
14210
14210
  }
14211
14211
  n.focus(), n.dispatch(c.setMeta("uiEvent", "drop"));
14212
14212
  };
@@ -14614,8 +14614,8 @@ function r1(n, e, t, o, s, r, i) {
14614
14614
  t.maps[c].forEach((u, h, f, m) => {
14615
14615
  let g = m - f - (h - u);
14616
14616
  for (let b = 0; b < l.length; b += 3) {
14617
- let C = l[b + 1];
14618
- if (C < 0 || u > C + d - p)
14617
+ let w = l[b + 1];
14618
+ if (w < 0 || u > w + d - p)
14619
14619
  continue;
14620
14620
  let y = l[b] + d - p;
14621
14621
  h >= y ? l[b + 1] = u <= y ? -2 : -1 : u >= d && g && (l[b] += g, l[b + 1] += g);
@@ -14941,12 +14941,12 @@ function f1(n, e, t) {
14941
14941
  let { node: o, fromOffset: s, toOffset: r, from: i, to: l } = n.docView.parseRange(e, t), a = n.domSelectionRange(), c, d = a.anchorNode;
14942
14942
  if (d && n.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: a.anchorOffset }], bs(a) || c.push({ node: a.focusNode, offset: a.focusOffset })), se && n.input.lastKeyCode === 8)
14943
14943
  for (let g = r; g > s; g--) {
14944
- let b = o.childNodes[g - 1], C = b.pmViewDesc;
14945
- if (b.nodeName == "BR" && !C) {
14944
+ let b = o.childNodes[g - 1], w = b.pmViewDesc;
14945
+ if (b.nodeName == "BR" && !w) {
14946
14946
  r = g;
14947
14947
  break;
14948
14948
  }
14949
- if (!C || C.size)
14949
+ if (!w || w.size)
14950
14950
  break;
14951
14951
  }
14952
14952
  let p = n.state.doc, u = n.someProp("domParser") || Bt.fromSchema(n.state.schema), h = p.resolve(i), f = null, m = u.parse(o, {
@@ -14984,12 +14984,12 @@ const g1 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
14984
14984
  function y1(n, e, t, o, s) {
14985
14985
  let r = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
14986
14986
  if (n.input.compositionPendingChanges = 0, e < 0) {
14987
- let E = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, M = di(n, E);
14987
+ let k = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, M = di(n, k);
14988
14988
  if (M && !n.state.selection.eq(M)) {
14989
14989
  if (se && Pe && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (N) => N(n, Et(13, "Enter"))))
14990
14990
  return;
14991
14991
  let P = n.state.tr.setSelection(M);
14992
- E == "pointer" ? P.setMeta("pointer", !0) : E == "key" && P.scrollIntoView(), r && P.setMeta("composition", r), n.dispatch(P);
14992
+ k == "pointer" ? P.setMeta("pointer", !0) : k == "key" && P.scrollIntoView(), r && P.setMeta("composition", r), n.dispatch(P);
14993
14993
  }
14994
14994
  return;
14995
14995
  }
@@ -14998,7 +14998,7 @@ function y1(n, e, t, o, s) {
14998
14998
  let a = n.state.selection, c = f1(n, e, t), d = n.state.doc, p = d.slice(c.from, c.to), u, h;
14999
14999
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (u = n.state.selection.to, h = "end") : (u = n.state.selection.from, h = "start"), n.input.lastKeyCode = null;
15000
15000
  let f = S1(p.content, c.doc.content, c.from, u, h);
15001
- if (f && n.input.domChangeCount++, (bn && n.input.lastIOSEnter > Date.now() - 225 || Pe) && s.some((E) => E.nodeType == 1 && !g1.test(E.nodeName)) && (!f || f.endA >= f.endB) && n.someProp("handleKeyDown", (E) => E(n, Et(13, "Enter")))) {
15001
+ if (f && n.input.domChangeCount++, (bn && n.input.lastIOSEnter > Date.now() - 225 || Pe) && s.some((k) => k.nodeType == 1 && !g1.test(k.nodeName)) && (!f || f.endA >= f.endB) && n.someProp("handleKeyDown", (k) => k(n, Et(13, "Enter")))) {
15002
15002
  n.input.lastIOSEnter = 0;
15003
15003
  return;
15004
15004
  }
@@ -15007,48 +15007,48 @@ function y1(n, e, t, o, s) {
15007
15007
  f = { start: a.from, endA: a.to, endB: a.to };
15008
15008
  else {
15009
15009
  if (c.sel) {
15010
- let E = Xl(n, n.state.doc, c.sel);
15011
- if (E && !E.eq(n.state.selection)) {
15012
- let M = n.state.tr.setSelection(E);
15010
+ let k = Xl(n, n.state.doc, c.sel);
15011
+ if (k && !k.eq(n.state.selection)) {
15012
+ let M = n.state.tr.setSelection(k);
15013
15013
  r && M.setMeta("composition", r), n.dispatch(M);
15014
15014
  }
15015
15015
  }
15016
15016
  return;
15017
15017
  }
15018
15018
  n.state.selection.from < n.state.selection.to && f.start == f.endB && n.state.selection instanceof $ && (f.start > n.state.selection.from && f.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? f.start = n.state.selection.from : f.endA < n.state.selection.to && f.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (f.endB += n.state.selection.to - f.endA, f.endA = n.state.selection.to)), ye && ht <= 11 && f.endB == f.start + 1 && f.endA == f.start && f.start > c.from && c.doc.textBetween(f.start - c.from - 1, f.start - c.from + 1) == "  " && (f.start--, f.endA--, f.endB--);
15019
- let m = c.doc.resolveNoCache(f.start - c.from), g = c.doc.resolveNoCache(f.endB - c.from), b = d.resolve(f.start), C = m.sameParent(g) && m.parent.inlineContent && b.end() >= f.endA, y;
15020
- if ((bn && n.input.lastIOSEnter > Date.now() - 225 && (!C || s.some((E) => E.nodeName == "DIV" || E.nodeName == "P")) || !C && m.pos < c.doc.content.size && !m.sameParent(g) && (y = L.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && y.head == g.pos) && n.someProp("handleKeyDown", (E) => E(n, Et(13, "Enter")))) {
15019
+ let m = c.doc.resolveNoCache(f.start - c.from), g = c.doc.resolveNoCache(f.endB - c.from), b = d.resolve(f.start), w = m.sameParent(g) && m.parent.inlineContent && b.end() >= f.endA, y;
15020
+ if ((bn && n.input.lastIOSEnter > Date.now() - 225 && (!w || s.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !w && m.pos < c.doc.content.size && !m.sameParent(g) && (y = L.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && y.head == g.pos) && n.someProp("handleKeyDown", (k) => k(n, Et(13, "Enter")))) {
15021
15021
  n.input.lastIOSEnter = 0;
15022
15022
  return;
15023
15023
  }
15024
- if (n.state.selection.anchor > f.start && v1(d, f.start, f.endA, m, g) && n.someProp("handleKeyDown", (E) => E(n, Et(8, "Backspace")))) {
15024
+ if (n.state.selection.anchor > f.start && v1(d, f.start, f.endA, m, g) && n.someProp("handleKeyDown", (k) => k(n, Et(8, "Backspace")))) {
15025
15025
  Pe && se && n.domObserver.suppressSelectionUpdates();
15026
15026
  return;
15027
15027
  }
15028
- se && Pe && f.endB == f.start && (n.input.lastAndroidDelete = Date.now()), Pe && !C && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == f.endA && (f.endB -= 2, g = c.doc.resolveNoCache(f.endB - c.from), setTimeout(() => {
15029
- n.someProp("handleKeyDown", function(E) {
15030
- return E(n, Et(13, "Enter"));
15028
+ se && Pe && f.endB == f.start && (n.input.lastAndroidDelete = Date.now()), Pe && !w && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == f.endA && (f.endB -= 2, g = c.doc.resolveNoCache(f.endB - c.from), setTimeout(() => {
15029
+ n.someProp("handleKeyDown", function(k) {
15030
+ return k(n, Et(13, "Enter"));
15031
15031
  });
15032
15032
  }, 20));
15033
- let v = f.start, w = f.endA, S, x, k;
15034
- if (C) {
15033
+ let v = f.start, C = f.endA, S, x, E;
15034
+ if (w) {
15035
15035
  if (m.pos == g.pos)
15036
- ye && ht <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => et(n), 20)), S = n.state.tr.delete(v, w), x = d.resolve(f.start).marksAcross(d.resolve(f.endA));
15036
+ ye && ht <= 11 && m.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => et(n), 20)), S = n.state.tr.delete(v, C), x = d.resolve(f.start).marksAcross(d.resolve(f.endA));
15037
15037
  else if (
15038
15038
  // Adding or removing a mark
15039
- f.endA == f.endB && (k = b1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, f.endA - b.start())))
15039
+ f.endA == f.endB && (E = b1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, f.endA - b.start())))
15040
15040
  )
15041
- S = n.state.tr, k.type == "add" ? S.addMark(v, w, k.mark) : S.removeMark(v, w, k.mark);
15041
+ S = n.state.tr, E.type == "add" ? S.addMark(v, C, E.mark) : S.removeMark(v, C, E.mark);
15042
15042
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
15043
- let E = m.parent.textBetween(m.parentOffset, g.parentOffset);
15044
- if (n.someProp("handleTextInput", (M) => M(n, v, w, E)))
15043
+ let k = m.parent.textBetween(m.parentOffset, g.parentOffset);
15044
+ if (n.someProp("handleTextInput", (M) => M(n, v, C, k)))
15045
15045
  return;
15046
- S = n.state.tr.insertText(E, v, w);
15046
+ S = n.state.tr.insertText(k, v, C);
15047
15047
  }
15048
15048
  }
15049
- if (S || (S = n.state.tr.replace(v, w, c.doc.slice(f.start - c.from, f.endB - c.from))), c.sel) {
15050
- let E = Xl(n, S.doc, c.sel);
15051
- E && !(se && Pe && n.composing && E.empty && (f.start != f.endB || n.input.lastAndroidDelete < Date.now() - 100) && (E.head == v || E.head == S.mapping.map(w) - 1) || ye && E.empty && E.head == v) && S.setSelection(E);
15049
+ if (S || (S = n.state.tr.replace(v, C, c.doc.slice(f.start - c.from, f.endB - c.from))), c.sel) {
15050
+ let k = Xl(n, S.doc, c.sel);
15051
+ k && !(se && Pe && n.composing && k.empty && (f.start != f.endB || n.input.lastAndroidDelete < Date.now() - 100) && (k.head == v || k.head == S.mapping.map(C) - 1) || ye && k.empty && k.head == v) && S.setSelection(k);
15052
15052
  }
15053
15053
  x && S.ensureMarks(x), r && S.setMeta("composition", r), n.dispatch(S.scrollIntoView());
15054
15054
  }
@@ -15615,7 +15615,7 @@ function k1(n) {
15615
15615
  s++;
15616
15616
  if (f == p.childCount)
15617
15617
  break;
15618
- const m = p.child(f), { colspan: g, rowspan: b, colwidth: C } = m.attrs;
15618
+ const m = p.child(f), { colspan: g, rowspan: b, colwidth: w } = m.attrs;
15619
15619
  for (let y = 0; y < b; y++) {
15620
15620
  if (y + c >= t) {
15621
15621
  (r || (r = [])).push({
@@ -15626,17 +15626,17 @@ function k1(n) {
15626
15626
  break;
15627
15627
  }
15628
15628
  const v = s + y * e;
15629
- for (let w = 0; w < g; w++) {
15630
- o[v + w] == 0 ? o[v + w] = d : (r || (r = [])).push({
15629
+ for (let C = 0; C < g; C++) {
15630
+ o[v + C] == 0 ? o[v + C] = d : (r || (r = [])).push({
15631
15631
  type: "collision",
15632
15632
  row: c,
15633
15633
  pos: d,
15634
- n: g - w
15634
+ n: g - C
15635
15635
  });
15636
- const S = C && C[w];
15636
+ const S = w && w[C];
15637
15637
  if (S) {
15638
- const x = (v + w) % e * 2, k = i[x];
15639
- k == null || k != S && i[x + 1] == 1 ? (i[x] = S, i[x + 1] = 1) : k == S && i[x + 1]++;
15638
+ const x = (v + C) % e * 2, E = i[x];
15639
+ E == null || E != S && i[x + 1] == 1 ? (i[x] = S, i[x + 1] = 1) : E == S && i[x + 1]++;
15640
15640
  }
15641
15641
  }
15642
15642
  }
@@ -16721,8 +16721,8 @@ function Br(n, e, t, o, s, r) {
16721
16721
  if (l += g || o, g || (a = !1), c)
16722
16722
  c.style.width != b && (c.style.width = b), c = c.nextSibling;
16723
16723
  else {
16724
- const C = document.createElement("col");
16725
- C.style.width = b, e.appendChild(C);
16724
+ const w = document.createElement("col");
16725
+ w.style.width = b, e.appendChild(w);
16726
16726
  }
16727
16727
  }
16728
16728
  }
@@ -18163,7 +18163,7 @@ const Y0 = function(n, e = {}) {
18163
18163
  }),
18164
18164
  Gs({
18165
18165
  Enter: Yn(ed, Hm(d.listItem), y0(u, t)),
18166
- "Shift-Enter": Yn(Qc, (C, y) => (y && y(C.tr.replaceSelectionWith(d.inlineBreak.create()).scrollIntoView()), !0)),
18166
+ "Shift-Enter": Yn(Qc, (w, y) => (y && y(w.tr.replaceSelectionWith(d.inlineBreak.create()).scrollIntoView()), !0)),
18167
18167
  "Mod-z": ad,
18168
18168
  "Mod-y": Cr,
18169
18169
  // On Windows
@@ -18182,19 +18182,19 @@ const Y0 = function(n, e = {}) {
18182
18182
  { mount: l },
18183
18183
  {
18184
18184
  state: f,
18185
- dispatchTransaction(C) {
18185
+ dispatchTransaction(w) {
18186
18186
  var x;
18187
- const { state: y } = m, v = y.apply(C), w = !y.doc.eq(v.doc);
18187
+ const { state: y } = m, v = y.apply(w), C = !y.doc.eq(v.doc);
18188
18188
  m.updateState(v);
18189
18189
  const S = !y.selection.eq(v.selection);
18190
- w && (f0(((x = a == null ? void 0 : a.view) == null ? void 0 : x.el) || l), m.focus()), (S || w) && n.trigger(ae);
18190
+ C && (f0(((x = a == null ? void 0 : a.view) == null ? void 0 : x.el) || l), m.focus()), (S || C) && n.trigger(ae);
18191
18191
  }
18192
18192
  }
18193
18193
  );
18194
18194
  return l.__rteView = m, m.setProps({
18195
18195
  nodeViews: {
18196
- image(C) {
18197
- return new Z0(C, m, n);
18196
+ image(w) {
18197
+ return new Z0(w, m, n);
18198
18198
  }
18199
18199
  }
18200
18200
  }), m;
@@ -18250,9 +18250,9 @@ const Y0 = function(n, e = {}) {
18250
18250
  emptyStates: [],
18251
18251
  ...e
18252
18252
  }, a = (y, v) => {
18253
- let w = !1;
18253
+ let C = !1;
18254
18254
  const { isValid: S } = v;
18255
- return Array.isArray(S) ? w = S.some((x) => y.is(x)) : _t(S) ? w = S({ component: y, editor: n }) : w = y.is(S), w;
18255
+ return Array.isArray(S) ? C = S.some((x) => y.is(x)) : _t(S) ? C = S({ component: y, editor: n }) : C = y.is(S), C;
18256
18256
  }, c = (y) => {
18257
18257
  const v = t.get(y);
18258
18258
  t.delete(y), v == null || v();
@@ -18262,28 +18262,28 @@ const Y0 = function(n, e = {}) {
18262
18262
  if (!(!y || r.has(y)))
18263
18263
  try {
18264
18264
  r.add(y);
18265
- const v = y.components().length > 0, w = s.get(y);
18266
- if (v && w)
18265
+ const v = y.components().length > 0, C = s.get(y);
18266
+ if (v && C)
18267
18267
  d(y);
18268
- else if (!v && !w) {
18268
+ else if (!v && !C) {
18269
18269
  const S = i.has(y) ? i.get(y) : l.emptyStates.find((x) => a(y, x));
18270
18270
  if (i.set(y, S), !S) return;
18271
18271
  y.views.forEach((x) => {
18272
- const k = S.render({
18272
+ const E = S.render({
18273
18273
  editor: n,
18274
18274
  component: y,
18275
18275
  componentView: x,
18276
- mount: (E) => {
18277
- o.set(x, E), s.set(y, !0);
18276
+ mount: (k) => {
18277
+ o.set(x, k), s.set(y, !0);
18278
18278
  const M = x.getChildrenContainer();
18279
- M == null || M.appendChild(E);
18279
+ M == null || M.appendChild(k);
18280
18280
  },
18281
18281
  unmount: () => c(x)
18282
18282
  });
18283
18283
  t.set(x, () => {
18284
- k == null || k();
18285
- const E = o.get(x);
18286
- E == null || E.remove();
18284
+ E == null || E();
18285
+ const k = o.get(x);
18286
+ k == null || k.remove();
18287
18287
  });
18288
18288
  });
18289
18289
  }
@@ -18294,14 +18294,14 @@ const Y0 = function(n, e = {}) {
18294
18294
  s.has(y) && d(y);
18295
18295
  }, h = ({ model: y }) => {
18296
18296
  p(y.getComponent());
18297
- }, f = n.Components.events, m = `${f.update}:components`, g = "component:mount", b = n.Canvas.events.frameLoadBody, C = f.removed;
18298
- n.on(m, p), n.on(g, p), n.on(C, u), n.on(b, h), W({
18297
+ }, f = n.Components.events, m = `${f.update}:components`, g = "component:mount", b = n.Canvas.events.frameLoadBody, w = f.removed;
18298
+ n.on(m, p), n.on(g, p), n.on(w, u), n.on(b, h), W({
18299
18299
  editor: n,
18300
18300
  licenseKey: l.licenseKey,
18301
18301
  plan: Q0,
18302
18302
  pluginName: X0,
18303
18303
  cleanup: () => {
18304
- n.off(m, p), n.off(g, p), n.off(C, u), n.off(b, h);
18304
+ n.off(m, p), n.off(g, p), n.off(w, u), n.off(b, h);
18305
18305
  }
18306
18306
  });
18307
18307
  }, Gb = G(ey), wa = "canvasFullSize", ty = H.startup, ny = (n, e) => {
@@ -18339,8 +18339,8 @@ const Y0 = function(n, e = {}) {
18339
18339
  deviceFixedHeight: u,
18340
18340
  frameBorderRadius: h,
18341
18341
  frameTransition: f
18342
- } = i, m = `${p}px`, g = t.events, b = "core:preview", C = `${o.events.stopCommand}${b}`, y = t.getConfig(), v = `${wa}:disable`, w = s.getAll().map((z) => ({ ...z.attributes })), S = c * 1e3, x = { x: a, y: l };
18343
- let k = {}, E, M;
18342
+ } = i, m = `${p}px`, g = t.events, b = "core:preview", w = `${o.events.stopCommand}${b}`, y = t.getConfig(), v = `${wa}:disable`, C = s.getAll().map((z) => ({ ...z.attributes })), S = c * 1e3, x = { x: a, y: l };
18343
+ let E = {}, k, M;
18344
18344
  y.scrollableCanvas = !u, s.getAll().map((z) => {
18345
18345
  !z.get("width") && z.set("width", `${d}px`), !z.get("height") && z.set("height", u ? "100vh" : "auto"), !z.get("minHeight") && z.set("minHeight", m);
18346
18346
  });
@@ -18365,7 +18365,7 @@ const Y0 = function(n, e = {}) {
18365
18365
  [data-gjs-type="mj-body"] { min-height: ${m} !important; }
18366
18366
  `, !Le.contains(ho) && Le.appendChild(ho);
18367
18367
  });
18368
- const N = () => E.style.display = "none", I = () => E.style.display = "", R = () => {
18368
+ const N = () => k.style.display = "none", I = () => k.style.display = "", R = () => {
18369
18369
  var Le;
18370
18370
  if (!u) return;
18371
18371
  const z = t.getZoomMultiplier(), fe = t.getRect().height * z - l * 2;
@@ -18389,21 +18389,21 @@ const Y0 = function(n, e = {}) {
18389
18389
  }, le = () => {
18390
18390
  N(), F();
18391
18391
  }, Ke = () => {
18392
- k.overflowX = "hidden", k.overflowY = "auto";
18392
+ E.overflowX = "hidden", E.overflowY = "auto";
18393
18393
  }, ve = () => {
18394
18394
  M == null || M.disconnect(), F.clear();
18395
18395
  }, Ce = [
18396
18396
  [s.events.select, le],
18397
18397
  [g.zoom, ie],
18398
- [C, Ke],
18398
+ [w, Ke],
18399
18399
  [n.events.destroy, ve],
18400
18400
  [r.events.mountBefore, oy]
18401
18401
  ];
18402
18402
  o.add(v, () => {
18403
- s.devices.reset(w), y.scrollableCanvas = !1, t.getModel().updateDevice(), t.setZoom(100), t.setCoords(0, 0), k.overflowY = "hidden", P(!0), Ce.forEach(([z, he]) => n.off(z, he)), ve(), o.run("studio:canvasReload");
18403
+ s.devices.reset(C), y.scrollableCanvas = !1, t.getModel().updateDevice(), t.setZoom(100), t.setCoords(0, 0), E.overflowY = "hidden", P(!0), Ce.forEach(([z, he]) => n.off(z, he)), ve(), o.run("studio:canvasReload");
18404
18404
  }), Ce.forEach(([z, he]) => n.on(z, he)), n.onReady(() => {
18405
18405
  const z = t.getElement(), he = t.getFramesEl(), fe = t.getCanvasView();
18406
- E = t.getSpotsEl(), k = z.style, k.overflowX = "hidden", he.style.transition = `transform ${c}s`, document.removeEventListener("keypress", fe.onKeyPress), P(), M = new ResizeObserver(() => {
18406
+ k = t.getSpotsEl(), E = z.style, E.overflowX = "hidden", he.style.transition = `transform ${c}s`, document.removeEventListener("keypress", fe.onKeyPress), P(), M = new ResizeObserver(() => {
18407
18407
  N(), F();
18408
18408
  }), M.observe(z.parentElement), F();
18409
18409
  }), W({
@@ -18577,41 +18577,44 @@ function Xs(n, e, t = {}) {
18577
18577
  }
18578
18578
  const Ca = (n) => n.split(" ").map((e) => parseFloat(e));
18579
18579
  function hp(n, e) {
18580
- const t = n.ownerDocument.defaultView, o = e || t.getComputedStyle(n), s = o.gridArea.split("/").some((w) => isNaN(parseInt(w.trim()))), r = {
18580
+ const t = n.ownerDocument.defaultView, o = e || t.getComputedStyle(n), s = o.gridArea.split("/").some((S) => isNaN(parseInt(S.trim()))), r = {
18581
18581
  isComputed: s,
18582
18582
  raw: o.gridArea
18583
+ }, i = {
18584
+ ...r,
18585
+ row: {
18586
+ start: parseInt(o.gridRowStart) || 1,
18587
+ end: parseInt(o.gridRowEnd) || 2
18588
+ },
18589
+ column: {
18590
+ start: parseInt(o.gridColumnStart) || 1,
18591
+ end: parseInt(o.gridColumnEnd) || 2
18592
+ }
18583
18593
  };
18584
18594
  if (!s)
18585
- return {
18586
- ...r,
18587
- row: {
18588
- start: parseInt(o.gridRowStart),
18589
- end: parseInt(o.gridRowEnd)
18590
- },
18591
- column: {
18592
- start: parseInt(o.gridColumnStart),
18593
- end: parseInt(o.gridColumnEnd)
18594
- }
18595
- };
18596
- const i = n.parentElement, l = t.getComputedStyle(i), a = parseFloat(l.columnGap) || 0, c = parseFloat(l.rowGap) || 0, d = Ca(l.gridTemplateColumns), p = Ca(l.gridTemplateRows), u = parseFloat(l.paddingLeft) || 0, h = parseFloat(l.paddingTop) || 0, f = i.getBoundingClientRect(), m = n.getBoundingClientRect(), g = (w, S, x, k, E) => {
18597
- let M = 1, P = k + E;
18598
- for (let N = 0; N < S.length; N++) {
18599
- const I = S[N], R = P + I;
18600
- if (w >= P && w < R)
18601
- return M;
18602
- P = R + x, M++;
18595
+ return i;
18596
+ const l = n.parentElement;
18597
+ if (!l)
18598
+ return i;
18599
+ const a = t.getComputedStyle(l), c = parseFloat(a.columnGap) || 0, d = parseFloat(a.rowGap) || 0, p = Ca(a.gridTemplateColumns), u = Ca(a.gridTemplateRows), h = parseFloat(a.paddingLeft) || 0, f = parseFloat(a.paddingTop) || 0, m = l.getBoundingClientRect(), g = n.getBoundingClientRect(), b = (S, x, E, k, M) => {
18600
+ let P = 1, N = k + M;
18601
+ for (let I = 0; I < x.length; I++) {
18602
+ const R = x[I], F = N + R;
18603
+ if (S >= N && S < F)
18604
+ return P;
18605
+ N = F + E, P++;
18603
18606
  }
18604
18607
  return -1;
18605
- }, b = g(m.left, d, a, f.left, u), C = g(m.right - 1, d, a, f.left, u) + 1, y = g(m.top, p, c, f.top, h), v = g(m.bottom - 1, p, c, f.top, h) + 1;
18608
+ }, w = b(g.left, p, c, m.left, h), y = b(g.right - 1, p, c, m.left, h) + 1, v = b(g.top, u, d, m.top, f), C = b(g.bottom - 1, u, d, m.top, f) + 1;
18606
18609
  return {
18607
18610
  ...r,
18608
18611
  row: {
18609
- start: y,
18610
- end: v
18612
+ start: v,
18613
+ end: C
18611
18614
  },
18612
18615
  column: {
18613
- start: b,
18614
- end: C
18616
+ start: w,
18617
+ end: y
18615
18618
  }
18616
18619
  };
18617
18620
  }
@@ -18652,11 +18655,11 @@ function fy(n) {
18652
18655
  }), this.stopCommand(), e.em.set("_cmpDrag", 1);
18653
18656
  },
18654
18657
  setPosition: ({ x: f, y: m }) => {
18655
- const { scroll: g } = up(e), { columns: b, rows: C, gap: y, offset: v, padding: w } = p, { offset: S, margin: x } = i, 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(
18658
+ const { scroll: g } = up(e), { columns: b, rows: w, gap: y, offset: v, padding: C } = p, { offset: S, margin: x } = i, E = S.top - v.top - C.top - x.top + m - d.top + g.top, k = S.left - v.left - C.left - x.left + f - d.left + g.left, M = Math.min(ut(b, 1, k, y.column, 0.5), b.length), P = Math.min(ut(w, 1, E, y.row, 0.5), w.length), N = Math.min(
18656
18659
  ut(b, M, S.width, y.column) + 1,
18657
18660
  b.length + 1
18658
- ), I = Math.min(ut(C, P, S.height, y.row) + 1, C.length + 1);
18659
- a.style.gridArea = `${P} / ${M} / ${I} / ${N}`, c.style.top = `${k + w.top}px`, c.style.left = `${E + w.left}px`;
18661
+ ), I = Math.min(ut(w, P, S.height, y.row) + 1, w.length + 1);
18662
+ a.style.gridArea = `${P} / ${M} / ${I} / ${N}`, c.style.top = `${E + C.top}px`, c.style.left = `${k + C.left}px`;
18660
18663
  }
18661
18664
  }).start(o.event);
18662
18665
  }
@@ -18667,10 +18670,10 @@ function my(n, e) {
18667
18670
  if (!t)
18668
18671
  return;
18669
18672
  const { onMove: o, onEnd: s } = e.options || {}, { spot: r, target: i, shadowContainerEl: l, shadowSnappedEl: a, shadowTargetEl: c } = t;
18670
- let { container: d } = t, p = "", u;
18673
+ let { container: d } = t, p = "", u = !1, h;
18671
18674
  return {
18672
- onStart: (h) => {
18673
- p = h.target.dataset.gjsHandler || "", u = setTimeout(() => {
18675
+ onStart: (f) => {
18676
+ p = f.target.dataset.gjsHandler || "", u = !1, h = setTimeout(() => {
18674
18677
  cp({
18675
18678
  editor: n,
18676
18679
  shadowTargetEl: c,
@@ -18679,39 +18682,41 @@ function my(n, e) {
18679
18682
  spotEl: r.attributes.spotEl,
18680
18683
  target: i,
18681
18684
  container: d
18682
- }), d = Ci(n, i.component);
18685
+ }), d = Ci(n, i.component), u = !0;
18683
18686
  }, 10), n.trigger("component:resize", { ...i || {}, type: "start" });
18684
18687
  },
18685
- onEnd: (h, f) => {
18686
- const { startDim: m, rectDim: g } = f.resizer, b = JSON.stringify(m) === JSON.stringify(g);
18687
- clearTimeout(u), dp({ editor: n, shadowSnappedEl: a, shadowContainerEl: l, target: i, cancelled: b }), s == null || s(h, f);
18688
+ onEnd: (f, m) => {
18689
+ const { startDim: g, rectDim: b } = m.resizer, w = JSON.stringify(g) === JSON.stringify(b);
18690
+ clearTimeout(h), u && dp({ editor: n, shadowSnappedEl: a, shadowContainerEl: l, target: i, cancelled: w }), u = !1, s == null || s(f, m);
18688
18691
  },
18689
- onMove: (h, f) => {
18690
- const m = hp(a), g = i.margin.left, b = i.margin.top, C = i.margin.bottom, y = i.margin.right, { w: v, t: w, l: S, h: x } = f.resizer.rectDim, k = {
18691
- t: w - b,
18692
- l: S - g,
18693
- h: x + b + C,
18694
- w: v + g + y
18692
+ onMove: (f, m) => {
18693
+ if (!u || !a.parentElement)
18694
+ return;
18695
+ const g = hp(a), b = i.margin.left, w = i.margin.top, y = i.margin.bottom, v = i.margin.right, { w: C, t: S, l: x, h: E } = m.resizer.rectDim, k = {
18696
+ t: S - w,
18697
+ l: x - b,
18698
+ h: E + w + y,
18699
+ w: C + b + v
18695
18700
  };
18696
- p.endsWith("l") && (m.column.start = ut(
18701
+ p.endsWith("l") && (g.column.start = ut(
18697
18702
  d.columns,
18698
18703
  1,
18699
18704
  k.l - d.offset.left - d.padding.left,
18700
18705
  d.gap.column,
18701
18706
  0.5
18702
- )), p.startsWith("t") && (m.row.start = ut(
18707
+ )), p.startsWith("t") && (g.row.start = ut(
18703
18708
  d.rows,
18704
18709
  1,
18705
18710
  k.t - d.offset.top - d.padding.top,
18706
18711
  d.gap.row,
18707
18712
  0.5
18708
- )), p.endsWith("r") && (m.column.end = Math.max(
18709
- ut(d.columns, m.column.start, k.w, d.gap.column, 0.5),
18710
- m.column.start + 1
18711
- )), p.startsWith("b") && (m.row.end = Math.max(
18712
- ut(d.rows, m.row.start, k.h, d.gap.row, 0.5),
18713
- m.row.start + 1
18714
- )), a.style.gridArea = `${m.row.start} / ${m.column.start} / ${m.row.end} / ${m.column.end}`, c.style.width = `${k.w}px`, c.style.height = `${k.h}px`, c.style.left = `${k.l - d.offset.left}px`, c.style.top = `${k.t - d.offset.top}px`, o == null || o(h, f);
18713
+ )), p.endsWith("r") && (g.column.end = Math.max(
18714
+ ut(d.columns, g.column.start, k.w, d.gap.column, 0.5),
18715
+ g.column.start + 1
18716
+ )), p.startsWith("b") && (g.row.end = Math.max(
18717
+ ut(d.rows, g.row.start, k.h, d.gap.row, 0.5),
18718
+ g.row.start + 1
18719
+ )), a.style.gridArea = `${g.row.start} / ${g.column.start} / ${g.row.end} / ${g.column.end}`, c.style.width = `${k.w}px`, c.style.height = `${k.h}px`, c.style.left = `${k.l - d.offset.left}px`, c.style.top = `${k.t - d.offset.top}px`, o == null || o(f, m);
18715
18720
  }
18716
18721
  };
18717
18722
  }
@@ -18926,15 +18931,15 @@ const wy = function(n, e = {}) {
18926
18931
  }).pop();
18927
18932
  if (!y) return;
18928
18933
  let v = y.attributes.spotEl;
18929
- v || (v = document.createElement("div"), v.className = po, y.set({ spotEl: v })), Object.entries(y.getStyle()).forEach(([w, S]) => v.style.setProperty(w, S)), u == null || u.appendChild(v);
18934
+ v || (v = document.createElement("div"), v.className = po, y.set({ spotEl: v })), Object.entries(y.getStyle()).forEach(([C, S]) => v.style.setProperty(C, S)), u == null || u.appendChild(v);
18930
18935
  }, g = ({ spot: y }) => {
18931
18936
  const v = y.attributes.spotEl;
18932
18937
  y.type !== no || !v || u == null || u.removeChild(v);
18933
18938
  };
18934
18939
  if (i) {
18935
18940
  const y = (v) => {
18936
- const w = _t(i) ? i({ component: v }) : i;
18937
- return typeof w == "boolean" ? w : {
18941
+ const C = _t(i) ? i({ component: v }) : i;
18942
+ return typeof C == "boolean" ? C : {
18938
18943
  tl: !1,
18939
18944
  tc: !1,
18940
18945
  tr: !1,
@@ -18943,13 +18948,13 @@ const wy = function(n, e = {}) {
18943
18948
  bl: !1,
18944
18949
  bc: !1,
18945
18950
  br: !1,
18946
- ...w
18951
+ ...C
18947
18952
  };
18948
18953
  };
18949
18954
  n.on(c.resizeInit, (v) => {
18950
- const { component: w } = v;
18951
- if (Xs(n, w, t)) {
18952
- const S = y(w);
18955
+ const { component: C } = v;
18956
+ if (Xs(n, C, t)) {
18957
+ const S = y(C);
18953
18958
  v.resizable = S;
18954
18959
  }
18955
18960
  });
@@ -18965,7 +18970,7 @@ const wy = function(n, e = {}) {
18965
18970
  }), n.onReady(() => {
18966
18971
  u = o.getSpotsEl(), ly(), xy(n, t);
18967
18972
  });
18968
- const C = () => {
18973
+ const w = () => {
18969
18974
  delete n.Commands.commands[Gr], b.forEach(([y, v]) => {
18970
18975
  n.off(y, v);
18971
18976
  });
@@ -18975,7 +18980,7 @@ const wy = function(n, e = {}) {
18975
18980
  licenseKey: t.licenseKey,
18976
18981
  plan: ry,
18977
18982
  pluginName: _r,
18978
- cleanup: C
18983
+ cleanup: w
18979
18984
  });
18980
18985
  }, jb = G(wy), Cy = "canvasScreenshot", ky = H.startup;
18981
18986
  var fp = /* @__PURE__ */ ((n) => (n.screenshot = "studioPlugin:screenshot", n))(fp || {});
@@ -18996,9 +19001,9 @@ const Ey = async (n) => await Np([{ id: "html-to-image", src: n }]), Ty = async
18996
19001
  canvasHeight: a
18997
19002
  }, m = (h == null ? void 0 : h(f)) || f, b = await window.htmlToImage.toCanvas(n, m);
18998
19003
  b.toBlob(
18999
- (C) => {
19000
- C ? s({
19001
- file: C,
19004
+ (w) => {
19005
+ w ? s({
19006
+ file: w,
19002
19007
  canvas: b
19003
19008
  }) : r(new Error("Failed to create file from canvas"));
19004
19009
  },
@@ -19069,10 +19074,10 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
19069
19074
  }
19070
19075
  },
19071
19076
  onClick: ({ editor: f, state: m }) => {
19072
- var w;
19077
+ var C;
19073
19078
  if (m.active && l) return;
19074
- const g = (d == null ? void 0 : d.placer) || { type: "static", layoutId: mp }, b = { ...g, skipCleanup: g.type === "static" }, C = a || Object.keys(Be).filter((S) => S !== h);
19075
- yp(f, { removeLayouts: C, layout: { placer: b } });
19079
+ const g = (d == null ? void 0 : d.placer) || { type: "static", layoutId: mp }, b = { ...g, skipCleanup: g.type === "static" }, w = a || Object.keys(Be).filter((S) => S !== h);
19080
+ yp(f, { removeLayouts: w, layout: { placer: b } });
19076
19081
  const y = {
19077
19082
  id: h,
19078
19083
  placer: g,
@@ -19084,7 +19089,7 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
19084
19089
  borderRightWidth: 1,
19085
19090
  ...d == null ? void 0 : d.style
19086
19091
  }
19087
- }, v = ((w = p == null ? void 0 : p.sidebarLayoutCommand) == null ? void 0 : w.call(p, {
19092
+ }, v = ((C = p == null ? void 0 : p.sidebarLayoutCommand) == null ? void 0 : C.call(p, {
19088
19093
  ...u,
19089
19094
  layoutCommand: y,
19090
19095
  sidebarButtonProps: n
@@ -19123,12 +19128,12 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
19123
19128
  content: { itemsPerRow: 2, header: { addUrl: !1 } },
19124
19129
  style: { padding: 7 },
19125
19130
  onSelect: ({ assetProps: h, editor: f }) => {
19126
- var C;
19131
+ var w;
19127
19132
  const m = f.getSelected(), g = { type: "image", src: h.src };
19128
19133
  let b;
19129
19134
  if (m != null && m.is("image"))
19130
19135
  return m.set("src", h.src);
19131
- m && f.Components.canMove(m, g) ? b = m.append(g)[0] : m || (b = (C = f.getWrapper()) == null ? void 0 : C.append(g)[0]), b && f.select(b, { scroll: !0 });
19136
+ m && f.Components.canMove(m, g) ? b = m.append(g)[0] : m || (b = (w = f.getWrapper()) == null ? void 0 : w.append(g)[0]), b && f.select(b, { scroll: !0 });
19132
19137
  }
19133
19138
  }
19134
19139
  }
@@ -19163,20 +19168,20 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
19163
19168
  breakpointTablet: e,
19164
19169
  breakpointMobile: t
19165
19170
  }), d = (h, f, m) => {
19166
- const g = c(f), b = { pluginOpts: n, breakpointProps: g }, C = h.map((v) => {
19167
- const w = Mo(v, b);
19171
+ const g = c(f), b = { pluginOpts: n, breakpointProps: g }, w = h.map((v) => {
19172
+ const C = Mo(v, b);
19168
19173
  return n != null && n.sidebarButton ? n.sidebarButton({
19169
19174
  id: v.id,
19170
19175
  buttonIds: Be,
19171
- buttonProps: w,
19176
+ buttonProps: C,
19172
19177
  sidebarButtonProps: v,
19173
19178
  ...g,
19174
19179
  createSidebarButton: (S) => Mo({ ...v, ...S }, b)
19175
- }) : w;
19180
+ }) : C;
19176
19181
  }).filter(Boolean);
19177
19182
  return (n != null && n.sidebarButtons ? n == null ? void 0 : n.sidebarButtons({
19178
19183
  buttonIds: Be,
19179
- sidebarButtons: C,
19184
+ sidebarButtons: w,
19180
19185
  ...g,
19181
19186
  createSidebarButton: (v) => Mo(
19182
19187
  {
@@ -19188,11 +19193,11 @@ const mp = "sidebarButtonsTarget", Mo = (n, e) => {
19188
19193
  },
19189
19194
  b
19190
19195
  )
19191
- }) : C).filter(Boolean);
19196
+ }) : w).filter(Boolean);
19192
19197
  }, p = (h, f, m) => {
19193
- var C;
19198
+ var w;
19194
19199
  const g = c(m), b = { pluginOpts: n, breakpointProps: g };
19195
- return ((C = n == null ? void 0 : n.rootLayout) == null ? void 0 : C.call(n, {
19200
+ return ((w = n == null ? void 0 : n.rootLayout) == null ? void 0 : w.call(n, {
19196
19201
  sidebarButtons: f,
19197
19202
  rootLayout: h,
19198
19203
  layoutSidebarLeft: l,
@@ -19370,10 +19375,10 @@ function Ry(n, e) {
19370
19375
  let { spotEl: b } = g.attributes;
19371
19376
  b || (b = document.createElement("div"), b.className = `${Ao}__items`, g.set({ spotEl: b })), r.appendChild(b);
19372
19377
  }, d = ({ spot: g }) => {
19373
- const { spotEl: b, pageBreaks: C = [] } = g.attributes;
19374
- !er(g) || !b || !r || (Object.entries(g.getStyle()).forEach(([y, v]) => b.style.setProperty(y, v)), b.innerHTML = "", C.forEach((y, v) => {
19375
- const w = document.createElement("div");
19376
- w.setAttribute("data-page-number", `${v + 2}`), w.className = Ao, w.style.top = `${y}px`, b.appendChild(w);
19378
+ const { spotEl: b, pageBreaks: w = [] } = g.attributes;
19379
+ !er(g) || !b || !r || (Object.entries(g.getStyle()).forEach(([y, v]) => b.style.setProperty(y, v)), b.innerHTML = "", w.forEach((y, v) => {
19380
+ const C = document.createElement("div");
19381
+ C.setAttribute("data-page-number", `${v + 2}`), C.className = Ao, C.style.top = `${y}px`, b.appendChild(C);
19377
19382
  }));
19378
19383
  }, p = jn(() => {
19379
19384
  if (n.em.destroyed) return;
@@ -19484,9 +19489,9 @@ const $y = "presetPrintable", zy = H.free, Vy = function(n, e = {}) {
19484
19489
  const u = a && s.get(a) || s.getAll().at(0);
19485
19490
  s.select(u), ["map", "video"].forEach((x) => r.remove(x));
19486
19491
  const f = (x = {}) => {
19487
- const k = "page-rule", { rules: E } = n.Css, { width: M, height: P, minHeight: N } = s.getSelected().attributes, I = P && P !== "auto" ? P : N, R = E.where({ id: k }).pop(), F = R || E.add(
19492
+ const E = "page-rule", { rules: k } = n.Css, { width: M, height: P, minHeight: N } = s.getSelected().attributes, I = P && P !== "auto" ? P : N, R = k.where({ id: E }).pop(), F = R || k.add(
19488
19493
  {
19489
- id: k,
19494
+ id: E,
19490
19495
  selectors: [],
19491
19496
  selectorsAdd: "@page"
19492
19497
  },
@@ -19496,8 +19501,8 @@ const $y = "presetPrintable", zy = H.free, Vy = function(n, e = {}) {
19496
19501
  size: `${M} ${I}`,
19497
19502
  ...!R && { margin: "0" }
19498
19503
  });
19499
- }, m = (x, k = {}) => {
19500
- const E = x.document, { minHeight: M } = s.getSelected().attributes, N = `
19504
+ }, m = (x, E = {}) => {
19505
+ const k = x.document, { minHeight: M } = s.getSelected().attributes, N = `
19501
19506
  ${!!parseFloat(`${M}`) ? `
19502
19507
  [data-gjs-type="wrapper"] { min-height: ${M}; }
19503
19508
  ` : `
@@ -19511,11 +19516,11 @@ const $y = "presetPrintable", zy = H.free, Vy = function(n, e = {}) {
19511
19516
  }
19512
19517
  `}
19513
19518
  `;
19514
- Yr(`${Bo}preset-printable`, N, { doc: E, target: E.head }), f(k);
19519
+ Yr(`${Bo}preset-printable`, N, { doc: k, target: k.head }), f(E);
19515
19520
  };
19516
19521
  n.on(i.frameLoadBody, (x) => {
19517
- const k = x.window;
19518
- if (m(k), t.fixedHeight) {
19522
+ const E = x.window;
19523
+ if (m(E), t.fixedHeight) {
19519
19524
  const M = x.model.getComponent().getEl();
19520
19525
  M == null || M.addEventListener("scroll", (P) => {
19521
19526
  const N = P.target;
@@ -19523,13 +19528,13 @@ const $y = "presetPrintable", zy = H.free, Vy = function(n, e = {}) {
19523
19528
  });
19524
19529
  }
19525
19530
  }), n.on(s.events.select, () => {
19526
- var k;
19527
- const x = (k = o.getFrameEl().contentDocument) == null ? void 0 : k.defaultView;
19531
+ var E;
19532
+ const x = (E = o.getFrameEl().contentDocument) == null ? void 0 : E.defaultView;
19528
19533
  x && m(x, { fromDeviceChange: !0 });
19529
19534
  });
19530
19535
  const g = () => {
19531
- const k = n.Css.getRules().filter((E) => E.selectorsToString() === "body").pop();
19532
- k == null || k.addStyle({
19536
+ const E = n.Css.getRules().filter((k) => k.selectorsToString() === "body").pop();
19537
+ E == null || E.addStyle({
19533
19538
  "margin-top": "",
19534
19539
  "margin-right": "",
19535
19540
  "margin-bottom": "",
@@ -19537,20 +19542,20 @@ const $y = "presetPrintable", zy = H.free, Vy = function(n, e = {}) {
19537
19542
  margin: "0"
19538
19543
  });
19539
19544
  }, b = [[l.projectLoad, g]];
19540
- b.forEach(([x, k]) => n.on(x, k));
19541
- const C = Ry(n, t), y = Dy(n), v = Ly(n, t);
19545
+ b.forEach(([x, E]) => n.on(x, E));
19546
+ const w = Ry(n, t), y = Dy(n), v = Ly(n, t);
19542
19547
  n.onReady(() => {
19543
19548
  n.UndoManager.clear();
19544
19549
  });
19545
- const w = () => {
19546
- b.forEach(([x, k]) => n.off(x, k)), C(), y(), v();
19550
+ const C = () => {
19551
+ b.forEach(([x, E]) => n.off(x, E)), w(), y(), v();
19547
19552
  };
19548
- n.on(l.destroy, w), W({
19553
+ n.on(l.destroy, C), W({
19549
19554
  editor: n,
19550
19555
  licenseKey: t.licenseKey,
19551
19556
  plan: zy,
19552
19557
  pluginName: $y,
19553
- cleanup: w
19558
+ cleanup: C
19554
19559
  });
19555
19560
  }, Ub = G(Vy), By = (n) => {
19556
19561
  const e = n;
@@ -20827,8 +20832,8 @@ function Vo({
20827
20832
  var M;
20828
20833
  const t = n.guide.x === void 0 ? "y" : "x";
20829
20834
  let o = 0, s = 0, r = 0, i = 0;
20830
- const { guide: l, matched: a } = n, c = e.getElBoxRect(l.componentView.el), d = e.getElBoxRect(((M = a.componentView) == null ? void 0 : M.el) || a.componentEl), p = c.y, u = c.y + c.height, h = c.x, f = c.x + c.width, m = d.y, g = d.y + d.height, b = d.x, C = d.x + d.width, y = Math.max(0, p - g), v = Math.max(0, m - u), w = Math.max(0, h - C), S = Math.max(0, b - f), x = y > v, k = w > S, E = l.type;
20831
- return t === "x" && (E === "l" ? (o = h, x ? (s = g, r = y) : (s = u, r = v)) : E === "r" ? (o = f, x ? (s = g, r = y) : (s = u, r = v)) : E === "x" && (o = h - (h - f) / 2, x ? (s = g, r = y) : (s = u, r = v))), t === "y" && (E === "t" ? (s = p, k ? (o = C, i = w) : (o = f, i = S)) : E === "b" ? (s = u, k ? (o = C, i = w) : (o = f, i = S)) : E === "y" && (s = p - (p - u) / 2, k ? (o = C, i = w) : (o = f, i = S))), { axis: t, x: o, y: s, width: i, height: r };
20835
+ const { guide: l, matched: a } = n, c = e.getElBoxRect(l.componentView.el), d = e.getElBoxRect(((M = a.componentView) == null ? void 0 : M.el) || a.componentEl), p = c.y, u = c.y + c.height, h = c.x, f = c.x + c.width, m = d.y, g = d.y + d.height, b = d.x, w = d.x + d.width, y = Math.max(0, p - g), v = Math.max(0, m - u), C = Math.max(0, h - w), S = Math.max(0, b - f), x = y > v, E = C > S, k = l.type;
20836
+ return t === "x" && (k === "l" ? (o = h, x ? (s = g, r = y) : (s = u, r = v)) : k === "r" ? (o = f, x ? (s = g, r = y) : (s = u, r = v)) : k === "x" && (o = h - (h - f) / 2, x ? (s = g, r = y) : (s = u, r = v))), t === "y" && (k === "t" ? (s = p, E ? (o = w, i = C) : (o = f, i = S)) : k === "b" ? (s = u, E ? (o = w, i = C) : (o = f, i = S)) : k === "y" && (s = p - (p - u) / 2, E ? (o = w, i = C) : (o = f, i = S))), { axis: t, x: o, y: s, width: i, height: r };
20832
20837
  }
20833
20838
  function Sb({
20834
20839
  guideMatched: n,
@@ -20859,14 +20864,14 @@ function Cp({
20859
20864
  r.__lastSnappedPosition = { left: I.x, top: I.y }, r.__dragOffset = { x: R, y: F };
20860
20865
  }
20861
20866
  const h = ((P = r.__dragOffset) == null ? void 0 : P.x) || 0, f = ((N = r.__dragOffset) == null ? void 0 : N.y) || 0, m = r.__lastSnappedPosition, g = p - m.left - h, b = u - m.top - f;
20862
- let C = m.left, y = m.top;
20863
- const v = s == null ? void 0 : s[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";
20867
+ let w = m.left, y = m.top;
20868
+ const v = s == null ? void 0 : s[0], C = (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", E = (v == null ? void 0 : v.guide.type) === "t", k = (v == null ? void 0 : v.guide.type) === "b", M = (v == null ? void 0 : v.guide.type) === "y";
20864
20869
  if (v) {
20865
20870
  const { x: I, y: R } = Vo({ guideMatched: v, canvasView: l }), F = i.offsetWidth, ie = i.offsetHeight;
20866
- w ? C = I : x ? C = I - F : S ? C = I - F / 2 : k ? y = R : E ? y = R - ie : M && (y = R - ie / 2), r.__lastSnappedGuideMatched = v;
20871
+ C ? w = I : x ? w = I - F : S ? w = I - F / 2 : E ? y = R : k ? y = R - ie : M && (y = R - ie / 2), r.__lastSnappedGuideMatched = v;
20867
20872
  } else
20868
- Math.abs(g) >= a && (C = Math.round((m.left + g) / a) * a, r.__lastSnappedGuideMatched = null), Math.abs(b) >= c && (y = Math.round((m.top + b) / c) * c, r.__lastSnappedGuideMatched = null);
20869
- return r.addStyle({ left: `${C}px`, top: `${y}px` }, { partial: !0 }), r.__lastSnappedPosition = { left: C, top: y }, { x: C, y, guideMatched: r.__lastSnappedGuideMatched };
20873
+ Math.abs(g) >= a && (w = Math.round((m.left + g) / a) * a, r.__lastSnappedGuideMatched = null), Math.abs(b) >= c && (y = Math.round((m.top + b) / c) * c, r.__lastSnappedGuideMatched = null);
20874
+ return r.addStyle({ left: `${w}px`, top: `${y}px` }, { partial: !0 }), r.__lastSnappedPosition = { left: w, top: y }, { x: w, y, guideMatched: r.__lastSnappedGuideMatched };
20870
20875
  }
20871
20876
  function xb({
20872
20877
  snapping: n,
@@ -20889,8 +20894,8 @@ const wb = "core:component-drag", Cb = "studio:setDragAbsolute", kb = "dmode:sta
20889
20894
  const c = !!(i != null && i.x || i != null && i.y), d = !!(l != null && l.x || l != null && l.y), { Canvas: p } = n;
20890
20895
  let u = null;
20891
20896
  const h = (x) => {
20892
- const { component: k, guidesMatched: E, command: M } = x, P = k.view, N = n.Canvas.getCanvasView(), I = k.getEl();
20893
- let R = E.map((le) => le.matched.componentEl), F = E.map((le) => Vo({ guideMatched: le, canvasView: N }));
20897
+ const { component: E, guidesMatched: k, command: M } = x, P = E.view, N = n.Canvas.getCanvasView(), I = E.getEl();
20898
+ let R = k.map((le) => le.matched.componentEl), F = k.map((le) => Vo({ guideMatched: le, canvasView: N }));
20894
20899
  if (c) {
20895
20900
  const { guideMatched: le } = Cp({ snapping: i, props: x, editor: n });
20896
20901
  le ? (R = [le.matched.componentEl], F = [Vo({ guideMatched: le, canvasView: N })]) : (R = [], F = []);
@@ -20898,17 +20903,17 @@ const wb = "core:component-drag", Cb = "studio:setDragAbsolute", kb = "dmode:sta
20898
20903
  if (d)
20899
20904
  if (M.opts.event.shiftKey)
20900
20905
  if (!u)
20901
- u = E[0];
20906
+ u = k[0];
20902
20907
  else {
20903
20908
  const Ke = u, ve = Ke.guide.x === void 0 ? "x" : "y";
20904
- (ve === "x" && (l == null ? void 0 : l.x) || ve === "y" && (l == null ? void 0 : l.y)) && (Sb({ guideMatched: Ke, component: k, canvasView: N }), R = [Ke.matched.componentEl], F = [Vo({ guideMatched: Ke, canvasView: N })]);
20909
+ (ve === "x" && (l == null ? void 0 : l.x) || ve === "y" && (l == null ? void 0 : l.y)) && (Sb({ guideMatched: Ke, component: E, canvasView: N }), R = [Ke.matched.componentEl], F = [Vo({ guideMatched: Ke, canvasView: N })]);
20905
20910
  }
20906
20911
  else
20907
20912
  u = null;
20908
20913
  const ie = {
20909
20914
  id: tr,
20910
20915
  type: tr,
20911
- component: k,
20916
+ component: E,
20912
20917
  componentView: P,
20913
20918
  originComponent: I,
20914
20919
  matchedComponents: R,
@@ -20923,31 +20928,31 @@ const wb = "core:component-drag", Cb = "studio:setDragAbsolute", kb = "dmode:sta
20923
20928
  m({ type: Eb }), m({ type: Tb }), m({ type: Mb });
20924
20929
  }, b = (x) => {
20925
20930
  f({ enabled: !0 }), h(x), g();
20926
- }, C = (x) => {
20931
+ }, w = (x) => {
20927
20932
  h(x), g();
20928
20933
  }, y = (x) => {
20929
20934
  m({ type: tr }), c && xb({ snapping: i, props: x, editor: n }), f({ enabled: !1 });
20930
20935
  }, S = [
20931
20936
  [kb, (x) => {
20932
- b(x), n.on(Ia, C);
20933
- const k = () => {
20934
- y(x), n.off(Ia, C), n.off(Oa, k);
20937
+ b(x), n.on(Ia, w);
20938
+ const E = () => {
20939
+ y(x), n.off(Ia, w), n.off(Oa, E);
20935
20940
  };
20936
- n.on(Oa, k);
20941
+ n.on(Oa, E);
20937
20942
  }],
20938
20943
  [r, (x) => {
20939
20944
  if (a) return;
20940
- const k = x.options.target, E = vb(n, k, e);
20941
- E != null && E.result && !E.dmode && (x.options.mode = "absolute");
20945
+ const E = x.options.target, k = vb(n, E, e);
20946
+ k != null && k.result && !k.dmode && (x.options.mode = "absolute");
20942
20947
  }]
20943
20948
  ];
20944
- S.forEach(([x, k]) => n.on(x, k)), W({
20949
+ S.forEach(([x, E]) => n.on(x, E)), W({
20945
20950
  editor: n,
20946
20951
  licenseKey: e.licenseKey,
20947
20952
  plan: bb,
20948
20953
  pluginName: yb,
20949
20954
  cleanup: () => {
20950
- f({ enabled: !1 }), S.forEach(([x, k]) => n.off(x, k));
20955
+ f({ enabled: !1 }), S.forEach(([x, E]) => n.off(x, E));
20951
20956
  }
20952
20957
  });
20953
20958
  }, Xb = G(Ab);