solid-ui 5.0.2-2 → 5.0.2-4

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 (236) hide show
  1. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  6. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  12. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  16. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
  20. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
  24. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
  28. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
  29. package/dist/chunks/DialogProvider-CdesAsw-.js +208 -0
  30. package/dist/chunks/DialogProvider-CdesAsw-.js.map +1 -0
  31. package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js +378 -0
  32. package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js.map +1 -0
  33. package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CwmY_Dod.js} +419 -432
  34. package/dist/chunks/access-control-modal-CwmY_Dod.js.map +1 -0
  35. package/dist/chunks/{account-D6JK-n7u.js → account-CoHPKKDu.js} +6 -6
  36. package/dist/chunks/{account-D6JK-n7u.js.map → account-CoHPKKDu.js.map} +1 -1
  37. package/dist/chunks/{auth-B_abPDvH.js → auth-CocCqS1p.js} +23 -22
  38. package/dist/chunks/{auth-B_abPDvH.js.map → auth-CocCqS1p.js.map} +1 -1
  39. package/dist/chunks/{avatar-BR3COVSQ.js → avatar-sNdKdWVO.js} +2 -2
  40. package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-sNdKdWVO.js.map} +1 -1
  41. package/dist/chunks/context-BDrfQ9bN.js +21 -0
  42. package/dist/chunks/context-BDrfQ9bN.js.map +1 -0
  43. package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-BNF3_SA8.js} +2 -2
  44. package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
  45. package/dist/chunks/events-CXQHDCs2.js +8 -0
  46. package/dist/chunks/events-CXQHDCs2.js.map +1 -0
  47. package/dist/chunks/file-explorer-header-D0TebSYR.js +962 -0
  48. package/dist/chunks/file-explorer-header-D0TebSYR.js.map +1 -0
  49. package/dist/chunks/file-explorer-provider-DpjC7uds.js +295 -0
  50. package/dist/chunks/file-explorer-provider-DpjC7uds.js.map +1 -0
  51. package/dist/chunks/globe-CsCgZcy5.js +16 -0
  52. package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
  53. package/dist/chunks/{guard-bTeM7wd7.js → guard-BOicu9dt.js} +2 -2
  54. package/dist/chunks/{guard-bTeM7wd7.js.map → guard-BOicu9dt.js.map} +1 -1
  55. package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
  56. package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
  57. package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
  58. package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
  59. package/dist/chunks/{login-button-Div4ZT4J.js → login-button-clTw_9tX.js} +2 -2
  60. package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-clTw_9tX.js.map} +1 -1
  61. package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CP-Pz70O.js} +2 -2
  62. package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CP-Pz70O.js.map} +1 -1
  63. package/dist/chunks/provide-z9U64q4m.js +111 -0
  64. package/dist/chunks/provide-z9U64q4m.js.map +1 -0
  65. package/dist/chunks/{provider-Dcd1NPYx.js → provider-Cuv3Kp6G.js} +4 -4
  66. package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-Cuv3Kp6G.js.map} +1 -1
  67. package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-DVmTw3RG.js} +20 -20
  68. package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
  69. package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-CRYLK-27.js} +42 -42
  70. package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-CRYLK-27.js.map} +1 -1
  71. package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-CexdMWj6.js} +2 -2
  72. package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-CexdMWj6.js.map} +1 -1
  73. package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
  74. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
  75. package/dist/chunks/{src-Dx7k_VIe.js → src-DQgHAH3d.js} +4579 -4542
  76. package/dist/chunks/src-DQgHAH3d.js.map +1 -0
  77. package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
  78. package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
  79. package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
  80. package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
  81. package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
  82. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  83. package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
  84. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  85. package/dist/components/access-control-modal.js +1 -1
  86. package/dist/components/account.js +1 -1
  87. package/dist/components/all.cjs.js +1 -1
  88. package/dist/components/all.esm.js +3 -0
  89. package/dist/components/avatar.js +1 -1
  90. package/dist/components/dialog-provider.js +1 -1
  91. package/dist/components/dialogs-root.js +1 -1
  92. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
  93. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  94. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
  95. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  96. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +310 -0
  97. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  98. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  99. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  100. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
  101. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  102. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
  103. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  104. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
  105. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  106. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +318 -0
  107. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  108. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  109. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  110. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
  111. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  112. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
  113. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  114. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
  115. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  116. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +356 -0
  117. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  118. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  119. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  120. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
  121. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  122. package/dist/components/file-explorer-header/index.cjs.js +2 -0
  123. package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
  124. package/dist/components/file-explorer-header/index.d.ts +4 -0
  125. package/dist/components/file-explorer-header/index.d.ts.map +1 -0
  126. package/dist/components/file-explorer-header/index.esm.js +6 -0
  127. package/dist/components/file-explorer-header/index.esm.js.map +1 -0
  128. package/dist/components/file-explorer-header/types.d.ts +11 -0
  129. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  130. package/dist/components/file-explorer-header.js +1 -0
  131. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
  132. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
  133. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
  134. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
  135. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +297 -0
  136. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
  137. package/dist/components/file-explorer-provider/index.cjs.js +2 -0
  138. package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
  139. package/dist/components/file-explorer-provider/index.d.ts +4 -0
  140. package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
  141. package/dist/components/file-explorer-provider/index.esm.js +6 -0
  142. package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
  143. package/dist/components/file-explorer-provider.js +1 -0
  144. package/dist/components/guard.js +1 -1
  145. package/dist/components/index.cjs.js +1 -1
  146. package/dist/components/index.d.ts.map +1 -1
  147. package/dist/components/index.esm.js +1 -0
  148. package/dist/components/login-button.js +1 -1
  149. package/dist/components/login-modal.js +1 -1
  150. package/dist/components/logout-button.js +1 -1
  151. package/dist/components/provider.js +1 -1
  152. package/dist/components/rdf-form.js +1 -1
  153. package/dist/components/rdf-input.js +1 -1
  154. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  155. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  156. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
  157. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  158. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
  159. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  160. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +344 -0
  161. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  162. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
  163. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
  164. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
  165. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
  166. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
  167. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
  168. package/dist/components/resource-actions-menu/index.cjs.js +1 -0
  169. package/dist/components/resource-actions-menu/index.d.ts +2 -0
  170. package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
  171. package/dist/components/resource-actions-menu/index.esm.js +1 -0
  172. package/dist/components/resource-actions-menu.js +1 -0
  173. package/dist/components/signup-button.js +1 -1
  174. package/dist/components.js +15 -12
  175. package/dist/index.cjs.js +1 -1
  176. package/dist/index.cjs.js.map +1 -1
  177. package/dist/index.d.ts +1 -1
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.esm.js +8 -4
  180. package/dist/index.esm.js.map +1 -1
  181. package/dist/index.js +11 -9
  182. package/dist/lib/context/noopContext.cjs.js +2 -0
  183. package/dist/lib/context/noopContext.cjs.js.map +1 -0
  184. package/dist/lib/context/noopContext.d.ts +2 -0
  185. package/dist/lib/context/noopContext.d.ts.map +1 -0
  186. package/dist/lib/context/noopContext.esm.js +18 -0
  187. package/dist/lib/context/noopContext.esm.js.map +1 -0
  188. package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
  189. package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
  190. package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
  191. package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
  192. package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
  193. package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
  194. package/dist/lib/file-explorer/context.cjs.js +1 -1
  195. package/dist/lib/file-explorer/context.cjs.js.map +1 -1
  196. package/dist/lib/file-explorer/context.d.ts +12 -14
  197. package/dist/lib/file-explorer/context.d.ts.map +1 -1
  198. package/dist/lib/file-explorer/context.esm.js +4 -3
  199. package/dist/lib/file-explorer/context.esm.js.map +1 -1
  200. package/dist/lib/file-explorer/events.cjs.js +2 -0
  201. package/dist/lib/file-explorer/events.cjs.js.map +1 -0
  202. package/dist/lib/file-explorer/events.d.ts +16 -0
  203. package/dist/lib/file-explorer/events.d.ts.map +1 -0
  204. package/dist/lib/file-explorer/events.esm.js +8 -0
  205. package/dist/lib/file-explorer/events.esm.js.map +1 -0
  206. package/dist/lib/file-explorer/index.cjs.js +1 -0
  207. package/dist/lib/file-explorer/index.d.ts +5 -0
  208. package/dist/lib/file-explorer/index.d.ts.map +1 -0
  209. package/dist/lib/file-explorer/index.esm.js +5 -0
  210. package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
  211. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
  212. package/dist/lib/file-explorer/relevant-panes.d.ts +22 -0
  213. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
  214. package/dist/lib/file-explorer/relevant-panes.esm.js +23 -0
  215. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
  216. package/dist/loader.js +11 -9
  217. package/dist/solid-ui.js +211 -107
  218. package/dist/solid-ui.min.js +211 -107
  219. package/dist/solid-ui.min.js.map +1 -1
  220. package/dist/theme.css +1 -1
  221. package/dist/utils/podUtils.cjs.js +2 -0
  222. package/dist/utils/podUtils.cjs.js.map +1 -0
  223. package/dist/utils/podUtils.d.ts +6 -0
  224. package/dist/utils/podUtils.d.ts.map +1 -0
  225. package/dist/utils/podUtils.esm.js +22 -0
  226. package/dist/utils/podUtils.esm.js.map +1 -0
  227. package/dist/utils/webIdUtils.cjs.js +1 -0
  228. package/dist/utils/webIdUtils.d.ts +7 -0
  229. package/dist/utils/webIdUtils.d.ts.map +1 -0
  230. package/dist/utils/webIdUtils.esm.js +3 -0
  231. package/package.json +3 -3
  232. package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
  233. package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
  234. package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
  235. package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
  236. package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
