solid-panes 5.1.0-3 → 5.1.1

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 (174) hide show
  1. package/dist/RDFXMLPane.d.ts.map +1 -1
  2. package/dist/RDFXMLPane2.cjs.js +1 -1
  3. package/dist/RDFXMLPane2.cjs.js.map +1 -1
  4. package/dist/RDFXMLPane2.esm.js +3 -3
  5. package/dist/RDFXMLPane2.esm.js.map +1 -1
  6. package/dist/components/editor-card/EditorCard.cjs.js +2 -2
  7. package/dist/components/editor-card/EditorCard.cjs.js.map +1 -1
  8. package/dist/components/editor-card/EditorCard.d.ts +2 -0
  9. package/dist/components/editor-card/EditorCard.d.ts.map +1 -1
  10. package/dist/components/editor-card/EditorCard.esm.js +68 -43
  11. package/dist/components/editor-card/EditorCard.esm.js.map +1 -1
  12. package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -1
  13. package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -1
  14. package/dist/components/header/Header.cjs.js.map +1 -1
  15. package/dist/components/header/Header.esm.js.map +1 -1
  16. package/dist/components/header/Header.styles.cjs.js.map +1 -1
  17. package/dist/components/header/Header.styles.esm.js.map +1 -1
  18. package/dist/components/navbar/Navbar.cjs.js.map +1 -1
  19. package/dist/components/navbar/Navbar.esm.js.map +1 -1
  20. package/dist/components/navbar/Navbar.styles.cjs.js.map +1 -1
  21. package/dist/components/navbar/Navbar.styles.esm.js.map +1 -1
  22. package/dist/components/profile-heading/ProfileHeading.cjs.js +4 -4
  23. package/dist/components/profile-heading/ProfileHeading.cjs.js.map +1 -1
  24. package/dist/components/profile-heading/ProfileHeading.d.ts +4 -0
  25. package/dist/components/profile-heading/ProfileHeading.d.ts.map +1 -1
  26. package/dist/components/profile-heading/ProfileHeading.esm.js +123 -107
  27. package/dist/components/profile-heading/ProfileHeading.esm.js.map +1 -1
  28. package/dist/components/profile-heading/ProfileHeading.styles.cjs.js.map +1 -1
  29. package/dist/components/profile-heading/ProfileHeading.styles.esm.js.map +1 -1
  30. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js +19 -19
  31. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.cjs.js.map +1 -1
  32. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js +86 -86
  33. package/dist/components/profile-heading/editor/sections/heading/HeadingEditDialog.esm.js.map +1 -1
  34. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.cjs.js.map +1 -1
  35. package/dist/components/profile-heading/editor/sections/heading/dateHelpers.esm.js.map +1 -1
  36. package/dist/components/profile-heading/editor/sections/heading/imageHelpers.cjs.js.map +1 -1
  37. package/dist/components/profile-heading/editor/sections/heading/imagePreview.cjs.js.map +1 -1
  38. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js +1 -1
  39. package/dist/components/profile-heading/editor/sections/heading/mutations.cjs.js.map +1 -1
  40. package/dist/components/profile-heading/editor/sections/heading/mutations.esm.js +61 -61
  41. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.cjs.js.map +1 -1
  42. package/dist/components/profile-heading/editor/sections/shared/contactTypeUtils.esm.js.map +1 -1
  43. package/dist/components/profile-heading/editor/sections/shared/idNodeFactory.cjs.js.map +1 -1
  44. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.cjs.js.map +1 -1
  45. package/dist/components/profile-heading/editor/sections/shared/phoneCountries.esm.js.map +1 -1
  46. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.cjs.js.map +1 -1
  47. package/dist/components/profile-heading/editor/sections/shared/rdfMutationHelpers.esm.js.map +1 -1
  48. package/dist/components/profile-heading/editor/sections/shared/rowState.cjs.js.map +1 -1
  49. package/dist/components/profile-heading/editor/sections/shared/rowState.esm.js.map +1 -1
  50. package/dist/components/profile-heading/editor/sections/shared/sanitizeUtils.cjs.js.map +1 -1
  51. package/dist/components/profile-heading/editor/textUtils.cjs.js.map +1 -1
  52. package/dist/components/profile-heading/editor/textUtils.esm.js.map +1 -1
  53. package/dist/components/profile-heading/editor/texts/dialogTexts.cjs.js.map +1 -1
  54. package/dist/components/profile-heading/editor/texts/dialogTexts.esm.js.map +1 -1
  55. package/dist/components/profile-heading/editor/texts/messageTexts.cjs.js.map +1 -1
  56. package/dist/components/profile-heading/editor/texts/messageTexts.esm.js.map +1 -1
  57. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js +1 -1
  58. package/dist/components/profile-heading/editor/ui/dialog2.cjs.js.map +1 -1
  59. package/dist/components/profile-heading/editor/ui/dialog2.esm.js +1 -1
  60. package/dist/components/profile-heading/editor/ui/dialog2.esm.js.map +1 -1
  61. package/dist/components/profile-heading/friendActions.cjs.js +1 -1
  62. package/dist/components/profile-heading/friendActions.cjs.js.map +1 -1
  63. package/dist/components/profile-heading/friendActions.esm.js +5 -5
  64. package/dist/components/profile-heading/profileHeadingData.cjs.js.map +1 -1
  65. package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js +33 -0
  66. package/dist/components/resource-action-dialog/ResourceActionDialog.cjs.js.map +1 -0
  67. package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts +16 -0
  68. package/dist/components/resource-action-dialog/ResourceActionDialog.d.ts.map +1 -0
  69. package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js +309 -0
  70. package/dist/components/resource-action-dialog/ResourceActionDialog.esm.js.map +1 -0
  71. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js +2 -0
  72. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.cjs.js.map +1 -0
  73. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js +6 -0
  74. package/dist/components/resource-action-dialog/ResourceActionDialog.styles.esm.js.map +1 -0
  75. package/dist/dataContentPane.d.ts.map +1 -1
  76. package/dist/dataContentPane2.cjs.js +1 -1
  77. package/dist/dataContentPane2.cjs.js.map +1 -1
  78. package/dist/dataContentPane2.esm.js +90 -78
  79. package/dist/dataContentPane2.esm.js.map +1 -1
  80. package/dist/humanReadablePane.d.ts +1 -0
  81. package/dist/humanReadablePane.d.ts.map +1 -1
  82. package/dist/humanReadablePane2.cjs.js +147 -15
  83. package/dist/humanReadablePane2.cjs.js.map +1 -1
  84. package/dist/humanReadablePane2.esm.js +281 -114
  85. package/dist/humanReadablePane2.esm.js.map +1 -1
  86. package/dist/imagePane.d.ts.map +1 -1
  87. package/dist/imagePane2.cjs.js +1 -1
  88. package/dist/imagePane2.cjs.js.map +1 -1
  89. package/dist/imagePane2.esm.js +9 -7
  90. package/dist/imagePane2.esm.js.map +1 -1
  91. package/dist/index.cjs.js +1 -1
  92. package/dist/index.cjs.js.map +1 -1
  93. package/dist/index.esm.js +3 -3
  94. package/dist/internal/internalPane.d.ts.map +1 -1
  95. package/dist/internal/internalPane2.cjs.js +1 -1
  96. package/dist/internal/internalPane2.cjs.js.map +1 -1
  97. package/dist/internal/internalPane2.esm.js +55 -60
  98. package/dist/internal/internalPane2.esm.js.map +1 -1
  99. package/dist/mainPage/header.cjs.js +1 -1
  100. package/dist/mainPage/header.esm.js +2 -2
  101. package/dist/mainPage/index.cjs.js +1 -1
  102. package/dist/mainPage/index.cjs.js.map +1 -1
  103. package/dist/mainPage/index.d.ts.map +1 -1
  104. package/dist/mainPage/index.esm.js +35 -26
  105. package/dist/mainPage/index.esm.js.map +1 -1
  106. package/dist/mainPage/navbar.cjs.js +1 -1
  107. package/dist/mainPage/navbar.cjs.js.map +1 -1
  108. package/dist/mainPage/navbar.esm.js +15 -15
  109. package/dist/mainPage/navigation.cjs.js +1 -1
  110. package/dist/mainPage/navigation.cjs.js.map +1 -1
  111. package/dist/mainPage/navigation.esm.js +4 -4
  112. package/dist/mainPage/profileHeading.d.ts.map +1 -1
  113. package/dist/mainPage/profileHeading2.cjs.js +1 -1
  114. package/dist/mainPage/profileHeading2.cjs.js.map +1 -1
  115. package/dist/mainPage/profileHeading2.esm.js +14 -14
  116. package/dist/mainPage/profileHeading2.esm.js.map +1 -1
  117. package/dist/n3Pane.d.ts.map +1 -1
  118. package/dist/n3Pane2.cjs.js +1 -1
  119. package/dist/n3Pane2.cjs.js.map +1 -1
  120. package/dist/n3Pane2.esm.js +1 -1
  121. package/dist/n3Pane2.esm.js.map +1 -1
  122. package/dist/navigation/browserEvents.cjs.js +1 -1
  123. package/dist/navigation/browserEvents.cjs.js.map +1 -1
  124. package/dist/navigation/browserEvents.d.ts.map +1 -1
  125. package/dist/navigation/browserEvents.esm.js +17 -17
  126. package/dist/navigation/browserEvents.esm.js.map +1 -1
  127. package/dist/navigation/chrome.cjs.js +1 -1
  128. package/dist/navigation/chrome.cjs.js.map +1 -1
  129. package/dist/navigation/chrome.d.ts +2 -2
  130. package/dist/navigation/chrome.d.ts.map +1 -1
  131. package/dist/navigation/chrome.esm.js +2 -2
  132. package/dist/navigation/chrome.esm.js.map +1 -1
  133. package/dist/navigation/controller.cjs.js +1 -1
  134. package/dist/navigation/controller.cjs.js.map +1 -1
  135. package/dist/navigation/controller.esm.js +37 -37
  136. package/dist/navigation/podContext.cjs.js +1 -1
  137. package/dist/navigation/podContext.cjs.js.map +1 -1
  138. package/dist/navigation/podContext.esm.js +5 -5
  139. package/dist/navigation/state.cjs.js +1 -1
  140. package/dist/navigation/state.cjs.js.map +1 -1
  141. package/dist/navigation/state.d.ts +4 -0
  142. package/dist/navigation/state.d.ts.map +1 -1
  143. package/dist/navigation/state.esm.js +18 -5
  144. package/dist/navigation/state.esm.js.map +1 -1
  145. package/dist/outline/fileExplorerHelpers.cjs.js +1 -1
  146. package/dist/outline/fileExplorerHelpers.cjs.js.map +1 -1
  147. package/dist/outline/fileExplorerHelpers.d.ts +2 -5
  148. package/dist/outline/fileExplorerHelpers.d.ts.map +1 -1
  149. package/dist/outline/fileExplorerHelpers.esm.js +11 -13
  150. package/dist/outline/fileExplorerHelpers.esm.js.map +1 -1
  151. package/dist/outline/manager2.cjs.js +1 -1
  152. package/dist/outline/manager2.cjs.js.map +1 -1
  153. package/dist/outline/manager2.esm.js +355 -327
  154. package/dist/outline/manager2.esm.js.map +1 -1
  155. package/dist/registerPanes.cjs.js +1 -1
  156. package/dist/registerPanes.cjs.js.map +1 -1
  157. package/dist/registerPanes.esm.js +1 -1
  158. package/dist/registerPanes.esm.js.map +1 -1
  159. package/dist/slideshow/slideshowPane.cjs.js +1 -1
  160. package/dist/slideshow/slideshowPane.cjs.js.map +1 -1
  161. package/dist/slideshow/slideshowPane.esm.js +30 -30
  162. package/dist/slideshow/slideshowPane.esm.js.map +1 -1
  163. package/dist/social/socialPane2.cjs.js +1 -1
  164. package/dist/social/socialPane2.esm.js +1 -1
  165. package/dist/social/socialSections.cjs.js +1 -1
  166. package/dist/social/socialSections.esm.js +1 -1
  167. package/dist/utils/paneUtils.cjs.js +1 -1
  168. package/dist/utils/paneUtils.cjs.js.map +1 -1
  169. package/dist/utils/paneUtils.esm.js +15 -15
  170. package/dist/versionInfo.cjs.js +1 -1
  171. package/dist/versionInfo.cjs.js.map +1 -1
  172. package/dist/versionInfo.esm.js +9 -9
  173. package/dist/versionInfo.esm.js.map +1 -1
  174. package/package.json +12 -13
