solid-panes 5.0.0 → 5.1.0-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 (408) hide show
  1. package/README.md +67 -2
  2. package/dist/RDFXMLPane2.cjs.js.map +1 -1
  3. package/dist/_virtual/~icons/lucide/cake.cjs.js +2 -0
  4. package/dist/_virtual/~icons/lucide/cake.cjs.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/cake.esm.js +11 -0
  6. package/dist/_virtual/~icons/lucide/cake.esm.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/camera.cjs.js +2 -0
  8. package/dist/_virtual/~icons/lucide/camera.cjs.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/camera.esm.js +11 -0
  10. package/dist/_virtual/~icons/lucide/camera.esm.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/circle-user-round.cjs.js +2 -0
  12. package/dist/_virtual/~icons/lucide/circle-user-round.cjs.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/circle-user-round.esm.js +11 -0
  14. package/dist/_virtual/~icons/lucide/circle-user-round.esm.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/mail.cjs.js +2 -0
  16. package/dist/_virtual/~icons/lucide/mail.cjs.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/mail.esm.js +11 -0
  18. package/dist/_virtual/~icons/lucide/mail.esm.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/map-pin.cjs.js +2 -0
  20. package/dist/_virtual/~icons/lucide/map-pin.cjs.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/map-pin.esm.js +11 -0
  22. package/dist/_virtual/~icons/lucide/map-pin.esm.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/phone.cjs.js +2 -0
  24. package/dist/_virtual/~icons/lucide/phone.cjs.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/phone.esm.js +11 -0
  26. package/dist/_virtual/~icons/lucide/phone.esm.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/user-round-plus.cjs.js +2 -0
  28. package/dist/_virtual/~icons/lucide/user-round-plus.cjs.js.map +1 -0
  29. package/dist/_virtual/~icons/lucide/user-round-plus.esm.js +11 -0
  30. package/dist/_virtual/~icons/lucide/user-round-plus.esm.js.map +1 -0
  31. package/dist/_virtual/~icons/lucide/x.cjs.js +2 -0
  32. package/dist/_virtual/~icons/lucide/x.cjs.js.map +1 -0
  33. package/dist/_virtual/~icons/lucide/x.esm.js +11 -0
  34. package/dist/_virtual/~icons/lucide/x.esm.js.map +1 -0
  35. package/dist/audio/audioPane.cjs.js +1 -1
  36. package/dist/audio/audioPane.cjs.js.map +1 -1
  37. package/dist/audio/audioPane.esm.js +1 -5
  38. package/dist/audio/audioPane.esm.js.map +1 -1
  39. package/dist/classInstancePane.cjs.js.map +1 -1
  40. package/dist/components/editor-card/EditorCard.cjs.js +1 -1
  41. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
  42. package/dist/components/editor-card/EditorCard.esm.js +4 -7
  43. package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
  44. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +1 -1
  45. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
  46. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +2 -2
  47. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +1 -1
  48. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
  49. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +2 -2
  50. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +1 -1
  51. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
  52. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +2 -2
  53. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +5 -5
  54. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -1
  55. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -1
  56. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +97 -96
  57. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -1
  58. package/dist/components/header/Header.cjs.js +1 -1
  59. package/dist/components/header/Header.cjs.js.map +1 -1
  60. package/dist/components/header/Header.esm.js +2 -2
  61. package/dist/components/header/Header.styles.cjs.js +1 -1
  62. package/dist/components/header/Header.styles.cjs.js.map +1 -1
  63. package/dist/components/header/Header.styles.esm.js +1 -1
  64. package/dist/components/header/Header.styles.esm.js.map +1 -1
  65. package/dist/components/navbar/Navbar.cjs.js +1 -1
  66. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  67. package/dist/components/navbar/Navbar.d.ts +2 -0
  68. package/dist/components/navbar/Navbar.d.ts.map +1 -1
  69. package/dist/components/navbar/Navbar.esm.js +2 -2
  70. package/dist/components/navbar/Navbar.esm.js.map +1 -1
  71. package/dist/components/navbar/Navbar.styles.cjs.js +1 -1
  72. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
  73. package/dist/components/navbar/Navbar.styles.esm.js +1 -1
  74. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
  75. package/dist/components/profile-heading/ProfileHeading.cjs.js +95 -0
  76. package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -0
  77. package/dist/components/profile-heading/ProfileHeading.d.ts +45 -0
  78. package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -0
  79. package/dist/components/profile-heading/ProfileHeading.esm.js +480 -0
  80. package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -0
  81. package/dist/components/profile-heading/ProfileHeading.styles.cjs.js +2 -0
  82. package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -0
  83. package/dist/components/profile-heading/ProfileHeading.styles.esm.js +7 -0
  84. package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -0
  85. package/dist/components/profile-heading/editor/index.d.ts +3 -0
  86. package/dist/components/profile-heading/editor/index.d.ts.map +1 -0
  87. package/dist/components/profile-heading/editor/sections/contactInfo/types.d.ts +44 -0
  88. package/dist/components/profile-heading/editor/sections/contactInfo/types.d.ts.map +1 -0
  89. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +297 -0
  90. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -0
  91. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.d.ts +5 -0
  92. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.d.ts.map +1 -0
  93. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +642 -0
  94. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -0
  95. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js +2 -0
  96. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -0
  97. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.d.ts +4 -0
  98. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.d.ts.map +1 -0
  99. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js +16 -0
  100. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -0
  101. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js +2 -0
  102. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -0
  103. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.d.ts +5 -0
  104. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.d.ts.map +1 -0
  105. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js +76 -0
  106. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.esm.js.map +1 -0
  107. package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js +19 -0
  108. package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -0
  109. package/dist/components/profile-heading/editor/sections/heading/imagePreview.d.ts +2 -0
  110. package/dist/components/profile-heading/editor/sections/heading/imagePreview.d.ts.map +1 -0
  111. package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js +28 -0
  112. package/dist/components/profile-heading/editor/sections/heading/imagePreview.esm.js.map +1 -0
  113. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +2 -0
  114. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -0
  115. package/dist/components/profile-heading/editor/sections/heading/mutations.d.ts +4 -0
  116. package/dist/components/profile-heading/editor/sections/heading/mutations.d.ts.map +1 -0
  117. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +151 -0
  118. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js.map +1 -0
  119. package/dist/components/profile-heading/editor/sections/heading/types.d.ts +34 -0
  120. package/dist/components/profile-heading/editor/sections/heading/types.d.ts.map +1 -0
  121. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js +2 -0
  122. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -0
  123. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.d.ts +7 -0
  124. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.d.ts.map +1 -0
  125. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js +20 -0
  126. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -0
  127. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js +2 -0
  128. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -0
  129. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.d.ts +3 -0
  130. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.d.ts.map +1 -0
  131. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js +11 -0
  132. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.esm.js.map +1 -0
  133. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js +2 -0
  134. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -0
  135. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.d.ts +20 -0
  136. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.d.ts.map +1 -0
  137. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js +1291 -0
  138. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -0
  139. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js +2 -0
  140. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -0
  141. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.d.ts +45 -0
  142. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.d.ts.map +1 -0
  143. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js +211 -0
  144. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -0
  145. package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js +2 -0
  146. package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -0
  147. package/dist/components/profile-heading/editor/sections/shared/rowState.d.ts +21 -0
  148. package/dist/components/profile-heading/editor/sections/shared/rowState.d.ts.map +1 -0
  149. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js +18 -0
  150. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -0
  151. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js +2 -0
  152. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -0
  153. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.d.ts +5 -0
  154. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.d.ts.map +1 -0
  155. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js +18 -0
  156. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.esm.js.map +1 -0
  157. package/dist/components/profile-heading/editor/sections/shared/types.d.ts +31 -0
  158. package/dist/components/profile-heading/editor/sections/shared/types.d.ts.map +1 -0
  159. package/dist/components/profile-heading/editor/textUtils.cjs.js +2 -0
  160. package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -0
  161. package/dist/components/profile-heading/editor/textUtils.d.ts +6 -0
  162. package/dist/components/profile-heading/editor/textUtils.d.ts.map +1 -0
  163. package/dist/components/profile-heading/editor/textUtils.esm.js +26 -0
  164. package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -0
  165. package/dist/components/profile-heading/editor/texts/buttonTexts.d.ts +9 -0
  166. package/dist/components/profile-heading/editor/texts/buttonTexts.d.ts.map +1 -0
  167. package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js +2 -0
  168. package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -0
  169. package/dist/components/profile-heading/editor/texts/dialogTexts.d.ts +14 -0
  170. package/dist/components/profile-heading/editor/texts/dialogTexts.d.ts.map +1 -0
  171. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js +6 -0
  172. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -0
  173. package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js +2 -0
  174. package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -0
  175. package/dist/components/profile-heading/editor/texts/messageTexts.d.ts +42 -0
  176. package/dist/components/profile-heading/editor/texts/messageTexts.d.ts.map +1 -0
  177. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js +6 -0
  178. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -0
  179. package/dist/components/profile-heading/editor/texts/profileTexts.d.ts +14 -0
  180. package/dist/components/profile-heading/editor/texts/profileTexts.d.ts.map +1 -0
  181. package/dist/components/profile-heading/editor/texts/qrCodeTexts.d.ts +2 -0
  182. package/dist/components/profile-heading/editor/texts/qrCodeTexts.d.ts.map +1 -0
  183. package/dist/components/profile-heading/editor/texts.d.ts +6 -0
  184. package/dist/components/profile-heading/editor/texts.d.ts.map +1 -0
  185. package/dist/components/profile-heading/editor/ui/dialog.d.ts +41 -0
  186. package/dist/components/profile-heading/editor/ui/dialog.d.ts.map +1 -0
  187. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +17 -0
  188. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -0
  189. package/dist/components/profile-heading/editor/ui/dialog2.esm.js +263 -0
  190. package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -0
  191. package/dist/components/profile-heading/editor/ui/spinner.cjs.js +5 -0
  192. package/dist/components/profile-heading/editor/ui/spinner.cjs.js.map +1 -0
  193. package/dist/components/profile-heading/editor/ui/spinner.d.ts +3 -0
  194. package/dist/components/profile-heading/editor/ui/spinner.d.ts.map +1 -0
  195. package/dist/components/profile-heading/editor/ui/spinner.esm.js +12 -0
  196. package/dist/components/profile-heading/editor/ui/spinner.esm.js.map +1 -0
  197. package/dist/components/profile-heading/editor/utils/errorDisplay.cjs.js +2 -0
  198. package/dist/components/profile-heading/editor/utils/errorDisplay.cjs.js.map +1 -0
  199. package/dist/components/profile-heading/editor/utils/errorDisplay.d.ts +2 -0
  200. package/dist/components/profile-heading/editor/utils/errorDisplay.d.ts.map +1 -0
  201. package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js +18 -0
  202. package/dist/components/profile-heading/editor/utils/errorDisplay.esm.js.map +1 -0
  203. package/dist/components/profile-heading/friendActions.cjs.js +2 -0
  204. package/dist/components/profile-heading/friendActions.cjs.js.map +1 -0
  205. package/dist/components/profile-heading/friendActions.d.ts +11 -0
  206. package/dist/components/profile-heading/friendActions.d.ts.map +1 -0
  207. package/dist/components/profile-heading/friendActions.esm.js +32 -0
  208. package/dist/components/profile-heading/friendActions.esm.js.map +1 -0
  209. package/dist/components/profile-heading/index.cjs.js +1 -0
  210. package/dist/components/profile-heading/index.d.ts +5 -0
  211. package/dist/components/profile-heading/index.d.ts.map +1 -0
  212. package/dist/components/profile-heading/index.esm.js +1 -0
  213. package/dist/components/profile-heading/profileHeadingData.cjs.js +2 -0
  214. package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -0
  215. package/dist/components/profile-heading/profileHeadingData.d.ts +6 -0
  216. package/dist/components/profile-heading/profileHeadingData.d.ts.map +1 -0
  217. package/dist/components/profile-heading/profileHeadingData.esm.js +81 -0
  218. package/dist/components/profile-heading/profileHeadingData.esm.js.map +1 -0
  219. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +1 -1
  220. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  221. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +2 -2
  222. package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
  223. package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
  224. package/dist/dashboard/homepage.cjs.js.map +1 -1
  225. package/dist/dataContentPane2.cjs.js.map +1 -1
  226. package/dist/defaultPane2.cjs.js.map +1 -1
  227. package/dist/dokieli/dokieliPane.cjs.js.map +1 -1
  228. package/dist/form/pane.cjs.js.map +1 -1
  229. package/dist/home/homePane.cjs.js.map +1 -1
  230. package/dist/humanReadablePane2.cjs.js.map +1 -1
  231. package/dist/icons/folder.cjs.js.map +1 -1
  232. package/dist/icons/friends.cjs.js.map +1 -1
  233. package/dist/icons/person.cjs.js.map +1 -1
  234. package/dist/imagePane2.cjs.js.map +1 -1
  235. package/dist/index.cjs.js +1 -1
  236. package/dist/index.cjs.js.map +1 -1
  237. package/dist/index.d.ts +2 -1
  238. package/dist/index.d.ts.map +1 -1
  239. package/dist/index.esm.js +15 -14
  240. package/dist/index.esm.js.map +1 -1
  241. package/dist/internal/internalPane2.cjs.js +1 -1
  242. package/dist/internal/internalPane2.cjs.js.map +1 -1
  243. package/dist/internal/internalPane2.esm.js +2 -5
  244. package/dist/internal/internalPane2.esm.js.map +1 -1
  245. package/dist/mainPage/header.cjs.js +1 -1
  246. package/dist/mainPage/header.cjs.js.map +1 -1
  247. package/dist/mainPage/header.d.ts +2 -2
  248. package/dist/mainPage/header.d.ts.map +1 -1
  249. package/dist/mainPage/header.esm.js +48 -44
  250. package/dist/mainPage/header.esm.js.map +1 -1
  251. package/dist/mainPage/index.cjs.js +1 -1
  252. package/dist/mainPage/index.cjs.js.map +1 -1
  253. package/dist/mainPage/index.d.ts.map +1 -1
  254. package/dist/mainPage/index.esm.js +27 -21
  255. package/dist/mainPage/index.esm.js.map +1 -1
  256. package/dist/mainPage/navbar.cjs.js +1 -1
  257. package/dist/mainPage/navbar.cjs.js.map +1 -1
  258. package/dist/mainPage/navbar.d.ts +3 -2
  259. package/dist/mainPage/navbar.d.ts.map +1 -1
  260. package/dist/mainPage/navbar.esm.js +77 -42
  261. package/dist/mainPage/navbar.esm.js.map +1 -1
  262. package/dist/mainPage/navigation.cjs.js +2 -0
  263. package/dist/mainPage/navigation.cjs.js.map +1 -0
  264. package/dist/mainPage/navigation.d.ts +6 -0
  265. package/dist/mainPage/navigation.d.ts.map +1 -0
  266. package/dist/mainPage/navigation.esm.js +22 -0
  267. package/dist/mainPage/navigation.esm.js.map +1 -0
  268. package/dist/mainPage/profileHeading.d.ts +5 -0
  269. package/dist/mainPage/profileHeading.d.ts.map +1 -0
  270. package/dist/mainPage/profileHeading2.cjs.js +2 -0
  271. package/dist/mainPage/profileHeading2.cjs.js.map +1 -0
  272. package/dist/mainPage/profileHeading2.esm.js +158 -0
  273. package/dist/mainPage/profileHeading2.esm.js.map +1 -0
  274. package/dist/n3Pane2.cjs.js.map +1 -1
  275. package/dist/navigation/browserEvents.cjs.js +2 -0
  276. package/dist/navigation/browserEvents.cjs.js.map +1 -0
  277. package/dist/navigation/browserEvents.d.ts +15 -0
  278. package/dist/navigation/browserEvents.d.ts.map +1 -0
  279. package/dist/navigation/browserEvents.esm.js +32 -0
  280. package/dist/navigation/browserEvents.esm.js.map +1 -0
  281. package/dist/navigation/chrome.cjs.js +2 -0
  282. package/dist/navigation/chrome.cjs.js.map +1 -0
  283. package/dist/navigation/chrome.d.ts +69 -0
  284. package/dist/navigation/chrome.d.ts.map +1 -0
  285. package/dist/navigation/chrome.esm.js +43 -0
  286. package/dist/navigation/chrome.esm.js.map +1 -0
  287. package/dist/navigation/controller.cjs.js +2 -0
  288. package/dist/navigation/controller.cjs.js.map +1 -0
  289. package/dist/navigation/controller.d.ts +51 -0
  290. package/dist/navigation/controller.d.ts.map +1 -0
  291. package/dist/navigation/controller.esm.js +45 -0
  292. package/dist/navigation/controller.esm.js.map +1 -0
  293. package/dist/navigation/events.cjs.js +2 -0
  294. package/dist/navigation/events.cjs.js.map +1 -0
  295. package/dist/navigation/events.d.ts +17 -0
  296. package/dist/navigation/events.d.ts.map +1 -0
  297. package/dist/navigation/events.esm.js +18 -0
  298. package/dist/navigation/events.esm.js.map +1 -0
  299. package/dist/navigation/navbarVisibility.cjs.js +2 -0
  300. package/dist/navigation/navbarVisibility.cjs.js.map +1 -0
  301. package/dist/navigation/navbarVisibility.d.ts +5 -0
  302. package/dist/navigation/navbarVisibility.d.ts.map +1 -0
  303. package/dist/navigation/navbarVisibility.esm.js +26 -0
  304. package/dist/navigation/navbarVisibility.esm.js.map +1 -0
  305. package/dist/navigation/options.cjs.js +2 -0
  306. package/dist/navigation/options.cjs.js.map +1 -0
  307. package/dist/navigation/options.d.ts +16 -0
  308. package/dist/navigation/options.d.ts.map +1 -0
  309. package/dist/navigation/options.esm.js +8 -0
  310. package/dist/navigation/options.esm.js.map +1 -0
  311. package/dist/navigation/podContext.cjs.js +2 -0
  312. package/dist/navigation/podContext.cjs.js.map +1 -0
  313. package/dist/navigation/podContext.d.ts +21 -0
  314. package/dist/navigation/podContext.d.ts.map +1 -0
  315. package/dist/navigation/podContext.esm.js +62 -0
  316. package/dist/navigation/podContext.esm.js.map +1 -0
  317. package/dist/navigation/state.cjs.js +2 -0
  318. package/dist/navigation/state.cjs.js.map +1 -0
  319. package/dist/navigation/state.d.ts +40 -0
  320. package/dist/navigation/state.d.ts.map +1 -0
  321. package/dist/navigation/state.esm.js +41 -0
  322. package/dist/navigation/state.esm.js.map +1 -0
  323. package/dist/outline/context.cjs.js.map +1 -1
  324. package/dist/outline/manager2.cjs.js +1 -1
  325. package/dist/outline/manager2.cjs.js.map +1 -1
  326. package/dist/outline/manager2.esm.js +387 -353
  327. package/dist/outline/manager2.esm.js.map +1 -1
  328. package/dist/outline/outlineIcons.cjs.js.map +1 -1
  329. package/dist/outline/propertyViews.cjs.js.map +1 -1
  330. package/dist/outline/queryByExample.cjs.js.map +1 -1
  331. package/dist/outline/userInput.cjs.js +1 -1
  332. package/dist/outline/userInput.cjs.js.map +1 -1
  333. package/dist/outline/userInput.esm.js +12 -13
  334. package/dist/outline/userInput.esm.js.map +1 -1
  335. package/dist/outline/viewAsImage.cjs.js.map +1 -1
  336. package/dist/outline/viewAsMbox.cjs.js.map +1 -1
  337. package/dist/pad/padPane2.cjs.js +1 -1
  338. package/dist/pad/padPane2.cjs.js.map +1 -1
  339. package/dist/pad/padPane2.esm.js +2 -6
  340. package/dist/pad/padPane2.esm.js.map +1 -1
  341. package/dist/playlist/playlistPane.cjs.js.map +1 -1
  342. package/dist/registerPanes.cjs.js.map +1 -1
  343. package/dist/schedule/schedulePane2.cjs.js +1 -1
  344. package/dist/schedule/schedulePane2.cjs.js.map +1 -1
  345. package/dist/schedule/schedulePane2.esm.js +1 -5
  346. package/dist/schedule/schedulePane2.esm.js.map +1 -1
  347. package/dist/sharing/sharingPane.cjs.js.map +1 -1
  348. package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
  349. package/dist/social/editProfileDetails.cjs.js +1 -1
  350. package/dist/social/editProfileDetails.cjs.js.map +1 -1
  351. package/dist/social/editProfileDetails.esm.js +0 -2
  352. package/dist/social/editProfileDetails.esm.js.map +1 -1
  353. package/dist/social/icons.cjs.js +4 -4
  354. package/dist/social/icons.cjs.js.map +1 -1
  355. package/dist/social/icons.esm.js +5 -5
  356. package/dist/social/icons.esm.js.map +1 -1
  357. package/dist/social/socialPane.d.ts +0 -1
  358. package/dist/social/socialPane.d.ts.map +1 -1
  359. package/dist/social/socialPane2.cjs.js +3 -3
  360. package/dist/social/socialPane2.cjs.js.map +1 -1
  361. package/dist/social/socialPane2.esm.js +97 -154
  362. package/dist/social/socialPane2.esm.js.map +1 -1
  363. package/dist/social/socialSections.cjs.js +1 -1
  364. package/dist/social/socialSections.cjs.js.map +1 -1
  365. package/dist/social/socialSections.d.ts +2 -1
  366. package/dist/social/socialSections.d.ts.map +1 -1
  367. package/dist/social/socialSections.esm.js +54 -129
  368. package/dist/social/socialSections.esm.js.map +1 -1
  369. package/dist/social/triage.cjs.js.map +1 -1
  370. package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
  371. package/dist/tableViewPane.cjs.js.map +1 -1
  372. package/dist/transaction/pane.cjs.js.map +1 -1
  373. package/dist/transaction/pane.esm.js +1 -1
  374. package/dist/transaction/pane.esm.js.map +1 -1
  375. package/dist/transaction/period.cjs.js.map +1 -1
  376. package/dist/trip/tripPane.cjs.js.map +1 -1
  377. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
  378. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
  379. package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
  380. package/dist/types.d.ts +3 -0
  381. package/dist/types.d.ts.map +1 -0
  382. package/dist/ui/pane.cjs.js +1 -1
  383. package/dist/ui/pane.cjs.js.map +1 -1
  384. package/dist/ui/pane.esm.js +2 -5
  385. package/dist/ui/pane.esm.js.map +1 -1
  386. package/dist/utils/paneUtils.cjs.js +1 -1
  387. package/dist/utils/paneUtils.cjs.js.map +1 -1
  388. package/dist/utils/paneUtils.esm.js +4 -4
  389. package/dist/utils/paneUtils.esm.js.map +1 -1
  390. package/dist/utils/podUtils.cjs.js.map +1 -1
  391. package/dist/utils/viewerUtils.cjs.js +2 -0
  392. package/dist/utils/viewerUtils.cjs.js.map +1 -0
  393. package/dist/utils/viewerUtils.d.ts +5 -0
  394. package/dist/utils/viewerUtils.d.ts.map +1 -0
  395. package/dist/utils/viewerUtils.esm.js +13 -0
  396. package/dist/utils/viewerUtils.esm.js.map +1 -0
  397. package/dist/utils/webIdUtils.cjs.js +1 -1
  398. package/dist/utils/webIdUtils.cjs.js.map +1 -1
  399. package/dist/utils/webIdUtils.d.ts +1 -0
  400. package/dist/utils/webIdUtils.d.ts.map +1 -1
  401. package/dist/utils/webIdUtils.esm.js +23 -19
  402. package/dist/utils/webIdUtils.esm.js.map +1 -1
  403. package/dist/versionInfo.cjs.js +1 -1
  404. package/dist/versionInfo.cjs.js.map +1 -1
  405. package/dist/versionInfo.esm.js +11 -11
  406. package/dist/versionInfo.esm.js.map +1 -1
  407. package/dist/video/videoPane.cjs.js.map +1 -1
  408. package/package.json +6 -5
