folder-pane 4.0.1-1 → 4.1.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 (117) hide show
  1. package/README.md +4 -0
  2. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/chevron-left.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/{trash-2.esm.js → chevron-left.esm.js} +4 -4
  5. package/dist/_virtual/~icons/lucide/chevron-left.esm.js.map +1 -0
  6. package/dist/accessCache.cjs.js +2 -0
  7. package/dist/accessCache.cjs.js.map +1 -0
  8. package/dist/accessCache.d.ts +37 -0
  9. package/dist/accessCache.d.ts.map +1 -0
  10. package/dist/accessCache.esm.js +34 -0
  11. package/dist/accessCache.esm.js.map +1 -0
  12. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +50 -38
  13. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -1
  14. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +29 -5
  15. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -1
  16. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +321 -194
  17. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -1
  18. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +1 -1
  19. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -1
  20. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +1 -1
  21. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -1
  22. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js.map +1 -1
  23. package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +1 -1
  24. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +1 -1
  25. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -1
  26. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +1 -1
  27. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -1
  28. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js +2 -0
  29. package/dist/components/folder-pane-provider/FolderPaneProvider.cjs.js.map +1 -0
  30. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts +16 -0
  31. package/dist/components/folder-pane-provider/FolderPaneProvider.d.ts.map +1 -0
  32. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js +293 -0
  33. package/dist/components/folder-pane-provider/FolderPaneProvider.esm.js.map +1 -0
  34. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js +2 -0
  35. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.cjs.js.map +1 -0
  36. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js +6 -0
  37. package/dist/components/folder-pane-provider/FolderPaneProvider.styles.esm.js.map +1 -0
  38. package/dist/components/folder-pane-provider/index.cjs.js +1 -0
  39. package/dist/components/folder-pane-provider/index.d.ts +2 -0
  40. package/dist/components/folder-pane-provider/index.d.ts.map +1 -0
  41. package/dist/components/folder-pane-provider/index.esm.js +1 -0
  42. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +23 -23
  43. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -1
  44. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +17 -2
  45. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -1
  46. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +249 -113
  47. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -1
  48. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +1 -1
  49. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -1
  50. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +1 -1
  51. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -1
  52. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js.map +1 -1
  53. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -1
  54. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -1
  55. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -1
  56. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +35 -21
  57. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -1
  58. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +14 -2
  59. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -1
  60. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +201 -88
  61. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -1
  62. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +1 -1
  63. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -1
  64. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +1 -1
  65. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -1
  66. package/dist/components/folder-pane-view/FolderPaneView.cjs.js +90 -29
  67. package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -1
  68. package/dist/components/folder-pane-view/FolderPaneView.d.ts +41 -5
  69. package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -1
  70. package/dist/components/folder-pane-view/FolderPaneView.esm.js +573 -266
  71. package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -1
  72. package/dist/components/folder-pane-view/resourceLoad.cjs.js +2 -0
  73. package/dist/components/folder-pane-view/resourceLoad.cjs.js.map +1 -0
  74. package/dist/components/folder-pane-view/resourceLoad.d.ts +8 -0
  75. package/dist/components/folder-pane-view/resourceLoad.d.ts.map +1 -0
  76. package/dist/components/folder-pane-view/resourceLoad.esm.js +7 -0
  77. package/dist/components/folder-pane-view/resourceLoad.esm.js.map +1 -0
  78. package/dist/debug.cjs.js +2 -0
  79. package/dist/debug.cjs.js.map +1 -0
  80. package/dist/debug.d.ts +5 -0
  81. package/dist/debug.d.ts.map +1 -0
  82. package/dist/debug.esm.js +10 -0
  83. package/dist/debug.esm.js.map +1 -0
  84. package/dist/folderPane.cjs.js +2 -2
  85. package/dist/folderPane.cjs.js.map +1 -1
  86. package/dist/folderPane.d.ts +2 -2
  87. package/dist/folderPane.d.ts.map +1 -1
  88. package/dist/folderPane.esm.js +13 -10
  89. package/dist/folderPane.esm.js.map +1 -1
  90. package/dist/helpers.cjs.js +1 -1
  91. package/dist/helpers.cjs.js.map +1 -1
  92. package/dist/helpers.d.ts +13 -2
  93. package/dist/helpers.d.ts.map +1 -1
  94. package/dist/helpers.esm.js +34 -14
  95. package/dist/helpers.esm.js.map +1 -1
  96. package/dist/primitives/context.cjs.js +2 -0
  97. package/dist/primitives/context.cjs.js.map +1 -0
  98. package/dist/primitives/context.d.ts +14 -0
  99. package/dist/primitives/context.d.ts.map +1 -0
  100. package/dist/primitives/context.esm.js +6 -0
  101. package/dist/primitives/context.esm.js.map +1 -0
  102. package/dist/requestQueue.cjs.js +1 -1
  103. package/dist/requestQueue.cjs.js.map +1 -1
  104. package/dist/requestQueue.d.ts +10 -2
  105. package/dist/requestQueue.d.ts.map +1 -1
  106. package/dist/requestQueue.esm.js +32 -22
  107. package/dist/requestQueue.esm.js.map +1 -1
  108. package/dist/resourceActionItems.cjs.js +2 -0
  109. package/dist/resourceActionItems.cjs.js.map +1 -0
  110. package/dist/resourceActionItems.d.ts +19 -0
  111. package/dist/resourceActionItems.d.ts.map +1 -0
  112. package/dist/resourceActionItems.esm.js +42 -0
  113. package/dist/resourceActionItems.esm.js.map +1 -0
  114. package/package.json +12 -8
  115. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
  116. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
  117. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
@@ -1,46 +1,51 @@
1
- import { getIndexedApplicationSubject as e, getIndexedContainer as t, getPaneLabel as n, isAccessDeniedError as r, isContainerResource as i, isJavaScriptFile as a } from "../../helpers.esm.js";
1
+ import { resourceAccessCache as e } from "../../accessCache.esm.js";
2
2
  import "../folder-pane-container/index.esm.js";
3
3
  import "../folder-pane-sidebar/index.esm.js";
4
4
  import "../folder-pane-content/index.esm.js";
5
5
  import "../folder-pane-storage-header/index.esm.js";
6
- import { invalidateRenderRequest as o, isCurrentRenderRequest as s } from "./renderRequest.esm.js";
7
- import { invalidCreationNameMessage as c, isSafeCreationName as l } from "../../creationSafety.esm.js";
8
- import u from "../folder-pane-storage-header/FolderPaneCreateDialog.esm.js";
9
- import { PaneMintError as d, mintPaneInstance as f, setMintStatus as p } from "../../mintPaneInstance.esm.js";
10
- import { FILE_EXPLORER_BACK_EVENT as m, FILE_EXPLORER_OPEN_PANE_EVENT as h, WebComponent as g, aclControl as _, composeExplorer as v, customElement as y, getRelevantPanes as b, isExplorerEvent as x, log as S, ns as C, showDialog as w, widgets as T } from "solid-ui";
11
- import { authSession as E, authn as D } from "solid-logic";
12
- import { html as O, nothing as k } from "lit";
13
- import { property as A, query as j, state as M } from "lit/decorators.js";
6
+ import "../../_virtual/~icons/lucide/chevron-left.esm.js";
7
+ import { getIndexedApplicationSubject as t, getIndexedContainer as n, getPaneLabel as r, isAccessDeniedError as i, isContainerResource as a, isJavaScriptFile as o } from "../../helpers.esm.js";
8
+ import { invalidateRenderRequest as s, isCurrentRenderRequest as c } from "./renderRequest.esm.js";
9
+ import l from "../folder-pane-storage-header/FolderPaneCreateDialog.esm.js";
10
+ import { invalidCreationNameMessage as u, isSafeCreationName as d } from "../../creationSafety.esm.js";
11
+ import { PaneMintError as f, mintPaneInstance as p, setMintStatus as m } from "../../mintPaneInstance.esm.js";
12
+ import { error as h, warn as g } from "../../debug.esm.js";
13
+ import { clearFailedResource as _ } from "./resourceLoad.esm.js";
14
+ import { FILE_EXPLORER_BACK_EVENT as v, FILE_EXPLORER_OPEN_PANE_EVENT as y, WebComponent as b, aclControl as x, composeExplorer as S, customElement as C, getPreferredPane as w, getRelevantPanes as T, isExplorerEvent as E, log as D, ns as O, preparePaneMenuItems as k, showDialog as A } from "solid-ui";
15
+ import { authSession as j, authn as M } from "solid-logic";
16
+ import { html as N, nothing as ee } from "lit";
17
+ import { property as P, query as F, state as I } from "lit/decorators.js";
18
+ import "solid-ui/components/button";
14
19
  import "solid-ui/components/file-explorer-provider";
