ode-explorer 1.3.2-dev.202401241302 → 1.3.2-develop-pedago.202401251156

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/lib/index2.js CHANGED
@@ -1,17 +1,17 @@
1
1
  var he = Object.defineProperty;
2
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);
3
+ var _ = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
4
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";
5
+ import { useState as ae, useRef as pe, useEffect as U, lazy as b, Suspense as v, Fragment as me } from "react";
6
+ import { useScrollToTop as ge, useOdeClient as M, IconButton as ye, useToast as q, useUser as Ie, LoadingScreen as A, FormControl as we, Input as Se, SearchButton as xe, Dropdown as $, useToggle as De, TreeView as be, Button as Te, useXitiTrackPageLoad as Fe, isActionAvailable as ne, AppHeader as Ce, Breadcrumb as Ne, Grid as ee } from "@edifice-ui/react";
7
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
- import { t as x } from "i18next";
8
+ import { useTranslation as j } from "react-i18next";
9
+ import { odeServices as S, FOLDER as C } from "edifice-ts-client";
10
+ import { t as D } from "i18next";
11
11
  import { create as Qe } from "zustand";
12
12
  import { useQuery as ve, useInfiniteQuery as qe, useQueryClient as k, useMutation as O } from "@tanstack/react-query";
13
13
  const ce = async (e) => {
14
- const t = await C.resource(e.application).searchContext(e);
14
+ const t = await S.resource(e.application).searchContext(e);
15
15
  return {
16
16
  ...t,
17
17
  folders: t.folders.filter((s) => !s.trashed)
@@ -27,7 +27,7 @@ const ce = async (e) => {
27
27
  application: e.application,
28
28
  type: e.types[0]
29
29
  };
30
- return await C.resource(e.application).createFolder(r);
30
+ return await S.resource(e.application).createFolder(r);
31
31
  }, Oe = async ({
32
32
  folderId: e,
33
33
  searchParams: t,
@@ -41,7 +41,7 @@ const ce = async (e) => {
41
41
  application: t.application,
42
42
  type: t.types[0]
43
43
  };
44
- return await C.resource(t.application).updateFolder(n);
44
+ return await S.resource(t.application).updateFolder(n);
45
45
  }, Le = async ({
46
46
  searchParams: e,
47
47
  resourceIds: t,
@@ -54,7 +54,7 @@ const ce = async (e) => {
54
54
  resourceIds: t,
55
55
  folderIds: r
56
56
  };
57
- return await C.resource(e.application).trashAll(n, s);
57
+ return await S.resource(e.application).trashAll(n, s);
58
58
  }, Ue = async ({
59
59
  searchParams: e,
60
60
  resourceIds: t,
@@ -67,7 +67,7 @@ const ce = async (e) => {
67
67
  resourceIds: t,
68
68
  folderIds: r
69
69
  };
70
- return await C.resource(e.application).deleteAll(n, s);
70
+ return await S.resource(e.application).deleteAll(n, s);
71
71
  }, Me = async ({
72
72
  searchParams: e,
73
73
  resourceIds: t,
@@ -80,7 +80,7 @@ const ce = async (e) => {
80
80
  resourceIds: t,
81
81
  folderIds: s
82
82
  };
83
- return await C.resource(e.application).restoreAll(n, r);
83
+ return await S.resource(e.application).restoreAll(n, r);
84
84
  }, Be = async ({
85
85
  searchParams: e,
86
86
  resourceIds: t,
@@ -94,29 +94,41 @@ const ce = async (e) => {
94
94
  resourceIds: t,
95
95
  folderIds: r
96
96
  };
97
- return await C.resource(e.application).moveToFolder(a, n);
97
+ return await S.resource(e.application).moveToFolder(a, n);
98
98
  }, Ke = async ({
99
99
  searchParams: e,
100
100
  resourceId: t,
101
101
  rights: s
102
- }) => await C.share().saveRights(e.application, t, s), $e = async ({
102
+ }) => await S.share().saveRights(e.application, t, s), _e = async ({
103
103
  searchParams: e,
104
104
  params: t
105
- }) => await C.resource(e.application).update(t), je = async (e) => await C.rights().sessionHasWorkflowRights(e), ze = ({
105
+ }) => await S.resource(e.application).update(t), $e = async (e) => await S.rights().sessionHasWorkflowRights(e), je = ({
106
106
  searchParams: e,
107
107
  assetId: t
108
108
  }) => {
109
- const s = C.resource(e.application).getViewUrl(t);
109
+ const s = S.resource(e.application).getViewUrl(t);
110
110
  window.open(s, "_self");
111
- }, _e = ({
111
+ }, ze = ({
112
112
  searchParams: e,
113
113
  params: t
114
- }) => C.resource(e.application).create(t), Ve = ({
114
+ }) => S.resource(e.application).create(t), Ve = ({
115
115
  searchParams: e,
116
116
  assetId: t
117
117
  }) => {
118
- const s = C.resource(e.application).getPrintUrl(t);
118
+ const s = S.resource(e.application).getPrintUrl(t);
119
119
  return window.open(s, "_blank");
120
+ }, Us = ({
121
+ searchParams: e,
122
+ folderId: t
123
+ }) => {
124
+ const s = S.resource(e.application).getFormUrl(t);
125
+ return window.open(s, "_self");
126
+ }, Ms = ({
127
+ searchParams: e,
128
+ assetId: t
129
+ }) => {
130
+ const s = S.resource(e.application).getEditUrl(t);
131
+ return window.open(s, "_self");
120
132
  };
121
133
  function se(e) {
122
134
  return e.filter((t, s) => e.indexOf(t) === s);
@@ -129,7 +141,7 @@ function V(e, t) {
129
141
  function He(e, t) {
130
142
  var r;
131
143
  const s = V(e, t);
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];
144
+ return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === C.BIN ? [C.BIN] : [C.DEFAULT];
133
145
  }
134
146
  function ie(e, t) {
135
147
  return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) => ie(t.id, s)) : !1;
@@ -155,11 +167,11 @@ function le(e, t, s) {
155
167
  }
156
168
  class G {
157
169
  constructor(t) {
158
- $(this, "id");
159
- $(this, "name");
160
- $(this, "childNumber");
161
- $(this, "section", !1);
162
- $(this, "children", []);
170
+ _(this, "id");
171
+ _(this, "name");
172
+ _(this, "childNumber");
173
+ _(this, "section", !1);
174
+ _(this, "children", []);
163
175
  this.folder = t, this.id = t.id, this.name = t.name, this.childNumber = t.childNumber;
164
176
  }
165
177
  }
@@ -188,8 +200,8 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
188
200
  trashed: !1
189
201
  },
190
202
  treeData: {
191
- id: F.DEFAULT,
192
- name: x("explorer.filters.mine"),
203
+ id: C.DEFAULT,
204
+ name: D("explorer.filters.mine"),
193
205
  section: !0,
194
206
  children: []
195
207
  },
@@ -295,7 +307,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
295
307
  const {
296
308
  searchParams: r
297
309
  } = t();
298
- ze({
310
+ je({
299
311
  searchParams: r,
300
312
  assetId: s.assetId
301
313
  });
@@ -345,7 +357,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
345
357
  ...n.filters,
346
358
  folder: s
347
359
  },
348
- trashed: s === F.BIN
360
+ trashed: s === C.BIN
349
361
  }
350
362
  }));
351
363
  },
@@ -384,7 +396,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
384
396
  var h;
385
397
  return {
386
398
  ...l,
387
- treeData: de(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || F.DEFAULT)
399
+ treeData: de(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || C.DEFAULT)
388
400
  };
389
401
  });