@@ -3,47 +3,50 @@ 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 { isWebIdUri as i } from "../utils/webIdUtils.esm.js";
7
- import { loadContainerRepresentation as a } from "../utils/podUtils.esm.js";
6
+ import { loadContainerRepresentation as i } from "../utils/podUtils.esm.js";
7
+ import { isWebIdUri as a } from "../utils/webIdUtils.esm.js";
8
8
  import { deriveExplorerHeader as o, explorerHeaderForPane as s } from "../navigation/chrome.esm.js";
9
9
  import { isPageInViewerPod as c } from "../navigation/podContext.esm.js";
10
- import { nextHistoryState as l } from "../navigation/state.esm.js";
11
- import { announceNavigation as u } from "../navigation/events.esm.js";
12
- import { resolveFolderView as d, resolveSource as f } from "../navigation/options.esm.js";
13
- import { refreshNavbarVisibility as p } from "../navigation/navbarVisibility.esm.js";
14
- import { createOutlineDomHelpers as m } from "./outlineDomHelpers.esm.js";
15
- import { getPaneIcon as h, getPaneItems as g } from "./fileExplorerHelpers.esm.js";
16
- import * as _ from "solid-ui";
17
- import { solidLogicSingleton as v, store as y } from "solid-logic";
18
- import * as b from "pane-registry";
19
- import * as x from "rdflib";
10
+ import { nextHistoryState as l, writeNavigationHistory as u } from "../navigation/state.esm.js";
11
+ import { announceNavigation as d } from "../navigation/events.esm.js";
12
+ import { resolveFolderView as f, resolveSource as p } from "../navigation/options.esm.js";
13
+ import { refreshNavbarVisibility as m } from "../navigation/navbarVisibility.esm.js";
14
+ import { createOutlineDomHelpers as h } from "./outlineDomHelpers.esm.js";
15
+ import { getPaneIcon as g, getPaneItems as _ } from "./fileExplorerHelpers.esm.js";
16
+ import * as v from "solid-ui";
17
+ import { solidLogicSingleton as y, store as b } from "solid-logic";
18
+ import * as x from "pane-registry";
19
+ import * as S from "rdflib";
20
20
  import "solid-ui/components/file-explorer-provider";
21
21
  import "solid-ui/components/file-explorer-header";
22
22
  import "solid-ui/components/error-state";
23
- import S from "solid-ui/components/access-control-modal";
23
+ import C from "solid-ui/components/access-control-modal";
24
24
  // src/outline/manager.js
25
25
  /* istanbul ignore file */