15
20
  import "solid-ui/components/error-state";
16
21
  import "solid-ui/components/file-explorer-header";
17
22
  // src/components/folder-pane-view/FolderPaneView.ts
18
- var ee, te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge, _e, N, P, F, I, ve, ye, be, xe, Se, Ce, L;
19
- function R(e, t, n) {
20
- return (t = De(t)) in e ? Object.defineProperty(e, t, {
23
+ var te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge, _e, ve, ye, be, xe, Se, Ce, we, Te, Ee, De, Oe, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze;
24
+ function L(e, t, n) {
25
+ return (t = Ue(t)) in e ? Object.defineProperty(e, t, {
21
26
  value: n,
22
27
  enumerable: !0,
23
28
  configurable: !0,
24
29
  writable: !0
25
30
  }) : e[t] = n, e;
26
31
  }
27
- function z(e, t, n) {
28
- we(e, t), t.set(e, n);
32
+ function R(e, t, n) {
33
+ Be(e, t), t.set(e, n);
29
34
  }
30
- function we(e, t) {
35
+ function Be(e, t) {
31
36
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
32
37
  }
33
- function B(e, t, n) {
34
- return e.set(Te(e, t), n), n;
38
+ function z(e, t, n) {
39
+ return e.set(Ve(e, t), n), n;
35
40
  }
36
- function V(e, t) {
37
- return e.get(Te(e, t));
41
+ function B(e, t) {
42
+ return e.get(Ve(e, t));
38
43
  }
39
- function Te(e, t, n) {
44
+ function Ve(e, t, n) {
40
45
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
41
46
  throw TypeError("Private element is not present on this object");
42
47
  }
43
- function Ee(e, t, n, r, i, a) {
48
+ function He(e, t, n, r, i, a) {
44
49
  function o(e, t, n) {
45
50
  return function(r, i) {
46
51
  return n && n(r), e[t].call(r, i);
@@ -63,13 +68,13 @@ function Ee(e, t, n, r, i, a) {
63
68
  n || Array.isArray(_) || (_ = [_]);
64
69
  var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
65
70
  d ? (f || p ? b = {
66
- get: ke(function() {
71
+ get: Ge(function() {
67
72
  return v(this);
68
73
  }, r, "get"),
69
74
  set: function(e) {
70
75
  t[4](this, e);
71
76
  }
72
- } : b[S] = v, f || ke(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
77
+ } : b[S] = v, f || Ge(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
73
78
  }
74
79
  for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
75
80
  var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
@@ -129,7 +134,7 @@ function Ee(e, t, n, r, i, a) {
129
134
  if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
130
135
  var f = Object.create(d ?? null), p = function(e, t, n, r) {
131
136
  var i, a, o = [], c = function(t) {
132
- return Ae(t) === e;
137
+ return Ke(t) === e;
133
138
  }, u = /* @__PURE__ */ new Map();
134
139
  function d(e) {
135
140
  e && o.push(s.bind(null, e));
@@ -143,7 +148,7 @@ function Ee(e, t, n, r, i, a) {
143
148
  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);
144
149
  u.set(b, !(m > 2) || m);
145
150
  }
146
- l(v ? e : e.prototype, p, _, g ? "#" + h : De(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
151
+ l(v ? e : e.prototype, p, _, g ? "#" + h : Ue(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
147
152
  }
148
153
  }
149
154
  return d(i), d(a), o;
@@ -156,11 +161,11 @@ function Ee(e, t, n, r, i, a) {
156
161
  }
157
162
  };
158
163
  }
159
- function De(e) {
160
- var t = Oe(e, "string");
164
+ function Ue(e) {
165
+ var t = We(e, "string");
161
166
  return typeof t == "symbol" ? t : t + "";
162
167
  }
163
- function Oe(e, t) {
168
+ function We(e, t) {
164
169
  if (typeof e != "object" || !e) return e;
165
170
  var n;
166
171
  if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
@@ -170,7 +175,7 @@ function Oe(e, t) {
170
175
  }
171
176
  return (t === "string" ? String : Number)(e);
172
177
  }
173
- function ke(e, t, n) {
178
+ function Ge(e, t, n) {
174
179
  typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
175
180
  try {
176
181
  Object.defineProperty(e, "name", {
@@ -180,207 +185,358 @@ function ke(e, t, n) {
180
185
  } catch {}
181
186
  return e;
182
187
  }
183
- function Ae(e) {
188
+ function Ke(e) {
184
189
  if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
185
190
  return e;
186
191
  }
187
- re = [y("folder-pane-view")];
188
- var je, H = /*#__PURE__*/ new WeakMap(), U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), X = /*#__PURE__*/ new WeakMap(), Z = /*#__PURE__*/ new WeakMap(), Q = /*#__PURE__*/ new WeakMap(), $ = /*#__PURE__*/ new WeakMap();
189
- L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
192
+ function V(e, t) {
193
+ if (!Number.isFinite(t) || t <= 320) return 256;
194
+ let n = t - 320;
195
+ return n < 180 ? 256 : Math.min(480, n, Math.max(180, Number.isFinite(e) ? e : 256));
196
+ }
197
+ ie = [C("folder-pane-view")];
198
+ var qe, H = /*#__PURE__*/ new WeakMap(), U = /*#__PURE__*/ new WeakMap(), W = /*#__PURE__*/ new WeakMap(), G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), Y = /*#__PURE__*/ new WeakMap(), X = /*#__PURE__*/ new WeakMap(), Z = /*#__PURE__*/ new WeakMap(), Q = /*#__PURE__*/ new WeakMap(), Je = /*#__PURE__*/ new WeakMap(), Ye = /*#__PURE__*/ new WeakMap(), Xe = /*#__PURE__*/ new WeakMap(), Ze = /*#__PURE__*/ new WeakMap(), Qe = /*#__PURE__*/ new WeakMap(), $ = /*#__PURE__*/ new WeakMap();
199
+ ze = (ae = P({ attribute: !1 }), se = P({ attribute: !1 }), le = P({
190
200
  type: Boolean,
191
201
  attribute: "full-view"
192
- }), ue = A({
193
- type: Boolean,
194
- attribute: "hide-storage-header"
195
- }), fe = M(), me = M(), ge = M(), N = M(), F = j("folder-pane-content"), ve = j(".folder-pane-full-view"), be = j("folder-pane-sidebar"), Se = j(".folder-pane-status"), "browserContext"), ee = class extends g {
196
- constructor(...e) {
197
- super(...e), z(this, H, (te(this), ae(this, void 0))), z(this, U, se(this, void 0)), z(this, W, le(this, !1)), z(this, G, de(this, !1)), z(this, K, pe(this, void 0)), z(this, q, he(this, "grid")), z(this, J, _e(this, "")), z(this, Y, P(this, void 0)), R(this, "initialLoadGeneration", 0), R(this, "renderGeneration", 0), R(this, "creationInFlight", !1), R(this, "authListenersAttached", !1), R(this, "dropProtectionAttached", !1), z(this, X, I(this, null)), z(this, Z, ye(this, null)), z(this, Q, xe(this, null)), z(this, $, Ce(this, null)), R(this, "handleAuthChange", () => {
198
- this.requestUpdate();
199
- }), R(this, "handleCreatePane", async (e) => {
200
- if (e.stopPropagation(), this.creationInFlight || !D.currentUser()) return;
202
+ }), de = I(), pe = I(), he = I(), _e = I(), ye = I(), xe = I(), Ce = I(), Te = I(), De = I(), ke = I(), je = F("folder-pane-content"), Ne = F(".folder-pane-full-view"), Fe = F("folder-pane-sidebar"), Le = F(".folder-pane-status"), "browserContext"), te = class extends b {
203
+ constructor(...t) {
204
+ super(...t), R(this, H, (ne(this), oe(this, void 0))), R(this, U, ce(this, void 0)), R(this, W, ue(this, !1)), R(this, G, fe(this, void 0)), R(this, K, me(this, void 0)), R(this, q, ge(this, "grid")), R(this, J, ve(this, "")), R(this, Y, be(this, !1)), R(this, X, Se(this, 256)), R(this, Z, we(this, 480)), R(this, Q, Ee(this, void 0)), R(this, Je, Oe(this, !1)), R(this, Ye, Ae(this, !1)), L(this, "initialLoadGeneration", 0), L(this, "renderGeneration", 0), L(this, "permissionGeneration", 0), L(this, "permissionRequest", void 0), L(this, "creationInFlight", !1), L(this, "authListenersAttached", !1), L(this, "dropProtectionAttached", !1), L(this, "sidebarResizeObserver", void 0), L(this, "responsiveLayoutInitialized", !1), L(this, "sidebarDrag", void 0), R(this, Xe, Me(this, null)), R(this, Ze, Pe(this, null)), R(this, Qe, Ie(this, null)), R(this, $, Re(this, null)), L(this, "handleAuthChange", () => {
205
+ e.clear(), this.refreshCreationPermission(!0), this.requestUpdate();
206
+ }), L(this, "handleCreatePane", async (e) => {
207
+ if (e.stopPropagation(), this.creationInFlight || !M.currentUser()) return;
201
208
  let t = e.detail?.pane;
202
209
  if (!t?.mintNew) return;
203
- let r = this.getActiveContainer(), i = this.ownerDocument, a = this.statusArea;
204
- if (!r || !a) return;
205
- this.creationInFlight = !0;
206
- let o = ++this.renderGeneration, s = n(t);
210
+ let n = this.getActiveContainer(), i = this.ownerDocument, a = this.statusArea;
211
+ if (!n || !a) return;
212
+ this.creationInFlight = !0, this.updateUploadAvailability();
213
+ let o = ++this.renderGeneration, s = r(t);
207
214
  try {
208
215
  let e = await new Promise((e) => {
209
- w(u, {
216
+ A(l, {
210
217
  props: { label: s },
211
218
  onClose: e
212
219
  });
213
220
  });
214
- if (!e || !D.currentUser() || o !== this.renderGeneration || this.getActiveContainer()?.sameTerm(r) !== !0) return;
215
- if (!l(e)) {
216
- p(a, "error", c);
221
+ if (!e || !M.currentUser() || o !== this.renderGeneration || this.getActiveContainer()?.sameTerm(n) !== !0) return;
222
+ if (!d(e)) {
223
+ m(a, "error", u);
217
224
  return;
218
225
  }
219
226
  this.clearContentForCreation();
220
- let n = await f({
227
+ let r = await p({
221
228
  context: this.browserContext,
222
- container: r,
229
+ container: n,
223
230
  pane: t,
224
231
  name: e,
225
232
  noun: s,
226
233
  statusArea: a,
227
- me: D.currentUser() ?? void 0,
234
+ me: M.currentUser() ?? void 0,
228
235
  dom: i
229
- }), d = o === this.renderGeneration && this.getActiveContainer()?.sameTerm(r) === !0;
236
+ }), c = o === this.renderGeneration && this.getActiveContainer()?.sameTerm(n) === !0;
230
237
  await this.showCreatedResource({
231
- container: r,
232
- ...n,
238
+ container: n,
239
+ ...r,
233
240
  pane: t,
234
- newInstance: d ? n.newInstance : void 0
241
+ newInstance: c ? r.newInstance : void 0
235
242
  });
236
243
  } catch (e) {
237
- console.error("Unable to create folder-pane resource", e), !(e instanceof d) && this.statusArea && p(this.statusArea, "error", `Unable to create ${s}: ${e instanceof Error ? e.message : String(e)}`);
244
+ h("Unable to create folder-pane resource", e), !(e instanceof f) && this.statusArea && m(this.statusArea, "error", `Unable to create ${s}: ${e instanceof Error ? e.message : String(e)}`);
238
245
  } finally {
239
- this.creationInFlight = !1;
246
+ this.creationInFlight = !1, this.updateUploadAvailability();
240
247
  }
241
- }), R(this, "handleUpload", (e) => {
242
- if (e.stopPropagation(), this.creationInFlight || !D.currentUser()) return;
243
- let t = this.getActiveContainer(), n = this.statusArea;
244
- if (!t || !n || !this.store) return;
245
- let r = this.ownerDocument.createElement("input");
246
- r.type = "file", r.multiple = !0, r.addEventListener("change", () => {
247
- let e = Array.from(r.files ?? []), i = e.filter((e) => l(e.name));
248
- if (e.filter((e) => !l(e.name)).forEach((e) => p(n, "error", `${e.name}: ${c}`)), !i.length) return;
249
- this.creationInFlight = !0;
250
- let a = i.length, o = Promise.resolve();
251
- p(n, "progress", `Uploading ${i.length} file${i.length === 1 ? "" : "s"}`);
252
- let s = () => {
253
- a--, a === 0 && (this.creationInFlight = !1, n.dataset.status === "progress" && n.replaceChildren());
254
- };
255
- T.uploadFiles(this.store.fetcher, i, t.uri, t.uri, (e, n) => {
256
- o = o.then(() => this.showCreatedResource({
257
- container: t,
258
- containedResource: this.store.sym(n)
259
- })).finally(s);
260
- }, (e, t) => {
261
- p(n, "error", t), s();
262
- });
263
- }), r.click();
264
- }), R(this, "clearContentError", () => {
248
+ }), L(this, "handleUpload", (e) => {
249
+ if (e.stopPropagation(), this.creationInFlight || !M.currentUser()) return;
250
+ let t = this.ownerDocument.createElement("input");
251
+ t.type = "file", t.multiple = !0, t.addEventListener("change", () => {
252
+ this.uploadFiles(Array.from(t.files ?? []), !0);
253
+ }), t.click();
254
+ }), L(this, "handleDroppedFiles", (e) => {
255
+ e.stopPropagation();
256
+ let t = e.detail?.files ?? [];
257
+ this.uploadFiles(t, !1);
258
+ }), L(this, "handleUploadRejected", (e) => {
259
+ e.stopPropagation();
260
+ let t = e.detail?.message;
261
+ t && this.statusArea && m(this.statusArea, "error", t);
262
+ }), L(this, "handleResourceDeleted", (e) => {
263
+ let t = e.detail?.resource;
264
+ if (!t) return;
265
+ let n = t.dir(), r = this.getActiveContainer();
266
+ n && this.sidebar?.refreshResources?.(n);
267
+ let i = this.resourceTarget?.querySelector("folder-pane-container");
268
+ if (n && r?.sameTerm(n) && i?.refresh?.(), !this.selectedResource?.sameTerm(t)) return;
269
+ this.renderGeneration = s(this.renderGeneration);
270
+ let a = n ?? this.subject;
271
+ a ? (this.selectedResource = a, this.renderContainerView(a)) : this.selectedResource = void 0;
272
+ }), L(this, "clearContentError", () => {
265
273
  this.contentError = void 0;
266
- }), R(this, "retryContent", () => {
267
- let e = this.selectedResource, t = this.subject;
268
- (e || t) && (this.clearContentError(), e ? this.showResourceInContentView(e) : t && this.showInitialContainer(t));
269
- }), R(this, "handleResourceSelected", (e) => {
274
+ }), L(this, "retryContent", () => {
275
+ let e = this.contentError?.retry;
276
+ if (e) {
277
+ this.clearContentError(), e();
278
+ return;
279
+ }
280
+ let t = this.selectedResource, n = this.subject;
281
+ (t || n) && (this.clearContentError(), t ? this.showResourceInContentView(t, void 0, !1, !0) : n && (this.store && _(this.store.fetcher, n), this.showInitialContainer(n)));
282
+ }), L(this, "handleResourceSelected", (e) => {
270
283
  let t = e.detail?.resource;
271
284
  t && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t));
272
- }), R(this, "handleResourceOpenPane", (e) => {
285
+ }), L(this, "handleResourceOpenPane", (e) => {
273
286
  let t = e.detail?.resource, n = e.detail?.paneName, r = n ? this.browserContext?.session.paneRegistry.byName(n) : void 0;
274
- t && r && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t, typeof r?.render == "function" ? r : void 0));
275
- }), R(this, "handleSelectHome", () => {
276
- this.searchQuery = "", this.subject && this.showSubject(this.subject);
277
- }), R(this, "handleSearch", (e) => {
287
+ t && r && (e.stopPropagation(), this.searchQuery = "", r.name === "folder" ? this.showSubject(t, r, !0) : this.showSubject(t, typeof r?.render == "function" ? r : void 0, !0));
288
+ }), L(this, "handleSelectHome", () => {
289
+ this.searchQuery = "";
290
+ let e = this.subject && this.standaloneBreadcrumbRoot?.sameTerm(this.subject) ? this.subject : this.standaloneBreadcrumbRoot;
291
+ e && this.showSubject(e);
292
+ }), L(this, "handleSearch", (e) => {
278
293
  e.stopPropagation(), this.searchQuery = e.detail?.query || "";
279
294
  let t = this.resourceTarget?.querySelector("folder-pane-container");
280
295
  t && (t.searchQuery = this.searchQuery);
281
- }), R(this, "handleSelectBreadcrumbResource", (e) => {
296
+ }), L(this, "handleSelectBreadcrumbResource", (e) => {
282
297
  let t = e.detail?.resource;
283
298
  t && (e.stopPropagation(), this.showSubject(t));
284
- }), R(this, "handleContainerViewChange", (e) => {
299
+ }), L(this, "handleContainerViewChange", (e) => {
285
300
  let t = e.detail?.view;
286
301
  t && (e.stopPropagation(), this.setContainerView(t));
302
+ }), L(this, "updateSidebarBounds", () => {
303
+ this.isConnected && (this.sidebarMaximumWidth = V(480, this.sidebarAvailableWidth), this.resizeSidebar(this.sidebarWidth));
304
+ }), L(this, "handleSidebarPointerDown", (e) => {
305
+ if (!this.isConnected || this.sidebarCollapsed || this.sidebarDrag || e.button !== 0 || !e.isPrimary) return;
306
+ e.preventDefault();
307
+ let t = e.currentTarget;
308
+ t.setPointerCapture(e.pointerId), t.focus(), this.sidebarDrag = {
309
+ separator: t,
310
+ pointerId: e.pointerId,
311
+ startX: e.clientX,
312
+ startWidth: this.sidebarWidth
313
+ }, this.requestUpdate();
314
+ }), L(this, "handleSidebarPointerMove", (e) => {
315
+ let t = this.sidebarDrag;
316
+ this.isConnected && !this.sidebarCollapsed && t && t.pointerId === e.pointerId && this.resizeSidebar(t.startWidth + e.clientX - t.startX);
317
+ }), L(this, "handleSidebarPointerEnd", (e) => {
318
+ this.sidebarDrag?.pointerId === e.pointerId && this.finishSidebarResize();
319
+ }), L(this, "handleSidebarResizeKey", (e) => {
320
+ if (!this.isConnected || this.sidebarCollapsed || this.sidebarDrag || e.altKey || e.ctrlKey || e.metaKey) return;
321
+ let t;
322
+ switch (e.key) {
323
+ case "ArrowLeft":
324
+ t = this.sidebarWidth - 16;
325
+ break;
326
+ case "ArrowRight":
327
+ t = this.sidebarWidth + 16;
328
+ break;
329
+ case "Home":
330
+ t = 180;
331
+ break;
332
+ case "End":
333
+ t = 480;
334
+ break;
335
+ default: return;
336
+ }
337
+ e.preventDefault(), e.stopPropagation(), this.resizeSidebar(t);
338
+ }), L(this, "handleSidebarToggle", async (e) => {
339
+ e.stopPropagation();
340
+ let t = this.sidebar, n = this.renderRoot.querySelector(".folder-pane-sidebar-resize-handle"), r = !!t && (t.matches(":focus-within") || t.shadowRoot?.activeElement != null), i = n === this.ownerDocument.activeElement;
341
+ this.finishSidebarResize(), this.sidebarCollapsed = !this.sidebarCollapsed, this.sidebarCollapsed && (r || i) && (await this.updateComplete, this.renderRoot.querySelector(".folder-pane-sidebar-toggle")?.focus());
342
+ }), L(this, "handleFolderPaneResourceError", (e) => {
343
+ e.stopPropagation();
344
+ let t = e.detail?.title || "Unable to load this folder", n = e.detail?.message || "The folder could not be loaded. Try again.";
345
+ this.showContentError({
346
+ title: t,
347
+ message: n,
348
+ retry: e.detail?.retry
349
+ }, !1);
287
350
  });
288
351
  }
289
- get [L]() {
290
- return V(H, this);
352
+ get [ze]() {
353
+ return B(H, this);
291
354
  }
292
355
  set browserContext(e) {
293
- B(H, this, e);
356
+ z(H, this, e);
294
357
  }
295
358
  get store() {
296
359
  return this.browserContext?.session.store;
297
360
  }
298
361
  get subject() {
299
- return V(U, this);
362
+ return B(U, this);
300
363
  }
301
364
  set subject(e) {
302
- B(U, this, e);
365
+ z(U, this, e);
303
366
  }
304
367
  get resourceLogic() {
305
368
  return this.browserContext?.session.logic.resource;
306
369
  }
370
+ get displayedResource() {
371
+ return this.selectedResource ?? this.subject;
372
+ }
307
373
  get fullView() {
308
- return V(W, this);
374
+ return B(W, this);
309
375
  }
310
376
  set fullView(e) {
311
- B(W, this, e);
312
- }
313
- get hideStorageHeader() {
314
- return V(G, this);
315
- }
316
- set hideStorageHeader(e) {
317
- B(G, this, e);
377
+ z(W, this, e);
318
378
  }
319
379
  get selectedResource() {
320
- return V(K, this);
380
+ return B(G, this);
321
381
  }
322
382
  set selectedResource(e) {
323
- B(K, this, e);
383
+ z(G, this, e);
384
+ }
385
+ get standaloneBreadcrumbRoot() {
386
+ return B(K, this);
387
+ }
388
+ set standaloneBreadcrumbRoot(e) {
389
+ z(K, this, e);
324
390
  }
325
391
  get containerView() {
326
- return V(q, this);
392
+ return B(q, this);
327
393
  }
328
394
  set containerView(e) {
329
- B(q, this, e);
395
+ z(q, this, e);
330
396
  }
331
397
  get searchQuery() {
332
- return V(J, this);
398
+ return B(J, this);
333
399
  }
334
400
  set searchQuery(e) {
335
- B(J, this, e);
401
+ z(J, this, e);
402
+ }
403
+ get sidebarCollapsed() {
404
+ return B(Y, this);
405
+ }
406
+ set sidebarCollapsed(e) {
407
+ z(Y, this, e);
408
+ }
409
+ get sidebarWidth() {
410
+ return B(X, this);
411
+ }
412
+ set sidebarWidth(e) {
413
+ z(X, this, e);
414
+ }
415
+ get sidebarMaximumWidth() {
416
+ return B(Z, this);
417
+ }
418
+ set sidebarMaximumWidth(e) {
419
+ z(Z, this, e);
336
420
  }
337
421
  get contentError() {
338
- return V(Y, this);
422
+ return B(Q, this);
339
423
  }
340
424
  set contentError(e) {
341
- B(Y, this, e);
425
+ z(Q, this, e);
426
+ }
427
+ get showingContainer() {
428
+ return B(Je, this);
429
+ }
430
+ set showingContainer(e) {
431
+ z(Je, this, e);
432
+ }
433
+ get canCreate() {
434
+ return B(Ye, this);
435
+ }
436
+ set canCreate(e) {
437
+ z(Ye, this, e);
342
438
  }
343
439
  get contentView() {
344
- return V(X, this);
440
+ return B(Xe, this);
345
441
  }
346
442
  set contentView(e) {
347
- B(X, this, e);
443
+ z(Xe, this, e);
348
444
  }
349
445
  get fullViewTarget() {
350
- return V(Z, this);
446
+ return B(Ze, this);
351
447
  }
352
448
  set fullViewTarget(e) {
353
- B(Z, this, e);
449
+ z(Ze, this, e);
354
450
  }
355
451
  get sidebar() {
356
- return V(Q, this);
452
+ return B(Qe, this);
357
453
  }
358
454
  set sidebar(e) {
359
- B(Q, this, e);
455
+ z(Qe, this, e);
360
456
  }
361
457
  get statusArea() {
362
- return V($, this);
458
+ return B($, this);
363
459
  }
364
460
  set statusArea(e) {
365
- B($, this, e);
461
+ z($, this, e);
366
462
  }
367
463
  createRenderRoot() {
368
464
  return this;
369
465
  }
370
466
  connectedCallback() {
371
- super.connectedCallback(), this.dropProtectionAttached ||= (_.preventBrowserDropEvents(this.ownerDocument), !0), this.addEventListener("folder-pane-create-pane", this.handleCreatePane), this.addEventListener("folder-pane-upload", this.handleUpload), this.authListenersAttached ||= (E.events.on("login", this.handleAuthChange), E.events.on("logout", this.handleAuthChange), !0);
467
+ super.connectedCallback();
468
+ let e = this.querySelector(".folder-pane-main-content");
469
+ e && this.sidebarResizeObserver?.observe(e), this.dropProtectionAttached ||= (x.preventBrowserDropEvents(this.ownerDocument), !0), this.addEventListener("folder-pane-create-pane", this.handleCreatePane), this.addEventListener("folder-pane-upload", this.handleUpload), this.addEventListener("folder-pane-upload-files", this.handleDroppedFiles), this.addEventListener("folder-pane-upload-rejected", this.handleUploadRejected), this.addEventListener("resource-open-pane", this.handleResourceOpenPane), this.ownerDocument.addEventListener("solid-resource-deleted", this.handleResourceDeleted), this.authListenersAttached ||= (j.events.on("login", this.handleAuthChange), j.events.on("logout", this.handleAuthChange), !0);
372
470
  }
373
471
  disconnectedCallback() {
374
- this.renderGeneration = o(this.renderGeneration), this.initialLoadGeneration++, this.removeEventListener("folder-pane-create-pane", this.handleCreatePane), this.removeEventListener("folder-pane-upload", this.handleUpload), this.authListenersAttached &&= (E.events.off("login", this.handleAuthChange), E.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback();
472
+ this.finishSidebarResize(), this.sidebarResizeObserver?.disconnect(), this.renderGeneration = s(this.renderGeneration), this.initialLoadGeneration++, this.removeEventListener("folder-pane-create-pane", this.handleCreatePane), this.removeEventListener("folder-pane-upload", this.handleUpload), this.removeEventListener("folder-pane-upload-files", this.handleDroppedFiles), this.removeEventListener("folder-pane-upload-rejected", this.handleUploadRejected), this.removeEventListener("resource-open-pane", this.handleResourceOpenPane), this.ownerDocument.removeEventListener("solid-resource-deleted", this.handleResourceDeleted), this.authListenersAttached &&= (j.events.off("login", this.handleAuthChange), j.events.off("logout", this.handleAuthChange), !1), super.disconnectedCallback();
473
+ }
474
+ firstUpdated() {
475
+ if (this.updateSidebarBounds(), typeof ResizeObserver < "u") {
476
+ this.sidebarResizeObserver = new ResizeObserver((e) => {
477
+ this.updateSidebarBounds();
478
+ let t = e[0]?.contentRect.width ?? 0;
479
+ this.responsiveLayoutInitialized || t <= 0 || (this.responsiveLayoutInitialized = !0, t < 768 && this.handleSidebarToggle(new Event("folder-pane-responsive-collapse")));
480
+ });
481
+ let e = this.querySelector(".folder-pane-main-content");
482
+ e && this.sidebarResizeObserver.observe(e), this.sidebarResizeObserver.observe(this);
483
+ }
484
+ }
485
+ async uploadFiles(e, t) {
486
+ if (this.creationInFlight || !M.currentUser() || !this.canCreate) return;
487
+ let n = this.getActiveContainer(), r = this.statusArea, i = this.resourceLogic;
488
+ if (!e.length || !n || !r || !this.store || !i) return;
489
+ let a = e.filter((e) => d(e.name)), o = e.filter((e) => !d(e.name)).map((e) => `${e.name}: ${u}`);
490
+ if (!a.length) {
491
+ o.length && m(r, "error", o.join("; "));
492
+ return;
493
+ }
494
+ this.creationInFlight = !0, this.updateUploadAvailability();
495
+ let s = this.renderGeneration, c = this.browserContext, l = a.length, f = () => {
496
+ l--, l === 0 && (this.creationInFlight = !1, this.updateUploadAvailability(), r.dataset.status === "progress" && r.replaceChildren());
497
+ };
498
+ m(r, "progress", `Uploading ${a.length} file${a.length === 1 ? "" : "s"}`);
499
+ try {
500
+ let e = await i.uploadFiles(a, n.uri);
501
+ for (let r of e) if (r.success) try {
502
+ let e = this.renderGeneration === s && this.browserContext === c;
503
+ await this.showCreatedResource({
504
+ container: n,
505
+ containedResource: this.store.sym(r.uploadedUri),
506
+ newInstance: t && a.length === 1 && e ? this.store.sym(r.uploadedUri) : void 0
507
+ });
508
+ } catch (e) {
509
+ let t = e instanceof Error ? e.message : String(e);
510
+ o.push(`Uploaded ${r.file.name}, but could not refresh the folder: ${t}`);
511
+ } finally {
512
+ f();
513
+ }
514
+ else {
515
+ let e = r.error.destinationUri ? `Upload failed while putting ${r.error.destinationUri}` : `Upload failed for ${r.file.name}`, t = r.error.status === 413 ? `${e}: storage quota was exceeded. ${r.error.message}` : r.error.status ? `${e} (HTTP ${r.error.status}). ${r.error.message}` : `${e}. ${r.error.message}`;
516
+ o.push(t), f();
517
+ }
518
+ } catch (e) {
519
+ let t = e instanceof Error ? e.message : String(e);
520
+ for (o.push(`Unable to upload files: ${t}`); l > 0;) f();
521
+ }
522
+ o.length && m(r, "error", o.join("; "));
375
523
  }
376
524
  updated(e) {
377
- (e.has("subject") || e.has("browserContext")) && this.subject ? ((e.has("subject") || e.has("browserContext")) && (this.selectedResource = void 0, this.renderGeneration++, this.initialLoadGeneration++), this.showInitialContainer(this.subject)) : e.has("fullView") && e.get("fullView") !== void 0 && (this.selectedResource ? this.showResourceInContentView(this.selectedResource) : this.subject && this.renderContainerView(this.subject));
525
+ (e.has("subject") || e.has("browserContext")) && this.subject ? (this.standaloneBreadcrumbRoot = this.fullView ? this.getStandaloneBreadcrumbRoot(this.subject) : this.subject, (e.has("subject") || e.has("browserContext")) && (this.selectedResource = void 0, this.renderGeneration++, this.initialLoadGeneration++), this.refreshCreationPermission(), this.showInitialContainer(this.subject)) : (e.has("selectedResource") && this.refreshCreationPermission(), e.has("fullView") && e.get("fullView") !== void 0 && (this.subject && (this.standaloneBreadcrumbRoot = this.fullView ? this.getStandaloneBreadcrumbRoot(this.subject) : this.subject), this.selectedResource ? this.showResourceInContentView(this.selectedResource) : this.subject && this.renderContainerView(this.subject)));
526
+ }
527
+ getStandaloneBreadcrumbRoot(e) {
528
+ try {
529
+ let t = new URL(e.uri), n = t.pathname.split("/").filter(Boolean);
530
+ return n.length <= 1 ? e : this.store?.sym(`${t.origin}/${n[0]}/`) ?? e;
531
+ } catch {
532
+ return e;
533
+ }
378
534
  }
379
535
  get resourceTarget() {
380
536
  return this.fullView ? this.fullViewTarget : this.contentView;
381
537
  }
382
- showContentError(e) {
383
- this.resourceTarget?.replaceChildren(), this.contentError = e;
538
+ showContentError(e, t = !0) {
539
+ t && this.resourceTarget?.replaceChildren(), this.contentError = e;
384
540
  }
385
541
  renderAccessDeniedScreen() {
386
542
  this.showContentError({
@@ -388,16 +544,52 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
388
544
  message: "You do not have access to the contents of this container."
389
545
  });
390
546
  }
547
+ async loadResource(e, t = !1) {
548
+ let n = this.store;
549
+ if (!n) return;
550
+ let r = n.fetcher;
551
+ t && _(r, e);
552
+ try {
553
+ await r.load(e);
554
+ } catch (n) {
555
+ if (!t || !i(n) || !M.currentUser()) throw n;
556
+ await r.load(e, {
557
+ force: !0,
558
+ clearPreviousData: !0
559
+ });
560
+ }
561
+ }
391
562
  openCreatedResource(e, t) {
392
563
  this.searchQuery = "";
393
564
  let n = t?.name ? this.browserContext?.session.paneRegistry.byName(t.name) ?? t : t;
394
565
  this.showSubject(e, typeof n?.render == "function" ? n : void 0);
395
566
  }
396
567
  getActiveContainer() {
397
- let e = this.selectedResource;
398
- if (e && this.resourceLogic && i(e, this.resourceLogic)) return e;
399
- let t = this.subject, n = e?.dir(), r = t?.uri.endsWith("/") ? t.uri : `${t?.uri}/`;
400
- return t && n && r && n.uri.startsWith(r) ? n : this.subject;
568
+ let e = this.selectedResource, t = e ? n(e) : void 0;
569
+ if (t && this.store) return this.store.sym(t);
570
+ if (e && this.resourceLogic && a(e, this.resourceLogic)) return e;
571
+ let r = this.fullView ? this.standaloneBreadcrumbRoot : this.subject, i = e?.dir(), o = r?.uri.endsWith("/") ? r.uri : `${r?.uri}/`;
572
+ return r && i && o && i.uri.startsWith(o) ? i : this.subject;
573
+ }
574
+ refreshCreationPermission(e = !1) {
575
+ let t = this.getActiveContainer(), n = this.browserContext?.session.logic.resource;
576
+ if (!e && t && n && this.permissionRequest?.containerUri === t.uri && this.permissionRequest.resourceLogic === n) return;
577
+ let r = ++this.permissionGeneration;
578
+ this.setCanCreate(!1), this.permissionRequest = t && n ? {
579
+ containerUri: t.uri,
580
+ resourceLogic: n
581
+ } : void 0, t && n && n.fetchMetadata(t).then((e) => {
582
+ r === this.permissionGeneration && this.getActiveContainer()?.sameTerm(t) === !0 && this.setCanCreate(e.access.canEdit);
583
+ }).catch((e) => {
584
+ r === this.permissionGeneration && (this.permissionRequest = void 0, g("Unable to determine folder creation permission", e));
585
+ });
586
+ }
587
+ updateUploadAvailability() {
588
+ let e = this.resourceTarget?.querySelector("folder-pane-container"), t = this.getActiveContainer();
589
+ e && (e.canUpload = this.canCreate && !this.creationInFlight && !!t && e.subject?.sameTerm(t) === !0, e.uploadBusy = this.creationInFlight);
590
+ }
591
+ setCanCreate(e) {
592
+ this.canCreate = e, this.updateUploadAvailability();
401
593
  }
402
594
  clearContentForCreation() {
403
595
  this.resourceTarget?.replaceChildren();
@@ -412,12 +604,12 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
412
604
  clearPreviousData: !0
413
605
  }), !0;
414
606
  } catch (t) {
415
- return S.warn("Unable to reload " + e.uri + ": " + t), !1;
607
+ return D.warn("Unable to reload " + e.uri + ": " + t), !1;
416
608
  }
417
609
  }, c = await s(e);
418
610
  if (t.uri.endsWith("/")) {
419
611
  await s(t);
420
- let e = i.each(t, C.ldp("contains"), void 0, t.doc());
612
+ let e = i.each(t, O.ldp("contains"), void 0, t.doc());
421
613
  for (let t of e) t.termType === "NamedNode" && i.fetcher.getState(t.value) === "failed" && i.fetcher.unload(t);
422
614
  }
423
615
  this.sidebar?.refreshResources?.(e);
@@ -429,45 +621,39 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
429
621
  if (!t) return;
430
622
  this.contentError = void 0;
431
623
  let n = document.createElement("folder-pane-container");
432
- n.subject = e, n.resourceLogic = this.resourceLogic ?? null, n.browserContext = this.browserContext, n.view = this.containerView, n.searchQuery = this.searchQuery, n.hideRootSpecialFolders = this.subject ? e.sameTerm(this.subject) : !1, t.replaceChildren(n);
624
+ n.subject = e, n.resourceLogic = this.resourceLogic ?? null, n.browserContext = this.browserContext;
625
+ let r = this.getActiveContainer();
626
+ n.canUpload = this.canCreate && !!r && e.sameTerm(r), n.uploadBusy = this.creationInFlight, n.view = this.containerView, n.searchQuery = this.searchQuery, this.showingContainer = !0, t.replaceChildren(n);
433
627
  }
434
628
  async showInitialContainer(e) {
435
629
  let t = ++this.initialLoadGeneration;
436
- if (a(e)) this.showSubject(e);
630
+ if (o(e)) this.showSubject(e);
437
631
  else if (this.store && this.resourceLogic) {
438
632
  try {
439
- await this.store.fetcher.load(e);
633
+ await this.loadResource(e);
440
634
  } catch (n) {
441
635
  if (t !== this.initialLoadGeneration || !this.subject?.sameTerm(e)) return;
442
- if (r(n)) {
636
+ if (i(n)) {
443
637
  this.resourceTarget && this.renderAccessDeniedScreen();
444
638
  return;
445
639
  }
446
- S.error("Unable to load storage container: " + n), this.showContentError({
640
+ D.error("Unable to load storage container: " + n), this.showContentError({
447
641
  title: "Unable to load this folder",
448
642
  message: "The folder could not be loaded. Try again."
449
643
  });
450
644
  return;
451
645
  }
452
- t === this.initialLoadGeneration && this.subject?.sameTerm(e) && (this.sidebar?.refreshResources?.(), this.selectedResource || this.showSubject(e));
646
+ t === this.initialLoadGeneration && this.subject?.sameTerm(e) && (this.sidebar?.refreshResources?.(), this.requestUpdate(), this.selectedResource || this.showSubject(e));
453
647
  }
454
648
  }
455
- getPaneForSubject(e, t) {
456
- let n = this.store && (this.store.any(e, C.ui("mintClass"), void 0, e.doc()) || this.store.any(e.doc(), C.ui("mintClass"), void 0, e.doc()));
457
- if (n) {
458
- let e = t.find((e) => e.mintClass?.sameTerm(n));
459
- if (e) return e;
460
- }
461
- return t.find((t) => t.shouldGetFocus?.(e)) || t[0];
462
- }
463
649
  async renderExplorerInto(e, t, n, r = {}) {
464
650
  if (!this.browserContext) return;
465
- let i = await b(t, this.browserContext, {
651
+ let i = await T(t, this.browserContext, {
466
652
  excludedPaneNames: ["sharing"],
467
653
  fallbackPaneName: "internal"
468
654
  });
469
655
  if (r.isCurrent && !r.isCurrent()) return;
470
- let a = n || this.getPaneForSubject(t, i);
656
+ let a = n || w(t, this.browserContext, i);
471
657
  if (!a) {
472
658
  this.renderExplorerError(t, "No pane is available to display this resource.");
473
659
  return;
@@ -476,29 +662,31 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
476
662
  try {
477
663
  o = a.render(t, this.browserContext, r.paneOptions || {});
478
664
  } catch (e) {
479
- S.error("Unable to render selected pane: " + e), this.renderExplorerError(t, "The selected pane could not render this resource.");
665
+ D.error("Unable to render selected pane: " + e), this.renderExplorerError(t, "The selected pane could not render this resource.");
480
666
  return;
481
667
  }
482
- let c = e.ownerDocument.createElement("solid-ui-file-explorer-provider"), l = i.map((e) => {
483
- let n = e.label(t, this.browserContext);
484
- if (n) return {
485
- label: n,
486
- action: (n) => {
487
- c.dispatchEvent(new CustomEvent(h, {
488
- bubbles: !0,
489
- composed: !0,
490
- detail: {
491
- subjectUri: t.uri,
492
- paneName: e.name
493
- }
494
- }));
495
- }
496
- };
497
- }).filter((e) => e !== void 0);
498
- c.addEventListener(m, (e) => {
499
- x(e, c) && (e.stopPropagation(), this.renderGeneration++, this.selectedResource = void 0, this.renderContainerView(this.subject || t));
500
- }), c.addEventListener(h, (n) => {
501
- if (!x(n, c)) return;
668
+ let s = e.ownerDocument.createElement("solid-ui-file-explorer-provider"), l = await k({
669
+ subject: t,
670
+ context: this.browserContext,
671
+ panes: i,
672
+ openPane: (e, t) => {
673
+ s.dispatchEvent(new CustomEvent(y, {
674
+ bubbles: !0,
675
+ composed: !0,
676
+ detail: {
677
+ subjectUri: e.uri,
678
+ paneName: t
679
+ }
680
+ }));
681
+ }
682
+ });
683
+ s.addEventListener(v, (e) => {
684
+ if (!E(e, s)) return;
685
+ e.stopPropagation();
686
+ let n = this.getActiveContainer() || this.subject || t;
687
+ this.renderGeneration++, this.selectedResource = n, this.renderContainerView(n);
688
+ }), s.addEventListener(y, (n) => {
689
+ if (!E(n, s)) return;
502
690
  n.stopPropagation();
503
691
  let i = n.detail?.paneName, a = i ? this.browserContext?.session.paneRegistry.byName(i) : void 0;
504
692
  if (a) {
@@ -509,12 +697,17 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
509
697
  };
510
698
  this.renderExplorerInto(e, t, a, {
511
699
  ...r,
512
- isCurrent: () => s(n, this.renderGeneration, this.selectedResource?.uri, this.browserContext)
700
+ paneOptions: a.name === "folder" ? {
701
+ folderView: "container",
702
+ fullView: !0,
703
+ solo: !0
704
+ } : r.paneOptions,
705
+ isCurrent: () => c(n, this.renderGeneration, this.selectedResource?.uri, this.browserContext)
513
706
  }).catch((e) => {
514
- S.error("Unable to switch selected pane: " + e);
707
+ D.error("Unable to switch selected pane: " + e);
515
708
  });
516
709
  }
517
- }), v(c, {
710
+ }), S(s, {
518
711
  context: this.browserContext,
519
712
  subjectUri: t.uri,
520
713
  pane: a,
@@ -524,7 +717,7 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
524
717
  menuItems: l
525
718
  },
526
719
  paneElement: o
527
- }), (!r.isCurrent || r.isCurrent()) && (this.contentError = void 0, e.replaceChildren(c));
720
+ }), (!r.isCurrent || r.isCurrent()) && (this.contentError = void 0, this.showingContainer = !1, e.replaceChildren(s));
528
721
  }
529
722
  renderExplorerError(e, t) {
530
723
  this.showContentError({
@@ -532,134 +725,223 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
532
725
  message: e.uri
533
726
  });
534
727
  }
535
- async showResourceInContentView(t, n, o = !1) {
536
- let c = ++this.renderGeneration;
728
+ async showResourceInContentView(e, n, r = !1, s = !1) {
729
+ let l = ++this.renderGeneration;
537
730
  try {
538
- let l = this.resourceTarget;
539
- if (!l || !this.store || !this.resourceLogic) return;
540
- let u = {
541
- generation: c,
542
- subjectUri: t.uri,
731
+ let u = this.resourceTarget, d = this.browserContext;
732
+ if (!u || !this.store || !this.resourceLogic || !d) return;
733
+ let f = {
734
+ generation: l,
735
+ subjectUri: e.uri,
543
736
  context: this.browserContext
544
- }, d = (e) => s(u, this.renderGeneration, this.selectedResource?.uri, this.browserContext) && e.uri === u.subjectUri;
545
- if (!d(t)) return;
546
- if (this.subject?.sameTerm(t) && !o && !a(t)) {
547
- this.renderContainerView(t);
737
+ }, p = (e) => c(f, this.renderGeneration, this.selectedResource?.uri, this.browserContext) && e.uri === f.subjectUri;
738
+ if (!p(e)) return;
739
+ if (this.subject?.sameTerm(e) && !n && !r && a(e, this.resourceLogic)) {
740
+ this.renderContainerView(e);
548
741
  return;
549
742
  }
550
- if (i(t, this.resourceLogic)) {
743
+ if (a(e, this.resourceLogic) && (n?.name !== "source" || r)) {
551
744
  try {
552
- await this.store.fetcher.load(t);
553
- } catch (e) {
554
- if (!d(t)) return;
555
- if (r(e)) {
745
+ await this.loadResource(e, s);
746
+ } catch (t) {
747
+ if (!p(e)) return;
748
+ if (i(t)) {
556
749
  this.renderAccessDeniedScreen();
557
750
  return;
558
751
  }
559
- S.error("Unable to load selected container: " + e), this.showContentError({
752
+ D.error("Unable to load selected container: " + t), this.showContentError({
560
753
  title: "Unable to load this folder",
561
754
  message: "The folder could not be loaded. Try again."
562
755
  });
563
756
  return;
564
757
  }
565
- if (!d(t)) return;
566
- if (this.sidebar?.refreshResources?.(), o || this.resourceLogic.containerHasIndexDocument(t)) {
567
- let i = this.store.sym(e(t, n?.name));
758
+ if (!p(e)) return;
759
+ if (this.sidebar?.refreshResources?.(), n?.name === "folder") {
760
+ this.renderContainerView(e);
761
+ return;
762
+ }
763
+ if (!n && (r || this.resourceLogic.containerHasIndexDocument(e))) {
764
+ let r = this.store.sym(t(e));
568
765
  try {
569
- await this.store.fetcher.load(i.doc());
570
- } catch (e) {
571
- if (!d(t)) return;
572
- if (r(e)) {
766
+ await this.loadResource(r.doc(), s);
767
+ } catch (t) {
768
+ if (!p(e)) return;
769
+ if (i(t)) {
573
770
  this.renderAccessDeniedScreen();
574
771
  return;
575
772
  }
576
- S.error("Unable to load container index document: " + e);
773
+ D.error("Unable to load container index document: " + t);
577
774
  }
578
- await this.renderExplorerInto(l, i, n, {
579
- isCurrent: () => d(t),
775
+ await this.renderExplorerInto(u, r, n, {
776
+ isCurrent: () => p(e),
777
+ showHeader: !1
778
+ });
779
+ return;
780
+ }
781
+ let a = await T(e, d, {
782
+ excludedPaneNames: ["sharing"],
783
+ fallbackPaneName: "internal"
784
+ });
785
+ if (!p(e)) return;
786
+ let o = n || w(e, d, a);
787
+ if (o?.name !== "folder") {
788
+ await this.renderExplorerInto(u, e, o, {
789
+ isCurrent: () => p(e),
580
790
  showHeader: !1
581
791
  });
582
792
  return;
583
793
  }
584
- this.renderContainerView(t);
794
+ this.renderContainerView(e);
585
795
  return;
586
796
  }
587
797
  try {
588
- await this.store.fetcher.load(t);
589
- } catch (e) {
590
- if (!d(t)) return;
591
- if (r(e)) {
798
+ await this.loadResource(e, s);
799
+ } catch (t) {
800
+ if (!p(e)) return;
801
+ if (i(t)) {
592
802
  this.renderAccessDeniedScreen();
593
803
  return;
594
804
  }
595
- S.warn("Unable to load selected resource metadata: " + e);
805
+ D.warn("Unable to load selected resource metadata: " + t);
596
806
  }
597
- if (!d(t)) return;
598
- let f = a(t) ? this.browserContext?.session.paneRegistry.byName("source") : void 0;
599
- if (!n && a(t) && !f) {
600
- this.renderExplorerError(t, "The Source pane is unavailable to display this JavaScript file.");
807
+ if (!p(e)) return;
808
+ let m = o(e) ? this.browserContext?.session.paneRegistry.byName("source") : void 0;
809
+ if (!n && o(e) && !m) {
810
+ this.renderExplorerError(e, "The Source pane is unavailable to display this JavaScript file.");
601
811
  return;
602
812
  }
603
- await this.renderExplorerInto(l, t, n || f, { isCurrent: () => d(t) });
604
- } catch (e) {
605
- if (S.error("Unable to render selected resource: " + e), c === this.renderGeneration && this.resourceTarget) {
606
- if (r(e)) {
813
+ await this.renderExplorerInto(u, e, n || m, { isCurrent: () => p(e) });
814
+ } catch (t) {
815
+ if (D.error("Unable to render selected resource: " + t), l === this.renderGeneration && this.resourceTarget) {
816
+ if (i(t)) {
607
817
  this.renderAccessDeniedScreen();
608
818
  return;
609
819
  }
610
- this.renderExplorerError(t, "Unable to display the selected resource.");
820
+ this.renderExplorerError(e, "Unable to display the selected resource.");
611
821
  }
612
822
  }
613
823
  }
614
- showSubject(e, n) {
615
- let r = t(e), a = r && this.store ? this.store.sym(r) : void 0, o = a ?? e, s = !a && !!this.resourceLogic && i(e, this.resourceLogic) && this.resourceLogic.containerHasIndexDocument(e);
616
- this.selectedResource = o, this.showResourceInContentView(o, n, !!a || s);
824
+ showSubject(e, t, r = !1) {
825
+ let i = !r && t?.name !== "sharing", o = i ? n(e) : void 0, s = o && this.store ? this.store.sym(o) : void 0, c = s ?? e, l = i && !s && !!this.resourceLogic && a(e, this.resourceLogic) && this.resourceLogic.containerHasIndexDocument(e);
826
+ this.selectedResource = c, this.showResourceInContentView(c, t, !!s || l);
617
827
  }
618
828
  setContainerView(e) {
619
829
  this.containerView = e;
620
830
  let t = this.resourceTarget?.querySelector("folder-pane-container");
621
831
  t && (t.view = e);
622
832
  }
833
+ get sidebarAvailableWidth() {
834
+ let e = this.renderRoot.querySelector(".folder-pane-main-content"), t = this.renderRoot.querySelector(".folder-pane-sidebar-resizer");
835
+ return (e?.clientWidth ?? 0) - (t?.getBoundingClientRect().width ?? 0);
836
+ }
837
+ resizeSidebar(e) {
838
+ this.sidebarWidth = V(e, this.sidebarAvailableWidth);
839
+ }
840
+ finishSidebarResize() {
841
+ let e = this.sidebarDrag;
842
+ e && (this.sidebarDrag = void 0, e.separator.hasPointerCapture(e.pointerId) && e.separator.releasePointerCapture(e.pointerId), this.isConnected && this.requestUpdate());
843
+ }
623
844
  render() {
624
- return this.fullView ? O`
625
- ${this.renderContentError()}
845
+ return this.fullView ? N`
846
+ <folder-pane-provider
847
+ .rootResource=${this.subject}
848
+ .displayedResource=${this.displayedResource}
849
+ .activeContainer=${this.getActiveContainer()}
850
+ .view=${this.containerView}
851
+ .searchQuery=${this.searchQuery}
852
+ .canCreate=${this.canCreate}
853
+ >
854
+ ${this.showingContainer ? this.renderStorageHeader() : ee}
855
+ ${this.renderContentError()}
856
+ <div
857
+ class="folder-pane-full-view"
858
+ ?hidden=${!!this.contentError}
859
+ @resource-selected=${this.handleResourceSelected}
860
+ ></div>
861
+ <div class="folder-pane-status"></div>
862
+ </folder-pane-provider>
863
+ ` : N`
864
+ <folder-pane-provider
865
+ .rootResource=${this.subject}
866
+ .displayedResource=${this.displayedResource}
867
+ .activeContainer=${this.getActiveContainer()}
868
+ .view=${this.containerView}
869
+ .searchQuery=${this.searchQuery}
870
+ .canCreate=${this.canCreate}
871
+ .sidebarCollapsed=${this.sidebarCollapsed}
872
+ >
873
+ ${this.renderStorageHeader()}
626
874
  <div
627
- class="folder-pane-full-view"
628
- ?hidden=${!!this.contentError}
875
+ class="folder-pane-main-content"
876
+ data-sidebar-collapsed=${String(this.sidebarCollapsed)}
877
+ style=${`--folder-pane-sidebar-width: ${this.sidebarWidth}px`}
629
878
  @resource-selected=${this.handleResourceSelected}
630
- @resource-open-pane=${this.handleResourceOpenPane}
631
- ></div>
632
- ` : O`
633
- ${this.hideStorageHeader ? k : this.renderStorageHeader()}
634
- <div
635
- class="folder-pane-main-content"
636
- @resource-selected=${this.handleResourceSelected}
637
- @resource-open-pane=${this.handleResourceOpenPane}
638
- >
639
- <folder-pane-sidebar
640
- .store=${this.store}
641
- .resourceLogic=${this.resourceLogic}
642
- .subject=${this.subject}
643
- .selectedResource=${this.selectedResource ?? this.subject}
644
- ></folder-pane-sidebar>
645
- <div class="folder-pane-content-column">
646
- <div class="folder-pane-status"></div>
647
- ${this.renderContentError()}
648
- <folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
879
+ @folder-pane-resource-error=${this.handleFolderPaneResourceError}
880
+ @folder-pane-toggle-sidebar=${this.handleSidebarToggle}
881
+ >
882
+ <folder-pane-sidebar
883
+ ?inert=${this.sidebarCollapsed}
884
+ aria-hidden=${this.sidebarCollapsed ? "true" : "false"}
885
+ .store=${this.store}
886
+ .resourceLogic=${this.resourceLogic}
887
+ .subject=${this.subject}
888
+ .selectedResource=${this.displayedResource}
889
+ ></folder-pane-sidebar>
890
+ <div
891
+ class="folder-pane-sidebar-resizer"
892
+ data-resizing=${String(!!this.sidebarDrag)}
893
+ >
894
+ <div
895
+ class="folder-pane-sidebar-resize-handle"
896
+ role="separator"
897
+ aria-orientation="vertical"
898
+ aria-label="Resize navigation sidebar"
899
+ aria-valuemin=${180}
900
+ aria-valuemax=${this.sidebarMaximumWidth}
901
+ aria-valuenow=${this.sidebarWidth}
902
+ tabindex=${this.sidebarCollapsed ? -1 : 0}
903
+ ?hidden=${this.sidebarCollapsed}
904
+ ?inert=${this.sidebarCollapsed}
905
+ @pointerdown=${this.handleSidebarPointerDown}
906
+ @pointermove=${this.handleSidebarPointerMove}
907
+ @pointerup=${this.handleSidebarPointerEnd}
908
+ @pointercancel=${this.handleSidebarPointerEnd}
909
+ @lostpointercapture=${this.handleSidebarPointerEnd}
910
+ @keydown=${this.handleSidebarResizeKey}
911
+ ></div>
912
+ <button
913
+ type="button"
914
+ class="folder-pane-sidebar-toggle"
915
+ aria-label=${this.sidebarCollapsed ? "Expand navigation" : "Collapse navigation"}
916
+ aria-expanded=${String(!this.sidebarCollapsed)}
917
+ @click=${this.handleSidebarToggle}
918
+ >
919
+ <icon-lucide-chevron-left
920
+ class=${`folder-pane-sidebar-toggle-icon${this.sidebarCollapsed ? " folder-pane-sidebar-toggle-icon-collapsed" : ""}`}
921
+ aria-hidden="true"
922
+ ></icon-lucide-chevron-left>
923
+ </button>
924
+ </div>
925
+ <div class="folder-pane-content-column">
926
+ ${this.renderContentError()}
927
+ <folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
928
+ <div class="folder-pane-status"></div>
929
+ </div>
649
930
  </div>
650
- </div>
931
+ </folder-pane-provider>
651
932
  `;
652
933
  }
653
934
  renderStorageHeader() {
654
- return O`
935
+ return N`
655
936
  <folder-pane-storage-header
656
937
  .subject=${this.subject}
657
- .selectedResource=${this.selectedResource ?? this.subject}
938
+ .breadcrumbRoot=${this.standaloneBreadcrumbRoot}
939
+ .selectedResource=${this.getActiveContainer()}
658
940
  .browserContext=${this.browserContext}
659
941
  .paneList=${this.browserContext?.session.paneRegistry.list ?? []}
660
942
  .view=${this.containerView}
661
943
  .searchQuery=${this.searchQuery}
662
- .canCreate=${!!D.currentUser()}
944
+ .canCreate=${this.canCreate}
663
945
  @folder-pane-select-home=${this.handleSelectHome}
664
946
  @folder-pane-select-resource=${this.handleSelectBreadcrumbResource}
665
947
  @folder-pane-change-view=${this.handleContainerViewChange}
@@ -668,7 +950,7 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
668
950
  `;
669
951
  }
670
952
  renderContentError() {
671
- return this.contentError ? O`
953
+ return this.contentError ? N`
672
954
  <div class="folder-pane-resource-error" role="status">
673
955
  <solid-ui-error-state
674
956
  .title=${this.contentError.title}
@@ -678,70 +960,95 @@ L = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
678
960
  <button type="button" @click=${this.retryContent}>Retry</button>
679
961
  </solid-ui-error-state>
680
962
  </div>
681
- ` : k;
963
+ ` : ee;
682
964
  }
683
- }, {e: [ae, se, le, de, pe, he, _e, P, I, ye, xe, Ce, te], c: [je, ne]} = Ee(ee, [
965
+ }, {e: [oe, ce, ue, fe, me, ge, ve, be, Se, we, Ee, Oe, Ae, Me, Pe, Ie, Re, ne], c: [qe, re]} = He(te, [
684
966
  [
685
- ie,
967
+ ae,
686
968
  1,
687
969
  "browserContext"
688
970
  ],
689
971
  [
690
- oe,
972
+ se,
691
973
  1,
692
974
  "subject"
693
975
  ],
694
976
  [
695
- ce,
977
+ le,
696
978
  1,
697
979
  "fullView"
698
980
  ],
699
981
  [
700
- ue,
982
+ de,
701
983
  1,
702
- "hideStorageHeader"
984
+ "selectedResource"
703
985
  ],
704
986
  [
705
- fe,
987
+ pe,
706
988
  1,
707
- "selectedResource"
989
+ "standaloneBreadcrumbRoot"
708
990
  ],
709
991
  [
710
- me,
992
+ he,
711
993
  1,
712
994
  "containerView"
713
995
  ],
714
996
  [
715
- ge,
997
+ _e,
716
998
  1,
717
999
  "searchQuery"
718
1000
  ],
719
1001
  [
720
- N,
1002
+ ye,
1003
+ 1,
1004
+ "sidebarCollapsed"
1005
+ ],
1006
+ [
1007
+ xe,
1008
+ 1,
1009
+ "sidebarWidth"
1010
+ ],
1011
+ [
1012
+ Ce,
1013
+ 1,
1014
+ "sidebarMaximumWidth"
1015
+ ],
1016
+ [
1017
+ Te,
721
1018
  1,
722
1019
  "contentError"
723
1020
  ],
724
1021
  [
725
- F,
1022
+ De,
1023
+ 1,
1024
+ "showingContainer"
1025
+ ],
1026
+ [
1027
+ ke,
1028
+ 1,
1029
+ "canCreate"
1030
+ ],
1031
+ [
1032
+ je,
726
1033
  1,
727
1034
  "contentView"
728
1035
  ],
729
1036
  [
730
- ve,
1037
+ Ne,
731
1038
  1,
732
1039
  "fullViewTarget"
733
1040
  ],
734
1041
  [
735
- be,
1042
+ Fe,
736
1043
  1,
737
1044
  "sidebar"
738
1045
  ],
739
1046
  [
740
- Se,
1047
+ Le,
741
1048
  1,
742
1049
  "statusArea"
743
1050
  ]
744
- ], re, 0, void 0, g), ne();
745
- export { je as default };
1051
+ ], ie, 0, void 0, b), re();
1052
+ export { V as clampSidebarWidth, qe as default };
746
1053
 
747
1054
  //# sourceMappingURL=FolderPaneView.esm.js.map