@opencloud-eu/web-pkg 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{TextEditor-B0ZZfO_w.js → TextEditor-CTRIgoeG.js} +1 -1
  2. package/dist/assets/worker-Bv-mZ-VL.js +25 -0
  3. package/dist/assets/worker-Dx2ttEp-.js +25 -0
  4. package/dist/assets/worker-nUcRt7qV.js +25 -0
  5. package/dist/{composables-TkULFBg4.js → composables-CAlEpA5b.js} +2457 -2450
  6. package/dist/src/components/AppBar/AppBar.vue.d.ts +34 -91
  7. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -9
  8. package/dist/src/components/AppTopBar.vue.d.ts +3 -11
  9. package/dist/src/components/Avatars/UserAvatar.vue.d.ts +1 -9
  10. package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +1 -9
  11. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +9 -27
  12. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +15 -125
  13. package/dist/src/components/CreateLinkModal.vue.d.ts +6 -14
  14. package/dist/src/components/CreateShortcutModal.vue.d.ts +19 -133
  15. package/dist/src/components/CustomComponentTarget.vue.d.ts +1 -9
  16. package/dist/src/components/FilesList/ContextActions.vue.d.ts +9 -27
  17. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -17
  18. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +1 -9
  19. package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +5 -12
  20. package/dist/src/components/FilesList/ResourceName.vue.d.ts +3 -9
  21. package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -9
  22. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +8 -16
  23. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +6 -14
  24. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +7 -15
  25. package/dist/src/components/Filters/DateFilter.vue.d.ts +5 -13
  26. package/dist/src/components/ItemFilter.vue.d.ts +5 -13
  27. package/dist/src/components/NoContentMessage.vue.d.ts +1 -9
  28. package/dist/src/components/Search/ResourcePreview.vue.d.ts +1 -9
  29. package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +1 -1
  30. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +1 -9
  31. package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +1 -9
  32. package/dist/src/components/SideBar/SideBar.vue.d.ts +5 -13
  33. package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +6 -14
  34. package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +1 -9
  35. package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +1 -9
  36. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -1
  37. package/dist/src/components/SpaceQuota.vue.d.ts +1 -9
  38. package/dist/src/components/Spaces/QuotaModal.vue.d.ts +3 -11
  39. package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +2 -10
  40. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +4 -12
  41. package/dist/src/components/TextEditor/index.d.ts +16 -38
  42. package/dist/src/components/ViewOptions.vue.d.ts +1 -9
  43. package/dist/src/components/index.d.ts +0 -1
  44. package/dist/src/composables/actions/types.d.ts +92 -2
  45. package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +1 -0
  46. package/dist/src/composables/piniaStores/avatars.d.ts +3 -3
  47. package/dist/src/composables/piniaStores/messages.d.ts +6 -588
  48. package/dist/src/composables/resources/useResourceViewDrag.d.ts +7 -17
  49. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +7 -17
  50. package/dist/web-pkg.js +1225 -1295
  51. package/package.json +4 -4
  52. package/dist/assets/worker-C-Nrpmiq.js +0 -24
  53. package/dist/assets/worker-CzI1mBNb.js +0 -24
  54. package/dist/assets/worker-DDmV-och.js +0 -24
  55. package/dist/src/components/Navigation/MobileNav.vue.d.ts +0 -3
  56. package/dist/src/components/Navigation/index.d.ts +0 -1
package/dist/web-pkg.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, $a as t, $i as n, $n as r, $r as i, $t as a, A as o, Aa as s, Ai as c, An as l, Ao as u, Ar as d, At as f, B as p, Ba as m, Bi as h, Bn as g, Bo as _, Br as v, Bt as y, C as b, Ca as x, Ci as S, Cn as C, Co as ee, Cr as w, Ct as T, D as te, Da as E, Di as D, Dn as O, Do as k, Dr as A, Dt as ne, E as re, Ea as j, Ei as ie, En as ae, Eo as M, Er as oe, Et as se, F as ce, Fa as le, Fi as ue, Fn as de, Fo as fe, Fr as pe, Ft as me, G as he, Ga as ge, Gi as _e, Gn as ve, Go as ye, Gr as be, Gt as xe, H as Se, Ha as Ce, Hi as we, Hn as Te, Ho as Ee, Hr as De, Ht as Oe, I as ke, Ia as Ae, Ii as je, In as Me, Io as N, Ir as Ne, It as Pe, J as Fe, Ja as Ie, Ji as Le, Jn as Re, Jr as ze, Jt as Be, K as Ve, Ka as He, Ki as Ue, Kn as We, Kr as Ge, Kt as Ke, L as qe, La as Je, Li as Ye, Ln as Xe, Lo as P, Lr as Ze, Lt as Qe, M as $e, Ma as et, Mi as tt, Mn as nt, Mo as rt, Mr as it, Mt as at, N as ot, Na as st, Ni as ct, Nn as lt, No as ut, Nr as dt, Nt as ft, O as pt, Oa as mt, Oi as ht, On as gt, Oo as F, Or as _t, Ot as vt, P as yt, Pa as bt, Pi as xt, Pn as St, Po as Ct, Pr as wt, Pt as Tt, Q as Et, Qa as Dt, Qi as Ot, Qn as kt, Qr as At, Qt as jt, R as Mt, Ra as Nt, Ri as Pt, Rn as Ft, Ro as I, Rr as It, Rt as Lt, S as Rt, Sa as zt, Si as Bt, Sn as Vt, So as Ht, Sr as Ut, St as Wt, T as Gt, Ta as Kt, Ti as qt, Tn as Jt, To as Yt, Tr as Xt, Tt as Zt, U as Qt, Ua as $t, Ui as en, Un as tn, Uo as L, Ur as nn, Ut as rn, V as an, Va as on, Vi as sn, Vn as cn, Vo as R, Vr as ln, Vt as un, W as dn, Wa as fn, Wi as pn, Wn as mn, Wo as hn, Wr as gn, Wt as _n, X as vn, Xa as z, Xi as yn, Xn as bn, Xr as xn, Xt as Sn, Y as Cn, Ya as wn, Yi as Tn, Yn as En, Yr as Dn, Yt as On, Z as kn, Za as An, Zi as jn, Zn as Mn, Zr as Nn, Zt as Pn, _ as Fn, _a as In, _i as Ln, _n as Rn, _o as zn, _r as Bn, _t as Vn, a as Hn, aa as Un, ai as Wn, an as Gn, ao as Kn, ar as qn, at as Jn, b as Yn, ba as Xn, bi as Zn, bn as Qn, bo as B, br as $n, bt as er, c as tr, ca as nr, ci as rr, cn as ir, co as V, cr as ar, ct as or, d as sr, da as cr, di as lr, dn as ur, do as dr, dr as fr, dt as pr, ea as mr, ei as hr, en as gr, eo as _r, er as vr, et as yr, f as br, fa as xr, fi as Sr, fn as Cr, fo as wr, fr as Tr, ft as Er, g as Dr, ga as Or, gi as kr, gn as Ar, go as jr, gr as Mr, gt as Nr, h as Pr, ha as Fr, hi as Ir, hn as Lr, ho as H, hr as Rr, ht as zr, i as Br, ia as Vr, ii as Hr, in as Ur, io as U, ir as Wr, it as Gr, j as Kr, ja as qr, ji as Jr, jn as Yr, jo as W, jr as Xr, jt as Zr, k as Qr, ka as $r, ki as ei, kn as ti, ko as ni, kr as ri, kt as ii, l as ai, la as oi, li as si, ln as ci, lo as G, lr as li, lt as ui, m as di, ma as fi, mi as pi, mn as mi, mo as hi, mr as gi, mt as _i, n as vi, na as yi, ni as bi, nn as xi, no as Si, nr as Ci, nt as wi, o as Ti, oa as Ei, oi as Di, on as Oi, oo as K, or as ki, ot as Ai, p as ji, pa as Mi, pi as Ni, pn as Pi, po as q, pr as Fi, pt as Ii, q as Li, qa as Ri, qi as zi, qn as Bi, qr as Vi, qt as Hi, r as Ui, ra as Wi, ri as Gi, rn as Ki, ro as J, rr as qi, rt as Ji, s as Yi, sa as Xi, si as Zi, sn as Qi, so as Y, sr as $i, st as ea, t as ta, ta as na, ti as ra, tn as ia, to as aa, tr as oa, tt as sa, u as ca, ua as la, ui as ua, un as da, uo as X, ur as fa, ut as pa, v as ma, va as ha, vi as ga, vn as _a, vo as va, vr as ya, vt as ba, w as xa, wa as Sa, wi as Ca, wn as wa, wo as Z, wr as Ta, wt as Ea, x as Da, xa as Oa, xi as ka, xn as Aa, xo as ja, xr as Ma, xt as Na, y as Pa, ya as Fa, yi as Ia, yn as La, yo as Ra, yr as za, yt as Ba, z as Va, za as Ha, zi as Ua, zn as Wa, zo as Ga, zr as Ka, zt as qa } from "./composables-TkULFBg4.js";
1
+ import { $ as e, $a as t, $i as n, $n as r, $r as i, $t as a, A as o, Aa as s, Ai as c, An as l, Ao as u, Ar as d, At as f, B as p, Ba as m, Bi as h, Bn as g, Bo as _, Br as v, Bt as y, C as b, Ca as x, Ci as S, Cn as C, Co as ee, Cr as w, Ct as T, D as te, Da as E, Di as D, Dn as O, Do as k, Dr as A, Dt as ne, E as re, Ea as j, Ei as ie, En as ae, Eo as M, Er as N, Et as oe, F as se, Fa as ce, Fi as le, Fn as ue, Fo as de, Fr as fe, Ft as pe, G as me, Ga as he, Gi as ge, Gn as _e, Go as ve, Gr as ye, Gt as be, H as xe, Ha as Se, Hi as Ce, Hn as we, Ho as Te, Hr as Ee, Ht as De, I as Oe, Ia as ke, Ii as Ae, In as je, Io as P, Ir as Me, It as Ne, J as Pe, Ja as Fe, Ji as Ie, Jn as Le, Jr as Re, Jt as ze, K as Be, Ka as Ve, Ki as He, Kn as Ue, Kr as We, Kt as Ge, L as Ke, La as qe, Li as Je, Ln as Ye, Lo as F, Lr as Xe, Lt as Ze, M as Qe, Ma as $e, Mi as et, Mn as tt, Mo as nt, Mr as rt, Mt as it, N as at, Na as ot, Ni as st, Nn as ct, No as lt, Nr as ut, Nt as dt, O as ft, Oa as pt, Oi as mt, On as ht, Oo as I, Or as gt, Ot as _t, P as vt, Pa as yt, Pi as bt, Pn as xt, Po as St, Pr as Ct, Pt as wt, Q as Tt, Qa as Et, Qi as Dt, Qn as Ot, Qr as kt, Qt as At, R as jt, Ra as Mt, Ri as Nt, Rn as Pt, Ro as L, Rr as Ft, Rt as It, S as Lt, Sa as Rt, Si as zt, Sn as Bt, So as Vt, Sr as Ht, St as Ut, T as Wt, Ta as Gt, Ti as Kt, Tn as qt, To as Jt, Tr as Yt, Tt as Xt, U as Zt, Ua as Qt, Ui as $t, Un as en, Uo as R, Ur as tn, Ut as nn, V as rn, Va as an, Vi as on, Vn as sn, Vo as z, Vr as cn, Vt as ln, W as un, Wa as dn, Wi as fn, Wn as pn, Wo as mn, Wr as hn, Wt as gn, X as _n, Xa as B, Xi as vn, Xn as yn, Xr as bn, Xt as xn, Y as Sn, Ya as Cn, Yi as wn, Yn as Tn, Yr as En, Yt as Dn, Z as On, Za as kn, Zi as An, Zn as jn, Zr as Mn, Zt as Nn, _ as Pn, _a as Fn, _i as In, _n as Ln, _o as Rn, _r as zn, _t as Bn, a as Vn, aa as Hn, ai as Un, an as Wn, ao as Gn, ar as Kn, at as qn, b as Jn, ba as Yn, bi as Xn, bn as Zn, bo as V, br as Qn, bt as $n, c as er, ca as tr, ci as nr, cn as rr, co as H, cr as ir, ct as ar, d as or, da as sr, di as cr, dn as lr, do as ur, dr, dt as fr, ea as pr, ei as mr, en as hr, eo as gr, er as _r, et as vr, f as yr, fa as br, fi as xr, fn as Sr, fo as Cr, fr as wr, ft as Tr, g as Er, ga as Dr, gi as Or, gn as kr, go as Ar, gr as jr, gt as Mr, h as Nr, ha as Pr, hi as Fr, hn as Ir, ho as U, hr as Lr, ht as Rr, i as zr, ia as Br, ii as Vr, in as Hr, io as W, ir as Ur, it as Wr, j as Gr, ja as Kr, ji as qr, jn as Jr, jo as G, jr as Yr, jt as Xr, k as Zr, ka as Qr, ki as $r, kn as ei, ko as ti, kr as ni, kt as ri, l as ii, la as ai, li as oi, ln as si, lo as K, lr as ci, lt as li, m as ui, ma as di, mi as fi, mn as pi, mo as mi, mr as hi, mt as gi, n as _i, na as vi, ni as yi, nn as bi, no as xi, nr as Si, nt as Ci, o as wi, oa as Ti, oi as Ei, on as Di, oo as q, or as Oi, ot as ki, p as Ai, pa as ji, pi as Mi, pn as Ni, po as J, pr as Pi, pt as Fi, q as Ii, qa as Li, qi as Ri, qn as zi, qr as Bi, qt as Vi, r as Hi, ra as Ui, ri as Wi, rn as Gi, ro as Ki, rr as qi, rt as Ji, s as Yi, sa as Xi, si as Zi, sn as Qi, so as Y, sr as $i, st as ea, t as ta, ta as na, ti as ra, tn as ia, to as aa, tr as oa, tt as sa, u as ca, ua as la, ui as ua, un as da, uo as X, ur as fa, ut as pa, v as ma, va as ha, vi as ga, vn as _a, vo as va, vr as ya, vt as ba, w as xa, wa as Sa, wi as Ca, wn as wa, wo as Z, wr as Ta, wt as Ea, x as Da, xa as Oa, xi as ka, xn as Aa, xo as ja, xr as Ma, xt as Na, y as Pa, ya as Fa, yi as Ia, yn as La, yo as Ra, yr as za, yt as Ba, z as Va, za as Ha, zi as Ua, zn as Wa, zo as Ga, zr as Ka, zt as qa } from "./composables-CAlEpA5b.js";
2
2
  import { HttpError as Ja, ShareTypes as Ya, buildIncomingShareResource as Xa, buildSpaceImageResource as Za, call as Qa, extractDomSelector as $a, getSpaceManagers as eo, isCollaboratorShare as to, isIncomingShareResource as no, isLinkShare as ro, isManager as io, isOutgoingShareResource as ao, isPersonalSpaceResource as oo, isProjectSpaceResource as so, isPublicSpaceResource as co, isShareResource as lo, isShareSpaceResource as uo, isSpaceResource as fo } from "@opencloud-eu/web-client";
3
3
  import { useGettext as Q } from "vue3-gettext";
4
4
  import po from "fuse.js";
@@ -12,7 +12,7 @@ import bo from "mark.js";
12
12
  import xo from "cropperjs";
13
13
  import { onBeforeRouteLeave as So, useRouter as Co } from "vue-router";
14
14
  //#region src/apps/types.ts
15
- var wo = (e) => e, To = H({
15
+ var wo = (e) => e, To = U({
16
16
  name: "ActionMenuItem",
17
17
  props: {
18
18
  action: {
@@ -48,18 +48,18 @@ var wo = (e) => e, To = H({
48
48
  }
49
49
  },
50
50
  setup(e) {
51
- let { options: t } = $(Un()), n = K(() => Object.hasOwn(e.action, "route") ? "router-link" : Object.hasOwn(e.action, "href") ? "a" : (Object.hasOwn(e.action, "handler") || console.warn("ActionMenuItem: No handler, route or href callback found in action", e.action), "button"));
51
+ let { options: t } = $(Hn()), n = q(() => Object.hasOwn(e.action, "route") ? "router-link" : Object.hasOwn(e.action, "href") ? "a" : (Object.hasOwn(e.action, "handler") || console.warn("ActionMenuItem: No handler, route or href callback found in action", e.action), "button"));
52
52
  return {
53
53
  componentType: n,
54
- componentProps: K(() => ({
54
+ componentProps: q(() => ({
55
55
  appearance: e.action.appearance || e.appearance,
56
56
  ...e.action.isDisabled && { disabled: e.action.isDisabled(e.actionOptions) },
57
57
  ...e.action.id && { id: e.action.id },
58
- ...L(n) === "router-link" && { to: e.action.route(e.actionOptions) },
59
- ...L(n) === "a" && { href: e.action.href(e.actionOptions) },
60
- ...["router-link", "a"].includes(L(n)) && { target: t.value.openFilesInNewTab ? "_blank" : "_self" }
58
+ ...R(n) === "router-link" && { to: e.action.route(e.actionOptions) },
59
+ ...R(n) === "a" && { href: e.action.href(e.actionOptions) },
60
+ ...["router-link", "a"].includes(R(n)) && { target: t.value.openFilesInNewTab ? "_blank" : "_self" }
61
61
  })),
62
- actionIcon: K(() => typeof e.action.icon == "function" ? e.action.icon(e.actionOptions) : e.action.icon)
62
+ actionIcon: q(() => typeof e.action.icon == "function" ? e.action.icon(e.actionOptions) : e.action.icon)
63
63
  };
64
64
  },
65
65
  computed: {
@@ -80,8 +80,8 @@ var wo = (e) => e, To = H({
80
80
  "data-testid": "action-label"
81
81
  }, Do = ["textContent"], Oo = ["textContent"];
82
82
  function ko(e, t, n, r, i, a) {
83
- let o = F("oc-image"), s = F("oc-icon"), c = F("oc-button"), l = ni("oc-tooltip");
84
- return I((Z(), X("li", null, [I((Z(), V(c, va({ type: e.componentType }, e.componentProps, {
83
+ let o = I("oc-image"), s = I("oc-icon"), c = I("oc-button"), l = ti("oc-tooltip");
84
+ return L((Z(), X("li", null, [L((Z(), H(c, va({ type: e.componentType }, e.componentProps, {
85
85
  class: [
86
86
  e.action.class,
87
87
  "action-menu-item",
@@ -93,21 +93,21 @@ function ko(e, t, n, r, i, a) {
93
93
  "data-testid": "action-handler",
94
94
  size: e.size,
95
95
  "justify-content": "left"
96
- }, rt(e.componentListeners)), {
97
- default: P(() => [
98
- e.action.img ? (Z(), V(o, {
96
+ }, nt(e.componentListeners)), {
97
+ default: F(() => [
98
+ e.action.img ? (Z(), H(o, {
99
99
  key: 0,
100
100
  "data-testid": "action-img",
101
101
  src: e.action.img,
102
102
  alt: "",
103
103
  class: "oc-icon oc-icon-m w-[22px]"
104
- }, null, 8, ["src"])) : e.hasExternalImageIcon ? (Z(), V(o, {
104
+ }, null, 8, ["src"])) : e.hasExternalImageIcon ? (Z(), H(o, {
105
105
  key: 1,
106
106
  "data-testid": "action-img",
107
107
  src: e.actionIcon,
108
108
  alt: "",
109
109
  class: "oc-icon oc-icon-m w-[22px]"
110
- }, null, 8, ["src"])) : e.actionIcon ? (Z(), V(s, {
110
+ }, null, 8, ["src"])) : e.actionIcon ? (Z(), H(s, {
111
111
  key: 2,
112
112
  "data-testid": "action-icon",
113
113
  name: e.actionIcon,
@@ -117,16 +117,16 @@ function ko(e, t, n, r, i, a) {
117
117
  "name",
118
118
  "fill-type",
119
119
  "size"
120
- ])) : G("", !0),
121
- e.action.hideLabel ? G("", !0) : (Z(), X("span", Eo, [Y("span", {
120
+ ])) : K("", !0),
121
+ e.action.hideLabel ? K("", !0) : (Z(), X("span", Eo, [Y("span", {
122
122
  class: "text-left",
123
- textContent: W(e.action.label(e.actionOptions))
123
+ textContent: G(e.action.label(e.actionOptions))
124
124
  }, null, 8, Do)])),
125
125
  e.action.shortcut && e.shortcutHint ? (Z(), X("span", {
126
126
  key: 4,
127
127
  class: "text-sm flex-row-reverse",
128
- textContent: W(e.action.shortcut)
129
- }, null, 8, Oo)) : G("", !0)
128
+ textContent: G(e.action.shortcut)
129
+ }, null, 8, Oo)) : K("", !0)
130
130
  ]),
131
131
  _: 1
132
132
  }, 16, [
@@ -136,7 +136,7 @@ function ko(e, t, n, r, i, a) {
136
136
  "size"
137
137
  ])), [[l, e.showTooltip || e.action.hideLabel ? e.action.label(e.actionOptions) : ""]])])), [[l, e.componentProps.disabled ? e.action.disabledTooltip?.(e.actionOptions) : ""]]);
138
138
  }
139
- var Ao = /* @__PURE__ */ z(To, [["render", ko]]), jo = H({
139
+ var Ao = /* @__PURE__ */ B(To, [["render", ko]]), jo = U({
140
140
  name: "BatchActions",
141
141
  components: { ActionMenuItem: Ao },
142
142
  props: {
@@ -158,12 +158,12 @@ var Ao = /* @__PURE__ */ z(To, [["render", ko]]), jo = H({
158
158
  //#endregion
159
159
  //#region src/components/BatchActions.vue
160
160
  function Mo(e, t, n, r, i, a) {
161
- let o = F("action-menu-item"), s = F("oc-list");
162
- return Z(), X("div", null, [q(s, {
161
+ let o = I("action-menu-item"), s = I("oc-list");
162
+ return Z(), X("div", null, [J(s, {
163
163
  id: "oc-appbar-batch-actions",
164
- class: B(["block xl:flex xl:items-center", { "oc-appbar-batch-actions-squashed [&_.oc-files-context-action-label]:hidden": e.limitedScreenSpace }])
164
+ class: V(["block xl:flex xl:items-center", { "oc-appbar-batch-actions-squashed [&_.oc-files-context-action-label]:hidden": e.limitedScreenSpace }])
165
165
  }, {
166
- default: P(() => [(Z(!0), X(U, null, M(e.actions, (t, n) => (Z(), V(o, {
166
+ default: F(() => [(Z(!0), X(W, null, M(e.actions, (t, n) => (Z(), H(o, {
167
167
  key: `action-${n}`,
168
168
  action: t,
169
169
  "action-options": e.actionOptions,
@@ -179,7 +179,7 @@ function Mo(e, t, n, r, i, a) {
179
179
  _: 1
180
180
  }, 8, ["class"])]);
181
181
  }
182
- var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px-2" }, Fo = { class: "inline-flex gap-2" }, Io = { class: "flex oc-files-context-action-label" }, Lo = ["textContent"], Ro = /* @__PURE__ */ H({
182
+ var No = /* @__PURE__ */ B(jo, [["render", Mo]]), Po = { class: "context-menu px-2" }, Fo = { class: "inline-flex gap-2" }, Io = { class: "flex oc-files-context-action-label" }, Lo = ["textContent"], Ro = /* @__PURE__ */ U({
183
183
  __name: "ActionMenuDropItem",
184
184
  props: {
185
185
  menuSectionDrop: {},
@@ -187,31 +187,31 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
187
187
  actionOptions: {}
188
188
  },
189
189
  setup(e) {
190
- let t = Tn(`oc-files-context-actions-${e.menuSectionDrop.name}-drop-`), n = Tn(`oc-files-context-actions-${e.menuSectionDrop.name}-toggle-`);
190
+ let t = wn(`oc-files-context-actions-${e.menuSectionDrop.name}-drop-`), n = wn(`oc-files-context-actions-${e.menuSectionDrop.name}-toggle-`);
191
191
  return (r, i) => {
192
- let a = F("oc-icon"), o = F("oc-button"), s = F("oc-list");
193
- return Z(), X("li", Po, [q(o, {
194
- id: L(n),
192
+ let a = I("oc-icon"), o = I("oc-button"), s = I("oc-list");
193
+ return Z(), X("li", Po, [J(o, {
194
+ id: R(n),
195
195
  appearance: "raw",
196
196
  "justify-content": "space-between",
197
197
  "gap-size": "medium",
198
198
  class: "w-full flex justify-between",
199
199
  "aria-expanded": "false"
200
200
  }, {
201
- default: P(() => [Y("span", Fo, [q(a, {
201
+ default: F(() => [Y("span", Fo, [J(a, {
202
202
  name: e.menuSectionDrop.icon,
203
203
  size: "medium",
204
204
  "fill-type": "line"
205
- }, null, 8, ["name"]), Y("span", Io, [Y("span", { textContent: W(e.menuSectionDrop.label) }, null, 8, Lo)])]), q(a, {
205
+ }, null, 8, ["name"]), Y("span", Io, [Y("span", { textContent: G(e.menuSectionDrop.label) }, null, 8, Lo)])]), J(a, {
206
206
  name: "arrow-right-s",
207
207
  size: "small",
208
208
  "fill-type": "line"
209
209
  })]),
210
210
  _: 1
211
- }, 8, ["id"]), q(L(ci), {
211
+ }, 8, ["id"]), J(R(si), {
212
212
  title: e.menuSectionDrop.label,
213
- "drop-id": L(t),
214
- toggle: `#${L(n)}`,
213
+ "drop-id": R(t),
214
+ toggle: `#${R(n)}`,
215
215
  mode: "hover",
216
216
  class: "w-3xs oc-files-context-action-drop",
217
217
  "padding-size": "small",
@@ -219,8 +219,8 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
219
219
  position: "right-start",
220
220
  "close-on-click": ""
221
221
  }, {
222
- default: P(() => [e.menuSectionDrop.items.length ? (Z(), V(s, { key: 0 }, {
223
- default: P(() => [(Z(!0), X(U, null, M(e.menuSectionDrop.items, (t, n) => (Z(), V(Ao, {
222
+ default: F(() => [e.menuSectionDrop.items.length ? (Z(), H(s, { key: 0 }, {
223
+ default: F(() => [(Z(!0), X(W, null, M(e.menuSectionDrop.items, (t, n) => (Z(), H(Ao, {
224
224
  key: `section-${e.menuSectionDrop.label}-action-${n}`,
225
225
  action: t,
226
226
  appearance: e.appearance,
@@ -231,7 +231,7 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
231
231
  "action-options"
232
232
  ]))), 128))]),
233
233
  _: 1
234
- })) : G("", !0)]),
234
+ })) : K("", !0)]),
235
235
  _: 1
236
236
  }, 8, [
237
237
  "title",
@@ -240,7 +240,7 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
240
240
  ])]);
241
241
  };
242
242
  }
243
- }), zo = H({
243
+ }), zo = U({
244
244
  name: "ContextActionMenu",
245
245
  components: {
246
246
  ActionMenuDropItem: Ro,
@@ -266,13 +266,13 @@ var No = /* @__PURE__ */ z(jo, [["render", Mo]]), Po = { class: "context-menu px
266
266
  } }
267
267
  }), Bo = { id: "oc-files-context-menu" };
268
268
  function Vo(e, t, n, r, i, a) {
269
- let o = F("action-menu-item"), s = F("action-menu-drop-item"), c = F("oc-list");
270
- return Z(), X("div", Bo, [(Z(!0), X(U, null, M(e.menuSections, (t, n) => (Z(), V(c, {
269
+ let o = I("action-menu-item"), s = I("action-menu-drop-item"), c = I("oc-list");
270
+ return Z(), X("div", Bo, [(Z(!0), X(W, null, M(e.menuSections, (t, n) => (Z(), H(c, {
271
271
  id: `oc-files-context-actions-${t.name}`,
272
272
  key: `section-${t.name}-list`,
273
- class: B(["[&_li]:px-0", e.getSectionClasses(n)])
273
+ class: V(["[&_li]:px-0", e.getSectionClasses(n)])
274
274
  }, {
275
- default: P(() => [t.items ? (Z(!0), X(U, { key: 0 }, M(t.items, (n, r) => (Z(), V(o, {
275
+ default: F(() => [t.items ? (Z(!0), X(W, { key: 0 }, M(t.items, (n, r) => (Z(), H(o, {
276
276
  key: `section-${t.name}-action-${r}`,
277
277
  action: n,
278
278
  appearance: e.appearance,
@@ -282,7 +282,7 @@ function Vo(e, t, n, r, i, a) {
282
282
  "action",
283
283
  "appearance",
284
284
  "action-options"
285
- ]))), 128)) : G("", !0), (Z(!0), X(U, null, M(t.dropItems, (t) => (Z(), X(U, null, [t.items.length ? (Z(), V(s, {
285
+ ]))), 128)) : K("", !0), (Z(!0), X(W, null, M(t.dropItems, (t) => (Z(), X(W, null, [t.items.length ? (Z(), H(s, {
286
286
  key: t.name,
287
287
  "menu-section-drop": t,
288
288
  appearance: e.appearance,
@@ -291,11 +291,11 @@ function Vo(e, t, n, r, i, a) {
291
291
  "menu-section-drop",
292
292
  "appearance",
293
293
  "action-options"
294
- ])) : G("", !0)], 64))), 256))]),
294
+ ])) : K("", !0)], 64))), 256))]),
295
295
  _: 2
296
296
  }, 1032, ["id", "class"]))), 128))]);
297
297
  }
298
- var Ho = /* @__PURE__ */ z(zo, [["render", Vo]]), Uo = H({
298
+ var Ho = /* @__PURE__ */ B(zo, [["render", Vo]]), Uo = U({
299
299
  name: "ContextActions",
300
300
  components: { ContextActionMenu: Ho },
301
301
  props: { actionOptions: {
@@ -303,75 +303,75 @@ var Ho = /* @__PURE__ */ z(zo, [["render", Vo]]), Uo = H({
303
303
  required: !0
304
304
  } },
305
305
  setup(e) {
306
- let { getAllOpenWithActions: t } = La(), { $gettext: n } = Q(), { actions: r } = Ea(), { actions: i } = vt(), { actions: a } = Jn(), { actions: o } = _a(), { actions: s } = Cr(), { actions: c } = Tt(), { actions: l } = me(), { actions: u } = at(), { actions: d } = f(), { actions: p } = ne(), { actions: m } = se(), { actions: h } = Vn(), { actions: g } = Nr(), { actions: _ } = zr(), { actions: v } = pr(), { actions: y } = ui(), { actions: b } = Pe(), { actions: x } = Ai(), S = dt(), C = K(() => S.requestExtensions({
306
+ let { getAllOpenWithActions: t } = La(), { $gettext: n } = Q(), { actions: r } = Ea(), { actions: i } = _t(), { actions: a } = qn(), { actions: o } = _a(), { actions: s } = Sr(), { actions: c } = wt(), { actions: l } = pe(), { actions: u } = it(), { actions: d } = f(), { actions: p } = ne(), { actions: m } = oe(), { actions: h } = Bn(), { actions: g } = Mr(), { actions: _ } = Rr(), { actions: v } = fr(), { actions: y } = li(), { actions: b } = Ne(), { actions: x } = ki(), S = ut(), C = q(() => S.requestExtensions({
307
307
  id: "global.files.context-actions",
308
308
  extensionType: "action"
309
- }).map((e) => e.action)), ee = K(() => S.requestExtensions({
309
+ }).map((e) => e.action)), ee = q(() => S.requestExtensions({
310
310
  id: "global.files.batch-actions",
311
311
  extensionType: "action"
312
- }).map((e) => e.action)), w = Ee(e, "actionOptions"), T = K(() => [
313
- ...L(i),
314
- ...L(c),
315
- ...L(u),
316
- ...L(m),
317
- ...L(o),
318
- ...L(l),
319
- ...L(_),
320
- ...L(b),
321
- ...L(ee).filter((e) => e.category === "actions" || mo(e.category))
322
- ].filter((e) => e.isVisible(L(w)))), te = K(() => [...L(y), ...L(ee).filter((e) => e.category === "sidebar")].filter((e) => e.isVisible(L(w)))), E = K(() => L(r).filter((e) => e.isVisible(L(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), D = K(() => t({
323
- ...L(w),
312
+ }).map((e) => e.action)), w = Te(e, "actionOptions"), T = q(() => [
313
+ ...R(i),
314
+ ...R(c),
315
+ ...R(u),
316
+ ...R(m),
317
+ ...R(o),
318
+ ...R(l),
319
+ ...R(_),
320
+ ...R(b),
321
+ ...R(ee).filter((e) => e.category === "actions" || mo(e.category))
322
+ ].filter((e) => e.isVisible(R(w)))), te = q(() => [...R(y), ...R(ee).filter((e) => e.category === "sidebar")].filter((e) => e.isVisible(R(w)))), E = q(() => R(r).filter((e) => e.isVisible(R(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), D = q(() => t({
323
+ ...R(w),
324
324
  omitSystemActions: !0
325
- }).filter((e) => e.isVisible(L(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), O = K(() => [
326
- ...L(x),
327
- ...L(s),
328
- ...L(C).filter((e) => e.category === "share")
329
- ].filter((e) => e.isVisible(L(w)))), k = K(() => [
330
- ...L(u),
331
- ...L(d),
332
- ...L(l),
333
- ...L(m),
334
- ...L(o),
335
- ...L(h),
336
- ...L(g),
337
- ...L(b),
338
- ...L(_),
339
- ...L(i),
340
- ...L(c),
341
- ...L(a),
342
- ...L(v),
343
- ...L(C).filter((e) => e.category === "actions" || mo(e.category))
344
- ].filter((e) => e.isVisible(L(w)))), A = K(() => [
345
- ...L(p),
346
- ...L(y),
347
- ...L(C).filter((e) => e.category === "sidebar")
348
- ].filter((e) => e.isVisible(L(w))));
349
- return { menuSections: K(() => {
325
+ }).filter((e) => e.isVisible(R(w))).sort((e, t) => Number(t.hasPriority) - Number(e.hasPriority))), O = q(() => [
326
+ ...R(x),
327
+ ...R(s),
328
+ ...R(C).filter((e) => e.category === "share")
329
+ ].filter((e) => e.isVisible(R(w)))), k = q(() => [
330
+ ...R(u),
331
+ ...R(d),
332
+ ...R(l),
333
+ ...R(m),
334
+ ...R(o),
335
+ ...R(h),
336
+ ...R(g),
337
+ ...R(b),
338
+ ...R(_),
339
+ ...R(i),
340
+ ...R(c),
341
+ ...R(a),
342
+ ...R(v),
343
+ ...R(C).filter((e) => e.category === "actions" || mo(e.category))
344
+ ].filter((e) => e.isVisible(R(w)))), A = q(() => [
345
+ ...R(p),
346
+ ...R(y),
347
+ ...R(C).filter((e) => e.category === "sidebar")
348
+ ].filter((e) => e.isVisible(R(w))));
349
+ return { menuSections: q(() => {
350
350
  let e = [];
351
- return L(w).resources.length > 1 ? (L(T).length && e.push({
351
+ return R(w).resources.length > 1 ? (R(T).length && e.push({
352
352
  name: "batch-actions",
353
- items: [...L(T)]
353
+ items: [...R(T)]
354
354
  }), e.push({
355
355
  name: "batch-details",
356
- items: [...L(te)]
357
- }), e) : ([...L(E), ...L(D)].length && e.push({
356
+ items: [...R(te)]
357
+ }), e) : ([...R(E), ...R(D)].length && e.push({
358
358
  name: "context",
359
- items: [...L(E)],
359
+ items: [...R(E)],
360
360
  dropItems: [{
361
361
  label: n("Open with..."),
362
362
  name: "open-with",
363
363
  icon: "apps",
364
- items: [...L(D)]
364
+ items: [...R(D)]
365
365
  }]
366
- }), L(O).length && e.push({
366
+ }), R(O).length && e.push({
367
367
  name: "share",
368
- items: L(O)
369
- }), L(k).length && e.push({
368
+ items: R(O)
369
+ }), R(k).length && e.push({
370
370
  name: "actions",
371
- items: L(k)
372
- }), L(A).length && e.push({
371
+ items: R(k)
372
+ }), R(A).length && e.push({
373
373
  name: "sidebar",
374
- items: L(A)
374
+ items: R(A)
375
375
  }), e);
376
376
  }) };
377
377
  }
@@ -379,13 +379,13 @@ var Ho = /* @__PURE__ */ z(zo, [["render", Vo]]), Uo = H({
379
379
  //#endregion
380
380
  //#region src/components/FilesList/ContextActions.vue
381
381
  function Wo(e, t, n, r, i, a) {
382
- let o = F("context-action-menu");
383
- return Z(), V(o, {
382
+ let o = I("context-action-menu");
383
+ return Z(), H(o, {
384
384
  "menu-sections": e.menuSections,
385
385
  "action-options": e.actionOptions
386
386
  }, null, 8, ["menu-sections", "action-options"]);
387
387
  }
388
- var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-center" }, qo = { class: "flex justify-between w-full" }, Jo = { class: "flex items-center gap-2" }, Yo = ["textContent"], Xo = {
388
+ var Go = /* @__PURE__ */ B(Uo, [["render", Wo]]), Ko = { class: "flex items-center" }, qo = { class: "flex justify-between w-full" }, Jo = { class: "flex items-center gap-2" }, Yo = ["textContent"], Xo = {
389
389
  key: 0,
390
390
  class: "mt-2 mb-4 last:mb-0 [&>*]:flex [&>*]:justify-between"
391
391
  }, Zo = {
@@ -403,7 +403,7 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
403
403
  }, ts = {
404
404
  key: 5,
405
405
  class: "mt-2 mb-4 last:mb-0 flex justify-between items-center [&>*]:flex [&>*]:justify-between"
406
- }, ns = ["textContent"], rs = ["max"], is = /* @__PURE__ */ z(/* @__PURE__ */ H({
406
+ }, ns = ["textContent"], rs = ["max"], is = /* @__PURE__ */ B(/* @__PURE__ */ U({
407
407
  __name: "ViewOptions",
408
408
  props: {
409
409
  perPageStoragePrefix: {},
@@ -419,31 +419,31 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
419
419
  type: Boolean,
420
420
  default: !0
421
421
  },
422
- paginationOptions: { default: () => Gt.options },
423
- perPageQueryName: { default: () => Gt.perPageQueryName },
424
- perPageDefault: { default: () => Gt.perPageDefault },
422
+ paginationOptions: { default: () => Wt.options },
423
+ perPageQueryName: { default: () => Wt.perPageQueryName },
424
+ perPageDefault: { default: () => Wt.perPageDefault },
425
425
  viewModeDefault: { default: () => ma.defaultModeName },
426
426
  viewModes: { default: () => [] }
427
427
  },
428
428
  setup(e) {
429
- let t = Mi(), n = xr(), { $gettext: i } = Q(), a = fr(), { setAreHiddenFilesShown: o, setAreFileExtensionsShown: s, setAreDisabledSpacesShown: c, setAreEmptyTrashesShown: l } = a, { areHiddenFilesShown: u, areFileExtensionsShown: d, areDisabledSpacesShown: f, areEmptyTrashesShown: p } = $(a), m = R(!1), h = Mn($r, "files-spaces-projects"), g = Mn(ha, "files-trash-overview"), _ = r("page"), v = K(() => L(_) ? parseInt(Re(L(_))) : 1), y = kt({
429
+ let t = ji(), n = br(), { $gettext: i } = Q(), a = dr(), { setAreHiddenFilesShown: o, setAreFileExtensionsShown: s, setAreDisabledSpacesShown: c, setAreEmptyTrashesShown: l } = a, { areHiddenFilesShown: u, areFileExtensionsShown: d, areDisabledSpacesShown: f, areEmptyTrashesShown: p } = $(a), m = z(!1), h = jn(Qr, "files-spaces-projects"), g = jn(ha, "files-trash-overview"), _ = r("page"), v = q(() => R(_) ? parseInt(Le(R(_))) : 1), y = Ot({
430
430
  name: e.perPageQueryName,
431
431
  defaultValue: e.perPageDefault,
432
432
  storagePrefix: e.perPageStoragePrefix
433
- }), b = kt({
433
+ }), b = Ot({
434
434
  name: ma.queryName,
435
435
  defaultValue: e.viewModeDefault
436
- }), x = K(() => e.viewModes.find((e) => e.name === Re(L(b)))), S = kt({
436
+ }), x = q(() => e.viewModes.find((e) => e.name === Le(R(b)))), S = Ot({
437
437
  name: ma.tilesSizeQueryName,
438
438
  defaultValue: ma.tilesSizeDefault.toString()
439
439
  }), C = (r) => t.replace({ query: {
440
- ...L(n).query,
440
+ ...R(n).query,
441
441
  [e.perPageQueryName]: r.toString(),
442
- ...L(v) > 1 && { page: "1" }
442
+ ...R(v) > 1 && { page: "1" }
443
443
  } }), ee = (e) => {
444
444
  b.value = e.name;
445
445
  };
446
- N([
446
+ P([
447
447
  y,
448
448
  b,
449
449
  S
@@ -453,30 +453,30 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
453
453
  immediate: !0,
454
454
  deep: !0
455
455
  });
456
- let w = Dr(), T = K({
456
+ let w = Er(), T = q({
457
457
  get() {
458
- return L(u);
458
+ return R(u);
459
459
  },
460
460
  set(e) {
461
461
  o(e);
462
462
  }
463
- }), te = K({
463
+ }), te = q({
464
464
  get() {
465
- return L(d);
465
+ return R(d);
466
466
  },
467
467
  set(e) {
468
468
  s(e);
469
469
  }
470
- }), E = K({
470
+ }), E = q({
471
471
  get() {
472
- return L(f);
472
+ return R(f);
473
473
  },
474
474
  set(e) {
475
475
  c(e);
476
476
  }
477
- }), D = K({
477
+ }), D = q({
478
478
  get() {
479
- return L(p);
479
+ return R(p);
480
480
  },
481
481
  set(e) {
482
482
  l(e);
@@ -491,47 +491,47 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
491
491
  D.value = e;
492
492
  };
493
493
  return (t, n) => {
494
- let r = F("oc-icon"), a = F("oc-button"), o = F("oc-list"), s = F("oc-drop"), c = F("oc-switch"), l = F("oc-page-size"), u = ni("oc-tooltip");
494
+ let r = I("oc-icon"), a = I("oc-button"), o = I("oc-list"), s = I("oc-drop"), c = I("oc-switch"), l = I("oc-page-size"), u = ti("oc-tooltip");
495
495
  return Z(), X("div", Ko, [
496
- e.viewModes.length > 1 ? (Z(), X(U, { key: 0 }, [I((Z(), V(a, {
496
+ e.viewModes.length > 1 ? (Z(), X(W, { key: 0 }, [L((Z(), H(a, {
497
497
  id: "viewmode-switch-toggle",
498
- "aria-label": L(i)("Switch view mode"),
498
+ "aria-label": R(i)("Switch view mode"),
499
499
  appearance: "raw",
500
500
  class: "my-2 mx-1 p-1 align-middle"
501
501
  }, {
502
- default: P(() => [x.value ? (Z(), V(r, {
502
+ default: F(() => [x.value ? (Z(), H(r, {
503
503
  key: 0,
504
504
  name: x.value.icon.name,
505
505
  "fill-type": x.value.icon.fillType
506
- }, null, 8, ["name", "fill-type"])) : G("", !0)]),
506
+ }, null, 8, ["name", "fill-type"])) : K("", !0)]),
507
507
  _: 1
508
- }, 8, ["aria-label"])), [[u, L(i)("Switch view mode")]]), q(s, {
509
- title: L(i)("View mode"),
508
+ }, 8, ["aria-label"])), [[u, R(i)("Switch view mode")]]), J(s, {
509
+ title: R(i)("View mode"),
510
510
  "drop-id": "viewmode-switch-drop",
511
511
  toggle: "#viewmode-switch-toggle",
512
512
  class: "w-auto",
513
513
  "padding-size": "small",
514
514
  "close-on-click": ""
515
515
  }, {
516
- default: P(() => [q(o, null, {
517
- default: P(() => [(Z(!0), X(U, null, M(e.viewModes, (e) => (Z(), X("li", { key: e.name }, [q(a, {
518
- appearance: L(b) === e.name ? "filled" : "raw",
519
- "color-role": L(b) === e.name ? "secondaryContainer" : "secondary",
520
- "no-hover": L(b) === e.name,
521
- class: B([[e.name], "p-2"]),
516
+ default: F(() => [J(o, null, {
517
+ default: F(() => [(Z(!0), X(W, null, M(e.viewModes, (e) => (Z(), X("li", { key: e.name }, [J(a, {
518
+ appearance: R(b) === e.name ? "filled" : "raw",
519
+ "color-role": R(b) === e.name ? "secondaryContainer" : "secondary",
520
+ "no-hover": R(b) === e.name,
521
+ class: V([[e.name], "p-2"]),
522
522
  "justify-content": "left",
523
523
  onClick: (t) => ee(e)
524
524
  }, {
525
- default: P(() => [Y("div", qo, [Y("span", Jo, [q(r, {
525
+ default: F(() => [Y("div", qo, [Y("span", Jo, [J(r, {
526
526
  name: e.icon.name,
527
527
  "fill-type": e.icon.fillType,
528
528
  size: "medium"
529
- }, null, 8, ["name", "fill-type"]), Y("span", { textContent: W(e.label) }, null, 8, Yo)]), L(b) === e.name ? (Z(), V(r, {
529
+ }, null, 8, ["name", "fill-type"]), Y("span", { textContent: G(e.label) }, null, 8, Yo)]), R(b) === e.name ? (Z(), H(r, {
530
530
  key: 0,
531
531
  name: "check",
532
532
  size: "medium",
533
533
  class: "ml-1"
534
- })) : G("", !0)])]),
534
+ })) : K("", !0)])]),
535
535
  _: 2
536
536
  }, 1032, [
537
537
  "appearance",
@@ -543,23 +543,23 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
543
543
  _: 1
544
544
  })]),
545
545
  _: 1
546
- }, 8, ["title"])], 64)) : G("", !0),
547
- I((Z(), V(a, {
546
+ }, 8, ["title"])], 64)) : K("", !0),
547
+ L((Z(), H(a, {
548
548
  id: "files-view-options-btn",
549
549
  key: "files-view-options-btn",
550
550
  "data-testid": "files-view-options-btn",
551
- "aria-label": L(i)("Display customization options of the files list"),
551
+ "aria-label": R(i)("Display customization options of the files list"),
552
552
  appearance: "raw",
553
553
  class: "my-2 mx-1 p-1 align-middle"
554
554
  }, {
555
- default: P(() => [q(r, {
555
+ default: F(() => [J(r, {
556
556
  name: "settings-3",
557
557
  "fill-type": "line"
558
558
  })]),
559
559
  _: 1
560
- }, 8, ["aria-label"])), [[u, L(i)("Display customization options of the files list")]]),
561
- q(s, {
562
- title: L(i)("View options"),
560
+ }, 8, ["aria-label"])), [[u, R(i)("Display customization options of the files list")]]),
561
+ J(s, {
562
+ title: R(i)("View options"),
563
563
  "drop-id": "files-view-options-drop",
564
564
  toggle: "#files-view-options-btn",
565
565
  mode: "click",
@@ -567,25 +567,25 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
567
567
  "padding-size": "medium",
568
568
  "is-menu": !1
569
569
  }, {
570
- default: P(() => [q(o, null, {
571
- default: P(() => [
572
- e.hasHiddenFiles ? (Z(), X("li", Xo, [q(c, {
570
+ default: F(() => [J(o, null, {
571
+ default: F(() => [
572
+ e.hasHiddenFiles ? (Z(), X("li", Xo, [J(c, {
573
573
  checked: T.value,
574
574
  "onUpdate:checked": [n[0] ||= (e) => T.value = e, O],
575
575
  "data-testid": "files-switch-hidden-files",
576
- label: L(i)("Show hidden files")
577
- }, null, 8, ["checked", "label"])])) : G("", !0),
578
- e.hasFileExtensions ? (Z(), X("li", Zo, [q(c, {
576
+ label: R(i)("Show hidden files")
577
+ }, null, 8, ["checked", "label"])])) : K("", !0),
578
+ e.hasFileExtensions ? (Z(), X("li", Zo, [J(c, {
579
579
  checked: te.value,
580
580
  "onUpdate:checked": [n[1] ||= (e) => te.value = e, k],
581
581
  "data-testid": "files-switch-files-extensions-files",
582
- label: L(i)("Show file extensions")
583
- }, null, 8, ["checked", "label"])])) : G("", !0),
584
- e.hasPagination ? (Z(), X("li", Qo, [m.value ? G("", !0) : (Z(), V(l, {
582
+ label: R(i)("Show file extensions")
583
+ }, null, 8, ["checked", "label"])])) : K("", !0),
584
+ e.hasPagination ? (Z(), X("li", Qo, [m.value ? K("", !0) : (Z(), H(l, {
585
585
  key: 0,
586
- selected: L(Re)(L(y)),
586
+ selected: R(Le)(R(y)),
587
587
  "data-testid": "files-pagination-size",
588
- label: L(i)("Items per page"),
588
+ label: R(i)("Items per page"),
589
589
  options: e.paginationOptions,
590
590
  class: "files-pagination-size",
591
591
  onChange: C
@@ -593,31 +593,31 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
593
593
  "selected",
594
594
  "label",
595
595
  "options"
596
- ]))])) : G("", !0),
597
- L(h) ? (Z(), X("li", $o, [q(c, {
596
+ ]))])) : K("", !0),
597
+ R(h) ? (Z(), X("li", $o, [J(c, {
598
598
  checked: E.value,
599
599
  "onUpdate:checked": [n[2] ||= (e) => E.value = e, A],
600
600
  "data-testid": "files-switch-projects-show-disabled",
601
- label: L(i)("Show disabled Spaces")
602
- }, null, 8, ["checked", "label"])])) : G("", !0),
603
- L(g) ? (Z(), X("li", es, [q(c, {
601
+ label: R(i)("Show disabled Spaces")
602
+ }, null, 8, ["checked", "label"])])) : K("", !0),
603
+ R(g) ? (Z(), X("li", es, [J(c, {
604
604
  checked: D.value,
605
605
  "onUpdate:checked": [n[3] ||= (e) => D.value = e, ne],
606
606
  "data-testid": "files-switch-projects-show-disabled",
607
- label: L(i)("Show empty trash bins")
608
- }, null, 8, ["checked", "label"])])) : G("", !0),
609
- L(b) === L(ma).name.tiles ? (Z(), X("li", ts, [Y("label", {
607
+ label: R(i)("Show empty trash bins")
608
+ }, null, 8, ["checked", "label"])])) : K("", !0),
609
+ R(b) === R(ma).name.tiles ? (Z(), X("li", ts, [Y("label", {
610
610
  for: "tiles-size-slider",
611
- textContent: W(L(i)("Tile size"))
612
- }, null, 8, ns), I(Y("input", {
611
+ textContent: G(R(i)("Tile size"))
612
+ }, null, 8, ns), L(Y("input", {
613
613
  id: "tiles-size-slider",
614
614
  "onUpdate:modelValue": n[4] ||= (e) => Ga(S) ? S.value = e : null,
615
615
  type: "range",
616
616
  min: 1,
617
- max: L(w),
617
+ max: R(w),
618
618
  class: "oc-range bg-role-surface-container-high rounded-sm outline-0 w-full max-w-[50%] h-1.5 hover:opacity-100 appearance-none",
619
619
  "data-testid": "files-tiles-size-slider"
620
- }, null, 8, rs), [[aa, L(S)]])])) : G("", !0)
620
+ }, null, 8, rs), [[aa, R(S)]])])) : K("", !0)
621
621
  ]),
622
622
  _: 1
623
623
  })]),
@@ -626,70 +626,12 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
626
626
  ]);
627
627
  };
628
628
  }
629
- }), [["__scopeId", "data-v-c5e89ed1"]]), as = {
630
- key: 0,
631
- id: "mobile-nav"
632
- }, os = ["aria-current"], ss = { class: "flex" }, cs = ["textContent"], ls = { class: "versions flex flex-col items-center justify-center py-2 mt-4 bg-role-surface-container text-xs text-role-on-surface-variant" }, us = ["textContent"], ds = /* @__PURE__ */ H({
633
- __name: "MobileNav",
634
- setup(e) {
635
- let t = yi(), { isMobile: n } = $i(), { navItems: r } = te(), i = K(() => Ze({ capabilityStore: t })), a = K(() => L(r).find((e) => e.active) || L(r)[0]);
636
- return (e, t) => {
637
- let o = F("oc-icon"), s = F("oc-button"), c = F("oc-list"), l = F("version-check"), u = F("oc-drop");
638
- return L(n) ? (Z(), X("nav", as, [q(s, {
639
- id: "mobile-nav-button",
640
- class: "p-1",
641
- appearance: "raw",
642
- "aria-current": "page"
643
- }, {
644
- default: P(() => [wr(W(a.value.name) + " ", 1), q(o, { name: "arrow-drop-down" })]),
645
- _: 1
646
- }), q(u, {
647
- title: e.$gettext("Navigation"),
648
- "drop-id": "mobile-nav-drop",
649
- toggle: "#mobile-nav-button",
650
- mode: "click",
651
- "padding-size": "small",
652
- "close-on-click": ""
653
- }, {
654
- default: P(() => [q(c, null, {
655
- default: P(() => [(Z(!0), X(U, null, M(L(r), (e, t) => (Z(), X("li", {
656
- key: t,
657
- class: "mobile-nav-item w-full",
658
- "aria-current": e.active ? "page" : null
659
- }, [q(s, {
660
- type: "router-link",
661
- appearance: e.active ? "filled" : "raw-inverse",
662
- "color-role": e.active ? "secondaryContainer" : "surface",
663
- "justify-content": "left",
664
- "no-hover": e.active,
665
- to: e.route,
666
- class: B(["block p-2", { "router-link-active": e.active }])
667
- }, {
668
- default: P(() => [Y("span", ss, [q(o, { name: e.icon }, null, 8, ["name"]), Y("span", {
669
- class: "ml-4 text",
670
- textContent: W(e.name)
671
- }, null, 8, cs)])]),
672
- _: 2
673
- }, 1032, [
674
- "appearance",
675
- "color-role",
676
- "no-hover",
677
- "to",
678
- "class"
679
- ])], 8, os))), 128))]),
680
- _: 1
681
- }), Y("div", ls, [Y("div", { textContent: W(i.value) }, null, 8, us), q(l)])]),
682
- _: 1
683
- }, 8, ["title"])])) : G("", !0);
684
- };
685
- }
686
- }), fs = H({
629
+ }), [["__scopeId", "data-v-c5e89ed1"]]), as = U({
687
630
  name: "AppBar",
688
631
  components: {
689
632
  BatchActions: No,
690
633
  ContextActions: Go,
691
- ViewOptions: is,
692
- MobileNav: ds
634
+ ViewOptions: is
693
635
  },
694
636
  props: {
695
637
  viewModeDefault: {
@@ -744,48 +686,48 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
744
686
  }
745
687
  },
746
688
  setup(e, { emit: t }) {
747
- let n = gi(), { $gettext: r } = Q(), { can: i } = _r(), a = Mi(), { requestExtensions: o } = dt(), { isSticky: s } = pt(), { isSideBarOpen: c } = $(ki()), l = fr(), { selectedResources: u } = $(l), d = K(() => e.space), { actions: p } = vt(), { actions: m } = Jn(), { actions: h } = _a(), { actions: g } = Cn(), { actions: _ } = Tt(), { actions: v } = me(), { actions: y } = at(), { actions: b } = f(), { actions: x } = se(), { actions: S } = zr(), { actions: C } = ne(), { actions: ee } = kn(), { actions: w } = vn(), { actions: T } = he(), { actions: te } = an(), E = R(0), D = Mn(et, "files-common-search"), O = K(() => Object.hasOwn(Ct(), "navigation") && i("create-all", "Share")), k = K(() => {
689
+ let n = hi(), { $gettext: r } = Q(), { can: i } = gr(), a = ji(), { requestExtensions: o } = ut(), { isSticky: s } = ft(), { isSideBarOpen: c } = $(Oi()), l = dr(), { selectedResources: u } = $(l), d = q(() => e.space), { actions: p } = _t(), { actions: m } = qn(), { actions: h } = _a(), { actions: g } = Sn(), { actions: _ } = wt(), { actions: v } = pe(), { actions: y } = it(), { actions: b } = f(), { actions: x } = oe(), { actions: S } = Rr(), { actions: C } = ne(), { actions: ee } = On(), { actions: w } = _n(), { actions: T } = me(), { actions: te } = rn(), E = z(0), D = jn($e, "files-common-search"), O = q(() => Object.hasOwn(St(), "navigation") && i("create-all", "Share")), k = q(() => {
748
690
  let e = [
749
- ...L(m),
750
- ...L(p),
751
- ...L(_),
752
- ...L(y),
753
- ...L(b),
754
- ...L(x),
755
- ...L(h),
756
- ...L(v),
757
- ...L(S),
758
- ...L(C)
691
+ ...R(m),
692
+ ...R(p),
693
+ ...R(_),
694
+ ...R(y),
695
+ ...R(b),
696
+ ...R(x),
697
+ ...R(h),
698
+ ...R(v),
699
+ ...R(S),
700
+ ...R(C)
759
701
  ];
760
702
  D.value || (e = [
761
703
  ...e,
762
- ...L(g),
763
- ...L(T),
764
- ...L(te),
765
- ...L(ee),
766
- ...L(w)
704
+ ...R(g),
705
+ ...R(T),
706
+ ...R(te),
707
+ ...R(ee),
708
+ ...R(w)
767
709
  ]);
768
710
  let t = o({
769
711
  id: "global.files.batch-actions",
770
712
  extensionType: "action"
771
713
  });
772
714
  return t.length && (e = [...e, ...t.map((e) => e.action)]), e.filter((e) => e.isVisible({
773
- space: L(d),
715
+ space: R(d),
774
716
  resources: l.selectedResources
775
717
  }));
776
- }), A = K(() => n.spaces.filter((e) => oo(e) || so(e))), re = zn("isMobileWidth"), j = Mn(ha, "files-trash-generic"), ie = K(() => !L(re) && e.breadcrumbs.length ? !0 : L(j) && L(A).length === 1 ? !1 : e.breadcrumbs.length > 1), ae = K(() => L(j) && L(A).length === 1 ? e.breadcrumbs.length <= 2 : e.breadcrumbs.length <= 1), M = K(() => L(d) && (so(L(d)) || uo(L(d))) ? 3 : 2), oe = (e) => {
777
- t(yn, e);
778
- }, ce = oa("title");
718
+ }), A = q(() => n.spaces.filter((e) => oo(e) || so(e))), re = jn(ha, "files-trash-generic"), j = q(() => R(re) && R(A).length === 1 ? !1 : e.breadcrumbs.length), ie = q(() => R(re) && R(A).length === 1 ? e.breadcrumbs.length <= 2 : e.breadcrumbs.length <= 1), ae = q(() => R(d) && (so(R(d)) || uo(R(d))) ? 3 : 2), M = (e) => {
719
+ t(vn, e);
720
+ }, N = oa("title");
779
721
  return {
780
722
  router: a,
781
723
  hasSharesNavigation: O,
782
724
  batchActions: k,
783
- showBreadcrumb: ie,
784
- showMobileNav: ae,
725
+ showBreadcrumb: j,
726
+ showMobileNav: ie,
785
727
  breadcrumbMaxWidth: E,
786
- breadcrumbTruncationOffset: M,
787
- fileDroppedBreadcrumb: oe,
788
- pageTitle: K(() => L(ce) ? r(L(ce)) : L(d)?.name || ""),
728
+ breadcrumbTruncationOffset: ae,
729
+ fileDroppedBreadcrumb: M,
730
+ pageTitle: q(() => R(N) ? r(R(N)) : R(d)?.name || ""),
789
731
  selectedResources: u,
790
732
  isSticky: s,
791
733
  isSideBarOpen: c
@@ -799,7 +741,7 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
799
741
  },
800
742
  computed: {
801
743
  showContextActions() {
802
- return hn(this.breadcrumbs).allowContextActions;
744
+ return mn(this.breadcrumbs).allowContextActions;
803
745
  },
804
746
  showBatchActions() {
805
747
  return this.hasBulkActions && (this.selectedResources.length >= 1 || ha(this.router, "files-trash-generic"));
@@ -818,75 +760,71 @@ var Go = /* @__PURE__ */ z(Uo, [["render", Wo]]), Ko = { class: "flex items-cent
818
760
  let e = document.getElementById("web-content-main")?.getBoundingClientRect().width || 0, t = document.getElementById("web-nav-sidebar")?.getBoundingClientRect().width || 0, n = document.getElementById("app-sidebar")?.getBoundingClientRect().width || 0, r = document.getElementById("files-app-bar-controls-right")?.clientWidth;
819
761
  this.breadcrumbMaxWidth = e - t - n - r, this.limitedScreenSpace = this.isSideBarOpen ? window.innerWidth <= 1280 : window.innerWidth <= 1e3;
820
762
  } }
821
- }), ps = { class: "files-topbar py-1 w-full" }, ms = ["textContent"], hs = {
822
- key: 2,
763
+ }), os = { class: "files-topbar py-1 w-full" }, ss = ["textContent"], cs = {
764
+ key: 1,
823
765
  id: "files-app-bar-controls-right",
824
766
  class: "flex"
825
- }, gs = { class: "files-app-bar-actions flex items-center justify-end mt-1 min-h-10 gap-2" }, _s = { class: "flex-1 flex justify-start items-center" }, vs = { key: 1 };
826
- function ys(e, t, n, r, i, a) {
827
- let o = F("oc-hidden-announcer"), s = F("context-actions"), c = F("oc-breadcrumb"), l = F("mobile-nav"), u = F("view-options"), d = F("batch-actions"), f = F("oc-spinner");
767
+ }, ls = { class: "files-app-bar-actions flex items-center justify-end mt-1 min-h-10 gap-2" }, us = { class: "flex-1 flex justify-start items-center" }, ds = { key: 1 };
768
+ function fs(e, t, n, r, i, a) {
769
+ let o = I("oc-hidden-announcer"), s = I("context-actions"), c = I("oc-breadcrumb"), l = I("view-options"), u = I("batch-actions"), d = I("oc-spinner");
828
770
  return Z(), X("div", {
829
771
  id: "files-app-bar",
830
772
  ref: "filesAppBar",
831
- class: B(["px-4 bg-role-surface rounded-t-xl [display:inherit] top-0 z-20", {
773
+ class: V(["px-4 bg-role-surface rounded-t-xl [display:inherit] top-0 z-20", {
832
774
  "files-app-bar-squashed": e.isSideBarOpen,
833
775
  sticky: e.isSticky
834
776
  }])
835
- }, [Y("div", ps, [
777
+ }, [Y("div", os, [
836
778
  Y("h1", {
837
779
  class: "sr-only",
838
- textContent: W(e.pageTitle)
839
- }, null, 8, ms),
840
- q(o, {
780
+ textContent: G(e.pageTitle)
781
+ }, null, 8, ss),
782
+ J(o, {
841
783
  announcement: e.selectedResourcesAnnouncement,
842
784
  level: "polite"
843
785
  }, null, 8, ["announcement"]),
844
- Y("div", { class: B(["flex items-center files-app-bar-controls min-h-12", {
845
- "justify-between": e.breadcrumbs.length || e.hasSharesNavigation,
846
- "justify-end": !e.breadcrumbs.length && !e.hasSharesNavigation
847
- }]) }, [
848
- e.showBreadcrumb ? (Z(), V(c, {
849
- key: 0,
850
- id: "files-breadcrumb",
851
- "context-menu-padding": "small",
852
- "show-context-actions": e.showContextActions,
853
- items: e.breadcrumbs,
854
- "max-width": e.breadcrumbMaxWidth,
855
- "truncation-offset": e.breadcrumbTruncationOffset,
856
- "mobile-breakpoint": e.isSideBarOpen ? "md" : "sm",
857
- onItemDroppedBreadcrumb: e.fileDroppedBreadcrumb
858
- }, {
859
- contextMenu: P(() => [q(s, { "action-options": {
860
- space: e.space,
861
- resources: e.breadcrumbsContextActionsItems.filter(Boolean)
862
- } }, null, 8, ["action-options"])]),
863
- _: 1
864
- }, 8, [
865
- "show-context-actions",
866
- "items",
867
- "max-width",
868
- "truncation-offset",
869
- "mobile-breakpoint",
870
- "onItemDroppedBreadcrumb"
871
- ])) : G("", !0),
872
- e.showMobileNav ? (Z(), V(l, { key: 1 })) : G("", !0),
873
- e.hasViewOptions ? (Z(), X("div", hs, [q(u, {
874
- "view-modes": e.viewModes,
875
- "has-hidden-files": e.hasHiddenFiles,
876
- "has-file-extensions": e.hasFileExtensions,
877
- "has-pagination": e.hasPagination,
878
- "per-page-storage-prefix": "files",
879
- "view-mode-default": e.viewModeDefault
880
- }, null, 8, [
881
- "view-modes",
882
- "has-hidden-files",
883
- "has-file-extensions",
884
- "has-pagination",
885
- "view-mode-default"
886
- ])])) : G("", !0)
887
- ], 2),
888
- e.hasSharesNavigation ? k(e.$slots, "navigation", { key: 0 }) : G("", !0),
889
- Y("div", gs, [Y("div", _s, [k(e.$slots, "actions", { limitedScreenSpace: e.limitedScreenSpace }), e.showBatchActions && !e.batchActionsLoading ? (Z(), V(d, {
786
+ Y("div", { class: V(["flex items-center files-app-bar-controls min-h-12", {
787
+ "justify-between": e.showBreadcrumb || e.hasSharesNavigation,
788
+ "justify-end": !e.showBreadcrumb && !e.hasSharesNavigation
789
+ }]) }, [e.showBreadcrumb ? (Z(), H(c, {
790
+ key: 0,
791
+ id: "files-breadcrumb",
792
+ "context-menu-padding": "small",
793
+ "show-context-actions": e.showContextActions,
794
+ items: e.breadcrumbs,
795
+ "max-width": e.breadcrumbMaxWidth,
796
+ "truncation-offset": e.breadcrumbTruncationOffset,
797
+ "mobile-breakpoint": e.isSideBarOpen ? "md" : "sm",
798
+ onItemDroppedBreadcrumb: e.fileDroppedBreadcrumb
799
+ }, {
800
+ contextMenu: F(() => [J(s, { "action-options": {
801
+ space: e.space,
802
+ resources: e.breadcrumbsContextActionsItems.filter(Boolean)
803
+ } }, null, 8, ["action-options"])]),
804
+ _: 1
805
+ }, 8, [
806
+ "show-context-actions",
807
+ "items",
808
+ "max-width",
809
+ "truncation-offset",
810
+ "mobile-breakpoint",
811
+ "onItemDroppedBreadcrumb"
812
+ ])) : K("", !0), e.hasViewOptions ? (Z(), X("div", cs, [J(l, {
813
+ "view-modes": e.viewModes,
814
+ "has-hidden-files": e.hasHiddenFiles,
815
+ "has-file-extensions": e.hasFileExtensions,
816
+ "has-pagination": e.hasPagination,
817
+ "per-page-storage-prefix": "files",
818
+ "view-mode-default": e.viewModeDefault
819
+ }, null, 8, [
820
+ "view-modes",
821
+ "has-hidden-files",
822
+ "has-file-extensions",
823
+ "has-pagination",
824
+ "view-mode-default"
825
+ ])])) : K("", !0)], 2),
826
+ e.hasSharesNavigation ? k(e.$slots, "navigation", { key: 0 }) : K("", !0),
827
+ Y("div", ls, [Y("div", us, [k(e.$slots, "actions", { limitedScreenSpace: e.limitedScreenSpace }), e.showBatchActions && !e.batchActionsLoading ? (Z(), H(u, {
890
828
  key: 0,
891
829
  actions: e.batchActions,
892
830
  "action-options": {
@@ -898,15 +836,15 @@ function ys(e, t, n, r, i, a) {
898
836
  "actions",
899
837
  "action-options",
900
838
  "limited-screen-space"
901
- ])) : e.showBatchActions && e.batchActionsLoading ? (Z(), X("div", vs, [q(f, { "aria-label": e.$gettext("Loading actions") }, null, 8, ["aria-label"])])) : G("", !0)])]),
839
+ ])) : e.showBatchActions && e.batchActionsLoading ? (Z(), X("div", ds, [J(d, { "aria-label": e.$gettext("Loading actions") }, null, 8, ["aria-label"])])) : K("", !0)])]),
902
840
  k(e.$slots, "content")
903
841
  ])], 2);
904
842
  }
905
- var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar self-center flex col-[1/4] row-2 sm:col-2 sm:row-1 [&_.parent-folder]:text-role-on-chrome" }, Ss = { class: "pl-4 pr-1 my-2 mx-auto sm:m-0 inline-flex items-center justify-between bg-role-chrome border border-role-on-chrome rounded-lg h-10 gap-4 w-full sm:w-fit" }, Cs = { class: "open-file-bar flex" }, ws = { class: "flex" }, Ts = {
843
+ var ps = /* @__PURE__ */ B(as, [["render", fs]]), ms = { class: "oc-app-top-bar self-center flex col-[1/4] row-2 sm:col-2 sm:row-1 [&_.parent-folder]:text-role-on-chrome" }, hs = { class: "pl-4 pr-1 my-2 mx-auto sm:m-0 inline-flex items-center justify-between bg-role-chrome border border-role-on-chrome rounded-lg h-10 gap-4 w-full sm:w-fit" }, gs = { class: "open-file-bar flex" }, _s = { class: "flex" }, vs = {
906
844
  key: 1,
907
845
  class: "flex items-center",
908
846
  "data-testid": "autosave-indicator"
909
- }, Es = /* @__PURE__ */ H({
847
+ }, ys = /* @__PURE__ */ U({
910
848
  __name: "AppTopBar",
911
849
  props: {
912
850
  dropDownMenuSections: { default: () => [] },
@@ -931,20 +869,21 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
931
869
  },
932
870
  emits: ["close"],
933
871
  setup(e) {
934
- let { $gettext: t, current: n } = Q(), r = fr(), i = Un(), { getMatchingSpace: a } = O(), { getParentFolderName: o, getPathPrefix: s, getParentFolderLinkIconAdditionalAttributes: c } = Ba(), l = K(() => r.areFileExtensionsShown), u = K(() => t("Show context menu")), d = K(() => e.isEditor && e.hasAutoSave && i.options.editor.autosaveEnabled), f = K(() => t("Autosave (every %{ duration })", { duration: vo.fromObject({ seconds: i.options.editor.autosaveInterval }, { locale: n }).toHuman() })), p = K(() => a(e.resource)), m = K(() => !co(L(p)));
872
+ let { $gettext: t, current: n } = Q(), r = dr(), i = Hn(), { getMatchingSpace: a } = O(), { getParentFolderName: o, getPathPrefix: s, getParentFolderLinkIconAdditionalAttributes: c } = Ba(), l = q(() => r.areFileExtensionsShown), u = q(() => t("Show context menu")), d = q(() => e.isEditor && e.hasAutoSave && i.options.editor.autosaveEnabled), f = q(() => t("Autosave (every %{ duration })", { duration: vo.fromObject({ seconds: i.options.editor.autosaveInterval }, { locale: n }).toHuman() })), p = q(() => a(e.resource)), m = q(() => !co(R(p)));
935
873
  return (n, r) => {
936
- let i = F("oc-icon"), a = F("oc-button"), p = F("oc-drop"), h = ni("oc-tooltip");
937
- return Z(), X("div", xs, [Y("div", Ss, [Y("div", Cs, [e.resource ? (Z(), V(y, {
874
+ let i = I("oc-icon"), a = I("oc-button"), p = I("oc-drop"), h = ti("oc-tooltip");
875
+ return Z(), X("div", ms, [Y("div", hs, [Y("div", gs, [e.resource ? (Z(), H(y, {
938
876
  key: 0,
939
877
  id: "app-top-bar-resource",
940
878
  class: "[&_.oc-resource-name]:max-w-60 xs:[&_.oc-resource-name]:max-w-full sm:[&_.oc-resource-name]:max-w-20 md:[&_.oc-resource-name]:max-w-60 [&_svg]:!fill-role-on-chrome [&_span]:text-role-on-chrome",
941
879
  "is-thumbnail-displayed": !1,
942
880
  "is-extension-displayed": l.value,
943
- "path-prefix": L(s)(e.resource),
881
+ "path-prefix": R(s)(e.resource),
944
882
  resource: e.resource,
945
- "parent-folder-name": L(o)(e.resource),
946
- "parent-folder-link-icon-additional-attributes": L(c)(e.resource),
883
+ "parent-folder-name": R(o)(e.resource),
884
+ "parent-folder-link-icon-additional-attributes": R(c)(e.resource),
947
885
  "is-path-displayed": m.value,
886
+ "is-favorite-displayed": !1,
948
887
  "is-resource-clickable": !1
949
888
  }, null, 8, [
950
889
  "is-extension-displayed",
@@ -953,38 +892,38 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
953
892
  "parent-folder-name",
954
893
  "parent-folder-link-icon-additional-attributes",
955
894
  "is-path-displayed"
956
- ])) : G("", !0)]), Y("div", ws, [
957
- e.dropDownMenuSections.length ? (Z(), X(U, { key: 0 }, [I((Z(), V(a, {
895
+ ])) : K("", !0)]), Y("div", _s, [
896
+ e.dropDownMenuSections.length ? (Z(), X(W, { key: 0 }, [L((Z(), H(a, {
958
897
  id: "oc-openfile-contextmenu-trigger",
959
898
  "aria-label": u.value,
960
899
  appearance: "raw-inverse",
961
900
  "color-role": "chrome",
962
901
  class: "p-1"
963
902
  }, {
964
- default: P(() => [q(i, { name: "more-2" })]),
903
+ default: F(() => [J(i, { name: "more-2" })]),
965
904
  _: 1
966
- }, 8, ["aria-label"])), [[h, u.value]]), q(p, {
905
+ }, 8, ["aria-label"])), [[h, u.value]]), J(p, {
967
906
  "drop-id": "oc-openfile-contextmenu",
968
907
  mode: "click",
969
908
  "padding-size": "small",
970
909
  toggle: "#oc-openfile-contextmenu-trigger",
971
910
  "close-on-click": "",
972
911
  title: e.resource.name,
973
- onClick: r[0] ||= J(() => {}, ["stop", "prevent"])
912
+ onClick: r[0] ||= Ki(() => {}, ["stop", "prevent"])
974
913
  }, {
975
- default: P(() => [q(Ho, {
914
+ default: F(() => [J(Ho, {
976
915
  "menu-sections": e.dropDownMenuSections,
977
916
  "action-options": e.dropDownActionOptions
978
917
  }, null, 8, ["menu-sections", "action-options"])]),
979
918
  _: 1
980
- }, 8, ["title"])], 64)) : G("", !0),
981
- d.value && !e.isReadOnly ? (Z(), X("span", Ts, [I(q(i, {
919
+ }, 8, ["title"])], 64)) : K("", !0),
920
+ d.value && !e.isReadOnly ? (Z(), X("span", vs, [L(J(i, {
982
921
  "accessible-label": f.value,
983
922
  name: "refresh",
984
- color: "white",
923
+ color: "var(--oc-role-on-chrome)",
985
924
  class: "ox-p-xs mx-1"
986
- }, null, 8, ["accessible-label"]), [[h, f.value]])])) : G("", !0),
987
- e.mainActions.length && e.resource ? (Z(), V(Ho, {
925
+ }, null, 8, ["accessible-label"]), [[h, f.value]])])) : K("", !0),
926
+ e.mainActions.length && e.resource ? (Z(), H(Ho, {
988
927
  key: 2,
989
928
  "menu-sections": [{
990
929
  name: "main-actions",
@@ -997,60 +936,60 @@ var bs = /* @__PURE__ */ z(fs, [["render", ys]]), xs = { class: "oc-app-top-bar
997
936
  "action-options": { resources: [e.resource] },
998
937
  appearance: "raw-inverse",
999
938
  "color-role": "chrome"
1000
- }, null, 8, ["menu-sections", "action-options"])) : G("", !0),
1001
- q(a, {
939
+ }, null, 8, ["menu-sections", "action-options"])) : K("", !0),
940
+ J(a, {
1002
941
  id: "app-top-bar-close",
1003
942
  appearance: "raw-inverse",
1004
943
  "color-role": "chrome",
1005
944
  class: "p-1",
1006
- "aria-label": L(t)("Close"),
945
+ "aria-label": R(t)("Close"),
1007
946
  onClick: r[1] ||= (e) => n.$emit("close")
1008
947
  }, {
1009
- default: P(() => [q(i, { name: "close" })]),
948
+ default: F(() => [J(i, { name: "close" })]),
1010
949
  _: 1
1011
950
  }, 8, ["aria-label"])
1012
951
  ])])]);
1013
952
  };
1014
953
  }
1015
- }), Ds = H({
954
+ }), bs = U({
1016
955
  name: "ErrorScreen",
1017
956
  props: { message: {
1018
957
  default: "",
1019
958
  type: String,
1020
959
  required: !1
1021
960
  } }
1022
- }), Os = { class: "text-center flex justify-center items-center h-full" }, ks = {
961
+ }), xs = { class: "text-center flex justify-center items-center h-full" }, Ss = {
1023
962
  key: 0,
1024
963
  class: "text-xl"
1025
964
  };
1026
- function As(e, t, n, r, i, a) {
1027
- let o = F("oc-icon");
1028
- return Z(), X("div", Os, [q(o, {
965
+ function Cs(e, t, n, r, i, a) {
966
+ let o = I("oc-icon");
967
+ return Z(), X("div", xs, [J(o, {
1029
968
  size: "xxlarge",
1030
969
  name: "error-warning",
1031
970
  "fill-type": "line"
1032
- }), e.message ? (Z(), X("p", ks, W(e.message), 1)) : G("", !0)]);
971
+ }), e.message ? (Z(), X("p", Ss, G(e.message), 1)) : K("", !0)]);
1033
972
  }
1034
- var js = /* @__PURE__ */ z(Ds, [["render", As]]), Ms = H({ name: "LoadingScreen" }), Ns = { class: "text-center flex justify-center items-center h-full" }, Ps = ["textContent"];
1035
- function Fs(e, t, n, r, i, a) {
1036
- let o = F("oc-spinner");
1037
- return Z(), X("div", Ns, [q(o, { size: "xlarge" }), Y("p", {
973
+ var ws = /* @__PURE__ */ B(bs, [["render", Cs]]), Ts = U({ name: "LoadingScreen" }), Es = { class: "text-center flex justify-center items-center h-full" }, Ds = ["textContent"];
974
+ function Os(e, t, n, r, i, a) {
975
+ let o = I("oc-spinner");
976
+ return Z(), X("div", Es, [J(o, { size: "xlarge" }), Y("p", {
1038
977
  class: "sr-only",
1039
- textContent: W(e.$gettext("Loading app"))
1040
- }, null, 8, Ps)]);
978
+ textContent: G(e.$gettext("Loading app"))
979
+ }, null, 8, Ds)]);
1041
980
  }
1042
- var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
981
+ var ks = /* @__PURE__ */ B(Ts, [["render", Os]]), As = [
1043
982
  "id",
1044
983
  "data-testid",
1045
984
  "tabindex",
1046
985
  "inert"
1047
- ], Rs = {
986
+ ], js = {
1048
987
  key: 0,
1049
- class: "sidebar-panel__header header grid grid-cols-[auto_1fr_auto] items-center pt-2 px-2"
1050
- }, zs = { class: "col-start-2 text-center my-0 text-lg" }, Bs = {
988
+ class: "sidebar-panel__header header grid grid-cols-[1fr_auto] items-center pt-2 px-2 pb-2"
989
+ }, Ms = { class: "sidebar-panel__header-info min-w-0" }, Ns = { class: "flex items-center gap-1 shrink-0" }, Ps = {
1051
990
  key: 0,
1052
991
  class: "mt-4"
1053
- }, Vs = /* @__PURE__ */ z(/* @__PURE__ */ H({
992
+ }, Fs = /* @__PURE__ */ B(/* @__PURE__ */ U({
1054
993
  __name: "SideBarPanels",
1055
994
  props: {
1056
995
  loading: { type: Boolean },
@@ -1064,98 +1003,90 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1064
1003
  "closePanel"
1065
1004
  ],
1066
1005
  setup(e, { emit: t }) {
1067
- let n = t, { $gettext: r } = Q(), i = K(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && t.isRoot?.(e.panelContext))), a = K(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && !t.isRoot?.(e.panelContext))), o = K(() => L(i).length ? [L(i)[0], ...L(a)] : L(a)), s = K(() => {
1006
+ let n = t, { $gettext: r } = Q(), i = q(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && t.isRoot?.(e.panelContext))), a = q(() => e.availablePanels.filter((t) => t.isVisible(e.panelContext) && !t.isRoot?.(e.panelContext))), o = q(() => R(i).length ? [R(i)[0], ...R(a)] : R(a)), s = q(() => {
1068
1007
  let t = e.activePanel?.split("#")[0];
1069
- return !t || !L(a).map((e) => e.name).includes(t) ? null : t;
1070
- }), c = K(() => L(s) !== null), l = K(() => L(s) === null), d = R(null), f = (e) => {
1008
+ return !t || !R(a).map((e) => e.name).includes(t) ? null : t;
1009
+ }), c = q(() => R(s) !== null), l = q(() => R(s) === null), d = z(null), f = (e) => {
1071
1010
  d.value = e;
1072
- }, p = K(() => L(c) ? L(s) : L(i)[0].name), m = K(() => L(i).length === 1 ? r("Back to %{panel} panel", { panel: L(i)[0].title(e.panelContext) }) : r("Back to main panels")), h = (e) => {
1011
+ }, p = q(() => R(c) ? R(s) : R(i)[0].name), m = q(() => R(i).length === 1 ? r("Back to %{panel} panel", { panel: R(i)[0].title(e.panelContext) }) : r("Back to main panels")), h = (e) => {
1073
1012
  n("selectPanel", e);
1074
1013
  }, g = () => {
1075
1014
  n("selectPanel", null);
1076
1015
  }, _ = () => {
1077
1016
  n("close");
1078
1017
  }, v = (e) => {
1079
- f(L(p)), h(e);
1018
+ f(R(p)), h(e);
1080
1019
  }, y = () => {
1081
- f(L(p)), g(), n("closePanel");
1020
+ f(R(p)), g(), n("closePanel");
1082
1021
  };
1083
1022
  return (t, n) => {
1084
- let f = F("oc-spinner"), h = F("oc-icon"), g = F("oc-button"), b = ni("oc-tooltip");
1085
- return e.loading ? (Z(), V(f, {
1023
+ let f = I("oc-spinner"), h = I("oc-icon"), g = I("oc-button"), b = ti("oc-tooltip");
1024
+ return e.loading ? (Z(), H(f, {
1086
1025
  key: 0,
1087
- "aria-label": L(r)("Loading sidebar content")
1088
- }, null, 8, ["aria-label"])) : (Z(!0), X(U, { key: 1 }, M(o.value, (n) => (Z(), X("div", {
1026
+ "aria-label": R(r)("Loading sidebar content")
1027
+ }, null, 8, ["aria-label"])) : (Z(!0), X(W, { key: 1 }, M(o.value, (n) => (Z(), X("div", {
1089
1028
  id: `sidebar-panel-${n.name}`,
1090
1029
  key: `panel-${n.name}`,
1091
1030
  "data-testid": `sidebar-panel-${n.name}`,
1092
1031
  tabindex: p.value === n.name ? -1 : null,
1093
- class: B(["sidebar-panel absolute top-0 grid grid-rows-[auto_auto_1fr] bg-role-surface w-full size-full max-w-full max-h-full motion-reduce:transition-none", {
1032
+ class: V(["sidebar-panel absolute top-0 grid grid-rows-[auto_1fr] bg-role-surface w-full size-full max-w-full max-h-full motion-reduce:transition-none", {
1094
1033
  "is-root-panel transition-[right] duration-[0.4s,0s]": n.isRoot?.(e.panelContext),
1095
1034
  "is-active-sub-panel": c.value && s.value === n.name,
1096
1035
  "is-active-root-panel transition-[right] duration-[0.4s,0s]": l.value && n.isRoot?.(e.panelContext)
1097
1036
  }]),
1098
1037
  inert: p.value !== n.name
1099
- }, [
1100
- [p.value, d.value].includes(n.name) ? (Z(), X("div", Rs, [
1101
- n.isRoot?.(e.panelContext) ? G("", !0) : I((Z(), V(g, {
1102
- key: 0,
1103
- class: "header__back col-start-1 p-1",
1104
- appearance: "raw",
1105
- "aria-label": m.value,
1106
- onClick: y
1107
- }, {
1108
- default: P(() => [q(h, {
1109
- name: "arrow-left-s",
1110
- "fill-type": "line"
1111
- })]),
1112
- _: 1
1113
- }, 8, ["aria-label"])), [[b, m.value]]),
1114
- Y("h2", zs, W(n.title(e.panelContext)), 1),
1115
- q(g, {
1116
- appearance: "raw",
1117
- class: "header__close col-start-3 p-1",
1118
- "aria-label": L(r)("Close file sidebar"),
1119
- onClick: _
1120
- }, {
1121
- default: P(() => [q(h, { name: "close" })]),
1122
- _: 1
1123
- }, 8, ["aria-label"])
1124
- ])) : G("", !0),
1125
- Y("div", null, [n.isRoot?.(e.panelContext) ? k(t.$slots, "rootHeader", { key: 0 }, void 0, !0) : k(t.$slots, "subHeader", { key: 1 }, void 0, !0)]),
1126
- Y("div", { class: B(["sidebar-panel__body flex flex-col p-2 overflow-y-auto overflow-x-hidden", [`sidebar-panel__body-${n.name}`]]) }, [Y("div", { class: B(["sidebar-panel__body-content", { "flex-1 ": !n.isRoot?.(e.panelContext) }]) }, [k(t.$slots, "body", {}, () => [(Z(!0), X(U, null, M(n.isRoot?.(e.panelContext) ? i.value : [n], (t, n) => (Z(), X("div", { key: `sidebar-panel-${t.name}` }, [(l.value ? t.isRoot?.(e.panelContext) : [p.value, d.value].includes(t.name)) ? (Z(), V(u(t.component), va({
1127
- key: 0,
1128
- class: [{ "multi-root-panel-separator mt-4 pt-2 border-t": n > 0 }, "rounded-sm"]
1129
- }, { ref_for: !0 }, t.componentAttrs?.(e.panelContext) || {}), null, 16, ["class"])) : G("", !0)]))), 128))], !0)], 2), n.isRoot?.(e.panelContext) && a.value.length > 0 ? (Z(), X("div", Bs, [(Z(!0), X(U, null, M(a.value, (t) => (Z(), V(g, {
1130
- id: `sidebar-panel-${t.name}-select`,
1131
- key: `panel-select-${t.name}`,
1132
- "data-testid": `sidebar-panel-${t.name}-select`,
1133
- appearance: "raw-inverse",
1134
- "color-role": "surface",
1135
- class: "!grid !grid-cols-[auto_1fr_auto] text-left px-2 w-full h-12",
1136
- onClick: (e) => v(t.name)
1137
- }, {
1138
- default: P(() => [
1139
- q(h, {
1140
- name: t.icon,
1141
- "fill-type": t.iconFillType
1142
- }, null, 8, ["name", "fill-type"]),
1143
- wr(" " + W(t.title(e.panelContext)) + " ", 1),
1144
- q(h, {
1145
- name: "arrow-right-s",
1146
- "fill-type": "line"
1147
- })
1148
- ]),
1149
- _: 2
1150
- }, 1032, [
1151
- "id",
1152
- "data-testid",
1153
- "onClick"
1154
- ]))), 128))])) : G("", !0)], 2)
1155
- ], 10, Ls))), 128));
1038
+ }, [[p.value, d.value].includes(n.name) ? (Z(), X("div", js, [Y("div", Ms, [n.isRoot?.(e.panelContext) ? k(t.$slots, "rootHeader", { key: 0 }, void 0, !0) : k(t.$slots, "subHeader", { key: 1 }, void 0, !0)]), Y("div", Ns, [n.isRoot?.(e.panelContext) ? K("", !0) : L((Z(), H(g, {
1039
+ key: 0,
1040
+ class: "header__back p-1",
1041
+ appearance: "raw",
1042
+ "aria-label": m.value,
1043
+ onClick: y
1044
+ }, {
1045
+ default: F(() => [J(h, {
1046
+ name: "arrow-left-s",
1047
+ "fill-type": "line"
1048
+ })]),
1049
+ _: 1
1050
+ }, 8, ["aria-label"])), [[b, m.value]]), J(g, {
1051
+ appearance: "raw",
1052
+ class: "header__close p-1",
1053
+ "aria-label": R(r)("Close file sidebar"),
1054
+ onClick: _
1055
+ }, {
1056
+ default: F(() => [J(h, { name: "close" })]),
1057
+ _: 1
1058
+ }, 8, ["aria-label"])])])) : K("", !0), Y("div", { class: V(["sidebar-panel__body flex flex-col px-2 pb-2 pt-0 overflow-y-auto overflow-x-hidden", [`sidebar-panel__body-${n.name}`]]) }, [Y("div", { class: V(["sidebar-panel__body-content", { "flex-1 ": !n.isRoot?.(e.panelContext) }]) }, [k(t.$slots, "body", {}, () => [(Z(!0), X(W, null, M(n.isRoot?.(e.panelContext) ? i.value : [n], (t, n) => (Z(), X("div", { key: `sidebar-panel-${t.name}` }, [(l.value ? t.isRoot?.(e.panelContext) : [p.value, d.value].includes(t.name)) ? (Z(), H(u(t.component), va({
1059
+ key: 0,
1060
+ class: [{ "multi-root-panel-separator mt-4 pt-2 border-t": n > 0 }, "rounded-sm"]
1061
+ }, { ref_for: !0 }, t.componentAttrs?.(e.panelContext) || {}), null, 16, ["class"])) : K("", !0)]))), 128))], !0)], 2), n.isRoot?.(e.panelContext) && a.value.length > 0 ? (Z(), X("div", Ps, [(Z(!0), X(W, null, M(a.value, (t) => (Z(), H(g, {
1062
+ id: `sidebar-panel-${t.name}-select`,
1063
+ key: `panel-select-${t.name}`,
1064
+ "data-testid": `sidebar-panel-${t.name}-select`,
1065
+ appearance: "raw-inverse",
1066
+ "color-role": "surface",
1067
+ class: "!grid !grid-cols-[auto_1fr_auto] text-left px-2 w-full h-12",
1068
+ onClick: (e) => v(t.name)
1069
+ }, {
1070
+ default: F(() => [
1071
+ J(h, {
1072
+ name: t.icon,
1073
+ "fill-type": t.iconFillType
1074
+ }, null, 8, ["name", "fill-type"]),
1075
+ Cr(" " + G(t.title(e.panelContext)) + " ", 1),
1076
+ J(h, {
1077
+ name: "arrow-right-s",
1078
+ "fill-type": "line"
1079
+ })
1080
+ ]),
1081
+ _: 2
1082
+ }, 1032, [
1083
+ "id",
1084
+ "data-testid",
1085
+ "onClick"
1086
+ ]))), 128))])) : K("", !0)], 2)], 10, As))), 128));
1156
1087
  };
1157
1088
  }
1158
- }), [["__scopeId", "data-v-839c4e7a"]]), Hs = /* @__PURE__ */ H({
1089
+ }), [["__scopeId", "data-v-ab6afab6"]]), Is = /* @__PURE__ */ U({
1159
1090
  inheritAttrs: !1,
1160
1091
  __name: "SideBar",
1161
1092
  props: {
@@ -1165,9 +1096,9 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1165
1096
  },
1166
1097
  emits: ["selectPanel", "close"],
1167
1098
  setup(e, { emit: t }) {
1168
- let n = t, r = ut(), { isMobile: i } = $i(), a = ki(), { focusSidebar: o } = a, { sideBarActivePanel: s } = $(a), c = K(() => {
1169
- if (L(i)) return {
1170
- ...L(r),
1099
+ let n = t, r = lt(), { isMobile: i } = $i(), a = Oi(), { focusSidebar: o } = a, { sideBarActivePanel: s } = $(a), c = q(() => {
1100
+ if (R(i)) return {
1101
+ ...R(r),
1171
1102
  isFocusTrapActive: !e.loading,
1172
1103
  hasFullHeight: !0,
1173
1104
  maxHeight: "max-h-[80vh]",
@@ -1184,10 +1115,10 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1184
1115
  "relative",
1185
1116
  "focus:shadow-none",
1186
1117
  "focus-visible:shadow-none",
1187
- ...L(r)?.class ? [L(r).class] : []
1118
+ ...R(r)?.class ? [R(r).class] : []
1188
1119
  ];
1189
1120
  return e.loading && t.push("flex", "justify-center", "items-center"), {
1190
- ...L(r),
1121
+ ...R(r),
1191
1122
  class: t
1192
1123
  };
1193
1124
  }), l = (e) => {
@@ -1200,26 +1131,26 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1200
1131
  a.openSideBarPanel(e), n("selectPanel", e);
1201
1132
  };
1202
1133
  return ee(() => {
1203
- L(i) && d();
1204
- }), (t, n) => (Z(), V(Kn, {
1134
+ R(i) && d();
1135
+ }), (t, n) => (Z(), H(Gn, {
1205
1136
  to: "#mobile-right-sidebar",
1206
- disabled: !L(i)
1207
- }, [(Z(), V(u(L(i) ? "oc-bottom-drawer" : "div"), va({
1137
+ disabled: !R(i)
1138
+ }, [(Z(), H(u(R(i) ? "oc-bottom-drawer" : "div"), va({
1208
1139
  id: "app-sidebar",
1209
1140
  tabindex: "-1"
1210
1141
  }, c.value), {
1211
- default: P(() => [q(Vs, {
1142
+ default: F(() => [J(Fs, {
1212
1143
  loading: e.loading,
1213
1144
  "available-panels": e.availablePanels,
1214
1145
  "panel-context": e.panelContext,
1215
- "active-panel": L(s),
1146
+ "active-panel": R(s),
1216
1147
  onSelectPanel: f,
1217
1148
  onClose: d,
1218
- onClosePanel: L(o)
1149
+ onClosePanel: R(o)
1219
1150
  }, {
1220
- body: P(() => [k(t.$slots, "body")]),
1221
- rootHeader: P(() => [k(t.$slots, "rootHeader")]),
1222
- subHeader: P(() => [k(t.$slots, "subHeader")]),
1151
+ body: F(() => [k(t.$slots, "body")]),
1152
+ rootHeader: F(() => [k(t.$slots, "rootHeader")]),
1153
+ subHeader: F(() => [k(t.$slots, "subHeader")]),
1223
1154
  _: 3
1224
1155
  }, 8, [
1225
1156
  "loading",
@@ -1231,72 +1162,74 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1231
1162
  _: 3
1232
1163
  }, 16))], 8, ["disabled"]));
1233
1164
  }
1234
- }), Us = { class: "grid items-center p-2" }, Ws = { class: "flex items-center text-sm" }, Gs = ["textContent"], Ks = ["textContent"], qs = /* @__PURE__ */ H({
1165
+ }), Ls = {
1166
+ key: 0,
1167
+ class: "flex items-center min-w-0 ml-2"
1168
+ }, Rs = ["textContent"], zs = /* @__PURE__ */ U({
1235
1169
  __name: "SpaceInfo",
1170
+ props: { spaceResource: { default: null } },
1236
1171
  setup(e) {
1237
- let t = zn("resource");
1238
- return (e, n) => {
1239
- let r = F("oc-icon");
1240
- return Z(), X("div", Us, [Y("div", Ws, [q(r, {
1172
+ let t = Rn("resource", null), n = Rn("space", null), r = q(() => e.spaceResource || R(t) || R(n));
1173
+ return (e, t) => {
1174
+ let n = I("oc-icon");
1175
+ return r.value ? (Z(), X("div", Ls, [J(n, {
1241
1176
  name: "layout-grid",
1242
- size: L(t).description ? "large" : "medium",
1243
- class: "block mr-2"
1244
- }, null, 8, ["size"]), Y("div", null, [Y("h3", {
1177
+ size: "small",
1178
+ class: "mr-2 shrink-0"
1179
+ }), Y("h2", {
1245
1180
  "data-testid": "space-info-name",
1246
- class: "font-semibold m-0 text-base break-all",
1247
- textContent: W(L(t).name)
1248
- }, null, 8, Gs), Y("span", {
1249
- "data-testid": "space-info-subtitle",
1250
- textContent: W(L(t).description)
1251
- }, null, 8, Ks)])])]);
1181
+ class: "font-semibold m-0 text-base min-w-0 flex-1 truncate",
1182
+ textContent: G(r.value.name)
1183
+ }, null, 8, Rs)])) : K("", !0);
1252
1184
  };
1253
1185
  }
1254
- }), Js = { class: "flex justify-between p-2" }, Ys = { class: "flex items-center" }, Xs = {
1186
+ }), Bs = {
1187
+ key: 0,
1188
+ class: "flex justify-between min-w-0 ml-2"
1189
+ }, Vs = { class: "flex items-center min-w-0" }, Hs = { class: "min-w-0" }, Us = {
1255
1190
  "data-testid": "files-info-name",
1256
- class: "font-semibold m-0 text-base break-all"
1257
- }, Zs = /* @__PURE__ */ H({
1191
+ class: "font-semibold m-0 text-base min-w-0"
1192
+ }, Ws = /* @__PURE__ */ U({
1258
1193
  __name: "FileInfo",
1259
- props: { isSubPanelActive: {
1260
- type: Boolean,
1261
- default: !0
1262
- } },
1194
+ props: { isSubPanelActive: { type: Boolean } },
1263
1195
  setup(e) {
1264
- let t = fr(), { isPersonalSpaceRoot: n } = O(), r = zn("resource"), i = zn("space"), a = K(() => t.areFileExtensionsShown), o = K(() => n(L(r)) ? L(i).name : L(r).name);
1265
- return (t, n) => (Z(), X("div", Js, [Y("div", Ys, [e.isSubPanelActive ? (Z(), V(rn, {
1266
- key: 0,
1267
- resource: L(r),
1196
+ let t = dr(), { isPersonalSpaceRoot: n } = O(), r = Rn("resource"), i = Rn("space"), a = q(() => t.areFileExtensionsShown), o = q(() => R(r) ? n(R(r)) && R(i)?.name || R(r).name : "");
1197
+ return (e, t) => R(r) ? (Z(), X("div", Bs, [Y("div", Vs, [J(nn, {
1198
+ resource: R(r),
1268
1199
  size: "large",
1269
- class: "mr-2 relative"
1270
- }, null, 8, ["resource"])) : G("", !0), Y("div", null, [Y("h3", Xs, [q(un, {
1200
+ class: "mr-2 relative shrink-0"
1201
+ }, null, 8, ["resource"]), Y("div", Hs, [Y("h2", Us, [J(ln, {
1271
1202
  name: o.value,
1272
- extension: L(r).extension,
1273
- type: L(r).type,
1274
- "full-path": L(r).webDavPath,
1203
+ extension: R(r).extension,
1204
+ type: R(r).type,
1205
+ "full-path": R(r).webDavPath,
1275
1206
  "is-extension-displayed": a.value,
1276
1207
  "is-path-displayed": !1,
1277
- "truncate-name": !1,
1278
- class: "[&_span]:break-all"
1208
+ "truncate-name": !0,
1209
+ "is-favorite": R(r).starred,
1210
+ class: "block min-w-0"
1279
1211
  }, null, 8, [
1280
1212
  "name",
1281
1213
  "extension",
1282
1214
  "type",
1283
1215
  "full-path",
1284
- "is-extension-displayed"
1285
- ])])])])]));
1216
+ "is-extension-displayed",
1217
+ "is-favorite"
1218
+ ])])])])])) : K("", !0);
1286
1219
  }
1287
- }), Qs = /* @__PURE__ */ H({
1220
+ }), Gs = /* @__PURE__ */ U({
1288
1221
  __name: "FileSideBar",
1289
1222
  props: { space: { default: () => void 0 } },
1290
1223
  setup(e) {
1291
- let t = Mi(), n = tn(), r = dt(), i = gi(), a = Mr(), o = Un(), s = Xi(), { canListShares: c } = or(), { canListVersions: l } = Yn(), u = fr(), { currentFolder: d } = $(u), { isSideBarOpen: f, sideBarActivePanel: p } = $(ki()), m = R(), h = R([]), g = R([]), v = R([]), { selectedResources: y } = Ti(), b = R(!1), x = K(() => L(b)), S = K(() => L(y).length === 0 ? {
1224
+ let t = ji(), n = en(), r = ut(), i = hi(), a = jr(), o = Hn(), s = Xi(), { canListShares: c } = ar(), { canListVersions: l } = Jn(), u = dr(), { currentFolder: d } = $(u), { isSideBarOpen: f, sideBarActivePanel: p } = $(Oi()), m = z(), h = z([]), g = z([]), v = z([]), { selectedResources: y } = wi(), b = z(!1), x = q(() => R(b)), S = q(() => R(y).length === 0 ? {
1292
1225
  root: e.space,
1293
1226
  parent: null,
1294
- items: L(d)?.id ? [L(d)] : []
1227
+ items: R(d)?.id ? [R(d)] : []
1295
1228
  } : {
1296
1229
  root: e.space,
1297
- parent: L(d),
1298
- items: L(y)
1299
- }), C = Mn(Sa, "files-shares-with-me"), ee = Mn(Sa, "files-shares-with-others"), w = Mn(Sa, "files-shares-via-link"), T = $r(t, "files-spaces-projects"), te = Mn(et, "files-common-favorites"), E = Mn(et, "files-common-search"), D = K(() => L(S).items?.length === 1 && !so(L(S).items[0])), O = K(() => L(S).items?.length === 1 && so(L(S).items[0])), k = K(() => L(C) || L(ee) || L(w)), A = K(() => L(k) || L(E) || L(te)), ne = K(() => r.requestExtensions({
1230
+ parent: R(d),
1231
+ items: R(y)
1232
+ }), C = jn(Sa, "files-shares-with-me"), ee = jn(Sa, "files-shares-with-others"), w = jn(Sa, "files-shares-via-link"), T = Qr(t, "files-spaces-projects"), te = jn($e, "files-common-favorites"), E = jn($e, "files-common-search"), D = q(() => R(S).items?.length === 1 && !so(R(S).items[0])), O = q(() => R(S).items?.length === 1 && so(R(S).items[0])), k = q(() => R(C) || R(ee) || R(w)), A = q(() => R(k) || R(E) || R(te)), ne = q(() => r.requestExtensions({
1300
1233
  id: "global.files.sidebar",
1301
1234
  extensionType: "sidebarPanel"
1302
1235
  }).map((e) => e.panel)), re = go(function* (e, t) {
@@ -1319,14 +1252,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1319
1252
  })) || [], s.isAppEnabled("open-cloud-mesh")) {
1320
1253
  let { allowedRoles: e } = yield* Qa(f.listPermissions(p, c.fileId, a.graphRoles, {
1321
1254
  filter: "@libre.graph.permissions.roles.allowedValues/rolePermissions/any(p:contains(p/condition, '@Subject.UserType==\"Federated\"'))",
1322
- select: [Rr.LibreGraphPermissionsRolesAllowedValues]
1255
+ select: [Lr.LibreGraphPermissionsRolesAllowedValues]
1323
1256
  }, { signal: r }));
1324
1257
  v.value = e?.map((e) => ({
1325
1258
  ...e,
1326
1259
  icon: b.find((t) => t.id === e.id)?.icon
1327
1260
  })) || [];
1328
1261
  }
1329
- !L(A) && !L(T) && (l.forEach((e) => {
1262
+ !R(A) && !R(T) && (l.forEach((e) => {
1330
1263
  _.some((t) => t.id === e.id) || _.push({
1331
1264
  ...e,
1332
1265
  indirect: !0
@@ -1336,14 +1269,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1336
1269
  ...e,
1337
1270
  indirect: !0
1338
1271
  });
1339
- })), et(t, "files-common-search") && (yield u.loadAncestorMetaData({
1340
- folder: L(c),
1272
+ })), $e(t, "files-common-search") && (yield u.loadAncestorMetaData({
1273
+ folder: R(c),
1341
1274
  space: e.space,
1342
1275
  client: n.webdav,
1343
1276
  signal: r
1344
1277
  }));
1345
1278
  let x = [...l, ...d].map(({ resourceId: e }) => e), S = Object.values(u.ancestorMetaData).filter(({ id: t, path: n }) => t === c.id || x.includes(t) || no(c) ? !1 : oo(e.space) ? n !== "/" : !0).map(({ id: e }) => e);
1346
- L(A) && so(e.space) && !so(c) && S.push(e.space.id);
1279
+ R(A) && so(e.space) && !so(c) && S.push(e.space.id);
1347
1280
  let C = new ho({ concurrency: o.options.concurrentRequests.shares.list }), ee = [...new Set(S)].map((e) => C.add(() => n.graphAuthenticated.permissions.listPermissions(p, e, a.graphRoles, {}, { signal: r }).then((e) => {
1348
1281
  let t = e.shares.map((e) => ({
1349
1282
  ...e,
@@ -1352,16 +1285,16 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1352
1285
  _.push(...t.filter(to)), y.push(...t.filter(ro));
1353
1286
  })));
1354
1287
  yield Promise.allSettled(ee), a.setCollaboratorShares(_), a.setLinkShares(y), a.setLoading(!1);
1355
- }).restartable(), ie = R();
1356
- N(() => [...L(S).items, f], async (t, n) => {
1357
- if (L(S).items?.length !== 1) return;
1358
- if (!L(f)) {
1288
+ }).restartable(), ie = z();
1289
+ P(() => [...R(S).items, f], async (t, n) => {
1290
+ if (R(S).items?.length !== 1) return;
1291
+ if (!R(f)) {
1359
1292
  ie.value = void 0, h.value = [];
1360
1293
  return;
1361
1294
  }
1362
1295
  let r = t?.[0], i = n?.[0];
1363
- if (r?.id === i?.id && r?.mdate === L(ie)) return;
1364
- let a = L(S).items[0];
1296
+ if (r?.id === i?.id && r?.mdate === R(ie)) return;
1297
+ let a = R(S).items[0];
1365
1298
  if (ie.value = a.mdate, re.isRunning && re.cancelAll(), l({
1366
1299
  space: e.space,
1367
1300
  resource: a
@@ -1374,14 +1307,14 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1374
1307
  immediate: !0,
1375
1308
  deep: !0
1376
1309
  });
1377
- let ae = K(() => L(S).items.map((e) => e.id));
1378
- return N(() => [ae, f], async () => {
1379
- if (!L(f) || !L(S).items?.length) {
1310
+ let ae = q(() => R(S).items.map((e) => e.id));
1311
+ return P(() => [ae, f], async () => {
1312
+ if (!R(f) || !R(S).items?.length) {
1380
1313
  a.pruneShares(), m.value = null;
1381
1314
  return;
1382
1315
  }
1383
- if (L(S).items?.length !== 1) return;
1384
- let t = L(S).items[0];
1316
+ if (R(S).items?.length !== 1) return;
1317
+ let t = R(S).items[0];
1385
1318
  if (b.value = !0, so(t) && await i.loadGraphPermissions({
1386
1319
  ids: [t.id],
1387
1320
  graphClient: n.graphAuthenticated
@@ -1411,7 +1344,7 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1411
1344
  }, {
1412
1345
  deep: !0,
1413
1346
  immediate: !0
1414
- }), Yt("resource", _(m)), Yt("versions", _(h)), Yt("space", K(() => e.space)), Yt("availableInternalShareRoles", _(g)), Yt("availableExternalShareRoles", _(v)), Yt("versionsLoading", K(() => re.isRunning)), (e, t) => L(f) ? (Z(), V(Hs, va({
1347
+ }), Jt("resource", _(m)), Jt("versions", _(h)), Jt("space", q(() => e.space)), Jt("availableInternalShareRoles", _(g)), Jt("availableExternalShareRoles", _(v)), Jt("versionsLoading", q(() => re.isRunning)), (e, t) => R(f) ? (Z(), H(Is, va({
1415
1348
  key: 0,
1416
1349
  ref: "sidebar",
1417
1350
  class: "files-side-bar z-30",
@@ -1419,24 +1352,22 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1419
1352
  "panel-context": S.value,
1420
1353
  loading: x.value
1421
1354
  }, e.$attrs, { "data-custom-key-bindings-disabled": "true" }), {
1422
- rootHeader: P(() => [D.value ? (Z(), V(Zs, {
1355
+ rootHeader: F(() => [D.value ? (Z(), H(Ws, {
1423
1356
  key: 0,
1424
- class: "px-2 pt-2",
1425
1357
  "is-sub-panel-active": !1
1426
- })) : O.value ? (Z(), V(qs, { key: 1 })) : G("", !0)]),
1427
- subHeader: P(() => [D.value ? (Z(), V(Zs, {
1358
+ })) : O.value ? (Z(), H(zs, { key: 1 })) : K("", !0)]),
1359
+ subHeader: F(() => [D.value ? (Z(), H(Ws, {
1428
1360
  key: 0,
1429
- class: "px-2 pt-2",
1430
1361
  "is-sub-panel-active": !0
1431
- })) : O.value ? (Z(), V(qs, { key: 1 })) : G("", !0)]),
1362
+ })) : O.value ? (Z(), H(zs, { key: 1 })) : K("", !0)]),
1432
1363
  _: 1
1433
1364
  }, 16, [
1434
1365
  "available-panels",
1435
1366
  "panel-context",
1436
1367
  "loading"
1437
- ])) : G("", !0);
1368
+ ])) : K("", !0);
1438
1369
  }
1439
- }), $s = /* @__PURE__ */ ye(An(), 1), ec = H({
1370
+ }), Ks = /* @__PURE__ */ ve(kn(), 1), qs = U({
1440
1371
  name: "DatePickerModal",
1441
1372
  props: {
1442
1373
  modal: {
@@ -1460,7 +1391,7 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1460
1391
  },
1461
1392
  emits: ["confirm", "cancel"],
1462
1393
  setup() {
1463
- let { currentTheme: e } = $(za()), t = R(), n = R(!0);
1394
+ let { currentTheme: e } = $(za()), t = z(), n = z(!0);
1464
1395
  return {
1465
1396
  confirmDisabled: n,
1466
1397
  onDateChanged: ({ date: e, error: r }) => {
@@ -1470,10 +1401,10 @@ var Is = /* @__PURE__ */ z(Ms, [["render", Fs]]), Ls = [
1470
1401
  dateTime: t
1471
1402
  };
1472
1403
  }
1473
- }), tc = { class: "flex justify-end items-center mt-2" };
1474
- function nc(e, t, n, r, i, a) {
1475
- let o = F("oc-datepicker"), s = F("oc-button");
1476
- return Z(), X(U, null, [q(o, {
1404
+ }), Js = { class: "flex justify-end items-center mt-2" };
1405
+ function Ys(e, t, n, r, i, a) {
1406
+ let o = I("oc-datepicker"), s = I("oc-button");
1407
+ return Z(), X(W, null, [J(o, {
1477
1408
  label: e.$gettext("Expiration date"),
1478
1409
  type: "date",
1479
1410
  "min-date": e.minDate,
@@ -1489,17 +1420,17 @@ function nc(e, t, n, r, i, a) {
1489
1420
  "is-clearable",
1490
1421
  "is-dark",
1491
1422
  "onDateChanged"
1492
- ]), Y("div", tc, [q(s, {
1423
+ ]), Y("div", Js, [J(s, {
1493
1424
  disabled: e.confirmDisabled,
1494
1425
  class: "oc-modal-body-actions-confirm ml-2",
1495
1426
  appearance: "filled",
1496
1427
  onClick: t[0] ||= (t) => e.$emit("confirm", e.dateTime)
1497
1428
  }, {
1498
- default: P(() => [wr(W(e.$gettext("Confirm")), 1)]),
1429
+ default: F(() => [Cr(G(e.$gettext("Confirm")), 1)]),
1499
1430
  _: 1
1500
1431
  }, 8, ["disabled"])])], 64);
1501
1432
  }
1502
- var rc = /* @__PURE__ */ z(ec, [["render", nc]]), ic = H({
1433
+ var Xs = /* @__PURE__ */ B(qs, [["render", Ys]]), Zs = U({
1503
1434
  name: "UnsavedChangesModal",
1504
1435
  props: {
1505
1436
  modal: {
@@ -1518,73 +1449,73 @@ var rc = /* @__PURE__ */ z(ec, [["render", nc]]), ic = H({
1518
1449
  t(e.modal.id), e.closeCallback();
1519
1450
  } };
1520
1451
  }
1521
- }), ac = ["textContent"], oc = { class: "flex justify-end items-center mt-4" }, sc = { class: "oc-modal-body-actions-grid" };
1522
- function cc(e, t, n, r, i, a) {
1523
- let o = F("oc-button");
1524
- return Z(), X(U, null, [
1452
+ }), Qs = ["textContent"], $s = { class: "flex justify-end items-center mt-4" }, ec = { class: "oc-modal-body-actions-grid" };
1453
+ function tc(e, t, n, r, i, a) {
1454
+ let o = I("oc-button");
1455
+ return Z(), X(W, null, [
1525
1456
  Y("span", {
1526
1457
  class: "inline-block mb-4",
1527
- textContent: W(e.$gettext("Your changes were not saved. Do you want to save them?"))
1528
- }, null, 8, ac),
1458
+ textContent: G(e.$gettext("Your changes were not saved. Do you want to save them?"))
1459
+ }, null, 8, Qs),
1529
1460
  t[2] ||= Y("div", { class: "my-4" }, null, -1),
1530
- Y("div", oc, [Y("div", sc, [
1531
- q(o, {
1461
+ Y("div", $s, [Y("div", ec, [
1462
+ J(o, {
1532
1463
  class: "oc-modal-body-actions-cancel ml-2",
1533
1464
  onClick: t[0] ||= (t) => e.$emit("cancel")
1534
1465
  }, {
1535
- default: P(() => [wr(W(e.$gettext("Cancel")), 1)]),
1466
+ default: F(() => [Cr(G(e.$gettext("Cancel")), 1)]),
1536
1467
  _: 1
1537
1468
  }),
1538
- q(o, {
1469
+ J(o, {
1539
1470
  class: "oc-modal-body-actions-secondary ml-2",
1540
1471
  onClick: e.onClose
1541
1472
  }, {
1542
- default: P(() => [wr(W(e.$gettext("Don't Save")), 1)]),
1473
+ default: F(() => [Cr(G(e.$gettext("Don't Save")), 1)]),
1543
1474
  _: 1
1544
1475
  }, 8, ["onClick"]),
1545
- q(o, {
1476
+ J(o, {
1546
1477
  class: "oc-modal-body-actions-confirm ml-2",
1547
1478
  appearance: "filled",
1548
1479
  onClick: t[1] ||= (t) => e.$emit("confirm")
1549
1480
  }, {
1550
- default: P(() => [wr(W(e.$gettext("Save")), 1)]),
1481
+ default: F(() => [Cr(G(e.$gettext("Save")), 1)]),
1551
1482
  _: 1
1552
1483
  })
1553
1484
  ])])
1554
1485
  ], 64);
1555
1486
  }
1556
- var lc = /* @__PURE__ */ z(ic, [["render", cc]]), uc = /\s/;
1557
- function dc(e) {
1558
- for (var t = e.length; t-- && uc.test(e.charAt(t)););
1487
+ var nc = /* @__PURE__ */ B(Zs, [["render", tc]]), rc = /\s/;
1488
+ function ic(e) {
1489
+ for (var t = e.length; t-- && rc.test(e.charAt(t)););
1559
1490
  return t;
1560
1491
  }
1561
1492
  //#endregion
1562
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js
1563
- var fc = /^\s+/;
1564
- function pc(e) {
1565
- return e && e.slice(0, dc(e) + 1).replace(fc, "");
1493
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
1494
+ var ac = /^\s+/;
1495
+ function oc(e) {
1496
+ return e && e.slice(0, ic(e) + 1).replace(ac, "");
1566
1497
  }
1567
1498
  //#endregion
1568
- //#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js
1569
- var mc = NaN, hc = /^[-+]0x[0-9a-f]+$/i, gc = /^0b[01]+$/i, _c = /^0o[0-7]+$/i, vc = parseInt;
1570
- function yc(e) {
1499
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
1500
+ var sc = NaN, cc = /^[-+]0x[0-9a-f]+$/i, lc = /^0b[01]+$/i, uc = /^0o[0-7]+$/i, dc = parseInt;
1501
+ function fc(e) {
1571
1502
  if (typeof e == "number") return e;
1572
- if (ie(e)) return mc;
1573
- if (le(e)) {
1503
+ if (ie(e)) return sc;
1504
+ if (ce(e)) {
1574
1505
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
1575
- e = le(t) ? t + "" : t;
1506
+ e = ce(t) ? t + "" : t;
1576
1507
  }
1577
1508
  if (typeof e != "string") return e === 0 ? e : +e;
1578
- e = pc(e);
1579
- var n = gc.test(e);
1580
- return n || _c.test(e) ? vc(e.slice(2), n ? 2 : 8) : hc.test(e) ? mc : +e;
1509
+ e = oc(e);
1510
+ var n = lc.test(e);
1511
+ return n || uc.test(e) ? dc(e.slice(2), n ? 2 : 8) : cc.test(e) ? sc : +e;
1581
1512
  }
1582
1513
  //#endregion
1583
1514
  //#region src/components/AppTemplates/AppWrapper.vue?vue&type=script&setup=true&lang.ts
1584
- var bc = ["id"], xc = ["textContent"], Sc = {
1515
+ var pc = ["id"], mc = ["textContent"], hc = {
1585
1516
  key: 2,
1586
1517
  class: "flex size-full"
1587
- }, Cc = "app.app-wrapper.app-top-bar", wc = /* @__PURE__ */ H({
1518
+ }, gc = "app.app-wrapper.app-top-bar", _c = /* @__PURE__ */ U({
1588
1519
  __name: "AppWrapper",
1589
1520
  props: {
1590
1521
  applicationId: {},
@@ -1601,76 +1532,76 @@ var bc = ["id"], xc = ["textContent"], Sc = {
1601
1532
  }
1602
1533
  },
1603
1534
  setup(e) {
1604
- let { $gettext: t, current: n } = Q(), i = Xi(), { showMessage: a, showErrorMessage: o } = Ne(), s = Co(), c = xr(), l = tn(), u = Jt(), { getResourceContext: d } = Pa(), { selectedResources: p } = Ti(), { dispatchModal: m } = Ma(), h = gi(), g = Un(), _ = fr(), v = Mr(), y = Me(), { isMobile: b } = $i(), { isSideBarOpen: x } = $(ki()), { actions: S } = ba({ appId: e.applicationId }), { actions: C } = Cr(), { actions: ee } = f(), { actions: w } = ui(), { actions: T } = Ai(), { actions: te } = me(), E = K(() => !!e.wrappedComponent.emits?.includes("update:resource")), O = R(), A = R(), ne = R(""), re = R(""), j = R(!L(E)), ie = R(), ae = R(!1), M = R(), oe = R(), se = "", ce = null, { registerExtensions: le, unregisterExtensions: ue } = dt();
1605
- le(K(() => L(j) || L(ie) || !L(O) ? [] : [{
1606
- id: Cc,
1535
+ let { $gettext: t, current: n } = Q(), i = Xi(), { showMessage: a, showErrorMessage: o } = Me(), s = Co(), c = br(), l = en(), u = qt(), { getResourceContext: d } = Pa(), { selectedResources: p } = wi(), { dispatchModal: m } = Ma(), h = hi(), g = Hn(), _ = dr(), v = jr(), y = je(), { isMobile: b } = $i(), { isSideBarOpen: x } = $(Oi()), { actions: S } = ba({ appId: e.applicationId }), { actions: C } = Sr(), { actions: ee } = f(), { actions: w } = li(), { actions: T } = ki(), { actions: te } = pe(), E = q(() => !!e.wrappedComponent.emits?.includes("update:resource")), O = z(), A = z(), ne = z(""), re = z(""), j = z(!R(E)), ie = z(), ae = z(!1), M = z(), N = z(), oe = "", se = null, { registerExtensions: ce, unregisterExtensions: le } = ut();
1536
+ ce(q(() => R(j) || R(ie) || !R(O) ? [] : [{
1537
+ id: gc,
1607
1538
  type: "customComponent",
1608
1539
  extensionPointIds: ["app.runtime.header.left"],
1609
- content: Es,
1540
+ content: ys,
1610
1541
  componentProps: () => ({
1611
- resource: L(O),
1612
- isReadOnly: L(ae),
1613
- isEditor: L(fe),
1542
+ resource: R(O),
1543
+ isReadOnly: R(ae),
1544
+ isEditor: R(de),
1614
1545
  hasAutoSave: !e.disableAutoSave,
1615
- mainActions: L(rt),
1616
- dropDownMenuSections: L(nt),
1617
- dropDownActionOptions: L(Ye),
1546
+ mainActions: R(nt),
1547
+ dropDownMenuSections: R(tt),
1548
+ dropDownActionOptions: R(Je),
1618
1549
  onClose: () => {
1619
- ve();
1550
+ _e();
1620
1551
  }
1621
1552
  })
1622
1553
  }]));
1623
- let { actions: de } = Ii({ content: oe }), fe = K(() => !!e.wrappedComponent.emits?.includes("update:currentContent")), pe = (t) => !!Object.keys(e.wrappedComponent.props).includes(t), he = K(() => L(oe) !== L(M)), ge = (e) => {
1554
+ let { actions: ue } = Fi({ content: N }), de = q(() => !!e.wrappedComponent.emits?.includes("update:currentContent")), fe = (t) => !!Object.keys(e.wrappedComponent.props).includes(t), me = q(() => R(N) !== R(M)), he = (e) => {
1624
1555
  e.preventDefault();
1625
1556
  };
1626
- N(he, (e) => {
1627
- e ? window.addEventListener("beforeunload", ge) : window.removeEventListener("beforeunload", ge);
1557
+ P(me, (e) => {
1558
+ e ? window.addEventListener("beforeunload", he) : window.removeEventListener("beforeunload", he);
1628
1559
  });
1629
- let { applicationConfig: _e, closeApp: ve, currentFileContext: ye, getFileContents: be, getFileInfo: xe, getUrlForResource: Se, putFileContents: Ce, replaceInvalidFileRoute: we, revokeUrl: Te, activeFiles: Ee, loadFolderForFileContext: De, isFolderLoading: Oe } = Yr({ applicationId: e.applicationId }), { applicationMeta: ke } = Xe({
1560
+ let { applicationConfig: ge, closeApp: _e, currentFileContext: ve, getFileContents: ye, getFileInfo: be, getUrlForResource: xe, putFileContents: Se, replaceInvalidFileRoute: Ce, revokeUrl: we, activeFiles: Te, loadFolderForFileContext: Ee, isFolderLoading: De } = Jr({ applicationId: e.applicationId }), { applicationMeta: Oe } = Ye({
1630
1561
  applicationId: e.applicationId,
1631
1562
  appsStore: i
1632
- }), Ae = K(() => L(ke).meta?.fileSizeLimit), je = K(() => {
1633
- let { name: e } = L(ke);
1563
+ }), ke = q(() => R(Oe).meta?.fileSizeLimit), Ae = q(() => {
1564
+ let { name: e } = R(Oe);
1634
1565
  return t("%{appName} for %{fileName}", {
1635
1566
  appName: t(e),
1636
- fileName: L(L(ye).fileName)
1567
+ fileName: R(R(ve).fileName)
1637
1568
  });
1638
- }), Pe = vr("driveAliasAndItem"), Fe = r("fileId"), Ie = K(() => Re(L(Fe))), Le = async () => {
1639
- let e = L(Ie), { space: t, path: n } = await d(e), r = t.getDriveAliasAndItem({ path: n });
1569
+ }), Ne = _r("driveAliasAndItem"), Pe = r("fileId"), Fe = q(() => Le(R(Pe))), Ie = async () => {
1570
+ let e = R(Fe), { space: t, path: n } = await d(e), r = t.getDriveAliasAndItem({ path: n });
1640
1571
  return oo(t) ? s.push({
1641
1572
  params: {
1642
- ...L(c).params,
1573
+ ...R(c).params,
1643
1574
  driveAliasAndItem: r
1644
1575
  },
1645
1576
  query: {
1646
- ...L(c).query,
1577
+ ...R(c).query,
1647
1578
  fileId: e,
1648
1579
  contextRouteName: "files-spaces-generic",
1649
- contextRouteParams: { driveAliasAndItem: (0, $s.dirname)(r) }
1580
+ contextRouteParams: { driveAliasAndItem: (0, Ks.dirname)(r) }
1650
1581
  }
1651
1582
  }) : s.push({
1652
1583
  params: {
1653
- ...L(c).params,
1584
+ ...R(c).params,
1654
1585
  driveAliasAndItem: r
1655
1586
  },
1656
1587
  query: {
1657
- ...L(c).query,
1588
+ ...R(c).query,
1658
1589
  fileId: e,
1659
1590
  contextRouteName: n === "/" ? "files-shares-with-me" : "files-spaces-generic",
1660
1591
  ...uo(t) && { shareId: t.id },
1661
- contextRouteParams: { driveAliasAndItem: (0, $s.dirname)(r) },
1592
+ contextRouteParams: { driveAliasAndItem: (0, Ks.dirname)(r) },
1662
1593
  contextRouteQuery: { ...uo(t) && { shareId: t.id } }
1663
1594
  }
1664
1595
  });
1665
- }, ze = go(function* (e) {
1596
+ }, Re = go(function* (e) {
1666
1597
  try {
1667
- L(Pe) || (yield Le()), A.value = L(L(ye).space);
1668
- let t = yield xe(L(ye), { signal: e });
1669
- if (O.value = t, uo(L(A)) && (L(O).remoteItemId = L(A).id, L(O).id === L(O).remoteItemId)) {
1670
- let e = yield* Qa(mr({
1598
+ R(Ne) || (yield Ie()), A.value = R(R(ve).space);
1599
+ let t = yield be(R(ve), { signal: e });
1600
+ if (O.value = t, uo(R(A)) && (R(O).remoteItemId = R(A).id, R(O).id === R(O).remoteItemId)) {
1601
+ let e = yield* Qa(pr({
1671
1602
  graphClient: l.graphAuthenticated,
1672
1603
  spacesStore: h,
1673
- space: L(A)
1604
+ space: R(A)
1674
1605
  }));
1675
1606
  e && (O.value = {
1676
1607
  ...t,
@@ -1684,28 +1615,28 @@ var bc = ["id"], xc = ["textContent"], Sc = {
1684
1615
  }
1685
1616
  _.initResourceList({
1686
1617
  currentFolder: null,
1687
- resources: [L(O)]
1688
- }), p.value = [L(O)];
1618
+ resources: [R(O)]
1619
+ }), p.value = [R(O)];
1689
1620
  } catch (e) {
1690
1621
  console.error(e), ie.value = e, j.value = !1;
1691
1622
  }
1692
- }).restartable(), Be = go(function* (n) {
1623
+ }).restartable(), ze = go(function* (n) {
1693
1624
  try {
1694
- let r = e.importResourceWithExtension(L(O));
1625
+ let r = e.importResourceWithExtension(R(O));
1695
1626
  if (r) {
1696
- let e = _o.local().toFormat("yyyyMMddHHmmss"), i = `${L(O).name}_${e}.${r}`;
1697
- if (!(yield l.webdav.copyFiles(L(A), L(O), L(A), { path: i }, { signal: n }))) throw Error(t("Importing failed"));
1627
+ let e = _o.local().toFormat("yyyyMMddHHmmss"), i = `${R(O).name}_${e}.${r}`;
1628
+ if (!(yield l.webdav.copyFiles(R(A), R(O), R(A), { path: i }, { signal: n }))) throw Error(t("Importing failed"));
1698
1629
  O.value = { path: i };
1699
1630
  }
1700
- if (we(ye, L(O))) return;
1701
- if (ae.value = ![D.Updateable, D.FileUpdateable].some((e) => (L(O).permissions || "").indexOf(e) > -1), L(pe("currentContent"))) {
1702
- let t = yield* Qa(be(ye, {
1631
+ if (Ce(ve, R(O))) return;
1632
+ if (ae.value = ![D.Updateable, D.FileUpdateable].some((e) => (R(O).permissions || "").indexOf(e) > -1), R(fe("currentContent"))) {
1633
+ let t = yield* Qa(ye(ve, {
1703
1634
  ...e.fileContentOptions,
1704
1635
  signal: n
1705
1636
  }));
1706
- M.value = oe.value = t.body, ne.value = t.headers["OC-ETag"];
1637
+ M.value = N.value = t.body, ne.value = t.headers["OC-ETag"];
1707
1638
  }
1708
- L(pe("url")) && (re.value = yield Se(L(A), L(O), {
1639
+ R(fe("url")) && (re.value = yield xe(R(A), R(O), {
1709
1640
  ...e.urlForResourceOptions,
1710
1641
  signal: n
1711
1642
  }));
@@ -1715,202 +1646,202 @@ var bc = ["id"], xc = ["textContent"], Sc = {
1715
1646
  j.value = !1;
1716
1647
  }
1717
1648
  }).restartable();
1718
- N(ye, async () => {
1719
- L(E) ? A.value = L(L(ye).space) : (await ze.perform(), L(Ae) && yc(L(O).size) > L(Ae) ? m({
1720
- title: t("File exceeds %{threshold}", { threshold: Ge(L(Ae), n) }),
1649
+ P(ve, async () => {
1650
+ R(E) ? A.value = R(R(ve).space) : (await Re.perform(), R(ke) && fc(R(O).size) > R(ke) ? m({
1651
+ title: t("File exceeds %{threshold}", { threshold: We(R(ke), n) }),
1721
1652
  message: t("%{resource} exceeds the recommended size of %{threshold} for editing, and may cause performance issues.", {
1722
- resource: L(O).name,
1723
- threshold: Ge(L(Ae), n)
1653
+ resource: R(O).name,
1654
+ threshold: We(R(ke), n)
1724
1655
  }),
1725
1656
  confirmText: t("Continue"),
1726
1657
  onCancel: () => {
1727
- ve();
1658
+ _e();
1728
1659
  },
1729
1660
  onConfirm: () => {
1730
- Be.perform();
1661
+ ze.perform();
1731
1662
  }
1732
- }) : Be.perform());
1663
+ }) : ze.perform());
1733
1664
  }, { immediate: !0 });
1734
- let Ve = (e) => {
1665
+ let Be = (e) => {
1735
1666
  console.error(e), o({
1736
1667
  title: t("An error occurred"),
1737
1668
  desc: e.message,
1738
1669
  errors: [e]
1739
1670
  });
1740
- }, He = () => {
1671
+ }, Ve = () => {
1741
1672
  a({ title: t("File autosaved") });
1742
- }, Ue = go(function* () {
1743
- let e = L(oe);
1673
+ }, He = go(function* () {
1674
+ let e = R(N);
1744
1675
  try {
1745
- let t = yield Ce(ye, {
1676
+ let t = yield Se(ve, {
1746
1677
  content: e,
1747
- previousEntityTag: L(ne)
1678
+ previousEntityTag: R(ne)
1748
1679
  });
1749
1680
  M.value = e, ne.value = t.etag, _.upsertResource(t);
1750
1681
  } catch (e) {
1751
1682
  switch (e.statusCode) {
1752
1683
  case 401:
1753
1684
  case 403:
1754
- Ve(new Ja(t("You're not authorized to save this file"), e.response));
1685
+ Be(new Ja(t("You're not authorized to save this file"), e.response));
1755
1686
  break;
1756
1687
  case 409:
1757
1688
  case 412:
1758
- Ve(new Ja(t("This file was updated outside this window. Please copy your changes or save the file under a new name (»Save As...«)."), e.response));
1689
+ Be(new Ja(t("This file was updated outside this window. Please copy your changes or save the file under a new name (»Save As...«)."), e.response));
1759
1690
  break;
1760
1691
  case 507:
1761
- let n = h.spaces.find((e) => e.id === L(O).storageId && so(e));
1692
+ let n = h.spaces.find((e) => e.id === R(O).storageId && so(e));
1762
1693
  if (n) {
1763
- Ve(new Ja(t("Insufficient quota on \"%{spaceName}\" to save this file", { spaceName: n.name }), e.response));
1694
+ Be(new Ja(t("Insufficient quota on \"%{spaceName}\" to save this file", { spaceName: n.name }), e.response));
1764
1695
  break;
1765
1696
  }
1766
- Ve(new Ja(t("Insufficient quota for saving this file"), e.response));
1697
+ Be(new Ja(t("Insufficient quota for saving this file"), e.response));
1767
1698
  break;
1768
- default: Ve(new Ja("", e.response));
1699
+ default: Be(new Ja("", e.response));
1769
1700
  }
1770
1701
  }
1771
- }).drop(), We = async () => {
1772
- await Ue.perform();
1773
- }, Ke = null;
1774
- Ht(() => {
1775
- if (se = y.subscribe("runtime.resource.deleted", Ze), _.ancestorMetaData?.["/"] && L(A) && _.ancestorMetaData["/"].spaceId !== L(A).id && _.setAncestorMetaData({}), !L(fe)) return;
1702
+ }).drop(), Ue = async () => {
1703
+ await He.perform();
1704
+ }, Ge = null;
1705
+ Vt(() => {
1706
+ if (oe = y.subscribe("runtime.resource.deleted", Xe), _.ancestorMetaData?.["/"] && R(A) && _.ancestorMetaData["/"].spaceId !== R(A).id && _.setAncestorMetaData({}), !R(de)) return;
1776
1707
  let t = g.options.editor;
1777
- t.autosaveEnabled && !e.disableAutoSave && (Ke = setInterval(async () => {
1778
- he.value && (await We(), He());
1708
+ t.autosaveEnabled && !e.disableAutoSave && (Ge = setInterval(async () => {
1709
+ me.value && (await Ue(), Ve());
1779
1710
  }, (t.autosaveInterval || 120) * 1e3));
1780
1711
  }), ja(() => {
1781
- y.unsubscribe("runtime.resource.deleted", se), ue([Cc]), u.isLoading || window.removeEventListener("beforeunload", ge), L(pe("url")) && Te(re.value), L(fe) && (clearInterval(Ke), Ke = null);
1712
+ y.unsubscribe("runtime.resource.deleted", oe), le([gc]), u.isLoading || window.removeEventListener("beforeunload", he), R(fe("url")) && we(re.value), R(de) && (clearInterval(Ge), Ge = null);
1782
1713
  });
1783
- let { bindKeyAction: qe } = Rn({ skipDisabledKeyBindingsCheck: !0 });
1784
- qe({
1785
- modifier: Ar.Ctrl,
1786
- primary: Lr.S
1714
+ let { bindKeyAction: Ke } = Ln({ skipDisabledKeyBindingsCheck: !0 });
1715
+ Ke({
1716
+ modifier: kr.Ctrl,
1717
+ primary: Ir.S
1787
1718
  }, () => {
1788
- L(he) && We();
1719
+ R(me) && Ue();
1789
1720
  });
1790
- let Je = K(() => [{
1721
+ let qe = q(() => [{
1791
1722
  name: "save-file",
1792
1723
  disabledTooltip: () => "",
1793
- isVisible: () => L(fe) && !L(ae),
1794
- isDisabled: () => !L(he),
1724
+ isVisible: () => R(de) && !R(ae),
1725
+ isDisabled: () => !R(me),
1795
1726
  icon: "save",
1796
1727
  id: "app-save-action",
1797
1728
  label: () => t("Save"),
1798
- handler: We
1799
- }]), Ye = K(() => ({
1800
- space: L(A),
1801
- resources: [L(O)]
1802
- })), P = async (e, t) => {
1803
- L(he) && (await We(), He()), t(e);
1804
- }, Ze = (e) => {
1805
- if (e.find((e) => e.id === L(O).id)) {
1806
- if (ce) return ce();
1807
- ve();
1729
+ handler: Ue
1730
+ }]), Je = q(() => ({
1731
+ space: R(A),
1732
+ resources: [R(O)]
1733
+ })), F = async (e, t) => {
1734
+ R(me) && (await Ue(), Ve()), t(e);
1735
+ }, Xe = (e) => {
1736
+ if (e.find((e) => e.id === R(O).id)) {
1737
+ if (se) return se();
1738
+ _e();
1808
1739
  }
1809
- }, Qe = K(() => [
1810
- ...L(S),
1811
- ...L(Je),
1812
- ...L(de).map((e) => ({
1740
+ }, Ze = q(() => [
1741
+ ...R(S),
1742
+ ...R(qe),
1743
+ ...R(ue).map((e) => ({
1813
1744
  ...e,
1814
- isVisible: (t) => fe.value && e.isVisible(t)
1745
+ isVisible: (t) => de.value && e.isVisible(t)
1815
1746
  }))
1816
- ].filter((e) => e.isVisible(L(Ye)))), $e = K(() => [...L(T), ...L(C)].filter((e) => e.isVisible(L(Ye)))), et = K(() => [...L(ee).map((e) => ({
1747
+ ].filter((e) => e.isVisible(R(Je)))), Qe = q(() => [...R(T), ...R(C)].filter((e) => e.isVisible(R(Je)))), $e = q(() => [...R(ee).map((e) => ({
1817
1748
  ...e,
1818
- handler: (t) => P(t, e.handler)
1819
- })), ...L(te)].filter((e) => e.isVisible(L(Ye)))), tt = K(() => [...L(w)].filter((e) => e.isVisible(L(Ye)))), nt = K(() => {
1749
+ handler: (t) => F(t, e.handler)
1750
+ })), ...R(te)].filter((e) => e.isVisible(R(Je)))), et = q(() => [...R(w)].filter((e) => e.isVisible(R(Je)))), tt = q(() => {
1820
1751
  let e = [];
1821
- return L(Qe).length && e.push({
1752
+ return R(Ze).length && e.push({
1822
1753
  name: "context",
1823
- items: L(Qe)
1824
- }), L($e).length && e.push({
1754
+ items: R(Ze)
1755
+ }), R(Qe).length && e.push({
1825
1756
  name: "share",
1826
- items: L($e)
1827
- }), L(et).length && e.push({
1757
+ items: R(Qe)
1758
+ }), R($e).length && e.push({
1828
1759
  name: "actions",
1829
- items: L(et)
1830
- }), L(tt).length && e.push({
1760
+ items: R($e)
1761
+ }), R(et).length && e.push({
1831
1762
  name: "sidebar",
1832
- items: L(tt)
1763
+ items: R(et)
1833
1764
  }), e;
1834
- }), rt = K(() => [...L(Je)]);
1765
+ }), nt = q(() => [...R(qe)]);
1835
1766
  So((e, n, r) => {
1836
- L(he) ? m({
1767
+ R(me) ? m({
1837
1768
  title: t("Unsaved changes"),
1838
- customComponent: lc,
1769
+ customComponent: nc,
1839
1770
  focusTrapInitial: ".oc-modal-body-actions-confirm",
1840
1771
  hideActions: !0,
1841
1772
  hideCancelButton: !0,
1842
1773
  customComponentAttrs: () => ({ closeCallback: () => {
1843
- ue([Cc]), r();
1774
+ le([gc]), r();
1844
1775
  } }),
1845
1776
  async onConfirm() {
1846
- ue([Cc]), await We(), r();
1777
+ le([gc]), await Ue(), r();
1847
1778
  }
1848
- }) : (ue([Cc]), r());
1779
+ }) : (le([gc]), r());
1849
1780
  });
1850
- let it = K(() => ({
1851
- url: L(re),
1852
- space: L(L(ye).space),
1853
- resource: L(O),
1854
- activeFiles: L(Ee),
1855
- isDirty: L(he),
1856
- isReadOnly: L(ae),
1857
- applicationConfig: L(_e),
1858
- currentFileContext: L(ye),
1859
- currentContent: L(oe),
1860
- isFolderLoading: L(Oe),
1781
+ let rt = q(() => ({
1782
+ url: R(re),
1783
+ space: R(R(ve).space),
1784
+ resource: R(O),
1785
+ activeFiles: R(Te),
1786
+ isDirty: R(me),
1787
+ isReadOnly: R(ae),
1788
+ applicationConfig: R(ge),
1789
+ currentFileContext: R(ve),
1790
+ currentContent: R(N),
1791
+ isFolderLoading: R(De),
1861
1792
  "onUpdate:resource": (e) => {
1862
- A.value = L(L(ye).space), O.value = {
1793
+ A.value = R(R(ve).space), O.value = {
1863
1794
  ...e,
1864
- ...uo(L(A)) && { remoteItemId: L(A).id }
1865
- }, p.value = [L(O)];
1795
+ ...uo(R(A)) && { remoteItemId: R(A).id }
1796
+ }, p.value = [R(O)];
1866
1797
  },
1867
1798
  "onUpdate:currentContent": (e) => {
1868
- oe.value = e;
1799
+ N.value = e;
1869
1800
  },
1870
1801
  "onRegister:onDeleteResourceCallback": (e) => {
1871
- ce = e;
1802
+ se = e;
1872
1803
  },
1873
1804
  "onDelete:resource": () => {
1874
- L(te)[0].isVisible({
1875
- space: L(A),
1876
- resources: [L(O)]
1877
- }) && L(te)[0].handler({
1878
- space: L(A),
1879
- resources: [L(O)]
1805
+ R(te)[0].isVisible({
1806
+ space: R(A),
1807
+ resources: [R(O)]
1808
+ }) && R(te)[0].handler({
1809
+ space: R(A),
1810
+ resources: [R(O)]
1880
1811
  });
1881
1812
  },
1882
- onSave: We,
1883
- onClose: ve,
1884
- loadFolderForFileContext: De,
1885
- revokeUrl: Te,
1886
- getUrlForResource: Se
1813
+ onSave: Ue,
1814
+ onClose: _e,
1815
+ loadFolderForFileContext: Ee,
1816
+ revokeUrl: we,
1817
+ getUrlForResource: xe
1887
1818
  }));
1888
1819
  return (t, n) => (Z(), X("main", {
1889
1820
  id: e.applicationId,
1890
1821
  class: "app-wrapper h-full border-0",
1891
- onKeydown: n[0] ||= Si((...e) => L(ve) && L(ve)(...e), ["esc"])
1822
+ onKeydown: n[0] ||= xi((...e) => R(_e) && R(_e)(...e), ["esc"])
1892
1823
  }, [Y("h1", {
1893
1824
  class: "sr-only",
1894
- textContent: W(je.value)
1895
- }, null, 8, xc), j.value ? (Z(), V(Is, { key: 0 })) : ie.value ? (Z(), V(js, {
1825
+ textContent: G(Ae.value)
1826
+ }, null, 8, mc), j.value ? (Z(), H(ks, { key: 0 })) : ie.value ? (Z(), H(ws, {
1896
1827
  key: 1,
1897
1828
  message: ie.value.message
1898
- }, null, 8, ["message"])) : (Z(), X("div", Sc, [k(t.$slots, "default", va({ class: ["app-wrapper-content size-full", { "w-[calc(100%-360px)]": L(x) && !L(b) }] }, it.value)), q(Qs, { space: A.value }, null, 8, ["space"])]))], 40, bc));
1829
+ }, null, 8, ["message"])) : (Z(), X("div", hc, [k(t.$slots, "default", va({ class: ["app-wrapper-content size-full", { "w-[calc(100%-360px)]": R(x) && !R(b) }] }, rt.value)), J(Gs, { space: A.value }, null, 8, ["space"])]))], 40, pc));
1899
1830
  }
1900
1831
  });
1901
1832
  //#endregion
1902
1833
  //#region src/components/AppTemplates/AppWrapperRoute.ts
1903
- function Tc(e, t) {
1904
- return H({ render() {
1905
- return jr(wc, {
1834
+ function vc(e, t) {
1835
+ return U({ render() {
1836
+ return Ar(_c, {
1906
1837
  wrappedComponent: e,
1907
1838
  ...t
1908
- }, { default: (t) => jr(e, t) });
1839
+ }, { default: (t) => Ar(e, t) });
1909
1840
  } });
1910
1841
  }
1911
1842
  //#endregion
1912
1843
  //#region src/components/ContextActions/ContextMenuQuickAction.vue
1913
- var Ec = /* @__PURE__ */ H({
1844
+ var yc = /* @__PURE__ */ U({
1914
1845
  __name: "ContextMenuQuickAction",
1915
1846
  props: {
1916
1847
  item: {},
@@ -1922,27 +1853,27 @@ var Ec = /* @__PURE__ */ H({
1922
1853
  },
1923
1854
  emits: ["quickActionClicked"],
1924
1855
  setup(e, { expose: t }) {
1925
- let { $gettext: n } = Q(), r = fe("drop");
1856
+ let { $gettext: n } = Q(), r = de("drop");
1926
1857
  t({ drop: r });
1927
- let i = K(() => n("Show context menu"));
1858
+ let i = q(() => n("Show context menu"));
1928
1859
  return (t, n) => {
1929
- let a = F("oc-icon"), o = F("oc-button"), s = ni("oc-tooltip");
1930
- return Z(), X(U, null, [I((Z(), V(o, {
1860
+ let a = I("oc-icon"), o = I("oc-button"), s = ti("oc-tooltip");
1861
+ return Z(), X(W, null, [L((Z(), H(o, {
1931
1862
  id: `context-menu-trigger-${e.resourceDomSelector(e.item)}`,
1932
1863
  "data-test-context-menu-resource-name": e.item.name,
1933
1864
  "aria-label": i.value,
1934
1865
  appearance: "raw",
1935
- class: B(["quick-action-button ml-1 p-1", t.$attrs.class]),
1866
+ class: V(["quick-action-button ml-1 p-1", t.$attrs.class]),
1936
1867
  onClick: n[0] ||= (e) => t.$emit("quickActionClicked", e)
1937
1868
  }, {
1938
- default: P(() => [q(a, { name: "more-2" })]),
1869
+ default: F(() => [J(a, { name: "more-2" })]),
1939
1870
  _: 1
1940
1871
  }, 8, [
1941
1872
  "id",
1942
1873
  "data-test-context-menu-resource-name",
1943
1874
  "aria-label",
1944
1875
  "class"
1945
- ])), [[s, i.value]]), q(L(ci), {
1876
+ ])), [[s, i.value]]), J(R(si), {
1946
1877
  ref_key: "drop",
1947
1878
  ref: r,
1948
1879
  "drop-id": `context-menu-drop-${e.resourceDomSelector(e.item)}`,
@@ -1953,7 +1884,7 @@ var Ec = /* @__PURE__ */ H({
1953
1884
  "padding-size": "small",
1954
1885
  "close-on-click": ""
1955
1886
  }, {
1956
- default: P(() => [k(t.$slots, "contextMenu", { item: e.item })]),
1887
+ default: F(() => [k(t.$slots, "contextMenu", { item: e.item })]),
1957
1888
  _: 3
1958
1889
  }, 8, [
1959
1890
  "drop-id",
@@ -1962,9 +1893,9 @@ var Ec = /* @__PURE__ */ H({
1962
1893
  ])], 64);
1963
1894
  };
1964
1895
  }
1965
- }), Dc = H({
1896
+ }), bc = U({
1966
1897
  name: "ResourceGhostElement",
1967
- components: { ResourceIcon: rn },
1898
+ components: { ResourceIcon: nn },
1968
1899
  props: { previewItems: {
1969
1900
  type: Array,
1970
1901
  required: !0
@@ -1983,28 +1914,28 @@ var Ec = /* @__PURE__ */ H({
1983
1914
  return this.previewItems.length;
1984
1915
  }
1985
1916
  }
1986
- }), Oc = {
1917
+ }), xc = {
1987
1918
  id: "ghost-element",
1988
1919
  class: "z-[var(--z-index-modal)] absolute pt-1 pl-4 bg-transparent"
1989
- }, kc = { class: "relative rounded-sm bg-role-surface-container-high" }, Ac = {
1920
+ }, Sc = { class: "relative rounded-sm bg-role-surface-container-high" }, Cc = {
1990
1921
  key: 0,
1991
1922
  class: "-z-10 absolute top-[3px] left-[3px] right-[-3px] bottom-[-3px] rounded-sm bg-role-surface-container-high brightness-82"
1992
- }, jc = {
1923
+ }, wc = {
1993
1924
  key: 1,
1994
1925
  class: "-z-20 absolute top-[6px] left-[6px] right-[-6px] bottom-[-6px] rounded-sm bg-role-surface-container-high brightness-72"
1995
- }, Mc = { class: "badge absolute top-[-2px] right-[-8px] p-1 text-sm text-center leading-2 bg-red-600 text-white rounded-4xl box-content min-w-2 h-2" };
1996
- function Nc(e, t, n, r, i, a) {
1997
- let o = F("resource-icon");
1998
- return Z(), X("div", Oc, [Y("div", kc, [
1999
- q(o, {
1926
+ }, Tc = { class: "badge absolute top-[-2px] right-[-8px] p-1 text-sm text-center leading-2 bg-red-600 text-white rounded-4xl box-content min-w-2 h-2" };
1927
+ function Ec(e, t, n, r, i, a) {
1928
+ let o = I("resource-icon");
1929
+ return Z(), X("div", xc, [Y("div", Sc, [
1930
+ J(o, {
2000
1931
  class: "p-1",
2001
1932
  resource: e.previewItems[0]
2002
1933
  }, null, 8, ["resource"]),
2003
- e.showSecondLayer ? (Z(), X("div", Ac)) : G("", !0),
2004
- e.showThirdLayer ? (Z(), X("div", jc)) : G("", !0)
2005
- ]), Y("span", Mc, W(e.itemCount), 1)]);
1934
+ e.showSecondLayer ? (Z(), X("div", Cc)) : K("", !0),
1935
+ e.showThirdLayer ? (Z(), X("div", wc)) : K("", !0)
1936
+ ]), Y("span", Tc, G(e.itemCount), 1)]);
2006
1937
  }
2007
- var Pc = /* @__PURE__ */ z(Dc, [["render", Nc]]), Fc = H({
1938
+ var Dc = /* @__PURE__ */ B(bc, [["render", Ec]]), Oc = U({
2008
1939
  name: "ResourceSize",
2009
1940
  props: { size: {
2010
1941
  type: [String, Number],
@@ -2012,13 +1943,13 @@ var Pc = /* @__PURE__ */ z(Dc, [["render", Nc]]), Fc = H({
2012
1943
  } },
2013
1944
  setup: (e) => {
2014
1945
  let { current: t } = Q();
2015
- return { formattedSize: K(() => Ge(e.size, t)) };
1946
+ return { formattedSize: q(() => We(e.size, t)) };
2016
1947
  }
2017
- }), Ic = ["textContent"];
2018
- function Lc(e, t, n, r, i, a) {
2019
- return Z(), X("span", { textContent: W(e.formattedSize) }, null, 8, Ic);
1948
+ }), kc = ["textContent"];
1949
+ function Ac(e, t, n, r, i, a) {
1950
+ return Z(), X("span", { textContent: G(e.formattedSize) }, null, 8, kc);
2020
1951
  }
2021
- var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
1952
+ var jc = /* @__PURE__ */ B(Oc, [["render", Ac]]), Mc = /* @__PURE__ */ U({
2022
1953
  __name: "ResourceStatusIndicators",
2023
1954
  props: {
2024
1955
  resource: {},
@@ -2029,19 +1960,19 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2029
1960
  }
2030
1961
  },
2031
1962
  setup(e) {
2032
- let t = ut(), { getIndicators: n } = sr(), r = K(() => {
1963
+ let t = lt(), { getIndicators: n } = or(), r = q(() => {
2033
1964
  let t = n({
2034
1965
  space: e.space,
2035
1966
  resource: e.resource
2036
1967
  });
2037
1968
  return e.filter ? t.filter(e.filter) : t;
2038
1969
  });
2039
- return (n, i) => r.value.length > 0 ? (Z(), V(L(Gn), va({ key: 0 }, L(t), {
1970
+ return (n, i) => r.value.length > 0 ? (Z(), H(R(Wn), va({ key: 0 }, R(t), {
2040
1971
  indicators: r.value,
2041
1972
  resource: e.resource
2042
- }), null, 16, ["indicators", "resource"])) : G("", !0);
1973
+ }), null, 16, ["indicators", "resource"])) : K("", !0);
2043
1974
  }
2044
- }), Bc = /* @__PURE__ */ H({
1975
+ }), Nc = /* @__PURE__ */ U({
2045
1976
  __name: "UserAvatar",
2046
1977
  props: {
2047
1978
  userId: {},
@@ -2049,12 +1980,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2049
1980
  width: { default: 36 }
2050
1981
  },
2051
1982
  setup(e) {
2052
- let { avatarMap: t } = $(Wi()), { enqueueAvatar: n } = ta(), r = K(() => L(t)[e.userId]);
2053
- return Ht(() => {
1983
+ let { avatarMap: t } = $(Ui()), { enqueueAvatar: n } = ta(), r = q(() => R(t)[e.userId]);
1984
+ return Vt(() => {
2054
1985
  n(e.userId);
2055
1986
  }), (t, n) => {
2056
- let i = F("oc-avatar");
2057
- return Z(), V(i, {
1987
+ let i = I("oc-avatar");
1988
+ return Z(), H(i, {
2058
1989
  "user-name": e.userName,
2059
1990
  src: r.value,
2060
1991
  width: e.width
@@ -2065,17 +1996,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2065
1996
  ]);
2066
1997
  };
2067
1998
  }
2068
- }), Vc = { class: /* @__PURE__ */ B([
1999
+ }), Pc = { class: /* @__PURE__ */ V([
2069
2000
  "[&_.cropper-crop-box]:!outline-1",
2070
2001
  "[&_.cropper-crop-box]:!outline-role-outline",
2071
2002
  "[&_.cropper-view-box]:!rounded-[50%]",
2072
2003
  "[&_.cropper-crop-box]:!rounded-[50%]",
2073
2004
  "[&_.cropper-line]:!bg-role-outline",
2074
2005
  "[&_.cropper-point]:!bg-role-outline"
2075
- ]) }, Hc = { class: "flex flex-col items-center" }, Uc = { class: "oc-button-group" }, Wc = { key: 0 }, Gc = ["src"], Kc = { class: "text-sm text-role-on-surface-variant flex items-center mt-1" }, qc = ["textContent"], Jc = /* @__PURE__ */ H({
2006
+ ]) }, Fc = { class: "flex flex-col items-center" }, Ic = { class: "oc-button-group" }, Lc = { key: 0 }, Rc = ["src"], zc = { class: "text-sm text-role-on-surface-variant flex items-center mt-1" }, Bc = ["textContent"], Vc = /* @__PURE__ */ U({
2076
2007
  __name: "AvatarUpload",
2077
2008
  setup(e) {
2078
- let t = $n(), n = Wi(), { avatarMap: r } = $(n), { user: i } = $(t), { $gettext: a } = Q(), { showErrorMessage: o, showMessage: s } = Ne(), { graphAuthenticated: c } = tn(), { setCropperInstance: l } = Pi(), u = R(null), d = R(null), f = R(null), p = R(!1), m = R(!1), h = R(!1), g = R(null), _ = K(() => !!L(r)[L(i).id]), v = (e) => {
2009
+ let t = Qn(), n = Ui(), { avatarMap: r } = $(n), { user: i } = $(t), { $gettext: a } = Q(), { showErrorMessage: o, showMessage: s } = Me(), { graphAuthenticated: c } = en(), { setCropperInstance: l } = Ni(), u = z(null), d = z(null), f = z(null), p = z(!1), m = z(!1), h = z(!1), g = z(null), _ = q(() => !!R(r)[R(i).id]), v = (e) => {
2079
2010
  let t = e.target.files?.[0];
2080
2011
  if (t) {
2081
2012
  if (t.size > 10485760) {
@@ -2085,7 +2016,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2085
2016
  u.value = URL.createObjectURL(t), m.value = !0;
2086
2017
  }
2087
2018
  };
2088
- N(u, async (e) => {
2019
+ P(u, async (e) => {
2089
2020
  e && (await Ra(), f.value && f.value.destroy(), d.value && (f.value = new xo(d.value, {
2090
2021
  aspectRatio: 1,
2091
2022
  viewMode: 1,
@@ -2114,7 +2045,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2114
2045
  lastModified: Date.now()
2115
2046
  });
2116
2047
  try {
2117
- await c.photos.updateOwnUserPhotoPatch(r), n.addAvatar(L(i).id, t), s({ title: a("Profile picture was set successfully") });
2048
+ await c.photos.updateOwnUserPhotoPatch(r), n.addAvatar(R(i).id, t), s({ title: a("Profile picture was set successfully") });
2118
2049
  } catch (e) {
2119
2050
  o({
2120
2051
  title: a("Failed to set profile picture"),
@@ -2124,7 +2055,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2124
2055
  m.value = !1, w();
2125
2056
  }, ee = async () => {
2126
2057
  try {
2127
- await c.photos.deleteOwnUserPhoto(), n.removeAvatar(L(i).id), s({ title: a("Profile picture was removed successfully") });
2058
+ await c.photos.deleteOwnUserPhoto(), n.removeAvatar(R(i).id), s({ title: a("Profile picture was removed successfully") });
2128
2059
  } catch (e) {
2129
2060
  o({
2130
2061
  title: a("Failed to remove profile picture"),
@@ -2136,8 +2067,8 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2136
2067
  f.value?.destroy(), f.value = null, g.value && (g.value.value = ""), u.value = null;
2137
2068
  };
2138
2069
  return (e, t) => {
2139
- let n = F("oc-button"), r = F("oc-icon"), o = F("oc-modal");
2140
- return Z(), X("div", Vc, [
2070
+ let n = I("oc-button"), r = I("oc-icon"), o = I("oc-modal");
2071
+ return Z(), X("div", Pc, [
2141
2072
  Y("input", {
2142
2073
  ref_key: "fileInputRef",
2143
2074
  ref: g,
@@ -2146,63 +2077,63 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2146
2077
  accept: "image/jpeg, image/png",
2147
2078
  onChange: v
2148
2079
  }, null, 544),
2149
- Y("div", Hc, [q(Bc, {
2080
+ Y("div", Fc, [J(Nc, {
2150
2081
  class: "mb-4",
2151
2082
  width: 128,
2152
- "user-id": L(i).id,
2153
- "user-name": L(i).displayName
2154
- }, null, 8, ["user-id", "user-name"]), Y("div", null, [Y("div", Uc, [q(n, {
2083
+ "user-id": R(i).id,
2084
+ "user-name": R(i).displayName
2085
+ }, null, 8, ["user-id", "user-name"]), Y("div", null, [Y("div", Ic, [J(n, {
2155
2086
  size: "small",
2156
2087
  onClick: x
2157
2088
  }, {
2158
- default: P(() => [wr(W(L(a)("Upload")), 1)]),
2089
+ default: F(() => [Cr(G(R(a)("Upload")), 1)]),
2159
2090
  _: 1
2160
- }), _.value ? (Z(), V(n, {
2091
+ }), _.value ? (Z(), H(n, {
2161
2092
  key: 0,
2162
2093
  class: "avatar-upload-remove-button",
2163
2094
  size: "small",
2164
2095
  onClick: t[0] ||= (e) => h.value = !0
2165
2096
  }, {
2166
- default: P(() => [wr(W(L(a)("Remove")), 1)]),
2097
+ default: F(() => [Cr(G(R(a)("Remove")), 1)]),
2167
2098
  _: 1
2168
- })) : G("", !0)])])]),
2169
- m.value ? (Z(), V(o, {
2099
+ })) : K("", !0)])])]),
2100
+ m.value ? (Z(), H(o, {
2170
2101
  key: 0,
2171
- title: L(a)("Crop your new profile picture"),
2172
- "button-cancel-text": L(a)("Cancel"),
2173
- "button-confirm-text": L(a)("Set"),
2102
+ title: R(a)("Crop your new profile picture"),
2103
+ "button-cancel-text": R(a)("Cancel"),
2104
+ "button-confirm-text": R(a)("Set"),
2174
2105
  "button-confirm-disabled": !p.value,
2175
2106
  "focus-trap-initial": !1,
2176
2107
  onCancel: S,
2177
2108
  onConfirm: C
2178
2109
  }, {
2179
- content: P(() => [u.value ? (Z(), X("div", Wc, [Y("img", {
2110
+ content: F(() => [u.value ? (Z(), X("div", Lc, [Y("img", {
2180
2111
  ref_key: "imageRef",
2181
2112
  ref: d,
2182
2113
  class: "max-h-[400px]",
2183
2114
  src: u.value
2184
- }, null, 8, Gc), Y("div", Kc, [q(r, {
2115
+ }, null, 8, Rc), Y("div", zc, [J(r, {
2185
2116
  class: "mr-1",
2186
2117
  name: "information",
2187
2118
  size: "small",
2188
2119
  "fill-type": "line"
2189
- }), Y("span", { textContent: W(L(a)("Zoom via %{ zoomKeys }, pan via %{ panKeys }", {
2190
- zoomKeys: L(a)("+-"),
2191
- panKeys: L(a)("↑↓←→")
2192
- })) }, null, 8, qc)])])) : G("", !0)]),
2120
+ }), Y("span", { textContent: G(R(a)("Zoom via %{ zoomKeys }, pan via %{ panKeys }", {
2121
+ zoomKeys: R(a)("+-"),
2122
+ panKeys: R(a)("↑↓←→")
2123
+ })) }, null, 8, Bc)])])) : K("", !0)]),
2193
2124
  _: 1
2194
2125
  }, 8, [
2195
2126
  "title",
2196
2127
  "button-cancel-text",
2197
2128
  "button-confirm-text",
2198
2129
  "button-confirm-disabled"
2199
- ])) : G("", !0),
2200
- h.value ? (Z(), V(o, {
2130
+ ])) : K("", !0),
2131
+ h.value ? (Z(), H(o, {
2201
2132
  key: 1,
2202
- message: L(a)("Are you sure you want to remove your profile picture?"),
2203
- title: L(a)("Remove profile picture"),
2204
- "button-cancel-text": L(a)("Cancel"),
2205
- "button-confirm-text": L(a)("Remove"),
2133
+ message: R(a)("Are you sure you want to remove your profile picture?"),
2134
+ title: R(a)("Remove profile picture"),
2135
+ "button-cancel-text": R(a)("Cancel"),
2136
+ "button-confirm-text": R(a)("Remove"),
2206
2137
  onCancel: t[1] ||= (e) => h.value = !1,
2207
2138
  onConfirm: ee
2208
2139
  }, null, 8, [
@@ -2210,14 +2141,14 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2210
2141
  "title",
2211
2142
  "button-cancel-text",
2212
2143
  "button-confirm-text"
2213
- ])) : G("", !0)
2144
+ ])) : K("", !0)
2214
2145
  ]);
2215
2146
  };
2216
2147
  }
2217
- }), Yc = { class: "resource-table-select-all flex justify-center items-center" }, Xc = { class: "truncate" }, Zc = ["textContent"], Qc = ["textContent"], $c = ["textContent"], el = {
2148
+ }), Hc = { class: "resource-table-select-all flex justify-center items-center" }, Uc = { class: "truncate" }, Wc = ["textContent"], Gc = ["textContent"], Kc = ["textContent"], qc = {
2218
2149
  key: 0,
2219
2150
  class: "flex items-center justify-end flex-row flex-nowrap"
2220
- }, tl = 850, nl = /* @__PURE__ */ H({
2151
+ }, Jc = 850, Yc = /* @__PURE__ */ U({
2221
2152
  __name: "ResourceTable",
2222
2153
  props: {
2223
2154
  resources: {},
@@ -2274,12 +2205,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2274
2205
  "update:modelValue"
2275
2206
  ],
2276
2207
  setup(e, { emit: t }) {
2277
- let n = t, r = Mi(), i = yi(), { getMatchingSpace: a } = O(), { interceptModifierClick: o } = mi(), { getParentFolderLink: s, getParentFolderLinkIconAdditionalAttributes: c, getParentFolderName: l, getPathPrefix: d } = Ba({ space: R(e.space) }), { isSticky: f } = pt(), { $gettext: p, $ngettext: m, current: h } = Q(), { isLocationPicker: g, isFilePicker: _ } = li(), { selectedResources: v, disabledResources: b, isResourceSelected: x, fileContainerClicked: S, fileNameClicked: C, fileCheckboxClicked: ee, isResourceDisabled: w, isResourceInDeleteQueue: T, isResourceClickable: te, isResourceCut: E, getResourceLink: D, dragItem: A, dragSelection: ne, dragStart: re, fileDropped: j, setDropStyling: ie, shouldShowContextDrop: ae, showContextMenuOnRightClick: oe, showContextMenuOnBtnClick: se, selectAllCheckboxLabel: ce, getResourceCheckboxLabel: le, toggleSelectionAll: ue, areAllResourcesSelected: de } = Yi({
2278
- space: K(() => e.space),
2279
- resources: K(() => e.resources),
2280
- selectedIds: K(() => e.selectedIds),
2208
+ let n = t, r = ji(), i = vi(), { getMatchingSpace: a } = O(), { interceptModifierClick: o } = pi(), { getParentFolderLink: s, getParentFolderLinkIconAdditionalAttributes: c, getParentFolderName: l, getPathPrefix: d } = Ba({ space: z(e.space) }), { isSticky: f } = ft(), { $gettext: p, $ngettext: m, current: h } = Q(), { isLocationPicker: g, isFilePicker: _ } = ci(), { selectedResources: v, disabledResources: b, isResourceSelected: x, fileContainerClicked: S, fileNameClicked: C, fileCheckboxClicked: ee, isResourceDisabled: w, isResourceInDeleteQueue: T, isResourceClickable: te, isResourceCut: E, getResourceLink: D, dragItem: A, dragSelection: ne, dragStart: re, fileDropped: j, setDropStyling: ie, shouldShowContextDrop: ae, showContextMenuOnRightClick: N, showContextMenuOnBtnClick: oe, selectAllCheckboxLabel: se, getResourceCheckboxLabel: ce, toggleSelectionAll: le, areAllResourcesSelected: ue } = Yi({
2209
+ space: q(() => e.space),
2210
+ resources: q(() => e.resources),
2211
+ selectedIds: q(() => e.selectedIds),
2281
2212
  emit: n
2282
- }), fe = ki(), { isSideBarOpen: pe } = $(fe), { userContextReady: me } = $(Ei()), { areFileExtensionsShown: he, latestSelectedId: ge } = $(fr()), { width: _e } = yo(), ve = K(() => i.filesTags && _e.value >= tl), { actions: ye } = Nr(), { actions: be } = Se(), xe = K(() => L(ye)[0].handler), Ce = K(() => L(be)[0].handler), we = R({}), Te = (e) => p("Search for tag %{tag}", { tag: e }), Ee = K(() => {
2213
+ }), de = Oi(), { isSideBarOpen: fe } = $(de), { userContextReady: pe } = $(Ti()), { areFileExtensionsShown: me, latestSelectedId: he } = $(dr()), { width: ge } = yo(), _e = q(() => i.filesTags && ge.value >= Jc), { actions: ve } = Mr(), { actions: ye } = xe(), be = q(() => R(ve)[0].handler), Se = q(() => R(ye)[0].handler), Ce = z({}), we = (e) => p("Search for tag %{tag}", { tag: e }), Te = q(() => {
2283
2214
  if (e.resources.length === 0) return [];
2284
2215
  let t = e.resources[0], n = [];
2285
2216
  e.isSelectable && n.push({
@@ -2289,7 +2220,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2289
2220
  headerType: "slot",
2290
2221
  width: "shrink"
2291
2222
  });
2292
- let r = Le(t);
2223
+ let r = Ie(t);
2293
2224
  return n.push(...[
2294
2225
  {
2295
2226
  name: "name",
@@ -2386,7 +2317,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2386
2317
  alignH: "right",
2387
2318
  wrap: "nowrap",
2388
2319
  width: "shrink",
2389
- accessibleLabelCallback: (e) => N(e.mdate) + " (" + Me(e.mdate) + ")"
2320
+ accessibleLabelCallback: (e) => P(e.mdate) + " (" + je(e.mdate) + ")"
2390
2321
  },
2391
2322
  {
2392
2323
  name: "sdate",
@@ -2395,7 +2326,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2395
2326
  alignH: "right",
2396
2327
  wrap: "nowrap",
2397
2328
  width: "shrink",
2398
- accessibleLabelCallback: (e) => N(e.sdate) + " (" + Me(e.sdate) + ")"
2329
+ accessibleLabelCallback: (e) => P(e.sdate) + " (" + je(e.sdate) + ")"
2399
2330
  },
2400
2331
  {
2401
2332
  name: "ddate",
@@ -2404,13 +2335,13 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2404
2335
  alignH: "right",
2405
2336
  wrap: "nowrap",
2406
2337
  width: "shrink",
2407
- accessibleLabelCallback: (e) => N(e.ddate) + " (" + Me(e.ddate) + ")"
2338
+ accessibleLabelCallback: (e) => P(e.ddate) + " (" + je(e.ddate) + ")"
2408
2339
  }
2409
2340
  ].filter((n) => {
2410
- if (n.name === "tags" && !L(ve)) return !1;
2341
+ if (n.name === "tags" && !R(_e)) return !1;
2411
2342
  if (n.name === "indicators") return !0;
2412
2343
  let r;
2413
- return r = n.prop ? qt(t, n.prop) !== void 0 : Object.prototype.hasOwnProperty.call(t, n.name), e.fieldsDisplayed ? r && e.fieldsDisplayed.includes(n.name) : r;
2344
+ return r = n.prop ? Kt(t, n.prop) !== void 0 : Object.prototype.hasOwnProperty.call(t, n.name), e.fieldsDisplayed ? r && e.fieldsDisplayed.includes(n.name) : r;
2414
2345
  }).map((e) => {
2415
2346
  let t = r.find((t) => t.name === e.name);
2416
2347
  return t && Object.assign(e, {
@@ -2425,39 +2356,39 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2425
2356
  wrap: "nowrap",
2426
2357
  width: "shrink"
2427
2358
  }), n;
2428
- }), De = (e) => {
2429
- let t = L(r.currentRoute).query?.term;
2430
- return qr("files-common-search", { query: {
2359
+ }), Ee = (e) => {
2360
+ let t = R(r.currentRoute).query?.term;
2361
+ return Kr("files-common-search", { query: {
2431
2362
  provider: "files.sdk",
2432
2363
  q_tags: e,
2433
2364
  ...t && { term: t }
2434
2365
  } });
2435
- }, Oe = (e) => L(me) ? { to: De(e) } : {}, ke = (e) => e.id === L(ge), Ae = (t) => e.showRenameQuickAction ? so(t) ? L(be).filter((e) => e.isVisible({ resources: [t] })).length : L(ye).filter((n) => n.isVisible({
2366
+ }, De = (e) => R(pe) ? { to: Ee(e) } : {}, Oe = (e) => e.id === R(he), ke = (t) => e.showRenameQuickAction ? so(t) ? R(ye).filter((e) => e.isVisible({ resources: [t] })).length : R(ve).filter((n) => n.isVisible({
2436
2367
  space: e.space,
2437
2368
  resources: [t]
2438
- })).length : !1, je = (e) => {
2439
- if (so(e)) return L(Ce)({ resources: [e] });
2440
- L(xe)({
2369
+ })).length : !1, Ae = (e) => {
2370
+ if (so(e)) return R(Se)({ resources: [e] });
2371
+ R(be)({
2441
2372
  space: a(e),
2442
2373
  resources: [e]
2443
2374
  });
2444
- }, Me = (e) => xn(new Date(e), h), N = (e) => ra(new Date(e), h), Ne = (e) => {
2375
+ }, je = (e) => bn(new Date(e), h), P = (e) => ra(new Date(e), h), Me = (e) => {
2445
2376
  if (!lo(e)) return;
2446
2377
  let t = e.type === "folder" ? p("folder") : p("file"), n = e.sharedWith.filter(({ shareType: e }) => Ya.authenticated.includes(Ya.getByValue(e))).length;
2447
2378
  return n ? m("This %{ resourceType } is shared via %{ shareCount } invite", "This %{ resourceType } is shared via %{ shareCount } invites", n, {
2448
2379
  resourceType: t,
2449
2380
  shareCount: n.toString()
2450
2381
  }) : "";
2451
- }, Pe = (e) => lo(e) ? p("This %{ resourceType } is shared by %{ user }", {
2382
+ }, Ne = (e) => lo(e) ? p("This %{ resourceType } is shared by %{ user }", {
2452
2383
  resourceType: e.type === "folder" ? p("folder") : p("file"),
2453
2384
  user: e.sharedBy.map(({ displayName: e }) => e).join(", ")
2454
- }) : "", Fe = (e) => lo(e) ? e.sharedBy.map((e) => ({
2385
+ }) : "", Pe = (e) => lo(e) ? e.sharedBy.map((e) => ({
2455
2386
  displayName: e.displayName,
2456
2387
  name: e.displayName,
2457
2388
  avatarType: Ya.user.key,
2458
2389
  username: e.id,
2459
2390
  userId: e.id
2460
- })) : [], Ie = (e) => lo(e) ? e.sharedWith.filter(({ shareType: e }) => Ya.authenticated.includes(Ya.getByValue(e))).map((e) => ({
2391
+ })) : [], Fe = (e) => lo(e) ? e.sharedWith.filter(({ shareType: e }) => Ya.authenticated.includes(Ya.getByValue(e))).map((e) => ({
2461
2392
  displayName: e.displayName,
2462
2393
  name: e.displayName,
2463
2394
  avatarType: Ya.getByValue(e.shareType).key,
@@ -2465,57 +2396,57 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2465
2396
  userId: e.id
2466
2397
  })) : [];
2467
2398
  return (t, n) => {
2468
- let r = F("oc-checkbox"), i = F("oc-icon"), a = F("oc-tag"), m = F("oc-avatars"), h = ni("oc-tooltip");
2469
- return Z(), X(U, null, [q(L(Ur), va(t.$attrs, {
2399
+ let r = I("oc-checkbox"), i = I("oc-icon"), a = I("oc-tag"), m = I("oc-avatars"), h = ti("oc-tooltip");
2400
+ return Z(), X(W, null, [J(R(Hr), va(t.$attrs, {
2470
2401
  id: "files-space-table",
2471
2402
  class: [{
2472
- condensed: e.viewMode === L(ma).name.condensedTable,
2403
+ condensed: e.viewMode === R(ma).name.condensedTable,
2473
2404
  "files-table": e.resourceType === "file",
2474
- "files-table-squashed": e.resourceType === "file" && L(pe),
2405
+ "files-table-squashed": e.resourceType === "file" && R(fe),
2475
2406
  "spaces-table": e.resourceType === "space",
2476
- "spaces-table-squashed": e.resourceType === "space" && L(pe)
2407
+ "spaces-table-squashed": e.resourceType === "space" && R(fe)
2477
2408
  }],
2478
2409
  data: e.resources,
2479
- fields: Ee.value,
2410
+ fields: Te.value,
2480
2411
  highlighted: e.selectedIds,
2481
- disabled: L(b),
2482
- sticky: L(f),
2412
+ disabled: R(b),
2413
+ sticky: R(f),
2483
2414
  "header-position": e.headerPosition,
2484
2415
  "drag-drop": e.dragDrop,
2485
2416
  hover: e.hover,
2486
2417
  "item-dom-selector": e.resourceDomSelector,
2487
- selection: L(v),
2418
+ selection: R(v),
2488
2419
  "sort-by": e.sortBy,
2489
2420
  "sort-dir": e.sortDir,
2490
2421
  lazy: e.lazy,
2491
2422
  "padding-x": "medium",
2492
- onHighlight: n[1] ||= (e) => L(S)({
2423
+ onHighlight: n[1] ||= (e) => R(S)({
2493
2424
  resource: e[0],
2494
2425
  event: e[1]
2495
2426
  }),
2496
- onContextmenuClicked: n[2] ||= (e, t, n) => L(oe)(t, n, we.value[n.id]),
2497
- onItemDropped: n[3] ||= (e) => L(j)(e[0], e[1]),
2498
- onItemDragged: n[4] ||= (e) => L(re)(e[0], e[1]),
2499
- onDropRowStyling: L(ie),
2427
+ onContextmenuClicked: n[2] ||= (e, t, n) => R(N)(t, n, Ce.value[n.id]),
2428
+ onItemDropped: n[3] ||= (e) => R(j)(e[0], e[1]),
2429
+ onItemDragged: n[4] ||= (e) => R(re)(e[0], e[1]),
2430
+ onDropRowStyling: R(ie),
2500
2431
  onSort: n[5] ||= (e) => t.$emit("sort", e),
2501
2432
  "onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:modelValue", e)
2502
- }), dr({
2503
- name: P(({ item: n }) => [Y("div", { class: B(["resource-table-resource-wrapper flex items-center", [{ "resource-table-resource-wrapper-limit-max-width": Ae(n) }]]) }, [
2433
+ }), ur({
2434
+ name: F(({ item: n }) => [Y("div", { class: V(["resource-table-resource-wrapper flex items-center", [{ "resource-table-resource-wrapper-limit-max-width": ke(n) }]]) }, [
2504
2435
  k(t.$slots, "image", { resource: n }),
2505
- (Z(), V(y, {
2436
+ (Z(), H(y, {
2506
2437
  key: `${n.path}-${e.resourceDomSelector(n)}-${n.thumbnail}`,
2507
2438
  resource: n,
2508
- "path-prefix": L(d)(n),
2439
+ "path-prefix": R(d)(n),
2509
2440
  "is-path-displayed": e.arePathsDisplayed,
2510
- "parent-folder-name": L(l)(n),
2441
+ "parent-folder-name": R(l)(n),
2511
2442
  "is-icon-displayed": !t.$slots.image,
2512
- "is-extension-displayed": L(he),
2513
- "is-resource-clickable": L(te)(n, e.areResourcesClickable),
2514
- link: L(D)(n),
2515
- "parent-folder-link": L(s)(n),
2516
- "parent-folder-link-icon-additional-attributes": L(c)(n),
2517
- class: B({ "opacity-60": L(E)(n) }),
2518
- onClick: J((e) => L(C)({
2443
+ "is-extension-displayed": R(me),
2444
+ "is-resource-clickable": R(te)(n, e.areResourcesClickable),
2445
+ link: R(D)(n),
2446
+ "parent-folder-link": R(s)(n),
2447
+ "parent-folder-link-icon-additional-attributes": R(c)(n),
2448
+ class: V({ "opacity-60": R(E)(n) }),
2449
+ onClick: Ki((e) => R(C)({
2519
2450
  resource: n,
2520
2451
  event: e
2521
2452
  }), ["stop"])
@@ -2533,17 +2464,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2533
2464
  "class",
2534
2465
  "onClick"
2535
2466
  ])),
2536
- Ae(n) ? (Z(), V(L(ur), {
2467
+ ke(n) ? (Z(), H(R(lr), {
2537
2468
  key: 0,
2538
2469
  class: "resource-table-edit-name inline-flex raw-hover-surface p-1 ml-1",
2539
2470
  appearance: "raw",
2540
- "aria-label": L(p)("Rename file »%{name}«", { name: n.name }),
2541
- title: L(p)("Rename"),
2542
- onClick: J((e) => {
2543
- L(o)(e, n) || je(n);
2471
+ "aria-label": R(p)("Rename file »%{name}«", { name: n.name }),
2472
+ title: R(p)("Rename"),
2473
+ onClick: Ki((e) => {
2474
+ R(o)(e, n) || Ae(n);
2544
2475
  }, ["stop"])
2545
2476
  }, {
2546
- default: P(() => [q(i, {
2477
+ default: F(() => [J(i, {
2547
2478
  name: "edit-2",
2548
2479
  "fill-type": "line",
2549
2480
  size: "small",
@@ -2554,67 +2485,67 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2554
2485
  "aria-label",
2555
2486
  "title",
2556
2487
  "onClick"
2557
- ])) : G("", !0)
2488
+ ])) : K("", !0)
2558
2489
  ], 2), k(t.$slots, "additionalResourceContent", { resource: n })]),
2559
- syncEnabled: P(({ item: e }) => [k(t.$slots, "syncEnabled", { resource: e })]),
2560
- size: P(({ item: e }) => [q(Rc, { size: e.size || NaN }, null, 8, ["size"])]),
2561
- tags: P(({ item: e }) => [(Z(!0), X(U, null, M(e.tags.slice(0, 2), (e) => (Z(), V(u(L(me) ? "router-link" : "span"), va({ key: e }, { ref_for: !0 }, Oe(e), { class: "resource-table-tag-wrapper" }), {
2562
- default: P(() => [I((Z(), V(a, {
2490
+ syncEnabled: F(({ item: e }) => [k(t.$slots, "syncEnabled", { resource: e })]),
2491
+ size: F(({ item: e }) => [J(jc, { size: e.size || NaN }, null, 8, ["size"])]),
2492
+ tags: F(({ item: e }) => [(Z(!0), X(W, null, M(e.tags.slice(0, 2), (e) => (Z(), H(u(R(pe) ? "router-link" : "span"), va({ key: e }, { ref_for: !0 }, De(e), { class: "resource-table-tag-wrapper" }), {
2493
+ default: F(() => [L((Z(), H(a, {
2563
2494
  class: "resource-table-tag ml-1 max-w-20",
2564
2495
  rounded: !0,
2565
2496
  size: "small"
2566
2497
  }, {
2567
- default: P(() => [q(i, {
2498
+ default: F(() => [J(i, {
2568
2499
  name: "price-tag-3",
2569
2500
  size: "small"
2570
- }), Y("span", Xc, W(e), 1)]),
2501
+ }), Y("span", Uc, G(e), 1)]),
2571
2502
  _: 2
2572
- }, 1024)), [[h, Te(e)]])]),
2503
+ }, 1024)), [[h, we(e)]])]),
2573
2504
  _: 2
2574
- }, 1040))), 128)), e.tags.length > 2 ? (Z(), V(a, {
2505
+ }, 1040))), 128)), e.tags.length > 2 ? (Z(), H(a, {
2575
2506
  key: 0,
2576
2507
  size: "small",
2577
2508
  class: "resource-table-tag-more align-text-bottom cursor-pointer",
2578
- onClick: n[0] ||= (e) => L(fe).openSideBar()
2509
+ onClick: n[0] ||= (e) => R(de).openSideBar()
2579
2510
  }, {
2580
- default: P(() => [wr(" + " + W(e.tags.length - 2), 1)]),
2511
+ default: F(() => [Cr(" + " + G(e.tags.length - 2), 1)]),
2581
2512
  _: 2
2582
- }, 1024)) : G("", !0)]),
2583
- manager: P(({ item: e }) => [k(t.$slots, "manager", { resource: e })]),
2584
- members: P(({ item: e }) => [k(t.$slots, "members", { resource: e })]),
2585
- totalQuota: P(({ item: e }) => [k(t.$slots, "totalQuota", { resource: e })]),
2586
- usedQuota: P(({ item: e }) => [k(t.$slots, "usedQuota", { resource: e })]),
2587
- remainingQuota: P(({ item: e }) => [k(t.$slots, "remainingQuota", { resource: e })]),
2588
- mdate: P(({ item: e }) => [I(Y("span", {
2513
+ }, 1024)) : K("", !0)]),
2514
+ manager: F(({ item: e }) => [k(t.$slots, "manager", { resource: e })]),
2515
+ members: F(({ item: e }) => [k(t.$slots, "members", { resource: e })]),
2516
+ totalQuota: F(({ item: e }) => [k(t.$slots, "totalQuota", { resource: e })]),
2517
+ usedQuota: F(({ item: e }) => [k(t.$slots, "usedQuota", { resource: e })]),
2518
+ remainingQuota: F(({ item: e }) => [k(t.$slots, "remainingQuota", { resource: e })]),
2519
+ mdate: F(({ item: e }) => [L(Y("span", {
2589
2520
  tabindex: "0",
2590
- textContent: W(N(e.mdate))
2591
- }, null, 8, Zc), [[h, Me(e.mdate)]])]),
2592
- indicators: P(({ item: t }) => [q(zc, {
2521
+ textContent: G(P(e.mdate))
2522
+ }, null, 8, Wc), [[h, je(e.mdate)]])]),
2523
+ indicators: F(({ item: t }) => [J(Mc, {
2593
2524
  space: e.space,
2594
2525
  resource: t,
2595
- "disable-handler": L(w)(t)
2526
+ "disable-handler": R(w)(t)
2596
2527
  }, null, 8, [
2597
2528
  "space",
2598
2529
  "resource",
2599
2530
  "disable-handler"
2600
2531
  ])]),
2601
- sdate: P(({ item: e }) => [I(Y("span", {
2532
+ sdate: F(({ item: e }) => [L(Y("span", {
2602
2533
  tabindex: "0",
2603
- textContent: W(N(e.sdate))
2604
- }, null, 8, Qc), [[h, Me(e.sdate)]])]),
2605
- ddate: P(({ item: e }) => [I(Y("p", {
2534
+ textContent: G(P(e.sdate))
2535
+ }, null, 8, Gc), [[h, je(e.sdate)]])]),
2536
+ ddate: F(({ item: e }) => [L(Y("p", {
2606
2537
  tabindex: "0",
2607
2538
  class: "m-0",
2608
- textContent: W(N(e.ddate))
2609
- }, null, 8, $c), [[h, Me(e.ddate)]])]),
2610
- sharedBy: P(({ item: e }) => [q(m, {
2539
+ textContent: G(P(e.ddate))
2540
+ }, null, 8, Kc), [[h, je(e.ddate)]])]),
2541
+ sharedBy: F(({ item: e }) => [J(m, {
2611
2542
  class: "flex items-center justify-end flex-row flex-nowrap",
2612
2543
  "is-tooltip-displayed": !0,
2613
- items: Fe(e),
2614
- "accessible-description": Pe(e),
2544
+ items: Pe(e),
2545
+ "accessible-description": Ne(e),
2615
2546
  "hover-effect": ""
2616
2547
  }, {
2617
- userAvatars: P(({ avatars: e, width: t }) => [(Z(!0), X(U, null, M(e, (e) => (Z(), V(L(Bc), {
2548
+ userAvatars: F(({ avatars: e, width: t }) => [(Z(!0), X(W, null, M(e, (e) => (Z(), H(R(Nc), {
2618
2549
  key: e.userId,
2619
2550
  "user-id": e.userId,
2620
2551
  "user-name": e.displayName,
@@ -2626,17 +2557,17 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2626
2557
  ]))), 128))]),
2627
2558
  _: 1
2628
2559
  }, 8, ["items", "accessible-description"])]),
2629
- sharedWith: P(({ item: e }) => [q(m, {
2560
+ sharedWith: F(({ item: e }) => [J(m, {
2630
2561
  class: "flex items-center justify-end flex-row flex-nowrap",
2631
2562
  "data-testid": "resource-table-shared-with",
2632
- items: Ie(e),
2563
+ items: Fe(e),
2633
2564
  stacked: !0,
2634
2565
  "max-displayed": 3,
2635
2566
  "is-tooltip-displayed": !0,
2636
- "accessible-description": Ne(e),
2567
+ "accessible-description": Me(e),
2637
2568
  "hover-effect": ""
2638
2569
  }, {
2639
- userAvatars: P(({ avatars: e, width: t }) => [(Z(!0), X(U, null, M(e, (e) => (Z(), V(L(Bc), {
2570
+ userAvatars: F(({ avatars: e, width: t }) => [(Z(!0), X(W, null, M(e, (e) => (Z(), H(R(Nc), {
2640
2571
  key: e.userId,
2641
2572
  "user-id": e.userId,
2642
2573
  "user-name": e.displayName,
@@ -2648,61 +2579,61 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2648
2579
  ]))), 128))]),
2649
2580
  _: 1
2650
2581
  }, 8, ["items", "accessible-description"])]),
2651
- actions: P(({ item: n }) => [L(ae)(n) ? (Z(), X("div", el, [k(t.$slots, "quickActions", { resource: n }), q(Ec, {
2652
- ref: (e) => we.value[n.id] = e?.drop,
2582
+ actions: F(({ item: n }) => [R(ae)(n) ? (Z(), X("div", qc, [k(t.$slots, "quickActions", { resource: n }), J(yc, {
2583
+ ref: (e) => Ce.value[n.id] = e?.drop,
2653
2584
  title: n.name,
2654
2585
  item: n,
2655
2586
  "resource-dom-selector": e.resourceDomSelector,
2656
2587
  class: "resource-table-btn-action-dropdown",
2657
- onQuickActionClicked: (e) => L(se)(e, n, we.value[n.id])
2588
+ onQuickActionClicked: (e) => R(oe)(e, n, Ce.value[n.id])
2658
2589
  }, {
2659
- contextMenu: P(() => [k(t.$slots, "contextMenu", { resource: n })]),
2590
+ contextMenu: F(() => [k(t.$slots, "contextMenu", { resource: n })]),
2660
2591
  _: 2
2661
2592
  }, 1032, [
2662
2593
  "title",
2663
2594
  "item",
2664
2595
  "resource-dom-selector",
2665
2596
  "onQuickActionClicked"
2666
- ])])) : G("", !0)]),
2597
+ ])])) : K("", !0)]),
2667
2598
  _: 2
2668
2599
  }, [
2669
- !L(g) && !L(_) ? {
2600
+ !R(g) && !R(_) ? {
2670
2601
  name: "selectHeader",
2671
- fn: P(() => [Y("div", Yc, [I(q(r, {
2602
+ fn: F(() => [Y("div", Hc, [L(J(r, {
2672
2603
  id: "resource-table-select-all",
2673
2604
  size: "large",
2674
- label: L(ce),
2675
- disabled: e.resources.length === L(b).length,
2605
+ label: R(se),
2606
+ disabled: e.resources.length === R(b).length,
2676
2607
  "label-hidden": !0,
2677
- "model-value": L(de),
2678
- onClick: J(L(ue), ["stop"])
2608
+ "model-value": R(ue),
2609
+ onClick: Ki(R(le), ["stop"])
2679
2610
  }, null, 8, [
2680
2611
  "label",
2681
2612
  "disabled",
2682
2613
  "model-value",
2683
2614
  "onClick"
2684
- ]), [[h, L(ce)]])])]),
2615
+ ]), [[h, R(se)]])])]),
2685
2616
  key: "0"
2686
2617
  } : void 0,
2687
- !L(g) && !L(_) ? {
2618
+ !R(g) && !R(_) ? {
2688
2619
  name: "select",
2689
- fn: P(({ item: t }) => [L(T)(t.id) ? (Z(), V(L(Oi), {
2620
+ fn: F(({ item: t }) => [R(T)(t.id) ? (Z(), H(R(Di), {
2690
2621
  key: 0,
2691
2622
  class: "inline-flex ml-1",
2692
2623
  size: "medium",
2693
- "aria-label": L(p)("File is being processed")
2694
- }, null, 8, ["aria-label"])) : (Z(), V(r, {
2624
+ "aria-label": R(p)("File is being processed")
2625
+ }, null, 8, ["aria-label"])) : (Z(), H(r, {
2695
2626
  key: 1,
2696
2627
  id: `resource-table-select-${e.resourceDomSelector(t)}`,
2697
- label: L(le)(t),
2628
+ label: R(ce)(t),
2698
2629
  "label-hidden": !0,
2699
2630
  size: "large",
2700
- disabled: L(w)(t),
2701
- "model-value": L(x)(t),
2702
- outline: ke(t),
2631
+ disabled: R(w)(t),
2632
+ "model-value": R(x)(t),
2633
+ outline: Oe(t),
2703
2634
  "data-test-selection-resource-name": t.name,
2704
2635
  "data-test-selection-resource-path": t.path,
2705
- onClick: J((e) => L(ee)({
2636
+ onClick: Ki((e) => R(ee)({
2706
2637
  resource: t,
2707
2638
  event: e
2708
2639
  }), ["stop"])
@@ -2720,7 +2651,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2720
2651
  } : void 0,
2721
2652
  t.$slots.footer ? {
2722
2653
  name: "footer",
2723
- fn: P(() => [k(t.$slots, "footer")]),
2654
+ fn: F(() => [k(t.$slots, "footer")]),
2724
2655
  key: "2"
2725
2656
  } : void 0
2726
2657
  ]), 1040, [
@@ -2739,25 +2670,25 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2739
2670
  "sort-dir",
2740
2671
  "lazy",
2741
2672
  "onDropRowStyling"
2742
- ]), L(A) ? (Z(), V(Kn, {
2673
+ ]), R(A) ? (Z(), H(Gn, {
2743
2674
  key: 0,
2744
2675
  to: "body"
2745
- }, [q(Pc, {
2676
+ }, [J(Dc, {
2746
2677
  ref: "ghostElement",
2747
- "preview-items": [L(A), ...L(ne)]
2748
- }, null, 8, ["preview-items"])])) : G("", !0)], 64);
2678
+ "preview-items": [R(A), ...R(ne)]
2679
+ }, null, 8, ["preview-items"])])) : K("", !0)], 64);
2749
2680
  };
2750
2681
  }
2751
- }), rl = {
2682
+ }), Xc = {
2752
2683
  key: 0,
2753
2684
  class: "oc-tile-card-lazy-shimmer h-30 overflow-hidden relative after:absolute after:inset-0 after:transform-[translateX(-100%)] opacity-20 after:animate-shimmer"
2754
- }, il = { class: "z-10 absolute top-0 left-0 [&_input]:not-[.oc-checkbox-checked]:bg-role-surface-container" }, al = {
2685
+ }, Zc = { class: "z-10 absolute top-0 left-0 [&_input]:not-[.oc-checkbox-checked]:bg-role-surface-container" }, Qc = {
2755
2686
  key: 0,
2756
2687
  class: "oc-tile-card-loading-spinner z-990 m-2"
2757
- }, ol = ["textContent"], sl = ["aria-label"], cl = { class: "flex justify-between items-center" }, ll = { class: "flex items-center truncate resource-name-wrapper text-role-on-surface overflow-hidden" }, ul = { class: "flex items-center" }, dl = {
2688
+ }, $c = ["textContent"], el = ["aria-label"], tl = { class: "flex justify-between items-center" }, nl = { class: "flex items-center truncate resource-name-wrapper text-role-on-surface overflow-hidden" }, rl = { class: "flex items-center" }, il = {
2758
2689
  key: 0,
2759
2690
  class: "text-left my-0 truncate"
2760
- }, fl = ["textContent"], pl = /* @__PURE__ */ H({
2691
+ }, al = ["textContent"], ol = /* @__PURE__ */ U({
2761
2692
  __name: "ResourceTile",
2762
2693
  props: {
2763
2694
  resource: {},
@@ -2800,32 +2731,32 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2800
2731
  "tileClicked"
2801
2732
  ],
2802
2733
  setup(e, { emit: t }) {
2803
- let n = t, { $gettext: r } = Q(), { getParentFolderName: i, getParentFolderLink: a } = Ba({ space: R(e.space) }), o = fe("observerTarget"), s = K(() => L(o)?.$el), c = K(() => e.resource.locked || e.resource.processing), l = K(() => e.resource.locked ? {
2734
+ let n = t, { $gettext: r } = Q(), { getParentFolderName: i, getParentFolderLink: a } = Ba({ space: z(e.space) }), o = de("observerTarget"), s = q(() => R(o)?.$el), c = q(() => e.resource.locked || e.resource.processing), l = q(() => e.resource.locked ? {
2804
2735
  name: "lock",
2805
2736
  fillType: "fill"
2806
2737
  } : e.resource.processing ? {
2807
2738
  name: "loop-right",
2808
2739
  fillType: "line"
2809
- } : {}), u = K(() => e.resource.locked ? r("This item is locked") : null), d = K(() => fo(e.resource) ? e.resource.description : ""), { isVisible: f } = e.lazy ? ar({
2740
+ } : {}), u = q(() => e.resource.locked ? r("This item is locked") : null), d = q(() => fo(e.resource) ? e.resource.description : ""), { isVisible: f } = e.lazy ? ir({
2810
2741
  target: s,
2811
2742
  onVisibleCallback: () => n("itemVisible")
2812
- }) : { isVisible: R(!0) }, p = K(() => !L(f));
2743
+ }) : { isVisible: z(!0) }, p = q(() => !R(f));
2813
2744
  return e.lazy || n("itemVisible"), (t, n) => {
2814
- let s = F("oc-spinner"), f = F("oc-tag"), m = F("oc-image"), h = F("oc-icon"), g = ni("oc-tooltip");
2815
- return Z(), V(L(da), {
2745
+ let s = I("oc-spinner"), f = I("oc-tag"), m = I("oc-image"), h = I("oc-icon"), g = ti("oc-tooltip");
2746
+ return Z(), H(R(da), {
2816
2747
  ref_key: "observerTarget",
2817
2748
  ref: o,
2818
2749
  "body-class": "p-0",
2819
- class: B(["oc-tile-card flex flex-col h-full shadow-none [&.item-accentuated]:bg-role-secondary-container", {
2750
+ class: V(["oc-tile-card flex flex-col h-full shadow-none [&.item-accentuated]:bg-role-secondary-container", {
2820
2751
  "oc-tile-card-selected bg-role-secondary-container outline-2 outline-role-outline": e.isResourceSelected,
2821
2752
  "bg-role-surface-container hover:bg-role-surface-container-highest outline outline-role-surface-container-highest": !e.isResourceSelected,
2822
2753
  "oc-tile-card-disabled opacity-70 grayscale-60 pointer-events-none": e.isResourceDisabled,
2823
- "state-trashed [&_.tile-preview]:opacity-80 [&_.tile-default-image_svg]:opacity-80 [&_.tile-preview]:grayscale [&_.tile-default-image_svg]:grayscale": L(so)(e.resource) && e.resource.disabled
2754
+ "state-trashed [&_.tile-preview]:opacity-80 [&_.tile-default-image_svg]:opacity-80 [&_.tile-preview]:grayscale [&_.tile-default-image_svg]:grayscale": R(so)(e.resource) && e.resource.disabled
2824
2755
  }]),
2825
2756
  "data-item-id": e.resource.id,
2826
2757
  onContextmenu: n[4] ||= (e) => t.$emit("contextmenu", e)
2827
2758
  }, {
2828
- default: P(() => [p.value ? (Z(), X("div", rl)) : (Z(), X(U, { key: 1 }, [q(Oe, {
2759
+ default: F(() => [p.value ? (Z(), X("div", Xc)) : (Z(), X(W, { key: 1 }, [J(De, {
2829
2760
  class: "oc-card-media-top flex justify-center items-center m-0 w-full relative aspect-[16/9]",
2830
2761
  resource: e.resource,
2831
2762
  link: e.resourceRoute,
@@ -2833,45 +2764,45 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2833
2764
  tabindex: "-1",
2834
2765
  onClick: n[1] ||= (e) => t.$emit("fileNameClicked", e)
2835
2766
  }, {
2836
- default: P(() => [
2837
- Y("div", il, [e.isLoading ? (Z(), X("div", al, [q(s, { "aria-label": L(r)("File is being processed") }, null, 8, ["aria-label"])])) : k(t.$slots, "selection", {
2767
+ default: F(() => [
2768
+ Y("div", Zc, [e.isLoading ? (Z(), X("div", Qc, [J(s, { "aria-label": R(r)("File is being processed") }, null, 8, ["aria-label"])])) : k(t.$slots, "selection", {
2838
2769
  key: 1,
2839
2770
  item: e.resource
2840
2771
  })]),
2841
- L(so)(e.resource) && e.resource.disabled ? (Z(), V(f, {
2772
+ R(so)(e.resource) && e.resource.disabled ? (Z(), H(f, {
2842
2773
  key: 0,
2843
2774
  class: "z-10 absolute text-role-on-surface",
2844
2775
  type: "span"
2845
2776
  }, {
2846
- default: P(() => [Y("span", { textContent: W(L(r)("Disabled")) }, null, 8, ol)]),
2777
+ default: F(() => [Y("span", { textContent: G(R(r)("Disabled")) }, null, 8, $c)]),
2847
2778
  _: 1
2848
- })) : G("", !0),
2849
- I((Z(), X("div", {
2850
- class: B(["oc-tile-card-preview flex items-center justify-center text-center size-full absolute", {
2779
+ })) : K("", !0),
2780
+ L((Z(), X("div", {
2781
+ class: V(["oc-tile-card-preview flex items-center justify-center text-center size-full absolute", {
2851
2782
  "p-2": e.isResourceSelected,
2852
2783
  "hover:p-2": !e.isResourceSelected
2853
2784
  }]),
2854
2785
  "aria-label": u.value
2855
- }, [k(t.$slots, "imageField", { item: e.resource }, () => [e.resource.thumbnail ? (Z(), V(m, {
2786
+ }, [k(t.$slots, "imageField", { item: e.resource }, () => [e.resource.thumbnail ? (Z(), H(m, {
2856
2787
  key: 0,
2857
- class: B(["tile-preview rounded-t-sm size-full object-cover aspect-[16/9] pointer-events-none", { "rounded-sm": e.isResourceSelected }]),
2788
+ class: V(["tile-preview rounded-t-sm size-full object-cover aspect-[16/9] pointer-events-none", { "rounded-sm": e.isResourceSelected }]),
2858
2789
  src: e.resource.thumbnail,
2859
2790
  "data-test-thumbnail-resource-name": e.resource.name,
2860
- onClick: n[0] ||= J((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
2791
+ onClick: n[0] ||= Ki((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
2861
2792
  }, null, 8, [
2862
2793
  "class",
2863
2794
  "src",
2864
2795
  "data-test-thumbnail-resource-name"
2865
- ])) : (Z(), V(rn, {
2796
+ ])) : (Z(), H(nn, {
2866
2797
  key: 1,
2867
2798
  resource: e.resource,
2868
2799
  size: e.resourceIconSize,
2869
2800
  class: "tile-default-image pt-1 relative"
2870
- }, dr({ _: 2 }, [c.value ? {
2801
+ }, ur({ _: 2 }, [c.value ? {
2871
2802
  name: "status",
2872
- fn: P(() => [q(h, va(l.value, { size: "xsmall" }), null, 16)]),
2803
+ fn: F(() => [J(h, va(l.value, { size: "xsmall" }), null, 16)]),
2873
2804
  key: "0"
2874
- } : void 0]), 1032, ["resource", "size"]))])], 10, sl)), [[g, u.value]])
2805
+ } : void 0]), 1032, ["resource", "size"]))])], 10, el)), [[g, u.value]])
2875
2806
  ]),
2876
2807
  _: 3
2877
2808
  }, 8, [
@@ -2880,18 +2811,18 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2880
2811
  "is-resource-clickable"
2881
2812
  ]), Y("div", {
2882
2813
  class: "p-2",
2883
- onClick: n[3] ||= J((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
2814
+ onClick: n[3] ||= Ki((n) => t.$emit("tileClicked", [e.resource, n]), ["stop"])
2884
2815
  }, [
2885
- Y("div", cl, [Y("div", ll, [q(y, {
2816
+ Y("div", tl, [Y("div", nl, [J(y, {
2886
2817
  resource: e.resource,
2887
2818
  "is-icon-displayed": !1,
2888
2819
  "is-extension-displayed": e.isExtensionDisplayed,
2889
2820
  "is-resource-clickable": e.isResourceClickable,
2890
2821
  "is-path-displayed": e.isPathDisplayed,
2891
- "parent-folder-name": L(i)(e.resource),
2892
- "parent-folder-link": L(a)(e.resource),
2822
+ "parent-folder-name": R(i)(e.resource),
2823
+ "parent-folder-link": R(a)(e.resource),
2893
2824
  link: e.resourceRoute,
2894
- onClick: n[2] ||= J((e) => t.$emit("fileNameClicked", e), ["stop"])
2825
+ onClick: n[2] ||= Ki((e) => t.$emit("fileNameClicked", e), ["stop"])
2895
2826
  }, null, 8, [
2896
2827
  "resource",
2897
2828
  "is-extension-displayed",
@@ -2900,7 +2831,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2900
2831
  "parent-folder-name",
2901
2832
  "parent-folder-link",
2902
2833
  "link"
2903
- ])]), Y("div", ul, [
2834
+ ])]), Y("div", rl, [
2904
2835
  k(t.$slots, "indicators", {
2905
2836
  item: e.resource,
2906
2837
  class: "resource-indicators"
@@ -2908,26 +2839,26 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2908
2839
  k(t.$slots, "actions", { item: e.resource }),
2909
2840
  k(t.$slots, "contextMenu", { item: e.resource })
2910
2841
  ])]),
2911
- d.value ? (Z(), X("p", dl, [Y("span", {
2842
+ d.value ? (Z(), X("p", il, [Y("span", {
2912
2843
  class: "text-sm",
2913
- textContent: W(d.value)
2914
- }, null, 8, fl)])) : G("", !0),
2844
+ textContent: G(d.value)
2845
+ }, null, 8, al)])) : K("", !0),
2915
2846
  k(t.$slots, "additionalResourceContent", { item: e.resource })
2916
2847
  ])], 64))]),
2917
2848
  _: 3
2918
2849
  }, 8, ["data-item-id", "class"]);
2919
2850
  };
2920
2851
  }
2921
- }), ml = {
2852
+ }), sl = {
2922
2853
  id: "tiles-view",
2923
2854
  class: "px-4 pt-2"
2924
- }, hl = { class: "flex items-center mb-2 pb-2 oc-tiles-controls" }, gl = {
2855
+ }, cl = { class: "flex items-center mb-2 pb-2 oc-tiles-controls" }, ll = {
2925
2856
  key: 1,
2926
2857
  class: "oc-tiles-sort"
2927
- }, _l = {
2858
+ }, ul = {
2928
2859
  key: 0,
2929
2860
  class: "flex"
2930
- }, vl = { class: "p-1 text-sm" }, yl = /* @__PURE__ */ z(/* @__PURE__ */ H({
2861
+ }, dl = { class: "p-1 text-sm" }, fl = /* @__PURE__ */ B(/* @__PURE__ */ U({
2931
2862
  __name: "ResourceTiles",
2932
2863
  props: {
2933
2864
  resources: { default: () => [] },
@@ -2966,77 +2897,77 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
2966
2897
  "update:selectedIds"
2967
2898
  ],
2968
2899
  setup(e, { emit: t }) {
2969
- let n = t, { $gettext: r } = Q(), { areFileExtensionsShown: i } = $(fr()), { isLocationPicker: a, isFilePicker: o } = li(), s = Dr(), c = K(() => Math.min(L(s), e.viewSize)), { isSideBarOpen: l } = $(ki()), { disabledResources: u, isResourceSelected: d, fileContainerClicked: f, fileNameClicked: p, fileCheckboxClicked: m, isResourceDisabled: h, isResourceInDeleteQueue: g, isResourceClickable: _, isResourceCut: v, getResourceLink: y, dragItem: b, dragSelection: x, dragStart: S, fileDropped: C, setDropStyling: ee, shouldShowContextDrop: w, showContextMenuOnRightClick: T, showContextMenuOnBtnClick: te, selectAllCheckboxLabel: E, getResourceCheckboxLabel: D, toggleSelectionAll: O, areAllResourcesSelected: A } = Yi({
2970
- space: K(() => e.space),
2971
- resources: K(() => e.resources),
2972
- selectedIds: K(() => e.selectedIds),
2900
+ let n = t, { $gettext: r } = Q(), { areFileExtensionsShown: i } = $(dr()), { isLocationPicker: a, isFilePicker: o } = ci(), s = Er(), c = q(() => Math.min(R(s), e.viewSize)), { isSideBarOpen: l } = $(Oi()), { disabledResources: u, isResourceSelected: d, fileContainerClicked: f, fileNameClicked: p, fileCheckboxClicked: m, isResourceDisabled: h, isResourceInDeleteQueue: g, isResourceClickable: _, isResourceCut: v, getResourceLink: y, dragItem: b, dragSelection: x, dragStart: S, fileDropped: C, setDropStyling: ee, shouldShowContextDrop: w, showContextMenuOnRightClick: T, showContextMenuOnBtnClick: te, selectAllCheckboxLabel: E, getResourceCheckboxLabel: D, toggleSelectionAll: O, areAllResourcesSelected: A } = Yi({
2901
+ space: q(() => e.space),
2902
+ resources: q(() => e.resources),
2903
+ selectedIds: q(() => e.selectedIds),
2973
2904
  emit: n
2974
- }), ne = R({}), re = window.__E2E__ === !0 ? !1 : e.lazy, j = K(() => e.sortFields.find((t) => t.name === e.sortBy && t.sortDir === e.sortDir) || e.sortFields[0]), ie = (e) => {
2905
+ }), ne = z({}), re = window.__E2E__ === !0 ? !1 : e.lazy, j = q(() => e.sortFields.find((t) => t.name === e.sortBy && t.sortDir === e.sortDir) || e.sortFields[0]), ie = (e) => {
2975
2906
  n("sort", {
2976
2907
  sortBy: e.name,
2977
- sortDir: L(e.sortDir)
2908
+ sortDir: R(e.sortDir)
2978
2909
  });
2979
- }, ae = K(() => ({
2910
+ }, ae = q(() => ({
2980
2911
  1: "xlarge",
2981
2912
  2: "xlarge",
2982
2913
  3: "xxlarge",
2983
2914
  4: "xxlarge",
2984
2915
  5: "xxxlarge",
2985
2916
  6: "xxxlarge"
2986
- })[L(c)] ?? "xxlarge"), oe = R(0), se = () => {
2917
+ })[R(c)] ?? "xxlarge"), N = z(0), oe = () => {
2987
2918
  let e = document.getElementById("tiles-view"), t = getComputedStyle(e), n = parseInt(t.getPropertyValue("padding-left"), 10) | 0, r = parseInt(t.getPropertyValue("padding-right"), 10) | 0;
2988
- oe.value = e.clientWidth - n - r;
2989
- }, ce = K(() => parseFloat(getComputedStyle(document.documentElement).fontSize)), { calculateTileSizePixels: le } = Fn(), ue = K(() => {
2919
+ N.value = e.clientWidth - n - r;
2920
+ }, se = q(() => parseFloat(getComputedStyle(document.documentElement).fontSize)), { calculateTileSizePixels: ce } = Pn(), le = q(() => {
2990
2921
  let e = [...Array(ma.tilesSizeMax).keys()].map((e) => e + 1);
2991
2922
  return [...new Set(e.map((e) => {
2992
- let t = le(e);
2993
- return t ? Math.round(L(oe) / (t + L(ce))) : 0;
2923
+ let t = ce(e);
2924
+ return t ? Math.round(R(N) / (t + R(se))) : 0;
2994
2925
  }))];
2995
- }), de = K(() => {
2996
- let e = L(ue);
2997
- return e.length < L(c) ? e[e.length - 1] : e[L(c) - 1];
2998
- }), fe = K(() => {
2999
- let t = L(de) ? e.resources.length % L(de) : 0;
3000
- return t ? L(de) - t : 0;
2926
+ }), ue = q(() => {
2927
+ let e = R(le);
2928
+ return e.length < R(c) ? e[e.length - 1] : e[R(c) - 1];
2929
+ }), de = q(() => {
2930
+ let t = R(ue) ? e.resources.length % R(ue) : 0;
2931
+ return t ? R(ue) - t : 0;
3001
2932
  });
3002
- return N(K(() => L(oe) / L(de) - L(ce)), (e) => {
2933
+ return P(q(() => R(N) / R(ue) - R(se)), (e) => {
3003
2934
  e && !isNaN(e) && document.documentElement.style.setProperty("--oc-size-tiles-actual", `${e}px`);
3004
- }, { immediate: !0 }), N(ue, (e) => {
2935
+ }, { immediate: !0 }), P(le, (e) => {
3005
2936
  s.value = Math.max(e.length, 1);
3006
- }), N(l, () => {
3007
- se();
3008
- }), Ht(() => {
3009
- window.addEventListener("resize", se), se();
2937
+ }), P(l, () => {
2938
+ oe();
2939
+ }), Vt(() => {
2940
+ window.addEventListener("resize", oe), oe();
3010
2941
  }), ja(() => {
3011
- window.removeEventListener("resize", se);
2942
+ window.removeEventListener("resize", oe);
3012
2943
  }), (t, n) => {
3013
- let s = F("oc-checkbox"), c = F("oc-icon"), l = F("oc-button"), oe = F("oc-list"), se = F("oc-filter-chip"), ce = ni("oc-tooltip");
3014
- return Z(), X("div", ml, [
3015
- Y("div", hl, [e.isSelectable && !L(o) ? I((Z(), V(s, {
2944
+ let s = I("oc-checkbox"), c = I("oc-icon"), l = I("oc-button"), N = I("oc-list"), oe = I("oc-filter-chip"), se = ti("oc-tooltip");
2945
+ return Z(), X("div", sl, [
2946
+ Y("div", cl, [e.isSelectable && !R(o) ? L((Z(), H(s, {
3016
2947
  key: 0,
3017
2948
  id: "tiles-view-select-all",
3018
2949
  class: "ml-2",
3019
2950
  size: "large",
3020
- label: L(E),
2951
+ label: R(E),
3021
2952
  "label-hidden": !0,
3022
- disabled: e.resources.length === L(u).length,
3023
- "model-value": L(A),
3024
- onClick: J(L(O), ["stop"])
2953
+ disabled: e.resources.length === R(u).length,
2954
+ "model-value": R(A),
2955
+ onClick: Ki(R(O), ["stop"])
3025
2956
  }, null, 8, [
3026
2957
  "label",
3027
2958
  "disabled",
3028
2959
  "model-value",
3029
2960
  "onClick"
3030
- ])), [[ce, L(E)]]) : G("", !0), e.sortFields.length ? (Z(), X("div", gl, [q(se, {
2961
+ ])), [[se, R(E)]]) : K("", !0), e.sortFields.length ? (Z(), X("div", ll, [J(oe, {
3031
2962
  class: "[&_.oc-filter-chip-label]:text-sm",
3032
- "filter-label": L(r)("Sort by"),
2963
+ "filter-label": R(r)("Sort by"),
3033
2964
  "selected-item-names": [j.value.label],
3034
2965
  "has-active-state": !1,
3035
2966
  "close-on-click": "",
3036
2967
  raw: ""
3037
2968
  }, {
3038
- default: P(() => [q(oe, null, {
3039
- default: P(() => [(Z(!0), X(U, null, M(e.sortFields, (e, t) => (Z(), X("li", { key: t }, [q(l, {
2969
+ default: F(() => [J(N, null, {
2970
+ default: F(() => [(Z(!0), X(W, null, M(e.sortFields, (e, t) => (Z(), X("li", { key: t }, [J(l, {
3040
2971
  appearance: j.value === e ? "filled" : "raw-inverse",
3041
2972
  "color-role": j.value === e ? "secondaryContainer" : "surface",
3042
2973
  "no-hover": j.value === e,
@@ -3044,7 +2975,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3044
2975
  class: "oc-tiles-sort-filter-chip-item",
3045
2976
  onClick: (t) => ie(e)
3046
2977
  }, {
3047
- default: P(() => [Y("span", null, W(e.label), 1), e === j.value ? (Z(), X("div", _l, [q(c, { name: "check" })])) : G("", !0)]),
2978
+ default: F(() => [Y("span", null, G(e.label), 1), e === j.value ? (Z(), X("div", ul, [J(c, { name: "check" })])) : K("", !0)]),
3048
2979
  _: 2
3049
2980
  }, 1032, [
3050
2981
  "appearance",
@@ -3055,55 +2986,55 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3055
2986
  _: 1
3056
2987
  })]),
3057
2988
  _: 1
3058
- }, 8, ["filter-label", "selected-item-names"])])) : G("", !0)]),
3059
- q(oe, { class: "oc-tiles grid justify-start gap-3" }, {
3060
- default: P(() => [(Z(!0), X(U, null, M(e.resources, (r) => (Z(), X("li", {
2989
+ }, 8, ["filter-label", "selected-item-names"])])) : K("", !0)]),
2990
+ J(N, { class: "oc-tiles grid justify-start gap-3" }, {
2991
+ default: F(() => [(Z(!0), X(W, null, M(e.resources, (r) => (Z(), X("li", {
3061
2992
  key: r.id,
3062
2993
  class: "oc-tiles-item has-item-context-menu"
3063
- }, [q(pl, {
2994
+ }, [J(ol, {
3064
2995
  resource: r,
3065
2996
  space: e.space,
3066
- "resource-route": L(y)(r),
3067
- "is-resource-selected": L(d)(r),
3068
- "is-resource-clickable": L(_)(r, e.areResourcesClickable),
3069
- "is-resource-disabled": L(h)(r),
3070
- "is-extension-displayed": L(i),
2997
+ "resource-route": R(y)(r),
2998
+ "is-resource-selected": R(d)(r),
2999
+ "is-resource-clickable": R(_)(r, e.areResourcesClickable),
3000
+ "is-resource-disabled": R(h)(r),
3001
+ "is-extension-displayed": R(i),
3071
3002
  "is-path-displayed": e.arePathsDisplayed,
3072
3003
  "resource-icon-size": ae.value,
3073
3004
  draggable: e.dragDrop,
3074
- lazy: L(re),
3075
- "is-loading": L(g)(r.id),
3076
- class: B({ "opacity-60": L(v)(r) }),
3077
- onContextmenu: (e) => L(T)(e, r, ne.value[r.id]),
3078
- onFileNameClicked: J((e) => L(p)({
3005
+ lazy: R(re),
3006
+ "is-loading": R(g)(r.id),
3007
+ class: V({ "opacity-60": R(v)(r) }),
3008
+ onContextmenu: (e) => R(T)(e, r, ne.value[r.id]),
3009
+ onFileNameClicked: Ki((e) => R(p)({
3079
3010
  resource: r,
3080
3011
  event: e
3081
3012
  }), ["stop"]),
3082
- onDragstart: (e) => L(S)(r, e),
3083
- onDragenter: J((e) => L(ee)(r, !1, e), ["prevent"]),
3084
- onDragleave: J((e) => L(ee)(r, !0, e), ["prevent"]),
3085
- onDrop: (e) => L(C)(r, e),
3013
+ onDragstart: (e) => R(S)(r, e),
3014
+ onDragenter: Ki((e) => R(ee)(r, !1, e), ["prevent"]),
3015
+ onDragleave: Ki((e) => R(ee)(r, !0, e), ["prevent"]),
3016
+ onDrop: (e) => R(C)(r, e),
3086
3017
  onDragover: n[0] ||= (e) => e.preventDefault(),
3087
3018
  onItemVisible: (e) => t.$emit("itemVisible", r),
3088
- onTileClicked: (e) => L(f)({
3019
+ onTileClicked: (e) => R(f)({
3089
3020
  resource: r,
3090
3021
  event: e[1]
3091
3022
  })
3092
3023
  }, {
3093
- selection: P(() => [e.isSelectable && !L(a) && !L(o) ? (Z(), V(s, {
3024
+ selection: F(() => [e.isSelectable && !R(a) && !R(o) ? (Z(), H(s, {
3094
3025
  key: 0,
3095
- label: L(D)(r),
3026
+ label: R(D)(r),
3096
3027
  "label-hidden": !0,
3097
3028
  size: "large",
3098
3029
  class: "inline-flex p-2.5",
3099
- disabled: L(h)(r),
3100
- "model-value": L(d)(r),
3030
+ disabled: R(h)(r),
3031
+ "model-value": R(d)(r),
3101
3032
  "data-test-selection-resource-name": r.name,
3102
3033
  "data-test-selection-resource-path": r.path,
3103
- onClick: J((e) => L(m)({
3034
+ onClick: Ki((e) => R(m)({
3104
3035
  resource: r,
3105
3036
  event: e
3106
- }), ["stop", "prevent"])
3037
+ }), ["stop"])
3107
3038
  }, null, 8, [
3108
3039
  "label",
3109
3040
  "disabled",
@@ -3111,38 +3042,38 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3111
3042
  "data-test-selection-resource-name",
3112
3043
  "data-test-selection-resource-path",
3113
3044
  "onClick"
3114
- ])) : G("", !0)]),
3115
- imageField: P(() => [k(t.$slots, "image", { resource: r }, void 0, !0)]),
3116
- indicators: P(() => [q(zc, {
3045
+ ])) : K("", !0)]),
3046
+ imageField: F(() => [k(t.$slots, "image", { resource: r }, void 0, !0)]),
3047
+ indicators: F(() => [J(Mc, {
3117
3048
  space: e.space,
3118
3049
  class: "ml-2",
3119
3050
  resource: r,
3120
3051
  filter: (e) => ["system", "sharing"].includes(e.category),
3121
- "disable-handler": L(h)(r)
3052
+ "disable-handler": R(h)(r)
3122
3053
  }, null, 8, [
3123
3054
  "space",
3124
3055
  "resource",
3125
3056
  "filter",
3126
3057
  "disable-handler"
3127
3058
  ])]),
3128
- actions: P(() => [k(t.$slots, "actions", { resource: r }, void 0, !0)]),
3129
- contextMenu: P(() => [L(w)(r) ? (Z(), V(L(Ec), {
3059
+ actions: F(() => [k(t.$slots, "actions", { resource: r }, void 0, !0)]),
3060
+ contextMenu: F(() => [R(w)(r) ? (Z(), H(R(yc), {
3130
3061
  key: 0,
3131
3062
  ref_for: !0,
3132
3063
  ref: (e) => ne.value[r.id] = e?.drop,
3133
3064
  item: r,
3134
3065
  title: r.name,
3135
3066
  class: "resource-tiles-btn-action-dropdown",
3136
- onQuickActionClicked: (e) => L(te)(e, r, ne.value[r.id])
3067
+ onQuickActionClicked: (e) => R(te)(e, r, ne.value[r.id])
3137
3068
  }, {
3138
- contextMenu: P(() => [k(t.$slots, "contextMenu", { resource: r }, void 0, !0)]),
3069
+ contextMenu: F(() => [k(t.$slots, "contextMenu", { resource: r }, void 0, !0)]),
3139
3070
  _: 2
3140
3071
  }, 1032, [
3141
3072
  "item",
3142
3073
  "title",
3143
3074
  "onQuickActionClicked"
3144
- ])) : G("", !0)]),
3145
- additionalResourceContent: P(() => [k(t.$slots, "additionalResourceContent", { resource: r }, void 0, !0)]),
3075
+ ])) : K("", !0)]),
3076
+ additionalResourceContent: F(() => [k(t.$slots, "additionalResourceContent", { resource: r }, void 0, !0)]),
3146
3077
  _: 2
3147
3078
  }, 1032, [
3148
3079
  "resource",
@@ -3166,25 +3097,25 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3166
3097
  "onDrop",
3167
3098
  "onItemVisible",
3168
3099
  "onTileClicked"
3169
- ])]))), 128)), (Z(!0), X(U, null, M(fe.value, (e) => (Z(), X("li", {
3100
+ ])]))), 128)), (Z(!0), X(W, null, M(de.value, (e) => (Z(), X("li", {
3170
3101
  key: `ghost-tile-${e}`,
3171
3102
  class: "list-item",
3172
3103
  "aria-hidden": !0
3173
3104
  }))), 128))]),
3174
3105
  _: 3
3175
3106
  }),
3176
- L(b) ? (Z(), V(Kn, {
3107
+ R(b) ? (Z(), H(Gn, {
3177
3108
  key: 0,
3178
3109
  to: "body"
3179
- }, [q(Pc, {
3110
+ }, [J(Dc, {
3180
3111
  ref: "ghostElement",
3181
- "preview-items": [L(b), ...L(x)]
3182
- }, null, 8, ["preview-items"])])) : G("", !0),
3183
- Y("div", vl, [k(t.$slots, "footer", {}, void 0, !0)])
3112
+ "preview-items": [R(b), ...R(x)]
3113
+ }, null, 8, ["preview-items"])])) : K("", !0),
3114
+ Y("div", dl, [k(t.$slots, "footer", {}, void 0, !0)])
3184
3115
  ]);
3185
3116
  };
3186
3117
  }
3187
- }), [["__scopeId", "data-v-8798a647"]]), bl = { class: "flex items-center truncate" }, xl = { class: "truncate ml-2" }, Sl = { class: "flex" }, Cl = { class: "my-1" }, wl = { class: "flex items-center truncate" }, Tl = { class: "truncate ml-2" }, El = ["textContent"], Dl = { class: "flex" }, Ol = { class: "flex items-center justify-between mb-4" }, kl = ["textContent"], Al = { class: "mt-2" }, jl = { class: "date-filter-apply-btn text-end" }, Ml = /* @__PURE__ */ z(/* @__PURE__ */ H({
3118
+ }), [["__scopeId", "data-v-15ffc95e"]]), pl = { class: "flex items-center truncate" }, ml = { class: "truncate ml-2" }, hl = { class: "flex" }, gl = { class: "my-1" }, _l = { class: "flex items-center truncate" }, vl = { class: "truncate ml-2" }, yl = ["textContent"], bl = { class: "flex" }, xl = { class: "flex items-center justify-between mb-4" }, Sl = ["textContent"], Cl = { class: "mt-2" }, wl = { class: "date-filter-apply-btn text-end" }, Tl = /* @__PURE__ */ B(/* @__PURE__ */ U({
3188
3119
  __name: "DateFilter",
3189
3120
  props: {
3190
3121
  filterLabel: {},
@@ -3195,40 +3126,40 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3195
3126
  },
3196
3127
  emits: ["selectionChange"],
3197
3128
  setup(e, { expose: t, emit: n }) {
3198
- let i = n, a = Mi(), { current: o } = Q(), s = xr(), { currentTheme: c } = $(za()), l = R(), u = R(e.items), d = R(), f = R(), p = R(!1), m = R(), h = `q_${e.filterName}`, g = r(h), _ = (t) => t[e.idAttribute], v = () => a.push({ query: {
3199
- ...Zi(L(s).query, [h]),
3200
- ...L(l) && { [h]: _(L(l)) }
3201
- } }), y = (e) => L(l) && _(L(l)) === _(e), b = () => {
3129
+ let i = n, a = ji(), { current: o } = Q(), s = br(), { currentTheme: c } = $(za()), l = z(), u = z(e.items), d = z(), f = z(), p = z(!1), m = z(), h = `q_${e.filterName}`, g = r(h), _ = (t) => t[e.idAttribute], v = () => a.push({ query: {
3130
+ ...Zi(R(s).query, [h]),
3131
+ ...R(l) && { [h]: _(R(l)) }
3132
+ } }), y = (e) => R(l) && _(R(l)) === _(e), b = () => {
3202
3133
  d.value = void 0, f.value = void 0;
3203
3134
  }, x = async (e) => {
3204
- b(), y(e) ? l.value = void 0 : (l.value = e, L(m).hideDrop()), await v(), i("selectionChange", L(l));
3135
+ b(), y(e) ? l.value = void 0 : (l.value = e, R(m).hideDrop()), await v(), i("selectionChange", R(l));
3205
3136
  }, S = () => {
3206
- l.value = void 0, p.value = !1, b(), i("selectionChange", L(l)), v();
3137
+ l.value = void 0, p.value = !1, b(), i("selectionChange", R(l)), v();
3207
3138
  }, C = () => {
3208
3139
  u.value = e.items;
3209
3140
  }, ee = () => {
3210
3141
  p.value = !1;
3211
3142
  }, w = () => {
3212
- let t = Re(L(g));
3143
+ let t = Le(R(g));
3213
3144
  if (!t) return;
3214
3145
  let n = e.items.find((e) => _(e) === t);
3215
3146
  if (n) {
3216
3147
  l.value = n;
3217
3148
  return;
3218
3149
  }
3219
- if (L(T)) {
3150
+ if (R(T)) {
3220
3151
  let e = t.replace("range:", ""), n = Number(e.split(" - ")[0]), r = Number(e.split(" - ")[1]);
3221
- d.value = _o.fromMillis(n), f.value = _o.fromMillis(r), l.value = L(E);
3152
+ d.value = _o.fromMillis(n), f.value = _o.fromMillis(r), l.value = R(E);
3222
3153
  }
3223
- }, T = K(() => Re(L(g))?.startsWith("range:")), te = K(() => !L(d) || !L(f) ? !1 : L(d) <= L(f)), E = K(() => {
3224
- if (!L(d) || !L(f)) return null;
3225
- let t = Vi(L(d), o, _o.DATE_SHORT), n = Vi(L(f), o, _o.DATE_SHORT), r = L(d).toMillis(), i = L(f).toMillis();
3154
+ }, T = q(() => Le(R(g))?.startsWith("range:")), te = q(() => !R(d) || !R(f) ? !1 : R(d) <= R(f)), E = q(() => {
3155
+ if (!R(d) || !R(f)) return null;
3156
+ let t = Bi(R(d), o, _o.DATE_SHORT), n = Bi(R(f), o, _o.DATE_SHORT), r = R(d).toMillis(), i = R(f).toMillis();
3226
3157
  return {
3227
3158
  [e.idAttribute]: `range:${r} - ${i}`,
3228
3159
  [e.displayNameAttribute]: `${t} - ${n}`
3229
3160
  };
3230
3161
  }), D = async () => {
3231
- l.value = L(E), await v(), L(m).hideDrop(), i("selectionChange", L(l));
3162
+ l.value = R(E), await v(), R(m).hideDrop(), i("selectionChange", R(l));
3232
3163
  }, O = ({ date: e, error: t }, n) => {
3233
3164
  if (t) {
3234
3165
  console.error("date could not be set");
@@ -3241,11 +3172,11 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3241
3172
  }
3242
3173
  r.value = n === "from" ? e.startOf("day") : e.endOf("day");
3243
3174
  };
3244
- return t({ setSelectedItemsBasedOnQuery: w }), Ht(() => {
3175
+ return t({ setSelectedItemsBasedOnQuery: w }), Vt(() => {
3245
3176
  w();
3246
3177
  }), (t, n) => {
3247
- let r = F("oc-icon"), i = F("oc-button"), a = F("oc-list"), o = F("oc-datepicker");
3248
- return Z(), X("div", { class: B(["date-filter flex overflow-hidden [&_label]:text-sm", `date-filter-${e.filterName}`]) }, [q(L(ir), {
3178
+ let r = I("oc-icon"), i = I("oc-button"), a = I("oc-list"), o = I("oc-datepicker");
3179
+ return Z(), X("div", { class: V(["date-filter flex overflow-hidden [&_label]:text-sm", `date-filter-${e.filterName}`]) }, [J(R(rr), {
3249
3180
  ref_key: "filterChip",
3250
3181
  ref: m,
3251
3182
  "filter-label": e.filterLabel,
@@ -3254,84 +3185,84 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3254
3185
  onShowDrop: C,
3255
3186
  onHideDrop: ee
3256
3187
  }, {
3257
- default: P(() => [q(a, { class: B({ "invisible min-h-[225px] transition-[visibility] duration-[0.4s,0s]": p.value }) }, {
3258
- default: P(() => [(Z(!0), X(U, null, M(u.value, (n, a) => (Z(), X("li", {
3188
+ default: F(() => [J(a, { class: V({ "invisible min-h-[225px] transition-[visibility] duration-[0.4s,0s]": p.value }) }, {
3189
+ default: F(() => [(Z(!0), X(W, null, M(u.value, (n, a) => (Z(), X("li", {
3259
3190
  key: a,
3260
3191
  class: "my-1 first:mt-0 last:mb-0"
3261
- }, [q(i, {
3262
- class: B(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": y(n) }]),
3192
+ }, [J(i, {
3193
+ class: V(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": y(n) }]),
3263
3194
  "justify-content": "space-between",
3264
3195
  appearance: "raw",
3265
3196
  "data-testid": n[e.displayNameAttribute],
3266
3197
  onClick: (e) => x(n)
3267
3198
  }, {
3268
- default: P(() => [Y("div", bl, [Y("div", xl, [k(t.$slots, "item", { item: n }, void 0, !0)])]), Y("div", Sl, [y(n) ? (Z(), V(r, {
3199
+ default: F(() => [Y("div", pl, [Y("div", ml, [k(t.$slots, "item", { item: n }, void 0, !0)])]), Y("div", hl, [y(n) ? (Z(), H(r, {
3269
3200
  key: 0,
3270
3201
  name: "check"
3271
- })) : G("", !0)])]),
3202
+ })) : K("", !0)])]),
3272
3203
  _: 2
3273
3204
  }, 1032, [
3274
3205
  "class",
3275
3206
  "data-testid",
3276
3207
  "onClick"
3277
- ])]))), 128)), Y("li", Cl, [q(i, {
3278
- class: B(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": T.value }]),
3208
+ ])]))), 128)), Y("li", gl, [J(i, {
3209
+ class: V(["date-filter-list-item flex justify-between items-center w-full p-1", { "date-filter-list-item-active": T.value }]),
3279
3210
  "justify-content": "space-between",
3280
3211
  appearance: "raw",
3281
3212
  "data-testid": "custom-date-range",
3282
3213
  onClick: n[0] ||= (e) => p.value = !0
3283
3214
  }, {
3284
- default: P(() => [Y("div", wl, [Y("div", Tl, [Y("span", { textContent: W(t.$gettext("Custom date range")) }, null, 8, El)])]), Y("div", Dl, [T.value ? (Z(), V(r, {
3215
+ default: F(() => [Y("div", _l, [Y("div", vl, [Y("span", { textContent: G(t.$gettext("Custom date range")) }, null, 8, yl)])]), Y("div", bl, [T.value ? (Z(), H(r, {
3285
3216
  key: 0,
3286
3217
  name: "check"
3287
- })) : G("", !0)])]),
3218
+ })) : K("", !0)])]),
3288
3219
  _: 1
3289
3220
  }, 8, ["class"])])]),
3290
3221
  _: 3
3291
- }, 8, ["class"]), Y("div", { class: B(["date-filter-range-panel absolute top-0 p-2 bg-role-surface", {
3222
+ }, 8, ["class"]), Y("div", { class: V(["date-filter-range-panel absolute top-0 p-2 bg-role-surface", {
3292
3223
  "transform-[translateX(0)] visible": p.value,
3293
3224
  "transform-[translateX(100%)] invisible": !p.value
3294
3225
  }]) }, [
3295
- Y("div", Ol, [
3296
- q(i, {
3226
+ Y("div", xl, [
3227
+ J(i, {
3297
3228
  appearance: "raw",
3298
3229
  class: "date-filter-range-panel-back",
3299
3230
  "aria-label": t.$gettext("Go back to filter options"),
3300
3231
  onClick: n[1] ||= (e) => p.value = !1
3301
3232
  }, {
3302
- default: P(() => [q(r, {
3233
+ default: F(() => [J(r, {
3303
3234
  name: "arrow-left-s",
3304
3235
  "fill-type": "line"
3305
3236
  })]),
3306
3237
  _: 1
3307
3238
  }, 8, ["aria-label"]),
3308
- Y("span", { textContent: W(t.$gettext("Custom date range")) }, null, 8, kl),
3309
- q(i, {
3239
+ Y("span", { textContent: G(t.$gettext("Custom date range")) }, null, 8, Sl),
3240
+ J(i, {
3310
3241
  appearance: "raw",
3311
3242
  class: "date-filter-range-panel-close",
3312
3243
  "aria-label": t.$gettext("Close filter"),
3313
3244
  onClick: n[2] ||= (e) => m.value.hideDrop()
3314
3245
  }, {
3315
- default: P(() => [q(r, { name: "close" })]),
3246
+ default: F(() => [J(r, { name: "close" })]),
3316
3247
  _: 1
3317
3248
  }, 8, ["aria-label"])
3318
3249
  ]),
3319
- Y("div", Al, [q(o, {
3250
+ Y("div", Cl, [J(o, {
3320
3251
  label: t.$gettext("From"),
3321
3252
  "is-clearable": !0,
3322
3253
  "current-date": d.value,
3323
- "is-dark": L(c).isDark,
3254
+ "is-dark": R(c).isDark,
3324
3255
  onDateChanged: n[3] ||= (e) => O(e, "from")
3325
3256
  }, null, 8, [
3326
3257
  "label",
3327
3258
  "current-date",
3328
3259
  "is-dark"
3329
- ]), q(o, {
3260
+ ]), J(o, {
3330
3261
  label: t.$gettext("To"),
3331
3262
  "is-clearable": !0,
3332
3263
  "current-date": f.value,
3333
3264
  "min-date": d.value ? d.value : void 0,
3334
- "is-dark": L(c).isDark,
3265
+ "is-dark": R(c).isDark,
3335
3266
  onDateChanged: n[4] ||= (e) => O(e, "to")
3336
3267
  }, null, 8, [
3337
3268
  "label",
@@ -3339,12 +3270,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3339
3270
  "min-date",
3340
3271
  "is-dark"
3341
3272
  ])]),
3342
- Y("div", jl, [q(i, {
3273
+ Y("div", wl, [J(i, {
3343
3274
  size: "small",
3344
3275
  disabled: !te.value,
3345
3276
  onClick: D
3346
3277
  }, {
3347
- default: P(() => [wr(W(t.$gettext("Apply")), 1)]),
3278
+ default: F(() => [Cr(G(t.$gettext("Apply")), 1)]),
3348
3279
  _: 1
3349
3280
  }, 8, ["disabled"])])
3350
3281
  ], 2)]),
@@ -3352,7 +3283,7 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3352
3283
  }, 8, ["filter-label", "selected-item-names"])], 2);
3353
3284
  };
3354
3285
  }
3355
- }), [["__scopeId", "data-v-9c476fec"]]), Nl = H({
3286
+ }), [["__scopeId", "data-v-9c476fec"]]), El = U({
3356
3287
  name: "ItemFilterInline",
3357
3288
  props: {
3358
3289
  filterName: {
@@ -3366,12 +3297,12 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3366
3297
  },
3367
3298
  emits: ["toggleFilter"],
3368
3299
  setup: function(e, { emit: t }) {
3369
- let n = Mi(), i = xr(), a = R(e.filterOptions[0].name), o = `q_${e.filterName}`, s = r(o), c = (e) => n.push({ query: {
3370
- ...Zi(L(i).query, [o]),
3300
+ let n = ji(), i = br(), a = z(e.filterOptions[0].name), o = `q_${e.filterName}`, s = r(o), c = (e) => n.push({ query: {
3301
+ ...Zi(R(i).query, [o]),
3371
3302
  [o]: e
3372
3303
  } });
3373
- return Ht(() => {
3374
- let n = Re(L(s));
3304
+ return Vt(() => {
3305
+ let n = Le(R(s));
3375
3306
  n && e.filterOptions.some(({ name: e }) => e === n) && (a.value = n, t("toggleFilter", e.filterOptions.find(({ name: e }) => e === n)));
3376
3307
  }), {
3377
3308
  queryParam: o,
@@ -3381,22 +3312,22 @@ var Rc = /* @__PURE__ */ z(Fc, [["render", Lc]]), zc = /* @__PURE__ */ H({
3381
3312
  }
3382
3313
  };
3383
3314
  }
3384
- }), Pl = ["textContent"];
3385
- function Fl(e, t, n, r, i, a) {
3386
- let o = F("oc-button");
3387
- return Z(), X("div", null, [Y("div", { class: B(["item-inline-filter inline-flex outline outline-offset-[-1px] rounded-md", `item-inline-filter-${e.filterName}`]) }, [(Z(!0), X(U, null, M(e.filterOptions, (t, n) => (Z(), V(o, {
3315
+ }), Dl = ["textContent"];
3316
+ function Ol(e, t, n, r, i, a) {
3317
+ let o = I("oc-button");
3318
+ return Z(), X("div", null, [Y("div", { class: V(["item-inline-filter inline-flex outline outline-offset-[-1px] rounded-md", `item-inline-filter-${e.filterName}`]) }, [(Z(!0), X(W, null, M(e.filterOptions, (t, n) => (Z(), H(o, {
3388
3319
  id: t.name,
3389
3320
  key: n,
3390
- class: B(["item-inline-filter-option py-1 px-2 first:rounded-l-md last:rounded-r-md h-[32px]", { "item-inline-filter-option-selected": e.activeOption === t.name }]),
3321
+ class: V(["item-inline-filter-option py-1 px-2 first:rounded-l-md last:rounded-r-md h-[32px]", { "item-inline-filter-option-selected": e.activeOption === t.name }]),
3391
3322
  appearance: e.activeOption === t.name ? "filled" : "raw-inverse",
3392
3323
  "color-role": e.activeOption === t.name ? "secondaryContainer" : "surface",
3393
3324
  "no-hover": e.activeOption === t.name,
3394
3325
  onClick: (n) => e.toggleFilter(t)
3395
3326
  }, {
3396
- default: P(() => [Y("span", {
3327
+ default: F(() => [Y("span", {
3397
3328
  class: "truncate item-inline-filter-option-label",
3398
- textContent: W(t.label)
3399
- }, null, 8, Pl)]),
3329
+ textContent: G(t.label)
3330
+ }, null, 8, Dl)]),
3400
3331
  _: 2
3401
3332
  }, 1032, [
3402
3333
  "id",
@@ -3407,18 +3338,18 @@ function Fl(e, t, n, r, i, a) {
3407
3338
  "onClick"
3408
3339
  ]))), 128))], 2)]);
3409
3340
  }
3410
- var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
3341
+ var kl = /* @__PURE__ */ B(El, [["render", Ol]]), Al = {
3411
3342
  key: 1,
3412
3343
  class: "flex justify-between items-center w-full"
3413
- }, Rl = { class: "flex items-center truncate" }, zl = { class: "flex flex-col items-start ml-5 truncate" }, Bl = ["textContent"], Vl = ["textContent"], Hl = { class: "flex justify-between items-center w-full" }, Ul = { class: "flex items-center truncate" }, Wl = { class: "flex flex-col items-start ml-5 truncate" }, Gl = ["textContent"], Kl = ["textContent"], ql = /* @__PURE__ */ H({
3344
+ }, jl = { class: "flex items-center truncate" }, Ml = { class: "flex flex-col items-start ml-5 truncate" }, Nl = ["textContent"], Pl = ["textContent"], Fl = { class: "flex justify-between items-center w-full" }, Il = { class: "flex items-center truncate" }, Ll = { class: "flex flex-col items-start ml-5 truncate" }, Rl = ["textContent"], zl = ["textContent"], Bl = /* @__PURE__ */ U({
3414
3345
  __name: "AccountsSwitch",
3415
3346
  setup(e) {
3416
3347
  let t = w(), { accounts: n, currentAccount: r, isLoading: i } = $(t), { setCurrentAccount: a } = t, o = (e) => {
3417
3348
  a(e);
3418
3349
  };
3419
3350
  return (e, t) => {
3420
- let a = F("oc-spinner"), s = F("oc-avatar"), c = F("oc-icon"), l = F("oc-button"), u = F("oc-list"), d = F("oc-drop");
3421
- return Z(), X(U, null, [q(l, {
3351
+ let a = I("oc-spinner"), s = I("oc-avatar"), c = I("oc-icon"), l = I("oc-button"), u = I("oc-list"), d = I("oc-drop");
3352
+ return Z(), X(W, null, [J(l, {
3422
3353
  id: "account-list-toggle",
3423
3354
  class: "w-auto m-2",
3424
3355
  appearance: "filled",
@@ -3426,48 +3357,48 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
3426
3357
  "justify-content": "space-between",
3427
3358
  "no-hover": ""
3428
3359
  }, {
3429
- default: P(() => [L(i) ? (Z(), V(a, {
3360
+ default: F(() => [R(i) ? (Z(), H(a, {
3430
3361
  key: 0,
3431
3362
  "aria-label": e.$gettext("Loading accounts")
3432
- }, null, 8, ["aria-label"])) : (Z(), X("div", Ll, [Y("div", Rl, [q(s, { "user-name": L(r)?.name || "" }, null, 8, ["user-name"]), Y("div", zl, [Y("span", {
3363
+ }, null, 8, ["aria-label"])) : (Z(), X("div", Al, [Y("div", jl, [J(s, { "user-name": R(r)?.name || "" }, null, 8, ["user-name"]), Y("div", Ml, [Y("span", {
3433
3364
  class: "font-bold",
3434
- textContent: W(L(r)?.name || "")
3435
- }, null, 8, Bl), L(r)?.identities?.[0]?.email ? (Z(), X("span", {
3365
+ textContent: G(R(r)?.name || "")
3366
+ }, null, 8, Nl), R(r)?.identities?.[0]?.email ? (Z(), X("span", {
3436
3367
  key: 0,
3437
3368
  class: "max-w-full truncate",
3438
- textContent: W(L(r).identities[0].email)
3439
- }, null, 8, Vl)) : G("", !0)])]), q(c, {
3369
+ textContent: G(R(r).identities[0].email)
3370
+ }, null, 8, Pl)) : K("", !0)])]), J(c, {
3440
3371
  class: "ml-2",
3441
3372
  name: "more-2"
3442
3373
  })]))]),
3443
3374
  _: 1
3444
- }), q(d, {
3375
+ }), J(d, {
3445
3376
  title: e.$gettext("Accounts"),
3446
3377
  class: "w-md",
3447
3378
  toggle: "#account-list-toggle",
3448
3379
  "close-on-click": ""
3449
3380
  }, {
3450
- default: P(() => [q(u, null, {
3451
- default: P(() => [(Z(!0), X(U, null, M(L(n), (e) => (Z(), X("li", {
3381
+ default: F(() => [J(u, null, {
3382
+ default: F(() => [(Z(!0), X(W, null, M(R(n), (e) => (Z(), X("li", {
3452
3383
  key: e.accountId,
3453
3384
  class: "oc-list"
3454
- }, [q(l, {
3385
+ }, [J(l, {
3455
3386
  class: "p-2",
3456
- appearance: e.accountId === L(r).accountId ? "filled" : "raw-inverse",
3457
- "color-role": e.accountId === L(r).accountId ? "secondaryContainer" : "surface",
3387
+ appearance: e.accountId === R(r).accountId ? "filled" : "raw-inverse",
3388
+ "color-role": e.accountId === R(r).accountId ? "secondaryContainer" : "surface",
3458
3389
  onClick: (t) => o(e)
3459
3390
  }, {
3460
- default: P(() => [Y("div", Hl, [Y("div", Ul, [q(s, { "user-name": e.name }, null, 8, ["user-name"]), Y("div", Wl, [Y("span", {
3391
+ default: F(() => [Y("div", Fl, [Y("div", Il, [J(s, { "user-name": e.name }, null, 8, ["user-name"]), Y("div", Ll, [Y("span", {
3461
3392
  class: "font-bold",
3462
- textContent: W(e.name)
3463
- }, null, 8, Gl), e.identities?.[0]?.email ? (Z(), X("span", {
3393
+ textContent: G(e.name)
3394
+ }, null, 8, Rl), e.identities?.[0]?.email ? (Z(), X("span", {
3464
3395
  key: 0,
3465
- textContent: W(e.identities[0].email)
3466
- }, null, 8, Kl)) : G("", !0)])]), e.accountId === L(r).accountId ? (Z(), V(c, {
3396
+ textContent: G(e.identities[0].email)
3397
+ }, null, 8, zl)) : K("", !0)])]), e.accountId === R(r).accountId ? (Z(), H(c, {
3467
3398
  key: 0,
3468
3399
  class: "ml-2",
3469
3400
  name: "check"
3470
- })) : G("", !0)])]),
3401
+ })) : K("", !0)])]),
3471
3402
  _: 2
3472
3403
  }, 1032, [
3473
3404
  "appearance",
@@ -3480,26 +3411,26 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
3480
3411
  }, 8, ["title"])], 64);
3481
3412
  };
3482
3413
  }
3483
- }), Jl = { class: "space-quota" }, Yl = ["textContent"], Xl = /* @__PURE__ */ H({
3414
+ }), Vl = { class: "space-quota" }, Hl = ["textContent"], Ul = /* @__PURE__ */ U({
3484
3415
  __name: "SpaceQuota",
3485
3416
  props: { spaceQuota: {} },
3486
3417
  setup(e) {
3487
- let { $gettext: t, current: n } = Q(), r = K(() => e.spaceQuota.total ? t("%{used} of %{total} used (%{percentage}% used)", {
3488
- used: L(a),
3489
- total: L(i),
3490
- percentage: L(o).toString()
3491
- }) : t("%{used} used (no restriction)", { used: L(a) })), i = K(() => Ge(e.spaceQuota.total, n)), a = K(() => Ge(e.spaceQuota.used, n)), o = K(() => parseFloat((e.spaceQuota.used / e.spaceQuota.total * 100).toFixed(2))), s = K(() => {
3418
+ let { $gettext: t, current: n } = Q(), r = q(() => e.spaceQuota.total ? t("%{used} of %{total} used (%{percentage}% used)", {
3419
+ used: R(a),
3420
+ total: R(i),
3421
+ percentage: R(o).toString()
3422
+ }) : t("%{used} used (no restriction)", { used: R(a) })), i = q(() => We(e.spaceQuota.total, n)), a = q(() => We(e.spaceQuota.used, n)), o = q(() => parseFloat((e.spaceQuota.used / e.spaceQuota.total * 100).toFixed(2))), s = q(() => {
3492
3423
  switch (e.spaceQuota.state) {
3493
3424
  case "normal": return "var(--oc-role-secondary)";
3494
3425
  default: return "var(--oc-role-error)";
3495
3426
  }
3496
3427
  });
3497
3428
  return (e, t) => {
3498
- let n = F("oc-progress");
3499
- return Z(), X("div", Jl, [Y("p", {
3429
+ let n = I("oc-progress");
3430
+ return Z(), X("div", Vl, [Y("p", {
3500
3431
  class: "mb-2 mt-0",
3501
- textContent: W(r.value)
3502
- }, null, 8, Yl), q(n, {
3432
+ textContent: G(r.value)
3433
+ }, null, 8, Hl), J(n, {
3503
3434
  value: o.value,
3504
3435
  max: 100,
3505
3436
  size: "small",
@@ -3508,36 +3439,36 @@ var Il = /* @__PURE__ */ z(Nl, [["render", Fl]]), Ll = {
3508
3439
  }, null, 8, ["value", "color"])]);
3509
3440
  };
3510
3441
  }
3511
- }), Zl = H({
3442
+ }), Wl = U({
3512
3443
  name: "WebDavDetails",
3513
3444
  props: { space: {
3514
3445
  type: Object,
3515
3446
  required: !0
3516
3447
  } },
3517
3448
  setup(e) {
3518
- let t = zn("resource"), n = "check", r = "file-copy", i = R(r), a = R(r), o = K(() => Pt(L(t).webDavPath)), s = K(() => e.space?.getWebDavUrl({ path: L(t).path }));
3449
+ let t = Rn("resource"), n = "check", r = "file-copy", i = z(r), a = z(r), o = q(() => Nt(R(t).webDavPath)), s = q(() => e.space?.getWebDavUrl({ path: R(t).path }));
3519
3450
  return {
3520
3451
  copyWebDAVPathIcon: i,
3521
3452
  copyWebDAVPathToClipboard: () => {
3522
- navigator.clipboard.writeText(L(o)), i.value = n, setTimeout(() => i.value = r, 1500);
3453
+ navigator.clipboard.writeText(R(o)), i.value = n, setTimeout(() => i.value = r, 1500);
3523
3454
  },
3524
3455
  copyWebDAVUrlIcon: a,
3525
3456
  copyWebDAVUrlToClipboard: () => {
3526
- navigator.clipboard.writeText(L(s)), a.value = n, setTimeout(() => a.value = r, 1500);
3457
+ navigator.clipboard.writeText(R(s)), a.value = n, setTimeout(() => a.value = r, 1500);
3527
3458
  },
3528
3459
  webDavPath: o,
3529
3460
  webDavUrl: s
3530
3461
  };
3531
3462
  }
3532
- }), Ql = { class: "flex" }, $l = ["textContent"], eu = { class: "flex" }, tu = ["textContent"];
3533
- function nu(e, t, n, r, i, a) {
3534
- let o = F("oc-icon"), s = F("oc-button"), c = ni("oc-tooltip");
3535
- return Z(), X(U, null, [
3536
- Y("dt", null, W(e.$gettext("WebDAV path")), 1),
3537
- Y("dd", Ql, [I(Y("div", {
3463
+ }), Gl = { class: "flex" }, Kl = ["textContent"], ql = { class: "flex" }, Jl = ["textContent"];
3464
+ function Yl(e, t, n, r, i, a) {
3465
+ let o = I("oc-icon"), s = I("oc-button"), c = ti("oc-tooltip");
3466
+ return Z(), X(W, null, [
3467
+ Y("dt", null, G(e.$gettext("WebDAV path")), 1),
3468
+ Y("dd", Gl, [L(Y("div", {
3538
3469
  class: "truncate",
3539
- textContent: W(e.webDavPath)
3540
- }, null, 8, $l), [[c, e.webDavPath]]), I((Z(), V(s, {
3470
+ textContent: G(e.webDavPath)
3471
+ }, null, 8, Kl), [[c, e.webDavPath]]), L((Z(), H(s, {
3541
3472
  class: "ml-2",
3542
3473
  appearance: "raw",
3543
3474
  size: "small",
@@ -3545,14 +3476,14 @@ function nu(e, t, n, r, i, a) {
3545
3476
  "no-hover": "",
3546
3477
  onClick: e.copyWebDAVPathToClipboard
3547
3478
  }, {
3548
- default: P(() => [q(o, { name: e.copyWebDAVPathIcon }, null, 8, ["name"])]),
3479
+ default: F(() => [J(o, { name: e.copyWebDAVPathIcon }, null, 8, ["name"])]),
3549
3480
  _: 1
3550
3481
  }, 8, ["aria-label", "onClick"])), [[c, e.$gettext("Copy WebDAV path")]])]),
3551
- Y("dt", null, W(e.$gettext("WebDAV URL")), 1),
3552
- Y("dd", eu, [I(Y("div", {
3482
+ Y("dt", null, G(e.$gettext("WebDAV URL")), 1),
3483
+ Y("dd", ql, [L(Y("div", {
3553
3484
  class: "truncate",
3554
- textContent: W(e.webDavUrl)
3555
- }, null, 8, tu), [[c, e.webDavUrl]]), I((Z(), V(s, {
3485
+ textContent: G(e.webDavUrl)
3486
+ }, null, 8, Jl), [[c, e.webDavUrl]]), L((Z(), H(s, {
3556
3487
  class: "ml-2",
3557
3488
  appearance: "raw",
3558
3489
  size: "small",
@@ -3560,208 +3491,207 @@ function nu(e, t, n, r, i, a) {
3560
3491
  "no-hover": "",
3561
3492
  onClick: e.copyWebDAVUrlToClipboard
3562
3493
  }, {
3563
- default: P(() => [q(o, { name: e.copyWebDAVUrlIcon }, null, 8, ["name"])]),
3494
+ default: F(() => [J(o, { name: e.copyWebDAVUrlIcon }, null, 8, ["name"])]),
3564
3495
  _: 1
3565
3496
  }, 8, ["aria-label", "onClick"])), [[c, e.$gettext("Copy WebDAV URL")]])])
3566
3497
  ], 64);
3567
3498
  }
3568
- var ru = /* @__PURE__ */ z(Zl, [["render", nu]]), iu = /* @__PURE__ */ H({
3499
+ var Xl = /* @__PURE__ */ B(Wl, [["render", Yl]]), Zl = /* @__PURE__ */ U({
3569
3500
  __name: "CustomComponentTarget",
3570
3501
  props: { extensionPoint: {} },
3571
3502
  setup(e) {
3572
- let t = e, n = dt(), r = wt(), i = K(() => n.requestExtensions(t.extensionPoint)), a = r.extractDefaultExtensionIds(t.extensionPoint, L(i)), o = K(() => {
3573
- if (t.extensionPoint.multiple || L(i).length <= 1) return L(i);
3503
+ let t = e, n = ut(), r = Ct(), i = q(() => n.requestExtensions(t.extensionPoint)), a = r.extractDefaultExtensionIds(t.extensionPoint, R(i)), o = q(() => {
3504
+ if (t.extensionPoint.multiple || R(i).length <= 1) return R(i);
3574
3505
  let e = r.getExtensionPreference(t.extensionPoint.id, a);
3575
- return e.selectedExtensionIds.length ? [L(i).find((t) => e.selectedExtensionIds.includes(t.id)) || L(i)[0]] : [L(i)[0]];
3506
+ return e.selectedExtensionIds.length ? [R(i).find((t) => e.selectedExtensionIds.includes(t.id)) || R(i)[0]] : [R(i)[0]];
3576
3507
  });
3577
- return (e, t) => (Z(!0), X(U, null, M(o.value, (e) => (Z(), V(u(e.content), va({ key: `custom-component-${e.id}` }, { ref_for: !0 }, e.componentProps ? e.componentProps() : void 0), null, 16))), 128));
3508
+ return (e, t) => (Z(!0), X(W, null, M(o.value, (e) => (Z(), H(u(e.content), va({ key: `custom-component-${e.id}` }, { ref_for: !0 }, e.componentProps ? e.componentProps() : void 0), null, 16))), 128));
3578
3509
  }
3579
- }), au = {
3510
+ }), Ql = {
3580
3511
  id: "app.files.sidebar.space-details.table",
3581
3512
  extensionType: "customComponent"
3582
- }, ou = () => K(() => [au]), su = {
3513
+ }, $l = () => q(() => [Ql]), eu = {
3583
3514
  id: "oc-space-details-sidebar",
3584
- class: "p-4 bg-role-surface-container rounded-sm"
3585
- }, cu = { class: "text-center" }, lu = {
3515
+ class: "p-2"
3516
+ }, tu = {
3586
3517
  key: 1,
3587
- class: "relative mb-2"
3588
- }, uu = ["src"], du = {
3589
- key: 0,
3518
+ class: "bg-role-surface-container rounded-xl flex items-center justify-center p-4 mb-4"
3519
+ }, nu = { key: 0 }, ru = ["src"], iu = { key: 1 }, au = {
3520
+ key: 2,
3590
3521
  class: "flex items-center oc-space-details-sidebar-members mb-2 text-sm gap-2"
3591
- }, fu = ["textContent"], pu = ["textContent"], mu = ["aria-label"], hu = /* @__PURE__ */ H({
3522
+ }, ou = ["textContent"], su = ["textContent"], cu = ["aria-label"], lu = /* @__PURE__ */ U({
3592
3523
  __name: "SpaceDetails",
3593
3524
  props: { showShareIndicators: {
3594
3525
  type: Boolean,
3595
3526
  default: !0
3596
3527
  } },
3597
3528
  setup(e) {
3598
- let t = $n(), n = fr(), { resourceContentsText: r } = br({ showSizeInformation: !1 }), i = Mi(), { $gettext: a, $ngettext: o, current: s } = Q(), { loadPreview: c } = ji(), { openSideBarPanel: l } = ki(), u = gi(), { imagesLoading: d } = $(u), f = Mr(), p = zn("resource"), m = R(""), { user: h } = $(t), g = K(() => u.getSpaceMembers(L(p))), _ = K(() => f.linkShares.length), v = K(() => n.areWebDavDetailsShown), y = K(() => !$r(i, "files-spaces-projects")), b = K(() => `${Ge(L(p).size, s)}, ${L(r)}`);
3599
- N(() => L(p).spaceImageData, async () => {
3529
+ let t = Qn(), n = dr(), { resourceContentsText: r } = yr({ showSizeInformation: !1 }), i = ji(), { $gettext: a, $ngettext: o, current: s } = Q(), { loadPreview: c } = Ai(), { openSideBarPanel: l } = Oi(), u = hi(), { imagesLoading: d } = $(u), f = jr(), p = Rn("resource"), m = z(""), { user: h } = $(t), g = q(() => u.getSpaceMembers(R(p))), _ = q(() => f.linkShares.length), v = q(() => n.areWebDavDetailsShown), y = q(() => !Qr(i, "files-spaces-projects")), b = q(() => `${We(R(p).size, s)}, ${R(r)}`);
3530
+ P(() => R(p).spaceImageData, async () => {
3600
3531
  m.value = await c({
3601
- space: L(p),
3602
- resource: L(p).spaceImageData ? Za(L(p)) : L(p),
3603
- dimensions: Ke.Tile,
3604
- processor: Sr.enum.fit,
3532
+ space: R(p),
3533
+ resource: R(p).spaceImageData ? Za(R(p)) : R(p),
3534
+ dimensions: Ge.Tile,
3535
+ processor: xr.enum.fit,
3605
3536
  cancelRunning: !0,
3606
3537
  updateStore: !1
3607
3538
  });
3608
3539
  }, { immediate: !0 });
3609
- let x = K(() => L(g).length ? L(g).filter(io).map(({ sharedWith: e }) => e.id === L(h)?.id ? a("%{displayName} (me)", { displayName: e.displayName }) : e.displayName).join(", ") : eo(L(p), f.graphRoles)?.map(({ grantedToV2: e }) => e.user?.id === L(h)?.id ? a("%{displayName} (me)", { displayName: e.user.displayName }) : e.user?.displayName || e.group?.displayName).join(", ")), S = K(() => Dn(L(p).mdate, s)), C = K(() => L(E) || L(D)), ee = K(() => {
3610
- if (L(E) && !L(D)) return L(k);
3611
- if (!L(E) && L(D)) return L(A);
3612
- switch (L(O)) {
3613
- case 1: return o("This space has one member and %{linkShareCount} link.", "This space has one member and %{linkShareCount} links.", L(_), { linkShareCount: L(_).toString() });
3614
- default: return L(_) === 1 ? a("This space has %{memberShareCount} members and one link.", { memberShareCount: L(O).toString() }) : a("This space has %{memberShareCount} members and %{linkShareCount} links.", {
3615
- memberShareCount: L(O).toString(),
3616
- linkShareCount: L(_).toString()
3540
+ let x = q(() => R(g).length ? R(g).filter(io).map(({ sharedWith: e }) => e.id === R(h)?.id ? a("%{displayName} (me)", { displayName: e.displayName }) : e.displayName).join(", ") : eo(R(p), f.graphRoles)?.map(({ grantedToV2: e }) => e.user?.id === R(h)?.id ? a("%{displayName} (me)", { displayName: e.user.displayName }) : e.user?.displayName || e.group?.displayName).join(", ")), S = q(() => En(R(p).mdate, s)), C = q(() => R(E) || R(D)), ee = q(() => {
3541
+ if (R(E) && !R(D)) return R(k);
3542
+ if (!R(E) && R(D)) return R(A);
3543
+ switch (R(O)) {
3544
+ case 1: return o("This space has one member and %{linkShareCount} link.", "This space has one member and %{linkShareCount} links.", R(_), { linkShareCount: R(_).toString() });
3545
+ default: return R(_) === 1 ? a("This space has %{memberShareCount} members and one link.", { memberShareCount: R(O).toString() }) : a("This space has %{memberShareCount} members and %{linkShareCount} links.", {
3546
+ memberShareCount: R(O).toString(),
3547
+ linkShareCount: R(_).toString()
3617
3548
  });
3618
3549
  }
3619
- }), w = K(() => a("Open share panel")), T = K(() => a("Open link list in share panel")), te = K(() => a("Open member list in share panel")), E = K(() => L(O) > 0), D = K(() => L(_) > 0), O = K(() => L(g).length), k = K(() => o("This space has %{memberShareCount} member.", "This space has %{memberShareCount} members.", L(O), { memberShareCount: L(O).toString() })), A = K(() => o("%{linkShareCount} link giving access.", "%{linkShareCount} links giving access.", L(_), { linkShareCount: L(_).toString() }));
3550
+ }), w = q(() => a("Open share panel")), T = q(() => a("Open link list in share panel")), te = q(() => a("Open member list in share panel")), E = q(() => R(O) > 0), D = q(() => R(_) > 0), O = q(() => R(g).length), k = q(() => o("This space has %{memberShareCount} member.", "This space has %{memberShareCount} members.", R(O), { memberShareCount: R(O).toString() })), A = q(() => o("%{linkShareCount} link giving access.", "%{linkShareCount} links giving access.", R(_), { linkShareCount: R(_).toString() }));
3620
3551
  return (t, n) => {
3621
- let r = F("oc-spinner"), i = F("oc-icon"), o = F("oc-button");
3622
- return Z(), X("div", su, [
3623
- Y("div", cu, [L(d).includes(L(p).id) ? (Z(), V(r, {
3552
+ let r = I("oc-spinner"), i = I("oc-icon"), o = I("oc-button");
3553
+ return Z(), X("div", eu, [
3554
+ R(d).includes(R(p).id) ? (Z(), H(r, {
3624
3555
  key: 0,
3625
- "aria-label": L(a)("Space image is loading")
3626
- }, null, 8, ["aria-label"])) : m.value ? (Z(), X("div", lu, [Y("img", {
3556
+ "aria-label": R(a)("Space image is loading")
3557
+ }, null, 8, ["aria-label"])) : (Z(), X("div", tu, [m.value ? (Z(), X("div", nu, [Y("img", {
3627
3558
  src: m.value,
3628
3559
  alt: "",
3629
- class: "size-full object-cover aspect-[16/9]"
3630
- }, null, 8, uu)])) : (Z(), V(i, {
3631
- key: 2,
3560
+ class: "h-[160px]"
3561
+ }, null, 8, ru)])) : (Z(), X("div", iu, [J(i, {
3632
3562
  name: "layout-grid",
3633
- size: "xxlarge",
3563
+ size: "xxxlarge",
3634
3564
  class: "space-default-image px-4 py-4"
3635
- }))]),
3636
- e.showShareIndicators && C.value && !L(p).disabled ? (Z(), X("div", du, [
3637
- E.value ? (Z(), V(o, {
3565
+ })]))])),
3566
+ e.showShareIndicators && C.value && !R(p).disabled ? (Z(), X("div", au, [
3567
+ E.value ? (Z(), H(o, {
3638
3568
  key: 0,
3639
3569
  appearance: "raw",
3640
3570
  "aria-label": te.value,
3641
3571
  "no-hover": "",
3642
- onClick: n[0] ||= (e) => L(l)("space-share")
3572
+ onClick: n[0] ||= (e) => R(l)("space-share")
3643
3573
  }, {
3644
- default: P(() => [q(i, {
3574
+ default: F(() => [J(i, {
3645
3575
  name: "group",
3646
3576
  size: "small",
3647
3577
  "fill-type": "line"
3648
3578
  })]),
3649
3579
  _: 1
3650
- }, 8, ["aria-label"])) : G("", !0),
3651
- D.value ? (Z(), V(o, {
3580
+ }, 8, ["aria-label"])) : K("", !0),
3581
+ D.value ? (Z(), H(o, {
3652
3582
  key: 1,
3653
3583
  appearance: "raw",
3654
3584
  "aria-label": T.value,
3655
3585
  "no-hover": "",
3656
- onClick: n[1] ||= (e) => L(l)("space-share")
3586
+ onClick: n[1] ||= (e) => R(l)("space-share")
3657
3587
  }, {
3658
- default: P(() => [q(i, {
3588
+ default: F(() => [J(i, {
3659
3589
  name: "link",
3660
3590
  size: "small",
3661
3591
  "fill-type": "line"
3662
3592
  })]),
3663
3593
  _: 1
3664
- }, 8, ["aria-label"])) : G("", !0),
3665
- Y("p", { textContent: W(ee.value) }, null, 8, fu),
3666
- q(o, {
3594
+ }, 8, ["aria-label"])) : K("", !0),
3595
+ Y("p", { textContent: G(ee.value) }, null, 8, ou),
3596
+ J(o, {
3667
3597
  appearance: "raw",
3668
3598
  "aria-label": w.value,
3669
3599
  size: "small",
3670
3600
  "no-hover": "",
3671
- onClick: n[2] ||= (e) => L(l)("space-share")
3601
+ onClick: n[2] ||= (e) => R(l)("space-share")
3672
3602
  }, {
3673
- default: P(() => [Y("span", {
3603
+ default: F(() => [Y("span", {
3674
3604
  class: "text-sm",
3675
- textContent: W(L(a)("Show"))
3676
- }, null, 8, pu)]),
3605
+ textContent: G(R(a)("Show"))
3606
+ }, null, 8, su)]),
3677
3607
  _: 1
3678
3608
  }, 8, ["aria-label"])
3679
- ])) : G("", !0),
3609
+ ])) : K("", !0),
3680
3610
  Y("dl", {
3681
- class: "details-list grid grid-cols-[auto_minmax(0,1fr)] m-0",
3682
- "aria-label": L(a)("Overview of the information about the selected space")
3611
+ class: "details-list",
3612
+ "aria-label": R(a)("Overview of the information about the selected space")
3683
3613
  }, [
3684
- Y("dt", null, W(L(a)("Last activity")), 1),
3685
- Y("dd", null, W(S.value), 1),
3686
- L(p).description ? (Z(), X(U, { key: 0 }, [Y("dt", null, W(L(a)("Subtitle")), 1), Y("dd", null, W(L(p).description), 1)], 64)) : G("", !0),
3687
- Y("dt", null, W(L(a)("Manager")), 1),
3688
- Y("dd", null, W(x.value), 1),
3689
- L(p).disabled ? G("", !0) : (Z(), X(U, { key: 1 }, [Y("dt", null, W(L(a)("Quota")), 1), Y("dd", null, [q(Xl, { "space-quota": L(p).spaceQuota }, null, 8, ["space-quota"])])], 64)),
3690
- y.value ? (Z(), X(U, { key: 2 }, [Y("dt", null, W(L(a)("Size")), 1), Y("dd", null, W(b.value), 1)], 64)) : G("", !0),
3691
- v.value ? (Z(), V(ru, {
3614
+ Y("dt", null, G(R(a)("Last activity")), 1),
3615
+ Y("dd", null, G(S.value), 1),
3616
+ R(p).description ? (Z(), X(W, { key: 0 }, [Y("dt", null, G(R(a)("Subtitle")), 1), Y("dd", null, G(R(p).description), 1)], 64)) : K("", !0),
3617
+ Y("dt", null, G(R(a)("Manager")), 1),
3618
+ Y("dd", null, G(x.value), 1),
3619
+ R(p).disabled ? K("", !0) : (Z(), X(W, { key: 1 }, [Y("dt", null, G(R(a)("Quota")), 1), Y("dd", null, [J(Ul, { "space-quota": R(p).spaceQuota }, null, 8, ["space-quota"])])], 64)),
3620
+ y.value ? (Z(), X(W, { key: 2 }, [Y("dt", null, G(R(a)("Size")), 1), Y("dd", null, G(b.value), 1)], 64)) : K("", !0),
3621
+ v.value ? (Z(), H(Xl, {
3692
3622
  key: 3,
3693
- space: L(p)
3694
- }, null, 8, ["space"])) : G("", !0),
3695
- q(iu, { "extension-point": L(au) }, null, 8, ["extension-point"])
3696
- ], 8, mu)
3623
+ space: R(p)
3624
+ }, null, 8, ["space"])) : K("", !0),
3625
+ J(Zl, { "extension-point": R(Ql) }, null, 8, ["extension-point"])
3626
+ ], 8, cu)
3697
3627
  ]);
3698
3628
  };
3699
3629
  }
3700
- }), gu = {
3630
+ }), uu = {
3701
3631
  id: "oc-spaces-details-multiple-sidebar",
3702
3632
  class: "p-4 bg-role-surface-container rounded-sm"
3703
- }, _u = { class: "text-center mb-6 rounded-sm" }, vu = ["textContent"], yu = /* @__PURE__ */ H({
3633
+ }, du = { class: "text-center mb-6 rounded-sm" }, fu = ["textContent"], pu = /* @__PURE__ */ U({
3704
3634
  __name: "SpaceDetailsMultiple",
3705
3635
  props: { selectedSpaces: {} },
3706
3636
  setup(e) {
3707
- let t = Q(), { $gettext: n, $ngettext: r } = t, i = K(() => {
3637
+ let t = Q(), { $gettext: n, $ngettext: r } = t, i = q(() => {
3708
3638
  let n = 0;
3709
3639
  return e.selectedSpaces.forEach((e) => {
3710
3640
  n += e.spaceQuota.total;
3711
- }), Ge(n, t.current);
3712
- }), a = K(() => {
3641
+ }), We(n, t.current);
3642
+ }), a = q(() => {
3713
3643
  let n = 0;
3714
3644
  return e.selectedSpaces.forEach((e) => {
3715
3645
  e.disabled || (n += e.spaceQuota.remaining);
3716
- }), Ge(n, t.current);
3717
- }), o = K(() => {
3646
+ }), We(n, t.current);
3647
+ }), o = q(() => {
3718
3648
  let n = 0;
3719
3649
  return e.selectedSpaces.forEach((e) => {
3720
3650
  e.disabled || (n += e.spaceQuota.used);
3721
- }), Ge(n, t.current);
3722
- }), s = K(() => e.selectedSpaces.filter((e) => !e.disabled).length), c = K(() => e.selectedSpaces.filter((e) => e.disabled).length), l = K(() => n("Overview of the information about the selected spaces")), u = K(() => r("%{ itemCount } space selected", "%{ itemCount } spaces selected", e.selectedSpaces.length, { itemCount: e.selectedSpaces.length.toString() })), d = K(() => [
3651
+ }), We(n, t.current);
3652
+ }), s = q(() => e.selectedSpaces.filter((e) => !e.disabled).length), c = q(() => e.selectedSpaces.filter((e) => e.disabled).length), l = q(() => n("Overview of the information about the selected spaces")), u = q(() => r("%{ itemCount } space selected", "%{ itemCount } spaces selected", e.selectedSpaces.length, { itemCount: e.selectedSpaces.length.toString() })), d = q(() => [
3723
3653
  {
3724
3654
  term: n("Total quota:"),
3725
- definition: L(i).toString()
3655
+ definition: R(i).toString()
3726
3656
  },
3727
3657
  {
3728
3658
  term: n("Remaining quota:"),
3729
- definition: L(a).toString()
3659
+ definition: R(a).toString()
3730
3660
  },
3731
3661
  {
3732
3662
  term: n("Used quota:"),
3733
- definition: L(o).toString()
3663
+ definition: R(o).toString()
3734
3664
  },
3735
3665
  {
3736
3666
  term: n("Enabled:"),
3737
- definition: L(s).toString()
3667
+ definition: R(s).toString()
3738
3668
  },
3739
3669
  {
3740
3670
  term: n("Disabled:"),
3741
- definition: L(c).toString()
3671
+ definition: R(c).toString()
3742
3672
  }
3743
3673
  ]);
3744
3674
  return (e, t) => {
3745
- let n = F("oc-icon"), r = F("oc-definition-list");
3746
- return Z(), X("div", gu, [Y("div", _u, [Y("div", null, [q(n, {
3675
+ let n = I("oc-icon"), r = I("oc-definition-list");
3676
+ return Z(), X("div", uu, [Y("div", du, [Y("div", null, [J(n, {
3747
3677
  size: "xxlarge",
3748
3678
  name: "layout-grid"
3749
- }), Y("p", { textContent: W(u.value) }, null, 8, vu)])]), q(r, {
3679
+ }), Y("p", { textContent: G(u.value) }, null, 8, fu)])]), J(r, {
3750
3680
  "aria-label": l.value,
3751
3681
  items: d.value,
3752
3682
  class: "m-0"
3753
3683
  }, null, 8, ["aria-label", "items"])]);
3754
3684
  };
3755
3685
  }
3756
- }), bu = H({ name: "SpaceNoSelection" }), xu = { class: "mt-12" }, Su = { class: "flex flex-col items-center space-info text-center" }, Cu = ["textContent"];
3757
- function wu(e, t, n, r, i, a) {
3758
- let o = F("oc-icon");
3759
- return Z(), X("div", xu, [Y("div", Su, [q(o, {
3686
+ }), mu = U({ name: "SpaceNoSelection" }), hu = { class: "mt-12" }, gu = { class: "flex flex-col items-center space-info text-center" }, _u = ["textContent"];
3687
+ function vu(e, t, n, r, i, a) {
3688
+ let o = I("oc-icon");
3689
+ return Z(), X("div", hu, [Y("div", gu, [J(o, {
3760
3690
  name: "layout-grid",
3761
3691
  size: "xxlarge"
3762
- }), Y("p", { textContent: W(e.$gettext("Select a space to view details")) }, null, 8, Cu)])]);
3692
+ }), Y("p", { textContent: G(e.$gettext("Select a space to view details")) }, null, 8, _u)])]);
3763
3693
  }
3764
- var Tu = /* @__PURE__ */ z(bu, [["render", wu]]), Eu = H({
3694
+ var yu = /* @__PURE__ */ B(mu, [["render", vu]]), bu = U({
3765
3695
  name: "CompareSaveDialog",
3766
3696
  props: {
3767
3697
  originalObject: {
@@ -3779,18 +3709,18 @@ var Tu = /* @__PURE__ */ z(bu, [["render", wu]]), Eu = H({
3779
3709
  },
3780
3710
  emits: ["confirm", "revert"],
3781
3711
  setup() {
3782
- let e = R(!1), t;
3783
- return Ht(() => {
3784
- t = ei.subscribe("sidebar.entity.saved", () => {
3712
+ let e = z(!1), t;
3713
+ return Vt(() => {
3714
+ t = $r.subscribe("sidebar.entity.saved", () => {
3785
3715
  e.value = !0;
3786
3716
  });
3787
3717
  }), ja(() => {
3788
- ei.unsubscribe("sidebar.entity.saved", t);
3718
+ $r.unsubscribe("sidebar.entity.saved", t);
3789
3719
  }), { saved: e };
3790
3720
  },
3791
3721
  computed: {
3792
3722
  unsavedChanges() {
3793
- return !pi(this.originalObject, this.compareObject);
3723
+ return !fi(this.originalObject, this.compareObject);
3794
3724
  },
3795
3725
  unsavedChangesText() {
3796
3726
  return this.unsavedChanges ? this.$gettext("Unsaved changes") : this.$gettext("No changes");
@@ -3804,33 +3734,33 @@ var Tu = /* @__PURE__ */ z(bu, [["render", wu]]), Eu = H({
3804
3734
  this.saved = !1;
3805
3735
  }
3806
3736
  }
3807
- }), Du = { class: "w-full flex flex-row flex-wrap justify-between items-center" }, Ou = {
3737
+ }), xu = { class: "w-full flex flex-row flex-wrap justify-between items-center" }, Su = {
3808
3738
  key: 0,
3809
3739
  class: "flex items-center"
3810
- }, ku = ["textContent"], Au = { key: 1 }, ju = ["textContent"], Mu = ["textContent"];
3811
- function Nu(e, t, n, r, i, a) {
3812
- let o = F("oc-icon"), s = F("oc-button");
3813
- return Z(), X("div", Du, [e.saved ? (Z(), X("span", Ou, [q(o, { name: "checkbox-circle" }), Y("span", {
3740
+ }, Cu = ["textContent"], wu = { key: 1 }, Tu = ["textContent"], Eu = ["textContent"];
3741
+ function Du(e, t, n, r, i, a) {
3742
+ let o = I("oc-icon"), s = I("oc-button");
3743
+ return Z(), X("div", xu, [e.saved ? (Z(), X("span", Su, [J(o, { name: "checkbox-circle" }), Y("span", {
3814
3744
  class: "ml-2",
3815
- textContent: W(e.$gettext("Changes saved"))
3816
- }, null, 8, ku)])) : (Z(), X("span", Au, W(e.unsavedChangesText), 1)), Y("div", null, [q(s, {
3745
+ textContent: G(e.$gettext("Changes saved"))
3746
+ }, null, 8, Cu)])) : (Z(), X("span", wu, G(e.unsavedChangesText), 1)), Y("div", null, [J(s, {
3817
3747
  disabled: !e.unsavedChanges,
3818
3748
  class: "compare-save-dialog-revert-btn",
3819
3749
  onClick: t[0] ||= (t) => e.$emit("revert")
3820
3750
  }, {
3821
- default: P(() => [Y("span", { textContent: W(e.$gettext("Revert")) }, null, 8, ju)]),
3751
+ default: F(() => [Y("span", { textContent: G(e.$gettext("Revert")) }, null, 8, Tu)]),
3822
3752
  _: 1
3823
- }, 8, ["disabled"]), q(s, {
3753
+ }, 8, ["disabled"]), J(s, {
3824
3754
  appearance: "filled",
3825
3755
  class: "compare-save-dialog-confirm-btn",
3826
3756
  disabled: !e.unsavedChanges || e.confirmButtonDisabled,
3827
3757
  onClick: t[1] ||= (t) => e.$emit("confirm")
3828
3758
  }, {
3829
- default: P(() => [Y("span", { textContent: W(e.$gettext("Save")) }, null, 8, Mu)]),
3759
+ default: F(() => [Y("span", { textContent: G(e.$gettext("Save")) }, null, 8, Eu)]),
3830
3760
  _: 1
3831
3761
  }, 8, ["disabled"])])]);
3832
3762
  }
3833
- var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await import("./TextEditor-B0ZZfO_w.js")).default), Iu = { class: "flex items-center truncate" }, Lu = { class: "truncate" }, Ru = { class: "flex" }, zu = /* @__PURE__ */ H({
3763
+ var Ou = /* @__PURE__ */ B(bu, [["render", Du]]), ku = mi(async () => (await import("./TextEditor-CTRIgoeG.js")).default), Au = { class: "flex items-center truncate" }, ju = { class: "truncate" }, Mu = { class: "flex" }, Nu = /* @__PURE__ */ U({
3834
3764
  __name: "ItemFilter",
3835
3765
  props: {
3836
3766
  filterLabel: {},
@@ -3855,50 +3785,50 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3855
3785
  },
3856
3786
  emits: ["selectionChange"],
3857
3787
  setup(e, { expose: t, emit: n }) {
3858
- let i = n, a = Mi(), o = xr(), s = fe("filterInputRef"), c = R([]), l = R(e.items), u = fe("itemFilterListRef"), d = `q_${e.filterName}`, f = r(d), p = (t) => t[e.idAttribute], m = () => a.push({ query: {
3859
- ...Zi(L(o).query, [d]),
3860
- ...!!L(c).length && { [d]: L(c).reduce((e, t) => (e += `${p(t)}+`, e), "").slice(0, -1) }
3861
- } }), h = (e) => !!L(c).find((t) => p(t) === p(e)), g = async (t) => {
3862
- h(t) ? c.value = L(c).filter((e) => p(e) !== p(t)) : (e.allowMultiple || (c.value = []), c.value.push(t)), await m(), i("selectionChange", L(c));
3863
- }, _ = R(), v = (t, n) => {
3788
+ let i = n, a = ji(), o = br(), s = de("filterInputRef"), c = z([]), l = z(e.items), u = de("itemFilterListRef"), d = `q_${e.filterName}`, f = r(d), p = (t) => t[e.idAttribute], m = () => a.push({ query: {
3789
+ ...Zi(R(o).query, [d]),
3790
+ ...!!R(c).length && { [d]: R(c).reduce((e, t) => (e += `${p(t)}+`, e), "").slice(0, -1) }
3791
+ } }), h = (e) => !!R(c).find((t) => p(t) === p(e)), g = async (t) => {
3792
+ h(t) ? c.value = R(c).filter((e) => p(e) !== p(t)) : (e.allowMultiple || (c.value = []), c.value.push(t)), await m(), i("selectionChange", R(c));
3793
+ }, _ = z(), v = (t, n) => {
3864
3794
  if (!(n || "").trim()) return t;
3865
3795
  let r = new po(t, {
3866
- ...on,
3796
+ ...an,
3867
3797
  keys: e.filterableAttributes
3868
3798
  }).search(n).map((e) => e.item);
3869
3799
  return t.filter((e) => r.includes(e));
3870
3800
  }, y = () => {
3871
- c.value = [], i("selectionChange", L(c)), m();
3801
+ c.value = [], i("selectionChange", R(c)), m();
3872
3802
  }, b = (e) => {
3873
3803
  l.value = e;
3874
3804
  }, x = async () => {
3875
- b(e.items), await Ra(), L(s)?.focus();
3805
+ b(e.items), await Ra(), R(s)?.focus();
3876
3806
  }, S;
3877
- N(_, () => {
3878
- b(v(e.items, L(_))), L(u) && (S = new bo(L(u)), S.unmark(), S.mark(L(_), {
3807
+ P(_, () => {
3808
+ b(v(e.items, R(_))), R(u) && (S = new bo(R(u)), S.unmark(), S.mark(R(_), {
3879
3809
  element: "span",
3880
3810
  className: "mark-highlight"
3881
3811
  }));
3882
3812
  });
3883
3813
  let C = () => {
3884
- let t = Re(L(f));
3814
+ let t = Le(R(f));
3885
3815
  if (t) {
3886
3816
  let n = t.split("+");
3887
3817
  c.value = e.items.filter((e) => n.includes(p(e)));
3888
3818
  }
3889
3819
  };
3890
- return t({ setSelectedItemsBasedOnQuery: C }), Ht(() => {
3820
+ return t({ setSelectedItemsBasedOnQuery: C }), Vt(() => {
3891
3821
  C();
3892
3822
  }), (t, n) => {
3893
- let r = F("oc-checkbox"), i = F("oc-icon"), a = F("oc-button"), o = F("oc-list"), d = F("oc-filter-chip");
3894
- return Z(), X("div", { class: B(["item-filter flex", `item-filter-${e.filterName}`]) }, [q(d, {
3823
+ let r = I("oc-checkbox"), i = I("oc-icon"), a = I("oc-button"), o = I("oc-list"), d = I("oc-filter-chip");
3824
+ return Z(), X("div", { class: V(["item-filter flex", `item-filter-${e.filterName}`]) }, [J(d, {
3895
3825
  "filter-label": e.filterLabel,
3896
3826
  "selected-item-names": c.value.map((t) => t[e.displayNameAttribute]),
3897
3827
  "close-on-click": e.closeOnClick,
3898
3828
  onClearFilter: y,
3899
3829
  onShowDrop: x
3900
3830
  }, {
3901
- default: P(() => [e.showOptionFilter && e.filterableAttributes.length ? (Z(), V(L(Qi), {
3831
+ default: F(() => [e.showOptionFilter && e.filterableAttributes.length ? (Z(), H(R(Qi), {
3902
3832
  key: 0,
3903
3833
  ref_key: "filterInputRef",
3904
3834
  ref: s,
@@ -3907,15 +3837,15 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3907
3837
  class: "item-filter-input mb-4 mt-2",
3908
3838
  autocomplete: "off",
3909
3839
  label: e.optionFilterLabel === "" ? t.$gettext("Filter list") : e.optionFilterLabel
3910
- }, null, 8, ["modelValue", "label"])) : G("", !0), Y("div", {
3840
+ }, null, 8, ["modelValue", "label"])) : K("", !0), Y("div", {
3911
3841
  ref_key: "itemFilterListRef",
3912
3842
  ref: u
3913
- }, [q(o, { class: "item-filter-list" }, {
3914
- default: P(() => [(Z(!0), X(U, null, M(l.value, (o, s) => (Z(), X("li", {
3843
+ }, [J(o, { class: "item-filter-list" }, {
3844
+ default: F(() => [(Z(!0), X(W, null, M(l.value, (o, s) => (Z(), X("li", {
3915
3845
  key: s,
3916
3846
  class: "my-1"
3917
- }, [q(a, {
3918
- class: B(["item-filter-list-item flex items-center w-full", {
3847
+ }, [J(a, {
3848
+ class: V(["item-filter-list-item flex items-center w-full", {
3919
3849
  "item-filter-list-item-active": !e.allowMultiple && h(o),
3920
3850
  "justify-start": e.allowMultiple,
3921
3851
  "justify-between": !e.allowMultiple
@@ -3925,8 +3855,8 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3925
3855
  "data-test-value": o[e.displayNameAttribute],
3926
3856
  onClick: (e) => g(o)
3927
3857
  }, {
3928
- default: P(() => [Y("div", Iu, [
3929
- e.allowMultiple ? (Z(), V(r, {
3858
+ default: F(() => [Y("div", Au, [
3859
+ e.allowMultiple ? (Z(), H(r, {
3930
3860
  key: 0,
3931
3861
  size: "large",
3932
3862
  class: "mr-2",
@@ -3934,18 +3864,18 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3934
3864
  "model-value": h(o),
3935
3865
  "label-hidden": !0,
3936
3866
  "onUpdate:modelValue": (e) => g(o),
3937
- onClick: n[1] ||= J(() => {}, ["stop"])
3867
+ onClick: n[1] ||= Ki(() => {}, ["stop"])
3938
3868
  }, null, 8, [
3939
3869
  "label",
3940
3870
  "model-value",
3941
3871
  "onUpdate:modelValue"
3942
- ])) : G("", !0),
3872
+ ])) : K("", !0),
3943
3873
  Y("div", null, [k(t.$slots, "image", { item: o })]),
3944
- Y("div", Lu, [k(t.$slots, "item", { item: o })])
3945
- ]), Y("div", Ru, [!e.allowMultiple && h(o) ? (Z(), V(i, {
3874
+ Y("div", ju, [k(t.$slots, "item", { item: o })])
3875
+ ]), Y("div", Mu, [!e.allowMultiple && h(o) ? (Z(), H(i, {
3946
3876
  key: 0,
3947
3877
  name: "check"
3948
- })) : G("", !0)])]),
3878
+ })) : K("", !0)])]),
3949
3879
  _: 2
3950
3880
  }, 1032, [
3951
3881
  "class",
@@ -3962,7 +3892,7 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3962
3892
  ])], 2);
3963
3893
  };
3964
3894
  }
3965
- }), Bu = H({
3895
+ }), Pu = U({
3966
3896
  name: "ItemFilterToggle",
3967
3897
  props: {
3968
3898
  filterLabel: {
@@ -3976,26 +3906,26 @@ var Pu = /* @__PURE__ */ z(Eu, [["render", Nu]]), Fu = hi(async () => (await imp
3976
3906
  },
3977
3907
  emits: ["toggleFilter"],
3978
3908
  setup: function(e, { emit: t }) {
3979
- let n = Mi(), i = xr(), a = R(!1), o = `q_${e.filterName}`, s = r(o), c = () => n.push({ query: {
3980
- ...Zi(L(i).query, [o]),
3981
- ...L(a) && { [o]: "true" }
3909
+ let n = ji(), i = br(), a = z(!1), o = `q_${e.filterName}`, s = r(o), c = () => n.push({ query: {
3910
+ ...Zi(R(i).query, [o]),
3911
+ ...R(a) && { [o]: "true" }
3982
3912
  } });
3983
- return Ht(() => {
3984
- Re(L(s)) === "true" && (a.value = !0);
3913
+ return Vt(() => {
3914
+ Le(R(s)) === "true" && (a.value = !0);
3985
3915
  }), {
3986
3916
  queryParam: o,
3987
3917
  filterActive: a,
3988
3918
  toggleFilter: async () => {
3989
- a.value = !L(a), await c(), t("toggleFilter", L(a));
3919
+ a.value = !R(a), await c(), t("toggleFilter", R(a));
3990
3920
  }
3991
3921
  };
3992
3922
  }
3993
3923
  });
3994
3924
  //#endregion
3995
3925
  //#region src/components/ItemFilterToggle.vue
3996
- function Vu(e, t, n, r, i, a) {
3997
- let o = F("oc-filter-chip");
3998
- return Z(), X("div", { class: B(["item-filter flex", `item-filter-${e.filterName}`]) }, [q(o, {
3926
+ function Fu(e, t, n, r, i, a) {
3927
+ let o = I("oc-filter-chip");
3928
+ return Z(), X("div", { class: V(["item-filter flex", `item-filter-${e.filterName}`]) }, [J(o, {
3999
3929
  "is-toggle": !0,
4000
3930
  "filter-label": e.filterLabel,
4001
3931
  "is-toggle-active": e.filterActive,
@@ -4008,38 +3938,38 @@ function Vu(e, t, n, r, i, a) {
4008
3938
  "onClearFilter"
4009
3939
  ])], 2);
4010
3940
  }
4011
- var Hu = /* @__PURE__ */ z(Bu, [["render", Vu]]), Uu = H({
3941
+ var Iu = /* @__PURE__ */ B(Pu, [["render", Fu]]), Lu = U({
4012
3942
  name: "LoadingIndicator",
4013
3943
  setup() {
4014
- let e = Jt(), t, n, r, i = R(e.isLoading), a = R(e.currentProgress), o = () => {
3944
+ let e = qt(), t, n, r, i = z(e.isLoading), a = z(e.currentProgress), o = () => {
4015
3945
  a.value = e.currentProgress, i.value = e.isLoading;
4016
3946
  }, s = () => {
4017
3947
  a.value = e.currentProgress;
4018
3948
  };
4019
- return Ht(() => {
4020
- t = ei.subscribe(Ir.add, o), n = ei.subscribe(Ir.remove, o), r = ei.subscribe(Ir.setProgress, s);
3949
+ return Vt(() => {
3950
+ t = $r.subscribe(Fr.add, o), n = $r.subscribe(Fr.remove, o), r = $r.subscribe(Fr.setProgress, s);
4021
3951
  }), ja(() => {
4022
- ei.unsubscribe(Ir.add, t), ei.unsubscribe(Ir.remove, n), ei.unsubscribe(Ir.setProgress, r);
3952
+ $r.unsubscribe(Fr.add, t), $r.unsubscribe(Fr.remove, n), $r.unsubscribe(Fr.setProgress, r);
4023
3953
  }), {
4024
3954
  isLoading: i,
4025
3955
  currentProgress: a
4026
3956
  };
4027
3957
  }
4028
- }), Wu = {
3958
+ }), Ru = {
4029
3959
  key: 0,
4030
3960
  id: "oc-loading-indicator",
4031
3961
  class: "w-full"
4032
3962
  };
4033
- function Gu(e, t, n, r, i, a) {
4034
- let o = F("oc-progress");
4035
- return e.isLoading ? (Z(), X("div", Wu, [q(o, {
3963
+ function zu(e, t, n, r, i, a) {
3964
+ let o = I("oc-progress");
3965
+ return e.isLoading ? (Z(), X("div", Ru, [J(o, {
4036
3966
  max: 100,
4037
3967
  indeterminate: e.currentProgress === null,
4038
3968
  value: e.currentProgress,
4039
3969
  size: "xsmall"
4040
- }, null, 8, ["indeterminate", "value"])])) : G("", !0);
3970
+ }, null, 8, ["indeterminate", "value"])])) : K("", !0);
4041
3971
  }
4042
- var Ku = /* @__PURE__ */ z(Uu, [["render", Gu]]), qu = { class: "no-content-message flex flex-col justify-center items-center text-center" }, Ju = { class: "text-role-on-surface-variant text-xl" }, Yu = { class: "text-role-on-surface-variant mt-1" }, Xu = /* @__PURE__ */ z(/* @__PURE__ */ H({
3972
+ var Bu = /* @__PURE__ */ B(Lu, [["render", zu]]), Vu = { class: "no-content-message flex flex-col justify-center items-center text-center" }, Hu = { class: "text-role-on-surface-variant text-xl" }, Uu = { class: "text-role-on-surface-variant mt-1" }, Wu = /* @__PURE__ */ B(/* @__PURE__ */ U({
4043
3973
  __name: "NoContentMessage",
4044
3974
  props: {
4045
3975
  icon: { default: "" },
@@ -4048,30 +3978,30 @@ var Ku = /* @__PURE__ */ z(Uu, [["render", Gu]]), qu = { class: "no-content-mess
4048
3978
  },
4049
3979
  setup(e) {
4050
3980
  return (t, n) => {
4051
- let r = F("oc-image"), i = F("oc-icon");
4052
- return Z(), X("div", qu, [
4053
- e.imgSrc ? (Z(), V(r, {
3981
+ let r = I("oc-image"), i = I("oc-icon");
3982
+ return Z(), X("div", Vu, [
3983
+ e.imgSrc ? (Z(), H(r, {
4054
3984
  key: 0,
4055
3985
  width: "120",
4056
3986
  height: "120",
4057
3987
  class: "mb-4",
4058
3988
  src: e.imgSrc,
4059
3989
  alt: t.$gettext("No content image")
4060
- }, null, 8, ["src", "alt"])) : G("", !0),
4061
- e.icon ? (Z(), V(i, {
3990
+ }, null, 8, ["src", "alt"])) : K("", !0),
3991
+ e.icon ? (Z(), H(i, {
4062
3992
  key: 1,
4063
3993
  name: e.icon,
4064
3994
  type: "div",
4065
3995
  size: "xxlarge",
4066
3996
  "fill-type": e.iconFillType,
4067
3997
  class: "mb-4"
4068
- }, null, 8, ["name", "fill-type"])) : G("", !0),
4069
- Y("div", Ju, [k(t.$slots, "message", {}, void 0, !0)]),
4070
- Y("div", Yu, [k(t.$slots, "callToAction", {}, void 0, !0)])
3998
+ }, null, 8, ["name", "fill-type"])) : K("", !0),
3999
+ Y("div", Hu, [k(t.$slots, "message", {}, void 0, !0)]),
4000
+ Y("div", Uu, [k(t.$slots, "callToAction", {}, void 0, !0)])
4071
4001
  ]);
4072
4002
  };
4073
4003
  }
4074
- }), [["__scopeId", "data-v-02a07e27"]]), Zu = H({
4004
+ }), [["__scopeId", "data-v-02a07e27"]]), Gu = U({
4075
4005
  props: {
4076
4006
  pages: {
4077
4007
  type: Number,
@@ -4088,9 +4018,9 @@ var Ku = /* @__PURE__ */ z(Uu, [["render", Gu]]), qu = { class: "no-content-mess
4088
4018
  });
4089
4019
  //#endregion
4090
4020
  //#region src/components/Pagination.vue
4091
- function Qu(e, t, n, r, i, a) {
4092
- let o = F("oc-pagination");
4093
- return e.pages > 1 ? (Z(), V(o, {
4021
+ function Ku(e, t, n, r, i, a) {
4022
+ let o = I("oc-pagination");
4023
+ return e.pages > 1 ? (Z(), H(o, {
4094
4024
  key: 0,
4095
4025
  pages: e.pages,
4096
4026
  "current-page": e.currentPage,
@@ -4101,9 +4031,9 @@ function Qu(e, t, n, r, i, a) {
4101
4031
  "pages",
4102
4032
  "current-page",
4103
4033
  "current-route"
4104
- ])) : G("", !0);
4034
+ ])) : K("", !0);
4105
4035
  }
4106
- var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
4036
+ var qu = /* @__PURE__ */ B(Gu, [["render", Ku]]), Ju = U({
4107
4037
  name: "SearchBarFilter",
4108
4038
  props: { currentFolderAvailable: {
4109
4039
  type: Boolean,
@@ -4111,7 +4041,7 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
4111
4041
  } },
4112
4042
  emits: ["update:modelValue"],
4113
4043
  setup(e, { emit: t }) {
4114
- let { $gettext: n } = Q(), i = r("useScope"), a = R(), o = R(), s = K(() => n(a.value?.title)), c = K(() => [{
4044
+ let { $gettext: n } = Q(), i = r("useScope"), a = z(), o = z(), s = q(() => n(a.value?.title)), c = q(() => [{
4115
4045
  id: g.currentFolder,
4116
4046
  title: n("Current folder"),
4117
4047
  enabled: e.currentFolderAvailable
@@ -4120,24 +4050,24 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
4120
4050
  title: n("All files"),
4121
4051
  enabled: !0
4122
4052
  }]);
4123
- return N(() => e.currentFolderAvailable, () => {
4124
- if (L(i)) {
4125
- if (L(i).toString() === "true") {
4126
- a.value = L(c).find(({ id: e }) => e === g.currentFolder);
4053
+ return P(() => e.currentFolderAvailable, () => {
4054
+ if (R(i)) {
4055
+ if (R(i).toString() === "true") {
4056
+ a.value = R(c).find(({ id: e }) => e === g.currentFolder);
4127
4057
  return;
4128
4058
  }
4129
- a.value = L(c).find(({ id: e }) => e === g.allFiles);
4059
+ a.value = R(c).find(({ id: e }) => e === g.allFiles);
4130
4060
  return;
4131
4061
  }
4132
4062
  if (!e.currentFolderAvailable) {
4133
- a.value = L(c).find(({ id: e }) => e === g.allFiles);
4063
+ a.value = R(c).find(({ id: e }) => e === g.allFiles);
4134
4064
  return;
4135
4065
  }
4136
- if (L(o)) {
4137
- a.value = L(c).find(({ id: e }) => e === L(o).id);
4066
+ if (R(o)) {
4067
+ a.value = R(c).find(({ id: e }) => e === R(o).id);
4138
4068
  return;
4139
4069
  }
4140
- a.value = L(c).find(({ id: e }) => e === g.allFiles);
4070
+ a.value = R(c).find(({ id: e }) => e === g.allFiles);
4141
4071
  }, { immediate: !0 }), {
4142
4072
  currentSelection: a,
4143
4073
  currentSelectionTitle: s,
@@ -4147,17 +4077,17 @@ var $u = /* @__PURE__ */ z(Zu, [["render", Qu]]), ed = H({
4147
4077
  locationOptions: c
4148
4078
  };
4149
4079
  }
4150
- }), td = { key: 0 }, nd = {
4080
+ }), Yu = { key: 0 }, Xu = {
4151
4081
  key: 0,
4152
4082
  class: "flex"
4153
4083
  };
4154
- function rd(e, t, n, r, i, a) {
4155
- let o = F("oc-icon"), s = F("oc-button"), c = F("oc-list"), l = F("oc-filter-chip");
4084
+ function Zu(e, t, n, r, i, a) {
4085
+ let o = I("oc-icon"), s = I("oc-button"), c = I("oc-list"), l = I("oc-filter-chip");
4156
4086
  return Z(), X("div", {
4157
4087
  class: "z-[var(--z-index-modal)] absolute top-[50%] transform-[translateY(-50%)] right-0 ml-4 mb-4 mt-0 mr-[34px] float-right",
4158
4088
  "data-testid": "search-bar-filter",
4159
- onClick: t[0] ||= J(() => {}, ["stop"])
4160
- }, [e.currentSelection ? (Z(), X("div", td, [q(l, {
4089
+ onClick: t[0] ||= Ki(() => {}, ["stop"])
4090
+ }, [e.currentSelection ? (Z(), X("div", Yu, [J(l, {
4161
4091
  "is-toggle": !1,
4162
4092
  "is-toggle-active": !1,
4163
4093
  "filter-label": e.$gettext("Location filter"),
@@ -4168,8 +4098,8 @@ function rd(e, t, n, r, i, a) {
4168
4098
  raw: "",
4169
4099
  "close-on-click": ""
4170
4100
  }, {
4171
- default: P(() => [q(c, null, {
4172
- default: P(() => [(Z(!0), X(U, null, M(e.locationOptions, (t, n) => (Z(), X("li", { key: n }, [q(s, {
4101
+ default: F(() => [J(c, null, {
4102
+ default: F(() => [(Z(!0), X(W, null, M(e.locationOptions, (t, n) => (Z(), X("li", { key: n }, [J(s, {
4173
4103
  appearance: t.id === e.currentSelection.id ? "filled" : "raw-inverse",
4174
4104
  "color-role": t.id === e.currentSelection.id ? "secondaryContainer" : "surface",
4175
4105
  "no-hover": t.id === e.currentSelection.id,
@@ -4180,7 +4110,7 @@ function rd(e, t, n, r, i, a) {
4180
4110
  "data-test-id": t.id,
4181
4111
  onClick: (n) => e.onOptionSelected(t)
4182
4112
  }, {
4183
- default: P(() => [Y("span", null, W(t.title), 1), t.id === e.currentSelection.id ? (Z(), X("div", nd, [q(o, { name: "check" })])) : G("", !0)]),
4113
+ default: F(() => [Y("span", null, G(t.title), 1), t.id === e.currentSelection.id ? (Z(), X("div", Xu, [J(o, { name: "check" })])) : K("", !0)]),
4184
4114
  _: 2
4185
4115
  }, 1032, [
4186
4116
  "appearance",
@@ -4193,22 +4123,22 @@ function rd(e, t, n, r, i, a) {
4193
4123
  _: 1
4194
4124
  })]),
4195
4125
  _: 1
4196
- }, 8, ["filter-label", "selected-item-names"])])) : G("", !0)]);
4126
+ }, 8, ["filter-label", "selected-item-names"])])) : K("", !0)]);
4197
4127
  }
4198
- var id = /* @__PURE__ */ z(ed, [["render", rd]]), ad = { key: 0 }, od = {
4128
+ var Qu = /* @__PURE__ */ B(Ju, [["render", Zu]]), $u = { key: 0 }, ed = {
4199
4129
  key: 0,
4200
4130
  class: "version-check-loading flex items-center"
4201
- }, sd = ["textContent"], cd = {
4131
+ }, td = ["textContent"], nd = {
4202
4132
  key: 0,
4203
4133
  class: "version-check-no-updates flex items-center"
4204
- }, ld = ["textContent"], ud = ["textContent"], dd = /* @__PURE__ */ H({
4134
+ }, rd = ["textContent"], id = ["textContent"], ad = /* @__PURE__ */ U({
4205
4135
  __name: "VersionCheck",
4206
4136
  setup(e) {
4207
- let { $gettext: t } = Q(), n = yi(), r = qn(), { setHasError: i } = r, a = n.capabilities.core["check-for-updates"], { updates: o, isLoading: s, hasError: c } = $(r), l = K(() => a && !L(c)), u = R(!1), d = R(), f = n.status.edition || "rolling", p = n.status.productversion.split("+")[0];
4208
- return N(() => o, () => {
4209
- if (L(o)) try {
4210
- let e = L(o).channels[f].current_version;
4211
- ue(e, p) > 0 && (u.value = !0, d.value = L(o).channels[f]);
4137
+ let { $gettext: t } = Q(), n = vi(), r = Kn(), { setHasError: i } = r, a = n.capabilities.core["check-for-updates"], { updates: o, isLoading: s, hasError: c } = $(r), l = q(() => a && !R(c)), u = z(!1), d = z(), f = n.status.edition || "rolling", p = n.status.productversion.split("+")[0];
4138
+ return P(() => o, () => {
4139
+ if (R(o)) try {
4140
+ let e = R(o).channels[f].current_version;
4141
+ le(e, p) > 0 && (u.value = !0, d.value = R(o).channels[f]);
4212
4142
  } catch (e) {
4213
4143
  console.error(e), i(!0);
4214
4144
  }
@@ -4216,11 +4146,11 @@ var id = /* @__PURE__ */ z(ed, [["render", rd]]), ad = { key: 0 }, od = {
4216
4146
  immediate: !0,
4217
4147
  deep: !0
4218
4148
  }), (e, n) => {
4219
- let r = F("oc-spinner"), i = F("oc-icon"), a = F("oc-button");
4220
- return l.value ? (Z(), X("div", ad, [L(s) ? (Z(), X("div", od, [Y("span", { textContent: W(L(t)("Checking for updates")) }, null, 8, sd), q(r, {
4149
+ let r = I("oc-spinner"), i = I("oc-icon"), a = I("oc-button");
4150
+ return l.value ? (Z(), X("div", $u, [R(s) ? (Z(), X("div", ed, [Y("span", { textContent: G(R(t)("Checking for updates")) }, null, 8, td), J(r, {
4221
4151
  class: "ml-1",
4222
4152
  size: "xsmall"
4223
- })])) : (Z(), X(U, { key: 1 }, [u.value ? (Z(), V(a, {
4153
+ })])) : (Z(), X(W, { key: 1 }, [u.value ? (Z(), H(a, {
4224
4154
  key: 1,
4225
4155
  class: "version-check-update text-role-on-surface-variant",
4226
4156
  size: "small",
@@ -4231,22 +4161,22 @@ var id = /* @__PURE__ */ z(ed, [["render", rd]]), ad = { key: 0 }, od = {
4231
4161
  appearance: "raw",
4232
4162
  "no-hover": ""
4233
4163
  }, {
4234
- default: P(() => [Y("span", {
4164
+ default: F(() => [Y("span", {
4235
4165
  class: "text-xs",
4236
- textContent: W(L(t)("Version %{version} available", { version: d.value.current_version }))
4237
- }, null, 8, ud), q(i, {
4166
+ textContent: G(R(t)("Version %{version} available", { version: d.value.current_version }))
4167
+ }, null, 8, id), J(i, {
4238
4168
  name: "refresh",
4239
4169
  size: "xsmall",
4240
4170
  "fill-type": "line"
4241
4171
  })]),
4242
4172
  _: 1
4243
- }, 8, ["href"])) : (Z(), X("div", cd, [Y("span", { textContent: W(L(t)("Up to date")) }, null, 8, ld), q(i, {
4173
+ }, 8, ["href"])) : (Z(), X("div", nd, [Y("span", { textContent: G(R(t)("Up to date")) }, null, 8, rd), J(i, {
4244
4174
  class: "ml-0.5",
4245
4175
  name: "checkbox-circle",
4246
4176
  size: "xsmall",
4247
4177
  "fill-type": "line"
4248
- })]))], 64))])) : G("", !0);
4178
+ })]))], 64))])) : K("", !0);
4249
4179
  };
4250
4180
  }
4251
- }), fd = Ua.dirname;
4252
- export { xe as AVATAR_UPLOAD_MAX_FILE_SIZE_MB, Ta as AccountCapabilitiesSchema, Xt as AccountSchema, oe as AccountsSchema, ql as AccountsSwitch, Ro as ActionMenuDropItem, Ao as ActionMenuItem, sn as ApiError, bs as AppBar, Wt as AppLoadingSpinner, en as AppProviderService, Es as AppTopBar, wc as AppWrapper, Tc as AppWrapperRoute, xt as ArchiverService, tt as Auth, Jc as AvatarUpload, No as BatchActions, na as Cache, c as ClientService, Hr as ClipboardActions, Pu as CompareSaveDialog, Ri as ConflictDialog, Ho as ContextActionMenu, Go as ContextActions, Ec as ContextMenuQuickAction, gr as CreateLinkModal, Lt as CreateShortcutModal, iu as CustomComponentTarget, Ml as DateFilter, rc as DatePickerModal, Mt as EmojiPickerModal, ht as EventBus, Zs as FileInfo, Na as FilePickerModal, Qs as FileSideBar, S as FolderLoaderFavorites, Bt as FolderLoaderSharedViaLink, ka as FolderLoaderSharedWithMe, Zn as FolderLoaderSharedWithOthers, Ca as FolderLoaderSpace, Ia as FolderLoaderTrashbin, Ln as FolderService, ma as FolderViewModeConstants, Jr as HttpClient, A as IdentitySchema, Ke as ImageDimension, Hi as ImageType, zu as ItemFilter, Il as ItemFilterInline, Hu as ItemFilterToggle, Lr as Key, _t as LimitsSchema, ia as LinkRoleDropdown, Ir as LoadingEventTopics, Ku as LoadingIndicator, kr as LoadingService, ri as MailCapabilitiesSchema, pn as MimeTypesToAppsSchema, ds as MobileNav, Ar as Modifier, Xu as NoContentMessage, $u as Pagination, Gt as PaginationConstants, lr as PasswordPolicyService, Ni as PreviewService, d as PrimaryAccountsSchema, Sr as ProcessorType, Ve as QuotaModal, Li as QuotaSelect, Be as RESOURCE_MAX_CHARACTER_LENGTH, On as RESOURCE_NAME_MAX_BYTES, Vr as RawConfigSchema, Xr as RawGroupwareConfigSchema, $t as ResolveStrategy, Ie as ResourceConflictModal, Pc as ResourceGhostElement, rn as ResourceIcon, Oe as ResourceLink, y as ResourceListItem, un as ResourceName, qa as ResourcePreview, Rc as ResourceSize, nl as ResourceTable, pl as ResourceTile, yl as ResourceTiles, Ce as ResourceTransfer, we as RuntimeError, _i as SaveAsModal, id as SearchBarFilter, g as SearchLocationFilterConstants, Hs as SideBar, Vs as SideBarPanels, it as SieveCapabilitiesSchema, Hn as SortConstants, hu as SpaceDetails, yu as SpaceDetailsMultiple, Er as SpaceImageModal, qs as SpaceInfo, wn as SpaceMoveInfoModal, Tu as SpaceNoSelection, Xl as SpaceQuota, Fu as TextEditor, Bn as ThemeConfig, fn as TransferType, lc as UnsavedChangesModal, rr as UppyService, Bc as UserAvatar, dd as VersionCheck, is as ViewOptions, _n as VisibilityObserver, ru as WebDavDetails, ya as WebThemeConfig, la as activeApp, Fr as authContextValues, nn as blobToArrayBuffer, Wn as breadcrumbsFromPath, ti as buildRoutes, nr as buildUrl, ct as cacheService, gn as canvasToBlob, t as cloneStateObject, ue as compareVersions, Di as concatBreadcrumbs, mn as contextQueryToFileContextProps, ve as contextRouteNameKey, We as contextRouteParamsKey, Bi as contextRouteQueryKey, si as convertToMinimalUppyFile, Nt as createDefaultFileIconMapping, oi as createFileRouteOptions, ua as createFolderDummyFile, st as createLocation, qr as createLocationCommon, Fa as createLocationPublic, x as createLocationShares, mt as createLocationSpaces, In as createLocationTrash, on as defaultFuseOptions, wo as defineWebApplication, Le as determineResourceTableSortFields, _e as determineResourceTilesSortFields, fd as dirname, Pt as encodePath, ei as eventBus, ou as extensionPoints, au as fileSideBarSpaceDetailsTableExtensionPoint, m as filterResources, jn as focusCheckbox, ga as folderService, Vi as formatDateFromDateTime, ze as formatDateFromHTTP, Dn as formatDateFromISO, xn as formatDateFromJSDate, Nn as formatDateFromRFC, Ge as formatFileSize, At as formatRelativeDateFromDateTime, i as formatRelativeDateFromHTTP, hr as formatRelativeDateFromISO, ra as formatRelativeDateFromJSDate, bi as formatRelativeDateFromRFC, Ze as getBackendVersion, re as getExtensionNavItems, Gi as getLocaleFromLanguage, be as getParentPaths, n as getSharedAncestorRoute, mr as getSharedDriveItem, Tr as getSpacesByType, Ka as getTextByteSize, It as getWebVersion, Je as isItemInCurrentFolder, l as isLocationActive, bt as isLocationActiveDirector, et as isLocationCommonActive, Xn as isLocationPublicActive, Sa as isLocationSharesActive, $r as isLocationSpacesActive, ha as isLocationTrashActive, De as isMacOs, v as isPromiseFulfilled, ln as isPromiseRejected, ge as isResourceBeeingMovedToSameLocation, Dt as isSameResource, Oa as locationPublicLink, zt as locationPublicUpload, Kt as locationSharesViaLink, j as locationSharesWithMe, E as locationSharesWithOthers, s as locationSpacesGeneric, Ye as objectKeys, je as parseVersion, Re as queryItemAsString, Ae as renameResource, He as resolveFileNameDuplicate, Ha as resourceIconMappingInjectionKey, En as routeToContextQuery, Ot as setCurrentUserShareSpacePermissions, Ue as sortFields, Ui as sortHelper, Fi as sortSpaceMembers, zi as translateSortFields, h as triggerDownloadWithFilename, _r as useAbility, yt as useActionsShowDetails, cr as useActiveApp, Mn as useActiveLocation, Or as useAppConfig, Yr as useAppDefaults, Te as useAppFileHandling, Ft as useAppFolderHandling, Xe as useAppMeta, bn as useAppNavigation, Kr as useAppProviderService, Xi as useAppsStore, ft as useArchiverService, cn as useAuthService, Ei as useAuthStore, Wi as useAvatarsStore, o as useBreadcrumbsFromPath, Da as useCanBeOpenedWithSecureView, or as useCanListShares, Yn as useCanListVersions, ea as useCanShare, yi as useCapabilityStore, tn as useClientService, pe as useClipboardStore, Un as useConfigStore, Ki as useCopyLink, ae as useCreateSpace, Pi as useCropperKeyboardActions, C as useDeleteWorker, de as useDocumentTitle, Zr as useDownloadFile, nt as useDriveResolver, li as useEmbedMode, Me as useEventBus, wt as useExtensionPreferencesStore, dt as useExtensionRegistry, Ji as useFileActionFallbackToDownload, La as useFileActions, _a as useFileActionsCopy, Cr as useFileActionsCopyPermanentLink, a as useFileActionsCreateLink, jt as useFileActionsCreateNewFile, Sn as useFileActionsCreateNewFolder, Qe as useFileActionsCreateNewShortcut, Pe as useFileActionsCreateSpaceFromResource, me as useFileActionsDelete, wi as useFileActionsDeleteResources, Tt as useFileActionsDisableSync, at as useFileActionsDownloadArchive, f as useFileActionsDownloadFile, ii as useFileActionsEmptyTrashBin, vt as useFileActionsEnableSync, ne as useFileActionsFavorite, se as useFileActionsMove, Zt as useFileActionsNavigate, T as useFileActionsOpenShortcut, ba as useFileActionsOpenWithApp, Ea as useFileActionsOpenWithDefault, Vn as useFileActionsPaste, Nr as useFileActionsRename, zr as useFileActionsRestore, Ii as useFileActionsSaveAs, pr as useFileActionsSetImage, pa as useFileActionsShowActions, ui as useFileActionsShowDetails, Ai as useFileActionsShowShares, Jn as useFileActionsToggleHideShare, Gr as useFileActionsUndoDelete, Qr as useFileListHeaderPosition, qi as useFileRouteReplace, Ba as useFolderLink, O as useGetMatchingSpace, Pa as useGetResourceContext, w as useGroupwareAccountsStore, Ut as useGroupwareConfigStore, mi as useInterceptModifierClick, sa as useIsAppActive, yr as useIsFilesAppActive, e as useIsResourceNameValid, Et as useIsSearchActive, pt as useIsTopBarSticky, Rn as useKeyboardActions, xi as useLinkTypes, ta as useLoadAvatars, ji as useLoadPreview, Jt as useLoadingService, fa as useLocalStorage, Ne as useMessages, Ma as useModals, te as useNavItems, ot as useOpenEmptyEditor, dn as useOpenWithDefaultApp, xa as usePagination, b as usePasswordPolicyService, Vt as usePasteWorker, Rt as usePreviewService, St as useRequest, wa as useRequestHeaders, br as useResourceContents, sr as useResourceIndicators, er as useResourceRouteResolver, ca as useResourceViewContextMenu, ai as useResourceViewDrag, Yi as useResourceViewHelpers, tr as useResourceViewSelection, fr as useResourcesStore, Aa as useRestoreWorker, xr as useRoute, oa as useRouteMeta, Ci as useRouteName, vr as useRouteParam, r as useRouteQuery, kt as useRouteQueryPersisted, Mi as useRouter, Pn as useScrollTo, Wa as useSearch, Ti as useSelectedResources, fi as useService, Mr as useSharesStore, ki as useSideBar, Br as useSort, ce as useSpaceActionsCreate, kn as useSpaceActionsDelete, ke as useSpaceActionsDeleteImage, vn as useSpaceActionsDisable, Cn as useSpaceActionsDuplicate, Fe as useSpaceActionsEditDescription, he as useSpaceActionsEditQuota, Qt as useSpaceActionsEditReadmeContent, Va as useSpaceActionsNavigateToTrash, Se as useSpaceActionsRename, an as useSpaceActionsRestore, qe as useSpaceActionsSetIcon, p as useSpaceActionsShowMembers, gt as useSpaceHelpers, lt as useSpacesLoading, gi as useSpacesStore, za as useThemeStore, Fn as useTileSize, Qn as useTokenTimerWorker, qn as useUpdatesStore, vi as useUpload, $n as useUserStore, di as useViewMode, Pr as useViewSize, Dr as useViewSizeMax, Wr as useWebWorkersStore, $e as useWindowOpen };
4181
+ }), od = Ua.dirname;
4182
+ export { be as AVATAR_UPLOAD_MAX_FILE_SIZE_MB, Ta as AccountCapabilitiesSchema, Yt as AccountSchema, N as AccountsSchema, Bl as AccountsSwitch, Ro as ActionMenuDropItem, Ao as ActionMenuItem, on as ApiError, ps as AppBar, Ut as AppLoadingSpinner, $t as AppProviderService, ys as AppTopBar, _c as AppWrapper, vc as AppWrapperRoute, bt as ArchiverService, et as Auth, Vc as AvatarUpload, No as BatchActions, na as Cache, c as ClientService, Vr as ClipboardActions, Ou as CompareSaveDialog, Li as ConflictDialog, Ho as ContextActionMenu, Go as ContextActions, yc as ContextMenuQuickAction, hr as CreateLinkModal, It as CreateShortcutModal, Zl as CustomComponentTarget, Tl as DateFilter, Xs as DatePickerModal, jt as EmojiPickerModal, mt as EventBus, Ws as FileInfo, Na as FilePickerModal, Gs as FileSideBar, S as FolderLoaderFavorites, zt as FolderLoaderSharedViaLink, ka as FolderLoaderSharedWithMe, Xn as FolderLoaderSharedWithOthers, Ca as FolderLoaderSpace, Ia as FolderLoaderTrashbin, In as FolderService, ma as FolderViewModeConstants, qr as HttpClient, A as IdentitySchema, Ge as ImageDimension, Vi as ImageType, Nu as ItemFilter, kl as ItemFilterInline, Iu as ItemFilterToggle, Ir as Key, gt as LimitsSchema, ia as LinkRoleDropdown, Fr as LoadingEventTopics, Bu as LoadingIndicator, Or as LoadingService, ni as MailCapabilitiesSchema, fn as MimeTypesToAppsSchema, kr as Modifier, Wu as NoContentMessage, qu as Pagination, Wt as PaginationConstants, cr as PasswordPolicyService, Mi as PreviewService, d as PrimaryAccountsSchema, xr as ProcessorType, Be as QuotaModal, Ii as QuotaSelect, ze as RESOURCE_MAX_CHARACTER_LENGTH, Dn as RESOURCE_NAME_MAX_BYTES, Br as RawConfigSchema, Yr as RawGroupwareConfigSchema, Qt as ResolveStrategy, Fe as ResourceConflictModal, Dc as ResourceGhostElement, nn as ResourceIcon, De as ResourceLink, y as ResourceListItem, ln as ResourceName, qa as ResourcePreview, jc as ResourceSize, Yc as ResourceTable, ol as ResourceTile, fl as ResourceTiles, Se as ResourceTransfer, Ce as RuntimeError, gi as SaveAsModal, Qu as SearchBarFilter, g as SearchLocationFilterConstants, Is as SideBar, Fs as SideBarPanels, rt as SieveCapabilitiesSchema, Vn as SortConstants, lu as SpaceDetails, pu as SpaceDetailsMultiple, Tr as SpaceImageModal, zs as SpaceInfo, Cn as SpaceMoveInfoModal, yu as SpaceNoSelection, Ul as SpaceQuota, ku as TextEditor, zn as ThemeConfig, dn as TransferType, nc as UnsavedChangesModal, nr as UppyService, Nc as UserAvatar, ad as VersionCheck, is as ViewOptions, gn as VisibilityObserver, Xl as WebDavDetails, ya as WebThemeConfig, la as activeApp, Pr as authContextValues, tn as blobToArrayBuffer, Un as breadcrumbsFromPath, ei as buildRoutes, tr as buildUrl, st as cacheService, hn as canvasToBlob, t as cloneStateObject, le as compareVersions, Ei as concatBreadcrumbs, pn as contextQueryToFileContextProps, _e as contextRouteNameKey, Ue as contextRouteParamsKey, zi as contextRouteQueryKey, oi as convertToMinimalUppyFile, Mt as createDefaultFileIconMapping, ai as createFileRouteOptions, ua as createFolderDummyFile, ot as createLocation, Kr as createLocationCommon, Fa as createLocationPublic, x as createLocationShares, pt as createLocationSpaces, Fn as createLocationTrash, an as defaultFuseOptions, wo as defineWebApplication, Ie as determineResourceTableSortFields, ge as determineResourceTilesSortFields, od as dirname, Nt as encodePath, $r as eventBus, $l as extensionPoints, Ql as fileSideBarSpaceDetailsTableExtensionPoint, m as filterResources, An as focusCheckbox, ga as folderService, Bi as formatDateFromDateTime, Re as formatDateFromHTTP, En as formatDateFromISO, bn as formatDateFromJSDate, Mn as formatDateFromRFC, We as formatFileSize, kt as formatRelativeDateFromDateTime, i as formatRelativeDateFromHTTP, mr as formatRelativeDateFromISO, ra as formatRelativeDateFromJSDate, yi as formatRelativeDateFromRFC, Xe as getBackendVersion, re as getExtensionNavItems, Wi as getLocaleFromLanguage, ye as getParentPaths, n as getSharedAncestorRoute, pr as getSharedDriveItem, wr as getSpacesByType, Ka as getTextByteSize, Ft as getWebVersion, qe as isItemInCurrentFolder, l as isLocationActive, yt as isLocationActiveDirector, $e as isLocationCommonActive, Yn as isLocationPublicActive, Sa as isLocationSharesActive, Qr as isLocationSpacesActive, ha as isLocationTrashActive, Ee as isMacOs, v as isPromiseFulfilled, cn as isPromiseRejected, he as isResourceBeeingMovedToSameLocation, Et as isSameResource, Oa as locationPublicLink, Rt as locationPublicUpload, Gt as locationSharesViaLink, j as locationSharesWithMe, E as locationSharesWithOthers, s as locationSpacesGeneric, Je as objectKeys, Ae as parseVersion, Le as queryItemAsString, ke as renameResource, Ve as resolveFileNameDuplicate, Ha as resourceIconMappingInjectionKey, Tn as routeToContextQuery, Dt as setCurrentUserShareSpacePermissions, He as sortFields, Hi as sortHelper, Pi as sortSpaceMembers, Ri as translateSortFields, h as triggerDownloadWithFilename, gr as useAbility, vt as useActionsShowDetails, sr as useActiveApp, jn as useActiveLocation, Dr as useAppConfig, Jr as useAppDefaults, we as useAppFileHandling, Pt as useAppFolderHandling, Ye as useAppMeta, yn as useAppNavigation, Gr as useAppProviderService, Xi as useAppsStore, dt as useArchiverService, sn as useAuthService, Ti as useAuthStore, Ui as useAvatarsStore, o as useBreadcrumbsFromPath, Da as useCanBeOpenedWithSecureView, ar as useCanListShares, Jn as useCanListVersions, ea as useCanShare, vi as useCapabilityStore, en as useClientService, fe as useClipboardStore, Hn as useConfigStore, Gi as useCopyLink, ae as useCreateSpace, Ni as useCropperKeyboardActions, C as useDeleteWorker, ue as useDocumentTitle, Xr as useDownloadFile, tt as useDriveResolver, ci as useEmbedMode, je as useEventBus, Ct as useExtensionPreferencesStore, ut as useExtensionRegistry, Ji as useFileActionFallbackToDownload, La as useFileActions, _a as useFileActionsCopy, Sr as useFileActionsCopyPermanentLink, a as useFileActionsCreateLink, At as useFileActionsCreateNewFile, xn as useFileActionsCreateNewFolder, Ze as useFileActionsCreateNewShortcut, Ne as useFileActionsCreateSpaceFromResource, pe as useFileActionsDelete, Ci as useFileActionsDeleteResources, wt as useFileActionsDisableSync, it as useFileActionsDownloadArchive, f as useFileActionsDownloadFile, ri as useFileActionsEmptyTrashBin, _t as useFileActionsEnableSync, ne as useFileActionsFavorite, oe as useFileActionsMove, Xt as useFileActionsNavigate, T as useFileActionsOpenShortcut, ba as useFileActionsOpenWithApp, Ea as useFileActionsOpenWithDefault, Bn as useFileActionsPaste, Mr as useFileActionsRename, Rr as useFileActionsRestore, Fi as useFileActionsSaveAs, fr as useFileActionsSetImage, pa as useFileActionsShowActions, li as useFileActionsShowDetails, ki as useFileActionsShowShares, qn as useFileActionsToggleHideShare, Wr as useFileActionsUndoDelete, Zr as useFileListHeaderPosition, qi as useFileRouteReplace, Ba as useFolderLink, O as useGetMatchingSpace, Pa as useGetResourceContext, w as useGroupwareAccountsStore, Ht as useGroupwareConfigStore, pi as useInterceptModifierClick, sa as useIsAppActive, vr as useIsFilesAppActive, e as useIsResourceNameValid, Tt as useIsSearchActive, ft as useIsTopBarSticky, Ln as useKeyboardActions, bi as useLinkTypes, ta as useLoadAvatars, Ai as useLoadPreview, qt as useLoadingService, fa as useLocalStorage, Me as useMessages, Ma as useModals, te as useNavItems, at as useOpenEmptyEditor, un as useOpenWithDefaultApp, xa as usePagination, b as usePasswordPolicyService, Bt as usePasteWorker, Lt as usePreviewService, xt as useRequest, wa as useRequestHeaders, yr as useResourceContents, or as useResourceIndicators, $n as useResourceRouteResolver, ca as useResourceViewContextMenu, ii as useResourceViewDrag, Yi as useResourceViewHelpers, er as useResourceViewSelection, dr as useResourcesStore, Aa as useRestoreWorker, br as useRoute, oa as useRouteMeta, Si as useRouteName, _r as useRouteParam, r as useRouteQuery, Ot as useRouteQueryPersisted, ji as useRouter, Nn as useScrollTo, Wa as useSearch, wi as useSelectedResources, di as useService, jr as useSharesStore, Oi as useSideBar, zr as useSort, se as useSpaceActionsCreate, On as useSpaceActionsDelete, Oe as useSpaceActionsDeleteImage, _n as useSpaceActionsDisable, Sn as useSpaceActionsDuplicate, Pe as useSpaceActionsEditDescription, me as useSpaceActionsEditQuota, Zt as useSpaceActionsEditReadmeContent, Va as useSpaceActionsNavigateToTrash, xe as useSpaceActionsRename, rn as useSpaceActionsRestore, Ke as useSpaceActionsSetIcon, p as useSpaceActionsShowMembers, ht as useSpaceHelpers, ct as useSpacesLoading, hi as useSpacesStore, za as useThemeStore, Pn as useTileSize, Zn as useTokenTimerWorker, Kn as useUpdatesStore, _i as useUpload, Qn as useUserStore, ui as useViewMode, Nr as useViewSize, Er as useViewSizeMax, Ur as useWebWorkersStore, Qe as useWindowOpen };