ode-explorer 2.2.12-develop.202508200034 → 2.2.12-develop.202510091718
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-actualites.svg +140 -0
- package/dist/index.js +258 -200
- package/dist/style.css +1 -1
- package/lib/AppAction.js +28 -24
- package/lib/EmptyScreenApp.js +31 -19
- package/lib/Library.js +32 -31
- package/lib/components/AppAction/AppAction.d.ts +4 -1
- package/lib/config/explorer.d.ts +3 -1
- package/lib/illu-actualites.js +4 -0
- package/lib/index2.js +343 -339
- package/lib/services/queries/index.d.ts +3 -1
- package/package.json +37 -37
- package/dist/image-library.svg +0 -35
- package/lib/dynamic-import-helper.js +0 -16
- package/lib/image-library.js +0 -4
- package/lib/image-library2.js +0 -4
package/lib/index2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as b, Fragment as W, jsx as
|
|
2
|
-
import { useEffect as B, Suspense as Q, lazy as M, useState 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
5
|
import { odeServices as N, FOLDER as E, SORT_ORDER as Re, ResourceService as de, isActionAvailable as ne } from "@edifice.io/client";
|
|
@@ -89,13 +89,13 @@ const he = async (e) => {
|
|
|
89
89
|
folderIds: r,
|
|
90
90
|
useAssetIds: o
|
|
91
91
|
}) => {
|
|
92
|
-
const
|
|
92
|
+
const l = {
|
|
93
93
|
application: e.application,
|
|
94
94
|
folderId: s,
|
|
95
95
|
resourceIds: t,
|
|
96
96
|
folderIds: r
|
|
97
97
|
};
|
|
98
|
-
return await N.resource(e.application).moveToFolder(
|
|
98
|
+
return await N.resource(e.application).moveToFolder(l, o);
|
|
99
99
|
}, ot = async (e) => await N.rights().sessionHasWorkflowRights(e), nt = ({
|
|
100
100
|
searchParams: e,
|
|
101
101
|
assetId: t
|
|
@@ -134,7 +134,7 @@ const he = async (e) => {
|
|
|
134
134
|
name: L("explorer.filters.mine"),
|
|
135
135
|
section: !0,
|
|
136
136
|
children: []
|
|
137
|
-
},
|
|
137
|
+
}, lt = {
|
|
138
138
|
config: void 0,
|
|
139
139
|
searchConfig: {
|
|
140
140
|
minLength: 1
|
|
@@ -180,8 +180,8 @@ const he = async (e) => {
|
|
|
180
180
|
},
|
|
181
181
|
resourceActionDisable: !1,
|
|
182
182
|
status: void 0
|
|
183
|
-
},
|
|
184
|
-
...
|
|
183
|
+
}, it = ze()((e, t) => ({
|
|
184
|
+
...lt,
|
|
185
185
|
actions: {
|
|
186
186
|
setConfig: (s) => e({
|
|
187
187
|
config: s
|
|
@@ -293,10 +293,10 @@ 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
|
|
296
|
+
const l = r.find((a) => a.id === o[0]);
|
|
297
297
|
ct({
|
|
298
298
|
searchParams: s,
|
|
299
|
-
assetId:
|
|
299
|
+
assetId: l.assetId
|
|
300
300
|
});
|
|
301
301
|
} catch (s) {
|
|
302
302
|
console.error("explorer print failed: ", s);
|
|
@@ -308,22 +308,22 @@ const he = async (e) => {
|
|
|
308
308
|
queryClient: o
|
|
309
309
|
}) => {
|
|
310
310
|
const {
|
|
311
|
-
searchParams:
|
|
312
|
-
} = t(),
|
|
313
|
-
|
|
311
|
+
searchParams: l
|
|
312
|
+
} = t(), a = l.filters.folder, c = s;
|
|
313
|
+
a !== s && (t().actions.fetchTreeData(s, o), e((p) => ({
|
|
314
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
|
},
|
|
322
322
|
searchParams: {
|
|
323
|
-
...
|
|
323
|
+
...l,
|
|
324
324
|
search: void 0,
|
|
325
325
|
filters: {
|
|
326
|
-
...
|
|
326
|
+
...l.filters,
|
|
327
327
|
folder: s
|
|
328
328
|
},
|
|
329
329
|
trashed: s === E.BIN
|
|
@@ -335,31 +335,31 @@ const he = async (e) => {
|
|
|
335
335
|
status: "fold"
|
|
336
336
|
})),
|
|
337
337
|
fetchTreeData: async (s, r) => {
|
|
338
|
-
const o = G(t().treeData, s),
|
|
338
|
+
const o = G(t().treeData, s), l = o == null ? void 0 : o.id;
|
|
339
339
|
if (Array.isArray(o == null ? void 0 : o.children) && o.children.length) return;
|
|
340
|
-
const
|
|
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
351
|
})
|
|
352
352
|
});
|
|
353
|
-
t().actions.setTreeData(Ee(t().treeData,
|
|
353
|
+
t().actions.setTreeData(Ee(t().treeData, a == null ? void 0 : a.folders, l || E.DEFAULT));
|
|
354
354
|
},
|
|
355
355
|
selectTreeItem: (s, r) => {
|
|
356
356
|
const {
|
|
357
357
|
treeData: o
|
|
358
358
|
} = t(), {
|
|
359
|
-
openFolder:
|
|
360
|
-
fetchTreeData:
|
|
361
|
-
} = t().actions,
|
|
362
|
-
|
|
359
|
+
openFolder: l,
|
|
360
|
+
fetchTreeData: a
|
|
361
|
+
} = t().actions, c = G(o, s);
|
|
362
|
+
a(s, r), e((p) => ({
|
|
363
363
|
...p,
|
|
364
364
|
searchParams: {
|
|
365
365
|
...p.searchParams,
|
|
@@ -367,8 +367,8 @@ const he = async (e) => {
|
|
|
367
367
|
},
|
|
368
368
|
status: "select",
|
|
369
369
|
selectedResources: []
|
|
370
|
-
})),
|
|
371
|
-
folder:
|
|
370
|
+
})), l({
|
|
371
|
+
folder: c,
|
|
372
372
|
folderId: s
|
|
373
373
|
});
|
|
374
374
|
},
|
|
@@ -378,16 +378,16 @@ const he = async (e) => {
|
|
|
378
378
|
treeData: r,
|
|
379
379
|
searchParams: o
|
|
380
380
|
} = t(), {
|
|
381
|
-
openFolder:
|
|
381
|
+
openFolder: l
|
|
382
382
|
} = t().actions;
|
|
383
|
-
if (o.search &&
|
|
383
|
+
if (o.search && l({
|
|
384
384
|
folder: fe,
|
|
385
385
|
folderId: E.DEFAULT
|
|
386
386
|
}), !s) return;
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
folder:
|
|
390
|
-
folderId: (
|
|
387
|
+
const a = ve(r, s);
|
|
388
|
+
l({
|
|
389
|
+
folder: a,
|
|
390
|
+
folderId: (a == null ? void 0 : a.id) || E.DEFAULT
|
|
391
391
|
});
|
|
392
392
|
},
|
|
393
393
|
goToTrash: () => {
|
|
@@ -414,7 +414,7 @@ const he = async (e) => {
|
|
|
414
414
|
}
|
|
415
415
|
}));
|
|
416
416
|
function T(e) {
|
|
417
|
-
return je(
|
|
417
|
+
return je(it, e);
|
|
418
418
|
}
|
|
419
419
|
const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () => T(ut), A = () => T((e) => e.searchParams), se = () => T((e) => e.selectedNodeId), ps = () => T((e) => e.selectedFolders), fs = () => T((e) => e.selectedResources), ht = () => T((e) => e.searchConfig), J = () => T((e) => e.folderIds), X = () => T((e) => e.resourceIds), Y = () => T((e) => e.selectedResources.map((t) => t.assetId)), ee = () => T((e) => e.selectedResources.filter((t) => t.assetId === t.id)), z = () => T((e) => e.currentFolder), re = () => {
|
|
420
420
|
const e = z();
|
|
@@ -461,7 +461,8 @@ class ye extends de {
|
|
|
461
461
|
folder: t.folder,
|
|
462
462
|
slug: t.public ? t.slug : "",
|
|
463
463
|
"publish-type": t.publishType || "RESTRAINT",
|
|
464
|
-
"comment-type": "IMMEDIATE"
|
|
464
|
+
"comment-type": "IMMEDIATE",
|
|
465
|
+
allowReplies: t.allowReplies
|
|
465
466
|
});
|
|
466
467
|
return this.checkHttpResponse(o), o;
|
|
467
468
|
}
|
|
@@ -475,7 +476,8 @@ class ye extends de {
|
|
|
475
476
|
visibility: t.public ? "PUBLIC" : "OWNER",
|
|
476
477
|
slug: t.public ? t.slug : "",
|
|
477
478
|
"publish-type": t["publish-type"] || "RESTRAINT",
|
|
478
|
-
"comment-type": "IMMEDIATE"
|
|
479
|
+
"comment-type": "IMMEDIATE",
|
|
480
|
+
allowReplies: t.allowReplies
|
|
479
481
|
});
|
|
480
482
|
return this.checkHttpResponse(r), {
|
|
481
483
|
thumbnail: s,
|
|
@@ -528,8 +530,8 @@ const xt = (e, t) => {
|
|
|
528
530
|
return Ge({
|
|
529
531
|
queryKey: [...r],
|
|
530
532
|
queryFn: () => ot([...r]),
|
|
531
|
-
select: (o) => e.filter((
|
|
532
|
-
...
|
|
533
|
+
select: (o) => e.filter((l) => o[l.workflow]).map((l) => ({
|
|
534
|
+
...l,
|
|
533
535
|
available: !0
|
|
534
536
|
})),
|
|
535
537
|
staleTime: 1 / 0,
|
|
@@ -539,47 +541,47 @@ const xt = (e, t) => {
|
|
|
539
541
|
const t = T((s) => s.config);
|
|
540
542
|
return We(xt(e, t));
|
|
541
543
|
}, bt = () => {
|
|
542
|
-
const e = T((
|
|
544
|
+
const e = T((a) => a.config), t = A(), {
|
|
543
545
|
filters: s,
|
|
544
546
|
trashed: r,
|
|
545
547
|
search: o
|
|
546
|
-
} = t,
|
|
548
|
+
} = t, l = ["context", {
|
|
547
549
|
folderId: s.folder,
|
|
548
550
|
filters: s,
|
|
549
551
|
trashed: r,
|
|
550
552
|
search: o
|
|
551
553
|
}];
|
|
552
554
|
return Je({
|
|
553
|
-
queryKey:
|
|
555
|
+
queryKey: l,
|
|
554
556
|
queryFn: async ({
|
|
555
|
-
pageParam:
|
|
557
|
+
pageParam: a
|
|
556
558
|
}) => await he({
|
|
557
559
|
...t,
|
|
558
560
|
application: e == null ? void 0 : e.app,
|
|
559
561
|
types: e == null ? void 0 : e.types,
|
|
560
562
|
pagination: {
|
|
561
563
|
...t.pagination,
|
|
562
|
-
startIdx:
|
|
564
|
+
startIdx: a
|
|
563
565
|
}
|
|
564
566
|
}),
|
|
565
567
|
staleTime: 5e3,
|
|
566
568
|
initialPageParam: 0,
|
|
567
569
|
enabled: !!e,
|
|
568
570
|
retry: !1,
|
|
569
|
-
getNextPageParam: (
|
|
571
|
+
getNextPageParam: (a) => a.pagination.startIdx + a.pagination.pageSize
|
|
570
572
|
});
|
|
571
573
|
}, ys = () => {
|
|
572
|
-
const e = U(), t = P(), s = A(), r = $(), o = J(),
|
|
574
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
|
|
573
575
|
clearSelectedItems: i,
|
|
574
|
-
clearSelectedIds:
|
|
576
|
+
clearSelectedIds: d,
|
|
575
577
|
setTreeData: h,
|
|
576
|
-
setSearchParams:
|
|
578
|
+
setSearchParams: u
|
|
577
579
|
} = R(), {
|
|
578
|
-
filters:
|
|
580
|
+
filters: g,
|
|
579
581
|
trashed: m
|
|
580
582
|
} = s, I = ["context", {
|
|
581
|
-
folderId:
|
|
582
|
-
filters:
|
|
583
|
+
folderId: g.folder,
|
|
584
|
+
filters: g,
|
|
583
585
|
trashed: m
|
|
584
586
|
}];
|
|
585
587
|
return O({
|
|
@@ -587,7 +589,7 @@ const xt = (e, t) => {
|
|
|
587
589
|
searchParams: s,
|
|
588
590
|
folderIds: o,
|
|
589
591
|
resourceIds: p,
|
|
590
|
-
useAssetIds:
|
|
592
|
+
useAssetIds: c
|
|
591
593
|
}),
|
|
592
594
|
onError(C) {
|
|
593
595
|
typeof C == "string" && e.error(L(C));
|
|
@@ -602,22 +604,22 @@ const xt = (e, t) => {
|
|
|
602
604
|
const S = {
|
|
603
605
|
...F,
|
|
604
606
|
pages: F == null ? void 0 : F.pages.map((y) => {
|
|
605
|
-
var
|
|
607
|
+
var f;
|
|
606
608
|
return {
|
|
607
609
|
...y,
|
|
608
610
|
folders: y.folders.filter((w) => !o.includes(w.id)),
|
|
609
611
|
pagination: {
|
|
610
612
|
...y.pagination,
|
|
611
613
|
// @ts-ignore
|
|
612
|
-
maxIdx: ((
|
|
614
|
+
maxIdx: ((f = y == null ? void 0 : y.pagination) == null ? void 0 : f.maxIdx) - C.resources.length
|
|
613
615
|
},
|
|
614
|
-
resources: y.resources.filter((w) =>
|
|
616
|
+
resources: y.resources.filter((w) => c ? !l.includes(w.assetId) : !p.includes(w.id))
|
|
615
617
|
};
|
|
616
618
|
})
|
|
617
619
|
}, D = Pe(r, {
|
|
618
620
|
folders: o
|
|
619
621
|
});
|
|
620
|
-
return h(D),
|
|
622
|
+
return h(D), u({
|
|
621
623
|
...s,
|
|
622
624
|
pagination: {
|
|
623
625
|
...s.pagination,
|
|
@@ -629,29 +631,29 @@ const xt = (e, t) => {
|
|
|
629
631
|
});
|
|
630
632
|
},
|
|
631
633
|
onSettled: () => {
|
|
632
|
-
i(),
|
|
634
|
+
i(), d();
|
|
633
635
|
}
|
|
634
636
|
});
|
|
635
637
|
}, Cs = () => {
|
|
636
|
-
const e = U(), t = P(), s = A(), r = J(), o = Y(),
|
|
638
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
|
|
637
639
|
setFolderIds: p,
|
|
638
640
|
setResourceIds: i,
|
|
639
|
-
setSelectedResources:
|
|
641
|
+
setSelectedResources: d,
|
|
640
642
|
setSelectedFolders: h
|
|
641
643
|
} = R(), {
|
|
642
|
-
filters:
|
|
643
|
-
trashed:
|
|
644
|
+
filters: u,
|
|
645
|
+
trashed: g
|
|
644
646
|
} = s, m = ["context", {
|
|
645
|
-
folderId:
|
|
646
|
-
filters:
|
|
647
|
-
trashed:
|
|
647
|
+
folderId: u.folder,
|
|
648
|
+
filters: u,
|
|
649
|
+
trashed: g
|
|
648
650
|
}];
|
|
649
651
|
return O({
|
|
650
652
|
mutationFn: async () => await st({
|
|
651
653
|
searchParams: s,
|
|
652
654
|
folderIds: r,
|
|
653
|
-
resourceIds:
|
|
654
|
-
useAssetIds:
|
|
655
|
+
resourceIds: c,
|
|
656
|
+
useAssetIds: a
|
|
655
657
|
}),
|
|
656
658
|
onError(I) {
|
|
657
659
|
typeof I == "string" && e.error(L(I));
|
|
@@ -667,49 +669,49 @@ const xt = (e, t) => {
|
|
|
667
669
|
pages: C == null ? void 0 : C.pages.map((x) => ({
|
|
668
670
|
...x,
|
|
669
671
|
folders: x.folders.filter((F) => !r.includes(F.id)),
|
|
670
|
-
resources: x.resources.filter((F) =>
|
|
672
|
+
resources: x.resources.filter((F) => a ? !o.includes(F.assetId) : !c.includes(F.id))
|
|
671
673
|
}))
|
|
672
674
|
};
|
|
673
675
|
});
|
|
674
676
|
},
|
|
675
677
|
onSettled: () => {
|
|
676
|
-
i([]),
|
|
678
|
+
i([]), d([]), p([]), h([]);
|
|
677
679
|
}
|
|
678
680
|
});
|
|
679
681
|
}, Is = () => {
|
|
680
|
-
const e = U(), t = P(), s = A(), r = J(), o = Y(),
|
|
682
|
+
const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
|
|
681
683
|
clearSelectedItems: p,
|
|
682
684
|
clearSelectedIds: i
|
|
683
685
|
} = R(), {
|
|
684
|
-
filters:
|
|
686
|
+
filters: d,
|
|
685
687
|
trashed: h
|
|
686
|
-
} = s,
|
|
687
|
-
folderId:
|
|
688
|
-
filters:
|
|
688
|
+
} = s, u = ["context", {
|
|
689
|
+
folderId: d.folder,
|
|
690
|
+
filters: d,
|
|
689
691
|
trashed: h
|
|
690
692
|
}];
|
|
691
693
|
return O({
|
|
692
694
|
mutationFn: async () => await tt({
|
|
693
695
|
searchParams: s,
|
|
694
696
|
folderIds: r,
|
|
695
|
-
resourceIds:
|
|
696
|
-
useAssetIds:
|
|
697
|
+
resourceIds: c,
|
|
698
|
+
useAssetIds: a
|
|
697
699
|
}),
|
|
698
|
-
onError(
|
|
699
|
-
typeof
|
|
700
|
+
onError(g) {
|
|
701
|
+
typeof g == "string" && e.error(L(g));
|
|
700
702
|
},
|
|
701
703
|
onSuccess: async () => {
|
|
702
704
|
if (await t.cancelQueries({
|
|
703
|
-
queryKey:
|
|
704
|
-
}), t.getQueryData(
|
|
705
|
-
return e.success(L("explorer.removed.from.trash")), t.setQueryData(
|
|
705
|
+
queryKey: u
|
|
706
|
+
}), t.getQueryData(u))
|
|
707
|
+
return e.success(L("explorer.removed.from.trash")), t.setQueryData(u, (m) => {
|
|
706
708
|
if (m)
|
|
707
709
|
return {
|
|
708
710
|
...m,
|
|
709
711
|
pages: m == null ? void 0 : m.pages.map((C) => ({
|
|
710
712
|
...C,
|
|
711
713
|
folders: C.folders.filter((x) => !r.includes(x.id)),
|
|
712
|
-
resources: C.resources.filter((x) =>
|
|
714
|
+
resources: C.resources.filter((x) => a ? !o.includes(x.assetId) : !c.includes(x.id))
|
|
713
715
|
}))
|
|
714
716
|
};
|
|
715
717
|
});
|
|
@@ -722,30 +724,30 @@ const xt = (e, t) => {
|
|
|
722
724
|
const e = U(), t = A(), s = P(), {
|
|
723
725
|
user: r
|
|
724
726
|
} = ue(), o = z(), {
|
|
725
|
-
filters:
|
|
726
|
-
trashed:
|
|
727
|
-
} = t,
|
|
728
|
-
folderId:
|
|
729
|
-
filters:
|
|
730
|
-
trashed:
|
|
727
|
+
filters: l,
|
|
728
|
+
trashed: a
|
|
729
|
+
} = t, c = "duplicate_start", p = ["context", {
|
|
730
|
+
folderId: l.folder,
|
|
731
|
+
filters: l,
|
|
732
|
+
trashed: a
|
|
731
733
|
}];
|
|
732
734
|
return O({
|
|
733
735
|
mutationFn: async (i) => (e.info(L("duplicate.start"), {
|
|
734
|
-
id:
|
|
736
|
+
id: c
|
|
735
737
|
}), await rt(t, i.assetId)),
|
|
736
|
-
onSuccess: async (i,
|
|
737
|
-
e.remove(
|
|
738
|
+
onSuccess: async (i, d) => {
|
|
739
|
+
e.remove(c), e.success(L("duplicate.done")), await s.cancelQueries({
|
|
738
740
|
queryKey: p
|
|
739
741
|
});
|
|
740
|
-
const h = s.getQueryData(p),
|
|
741
|
-
...
|
|
742
|
-
name: `${
|
|
742
|
+
const h = s.getQueryData(p), u = {
|
|
743
|
+
...d,
|
|
744
|
+
name: `${d.name}${L("duplicate.suffix")}`,
|
|
743
745
|
assetId: i.duplicateId,
|
|
744
746
|
id: i.duplicateId,
|
|
745
747
|
creatorId: r == null ? void 0 : r.userId,
|
|
746
748
|
creatorName: r == null ? void 0 : r.username,
|
|
747
749
|
createdAt: Date.now(),
|
|
748
|
-
slug:
|
|
750
|
+
slug: d.slug || "",
|
|
749
751
|
modifiedAt: Date.now(),
|
|
750
752
|
modifierId: (r == null ? void 0 : r.userId) || "",
|
|
751
753
|
modifierName: (r == null ? void 0 : r.username) || "",
|
|
@@ -753,13 +755,13 @@ const xt = (e, t) => {
|
|
|
753
755
|
trashed: !1,
|
|
754
756
|
rights: [`creator:${r == null ? void 0 : r.userId}`]
|
|
755
757
|
};
|
|
756
|
-
h && s.setQueryData(p, (
|
|
757
|
-
if (
|
|
758
|
+
h && s.setQueryData(p, (g) => {
|
|
759
|
+
if (g)
|
|
758
760
|
return {
|
|
759
|
-
...
|
|
760
|
-
pages:
|
|
761
|
+
...g,
|
|
762
|
+
pages: g == null ? void 0 : g.pages.map((m) => ({
|
|
761
763
|
...m,
|
|
762
|
-
resources: [
|
|
764
|
+
resources: [u, ...m.resources]
|
|
763
765
|
}))
|
|
764
766
|
};
|
|
765
767
|
}), o.id && o.id !== E.DEFAULT && pe({
|
|
@@ -771,21 +773,21 @@ const xt = (e, t) => {
|
|
|
771
773
|
});
|
|
772
774
|
},
|
|
773
775
|
onError: (i) => {
|
|
774
|
-
e.remove(
|
|
776
|
+
e.remove(c), typeof i == "string" && e.error(`${L("duplicate.error")}: ${i}`);
|
|
775
777
|
}
|
|
776
778
|
});
|
|
777
779
|
}, Tt = () => {
|
|
778
|
-
const e = U(), t = P(), s = A(), r = $(), o = J(),
|
|
780
|
+
const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
|
|
779
781
|
clearSelectedIds: i,
|
|
780
|
-
clearSelectedItems:
|
|
782
|
+
clearSelectedItems: d,
|
|
781
783
|
setTreeData: h,
|
|
782
|
-
setSearchParams:
|
|
784
|
+
setSearchParams: u
|
|
783
785
|
} = R(), {
|
|
784
|
-
filters:
|
|
786
|
+
filters: g,
|
|
785
787
|
trashed: m
|
|
786
788
|
} = s, I = ["context", {
|
|
787
|
-
folderId:
|
|
788
|
-
filters:
|
|
789
|
+
folderId: g.folder,
|
|
790
|
+
filters: g,
|
|
789
791
|
trashed: m
|
|
790
792
|
}];
|
|
791
793
|
return O({
|
|
@@ -794,7 +796,7 @@ const xt = (e, t) => {
|
|
|
794
796
|
folderId: C,
|
|
795
797
|
folderIds: o,
|
|
796
798
|
resourceIds: p,
|
|
797
|
-
useAssetIds:
|
|
799
|
+
useAssetIds: c
|
|
798
800
|
}),
|
|
799
801
|
onError(C) {
|
|
800
802
|
typeof C == "string" && e.error(L(C));
|
|
@@ -809,21 +811,21 @@ const xt = (e, t) => {
|
|
|
809
811
|
folders: o
|
|
810
812
|
}), y = {
|
|
811
813
|
...k,
|
|
812
|
-
pages: k == null ? void 0 : k.pages.map((
|
|
814
|
+
pages: k == null ? void 0 : k.pages.map((f) => {
|
|
813
815
|
var w;
|
|
814
816
|
return {
|
|
815
|
-
...
|
|
816
|
-
folders:
|
|
817
|
+
...f,
|
|
818
|
+
folders: f.folders.filter((v) => !o.includes(v.id)),
|
|
817
819
|
pagination: {
|
|
818
|
-
...
|
|
820
|
+
...f.pagination,
|
|
819
821
|
// @ts-ignore
|
|
820
|
-
maxIdx: ((w =
|
|
822
|
+
maxIdx: ((w = f.pagination) == null ? void 0 : w.maxIdx) - C.resources.length
|
|
821
823
|
},
|
|
822
|
-
resources:
|
|
824
|
+
resources: f.resources.filter((v) => c ? !l.includes(v.assetId) : !p.includes(v.id))
|
|
823
825
|
};
|
|
824
826
|
})
|
|
825
827
|
};
|
|
826
|
-
return h(D),
|
|
828
|
+
return h(D), u({
|
|
827
829
|
...s,
|
|
828
830
|
pagination: {
|
|
829
831
|
...s.pagination,
|
|
@@ -836,19 +838,19 @@ const xt = (e, t) => {
|
|
|
836
838
|
t.invalidateQueries();
|
|
837
839
|
},
|
|
838
840
|
onSettled: () => {
|
|
839
|
-
|
|
841
|
+
d(), i();
|
|
840
842
|
}
|
|
841
843
|
});
|
|
842
844
|
}, Ds = () => {
|
|
843
845
|
const e = U(), t = P(), s = A(), r = $(), {
|
|
844
846
|
setTreeData: o
|
|
845
847
|
} = R(), {
|
|
846
|
-
filters:
|
|
847
|
-
trashed:
|
|
848
|
-
} = s,
|
|
849
|
-
folderId:
|
|
850
|
-
filters:
|
|
851
|
-
trashed:
|
|
848
|
+
filters: l,
|
|
849
|
+
trashed: a
|
|
850
|
+
} = s, c = ["context", {
|
|
851
|
+
folderId: l.folder,
|
|
852
|
+
filters: l,
|
|
853
|
+
trashed: a
|
|
852
854
|
}];
|
|
853
855
|
return O({
|
|
854
856
|
mutationFn: async ({
|
|
@@ -864,20 +866,20 @@ const xt = (e, t) => {
|
|
|
864
866
|
},
|
|
865
867
|
onSuccess: async (p, i) => {
|
|
866
868
|
await t.cancelQueries({
|
|
867
|
-
queryKey:
|
|
869
|
+
queryKey: c
|
|
868
870
|
});
|
|
869
|
-
const
|
|
871
|
+
const d = t.getQueryData(c), h = {
|
|
870
872
|
...p,
|
|
871
873
|
parentId: i.parentId,
|
|
872
874
|
children: [],
|
|
873
875
|
rights: [`creator:${p == null ? void 0 : p.creator_id}`]
|
|
874
876
|
};
|
|
875
|
-
if (
|
|
876
|
-
return t.setQueryData(
|
|
877
|
-
if (
|
|
878
|
-
const
|
|
879
|
-
...
|
|
880
|
-
pages:
|
|
877
|
+
if (d)
|
|
878
|
+
return t.setQueryData(c, (u) => {
|
|
879
|
+
if (u) {
|
|
880
|
+
const g = {
|
|
881
|
+
...u,
|
|
882
|
+
pages: u == null ? void 0 : u.pages.map((I) => ({
|
|
881
883
|
...I,
|
|
882
884
|
folders: [...I.folders, h]
|
|
883
885
|
}))
|
|
@@ -885,7 +887,7 @@ const xt = (e, t) => {
|
|
|
885
887
|
parentId: i.parentId,
|
|
886
888
|
newFolder: h
|
|
887
889
|
});
|
|
888
|
-
return o(m),
|
|
890
|
+
return o(m), g;
|
|
889
891
|
}
|
|
890
892
|
});
|
|
891
893
|
}
|
|
@@ -893,56 +895,56 @@ const xt = (e, t) => {
|
|
|
893
895
|
}, xs = () => {
|
|
894
896
|
const e = U(), t = P(), s = A(), r = $(), {
|
|
895
897
|
setFolderIds: o,
|
|
896
|
-
setSelectedFolders:
|
|
897
|
-
setTreeData:
|
|
898
|
+
setSelectedFolders: l,
|
|
899
|
+
setTreeData: a
|
|
898
900
|
} = R(), {
|
|
899
|
-
filters:
|
|
901
|
+
filters: c,
|
|
900
902
|
trashed: p
|
|
901
903
|
} = s, i = ["context", {
|
|
902
|
-
folderId:
|
|
903
|
-
filters:
|
|
904
|
+
folderId: c.folder,
|
|
905
|
+
filters: c,
|
|
904
906
|
trashed: p
|
|
905
907
|
}];
|
|
906
908
|
return O({
|
|
907
909
|
mutationFn: async ({
|
|
908
|
-
folderId:
|
|
910
|
+
folderId: d,
|
|
909
911
|
name: h,
|
|
910
|
-
parentId:
|
|
912
|
+
parentId: u
|
|
911
913
|
}) => await Ye({
|
|
912
914
|
searchParams: s,
|
|
913
|
-
folderId:
|
|
914
|
-
parentId:
|
|
915
|
+
folderId: d,
|
|
916
|
+
parentId: u,
|
|
915
917
|
name: h
|
|
916
918
|
}),
|
|
917
|
-
onError(
|
|
918
|
-
typeof
|
|
919
|
+
onError(d) {
|
|
920
|
+
typeof d == "string" && e.error(L(d));
|
|
919
921
|
},
|
|
920
|
-
onSuccess: async (
|
|
922
|
+
onSuccess: async (d, h) => {
|
|
921
923
|
if (await t.cancelQueries({
|
|
922
924
|
queryKey: i
|
|
923
925
|
}), t.getQueryData(i))
|
|
924
|
-
return t.setQueryData(i, (
|
|
925
|
-
if (
|
|
926
|
+
return t.setQueryData(i, (g) => {
|
|
927
|
+
if (g) {
|
|
926
928
|
const m = {
|
|
927
|
-
...
|
|
928
|
-
pages:
|
|
929
|
+
...g,
|
|
930
|
+
pages: g == null ? void 0 : g.pages.map((C) => ({
|
|
929
931
|
...C,
|
|
930
|
-
folders: C.folders.map((x) => x.id ===
|
|
931
|
-
...
|
|
932
|
+
folders: C.folders.map((x) => x.id === d.id ? {
|
|
933
|
+
...d,
|
|
932
934
|
parentId: h.parentId,
|
|
933
935
|
rights: x.rights
|
|
934
936
|
} : x)
|
|
935
937
|
}))
|
|
936
938
|
}, I = ke(r, {
|
|
937
939
|
folderId: h.folderId,
|
|
938
|
-
newFolder:
|
|
940
|
+
newFolder: d
|
|
939
941
|
});
|
|
940
|
-
return
|
|
942
|
+
return a(I), m;
|
|
941
943
|
}
|
|
942
944
|
});
|
|
943
945
|
},
|
|
944
946
|
onSettled: () => {
|
|
945
|
-
o([]),
|
|
947
|
+
o([]), l([]);
|
|
946
948
|
}
|
|
947
949
|
});
|
|
948
950
|
}, Ss = (e) => {
|
|
@@ -950,35 +952,35 @@ const xt = (e, t) => {
|
|
|
950
952
|
setResourceIds: r,
|
|
951
953
|
setSelectedResources: o
|
|
952
954
|
} = R(), {
|
|
953
|
-
filters:
|
|
954
|
-
trashed:
|
|
955
|
-
} = s,
|
|
956
|
-
folderId:
|
|
957
|
-
filters:
|
|
958
|
-
trashed:
|
|
955
|
+
filters: l,
|
|
956
|
+
trashed: a
|
|
957
|
+
} = s, c = ["context", {
|
|
958
|
+
folderId: l.folder,
|
|
959
|
+
filters: l,
|
|
960
|
+
trashed: a
|
|
959
961
|
}];
|
|
960
962
|
return Ne({
|
|
961
963
|
application: e,
|
|
962
964
|
options: {
|
|
963
965
|
onSuccess: async (p, i) => {
|
|
964
966
|
if (await t.cancelQueries({
|
|
965
|
-
queryKey:
|
|
966
|
-
}), t.getQueryData(
|
|
967
|
-
return t.setQueryData(
|
|
967
|
+
queryKey: c
|
|
968
|
+
}), t.getQueryData(c))
|
|
969
|
+
return t.setQueryData(c, (h) => {
|
|
968
970
|
if (h)
|
|
969
971
|
return {
|
|
970
972
|
...h,
|
|
971
|
-
pages: h == null ? void 0 : h.pages.map((
|
|
972
|
-
...
|
|
973
|
-
resources:
|
|
974
|
-
if (
|
|
975
|
-
let m = [`creator:${
|
|
973
|
+
pages: h == null ? void 0 : h.pages.map((u) => ({
|
|
974
|
+
...u,
|
|
975
|
+
resources: u.resources.map((g) => {
|
|
976
|
+
if (g.assetId === (i == null ? void 0 : i.resourceId)) {
|
|
977
|
+
let m = [`creator:${g.creatorId}`];
|
|
976
978
|
return (i == null ? void 0 : i.rights.length) >= 1 && (m = [...m, ...i.rights.flatMap((I) => I.actions.map((C) => `${I.type}:${I.id}:${C.id}`))]), {
|
|
977
|
-
...
|
|
979
|
+
...g,
|
|
978
980
|
rights: m
|
|
979
981
|
};
|
|
980
982
|
} else
|
|
981
|
-
return
|
|
983
|
+
return g;
|
|
982
984
|
})
|
|
983
985
|
}))
|
|
984
986
|
};
|
|
@@ -993,7 +995,7 @@ const xt = (e, t) => {
|
|
|
993
995
|
const t = P(), s = A(), {
|
|
994
996
|
filters: r,
|
|
995
997
|
trashed: o
|
|
996
|
-
} = s,
|
|
998
|
+
} = s, l = ["context", {
|
|
997
999
|
folderId: r.folder,
|
|
998
1000
|
filters: r,
|
|
999
1001
|
trashed: o
|
|
@@ -1001,32 +1003,32 @@ const xt = (e, t) => {
|
|
|
1001
1003
|
return Ae({
|
|
1002
1004
|
application: e,
|
|
1003
1005
|
options: {
|
|
1004
|
-
onSuccess: async (
|
|
1006
|
+
onSuccess: async (a, c) => {
|
|
1005
1007
|
if (await t.cancelQueries({
|
|
1006
|
-
queryKey:
|
|
1007
|
-
}), t.getQueryData(
|
|
1008
|
-
return t.setQueryData(
|
|
1008
|
+
queryKey: l
|
|
1009
|
+
}), t.getQueryData(l))
|
|
1010
|
+
return t.setQueryData(l, (i) => {
|
|
1009
1011
|
if (i)
|
|
1010
1012
|
return {
|
|
1011
1013
|
...i,
|
|
1012
|
-
pages: i == null ? void 0 : i.pages.map((
|
|
1013
|
-
...
|
|
1014
|
-
resources:
|
|
1015
|
-
if (h.assetId === (
|
|
1014
|
+
pages: i == null ? void 0 : i.pages.map((d) => ({
|
|
1015
|
+
...d,
|
|
1016
|
+
resources: d.resources.map((h) => {
|
|
1017
|
+
if (h.assetId === (c == null ? void 0 : c.entId)) {
|
|
1016
1018
|
const {
|
|
1017
|
-
name:
|
|
1018
|
-
thumbnail:
|
|
1019
|
+
name: u,
|
|
1020
|
+
thumbnail: g,
|
|
1019
1021
|
public: m,
|
|
1020
1022
|
description: I,
|
|
1021
1023
|
slug: C,
|
|
1022
1024
|
...x
|
|
1023
|
-
} =
|
|
1025
|
+
} = c;
|
|
1024
1026
|
return {
|
|
1025
1027
|
...h,
|
|
1026
1028
|
...x,
|
|
1027
1029
|
// add any custom field
|
|
1028
|
-
name:
|
|
1029
|
-
thumbnail: typeof
|
|
1030
|
+
name: u,
|
|
1031
|
+
thumbnail: typeof g == "string" ? g : URL.createObjectURL(g),
|
|
1030
1032
|
public: m,
|
|
1031
1033
|
description: I,
|
|
1032
1034
|
slug: C
|
|
@@ -1040,61 +1042,63 @@ const xt = (e, t) => {
|
|
|
1040
1042
|
}
|
|
1041
1043
|
}
|
|
1042
1044
|
});
|
|
1043
|
-
}, Ts = (
|
|
1044
|
-
|
|
1045
|
-
|
|
1045
|
+
}, Ts = ({
|
|
1046
|
+
onResourceCreated: e
|
|
1047
|
+
}) => {
|
|
1048
|
+
const t = U(), s = P(), r = A(), {
|
|
1049
|
+
user: o
|
|
1046
1050
|
} = ue(), {
|
|
1047
|
-
appCode:
|
|
1048
|
-
} = Z(),
|
|
1049
|
-
folderId:
|
|
1050
|
-
filters:
|
|
1051
|
-
trashed:
|
|
1051
|
+
appCode: l
|
|
1052
|
+
} = Z(), a = ["context", {
|
|
1053
|
+
folderId: r.filters.folder,
|
|
1054
|
+
filters: r.filters,
|
|
1055
|
+
trashed: r.trashed
|
|
1052
1056
|
}];
|
|
1053
1057
|
return O({
|
|
1054
|
-
mutationFn: async (
|
|
1055
|
-
searchParams:
|
|
1056
|
-
params:
|
|
1058
|
+
mutationFn: async (c) => await at({
|
|
1059
|
+
searchParams: r,
|
|
1060
|
+
params: c
|
|
1057
1061
|
}),
|
|
1058
|
-
onError(
|
|
1059
|
-
typeof
|
|
1062
|
+
onError(c) {
|
|
1063
|
+
typeof c == "string" && t.error(L(c));
|
|
1060
1064
|
},
|
|
1061
|
-
onSuccess: async (
|
|
1062
|
-
var
|
|
1063
|
-
await
|
|
1064
|
-
queryKey:
|
|
1065
|
+
onSuccess: async (c, p) => {
|
|
1066
|
+
var h, u, g;
|
|
1067
|
+
await s.cancelQueries({
|
|
1068
|
+
queryKey: a
|
|
1065
1069
|
});
|
|
1066
|
-
const
|
|
1067
|
-
...
|
|
1068
|
-
thumbnail:
|
|
1069
|
-
application:
|
|
1070
|
-
assetId:
|
|
1071
|
-
id:
|
|
1072
|
-
creatorId:
|
|
1073
|
-
creatorName:
|
|
1070
|
+
const i = s.getQueryData(a), d = {
|
|
1071
|
+
...p,
|
|
1072
|
+
thumbnail: c.thumbnail || "",
|
|
1073
|
+
application: l,
|
|
1074
|
+
assetId: c._id || c.entId || "",
|
|
1075
|
+
id: c._id || c.entId || "",
|
|
1076
|
+
creatorId: o == null ? void 0 : o.userId,
|
|
1077
|
+
creatorName: o == null ? void 0 : o.username,
|
|
1074
1078
|
createdAt: Date.now(),
|
|
1075
|
-
slug:
|
|
1076
|
-
modifiedAt: ((
|
|
1077
|
-
modifierId: ((
|
|
1078
|
-
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) || "",
|
|
1079
1083
|
updatedAt: Date.now(),
|
|
1080
1084
|
trashed: !1,
|
|
1081
|
-
rights: [`creator:${
|
|
1085
|
+
rights: [`creator:${o == null ? void 0 : o.userId}`]
|
|
1082
1086
|
};
|
|
1083
|
-
if (
|
|
1084
|
-
return
|
|
1085
|
-
if (
|
|
1087
|
+
if (e == null || e(d), i)
|
|
1088
|
+
return s.setQueryData(a, (m) => {
|
|
1089
|
+
if (m)
|
|
1086
1090
|
return {
|
|
1087
|
-
...
|
|
1088
|
-
pages:
|
|
1089
|
-
...
|
|
1090
|
-
resources: [
|
|
1091
|
+
...m,
|
|
1092
|
+
pages: m == null ? void 0 : m.pages.map((I) => ({
|
|
1093
|
+
...I,
|
|
1094
|
+
resources: [d, ...I.resources]
|
|
1091
1095
|
}))
|
|
1092
1096
|
};
|
|
1093
1097
|
});
|
|
1094
1098
|
}
|
|
1095
1099
|
});
|
|
1096
1100
|
};
|
|
1097
|
-
function
|
|
1101
|
+
function le(e, t) {
|
|
1098
1102
|
var r;
|
|
1099
1103
|
const s = G(e, t);
|
|
1100
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];
|
|
@@ -1104,29 +1108,29 @@ function Ft() {
|
|
|
1104
1108
|
appCode: r
|
|
1105
1109
|
} = Z(), {
|
|
1106
1110
|
t: o
|
|
1107
|
-
} = V(["common", r]),
|
|
1111
|
+
} = V(["common", r]), l = o("explorer.filters.mine", {
|
|
1108
1112
|
ns: r
|
|
1109
1113
|
}), {
|
|
1110
|
-
setResourceOrFolderIsDraggable:
|
|
1111
|
-
setElementDragOver:
|
|
1114
|
+
setResourceOrFolderIsDraggable: a,
|
|
1115
|
+
setElementDragOver: c,
|
|
1112
1116
|
setResourceIds: p,
|
|
1113
1117
|
setFolderIds: i,
|
|
1114
|
-
fetchTreeData:
|
|
1115
|
-
} = R(), h = $(),
|
|
1118
|
+
fetchTreeData: d
|
|
1119
|
+
} = R(), h = $(), g = oe(xe, {
|
|
1116
1120
|
activationConstraint: {
|
|
1117
1121
|
delay: wt,
|
|
1118
1122
|
tolerance: Dt
|
|
1119
1123
|
}
|
|
1120
|
-
}), m = oe(Se), I = be(
|
|
1124
|
+
}), m = oe(Se), I = be(g, m), C = (S, D) => {
|
|
1121
1125
|
var y;
|
|
1122
1126
|
((y = S.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ b(W, { children: [
|
|
1123
1127
|
o("explorer.dragged.resource"),
|
|
1124
1128
|
" ",
|
|
1125
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ n("strong", { children: D })
|
|
1126
1130
|
] })) : s.success(/* @__PURE__ */ b(W, { children: [
|
|
1127
1131
|
o("explorer.dragged.folder"),
|
|
1128
1132
|
" ",
|
|
1129
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ n("strong", { children: D })
|
|
1130
1134
|
] }));
|
|
1131
1135
|
};
|
|
1132
1136
|
return {
|
|
@@ -1134,18 +1138,18 @@ function Ft() {
|
|
|
1134
1138
|
const {
|
|
1135
1139
|
over: D,
|
|
1136
1140
|
active: y
|
|
1137
|
-
} = S,
|
|
1138
|
-
if ((w == null ? void 0 : w.id) == (
|
|
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))
|
|
1139
1143
|
p([]), i([]);
|
|
1140
1144
|
else {
|
|
1141
|
-
const j = (
|
|
1145
|
+
const j = (f == null ? void 0 : f.name) ?? l;
|
|
1142
1146
|
if (D)
|
|
1143
1147
|
try {
|
|
1144
|
-
await t.mutate(
|
|
1148
|
+
await t.mutate(f == null ? void 0 : f.id), C(y, j);
|
|
1145
1149
|
} catch (Ie) {
|
|
1146
1150
|
console.error(Ie);
|
|
1147
1151
|
} finally {
|
|
1148
|
-
|
|
1152
|
+
c({
|
|
1149
1153
|
isOver: !1,
|
|
1150
1154
|
overId: void 0,
|
|
1151
1155
|
canMove: !0,
|
|
@@ -1153,7 +1157,7 @@ function Ft() {
|
|
|
1153
1157
|
});
|
|
1154
1158
|
}
|
|
1155
1159
|
}
|
|
1156
|
-
|
|
1160
|
+
a({
|
|
1157
1161
|
isDrag: !1,
|
|
1158
1162
|
elementDrag: void 0
|
|
1159
1163
|
});
|
|
@@ -1162,7 +1166,7 @@ function Ft() {
|
|
|
1162
1166
|
const {
|
|
1163
1167
|
active: D
|
|
1164
1168
|
} = S, y = D.data.current;
|
|
1165
|
-
(y == null ? void 0 : y.type) === "resource" ? p([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && i([y == null ? void 0 : y.id]),
|
|
1169
|
+
(y == null ? void 0 : y.type) === "resource" ? p([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && i([y == null ? void 0 : y.id]), a({
|
|
1166
1170
|
isDrag: !0,
|
|
1167
1171
|
elementDrag: y == null ? void 0 : y.id
|
|
1168
1172
|
});
|
|
@@ -1171,23 +1175,23 @@ function Ft() {
|
|
|
1171
1175
|
const {
|
|
1172
1176
|
over: D,
|
|
1173
1177
|
active: y
|
|
1174
|
-
} = 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);
|
|
1175
1179
|
if (D) {
|
|
1176
1180
|
const j = {
|
|
1177
1181
|
isOver: !0,
|
|
1178
1182
|
canMove: !1,
|
|
1179
|
-
overId:
|
|
1180
|
-
isTreeview:
|
|
1183
|
+
overId: f == null ? void 0 : f.id,
|
|
1184
|
+
isTreeview: f == null ? void 0 : f.isTreeview
|
|
1181
1185
|
};
|
|
1182
|
-
(w == null ? void 0 : w.id) === (
|
|
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({
|
|
1183
1187
|
...j,
|
|
1184
1188
|
canMove: !1
|
|
1185
|
-
}) : (
|
|
1189
|
+
}) : (d(f == null ? void 0 : f.id, e), c({
|
|
1186
1190
|
...j,
|
|
1187
1191
|
canMove: !0
|
|
1188
1192
|
}));
|
|
1189
1193
|
} else
|
|
1190
|
-
|
|
1194
|
+
c({
|
|
1191
1195
|
isOver: !1,
|
|
1192
1196
|
overId: void 0,
|
|
1193
1197
|
canMove: !0,
|
|
@@ -1198,75 +1202,75 @@ function Ft() {
|
|
|
1198
1202
|
};
|
|
1199
1203
|
}
|
|
1200
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 = () => {
|
|
1201
|
-
const e = mt(), t = re(), s = se(), r = A(), o = z(),
|
|
1202
|
-
appCode:
|
|
1205
|
+
const e = mt(), t = re(), s = se(), r = A(), o = z(), l = U(), a = P(), {
|
|
1206
|
+
appCode: c
|
|
1203
1207
|
} = Z(), {
|
|
1204
1208
|
t: p
|
|
1205
|
-
} = V([
|
|
1209
|
+
} = V([c]), {
|
|
1206
1210
|
setSearchParams: i,
|
|
1207
|
-
setSearchConfig:
|
|
1211
|
+
setSearchConfig: d,
|
|
1208
1212
|
fetchTreeData: h
|
|
1209
1213
|
} = R(), {
|
|
1210
|
-
data:
|
|
1211
|
-
isError:
|
|
1214
|
+
data: u,
|
|
1215
|
+
isError: g,
|
|
1212
1216
|
error: m,
|
|
1213
1217
|
isLoading: I,
|
|
1214
1218
|
isFetching: C,
|
|
1215
1219
|
fetchNextPage: x
|
|
1216
|
-
} = bt(), F = (
|
|
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;
|
|
1217
1221
|
return B(() => {
|
|
1218
1222
|
var D, y;
|
|
1219
|
-
|
|
1223
|
+
u && ((D = u == null ? void 0 : u.pages[0]) != null && D.searchConfig && d(u.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, a), i({
|
|
1220
1224
|
...r,
|
|
1221
|
-
pagination: (y =
|
|
1225
|
+
pagination: (y = u == null ? void 0 : u.pages[(u == null ? void 0 : u.pages.length) - 1]) == null ? void 0 : y.pagination
|
|
1222
1226
|
}));
|
|
1223
|
-
}, [
|
|
1224
|
-
m && typeof m == "string" &&
|
|
1225
|
-
}, [m]), I ? /* @__PURE__ */
|
|
1226
|
-
/* @__PURE__ */
|
|
1227
|
-
/* @__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 })
|
|
1228
1232
|
] });
|
|
1229
1233
|
}, Pt = ({
|
|
1230
1234
|
title: e,
|
|
1231
1235
|
titleId: t,
|
|
1232
1236
|
...s
|
|
1233
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: [
|
|
1234
|
-
e ? /* @__PURE__ */
|
|
1235
|
-
/* @__PURE__ */
|
|
1236
|
-
/* @__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" })
|
|
1237
1241
|
] }), Ht = ({
|
|
1238
1242
|
title: e,
|
|
1239
1243
|
titleId: t,
|
|
1240
1244
|
...s
|
|
1241
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: [
|
|
1242
|
-
e ? /* @__PURE__ */
|
|
1243
|
-
/* @__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" })
|
|
1244
1248
|
] }), Qt = ({
|
|
1245
1249
|
title: e,
|
|
1246
1250
|
titleId: t,
|
|
1247
1251
|
...s
|
|
1248
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: [
|
|
1249
|
-
e ? /* @__PURE__ */
|
|
1250
|
-
/* @__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" })
|
|
1251
1255
|
] }), Ut = ({
|
|
1252
1256
|
title: e,
|
|
1253
1257
|
titleId: t,
|
|
1254
1258
|
...s
|
|
1255
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: [
|
|
1256
|
-
e ? /* @__PURE__ */
|
|
1257
|
-
/* @__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" })
|
|
1258
1262
|
] }), Ce = () => {
|
|
1259
|
-
const e = A(), [t, s] =
|
|
1260
|
-
setSearchParams:
|
|
1261
|
-
} = R(),
|
|
1262
|
-
const h =
|
|
1263
|
+
const e = A(), [t, s] = ie(""), r = ht(), o = yt(), l = we(null), {
|
|
1264
|
+
setSearchParams: a
|
|
1265
|
+
} = R(), c = (d) => {
|
|
1266
|
+
const h = d.target.value;
|
|
1263
1267
|
s(h.toString());
|
|
1264
|
-
}, p = (
|
|
1265
|
-
(
|
|
1268
|
+
}, p = (d) => {
|
|
1269
|
+
(d.key === "Enter" || d.key === "Return") && (d.preventDefault(), a({
|
|
1266
1270
|
search: t || void 0
|
|
1267
1271
|
}));
|
|
1268
|
-
}, i = (
|
|
1269
|
-
|
|
1272
|
+
}, i = (d) => {
|
|
1273
|
+
d.preventDefault(), a({
|
|
1270
1274
|
search: t || void 0
|
|
1271
1275
|
});
|
|
1272
1276
|
};
|
|
@@ -1274,7 +1278,7 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1274
1278
|
const h = t.length == 0 || t.length >= r.minLength ? {
|
|
1275
1279
|
search: t || void 0
|
|
1276
1280
|
} : {};
|
|
1277
|
-
|
|
1281
|
+
a({
|
|
1278
1282
|
...e,
|
|
1279
1283
|
...h
|
|
1280
1284
|
});
|
|
@@ -1282,13 +1286,13 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1282
1286
|
o === "select" && s("");
|
|
1283
1287
|
}, [o]), B(() => {
|
|
1284
1288
|
s(() => {
|
|
1285
|
-
var
|
|
1286
|
-
return ((
|
|
1289
|
+
var d;
|
|
1290
|
+
return ((d = e.search) == null ? void 0 : d.toString()) ?? "";
|
|
1287
1291
|
});
|
|
1288
1292
|
}, [e]), {
|
|
1289
|
-
formRef:
|
|
1293
|
+
formRef: l,
|
|
1290
1294
|
inputSearch: t,
|
|
1291
|
-
handleInputSearchChange:
|
|
1295
|
+
handleInputSearchChange: c,
|
|
1292
1296
|
handleKeyPress: p,
|
|
1293
1297
|
handleSearchSubmit: i
|
|
1294
1298
|
};
|
|
@@ -1298,27 +1302,27 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1298
1302
|
currentApp: t
|
|
1299
1303
|
} = Z(), {
|
|
1300
1304
|
t: s
|
|
1301
|
-
} = V(), [r, o] =
|
|
1302
|
-
if (
|
|
1305
|
+
} = V(), [r, o] = ie(""), l = (d) => {
|
|
1306
|
+
if (d === "0") {
|
|
1303
1307
|
o("");
|
|
1304
1308
|
return;
|
|
1305
1309
|
}
|
|
1306
|
-
o(
|
|
1307
|
-
},
|
|
1310
|
+
o(d);
|
|
1311
|
+
}, a = z(), c = A(), {
|
|
1308
1312
|
setSearchParams: p
|
|
1309
1313
|
} = R();
|
|
1310
1314
|
B(() => {
|
|
1311
|
-
const
|
|
1315
|
+
const d = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, u = () => r.includes("7") ? !0 : void 0;
|
|
1312
1316
|
p({
|
|
1313
|
-
...
|
|
1317
|
+
...c,
|
|
1314
1318
|
filters: {
|
|
1315
|
-
owner:
|
|
1316
|
-
public:
|
|
1319
|
+
owner: d(),
|
|
1320
|
+
public: u(),
|
|
1317
1321
|
shared: h(),
|
|
1318
|
-
folder:
|
|
1322
|
+
folder: a ? a.id : "default"
|
|
1319
1323
|
}
|
|
1320
1324
|
});
|
|
1321
|
-
}, [
|
|
1325
|
+
}, [a, p, r]);
|
|
1322
1326
|
const i = [{
|
|
1323
1327
|
label: s("explorer.filter.all", {
|
|
1324
1328
|
ns: e
|
|
@@ -1355,7 +1359,7 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1355
1359
|
return {
|
|
1356
1360
|
selectedFilters: r,
|
|
1357
1361
|
options: i,
|
|
1358
|
-
handleOnSelectFilter:
|
|
1362
|
+
handleOnSelectFilter: l
|
|
1359
1363
|
};
|
|
1360
1364
|
}, Ot = () => {
|
|
1361
1365
|
const {
|
|
@@ -1367,27 +1371,27 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1367
1371
|
options: r,
|
|
1368
1372
|
handleOnSelectFilter: o
|
|
1369
1373
|
} = Zt(), {
|
|
1370
|
-
formRef:
|
|
1371
|
-
inputSearch:
|
|
1372
|
-
handleInputSearchChange:
|
|
1374
|
+
formRef: l,
|
|
1375
|
+
inputSearch: a,
|
|
1376
|
+
handleInputSearchChange: c,
|
|
1373
1377
|
handleKeyPress: p,
|
|
1374
1378
|
handleSearchSubmit: i
|
|
1375
|
-
} = Ce(),
|
|
1376
|
-
return /* @__PURE__ */ b("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref:
|
|
1379
|
+
} = Ce(), d = s.length > 0 ? s.length : void 0;
|
|
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: [
|
|
1377
1381
|
/* @__PURE__ */ b(He, { id: "search", className: "input-group", children: [
|
|
1378
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ n(Qe, { type: "search", placeholder: t("explorer.label.search", {
|
|
1379
1383
|
ns: e
|
|
1380
|
-
}), size: "lg", noValidationIcon: !0, value:
|
|
1381
|
-
/* @__PURE__ */
|
|
1384
|
+
}), size: "lg", noValidationIcon: !0, value: a, onChange: c, onKeyDown: p }),
|
|
1385
|
+
/* @__PURE__ */ n(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
|
|
1382
1386
|
ns: e
|
|
1383
1387
|
}), onClick: i })
|
|
1384
1388
|
] }),
|
|
1385
1389
|
/* @__PURE__ */ b(K, { placement: "bottom-end", children: [
|
|
1386
|
-
/* @__PURE__ */
|
|
1387
|
-
/* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
/* @__PURE__ */
|
|
1390
|
-
] }, "0") : /* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ n(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ n(Qt, { width: 20 }), variant: "ghost", badgeContent: d }),
|
|
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)) })
|
|
1391
1395
|
] })
|
|
1392
1396
|
] });
|
|
1393
1397
|
}, qt = ({
|
|
@@ -1398,31 +1402,31 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1398
1402
|
const {
|
|
1399
1403
|
t: r
|
|
1400
1404
|
} = V();
|
|
1401
|
-
return /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
/* @__PURE__ */
|
|
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") })
|
|
1404
1408
|
] }) }) }) }) }) }) });
|
|
1405
1409
|
}, Bt = /* @__PURE__ */ M(async () => await import("./FolderModal.js")), Vt = () => {
|
|
1406
|
-
const [e, t] = Ze(), s = P(), r = $(), o = re(),
|
|
1410
|
+
const [e, t] = Ze(), s = P(), r = $(), o = re(), l = se(), a = ft(), c = Oe(), p = o ? E.BIN : l, {
|
|
1407
1411
|
appCode: i
|
|
1408
1412
|
} = Z(), {
|
|
1409
|
-
t:
|
|
1413
|
+
t: d
|
|
1410
1414
|
} = V(["common", i]), h = {
|
|
1411
1415
|
...r,
|
|
1412
|
-
name:
|
|
1416
|
+
name: d("explorer.filters.mine", {
|
|
1413
1417
|
ns: i
|
|
1414
1418
|
})
|
|
1415
1419
|
}, {
|
|
1416
|
-
goToTrash:
|
|
1417
|
-
selectTreeItem:
|
|
1420
|
+
goToTrash: u,
|
|
1421
|
+
selectTreeItem: g,
|
|
1418
1422
|
clearSelectedItems: m,
|
|
1419
1423
|
clearSelectedIds: I,
|
|
1420
1424
|
fetchTreeData: C
|
|
1421
1425
|
} = R(), x = (S) => {
|
|
1422
|
-
|
|
1426
|
+
g(S, s), c();
|
|
1423
1427
|
}, F = (S) => {
|
|
1424
|
-
var
|
|
1425
|
-
const D = G(r, S), y = (
|
|
1428
|
+
var f, w;
|
|
1429
|
+
const D = G(r, S), y = (f = D == null ? void 0 : D.children) == null ? void 0 : f.some((v) => {
|
|
1426
1430
|
var _;
|
|
1427
1431
|
return Array.isArray(v == null ? void 0 : v.children) && ((_ = v.children) == null ? void 0 : _.length) > 0;
|
|
1428
1432
|
});
|
|
@@ -1433,10 +1437,10 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
|
|
|
1433
1437
|
m(), I(), t();
|
|
1434
1438
|
};
|
|
1435
1439
|
return /* @__PURE__ */ b(W, { children: [
|
|
1436
|
-
/* @__PURE__ */
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
/* @__PURE__ */
|
|
1439
|
-
/* @__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: d("explorer.folder.new") }) }),
|
|
1443
|
+
/* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: e && /* @__PURE__ */ n(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
|
|
1440
1444
|
] });
|
|
1441
1445
|
};
|
|
1442
1446
|
function _t() {
|
|
@@ -1448,13 +1452,13 @@ function _t() {
|
|
|
1448
1452
|
t: s
|
|
1449
1453
|
} = V(["common", e]), {
|
|
1450
1454
|
inputSearch: r
|
|
1451
|
-
} = Ce(), o = se(),
|
|
1455
|
+
} = Ce(), o = se(), l = re(), a = z(), c = s("explorer.tree.trash"), p = s("explorer.tree.search"), i = s("explorer.filters.mine", {
|
|
1452
1456
|
ns: e
|
|
1453
|
-
}),
|
|
1454
|
-
return /* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
] }) : /* @__PURE__ */
|
|
1457
|
+
}), d = (a == null ? void 0 : a.name) || i;
|
|
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: d }) })
|
|
1461
|
+
] }) : /* @__PURE__ */ n("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : l ? c : i }) });
|
|
1458
1462
|
}
|
|
1459
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 = ({
|
|
1460
1464
|
config: e
|
|
@@ -1473,36 +1477,36 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1473
1477
|
const {
|
|
1474
1478
|
currentApp: o
|
|
1475
1479
|
} = Z(), {
|
|
1476
|
-
data:
|
|
1480
|
+
data: l
|
|
1477
1481
|
} = St(e.actions), {
|
|
1478
|
-
isTrashedModalOpen:
|
|
1479
|
-
onTrashedCancel:
|
|
1482
|
+
isTrashedModalOpen: a,
|
|
1483
|
+
onTrashedCancel: c
|
|
1480
1484
|
} = It(), {
|
|
1481
1485
|
isActionDisableModalOpen: p,
|
|
1482
1486
|
onActionDisableCancel: i
|
|
1483
1487
|
} = Ct(), {
|
|
1484
|
-
handleDragEnd:
|
|
1488
|
+
handleDragEnd: d,
|
|
1485
1489
|
handleDragOver: h,
|
|
1486
|
-
handleDragStart:
|
|
1487
|
-
sensors:
|
|
1490
|
+
handleDragStart: u,
|
|
1491
|
+
sensors: g
|
|
1488
1492
|
} = Ft();
|
|
1489
1493
|
_e();
|
|
1490
|
-
const m = ne("publish",
|
|
1494
|
+
const m = ne("publish", l), I = ne("create", l);
|
|
1491
1495
|
return e && /* @__PURE__ */ b(W, { children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1493
|
-
/* @__PURE__ */
|
|
1494
|
-
/* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
m && /* @__PURE__ */
|
|
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: d, 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, {})
|
|
1497
1501
|
] }) }),
|
|
1498
1502
|
/* @__PURE__ */ b(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1499
|
-
/* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
/* @__PURE__ */
|
|
1503
|
+
/* @__PURE__ */ n(Ot, {}),
|
|
1504
|
+
/* @__PURE__ */ n(_t, {}),
|
|
1505
|
+
/* @__PURE__ */ n(kt, {})
|
|
1502
1506
|
] }),
|
|
1503
|
-
/* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
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: [{
|
|
1506
1510
|
src: $t,
|
|
1507
1511
|
alt: "explorer.modal.onboarding.trash.screen1.alt",
|
|
1508
1512
|
text: "explorer.modal.onboarding.trash.screen1.title"
|
|
@@ -1520,8 +1524,8 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
|
|
|
1520
1524
|
nextText: "explorer.modal.onboarding.trash.next",
|
|
1521
1525
|
closeText: "explorer.modal.onboarding.trash.close"
|
|
1522
1526
|
} }),
|
|
1523
|
-
|
|
1524
|
-
p && /* @__PURE__ */
|
|
1527
|
+
a && /* @__PURE__ */ n(Xt, { isOpen: a, onCancel: c }),
|
|
1528
|
+
p && /* @__PURE__ */ n(Jt, { isOpen: p, onCancel: i })
|
|
1525
1529
|
] })
|
|
1526
1530
|
] }) })
|
|
1527
1531
|
] });
|