solid-panes 4.4.2-4 → 4.4.2-6

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 (240) hide show
  1. package/README.md +0 -30
  2. package/dist/_virtual/_rolldown/runtime.cjs.js +1 -1
  3. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
  6. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
  10. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/folder-open.cjs.js +2 -0
  12. package/dist/_virtual/~icons/lucide/folder-open.cjs.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/folder-open.esm.js +11 -0
  14. package/dist/_virtual/~icons/lucide/folder-open.esm.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
  16. package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
  18. package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js +2 -0
  20. package/dist/_virtual/~icons/lucide/layout-dashboard.cjs.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js +11 -0
  22. package/dist/_virtual/~icons/lucide/layout-dashboard.esm.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  24. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
  26. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  28. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  29. package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
  30. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  31. package/dist/_virtual/~icons/lucide/settings-2.cjs.js +2 -0
  32. package/dist/_virtual/~icons/lucide/settings-2.cjs.js.map +1 -0
  33. package/dist/_virtual/~icons/lucide/settings-2.esm.js +11 -0
  34. package/dist/_virtual/~icons/lucide/settings-2.esm.js.map +1 -0
  35. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  36. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  37. package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
  38. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  39. package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
  40. package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
  41. package/dist/_virtual/~icons/lucide/trash-2.esm.js +11 -0
  42. package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
  43. package/dist/_virtual/~icons/lucide/users.cjs.js +2 -0
  44. package/dist/_virtual/~icons/lucide/users.cjs.js.map +1 -0
  45. package/dist/_virtual/~icons/lucide/users.esm.js +11 -0
  46. package/dist/_virtual/~icons/lucide/users.esm.js.map +1 -0
  47. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
  48. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  49. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +19 -0
  50. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  51. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
  52. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  53. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  54. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  55. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
  56. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  57. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +22 -0
  58. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  59. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +15 -0
  60. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  61. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +266 -0
  62. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  63. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  64. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  65. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
  66. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  67. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +19 -0
  68. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  69. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +19 -0
  70. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  71. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +321 -0
  72. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  73. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  74. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  75. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
  76. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  77. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
  78. package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
  79. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
  80. package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
  81. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +468 -0
  82. package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
  83. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
  84. package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
  85. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
  86. package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
  87. package/dist/components/file-explorer-header/helper.cjs.js +2 -0
  88. package/dist/components/file-explorer-header/helper.cjs.js.map +1 -0
  89. package/dist/components/file-explorer-header/helper.d.ts +15 -0
  90. package/dist/components/file-explorer-header/helper.d.ts.map +1 -0
  91. package/dist/components/file-explorer-header/helper.esm.js +64 -0
  92. package/dist/components/file-explorer-header/helper.esm.js.map +1 -0
  93. package/dist/components/file-explorer-header/types.d.ts +2 -0
  94. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  95. package/dist/components/header/Header.cjs.js +1 -1
  96. package/dist/components/header/Header.cjs.js.map +1 -1
  97. package/dist/components/header/Header.esm.js +3 -3
  98. package/dist/components/navbar/Navbar.cjs.js +15 -0
  99. package/dist/components/navbar/Navbar.cjs.js.map +1 -0
  100. package/dist/components/navbar/Navbar.d.ts +14 -0
  101. package/dist/components/navbar/Navbar.d.ts.map +1 -0
  102. package/dist/components/navbar/Navbar.esm.js +232 -0
  103. package/dist/components/navbar/Navbar.esm.js.map +1 -0
  104. package/dist/components/navbar/Navbar.styles.cjs.js +2 -0
  105. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -0
  106. package/dist/components/navbar/Navbar.styles.esm.js +7 -0
  107. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -0
  108. package/dist/components/navbar/index.cjs.js +1 -0
  109. package/dist/components/navbar/index.d.ts +4 -0
  110. package/dist/components/navbar/index.d.ts.map +1 -0
  111. package/dist/components/navbar/index.esm.js +1 -0
  112. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +16 -0
  113. package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +1 -0
  114. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  115. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  116. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +215 -0
  117. package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +1 -0
  118. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +18 -0
  119. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  120. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +16 -0
  121. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  122. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +260 -0
  123. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  124. package/dist/dashboard/homepage.cjs.js +1 -1
  125. package/dist/dashboard/homepage.cjs.js.map +1 -1
  126. package/dist/dashboard/homepage.esm.js +2 -2
  127. package/dist/dashboard/homepage.esm.js.map +1 -1
  128. package/dist/form/pane.cjs.js +1 -1
  129. package/dist/form/pane.cjs.js.map +1 -1
  130. package/dist/form/pane.esm.js +2 -1
  131. package/dist/form/pane.esm.js.map +1 -1
  132. package/dist/humanReadablePane2.cjs.js.map +1 -1
  133. package/dist/humanReadablePane2.esm.js.map +1 -1
  134. package/dist/index.cjs.js +1 -1
  135. package/dist/index.cjs.js.map +1 -1
  136. package/dist/index.esm.js +12 -7
  137. package/dist/index.esm.js.map +1 -1
  138. package/dist/internal/internalPane2.cjs.js.map +1 -1
  139. package/dist/mainPage/header.cjs.js +1 -1
  140. package/dist/mainPage/header.cjs.js.map +1 -1
  141. package/dist/mainPage/header.d.ts.map +1 -1
  142. package/dist/mainPage/header.esm.js +64 -17
  143. package/dist/mainPage/header.esm.js.map +1 -1
  144. package/dist/mainPage/index.cjs.js +1 -1
  145. package/dist/mainPage/index.cjs.js.map +1 -1
  146. package/dist/mainPage/index.d.ts +1 -9
  147. package/dist/mainPage/index.d.ts.map +1 -1
  148. package/dist/mainPage/index.esm.js +19 -21
  149. package/dist/mainPage/index.esm.js.map +1 -1
  150. package/dist/mainPage/navbar.cjs.js +2 -0
  151. package/dist/mainPage/navbar.cjs.js.map +1 -0
  152. package/dist/mainPage/navbar.d.ts +3 -0
  153. package/dist/mainPage/navbar.d.ts.map +1 -0
  154. package/dist/mainPage/navbar.esm.js +66 -0
  155. package/dist/mainPage/navbar.esm.js.map +1 -0
  156. package/dist/outline/context.d.ts +1 -1
  157. package/dist/outline/manager2.cjs.js +1 -2
  158. package/dist/outline/manager2.cjs.js.map +1 -1
  159. package/dist/outline/manager2.esm.js +366 -532
  160. package/dist/outline/manager2.esm.js.map +1 -1
  161. package/dist/outline/queryByExample.esm.js +1 -0
  162. package/dist/outline/queryByExample.esm.js.map +1 -1
  163. package/dist/outline/sourcePaneIcon.d.ts +2 -0
  164. package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
  165. package/dist/outline/userInput.cjs.js +3 -3
  166. package/dist/outline/userInput.cjs.js.map +1 -1
  167. package/dist/outline/userInput.esm.js +4 -6
  168. package/dist/outline/userInput.esm.js.map +1 -1
  169. package/dist/pad/padPane2.cjs.js +1 -1
  170. package/dist/pad/padPane2.cjs.js.map +1 -1
  171. package/dist/pad/padPane2.esm.js +2 -1
  172. package/dist/pad/padPane2.esm.js.map +1 -1
  173. package/dist/schedule/schedulePane2.cjs.js +1 -1
  174. package/dist/schedule/schedulePane2.cjs.js.map +1 -1
  175. package/dist/schedule/schedulePane2.esm.js +2 -1
  176. package/dist/schedule/schedulePane2.esm.js.map +1 -1
  177. package/dist/social/editProfileDetails.cjs.js +1 -1
  178. package/dist/social/editProfileDetails.esm.js +1 -1
  179. package/dist/social/socialPane2.cjs.js +1 -1
  180. package/dist/social/socialPane2.esm.js +1 -1
  181. package/dist/social/socialSections.cjs.js.map +1 -1
  182. package/dist/transaction/pane.cjs.js.map +1 -1
  183. package/dist/transaction/pane.esm.js.map +1 -1
  184. package/dist/transaction/period.cjs.js.map +1 -1
  185. package/dist/transaction/period.esm.js.map +1 -1
  186. package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
  187. package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
  188. package/dist/utils/paneUtils.cjs.js +2 -0
  189. package/dist/utils/paneUtils.cjs.js.map +1 -0
  190. package/dist/utils/paneUtils.d.ts +19 -0
  191. package/dist/utils/paneUtils.d.ts.map +1 -0
  192. package/dist/utils/paneUtils.esm.js +52 -0
  193. package/dist/utils/paneUtils.esm.js.map +1 -0
  194. package/dist/utils/podUtils.cjs.js +2 -0
  195. package/dist/utils/podUtils.cjs.js.map +1 -0
  196. package/dist/utils/podUtils.d.ts +4 -0
  197. package/dist/utils/podUtils.d.ts.map +1 -0
  198. package/dist/utils/podUtils.esm.js +46 -0
  199. package/dist/utils/podUtils.esm.js.map +1 -0
  200. package/dist/utils/webIdUtils.cjs.js +2 -0
  201. package/dist/utils/webIdUtils.cjs.js.map +1 -0
  202. package/dist/utils/webIdUtils.d.ts +6 -0
  203. package/dist/utils/webIdUtils.d.ts.map +1 -0
  204. package/dist/utils/webIdUtils.esm.js +48 -0
  205. package/dist/utils/webIdUtils.esm.js.map +1 -0
  206. package/dist/versionInfo.cjs.js +1 -1
  207. package/dist/versionInfo.cjs.js.map +1 -1
  208. package/dist/versionInfo.esm.js +3 -3
  209. package/dist/versionInfo.esm.js.map +1 -1
  210. package/package.json +10 -13
  211. package/dist/icons/dashboard.cjs.js +0 -2
  212. package/dist/icons/dashboard.cjs.js.map +0 -1
  213. package/dist/icons/dashboard.esm.js +0 -6
  214. package/dist/icons/dashboard.esm.js.map +0 -1
  215. package/dist/icons/iconHelper.cjs.js +0 -2
  216. package/dist/icons/iconHelper.cjs.js.map +0 -1
  217. package/dist/icons/iconHelper.esm.js +0 -17
  218. package/dist/icons/iconHelper.esm.js.map +0 -1
  219. package/dist/icons/menu.cjs.js +0 -9
  220. package/dist/icons/menu.cjs.js.map +0 -1
  221. package/dist/icons/menu.esm.js +0 -6
  222. package/dist/icons/menu.esm.js.map +0 -1
  223. package/dist/mainPage/footer.cjs.js +0 -2
  224. package/dist/mainPage/footer.cjs.js.map +0 -1
  225. package/dist/mainPage/footer.d.ts +0 -13
  226. package/dist/mainPage/footer.d.ts.map +0 -1
  227. package/dist/mainPage/footer.esm.js +0 -18
  228. package/dist/mainPage/footer.esm.js.map +0 -1
  229. package/dist/mainPage/menu.d.ts +0 -6
  230. package/dist/mainPage/menu.d.ts.map +0 -1
  231. package/dist/mainPage/menu2.cjs.js +0 -2
  232. package/dist/mainPage/menu2.cjs.js.map +0 -1
  233. package/dist/mainPage/menu2.esm.js +0 -184
  234. package/dist/mainPage/menu2.esm.js.map +0 -1
  235. package/dist/profileUtils/ownerProfile.cjs.js +0 -2
  236. package/dist/profileUtils/ownerProfile.cjs.js.map +0 -1
  237. package/dist/profileUtils/ownerProfile.d.ts +0 -5
  238. package/dist/profileUtils/ownerProfile.d.ts.map +0 -1
  239. package/dist/profileUtils/ownerProfile.esm.js +0 -50
  240. package/dist/profileUtils/ownerProfile.esm.js.map +0 -1