@@ -1 +1 @@
1
- {"version":3,"file":"EditorCard.esm.js","names":["html","customElement","property","query","WebComponent","styles","_classDecs","_EditorCard","_EditorCard2","_A","WeakMap","_B","_C","_ref","_editorMountDecs","_contentTypeDecs","_contentDecs","_EditorCard3","EditorCard","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init__editorMount","_init_contentType","_init_content","_editorMount","_classPrivateFieldGet","v","_classPrivateFieldSet","contentType","content","getEditor","_editor","setReadOnly","readOnly","_initializeEditor","_initializing","editorDiv","CodeEditor","initialize","err","Error","message","String","console","log","firstUpdated","disconnectedCallback","destroy","undefined","render","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","styles","EditorCard_styles_default","customElement$1","_Class","_EditorCard3","_A","_B","_C","_initProto","_initClass","_classDecs","_editorMountDecs","_init__editorMount","_contentTypeDecs","_init_contentType","_contentDecs","_init_content","_EditorCard2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_EditorCard","query","property","WebComponent","args","readOnly","editorDiv","CodeEditor","err"],"sources":["../../../src/components/editor-card/EditorCard.ts"],"sourcesContent":["import { html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { WebComponent, type CodeEditor } from 'solid-ui'\nimport styles from './EditorCard.styles.css'\n\n@customElement('solid-panes-editor-card')\nexport default class EditorCard extends WebComponent {\n static styles = styles\n\n private _editor?: CodeEditor\n private _initializing = false\n\n @query('.editor')\n accessor _editorMount: HTMLDivElement | null = null\n\n @property()\n accessor contentType: string | undefined\n\n @property()\n accessor content: string | undefined\n\n getEditor () {\n return this._editor\n }\n\n setReadOnly (readOnly: boolean) {\n this._editor?.setReadOnly(readOnly)\n }\n\n private async _initializeEditor () {\n if (this._editor || this._initializing) return\n this._initializing = true\n const editorDiv = this._editorMount\n\n if (!editorDiv) {\n this._initializing = false\n return\n }\n\n try {\n const { CodeEditor } = await import('solid-ui')\n this._editor = new CodeEditor()\n try {\n await this._editor.initialize(editorDiv, this.content ?? '', this.contentType ?? '', 'dark')\n } catch (err) {\n throw new Error(`Error initializing code editor: ${err instanceof Error ? err.message : String(err)}`)\n }\n this._editor?.setReadOnly(true)\n } catch (err) {\n // TODO: Bring in error handling and debug\n console.log('Error loading CodeEditor module:', err)\n } finally {\n this._initializing = false\n }\n }\n\n async firstUpdated () {\n await this._initializeEditor()\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n if (this._editor) {\n this._editor.destroy()\n this._editor = undefined\n }\n\n this._initializing = false\n }\n\n render () {\n return html`\n <section class=\"editor-card\">\n <div class=\"editor\"></div>\n </section>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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gBAAgB;GACrB;EACF;EAEA,IAAI;GACF,IAAM,EAAEE,kBAAe,MAAM,OAAO;GACpC,KAAKN,UAAU,IAAIM,EAAW;GAC9B,IAAI;IACF,MAAM,KAAKN,QAAQO,WAAWF,GAAW,KAAKP,WAAW,IAAI,KAAKD,eAAe,IAAI,MAAM;GAC7F,SAASW,GAAK;IACZ,MAAUC,MAAM,mCAAmCD,aAAeC,QAAQD,EAAIE,UAAUC,OAAOH,CAAG,GAAG;GACvG;GACA,KAAKR,SAASC,YAAY,EAAI;EAChC,SAASO,GAAK;GAEZI,QAAQC,IAAI,oCAAoCL,CAAG;EACrD,UAAU;GACR,KAAKJ,gBAAgB;EACvB;CACF;CAEA,MAAMU,eAAgB;EACpB,MAAM,KAAKX,kBAAkB;CAC/B;CAEAY,uBAAwB;EAOtB,AANA,MAAMA,qBAAqB,GAC3B,AAEE,KAAKf,aADL,KAAKA,QAAQgB,QAAQ,GACNC,KAAAA,IAGjB,KAAKb,gBAAgB;CACvB;CAEAc,SAAU;EACR,OAAOpD,CAAI;;;;;CAKb;AACF,GAAC,CAAAqD,GAAA,CAAA7B,GAAAC,GAAAC,GAAAJ,IAAAgC,GAAA,CAAA/C,GAAAgD,MAAAC,EAAAvC,GAAA;CAAA;EAAAH;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAV,GAAA,GAAA,KAAA,GAvEuCF,CAAY,GAAAa,IAAAwC,IAAA,cAAAC,EAAA;CAAAvC,cAAA;EAAA,MAAAZ,CAAA,GAAAc,EAAA,MAAA,UAClChB,CAAM,GAAAkD,EAAA;CAAA;AAAA,GAAAlC,EAAAoC,GAAAjD,GAAA,KAAA,CAAA,GAAAiD,GAAA"}
1
+ {"version":3,"file":"EditorCard.esm.js","names":["html","customElement","property","query","WebComponent","styles","_classDecs","_EditorCard","_EditorCard2","_A","WeakMap","_B","_C","_ref","_editorMountDecs","_contentTypeDecs","_contentDecs","_EditorCard3","EditorCard","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init__editorMount","_init_contentType","_init_content","_editorMount","_classPrivateFieldGet","v","_classPrivateFieldSet","contentType","content","getEditor","_editor","setReadOnly","readOnly","_initializeEditor","_initializing","editorDiv","CodeEditor","initialize","err","Error","message","String","console","log","firstUpdated","disconnectedCallback","destroy","undefined","render","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","styles","EditorCard_styles_default","customElement$1","_Class","_EditorCard3","_A","_B","_C","_initProto","_initClass","_classDecs","_editorMountDecs","_init__editorMount","_contentTypeDecs","_init_contentType","_contentDecs","_init_content","_EditorCard2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","_EditorCard","query","property","WebComponent","args","readOnly","editorDiv","CodeEditor","err"],"sources":["../../../src/components/editor-card/EditorCard.ts"],"sourcesContent":["import { html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { WebComponent, type CodeEditor } from 'solid-ui'\nimport styles from './EditorCard.styles.css'\n\n@customElement('solid-panes-editor-card')\nexport default class EditorCard extends WebComponent {\n static styles = styles\n\n private _editor?: CodeEditor\n private _initializing = false\n\n @query('.editor')\n accessor _editorMount: HTMLDivElement | null = null\n\n @property()\n accessor contentType: string | undefined\n\n @property()\n accessor content: string | undefined\n\n getEditor () {\n return this._editor\n }\n\n setReadOnly (readOnly: boolean) {\n this._editor?.setReadOnly(readOnly)\n }\n\n private async _initializeEditor () {\n if (this._editor || this._initializing) return\n this._initializing = true\n const editorDiv = this._editorMount\n\n if (!editorDiv) {\n this._initializing = false\n return\n }\n\n try {\n const { CodeEditor } = await import('solid-ui')\n this._editor = new CodeEditor()\n try {\n await this._editor.initialize(editorDiv, this.content ?? '', this.contentType ?? '', 'dark')\n } catch (err) {\n throw new Error(`Error initializing code editor: ${err instanceof Error ? err.message : String(err)}`)\n }\n this._editor?.setReadOnly(true)\n } catch (err) {\n // TODO: Bring in error handling and debug\n console.log('Error loading CodeEditor module:', err)\n } finally {\n this._initializing = false\n }\n }\n\n async firstUpdated () {\n await this._initializeEditor()\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n if (this._editor) {\n this._editor.destroy()\n this._editor = undefined\n }\n\n this._initializing = false\n }\n\n render () {\n return html`\n <section class=\"editor-card\">\n <div class=\"editor\"></div>\n </section>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG4CM,IAAA,CAE3CL,EAAc,yBAAyB,CAAC;AAAA,IAAAM;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,KAAAC,IAOtCX,EAAM,SAAS,GAACY,IAGhBb,EAAS,GAACc,IAGVd,EAAS,GAAC,YAAAe,IAbb,cACwCb,EAAa;CAAAe,YAAA,GAAAC,GAAA;EAOAG,AAPA,MAAA,GAAAH,CAAA,GAAAC,EAAA,MAAAR,GAAA,KAAAS,EAAA,IAAA,CAAA,GAAAD,EAAA,MAAA,iBAI3B,EAAK,GAAAE,EAAA,MAAAd,GAAAe,EAAA,MAGkB,IAAI,CAAA,GAAAD,EAAA,MAAAZ,GAAAc,EAAA,IAAA,CAAA,GAAAF,EAAA,MAAAX,GAAAc,EAAA,IAAA,CAAA;CAAA;CAAA,IAA1CC,eAAY;EAAA,OAAAC,EAAAnB,GAAA,IAAA;CA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,CAAAqD,GAAA,CAAA7B,GAAAC,GAAAC,GAAAJ,IAAAgC,GAAA,CAAA/C,GAAAgD,MAAAC,EAAAvC,GAAA;CAAA;EAAAH;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAV,GAAA,GAAA,KAAA,GAvEuCF,CAAY,GAAAa,IAAAwC,IAAA,cAAAC,EAAA;CAAAvC,cAAA;EAAA,MAAAZ,CAAA,GAAAc,EAAA,MAAA,UAClChB,CAAM,GAAAkD,EAAA;CAAA;AAAA,GAAAlC,EAAAoC,GAAAjD,GAAA,KAAA,CAAA,GAAAiD,GAAA"}
@@ -1,4 +1,4 @@
1
- const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const t=require("./FileExplorerHeader.styles.cjs.js");require("./FileExplorerHeaderSummary.cjs.js"),require("./FileExplorerHeaderControls.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;function E(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function O(e,t,n){return e.set(A(e,t),n),n}function k(e,t){return e.get(A(e,t))}function A(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function j(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:F(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||F(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return I(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:N(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function N(e){var t=P(e,`string`);return typeof t==`symbol`?t:t+``}function P(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function I(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function L(e){return e}h=[(0,i.customElement)(`file-explorer-header`)];var R;new(w=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,T=(g=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),v=(0,i.property)({attribute:!1}),b=(0,i.property)({attribute:!1}),S=(0,i.state)(),`_loadedMetadataForUri`),c=class extends n.WebComponent{constructor(...e){super(...e),j(this,T,void p(this)),E(this,l,_(this,void 0)),E(this,u,y(this,[])),E(this,d,x(this,void 0)),E(this,f,C(this,{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}))}get fileExplorerContext(){return k(l,this)}set fileExplorerContext(e){O(l,this,e)}get menuItems(){return k(u,this)}set menuItems(e){O(u,this,e)}get paneIcon(){return k(d,this)}set paneIcon(e){O(d,this,e)}get responseMetadata(){return k(f,this)}set responseMetadata(e){O(f,this,e)}getDefaultResponseMetadata(){return{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}}updated(){this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri&&this._loadedMetadataForUri!==this.fileExplorerContext.subjectUri&&(this._loadedMetadataForUri=this.fileExplorerContext.subjectUri,this.loadResponseMetadata())}async loadResponseMetadata(){if(this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri)try{let t=await e.fetchResourceMetadata(this.fileExplorerContext.store,(0,r.sym)(this.fileExplorerContext.subjectUri));this.responseMetadata={modified:t.modified,isPublic:t.isPublic,canEdit:t.canEdit,aclUri:t.aclUri}}catch(e){this.responseMetadata=this.getDefaultResponseMetadata(),console.warn(`Failed to load response metadata`,e)}}render(){return o.html`
1
+ const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const t=require("./FileExplorerHeader.styles.cjs.js");require("./FileExplorerHeaderSummary.cjs.js"),require("./FileExplorerHeaderControls.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;function E(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function O(e,t,n){return e.set(A(e,t),n),n}function k(e,t){return e.get(A(e,t))}function A(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function j(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:F(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||F(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return I(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:N(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function N(e){var t=P(e,`string`);return typeof t==`symbol`?t:t+``}function P(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function I(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function L(e){return e}h=[(0,i.customElement)(`file-explorer-header`)];var R;new(w=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,T=(g=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),v=(0,i.property)({attribute:!1}),b=(0,i.property)({attribute:!1}),S=(0,i.state)(),`_loadedMetadataForUri`),c=class extends n.WebComponent{constructor(...e){super(...e),j(this,T,void p(this)),E(this,l,_(this,void 0)),E(this,u,y(this,[])),E(this,d,x(this,void 0)),E(this,f,C(this,{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}))}get fileExplorerContext(){return k(l,this)}set fileExplorerContext(e){O(l,this,e)}get menuItems(){return k(u,this)}set menuItems(e){O(u,this,e)}get paneIcon(){return k(d,this)}set paneIcon(e){O(d,this,e)}get responseMetadata(){return k(f,this)}set responseMetadata(e){O(f,this,e)}getDefaultResponseMetadata(){return{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}}updated(){this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri&&this._loadedMetadataForUri!==this.fileExplorerContext.subjectUri&&(this._loadedMetadataForUri=this.fileExplorerContext.subjectUri,this.loadResponseMetadata())}async loadResponseMetadata(){if(this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri)try{let t=await e.fetchResourceMetadata(this.fileExplorerContext.store,(0,r.sym)(this.fileExplorerContext.subjectUri));this.responseMetadata={modified:t.modified,isPublic:t.isPublic,canEdit:t.canEdit,aclUri:t.aclUri}}catch(e){this.responseMetadata=this.getDefaultResponseMetadata(),console.warn(`Failed to load response metadata`,e)}}render(){return o.html`
2
2
  <header>
3
3
  <file-explorer-header-summary
4
4
  .paneIcon=${this.paneIcon}
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerHeader.cjs.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchResourceMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","fetchResourceMetadata","sym","styles","require_podUtils","require_FileExplorerHeader_styles","solid_ui","rdflib","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeader3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_FileExplorerHeader2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeader","args","metadata","error"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchResourceMetadata } from '../../utils/podUtils'\nimport { type FileExplorerResourceMetadata } from './types'\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const metadata = await fetchResourceMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":"skJAY4DU,EAAA,EAAA,EAE3DP,EAAAA,cAAAA,CAAc,sBAAsB,CAAC,EAAA,IAAAQ,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAMnCb,EAAAA,QAAAA,CAAQ,CAAEc,QAASlB,EAAAA,oBAAqBmB,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DlB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BpB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BpB,EAAAA,MAAAA,CAAM,EAAC,yBAAAqB,EAfV,cACgDzB,EAAAA,YAAa,CAAA2B,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAZ,EAAA,KAAAa,EAAA,IAAA,CAAA,EAAAC,EAAA,KAAAnB,EAAAoB,EAAA,KAMPC,IAAAA,EAAS,CAAA,EAAAF,EAAA,KAAAjB,EAAAoB,EAAA,KAGkB,CAAA,CAAE,CAAA,EAAAH,EAAA,KAAAhB,EAAAoB,EAAA,KAGnDF,IAAAA,EAAS,CAAA,EAAAF,EAAA,KAAAf,EAAAoB,EAAA,KAGyE,CAC9GC,SAAUJ,IAAAA,GACVK,SAAU,GACVC,QAAS,GACTC,OAAQP,IAAAA,EACV,CAAC,CAAA,CAAA,CAAA,IAdQhC,qBAAmB,CAAA,OAAAwC,EAAA7B,EAAA,IAAA,CAAA,CAAA,IAAnBX,oBAAmByC,EAAA,CAAAC,EAAA/B,EAAA,KAAA8B,CAAA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;uBAG5B,KAAKF,UAAS;qBAChB,KAAKE,iBAAiBP,QAAO;;;KAIhD,CACF,EAAC,CAAAoB,EAAA,CAAA3B,EAAAE,EAAAC,EAAAC,EAAAN,GAAA8B,EAAA,CAAAlD,EAAAmD,IAAAC,EAAArC,EAAA,CAAA,CAAAP,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,EAAA,CAAAE,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,CAAA,EAAAf,EAAA,EAAA,IAAA,GAtE+CT,EAAAA,YAAY,EAAAyB,GAAAsC,EAAA,cAAAC,CAAA,CAAArC,aAAA,CAAA,MAAAjB,CAAA,EAAAmB,EAAA,KAAA,SAC1CtB,EAAAA,OAAM,EAAAsD,EAAA,CAAA,CAAA,EAAAhC,EAAAkC,EAAApD,EAAA,IAAA,EAAA,EAAAoD"}
1
+ {"version":3,"file":"FileExplorerHeader.cjs.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchResourceMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","fetchResourceMetadata","sym","styles","require_podUtils","require_FileExplorerHeader_styles","solid_ui","rdflib","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeader3","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_paneIconDecs","_init_paneIcon","_responseMetadataDecs","_init_responseMetadata","_FileExplorerHeader2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeader","args","metadata","error"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchResourceMetadata } from '../../utils/podUtils'\nimport { type FileExplorerResourceMetadata } from './types'\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const metadata = await fetchResourceMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":"A,2lJAY4DU,EAAA,EAAA,EAE3DP,EAAAA,cAAAA,CAAc,sBAAsB,CAAC,EAAA,IAAAQ,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAMnCb,EAAAA,QAAAA,CAAQ,CAAEc,QAASlB,EAAAA,oBAAqBmB,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DlB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BpB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BpB,EAAAA,MAAAA,CAAM,EAAC,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n = e[Symbol.toPrimitive];
162
- if (n !== void 0) {
161
+ var n;
162
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
163
163
  var r = n.call(e, t || "default");
164
164
  if (typeof r != "object") return r;
165
165
  throw TypeError("@@toPrimitive must return a primitive value.");
@@ -1,4 +1,4 @@
1
- const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/user-round-cog.cjs.js");const t=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let n=require("solid-ui"),r=require("lit/decorators.js"),i=require("@lit/context"),a=require("lit");require("solid-ui/components/button");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(e,t,n){E(e,t),t.set(e,n)}function E(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function D(e,t,n){return e.set(k(e,t),n),n}function O(e,t){return e.get(k(e,t))}function k(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function A(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:P(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||P(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return F(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:M(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function M(e){var t=N(e,`string`);return typeof t==`symbol`?t:t+``}function N(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function P(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function F(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function I(e){return e}m=[(0,r.customElement)(`file-explorer-header-controls`)];var L;new(C=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,w=(h=(0,i.consume)({context:n.fileExplorerContext,subscribe:!0}),_=(0,r.property)({attribute:!1}),y=(0,r.property)({type:Boolean}),x=(0,r.state)(),`mobileMediaQuery`),s=class extends n.WebComponent{constructor(...e){super(...e),A(this,w,void f(this)),A(this,`mobileQuery`,`(max-width: 600px)`),A(this,`handleMobileMediaChange`,e=>{this.isMobile=e.matches}),T(this,c,g(this,void 0)),T(this,l,v(this,[])),T(this,u,b(this,!1)),T(this,d,S(this,typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(max-width: 600px)`).matches))}get fileExplorerContext(){return O(c,this)}set fileExplorerContext(e){D(c,this,e)}get menuItems(){return O(l,this)}set menuItems(e){D(l,this,e)}get canEdit(){return O(u,this)}set canEdit(e){D(u,this,e)}get isMobile(){return O(d,this)}set isMobile(e){D(d,this,e)}connectedCallback(){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))}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener(`change`,this.handleMobileMediaChange),this.mobileMediaQuery=void 0,super.disconnectedCallback()}getEditTooltip(){return this.canEdit?`Edit`:`No Access`}renderDirtyIndicator(){return this.fileExplorerContext.edit?.isDirty?a.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:a.nothing}render(){let t=e.isContainerSubject(this.fileExplorerContext.store,this.fileExplorerContext.subjectUri),n=this.fileExplorerContext.paneSupportsEditing;return a.html`
1
+ const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/user-round-cog.cjs.js");const t=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let n=require("solid-ui"),r=require("lit/decorators.js"),i=require("@lit/context"),a=require("lit");require("solid-ui/components/button");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(e,t,n){E(e,t),t.set(e,n)}function E(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function D(e,t,n){return e.set(k(e,t),n),n}function O(e,t){return e.get(k(e,t))}function k(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function A(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:P(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||P(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return F(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:M(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function M(e){var t=N(e,`string`);return typeof t==`symbol`?t:t+``}function N(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function P(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function F(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function I(e){return e}m=[(0,r.customElement)(`file-explorer-header-controls`)];var L;new(C=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,w=(h=(0,i.consume)({context:n.fileExplorerContext,subscribe:!0}),_=(0,r.property)({attribute:!1}),y=(0,r.property)({type:Boolean}),x=(0,r.state)(),`mobileMediaQuery`),s=class extends n.WebComponent{constructor(...e){super(...e),A(this,w,void f(this)),A(this,`mobileQuery`,`(max-width: 600px)`),A(this,`handleMobileMediaChange`,e=>{this.isMobile=e.matches}),T(this,c,g(this,void 0)),T(this,l,v(this,[])),T(this,u,b(this,!1)),T(this,d,S(this,typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(max-width: 600px)`).matches))}get fileExplorerContext(){return O(c,this)}set fileExplorerContext(e){D(c,this,e)}get menuItems(){return O(l,this)}set menuItems(e){D(l,this,e)}get canEdit(){return O(u,this)}set canEdit(e){D(u,this,e)}get isMobile(){return O(d,this)}set isMobile(e){D(d,this,e)}connectedCallback(){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))}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener(`change`,this.handleMobileMediaChange),this.mobileMediaQuery=void 0,super.disconnectedCallback()}getEditTooltip(){return this.canEdit?`Edit`:`No Access`}renderDirtyIndicator(){return this.fileExplorerContext.edit?.isDirty?a.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:a.nothing}render(){let t=e.isContainerSubject(this.fileExplorerContext.store,this.fileExplorerContext.subjectUri),n=this.fileExplorerContext.paneSupportsEditing;return a.html`
2
2
  <div>
3
3
  ${this.renderDirtyIndicator()}
4
4
  ${!t&&!this.isMobile?a.html`
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["WebComponent","customElement","property","state","consume","html","nothing","styles","fileExplorerContext","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_canEdit","_init_isMobile","window","matchMedia","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","getEditTooltip","renderDirtyIndicator","edit","isDirty","render","isContainerResource","store","subjectUri","supportsEditing","paneSupportsEditing","handleAccessClick","onEdit","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","nothing","isContainerSubject","styles","require_podUtils","require_FileExplorerHeaderControls_styles","solid_ui","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeaderControls","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_canEditDecs","_init_canEdit","_isMobileDecs","_init_isMobile","_FileExplorerHeaderCo2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderCo","args","event","isContainerResource","supportsEditing"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"sourcesContent":["import { WebComponent } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport 'solid-ui/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '../resource-actions-menu/ResourceActionsMenu'\nimport { fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport { isContainerSubject } from '../../utils/podUtils'\n\n@customElement('file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.edit?.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.paneSupportsEditing\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.fileExplorerContext.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.edit?.onEdit}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.fileExplorerContext.handleAccessClick}\n .handleEditingClick=${this.fileExplorerContext.edit?.onEdit}\n .paneSupportsEditing=${this.fileExplorerContext.paneSupportsEditing}\n .canEdit=${this.canEdit}\n .subjectUri=${this.fileExplorerContext?.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></resource-actions-menu>\n </div>\n `\n }\n}\n"],"mappings":"wgJAUyDU,EAAA,EAAA,EAExDT,EAAAA,cAAAA,CAAc,+BAA+B,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAU5Cf,EAAAA,QAAAA,CAAQ,CAAEgB,QAASZ,EAAAA,oBAAqBa,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DpB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BtB,EAAAA,SAAAA,CAAS,CAAEuB,KAAMC,OAAQ,CAAC,EAACC,GAAAA,EAG3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AAA5C,EAAA,CAAA,CAAAT,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,EAAA,CAAAE,EAAA,EAAA,SAAA,EAAA,CAAAG,EAAA,EAAA,UAAA,CAAA,EAAAjB,EAAA,EAAA,IAAA,GAtGuDV,EAAAA,YAAY,EAAA4B,GAAA6C,EAAA,cAAAC,CAAA,CAAA5C,aAAA,CAAA,MAAAnB,CAAA,EAAAqB,EAAA,KAAA,SAClDzB,EAAAA,OAAM,EAAAgE,EAAA,CAAA,CAAA,EAAAvC,EAAAyC,EAAA7D,EAAA,IAAA,EAAA,EAAA6D"}
1
+ {"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["WebComponent","customElement","property","state","consume","html","nothing","styles","fileExplorerContext","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_canEdit","_init_isMobile","window","matchMedia","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","getEditTooltip","renderDirtyIndicator","edit","isDirty","render","isContainerResource","store","subjectUri","supportsEditing","paneSupportsEditing","handleAccessClick","onEdit","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","WebComponent","nothing","isContainerSubject","styles","require_podUtils","require_FileExplorerHeaderControls_styles","solid_ui","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeaderControls","_A","_B","_C","_D","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_menuItemsDecs","_init_menuItems","_canEditDecs","_init_canEdit","_isMobileDecs","_init_isMobile","_FileExplorerHeaderCo2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderCo","args","event","isContainerResource","supportsEditing"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"sourcesContent":["import { WebComponent } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport 'solid-ui/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '../resource-actions-menu/ResourceActionsMenu'\nimport { fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport { isContainerSubject } from '../../utils/podUtils'\n\n@customElement('file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.edit?.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.paneSupportsEditing\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.fileExplorerContext.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.edit?.onEdit}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.fileExplorerContext.handleAccessClick}\n .handleEditingClick=${this.fileExplorerContext.edit?.onEdit}\n .paneSupportsEditing=${this.fileExplorerContext.paneSupportsEditing}\n .canEdit=${this.canEdit}\n .subjectUri=${this.fileExplorerContext?.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></resource-actions-menu>\n </div>\n `\n }\n}\n"],"mappings":"A,6hJAUyDU,EAAA,EAAA,EAExDT,EAAAA,cAAAA,CAAc,+BAA+B,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAU5Cf,EAAAA,QAAAA,CAAQ,CAAEgB,QAASZ,EAAAA,oBAAqBa,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DpB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BtB,EAAAA,SAAAA,CAAS,CAAEuB,KAAMC,OAAQ,CAAC,EAACC,GAAAA,EAG3BxB,EAAAA,MAAAA,CAAM,EAAC,oBAAAyB,EAnBV,cACwD5B,EAAAA,YAAa,CAAA8B,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAd,EAAA,KAAAe,EAAA,IAAA,CAAA,EAAAD,EAAA,KAAA,cAIpC,oBAAoB,EAAAA,EAAA,KAAA,0BACPE,GAA+B,CACzE,KAAKC,SAAWD,EAAME,OACxB,CAAC,EAAAC,EAAA,KAAAxB,EAAAyB,EAAA,KAGmDC,IAAAA,EAAS,CAAA,EAAAF,EAAA,KAAAtB,EAAAyB,EAAA,KAGsC,CAAA,CAAE,CAAA,EAAAH,EAAA,KAAArB,EAAAyB,EAAA,KAGzE,EAAK,CAAA,EAAAJ,EAAA,KAAApB,EAAAyB,EAAA,KAGb,OAAOC,OAAW,KAAe,OAAOA,OAAOC,YAAe,YAC9ED,OAAOC,WAAW,oBAAoB,CAAC,CAACR,OACnC,CAAA,CAAA,CAAA,IAXA5B,qBAAmB,CAAA,OAAAqC,EAAAh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,SAC5B9B,EAAAA,IAAI;yHACyG,KAAKG,oBAAoB2D,kBAAiB;;;gBAGnJF,EACE5D,EAAAA,IAAI;;;;8BAIQ,KAAKoD,eAAe,EAAC;kCACjB,CAAC,KAAKR,QAAO;+BAChB,KAAKzC,oBAAoBmD,MAAMS,OAAM;;;;oBAKlD9D,EAAAA,QAAO;cAEbA,EAAAA,QAAO;;mBAEA,KAAKE,oBAAoBuD,MAAK;+BAClB,KAAKvD,oBAAoB2D,kBAAiB;gCACzC,KAAK3D,oBAAoBmD,MAAMS,OAAM;iCACpC,KAAK5D,oBAAoB0D,oBAAmB;qBACxD,KAAKjB,QAAO;wBACT,KAAKzC,qBAAqBwD,WAAU;uBACrC,KAAKhB,UAAS;sBACf,KAAKb,SAAQ;;;KAIjC,CACF,EAAC,CAAAkC,EAAA,CAAA/B,EAAAE,EAAAC,EAAAC,EAAAT,GAAAqC,EAAA,CAAA3D,EAAA4D,IAAAC,EAAA5C,EAAA,CAAA,CAAAT,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,EAAA,CAAAE,EAAA,EAAA,SAAA,EAAA,CAAAG,EAAA,EAAA,UAAA,CAAA,EAAAjB,EAAA,EAAA,IAAA,GAtGuDV,EAAAA,YAAY,EAAA4B,GAAA6C,EAAA,cAAAC,CAAA,CAAA5C,aAAA,CAAA,MAAAnB,CAAA,EAAAqB,EAAA,KAAA,SAClDzB,EAAAA,OAAM,EAAAgE,EAAA,CAAA,CAAA,EAAAvC,EAAAyC,EAAA7D,EAAA,IAAA,EAAA,EAAA6D,G"}
@@ -156,8 +156,8 @@ function I(e) {
156
156
  }
157
157
  function L(e, t) {
158
158
  if (typeof e != "object" || !e) return e;
159
- var n = e[Symbol.toPrimitive];
160
- if (n !== void 0) {
159
+ var n;
160
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
161
161
  var r = n.call(e, t || "default");
162
162
  if (typeof r != "object") return r;
163
163
  throw TypeError("@@toPrimitive must return a primitive value.");
@@ -1,4 +1,4 @@
1
- const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/globe.cjs.js"),require("../../_virtual/~icons/lucide/lock-keyhole.cjs.js"),require("../../_virtual/~icons/lucide/arrow-left.cjs.js"),require("../../_virtual/~icons/lucide/folder.cjs.js");const t=require("./FileExplorerHeaderSummary.styles.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");require("solid-ui/components/button");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j;function M(e,t,n){N(e,t),t.set(e,n)}function N(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function P(e,t,n){return e.set(I(e,t),n),n}function F(e,t){return e.get(I(e,t))}function I(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function L(e,t,n){return(t=z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:V(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||V(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return H(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:z(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function z(e){var t=B(e,`string`);return typeof t==`symbol`?t:t+``}function B(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function V(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function H(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function U(e){return e}_=[(0,i.customElement)(`file-explorer-header-summary`)];var W;new(A=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,j=(v=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),b=(0,i.property)({attribute:!1}),S=(0,i.property)({attribute:!1}),w=(0,i.property)({attribute:!1}),E=(0,i.state)(),O=(0,i.query)(`h1`),`_draggableSubjectUri`),c=class extends n.WebComponent{constructor(...e){super(...e),L(this,j,void h(this)),L(this,`_resolvedPaneIconFor`,void 0),M(this,l,y(this,void 0)),M(this,u,x(this)),M(this,d,C(this)),M(this,f,T(this,{modified:void 0,isPublic:!1})),M(this,p,D(this,void 0)),M(this,m,k(this,null))}get fileExplorerContext(){return F(l,this)}set fileExplorerContext(e){P(l,this,e)}get paneIcon(){return F(u,this)}set paneIcon(e){P(u,this,e)}get onBackClick(){return F(d,this)}set onBackClick(e){P(d,this,e)}get responseMetadata(){return F(f,this)}set responseMetadata(e){P(f,this,e)}get resolvedPaneIcon(){return F(p,this)}set resolvedPaneIcon(e){P(p,this,e)}get titleHeading(){return F(m,this)}set titleHeading(e){P(m,this,e)}formatModifiedDate(e){if(!e)return``;let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=new Intl.DateTimeFormat(`en-GB`,{day:`2-digit`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!0}).formatToParts(t),r=e=>n.find(t=>t.type===e)?.value??``;return`${r(`day`)} ${r(`month`)}, ${r(`year`)} at ${r(`hour`)}:${r(`minute`)} ${r(`dayPeriod`).toUpperCase()}`}updated(){this.paneIcon!==void 0&&this._resolvedPaneIconFor!==this.paneIcon&&(this._resolvedPaneIconFor=this.paneIcon,this.resolvePaneIcon()),this.titleHeading&&this.fileExplorerContext?.subjectUri&&this._draggableSubjectUri!==this.fileExplorerContext.subjectUri&&(n.widgets.makeDraggable(this.titleHeading,(0,r.sym)(this.fileExplorerContext.subjectUri)),this._draggableSubjectUri=this.fileExplorerContext.subjectUri)}async resolvePaneIcon(){try{if(this.paneIcon==null){this.resolvedPaneIcon=void 0;return}let e=await this.paneIcon;this.resolvedPaneIcon=e??void 0}catch(e){this.resolvedPaneIcon=void 0,console.warn(`file-explorer-header-summary: failed to resolve pane icon`,e)}}renderContainerResourceHeader(t,n){let r=e.getContainerItemCount(this.fileExplorerContext?.store,this.fileExplorerContext?.subjectUri)??0;return o.html`
1
+ const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/globe.cjs.js"),require("../../_virtual/~icons/lucide/lock-keyhole.cjs.js"),require("../../_virtual/~icons/lucide/arrow-left.cjs.js"),require("../../_virtual/~icons/lucide/folder.cjs.js");const t=require("./FileExplorerHeaderSummary.styles.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");require("solid-ui/components/button");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j;function M(e,t,n){N(e,t),t.set(e,n)}function N(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function P(e,t,n){return e.set(I(e,t),n),n}function F(e,t){return e.get(I(e,t))}function I(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function L(e,t,n){return(t=z(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:V(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||V(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return H(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:z(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function z(e){var t=B(e,`string`);return typeof t==`symbol`?t:t+``}function B(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function V(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function H(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function U(e){return e}_=[(0,i.customElement)(`file-explorer-header-summary`)];var W;new(A=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,j=(v=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),b=(0,i.property)({attribute:!1}),S=(0,i.property)({attribute:!1}),w=(0,i.property)({attribute:!1}),E=(0,i.state)(),O=(0,i.query)(`h1`),`_draggableSubjectUri`),c=class extends n.WebComponent{constructor(...e){super(...e),L(this,j,void h(this)),L(this,`_resolvedPaneIconFor`,void 0),M(this,l,y(this,void 0)),M(this,u,x(this)),M(this,d,C(this)),M(this,f,T(this,{modified:void 0,isPublic:!1})),M(this,p,D(this,void 0)),M(this,m,k(this,null))}get fileExplorerContext(){return F(l,this)}set fileExplorerContext(e){P(l,this,e)}get paneIcon(){return F(u,this)}set paneIcon(e){P(u,this,e)}get onBackClick(){return F(d,this)}set onBackClick(e){P(d,this,e)}get responseMetadata(){return F(f,this)}set responseMetadata(e){P(f,this,e)}get resolvedPaneIcon(){return F(p,this)}set resolvedPaneIcon(e){P(p,this,e)}get titleHeading(){return F(m,this)}set titleHeading(e){P(m,this,e)}formatModifiedDate(e){if(!e)return``;let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=new Intl.DateTimeFormat(`en-GB`,{day:`2-digit`,month:`short`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,hour12:!0}).formatToParts(t),r=e=>n.find(t=>t.type===e)?.value??``;return`${r(`day`)} ${r(`month`)}, ${r(`year`)} at ${r(`hour`)}:${r(`minute`)} ${r(`dayPeriod`).toUpperCase()}`}updated(){this.paneIcon!==void 0&&this._resolvedPaneIconFor!==this.paneIcon&&(this._resolvedPaneIconFor=this.paneIcon,this.resolvePaneIcon()),this.titleHeading&&this.fileExplorerContext?.subjectUri&&this._draggableSubjectUri!==this.fileExplorerContext.subjectUri&&(n.widgets.makeDraggable(this.titleHeading,(0,r.sym)(this.fileExplorerContext.subjectUri)),this._draggableSubjectUri=this.fileExplorerContext.subjectUri)}async resolvePaneIcon(){try{if(this.paneIcon==null){this.resolvedPaneIcon=void 0;return}let e=await this.paneIcon;this.resolvedPaneIcon=e??void 0}catch(e){this.resolvedPaneIcon=void 0,console.warn(`file-explorer-header-summary: failed to resolve pane icon`,e)}}renderContainerResourceHeader(t,n){let r=e.getContainerItemCount(this.fileExplorerContext?.store,this.fileExplorerContext?.subjectUri)??0;return o.html`
2
2
  <div class="container-info">
3
3
  <h1>
4
4
  <span>${t}</span>
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerHeaderSummary.cjs.js","names":["sym","widgets","utils","WebComponent","fileExplorerContext","customElement","property","query","state","html","consume","styles","getContainerItemCount","isContainerSubject","_classDecs","_FileExplorerHeaderSu","_FileExplorerHeaderSu2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_fileExplorerContextDecs","context","subscribe","_paneIconDecs","attribute","_onBackClickDecs","_responseMetadataDecs","_resolvedPaneIconDecs","_titleHeadingDecs","_FileExplorerHeaderSummary","FileExplorerHeaderSummary","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","isPublic","_init_resolvedPaneIcon","_init_titleHeading","_classPrivateFieldGet","v","_classPrivateFieldSet","paneIcon","onBackClick","responseMetadata","resolvedPaneIcon","titleHeading","formatModifiedDate","date","Date","Number","isNaN","getTime","parts","Intl","DateTimeFormat","day","month","year","hour","minute","hour12","formatToParts","getPart","type","find","part","value","dayPeriod","toUpperCase","updated","_resolvedPaneIconFor","resolvePaneIcon","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","query","WebComponent","sym","getContainerItemCount","utils","isContainerSubject","styles","require_podUtils","require_FileExplorerHeaderSummary_styles","solid_ui","rdflib","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderSu","args","modified","date","parts","getPart","part","type","icon","error","itemCount","label","isPublic","subject","isContainerResource"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { widgets, utils, WebComponent, fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport 'solid-ui/components/button'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { html } from 'lit'\nimport { consume } from '@lit/context'\nimport { PaneIcon } from './types'\nimport '~icons/lucide/globe'\nimport '~icons/lucide/lock-keyhole'\nimport '~icons/lucide/arrow-left'\nimport '~icons/lucide/folder'\nimport styles from './FileExplorerHeaderSummary.styles.css'\nimport { getContainerItemCount, isContainerSubject } from '../../utils/podUtils'\nimport type { FileExplorerResourceMetadata } from './types'\n\n@customElement('file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _resolvedPaneIconFor: PaneIcon | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon | undefined\n\n @property({ attribute: false })\n accessor onBackClick: (() => void) | undefined\n\n @property({ attribute: false })\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic'> = {\n modified: undefined,\n isPublic: false\n }\n\n @state()\n accessor resolvedPaneIcon: string | undefined = undefined\n\n @query('h1')\n private accessor titleHeading: HTMLHeadingElement | null = null\n\n private formatModifiedDate (modified: string | undefined) {\n if (!modified) return ''\n\n const date = new Date(modified)\n if (Number.isNaN(date.getTime())) return modified\n\n const parts = new Intl.DateTimeFormat('en-GB', {\n day: '2-digit',\n month: 'short',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n }).formatToParts(date)\n\n const getPart = (type: Intl.DateTimeFormatPartTypes) => parts.find(part => part.type === type)?.value ?? ''\n const day = getPart('day')\n const month = getPart('month')\n const year = getPart('year')\n const hour = getPart('hour')\n const minute = getPart('minute')\n const dayPeriod = getPart('dayPeriod').toUpperCase()\n\n return `${day} ${month}, ${year} at ${hour}:${minute} ${dayPeriod}`\n }\n\n protected updated () {\n if (this.paneIcon !== undefined && this._resolvedPaneIconFor !== this.paneIcon) {\n this._resolvedPaneIconFor = this.paneIcon\n this.resolvePaneIcon()\n }\n\n if (!this.titleHeading || !this.fileExplorerContext?.subjectUri || this._draggableSubjectUri === this.fileExplorerContext.subjectUri) return\n\n widgets.makeDraggable(this.titleHeading, sym(this.fileExplorerContext.subjectUri)) // doing it this way for now, just to keep the same functionality\n this._draggableSubjectUri = this.fileExplorerContext.subjectUri\n }\n\n // Needed because humanReadable pane can return a promise for an icon.\n private async resolvePaneIcon () {\n try {\n if (this.paneIcon == null) {\n this.resolvedPaneIcon = undefined\n return\n }\n\n const icon = await this.paneIcon\n this.resolvedPaneIcon = icon ?? undefined\n } catch (error) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\n }\n\n private renderContainerResourceHeader (label: string, isPublic: boolean) {\n const itemCount = getContainerItemCount(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0\n return html`\n <div class=\"container-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p>\n ${itemCount} items\n ${isPublic\n ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole></span>`}\n </p>\n </div>\n `\n }\n\n private renderResourceHeader (label: string, isPublic: boolean) {\n const modified = this.formatModifiedDate(this.responseMetadata.modified)\n\n return html`\n <div class=\"resource-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p><span class=\"resource-date\">${modified}</span> ${isPublic ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe> Public</span>` : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>\n </div>\n `\n }\n\n render () {\n const subject = this.fileExplorerContext?.subjectUri ? sym(this.fileExplorerContext.subjectUri) : undefined\n const label = subject ? utils.label(subject) : ''\n const isPublic = this.responseMetadata.isPublic\n const isContainerResource = isContainerSubject(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri)\n\n return html`\n <div class=\"file-explorer-header-summary\">\n <solid-ui-button\n variant=\"ghost\"\n @click=${this.onBackClick}\n title=\"Back\"\n >\n <icon-lucide-arrow-left></icon-lucide-arrow-left>\n </solid-ui-button>\n <span class=\"pane-icon\">\n ${this.resolvedPaneIcon ? html`<img src=${this.resolvedPaneIcon} alt=\"\" />` : ''}\n </span>\n ${isContainerResource ? this.renderContainerResourceHeader(label, isPublic) : this.renderResourceHeader(label, isPublic)}\n </div>\n </div>\n `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property","query","state","html","consume","styles","getContainerItemCount","isContainerSubject","_classDecs","_FileExplorerHeaderSu","_FileExplorerHeaderSu2","_A","WeakMap","_B","_C","_D","_E","_F","_ref","_fileExplorerContextDecs","context","subscribe","_paneIconDecs","attribute","_onBackClickDecs","_responseMetadataDecs","_resolvedPaneIconDecs","_titleHeadingDecs","_FileExplorerHeaderSummary","FileExplorerHeaderSummary","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_paneIcon","_init_onBackClick","_init_responseMetadata","modified","isPublic","_init_resolvedPaneIcon","_init_titleHeading","_classPrivateFieldGet","v","_classPrivateFieldSet","paneIcon","onBackClick","responseMetadata","resolvedPaneIcon","titleHeading","formatModifiedDate","date","Date","Number","isNaN","getTime","parts","Intl","DateTimeFormat","day","month","year","hour","minute","hour12","formatToParts","getPart","type","find","part","value","dayPeriod","toUpperCase","updated","_resolvedPaneIconFor","resolvePaneIcon","subjectUri","_draggableSubjectUri","makeDraggable","icon","error","console","warn","renderContainerResourceHeader","label","itemCount","store","renderResourceHeader","render","subject","isContainerResource","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","consume","fileExplorerContext","property","state","query","WebComponent","sym","getContainerItemCount","utils","isContainerSubject","styles","require_podUtils","require_FileExplorerHeaderSummary_styles","solid_ui","rdflib","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerHeaderSummary","_A","_B","_C","_D","_E","_F","_initProto","_initClass","_classDecs","_fileExplorerContextDecs","_init_fileExplorerContext","_paneIconDecs","_init_paneIcon","_onBackClickDecs","_init_onBackClick","_responseMetadataDecs","_init_responseMetadata","_resolvedPaneIconDecs","_init_resolvedPaneIcon","_titleHeadingDecs","_init_titleHeading","_FileExplorerHeaderSu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_FileExplorerHeaderSu","args","modified","date","parts","getPart","part","type","icon","error","itemCount","label","isPublic","subject","isContainerResource"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderSummary.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { widgets, utils, WebComponent, fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport 'solid-ui/components/button'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { html } from 'lit'\nimport { consume } from '@lit/context'\nimport { PaneIcon } from './types'\nimport '~icons/lucide/globe'\nimport '~icons/lucide/lock-keyhole'\nimport '~icons/lucide/arrow-left'\nimport '~icons/lucide/folder'\nimport styles from './FileExplorerHeaderSummary.styles.css'\nimport { getContainerItemCount, isContainerSubject } from '../../utils/podUtils'\nimport type { FileExplorerResourceMetadata } from './types'\n\n@customElement('file-explorer-header-summary')\nexport default class FileExplorerHeaderSummary extends WebComponent {\n static styles = styles\n\n private _draggableSubjectUri: string | undefined\n private _resolvedPaneIconFor: PaneIcon | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon | undefined\n\n @property({ attribute: false })\n accessor onBackClick: (() => void) | undefined\n\n @property({ attribute: false })\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic'> = {\n modified: undefined,\n isPublic: false\n }\n\n @state()\n accessor resolvedPaneIcon: string | undefined = undefined\n\n @query('h1')\n private accessor titleHeading: HTMLHeadingElement | null = null\n\n private formatModifiedDate (modified: string | undefined) {\n if (!modified) return ''\n\n const date = new Date(modified)\n if (Number.isNaN(date.getTime())) return modified\n\n const parts = new Intl.DateTimeFormat('en-GB', {\n day: '2-digit',\n month: 'short',\n year: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n hour12: true\n }).formatToParts(date)\n\n const getPart = (type: Intl.DateTimeFormatPartTypes) => parts.find(part => part.type === type)?.value ?? ''\n const day = getPart('day')\n const month = getPart('month')\n const year = getPart('year')\n const hour = getPart('hour')\n const minute = getPart('minute')\n const dayPeriod = getPart('dayPeriod').toUpperCase()\n\n return `${day} ${month}, ${year} at ${hour}:${minute} ${dayPeriod}`\n }\n\n protected updated () {\n if (this.paneIcon !== undefined && this._resolvedPaneIconFor !== this.paneIcon) {\n this._resolvedPaneIconFor = this.paneIcon\n this.resolvePaneIcon()\n }\n\n if (!this.titleHeading || !this.fileExplorerContext?.subjectUri || this._draggableSubjectUri === this.fileExplorerContext.subjectUri) return\n\n widgets.makeDraggable(this.titleHeading, sym(this.fileExplorerContext.subjectUri)) // doing it this way for now, just to keep the same functionality\n this._draggableSubjectUri = this.fileExplorerContext.subjectUri\n }\n\n // Needed because humanReadable pane can return a promise for an icon.\n private async resolvePaneIcon () {\n try {\n if (this.paneIcon == null) {\n this.resolvedPaneIcon = undefined\n return\n }\n\n const icon = await this.paneIcon\n this.resolvedPaneIcon = icon ?? undefined\n } catch (error) {\n this.resolvedPaneIcon = undefined\n console.warn('file-explorer-header-summary: failed to resolve pane icon', error)\n }\n }\n\n private renderContainerResourceHeader (label: string, isPublic: boolean) {\n const itemCount = getContainerItemCount(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri) ?? 0\n return html`\n <div class=\"container-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p>\n ${itemCount} items\n ${isPublic\n ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe></span>`\n : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole></span>`}\n </p>\n </div>\n `\n }\n\n private renderResourceHeader (label: string, isPublic: boolean) {\n const modified = this.formatModifiedDate(this.responseMetadata.modified)\n\n return html`\n <div class=\"resource-info\">\n <h1>\n <span>${label}</span>\n </h1>\n <p><span class=\"resource-date\">${modified}</span> ${isPublic ? html`<span class=\"public\"><icon-lucide-globe></icon-lucide-globe> Public</span>` : html`<span class=\"private\"><icon-lucide-lock-keyhole></icon-lucide-lock-keyhole> Private</span>`}</p>\n </div>\n `\n }\n\n render () {\n const subject = this.fileExplorerContext?.subjectUri ? sym(this.fileExplorerContext.subjectUri) : undefined\n const label = subject ? utils.label(subject) : ''\n const isPublic = this.responseMetadata.isPublic\n const isContainerResource = isContainerSubject(this.fileExplorerContext?.store, this.fileExplorerContext?.subjectUri)\n\n return html`\n <div class=\"file-explorer-header-summary\">\n <solid-ui-button\n variant=\"ghost\"\n @click=${this.onBackClick}\n title=\"Back\"\n >\n <icon-lucide-arrow-left></icon-lucide-arrow-left>\n </solid-ui-button>\n <span class=\"pane-icon\">\n ${this.resolvedPaneIcon ? html`<img src=${this.resolvedPaneIcon} alt=\"\" />` : ''}\n </span>\n ${isContainerResource ? this.renderContainerResourceHeader(label, isPublic) : this.renderResourceHeader(label, isPublic)}\n </div>\n </div>\n `\n }\n}\n"],"mappings":"A,0mJAYgFc,EAAA,EAAA,EAG/ET,EAAAA,cAAAA,CAAc,8BAA8B,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,GAAAC,GAAAA,EAO3Cf,EAAAA,QAAAA,CAAQ,CAAEgB,QAAStB,EAAAA,oBAAqBuB,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DtB,EAAAA,SAAAA,CAAS,CAAEuB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BxB,EAAAA,SAAAA,CAAS,CAAEuB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BzB,EAAAA,SAAAA,CAAS,CAAEuB,UAAW,EAAM,CAAC,EAACG,GAAAA,EAM9BxB,EAAAA,MAAAA,CAAM,EAACyB,GAAAA,EAGP1B,EAAAA,MAAAA,CAAM,IAAI,EAAC,wBAAA2B,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AAAV,GAAA6D,EAAA,CAAArF,EAAAsF,IAAAC,EAAApE,EAAA,CAAA,CAAAT,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,UAAA,EAAA,CAAAE,EAAA,EAAA,aAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,cAAA,CAAA,EAAAnB,EAAA,EAAA,IAAA,GAtIsDX,EAAAA,YAAY,EAAA+B,GAAAqE,EAAA,cAAAC,CAAA,CAAApE,aAAA,CAAA,MAAArB,CAAA,EAAAuB,EAAA,KAAA,SACjD3B,EAAAA,OAAM,EAAA0F,EAAA,CAAA,CAAA,EAAA/D,EAAAiE,EAAAvF,EAAA,IAAA,EAAA,EAAAuF,G"}
@@ -158,8 +158,8 @@ function K(e) {
158
158
  }
159
159
  function q(e, t) {
160
160
  if (typeof e != "object" || !e) return e;
161
- var n = e[Symbol.toPrimitive];
162
- if (n !== void 0) {
161
+ var n;
162
+ if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
163
163
  var r = n.call(e, t || "default");
164
164
  if (typeof r != "object") return r;
165
165
  throw TypeError("@@toPrimitive must return a primitive value.");
@@ -1,13 +1,13 @@
1
- require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("./FileExplorerHeader.cjs.js");const e=require("./FileExplorerProvider.styles.cjs.js"),t=require("../../icons/person.cjs.js"),n=require("../../icons/friends.cjs.js");let r=require("solid-ui"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,ee,te,ne,re,ie,ae,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,J,oe,se,ce,le,ue,de,fe;function Y(e,t,n){pe(e,t),t.set(e,n)}function pe(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function X(e,t,n){return e.set(me(e,t),n),n}function Z(e,t){return e.get(me(e,t))}function me(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Q(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ve(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ve(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ye(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:ge(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function ge(e){var t=_e(e,`string`);return typeof t==`symbol`?t:t+``}function _e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ve(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ye(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function be(e){return e}var xe=t.default,Se=n.default;function Ce(e){return{store:e.store,subjectUri:e.subjectUri,pane:e.pane,soloPane:e.soloPane,onBack:e.onBack,openPane:e.openPane,handleAccessClick:e.handleAccessClick,paneSupportsEditing:e.paneSupportsEditing,edit:e.edit}}D=[(0,i.customElement)(`file-explorer-provider`)];var $;new(de=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,fe=(O=(0,i.property)({attribute:!1}),A=(0,i.property)({attribute:!1}),M=(0,i.property)({attribute:!1}),te=(0,i.property)({attribute:!1}),re=(0,i.property)({attribute:!1}),ae=(0,i.property)({attribute:!1}),P=(0,i.property)({attribute:!1}),I=(0,i.property)({attribute:!1}),R=(0,i.property)({attribute:!1}),B=(0,i.property)({attribute:!1}),H=(0,i.state)(),W=(0,i.state)(),K=(0,i.state)(),J=(0,i.state)(),se=(0,i.state)(),le=(0,a.provide)({context:r.fileExplorerContext}),`context`),c=class extends r.WebComponent{constructor(...e){super(...e),Y(this,l,(T(this),k(this,void 0))),Y(this,u,j(this,void 0)),Y(this,d,ee(this,void 0)),Y(this,f,ne(this,[])),Y(this,p,ie(this,void 0)),Y(this,m,N(this,{})),Y(this,h,F(this,!0)),Y(this,g,L(this,void 0)),Y(this,_,z(this,void 0)),Y(this,v,V(this,void 0)),Y(this,y,U(this,[])),Y(this,b,G(this,!1)),Y(this,x,q(this,!1)),Y(this,S,oe(this,!1)),Q(this,`beginEditingInSourcePane`,()=>{this.querySelector(`source-pane-source-provider`)?.beginEditing?.()}),Y(this,C,ce(this,{onEdit:this.beginEditingInSourcePane,isDirty:!1,updateDirtyState:e=>{this.isDirty!==e&&(this.isDirty=e,this.edit={...this.edit,isDirty:e},this.refreshFileExplorerContextValue())}})),Y(this,w,ue(this,Ce({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:!1,edit:this.edit})))}get[fe](){return Z(l,this)}set context(e){X(l,this,e)}get subjectUri(){return Z(u,this)}set subjectUri(e){X(u,this,e)}get onBack(){return Z(d,this)}set onBack(e){X(d,this,e)}get relevantPanes(){return Z(f,this)}set relevantPanes(e){X(f,this,e)}get pane(){return Z(p,this)}set pane(e){X(p,this,e)}get paneRenderOptions(){return Z(m,this)}set paneRenderOptions(e){X(m,this,e)}get showHeader(){return Z(h,this)}set showHeader(e){X(h,this,e)}get handleAccessClick(){return Z(g,this)}set handleAccessClick(e){X(g,this,e)}get soloPane(){return Z(_,this)}set soloPane(e){X(_,this,e)}get openPane(){return Z(v,this)}set openPane(e){X(v,this,e)}get menuItems(){return Z(y,this)}set menuItems(e){X(y,this,e)}get isEditing(){return Z(b,this)}set isEditing(e){X(b,this,e)}get isDirty(){return Z(x,this)}set isDirty(e){X(x,this,e)}get paneSupportsEditing(){return Z(S,this)}set paneSupportsEditing(e){X(S,this,e)}get edit(){return Z(C,this)}set edit(e){X(C,this,e)}get fileExplorerContextValue(){return Z(w,this)}set fileExplorerContextValue(e){X(w,this,e)}openSelectedPane(e){this.context?.session.store&&this.subjectUri&&(this.paneSupportsEditing=e.name===`source`,this.pane=e)}getPaneIcon(e,t,n){if(e)return typeof e.icon==`function`?e.icon(t,n):e.icon}async getPaneItems(e,t,n){let i=t.dom;return await Promise.all(n.map(async n=>{let a=n.label(e,t),o=``;o=n.name===`profile`?xe:n.name===`social`?Se:await this.getPaneIcon(n,e,t);let s=r.utils.AJARImage(o,a,a,i);return s.setAttribute(`slot`,`left-icon`),{label:a,icon:s,action:()=>this.openPane?.(e,n.name)}}))}refreshFileExplorerContextValue(){this.fileExplorerContextValue=Ce({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:this.paneSupportsEditing,edit:this.edit})}async refreshMenuItems(){let e=this.context?.session.store;if(!e||!this.subjectUri)return;let t=e.sym(this.subjectUri),n=await this.getPaneItems(t,this.context,this.relevantPanes);this.menuItems=n}willUpdate(e){if(super.willUpdate(e),!this.context?.session.store)throw Error("The element is missing the required `context.session.store` value. Ensure the `context` property is set.");if(!this.subjectUri)throw Error("The element is missing the required `subjectUri` property.");(e.has(`subjectUri`)||e.has(`relevantPanes`)||e.has(`context`))&&this.refreshMenuItems().catch(e=>{console.warn(`Failed to refresh menu items`,e)}),(e.has(`pane`)||e.has(`subjectUri`)||e.has(`context`))&&(this.paneSupportsEditing=this.pane?.name===`source`),(e.has(`context`)||e.has(`subjectUri`)||e.has(`pane`)||e.has(`soloPane`)||e.has(`onBack`)||e.has(`openPane`)||e.has(`handleAccessClick`)||e.has(`pane`)||e.has(`isDirty`))&&this.refreshFileExplorerContextValue()}render(){let e=(this.context?.session.store).sym(this.subjectUri);return o.html`
1
+ const e=require("../../navigation/chrome.cjs.js"),t=require("../../icons/person.cjs.js"),n=require("../../icons/friends.cjs.js");require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("./FileExplorerHeader.cjs.js");const r=require("./FileExplorerProvider.styles.cjs.js");let i=require("solid-ui"),a=require("lit/decorators.js"),o=require("@lit/context"),s=require("lit");var c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,ee,te,ne,re,ie,ae,oe,M,N,P,F,I,L,R,z,B,V,H,U,W,G,K,q,se,ce,le,ue,de,fe,pe,me;function J(e,t,n){he(e,t),t.set(e,n)}function he(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function Y(e,t,n){return e.set(ge(e,t),n),n}function X(e,t){return e.get(ge(e,t))}function ge(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function Z(e,t,n){return(t=Q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:ye(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||ye(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return be(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:Q(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function Q(e){var t=ve(e,`string`);return typeof t==`symbol`?t:t+``}function ve(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ye(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function be(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function xe(e){return e}var Se=t.default,Ce=n.default;function we(e){return{store:e.store,subjectUri:e.subjectUri,pane:e.pane,soloPane:e.soloPane,onBack:e.onBack,openPane:e.openPane,handleAccessClick:e.handleAccessClick,paneSupportsEditing:e.paneSupportsEditing,edit:e.edit}}O=[(0,a.customElement)(`file-explorer-provider`)];var $;new(pe=(u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,T=new WeakMap,me=(k=(0,a.property)({attribute:!1}),j=(0,a.property)({attribute:!1}),te=(0,a.property)({attribute:!1}),re=(0,a.property)({attribute:!1}),ae=(0,a.property)({attribute:!1}),M=(0,a.property)({attribute:!1}),P=(0,a.property)({attribute:!1}),I=(0,a.property)({attribute:!1}),R=(0,a.property)({attribute:!1}),B=(0,a.property)({attribute:!1}),H=(0,a.state)(),W=(0,a.state)(),K=(0,a.state)(),se=(0,a.state)(),le=(0,a.state)(),de=(0,o.provide)({context:i.fileExplorerContext}),`context`),l=class extends i.WebComponent{constructor(...e){super(...e),J(this,u,(E(this),A(this,void 0))),J(this,d,ee(this,void 0)),J(this,f,ne(this,void 0)),J(this,p,ie(this,[])),J(this,m,oe(this,void 0)),J(this,h,N(this,{})),J(this,g,F(this,!0)),J(this,_,L(this,void 0)),J(this,v,z(this,void 0)),J(this,y,V(this,void 0)),J(this,b,U(this,[])),J(this,x,G(this,!1)),J(this,S,q(this,!1)),J(this,C,ce(this,!1)),Z(this,`beginEditingInSourcePane`,()=>{this.querySelector(`source-pane-source-provider`)?.beginEditing?.()}),J(this,w,ue(this,{onEdit:this.beginEditingInSourcePane,isDirty:!1,updateDirtyState:e=>{this.isDirty!==e&&(this.isDirty=e,this.edit={...this.edit,isDirty:e},this.refreshFileExplorerContextValue())}})),J(this,T,fe(this,we({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:!1,edit:this.edit})))}get[me](){return X(u,this)}set context(e){Y(u,this,e)}get subjectUri(){return X(d,this)}set subjectUri(e){Y(d,this,e)}get onBack(){return X(f,this)}set onBack(e){Y(f,this,e)}get relevantPanes(){return X(p,this)}set relevantPanes(e){Y(p,this,e)}get pane(){return X(m,this)}set pane(e){Y(m,this,e)}get paneRenderOptions(){return X(h,this)}set paneRenderOptions(e){Y(h,this,e)}get showHeader(){return X(g,this)}set showHeader(e){Y(g,this,e)}get handleAccessClick(){return X(_,this)}set handleAccessClick(e){Y(_,this,e)}get soloPane(){return X(v,this)}set soloPane(e){Y(v,this,e)}get openPane(){return X(y,this)}set openPane(e){Y(y,this,e)}get menuItems(){return X(b,this)}set menuItems(e){Y(b,this,e)}get isEditing(){return X(x,this)}set isEditing(e){Y(x,this,e)}get isDirty(){return X(S,this)}set isDirty(e){Y(S,this,e)}get paneSupportsEditing(){return X(C,this)}set paneSupportsEditing(e){Y(C,this,e)}get edit(){return X(w,this)}set edit(e){Y(w,this,e)}get fileExplorerContextValue(){return X(T,this)}set fileExplorerContextValue(e){Y(T,this,e)}openSelectedPane(e){this.context?.session.store&&this.subjectUri&&(this.paneSupportsEditing=e.name===`source`,this.pane=e)}getPaneIcon(e,t,n){if(e)return typeof e.icon==`function`?e.icon(t,n):e.icon}async getPaneItems(e,t,n){let r=t.dom;return await Promise.all(n.map(async n=>{let a=n.label(e,t),o=``;o=n.name===`profile`?Se:n.name===`social`?Ce:await this.getPaneIcon(n,e,t);let s=i.utils.AJARImage(o,a,a,r);return s.setAttribute(`slot`,`left-icon`),{label:a,icon:s,action:()=>this.openPane?.(e,n.name)}}))}refreshFileExplorerContextValue(){this.fileExplorerContextValue=we({store:this.context?.session.store,subjectUri:this.subjectUri,pane:this.pane,soloPane:this.soloPane,onBack:this.onBack,openPane:this.openPane,handleAccessClick:this.handleAccessClick,paneSupportsEditing:this.paneSupportsEditing,edit:this.edit})}async refreshMenuItems(){let e=this.context?.session.store;if(!e||!this.subjectUri)return;let t=e.sym(this.subjectUri),n=await this.getPaneItems(t,this.context,this.relevantPanes);this.menuItems=n}willUpdate(e){if(super.willUpdate(e),!this.context?.session.store)throw Error("The element is missing the required `context.session.store` value. Ensure the `context` property is set.");if(!this.subjectUri)throw Error("The element is missing the required `subjectUri` property.");(e.has(`subjectUri`)||e.has(`relevantPanes`)||e.has(`context`))&&this.refreshMenuItems().catch(e=>{console.warn(`Failed to refresh menu items`,e)}),(e.has(`pane`)||e.has(`subjectUri`)||e.has(`context`))&&(this.paneSupportsEditing=this.pane?.name===`source`),(e.has(`context`)||e.has(`subjectUri`)||e.has(`pane`)||e.has(`soloPane`)||e.has(`onBack`)||e.has(`openPane`)||e.has(`handleAccessClick`)||e.has(`pane`)||e.has(`isDirty`))&&this.refreshFileExplorerContextValue()}render(){let t=(this.context?.session.store).sym(this.subjectUri),n=e.explorerHeaderForPane(this.showHeader,this.pane?.name);return s.html`
2
2
  <div class="file-explorer-provider">
3
- ${this.showHeader?o.html`
3
+ ${n?s.html`
4
4
  <file-explorer-header
5
- .paneIcon=${this.getPaneIcon(this.pane,e,this.context)}
5
+ .paneIcon=${this.getPaneIcon(this.pane,t,this.context)}
6
6
  .menuItems=${this.menuItems}
7
7
  .paneSupportsEditing=${this.paneSupportsEditing}
8
8
  ></file-explorer-header>
9
- `:o.nothing}
9
+ `:s.nothing}
10
10
  <slot class="pane"></slot>
11
11
  </div>
12
- `}},{e:[k,j,ee,ne,ie,N,F,L,z,V,U,G,q,oe,ce,ue,T],c:[$,E]}=he(c,[[O,1,`context`],[A,1,`subjectUri`],[M,1,`onBack`],[te,1,`relevantPanes`],[re,1,`pane`],[ae,1,`paneRenderOptions`],[P,1,`showHeader`],[I,1,`handleAccessClick`],[R,1,`soloPane`],[B,1,`openPane`],[H,1,`menuItems`],[W,1,`isEditing`],[K,1,`isDirty`],[J,1,`paneSupportsEditing`],[se,1,`edit`],[le,1,`fileExplorerContextValue`]],D,0,void 0,r.WebComponent),c),s=class extends be{constructor(){super($),Q(this,`styles`,e.default),E()}},Q(s,de,void 0),s),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return $}});
12
+ `}},{e:[A,ee,ne,ie,oe,N,F,L,z,V,U,G,q,ce,ue,fe,E],c:[$,D]}=_e(l,[[k,1,`context`],[j,1,`subjectUri`],[te,1,`onBack`],[re,1,`relevantPanes`],[ae,1,`pane`],[M,1,`paneRenderOptions`],[P,1,`showHeader`],[I,1,`handleAccessClick`],[R,1,`soloPane`],[B,1,`openPane`],[H,1,`menuItems`],[W,1,`isEditing`],[K,1,`isDirty`],[se,1,`paneSupportsEditing`],[le,1,`edit`],[de,1,`fileExplorerContextValue`]],O,0,void 0,i.WebComponent),l),c=class extends xe{constructor(){super($),Z(this,`styles`,r.default),D()}},Z(c,pe,void 0),c),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return $}});
13
13
  //# sourceMappingURL=FileExplorerProvider.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","nothing","utils","WebComponent","provide","fileExplorerContext","customElement","property","state","styles","personIcon","friendsIcon","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","store","subjectUri","pane","soloPane","onBack","openPane","handleAccessClick","paneSupportsEditing","edit","_classDecs","_FileExplorerProvider","_FileExplorerProvider2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_ref","_contextDecs","attribute","_subjectUriDecs","_onBackDecs","_relevantPanesDecs","_paneDecs","_paneRenderOptionsDecs","_showHeaderDecs","_handleAccessClickDecs","_soloPaneDecs","_openPaneDecs","_menuItemsDecs","_isEditingDecs","_isDirtyDecs","_paneSupportsEditingDecs","_editDecs","_fileExplorerContextValueDecs","context","_FileExplorerProvider3","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","undefined","_init_subjectUri","_init_onBack","_init_relevantPanes","_init_pane","_init_paneRenderOptions","_init_showHeader","_init_handleAccessClick","_init_soloPane","_init_openPane","_init_menuItems","_init_isEditing","_init_isDirty","_init_paneSupportsEditing","_defineProperty","sourceProvider","querySelector","beginEditing","_init_edit","onEdit","beginEditingInSourcePane","isDirty","updateDirtyState","dirty","refreshFileExplorerContextValue","_init_fileExplorerContextValue","session","_classPrivateFieldGet","v","_classPrivateFieldSet","relevantPanes","paneRenderOptions","showHeader","menuItems","isEditing","fileExplorerContextValue","openSelectedPane","name","getPaneIcon","subject","icon","getPaneItems","dom","Promise","all","map","label","iconSrc","AJARImage","setAttribute","action","refreshMenuItems","sym","willUpdate","changedProperties","Error","has","catch","error","console","warn","render","e","c","_initClass","_applyDecs","_Class","_identity","default","personIcon","friendsIcon","customElement","property","state","provide","fileExplorerContext","WebComponent","utils","nothing","styles","require_FileExplorerProvider_styles","require_person","require_friends","solid_ui","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerProvider3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_onBackDecs","_init_onBack","_relevantPanesDecs","_init_relevantPanes","_paneDecs","_init_pane","_paneRenderOptionsDecs","_init_paneRenderOptions","_showHeaderDecs","_init_showHeader","_handleAccessClickDecs","_init_handleAccessClick","_soloPaneDecs","_init_soloPane","_openPaneDecs","_init_openPane","_menuItemsDecs","_init_menuItems","_isEditingDecs","_init_isEditing","_isDirtyDecs","_init_isDirty","_paneSupportsEditingDecs","_init_paneSupportsEditing","_editDecs","_init_edit","_fileExplorerContextValueDecs","_init_fileExplorerContextValue","_FileExplorerProvider2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","_FileExplorerProvider","args","dirty","pane","subject","context","dom","relevantPanes","label","iconSrc","icon","store","menuItems","changedProperties","error"],"sources":["../../../src/components/file-explorer-header/FileExplorerProvider.ts"],"sourcesContent":["import { html, nothing, type PropertyValues } from 'lit'\nimport type { NamedNode, LiveStore } from 'rdflib'\nimport { DataBrowserContext, type PaneDefinition } from 'pane-registry'\nimport { utils, WebComponent } from 'solid-ui'\nimport { provide } from '@lit/context'\nimport { fileExplorerContext, type FileExplorerContext, type FileExplorerEdit } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport './FileExplorerHeader'\nimport styles from './FileExplorerProvider.styles.css'\nimport personIcon from '../../icons/person.svg'\nimport friendsIcon from '../../icons/friends.svg'\nimport '~icons/lucide/share-2'\n\nconst PERSON_ICON = personIcon\nconst FRIENDS_ICON = friendsIcon\n\nfunction createFileExplorerContextValue (value: {\n store: LiveStore | undefined\n subjectUri: string | undefined\n pane?: PaneDefinition\n soloPane?: boolean\n onBack?: () => void\n openPane?: (subject: NamedNode, paneName: string) => void\n handleAccessClick?: () => void\n paneSupportsEditing?: boolean\n edit?: {\n onEdit?: () => void\n isDirty?: boolean\n updateDirtyState?: (dirty: boolean) => void\n }\n}): FileExplorerContext {\n return {\n store: value.store as LiveStore,\n subjectUri: value.subjectUri,\n pane: value.pane,\n soloPane: value.soloPane,\n onBack: value.onBack,\n openPane: value.openPane,\n handleAccessClick: value.handleAccessClick,\n paneSupportsEditing: value.paneSupportsEditing,\n edit: value.edit\n }\n}\n@customElement('file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined = undefined\n\n @property({ attribute: false })\n accessor onBack: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined = undefined\n\n @property({ attribute: false })\n accessor paneRenderOptions: Record<string, unknown> = {}\n\n @property({ attribute: false })\n accessor showHeader: boolean = true\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n // TODO: Need to research this more, brought it over from manager.\n @property({ attribute: false })\n accessor soloPane: boolean | undefined = undefined\n\n @property({ attribute: false })\n accessor openPane: ((subject: NamedNode, paneName: string) => void) | undefined = undefined\n\n @state()\n accessor menuItems: Array<{ label: string, icon?: HTMLElement, action: (event: Event) => void }> = []\n\n @state()\n accessor isEditing: boolean = false\n\n @state()\n accessor isDirty: boolean = false\n\n @state()\n accessor paneSupportsEditing: boolean = false\n\n // TODO: For now this works, but check if there is a better way.\n // because this means file explorer will know about the pane.\n // what if other panes want to use this. If so maybe we should\n // add more to the context to capture the provider for the pane that\n // will be editing... anyway this shouldn't be just for source pane.\n private beginEditingInSourcePane = () => {\n const sourceProvider = this.querySelector('source-pane-source-provider') as {\n beginEditing?: () => void\n } | null\n\n sourceProvider?.beginEditing?.()\n }\n\n // TODO: same as below. on Edit should be something more generic\n @state()\n accessor edit: FileExplorerEdit = {\n onEdit: this.beginEditingInSourcePane,\n isDirty: false,\n updateDirtyState: (dirty: boolean) => {\n if (this.isDirty === dirty) return\n\n this.isDirty = dirty\n this.edit = {\n ...this.edit,\n isDirty: dirty\n }\n this.refreshFileExplorerContextValue()\n }\n }\n\n @provide({ context: fileExplorerContext })\n accessor fileExplorerContextValue: FileExplorerContext = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: false,\n edit: this.edit\n })\n\n // Change the state for the pane so it can show the new icon.\n openSelectedPane (pane: PaneDefinition) {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n this.paneSupportsEditing = pane.name === 'source'\n this.pane = pane\n }\n\n private getPaneIcon (pane, subject, context) {\n if (!pane) return undefined\n\n const icon = typeof pane.icon === 'function'\n ? pane.icon(subject, context)\n : pane.icon\n return icon\n }\n\n private async getPaneItems (subject, context, relevantPanes) {\n const dom = context.dom\n const menuItems = await Promise.all(relevantPanes.map(async pane => {\n const label = pane.label(subject, context)\n\n let iconSrc = ''\n if (pane.name === 'profile') {\n iconSrc = PERSON_ICON\n } else if (pane.name === 'social') {\n iconSrc = FRIENDS_ICON\n } else {\n iconSrc = await this.getPaneIcon(pane, subject, context)\n }\n\n const icon = utils.AJARImage(iconSrc, label, label, dom)\n icon.setAttribute('slot', 'left-icon')\n\n return {\n label,\n icon,\n action: () => this.openPane?.(subject, pane.name)\n }\n }))\n return menuItems\n }\n\n private refreshFileExplorerContextValue () {\n this.fileExplorerContextValue = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: this.paneSupportsEditing,\n edit: this.edit\n })\n }\n\n private async refreshMenuItems () {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n\n const subject = store.sym(this.subjectUri)\n const menuItems = await this.getPaneItems(subject, this.context as DataBrowserContext, this.relevantPanes)\n\n this.menuItems = menuItems\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n const store = this.context?.session.store as LiveStore\n if (!store) {\n throw new Error('The element is missing the required `context.session.store` value. Ensure the `context` property is set.')\n }\n if (!this.subjectUri) {\n throw new Error('The element is missing the required `subjectUri` property.')\n }\n\n if (\n changedProperties.has('subjectUri') ||\n changedProperties.has('relevantPanes') ||\n changedProperties.has('context')\n ) {\n this.refreshMenuItems().catch(error => {\n console.warn('Failed to refresh menu items', error)\n })\n }\n\n if (changedProperties.has('pane') || changedProperties.has('subjectUri') || changedProperties.has('context')) {\n this.paneSupportsEditing = this.pane?.name === 'source'\n }\n\n if (\n changedProperties.has('context') ||\n changedProperties.has('subjectUri') ||\n changedProperties.has('pane') ||\n changedProperties.has('soloPane') ||\n changedProperties.has('onBack') ||\n changedProperties.has('openPane') ||\n changedProperties.has('handleAccessClick') ||\n changedProperties.has('pane') ||\n changedProperties.has('isDirty')\n ) {\n this.refreshFileExplorerContextValue()\n }\n }\n\n render () {\n const store = this.context?.session.store as LiveStore\n const subject = store.sym(this.subjectUri as string)\n return html`\n <div class=\"file-explorer-provider\">\n ${this.showHeader\n ? html`\n <file-explorer-header\n .paneIcon=${this.getPaneIcon(this.pane, subject, this.context as DataBrowserContext)}\n .menuItems=${this.menuItems}\n .paneSupportsEditing=${this.paneSupportsEditing}\n ></file-explorer-header>\n `\n : nothing}\n <slot class=\"pane\"></slot>\n </div>\n `\n }\n}\n"],"mappings":"6gJAaA,IAAMY,GAAcF,EAAAA,QACdG,GAAeF,EAAAA,QAErB,SAASG,GAAgCC,EAcjB,CACtB,MAAO,CACLC,MAAOD,EAAMC,MACbC,WAAYF,EAAME,WAClBC,KAAMH,EAAMG,KACZC,SAAUJ,EAAMI,SAChBC,OAAQL,EAAMK,OACdC,SAAUN,EAAMM,SAChBC,kBAAmBP,EAAMO,kBACzBC,oBAAqBR,EAAMQ,oBAC3BC,KAAMT,EAAMS,IACd,CACF,CAACC,EAAA,EAAA,EACAnB,EAAAA,cAAAA,CAAc,wBAAwB,CAAC,EAAA,IAAAoB,EAAA,IAAAC,IAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,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AA,QAAO;;;KAIjB,CACF,EAAC,CAAAoI,EAAA,CAAA/D,EAAAE,EAAAC,GAAAC,GAAAC,GAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,GAAAK,GAAAO,GAAA3B,GAAAiE,EAAA,CAAA5G,EAAA6G,IAAAC,GAAAxE,EAAA,CAAA,CAAAlB,EAAA,EAAA,SAAA,EAAA,CAAAE,EAAA,EAAA,YAAA,EAAA,CAAAC,EAAA,EAAA,QAAA,EAAA,CAAAC,GAAA,EAAA,eAAA,EAAA,CAAAC,GAAA,EAAA,MAAA,EAAA,CAAAC,GAAA,EAAA,mBAAA,EAAA,CAAAC,EAAA,EAAA,YAAA,EAAA,CAAAC,EAAA,EAAA,mBAAA,EAAA,CAAAC,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,WAAA,EAAA,CAAAC,EAAA,EAAA,WAAA,EAAA,CAAAC,EAAA,EAAA,SAAA,EAAA,CAAAC,EAAA,EAAA,qBAAA,EAAA,CAAAC,GAAA,EAAA,MAAA,EAAA,CAAAC,GAAA,EAAA,0BAAA,CAAA,EAAArC,EAAA,EAAA,IAAA,GArNiDtB,EAAAA,YAAY,EAAA6D,GAAAyE,EAAA,cAAAC,EAAA,CAAAxE,aAAA,CAAA,MAAAxC,CAAA,EAAA2D,EAAA,KAAA,SAC5C5E,EAAAA,OAAM,EAAA8H,EAAA,CAAA,CAAA,EAAAlD,EAAAoD,EAAA9G,GAAA,IAAA,EAAA,EAAA8G"}
1
+ {"version":3,"file":"FileExplorerProvider.cjs.js","names":["html","nothing","utils","WebComponent","provide","fileExplorerContext","customElement","property","state","styles","personIcon","friendsIcon","explorerHeaderForPane","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","store","subjectUri","pane","soloPane","onBack","openPane","handleAccessClick","paneSupportsEditing","edit","_classDecs","_FileExplorerProvider","_FileExplorerProvider2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_ref","_contextDecs","attribute","_subjectUriDecs","_onBackDecs","_relevantPanesDecs","_paneDecs","_paneRenderOptionsDecs","_showHeaderDecs","_handleAccessClickDecs","_soloPaneDecs","_openPaneDecs","_menuItemsDecs","_isEditingDecs","_isDirtyDecs","_paneSupportsEditingDecs","_editDecs","_fileExplorerContextValueDecs","context","_FileExplorerProvider3","FileExplorerProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_context","undefined","_init_subjectUri","_init_onBack","_init_relevantPanes","_init_pane","_init_paneRenderOptions","_init_showHeader","_init_handleAccessClick","_init_soloPane","_init_openPane","_init_menuItems","_init_isEditing","_init_isDirty","_init_paneSupportsEditing","_defineProperty","sourceProvider","querySelector","beginEditing","_init_edit","onEdit","beginEditingInSourcePane","isDirty","updateDirtyState","dirty","refreshFileExplorerContextValue","_init_fileExplorerContextValue","session","_classPrivateFieldGet","v","_classPrivateFieldSet","relevantPanes","paneRenderOptions","showHeader","menuItems","isEditing","fileExplorerContextValue","openSelectedPane","name","getPaneIcon","subject","icon","getPaneItems","dom","Promise","all","map","label","iconSrc","AJARImage","setAttribute","action","refreshMenuItems","sym","willUpdate","changedProperties","Error","has","catch","error","console","warn","render","e","c","_initClass","_applyDecs","_Class","_identity","default","personIcon","friendsIcon","customElement","property","state","provide","fileExplorerContext","WebComponent","utils","explorerHeaderForPane","nothing","styles","require_chrome","require_person","require_friends","require_FileExplorerProvider_styles","solid_ui","lit_decorators_js","_lit_context","lit","_Class","_FileExplorerProvider3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_K","_L","_M","_N","_O","_P","_initProto","_initClass","_classDecs","_contextDecs","_init_context","_subjectUriDecs","_init_subjectUri","_onBackDecs","_init_onBack","_relevantPanesDecs","_init_relevantPanes","_paneDecs","_init_pane","_paneRenderOptionsDecs","_init_paneRenderOptions","_showHeaderDecs","_init_showHeader","_handleAccessClickDecs","_init_handleAccessClick","_soloPaneDecs","_init_soloPane","_openPaneDecs","_init_openPane","_menuItemsDecs","_init_menuItems","_isEditingDecs","_init_isEditing","_isDirtyDecs","_init_isDirty","_paneSupportsEditingDecs","_init_paneSupportsEditing","_editDecs","_init_edit","_fileExplorerContextValueDecs","_init_fileExplorerContextValue","_FileExplorerProvider2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","PERSON_ICON","FRIENDS_ICON","createFileExplorerContextValue","value","_FileExplorerProvider","args","dirty","pane","subject","context","dom","relevantPanes","label","iconSrc","icon","store","menuItems","changedProperties","error","showHeader"],"sources":["../../../src/components/file-explorer-header/FileExplorerProvider.ts"],"sourcesContent":["import { html, nothing, type PropertyValues } from 'lit'\nimport type { NamedNode, LiveStore } from 'rdflib'\nimport { DataBrowserContext, type PaneDefinition } from 'pane-registry'\nimport { utils, WebComponent } from 'solid-ui'\nimport { provide } from '@lit/context'\nimport { fileExplorerContext, type FileExplorerContext, type FileExplorerEdit } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport './FileExplorerHeader'\nimport styles from './FileExplorerProvider.styles.css'\nimport personIcon from '../../icons/person.svg'\nimport friendsIcon from '../../icons/friends.svg'\nimport '~icons/lucide/share-2'\nimport { explorerHeaderForPane } from '../../navigation/chrome'\n\nconst PERSON_ICON = personIcon\nconst FRIENDS_ICON = friendsIcon\n\nfunction createFileExplorerContextValue (value: {\n store: LiveStore | undefined\n subjectUri: string | undefined\n pane?: PaneDefinition\n soloPane?: boolean\n onBack?: () => void\n openPane?: (subject: NamedNode, paneName: string) => void\n handleAccessClick?: () => void\n paneSupportsEditing?: boolean\n edit?: {\n onEdit?: () => void\n isDirty?: boolean\n updateDirtyState?: (dirty: boolean) => void\n }\n}): FileExplorerContext {\n return {\n store: value.store as LiveStore,\n subjectUri: value.subjectUri,\n pane: value.pane,\n soloPane: value.soloPane,\n onBack: value.onBack,\n openPane: value.openPane,\n handleAccessClick: value.handleAccessClick,\n paneSupportsEditing: value.paneSupportsEditing,\n edit: value.edit\n }\n}\n@customElement('file-explorer-provider')\nexport default class FileExplorerProvider extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor context: DataBrowserContext | undefined = undefined\n\n @property({ attribute: false })\n accessor subjectUri: string | undefined = undefined\n\n @property({ attribute: false })\n accessor onBack: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor relevantPanes: PaneDefinition[] = []\n\n @property({ attribute: false })\n accessor pane: PaneDefinition | undefined = undefined\n\n @property({ attribute: false })\n accessor paneRenderOptions: Record<string, unknown> = {}\n\n @property({ attribute: false })\n accessor showHeader: boolean = true\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n // TODO: Need to research this more, brought it over from manager.\n @property({ attribute: false })\n accessor soloPane: boolean | undefined = undefined\n\n @property({ attribute: false })\n accessor openPane: ((subject: NamedNode, paneName: string) => void) | undefined = undefined\n\n @state()\n accessor menuItems: Array<{ label: string, icon?: HTMLElement, action: (event: Event) => void }> = []\n\n @state()\n accessor isEditing: boolean = false\n\n @state()\n accessor isDirty: boolean = false\n\n @state()\n accessor paneSupportsEditing: boolean = false\n\n // TODO: For now this works, but check if there is a better way.\n // because this means file explorer will know about the pane.\n // what if other panes want to use this. If so maybe we should\n // add more to the context to capture the provider for the pane that\n // will be editing... anyway this shouldn't be just for source pane.\n private beginEditingInSourcePane = () => {\n const sourceProvider = this.querySelector('source-pane-source-provider') as {\n beginEditing?: () => void\n } | null\n\n sourceProvider?.beginEditing?.()\n }\n\n // TODO: same as below. on Edit should be something more generic\n @state()\n accessor edit: FileExplorerEdit = {\n onEdit: this.beginEditingInSourcePane,\n isDirty: false,\n updateDirtyState: (dirty: boolean) => {\n if (this.isDirty === dirty) return\n\n this.isDirty = dirty\n this.edit = {\n ...this.edit,\n isDirty: dirty\n }\n this.refreshFileExplorerContextValue()\n }\n }\n\n @provide({ context: fileExplorerContext })\n accessor fileExplorerContextValue: FileExplorerContext = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: false,\n edit: this.edit\n })\n\n // Change the state for the pane so it can show the new icon.\n openSelectedPane (pane: PaneDefinition) {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n this.paneSupportsEditing = pane.name === 'source'\n this.pane = pane\n }\n\n private getPaneIcon (pane, subject, context) {\n if (!pane) return undefined\n\n const icon = typeof pane.icon === 'function'\n ? pane.icon(subject, context)\n : pane.icon\n return icon\n }\n\n private async getPaneItems (subject, context, relevantPanes) {\n const dom = context.dom\n const menuItems = await Promise.all(relevantPanes.map(async pane => {\n const label = pane.label(subject, context)\n\n let iconSrc = ''\n if (pane.name === 'profile') {\n iconSrc = PERSON_ICON\n } else if (pane.name === 'social') {\n iconSrc = FRIENDS_ICON\n } else {\n iconSrc = await this.getPaneIcon(pane, subject, context)\n }\n\n const icon = utils.AJARImage(iconSrc, label, label, dom)\n icon.setAttribute('slot', 'left-icon')\n\n return {\n label,\n icon,\n action: () => this.openPane?.(subject, pane.name)\n }\n }))\n return menuItems\n }\n\n private refreshFileExplorerContextValue () {\n this.fileExplorerContextValue = createFileExplorerContextValue({\n store: this.context?.session.store as LiveStore,\n subjectUri: this.subjectUri,\n pane: this.pane,\n soloPane: this.soloPane,\n onBack: this.onBack,\n openPane: this.openPane,\n handleAccessClick: this.handleAccessClick,\n paneSupportsEditing: this.paneSupportsEditing,\n edit: this.edit\n })\n }\n\n private async refreshMenuItems () {\n const store = this.context?.session.store as LiveStore\n if (!store || !this.subjectUri) return\n\n const subject = store.sym(this.subjectUri)\n const menuItems = await this.getPaneItems(subject, this.context as DataBrowserContext, this.relevantPanes)\n\n this.menuItems = menuItems\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n const store = this.context?.session.store as LiveStore\n if (!store) {\n throw new Error('The element is missing the required `context.session.store` value. Ensure the `context` property is set.')\n }\n if (!this.subjectUri) {\n throw new Error('The element is missing the required `subjectUri` property.')\n }\n\n if (\n changedProperties.has('subjectUri') ||\n changedProperties.has('relevantPanes') ||\n changedProperties.has('context')\n ) {\n this.refreshMenuItems().catch(error => {\n console.warn('Failed to refresh menu items', error)\n })\n }\n\n if (changedProperties.has('pane') || changedProperties.has('subjectUri') || changedProperties.has('context')) {\n this.paneSupportsEditing = this.pane?.name === 'source'\n }\n\n if (\n changedProperties.has('context') ||\n changedProperties.has('subjectUri') ||\n changedProperties.has('pane') ||\n changedProperties.has('soloPane') ||\n changedProperties.has('onBack') ||\n changedProperties.has('openPane') ||\n changedProperties.has('handleAccessClick') ||\n changedProperties.has('pane') ||\n changedProperties.has('isDirty')\n ) {\n this.refreshFileExplorerContextValue()\n }\n }\n\n render () {\n const store = this.context?.session.store as LiveStore\n const subject = store.sym(this.subjectUri as string)\n // Profile and friends panes present a person, not the resource they are opened on.\n const showHeader = explorerHeaderForPane(this.showHeader, this.pane?.name)\n return html`\n <div class=\"file-explorer-provider\">\n ${showHeader\n ? html`\n <file-explorer-header\n .paneIcon=${this.getPaneIcon(this.pane, subject, this.context as DataBrowserContext)}\n .menuItems=${this.menuItems}\n .paneSupportsEditing=${this.paneSupportsEditing}\n ></file-explorer-header>\n `\n : nothing}\n <slot class=\"pane\"></slot>\n </div>\n `\n }\n}\n"],"mappings":"A,mlJAcA,IAAMa,GAAcH,EAAAA,QACdI,GAAeH,EAAAA,QAErB,SAASI,GAAgCC,EAcjB,CACtB,MAAO,CACLC,MAAOD,EAAMC,MACbC,WAAYF,EAAME,WAClBC,KAAMH,EAAMG,KACZC,SAAUJ,EAAMI,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