useblocks 1.1.81 → 1.1.84

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 (41) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +17 -6
  3. package/iframe/css/sandbox-dark.css +1 -1
  4. package/iframe/css/sandbox-darktheme.css +3 -3
  5. package/iframe/css/sandbox-light.css +1 -1
  6. package/iframe/css/sandbox.css +2 -2
  7. package/iframe/js/amp.D1dkO3ub.js +1 -0
  8. package/iframe/js/iframe-eblock.js +1 -1
  9. package/iframe/js/iframe.js +1 -1
  10. package/iframe/js/rules.4N5s3OV-.js +1 -1
  11. package/package.json +1 -1
  12. package/static/core/{dfbad00e.js → 16c7408a.js} +4 -4
  13. package/static/core/{909c874d2.js → 278c19282.js} +982 -974
  14. package/static/core/{87de8255.js → 27b7d154.js} +3 -3
  15. package/static/core/{cc4c61c42.js → 7877b5712.js} +135 -135
  16. package/static/core/{ace7c2d1.js → 86acf537.js} +7 -7
  17. package/static/core/{6fc5508e2.js → 95074b4e2.js} +53 -53
  18. package/static/core/{f2b0c97b2.js → 9a1229572.js} +849 -836
  19. package/static/core/{6a3ea43c.js → ab3c035c.js} +6 -6
  20. package/static/core/{496a28e52.js → b8fa83f82.js} +562 -562
  21. package/static/core/{7cff1d56.js → bb8665a8.js} +77 -4
  22. package/static/core/{fc514220.js → c013e7cc.js} +73 -73
  23. package/static/core/{5cc21a00.js → c871702e.js} +608 -603
  24. package/static/core/{4296ff4b.js → cf26b064.js} +240 -240
  25. package/static/core/{d2293148.js → d15a988b.js} +7 -7
  26. package/static/core/{f7e3905a.js → d4962564.js} +3 -3
  27. package/static/core/{1ab52017.js → dc948de7.js} +7 -7
  28. package/static/core/{c287f8b6.js → e9b6fbb9.js} +36 -36
  29. package/static/core/{d70b5c31.js → ec6e74e5.js} +12965 -12545
  30. package/static/umd-runtime/{n8zqoGYh.js → D80ABE1O.js} +7 -1
  31. package/static/umd-runtime/runtime.js +2 -2
  32. package/static/umd-runtime/ui-kit.js +1742 -1734
  33. package/ui-kit/index.js +1859 -1851
  34. package/{useblocks-core.0a682f7d.js → useblocks-core.2fa005e8.js} +6 -6
  35. package/useblocks-esm.js +4 -4
  36. package/{useblocks-po.0a682f7d.js → useblocks-po.2fa005e8.js} +1 -1
  37. package/useblocks.d.ts +51 -24
  38. package/useblocks.js +3 -3
  39. package/iframe/js/amp.Da_6yDxX.js +0 -1
  40. /package/iframe/{iframe-eblock.0a682f7d.html → iframe-eblock.2fa005e8.html} +0 -0
  41. /package/iframe/{iframe.0a682f7d.html → iframe.2fa005e8.html} +0 -0
