folder-pane 4.0.0-0 → 4.0.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 (176) hide show
  1. package/declarations.d.ts +4 -4
  2. package/dist/_virtual/~icons/lucide/chevron-down.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/chevron-down.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/chevron-down.esm.js +10 -0
  5. package/dist/_virtual/~icons/lucide/chevron-down.esm.js.map +1 -0
  6. package/dist/_virtual/~icons/lucide/chevron-right.cjs.js +2 -0
  7. package/dist/_virtual/~icons/lucide/chevron-right.cjs.js.map +1 -0
  8. package/dist/_virtual/~icons/lucide/chevron-right.esm.js +10 -0
  9. package/dist/_virtual/~icons/lucide/chevron-right.esm.js.map +1 -0
  10. package/dist/_virtual/~icons/lucide/circle-small.cjs.js +2 -0
  11. package/dist/_virtual/~icons/lucide/circle-small.cjs.js.map +1 -0
  12. package/dist/_virtual/~icons/lucide/circle-small.esm.js +10 -0
  13. package/dist/_virtual/~icons/lucide/circle-small.esm.js.map +1 -0
  14. package/dist/_virtual/~icons/lucide/file-box.cjs.js +2 -0
  15. package/dist/_virtual/~icons/lucide/file-box.cjs.js.map +1 -0
  16. package/dist/_virtual/~icons/lucide/file-box.esm.js +10 -0
  17. package/dist/_virtual/~icons/lucide/file-box.esm.js.map +1 -0
  18. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  19. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  20. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  21. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  22. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  23. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  24. package/dist/_virtual/~icons/lucide/folder-open.esm.js +10 -0
  25. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  26. package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
  27. package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
  28. package/dist/_virtual/~icons/lucide/folder.esm.js +10 -0
  29. package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
  30. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  31. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  32. package/dist/_virtual/~icons/lucide/globe.esm.js +10 -0
  33. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  34. package/dist/_virtual/~icons/lucide/layout-grid.cjs.js +2 -0
  35. package/dist/_virtual/~icons/lucide/layout-grid.cjs.js.map +1 -0
  36. package/dist/_virtual/~icons/lucide/layout-grid.esm.js +10 -0
  37. package/dist/_virtual/~icons/lucide/layout-grid.esm.js.map +1 -0
  38. package/dist/_virtual/~icons/lucide/list.cjs.js +2 -0
  39. package/dist/_virtual/~icons/lucide/list.cjs.js.map +1 -0
  40. package/dist/_virtual/~icons/lucide/list.esm.js +10 -0
  41. package/dist/_virtual/~icons/lucide/list.esm.js.map +1 -0
  42. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  43. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  44. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  45. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  46. package/dist/_virtual/~icons/lucide/plus.cjs.js +2 -0
  47. package/dist/_virtual/~icons/lucide/plus.cjs.js.map +1 -0
  48. package/dist/_virtual/~icons/lucide/plus.esm.js +10 -0
  49. package/dist/_virtual/~icons/lucide/plus.esm.js.map +1 -0
  50. package/dist/_virtual/~icons/lucide/search.cjs.js +2 -0
  51. package/dist/_virtual/~icons/lucide/search.cjs.js.map +1 -0
  52. package/dist/_virtual/~icons/lucide/search.esm.js +10 -0
  53. package/dist/_virtual/~icons/lucide/search.esm.js.map +1 -0
  54. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
  55. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
  56. package/dist/_virtual/~icons/lucide/trash-2.esm.js +10 -0
  57. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
  58. package/dist/_virtual/~icons/lucide/upload.cjs.js +2 -0
  59. package/dist/_virtual/~icons/lucide/upload.cjs.js.map +1 -0
  60. package/dist/_virtual/~icons/lucide/upload.esm.js +10 -0
  61. package/dist/_virtual/~icons/lucide/upload.esm.js.map +1 -0
  62. package/dist/_virtual/~icons/lucide/x.cjs.js +2 -0
  63. package/dist/_virtual/~icons/lucide/x.cjs.js.map +1 -0
  64. package/dist/_virtual/~icons/lucide/x.esm.js +10 -0
  65. package/dist/_virtual/~icons/lucide/x.esm.js.map +1 -0
  66. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js +91 -0
  67. package/dist/components/folder-pane-container/FolderPaneContainer.cjs.js.map +1 -0
  68. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts +44 -0
  69. package/dist/components/folder-pane-container/FolderPaneContainer.d.ts.map +1 -0
  70. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js +585 -0
  71. package/dist/components/folder-pane-container/FolderPaneContainer.esm.js.map +1 -0
  72. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js +2 -0
  73. package/dist/components/folder-pane-container/FolderPaneContainer.styles.cjs.js.map +1 -0
  74. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js +6 -0
  75. package/dist/components/folder-pane-container/FolderPaneContainer.styles.esm.js.map +1 -0
  76. package/dist/components/folder-pane-container/index.cjs.js +1 -0
  77. package/dist/components/folder-pane-container/index.d.ts +2 -0
  78. package/dist/components/folder-pane-container/index.d.ts.map +1 -0
  79. package/dist/components/folder-pane-container/index.esm.js +1 -0
  80. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js +4 -0
  81. package/dist/components/folder-pane-content/FolderPaneContent.cjs.js.map +1 -0
  82. package/dist/components/folder-pane-content/FolderPaneContent.d.ts +6 -0
  83. package/dist/components/folder-pane-content/FolderPaneContent.d.ts.map +1 -0
  84. package/dist/components/folder-pane-content/FolderPaneContent.esm.js +176 -0
  85. package/dist/components/folder-pane-content/FolderPaneContent.esm.js.map +1 -0
  86. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js +2 -0
  87. package/dist/components/folder-pane-content/FolderPaneContent.styles.cjs.js.map +1 -0
  88. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js +6 -0
  89. package/dist/components/folder-pane-content/FolderPaneContent.styles.esm.js.map +1 -0
  90. package/dist/components/folder-pane-content/index.cjs.js +1 -0
  91. package/dist/components/folder-pane-content/index.d.ts +2 -0
  92. package/dist/components/folder-pane-content/index.d.ts.map +1 -0
  93. package/dist/components/folder-pane-content/index.esm.js +1 -0
  94. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js +53 -0
  95. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.cjs.js.map +1 -0
  96. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts +33 -0
  97. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.d.ts.map +1 -0
  98. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js +429 -0
  99. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.esm.js.map +1 -0
  100. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js +2 -0
  101. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.cjs.js.map +1 -0
  102. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js +6 -0
  103. package/dist/components/folder-pane-sidebar/FolderPaneSidebar.styles.esm.js.map +1 -0
  104. package/dist/components/folder-pane-sidebar/index.cjs.js +1 -0
  105. package/dist/components/folder-pane-sidebar/index.d.ts +2 -0
  106. package/dist/components/folder-pane-sidebar/index.d.ts.map +1 -0
  107. package/dist/components/folder-pane-sidebar/index.esm.js +1 -0
  108. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js +32 -0
  109. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.cjs.js.map +1 -0
  110. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts +15 -0
  111. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.d.ts.map +1 -0
  112. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js +290 -0
  113. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.esm.js.map +1 -0
  114. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js +2 -0
  115. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.cjs.js.map +1 -0
  116. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js +6 -0
  117. package/dist/components/folder-pane-storage-header/FolderPaneCreateDialog.styles.esm.js.map +1 -0
  118. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js +79 -0
  119. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.cjs.js.map +1 -0
  120. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts +27 -0
  121. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.d.ts.map +1 -0
  122. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js +437 -0
  123. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.esm.js.map +1 -0
  124. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js +2 -0
  125. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.cjs.js.map +1 -0
  126. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js +6 -0
  127. package/dist/components/folder-pane-storage-header/FolderPaneStorageHeader.styles.esm.js.map +1 -0
  128. package/dist/components/folder-pane-storage-header/index.cjs.js +1 -0
  129. package/dist/components/folder-pane-storage-header/index.d.ts +2 -0
  130. package/dist/components/folder-pane-storage-header/index.d.ts.map +1 -0
  131. package/dist/components/folder-pane-storage-header/index.esm.js +1 -0
  132. package/dist/components/folder-pane-view/FolderPaneView.cjs.js +51 -0
  133. package/dist/components/folder-pane-view/FolderPaneView.cjs.js.map +1 -0
  134. package/dist/components/folder-pane-view/FolderPaneView.d.ts +82 -0
  135. package/dist/components/folder-pane-view/FolderPaneView.d.ts.map +1 -0
  136. package/dist/components/folder-pane-view/FolderPaneView.esm.js +728 -0
  137. package/dist/components/folder-pane-view/FolderPaneView.esm.js.map +1 -0
  138. package/dist/components/folder-pane-view/index.cjs.js +1 -0
  139. package/dist/components/folder-pane-view/index.d.ts +2 -0
  140. package/dist/components/folder-pane-view/index.d.ts.map +1 -0
  141. package/dist/components/folder-pane-view/index.esm.js +1 -0
  142. package/dist/components/folder-pane-view/renderRequest.cjs.js +2 -0
  143. package/dist/components/folder-pane-view/renderRequest.cjs.js.map +1 -0
  144. package/dist/components/folder-pane-view/renderRequest.d.ts +8 -0
  145. package/dist/components/folder-pane-view/renderRequest.d.ts.map +1 -0
  146. package/dist/components/folder-pane-view/renderRequest.esm.js +10 -0
  147. package/dist/components/folder-pane-view/renderRequest.esm.js.map +1 -0
  148. package/dist/creationSafety.cjs.js +2 -0
  149. package/dist/creationSafety.cjs.js.map +1 -0
  150. package/dist/creationSafety.d.ts +9 -0
  151. package/dist/creationSafety.d.ts.map +1 -0
  152. package/dist/creationSafety.esm.js +17 -0
  153. package/dist/creationSafety.esm.js.map +1 -0
  154. package/dist/folderPane.cjs.js +2 -2
  155. package/dist/folderPane.cjs.js.map +1 -1
  156. package/dist/folderPane.d.ts +2 -1
  157. package/dist/folderPane.d.ts.map +1 -1
  158. package/dist/folderPane.esm.js +23 -60
  159. package/dist/folderPane.esm.js.map +1 -1
  160. package/dist/helpers.cjs.js +2 -0
  161. package/dist/helpers.cjs.js.map +1 -0
  162. package/dist/helpers.d.ts +30 -0
  163. package/dist/helpers.d.ts.map +1 -0
  164. package/dist/helpers.esm.js +59 -0
  165. package/dist/helpers.esm.js.map +1 -0
  166. package/dist/index.esm.js +1 -2
  167. package/dist/mintPaneInstance.cjs.js +2 -0
  168. package/dist/mintPaneInstance.cjs.js.map +1 -0
  169. package/dist/mintPaneInstance.d.ts +43 -0
  170. package/dist/mintPaneInstance.d.ts.map +1 -0
  171. package/dist/mintPaneInstance.esm.js +104 -0
  172. package/dist/mintPaneInstance.esm.js.map +1 -0
  173. package/dist/types.d.ts +9 -0
  174. package/dist/types.d.ts.map +1 -0
  175. package/package.json +9 -6
  176. package/dist/_virtual/_rolldown/runtime.cjs.js +0 -1
