useblocks 1.1.65 → 1.1.71

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 (195) hide show
  1. package/README.md +2 -0
  2. package/assets/images/project-settings-inbox-envelope.png +0 -0
  3. package/assets/images/project-settings-plugin-support-avatar.png +0 -0
  4. package/fileManager.d.ts +519 -0
  5. package/iframe/css/sandbox-dark.css +1 -1
  6. package/iframe/css/sandbox-darktheme.css +1 -1
  7. package/iframe/css/sandbox-light.css +1 -1
  8. package/iframe/css/sandbox.css +112 -89
  9. package/iframe/js/amp.DllX-Im0.js +1 -0
  10. package/iframe/js/iframe-eblock.js +1 -1
  11. package/iframe/js/iframe.js +1 -1
  12. package/iframe/js/rules.4N5s3OV-.js +1 -1
  13. package/npm-publish.manifest.json +7 -7
  14. package/package.json +4 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +1 -1
  16. package/static/core/{d2f93451.js → 0e53b7b5.js} +3 -3
  17. package/static/core/0fe242f22.js +3251 -0
  18. package/static/core/{e9ff66762.js → 10f0dad9.js} +3 -3
  19. package/static/core/{a79573972.js → 115218a42.js} +3 -3
  20. package/static/core/{d6b377d3.js → 1202bfdd.js} +3 -3
  21. package/static/core/{8d4aa933.js → 16c2d0e42.js} +6 -6
  22. package/static/core/{8aa09f022.js → 1ae75b972.js} +3 -3
  23. package/static/core/{e7c982c02.js → 2011fc95.js} +3 -3
  24. package/static/core/{925a1cfd2.js → 211482892.js} +3 -3
  25. package/static/core/222d29d9.js +468 -0
  26. package/static/core/{f8c9371e.js → 23546a64.js} +238 -257
  27. package/static/core/{6e177eb6.js → 26a1af95.js} +3 -3
  28. package/static/core/{9d8297c7.js → 27f62a39.js} +3 -3
  29. package/static/core/{fb834fb22.js → 288ca9522.js} +6 -6
  30. package/static/core/{45da436c.js → 28e9d3ff.js} +3 -3
  31. package/static/core/{1c82c2d52.js → 2bd2da322.js} +3 -3
  32. package/static/core/{712b11ba.js → 2c65c059.js} +3 -3
  33. package/static/core/{1d2a32d02.js → 2f216fd4.js} +4 -4
  34. package/static/core/{45fcca4f2.js → 2fd502bd2.js} +3 -3
  35. package/static/core/{b303b2a4.js → 34e0b0dc.js} +3 -3
  36. package/static/core/{b22e5dd5.js → 35ad3ae5.js} +173 -173
  37. package/static/core/{8e6e6aaa2.js → 35e0d55e.js} +3 -3
  38. package/static/core/36bf6931.js +2119 -0
  39. package/static/core/{a953bf24.js → 375e98282.js} +3 -3
  40. package/static/core/{40d6d494.js → 38302247.js} +3 -3
  41. package/static/core/{99fd0b342.js → 38e879e9.js} +3 -3
  42. package/static/core/{b283b340.js → 39a68c91.js} +3 -3
  43. package/static/core/{68edd344.js → 3bbe4800.js} +3 -3
  44. package/static/core/{43108a122.js → 3bda5ccf2.js} +4 -4
  45. package/static/core/{220b2c2a.js → 3c1ef117.js} +7 -7
  46. package/static/core/{9982be76.js → 3f22a9d32.js} +2018 -1808
  47. package/static/core/{8b8811812.js → 412f0d1c.js} +3 -3
  48. package/static/core/{601b4e7b.js → 46959096.js} +3 -3
  49. package/static/core/{9d1a7a182.js → 46abec11.js} +3 -3
  50. package/static/core/{292fe55d2.js → 4740c91e2.js} +3 -3
  51. package/static/core/{c7588e5f.js → 48560c89.js} +387 -385
  52. package/static/core/{1d173e97.js → 48d0a8bd2.js} +3 -3
  53. package/static/core/{af691d1f.js → 490f59592.js} +21 -21
  54. package/static/core/{205266672.js → 4953bced.js} +3 -3
  55. package/static/core/{668ae858.js → 4b59ab9f.js} +3 -3
  56. package/static/core/{664c38f8.js → 4bc74a4f.js} +3 -3
  57. package/static/core/{8b28b024.js → 508bcaba.js} +5 -5
  58. package/static/core/513594a8.js +583 -0
  59. package/static/core/54eadcf42.js +39 -0
  60. package/static/core/{da4b0874.js → 578fcc88.js} +3 -3
  61. package/static/core/{43764f5b.js → 585259872.js} +189 -181
  62. package/static/core/{cee370ea.js → 5b64d3ce2.js} +8 -8
  63. package/static/core/{b450a16a.js → 5e082e16.js} +59 -59
  64. package/static/core/{bc1a9cb2.js → 5e7c6c9c.js} +4 -4
  65. package/static/core/{bc557d9c.js → 60dcae06.js} +6 -6
  66. package/static/core/{fa23ae7b.js → 616e99a4.js} +3 -3
  67. package/static/core/{66f4dea3.js → 62c13c96.js} +3 -3
  68. package/static/core/{d892d2c82.js → 62f33dda.js} +3 -3
  69. package/static/core/{9c236031.js → 62fd385b.js} +3 -3
  70. package/static/core/{958e85b5.js → 6313868b.js} +3 -3
  71. package/static/core/63206e112.js +8956 -0
  72. package/static/core/{67e3306c.js → 68ec11c8.js} +640 -638
  73. package/static/core/{951b9e3d.js → 6ca6133e.js} +9 -9
  74. package/static/core/6e2a0152.js +61 -0
  75. package/static/core/{656a0edc2.js → 6ee1838f2.js} +3 -3
  76. package/static/core/{b09300472.js → 7527fdc92.js} +3 -3
  77. package/static/core/{d8df6d5a.js → 75c2f232.js} +8 -8
  78. package/static/core/{49a037b02.js → 76c0586a2.js} +3 -3
  79. package/static/core/{2d8a7133.js → 76ea88d3.js} +5 -5
  80. package/static/core/{42e9eb802.js → 77c2efbb.js} +3 -3
  81. package/static/core/{5d0c727e.js → 7d07bfac.js} +3 -3
  82. package/static/core/{d46cb9672.js → 7d19dd28.js} +4 -4
  83. package/static/core/{2d13936a.js → 7ec8e1fc.js} +3 -3
  84. package/static/core/{9954153b2.js → 84326fa6.js} +3 -3
  85. package/static/core/{c52e08d6.js → 86515d932.js} +4 -4
  86. package/static/core/{a97bdbc8.js → 879bd3b1.js} +3 -3
  87. package/static/core/{e47711662.js → 8a061db42.js} +5 -5
  88. package/static/core/{4b0f73af.js → 8ed78147.js} +3 -3
  89. package/static/core/{1cbab2af2.js → 8ef06b232.js} +10 -10
  90. package/static/core/{75e8d4672.js → 8fafd12f2.js} +3 -3
  91. package/static/core/{a898230f.js → 8fbde229.js} +3 -3
  92. package/static/core/{f61e3e55.js → 92871f5a2.js} +7 -7
  93. package/static/core/{a83b01cb2.js → 92d1a0c9.js} +519 -523
  94. package/static/core/9355751a.js +126 -0
  95. package/static/core/{95d1d1aa2.js → 93b3c668.js} +3 -3
  96. package/static/core/{873142eb.js → 9933d0ff2.js} +3 -3
  97. package/static/core/{96417e98.js → 9a0c05f1.js} +4 -4
  98. package/static/core/9ab1c444.js +11452 -0
  99. package/static/core/{c8cb5d88.js → 9c09ec92.js} +7 -7
  100. package/static/core/{31ba662c2.js → 9df9c5262.js} +5 -5
  101. package/static/core/{85ea16112.js → a061a37c2.js} +3 -3
  102. package/static/core/{fff1a8622.js → a64e6cce2.js} +3 -3
  103. package/static/core/{f5d4906d2.js → a6d92d0b2.js} +5 -5
  104. package/static/core/{2e9906f7.js → a7518d2c.js} +3 -3
  105. package/static/core/{3c6f1d122.js → a8bed12d2.js} +3 -3
  106. package/static/core/{72e2612a2.js → a8f08cb22.js} +3 -3
  107. package/static/core/{6eb316fe2.js → ac70dfae2.js} +6 -6
  108. package/static/core/{89e7cc57.js → b8cecec8.js} +17 -17
  109. package/static/core/{a35fd8d22.js → b8ed4fd62.js} +13 -13
  110. package/static/core/{474c47d5.js → b9b92e01.js} +15 -15
  111. package/static/core/{b57c9e1f.js → bc703487.js} +3 -3
  112. package/static/core/{b165c6f6.js → bc9faec1.js} +134 -134
  113. package/static/core/{54e7728d.js → bf3a9be2.js} +5 -5
  114. package/static/core/c370a46c.js +683 -0
  115. package/static/core/{cf21862f.js → c3b45fb6.js} +1846 -1847
  116. package/static/core/{d54353e72.js → c56eaffd.js} +3 -3
  117. package/static/core/{f562fb51.js → c5cf470c.js} +3 -3
  118. package/static/core/{ceffb8322.js → c8a41267.js} +3 -3
  119. package/static/core/{19572306.js → cc251d11.js} +3 -3
  120. package/static/core/{84df1edd2.js → cce631ad.js} +3 -3
  121. package/static/core/{a88996b3.js → ce9be2ec2.js} +4965 -4753
  122. package/static/core/cf655a1a.js +33627 -0
  123. package/static/core/{ab86b06a.js → d3bbb05e.js} +3 -3
  124. package/static/core/{4a9bd173.js → d43babb9.js} +3 -3
  125. package/static/core/{1a415abd2.js → d46d10f12.js} +12 -12
  126. package/static/core/{7ad0031e2.js → d684b4ef2.js} +38 -38
  127. package/static/core/{affffdf2.js → d8835f5f.js} +7 -7
  128. package/static/core/{b04145ff2.js → db5fa769.js} +10 -10
  129. package/static/core/{d32841a32.js → dbc6f1e52.js} +3 -3
  130. package/static/core/{db4e60fa2.js → dc256ccd2.js} +3 -3
  131. package/static/core/{eaa635532.js → dc6fa7c1.js} +3 -3
  132. package/static/core/{4b9709dc.js → dcc518ef2.js} +3 -3
  133. package/static/core/df237243.js +56 -0
  134. package/static/core/{5ea0fc40.js → e02024fb2.js} +97 -97
  135. package/static/core/e199fd0a.js +49 -0
  136. package/static/core/{678594cd.js → e3a541ab.js} +3 -3
  137. package/static/core/{6f0d961a2.js → e4c6d91e2.js} +7 -7
  138. package/static/core/{c2a2dc79.js → e4d01015.js} +40775 -44576
  139. package/static/core/e57e8a80.js +22 -0
  140. package/static/core/{d7a9fd822.js → e6ac2e652.js} +3 -3
  141. package/static/core/{de2e2a02.js → e6c7e14f.js} +3 -3
  142. package/static/core/{81a5ffb92.js → e83c0b482.js} +3 -3
  143. package/static/core/{2515c6a52.js → e923d1aa2.js} +3 -3
  144. package/static/core/{b78a67b9.js → ea6c5c93.js} +3237 -3101
  145. package/static/core/{d85e34c42.js → ebd51d83.js} +3 -3
  146. package/static/core/{b54ad117.js → ec4f2d562.js} +3 -3
  147. package/static/core/{da25e8fc.js → f0364bbd2.js} +4 -4
  148. package/static/core/{b1b3186f.js → f51ccb57.js} +7 -7
  149. package/static/core/{7fd85aa0.js → f73bbe35.js} +5 -5
  150. package/static/core/{211ca90b.js → f85b09cb.js} +3 -3
  151. package/static/core/{3ab5d1a4.js → f9aaa4b7.js} +7 -7
  152. package/static/core/{4c5c889d.js → fc962c9a2.js} +5 -5
  153. package/static/core/{fd9034a2.js → fd7386aa2.js} +37 -37
  154. package/static/core/{62dd04ca2.js → fe4feb362.js} +3 -3
  155. package/static/core/{f3b4a3102.js → ffcf92522.js} +3 -3
  156. package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
  157. package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
  158. package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
  159. package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
  160. package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
  161. package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
  162. package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
  163. package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
  164. package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
  165. package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
  166. package/static/umd-runtime/ui-kit.js +1638 -1416
  167. package/test-font.otf +0 -0
  168. package/test-font.ttf +0 -0
  169. package/test-font.woff2 +0 -0
  170. package/two_step_headless_plugin.html +1 -1
  171. package/ui-kit/index.js +1317 -1104
  172. package/{useblocks-core.bfe3fe29.js → useblocks-core.77131b3d.js} +8 -8
  173. package/useblocks-esm.js +6 -3
  174. package/useblocks-po.77131b3d.js +5945 -0
  175. package/useblocks.d.ts +36 -525
  176. package/useblocks.js +3 -3
  177. package/vite/index.cjs +4 -4
  178. package/vite/index.d.ts +4 -4
  179. package/vite/index.js +4 -4
  180. package/vite/pluginDev/index.cjs +2 -2
  181. package/vite/pluginDev/index.d.ts +12 -12
  182. package/vite/pluginDev/index.js +2 -2
  183. package/webpack/pluginDev/index.d.ts +12 -12
  184. package/iframe/js/amp.BP7EklKo.js +0 -1
  185. package/static/core/2047d7f8.js +0 -12294
  186. package/static/core/63b7b25e.js +0 -68
  187. package/static/core/6dbdca2f.js +0 -2089
  188. package/static/core/8460710a.js +0 -27
  189. package/static/core/86577bae.js +0 -666
  190. package/static/core/97aafd5d.js +0 -43109
  191. package/static/core/aa783b9b.js +0 -124
  192. package/static/core/db999761.js +0 -465
  193. package/static/core/dc19c4fa.js +0 -93052
  194. /package/iframe/{iframe-eblock.bfe3fe29.html → iframe-eblock.77131b3d.html} +0 -0
  195. /package/iframe/{iframe.bfe3fe29.html → iframe.77131b3d.html} +0 -0
