folder-pane 4.0.1-0 → 4.0.1-2

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 (110) hide show
  1. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/{trash-2.esm.js → chevron-left.esm.js} +4 -4
  4. package/dist/_virtual/~icons/lucide/chevron-left.esm.js.map +1 -0
  5. package/dist/accessCache.cjs.js +2 -0
  6. package/dist/accessCache.cjs.js.map +1 -0
  7. package/dist/accessCache.d.ts +37 -0
  8. package/dist/accessCache.d.ts.map +1 -0
  9. package/dist/accessCache.esm.js +34 -0
  10. package/dist/accessCache.esm.js.map +1 -0
  11. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +38 -33
  12. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
  13. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +27 -5
  14. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
  15. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +305 -189
  16. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -1
  17. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +1 -1
  18. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -1
  19. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +1 -1
  20. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -1
  21. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +1 -1
  22. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -1
  23. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +1 -1
  24. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -1
  25. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js +2 -0
  26. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js.map +1 -0
  27. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts +16 -0
  28. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts.map +1 -0
  29. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js +293 -0
  30. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js.map +1 -0
  31. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js +2 -0
  32. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js.map +1 -0
  33. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js +6 -0
  34. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js.map +1 -0
  35. package/dist/components/folder-pane-provider/index.cjs.js +1 -0
  36. package/dist/components/folder-pane-provider/index.d.ts +2 -0
  37. package/dist/components/folder-pane-provider/index.d.ts.map +1 -0
  38. package/dist/components/folder-pane-provider/index.esm.js +1 -0
  39. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +18 -19
  40. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -1
  41. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +15 -2
  42. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -1
  43. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +237 -108
  44. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -1
  45. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +1 -1
  46. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -1
  47. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +1 -1
  48. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -1
  49. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +32 -18
  50. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -1
  51. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +13 -2
  52. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -1
  53. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +191 -84
  54. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -1
  55. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +1 -1
  56. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -1
  57. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +1 -1
  58. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -1
  59. package/dist/components/folder-pane-view/FolderPaneView.cjs.js +91 -28
  60. package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
  61. package/dist/components/folder-pane-view/FolderPaneView.d.ts +36 -3
  62. package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
  63. package/dist/components/folder-pane-view/FolderPaneView.esm.js +520 -240
  64. package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -1
  65. package/dist/components/folder-pane-view/resourceLoad.cjs.js +2 -0
  66. package/dist/components/folder-pane-view/resourceLoad.cjs.js.map +1 -0
  67. package/dist/components/folder-pane-view/resourceLoad.d.ts +8 -0
  68. package/dist/components/folder-pane-view/resourceLoad.d.ts.map +1 -0
  69. package/dist/components/folder-pane-view/resourceLoad.esm.js +7 -0
  70. package/dist/components/folder-pane-view/resourceLoad.esm.js.map +1 -0
  71. package/dist/debug.cjs.js +2 -0
  72. package/dist/debug.cjs.js.map +1 -0
  73. package/dist/debug.d.ts +5 -0
  74. package/dist/debug.d.ts.map +1 -0
  75. package/dist/debug.esm.js +10 -0
  76. package/dist/debug.esm.js.map +1 -0
  77. package/dist/folderPane.cjs.js +2 -2
  78. package/dist/folderPane.cjs.js.map +1 -1
  79. package/dist/folderPane.d.ts +13 -0
  80. package/dist/folderPane.d.ts.map +1 -1
  81. package/dist/folderPane.esm.js +24 -13
  82. package/dist/folderPane.esm.js.map +1 -1
  83. package/dist/helpers.cjs.js +1 -1
  84. package/dist/helpers.cjs.js.map +1 -1
  85. package/dist/helpers.d.ts +12 -1
  86. package/dist/helpers.d.ts.map +1 -1
  87. package/dist/helpers.esm.js +34 -14
  88. package/dist/helpers.esm.js.map +1 -1
  89. package/dist/primitives/context.cjs.js +2 -0
  90. package/dist/primitives/context.cjs.js.map +1 -0
  91. package/dist/primitives/context.d.ts +14 -0
  92. package/dist/primitives/context.d.ts.map +1 -0
  93. package/dist/primitives/context.esm.js +6 -0
  94. package/dist/primitives/context.esm.js.map +1 -0
  95. package/dist/requestQueue.cjs.js +2 -0
  96. package/dist/requestQueue.cjs.js.map +1 -0
  97. package/dist/requestQueue.d.ts +38 -0
  98. package/dist/requestQueue.d.ts.map +1 -0
  99. package/dist/requestQueue.esm.js +77 -0
  100. package/dist/requestQueue.esm.js.map +1 -0
  101. package/dist/resourceActionItems.cjs.js +2 -0
  102. package/dist/resourceActionItems.cjs.js.map +1 -0
  103. package/dist/resourceActionItems.d.ts +20 -0
  104. package/dist/resourceActionItems.d.ts.map +1 -0
  105. package/dist/resourceActionItems.esm.js +42 -0
  106. package/dist/resourceActionItems.esm.js.map +1 -0
  107. package/package.json +12 -8
  108. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
  109. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
  110. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
@@ -1,41 +1,46 @@
1
- import { getContainerMemberCountLabel as e, getResourceAccessState as t, getResourcesForContainer as n } from "../../helpers.esm.js";
1
+ import { resourceAccessCache as e } from "../../accessCache.esm.js";
2
+ import { loadResourcePaneMenuItems as t } from "../../resourceActionItems.esm.js";
3
+ import { getContainerMemberCountLabel as n, getResourceAccessState as r, getResourcesForContainer as i, readStoredWacAllow as a } from "../../helpers.esm.js";
4
+ import { createRequestQueue as o } from "../../requestQueue.esm.js";
5
+ import { warn as s } from "../../debug.esm.js";
2
6
  import "../../_virtual/~icons/lucide/file.esm.js";