@@ -1,30 +1,27 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.obj{vertical-align:top;border:none;margin:.2em;padding:0}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.paneIconTray{justify-content:flex-start;align-items:center;display:flex}.paneShown{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem;background-color:var(--header-menu-item-hover,#e6dcff)!important;border:none!important}.paneHidden{border-radius:var(--border-radius-md,.5rem);width:24px;margin-left:var(--spacing-small,.1rem);padding:.188rem}.header{flex-wrap:wrap;justify-content:flex-start;align-items:center;display:flex}.strongHeader{margin:0 .6rem 0 0;padding:.1rem .4rem;font-size:150%}.tableFullWidth{width:100%;background:var(--color-background,#f8f9fb)!important}.placeholderTable{width:100%}.tdFlex{margin:var(--spacing-xxxs,.2rem);vertical-align:top;border:none;flex-direction:row;justify-content:space-between;padding:0;display:flex}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.obj{vertical-align:top;border:none;margin:.2em;padding:0}.iconTD{vertical-align:top;border:none;width:0;margin:.2em;padding:0}.labelTD{width:100%}.file-explorer-header{flex-wrap:wrap;justify-content:flex-start;align-items:center;display:flex}.strongHeader{margin:0 .6rem 0 0;padding:.1rem .4rem;font-size:150%}.tableFullWidth{width:100%;background:var(--color-background,#f8f9fb)!important}.placeholderTable{width:100%}.tdFlex{border:1px solid var(--color-border,#444);vertical-align:top;background:var(--solid-ui-color-white,#fff);border-radius:5px;flex-direction:row;justify-content:space-between;display:flex;overflow:hidden}.paneDiv,.exceptionPane{width:100%;min-width:0;display:block}.objectValue--literal{white-space:pre-wrap}.objectValue--integer,.objectValue--decimal,.objectValue--double{text-align:right;display:block}.objectValueAccessIcon,.objectValueLinkIcon,.phoneIcon{vertical-align:middle;display:inline-block}.objectValueLinkIcon,.phoneIcon{width:12px;height:12px}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
2
  import { propertyViews as e } from "./propertyViews.esm.js";
3
3
  import { outlineIcons as t } from "./outlineIcons.esm.js";
4
4
  import { UserInput as n } from "./userInput.esm.js";
5
5
  import { QuerySource as r } from "./queryByExample.esm.js";
6
- import { getNameOfPodOwner as i } from "../profileUtils/ownerProfile.esm.js";
7
- import a from "../icons/person.esm.js";
8
- import o from "../icons/friends.esm.js";
9
- import s from "../icons/folder.esm.js";
10
- import c from "../icons/dashboard.esm.js";
11
- import * as l from "solid-ui";
12
- import { authSession as u, authn as d, store as f } from "solid-logic";
13
- import * as p from "pane-registry";
14
- import * as m from "rdflib";
6
+ import { isWebIdUri as i } from "../utils/webIdUtils.esm.js";
7
+ import { loadContainerRepresentation as a } from "../utils/podUtils.esm.js";
8
+ import "../components/file-explorer-header/FileExplorerProvider.esm.js";
9
+ import * as o from "solid-ui";
10
+ import { store as s } from "solid-logic";
11
+ import * as c from "pane-registry";
12
+ import * as l from "rdflib";
15
13
  //#region src/outline/manager.js
16
14
  /* istanbul ignore file */
17
- var h = a, g = o, _ = s, v = c;
18
- function y(a) {
19
- let o = a.dom;
20
- this.document = a.dom, this.context = a, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
21
- let s = this, c = this, y = [];
22
- this.selection = y, this.ancestor = l.utils.ancestor, this.sparql = m.UpdateManager, this.kb = f;
23
- let b = f, x = f.fetcher;
24
- o.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
25
- let S = this.outlineElement;
15
+ function u(u) {
16
+ let d = u.dom;
17
+ this.document = u.dom, this.context = u, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
18
+ let f = this, p = this, m = [];
19
+ this.selection = m, this.ancestor = o.utils.ancestor, this.sparql = l.UpdateManager, this.kb = s;
20
+ let h = s, g = s.fetcher;
21
+ d.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
22
+ let _ = this.outlineElement;
26
23
  this.init = function() {
27
- let e = k();
24
+ let e = b();
28
25
  e.outline = this;
29
26
  }, this.getLayoutMode = function() {
30
27
  let e = this.context?.environment?.layout;
@@ -34,62 +31,60 @@ function y(a) {
34
31
  return e <= 768 || t && e <= 1024 ? "mobile" : "desktop";
35
32
  }
36
33
  return "desktop";
37
- }, C.lastkbsize = 0;
38
- function C(e) {
34
+ }, v.lastkbsize = 0;
35
+ function v(e) {
39
36
  let t = [];
40
37
  for (let e = arguments.length - 1; e > 0; e--) t[e - 1] = arguments[e];
41
38
  let n = (/* @__PURE__ */ new Date()).getTime(), r = e.apply(e, t), i = (/* @__PURE__ */ new Date()).getTime();
42
- return l.log.info("BENCHMARK: kb delta: " + (b.statements.length - C.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), C.lastkbsize = b.statements.length, r;
39
+ return o.log.info("BENCHMARK: kb delta: " + (h.statements.length - v.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), v.lastkbsize = h.statements.length, r;
43
40
  }
44
- function ee(e, n, r) {
45
- let i = l.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, o);
46
- return i.addEventListener("click", ue), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
41
+ function y(e, n, r) {
42
+ let i = o.utils.AJARImage(t.src.icon_remove_node, "remove", void 0, d);
43
+ return i.addEventListener("click", K), i.node = r, i.setAttribute("about", n.toNT()), i.style.marginLeft = "5px", i.style.marginRight = "10px", e.appendChild(i), i;
47
44
  }
48
45
  this.appendAccessIcons = function(e, t, n) {
49
46
  if (n.termType !== "NamedNode") return;
50
47
  let r = e.uris(n);
51
48
  r.sort();
52
49
  let i = null;
53
- for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], c.appendAccessIcon(t, i));
50
+ for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], p.appendAccessIcon(t, i));
54
51
  }, this.appendAccessIcon = function(e, n) {
55
52
  if (!n) return "";
56
- let r = m.uri.docpart(n);
53
+ let r = l.uri.docpart(n);
57
54
  if (r.slice(0, 5) !== "http:") return "";
58
- let i = x.getState(r), a, s, c;
55
+ let i = g.getState(r), a, s, c;
59
56
  switch (i) {
60
57
  case "unrequested":
61
- a = t.src.icon_unrequested, s = "fetch", c = le;
58
+ a = t.src.icon_unrequested, s = "fetch", c = G;
62
59
  break;
63
60
  case "requested":
64
- a = t.src.icon_requested, s = "fetching", c = K;
61
+ a = t.src.icon_requested, s = "fetching", c = U;
65
62
  break;
66
63
  case "fetched":
67
- a = t.src.icon_fetched, c = ce, s = "loaded";
64
+ a = t.src.icon_fetched, c = W, s = "loaded";
68
65
  break;
69
66
  case "failed":
70
- a = t.src.icon_failed, s = "failed", c = K;
67
+ a = t.src.icon_failed, s = "failed", c = U;
71
68
  break;
72
69
  case "unpermitted":
73
- a = t.src.icon_failed, c = K, s = "no perm";
70
+ a = t.src.icon_failed, c = U, s = "no perm";
74
71
  break;
75
72
  case "unfetchable":
76
- a = t.src.icon_failed, c = K, s = "cannot fetch";
77
- break;
78
- default:
79
- l.log.error("?? state = " + i);
73
+ a = t.src.icon_failed, c = U, s = "cannot fetch";
80
74
  break;
75
+ default: o.log.error("?? state = " + i);
81
76
  }
82
- let u = l.utils.AJARImage(a, s, t.tooltips[a].replace(/[Tt]his resource/, r), o);
83
- return u.setAttribute("uri", n), u.addEventListener("click", c), ae(u, r), e.appendChild(u), u;
77
+ let u = o.utils.AJARImage(a, s, t.tooltips[a].replace(/[Tt]his resource/, r), d);
78
+ return u.classList.add("objectValueAccessIcon"), u.setAttribute("uri", n), u.addEventListener("click", c), P(u, r), e.appendChild(u), u;
84
79
  }, this.outlineObjectTD = function(e, t, n, r) {
85
- let i = o.createElement("td");
86
- return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), i.style.margin = "0.2em", e ? (i.style.border = "none", i.style.padding = "0", i.style.verticalAlign = "top", (e.termType === "NamedNode" || e.termType === "BlankNode" || e.termType === "Literal" && e.value.slice && (e.value.slice(0, 6) === "ftp://" || e.value.slice(0, 8) === "https://" || e.value.slice(0, 7) === "http://")) && (i.setAttribute("about", e.toNT()), i.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, o)).addEventListener("click", oe)), i.setAttribute("class", "obj"), b.whether(e, l.ns.rdf("type"), l.ns.link("Request")) && (i.className = "undetermined"), t ||= pe, i.appendChild(t(e)), n && ee(i, e, n), i.tabulatorSelect = function() {
87
- W(this, !0);
80
+ let i = d.createElement("td");
81
+ return i.classList.add("obj"), i.setAttribute("notSelectable", "false"), e ? ((e.termType === "NamedNode" || e.termType === "BlankNode" || e.termType === "Literal" && e.value.slice && (e.value.slice(0, 6) === "ftp://" || e.value.slice(0, 8) === "https://" || e.value.slice(0, 7) === "http://")) && (i.setAttribute("about", e.toNT()), i.appendChild(o.utils.AJARImage(o.icons.originalIconBase + "tbl-expand-trans.png", "expand", void 0, d)).addEventListener("click", V)), i.setAttribute("class", "obj"), h.whether(e, o.ns.rdf("type"), o.ns.link("Request")) && (i.className = "undetermined"), t ||= ne, i.appendChild(t(e)), n && y(i, e, n), i.tabulatorSelect = function() {
82
+ z(this, !0);
88
83
  }, i.tabulatorDeselect = function() {
89
- W(this, !1);
84
+ z(this, !1);
90
85
  }, i.addEventListener("click", q), i) : (i.textContent = "No object available.", i);
91
86
  }, this.outlinePredicateTD = function(e, n, r, i) {
92
- let a = o.createElement("TD");
87
+ let a = d.createElement("TD");
93
88
  a.setAttribute("about", e.toNT()), a.setAttribute("class", i ? "pred internal" : "pred");
94
89
  let s;
95
90
  switch (e.termType) {
@@ -97,303 +92,164 @@ function y(a) {
97
92
  a.className = "undetermined";
98
93
  break;
99
94
  case "NamedNode":
100
- s = l.utils.predicateLabelForXML(e, r);
95
+ s = o.utils.predicateLabelForXML(e, r);
101
96
  break;
102
- case "Collection": s = l.utils.predicateLabelForXML(e.elements[0], r);
97
+ case "Collection": s = o.utils.predicateLabelForXML(e.elements[0], r);
103
98
  }
104
99
  s = s ? s.slice(0, 1).toUpperCase() + s.slice(1) : "...";
105
- let c = o.createElement("TD");
106
- c.classList.add("labelTD"), c.setAttribute("notSelectable", "true"), c.appendChild(o.createTextNode(s)), a.appendChild(c), c.style.width = "100%", a.appendChild(L.construct(o));
100
+ let c = d.createElement("TD");
101
+ c.classList.add("labelTD"), c.setAttribute("notSelectable", "true"), c.appendChild(d.createTextNode(s)), a.appendChild(c), c.style.width = "100%", a.appendChild(N.construct(d));
107
102
  for (let e in t.termWidgets) {
108
103
  if (!n || !n.AJAR_statement) break;
109
- t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && L.addIcon(a, t.termWidgets[e]);
104
+ t.termWidgets[e].filter && t.termWidgets[e].filter(n.AJAR_statement, "pred", r) && N.addIcon(a, t.termWidgets[e]);
110
105
  }
111
106
  return a.tabulatorSelect = function() {
112
- W(this, !0);
107
+ z(this, !0);
113
108
  }, a.tabulatorDeselect = function() {
114
- W(this, !1);
109
+ z(this, !1);
115
110
  }, a.addEventListener("click", q), a;
116
111
  };
117
- async function w(e = {}) {
118
- console.log("globalAppTabs @@");
119
- let t = o.createElement("div"), n = d.currentUser();
120
- if (!n) throw alert("Must be logged in for this"), Error("Not logged in");
121
- let r = await T(), i = e.selectedTab ? r.find((t) => t.paneName === e.selectedTab || t.tabName === e.selectedTab) : r[0];
122
- if (!i) return t;
123
- t.dataset.globalPaneName = i.tabName || i.paneName;
124
- let a = t.appendChild(o.createElement("div")), s = p.byName(i.paneName), l = a.appendChild(o.createElement("table"));
125
- return c.GotoSubject(i.subject || n, !0, s, !1, void 0, l), t;
126
- }
127
- this.getDashboard = w;
128
- async function T() {
129
- let e = d.currentUser();
130
- if (!e) return [];
131
- o.createElement("div");
132
- let t = [{
133
- paneName: "profile",
134
- subject: e,
135
- label: "Your profile",
136
- icon: h
137
- }, {
138
- paneName: "social",
139
- subject: e,
140
- label: "Your friends",
141
- icon: g
142
- }], [n] = await Promise.all([r()]);
143
- return t.push(...n), t.push({
144
- paneName: "home",
145
- label: "Your dashboard",
146
- icon: v
147
- }, {
148
- paneName: "basicPreferences",
149
- label: "Your preferences",
150
- icon: l.icons.iconBase + "noun_Sliders_341315_000000.svg"
151
- }), t;
152
- async function r() {
153
- async function t(e) {
154
- return await j(e), b.holds(e, Q.rdf("type"), Q.space("Storage"), e.doc()) ? (r.push(e), !0) : !1;
155
- }
156
- async function n(e) {
157
- let n = new URL(e), r = n.pathname;
158
- for (; r.length;) if (r = r.substring(0, r.lastIndexOf("/")), await t(b.sym(`${n.origin}${r}/`))) return;
159
- }
160
- try {
161
- await b.fetcher.load(e.doc());
162
- } catch (e) {
163
- return console.error("Unable to load profile", e), [];
164
- }
165
- let r = b.each(e, Q.space("storage"), null, e.doc());
166
- await Promise.all(r.map(async (e) => {
167
- await j(e);
168
- }));
169
- try {
170
- await n(new URL(window.location.href).searchParams.get("uri") || window.location.href);
171
- } catch (e) {
172
- console.error("cannot load container", e);
173
- }
174
- function a(e) {
175
- let t = [];
176
- return e.forEach((e) => {
177
- t.find((t) => t.equals(e)) || t.push(e);
178
- }), t;
179
- }
180
- return r = a(r), r.length ? Promise.all(r.map(async (t, n) => {
181
- function r(e) {
182
- return e.uri.split("//")[1].slice(0, -1);
183
- }
184
- let a = await i(t, b, x) || "", o = r(e).startsWith(r(t)) ? "Your storage" : a.trim() === "" ? r(t) : a + "'s storage";
185
- return {
186
- paneName: "folder",
187
- tabName: `folder-${n}`,
188
- label: o,
189
- subject: t,
190
- icon: _
191
- };
192
- })) : [];
193
- }
194
- }
195
- this.getDashboardItems = T;
196
- function te() {
197
- let e = O(), t = k();
198
- e.innerHTML = "", D(e), E(t);
199
- }
200
- u.events.on("logout", te);
201
- function E(e) {
202
- e.removeAttribute("hidden"), e.style.display = "";
203
- }
204
- function D(e) {
205
- e.setAttribute("hidden", ""), e.style.display = "none";
112
+ function b() {
113
+ return C("OutlineView", "Resource browser");
206
114
  }
207
- async function ne(e, t = {}) {
208
- let n = O(), r = k();
209
- if (n.childNodes.length > 0) {
210
- let i = n.firstElementChild;
211
- if (i && t.pane && i.dataset.globalPaneName === t.pane && i.dataset.subject === (e && e.value || "")) {
212
- D(r), E(n);
213
- return;
214
- }
215
- n.innerHTML = "";
216
- }
217
- let i = await w({ selectedTab: t.pane });
218
- D(r), E(n), n.appendChild(i);
219
- }
220
- this.showDashboard = ne;
221
- function O() {
222
- return A("GlobalDashboard", "Dashboard");
115
+ function x() {
116
+ return document.querySelector("solid-panes-navbar");
223
117
  }
224
- function k() {
225
- return A("OutlineView", "Resource browser");
118
+ function S() {
119
+ let e = x();
120
+ e && e.classList.remove("navbar--hidden");
226
121
  }
227
- function A(e) {
228
- let t = document.getElementById("app-view") || document.getElementById("MainContent") || document.querySelector("[role=\"main\"]") || document.body;
229
- if (e === "OutlineView") {
122
+ function C(e) {
123
+ if (document.getElementById("MainContent") || document.body, e === "OutlineView") {
230
124
  let e = document.getElementById("OutlineView");
231
125
  if (e) return e;
126
+ let t = document.getElementById("MainContent") || document.body;
232
127
  if (t) {
233
128
  let e = document.createElement("table");
234
129
  return e.id = "OutlineView", e.classList.add("outline-view"), e.setAttribute("aria-label", "Resource browser"), t.appendChild(e), e;
235
130
  }
236
131
  }
237
- return document.getElementById(e) || (() => {
238
- let n = document.createElement("section");
239
- return n.id = e, n.setAttribute("aria-label", "Dashboard"), n.classList.add("global-dashboard"), t.appendChild(n);
240
- })();
241
- }
242
- async function j(e) {
243
- if (!b.any(e, Q.ldp("contains"), void 0, e.doc())) {
244
- let t = (await b.fetcher.webOperation("GET", e.uri, b.fetcher.initFetchOptions(e.uri, { headers: { accept: "text/turtle" } }))).responseText;
245
- m.parse(t, b, e.uri, "text/turtle");
246
- }
247
132
  }
248
- async function M(e, t) {
249
- e.uri.endsWith("/") && await j(e);
250
- let n = t.session.paneRegistry, r = n.list.filter((n) => n.label(e, t) && !n.global);
133
+ async function w(e, t) {
134
+ e.uri.endsWith("/") && await a(e);
135
+ let n = t.session.paneRegistry, r = n.list.filter((n) => n.label(e, t) && !n.global && n.name !== "sharing");
251
136
  if (r.length === 0) return [n.byName("internal")];
252
- let i = await l.login.filterAvailablePanes(r);
137
+ let i = await o.login.filterAvailablePanes(r);
253
138
  return i.length === 0 ? [r[0]] : n.list.indexOf(r[0]) < n.list.indexOf(i[0]) ? [r[0]].concat(i) : i;
254
139
  }
255
- function re(e, t) {
140
+ function T(e, t) {
256
141
  return e.find((e) => e.shouldGetFocus && e.shouldGetFocus(t)) || e[0];
257
142
  }
258
- async function ie(e, t, n) {
259
- async function r(n, r = {}) {
260
- let s = "width: 24px; border-radius: 0.5em; border-top: solid #222 1px; border-left: solid #222 0.1em; border-bottom: solid #eee 0.1em; border-right: solid #eee 0.1em; margin-left: 1em; padding: 3px; background-color: #ffd;", c = "width: 24px; border-radius: 0.5em; margin-left: 1em; padding: 3px", u = n.appendChild(o.createElement("nav"));
261
- u.style = "display:flex; justify-content: flex-start; align-items: center;";
262
- let d = r.hideList ? [] : await M(e, a);
263
- i.firstPane = t || re(d, e);
264
- let f = d.indexOf(i.firstPane);
265
- return d.length !== 1 && d.forEach((t, d) => {
266
- let p = t.label(e, a), m = "";
267
- m = t.name === "profile" ? h : t.name === "social" ? g : typeof t.icon == "function" ? t.icon(e, a) : t.icon;
268
- let _ = l.utils.AJARImage(m, p, p, o);
269
- m instanceof Promise && m.then((e) => {
270
- _.setAttribute("src", e);
271
- }).catch((e) => {
272
- console.error("Error resolving async icon:", e);
273
- }), _.style = t === i.firstPane ? s : c, function(t, i) {
274
- t.addEventListener("click", function(u) {
275
- let d;
276
- for (d = n; d.parentNode && d.nodeName !== "TABLE"; d = d.parentNode);
277
- if (d.nodeName !== "TABLE") throw Error("outline: internal error.");
278
- let f = function(e) {
279
- for (let t = d.firstChild; t; t = t.nextSibling) t.pane !== void 0 && (!e || t.pane === e) && (t.paneButton && (t.paneButton.setAttribute("class", "paneHidden"), t.paneButton.style = c), N(t), t.pane.requireQueryButton && d.parentNode.className && p === 1 && o.getElementById("queryButton") && o.getElementById("queryButton").setAttribute("style", "display:none;"));
280
- };
281
- t.getAttribute("class") === "paneHidden" ? (u.shiftKey || f(), function(n) {
282
- let i;
283
- l.log.info("outline: Rendering pane (2): " + n.name);
284
- try {
285
- i = n.render(e, a, r);
286
- } catch (e) {
287
- i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
288
- let t = o.createElement("pre");
289
- i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
290
- }
291
- n.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style");
292
- let s = d.firstChild.nextSibling, c = o.createElement("tr"), u = c.appendChild(o.createElement("td"));
293
- u.setAttribute("colspan", "2"), u.style.textAlign = "left", u.style.width = "100%", u.appendChild(i), s ? d.insertBefore(c, s) : d.appendChild(c), c.pane = n, c.paneButton = t;
294
- }(i), t.setAttribute("class", "paneShown"), t.style = s) : (f(i), t.setAttribute("class", "paneHidden"), t.style = c);
295
- let p = 0;
296
- for (let e = d.firstChild; e; e = e.nextSibling) e.pane && e.pane.requireQueryButton && p++;
297
- }, !1);
298
- }(_, t), _.setAttribute("class", d === f ? "paneShown" : "paneHidden"), d === f && (i.paneButton = _), u.appendChild(_);
299
- }), u;
143
+ function E(e) {
144
+ let t = d.getElementById("queryButton");
145
+ t && (e ? t.removeAttribute("style") : t.setAttribute("style", "display:none;"));
146
+ }
147
+ function D(e, t, n, r) {
148
+ if (!e || !n) return;
149
+ let i;
150
+ try {
151
+ o.log.info("outline: Rendering pane (menu): " + n.name), i = n.render(t, u, r);
152
+ } catch (e) {
153
+ i = d.createElement("div"), i.setAttribute("class", "exceptionPane");
154
+ let t = d.createElement("pre");
155
+ i.appendChild(t), t.appendChild(d.createTextNode(o.utils.stackString(e)));
300
156
  }
301
- let i = o.createElement("tr");
302
- n.hover && i.setAttribute("class", "hoverControl");
303
- let s = i.appendChild(o.createElement("td"));
304
- s.setAttribute("style", "margin: 0.2em; border: none; padding-top: 0; padding-bottom: 0; vertical-align: top;display:flex; justify-content: space-between; flex-direction: row;background-color: var(--color-background, #F8F9FB);"), s.setAttribute("notSelectable", "true"), s.setAttribute("about", e.toNT()), s.setAttribute("colspan", "2");
305
- let c = s.appendChild(o.createElement("div"));
306
- c.style = "display:flex; justify-content: flex-start; align-items: center; flex-wrap: wrap;";
307
- let u = !!t;
308
- if (!n.solo && !u) {
309
- c.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-collapse.png", "collapse", void 0, o)).addEventListener("click", se);
310
- let t = c.appendChild(o.createElement("h1"));
311
- t.appendChild(o.createTextNode(l.utils.label(e))), t.style = "font-size: 150%; margin: 0 0.6em 0 0; padding: 0.1em 0.4em;background-color: var(--color-background, #F8F9FB);", l.widgets.makeDraggable(t, e);
157
+ i.classList.add("paneDiv");
158
+ let a = e.querySelector(".paneDiv");
159
+ a ? a.replaceWith(i) : e.appendChild(i);
160
+ }
161
+ function O(e, t) {
162
+ let n = d.getElementById("OutlineView");
163
+ if (!n) return;
164
+ let r = e.toNT(), i = n.querySelector("td.paneView[about=\"" + r + "\"]");
165
+ if (!i) return;
166
+ let a = i.querySelector("file-explorer-provider");
167
+ if (a) {
168
+ if (!t) {
169
+ o.log.warn("outline: Unable to open pane in place: pane is undefined.");
170
+ return;
171
+ }
172
+ E(!!t.requireQueryButton), a.openSelectedPane?.(t), D(a, e, t, a.paneRenderOptions);
312
173
  }
313
- return c.appendChild(await r(s, { hideList: u })), i.firstChild.tabulatorSelect = function() {
314
- W(this, !0);
315
- }, i.firstChild.tabulatorDeselect = function() {
316
- W(this, !1);
317
- }, i;
318
- }
319
- function N(e) {
320
- let t = e.parentNode, n = t.parentNode, r = o.createElement("table");
174
+ }
175
+ async function ee(e, t, n) {
176
+ n ||= {};
177
+ let r = d.createElement("tr");
178
+ n.hover && r.classList.add("hoverControl");
179
+ let a = r.appendChild(d.createElement("td"));
180
+ a.classList.add("paneView", "tdFlex"), a.setAttribute("notSelectable", "true"), a.setAttribute("about", e.toNT()), a.setAttribute("colspan", "2");
181
+ let o = a.appendChild(d.createElement("file-explorer-provider"));
182
+ o.context = u, o.subjectUri = e.uri, o.onBack = () => H({ target: o });
183
+ let s = n.hideList ? [] : await w(e, u);
184
+ return o.relevantPanes = s, o.pane = t || T(s, e), o.showHeader = !(e && e.uri && e.site && e.site().uri === e.uri) && !i(e), o.paneRenderOptions = n, o.soloPane = n.solo, o.openPane = (e, t) => O(e, c.byName(t)), o.handleSharingClick = () => O(e, c.byName("sharing")), o.pane && (r.classList.add("outlinePaneRow"), D(o, e, o.pane, n)), r;
185
+ }
186
+ function k(e) {
187
+ let t = e.parentNode, n = t.parentNode, r = d.createElement("table");
321
188
  r.classList.add("placeholderTable"), n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
322
189
  }
323
- let P = this.propertyTable = function(e, t, n, r) {
324
- return l.log.debug("Property table for: " + e), e = b.canon(e), t ? (l.log.info("Re-expand: " + t), t) : (t = o.createElement("table"), t.classList.add("tableFullWidth"), ie(e, n, r).then((n) => {
325
- if (t.appendChild(n), n.firstPane) {
326
- let i;
327
- try {
328
- l.log.info("outline: Rendering pane (1): " + n.firstPane.name), i = n.firstPane.render(e, a, r);
329
- } catch (e) {
330
- i = o.createElement("div"), i.setAttribute("class", "exceptionPane");
331
- let t = o.createElement("pre");
332
- i.appendChild(t), t.appendChild(o.createTextNode(l.utils.stackString(e)));
333
- }
334
- let s = o.createElement("tr"), c = s.appendChild(o.createElement("td"));
335
- c.setAttribute("colspan", "2"), c.style.textAlign = "left", c.style.width = "100%", c.style.backgroundColor = "var(--color-background, #F8F9FB)", c.appendChild(i), n.firstPane.requireQueryButton && o.getElementById("queryButton") && o.getElementById("queryButton").removeAttribute("style"), t.appendChild(s), s.pane = n.firstPane, s.paneButton = n.paneButton;
336
- }
190
+ let A = this.propertyTable = function(e, t, n, r) {
191
+ return o.log.debug("Property table for: " + e), e = h.canon(e), t ? (o.log.info("Re-expand: " + t), t) : (t = d.createElement("table"), t.classList.add("tableFullWidth"), ee(e, n, r).then((e) => {
192
+ t.appendChild(e);
337
193
  }), t);
338
194
  };
339
- function F(e, t, n) {
195
+ function j(e, t, n) {
340
196
  let r = e.createElement("TR");
341
197
  r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true");
342
- let i = c.outlinePredicateTD(t.predicate, r, n);
198
+ let i = p.outlinePredicateTD(t.predicate, r, n);
343
199
  return r.appendChild(i), r;
344
200
  }
345
- this.propertyTR = F;
346
- function I(e, t, n, r) {
347
- if (l.log.debug("Property list length = " + t.length), t.length === 0) return "";
348
- let i, a, u;
201
+ this.propertyTR = j;
202
+ function M(e, t, n, r) {
203
+ if (o.log.debug("Property list length = " + t.length), t.length === 0) return "";
204
+ let i, a, s;
349
205
  n ? (i = function(e) {
350
206
  return e.subject;
351
- }, t = t.sort(l.utils.RDFComparePredicateSubject)) : (i = function(e) {
207
+ }, t = t.sort(o.utils.RDFComparePredicateSubject)) : (i = function(e) {
352
208
  return e.object;
353
- }, t = t.sort(l.utils.RDFComparePredicateObject));
354
- let d = t.length;
355
- for (a = 0; a < d; a++) {
356
- let f = t[a];
357
- if (r && !r(f.predicate, n)) continue;
358
- let p = F(o, f, n);
359
- e.appendChild(p);
360
- let m = p.firstChild, h = $.defaults[f.predicate.uri], g = 0, _ = 0, v = 0;
361
- for (u = 0; u + a < d && t[a + u].predicate.sameTerm(f.predicate); u++) u > 0 && i(t[a + u]).sameTerm(i(t[a + u - 1])) && g++, i(t[a + u]).lang && s.labeller.LanguagePreference && (_ += 1, i(t[a + u]).lang.indexOf(s.labeller.LanguagePreference) >= 0 && v++);
362
- if (v > 0 && _ === g + 1) {
363
- for (let e = a; e <= a + g; e++) if (s.labeller.LanguagePreference && i(t[e]).lang.indexOf(s.labeller.LanguagePreference) >= 0) {
364
- p.appendChild(c.outlineObjectTD(i(t[e]), h, void 0, f));
209
+ }, t = t.sort(o.utils.RDFComparePredicateObject));
210
+ let c = t.length;
211
+ for (a = 0; a < c; a++) {
212
+ let l = t[a];
213
+ if (r && !r(l.predicate, n)) continue;
214
+ let u = j(d, l, n);
215
+ e.appendChild(u);
216
+ let m = u.firstChild, g = $.defaults[l.predicate.uri], _ = 0, v = 0, y = 0;
217
+ for (s = 0; s + a < c && t[a + s].predicate.sameTerm(l.predicate); s++) s > 0 && i(t[a + s]).sameTerm(i(t[a + s - 1])) && _++, i(t[a + s]).lang && f.labeller.LanguagePreference && (v += 1, i(t[a + s]).lang.indexOf(f.labeller.LanguagePreference) >= 0 && y++);
218
+ if (y > 0 && v === _ + 1) {
219
+ for (let e = a; e <= a + _; e++) if (f.labeller.LanguagePreference && i(t[e]).lang.indexOf(f.labeller.LanguagePreference) >= 0) {
220
+ u.appendChild(p.outlineObjectTD(i(t[e]), g, void 0, l));
365
221
  break;
366
222
  }
367
- a += g;
223
+ a += _;
368
224
  continue;
369
225
  }
370
- p.appendChild(c.outlineObjectTD(i(f), h, void 0, f)), p.showNobj = function(r) {
371
- let s = u - g, d = 2 * r < s ? r : s, p = [];
372
- if (s !== 1) {
373
- m.setAttribute("rowspan", d === s ? s : r + 1);
374
- let g;
375
- d < s && d === 1 && m.setAttribute("rowspan", 2);
376
- let _ = 0;
377
- for (g = 1; g < u; g++) if (b.canon(i(t[a + g])).sameTerm(b.canon(i(t[a + g - 1])))) l.log.info("there are duplicates here: %s", t[a + g - 1]);
226
+ u.appendChild(p.outlineObjectTD(i(l), g, void 0, l)), u.showNobj = function(r) {
227
+ let c = s - _, u = 2 * r < c ? r : c, f = [];
228
+ if (c !== 1) {
229
+ m.setAttribute("rowspan", u === c ? c : r + 1);
230
+ let _;
231
+ u < c && u === 1 && m.setAttribute("rowspan", 2);
232
+ let v = 0;
233
+ for (_ = 1; _ < s; _++) if (h.canon(i(t[a + _])).sameTerm(h.canon(i(t[a + _ - 1])))) o.log.info("there are duplicates here: %s", t[a + _ - 1]);
378
234
  else {
379
- _++, f = t[a + g], h = $.defaults[f.predicate.uri];
380
- let r = o.createElement("tr");
381
- r.style.colspan = "1", r.appendChild(c.outlineObjectTD(i(t[a + g]), h, void 0, f)), r.AJAR_statement = f, r.AJAR_inverse = n, e.appendChild(r), _ >= d && (r.style.display = "none", p.push(r));
235
+ v++, l = t[a + _], g = $.defaults[l.predicate.uri];
236
+ let r = d.createElement("tr");
237
+ r.style.colspan = "1", r.appendChild(p.outlineObjectTD(i(t[a + _]), g, void 0, l)), r.AJAR_statement = l, r.AJAR_inverse = n, e.appendChild(r), v >= u && (r.style.display = "none", f.push(r));
382
238
  }
383
- d === s && m.setAttribute("rowspan", _ + 1);
239
+ u === c && m.setAttribute("rowspan", v + 1);
384
240
  }
385
- if (d < s) {
386
- let t = o.createElement("tr"), n = t.appendChild(o.createElement("td"));
387
- if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.setAttribute("notSelectable", "false"), s > r) {
388
- let e = o.createElement("a");
241
+ if (u < c) {
242
+ let t = d.createElement("tr"), n = t.appendChild(d.createElement("td"));
243
+ if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.setAttribute("notSelectable", "false"), c > r) {
244
+ let e = d.createElement("a");
389
245
  n.appendChild(e);
390
246
  let t = (function(e) {
391
- return e(m, u, g, r);
247
+ return e(m, s, _, r);
392
248
  })(function(t, n, r, i) {
393
249
  return function(n) {
394
- e.innerHTML = "", n === "none" ? (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", o)), e.appendChild(o.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(l.utils.AJARImage(l.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, o)), t.setAttribute("rowspan", s + 1));
395
- for (let e = 0; e < p.length; e++) {
396
- let t = p[e];
250
+ e.innerHTML = "", n === "none" ? (e.appendChild(o.utils.AJARImage(o.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", d)), e.appendChild(d.createTextNode(c - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(o.utils.AJARImage(o.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, d)), t.setAttribute("rowspan", c + 1));
251
+ for (let e = 0; e < f.length; e++) {
252
+ let t = f[e];
397
253
  t.style.display = n;
398
254
  }
399
255
  };
@@ -404,23 +260,23 @@ function y(a) {
404
260
  }
405
261
  e.appendChild(t);
406
262
  }
407
- }, p.showAllobj = function() {
408
- p.showNobj(u - g);
409
- }, p.showNobj(10), a += u - 1;
263
+ }, u.showAllobj = function() {
264
+ u.showNobj(s - _);
265
+ }, u.showNobj(10), a += s - 1;
410
266
  }
411
267
  }
412
- this.appendPropertyTRs = I;
413
- let L = {};
414
- globalThis.termWidget = L, L.construct = function(e) {
268
+ this.appendPropertyTRs = M;
269
+ let N = {};
270
+ globalThis.termWidget = N, N.construct = function(e) {
415
271
  e ||= document;
416
272
  let t = e.createElement("TD");
417
273
  return t.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), t.setAttribute("class", "iconTD"), t.setAttribute("notSelectable", "true"), t.style.width = "0px", t;
418
- }, L.addIcon = function(e, t, n) {
274
+ }, N.addIcon = function(e, t, n) {
419
275
  let r = e.childNodes[1];
420
276
  if (!r) return;
421
- let i = r.style.width, a = l.utils.AJARImage(t.src, t.alt, t.tooltip, o);
277
+ let i = r.style.width, a = o.utils.AJARImage(t.src, t.alt, t.tooltip, d);
422
278
  i = parseInt(i), i += t.width, r.style.width = i + "px", r.appendChild(a), n && a.addEventListener("click", n);
423
- }, L.removeIcon = function(e, t) {
279
+ }, N.removeIcon = function(e, t) {
424
280
  let n = e.childNodes[1], r;
425
281
  if (!n) return;
426
282
  let i = n.style.width;
@@ -428,103 +284,95 @@ function y(a) {
428
284
  for (let e = 0; e < n.childNodes.length; e++) {
429
285
  let i = n.childNodes[e], a = i.src;
430
286
  try {
431
- r = o.location.href.split("?")[0];
432
- } catch (e) {
433
- console.log(e), r = "";
287
+ r = d.location.href.split("?")[0];
288
+ } catch {
289
+ r = "";
434
290
  }
435
- a === m.uri.join(t.src, r) && n.removeChild(i);
291
+ a === l.uri.join(t.src, r) && n.removeChild(i);
436
292
  }
437
- }, L.replaceIcon = function(e, t, n, r) {
438
- L.removeIcon(e, t), L.addIcon(e, n, r);
293
+ }, N.replaceIcon = function(e, t, n, r) {
294
+ N.removeIcon(e, t), N.addIcon(e, n, r);
439
295
  };
440
- function R() {
441
- this.pat = b.formula(), this.vars = [];
442
- }
443
- let z = [];
444
- z[0] = new R();
445
- function ae(e, n) {
446
- l.log.debug("Button callbacks for " + n + " added");
296
+ function P(e, n) {
297
+ o.log.debug("Button callbacks for " + n + " added");
447
298
  let r = function(r) {
448
299
  return function(i) {
449
- return i.indexOf("#") >= 0 && console.log("@@ makeIconCallback: Not expecting # in URI whose state changed: " + i), !e || !s.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
300
+ return i.indexOf("#"), !e || !f.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
450
301
  };
451
302
  };
452
- x.addCallback("request", r(t.src.icon_requested)), x.addCallback("done", r(t.src.icon_fetched)), x.addCallback("fail", r(t.src.icon_failed));
303
+ g.addCallback("request", r(t.src.icon_requested)), g.addCallback("done", r(t.src.icon_fetched)), g.addCallback("fail", r(t.src.icon_failed));
453
304
  }
454
- function B(e) {
305
+ function F(e) {
455
306
  let t = e.getAttribute("class");
456
307
  return !!(t && t.indexOf("selected") >= 0);
457
308
  }
458
- function V(e) {
459
- let n = c.targetOf(e).parentNode;
460
- L.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, H), n.parentNode.parentNode.removeAttribute("optional");
309
+ function I(e) {
310
+ let n = p.targetOf(e).parentNode;
311
+ N.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, L), n.parentNode.parentNode.removeAttribute("optional");
461
312
  }
462
- function H(e) {
463
- let n = c.targetOf(e).parentNode;
464
- L.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, V), n.parentNode.parentNode.setAttribute("optional", "true");
313
+ function L(e) {
314
+ let n = p.targetOf(e).parentNode;
315
+ N.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, I), n.parentNode.parentNode.setAttribute("optional", "true");
465
316
  }
466
- function U(e, n) {
317
+ function R(e, n) {
467
318
  let r = t.termWidgets.optOn, i = t.termWidgets.optOff;
468
319
  for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (t.getAttribute("predTR")) {
469
320
  let e = t.getAttribute("parentOfSelected");
470
- e = e ? parseInt(e) : 0, e === 0 && n > 0 && L.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? V : H), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), L.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
321
+ e = e ? parseInt(e) : 0, e === 0 && n > 0 && N.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? I : L), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), N.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
471
322
  break;
472
323
  } else if (t.previousSibling && t.previousSibling.nodeName === "TR") t = t.previousSibling;
473
324
  else break;
474
325
  }
475
326
  this.statusBarClick = function(e) {
476
- let t = l.utils.getTarget(e);
327
+ let t = o.utils.getTarget(e);
477
328
  t.label && (window.content.location = t.label);
478
329
  }, this.showURI = function(e) {
479
- e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
330
+ e && d.getElementById("UserURI") && (d.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
480
331
  }, this.showSource = function() {
481
332
  if (!(typeof sourceWidget > "u")) {
482
333
  for (let e in sourceWidget.sources) sourceWidget.sources[e].setAttribute("class", "");
483
- for (let e = 0; e < y.length; e++) {
484
- if (!y[e].parentNode) {
485
- console.log("showSource: EH? no parentNode? " + y[e] + "\n");
486
- continue;
487
- }
488
- let t = y[e].parentNode.AJAR_statement;
334
+ for (let e = 0; e < m.length; e++) {
335
+ if (!m[e].parentNode) continue;
336
+ let t = m[e].parentNode.AJAR_statement;
489
337
  if (!t) continue;
490
338
  let n = t.why;
491
339
  n && n.uri && sourceWidget.highlight(n, !0);
492
340
  }
493
341
  }
494
342
  }, this.getSelection = function() {
495
- return y;
343
+ return m;
496
344
  };
497
- function W(e, n) {
498
- if (e.nodeName !== "TD") throw l.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
499
- l.log.debug("pass");
345
+ function z(e, n) {
346
+ if (e.nodeName !== "TD") throw o.log.debug("down" + e.nodeName), Error("Expected TD in setSelected: " + e.nodeName + " : " + e.textContent);
347
+ o.log.debug("pass");
500
348
  let r = e.getAttribute("class");
501
349
  if (r ||= "", n) {
502
- r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, 1), y.push(e);
503
- let n = l.utils.getTerm(e);
504
- c.showURI(n);
350
+ r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && R(e, 1), m.push(e);
351
+ let n = o.utils.getTerm(e);
352
+ p.showURI(n);
505
353
  let i = e.AJAR_statement;
506
354
  if (i === void 0 && e.parentNode && (i = e.parentNode.AJAR_statement), i) {
507
355
  let n = i.why;
508
- f.updater.editable(n.uri, b) && r.indexOf("pred") >= 0 && L.addIcon(e, t.termWidgets.addTri);
356
+ s.updater.editable(n.uri, h) && r.indexOf("pred") >= 0 && N.addIcon(e, t.termWidgets.addTri);
509
357
  }
510
- } else l.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && U(e, -1), r.indexOf("pred") >= 0 && L.removeIcon(e, t.termWidgets.addTri), y = y.filter(function(t) {
358
+ } else o.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && R(e, -1), r.indexOf("pred") >= 0 && N.removeIcon(e, t.termWidgets.addTri), m = m.filter(function(t) {
511
359
  return t === e;
512
- }), l.log.info("Deselecting " + e.textContent);
513
- typeof sourceWidget < "u" && c.showSource(), e.setAttribute("class", r);
360
+ }), o.log.info("Deselecting " + e.textContent);
361
+ typeof sourceWidget < "u" && p.showSource(), e.setAttribute("class", r);
514
362
  }
515
- function G() {
516
- let e = y.length;
517
- for (let t = e - 1; t >= 0; t--) W(y[t], !1);
518
- y = [];
363
+ function B() {
364
+ let e = m.length;
365
+ for (let t = e - 1; t >= 0; t--) z(m[t], !1);
366
+ m = [];
519
367
  }
520
368
  this.targetOf = function(e) {
521
369
  let t;
522
370
  if (e ||= window.event, e.target) t = e.target;
523
371
  else if (e.srcElement) t = e.srcElement;
524
- else return l.log.error("can't get target for event " + e), !1;
372
+ else return o.log.error("can't get target for event " + e), !1;
525
373
  return t.nodeType === 3 && (t = t.parentNode), t;
526
374
  }, this.walk = function(e, t) {
527
- let n = t || y[0], r;
375
+ let n = t || m[0], r;
528
376
  switch (e) {
529
377
  case "down":
530
378
  try {
@@ -533,7 +381,7 @@ function y(a) {
533
381
  this.walk("up");
534
382
  return;
535
383
  }
536
- G(), W(r, !0);
384
+ B(), z(r, !0);
537
385
  break;
538
386
  case "up":
539
387
  try {
@@ -541,44 +389,42 @@ function y(a) {
541
389
  } catch {
542
390
  return;
543
391
  }
544
- G(), W(r, !0);
392
+ B(), z(r, !0);
545
393
  break;
546
394
  case "right":
547
- if (G(), n.nextSibling || n.lastChild.tagName === "strong") W(n.nextSibling, !0);
395
+ if (B(), n.nextSibling || n.lastChild.tagName === "strong") z(n.nextSibling, !0);
548
396
  else {
549
- let e = o.evaluate("table/div/tr/td[2]", n, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
550
- W(e, !0);
397
+ let e = d.evaluate("table/div/tr/td[2]", n, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
398
+ z(e, !0);
551
399
  }
552
400
  break;
553
401
  case "left":
554
- if (G(), n.previousSibling && n.previousSibling.className === "undetermined") return W(n.previousSibling, !0), !0;
555
- W(l.utils.ancestor(n.parentNode, "TD"), !0);
556
- break;
557
- case "moveTo":
558
- G(), W(t, !0);
402
+ if (B(), n.previousSibling && n.previousSibling.className === "undetermined") return z(n.previousSibling, !0), !0;
403
+ z(o.utils.ancestor(n.parentNode, "TD"), !0);
559
404
  break;
405
+ case "moveTo": B(), z(t, !0);
560
406
  }
561
407
  (e === "down" || e === "up") && (r.tabulatorSelect || this.walk(e));
562
408
  }, this.OutlinerKeypressPanel = function(e) {
563
- l.log.info("Key " + e.keyCode + " pressed");
409
+ o.log.info("Key " + e.keyCode + " pressed");
564
410
  function t(e) {
565
- e && o.getElementById("UserURI") && (o.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
411
+ e && d.getElementById("UserURI") && (d.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
566
412
  }
567
413
  function n(e) {
568
- return arguments[3] ? !0 : (u("right", a), t(l.utils.getAbout(b, y[0])), !0);
414
+ return arguments[3] ? !0 : (l("right", a), t(o.utils.getAbout(h, m[0])), !0);
569
415
  }
570
416
  let r, i;
571
- if (l.utils.getTarget(e).tagName === "TEXTAREA" || l.utils.getTarget(e).id === "UserURI" || y.length > 1) return;
572
- if (y.length === 0) {
573
- (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", c.focusTd), t(l.utils.getAbout(b, y[0])));
417
+ if (o.utils.getTarget(e).tagName === "TEXTAREA" || o.utils.getTarget(e).id === "UserURI" || m.length > 1) return;
418
+ if (m.length === 0) {
419
+ (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", p.focusTd), t(o.utils.getAbout(h, m[0])));
574
420
  return;
575
421
  }
576
- let a = y[0];
577
- switch (x.removeCallback("done", "setSelectedAfterward"), x.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
422
+ let a = m[0];
423
+ switch (g.removeCallback("done", "setSelectedAfterward"), g.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
578
424
  case 13:
579
- if (l.utils.getTarget(e).tagName === "HTML") {
580
- let e = l.utils.getAbout(b, a);
581
- r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), e ? s.GotoSubject(e, !0) : i && c.UserInput.Enter(a);
425
+ if (o.utils.getTarget(e).tagName === "HTML") {
426
+ let e = o.utils.getAbout(h, a);
427
+ r = a.parentNode.AJAR_statement.why, i = s.updater.editable(r.uri, h), e ? f.GotoSubject(e, !0) : i && p.UserInput.Enter(a);
582
428
  } else this.UserInput.Keypress(e), this.walk("down"), e.stopPropagation();
583
429
  return;
584
430
  case 38:
@@ -586,28 +432,28 @@ function y(a) {
586
432
  break;
587
433
  case 40: this.walk("down"), e.stopPropagation(), e.preventDefault();
588
434
  }
589
- if (l.utils.getTarget(e).tagName === "INPUT") return;
590
- let u;
435
+ if (o.utils.getTarget(e).tagName === "INPUT") return;
436
+ let l;
591
437
  switch (e.keyCode) {
592
438
  case 46:
593
439
  case 8:
594
- r = a.parentNode.AJAR_statement.why, i = f.updater.editable(r.uri, b), i && (e.preventDefault(), this.UserInput.Delete(a));
440
+ r = a.parentNode.AJAR_statement.why, i = s.updater.editable(r.uri, h), i && (e.preventDefault(), this.UserInput.Delete(a));
595
441
  break;
596
442
  case 37: {
597
443
  if (this.walk("left")) return;
598
- let e = l.utils.ancestor(a.parentNode, "TD");
599
- X(a, l.utils.getAbout(b, e));
444
+ let e = o.utils.ancestor(a.parentNode, "TD");
445
+ Z(a, o.utils.getAbout(h, e));
600
446
  break;
601
447
  }
602
448
  case 39:
603
449
  {
604
- let e = l.utils.getAbout(b, a);
450
+ let e = o.utils.getAbout(h, a);
605
451
  if (e) {
606
- if (u = this.walk, a.nextSibling) {
452
+ if (l = this.walk, a.nextSibling) {
607
453
  this.walk("right");
608
454
  return;
609
455
  }
610
- a.firstChild.tagName !== "TABLE" && (x.addCallback("done", n), x.addCallback("fail", n), Y(a, e, { pane: p.byName("defaultPane") })), n();
456
+ a.firstChild.tagName !== "TABLE" && (g.addCallback("done", n), g.addCallback("fail", n), X(a, e, { pane: c.byName("defaultPane") })), n();
611
457
  }
612
458
  }
613
459
  break;
@@ -616,136 +462,133 @@ function y(a) {
616
462
  default: switch (e.charCode) {
617
463
  case 99:
618
464
  if (e.ctrlKey) {
619
- c.UserInput.copyToClipboard(c.clipboardAddress, a);
465
+ p.UserInput.copyToClipboard(p.clipboardAddress, a);
620
466
  break;
621
467
  }
622
468
  break;
623
469
  case 118:
624
470
  case 112:
625
471
  if (e.ctrlKey) {
626
- c.UserInput.pasteFromClipboard(c.clipboardAddress, a);
472
+ p.UserInput.pasteFromClipboard(p.clipboardAddress, a);
627
473
  break;
628
474
  }
629
475
  break;
630
- default: l.utils.getTarget(e).tagName;
476
+ default: o.utils.getTarget(e).tagName;
631
477
  }
632
478
  }
633
- if (t(l.utils.getAbout(b, y[0])), y[0]) {
634
- let e = l.utils.findPos(y[0])[1];
635
- e + y[0].clientHeight > window.scrollY + window.innerHeight && l.utils.getEyeFocus(y[0], !0, !0, window), e < window.scrollY + 54 && l.utils.getEyeFocus(y[0], !0, void 0, window);
636
- }
479
+ t(o.utils.getAbout(h, m[0]));
637
480
  }, this.OutlinerMouseclickPanel = function(e) {
638
- switch (c.UserInput._tabulatorMode) {
481
+ switch (p.UserInput._tabulatorMode) {
639
482
  case 0:
640
- de(e);
483
+ J(e);
641
484
  break;
642
- case 1:
643
- c.UserInput.Click(e);
644
- break;
645
- default:
485
+ case 1: p.UserInput.Click(e);
646
486
  }
647
487
  };
648
- function oe(e) {
649
- let t = c.targetOf(e), n = t.parentNode, r = l.utils.getAbout(b, t), i = e.altKey ? p.byName("internal") : void 0;
650
- e.shiftKey ? Z(n, r, i) : e.altKey ? Y(n, r, {
651
- pane: p.byName("internal"),
488
+ function V(e) {
489
+ let t = p.targetOf(e), n = t.parentNode, r = o.utils.getAbout(h, t), i = e.altKey ? c.byName("internal") : void 0;
490
+ e.shiftKey ? Q(n, r, i) : e.altKey ? X(n, r, {
491
+ pane: c.byName("internal"),
652
492
  immediate: !0
653
- }) : Y(n, r);
493
+ }) : X(n, r);
654
494
  }
655
- function se(e) {
656
- let t = c.targetOf(e), n = l.utils.getAbout(b, t), r = e.altKey ? p.byName("internal") : void 0, i = t.parentNode.parentNode;
657
- X(i, n, r);
495
+ function H(e) {
496
+ let t = p.targetOf(e), n = o.utils.getAbout(h, t), r = e.altKey ? c.byName("internal") : void 0, i = t.parentNode.parentNode;
497
+ Z(i, n, r);
658
498
  }
659
- function K(e) {
660
- let t = c.targetOf(e).getAttribute("uri");
661
- e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
499
+ function U(e) {
500
+ let t = p.targetOf(e).getAttribute("uri");
501
+ e.altKey ? g.fetch(l.uri.docpart(t), { force: !0 }) : g.refresh(h.sym(l.uri.docpart(t)));
662
502
  }
663
- function ce(e) {
664
- let t = c.targetOf(e).getAttribute("uri");
665
- e.altKey ? x.fetch(m.uri.docpart(t), { force: !0 }) : x.refresh(b.sym(m.uri.docpart(t)));
503
+ function W(e) {
504
+ let t = p.targetOf(e).getAttribute("uri");
505
+ e.altKey ? g.fetch(l.uri.docpart(t), { force: !0 }) : g.refresh(h.sym(l.uri.docpart(t)));
666
506
  }
667
- function le(e) {
668
- let t = c.targetOf(e).getAttribute("uri");
669
- x.fetch(m.uri.docpart(t));
507
+ function G(e) {
508
+ let t = p.targetOf(e).getAttribute("uri");
509
+ g.fetch(l.uri.docpart(t));
670
510
  }
671
- function ue(e) {
672
- let t = c.targetOf(e), n = t.node;
673
- n.childNodes.length > 1 && (n = t.parentNode), N(n);
511
+ function K(e) {
512
+ let t = p.targetOf(e), n = t.node;
513
+ n.childNodes.length > 1 && (n = t.parentNode), k(n);
674
514
  }
675
515
  function q(e) {
676
- if (c.UserInput._tabulatorMode) return c.UserInput.Click(e);
677
- let t = c.targetOf(e), n;
678
- for (n = l.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = l.utils.ancestor(n.parentNode, "TD"));
516
+ if (p.UserInput._tabulatorMode) return p.UserInput.Click(e);
517
+ let t = p.targetOf(e), n;
518
+ for (n = o.utils.ancestor(t, "TD"); n && n.getAttribute("notSelectable") !== "false"; n = o.utils.ancestor(n.parentNode, "TD"));
679
519
  if (!n) return;
680
- let r = B(n);
681
- if (l.log.debug("Was node selected before: " + r), e.altKey) W(n, !B(n));
682
- else if (e.shiftKey) W(n, !0);
520
+ let r = F(n);
521
+ if (o.log.debug("Was node selected before: " + r), e.altKey) z(n, !F(n));
522
+ else if (e.shiftKey) z(n, !0);
683
523
  else {
684
- if (G(), c.UserInput.clearInputAndSave(e), W(n, !0), e.detail === 2) {
524
+ if (B(), p.UserInput.clearInputAndSave(e), z(n, !0), e.detail === 2) {
685
525
  e.stopPropagation();
686
526
  return;
687
527
  }
688
528
  let t;
689
529
  if (n.parentNode && (t = n.parentNode.AJAR_statement), !t) return;
690
- let i = t.why, a = f.updater.editable(i.uri, b);
691
- r && a && c.UserInput.Click(e, y[0]);
530
+ let i = t.why, a = s.updater.editable(i.uri, h);
531
+ r && a && p.UserInput.Click(e, m[0]);
692
532
  }
693
- l.log.debug("Was node selected after: " + B(n) + ", count=" + y.length), e.stopPropagation();
533
+ o.log.debug("Was node selected after: " + F(n) + ", count=" + m.length), e.stopPropagation();
694
534
  }
695
- function de(e) {
696
- l.log.info("@TabulatorMousedown, dom.location is now " + o.location);
697
- let n = c.targetOf(e);
535
+ function J(e) {
536
+ o.log.info("@TabulatorMousedown, dom.location is now " + d.location);
537
+ let n = p.targetOf(e);
698
538
  if (!n) return;
699
539
  let r = n.tagName;
700
- r === "INPUT" || r === "TEXTAREA" || (c.UserInput.clearMenu(), c.UserInput.lastModified && c.UserInput.lastModified.parentNode.nextSibling && c.UserInput.backOut(), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices && n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_add_triple) && c.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && c.UserInput.clearMenu(), e && e.stopPropagation());
540
+ r !== "INPUT" && r !== "TEXTAREA" && (p.UserInput.clearMenu(), p.UserInput.lastModified && p.UserInput.lastModified.parentNode.nextSibling && p.UserInput.backOut(), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices && n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_add_triple) && p.UserInput.clearInputAndSave(e), (!n.src || n.src.slice(n.src.indexOf("/icons/") + 1) !== t.src.icon_show_choices) && p.UserInput.clearMenu(), e && e.stopPropagation());
701
541
  }
702
- function J(e) {
703
- o.title = l.utils.label(e), o.location.href.startsWith(e.site().uri);
542
+ function Y(e) {
543
+ d.title = o.utils.label(e), d.location.href.startsWith(e.site().uri);
704
544
  }
705
- function Y(e, t, n) {
545
+ function X(e, t, n) {
706
546
  n ||= {};
707
547
  let r = n.pane, i = !!n.already, a = n.immediate;
708
- l.log.info("@outlineExpand, dom is now " + o.location), x.removeCallback("done", "expand"), x.removeCallback("fail", "expand");
709
- let s = b.canon(t);
710
- function u() {
711
- if (s = b.canon(s), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
548
+ o.log.info("@outlineExpand, dom is now " + d.location), g.removeCallback("done", "expand"), g.removeCallback("fail", "expand");
549
+ let s = h.canon(t);
550
+ function c() {
551
+ if (s = h.canon(s), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
712
552
  let t;
713
- if (l.log.info("@@ REPAINTING "), !i) t = P(s, void 0, r, n);
553
+ if (o.log.info("@@ REPAINTING "), !i) t = A(s, void 0, r, n);
714
554
  else {
715
- for (l.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (l.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
716
- t = P(s, t, r, n);
555
+ for (o.log.info(" ... p is " + e), t = e.firstChild; t.nextSibling && (o.log.info(" ... checking node " + t), t.nodeName !== "table"); t = t.nextSibling);
556
+ t = A(s, t, r, n);
717
557
  }
718
- i = !0, l.utils.ancestor(e, "TABLE") && l.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", l.utils.emptyNode(e).appendChild(t), c.focusTd = e, l.log.debug("expand: Node for " + s + " expanded");
719
- let a = b.each(s, l.ns.rdfs("seeAlso"));
720
- for (let e = 0; e < a.length; e++) e === 25 && l.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + s), x.lookUpThing(a[e], s);
558
+ i = !0, o.utils.ancestor(e, "TABLE") && o.utils.ancestor(e, "TABLE").style.backgroundColor === "white" ? t.style.backgroundColor = "#eee" : t.style.backgroundColor = "white", o.utils.emptyNode(e).appendChild(t), p.focusTd = e, o.log.debug("expand: Node for " + s + " expanded");
559
+ let a = h.each(s, o.ns.rdfs("seeAlso"));
560
+ for (let e = 0; e < a.length; e++) e === 25 && o.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + s), g.lookUpThing(a[e], s);
721
561
  }
722
- function d(e) {
562
+ function u(e) {
723
563
  if (arguments[3]) return !0;
724
- let t = b.canon(s);
725
- l.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
726
- let n = b.sym(m.uri.docpart(e));
564
+ let t = h.canon(s);
565
+ o.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
566
+ let n = h.sym(l.uri.docpart(e));
727
567
  if (e.indexOf("#") >= 0) throw Error("Internal error: hash in " + e);
728
- return function() {
568
+ return !function() {
729
569
  if (!t.uri) return !0;
730
- let r = b.uris(t);
570
+ let r = h.uris(t);
731
571
  if (!r) return !1;
732
- for (let t = 0; t < r.length; t++) for (let n = m.uri.docpart(r[t]); n; n = b.HTTPRedirects[n]) if (e === n) return !0;
733
- return !!b.anyStatementMatching(t, void 0, void 0, n);
734
- }() ? (l.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), u(), !1) : !0;
572
+ for (let t = 0; t < r.length; t++) for (let n = l.uri.docpart(r[t]); n; n = h.HTTPRedirects[n]) if (e === n) return !0;
573
+ return !!h.anyStatementMatching(t, void 0, void 0, n);
574
+ }() || (o.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), c(), !1);
735
575
  }
736
- n.solo && J(s), l.log.debug("outlineExpand: dereferencing " + s);
737
- let f = o.createElement("span");
738
- e.appendChild(f), x.addCallback("done", d), x.addCallback("fail", d);
739
- let p = [];
576
+ n.solo && Y(s), o.log.debug("outlineExpand: dereferencing " + s);
577
+ let f = d.createElement("span");
578
+ e.appendChild(f), g.addCallback("done", u), g.addCallback("fail", u);
579
+ let m = [];
740
580
  if (s.uri && s.uri.split(":")[0] === "rdf") {
741
- u();
581
+ c();
742
582
  return;
743
583
  }
744
- for (let e = 0; e < p.length; e++) if (p[e](s) === void 0) {
745
- u(), l.log.debug("outline 1815"), (void 0)[1] && S.removeChild(S.lastChild);
746
- return;
584
+ for (let e = 0; e < m.length; e++) {
585
+ let t;
586
+ if (t === m[e](s)) {
587
+ c(), o.log.debug("outline 1815"), t[1] && _.removeChild(_.lastChild);
588
+ return;
589
+ }
747
590
  }
748
- if (s.uri && !a && !l.widgets.isAudio(s) && !l.widgets.isVideo(s)) {
591
+ if (s.uri && !a && !o.widgets.isAudio(s) && !o.widgets.isVideo(s)) {
749
592
  let t = s.doc() && s.doc().uri ? s.doc().uri : "" + s.doc(), r = function(e) {
750
593
  let t = !!(s && s.uri && s.site && s.site().uri === s.uri);
751
594
  return e === 403 ? t ? "This root resource is not accessible with your current permissions. Try logging in with an authorized account or opening a public profile document." : "This resource is not accessible with your current permissions." : t ? "This root resource is not publicly readable. Try logging in or opening a profile document." : "This resource is not publicly readable. Try logging in or opening a different public resource.";
@@ -754,19 +597,19 @@ function y(a) {
754
597
  return r === 401 || r === 403 ? r : n.includes("status: 403") || n.includes("status 403") ? 403 : n.includes("status: 401") || n.includes("status 401") ? 401 : null;
755
598
  }, a = function(n, a) {
756
599
  if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
757
- let s = i(n, a), c = s ? r(s) : n, u = l.widgets.errorMessageBlock(o, c, "#fee", a instanceof Error ? a : void 0);
758
- t && u.setAttribute("data-outline-error-for", t), e.appendChild(u);
759
- }, c = !1, d = x.nowOrWhenFetched(s.doc(), void 0, function(e, t) {
760
- e ? (x.lookUpThing(s), u(), n.solo && J(s)) : (c = !0, a(t, void 0));
600
+ let s = i(n, a), c = s ? r(s) : n, l = o.widgets.errorMessageBlock(d, c, "#fee", a instanceof Error ? a : void 0);
601
+ t && l.setAttribute("data-outline-error-for", t), e.appendChild(l);
602
+ }, l = !1, u = g.nowOrWhenFetched(s.doc(), void 0, function(e, t) {
603
+ e ? (g.lookUpThing(s), c(), n.solo && Y(s)) : (l = !0, a(t, void 0));
761
604
  });
762
- d && typeof d.catch == "function" && d.catch(function(e) {
763
- c || (c = !0, a(e, e));
605
+ u && typeof u.catch == "function" && u.catch(function(e) {
606
+ l || (l = !0, a(e, e));
764
607
  });
765
- } else u();
608
+ } else c();
766
609
  }
767
- function X(e, t) {
768
- let n = l.utils.ancestor(e, "TR");
769
- n = l.utils.ancestor(n.parentNode, "TR");
610
+ function Z(e, t) {
611
+ let n = o.utils.ancestor(e, "TR");
612
+ n = o.utils.ancestor(n.parentNode, "TR");
770
613
  let r;
771
614
  n && (r = n.AJAR_statement);
772
615
  let i;
@@ -774,102 +617,93 @@ function y(a) {
774
617
  alert("Not enclosed in TD!");
775
618
  return;
776
619
  }
777
- l.log.debug("Collapsing subject " + t);
620
+ o.log.debug("Collapsing subject " + t);
778
621
  let a;
779
- r && (l.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), l.log.debug("view= " + a);
780
- let o;
781
- i.parentNode.parentNode.id === "outline" && (o = i.parentNode), c.replaceTD(c.outlineObjectTD(t, a, o, r), i);
622
+ r && (o.log.debug("looking up pred " + r.predicate.uri + "in defaults"), a = $.defaults[r.predicate.uri]), o.log.debug("view= " + a);
623
+ let s;
624
+ i.parentNode.parentNode.id === "outline" && (s = i.parentNode), p.replaceTD(p.outlineObjectTD(t, a, s, r), i);
782
625
  }
783
626
  this.replaceTD = function(e, t) {
784
627
  let n;
785
- B(t) && (n = !0);
786
- for (let e = y.length - 1; e > -1; e--) for (let n = y[e]; n.parentNode; n = n.parentNode) n === t && W(y[e], !1);
787
- t.parentNode.replaceChild(e, t), n && W(e, !0);
628
+ F(t) && (n = !0);
629
+ for (let e = m.length - 1; e > -1; e--) for (let n = m[e]; n.parentNode; n = n.parentNode) n === t && z(m[e], !1);
630
+ t.parentNode.replaceChild(e, t), n && z(e, !0);
788
631
  };
789
- function Z(e, t) {
632
+ function Q(e, t) {
790
633
  let n = null;
791
- for (let t = e.parentNode; t; t = t.parentNode) l.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
792
- l.utils.emptyNode(n).appendChild(P(t)), J(t), n.setAttribute("about", t.toNT());
634
+ for (let t = e.parentNode; t; t = t.parentNode) o.log.debug("level " + t.tagName), t.tagName === "TD" && (n = t);
635
+ o.utils.emptyNode(n).appendChild(A(t)), Y(t), n.setAttribute("about", t.toNT());
793
636
  }
794
- s.outlineRefocus = Z, this.GotoFormURI_enterKey = function(e) {
795
- e.keyCode === 13 && s.GotoFormURI(e);
637
+ f.outlineRefocus = Q, this.GotoFormURI_enterKey = function(e) {
638
+ e.keyCode === 13 && f.GotoFormURI(e);
796
639
  }, this.GotoFormURI = function(e) {
797
- fe(o.getElementById("UserURI").value);
640
+ te(d.getElementById("UserURI").value);
798
641
  };
799
- function fe(e) {
800
- let t = b.sym(e);
642
+ function te(e) {
643
+ let t = h.sym(e);
801
644
  this.GotoSubject(t, !0);
802
645
  }
803
646
  this.GotoURIinit = function(e) {
804
- let t = b.sym(e);
647
+ let t = h.sym(e);
805
648
  this.GotoSubject(t);
806
- }, this.GotoSubject = function(e, t, n, r, i, a) {
807
- a ||= k("OutlineView"), r && (l.utils.emptyNode(a), a.style.width = "100%");
808
- function s() {
809
- let t = o.createElement("TR");
810
- t.style.verticalAlign = "top", a.appendChild(t);
811
- let n = c.outlineObjectTD(e, void 0, t);
649
+ }, this.GotoSubject = function(e, t, n, r, i, a, s = !0) {
650
+ let c = b();
651
+ s && (!a || a === c) && S(), a ||= c, r && (o.utils.emptyNode(a), a.style.width = "100%");
652
+ function l() {
653
+ let t = d.createElement("tr");
654
+ t.classList.add("outlineRow1"), t.style.verticalAlign = "top", a.appendChild(t);
655
+ let n = p.outlineObjectTD(e, void 0, t);
812
656
  return t.appendChild(n), n;
813
657
  }
814
- let u = s();
815
- if (r && J(e), t) {
816
- Y(u, e, {
817
- pane: n,
818
- solo: r
819
- });
820
- let t = u.parentNode;
821
- l.utils.getEyeFocus(t, !1, void 0, window);
822
- }
823
- if (r && o && o.defaultView && o.defaultView.history && document.location.href !== e.uri) {
824
- let t = n ? { paneName: n.name } : {};
658
+ let u = l();
659
+ if (r && Y(e), t && X(u, e, {
660
+ pane: n,
661
+ solo: r
662
+ }), r && d && d.defaultView && d.defaultView.history) {
663
+ let t = d.defaultView.history.state || {}, r = n ? { paneName: n.name } : {};
664
+ n && n.subject && typeof n.subject.uri == "string" && (r.paneUri = n.subject.uri);
665
+ let i = {
666
+ ...t,
667
+ ...r
668
+ };
825
669
  try {
826
670
  let n = new URL(document.location.href), r = new URL(e.uri, document.location.href);
827
- n.origin === r.origin && o.defaultView.history.pushState(t, e.uri, e.uri);
828
- } catch (e) {
829
- console.log(e);
830
- }
671
+ n.origin === r.origin && (document.location.href === e.uri ? JSON.stringify(t) !== JSON.stringify(i) && d.defaultView.history.replaceState(i, e.uri, e.uri) : d.defaultView.history.pushState(i, e.uri, e.uri));
672
+ } catch {}
831
673
  }
832
674
  return e;
833
675
  };
834
- let Q = l.ns, $ = e(o);
835
- function pe(e) {
676
+ let $ = e(d);
677
+ function ne(e) {
836
678
  let n;
837
679
  if (e.termType === "Literal") {
838
- let t = {
839
- integer: "text-align: right;",
840
- decimal: "text-align: '.';",
841
- double: "text-align: '.';"
842
- };
843
- n = o.createElement("span"), n.textContent = e.value;
844
- let r = "";
845
- if (e.datatype && e.datatype.uri) {
846
- let n = l.ns.xsd("").uri;
847
- e.datatype.uri.slice(0, n.length) === n && (r = t[e.datatype.uri.slice(n.length)]);
680
+ if (n = d.createElement("span"), n.classList.add("objectValue", "objectValue--literal"), n.textContent = e.value, e.datatype && e.datatype.uri) {
681
+ let t = o.ns.xsd("").uri;
682
+ e.datatype.uri.slice(0, t.length) === t && n.classList.add("objectValue--" + e.datatype.uri.slice(t.length));
848
683
  }
849
- n.setAttribute("style", r || "white-space: pre-wrap;");
850
- } else if (e.termType === "NamedNode" || e.termType === "BlankNode") if (n = o.createElement("span"), n.setAttribute("about", e.toNT()), c.appendAccessIcons(b, n, e), e.termType === "NamedNode") if (e.uri.slice(0, 4) === "tel:") {
851
- let r = e.uri.slice(4), i = o.createElement("a");
852
- n.appendChild(o.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(l.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, o)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon");
684
+ } else if (e.termType === "NamedNode" || e.termType === "BlankNode") if (n = d.createElement("span"), n.classList.add("objectValue", "objectValue--resource"), n.setAttribute("about", e.toNT()), p.appendAccessIcons(h, n, e), e.termType === "NamedNode") if (e.uri.slice(0, 4) === "tel:") {
685
+ let r = e.uri.slice(4), i = d.createElement("a");
686
+ n.appendChild(d.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(o.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, d)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon"), i.firstChild.classList.add("objectValueLinkIcon");
853
687
  } else {
854
- n.appendChild(o.createTextNode(l.utils.label(e)));
855
- let t = l.widgets.linkIcon(o, e);
856
- n.appendChild(t), l.widgets.makeDraggable(n, e);
688
+ n.appendChild(d.createTextNode(o.utils.label(e)));
689
+ let t = o.widgets.linkIcon(d, e);
690
+ t.firstChild && t.firstChild.classList.add("objectValueLinkIcon"), n.appendChild(t), o.widgets.makeDraggable(n, e);
857
691
  }
858
- else n.appendChild(o.createTextNode(l.utils.label(e)));
692
+ else n.appendChild(d.createTextNode(o.utils.label(e)));
859
693
  else if (e.termType === "Collection") {
860
- n = o.createElement("table"), n.classList.add("tableFullWidth"), n.setAttribute("about", e.toNT());
694
+ n = d.createElement("table"), n.classList.add("tableFullWidth"), n.setAttribute("about", e.toNT());
861
695
  for (let t = 0; t < e.elements.length; t++) {
862
- let r = e.elements[t], i = n.appendChild(o.createElement("tr")), a = i.appendChild(o.createElement("td"));
863
- a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(c.outlineObjectTD(r));
696
+ let r = e.elements[t], i = n.appendChild(d.createElement("tr")), a = i.appendChild(d.createElement("td"));
697
+ a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(p.outlineObjectTD(r));
864
698
  }
865
- } else e.termType === "Graph" ? (n = p.byName("dataContentPane").statementsAsTables(e.statements, a), n.setAttribute("class", "nestedFormula")) : (l.log.error("Object " + e + " has unknown term type: " + e.termType), n = o.createTextNode("[unknownTermType:" + e.termType + "]"));
866
- return l.log.debug("contents: " + n.innerHTML), n;
699
+ } else e.termType === "Graph" ? (n = c.byName("dataContentPane").statementsAsTables(e.statements, u), n.setAttribute("class", "nestedFormula")) : (o.log.error("Object " + e + " has unknown term type: " + e.termType), n = d.createTextNode("[unknownTermType:" + e.termType + "]"));
700
+ return o.log.debug("contents: " + n.innerHTML), n;
867
701
  }
868
702
  return this.createTabURI = function() {
869
- o.getElementById("UserURI").value = o.URL + "?uri=" + o.getElementById("UserURI").value;
870
- }, this.UserInput.setSelected = W, this.UserInput.deselectAll = G, this.UserInput.views = $, this.outlineExpand = Y, this;
703
+ d.getElementById("UserURI").value = d.URL + "?uri=" + d.getElementById("UserURI").value;
704
+ }, this.UserInput.setSelected = z, this.UserInput.deselectAll = B, this.UserInput.views = $, this.outlineExpand = X, this;
871
705
  }
872
706
  //#endregion
873
- export { y as default };
707
+ export { u as default };
874
708
 
875
709
  //# sourceMappingURL=manager2.esm.js.map