useblocks 1.1.71 → 1.1.81

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 (61) hide show
  1. package/CHANGELOG.md +426 -0
  2. package/README.md +38 -0
  3. package/iframe/js/amp.Da_6yDxX.js +1 -0
  4. package/iframe/js/iframe-eblock.js +1 -1
  5. package/iframe/js/iframe.js +1 -1
  6. package/iframe/js/rules.4N5s3OV-.js +1 -1
  7. package/package.json +30 -9
  8. package/static/core/1ab52017.js +2134 -0
  9. package/static/core/4296ff4b.js +3280 -0
  10. package/static/core/{63206e112.js → 496a28e52.js} +2682 -2421
  11. package/static/core/{9ab1c444.js → 5cc21a00.js} +2302 -2432
  12. package/static/core/{b9b92e01.js → 6a3ea43c.js} +15 -15
  13. package/static/core/{e02024fb2.js → 6fc5508e2.js} +69 -69
  14. package/static/core/{ea6c5c93.js → 7cff1d56.js} +3327 -2997
  15. package/static/core/87de8255.js +1098 -0
  16. package/static/core/{3f22a9d32.js → 909c874d2.js} +1196 -1123
  17. package/static/core/{c3b45fb6.js → ace7c2d1.js} +7 -7
  18. package/static/core/{5e082e16.js → c287f8b6.js} +38 -38
  19. package/static/core/{585259872.js → cc4c61c42.js} +108 -108
  20. package/static/core/{222d29d9.js → d2293148.js} +272 -248
  21. package/static/core/{e4d01015.js → d70b5c31.js} +22367 -19437
  22. package/static/core/{68ec11c8.js → dfbad00e.js} +4 -4
  23. package/static/core/{ce9be2ec2.js → f2b0c97b2.js} +2138 -2086
  24. package/static/core/{d3bbb05e.js → f7e3905a.js} +3 -3
  25. package/static/core/{513594a8.js → fc514220.js} +34 -34
  26. package/static/umd-runtime/ui-kit.js +1171 -1103
  27. package/ui-kit/index.js +1541 -1469
  28. package/{useblocks-core.77131b3d.js → useblocks-core.0a682f7d.js} +6 -6
  29. package/useblocks-esm.js +4 -4
  30. package/{useblocks-po.77131b3d.js → useblocks-po.0a682f7d.js} +1 -1
  31. package/useblocks.d.ts +66 -0
  32. package/useblocks.js +3 -3
  33. package/favicon-b.ico +0 -0
  34. package/favicon.ico +0 -0
  35. package/fonts/SegoeUI-Bold.woff2 +0 -0
  36. package/fonts/SegoeUI-Semibold.woff2 +0 -0
  37. package/fonts/SegoeUI.woff2 +0 -0
  38. package/iframe/js/amp.DllX-Im0.js +0 -1
  39. package/js/amplitude.min.js +0 -10859
  40. package/js/sourcebuster.min.js +0 -672
  41. package/manifest.json +0 -17
  42. package/npm-publish.manifest.json +0 -51
  43. package/static/core/23546a64.js +0 -925
  44. package/static/core/35ad3ae5.js +0 -3150
  45. package/static/core/36bf6931.js +0 -2119
  46. package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
  47. package/static/media/image-editor/images/samples/sample1.jpg +0 -0
  48. package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
  49. package/static/media/image-editor/images/samples/sample2.jpg +0 -0
  50. package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
  51. package/static/media/image-editor/images/samples/sample3.jpg +0 -0
  52. package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
  53. package/static/media/image-editor/images/samples/sample4.json +0 -871
  54. package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
  55. package/test-font.otf +0 -0
  56. package/test-font.ttf +0 -0
  57. package/test-font.woff2 +0 -0
  58. package/tsconfig.json +0 -14
  59. package/two_step_headless_plugin.html +0 -558
  60. /package/iframe/{iframe-eblock.77131b3d.html → iframe-eblock.0a682f7d.html} +0 -0
  61. /package/iframe/{iframe.77131b3d.html → iframe.0a682f7d.html} +0 -0
