@emailmaker/filemanager 1.1.95 → 1.1.103
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/.build-meta.json +1 -1
- package/assets/icon-sets/lucide.json +6275 -0
- package/assets/icon-sets/tabler.json +19336 -0
- package/components/FilerobotEditor/FilerobotEditor.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/CornerRadiusTool.d.ts +22 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/cornerRadiusMath.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/cornerRadiusOutput.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/imageEditorTools.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusEraser.d.ts +17 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusMath.d.ts +38 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusOutput.d.ts +18 -0
- package/components/FilerobotEditor/cornerRadius/imageEditorTools.d.ts +11 -0
- package/components/FilerobotEditor/cornerRadius/useCornerRadiusSync.d.ts +23 -0
- package/components/ImageIcons/iconSets.d.ts +38 -0
- package/components/ImageIcons/iconSets.test.d.ts +1 -0
- package/components/ImageIcons/iconStockSearch.d.ts +3 -1
- package/components/ImageIcons/packagedIconSets.d.ts +9 -0
- package/core.d.ts +1 -0
- package/core.esm.js +272 -259
- package/core.js +1 -1
- package/file-manager-FilerobotEditor.js +576 -0
- package/file-manager-IconsTab.js +2083 -0
- package/{file-manager-ImageCodeGenerator-m06RVQr7.js → file-manager-ImageCodeGenerator.js} +8 -8
- package/{file-manager-JsBarcode-CyaffT5b.js → file-manager-JsBarcode.js} +30 -30
- package/{file-manager-browser-DDyRNDQk.js → file-manager-browser.js} +8 -8
- package/{file-manager-hooks-UP2zpv8z.js → file-manager-hooks-BDRRCedE.js} +4792 -2384
- package/file-manager-imageEditorCropPresets-en0_jYEY.js +76 -0
- package/{file-manager-rolldown-runtime-DAVfCfog.js → file-manager-rolldown-runtime-DawGUBAG.js} +2 -2
- package/{file-manager-useMediaListEngine-B9sz3gcs.js → file-manager-urls-rCuqY9r4.js} +139 -119
- package/file-manager.esm.js +2332 -2277
- package/file-manager.js +12 -12
- package/helpers/__tests__/applyImageEditorTranslations.test.d.ts +1 -0
- package/helpers/__tests__/imageEditorCropPresets.test.d.ts +1 -0
- package/helpers/__tests__/locales.test.d.ts +1 -0
- package/helpers/applyImageEditorTranslations.d.ts +6 -0
- package/helpers/imageEditorCropPresets.d.ts +8 -0
- package/index.d.ts +2 -0
- package/package.json +5 -1
- package/types.d.ts +18 -0
- package/utils/filerobotEditorConfig.d.ts +1 -0
- package/utils/generateId.d.ts +5 -0
- package/utils/imageCompression.d.ts +10 -0
- package/utils/imageCompression.editedImage.test.d.ts +1 -0
- package/utils/imageCompression.png.test.d.ts +1 -0
- package/utils/pngCompression.d.ts +23 -0
- package/utils/pngCompression.test.d.ts +1 -0
- package/file-manager-FilerobotEditor-WbM5WTct.js +0 -330
- package/file-manager-IconsTab-CCn0Q0ng.js +0 -2434
- package/file-manager-imageEditorTranslations-CtNVql-A.js +0 -38
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { V as e,
|
|
1
|
+
import { V as e, tt as t } from "./file-manager-hooks-BDRRCedE.js";
|
|
2
2
|
import n, { useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
3
|
import { Button as c, Form as l, Input as u, Tooltip as d, Tree as f } from "antd";
|
|
4
4
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
5
|
import g, { AppstoreOutlined as _, BarsOutlined as v, CloseOutlined as y, DownOutlined as b, FileOutlined as x, FolderAddOutlined as S, FolderOpenOutlined as C, FolderOutlined as w, LinkOutlined as T, RightOutlined as E, UploadOutlined as D } from "@ant-design/icons";
|
|
6
|
-
import { FolderMinus as O
|
|
6
|
+
import { FolderMinus as O } from "@untitledui/icons/FolderMinus";
|
|
7
|
+
import { FolderPlus as k } from "@untitledui/icons/FolderPlus";
|
|
8
|
+
import { FolderSearch as A } from "@untitledui/icons/FolderSearch";
|
|
9
|
+
import { ThumbsUp as j } from "@untitledui/icons/ThumbsUp";
|
|
10
|
+
import { Trash03 as M } from "@untitledui/icons/Trash03";
|
|
7
11
|
//#region packages/file-manager/src/components/EmIcons/EmIcons.tsx
|
|
8
|
-
var
|
|
12
|
+
var N = () => /* @__PURE__ */ m("svg", {
|
|
9
13
|
viewBox: "0 0 12 12",
|
|
10
14
|
focusable: "false",
|
|
11
15
|
"data-icon": "mixed-view",
|
|
@@ -14,7 +18,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
14
18
|
fill: "currentColor",
|
|
15
19
|
"aria-hidden": "true",
|
|
16
20
|
children: /* @__PURE__ */ m("path", { d: "M1 1h2v2H1V1zm0 4h2v2H1V5zm0 4h2v2H1V9zm4-8h2v2H5V1zm0 4h2v2H5V5zm0 4h2v2H5V9zm4-8h2v2H9V1zm0 4h2v2H9V5zm0 4h2v2H9V9z" })
|
|
17
|
-
}),
|
|
21
|
+
}), P = () => /* @__PURE__ */ m("svg", {
|
|
18
22
|
viewBox: "0 0 12 12",
|
|
19
23
|
focusable: "false",
|
|
20
24
|
"data-icon": "landscape-view",
|
|
@@ -23,7 +27,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
23
27
|
fill: "currentColor",
|
|
24
28
|
"aria-hidden": "true",
|
|
25
29
|
children: /* @__PURE__ */ m("path", { d: "M1 3h10v6H1V3zm1 1v4h8V4H2z" })
|
|
26
|
-
}),
|
|
30
|
+
}), F = () => /* @__PURE__ */ m("svg", {
|
|
27
31
|
viewBox: "0 0 12 12",
|
|
28
32
|
focusable: "false",
|
|
29
33
|
"data-icon": "portrait-view",
|
|
@@ -32,7 +36,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
32
36
|
fill: "currentColor",
|
|
33
37
|
"aria-hidden": "true",
|
|
34
38
|
children: /* @__PURE__ */ m("path", { d: "M3 1h6v10H3V1zm1 1v8h4V2H4z" })
|
|
35
|
-
}),
|
|
39
|
+
}), I = () => /* @__PURE__ */ m("svg", {
|
|
36
40
|
viewBox: "0 0 12 12",
|
|
37
41
|
focusable: "false",
|
|
38
42
|
"data-icon": "square-view",
|
|
@@ -41,7 +45,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
41
45
|
fill: "currentColor",
|
|
42
46
|
"aria-hidden": "true",
|
|
43
47
|
children: /* @__PURE__ */ m("path", { d: "M1 1h10v10H1V1zm1 1v8h8V2H2z" })
|
|
44
|
-
}),
|
|
48
|
+
}), L = () => /* @__PURE__ */ h("svg", {
|
|
45
49
|
viewBox: "0 0 12 12",
|
|
46
50
|
focusable: "false",
|
|
47
51
|
"data-icon": "ai-icon",
|
|
@@ -55,7 +59,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
55
59
|
/* @__PURE__ */ m("path", { d: "M1.63636 4.09091C1.63636 4.09091 1.44663 3.19402 1.10769 2.7986C0.768758 2.40318 0 2.18182 0 2.18182C0 2.18182 0.768758 1.96046 1.10769 1.56503C1.44663 1.16961 1.63636 0.272728 1.63636 0.272728C1.63636 0.272728 1.8261 1.16961 2.16503 1.56503C2.50397 1.96046 3.27273 2.18182 3.27273 2.18182C3.27273 2.18182 2.50397 2.40318 2.16503 2.7986C1.8261 3.19402 1.63636 4.09091 1.63636 4.09091Z" }),
|
|
56
60
|
/* @__PURE__ */ m("path", { d: "M10.6364 11.7273C10.6364 11.7273 10.4782 11.0866 10.1958 10.8042C9.91336 10.5218 9.27273 10.3636 9.27273 10.3636C9.27273 10.3636 9.91336 10.2055 10.1958 9.92307C10.4782 9.64064 10.6364 9 10.6364 9C10.6364 9 10.7945 9.64064 11.0769 9.92307C11.3594 10.2055 12 10.3636 12 10.3636C12 10.3636 11.3594 10.5218 11.0769 10.8042C10.7945 11.0866 10.6364 11.7273 10.6364 11.7273Z" })
|
|
57
61
|
]
|
|
58
|
-
}),
|
|
62
|
+
}), R = () => /* @__PURE__ */ m("svg", {
|
|
59
63
|
viewBox: "0 0 12 12",
|
|
60
64
|
focusable: "false",
|
|
61
65
|
"data-icon": "light-mode",
|
|
@@ -64,7 +68,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
64
68
|
fill: "currentColor",
|
|
65
69
|
"aria-hidden": "true",
|
|
66
70
|
children: /* @__PURE__ */ m("path", { d: "M6 7.81819C6.50303 7.81819 6.93182 7.64092 7.28637 7.28637C7.64092 6.93182 7.81819 6.50303 7.81819 6C7.81819 5.49697 7.64092 5.06818 7.28637 4.71363C6.93182 4.35908 6.50303 4.18181 6 4.18181C5.49697 4.18181 5.06818 4.35908 4.71363 4.71363C4.35908 5.06818 4.18181 5.49697 4.18181 6C4.18181 6.50303 4.35908 6.93182 4.71363 7.28637C5.06818 7.64092 5.49697 7.81819 6 7.81819ZM6 8.72727C5.24545 8.72727 4.60227 8.46136 4.07045 7.92955C3.53864 7.39773 3.27273 6.75455 3.27273 6C3.27273 5.24545 3.53864 4.60227 4.07045 4.07045C4.60227 3.53864 5.24545 3.27273 6 3.27273C6.75455 3.27273 7.39773 3.53864 7.92955 4.07045C8.46136 4.60227 8.72727 5.24545 8.72727 6C8.72727 6.75455 8.46136 7.39773 7.92955 7.92955C7.39773 8.46136 6.75455 8.72727 6 8.72727ZM2.18182 6.45454H0V5.54546H2.18182V6.45454ZM12 6.45454H9.81818V5.54546H12V6.45454ZM5.54546 2.18182V0H6.45454V2.18182H5.54546ZM5.54546 12V9.81818H6.45454V12H5.54546ZM3 3.6091L1.63182 2.28637L2.28181 1.61819L3.5909 2.98182L3 3.6091ZM9.72727 10.3727L8.39546 9.00454L9.0091 8.38182L10.3682 9.71363L9.72727 10.3727ZM8.38182 2.9909L9.71363 1.63182L10.3818 2.27273L9.02727 3.6L8.38182 2.9909ZM1.62727 9.71819L2.98636 8.38636L3.61818 9.0091L2.28637 10.3682L1.62727 9.71819Z" })
|
|
67
|
-
}),
|
|
71
|
+
}), z = () => /* @__PURE__ */ m("svg", {
|
|
68
72
|
viewBox: "0 0 12 12",
|
|
69
73
|
focusable: "false",
|
|
70
74
|
"data-icon": "dark-mode",
|
|
@@ -73,7 +77,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
73
77
|
fill: "currentColor",
|
|
74
78
|
"aria-hidden": "true",
|
|
75
79
|
children: /* @__PURE__ */ m("path", { d: "M6 11C4.61111 11 3.43056 10.5139 2.45833 9.54167C1.48611 8.56944 1 7.38889 1 6C1 4.61111 1.48611 3.43056 2.45833 2.45833C3.43056 1.48611 4.61111 1 6 1C6.09259 1 6.1875 1.00309 6.28472 1.00926C6.38194 1.01543 6.49382 1.02469 6.62036 1.03704C6.2716 1.32408 5.99769 1.68442 5.79861 2.11806C5.59954 2.55169 5.5 3.01234 5.5 3.5C5.5 4.33333 5.79167 5.04167 6.375 5.625C6.95833 6.20833 7.66667 6.5 8.5 6.5C8.99074 6.5 9.45216 6.40509 9.88426 6.21528C10.3164 6.02546 10.6759 5.76544 10.963 5.43519C10.9753 5.54939 10.9846 5.65047 10.9907 5.73843C10.9969 5.82639 11 5.91358 11 6C11 7.38889 10.5139 8.56944 9.54167 9.54167C8.56944 10.5139 7.38889 11 6 11ZM6 10.0741C6.94444 10.0741 7.77469 9.7909 8.49075 9.22454C9.20681 8.65818 9.67594 7.97376 9.89815 7.17129C9.68211 7.25463 9.45474 7.3179 9.21606 7.36111C8.97737 7.40431 8.73869 7.42592 8.5 7.42592C7.41242 7.42592 6.4862 7.0435 5.72135 6.27865C4.9565 5.5138 4.57408 4.58758 4.57408 3.5C4.57408 3.29012 4.59414 3.06944 4.63426 2.83796C4.67438 2.60648 4.74229 2.35185 4.83797 2.07407C3.99229 2.3395 3.29552 2.83487 2.74768 3.56018C2.19984 4.28549 1.92592 5.09876 1.92592 6C1.92592 7.12963 2.32252 8.09105 3.11574 8.88426C3.90895 9.67748 4.87037 10.0741 6 10.0741Z" })
|
|
76
|
-
}),
|
|
80
|
+
}), B = () => /* @__PURE__ */ h("svg", {
|
|
77
81
|
width: "64",
|
|
78
82
|
height: "64",
|
|
79
83
|
viewBox: "0 0 64 64",
|
|
@@ -97,7 +101,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
97
101
|
strokeLinejoin: "round"
|
|
98
102
|
})
|
|
99
103
|
]
|
|
100
|
-
}),
|
|
104
|
+
}), ee = () => /* @__PURE__ */ h("svg", {
|
|
101
105
|
width: "64",
|
|
102
106
|
height: "64",
|
|
103
107
|
viewBox: "0 0 64 64",
|
|
@@ -121,7 +125,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
121
125
|
strokeLinejoin: "round"
|
|
122
126
|
})
|
|
123
127
|
]
|
|
124
|
-
}),
|
|
128
|
+
}), te = () => /* @__PURE__ */ m("svg", {
|
|
125
129
|
width: "20",
|
|
126
130
|
height: "20",
|
|
127
131
|
viewBox: "0 0 20 20",
|
|
@@ -133,7 +137,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
133
137
|
strokeLinecap: "round",
|
|
134
138
|
strokeLinejoin: "round"
|
|
135
139
|
})
|
|
136
|
-
}),
|
|
140
|
+
}), ne = () => /* @__PURE__ */ m("svg", {
|
|
137
141
|
width: "48",
|
|
138
142
|
height: "49",
|
|
139
143
|
viewBox: "0 0 48 49",
|
|
@@ -146,7 +150,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
146
150
|
strokeLinecap: "round",
|
|
147
151
|
strokeLinejoin: "round"
|
|
148
152
|
})
|
|
149
|
-
}),
|
|
153
|
+
}), re = () => /* @__PURE__ */ h("svg", {
|
|
150
154
|
width: "56",
|
|
151
155
|
height: "56",
|
|
152
156
|
viewBox: "0 0 56 56",
|
|
@@ -164,7 +168,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
164
168
|
strokeLinecap: "round",
|
|
165
169
|
strokeLinejoin: "round"
|
|
166
170
|
})]
|
|
167
|
-
}),
|
|
171
|
+
}), V = () => /* @__PURE__ */ h("svg", {
|
|
168
172
|
width: "56",
|
|
169
173
|
height: "56",
|
|
170
174
|
viewBox: "0 0 56 56",
|
|
@@ -182,7 +186,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
182
186
|
strokeLinecap: "round",
|
|
183
187
|
strokeLinejoin: "round"
|
|
184
188
|
})]
|
|
185
|
-
}),
|
|
189
|
+
}), H = () => /* @__PURE__ */ h("svg", {
|
|
186
190
|
width: "48",
|
|
187
191
|
height: "49",
|
|
188
192
|
viewBox: "0 0 48 49",
|
|
@@ -201,7 +205,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
201
205
|
strokeLinecap: "round",
|
|
202
206
|
strokeLinejoin: "round"
|
|
203
207
|
})]
|
|
204
|
-
}),
|
|
208
|
+
}), U = () => /* @__PURE__ */ m("svg", {
|
|
205
209
|
width: "48",
|
|
206
210
|
height: "49",
|
|
207
211
|
viewBox: "0 0 48 49",
|
|
@@ -214,75 +218,75 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
214
218
|
strokeLinecap: "round",
|
|
215
219
|
strokeLinejoin: "round"
|
|
216
220
|
})
|
|
217
|
-
}),
|
|
221
|
+
}), W = {
|
|
218
222
|
MixedView: (e) => /* @__PURE__ */ m(g, {
|
|
219
|
-
component:
|
|
223
|
+
component: N,
|
|
220
224
|
...e
|
|
221
225
|
}),
|
|
222
226
|
LandscapeView: (e) => /* @__PURE__ */ m(g, {
|
|
223
|
-
component:
|
|
227
|
+
component: P,
|
|
224
228
|
...e
|
|
225
229
|
}),
|
|
226
230
|
PortraitView: (e) => /* @__PURE__ */ m(g, {
|
|
227
|
-
component:
|
|
231
|
+
component: F,
|
|
228
232
|
...e
|
|
229
233
|
}),
|
|
230
234
|
SquareView: (e) => /* @__PURE__ */ m(g, {
|
|
231
|
-
component:
|
|
235
|
+
component: I,
|
|
232
236
|
...e
|
|
233
237
|
}),
|
|
234
238
|
AiIcon_2: (e) => /* @__PURE__ */ m(g, {
|
|
235
|
-
component:
|
|
239
|
+
component: L,
|
|
236
240
|
...e
|
|
237
241
|
}),
|
|
238
242
|
LightMode: (e) => /* @__PURE__ */ m(g, {
|
|
239
|
-
component:
|
|
243
|
+
component: R,
|
|
240
244
|
...e
|
|
241
245
|
}),
|
|
242
246
|
DarkMode: (e) => /* @__PURE__ */ m(g, {
|
|
243
|
-
component:
|
|
247
|
+
component: z,
|
|
244
248
|
...e
|
|
245
249
|
}),
|
|
246
250
|
FolderIcon: (e) => /* @__PURE__ */ m(g, {
|
|
247
|
-
component:
|
|
251
|
+
component: B,
|
|
248
252
|
...e
|
|
249
253
|
}),
|
|
250
254
|
FolderPreviewIcon: (e) => /* @__PURE__ */ m(g, {
|
|
251
|
-
component:
|
|
255
|
+
component: ee,
|
|
252
256
|
...e
|
|
253
257
|
}),
|
|
254
258
|
EmptyFolderIcon: (e) => /* @__PURE__ */ m(g, {
|
|
255
|
-
component:
|
|
259
|
+
component: te,
|
|
256
260
|
...e
|
|
257
261
|
}),
|
|
258
262
|
DropZoneFileIcon: (e) => /* @__PURE__ */ m(g, {
|
|
259
|
-
component:
|
|
263
|
+
component: ne,
|
|
260
264
|
...e
|
|
261
265
|
}),
|
|
262
266
|
BigStockIcon: (e) => /* @__PURE__ */ m(g, {
|
|
263
|
-
component:
|
|
267
|
+
component: re,
|
|
264
268
|
...e
|
|
265
269
|
}),
|
|
266
270
|
BigAIIcon: (e) => /* @__PURE__ */ m(g, {
|
|
267
|
-
component:
|
|
271
|
+
component: V,
|
|
268
272
|
...e
|
|
269
273
|
}),
|
|
270
274
|
gifPlayIcon: (e) => /* @__PURE__ */ m(g, {
|
|
271
|
-
component:
|
|
275
|
+
component: H,
|
|
272
276
|
...e
|
|
273
277
|
}),
|
|
274
278
|
StockBigIcon: (e) => /* @__PURE__ */ m(g, {
|
|
275
|
-
component:
|
|
279
|
+
component: U,
|
|
276
280
|
...e
|
|
277
281
|
})
|
|
278
|
-
},
|
|
282
|
+
}, G = () => {
|
|
279
283
|
let { options: t } = e(), { customIcons: r } = t, i = n.useCallback((e, t, i) => {
|
|
280
284
|
let a = r?.[e];
|
|
281
285
|
return a ? n.createElement(a, i) : n.createElement(t, i);
|
|
282
286
|
}, [r]);
|
|
283
287
|
return n.useMemo(() => ({
|
|
284
288
|
RootFolderIcon: (e) => i("rootFolder", w, e),
|
|
285
|
-
FolderIcon: (e) => i("folder",
|
|
289
|
+
FolderIcon: (e) => i("folder", W.FolderIcon, e),
|
|
286
290
|
FolderOpenIcon: (e) => i("folderOpen", C, e),
|
|
287
291
|
AddFolderIcon: (e) => i("addFolder", S, e),
|
|
288
292
|
FileIcon: (e) => i("file", x, e),
|
|
@@ -292,54 +296,54 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
292
296
|
CollapseArrowIcon: (e) => i("collapseArrow", b, e),
|
|
293
297
|
ExpandFolderIcon: (e) => i("expandArrow", k, e),
|
|
294
298
|
CollapseFolderIcon: (e) => i("collapseArrow", O, e),
|
|
295
|
-
FolderPreviewIcon: (e) => i("folderPreview",
|
|
296
|
-
EmptyFolderIcon: (e) => i("folderPreview",
|
|
299
|
+
FolderPreviewIcon: (e) => i("folderPreview", W.FolderPreviewIcon, e),
|
|
300
|
+
EmptyFolderIcon: (e) => i("folderPreview", W.EmptyFolderIcon, e),
|
|
297
301
|
GridViewIcon: (e) => i("gridView", _, e),
|
|
298
302
|
ListViewIcon: (e) => i("listView", v, e),
|
|
299
|
-
DropZoneFileIcon: (e) => i("folderPreview",
|
|
300
|
-
BigStockIcon: (e) => i("folderPreview",
|
|
301
|
-
BigAIIcon: (e) => i("folderPreview",
|
|
302
|
-
GifPlayIcon: (e) => i("folderPreview",
|
|
303
|
-
StockBigIcon: (e) => i("folderPreview",
|
|
304
|
-
MixedViewIcon: (e) => i("mixedView",
|
|
305
|
-
LandscapeViewIcon: (e) => i("landscapeView",
|
|
306
|
-
PortraitViewIcon: (e) => i("portraitView",
|
|
307
|
-
SquareViewIcon: (e) => i("squareView",
|
|
308
|
-
LightModeIcon: (e) => i("lightMode",
|
|
309
|
-
DarkModeIcon: (e) => i("darkMode",
|
|
310
|
-
AiIcon_2: (e) => i("aiIcon_2",
|
|
303
|
+
DropZoneFileIcon: (e) => i("folderPreview", W.DropZoneFileIcon, e),
|
|
304
|
+
BigStockIcon: (e) => i("folderPreview", W.BigStockIcon, e),
|
|
305
|
+
BigAIIcon: (e) => i("folderPreview", W.BigAIIcon, e),
|
|
306
|
+
GifPlayIcon: (e) => i("folderPreview", W.gifPlayIcon, e),
|
|
307
|
+
StockBigIcon: (e) => i("folderPreview", W.StockBigIcon, e),
|
|
308
|
+
MixedViewIcon: (e) => i("mixedView", W.MixedView, e),
|
|
309
|
+
LandscapeViewIcon: (e) => i("landscapeView", W.LandscapeView, e),
|
|
310
|
+
PortraitViewIcon: (e) => i("portraitView", W.PortraitView, e),
|
|
311
|
+
SquareViewIcon: (e) => i("squareView", W.SquareView, e),
|
|
312
|
+
LightModeIcon: (e) => i("lightMode", W.LightMode, e),
|
|
313
|
+
DarkModeIcon: (e) => i("darkMode", W.DarkMode, e),
|
|
314
|
+
AiIcon_2: (e) => i("aiIcon_2", W.AiIcon_2, e),
|
|
311
315
|
NoFilesIcon: (e) => i("noFiles", A, e),
|
|
312
316
|
ThumbsUpIcon: (e) => i("thumbsUp", j, e),
|
|
313
317
|
getCustomIcon: i
|
|
314
318
|
}), [i]);
|
|
315
|
-
},
|
|
319
|
+
}, K = {
|
|
316
320
|
"em-filemanager": "em-filemanager",
|
|
317
321
|
emFilemanager: "em-filemanager",
|
|
318
322
|
noFilesContainer: "noFilesContainer",
|
|
319
323
|
noFilesImage: "noFilesImage",
|
|
320
324
|
noFilesTitle: "noFilesTitle",
|
|
321
325
|
noFilesDescription: "noFilesDescription"
|
|
322
|
-
},
|
|
323
|
-
let { t: e } = t(), { NoFilesIcon: n } =
|
|
326
|
+
}, q = () => {
|
|
327
|
+
let { t: e } = t(), { NoFilesIcon: n } = G();
|
|
324
328
|
return /* @__PURE__ */ h("div", {
|
|
325
|
-
className:
|
|
329
|
+
className: K.noFilesContainer,
|
|
326
330
|
children: [
|
|
327
331
|
/* @__PURE__ */ m(n, {
|
|
328
|
-
className:
|
|
332
|
+
className: K.noFilesImage,
|
|
329
333
|
size: 48,
|
|
330
334
|
strokeWidth: 1.4
|
|
331
335
|
}),
|
|
332
336
|
/* @__PURE__ */ m("h2", {
|
|
333
|
-
className:
|
|
337
|
+
className: K.noFilesTitle,
|
|
334
338
|
children: e("There's nothing here")
|
|
335
339
|
}),
|
|
336
340
|
/* @__PURE__ */ m("div", {
|
|
337
|
-
className:
|
|
341
|
+
className: K.noFilesDescription,
|
|
338
342
|
children: e("Try using a different search query.")
|
|
339
343
|
})
|
|
340
344
|
]
|
|
341
345
|
});
|
|
342
|
-
},
|
|
346
|
+
}, ie = class {
|
|
343
347
|
constructor() {
|
|
344
348
|
this.rowsById = /* @__PURE__ */ new Map();
|
|
345
349
|
}
|
|
@@ -359,7 +363,7 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
359
363
|
}
|
|
360
364
|
return this.rowsById = r, i;
|
|
361
365
|
}
|
|
362
|
-
},
|
|
366
|
+
}, ae = class {
|
|
363
367
|
createRenderWindow(e, t) {
|
|
364
368
|
let n = t?.renderStrategy ?? "full";
|
|
365
369
|
if (n !== "windowed") {
|
|
@@ -401,9 +405,9 @@ var M = () => /* @__PURE__ */ m("svg", {
|
|
|
401
405
|
};
|
|
402
406
|
//#endregion
|
|
403
407
|
//#region packages/file-manager/src/presentation/list-core/useListPresentationEngine.ts
|
|
404
|
-
function
|
|
408
|
+
function J({ items: e, context: t, adapter: n, options: r }) {
|
|
405
409
|
let i = o(null), s = o(null);
|
|
406
|
-
i.current ||= new
|
|
410
|
+
i.current ||= new ie(), s.current ||= new ae();
|
|
407
411
|
let c = a(() => i.current.reconcile(e, n, t), [
|
|
408
412
|
n,
|
|
409
413
|
t,
|
|
@@ -414,7 +418,7 @@ function X({ items: e, context: t, adapter: n, options: r }) {
|
|
|
414
418
|
renderWindow: a(() => s.current.createRenderWindow(c, r), [r, c])
|
|
415
419
|
};
|
|
416
420
|
}
|
|
417
|
-
var
|
|
421
|
+
var Y = {
|
|
418
422
|
"em-filemanager": "em-filemanager",
|
|
419
423
|
emFilemanager: "em-filemanager",
|
|
420
424
|
folderTree: "folderTree",
|
|
@@ -428,25 +432,25 @@ var Z = {
|
|
|
428
432
|
folderSelectionTree: "folderSelectionTree",
|
|
429
433
|
folderMenu: "folderMenu",
|
|
430
434
|
folderIcon: "folderIcon"
|
|
431
|
-
},
|
|
432
|
-
let { t: C } = t(), { options: w } = e(), { config: T } = w, { ExpandArrowIcon: E, CollapseArrowIcon: D, CollapseFolderIcon: O, ExpandFolderIcon: k, EmptyFolderIcon: A } =
|
|
435
|
+
}, oe = ({ selectedFolder: n, onSelect: o, onExpand: c, generateMenuItems: l, fetchChildFolders: u, disabledFolders: d = [], showFileCounts: p = !1, folderFileCounts: g = {}, className: _ = "", expandedKeys: v, setExpandedKeys: y, showTrashFolder: b = !1, mode: x = "navigation", defaultExpandAll: S = !1 }) => {
|
|
436
|
+
let { t: C } = t(), { options: w } = e(), { config: T } = w, { ExpandArrowIcon: E, CollapseArrowIcon: D, CollapseFolderIcon: O, ExpandFolderIcon: k, EmptyFolderIcon: A } = G(), j = r((e) => {
|
|
433
437
|
let t = [], n = (e) => {
|
|
434
438
|
e.forEach((e) => {
|
|
435
439
|
t.push(e.key), e.children && n(e.children);
|
|
436
440
|
});
|
|
437
441
|
};
|
|
438
442
|
return n(e), t;
|
|
439
|
-
}, []), [
|
|
443
|
+
}, []), [N, P] = s(() => {
|
|
440
444
|
if (S || x === "selection" && S) {
|
|
441
445
|
let e = l();
|
|
442
446
|
return j(e);
|
|
443
447
|
}
|
|
444
448
|
return [];
|
|
445
|
-
}),
|
|
449
|
+
}), F = v === void 0 ? N : v, I = y === void 0 ? P : y;
|
|
446
450
|
i(() => {
|
|
447
451
|
if (S || x === "selection" && S) {
|
|
448
452
|
let e = l(), t = j(e);
|
|
449
|
-
v === void 0 &&
|
|
453
|
+
v === void 0 && P(t);
|
|
450
454
|
}
|
|
451
455
|
}, [
|
|
452
456
|
S,
|
|
@@ -455,13 +459,13 @@ var Z = {
|
|
|
455
459
|
j,
|
|
456
460
|
v
|
|
457
461
|
]);
|
|
458
|
-
let
|
|
462
|
+
let L = r((e) => {
|
|
459
463
|
let t = e[0];
|
|
460
|
-
|
|
461
|
-
}, [o]),
|
|
462
|
-
if (
|
|
464
|
+
t && t !== "empty" && !t.endsWith("_input") && o?.(e);
|
|
465
|
+
}, [o]), R = r(async (e, t) => {
|
|
466
|
+
if (I(e), c?.(e, t), T?.folderTreeLoading !== "lazy") return;
|
|
463
467
|
let n = t?.node?.key || void 0;
|
|
464
|
-
if (
|
|
468
|
+
if (n && n !== "folders") try {
|
|
465
469
|
await u?.(n);
|
|
466
470
|
} catch (e) {
|
|
467
471
|
console.warn("Failed to load child folders for", n, e);
|
|
@@ -470,26 +474,26 @@ var Z = {
|
|
|
470
474
|
T?.folderTreeLoading,
|
|
471
475
|
u,
|
|
472
476
|
c,
|
|
473
|
-
|
|
474
|
-
]),
|
|
477
|
+
I
|
|
478
|
+
]), z = r(() => {
|
|
475
479
|
let e = l(), t = (e) => e.filter((e) => e.key !== "Trash").map((e) => ({
|
|
476
480
|
...e,
|
|
477
481
|
children: e.children ? t(e.children) : void 0
|
|
478
482
|
})), r = b ? t(e) : e, i = (e) => {
|
|
479
483
|
if (x === "selection") {
|
|
480
|
-
|
|
484
|
+
L([e]);
|
|
481
485
|
return;
|
|
482
486
|
}
|
|
483
|
-
|
|
487
|
+
F.includes(e) && n === e ? I(F.filter((t) => t !== e)) : F.includes(e) || I([...F, e]), L([e]);
|
|
484
488
|
}, a = r.length === 0 || r.length === 1 && (!r[0].children || r[0].children.length === 0), o = (e) => {
|
|
485
|
-
let t = p ? g[e.key] : void 0, n = p && t === null ? null : p ? t ?? 0 : 0, r =
|
|
489
|
+
let t = p ? g[e.key] : void 0, n = p && t === null ? null : p ? t ?? 0 : 0, r = F.includes(e.key), a = d.includes(e.key), s = e.children?.length ? m(r ? O : k, {
|
|
486
490
|
size: 20,
|
|
487
491
|
strokeWidth: T?.iconStrokeWidth
|
|
488
492
|
}) : /* @__PURE__ */ m(A, {
|
|
489
493
|
size: 20,
|
|
490
494
|
strokeWidth: T?.iconStrokeWidth
|
|
491
495
|
}), c = /* @__PURE__ */ h("div", {
|
|
492
|
-
className: `${
|
|
496
|
+
className: `${Y.folderItemContainer} folder-item-container`,
|
|
493
497
|
onClick: (t) => {
|
|
494
498
|
t.stopPropagation(), a || i(e.key);
|
|
495
499
|
},
|
|
@@ -498,13 +502,13 @@ var Z = {
|
|
|
498
502
|
cursor: a ? "not-allowed" : "pointer"
|
|
499
503
|
},
|
|
500
504
|
children: [/* @__PURE__ */ h("div", {
|
|
501
|
-
className:
|
|
505
|
+
className: Y.folderLabel,
|
|
502
506
|
children: [e.icon === void 0 ? s : e.icon, /* @__PURE__ */ m("span", {
|
|
503
|
-
className:
|
|
507
|
+
className: Y.folderLabelItem,
|
|
504
508
|
children: e.label
|
|
505
509
|
})]
|
|
506
510
|
}), p && /* @__PURE__ */ m("div", {
|
|
507
|
-
className:
|
|
511
|
+
className: Y.fileCount,
|
|
508
512
|
title: n === null ? void 0 : `${n} ${C(n === 1 ? "item" : "items")}`,
|
|
509
513
|
children: n === null ? "—" : n
|
|
510
514
|
})]
|
|
@@ -515,35 +519,35 @@ var Z = {
|
|
|
515
519
|
children: e.children?.map(o),
|
|
516
520
|
disabled: a
|
|
517
521
|
};
|
|
518
|
-
}, s =
|
|
519
|
-
className:
|
|
522
|
+
}, s = F.includes("folders"), c = /* @__PURE__ */ m("div", {
|
|
523
|
+
className: Y.foldersTitle,
|
|
520
524
|
onClick: (e) => {
|
|
521
525
|
e.stopPropagation(), i("folders");
|
|
522
526
|
},
|
|
523
527
|
children: /* @__PURE__ */ h("div", {
|
|
524
|
-
className:
|
|
528
|
+
className: Y.foldersTitleItem,
|
|
525
529
|
children: [m(s ? O : k, {
|
|
526
530
|
size: 20,
|
|
527
531
|
strokeWidth: T?.iconStrokeWidth
|
|
528
532
|
}), /* @__PURE__ */ m("span", {
|
|
529
|
-
className: `${
|
|
533
|
+
className: `${Y.folderLabelItem} folder-label-item`,
|
|
530
534
|
children: r[0]?.key === "folders" ? r[0].label : C("Folders")
|
|
531
535
|
})]
|
|
532
536
|
})
|
|
533
537
|
}), u = () => ({
|
|
534
538
|
key: "Trash",
|
|
535
539
|
title: /* @__PURE__ */ m("div", {
|
|
536
|
-
className:
|
|
540
|
+
className: Y.foldersTitle,
|
|
537
541
|
onClick: (e) => {
|
|
538
542
|
e.stopPropagation(), i("Trash");
|
|
539
543
|
},
|
|
540
544
|
children: /* @__PURE__ */ h("div", {
|
|
541
|
-
className:
|
|
542
|
-
children: [/* @__PURE__ */ m(
|
|
545
|
+
className: Y.foldersTitleItem,
|
|
546
|
+
children: [/* @__PURE__ */ m(M, {
|
|
543
547
|
size: 20,
|
|
544
548
|
strokeWidth: T?.iconStrokeWidth
|
|
545
549
|
}), /* @__PURE__ */ m("span", {
|
|
546
|
-
className:
|
|
550
|
+
className: Y.folderLabelItem,
|
|
547
551
|
children: C("Trash")
|
|
548
552
|
})]
|
|
549
553
|
})
|
|
@@ -554,7 +558,7 @@ var Z = {
|
|
|
554
558
|
if (!b) return [{
|
|
555
559
|
key: "empty",
|
|
556
560
|
title: /* @__PURE__ */ m("div", {
|
|
557
|
-
className:
|
|
561
|
+
className: Y.emptyFolderContainer,
|
|
558
562
|
children: C("No folders yet")
|
|
559
563
|
}),
|
|
560
564
|
disabled: !0
|
|
@@ -577,33 +581,33 @@ var Z = {
|
|
|
577
581
|
return r.map(o);
|
|
578
582
|
}, [
|
|
579
583
|
l,
|
|
580
|
-
|
|
584
|
+
F,
|
|
581
585
|
O,
|
|
582
586
|
T?.iconStrokeWidth,
|
|
583
587
|
k,
|
|
584
588
|
C,
|
|
585
589
|
n,
|
|
586
|
-
|
|
590
|
+
L,
|
|
587
591
|
p,
|
|
588
592
|
g,
|
|
589
593
|
A,
|
|
590
594
|
d,
|
|
591
595
|
b,
|
|
592
596
|
x,
|
|
593
|
-
|
|
594
|
-
]),
|
|
597
|
+
I
|
|
598
|
+
]), B = a(() => z(), [z]);
|
|
595
599
|
return /* @__PURE__ */ m(f, {
|
|
596
|
-
className: `${
|
|
600
|
+
className: `${Y.folderTree} ${Y.folderMenu} ${_}`,
|
|
597
601
|
selectedKeys: n ? [n] : [],
|
|
598
|
-
expandedKeys:
|
|
599
|
-
onSelect:
|
|
600
|
-
onExpand:
|
|
601
|
-
treeData:
|
|
602
|
+
expandedKeys: F,
|
|
603
|
+
onSelect: L,
|
|
604
|
+
onExpand: R,
|
|
605
|
+
treeData: B,
|
|
602
606
|
switcherIcon: ({ expanded: e }) => m(e ? D : E, {}),
|
|
603
607
|
showLine: !1,
|
|
604
608
|
focusable: x !== "selection"
|
|
605
609
|
});
|
|
606
|
-
},
|
|
610
|
+
}, X = {
|
|
607
611
|
"em-filemanager": "em-filemanager",
|
|
608
612
|
emFilemanager: "em-filemanager",
|
|
609
613
|
formFooter: "formFooter",
|
|
@@ -623,7 +627,7 @@ var Z = {
|
|
|
623
627
|
closeIcon: "closeIcon",
|
|
624
628
|
modalContentWithLoader: "modalContentWithLoader",
|
|
625
629
|
modalLoaderOverlay: "modalLoaderOverlay"
|
|
626
|
-
},
|
|
630
|
+
}, se = ({ folderId: e, activeFormField: t, EmptyFolderIcon: n, targetForm: r, handleModalOk: i, onComplete: a, setIsLoading: o, t: s }) => /* @__PURE__ */ m(l.Item, {
|
|
627
631
|
className: `form-item form-item-moveto ${t === e ? "form-item_active" : ""}`,
|
|
628
632
|
name: "folderName",
|
|
629
633
|
rules: [{
|
|
@@ -640,14 +644,14 @@ var Z = {
|
|
|
640
644
|
title: "Clean",
|
|
641
645
|
children: /* @__PURE__ */ m(c, {
|
|
642
646
|
icon: /* @__PURE__ */ m(y, { style: { fontSize: 10 } }),
|
|
643
|
-
className:
|
|
647
|
+
className: X.inputButtonClose,
|
|
644
648
|
type: "text",
|
|
645
649
|
onClick: () => {
|
|
646
650
|
r.setFieldsValue({ folderName: "" });
|
|
647
651
|
}
|
|
648
652
|
})
|
|
649
653
|
}), /* @__PURE__ */ m(c, {
|
|
650
|
-
className:
|
|
654
|
+
className: X.inputButtonOk,
|
|
651
655
|
type: "text",
|
|
652
656
|
onClick: () => {
|
|
653
657
|
o(!0), i(r).then((e) => {
|
|
@@ -659,8 +663,8 @@ var Z = {
|
|
|
659
663
|
})] })
|
|
660
664
|
})
|
|
661
665
|
});
|
|
662
|
-
function
|
|
663
|
-
let [s, l] = n.useState(""), u = n.useCallback((e, t) => (n) => /* @__PURE__ */ m(
|
|
666
|
+
function ce({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFolderModalOk: i, setIsLoading: a, t: o }) {
|
|
667
|
+
let [s, l] = n.useState(""), u = n.useCallback((e, t) => (n) => /* @__PURE__ */ m(se, {
|
|
664
668
|
folderId: n,
|
|
665
669
|
activeFormField: s,
|
|
666
670
|
EmptyFolderIcon: r,
|
|
@@ -716,7 +720,7 @@ function oe({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
716
720
|
return {
|
|
717
721
|
key: e.id,
|
|
718
722
|
label: /* @__PURE__ */ h(p, { children: [e.name, t !== e.id && /* @__PURE__ */ h("div", {
|
|
719
|
-
className: `${
|
|
723
|
+
className: `${X.folderToolsField} folder-tools-field`,
|
|
720
724
|
children: [/* @__PURE__ */ m(c, {
|
|
721
725
|
onClick: g,
|
|
722
726
|
children: "+"
|
|
@@ -740,7 +744,7 @@ function oe({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
740
744
|
return [{
|
|
741
745
|
key: "folders",
|
|
742
746
|
label: /* @__PURE__ */ h(p, { children: [o("Folders"), t !== "folders" && t !== null && /* @__PURE__ */ h("div", {
|
|
743
|
-
className: `${
|
|
747
|
+
className: `${X.folderToolsField} folder-tools-field`,
|
|
744
748
|
children: [/* @__PURE__ */ m(c, {
|
|
745
749
|
onClick: y,
|
|
746
750
|
children: "+"
|
|
@@ -763,10 +767,10 @@ function oe({ folders: e, selectedFolder: t, EmptyFolderIcon: r, handleCreateFol
|
|
|
763
767
|
}
|
|
764
768
|
//#endregion
|
|
765
769
|
//#region packages/file-manager/src/presentation/media-list/MediaListAdapter.ts
|
|
766
|
-
function
|
|
770
|
+
function le(e, t) {
|
|
767
771
|
return !e || !t || e <= 0 || t <= 0 ? 1 : e / t;
|
|
768
772
|
}
|
|
769
|
-
function
|
|
773
|
+
function ue(e) {
|
|
770
774
|
return {
|
|
771
775
|
getId: e,
|
|
772
776
|
buildSignature: (t, n) => {
|
|
@@ -789,21 +793,21 @@ function ce(e) {
|
|
|
789
793
|
altText: t.getAltText(e),
|
|
790
794
|
width: r,
|
|
791
795
|
height: i,
|
|
792
|
-
aspectRatio:
|
|
796
|
+
aspectRatio: le(r, i)
|
|
793
797
|
};
|
|
794
798
|
}
|
|
795
799
|
};
|
|
796
800
|
}
|
|
797
801
|
//#endregion
|
|
798
802
|
//#region packages/file-manager/src/presentation/media-list/useMediaListEngine.ts
|
|
799
|
-
var
|
|
800
|
-
function
|
|
803
|
+
var de = 240, fe = 240, pe = 20, me = 800, he = 1200, ge = 40, Z = 1200, _e = 800;
|
|
804
|
+
function ve({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i, getHeight: o, layoutMode: c = "masonry", minColumnWidth: l = de, estimatedItemHeight: u = fe, gap: d = pe, overscanPx: f = me, prefetchThresholdPx: p = he, resolveColumnCount: m, virtualizationThreshold: h = ge }) {
|
|
801
805
|
let [g, _] = s({
|
|
802
806
|
scrollTop: 0,
|
|
803
|
-
viewportHeight:
|
|
804
|
-
viewportWidth:
|
|
807
|
+
viewportHeight: _e,
|
|
808
|
+
viewportWidth: Z,
|
|
805
809
|
scrollHeight: 0
|
|
806
|
-
}), v = a(() =>
|
|
810
|
+
}), v = a(() => ue(t), [t]), y = a(() => ({
|
|
807
811
|
getPreviewSrc: n,
|
|
808
812
|
getAltText: r,
|
|
809
813
|
getWidth: i,
|
|
@@ -814,7 +818,7 @@ function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
814
818
|
n,
|
|
815
819
|
i
|
|
816
820
|
]), b = a(() => {
|
|
817
|
-
let e = Math.max(1, g.viewportWidth ||
|
|
821
|
+
let e = Math.max(1, g.viewportWidth || Z);
|
|
818
822
|
return m ? Math.max(1, m(e)) : Math.max(1, Math.floor((e + d) / (l + d)));
|
|
819
823
|
}, [
|
|
820
824
|
d,
|
|
@@ -822,7 +826,7 @@ function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
822
826
|
m,
|
|
823
827
|
g.viewportWidth
|
|
824
828
|
]), x = a(() => {
|
|
825
|
-
let e = Math.max(1, g.viewportWidth ||
|
|
829
|
+
let e = Math.max(1, g.viewportWidth || Z);
|
|
826
830
|
return Math.max(1, (e - d * Math.max(0, b - 1)) / b);
|
|
827
831
|
}, [
|
|
828
832
|
b,
|
|
@@ -869,7 +873,7 @@ function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
869
873
|
i,
|
|
870
874
|
e,
|
|
871
875
|
c
|
|
872
|
-
]), { rowModels: C, renderWindow: w } =
|
|
876
|
+
]), { rowModels: C, renderWindow: w } = J({
|
|
873
877
|
items: e,
|
|
874
878
|
context: y,
|
|
875
879
|
adapter: v,
|
|
@@ -916,6 +920,22 @@ function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
916
920
|
};
|
|
917
921
|
}
|
|
918
922
|
//#endregion
|
|
919
|
-
|
|
923
|
+
//#region packages/file-manager/src/helpers/urls.ts
|
|
924
|
+
function Q(e, t) {
|
|
925
|
+
return e ? t ? `${e.replace(/\/+$/, "")}/${t.replace(/^\/+/, "")}` : e : t;
|
|
926
|
+
}
|
|
927
|
+
function $(e) {
|
|
928
|
+
let t = typeof __webpack_public_path__ < "u" ? __webpack_public_path__ : "";
|
|
929
|
+
if (e && /^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(e)) return e;
|
|
930
|
+
let n = Q(t, e || "");
|
|
931
|
+
return n && !n.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(n) && (n = "/" + n), n;
|
|
932
|
+
}
|
|
933
|
+
function ye(e, t) {
|
|
934
|
+
if (/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(t)) return t;
|
|
935
|
+
let n = Q($(e), t || "");
|
|
936
|
+
return n && !n.startsWith("/") && !/^[a-zA-Z][a-zA-Z\d+\-.]*?:/.test(n) ? "/" + n : n;
|
|
937
|
+
}
|
|
938
|
+
//#endregion
|
|
939
|
+
export { ce as a, J as c, ve as i, q as l, $ as n, X as o, Q as r, oe as s, ye as t, G as u };
|
|
920
940
|
|
|
921
|
-
//# sourceMappingURL=file-manager-
|
|
941
|
+
//# sourceMappingURL=file-manager-urls-rCuqY9r4.js.map
|