@@ -1,25 +1,25 @@
1
1
  (function(){try{if(typeof document<"u"){var o=document.createElement("style");o.setAttribute("data-useblocks","true"),o.appendChild(document.createTextNode('.monaco-editor{width:100%;height:100%}.monaco-editor .monaco-hover{border-radius:6px}.monaco-editor .monaco-editor .scroll-decoration{box-shadow:none}.monaco-editor,.monaco-editor *,.monaco-editor .view-lines,.monaco-editor .view-lines *,.monaco-editor .view-lines .view-line,.monaco-editor .view-lines .monaco-mouse-cursor-text,.monaco-editor .view-line,.monaco-editor .monaco-mouse-cursor-text{font-family:var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace)!important}.monaco-editor .view-line,.monaco-editor .view-line span,.monaco-editor .view-line span.inline-selected-text{font-variant-ligatures:none;font-feature-settings:"liga" 0, "calt" 0;font-kerning:none;white-space:pre;font-family:var(--monaco-monospace-font,var(--monaco-editor-font-family,"Source Code Pro", Consolas, "Courier New", monospace))!important;font-size:var(--monaco-editor-font-size,14px)!important;font-weight:400!important}.monaco-editor .standalone-colorpicker-body{max-width:460px!important}.monaco-editor .standalone-colorpicker-body .colorpicker-body .saturation-wrap{flex:0 auto;max-width:280px}.blocks-app .colorpicker-body .saturation-box,.blocks-app .colorpicker-body .strip{border-radius:4px}.blocks-app .scrollbar.vertical{width:5px!important}.blocks-app .scrollbar.vertical .slider{border-radius:5px!important;width:5px!important}.blocks-app .user-cursor{z-index:10;border-left:2px solid #ff00e1;width:2px;height:20px;position:absolute}.blocks-app .cursor-hover{color:#fff;text-wrap-mode:nowrap;z-index:10000;border-radius:7px 7px 7px 0;margin-left:-2px;padding:0 5px;font-size:12px;position:absolute;top:-17px}.blocks-app .user-selection-decoration{background-color:#8080eb4d}.monaco-editor__spin{z-index:1000;align-items:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- __useblocks__.define("static/core/ace7c2d1.js", [
2
+ __useblocks__.define("static/core/86acf537.js", [
3
3
  "require",
4
4
  "exports",
5
5
  "module",
6
6
  "static/core/df237243.js",
7
- "static/core/7cff1d56.js",
7
+ "static/core/bb8665a8.js",
8
8
  "static/core/e57e8a80.js",
9
9
  "static/core/9355751a.js",
10
- "static/core/f7e3905a.js",
10
+ "static/core/d4962564.js",
11
11
  "static/core/c370a46c.js",
12
12
  "static/core/db5fa769.js",
13
13
  "static/core/3bda5ccf2.js",
14
- "static/core/909c874d2.js",
14
+ "static/core/278c19282.js",
15
15
  "static/core/6e2a0152.js",
16
- "static/core/dfbad00e.js",
16
+ "static/core/16c7408a.js",
17
17
  "react",
18
18
  "react/jsx-runtime"
19
19
  ], function(de, wc, Ky) {
20
- const w = de("./df237243.js"), v = de("./7cff1d56.js"), un = de("./e57e8a80.js"), ge = de("./9355751a.js"), ot = de("./f7e3905a.js"), as = de("./c370a46c.js");
20
+ const w = de("./df237243.js"), v = de("./bb8665a8.js"), un = de("./e57e8a80.js"), ge = de("./9355751a.js"), ot = de("./d4962564.js"), as = de("./c370a46c.js");
21
21
  de("./db5fa769.js");
22
- const Ae = de("./3bda5ccf2.js"), sr = de("./909c874d2.js"), or = de("./6e2a0152.js"), be = de("./dfbad00e.js");
22
+ const Ae = de("./3bda5ccf2.js"), sr = de("./278c19282.js"), or = de("./6e2a0152.js"), be = de("./16c7408a.js");
23
23
  let S = de("react"), $ = w.__toESM(S, 1);
24
24
  S = w.__toESM(S);
25
25
  let Dt = de("react/jsx-runtime");
@@ -1,16 +1,16 @@
1
- __useblocks__.define("static/core/6fc5508e2.js", [
1
+ __useblocks__.define("static/core/95074b4e2.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/df237243.js",
6
- "static/core/f2b0c97b2.js",
6
+ "static/core/9a1229572.js",
7
7
  "static/core/92871f5a2.js",
8
8
  "react",
9
9
  "antd",
10
10
  "react/jsx-runtime",
11
11
  "@ant-design/icons"
12
12
  ], function(U, O, Ge) {
13
- const te = U("./df237243.js"), X = U("./f2b0c97b2.js"), me = U("./92871f5a2.js");
13
+ const te = U("./df237243.js"), X = U("./9a1229572.js"), me = U("./92871f5a2.js");
14
14
  let s = U("react"), T = te.__toESM(s, 1);
15
15
  s = te.__toESM(s);
16
16
  let z = U("antd"), t = U("react/jsx-runtime"), c = U("@ant-design/icons");
@@ -302,7 +302,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
302
302
  strokeLinecap: "round",
303
303
  strokeLinejoin: "round"
304
304
  })]
305
- }), Ve = () => (0, t.jsx)("svg", {
305
+ }), be = () => (0, t.jsx)("svg", {
306
306
  width: "48",
307
307
  height: "49",
308
308
  viewBox: "0 0 48 49",
@@ -373,11 +373,11 @@ __useblocks__.define("static/core/6fc5508e2.js", [
373
373
  ...e
374
374
  }),
375
375
  StockBigIcon: (e) => (0, t.jsx)(c.default, {
376
- component: Ve,
376
+ component: be,
377
377
  ...e
378
378
  })
379
379
  }, ne = () => {
380
- let { options: e } = X.V(), { customIcons: n } = e, r = s.default.useCallback((o, h, l) => {
380
+ let { options: e } = X.B(), { customIcons: n } = e, r = s.default.useCallback((o, h, l) => {
381
381
  let i = n?.[o];
382
382
  return i ? s.default.createElement(i, l) : s.default.createElement(h, l);
383
383
  }, [n]);
@@ -420,8 +420,8 @@ __useblocks__.define("static/core/6fc5508e2.js", [
420
420
  noFilesImage: "noFilesImage",
421
421
  noFilesTitle: "noFilesTitle",
422
422
  noFilesDescription: "noFilesDescription"
423
- }, be = () => {
424
- let { t: e } = X.Pn(), { NoFilesIcon: n } = ne();
423
+ }, Ve = () => {
424
+ let { t: e } = X.zn(), { NoFilesIcon: n } = ne();
425
425
  return (0, t.jsxs)("div", {
426
426
  className: Y.noFilesContainer,
427
427
  children: [
@@ -465,7 +465,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
465
465
  let r = n?.renderStrategy ?? "full";
466
466
  if (r !== "windowed") {
467
467
  if (r === "positioned") {
468
- let D = n?.positioned?.layout ?? [], B = n?.positioned?.viewportTop ?? 0, b = n?.positioned?.viewportBottom ?? 2 ** 53 - 1, H = Math.max(0, n?.positioned?.overscanPx ?? 0), _ = Math.max(0, n?.positioned?.containerHeight ?? 0), F = D.filter((u) => u.bottom >= B - H && u.top <= b + H).map((u) => ({
468
+ let D = n?.positioned?.layout ?? [], B = n?.positioned?.viewportTop ?? 0, V = n?.positioned?.viewportBottom ?? 2 ** 53 - 1, H = Math.max(0, n?.positioned?.overscanPx ?? 0), _ = Math.max(0, n?.positioned?.containerHeight ?? 0), F = D.filter((u) => u.bottom >= B - H && u.top <= V + H).map((u) => ({
469
469
  row: e[u.index],
470
470
  layout: u
471
471
  })).filter((u) => !!u.row), R = F[0]?.layout.index ?? -1, p = F[F.length - 1]?.layout.index ?? -1;
@@ -489,11 +489,11 @@ __useblocks__.define("static/core/6fc5508e2.js", [
489
489
  totalCount: e.length
490
490
  };
491
491
  }
492
- let o = Math.max(0, n?.windowed?.startIndex ?? 0), h = n?.windowed?.endIndex ?? e.length - 1, l = Math.max(0, n?.windowed?.overscan ?? 0), i = Math.max(1, n?.windowed?.estimatedItemSize ?? 1), v = Math.max(1, n?.windowed?.itemsPerLane ?? 1), f = Math.ceil(e.length / v), d = Math.min(e.length - 1, h), W = Math.floor(o / v), j = Math.floor(Math.max(o, d) / v), w = Math.max(0, W - l), I = Math.min(f - 1, j + l), m = w * v, V = Math.min(e.length - 1, (I + 1) * v - 1), S = Math.max(0, f - I - 1);
492
+ let o = Math.max(0, n?.windowed?.startIndex ?? 0), h = n?.windowed?.endIndex ?? e.length - 1, l = Math.max(0, n?.windowed?.overscan ?? 0), i = Math.max(1, n?.windowed?.estimatedItemSize ?? 1), v = Math.max(1, n?.windowed?.itemsPerLane ?? 1), f = Math.ceil(e.length / v), d = Math.min(e.length - 1, h), W = Math.floor(o / v), j = Math.floor(Math.max(o, d) / v), w = Math.max(0, W - l), I = Math.min(f - 1, j + l), m = w * v, b = Math.min(e.length - 1, (I + 1) * v - 1), S = Math.max(0, f - I - 1);
493
493
  return {
494
- rows: e.slice(m, V + 1),
494
+ rows: e.slice(m, b + 1),
495
495
  startIndex: m,
496
- endIndex: V,
496
+ endIndex: b,
497
497
  topOffset: w * i,
498
498
  bottomOffset: S * i,
499
499
  totalCount: e.length
@@ -528,7 +528,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
528
528
  folderMenu: "folderMenu",
529
529
  folderIcon: "folderIcon"
530
530
  }, Be = ({ selectedFolder: e, onSelect: n, onExpand: r, generateMenuItems: o, fetchChildFolders: h, disabledFolders: l = [], showFileCounts: i = !1, folderFileCounts: v = {}, className: f = "", expandedKeys: d, setExpandedKeys: W, showTrashFolder: j = !1, mode: w = "navigation", defaultExpandAll: I = !1 }) => {
531
- let { t: m } = X.Pn(), { options: V } = X.V(), { config: S } = V, { ExpandArrowIcon: D, CollapseArrowIcon: B, CollapseFolderIcon: b, ExpandFolderIcon: H, EmptyFolderIcon: _ } = ne(), F = (0, s.useCallback)((x) => {
531
+ let { t: m } = X.zn(), { options: b } = X.B(), { config: S } = b, { ExpandArrowIcon: D, CollapseArrowIcon: B, CollapseFolderIcon: V, ExpandFolderIcon: H, EmptyFolderIcon: _ } = ne(), F = (0, s.useCallback)((x) => {
532
532
  let M = [], g = (E) => {
533
533
  E.forEach((A) => {
534
534
  M.push(A.key), A.children && g(A.children);
@@ -578,17 +578,17 @@ __useblocks__.define("static/core/6fc5508e2.js", [
578
578
  return;
579
579
  }
580
580
  u.includes(a) && e === a ? N(u.filter((Z) => Z !== a)) : u.includes(a) || N([...u, a]), C([a]);
581
- }, A = g.length === 0 || g.length === 1 && (!g[0].children || g[0].children.length === 0), q = (a) => {
582
- let Z = i ? v[a.key] : void 0, G = i && Z === null ? null : i ? Z ?? 0 : 0, Re = u.includes(a.key), ee = l.includes(a.key), Ue = a.children?.length ? (0, t.jsx)(Re ? b : H, {
581
+ }, A = g.length === 0 || g.length === 1 && (!g[0].children || g[0].children.length === 0), K = (a) => {
582
+ let Z = i ? v[a.key] : void 0, G = i && Z === null ? null : i ? Z ?? 0 : 0, Re = u.includes(a.key), ee = l.includes(a.key), Ue = a.children?.length ? (0, t.jsx)(Re ? V : H, {
583
583
  size: 20,
584
584
  strokeWidth: S?.iconStrokeWidth
585
585
  }) : (0, t.jsx)(_, {
586
586
  size: 20,
587
587
  strokeWidth: S?.iconStrokeWidth
588
- }), qe = (0, t.jsxs)("div", {
588
+ }), Ke = (0, t.jsxs)("div", {
589
589
  className: `${P.folderItemContainer} folder-item-container`,
590
- onClick: (Ke) => {
591
- Ke.stopPropagation(), ee || E(a.key);
590
+ onClick: (qe) => {
591
+ qe.stopPropagation(), ee || E(a.key);
592
592
  },
593
593
  style: {
594
594
  opacity: ee ? .5 : 1,
@@ -608,8 +608,8 @@ __useblocks__.define("static/core/6fc5508e2.js", [
608
608
  });
609
609
  return {
610
610
  key: a.key,
611
- title: qe,
612
- children: a.children?.map(q),
611
+ title: Ke,
612
+ children: a.children?.map(K),
613
613
  disabled: ee
614
614
  };
615
615
  }, le = u.includes("folders"), $ = (0, t.jsx)("div", {
@@ -619,7 +619,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
619
619
  },
620
620
  children: (0, t.jsxs)("div", {
621
621
  className: P.foldersTitleItem,
622
- children: [(0, t.jsx)(le ? b : H, {
622
+ children: [(0, t.jsx)(le ? V : H, {
623
623
  size: 20,
624
624
  strokeWidth: S?.iconStrokeWidth
625
625
  }), (0, t.jsx)("span", {
@@ -667,15 +667,15 @@ __useblocks__.define("static/core/6fc5508e2.js", [
667
667
  let a = [{
668
668
  key: "folders",
669
669
  title: $,
670
- children: g[0].children?.map(q)
670
+ children: g[0].children?.map(K)
671
671
  }];
672
672
  return j && a.push(Q()), a;
673
673
  }
674
- return g.map(q);
674
+ return g.map(K);
675
675
  }, [
676
676
  o,
677
677
  u,
678
- b,
678
+ V,
679
679
  S?.iconStrokeWidth,
680
680
  H,
681
681
  m,
@@ -700,7 +700,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
700
700
  showLine: !1,
701
701
  focusable: w !== "selection"
702
702
  });
703
- }, K = {
703
+ }, q = {
704
704
  "em-filemanager": "em-filemanager",
705
705
  emFilemanager: "em-filemanager",
706
706
  formFooter: "formFooter",
@@ -737,14 +737,14 @@ __useblocks__.define("static/core/6fc5508e2.js", [
737
737
  title: "Clean",
738
738
  children: (0, t.jsx)(z.Button, {
739
739
  icon: (0, t.jsx)(c.CloseOutlined, { style: { fontSize: 10 } }),
740
- className: K.inputButtonClose,
740
+ className: q.inputButtonClose,
741
741
  type: "text",
742
742
  onClick: () => {
743
743
  o.setFieldsValue({ folderName: "" });
744
744
  }
745
745
  })
746
746
  }), (0, t.jsx)(z.Button, {
747
- className: K.inputButtonOk,
747
+ className: q.inputButtonOk,
748
748
  type: "text",
749
749
  onClick: () => {
750
750
  i(!0), h(o).then((f) => {
@@ -775,14 +775,14 @@ __useblocks__.define("static/core/6fc5508e2.js", [
775
775
  ]), d = s.default.useCallback((W) => {
776
776
  let { folderId: j, targetForm: w, onTreeSelect: I, onComplete: m } = W;
777
777
  return {
778
- handleAddFolder: (V) => {
779
- V.preventDefault(), V.stopPropagation(), v(j), w.setFieldsValue({
778
+ handleAddFolder: (b) => {
779
+ b.preventDefault(), b.stopPropagation(), v(j), w.setFieldsValue({
780
780
  folderName: l("New folder"),
781
781
  targetFolder: j
782
782
  });
783
783
  },
784
- handleSelectFolder: (V) => {
785
- V.preventDefault(), V.stopPropagation(), I([j]).then(() => m(j));
784
+ handleSelectFolder: (b) => {
785
+ b.preventDefault(), b.stopPropagation(), I([j]).then(() => m(j));
786
786
  }
787
787
  };
788
788
  }, [l]);
@@ -790,7 +790,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
790
790
  activeFormField: i,
791
791
  setActiveFormField: v,
792
792
  generateMenuItemsFromFolders: s.default.useCallback((W) => {
793
- let { targetForm: j, onTreeSelect: w, onComplete: I, actionButtonText: m } = W, V = f(j, I), S = Array.isArray(e) ? e : [], D = (F = null, R = new Set()) => S.filter((p) => {
793
+ let { targetForm: j, onTreeSelect: w, onComplete: I, actionButtonText: m } = W, b = f(j, I), S = Array.isArray(e) ? e : [], D = (F = null, R = new Set()) => S.filter((p) => {
794
794
  let u = F === null && !p.parentId, N = p.parentId === F;
795
795
  return u || N;
796
796
  }).map((p) => {
@@ -807,13 +807,13 @@ __useblocks__.define("static/core/6fc5508e2.js", [
807
807
  onComplete: I
808
808
  }), y = i === p.id ? [{
809
809
  key: `${p.id}_input`,
810
- label: V(p.id),
810
+ label: b(p.id),
811
811
  icon: null
812
812
  }, ...N] : N;
813
813
  return {
814
814
  key: p.id,
815
815
  label: (0, t.jsxs)(t.Fragment, { children: [p.name, n !== p.id && (0, t.jsxs)("div", {
816
- className: `${K.folderToolsField} folder-tools-field`,
816
+ className: `${q.folderToolsField} folder-tools-field`,
817
817
  children: [(0, t.jsx)(z.Button, {
818
818
  onClick: C,
819
819
  children: "+"
@@ -824,22 +824,22 @@ __useblocks__.define("static/core/6fc5508e2.js", [
824
824
  })] }),
825
825
  children: y
826
826
  };
827
- }), B = D(), { handleAddFolder: b, handleSelectFolder: H } = d({
827
+ }), B = D(), { handleAddFolder: V, handleSelectFolder: H } = d({
828
828
  folderId: "folders",
829
829
  targetForm: j,
830
830
  onTreeSelect: w,
831
831
  onComplete: I
832
832
  }), _ = i === "folders" ? [{
833
833
  key: "folders_input",
834
- label: V("folders"),
834
+ label: b("folders"),
835
835
  icon: null
836
836
  }, ...B] : B;
837
837
  return [{
838
838
  key: "folders",
839
839
  label: (0, t.jsxs)(t.Fragment, { children: [l("Folders"), n !== "folders" && n !== null && (0, t.jsxs)("div", {
840
- className: `${K.folderToolsField} folder-tools-field`,
840
+ className: `${q.folderToolsField} folder-tools-field`,
841
841
  children: [(0, t.jsx)(z.Button, {
842
- onClick: b,
842
+ onClick: V,
843
843
  children: "+"
844
844
  }), (0, t.jsx)(z.Button, {
845
845
  onClick: H,
@@ -891,7 +891,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
891
891
  }
892
892
  var Oe = 240, Ne = 240, Ze = 20, Ae = 800, ze = 1200, _e = 40, ie = 1200, $e = 800;
893
893
  function De({ items: e, getId: n, getPreviewSrc: r, getAltText: o, getWidth: h, getHeight: l, layoutMode: i = "masonry", minColumnWidth: v = Oe, estimatedItemHeight: f = Ne, gap: d = Ze, overscanPx: W = Ae, prefetchThresholdPx: j = ze, resolveColumnCount: w, virtualizationThreshold: I = _e }) {
894
- let [m, V] = (0, s.useState)({
894
+ let [m, b] = (0, s.useState)({
895
895
  scrollTop: 0,
896
896
  viewportHeight: $e,
897
897
  viewportWidth: ie,
@@ -914,7 +914,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
914
914
  v,
915
915
  w,
916
916
  m.viewportWidth
917
- ]), b = (0, s.useMemo)(() => {
917
+ ]), V = (0, s.useMemo)(() => {
918
918
  let C = Math.max(1, m.viewportWidth || ie);
919
919
  return Math.max(1, (C - d * Math.max(0, B - 1)) / B);
920
920
  }, [
@@ -924,14 +924,14 @@ __useblocks__.define("static/core/6fc5508e2.js", [
924
924
  ]), H = (0, s.useMemo)(() => {
925
925
  let C = Array(B).fill(0), k = [];
926
926
  e: for (let y = 0; y < e.length; y += 1) {
927
- let J = e[y], x = h?.(J), M = l?.(J), g = x && M && x > 0 && M > 0 ? x / M : void 0, E = g ? b / g : f;
927
+ let J = e[y], x = h?.(J), M = l?.(J), g = x && M && x > 0 && M > 0 ? x / M : void 0, E = g ? V / g : f;
928
928
  if (i === "grid") {
929
- let $ = Math.floor(y / B), Q = y % B, a = $ * (E + d), Z = Q * (b + d);
929
+ let $ = Math.floor(y / B), Q = y % B, a = $ * (E + d), Z = Q * (V + d);
930
930
  k.push({
931
931
  index: y,
932
932
  top: a,
933
933
  left: Z,
934
- width: b,
934
+ width: V,
935
935
  height: E,
936
936
  bottom: a + E
937
937
  });
@@ -939,14 +939,14 @@ __useblocks__.define("static/core/6fc5508e2.js", [
939
939
  }
940
940
  let A = 0;
941
941
  for (let $ = 1; $ < C.length; $ += 1) C[$] < C[A] && (A = $);
942
- let q = C[A], le = A * (b + d);
943
- C[A] = q + E + d, k.push({
942
+ let K = C[A], le = A * (V + d);
943
+ C[A] = K + E + d, k.push({
944
944
  index: y,
945
- top: q,
945
+ top: K,
946
946
  left: le,
947
- width: b,
947
+ width: V,
948
948
  height: E,
949
- bottom: q + E
949
+ bottom: K + E
950
950
  });
951
951
  }
952
952
  return {
@@ -955,7 +955,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
955
955
  };
956
956
  }, [
957
957
  B,
958
- b,
958
+ V,
959
959
  f,
960
960
  d,
961
961
  l,
@@ -985,14 +985,14 @@ __useblocks__.define("static/core/6fc5508e2.js", [
985
985
  I
986
986
  ])
987
987
  }), R = (C) => {
988
- V((k) => k.scrollTop === C.scrollTop && k.viewportHeight === C.viewportHeight && k.viewportWidth === C.viewportWidth && k.scrollHeight === C.scrollHeight ? k : C);
988
+ b((k) => k.scrollTop === C.scrollTop && k.viewportHeight === C.viewportHeight && k.viewportWidth === C.viewportWidth && k.scrollHeight === C.scrollHeight ? k : C);
989
989
  }, p = F.positionedItems ?? _.map((C, k) => ({
990
990
  row: C,
991
991
  layout: H.positionedItems[k] ?? {
992
992
  index: k,
993
993
  top: 0,
994
994
  left: 0,
995
- width: b,
995
+ width: V,
996
996
  height: f,
997
997
  bottom: f
998
998
  }
@@ -1011,7 +1011,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
1011
1011
  Object.defineProperty(O, "J", {
1012
1012
  enumerable: !0,
1013
1013
  get: function() {
1014
- return be;
1014
+ return Ve;
1015
1015
  }
1016
1016
  }), Object.defineProperty(O, "K", {
1017
1017
  enumerable: !0,
@@ -1021,7 +1021,7 @@ __useblocks__.define("static/core/6fc5508e2.js", [
1021
1021
  }), Object.defineProperty(O, "Q", {
1022
1022
  enumerable: !0,
1023
1023
  get: function() {
1024
- return K;
1024
+ return q;
1025
1025
  }
1026
1026
  }), Object.defineProperty(O, "X", {
1027
1027
  enumerable: !0,