ode-explorer 2.1.1 → 2.1.2-develop.202502181359
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/index.js +104 -104
- package/dist/style.css +1 -1
- package/lib/ActionBarContainer.js +12 -12
- package/lib/AppAction.js +2 -2
- package/lib/FolderModal.js +10 -10
- package/lib/MoveModal.js +11 -11
- package/lib/index2.js +296 -296
- package/package.json +4 -4
package/lib/index2.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as b, Fragment as W, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as B, Suspense as Q, lazy as
|
|
3
|
-
import { useSensor as
|
|
2
|
+
import { useEffect as B, Suspense as Q, lazy as M, useState as le, useRef as we, Fragment as De } from "react";
|
|
3
|
+
import { useSensor as oe, PointerSensor as xe, KeyboardSensor as Se, useSensors as be, DndContext as Te } from "@dnd-kit/core";
|
|
4
4
|
import { snapCenterToCursor as Fe } from "@dnd-kit/modifiers";
|
|
5
|
-
import { odeServices as
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
5
|
+
import { odeServices as N, FOLDER as E, SORT_ORDER as Re, ResourceService as de, isActionAvailable as ne } from "@edifice.io/client";
|
|
6
|
+
import { findParentNode as ve, findNodeById as G, wrapTreeNode as Ee, useToast as U, moveNode as Le, useUser as ue, useEdificeClient as Z, useShareMutation as Ne, useUpdateMutation as Ae, addNode as Me, updateNode as ke, deleteNode as Pe, getAncestors as ae, LoadingScreen as H, FormControl as He, Input as Qe, SearchButton as Ue, Dropdown as K, useToggle as Ze, useScrollToTop as Oe, TreeView as qe, Button as Be, IconButton as Ve, useXitiTrackPageLoad as _e, AppHeader as Ke, Breadcrumb as $e, Grid as te } from "@edifice.io/react";
|
|
7
|
+
import { t as L } from "i18next";
|
|
8
8
|
import { createStore as ze, useStore as je } from "zustand";
|
|
9
|
-
import { useQuery as We, queryOptions as Ge, useQueryClient as
|
|
9
|
+
import { useQuery as We, queryOptions as Ge, useQueryClient as P, useMutation as O, useInfiniteQuery as Je } from "@tanstack/react-query";
|
|
10
10
|
import { useTranslation as V } from "react-i18next";
|
|
11
11
|
const he = async (e) => {
|
|
12
|
-
const t = await
|
|
12
|
+
const t = await N.resource(e.application).searchContext(e);
|
|
13
13
|
return {
|
|
14
14
|
...t,
|
|
15
15
|
folders: t.folders.filter((s) => !s.trashed)
|
|
@@ -25,69 +25,69 @@ const he = async (e) => {
|
|
|
25
25
|
application: e.application,
|
|
26
26
|
type: e.types[0]
|
|
27
27
|
};
|
|
28
|
-
return await
|
|
28
|
+
return await N.resource(e.application).createFolder(r);
|
|
29
29
|
}, Ye = async ({
|
|
30
30
|
folderId: e,
|
|
31
31
|
searchParams: t,
|
|
32
32
|
parentId: s,
|
|
33
33
|
name: r
|
|
34
34
|
}) => {
|
|
35
|
-
const
|
|
35
|
+
const o = {
|
|
36
36
|
folderId: e,
|
|
37
37
|
name: r,
|
|
38
38
|
parentId: s,
|
|
39
39
|
application: t.application,
|
|
40
40
|
type: t.types[0]
|
|
41
41
|
};
|
|
42
|
-
return await
|
|
42
|
+
return await N.resource(t.application).updateFolder(o);
|
|
43
43
|
}, et = async ({
|
|
44
44
|
searchParams: e,
|
|
45
45
|
resourceIds: t,
|
|
46
46
|
useAssetIds: s,
|
|
47
47
|
folderIds: r
|
|
48
48
|
}) => {
|
|
49
|
-
const
|
|
49
|
+
const o = {
|
|
50
50
|
application: e.application,
|
|
51
51
|
resourceType: e.types[0],
|
|
52
52
|
resourceIds: t,
|
|
53
53
|
folderIds: r
|
|
54
54
|
};
|
|
55
|
-
return await
|
|
55
|
+
return await N.resource(e.application).trashAll(o, s);
|
|
56
56
|
}, tt = async ({
|
|
57
57
|
searchParams: e,
|
|
58
58
|
resourceIds: t,
|
|
59
59
|
useAssetIds: s,
|
|
60
60
|
folderIds: r
|
|
61
61
|
}) => {
|
|
62
|
-
const
|
|
62
|
+
const o = {
|
|
63
63
|
application: e.application,
|
|
64
64
|
resourceType: e.types[0],
|
|
65
65
|
resourceIds: t,
|
|
66
66
|
folderIds: r
|
|
67
67
|
};
|
|
68
|
-
return await
|
|
68
|
+
return await N.resource(e.application).deleteAll(o, s);
|
|
69
69
|
}, st = async ({
|
|
70
70
|
searchParams: e,
|
|
71
71
|
resourceIds: t,
|
|
72
72
|
folderIds: s,
|
|
73
73
|
useAssetIds: r
|
|
74
74
|
}) => {
|
|
75
|
-
const
|
|
75
|
+
const o = {
|
|
76
76
|
application: e.application,
|
|
77
77
|
resourceType: e.types[0],
|
|
78
78
|
resourceIds: t,
|
|
79
79
|
folderIds: s
|
|
80
80
|
};
|
|
81
|
-
return await
|
|
82
|
-
}, rt = async (e, t) => await
|
|
81
|
+
return await N.resource(e.application).restoreAll(o, r);
|
|
82
|
+
}, rt = async (e, t) => await N.resource(e.application).copy({
|
|
83
83
|
application: e.application,
|
|
84
84
|
resourceId: t
|
|
85
|
-
}),
|
|
85
|
+
}), pe = async ({
|
|
86
86
|
searchParams: e,
|
|
87
87
|
resourceIds: t,
|
|
88
88
|
folderId: s,
|
|
89
89
|
folderIds: r,
|
|
90
|
-
useAssetIds:
|
|
90
|
+
useAssetIds: o
|
|
91
91
|
}) => {
|
|
92
92
|
const c = {
|
|
93
93
|
application: e.application,
|
|
@@ -95,43 +95,43 @@ const he = async (e) => {
|
|
|
95
95
|
resourceIds: t,
|
|
96
96
|
folderIds: r
|
|
97
97
|
};
|
|
98
|
-
return await
|
|
99
|
-
},
|
|
98
|
+
return await N.resource(e.application).moveToFolder(c, o);
|
|
99
|
+
}, ot = async (e) => await N.rights().sessionHasWorkflowRights(e), nt = ({
|
|
100
100
|
searchParams: e,
|
|
101
101
|
assetId: t
|
|
102
102
|
}) => {
|
|
103
|
-
const s =
|
|
103
|
+
const s = N.resource(e.application).getViewUrl(t);
|
|
104
104
|
window.open(s, "_self");
|
|
105
105
|
}, at = ({
|
|
106
106
|
searchParams: e,
|
|
107
107
|
params: t
|
|
108
|
-
}) =>
|
|
108
|
+
}) => N.resource(e.application).create(t), ct = ({
|
|
109
109
|
searchParams: e,
|
|
110
110
|
assetId: t
|
|
111
111
|
}) => {
|
|
112
|
-
const s =
|
|
112
|
+
const s = N.resource(e.application).getPrintUrl(t);
|
|
113
113
|
return window.open(s, "_blank");
|
|
114
114
|
}, ds = ({
|
|
115
115
|
searchParams: e,
|
|
116
116
|
folderId: t
|
|
117
117
|
}) => {
|
|
118
|
-
const s =
|
|
118
|
+
const s = N.resource(e.application).getFormUrl(t);
|
|
119
119
|
return window.open(s, "_self");
|
|
120
120
|
}, us = ({
|
|
121
121
|
searchParams: e,
|
|
122
122
|
assetId: t
|
|
123
123
|
}) => {
|
|
124
|
-
const s =
|
|
124
|
+
const s = N.resource(e.application).getEditUrl(t);
|
|
125
125
|
return window.open(s, "_self");
|
|
126
126
|
}, hs = ({
|
|
127
127
|
searchParams: e,
|
|
128
128
|
assetId: t
|
|
129
129
|
}) => {
|
|
130
|
-
const s =
|
|
130
|
+
const s = N.resource(e.application).getExportUrl(t);
|
|
131
131
|
return window.open(s, "_self");
|
|
132
|
-
},
|
|
133
|
-
id:
|
|
134
|
-
name:
|
|
132
|
+
}, fe = {
|
|
133
|
+
id: E.DEFAULT,
|
|
134
|
+
name: L("explorer.filters.mine"),
|
|
135
135
|
section: !0,
|
|
136
136
|
children: []
|
|
137
137
|
}, it = {
|
|
@@ -141,7 +141,7 @@ const he = async (e) => {
|
|
|
141
141
|
},
|
|
142
142
|
searchParams: {
|
|
143
143
|
filters: {
|
|
144
|
-
folder:
|
|
144
|
+
folder: E.DEFAULT,
|
|
145
145
|
owner: void 0,
|
|
146
146
|
shared: void 0,
|
|
147
147
|
public: void 0
|
|
@@ -158,7 +158,7 @@ const he = async (e) => {
|
|
|
158
158
|
},
|
|
159
159
|
trashed: !1
|
|
160
160
|
},
|
|
161
|
-
treeData:
|
|
161
|
+
treeData: fe,
|
|
162
162
|
selectedNodeId: "default",
|
|
163
163
|
currentFolder: {
|
|
164
164
|
id: "default"
|
|
@@ -198,20 +198,20 @@ const he = async (e) => {
|
|
|
198
198
|
setSearchParams: (s) => {
|
|
199
199
|
e((r) => {
|
|
200
200
|
const {
|
|
201
|
-
searchParams:
|
|
201
|
+
searchParams: o
|
|
202
202
|
} = r;
|
|
203
|
-
return
|
|
203
|
+
return o.search !== s.search ? s.search ? {
|
|
204
204
|
...r,
|
|
205
205
|
selectedFolders: [],
|
|
206
206
|
selectedNodeId: void 0,
|
|
207
207
|
selectedResources: [],
|
|
208
208
|
currentFolder: void 0,
|
|
209
209
|
searchParams: {
|
|
210
|
-
...
|
|
210
|
+
...o,
|
|
211
211
|
...s,
|
|
212
212
|
trashed: !1,
|
|
213
213
|
filters: {
|
|
214
|
-
...
|
|
214
|
+
...o.filters,
|
|
215
215
|
folder: void 0
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -224,16 +224,16 @@ const he = async (e) => {
|
|
|
224
224
|
id: "default"
|
|
225
225
|
},
|
|
226
226
|
searchParams: {
|
|
227
|
-
...
|
|
227
|
+
...o,
|
|
228
228
|
...s,
|
|
229
229
|
trashed: !1,
|
|
230
230
|
filters: {
|
|
231
|
-
...
|
|
231
|
+
...o.filters
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
} : {
|
|
235
235
|
searchParams: {
|
|
236
|
-
...
|
|
236
|
+
...o,
|
|
237
237
|
...s
|
|
238
238
|
}
|
|
239
239
|
};
|
|
@@ -276,7 +276,7 @@ const he = async (e) => {
|
|
|
276
276
|
const {
|
|
277
277
|
searchParams: r
|
|
278
278
|
} = t();
|
|
279
|
-
|
|
279
|
+
nt({
|
|
280
280
|
searchParams: r,
|
|
281
281
|
assetId: s.assetId
|
|
282
282
|
});
|
|
@@ -289,11 +289,11 @@ const he = async (e) => {
|
|
|
289
289
|
const {
|
|
290
290
|
searchParams: s,
|
|
291
291
|
selectedResources: r,
|
|
292
|
-
resourceIds:
|
|
292
|
+
resourceIds: o
|
|
293
293
|
} = t();
|
|
294
294
|
if (r.length !== 1)
|
|
295
295
|
throw new Error("Cannot open more than 1 resource");
|
|
296
|
-
const c = r.find((
|
|
296
|
+
const c = r.find((n) => n.id === o[0]);
|
|
297
297
|
ct({
|
|
298
298
|
searchParams: s,
|
|
299
299
|
assetId: c.assetId
|
|
@@ -305,13 +305,13 @@ const he = async (e) => {
|
|
|
305
305
|
openFolder: ({
|
|
306
306
|
folderId: s,
|
|
307
307
|
folder: r,
|
|
308
|
-
queryClient:
|
|
308
|
+
queryClient: o
|
|
309
309
|
}) => {
|
|
310
310
|
const {
|
|
311
311
|
searchParams: c
|
|
312
|
-
} = t(),
|
|
313
|
-
|
|
314
|
-
...
|
|
312
|
+
} = t(), n = c.filters.folder, u = s;
|
|
313
|
+
n !== s && (t().actions.fetchTreeData(s, o), e((p) => ({
|
|
314
|
+
...p,
|
|
315
315
|
// reset selection when changing folder
|
|
316
316
|
folderIds: [],
|
|
317
317
|
resourceIds: [],
|
|
@@ -326,7 +326,7 @@ const he = async (e) => {
|
|
|
326
326
|
...c.filters,
|
|
327
327
|
folder: s
|
|
328
328
|
},
|
|
329
|
-
trashed: s ===
|
|
329
|
+
trashed: s === E.BIN
|
|
330
330
|
}
|
|
331
331
|
})));
|
|
332
332
|
},
|
|
@@ -335,9 +335,9 @@ const he = async (e) => {
|
|
|
335
335
|
status: "fold"
|
|
336
336
|
})),
|
|
337
337
|
fetchTreeData: async (s, r) => {
|
|
338
|
-
const
|
|
339
|
-
if (Array.isArray(
|
|
340
|
-
const
|
|
338
|
+
const o = G(t().treeData, s), c = o == null ? void 0 : o.id;
|
|
339
|
+
if (Array.isArray(o == null ? void 0 : o.children) && o.children.length) return;
|
|
340
|
+
const n = await r.fetchQuery({
|
|
341
341
|
queryKey: ["prefetchContext", {
|
|
342
342
|
folderId: c,
|
|
343
343
|
trashed: !1
|
|
@@ -350,19 +350,19 @@ const he = async (e) => {
|
|
|
350
350
|
}
|
|
351
351
|
})
|
|
352
352
|
});
|
|
353
|
-
t().actions.setTreeData(Ee(t().treeData,
|
|
353
|
+
t().actions.setTreeData(Ee(t().treeData, n == null ? void 0 : n.folders, c || E.DEFAULT));
|
|
354
354
|
},
|
|
355
355
|
selectTreeItem: (s, r) => {
|
|
356
356
|
const {
|
|
357
|
-
treeData:
|
|
357
|
+
treeData: o
|
|
358
358
|
} = t(), {
|
|
359
359
|
openFolder: c,
|
|
360
|
-
fetchTreeData:
|
|
361
|
-
} = t().actions, u = G(
|
|
362
|
-
|
|
363
|
-
...
|
|
360
|
+
fetchTreeData: n
|
|
361
|
+
} = t().actions, u = G(o, s);
|
|
362
|
+
n(s, r), e((p) => ({
|
|
363
|
+
...p,
|
|
364
364
|
searchParams: {
|
|
365
|
-
...
|
|
365
|
+
...p.searchParams,
|
|
366
366
|
search: void 0
|
|
367
367
|
},
|
|
368
368
|
status: "select",
|
|
@@ -376,18 +376,18 @@ const he = async (e) => {
|
|
|
376
376
|
const {
|
|
377
377
|
selectedNodeId: s,
|
|
378
378
|
treeData: r,
|
|
379
|
-
searchParams:
|
|
379
|
+
searchParams: o
|
|
380
380
|
} = t(), {
|
|
381
381
|
openFolder: c
|
|
382
382
|
} = t().actions;
|
|
383
|
-
if (
|
|
384
|
-
folder:
|
|
385
|
-
folderId:
|
|
383
|
+
if (o.search && c({
|
|
384
|
+
folder: fe,
|
|
385
|
+
folderId: E.DEFAULT
|
|
386
386
|
}), !s) return;
|
|
387
|
-
const
|
|
387
|
+
const n = ve(r, s);
|
|
388
388
|
c({
|
|
389
|
-
folder:
|
|
390
|
-
folderId: (
|
|
389
|
+
folder: n,
|
|
390
|
+
folderId: (n == null ? void 0 : n.id) || E.DEFAULT
|
|
391
391
|
});
|
|
392
392
|
},
|
|
393
393
|
goToTrash: () => {
|
|
@@ -402,12 +402,12 @@ const he = async (e) => {
|
|
|
402
402
|
...s.searchParams,
|
|
403
403
|
search: void 0,
|
|
404
404
|
filters: {
|
|
405
|
-
folder:
|
|
405
|
+
folder: E.BIN
|
|
406
406
|
},
|
|
407
407
|
trashed: !0
|
|
408
408
|
},
|
|
409
409
|
currentFolder: {
|
|
410
|
-
id:
|
|
410
|
+
id: E.BIN
|
|
411
411
|
}
|
|
412
412
|
}));
|
|
413
413
|
}
|
|
@@ -416,10 +416,10 @@ const he = async (e) => {
|
|
|
416
416
|
function T(e) {
|
|
417
417
|
return je(lt, e);
|
|
418
418
|
}
|
|
419
|
-
const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () => T(ut),
|
|
419
|
+
const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () => T(ut), A = () => T((e) => e.searchParams), se = () => T((e) => e.selectedNodeId), ps = () => T((e) => e.selectedFolders), fs = () => T((e) => e.selectedResources), ht = () => T((e) => e.searchConfig), J = () => T((e) => e.folderIds), X = () => T((e) => e.resourceIds), Y = () => T((e) => e.selectedResources.map((t) => t.assetId)), ee = () => T((e) => e.selectedResources.filter((t) => t.assetId === t.id)), z = () => T((e) => e.currentFolder), re = () => {
|
|
420
420
|
const e = z();
|
|
421
|
-
return (e == null ? void 0 : e.id) ===
|
|
422
|
-
},
|
|
421
|
+
return (e == null ? void 0 : e.id) === E.BIN;
|
|
422
|
+
}, pt = () => T((e) => e.resourceIsTrash), gs = () => T((e) => e.resourceOrFolderIsDraggable), ft = () => T((e) => e.elementDragOver), gt = () => T((e) => e.resourceActionDisable), mt = () => {
|
|
423
423
|
const e = z();
|
|
424
424
|
return (e == null ? void 0 : e.id) === "default";
|
|
425
425
|
}, yt = () => T((e) => e.status), Ct = () => {
|
|
@@ -435,7 +435,7 @@ const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () =>
|
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
437
|
}, It = () => {
|
|
438
|
-
const e =
|
|
438
|
+
const e = pt(), {
|
|
439
439
|
clearSelectedIds: t,
|
|
440
440
|
setResourceIsTrash: s,
|
|
441
441
|
clearSelectedItems: r
|
|
@@ -452,7 +452,7 @@ class ye extends de {
|
|
|
452
452
|
throw new Error("Method not implemented.");
|
|
453
453
|
}
|
|
454
454
|
async create(t) {
|
|
455
|
-
const s = t.thumbnail ? await this.getThumbnailPath(t.thumbnail) : "", r = t.public ? "/blog/pub" : "/blog",
|
|
455
|
+
const s = t.thumbnail ? await this.getThumbnailPath(t.thumbnail) : "", r = t.public ? "/blog/pub" : "/blog", o = await this.http.post(r, {
|
|
456
456
|
title: t.name,
|
|
457
457
|
description: t.description,
|
|
458
458
|
visibility: t.public ? "PUBLIC" : "OWNER",
|
|
@@ -463,7 +463,7 @@ class ye extends de {
|
|
|
463
463
|
"publish-type": t.publishType || "RESTRAINT",
|
|
464
464
|
"comment-type": "IMMEDIATE"
|
|
465
465
|
});
|
|
466
|
-
return this.checkHttpResponse(
|
|
466
|
+
return this.checkHttpResponse(o), o;
|
|
467
467
|
}
|
|
468
468
|
async update(t) {
|
|
469
469
|
const s = t.thumbnail ? await this.getThumbnailPath(t.thumbnail) : "", r = await this.http.put(`/blog/${t.entId}`, {
|
|
@@ -524,11 +524,11 @@ function ms() {
|
|
|
524
524
|
return ce;
|
|
525
525
|
}
|
|
526
526
|
const xt = (e, t) => {
|
|
527
|
-
const s = e.map((
|
|
527
|
+
const s = e.map((o) => o.workflow), r = new Set(s);
|
|
528
528
|
return Ge({
|
|
529
529
|
queryKey: [...r],
|
|
530
|
-
queryFn: () =>
|
|
531
|
-
select: (
|
|
530
|
+
queryFn: () => ot([...r]),
|
|
531
|
+
select: (o) => e.filter((c) => o[c.workflow]).map((c) => ({
|
|
532
532
|
...c,
|
|
533
533
|
available: !0
|
|
534
534
|
})),
|
|
@@ -539,65 +539,65 @@ const xt = (e, t) => {
|
|
|
539
539
|
const t = T((s) => s.config);
|
|
540
540
|
return We(xt(e, t));
|
|
541
541
|
}, bt = () => {
|
|
542
|
-
const e = T((
|
|
542
|
+
const e = T((n) => n.config), t = A(), {
|
|
543
543
|
filters: s,
|
|
544
544
|
trashed: r,
|
|
545
|
-
search:
|
|
545
|
+
search: o
|
|
546
546
|
} = t, c = ["context", {
|
|
547
547
|
folderId: s.folder,
|
|
548
548
|
filters: s,
|
|
549
549
|
trashed: r,
|
|
550
|
-
search:
|
|
550
|
+
search: o
|
|
551
551
|
}];
|
|
552
552
|
return Je({
|
|
553
553
|
queryKey: c,
|
|
554
554
|
queryFn: async ({
|
|
555
|
-
pageParam:
|
|
555
|
+
pageParam: n
|
|
556
556
|
}) => await he({
|
|
557
557
|
...t,
|
|
558
558
|
application: e == null ? void 0 : e.app,
|
|
559
559
|
types: e == null ? void 0 : e.types,
|
|
560
560
|
pagination: {
|
|
561
561
|
...t.pagination,
|
|
562
|
-
startIdx:
|
|
562
|
+
startIdx: n
|
|
563
563
|
}
|
|
564
564
|
}),
|
|
565
565
|
staleTime: 5e3,
|
|
566
566
|
initialPageParam: 0,
|
|
567
567
|
enabled: !!e,
|
|
568
568
|
retry: !1,
|
|
569
|
-
getNextPageParam: (
|
|
569
|
+
getNextPageParam: (n) => n.pagination.startIdx + n.pagination.pageSize
|
|
570
570
|
});
|
|
571
571
|
}, ys = () => {
|
|
572
|
-
const e = U(), t =
|
|
572
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), c = Y(), n = X(), u = ee().length > 0, p = u ? c : n, {
|
|
573
573
|
clearSelectedItems: i,
|
|
574
574
|
clearSelectedIds: l,
|
|
575
575
|
setTreeData: h,
|
|
576
576
|
setSearchParams: d
|
|
577
577
|
} = R(), {
|
|
578
|
-
filters:
|
|
578
|
+
filters: f,
|
|
579
579
|
trashed: m
|
|
580
580
|
} = s, I = ["context", {
|
|
581
|
-
folderId:
|
|
582
|
-
filters:
|
|
581
|
+
folderId: f.folder,
|
|
582
|
+
filters: f,
|
|
583
583
|
trashed: m
|
|
584
584
|
}];
|
|
585
585
|
return O({
|
|
586
586
|
mutationFn: async () => await et({
|
|
587
587
|
searchParams: s,
|
|
588
|
-
folderIds:
|
|
589
|
-
resourceIds:
|
|
588
|
+
folderIds: o,
|
|
589
|
+
resourceIds: p,
|
|
590
590
|
useAssetIds: u
|
|
591
591
|
}),
|
|
592
592
|
onError(C) {
|
|
593
|
-
typeof C == "string" && e.error(
|
|
593
|
+
typeof C == "string" && e.error(L(C));
|
|
594
594
|
},
|
|
595
595
|
onSuccess: async (C) => {
|
|
596
596
|
if (await t.cancelQueries({
|
|
597
597
|
queryKey: I
|
|
598
598
|
}), t.getQueryData(I))
|
|
599
|
-
return e.success(
|
|
600
|
-
var
|
|
599
|
+
return e.success(L("explorer.trash.title")), t.setQueryData(I, (F) => {
|
|
600
|
+
var k;
|
|
601
601
|
if (F) {
|
|
602
602
|
const S = {
|
|
603
603
|
...F,
|
|
@@ -605,24 +605,24 @@ const xt = (e, t) => {
|
|
|
605
605
|
var g;
|
|
606
606
|
return {
|
|
607
607
|
...y,
|
|
608
|
-
folders: y.folders.filter((w) => !
|
|
608
|
+
folders: y.folders.filter((w) => !o.includes(w.id)),
|
|
609
609
|
pagination: {
|
|
610
610
|
...y.pagination,
|
|
611
611
|
// @ts-ignore
|
|
612
612
|
maxIdx: ((g = y == null ? void 0 : y.pagination) == null ? void 0 : g.maxIdx) - C.resources.length
|
|
613
613
|
},
|
|
614
|
-
resources: y.resources.filter((w) => u ? !c.includes(w.assetId) : !
|
|
614
|
+
resources: y.resources.filter((w) => u ? !c.includes(w.assetId) : !p.includes(w.id))
|
|
615
615
|
};
|
|
616
616
|
})
|
|
617
|
-
}, D =
|
|
618
|
-
folders:
|
|
617
|
+
}, D = Pe(r, {
|
|
618
|
+
folders: o
|
|
619
619
|
});
|
|
620
620
|
return h(D), d({
|
|
621
621
|
...s,
|
|
622
622
|
pagination: {
|
|
623
623
|
...s.pagination,
|
|
624
624
|
// @ts-ignore
|
|
625
|
-
maxIdx: ((
|
|
625
|
+
maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - C.resources.length
|
|
626
626
|
}
|
|
627
627
|
}), S;
|
|
628
628
|
}
|
|
@@ -633,52 +633,52 @@ const xt = (e, t) => {
|
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
635
|
}, Cs = () => {
|
|
636
|
-
const e = U(), t =
|
|
637
|
-
setFolderIds:
|
|
636
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), c = X(), n = ee().length > 0, u = n ? o : c, {
|
|
637
|
+
setFolderIds: p,
|
|
638
638
|
setResourceIds: i,
|
|
639
639
|
setSelectedResources: l,
|
|
640
640
|
setSelectedFolders: h
|
|
641
641
|
} = R(), {
|
|
642
642
|
filters: d,
|
|
643
|
-
trashed:
|
|
643
|
+
trashed: f
|
|
644
644
|
} = s, m = ["context", {
|
|
645
645
|
folderId: d.folder,
|
|
646
646
|
filters: d,
|
|
647
|
-
trashed:
|
|
647
|
+
trashed: f
|
|
648
648
|
}];
|
|
649
649
|
return O({
|
|
650
650
|
mutationFn: async () => await st({
|
|
651
651
|
searchParams: s,
|
|
652
652
|
folderIds: r,
|
|
653
653
|
resourceIds: u,
|
|
654
|
-
useAssetIds:
|
|
654
|
+
useAssetIds: n
|
|
655
655
|
}),
|
|
656
656
|
onError(I) {
|
|
657
|
-
typeof I == "string" && e.error(
|
|
657
|
+
typeof I == "string" && e.error(L(I));
|
|
658
658
|
},
|
|
659
659
|
onSuccess: async () => {
|
|
660
660
|
if (await t.cancelQueries({
|
|
661
661
|
queryKey: m
|
|
662
662
|
}), t.getQueryData(m))
|
|
663
|
-
return e.success(
|
|
663
|
+
return e.success(L("explorer.trash.toast")), t.setQueryData(m, (C) => {
|
|
664
664
|
if (C)
|
|
665
665
|
return {
|
|
666
666
|
...C,
|
|
667
667
|
pages: C == null ? void 0 : C.pages.map((x) => ({
|
|
668
668
|
...x,
|
|
669
669
|
folders: x.folders.filter((F) => !r.includes(F.id)),
|
|
670
|
-
resources: x.resources.filter((F) =>
|
|
670
|
+
resources: x.resources.filter((F) => n ? !o.includes(F.assetId) : !u.includes(F.id))
|
|
671
671
|
}))
|
|
672
672
|
};
|
|
673
673
|
});
|
|
674
674
|
},
|
|
675
675
|
onSettled: () => {
|
|
676
|
-
i([]), l([]),
|
|
676
|
+
i([]), l([]), p([]), h([]);
|
|
677
677
|
}
|
|
678
678
|
});
|
|
679
679
|
}, Is = () => {
|
|
680
|
-
const e = U(), t =
|
|
681
|
-
clearSelectedItems:
|
|
680
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), c = X(), n = ee().length > 0, u = n ? o : c, {
|
|
681
|
+
clearSelectedItems: p,
|
|
682
682
|
clearSelectedIds: i
|
|
683
683
|
} = R(), {
|
|
684
684
|
filters: l,
|
|
@@ -693,53 +693,53 @@ const xt = (e, t) => {
|
|
|
693
693
|
searchParams: s,
|
|
694
694
|
folderIds: r,
|
|
695
695
|
resourceIds: u,
|
|
696
|
-
useAssetIds:
|
|
696
|
+
useAssetIds: n
|
|
697
697
|
}),
|
|
698
|
-
onError(
|
|
699
|
-
typeof
|
|
698
|
+
onError(f) {
|
|
699
|
+
typeof f == "string" && e.error(L(f));
|
|
700
700
|
},
|
|
701
701
|
onSuccess: async () => {
|
|
702
702
|
if (await t.cancelQueries({
|
|
703
703
|
queryKey: d
|
|
704
704
|
}), t.getQueryData(d))
|
|
705
|
-
return e.success(
|
|
705
|
+
return e.success(L("explorer.removed.from.trash")), t.setQueryData(d, (m) => {
|
|
706
706
|
if (m)
|
|
707
707
|
return {
|
|
708
708
|
...m,
|
|
709
709
|
pages: m == null ? void 0 : m.pages.map((C) => ({
|
|
710
710
|
...C,
|
|
711
711
|
folders: C.folders.filter((x) => !r.includes(x.id)),
|
|
712
|
-
resources: C.resources.filter((x) =>
|
|
712
|
+
resources: C.resources.filter((x) => n ? !o.includes(x.assetId) : !u.includes(x.id))
|
|
713
713
|
}))
|
|
714
714
|
};
|
|
715
715
|
});
|
|
716
716
|
},
|
|
717
717
|
onSettled: () => {
|
|
718
|
-
|
|
718
|
+
p(), i();
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
721
|
}, ws = () => {
|
|
722
|
-
const e = U(), t =
|
|
722
|
+
const e = U(), t = A(), s = P(), {
|
|
723
723
|
user: r
|
|
724
|
-
} = ue(),
|
|
724
|
+
} = ue(), o = z(), {
|
|
725
725
|
filters: c,
|
|
726
|
-
trashed:
|
|
727
|
-
} = t, u = "duplicate_start",
|
|
726
|
+
trashed: n
|
|
727
|
+
} = t, u = "duplicate_start", p = ["context", {
|
|
728
728
|
folderId: c.folder,
|
|
729
729
|
filters: c,
|
|
730
|
-
trashed:
|
|
730
|
+
trashed: n
|
|
731
731
|
}];
|
|
732
732
|
return O({
|
|
733
|
-
mutationFn: async (i) => (e.info(
|
|
733
|
+
mutationFn: async (i) => (e.info(L("duplicate.start"), {
|
|
734
734
|
id: u
|
|
735
735
|
}), await rt(t, i.assetId)),
|
|
736
736
|
onSuccess: async (i, l) => {
|
|
737
|
-
e.remove(u), e.success(
|
|
738
|
-
queryKey:
|
|
737
|
+
e.remove(u), e.success(L("duplicate.done")), await s.cancelQueries({
|
|
738
|
+
queryKey: p
|
|
739
739
|
});
|
|
740
|
-
const h = s.getQueryData(
|
|
740
|
+
const h = s.getQueryData(p), d = {
|
|
741
741
|
...l,
|
|
742
|
-
name: `${l.name}${
|
|
742
|
+
name: `${l.name}${L("duplicate.suffix")}`,
|
|
743
743
|
assetId: i.duplicateId,
|
|
744
744
|
id: i.duplicateId,
|
|
745
745
|
creatorId: r == null ? void 0 : r.userId,
|
|
@@ -753,73 +753,73 @@ const xt = (e, t) => {
|
|
|
753
753
|
trashed: !1,
|
|
754
754
|
rights: [`creator:${r == null ? void 0 : r.userId}`]
|
|
755
755
|
};
|
|
756
|
-
h && s.setQueryData(
|
|
757
|
-
if (
|
|
756
|
+
h && s.setQueryData(p, (f) => {
|
|
757
|
+
if (f)
|
|
758
758
|
return {
|
|
759
|
-
...
|
|
760
|
-
pages:
|
|
759
|
+
...f,
|
|
760
|
+
pages: f == null ? void 0 : f.pages.map((m) => ({
|
|
761
761
|
...m,
|
|
762
762
|
resources: [d, ...m.resources]
|
|
763
763
|
}))
|
|
764
764
|
};
|
|
765
|
-
}),
|
|
765
|
+
}), o.id && o.id !== E.DEFAULT && pe({
|
|
766
766
|
searchParams: t,
|
|
767
767
|
resourceIds: [i.duplicateId],
|
|
768
|
-
folderId:
|
|
768
|
+
folderId: o.id,
|
|
769
769
|
folderIds: [],
|
|
770
770
|
useAssetIds: !0
|
|
771
771
|
});
|
|
772
772
|
},
|
|
773
773
|
onError: (i) => {
|
|
774
|
-
e.remove(u), typeof i == "string" && e.error(`${
|
|
774
|
+
e.remove(u), typeof i == "string" && e.error(`${L("duplicate.error")}: ${i}`);
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
777
|
}, Tt = () => {
|
|
778
|
-
const e = U(), t =
|
|
778
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), c = Y(), n = X(), u = ee().length > 0, p = u ? c : n, {
|
|
779
779
|
clearSelectedIds: i,
|
|
780
780
|
clearSelectedItems: l,
|
|
781
781
|
setTreeData: h,
|
|
782
782
|
setSearchParams: d
|
|
783
783
|
} = R(), {
|
|
784
|
-
filters:
|
|
784
|
+
filters: f,
|
|
785
785
|
trashed: m
|
|
786
786
|
} = s, I = ["context", {
|
|
787
|
-
folderId:
|
|
788
|
-
filters:
|
|
787
|
+
folderId: f.folder,
|
|
788
|
+
filters: f,
|
|
789
789
|
trashed: m
|
|
790
790
|
}];
|
|
791
791
|
return O({
|
|
792
|
-
mutationFn: async (C) => await
|
|
792
|
+
mutationFn: async (C) => await pe({
|
|
793
793
|
searchParams: s,
|
|
794
794
|
folderId: C,
|
|
795
|
-
folderIds:
|
|
796
|
-
resourceIds:
|
|
795
|
+
folderIds: o,
|
|
796
|
+
resourceIds: p,
|
|
797
797
|
useAssetIds: u
|
|
798
798
|
}),
|
|
799
799
|
onError(C) {
|
|
800
|
-
typeof C == "string" && e.error(
|
|
800
|
+
typeof C == "string" && e.error(L(C));
|
|
801
801
|
},
|
|
802
802
|
onSuccess: async (C, x) => {
|
|
803
803
|
if (t.getQueryData(I))
|
|
804
|
-
return t.setQueryData(I, (
|
|
804
|
+
return t.setQueryData(I, (k) => {
|
|
805
805
|
var S;
|
|
806
|
-
if (
|
|
807
|
-
const D =
|
|
806
|
+
if (k) {
|
|
807
|
+
const D = Le(r, {
|
|
808
808
|
destinationId: x,
|
|
809
|
-
folders:
|
|
809
|
+
folders: o
|
|
810
810
|
}), y = {
|
|
811
|
-
...
|
|
812
|
-
pages:
|
|
811
|
+
...k,
|
|
812
|
+
pages: k == null ? void 0 : k.pages.map((g) => {
|
|
813
813
|
var w;
|
|
814
814
|
return {
|
|
815
815
|
...g,
|
|
816
|
-
folders: g.folders.filter((
|
|
816
|
+
folders: g.folders.filter((v) => !o.includes(v.id)),
|
|
817
817
|
pagination: {
|
|
818
818
|
...g.pagination,
|
|
819
819
|
// @ts-ignore
|
|
820
820
|
maxIdx: ((w = g.pagination) == null ? void 0 : w.maxIdx) - C.resources.length
|
|
821
821
|
},
|
|
822
|
-
resources: g.resources.filter((
|
|
822
|
+
resources: g.resources.filter((v) => u ? !c.includes(v.assetId) : !p.includes(v.id))
|
|
823
823
|
};
|
|
824
824
|
})
|
|
825
825
|
};
|
|
@@ -840,68 +840,68 @@ const xt = (e, t) => {
|
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
842
|
}, Ds = () => {
|
|
843
|
-
const e = U(), t =
|
|
844
|
-
setTreeData:
|
|
843
|
+
const e = U(), t = P(), s = A(), r = $(), {
|
|
844
|
+
setTreeData: o
|
|
845
845
|
} = R(), {
|
|
846
846
|
filters: c,
|
|
847
|
-
trashed:
|
|
847
|
+
trashed: n
|
|
848
848
|
} = s, u = ["context", {
|
|
849
849
|
folderId: c.folder,
|
|
850
850
|
filters: c,
|
|
851
|
-
trashed:
|
|
851
|
+
trashed: n
|
|
852
852
|
}];
|
|
853
853
|
return O({
|
|
854
854
|
mutationFn: async ({
|
|
855
|
-
name:
|
|
855
|
+
name: p,
|
|
856
856
|
parentId: i
|
|
857
857
|
}) => await Xe({
|
|
858
858
|
searchParams: s,
|
|
859
|
-
name:
|
|
859
|
+
name: p,
|
|
860
860
|
parentId: i
|
|
861
861
|
}),
|
|
862
|
-
onError(
|
|
863
|
-
typeof
|
|
862
|
+
onError(p) {
|
|
863
|
+
typeof p == "string" && e.error(L(p));
|
|
864
864
|
},
|
|
865
|
-
onSuccess: async (
|
|
865
|
+
onSuccess: async (p, i) => {
|
|
866
866
|
await t.cancelQueries({
|
|
867
867
|
queryKey: u
|
|
868
868
|
});
|
|
869
869
|
const l = t.getQueryData(u), h = {
|
|
870
|
-
...
|
|
870
|
+
...p,
|
|
871
871
|
parentId: i.parentId,
|
|
872
872
|
children: [],
|
|
873
|
-
rights: [`creator:${
|
|
873
|
+
rights: [`creator:${p == null ? void 0 : p.creator_id}`]
|
|
874
874
|
};
|
|
875
875
|
if (l)
|
|
876
876
|
return t.setQueryData(u, (d) => {
|
|
877
877
|
if (d) {
|
|
878
|
-
const
|
|
878
|
+
const f = {
|
|
879
879
|
...d,
|
|
880
880
|
pages: d == null ? void 0 : d.pages.map((I) => ({
|
|
881
881
|
...I,
|
|
882
882
|
folders: [...I.folders, h]
|
|
883
883
|
}))
|
|
884
|
-
}, m =
|
|
884
|
+
}, m = Me(r, {
|
|
885
885
|
parentId: i.parentId,
|
|
886
886
|
newFolder: h
|
|
887
887
|
});
|
|
888
|
-
return
|
|
888
|
+
return o(m), f;
|
|
889
889
|
}
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
}, xs = () => {
|
|
894
|
-
const e = U(), t =
|
|
895
|
-
setFolderIds:
|
|
894
|
+
const e = U(), t = P(), s = A(), r = $(), {
|
|
895
|
+
setFolderIds: o,
|
|
896
896
|
setSelectedFolders: c,
|
|
897
|
-
setTreeData:
|
|
897
|
+
setTreeData: n
|
|
898
898
|
} = R(), {
|
|
899
899
|
filters: u,
|
|
900
|
-
trashed:
|
|
900
|
+
trashed: p
|
|
901
901
|
} = s, i = ["context", {
|
|
902
902
|
folderId: u.folder,
|
|
903
903
|
filters: u,
|
|
904
|
-
trashed:
|
|
904
|
+
trashed: p
|
|
905
905
|
}];
|
|
906
906
|
return O({
|
|
907
907
|
mutationFn: async ({
|
|
@@ -915,17 +915,17 @@ const xt = (e, t) => {
|
|
|
915
915
|
name: h
|
|
916
916
|
}),
|
|
917
917
|
onError(l) {
|
|
918
|
-
typeof l == "string" && e.error(
|
|
918
|
+
typeof l == "string" && e.error(L(l));
|
|
919
919
|
},
|
|
920
920
|
onSuccess: async (l, h) => {
|
|
921
921
|
if (await t.cancelQueries({
|
|
922
922
|
queryKey: i
|
|
923
923
|
}), t.getQueryData(i))
|
|
924
|
-
return t.setQueryData(i, (
|
|
925
|
-
if (
|
|
924
|
+
return t.setQueryData(i, (f) => {
|
|
925
|
+
if (f) {
|
|
926
926
|
const m = {
|
|
927
|
-
...
|
|
928
|
-
pages:
|
|
927
|
+
...f,
|
|
928
|
+
pages: f == null ? void 0 : f.pages.map((C) => ({
|
|
929
929
|
...C,
|
|
930
930
|
folders: C.folders.map((x) => x.id === l.id ? {
|
|
931
931
|
...l,
|
|
@@ -933,34 +933,34 @@ const xt = (e, t) => {
|
|
|
933
933
|
rights: x.rights
|
|
934
934
|
} : x)
|
|
935
935
|
}))
|
|
936
|
-
}, I =
|
|
936
|
+
}, I = ke(r, {
|
|
937
937
|
folderId: h.folderId,
|
|
938
938
|
newFolder: l
|
|
939
939
|
});
|
|
940
|
-
return
|
|
940
|
+
return n(I), m;
|
|
941
941
|
}
|
|
942
942
|
});
|
|
943
943
|
},
|
|
944
944
|
onSettled: () => {
|
|
945
|
-
|
|
945
|
+
o([]), c([]);
|
|
946
946
|
}
|
|
947
947
|
});
|
|
948
948
|
}, Ss = (e) => {
|
|
949
|
-
const t =
|
|
949
|
+
const t = P(), s = A(), {
|
|
950
950
|
setResourceIds: r,
|
|
951
|
-
setSelectedResources:
|
|
951
|
+
setSelectedResources: o
|
|
952
952
|
} = R(), {
|
|
953
953
|
filters: c,
|
|
954
|
-
trashed:
|
|
954
|
+
trashed: n
|
|
955
955
|
} = s, u = ["context", {
|
|
956
956
|
folderId: c.folder,
|
|
957
957
|
filters: c,
|
|
958
|
-
trashed:
|
|
958
|
+
trashed: n
|
|
959
959
|
}];
|
|
960
|
-
return
|
|
960
|
+
return Ne({
|
|
961
961
|
application: e,
|
|
962
962
|
options: {
|
|
963
|
-
onSuccess: async (
|
|
963
|
+
onSuccess: async (p, i) => {
|
|
964
964
|
if (await t.cancelQueries({
|
|
965
965
|
queryKey: u
|
|
966
966
|
}), t.getQueryData(u))
|
|
@@ -970,38 +970,38 @@ const xt = (e, t) => {
|
|
|
970
970
|
...h,
|
|
971
971
|
pages: h == null ? void 0 : h.pages.map((d) => ({
|
|
972
972
|
...d,
|
|
973
|
-
resources: d.resources.map((
|
|
974
|
-
if (
|
|
975
|
-
let m = [`creator:${
|
|
973
|
+
resources: d.resources.map((f) => {
|
|
974
|
+
if (f.assetId === (i == null ? void 0 : i.resourceId)) {
|
|
975
|
+
let m = [`creator:${f.creatorId}`];
|
|
976
976
|
return (i == null ? void 0 : i.rights.length) >= 1 && (m = [...m, ...i.rights.flatMap((I) => I.actions.map((C) => `${I.type}:${I.id}:${C.id}`))]), {
|
|
977
|
-
...
|
|
977
|
+
...f,
|
|
978
978
|
rights: m
|
|
979
979
|
};
|
|
980
980
|
} else
|
|
981
|
-
return
|
|
981
|
+
return f;
|
|
982
982
|
})
|
|
983
983
|
}))
|
|
984
984
|
};
|
|
985
985
|
});
|
|
986
986
|
},
|
|
987
987
|
onSettled: () => {
|
|
988
|
-
r([]),
|
|
988
|
+
r([]), o([]);
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
});
|
|
992
992
|
}, bs = (e) => {
|
|
993
|
-
const t =
|
|
993
|
+
const t = P(), s = A(), {
|
|
994
994
|
filters: r,
|
|
995
|
-
trashed:
|
|
995
|
+
trashed: o
|
|
996
996
|
} = s, c = ["context", {
|
|
997
997
|
folderId: r.folder,
|
|
998
998
|
filters: r,
|
|
999
|
-
trashed:
|
|
999
|
+
trashed: o
|
|
1000
1000
|
}];
|
|
1001
|
-
return
|
|
1001
|
+
return Ae({
|
|
1002
1002
|
application: e,
|
|
1003
1003
|
options: {
|
|
1004
|
-
onSuccess: async (
|
|
1004
|
+
onSuccess: async (n, u) => {
|
|
1005
1005
|
if (await t.cancelQueries({
|
|
1006
1006
|
queryKey: c
|
|
1007
1007
|
}), t.getQueryData(c))
|
|
@@ -1015,7 +1015,7 @@ const xt = (e, t) => {
|
|
|
1015
1015
|
if (h.assetId === (u == null ? void 0 : u.entId)) {
|
|
1016
1016
|
const {
|
|
1017
1017
|
name: d,
|
|
1018
|
-
thumbnail:
|
|
1018
|
+
thumbnail: f,
|
|
1019
1019
|
public: m,
|
|
1020
1020
|
description: I,
|
|
1021
1021
|
slug: C,
|
|
@@ -1026,7 +1026,7 @@ const xt = (e, t) => {
|
|
|
1026
1026
|
...x,
|
|
1027
1027
|
// add any custom field
|
|
1028
1028
|
name: d,
|
|
1029
|
-
thumbnail: typeof
|
|
1029
|
+
thumbnail: typeof f == "string" ? f : URL.createObjectURL(f),
|
|
1030
1030
|
public: m,
|
|
1031
1031
|
description: I,
|
|
1032
1032
|
slug: C
|
|
@@ -1041,51 +1041,51 @@ const xt = (e, t) => {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
});
|
|
1043
1043
|
}, Ts = () => {
|
|
1044
|
-
const e = U(), t =
|
|
1044
|
+
const e = U(), t = P(), s = A(), {
|
|
1045
1045
|
user: r
|
|
1046
1046
|
} = ue(), {
|
|
1047
|
-
appCode:
|
|
1047
|
+
appCode: o
|
|
1048
1048
|
} = Z(), c = ["context", {
|
|
1049
1049
|
folderId: s.filters.folder,
|
|
1050
1050
|
filters: s.filters,
|
|
1051
1051
|
trashed: s.trashed
|
|
1052
1052
|
}];
|
|
1053
1053
|
return O({
|
|
1054
|
-
mutationFn: async (
|
|
1054
|
+
mutationFn: async (n) => await at({
|
|
1055
1055
|
searchParams: s,
|
|
1056
|
-
params:
|
|
1056
|
+
params: n
|
|
1057
1057
|
}),
|
|
1058
|
-
onError(
|
|
1059
|
-
typeof
|
|
1058
|
+
onError(n) {
|
|
1059
|
+
typeof n == "string" && e.error(L(n));
|
|
1060
1060
|
},
|
|
1061
|
-
onSuccess: async (
|
|
1061
|
+
onSuccess: async (n, u) => {
|
|
1062
1062
|
var l, h, d;
|
|
1063
1063
|
await t.cancelQueries({
|
|
1064
1064
|
queryKey: c
|
|
1065
1065
|
});
|
|
1066
|
-
const
|
|
1066
|
+
const p = t.getQueryData(c), i = {
|
|
1067
1067
|
...u,
|
|
1068
|
-
thumbnail:
|
|
1069
|
-
application:
|
|
1070
|
-
assetId:
|
|
1071
|
-
id:
|
|
1068
|
+
thumbnail: n.thumbnail || "",
|
|
1069
|
+
application: o,
|
|
1070
|
+
assetId: n._id || n.entId || "",
|
|
1071
|
+
id: n._id || n.entId || "",
|
|
1072
1072
|
creatorId: r == null ? void 0 : r.userId,
|
|
1073
1073
|
creatorName: r == null ? void 0 : r.username,
|
|
1074
1074
|
createdAt: Date.now(),
|
|
1075
1075
|
slug: u.slug || "",
|
|
1076
|
-
modifiedAt: ((l =
|
|
1077
|
-
modifierId: ((h =
|
|
1078
|
-
modifierName: ((d =
|
|
1076
|
+
modifiedAt: ((l = n.modified) == null ? void 0 : l.$date) || "",
|
|
1077
|
+
modifierId: ((h = n.author) == null ? void 0 : h.userId) || "",
|
|
1078
|
+
modifierName: ((d = n.author) == null ? void 0 : d.username) || "",
|
|
1079
1079
|
updatedAt: Date.now(),
|
|
1080
1080
|
trashed: !1,
|
|
1081
1081
|
rights: [`creator:${r == null ? void 0 : r.userId}`]
|
|
1082
1082
|
};
|
|
1083
|
-
if (
|
|
1084
|
-
return t.setQueryData(c, (
|
|
1085
|
-
if (
|
|
1083
|
+
if (p)
|
|
1084
|
+
return t.setQueryData(c, (f) => {
|
|
1085
|
+
if (f)
|
|
1086
1086
|
return {
|
|
1087
|
-
...
|
|
1088
|
-
pages:
|
|
1087
|
+
...f,
|
|
1088
|
+
pages: f == null ? void 0 : f.pages.map((m) => ({
|
|
1089
1089
|
...m,
|
|
1090
1090
|
resources: [i, ...m.resources]
|
|
1091
1091
|
}))
|
|
@@ -1097,34 +1097,34 @@ const xt = (e, t) => {
|
|
|
1097
1097
|
function ie(e, t) {
|
|
1098
1098
|
var r;
|
|
1099
1099
|
const s = G(e, t);
|
|
1100
|
-
return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t ===
|
|
1100
|
+
return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t === E.BIN ? [E.BIN] : [E.DEFAULT];
|
|
1101
1101
|
}
|
|
1102
1102
|
function Ft() {
|
|
1103
|
-
const e =
|
|
1103
|
+
const e = P(), t = Tt(), s = U(), {
|
|
1104
1104
|
appCode: r
|
|
1105
1105
|
} = Z(), {
|
|
1106
|
-
t:
|
|
1107
|
-
} = V(["common", r]), c =
|
|
1106
|
+
t: o
|
|
1107
|
+
} = V(["common", r]), c = o("explorer.filters.mine", {
|
|
1108
1108
|
ns: r
|
|
1109
1109
|
}), {
|
|
1110
|
-
setResourceOrFolderIsDraggable:
|
|
1110
|
+
setResourceOrFolderIsDraggable: n,
|
|
1111
1111
|
setElementDragOver: u,
|
|
1112
|
-
setResourceIds:
|
|
1112
|
+
setResourceIds: p,
|
|
1113
1113
|
setFolderIds: i,
|
|
1114
1114
|
fetchTreeData: l
|
|
1115
|
-
} = R(), h = $(),
|
|
1115
|
+
} = R(), h = $(), f = oe(xe, {
|
|
1116
1116
|
activationConstraint: {
|
|
1117
1117
|
delay: wt,
|
|
1118
1118
|
tolerance: Dt
|
|
1119
1119
|
}
|
|
1120
|
-
}), m =
|
|
1120
|
+
}), m = oe(Se), I = be(f, m), C = (S, D) => {
|
|
1121
1121
|
var y;
|
|
1122
1122
|
((y = S.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ b(W, { children: [
|
|
1123
|
-
|
|
1123
|
+
o("explorer.dragged.resource"),
|
|
1124
1124
|
" ",
|
|
1125
1125
|
/* @__PURE__ */ a("strong", { children: D })
|
|
1126
1126
|
] })) : s.success(/* @__PURE__ */ b(W, { children: [
|
|
1127
|
-
|
|
1127
|
+
o("explorer.dragged.folder"),
|
|
1128
1128
|
" ",
|
|
1129
1129
|
/* @__PURE__ */ a("strong", { children: D })
|
|
1130
1130
|
] }));
|
|
@@ -1134,9 +1134,9 @@ function Ft() {
|
|
|
1134
1134
|
const {
|
|
1135
1135
|
over: D,
|
|
1136
1136
|
active: y
|
|
1137
|
-
} = S, g = D == null ? void 0 : D.data.current, w = y.data.current,
|
|
1138
|
-
if ((w == null ? void 0 : w.id) == (g == null ? void 0 : g.id) ||
|
|
1139
|
-
|
|
1137
|
+
} = S, g = D == null ? void 0 : D.data.current, w = y.data.current, v = ae(h, g == null ? void 0 : g.id), _ = ie(h, g == null ? void 0 : g.id);
|
|
1138
|
+
if ((w == null ? void 0 : w.id) == (g == null ? void 0 : g.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id))
|
|
1139
|
+
p([]), i([]);
|
|
1140
1140
|
else {
|
|
1141
1141
|
const j = (g == null ? void 0 : g.name) ?? c;
|
|
1142
1142
|
if (D)
|
|
@@ -1153,7 +1153,7 @@ function Ft() {
|
|
|
1153
1153
|
});
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
|
|
1156
|
+
n({
|
|
1157
1157
|
isDrag: !1,
|
|
1158
1158
|
elementDrag: void 0
|
|
1159
1159
|
});
|
|
@@ -1162,7 +1162,7 @@ function Ft() {
|
|
|
1162
1162
|
const {
|
|
1163
1163
|
active: D
|
|
1164
1164
|
} = S, y = D.data.current;
|
|
1165
|
-
(y == null ? void 0 : y.type) === "resource" ?
|
|
1165
|
+
(y == null ? void 0 : y.type) === "resource" ? p([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && i([y == null ? void 0 : y.id]), n({
|
|
1166
1166
|
isDrag: !0,
|
|
1167
1167
|
elementDrag: y == null ? void 0 : y.id
|
|
1168
1168
|
});
|
|
@@ -1171,7 +1171,7 @@ function Ft() {
|
|
|
1171
1171
|
const {
|
|
1172
1172
|
over: D,
|
|
1173
1173
|
active: y
|
|
1174
|
-
} = S, g = D == null ? void 0 : D.data.current, w = y == null ? void 0 : y.data.current,
|
|
1174
|
+
} = S, g = D == null ? void 0 : D.data.current, w = y == null ? void 0 : y.data.current, v = ae(h, g == null ? void 0 : g.id), _ = ie(h, g == null ? void 0 : g.id);
|
|
1175
1175
|
if (D) {
|
|
1176
1176
|
const j = {
|
|
1177
1177
|
isOver: !0,
|
|
@@ -1179,7 +1179,7 @@ function Ft() {
|
|
|
1179
1179
|
overId: g == null ? void 0 : g.id,
|
|
1180
1180
|
isTreeview: g == null ? void 0 : g.isTreeview
|
|
1181
1181
|
};
|
|
1182
|
-
(w == null ? void 0 : w.id) === (g == null ? void 0 : g.id) ||
|
|
1182
|
+
(w == null ? void 0 : w.id) === (g == null ? void 0 : g.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id) ? u({
|
|
1183
1183
|
...j,
|
|
1184
1184
|
canMove: !1
|
|
1185
1185
|
}) : (l(g == null ? void 0 : g.id, e), u({
|
|
@@ -1197,36 +1197,36 @@ function Ft() {
|
|
|
1197
1197
|
sensors: I
|
|
1198
1198
|
};
|
|
1199
1199
|
}
|
|
1200
|
-
const Rt = /* @__PURE__ */
|
|
1201
|
-
const e = mt(), t = re(), s = se(), r =
|
|
1200
|
+
const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), vt = /* @__PURE__ */ M(async () => await import("./EmptyScreenSearch.js")), Et = /* @__PURE__ */ M(async () => await import("./EmptyScreenError.js")), Lt = /* @__PURE__ */ M(async () => await import("./EmptyScreenNoContentInFolder.js")), Nt = /* @__PURE__ */ M(async () => await import("./EmptyScreenTrash.js")), At = /* @__PURE__ */ M(async () => await import("./FoldersList.js")), Mt = /* @__PURE__ */ M(async () => await import("./ResourcesList.js")), kt = () => {
|
|
1201
|
+
const e = mt(), t = re(), s = se(), r = A(), o = z(), c = U(), n = P(), {
|
|
1202
1202
|
appCode: u
|
|
1203
1203
|
} = Z(), {
|
|
1204
|
-
t:
|
|
1204
|
+
t: p
|
|
1205
1205
|
} = V([u]), {
|
|
1206
1206
|
setSearchParams: i,
|
|
1207
1207
|
setSearchConfig: l,
|
|
1208
1208
|
fetchTreeData: h
|
|
1209
1209
|
} = R(), {
|
|
1210
1210
|
data: d,
|
|
1211
|
-
isError:
|
|
1211
|
+
isError: f,
|
|
1212
1212
|
error: m,
|
|
1213
1213
|
isLoading: I,
|
|
1214
1214
|
isFetching: C,
|
|
1215
1215
|
fetchNextPage: x
|
|
1216
|
-
} = bt(), F = (d == null ? void 0 : d.pages[0].folders.length) === 0,
|
|
1216
|
+
} = bt(), F = (d == null ? void 0 : d.pages[0].folders.length) === 0, k = (d == null ? void 0 : d.pages[0].resources.length) === 0, S = F && k;
|
|
1217
1217
|
return B(() => {
|
|
1218
1218
|
var D, y;
|
|
1219
|
-
d && ((D = d == null ? void 0 : d.pages[0]) != null && D.searchConfig && l(d.pages[0].searchConfig), !r.search &&
|
|
1219
|
+
d && ((D = d == null ? void 0 : d.pages[0]) != null && D.searchConfig && l(d.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, n), i({
|
|
1220
1220
|
...r,
|
|
1221
1221
|
pagination: (y = d == null ? void 0 : d.pages[(d == null ? void 0 : d.pages.length) - 1]) == null ? void 0 : y.pagination
|
|
1222
1222
|
}));
|
|
1223
1223
|
}, [d]), B(() => {
|
|
1224
|
-
m && typeof m == "string" && c.error(
|
|
1225
|
-
}, [m]), I ? /* @__PURE__ */ a(H, {}) :
|
|
1226
|
-
/* @__PURE__ */ a(
|
|
1227
|
-
/* @__PURE__ */ a(
|
|
1224
|
+
m && typeof m == "string" && c.error(p(m));
|
|
1225
|
+
}, [m]), I ? /* @__PURE__ */ a(H, {}) : f ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Et, {}) }) : r.search && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(vt, {}) }) : e && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Rt, {}) }) : s && S && !t ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Lt, {}) }) : t && (d == null ? void 0 : d.pages[0].resources.length) === 0 ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Nt, {}) }) : /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
|
|
1226
|
+
/* @__PURE__ */ a(At, { data: d, isFetching: C }),
|
|
1227
|
+
/* @__PURE__ */ a(Mt, { data: d, isFetching: C, fetchNextPage: x })
|
|
1228
1228
|
] });
|
|
1229
|
-
},
|
|
1229
|
+
}, Pt = ({
|
|
1230
1230
|
title: e,
|
|
1231
1231
|
titleId: t,
|
|
1232
1232
|
...s
|
|
@@ -1256,17 +1256,17 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1256
1256
|
e ? /* @__PURE__ */ a("title", { id: t, children: e }) : null,
|
|
1257
1257
|
/* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z", clipRule: "evenodd" })
|
|
1258
1258
|
] }), Ce = () => {
|
|
1259
|
-
const e =
|
|
1260
|
-
setSearchParams:
|
|
1259
|
+
const e = A(), [t, s] = le(""), r = ht(), o = yt(), c = we(null), {
|
|
1260
|
+
setSearchParams: n
|
|
1261
1261
|
} = R(), u = (l) => {
|
|
1262
1262
|
const h = l.target.value;
|
|
1263
1263
|
s(h.toString());
|
|
1264
|
-
},
|
|
1265
|
-
(l.key === "Enter" || l.key === "Return") && (l.preventDefault(),
|
|
1264
|
+
}, p = (l) => {
|
|
1265
|
+
(l.key === "Enter" || l.key === "Return") && (l.preventDefault(), n({
|
|
1266
1266
|
search: t || void 0
|
|
1267
1267
|
}));
|
|
1268
1268
|
}, i = (l) => {
|
|
1269
|
-
l.preventDefault(),
|
|
1269
|
+
l.preventDefault(), n({
|
|
1270
1270
|
search: t || void 0
|
|
1271
1271
|
});
|
|
1272
1272
|
};
|
|
@@ -1274,13 +1274,13 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1274
1274
|
const h = t.length == 0 || t.length >= r.minLength ? {
|
|
1275
1275
|
search: t || void 0
|
|
1276
1276
|
} : {};
|
|
1277
|
-
|
|
1277
|
+
n({
|
|
1278
1278
|
...e,
|
|
1279
1279
|
...h
|
|
1280
1280
|
});
|
|
1281
1281
|
}, [t, r.minLength]), B(() => {
|
|
1282
|
-
|
|
1283
|
-
}, [
|
|
1282
|
+
o === "select" && s("");
|
|
1283
|
+
}, [o]), B(() => {
|
|
1284
1284
|
s(() => {
|
|
1285
1285
|
var l;
|
|
1286
1286
|
return ((l = e.search) == null ? void 0 : l.toString()) ?? "";
|
|
@@ -1289,7 +1289,7 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1289
1289
|
formRef: c,
|
|
1290
1290
|
inputSearch: t,
|
|
1291
1291
|
handleInputSearchChange: u,
|
|
1292
|
-
handleKeyPress:
|
|
1292
|
+
handleKeyPress: p,
|
|
1293
1293
|
handleSearchSubmit: i
|
|
1294
1294
|
};
|
|
1295
1295
|
}, Zt = () => {
|
|
@@ -1298,27 +1298,27 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1298
1298
|
currentApp: t
|
|
1299
1299
|
} = Z(), {
|
|
1300
1300
|
t: s
|
|
1301
|
-
} = V(), [r,
|
|
1301
|
+
} = V(), [r, o] = le(""), c = (l) => {
|
|
1302
1302
|
if (l === "0") {
|
|
1303
|
-
|
|
1303
|
+
o("");
|
|
1304
1304
|
return;
|
|
1305
1305
|
}
|
|
1306
|
-
|
|
1307
|
-
},
|
|
1308
|
-
setSearchParams:
|
|
1306
|
+
o(l);
|
|
1307
|
+
}, n = z(), u = A(), {
|
|
1308
|
+
setSearchParams: p
|
|
1309
1309
|
} = R();
|
|
1310
1310
|
B(() => {
|
|
1311
1311
|
const l = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, d = () => r.includes("7") ? !0 : void 0;
|
|
1312
|
-
|
|
1312
|
+
p({
|
|
1313
1313
|
...u,
|
|
1314
1314
|
filters: {
|
|
1315
1315
|
owner: l(),
|
|
1316
1316
|
public: d(),
|
|
1317
1317
|
shared: h(),
|
|
1318
|
-
folder:
|
|
1318
|
+
folder: n ? n.id : "default"
|
|
1319
1319
|
}
|
|
1320
1320
|
});
|
|
1321
|
-
}, [
|
|
1321
|
+
}, [n, p, r]);
|
|
1322
1322
|
const i = [{
|
|
1323
1323
|
label: s("explorer.filter.all", {
|
|
1324
1324
|
ns: e
|
|
@@ -1365,19 +1365,19 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1365
1365
|
} = V(), {
|
|
1366
1366
|
selectedFilters: s,
|
|
1367
1367
|
options: r,
|
|
1368
|
-
handleOnSelectFilter:
|
|
1368
|
+
handleOnSelectFilter: o
|
|
1369
1369
|
} = Zt(), {
|
|
1370
1370
|
formRef: c,
|
|
1371
|
-
inputSearch:
|
|
1371
|
+
inputSearch: n,
|
|
1372
1372
|
handleInputSearchChange: u,
|
|
1373
|
-
handleKeyPress:
|
|
1373
|
+
handleKeyPress: p,
|
|
1374
1374
|
handleSearchSubmit: i
|
|
1375
1375
|
} = Ce(), l = s.length > 0 ? s.length : void 0;
|
|
1376
1376
|
return /* @__PURE__ */ b("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: c, children: [
|
|
1377
1377
|
/* @__PURE__ */ b(He, { id: "search", className: "input-group", children: [
|
|
1378
1378
|
/* @__PURE__ */ a(Qe, { type: "search", placeholder: t("explorer.label.search", {
|
|
1379
1379
|
ns: e
|
|
1380
|
-
}), size: "lg", noValidationIcon: !0, value:
|
|
1380
|
+
}), size: "lg", noValidationIcon: !0, value: n, onChange: u, onKeyDown: p }),
|
|
1381
1381
|
/* @__PURE__ */ a(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
|
|
1382
1382
|
ns: e
|
|
1383
1383
|
}), onClick: i })
|
|
@@ -1385,9 +1385,9 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1385
1385
|
/* @__PURE__ */ b(K, { placement: "bottom-end", children: [
|
|
1386
1386
|
/* @__PURE__ */ a(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ a(Qt, { width: 20 }), variant: "ghost", badgeContent: l }),
|
|
1387
1387
|
/* @__PURE__ */ a(K.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ b(De, { children: [
|
|
1388
|
-
/* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () =>
|
|
1388
|
+
/* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
|
|
1389
1389
|
/* @__PURE__ */ a(K.Separator, {})
|
|
1390
|
-
] }, "0") : /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () =>
|
|
1390
|
+
] }, "0") : /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
|
|
1391
1391
|
] })
|
|
1392
1392
|
] });
|
|
1393
1393
|
}, qt = ({
|
|
@@ -1402,8 +1402,8 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1402
1402
|
/* @__PURE__ */ a(Ht, { width: "20", height: "20" }),
|
|
1403
1403
|
/* @__PURE__ */ a("span", { children: r("explorer.tree.trash") })
|
|
1404
1404
|
] }) }) }) }) }) }) });
|
|
1405
|
-
}, Bt = /* @__PURE__ */
|
|
1406
|
-
const [e, t] = Ze(), s =
|
|
1405
|
+
}, Bt = /* @__PURE__ */ M(async () => await import("./FolderModal.js")), Vt = () => {
|
|
1406
|
+
const [e, t] = Ze(), s = P(), r = $(), o = re(), c = se(), n = ft(), u = Oe(), p = o ? E.BIN : c, {
|
|
1407
1407
|
appCode: i
|
|
1408
1408
|
} = Z(), {
|
|
1409
1409
|
t: l
|
|
@@ -1414,28 +1414,28 @@ const Rt = /* @__PURE__ */ k(async () => await import("./EmptyScreenApp.js")), E
|
|
|
1414
1414
|
})
|
|
1415
1415
|
}, {
|
|
1416
1416
|
goToTrash: d,
|
|
1417
|
-
selectTreeItem:
|
|
1417
|
+
selectTreeItem: f,
|
|
1418
1418
|
clearSelectedItems: m,
|
|
1419
1419
|
clearSelectedIds: I,
|
|
1420
1420
|
fetchTreeData: C
|
|
1421
1421
|
} = R(), x = (S) => {
|
|
1422
|
-
|
|
1422
|
+
f(S, s), u();
|
|
1423
1423
|
}, F = (S) => {
|
|
1424
1424
|
var g, w;
|
|
1425
|
-
const D = G(r, S), y = (g = D == null ? void 0 : D.children) == null ? void 0 : g.some((
|
|
1425
|
+
const D = G(r, S), y = (g = D == null ? void 0 : D.children) == null ? void 0 : g.some((v) => {
|
|
1426
1426
|
var _;
|
|
1427
|
-
return Array.isArray(
|
|
1427
|
+
return Array.isArray(v == null ? void 0 : v.children) && ((_ = v.children) == null ? void 0 : _.length) > 0;
|
|
1428
1428
|
});
|
|
1429
|
-
(w = D == null ? void 0 : D.children) == null || w.forEach((
|
|
1430
|
-
y || C(
|
|
1429
|
+
(w = D == null ? void 0 : D.children) == null || w.forEach((v) => {
|
|
1430
|
+
y || C(v.id, s);
|
|
1431
1431
|
});
|
|
1432
|
-
},
|
|
1432
|
+
}, k = () => {
|
|
1433
1433
|
m(), I(), t();
|
|
1434
1434
|
};
|
|
1435
1435
|
return /* @__PURE__ */ b(W, { children: [
|
|
1436
|
-
/* @__PURE__ */ a(qe, { data: h, selectedNodeId:
|
|
1437
|
-
/* @__PURE__ */ a(qt, { id:
|
|
1438
|
-
/* @__PURE__ */ a("div", { className: "d-grid my-16", children: /* @__PURE__ */ a(Be, { disabled:
|
|
1436
|
+
/* @__PURE__ */ a(qe, { data: h, selectedNodeId: p, draggedNode: n != null && n.isTreeview ? n : void 0, onTreeItemClick: x, onTreeItemUnfold: F }),
|
|
1437
|
+
/* @__PURE__ */ a(qt, { id: E.BIN, selected: o, onSelect: d }),
|
|
1438
|
+
/* @__PURE__ */ a("div", { className: "d-grid my-16", children: /* @__PURE__ */ a(Be, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ a(Ut, {}), onClick: k, children: l("explorer.folder.new") }) }),
|
|
1439
1439
|
/* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: e && /* @__PURE__ */ a(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
|
|
1440
1440
|
] });
|
|
1441
1441
|
};
|
|
@@ -1448,18 +1448,18 @@ function _t() {
|
|
|
1448
1448
|
t: s
|
|
1449
1449
|
} = V(["common", e]), {
|
|
1450
1450
|
inputSearch: r
|
|
1451
|
-
} = Ce(),
|
|
1451
|
+
} = Ce(), o = se(), c = re(), n = z(), u = s("explorer.tree.trash"), p = s("explorer.tree.search"), i = s("explorer.filters.mine", {
|
|
1452
1452
|
ns: e
|
|
1453
|
-
}), l = (
|
|
1454
|
-
return /* @__PURE__ */ a("div", { className: "py-16", children:
|
|
1455
|
-
/* @__PURE__ */ a(Ve, { icon: /* @__PURE__ */ a(
|
|
1453
|
+
}), l = (n == null ? void 0 : n.name) || i;
|
|
1454
|
+
return /* @__PURE__ */ a("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !c ? /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8", children: [
|
|
1455
|
+
/* @__PURE__ */ a(Ve, { icon: /* @__PURE__ */ a(Pt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
|
|
1456
1456
|
/* @__PURE__ */ a("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ a("strong", { children: l }) })
|
|
1457
|
-
] }) : /* @__PURE__ */ a("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ?
|
|
1457
|
+
] }) : /* @__PURE__ */ a("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : c ? u : i }) });
|
|
1458
1458
|
}
|
|
1459
|
-
const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M240.604%2031H54.6988C49.9309%2031%2046.0662%2034.8647%2046.0662%2039.6327V135.326C46.0662%20140.094%2049.9309%20143.959%2054.6988%20143.959H240.6C245.368%20143.959%20249.233%20140.094%20249.233%20135.326V39.6327C249.233%2034.8647%20245.368%2031%20240.6%2031H240.604ZM133.102%20115.945C133.102%20119.76%20130.009%20122.853%20126.194%20122.853H71.4939C67.6787%20122.853%2064.5853%20119.76%2064.5853%20115.945V59.0139C64.5853%2055.1987%2067.6787%2052.1053%2071.4939%2052.1053H126.198C130.013%2052.1053%20133.106%2055.1987%20133.106%2059.0139V115.945H133.102ZM235.745%20121.212H196.768C194.945%20121.212%20193.469%20119.735%20193.469%20117.912C193.469%20116.089%20194.945%20114.613%20196.768%20114.613H235.745C237.568%20114.613%20239.045%20116.089%20239.045%20117.912C239.045%20119.735%20237.568%20121.212%20235.745%20121.212ZM234.335%2061.9464H153.205C150.574%2061.9464%20148.441%2059.814%20148.441%2057.1826C148.441%2054.5511%20150.574%2052.4187%20153.205%2052.4187H234.335C236.966%2052.4187%20239.099%2054.5511%20239.099%2057.1826C239.099%2059.814%20236.966%2061.9464%20234.335%2061.9464Z'%20fill='%23FFEFE3'/%3e%3cmask%20id='mask0_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='154'%20y='81'%20width='24'%20height='8'%3e%3cpath%20d='M171.836%2088.8962L177.833%2081.7153H160.732L155.672%2087.7702L155.556%2087.7372L154.595%2088.8962H171.832H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3c/g%3e%3cpath%20d='M262.147%2088.8962H38.5883C36.6044%2088.8962%2035%2087.2876%2035%2085.3037C35%2083.3198%2036.6086%2081.7112%2038.5883%2081.7112H262.147C264.13%2081.7112%20265.735%2083.3198%20265.735%2085.3037C265.735%2087.2876%20264.126%2088.8962%20262.147%2088.8962Z'%20fill='%232A9CC8'/%3e%3cmask%20id='mask1_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='79'%20y='38'%20width='113'%20height='160'%3e%3cpath%20d='M79.5574%2038.317V197.586H191.959V38.317H79.5574ZM171.836%2088.8962H154.599L155.56%2087.7372L155.676%2087.7702L160.737%2081.7153H177.837L171.84%2088.8962H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3cpath%20d='M154.092%2039.1419C147.291%2039.1419%20141.78%2044.6564%20141.78%2051.4536L141.603%20132.113H153.915L154.092%2039.1377V39.1419Z'%20fill='%23AADAED'/%3e%3cpath%20d='M106.26%20128.43C112.071%20127.84%20117.61%20125.687%20122.395%20122.338C124.3%20121.006%20126.202%20119.669%20128.107%20118.337C129.122%20117.624%20130.52%20117.822%20131.296%20118.791C133.713%20121.798%20136.15%20124.656%20138.567%20127.667C138.815%20127.976%20139.021%20129.387%20138.464%20130.748C137.965%20131.973%20137.128%20132.237%20135.461%20134.023C134.954%20134.567%20134.517%20135.132%20133.642%20136.271C130.92%20139.801%20127.34%20146.174%20124.968%20149.927C122.42%20153.957%20120.114%20156.786%20118.889%20158.275C114.389%20163.752%20111.597%20167.155%20107.732%20169.308C101.257%20172.913%2090.2894%20173.841%2084.4325%20168.124C76.5134%20160.395%2081.3432%20143.88%2089.2335%20136.06C94.6119%20130.731%20101.236%20128.941%20106.264%20128.43H106.26ZM91.0937%20159.698C94.3892%20163.596%20103.595%20161.764%20108.804%20157.104C113.486%20152.913%20116.728%20144.837%20113.502%20140.944C110.281%20137.054%20101.743%20138.7%2096.7566%20142.556C91.1473%20146.895%2087.7775%20155.78%2091.0937%20159.702V159.698Z'%20fill='%23AADAED'/%3e%3cpath%20d='M165.558%20152.909C161.739%20148.492%20159.186%20143.121%20158.006%20137.401C157.536%20135.124%20157.07%20132.847%20156.6%20130.57C156.348%20129.354%20155.197%20128.541%20153.968%20128.71C150.145%20129.238%20146.412%20129.642%20142.589%20130.17C142.197%20130.224%20141.079%20131.107%20140.547%20132.48C140.068%20133.713%20140.497%20134.481%20140.481%20136.926C140.477%20137.669%20140.407%20138.382%20140.262%20139.809C139.821%20144.247%20138.047%20151.338%20137.194%20155.693C136.278%20160.374%20136.014%20164.016%20135.882%20165.938C135.391%20173.008%20135.086%20177.4%20136.422%20181.62C138.658%20188.689%20145.995%20196.889%20154.178%20196.753C165.245%20196.567%20173.069%20181.245%20172.702%20170.141C172.45%20162.573%20168.862%20156.724%20165.558%20152.905V152.909ZM155.123%20186.058C150.05%20186.631%20144.614%20178.976%20144.028%20172.01C143.5%20165.749%20146.688%20157.652%20151.704%20157.034C156.715%20156.415%20161.796%20163.476%20162.774%20169.7C163.875%20176.703%20160.225%20185.48%20155.123%20186.054V186.058Z'%20fill='%23AADAED'/%3e%3c/g%3e%3c/svg%3e", $t = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='version_orange'%20data-name='version%20orange'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20353.36'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20.cls-2%20{%20fill:%20%23aadaed;%20}%20.cls-3%20{%20fill:%20%23ffefe3;%20}%20.cls-4%20{%20fill:%20none;%20stroke:%20%23aadaed;%20stroke-miterlimit:%2010;%20stroke-width:%204px;%20}%20.cls-5%20{%20fill:%20%232a9cc8;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='ciseaux'%3e%3cpath%20class='cls-3'%20d='m512.64,45.09H61.92c-11.56,0-20.93,9.37-20.93,20.93v232.01c0,11.56,9.37,20.93,20.93,20.93h450.72c11.56,0,20.93-9.37,20.93-20.93V66.02c0-11.56-9.37-20.93-20.93-20.93ZM211.25,212.37c0,7.55-6.12,13.66-13.66,13.66h-108.21c-7.55,0-13.66-6.12-13.66-13.66v-112.62c0-7.55,6.12-13.66,13.66-13.66h108.21c7.55,0,13.66,6.12,13.66,13.66v112.62Zm150.21-41.03h-94.5c-4.42,0-8-3.58-8-8s3.58-8,8-8h94.5c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm105.82,118.05H164.74c-4.42,0-8-3.58-8-8s3.58-8,8-8h302.55c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm-3.54-169.27h-196.7c-6.38,0-11.55-5.17-11.55-11.55s5.17-11.55,11.55-11.55h196.7c6.38,0,11.55,5.17,11.55,11.55s-5.17,11.55-11.55,11.55Zm-332.66,158.93c0,13.56-10.99,24.55-24.55,24.55s-24.55-10.99-24.55-24.55,10.99-24.55,24.55-24.55,24.55,10.99,24.55,24.55Z'/%3e%3c/g%3e%3crect%20class='cls-5'%20x='420.8'%20y='58.38'%20width='100.39'%20height='100.39'%20rx='20'%20ry='20'/%3e%3cg%20id='ciseaux-2'%20data-name='ciseaux'%3e%3cpath%20class='cls-4'%20d='m513.58,45.09H60.99c-11.05,0-20,8.95-20,20v233.88c0,11.05,8.95,20,20,20h452.59c11.05,0,20-8.95,20-20V65.09c0-11.05-8.95-20-20-20Z'/%3e%3c/g%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='84.02'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='109.3'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='133.13'%20r='7.02'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='m449.99,215.32c-.39,0-.76-.08-1.12-.24l-9.44-4.22c-.69-.31-1.23-.9-1.48-1.62-.25-.72-.18-1.52.17-2.19l3.92-7.33-13.25-5.79c-.83-.36-1.43-1.11-1.6-2.01s.11-1.81.76-2.45l40.08-40.08c.52-.52,1.21-.81,1.94-.81,1.52,0,2.75,1.23,2.75,2.75v57.58c0,.75-.3,1.45-.83,1.97-.52.5-1.2.78-1.91.78h0c-.38,0-.75-.08-1.1-.23l-12.85-5.61-3.53,7.87c-.44.99-1.43,1.62-2.51,1.62Z'/%3e%3cpath%20class='cls-1'%20d='m469.97,150.6c.38,0,.75.3.75.75v57.58c0,.43-.35.75-.75.75-.1,0-.2-.02-.3-.06l-13.99-6.11c-.1-.04-.2-.06-.3-.06-.29,0-.56.16-.68.44l-4.03,9c-.12.28-.4.44-.68.44-.1,0-.21-.02-.3-.07l-9.44-4.22c-.4-.18-.56-.65-.35-1.04l4.56-8.53c.21-.38.04-.86-.36-1.04l-14.5-6.33c-.48-.21-.6-.84-.23-1.21l40.08-40.08c.15-.15.34-.22.52-.22m0-4c-1.26,0-2.45.49-3.35,1.39l-40.08,40.08c-1.11,1.11-1.6,2.7-1.31,4.24.29,1.54,1.33,2.84,2.77,3.47l11.27,4.92-2.9,5.42c-.62,1.16-.73,2.53-.31,3.78.42,1.24,1.36,2.26,2.55,2.8l9.44,4.22c.61.27,1.27.41,1.94.41,1.87,0,3.57-1.1,4.33-2.81l2.72-6.06,11.04,4.82c.6.26,1.24.4,1.9.4,2.62,0,4.75-2.13,4.75-4.75v-57.58c0-2.62-2.13-4.75-4.75-4.75h0Z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M187.994%20193.875H108.563C103.268%20193.875%2098.878%20189.768%2098.5214%20184.484L90.1194%2059.0277H209.67L198.01%20184.741C197.529%20189.915%20193.19%20193.875%20187.99%20193.875H187.994Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M150.47%20150.31L164.483%20157.961C166.929%20159.296%20169.995%20158.395%20171.33%20155.95C171.999%20154.726%20172.106%20153.35%20171.742%20152.111C171.378%20150.872%20170.539%20149.773%20169.319%20149.103C167.223%20147.96%20166.638%20146.217%20166.954%20144.029C168.388%20134.186%20188.167%20115.393%20171.091%20102.13L162.134%2097.2392C141.741%2090.047%20136.626%20116.845%20129.121%20123.372C127.456%20124.824%20125.672%20125.273%20123.577%20124.126C121.131%20122.791%20118.065%20123.692%20116.73%20126.137C116.061%20127.358%20115.954%20128.736%20116.318%20129.976C116.682%20131.215%20117.521%20132.314%20118.741%20132.983L131.537%20139.97L132.751%20140.632L150.467%20150.306L150.47%20150.31Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.2'%20d='M171.095%20102.13L171.117%20102.144L171.095%20102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M171.095%20102.13L171.117%20102.141C171.187%20102.034%20171.253%20101.924%20171.315%20101.81C172.676%2099.3167%20171.76%2096.1913%20169.267%2094.8308C166.774%2093.4703%20163.649%2094.3895%20162.288%2096.8789C162.226%2096.9929%20162.167%2097.1068%20162.115%2097.2245L162.137%2097.2355L171.095%20102.126V102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M133.67%20142.455C138.56%20145.228%20143.451%20148%20148.341%20150.773C146.422%20154.365%20142.929%20156.483%20139.421%20156.23C138.921%20156.193%20136.292%20155.954%20134.328%20153.884C131.769%20151.188%20131.438%20146.563%20133.674%20142.459L133.67%20142.455Z'%20fill='%23AADAED'/%3e%3cpath%20d='M145.56%2088.6624C145.125%2086.8475%20143.302%2085.7288%20141.488%2086.1636C139.674%2086.5984%20138.556%2088.4221%20138.991%2090.2369L156.729%20164.233C157.164%20166.048%20158.987%20167.166%20160.801%20166.732C162.615%20166.297%20163.732%20164.473%20163.297%20162.658L145.56%2088.6624Z'%20fill='%232A9CC8'/%3e%3cpath%20d='M214.66%2037.9143H195.186L189.833%2028.707C187.068%2023.9526%20181.938%2021%20176.441%2021H125.492C120.44%2021%20115.693%2023.471%20112.796%2027.6149L105.592%2037.9143H85.1334C81.1916%2037.9143%2078%2041.1096%2078%2045.0477V46.592C78%2050.5338%2081.1953%2053.7254%2085.1334%2053.7254H214.66C218.602%2053.7254%20221.793%2050.5301%20221.793%2046.592V45.0477C221.793%2041.1059%20218.598%2037.9143%20214.66%2037.9143ZM122.437%2034.3586C123.132%2033.3621%20124.275%2032.7664%20125.489%2032.7664H176.437C177.761%2032.7664%20178.993%2033.4761%20179.658%2034.6196L181.574%2037.9143H119.947L122.433%2034.3586H122.437Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M187.064%2093.9335C187.56%2093.9777%20188.046%2093.7864%20188.542%2093.7313C189.038%2093.6761%20189.63%2093.8232%20189.822%2094.2828C190.108%2094.9778%20189.274%2095.6911%20189.369%2096.4376C189.424%2096.8604%20189.763%2097.1803%20190.079%2097.4635C190.719%2098.0334%20191.362%2098.607%20192.002%2099.177C192.164%2099.3204%20192.329%2099.4748%20192.384%2099.6807C192.454%2099.9307%20192.34%20100.192%20192.245%20100.434C191.829%20101.49%20191.789%20102.894%20192.723%20103.542C192.98%20103.722%20193.304%20103.828%20193.488%20104.086C193.693%20104.376%20193.66%20104.766%20193.605%20105.119C193.473%20105.994%20193.278%20106.858%20193.021%20107.708'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.681%20138.694C105.611%20140.003%20105.658%20141.562%20106.751%20142.29C106.993%20142.452%20107.276%20142.558%20107.493%20142.757C108.122%20143.331%20107.931%20144.353%20107.633%20145.151C107.335%20145.949%20106.982%20146.868%20107.409%20147.6C107.817%20148.298%20108.762%20148.493%20109.284%20149.111C109.813%20149.732%20109.828%20150.685%20110.387%20151.28C110.626%20151.534%20110.964%20151.721%20111.089%20152.049C111.189%20152.31%20111.126%20152.597%20111.126%20152.876C111.126%20153.63%20111.597%20154.321%20112.196%20154.781C112.796%20155.24%20113.516%20155.501%20114.226%20155.755'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", jt = /* @__PURE__ */ k(async () => await import("./AppAction.js")), Wt = /* @__PURE__ */ k(async () => await import("./Library.js")), Gt = /* @__PURE__ */ k(async () => await import("./ActionBarContainer.js")), Jt = /* @__PURE__ */ k(async () => await import("./DisableModal.js")), Xt = /* @__PURE__ */ k(async () => await import("./TrashModal.js")), Yt = /* @__PURE__ */ k(async () => await import("./OnboardingModal.js")), Fs = ({
|
|
1459
|
+
const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M240.604%2031H54.6988C49.9309%2031%2046.0662%2034.8647%2046.0662%2039.6327V135.326C46.0662%20140.094%2049.9309%20143.959%2054.6988%20143.959H240.6C245.368%20143.959%20249.233%20140.094%20249.233%20135.326V39.6327C249.233%2034.8647%20245.368%2031%20240.6%2031H240.604ZM133.102%20115.945C133.102%20119.76%20130.009%20122.853%20126.194%20122.853H71.4939C67.6787%20122.853%2064.5853%20119.76%2064.5853%20115.945V59.0139C64.5853%2055.1987%2067.6787%2052.1053%2071.4939%2052.1053H126.198C130.013%2052.1053%20133.106%2055.1987%20133.106%2059.0139V115.945H133.102ZM235.745%20121.212H196.768C194.945%20121.212%20193.469%20119.735%20193.469%20117.912C193.469%20116.089%20194.945%20114.613%20196.768%20114.613H235.745C237.568%20114.613%20239.045%20116.089%20239.045%20117.912C239.045%20119.735%20237.568%20121.212%20235.745%20121.212ZM234.335%2061.9464H153.205C150.574%2061.9464%20148.441%2059.814%20148.441%2057.1826C148.441%2054.5511%20150.574%2052.4187%20153.205%2052.4187H234.335C236.966%2052.4187%20239.099%2054.5511%20239.099%2057.1826C239.099%2059.814%20236.966%2061.9464%20234.335%2061.9464Z'%20fill='%23FFEFE3'/%3e%3cmask%20id='mask0_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='154'%20y='81'%20width='24'%20height='8'%3e%3cpath%20d='M171.836%2088.8962L177.833%2081.7153H160.732L155.672%2087.7702L155.556%2087.7372L154.595%2088.8962H171.832H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3c/g%3e%3cpath%20d='M262.147%2088.8962H38.5883C36.6044%2088.8962%2035%2087.2876%2035%2085.3037C35%2083.3198%2036.6086%2081.7112%2038.5883%2081.7112H262.147C264.13%2081.7112%20265.735%2083.3198%20265.735%2085.3037C265.735%2087.2876%20264.126%2088.8962%20262.147%2088.8962Z'%20fill='%232A9CC8'/%3e%3cmask%20id='mask1_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='79'%20y='38'%20width='113'%20height='160'%3e%3cpath%20d='M79.5574%2038.317V197.586H191.959V38.317H79.5574ZM171.836%2088.8962H154.599L155.56%2087.7372L155.676%2087.7702L160.737%2081.7153H177.837L171.84%2088.8962H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3cpath%20d='M154.092%2039.1419C147.291%2039.1419%20141.78%2044.6564%20141.78%2051.4536L141.603%20132.113H153.915L154.092%2039.1377V39.1419Z'%20fill='%23AADAED'/%3e%3cpath%20d='M106.26%20128.43C112.071%20127.84%20117.61%20125.687%20122.395%20122.338C124.3%20121.006%20126.202%20119.669%20128.107%20118.337C129.122%20117.624%20130.52%20117.822%20131.296%20118.791C133.713%20121.798%20136.15%20124.656%20138.567%20127.667C138.815%20127.976%20139.021%20129.387%20138.464%20130.748C137.965%20131.973%20137.128%20132.237%20135.461%20134.023C134.954%20134.567%20134.517%20135.132%20133.642%20136.271C130.92%20139.801%20127.34%20146.174%20124.968%20149.927C122.42%20153.957%20120.114%20156.786%20118.889%20158.275C114.389%20163.752%20111.597%20167.155%20107.732%20169.308C101.257%20172.913%2090.2894%20173.841%2084.4325%20168.124C76.5134%20160.395%2081.3432%20143.88%2089.2335%20136.06C94.6119%20130.731%20101.236%20128.941%20106.264%20128.43H106.26ZM91.0937%20159.698C94.3892%20163.596%20103.595%20161.764%20108.804%20157.104C113.486%20152.913%20116.728%20144.837%20113.502%20140.944C110.281%20137.054%20101.743%20138.7%2096.7566%20142.556C91.1473%20146.895%2087.7775%20155.78%2091.0937%20159.702V159.698Z'%20fill='%23AADAED'/%3e%3cpath%20d='M165.558%20152.909C161.739%20148.492%20159.186%20143.121%20158.006%20137.401C157.536%20135.124%20157.07%20132.847%20156.6%20130.57C156.348%20129.354%20155.197%20128.541%20153.968%20128.71C150.145%20129.238%20146.412%20129.642%20142.589%20130.17C142.197%20130.224%20141.079%20131.107%20140.547%20132.48C140.068%20133.713%20140.497%20134.481%20140.481%20136.926C140.477%20137.669%20140.407%20138.382%20140.262%20139.809C139.821%20144.247%20138.047%20151.338%20137.194%20155.693C136.278%20160.374%20136.014%20164.016%20135.882%20165.938C135.391%20173.008%20135.086%20177.4%20136.422%20181.62C138.658%20188.689%20145.995%20196.889%20154.178%20196.753C165.245%20196.567%20173.069%20181.245%20172.702%20170.141C172.45%20162.573%20168.862%20156.724%20165.558%20152.905V152.909ZM155.123%20186.058C150.05%20186.631%20144.614%20178.976%20144.028%20172.01C143.5%20165.749%20146.688%20157.652%20151.704%20157.034C156.715%20156.415%20161.796%20163.476%20162.774%20169.7C163.875%20176.703%20160.225%20185.48%20155.123%20186.054V186.058Z'%20fill='%23AADAED'/%3e%3c/g%3e%3c/svg%3e", $t = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='version_orange'%20data-name='version%20orange'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20353.36'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20.cls-2%20{%20fill:%20%23aadaed;%20}%20.cls-3%20{%20fill:%20%23ffefe3;%20}%20.cls-4%20{%20fill:%20none;%20stroke:%20%23aadaed;%20stroke-miterlimit:%2010;%20stroke-width:%204px;%20}%20.cls-5%20{%20fill:%20%232a9cc8;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='ciseaux'%3e%3cpath%20class='cls-3'%20d='m512.64,45.09H61.92c-11.56,0-20.93,9.37-20.93,20.93v232.01c0,11.56,9.37,20.93,20.93,20.93h450.72c11.56,0,20.93-9.37,20.93-20.93V66.02c0-11.56-9.37-20.93-20.93-20.93ZM211.25,212.37c0,7.55-6.12,13.66-13.66,13.66h-108.21c-7.55,0-13.66-6.12-13.66-13.66v-112.62c0-7.55,6.12-13.66,13.66-13.66h108.21c7.55,0,13.66,6.12,13.66,13.66v112.62Zm150.21-41.03h-94.5c-4.42,0-8-3.58-8-8s3.58-8,8-8h94.5c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm105.82,118.05H164.74c-4.42,0-8-3.58-8-8s3.58-8,8-8h302.55c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm-3.54-169.27h-196.7c-6.38,0-11.55-5.17-11.55-11.55s5.17-11.55,11.55-11.55h196.7c6.38,0,11.55,5.17,11.55,11.55s-5.17,11.55-11.55,11.55Zm-332.66,158.93c0,13.56-10.99,24.55-24.55,24.55s-24.55-10.99-24.55-24.55,10.99-24.55,24.55-24.55,24.55,10.99,24.55,24.55Z'/%3e%3c/g%3e%3crect%20class='cls-5'%20x='420.8'%20y='58.38'%20width='100.39'%20height='100.39'%20rx='20'%20ry='20'/%3e%3cg%20id='ciseaux-2'%20data-name='ciseaux'%3e%3cpath%20class='cls-4'%20d='m513.58,45.09H60.99c-11.05,0-20,8.95-20,20v233.88c0,11.05,8.95,20,20,20h452.59c11.05,0,20-8.95,20-20V65.09c0-11.05-8.95-20-20-20Z'/%3e%3c/g%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='84.02'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='109.3'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='133.13'%20r='7.02'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='m449.99,215.32c-.39,0-.76-.08-1.12-.24l-9.44-4.22c-.69-.31-1.23-.9-1.48-1.62-.25-.72-.18-1.52.17-2.19l3.92-7.33-13.25-5.79c-.83-.36-1.43-1.11-1.6-2.01s.11-1.81.76-2.45l40.08-40.08c.52-.52,1.21-.81,1.94-.81,1.52,0,2.75,1.23,2.75,2.75v57.58c0,.75-.3,1.45-.83,1.97-.52.5-1.2.78-1.91.78h0c-.38,0-.75-.08-1.1-.23l-12.85-5.61-3.53,7.87c-.44.99-1.43,1.62-2.51,1.62Z'/%3e%3cpath%20class='cls-1'%20d='m469.97,150.6c.38,0,.75.3.75.75v57.58c0,.43-.35.75-.75.75-.1,0-.2-.02-.3-.06l-13.99-6.11c-.1-.04-.2-.06-.3-.06-.29,0-.56.16-.68.44l-4.03,9c-.12.28-.4.44-.68.44-.1,0-.21-.02-.3-.07l-9.44-4.22c-.4-.18-.56-.65-.35-1.04l4.56-8.53c.21-.38.04-.86-.36-1.04l-14.5-6.33c-.48-.21-.6-.84-.23-1.21l40.08-40.08c.15-.15.34-.22.52-.22m0-4c-1.26,0-2.45.49-3.35,1.39l-40.08,40.08c-1.11,1.11-1.6,2.7-1.31,4.24.29,1.54,1.33,2.84,2.77,3.47l11.27,4.92-2.9,5.42c-.62,1.16-.73,2.53-.31,3.78.42,1.24,1.36,2.26,2.55,2.8l9.44,4.22c.61.27,1.27.41,1.94.41,1.87,0,3.57-1.1,4.33-2.81l2.72-6.06,11.04,4.82c.6.26,1.24.4,1.9.4,2.62,0,4.75-2.13,4.75-4.75v-57.58c0-2.62-2.13-4.75-4.75-4.75h0Z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M187.994%20193.875H108.563C103.268%20193.875%2098.878%20189.768%2098.5214%20184.484L90.1194%2059.0277H209.67L198.01%20184.741C197.529%20189.915%20193.19%20193.875%20187.99%20193.875H187.994Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M150.47%20150.31L164.483%20157.961C166.929%20159.296%20169.995%20158.395%20171.33%20155.95C171.999%20154.726%20172.106%20153.35%20171.742%20152.111C171.378%20150.872%20170.539%20149.773%20169.319%20149.103C167.223%20147.96%20166.638%20146.217%20166.954%20144.029C168.388%20134.186%20188.167%20115.393%20171.091%20102.13L162.134%2097.2392C141.741%2090.047%20136.626%20116.845%20129.121%20123.372C127.456%20124.824%20125.672%20125.273%20123.577%20124.126C121.131%20122.791%20118.065%20123.692%20116.73%20126.137C116.061%20127.358%20115.954%20128.736%20116.318%20129.976C116.682%20131.215%20117.521%20132.314%20118.741%20132.983L131.537%20139.97L132.751%20140.632L150.467%20150.306L150.47%20150.31Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.2'%20d='M171.095%20102.13L171.117%20102.144L171.095%20102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M171.095%20102.13L171.117%20102.141C171.187%20102.034%20171.253%20101.924%20171.315%20101.81C172.676%2099.3167%20171.76%2096.1913%20169.267%2094.8308C166.774%2093.4703%20163.649%2094.3895%20162.288%2096.8789C162.226%2096.9929%20162.167%2097.1068%20162.115%2097.2245L162.137%2097.2355L171.095%20102.126V102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M133.67%20142.455C138.56%20145.228%20143.451%20148%20148.341%20150.773C146.422%20154.365%20142.929%20156.483%20139.421%20156.23C138.921%20156.193%20136.292%20155.954%20134.328%20153.884C131.769%20151.188%20131.438%20146.563%20133.674%20142.459L133.67%20142.455Z'%20fill='%23AADAED'/%3e%3cpath%20d='M145.56%2088.6624C145.125%2086.8475%20143.302%2085.7288%20141.488%2086.1636C139.674%2086.5984%20138.556%2088.4221%20138.991%2090.2369L156.729%20164.233C157.164%20166.048%20158.987%20167.166%20160.801%20166.732C162.615%20166.297%20163.732%20164.473%20163.297%20162.658L145.56%2088.6624Z'%20fill='%232A9CC8'/%3e%3cpath%20d='M214.66%2037.9143H195.186L189.833%2028.707C187.068%2023.9526%20181.938%2021%20176.441%2021H125.492C120.44%2021%20115.693%2023.471%20112.796%2027.6149L105.592%2037.9143H85.1334C81.1916%2037.9143%2078%2041.1096%2078%2045.0477V46.592C78%2050.5338%2081.1953%2053.7254%2085.1334%2053.7254H214.66C218.602%2053.7254%20221.793%2050.5301%20221.793%2046.592V45.0477C221.793%2041.1059%20218.598%2037.9143%20214.66%2037.9143ZM122.437%2034.3586C123.132%2033.3621%20124.275%2032.7664%20125.489%2032.7664H176.437C177.761%2032.7664%20178.993%2033.4761%20179.658%2034.6196L181.574%2037.9143H119.947L122.433%2034.3586H122.437Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M187.064%2093.9335C187.56%2093.9777%20188.046%2093.7864%20188.542%2093.7313C189.038%2093.6761%20189.63%2093.8232%20189.822%2094.2828C190.108%2094.9778%20189.274%2095.6911%20189.369%2096.4376C189.424%2096.8604%20189.763%2097.1803%20190.079%2097.4635C190.719%2098.0334%20191.362%2098.607%20192.002%2099.177C192.164%2099.3204%20192.329%2099.4748%20192.384%2099.6807C192.454%2099.9307%20192.34%20100.192%20192.245%20100.434C191.829%20101.49%20191.789%20102.894%20192.723%20103.542C192.98%20103.722%20193.304%20103.828%20193.488%20104.086C193.693%20104.376%20193.66%20104.766%20193.605%20105.119C193.473%20105.994%20193.278%20106.858%20193.021%20107.708'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.681%20138.694C105.611%20140.003%20105.658%20141.562%20106.751%20142.29C106.993%20142.452%20107.276%20142.558%20107.493%20142.757C108.122%20143.331%20107.931%20144.353%20107.633%20145.151C107.335%20145.949%20106.982%20146.868%20107.409%20147.6C107.817%20148.298%20108.762%20148.493%20109.284%20149.111C109.813%20149.732%20109.828%20150.685%20110.387%20151.28C110.626%20151.534%20110.964%20151.721%20111.089%20152.049C111.189%20152.31%20111.126%20152.597%20111.126%20152.876C111.126%20153.63%20111.597%20154.321%20112.196%20154.781C112.796%20155.24%20113.516%20155.501%20114.226%20155.755'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", jt = /* @__PURE__ */ M(async () => await import("./AppAction.js")), Wt = /* @__PURE__ */ M(async () => await import("./Library.js")), Gt = /* @__PURE__ */ M(async () => await import("./ActionBarContainer.js")), Jt = /* @__PURE__ */ M(async () => await import("./DisableModal.js")), Xt = /* @__PURE__ */ M(async () => await import("./TrashModal.js")), Yt = /* @__PURE__ */ M(async () => await import("./OnboardingModal.js")), Fs = ({
|
|
1460
1460
|
config: e
|
|
1461
1461
|
}) => {
|
|
1462
|
-
const t =
|
|
1462
|
+
const t = A(), {
|
|
1463
1463
|
setConfig: s,
|
|
1464
1464
|
setSearchParams: r
|
|
1465
1465
|
} = R();
|
|
@@ -1471,26 +1471,26 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1471
1471
|
});
|
|
1472
1472
|
}, [e]);
|
|
1473
1473
|
const {
|
|
1474
|
-
currentApp:
|
|
1474
|
+
currentApp: o
|
|
1475
1475
|
} = Z(), {
|
|
1476
1476
|
data: c
|
|
1477
1477
|
} = St(e.actions), {
|
|
1478
|
-
isTrashedModalOpen:
|
|
1478
|
+
isTrashedModalOpen: n,
|
|
1479
1479
|
onTrashedCancel: u
|
|
1480
1480
|
} = It(), {
|
|
1481
|
-
isActionDisableModalOpen:
|
|
1481
|
+
isActionDisableModalOpen: p,
|
|
1482
1482
|
onActionDisableCancel: i
|
|
1483
1483
|
} = Ct(), {
|
|
1484
1484
|
handleDragEnd: l,
|
|
1485
1485
|
handleDragOver: h,
|
|
1486
1486
|
handleDragStart: d,
|
|
1487
|
-
sensors:
|
|
1487
|
+
sensors: f
|
|
1488
1488
|
} = Ft();
|
|
1489
1489
|
_e();
|
|
1490
|
-
const m =
|
|
1490
|
+
const m = ne("publish", c), I = ne("create", c);
|
|
1491
1491
|
return e && /* @__PURE__ */ b(W, { children: [
|
|
1492
|
-
/* @__PURE__ */ a(Ke, { render: () => I ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(jt, {}) }) : null, children: /* @__PURE__ */ a($e, { app:
|
|
1493
|
-
/* @__PURE__ */ a(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors:
|
|
1492
|
+
/* @__PURE__ */ a(Ke, { render: () => I ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(jt, {}) }) : null, children: /* @__PURE__ */ a($e, { app: o }) }),
|
|
1493
|
+
/* @__PURE__ */ a(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors: f, modifiers: [Fe], onDragStart: d, onDragEnd: l, onDragOver: h, children: [
|
|
1494
1494
|
/* @__PURE__ */ a(te.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
|
|
1495
1495
|
/* @__PURE__ */ a(Vt, {}),
|
|
1496
1496
|
m && /* @__PURE__ */ a(Wt, {})
|
|
@@ -1498,7 +1498,7 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1498
1498
|
/* @__PURE__ */ b(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1499
1499
|
/* @__PURE__ */ a(Ot, {}),
|
|
1500
1500
|
/* @__PURE__ */ a(_t, {}),
|
|
1501
|
-
/* @__PURE__ */ a(
|
|
1501
|
+
/* @__PURE__ */ a(kt, {})
|
|
1502
1502
|
] }),
|
|
1503
1503
|
/* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
|
|
1504
1504
|
/* @__PURE__ */ a(Gt, {}),
|
|
@@ -1520,8 +1520,8 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1520
1520
|
nextText: "explorer.modal.onboarding.trash.next",
|
|
1521
1521
|
closeText: "explorer.modal.onboarding.trash.close"
|
|
1522
1522
|
} }),
|
|
1523
|
-
|
|
1524
|
-
|
|
1523
|
+
n && /* @__PURE__ */ a(Xt, { isOpen: n, onCancel: u }),
|
|
1524
|
+
p && /* @__PURE__ */ a(Jt, { isOpen: p, onCancel: i })
|
|
1525
1525
|
] })
|
|
1526
1526
|
] }) })
|
|
1527
1527
|
] });
|
|
@@ -1535,21 +1535,21 @@ export {
|
|
|
1535
1535
|
St as b,
|
|
1536
1536
|
z as c,
|
|
1537
1537
|
Ts as d,
|
|
1538
|
-
|
|
1538
|
+
A as e,
|
|
1539
1539
|
re as f,
|
|
1540
1540
|
ds as g,
|
|
1541
1541
|
X as h,
|
|
1542
|
-
|
|
1543
|
-
|
|
1542
|
+
fs as i,
|
|
1543
|
+
ps as j,
|
|
1544
1544
|
J as k,
|
|
1545
1545
|
Cs as l,
|
|
1546
|
-
|
|
1546
|
+
pt as m,
|
|
1547
1547
|
ws as n,
|
|
1548
1548
|
gs as o,
|
|
1549
1549
|
us as p,
|
|
1550
1550
|
Ss as q,
|
|
1551
1551
|
bs as r,
|
|
1552
|
-
|
|
1552
|
+
ft as s,
|
|
1553
1553
|
Ds as t,
|
|
1554
1554
|
T as u,
|
|
1555
1555
|
xs as v,
|