@@ -0,0 +1,962 @@
1
+ import { E as e, t } from "./solidLogicSingleton.esm-BXyHD7mn.js";
2
+ import { u as n } from "./style-CXaw5EYi.js";
3
+ import { S as r } from "./widgets-BBEQu0CS.js";
4
+ import { b as i, c as a, g as o, i as s, o as c, p as l, r as u, u as d } from "./components-C8c2Ucm5.js";
5
+ import { t as f } from "./query-DjAOg-tk.js";
6
+ import "./button-D6qO2idW.js";
7
+ import { n as p, t as m } from "./context-BDrfQ9bN.js";
8
+ import { n as h, t as g } from "./events-CXQHDCs2.js";
9
+ import "./globe-CsCgZcy5.js";
10
+ import { n as _, r as v } from "./ResourceActionsMenu-Bllpr4M5.js";
11
+ // ~icons/lucide/share-2
12
+ var y = class extends HTMLElement {
13
+ constructor() {
14
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"m8.59 13.51l6.83 3.98m-.01-10.98l-6.82 3.98\"/></g></svg>";
15
+ }
16
+ };
17
+ customElements.get("icon-lucide-share-2") || customElements.define("icon-lucide-share-2", y);
18
+ // src/components/file-explorer-header/FileExplorerHeader.styles.css
19
+ var b = l`:host{& header{box-sizing:border-box;text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}}`, x = class extends HTMLElement {
20
+ constructor() {
21
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><circle cx=\"12\" cy=\"16\" r=\"1\"/><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 10 0v3\"/></g></svg>";
22
+ }
23
+ };
24
+ customElements.get("icon-lucide-lock-keyhole") || customElements.define("icon-lucide-lock-keyhole", x);
25
+ // ~icons/lucide/arrow-left
26
+ var S = class extends HTMLElement {
27
+ constructor() {
28
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m12 19l-7-7l7-7m7 7H5\"/></svg>";
29
+ }
30
+ };
31
+ customElements.get("icon-lucide-arrow-left") || customElements.define("icon-lucide-arrow-left", S);
32
+ // src/components/file-explorer-header/FileExplorerHeaderSummary.styles.css
33
+ var C = l`:host{& .file-explorer-header-summary{text-align:left;flex-wrap:wrap;flex:auto;justify-content:flex-start;align-items:center;gap:6px;min-width:0;display:flex}& h1{color:var(--solid-ui-color-gray-700,#364153);font-size:var(--solid-ui-font-size-xl,1.25rem);align-items:center;gap:8px;margin:0;font-weight:500;display:flex}& .resource-info{flex-direction:column;min-width:0;display:flex}& .container-info{flex-direction:row;gap:10px;min-width:0;display:flex}& .pane-icon{aspect-ratio:1;justify-content:center;align-items:center;width:40px;height:40px;padding:7.5px 7px 6.5px;display:flex}& .pane-icon img{object-fit:contain;width:100%;height:100%;display:block}& p{color:var(--solid-ui-gray-500,#6a7282);font-size:var(--solid-ui-font-size-xs,.75rem);align-items:center;gap:5px;font-weight:500;display:flex}& .public{color:var(--blue-400,#51a2ff);background:var(--blue-50,#eff6ff);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-globe{stroke-width:1.021px;stroke:var(--blue-400,#51a2ff)}& .private{color:var(--yellow-600,#d08700);background:var(--yellow-100,#fef9c2);border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:2px 5px;display:flex}& icon-lucide-lock-keyhole{stroke-width:1.021px;stroke:var(--yellow-600,#d08700)}& icon-lucide-globe,& icon-lucide-lock-keyhole{width:.875rem;height:.875rem}& .resource-date{font-size:inherit}& icon-lucide-arrow-left{width:1.125rem;height:1.125rem}@media (width<=600px){& .file-explorer-header-summary{gap:7px}& h1{font-size:14px}& .pane-icon{aspect-ratio:1;flex-shrink:0;width:18.2px;height:18.2px;padding:0}& p{font-size:14px}& .resource-date{font-size:10px}& .public,& .private{font-size:9px}& icon-lucide-arrow-left{aspect-ratio:5/6;flex-shrink:0;width:15px;height:18px}}}`, w, T, E, D, O, k, A, j, ee, te, ne, re, ie, ae, oe, se, ce, le, ue, de, fe, pe, me, he, ge;
34
+ function M(e, t, n) {
35
+ _e(e, t), t.set(e, n);
36
+ }
37
+ function _e(e, t) {
38
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
39
+ }
40
+ function N(e, t, n) {
41
+ return e.set(ve(e, t), n), n;
42
+ }
43
+ function P(e, t) {
44
+ return e.get(ve(e, t));
45
+ }
46
+ function ve(e, t, n) {
47
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
48
+ throw TypeError("Private element is not present on this object");
49
+ }
50
+ function F(e, t, n) {
51
+ return (t = be(t)) in e ? Object.defineProperty(e, t, {
52
+ value: n,
53
+ enumerable: !0,
54
+ configurable: !0,
55
+ writable: !0
56
+ }) : e[t] = n, e;
57
+ }
58
+ function ye(e, t, n, r, i, a) {
59
+ function o(e, t, n) {
60
+ return function(r, i) {
61
+ return n && n(r), e[t].call(r, i);
62
+ };
63
+ }
64
+ function s(e, t) {
65
+ for (var n = 0; n < e.length; n++) e[n].call(t);
66
+ return t;
67
+ }
68
+ function c(e, t, n, r) {
69
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
70
+ return e;
71
+ }
72
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
73
+ function h(e) {
74
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
75
+ }
76
+ var g, _ = t[0], v = t[3], y = !l;
77
+ if (!y) {
78
+ n || Array.isArray(_) || (_ = [_]);
79
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
80
+ d ? (f || p ? b = {
81
+ get: Se(function() {
82
+ return v(this);
83
+ }, r, "get"),
84
+ set: function(e) {
85
+ t[4](this, e);
86
+ }
87
+ } : b[S] = v, f || Se(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
88
+ }
89
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
90
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
91
+ kind: [
92
+ "field",
93
+ "accessor",
94
+ "method",
95
+ "getter",
96
+ "setter",
97
+ "class"
98
+ ][i],
99
+ name: r,
100
+ metadata: a,
101
+ addInitializer: function(e, t) {
102
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
103
+ c(t, "An initializer", "be", !0), s.push(t);
104
+ }.bind(null, D)
105
+ };
106
+ try {
107
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
108
+ else {
109
+ var k, A;
110
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
111
+ return h(e), b.value;
112
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
113
+ return e[r];
114
+ }, (i < 2 || i === 4) && (A = function(e, t) {
115
+ e[r] = t;
116
+ }));
117
+ var j = O.access = { has: d ? m.bind() : function(e) {
118
+ return r in e;
119
+ } };
120
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
121
+ get: b.get,
122
+ set: b.set
123
+ } : b[S], O), p) {
124
+ 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);
125
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
126
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
127
+ }
128
+ } finally {
129
+ D.v = !0;
130
+ }
131
+ }
132
+ return (f || p) && l.push(function(e, t) {
133
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
134
+ return t;
135
+ }), 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;
136
+ }
137
+ function u(e, t) {
138
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
139
+ configurable: !0,
140
+ enumerable: !0,
141
+ value: t
142
+ });
143
+ }
144
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
145
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
146
+ var i, a, o = [], c = function(t) {
147
+ return Ce(t) === e;
148
+ }, u = /* @__PURE__ */ new Map();
149
+ function d(e) {
150
+ e && o.push(s.bind(null, e));
151
+ }
152
+ for (var f = 0; f < t.length; f++) {
153
+ var p = t[f];
154
+ if (Array.isArray(p)) {
155
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
156
+ if (!y && !g) {
157
+ var x = u.get(b);
158
+ 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);
159
+ u.set(b, !(m > 2) || m);
160
+ }
161
+ l(v ? e : e.prototype, p, _, g ? "#" + h : be(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
162
+ }
163
+ }
164
+ return d(i), d(a), o;
165
+ }(e, t, i, f);
166
+ return n.length || u(e, f), {
167
+ e: p,
168
+ get c() {
169
+ var t = [];
170
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
171
+ }
172
+ };
173
+ }
174
+ function be(e) {
175
+ var t = xe(e, "string");
176
+ return typeof t == "symbol" ? t : t + "";
177
+ }
178
+ function xe(e, t) {
179
+ if (typeof e != "object" || !e) return e;
180
+ var n;
181
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
182
+ var r = n.call(e, t || "default");
183
+ if (typeof r != "object") return r;
184
+ throw TypeError("@@toPrimitive must return a primitive value.");
185
+ }
186
+ return (t === "string" ? String : Number)(e);
187
+ }
188
+ function Se(e, t, n) {
189
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
190
+ try {
191
+ Object.defineProperty(e, "name", {
192
+ configurable: !0,
193
+ value: n ? n + " " + t : t
194
+ });
195
+ } catch {}
196
+ return e;
197
+ }
198
+ function Ce(e) {
199
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
200
+ return e;
201
+ }
202
+ function we(e) {
203
+ return e;
204
+ }
205
+ ne = [o("solid-ui-file-explorer-header-summary")];
206
+ var Te;
207
+ new (he = (E = /*#__PURE__*/ new WeakMap(), D = /*#__PURE__*/ new WeakMap(), O = /*#__PURE__*/ new WeakMap(), k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap(), j = /*#__PURE__*/ new WeakMap(), ge = (re = i({
208
+ context: p,
209
+ subscribe: !0
210
+ }), ae = s({ attribute: !1 }), se = s({ attribute: !1 }), le = s({ attribute: !1 }), de = u(), pe = f("h1"), "_draggableSubjectUri"), T = class extends c {
211
+ constructor(...e) {
212
+ super(...e), F(this, ge, void ee(this)), F(this, "_paneIconGeneration", 0), M(this, E, ie(this, m)), M(this, D, oe(this)), M(this, O, ce(this)), M(this, k, ue(this, {
213
+ modified: void 0,
214
+ isPublic: !1
215
+ })), M(this, A, fe(this, void 0)), M(this, j, me(this, null));
216
+ }
217
+ get fileExplorerContext() {
218
+ return P(E, this);
219
+ }
220
+ set fileExplorerContext(e) {
221
+ N(E, this, e);
222
+ }
223
+ get paneIcon() {
224
+ return P(D, this);
225
+ }
226
+ set paneIcon(e) {
227
+ N(D, this, e);
228
+ }
229
+ get onBackClick() {
230
+ return P(O, this);
231
+ }
232
+ set onBackClick(e) {
233
+ N(O, this, e);
234
+ }
235
+ get responseMetadata() {
236
+ return P(k, this);
237
+ }
238
+ set responseMetadata(e) {
239
+ N(k, this, e);
240
+ }
241
+ get resolvedPaneIcon() {
242
+ return P(A, this);
243
+ }
244
+ set resolvedPaneIcon(e) {
245
+ N(A, this, e);
246
+ }
247
+ get titleHeading() {
248
+ return P(j, this);
249
+ }
250
+ set titleHeading(e) {
251
+ N(j, this, e);
252
+ }
253
+ formatModifiedDate(e) {
254
+ if (!e) return "";
255
+ let t = new Date(e);
256
+ if (Number.isNaN(t.getTime())) return e;
257
+ let n = new Intl.DateTimeFormat("en-GB", {
258
+ day: "2-digit",
259
+ month: "short",
260
+ year: "numeric",
261
+ hour: "2-digit",
262
+ minute: "2-digit",
263
+ hour12: !0
264
+ }).formatToParts(t), r = (e) => n.find((t) => t.type === e)?.value ?? "";
265
+ return `${r("day")} ${r("month")}, ${r("year")} at ${r("hour")}:${r("minute")} ${r("dayPeriod").toUpperCase()}`;
266
+ }
267
+ willUpdate(e) {
268
+ if (e.has("paneIcon")) {
269
+ let e = ++this._paneIconGeneration;
270
+ this.resolvedPaneIcon = void 0, this.resolvePaneIcon(this.paneIcon, e);
271
+ }
272
+ }
273
+ updated() {
274
+ this.titleHeading && this.fileExplorerContext?.subjectUri && this._draggableSubjectUri !== this.fileExplorerContext.subjectUri && (r(this.titleHeading, e(this.fileExplorerContext.subjectUri)), this._draggableSubjectUri = this.fileExplorerContext.subjectUri);
275
+ }
276
+ async resolvePaneIcon(e, t) {
277
+ try {
278
+ if (e == null) return;
279
+ let n = await e;
280
+ t === this._paneIconGeneration && (this.resolvedPaneIcon = n ?? void 0);
281
+ } catch (e) {
282
+ t === this._paneIconGeneration && (this.resolvedPaneIcon = void 0, console.warn("file-explorer-header-summary: failed to resolve pane icon", e));
283
+ }
284
+ }
285
+ renderContainerResourceHeader(e, t) {
286
+ let n = _(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0;
287
+ return d`
288
+ <div class="container-info">
289
+ <h1>
290
+ <span>${e}</span>
291
+ </h1>
292
+ <p>
293
+ ${n} items
294
+ ${t ? d`<span class="public"><icon-lucide-globe aria-hidden="true"></icon-lucide-globe><span class="sr-only">Public</span></span>` : d`<span class="private"><icon-lucide-lock-keyhole aria-hidden="true"></icon-lucide-lock-keyhole><span class="sr-only">Private</span></span>`}
295
+ </p>
296
+ </div>
297
+ `;
298
+ }
299
+ renderResourceHeader(e, t) {
300
+ let n = this.formatModifiedDate(this.responseMetadata.modified);
301
+ return d`
302
+ <div class="resource-info">
303
+ <h1>
304
+ <span>${e}</span>
305
+ </h1>
306
+ <p><span class="resource-date">${n}</span> ${t ? d`<span class="public"><icon-lucide-globe></icon-lucide-globe> Public</span>` : d`<span class="private"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>
307
+ </div>
308
+ `;
309
+ }
310
+ render() {
311
+ let t = this.fileExplorerContext?.subjectUri ? e(this.fileExplorerContext.subjectUri) : void 0, r = t ? n(t) : "", i = this.responseMetadata.isPublic, a = v(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri);
312
+ return d`
313
+ <div class="file-explorer-header-summary">
314
+ <solid-ui-button
315
+ variant="ghost"
316
+ @click=${this.onBackClick}
317
+ title="Back"
318
+ >
319
+ <icon-lucide-arrow-left></icon-lucide-arrow-left>
320
+ <span class="sr-only">Back</span>
321
+ </solid-ui-button>
322
+ <span class="pane-icon">
323
+ ${this.resolvedPaneIcon ? d`<img src=${this.resolvedPaneIcon} alt="" />` : ""}
324
+ </span>
325
+ ${a ? this.renderContainerResourceHeader(r, i) : this.renderResourceHeader(r, i)}
326
+ </div>
327
+ </div>
328
+ `;
329
+ }
330
+ }, {e: [ie, oe, ce, ue, fe, me, ee], c: [Te, te]} = ye(T, [
331
+ [
332
+ re,
333
+ 1,
334
+ "fileExplorerContext"
335
+ ],
336
+ [
337
+ ae,
338
+ 1,
339
+ "paneIcon"
340
+ ],
341
+ [
342
+ se,
343
+ 1,
344
+ "onBackClick"
345
+ ],
346
+ [
347
+ le,
348
+ 1,
349
+ "responseMetadata"
350
+ ],
351
+ [
352
+ de,
353
+ 1,
354
+ "resolvedPaneIcon"
355
+ ],
356
+ [
357
+ pe,
358
+ 1,
359
+ "titleHeading"
360
+ ]
361
+ ], ne, 0, void 0, c), T), w = class extends we {
362
+ constructor() {
363
+ super(Te), F(this, "styles", C), te();
364
+ }
365
+ }, F(w, he, void 0), w)();
366
+ // src/components/file-explorer-header/FileExplorerHeaderControls.styles.css
367
+ var Ee = l`:host{flex:0 auto;min-width:0;& div{text-align:right;flex:none;justify-content:flex-end;align-items:center;gap:6px;display:flex}& div>*{flex:0 auto}& .file-explorer-header-action-button{width:var(--solid-ui-clickable-area,42px);height:var(--solid-ui-clickable-area,42px);padding:0}& .dirtyIndicator{color:#92400e;white-space:nowrap;background:#fffbeb;border:1px solid #f59e0b;border-radius:999px;align-items:center;padding:4px 8px;font-size:.72rem;font-weight:600;line-height:1;display:inline-flex}& icon-lucide-user-round-cog,& icon-lucide-pencil{width:16px;height:16px}@media (width<=900px){& div{padding-right:3px}}@media (width<=600px){& div{justify-content:flex-start;gap:5px}& .file-explorer-header-action-button{display:none}& icon-lucide-ellipsis-vertical{aspect-ratio:1;flex-shrink:0;width:15.36px;height:15.36px}}}`, De, Oe, I, L, R, z, B, ke, Ae, je, Me, Ne, Pe, Fe, Ie, Le, Re, ze, Be, Ve, He, Ue;
368
+ function V(e, t, n) {
369
+ We(e, t), t.set(e, n);
370
+ }
371
+ function We(e, t) {
372
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
373
+ }
374
+ function H(e, t, n) {
375
+ return e.set(Ge(e, t), n), n;
376
+ }
377
+ function U(e, t) {
378
+ return e.get(Ge(e, t));
379
+ }
380
+ function Ge(e, t, n) {
381
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
382
+ throw TypeError("Private element is not present on this object");
383
+ }
384
+ function W(e, t, n) {
385
+ return (t = qe(t)) in e ? Object.defineProperty(e, t, {
386
+ value: n,
387
+ enumerable: !0,
388
+ configurable: !0,
389
+ writable: !0
390
+ }) : e[t] = n, e;
391
+ }
392
+ function Ke(e, t, n, r, i, a) {
393
+ function o(e, t, n) {
394
+ return function(r, i) {
395
+ return n && n(r), e[t].call(r, i);
396
+ };
397
+ }
398
+ function s(e, t) {
399
+ for (var n = 0; n < e.length; n++) e[n].call(t);
400
+ return t;
401
+ }
402
+ function c(e, t, n, r) {
403
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
404
+ return e;
405
+ }
406
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
407
+ function h(e) {
408
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
409
+ }
410
+ var g, _ = t[0], v = t[3], y = !l;
411
+ if (!y) {
412
+ n || Array.isArray(_) || (_ = [_]);
413
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
414
+ d ? (f || p ? b = {
415
+ get: Ye(function() {
416
+ return v(this);
417
+ }, r, "get"),
418
+ set: function(e) {
419
+ t[4](this, e);
420
+ }
421
+ } : b[S] = v, f || Ye(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
422
+ }
423
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
424
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
425
+ kind: [
426
+ "field",
427
+ "accessor",
428
+ "method",
429
+ "getter",
430
+ "setter",
431
+ "class"
432
+ ][i],
433
+ name: r,
434
+ metadata: a,
435
+ addInitializer: function(e, t) {
436
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
437
+ c(t, "An initializer", "be", !0), s.push(t);
438
+ }.bind(null, D)
439
+ };
440
+ try {
441
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
442
+ else {
443
+ var k, A;
444
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
445
+ return h(e), b.value;
446
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
447
+ return e[r];
448
+ }, (i < 2 || i === 4) && (A = function(e, t) {
449
+ e[r] = t;
450
+ }));
451
+ var j = O.access = { has: d ? m.bind() : function(e) {
452
+ return r in e;
453
+ } };
454
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
455
+ get: b.get,
456
+ set: b.set
457
+ } : b[S], O), p) {
458
+ 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);
459
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
460
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
461
+ }
462
+ } finally {
463
+ D.v = !0;
464
+ }
465
+ }
466
+ return (f || p) && l.push(function(e, t) {
467
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
468
+ return t;
469
+ }), 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;
470
+ }
471
+ function u(e, t) {
472
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
473
+ configurable: !0,
474
+ enumerable: !0,
475
+ value: t
476
+ });
477
+ }
478
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
479
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
480
+ var i, a, o = [], c = function(t) {
481
+ return Xe(t) === e;
482
+ }, u = /* @__PURE__ */ new Map();
483
+ function d(e) {
484
+ e && o.push(s.bind(null, e));
485
+ }
486
+ for (var f = 0; f < t.length; f++) {
487
+ var p = t[f];
488
+ if (Array.isArray(p)) {
489
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
490
+ if (!y && !g) {
491
+ var x = u.get(b);
492
+ 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);
493
+ u.set(b, !(m > 2) || m);
494
+ }
495
+ l(v ? e : e.prototype, p, _, g ? "#" + h : qe(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
496
+ }
497
+ }
498
+ return d(i), d(a), o;
499
+ }(e, t, i, f);
500
+ return n.length || u(e, f), {
501
+ e: p,
502
+ get c() {
503
+ var t = [];
504
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
505
+ }
506
+ };
507
+ }
508
+ function qe(e) {
509
+ var t = Je(e, "string");
510
+ return typeof t == "symbol" ? t : t + "";
511
+ }
512
+ function Je(e, t) {
513
+ if (typeof e != "object" || !e) return e;
514
+ var n;
515
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
516
+ var r = n.call(e, t || "default");
517
+ if (typeof r != "object") return r;
518
+ throw TypeError("@@toPrimitive must return a primitive value.");
519
+ }
520
+ return (t === "string" ? String : Number)(e);
521
+ }
522
+ function Ye(e, t, n) {
523
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
524
+ try {
525
+ Object.defineProperty(e, "name", {
526
+ configurable: !0,
527
+ value: n ? n + " " + t : t
528
+ });
529
+ } catch {}
530
+ return e;
531
+ }
532
+ function Xe(e) {
533
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
534
+ return e;
535
+ }
536
+ function Ze(e) {
537
+ return e;
538
+ }
539
+ je = [o("solid-ui-file-explorer-header-controls")];
540
+ var Qe;
541
+ new (He = (I = /*#__PURE__*/ new WeakMap(), L = /*#__PURE__*/ new WeakMap(), R = /*#__PURE__*/ new WeakMap(), z = /*#__PURE__*/ new WeakMap(), B = /*#__PURE__*/ new WeakMap(), Ue = (Me = i({
542
+ context: p,
543
+ subscribe: !0
544
+ }), Pe = s({ attribute: !1 }), Ie = s({ type: Boolean }), Re = s({ type: Boolean }), Be = u(), "mobileMediaQuery"), Oe = class extends c {
545
+ constructor(...e) {
546
+ super(...e), W(this, Ue, void ke(this)), W(this, "mobileQuery", "(max-width: 600px)"), W(this, "handleMobileMediaChange", (e) => {
547
+ this.isMobile = e.matches;
548
+ }), V(this, I, Ne(this, m)), V(this, L, Fe(this, [])), V(this, R, Le(this, !1)), V(this, z, ze(this, !1)), V(this, B, Ve(this, typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(max-width: 600px)").matches)), W(this, "handleManageAccess", () => {
549
+ let e = this.fileExplorerContext.subjectUri;
550
+ e && this.dispatchEvent(new CustomEvent(h, {
551
+ bubbles: !0,
552
+ composed: !0,
553
+ detail: { subjectUri: e }
554
+ }));
555
+ });
556
+ }
557
+ get fileExplorerContext() {
558
+ return U(I, this);
559
+ }
560
+ set fileExplorerContext(e) {
561
+ H(I, this, e);
562
+ }
563
+ get menuItems() {
564
+ return U(L, this);
565
+ }
566
+ set menuItems(e) {
567
+ H(L, this, e);
568
+ }
569
+ get canEdit() {
570
+ return U(R, this);
571
+ }
572
+ set canEdit(e) {
573
+ H(R, this, e);
574
+ }
575
+ get canManageAccess() {
576
+ return U(z, this);
577
+ }
578
+ set canManageAccess(e) {
579
+ H(z, this, e);
580
+ }
581
+ get isMobile() {
582
+ return U(B, this);
583
+ }
584
+ set isMobile(e) {
585
+ H(B, this, e);
586
+ }
587
+ connectedCallback() {
588
+ super.connectedCallback(), typeof window < "u" && typeof window.matchMedia == "function" && (this.mobileMediaQuery = window.matchMedia(this.mobileQuery), this.isMobile = this.mobileMediaQuery.matches, this.mobileMediaQuery.addEventListener("change", this.handleMobileMediaChange));
589
+ }
590
+ disconnectedCallback() {
591
+ this.mobileMediaQuery?.removeEventListener("change", this.handleMobileMediaChange), this.mobileMediaQuery = void 0, super.disconnectedCallback();
592
+ }
593
+ getEditTooltip() {
594
+ return this.canEdit ? "Edit" : "No Access";
595
+ }
596
+ renderDirtyIndicator() {
597
+ return this.fileExplorerContext.isDirty ? d`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>` : a;
598
+ }
599
+ render() {
600
+ let e = v(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri), t = this.fileExplorerContext.canEdit;
601
+ return d`
602
+ <div>
603
+ ${this.renderDirtyIndicator()}
604
+ ${!e && !this.isMobile && this.canManageAccess ? d`
605
+ <solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.handleManageAccess}>
606
+ <icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
607
+ <span class="sr-only">Manage access</span>
608
+ </solid-ui-button>
609
+ ${t ? d`
610
+ <solid-ui-button
611
+ class="file-explorer-header-action-button"
612
+ variant="ghost"
613
+ title=${this.getEditTooltip()}
614
+ ?disabled=${!this.canEdit}
615
+ @click=${this.fileExplorerContext.beginEditing}
616
+ >
617
+ <icon-lucide-pencil slot="icon"></icon-lucide-pencil>
618
+ <span class="sr-only">Edit</span>
619
+ </solid-ui-button>
620
+ ` : a}
621
+ ` : a}
622
+ <solid-ui-resource-actions-menu
623
+ .store=${this.fileExplorerContext.store}
624
+ .handleAccessClick=${this.handleManageAccess}
625
+ .handleEditingClick=${this.fileExplorerContext.beginEditing}
626
+ .paneSupportsEditing=${this.fileExplorerContext.canEdit}
627
+ .canEdit=${this.canEdit}
628
+ .canManageAccess=${this.canManageAccess}
629
+ .subjectUri=${this.fileExplorerContext.subjectUri}
630
+ .menuItems=${this.menuItems}
631
+ .isMobile=${this.isMobile}
632
+ ></solid-ui-resource-actions-menu>
633
+ </div>
634
+ `;
635
+ }
636
+ }, {e: [Ne, Fe, Le, ze, Ve, ke], c: [Qe, Ae]} = Ke(Oe, [
637
+ [
638
+ Me,
639
+ 1,
640
+ "fileExplorerContext"
641
+ ],
642
+ [
643
+ Pe,
644
+ 1,
645
+ "menuItems"
646
+ ],
647
+ [
648
+ Ie,
649
+ 1,
650
+ "canEdit"
651
+ ],
652
+ [
653
+ Re,
654
+ 1,
655
+ "canManageAccess"
656
+ ],
657
+ [
658
+ Be,
659
+ 1,
660
+ "isMobile"
661
+ ]
662
+ ], je, 0, void 0, c), Oe), De = class extends Ze {
663
+ constructor() {
664
+ super(Qe), W(this, "styles", Ee), Ae();
665
+ }
666
+ }, W(De, He, void 0), De)();
667
+ // src/components/file-explorer-header/FileExplorerHeader.ts
668
+ var $e, et, G, K, q, J, tt, nt, rt, it, at, ot, st, ct, lt, ut, dt, ft, pt;
669
+ function Y(e, t, n) {
670
+ mt(e, t), t.set(e, n);
671
+ }
672
+ function mt(e, t) {
673
+ if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
674
+ }
675
+ function X(e, t, n) {
676
+ return e.set(ht(e, t), n), n;
677
+ }
678
+ function Z(e, t) {
679
+ return e.get(ht(e, t));
680
+ }
681
+ function ht(e, t, n) {
682
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
683
+ throw TypeError("Private element is not present on this object");
684
+ }
685
+ function Q(e, t, n) {
686
+ return (t = _t(t)) in e ? Object.defineProperty(e, t, {
687
+ value: n,
688
+ enumerable: !0,
689
+ configurable: !0,
690
+ writable: !0
691
+ }) : e[t] = n, e;
692
+ }
693
+ function gt(e, t, n, r, i, a) {
694
+ function o(e, t, n) {
695
+ return function(r, i) {
696
+ return n && n(r), e[t].call(r, i);
697
+ };
698
+ }
699
+ function s(e, t) {
700
+ for (var n = 0; n < e.length; n++) e[n].call(t);
701
+ return t;
702
+ }
703
+ function c(e, t, n, r) {
704
+ if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
705
+ return e;
706
+ }
707
+ function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
708
+ function h(e) {
709
+ if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
710
+ }
711
+ var g, _ = t[0], v = t[3], y = !l;
712
+ if (!y) {
713
+ n || Array.isArray(_) || (_ = [_]);
714
+ var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
715
+ d ? (f || p ? b = {
716
+ get: yt(function() {
717
+ return v(this);
718
+ }, r, "get"),
719
+ set: function(e) {
720
+ t[4](this, e);
721
+ }
722
+ } : b[S] = v, f || yt(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
723
+ }
724
+ for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
725
+ var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
726
+ kind: [
727
+ "field",
728
+ "accessor",
729
+ "method",
730
+ "getter",
731
+ "setter",
732
+ "class"
733
+ ][i],
734
+ name: r,
735
+ metadata: a,
736
+ addInitializer: function(e, t) {
737
+ if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
738
+ c(t, "An initializer", "be", !0), s.push(t);
739
+ }.bind(null, D)
740
+ };
741
+ try {
742
+ if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
743
+ else {
744
+ var k, A;
745
+ O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
746
+ return h(e), b.value;
747
+ } : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
748
+ return e[r];
749
+ }, (i < 2 || i === 4) && (A = function(e, t) {
750
+ e[r] = t;
751
+ }));
752
+ var j = O.access = { has: d ? m.bind() : function(e) {
753
+ return r in e;
754
+ } };
755
+ if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
756
+ get: b.get,
757
+ set: b.set
758
+ } : b[S], O), p) {
759
+ 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);
760
+ else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
761
+ } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
762
+ }
763
+ } finally {
764
+ D.v = !0;
765
+ }
766
+ }
767
+ return (f || p) && l.push(function(e, t) {
768
+ for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
769
+ return t;
770
+ }), 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;
771
+ }
772
+ function u(e, t) {
773
+ return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
774
+ configurable: !0,
775
+ enumerable: !0,
776
+ value: t
777
+ });
778
+ }
779
+ if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
780
+ var f = Object.create(d ?? null), p = function(e, t, n, r) {
781
+ var i, a, o = [], c = function(t) {
782
+ return bt(t) === e;
783
+ }, u = /* @__PURE__ */ new Map();
784
+ function d(e) {
785
+ e && o.push(s.bind(null, e));
786
+ }
787
+ for (var f = 0; f < t.length; f++) {
788
+ var p = t[f];
789
+ if (Array.isArray(p)) {
790
+ var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
791
+ if (!y && !g) {
792
+ var x = u.get(b);
793
+ 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);
794
+ u.set(b, !(m > 2) || m);
795
+ }
796
+ l(v ? e : e.prototype, p, _, g ? "#" + h : _t(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
797
+ }
798
+ }
799
+ return d(i), d(a), o;
800
+ }(e, t, i, f);
801
+ return n.length || u(e, f), {
802
+ e: p,
803
+ get c() {
804
+ var t = [];
805
+ return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
806
+ }
807
+ };
808
+ }
809
+ function _t(e) {
810
+ var t = vt(e, "string");
811
+ return typeof t == "symbol" ? t : t + "";
812
+ }
813
+ function vt(e, t) {
814
+ if (typeof e != "object" || !e) return e;
815
+ var n;
816
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
817
+ var r = n.call(e, t || "default");
818
+ if (typeof r != "object") return r;
819
+ throw TypeError("@@toPrimitive must return a primitive value.");
820
+ }
821
+ return (t === "string" ? String : Number)(e);
822
+ }
823
+ function yt(e, t, n) {
824
+ typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
825
+ try {
826
+ Object.defineProperty(e, "name", {
827
+ configurable: !0,
828
+ value: n ? n + " " + t : t
829
+ });
830
+ } catch {}
831
+ return e;
832
+ }
833
+ function bt(e) {
834
+ if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
835
+ return e;
836
+ }
837
+ function xt(e) {
838
+ return e;
839
+ }
840
+ rt = [o("solid-ui-file-explorer-header")];
841
+ var $;
842
+ new (ft = (G = /*#__PURE__*/ new WeakMap(), K = /*#__PURE__*/ new WeakMap(), q = /*#__PURE__*/ new WeakMap(), J = /*#__PURE__*/ new WeakMap(), pt = (it = i({
843
+ context: p,
844
+ subscribe: !0
845
+ }), ot = s({ attribute: !1 }), ct = s({ attribute: !1 }), ut = u(), "_loadedMetadataForUri"), et = class extends c {
846
+ constructor(...e) {
847
+ super(...e), Q(this, pt, void tt(this)), Q(this, "_metadataGeneration", 0), Y(this, G, at(this, m)), Y(this, K, st(this, [])), Y(this, q, lt(this, void 0)), Y(this, J, dt(this, {
848
+ modified: void 0,
849
+ isPublic: !1,
850
+ canEdit: !1,
851
+ canManageAccess: !1,
852
+ aclUri: void 0
853
+ })), Q(this, "handleBack", () => {
854
+ this.dispatchEvent(new CustomEvent(g, {
855
+ bubbles: !0,
856
+ composed: !0,
857
+ detail: { subjectUri: this.fileExplorerContext.subjectUri }
858
+ }));
859
+ });
860
+ }
861
+ get fileExplorerContext() {
862
+ return Z(G, this);
863
+ }
864
+ set fileExplorerContext(e) {
865
+ X(G, this, e);
866
+ }
867
+ get menuItems() {
868
+ return Z(K, this);
869
+ }
870
+ set menuItems(e) {
871
+ X(K, this, e);
872
+ }
873
+ get paneIcon() {
874
+ return Z(q, this);
875
+ }
876
+ set paneIcon(e) {
877
+ X(q, this, e);
878
+ }
879
+ get responseMetadata() {
880
+ return Z(J, this);
881
+ }
882
+ set responseMetadata(e) {
883
+ X(J, this, e);
884
+ }
885
+ getDefaultResponseMetadata() {
886
+ return {
887
+ modified: void 0,
888
+ isPublic: !1,
889
+ canEdit: !1,
890
+ canManageAccess: !1,
891
+ aclUri: void 0
892
+ };
893
+ }
894
+ willUpdate() {
895
+ let e = this.fileExplorerContext?.subjectUri;
896
+ if (this.fileExplorerContext?.store && e && this._loadedMetadataForUri !== e) {
897
+ this._loadedMetadataForUri = e;
898
+ let t = ++this._metadataGeneration;
899
+ this.responseMetadata = this.getDefaultResponseMetadata(), this.loadResponseMetadata(e, t);
900
+ }
901
+ }
902
+ async loadResponseMetadata(n, r) {
903
+ try {
904
+ let i = await t.resource.fetchMetadata(e(n));
905
+ r === this._metadataGeneration && this.fileExplorerContext.subjectUri === n && (this.responseMetadata = {
906
+ modified: i.modified,
907
+ isPublic: i.access.isPublic,
908
+ canEdit: i.access.canEdit,
909
+ canManageAccess: i.access.canManageAccess,
910
+ aclUri: i.aclUri
911
+ });
912
+ } catch (e) {
913
+ r === this._metadataGeneration && this.fileExplorerContext.subjectUri === n && (this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", e));
914
+ }
915
+ }
916
+ render() {
917
+ return d`
918
+ <header>
919
+ <solid-ui-file-explorer-header-summary
920
+ .paneIcon=${this.paneIcon}
921
+ .onBackClick=${this.handleBack}
922
+ .responseMetadata=${this.responseMetadata}
923
+ ></solid-ui-file-explorer-header-summary>
924
+ <solid-ui-file-explorer-header-controls
925
+ .menuItems=${this.menuItems}
926
+ .canEdit=${this.responseMetadata.canEdit}
927
+ .canManageAccess=${this.responseMetadata.canManageAccess}
928
+ ></solid-ui-file-explorer-header-controls>
929
+ </header>
930
+ `;
931
+ }
932
+ }, {e: [at, st, lt, dt, tt], c: [$, nt]} = gt(et, [
933
+ [
934
+ it,
935
+ 1,
936
+ "fileExplorerContext"
937
+ ],
938
+ [
939
+ ot,
940
+ 1,
941
+ "menuItems"
942
+ ],
943
+ [
944
+ ct,
945
+ 1,
946
+ "paneIcon"
947
+ ],
948
+ [
949
+ ut,
950
+ 1,
951
+ "responseMetadata"
952
+ ]
953
+ ], rt, 0, void 0, c), et), $e = class extends xt {
954
+ constructor() {
955
+ super($), Q(this, "styles", b), nt();
956
+ }
957
+ }, Q($e, ft, void 0), $e)();
958
+ // src/components/file-explorer-header/index.ts
959
+ var St = $;
960
+ export { $ as n, St as t };
961
+
962
+ //# sourceMappingURL=file-explorer-header-D0TebSYR.js.map