solid-panes 4.4.2-5 → 4.4.2-7

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