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