@@ -1,13 +1,13 @@
1
- __useblocks__.define("static/core/b9b92e01.js", [
1
+ __useblocks__.define("static/core/6a3ea43c.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/ea6c5c93.js",
6
- "static/core/23546a64.js",
7
- "static/core/3f22a9d32.js",
8
- "static/core/63206e112.js"
9
- ], function(_, I, N) {
10
- const h = _("./ea6c5c93.js"), P = _("./23546a64.js"), S = _("./3f22a9d32.js"), f = _("./63206e112.js");
5
+ "static/core/7cff1d56.js",
6
+ "static/core/87de8255.js",
7
+ "static/core/909c874d2.js",
8
+ "static/core/496a28e52.js"
9
+ ], function(_, I, z) {
10
+ const h = _("./7cff1d56.js"), P = _("./87de8255.js"), S = _("./909c874d2.js"), f = _("./496a28e52.js");
11
11
  var F;
12
12
  (function(d) {
13
13
  function e(a, i, n = (s, o) => s === o) {
@@ -133,10 +133,10 @@ __useblocks__.define("static/core/b9b92e01.js", [
133
133
  function O(d) {
134
134
  return typeof d?.watchThumbnail == "function";
135
135
  }
136
- var T = 200, B = class m {
136
+ var T = 200, N = class m {
137
137
  pathMode = !1;
138
138
  rootId = "";
139
- trashPath = f.Bi;
139
+ trashPath = f.Yi;
140
140
  useSoftDelete = !1;
141
141
  api;
142
142
  projectId;
@@ -148,13 +148,13 @@ __useblocks__.define("static/core/b9b92e01.js", [
148
148
  thumbWatchers = new Map();
149
149
  resolveSystemFolderByPath;
150
150
  constructor(e) {
151
- this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? S.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.Ui({ Trash: {
152
- id: f.Bi,
151
+ this.api = e.restApi, this.projectId = e.projectId, this.i18n = e.i18n ?? S.defaultI18nContext, this.appConfig = e.appConfig, this.isStandalone = e.isStandalone, this.onIndexingStateChange = e.onIndexingStateChange, this.resolveSystemFolderByPath = f.Qi({ Trash: {
152
+ id: f.Yi,
153
153
  folderId: this.rootId
154
154
  } });
155
155
  }
156
156
  async getItems(e) {
157
- const t = e.folderId === f.Bi;
157
+ const t = e.folderId === f.Yi;
158
158
  if (e.itemType === "folder") return { items: await this.listFolders(e.folderId, t) };
159
159
  const r = e.itemType === "all" && (e.page ?? 1) <= 1, [a, i] = await Promise.all([r ? this.listFolders(e.folderId, t, e.search) : [], this.listFiles(e, t)]);
160
160
  return {
@@ -209,7 +209,7 @@ __useblocks__.define("static/core/b9b92e01.js", [
209
209
  throw s;
210
210
  }
211
211
  this.onIndexingStateChange?.(!!i.data.indexing);
212
- const n = t ? f.Bi : this.normalizeFolderId(e.folderId) ?? this.rootId;
212
+ const n = t ? f.Yi : this.normalizeFolderId(e.folderId) ?? this.rootId;
213
213
  return {
214
214
  items: (i.data.data ?? []).map((s) => this.mapFile(s, n)),
215
215
  pagination: this.mapPagination(i.data.page, r)
@@ -454,7 +454,7 @@ __useblocks__.define("static/core/b9b92e01.js", [
454
454
  success: !0,
455
455
  detailed: []
456
456
  };
457
- const r = e.filter((s) => s.folderId === f.Bi), a = e.filter((s) => s.folderId !== f.Bi), i = [];
457
+ const r = e.filter((s) => s.folderId === f.Yi), a = e.filter((s) => s.folderId !== f.Yi), i = [];
458
458
  if (r.length > 0) {
459
459
  const s = await this.api.trash.restoreCreate({
460
460
  project_id: this.projectId,
@@ -660,7 +660,7 @@ __useblocks__.define("static/core/b9b92e01.js", [
660
660
  }), Object.defineProperty(I, "FileManagerRestApiProviderV2", {
661
661
  enumerable: !0,
662
662
  get: function() {
663
- return B;
663
+ return N;
664
664
  }
665
665
  }), Object.defineProperty(I, "arrays", {
666
666
  enumerable: !0,
@@ -1,16 +1,16 @@
1
- __useblocks__.define("static/core/e02024fb2.js", [
1
+ __useblocks__.define("static/core/6fc5508e2.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
5
  "static/core/df237243.js",
6
- "static/core/ce9be2ec2.js",
6
+ "static/core/f2b0c97b2.js",
7
7
  "static/core/92871f5a2.js",
8
8
  "react",
9
9
  "antd",
10
10
  "react/jsx-runtime",
11
11
  "@ant-design/icons"
12
- ], function(U, N, Ye) {
13
- const te = U("./df237243.js"), G = U("./ce9be2ec2.js"), me = U("./92871f5a2.js");
12
+ ], function(U, O, Ge) {
13
+ const te = U("./df237243.js"), X = U("./f2b0c97b2.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/e02024fb2.js", [
302
302
  strokeLinecap: "round",
303
303
  strokeLinejoin: "round"
304
304
  })]
305
- }), be = () => (0, t.jsx)("svg", {
305
+ }), Ve = () => (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/e02024fb2.js", [
373
373
  ...e
374
374
  }),
375
375
  StockBigIcon: (e) => (0, t.jsx)(c.default, {
376
- component: be,
376
+ component: Ve,
377
377
  ...e
378
378
  })
379
379
  }, ne = () => {
380
- let { options: e } = G.V(), { customIcons: n } = e, r = s.default.useCallback((o, h, l) => {
380
+ let { options: e } = X.V(), { 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]);
@@ -413,29 +413,29 @@ __useblocks__.define("static/core/e02024fb2.js", [
413
413
  ThumbsUpIcon: (o) => r("thumbsUp", oe, o),
414
414
  getCustomIcon: r
415
415
  }), [r]);
416
- }, X = {
416
+ }, Y = {
417
417
  "em-filemanager": "em-filemanager",
418
418
  emFilemanager: "em-filemanager",
419
419
  noFilesContainer: "noFilesContainer",
420
420
  noFilesImage: "noFilesImage",
421
421
  noFilesTitle: "noFilesTitle",
422
422
  noFilesDescription: "noFilesDescription"
423
- }, Ve = () => {
424
- let { t: e } = G.Nn(), { NoFilesIcon: n } = ne();
423
+ }, be = () => {
424
+ let { t: e } = X.Pn(), { NoFilesIcon: n } = ne();
425
425
  return (0, t.jsxs)("div", {
426
- className: X.noFilesContainer,
426
+ className: Y.noFilesContainer,
427
427
  children: [
428
428
  (0, t.jsx)(n, {
429
- className: X.noFilesImage,
429
+ className: Y.noFilesImage,
430
430
  size: 48,
431
431
  strokeWidth: 1.4
432
432
  }),
433
433
  (0, t.jsx)("h2", {
434
- className: X.noFilesTitle,
434
+ className: Y.noFilesTitle,
435
435
  children: e("There's nothing here")
436
436
  }),
437
437
  (0, t.jsx)("div", {
438
- className: X.noFilesDescription,
438
+ className: Y.noFilesDescription,
439
439
  children: e("Try using a different search query.")
440
440
  })
441
441
  ]
@@ -465,7 +465,7 @@ __useblocks__.define("static/core/e02024fb2.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, 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) => ({
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) => ({
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/e02024fb2.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, b = 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, V = Math.min(e.length - 1, (I + 1) * v - 1), S = Math.max(0, f - I - 1);
493
493
  return {
494
- rows: e.slice(m, b + 1),
494
+ rows: e.slice(m, V + 1),
495
495
  startIndex: m,
496
- endIndex: b,
496
+ endIndex: V,
497
497
  topOffset: w * i,
498
498
  bottomOffset: S * i,
499
499
  totalCount: e.length
@@ -528,7 +528,7 @@ __useblocks__.define("static/core/e02024fb2.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 } = G.Nn(), { options: b } = G.V(), { config: S } = b, { ExpandArrowIcon: D, CollapseArrowIcon: B, CollapseFolderIcon: V, ExpandFolderIcon: H, EmptyFolderIcon: _ } = ne(), F = (0, s.useCallback)((x) => {
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) => {
532
532
  let M = [], g = (E) => {
533
533
  E.forEach((A) => {
534
534
  M.push(A.key), A.children && g(A.children);
@@ -541,7 +541,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
541
541
  return F(x);
542
542
  }
543
543
  return [];
544
- }), u = d === void 0 ? R : d, O = W === void 0 ? p : W;
544
+ }), u = d === void 0 ? R : d, N = W === void 0 ? p : W;
545
545
  (0, s.useEffect)(() => {
546
546
  if (I || w === "selection" && I) {
547
547
  let x = o(), M = F(x);
@@ -558,7 +558,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
558
558
  let M = x[0];
559
559
  !M || M === "empty" || M.endsWith("_input") || n?.(x);
560
560
  }, [n]), k = (0, s.useCallback)(async (x, M) => {
561
- if (O(x), r?.(x, M), S?.folderTreeLoading !== "lazy") return;
561
+ if (N(x), r?.(x, M), S?.folderTreeLoading !== "lazy") return;
562
562
  let g = M?.node?.key || void 0;
563
563
  if (!(!g || g === "folders")) try {
564
564
  await h?.(g);
@@ -567,7 +567,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
567
567
  S?.folderTreeLoading,
568
568
  h,
569
569
  r,
570
- O
570
+ N
571
571
  ]), y = (0, s.useCallback)(() => {
572
572
  let x = o(), M = (a) => a.filter((Z) => Z.key !== "Trash").map((Z) => ({
573
573
  ...Z,
@@ -577,9 +577,9 @@ __useblocks__.define("static/core/e02024fb2.js", [
577
577
  C([a]);
578
578
  return;
579
579
  }
580
- u.includes(a) && e === a ? O(u.filter((Z) => Z !== a)) : u.includes(a) || O([...u, a]), C([a]);
580
+ u.includes(a) && e === a ? N(u.filter((Z) => Z !== a)) : u.includes(a) || N([...u, a]), C([a]);
581
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, Y = 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, {
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, {
583
583
  size: 20,
584
584
  strokeWidth: S?.iconStrokeWidth
585
585
  }) : (0, t.jsx)(_, {
@@ -602,8 +602,8 @@ __useblocks__.define("static/core/e02024fb2.js", [
602
602
  })]
603
603
  }), i && (0, t.jsx)("div", {
604
604
  className: P.fileCount,
605
- title: Y === null ? void 0 : `${Y} ${m(Y === 1 ? "item" : "items")}`,
606
- children: Y === null ? "—" : Y
605
+ title: G === null ? void 0 : `${G} ${m(G === 1 ? "item" : "items")}`,
606
+ children: G === null ? "—" : G
607
607
  })]
608
608
  });
609
609
  return {
@@ -619,7 +619,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
619
619
  },
620
620
  children: (0, t.jsxs)("div", {
621
621
  className: P.foldersTitleItem,
622
- children: [(0, t.jsx)(le ? V : H, {
622
+ children: [(0, t.jsx)(le ? b : H, {
623
623
  size: 20,
624
624
  strokeWidth: S?.iconStrokeWidth
625
625
  }), (0, t.jsx)("span", {
@@ -675,7 +675,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
675
675
  }, [
676
676
  o,
677
677
  u,
678
- V,
678
+ b,
679
679
  S?.iconStrokeWidth,
680
680
  H,
681
681
  m,
@@ -687,7 +687,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
687
687
  l,
688
688
  j,
689
689
  w,
690
- O
690
+ N
691
691
  ]), J = (0, s.useMemo)(() => y(), [y]);
692
692
  return (0, t.jsx)(z.Tree, {
693
693
  className: `${P.folderTree} ${P.folderMenu} ${f}`,
@@ -775,14 +775,14 @@ __useblocks__.define("static/core/e02024fb2.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: (b) => {
779
- b.preventDefault(), b.stopPropagation(), v(j), w.setFieldsValue({
778
+ handleAddFolder: (V) => {
779
+ V.preventDefault(), V.stopPropagation(), v(j), w.setFieldsValue({
780
780
  folderName: l("New folder"),
781
781
  targetFolder: j
782
782
  });
783
783
  },
784
- handleSelectFolder: (b) => {
785
- b.preventDefault(), b.stopPropagation(), I([j]).then(() => m(j));
784
+ handleSelectFolder: (V) => {
785
+ V.preventDefault(), V.stopPropagation(), I([j]).then(() => m(j));
786
786
  }
787
787
  };
788
788
  }, [l]);
@@ -790,9 +790,9 @@ __useblocks__.define("static/core/e02024fb2.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, b = f(j, I), S = Array.isArray(e) ? e : [], D = (F = null, R = new Set()) => S.filter((p) => {
794
- let u = F === null && !p.parentId, O = p.parentId === F;
795
- return u || O;
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) => {
794
+ let u = F === null && !p.parentId, N = p.parentId === F;
795
+ return u || N;
796
796
  }).map((p) => {
797
797
  if (R.has(p.id)) return {
798
798
  key: p.id,
@@ -800,16 +800,16 @@ __useblocks__.define("static/core/e02024fb2.js", [
800
800
  };
801
801
  let u = new Set(R);
802
802
  u.add(p.id);
803
- let O = D(p.id, u), { handleAddFolder: C, handleSelectFolder: k } = d({
803
+ let N = D(p.id, u), { handleAddFolder: C, handleSelectFolder: k } = d({
804
804
  folderId: p.id,
805
805
  targetForm: j,
806
806
  onTreeSelect: w,
807
807
  onComplete: I
808
808
  }), y = i === p.id ? [{
809
809
  key: `${p.id}_input`,
810
- label: b(p.id),
810
+ label: V(p.id),
811
811
  icon: null
812
- }, ...O] : O;
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", {
@@ -824,14 +824,14 @@ __useblocks__.define("static/core/e02024fb2.js", [
824
824
  })] }),
825
825
  children: y
826
826
  };
827
- }), B = D(), { handleAddFolder: V, handleSelectFolder: H } = d({
827
+ }), B = D(), { handleAddFolder: b, 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: b("folders"),
834
+ label: V("folders"),
835
835
  icon: null
836
836
  }, ...B] : B;
837
837
  return [{
@@ -839,7 +839,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
839
839
  label: (0, t.jsxs)(t.Fragment, { children: [l("Folders"), n !== "folders" && n !== null && (0, t.jsxs)("div", {
840
840
  className: `${K.folderToolsField} folder-tools-field`,
841
841
  children: [(0, t.jsx)(z.Button, {
842
- onClick: V,
842
+ onClick: b,
843
843
  children: "+"
844
844
  }), (0, t.jsx)(z.Button, {
845
845
  onClick: H,
@@ -889,9 +889,9 @@ __useblocks__.define("static/core/e02024fb2.js", [
889
889
  }
890
890
  };
891
891
  }
892
- var Ne = 240, Oe = 240, Ze = 20, Ae = 800, ze = 1200, _e = 40, ie = 1200, $e = 800;
893
- function De({ items: e, getId: n, getPreviewSrc: r, getAltText: o, getWidth: h, getHeight: l, layoutMode: i = "masonry", minColumnWidth: v = Ne, estimatedItemHeight: f = Oe, gap: d = Ze, overscanPx: W = Ae, prefetchThresholdPx: j = ze, resolveColumnCount: w, virtualizationThreshold: I = _e }) {
894
- let [m, b] = (0, s.useState)({
892
+ var Oe = 240, Ne = 240, Ze = 20, Ae = 800, ze = 1200, _e = 40, ie = 1200, $e = 800;
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)({
895
895
  scrollTop: 0,
896
896
  viewportHeight: $e,
897
897
  viewportWidth: ie,
@@ -914,7 +914,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
914
914
  v,
915
915
  w,
916
916
  m.viewportWidth
917
- ]), V = (0, s.useMemo)(() => {
917
+ ]), b = (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/e02024fb2.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 ? V / 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 ? b / g : f;
928
928
  if (i === "grid") {
929
- let $ = Math.floor(y / B), Q = y % B, a = $ * (E + d), Z = Q * (V + d);
929
+ let $ = Math.floor(y / B), Q = y % B, a = $ * (E + d), Z = Q * (b + d);
930
930
  k.push({
931
931
  index: y,
932
932
  top: a,
933
933
  left: Z,
934
- width: V,
934
+ width: b,
935
935
  height: E,
936
936
  bottom: a + E
937
937
  });
@@ -939,12 +939,12 @@ __useblocks__.define("static/core/e02024fb2.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 * (V + d);
942
+ let q = C[A], le = A * (b + d);
943
943
  C[A] = q + E + d, k.push({
944
944
  index: y,
945
945
  top: q,
946
946
  left: le,
947
- width: V,
947
+ width: b,
948
948
  height: E,
949
949
  bottom: q + E
950
950
  });
@@ -955,7 +955,7 @@ __useblocks__.define("static/core/e02024fb2.js", [
955
955
  };
956
956
  }, [
957
957
  B,
958
- V,
958
+ b,
959
959
  f,
960
960
  d,
961
961
  l,
@@ -985,85 +985,85 @@ __useblocks__.define("static/core/e02024fb2.js", [
985
985
  I
986
986
  ])
987
987
  }), R = (C) => {
988
- b((k) => k.scrollTop === C.scrollTop && k.viewportHeight === C.viewportHeight && k.viewportWidth === C.viewportWidth && k.scrollHeight === C.scrollHeight ? k : C);
988
+ V((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: V,
995
+ width: b,
996
996
  height: f,
997
997
  bottom: f
998
998
  }
999
- })), u = F.containerHeight ?? H.containerHeight, O = u > 0 && m.scrollTop + m.viewportHeight >= u - j;
999
+ })), u = F.containerHeight ?? H.containerHeight, N = u > 0 && m.scrollTop + m.viewportHeight >= u - j;
1000
1000
  return {
1001
1001
  rowModels: _,
1002
1002
  renderRows: F.rows,
1003
1003
  renderWindow: F,
1004
1004
  positionedItems: p,
1005
1005
  containerHeight: u,
1006
- isNearEnd: O,
1006
+ isNearEnd: N,
1007
1007
  viewportMetrics: m,
1008
1008
  handleViewportChange: R
1009
1009
  };
1010
1010
  }
1011
- Object.defineProperty(N, "J", {
1011
+ Object.defineProperty(O, "J", {
1012
1012
  enumerable: !0,
1013
1013
  get: function() {
1014
- return Ve;
1014
+ return be;
1015
1015
  }
1016
- }), Object.defineProperty(N, "K", {
1016
+ }), Object.defineProperty(O, "K", {
1017
1017
  enumerable: !0,
1018
1018
  get: function() {
1019
1019
  return ne;
1020
1020
  }
1021
- }), Object.defineProperty(N, "Q", {
1021
+ }), Object.defineProperty(O, "Q", {
1022
1022
  enumerable: !0,
1023
1023
  get: function() {
1024
1024
  return K;
1025
1025
  }
1026
- }), Object.defineProperty(N, "X", {
1026
+ }), Object.defineProperty(O, "X", {
1027
1027
  enumerable: !0,
1028
1028
  get: function() {
1029
1029
  return ue;
1030
1030
  }
1031
- }), Object.defineProperty(N, "a", {
1031
+ }), Object.defineProperty(O, "a", {
1032
1032
  enumerable: !0,
1033
1033
  get: function() {
1034
1034
  return ce;
1035
1035
  }
1036
- }), Object.defineProperty(N, "a$1", {
1036
+ }), Object.defineProperty(O, "a$1", {
1037
1037
  enumerable: !0,
1038
1038
  get: function() {
1039
1039
  return ae;
1040
1040
  }
1041
- }), Object.defineProperty(N, "ge", {
1041
+ }), Object.defineProperty(O, "ge", {
1042
1042
  enumerable: !0,
1043
1043
  get: function() {
1044
1044
  return De;
1045
1045
  }
1046
- }), Object.defineProperty(N, "i", {
1046
+ }), Object.defineProperty(O, "i", {
1047
1047
  enumerable: !0,
1048
1048
  get: function() {
1049
1049
  return he;
1050
1050
  }
1051
- }), Object.defineProperty(N, "ie", {
1051
+ }), Object.defineProperty(O, "ie", {
1052
1052
  enumerable: !0,
1053
1053
  get: function() {
1054
1054
  return Be;
1055
1055
  }
1056
- }), Object.defineProperty(N, "oe", {
1056
+ }), Object.defineProperty(O, "oe", {
1057
1057
  enumerable: !0,
1058
1058
  get: function() {
1059
1059
  return We;
1060
1060
  }
1061
- }), Object.defineProperty(N, "s", {
1061
+ }), Object.defineProperty(O, "s", {
1062
1062
  enumerable: !0,
1063
1063
  get: function() {
1064
1064
  return re;
1065
1065
  }
1066
- }), Object.defineProperty(N, "s$1", {
1066
+ }), Object.defineProperty(O, "s$1", {
1067
1067
  enumerable: !0,
1068
1068
  get: function() {
1069
1069
  return oe;