ode-explorer 2.0.0 → 2.1.0-develop-pedago.202502181634

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.
Files changed (106) hide show
  1. package/dist/EcritureA-Romain-Orne.woff2 +0 -0
  2. package/dist/KGJuneBug.ttf +0 -0
  3. package/dist/OpenDyslexic.woff +0 -0
  4. package/dist/christmas.png +0 -0
  5. package/dist/circus.jpg +0 -0
  6. package/dist/desert.jpg +0 -0
  7. package/dist/hills.svg +360 -0
  8. package/dist/illu-blog.svg +1 -0
  9. package/dist/illu-collaborativewall.svg +1 -0
  10. package/dist/illu-empty-search-blog.svg +25 -0
  11. package/dist/illu-empty-search-blog2.svg +25 -0
  12. package/dist/illu-empty-search-collaborativewall.svg +25 -0
  13. package/dist/illu-empty-search-collaborativewall2.svg +25 -0
  14. package/dist/illu-empty-search-formulaire.svg +27 -0
  15. package/dist/illu-empty-search-formulaire2.svg +27 -0
  16. package/dist/illu-empty-search-forum.svg +25 -0
  17. package/dist/illu-empty-search-forum2.svg +25 -0
  18. package/dist/illu-empty-search-homeworks.svg +25 -0
  19. package/dist/illu-empty-search-homeworks2.svg +25 -0
  20. package/dist/illu-empty-search-wiki.svg +26 -0
  21. package/dist/illu-empty-search-wiki2.svg +26 -0
  22. package/dist/illu-empty-search.svg +62 -0
  23. package/dist/illu-empty-search2.svg +62 -0
  24. package/dist/illu-error.svg +60 -0
  25. package/dist/illu-exercizer.svg +1 -0
  26. package/dist/illu-mindmap.svg +1 -0
  27. package/dist/illu-no-content-in-folder.svg +31 -0
  28. package/dist/illu-pad.svg +1 -0
  29. package/dist/illu-scrapbook.svg +1 -0
  30. package/dist/illu-search.svg +1 -0
  31. package/dist/illu-timeline.svg +1 -0
  32. package/dist/illu-timelinegenerator.svg +1 -0
  33. package/dist/illu-trash-delete.svg +22 -0
  34. package/dist/illu-trash.svg +1 -0
  35. package/dist/illu-wiki.svg +104 -0
  36. package/dist/image-library.svg +188 -0
  37. package/dist/image-library2.svg +188 -0
  38. package/dist/image-placeholder.png +0 -0
  39. package/dist/index.html +1 -1
  40. package/dist/index.js +226 -221
  41. package/dist/ocean.jpg +0 -0
  42. package/dist/panda.jpg +0 -0
  43. package/dist/screen-loading.gif +0 -0
  44. package/dist/sparkly.jpg +0 -0
  45. package/dist/style.css +1 -0
  46. package/lib/ActionBarContainer.js +9 -9
  47. package/lib/AppAction.js +16 -16
  48. package/lib/DeleteModal.js +1 -1
  49. package/lib/DisableModal.js +1 -1
  50. package/lib/DraggableCard.js +33 -15
  51. package/lib/EmptyScreenApp.js +42 -33
  52. package/lib/EmptyScreenError.js +10 -9
  53. package/lib/EmptyScreenNoContentInFolder.js +9 -8
  54. package/lib/EmptyScreenSearch.js +7 -6
  55. package/lib/EmptyScreenTrash.js +7 -6
  56. package/lib/ExportModal.js +1 -1
  57. package/lib/FolderModal.js +2 -2
  58. package/lib/FoldersList.js +60 -55
  59. package/lib/Library.js +37 -23
  60. package/lib/MoveModal.js +16 -16
  61. package/lib/OnboardingModal.js +2 -2
  62. package/lib/PublishModal.js +2 -2
  63. package/lib/ResourceModal.js +2 -2
  64. package/lib/ResourcesList.js +125 -100
  65. package/lib/TrashModal.js +1 -1
  66. package/lib/components/OnboardingModal.d.ts +1 -1
  67. package/lib/config/explorer.d.ts +1 -1
  68. package/lib/dynamic-import-helper.js +16 -0
  69. package/lib/features/AccessControl/AccessControl.d.ts +1 -1
  70. package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
  71. package/lib/features/ActionBar/Move/useMoveModal.d.ts +1 -1
  72. package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
  73. package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
  74. package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
  75. package/lib/features/ActionBar/useActionBar.d.ts +2 -2
  76. package/lib/features/List/DraggableCard.d.ts +1 -1
  77. package/lib/features/List/FolderCard.d.ts +2 -2
  78. package/lib/features/List/FoldersList.d.ts +1 -1
  79. package/lib/features/List/ResourceCard.d.ts +2 -2
  80. package/lib/features/List/ResourcesList.d.ts +1 -1
  81. package/lib/illu-blog.js +4 -0
  82. package/lib/illu-collaborativeeditor.js +4 -0
  83. package/lib/illu-collaborativewall.js +4 -0
  84. package/lib/illu-error.js +4 -0
  85. package/lib/illu-exercizer.js +4 -0
  86. package/lib/illu-mindmap.js +4 -0
  87. package/lib/illu-no-content-in-folder.js +4 -0
  88. package/lib/illu-pad.js +4 -0
  89. package/lib/illu-scrapbook.js +4 -0
  90. package/lib/illu-search.js +4 -0
  91. package/lib/illu-timeline.js +4 -0
  92. package/lib/illu-timelinegenerator.js +4 -0
  93. package/lib/illu-trash.js +4 -0
  94. package/lib/illu-wiki.js +4 -0
  95. package/lib/image-library.js +4 -0
  96. package/lib/image-library2.js +4 -0
  97. package/lib/index2.js +444 -415
  98. package/lib/services/api/index.d.ts +14 -14
  99. package/lib/services/queries/actions.d.ts +4 -7
  100. package/lib/services/queries/index.d.ts +9 -9
  101. package/lib/services/resource/service.d.ts +1 -1
  102. package/lib/store/index.d.ts +2 -2
  103. package/lib/utils/getChildrenIds.d.ts +1 -1
  104. package/lib/utils/isResourceShared.d.ts +1 -1
  105. package/package.json +6 -7
  106. package/dist/version.txt +0 -1
package/lib/index2.js CHANGED
@@ -1,21 +1,20 @@
1
- import { jsxs as E, Fragment as G, jsx as c } from "react/jsx-runtime";
2
- import { useEffect as $, Suspense as M, lazy as q, useState as le, useRef as Se, Fragment as be } from "react";
3
- import { useSensor as oe, PointerSensor as we, KeyboardSensor as xe, useSensors as Te, DndContext as Ce } from "@dnd-kit/core";
1
+ import { jsxs as b, Fragment as W, jsx as a } from "react/jsx-runtime";
2
+ import { useEffect as B, Suspense as Q, lazy as M, useState as le, useRef as we, Fragment as De } from "react";
3
+ import { useSensor as oe, PointerSensor as xe, KeyboardSensor as Se, useSensors as be, DndContext as Te } from "@dnd-kit/core";
4
4
  import { snapCenterToCursor as Fe } from "@dnd-kit/modifiers";