390
402
  }
@@ -395,7 +407,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
395
407
  } = t(), {
396
408
  openFolder: n
397
409
  } = t().updaters, a = V(s, r);
398
- ye()(), e((l) => ({
410
+ ge()(), e((l) => ({
399
411
  ...l,
400
412
  searchParams: {
401
413
  ...l.searchParams,
@@ -420,7 +432,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
420
432
  const o = V(s[a - 2], r);
421
433
  n({
422
434
  folder: o,
423
- folderId: (o == null ? void 0 : o.id) || F.DEFAULT
435
+ folderId: (o == null ? void 0 : o.id) || C.DEFAULT
424
436
  });
425
437
  },
426
438
  goToTrash: () => e((s) => ({
@@ -434,25 +446,25 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
434
446
  ...s.searchParams,
435
447
  search: void 0,
436
448
  filters: {
437
- folder: F.BIN
449
+ folder: C.BIN
438
450
  },
439
451
  trashed: !0
440
452
  },
441
453
  currentFolder: {
442
- id: F.BIN
454
+ id: C.BIN
443
455
  }
444
456
  }))
445
457
  }
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 = () => {
458
+ })), T = () => w((e) => e.searchParams), te = () => w((e) => e.selectedNodesIds), z = () => w((e) => e.treeData), Bs = () => w((e) => e.selectedFolders), Ks = () => 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), x = () => w((e) => e.updaters), re = () => {
447
459
  const e = W();
448
- return (e == null ? void 0 : e.id) === F.BIN;
460
+ return (e == null ? void 0 : e.id) === C.BIN;
449
461
  }, Ge = () => w((e) => e.resourceIsTrash), Je = () => w((e) => e.resourceActionDisable), Xe = () => {
450
462
  const e = W();
451
463
  return (e == null ? void 0 : e.id) === "default";
452
464
  }, Ye = () => te().length > 1, Ze = () => w((e) => e.status), ue = () => {
453
- const e = b(), [t, s] = ae(""), r = We(), n = Ze(), a = pe(null), {
465
+ const e = T(), [t, s] = ae(""), r = We(), n = Ze(), a = pe(null), {
454
466
  setSearchParams: o
455
- } = S(), l = (u) => {
467
+ } = x(), l = (u) => {
456
468
  const f = u.target.value;
457
469
  s(f.toString());
458
470
  }, h = (u) => {
@@ -492,15 +504,15 @@ function es() {
492
504
  appCode: e
493
505
  } = M(), {
494
506
  gotoPreviousFolder: t
495
- } = S(), {
507
+ } = x(), {
496
508
  t: s
497
- } = z(), {
509
+ } = j(), {
498
510
  inputSearch: r
499
511
  } = ue(), n = te(), a = re(), o = W(), l = s("explorer.tree.trash"), h = s("explorer.tree.search"), d = s("explorer.filters.mine", {
500
512
  ns: e
501
513
  }), u = (o == null ? void 0 : o.name) || d;
502
514
  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 }),
515
+ /* @__PURE__ */ c(ye, { icon: /* @__PURE__ */ c(Re, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
504
516
  /* @__PURE__ */ c("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ c("strong", { children: u }) })
505
517
  ] }) : /* @__PURE__ */ c("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? h : a ? l : d }) });
506
518
  }
@@ -509,7 +521,7 @@ const ss = () => {
509
521
  clearSelectedIds: t,
510
522
  setResourceActionDisable: s,
511
523
  clearSelectedItems: r
512
- } = S();
524
+ } = x();
513
525
  return {
514
526
  isActionDisableModalOpen: e,
515
527
  onActionDisableCancel: () => {
@@ -521,7 +533,7 @@ const ss = () => {
521
533
  clearSelectedIds: t,
522
534
  setResourceIsTrash: s,
523
535
  clearSelectedItems: r
524
- } = S();
536
+ } = x();
525
537
  return {
526
538
  isTrashedModalOpen: e,
527
539
  onTrashedCancel: () => {
@@ -595,7 +607,7 @@ const cs = () => {
595
607
  queryKey: ["actions"],
596
608
  queryFn: async () => {
597
609
  const t = e == null ? void 0 : e.actions.map((r) => r.workflow);
598
- return await je(t);
610
+ return await $e(t);
599
611
  },
600
612
  select: (t) => e == null ? void 0 : e.actions.map((s) => ({
601
613
  ...s,
@@ -605,7 +617,7 @@ const cs = () => {
605
617
  enabled: !!e
606
618
  });
607
619
  }, is = () => {
608
- const e = w((o) => o.config), t = b(), {
620
+ const e = w((o) => o.config), t = T(), {
609
621
  filters: s,
610
622
  trashed: r,
611
623
  search: n
@@ -633,16 +645,16 @@ const cs = () => {
633
645
  retry: !1,
634
646
  getNextPageParam: (o) => o.pagination.startIdx + o.pagination.pageSize
635
647
  });
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, {
648
+ }, _s = () => {
649
+ const e = q(), t = k(), s = T(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
638
650
  clearSelectedItems: d,
639
651
  clearSelectedIds: u,
640
652
  setTreeData: f,
641
653
  setSearchParams: i
642
- } = S(), {
654
+ } = x(), {
643
655
  filters: p,
644
656
  trashed: m
645
- } = s, g = ["context", {
657
+ } = s, y = ["context", {
646
658
  folderId: p.folder,
647
659
  filters: p,
648
660
  trashed: m
@@ -654,19 +666,19 @@ const cs = () => {
654
666
  resourceIds: h,
655
667
  useAssetIds: l
656
668
  }),
657
- onError(y) {
658
- typeof y == "string" && e.error(x(y));
669
+ onError(g) {
670
+ typeof g == "string" && e.error(D(g));
659
671
  },
660
- onSuccess: async (y) => {
672
+ onSuccess: async (g) => {
661
673
  if (await t.cancelQueries({
662
- queryKey: g
663
- }), t.getQueryData(g))
664
- return e.success(x("explorer.trash.title")), t.setQueryData(g, (T) => {
674
+ queryKey: y
675
+ }), t.getQueryData(y))
676
+ return e.success(D("explorer.trash.title")), t.setQueryData(y, (F) => {
665
677
  var E;
666
- if (T) {
678
+ if (F) {
667
679
  const L = {
668
- ...T,
669
- pages: T == null ? void 0 : T.pages.map((R) => {
680
+ ...F,
681
+ pages: F == null ? void 0 : F.pages.map((R) => {
670
682
  var P;
671
683
  return {
672
684
  ...R,
@@ -674,7 +686,7 @@ const cs = () => {
674
686
  pagination: {
675
687
  ...R.pagination,
676
688
  // @ts-ignore
677
- maxIdx: ((P = R == null ? void 0 : R.pagination) == null ? void 0 : P.maxIdx) - y.resources.length
689
+ maxIdx: ((P = R == null ? void 0 : R.pagination) == null ? void 0 : P.maxIdx) - g.resources.length
678
690
  },
679
691
  resources: R.resources.filter((Q) => l ? !a.includes(Q.assetId) : !h.includes(Q.id))
680
692
  };
@@ -687,7 +699,7 @@ const cs = () => {
687
699
  pagination: {
688
700
  ...s.pagination,
689
701
  // @ts-ignore
690
- maxIdx: ((E = s.pagination) == null ? void 0 : E.maxIdx) - y.resources.length
702
+ maxIdx: ((E = s.pagination) == null ? void 0 : E.maxIdx) - g.resources.length
691
703
  }
692
704
  }), L;
693
705
  }
@@ -697,13 +709,13 @@ const cs = () => {
697
709
  d(), u();
698
710
  }
699
711
  });
700
- }, Ks = () => {
701
- const e = q(), t = k(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
712
+ }, $s = () => {
713
+ const e = q(), t = k(), s = T(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
702
714
  setFolderIds: h,
703
715
  setResourceIds: d,
704
716
  setSelectedResources: u,
705
717
  setSelectedFolders: f
706
- } = S(), {
718
+ } = x(), {
707
719
  filters: i,
708
720
  trashed: p
709
721
  } = s, m = ["context", {
@@ -718,21 +730,21 @@ const cs = () => {
718
730
  resourceIds: l,
719
731
  useAssetIds: o
720
732
  }),
721
- onError(g) {
722
- typeof g == "string" && e.error(x(g));
733
+ onError(y) {
734
+ typeof y == "string" && e.error(D(y));
723
735
  },
724
736
  onSuccess: async () => {
725
737
  if (await t.cancelQueries({
726
738
  queryKey: m
727
739
  }), t.getQueryData(m))
728
- return e.success(x("explorer.trash.toast")), t.setQueryData(m, (y) => {
729
- if (y)
740
+ return e.success(D("explorer.trash.toast")), t.setQueryData(m, (g) => {
741
+ if (g)
730
742
  return {
731
- ...y,
732
- pages: y == null ? void 0 : y.pages.map((I) => ({
743
+ ...g,
744
+ pages: g == null ? void 0 : g.pages.map((I) => ({
733
745
  ...I,
734
- folders: I.folders.filter((T) => !r.includes(T.id)),
735
- resources: I.resources.filter((T) => o ? !n.includes(T.assetId) : !l.includes(T.id))
746
+ folders: I.folders.filter((F) => !r.includes(F.id)),
747
+ resources: I.resources.filter((F) => o ? !n.includes(F.assetId) : !l.includes(F.id))
736
748
  }))
737
749
  };
738
750
  });
@@ -741,11 +753,11 @@ const cs = () => {
741
753
  d([]), u([]), h([]), f([]);
742
754
  }
743
755
  });
744
- }, $s = () => {
745
- const e = q(), t = k(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
756
+ }, js = () => {
757
+ const e = q(), t = k(), s = T(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
746
758
  clearSelectedItems: h,
747
759
  clearSelectedIds: d
748
- } = S(), {
760
+ } = x(), {
749
761
  filters: u,
750
762
  trashed: f
751
763
  } = s, i = ["context", {
@@ -761,20 +773,20 @@ const cs = () => {
761
773
  useAssetIds: o
762
774
  }),
763
775
  onError(p) {
764
- typeof p == "string" && e.error(x(p));
776
+ typeof p == "string" && e.error(D(p));
765
777
  },
766
778
  onSuccess: async () => {
767
779
  if (await t.cancelQueries({
768
780
  queryKey: i
769
781
  }), t.getQueryData(i))
770
- return e.success(x("explorer.removed.from.trash")), t.setQueryData(i, (m) => {
782
+ return e.success(D("explorer.removed.from.trash")), t.setQueryData(i, (m) => {
771
783
  if (m)
772
784
  return {
773
785
  ...m,
774
- pages: m == null ? void 0 : m.pages.map((y) => ({
775
- ...y,
776
- folders: y.folders.filter((I) => !r.includes(I.id)),
777
- resources: y.resources.filter((I) => o ? !n.includes(I.assetId) : !l.includes(I.id))
786
+ pages: m == null ? void 0 : m.pages.map((g) => ({
787
+ ...g,
788
+ folders: g.folders.filter((I) => !r.includes(I.id)),
789
+ resources: g.resources.filter((I) => o ? !n.includes(I.assetId) : !l.includes(I.id))
778
790
  }))
779
791
  };
780
792
  });
@@ -783,34 +795,34 @@ const cs = () => {
783
795
  h(), d();
784
796
  }
785
797
  });
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, {
798
+ }, zs = () => {
799
+ const e = q(), t = k(), s = T(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
788
800
  clearSelectedIds: d,
789
801
  clearSelectedItems: u,
790
802
  setTreeData: f,
791
803
  setSearchParams: i
792
- } = S(), {
804
+ } = x(), {
793
805
  filters: p,
794
806
  trashed: m
795
- } = s, g = ["context", {
807
+ } = s, y = ["context", {
796
808
  folderId: p.folder,
797
809
  filters: p,
798
810
  trashed: m
799
811
  }];
800
812
  return O({
801
- mutationFn: async (y) => await Be({
813
+ mutationFn: async (g) => await Be({
802
814
  searchParams: s,
803
- folderId: y,
815
+ folderId: g,
804
816
  folderIds: n,
805
817
  resourceIds: h,
806
818
  useAssetIds: l
807
819
  }),
808
- onError(y) {
809
- typeof y == "string" && e.error(x(y));
820
+ onError(g) {
821
+ typeof g == "string" && e.error(D(g));
810
822
  },
811
- onSuccess: async (y, I) => {
812
- if (t.getQueryData(g))
813
- return t.setQueryData(g, (E) => {
823
+ onSuccess: async (g, I) => {
824
+ if (t.getQueryData(y))
825
+ return t.setQueryData(y, (E) => {
814
826
  var L;
815
827
  if (E) {
816
828
  const B = os(r, {
@@ -826,7 +838,7 @@ const cs = () => {
826
838
  pagination: {
827
839
  ...P.pagination,
828
840
  // @ts-ignore
829
- maxIdx: ((Q = P.pagination) == null ? void 0 : Q.maxIdx) - y.resources.length
841
+ maxIdx: ((Q = P.pagination) == null ? void 0 : Q.maxIdx) - g.resources.length
830
842
  },
831
843
  resources: P.resources.filter((K) => l ? !a.includes(K.assetId) : !h.includes(K.id))
832
844
  };
@@ -837,7 +849,7 @@ const cs = () => {
837
849
  pagination: {
838
850
  ...s.pagination,
839
851
  // @ts-ignore
840
- maxIdx: ((L = s.pagination) == null ? void 0 : L.maxIdx) - y.resources.length
852
+ maxIdx: ((L = s.pagination) == null ? void 0 : L.maxIdx) - g.resources.length
841
853
  }
842
854
  }), R;
843
855
  }
@@ -847,10 +859,10 @@ const cs = () => {
847
859
  u(), d();
848
860
  }
849
861
  });
850
- }, zs = () => {
851
- const e = q(), t = k(), s = b(), r = _(), {
862
+ }, Vs = () => {
863
+ const e = q(), t = k(), s = T(), r = z(), {
852
864
  setTreeData: n
853
- } = S(), {
865
+ } = x(), {
854
866
  filters: a,
855
867
  trashed: o
856
868
  } = s, l = ["context", {
@@ -868,7 +880,7 @@ const cs = () => {
868
880
  parentId: d
869
881
  }),
870
882
  onError(h) {
871
- typeof h == "string" && e.error(x(h));
883
+ typeof h == "string" && e.error(D(h));
872
884
  },
873
885
  onSuccess: async (h, d) => {
874
886
  await t.cancelQueries({
@@ -885,9 +897,9 @@ const cs = () => {
885
897
  if (i) {
886
898
  const p = {
887
899
  ...i,
888
- pages: i == null ? void 0 : i.pages.map((g) => ({
889
- ...g,
890
- folders: [...g.folders, f]
900
+ pages: i == null ? void 0 : i.pages.map((y) => ({
901
+ ...y,
902
+ folders: [...y.folders, f]
891
903
  }))
892
904
  }, m = rs(r, {
893
905
  parentId: d.parentId,
@@ -898,12 +910,12 @@ const cs = () => {
898
910
  });
899
911
  }
900
912
  });
901
- }, _s = () => {
902
- const e = q(), t = k(), s = b(), r = _(), {
913
+ }, Hs = () => {
914
+ const e = q(), t = k(), s = T(), r = z(), {
903
915
  setFolderIds: n,
904
916
  setSelectedFolders: a,
905
917
  setTreeData: o
906
- } = S(), {
918
+ } = x(), {
907
919
  filters: l,
908
920
  trashed: h
909
921
  } = s, d = ["context", {
@@ -923,7 +935,7 @@ const cs = () => {
923
935
  name: f
924
936
  }),
925
937
  onError(u) {
926
- typeof u == "string" && e.error(x(u));
938
+ typeof u == "string" && e.error(D(u));
927
939
  },
928
940
  onSuccess: async (u, f) => {
929
941
  if (await t.cancelQueries({
@@ -933,19 +945,19 @@ const cs = () => {
933
945
  if (p) {
934
946
  const m = {
935
947
  ...p,
936
- pages: p == null ? void 0 : p.pages.map((y) => ({
937
- ...y,
938
- folders: y.folders.map((I) => I.id === u.id ? {
948
+ pages: p == null ? void 0 : p.pages.map((g) => ({
949
+ ...g,
950
+ folders: g.folders.map((I) => I.id === u.id ? {
939
951
  ...u,
940
952
  parentId: f.parentId,
941
953
  rights: I.rights
942
954
  } : I)
943
955
  }))
944
- }, g = as(r, {
956
+ }, y = as(r, {
945
957
  folderId: f.folderId,
946
958
  newFolder: u
947
959
  });
948
- return o(g), m;
960
+ return o(y), m;
949
961
  }
950
962
  });
951
963
  },
@@ -953,11 +965,11 @@ const cs = () => {
953
965
  n([]), a([]);
954
966
  }
955
967
  });
956
- }, Vs = () => {
957
- const e = q(), t = k(), s = b(), {
968
+ }, Ws = () => {
969
+ const e = q(), t = k(), s = T(), {
958
970
  setResourceIds: r,
959
971
  setSelectedResources: n
960
- } = S(), {
972
+ } = x(), {
961
973
  filters: a,
962
974
  trashed: o
963
975
  } = s, l = ["context", {
@@ -975,13 +987,13 @@ const cs = () => {
975
987
  rights: d
976
988
  }),
977
989
  onError(h) {
978
- typeof h == "string" && e.error(x("explorer.shared.status.error"));
990
+ typeof h == "string" && e.error(D("explorer.shared.status.error"));
979
991
  },
980
992
  onSuccess: async (h, d) => {
981
993
  if (await t.cancelQueries({
982
994
  queryKey: l
983
995
  }), t.getQueryData(l))
984
- return e.success(x("explorer.shared.status.saved")), t.setQueryData(l, (f) => {
996
+ return e.success(D("explorer.shared.status.saved")), t.setQueryData(l, (f) => {
985
997
  if (f)
986
998
  return {
987
999
  ...f,
@@ -990,7 +1002,7 @@ const cs = () => {
990
1002
  resources: i.resources.map((p) => {
991
1003
  if (p.assetId === (d == null ? void 0 : d.resourceId)) {
992
1004
  let m = [`creator:${p.creatorId}`];
993
- return (d == null ? void 0 : d.rights.length) >= 1 && (m = [...m, ...d.rights.flatMap((g) => g.actions.map((y) => `${g.type}:${g.id}:${y.id}`))]), {
1005
+ return (d == null ? void 0 : d.rights.length) >= 1 && (m = [...m, ...d.rights.flatMap((y) => y.actions.map((g) => `${y.type}:${y.id}:${g.id}`))]), {
994
1006
  ...p,
995
1007
  rights: m
996
1008
  };
@@ -1005,8 +1017,8 @@ const cs = () => {
1005
1017
  r([]), n([]);
1006
1018
  }
1007
1019
  });
1008
- }, Hs = () => {
1009
- const e = q(), t = k(), s = b(), {
1020
+ }, Gs = () => {
1021
+ const e = q(), t = k(), s = T(), {
1010
1022
  filters: r,
1011
1023
  trashed: n
1012
1024
  } = s, a = ["context", {
@@ -1015,12 +1027,12 @@ const cs = () => {
1015
1027
  trashed: n
1016
1028
  }];
1017
1029
  return O({
1018
- mutationFn: async (o) => await $e({
1030
+ mutationFn: async (o) => await _e({
1019
1031
  searchParams: s,
1020
1032
  params: o
1021
1033
  }),
1022
1034
  onError(o) {
1023
- typeof o == "string" && e.error(x(o));
1035
+ typeof o == "string" && e.error(D(o));
1024
1036
  },
1025
1037
  onSuccess: async (o, l) => {
1026
1038
  if (await t.cancelQueries({
@@ -1038,8 +1050,8 @@ const cs = () => {
1038
1050
  name: i,
1039
1051
  thumbnail: p,
1040
1052
  public: m,
1041
- description: g,
1042
- slug: y,
1053
+ description: y,
1054
+ slug: g,
1043
1055
  ...I
1044
1056
  } = l;
1045
1057
  return {
@@ -1047,10 +1059,10 @@ const cs = () => {
1047
1059
  ...I,
1048
1060
  // add any custom field
1049
1061
  name: i,
1050
- thumbnail: typeof p == "string" ? p : URL.createObjectURL(p),
1062
+ thumbnail: typeof p == "string" || !p ? p : URL.createObjectURL(p),
1051
1063
  public: m,
1052
- description: g,
1053
- slug: y
1064
+ description: y,
1065
+ slug: g
1054
1066
  };
1055
1067
  } else
1056
1068
  return f;
@@ -1060,8 +1072,8 @@ const cs = () => {
1060
1072
  });
1061
1073
  }
1062
1074
  });
1063
- }, Ws = () => {
1064
- const e = q(), t = k(), s = b(), {
1075
+ }, Js = () => {
1076
+ const e = q(), t = k(), s = T(), {
1065
1077
  user: r
1066
1078
  } = Ie(), {
1067
1079
  appCode: n
@@ -1071,12 +1083,12 @@ const cs = () => {
1071
1083
  trashed: s.trashed
1072
1084
  }];
1073
1085
  return O({
1074
- mutationFn: async (o) => await _e({
1086
+ mutationFn: async (o) => await ze({
1075
1087
  searchParams: s,
1076
1088
  params: o
1077
1089
  }),
1078
1090
  onError(o) {
1079
- typeof o == "string" && e.error(x(o));
1091
+ typeof o == "string" && e.error(D(o));
1080
1092
  },
1081
1093
  onSuccess: async (o, l) => {
1082
1094
  var f, i, p;
@@ -1107,68 +1119,68 @@ const cs = () => {
1107
1119
  if (m)
1108
1120
  return {
1109
1121
  ...m,
1110
- pages: m == null ? void 0 : m.pages.map((g) => ({
1111
- ...g,
1112
- resources: [u, ...g.resources]
1122
+ pages: m == null ? void 0 : m.pages.map((y) => ({
1123
+ ...y,
1124
+ resources: [u, ...y.resources]
1113
1125
  }))
1114
1126
  };
1115
1127
  });
1116
1128
  }
1117
1129
  });
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(), {
1130
+ }, ls = /* @__PURE__ */ b(async () => await import("./EmptyScreenApp.js")), ds = /* @__PURE__ */ b(async () => await import("./EmptyScreenSearch.js")), us = /* @__PURE__ */ b(async () => await import("./EmptyScreenError.js")), hs = /* @__PURE__ */ b(async () => await import("./EmptyScreenNoContentInFolder.js")), fs = /* @__PURE__ */ b(async () => await import("./EmptyScreenTrash.js")), ps = /* @__PURE__ */ b(async () => await import("./FoldersList.js")), ms = /* @__PURE__ */ b(async () => await import("./ResourcesList.js")), gs = () => {
1131
+ const e = Xe(), t = re(), s = Ye(), r = T(), n = W(), a = z(), o = q(), {
1120
1132
  appCode: l
1121
1133
  } = M(), {
1122
1134
  t: h
1123
- } = z(), {
1135
+ } = j(), {
1124
1136
  setSearchParams: d,
1125
1137
  setSearchConfig: u,
1126
1138
  setTreeData: f
1127
- } = S(), {
1139
+ } = x(), {
1128
1140
  data: i,
1129
1141
  isError: p,
1130
1142
  error: m,
1131
- isLoading: g,
1132
- isFetching: y,
1143
+ isLoading: y,
1144
+ isFetching: g,
1133
1145
  fetchNextPage: I
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;
1146
+ } = is(), F = (i == null ? void 0 : i.pages[0].folders.length) === 0, E = (i == null ? void 0 : i.pages[0].resources.length) === 0, L = F && E;
1135
1147
  return U(() => {
1136
1148
  var B, R, P;
1137
1149
  if (i) {
1138
1150
  const Q = [...((B = i == null ? void 0 : i.pages[0]) == null ? void 0 : B.folders) ?? []];
1139
1151
  (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
- id: F.DEFAULT,
1152
+ id: C.DEFAULT,
1141
1153
  section: !0,
1142
1154
  children: Q.map((K) => new G(K)),
1143
1155
  name: h("explorer.filters.mine", {
1144
1156
  ns: l
1145
1157
  })
1146
- }) : f(de(a, Q, r.filters.folder || F.DEFAULT))), d({
1158
+ }) : f(de(a, Q, r.filters.folder || C.DEFAULT))), d({
1147
1159
  ...r,
1148
1160
  pagination: (P = i == null ? void 0 : i.pages[(i == null ? void 0 : i.pages.length) - 1]) == null ? void 0 : P.pagination
1149
1161
  });
1150
1162
  }
1151
1163
  }, [i]), U(() => {
1152
1164
  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(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 })
1165
+ }, [m]), y ? /* @__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: [
1166
+ /* @__PURE__ */ c(ps, { data: i, isFetching: g }),
1167
+ /* @__PURE__ */ c(ms, { data: i, isFetching: g, fetchNextPage: I })
1156
1168
  ] });
1157
- }, gs = () => {
1169
+ }, ys = () => {
1158
1170
  const {
1159
1171
  appCode: e,
1160
1172
  currentApp: t
1161
1173
  } = M(), {
1162
1174
  t: s
1163
- } = z(), [r, n] = ae(""), a = (u) => {
1175
+ } = j(), [r, n] = ae(""), a = (u) => {
1164
1176
  if (u === "0") {
1165
1177
  n("");
1166
1178
  return;
1167
1179
  }
1168
1180
  n(u);
1169
- }, o = W(), l = b(), {
1181
+ }, o = W(), l = T(), {
1170
1182
  setSearchParams: h
1171
- } = S();
1183
+ } = x();
1172
1184
  U(() => {
1173
1185
  const u = () => r.includes("1") ? !0 : void 0, f = () => r.includes("2") ? !0 : void 0, i = () => r.includes("7") ? !0 : void 0;
1174
1186
  h({
@@ -1224,11 +1236,11 @@ const cs = () => {
1224
1236
  appCode: e
1225
1237
  } = M(), {
1226
1238
  t
1227
- } = z(), {
1239
+ } = j(), {
1228
1240
  selectedFilters: s,
1229
1241
  options: r,
1230
1242
  handleOnSelectFilter: n
1231
- } = gs(), {
1243
+ } = ys(), {
1232
1244
  formRef: a,
1233
1245
  inputSearch: o,
1234
1246
  handleInputSearchChange: l,
@@ -1244,12 +1256,12 @@ const cs = () => {
1244
1256
  ns: e
1245
1257
  }), onClick: d })
1246
1258
  ] }),
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
- /* @__PURE__ */ c(j.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }),
1251
- /* @__PURE__ */ c(j.Separator, {})
1252
- ] }, "0") : /* @__PURE__ */ c(j.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }, f.value)) })
1259
+ /* @__PURE__ */ N($, { placement: "bottom-end", children: [
1260
+ /* @__PURE__ */ c($.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ c(Pe, { width: 20 }), variant: "ghost", badgeContent: u }),
1261
+ /* @__PURE__ */ c($.Menu, { children: r.map((f) => f.value === "0" ? /* @__PURE__ */ N(me, { children: [
1262
+ /* @__PURE__ */ c($.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }),
1263
+ /* @__PURE__ */ c($.Separator, {})
1264
+ ] }, "0") : /* @__PURE__ */ c($.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }, f.value)) })
1253
1265
  ] })
1254
1266
  ] });
1255
1267
  }, ws = ({
@@ -1259,41 +1271,41 @@ const cs = () => {
1259
1271
  }) => {
1260
1272
  const {
1261
1273
  t: r
1262
- } = z();
1274
+ } = j();
1263
1275
  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
1276
  /* @__PURE__ */ c(Ae, { width: "20", height: "20" }),
1265
1277
  /* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
1266
1278
  ] }) }) }) }) }) }) });
1267
- }, Ss = /* @__PURE__ */ D(async () => await import("./FolderModal.js")), xs = () => {
1268
- const e = k(), [t, s] = De(), r = _(), n = re(), a = te(), {
1279
+ }, Ss = /* @__PURE__ */ b(async () => await import("./FolderModal.js")), xs = () => {
1280
+ const e = k(), [t, s] = De(), r = z(), n = re(), a = te(), {
1269
1281
  appCode: o
1270
1282
  } = M(), {
1271
1283
  t: l
1272
- } = z(["common", o]), {
1284
+ } = j(["common", o]), {
1273
1285
  goToTrash: h,
1274
1286
  selectTreeItem: d,
1275
1287
  unfoldTreeItem: u,
1276
1288
  foldTreeItem: f,
1277
1289
  clearSelectedItems: i,
1278
1290
  clearSelectedIds: p
1279
- } = S(), m = async (y) => {
1280
- await u(y, e);
1281
- }, g = () => {
1291
+ } = x(), m = async (g) => {
1292
+ await u(g, e);
1293
+ }, y = () => {
1282
1294
  i(), p(), s();
1283
1295
  };
1284
1296
  return /* @__PURE__ */ N(oe, { children: [
1285
1297
  /* @__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") }) }),
1298
+ /* @__PURE__ */ c(ws, { id: C.BIN, selected: n, onSelect: h }),
1299
+ /* @__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: y, children: l("explorer.folder.new") }) }),
1288
1300
  /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(Ss, { edit: !1, isOpen: t, onSuccess: s, onCancel: s }) })
1289
1301
  ] });
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 = ({
1302
+ }, Ds = /* @__PURE__ */ b(async () => await import("./AppAction.js")), bs = /* @__PURE__ */ b(async () => await import("./Library.js")), Ts = /* @__PURE__ */ b(async () => await import("./ActionBarContainer.js")), Fs = /* @__PURE__ */ b(async () => await import("./DisableModal.js")), Cs = /* @__PURE__ */ b(async () => await import("./TrashModal.js")), Ns = /* @__PURE__ */ b(async () => await import("./OnboardingModal.js")), Xs = ({
1291
1303
  config: e
1292
1304
  }) => {
1293
- const t = b(), {
1305
+ const t = T(), {
1294
1306
  setConfig: s,
1295
1307
  setSearchParams: r
1296
- } = S();
1308
+ } = x();
1297
1309
  U(() => {
1298
1310
  s(e || {}), r({
1299
1311
  ...t,
@@ -1315,7 +1327,7 @@ const cs = () => {
1315
1327
  Fe();
1316
1328
  const u = ne("publish", a), f = ne("create", a);
1317
1329
  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 }) }),
1330
+ /* @__PURE__ */ c(Ce, { render: () => f ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(Ds, {}) }) : null, children: /* @__PURE__ */ c(Ne, { app: n }) }),
1319
1331
  /* @__PURE__ */ N(ee, { className: "flex-grow-1", children: [
1320
1332
  /* @__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
1333
  /* @__PURE__ */ c(xs, {}),
@@ -1324,11 +1336,11 @@ const cs = () => {
1324
1336
  /* @__PURE__ */ N(ee.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
1325
1337
  /* @__PURE__ */ c(Is, {}),
1326
1338
  /* @__PURE__ */ c(es, {}),
1327
- /* @__PURE__ */ c(ys, {})
1339
+ /* @__PURE__ */ c(gs, {})
1328
1340
  ] }),
1329
1341
  /* @__PURE__ */ N(v, { fallback: /* @__PURE__ */ c(A, {}), children: [
1330
1342
  /* @__PURE__ */ c(Ts, {}),
1331
- /* @__PURE__ */ c(Cs, { id: "showOnboardingTrash", items: [{
1343
+ /* @__PURE__ */ c(Ns, { id: "showOnboardingTrash", items: [{
1332
1344
  src: "onboarding/illu-trash-menu.svg",
1333
1345
  alt: "explorer.modal.onboarding.trash.screen1.alt",
1334
1346
  text: "explorer.modal.onboarding.trash.screen1.title"
@@ -1346,33 +1358,35 @@ const cs = () => {
1346
1358
  nextText: "explorer.modal.onboarding.trash.next",
1347
1359
  closeText: "explorer.modal.onboarding.trash.close"
1348
1360
  } }),
1349
- o && /* @__PURE__ */ c(Ns, { isOpen: o, onCancel: l }),
1361
+ o && /* @__PURE__ */ c(Cs, { isOpen: o, onCancel: l }),
1350
1362
  h && /* @__PURE__ */ c(Fs, { isOpen: h, onCancel: d })
1351
1363
  ] })
1352
1364
  ] })
1353
1365
  ] });
1354
1366
  };
1355
1367
  export {
1356
- Gs as E,
1368
+ Xs as E,
1357
1369
  cs as a,
1358
1370
  W as b,
1359
- Ws as c,
1360
- re as d,
1361
- w as e,
1362
- X as f,
1363
- Ms as g,
1364
- Us as h,
1365
- J as i,
1366
- Ks as j,
1367
- Ge as k,
1368
- Vs as l,
1369
- Hs as m,
1370
- b as n,
1371
- zs as o,
1372
- _s as p,
1373
- $s as q,
1374
- Bs as r,
1371
+ Js as c,
1372
+ T as d,
1373
+ re as e,
1374
+ w as f,
1375
+ Us as g,
1376
+ X as h,
1377
+ Ks as i,
1378
+ Bs as j,
1379
+ J as k,
1380
+ $s as l,
1381
+ Ge as m,
1382
+ Ms as n,
1383
+ Ws as o,
1384
+ Gs as p,
1385
+ Vs as q,
1386
+ Hs as r,
1375
1387
  js as s,
1376
- _ as t,
1377
- S as u
1388
+ _s as t,
1389
+ x as u,
1390
+ zs as v,
1391
+ z as w
1378
1392
  };