@@ -1,19 +1,19 @@
1
- __useblocks__.define("static/core/5ea0fc40.js", [
1
+ __useblocks__.define("static/core/e02024fb2.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/63b7b25e.js",
6
- "static/core/a88996b3.js",
7
- "static/core/f61e3e55.js",
5
+ "static/core/df237243.js",
6
+ "static/core/ce9be2ec2.js",
7
+ "static/core/92871f5a2.js",
8
8
  "react",
9
9
  "antd",
10
10
  "react/jsx-runtime",
11
11
  "@ant-design/icons"
12
- ], function(U, E, Ge) {
13
- const te = U("./63b7b25e.js"), J = U("./a88996b3.js"), me = U("./f61e3e55.js");
12
+ ], function(U, N, Ye) {
13
+ const te = U("./df237243.js"), G = U("./ce9be2ec2.js"), me = U("./92871f5a2.js");
14
14
  let s = U("react"), T = te.__toESM(s, 1);
15
15
  s = te.__toESM(s);
16
- let _ = U("antd"), t = U("react/jsx-runtime"), c = U("@ant-design/icons");
16
+ let z = U("antd"), t = U("react/jsx-runtime"), c = U("@ant-design/icons");
17
17
  c = te.__toESM(c);
18
18
  var ae = ({ size: e = 24, color: n = "currentColor", ...r }) => T.createElement("svg", {
19
19
  viewBox: "0 0 24 24",
@@ -377,7 +377,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
377
377
  ...e
378
378
  })
379
379
  }, ne = () => {
380
- let { options: e } = J.z(), { customIcons: n } = e, r = s.default.useCallback((o, h, l) => {
380
+ let { options: e } = G.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,7 +413,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
413
413
  ThumbsUpIcon: (o) => r("thumbsUp", oe, o),
414
414
  getCustomIcon: r
415
415
  }), [r]);
416
- }, Q = {
416
+ }, X = {
417
417
  "em-filemanager": "em-filemanager",
418
418
  emFilemanager: "em-filemanager",
419
419
  noFilesContainer: "noFilesContainer",
@@ -421,21 +421,21 @@ __useblocks__.define("static/core/5ea0fc40.js", [
421
421
  noFilesTitle: "noFilesTitle",
422
422
  noFilesDescription: "noFilesDescription"
423
423
  }, Ve = () => {
424
- let { t: e } = J.Kt(), { NoFilesIcon: n } = ne();
424
+ let { t: e } = G.Nn(), { NoFilesIcon: n } = ne();
425
425
  return (0, t.jsxs)("div", {
426
- className: Q.noFilesContainer,
426
+ className: X.noFilesContainer,
427
427
  children: [
428
428
  (0, t.jsx)(n, {
429
- className: Q.noFilesImage,
429
+ className: X.noFilesImage,
430
430
  size: 48,
431
431
  strokeWidth: 1.4
432
432
  }),
433
433
  (0, t.jsx)("h2", {
434
- className: Q.noFilesTitle,
434
+ className: X.noFilesTitle,
435
435
  children: e("There's nothing here")
436
436
  }),
437
437
  (0, t.jsx)("div", {
438
- className: Q.noFilesDescription,
438
+ className: X.noFilesDescription,
439
439
  children: e("Try using a different search query.")
440
440
  })
441
441
  ]
@@ -465,7 +465,7 @@ __useblocks__.define("static/core/5ea0fc40.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), z = 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, 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;
@@ -476,7 +476,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
476
476
  topOffset: 0,
477
477
  bottomOffset: 0,
478
478
  totalCount: e.length,
479
- containerHeight: z,
479
+ containerHeight: _,
480
480
  positionedItems: F
481
481
  };
482
482
  }
@@ -528,9 +528,9 @@ __useblocks__.define("static/core/5ea0fc40.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 } = J.Kt(), { options: b } = J.z(), { config: S } = b, { ExpandArrowIcon: D, CollapseArrowIcon: B, CollapseFolderIcon: V, ExpandFolderIcon: H, EmptyFolderIcon: z } = ne(), F = (0, s.useCallback)((x) => {
532
- let M = [], g = (O) => {
533
- O.forEach((A) => {
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) => {
532
+ let M = [], g = (E) => {
533
+ E.forEach((A) => {
534
534
  M.push(A.key), A.children && g(A.children);
535
535
  });
536
536
  };
@@ -541,7 +541,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
541
541
  return F(x);
542
542
  }
543
543
  return [];
544
- }), u = d === void 0 ? R : d, N = W === void 0 ? p : W;
544
+ }), u = d === void 0 ? R : d, O = 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/5ea0fc40.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 (N(x), r?.(x, M), S?.folderTreeLoading !== "lazy") return;
561
+ if (O(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,28 +567,28 @@ __useblocks__.define("static/core/5ea0fc40.js", [
567
567
  S?.folderTreeLoading,
568
568
  h,
569
569
  r,
570
- N
570
+ O
571
571
  ]), y = (0, s.useCallback)(() => {
572
572
  let x = o(), M = (a) => a.filter((Z) => Z.key !== "Trash").map((Z) => ({
573
573
  ...Z,
574
574
  children: Z.children ? M(Z.children) : void 0
575
- })), g = j ? M(x) : x, O = (a) => {
575
+ })), g = j ? M(x) : x, E = (a) => {
576
576
  if (w === "selection") {
577
577
  C([a]);
578
578
  return;
579
579
  }
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), 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, {
580
+ u.includes(a) && e === a ? O(u.filter((Z) => Z !== a)) : u.includes(a) || O([...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, 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, {
583
583
  size: 20,
584
584
  strokeWidth: S?.iconStrokeWidth
585
- }) : (0, t.jsx)(z, {
585
+ }) : (0, t.jsx)(_, {
586
586
  size: 20,
587
587
  strokeWidth: S?.iconStrokeWidth
588
- }), Ke = (0, t.jsxs)("div", {
588
+ }), qe = (0, t.jsxs)("div", {
589
589
  className: `${P.folderItemContainer} folder-item-container`,
590
- onClick: (qe) => {
591
- qe.stopPropagation(), ee || O(a.key);
590
+ onClick: (Ke) => {
591
+ Ke.stopPropagation(), ee || E(a.key);
592
592
  },
593
593
  style: {
594
594
  opacity: ee ? .5 : 1,
@@ -602,20 +602,20 @@ __useblocks__.define("static/core/5ea0fc40.js", [
602
602
  })]
603
603
  }), i && (0, t.jsx)("div", {
604
604
  className: P.fileCount,
605
- title: G === null ? void 0 : `${G} ${m(G === 1 ? "item" : "items")}`,
606
- children: G === null ? "—" : G
605
+ title: Y === null ? void 0 : `${Y} ${m(Y === 1 ? "item" : "items")}`,
606
+ children: Y === null ? "—" : Y
607
607
  })]
608
608
  });
609
609
  return {
610
610
  key: a.key,
611
- title: Ke,
612
- children: a.children?.map(K),
611
+ title: qe,
612
+ children: a.children?.map(q),
613
613
  disabled: ee
614
614
  };
615
615
  }, le = u.includes("folders"), $ = (0, t.jsx)("div", {
616
616
  className: P.foldersTitle,
617
617
  onClick: (a) => {
618
- a.stopPropagation(), O("folders");
618
+ a.stopPropagation(), E("folders");
619
619
  },
620
620
  children: (0, t.jsxs)("div", {
621
621
  className: P.foldersTitleItem,
@@ -627,12 +627,12 @@ __useblocks__.define("static/core/5ea0fc40.js", [
627
627
  children: g[0]?.key === "folders" ? g[0].label : m("Folders")
628
628
  })]
629
629
  })
630
- }), Y = () => ({
630
+ }), Q = () => ({
631
631
  key: "Trash",
632
632
  title: (0, t.jsx)("div", {
633
633
  className: P.foldersTitle,
634
634
  onClick: (a) => {
635
- a.stopPropagation(), O("Trash");
635
+ a.stopPropagation(), E("Trash");
636
636
  },
637
637
  children: (0, t.jsxs)("div", {
638
638
  className: P.foldersTitleItem,
@@ -661,17 +661,17 @@ __useblocks__.define("static/core/5ea0fc40.js", [
661
661
  key: "folders",
662
662
  title: $,
663
663
  children: []
664
- }), a.push(Y()), a;
664
+ }), a.push(Q()), a;
665
665
  }
666
666
  if (g.length > 0 && g[0].key === "folders") {
667
667
  let a = [{
668
668
  key: "folders",
669
669
  title: $,
670
- children: g[0].children?.map(K)
670
+ children: g[0].children?.map(q)
671
671
  }];
672
- return j && a.push(Y()), a;
672
+ return j && a.push(Q()), a;
673
673
  }
674
- return g.map(K);
674
+ return g.map(q);
675
675
  }, [
676
676
  o,
677
677
  u,
@@ -683,24 +683,24 @@ __useblocks__.define("static/core/5ea0fc40.js", [
683
683
  C,
684
684
  i,
685
685
  v,
686
- z,
686
+ _,
687
687
  l,
688
688
  j,
689
689
  w,
690
- N
691
- ]), X = (0, s.useMemo)(() => y(), [y]);
692
- return (0, t.jsx)(_.Tree, {
690
+ O
691
+ ]), J = (0, s.useMemo)(() => y(), [y]);
692
+ return (0, t.jsx)(z.Tree, {
693
693
  className: `${P.folderTree} ${P.folderMenu} ${f}`,
694
694
  selectedKeys: e ? [e] : [],
695
695
  expandedKeys: u,
696
696
  onSelect: C,
697
697
  onExpand: k,
698
- treeData: X,
698
+ treeData: J,
699
699
  switcherIcon: ({ expanded: x }) => (0, t.jsx)(x ? B : D, {}),
700
700
  showLine: !1,
701
701
  focusable: w !== "selection"
702
702
  });
703
- }, q = {
703
+ }, K = {
704
704
  "em-filemanager": "em-filemanager",
705
705
  emFilemanager: "em-filemanager",
706
706
  formFooter: "formFooter",
@@ -720,31 +720,31 @@ __useblocks__.define("static/core/5ea0fc40.js", [
720
720
  closeIcon: "closeIcon",
721
721
  modalContentWithLoader: "modalContentWithLoader",
722
722
  modalLoaderOverlay: "modalLoaderOverlay"
723
- }, Pe = ({ folderId: e, activeFormField: n, EmptyFolderIcon: r, targetForm: o, handleModalOk: h, onComplete: l, setIsLoading: i, t: v }) => (0, t.jsx)(_.Form.Item, {
723
+ }, Pe = ({ folderId: e, activeFormField: n, EmptyFolderIcon: r, targetForm: o, handleModalOk: h, onComplete: l, setIsLoading: i, t: v }) => (0, t.jsx)(z.Form.Item, {
724
724
  className: `form-item form-item-moveto ${n === e ? "form-item_active" : ""}`,
725
725
  name: "folderName",
726
726
  rules: [{
727
727
  required: !0,
728
728
  validator: (f, d) => typeof d == "string" && d.trim().length === 0 ? Promise.reject(Error(v("Enter the name of the folder"))) : Promise.resolve()
729
729
  }],
730
- children: (0, t.jsx)(_.Input, {
730
+ children: (0, t.jsx)(z.Input, {
731
731
  className: "form-input",
732
732
  autoFocus: !0,
733
733
  onFocus: (f) => f.stopPropagation(),
734
734
  prefix: (0, t.jsx)(r, { style: { marginRight: 6 } }),
735
- suffix: (0, t.jsxs)(t.Fragment, { children: [(0, t.jsx)(_.Tooltip, {
735
+ suffix: (0, t.jsxs)(t.Fragment, { children: [(0, t.jsx)(z.Tooltip, {
736
736
  placement: "top",
737
737
  title: "Clean",
738
- children: (0, t.jsx)(_.Button, {
738
+ children: (0, t.jsx)(z.Button, {
739
739
  icon: (0, t.jsx)(c.CloseOutlined, { style: { fontSize: 10 } }),
740
- className: q.inputButtonClose,
740
+ className: K.inputButtonClose,
741
741
  type: "text",
742
742
  onClick: () => {
743
743
  o.setFieldsValue({ folderName: "" });
744
744
  }
745
745
  })
746
- }), (0, t.jsx)(_.Button, {
747
- className: q.inputButtonOk,
746
+ }), (0, t.jsx)(z.Button, {
747
+ className: K.inputButtonOk,
748
748
  type: "text",
749
749
  onClick: () => {
750
750
  i(!0), h(o).then((f) => {
@@ -791,8 +791,8 @@ __useblocks__.define("static/core/5ea0fc40.js", [
791
791
  setActiveFormField: v,
792
792
  generateMenuItemsFromFolders: s.default.useCallback((W) => {
793
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, N = p.parentId === F;
795
- return u || N;
794
+ let u = F === null && !p.parentId, O = p.parentId === F;
795
+ return u || O;
796
796
  }).map((p) => {
797
797
  if (R.has(p.id)) return {
798
798
  key: p.id,
@@ -800,7 +800,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
800
800
  };
801
801
  let u = new Set(R);
802
802
  u.add(p.id);
803
- let N = D(p.id, u), { handleAddFolder: C, handleSelectFolder: k } = d({
803
+ let O = D(p.id, u), { handleAddFolder: C, handleSelectFolder: k } = d({
804
804
  folderId: p.id,
805
805
  targetForm: j,
806
806
  onTreeSelect: w,
@@ -809,15 +809,15 @@ __useblocks__.define("static/core/5ea0fc40.js", [
809
809
  key: `${p.id}_input`,
810
810
  label: b(p.id),
811
811
  icon: null
812
- }, ...N] : N;
812
+ }, ...O] : O;
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: `${q.folderToolsField} folder-tools-field`,
817
- children: [(0, t.jsx)(_.Button, {
816
+ className: `${K.folderToolsField} folder-tools-field`,
817
+ children: [(0, t.jsx)(z.Button, {
818
818
  onClick: C,
819
819
  children: "+"
820
- }), (0, t.jsx)(_.Button, {
820
+ }), (0, t.jsx)(z.Button, {
821
821
  onClick: k,
822
822
  children: m
823
823
  })]
@@ -829,7 +829,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
829
829
  targetForm: j,
830
830
  onTreeSelect: w,
831
831
  onComplete: I
832
- }), z = i === "folders" ? [{
832
+ }), _ = i === "folders" ? [{
833
833
  key: "folders_input",
834
834
  label: b("folders"),
835
835
  icon: null
@@ -837,16 +837,16 @@ __useblocks__.define("static/core/5ea0fc40.js", [
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: `${q.folderToolsField} folder-tools-field`,
841
- children: [(0, t.jsx)(_.Button, {
840
+ className: `${K.folderToolsField} folder-tools-field`,
841
+ children: [(0, t.jsx)(z.Button, {
842
842
  onClick: V,
843
843
  children: "+"
844
- }), (0, t.jsx)(_.Button, {
844
+ }), (0, t.jsx)(z.Button, {
845
845
  onClick: H,
846
846
  children: m
847
847
  })]
848
848
  })] }),
849
- children: z
849
+ children: _
850
850
  }];
851
851
  }, [
852
852
  i,
@@ -861,7 +861,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
861
861
  function Se(e, n) {
862
862
  return !e || !n || e <= 0 || n <= 0 ? 1 : e / n;
863
863
  }
864
- function Oe(e) {
864
+ function Ee(e) {
865
865
  return {
866
866
  getId: e,
867
867
  buildSignature: (n, r) => {
@@ -889,14 +889,14 @@ __useblocks__.define("static/core/5ea0fc40.js", [
889
889
  }
890
890
  };
891
891
  }
892
- var Ee = 240, Ne = 240, Ze = 20, Ae = 800, _e = 1200, ze = 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 = Ee, estimatedItemHeight: f = Ne, gap: d = Ze, overscanPx: W = Ae, prefetchThresholdPx: j = _e, resolveColumnCount: w, virtualizationThreshold: I = ze }) {
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
894
  let [m, b] = (0, s.useState)({
895
895
  scrollTop: 0,
896
896
  viewportHeight: $e,
897
897
  viewportWidth: ie,
898
898
  scrollHeight: 0
899
- }), S = (0, s.useMemo)(() => Oe(n), [n]), D = (0, s.useMemo)(() => ({
899
+ }), S = (0, s.useMemo)(() => Ee(n), [n]), D = (0, s.useMemo)(() => ({
900
900
  getPreviewSrc: r,
901
901
  getAltText: o,
902
902
  getWidth: h,
@@ -924,29 +924,29 @@ __useblocks__.define("static/core/5ea0fc40.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 X = e[y], x = h?.(X), M = l?.(X), g = x && M && x > 0 && M > 0 ? x / M : void 0, O = 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 ? V / g : f;
928
928
  if (i === "grid") {
929
- let $ = Math.floor(y / B), Y = y % B, a = $ * (O + d), Z = Y * (V + 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
934
  width: V,
935
- height: O,
936
- bottom: a + O
935
+ height: E,
936
+ bottom: a + E
937
937
  });
938
938
  continue e;
939
939
  }
940
940
  let A = 0;
941
941
  for (let $ = 1; $ < C.length; $ += 1) C[$] < C[A] && (A = $);
942
- let K = C[A], le = A * (V + d);
943
- C[A] = K + O + d, k.push({
942
+ let q = C[A], le = A * (V + d);
943
+ C[A] = q + E + d, k.push({
944
944
  index: y,
945
- top: K,
945
+ top: q,
946
946
  left: le,
947
947
  width: V,
948
- height: O,
949
- bottom: K + O
948
+ height: E,
949
+ bottom: q + E
950
950
  });
951
951
  }
952
952
  return {
@@ -962,7 +962,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
962
962
  h,
963
963
  e,
964
964
  i
965
- ]), { rowModels: z, renderWindow: F } = ue({
965
+ ]), { rowModels: _, renderWindow: F } = ue({
966
966
  items: e,
967
967
  context: D,
968
968
  adapter: S,
@@ -986,7 +986,7 @@ __useblocks__.define("static/core/5ea0fc40.js", [
986
986
  ])
987
987
  }), R = (C) => {
988
988
  b((k) => k.scrollTop === C.scrollTop && k.viewportHeight === C.viewportHeight && k.viewportWidth === C.viewportWidth && k.scrollHeight === C.scrollHeight ? k : C);
989
- }, p = F.positionedItems ?? z.map((C, k) => ({
989
+ }, p = F.positionedItems ?? _.map((C, k) => ({
990
990
  row: C,
991
991
  layout: H.positionedItems[k] ?? {
992
992
  index: k,
@@ -996,74 +996,74 @@ __useblocks__.define("static/core/5ea0fc40.js", [
996
996
  height: f,
997
997
  bottom: f
998
998
  }
999
- })), u = F.containerHeight ?? H.containerHeight, N = u > 0 && m.scrollTop + m.viewportHeight >= u - j;
999
+ })), u = F.containerHeight ?? H.containerHeight, O = u > 0 && m.scrollTop + m.viewportHeight >= u - j;
1000
1000
  return {
1001
- rowModels: z,
1001
+ rowModels: _,
1002
1002
  renderRows: F.rows,
1003
1003
  renderWindow: F,
1004
1004
  positionedItems: p,
1005
1005
  containerHeight: u,
1006
- isNearEnd: N,
1006
+ isNearEnd: O,
1007
1007
  viewportMetrics: m,
1008
1008
  handleViewportChange: R
1009
1009
  };
1010
1010
  }
1011
- Object.defineProperty(E, "J", {
1011
+ Object.defineProperty(N, "J", {
1012
1012
  enumerable: !0,
1013
1013
  get: function() {
1014
1014
  return Ve;
1015
1015
  }
1016
- }), Object.defineProperty(E, "K", {
1016
+ }), Object.defineProperty(N, "K", {
1017
1017
  enumerable: !0,
1018
1018
  get: function() {
1019
1019
  return ne;
1020
1020
  }
1021
- }), Object.defineProperty(E, "Q", {
1021
+ }), Object.defineProperty(N, "Q", {
1022
1022
  enumerable: !0,
1023
1023
  get: function() {
1024
- return q;
1024
+ return K;
1025
1025
  }
1026
- }), Object.defineProperty(E, "X", {
1026
+ }), Object.defineProperty(N, "X", {
1027
1027
  enumerable: !0,
1028
1028
  get: function() {
1029
1029
  return ue;
1030
1030
  }
1031
- }), Object.defineProperty(E, "a", {
1031
+ }), Object.defineProperty(N, "a", {
1032
1032
  enumerable: !0,
1033
1033
  get: function() {
1034
1034
  return ce;
1035
1035
  }
1036
- }), Object.defineProperty(E, "a$1", {
1036
+ }), Object.defineProperty(N, "a$1", {
1037
1037
  enumerable: !0,
1038
1038
  get: function() {
1039
1039
  return ae;
1040
1040
  }
1041
- }), Object.defineProperty(E, "ge", {
1041
+ }), Object.defineProperty(N, "ge", {
1042
1042
  enumerable: !0,
1043
1043
  get: function() {
1044
1044
  return De;
1045
1045
  }
1046
- }), Object.defineProperty(E, "i", {
1046
+ }), Object.defineProperty(N, "i", {
1047
1047
  enumerable: !0,
1048
1048
  get: function() {
1049
1049
  return he;
1050
1050
  }
1051
- }), Object.defineProperty(E, "ie", {
1051
+ }), Object.defineProperty(N, "ie", {
1052
1052
  enumerable: !0,
1053
1053
  get: function() {
1054
1054
  return Be;
1055
1055
  }
1056
- }), Object.defineProperty(E, "oe", {
1056
+ }), Object.defineProperty(N, "oe", {
1057
1057
  enumerable: !0,
1058
1058
  get: function() {
1059
1059
  return We;
1060
1060
  }
1061
- }), Object.defineProperty(E, "s", {
1061
+ }), Object.defineProperty(N, "s", {
1062
1062
  enumerable: !0,
1063
1063
  get: function() {
1064
1064
  return re;
1065
1065
  }
1066
- }), Object.defineProperty(E, "s$1", {
1066
+ }), Object.defineProperty(N, "s$1", {
1067
1067
  enumerable: !0,
1068
1068
  get: function() {
1069
1069
  return oe;
@@ -0,0 +1,49 @@
1
+ __useblocks__.define("static/core/e199fd0a.js", [
2
+ "require",
3
+ "exports",
4
+ "module",
5
+ "react",
6
+ "antd",
7
+ "react/jsx-runtime"
8
+ ], function(n, a, o) {
9
+ n("react");
10
+ let c = n("antd"), i = n("react/jsx-runtime");
11
+ var s = ({ style: t = {}, wrap: r = !1 }) => (0, i.jsx)(c.Space, {
12
+ size: "large",
13
+ style: {
14
+ width: "100%",
15
+ height: "100%",
16
+ display: "flex",
17
+ justifyContent: "center",
18
+ alignItems: "center",
19
+ ...t
20
+ },
21
+ wrap: r,
22
+ children: (0, i.jsx)(c.Spin, {})
23
+ });
24
+ function u(t, r) {
25
+ return t ? r ? `${t.replace(/\/+$/, "")}/${r.replace(/^\/+/, "")}` : t : r;
26
+ }
27
+ function l(t) {
28
+ let r = typeof __webpack_public_path__ < "u" ? __webpack_public_path__ : "";
29
+ if (t && /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(t)) return t;
30
+ let e = u(r, t || "");
31
+ return e && !e.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(e) && (e = "/" + e), e;
32
+ }
33
+ function _(t, r) {
34
+ if (/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(r)) return r;
35
+ let e = u(l(t), r || "");
36
+ return e && !e.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(e) ? "/" + e : e;
37
+ }
38
+ Object.defineProperty(a, "o", {
39
+ enumerable: !0,
40
+ get: function() {
41
+ return _;
42
+ }
43
+ }), Object.defineProperty(a, "r", {
44
+ enumerable: !0,
45
+ get: function() {
46
+ return s;
47
+ }
48
+ });
49
+ });
@@ -1,10 +1,10 @@
1
- __useblocks__.define("static/core/678594cd.js", [
1
+ __useblocks__.define("static/core/e3a541ab.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/63b7b25e.js"
5
+ "static/core/df237243.js"
6
6
  ], function(t, e, a) {
7
- t("./63b7b25e.js");
7
+ t("./df237243.js");
8
8
  e.conf = {
9
9
  comments: { lineComment: "//" },
10
10
  brackets: [
@@ -1,14 +1,14 @@
1
- __useblocks__.define("static/core/6f0d961a2.js", [
1
+ __useblocks__.define("static/core/e4c6d91e2.js", [
2
2
  "require",
3
3
  "exports",
4
4
  "module",
5
- "static/core/63b7b25e.js",
6
- "static/core/43108a122.js",
7
- "static/core/e47711662.js",
8
- "static/core/a35fd8d22.js"
5
+ "static/core/df237243.js",
6
+ "static/core/3bda5ccf2.js",
7
+ "static/core/8a061db42.js",
8
+ "static/core/b8ed4fd62.js"
9
9
  ], function(l, r, D) {
10
- l("./63b7b25e.js");
11
- const n = l("./43108a122.js"), p = l("./e47711662.js"), e = l("./a35fd8d22.js");
10
+ l("./df237243.js");
11
+ const n = l("./3bda5ccf2.js"), p = l("./8a061db42.js"), e = l("./b8ed4fd62.js");
12
12
  var _ = 120 * 1e3, u = class {
13
13
  constructor(i) {
14
14
  this._defaults = i, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());