ode-explorer 1.3.2-dev.202401241042 → 1.3.2-dev.202401241302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/version.txt +1 -1
- package/lib/index2.js +191 -191
- package/package.json +1 -1
package/lib/index2.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var $ = (e, t, s) => (
|
|
4
|
-
import { jsx as c, jsxs as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { useScrollToTop as
|
|
7
|
-
import { ArrowLeft as
|
|
8
|
-
import { useTranslation as
|
|
9
|
-
import { odeServices as
|
|
1
|
+
var he = Object.defineProperty;
|
|
2
|
+
var fe = (e, t, s) => t in e ? he(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var $ = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
+
import { jsx as c, jsxs as N, Fragment as oe } from "react/jsx-runtime";
|
|
5
|
+
import { useState as ae, useRef as pe, useEffect as U, lazy as D, Suspense as v, Fragment as me } from "react";
|
|
6
|
+
import { useScrollToTop as ye, useOdeClient as M, IconButton as ge, useToast as q, useUser as Ie, LoadingScreen as A, FormControl as we, Input as Se, SearchButton as xe, Dropdown as j, useToggle as De, TreeView as be, Button as Te, useXitiTrackPageLoad as Fe, isActionAvailable as ne, AppHeader as Ne, Breadcrumb as Ce, Grid as ee } from "@edifice-ui/react";
|
|
7
|
+
import { ArrowLeft as Re, Filter as Pe, Delete as Ae, Plus as Ee } from "@edifice-ui/icons";
|
|
8
|
+
import { useTranslation as z } from "react-i18next";
|
|
9
|
+
import { odeServices as C, FOLDER as F } from "edifice-ts-client";
|
|
10
10
|
import { t as x } from "i18next";
|
|
11
|
-
import { create as
|
|
12
|
-
import { useQuery as
|
|
13
|
-
const
|
|
14
|
-
const t = await
|
|
11
|
+
import { create as Qe } from "zustand";
|
|
12
|
+
import { useQuery as ve, useInfiniteQuery as qe, useQueryClient as k, useMutation as O } from "@tanstack/react-query";
|
|
13
|
+
const ce = async (e) => {
|
|
14
|
+
const t = await C.resource(e.application).searchContext(e);
|
|
15
15
|
return {
|
|
16
16
|
...t,
|
|
17
17
|
folders: t.folders.filter((s) => !s.trashed)
|
|
@@ -27,8 +27,8 @@ const ie = async (e) => {
|
|
|
27
27
|
application: e.application,
|
|
28
28
|
type: e.types[0]
|
|
29
29
|
};
|
|
30
|
-
return await
|
|
31
|
-
},
|
|
30
|
+
return await C.resource(e.application).createFolder(r);
|
|
31
|
+
}, Oe = async ({
|
|
32
32
|
folderId: e,
|
|
33
33
|
searchParams: t,
|
|
34
34
|
parentId: s,
|
|
@@ -41,8 +41,8 @@ const ie = async (e) => {
|
|
|
41
41
|
application: t.application,
|
|
42
42
|
type: t.types[0]
|
|
43
43
|
};
|
|
44
|
-
return await
|
|
45
|
-
},
|
|
44
|
+
return await C.resource(t.application).updateFolder(n);
|
|
45
|
+
}, Le = async ({
|
|
46
46
|
searchParams: e,
|
|
47
47
|
resourceIds: t,
|
|
48
48
|
useAssetIds: s,
|
|
@@ -54,8 +54,8 @@ const ie = async (e) => {
|
|
|
54
54
|
resourceIds: t,
|
|
55
55
|
folderIds: r
|
|
56
56
|
};
|
|
57
|
-
return await
|
|
58
|
-
},
|
|
57
|
+
return await C.resource(e.application).trashAll(n, s);
|
|
58
|
+
}, Ue = async ({
|
|
59
59
|
searchParams: e,
|
|
60
60
|
resourceIds: t,
|
|
61
61
|
useAssetIds: s,
|
|
@@ -67,7 +67,7 @@ const ie = async (e) => {
|
|
|
67
67
|
resourceIds: t,
|
|
68
68
|
folderIds: r
|
|
69
69
|
};
|
|
70
|
-
return await
|
|
70
|
+
return await C.resource(e.application).deleteAll(n, s);
|
|
71
71
|
}, Me = async ({
|
|
72
72
|
searchParams: e,
|
|
73
73
|
resourceIds: t,
|
|
@@ -80,8 +80,8 @@ const ie = async (e) => {
|
|
|
80
80
|
resourceIds: t,
|
|
81
81
|
folderIds: s
|
|
82
82
|
};
|
|
83
|
-
return await
|
|
84
|
-
},
|
|
83
|
+
return await C.resource(e.application).restoreAll(n, r);
|
|
84
|
+
}, Be = async ({
|
|
85
85
|
searchParams: e,
|
|
86
86
|
resourceIds: t,
|
|
87
87
|
folderId: s,
|
|
@@ -94,31 +94,31 @@ const ie = async (e) => {
|
|
|
94
94
|
resourceIds: t,
|
|
95
95
|
folderIds: r
|
|
96
96
|
};
|
|
97
|
-
return await
|
|
98
|
-
},
|
|
97
|
+
return await C.resource(e.application).moveToFolder(a, n);
|
|
98
|
+
}, Ke = async ({
|
|
99
99
|
searchParams: e,
|
|
100
100
|
resourceId: t,
|
|
101
101
|
rights: s
|
|
102
|
-
}) => await
|
|
102
|
+
}) => await C.share().saveRights(e.application, t, s), $e = async ({
|
|
103
103
|
searchParams: e,
|
|
104
104
|
params: t
|
|
105
|
-
}) => await
|
|
105
|
+
}) => await C.resource(e.application).update(t), je = async (e) => await C.rights().sessionHasWorkflowRights(e), ze = ({
|
|
106
106
|
searchParams: e,
|
|
107
107
|
assetId: t
|
|
108
108
|
}) => {
|
|
109
|
-
const s =
|
|
109
|
+
const s = C.resource(e.application).getViewUrl(t);
|
|
110
110
|
window.open(s, "_self");
|
|
111
|
-
},
|
|
111
|
+
}, _e = ({
|
|
112
112
|
searchParams: e,
|
|
113
113
|
params: t
|
|
114
|
-
}) =>
|
|
114
|
+
}) => C.resource(e.application).create(t), Ve = ({
|
|
115
115
|
searchParams: e,
|
|
116
116
|
assetId: t
|
|
117
117
|
}) => {
|
|
118
|
-
const s =
|
|
118
|
+
const s = C.resource(e.application).getPrintUrl(t);
|
|
119
119
|
return window.open(s, "_blank");
|
|
120
120
|
};
|
|
121
|
-
function
|
|
121
|
+
function se(e) {
|
|
122
122
|
return e.filter((t, s) => e.indexOf(t) === s);
|
|
123
123
|
}
|
|
124
124
|
function V(e, t) {
|
|
@@ -126,24 +126,24 @@ function V(e, t) {
|
|
|
126
126
|
let s;
|
|
127
127
|
return (t == null ? void 0 : t.id) === e ? t : ((r = t == null ? void 0 : t.children) != null && r.length && ((n = t == null ? void 0 : t.children) == null || n.every((a) => (s = V(e, a), s === void 0))), s);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function He(e, t) {
|
|
130
130
|
var r;
|
|
131
131
|
const s = V(e, t);
|
|
132
132
|
return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === F.BIN ? [F.BIN] : [F.DEFAULT];
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) =>
|
|
134
|
+
function ie(e, t) {
|
|
135
|
+
return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) => ie(t.id, s)) : !1;
|
|
136
136
|
}
|
|
137
137
|
function H(e, t) {
|
|
138
|
-
return
|
|
138
|
+
return le(e, t) || e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function le(e, t, s) {
|
|
141
141
|
var n;
|
|
142
142
|
const r = t(e, s);
|
|
143
143
|
if ((n = r == null ? void 0 : r.children) != null && n.length) {
|
|
144
144
|
const a = [];
|
|
145
145
|
for (const o of (r == null ? void 0 : r.children) || []) {
|
|
146
|
-
const l =
|
|
146
|
+
const l = le(o, t, r);
|
|
147
147
|
l && a.push(l);
|
|
148
148
|
}
|
|
149
149
|
return {
|
|
@@ -153,7 +153,7 @@ function de(e, t, s) {
|
|
|
153
153
|
}
|
|
154
154
|
return r;
|
|
155
155
|
}
|
|
156
|
-
class
|
|
156
|
+
class G {
|
|
157
157
|
constructor(t) {
|
|
158
158
|
$(this, "id");
|
|
159
159
|
$(this, "name");
|
|
@@ -163,7 +163,7 @@ class X {
|
|
|
163
163
|
this.folder = t, this.id = t.id, this.name = t.name, this.childNumber = t.childNumber;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)), w = Qe()((e, t) => ({
|
|
167
167
|
config: null,
|
|
168
168
|
searchConfig: {
|
|
169
169
|
minLength: 1
|
|
@@ -313,7 +313,7 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
313
313
|
if (r.length !== 1)
|
|
314
314
|
throw new Error("Cannot open more than 1 resource");
|
|
315
315
|
const a = r.find((o) => o.id === n[0]);
|
|
316
|
-
|
|
316
|
+
Ve({
|
|
317
317
|
searchParams: s,
|
|
318
318
|
assetId: a.assetId
|
|
319
319
|
});
|
|
@@ -328,7 +328,7 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
328
328
|
const {
|
|
329
329
|
searchParams: n,
|
|
330
330
|
treeData: a
|
|
331
|
-
} = t(), o = n.filters.folder, l =
|
|
331
|
+
} = t(), o = n.filters.folder, l = He(s, a), h = se([...l, s]);
|
|
332
332
|
o !== s && e((d) => ({
|
|
333
333
|
...d,
|
|
334
334
|
// reset selection when changing folder
|
|
@@ -361,14 +361,14 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
361
361
|
if (e((o) => ({
|
|
362
362
|
...o,
|
|
363
363
|
status: "unfold"
|
|
364
|
-
})), !
|
|
364
|
+
})), !ie(s, n)) {
|
|
365
365
|
await r.prefetchInfiniteQuery({
|
|
366
366
|
initialPageParam: 0,
|
|
367
367
|
queryKey: ["prefetchContext", {
|
|
368
368
|
folderId: s,
|
|
369
369
|
trashed: !1
|
|
370
370
|
}],
|
|
371
|
-
queryFn: async () => await
|
|
371
|
+
queryFn: async () => await ce({
|
|
372
372
|
...a,
|
|
373
373
|
filters: {
|
|
374
374
|
...a.filters,
|
|
@@ -384,7 +384,7 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
384
384
|
var h;
|
|
385
385
|
return {
|
|
386
386
|
...l,
|
|
387
|
-
treeData:
|
|
387
|
+
treeData: de(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || F.DEFAULT)
|
|
388
388
|
};
|
|
389
389
|
});
|
|
390
390
|
}
|
|
@@ -395,7 +395,7 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
395
395
|
} = t(), {
|
|
396
396
|
openFolder: n
|
|
397
397
|
} = t().updaters, a = V(s, r);
|
|
398
|
-
|
|
398
|
+
ye()(), e((l) => ({
|
|
399
399
|
...l,
|
|
400
400
|
searchParams: {
|
|
401
401
|
...l.searchParams,
|
|
@@ -443,14 +443,14 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
443
443
|
}
|
|
444
444
|
}))
|
|
445
445
|
}
|
|
446
|
-
})), b = () => w((e) => e.searchParams),
|
|
446
|
+
})), b = () => w((e) => e.searchParams), te = () => w((e) => e.selectedNodesIds), _ = () => w((e) => e.treeData), Us = () => w((e) => e.selectedFolders), Ms = () => w((e) => e.selectedResources), We = () => w((e) => e.searchConfig), J = () => w((e) => e.folderIds), X = () => w((e) => e.resourceIds), Y = () => w((e) => e.selectedResources.map((t) => t.assetId)), Z = () => w((e) => e.selectedResources.filter((t) => t.assetId === t.id)), W = () => w((e) => e.currentFolder), S = () => w((e) => e.updaters), re = () => {
|
|
447
447
|
const e = W();
|
|
448
448
|
return (e == null ? void 0 : e.id) === F.BIN;
|
|
449
|
-
}, Ge = () => w((e) => e.resourceIsTrash),
|
|
449
|
+
}, Ge = () => w((e) => e.resourceIsTrash), Je = () => w((e) => e.resourceActionDisable), Xe = () => {
|
|
450
450
|
const e = W();
|
|
451
451
|
return (e == null ? void 0 : e.id) === "default";
|
|
452
|
-
}, Ye = () =>
|
|
453
|
-
const e = b(), [t, s] =
|
|
452
|
+
}, Ye = () => te().length > 1, Ze = () => w((e) => e.status), ue = () => {
|
|
453
|
+
const e = b(), [t, s] = ae(""), r = We(), n = Ze(), a = pe(null), {
|
|
454
454
|
setSearchParams: o
|
|
455
455
|
} = S(), l = (u) => {
|
|
456
456
|
const f = u.target.value;
|
|
@@ -487,25 +487,25 @@ const ue = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
487
487
|
handleSearchSubmit: d
|
|
488
488
|
};
|
|
489
489
|
};
|
|
490
|
-
function
|
|
490
|
+
function es() {
|
|
491
491
|
const {
|
|
492
492
|
appCode: e
|
|
493
|
-
} =
|
|
493
|
+
} = M(), {
|
|
494
494
|
gotoPreviousFolder: t
|
|
495
495
|
} = S(), {
|
|
496
496
|
t: s
|
|
497
|
-
} =
|
|
497
|
+
} = z(), {
|
|
498
498
|
inputSearch: r
|
|
499
|
-
} =
|
|
499
|
+
} = ue(), n = te(), a = re(), o = W(), l = s("explorer.tree.trash"), h = s("explorer.tree.search"), d = s("explorer.filters.mine", {
|
|
500
500
|
ns: e
|
|
501
501
|
}), u = (o == null ? void 0 : o.name) || d;
|
|
502
|
-
return /* @__PURE__ */ c("div", { className: "py-16", children: n.length > 1 && !a ? /* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */ c(
|
|
502
|
+
return /* @__PURE__ */ c("div", { className: "py-16", children: n.length > 1 && !a ? /* @__PURE__ */ N("div", { className: "d-flex align-items-center gap-8", children: [
|
|
503
|
+
/* @__PURE__ */ c(ge, { icon: /* @__PURE__ */ c(Re, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
|
|
504
504
|
/* @__PURE__ */ c("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ c("strong", { children: u }) })
|
|
505
505
|
] }) : /* @__PURE__ */ c("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? h : a ? l : d }) });
|
|
506
506
|
}
|
|
507
|
-
const
|
|
508
|
-
const e =
|
|
507
|
+
const ss = () => {
|
|
508
|
+
const e = Je(), {
|
|
509
509
|
clearSelectedIds: t,
|
|
510
510
|
setResourceActionDisable: s,
|
|
511
511
|
clearSelectedItems: r
|
|
@@ -516,7 +516,7 @@ const ts = () => {
|
|
|
516
516
|
t(), r(), s(!1);
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
},
|
|
519
|
+
}, ts = () => {
|
|
520
520
|
const e = Ge(), {
|
|
521
521
|
clearSelectedIds: t,
|
|
522
522
|
setResourceIsTrash: s,
|
|
@@ -529,17 +529,17 @@ const ts = () => {
|
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
};
|
|
532
|
-
function
|
|
532
|
+
function rs(e, {
|
|
533
533
|
parentId: t,
|
|
534
534
|
newFolder: s
|
|
535
535
|
}) {
|
|
536
536
|
return H(e, (r) => {
|
|
537
537
|
var n;
|
|
538
538
|
if (r.id === t) {
|
|
539
|
-
const a = [...((n = r.folder) == null ? void 0 : n.ancestors) || []], o =
|
|
539
|
+
const a = [...((n = r.folder) == null ? void 0 : n.ancestors) || []], o = se([...a, r.id]);
|
|
540
540
|
return {
|
|
541
541
|
...r,
|
|
542
|
-
children: [...r.children || [], new
|
|
542
|
+
children: [...r.children || [], new G({
|
|
543
543
|
...s,
|
|
544
544
|
ancestors: o
|
|
545
545
|
})]
|
|
@@ -548,7 +548,7 @@ function ns(e, {
|
|
|
548
548
|
return r;
|
|
549
549
|
});
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function ns(e, {
|
|
552
552
|
folders: t
|
|
553
553
|
}) {
|
|
554
554
|
return H(e, (s) => {
|
|
@@ -556,14 +556,14 @@ function os(e, {
|
|
|
556
556
|
return s;
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function os(e, {
|
|
560
560
|
destinationId: t,
|
|
561
561
|
folders: s
|
|
562
562
|
}) {
|
|
563
563
|
return H(e, (r, n) => {
|
|
564
564
|
var a, o;
|
|
565
565
|
if (t === r.id) {
|
|
566
|
-
const l = [...((a = r.folder) == null ? void 0 : a.ancestors) || []], h =
|
|
566
|
+
const l = [...((a = r.folder) == null ? void 0 : a.ancestors) || []], h = se([...l, r.id]), d = [...r.children || []], u = ((o = r.children) == null ? void 0 : o.map((i) => i.id)) || [];
|
|
567
567
|
for (const i of s)
|
|
568
568
|
if (!u.includes(i)) {
|
|
569
569
|
const p = V(i, e);
|
|
@@ -583,19 +583,19 @@ function as(e, {
|
|
|
583
583
|
return s.includes(r.id) && t !== (n == null ? void 0 : n.id) ? void 0 : r;
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function as(e, {
|
|
587
587
|
folderId: t,
|
|
588
588
|
newFolder: s
|
|
589
589
|
}) {
|
|
590
|
-
return H(e, (r) => r.id === t ? new
|
|
590
|
+
return H(e, (r) => r.id === t ? new G(s) : r);
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const cs = () => {
|
|
593
593
|
const e = w((t) => t.config);
|
|
594
|
-
return
|
|
594
|
+
return ve({
|
|
595
595
|
queryKey: ["actions"],
|
|
596
596
|
queryFn: async () => {
|
|
597
597
|
const t = e == null ? void 0 : e.actions.map((r) => r.workflow);
|
|
598
|
-
return await
|
|
598
|
+
return await je(t);
|
|
599
599
|
},
|
|
600
600
|
select: (t) => e == null ? void 0 : e.actions.map((s) => ({
|
|
601
601
|
...s,
|
|
@@ -604,7 +604,7 @@ const is = () => {
|
|
|
604
604
|
staleTime: 1 / 0,
|
|
605
605
|
enabled: !!e
|
|
606
606
|
});
|
|
607
|
-
},
|
|
607
|
+
}, is = () => {
|
|
608
608
|
const e = w((o) => o.config), t = b(), {
|
|
609
609
|
filters: s,
|
|
610
610
|
trashed: r,
|
|
@@ -615,11 +615,11 @@ const is = () => {
|
|
|
615
615
|
trashed: r,
|
|
616
616
|
search: n
|
|
617
617
|
}];
|
|
618
|
-
return
|
|
618
|
+
return qe({
|
|
619
619
|
queryKey: a,
|
|
620
620
|
queryFn: async ({
|
|
621
621
|
pageParam: o
|
|
622
|
-
}) => await
|
|
622
|
+
}) => await ce({
|
|
623
623
|
...t,
|
|
624
624
|
application: e == null ? void 0 : e.app,
|
|
625
625
|
types: e == null ? void 0 : e.types,
|
|
@@ -633,8 +633,8 @@ const is = () => {
|
|
|
633
633
|
retry: !1,
|
|
634
634
|
getNextPageParam: (o) => o.pagination.startIdx + o.pagination.pageSize
|
|
635
635
|
});
|
|
636
|
-
},
|
|
637
|
-
const e = q(), t =
|
|
636
|
+
}, Bs = () => {
|
|
637
|
+
const e = q(), t = k(), s = b(), r = _(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
|
|
638
638
|
clearSelectedItems: d,
|
|
639
639
|
clearSelectedIds: u,
|
|
640
640
|
setTreeData: f,
|
|
@@ -647,8 +647,8 @@ const is = () => {
|
|
|
647
647
|
filters: p,
|
|
648
648
|
trashed: m
|
|
649
649
|
}];
|
|
650
|
-
return
|
|
651
|
-
mutationFn: async () => await
|
|
650
|
+
return O({
|
|
651
|
+
mutationFn: async () => await Le({
|
|
652
652
|
searchParams: s,
|
|
653
653
|
folderIds: n,
|
|
654
654
|
resourceIds: h,
|
|
@@ -679,10 +679,10 @@ const is = () => {
|
|
|
679
679
|
resources: R.resources.filter((Q) => l ? !a.includes(Q.assetId) : !h.includes(Q.id))
|
|
680
680
|
};
|
|
681
681
|
})
|
|
682
|
-
},
|
|
682
|
+
}, B = ns(r, {
|
|
683
683
|
folders: n
|
|
684
684
|
});
|
|
685
|
-
return f(
|
|
685
|
+
return f(B), i({
|
|
686
686
|
...s,
|
|
687
687
|
pagination: {
|
|
688
688
|
...s.pagination,
|
|
@@ -697,8 +697,8 @@ const is = () => {
|
|
|
697
697
|
d(), u();
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
},
|
|
701
|
-
const e = q(), t =
|
|
700
|
+
}, Ks = () => {
|
|
701
|
+
const e = q(), t = k(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
702
702
|
setFolderIds: h,
|
|
703
703
|
setResourceIds: d,
|
|
704
704
|
setSelectedResources: u,
|
|
@@ -711,7 +711,7 @@ const is = () => {
|
|
|
711
711
|
filters: i,
|
|
712
712
|
trashed: p
|
|
713
713
|
}];
|
|
714
|
-
return
|
|
714
|
+
return O({
|
|
715
715
|
mutationFn: async () => await Me({
|
|
716
716
|
searchParams: s,
|
|
717
717
|
folderIds: r,
|
|
@@ -741,8 +741,8 @@ const is = () => {
|
|
|
741
741
|
d([]), u([]), h([]), f([]);
|
|
742
742
|
}
|
|
743
743
|
});
|
|
744
|
-
},
|
|
745
|
-
const e = q(), t =
|
|
744
|
+
}, $s = () => {
|
|
745
|
+
const e = q(), t = k(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
746
746
|
clearSelectedItems: h,
|
|
747
747
|
clearSelectedIds: d
|
|
748
748
|
} = S(), {
|
|
@@ -753,8 +753,8 @@ const is = () => {
|
|
|
753
753
|
filters: u,
|
|
754
754
|
trashed: f
|
|
755
755
|
}];
|
|
756
|
-
return
|
|
757
|
-
mutationFn: async () => await
|
|
756
|
+
return O({
|
|
757
|
+
mutationFn: async () => await Ue({
|
|
758
758
|
searchParams: s,
|
|
759
759
|
folderIds: r,
|
|
760
760
|
resourceIds: l,
|
|
@@ -783,8 +783,8 @@ const is = () => {
|
|
|
783
783
|
h(), d();
|
|
784
784
|
}
|
|
785
785
|
});
|
|
786
|
-
},
|
|
787
|
-
const e = q(), t =
|
|
786
|
+
}, js = () => {
|
|
787
|
+
const e = q(), t = k(), s = b(), r = _(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
|
|
788
788
|
clearSelectedIds: d,
|
|
789
789
|
clearSelectedItems: u,
|
|
790
790
|
setTreeData: f,
|
|
@@ -797,8 +797,8 @@ const is = () => {
|
|
|
797
797
|
filters: p,
|
|
798
798
|
trashed: m
|
|
799
799
|
}];
|
|
800
|
-
return
|
|
801
|
-
mutationFn: async (y) => await
|
|
800
|
+
return O({
|
|
801
|
+
mutationFn: async (y) => await Be({
|
|
802
802
|
searchParams: s,
|
|
803
803
|
folderId: y,
|
|
804
804
|
folderIds: n,
|
|
@@ -813,7 +813,7 @@ const is = () => {
|
|
|
813
813
|
return t.setQueryData(g, (E) => {
|
|
814
814
|
var L;
|
|
815
815
|
if (E) {
|
|
816
|
-
const
|
|
816
|
+
const B = os(r, {
|
|
817
817
|
destinationId: I,
|
|
818
818
|
folders: n
|
|
819
819
|
}), R = {
|
|
@@ -832,7 +832,7 @@ const is = () => {
|
|
|
832
832
|
};
|
|
833
833
|
})
|
|
834
834
|
};
|
|
835
|
-
return f(
|
|
835
|
+
return f(B), i({
|
|
836
836
|
...s,
|
|
837
837
|
pagination: {
|
|
838
838
|
...s.pagination,
|
|
@@ -848,7 +848,7 @@ const is = () => {
|
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
}, zs = () => {
|
|
851
|
-
const e = q(), t =
|
|
851
|
+
const e = q(), t = k(), s = b(), r = _(), {
|
|
852
852
|
setTreeData: n
|
|
853
853
|
} = S(), {
|
|
854
854
|
filters: a,
|
|
@@ -858,7 +858,7 @@ const is = () => {
|
|
|
858
858
|
filters: a,
|
|
859
859
|
trashed: o
|
|
860
860
|
}];
|
|
861
|
-
return
|
|
861
|
+
return O({
|
|
862
862
|
mutationFn: async ({
|
|
863
863
|
name: h,
|
|
864
864
|
parentId: d
|
|
@@ -889,7 +889,7 @@ const is = () => {
|
|
|
889
889
|
...g,
|
|
890
890
|
folders: [...g.folders, f]
|
|
891
891
|
}))
|
|
892
|
-
}, m =
|
|
892
|
+
}, m = rs(r, {
|
|
893
893
|
parentId: d.parentId,
|
|
894
894
|
newFolder: f
|
|
895
895
|
});
|
|
@@ -898,8 +898,8 @@ const is = () => {
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
|
-
},
|
|
902
|
-
const e = q(), t =
|
|
901
|
+
}, _s = () => {
|
|
902
|
+
const e = q(), t = k(), s = b(), r = _(), {
|
|
903
903
|
setFolderIds: n,
|
|
904
904
|
setSelectedFolders: a,
|
|
905
905
|
setTreeData: o
|
|
@@ -911,12 +911,12 @@ const is = () => {
|
|
|
911
911
|
filters: l,
|
|
912
912
|
trashed: h
|
|
913
913
|
}];
|
|
914
|
-
return
|
|
914
|
+
return O({
|
|
915
915
|
mutationFn: async ({
|
|
916
916
|
folderId: u,
|
|
917
917
|
name: f,
|
|
918
918
|
parentId: i
|
|
919
|
-
}) => await
|
|
919
|
+
}) => await Oe({
|
|
920
920
|
searchParams: s,
|
|
921
921
|
folderId: u,
|
|
922
922
|
parentId: i,
|
|
@@ -941,7 +941,7 @@ const is = () => {
|
|
|
941
941
|
rights: I.rights
|
|
942
942
|
} : I)
|
|
943
943
|
}))
|
|
944
|
-
}, g =
|
|
944
|
+
}, g = as(r, {
|
|
945
945
|
folderId: f.folderId,
|
|
946
946
|
newFolder: u
|
|
947
947
|
});
|
|
@@ -953,8 +953,8 @@ const is = () => {
|
|
|
953
953
|
n([]), a([]);
|
|
954
954
|
}
|
|
955
955
|
});
|
|
956
|
-
},
|
|
957
|
-
const e = q(), t =
|
|
956
|
+
}, Vs = () => {
|
|
957
|
+
const e = q(), t = k(), s = b(), {
|
|
958
958
|
setResourceIds: r,
|
|
959
959
|
setSelectedResources: n
|
|
960
960
|
} = S(), {
|
|
@@ -965,11 +965,11 @@ const is = () => {
|
|
|
965
965
|
filters: a,
|
|
966
966
|
trashed: o
|
|
967
967
|
}];
|
|
968
|
-
return
|
|
968
|
+
return O({
|
|
969
969
|
mutationFn: async ({
|
|
970
970
|
resourceId: h,
|
|
971
971
|
rights: d
|
|
972
|
-
}) => await
|
|
972
|
+
}) => await Ke({
|
|
973
973
|
searchParams: s,
|
|
974
974
|
resourceId: h,
|
|
975
975
|
rights: d
|
|
@@ -1005,8 +1005,8 @@ const is = () => {
|
|
|
1005
1005
|
r([]), n([]);
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
|
-
},
|
|
1009
|
-
const e = q(), t =
|
|
1008
|
+
}, Hs = () => {
|
|
1009
|
+
const e = q(), t = k(), s = b(), {
|
|
1010
1010
|
filters: r,
|
|
1011
1011
|
trashed: n
|
|
1012
1012
|
} = s, a = ["context", {
|
|
@@ -1014,8 +1014,8 @@ const is = () => {
|
|
|
1014
1014
|
filters: r,
|
|
1015
1015
|
trashed: n
|
|
1016
1016
|
}];
|
|
1017
|
-
return
|
|
1018
|
-
mutationFn: async (o) => await
|
|
1017
|
+
return O({
|
|
1018
|
+
mutationFn: async (o) => await $e({
|
|
1019
1019
|
searchParams: s,
|
|
1020
1020
|
params: o
|
|
1021
1021
|
}),
|
|
@@ -1060,18 +1060,18 @@ const is = () => {
|
|
|
1060
1060
|
});
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
|
-
},
|
|
1064
|
-
const e = q(), t =
|
|
1063
|
+
}, Ws = () => {
|
|
1064
|
+
const e = q(), t = k(), s = b(), {
|
|
1065
1065
|
user: r
|
|
1066
|
-
} =
|
|
1066
|
+
} = Ie(), {
|
|
1067
1067
|
appCode: n
|
|
1068
|
-
} =
|
|
1068
|
+
} = M(), a = ["context", {
|
|
1069
1069
|
folderId: s.filters.folder,
|
|
1070
1070
|
filters: s.filters,
|
|
1071
1071
|
trashed: s.trashed
|
|
1072
1072
|
}];
|
|
1073
|
-
return
|
|
1074
|
-
mutationFn: async (o) => await
|
|
1073
|
+
return O({
|
|
1074
|
+
mutationFn: async (o) => await _e({
|
|
1075
1075
|
searchParams: s,
|
|
1076
1076
|
params: o
|
|
1077
1077
|
}),
|
|
@@ -1115,12 +1115,12 @@ const is = () => {
|
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
});
|
|
1118
|
-
},
|
|
1119
|
-
const e =
|
|
1118
|
+
}, ls = /* @__PURE__ */ D(async () => await import("./EmptyScreenApp.js")), ds = /* @__PURE__ */ D(async () => await import("./EmptyScreenSearch.js")), us = /* @__PURE__ */ D(async () => await import("./EmptyScreenError.js")), hs = /* @__PURE__ */ D(async () => await import("./EmptyScreenNoContentInFolder.js")), fs = /* @__PURE__ */ D(async () => await import("./EmptyScreenTrash.js")), ps = /* @__PURE__ */ D(async () => await import("./FoldersList.js")), ms = /* @__PURE__ */ D(async () => await import("./ResourcesList.js")), ys = () => {
|
|
1119
|
+
const e = Xe(), t = re(), s = Ye(), r = b(), n = W(), a = _(), o = q(), {
|
|
1120
1120
|
appCode: l
|
|
1121
|
-
} =
|
|
1121
|
+
} = M(), {
|
|
1122
1122
|
t: h
|
|
1123
|
-
} =
|
|
1123
|
+
} = z(), {
|
|
1124
1124
|
setSearchParams: d,
|
|
1125
1125
|
setSearchConfig: u,
|
|
1126
1126
|
setTreeData: f
|
|
@@ -1131,36 +1131,36 @@ const is = () => {
|
|
|
1131
1131
|
isLoading: g,
|
|
1132
1132
|
isFetching: y,
|
|
1133
1133
|
fetchNextPage: I
|
|
1134
|
-
} =
|
|
1134
|
+
} = is(), T = (i == null ? void 0 : i.pages[0].folders.length) === 0, E = (i == null ? void 0 : i.pages[0].resources.length) === 0, L = T && E;
|
|
1135
1135
|
return U(() => {
|
|
1136
|
-
var
|
|
1136
|
+
var B, R, P;
|
|
1137
1137
|
if (i) {
|
|
1138
|
-
const Q = [...((
|
|
1138
|
+
const Q = [...((B = i == null ? void 0 : i.pages[0]) == null ? void 0 : B.folders) ?? []];
|
|
1139
1139
|
(R = i == null ? void 0 : i.pages[0]) != null && R.searchConfig && u(i.pages[0].searchConfig), r.search || ((n == null ? void 0 : n.id) === "default" ? f({
|
|
1140
1140
|
id: F.DEFAULT,
|
|
1141
1141
|
section: !0,
|
|
1142
|
-
children: Q.map((K) => new
|
|
1142
|
+
children: Q.map((K) => new G(K)),
|
|
1143
1143
|
name: h("explorer.filters.mine", {
|
|
1144
1144
|
ns: l
|
|
1145
1145
|
})
|
|
1146
|
-
}) : f(
|
|
1146
|
+
}) : f(de(a, Q, r.filters.folder || F.DEFAULT))), d({
|
|
1147
1147
|
...r,
|
|
1148
1148
|
pagination: (P = i == null ? void 0 : i.pages[(i == null ? void 0 : i.pages.length) - 1]) == null ? void 0 : P.pagination
|
|
1149
1149
|
});
|
|
1150
1150
|
}
|
|
1151
1151
|
}, [i]), U(() => {
|
|
1152
1152
|
m && typeof m == "string" && o.error(h(m));
|
|
1153
|
-
}, [m]), g ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(
|
|
1154
|
-
/* @__PURE__ */ c(
|
|
1155
|
-
/* @__PURE__ */ c(
|
|
1153
|
+
}, [m]), g ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(us, {}) }) : r.search && L ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ds, {}) }) : e && L ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ls, {}) }) : s && L && !t ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(hs, {}) }) : t && (i == null ? void 0 : i.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(fs, {}) }) : /* @__PURE__ */ N(v, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1154
|
+
/* @__PURE__ */ c(ps, { data: i, isFetching: y }),
|
|
1155
|
+
/* @__PURE__ */ c(ms, { data: i, isFetching: y, fetchNextPage: I })
|
|
1156
1156
|
] });
|
|
1157
|
-
},
|
|
1157
|
+
}, gs = () => {
|
|
1158
1158
|
const {
|
|
1159
1159
|
appCode: e,
|
|
1160
1160
|
currentApp: t
|
|
1161
|
-
} =
|
|
1161
|
+
} = M(), {
|
|
1162
1162
|
t: s
|
|
1163
|
-
} =
|
|
1163
|
+
} = z(), [r, n] = ae(""), a = (u) => {
|
|
1164
1164
|
if (u === "0") {
|
|
1165
1165
|
n("");
|
|
1166
1166
|
return;
|
|
@@ -1196,10 +1196,10 @@ const is = () => {
|
|
|
1196
1196
|
ns: e
|
|
1197
1197
|
}),
|
|
1198
1198
|
value: "2"
|
|
1199
|
-
}, ...(t == null ? void 0 : t.displayName) ==
|
|
1199
|
+
}, ...(t == null ? void 0 : t.displayName) == "exercizer" ? [{
|
|
1200
1200
|
label: "Exercices interactifs",
|
|
1201
1201
|
value: "3"
|
|
1202
|
-
}] : [], ...(t == null ? void 0 : t.displayName) ==
|
|
1202
|
+
}] : [], ...(t == null ? void 0 : t.displayName) == "exercizer" ? [{
|
|
1203
1203
|
label: "Exercices à rendre",
|
|
1204
1204
|
value: "4"
|
|
1205
1205
|
}] : [], ...(t == null ? void 0 : t.displayName) == "pages" ? [{
|
|
@@ -1208,7 +1208,7 @@ const is = () => {
|
|
|
1208
1208
|
}] : [], ...(t == null ? void 0 : t.displayName) == "pages" ? [{
|
|
1209
1209
|
label: "Projets internes",
|
|
1210
1210
|
value: "6"
|
|
1211
|
-
}] : [], ...(t == null ? void 0 : t.displayName) ==
|
|
1211
|
+
}] : [], ...(t == null ? void 0 : t.displayName) == "blog" ? [{
|
|
1212
1212
|
label: s("explorer.filter.public", {
|
|
1213
1213
|
ns: e
|
|
1214
1214
|
}),
|
|
@@ -1219,57 +1219,57 @@ const is = () => {
|
|
|
1219
1219
|
options: d,
|
|
1220
1220
|
handleOnSelectFilter: a
|
|
1221
1221
|
};
|
|
1222
|
-
},
|
|
1222
|
+
}, Is = () => {
|
|
1223
1223
|
const {
|
|
1224
1224
|
appCode: e
|
|
1225
|
-
} =
|
|
1225
|
+
} = M(), {
|
|
1226
1226
|
t
|
|
1227
|
-
} =
|
|
1227
|
+
} = z(), {
|
|
1228
1228
|
selectedFilters: s,
|
|
1229
1229
|
options: r,
|
|
1230
1230
|
handleOnSelectFilter: n
|
|
1231
|
-
} =
|
|
1231
|
+
} = gs(), {
|
|
1232
1232
|
formRef: a,
|
|
1233
1233
|
inputSearch: o,
|
|
1234
1234
|
handleInputSearchChange: l,
|
|
1235
1235
|
handleKeyPress: h,
|
|
1236
1236
|
handleSearchSubmit: d
|
|
1237
|
-
} =
|
|
1238
|
-
return /* @__PURE__ */
|
|
1239
|
-
/* @__PURE__ */
|
|
1240
|
-
/* @__PURE__ */ c(
|
|
1237
|
+
} = ue(), u = s.length > 0 ? s.length : void 0;
|
|
1238
|
+
return /* @__PURE__ */ N("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8", ref: a, children: [
|
|
1239
|
+
/* @__PURE__ */ N(we, { id: "search", className: "input-group", children: [
|
|
1240
|
+
/* @__PURE__ */ c(Se, { type: "search", placeholder: t("explorer.label.search", {
|
|
1241
1241
|
ns: e
|
|
1242
1242
|
}), size: "lg", noValidationIcon: !0, value: o, onChange: l, onKeyDown: h }),
|
|
1243
|
-
/* @__PURE__ */ c(
|
|
1243
|
+
/* @__PURE__ */ c(xe, { type: "submit", "aria-label": t("explorer.label.search", {
|
|
1244
1244
|
ns: e
|
|
1245
1245
|
}), onClick: d })
|
|
1246
1246
|
] }),
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */ c(j.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ c(
|
|
1249
|
-
/* @__PURE__ */ c(j.Menu, { children: r.map((f) => f.value === "0" ? /* @__PURE__ */
|
|
1247
|
+
/* @__PURE__ */ N(j, { placement: "bottom-end", children: [
|
|
1248
|
+
/* @__PURE__ */ c(j.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ c(Pe, { width: 20 }), variant: "ghost", badgeContent: u }),
|
|
1249
|
+
/* @__PURE__ */ c(j.Menu, { children: r.map((f) => f.value === "0" ? /* @__PURE__ */ N(me, { children: [
|
|
1250
1250
|
/* @__PURE__ */ c(j.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }),
|
|
1251
1251
|
/* @__PURE__ */ c(j.Separator, {})
|
|
1252
1252
|
] }, "0") : /* @__PURE__ */ c(j.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }, f.value)) })
|
|
1253
1253
|
] })
|
|
1254
1254
|
] });
|
|
1255
|
-
},
|
|
1255
|
+
}, ws = ({
|
|
1256
1256
|
id: e,
|
|
1257
1257
|
selected: t,
|
|
1258
1258
|
onSelect: s
|
|
1259
1259
|
}) => {
|
|
1260
1260
|
const {
|
|
1261
1261
|
t: r
|
|
1262
|
-
} =
|
|
1263
|
-
return /* @__PURE__ */ c("div", { className: "treeview", children: /* @__PURE__ */ c("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ c("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("div", { className: "action-container", children: /* @__PURE__ */ c("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */ c(
|
|
1262
|
+
} = z();
|
|
1263
|
+
return /* @__PURE__ */ c("div", { className: "treeview", children: /* @__PURE__ */ c("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ c("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("div", { className: "action-container", children: /* @__PURE__ */ c("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ N("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
|
|
1264
|
+
/* @__PURE__ */ c(Ae, { width: "20", height: "20" }),
|
|
1265
1265
|
/* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
|
|
1266
1266
|
] }) }) }) }) }) }) });
|
|
1267
|
-
},
|
|
1268
|
-
const e =
|
|
1267
|
+
}, Ss = /* @__PURE__ */ D(async () => await import("./FolderModal.js")), xs = () => {
|
|
1268
|
+
const e = k(), [t, s] = De(), r = _(), n = re(), a = te(), {
|
|
1269
1269
|
appCode: o
|
|
1270
|
-
} =
|
|
1270
|
+
} = M(), {
|
|
1271
1271
|
t: l
|
|
1272
|
-
} =
|
|
1272
|
+
} = z(["common", o]), {
|
|
1273
1273
|
goToTrash: h,
|
|
1274
1274
|
selectTreeItem: d,
|
|
1275
1275
|
unfoldTreeItem: u,
|
|
@@ -1281,13 +1281,13 @@ const is = () => {
|
|
|
1281
1281
|
}, g = () => {
|
|
1282
1282
|
i(), p(), s();
|
|
1283
1283
|
};
|
|
1284
|
-
return /* @__PURE__ */
|
|
1285
|
-
/* @__PURE__ */ c(
|
|
1286
|
-
/* @__PURE__ */ c(
|
|
1287
|
-
/* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(
|
|
1288
|
-
/* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(
|
|
1284
|
+
return /* @__PURE__ */ N(oe, { children: [
|
|
1285
|
+
/* @__PURE__ */ c(be, { data: r, selectedNodesIds: a, onTreeItemSelect: d, onTreeItemFold: f, onTreeItemUnfold: m }),
|
|
1286
|
+
/* @__PURE__ */ c(ws, { id: F.BIN, selected: n, onSelect: h }),
|
|
1287
|
+
/* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Te, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(Ee, {}), onClick: g, children: l("explorer.folder.new") }) }),
|
|
1288
|
+
/* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(Ss, { edit: !1, isOpen: t, onSuccess: s, onCancel: s }) })
|
|
1289
1289
|
] });
|
|
1290
|
-
},
|
|
1290
|
+
}, Ds = /* @__PURE__ */ D(async () => await import("./AppAction.js")), bs = /* @__PURE__ */ D(async () => await import("./Library.js")), Ts = /* @__PURE__ */ D(async () => await import("./ActionBarContainer.js")), Fs = /* @__PURE__ */ D(async () => await import("./DisableModal.js")), Ns = /* @__PURE__ */ D(async () => await import("./TrashModal.js")), Cs = /* @__PURE__ */ D(async () => await import("./OnboardingModal.js")), Gs = ({
|
|
1291
1291
|
config: e
|
|
1292
1292
|
}) => {
|
|
1293
1293
|
const t = b(), {
|
|
@@ -1303,32 +1303,32 @@ const is = () => {
|
|
|
1303
1303
|
}, [e]);
|
|
1304
1304
|
const {
|
|
1305
1305
|
currentApp: n
|
|
1306
|
-
} =
|
|
1306
|
+
} = M(), {
|
|
1307
1307
|
data: a
|
|
1308
|
-
} =
|
|
1308
|
+
} = cs(), {
|
|
1309
1309
|
isTrashedModalOpen: o,
|
|
1310
1310
|
onTrashedCancel: l
|
|
1311
|
-
} =
|
|
1311
|
+
} = ts(), {
|
|
1312
1312
|
isActionDisableModalOpen: h,
|
|
1313
1313
|
onActionDisableCancel: d
|
|
1314
|
-
} =
|
|
1315
|
-
|
|
1316
|
-
const u =
|
|
1317
|
-
return e && /* @__PURE__ */
|
|
1318
|
-
/* @__PURE__ */ c(Ne, { render: () => f ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(
|
|
1319
|
-
/* @__PURE__ */
|
|
1320
|
-
/* @__PURE__ */ c(ee.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */
|
|
1321
|
-
/* @__PURE__ */ c(
|
|
1322
|
-
u && /* @__PURE__ */ c(
|
|
1314
|
+
} = ss();
|
|
1315
|
+
Fe();
|
|
1316
|
+
const u = ne("publish", a), f = ne("create", a);
|
|
1317
|
+
return e && /* @__PURE__ */ N(oe, { children: [
|
|
1318
|
+
/* @__PURE__ */ c(Ne, { render: () => f ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(Ds, {}) }) : null, children: /* @__PURE__ */ c(Ce, { app: n }) }),
|
|
1319
|
+
/* @__PURE__ */ N(ee, { className: "flex-grow-1", children: [
|
|
1320
|
+
/* @__PURE__ */ c(ee.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ N(v, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1321
|
+
/* @__PURE__ */ c(xs, {}),
|
|
1322
|
+
u && /* @__PURE__ */ c(bs, {})
|
|
1323
1323
|
] }) }),
|
|
1324
|
-
/* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */ c(
|
|
1326
|
-
/* @__PURE__ */ c(
|
|
1327
|
-
/* @__PURE__ */ c(
|
|
1324
|
+
/* @__PURE__ */ N(ee.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1325
|
+
/* @__PURE__ */ c(Is, {}),
|
|
1326
|
+
/* @__PURE__ */ c(es, {}),
|
|
1327
|
+
/* @__PURE__ */ c(ys, {})
|
|
1328
1328
|
] }),
|
|
1329
|
-
/* @__PURE__ */
|
|
1330
|
-
/* @__PURE__ */ c(
|
|
1331
|
-
/* @__PURE__ */ c(
|
|
1329
|
+
/* @__PURE__ */ N(v, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1330
|
+
/* @__PURE__ */ c(Ts, {}),
|
|
1331
|
+
/* @__PURE__ */ c(Cs, { id: "showOnboardingTrash", items: [{
|
|
1332
1332
|
src: "onboarding/illu-trash-menu.svg",
|
|
1333
1333
|
alt: "explorer.modal.onboarding.trash.screen1.alt",
|
|
1334
1334
|
text: "explorer.modal.onboarding.trash.screen1.title"
|
|
@@ -1347,32 +1347,32 @@ const is = () => {
|
|
|
1347
1347
|
closeText: "explorer.modal.onboarding.trash.close"
|
|
1348
1348
|
} }),
|
|
1349
1349
|
o && /* @__PURE__ */ c(Ns, { isOpen: o, onCancel: l }),
|
|
1350
|
-
h && /* @__PURE__ */ c(
|
|
1350
|
+
h && /* @__PURE__ */ c(Fs, { isOpen: h, onCancel: d })
|
|
1351
1351
|
] })
|
|
1352
1352
|
] })
|
|
1353
1353
|
] });
|
|
1354
1354
|
};
|
|
1355
1355
|
export {
|
|
1356
1356
|
Gs as E,
|
|
1357
|
-
|
|
1357
|
+
cs as a,
|
|
1358
1358
|
W as b,
|
|
1359
|
-
|
|
1360
|
-
|
|
1359
|
+
Ws as c,
|
|
1360
|
+
re as d,
|
|
1361
1361
|
w as e,
|
|
1362
|
-
|
|
1362
|
+
X as f,
|
|
1363
1363
|
Ms as g,
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1364
|
+
Us as h,
|
|
1365
|
+
J as i,
|
|
1366
|
+
Ks as j,
|
|
1367
1367
|
Ge as k,
|
|
1368
|
-
|
|
1369
|
-
|
|
1368
|
+
Vs as l,
|
|
1369
|
+
Hs as m,
|
|
1370
1370
|
b as n,
|
|
1371
1371
|
zs as o,
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1372
|
+
_s as p,
|
|
1373
|
+
$s as q,
|
|
1374
|
+
Bs as r,
|
|
1375
|
+
js as s,
|
|
1376
|
+
_ as t,
|
|
1377
1377
|
S as u
|
|
1378
1378
|
};
|