3
7
  import "../../_virtual/~icons/lucide/file-box.esm.js";
4
8
  import "../../_virtual/~icons/lucide/folder.esm.js";
5
- import r from "./FolderPaneContainer.styles.esm.js";
6
9
  import "../../_virtual/~icons/lucide/globe.esm.js";
7
10
  import "../../_virtual/~icons/lucide/lock-keyhole.esm.js";
8
- import { FILE_EXPLORER_MANAGE_ACCESS_EVENT as i, WebComponent as a, customElement as o, getRelevantPanes as s, utils as c } from "solid-ui";
9
- import { html as l, nothing as u } from "lit";
10
- import { property as d, state as f } from "lit/decorators.js";
11
+ import c from "./FolderPaneContainer.styles.esm.js";
12
+ import { WebComponent as l, customElement as u, preparePaneMenuItems as d, utils as f } from "solid-ui";
13
+ import { authSession as p, authn as m } from "solid-logic";
14
+ import { html as h, nothing as g } from "lit";
15
+ import { property as _, state as v } from "lit/decorators.js";
11
16
  import "solid-ui/components/resource-actions-menu";
12
17
  // src/components/folder-pane-container/FolderPaneContainer.ts
13
- var p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, ee, te, ne, re, ie, N, P, F, I, L, R, z, B, V, H, U, W, G, K, q, J, ae, oe, se, ce, le;
18
+ var y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, ee, te, ne, re, ie, ae, P, F, I, L, R, z, B, V, H, U, W, G, K, q, J, oe, se, ce, le, ue, de, fe;
14
19
  function Y(e, t, n) {
15
- ue(e, t), t.set(e, n);
20
+ pe(e, t), t.set(e, n);
16
21
  }