26
- var C = "solid-ui-file-explorer-provider";
27
- function w(w) {
28
- let T = w.dom, E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet();
29
- this.document = w.dom, this.context = w, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
30
- let O = this, k = this, A = [];
31
- this.selection = A, this.ancestor = _.utils.ancestor, this.sparql = x.UpdateManager, this.kb = y;
32
- let j = y, M = y.fetcher;
33
- T.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
34
- let { outlineObjectDiv: N, outlinePredicateDiv: P, termWidget: F } = m({
35
- dom: T,
36
- UI: _,
37
- kb: y,
26
+ var w = "solid-ui-file-explorer-provider";
27
+ function ee(e) {
28
+ e.addEventListener("close", () => e.remove());
29
+ }
30
+ function T(T) {
31
+ let E = T.dom, D = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), k = /* @__PURE__ */ new WeakSet();
32
+ this.document = T.dom, this.context = T, this.outlineIcons = t, this.labeller = this.labeller || {}, this.labeller.LanguagePreference = "";
33
+ let A = this, j = this, M = [];
34
+ this.selection = M, this.ancestor = v.utils.ancestor, this.sparql = S.UpdateManager, this.kb = b;
35
+ let N = b, P = b.fetcher;
36
+ E.outline = this, this.qs = new r(), this.UserInput = new n(this), this.clipboardAddress = "tabulator:clipboard", this.UserInput.clipboardInit(this.clipboardAddress);
37
+ let { outlineObjectDiv: F, outlinePredicateDiv: te, termWidget: I } = h({
38
+ dom: E,
39
+ UI: v,
40
+ kb: b,
38
41
  outlineIcons: t,
39
- expandMouseDownListener: ue,
40
- selectableTDClickListener: he,
41
- setSelected: K,
42
- viewAsBoringDefault: ye,
43
- removeNodeIconMouseDownListener: me
42
+ expandMouseDownListener: de,
43
+ selectableTDClickListener: ge,
44
+ setSelected: q,
45
+ viewAsBoringDefault: xe,
46
+ removeNodeIconMouseDownListener: he
44
47
  });
45
- this.outlineObjectDiv = N, this.outlinePredicateDiv = P, this.outlineObjectTD = N, this.outlinePredicateTD = P, this.termWidget = F, this.init = function() {
46
- let e = ee();
48
+ this.outlineObjectDiv = F, this.outlinePredicateDiv = te, this.outlineObjectTD = F, this.outlinePredicateTD = te, this.termWidget = I, this.init = function() {
49
+ let e = R();
47
50
  e.outline = this;
48
51
  }, this.getLayoutMode = function() {
49
52
  let e = this.context?.environment?.layout;
@@ -53,55 +56,55 @@ function w(w) {
53
56
  return e <= 768 || t && e <= 1024 ? "mobile" : "desktop";
54
57
  }
55
58
  return "desktop";
56
- }, I.lastkbsize = 0;
57
- function I(e) {
59
+ }, L.lastkbsize = 0;
60
+ function L(e) {
58
61
  let t = [];
59
62
  for (let e = arguments.length - 1; e > 0; e--) t[e - 1] = arguments[e];
60
63
  let n = (/* @__PURE__ */ new Date()).getTime(), r = e.apply(e, t), i = (/* @__PURE__ */ new Date()).getTime();
61
- return _.log.info("BENCHMARK: kb delta: " + (j.statements.length - I.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), I.lastkbsize = j.statements.length, r;
64
+ return v.log.info("BENCHMARK: kb delta: " + (N.statements.length - L.lastkbsize) + ", time elapsed for " + e + " was " + (i - n) + "ms"), L.lastkbsize = N.statements.length, r;
62
65
  }
63
66
  this.appendAccessIcons = function(e, t, n) {
64
67
  if (n.termType !== "NamedNode") return;
65
68
  let r = e.uris(n);
66
69
  r.sort();
67
70
  let i = null;
68
- for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], k.appendAccessIcon(t, i));
71
+ for (let e = 0; e < r.length; e++) r[e] !== i && (i = r[e], j.appendAccessIcon(t, i));
69
72
  }, this.appendAccessIcon = function(e, n) {
70
73
  if (!n) return "";
71
- let r = x.uri.docpart(n);
74
+ let r = S.uri.docpart(n);
72
75
  if (r.slice(0, 5) !== "http:") return "";
73
- let i = M.getState(r), a, o, s;
76
+ let i = P.getState(r), a, o, s;
74
77
  switch (i) {
75
78
  case "unrequested":
76
- a = t.src.icon_unrequested, o = "fetch", s = pe;
79
+ a = t.src.icon_unrequested, o = "fetch", s = me;
77
80
  break;
78
81
  case "requested":
79
- a = t.src.icon_requested, o = "fetching", s = Y;
82
+ a = t.src.icon_requested, o = "fetching", s = X;
80
83
  break;
81
84
  case "fetched":
82
- a = t.src.icon_fetched, s = fe, o = "loaded";
85
+ a = t.src.icon_fetched, s = pe, o = "loaded";
83
86
  break;
84
87
  case "failed":
85
- a = t.src.icon_failed, o = "failed", s = Y;
88
+ a = t.src.icon_failed, o = "failed", s = X;
86
89
  break;
87
90
  case "unpermitted":
88
- a = t.src.icon_failed, s = Y, o = "no perm";
91
+ a = t.src.icon_failed, s = X, o = "no perm";
89
92
  break;
90
93
  case "unfetchable":
91
- a = t.src.icon_failed, s = Y, o = "cannot fetch";
94
+ a = t.src.icon_failed, s = X, o = "cannot fetch";
92
95
  break;
93
- default: _.log.error("?? state = " + i);
96
+ default: v.log.error("?? state = " + i);
94
97
  }
95
- let c = _.utils.AJARImage(a, o, t.tooltips[a].replace(/[Tt]his resource/, r), T);
96
- return c.classList.add("objectValueAccessIcon"), c.setAttribute("uri", n), c.addEventListener("click", s), le(c, r), e.appendChild(c), c;
98
+ let c = v.utils.AJARImage(a, o, t.tooltips[a].replace(/[Tt]his resource/, r), E);
99
+ return c.classList.add("objectValueAccessIcon"), c.setAttribute("uri", n), c.addEventListener("click", s), ue(c, r), e.appendChild(c), c;
97
100
  };
98
- function ee() {
99
- return ne("OutlineView", "Resource browser");
100
- }
101
- function te(e) {
102
- p(e.uri).catch((e) => _.log.error("Failed to update navbar visibility: " + e));
101
+ function R() {
102
+ return re("OutlineView", "Resource browser");
103
103
  }
104
104
  function ne(e) {
105
+ m(e.uri).catch((e) => v.log.error("Failed to update navbar visibility: " + e));
106
+ }
107
+ function re(e) {
105
108
  if (e === "OutlineView") {
106
109
  let e = document.getElementById("OutlineView");
107
110
  if (e) return e;
@@ -112,102 +115,125 @@ function w(w) {
112
115
  }
113
116
  }
114
117
  }
115
- async function re(e, t) {
116
- return e.uri.endsWith("/") && await a(e), _.getRelevantPanes(e, t, {
118
+ async function ie(e, t) {
119
+ return e.uri.endsWith("/") && await i(e), v.getRelevantPanes(e, t, {
117
120
  excludedPaneNames: ["sharing"],
118
121
  fallbackPaneName: "internal"
119
122
  });
120
123
  }
121
- function ie(e, t) {
122
- return e.find((e) => e.shouldGetFocus && e.shouldGetFocus(t)) || e[0];
123
- }
124
124
  function ae(e) {
125
- let t = T.getElementById("queryButton");
125
+ let t = E.getElementById("queryButton");
126
126
  t && (e ? t.removeAttribute("style") : t.setAttribute("style", "display:none;"));
127
127
  }
128
- function L(e, t, n, r) {
128
+ function oe(e, t, n, r) {
129
129
  if (!e || !n) return;
130
130
  let i;
131
131
  try {
132
- _.log.info("outline: Rendering pane (menu): " + n.name), i = n.render(t, w, r);
132
+ v.log.info("outline: Rendering pane (menu): " + n.name), i = n.render(t, T, r);
133
133
  } catch (e) {
134
- i = T.createElement("div"), i.setAttribute("class", "exceptionPane");
135
- let t = T.createElement("pre");
136
- i.appendChild(t), t.appendChild(T.createTextNode(_.utils.stackString(e)));
134
+ i = E.createElement("div"), i.setAttribute("class", "exceptionPane");
135
+ let t = E.createElement("pre");
136
+ i.appendChild(t), t.appendChild(E.createTextNode(v.utils.stackString(e)));
137
137
  }
138
- z(e, t, n, i);
139
- }
140
- function R(e, t, n) {
141
- n ? (ae(!!n.requireQueryButton), e.pane = n, L(e, t, n, E.get(e)?.options || {})) : _.log.warn("outline: Unable to open pane in place: pane is undefined.");
138
+ B(e, t, n, i), O.set(e, {
139
+ pane: n,
140
+ subjectUri: t.uri
141
+ });
142
142
  }
143
- function z(e, t, n, r) {
144
- let i = E.get(e);
145
- _.composeExplorer(e, {
146
- context: w,
143
+ function z(e, t, n) {
144
+ n ? (ae(!!n.requireQueryButton), e.pane = n, oe(e, t, n, D.get(e)?.options || {})) : v.log.warn("outline: Unable to open pane in place: pane is undefined.");
145
+ }
146
+ this.refreshActiveExplorerPanes = function() {
147
+ let e = Array.from(E.querySelectorAll(w));
148
+ for (let t of e) {
149
+ let e = t.subjectUri, n = t.pane;
150
+ if (!e || !n) continue;
151
+ let r = t.querySelector(":scope > .paneDiv");
152
+ if (!r || r.matches("[data-preserve-pane-on-resize=\"true\"]") || r.querySelector("[data-preserve-pane-on-resize=\"true\"]") || r.querySelector(":scope > folder-pane-view")) continue;
153
+ let i;
154
+ try {
155
+ i = n.render(S.sym(e), T, t.paneRenderOptions || D.get(t)?.options || {});
156
+ } catch (e) {
157
+ v.log.error("outline: Failed to refresh pane layout: " + v.utils.stackString(e));
158
+ continue;
159
+ }
160
+ i.classList.add("paneDiv"), r.replaceWith(i), O.set(t, {
161
+ pane: n,
162
+ subjectUri: e
163
+ });
164
+ }
165
+ };
166
+ function B(e, t, n, r) {
167
+ let i = D.get(e);
168
+ v.composeExplorer(e, {
169
+ context: T,
147
170
  subjectUri: t.uri,
148
171
  pane: n,
149
172
  relevantPanes: e.relevantPanes || [],
150
- header: i && s(i.showHeader, n?.name, i.options.folderView) ? {
151
- paneIcon: h(n, t, w),
152
- menuItems: i.menuItems
173
+ header: i && s(i.showHeader, n?.name, i.options.folderView, i.options.solo) ? {
174
+ paneIcon: g(n, t, T),
175
+ menuItems: i.menuItems,
176
+ showBack: !i.options.solo
153
177
  } : void 0,
154
178
  paneElement: r
155
179
  });
156
180
  }
157
- async function oe(e, t, n, r) {
158
- n ||= {}, r ||= T.createElement(C);
159
- let a = {
160
- generation: (E.get(r)?.generation || 0) + 1,
181
+ async function se(e, t, n, r) {
182
+ n ||= {}, r ||= E.createElement(w);
183
+ let i = {
184
+ generation: (D.get(r)?.generation || 0) + 1,
161
185
  menuItems: [],
162
186
  options: n
163
187
  };
164
- E.set(r, a), r.classList.add("paneView", "tdFlex"), r.setAttribute("notSelectable", "true"), r.setAttribute("role", "grid"), r.setAttribute("about", e.toNT()), n.hover && r.classList.add("hoverControl"), r.context = w, r.subjectUri = e.uri, r.soloPane = n.solo, D.has(r) || (r.addEventListener(_.FILE_EXPLORER_BACK_EVENT, (e) => {
165
- _.isExplorerEvent(e, r) && (e.stopPropagation(), de({ target: r }));
166
- }), r.addEventListener(_.FILE_EXPLORER_MANAGE_ACCESS_EVENT, (e) => {
188
+ D.set(r, i), r.classList.add("paneView", "tdFlex"), r.setAttribute("notSelectable", "true"), r.setAttribute("role", "grid"), r.setAttribute("about", e.toNT()), n.hover && r.classList.add("hoverControl"), r.context = T, r.subjectUri = e.uri, r.soloPane = n.solo, k.has(r) || (r.addEventListener(v.FILE_EXPLORER_BACK_EVENT, (e) => {
189
+ v.isExplorerEvent(e, r) && (e.stopPropagation(), fe({ target: r }));
190
+ }), r.addEventListener(v.FILE_EXPLORER_MANAGE_ACCESS_EVENT, (e) => {
167
191
  e.stopPropagation();
168
- let t = x.sym(e.detail.subjectUri).doc();
169
- v.acl.findAccessGrants(t).then((e) => {
170
- _.showDialog(S, { props: {
192
+ let t = S.sym(e.detail.subjectUri).doc();
193
+ y.acl.findAccessGrants(t).then((e) => {
194
+ v.showDialog(C, { props: {
171
195
  subjectUri: t.uri,
172
196
  accessGrants: e
173
197
  } });
174
198
  }).catch((e) => {
175
- _.log.error("outline: Failed to open access controls: " + _.utils.stackString(e));
199
+ v.log.error("outline: Failed to open access controls: " + v.utils.stackString(e));
176
200
  });
177
- }), r.addEventListener(_.FILE_EXPLORER_OPEN_PANE_EVENT, (e) => {
178
- if (!_.isExplorerEvent(e, r)) return;
201
+ }), r.addEventListener(v.FILE_EXPLORER_OPEN_PANE_EVENT, (e) => {
202
+ if (!v.isExplorerEvent(e, r)) return;
179
203
  e.stopPropagation();
180
- let t = w.session.paneRegistry.byName(e.detail.paneName);
181
- R(r, x.sym(e.detail.subjectUri), t);
182
- }), D.add(r));
183
- let s = n.hideList ? [] : await re(e, w);
184
- if (E.get(r) !== a) return r;
185
- let l = w.session.logic?.resource || v.resource, u = e.uri.endsWith("/") ? x.sym(`${e.uri}index.ttl`) : null;
186
- if (n.solo && !t && !n.folderView && u && (typeof l?.containerHasIndexDocument == "function" && l.containerHasIndexDocument(e) || j.holds(e, _.ns.ldp("contains"), u, e.doc()))) {
187
- if (e = typeof l?.getContainerIndexThing == "function" ? l.getContainerIndexThing(e) : x.sym(`${u.uri}#this`), await j.fetcher.load(e.doc()), s = await re(e, w), E.get(r) !== a) return r;
204
+ let t = T.session.paneRegistry.byName(e.detail.paneName);
205
+ z(r, S.sym(e.detail.subjectUri), t);
206
+ }), k.add(r));
207
+ let s = n.hideList ? [] : await ie(e, T);
208
+ if (D.get(r) !== i) return r;
209
+ let l = T.session.logic?.resource || y.resource, u = e.uri.endsWith("/") ? S.sym(`${e.uri}index.ttl`) : null;
210
+ if (n.solo && !t && !n.folderView && u && (typeof l?.containerHasIndexDocument == "function" && l.containerHasIndexDocument(e) || N.holds(e, v.ns.ldp("contains"), u, e.doc()))) {
211
+ if (e = typeof l?.getContainerIndexThing == "function" ? l.getContainerIndexThing(e) : S.sym(`${u.uri}#this`), await N.fetcher.load(e.doc()), s = await ie(e, T), D.get(r) !== i) return r;
188
212
  r.subjectUri = e.uri, r.setAttribute("about", e.toNT());
189
213
  }
190
- r.relevantPanes = s, r.pane = t || ie(s, e);
214
+ r.relevantPanes = s, r.pane = t || v.getPreferredPane(e, T, s);
191
215
  let d = !!(e && e.uri && e.site && e.site().uri === e.uri), f = !!n.headerOnlyInViewerPod, p = !e.uri.endsWith("/index.ttl#this") && o({
192
216
  isRootResource: d,
193
- isWebId: i(e),
217
+ isWebId: a(e),
194
218
  viewerPodOnly: f,
195
- inViewerPod: !f || await c(T.location.href)
219
+ inViewerPod: !f || await c(E.location.href)
196
220
  });
197
- if (E.get(r) !== a) return r;
198
- if (a.showHeader = p, r.paneRenderOptions = n, r.soloPane = n.solo, r.openPane = (e, t) => R(r, e, b.byName(t)), r.handleAccessClick = async () => {
221
+ if (D.get(r) !== i) return r;
222
+ i.showHeader = p, r.paneRenderOptions = n, r.soloPane = n.solo, r.openPane = (e, t) => z(r, e, x.byName(t)), r.handleAccessClick = async () => {
199
223
  try {
200
- let t = e.doc(), n = await v.acl.findAccessGrants(t);
201
- _.showDialog(S, { props: {
224
+ let t = e.doc(), n = await y.acl.findAccessGrants(t);
225
+ v.showDialog(C, { props: {
202
226
  subjectUri: t.uri,
203
227
  accessGrants: n
204
228
  } });
205
229
  } catch (e) {
206
- _.log.error("outline: Failed to open access controls: " + _.utils.stackString(e));
230
+ v.log.error("outline: Failed to open access controls: " + v.utils.stackString(e));
207
231
  }
208
- }, r.pane ? L(r, e, r.pane, n) : z(r, e, r.pane), p) {
209
- let t = await g(e, w, s, (e, t) => {
210
- r.dispatchEvent(new CustomEvent(_.FILE_EXPLORER_OPEN_PANE_EVENT, {
232
+ };
233
+ let m = O.get(r);
234
+ if (r.pane?.managesUpdates === !0 && m?.pane === r.pane && m.subjectUri === e.uri && !n.refresh && r.querySelector(":scope > .paneDiv") ? B(r, e, r.pane) : r.pane ? oe(r, e, r.pane, n) : B(r, e, r.pane), p) {
235
+ let t = await _(e, T, s, (e, t) => {
236
+ r.dispatchEvent(new CustomEvent(v.FILE_EXPLORER_OPEN_PANE_EVENT, {
211
237
  bubbles: !0,
212
238
  composed: !0,
213
239
  detail: {
@@ -216,75 +242,75 @@ function w(w) {
216
242
  }
217
243
  }));
218
244
  });
219
- E.get(r) === a && (a.menuItems = t, z(r, e, r.pane));
245
+ D.get(r) === i && (i.menuItems = t, B(r, e, r.pane));
220
246
  }
221
247
  return r;
222
248
  }
223
- function se(e) {
224
- let t = e.parentNode, n = t.parentNode, r = T.createElement("div");
249
+ function ce(e) {
250
+ let t = e.parentNode, n = t.parentNode, r = E.createElement("div");
225
251
  n.replaceChild(r, t), t.removeChild(e), n.replaceChild(t, r);
226
252
  }
227
- let B = this.propertyTable = function(e, t, n, r) {
228
- _.log.debug("Property block for: " + e), e = j.canon(e);
229
- let i = t ? t.matches?.(C) ? t : t.firstElementChild || t : T.createElement(C);
230
- return oe(e, n, r, i).catch((e) => {
231
- _.log.error("outline: Failed to set up file explorer: " + _.utils.stackString(e));
232
- }), t && _.log.info("Re-expand: " + t), t || i;
253
+ let V = this.propertyTable = function(e, t, n, r) {
254
+ v.log.debug("Property block for: " + e), e = N.canon(e);
255
+ let i = t ? t.matches?.(w) ? t : t.firstElementChild || t : E.createElement(w);
256
+ return se(e, n, r, i).catch((e) => {
257
+ v.log.error("outline: Failed to set up file explorer: " + v.utils.stackString(e));
258
+ }), t && v.log.info("Re-expand: " + t), t || i;
233
259
  };
234
- function V(e, t, n) {
260
+ function H(e, t, n) {
235
261
  let r = e.createElement("div");
236
262
  r.AJAR_statement = t, r.AJAR_inverse = n, r.setAttribute("predTR", "true"), r.setAttribute("role", "row");
237
- let i = k.outlinePredicateDiv(t.predicate, r, n);
263
+ let i = j.outlinePredicateDiv(t.predicate, r, n);
238
264
  return r.appendChild(i), r;
239
265
  }
240
- this.propertyTR = V;
241
- function ce(e, t, n, r) {
242
- if (_.log.debug("Property list length = " + t.length), t.length === 0) return "";
266
+ this.propertyTR = H;
267
+ function le(e, t, n, r) {
268
+ if (v.log.debug("Property list length = " + t.length), t.length === 0) return "";
243
269
  let i, a, o;
244
270
  n ? (i = function(e) {
245
271
  return e.subject;
246
- }, t = t.sort(_.utils.RDFComparePredicateSubject)) : (i = function(e) {
272
+ }, t = t.sort(v.utils.RDFComparePredicateSubject)) : (i = function(e) {
247
273
  return e.object;
248
- }, t = t.sort(_.utils.RDFComparePredicateObject));
274
+ }, t = t.sort(v.utils.RDFComparePredicateObject));
249
275
  let s = t.length;
250
276
  for (a = 0; a < s; a++) {
251
277
  let c = t[a];
252
278
  if (r && !r(c.predicate, n)) continue;
253
- let l = V(T, c, n);
279
+ let l = H(E, c, n);
254
280
  e.appendChild(l);
255
281
  let u = l.firstChild, d = $.defaults[c.predicate.uri], f = 0, p = 0, m = 0;
256
- for (o = 0; o + a < s && t[a + o].predicate.sameTerm(c.predicate); o++) o > 0 && i(t[a + o]).sameTerm(i(t[a + o - 1])) && f++, i(t[a + o]).lang && O.labeller.LanguagePreference && (p += 1, i(t[a + o]).lang.indexOf(O.labeller.LanguagePreference) >= 0 && m++);
282
+ for (o = 0; o + a < s && t[a + o].predicate.sameTerm(c.predicate); o++) o > 0 && i(t[a + o]).sameTerm(i(t[a + o - 1])) && f++, i(t[a + o]).lang && A.labeller.LanguagePreference && (p += 1, i(t[a + o]).lang.indexOf(A.labeller.LanguagePreference) >= 0 && m++);
257
283
  if (m > 0 && p === f + 1) {
258
- for (let e = a; e <= a + f; e++) if (O.labeller.LanguagePreference && i(t[e]).lang.indexOf(O.labeller.LanguagePreference) >= 0) {
259
- l.appendChild(k.outlineObjectDiv(i(t[e]), d, void 0, c));
284
+ for (let e = a; e <= a + f; e++) if (A.labeller.LanguagePreference && i(t[e]).lang.indexOf(A.labeller.LanguagePreference) >= 0) {
285
+ l.appendChild(j.outlineObjectDiv(i(t[e]), d, void 0, c));
260
286
  break;
261
287
  }
262
288
  a += f;
263
- } else l.appendChild(k.outlineObjectDiv(i(c), d, void 0, c)), l.showNobj = function(r) {
289
+ } else l.appendChild(j.outlineObjectDiv(i(c), d, void 0, c)), l.showNobj = function(r) {
264
290
  let s = o - f, l = 2 * r < s ? r : s, p = [];
265
291
  if (s !== 1) {
266
292
  u.setAttribute("rowspan", l === s ? s : r + 1);
267
293
  let f;
268
294
  l < s && l === 1 && u.setAttribute("rowspan", 2);
269
295
  let m = 0;
270
- for (f = 1; f < o; f++) if (j.canon(i(t[a + f])).sameTerm(j.canon(i(t[a + f - 1])))) _.log.info("there are duplicates here: %s", t[a + f - 1]);
296
+ for (f = 1; f < o; f++) if (N.canon(i(t[a + f])).sameTerm(N.canon(i(t[a + f - 1])))) v.log.info("there are duplicates here: %s", t[a + f - 1]);
271
297
  else {
272
298
  m++, c = t[a + f], d = $.defaults[c.predicate.uri];
273
- let r = T.createElement("div");
274
- r.style.colspan = "1", r.appendChild(k.outlineObjectDiv(i(t[a + f]), d, void 0, c)), r.AJAR_statement = c, r.AJAR_inverse = n, e.appendChild(r), m >= l && (r.style.display = "none", p.push(r));
299
+ let r = E.createElement("div");
300
+ r.style.colspan = "1", r.appendChild(j.outlineObjectDiv(i(t[a + f]), d, void 0, c)), r.AJAR_statement = c, r.AJAR_inverse = n, e.appendChild(r), m >= l && (r.style.display = "none", p.push(r));
275
301
  }
276
302
  l === s && u.setAttribute("rowspan", m + 1);
277
303
  }
278
304
  if (l < s) {
279
- let t = T.createElement("div"), n = t.appendChild(T.createElement("div"));
305
+ let t = E.createElement("div"), n = t.appendChild(E.createElement("div"));
280
306
  if (n.setAttribute("style", "margin: 0.2em; border: none; padding: 0; vertical-align: top;"), n.classList.add("obj"), n.setAttribute("notSelectable", "false"), s > r) {
281
- let e = T.createElement("a");
307
+ let e = E.createElement("a");
282
308
  n.appendChild(e);
283
309
  let t = (function(e) {
284
310
  return e(u, o, f, r);
285
311
  })(function(t, n, r, i) {
286
312
  return function(n) {
287
- e.innerHTML = "", n === "none" ? (e.appendChild(_.utils.AJARImage(_.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", T)), e.appendChild(T.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(_.utils.AJARImage(_.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, T)), t.setAttribute("rowspan", s + 1));
313
+ e.innerHTML = "", n === "none" ? (e.appendChild(v.utils.AJARImage(v.icons.originalIconBase + "tbl-more-trans.png", "more", "See all", E)), e.appendChild(E.createTextNode(s - i + " more...")), t.setAttribute("rowspan", i + 1)) : (e.appendChild(v.utils.AJARImage(v.icons.originalIconBase + "tbl-shrink.png", "(less)", void 0, E)), t.setAttribute("rowspan", s + 1));
288
314
  for (let e = 0; e < p.length; e++) {
289
315
  let t = p[e];
290
316
  t.style.display = n;
@@ -302,87 +328,87 @@ function w(w) {
302
328
  }, l.showNobj(10), a += o - 1;
303
329
  }
304
330
  }
305
- this.appendPropertyTRs = ce;
306
- function le(e, n) {
307
- _.log.debug("Button callbacks for " + n + " added");
331
+ this.appendPropertyTRs = le;
332
+ function ue(e, n) {
333
+ v.log.debug("Button callbacks for " + n + " added");
308
334
  let r = function(r) {
309
335
  return function(i) {
310
- return i.indexOf("#"), !e || !O.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
336
+ return i.indexOf("#"), !e || !A.ancestor(e, "DIV") ? !1 : (i === n && (e.src = r, e.title = t.tooltips[r]), !0);
311
337
  };
312
338
  };
313
- M.addCallback("request", r(t.src.icon_requested)), M.addCallback("done", r(t.src.icon_fetched)), M.addCallback("fail", r(t.src.icon_failed));
339
+ P.addCallback("request", r(t.src.icon_requested)), P.addCallback("done", r(t.src.icon_fetched)), P.addCallback("fail", r(t.src.icon_failed));
314
340
  }
315
- function H(e) {
341
+ function U(e) {
316
342
  let t = e.getAttribute("class");
317
343
  return !!(t && t.indexOf("selected") >= 0);
318
344
  }
319
- function U(e) {
320
- let n = k.targetOf(e).parentNode;
321
- F.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, W), n.parentNode.parentNode.removeAttribute("optional");
322
- }
323
345
  function W(e) {
324
- let n = k.targetOf(e).parentNode;
325
- F.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, U), n.parentNode.parentNode.setAttribute("optional", "true");
346
+ let n = j.targetOf(e).parentNode;
347
+ I.replaceIcon(n.parentNode, t.termWidgets.optOn, t.termWidgets.optOff, G), n.parentNode.parentNode.removeAttribute("optional");
326
348
  }
327
- function G(e, n) {
349
+ function G(e) {
350
+ let n = j.targetOf(e).parentNode;
351
+ I.replaceIcon(n.parentNode, t.termWidgets.optOff, t.termWidgets.optOn, W), n.parentNode.parentNode.setAttribute("optional", "true");
352
+ }
353
+ function K(e, n) {
328
354
  let r = t.termWidgets.optOn, i = t.termWidgets.optOff, a = (e) => !(!e || typeof e.getAttribute != "function" || e.getAttribute("predTR") !== "true" && e.getAttribute("data-outline-node") !== "predicate");
329
355
  for (let t = e; t.parentNode; t = t.parentNode) for (;;) if (a(t)) {
330
356
  let e = t.getAttribute("parentOfSelected");
331
- e = e ? parseInt(e) : 0, e === 0 && n > 0 && F.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? U : W), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), F.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
357
+ e = e ? parseInt(e) : 0, e === 0 && n > 0 && I.addIcon(t.childNodes[0], t.getAttribute("optional") ? r : i, t.getAttribute("optional") ? W : G), e += n, t.setAttribute("parentOfSelected", e), e === 0 && (t.removeAttribute("parentOfSelected"), I.removeIcon(t.childNodes[0], t.getAttribute("optional") ? r : i));
332
358
  break;
333
359
  } else if (t.previousElementSibling) t = t.previousElementSibling;
334
360
  else break;
335
361
  }
336
362
  this.statusBarClick = function(e) {
337
- let t = _.utils.getTarget(e);
363
+ let t = v.utils.getTarget(e);
338
364
  t.label && (window.content.location = t.label);
339
365
  }, this.showURI = function(e) {
340
- e && T.getElementById("UserURI") && (T.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
366
+ e && E.getElementById("UserURI") && (E.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
341
367
  }, this.showSource = function() {
342
368
  if (typeof sourceWidget < "u") {
343
369
  for (let e in sourceWidget.sources) sourceWidget.sources[e].setAttribute("class", "");
344
- for (let e = 0; e < A.length; e++) {
345
- if (!A[e].parentNode) continue;
346
- let t = A[e].parentNode.AJAR_statement;
370
+ for (let e = 0; e < M.length; e++) {
371
+ if (!M[e].parentNode) continue;
372
+ let t = M[e].parentNode.AJAR_statement;
347
373
  if (!t) continue;
348
374
  let n = t.why;
349
375
  n && n.uri && sourceWidget.highlight(n, !0);
350
376
  }
351
377
  }
352
378
  }, this.getSelection = function() {
353
- return A;
379
+ return M;
354
380
  };
355
- function K(e, n) {
356
- if (e.nodeName !== "TD" && e.nodeName !== "DIV") throw _.log.debug("down" + e.nodeName), Error("Expected TD or DIV in setSelected: " + e.nodeName + " : " + e.textContent);
357
- _.log.debug("pass");
381
+ function q(e, n) {
382
+ if (e.nodeName !== "TD" && e.nodeName !== "DIV") throw v.log.debug("down" + e.nodeName), Error("Expected TD or DIV in setSelected: " + e.nodeName + " : " + e.textContent);
383
+ v.log.debug("pass");
358
384
  let r = e.getAttribute("class");
359
385
  if (r ||= "", n) {
360
- r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && G(e, 1), A.push(e);
361
- let n = _.utils.getTerm(e);
362
- k.showURI(n);
386
+ r += " selected", (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && K(e, 1), M.push(e);
387
+ let n = v.utils.getTerm(e);
388
+ j.showURI(n);
363
389
  let i = e.AJAR_statement;
364
390
  if (i === void 0 && e.parentNode && (i = e.parentNode.AJAR_statement), i) {
365
391
  let n = i.why;
366
- y.updater.editable(n.uri, j) && r.indexOf("pred") >= 0 && F.addIcon(e, t.termWidgets.addTri);
392
+ b.updater.editable(n.uri, N) && r.indexOf("pred") >= 0 && I.addIcon(e, t.termWidgets.addTri);
367
393
  }
368
- } else _.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && G(e, -1), r.indexOf("pred") >= 0 && F.removeIcon(e, t.termWidgets.addTri), A = A.filter(function(t) {
394
+ } else v.log.debug("cla=$" + r + "$"), r === "selected" && (r = ""), r = r.replace(" selected", ""), (r.indexOf("pred") >= 0 || r.indexOf("obj") >= 0) && K(e, -1), r.indexOf("pred") >= 0 && I.removeIcon(e, t.termWidgets.addTri), M = M.filter(function(t) {
369
395
  return t === e;
370
- }), _.log.info("Deselecting " + e.textContent);
371
- typeof sourceWidget < "u" && k.showSource(), e.setAttribute("class", r);
396
+ }), v.log.info("Deselecting " + e.textContent);
397
+ typeof sourceWidget < "u" && j.showSource(), e.setAttribute("class", r);
372
398
  }
373
- function q() {
374
- let e = A.length;
375
- for (let t = e - 1; t >= 0; t--) K(A[t], !1);
376
- A = [];
399
+ function J() {
400
+ let e = M.length;
401
+ for (let t = e - 1; t >= 0; t--) q(M[t], !1);
402
+ M = [];
377
403
  }
378
404
  this.targetOf = function(e) {
379
405
  let t;
380
406
  if (e ||= window.event, e.target) t = e.target;
381
407
  else if (e.srcElement) t = e.srcElement;
382
- else return _.log.error("can't get target for event " + e), !1;
408
+ else return v.log.error("can't get target for event " + e), !1;
383
409
  return t.nodeType === 3 && (t = t.parentNode), t;
384
410
  }, this.walk = function(e, t) {
385
- let n = t || A[0], r;
411
+ let n = t || M[0], r;
386
412
  switch (e) {
387
413
  case "down":
388
414
  try {
@@ -391,7 +417,7 @@ function w(w) {
391
417
  this.walk("up");
392
418
  return;
393
419
  }
394
- q(), K(r, !0);
420
+ J(), q(r, !0);
395
421
  break;
396
422
  case "up":
397
423
  try {
@@ -399,53 +425,53 @@ function w(w) {
399
425
  } catch {
400
426
  return;
401
427
  }
402
- q(), K(r, !0);
428
+ J(), q(r, !0);
403
429
  break;
404
430
  case "right":
405
431
  {
406
- let e = n.matches?.(C) ? n : n.querySelector?.(C), t = e?.querySelector?.("[data-outline-node=\"object\"]");
432
+ let e = n.matches?.(w) ? n : n.querySelector?.(w), t = e?.querySelector?.("[data-outline-node=\"object\"]");
407
433
  if (e) {
408
- t && (q(), K(t, !0));
434
+ t && (J(), q(t, !0));
409
435
  return;
410
436
  }
411
437
  }
412
- if (q(), n.nextSibling || n.lastChild.tagName === "strong") K(n.nextSibling, !0);
438
+ if (J(), n.nextSibling || n.lastChild.tagName === "strong") q(n.nextSibling, !0);
413
439
  else {
414
440
  let e = n.parentNode && n.parentNode.nextSibling, t = e ? e.lastChild : null;
415
441
  if (!t) {
416
- K(n, !0);
442
+ q(n, !0);
417
443
  return;
418
444
  }
419
- K(t, !0);
445
+ q(t, !0);
420
446
  }
421
447
  break;
422
448
  case "left":
423
- if (q(), n.previousSibling && n.previousSibling.className === "undetermined") return K(n.previousSibling, !0), !0;
424
- K(J(n)?.block || n.parentNode && n.parentNode.firstChild, !0);
449
+ if (J(), n.previousSibling && n.previousSibling.className === "undetermined") return q(n.previousSibling, !0), !0;
450
+ q(Y(n)?.block || n.parentNode && n.parentNode.firstChild, !0);
425
451
  break;
426
- case "moveTo": q(), K(t, !0);
452
+ case "moveTo": J(), q(t, !0);
427
453
  }
428
454
  e !== "down" && e !== "up" || r.tabulatorSelect || this.walk(e);
429
455
  }, this.OutlinerKeypressPanel = function(e) {
430
- _.log.info("Key " + e.keyCode + " pressed");
456
+ v.log.info("Key " + e.keyCode + " pressed");
431
457
  function t(e) {
432
- e && T.getElementById("UserURI") && (T.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
458
+ e && E.getElementById("UserURI") && (E.getElementById("UserURI").value = e.termType === "NamedNode" ? e.uri : "");
433
459
  }
434
460
  function n(e) {
435
- return arguments[3] || (o("right", a), t(_.utils.getAbout(j, A[0]))), !0;
461
+ return arguments[3] || (o("right", a), t(v.utils.getAbout(N, M[0]))), !0;
436
462
  }
437
463
  let r, i;
438
- if (_.utils.getTarget(e).tagName === "TEXTAREA" || _.utils.getTarget(e).id === "UserURI" || A.length > 1) return;
439
- if (A.length === 0) {
440
- (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", k.focusTd), t(_.utils.getAbout(j, A[0])));
464
+ if (v.utils.getTarget(e).tagName === "TEXTAREA" || v.utils.getTarget(e).id === "UserURI" || M.length > 1) return;
465
+ if (M.length === 0) {
466
+ (e.keyCode === 13 || e.keyCode === 38 || e.keyCode === 40 || e.keyCode === 37 || e.keyCode === 39) && (this.walk("right", j.focusTd), t(v.utils.getAbout(N, M[0])));
441
467
  return;
442
468
  }
443
- let a = A[0];
444
- switch (M.removeCallback("done", "setSelectedAfterward"), M.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
469
+ let a = M[0];
470
+ switch (P.removeCallback("done", "setSelectedAfterward"), P.removeCallback("fail", "setSelectedAfterward"), e.keyCode) {
445
471
  case 13:
446
- if (_.utils.getTarget(e).tagName === "HTML") {
447
- let e = _.utils.getAbout(j, a);
448
- r = a.parentNode.AJAR_statement.why, i = y.updater.editable(r.uri, j), e ? O.GotoSubject(e, !0) : i && k.UserInput.Enter(a);
472
+ if (v.utils.getTarget(e).tagName === "HTML") {
473
+ let e = v.utils.getAbout(N, a);
474
+ r = a.parentNode.AJAR_statement.why, i = b.updater.editable(r.uri, N), e ? A.GotoSubject(e, !0) : i && j.UserInput.Enter(a);
449
475
  } else this.UserInput.Keypress(e), this.walk("down"), e.stopPropagation();
450
476
  return;
451
477
  case 38:
@@ -453,30 +479,30 @@ function w(w) {
453
479
  break;
454
480
  case 40: this.walk("down"), e.stopPropagation(), e.preventDefault();
455
481
  }
456
- if (_.utils.getTarget(e).tagName === "INPUT") return;
482
+ if (v.utils.getTarget(e).tagName === "INPUT") return;
457
483
  let o;
458
484
  switch (e.keyCode) {
459
485
  case 46:
460
486
  case 8:
461
- r = a.parentNode.AJAR_statement.why, i = y.updater.editable(r.uri, j), i && (e.preventDefault(), this.UserInput.Delete(a));
487
+ r = a.parentNode.AJAR_statement.why, i = b.updater.editable(r.uri, N), i && (e.preventDefault(), this.UserInput.Delete(a));
462
488
  break;
463
489
  case 37: {
464
490
  if (this.walk("left")) return;
465
- let e = J(a);
491
+ let e = Y(a);
466
492
  if (!e) break;
467
- let t = _.utils.getAbout(j, e.provider);
468
- t && _e(e.block, t);
493
+ let t = v.utils.getAbout(N, e.provider);
494
+ t && ve(e.block, t);
469
495
  break;
470
496
  }
471
497
  case 39:
472
498
  {
473
- let e = _.utils.getAbout(j, a);
499
+ let e = v.utils.getAbout(N, a);
474
500
  if (e) {
475
501
  if (o = this.walk, a.nextSibling) {
476
502
  this.walk("right");
477
503
  return;
478
504
  }
479
- a.firstElementChild?.matches(C) || (M.addCallback("done", n), M.addCallback("fail", n), Z(a, e, { pane: b.byName("defaultPane") })), n();
505
+ a.firstElementChild?.matches(w) || (P.addCallback("done", n), P.addCallback("fail", n), Q(a, e, { pane: x.byName("defaultPane") })), n();
480
506
  }
481
507
  }
482
508
  break;
@@ -485,144 +511,144 @@ function w(w) {
485
511
  default: switch (e.charCode) {
486
512
  case 99:
487
513
  if (e.ctrlKey) {
488
- k.UserInput.copyToClipboard(k.clipboardAddress, a);
514
+ j.UserInput.copyToClipboard(j.clipboardAddress, a);
489
515
  break;
490
516
  }
491
517
  break;
492
518
  case 118:
493
519
  case 112:
494
520
  if (e.ctrlKey) {
495
- k.UserInput.pasteFromClipboard(k.clipboardAddress, a);
521
+ j.UserInput.pasteFromClipboard(j.clipboardAddress, a);
496
522
  break;
497
523
  }
498
524
  break;
499
- default: _.utils.getTarget(e).tagName;
525
+ default: v.utils.getTarget(e).tagName;
500
526
  }
501
527
  }
502
- t(_.utils.getAbout(j, A[0]));
528
+ t(v.utils.getAbout(N, M[0]));
503
529
  }, this.OutlinerMouseclickPanel = function(e) {
504
- switch (k.UserInput._tabulatorMode) {
530
+ switch (j.UserInput._tabulatorMode) {
505
531
  case 0:
506
- ge(e);
532
+ _e(e);
507
533
  break;
508
- case 1: k.UserInput.Click(e);
534
+ case 1: j.UserInput.Click(e);
509
535
  }
510
536
  };
511
- function ue(e) {
512
- let t = k.targetOf(e), n, r;
513
- for (let e = t; e && e !== T; e = e.parentNode) e.matches?.("[data-outline-node=\"object\"]") && (n = e), e.matches?.(".outline-subject-block") && (r = e);
514
- let i = r || n || t.parentNode, a = _.utils.getAbout(j, t), o = e.altKey ? b.byName("internal") : void 0;
515
- e.shiftKey ? Q(i, a, o) : e.altKey ? Z(i, a, {
516
- pane: b.byName("internal"),
537
+ function de(e) {
538
+ let t = j.targetOf(e), n, r;
539
+ for (let e = t; e && e !== E; e = e.parentNode) e.matches?.("[data-outline-node=\"object\"]") && (n = e), e.matches?.(".outline-subject-block") && (r = e);
540
+ let i = r || n || t.parentNode, a = v.utils.getAbout(N, t), o = e.altKey ? x.byName("internal") : void 0;
541
+ e.shiftKey ? ye(i, a, o) : e.altKey ? Q(i, a, {
542
+ pane: x.byName("internal"),
517
543
  immediate: !0
518
- }) : Z(i, a);
544
+ }) : Q(i, a);
519
545
  }
520
- function de(e) {
521
- let t = k.targetOf(e), n = e.altKey ? b.byName("internal") : void 0, r = J(t);
546
+ function fe(e) {
547
+ let t = j.targetOf(e), n = e.altKey ? x.byName("internal") : void 0, r = Y(t);
522
548
  if (!r) return;
523
- let i = _.utils.getAbout(j, r.provider);
524
- i && _e(r.block, i, n);
549
+ let i = v.utils.getAbout(N, r.provider);
550
+ i && ve(r.block, i, n);
525
551
  }
526
- function J(e) {
527
- for (let t = e; t && t !== T; t = t.parentNode) {
552
+ function Y(e) {
553
+ for (let t = e; t && t !== E; t = t.parentNode) {
528
554
  if (t.matches?.("[data-outline-node=\"object\"]")) {
529
- let e = t.querySelector?.(C);
555
+ let e = t.querySelector?.(w);
530
556
  if (e) return {
531
557
  block: t,
532
558
  provider: e
533
559
  };
534
560
  }
535
- if (t.matches?.(C)) return {
561
+ if (t.matches?.(w)) return {
536
562
  block: t.closest?.("[data-outline-node=\"object\"]") || t.closest?.(".outline-subject-block") || t,
537
563
  provider: t
538
564
  };
539
565
  }
540
566
  return null;
541
567
  }
542
- function Y(e) {
543
- let t = k.targetOf(e).getAttribute("uri");
544
- e.altKey ? M.fetch(x.uri.docpart(t), { force: !0 }) : M.refresh(j.sym(x.uri.docpart(t)));
545
- }
546
- function fe(e) {
547
- let t = k.targetOf(e).getAttribute("uri");
548
- e.altKey ? M.fetch(x.uri.docpart(t), { force: !0 }) : M.refresh(j.sym(x.uri.docpart(t)));
568
+ function X(e) {
569
+ let t = j.targetOf(e).getAttribute("uri");
570
+ e.altKey ? P.fetch(S.uri.docpart(t), { force: !0 }) : P.refresh(N.sym(S.uri.docpart(t)));
549
571
  }
550
572
  function pe(e) {
551
- let t = k.targetOf(e).getAttribute("uri");
552
- M.fetch(x.uri.docpart(t));
573
+ let t = j.targetOf(e).getAttribute("uri");
574
+ e.altKey ? P.fetch(S.uri.docpart(t), { force: !0 }) : P.refresh(N.sym(S.uri.docpart(t)));
553
575
  }
554
576
  function me(e) {
555
- let t = k.targetOf(e), n = t.node;
556
- n.childNodes.length > 1 && (n = t.parentNode), se(n);
577
+ let t = j.targetOf(e).getAttribute("uri");
578
+ P.fetch(S.uri.docpart(t));
557
579
  }
558
580
  function he(e) {
559
- if (k.UserInput._tabulatorMode) return k.UserInput.Click(e);
560
- let t = k.targetOf(e), n;
561
- for (n = _.utils.ancestor(t, "td") || _.utils.ancestor(t, "tr") || _.utils.ancestor(t, "div"); n && n.getAttribute("notSelectable") !== "false"; n = _.utils.ancestor(n.parentNode, "td") || _.utils.ancestor(n.parentNode, "tr") || _.utils.ancestor(n.parentNode, "div"));
581
+ let t = j.targetOf(e), n = t.node;
582
+ n.childNodes.length > 1 && (n = t.parentNode), ce(n);
583
+ }
584
+ function ge(e) {
585
+ if (j.UserInput._tabulatorMode) return j.UserInput.Click(e);
586
+ let t = j.targetOf(e), n;
587
+ for (n = v.utils.ancestor(t, "td") || v.utils.ancestor(t, "tr") || v.utils.ancestor(t, "div"); n && n.getAttribute("notSelectable") !== "false"; n = v.utils.ancestor(n.parentNode, "td") || v.utils.ancestor(n.parentNode, "tr") || v.utils.ancestor(n.parentNode, "div"));
562
588
  if (!n) return;
563
- let r = H(n);
564
- if (_.log.debug("Was node selected before: " + r), e.altKey) K(n, !H(n));
565
- else if (e.shiftKey) K(n, !0);
589
+ let r = U(n);
590
+ if (v.log.debug("Was node selected before: " + r), e.altKey) q(n, !U(n));
591
+ else if (e.shiftKey) q(n, !0);
566
592
  else {
567
- if (q(), k.UserInput.clearInputAndSave(e), K(n, !0), e.detail === 2) {
593
+ if (J(), j.UserInput.clearInputAndSave(e), q(n, !0), e.detail === 2) {
568
594
  e.stopPropagation();
569
595
  return;
570
596
  }
571
597
  let t;
572
598
  if (n.parentNode && (t = n.parentNode.AJAR_statement), !t) return;
573
- let i = t.why, a = y.updater.editable(i.uri, j);
574
- r && a && k.UserInput.Click(e, A[0]);
599
+ let i = t.why, a = b.updater.editable(i.uri, N);
600
+ r && a && j.UserInput.Click(e, M[0]);
575
601
  }
576
- _.log.debug("Was node selected after: " + H(n) + ", count=" + A.length), e.stopPropagation();
602
+ v.log.debug("Was node selected after: " + U(n) + ", count=" + M.length), e.stopPropagation();
577
603
  }
578
- function ge(e) {
579
- _.log.info("@TabulatorMousedown, dom.location is now " + T.location);
580
- let n = k.targetOf(e);
604
+ function _e(e) {
605
+ v.log.info("@TabulatorMousedown, dom.location is now " + E.location);
606
+ let n = j.targetOf(e);
581
607
  if (!n) return;
582
608
  let r = n.tagName;
583
- r !== "INPUT" && r !== "TEXTAREA" && (k.UserInput.clearMenu(), k.UserInput.lastModified && k.UserInput.lastModified.parentNode.nextSibling && k.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) && k.UserInput.clearInputAndSave(e), n.src && n.src.slice(n.src.indexOf("/icons/") + 1) === t.src.icon_show_choices || k.UserInput.clearMenu(), e && e.stopPropagation());
609
+ r !== "INPUT" && r !== "TEXTAREA" && (j.UserInput.clearMenu(), j.UserInput.lastModified && j.UserInput.lastModified.parentNode.nextSibling && j.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) && j.UserInput.clearInputAndSave(e), n.src && n.src.slice(n.src.indexOf("/icons/") + 1) === t.src.icon_show_choices || j.UserInput.clearMenu(), e && e.stopPropagation());
584
610
  }
585
- function X(e) {
586
- T.title = _.utils.label(e), T.location.href.startsWith(e.site().uri);
611
+ function Z(e) {
612
+ E.title = v.utils.label(e), E.location.href.startsWith(e.site().uri);
587
613
  }
588
- function Z(e, t, n) {
614
+ function Q(e, t, n) {
589
615
  n ||= {};
590
616
  let r = n.pane, i = !!n.already, a = n.immediate;
591
- _.log.info("@outlineExpand, dom is now " + T.location), M.removeCallback("done", "expand"), M.removeCallback("fail", "expand");
592
- let o = j.canon(t), s = !1;
617
+ v.log.info("@outlineExpand, dom is now " + E.location), P.removeCallback("done", "expand"), P.removeCallback("fail", "expand");
618
+ let o = N.canon(t), s = !1;
593
619
  function c() {
594
620
  if (s) {
595
- if (M.getState(o.doc().uri) !== "fetched") return !1;
621
+ if (P.getState(o.doc().uri) !== "fetched") return !1;
596
622
  s = !1, i = !1;
597
623
  }
598
- if (o = j.canon(o), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
624
+ if (o = N.canon(o), !e || !e.parentNode || !e.parentNode.parentNode) return !1;
599
625
  let t;
600
- _.log.info("@@ REPAINTING "), t = i ? B(o, e, r, n) : B(o, void 0, r, n), i = !0, t !== e && _.utils.emptyNode(e).appendChild(t), k.focusTd = e, _.log.debug("expand: Node for " + o + " expanded");
601
- let a = j.each(o, _.ns.rdfs("seeAlso"));
602
- for (let e = 0; e < a.length; e++) e === 25 && _.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + o), M.lookUpThing(a[e], o);
626
+ v.log.info("@@ REPAINTING "), t = i ? V(o, e, r, n) : V(o, void 0, r, n), i = !0, t !== e && v.utils.emptyNode(e).appendChild(t), j.focusTd = e, v.log.debug("expand: Node for " + o + " expanded");
627
+ let a = N.each(o, v.ns.rdfs("seeAlso"));
628
+ for (let e = 0; e < a.length; e++) e === 25 && v.log.warn("expand: Warning: many (" + a.length + ") seeAlso links for " + o), P.lookUpThing(a[e], o);
603
629
  }
604
630
  function l(e) {
605
631
  if (arguments[3]) return !0;
606
- let t = j.canon(o);
607
- _.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
608
- let n = j.sym(x.uri.docpart(e));
632
+ let t = N.canon(o);
633
+ v.log.info("@@ expand: relevant subject=" + t + ", uri=" + e + ", already=" + i);
634
+ let n = N.sym(S.uri.docpart(e));
609
635
  if (e.indexOf("#") >= 0) throw Error("Internal error: hash in " + e);
610
636
  return !function() {
611
637
  if (!t.uri) return !0;
612
- let r = j.uris(t);
638
+ let r = N.uris(t);
613
639
  if (!r) return !1;
614
- for (let t = 0; t < r.length; t++) for (let n = x.uri.docpart(r[t]); n; n = j.HTTPRedirects[n]) if (e === n) return !0;
615
- return !!j.anyStatementMatching(t, void 0, void 0, n);
616
- }() || (_.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), c(), !1);
640
+ for (let t = 0; t < r.length; t++) for (let n = S.uri.docpart(r[t]); n; n = N.HTTPRedirects[n]) if (e === n) return !0;
641
+ return !!N.anyStatementMatching(t, void 0, void 0, n);
642
+ }() || (v.log.success("@@ expand OK: relevant subject=" + t + ", uri=" + e + ", source=" + i), c(), !1);
617
643
  }
618
- if (n.solo && X(o), r?.global) {
644
+ if (n.solo && Z(o), r?.global) {
619
645
  c();
620
646
  return;
621
647
  }
622
- _.log.debug("outlineExpand: dereferencing " + o);
623
- let u = T.createElement("span");
624
- if (e.appendChild(u), M.addCallback("done", l), M.addCallback("fail", l), o.uri && o.uri.split(":")[0] === "rdf") c();
625
- else if (o.uri && !a && !_.widgets.isAudio(o) && !_.widgets.isVideo(o)) {
648
+ v.log.debug("outlineExpand: dereferencing " + o);
649
+ let u = E.createElement("span");
650
+ if (e.appendChild(u), P.addCallback("done", l), P.addCallback("fail", l), o.uri && o.uri.split(":")[0] === "rdf") c();
651
+ else if (o.uri && !a && !v.widgets.isAudio(o) && !v.widgets.isVideo(o)) {
626
652
  let t = o.doc() && o.doc().uri ? o.doc().uri : "" + o.doc(), r = function(e) {
627
653
  let t = !!(o && o.uri && o.site && o.site().uri === o.uri);
628
654
  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.";
@@ -630,87 +656,87 @@ function w(w) {
630
656
  let n = typeof e == "string" ? e : String(e || ""), r = t?.status || t?.response?.status;
631
657
  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;
632
658
  }, a = function() {
633
- let e = !!(o && o.uri && o.site && o.site().uri === o.uri), t = !!v.authn.currentUser();
659
+ let e = !!(o && o.uri && o.site && o.site().uri === o.uri), t = !!y.authn.currentUser();
634
660
  return e ? t ? "You are logged in, but this root resource is not publicly readable. Select a storage location from the account menu to continue." : "This root resource is not publicly readable. Try logging in or opening a profile document." : t ? "You are logged in, but your account does not have permission to view this resource." : "This resource is not publicly readable. Log in to view it.";
635
661
  }, l = function() {
636
662
  s = !0;
637
- let n = T.createElement("solid-ui-error-state");
638
- n.setAttribute("title", "Access denied"), n.setAttribute("message", a()), t && n.setAttribute("data-outline-error-for", t), _.utils.emptyNode(e).appendChild(n), M.addCallback("done", function(n) {
663
+ let n = E.createElement("solid-ui-error-state");
664
+ n.setAttribute("title", "Access denied"), n.setAttribute("message", a()), t && n.setAttribute("data-outline-error-for", t), ee(n), v.utils.emptyNode(e).appendChild(n), P.addCallback("done", function(n) {
639
665
  return !s || !e.isConnected ? !1 : n !== t || (c(), !1);
640
- }), M.getState(t) === "fetched" && c();
666
+ }), P.getState(t) === "fetched" && c();
641
667
  }, u = function(a, o) {
642
668
  if (e.querySelector && t && e.querySelector("[data-outline-error-for=\"" + t + "\"]")) return;
643
669
  let s = i(a, o);
644
670
  if (s && n.solo) {
645
- if (!d && v.authn.currentUser()) {
671
+ if (!d && y.authn.currentUser()) {
646
672
  d = !0, f(!0);
647
673
  return;
648
674
  }
649
675
  l();
650
676
  return;
651
677
  }
652
- let c = s ? r(s) : a, u = _.widgets.errorMessageBlock(T, c, "#fee", o instanceof Error ? o : void 0);
678
+ let c = s ? r(s) : a, u = v.widgets.errorMessageBlock(E, c, "#fee", o instanceof Error ? o : void 0);
653
679
  t && u.setAttribute("data-outline-error-for", t), e.appendChild(u);
654
680
  }, d = !1, f = function(e) {
655
- let t = !1, r = M.nowOrWhenFetched(o.doc(), e ? { force: !0 } : {}, function(e, r) {
656
- e ? (M.lookUpThing(o), c(), n.solo && X(o)) : (t = !0, u(r, void 0));
681
+ let t = !1, r = P.nowOrWhenFetched(o.doc(), e ? { force: !0 } : {}, function(e, r) {
682
+ e ? (P.lookUpThing(o), c(), n.solo && Z(o)) : (t = !0, u(r, void 0));
657
683
  });
658
684
  r && typeof r.catch == "function" && r.catch(function(e) {
659
685
  t || (t = !0, u(e, e));
660
686
  });
661
- }, p = M.requested[t];
687
+ }, p = P.requested[t];
662
688
  f(!!n.solo && (p === 401 || p === 403));
663
689
  } else c();
664
690
  }
665
- function _e(e, t) {
691
+ function ve(e, t) {
666
692
  let n = e.AJAR_statement || e.parentNode && e.parentNode.AJAR_statement;
667
- _.log.debug("Collapsing subject " + t);
693
+ v.log.debug("Collapsing subject " + t);
668
694
  let r;
669
- n && (_.log.debug("looking up pred " + n.predicate.uri + "in defaults"), r = $.defaults[n.predicate.uri]), _.log.debug("view= " + r);
695
+ n && (v.log.debug("looking up pred " + n.predicate.uri + "in defaults"), r = $.defaults[n.predicate.uri]), v.log.debug("view= " + r);
670
696
  let i;
671
- e.parentNode && e.parentNode.id === "outline" && (i = e), k.replaceTD(k.outlineObjectDiv(t, r, i, n), e);
697
+ e.parentNode && e.parentNode.id === "outline" && (i = e), j.replaceTD(j.outlineObjectDiv(t, r, i, n), e);
672
698
  }
673
699
  this.replaceTD = function(e, t) {
674
700
  let n;
675
- H(t) && (n = !0);
676
- for (let e = A.length - 1; e > -1; e--) for (let n = A[e]; n.parentNode; n = n.parentNode) n === t && K(A[e], !1);
677
- t.parentNode.replaceChild(e, t), n && K(e, !0);
701
+ U(t) && (n = !0);
702
+ for (let e = M.length - 1; e > -1; e--) for (let n = M[e]; n.parentNode; n = n.parentNode) n === t && q(M[e], !1);
703
+ t.parentNode.replaceChild(e, t), n && q(e, !0);
678
704
  };
679
- function Q(e, t) {
680
- _.utils.emptyNode(e).appendChild(B(t)), X(t), e.setAttribute("about", t.toNT());
705
+ function ye(e, t) {
706
+ v.utils.emptyNode(e).appendChild(V(t)), Z(t), e.setAttribute("about", t.toNT());
681
707
  }
682
- O.outlineRefocus = Q, this.GotoFormURI_enterKey = function(e) {
683
- e.keyCode === 13 && O.GotoFormURI(e);
708
+ A.outlineRefocus = ye, this.GotoFormURI_enterKey = function(e) {
709
+ e.keyCode === 13 && A.GotoFormURI(e);
684
710
  }, this.GotoFormURI = function(e) {
685
- ve(T.getElementById("UserURI").value);
711
+ be(E.getElementById("UserURI").value);
686
712
  };
687
- function ve(e) {
688
- let t = j.sym(e);
713
+ function be(e) {
714
+ let t = N.sym(e);
689
715
  this.GotoSubject(t, !0);
690
716
  }
691
717
  this.GotoURIinit = function(e) {
692
- let t = j.sym(e);
718
+ let t = N.sym(e);
693
719
  this.GotoSubject(t);
694
720
  }, this.GotoSubject = function(e, t, n, r, i, a, o) {
695
- let s = f(o) !== "accountMenu", c = ee();
696
- s && (!a || a === c) && te(e);
697
- let p = a || c;
698
- r && (p.style.width = "100%", _.utils.emptyNode(p));
699
- let m = n && n.subject && n.subject.uri ? n.subject : e;
700
- function h() {
701
- let e = T.createElement("div");
721
+ let s = p(o) !== "accountMenu", c = R();
722
+ s && (!a || a === c) && ne(e);
723
+ let m = a || c;
724
+ r && (m.style.width = "100%", v.utils.emptyNode(m));
725
+ let h = n && n.subject && n.subject.uri ? n.subject : e;
726
+ function g() {
727
+ let e = E.createElement("div");
702
728
  e.classList.add("outline-subject-block");
703
- let t = k.outlineObjectDiv(m, void 0, e);
704
- return e.appendChild(t), p.appendChild(e), e;
729
+ let t = j.outlineObjectDiv(h, void 0, e);
730
+ return e.appendChild(t), m.appendChild(e), e;
705
731
  }
706
- let g = r ? h() : p;
707
- if (r && X(m), t ? Z(g, m, {
732
+ let _ = r ? g() : m;
733
+ if (r && Z(h), t ? Q(_, h, {
708
734
  pane: n,
709
735
  solo: r,
710
- folderView: d(o),
736
+ folderView: f(o),
711
737
  headerOnlyInViewerPod: !s || !!(n && n.subject && n.subject.uri)
712
- }) : r || h(), r && T && T.defaultView && T.defaultView.history) {
713
- let t = o && typeof o == "object" && o.preserveUrl === !0, r = T.defaultView.history.state || {}, i = document.location.href !== e.uri, a = l(r, {
738
+ }) : r || g(), r && E && E.defaultView && E.defaultView.history) {
739
+ let t = o && typeof o == "object" && o.preserveUrl === !0, r = E.defaultView.history.state || {}, i = document.location.href !== e.uri, a = l(r, {
714
740
  pane: n ? {
715
741
  name: n.name,
716
742
  subject: n.subject && typeof n.subject.uri == "string" ? n.subject.uri : void 0
@@ -719,44 +745,46 @@ function w(w) {
719
745
  viaAccountMenu: !s
720
746
  });
721
747
  try {
722
- let n = new URL(T.location.href), o = new URL(e.uri, T.location.href);
723
- t ? T.defaultView.history.replaceState(a, "") : n.origin === o.origin && (i ? T.defaultView.history.pushState(a, e.uri, e.uri) : JSON.stringify(r) !== JSON.stringify(a) && T.defaultView.history.replaceState(a, e.uri, e.uri));
724
- } catch {}
748
+ let n = new URL(E.location.href), o = new URL(e.uri, E.location.href);
749
+ t ? u(E.defaultView.history, "replaceState", a, "") : n.origin === o.origin && (i ? u(E.defaultView.history, "pushState", a, e.uri, e.uri) : JSON.stringify(r) !== JSON.stringify(a) && u(E.defaultView.history, "replaceState", a, e.uri, e.uri));
750
+ } catch (e) {
751
+ v.log.error("Failed to update navigation history: " + v.utils.stackString(e));
752
+ }
725
753
  }
726
- return r && u(T), e;
754
+ return r && d(E), e;
727
755
  };
728
- let $ = e(T);
729
- function ye(e) {
756
+ let $ = e(E);
757
+ function xe(e) {
730
758
  let n;
731
759
  if (e.termType === "Literal") {
732
- if (n = T.createElement("span"), n.classList.add("objectValue", "objectValue--literal"), n.textContent = e.value, e.datatype && e.datatype.uri) {
733
- let t = _.ns.xsd("").uri;
760
+ if (n = E.createElement("span"), n.classList.add("objectValue", "objectValue--literal"), n.textContent = e.value, e.datatype && e.datatype.uri) {
761
+ let t = v.ns.xsd("").uri;
734
762
  e.datatype.uri.slice(0, t.length) === t && n.classList.add("objectValue--" + e.datatype.uri.slice(t.length));
735
763
  }
736
764
  } else if (e.termType === "NamedNode" || e.termType === "BlankNode") {
737
- if (n = T.createElement("span"), n.classList.add("objectValue", "objectValue--resource"), n.setAttribute("about", e.toNT()), k.appendAccessIcons(j, n, e), e.termType === "NamedNode") {
765
+ if (n = E.createElement("span"), n.classList.add("objectValue", "objectValue--resource"), n.setAttribute("about", e.toNT()), j.appendAccessIcons(N, n, e), e.termType === "NamedNode") {
738
766
  if (e.uri.slice(0, 4) === "tel:") {
739
- let r = e.uri.slice(4), i = T.createElement("a");
740
- n.appendChild(T.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(_.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, T)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon"), i.firstChild.classList.add("objectValueLinkIcon");
767
+ let r = e.uri.slice(4), i = E.createElement("a");
768
+ n.appendChild(E.createTextNode(r)), i.setAttribute("href", e.uri), i.appendChild(v.utils.AJARImage(t.src.icon_telephone, "phone", "phone " + r, E)), n.appendChild(i), i.firstChild.setAttribute("class", "phoneIcon"), i.firstChild.classList.add("objectValueLinkIcon");
741
769
  } else {
742
- n.appendChild(T.createTextNode(_.utils.label(e)));
743
- let t = _.widgets.linkIcon(T, e);
744
- t.firstChild && t.firstChild.classList.add("objectValueLinkIcon"), n.appendChild(t), _.widgets.makeDraggable(n, e);
770
+ n.appendChild(E.createTextNode(v.utils.label(e)));
771
+ let t = v.widgets.linkIcon(E, e);
772
+ t.firstChild && t.firstChild.classList.add("objectValueLinkIcon"), n.appendChild(t), v.widgets.makeDraggable(n, e);
745
773
  }
746
- } else n.appendChild(T.createTextNode(_.utils.label(e)));
774
+ } else n.appendChild(E.createTextNode(v.utils.label(e)));
747
775
  } else if (e.termType === "Collection") {
748
- n = T.createElement("div"), n.setAttribute("about", e.toNT());
776
+ n = E.createElement("div"), n.setAttribute("about", e.toNT());
749
777
  for (let t = 0; t < e.elements.length; t++) {
750
- let r = e.elements[t], i = n.appendChild(T.createElement("div")), a = i.appendChild(T.createElement("div"));
751
- a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(k.outlineObjectDiv(r));
778
+ let r = e.elements[t], i = n.appendChild(E.createElement("div")), a = i.appendChild(E.createElement("div"));
779
+ a.classList.add("obj"), a.setAttribute("notSelectable", "false"), a.setAttribute("about", e.toNT()), a.innerHTML = t + 1 + ")", i.appendChild(j.outlineObjectDiv(r));
752
780
  }
753
- } else e.termType === "Graph" ? (n = b.byName("dataContentPane").statementsAsTables(e.statements, w), n.setAttribute("class", "nestedFormula")) : (_.log.error("Object " + e + " has unknown term type: " + e.termType), n = T.createTextNode("[unknownTermType:" + e.termType + "]"));
754
- return _.log.debug("contents: " + n.innerHTML), n;
781
+ } else e.termType === "Graph" ? (n = x.byName("dataContentPane").statementsAsTables(e.statements, T), n.setAttribute("class", "nestedFormula")) : (v.log.error("Object " + e + " has unknown term type: " + e.termType), n = E.createTextNode("[unknownTermType:" + e.termType + "]"));
782
+ return v.log.debug("contents: " + n.innerHTML), n;
755
783
  }
756
784
  return this.createTabURI = function() {
757
- T.getElementById("UserURI").value = T.URL + "?uri=" + T.getElementById("UserURI").value;
758
- }, this.UserInput.setSelected = K, this.UserInput.deselectAll = q, this.UserInput.views = $, this.outlineExpand = Z, this;
785
+ E.getElementById("UserURI").value = E.URL + "?uri=" + E.getElementById("UserURI").value;
786
+ }, this.UserInput.setSelected = q, this.UserInput.deselectAll = J, this.UserInput.views = $, this.outlineExpand = Q, this;
759
787
  }
760
- export { w as default };
788
+ export { T as default, ee as dismissErrorStateOnClose };
761
789
 
762
790
  //# sourceMappingURL=manager2.esm.js.map