ode-explorer 2.6.12 → 2.6.13-develop-enabling.20261012145812

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,15 +1,15 @@
1
- import { jsxs as b, Fragment as W, jsx as n } from "react/jsx-runtime";
2
- import { useEffect as B, Suspense as Q, lazy as M, useState as ie, useRef as we, Fragment as De } from "react";
1
+ import { jsxs as b, Fragment as W, jsx as a } from "react/jsx-runtime";
2
+ import { useEffect as V, Suspense as Q, lazy as A, useState as ie, useRef as we, Fragment as De } from "react";
3
3
  import { useSensor as oe, PointerSensor as xe, KeyboardSensor as Se, useSensors as be, DndContext as Te } from "@dnd-kit/core";
4
4
  import { snapCenterToCursor as Fe } from "@dnd-kit/modifiers";
5
- import { odeServices as 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";
5
+ import { odeServices as L, FOLDER as v, SORT_ORDER as Re, ResourceService as de, isActionAvailable as ae } from "@edifice.io/client";
6
+ import { findParentNode as ve, findNodeById as G, wrapTreeNode as Ee, useToast as U, moveNode as Le, useUser as ue, useEdificeClient as O, useShareMutation as Ne, useUpdateMutation as Ae, addNode as Me, updateNode as ke, deleteNode as Pe, getAncestors as ne, LoadingScreen as H, FormControl as He, Input as Qe, SearchButton as Ue, Dropdown as 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 E } from "i18next";
8
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";
9
+ import { useQuery as We, queryOptions as Ge, useQueryClient as k, useMutation as q, useInfiniteQuery as Je } from "@tanstack/react-query";
10
+ import { useTranslation as _ } from "react-i18next";
11
11
  const he = async (e) => {
12
- const t = await N.resource(e.application).searchContext(e);
12
+ const t = await L.resource(e.application).searchContext(e);
13
13
  return {
14
14
  ...t,
15
15
  folders: t.folders.filter((s) => !s.trashed)
@@ -25,7 +25,7 @@ const he = async (e) => {
25
25
  application: e.application,
26
26
  type: e.types[0]
27
27
  };
28
- return await N.resource(e.application).createFolder(r);
28
+ return await L.resource(e.application).createFolder(r);
29
29
  }, Ye = async ({
30
30
  folderId: e,
31
31
  searchParams: t,
@@ -39,7 +39,7 @@ const he = async (e) => {
39
39
  application: t.application,
40
40
  type: t.types[0]
41
41
  };
42
- return await N.resource(t.application).updateFolder(o);
42
+ return await L.resource(t.application).updateFolder(o);
43
43
  }, et = async ({
44
44
  searchParams: e,
45
45
  resourceIds: t,
@@ -52,7 +52,7 @@ const he = async (e) => {
52
52
  resourceIds: t,
53
53
  folderIds: r
54
54
  };
55
- return await N.resource(e.application).trashAll(o, s);
55
+ return await L.resource(e.application).trashAll(o, s);
56
56
  }, tt = async ({
57
57
  searchParams: e,
58
58
  resourceIds: t,
@@ -65,7 +65,7 @@ const he = async (e) => {
65
65
  resourceIds: t,
66
66
  folderIds: r
67
67
  };
68
- return await N.resource(e.application).deleteAll(o, s);
68
+ return await L.resource(e.application).deleteAll(o, s);
69
69
  }, st = async ({
70
70
  searchParams: e,
71
71
  resourceIds: t,
@@ -78,11 +78,11 @@ const he = async (e) => {
78
78
  resourceIds: t,
79
79
  folderIds: s
80
80
  };
81
- return await N.resource(e.application).restoreAll(o, r);
82
- }, rt = async (e, t) => await N.resource(e.application).copy({
81
+ return await L.resource(e.application).restoreAll(o, r);
82
+ }, rt = async (e, t) => await L.resource(e.application).copy({
83
83
  application: e.application,
84
84
  resourceId: t
85
- }), pe = async ({
85
+ }), fe = async ({
86
86
  searchParams: e,
87
87
  resourceIds: t,
88
88
  folderId: s,
@@ -95,43 +95,43 @@ const he = async (e) => {
95
95
  resourceIds: t,
96
96
  folderIds: r
97
97
  };
98
- return await N.resource(e.application).moveToFolder(l, o);
99
- }, ot = async (e) => await N.rights().sessionHasWorkflowRights(e), nt = ({
98
+ return await L.resource(e.application).moveToFolder(l, o);
99
+ }, ot = async (e) => await L.rights().sessionHasWorkflowRights(e), at = ({
100
100
  searchParams: e,
101
101
  assetId: t
102
102
  }) => {
103
- const s = N.resource(e.application).getViewUrl(t);
103
+ const s = L.resource(e.application).getViewUrl(t);
104
104
  window.open(s, "_self");
105
- }, at = ({
105
+ }, nt = ({
106
106
  searchParams: e,
107
107
  params: t
108
- }) => N.resource(e.application).create(t), ct = ({
108
+ }) => L.resource(e.application).create(t), ct = ({
109
109
  searchParams: e,
110
110
  assetId: t
111
111
  }) => {
112
- const s = N.resource(e.application).getPrintUrl(t);
112
+ const s = L.resource(e.application).getPrintUrl(t);
113
113
  return window.open(s, "_blank");
114
114
  }, ds = ({
115
115
  searchParams: e,
116
116
  folderId: t
117
117
  }) => {
118
- const s = N.resource(e.application).getFormUrl(t);
118
+ const s = L.resource(e.application).getFormUrl(t);
119
119
  return window.open(s, "_self");
120
120
  }, us = ({
121
121
  searchParams: e,
122
122
  assetId: t
123
123
  }) => {
124
- const s = N.resource(e.application).getEditUrl(t);
124
+ const s = L.resource(e.application).getEditUrl(t);
125
125
  return window.open(s, "_self");
126
126
  }, hs = ({
127
127
  searchParams: e,
128
128
  assetId: t
129
129
  }) => {
130
- const s = N.resource(e.application).getExportUrl(t);
130
+ const s = L.resource(e.application).getExportUrl(t);
131
131
  return window.open(s, "_self");
132
- }, fe = {
133
- id: E.DEFAULT,
134
- name: L("explorer.filters.mine"),
132
+ }, pe = {
133
+ id: v.DEFAULT,
134
+ name: E("explorer.filters.mine"),
135
135
  section: !0,
136
136
  children: []
137
137
  }, lt = {
@@ -141,7 +141,7 @@ const he = async (e) => {
141
141
  },
142
142
  searchParams: {
143
143
  filters: {
144
- folder: E.DEFAULT,
144
+ folder: v.DEFAULT,
145
145
  owner: void 0,
146
146
  shared: void 0,
147
147
  public: void 0
@@ -158,7 +158,7 @@ const he = async (e) => {
158
158
  },
159
159
  trashed: !1
160
160
  },
161
- treeData: fe,
161
+ treeData: pe,
162
162
  selectedNodeId: "default",
163
163
  currentFolder: {
164
164
  id: "default"
@@ -276,7 +276,7 @@ const he = async (e) => {
276
276
  const {
277
277
  searchParams: r
278
278
  } = t();
279
- nt({
279
+ at({
280
280
  searchParams: r,
281
281
  assetId: s.assetId
282
282
  });
@@ -293,7 +293,7 @@ const he = async (e) => {
293
293
  } = t();
294
294
  if (r.length !== 1)
295
295
  throw new Error("Cannot open more than 1 resource");
296
- const l = r.find((a) => a.id === o[0]);
296
+ const l = r.find((c) => c.id === o[0]);
297
297
  ct({
298
298
  searchParams: s,
299
299
  assetId: l.assetId
@@ -309,13 +309,13 @@ const he = async (e) => {
309
309
  }) => {
310
310
  const {
311
311
  searchParams: l
312
- } = t(), a = l.filters.folder, c = s;
313
- a !== s && (t().actions.fetchTreeData(s, o), e((p) => ({
314
- ...p,
312
+ } = t(), c = l.filters.folder, n = s;
313
+ c !== s && (t().actions.fetchTreeData(s, o), e((f) => ({
314
+ ...f,
315
315
  // reset selection when changing folder
316
316
  folderIds: [],
317
317
  resourceIds: [],
318
- selectedNodeId: c,
318
+ selectedNodeId: n,
319
319
  currentFolder: r || {
320
320
  id: s
321
321
  },
@@ -326,7 +326,7 @@ const he = async (e) => {
326
326
  ...l.filters,
327
327
  folder: s
328
328
  },
329
- trashed: s === E.BIN
329
+ trashed: s === v.BIN
330
330
  }
331
331
  })));
332
332
  },
@@ -334,41 +334,45 @@ const he = async (e) => {
334
334
  ...s,
335
335
  status: "fold"
336
336
  })),
337
- fetchTreeData: async (s, r) => {
338
- const o = G(t().treeData, s), l = o == null ? void 0 : o.id;
339
- if (Array.isArray(o == null ? void 0 : o.children) && o.children.length) return;
340
- const a = await r.fetchQuery({
337
+ fetchTreeData: async (s, r, o) => {
338
+ const l = G(t().treeData, s), c = l == null ? void 0 : l.id;
339
+ if (!(o != null && o.force) && Array.isArray(l == null ? void 0 : l.children) && l.children.length) return;
340
+ const n = await r.fetchQuery({
341
341
  queryKey: ["prefetchContext", {
342
- folderId: l,
342
+ folderId: c,
343
343
  trashed: !1
344
344
  }],
345
345
  queryFn: async () => await he({
346
346
  ...t().searchParams,
347
347
  filters: {
348
348
  ...t().searchParams.filters,
349
- folder: l
349
+ folder: c
350
350
  }
351
- })
351
+ }),
352
+ // A forced reload must hit the server, not the cache.
353
+ ...o != null && o.force ? {
354
+ staleTime: 0
355
+ } : {}
352
356
  });
353
- t().actions.setTreeData(Ee(t().treeData, a == null ? void 0 : a.folders, l || E.DEFAULT));
357
+ t().actions.setTreeData(Ee(t().treeData, n == null ? void 0 : n.folders, c || v.DEFAULT));
354
358
  },
355
359
  selectTreeItem: (s, r) => {
356
360
  const {
357
361
  treeData: o
358
362
  } = t(), {
359
363
  openFolder: l,
360
- fetchTreeData: a
361
- } = t().actions, c = G(o, s);
362
- a(s, r), e((p) => ({
363
- ...p,
364
+ fetchTreeData: c
365
+ } = t().actions, n = G(o, s);
366
+ c(s, r), e((f) => ({
367
+ ...f,
364
368
  searchParams: {
365
- ...p.searchParams,
369
+ ...f.searchParams,
366
370
  search: void 0
367
371
  },
368
372
  status: "select",
369
373
  selectedResources: []
370
374
  })), l({
371
- folder: c,
375
+ folder: n,
372
376
  folderId: s
373
377
  });
374
378
  },
@@ -381,13 +385,13 @@ const he = async (e) => {
381
385
  openFolder: l
382
386
  } = t().actions;
383
387
  if (o.search && l({
384
- folder: fe,
385
- folderId: E.DEFAULT
388
+ folder: pe,
389
+ folderId: v.DEFAULT
386
390
  }), !s) return;
387
- const a = ve(r, s);
391
+ const c = ve(r, s);
388
392
  l({
389
- folder: a,
390
- folderId: (a == null ? void 0 : a.id) || E.DEFAULT
393
+ folder: c,
394
+ folderId: (c == null ? void 0 : c.id) || v.DEFAULT
391
395
  });
392
396
  },
393
397
  goToTrash: () => {
@@ -402,12 +406,12 @@ const he = async (e) => {
402
406
  ...s.searchParams,
403
407
  search: void 0,
404
408
  filters: {
405
- folder: E.BIN
409
+ folder: v.BIN
406
410
  },
407
411
  trashed: !0
408
412
  },
409
413
  currentFolder: {
410
- id: E.BIN
414
+ id: v.BIN
411
415
  }
412
416
  }));
413
417
  }
@@ -416,10 +420,10 @@ const he = async (e) => {
416
420
  function T(e) {
417
421
  return je(it, e);
418
422
  }
419
- const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => 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 = () => {
423
+ const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () => T(ut), N = () => T((e) => e.searchParams), se = () => T((e) => e.selectedNodeId), fs = () => T((e) => e.selectedFolders), ps = () => T((e) => e.selectedResources), ht = () => T((e) => e.searchConfig), J = () => T((e) => e.folderIds), X = () => T((e) => e.resourceIds), Y = () => T((e) => e.selectedResources.map((t) => t.assetId)), ee = () => T((e) => e.selectedResources.filter((t) => t.assetId === t.id)), z = () => T((e) => e.currentFolder), re = () => {
420
424
  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 = () => {
425
+ return (e == null ? void 0 : e.id) === v.BIN;
426
+ }, ft = () => T((e) => e.resourceIsTrash), gs = () => T((e) => e.resourceOrFolderIsDraggable), pt = () => T((e) => e.elementDragOver), gt = () => T((e) => e.resourceActionDisable), mt = () => {
423
427
  const e = z();
424
428
  return (e == null ? void 0 : e.id) === "default";
425
429
  }, yt = () => T((e) => e.status), Ct = () => {
@@ -435,7 +439,7 @@ const dt = (e) => e.treeData, ut = (e) => e.actions, $ = () => T(dt), R = () =>
435
439
  }
436
440
  };
437
441
  }, It = () => {
438
- const e = pt(), {
442
+ const e = ft(), {
439
443
  clearSelectedIds: t,
440
444
  setResourceIsTrash: s,
441
445
  clearSelectedItems: r
@@ -504,14 +508,14 @@ de.register({
504
508
  application: ge,
505
509
  resourceType: me
506
510
  }, (e) => new ye(e));
507
- const q = document.querySelector("[data-explorer-config]");
511
+ const B = document.querySelector("[data-explorer-config]");
508
512
  let ce;
509
513
  function ms() {
510
514
  var e;
511
- if ((e = q == null ? void 0 : q.dataset) != null && e.explorerConfig) {
515
+ if ((e = B == null ? void 0 : B.dataset) != null && e.explorerConfig) {
512
516
  const {
513
517
  explorerConfig: t
514
- } = q.dataset;
518
+ } = B.dataset;
515
519
  try {
516
520
  const s = JSON.parse(t);
517
521
  ce = {
@@ -520,7 +524,7 @@ function ms() {
520
524
  enableOnboarding: s.enableOnboarding !== void 0 ? s.enableOnboarding : !0
521
525
  };
522
526
  } catch (s) {
523
- console.error("[Explorer Config] could not parse app params from root data attributes:", q == null ? void 0 : q.dataset, s);
527
+ console.error("[Explorer Config] could not parse app params from root data attributes:", B == null ? void 0 : B.dataset, s);
524
528
  }
525
529
  }
526
530
  return ce;
@@ -541,7 +545,7 @@ const xt = (e, t) => {
541
545
  const t = T((s) => s.config);
542
546
  return We(xt(e, t));
543
547
  }, bt = () => {
544
- const e = T((a) => a.config), t = A(), {
548
+ const e = T((c) => c.config), t = N(), {
545
549
  filters: s,
546
550
  trashed: r,
547
551
  search: o
@@ -554,66 +558,66 @@ const xt = (e, t) => {
554
558
  return Je({
555
559
  queryKey: l,
556
560
  queryFn: async ({
557
- pageParam: a
561
+ pageParam: c
558
562
  }) => await he({
559
563
  ...t,
560
564
  application: e == null ? void 0 : e.app,
561
565
  types: e == null ? void 0 : e.types,
562
566
  pagination: {
563
567
  ...t.pagination,
564
- startIdx: a
568
+ startIdx: c
565
569
  }
566
570
  }),
567
571
  staleTime: 5e3,
568
572
  initialPageParam: 0,
569
573
  enabled: !!e,
570
574
  retry: !1,
571
- getNextPageParam: (a) => a.pagination.startIdx + a.pagination.pageSize
575
+ getNextPageParam: (c) => c.pagination.startIdx + c.pagination.pageSize
572
576
  });
573
577
  }, ys = () => {
574
- const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
578
+ const e = U(), t = k(), s = N(), r = $(), o = J(), l = Y(), c = X(), n = ee().length > 0, f = n ? l : c, {
575
579
  clearSelectedItems: d,
576
580
  clearSelectedIds: i,
577
581
  setTreeData: h,
578
582
  setSearchParams: u
579
583
  } = R(), {
580
- filters: g,
581
- trashed: m
584
+ filters: p,
585
+ trashed: g
582
586
  } = s, I = ["context", {
583
- folderId: g.folder,
584
- filters: g,
585
- trashed: m
587
+ folderId: p.folder,
588
+ filters: p,
589
+ trashed: g
586
590
  }];
587
- return O({
591
+ return q({
588
592
  mutationFn: async () => await et({
589
593
  searchParams: s,
590
594
  folderIds: o,
591
- resourceIds: p,
592
- useAssetIds: c
595
+ resourceIds: f,
596
+ useAssetIds: n
593
597
  }),
594
- onError(C) {
595
- typeof C == "string" && e.error(L(C));
598
+ onError(w) {
599
+ typeof w == "string" && e.error(E(w));
596
600
  },
597
- onSuccess: async (C) => {
601
+ onSuccess: async (w) => {
598
602
  if (await t.cancelQueries({
599
603
  queryKey: I
600
604
  }), t.getQueryData(I))
601
- return e.success(L("explorer.trash.title")), t.setQueryData(I, (F) => {
602
- var k;
605
+ return e.success(E("explorer.trash.title")), t.setQueryData(I, (F) => {
606
+ var Z;
603
607
  if (F) {
604
608
  const S = {
605
609
  ...F,
606
610
  pages: F == null ? void 0 : F.pages.map((y) => {
607
- var f;
611
+ var m;
608
612
  return {
609
613
  ...y,
610
- folders: y.folders.filter((w) => !o.includes(w.id)),
614
+ folders: y.folders.filter((C) => !o.includes(C.id)),
611
615
  pagination: {
612
616
  ...y.pagination,
613
617
  // @ts-ignore
614
- maxIdx: ((f = y == null ? void 0 : y.pagination) == null ? void 0 : f.maxIdx) - C.resources.length
618
+ maxIdx: ((m = y == null ? void 0 : y.pagination) == null ? void 0 : m.maxIdx) - w.resources.length
615
619
  },
616
- resources: y.resources.filter((w) => c ? !l.includes(w.assetId) : !p.includes(w.id))
620
+ resources: y.resources.filter((C) => n ? !l.includes(C.assetId) : !f.includes(C.id))
617
621
  };
618
622
  })
619
623
  }, D = Pe(r, {
@@ -624,7 +628,7 @@ const xt = (e, t) => {
624
628
  pagination: {
625
629
  ...s.pagination,
626
630
  // @ts-ignore
627
- maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - C.resources.length
631
+ maxIdx: ((Z = s.pagination) == null ? void 0 : Z.maxIdx) - w.resources.length
628
632
  }
629
633
  }), S;
630
634
  }
@@ -635,52 +639,52 @@ const xt = (e, t) => {
635
639
  }
636
640
  });
637
641
  }, Cs = () => {
638
- const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
639
- setFolderIds: p,
642
+ const e = U(), t = k(), s = N(), r = J(), o = Y(), l = X(), c = ee().length > 0, n = c ? o : l, {
643
+ setFolderIds: f,
640
644
  setResourceIds: d,
641
645
  setSelectedResources: i,
642
646
  setSelectedFolders: h
643
647
  } = R(), {
644
648
  filters: u,
645
- trashed: g
646
- } = s, m = ["context", {
649
+ trashed: p
650
+ } = s, g = ["context", {
647
651
  folderId: u.folder,
648
652
  filters: u,
649
- trashed: g
653
+ trashed: p
650
654
  }];
651
- return O({
655
+ return q({
652
656
  mutationFn: async () => await st({
653
657
  searchParams: s,
654
658
  folderIds: r,
655
- resourceIds: c,
656
- useAssetIds: a
659
+ resourceIds: n,
660
+ useAssetIds: c
657
661
  }),
658
662
  onError(I) {
659
- typeof I == "string" && e.error(L(I));
663
+ typeof I == "string" && e.error(E(I));
660
664
  },
661
665
  onSuccess: async () => {
662
666
  if (await t.cancelQueries({
663
- queryKey: m
664
- }), t.getQueryData(m))
665
- return e.success(L("explorer.trash.toast")), t.setQueryData(m, (C) => {
666
- if (C)
667
+ queryKey: g
668
+ }), t.getQueryData(g))
669
+ return e.success(E("explorer.trash.toast")), t.setQueryData(g, (w) => {
670
+ if (w)
667
671
  return {
668
- ...C,
669
- pages: C == null ? void 0 : C.pages.map((x) => ({
672
+ ...w,
673
+ pages: w == null ? void 0 : w.pages.map((x) => ({
670
674
  ...x,
671
675
  folders: x.folders.filter((F) => !r.includes(F.id)),
672
- resources: x.resources.filter((F) => a ? !o.includes(F.assetId) : !c.includes(F.id))
676
+ resources: x.resources.filter((F) => c ? !o.includes(F.assetId) : !n.includes(F.id))
673
677
  }))
674
678
  };
675
679
  });
676
680
  },
677
681
  onSettled: () => {
678
- d([]), i([]), p([]), h([]);
682
+ d([]), i([]), f([]), h([]);
679
683
  }
680
684
  });
681
685
  }, Is = () => {
682
- const e = U(), t = P(), s = A(), r = J(), o = Y(), l = X(), a = ee().length > 0, c = a ? o : l, {
683
- clearSelectedItems: p,
686
+ const e = U(), t = k(), s = N(), r = J(), o = Y(), l = X(), c = ee().length > 0, n = c ? o : l, {
687
+ clearSelectedItems: f,
684
688
  clearSelectedIds: d
685
689
  } = R(), {
686
690
  filters: i,
@@ -690,58 +694,58 @@ const xt = (e, t) => {
690
694
  filters: i,
691
695
  trashed: h
692
696
  }];
693
- return O({
697
+ return q({
694
698
  mutationFn: async () => await tt({
695
699
  searchParams: s,
696
700
  folderIds: r,
697
- resourceIds: c,
698
- useAssetIds: a
701
+ resourceIds: n,
702
+ useAssetIds: c
699
703
  }),
700
- onError(g) {
701
- typeof g == "string" && e.error(L(g));
704
+ onError(p) {
705
+ typeof p == "string" && e.error(E(p));
702
706
  },
703
707
  onSuccess: async () => {
704
708
  if (await t.cancelQueries({
705
709
  queryKey: u
706
710
  }), t.getQueryData(u))
707
- return e.success(L("explorer.removed.from.trash")), t.setQueryData(u, (m) => {
708
- if (m)
711
+ return e.success(E("explorer.removed.from.trash")), t.setQueryData(u, (g) => {
712
+ if (g)
709
713
  return {
710
- ...m,
711
- pages: m == null ? void 0 : m.pages.map((C) => ({
712
- ...C,
713
- folders: C.folders.filter((x) => !r.includes(x.id)),
714
- resources: C.resources.filter((x) => a ? !o.includes(x.assetId) : !c.includes(x.id))
714
+ ...g,
715
+ pages: g == null ? void 0 : g.pages.map((w) => ({
716
+ ...w,
717
+ folders: w.folders.filter((x) => !r.includes(x.id)),
718
+ resources: w.resources.filter((x) => c ? !o.includes(x.assetId) : !n.includes(x.id))
715
719
  }))
716
720
  };
717
721
  });
718
722
  },
719
723
  onSettled: () => {
720
- p(), d();
724
+ f(), d();
721
725
  }
722
726
  });
723
727
  }, ws = () => {
724
- const e = U(), t = A(), s = P(), {
728
+ const e = U(), t = N(), s = k(), {
725
729
  user: r
726
730
  } = ue(), o = z(), {
727
731
  filters: l,
728
- trashed: a
729
- } = t, c = "duplicate_start", p = ["context", {
732
+ trashed: c
733
+ } = t, n = "duplicate_start", f = ["context", {
730
734
  folderId: l.folder,
731
735
  filters: l,
732
- trashed: a
736
+ trashed: c
733
737
  }];
734
- return O({
735
- mutationFn: async (d) => (e.info(L("duplicate.start"), {
736
- id: c
738
+ return q({
739
+ mutationFn: async (d) => (e.info(E("duplicate.start"), {
740
+ id: n
737
741
  }), await rt(t, d.assetId)),
738
742
  onSuccess: async (d, i) => {
739
- e.remove(c), e.success(L("duplicate.done")), await s.cancelQueries({
740
- queryKey: p
743
+ e.remove(n), e.success(E("duplicate.done")), await s.cancelQueries({
744
+ queryKey: f
741
745
  });
742
- const h = s.getQueryData(p), u = {
746
+ const h = s.getQueryData(f), u = {
743
747
  ...i,
744
- name: `${i.name}${L("duplicate.suffix")}`,
748
+ name: `${i.name}${E("duplicate.suffix")}`,
745
749
  assetId: d.duplicateId,
746
750
  id: d.duplicateId,
747
751
  creatorId: r == null ? void 0 : r.userId,
@@ -755,16 +759,16 @@ const xt = (e, t) => {
755
759
  trashed: !1,
756
760
  rights: [`creator:${r == null ? void 0 : r.userId}`]
757
761
  };
758
- h && s.setQueryData(p, (g) => {
759
- if (g)
762
+ h && s.setQueryData(f, (p) => {
763
+ if (p)
760
764
  return {
761
- ...g,
762
- pages: g == null ? void 0 : g.pages.map((m) => ({
763
- ...m,
764
- resources: [u, ...m.resources]
765
+ ...p,
766
+ pages: p == null ? void 0 : p.pages.map((g) => ({
767
+ ...g,
768
+ resources: [u, ...g.resources]
765
769
  }))
766
770
  };
767
- }), o.id && o.id !== E.DEFAULT && pe({
771
+ }), o.id && o.id !== v.DEFAULT && fe({
768
772
  searchParams: t,
769
773
  resourceIds: [d.duplicateId],
770
774
  folderId: o.id,
@@ -773,139 +777,142 @@ const xt = (e, t) => {
773
777
  });
774
778
  },
775
779
  onError: (d) => {
776
- e.remove(c), typeof d == "string" && e.error(`${L("duplicate.error")}: ${d}`);
780
+ e.remove(n), typeof d == "string" && e.error(`${E("duplicate.error")}: ${d}`);
777
781
  }
778
782
  });
779
783
  }, Tt = () => {
780
- const e = U(), t = P(), s = A(), r = $(), o = J(), l = Y(), a = X(), c = ee().length > 0, p = c ? l : a, {
784
+ const e = U(), t = k(), s = N(), r = $(), o = J(), l = Y(), c = X(), n = ee().length > 0, f = n ? l : c, {
781
785
  clearSelectedIds: d,
782
786
  clearSelectedItems: i,
783
- setTreeData: h,
784
- setSearchParams: u
787
+ fetchTreeData: h,
788
+ setTreeData: u,
789
+ setSearchParams: p
785
790
  } = R(), {
786
791
  filters: g,
787
- trashed: m
788
- } = s, I = ["context", {
792
+ trashed: I
793
+ } = s, w = ["context", {
789
794
  folderId: g.folder,
790
795
  filters: g,
791
- trashed: m
796
+ trashed: I
792
797
  }];
793
- return O({
794
- mutationFn: async (C) => await pe({
798
+ return q({
799
+ mutationFn: async (x) => await fe({
795
800
  searchParams: s,
796
- folderId: C,
801
+ folderId: x,
797
802
  folderIds: o,
798
- resourceIds: p,
799
- useAssetIds: c
803
+ resourceIds: f,
804
+ useAssetIds: n
800
805
  }),
801
- onError(C) {
802
- typeof C == "string" && e.error(L(C));
806
+ onError(x) {
807
+ typeof x == "string" && e.error(E(x));
803
808
  },
804
- onSuccess: async (C, x) => {
805
- if (t.getQueryData(I))
806
- return t.setQueryData(I, (k) => {
807
- var S;
808
- if (k) {
809
- const D = Le(r, {
810
- destinationId: x,
809
+ onSuccess: async (x, F) => {
810
+ if (t.getQueryData(w))
811
+ return t.setQueryData(w, (S) => {
812
+ var D;
813
+ if (S) {
814
+ const y = Le(r, {
815
+ destinationId: F,
811
816
  folders: o
812
- }), y = {
813
- ...k,
814
- pages: k == null ? void 0 : k.pages.map((f) => {
815
- var w;
817
+ }), m = {
818
+ ...S,
819
+ pages: S == null ? void 0 : S.pages.map((C) => {
820
+ var M;
816
821
  return {
817
- ...f,
818
- folders: f.folders.filter((v) => !o.includes(v.id)),
822
+ ...C,
823
+ folders: C.folders.filter((P) => !o.includes(P.id)),
819
824
  pagination: {
820
- ...f.pagination,
825
+ ...C.pagination,
821
826
  // @ts-ignore
822
- maxIdx: ((w = f.pagination) == null ? void 0 : w.maxIdx) - C.resources.length
827
+ maxIdx: ((M = C.pagination) == null ? void 0 : M.maxIdx) - x.resources.length
823
828
  },
824
- resources: f.resources.filter((v) => c ? !l.includes(v.assetId) : !p.includes(v.id))
829
+ resources: C.resources.filter((P) => n ? !l.includes(P.assetId) : !f.includes(P.id))
825
830
  };
826
831
  })
827
832
  };
828
- return h(D), u({
833
+ return u(y), p({
829
834
  ...s,
830
835
  pagination: {
831
836
  ...s.pagination,
832
837
  // @ts-ignore
833
- maxIdx: ((S = s.pagination) == null ? void 0 : S.maxIdx) - C.resources.length
838
+ maxIdx: ((D = s.pagination) == null ? void 0 : D.maxIdx) - x.resources.length
834
839
  }
835
- }), y;
840
+ }), m;
836
841
  }
837
842
  });
838
- t.invalidateQueries();
843
+ o.length > 0 && h(F, t, {
844
+ force: !0
845
+ }).catch(console.error), t.invalidateQueries();
839
846
  },
840
847
  onSettled: () => {
841
848
  i(), d();
842
849
  }
843
850
  });
844
851
  }, Ds = () => {
845
- const e = U(), t = P(), s = A(), r = $(), {
852
+ const e = U(), t = k(), s = N(), r = $(), {
846
853
  setTreeData: o
847
854
  } = R(), {
848
855
  filters: l,
849
- trashed: a
850
- } = s, c = ["context", {
856
+ trashed: c
857
+ } = s, n = ["context", {
851
858
  folderId: l.folder,
852
859
  filters: l,
853
- trashed: a
860
+ trashed: c
854
861
  }];
855
- return O({
862
+ return q({
856
863
  mutationFn: async ({
857
- name: p,
864
+ name: f,
858
865
  parentId: d
859
866
  }) => await Xe({
860
867
  searchParams: s,
861
- name: p,
868
+ name: f,
862
869
  parentId: d
863
870
  }),
864
- onError(p) {
865
- typeof p == "string" && e.error(L(p));
871
+ onError(f) {
872
+ typeof f == "string" && e.error(E(f));
866
873
  },
867
- onSuccess: async (p, d) => {
874
+ onSuccess: async (f, d) => {
868
875
  await t.cancelQueries({
869
- queryKey: c
876
+ queryKey: n
870
877
  });
871
- const i = t.getQueryData(c), h = {
872
- ...p,
878
+ const i = t.getQueryData(n), h = {
879
+ ...f,
873
880
  parentId: d.parentId,
874
881
  children: [],
875
- rights: [`creator:${p == null ? void 0 : p.creator_id}`]
882
+ rights: [`creator:${f == null ? void 0 : f.creator_id}`]
876
883
  };
877
884
  if (i)
878
- return t.setQueryData(c, (u) => {
885
+ return t.setQueryData(n, (u) => {
879
886
  if (u) {
880
- const g = {
887
+ const p = {
881
888
  ...u,
882
889
  pages: u == null ? void 0 : u.pages.map((I) => ({
883
890
  ...I,
884
891
  folders: [...I.folders, h]
885
892
  }))
886
- }, m = Me(r, {
893
+ }, g = Me(r, {
887
894
  parentId: d.parentId,
888
895
  newFolder: h
889
896
  });
890
- return o(m), g;
897
+ return o(g), p;
891
898
  }
892
899
  });
893
900
  }
894
901
  });
895
902
  }, xs = () => {
896
- const e = U(), t = P(), s = A(), r = $(), {
903
+ const e = U(), t = k(), s = N(), r = $(), {
897
904
  setFolderIds: o,
898
905
  setSelectedFolders: l,
899
- setTreeData: a
906
+ setTreeData: c
900
907
  } = R(), {
901
- filters: c,
902
- trashed: p
908
+ filters: n,
909
+ trashed: f
903
910
  } = s, d = ["context", {
904
- folderId: c.folder,
905
- filters: c,
906
- trashed: p
911
+ folderId: n.folder,
912
+ filters: n,
913
+ trashed: f
907
914
  }];
908
- return O({
915
+ return q({
909
916
  mutationFn: async ({
910
917
  folderId: i,
911
918
  name: h,
@@ -917,19 +924,19 @@ const xt = (e, t) => {
917
924
  name: h
918
925
  }),
919
926
  onError(i) {
920
- typeof i == "string" && e.error(L(i));
927
+ typeof i == "string" && e.error(E(i));
921
928
  },
922
929
  onSuccess: async (i, h) => {
923
930
  if (await t.cancelQueries({
924
931
  queryKey: d
925
932
  }), t.getQueryData(d))
926
- return t.setQueryData(d, (g) => {
927
- if (g) {
928
- const m = {
929
- ...g,
930
- pages: g == null ? void 0 : g.pages.map((C) => ({
931
- ...C,
932
- folders: C.folders.map((x) => x.id === i.id ? {
933
+ return t.setQueryData(d, (p) => {
934
+ if (p) {
935
+ const g = {
936
+ ...p,
937
+ pages: p == null ? void 0 : p.pages.map((w) => ({
938
+ ...w,
939
+ folders: w.folders.map((x) => x.id === i.id ? {
933
940
  ...i,
934
941
  parentId: h.parentId,
935
942
  rights: x.rights
@@ -939,7 +946,7 @@ const xt = (e, t) => {
939
946
  folderId: h.folderId,
940
947
  newFolder: i
941
948
  });
942
- return a(I), m;
949
+ return c(I), g;
943
950
  }
944
951
  });
945
952
  },
@@ -948,39 +955,39 @@ const xt = (e, t) => {
948
955
  }
949
956
  });
950
957
  }, Ss = (e) => {
951
- const t = P(), s = A(), {
958
+ const t = k(), s = N(), {
952
959
  setResourceIds: r,
953
960
  setSelectedResources: o
954
961
  } = R(), {
955
962
  filters: l,
956
- trashed: a
957
- } = s, c = ["context", {
963
+ trashed: c
964
+ } = s, n = ["context", {
958
965
  folderId: l.folder,
959
966
  filters: l,
960
- trashed: a
967
+ trashed: c
961
968
  }];
962
969
  return Ne({
963
970
  application: e,
964
971
  options: {
965
- onSuccess: async (p, d) => {
972
+ onSuccess: async (f, d) => {
966
973
  if (await t.cancelQueries({
967
- queryKey: c
968
- }), t.getQueryData(c))
969
- return t.setQueryData(c, (h) => {
974
+ queryKey: n
975
+ }), t.getQueryData(n))
976
+ return t.setQueryData(n, (h) => {
970
977
  if (h)
971
978
  return {
972
979
  ...h,
973
980
  pages: h == null ? void 0 : h.pages.map((u) => ({
974
981
  ...u,
975
- resources: u.resources.map((g) => {
976
- if (g.assetId === (d == null ? void 0 : d.resourceId)) {
977
- let m = [`creator:${g.creatorId}`];
978
- return (d == null ? void 0 : d.rights.length) >= 1 && (m = [...m, ...d.rights.flatMap((I) => I.actions.map((C) => `${I.type}:${I.id}:${C.id}`))]), {
979
- ...g,
980
- rights: m
982
+ resources: u.resources.map((p) => {
983
+ if (p.assetId === (d == null ? void 0 : d.resourceId)) {
984
+ let g = [`creator:${p.creatorId}`];
985
+ return (d == null ? void 0 : d.rights.length) >= 1 && (g = [...g, ...d.rights.flatMap((I) => I.actions.map((w) => `${I.type}:${I.id}:${w.id}`))]), {
986
+ ...p,
987
+ rights: g
981
988
  };
982
989
  } else
983
- return g;
990
+ return p;
984
991
  })
985
992
  }))
986
993
  };
@@ -992,7 +999,7 @@ const xt = (e, t) => {
992
999
  }
993
1000
  });
994
1001
  }, bs = (e) => {
995
- const t = P(), s = A(), {
1002
+ const t = k(), s = N(), {
996
1003
  filters: r,
997
1004
  trashed: o
998
1005
  } = s, l = ["context", {
@@ -1003,7 +1010,7 @@ const xt = (e, t) => {
1003
1010
  return Ae({
1004
1011
  application: e,
1005
1012
  options: {
1006
- onSuccess: async (a, c) => {
1013
+ onSuccess: async (c, n) => {
1007
1014
  if (await t.cancelQueries({
1008
1015
  queryKey: l
1009
1016
  }), t.getQueryData(l))
@@ -1014,24 +1021,24 @@ const xt = (e, t) => {
1014
1021
  pages: d == null ? void 0 : d.pages.map((i) => ({
1015
1022
  ...i,
1016
1023
  resources: i.resources.map((h) => {
1017
- if (h.assetId === (c == null ? void 0 : c.entId)) {
1024
+ if (h.assetId === (n == null ? void 0 : n.entId)) {
1018
1025
  const {
1019
1026
  name: u,
1020
- thumbnail: g,
1021
- public: m,
1027
+ thumbnail: p,
1028
+ public: g,
1022
1029
  description: I,
1023
- slug: C,
1030
+ slug: w,
1024
1031
  ...x
1025
- } = c;
1032
+ } = n;
1026
1033
  return {
1027
1034
  ...h,
1028
1035
  ...x,
1029
1036
  // add any custom field
1030
1037
  name: u,
1031
- thumbnail: typeof g == "string" ? g : URL.createObjectURL(g),
1032
- public: m,
1038
+ thumbnail: typeof p == "string" ? p : URL.createObjectURL(p),
1039
+ public: g,
1033
1040
  description: I,
1034
- slug: C
1041
+ slug: w
1035
1042
  };
1036
1043
  } else
1037
1044
  return h;
@@ -1045,51 +1052,51 @@ const xt = (e, t) => {
1045
1052
  }, Ts = ({
1046
1053
  onResourceCreated: e
1047
1054
  }) => {
1048
- const t = U(), s = P(), r = A(), {
1055
+ const t = U(), s = k(), r = N(), {
1049
1056
  user: o
1050
1057
  } = ue(), {
1051
1058
  appCode: l
1052
- } = Z(), a = ["context", {
1059
+ } = O(), c = ["context", {
1053
1060
  folderId: r.filters.folder,
1054
1061
  filters: r.filters,
1055
1062
  trashed: r.trashed
1056
1063
  }];
1057
- return O({
1058
- mutationFn: async (c) => await at({
1064
+ return q({
1065
+ mutationFn: async (n) => await nt({
1059
1066
  searchParams: r,
1060
- params: c
1067
+ params: n
1061
1068
  }),
1062
- onError(c) {
1063
- typeof c == "string" && t.error(L(c));
1069
+ onError(n) {
1070
+ typeof n == "string" && t.error(E(n));
1064
1071
  },
1065
- onSuccess: async (c, p) => {
1066
- var h, u, g;
1072
+ onSuccess: async (n, f) => {
1073
+ var h, u, p;
1067
1074
  await s.cancelQueries({
1068
- queryKey: a
1075
+ queryKey: c
1069
1076
  });
1070
- const d = s.getQueryData(a), i = {
1071
- ...p,
1072
- thumbnail: c.thumbnail || "",
1077
+ const d = s.getQueryData(c), i = {
1078
+ ...f,
1079
+ thumbnail: n.thumbnail || "",
1073
1080
  application: l,
1074
- assetId: c._id || c.entId || "",
1075
- id: c._id || c.entId || "",
1081
+ assetId: n._id || n.entId || "",
1082
+ id: n._id || n.entId || "",
1076
1083
  creatorId: o == null ? void 0 : o.userId,
1077
1084
  creatorName: o == null ? void 0 : o.username,
1078
1085
  createdAt: Date.now(),
1079
- slug: p.slug || "",
1080
- modifiedAt: ((h = c.modified) == null ? void 0 : h.$date) || "",
1081
- modifierId: ((u = c.author) == null ? void 0 : u.userId) || "",
1082
- modifierName: ((g = c.author) == null ? void 0 : g.username) || "",
1086
+ slug: f.slug || "",
1087
+ modifiedAt: ((h = n.modified) == null ? void 0 : h.$date) || "",
1088
+ modifierId: ((u = n.author) == null ? void 0 : u.userId) || "",
1089
+ modifierName: ((p = n.author) == null ? void 0 : p.username) || "",
1083
1090
  updatedAt: Date.now(),
1084
1091
  trashed: !1,
1085
1092
  rights: [`creator:${o == null ? void 0 : o.userId}`]
1086
1093
  };
1087
1094
  if (e == null || e(i), d)
1088
- return s.setQueryData(a, (m) => {
1089
- if (m)
1095
+ return s.setQueryData(c, (g) => {
1096
+ if (g)
1090
1097
  return {
1091
- ...m,
1092
- pages: m == null ? void 0 : m.pages.map((I) => ({
1098
+ ...g,
1099
+ pages: g == null ? void 0 : g.pages.map((I) => ({
1093
1100
  ...I,
1094
1101
  resources: [i, ...I.resources]
1095
1102
  }))
@@ -1101,36 +1108,36 @@ const xt = (e, t) => {
1101
1108
  function le(e, t) {
1102
1109
  var r;
1103
1110
  const s = G(e, t);
1104
- return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t === E.BIN ? [E.BIN] : [E.DEFAULT];
1111
+ return (r = s == null ? void 0 : s.folder) != null && r.childrenIds ? [...(s == null ? void 0 : s.folder.childrenIds) || [], t] : t === v.BIN ? [v.BIN] : [v.DEFAULT];
1105
1112
  }
1106
1113
  function Ft() {
1107
- const e = P(), t = Tt(), s = U(), {
1114
+ const e = k(), t = Tt(), s = U(), {
1108
1115
  appCode: r
1109
- } = Z(), {
1116
+ } = O(), {
1110
1117
  t: o
1111
- } = V(["common", r]), l = o("explorer.filters.mine", {
1118
+ } = _(["common", r]), l = o("explorer.filters.mine", {
1112
1119
  ns: r
1113
1120
  }), {
1114
- setResourceOrFolderIsDraggable: a,
1115
- setElementDragOver: c,
1116
- setResourceIds: p,
1121
+ setResourceOrFolderIsDraggable: c,
1122
+ setElementDragOver: n,
1123
+ setResourceIds: f,
1117
1124
  setFolderIds: d,
1118
1125
  fetchTreeData: i
1119
- } = R(), h = $(), g = oe(xe, {
1126
+ } = R(), h = $(), p = oe(xe, {
1120
1127
  activationConstraint: {
1121
1128
  delay: wt,
1122
1129
  tolerance: Dt
1123
1130
  }
1124
- }), m = oe(Se), I = be(g, m), C = (S, D) => {
1131
+ }), g = oe(Se), I = be(p, g), w = (S, D) => {
1125
1132
  var y;
1126
1133
  ((y = S.data.current) == null ? void 0 : y.type) === "resource" ? s.success(/* @__PURE__ */ b(W, { children: [
1127
1134
  o("explorer.dragged.resource"),
1128
1135
  " ",
1129
- /* @__PURE__ */ n("strong", { children: D })
1136
+ /* @__PURE__ */ a("strong", { children: D })
1130
1137
  ] })) : s.success(/* @__PURE__ */ b(W, { children: [
1131
1138
  o("explorer.dragged.folder"),
1132
1139
  " ",
1133
- /* @__PURE__ */ n("strong", { children: D })
1140
+ /* @__PURE__ */ a("strong", { children: D })
1134
1141
  ] }));
1135
1142
  };
1136
1143
  return {
@@ -1138,18 +1145,18 @@ function Ft() {
1138
1145
  const {
1139
1146
  over: D,
1140
1147
  active: y
1141
- } = S, f = D == null ? void 0 : D.data.current, w = y.data.current, v = ae(h, f == null ? void 0 : f.id), _ = le(h, f == null ? void 0 : f.id);
1142
- if ((w == null ? void 0 : w.id) == (f == null ? void 0 : f.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id))
1143
- p([]), d([]);
1148
+ } = S, m = D == null ? void 0 : D.data.current, C = y.data.current, M = ne(h, m == null ? void 0 : m.id), P = le(h, m == null ? void 0 : m.id);
1149
+ if ((C == null ? void 0 : C.id) == (m == null ? void 0 : m.id) || M.includes(C == null ? void 0 : C.id) || P.includes(C == null ? void 0 : C.id))
1150
+ f([]), d([]);
1144
1151
  else {
1145
- const j = (f == null ? void 0 : f.name) ?? l;
1152
+ const j = (m == null ? void 0 : m.name) ?? l;
1146
1153
  if (D)
1147
1154
  try {
1148
- await t.mutate(f == null ? void 0 : f.id), C(y, j);
1155
+ await t.mutate(m == null ? void 0 : m.id), w(y, j);
1149
1156
  } catch (Ie) {
1150
1157
  console.error(Ie);
1151
1158
  } finally {
1152
- c({
1159
+ n({
1153
1160
  isOver: !1,
1154
1161
  overId: void 0,
1155
1162
  canMove: !0,
@@ -1157,7 +1164,7 @@ function Ft() {
1157
1164
  });
1158
1165
  }
1159
1166
  }
1160
- a({
1167
+ c({
1161
1168
  isDrag: !1,
1162
1169
  elementDrag: void 0
1163
1170
  });
@@ -1166,7 +1173,7 @@ function Ft() {
1166
1173
  const {
1167
1174
  active: D
1168
1175
  } = S, y = D.data.current;
1169
- (y == null ? void 0 : y.type) === "resource" ? p([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && d([y == null ? void 0 : y.id]), a({
1176
+ (y == null ? void 0 : y.type) === "resource" ? f([y == null ? void 0 : y.id]) : (y == null ? void 0 : y.type) === "folder" && d([y == null ? void 0 : y.id]), c({
1170
1177
  isDrag: !0,
1171
1178
  elementDrag: y == null ? void 0 : y.id
1172
1179
  });
@@ -1175,23 +1182,23 @@ function Ft() {
1175
1182
  const {
1176
1183
  over: D,
1177
1184
  active: y
1178
- } = S, f = D == null ? void 0 : D.data.current, w = y == null ? void 0 : y.data.current, v = ae(h, f == null ? void 0 : f.id), _ = le(h, f == null ? void 0 : f.id);
1185
+ } = S, m = D == null ? void 0 : D.data.current, C = y == null ? void 0 : y.data.current, M = ne(h, m == null ? void 0 : m.id), P = le(h, m == null ? void 0 : m.id);
1179
1186
  if (D) {
1180
1187
  const j = {
1181
1188
  isOver: !0,
1182
1189
  canMove: !1,
1183
- overId: f == null ? void 0 : f.id,
1184
- isTreeview: f == null ? void 0 : f.isTreeview
1190
+ overId: m == null ? void 0 : m.id,
1191
+ isTreeview: m == null ? void 0 : m.isTreeview
1185
1192
  };
1186
- (w == null ? void 0 : w.id) === (f == null ? void 0 : f.id) || v.includes(w == null ? void 0 : w.id) || _.includes(w == null ? void 0 : w.id) ? c({
1193
+ (C == null ? void 0 : C.id) === (m == null ? void 0 : m.id) || M.includes(C == null ? void 0 : C.id) || P.includes(C == null ? void 0 : C.id) ? n({
1187
1194
  ...j,
1188
1195
  canMove: !1
1189
- }) : (i(f == null ? void 0 : f.id, e), c({
1196
+ }) : (i(m == null ? void 0 : m.id, e), n({
1190
1197
  ...j,
1191
1198
  canMove: !0
1192
1199
  }));
1193
1200
  } else
1194
- c({
1201
+ n({
1195
1202
  isOver: !1,
1196
1203
  overId: void 0,
1197
1204
  canMove: !0,
@@ -1201,90 +1208,90 @@ function Ft() {
1201
1208
  sensors: I
1202
1209
  };
1203
1210
  }
1204
- const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), vt = /* @__PURE__ */ M(async () => await import("./EmptyScreenSearch.js")), Et = /* @__PURE__ */ M(async () => await import("./EmptyScreenError.js")), Lt = /* @__PURE__ */ M(async () => await import("./EmptyScreenNoContentInFolder.js")), Nt = /* @__PURE__ */ M(async () => await import("./EmptyScreenTrash.js")), At = /* @__PURE__ */ M(async () => await import("./FoldersList.js")), Mt = /* @__PURE__ */ M(async () => await import("./ResourcesList.js")), kt = () => {
1205
- const e = mt(), t = re(), s = se(), r = A(), o = z(), l = U(), a = P(), {
1206
- appCode: c
1207
- } = Z(), {
1208
- t: p
1209
- } = V([c]), {
1211
+ const Rt = /* @__PURE__ */ A(async () => await import("./EmptyScreenApp.js")), vt = /* @__PURE__ */ A(async () => await import("./EmptyScreenSearch.js")), Et = /* @__PURE__ */ A(async () => await import("./EmptyScreenError.js")), Lt = /* @__PURE__ */ A(async () => await import("./EmptyScreenNoContentInFolder.js")), Nt = /* @__PURE__ */ A(async () => await import("./EmptyScreenTrash.js")), At = /* @__PURE__ */ A(async () => await import("./FoldersList.js")), Mt = /* @__PURE__ */ A(async () => await import("./ResourcesList.js")), kt = () => {
1212
+ const e = mt(), t = re(), s = se(), r = N(), o = z(), l = U(), c = k(), {
1213
+ appCode: n
1214
+ } = O(), {
1215
+ t: f
1216
+ } = _([n]), {
1210
1217
  setSearchParams: d,
1211
1218
  setSearchConfig: i,
1212
1219
  fetchTreeData: h
1213
1220
  } = R(), {
1214
1221
  data: u,
1215
- isError: g,
1216
- error: m,
1222
+ isError: p,
1223
+ error: g,
1217
1224
  isLoading: I,
1218
- isFetching: C,
1225
+ isFetching: w,
1219
1226
  fetchNextPage: x
1220
- } = bt(), F = (u == null ? void 0 : u.pages[0].folders.length) === 0, k = (u == null ? void 0 : u.pages[0].resources.length) === 0, S = F && k;
1221
- return B(() => {
1227
+ } = bt(), F = (u == null ? void 0 : u.pages[0].folders.length) === 0, Z = (u == null ? void 0 : u.pages[0].resources.length) === 0, S = F && Z;
1228
+ return V(() => {
1222
1229
  var D, y;
1223
- u && ((D = u == null ? void 0 : u.pages[0]) != null && D.searchConfig && i(u.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, a), d({
1230
+ u && ((D = u == null ? void 0 : u.pages[0]) != null && D.searchConfig && i(u.pages[0].searchConfig), !r.search && o.id === "default" && h(o.id, c), d({
1224
1231
  ...r,
1225
1232
  pagination: (y = u == null ? void 0 : u.pages[(u == null ? void 0 : u.pages.length) - 1]) == null ? void 0 : y.pagination
1226
1233
  }));
1227
- }, [u]), B(() => {
1228
- m && typeof m == "string" && l.error(p(m));
1229
- }, [m]), I ? /* @__PURE__ */ n(H, {}) : g ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Et, {}) }) : r.search && S ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(vt, {}) }) : e && S ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Rt, {}) }) : s && S && !t ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Lt, {}) }) : t && (u == null ? void 0 : u.pages[0].resources.length) === 0 ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(Nt, {}) }) : /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ n(H, {}), children: [
1230
- /* @__PURE__ */ n(At, { data: u, isFetching: C }),
1231
- /* @__PURE__ */ n(Mt, { data: u, isFetching: C, fetchNextPage: x })
1234
+ }, [u]), V(() => {
1235
+ g && typeof g == "string" && l.error(f(g));
1236
+ }, [g]), I ? /* @__PURE__ */ a(H, {}) : p ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Et, {}) }) : r.search && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(vt, {}) }) : e && S ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Rt, {}) }) : s && S && !t ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Lt, {}) }) : t && (u == null ? void 0 : u.pages[0].resources.length) === 0 ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(Nt, {}) }) : /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
1237
+ /* @__PURE__ */ a(At, { data: u, isFetching: w }),
1238
+ /* @__PURE__ */ a(Mt, { data: u, isFetching: w, fetchNextPage: x })
1232
1239
  ] });
1233
1240
  }, Pt = ({
1234
1241
  title: e,
1235
1242
  titleId: t,
1236
1243
  ...s
1237
1244
  }) => /* @__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: [
1238
- e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
1239
- /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1", clipRule: "evenodd" }),
1240
- /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0", clipRule: "evenodd" })
1245
+ e ? /* @__PURE__ */ a("title", { id: t, children: e }) : null,
1246
+ /* @__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" }),
1247
+ /* @__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" })
1241
1248
  ] }), Ht = ({
1242
1249
  title: e,
1243
1250
  titleId: t,
1244
1251
  ...s
1245
1252
  }) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
1246
- e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
1247
- /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.461 3.689a.96.96 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675m7.357.675v.954h3.818a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909h3.818v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0", clipRule: "evenodd" })
1253
+ e ? /* @__PURE__ */ a("title", { id: t, children: e }) : null,
1254
+ /* @__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" })
1248
1255
  ] }), Qt = ({
1249
1256
  title: e,
1250
1257
  titleId: t,
1251
1258
  ...s
1252
1259
  }) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
1253
- e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
1254
- /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z", clipRule: "evenodd" })
1260
+ e ? /* @__PURE__ */ a("title", { id: t, children: e }) : null,
1261
+ /* @__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" })
1255
1262
  ] }), Ut = ({
1256
1263
  title: e,
1257
1264
  titleId: t,
1258
1265
  ...s
1259
1266
  }) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": t, ...s, children: [
1260
- e ? /* @__PURE__ */ n("title", { id: t, children: e }) : null,
1261
- /* @__PURE__ */ n("path", { fill: "currentColor", fillRule: "evenodd", d: "M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7z", clipRule: "evenodd" })
1267
+ e ? /* @__PURE__ */ a("title", { id: t, children: e }) : null,
1268
+ /* @__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" })
1262
1269
  ] }), Ce = () => {
1263
- const e = A(), [t, s] = ie(""), r = ht(), o = yt(), l = we(null), {
1264
- setSearchParams: a
1265
- } = R(), c = (i) => {
1270
+ const e = N(), [t, s] = ie(""), r = ht(), o = yt(), l = we(null), {
1271
+ setSearchParams: c
1272
+ } = R(), n = (i) => {
1266
1273
  const h = i.target.value;
1267
1274
  s(h.toString());
1268
- }, p = (i) => {
1269
- (i.key === "Enter" || i.key === "Return") && (i.preventDefault(), a({
1275
+ }, f = (i) => {
1276
+ (i.key === "Enter" || i.key === "Return") && (i.preventDefault(), c({
1270
1277
  search: t || void 0
1271
1278
  }));
1272
1279
  }, d = (i) => {
1273
- i == null || i.preventDefault(), a({
1280
+ i == null || i.preventDefault(), c({
1274
1281
  search: t || void 0
1275
1282
  });
1276
1283
  };
1277
- return B(() => {
1284
+ return V(() => {
1278
1285
  const h = t.length == 0 || t.length >= r.minLength ? {
1279
1286
  search: t || void 0
1280
1287
  } : {};
1281
- a({
1288
+ c({
1282
1289
  ...e,
1283
1290
  ...h
1284
1291
  });
1285
- }, [t, r.minLength]), B(() => {
1292
+ }, [t, r.minLength]), V(() => {
1286
1293
  o === "select" && s("");
1287
- }, [o]), B(() => {
1294
+ }, [o]), V(() => {
1288
1295
  s(() => {
1289
1296
  var i;
1290
1297
  return ((i = e.search) == null ? void 0 : i.toString()) ?? "";
@@ -1292,37 +1299,37 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
1292
1299
  }, [e]), {
1293
1300
  formRef: l,
1294
1301
  inputSearch: t,
1295
- handleInputSearchChange: c,
1296
- handleKeyPress: p,
1302
+ handleInputSearchChange: n,
1303
+ handleKeyPress: f,
1297
1304
  handleSearchSubmit: d
1298
1305
  };
1299
1306
  }, Zt = () => {
1300
1307
  const {
1301
1308
  appCode: e,
1302
1309
  currentApp: t
1303
- } = Z(), {
1310
+ } = O(), {
1304
1311
  t: s
1305
- } = V(), [r, o] = ie(""), l = (i) => {
1312
+ } = _(), [r, o] = ie(""), l = (i) => {
1306
1313
  if (i === "0") {
1307
1314
  o("");
1308
1315
  return;
1309
1316
  }
1310
1317
  o(i);
1311
- }, a = z(), c = A(), {
1312
- setSearchParams: p
1318
+ }, c = z(), n = N(), {
1319
+ setSearchParams: f
1313
1320
  } = R();
1314
- B(() => {
1321
+ V(() => {
1315
1322
  const i = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, u = () => r.includes("7") ? !0 : void 0;
1316
- p({
1317
- ...c,
1323
+ f({
1324
+ ...n,
1318
1325
  filters: {
1319
1326
  owner: i(),
1320
1327
  public: u(),
1321
1328
  shared: h(),
1322
- folder: a ? a.id : "default"
1329
+ folder: c ? c.id : "default"
1323
1330
  }
1324
1331
  });
1325
- }, [a, p, r]);
1332
+ }, [c, f, r]);
1326
1333
  const d = [{
1327
1334
  label: s("explorer.filter.all", {
1328
1335
  ns: e
@@ -1364,34 +1371,34 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
1364
1371
  }, Ot = () => {
1365
1372
  const {
1366
1373
  appCode: e
1367
- } = Z(), {
1374
+ } = O(), {
1368
1375
  t
1369
- } = V(), {
1376
+ } = _(), {
1370
1377
  selectedFilters: s,
1371
1378
  options: r,
1372
1379
  handleOnSelectFilter: o
1373
1380
  } = Zt(), {
1374
1381
  formRef: l,
1375
- inputSearch: a,
1376
- handleInputSearchChange: c,
1377
- handleKeyPress: p,
1382
+ inputSearch: c,
1383
+ handleInputSearchChange: n,
1384
+ handleKeyPress: f,
1378
1385
  handleSearchSubmit: d
1379
1386
  } = Ce(), i = s.length > 0 ? s.length : void 0;
1380
1387
  return /* @__PURE__ */ b("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: l, children: [
1381
1388
  /* @__PURE__ */ b(He, { id: "search", className: "input-group", children: [
1382
- /* @__PURE__ */ n(Qe, { type: "search", placeholder: t("explorer.label.search", {
1389
+ /* @__PURE__ */ a(Qe, { type: "search", placeholder: t("explorer.label.search", {
1383
1390
  ns: e
1384
- }), size: "lg", noValidationIcon: !0, value: a, onChange: c, onKeyDown: p }),
1385
- /* @__PURE__ */ n(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
1391
+ }), size: "lg", noValidationIcon: !0, value: c, onChange: n, onKeyDown: f }),
1392
+ /* @__PURE__ */ a(Ue, { type: "submit", "aria-label": t("explorer.label.search", {
1386
1393
  ns: e
1387
1394
  }), onClick: d })
1388
1395
  ] }),
1389
1396
  /* @__PURE__ */ b(K, { placement: "bottom-end", children: [
1390
- /* @__PURE__ */ n(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ n(Qt, { width: 20 }), variant: "ghost", badgeContent: i }),
1391
- /* @__PURE__ */ n(K.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ b(De, { children: [
1392
- /* @__PURE__ */ n(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
1393
- /* @__PURE__ */ n(K.Separator, {})
1394
- ] }, "0") : /* @__PURE__ */ n(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
1397
+ /* @__PURE__ */ a(K.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ a(Qt, { width: 20 }), variant: "ghost", badgeContent: i }),
1398
+ /* @__PURE__ */ a(K.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ b(De, { children: [
1399
+ /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }),
1400
+ /* @__PURE__ */ a(K.Separator, {})
1401
+ ] }, "0") : /* @__PURE__ */ a(K.RadioItem, { value: h.value, model: s, onChange: () => o(h.value), children: h.label }, h.value)) })
1395
1402
  ] })
1396
1403
  ] });
1397
1404
  }, qt = ({
@@ -1401,73 +1408,73 @@ const Rt = /* @__PURE__ */ M(async () => await import("./EmptyScreenApp.js")), v
1401
1408
  }) => {
1402
1409
  const {
1403
1410
  t: r
1404
- } = V();
1405
- return /* @__PURE__ */ n("div", { className: "treeview", children: /* @__PURE__ */ n("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ n("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n("div", { className: "action-container", children: /* @__PURE__ */ n("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
1406
- /* @__PURE__ */ n(Ht, { width: "20", height: "20" }),
1407
- /* @__PURE__ */ n("span", { children: r("explorer.tree.trash") })
1411
+ } = _();
1412
+ 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: [
1413
+ /* @__PURE__ */ a(Ht, { width: "20", height: "20" }),
1414
+ /* @__PURE__ */ a("span", { children: r("explorer.tree.trash") })
1408
1415
  ] }) }) }) }) }) }) });
1409
- }, Bt = /* @__PURE__ */ M(async () => await import("./FolderModal.js")), Vt = () => {
1410
- const [e, t] = Ze(), s = P(), r = $(), o = re(), l = se(), a = ft(), c = Oe(), p = o ? E.BIN : l, {
1416
+ }, Bt = /* @__PURE__ */ A(async () => await import("./FolderModal.js")), Vt = () => {
1417
+ const [e, t] = Ze(), s = k(), r = $(), o = re(), l = se(), c = pt(), n = Oe(), f = o ? v.BIN : l, {
1411
1418
  appCode: d
1412
- } = Z(), {
1419
+ } = O(), {
1413
1420
  t: i
1414
- } = V(["common", d]), h = {
1421
+ } = _(["common", d]), h = {
1415
1422
  ...r,
1416
1423
  name: i("explorer.filters.mine", {
1417
1424
  ns: d
1418
1425
  })
1419
1426
  }, {
1420
1427
  goToTrash: u,
1421
- selectTreeItem: g,
1422
- clearSelectedItems: m,
1428
+ selectTreeItem: p,
1429
+ clearSelectedItems: g,
1423
1430
  clearSelectedIds: I,
1424
- fetchTreeData: C
1431
+ fetchTreeData: w
1425
1432
  } = R(), x = (S) => {
1426
- g(S, s), c();
1433
+ p(S, s), n();
1427
1434
  }, F = (S) => {
1428
- var f, w;
1429
- const D = G(r, S), y = (f = D == null ? void 0 : D.children) == null ? void 0 : f.some((v) => {
1430
- var _;
1431
- return Array.isArray(v == null ? void 0 : v.children) && ((_ = v.children) == null ? void 0 : _.length) > 0;
1435
+ var m, C;
1436
+ const D = G(r, S), y = (m = D == null ? void 0 : D.children) == null ? void 0 : m.some((M) => {
1437
+ var P;
1438
+ return Array.isArray(M == null ? void 0 : M.children) && ((P = M.children) == null ? void 0 : P.length) > 0;
1432
1439
  });
1433
- (w = D == null ? void 0 : D.children) == null || w.forEach((v) => {
1434
- y || C(v.id, s);
1440
+ (C = D == null ? void 0 : D.children) == null || C.forEach((M) => {
1441
+ y || w(M.id, s);
1435
1442
  });
1436
- }, k = () => {
1437
- m(), I(), t();
1443
+ }, Z = () => {
1444
+ g(), I(), t();
1438
1445
  };
1439
1446
  return /* @__PURE__ */ b(W, { children: [
1440
- /* @__PURE__ */ n(qe, { data: h, selectedNodeId: p, draggedNode: a != null && a.isTreeview ? a : void 0, onTreeItemClick: x, onTreeItemUnfold: F }),
1441
- /* @__PURE__ */ n(qt, { id: E.BIN, selected: o, onSelect: u }),
1442
- /* @__PURE__ */ n("div", { className: "d-grid my-16", children: /* @__PURE__ */ n(Be, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ n(Ut, {}), onClick: k, children: i("explorer.folder.new") }) }),
1443
- /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: e && /* @__PURE__ */ n(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
1447
+ /* @__PURE__ */ a(qe, { data: h, selectedNodeId: f, draggedNode: c != null && c.isTreeview ? c : void 0, onTreeItemClick: x, onTreeItemUnfold: F }),
1448
+ /* @__PURE__ */ a(qt, { id: v.BIN, selected: o, onSelect: u }),
1449
+ /* @__PURE__ */ a("div", { className: "d-grid my-16", children: /* @__PURE__ */ a(Be, { disabled: o, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ a(Ut, {}), onClick: Z, children: i("explorer.folder.new") }) }),
1450
+ /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: e && /* @__PURE__ */ a(Bt, { edit: !1, isOpen: e, onSuccess: t, onCancel: t }) })
1444
1451
  ] });
1445
1452
  };
1446
1453
  function _t() {
1447
1454
  const {
1448
1455
  appCode: e
1449
- } = Z(), {
1456
+ } = O(), {
1450
1457
  gotoPreviousFolder: t
1451
1458
  } = R(), {
1452
1459
  t: s
1453
- } = V(["common", e]), {
1460
+ } = _(["common", e]), {
1454
1461
  inputSearch: r
1455
- } = Ce(), o = se(), l = re(), a = z(), c = s("explorer.tree.trash"), p = s("explorer.tree.search"), d = s("explorer.filters.mine", {
1462
+ } = Ce(), o = se(), l = re(), c = z(), n = s("explorer.tree.trash"), f = s("explorer.tree.search"), d = s("explorer.filters.mine", {
1456
1463
  ns: e
1457
- }), i = (a == null ? void 0 : a.name) || d;
1458
- return /* @__PURE__ */ n("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !l ? /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8", children: [
1459
- /* @__PURE__ */ n(Ve, { icon: /* @__PURE__ */ n(Pt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
1460
- /* @__PURE__ */ n("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ n("strong", { children: i }) })
1461
- ] }) : /* @__PURE__ */ n("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? p : l ? c : d }) });
1464
+ }), i = (c == null ? void 0 : c.name) || d;
1465
+ return /* @__PURE__ */ a("div", { className: "py-16", children: o && o !== "bin" && o !== "default" && !l ? /* @__PURE__ */ b("div", { className: "d-flex align-items-center gap-8", children: [
1466
+ /* @__PURE__ */ a(Ve, { icon: /* @__PURE__ */ a(Pt, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
1467
+ /* @__PURE__ */ a("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ a("strong", { children: i }) })
1468
+ ] }) : /* @__PURE__ */ a("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? f : l ? n : d }) });
1462
1469
  }
1463
- const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M240.604%2031H54.6988C49.9309%2031%2046.0662%2034.8647%2046.0662%2039.6327V135.326C46.0662%20140.094%2049.9309%20143.959%2054.6988%20143.959H240.6C245.368%20143.959%20249.233%20140.094%20249.233%20135.326V39.6327C249.233%2034.8647%20245.368%2031%20240.6%2031H240.604ZM133.102%20115.945C133.102%20119.76%20130.009%20122.853%20126.194%20122.853H71.4939C67.6787%20122.853%2064.5853%20119.76%2064.5853%20115.945V59.0139C64.5853%2055.1987%2067.6787%2052.1053%2071.4939%2052.1053H126.198C130.013%2052.1053%20133.106%2055.1987%20133.106%2059.0139V115.945H133.102ZM235.745%20121.212H196.768C194.945%20121.212%20193.469%20119.735%20193.469%20117.912C193.469%20116.089%20194.945%20114.613%20196.768%20114.613H235.745C237.568%20114.613%20239.045%20116.089%20239.045%20117.912C239.045%20119.735%20237.568%20121.212%20235.745%20121.212ZM234.335%2061.9464H153.205C150.574%2061.9464%20148.441%2059.814%20148.441%2057.1826C148.441%2054.5511%20150.574%2052.4187%20153.205%2052.4187H234.335C236.966%2052.4187%20239.099%2054.5511%20239.099%2057.1826C239.099%2059.814%20236.966%2061.9464%20234.335%2061.9464Z'%20fill='%23FFEFE3'/%3e%3cmask%20id='mask0_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='154'%20y='81'%20width='24'%20height='8'%3e%3cpath%20d='M171.836%2088.8962L177.833%2081.7153H160.732L155.672%2087.7702L155.556%2087.7372L154.595%2088.8962H171.832H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3c/g%3e%3cpath%20d='M262.147%2088.8962H38.5883C36.6044%2088.8962%2035%2087.2876%2035%2085.3037C35%2083.3198%2036.6086%2081.7112%2038.5883%2081.7112H262.147C264.13%2081.7112%20265.735%2083.3198%20265.735%2085.3037C265.735%2087.2876%20264.126%2088.8962%20262.147%2088.8962Z'%20fill='%232A9CC8'/%3e%3cmask%20id='mask1_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='79'%20y='38'%20width='113'%20height='160'%3e%3cpath%20d='M79.5574%2038.317V197.586H191.959V38.317H79.5574ZM171.836%2088.8962H154.599L155.56%2087.7372L155.676%2087.7702L160.737%2081.7153H177.837L171.84%2088.8962H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3cpath%20d='M154.092%2039.1419C147.291%2039.1419%20141.78%2044.6564%20141.78%2051.4536L141.603%20132.113H153.915L154.092%2039.1377V39.1419Z'%20fill='%23AADAED'/%3e%3cpath%20d='M106.26%20128.43C112.071%20127.84%20117.61%20125.687%20122.395%20122.338C124.3%20121.006%20126.202%20119.669%20128.107%20118.337C129.122%20117.624%20130.52%20117.822%20131.296%20118.791C133.713%20121.798%20136.15%20124.656%20138.567%20127.667C138.815%20127.976%20139.021%20129.387%20138.464%20130.748C137.965%20131.973%20137.128%20132.237%20135.461%20134.023C134.954%20134.567%20134.517%20135.132%20133.642%20136.271C130.92%20139.801%20127.34%20146.174%20124.968%20149.927C122.42%20153.957%20120.114%20156.786%20118.889%20158.275C114.389%20163.752%20111.597%20167.155%20107.732%20169.308C101.257%20172.913%2090.2894%20173.841%2084.4325%20168.124C76.5134%20160.395%2081.3432%20143.88%2089.2335%20136.06C94.6119%20130.731%20101.236%20128.941%20106.264%20128.43H106.26ZM91.0937%20159.698C94.3892%20163.596%20103.595%20161.764%20108.804%20157.104C113.486%20152.913%20116.728%20144.837%20113.502%20140.944C110.281%20137.054%20101.743%20138.7%2096.7566%20142.556C91.1473%20146.895%2087.7775%20155.78%2091.0937%20159.702V159.698Z'%20fill='%23AADAED'/%3e%3cpath%20d='M165.558%20152.909C161.739%20148.492%20159.186%20143.121%20158.006%20137.401C157.536%20135.124%20157.07%20132.847%20156.6%20130.57C156.348%20129.354%20155.197%20128.541%20153.968%20128.71C150.145%20129.238%20146.412%20129.642%20142.589%20130.17C142.197%20130.224%20141.079%20131.107%20140.547%20132.48C140.068%20133.713%20140.497%20134.481%20140.481%20136.926C140.477%20137.669%20140.407%20138.382%20140.262%20139.809C139.821%20144.247%20138.047%20151.338%20137.194%20155.693C136.278%20160.374%20136.014%20164.016%20135.882%20165.938C135.391%20173.008%20135.086%20177.4%20136.422%20181.62C138.658%20188.689%20145.995%20196.889%20154.178%20196.753C165.245%20196.567%20173.069%20181.245%20172.702%20170.141C172.45%20162.573%20168.862%20156.724%20165.558%20152.905V152.909ZM155.123%20186.058C150.05%20186.631%20144.614%20178.976%20144.028%20172.01C143.5%20165.749%20146.688%20157.652%20151.704%20157.034C156.715%20156.415%20161.796%20163.476%20162.774%20169.7C163.875%20176.703%20160.225%20185.48%20155.123%20186.054V186.058Z'%20fill='%23AADAED'/%3e%3c/g%3e%3c/svg%3e", $t = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='version_orange'%20data-name='version%20orange'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20353.36'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20.cls-2%20{%20fill:%20%23aadaed;%20}%20.cls-3%20{%20fill:%20%23ffefe3;%20}%20.cls-4%20{%20fill:%20none;%20stroke:%20%23aadaed;%20stroke-miterlimit:%2010;%20stroke-width:%204px;%20}%20.cls-5%20{%20fill:%20%232a9cc8;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='ciseaux'%3e%3cpath%20class='cls-3'%20d='m512.64,45.09H61.92c-11.56,0-20.93,9.37-20.93,20.93v232.01c0,11.56,9.37,20.93,20.93,20.93h450.72c11.56,0,20.93-9.37,20.93-20.93V66.02c0-11.56-9.37-20.93-20.93-20.93ZM211.25,212.37c0,7.55-6.12,13.66-13.66,13.66h-108.21c-7.55,0-13.66-6.12-13.66-13.66v-112.62c0-7.55,6.12-13.66,13.66-13.66h108.21c7.55,0,13.66,6.12,13.66,13.66v112.62Zm150.21-41.03h-94.5c-4.42,0-8-3.58-8-8s3.58-8,8-8h94.5c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm105.82,118.05H164.74c-4.42,0-8-3.58-8-8s3.58-8,8-8h302.55c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm-3.54-169.27h-196.7c-6.38,0-11.55-5.17-11.55-11.55s5.17-11.55,11.55-11.55h196.7c6.38,0,11.55,5.17,11.55,11.55s-5.17,11.55-11.55,11.55Zm-332.66,158.93c0,13.56-10.99,24.55-24.55,24.55s-24.55-10.99-24.55-24.55,10.99-24.55,24.55-24.55,24.55,10.99,24.55,24.55Z'/%3e%3c/g%3e%3crect%20class='cls-5'%20x='420.8'%20y='58.38'%20width='100.39'%20height='100.39'%20rx='20'%20ry='20'/%3e%3cg%20id='ciseaux-2'%20data-name='ciseaux'%3e%3cpath%20class='cls-4'%20d='m513.58,45.09H60.99c-11.05,0-20,8.95-20,20v233.88c0,11.05,8.95,20,20,20h452.59c11.05,0,20-8.95,20-20V65.09c0-11.05-8.95-20-20-20Z'/%3e%3c/g%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='84.02'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='109.3'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='133.13'%20r='7.02'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='m449.99,215.32c-.39,0-.76-.08-1.12-.24l-9.44-4.22c-.69-.31-1.23-.9-1.48-1.62-.25-.72-.18-1.52.17-2.19l3.92-7.33-13.25-5.79c-.83-.36-1.43-1.11-1.6-2.01s.11-1.81.76-2.45l40.08-40.08c.52-.52,1.21-.81,1.94-.81,1.52,0,2.75,1.23,2.75,2.75v57.58c0,.75-.3,1.45-.83,1.97-.52.5-1.2.78-1.91.78h0c-.38,0-.75-.08-1.1-.23l-12.85-5.61-3.53,7.87c-.44.99-1.43,1.62-2.51,1.62Z'/%3e%3cpath%20class='cls-1'%20d='m469.97,150.6c.38,0,.75.3.75.75v57.58c0,.43-.35.75-.75.75-.1,0-.2-.02-.3-.06l-13.99-6.11c-.1-.04-.2-.06-.3-.06-.29,0-.56.16-.68.44l-4.03,9c-.12.28-.4.44-.68.44-.1,0-.21-.02-.3-.07l-9.44-4.22c-.4-.18-.56-.65-.35-1.04l4.56-8.53c.21-.38.04-.86-.36-1.04l-14.5-6.33c-.48-.21-.6-.84-.23-1.21l40.08-40.08c.15-.15.34-.22.52-.22m0-4c-1.26,0-2.45.49-3.35,1.39l-40.08,40.08c-1.11,1.11-1.6,2.7-1.31,4.24.29,1.54,1.33,2.84,2.77,3.47l11.27,4.92-2.9,5.42c-.62,1.16-.73,2.53-.31,3.78.42,1.24,1.36,2.26,2.55,2.8l9.44,4.22c.61.27,1.27.41,1.94.41,1.87,0,3.57-1.1,4.33-2.81l2.72-6.06,11.04,4.82c.6.26,1.24.4,1.9.4,2.62,0,4.75-2.13,4.75-4.75v-57.58c0-2.62-2.13-4.75-4.75-4.75h0Z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M187.994%20193.875H108.563C103.268%20193.875%2098.878%20189.768%2098.5214%20184.484L90.1194%2059.0277H209.67L198.01%20184.741C197.529%20189.915%20193.19%20193.875%20187.99%20193.875H187.994Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M150.47%20150.31L164.483%20157.961C166.929%20159.296%20169.995%20158.395%20171.33%20155.95C171.999%20154.726%20172.106%20153.35%20171.742%20152.111C171.378%20150.872%20170.539%20149.773%20169.319%20149.103C167.223%20147.96%20166.638%20146.217%20166.954%20144.029C168.388%20134.186%20188.167%20115.393%20171.091%20102.13L162.134%2097.2392C141.741%2090.047%20136.626%20116.845%20129.121%20123.372C127.456%20124.824%20125.672%20125.273%20123.577%20124.126C121.131%20122.791%20118.065%20123.692%20116.73%20126.137C116.061%20127.358%20115.954%20128.736%20116.318%20129.976C116.682%20131.215%20117.521%20132.314%20118.741%20132.983L131.537%20139.97L132.751%20140.632L150.467%20150.306L150.47%20150.31Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.2'%20d='M171.095%20102.13L171.117%20102.144L171.095%20102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M171.095%20102.13L171.117%20102.141C171.187%20102.034%20171.253%20101.924%20171.315%20101.81C172.676%2099.3167%20171.76%2096.1913%20169.267%2094.8308C166.774%2093.4703%20163.649%2094.3895%20162.288%2096.8789C162.226%2096.9929%20162.167%2097.1068%20162.115%2097.2245L162.137%2097.2355L171.095%20102.126V102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M133.67%20142.455C138.56%20145.228%20143.451%20148%20148.341%20150.773C146.422%20154.365%20142.929%20156.483%20139.421%20156.23C138.921%20156.193%20136.292%20155.954%20134.328%20153.884C131.769%20151.188%20131.438%20146.563%20133.674%20142.459L133.67%20142.455Z'%20fill='%23AADAED'/%3e%3cpath%20d='M145.56%2088.6624C145.125%2086.8475%20143.302%2085.7288%20141.488%2086.1636C139.674%2086.5984%20138.556%2088.4221%20138.991%2090.2369L156.729%20164.233C157.164%20166.048%20158.987%20167.166%20160.801%20166.732C162.615%20166.297%20163.732%20164.473%20163.297%20162.658L145.56%2088.6624Z'%20fill='%232A9CC8'/%3e%3cpath%20d='M214.66%2037.9143H195.186L189.833%2028.707C187.068%2023.9526%20181.938%2021%20176.441%2021H125.492C120.44%2021%20115.693%2023.471%20112.796%2027.6149L105.592%2037.9143H85.1334C81.1916%2037.9143%2078%2041.1096%2078%2045.0477V46.592C78%2050.5338%2081.1953%2053.7254%2085.1334%2053.7254H214.66C218.602%2053.7254%20221.793%2050.5301%20221.793%2046.592V45.0477C221.793%2041.1059%20218.598%2037.9143%20214.66%2037.9143ZM122.437%2034.3586C123.132%2033.3621%20124.275%2032.7664%20125.489%2032.7664H176.437C177.761%2032.7664%20178.993%2033.4761%20179.658%2034.6196L181.574%2037.9143H119.947L122.433%2034.3586H122.437Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M187.064%2093.9335C187.56%2093.9777%20188.046%2093.7864%20188.542%2093.7313C189.038%2093.6761%20189.63%2093.8232%20189.822%2094.2828C190.108%2094.9778%20189.274%2095.6911%20189.369%2096.4376C189.424%2096.8604%20189.763%2097.1803%20190.079%2097.4635C190.719%2098.0334%20191.362%2098.607%20192.002%2099.177C192.164%2099.3204%20192.329%2099.4748%20192.384%2099.6807C192.454%2099.9307%20192.34%20100.192%20192.245%20100.434C191.829%20101.49%20191.789%20102.894%20192.723%20103.542C192.98%20103.722%20193.304%20103.828%20193.488%20104.086C193.693%20104.376%20193.66%20104.766%20193.605%20105.119C193.473%20105.994%20193.278%20106.858%20193.021%20107.708'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.681%20138.694C105.611%20140.003%20105.658%20141.562%20106.751%20142.29C106.993%20142.452%20107.276%20142.558%20107.493%20142.757C108.122%20143.331%20107.931%20144.353%20107.633%20145.151C107.335%20145.949%20106.982%20146.868%20107.409%20147.6C107.817%20148.298%20108.762%20148.493%20109.284%20149.111C109.813%20149.732%20109.828%20150.685%20110.387%20151.28C110.626%20151.534%20110.964%20151.721%20111.089%20152.049C111.189%20152.31%20111.126%20152.597%20111.126%20152.876C111.126%20153.63%20111.597%20154.321%20112.196%20154.781C112.796%20155.24%20113.516%20155.501%20114.226%20155.755'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", jt = /* @__PURE__ */ M(async () => await import("./AppAction.js")), Wt = /* @__PURE__ */ M(async () => await import("./Library.js")), Gt = /* @__PURE__ */ M(async () => await import("./ActionBarContainer.js")), Jt = /* @__PURE__ */ M(async () => await import("./DisableModal.js")), Xt = /* @__PURE__ */ M(async () => await import("./TrashModal.js")), Yt = /* @__PURE__ */ M(async () => await import("./OnboardingModal.js")), Fs = ({
1470
+ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M240.604%2031H54.6988C49.9309%2031%2046.0662%2034.8647%2046.0662%2039.6327V135.326C46.0662%20140.094%2049.9309%20143.959%2054.6988%20143.959H240.6C245.368%20143.959%20249.233%20140.094%20249.233%20135.326V39.6327C249.233%2034.8647%20245.368%2031%20240.6%2031H240.604ZM133.102%20115.945C133.102%20119.76%20130.009%20122.853%20126.194%20122.853H71.4939C67.6787%20122.853%2064.5853%20119.76%2064.5853%20115.945V59.0139C64.5853%2055.1987%2067.6787%2052.1053%2071.4939%2052.1053H126.198C130.013%2052.1053%20133.106%2055.1987%20133.106%2059.0139V115.945H133.102ZM235.745%20121.212H196.768C194.945%20121.212%20193.469%20119.735%20193.469%20117.912C193.469%20116.089%20194.945%20114.613%20196.768%20114.613H235.745C237.568%20114.613%20239.045%20116.089%20239.045%20117.912C239.045%20119.735%20237.568%20121.212%20235.745%20121.212ZM234.335%2061.9464H153.205C150.574%2061.9464%20148.441%2059.814%20148.441%2057.1826C148.441%2054.5511%20150.574%2052.4187%20153.205%2052.4187H234.335C236.966%2052.4187%20239.099%2054.5511%20239.099%2057.1826C239.099%2059.814%20236.966%2061.9464%20234.335%2061.9464Z'%20fill='%23FFEFE3'/%3e%3cmask%20id='mask0_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='154'%20y='81'%20width='24'%20height='8'%3e%3cpath%20d='M171.836%2088.8962L177.833%2081.7153H160.732L155.672%2087.7702L155.556%2087.7372L154.595%2088.8962H171.832H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3c/g%3e%3cpath%20d='M262.147%2088.8962H38.5883C36.6044%2088.8962%2035%2087.2876%2035%2085.3037C35%2083.3198%2036.6086%2081.7112%2038.5883%2081.7112H262.147C264.13%2081.7112%20265.735%2083.3198%20265.735%2085.3037C265.735%2087.2876%20264.126%2088.8962%20262.147%2088.8962Z'%20fill='%232A9CC8'/%3e%3cmask%20id='mask1_2657_113137'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='79'%20y='38'%20width='113'%20height='160'%3e%3cpath%20d='M79.5574%2038.317V197.586H191.959V38.317H79.5574ZM171.836%2088.8962H154.599L155.56%2087.7372L155.676%2087.7702L160.737%2081.7153H177.837L171.84%2088.8962H171.836Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask1_2657_113137)'%3e%3cpath%20d='M186.738%2051.2433C191.947%2055.6153%20192.627%2063.3818%20188.259%2068.5911L136.554%20130.5L127.121%20122.585L186.742%2051.2433H186.738Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.05'%20d='M139.12%20127.428L157.482%20105.44L155.878%2088.0011L138.819%20108.583L139.12%20127.428Z'%20fill='black'/%3e%3cpath%20d='M154.092%2039.1419C147.291%2039.1419%20141.78%2044.6564%20141.78%2051.4536L141.603%20132.113H153.915L154.092%2039.1377V39.1419Z'%20fill='%23AADAED'/%3e%3cpath%20d='M106.26%20128.43C112.071%20127.84%20117.61%20125.687%20122.395%20122.338C124.3%20121.006%20126.202%20119.669%20128.107%20118.337C129.122%20117.624%20130.52%20117.822%20131.296%20118.791C133.713%20121.798%20136.15%20124.656%20138.567%20127.667C138.815%20127.976%20139.021%20129.387%20138.464%20130.748C137.965%20131.973%20137.128%20132.237%20135.461%20134.023C134.954%20134.567%20134.517%20135.132%20133.642%20136.271C130.92%20139.801%20127.34%20146.174%20124.968%20149.927C122.42%20153.957%20120.114%20156.786%20118.889%20158.275C114.389%20163.752%20111.597%20167.155%20107.732%20169.308C101.257%20172.913%2090.2894%20173.841%2084.4325%20168.124C76.5134%20160.395%2081.3432%20143.88%2089.2335%20136.06C94.6119%20130.731%20101.236%20128.941%20106.264%20128.43H106.26ZM91.0937%20159.698C94.3892%20163.596%20103.595%20161.764%20108.804%20157.104C113.486%20152.913%20116.728%20144.837%20113.502%20140.944C110.281%20137.054%20101.743%20138.7%2096.7566%20142.556C91.1473%20146.895%2087.7775%20155.78%2091.0937%20159.702V159.698Z'%20fill='%23AADAED'/%3e%3cpath%20d='M165.558%20152.909C161.739%20148.492%20159.186%20143.121%20158.006%20137.401C157.536%20135.124%20157.07%20132.847%20156.6%20130.57C156.348%20129.354%20155.197%20128.541%20153.968%20128.71C150.145%20129.238%20146.412%20129.642%20142.589%20130.17C142.197%20130.224%20141.079%20131.107%20140.547%20132.48C140.068%20133.713%20140.497%20134.481%20140.481%20136.926C140.477%20137.669%20140.407%20138.382%20140.262%20139.809C139.821%20144.247%20138.047%20151.338%20137.194%20155.693C136.278%20160.374%20136.014%20164.016%20135.882%20165.938C135.391%20173.008%20135.086%20177.4%20136.422%20181.62C138.658%20188.689%20145.995%20196.889%20154.178%20196.753C165.245%20196.567%20173.069%20181.245%20172.702%20170.141C172.45%20162.573%20168.862%20156.724%20165.558%20152.905V152.909ZM155.123%20186.058C150.05%20186.631%20144.614%20178.976%20144.028%20172.01C143.5%20165.749%20146.688%20157.652%20151.704%20157.034C156.715%20156.415%20161.796%20163.476%20162.774%20169.7C163.875%20176.703%20160.225%20185.48%20155.123%20186.054V186.058Z'%20fill='%23AADAED'/%3e%3c/g%3e%3c/svg%3e", $t = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='version_orange'%20data-name='version%20orange'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20576%20353.36'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20.cls-2%20{%20fill:%20%23aadaed;%20}%20.cls-3%20{%20fill:%20%23ffefe3;%20}%20.cls-4%20{%20fill:%20none;%20stroke:%20%23aadaed;%20stroke-miterlimit:%2010;%20stroke-width:%204px;%20}%20.cls-5%20{%20fill:%20%232a9cc8;%20}%20%3c/style%3e%3c/defs%3e%3cg%20id='ciseaux'%3e%3cpath%20class='cls-3'%20d='m512.64,45.09H61.92c-11.56,0-20.93,9.37-20.93,20.93v232.01c0,11.56,9.37,20.93,20.93,20.93h450.72c11.56,0,20.93-9.37,20.93-20.93V66.02c0-11.56-9.37-20.93-20.93-20.93ZM211.25,212.37c0,7.55-6.12,13.66-13.66,13.66h-108.21c-7.55,0-13.66-6.12-13.66-13.66v-112.62c0-7.55,6.12-13.66,13.66-13.66h108.21c7.55,0,13.66,6.12,13.66,13.66v112.62Zm150.21-41.03h-94.5c-4.42,0-8-3.58-8-8s3.58-8,8-8h94.5c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm105.82,118.05H164.74c-4.42,0-8-3.58-8-8s3.58-8,8-8h302.55c4.42,0,8,3.58,8,8s-3.58,8-8,8Zm-3.54-169.27h-196.7c-6.38,0-11.55-5.17-11.55-11.55s5.17-11.55,11.55-11.55h196.7c6.38,0,11.55,5.17,11.55,11.55s-5.17,11.55-11.55,11.55Zm-332.66,158.93c0,13.56-10.99,24.55-24.55,24.55s-24.55-10.99-24.55-24.55,10.99-24.55,24.55-24.55,24.55,10.99,24.55,24.55Z'/%3e%3c/g%3e%3crect%20class='cls-5'%20x='420.8'%20y='58.38'%20width='100.39'%20height='100.39'%20rx='20'%20ry='20'/%3e%3cg%20id='ciseaux-2'%20data-name='ciseaux'%3e%3cpath%20class='cls-4'%20d='m513.58,45.09H60.99c-11.05,0-20,8.95-20,20v233.88c0,11.05,8.95,20,20,20h452.59c11.05,0,20-8.95,20-20V65.09c0-11.05-8.95-20-20-20Z'/%3e%3c/g%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='84.02'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='109.3'%20r='7.02'/%3e%3ccircle%20class='cls-1'%20cx='471'%20cy='133.13'%20r='7.02'/%3e%3cg%3e%3cpath%20class='cls-2'%20d='m449.99,215.32c-.39,0-.76-.08-1.12-.24l-9.44-4.22c-.69-.31-1.23-.9-1.48-1.62-.25-.72-.18-1.52.17-2.19l3.92-7.33-13.25-5.79c-.83-.36-1.43-1.11-1.6-2.01s.11-1.81.76-2.45l40.08-40.08c.52-.52,1.21-.81,1.94-.81,1.52,0,2.75,1.23,2.75,2.75v57.58c0,.75-.3,1.45-.83,1.97-.52.5-1.2.78-1.91.78h0c-.38,0-.75-.08-1.1-.23l-12.85-5.61-3.53,7.87c-.44.99-1.43,1.62-2.51,1.62Z'/%3e%3cpath%20class='cls-1'%20d='m469.97,150.6c.38,0,.75.3.75.75v57.58c0,.43-.35.75-.75.75-.1,0-.2-.02-.3-.06l-13.99-6.11c-.1-.04-.2-.06-.3-.06-.29,0-.56.16-.68.44l-4.03,9c-.12.28-.4.44-.68.44-.1,0-.21-.02-.3-.07l-9.44-4.22c-.4-.18-.56-.65-.35-1.04l4.56-8.53c.21-.38.04-.86-.36-1.04l-14.5-6.33c-.48-.21-.6-.84-.23-1.21l40.08-40.08c.15-.15.34-.22.52-.22m0-4c-1.26,0-2.45.49-3.35,1.39l-40.08,40.08c-1.11,1.11-1.6,2.7-1.31,4.24.29,1.54,1.33,2.84,2.77,3.47l11.27,4.92-2.9,5.42c-.62,1.16-.73,2.53-.31,3.78.42,1.24,1.36,2.26,2.55,2.8l9.44,4.22c.61.27,1.27.41,1.94.41,1.87,0,3.57-1.1,4.33-2.81l2.72-6.06,11.04,4.82c.6.26,1.24.4,1.9.4,2.62,0,4.75-2.13,4.75-4.75v-57.58c0-2.62-2.13-4.75-4.75-4.75h0Z'/%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%200%20300%20214'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='214'%20fill='white'/%3e%3cpath%20d='M187.994%20193.875H108.563C103.268%20193.875%2098.878%20189.768%2098.5214%20184.484L90.1194%2059.0277H209.67L198.01%20184.741C197.529%20189.915%20193.19%20193.875%20187.99%20193.875H187.994Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M150.47%20150.31L164.483%20157.961C166.929%20159.296%20169.995%20158.395%20171.33%20155.95C171.999%20154.726%20172.106%20153.35%20171.742%20152.111C171.378%20150.872%20170.539%20149.773%20169.319%20149.103C167.223%20147.96%20166.638%20146.217%20166.954%20144.029C168.388%20134.186%20188.167%20115.393%20171.091%20102.13L162.134%2097.2392C141.741%2090.047%20136.626%20116.845%20129.121%20123.372C127.456%20124.824%20125.672%20125.273%20123.577%20124.126C121.131%20122.791%20118.065%20123.692%20116.73%20126.137C116.061%20127.358%20115.954%20128.736%20116.318%20129.976C116.682%20131.215%20117.521%20132.314%20118.741%20132.983L131.537%20139.97L132.751%20140.632L150.467%20150.306L150.47%20150.31Z'%20fill='%23AADAED'/%3e%3cpath%20opacity='0.2'%20d='M171.095%20102.13L171.117%20102.144L171.095%20102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M171.095%20102.13L171.117%20102.141C171.187%20102.034%20171.253%20101.924%20171.315%20101.81C172.676%2099.3167%20171.76%2096.1913%20169.267%2094.8308C166.774%2093.4703%20163.649%2094.3895%20162.288%2096.8789C162.226%2096.9929%20162.167%2097.1068%20162.115%2097.2245L162.137%2097.2355L171.095%20102.126V102.13Z'%20fill='%23AADAED'/%3e%3cpath%20d='M133.67%20142.455C138.56%20145.228%20143.451%20148%20148.341%20150.773C146.422%20154.365%20142.929%20156.483%20139.421%20156.23C138.921%20156.193%20136.292%20155.954%20134.328%20153.884C131.769%20151.188%20131.438%20146.563%20133.674%20142.459L133.67%20142.455Z'%20fill='%23AADAED'/%3e%3cpath%20d='M145.56%2088.6624C145.125%2086.8475%20143.302%2085.7288%20141.488%2086.1636C139.674%2086.5984%20138.556%2088.4221%20138.991%2090.2369L156.729%20164.233C157.164%20166.048%20158.987%20167.166%20160.801%20166.732C162.615%20166.297%20163.732%20164.473%20163.297%20162.658L145.56%2088.6624Z'%20fill='%232A9CC8'/%3e%3cpath%20d='M214.66%2037.9143H195.186L189.833%2028.707C187.068%2023.9526%20181.938%2021%20176.441%2021H125.492C120.44%2021%20115.693%2023.471%20112.796%2027.6149L105.592%2037.9143H85.1334C81.1916%2037.9143%2078%2041.1096%2078%2045.0477V46.592C78%2050.5338%2081.1953%2053.7254%2085.1334%2053.7254H214.66C218.602%2053.7254%20221.793%2050.5301%20221.793%2046.592V45.0477C221.793%2041.1059%20218.598%2037.9143%20214.66%2037.9143ZM122.437%2034.3586C123.132%2033.3621%20124.275%2032.7664%20125.489%2032.7664H176.437C177.761%2032.7664%20178.993%2033.4761%20179.658%2034.6196L181.574%2037.9143H119.947L122.433%2034.3586H122.437Z'%20fill='%23FFEFE3'/%3e%3cpath%20d='M187.064%2093.9335C187.56%2093.9777%20188.046%2093.7864%20188.542%2093.7313C189.038%2093.6761%20189.63%2093.8232%20189.822%2094.2828C190.108%2094.9778%20189.274%2095.6911%20189.369%2096.4376C189.424%2096.8604%20189.763%2097.1803%20190.079%2097.4635C190.719%2098.0334%20191.362%2098.607%20192.002%2099.177C192.164%2099.3204%20192.329%2099.4748%20192.384%2099.6807C192.454%2099.9307%20192.34%20100.192%20192.245%20100.434C191.829%20101.49%20191.789%20102.894%20192.723%20103.542C192.98%20103.722%20193.304%20103.828%20193.488%20104.086C193.693%20104.376%20193.66%20104.766%20193.605%20105.119C193.473%20105.994%20193.278%20106.858%20193.021%20107.708'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M105.681%20138.694C105.611%20140.003%20105.658%20141.562%20106.751%20142.29C106.993%20142.452%20107.276%20142.558%20107.493%20142.757C108.122%20143.331%20107.931%20144.353%20107.633%20145.151C107.335%20145.949%20106.982%20146.868%20107.409%20147.6C107.817%20148.298%20108.762%20148.493%20109.284%20149.111C109.813%20149.732%20109.828%20150.685%20110.387%20151.28C110.626%20151.534%20110.964%20151.721%20111.089%20152.049C111.189%20152.31%20111.126%20152.597%20111.126%20152.876C111.126%20153.63%20111.597%20154.321%20112.196%20154.781C112.796%20155.24%20113.516%20155.501%20114.226%20155.755'%20stroke='white'%20stroke-width='6.05'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", jt = /* @__PURE__ */ A(async () => await import("./AppAction.js")), Wt = /* @__PURE__ */ A(async () => await import("./Library.js")), Gt = /* @__PURE__ */ A(async () => await import("./ActionBarContainer.js")), Jt = /* @__PURE__ */ A(async () => await import("./DisableModal.js")), Xt = /* @__PURE__ */ A(async () => await import("./TrashModal.js")), Yt = /* @__PURE__ */ A(async () => await import("./OnboardingModal.js")), Fs = ({
1464
1471
  config: e
1465
1472
  }) => {
1466
- const t = A(), {
1473
+ const t = N(), {
1467
1474
  setConfig: s,
1468
1475
  setSearchParams: r
1469
1476
  } = R();
1470
- B(() => {
1477
+ V(() => {
1471
1478
  s(e || {}), r({
1472
1479
  ...t,
1473
1480
  application: e.app,
@@ -1476,37 +1483,37 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
1476
1483
  }, [e]);
1477
1484
  const {
1478
1485
  currentApp: o
1479
- } = Z(), {
1486
+ } = O(), {
1480
1487
  data: l
1481
1488
  } = St(e.actions), {
1482
- isTrashedModalOpen: a,
1483
- onTrashedCancel: c
1489
+ isTrashedModalOpen: c,
1490
+ onTrashedCancel: n
1484
1491
  } = It(), {
1485
- isActionDisableModalOpen: p,
1492
+ isActionDisableModalOpen: f,
1486
1493
  onActionDisableCancel: d
1487
1494
  } = Ct(), {
1488
1495
  handleDragEnd: i,
1489
1496
  handleDragOver: h,
1490
1497
  handleDragStart: u,
1491
- sensors: g
1498
+ sensors: p
1492
1499
  } = Ft();
1493
1500
  _e();
1494
- const m = ne("publish", l), I = ne("create", l);
1501
+ const g = ae("publish", l), I = ae("create", l);
1495
1502
  return e && /* @__PURE__ */ b(W, { children: [
1496
- /* @__PURE__ */ n(Ke, { render: () => I ? /* @__PURE__ */ n(Q, { fallback: /* @__PURE__ */ n(H, {}), children: /* @__PURE__ */ n(jt, { onResourceCreated: e.onResourceCreated }) }) : null, children: /* @__PURE__ */ n($e, { app: o }) }),
1497
- /* @__PURE__ */ n(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors: g, modifiers: [Fe], onDragStart: u, onDragEnd: i, onDragOver: h, children: [
1498
- /* @__PURE__ */ n(te.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ n(H, {}), children: [
1499
- /* @__PURE__ */ n(Vt, {}),
1500
- m && /* @__PURE__ */ n(Wt, {})
1503
+ /* @__PURE__ */ a(Ke, { render: () => I ? /* @__PURE__ */ a(Q, { fallback: /* @__PURE__ */ a(H, {}), children: /* @__PURE__ */ a(jt, { onResourceCreated: e.onResourceCreated }) }) : null, children: /* @__PURE__ */ a($e, { app: o }) }),
1504
+ /* @__PURE__ */ a(te, { className: "flex-grow-1", children: /* @__PURE__ */ b(Te, { sensors: p, modifiers: [Fe], onDragStart: u, onDragEnd: i, onDragOver: h, children: [
1505
+ /* @__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: [
1506
+ /* @__PURE__ */ a(Vt, {}),
1507
+ g && /* @__PURE__ */ a(Wt, {})
1501
1508
  ] }) }),
1502
1509
  /* @__PURE__ */ b(te.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
1503
- /* @__PURE__ */ n(Ot, {}),
1504
- /* @__PURE__ */ n(_t, {}),
1505
- /* @__PURE__ */ n(kt, {})
1510
+ /* @__PURE__ */ a(Ot, {}),
1511
+ /* @__PURE__ */ a(_t, {}),
1512
+ /* @__PURE__ */ a(kt, {})
1506
1513
  ] }),
1507
- /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ n(H, {}), children: [
1508
- /* @__PURE__ */ n(Gt, {}),
1509
- e.enableOnboarding && /* @__PURE__ */ n(Yt, { id: "showOnboardingTrash", items: [{
1514
+ /* @__PURE__ */ b(Q, { fallback: /* @__PURE__ */ a(H, {}), children: [
1515
+ /* @__PURE__ */ a(Gt, {}),
1516
+ e.enableOnboarding && /* @__PURE__ */ a(Yt, { id: "showOnboardingTrash", items: [{
1510
1517
  src: $t,
1511
1518
  alt: "explorer.modal.onboarding.trash.screen1.alt",
1512
1519
  text: "explorer.modal.onboarding.trash.screen1.title"
@@ -1524,8 +1531,8 @@ const Kt = "data:image/svg+xml,%3csvg%20width='300'%20height='214'%20viewBox='0%
1524
1531
  nextText: "explorer.modal.onboarding.trash.next",
1525
1532
  closeText: "explorer.modal.onboarding.trash.close"
1526
1533
  } }),
1527
- a && /* @__PURE__ */ n(Xt, { isOpen: a, onCancel: c }),
1528
- p && /* @__PURE__ */ n(Jt, { isOpen: p, onCancel: d })
1534
+ c && /* @__PURE__ */ a(Xt, { isOpen: c, onCancel: n }),
1535
+ f && /* @__PURE__ */ a(Jt, { isOpen: f, onCancel: d })
1529
1536
  ] })
1530
1537
  ] }) })
1531
1538
  ] });
@@ -1539,21 +1546,21 @@ export {
1539
1546
  St as b,
1540
1547
  z as c,
1541
1548
  Ts as d,
1542
- A as e,
1549
+ N as e,
1543
1550
  re as f,
1544
1551
  ds as g,
1545
1552
  X as h,
1546
- fs as i,
1547
- ps as j,
1553
+ ps as i,
1554
+ fs as j,
1548
1555
  J as k,
1549
1556
  Cs as l,
1550
- pt as m,
1557
+ ft as m,
1551
1558
  ws as n,
1552
1559
  gs as o,
1553
1560
  us as p,
1554
1561
  Ss as q,
1555
1562
  bs as r,
1556
- ft as s,
1563
+ pt as s,
1557
1564
  Ds as t,
1558
1565
  T as u,
1559
1566
  xs as v,