17
- function ue(e, t) {
22
+ function pe(e, t) {
18
23
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
19
24
  }
20
25
  function X(e, t, n) {
21
- return e.set(de(e, t), n), n;
26
+ return e.set(me(e, t), n), n;
22
27
  }
23
28
  function Z(e, t) {
24
- return e.get(de(e, t));
29
+ return e.get(me(e, t));
25
30
  }
26
- function de(e, t, n) {
31
+ function me(e, t, n) {
27
32
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
28
33
  throw TypeError("Private element is not present on this object");
29
34
  }
30
35
  function Q(e, t, n) {
31
- return (t = pe(t)) in e ? Object.defineProperty(e, t, {
36
+ return (t = ge(t)) in e ? Object.defineProperty(e, t, {
32
37
  value: n,
33
38
  enumerable: !0,
34
39
  configurable: !0,
35
40
  writable: !0
36
41
  }) : e[t] = n, e;
37
42
  }
38
- function fe(e, t, n, r, i, a) {
43
+ function he(e, t, n, r, i, a) {
39
44
  function o(e, t, n) {
40
45
  return function(r, i) {
41
46
  return n && n(r), e[t].call(r, i);
@@ -58,13 +63,13 @@ function fe(e, t, n, r, i, a) {
58
63
  n || Array.isArray(_) || (_ = [_]);
59
64
  var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
60
65
  d ? (f || p ? b = {
61
- get: he(function() {
66
+ get: ve(function() {
62
67
  return v(this);
63
68
  }, r, "get"),
64
69
  set: function(e) {
65
70
  t[4](this, e);
66
71
  }
67
- } : b[S] = v, f || he(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
72
+ } : b[S] = v, f || ve(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
68
73
  }
69
74
  for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
70
75
  var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
@@ -124,7 +129,7 @@ function fe(e, t, n, r, i, a) {
124
129
  if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
125
130
  var f = Object.create(d ?? null), p = function(e, t, n, r) {
126
131
  var i, a, o = [], c = function(t) {
127
- return ge(t) === e;
132
+ return ye(t) === e;
128
133
  }, u = /* @__PURE__ */ new Map();
129
134
  function d(e) {
130
135
  e && o.push(s.bind(null, e));
@@ -138,7 +143,7 @@ function fe(e, t, n, r, i, a) {
138
143
  if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
139
144
  u.set(b, !(m > 2) || m);
140
145
  }
141
- l(v ? e : e.prototype, p, _, g ? "#" + h : pe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
146
+ l(v ? e : e.prototype, p, _, g ? "#" + h : ge(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
142
147
  }
143
148
  }
144
149
  return d(i), d(a), o;
@@ -151,11 +156,11 @@ function fe(e, t, n, r, i, a) {
151
156
  }
152
157
  };
153
158
  }
154
- function pe(e) {
155
- var t = me(e, "string");
159
+ function ge(e) {
160
+ var t = _e(e, "string");
156
161
  return typeof t == "symbol" ? t : t + "";
157
162
  }
158
- function me(e, t) {
163
+ function _e(e, t) {
159
164
  if (typeof e != "object" || !e) return e;
160
165
  var n;
161
166
  if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
@@ -165,7 +170,7 @@ function me(e, t) {
165
170
  }
166
171
  return (t === "string" ? String : Number)(e);
167
172
  }
168
- function he(e, t, n) {
173
+ function ve(e, t, n) {
169
174
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
170
175
  try {
171
176
  Object.defineProperty(e, "name", {
@@ -175,99 +180,92 @@ function he(e, t, n) {
175
180
  } catch {}
176
181
  return e;
177
182
  }
178
- function ge(e) {
183
+ function ye(e) {
179
184
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
180
185
  return e;
181
186
  }
182
- function _e(e) {
187
+ function be(e) {
183
188
  return e;
184
189
  }
185
- A = [o("folder-pane-container")];
190
+ te = [u("folder-pane-container")];
186
191
  var $;
187
- new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ = /*#__PURE__*/ new WeakMap(), v = /*#__PURE__*/ new WeakMap(), y = /*#__PURE__*/ new WeakMap(), b = /*#__PURE__*/ new WeakMap(), x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), le = (j = d({ attribute: !1 }), ee = d({ attribute: !1 }), ne = d({ attribute: !1 }), ie = d(), P = d(), I = d({
188
- type: Boolean,
189
- attribute: "hide-root-special-folders"
190
- }), R = f(), B = f(), H = f(), W = f(), K = f(), J = f(), oe = f(), "subject"), m = class extends a {
191
- constructor(...e) {
192
- super(...e), Y(this, h, (O(this), M(this, void 0))), Y(this, g, te(this, null)), Y(this, _, re(this, void 0)), Y(this, v, N(this, "grid")), Y(this, y, F(this, "")), Y(this, b, L(this, !1)), Y(this, x, z(this, /* @__PURE__ */ new Map())), Y(this, S, V(this, [])), Y(this, C, U(this, [])), Y(this, w, G(this, /* @__PURE__ */ new Map())), Y(this, T, q(this, /* @__PURE__ */ new Map())), Y(this, E, ae(this, !0)), Y(this, D, se(this, void 0)), Q(this, "actionMenuGeneration", 0), Q(this, "resourceGeneration", 0);
192
+ new (de = (x = /*#__PURE__*/ new WeakMap(), S = /*#__PURE__*/ new WeakMap(), C = /*#__PURE__*/ new WeakMap(), w = /*#__PURE__*/ new WeakMap(), T = /*#__PURE__*/ new WeakMap(), E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), M = /*#__PURE__*/ new WeakMap(), fe = (ne = _({ attribute: !1 }), ie = _({ attribute: !1 }), P = _({ attribute: !1 }), I = _(), R = _(), B = v(), H = v(), W = v(), K = v(), J = v(), se = v(), le = v(), "subject"), b = class extends l {
193
+ constructor(...t) {
194
+ super(...t), Y(this, x, (N(this), re(this, void 0))), Y(this, S, ae(this, null)), Y(this, C, F(this, void 0)), Y(this, w, L(this, "grid")), Y(this, T, z(this, "")), Y(this, E, V(this, /* @__PURE__ */ new Map())), Y(this, D, U(this, [])), Y(this, O, G(this, [])), Y(this, k, q(this, /* @__PURE__ */ new Map())), Y(this, A, oe(this, /* @__PURE__ */ new Map())), Y(this, j, ce(this, !0)), Y(this, M, ue(this, void 0)), Q(this, "resourceActionMenuLoads", /* @__PURE__ */ new Map()), Q(this, "resourceGeneration", 0), Q(this, "authGeneration", 0), Q(this, "updateWorkScheduled", !1), Q(this, "detailsQueue", o({ concurrency: 2 })), Q(this, "detailsObserver", void 0), Q(this, "authListenersAttached", !1), Q(this, "handleAuthChange", () => {
195
+ this.authGeneration++, e.clear(), this.detailsQueue.clear(), this.resourceAccess = /* @__PURE__ */ new Map(), this.memberLoad = /* @__PURE__ */ new Map(), this.resourceActionMenuLoads = /* @__PURE__ */ new Map(), this.requestUpdate();
196
+ });
193
197
  }
194
- get [le]() {
195
- return Z(h, this);
198
+ get [fe]() {
199
+ return Z(x, this);
196
200
  }
197
201
  set subject(e) {
198
- X(h, this, e);
202
+ X(x, this, e);
199
203
  }
200
204
  get resourceLogic() {
201
- return Z(g, this);
205
+ return Z(S, this);
202
206
  }
203
207
  set resourceLogic(e) {
204
- X(g, this, e);
208
+ X(S, this, e);
205
209
  }
206
210
  get browserContext() {
207
- return Z(_, this);
211
+ return Z(C, this);
208
212
  }
209
213
  set browserContext(e) {
210
- X(_, this, e);
214
+ X(C, this, e);
211
215
  }
212
216
  get view() {
213
- return Z(v, this);
217
+ return Z(w, this);
214
218
  }
215
219
  set view(e) {
216
- X(v, this, e);
220
+ X(w, this, e);
217
221
  }
218
222
  get searchQuery() {
219
- return Z(y, this);
223
+ return Z(T, this);
220
224
  }
221
225
  set searchQuery(e) {
222
- X(y, this, e);
223
- }
224
- get hideRootSpecialFolders() {
225
- return Z(b, this);
226
- }
227
- set hideRootSpecialFolders(e) {
228
- X(b, this, e);
226
+ X(T, this, e);
229
227
  }
230
228
  get resourceActionMenuItems() {
231
- return Z(x, this);
229
+ return Z(E, this);
232
230
  }
233
231
  set resourceActionMenuItems(e) {
234
- X(x, this, e);
232
+ X(E, this, e);
235
233
  }
236
234
  get resources() {
237
- return Z(S, this);
235
+ return Z(D, this);
238
236
  }
239
237
  set resources(e) {
240
- X(S, this, e);
238
+ X(D, this, e);
241
239
  }
242
240
  get optimisticResources() {
243
- return Z(C, this);
241
+ return Z(O, this);
244
242
  }
245
243
  set optimisticResources(e) {
246
- X(C, this, e);
244
+ X(O, this, e);
247
245
  }
248
246
  get resourceAccess() {
249
- return Z(w, this);
247
+ return Z(k, this);
250
248
  }
251
249
  set resourceAccess(e) {
252
- X(w, this, e);
250
+ X(k, this, e);
253
251
  }
254
252
  get memberLoad() {
255
- return Z(T, this);
253
+ return Z(A, this);
256
254
  }
257
255
  set memberLoad(e) {
258
- X(T, this, e);
256
+ X(A, this, e);
259
257
  }
260
258
  get loading() {
261
- return Z(E, this);
259
+ return Z(j, this);
262
260
  }
263
261
  set loading(e) {
264
- X(E, this, e);
262
+ X(j, this, e);
265
263
  }
266
264
  get loadError() {
267
- return Z(D, this);
265
+ return Z(M, this);
268
266
  }
269
267
  set loadError(e) {
270
- X(D, this, e);
268
+ X(M, this, e);
271
269
  }
272
270
  selectResource(e) {
273
271
  this.dispatchEvent(new CustomEvent("resource-selected", {
@@ -284,14 +282,9 @@ new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ =
284
282
  let t = this.resourceLogic;
285
283
  return t.getContainerMembers(e.subject).filter((e) => !t.isHiddenFile(e)).length;
286
284
  }
287
- isRootSpecialFolder(e) {
288
- if (!e.isContainer) return !1;
289
- let t = c.label(e.subject).toLowerCase();
290
- return t === "public" || t === "trash";
291
- }
292
285
  getResourcesFromStore() {
293
- let e = this.subject ? [...n(this.subject, this.resourceLogic).values()] : [], t = this.optimisticResources.filter((t) => !e.some((e) => e.id === t.id)), r = [...e, ...t];
294
- return this.hideRootSpecialFolders ? r.filter((e) => !this.isRootSpecialFolder(e)) : r;
286
+ let e = this.subject ? [...i(this.subject, this.resourceLogic).values()] : [], t = this.optimisticResources.filter((t) => !e.some((e) => e.id === t.id));
287
+ return [...e, ...t];
295
288
  }
296
289
  addOptimisticResource(e) {
297
290
  if (!this.resourceLogic || this.optimisticResources.some((t) => t.id === e.value)) return;
@@ -305,99 +298,222 @@ new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ =
305
298
  }
306
299
  get visibleResources() {
307
300
  let e = this.searchQuery.trim().toLowerCase();
308
- return e ? this.resources.filter((t) => c.label(t.subject).toLowerCase().includes(e)) : this.resources;
301
+ return e ? this.resources.filter((t) => f.label(t.subject).toLowerCase().includes(e)) : this.resources;
309
302
  }
310
303
  async loadResources() {
311
- let e = ++this.resourceGeneration, t = this.getResourcesFromStore();
312
- if (this.resources = t, this.loading = !1, this.loadError = void 0, this.memberLoad = new Map(t.filter((e) => e.isContainer).map((e) => [e.id, "loading"])), this.browserContext && Promise.all(t.filter((e) => e.isContainer).map(async (t) => {
313
- try {
314
- if (await this.browserContext?.session.store.fetcher.load(t.subject), e !== this.resourceGeneration) return;
315
- this.memberLoad = new Map(this.memberLoad).set(t.id, "loaded");
316
- } catch (n) {
317
- if (console.warn("Unable to load folder-pane container member count", n), e !== this.resourceGeneration) return;
318
- this.memberLoad = new Map(this.memberLoad).set(t.id, "error");
319
- }
320
- })), e === this.resourceGeneration) {
321
- this.resources = this.getResourcesFromStore();
322
- for (let t of this.resources) this.loadResourceAccess(t, e);
323
- this.loadResourceActionMenuItems(e);
304
+ ++this.resourceGeneration, this.resetResourceDetails(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.resourceActionMenuLoads = /* @__PURE__ */ new Map();
305
+ let e = this.getResourcesFromStore();
306
+ this.resources = e, this.loading = !1, this.loadError = void 0, this.resourceGeneration;
307
+ }
308
+ loadResourceDetails(e) {
309
+ let t = this.authGeneration, n = this.viewer;
310
+ e.isContainer ? this.loadContainerDetails(e, this.resourceGeneration, t, n) : this.loadResourceAccess(e, this.resourceGeneration, t, n);
311
+ }
312
+ isCurrentAccessRequest(e, t, n) {
313
+ return e === this.resourceGeneration && t === this.authGeneration && n === this.viewer;
314
+ }
315
+ async loadContainerDetails(e, t = this.resourceGeneration, n = this.authGeneration, r = this.viewer) {
316
+ if (!this.browserContext || !this.isCurrentAccessRequest(t, n, r)) return;
317
+ let i = !this.resourceAccess.has(e.id);
318
+ if (i && (this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
319
+ state: "unknown",
320
+ canManageAccess: !1
321
+ })), await this.loadMemberCount(e, t, n, r), !i || !this.isCurrentAccessRequest(t, n, r)) return;
322
+ let o = this.memberLoad.get(e.id), s = a(this.browserContext.session.store.fetcher.getHeader(e.subject, "wac-allow"));
323
+ s ? this.setResourceAccess(e, {
324
+ state: s.isPublic ? "public" : "private",
325
+ canManageAccess: s.canManageAccess
326
+ }) : o === "error" ? this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
327
+ state: "error",
328
+ canManageAccess: !1
329
+ }) : (this.resourceAccess = new Map(this.resourceAccess), this.resourceAccess.delete(e.id), await this.loadResourceAccess(e, t, n, r));
330
+ }
331
+ async loadMemberCount(e, t = this.resourceGeneration, n = this.authGeneration, r = this.viewer) {
332
+ if (!e.isContainer || this.memberLoad.has(e.id) || !this.browserContext) return;
333
+ let i = this.browserContext.session.store.fetcher;
334
+ this.memberLoad = new Map(this.memberLoad).set(e.id, "loading");
335
+ try {
336
+ if (await this.detailsQueue.run(() => i.load(e.subject)), !this.isCurrentAccessRequest(t, n, r)) return;
337
+ this.memberLoad = new Map(this.memberLoad).set(e.id, "loaded");
338
+ } catch (i) {
339
+ if (!this.isCurrentAccessRequest(t, n, r)) return;
340
+ s("Unable to load folder-pane container member count", i);
341
+ let a = i instanceof Error ? i.message : String(i), o = /parse|syntax|turtle|unexpected token/i.test(a) ? "parse-error" : "error";
342
+ this.memberLoad = new Map(this.memberLoad).set(e.id, o);
324
343
  }
325
344
  }
326
- async loadResourceAccess(e, n = this.resourceGeneration) {
327
- if (!this.resourceAccess.has(e.id) && this.browserContext) try {
328
- let r = await this.browserContext.session.logic.resource.fetchMetadata(e.subject);
329
- if (n !== this.resourceGeneration) return;
330
- let i = t(r.access);
331
- this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
332
- state: i,
333
- canManageAccess: r.access.canManageAccess
334
- });
345
+ get viewer() {
346
+ return m.currentUser?.()?.value;
347
+ }
348
+ setResourceAccess(t, n, r = this.authGeneration, i = this.viewer, a = this.resourceGeneration) {
349
+ this.isCurrentAccessRequest(a, r, i) && (this.resourceAccess = new Map(this.resourceAccess).set(t.id, n), e.set(i, t.subject.uri, n));
350
+ }
351
+ async loadResourceAccess(t, n = this.resourceGeneration, i = this.authGeneration, a = this.viewer) {
352
+ if (this.resourceAccess.has(t.id) || !this.browserContext || !this.isCurrentAccessRequest(n, i, a)) return;
353
+ let o = e.get(a, t.subject.uri);
354
+ if (o) {
355
+ this.resourceAccess = new Map(this.resourceAccess).set(t.id, o);
356
+ return;
357
+ }
358
+ let s = this.browserContext.session.logic.resource;
359
+ this.resourceAccess = new Map(this.resourceAccess).set(t.id, {
360
+ state: "unknown",
361
+ canManageAccess: !1
362
+ });
363
+ try {
364
+ let e = await this.detailsQueue.run(() => s.fetchMetadata(t.subject));
365
+ if (!this.isCurrentAccessRequest(n, i, a)) return;
366
+ this.setResourceAccess(t, {
367
+ state: r(e.access),
368
+ canManageAccess: e.access.canManageAccess
369
+ }, i, a, n);
335
370
  } catch {
336
- n === this.resourceGeneration && (this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
371
+ this.isCurrentAccessRequest(n, i, a) && (this.resourceAccess = new Map(this.resourceAccess).set(t.id, {
337
372
  state: "error",
338
373
  canManageAccess: !1
339
374
  }));
340
375
  }
341
376
  }
342
- renderAccessIndicator(e) {
343
- let t = this.resourceAccess.get(e.id);
344
- return t ? t.state === "public" ? l`<icon-lucide-globe class="resource-access-indicator resource-access-indicator--public" role="img" aria-label="Public" title="Public"></icon-lucide-globe>` : t.state === "private" ? l`<icon-lucide-lock-keyhole class="resource-access-indicator resource-access-indicator--private" role="img" aria-label="Private" title="Private"></icon-lucide-lock-keyhole>` : u : u;
377
+ resetResourceDetails() {
378
+ this.detailsQueue.clear(), this.detailsObserver?.disconnect(), this.resourceAccess = /* @__PURE__ */ new Map(), this.memberLoad = /* @__PURE__ */ new Map();
345
379
  }
346
- async refresh(e = !0) {
347
- if (this.resourceGeneration++, this.resourceAccess = /* @__PURE__ */ new Map(), this.memberLoad = /* @__PURE__ */ new Map(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.optimisticResources = [], e && this.subject && this.browserContext) try {
380
+ observeResourceItems() {
381
+ let e = Array.from(this.renderRoot.querySelectorAll("[data-resource-id]")), t = new Map(this.resources.map((e) => [e.id, e])), n = e.filter((e) => {
382
+ let n = t.get(e.dataset.resourceId);
383
+ return n && (n.isContainer && !this.memberLoad.has(n.id) || !this.resourceAccess.has(n.id));
384
+ });
385
+ if (n.length !== 0) {
386
+ if (typeof IntersectionObserver > "u") for (let e of n) this.loadResourceDetails(t.get(e.dataset.resourceId));
387
+ else {
388
+ this.detailsObserver ??= new IntersectionObserver((e) => {
389
+ for (let t of e) {
390
+ if (!t.isIntersecting) continue;
391
+ let e = t.target;
392
+ this.detailsObserver?.unobserve(e);
393
+ let n = this.resources.find((t) => t.id === e.dataset.resourceId);
394
+ n && this.loadResourceDetails(n);
395
+ }
396
+ }, { rootMargin: "200px" });
397
+ for (let e of n) this.detailsObserver.observe(e);
398
+ }
399
+ }
400
+ }
401
+ connectedCallback() {
402
+ super.connectedCallback(), this.authListenersAttached ||= (p.events.on("login", this.handleAuthChange), p.events.on("logout", this.handleAuthChange), !0), this.hasUpdated && this.requestUpdate();
403
+ }
404
+ disconnectedCallback() {
405
+ this.authListenersAttached &&= (p.events.off("login", this.handleAuthChange), p.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback(), this.resourceGeneration++, this.resourceActionMenuLoads = /* @__PURE__ */ new Map(), this.resetResourceDetails();
406
+ }
407
+ async refresh(t = !0) {
408
+ if (e.clear(), this.resourceGeneration++, this.resetResourceDetails(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.resourceActionMenuLoads = /* @__PURE__ */ new Map(), this.resourceAccess = /* @__PURE__ */ new Map(), this.optimisticResources = [], t && this.subject && this.browserContext) try {
348
409
  await this.browserContext.session.store.fetcher.load(this.subject, {
349
410
  force: !0,
350
411
  clearPreviousData: !0
351
412
  });
352
413
  } catch (e) {
353
- await this.loadResources(), this.loadError = "The folder could not be refreshed. Showing the last known listing.", console.warn("Unable to refresh folder-pane container", e);
414
+ await this.loadResources(), this.loadError = "The folder could not be refreshed. Showing the last known listing.", s("Unable to refresh folder-pane container", e);
354
415
  return;
355
416
  }
356
417
  await this.loadResources();
357
418
  }
358
- async loadResourceActionMenuItems(e = this.resourceGeneration) {
359
- let t = ++this.actionMenuGeneration;
360
- if (!this.browserContext) {
361
- this.resourceActionMenuItems = /* @__PURE__ */ new Map();
362
- return;
363
- }
364
- let n = await Promise.all(this.resources.map(async (e) => {
365
- let t = await s(e.subject, this.browserContext, {
366
- excludedPaneNames: ["sharing"],
367
- fallbackPaneName: "internal"
368
- }), n = await Promise.all(t.map(async (t) => {
369
- let n = t.label(e.subject, this.browserContext) || t.name, r = t.icon;
370
- return {
371
- label: n,
372
- icon: typeof r == "function" ? await r(e.subject, this.browserContext) : r,
373
- action: () => {
374
- this.dispatchEvent(new CustomEvent("resource-open-pane", {
375
- detail: {
376
- resource: e.subject,
377
- paneName: t.name
378
- },
379
- bubbles: !0,
380
- composed: !0
381
- }));
382
- }
383
- };
384
- }));
385
- return [e.id, n];
419
+ updated(e) {
420
+ (e.has("subject") || e.has("resourceLogic") || e.has("browserContext")) && !this.updateWorkScheduled ? (this.updateWorkScheduled = !0, queueMicrotask(() => {
421
+ this.updateWorkScheduled = !1, this.isConnected && (this.resourceGeneration++, this.resetResourceDetails(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.loadResources(), this.observeResourceItems());
422
+ })) : this.observeResourceItems();
423
+ }
424
+ openAccessControls(t) {
425
+ e.delete(t.subject.uri), this.dispatchEvent(new CustomEvent("resource-open-pane", {
426
+ detail: {
427
+ resource: t.subject,
428
+ paneName: "sharing"
429
+ },
430
+ bubbles: !0,
431
+ composed: !0
386
432
  }));
387
- e === this.resourceGeneration && t === this.actionMenuGeneration && (this.resourceActionMenuItems = new Map(n));
388
433
  }
389
- updated(e) {
390
- (e.has("subject") || e.has("resourceLogic") || e.has("browserContext") || e.has("hideRootSpecialFolders")) && (this.resourceAccess = /* @__PURE__ */ new Map(), this.memberLoad = /* @__PURE__ */ new Map(), this.resourceActionMenuItems = /* @__PURE__ */ new Map(), this.loadResources());
434
+ setResourceActionMenuItems(e, t) {
435
+ this.resourceActionMenuItems = new Map(this.resourceActionMenuItems).set(e.id, t);
391
436
  }
392
- openAccessControls(e) {
393
- this.dispatchEvent(new CustomEvent(i, {
394
- detail: { subjectUri: e.subject.uri },
437
+ renderAccessIndicator(e) {
438
+ let t = this.resourceAccess.get(e.id);
439
+ return t?.state === "public" ? h`<icon-lucide-globe class="resource-access-indicator resource-access-indicator--public" role="img" aria-label="Public" title="Public"></icon-lucide-globe>` : t?.state === "private" ? h`<icon-lucide-lock-keyhole class="resource-access-indicator resource-access-indicator--private" role="img" aria-label="Private" title="Private"></icon-lucide-lock-keyhole>` : g;
440
+ }
441
+ openResourcePane(e, t) {
442
+ this.dispatchEvent(new CustomEvent("resource-open-pane", {
443
+ detail: {
444
+ resource: e.subject,
445
+ paneName: t
446
+ },
395
447
  bubbles: !0,
396
448
  composed: !0
397
449
  }));
398
450
  }
451
+ async getContentsMenuItem(e) {
452
+ if (!e.isContainer || !this.browserContext) return;
453
+ let t = this.browserContext.session.paneRegistry.byName("folder");
454
+ if (!t) return;
455
+ let [n] = await d({
456
+ subject: e.subject,
457
+ context: this.browserContext,
458
+ panes: [t],
459
+ openPane: (t, n, r) => {
460
+ r.stopPropagation(), this.openResourcePane(e, n);
461
+ }
462
+ }), r = n?.action ?? ((n) => {
463
+ n.stopPropagation(), this.openResourcePane(e, t.name);
464
+ });
465
+ return {
466
+ ...n,
467
+ key: t.name,
468
+ label: "Contents",
469
+ action: r
470
+ };
471
+ }
472
+ async loadResourceActionMenuItems(e) {
473
+ if (!this.browserContext) return;
474
+ let n = this.authGeneration, i = this.viewer, a = this.resourceActionMenuLoads.get(e.id);
475
+ if (a === "loading" || a === "loaded") return;
476
+ let o = this.resourceGeneration;
477
+ if (!this.isCurrentAccessRequest(o, n, i)) return;
478
+ this.resourceActionMenuLoads.set(e.id, "loading");
479
+ let c = this.browserContext.session.logic.resource.fetchMetadata(e.subject).then((e) => e.access).catch((e) => {
480
+ s("Unable to load folder-pane access metadata for resource actions", e);
481
+ }), l = await this.getContentsMenuItem(e);
482
+ if (this.isCurrentAccessRequest(o, n, i)) {
483
+ l && this.setResourceActionMenuItems(e, [l]);
484
+ try {
485
+ let r = await t({
486
+ resource: e.subject,
487
+ isContainer: e.isContainer,
488
+ context: this.browserContext,
489
+ resourceLogic: this.resourceLogic,
490
+ openPane: (t, n) => {
491
+ n.stopPropagation(), this.openResourcePane(e, t);
492
+ },
493
+ isCurrent: () => this.isCurrentAccessRequest(o, n, i)
494
+ });
495
+ if (!r) return;
496
+ l && r.splice(1, 0, l), this.setResourceActionMenuItems(e, r), this.resourceActionMenuLoads.set(e.id, "loaded");
497
+ } catch (t) {
498
+ if (!this.isCurrentAccessRequest(o, n, i)) return;
499
+ this.resourceActionMenuLoads.set(e.id, "error"), s("Unable to load resource panes for folder-pane action menu", t);
500
+ } finally {
501
+ let t = await c;
502
+ this.isCurrentAccessRequest(o, n, i) && t ? this.setResourceAccess(e, {
503
+ state: r(t),
504
+ canManageAccess: t.canManageAccess
505
+ }, n, i, o) : this.isCurrentAccessRequest(o, n, i) && (this.resourceAccess = new Map(this.resourceAccess).set(e.id, {
506
+ state: "error",
507
+ canManageAccess: !1
508
+ }));
509
+ }
510
+ }
511
+ }
512
+ handleResourceActionsMenuClick(e) {
513
+ this.loadResourceActionMenuItems(e);
514
+ }
399
515
  renderResourceActionsMenu(e, t) {
400
- return l`
516
+ return h`
401
517
  <div
402
518
  class="resource-actions-menu resource-actions-menu--${t}"
403
519
  @click=${(e) => e.stopPropagation()}
@@ -409,39 +525,43 @@ new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ =
409
525
  .showAccessInMenu=${!0}
410
526
  .canManageAccess=${this.resourceAccess.get(e.id)?.canManageAccess === !0}
411
527
  .menuItems=${this.resourceActionMenuItems.get(e.id) || []}
528
+ @click=${() => this.handleResourceActionsMenuClick(e)}
412
529
  ></solid-ui-resource-actions-menu>
413
530
  </div>
414
531
  `;
415
532
  }
416
- renderResourceItem(t) {
417
- let n = c.label(t.subject), r = t.isContainer && this.memberLoad.get(t.id) === "loaded" ? this.getVisibleMemberCount(t) : -1;
418
- return l`
533
+ renderResourceItem(e) {
534
+ let t = f.label(e.subject), r = e.isContainer && this.memberLoad.get(e.id) === "loaded" ? this.getVisibleMemberCount(e) : -1;
535
+ return h`
419
536
  <li
420
537
  class="resource-list-item"
538
+ data-resource-id=${e.id}
421
539
  notSelectable="false"
422
540
  aria-selected="false"
423
- aria-label=${n}
424
- about=${t.subject.toNT()}
541
+ aria-label=${t}
542
+ about=${e.subject.toNT()}
425
543
  role="option"
426
544
  tabindex="0"
427
- .subject=${t.subject}
428
- @click=${() => this.selectResource(t)}
429
- @keydown=${(e) => this.handleResourceKeyDown(e, t)}
545
+ .subject=${e.subject}
546
+ @click=${() => this.selectResource(e)}
547
+ @keydown=${(t) => this.handleResourceKeyDown(t, e)}
430
548
  >
431
549
  <span class="resource-list-main">
432
- <span class=${t.isContainer ? "resource-list-icon resource-list-icon--container" : "resource-list-icon"} aria-hidden="true">
433
- ${t.isContainer ? l`<icon-lucide-folder></icon-lucide-folder>` : l`<icon-lucide-file></icon-lucide-file>`}
550
+ <span class=${e.isContainer ? "resource-list-icon resource-list-icon--container" : "resource-list-icon"} aria-hidden="true">
551
+ ${e.isContainer ? h`<icon-lucide-folder></icon-lucide-folder>` : h`<icon-lucide-file></icon-lucide-file>`}
552
+ </span>
553
+ <span class="resource-list-label">${t}</span>
554
+ <span class="resource-list-meta">
555
+ ${r >= 0 ? h`<span class="container-member-count">${n(r)}</span>` : g}
556
+ ${this.renderAccessIndicator(e)}
434
557
  </span>
435
- <span class="resource-list-label">${n}</span>
436
- ${r >= 0 ? l`<span class="container-member-count">${e(r)}</span>` : u}
437
- ${this.renderAccessIndicator(t)}
438
558
  </span>
439
- ${this.renderResourceActionsMenu(t, "list")}
559
+ ${this.renderResourceActionsMenu(e, "list")}
440
560
  </li>
441
561
  `;
442
562
  }
443
563
  renderListView(e) {
444
- return l`
564
+ return h`
445
565
  <ul class="resource-list" role="listbox" aria-label="Container resources">
446
566
  <li class="resource-list-header" role="presentation" aria-hidden="true">
447
567
  <span>Name</span>
@@ -451,46 +571,47 @@ new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ =
451
571
  </ul>
452
572
  `;
453
573
  }
454
- renderGridItem(t) {
455
- let n = c.label(t.subject), r = t.isContainer && this.memberLoad.get(t.id) === "loaded" ? this.getVisibleMemberCount(t) : -1;
456
- return l`
574
+ renderGridItem(e) {
575
+ let t = f.label(e.subject), r = e.isContainer && this.memberLoad.get(e.id) === "loaded" ? this.getVisibleMemberCount(e) : -1;
576
+ return h`
457
577
  <li
458
578
  class="resource-grid-item"
579
+ data-resource-id=${e.id}
459
580
  notSelectable="false"
460
581
  aria-selected="false"
461
- aria-label=${n}
462
- about=${t.subject.toNT()}
582
+ aria-label=${t}
583
+ about=${e.subject.toNT()}
463
584
  role="option"
464
585
  tabindex="0"
465
- .subject=${t.subject}
466
- @click=${() => this.selectResource(t)}
467
- @keydown=${(e) => this.handleResourceKeyDown(e, t)}
586
+ .subject=${e.subject}
587
+ @click=${() => this.selectResource(e)}
588
+ @keydown=${(t) => this.handleResourceKeyDown(t, e)}
468
589
  >
469
- <span class=${t.isContainer ? "resource-grid-icon resource-grid-icon--container" : "resource-grid-icon"} aria-hidden="true">
470
- ${t.isContainer ? l`<icon-lucide-folder></icon-lucide-folder>` : l`<icon-lucide-file></icon-lucide-file>`}
590
+ <span class=${e.isContainer ? "resource-grid-icon resource-grid-icon--container" : "resource-grid-icon"} aria-hidden="true">
591
+ ${e.isContainer ? h`<icon-lucide-folder></icon-lucide-folder>` : h`<icon-lucide-file></icon-lucide-file>`}
471
592
  </span>
472
- ${t.isContainer ? l`<span class="resource-grid-label resource-grid-label--container">${n}</span>` : u}
593
+ ${e.isContainer ? h`<span class="resource-grid-label resource-grid-label--container">${t}</span>` : g}
473
594
  <div class="resource-grid-item-footer">
474
- ${t.isContainer && r >= 0 ? l`<span class="container-member-count">${e(r)}</span>` : t.isContainer ? u : l`<span class="resource-grid-label">${n}</span>`}
475
- ${this.renderAccessIndicator(t)}
595
+ ${e.isContainer ? r < 0 ? g : h`<span class="container-member-count">${n(r)}</span>` : h`<span class="resource-grid-label">${t}</span>`}
596
+ ${this.renderAccessIndicator(e)}
476
597
  </div>
477
- ${this.renderResourceActionsMenu(t, "grid")}
598
+ ${this.renderResourceActionsMenu(e, "grid")}
478
599
  </li>
479
600
  `;
480
601
  }
481
602
  renderGridView(e) {
482
- return l`
603
+ return h`
483
604
  <ul class="resource-grid" role="listbox" aria-label="Container resources">
484
605
  ${e.map((e) => this.renderGridItem(e))}
485
606
  </ul>
486
607
  `;
487
608
  }
488
609
  renderEmptyContainer() {
489
- return this.searchQuery.trim() ? l`
610
+ return this.searchQuery.trim() ? h`
490
611
  <div class="folder-pane-container-empty-message" role="status">
491
612
  <h2 class="folder-pane-container-empty-message-title">No resources match this search.</h2>
492
613
  </div>
493
- ` : l`
614
+ ` : h`
494
615
  <div class="folder-pane-container-empty-message" role="status">
495
616
  <div class="folder-pane-container-empty-message-icon" aria-hidden="true">
496
617
  <icon-lucide-file-box></icon-lucide-file-box>
@@ -502,84 +623,79 @@ new (ce = (h = /*#__PURE__*/ new WeakMap(), g = /*#__PURE__*/ new WeakMap(), _ =
502
623
  }
503
624
  render() {
504
625
  let e = this.visibleResources;
505
- return l`
626
+ return h`
506
627
  <div class="folder-pane-container-content">
507
- ${this.loadError ? l`<div class="folder-pane-container-error" role="alert">${this.loadError}</div>` : u}
508
- ${this.loading ? l`<div class="folder-pane-container-loading" role="status">Loading resources…</div>` : e.length > 0 ? this.view === "grid" ? this.renderGridView(e) : this.renderListView(e) : this.renderEmptyContainer()}
628
+ ${this.loadError ? h`<div class="folder-pane-container-error" role="alert">${this.loadError}</div>` : g}
629
+ ${this.loading ? h`<div class="folder-pane-container-loading" role="status">Loading resources…</div>` : e.length > 0 ? this.view === "grid" ? this.renderGridView(e) : this.renderListView(e) : this.renderEmptyContainer()}
509
630
  </div>
510
631
  `;
511
632
  }
512
- }, {e: [M, te, re, N, F, L, z, V, U, G, q, ae, se, O], c: [$, k]} = fe(m, [
633
+ }, {e: [re, ae, F, L, z, V, U, G, q, oe, ce, ue, N], c: [$, ee]} = he(b, [
513
634
  [
514
- j,
635
+ ne,
515
636
  1,
516
637
  "subject"
517
638
  ],
518
639
  [
519
- ee,
640
+ ie,
520
641
  1,
521
642
  "resourceLogic"
522
643
  ],
523
644
  [
524
- ne,
645
+ P,
525
646
  1,
526
647
  "browserContext"
527
648
  ],
528
649
  [
529
- ie,
650
+ I,
530
651
  1,
531
652
  "view"
532
653
  ],
533
654
  [
534
- P,
655
+ R,
535
656
  1,
536
657
  "searchQuery"
537
658
  ],
538
659
  [
539
- I,
540
- 1,
541
- "hideRootSpecialFolders"
542
- ],
543
- [
544
- R,
660
+ B,
545
661
  1,
546
662
  "resourceActionMenuItems"
547
663
  ],
548
664
  [
549
- B,
665
+ H,
550
666
  1,
551
667
  "resources"
552
668
  ],
553
669
  [
554
- H,
670
+ W,
555
671
  1,
556
672
  "optimisticResources"
557
673
  ],
558
674
  [
559
- W,
675
+ K,
560
676
  1,
561
677
  "resourceAccess"
562
678
  ],
563
679
  [
564
- K,
680
+ J,
565
681
  1,
566
682
  "memberLoad"
567
683
  ],
568
684
  [
569
- J,
685
+ se,
570
686
  1,
571
687
  "loading"
572
688
  ],
573
689
  [
574
- oe,
690
+ le,
575
691
  1,
576
692
  "loadError"
577
693
  ]
578
- ], A, 0, void 0, a), m), p = class extends _e {
694
+ ], te, 0, void 0, l), b), y = class extends be {
579
695
  constructor() {
580
- super($), Q(this, "styles", r), k();
696
+ super($), Q(this, "styles", c), ee();
581
697
  }
582
- }, Q(p, ce, void 0), p)();
698
+ }, Q(y, de, void 0), y)();
583
699
  export { $ as default };
584
700
 
585
701
  //# sourceMappingURL=FolderPaneContainer.esm.js.map