5
- import { findNodeById as J, wrapTreeNode as Re, findParentNode as Ne, useToast as L, moveNode as Ee, deleteNode as Pe, useUser as de, useShareMutation as Ae, useUpdateMutation as Qe, useOdeClient as v, addNode as qe, updateNode as Oe, getAncestors as ne, LoadingScreen as U, FormControl as ke, Input as Ue, SearchButton as Me, Dropdown as j, useToggle as Le, useScrollToTop as ve, TreeView as Be, Button as Ke, IconButton as $e, useXitiTrackPageLoad as _e, isActionAvailable as ae, AppHeader as ze, Breadcrumb as je, Grid as te } from "@edifice-ui/react";
6
- import { odeServices as A, FOLDER as N, SORT_ORDER as Ve, ResourceService as ue } from "edifice-ts-client";
7
- import { t as P } from "i18next";
8
- import { createStore as We, useStore as He } from "zustand";
9
- import { useQuery as Ge, queryOptions as Je, useQueryClient as k, useMutation as B, useInfiniteQuery as Xe } from "@tanstack/react-query";
10
- import { useTranslation as _ } from "react-i18next";
11
- import { Filter as Ye, Delete as Ze, Plus as et, ArrowLeft as tt } from "@edifice-ui/icons";
5
+ import { odeServices as N, FOLDER as E, SORT_ORDER as Re, ResourceService as de, isActionAvailable as ne } from "@edifice.io/client";
6
+ import { findParentNode as ve, findNodeById as G, wrapTreeNode as Ee, useToast as U, moveNode as Le, useUser as ue, useEdificeClient as Z, useShareMutation as Ne, useUpdateMutation as Ae, addNode as Me, updateNode as ke, deleteNode as Pe, getAncestors as ae, LoadingScreen as H, FormControl as He, Input as Qe, SearchButton as Ue, Dropdown as K, useToggle as Ze, useScrollToTop as Oe, TreeView as qe, Button as Be, IconButton as Ve, useXitiTrackPageLoad as _e, AppHeader as Ke, Breadcrumb as $e, Grid as te } from "@edifice.io/react";
7
+ import { t as L } from "i18next";
8
+ import { createStore as ze, useStore as je } from "zustand";
9
+ import { useQuery as We, queryOptions as Ge, useQueryClient as P, useMutation as O, useInfiniteQuery as Je } from "@tanstack/react-query";
10
+ import { useTranslation as V } from "react-i18next";
12
11
  const he = async (e) => {
13
- const t = await A.resource(e.application).searchContext(e);
12
+ const t = await N.resource(e.application).searchContext(e);
14
13
  return {
15
14
  ...t,
16
15
  folders: t.folders.filter((s) => !s.trashed)
17
16
  };
18
- }, st = async ({
17
+ }, Xe = async ({
19
18
  searchParams: e,
20
19
  name: t,
21
20
  parentId: s
@@ -26,8 +25,8 @@ const he = async (e) => {
26
25
  application: e.application,
27
26
  type: e.types[0]
28
27
  };
29
- return await A.resource(e.application).createFolder(r);
30
- }, rt = async ({
28
+ return await N.resource(e.application).createFolder(r);
29
+ }, Ye = async ({
31
30
  folderId: e,
32
31
  searchParams: t,
33
32
  parentId: s,
@@ -40,8 +39,8 @@ const he = async (e) => {
40
39
  application: t.application,
41
40
  type: t.types[0]
42
41
  };
43
- return await A.resource(t.application).updateFolder(o);
44
- }, ot = async ({
42
+ return await N.resource(t.application).updateFolder(o);
43
+ }, et = async ({
45
44
  searchParams: e,
46
45
  resourceIds: t,
47
46
  useAssetIds: s,
@@ -53,8 +52,8 @@ const he = async (e) => {
53
52
  resourceIds: t,
54
53
  folderIds: r
55
54
  };
56
- return await A.resource(e.application).trashAll(o, s);
57
- }, nt = async ({
55
+ return await N.resource(e.application).trashAll(o, s);
56
+ }, tt = async ({
58
57
  searchParams: e,
59
58
  resourceIds: t,
60
59
  useAssetIds: s,
@@ -66,8 +65,8 @@ const he = async (e) => {
66
65
  resourceIds: t,
67
66
  folderIds: r
68
67
  };
69
- return await A.resource(e.application).deleteAll(o, s);
70
- }, at = async ({
68
+ return await N.resource(e.application).deleteAll(o, s);
69
+ }, st = async ({
71
70
  searchParams: e,
72
71
  resourceIds: t,
73
72
  folderIds: s,
@@ -79,8 +78,8 @@ const he = async (e) => {
79
78
  resourceIds: t,
80
79
  folderIds: s
81
80
  };
82
- return await A.resource(e.application).restoreAll(o, r);
83
- }, ct = async (e, t) => await A.resource(e.application).copy({
81
+ return await N.resource(e.application).restoreAll(o, r);
82
+ }, rt = async (e, t) => await N.resource(e.application).copy({
84
83
  application: e.application,
85
84
  resourceId: t
86
85
  }), pe = async ({
@@ -90,65 +89,65 @@ const he = async (e) => {
90
89
  folderIds: r,
91
90
  useAssetIds: o
92
91
  }) => {
93
- const a = {
92
+ const c = {
94
93
  application: e.application,
95
94
  folderId: s,
96
95
  resourceIds: t,
97
96
  folderIds: r
98
97
  };
99
- return await A.resource(e.application).moveToFolder(a, o);
100
- }, it = async (e) => await A.rights().sessionHasWorkflowRights(e), lt = ({
98
+ return await N.resource(e.application).moveToFolder(c, o);
99
+ }, ot = async (e) => await N.rights().sessionHasWorkflowRights(e), nt = ({
101
100
  searchParams: e,
102
101
  assetId: t
103
102
  }) => {
104
- const s = A.resource(e.application).getViewUrl(t);
103
+ const s = N.resource(e.application).getViewUrl(t);
105
104
  window.open(s, "_self");
106
- }, dt = ({
105
+ }, at = ({
107
106
  searchParams: e,
108
107
  params: t
109
- }) => A.resource(e.application).create(t), ut = ({
108
+ }) => N.resource(e.application).create(t), ct = ({
110
109
  searchParams: e,
111
110
  assetId: t
112
111
  }) => {
113
- const s = A.resource(e.application).getPrintUrl(t);
112
+ const s = N.resource(e.application).getPrintUrl(t);
114
113
  return window.open(s, "_blank");
115
- }, is = ({
114
+ }, ds = ({
116
115
  searchParams: e,
117
116
  folderId: t
118
117
  }) => {
119
- const s = A.resource(e.application).getFormUrl(t);
118
+ const s = N.resource(e.application).getFormUrl(t);
120
119
  return window.open(s, "_self");
121
- }, ls = ({
120
+ }, us = ({
122
121
  searchParams: e,
123
122
  assetId: t
124
123
  }) => {
125
- const s = A.resource(e.application).getEditUrl(t);
124
+ const s = N.resource(e.application).getEditUrl(t);
126
125
  return window.open(s, "_self");
127
- }, ds = ({
126
+ }, hs = ({
128
127
  searchParams: e,
129
128
  assetId: t
130
129
  }) => {
131
- const s = A.resource(e.application).getExportUrl(t);
130
+ const s = N.resource(e.application).getExportUrl(t);
132
131
  return window.open(s, "_self");
133
132
  }, fe = {
134
- id: N.DEFAULT,
135
- name: P("explorer.filters.mine"),
133
+ id: E.DEFAULT,
134
+ name: L("explorer.filters.mine"),
136
135
  section: !0,
137
136
  children: []
138
- }, ht = {
137
+ }, it = {
139
138
  config: void 0,
140
139
  searchConfig: {
141
140
  minLength: 1
142
141
  },
143
142
  searchParams: {
144
143
  filters: {
145
- folder: N.DEFAULT,
144
+ folder: E.DEFAULT,
146
145
  owner: void 0,
147
146
  shared: void 0,
148
147
  public: void 0
149
148
  },
150
149
  orders: {
151
- updatedAt: Ve.DESC
150
+ updatedAt: Re.DESC
152
151
  },
153
152
  application: "",
154
153
  types: [],
@@ -181,8 +180,8 @@ const he = async (e) => {
181
180
  },
182
181
  resourceActionDisable: !1,
183
182
  status: void 0
184
- }, pt = We()((e, t) => ({
185
- ...ht,
183
+ }, lt = ze()((e, t) => ({
184
+ ...it,
186
185
  actions: {
187
186
  setConfig: (s) => e({
188
187
  config: s
@@ -277,7 +276,7 @@ const he = async (e) => {
277
276
  const {
278
277
  searchParams: r
279
278
  } = t();
280
- lt({
279
+ nt({
281
280
  searchParams: r,
282
281
  assetId: s.assetId
283
282
  });
@@ -294,10 +293,10 @@ const he = async (e) => {
294
293
  } = t();
295
294
  if (r.length !== 1)
296
295
  throw new Error("Cannot open more than 1 resource");
297
- const a = r.find((n) => n.id === o[0]);
298
- ut({
296
+ const c = r.find((n) => n.id === o[0]);
297
+ ct({
299
298
  searchParams: s,
300
- assetId: a.assetId
299
+ assetId: c.assetId
301
300
  });
302
301
  } catch (s) {
303
302
  console.error("explorer print failed: ", s);
@@ -309,8 +308,8 @@ const he = async (e) => {
309
308
  queryClient: o
310
309
  }) => {
311
310
  const {
312
- searchParams: a
313
- } = t(), n = a.filters.folder, u = s;
311
+ searchParams: c
312
+ } = t(), n = c.filters.folder, u = s;
314
313
  n !== s && (t().actions.fetchTreeData(s, o), e((p) => ({
315
314
  ...p,
316
315
  // reset selection when changing folder
@@ -321,13 +320,13 @@ const he = async (e) => {
321
320
  id: s
322
321
  },
323
322
  searchParams: {
324
- ...a,
323
+ ...c,
325
324
  search: void 0,
326
325
  filters: {
327
- ...a.filters,
326
+ ...c.filters,
328
327
  folder: s
329
328
  },
330
- trashed: s === N.BIN
329
+ trashed: s === E.BIN
331
330
  }
332
331
  })));
333
332
  },
@@ -336,30 +335,30 @@ const he = async (e) => {
336
335
  status: "fold"
337
336
  })),
338
337
  fetchTreeData: async (s, r) => {
339
- const o = J(t().treeData, s), a = o == null ? void 0 : o.id;
338
+ const o = G(t().treeData, s), c = o == null ? void 0 : o.id;
340
339
  if (Array.isArray(o == null ? void 0 : o.children) && o.children.length) return;
341
340
  const n = await r.fetchQuery({
342
341
  queryKey: ["prefetchContext", {
343
- folderId: a,
342
+ folderId: c,
344
343
  trashed: !1
345
344
  }],
346
345
  queryFn: async () => await he({
347
346
  ...t().searchParams,
348
347
  filters: {
349
348
  ...t().searchParams.filters,
350
- folder: a
349
+ folder: c
351
350
  }
352
351
  })
353
352
  });
354
- t().actions.setTreeData(Re(t().treeData, n == null ? void 0 : n.folders, a || N.DEFAULT));
353
+ t().actions.setTreeData(Ee(t().treeData, n == null ? void 0 : n.folders, c || E.DEFAULT));
355
354
  },
356
355
  selectTreeItem: (s, r) => {
357
356
  const {
358
357
  treeData: o
359
358
  } = t(), {
360
- openFolder: a,
359
+ openFolder: c,
361
360
  fetchTreeData: n
362
- } = t().actions, u = J(o, s);
361
+ } = t().actions, u = G(o, s);
363
362
  n(s, r), e((p) => ({
364
363
  ...p,
365
364
  searchParams: {
@@ -368,7 +367,7 @@ const he = async (e) => {
368
367
  },
369
368
  status: "select",
370
369
  selectedResources: []
371
- })), a({
370
+ })), c({
372
371
  folder: u,
373
372
  folderId: s
374
373
  });
@@ -379,16 +378,16 @@ const he = async (e) => {
379
378
  treeData: r,
380
379
  searchParams: o
381
380
  } = t(), {
382
- openFolder: a
381
+ openFolder: c
383
382
  } = t().actions;
384
- if (o.search && a({
383
+ if (o.search && c({
385
384
  folder: fe,
386
- folderId: N.DEFAULT
385
+ folderId: E.DEFAULT
387
386
  }), !s) return;
388
- const n = Ne(r, s);
389
- a({
387
+ const n = ve(r, s);
388
+ c({
390
389
  folder: n,
391
- folderId: (n == null ? void 0 : n.id) || N.DEFAULT
390
+ folderId: (n == null ? void 0 : n.id) || E.DEFAULT
392
391
  });
393
392
  },
394
393
  goToTrash: () => {
@@ -403,52 +402,52 @@ const he = async (e) => {
403
402
  ...s.searchParams,
404
403
  search: void 0,
405
404
  filters: {
406
- folder: N.BIN
405
+ folder: E.BIN
407
406
  },
408
407
  trashed: !0
409
408
  },
410
409
  currentFolder: {
411
- id: N.BIN
410
+ id: E.BIN
412
411
  }
413
412
  }));
414
413
  }
415
414
  }
416
415
  }));
417
416
  function T(e) {
418
- return He(pt, e);
417
+ return je(lt, e);
419
418
  }
420
- const ft = (e) => e.treeData, gt = (e) => e.actions, V = () => T(ft), F = () => T(gt), Q = () => T((e) => e.searchParams), se = () => T((e) => e.selectedNodeId), us = () => T((e) => e.selectedFolders), hs = () => T((e) => e.selectedResources), mt = () => T((e) => e.searchConfig), X = () => T((e) => e.folderIds), Y = () => T((e) => e.resourceIds), Z = () => T((e) => e.selectedResources.map((t) => t.assetId)), ee = () => T((e) => e.selectedResources.filter((t) => t.assetId === t.id)), W = () => T((e) => e.currentFolder), re = () => {
421
- const e = W();
422
- return (e == null ? void 0 : e.id) === N.BIN;
423
- }, yt = () => T((e) => e.resourceIsTrash), ps = () => T((e) => e.resourceOrFolderIsDraggable), It = () => T((e) => e.elementDragOver), Dt = () => T((e) => e.resourceActionDisable), St = () => {
424
- const e = W();
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
+ const e = z();
421
+ return (e == null ? void 0 : e.id) === E.BIN;
422
+ }, pt = () => T((e) => e.resourceIsTrash), gs = () => T((e) => e.resourceOrFolderIsDraggable), ft = () => T((e) => e.elementDragOver), gt = () => T((e) => e.resourceActionDisable), mt = () => {
423
+ const e = z();
425
424
  return (e == null ? void 0 : e.id) === "default";
426
- }, bt = () => T((e) => e.status), wt = () => {
427
- const e = Dt(), {
425
+ }, yt = () => T((e) => e.status), Ct = () => {
426
+ const e = gt(), {
428
427
  clearSelectedIds: t,
429
428
  setResourceActionDisable: s,
430
429
  clearSelectedItems: r
431
- } = F();
430
+ } = R();
432
431
  return {
433
432
  isActionDisableModalOpen: e,
434
433
  onActionDisableCancel: () => {
435
434
  t(), r(), s(!1);
436
435
  }
437
436
  };
438
- }, xt = () => {
439
- const e = yt(), {
437
+ }, It = () => {
438
+ const e = pt(), {
440
439
  clearSelectedIds: t,
441
440
  setResourceIsTrash: s,
442
441
  clearSelectedItems: r
443
- } = F();
442
+ } = R();
444
443
  return {
445
444
  isTrashedModalOpen: e,
446
445
  onTrashedCancel: () => {
447
446
  t(), r(), s(!1);
448
447
  }
449
448
  };
450
- }, Tt = 175, Ct = 10, ge = "blog", me = "blog";
451
- class ye extends ue {
449
+ }, wt = 175, Dt = 10, ge = "blog", me = "blog";
450
+ class ye extends de {
452
451
  getEditUrl() {
453
452
  throw new Error("Method not implemented.");
454
453
  }
@@ -499,18 +498,18 @@ class ye extends ue {
499
498
  return `/blog/print/${t}`;
500
499
  }
501
500
  }
502
- ue.register({
501
+ de.register({
503
502
  application: ge,
504
503
  resourceType: me
505
504
  }, (e) => new ye(e));
506
- const K = document.querySelector("[data-explorer-config]");
505
+ const q = document.querySelector("[data-explorer-config]");
507
506
  let ce;
508
- function fs() {
507
+ function ms() {
509
508
  var e;
510
- if ((e = K == null ? void 0 : K.dataset) != null && e.explorerConfig) {
509
+ if ((e = q == null ? void 0 : q.dataset) != null && e.explorerConfig) {
511
510
  const {
512
511
  explorerConfig: t
513
- } = K.dataset;
512
+ } = q.dataset;
514
513
  try {
515
514
  const s = JSON.parse(t);
516
515
  ce = {
@@ -519,39 +518,39 @@ function fs() {
519
518
  enableOnboarding: s.enableOnboarding !== void 0 ? s.enableOnboarding : !0
520
519
  };
521
520
  } catch (s) {
522
- console.error("[Explorer Config] could not parse app params from root data attributes:", K == null ? void 0 : K.dataset, s);
521
+ console.error("[Explorer Config] could not parse app params from root data attributes:", q == null ? void 0 : q.dataset, s);
523
522
  }
524
523
  }
525
524
  return ce;
526
525
  }
527
- const Ft = (e, t) => {
526
+ const xt = (e, t) => {
528
527
  const s = e.map((o) => o.workflow), r = new Set(s);
529
- return Je({
528
+ return Ge({
530
529
  queryKey: [...r],
531
- queryFn: () => it([...r]),
532
- select: (o) => e.filter((a) => o[a.workflow]).map((a) => ({
533
- ...a,
530
+ queryFn: () => ot([...r]),
531
+ select: (o) => e.filter((c) => o[c.workflow]).map((c) => ({
532
+ ...c,
534
533
  available: !0
535
534
  })),
536
535
  staleTime: 1 / 0,
537
536
  enabled: !!t
538
537
  });
539
- }, Rt = (e) => {
538
+ }, St = (e) => {
540
539
  const t = T((s) => s.config);
541
- return Ge(Ft(e, t));
542
- }, Nt = () => {
543
- const e = T((n) => n.config), t = Q(), {
540
+ return We(xt(e, t));
541
+ }, bt = () => {
542
+ const e = T((n) => n.config), t = A(), {
544
543
  filters: s,
545
544
  trashed: r,
546
545
  search: o
547
- } = t, a = ["context", {
546
+ } = t, c = ["context", {
548
547
  folderId: s.folder,
549
548
  filters: s,
550
549
  trashed: r,
551
550
  search: o
552
551
  }];
553
- return Xe({
554
- queryKey: a,
552
+ return Je({
553
+ queryKey: c,
555
554
  queryFn: async ({
556
555
  pageParam: n
557
556
  }) => await he({
@@ -569,63 +568,63 @@ const Ft = (e, t) => {
569
568
  retry: !1,
570
569
  getNextPageParam: (n) => n.pagination.startIdx + n.pagination.pageSize
571
570
  });
572
- }, gs = () => {
573
- const e = L(), t = k(), s = Q(), r = V(), o = X(), a = Z(), n = Y(), u = ee().length > 0, p = u ? a : n, {
571
+ }, ys = () => {
572
+ const e = U(), t = P(), s = A(), r = $(), o = J(), c = Y(), n = X(), u = ee().length > 0, p = u ? c : n, {
574
573
  clearSelectedItems: i,
575
574
  clearSelectedIds: l,
576
575
  setTreeData: h,
577
576
  setSearchParams: d
578
- } = F(), {
577
+ } = R(), {
579
578
  filters: f,
580
579
  trashed: m
581
- } = s, D = ["context", {
580
+ } = s, I = ["context", {
582
581
  folderId: f.folder,
583
582
  filters: f,
584
583
  trashed: m
585
584
  }];
586
- return B({
587
- mutationFn: async () => await ot({
585
+ return O({
586
+ mutationFn: async () => await et({
588
587
  searchParams: s,
589
588
  folderIds: o,
590
589
  resourceIds: p,
591
590
  useAssetIds: u
592
591
  }),
593
- onError(I) {
594
- typeof I == "string" && e.error(P(I));
592
+ onError(C) {
593
+ typeof C == "string" && e.error(L(C));
595
594
  },
596
- onSuccess: async (I) => {
595
+ onSuccess: async (C) => {
597
596
  if (await t.cancelQueries({
598
- queryKey: D
599
- }), t.getQueryData(D))
600
- return e.success(P("explorer.trash.title")), t.setQueryData(D, (C) => {
601
- var O;
602
- if (C) {
603
- const x = {
604
- ...C,
605
- pages: C == null ? void 0 : C.pages.map((y) => {
597
+ queryKey: I
598
+ }), t.getQueryData(I))
599
+ return e.success(L("explorer.trash.title")), t.setQueryData(I, (F) => {
600
+ var k;
601
+ if (F) {
602
+ const S = {
603
+ ...F,
604
+ pages: F == null ? void 0 : F.pages.map((y) => {
606
605
  var g;
607
606
  return {
608
607
  ...y,
609
- folders: y.folders.filter((S) => !o.includes(S.id)),
608
+ folders: y.folders.filter((w) => !o.includes(w.id)),
610
609
  pagination: {
611
610
  ...y.pagination,
612
611
  // @ts-ignore
613
- maxIdx: ((g = y == null ? void 0 : y.pagination) == null ? void 0 : g.maxIdx) - I.resources.length
612
+ maxIdx: ((g = y == null ? void 0 : y.pagination) == null ? void 0 : g.maxIdx) - C.resources.length
614
613
  },
615
- resources: y.resources.filter((S) => u ? !a.includes(S.assetId) : !p.includes(S.id))
614
+ resources: y.resources.filter((w) => u ? !c.includes(w.assetId) : !p.includes(w.id))
616
615
  };
617
616
  })
618
- }, b = Pe(r, {
617
+ }, D = Pe(r, {
619
618
  folders: o
620
619
  });
621
- return h(b), d({
620
+ return h(D), d({
622
621
  ...s,
623
622
  pagination: {
624
623
  ...s.pagination,
625
624
  // @ts-ignore
626
- maxIdx: ((O = s.pagination) == null ? void 0 : O.maxIdx) - I.resources.length
625
+ maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - C.resources.length
627
626
  }
628
- }), x;
627
+ }), S;
629
628
  }
630
629
  });
631
630
  },
@@ -633,13 +632,13 @@ const Ft = (e, t) => {
633
632
  i(), l();
634
633
  }
635
634
  });
636
- }, ms = () => {
637
- const e = L(), t = k(), s = Q(), r = X(), o = Z(), a = Y(), n = ee().length > 0, u = n ? o : a, {
635
+ }, Cs = () => {
636
+ const e = U(), t = P(), s = A(), r = J(), o = Y(), c = X(), n = ee().length > 0, u = n ? o : c, {
638
637
  setFolderIds: p,
639
638
  setResourceIds: i,
640
639
  setSelectedResources: l,
641
640
  setSelectedFolders: h
642
- } = F(), {
641
+ } = R(), {
643
642
  filters: d,
644
643
  trashed: f
645
644
  } = s, m = ["context", {
@@ -647,28 +646,28 @@ const Ft = (e, t) => {
647
646
  filters: d,
648
647
  trashed: f
649
648
  }];
650
- return B({
651
- mutationFn: async () => await at({
649
+ return O({
650
+ mutationFn: async () => await st({
652
651
  searchParams: s,
653
652
  folderIds: r,
654
653
  resourceIds: u,
655
654
  useAssetIds: n
656
655
  }),
657
- onError(D) {
658
- typeof D == "string" && e.error(P(D));
656
+ onError(I) {
657
+ typeof I == "string" && e.error(L(I));
659
658
  },
660
659
  onSuccess: async () => {
661
660
  if (await t.cancelQueries({
662
661
  queryKey: m
663
662
  }), t.getQueryData(m))
664
- return e.success(P("explorer.trash.toast")), t.setQueryData(m, (I) => {
665
- if (I)
663
+ return e.success(L("explorer.trash.toast")), t.setQueryData(m, (C) => {
664
+ if (C)
666
665
  return {
667
- ...I,
668
- pages: I == null ? void 0 : I.pages.map((w) => ({
669
- ...w,
670
- folders: w.folders.filter((C) => !r.includes(C.id)),
671
- resources: w.resources.filter((C) => n ? !o.includes(C.assetId) : !u.includes(C.id))
666
+ ...C,
667
+ pages: C == null ? void 0 : C.pages.map((x) => ({
668
+ ...x,
669
+ folders: x.folders.filter((F) => !r.includes(F.id)),
670
+ resources: x.resources.filter((F) => n ? !o.includes(F.assetId) : !u.includes(F.id))
672
671
  }))
673
672
  };
674
673
  });
@@ -677,11 +676,11 @@ const Ft = (e, t) => {
677
676
  i([]), l([]), p([]), h([]);
678
677
  }
679
678
  });
680
- }, ys = () => {
681
- const e = L(), t = k(), s = Q(), r = X(), o = Z(), a = Y(), n = ee().length > 0, u = n ? o : a, {
679
+ }, Is = () => {
680
+ const e = U(), t = P(), s = A(), r = J(), o = Y(), c = X(), n = ee().length > 0, u = n ? o : c, {
682
681
  clearSelectedItems: p,
683
682
  clearSelectedIds: i
684
- } = F(), {
683
+ } = R(), {
685
684
  filters: l,
686
685
  trashed: h
687
686
  } = s, d = ["context", {
@@ -689,28 +688,28 @@ const Ft = (e, t) => {
689
688
  filters: l,
690
689
  trashed: h
691
690
  }];
692
- return B({
693
- mutationFn: async () => await nt({
691
+ return O({
692
+ mutationFn: async () => await tt({
694
693
  searchParams: s,
695
694
  folderIds: r,
696
695
  resourceIds: u,
697
696
  useAssetIds: n
698
697
  }),
699
698
  onError(f) {
700
- typeof f == "string" && e.error(P(f));
699
+ typeof f == "string" && e.error(L(f));
701
700
  },
702
701
  onSuccess: async () => {
703
702
  if (await t.cancelQueries({
704
703
  queryKey: d
705
704
  }), t.getQueryData(d))
706
- return e.success(P("explorer.removed.from.trash")), t.setQueryData(d, (m) => {
705
+ return e.success(L("explorer.removed.from.trash")), t.setQueryData(d, (m) => {
707
706
  if (m)
708
707
  return {
709
708
  ...m,
710
- pages: m == null ? void 0 : m.pages.map((I) => ({
711
- ...I,
712
- folders: I.folders.filter((w) => !r.includes(w.id)),
713
- resources: I.resources.filter((w) => n ? !o.includes(w.assetId) : !u.includes(w.id))
709
+ pages: m == null ? void 0 : m.pages.map((C) => ({
710
+ ...C,
711
+ folders: C.folders.filter((x) => !r.includes(x.id)),
712
+ resources: C.resources.filter((x) => n ? !o.includes(x.assetId) : !u.includes(x.id))
714
713
  }))
715
714
  };
716
715
  });
@@ -719,28 +718,28 @@ const Ft = (e, t) => {
719
718
  p(), i();
720
719
  }
721
720
  });
722
- }, Is = () => {
723
- const e = L(), t = Q(), s = k(), {
721
+ }, ws = () => {
722
+ const e = U(), t = A(), s = P(), {
724
723
  user: r
725
- } = de(), o = W(), {
726
- filters: a,
724
+ } = ue(), o = z(), {
725
+ filters: c,
727
726
  trashed: n
728
727
  } = t, u = "duplicate_start", p = ["context", {
729
- folderId: a.folder,
730
- filters: a,
728
+ folderId: c.folder,
729
+ filters: c,
731
730
  trashed: n
732
731
  }];
733
- return B({
734
- mutationFn: async (i) => (e.info(P("duplicate.start"), {
732
+ return O({
733
+ mutationFn: async (i) => (e.info(L("duplicate.start"), {
735
734
  id: u
736
- }), await ct(t, i.assetId)),
735
+ }), await rt(t, i.assetId)),
737
736
  onSuccess: async (i, l) => {
738
- e.remove(u), e.success(P("duplicate.done")), await s.cancelQueries({
737
+ e.remove(u), e.success(L("duplicate.done")), await s.cancelQueries({
739
738
  queryKey: p
740
739
  });
741
740
  const h = s.getQueryData(p), d = {
742
741
  ...l,
743
- name: `${l.name}${P("duplicate.suffix")}`,
742
+ name: `${l.name}${L("duplicate.suffix")}`,
744
743
  assetId: i.duplicateId,
745
744
  id: i.duplicateId,
746
745
  creatorId: r == null ? void 0 : r.userId,
@@ -763,7 +762,7 @@ const Ft = (e, t) => {
763
762
  resources: [d, ...m.resources]
764
763
  }))
765
764
  };
766
- }), o.id && o.id !== N.DEFAULT && pe({
765
+ }), o.id && o.id !== E.DEFAULT && pe({
767
766
  searchParams: t,
768
767
  resourceIds: [i.duplicateId],
769
768
  folderId: o.id,
@@ -772,64 +771,64 @@ const Ft = (e, t) => {
772
771
  });
773
772
  },
774
773
  onError: (i) => {
775
- e.remove(u), typeof i == "string" && e.error(`${P("duplicate.error")}: ${i}`);
774
+ e.remove(u), typeof i == "string" && e.error(`${L("duplicate.error")}: ${i}`);
776
775
  }
777
776
  });
778
- }, Et = () => {
779
- const e = L(), t = k(), s = Q(), r = V(), o = X(), a = Z(), n = Y(), u = ee().length > 0, p = u ? a : n, {
777
+ }, Tt = () => {
778
+ const e = U(), t = P(), s = A(), r = $(), o = J(), c = Y(), n = X(), u = ee().length > 0, p = u ? c : n, {
780
779
  clearSelectedIds: i,
781
780
  clearSelectedItems: l,
782
781
  setTreeData: h,
783
782
  setSearchParams: d
784
- } = F(), {
783
+ } = R(), {
785
784
  filters: f,
786
785
  trashed: m
787
- } = s, D = ["context", {
786
+ } = s, I = ["context", {
788
787
  folderId: f.folder,
789
788
  filters: f,
790
789
  trashed: m
791
790
  }];
792
- return B({
793
- mutationFn: async (I) => await pe({
791
+ return O({
792
+ mutationFn: async (C) => await pe({
794
793
  searchParams: s,
795
- folderId: I,
794
+ folderId: C,
796
795
  folderIds: o,
797
796
  resourceIds: p,
798
797
  useAssetIds: u
799
798
  }),
800
- onError(I) {
801
- typeof I == "string" && e.error(P(I));
799
+ onError(C) {
800
+ typeof C == "string" && e.error(L(C));
802
801
  },
803
- onSuccess: async (I, w) => {
804
- if (t.getQueryData(D))
805
- return t.setQueryData(D, (O) => {
806
- var x;
807
- if (O) {
808
- const b = Ee(r, {
809
- destinationId: w,
802
+ onSuccess: async (C, x) => {
803
+ if (t.getQueryData(I))
804
+ return t.setQueryData(I, (k) => {
805
+ var S;
806
+ if (k) {
807
+ const D = Le(r, {
808
+ destinationId: x,
810
809
  folders: o
811
810
  }), y = {
812
- ...O,
813
- pages: O == null ? void 0 : O.pages.map((g) => {
814
- var S;
811
+ ...k,
812
+ pages: k == null ? void 0 : k.pages.map((g) => {
813
+ var w;
815
814
  return {
816
815
  ...g,
817
- folders: g.folders.filter((R) => !o.includes(R.id)),
816
+ folders: g.folders.filter((v) => !o.includes(v.id)),
818
817
  pagination: {
819
818
  ...g.pagination,
820
819
  // @ts-ignore
821
- maxIdx: ((S = g.pagination) == null ? void 0 : S.maxIdx) - I.resources.length
820
+ maxIdx: ((w = g.pagination) == null ? void 0 : w.maxIdx) - C.resources.length
822
821
  },
823
- resources: g.resources.filter((R) => u ? !a.includes(R.assetId) : !p.includes(R.id))
822
+ resources: g.resources.filter((v) => u ? !c.includes(v.assetId) : !p.includes(v.id))
824
823
  };
825
824
  })
826
825
  };
827
- return h(b), d({
826
+ return h(D), d({
828
827
  ...s,
829
828
  pagination: {
830
829
  ...s.pagination,
831
830
  // @ts-ignore
832
- maxIdx: ((x = s.pagination) == null ? void 0 : x.maxIdx) - I.resources.length
831
+ maxIdx: ((S = s.pagination) == null ? void 0 : S.maxIdx) - C.resources.length
833
832
  }
834
833
  }), y;
835
834
  }
@@ -841,27 +840,27 @@ const Ft = (e, t) => {
841
840
  }
842
841
  });
843
842
  }, Ds = () => {
844
- const e = L(), t = k(), s = Q(), r = V(), {
843
+ const e = U(), t = P(), s = A(), r = $(), {
845
844
  setTreeData: o
846
- } = F(), {
847
- filters: a,
845
+ } = R(), {
846
+ filters: c,
848
847
  trashed: n
849
848
  } = s, u = ["context", {
850
- folderId: a.folder,
851
- filters: a,
849
+ folderId: c.folder,
850
+ filters: c,
852
851
  trashed: n
853
852
  }];
854
- return B({
853
+ return O({
855
854
  mutationFn: async ({
856
855
  name: p,
857
856
  parentId: i
858
- }) => await st({
857
+ }) => await Xe({
859
858
  searchParams: s,
860
859
  name: p,
861
860
  parentId: i
862
861
  }),
863
862
  onError(p) {
864
- typeof p == "string" && e.error(P(p));
863
+ typeof p == "string" && e.error(L(p));
865
864
  },
866
865
  onSuccess: async (p, i) => {
867
866
  await t.cancelQueries({
@@ -878,11 +877,11 @@ const Ft = (e, t) => {
878
877
  if (d) {
879
878
  const f = {
880
879
  ...d,
881
- pages: d == null ? void 0 : d.pages.map((D) => ({
882
- ...D,
883
- folders: [...D.folders, h]
880
+ pages: d == null ? void 0 : d.pages.map((I) => ({
881
+ ...I,
882
+ folders: [...I.folders, h]
884
883
  }))
885
- }, m = qe(r, {
884
+ }, m = Me(r, {
886
885
  parentId: i.parentId,
887
886
  newFolder: h
888
887
  });
@@ -891,12 +890,12 @@ const Ft = (e, t) => {
891
890
  });
892
891
  }
893
892
  });
894
- }, Ss = () => {
895
- const e = L(), t = k(), s = Q(), r = V(), {
893
+ }, xs = () => {
894
+ const e = U(), t = P(), s = A(), r = $(), {
896
895
  setFolderIds: o,
897
- setSelectedFolders: a,
896
+ setSelectedFolders: c,
898
897
  setTreeData: n
899
- } = F(), {
898
+ } = R(), {
900
899
  filters: u,
901
900
  trashed: p
902
901
  } = s, i = ["context", {
@@ -904,19 +903,19 @@ const Ft = (e, t) => {
904
903
  filters: u,
905
904
  trashed: p
906
905
  }];
907
- return B({
906
+ return O({
908
907
  mutationFn: async ({
909
908
  folderId: l,
910
909
  name: h,
911
910
  parentId: d
912
- }) => await rt({
911
+ }) => await Ye({
913
912
  searchParams: s,
914
913
  folderId: l,
915
914
  parentId: d,
916
915
  name: h
917
916
  }),
918
917
  onError(l) {
919
- typeof l == "string" && e.error(P(l));
918
+ typeof l == "string" && e.error(L(l));
920
919
  },
921
920
  onSuccess: async (l, h) => {
922
921
  if (await t.cancelQueries({
@@ -926,39 +925,39 @@ const Ft = (e, t) => {
926
925
  if (f) {
927
926
  const m = {
928
927
  ...f,
929
- pages: f == null ? void 0 : f.pages.map((I) => ({
930
- ...I,
931
- folders: I.folders.map((w) => w.id === l.id ? {
928
+ pages: f == null ? void 0 : f.pages.map((C) => ({
929
+ ...C,
930
+ folders: C.folders.map((x) => x.id === l.id ? {
932
931
  ...l,
933
932
  parentId: h.parentId,
934
- rights: w.rights
935
- } : w)
933
+ rights: x.rights
934
+ } : x)
936
935
  }))
937
- }, D = Oe(r, {
936
+ }, I = ke(r, {
938
937
  folderId: h.folderId,
939
938
  newFolder: l
940
939
  });
941
- return n(D), m;
940
+ return n(I), m;
942
941
  }
943
942
  });
944
943
  },
945
944
  onSettled: () => {
946
- o([]), a([]);
945
+ o([]), c([]);
947
946
  }
948
947
  });
949
- }, bs = (e) => {
950
- const t = k(), s = Q(), {
948
+ }, Ss = (e) => {
949
+ const t = P(), s = A(), {
951
950
  setResourceIds: r,
952
951
  setSelectedResources: o
953
- } = F(), {
954
- filters: a,
952
+ } = R(), {
953
+ filters: c,
955
954
  trashed: n
956
955
  } = s, u = ["context", {
957
- folderId: a.folder,
958
- filters: a,
956
+ folderId: c.folder,
957
+ filters: c,
959
958
  trashed: n
960
959
  }];
961
- return Ae({
960
+ return Ne({
962
961
  application: e,
963
962
  options: {
964
963
  onSuccess: async (p, i) => {
@@ -974,7 +973,7 @@ const Ft = (e, t) => {
974
973
  resources: d.resources.map((f) => {
975
974
  if (f.assetId === (i == null ? void 0 : i.resourceId)) {
976
975
  let m = [`creator:${f.creatorId}`];
977
- return (i == null ? void 0 : i.rights.length) >= 1 && (m = [...m, ...i.rights.flatMap((D) => D.actions.map((I) => `${D.type}:${D.id}:${I.id}`))]), {
976
+ 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}`))]), {
978
977
  ...f,
979
978
  rights: m
980
979
  };
@@ -990,23 +989,23 @@ const Ft = (e, t) => {
990
989
  }
991
990
  }
992
991
  });
993
- }, ws = (e) => {
994
- const t = k(), s = Q(), {
992
+ }, bs = (e) => {
993
+ const t = P(), s = A(), {
995
994
  filters: r,
996
995
  trashed: o
997
- } = s, a = ["context", {
996
+ } = s, c = ["context", {
998
997
  folderId: r.folder,
999
998
  filters: r,
1000
999
  trashed: o
1001
1000
  }];
1002
- return Qe({
1001
+ return Ae({
1003
1002
  application: e,
1004
1003
  options: {
1005
1004
  onSuccess: async (n, u) => {
1006
1005
  if (await t.cancelQueries({
1007
- queryKey: a
1008
- }), t.getQueryData(a))
1009
- return t.setQueryData(a, (i) => {
1006
+ queryKey: c
1007
+ }), t.getQueryData(c))
1008
+ return t.setQueryData(c, (i) => {
1010
1009
  if (i)
1011
1010
  return {
1012
1011
  ...i,
@@ -1018,19 +1017,19 @@ const Ft = (e, t) => {
1018
1017
  name: d,
1019
1018
  thumbnail: f,
1020
1019
  public: m,
1021
- description: D,
1022
- slug: I,
1023
- ...w
1020
+ description: I,
1021
+ slug: C,
1022
+ ...x
1024
1023
  } = u;
1025
1024
  return {
1026
1025
  ...h,
1027
- ...w,
1026
+ ...x,
1028
1027
  // add any custom field
1029
1028
  name: d,
1030
1029
  thumbnail: typeof f == "string" ? f : URL.createObjectURL(f),
1031
1030
  public: m,
1032
- description: D,
1033
- slug: I
1031
+ description: I,
1032
+ slug: C
1034
1033
  };
1035
1034
  } else
1036
1035
  return h;
@@ -1041,30 +1040,30 @@ const Ft = (e, t) => {
1041
1040
  }
1042
1041
  }
1043
1042
  });
1044
- }, xs = () => {
1045
- const e = L(), t = k(), s = Q(), {
1043
+ }, Ts = () => {
1044
+ const e = U(), t = P(), s = A(), {
1046
1045
  user: r
1047
- } = de(), {
1046
+ } = ue(), {
1048
1047
  appCode: o
1049
- } = v(), a = ["context", {
1048
+ } = Z(), c = ["context", {
1050
1049
  folderId: s.filters.folder,
1051
1050
  filters: s.filters,
1052
1051
  trashed: s.trashed
1053
1052
  }];
1054
- return B({
1055
- mutationFn: async (n) => await dt({
1053
+ return O({
1054
+ mutationFn: async (n) => await at({
1056
1055
  searchParams: s,
1057
1056
  params: n
1058
1057
  }),
1059
1058
  onError(n) {
1060
- typeof n == "string" && e.error(P(n));
1059
+ typeof n == "string" && e.error(L(n));
1061
1060
  },
1062
1061
  onSuccess: async (n, u) => {
1063
1062
  var l, h, d;
1064
1063
  await t.cancelQueries({
1065
- queryKey: a
1064
+ queryKey: c
1066
1065
  });
1067
- const p = t.getQueryData(a), i = {
1066
+ const p = t.getQueryData(c), i = {
1068
1067
  ...u,
1069
1068
  thumbnail: n.thumbnail || "",
1070
1069
  application: o,
@@ -1082,7 +1081,7 @@ const Ft = (e, t) => {
1082
1081
  rights: [`creator:${r == null ? void 0 : r.userId}`]
1083
1082
  };
1084
1083
  if (p)
1085
- return t.setQueryData(a, (f) => {
1084
+ return t.setQueryData(c, (f) => {
1086
1085
  if (f)
1087
1086
  return {
1088
1087
  ...f,
@@ -1097,15 +1096,15 @@ const Ft = (e, t) => {
1097
1096
  };
1098
1097
  function ie(e, t) {
1099
1098
  var r;
1100
- const s = J(e, t);
1101
- return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t === N.BIN ? [N.BIN] : [N.DEFAULT];
1099
+ const s = G(e, t);
1100
+ 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];
1102
1101
  }
1103
- function Pt() {
1104
- const e = k(), t = Et(), s = L(), {
1102
+ function Ft() {
1103
+ const e = P(), t = Tt(), s = U(), {
1105
1104
  appCode: r
1106
- } = v(), {
1105
+ } = Z(), {
1107
1106
  t: o
1108
- } = _(["common", r]), a = o("explorer.filters.mine", {
1107
+ } = V(["common", r]), c = o("explorer.filters.mine", {
1109
1108
  ns: r
1110
1109
  }), {
1111
1110
  setResourceOrFolderIsDraggable: n,
@@ -1113,38 +1112,38 @@ function Pt() {
1113
1112
  setResourceIds: p,
1114
1113
  setFolderIds: i,
1115
1114
  fetchTreeData: l
1116
- } = F(), h = V(), f = oe(we, {
1115
+ } = R(), h = $(), f = oe(xe, {
1117
1116
  activationConstraint: {
1118
- delay: Tt,
1119
- tolerance: Ct
1117
+ delay: wt,
1118
+ tolerance: Dt
1120
1119
  }
1121
- }), m = oe(xe), D = Te(f, m), I = (x, b) => {
1120
+ }), m = oe(Se), I = be(f, m), C = (S, D) => {
1122
1121
  var y;
1123
- ((y = x.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ E(G, { children: [
1122
+ ((y = S.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ b(W, { children: [
1124
1123
  o("explorer.dragged.resource"),
1125
1124
  " ",
1126
- /* @__PURE__ */ c("strong", { children: b })
1127
- ] })) : s.success(/* @__PURE__ */ E(G, { children: [
1125
+ /* @__PURE__ */ a("strong", { children: D })
1126
+ ] })) : s.success(/* @__PURE__ */ b(W, { children: [
1128
1127
  o("explorer.dragged.folder"),
1129
1128
  " ",
1130
- /* @__PURE__ */ c("strong", { children: b })
1129
+ /* @__PURE__ */ a("strong", { children: D })
1131
1130
  ] }));
1132
1131
  };
1133
1132
  return {
1134
- handleDragEnd: async (x) => {
1133
+ handleDragEnd: async (S) => {
1135
1134
  const {
1136
- over: b,
1135
+ over: D,
1137
1136
  active: y
1138
- } = x, g = b == null ? void 0 : b.data.current, S = y.data.current, R = ne(h, g == null ? void 0 : g.id), z = ie(h, g == null ? void 0 : g.id);
1139
- if ((S == null ? void 0 : S.id) == (g == null ? void 0 : g.id) || R.includes(S == null ? void 0 : S.id) || z.includes(S == null ? void 0 : S.id))
1137
+ } = S, g = D == null ? void 0 : D.data.current, w = y.data.current, v = ae(h, g == null ? void 0 : g.id), _ = ie(h, g == null ? void 0 : g.id);
1138
+ if ((w == null ? void 0 : w.id) == (g == null ? void 0 : g.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id))
1140
1139
  p([]), i([]);
1141
1140
  else {
1142
- const H = (g == null ? void 0 : g.name) ?? a;
1143
- if (b)
1141
+ const j = (g == null ? void 0 : g.name) ?? c;
1142
+ if (D)
1144
1143
  try {
1145
- await t.mutate(g == null ? void 0 : g.id), I(y, H);
1146
- } catch (De) {
1147
- console.error(De);
1144
+ await t.mutate(g == null ? void 0 : g.id), C(y, j);
1145
+ } catch (Ie) {
1146
+ console.error(Ie);
1148
1147
  } finally {
1149
1148
  u({
1150
1149
  isOver: !1,
@@ -1159,32 +1158,32 @@ function Pt() {
1159
1158
  elementDrag: void 0
1160
1159
  });
1161
1160
  },
1162
- handleDragStart: (x) => {
1161
+ handleDragStart: (S) => {
1163
1162
  const {
1164
- active: b
1165
- } = x, y = b.data.current;
1163
+ active: D
1164
+ } = S, y = D.data.current;
1166
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]), n({
1167
1166
  isDrag: !0,
1168
1167
  elementDrag: y == null ? void 0 : y.id
1169
1168
  });
1170
1169
  },
1171
- handleDragOver: (x) => {
1170
+ handleDragOver: (S) => {
1172
1171
  const {
1173
- over: b,
1172
+ over: D,
1174
1173
  active: y
1175
- } = x, g = b == null ? void 0 : b.data.current, S = y == null ? void 0 : y.data.current, R = ne(h, g == null ? void 0 : g.id), z = ie(h, g == null ? void 0 : g.id);
1176
- if (b) {
1177
- const H = {
1174
+ } = S, g = D == null ? void 0 : D.data.current, w = y == null ? void 0 : y.data.current, v = ae(h, g == null ? void 0 : g.id), _ = ie(h, g == null ? void 0 : g.id);
1175
+ if (D) {
1176
+ const j = {
1178
1177
  isOver: !0,
1179
1178
  canMove: !1,
1180
1179
  overId: g == null ? void 0 : g.id,
1181
1180
  isTreeview: g == null ? void 0 : g.isTreeview
1182
1181
  };
1183
- (S == null ? void 0 : S.id) === (g == null ? void 0 : g.id) || R.includes(S == null ? void 0 : S.id) || z.includes(S == null ? void 0 : S.id) ? u({
1184
- ...H,
1182
+ (w == null ? void 0 : w.id) === (g == null ? void 0 : g.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id) ? u({
1183
+ ...j,
1185
1184
  canMove: !1
1186
1185
  }) : (l(g == null ? void 0 : g.id, e), u({
1187
- ...H,
1186
+ ...j,
1188
1187
  canMove: !0
1189
1188
  }));
1190
1189
  } else
@@ -1195,42 +1194,71 @@ function Pt() {
1195
1194
  isTreeview: !1
1196
1195
  });
1197
1196
  },
1198
- sensors: D
1197
+ sensors: I
1199
1198
  };
1200
1199
  }
1201
- const At = /* @__PURE__ */ q(async () => await import("./EmptyScreenApp.js")), Qt = /* @__PURE__ */ q(async () => await import("./EmptyScreenSearch.js")), qt = /* @__PURE__ */ q(async () => await import("./EmptyScreenError.js")), Ot = /* @__PURE__ */ q(async () => await import("./EmptyScreenNoContentInFolder.js")), kt = /* @__PURE__ */ q(async () => await import("./EmptyScreenTrash.js")), Ut = /* @__PURE__ */ q(async () => await import("./FoldersList.js")), Mt = /* @__PURE__ */ q(async () => await import("./ResourcesList.js")), Lt = () => {
1202
- const e = St(), t = re(), s = se(), r = Q(), o = W(), a = L(), n = k(), {
1200
+ 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(), c = U(), n = P(), {
1203
1202
  appCode: u
1204
- } = v(), {
1203
+ } = Z(), {
1205
1204
  t: p
1206
- } = _([u]), {
1205
+ } = V([u]), {
1207
1206
  setSearchParams: i,
1208
1207
  setSearchConfig: l,
1209
1208
  fetchTreeData: h
1210
- } = F(), {
1209
+ } = R(), {
1211
1210
  data: d,
1212
1211
  isError: f,
1213
1212
  error: m,
1214
- isLoading: D,
1215
- isFetching: I,
1216
- fetchNextPage: w
1217
- } = Nt(), C = (d == null ? void 0 : d.pages[0].folders.length) === 0, O = (d == null ? void 0 : d.pages[0].resources.length) === 0, x = C && O;
1218
- return $(() => {
1219
- var b, y;
1220
- d && ((b = d == null ? void 0 : d.pages[0]) != null && b.searchConfig && l(d.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, n), i({
1213
+ isLoading: I,
1214
+ isFetching: C,
1215
+ fetchNextPage: x
1216
+ } = bt(), F = (d == null ? void 0 : d.pages[0].folders.length) === 0, k = (d == null ? void 0 : d.pages[0].resources.length) === 0, S = F && k;
1217
+ return B(() => {
1218
+ var D, y;
1219
+ d && ((D = d == null ? void 0 : d.pages[0]) != null && D.searchConfig && l(d.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, n), i({
1221
1220
  ...r,
1222
1221
  pagination: (y = d == null ? void 0 : d.pages[(d == null ? void 0 : d.pages.length) - 1]) == null ? void 0 : y.pagination
1223
1222
  }));
1224
- }, [d]), $(() => {
1225
- m && typeof m == "string" && a.error(p(m));
1226
- }, [m]), D ? /* @__PURE__ */ c(U, {}) : f ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(qt, {}) }) : r.search && x ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(Qt, {}) }) : e && x ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(At, {}) }) : s && x && !t ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(Ot, {}) }) : t && (d == null ? void 0 : d.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(kt, {}) }) : /* @__PURE__ */ E(M, { fallback: /* @__PURE__ */ c(U, {}), children: [
1227
- /* @__PURE__ */ c(Ut, { data: d, isFetching: I }),
1228
- /* @__PURE__ */ c(Mt, { data: d, isFetching: I, fetchNextPage: w })
1223
+ }, [d]), B(() => {
1224
+ m && typeof m == "string" && c.error(p(m));
1225
+ }, [m]), I ? /* @__PURE__ */ a(H, {}) : f ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Et, {}) }) : r.search && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(vt, {}) }) : e && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Rt, {}) }) : s && S && !t ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Lt, {}) }) : t && (d == null ? void 0 : d.pages[0].resources.length) === 0 ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Nt, {}) }) : /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
1226
+ /* @__PURE__ */ a(At, { data: d, isFetching: C }),
1227
+ /* @__PURE__ */ a(Mt, { data: d, isFetching: C, fetchNextPage: x })
1229
1228
  ] });
1230
- }, Ie = () => {
1231
- const e = Q(), [t, s] = le(""), r = mt(), o = bt(), a = Se(null), {
1229
+ }, Pt = ({
1230
+ title: e,
1231
+ titleId: t,
1232
+ ...s
1233
+ }) => /* @__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__ */ a("title", { id: t, children: e }) : null,
1235
+ /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1", clipRule: "evenodd" }),
1236
+ /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0", clipRule: "evenodd" })
1237
+ ] }), Ht = ({
1238
+ title: e,
1239
+ titleId: t,
1240
+ ...s
1241
+ }) => /* @__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__ */ a("title", { id: t, children: e }) : null,
1243
+ /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0", clipRule: "evenodd" })
1244
+ ] }), Qt = ({
1245
+ title: e,
1246
+ titleId: t,
1247
+ ...s
1248
+ }) => /* @__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__ */ a("title", { id: t, children: e }) : null,
1250
+ /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z", clipRule: "evenodd" })
1251
+ ] }), Ut = ({
1252
+ title: e,
1253
+ titleId: t,
1254
+ ...s
1255
+ }) => /* @__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__ */ a("title", { id: t, children: e }) : null,
1257
+ /* @__PURE__ */ a("path", { fill: "currentColor", fillRule: "evenodd", d: "M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z", clipRule: "evenodd" })
1258
+ ] }), Ce = () => {
1259
+ const e = A(), [t, s] = le(""), r = ht(), o = yt(), c = we(null), {
1232
1260
  setSearchParams: n
1233
- } = F(), u = (l) => {
1261
+ } = R(), u = (l) => {
1234
1262
  const h = l.target.value;
1235
1263
  s(h.toString());
1236
1264
  }, p = (l) => {
@@ -1242,7 +1270,7 @@ const At = /* @__PURE__ */ q(async () => await import("./EmptyScreenApp.js")), Q
1242
1270
  search: t || void 0
1243
1271
  });
1244
1272
  };
1245
- return $(() => {
1273
+ return B(() => {
1246
1274
  const h = t.length == 0 || t.length >= r.minLength ? {
1247
1275
  search: t || void 0
1248
1276
  } : {};
@@ -1250,36 +1278,36 @@ const At = /* @__PURE__ */ q(async () => await import("./EmptyScreenApp.js")), Q
1250
1278
  ...e,
1251
1279
  ...h
1252
1280
  });
1253
- }, [t, r.minLength]), $(() => {
1281
+ }, [t, r.minLength]), B(() => {
1254
1282
  o === "select" && s("");
1255
- }, [o]), $(() => {
1283
+ }, [o]), B(() => {
1256
1284
  s(() => {
1257
1285
  var l;
1258
1286
  return ((l = e.search) == null ? void 0 : l.toString()) ?? "";
1259
1287
  });
1260
1288
  }, [e]), {
1261
- formRef: a,
1289
+ formRef: c,
1262
1290
  inputSearch: t,
1263
1291
  handleInputSearchChange: u,
1264
1292
  handleKeyPress: p,
1265
1293
  handleSearchSubmit: i
1266
1294
  };
1267
- }, vt = () => {
1295
+ }, Zt = () => {
1268
1296
  const {
1269
1297
  appCode: e,
1270
1298
  currentApp: t
1271
- } = v(), {
1299
+ } = Z(), {
1272
1300
  t: s
1273
- } = _(), [r, o] = le(""), a = (l) => {
1301
+ } = V(), [r, o] = le(""), c = (l) => {
1274
1302
  if (l === "0") {
1275
1303
  o("");
1276
1304
  return;
1277
1305
  }
1278
1306
  o(l);
1279
- }, n = W(), u = Q(), {
1307
+ }, n = z(), u = A(), {
1280
1308
  setSearchParams: p
1281
- } = F();
1282
- $(() => {
1309
+ } = R();
1310
+ B(() => {
1283
1311
  const l = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, d = () => r.includes("7") ? !0 : void 0;
1284
1312
  p({
1285
1313
  ...u,
@@ -1327,59 +1355,59 @@ const At = /* @__PURE__ */ q(async () => await import("./EmptyScreenApp.js")), Q
1327
1355
  return {
1328
1356
  selectedFilters: r,
1329
1357
  options: i,
1330
- handleOnSelectFilter: a
1358
+ handleOnSelectFilter: c
1331
1359
  };
1332
- }, Bt = () => {
1360
+ }, Ot = () => {
1333
1361
  const {
1334
1362
  appCode: e
1335
- } = v(), {
1363
+ } = Z(), {
1336
1364
  t
1337
- } = _(), {
1365
+ } = V(), {
1338
1366
  selectedFilters: s,
1339
1367
  options: r,
1340
1368
  handleOnSelectFilter: o
1341
- } = vt(), {
1342
- formRef: a,
1369
+ } = Zt(), {
1370
+ formRef: c,
1343
1371
  inputSearch: n,
1344
1372
  handleInputSearchChange: u,
1345
1373
  handleKeyPress: p,
1346
1374
  handleSearchSubmit: i
1347
- } = Ie(), l = s.length > 0 ? s.length : void 0;
1348
- return /* @__PURE__ */ E("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: a, children: [
1349
- /* @__PURE__ */ E(ke, { id: "search", className: "input-group", children: [
1350
- /* @__PURE__ */ c(Ue, { type: "search", placeholder: t("explorer.label.search", {
1375
+ } = Ce(), l = s.length > 0 ? s.length : void 0;
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: c, children: [
1377
+ /* @__PURE__ */ b(He, { id: "search", className: "input-group", children: [
1378
+ /* @__PURE__ */ a(Qe, { type: "search", placeholder: t("explorer.label.search", {
1351
1379
  ns: e
1352
1380
  }), size: "lg", noValidationIcon: !0, value: n, onChange: u, onKeyDown: p }),
1353
- /* @__PURE__ */ c(Me, { type: "submit", "aria-label": t("explorer.label.search", {
1381
+ /* @__PURE__ */ a(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
1354
1382
  ns: e
1355
1383
  }), onClick: i })
1356
1384
  ] }),
1357
- /* @__PURE__ */ E(j, { placement: "bottom-end", children: [
1358
- /* @__PURE__ */ c(j.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ c(Ye, { width: 20 }), variant: "ghost", badgeContent: l }),
1359
- /* @__PURE__ */ c(j.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ E(be, { children: [
1360
- /* @__PURE__ */ c(j.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
1361
- /* @__PURE__ */ c(j.Separator, {})
1362
- ] }, "0") : /* @__PURE__ */ c(j.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
1385
+ /* @__PURE__ */ b(K, { placement: "bottom-end", children: [
1386
+ /* @__PURE__ */ a(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ a(Qt, { width: 20 }), variant: "ghost", badgeContent: l }),
1387
+ /* @__PURE__ */ a(K.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ b(De, { children: [
1388
+ /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
1389
+ /* @__PURE__ */ a(K.Separator, {})
1390
+ ] }, "0") : /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
1363
1391
  ] })
1364
1392
  ] });
1365
- }, Kt = ({
1393
+ }, qt = ({
1366
1394
  id: e,
1367
1395
  selected: t,
1368
1396
  onSelect: s
1369
1397
  }) => {
1370
1398
  const {
1371
1399
  t: r
1372
- } = _();
1373
- 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__ */ E("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
1374
- /* @__PURE__ */ c(Ze, { width: "20", height: "20" }),
1375
- /* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
1400
+ } = V();
1401
+ return /* @__PURE__ */ a("div", { className: "treeview", children: /* @__PURE__ */ a("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ a("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("div", { className: "action-container", children: /* @__PURE__ */ a("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
1402
+ /* @__PURE__ */ a(Ht, { width: "20", height: "20" }),
1403
+ /* @__PURE__ */ a("span", { children: r("explorer.tree.trash") })
1376
1404
  ] }) }) }) }) }) }) });
1377
- }, $t = /* @__PURE__ */ q(async () => await import("./FolderModal.js")), _t = () => {
1378
- const [e, t] = Le(), s = k(), r = V(), o = re(), a = se(), n = It(), u = ve(), p = o ? N.BIN : a, {
1405
+ }, Bt = /* @__PURE__ */ M(async () => await import("./FolderModal.js")), Vt = () => {
1406
+ const [e, t] = Ze(), s = P(), r = $(), o = re(), c = se(), n = ft(), u = Oe(), p = o ? E.BIN : c, {
1379
1407
  appCode: i
1380
- } = v(), {
1408
+ } = Z(), {
1381
1409
  t: l
1382
- } = _(["common", i]), h = {
1410
+ } = V(["common", i]), h = {
1383
1411
  ...r,
1384
1412
  name: l("explorer.filters.mine", {
1385
1413
  ns: i
@@ -1388,54 +1416,54 @@ const At = /* @__PURE__ */ q(async () => await import("./EmptyScreenApp.js")), Q
1388
1416
  goToTrash: d,
1389
1417
  selectTreeItem: f,
1390
1418
  clearSelectedItems: m,
1391
- clearSelectedIds: D,
1392
- fetchTreeData: I
1393
- } = F(), w = (x) => {
1394
- f(x, s), u();
1395
- }, C = (x) => {
1396
- var g, S;
1397
- const b = J(r, x), y = (g = b == null ? void 0 : b.children) == null ? void 0 : g.some((R) => {
1398
- var z;
1399
- return Array.isArray(R == null ? void 0 : R.children) && ((z = R.children) == null ? void 0 : z.length) > 0;
1419
+ clearSelectedIds: I,
1420
+ fetchTreeData: C
1421
+ } = R(), x = (S) => {
1422
+ f(S, s), u();
1423
+ }, F = (S) => {
1424
+ var g, w;
1425
+ const D = G(r, S), y = (g = D == null ? void 0 : D.children) == null ? void 0 : g.some((v) => {
1426
+ var _;
1427
+ return Array.isArray(v == null ? void 0 : v.children) && ((_ = v.children) == null ? void 0 : _.length) > 0;
1400
1428
  });
1401
- (S = b == null ? void 0 : b.children) == null || S.forEach((R) => {
1402
- y || I(R.id, s);
1429
+ (w = D == null ? void 0 : D.children) == null || w.forEach((v) => {
1430
+ y || C(v.id, s);
1403
1431
  });
1404
- }, O = () => {
1405
- m(), D(), t();
1432
+ }, k = () => {
1433
+ m(), I(), t();
1406
1434
  };
1407
- return /* @__PURE__ */ E(G, { children: [
1408
- /* @__PURE__ */ c(Be, { data: h, selectedNodeId: p, draggedNode: n != null && n.isTreeview ? n : void 0, onTreeItemClick: w, onTreeItemUnfold: C }),
1409
- /* @__PURE__ */ c(Kt, { id: N.BIN, selected: o, onSelect: d }),
1410
- /* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Ke, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(et, {}), onClick: O, children: l("explorer.folder.new") }) }),
1411
- /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: e && /* @__PURE__ */ c($t, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
1435
+ return /* @__PURE__ */ b(W, { children: [
1436
+ /* @__PURE__ */ a(qe, { data: h, selectedNodeId: p, draggedNode: n != null && n.isTreeview ? n : void 0, onTreeItemClick: x, onTreeItemUnfold: F }),
1437
+ /* @__PURE__ */ a(qt, { id: E.BIN, selected: o, onSelect: d }),
1438
+ /* @__PURE__ */ a("div", { className: "d-grid my-16", children: /* @__PURE__ */ a(Be, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ a(Ut, {}), onClick: k, children: l("explorer.folder.new") }) }),
1439
+ /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: e && /* @__PURE__ */ a(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
1412
1440
  ] });
1413
1441
  };
1414
- function zt() {
1442
+ function _t() {
1415
1443
  const {
1416
1444
  appCode: e
1417
- } = v(), {
1445
+ } = Z(), {
1418
1446
  gotoPreviousFolder: t
1419
- } = F(), {
1447
+ } = R(), {
1420
1448
  t: s
1421
- } = _(["common", e]), {
1449
+ } = V(["common", e]), {
1422
1450
  inputSearch: r
1423
- } = Ie(), o = se(), a = re(), n = W(), u = s("explorer.tree.trash"), p = s("explorer.tree.search"), i = s("explorer.filters.mine", {
1451
+ } = Ce(), o = se(), c = re(), n = z(), u = s("explorer.tree.trash"), p = s("explorer.tree.search"), i = s("explorer.filters.mine", {
1424
1452
  ns: e
1425
1453
  }), l = (n == null ? void 0 : n.name) || i;
1426
- return /* @__PURE__ */ c("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !a ? /* @__PURE__ */ E("div", { className: "d-flex align-items-center gap-8", children: [
1427
- /* @__PURE__ */ c($e, { icon: /* @__PURE__ */ c(tt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
1428
- /* @__PURE__ */ c("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ c("strong", { children: l }) })
1429
- ] }) : /* @__PURE__ */ c("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : a ? u : i }) });
1454
+ return /* @__PURE__ */ a("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !c ? /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8", children: [
1455
+ /* @__PURE__ */ a(Ve, { icon: /* @__PURE__ */ a(Pt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
1456
+ /* @__PURE__ */ a("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ a("strong", { children: l }) })
1457
+ ] }) : /* @__PURE__ */ a("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : c ? u : i }) });
1430
1458
  }
1431
- const jt = /* @__PURE__ */ q(async () => await import("./AppAction.js")), Vt = /* @__PURE__ */ q(async () => await import("./Library.js")), Wt = /* @__PURE__ */ q(async () => await import("./ActionBarContainer.js")), Ht = /* @__PURE__ */ q(async () => await import("./DisableModal.js")), Gt = /* @__PURE__ */ q(async () => await import("./TrashModal.js")), Jt = /* @__PURE__ */ q(async () => await import("./OnboardingModal.js")), Ts = ({
1459
+ 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 = ({
1432
1460
  config: e
1433
1461
  }) => {
1434
- const t = Q(), {
1462
+ const t = A(), {
1435
1463
  setConfig: s,
1436
1464
  setSearchParams: r
1437
- } = F();
1438
- $(() => {
1465
+ } = R();
1466
+ B(() => {
1439
1467
  s(e || {}), r({
1440
1468
  ...t,
1441
1469
  application: e.app,
@@ -1444,46 +1472,46 @@ const jt = /* @__PURE__ */ q(async () => await import("./AppAction.js")), Vt = /
1444
1472
  }, [e]);
1445
1473
  const {
1446
1474
  currentApp: o
1447
- } = v(), {
1448
- data: a
1449
- } = Rt(e.actions), {
1475
+ } = Z(), {
1476
+ data: c
1477
+ } = St(e.actions), {
1450
1478
  isTrashedModalOpen: n,
1451
1479
  onTrashedCancel: u
1452
- } = xt(), {
1480
+ } = It(), {
1453
1481
  isActionDisableModalOpen: p,
1454
1482
  onActionDisableCancel: i
1455
- } = wt(), {
1483
+ } = Ct(), {
1456
1484
  handleDragEnd: l,
1457
1485
  handleDragOver: h,
1458
1486
  handleDragStart: d,
1459
1487
  sensors: f
1460
- } = Pt();
1488
+ } = Ft();
1461
1489
  _e();
1462
- const m = ae("publish", a), D = ae("create", a);
1463
- return e && /* @__PURE__ */ E(G, { children: [
1464
- /* @__PURE__ */ c(ze, { render: () => D ? /* @__PURE__ */ c(M, { fallback: /* @__PURE__ */ c(U, {}), children: /* @__PURE__ */ c(jt, {}) }) : null, children: /* @__PURE__ */ c(je, { app: o }) }),
1465
- /* @__PURE__ */ c(te, { className: "flex-grow-1", children: /* @__PURE__ */ E(Ce, { sensors: f, modifiers: [Fe], onDragStart: d, onDragEnd: l, onDragOver: h, children: [
1466
- /* @__PURE__ */ c(te.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ E(M, { fallback: /* @__PURE__ */ c(U, {}), children: [
1467
- /* @__PURE__ */ c(_t, {}),
1468
- m && /* @__PURE__ */ c(Vt, {})
1490
+ const m = ne("publish", c), I = ne("create", c);
1491
+ return e && /* @__PURE__ */ b(W, { children: [
1492
+ /* @__PURE__ */ a(Ke, { render: () => I ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(jt, {}) }) : null, children: /* @__PURE__ */ a($e, { app: o }) }),
1493
+ /* @__PURE__ */ a(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors: f, modifiers: [Fe], onDragStart: d, onDragEnd: l, onDragOver: h, children: [
1494
+ /* @__PURE__ */ a(te.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
1495
+ /* @__PURE__ */ a(Vt, {}),
1496
+ m && /* @__PURE__ */ a(Wt, {})
1469
1497
  ] }) }),
1470
- /* @__PURE__ */ E(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
1471
- /* @__PURE__ */ c(Bt, {}),
1472
- /* @__PURE__ */ c(zt, {}),
1473
- /* @__PURE__ */ c(Lt, {})
1498
+ /* @__PURE__ */ b(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
1499
+ /* @__PURE__ */ a(Ot, {}),
1500
+ /* @__PURE__ */ a(_t, {}),
1501
+ /* @__PURE__ */ a(kt, {})
1474
1502
  ] }),
1475
- /* @__PURE__ */ E(M, { fallback: /* @__PURE__ */ c(U, {}), children: [
1476
- /* @__PURE__ */ c(Wt, {}),
1477
- e.enableOnboarding && /* @__PURE__ */ c(Jt, { id: "showOnboardingTrash", items: [{
1478
- src: "onboarding/illu-trash-menu.svg",
1503
+ /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
1504
+ /* @__PURE__ */ a(Gt, {}),
1505
+ e.enableOnboarding && /* @__PURE__ */ a(Yt, { id: "showOnboardingTrash", items: [{
1506
+ src: $t,
1479
1507
  alt: "explorer.modal.onboarding.trash.screen1.alt",
1480
1508
  text: "explorer.modal.onboarding.trash.screen1.title"
1481
1509
  }, {
1482
- src: "onboarding/illu-trash-notif.svg",
1510
+ src: zt,
1483
1511
  alt: "explorer.modal.onboarding.trash.screen2.alt",
1484
1512
  text: "explorer.modal.onboarding.trash.screen2.alt"
1485
1513
  }, {
1486
- src: "onboarding/illu-trash-delete.svg",
1514
+ src: Kt,
1487
1515
  alt: "explorer.modal.onboarding.trash.screen3.alt",
1488
1516
  text: "explorer.modal.onboarding.trash.screen3.title"
1489
1517
  }], modalOptions: {
@@ -1492,40 +1520,41 @@ const jt = /* @__PURE__ */ q(async () => await import("./AppAction.js")), Vt = /
1492
1520
  nextText: "explorer.modal.onboarding.trash.next",
1493
1521
  closeText: "explorer.modal.onboarding.trash.close"
1494
1522
  } }),
1495
- n && /* @__PURE__ */ c(Gt, { isOpen: n, onCancel: u }),
1496
- p && /* @__PURE__ */ c(Ht, { isOpen: p, onCancel: i })
1523
+ n && /* @__PURE__ */ a(Xt, { isOpen: n, onCancel: u }),
1524
+ p && /* @__PURE__ */ a(Jt, { isOpen: p, onCancel: i })
1497
1525
  ] })
1498
1526
  ] }) })
1499
1527
  ] });
1500
1528
  };
1501
1529
  export {
1502
- ds as A,
1503
- fs as B,
1504
- Ts as E,
1505
- F as a,
1506
- Rt as b,
1507
- W as c,
1508
- xs as d,
1509
- Q as e,
1530
+ hs as A,
1531
+ ms as B,
1532
+ Fs as E,
1533
+ Ut as S,
1534
+ R as a,
1535
+ St as b,
1536
+ z as c,
1537
+ Ts as d,
1538
+ A as e,
1510
1539
  re as f,
1511
- is as g,
1512
- Y as h,
1513
- hs as i,
1514
- us as j,
1515
- X as k,
1516
- ms as l,
1517
- yt as m,
1518
- Is as n,
1519
- ps as o,
1520
- ls as p,
1521
- bs as q,
1522
- ws as r,
1523
- It as s,
1540
+ ds as g,
1541
+ X as h,
1542
+ fs as i,
1543
+ ps as j,
1544
+ J as k,
1545
+ Cs as l,
1546
+ pt as m,
1547
+ ws as n,
1548
+ gs as o,
1549
+ us as p,
1550
+ Ss as q,
1551
+ bs as r,
1552
+ ft as s,
1524
1553
  Ds as t,
1525
1554
  T as u,
1526
- Ss as v,
1527
- ys as w,
1528
- gs as x,
1529
- Et as y,
1530
- V as z
1555
+ xs as v,
1556
+ Is as w,
1557
+ ys as x,
1558
+ Tt as y,
1559
+ $ as z
1531
1560
  };