ode-explorer 2.6.15-develop-enabling.20261013153419 → 2.6.15-develop.20261014090947
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 +1 -1
- package/dist/style.css +1 -1
- package/lib/index2.js +399 -406
- package/lib/store/index.d.ts +3 -9
- package/package.json +1 -1
package/lib/index2.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as b, Fragment as W, jsx as
|
|
2
|
-
import { useEffect as
|
|
1
|
+
import { jsxs as b, Fragment as W, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as B, Suspense as Q, lazy as M, useState as ie, useRef as we, Fragment as De } from "react";
|
|
3
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 { findParentNode as ve, findNodeById as G, wrapTreeNode as Ee, useToast as U, moveNode as Le, useUser as ue, useEdificeClient as
|
|
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
|
|
10
|
-
import { useTranslation as
|
|
9
|
+
import { useQuery as We, queryOptions as Ge, useQueryClient as P, useMutation as O, useInfiniteQuery as Je } from "@tanstack/react-query";
|
|
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,7 +25,7 @@ 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,
|
|
@@ -39,7 +39,7 @@ const he = async (e) => {
|
|
|
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,
|
|
@@ -52,7 +52,7 @@ const he = async (e) => {
|
|
|
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,
|
|
@@ -65,7 +65,7 @@ const he = async (e) => {
|
|
|
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,
|
|
@@ -78,11 +78,11 @@ const he = async (e) => {
|
|
|
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,
|
|
@@ -95,43 +95,43 @@ const he = async (e) => {
|
|
|
95
95
|
resourceIds: t,
|
|
96
96
|
folderIds: r
|
|
97
97
|
};
|
|
98
|
-
return await
|
|
99
|
-
}, ot = async (e) => await
|
|
98
|
+
return await N.resource(e.application).moveToFolder(l, 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
|
}, lt = {
|
|
@@ -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"
|
|
@@ -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
|
});
|
|
@@ -293,7 +293,7 @@ const he = async (e) => {
|
|
|
293
293
|
} = t();
|
|
294
294
|
if (r.length !== 1)
|
|
295
295
|
throw new Error("Cannot open more than 1 resource");
|
|
296
|
-
const l = r.find((
|
|
296
|
+
const l = r.find((a) => a.id === o[0]);
|
|
297
297
|
ct({
|
|
298
298
|
searchParams: s,
|
|
299
299
|
assetId: l.assetId
|
|
@@ -309,13 +309,13 @@ const he = async (e) => {
|
|
|
309
309
|
}) => {
|
|
310
310
|
const {
|
|
311
311
|
searchParams: l
|
|
312
|
-
} = t(),
|
|
313
|
-
|
|
314
|
-
...
|
|
312
|
+
} = t(), a = l.filters.folder, c = s;
|
|
313
|
+
a !== s && (t().actions.fetchTreeData(s, o), e((p) => ({
|
|
314
|
+
...p,
|
|
315
315
|
// reset selection when changing folder
|
|
316
316
|
folderIds: [],
|
|
317
317
|
resourceIds: [],
|
|
318
|
-
selectedNodeId:
|
|
318
|
+
selectedNodeId: c,
|
|
319
319
|
currentFolder: r || {
|
|
320
320
|
id: s
|
|
321
321
|
},
|
|
@@ -326,7 +326,7 @@ const he = async (e) => {
|
|
|
326
326
|
...l.filters,
|
|
327
327
|
folder: s
|
|
328
328
|
},
|
|
329
|
-
trashed: s ===
|
|
329
|
+
trashed: s === E.BIN
|
|
330
330
|
}
|
|
331
331
|
})));
|
|
332
332
|
},
|
|
@@ -334,45 +334,41 @@ const he = async (e) => {
|
|
|
334
334
|
...s,
|
|
335
335
|
status: "fold"
|
|
336
336
|
})),
|
|
337
|
-
fetchTreeData: async (s, r
|
|
338
|
-
const
|
|
339
|
-
if (
|
|
340
|
-
const
|
|
337
|
+
fetchTreeData: async (s, r) => {
|
|
338
|
+
const o = G(t().treeData, s), l = o == null ? void 0 : o.id;
|
|
339
|
+
if (Array.isArray(o == null ? void 0 : o.children) && o.children.length) return;
|
|
340
|
+
const a = await r.fetchQuery({
|
|
341
341
|
queryKey: ["prefetchContext", {
|
|
342
|
-
folderId:
|
|
342
|
+
folderId: l,
|
|
343
343
|
trashed: !1
|
|
344
344
|
}],
|
|
345
345
|
queryFn: async () => await he({
|
|
346
346
|
...t().searchParams,
|
|
347
347
|
filters: {
|
|
348
348
|
...t().searchParams.filters,
|
|
349
|
-
folder:
|
|
349
|
+
folder: l
|
|
350
350
|
}
|
|
351
|
-
})
|
|
352
|
-
// A forced reload must hit the server, not the cache.
|
|
353
|
-
...o != null && o.force ? {
|
|
354
|
-
staleTime: 0
|
|
355
|
-
} : {}
|
|
351
|
+
})
|
|
356
352
|
});
|
|
357
|
-
t().actions.setTreeData(Ee(t().treeData,
|
|
353
|
+
t().actions.setTreeData(Ee(t().treeData, a == null ? void 0 : a.folders, l || E.DEFAULT));
|
|
358
354
|
},
|
|
359
355
|
selectTreeItem: (s, r) => {
|
|
360
356
|
const {
|
|
361
357
|
treeData: o
|
|
362
358
|
} = t(), {
|
|
363
359
|
openFolder: l,
|
|
364
|
-
fetchTreeData:
|
|
365
|
-
} = t().actions,
|
|
366
|
-
|
|
367
|
-
...
|
|
360
|
+
fetchTreeData: a
|
|
361
|
+
} = t().actions, c = G(o, s);
|
|
362
|
+
a(s, r), e((p) => ({
|
|
363
|
+
...p,
|
|
368
364
|
searchParams: {
|
|
369
|
-
...
|
|
365
|
+
...p.searchParams,
|
|
370
366
|
search: void 0
|
|
371
367
|
},
|
|
372
368
|
status: "select",
|
|
373
369
|
selectedResources: []
|
|
374
370
|
})), l({
|
|
375
|
-
folder:
|
|
371
|
+
folder: c,
|
|
376
372
|
folderId: s
|
|
377
373
|
});
|
|
378
374
|
},
|
|
@@ -385,13 +381,13 @@ const he = async (e) => {
|
|
|
385
381
|
openFolder: l
|
|
386
382
|
} = t().actions;
|
|
387
383
|
if (o.search && l({
|
|
388
|
-
folder:
|
|
389
|
-
folderId:
|
|
384
|
+
folder: fe,
|
|
385
|
+
folderId: E.DEFAULT
|
|
390
386
|
}), !s) return;
|
|
391
|
-
const
|
|
387
|
+
const a = ve(r, s);
|
|
392
388
|
l({
|
|
393
|
-
folder:
|
|
394
|
-
folderId: (
|
|
389
|
+
folder: a,
|
|
390
|
+
folderId: (a == null ? void 0 : a.id) || E.DEFAULT
|
|
395
391
|
});
|
|
396
392
|
},
|
|
397
393
|
goToTrash: () => {
|
|
@@ -406,12 +402,12 @@ const he = async (e) => {
|
|
|
406
402
|
...s.searchParams,
|
|
407
403
|
search: void 0,
|
|
408
404
|
filters: {
|
|
409
|
-
folder:
|
|
405
|
+
folder: E.BIN
|
|
410
406
|
},
|
|
411
407
|
trashed: !0
|
|
412
408
|
},
|
|
413
409
|
currentFolder: {
|
|
414
|
-
id:
|
|
410
|
+
id: E.BIN
|
|
415
411
|
}
|
|
416
412
|
}));
|
|
417
413
|
}
|
|
@@ -420,10 +416,10 @@ const he = async (e) => {
|
|
|
420
416
|
function T(e) {
|
|
421
417
|
return je(it, e);
|
|
422
418
|
}
|
|
423
|
-
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 = () => {
|
|
424
420
|
const e = z();
|
|
425
|
-
return (e == null ? void 0 : e.id) ===
|
|
426
|
-
},
|
|
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 = () => {
|
|
427
423
|
const e = z();
|
|
428
424
|
return (e == null ? void 0 : e.id) === "default";
|
|
429
425
|
}, yt = () => T((e) => e.status), Ct = () => {
|
|
@@ -439,7 +435,7 @@ const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () =>
|
|
|
439
435
|
}
|
|
440
436
|
};
|
|
441
437
|
}, It = () => {
|
|
442
|
-
const e =
|
|
438
|
+
const e = pt(), {
|
|
443
439
|
clearSelectedIds: t,
|
|
444
440
|
setResourceIsTrash: s,
|
|
445
441
|
clearSelectedItems: r
|
|
@@ -508,14 +504,14 @@ de.register({
|
|
|
508
504
|
application: ge,
|
|
509
505
|
resourceType: me
|
|
510
506
|
}, (e) => new ye(e));
|
|
511
|
-
const
|
|
507
|
+
const q = document.querySelector("[data-explorer-config]");
|
|
512
508
|
let ce;
|
|
513
509
|
function ms() {
|
|
514
510
|
var e;
|
|
515
|
-
if ((e =
|
|
511
|
+
if ((e = q == null ? void 0 : q.dataset) != null && e.explorerConfig) {
|
|
516
512
|
const {
|
|
517
513
|
explorerConfig: t
|
|
518
|
-
} =
|
|
514
|
+
} = q.dataset;
|
|
519
515
|
try {
|
|
520
516
|
const s = JSON.parse(t);
|
|
521
517
|
ce = {
|
|
@@ -524,7 +520,7 @@ function ms() {
|
|
|
524
520
|
enableOnboarding: s.enableOnboarding !== void 0 ? s.enableOnboarding : !0
|
|
525
521
|
};
|
|
526
522
|
} catch (s) {
|
|
527
|
-
console.error("[Explorer Config] could not parse app params from root data attributes:",
|
|
523
|
+
console.error("[Explorer Config] could not parse app params from root data attributes:", q == null ? void 0 : q.dataset, s);
|
|
528
524
|
}
|
|
529
525
|
}
|
|
530
526
|
return ce;
|
|
@@ -545,7 +541,7 @@ const xt = (e, t) => {
|
|
|
545
541
|
const t = T((s) => s.config);
|
|
546
542
|
return We(xt(e, t));
|
|
547
543
|
}, bt = () => {
|
|
548
|
-
const e = T((
|
|
544
|
+
const e = T((a) => a.config), t = A(), {
|
|
549
545
|
filters: s,
|
|
550
546
|
trashed: r,
|
|
551
547
|
search: o
|
|
@@ -558,66 +554,66 @@ const xt = (e, t) => {
|
|
|
558
554
|
return Je({
|
|
559
555
|
queryKey: l,
|
|
560
556
|
queryFn: async ({
|
|
561
|
-
pageParam:
|
|
557
|
+
pageParam: a
|
|
562
558
|
}) => await he({
|
|
563
559
|
...t,
|
|
564
560
|
application: e == null ? void 0 : e.app,
|
|
565
561
|
types: e == null ? void 0 : e.types,
|
|
566
562
|
pagination: {
|
|
567
563
|
...t.pagination,
|
|
568
|
-
startIdx:
|
|
564
|
+
startIdx: a
|
|
569
565
|
}
|
|
570
566
|
}),
|
|
571
567
|
staleTime: 5e3,
|
|
572
568
|
initialPageParam: 0,
|
|
573
569
|
enabled: !!e,
|
|
574
570
|
retry: !1,
|
|
575
|
-
getNextPageParam: (
|
|
571
|
+
getNextPageParam: (a) => a.pagination.startIdx + a.pagination.pageSize
|
|
576
572
|
});
|
|
577
573
|
}, ys = () => {
|
|
578
|
-
const e = U(), t =
|
|
574
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
|
|
579
575
|
clearSelectedItems: d,
|
|
580
576
|
clearSelectedIds: i,
|
|
581
577
|
setTreeData: h,
|
|
582
578
|
setSearchParams: u
|
|
583
579
|
} = R(), {
|
|
584
|
-
filters:
|
|
585
|
-
trashed:
|
|
580
|
+
filters: g,
|
|
581
|
+
trashed: m
|
|
586
582
|
} = s, I = ["context", {
|
|
587
|
-
folderId:
|
|
588
|
-
filters:
|
|
589
|
-
trashed:
|
|
583
|
+
folderId: g.folder,
|
|
584
|
+
filters: g,
|
|
585
|
+
trashed: m
|
|
590
586
|
}];
|
|
591
|
-
return
|
|
587
|
+
return O({
|
|
592
588
|
mutationFn: async () => await et({
|
|
593
589
|
searchParams: s,
|
|
594
590
|
folderIds: o,
|
|
595
|
-
resourceIds:
|
|
596
|
-
useAssetIds:
|
|
591
|
+
resourceIds: p,
|
|
592
|
+
useAssetIds: c
|
|
597
593
|
}),
|
|
598
|
-
onError(
|
|
599
|
-
typeof
|
|
594
|
+
onError(C) {
|
|
595
|
+
typeof C == "string" && e.error(L(C));
|
|
600
596
|
},
|
|
601
|
-
onSuccess: async (
|
|
597
|
+
onSuccess: async (C) => {
|
|
602
598
|
if (await t.cancelQueries({
|
|
603
599
|
queryKey: I
|
|
604
600
|
}), t.getQueryData(I))
|
|
605
|
-
return e.success(
|
|
606
|
-
var
|
|
601
|
+
return e.success(L("explorer.trash.title")), t.setQueryData(I, (F) => {
|
|
602
|
+
var k;
|
|
607
603
|
if (F) {
|
|
608
604
|
const S = {
|
|
609
605
|
...F,
|
|
610
606
|
pages: F == null ? void 0 : F.pages.map((y) => {
|
|
611
|
-
var
|
|
607
|
+
var f;
|
|
612
608
|
return {
|
|
613
609
|
...y,
|
|
614
|
-
folders: y.folders.filter((
|
|
610
|
+
folders: y.folders.filter((w) => !o.includes(w.id)),
|
|
615
611
|
pagination: {
|
|
616
612
|
...y.pagination,
|
|
617
613
|
// @ts-ignore
|
|
618
|
-
maxIdx: ((
|
|
614
|
+
maxIdx: ((f = y == null ? void 0 : y.pagination) == null ? void 0 : f.maxIdx) - C.resources.length
|
|
619
615
|
},
|
|
620
|
-
resources: y.resources.filter((
|
|
616
|
+
resources: y.resources.filter((w) => c ? !l.includes(w.assetId) : !p.includes(w.id))
|
|
621
617
|
};
|
|
622
618
|
})
|
|
623
619
|
}, D = Pe(r, {
|
|
@@ -628,7 +624,7 @@ const xt = (e, t) => {
|
|
|
628
624
|
pagination: {
|
|
629
625
|
...s.pagination,
|
|
630
626
|
// @ts-ignore
|
|
631
|
-
maxIdx: ((
|
|
627
|
+
maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - C.resources.length
|
|
632
628
|
}
|
|
633
629
|
}), S;
|
|
634
630
|
}
|
|
@@ -639,52 +635,52 @@ const xt = (e, t) => {
|
|
|
639
635
|
}
|
|
640
636
|
});
|
|
641
637
|
}, Cs = () => {
|
|
642
|
-
const e = U(), t =
|
|
643
|
-
setFolderIds:
|
|
638
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
|
|
639
|
+
setFolderIds: p,
|
|
644
640
|
setResourceIds: d,
|
|
645
641
|
setSelectedResources: i,
|
|
646
642
|
setSelectedFolders: h
|
|
647
643
|
} = R(), {
|
|
648
644
|
filters: u,
|
|
649
|
-
trashed:
|
|
650
|
-
} = s,
|
|
645
|
+
trashed: g
|
|
646
|
+
} = s, m = ["context", {
|
|
651
647
|
folderId: u.folder,
|
|
652
648
|
filters: u,
|
|
653
|
-
trashed:
|
|
649
|
+
trashed: g
|
|
654
650
|
}];
|
|
655
|
-
return
|
|
651
|
+
return O({
|
|
656
652
|
mutationFn: async () => await st({
|
|
657
653
|
searchParams: s,
|
|
658
654
|
folderIds: r,
|
|
659
|
-
resourceIds:
|
|
660
|
-
useAssetIds:
|
|
655
|
+
resourceIds: c,
|
|
656
|
+
useAssetIds: a
|
|
661
657
|
}),
|
|
662
658
|
onError(I) {
|
|
663
|
-
typeof I == "string" && e.error(
|
|
659
|
+
typeof I == "string" && e.error(L(I));
|
|
664
660
|
},
|
|
665
661
|
onSuccess: async () => {
|
|
666
662
|
if (await t.cancelQueries({
|
|
667
|
-
queryKey:
|
|
668
|
-
}), t.getQueryData(
|
|
669
|
-
return e.success(
|
|
670
|
-
if (
|
|
663
|
+
queryKey: m
|
|
664
|
+
}), t.getQueryData(m))
|
|
665
|
+
return e.success(L("explorer.trash.toast")), t.setQueryData(m, (C) => {
|
|
666
|
+
if (C)
|
|
671
667
|
return {
|
|
672
|
-
...
|
|
673
|
-
pages:
|
|
668
|
+
...C,
|
|
669
|
+
pages: C == null ? void 0 : C.pages.map((x) => ({
|
|
674
670
|
...x,
|
|
675
671
|
folders: x.folders.filter((F) => !r.includes(F.id)),
|
|
676
|
-
resources: x.resources.filter((F) =>
|
|
672
|
+
resources: x.resources.filter((F) => a ? !o.includes(F.assetId) : !c.includes(F.id))
|
|
677
673
|
}))
|
|
678
674
|
};
|
|
679
675
|
});
|
|
680
676
|
},
|
|
681
677
|
onSettled: () => {
|
|
682
|
-
d([]), i([]),
|
|
678
|
+
d([]), i([]), p([]), h([]);
|
|
683
679
|
}
|
|
684
680
|
});
|
|
685
681
|
}, Is = () => {
|
|
686
|
-
const e = U(), t =
|
|
687
|
-
clearSelectedItems:
|
|
682
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
|
|
683
|
+
clearSelectedItems: p,
|
|
688
684
|
clearSelectedIds: d
|
|
689
685
|
} = R(), {
|
|
690
686
|
filters: i,
|
|
@@ -694,58 +690,58 @@ const xt = (e, t) => {
|
|
|
694
690
|
filters: i,
|
|
695
691
|
trashed: h
|
|
696
692
|
}];
|
|
697
|
-
return
|
|
693
|
+
return O({
|
|
698
694
|
mutationFn: async () => await tt({
|
|
699
695
|
searchParams: s,
|
|
700
696
|
folderIds: r,
|
|
701
|
-
resourceIds:
|
|
702
|
-
useAssetIds:
|
|
697
|
+
resourceIds: c,
|
|
698
|
+
useAssetIds: a
|
|
703
699
|
}),
|
|
704
|
-
onError(
|
|
705
|
-
typeof
|
|
700
|
+
onError(g) {
|
|
701
|
+
typeof g == "string" && e.error(L(g));
|
|
706
702
|
},
|
|
707
703
|
onSuccess: async () => {
|
|
708
704
|
if (await t.cancelQueries({
|
|
709
705
|
queryKey: u
|
|
710
706
|
}), t.getQueryData(u))
|
|
711
|
-
return e.success(
|
|
712
|
-
if (
|
|
707
|
+
return e.success(L("explorer.removed.from.trash")), t.setQueryData(u, (m) => {
|
|
708
|
+
if (m)
|
|
713
709
|
return {
|
|
714
|
-
...
|
|
715
|
-
pages:
|
|
716
|
-
...
|
|
717
|
-
folders:
|
|
718
|
-
resources:
|
|
710
|
+
...m,
|
|
711
|
+
pages: m == null ? void 0 : m.pages.map((C) => ({
|
|
712
|
+
...C,
|
|
713
|
+
folders: C.folders.filter((x) => !r.includes(x.id)),
|
|
714
|
+
resources: C.resources.filter((x) => a ? !o.includes(x.assetId) : !c.includes(x.id))
|
|
719
715
|
}))
|
|
720
716
|
};
|
|
721
717
|
});
|
|
722
718
|
},
|
|
723
719
|
onSettled: () => {
|
|
724
|
-
|
|
720
|
+
p(), d();
|
|
725
721
|
}
|
|
726
722
|
});
|
|
727
723
|
}, ws = () => {
|
|
728
|
-
const e = U(), t =
|
|
724
|
+
const e = U(), t = A(), s = P(), {
|
|
729
725
|
user: r
|
|
730
726
|
} = ue(), o = z(), {
|
|
731
727
|
filters: l,
|
|
732
|
-
trashed:
|
|
733
|
-
} = t,
|
|
728
|
+
trashed: a
|
|
729
|
+
} = t, c = "duplicate_start", p = ["context", {
|
|
734
730
|
folderId: l.folder,
|
|
735
731
|
filters: l,
|
|
736
|
-
trashed:
|
|
732
|
+
trashed: a
|
|
737
733
|
}];
|
|
738
|
-
return
|
|
739
|
-
mutationFn: async (d) => (e.info(
|
|
740
|
-
id:
|
|
734
|
+
return O({
|
|
735
|
+
mutationFn: async (d) => (e.info(L("duplicate.start"), {
|
|
736
|
+
id: c
|
|
741
737
|
}), await rt(t, d.assetId)),
|
|
742
738
|
onSuccess: async (d, i) => {
|
|
743
|
-
e.remove(
|
|
744
|
-
queryKey:
|
|
739
|
+
e.remove(c), e.success(L("duplicate.done")), await s.cancelQueries({
|
|
740
|
+
queryKey: p
|
|
745
741
|
});
|
|
746
|
-
const h = s.getQueryData(
|
|
742
|
+
const h = s.getQueryData(p), u = {
|
|
747
743
|
...i,
|
|
748
|
-
name: `${i.name}${
|
|
744
|
+
name: `${i.name}${L("duplicate.suffix")}`,
|
|
749
745
|
assetId: d.duplicateId,
|
|
750
746
|
id: d.duplicateId,
|
|
751
747
|
creatorId: r == null ? void 0 : r.userId,
|
|
@@ -759,16 +755,16 @@ const xt = (e, t) => {
|
|
|
759
755
|
trashed: !1,
|
|
760
756
|
rights: [`creator:${r == null ? void 0 : r.userId}`]
|
|
761
757
|
};
|
|
762
|
-
h && s.setQueryData(
|
|
763
|
-
if (
|
|
758
|
+
h && s.setQueryData(p, (g) => {
|
|
759
|
+
if (g)
|
|
764
760
|
return {
|
|
765
|
-
...
|
|
766
|
-
pages:
|
|
767
|
-
...
|
|
768
|
-
resources: [u, ...
|
|
761
|
+
...g,
|
|
762
|
+
pages: g == null ? void 0 : g.pages.map((m) => ({
|
|
763
|
+
...m,
|
|
764
|
+
resources: [u, ...m.resources]
|
|
769
765
|
}))
|
|
770
766
|
};
|
|
771
|
-
}), o.id && o.id !==
|
|
767
|
+
}), o.id && o.id !== E.DEFAULT && pe({
|
|
772
768
|
searchParams: t,
|
|
773
769
|
resourceIds: [d.duplicateId],
|
|
774
770
|
folderId: o.id,
|
|
@@ -777,142 +773,139 @@ const xt = (e, t) => {
|
|
|
777
773
|
});
|
|
778
774
|
},
|
|
779
775
|
onError: (d) => {
|
|
780
|
-
e.remove(
|
|
776
|
+
e.remove(c), typeof d == "string" && e.error(`${L("duplicate.error")}: ${d}`);
|
|
781
777
|
}
|
|
782
778
|
});
|
|
783
779
|
}, Tt = () => {
|
|
784
|
-
const e = U(), t =
|
|
780
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
|
|
785
781
|
clearSelectedIds: d,
|
|
786
782
|
clearSelectedItems: i,
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
setSearchParams: p
|
|
783
|
+
setTreeData: h,
|
|
784
|
+
setSearchParams: u
|
|
790
785
|
} = R(), {
|
|
791
786
|
filters: g,
|
|
792
|
-
trashed:
|
|
793
|
-
} = s,
|
|
787
|
+
trashed: m
|
|
788
|
+
} = s, I = ["context", {
|
|
794
789
|
folderId: g.folder,
|
|
795
790
|
filters: g,
|
|
796
|
-
trashed:
|
|
791
|
+
trashed: m
|
|
797
792
|
}];
|
|
798
|
-
return
|
|
799
|
-
mutationFn: async (
|
|
793
|
+
return O({
|
|
794
|
+
mutationFn: async (C) => await pe({
|
|
800
795
|
searchParams: s,
|
|
801
|
-
folderId:
|
|
796
|
+
folderId: C,
|
|
802
797
|
folderIds: o,
|
|
803
|
-
resourceIds:
|
|
804
|
-
useAssetIds:
|
|
798
|
+
resourceIds: p,
|
|
799
|
+
useAssetIds: c
|
|
805
800
|
}),
|
|
806
|
-
onError(
|
|
807
|
-
typeof
|
|
801
|
+
onError(C) {
|
|
802
|
+
typeof C == "string" && e.error(L(C));
|
|
808
803
|
},
|
|
809
|
-
onSuccess: async (
|
|
810
|
-
if (t.getQueryData(
|
|
811
|
-
return t.setQueryData(
|
|
812
|
-
var
|
|
813
|
-
if (
|
|
814
|
-
const
|
|
815
|
-
destinationId:
|
|
804
|
+
onSuccess: async (C, x) => {
|
|
805
|
+
if (t.getQueryData(I))
|
|
806
|
+
return t.setQueryData(I, (k) => {
|
|
807
|
+
var S;
|
|
808
|
+
if (k) {
|
|
809
|
+
const D = Le(r, {
|
|
810
|
+
destinationId: x,
|
|
816
811
|
folders: o
|
|
817
|
-
}),
|
|
818
|
-
...
|
|
819
|
-
pages:
|
|
820
|
-
var
|
|
812
|
+
}), y = {
|
|
813
|
+
...k,
|
|
814
|
+
pages: k == null ? void 0 : k.pages.map((f) => {
|
|
815
|
+
var w;
|
|
821
816
|
return {
|
|
822
|
-
...
|
|
823
|
-
folders:
|
|
817
|
+
...f,
|
|
818
|
+
folders: f.folders.filter((v) => !o.includes(v.id)),
|
|
824
819
|
pagination: {
|
|
825
|
-
...
|
|
820
|
+
...f.pagination,
|
|
826
821
|
// @ts-ignore
|
|
827
|
-
maxIdx: ((
|
|
822
|
+
maxIdx: ((w = f.pagination) == null ? void 0 : w.maxIdx) - C.resources.length
|
|
828
823
|
},
|
|
829
|
-
resources:
|
|
824
|
+
resources: f.resources.filter((v) => c ? !l.includes(v.assetId) : !p.includes(v.id))
|
|
830
825
|
};
|
|
831
826
|
})
|
|
832
827
|
};
|
|
833
|
-
return
|
|
828
|
+
return h(D), u({
|
|
834
829
|
...s,
|
|
835
830
|
pagination: {
|
|
836
831
|
...s.pagination,
|
|
837
832
|
// @ts-ignore
|
|
838
|
-
maxIdx: ((
|
|
833
|
+
maxIdx: ((S = s.pagination) == null ? void 0 : S.maxIdx) - C.resources.length
|
|
839
834
|
}
|
|
840
|
-
}),
|
|
835
|
+
}), y;
|
|
841
836
|
}
|
|
842
837
|
});
|
|
843
|
-
|
|
844
|
-
force: !0
|
|
845
|
-
}).catch(console.error), t.invalidateQueries();
|
|
838
|
+
t.invalidateQueries();
|
|
846
839
|
},
|
|
847
840
|
onSettled: () => {
|
|
848
841
|
i(), d();
|
|
849
842
|
}
|
|
850
843
|
});
|
|
851
844
|
}, Ds = () => {
|
|
852
|
-
const e = U(), t =
|
|
845
|
+
const e = U(), t = P(), s = A(), r = $(), {
|
|
853
846
|
setTreeData: o
|
|
854
847
|
} = R(), {
|
|
855
848
|
filters: l,
|
|
856
|
-
trashed:
|
|
857
|
-
} = s,
|
|
849
|
+
trashed: a
|
|
850
|
+
} = s, c = ["context", {
|
|
858
851
|
folderId: l.folder,
|
|
859
852
|
filters: l,
|
|
860
|
-
trashed:
|
|
853
|
+
trashed: a
|
|
861
854
|
}];
|
|
862
|
-
return
|
|
855
|
+
return O({
|
|
863
856
|
mutationFn: async ({
|
|
864
|
-
name:
|
|
857
|
+
name: p,
|
|
865
858
|
parentId: d
|
|
866
859
|
}) => await Xe({
|
|
867
860
|
searchParams: s,
|
|
868
|
-
name:
|
|
861
|
+
name: p,
|
|
869
862
|
parentId: d
|
|
870
863
|
}),
|
|
871
|
-
onError(
|
|
872
|
-
typeof
|
|
864
|
+
onError(p) {
|
|
865
|
+
typeof p == "string" && e.error(L(p));
|
|
873
866
|
},
|
|
874
|
-
onSuccess: async (
|
|
867
|
+
onSuccess: async (p, d) => {
|
|
875
868
|
await t.cancelQueries({
|
|
876
|
-
queryKey:
|
|
869
|
+
queryKey: c
|
|
877
870
|
});
|
|
878
|
-
const i = t.getQueryData(
|
|
879
|
-
...
|
|
871
|
+
const i = t.getQueryData(c), h = {
|
|
872
|
+
...p,
|
|
880
873
|
parentId: d.parentId,
|
|
881
874
|
children: [],
|
|
882
|
-
rights: [`creator:${
|
|
875
|
+
rights: [`creator:${p == null ? void 0 : p.creator_id}`]
|
|
883
876
|
};
|
|
884
877
|
if (i)
|
|
885
|
-
return t.setQueryData(
|
|
878
|
+
return t.setQueryData(c, (u) => {
|
|
886
879
|
if (u) {
|
|
887
|
-
const
|
|
880
|
+
const g = {
|
|
888
881
|
...u,
|
|
889
882
|
pages: u == null ? void 0 : u.pages.map((I) => ({
|
|
890
883
|
...I,
|
|
891
884
|
folders: [...I.folders, h]
|
|
892
885
|
}))
|
|
893
|
-
},
|
|
886
|
+
}, m = Me(r, {
|
|
894
887
|
parentId: d.parentId,
|
|
895
888
|
newFolder: h
|
|
896
889
|
});
|
|
897
|
-
return o(
|
|
890
|
+
return o(m), g;
|
|
898
891
|
}
|
|
899
892
|
});
|
|
900
893
|
}
|
|
901
894
|
});
|
|
902
895
|
}, xs = () => {
|
|
903
|
-
const e = U(), t =
|
|
896
|
+
const e = U(), t = P(), s = A(), r = $(), {
|
|
904
897
|
setFolderIds: o,
|
|
905
898
|
setSelectedFolders: l,
|
|
906
|
-
setTreeData:
|
|
899
|
+
setTreeData: a
|
|
907
900
|
} = R(), {
|
|
908
|
-
filters:
|
|
909
|
-
trashed:
|
|
901
|
+
filters: c,
|
|
902
|
+
trashed: p
|
|
910
903
|
} = s, d = ["context", {
|
|
911
|
-
folderId:
|
|
912
|
-
filters:
|
|
913
|
-
trashed:
|
|
904
|
+
folderId: c.folder,
|
|
905
|
+
filters: c,
|
|
906
|
+
trashed: p
|
|
914
907
|
}];
|
|
915
|
-
return
|
|
908
|
+
return O({
|
|
916
909
|
mutationFn: async ({
|
|
917
910
|
folderId: i,
|
|
918
911
|
name: h,
|
|
@@ -924,19 +917,19 @@ const xt = (e, t) => {
|
|
|
924
917
|
name: h
|
|
925
918
|
}),
|
|
926
919
|
onError(i) {
|
|
927
|
-
typeof i == "string" && e.error(
|
|
920
|
+
typeof i == "string" && e.error(L(i));
|
|
928
921
|
},
|
|
929
922
|
onSuccess: async (i, h) => {
|
|
930
923
|
if (await t.cancelQueries({
|
|
931
924
|
queryKey: d
|
|
932
925
|
}), t.getQueryData(d))
|
|
933
|
-
return t.setQueryData(d, (
|
|
934
|
-
if (
|
|
935
|
-
const
|
|
936
|
-
...
|
|
937
|
-
pages:
|
|
938
|
-
...
|
|
939
|
-
folders:
|
|
926
|
+
return t.setQueryData(d, (g) => {
|
|
927
|
+
if (g) {
|
|
928
|
+
const m = {
|
|
929
|
+
...g,
|
|
930
|
+
pages: g == null ? void 0 : g.pages.map((C) => ({
|
|
931
|
+
...C,
|
|
932
|
+
folders: C.folders.map((x) => x.id === i.id ? {
|
|
940
933
|
...i,
|
|
941
934
|
parentId: h.parentId,
|
|
942
935
|
rights: x.rights
|
|
@@ -946,7 +939,7 @@ const xt = (e, t) => {
|
|
|
946
939
|
folderId: h.folderId,
|
|
947
940
|
newFolder: i
|
|
948
941
|
});
|
|
949
|
-
return
|
|
942
|
+
return a(I), m;
|
|
950
943
|
}
|
|
951
944
|
});
|
|
952
945
|
},
|
|
@@ -955,39 +948,39 @@ const xt = (e, t) => {
|
|
|
955
948
|
}
|
|
956
949
|
});
|
|
957
950
|
}, Ss = (e) => {
|
|
958
|
-
const t =
|
|
951
|
+
const t = P(), s = A(), {
|
|
959
952
|
setResourceIds: r,
|
|
960
953
|
setSelectedResources: o
|
|
961
954
|
} = R(), {
|
|
962
955
|
filters: l,
|
|
963
|
-
trashed:
|
|
964
|
-
} = s,
|
|
956
|
+
trashed: a
|
|
957
|
+
} = s, c = ["context", {
|
|
965
958
|
folderId: l.folder,
|
|
966
959
|
filters: l,
|
|
967
|
-
trashed:
|
|
960
|
+
trashed: a
|
|
968
961
|
}];
|
|
969
962
|
return Ne({
|
|
970
963
|
application: e,
|
|
971
964
|
options: {
|
|
972
|
-
onSuccess: async (
|
|
965
|
+
onSuccess: async (p, d) => {
|
|
973
966
|
if (await t.cancelQueries({
|
|
974
|
-
queryKey:
|
|
975
|
-
}), t.getQueryData(
|
|
976
|
-
return t.setQueryData(
|
|
967
|
+
queryKey: c
|
|
968
|
+
}), t.getQueryData(c))
|
|
969
|
+
return t.setQueryData(c, (h) => {
|
|
977
970
|
if (h)
|
|
978
971
|
return {
|
|
979
972
|
...h,
|
|
980
973
|
pages: h == null ? void 0 : h.pages.map((u) => ({
|
|
981
974
|
...u,
|
|
982
|
-
resources: u.resources.map((
|
|
983
|
-
if (
|
|
984
|
-
let
|
|
985
|
-
return (d == null ? void 0 : d.rights.length) >= 1 && (
|
|
986
|
-
...
|
|
987
|
-
rights:
|
|
975
|
+
resources: u.resources.map((g) => {
|
|
976
|
+
if (g.assetId === (d == null ? void 0 : d.resourceId)) {
|
|
977
|
+
let m = [`creator:${g.creatorId}`];
|
|
978
|
+
return (d == null ? void 0 : d.rights.length) >= 1 && (m = [...m, ...d.rights.flatMap((I) => I.actions.map((C) => `${I.type}:${I.id}:${C.id}`))]), {
|
|
979
|
+
...g,
|
|
980
|
+
rights: m
|
|
988
981
|
};
|
|
989
982
|
} else
|
|
990
|
-
return
|
|
983
|
+
return g;
|
|
991
984
|
})
|
|
992
985
|
}))
|
|
993
986
|
};
|
|
@@ -999,7 +992,7 @@ const xt = (e, t) => {
|
|
|
999
992
|
}
|
|
1000
993
|
});
|
|
1001
994
|
}, bs = (e) => {
|
|
1002
|
-
const t =
|
|
995
|
+
const t = P(), s = A(), {
|
|
1003
996
|
filters: r,
|
|
1004
997
|
trashed: o
|
|
1005
998
|
} = s, l = ["context", {
|
|
@@ -1010,7 +1003,7 @@ const xt = (e, t) => {
|
|
|
1010
1003
|
return Ae({
|
|
1011
1004
|
application: e,
|
|
1012
1005
|
options: {
|
|
1013
|
-
onSuccess: async (
|
|
1006
|
+
onSuccess: async (a, c) => {
|
|
1014
1007
|
if (await t.cancelQueries({
|
|
1015
1008
|
queryKey: l
|
|
1016
1009
|
}), t.getQueryData(l))
|
|
@@ -1021,24 +1014,24 @@ const xt = (e, t) => {
|
|
|
1021
1014
|
pages: d == null ? void 0 : d.pages.map((i) => ({
|
|
1022
1015
|
...i,
|
|
1023
1016
|
resources: i.resources.map((h) => {
|
|
1024
|
-
if (h.assetId === (
|
|
1017
|
+
if (h.assetId === (c == null ? void 0 : c.entId)) {
|
|
1025
1018
|
const {
|
|
1026
1019
|
name: u,
|
|
1027
|
-
thumbnail:
|
|
1028
|
-
public:
|
|
1020
|
+
thumbnail: g,
|
|
1021
|
+
public: m,
|
|
1029
1022
|
description: I,
|
|
1030
|
-
slug:
|
|
1023
|
+
slug: C,
|
|
1031
1024
|
...x
|
|
1032
|
-
} =
|
|
1025
|
+
} = c;
|
|
1033
1026
|
return {
|
|
1034
1027
|
...h,
|
|
1035
1028
|
...x,
|
|
1036
1029
|
// add any custom field
|
|
1037
1030
|
name: u,
|
|
1038
|
-
thumbnail: typeof
|
|
1039
|
-
public:
|
|
1031
|
+
thumbnail: typeof g == "string" ? g : URL.createObjectURL(g),
|
|
1032
|
+
public: m,
|
|
1040
1033
|
description: I,
|
|
1041
|
-
slug:
|
|
1034
|
+
slug: C
|
|
1042
1035
|
};
|
|
1043
1036
|
} else
|
|
1044
1037
|
return h;
|
|
@@ -1052,51 +1045,51 @@ const xt = (e, t) => {
|
|
|
1052
1045
|
}, Ts = ({
|
|
1053
1046
|
onResourceCreated: e
|
|
1054
1047
|
}) => {
|
|
1055
|
-
const t = U(), s =
|
|
1048
|
+
const t = U(), s = P(), r = A(), {
|
|
1056
1049
|
user: o
|
|
1057
1050
|
} = ue(), {
|
|
1058
1051
|
appCode: l
|
|
1059
|
-
} =
|
|
1052
|
+
} = Z(), a = ["context", {
|
|
1060
1053
|
folderId: r.filters.folder,
|
|
1061
1054
|
filters: r.filters,
|
|
1062
1055
|
trashed: r.trashed
|
|
1063
1056
|
}];
|
|
1064
|
-
return
|
|
1065
|
-
mutationFn: async (
|
|
1057
|
+
return O({
|
|
1058
|
+
mutationFn: async (c) => await at({
|
|
1066
1059
|
searchParams: r,
|
|
1067
|
-
params:
|
|
1060
|
+
params: c
|
|
1068
1061
|
}),
|
|
1069
|
-
onError(
|
|
1070
|
-
typeof
|
|
1062
|
+
onError(c) {
|
|
1063
|
+
typeof c == "string" && t.error(L(c));
|
|
1071
1064
|
},
|
|
1072
|
-
onSuccess: async (
|
|
1073
|
-
var h, u,
|
|
1065
|
+
onSuccess: async (c, p) => {
|
|
1066
|
+
var h, u, g;
|
|
1074
1067
|
await s.cancelQueries({
|
|
1075
|
-
queryKey:
|
|
1068
|
+
queryKey: a
|
|
1076
1069
|
});
|
|
1077
|
-
const d = s.getQueryData(
|
|
1078
|
-
...
|
|
1079
|
-
thumbnail:
|
|
1070
|
+
const d = s.getQueryData(a), i = {
|
|
1071
|
+
...p,
|
|
1072
|
+
thumbnail: c.thumbnail || "",
|
|
1080
1073
|
application: l,
|
|
1081
|
-
assetId:
|
|
1082
|
-
id:
|
|
1074
|
+
assetId: c._id || c.entId || "",
|
|
1075
|
+
id: c._id || c.entId || "",
|
|
1083
1076
|
creatorId: o == null ? void 0 : o.userId,
|
|
1084
1077
|
creatorName: o == null ? void 0 : o.username,
|
|
1085
1078
|
createdAt: Date.now(),
|
|
1086
|
-
slug:
|
|
1087
|
-
modifiedAt: ((h =
|
|
1088
|
-
modifierId: ((u =
|
|
1089
|
-
modifierName: ((
|
|
1079
|
+
slug: p.slug || "",
|
|
1080
|
+
modifiedAt: ((h = c.modified) == null ? void 0 : h.$date) || "",
|
|
1081
|
+
modifierId: ((u = c.author) == null ? void 0 : u.userId) || "",
|
|
1082
|
+
modifierName: ((g = c.author) == null ? void 0 : g.username) || "",
|
|
1090
1083
|
updatedAt: Date.now(),
|
|
1091
1084
|
trashed: !1,
|
|
1092
1085
|
rights: [`creator:${o == null ? void 0 : o.userId}`]
|
|
1093
1086
|
};
|
|
1094
1087
|
if (e == null || e(i), d)
|
|
1095
|
-
return s.setQueryData(
|
|
1096
|
-
if (
|
|
1088
|
+
return s.setQueryData(a, (m) => {
|
|
1089
|
+
if (m)
|
|
1097
1090
|
return {
|
|
1098
|
-
...
|
|
1099
|
-
pages:
|
|
1091
|
+
...m,
|
|
1092
|
+
pages: m == null ? void 0 : m.pages.map((I) => ({
|
|
1100
1093
|
...I,
|
|
1101
1094
|
resources: [i, ...I.resources]
|
|
1102
1095
|
}))
|
|
@@ -1108,36 +1101,36 @@ const xt = (e, t) => {
|
|
|
1108
1101
|
function le(e, t) {
|
|
1109
1102
|
var r;
|
|
1110
1103
|
const s = G(e, t);
|
|
1111
|
-
return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t ===
|
|
1104
|
+
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];
|
|
1112
1105
|
}
|
|
1113
1106
|
function Ft() {
|
|
1114
|
-
const e =
|
|
1107
|
+
const e = P(), t = Tt(), s = U(), {
|
|
1115
1108
|
appCode: r
|
|
1116
|
-
} =
|
|
1109
|
+
} = Z(), {
|
|
1117
1110
|
t: o
|
|
1118
|
-
} =
|
|
1111
|
+
} = V(["common", r]), l = o("explorer.filters.mine", {
|
|
1119
1112
|
ns: r
|
|
1120
1113
|
}), {
|
|
1121
|
-
setResourceOrFolderIsDraggable:
|
|
1122
|
-
setElementDragOver:
|
|
1123
|
-
setResourceIds:
|
|
1114
|
+
setResourceOrFolderIsDraggable: a,
|
|
1115
|
+
setElementDragOver: c,
|
|
1116
|
+
setResourceIds: p,
|
|
1124
1117
|
setFolderIds: d,
|
|
1125
1118
|
fetchTreeData: i
|
|
1126
|
-
} = R(), h = $(),
|
|
1119
|
+
} = R(), h = $(), g = oe(xe, {
|
|
1127
1120
|
activationConstraint: {
|
|
1128
1121
|
delay: wt,
|
|
1129
1122
|
tolerance: Dt
|
|
1130
1123
|
}
|
|
1131
|
-
}),
|
|
1124
|
+
}), m = oe(Se), I = be(g, m), C = (S, D) => {
|
|
1132
1125
|
var y;
|
|
1133
1126
|
((y = S.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ b(W, { children: [
|
|
1134
1127
|
o("explorer.dragged.resource"),
|
|
1135
1128
|
" ",
|
|
1136
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ n("strong", { children: D })
|
|
1137
1130
|
] })) : s.success(/* @__PURE__ */ b(W, { children: [
|
|
1138
1131
|
o("explorer.dragged.folder"),
|
|
1139
1132
|
" ",
|
|
1140
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ n("strong", { children: D })
|
|
1141
1134
|
] }));
|
|
1142
1135
|
};
|
|
1143
1136
|
return {
|
|
@@ -1145,18 +1138,18 @@ function Ft() {
|
|
|
1145
1138
|
const {
|
|
1146
1139
|
over: D,
|
|
1147
1140
|
active: y
|
|
1148
|
-
} = S,
|
|
1149
|
-
if ((
|
|
1150
|
-
|
|
1141
|
+
} = S, f = D == null ? void 0 : D.data.current, w = y.data.current, v = ae(h, f == null ? void 0 : f.id), _ = le(h, f == null ? void 0 : f.id);
|
|
1142
|
+
if ((w == null ? void 0 : w.id) == (f == null ? void 0 : f.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id))
|
|
1143
|
+
p([]), d([]);
|
|
1151
1144
|
else {
|
|
1152
|
-
const j = (
|
|
1145
|
+
const j = (f == null ? void 0 : f.name) ?? l;
|
|
1153
1146
|
if (D)
|
|
1154
1147
|
try {
|
|
1155
|
-
await t.mutate(
|
|
1148
|
+
await t.mutate(f == null ? void 0 : f.id), C(y, j);
|
|
1156
1149
|
} catch (Ie) {
|
|
1157
1150
|
console.error(Ie);
|
|
1158
1151
|
} finally {
|
|
1159
|
-
|
|
1152
|
+
c({
|
|
1160
1153
|
isOver: !1,
|
|
1161
1154
|
overId: void 0,
|
|
1162
1155
|
canMove: !0,
|
|
@@ -1164,7 +1157,7 @@ function Ft() {
|
|
|
1164
1157
|
});
|
|
1165
1158
|
}
|
|
1166
1159
|
}
|
|
1167
|
-
|
|
1160
|
+
a({
|
|
1168
1161
|
isDrag: !1,
|
|
1169
1162
|
elementDrag: void 0
|
|
1170
1163
|
});
|
|
@@ -1173,7 +1166,7 @@ function Ft() {
|
|
|
1173
1166
|
const {
|
|
1174
1167
|
active: D
|
|
1175
1168
|
} = S, y = D.data.current;
|
|
1176
|
-
(y == null ? void 0 : y.type) === "resource" ?
|
|
1169
|
+
(y == null ? void 0 : y.type) === "resource" ? p([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && d([y == null ? void 0 : y.id]), a({
|
|
1177
1170
|
isDrag: !0,
|
|
1178
1171
|
elementDrag: y == null ? void 0 : y.id
|
|
1179
1172
|
});
|
|
@@ -1182,23 +1175,23 @@ function Ft() {
|
|
|
1182
1175
|
const {
|
|
1183
1176
|
over: D,
|
|
1184
1177
|
active: y
|
|
1185
|
-
} = S,
|
|
1178
|
+
} = S, f = D == null ? void 0 : D.data.current, w = y == null ? void 0 : y.data.current, v = ae(h, f == null ? void 0 : f.id), _ = le(h, f == null ? void 0 : f.id);
|
|
1186
1179
|
if (D) {
|
|
1187
1180
|
const j = {
|
|
1188
1181
|
isOver: !0,
|
|
1189
1182
|
canMove: !1,
|
|
1190
|
-
overId:
|
|
1191
|
-
isTreeview:
|
|
1183
|
+
overId: f == null ? void 0 : f.id,
|
|
1184
|
+
isTreeview: f == null ? void 0 : f.isTreeview
|
|
1192
1185
|
};
|
|
1193
|
-
(
|
|
1186
|
+
(w == null ? void 0 : w.id) === (f == null ? void 0 : f.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id) ? c({
|
|
1194
1187
|
...j,
|
|
1195
1188
|
canMove: !1
|
|
1196
|
-
}) : (i(
|
|
1189
|
+
}) : (i(f == null ? void 0 : f.id, e), c({
|
|
1197
1190
|
...j,
|
|
1198
1191
|
canMove: !0
|
|
1199
1192
|
}));
|
|
1200
1193
|
} else
|
|
1201
|
-
|
|
1194
|
+
c({
|
|
1202
1195
|
isOver: !1,
|
|
1203
1196
|
overId: void 0,
|
|
1204
1197
|
canMove: !0,
|
|
@@ -1208,90 +1201,90 @@ function Ft() {
|
|
|
1208
1201
|
sensors: I
|
|
1209
1202
|
};
|
|
1210
1203
|
}
|
|
1211
|
-
const Rt = /* @__PURE__ */
|
|
1212
|
-
const e = mt(), t = re(), s = se(), r =
|
|
1213
|
-
appCode:
|
|
1214
|
-
} =
|
|
1215
|
-
t:
|
|
1216
|
-
} =
|
|
1204
|
+
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 = () => {
|
|
1205
|
+
const e = mt(), t = re(), s = se(), r = A(), o = z(), l = U(), a = P(), {
|
|
1206
|
+
appCode: c
|
|
1207
|
+
} = Z(), {
|
|
1208
|
+
t: p
|
|
1209
|
+
} = V([c]), {
|
|
1217
1210
|
setSearchParams: d,
|
|
1218
1211
|
setSearchConfig: i,
|
|
1219
1212
|
fetchTreeData: h
|
|
1220
1213
|
} = R(), {
|
|
1221
1214
|
data: u,
|
|
1222
|
-
isError:
|
|
1223
|
-
error:
|
|
1215
|
+
isError: g,
|
|
1216
|
+
error: m,
|
|
1224
1217
|
isLoading: I,
|
|
1225
|
-
isFetching:
|
|
1218
|
+
isFetching: C,
|
|
1226
1219
|
fetchNextPage: x
|
|
1227
|
-
} = bt(), F = (u == null ? void 0 : u.pages[0].folders.length) === 0,
|
|
1228
|
-
return
|
|
1220
|
+
} = bt(), F = (u == null ? void 0 : u.pages[0].folders.length) === 0, k = (u == null ? void 0 : u.pages[0].resources.length) === 0, S = F && k;
|
|
1221
|
+
return B(() => {
|
|
1229
1222
|
var D, y;
|
|
1230
|
-
u && ((D = u == null ? void 0 : u.pages[0]) != null && D.searchConfig && i(u.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id,
|
|
1223
|
+
u && ((D = u == null ? void 0 : u.pages[0]) != null && D.searchConfig && i(u.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, a), d({
|
|
1231
1224
|
...r,
|
|
1232
1225
|
pagination: (y = u == null ? void 0 : u.pages[(u == null ? void 0 : u.pages.length) - 1]) == null ? void 0 : y.pagination
|
|
1233
1226
|
}));
|
|
1234
|
-
}, [u]),
|
|
1235
|
-
|
|
1236
|
-
}, [
|
|
1237
|
-
/* @__PURE__ */
|
|
1238
|
-
/* @__PURE__ */
|
|
1227
|
+
}, [u]), B(() => {
|
|
1228
|
+
m && typeof m == "string" && l.error(p(m));
|
|
1229
|
+
}, [m]), I ? /* @__PURE__ */ n(H, {}) : g ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Et, {}) }) : r.search && S ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(vt, {}) }) : e && S ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Rt, {}) }) : s && S && !t ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Lt, {}) }) : t && (u == null ? void 0 : u.pages[0].resources.length) === 0 ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Nt, {}) }) : /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ n(H, {}), children: [
|
|
1230
|
+
/* @__PURE__ */ n(At, { data: u, isFetching: C }),
|
|
1231
|
+
/* @__PURE__ */ n(Mt, { data: u, isFetching: C, fetchNextPage: x })
|
|
1239
1232
|
] });
|
|
1240
1233
|
}, Pt = ({
|
|
1241
1234
|
title: e,
|
|
1242
1235
|
titleId: t,
|
|
1243
1236
|
...s
|
|
1244
1237
|
}) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
|
|
1245
|
-
e ? /* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1247
|
-
/* @__PURE__ */
|
|
1238
|
+
e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
|
|
1239
|
+
/* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1", clipRule: "evenodd" }),
|
|
1240
|
+
/* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0", clipRule: "evenodd" })
|
|
1248
1241
|
] }), Ht = ({
|
|
1249
1242
|
title: e,
|
|
1250
1243
|
titleId: t,
|
|
1251
1244
|
...s
|
|
1252
1245
|
}) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
|
|
1253
|
-
e ? /* @__PURE__ */
|
|
1254
|
-
/* @__PURE__ */
|
|
1246
|
+
e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
|
|
1247
|
+
/* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0", clipRule: "evenodd" })
|
|
1255
1248
|
] }), Qt = ({
|
|
1256
1249
|
title: e,
|
|
1257
1250
|
titleId: t,
|
|
1258
1251
|
...s
|
|
1259
1252
|
}) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
|
|
1260
|
-
e ? /* @__PURE__ */
|
|
1261
|
-
/* @__PURE__ */
|
|
1253
|
+
e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
|
|
1254
|
+
/* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z", clipRule: "evenodd" })
|
|
1262
1255
|
] }), Ut = ({
|
|
1263
1256
|
title: e,
|
|
1264
1257
|
titleId: t,
|
|
1265
1258
|
...s
|
|
1266
1259
|
}) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
|
|
1267
|
-
e ? /* @__PURE__ */
|
|
1268
|
-
/* @__PURE__ */
|
|
1260
|
+
e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
|
|
1261
|
+
/* @__PURE__ */ n("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" })
|
|
1269
1262
|
] }), Ce = () => {
|
|
1270
|
-
const e =
|
|
1271
|
-
setSearchParams:
|
|
1272
|
-
} = R(),
|
|
1263
|
+
const e = A(), [t, s] = ie(""), r = ht(), o = yt(), l = we(null), {
|
|
1264
|
+
setSearchParams: a
|
|
1265
|
+
} = R(), c = (i) => {
|
|
1273
1266
|
const h = i.target.value;
|
|
1274
1267
|
s(h.toString());
|
|
1275
|
-
},
|
|
1276
|
-
(i.key === "Enter" || i.key === "Return") && (i.preventDefault(),
|
|
1268
|
+
}, p = (i) => {
|
|
1269
|
+
(i.key === "Enter" || i.key === "Return") && (i.preventDefault(), a({
|
|
1277
1270
|
search: t || void 0
|
|
1278
1271
|
}));
|
|
1279
1272
|
}, d = (i) => {
|
|
1280
|
-
i == null || i.preventDefault(),
|
|
1273
|
+
i == null || i.preventDefault(), a({
|
|
1281
1274
|
search: t || void 0
|
|
1282
1275
|
});
|
|
1283
1276
|
};
|
|
1284
|
-
return
|
|
1277
|
+
return B(() => {
|
|
1285
1278
|
const h = t.length == 0 || t.length >= r.minLength ? {
|
|
1286
1279
|
search: t || void 0
|
|
1287
1280
|
} : {};
|
|
1288
|
-
|
|
1281
|
+
a({
|
|
1289
1282
|
...e,
|
|
1290
1283
|
...h
|
|
1291
1284
|
});
|
|
1292
|
-
}, [t, r.minLength]),
|
|
1285
|
+
}, [t, r.minLength]), B(() => {
|
|
1293
1286
|
o === "select" && s("");
|
|
1294
|
-
}, [o]),
|
|
1287
|
+
}, [o]), B(() => {
|
|
1295
1288
|
s(() => {
|
|
1296
1289
|
var i;
|
|
1297
1290
|
return ((i = e.search) == null ? void 0 : i.toString()) ?? "";
|
|
@@ -1299,37 +1292,37 @@ const Rt = /* @__PURE__ */ A(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1299
1292
|
}, [e]), {
|
|
1300
1293
|
formRef: l,
|
|
1301
1294
|
inputSearch: t,
|
|
1302
|
-
handleInputSearchChange:
|
|
1303
|
-
handleKeyPress:
|
|
1295
|
+
handleInputSearchChange: c,
|
|
1296
|
+
handleKeyPress: p,
|
|
1304
1297
|
handleSearchSubmit: d
|
|
1305
1298
|
};
|
|
1306
1299
|
}, Zt = () => {
|
|
1307
1300
|
const {
|
|
1308
1301
|
appCode: e,
|
|
1309
1302
|
currentApp: t
|
|
1310
|
-
} =
|
|
1303
|
+
} = Z(), {
|
|
1311
1304
|
t: s
|
|
1312
|
-
} =
|
|
1305
|
+
} = V(), [r, o] = ie(""), l = (i) => {
|
|
1313
1306
|
if (i === "0") {
|
|
1314
1307
|
o("");
|
|
1315
1308
|
return;
|
|
1316
1309
|
}
|
|
1317
1310
|
o(i);
|
|
1318
|
-
},
|
|
1319
|
-
setSearchParams:
|
|
1311
|
+
}, a = z(), c = A(), {
|
|
1312
|
+
setSearchParams: p
|
|
1320
1313
|
} = R();
|
|
1321
|
-
|
|
1314
|
+
B(() => {
|
|
1322
1315
|
const i = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, u = () => r.includes("7") ? !0 : void 0;
|
|
1323
|
-
|
|
1324
|
-
...
|
|
1316
|
+
p({
|
|
1317
|
+
...c,
|
|
1325
1318
|
filters: {
|
|
1326
1319
|
owner: i(),
|
|
1327
1320
|
public: u(),
|
|
1328
1321
|
shared: h(),
|
|
1329
|
-
folder:
|
|
1322
|
+
folder: a ? a.id : "default"
|
|
1330
1323
|
}
|
|
1331
1324
|
});
|
|
1332
|
-
}, [
|
|
1325
|
+
}, [a, p, r]);
|
|
1333
1326
|
const d = [{
|
|
1334
1327
|
label: s("explorer.filter.all", {
|
|
1335
1328
|
ns: e
|
|
@@ -1371,34 +1364,34 @@ const Rt = /* @__PURE__ */ A(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1371
1364
|
}, Ot = () => {
|
|
1372
1365
|
const {
|
|
1373
1366
|
appCode: e
|
|
1374
|
-
} =
|
|
1367
|
+
} = Z(), {
|
|
1375
1368
|
t
|
|
1376
|
-
} =
|
|
1369
|
+
} = V(), {
|
|
1377
1370
|
selectedFilters: s,
|
|
1378
1371
|
options: r,
|
|
1379
1372
|
handleOnSelectFilter: o
|
|
1380
1373
|
} = Zt(), {
|
|
1381
1374
|
formRef: l,
|
|
1382
|
-
inputSearch:
|
|
1383
|
-
handleInputSearchChange:
|
|
1384
|
-
handleKeyPress:
|
|
1375
|
+
inputSearch: a,
|
|
1376
|
+
handleInputSearchChange: c,
|
|
1377
|
+
handleKeyPress: p,
|
|
1385
1378
|
handleSearchSubmit: d
|
|
1386
1379
|
} = Ce(), i = s.length > 0 ? s.length : void 0;
|
|
1387
1380
|
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: l, children: [
|
|
1388
1381
|
/* @__PURE__ */ b(He, { id: "search", className: "input-group", children: [
|
|
1389
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ n(Qe, { type: "search", placeholder: t("explorer.label.search", {
|
|
1390
1383
|
ns: e
|
|
1391
|
-
}), size: "lg", noValidationIcon: !0, value:
|
|
1392
|
-
/* @__PURE__ */
|
|
1384
|
+
}), size: "lg", noValidationIcon: !0, value: a, onChange: c, onKeyDown: p }),
|
|
1385
|
+
/* @__PURE__ */ n(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
|
|
1393
1386
|
ns: e
|
|
1394
1387
|
}), onClick: d })
|
|
1395
1388
|
] }),
|
|
1396
1389
|
/* @__PURE__ */ b(K, { placement: "bottom-end", children: [
|
|
1397
|
-
/* @__PURE__ */
|
|
1398
|
-
/* @__PURE__ */
|
|
1399
|
-
/* @__PURE__ */
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
] }, "0") : /* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ n(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ n(Qt, { width: 20 }), variant: "ghost", badgeContent: i }),
|
|
1391
|
+
/* @__PURE__ */ n(K.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ b(De, { children: [
|
|
1392
|
+
/* @__PURE__ */ n(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
|
|
1393
|
+
/* @__PURE__ */ n(K.Separator, {})
|
|
1394
|
+
] }, "0") : /* @__PURE__ */ n(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
|
|
1402
1395
|
] })
|
|
1403
1396
|
] });
|
|
1404
1397
|
}, qt = ({
|
|
@@ -1408,73 +1401,73 @@ const Rt = /* @__PURE__ */ A(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1408
1401
|
}) => {
|
|
1409
1402
|
const {
|
|
1410
1403
|
t: r
|
|
1411
|
-
} =
|
|
1412
|
-
return /* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1404
|
+
} = V();
|
|
1405
|
+
return /* @__PURE__ */ n("div", { className: "treeview", children: /* @__PURE__ */ n("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ n("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: "action-container", children: /* @__PURE__ */ n("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
|
|
1406
|
+
/* @__PURE__ */ n(Ht, { width: "20", height: "20" }),
|
|
1407
|
+
/* @__PURE__ */ n("span", { children: r("explorer.tree.trash") })
|
|
1415
1408
|
] }) }) }) }) }) }) });
|
|
1416
|
-
}, Bt = /* @__PURE__ */
|
|
1417
|
-
const [e, t] = Ze(), s =
|
|
1409
|
+
}, Bt = /* @__PURE__ */ M(async () => await import("./FolderModal.js")), Vt = () => {
|
|
1410
|
+
const [e, t] = Ze(), s = P(), r = $(), o = re(), l = se(), a = ft(), c = Oe(), p = o ? E.BIN : l, {
|
|
1418
1411
|
appCode: d
|
|
1419
|
-
} =
|
|
1412
|
+
} = Z(), {
|
|
1420
1413
|
t: i
|
|
1421
|
-
} =
|
|
1414
|
+
} = V(["common", d]), h = {
|
|
1422
1415
|
...r,
|
|
1423
1416
|
name: i("explorer.filters.mine", {
|
|
1424
1417
|
ns: d
|
|
1425
1418
|
})
|
|
1426
1419
|
}, {
|
|
1427
1420
|
goToTrash: u,
|
|
1428
|
-
selectTreeItem:
|
|
1429
|
-
clearSelectedItems:
|
|
1421
|
+
selectTreeItem: g,
|
|
1422
|
+
clearSelectedItems: m,
|
|
1430
1423
|
clearSelectedIds: I,
|
|
1431
|
-
fetchTreeData:
|
|
1424
|
+
fetchTreeData: C
|
|
1432
1425
|
} = R(), x = (S) => {
|
|
1433
|
-
|
|
1426
|
+
g(S, s), c();
|
|
1434
1427
|
}, F = (S) => {
|
|
1435
|
-
var
|
|
1436
|
-
const D = G(r, S), y = (
|
|
1437
|
-
var
|
|
1438
|
-
return Array.isArray(
|
|
1428
|
+
var f, w;
|
|
1429
|
+
const D = G(r, S), y = (f = D == null ? void 0 : D.children) == null ? void 0 : f.some((v) => {
|
|
1430
|
+
var _;
|
|
1431
|
+
return Array.isArray(v == null ? void 0 : v.children) && ((_ = v.children) == null ? void 0 : _.length) > 0;
|
|
1439
1432
|
});
|
|
1440
|
-
(
|
|
1441
|
-
y ||
|
|
1433
|
+
(w = D == null ? void 0 : D.children) == null || w.forEach((v) => {
|
|
1434
|
+
y || C(v.id, s);
|
|
1442
1435
|
});
|
|
1443
|
-
},
|
|
1444
|
-
|
|
1436
|
+
}, k = () => {
|
|
1437
|
+
m(), I(), t();
|
|
1445
1438
|
};
|
|
1446
1439
|
return /* @__PURE__ */ b(W, { children: [
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1440
|
+
/* @__PURE__ */ n(qe, { data: h, selectedNodeId: p, draggedNode: a != null && a.isTreeview ? a : void 0, onTreeItemClick: x, onTreeItemUnfold: F }),
|
|
1441
|
+
/* @__PURE__ */ n(qt, { id: E.BIN, selected: o, onSelect: u }),
|
|
1442
|
+
/* @__PURE__ */ n("div", { className: "d-grid my-16", children: /* @__PURE__ */ n(Be, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ n(Ut, {}), onClick: k, children: i("explorer.folder.new") }) }),
|
|
1443
|
+
/* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: e && /* @__PURE__ */ n(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
|
|
1451
1444
|
] });
|
|
1452
1445
|
};
|
|
1453
1446
|
function _t() {
|
|
1454
1447
|
const {
|
|
1455
1448
|
appCode: e
|
|
1456
|
-
} =
|
|
1449
|
+
} = Z(), {
|
|
1457
1450
|
gotoPreviousFolder: t
|
|
1458
1451
|
} = R(), {
|
|
1459
1452
|
t: s
|
|
1460
|
-
} =
|
|
1453
|
+
} = V(["common", e]), {
|
|
1461
1454
|
inputSearch: r
|
|
1462
|
-
} = Ce(), o = se(), l = re(),
|
|
1455
|
+
} = Ce(), o = se(), l = re(), a = z(), c = s("explorer.tree.trash"), p = s("explorer.tree.search"), d = s("explorer.filters.mine", {
|
|
1463
1456
|
ns: e
|
|
1464
|
-
}), i = (
|
|
1465
|
-
return /* @__PURE__ */
|
|
1466
|
-
/* @__PURE__ */
|
|
1467
|
-
/* @__PURE__ */
|
|
1468
|
-
] }) : /* @__PURE__ */
|
|
1457
|
+
}), i = (a == null ? void 0 : a.name) || d;
|
|
1458
|
+
return /* @__PURE__ */ n("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !l ? /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8", children: [
|
|
1459
|
+
/* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(Pt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
|
|
1460
|
+
/* @__PURE__ */ n("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ n("strong", { children: i }) })
|
|
1461
|
+
] }) : /* @__PURE__ */ n("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : l ? c : d }) });
|
|
1469
1462
|
}
|
|
1470
|
-
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__ */ A(async () => await import("./AppAction.js")), Wt = /* @__PURE__ */ A(async () => await import("./Library.js")), Gt = /* @__PURE__ */ A(async () => await import("./ActionBarContainer.js")), Jt = /* @__PURE__ */ A(async () => await import("./DisableModal.js")), Xt = /* @__PURE__ */ A(async () => await import("./TrashModal.js")), Yt = /* @__PURE__ */ A(async () => await import("./OnboardingModal.js")), Fs = ({
|
|
1463
|
+
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 = ({
|
|
1471
1464
|
config: e
|
|
1472
1465
|
}) => {
|
|
1473
|
-
const t =
|
|
1466
|
+
const t = A(), {
|
|
1474
1467
|
setConfig: s,
|
|
1475
1468
|
setSearchParams: r
|
|
1476
1469
|
} = R();
|
|
1477
|
-
|
|
1470
|
+
B(() => {
|
|
1478
1471
|
s(e || {}), r({
|
|
1479
1472
|
...t,
|
|
1480
1473
|
application: e.app,
|
|
@@ -1483,37 +1476,37 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1483
1476
|
}, [e]);
|
|
1484
1477
|
const {
|
|
1485
1478
|
currentApp: o
|
|
1486
|
-
} =
|
|
1479
|
+
} = Z(), {
|
|
1487
1480
|
data: l
|
|
1488
1481
|
} = St(e.actions), {
|
|
1489
|
-
isTrashedModalOpen:
|
|
1490
|
-
onTrashedCancel:
|
|
1482
|
+
isTrashedModalOpen: a,
|
|
1483
|
+
onTrashedCancel: c
|
|
1491
1484
|
} = It(), {
|
|
1492
|
-
isActionDisableModalOpen:
|
|
1485
|
+
isActionDisableModalOpen: p,
|
|
1493
1486
|
onActionDisableCancel: d
|
|
1494
1487
|
} = Ct(), {
|
|
1495
1488
|
handleDragEnd: i,
|
|
1496
1489
|
handleDragOver: h,
|
|
1497
1490
|
handleDragStart: u,
|
|
1498
|
-
sensors:
|
|
1491
|
+
sensors: g
|
|
1499
1492
|
} = Ft();
|
|
1500
1493
|
_e();
|
|
1501
|
-
const
|
|
1494
|
+
const m = ne("publish", l), I = ne("create", l);
|
|
1502
1495
|
return e && /* @__PURE__ */ b(W, { children: [
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
/* @__PURE__ */
|
|
1507
|
-
|
|
1496
|
+
/* @__PURE__ */ n(Ke, { render: () => I ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(jt, { onResourceCreated: e.onResourceCreated }) }) : null, children: /* @__PURE__ */ n($e, { app: o }) }),
|
|
1497
|
+
/* @__PURE__ */ n(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors: g, modifiers: [Fe], onDragStart: u, onDragEnd: i, onDragOver: h, children: [
|
|
1498
|
+
/* @__PURE__ */ n(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__ */ n(H, {}), children: [
|
|
1499
|
+
/* @__PURE__ */ n(Vt, {}),
|
|
1500
|
+
m && /* @__PURE__ */ n(Wt, {})
|
|
1508
1501
|
] }) }),
|
|
1509
1502
|
/* @__PURE__ */ b(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1510
|
-
/* @__PURE__ */
|
|
1511
|
-
/* @__PURE__ */
|
|
1512
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ n(Ot, {}),
|
|
1504
|
+
/* @__PURE__ */ n(_t, {}),
|
|
1505
|
+
/* @__PURE__ */ n(kt, {})
|
|
1513
1506
|
] }),
|
|
1514
|
-
/* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */
|
|
1515
|
-
/* @__PURE__ */
|
|
1516
|
-
e.enableOnboarding && /* @__PURE__ */
|
|
1507
|
+
/* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ n(H, {}), children: [
|
|
1508
|
+
/* @__PURE__ */ n(Gt, {}),
|
|
1509
|
+
e.enableOnboarding && /* @__PURE__ */ n(Yt, { id: "showOnboardingTrash", items: [{
|
|
1517
1510
|
src: $t,
|
|
1518
1511
|
alt: "explorer.modal.onboarding.trash.screen1.alt",
|
|
1519
1512
|
text: "explorer.modal.onboarding.trash.screen1.title"
|
|
@@ -1531,8 +1524,8 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1531
1524
|
nextText: "explorer.modal.onboarding.trash.next",
|
|
1532
1525
|
closeText: "explorer.modal.onboarding.trash.close"
|
|
1533
1526
|
} }),
|
|
1534
|
-
|
|
1535
|
-
|
|
1527
|
+
a && /* @__PURE__ */ n(Xt, { isOpen: a, onCancel: c }),
|
|
1528
|
+
p && /* @__PURE__ */ n(Jt, { isOpen: p, onCancel: d })
|
|
1536
1529
|
] })
|
|
1537
1530
|
] }) })
|
|
1538
1531
|
] });
|
|
@@ -1546,21 +1539,21 @@ export {
|
|
|
1546
1539
|
St as b,
|
|
1547
1540
|
z as c,
|
|
1548
1541
|
Ts as d,
|
|
1549
|
-
|
|
1542
|
+
A as e,
|
|
1550
1543
|
re as f,
|
|
1551
1544
|
ds as g,
|
|
1552
1545
|
X as h,
|
|
1553
|
-
|
|
1554
|
-
|
|
1546
|
+
fs as i,
|
|
1547
|
+
ps as j,
|
|
1555
1548
|
J as k,
|
|
1556
1549
|
Cs as l,
|
|
1557
|
-
|
|
1550
|
+
pt as m,
|
|
1558
1551
|
ws as n,
|
|
1559
1552
|
gs as o,
|
|
1560
1553
|
us as p,
|
|
1561
1554
|
Ss as q,
|
|
1562
1555
|
bs as r,
|
|
1563
|
-
|
|
1556
|
+
ft as s,
|
|
1564
1557
|
Ds as t,
|
|
1565
1558
|
T as u,
|
|
1566
1559
|
xs as v,
|