@powerhousedao/powerhouse-vetra-packages 6.2.3-dev.61 → 6.2.3-dev.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{editor-C7KBR_ar.js → editor-B04FPIuX.js} +7 -7
- package/dist/browser/editor-B04FPIuX.js.map +1 -0
- package/dist/browser/{editor-CiR6XQBO.js → editor-B9q_dsjJ.js} +2 -2
- package/dist/browser/{editor-CiR6XQBO.js.map → editor-B9q_dsjJ.js.map} +1 -1
- package/dist/browser/editors/document-model-editor/module.js +1 -1
- package/dist/browser/editors/generic-drive-explorer/index.js +2 -1
- package/dist/browser/editors/generic-drive-explorer/index.js.map +1 -1
- package/dist/browser/editors/generic-drive-explorer/module.js +1 -1
- package/dist/browser/folder-view-D6fWq6Sd.js +966 -0
- package/dist/browser/folder-view-D6fWq6Sd.js.map +1 -0
- package/dist/browser/{graphql-editor-Cgi5UOrF.js → graphql-editor-VMfzEW-O.js} +2 -2
- package/dist/browser/{graphql-editor-Cgi5UOrF.js.map → graphql-editor-VMfzEW-O.js.map} +1 -1
- package/dist/browser/{folder-view-DSgXN79D.js → icon-components-BZ_bQZmJ-CZ_uHGhU.js} +42 -1263
- package/dist/browser/icon-components-BZ_bQZmJ-CZ_uHGhU.js.map +1 -0
- package/dist/browser/{src-CrUksCLW-B2dkRdgq.js → src-B2s8MAp7-C3brZNkp.js} +448 -8
- package/dist/browser/src-B2s8MAp7-C3brZNkp.js.map +1 -0
- package/dist/browser/{state-schemas-B5Bk_l1s.js → state-schemas-C5Z-SZwt.js} +4 -4
- package/dist/browser/{state-schemas-B5Bk_l1s.js.map → state-schemas-C5Z-SZwt.js.map} +1 -1
- package/dist/node/{editor-96sMeumV.mjs → editor-B7z1D1Yi.mjs} +6 -6
- package/dist/node/editor-B7z1D1Yi.mjs.map +1 -0
- package/dist/node/{editor-wqvKwcO5.mjs → editor-B_t-QODP.mjs} +2 -2
- package/dist/node/{editor-wqvKwcO5.mjs.map → editor-B_t-QODP.mjs.map} +1 -1
- package/dist/node/editors/document-model-editor/module.mjs +1 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs +2 -1
- package/dist/node/editors/generic-drive-explorer/index.mjs.map +1 -1
- package/dist/node/editors/generic-drive-explorer/module.mjs +1 -1
- package/dist/node/folder-view-D5ltrCZI.mjs +966 -0
- package/dist/node/folder-view-D5ltrCZI.mjs.map +1 -0
- package/dist/node/{folder-view-ktfv2Cvw.mjs → icon-components-BZ_bQZmJ-Dj7gzTQW.mjs} +42 -1263
- package/dist/node/icon-components-BZ_bQZmJ-Dj7gzTQW.mjs.map +1 -0
- package/dist/node/{src-CrUksCLW-TvF37aMo.mjs → src-B2s8MAp7-Dr-rC85F.mjs} +448 -8
- package/dist/node/src-B2s8MAp7-Dr-rC85F.mjs.map +1 -0
- package/dist/node/{state-schemas-BHuo0GPl.mjs → state-schemas-CPvYKkpt.mjs} +3 -3
- package/dist/node/{state-schemas-BHuo0GPl.mjs.map → state-schemas-CPvYKkpt.mjs.map} +1 -1
- package/package.json +8 -8
- package/dist/browser/editor-C7KBR_ar.js.map +0 -1
- package/dist/browser/folder-view-DSgXN79D.js.map +0 -1
- package/dist/browser/src-CrUksCLW-B2dkRdgq.js.map +0 -1
- package/dist/node/editor-96sMeumV.mjs.map +0 -1
- package/dist/node/folder-view-ktfv2Cvw.mjs.map +0 -1
- package/dist/node/src-CrUksCLW-TvF37aMo.mjs.map +0 -1
|
@@ -1,10 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { C as ConnectSmall, D as FolderOpen, E as FolderClose, F as Syncing, I as VerticalDots, L as XmarkLight, M as PlusSquare, N as PowerhouseLogoSmall, O as Hdd, P as Synced, S as CloudSlash, T as File, _ as BrickGlobe, b as CheckCircleFill, g as ArrowLeft, h as ArrowCouterclockwise, j as Plus, k as History, v as CaretDown, w as Drive, x as ChevronDown, y as CaretRight } from "./src-B2s8MAp7-Dr-rC85F.mjs";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../design-system/dist/PinFilled-cSbUqZCA.js
|
|
4
|
+
function Pin(props) {
|
|
5
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
6
|
+
...props,
|
|
7
|
+
viewBox: "0 0 16 16",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
clipRule: "evenodd",
|
|
13
|
+
d: "M11.017 1.212C10.8087 1.00372 10.471 1.00372 10.2627 1.212C10.0545 1.42028 10.0545 1.75796 10.2627 1.96624L10.9593 2.66279L5.7873 6.54177L4.60589 5.36036C4.39761 5.15208 4.05992 5.15208 3.85164 5.36036C3.64336 5.56864 3.64336 5.90632 3.85164 6.1146L5.36014 7.6231L6.49157 8.75454C6.49156 8.75455 6.49154 8.75457 6.49153 8.75458L3.00313 12.243C2.79485 12.4513 2.79485 12.7889 3.00313 12.9972C3.21141 13.2055 3.5491 13.2055 3.75738 12.9972L7.24577 9.50883C7.24579 9.50882 7.24581 9.5088 7.24582 9.50878L8.37712 10.6401L9.88562 12.1486C10.0939 12.3569 10.4316 12.3569 10.6399 12.1486C10.8481 11.9403 10.8481 11.6026 10.6399 11.3943L9.45845 10.2129L13.3374 5.04094L14.034 5.73748C14.2423 5.94576 14.5799 5.94576 14.7882 5.73748C14.9965 5.5292 14.9965 5.19151 14.7882 4.98323L13.6569 3.85186L12.1484 2.34337L11.017 1.212ZM6.54921 7.30368L11.7212 3.42469L12.5755 4.27903L8.69654 9.45101L6.54921 7.30368Z",
|
|
14
|
+
fill: "currentcolor"
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function PinFilled(props) {
|
|
19
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
20
|
+
...props,
|
|
21
|
+
viewBox: "0 0 16 16",
|
|
22
|
+
fill: "none",
|
|
23
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
25
|
+
fillRule: "evenodd",
|
|
26
|
+
clipRule: "evenodd",
|
|
27
|
+
d: "M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",
|
|
28
|
+
fill: "currentcolor"
|
|
29
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
clipRule: "evenodd",
|
|
32
|
+
d: "M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",
|
|
33
|
+
fill: "currentcolor"
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
8
38
|
//#region ../design-system/dist/Removed-OP4eTrAN.js
|
|
9
39
|
function Created(props) {
|
|
10
40
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -226,7 +256,7 @@ function Tabler(props) {
|
|
|
226
256
|
});
|
|
227
257
|
}
|
|
228
258
|
//#endregion
|
|
229
|
-
//#region ../design-system/dist/icon-
|
|
259
|
+
//#region ../design-system/dist/icon-components-BZ_bQZmJ.js
|
|
230
260
|
function AnalyticsProcessorModule(props) {
|
|
231
261
|
return /* @__PURE__ */ jsxs("svg", {
|
|
232
262
|
...props,
|
|
@@ -465,17 +495,6 @@ function AppModule(props) {
|
|
|
465
495
|
})] })]
|
|
466
496
|
});
|
|
467
497
|
}
|
|
468
|
-
function ArrowCouterclockwise(props) {
|
|
469
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
470
|
-
...props,
|
|
471
|
-
width: "16",
|
|
472
|
-
height: "16",
|
|
473
|
-
viewBox: "0 0 16 16",
|
|
474
|
-
fill: "currentcolor",
|
|
475
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
476
|
-
children: /* @__PURE__ */ jsx("path", { d: "M7.99384 0V2C11.3076 2 13.9938 4.68626 13.9938 8C13.9938 11.314 11.3076 14 7.99384 14C4.6801 14 1.99384 11.314 1.99384 8C1.99384 6.928 2.27897 5.88653 2.8063 4.9792C2.99137 4.66087 3.4047 4.565 3.72297 4.75C4.0413 4.935 4.13724 5.34833 3.95217 5.66666C3.5423 6.3718 3.32717 7.16533 3.32717 8C3.32717 10.5773 5.4165 12.6667 7.99384 12.6667C10.5712 12.6667 12.6605 10.5773 12.6605 8C12.6605 5.42266 10.5712 3.33333 7.99384 3.33333V5.33333L5.32717 2.66667L7.99384 0Z" })
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
498
|
function ArrowFilledRight(props) {
|
|
480
499
|
return /* @__PURE__ */ jsx("svg", {
|
|
481
500
|
...props,
|
|
@@ -484,20 +503,6 @@ function ArrowFilledRight(props) {
|
|
|
484
503
|
children: /* @__PURE__ */ jsx("path", { d: "M8.31744 6.36794C8.56085 6.17515 8.56085 5.82482 8.31744 5.63203L1.3527 0.115704C1.01647 -0.150574 0.499999 0.072258 0.499999 0.483647L0.5 11.5163C0.5 11.9277 1.01647 12.1506 1.3527 11.8843L8.31744 6.36794Z" })
|
|
485
504
|
});
|
|
486
505
|
}
|
|
487
|
-
function ArrowLeft(props) {
|
|
488
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
489
|
-
...props,
|
|
490
|
-
viewBox: "0 0 16 16",
|
|
491
|
-
fill: "none",
|
|
492
|
-
stroke: "currentcolor",
|
|
493
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
494
|
-
d: "M8 1L0.999998 8M0.999998 8L8 15M0.999998 8L15 8",
|
|
495
|
-
strokeWidth: "2",
|
|
496
|
-
strokeLinecap: "round",
|
|
497
|
-
strokeLinejoin: "round"
|
|
498
|
-
})
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
506
|
function ArrowUp(props) {
|
|
502
507
|
return /* @__PURE__ */ jsx("svg", {
|
|
503
508
|
...props,
|
|
@@ -548,14 +553,6 @@ function Branch(props) {
|
|
|
548
553
|
children: /* @__PURE__ */ jsx("path", { d: "M12.0283 1.99805C10.3713 1.99805 9.02832 3.34105 9.02832 4.99805C9.02832 6.26605 9.86732 7.40607 11.0263 7.82507L11.0283 10.998H7.02832C6.47632 10.998 6.02832 11.446 6.02832 11.998L6.02731 16.173C4.87631 16.569 4.02832 17.73 4.02832 18.998C4.02832 20.655 5.37132 21.998 7.02832 21.998C8.68532 21.998 10.0283 20.655 10.0283 18.998C10.0283 17.73 9.23332 16.612 8.03932 16.16L8.02832 12.998H12.0283H16.0283L16.0353 16.175C14.8343 16.592 14.0283 17.73 14.0283 18.998C14.0283 20.655 15.3713 21.998 17.0283 21.998C18.6853 21.998 20.0283 20.655 20.0283 18.998C20.0283 17.73 19.2093 16.614 18.0363 16.17L18.0283 11.998C18.0283 11.446 17.5803 10.998 17.0283 10.998H13.0283L13.0253 7.82104C14.1893 7.41004 15.0283 6.26605 15.0283 4.99805C15.0283 3.34105 13.6853 1.99805 12.0283 1.99805Z" })
|
|
549
554
|
});
|
|
550
555
|
}
|
|
551
|
-
function BrickGlobe(props) {
|
|
552
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
553
|
-
...props,
|
|
554
|
-
viewBox: "0 0 18 19",
|
|
555
|
-
fill: "currentcolor",
|
|
556
|
-
children: /* @__PURE__ */ jsx("path", { d: "M8.27293 3.26461C8.46408 3.26461 8.61903 3.10949 8.61904 2.91815L8.6191 0.500008C6.2185 0.599662 4.06088 1.64036 2.50446 3.26475L8.27293 3.26461ZM10.6957 6.82116C10.6957 7.0125 10.5407 7.16762 10.3496 7.16762L0.304562 7.16782C0.613333 6.01248 1.14583 4.94828 1.85198 4.02532L10.3496 4.02518C10.5408 4.02518 10.6957 4.1803 10.6957 4.37166L10.6957 6.82116ZM15.4943 15.7353C13.9385 17.3591 11.7809 18.3997 9.37968 18.5L9.37974 16.0819C9.37974 15.8905 9.5347 15.7354 9.72585 15.7354L15.4943 15.7353ZM8.61928 18.4994C6.21868 18.3999 4.06051 17.3587 2.50477 15.735L8.2732 15.7348C8.46437 15.7348 8.61934 15.89 8.61933 16.0813L8.61928 18.4994ZM13.196 12.1777C13.196 11.9864 13.3509 11.8313 13.5421 11.8312L17.6942 11.831C17.3854 12.9863 16.8536 14.0499 16.1468 14.9735L13.5421 14.9737C13.3509 14.9737 13.1959 14.8186 13.1959 14.6272L13.196 12.1777ZM6.63574 8.26583C6.64045 8.07793 6.79397 7.92806 6.98174 7.92805L17.8631 7.92797C17.953 8.43803 18 8.96317 18 9.49919C18 10.0352 17.9529 10.5604 17.8631 11.0704L6.98317 11.07C6.79504 11.0699 6.64138 10.9195 6.63718 10.7312L6.6074 9.39625L6.63574 8.26583ZM12.5542 14.6279C12.5542 14.8192 12.3992 14.9743 12.2081 14.9743L1.85233 14.9744C1.14562 14.0509 0.613778 12.9873 0.305062 11.832L12.2081 11.8319C12.3993 11.8319 12.5543 11.987 12.5543 12.1784L12.5542 14.6279ZM0.136912 7.92839L5.5227 7.92809C5.71386 7.92809 5.86883 8.08321 5.86883 8.27457L5.86877 10.7241C5.86877 10.9154 5.71381 11.0705 5.52266 11.0706L0.136834 11.0708C0.046996 10.5608 -1.44252e-05 10.0356 -1.12058e-06 9.49961C1.02767e-05 8.9636 0.0470512 8.43845 0.136912 7.92839ZM11.4567 4.3716C11.4567 4.18026 11.6117 4.02515 11.8028 4.02514L16.1471 4.02498C16.8538 4.94851 17.3856 6.01207 17.6943 7.1674L11.8028 7.1676C11.6116 7.1676 11.4567 7.01248 11.4567 6.82112L11.4567 4.3716ZM9.3801 0.500001C11.7807 0.599542 13.9389 1.64073 15.4946 3.26444L9.72617 3.26457C9.53501 3.26458 9.38004 3.10945 9.38004 2.9181L9.3801 0.500001Z" })
|
|
557
|
-
});
|
|
558
|
-
}
|
|
559
556
|
function Briefcase(props) {
|
|
560
557
|
return /* @__PURE__ */ jsx("svg", {
|
|
561
558
|
...props,
|
|
@@ -600,18 +597,6 @@ function Caret(props) {
|
|
|
600
597
|
children: /* @__PURE__ */ jsx("path", { d: "M10 16L10 12.8L10 11.2L10 8L14 12L10 16Z" })
|
|
601
598
|
});
|
|
602
599
|
}
|
|
603
|
-
function CaretDown(props) {
|
|
604
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
605
|
-
...props,
|
|
606
|
-
viewBox: "0 0 16 16",
|
|
607
|
-
fill: "currentcolor",
|
|
608
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
609
|
-
fillRule: "evenodd",
|
|
610
|
-
clipRule: "evenodd",
|
|
611
|
-
d: "M4.28221 5.22951C3.98888 4.9235 3.51331 4.9235 3.21999 5.22951C2.92667 5.53552 2.92667 6.03168 3.21999 6.33769L7.46885 10.7704C7.47802 10.78 7.48736 10.7892 7.49688 10.7982C7.50402 10.8049 7.51125 10.8115 7.51858 10.8179C7.81368 11.0756 8.25385 11.0598 8.53115 10.7705L12.78 6.33777C13.0733 6.03175 13.0733 5.5356 12.78 5.22958C12.4867 4.92357 12.0111 4.92357 11.7178 5.22958L8.00004 9.10822L4.28221 5.22951Z"
|
|
612
|
-
})
|
|
613
|
-
});
|
|
614
|
-
}
|
|
615
600
|
function CaretLeft(props) {
|
|
616
601
|
return /* @__PURE__ */ jsx("svg", {
|
|
617
602
|
...props,
|
|
@@ -632,26 +617,6 @@ function CaretLeft(props) {
|
|
|
632
617
|
})
|
|
633
618
|
});
|
|
634
619
|
}
|
|
635
|
-
function CaretRight(props) {
|
|
636
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
637
|
-
...props,
|
|
638
|
-
width: "18",
|
|
639
|
-
height: "18",
|
|
640
|
-
viewBox: "0 0 18 18",
|
|
641
|
-
fill: "none",
|
|
642
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
643
|
-
children: /* @__PURE__ */ jsx("g", {
|
|
644
|
-
id: "Caret Right",
|
|
645
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
646
|
-
id: "Shape",
|
|
647
|
-
fillRule: "evenodd",
|
|
648
|
-
clipRule: "evenodd",
|
|
649
|
-
d: "M7.4181 5.01821C7.62899 4.80733 7.9709 4.80733 8.18178 5.01821L11.7818 8.61821C11.883 8.71948 11.9399 8.85683 11.9399 9.00005C11.9399 9.14326 11.883 9.28061 11.7818 9.38188L8.18178 12.9819C7.9709 13.1928 7.62899 13.1928 7.4181 12.9819C7.20722 12.771 7.20722 12.4291 7.4181 12.2182L10.6363 9.00005L7.4181 5.78188C7.20722 5.571 7.20722 5.22909 7.4181 5.01821Z",
|
|
650
|
-
fill: "currentColor"
|
|
651
|
-
})
|
|
652
|
-
})
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
620
|
function CaretSort(props) {
|
|
656
621
|
return /* @__PURE__ */ jsx("svg", {
|
|
657
622
|
...props,
|
|
@@ -695,14 +660,6 @@ function CheckCircle(props) {
|
|
|
695
660
|
]
|
|
696
661
|
});
|
|
697
662
|
}
|
|
698
|
-
function CheckCircleFill(props) {
|
|
699
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
700
|
-
...props,
|
|
701
|
-
viewBox: "0 0 24 24",
|
|
702
|
-
fill: "currentcolor",
|
|
703
|
-
children: /* @__PURE__ */ jsx("path", { d: "M12 3C7.0293 3 3 7.0293 3 12C3 16.9707 7.0293 21 12 21C16.9707 21 21 16.9707 21 12C21 7.0293 16.9707 3 12 3ZM15.6 9.3C15.8304 9.3 16.0707 9.37741 16.2471 9.55291C16.5981 9.90481 16.5981 10.4952 16.2471 10.8471L12.8721 14.1942C11.8362 15.2292 10.2531 15.0744 9.4404 13.8558L8.54041 12.5058C8.26501 12.0927 8.38019 11.5167 8.79419 11.2404C9.20729 10.965 9.78329 11.0802 10.0596 11.4942L10.9596 12.8442C11.1414 13.1169 11.3745 13.1601 11.6058 12.9279L14.9529 9.55291C15.1293 9.37741 15.3696 9.3 15.6 9.3Z" })
|
|
704
|
-
});
|
|
705
|
-
}
|
|
706
663
|
function Checkmark(props) {
|
|
707
664
|
return /* @__PURE__ */ jsx("svg", {
|
|
708
665
|
...props,
|
|
@@ -715,20 +672,6 @@ function Checkmark(props) {
|
|
|
715
672
|
})
|
|
716
673
|
});
|
|
717
674
|
}
|
|
718
|
-
function ChevronDown(props) {
|
|
719
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
720
|
-
...props,
|
|
721
|
-
viewBox: "0 0 24 24",
|
|
722
|
-
fill: "none",
|
|
723
|
-
stroke: "currentcolor",
|
|
724
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
725
|
-
d: "M6 9L12 15L18 9",
|
|
726
|
-
strokeWidth: "2",
|
|
727
|
-
strokeLinecap: "round",
|
|
728
|
-
strokeLinejoin: "round"
|
|
729
|
-
})
|
|
730
|
-
});
|
|
731
|
-
}
|
|
732
675
|
function Circle(props) {
|
|
733
676
|
return /* @__PURE__ */ jsx("svg", {
|
|
734
677
|
...props,
|
|
@@ -800,14 +743,6 @@ function ClockHistory(props) {
|
|
|
800
743
|
children: /* @__PURE__ */ jsx("path", { d: "M8.02812 1.33264C4.33612 1.33264 1.34277 4.31663 1.34277 7.99797C1.34277 11.6793 4.33612 14.664 8.02812 14.664C9.83012 14.664 11.5248 13.9533 12.7708 12.706C13.0314 12.4446 13.0328 12.028 12.7708 11.7686C12.5094 11.5086 12.0914 11.5073 11.8308 11.7686C10.8334 12.7673 9.47078 13.3306 8.02812 13.3306C5.07478 13.3306 2.68011 10.9433 2.68011 7.99797C2.68011 5.0533 5.07478 2.66597 8.02812 2.66597C8.39745 2.66597 8.69678 2.36731 8.69678 1.99931C8.69678 1.63131 8.39745 1.33264 8.02812 1.33264ZM10.4728 1.93665C10.3108 1.98998 10.1781 2.10465 10.0968 2.26998C9.93412 2.60065 10.0581 3.00331 10.3894 3.16597C10.5674 3.25264 10.7241 3.35065 10.8908 3.45732C11.2014 3.65532 11.6321 3.55931 11.8308 3.24931C12.0294 2.93864 11.9328 2.53064 11.6221 2.33264C11.4128 2.19931 11.1968 2.0873 10.9741 1.97864C10.8088 1.8973 10.6354 1.88398 10.4728 1.93665ZM12.8334 3.58199C12.6641 3.56199 12.4774 3.61465 12.3321 3.72799C12.0421 3.95532 11.9994 4.37599 12.2281 4.66532C12.3501 4.82066 12.4781 4.97665 12.5828 5.14465C12.7774 5.45732 13.1888 5.54666 13.5021 5.35266C13.8161 5.15866 13.9054 4.76998 13.7114 4.45732C13.5808 4.24732 13.4254 4.02666 13.2721 3.83199C13.1581 3.68732 13.0034 3.60266 12.8334 3.58199ZM8.02812 3.99866C7.65945 3.99866 7.36011 4.29732 7.36011 4.66532V7.99797C7.36011 8.1753 7.44343 8.35196 7.56877 8.47729L9.5741 10.4766C9.83543 10.7373 10.2534 10.7373 10.5148 10.4766C10.7754 10.2166 10.7754 9.7793 10.5148 9.51864L8.69678 7.70662V4.66532C8.69678 4.29732 8.39745 3.99866 8.02812 3.99866ZM13.7528 6.01933C13.3921 6.09866 13.1714 6.45129 13.2514 6.81063C13.2941 7.00329 13.3354 7.19729 13.3561 7.39396C13.3948 7.75996 13.7201 8.01596 14.0874 7.97729C14.4541 7.93863 14.7114 7.61466 14.6721 7.24866C14.6461 7.00199 14.6214 6.75999 14.5674 6.51933C14.4881 6.15999 14.1134 5.93999 13.7528 6.01933ZM14.0454 8.72729C13.6868 8.64063 13.3174 8.86929 13.2308 9.22729C13.1841 9.41996 13.1101 9.60464 13.0428 9.78931C12.9161 10.1353 13.1134 10.4966 13.4608 10.6226C13.8074 10.7486 14.1701 10.594 14.2961 10.248C14.3808 10.016 14.4674 9.78064 14.5261 9.53931C14.6128 9.18197 14.4041 8.81396 14.0454 8.72729Z" })
|
|
801
744
|
});
|
|
802
745
|
}
|
|
803
|
-
function CloudSlash(props) {
|
|
804
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
805
|
-
...props,
|
|
806
|
-
viewBox: "0 0 24 24",
|
|
807
|
-
fill: "currentcolor",
|
|
808
|
-
children: /* @__PURE__ */ jsx("path", { d: "M12.0137 3.99043C10.8277 4.00043 9.59167 4.33942 8.51367 4.95942C8.03467 5.23442 7.86367 5.85542 8.13867 6.33442C8.41367 6.81342 9.03467 6.95347 9.51367 6.67847C10.2927 6.23047 11.1717 5.99742 12.0137 5.99042C14.6947 5.96942 17.0347 8.27742 17.0137 10.9904C17.0137 11.0504 17.0137 11.8534 17.0137 12.0844C17.0137 12.5504 17.3097 12.9794 17.7637 13.0844C19.0797 13.3884 20.0137 14.3904 20.0137 15.4904C20.0137 15.8464 19.9357 16.2034 19.7637 16.5224C19.5017 17.0074 19.6837 17.6034 20.1697 17.8654C20.6557 18.1284 21.2517 17.9454 21.5137 17.4594C21.8417 16.8524 22.0137 16.1824 22.0137 15.4904C22.0137 13.6764 20.8217 12.1095 19.0097 11.3765C19.0117 11.1985 19.0137 11.0174 19.0137 10.9904C19.0437 7.15542 15.8047 3.96143 12.0137 3.99043ZM5.01367 5.99042C4.75767 5.99042 4.48968 6.07647 4.29468 6.27247C3.90468 6.66247 3.90468 7.31941 4.29468 7.70941L5.40268 8.80542C5.29468 9.03042 5.24667 9.28445 5.19067 9.54345C3.28667 10.3735 2.01367 12.2084 2.01367 14.3654C2.01367 17.3754 4.38968 19.9904 7.32568 19.9904H16.5757L17.2947 20.7094C17.6857 21.1004 18.3417 21.1004 18.7327 20.7094C19.1227 20.3194 19.1227 19.6624 18.7327 19.2724L17.7327 18.2724L5.73267 6.27247C5.53667 6.07647 5.26967 5.99042 5.01367 5.99042ZM7.04169 10.4495L14.5757 17.9904H7.32568C5.53868 17.9904 4.01367 16.3124 4.01367 14.3654C4.01367 12.8734 4.94767 11.6624 6.35767 11.2404C6.71567 11.1334 6.99369 10.8025 7.04169 10.4495Z" })
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
746
|
function CodegenProcessorModule(props) {
|
|
812
747
|
return /* @__PURE__ */ jsxs("svg", {
|
|
813
748
|
...props,
|
|
@@ -990,20 +925,6 @@ function Connect(props) {
|
|
|
990
925
|
]
|
|
991
926
|
});
|
|
992
927
|
}
|
|
993
|
-
function ConnectSmall(props) {
|
|
994
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
995
|
-
...props,
|
|
996
|
-
width: "24",
|
|
997
|
-
height: "24",
|
|
998
|
-
viewBox: "0 0 24 24",
|
|
999
|
-
fill: "none",
|
|
1000
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1001
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
1002
|
-
d: "M11.0306 3.68615C11.2854 3.68614 11.492 3.47932 11.4921 3.2242L11.4921 9.03413e-06C8.29133 0.132881 5.41451 1.52048 3.33928 3.68633L11.0306 3.68615ZM14.2609 8.42821C14.2609 8.68334 14.0543 8.89016 13.7994 8.89016L0.406086 8.89043C0.81778 7.34998 1.52777 5.93103 2.46931 4.70043L13.7995 4.70024C14.0544 4.70023 14.261 4.90707 14.261 5.16221L14.2609 8.42821ZM20.6591 20.3137C18.5847 22.4787 15.7079 23.8663 12.5062 24L12.5063 20.7758C12.5063 20.5207 12.7129 20.3139 12.9678 20.3139L20.6591 20.3137ZM11.4924 23.9992C8.29157 23.8665 5.41401 22.4782 3.33969 20.3133L11.0309 20.3131C11.2858 20.3131 11.4924 20.52 11.4924 20.7751L11.4924 23.9992ZM17.5946 15.5703C17.5947 15.3152 17.8013 15.1083 18.0561 15.1083L23.5923 15.108C23.1806 16.6484 22.4714 18.0666 21.5291 19.298L18.0561 19.2983C17.8012 19.2983 17.5946 19.0914 17.5946 18.8363L17.5946 15.5703ZM8.84765 10.3544C8.85393 10.1039 9.05863 9.90407 9.30899 9.90407L23.8175 9.90396C23.9373 10.584 24 11.2842 24 11.9989C24 12.7136 23.9372 13.4138 23.8174 14.0939L9.31089 14.0933C9.06005 14.0932 8.85517 13.8927 8.84957 13.6416L8.80986 11.8617L8.84765 10.3544ZM16.7389 18.8372C16.7389 19.0923 16.5323 19.2991 16.2774 19.2991L2.46978 19.2992C1.52749 18.0679 0.818373 16.6498 0.406752 15.1093L16.2775 15.1092C16.5324 15.1092 16.739 15.316 16.739 15.5712L16.7389 18.8372ZM0.182552 9.90452L7.3636 9.90412C7.61849 9.90411 7.82511 10.1109 7.82511 10.3661L7.82503 13.6321C7.82503 13.8872 7.61842 14.0941 7.36355 14.0941L0.182447 14.0945C0.062664 13.4144 -1.71661e-05 12.7142 0 11.9995C1.71661e-05 11.2848 0.0627384 10.5846 0.182552 9.90452ZM15.2756 5.16214C15.2757 4.90701 15.4823 4.70019 15.7371 4.70019L21.5294 4.69998C22.4717 5.93135 23.1808 7.34943 23.5924 8.88987L15.7371 8.89013C15.4822 8.89014 15.2756 8.6833 15.2756 8.42816L15.2756 5.16214ZM12.5068 0C15.7076 0.132721 18.5852 1.52098 20.6595 3.68592L12.9682 3.6861C12.7133 3.6861 12.5067 3.47927 12.5067 3.22413L12.5068 0Z",
|
|
1003
|
-
fill: "currentColor"
|
|
1004
|
-
})
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
928
|
function Copy(props) {
|
|
1008
929
|
return /* @__PURE__ */ jsx("svg", {
|
|
1009
930
|
...props,
|
|
@@ -1623,14 +1544,6 @@ function DownloadFile(props) {
|
|
|
1623
1544
|
]
|
|
1624
1545
|
});
|
|
1625
1546
|
}
|
|
1626
|
-
function Drive(props) {
|
|
1627
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
1628
|
-
...props,
|
|
1629
|
-
viewBox: "0 0 20 16",
|
|
1630
|
-
fill: "currentcolor",
|
|
1631
|
-
children: /* @__PURE__ */ jsx("path", { d: "M20 1.84472C20 1.46377 19.7836 1.11591 19.4418 0.94761L18.088 0.28089C17.7399 0.109485 17.3242 0.154861 17.0213 0.397305L10.9046 5.29345L13.3938 7.26606L16.9338 4.43246V11.5763L2.94616 0.468456C2.64307 0.227771 2.22832 0.183587 1.88133 0.355019L0.557054 1.00929C0.215927 1.17782 0 1.52534 0 1.90583V14.1546C0 14.5354 0.216328 14.8832 0.557941 15.0516L1.9119 15.7189C2.26 15.8904 2.67592 15.8451 2.97888 15.6026L9.05159 10.7415L6.56234 8.76886L3.06621 11.5675V4.48484L17.0477 15.5957C17.3508 15.8366 17.7658 15.8809 18.1129 15.7093L19.4431 15.0519C19.7841 14.8833 20 14.5358 20 14.1554V1.84472Z" })
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
1547
|
function Edit(props) {
|
|
1635
1548
|
return /* @__PURE__ */ jsx("svg", {
|
|
1636
1549
|
...props,
|
|
@@ -1793,7 +1706,7 @@ function Ellipsis(props) {
|
|
|
1793
1706
|
children: /* @__PURE__ */ jsx("path", { d: "M1 0C1.552 0 2 0.448 2 1C2 1.552 1.552 2 1 2C0.448 2 0 1.552 0 1C0 0.448 0.448 0 1 0ZM5 0C5.552 0 6 0.448 6 1C6 1.552 5.552 2 5 2C4.448 2 4 1.552 4 1C4 0.448 4.448 0 5 0ZM9 0C9.552 0 10 0.448 10 1C10 1.552 9.552 2 9 2C8.448 2 8 1.552 8 1C8 0.448 8.448 0 9 0Z" })
|
|
1794
1707
|
});
|
|
1795
1708
|
}
|
|
1796
|
-
function Error
|
|
1709
|
+
function Error(props) {
|
|
1797
1710
|
return /* @__PURE__ */ jsx("svg", {
|
|
1798
1711
|
...props,
|
|
1799
1712
|
viewBox: "0 0 16 16",
|
|
@@ -2096,20 +2009,6 @@ function ExportZip(props) {
|
|
|
2096
2009
|
]
|
|
2097
2010
|
});
|
|
2098
2011
|
}
|
|
2099
|
-
function File(props) {
|
|
2100
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2101
|
-
...props,
|
|
2102
|
-
viewBox: "0 0 16 16",
|
|
2103
|
-
fill: "none",
|
|
2104
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2105
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
2106
|
-
fillRule: "evenodd",
|
|
2107
|
-
clipRule: "evenodd",
|
|
2108
|
-
d: "M3.7333 2.13332C3.43875 2.13332 3.19997 2.3721 3.19997 2.66665V13.3333C3.19997 13.6279 3.43875 13.8667 3.7333 13.8667H12.2666C12.5612 13.8667 12.8 13.6279 12.8 13.3333V6.39998H9.06663C8.77208 6.39998 8.5333 6.1612 8.5333 5.86665V2.13332H3.7333ZM9.59997 2.88756L12.0457 5.33332H9.59997V2.88756ZM2.1333 2.66665C2.1333 1.78299 2.84965 1.06665 3.7333 1.06665H9.06663C9.20808 1.06665 9.34374 1.12284 9.44376 1.22286L13.7104 5.48953C13.8104 5.58955 13.8666 5.7252 13.8666 5.86665V13.3333C13.8666 14.217 13.1503 14.9333 12.2666 14.9333H3.7333C2.84964 14.9333 2.1333 14.217 2.1333 13.3333V2.66665Z",
|
|
2109
|
-
fill: "currentcolor"
|
|
2110
|
-
})
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
2012
|
function FilesEarmark(props) {
|
|
2114
2013
|
return /* @__PURE__ */ jsx("svg", {
|
|
2115
2014
|
...props,
|
|
@@ -2118,25 +2017,6 @@ function FilesEarmark(props) {
|
|
|
2118
2017
|
children: /* @__PURE__ */ jsx("path", { d: "M8.33139 1.67773C5.36388 1.67773 2.49805 4.5159 2.49805 7.48507C2.49805 7.49365 2.49805 7.5024 2.49805 7.51107C2.49805 9.56107 2.49805 12.008 2.49805 12.2246C2.49805 13.7777 3.84056 15.0111 5.46639 15.0111H5.83139V15.5579C5.83139 17.1111 7.1739 18.3444 8.79973 18.3444H14.5297C16.1556 18.3444 17.4981 17.1111 17.4981 15.5579V7.79757C17.4981 6.2444 16.1556 5.01107 14.5297 5.01107H14.1647V4.46423C14.1647 2.91107 12.8222 1.67773 11.1964 1.67773C11.0181 1.67773 11.0097 1.67773 8.33139 1.67773ZM7.49805 3.55273V5.5579C7.49805 6.15257 6.93638 6.67773 6.19638 6.67773H4.34721C4.72971 5.20507 6.02139 3.94473 7.49805 3.55273ZM14.1647 6.67773H14.5297C15.2697 6.67773 15.8314 7.2029 15.8314 7.79757V15.5579C15.8314 16.1526 15.2697 16.6777 14.5297 16.6777H8.79973C8.05973 16.6777 7.49805 16.1526 7.49805 15.5579V15.0111H11.1964C12.8222 15.0111 14.1647 13.7777 14.1647 12.2246V6.67773Z" })
|
|
2119
2018
|
});
|
|
2120
2019
|
}
|
|
2121
|
-
function FolderClose(props) {
|
|
2122
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2123
|
-
...props,
|
|
2124
|
-
viewBox: "0 0 18 19",
|
|
2125
|
-
fill: "currentColor",
|
|
2126
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
2127
|
-
d: "M2.99829 0.682129C1.24429 0.683129 0.008291 1.90913 -0.00170898 3.68213V5.68213C-0.000708986 5.72213 -0.00170898 14.6821 -0.00170898 14.6821C-0.00170898 16.8911 1.78929 18.6821 3.99828 18.6821H13.9983C16.2073 18.6821 17.9983 16.8911 17.9983 14.6821V8.68213C17.9973 8.59713 17.9983 6.84013 17.9983 6.71313C18.0053 4.97213 16.7203 3.68913 14.9983 3.68213C14.7263 3.68113 14.0513 3.68113 14.0613 3.68213C13.1383 3.67913 12.9253 3.49513 12.3423 2.62013C11.4253 1.24513 10.6533 0.682129 8.99828 0.682129H2.99829ZM2.99829 2.68213H8.99828C9.84328 2.68213 10.0713 2.86913 10.6543 3.74413C11.5713 5.11913 12.3433 5.68213 13.9983 5.68213C13.9723 5.68313 14.7223 5.68113 14.9983 5.68213C15.6223 5.68513 16.0013 6.08313 15.9983 6.71313C15.9983 6.77713 15.9973 7.21813 15.9983 7.68213C15.3583 7.68213 15.1983 7.68213 11.9983 7.68213C11.1533 7.68213 10.9253 7.49513 10.3423 6.62013C9.42527 5.24513 8.65328 4.68213 6.99828 4.68213C6.11328 4.68213 3.43429 4.68213 1.99829 4.68213V3.68213C2.00229 3.01813 2.34029 2.68213 2.99829 2.68213Z",
|
|
2128
|
-
fill: "currentColor"
|
|
2129
|
-
})
|
|
2130
|
-
});
|
|
2131
|
-
}
|
|
2132
|
-
function FolderOpen(props) {
|
|
2133
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2134
|
-
...props,
|
|
2135
|
-
viewBox: "0 0 20 19",
|
|
2136
|
-
fill: "currentcolor",
|
|
2137
|
-
children: /* @__PURE__ */ jsx("path", { d: "M2.99829 0.68213C1.38729 0.68213 0.0122901 1.96913 -0.00170994 3.68213V14.6821C-0.00170994 15.7961 0.45129 16.8001 1.18629 17.5261C1.54429 17.8791 1.96529 18.1711 2.43629 18.3701C2.91929 18.5731 3.45429 18.6821 3.99829 18.6821H5.99829H12.9983C14.0523 18.6821 15.0383 18.2771 15.7793 17.5571C16.1773 17.1711 16.6333 16.0351 17.4363 13.6821C17.5003 13.4921 18.9473 9.0291 18.9673 8.9631C19.1653 8.3201 18.6713 7.6821 17.9983 7.6821C17.8733 7.6821 17.2123 7.6821 16.9983 7.6821V6.68213C16.9983 5.02513 15.6553 3.68213 13.9983 3.68213H11.9983C11.1533 3.68213 10.9253 3.49513 10.3423 2.62013C9.4253 1.24513 8.6533 0.68213 6.99829 0.68213C6.12329 0.68213 3.87329 0.68213 2.99829 0.68213ZM2.99829 2.68213C3.87329 2.68213 6.12329 2.68213 6.99829 2.68213C7.8433 2.68213 8.0713 2.86913 8.6543 3.74413C9.5713 5.11913 10.3433 5.68213 11.9983 5.68213H13.9983C14.5503 5.68213 14.9983 6.13013 14.9983 6.68213V7.6821C11.5293 7.6821 6.24829 7.6821 4.99829 7.6821C4.58429 7.6821 4.20929 7.9511 4.06029 8.3381C4.06029 8.3381 2.90229 11.3631 1.99829 13.7131V3.68213C2.00329 3.10513 2.45829 2.68213 2.99829 2.68213Z" })
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
2020
|
function FolderPlus(props) {
|
|
2141
2021
|
return /* @__PURE__ */ jsx("svg", {
|
|
2142
2022
|
...props,
|
|
@@ -2199,22 +2079,6 @@ function GlobeWww(props) {
|
|
|
2199
2079
|
})
|
|
2200
2080
|
});
|
|
2201
2081
|
}
|
|
2202
|
-
function Hdd(props) {
|
|
2203
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2204
|
-
...props,
|
|
2205
|
-
viewBox: "0 0 24 25",
|
|
2206
|
-
fill: "currentcolor",
|
|
2207
|
-
children: /* @__PURE__ */ jsx("path", { d: "M7.24956 4.68945C5.17156 4.68945 3.27058 6.40045 2.93758 8.53345L1.99956 15.5645C1.98756 15.6545 2.05058 15.7285 2.06258 15.8145C2.04858 15.9415 1.99956 16.0585 1.99956 16.1895V17.1895C1.99956 19.1225 3.56656 20.6895 5.49956 20.6895H18.4996C20.4326 20.6895 21.9996 19.1225 21.9996 17.1895V16.1895C21.9996 16.0585 21.9516 15.9415 21.9376 15.8145C21.9496 15.7285 22.0126 15.6545 21.9996 15.5645L20.9996 8.56445C20.6646 6.41545 18.7966 4.68945 16.7186 4.68945H7.24956ZM5.49956 14.6895H18.4996C19.3286 14.6895 19.9996 15.3615 19.9996 16.1895V17.1895C19.9996 18.0175 19.3286 18.6895 18.4996 18.6895H5.49956C4.67156 18.6895 3.99956 18.0175 3.99956 17.1895V16.1895C3.99956 15.3615 4.67156 14.6895 5.49956 14.6895ZM5.99956 15.6895C5.44756 15.6895 4.99956 16.1375 4.99956 16.6895C4.99956 17.2415 5.44756 17.6895 5.99956 17.6895C6.55256 17.6895 6.99956 17.2415 6.99956 16.6895C6.99956 16.1375 6.55256 15.6895 5.99956 15.6895ZM8.99956 15.6895C8.44756 15.6895 7.99956 16.1375 7.99956 16.6895C7.99956 17.2415 8.44756 17.6895 8.99956 17.6895C9.55256 17.6895 9.99956 17.2415 9.99956 16.6895C9.99956 16.1375 9.55256 15.6895 8.99956 15.6895Z" })
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
function History(props) {
|
|
2211
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2212
|
-
...props,
|
|
2213
|
-
viewBox: "0 0 16 16",
|
|
2214
|
-
fill: "currentcolor",
|
|
2215
|
-
children: /* @__PURE__ */ jsx("path", { d: "M8.02812 1.33301C4.33612 1.33301 1.34277 4.317 1.34277 7.99833C1.34277 11.6797 4.33612 14.6643 8.02812 14.6643C9.83012 14.6643 11.5248 13.9537 12.7708 12.7063C13.0314 12.445 13.0328 12.0283 12.7708 11.769C12.5094 11.509 12.0914 11.5077 11.8308 11.769C10.8334 12.7677 9.47078 13.331 8.02812 13.331C5.07478 13.331 2.68011 10.9437 2.68011 7.99833C2.68011 5.05366 5.07478 2.66634 8.02812 2.66634C8.39745 2.66634 8.69678 2.36767 8.69678 1.99967C8.69678 1.63167 8.39745 1.33301 8.02812 1.33301ZM10.4728 1.93701C10.3108 1.99035 10.1781 2.10501 10.0968 2.27034C9.93412 2.60101 10.0581 3.00367 10.3894 3.16634C10.5674 3.25301 10.7241 3.35102 10.8908 3.45768C11.2014 3.65568 11.6321 3.55967 11.8308 3.24967C12.0294 2.93901 11.9328 2.53101 11.6221 2.33301C11.4128 2.19967 11.1968 2.08767 10.9741 1.979C10.8088 1.89767 10.6354 1.88434 10.4728 1.93701ZM12.8334 3.58236C12.6641 3.56236 12.4774 3.61502 12.3321 3.72835C12.0421 3.95569 11.9994 4.37636 12.2281 4.66569C12.3501 4.82102 12.4781 4.97702 12.5828 5.14502C12.7774 5.45769 13.1888 5.54703 13.5021 5.35303C13.8161 5.15903 13.9054 4.77035 13.7114 4.45768C13.5808 4.24768 13.4254 4.02702 13.2721 3.83236C13.1581 3.68769 13.0034 3.60302 12.8334 3.58236ZM8.02812 3.99902C7.65945 3.99902 7.36011 4.29769 7.36011 4.66569V7.99833C7.36011 8.17566 7.44343 8.35233 7.56877 8.47766L9.5741 10.477C9.83543 10.7377 10.2534 10.7377 10.5148 10.477C10.7754 10.217 10.7754 9.77967 10.5148 9.519L8.69678 7.70699V4.66569C8.69678 4.29769 8.39745 3.99902 8.02812 3.99902ZM13.7528 6.01969C13.3921 6.09903 13.1714 6.45166 13.2514 6.81099C13.2941 7.00366 13.3354 7.19766 13.3561 7.39433C13.3948 7.76033 13.7201 8.01633 14.0874 7.97766C14.4541 7.93899 14.7114 7.61502 14.6721 7.24902C14.6461 7.00236 14.6214 6.76036 14.5674 6.51969C14.4881 6.16036 14.1134 5.94036 13.7528 6.01969ZM14.0454 8.72766C13.6868 8.64099 13.3174 8.86966 13.2308 9.22766C13.1841 9.42033 13.1101 9.60501 13.0428 9.78967C12.9161 10.1357 13.1134 10.497 13.4608 10.623C13.8074 10.749 14.1701 10.5943 14.2961 10.2483C14.3808 10.0163 14.4674 9.78101 14.5261 9.53967C14.6128 9.18234 14.4041 8.81433 14.0454 8.72766Z" })
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
2082
|
function InfoSquare(props) {
|
|
2219
2083
|
return /* @__PURE__ */ jsx("svg", {
|
|
2220
2084
|
...props,
|
|
@@ -2458,47 +2322,6 @@ function Person(props) {
|
|
|
2458
2322
|
children: /* @__PURE__ */ jsx("path", { d: "M7.9974 1.30273C6.15646 1.30273 4.66406 2.79513 4.66406 4.63607C4.66406 6.477 6.15646 7.9694 7.9974 7.9694C9.83833 7.9694 11.3307 6.477 11.3307 4.63607C11.3307 2.79513 9.83833 1.30273 7.9974 1.30273ZM5.64326 8.8444C3.9004 9.32073 2.66406 10.8362 2.66406 12.6361V13.9694C2.66406 14.3376 2.96253 14.6361 3.33073 14.6361H12.6641C13.0323 14.6361 13.3307 14.3376 13.3307 13.9694V12.6361C13.3307 10.8362 12.0944 9.32073 10.3515 8.8444C10.2021 8.80353 10.0553 8.8224 9.91406 8.88607C9.30373 9.16113 8.654 9.30273 7.9974 9.30273C7.3408 9.30273 6.69106 9.16113 6.08073 8.88607C5.93946 8.8224 5.79266 8.80353 5.64326 8.8444Z" })
|
|
2459
2323
|
});
|
|
2460
2324
|
}
|
|
2461
|
-
function Pin(props) {
|
|
2462
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2463
|
-
...props,
|
|
2464
|
-
viewBox: "0 0 16 16",
|
|
2465
|
-
fill: "none",
|
|
2466
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2467
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
2468
|
-
fillRule: "evenodd",
|
|
2469
|
-
clipRule: "evenodd",
|
|
2470
|
-
d: "M11.017 1.212C10.8087 1.00372 10.471 1.00372 10.2627 1.212C10.0545 1.42028 10.0545 1.75796 10.2627 1.96624L10.9593 2.66279L5.7873 6.54177L4.60589 5.36036C4.39761 5.15208 4.05992 5.15208 3.85164 5.36036C3.64336 5.56864 3.64336 5.90632 3.85164 6.1146L5.36014 7.6231L6.49157 8.75454C6.49156 8.75455 6.49154 8.75457 6.49153 8.75458L3.00313 12.243C2.79485 12.4513 2.79485 12.7889 3.00313 12.9972C3.21141 13.2055 3.5491 13.2055 3.75738 12.9972L7.24577 9.50883C7.24579 9.50882 7.24581 9.5088 7.24582 9.50878L8.37712 10.6401L9.88562 12.1486C10.0939 12.3569 10.4316 12.3569 10.6399 12.1486C10.8481 11.9403 10.8481 11.6026 10.6399 11.3943L9.45845 10.2129L13.3374 5.04094L14.034 5.73748C14.2423 5.94576 14.5799 5.94576 14.7882 5.73748C14.9965 5.5292 14.9965 5.19151 14.7882 4.98323L13.6569 3.85186L12.1484 2.34337L11.017 1.212ZM6.54921 7.30368L11.7212 3.42469L12.5755 4.27903L8.69654 9.45101L6.54921 7.30368Z",
|
|
2471
|
-
fill: "currentcolor"
|
|
2472
|
-
})
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2475
|
-
function PinFilled(props) {
|
|
2476
|
-
return /* @__PURE__ */ jsxs("svg", {
|
|
2477
|
-
...props,
|
|
2478
|
-
viewBox: "0 0 16 16",
|
|
2479
|
-
fill: "none",
|
|
2480
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2481
|
-
children: [/* @__PURE__ */ jsx("path", {
|
|
2482
|
-
fillRule: "evenodd",
|
|
2483
|
-
clipRule: "evenodd",
|
|
2484
|
-
d: "M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",
|
|
2485
|
-
fill: "currentcolor"
|
|
2486
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
2487
|
-
fillRule: "evenodd",
|
|
2488
|
-
clipRule: "evenodd",
|
|
2489
|
-
d: "M10.2627 1.21187C10.471 1.00359 10.8087 1.00359 11.017 1.21187L12.1484 2.34324L13.6569 3.85174L14.7882 4.98311C14.9965 5.19139 14.9965 5.52908 14.7882 5.73736C14.5799 5.94564 14.2423 5.94564 14.034 5.73736L13.3374 5.04081L9.45845 10.2128L10.6399 11.3942C10.8481 11.6025 10.8481 11.9402 10.6399 12.1485C10.4316 12.3567 10.0939 12.3567 9.88562 12.1485L8.37712 10.64L7.24582 9.50866C7.24581 9.50868 7.24579 9.50869 7.24577 9.50871L3.75738 12.9971C3.5491 13.2054 3.21141 13.2054 3.00313 12.9971C2.79485 12.7888 2.79485 12.4511 3.00313 12.2429L6.49153 8.75446C6.49154 8.75445 6.49156 8.75443 6.49157 8.75441L5.36014 7.62298L3.85164 6.11448C3.64336 5.9062 3.64336 5.56851 3.85164 5.36023C4.05992 5.15195 4.39761 5.15195 4.60589 5.36023L5.7873 6.54165L10.9593 2.66266L10.2627 1.96612C10.0545 1.75784 10.0545 1.42015 10.2627 1.21187Z",
|
|
2490
|
-
fill: "currentcolor"
|
|
2491
|
-
})]
|
|
2492
|
-
});
|
|
2493
|
-
}
|
|
2494
|
-
function Plus(props) {
|
|
2495
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2496
|
-
...props,
|
|
2497
|
-
viewBox: "0 0 18 19",
|
|
2498
|
-
fill: "currentcolor",
|
|
2499
|
-
children: /* @__PURE__ */ jsx("path", { d: "M8.99072 0.929749C8.43872 0.929749 7.99072 1.37775 7.99072 1.92975V8.92975H0.990723C0.438723 8.92975 -0.00927734 9.37775 -0.00927734 9.92975C-0.00927734 10.4817 0.438723 10.9297 0.990723 10.9297H7.99072V17.9297C7.99072 18.4817 8.43872 18.9297 8.99072 18.9297C9.54272 18.9297 9.99072 18.4817 9.99072 17.9297V10.9297H16.9907C17.5427 10.9297 17.9907 10.4817 17.9907 9.92975C17.9907 9.37775 17.5427 8.92975 16.9907 8.92975H9.99072V1.92975C9.99072 1.37775 9.54272 0.929749 8.99072 0.929749Z" })
|
|
2500
|
-
});
|
|
2501
|
-
}
|
|
2502
2325
|
function PlusCircle(props) {
|
|
2503
2326
|
return /* @__PURE__ */ jsx("svg", {
|
|
2504
2327
|
...props,
|
|
@@ -2507,20 +2330,6 @@ function PlusCircle(props) {
|
|
|
2507
2330
|
children: /* @__PURE__ */ jsx("path", { d: "M8.00846 1.30273C4.3266 1.30273 1.3418 4.2874 1.3418 7.9694C1.3418 11.6514 4.3266 14.6361 8.00846 14.6361C11.6903 14.6361 14.6751 11.6514 14.6751 7.9694C14.6751 4.2874 11.6903 1.30273 8.00846 1.30273ZM8.00846 4.63607C8.37667 4.63607 8.67513 4.93473 8.67513 5.30273V7.30273H10.6751C11.0433 7.30273 11.3418 7.6014 11.3418 7.9694C11.3418 8.3374 11.0433 8.63606 10.6751 8.63606H8.67513V10.6361C8.67513 11.0041 8.37667 11.3027 8.00846 11.3027C7.64026 11.3027 7.3418 11.0041 7.3418 10.6361V8.63606H5.3418C4.9736 8.63606 4.67513 8.3374 4.67513 7.9694C4.67513 7.6014 4.9736 7.30273 5.3418 7.30273H7.3418V5.30273C7.3418 4.93473 7.64026 4.63607 8.00846 4.63607Z" })
|
|
2508
2331
|
});
|
|
2509
2332
|
}
|
|
2510
|
-
function PlusSquare(props) {
|
|
2511
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2512
|
-
...props,
|
|
2513
|
-
width: "32",
|
|
2514
|
-
height: "32",
|
|
2515
|
-
viewBox: "0 0 32 32",
|
|
2516
|
-
fill: "none",
|
|
2517
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
2519
|
-
d: "M9.32113 3.90637C6.3758 3.90637 3.98779 6.29437 3.98779 9.2397L3.98779 22.573C3.98779 25.5184 6.3758 27.9064 9.32113 27.9064L22.6545 27.9064C25.5998 27.9064 27.9878 25.5184 27.9878 22.573L27.9878 9.2397C27.9878 6.29437 25.5998 3.90637 22.6545 3.90637L9.32113 3.90637ZM9.32113 6.57304L22.6545 6.57304C24.1278 6.57304 25.3212 7.76637 25.3212 9.2397L25.3212 22.573C25.3212 24.0464 24.1278 25.2397 22.6545 25.2397L9.32113 25.2397C7.8478 25.2397 6.65446 24.0464 6.65446 22.573L6.65446 9.2397C6.65446 7.76637 7.8478 6.57304 9.32113 6.57304ZM15.9878 9.2397C15.2518 9.2397 14.6545 9.83704 14.6545 10.573L14.6545 14.573L10.6545 14.573C9.91847 14.573 9.32113 15.1704 9.32113 15.9064C9.32113 16.6424 9.91847 17.2397 10.6545 17.2397L14.6545 17.2397L14.6545 21.2397C14.6545 21.9757 15.2518 22.573 15.9878 22.573C16.7238 22.573 17.3211 21.9757 17.3211 21.2397L17.3211 17.2397L21.3212 17.2397C22.0572 17.2397 22.6545 16.6424 22.6545 15.9064C22.6545 15.1704 22.0572 14.573 21.3212 14.573L17.3211 14.573L17.3211 10.573C17.3211 9.83704 16.7238 9.2397 15.9878 9.2397Z",
|
|
2520
|
-
fill: "currentColor"
|
|
2521
|
-
})
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
2333
|
function PowerhouseDocumentModule(props) {
|
|
2525
2334
|
return /* @__PURE__ */ jsxs("svg", {
|
|
2526
2335
|
...props,
|
|
@@ -2630,18 +2439,6 @@ function PowerhouseDocumentModule(props) {
|
|
|
2630
2439
|
})] })]
|
|
2631
2440
|
});
|
|
2632
2441
|
}
|
|
2633
|
-
function PowerhouseLogoSmall(props) {
|
|
2634
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
2635
|
-
...props,
|
|
2636
|
-
viewBox: "0 0 16 16",
|
|
2637
|
-
fill: "currentcolor",
|
|
2638
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
2639
|
-
fillRule: "evenodd",
|
|
2640
|
-
clipRule: "evenodd",
|
|
2641
|
-
d: "M10.0059 0L3.41636 5.45646C2.44979 6.25682 2.3795 7.71452 3.26456 8.60418L5.54425 10.8957C6.21311 11.568 6.35783 12.6012 5.89944 13.4314L4.48126 16H2.13333C0.955126 16 0 15.0449 0 13.8667V2.13333C0 0.955126 0.955126 0 2.13333 0H10.0059ZM11.2436 0L10.0128 2.24221C9.55899 3.06891 9.70183 4.09549 10.3641 4.7669L12.7825 7.21868C13.6656 8.11402 13.5866 9.57512 12.612 10.37L5.70922 16H13.8667C15.0449 16 16 15.0449 16 13.8667V2.13333C16 0.955126 15.0449 0 13.8667 0H11.2436Z"
|
|
2642
|
-
})
|
|
2643
|
-
});
|
|
2644
|
-
}
|
|
2645
2442
|
function Project(props) {
|
|
2646
2443
|
return /* @__PURE__ */ jsx("svg", {
|
|
2647
2444
|
...props,
|
|
@@ -3084,22 +2881,6 @@ function SubgraphModule(props) {
|
|
|
3084
2881
|
})] })]
|
|
3085
2882
|
});
|
|
3086
2883
|
}
|
|
3087
|
-
function Synced(props) {
|
|
3088
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
3089
|
-
...props,
|
|
3090
|
-
viewBox: "0 0 16 16",
|
|
3091
|
-
fill: "currentcolor",
|
|
3092
|
-
children: /* @__PURE__ */ jsx("path", { d: "M8.01042 1.3418C4.32842 1.3418 1.34375 4.3266 1.34375 8.00847C1.34375 11.6905 4.32842 14.6751 8.01042 14.6751C11.6924 14.6751 14.6771 11.6905 14.6771 8.00847C14.6771 4.3266 11.6924 1.3418 8.01042 1.3418ZM8.01042 4.67513C8.37842 4.67513 8.67708 4.9736 8.67708 5.3418V8.67514H10.6771L8.01042 11.3418L5.34375 8.67514H7.34375V5.3418C7.34375 4.9736 7.64242 4.67513 8.01042 4.67513Z" })
|
|
3093
|
-
});
|
|
3094
|
-
}
|
|
3095
|
-
function Syncing(props) {
|
|
3096
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
3097
|
-
...props,
|
|
3098
|
-
viewBox: "0 0 16 16",
|
|
3099
|
-
fill: "currentcolor",
|
|
3100
|
-
children: /* @__PURE__ */ jsx("path", { d: "M7.81333 1.33662C6.07787 1.38545 4.42992 2.10935 3.21991 3.35437C2.0099 4.59939 1.3333 6.26732 1.33398 8.00346C1.33478 9.7711 2.03752 11.4661 3.28771 12.7157C4.5379 13.9653 6.23319 14.6673 8.00083 14.6673C9.76847 14.6673 11.4638 13.9653 12.714 12.7157C13.9641 11.4661 14.6669 9.7711 14.6677 8.00346C14.668 7.11195 14.4896 6.22943 14.1429 5.4081C13.7962 4.58678 13.2883 3.84332 12.6492 3.22173C12.0101 2.60015 11.2529 2.11306 10.4222 1.78926C9.59161 1.46547 8.70448 1.31155 7.81333 1.33662ZM8.00083 4.67003C8.92086 4.67003 9.75038 5.00753 10.3551 5.60755L11.3343 4.67003V7.33679H11.2718H10.2093H8.66755L9.62591 6.33676C9.21457 5.93674 8.64705 5.67005 8.0217 5.67005C6.98901 5.67005 6.13082 6.4034 5.83414 7.33679H4.72995C5.04062 5.80341 6.39012 4.67003 8.00083 4.67003ZM4.66741 8.67016H4.72988H5.79241H7.33412L6.37576 9.60768C6.7871 10.0077 7.35461 10.2744 7.97997 10.2744C9.01266 10.2744 9.87085 9.60351 10.1675 8.67016H11.2717C10.961 10.1368 9.61151 11.3369 8.0008 11.3369C7.08078 11.3369 6.25125 10.9369 5.64657 10.3369L4.66738 11.3369L4.66741 8.67016Z" })
|
|
3101
|
-
});
|
|
3102
|
-
}
|
|
3103
2884
|
function Timeline(props) {
|
|
3104
2885
|
return /* @__PURE__ */ jsxs("svg", {
|
|
3105
2886
|
...props,
|
|
@@ -3227,14 +3008,6 @@ function VariantArrowLeft(props) {
|
|
|
3227
3008
|
children: /* @__PURE__ */ jsx("path", { d: "M4.09245 12.0893L4 11.9998L4.09245 11.9103L4.66414 11.3568L4.66493 11.356L9.81374 6.37154C10.1808 6.01623 10.7758 6.01623 11.1428 6.37154C11.5098 6.72685 11.5098 7.30291 11.1428 7.65822L7.59798 11.09L19.0602 11.09C19.5792 11.09 20 11.4973 20 11.9998C20 12.5023 19.5792 12.9096 19.0602 12.9096L7.59798 12.9096L11.1428 16.3413C11.5098 16.6967 11.5098 17.2727 11.1428 17.628C10.7758 17.9834 10.1808 17.9834 9.81375 17.628L4.66493 12.6435L4.66414 12.6427L4.09245 12.0893Z" })
|
|
3228
3009
|
});
|
|
3229
3010
|
}
|
|
3230
|
-
function VerticalDots(props) {
|
|
3231
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
3232
|
-
...props,
|
|
3233
|
-
viewBox: "0 0 24 24",
|
|
3234
|
-
fill: "currentcolor",
|
|
3235
|
-
children: /* @__PURE__ */ jsx("path", { d: "M14.0098 3.95312C14.0098 2.84812 13.1144 1.95312 12.0098 1.95312C10.9052 1.95312 10.0098 2.84812 10.0098 3.95312C10.0098 5.05812 10.9052 5.95311 12.0098 5.95311C13.1144 5.95311 14.0098 5.05812 14.0098 3.95312ZM14.0098 11.9531C14.0098 10.8481 13.1144 9.9531 12.0098 9.9531C10.9052 9.9531 10.0098 10.8481 10.0098 11.9531C10.0098 13.0581 10.9052 13.9531 12.0098 13.9531C13.1144 13.9531 14.0098 13.0581 14.0098 11.9531ZM14.0098 19.9531C14.0098 18.8481 13.1144 17.9531 12.0098 17.9531C10.9052 17.9531 10.0098 18.8481 10.0098 19.9531C10.0098 21.0581 10.9052 21.9531 12.0098 21.9531C13.1144 21.9531 14.0098 21.0581 14.0098 19.9531Z" })
|
|
3236
|
-
});
|
|
3237
|
-
}
|
|
3238
3011
|
function WarningFill(props) {
|
|
3239
3012
|
return /* @__PURE__ */ jsx("svg", {
|
|
3240
3013
|
...props,
|
|
@@ -3267,14 +3040,6 @@ function Xmark(props) {
|
|
|
3267
3040
|
})
|
|
3268
3041
|
});
|
|
3269
3042
|
}
|
|
3270
|
-
function XmarkLight(props) {
|
|
3271
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
3272
|
-
...props,
|
|
3273
|
-
viewBox: "0 0 16 16",
|
|
3274
|
-
fill: "currentcolor",
|
|
3275
|
-
children: /* @__PURE__ */ jsx("path", { d: "M3.32875 2.60352C3.15815 2.60352 2.97975 2.66085 2.84955 2.79085C2.58921 3.05152 2.58921 3.48884 2.84955 3.74951L7.03708 7.93685L2.84955 12.1242C2.58921 12.3849 2.58921 12.8222 2.84955 13.0828C3.10995 13.3428 3.54755 13.3428 3.80795 13.0828L7.99541 8.89552L12.1829 13.0828C12.4433 13.3428 12.8809 13.3428 13.1413 13.0828C13.4016 12.8222 13.4016 12.3849 13.1413 12.1242L8.95375 7.93685L13.1413 3.74951C13.4016 3.48884 13.4016 3.05152 13.1413 2.79085C13.0111 2.66085 12.8326 2.60352 12.6621 2.60352C12.4915 2.60352 12.3131 2.66085 12.1829 2.79085L7.99541 6.97818L3.80795 2.79085C3.67775 2.66085 3.49935 2.60352 3.32875 2.60352Z" })
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
3043
|
function Youtube(props) {
|
|
3279
3044
|
return /* @__PURE__ */ jsx("svg", {
|
|
3280
3045
|
...props,
|
|
@@ -3343,7 +3108,7 @@ const iconComponents = {
|
|
|
3343
3108
|
Edit,
|
|
3344
3109
|
EditorModule,
|
|
3345
3110
|
Ellipsis,
|
|
3346
|
-
Error
|
|
3111
|
+
Error,
|
|
3347
3112
|
Ethscan,
|
|
3348
3113
|
Exclamation,
|
|
3349
3114
|
ExportCsv,
|
|
@@ -3417,993 +3182,7 @@ const iconComponents = {
|
|
|
3417
3182
|
XmarkLight,
|
|
3418
3183
|
Youtube
|
|
3419
3184
|
};
|
|
3420
|
-
function getDimensions(size) {
|
|
3421
|
-
if (!size) return {};
|
|
3422
|
-
if (typeof size === "number") return {
|
|
3423
|
-
width: size.toString() + "px",
|
|
3424
|
-
height: size.toString() + "px"
|
|
3425
|
-
};
|
|
3426
|
-
return {
|
|
3427
|
-
width: String(size),
|
|
3428
|
-
height: String(size)
|
|
3429
|
-
};
|
|
3430
|
-
}
|
|
3431
|
-
function Icon({ name, size = 24, color, style, ...props }) {
|
|
3432
|
-
const dimensions = getDimensions(size);
|
|
3433
|
-
const _style = {
|
|
3434
|
-
color,
|
|
3435
|
-
...dimensions,
|
|
3436
|
-
style
|
|
3437
|
-
};
|
|
3438
|
-
const IconComponent = iconComponents[name];
|
|
3439
|
-
return /* @__PURE__ */ jsx(Suspense, {
|
|
3440
|
-
fallback: /* @__PURE__ */ jsx("div", {
|
|
3441
|
-
"data-testid": "icon-fallback",
|
|
3442
|
-
style: dimensions
|
|
3443
|
-
}),
|
|
3444
|
-
name: "icon-component",
|
|
3445
|
-
children: /* @__PURE__ */ jsx(IconComponent, {
|
|
3446
|
-
...props,
|
|
3447
|
-
style: _style
|
|
3448
|
-
})
|
|
3449
|
-
});
|
|
3450
|
-
}
|
|
3451
|
-
//#endregion
|
|
3452
|
-
//#region editors/generic-drive-explorer/utils/select-creatable-modules.ts
|
|
3453
|
-
/**
|
|
3454
|
-
* The modules a user may pick from when creating a new document. Outside
|
|
3455
|
-
* studio mode only the latest version of each document type is offered: new
|
|
3456
|
-
* documents should never start on an outdated schema. Builders testing
|
|
3457
|
-
* migrations run in studio mode and still get every version.
|
|
3458
|
-
*/
|
|
3459
|
-
function selectCreatableModules(modules, studioMode) {
|
|
3460
|
-
if (studioMode) return [...modules];
|
|
3461
|
-
const latestByType = /* @__PURE__ */ new Map();
|
|
3462
|
-
for (const module of modules) {
|
|
3463
|
-
const id = module.documentModel.global.id;
|
|
3464
|
-
const current = latestByType.get(id);
|
|
3465
|
-
if (!current || (module.version ?? 1) > (current.version ?? 1)) latestByType.set(id, module);
|
|
3466
|
-
}
|
|
3467
|
-
return [...latestByType.values()];
|
|
3468
|
-
}
|
|
3469
|
-
//#endregion
|
|
3470
|
-
//#region editors/generic-drive-explorer/components/create-document.tsx
|
|
3471
|
-
function toDocumentTypeOption(doc, studioMode) {
|
|
3472
|
-
const spec = doc.documentModel.global;
|
|
3473
|
-
return {
|
|
3474
|
-
documentType: spec.id,
|
|
3475
|
-
name: spec.name,
|
|
3476
|
-
version: studioMode ? doc.version : void 0,
|
|
3477
|
-
description: spec.description
|
|
3478
|
-
};
|
|
3479
|
-
}
|
|
3480
|
-
function CreateDocument() {
|
|
3481
|
-
const [showModal, setShowModal] = useState(false);
|
|
3482
|
-
const { isAllowedToCreateDocuments } = useUserPermissions();
|
|
3483
|
-
const allowedDocumentModelModules = useAllowedDocumentModelModules();
|
|
3484
|
-
const editorModules = useEditorModules();
|
|
3485
|
-
const disabledEditors = useDisabledEditors() ?? [];
|
|
3486
|
-
const [selectedDrive] = useSelectedDriveSafe();
|
|
3487
|
-
const selectedFolder = useSelectedFolder();
|
|
3488
|
-
const parentFolder = useParentFolderForSelectedNode();
|
|
3489
|
-
const DRIVE_CONTAINER_TYPES = ["powerhouse/document-drive", "powerhouse/reactor-drive"];
|
|
3490
|
-
const studioMode = useStudioMode() ?? false;
|
|
3491
|
-
const visibleDocumentModelModules = selectCreatableModules(allowedDocumentModelModules ?? [], studioMode).filter((module) => {
|
|
3492
|
-
const id = module.documentModel.global.id;
|
|
3493
|
-
return !DRIVE_CONTAINER_TYPES.includes(id) && !disabledEditors.includes(id);
|
|
3494
|
-
});
|
|
3495
|
-
const preloadEditorsForType = (documentType) => editorModules?.filter((editorModule) => editorModule.documentTypes.includes(documentType)).forEach((editorModule) => {
|
|
3496
|
-
preloadEditorModule(editorModule);
|
|
3497
|
-
});
|
|
3498
|
-
const handleCreate = async ({ name, documentType, version }) => {
|
|
3499
|
-
setShowModal(false);
|
|
3500
|
-
if (!selectedDrive) return;
|
|
3501
|
-
try {
|
|
3502
|
-
const node = await addDocument(selectedDrive.header.id, name, documentType, selectedFolder?.id ?? parentFolder?.id, void 0, void 0, void 0, version);
|
|
3503
|
-
setSelectedNode(node);
|
|
3504
|
-
} catch (error) {
|
|
3505
|
-
console.error("Failed to create document:", error);
|
|
3506
|
-
}
|
|
3507
|
-
};
|
|
3508
|
-
if (!isAllowedToCreateDocuments) return null;
|
|
3509
|
-
if (!visibleDocumentModelModules.length) return null;
|
|
3510
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PowerhouseButton, {
|
|
3511
|
-
className: "py-2",
|
|
3512
|
-
color: "blue",
|
|
3513
|
-
icon: /* @__PURE__ */ jsx(Icon, {
|
|
3514
|
-
name: "Plus",
|
|
3515
|
-
size: 14
|
|
3516
|
-
}),
|
|
3517
|
-
onClick: () => setShowModal(true),
|
|
3518
|
-
size: "small",
|
|
3519
|
-
children: "Create New Document"
|
|
3520
|
-
}), /* @__PURE__ */ jsx(CreateDocumentWithTypeModal, {
|
|
3521
|
-
documentTypes: visibleDocumentModelModules.map((module) => toDocumentTypeOption(module, studioMode)),
|
|
3522
|
-
onCreate: (input) => void handleCreate(input),
|
|
3523
|
-
onOpenChange: setShowModal,
|
|
3524
|
-
onTypeSelected: preloadEditorsForType,
|
|
3525
|
-
open: showModal
|
|
3526
|
-
})] });
|
|
3527
|
-
}
|
|
3528
|
-
//#endregion
|
|
3529
|
-
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.13.19/node_modules/@tanstack/virtual-core/dist/esm/utils.js
|
|
3530
|
-
function memo$1(getDeps, fn, opts) {
|
|
3531
|
-
let deps = opts.initialDeps ?? [];
|
|
3532
|
-
let result;
|
|
3533
|
-
let isInitial = true;
|
|
3534
|
-
function memoizedFunction() {
|
|
3535
|
-
var _a, _b, _c;
|
|
3536
|
-
let depTime;
|
|
3537
|
-
if (opts.key && ((_a = opts.debug) == null ? void 0 : _a.call(opts))) depTime = Date.now();
|
|
3538
|
-
const newDeps = getDeps();
|
|
3539
|
-
if (!(newDeps.length !== deps.length || newDeps.some((dep, index) => deps[index] !== dep))) return result;
|
|
3540
|
-
deps = newDeps;
|
|
3541
|
-
let resultTime;
|
|
3542
|
-
if (opts.key && ((_b = opts.debug) == null ? void 0 : _b.call(opts))) resultTime = Date.now();
|
|
3543
|
-
result = fn(...newDeps);
|
|
3544
|
-
if (opts.key && ((_c = opts.debug) == null ? void 0 : _c.call(opts))) {
|
|
3545
|
-
const depEndTime = Math.round((Date.now() - depTime) * 100) / 100;
|
|
3546
|
-
const resultEndTime = Math.round((Date.now() - resultTime) * 100) / 100;
|
|
3547
|
-
const resultFpsPercentage = resultEndTime / 16;
|
|
3548
|
-
const pad = (str, num) => {
|
|
3549
|
-
str = String(str);
|
|
3550
|
-
while (str.length < num) str = " " + str;
|
|
3551
|
-
return str;
|
|
3552
|
-
};
|
|
3553
|
-
console.info(`%c⏱ ${pad(resultEndTime, 5)} /${pad(depEndTime, 5)} ms`, `
|
|
3554
|
-
font-size: .6rem;
|
|
3555
|
-
font-weight: bold;
|
|
3556
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 * resultFpsPercentage, 120))}deg 100% 31%);`, opts == null ? void 0 : opts.key);
|
|
3557
|
-
}
|
|
3558
|
-
if ((opts == null ? void 0 : opts.onChange) && !(isInitial && opts.skipInitialOnChange)) opts.onChange(result);
|
|
3559
|
-
isInitial = false;
|
|
3560
|
-
return result;
|
|
3561
|
-
}
|
|
3562
|
-
memoizedFunction.updateDeps = (newDeps) => {
|
|
3563
|
-
deps = newDeps;
|
|
3564
|
-
};
|
|
3565
|
-
return memoizedFunction;
|
|
3566
|
-
}
|
|
3567
|
-
function notUndefined(value, msg) {
|
|
3568
|
-
if (value === void 0) throw new Error(`Unexpected undefined${msg ? `: ${msg}` : ""}`);
|
|
3569
|
-
else return value;
|
|
3570
|
-
}
|
|
3571
|
-
const approxEqual = (a, b) => Math.abs(a - b) < 1.01;
|
|
3572
|
-
const debounce = (targetWindow, fn, ms) => {
|
|
3573
|
-
let timeoutId;
|
|
3574
|
-
return function(...args) {
|
|
3575
|
-
targetWindow.clearTimeout(timeoutId);
|
|
3576
|
-
timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
|
|
3577
|
-
};
|
|
3578
|
-
};
|
|
3579
|
-
//#endregion
|
|
3580
|
-
//#region ../../node_modules/.pnpm/@tanstack+virtual-core@3.13.19/node_modules/@tanstack/virtual-core/dist/esm/index.js
|
|
3581
|
-
const getRect = (element) => {
|
|
3582
|
-
const { offsetWidth, offsetHeight } = element;
|
|
3583
|
-
return {
|
|
3584
|
-
width: offsetWidth,
|
|
3585
|
-
height: offsetHeight
|
|
3586
|
-
};
|
|
3587
|
-
};
|
|
3588
|
-
const defaultKeyExtractor = (index) => index;
|
|
3589
|
-
const defaultRangeExtractor = (range) => {
|
|
3590
|
-
const start = Math.max(range.startIndex - range.overscan, 0);
|
|
3591
|
-
const end = Math.min(range.endIndex + range.overscan, range.count - 1);
|
|
3592
|
-
const arr = [];
|
|
3593
|
-
for (let i = start; i <= end; i++) arr.push(i);
|
|
3594
|
-
return arr;
|
|
3595
|
-
};
|
|
3596
|
-
const observeElementRect = (instance, cb) => {
|
|
3597
|
-
const element = instance.scrollElement;
|
|
3598
|
-
if (!element) return;
|
|
3599
|
-
const targetWindow = instance.targetWindow;
|
|
3600
|
-
if (!targetWindow) return;
|
|
3601
|
-
const handler = (rect) => {
|
|
3602
|
-
const { width, height } = rect;
|
|
3603
|
-
cb({
|
|
3604
|
-
width: Math.round(width),
|
|
3605
|
-
height: Math.round(height)
|
|
3606
|
-
});
|
|
3607
|
-
};
|
|
3608
|
-
handler(getRect(element));
|
|
3609
|
-
if (!targetWindow.ResizeObserver) return () => {};
|
|
3610
|
-
const observer = new targetWindow.ResizeObserver((entries) => {
|
|
3611
|
-
const run = () => {
|
|
3612
|
-
const entry = entries[0];
|
|
3613
|
-
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
3614
|
-
const box = entry.borderBoxSize[0];
|
|
3615
|
-
if (box) {
|
|
3616
|
-
handler({
|
|
3617
|
-
width: box.inlineSize,
|
|
3618
|
-
height: box.blockSize
|
|
3619
|
-
});
|
|
3620
|
-
return;
|
|
3621
|
-
}
|
|
3622
|
-
}
|
|
3623
|
-
handler(getRect(element));
|
|
3624
|
-
};
|
|
3625
|
-
instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
3626
|
-
});
|
|
3627
|
-
observer.observe(element, { box: "border-box" });
|
|
3628
|
-
return () => {
|
|
3629
|
-
observer.unobserve(element);
|
|
3630
|
-
};
|
|
3631
|
-
};
|
|
3632
|
-
const addEventListenerOptions = { passive: true };
|
|
3633
|
-
const supportsScrollend = typeof window == "undefined" ? true : "onscrollend" in window;
|
|
3634
|
-
const observeElementOffset = (instance, cb) => {
|
|
3635
|
-
const element = instance.scrollElement;
|
|
3636
|
-
if (!element) return;
|
|
3637
|
-
const targetWindow = instance.targetWindow;
|
|
3638
|
-
if (!targetWindow) return;
|
|
3639
|
-
let offset = 0;
|
|
3640
|
-
const fallback = instance.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce(targetWindow, () => {
|
|
3641
|
-
cb(offset, false);
|
|
3642
|
-
}, instance.options.isScrollingResetDelay);
|
|
3643
|
-
const createHandler = (isScrolling) => () => {
|
|
3644
|
-
const { horizontal, isRtl } = instance.options;
|
|
3645
|
-
offset = horizontal ? element["scrollLeft"] * (isRtl && -1 || 1) : element["scrollTop"];
|
|
3646
|
-
fallback();
|
|
3647
|
-
cb(offset, isScrolling);
|
|
3648
|
-
};
|
|
3649
|
-
const handler = createHandler(true);
|
|
3650
|
-
const endHandler = createHandler(false);
|
|
3651
|
-
element.addEventListener("scroll", handler, addEventListenerOptions);
|
|
3652
|
-
const registerScrollendEvent = instance.options.useScrollendEvent && supportsScrollend;
|
|
3653
|
-
if (registerScrollendEvent) element.addEventListener("scrollend", endHandler, addEventListenerOptions);
|
|
3654
|
-
return () => {
|
|
3655
|
-
element.removeEventListener("scroll", handler);
|
|
3656
|
-
if (registerScrollendEvent) element.removeEventListener("scrollend", endHandler);
|
|
3657
|
-
};
|
|
3658
|
-
};
|
|
3659
|
-
const measureElement = (element, entry, instance) => {
|
|
3660
|
-
if (entry == null ? void 0 : entry.borderBoxSize) {
|
|
3661
|
-
const box = entry.borderBoxSize[0];
|
|
3662
|
-
if (box) return Math.round(box[instance.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
3663
|
-
}
|
|
3664
|
-
return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
3665
|
-
};
|
|
3666
|
-
const elementScroll = (offset, { adjustments = 0, behavior }, instance) => {
|
|
3667
|
-
var _a, _b;
|
|
3668
|
-
const toOffset = offset + adjustments;
|
|
3669
|
-
(_b = (_a = instance.scrollElement) == null ? void 0 : _a.scrollTo) == null || _b.call(_a, {
|
|
3670
|
-
[instance.options.horizontal ? "left" : "top"]: toOffset,
|
|
3671
|
-
behavior
|
|
3672
|
-
});
|
|
3673
|
-
};
|
|
3674
|
-
var Virtualizer = class {
|
|
3675
|
-
constructor(opts) {
|
|
3676
|
-
this.unsubs = [];
|
|
3677
|
-
this.scrollElement = null;
|
|
3678
|
-
this.targetWindow = null;
|
|
3679
|
-
this.isScrolling = false;
|
|
3680
|
-
this.currentScrollToIndex = null;
|
|
3681
|
-
this.measurementsCache = [];
|
|
3682
|
-
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
3683
|
-
this.laneAssignments = /* @__PURE__ */ new Map();
|
|
3684
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
3685
|
-
this.prevLanes = void 0;
|
|
3686
|
-
this.lanesChangedFlag = false;
|
|
3687
|
-
this.lanesSettling = false;
|
|
3688
|
-
this.scrollRect = null;
|
|
3689
|
-
this.scrollOffset = null;
|
|
3690
|
-
this.scrollDirection = null;
|
|
3691
|
-
this.scrollAdjustments = 0;
|
|
3692
|
-
this.elementsCache = /* @__PURE__ */ new Map();
|
|
3693
|
-
this.observer = /* @__PURE__ */ (() => {
|
|
3694
|
-
let _ro = null;
|
|
3695
|
-
const get = () => {
|
|
3696
|
-
if (_ro) return _ro;
|
|
3697
|
-
if (!this.targetWindow || !this.targetWindow.ResizeObserver) return null;
|
|
3698
|
-
return _ro = new this.targetWindow.ResizeObserver((entries) => {
|
|
3699
|
-
entries.forEach((entry) => {
|
|
3700
|
-
const run = () => {
|
|
3701
|
-
this._measureElement(entry.target, entry);
|
|
3702
|
-
};
|
|
3703
|
-
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
|
|
3704
|
-
});
|
|
3705
|
-
});
|
|
3706
|
-
};
|
|
3707
|
-
return {
|
|
3708
|
-
disconnect: () => {
|
|
3709
|
-
var _a;
|
|
3710
|
-
(_a = get()) == null || _a.disconnect();
|
|
3711
|
-
_ro = null;
|
|
3712
|
-
},
|
|
3713
|
-
observe: (target) => {
|
|
3714
|
-
var _a;
|
|
3715
|
-
return (_a = get()) == null ? void 0 : _a.observe(target, { box: "border-box" });
|
|
3716
|
-
},
|
|
3717
|
-
unobserve: (target) => {
|
|
3718
|
-
var _a;
|
|
3719
|
-
return (_a = get()) == null ? void 0 : _a.unobserve(target);
|
|
3720
|
-
}
|
|
3721
|
-
};
|
|
3722
|
-
})();
|
|
3723
|
-
this.range = null;
|
|
3724
|
-
this.setOptions = (opts2) => {
|
|
3725
|
-
Object.entries(opts2).forEach(([key, value]) => {
|
|
3726
|
-
if (typeof value === "undefined") delete opts2[key];
|
|
3727
|
-
});
|
|
3728
|
-
this.options = {
|
|
3729
|
-
debug: false,
|
|
3730
|
-
initialOffset: 0,
|
|
3731
|
-
overscan: 1,
|
|
3732
|
-
paddingStart: 0,
|
|
3733
|
-
paddingEnd: 0,
|
|
3734
|
-
scrollPaddingStart: 0,
|
|
3735
|
-
scrollPaddingEnd: 0,
|
|
3736
|
-
horizontal: false,
|
|
3737
|
-
getItemKey: defaultKeyExtractor,
|
|
3738
|
-
rangeExtractor: defaultRangeExtractor,
|
|
3739
|
-
onChange: () => {},
|
|
3740
|
-
measureElement,
|
|
3741
|
-
initialRect: {
|
|
3742
|
-
width: 0,
|
|
3743
|
-
height: 0
|
|
3744
|
-
},
|
|
3745
|
-
scrollMargin: 0,
|
|
3746
|
-
gap: 0,
|
|
3747
|
-
indexAttribute: "data-index",
|
|
3748
|
-
initialMeasurementsCache: [],
|
|
3749
|
-
lanes: 1,
|
|
3750
|
-
isScrollingResetDelay: 150,
|
|
3751
|
-
enabled: true,
|
|
3752
|
-
isRtl: false,
|
|
3753
|
-
useScrollendEvent: false,
|
|
3754
|
-
useAnimationFrameWithResizeObserver: false,
|
|
3755
|
-
...opts2
|
|
3756
|
-
};
|
|
3757
|
-
};
|
|
3758
|
-
this.notify = (sync) => {
|
|
3759
|
-
var _a, _b;
|
|
3760
|
-
(_b = (_a = this.options).onChange) == null || _b.call(_a, this, sync);
|
|
3761
|
-
};
|
|
3762
|
-
this.maybeNotify = memo$1(() => {
|
|
3763
|
-
this.calculateRange();
|
|
3764
|
-
return [
|
|
3765
|
-
this.isScrolling,
|
|
3766
|
-
this.range ? this.range.startIndex : null,
|
|
3767
|
-
this.range ? this.range.endIndex : null
|
|
3768
|
-
];
|
|
3769
|
-
}, (isScrolling) => {
|
|
3770
|
-
this.notify(isScrolling);
|
|
3771
|
-
}, {
|
|
3772
|
-
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
3773
|
-
debug: () => this.options.debug,
|
|
3774
|
-
initialDeps: [
|
|
3775
|
-
this.isScrolling,
|
|
3776
|
-
this.range ? this.range.startIndex : null,
|
|
3777
|
-
this.range ? this.range.endIndex : null
|
|
3778
|
-
]
|
|
3779
|
-
});
|
|
3780
|
-
this.cleanup = () => {
|
|
3781
|
-
this.unsubs.filter(Boolean).forEach((d) => d());
|
|
3782
|
-
this.unsubs = [];
|
|
3783
|
-
this.observer.disconnect();
|
|
3784
|
-
this.scrollElement = null;
|
|
3785
|
-
this.targetWindow = null;
|
|
3786
|
-
};
|
|
3787
|
-
this._didMount = () => {
|
|
3788
|
-
return () => {
|
|
3789
|
-
this.cleanup();
|
|
3790
|
-
};
|
|
3791
|
-
};
|
|
3792
|
-
this._willUpdate = () => {
|
|
3793
|
-
var _a;
|
|
3794
|
-
const scrollElement = this.options.enabled ? this.options.getScrollElement() : null;
|
|
3795
|
-
if (this.scrollElement !== scrollElement) {
|
|
3796
|
-
this.cleanup();
|
|
3797
|
-
if (!scrollElement) {
|
|
3798
|
-
this.maybeNotify();
|
|
3799
|
-
return;
|
|
3800
|
-
}
|
|
3801
|
-
this.scrollElement = scrollElement;
|
|
3802
|
-
if (this.scrollElement && "ownerDocument" in this.scrollElement) this.targetWindow = this.scrollElement.ownerDocument.defaultView;
|
|
3803
|
-
else this.targetWindow = ((_a = this.scrollElement) == null ? void 0 : _a.window) ?? null;
|
|
3804
|
-
this.elementsCache.forEach((cached) => {
|
|
3805
|
-
this.observer.observe(cached);
|
|
3806
|
-
});
|
|
3807
|
-
this.unsubs.push(this.options.observeElementRect(this, (rect) => {
|
|
3808
|
-
this.scrollRect = rect;
|
|
3809
|
-
this.maybeNotify();
|
|
3810
|
-
}));
|
|
3811
|
-
this.unsubs.push(this.options.observeElementOffset(this, (offset, isScrolling) => {
|
|
3812
|
-
this.scrollAdjustments = 0;
|
|
3813
|
-
this.scrollDirection = isScrolling ? this.getScrollOffset() < offset ? "forward" : "backward" : null;
|
|
3814
|
-
this.scrollOffset = offset;
|
|
3815
|
-
this.isScrolling = isScrolling;
|
|
3816
|
-
this.maybeNotify();
|
|
3817
|
-
}));
|
|
3818
|
-
this._scrollToOffset(this.getScrollOffset(), {
|
|
3819
|
-
adjustments: void 0,
|
|
3820
|
-
behavior: void 0
|
|
3821
|
-
});
|
|
3822
|
-
}
|
|
3823
|
-
};
|
|
3824
|
-
this.getSize = () => {
|
|
3825
|
-
if (!this.options.enabled) {
|
|
3826
|
-
this.scrollRect = null;
|
|
3827
|
-
return 0;
|
|
3828
|
-
}
|
|
3829
|
-
this.scrollRect = this.scrollRect ?? this.options.initialRect;
|
|
3830
|
-
return this.scrollRect[this.options.horizontal ? "width" : "height"];
|
|
3831
|
-
};
|
|
3832
|
-
this.getScrollOffset = () => {
|
|
3833
|
-
if (!this.options.enabled) {
|
|
3834
|
-
this.scrollOffset = null;
|
|
3835
|
-
return 0;
|
|
3836
|
-
}
|
|
3837
|
-
this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset);
|
|
3838
|
-
return this.scrollOffset;
|
|
3839
|
-
};
|
|
3840
|
-
this.getFurthestMeasurement = (measurements, index) => {
|
|
3841
|
-
const furthestMeasurementsFound = /* @__PURE__ */ new Map();
|
|
3842
|
-
const furthestMeasurements = /* @__PURE__ */ new Map();
|
|
3843
|
-
for (let m = index - 1; m >= 0; m--) {
|
|
3844
|
-
const measurement = measurements[m];
|
|
3845
|
-
if (furthestMeasurementsFound.has(measurement.lane)) continue;
|
|
3846
|
-
const previousFurthestMeasurement = furthestMeasurements.get(measurement.lane);
|
|
3847
|
-
if (previousFurthestMeasurement == null || measurement.end > previousFurthestMeasurement.end) furthestMeasurements.set(measurement.lane, measurement);
|
|
3848
|
-
else if (measurement.end < previousFurthestMeasurement.end) furthestMeasurementsFound.set(measurement.lane, true);
|
|
3849
|
-
if (furthestMeasurementsFound.size === this.options.lanes) break;
|
|
3850
|
-
}
|
|
3851
|
-
return furthestMeasurements.size === this.options.lanes ? Array.from(furthestMeasurements.values()).sort((a, b) => {
|
|
3852
|
-
if (a.end === b.end) return a.index - b.index;
|
|
3853
|
-
return a.end - b.end;
|
|
3854
|
-
})[0] : void 0;
|
|
3855
|
-
};
|
|
3856
|
-
this.getMeasurementOptions = memo$1(() => [
|
|
3857
|
-
this.options.count,
|
|
3858
|
-
this.options.paddingStart,
|
|
3859
|
-
this.options.scrollMargin,
|
|
3860
|
-
this.options.getItemKey,
|
|
3861
|
-
this.options.enabled,
|
|
3862
|
-
this.options.lanes
|
|
3863
|
-
], (count, paddingStart, scrollMargin, getItemKey, enabled, lanes) => {
|
|
3864
|
-
if (this.prevLanes !== void 0 && this.prevLanes !== lanes) this.lanesChangedFlag = true;
|
|
3865
|
-
this.prevLanes = lanes;
|
|
3866
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
3867
|
-
return {
|
|
3868
|
-
count,
|
|
3869
|
-
paddingStart,
|
|
3870
|
-
scrollMargin,
|
|
3871
|
-
getItemKey,
|
|
3872
|
-
enabled,
|
|
3873
|
-
lanes
|
|
3874
|
-
};
|
|
3875
|
-
}, { key: false });
|
|
3876
|
-
this.getMeasurements = memo$1(() => [this.getMeasurementOptions(), this.itemSizeCache], ({ count, paddingStart, scrollMargin, getItemKey, enabled, lanes }, itemSizeCache) => {
|
|
3877
|
-
if (!enabled) {
|
|
3878
|
-
this.measurementsCache = [];
|
|
3879
|
-
this.itemSizeCache.clear();
|
|
3880
|
-
this.laneAssignments.clear();
|
|
3881
|
-
return [];
|
|
3882
|
-
}
|
|
3883
|
-
if (this.laneAssignments.size > count) {
|
|
3884
|
-
for (const index of this.laneAssignments.keys()) if (index >= count) this.laneAssignments.delete(index);
|
|
3885
|
-
}
|
|
3886
|
-
if (this.lanesChangedFlag) {
|
|
3887
|
-
this.lanesChangedFlag = false;
|
|
3888
|
-
this.lanesSettling = true;
|
|
3889
|
-
this.measurementsCache = [];
|
|
3890
|
-
this.itemSizeCache.clear();
|
|
3891
|
-
this.laneAssignments.clear();
|
|
3892
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
3893
|
-
}
|
|
3894
|
-
if (this.measurementsCache.length === 0 && !this.lanesSettling) {
|
|
3895
|
-
this.measurementsCache = this.options.initialMeasurementsCache;
|
|
3896
|
-
this.measurementsCache.forEach((item) => {
|
|
3897
|
-
this.itemSizeCache.set(item.key, item.size);
|
|
3898
|
-
});
|
|
3899
|
-
}
|
|
3900
|
-
const min = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
3901
|
-
this.pendingMeasuredCacheIndexes = [];
|
|
3902
|
-
if (this.lanesSettling && this.measurementsCache.length === count) this.lanesSettling = false;
|
|
3903
|
-
const measurements = this.measurementsCache.slice(0, min);
|
|
3904
|
-
const laneLastIndex = new Array(lanes).fill(void 0);
|
|
3905
|
-
for (let m = 0; m < min; m++) {
|
|
3906
|
-
const item = measurements[m];
|
|
3907
|
-
if (item) laneLastIndex[item.lane] = m;
|
|
3908
|
-
}
|
|
3909
|
-
for (let i = min; i < count; i++) {
|
|
3910
|
-
const key = getItemKey(i);
|
|
3911
|
-
const cachedLane = this.laneAssignments.get(i);
|
|
3912
|
-
let lane;
|
|
3913
|
-
let start;
|
|
3914
|
-
if (cachedLane !== void 0 && this.options.lanes > 1) {
|
|
3915
|
-
lane = cachedLane;
|
|
3916
|
-
const prevIndex = laneLastIndex[lane];
|
|
3917
|
-
const prevInLane = prevIndex !== void 0 ? measurements[prevIndex] : void 0;
|
|
3918
|
-
start = prevInLane ? prevInLane.end + this.options.gap : paddingStart + scrollMargin;
|
|
3919
|
-
} else {
|
|
3920
|
-
const furthestMeasurement = this.options.lanes === 1 ? measurements[i - 1] : this.getFurthestMeasurement(measurements, i);
|
|
3921
|
-
start = furthestMeasurement ? furthestMeasurement.end + this.options.gap : paddingStart + scrollMargin;
|
|
3922
|
-
lane = furthestMeasurement ? furthestMeasurement.lane : i % this.options.lanes;
|
|
3923
|
-
if (this.options.lanes > 1) this.laneAssignments.set(i, lane);
|
|
3924
|
-
}
|
|
3925
|
-
const measuredSize = itemSizeCache.get(key);
|
|
3926
|
-
const size = typeof measuredSize === "number" ? measuredSize : this.options.estimateSize(i);
|
|
3927
|
-
const end = start + size;
|
|
3928
|
-
measurements[i] = {
|
|
3929
|
-
index: i,
|
|
3930
|
-
start,
|
|
3931
|
-
size,
|
|
3932
|
-
end,
|
|
3933
|
-
key,
|
|
3934
|
-
lane
|
|
3935
|
-
};
|
|
3936
|
-
laneLastIndex[lane] = i;
|
|
3937
|
-
}
|
|
3938
|
-
this.measurementsCache = measurements;
|
|
3939
|
-
return measurements;
|
|
3940
|
-
}, {
|
|
3941
|
-
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
3942
|
-
debug: () => this.options.debug
|
|
3943
|
-
});
|
|
3944
|
-
this.calculateRange = memo$1(() => [
|
|
3945
|
-
this.getMeasurements(),
|
|
3946
|
-
this.getSize(),
|
|
3947
|
-
this.getScrollOffset(),
|
|
3948
|
-
this.options.lanes
|
|
3949
|
-
], (measurements, outerSize, scrollOffset, lanes) => {
|
|
3950
|
-
return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
3951
|
-
measurements,
|
|
3952
|
-
outerSize,
|
|
3953
|
-
scrollOffset,
|
|
3954
|
-
lanes
|
|
3955
|
-
}) : null;
|
|
3956
|
-
}, {
|
|
3957
|
-
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
3958
|
-
debug: () => this.options.debug
|
|
3959
|
-
});
|
|
3960
|
-
this.getVirtualIndexes = memo$1(() => {
|
|
3961
|
-
let startIndex = null;
|
|
3962
|
-
let endIndex = null;
|
|
3963
|
-
const range = this.calculateRange();
|
|
3964
|
-
if (range) {
|
|
3965
|
-
startIndex = range.startIndex;
|
|
3966
|
-
endIndex = range.endIndex;
|
|
3967
|
-
}
|
|
3968
|
-
this.maybeNotify.updateDeps([
|
|
3969
|
-
this.isScrolling,
|
|
3970
|
-
startIndex,
|
|
3971
|
-
endIndex
|
|
3972
|
-
]);
|
|
3973
|
-
return [
|
|
3974
|
-
this.options.rangeExtractor,
|
|
3975
|
-
this.options.overscan,
|
|
3976
|
-
this.options.count,
|
|
3977
|
-
startIndex,
|
|
3978
|
-
endIndex
|
|
3979
|
-
];
|
|
3980
|
-
}, (rangeExtractor, overscan, count, startIndex, endIndex) => {
|
|
3981
|
-
return startIndex === null || endIndex === null ? [] : rangeExtractor({
|
|
3982
|
-
startIndex,
|
|
3983
|
-
endIndex,
|
|
3984
|
-
overscan,
|
|
3985
|
-
count
|
|
3986
|
-
});
|
|
3987
|
-
}, {
|
|
3988
|
-
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
3989
|
-
debug: () => this.options.debug
|
|
3990
|
-
});
|
|
3991
|
-
this.indexFromElement = (node) => {
|
|
3992
|
-
const attributeName = this.options.indexAttribute;
|
|
3993
|
-
const indexStr = node.getAttribute(attributeName);
|
|
3994
|
-
if (!indexStr) {
|
|
3995
|
-
console.warn(`Missing attribute name '${attributeName}={index}' on measured element.`);
|
|
3996
|
-
return -1;
|
|
3997
|
-
}
|
|
3998
|
-
return parseInt(indexStr, 10);
|
|
3999
|
-
};
|
|
4000
|
-
this._measureElement = (node, entry) => {
|
|
4001
|
-
const index = this.indexFromElement(node);
|
|
4002
|
-
const item = this.measurementsCache[index];
|
|
4003
|
-
if (!item) return;
|
|
4004
|
-
const key = item.key;
|
|
4005
|
-
const prevNode = this.elementsCache.get(key);
|
|
4006
|
-
if (prevNode !== node) {
|
|
4007
|
-
if (prevNode) this.observer.unobserve(prevNode);
|
|
4008
|
-
this.observer.observe(node);
|
|
4009
|
-
this.elementsCache.set(key, node);
|
|
4010
|
-
}
|
|
4011
|
-
if (node.isConnected) this.resizeItem(index, this.options.measureElement(node, entry, this));
|
|
4012
|
-
};
|
|
4013
|
-
this.resizeItem = (index, size) => {
|
|
4014
|
-
const item = this.measurementsCache[index];
|
|
4015
|
-
if (!item) return;
|
|
4016
|
-
const delta = size - (this.itemSizeCache.get(item.key) ?? item.size);
|
|
4017
|
-
if (delta !== 0) {
|
|
4018
|
-
if (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(item, delta, this) : item.start < this.getScrollOffset() + this.scrollAdjustments) {
|
|
4019
|
-
if (process.env.NODE_ENV !== "production" && this.options.debug) console.info("correction", delta);
|
|
4020
|
-
this._scrollToOffset(this.getScrollOffset(), {
|
|
4021
|
-
adjustments: this.scrollAdjustments += delta,
|
|
4022
|
-
behavior: void 0
|
|
4023
|
-
});
|
|
4024
|
-
}
|
|
4025
|
-
this.pendingMeasuredCacheIndexes.push(item.index);
|
|
4026
|
-
this.itemSizeCache = new Map(this.itemSizeCache.set(item.key, size));
|
|
4027
|
-
this.notify(false);
|
|
4028
|
-
}
|
|
4029
|
-
};
|
|
4030
|
-
this.measureElement = (node) => {
|
|
4031
|
-
if (!node) {
|
|
4032
|
-
this.elementsCache.forEach((cached, key) => {
|
|
4033
|
-
if (!cached.isConnected) {
|
|
4034
|
-
this.observer.unobserve(cached);
|
|
4035
|
-
this.elementsCache.delete(key);
|
|
4036
|
-
}
|
|
4037
|
-
});
|
|
4038
|
-
return;
|
|
4039
|
-
}
|
|
4040
|
-
this._measureElement(node, void 0);
|
|
4041
|
-
};
|
|
4042
|
-
this.getVirtualItems = memo$1(() => [this.getVirtualIndexes(), this.getMeasurements()], (indexes, measurements) => {
|
|
4043
|
-
const virtualItems = [];
|
|
4044
|
-
for (let k = 0, len = indexes.length; k < len; k++) {
|
|
4045
|
-
const measurement = measurements[indexes[k]];
|
|
4046
|
-
virtualItems.push(measurement);
|
|
4047
|
-
}
|
|
4048
|
-
return virtualItems;
|
|
4049
|
-
}, {
|
|
4050
|
-
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
4051
|
-
debug: () => this.options.debug
|
|
4052
|
-
});
|
|
4053
|
-
this.getVirtualItemForOffset = (offset) => {
|
|
4054
|
-
const measurements = this.getMeasurements();
|
|
4055
|
-
if (measurements.length === 0) return;
|
|
4056
|
-
return notUndefined(measurements[findNearestBinarySearch(0, measurements.length - 1, (index) => notUndefined(measurements[index]).start, offset)]);
|
|
4057
|
-
};
|
|
4058
|
-
this.getMaxScrollOffset = () => {
|
|
4059
|
-
if (!this.scrollElement) return 0;
|
|
4060
|
-
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
4061
|
-
else {
|
|
4062
|
-
const doc = this.scrollElement.document.documentElement;
|
|
4063
|
-
return this.options.horizontal ? doc.scrollWidth - this.scrollElement.innerWidth : doc.scrollHeight - this.scrollElement.innerHeight;
|
|
4064
|
-
}
|
|
4065
|
-
};
|
|
4066
|
-
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
4067
|
-
if (!this.scrollElement) return 0;
|
|
4068
|
-
const size = this.getSize();
|
|
4069
|
-
const scrollOffset = this.getScrollOffset();
|
|
4070
|
-
if (align === "auto") align = toOffset >= scrollOffset + size ? "end" : "start";
|
|
4071
|
-
if (align === "center") toOffset += (itemSize - size) / 2;
|
|
4072
|
-
else if (align === "end") toOffset -= size;
|
|
4073
|
-
const maxOffset = this.getMaxScrollOffset();
|
|
4074
|
-
return Math.max(Math.min(maxOffset, toOffset), 0);
|
|
4075
|
-
};
|
|
4076
|
-
this.getOffsetForIndex = (index, align = "auto") => {
|
|
4077
|
-
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
4078
|
-
const item = this.measurementsCache[index];
|
|
4079
|
-
if (!item) return;
|
|
4080
|
-
const size = this.getSize();
|
|
4081
|
-
const scrollOffset = this.getScrollOffset();
|
|
4082
|
-
if (align === "auto") {
|
|
4083
|
-
if (item.end >= scrollOffset + size - this.options.scrollPaddingEnd) align = "end";
|
|
4084
|
-
else if (item.start <= scrollOffset + this.options.scrollPaddingStart) align = "start";
|
|
4085
|
-
else return [scrollOffset, align];
|
|
4086
|
-
}
|
|
4087
|
-
if (align === "end" && index === this.options.count - 1) return [this.getMaxScrollOffset(), align];
|
|
4088
|
-
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
4089
|
-
return [this.getOffsetForAlignment(toOffset, align, item.size), align];
|
|
4090
|
-
};
|
|
4091
|
-
this.isDynamicMode = () => this.elementsCache.size > 0;
|
|
4092
|
-
this.scrollToOffset = (toOffset, { align = "start", behavior } = {}) => {
|
|
4093
|
-
if (behavior === "smooth" && this.isDynamicMode()) console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
|
|
4094
|
-
this._scrollToOffset(this.getOffsetForAlignment(toOffset, align), {
|
|
4095
|
-
adjustments: void 0,
|
|
4096
|
-
behavior
|
|
4097
|
-
});
|
|
4098
|
-
};
|
|
4099
|
-
this.scrollToIndex = (index, { align: initialAlign = "auto", behavior } = {}) => {
|
|
4100
|
-
if (behavior === "smooth" && this.isDynamicMode()) console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
|
|
4101
|
-
index = Math.max(0, Math.min(index, this.options.count - 1));
|
|
4102
|
-
this.currentScrollToIndex = index;
|
|
4103
|
-
let attempts = 0;
|
|
4104
|
-
const maxAttempts = 10;
|
|
4105
|
-
const tryScroll = (currentAlign) => {
|
|
4106
|
-
if (!this.targetWindow) return;
|
|
4107
|
-
const offsetInfo = this.getOffsetForIndex(index, currentAlign);
|
|
4108
|
-
if (!offsetInfo) {
|
|
4109
|
-
console.warn("Failed to get offset for index:", index);
|
|
4110
|
-
return;
|
|
4111
|
-
}
|
|
4112
|
-
const [offset, align] = offsetInfo;
|
|
4113
|
-
this._scrollToOffset(offset, {
|
|
4114
|
-
adjustments: void 0,
|
|
4115
|
-
behavior
|
|
4116
|
-
});
|
|
4117
|
-
this.targetWindow.requestAnimationFrame(() => {
|
|
4118
|
-
if (!this.targetWindow) return;
|
|
4119
|
-
const verify = () => {
|
|
4120
|
-
if (this.currentScrollToIndex !== index) return;
|
|
4121
|
-
const currentOffset = this.getScrollOffset();
|
|
4122
|
-
const afterInfo = this.getOffsetForIndex(index, align);
|
|
4123
|
-
if (!afterInfo) {
|
|
4124
|
-
console.warn("Failed to get offset for index:", index);
|
|
4125
|
-
return;
|
|
4126
|
-
}
|
|
4127
|
-
if (!approxEqual(afterInfo[0], currentOffset)) scheduleRetry(align);
|
|
4128
|
-
};
|
|
4129
|
-
if (this.isDynamicMode()) this.targetWindow.requestAnimationFrame(verify);
|
|
4130
|
-
else verify();
|
|
4131
|
-
});
|
|
4132
|
-
};
|
|
4133
|
-
const scheduleRetry = (align) => {
|
|
4134
|
-
if (!this.targetWindow) return;
|
|
4135
|
-
if (this.currentScrollToIndex !== index) return;
|
|
4136
|
-
attempts++;
|
|
4137
|
-
if (attempts < maxAttempts) {
|
|
4138
|
-
if (process.env.NODE_ENV !== "production" && this.options.debug) console.info("Schedule retry", attempts, maxAttempts);
|
|
4139
|
-
this.targetWindow.requestAnimationFrame(() => tryScroll(align));
|
|
4140
|
-
} else console.warn(`Failed to scroll to index ${index} after ${maxAttempts} attempts.`);
|
|
4141
|
-
};
|
|
4142
|
-
tryScroll(initialAlign);
|
|
4143
|
-
};
|
|
4144
|
-
this.scrollBy = (delta, { behavior } = {}) => {
|
|
4145
|
-
if (behavior === "smooth" && this.isDynamicMode()) console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");
|
|
4146
|
-
this._scrollToOffset(this.getScrollOffset() + delta, {
|
|
4147
|
-
adjustments: void 0,
|
|
4148
|
-
behavior
|
|
4149
|
-
});
|
|
4150
|
-
};
|
|
4151
|
-
this.getTotalSize = () => {
|
|
4152
|
-
var _a;
|
|
4153
|
-
const measurements = this.getMeasurements();
|
|
4154
|
-
let end;
|
|
4155
|
-
if (measurements.length === 0) end = this.options.paddingStart;
|
|
4156
|
-
else if (this.options.lanes === 1) end = ((_a = measurements[measurements.length - 1]) == null ? void 0 : _a.end) ?? 0;
|
|
4157
|
-
else {
|
|
4158
|
-
const endByLane = Array(this.options.lanes).fill(null);
|
|
4159
|
-
let endIndex = measurements.length - 1;
|
|
4160
|
-
while (endIndex >= 0 && endByLane.some((val) => val === null)) {
|
|
4161
|
-
const item = measurements[endIndex];
|
|
4162
|
-
if (endByLane[item.lane] === null) endByLane[item.lane] = item.end;
|
|
4163
|
-
endIndex--;
|
|
4164
|
-
}
|
|
4165
|
-
end = Math.max(...endByLane.filter((val) => val !== null));
|
|
4166
|
-
}
|
|
4167
|
-
return Math.max(end - this.options.scrollMargin + this.options.paddingEnd, 0);
|
|
4168
|
-
};
|
|
4169
|
-
this._scrollToOffset = (offset, { adjustments, behavior }) => {
|
|
4170
|
-
this.options.scrollToFn(offset, {
|
|
4171
|
-
behavior,
|
|
4172
|
-
adjustments
|
|
4173
|
-
}, this);
|
|
4174
|
-
};
|
|
4175
|
-
this.measure = () => {
|
|
4176
|
-
this.itemSizeCache = /* @__PURE__ */ new Map();
|
|
4177
|
-
this.laneAssignments = /* @__PURE__ */ new Map();
|
|
4178
|
-
this.notify(false);
|
|
4179
|
-
};
|
|
4180
|
-
this.setOptions(opts);
|
|
4181
|
-
}
|
|
4182
|
-
};
|
|
4183
|
-
const findNearestBinarySearch = (low, high, getCurrentValue, value) => {
|
|
4184
|
-
while (low <= high) {
|
|
4185
|
-
const middle = (low + high) / 2 | 0;
|
|
4186
|
-
const currentValue = getCurrentValue(middle);
|
|
4187
|
-
if (currentValue < value) low = middle + 1;
|
|
4188
|
-
else if (currentValue > value) high = middle - 1;
|
|
4189
|
-
else return middle;
|
|
4190
|
-
}
|
|
4191
|
-
if (low > 0) return low - 1;
|
|
4192
|
-
else return 0;
|
|
4193
|
-
};
|
|
4194
|
-
function calculateRange({ measurements, outerSize, scrollOffset, lanes }) {
|
|
4195
|
-
const lastIndex = measurements.length - 1;
|
|
4196
|
-
const getOffset = (index) => measurements[index].start;
|
|
4197
|
-
if (measurements.length <= lanes) return {
|
|
4198
|
-
startIndex: 0,
|
|
4199
|
-
endIndex: lastIndex
|
|
4200
|
-
};
|
|
4201
|
-
let startIndex = findNearestBinarySearch(0, lastIndex, getOffset, scrollOffset);
|
|
4202
|
-
let endIndex = startIndex;
|
|
4203
|
-
if (lanes === 1) while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) endIndex++;
|
|
4204
|
-
else if (lanes > 1) {
|
|
4205
|
-
const endPerLane = Array(lanes).fill(0);
|
|
4206
|
-
while (endIndex < lastIndex && endPerLane.some((pos) => pos < scrollOffset + outerSize)) {
|
|
4207
|
-
const item = measurements[endIndex];
|
|
4208
|
-
endPerLane[item.lane] = item.end;
|
|
4209
|
-
endIndex++;
|
|
4210
|
-
}
|
|
4211
|
-
const startPerLane = Array(lanes).fill(scrollOffset + outerSize);
|
|
4212
|
-
while (startIndex >= 0 && startPerLane.some((pos) => pos >= scrollOffset)) {
|
|
4213
|
-
const item = measurements[startIndex];
|
|
4214
|
-
startPerLane[item.lane] = item.start;
|
|
4215
|
-
startIndex--;
|
|
4216
|
-
}
|
|
4217
|
-
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
4218
|
-
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
4219
|
-
}
|
|
4220
|
-
return {
|
|
4221
|
-
startIndex,
|
|
4222
|
-
endIndex
|
|
4223
|
-
};
|
|
4224
|
-
}
|
|
4225
|
-
//#endregion
|
|
4226
|
-
//#region ../../node_modules/.pnpm/@tanstack+react-virtual@3.13.19_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-virtual/dist/esm/index.js
|
|
4227
|
-
const useIsomorphicLayoutEffect = typeof document !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
|
|
4228
|
-
function useVirtualizerBase({ useFlushSync = true, ...options }) {
|
|
4229
|
-
const rerender = React$1.useReducer(() => ({}), {})[1];
|
|
4230
|
-
const resolvedOptions = {
|
|
4231
|
-
...options,
|
|
4232
|
-
onChange: (instance2, sync) => {
|
|
4233
|
-
var _a;
|
|
4234
|
-
if (useFlushSync && sync) flushSync(rerender);
|
|
4235
|
-
else rerender();
|
|
4236
|
-
(_a = options.onChange) == null || _a.call(options, instance2, sync);
|
|
4237
|
-
}
|
|
4238
|
-
};
|
|
4239
|
-
const [instance] = React$1.useState(() => new Virtualizer(resolvedOptions));
|
|
4240
|
-
instance.setOptions(resolvedOptions);
|
|
4241
|
-
useIsomorphicLayoutEffect(() => {
|
|
4242
|
-
return instance._didMount();
|
|
4243
|
-
}, []);
|
|
4244
|
-
useIsomorphicLayoutEffect(() => {
|
|
4245
|
-
return instance._willUpdate();
|
|
4246
|
-
});
|
|
4247
|
-
return instance;
|
|
4248
|
-
}
|
|
4249
|
-
function useVirtualizer(options) {
|
|
4250
|
-
return useVirtualizerBase({
|
|
4251
|
-
observeElementRect,
|
|
4252
|
-
observeElementOffset,
|
|
4253
|
-
scrollToFn: elementScroll,
|
|
4254
|
-
...options
|
|
4255
|
-
});
|
|
4256
|
-
}
|
|
4257
|
-
//#endregion
|
|
4258
|
-
//#region editors/generic-drive-explorer/components/file-content-view.tsx
|
|
4259
|
-
const GAP = 8;
|
|
4260
|
-
const ITEM_WIDTH = 256;
|
|
4261
|
-
const ITEM_HEIGHT = 48;
|
|
4262
|
-
const USED_SPACE = 420;
|
|
4263
|
-
function FileContentView() {
|
|
4264
|
-
const parentRef = useRef(null);
|
|
4265
|
-
const availableWidth = useWindowSize().innerWidth - USED_SPACE;
|
|
4266
|
-
const fileNodes = useNodesInSelectedDriveOrFolder().filter((n) => isFileNodeKind(n));
|
|
4267
|
-
const columnCount = Math.floor(availableWidth / 264) || 1;
|
|
4268
|
-
const rowVirtualizer = useVirtualizer({
|
|
4269
|
-
count: Math.ceil(fileNodes.length / columnCount),
|
|
4270
|
-
getScrollElement: () => parentRef.current,
|
|
4271
|
-
estimateSize: (index) => {
|
|
4272
|
-
if (index > 0) return 56;
|
|
4273
|
-
return ITEM_HEIGHT;
|
|
4274
|
-
},
|
|
4275
|
-
overscan: 5
|
|
4276
|
-
});
|
|
4277
|
-
const columnVirtualizer = useVirtualizer({
|
|
4278
|
-
horizontal: true,
|
|
4279
|
-
count: columnCount,
|
|
4280
|
-
getScrollElement: () => parentRef.current,
|
|
4281
|
-
estimateSize: (index) => {
|
|
4282
|
-
if (index > 0) return 264;
|
|
4283
|
-
return ITEM_WIDTH;
|
|
4284
|
-
},
|
|
4285
|
-
overscan: 5
|
|
4286
|
-
});
|
|
4287
|
-
const getItemIndex = (rowIndex, columnIndex) => rowIndex * columnCount + columnIndex;
|
|
4288
|
-
const getItem = (rowIndex, columnIndex) => {
|
|
4289
|
-
const index = getItemIndex(rowIndex, columnIndex);
|
|
4290
|
-
return fileNodes[index] || null;
|
|
4291
|
-
};
|
|
4292
|
-
if (fileNodes.length === 0) return /* @__PURE__ */ jsx("div", {
|
|
4293
|
-
className: "mb-8 text-sm text-muted-foreground",
|
|
4294
|
-
children: "No documents or files 📄"
|
|
4295
|
-
});
|
|
4296
|
-
const renderItem = (rowIndex, columnIndex) => {
|
|
4297
|
-
const fileNode = getItem(rowIndex, columnIndex);
|
|
4298
|
-
if (!fileNode) return null;
|
|
4299
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4300
|
-
style: { marginLeft: columnIndex === 0 ? 0 : GAP },
|
|
4301
|
-
children: /* @__PURE__ */ jsx(FileItem, { fileNode }, fileNode.id)
|
|
4302
|
-
});
|
|
4303
|
-
};
|
|
4304
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4305
|
-
ref: parentRef,
|
|
4306
|
-
style: {
|
|
4307
|
-
width: `100%`,
|
|
4308
|
-
overflow: "auto"
|
|
4309
|
-
},
|
|
4310
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
4311
|
-
style: {
|
|
4312
|
-
height: `${rowVirtualizer.getTotalSize()}px`,
|
|
4313
|
-
width: `${columnVirtualizer.getTotalSize()}px`,
|
|
4314
|
-
position: "relative"
|
|
4315
|
-
},
|
|
4316
|
-
children: rowVirtualizer.getVirtualItems().map((virtualRow) => /* @__PURE__ */ jsx(React.Fragment, { children: columnVirtualizer.getVirtualItems().map((virtualColumn) => /* @__PURE__ */ jsx("div", {
|
|
4317
|
-
style: {
|
|
4318
|
-
position: "absolute",
|
|
4319
|
-
top: 0,
|
|
4320
|
-
left: 0,
|
|
4321
|
-
marginTop: virtualRow.index === 0 ? 0 : GAP,
|
|
4322
|
-
width: `${virtualColumn.size}px`,
|
|
4323
|
-
height: `${ITEM_HEIGHT}px`,
|
|
4324
|
-
overflow: "hidden",
|
|
4325
|
-
transform: `translateX(${virtualColumn.start}px) translateY(${virtualRow.start}px)`
|
|
4326
|
-
},
|
|
4327
|
-
children: renderItem(virtualRow.index, virtualColumn.index)
|
|
4328
|
-
}, virtualColumn.key)) }, virtualRow.key))
|
|
4329
|
-
})
|
|
4330
|
-
});
|
|
4331
|
-
}
|
|
4332
|
-
//#endregion
|
|
4333
|
-
//#region editors/generic-drive-explorer/components/layout.tsx
|
|
4334
|
-
function DriveLayout({ children, className, ...props }) {
|
|
4335
|
-
return /* @__PURE__ */ jsx(DriveLayout.Container, {
|
|
4336
|
-
className,
|
|
4337
|
-
...props,
|
|
4338
|
-
children
|
|
4339
|
-
});
|
|
4340
|
-
}
|
|
4341
|
-
DriveLayout.Container = function DriveLayoutContainer({ children, className, containerProps, ...props }) {
|
|
4342
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4343
|
-
className: twMerge("flex grow flex-col overflow-auto", className),
|
|
4344
|
-
...containerProps,
|
|
4345
|
-
...props,
|
|
4346
|
-
children
|
|
4347
|
-
});
|
|
4348
|
-
};
|
|
4349
|
-
DriveLayout.Header = function DriveLayoutHeader({ children, className, containerProps, ...props }) {
|
|
4350
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4351
|
-
className: twMerge("flex-0", className),
|
|
4352
|
-
...containerProps,
|
|
4353
|
-
...props,
|
|
4354
|
-
children
|
|
4355
|
-
});
|
|
4356
|
-
};
|
|
4357
|
-
DriveLayout.Content = function DriveLayoutContent({ children, className, containerProps, ...props }) {
|
|
4358
|
-
return /* @__PURE__ */ jsx("div", {
|
|
4359
|
-
className: twMerge("mb-5 flex-1 px-4", className),
|
|
4360
|
-
...containerProps,
|
|
4361
|
-
...props,
|
|
4362
|
-
children
|
|
4363
|
-
});
|
|
4364
|
-
};
|
|
4365
|
-
DriveLayout.ContentSection = function DriveLayoutContentSection({ title, actions, children, className, containerProps, ...props }) {
|
|
4366
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
4367
|
-
className: twMerge(className),
|
|
4368
|
-
...containerProps,
|
|
4369
|
-
...props,
|
|
4370
|
-
children: [(title || actions) && /* @__PURE__ */ jsxs("div", {
|
|
4371
|
-
className: "mb-4 flex items-center justify-between gap-3",
|
|
4372
|
-
children: [title && /* @__PURE__ */ jsx("div", {
|
|
4373
|
-
className: "text-base font-semibold text-foreground",
|
|
4374
|
-
children: title
|
|
4375
|
-
}), actions]
|
|
4376
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
4377
|
-
className: "flex flex-wrap gap-2",
|
|
4378
|
-
children
|
|
4379
|
-
})]
|
|
4380
|
-
});
|
|
4381
|
-
};
|
|
4382
|
-
//#endregion
|
|
4383
|
-
//#region editors/generic-drive-explorer/components/folder-view.tsx
|
|
4384
|
-
function FolderView(props) {
|
|
4385
|
-
const { className } = props;
|
|
4386
|
-
const folderNodes = useNodesInSelectedDriveOrFolder().filter((n) => isFolderNodeKind(n));
|
|
4387
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
4388
|
-
className: twMerge("rounded-md border-2 border-transparent p-2", className),
|
|
4389
|
-
children: [/* @__PURE__ */ jsx(DriveLayout.ContentSection, {
|
|
4390
|
-
title: "Folders",
|
|
4391
|
-
className: "mb-4",
|
|
4392
|
-
children: folderNodes.length > 0 ? folderNodes.map((folderNode) => /* @__PURE__ */ jsx(FolderItem, { folderNode }, folderNode.id)) : /* @__PURE__ */ jsx("div", {
|
|
4393
|
-
className: "mb-8 text-sm text-muted-foreground",
|
|
4394
|
-
children: "No documents or files 📄"
|
|
4395
|
-
})
|
|
4396
|
-
}), /* @__PURE__ */ jsx(DriveLayout.ContentSection, {
|
|
4397
|
-
title: "Documents and files",
|
|
4398
|
-
actions: /* @__PURE__ */ jsx(CreateDocument, {}),
|
|
4399
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
4400
|
-
className: "w-full",
|
|
4401
|
-
children: /* @__PURE__ */ jsx(FileContentView, {})
|
|
4402
|
-
})
|
|
4403
|
-
})]
|
|
4404
|
-
});
|
|
4405
|
-
}
|
|
4406
3185
|
//#endregion
|
|
4407
|
-
export {
|
|
3186
|
+
export { iconComponents };
|
|
4408
3187
|
|
|
4409
|
-
//# sourceMappingURL=
|
|
3188
|
+
//# sourceMappingURL=icon-components-BZ_bQZmJ-Dj7gzTQW.mjs.map
|