@@ -0,0 +1,728 @@
1
+ import { getIndexedApplicationSubject as e, getIndexedContainer as t, getPaneLabel as n, isAccessDeniedError as r, isContainerResource as i, isJavaScriptFile as a } from "../../helpers.esm.js";
2
+ import "../folder-pane-container/index.esm.js";
3
+ import "../folder-pane-sidebar/index.esm.js";
4
+ import "../folder-pane-content/index.esm.js";
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";
14
+ import "solid-ui/components/file-explorer-provider";
15
+ import "solid-ui/components/error-state";
16
+ import "solid-ui/components/file-explorer-header";
17
+ // 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, N, P, F, I, L, _e, ve, R, ye, be;
19
+ function z(e, t, n) {
20
+ return (t = we(t)) in e ? Object.defineProperty(e, t, {
21
+ value: n,
22
+ enumerable: !0,
23
+ configurable: !0,
24
+ writable: !0
25
+ }) : e[t] = n, e;
26
+ }
27
+ function B(e, t, n) {
28
+ xe(e, t), t.set(e, n);
29
+ }
30
+ function xe(e, t) {
31
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
32
+ }
33
+ function V(e, t, n) {
34
+ return e.set(Se(e, t), n), n;
35
+ }
36
+ function H(e, t) {
37
+ return e.get(Se(e, t));
38
+ }
39
+ function Se(e, t, n) {
40
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
41
+ throw TypeError("Private element is not present on this object");
42
+ }
43
+ function Ce(e, t, n, r, i, a) {
44
+ function o(e, t, n) {
45
+ return function(r, i) {
46
+ return n && n(r), e[t].call(r, i);
47
+ };
48
+ }
49
+ function s(e, t) {
50
+ for (var n = 0; n < e.length; n++) e[n].call(t);
51
+ return t;
52
+ }
53
+ function c(e, t, n, r) {
54
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
55
+ return e;
56
+ }
57
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
58
+ function h(e) {
59
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
60
+ }
61
+ var g, _ = t[0], v = t[3], y = !l;
62
+ if (!y) {
63
+ n || Array.isArray(_) || (_ = [_]);
64
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
65
+ d ? (f || p ? b = {
66
+ get: Ee(function() {
67
+ return v(this);
68
+ }, r, "get"),
69
+ set: function(e) {
70
+ t[4](this, e);
71
+ }
72
+ } : b[S] = v, f || Ee(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
73
+ }
74
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
75
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
76
+ kind: [
77
+ "field",
78
+ "accessor",
79
+ "method",
80
+ "getter",
81
+ "setter",
82
+ "class"
83
+ ][i],
84
+ name: r,
85
+ metadata: a,
86
+ addInitializer: function(e, t) {
87
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
88
+ c(t, "An initializer", "be", !0), s.push(t);
89
+ }.bind(null, D)
90
+ };
91
+ try {
92
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
93
+ else {
94
+ var k, A;
95
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
96
+ return h(e), b.value;
97
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
98
+ return e[r];
99
+ }, (i < 2 || i === 4) && (A = function(e, t) {
100
+ e[r] = t;
101
+ }));
102
+ var j = O.access = { has: d ? m.bind() : function(e) {
103
+ return r in e;
104
+ } };
105
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
106
+ get: b.get,
107
+ set: b.set
108
+ } : b[S], O), p) {
109
+ if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
110
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
111
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
112
+ }
113
+ } finally {
114
+ D.v = !0;
115
+ }
116
+ }
117
+ return (f || p) && l.push(function(e, t) {
118
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
119
+ return t;
120
+ }), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
121
+ }
122
+ function u(e, t) {
123
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
124
+ configurable: !0,
125
+ enumerable: !0,
126
+ value: t
127
+ });
128
+ }
129
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
130
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
131
+ var i, a, o = [], c = function(t) {
132
+ return De(t) === e;
133
+ }, u = /* @__PURE__ */ new Map();
134
+ function d(e) {
135
+ e && o.push(s.bind(null, e));
136
+ }
137
+ for (var f = 0; f < t.length; f++) {
138
+ var p = t[f];
139
+ if (Array.isArray(p)) {
140
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
141
+ if (!y && !g) {
142
+ var x = u.get(b);
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);
144
+ u.set(b, !(m > 2) || m);
145
+ }
146
+ l(v ? e : e.prototype, p, _, g ? "#" + h : we(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
147
+ }
148
+ }
149
+ return d(i), d(a), o;
150
+ }(e, t, i, f);
151
+ return n.length || u(e, f), {
152
+ e: p,
153
+ get c() {
154
+ var t = [];
155
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
156
+ }
157
+ };
158
+ }
159
+ function we(e) {
160
+ var t = Te(e, "string");
161
+ return typeof t == "symbol" ? t : t + "";
162
+ }
163
+ function Te(e, t) {
164
+ if (typeof e != "object" || !e) return e;
165
+ var n;
166
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
167
+ var r = n.call(e, t || "default");
168
+ if (typeof r != "object") return r;
169
+ throw TypeError("@@toPrimitive must return a primitive value.");
170
+ }
171
+ return (t === "string" ? String : Number)(e);
172
+ }
173
+ function Ee(e, t, n) {
174
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
175
+ try {
176
+ Object.defineProperty(e, "name", {
177
+ configurable: !0,
178
+ value: n ? n + " " + t : t
179
+ });
180
+ } catch {}
181
+ return e;
182
+ }
183
+ function De(e) {
184
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
185
+ return e;
186
+ }
187
+ re = [y("folder-pane-view")];
188
+ var Oe, 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
+ be = (ie = A({ attribute: !1 }), oe = A({ attribute: !1 }), ce = A({
190
+ type: Boolean,
191
+ attribute: "full-view"
192
+ }), ue = M(), fe = M(), me = M(), ge = M(), P = j("folder-pane-content"), I = j(".folder-pane-full-view"), _e = j("folder-pane-sidebar"), R = j(".folder-pane-status"), "browserContext"), ee = class extends g {
193
+ constructor(...e) {
194
+ super(...e), B(this, U, (te(this), ae(this, void 0))), B(this, W, se(this, void 0)), B(this, G, le(this, !1)), B(this, K, de(this, void 0)), B(this, q, pe(this, "grid")), B(this, J, he(this, "")), B(this, Y, N(this, void 0)), z(this, "initialLoadGeneration", 0), z(this, "renderGeneration", 0), z(this, "creationInFlight", !1), z(this, "authListenersAttached", !1), z(this, "dropProtectionAttached", !1), B(this, X, F(this, null)), B(this, Z, L(this, null)), B(this, Q, ve(this, null)), B(this, $, ye(this, null)), z(this, "handleAuthChange", () => {
195
+ this.requestUpdate();
196
+ }), z(this, "handleCreatePane", async (e) => {
197
+ if (e.stopPropagation(), this.creationInFlight || !D.currentUser()) return;
198
+ let t = e.detail?.pane;
199
+ if (!t?.mintNew) return;
200
+ let r = this.getActiveContainer(), i = this.ownerDocument, a = this.statusArea;
201
+ if (!r || !a) return;
202
+ this.creationInFlight = !0;
203
+ let o = ++this.renderGeneration, s = n(t);
204
+ try {
205
+ let e = await new Promise((e) => {
206
+ w(u, {
207
+ props: { label: s },
208
+ onClose: e
209
+ });
210
+ });
211
+ if (!e || !D.currentUser() || o !== this.renderGeneration || this.getActiveContainer()?.sameTerm(r) !== !0) return;
212
+ if (!l(e)) {
213
+ p(a, "error", c);
214
+ return;
215
+ }
216
+ this.clearContentForCreation();
217
+ let n = await f({
218
+ context: this.browserContext,
219
+ container: r,
220
+ pane: t,
221
+ name: e,
222
+ noun: s,
223
+ statusArea: a,
224
+ me: D.currentUser() ?? void 0,
225
+ dom: i
226
+ }), d = o === this.renderGeneration && this.getActiveContainer()?.sameTerm(r) === !0;
227
+ await this.showCreatedResource({
228
+ container: r,
229
+ ...n,
230
+ pane: t,
231
+ newInstance: d ? n.newInstance : void 0
232
+ });
233
+ } catch (e) {
234
+ 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)}`);
235
+ } finally {
236
+ this.creationInFlight = !1;
237
+ }
238
+ }), z(this, "handleUpload", (e) => {
239
+ if (e.stopPropagation(), this.creationInFlight || !D.currentUser()) return;
240
+ let t = this.getActiveContainer(), n = this.statusArea;
241
+ if (!t || !n || !this.store) return;
242
+ let r = this.ownerDocument.createElement("input");
243
+ r.type = "file", r.multiple = !0, r.addEventListener("change", () => {
244
+ let e = Array.from(r.files ?? []), i = e.filter((e) => l(e.name));
245
+ if (e.filter((e) => !l(e.name)).forEach((e) => p(n, "error", `${e.name}: ${c}`)), !i.length) return;
246
+ this.creationInFlight = !0;
247
+ let a = i.length, o = Promise.resolve();
248
+ p(n, "progress", `Uploading ${i.length} file${i.length === 1 ? "" : "s"}`);
249
+ let s = () => {
250
+ a--, a === 0 && (this.creationInFlight = !1, n.dataset.status === "progress" && n.replaceChildren());
251
+ };
252
+ T.uploadFiles(this.store.fetcher, i, t.uri, t.uri, (e, n) => {
253
+ o = o.then(() => this.showCreatedResource({
254
+ container: t,
255
+ containedResource: this.store.sym(n)
256
+ })).finally(s);
257
+ }, (e, t) => {
258
+ p(n, "error", t), s();
259
+ });
260
+ }), r.click();
261
+ }), z(this, "clearContentError", () => {
262
+ this.contentError = void 0;
263
+ }), z(this, "retryContent", () => {
264
+ let e = this.selectedResource, t = this.subject;
265
+ (e || t) && (this.clearContentError(), e ? this.showResourceInContentView(e) : t && this.showInitialContainer(t));
266
+ }), z(this, "handleResourceSelected", (e) => {
267
+ let t = e.detail?.resource;
268
+ t && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t));
269
+ }), z(this, "handleResourceOpenPane", (e) => {
270
+ let t = e.detail?.resource, n = e.detail?.paneName, r = n ? this.browserContext?.session.paneRegistry.byName(n) : void 0;
271
+ t && r && (e.stopPropagation(), this.searchQuery = "", this.showSubject(t, typeof r?.render == "function" ? r : void 0));
272
+ }), z(this, "handleSelectHome", () => {
273
+ this.searchQuery = "", this.subject && this.showSubject(this.subject);
274
+ }), z(this, "handleSearch", (e) => {
275
+ e.stopPropagation(), this.searchQuery = e.detail?.query || "";
276
+ let t = this.resourceTarget?.querySelector("folder-pane-container");
277
+ t && (t.searchQuery = this.searchQuery);
278
+ }), z(this, "handleSelectBreadcrumbResource", (e) => {
279
+ let t = e.detail?.resource;
280
+ t && (e.stopPropagation(), this.showSubject(t));
281
+ }), z(this, "handleContainerViewChange", (e) => {
282
+ let t = e.detail?.view;
283
+ t && (e.stopPropagation(), this.setContainerView(t));
284
+ });
285
+ }
286
+ get [be]() {
287
+ return H(U, this);
288
+ }
289
+ set browserContext(e) {
290
+ V(U, this, e);
291
+ }
292
+ get store() {
293
+ return this.browserContext?.session.store;
294
+ }
295
+ get subject() {
296
+ return H(W, this);
297
+ }
298
+ set subject(e) {
299
+ V(W, this, e);
300
+ }
301
+ get resourceLogic() {
302
+ return this.browserContext?.session.logic.resource;
303
+ }
304
+ get fullView() {
305
+ return H(G, this);
306
+ }
307
+ set fullView(e) {
308
+ V(G, this, e);
309
+ }
310
+ get selectedResource() {
311
+ return H(K, this);
312
+ }
313
+ set selectedResource(e) {
314
+ V(K, this, e);
315
+ }
316
+ get containerView() {
317
+ return H(q, this);
318
+ }
319
+ set containerView(e) {
320
+ V(q, this, e);
321
+ }
322
+ get searchQuery() {
323
+ return H(J, this);
324
+ }
325
+ set searchQuery(e) {
326
+ V(J, this, e);
327
+ }
328
+ get contentError() {
329
+ return H(Y, this);
330
+ }
331
+ set contentError(e) {
332
+ V(Y, this, e);
333
+ }
334
+ get contentView() {
335
+ return H(X, this);
336
+ }
337
+ set contentView(e) {
338
+ V(X, this, e);
339
+ }
340
+ get fullViewTarget() {
341
+ return H(Z, this);
342
+ }
343
+ set fullViewTarget(e) {
344
+ V(Z, this, e);
345
+ }
346
+ get sidebar() {
347
+ return H(Q, this);
348
+ }
349
+ set sidebar(e) {
350
+ V(Q, this, e);
351
+ }
352
+ get statusArea() {
353
+ return H($, this);
354
+ }
355
+ set statusArea(e) {
356
+ V($, this, e);
357
+ }
358
+ createRenderRoot() {
359
+ return this;
360
+ }
361
+ connectedCallback() {
362
+ 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);
363
+ }
364
+ disconnectedCallback() {
365
+ 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();
366
+ }
367
+ updated(e) {
368
+ (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));
369
+ }
370
+ get resourceTarget() {
371
+ return this.fullView ? this.fullViewTarget : this.contentView;
372
+ }
373
+ showContentError(e) {
374
+ this.resourceTarget?.replaceChildren(), this.contentError = e;
375
+ }
376
+ renderAccessDeniedScreen() {
377
+ this.showContentError({
378
+ title: "Access denied",
379
+ message: "You do not have access to the contents of this container."
380
+ });
381
+ }
382
+ openCreatedResource(e, t) {
383
+ this.searchQuery = "";
384
+ let n = t?.name ? this.browserContext?.session.paneRegistry.byName(t.name) ?? t : t;
385
+ this.showSubject(e, typeof n?.render == "function" ? n : void 0);
386
+ }
387
+ getActiveContainer() {
388
+ let e = this.selectedResource;
389
+ if (e && this.resourceLogic && i(e, this.resourceLogic)) return e;
390
+ let t = this.subject, n = e?.dir(), r = t?.uri.endsWith("/") ? t.uri : `${t?.uri}/`;
391
+ return t && n && r && n.uri.startsWith(r) ? n : this.subject;
392
+ }
393
+ clearContentForCreation() {
394
+ this.resourceTarget?.replaceChildren();
395
+ }
396
+ async showCreatedResource({ container: e, containedResource: t, newInstance: n, pane: r }) {
397
+ let i = this.store;
398
+ if (!i) return;
399
+ let a = this.renderGeneration, o = this.browserContext, s = async (e) => {
400
+ try {
401
+ return await i.fetcher.load(e, {
402
+ force: !0,
403
+ clearPreviousData: !0
404
+ }), !0;
405
+ } catch (t) {
406
+ return S.warn("Unable to reload " + e.uri + ": " + t), !1;
407
+ }
408
+ }, c = await s(e);
409
+ if (t.uri.endsWith("/")) {
410
+ await s(t);
411
+ let e = i.each(t, C.ldp("contains"), void 0, t.doc());
412
+ for (let t of e) t.termType === "NamedNode" && i.fetcher.getState(t.value) === "failed" && i.fetcher.unload(t);
413
+ }
414
+ this.sidebar?.refreshResources?.(e);
415
+ let l = this.resourceTarget?.querySelector("folder-pane-container");
416
+ !c && l?.addOptimisticResource && l.addOptimisticResource(t), c && l?.refresh?.(), n && this.isConnected && this.renderGeneration === a && this.browserContext === o && this.openCreatedResource(n, r);
417
+ }
418
+ renderContainerView(e) {
419
+ let t = this.resourceTarget;
420
+ if (!t) return;
421
+ this.contentError = void 0;
422
+ let n = document.createElement("folder-pane-container");
423
+ 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);
424
+ }
425
+ async showInitialContainer(e) {
426
+ let t = ++this.initialLoadGeneration;
427
+ if (a(e)) this.showSubject(e);
428
+ else if (this.store && this.resourceLogic) {
429
+ try {
430
+ await this.store.fetcher.load(e);
431
+ } catch (n) {
432
+ if (t !== this.initialLoadGeneration || !this.subject?.sameTerm(e)) return;
433
+ if (r(n)) {
434
+ this.resourceTarget && this.renderAccessDeniedScreen();
435
+ return;
436
+ }
437
+ S.error("Unable to load storage container: " + n), this.showContentError({
438
+ title: "Unable to load this folder",
439
+ message: "The folder could not be loaded. Try again."
440
+ });
441
+ return;
442
+ }
443
+ t === this.initialLoadGeneration && this.subject?.sameTerm(e) && (this.sidebar?.refreshResources?.(), this.selectedResource || this.showSubject(e));
444
+ }
445
+ }
446
+ getPaneForSubject(e, t) {
447
+ 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()));
448
+ if (n) {
449
+ let e = t.find((e) => e.mintClass?.sameTerm(n));
450
+ if (e) return e;
451
+ }
452
+ return t.find((t) => t.shouldGetFocus?.(e)) || t[0];
453
+ }
454
+ async renderExplorerInto(e, t, n, r = {}) {
455
+ if (!this.browserContext) return;
456
+ let i = await b(t, this.browserContext, {
457
+ excludedPaneNames: ["sharing"],
458
+ fallbackPaneName: "internal"
459
+ });
460
+ if (r.isCurrent && !r.isCurrent()) return;
461
+ let a = n || this.getPaneForSubject(t, i);
462
+ if (!a) {
463
+ this.renderExplorerError(t, "No pane is available to display this resource.");
464
+ return;
465
+ }
466
+ let o;
467
+ try {
468
+ o = a.render(t, this.browserContext, r.paneOptions || {});
469
+ } catch (e) {
470
+ S.error("Unable to render selected pane: " + e), this.renderExplorerError(t, "The selected pane could not render this resource.");
471
+ return;
472
+ }
473
+ let c = e.ownerDocument.createElement("solid-ui-file-explorer-provider"), l = i.map((e) => {
474
+ let n = e.label(t, this.browserContext);
475
+ if (n) return {
476
+ label: n,
477
+ action: (n) => {
478
+ c.dispatchEvent(new CustomEvent(h, {
479
+ bubbles: !0,
480
+ composed: !0,
481
+ detail: {
482
+ subjectUri: t.uri,
483
+ paneName: e.name
484
+ }
485
+ }));
486
+ }
487
+ };
488
+ }).filter((e) => e !== void 0);
489
+ c.addEventListener(m, (e) => {
490
+ x(e, c) && (e.stopPropagation(), this.renderGeneration++, this.selectedResource = void 0, this.renderContainerView(this.subject || t));
491
+ }), c.addEventListener(h, (n) => {
492
+ if (!x(n, c)) return;
493
+ n.stopPropagation();
494
+ let i = n.detail?.paneName, a = i ? this.browserContext?.session.paneRegistry.byName(i) : void 0;
495
+ if (a) {
496
+ let n = {
497
+ generation: ++this.renderGeneration,
498
+ subjectUri: t.uri,
499
+ context: this.browserContext
500
+ };
501
+ this.renderExplorerInto(e, t, a, {
502
+ ...r,
503
+ isCurrent: () => s(n, this.renderGeneration, this.selectedResource?.uri, this.browserContext)
504
+ }).catch((e) => {
505
+ S.error("Unable to switch selected pane: " + e);
506
+ });
507
+ }
508
+ }), v(c, {
509
+ context: this.browserContext,
510
+ subjectUri: t.uri,
511
+ pane: a,
512
+ relevantPanes: i,
513
+ header: r.showHeader === !1 ? void 0 : {
514
+ paneIcon: a.icon,
515
+ menuItems: l
516
+ },
517
+ paneElement: o
518
+ }), (!r.isCurrent || r.isCurrent()) && (this.contentError = void 0, e.replaceChildren(c));
519
+ }
520
+ renderExplorerError(e, t) {
521
+ this.showContentError({
522
+ title: t,
523
+ message: e.uri
524
+ });
525
+ }
526
+ async showResourceInContentView(t, n, o = !1) {
527
+ let c = ++this.renderGeneration;
528
+ try {
529
+ let l = this.resourceTarget;
530
+ if (!l || !this.store || !this.resourceLogic) return;
531
+ let u = {
532
+ generation: c,
533
+ subjectUri: t.uri,
534
+ context: this.browserContext
535
+ }, d = (e) => s(u, this.renderGeneration, this.selectedResource?.uri, this.browserContext) && e.uri === u.subjectUri;
536
+ if (!d(t)) return;
537
+ if (this.subject?.sameTerm(t) && !o && !a(t)) {
538
+ this.renderContainerView(t);
539
+ return;
540
+ }
541
+ if (i(t, this.resourceLogic)) {
542
+ try {
543
+ await this.store.fetcher.load(t);
544
+ } catch (e) {
545
+ if (!d(t)) return;
546
+ if (r(e)) {
547
+ this.renderAccessDeniedScreen();
548
+ return;
549
+ }
550
+ S.error("Unable to load selected container: " + e), this.showContentError({
551
+ title: "Unable to load this folder",
552
+ message: "The folder could not be loaded. Try again."
553
+ });
554
+ return;
555
+ }
556
+ if (!d(t)) return;
557
+ if (this.sidebar?.refreshResources?.(), o || this.resourceLogic.containerHasIndexDocument(t)) {
558
+ let i = this.store.sym(e(t, n?.name));
559
+ try {
560
+ await this.store.fetcher.load(i.doc());
561
+ } catch (e) {
562
+ if (!d(t)) return;
563
+ if (r(e)) {
564
+ this.renderAccessDeniedScreen();
565
+ return;
566
+ }
567
+ S.error("Unable to load container index document: " + e);
568
+ }
569
+ await this.renderExplorerInto(l, i, n, {
570
+ isCurrent: () => d(t),
571
+ showHeader: !1
572
+ });
573
+ return;
574
+ }
575
+ this.renderContainerView(t);
576
+ return;
577
+ }
578
+ try {
579
+ await this.store.fetcher.load(t);
580
+ } catch (e) {
581
+ if (!d(t)) return;
582
+ if (r(e)) {
583
+ this.renderAccessDeniedScreen();
584
+ return;
585
+ }
586
+ S.warn("Unable to load selected resource metadata: " + e);
587
+ }
588
+ if (!d(t)) return;
589
+ let f = a(t) ? this.browserContext?.session.paneRegistry.byName("source") : void 0;
590
+ if (!n && a(t) && !f) {
591
+ this.renderExplorerError(t, "The Source pane is unavailable to display this JavaScript file.");
592
+ return;
593
+ }
594
+ await this.renderExplorerInto(l, t, n || f, { isCurrent: () => d(t) });
595
+ } catch (e) {
596
+ if (S.error("Unable to render selected resource: " + e), c === this.renderGeneration && this.resourceTarget) {
597
+ if (r(e)) {
598
+ this.renderAccessDeniedScreen();
599
+ return;
600
+ }
601
+ this.renderExplorerError(t, "Unable to display the selected resource.");
602
+ }
603
+ }
604
+ }
605
+ showSubject(e, n) {
606
+ 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);
607
+ this.selectedResource = o, this.showResourceInContentView(o, n, !!a || s);
608
+ }
609
+ setContainerView(e) {
610
+ this.containerView = e;
611
+ let t = this.resourceTarget?.querySelector("folder-pane-container");
612
+ t && (t.view = e);
613
+ }
614
+ render() {
615
+ return this.fullView ? O`
616
+ ${this.renderContentError()}
617
+ <div
618
+ class="folder-pane-full-view"
619
+ ?hidden=${!!this.contentError}
620
+ @resource-selected=${this.handleResourceSelected}
621
+ @resource-open-pane=${this.handleResourceOpenPane}
622
+ ></div>
623
+ ` : O`
624
+ <folder-pane-storage-header
625
+ .subject=${this.subject}
626
+ .selectedResource=${this.selectedResource ?? this.subject}
627
+ .browserContext=${this.browserContext}
628
+ .paneList=${this.browserContext?.session.paneRegistry.list ?? []}
629
+ .view=${this.containerView}
630
+ .searchQuery=${this.searchQuery}
631
+ .canCreate=${!!D.currentUser()}
632
+ @folder-pane-select-home=${this.handleSelectHome}
633
+ @folder-pane-select-resource=${this.handleSelectBreadcrumbResource}
634
+ @folder-pane-change-view=${this.handleContainerViewChange}
635
+ @folder-pane-search=${this.handleSearch}
636
+ ></folder-pane-storage-header>
637
+ <div
638
+ class="folder-pane-main-content"
639
+ @resource-selected=${this.handleResourceSelected}
640
+ @resource-open-pane=${this.handleResourceOpenPane}
641
+ >
642
+ <folder-pane-sidebar
643
+ .store=${this.store}
644
+ .resourceLogic=${this.resourceLogic}
645
+ .subject=${this.subject}
646
+ .selectedResource=${this.selectedResource ?? this.subject}
647
+ ></folder-pane-sidebar>
648
+ <div class="folder-pane-content-column">
649
+ <div class="folder-pane-status"></div>
650
+ ${this.renderContentError()}
651
+ <folder-pane-content ?hidden=${!!this.contentError}></folder-pane-content>
652
+ </div>
653
+ </div>
654
+ `;
655
+ }
656
+ renderContentError() {
657
+ return this.contentError ? O`
658
+ <div class="folder-pane-resource-error" role="status">
659
+ <solid-ui-error-state
660
+ .title=${this.contentError.title}
661
+ .message=${this.contentError.message}
662
+ @close=${this.clearContentError}
663
+ >
664
+ <button type="button" @click=${this.retryContent}>Retry</button>
665
+ </solid-ui-error-state>
666
+ </div>
667
+ ` : k;
668
+ }
669
+ }, {e: [ae, se, le, de, pe, he, N, F, L, ve, ye, te], c: [Oe, ne]} = Ce(ee, [
670
+ [
671
+ ie,
672
+ 1,
673
+ "browserContext"
674
+ ],
675
+ [
676
+ oe,
677
+ 1,
678
+ "subject"
679
+ ],
680
+ [
681
+ ce,
682
+ 1,
683
+ "fullView"
684
+ ],
685
+ [
686
+ ue,
687
+ 1,
688
+ "selectedResource"
689
+ ],
690
+ [
691
+ fe,
692
+ 1,
693
+ "containerView"
694
+ ],
695
+ [
696
+ me,
697
+ 1,
698
+ "searchQuery"
699
+ ],
700
+ [
701
+ ge,
702
+ 1,
703
+ "contentError"
704
+ ],
705
+ [
706
+ P,
707
+ 1,
708
+ "contentView"
709
+ ],
710
+ [
711
+ I,
712
+ 1,
713
+ "fullViewTarget"
714
+ ],
715
+ [
716
+ _e,
717
+ 1,
718
+ "sidebar"
719
+ ],
720
+ [
721
+ R,
722
+ 1,
723
+ "statusArea"
724
+ ]
725
+ ], re, 0, void 0, g), ne();
726
+ export { Oe as default };
727
+
728
+ //# sourceMappingURL=FolderPaneView.esm.js.map