ode-explorer 1.4.8 → 1.4.9

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/Library.js CHANGED
@@ -11,7 +11,7 @@ const y = () => {
11
11
  return t && /* @__PURE__ */ i("div", { className: "p-16", children: [
12
12
  /* @__PURE__ */ r(p, { width: "270", height: "140", loading: "lazy", className: "rounded", src: `${l}/${a == null ? void 0 : a.bootstrapVersion}/image-library.svg`, alt: e("explorer.libray.img.alt") }),
13
13
  /* @__PURE__ */ r("p", { className: "m-8", children: e("explorer.libray.title") }),
14
- /* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer", className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
14
+ /* @__PURE__ */ i("a", { href: t, target: "_blank", rel: "noreferrer", className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8", children: [
15
15
  /* @__PURE__ */ r("span", { children: e("explorer.libray.btn") }),
16
16
  /* @__PURE__ */ r(s, {})
17
17
  ] })
package/lib/MoveModal.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as h, jsx as l } from "react/jsx-runtime";
2
2
  import { Modal as a, TreeView as T, Button as I } from "@edifice-ui/react";
3
- import { createPortal as M } from "react-dom";
4
- import { useTranslation as y } from "react-i18next";
3
+ import { createPortal as y } from "react-dom";
4
+ import { useTranslation as M } from "react-i18next";
5
5
  import { useState as b } from "react";
6
6
  import { useQueryClient as x } from "@tanstack/react-query";
7
- import { w as F, j as w, i as S, u as g, x as j } from "./index2.js";
7
+ import { x as F, j as S, i as w, u as g, y as j } from "./index2.js";
8
8
  import "@edifice-ui/icons";
9
9
  import "edifice-ts-client";
10
10
  import "i18next";
@@ -12,7 +12,7 @@ import "zustand";
12
12
  function B({
13
13
  onSuccess: n
14
14
  }) {
15
- const [d, t] = b(), r = F(), i = w(), m = S(), {
15
+ const [d, t] = b(), r = F(), i = S(), m = w(), {
16
16
  foldTreeItem: s,
17
17
  unfoldTreeItem: c
18
18
  } = g(), f = x();
@@ -54,7 +54,7 @@ function z({
54
54
  }) {
55
55
  const {
56
56
  t: r
57
- } = y(), {
57
+ } = M(), {
58
58
  handleTreeItemFold: i,
59
59
  handleTreeItemSelect: m,
60
60
  handleTreeItemUnfold: s,
@@ -63,7 +63,7 @@ function z({
63
63
  } = B({
64
64
  onSuccess: d
65
65
  }), u = j();
66
- return /* @__PURE__ */ M(/* @__PURE__ */ h(a, { isOpen: n, onModalClose: t, id: "moveModal", children: [
66
+ return /* @__PURE__ */ y(/* @__PURE__ */ h(a, { isOpen: n, onModalClose: t, id: "moveModal", children: [
67
67
  /* @__PURE__ */ l(a.Header, { onModalClose: t, children: r("explorer.move.title") }),
68
68
  /* @__PURE__ */ l(a.Subtitle, { children: r("explorer.move.subtitle") }),
69
69
  /* @__PURE__ */ l(a.Body, { children: /* @__PURE__ */ l(T, { data: u, onTreeItemSelect: m, onTreeItemFold: i, onTreeItemUnfold: s }) }),
@@ -1,113 +1,249 @@
1
- import { jsx as i, jsxs as n, Fragment as M } from "react/jsx-runtime";
2
- import S, { useCallback as O } from "react";
3
- import { Card as c, Image as B, AppIcon as $, Avatar as D, Tooltip as y, useOdeClient as G, useDate as L, Button as U } from "@edifice-ui/react";
4
- import { useSpring as q, animated as T } from "@react-spring/web";
5
- import E from "clsx";
6
- import { useTranslation as F } from "react-i18next";
7
- import { Users as H, Globe as J } from "@edifice-ui/icons";
8
- import { OneProfile as K } from "@edifice-ui/icons/nav";
9
- import { d as Q, h as V, i as W, u as X, e as Y } from "./index2.js";
1
+ import { jsx as s, jsxs as g, Fragment as J } from "react/jsx-runtime";
2
+ import F, { useCallback as q } from "react";
3
+ import { Card as j, Image as C, AppIcon as B, Avatar as G, Tooltip as I, useOdeClient as U, Button as K } from "@edifice-ui/react";
4
+ import { useSpring as Q, animated as z } from "@react-spring/web";
5
+ import V from "clsx";
6
+ import { useTranslation as A } from "react-i18next";
7
+ import { Users as W, Globe as X } from "@edifice-ui/icons";
8
+ import { OneProfile as Z } from "@edifice-ui/icons/nav";
9
+ import b from "dayjs";
10
+ import { d as ee, h as te, i as ne, u as oe, e as ae } from "./index2.js";
10
11
  import "edifice-ts-client";
11
12
  import "i18next";
12
13
  import "zustand";
13
14
  import "@tanstack/react-query";
14
- const C = ({
15
+ const P = ({
15
16
  app: a,
16
17
  resource: t,
17
- time: f,
18
- isSelected: x = !1,
19
- isSelectable: u = !0,
20
- onClick: d,
21
- onSelect: s
18
+ time: i,
19
+ isSelected: n = !1,
20
+ isSelectable: d = !0,
21
+ onClick: o,
22
+ onSelect: e
22
23
  }) => {
23
- const o = `/userbook/avatar/${t == null ? void 0 : t.creatorId}`;
24
- function m(l) {
24
+ const p = `/userbook/avatar/${t == null ? void 0 : t.creatorId}`;
25
+ function l(h) {
25
26
  const {
26
27
  rights: v,
27
- creatorId: N
28
- } = l || {};
29
- return v.filter((I) => !I.includes(N)).length >= 1;
28
+ creatorId: Y
29
+ } = h || {};
30
+ return v.filter((y) => !y.includes(Y)).length >= 1;
30
31
  }
31
- const r = m(t), R = t == null ? void 0 : t.public, {
32
- t: g
33
- } = F();
34
- return /* @__PURE__ */ i(c, { app: a, isSelected: x, isSelectable: u, onClick: d, onSelect: s, children: (l) => /* @__PURE__ */ n(M, { children: [
35
- /* @__PURE__ */ n(c.Body, { children: [
36
- /* @__PURE__ */ i("div", { className: "card-image medium", children: t != null && t.thumbnail ? /* @__PURE__ */ i(B, { alt: "", src: `${t == null ? void 0 : t.thumbnail}?thumbnail=80x80`, objectFit: "cover", className: "h-full w-100" }) : /* @__PURE__ */ i($, { app: a, iconFit: "ratio", size: "80", variant: "rounded" }) }),
37
- /* @__PURE__ */ n("div", { className: "text-truncate", children: [
38
- /* @__PURE__ */ i(c.Title, { children: t == null ? void 0 : t.name }),
39
- /* @__PURE__ */ i(c.Text, { children: /* @__PURE__ */ i("em", { children: f }) })
32
+ const r = l(t), _ = t == null ? void 0 : t.public, {
33
+ t: m
34
+ } = A();
35
+ return /* @__PURE__ */ s(j, { app: a, isSelected: n, isSelectable: d, onClick: o, onSelect: e, children: (h) => /* @__PURE__ */ g(J, { children: [
36
+ /* @__PURE__ */ g(j.Body, { children: [
37
+ /* @__PURE__ */ s("div", { className: "card-image medium", children: t != null && t.thumbnail ? /* @__PURE__ */ s(C, { alt: "", src: t == null ? void 0 : t.thumbnail, objectFit: "cover", className: "h-full w-100" }) : /* @__PURE__ */ s(B, { app: a, iconFit: "ratio", size: "80", variant: "rounded" }) }),
38
+ /* @__PURE__ */ g("div", { className: "text-truncate", children: [
39
+ /* @__PURE__ */ s(j.Title, { children: t == null ? void 0 : t.name }),
40
+ /* @__PURE__ */ s(j.Text, { children: /* @__PURE__ */ s("em", { children: i }) })
40
41
  ] })
41
42
  ] }),
42
- /* @__PURE__ */ n(c.Footer, { children: [
43
- /* @__PURE__ */ n("div", { className: "d-inline-flex align-items-center gap-8 text-truncate", children: [
44
- o ? /* @__PURE__ */ i(D, { alt: (t == null ? void 0 : t.creatorName) || "", size: "xs", src: o, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ i(K, {}),
45
- /* @__PURE__ */ i(c.Text, { children: t == null ? void 0 : t.creatorName })
43
+ /* @__PURE__ */ g(j.Footer, { children: [
44
+ /* @__PURE__ */ g("div", { className: "d-inline-flex align-items-center gap-8 text-truncate", children: [
45
+ p ? /* @__PURE__ */ s(G, { alt: (t == null ? void 0 : t.creatorName) || "", size: "xs", src: p, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ s(Z, {}),
46
+ /* @__PURE__ */ s(j.Text, { children: t == null ? void 0 : t.creatorName })
46
47
  ] }),
47
- /* @__PURE__ */ n("div", { className: "d-inline-flex align-items-center gap-8", children: [
48
- r && /* @__PURE__ */ i(y, { message: g("tooltip.shared", {
49
- ns: l
50
- }), placement: "top", children: /* @__PURE__ */ i(H, { width: 16, height: 16 }) }),
51
- R && /* @__PURE__ */ i(y, { message: g("tooltip.public", {
52
- ns: l
53
- }), placement: "top", children: /* @__PURE__ */ i(J, { width: 16, height: 16 }) })
48
+ /* @__PURE__ */ g("div", { className: "d-inline-flex align-items-center gap-8", children: [
49
+ r && /* @__PURE__ */ s(I, { message: m("tooltip.shared", {
50
+ ns: h
51
+ }), placement: "top", children: /* @__PURE__ */ s(W, { width: 16, height: 16 }) }),
52
+ _ && /* @__PURE__ */ s(I, { message: m("tooltip.public", {
53
+ ns: h
54
+ }), placement: "top", children: /* @__PURE__ */ s(X, { width: 16, height: 16 }) })
54
55
  ] })
55
56
  ] })
56
57
  ] }) });
57
58
  };
58
- C.displayName = "ResourceCard";
59
- const rt = ({
59
+ P.displayName = "ResourceCard";
60
+ var x = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
61
+ function ie(a) {
62
+ return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
63
+ }
64
+ var w = { exports: {} }, Ye = w.exports;
65
+ (function(a, t) {
66
+ (function(i, n) {
67
+ a.exports = n();
68
+ })(x, function() {
69
+ "use strict";
70
+ return function(i, n, d) {
71
+ i = i || {};
72
+ var o = n.prototype, e = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
73
+ function p(r, _, m, h) {
74
+ return o.fromToBase(r, _, m, h);
75
+ }
76
+ d.en.relativeTime = e, o.fromToBase = function(r, _, m, h, v) {
77
+ for (var Y, M, y, L = m.$locale().relativeTime || e, T = i.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], $ = T.length, u = 0; u < $; u += 1) {
78
+ var f = T[u];
79
+ f.d && (Y = h ? d(r).diff(m, f.d, !0) : m.diff(r, f.d, !0));
80
+ var c = (i.rounding || Math.round)(Math.abs(Y));
81
+ if (y = Y > 0, c <= f.r || !f.r) {
82
+ c <= 1 && u > 0 && (f = T[u - 1]);
83
+ var S = L[f.l];
84
+ v && (c = v("" + c)), M = typeof S == "string" ? S.replace("%d", c) : S(c, _, f.l, y);
85
+ break;
86
+ }
87
+ }
88
+ if (_)
89
+ return M;
90
+ var D = y ? L.future : L.past;
91
+ return typeof D == "function" ? D(M) : D.replace("%s", M);
92
+ }, o.to = function(r, _) {
93
+ return p(r, _, this, !0);
94
+ }, o.from = function(r, _) {
95
+ return p(r, _, this);
96
+ };
97
+ var l = function(r) {
98
+ return r.$u ? d.utc() : d();
99
+ };
100
+ o.toNow = function(r) {
101
+ return this.to(l(this), r);
102
+ }, o.fromNow = function(r) {
103
+ return this.from(l(this), r);
104
+ };
105
+ };
106
+ });
107
+ })(w, w.exports);
108
+ var re = w.exports;
109
+ const se = /* @__PURE__ */ ie(re);
110
+ var H = { exports: {} }, je = H.exports;
111
+ (function(a, t) {
112
+ (function(i, n) {
113
+ a.exports = n(b);
114
+ })(x, function(i) {
115
+ "use strict";
116
+ function n(l) {
117
+ return l && typeof l == "object" && "default" in l ? l : { default: l };
118
+ }
119
+ var d = n(i), o = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
120
+ function e(l, r, _) {
121
+ var m = o[_];
122
+ return Array.isArray(m) && (m = m[r ? 0 : 1]), m.replace("%d", l);
123
+ }
124
+ var p = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(l) {
125
+ return l + ".";
126
+ }, weekStart: 1, yearStart: 4, formats: { LTS: "HH:mm:ss", LT: "HH:mm", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, relativeTime: { future: "in %s", past: "vor %s", s: e, m: e, mm: e, h: e, hh: e, d: e, dd: e, M: e, MM: e, y: e, yy: e } };
127
+ return d.default.locale(p, null, !0), p;
128
+ });
129
+ })(H, H.exports);
130
+ var xe = H.exports;
131
+ var k = { exports: {} }, Le = k.exports;
132
+ (function(a, t) {
133
+ (function(i, n) {
134
+ a.exports = n(b);
135
+ })(x, function(i) {
136
+ "use strict";
137
+ function n(e) {
138
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
139
+ }
140
+ var d = n(i), o = { name: "es", monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"), months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), weekStart: 1, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un día", dd: "%d días", M: "un mes", MM: "%d meses", y: "un año", yy: "%d años" }, ordinal: function(e) {
141
+ return e + "º";
142
+ } };
143
+ return d.default.locale(o, null, !0), o;
144
+ });
145
+ })(k, k.exports);
146
+ var Te = k.exports;
147
+ var N = { exports: {} }, Se = N.exports;
148
+ (function(a, t) {
149
+ (function(i, n) {
150
+ a.exports = n(b);
151
+ })(x, function(i) {
152
+ "use strict";
153
+ function n(e) {
154
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
155
+ }
156
+ var d = n(i), o = { name: "pt", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sab".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(e) {
157
+ return e + "º";
158
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "alguns segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } };
159
+ return d.default.locale(o, null, !0), o;
160
+ });
161
+ })(N, N.exports);
162
+ var De = N.exports;
163
+ var O = { exports: {} }, we = O.exports;
164
+ (function(a, t) {
165
+ (function(i, n) {
166
+ a.exports = n(b);
167
+ })(x, function(i) {
168
+ "use strict";
169
+ function n(e) {
170
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
171
+ }
172
+ var d = n(i), o = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(e) {
173
+ return "" + e + (e === 1 ? "er" : "");
174
+ } };
175
+ return d.default.locale(o, null, !0), o;
176
+ });
177
+ })(O, O.exports);
178
+ var He = O.exports;
179
+ var R = { exports: {} }, ke = R.exports;
180
+ (function(a, t) {
181
+ (function(i, n) {
182
+ a.exports = n(b);
183
+ })(x, function(i) {
184
+ "use strict";
185
+ function n(e) {
186
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
187
+ }
188
+ var d = n(i), o = { name: "it", weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e) {
189
+ return e + "º";
190
+ } };
191
+ return d.default.locale(o, null, !0), o;
192
+ });
193
+ })(R, R.exports);
194
+ var Ne = R.exports;
195
+ b.extend(se);
196
+ const Oe = ({
60
197
  data: a,
61
198
  fetchNextPage: t
62
199
  }) => {
63
200
  const {
64
- currentApp: f
65
- } = G(), {
66
- t: x
67
- } = F(), {
68
- fromNow: u
69
- } = L(), d = Q(), s = V(), o = W(), {
70
- setSelectedResources: m,
201
+ currentApp: i,
202
+ currentLanguage: n
203
+ } = U(), {
204
+ t: d
205
+ } = A(), o = ee(), e = te(), p = ne(), {
206
+ setSelectedResources: l,
71
207
  setResourceIds: r,
72
- openResource: R,
73
- setResourceIsTrash: g
74
- } = X(), l = Y(), v = q({
208
+ openResource: _,
209
+ setResourceIsTrash: m
210
+ } = oe(), h = ae(), v = Q({
75
211
  from: {
76
212
  opacity: 0
77
213
  },
78
214
  to: {
79
215
  opacity: 1
80
216
  }
81
- }), b = d.pagination.startIdx + d.pagination.pageSize < (d.pagination.maxIdx || 0), I = O(() => {
217
+ }), M = o.pagination.startIdx + o.pagination.pageSize < (o.pagination.maxIdx || 0), y = q(() => {
82
218
  t();
83
- }, []), k = (e) => {
84
- l ? (g(!0), r([e.id]), m([e])) : R(e);
219
+ }, []), L = (u) => {
220
+ h ? (m(!0), r([u.id]), l([u])) : _(u);
85
221
  };
86
- async function w(e) {
87
- if (s.includes(e.id)) {
88
- r(s.filter((h) => h !== e.id)), m(o.filter((h) => h.id !== e.id));
222
+ async function T(u) {
223
+ if (e.includes(u.id)) {
224
+ r(e.filter((f) => f !== u.id)), l(p.filter((f) => f.id !== u.id));
89
225
  return;
90
226
  }
91
- r([...s, e.id]), m([...o, e]);
227
+ r([...e, u.id]), l([...p, u]);
92
228
  }
93
- const A = E("grid ps-0 list-unstyled");
94
- return /* @__PURE__ */ n(S.Fragment, { children: [
95
- /* @__PURE__ */ i(T.ul, { className: A, children: a == null ? void 0 : a.pages.map((e, h) => (
229
+ const $ = V("grid ps-0 list-unstyled");
230
+ return /* @__PURE__ */ g(F.Fragment, { children: [
231
+ /* @__PURE__ */ s(z.ul, { className: $, children: a == null ? void 0 : a.pages.map((u, f) => (
96
232
  // eslint-disable-next-line react/no-array-index-key
97
- /* @__PURE__ */ i(S.Fragment, { children: e.resources.map((p) => {
233
+ /* @__PURE__ */ s(F.Fragment, { children: u.resources.map((c) => {
98
234
  const {
99
- id: P,
100
- updatedAt: z
101
- } = p, j = u(z);
102
- return /* @__PURE__ */ i(T.li, { className: "g-col-4 z-1", style: {
235
+ id: S,
236
+ updatedAt: D
237
+ } = c, E = b(D).locale(n).fromNow();
238
+ return /* @__PURE__ */ s(z.li, { className: "g-col-4 z-1", style: {
103
239
  position: "relative",
104
240
  ...v
105
- }, children: /* @__PURE__ */ i(C, { app: f, resource: p, time: j, isSelectable: !0, isSelected: s.includes(p.id), onClick: () => k(p), onSelect: () => w(p) }) }, P);
106
- }) }, h)
241
+ }, children: /* @__PURE__ */ s(P, { app: i, resource: c, time: E, isSelectable: !0, isSelected: e.includes(c.id), onClick: () => L(c), onSelect: () => T(c) }) }, S);
242
+ }) }, f)
107
243
  )) }),
108
- b && /* @__PURE__ */ i("div", { className: "d-grid gap-2 col-4 mx-auto my-24", children: /* @__PURE__ */ i(U, { type: "button", color: "secondary", variant: "filled", onClick: I, children: x("explorer.see.more") }) })
244
+ M && /* @__PURE__ */ s("div", { className: "d-grid gap-2 col-4 mx-auto my-24", children: /* @__PURE__ */ s(K, { type: "button", color: "secondary", variant: "filled", onClick: y, children: d("explorer.see.more") }) })
109
245
  ] });
110
246
  };
111
247
  export {
112
- rt as default
248
+ Oe as default
113
249
  };
@@ -5,7 +5,7 @@ export default function useActionBar(): {
5
5
  selectedElement: (import("edifice-ts-client").IFolder | import("edifice-ts-client").IResource)[];
6
6
  currentFolderId: string | undefined;
7
7
  overrideLabel: (action: IAction) => string;
8
- handleClick: (action: IAction) => Promise<void>;
8
+ handleClick: (action: IAction) => Promise<void | null>;
9
9
  isActivable: (action: IAction) => boolean;
10
10
  isActionBarOpen: boolean;
11
11
  isMoveModalOpen: boolean;
@@ -26,8 +26,5 @@ export default function useActionBar(): {
26
26
  isShareResourceOpen: boolean;
27
27
  onShareResourceCancel: () => void;
28
28
  onShareResourceSuccess: () => void;
29
- isExportModalOpen: boolean;
30
- onExportCancel: () => void;
31
- onExportSuccess: () => void;
32
29
  onClearActionBar: () => void;
33
30
  };