solid-ui 5.0.2-4 → 5.0.2-5

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 (265) hide show
  1. package/dist/acl/access-controller.cjs.js +1 -1
  2. package/dist/acl/access-controller.cjs.js.map +1 -1
  3. package/dist/acl/access-controller.esm.js +37 -37
  4. package/dist/acl/access-groups.cjs.js +2 -2
  5. package/dist/acl/access-groups.cjs.js.map +1 -1
  6. package/dist/acl/access-groups.esm.js +78 -78
  7. package/dist/acl/acl-control.cjs.js +1 -1
  8. package/dist/acl/acl-control.cjs.js.map +1 -1
  9. package/dist/acl/acl-control.esm.js +19 -19
  10. package/dist/acl/add-agent-buttons.cjs.js +1 -1
  11. package/dist/acl/add-agent-buttons.cjs.js.map +1 -1
  12. package/dist/acl/add-agent-buttons.esm.js +51 -51
  13. package/dist/chat/bookmarks.cjs.js +1 -1
  14. package/dist/chat/bookmarks.cjs.js.map +1 -1
  15. package/dist/chat/bookmarks.esm.js +44 -44
  16. package/dist/chat/bookmarks.esm.js.map +1 -1
  17. package/dist/chat/chatLogic.cjs.js +2 -2
  18. package/dist/chat/chatLogic.cjs.js.map +1 -1
  19. package/dist/chat/chatLogic.esm.js +54 -54
  20. package/dist/chat/dateFolder.cjs.js +1 -1
  21. package/dist/chat/dateFolder.cjs.js.map +1 -1
  22. package/dist/chat/dateFolder.esm.js +30 -30
  23. package/dist/chat/infinite.cjs.js +1 -1
  24. package/dist/chat/infinite.cjs.js.map +1 -1
  25. package/dist/chat/infinite.esm.js +49 -49
  26. package/dist/chat/keys.cjs.js +2 -2
  27. package/dist/chat/keys.cjs.js.map +1 -1
  28. package/dist/chat/keys.esm.js +17 -17
  29. package/dist/chat/message.cjs.js +4 -4
  30. package/dist/chat/message.cjs.js.map +1 -1
  31. package/dist/chat/message.esm.js +114 -114
  32. package/dist/chat/message.esm.js.map +1 -1
  33. package/dist/chat/messageTools.cjs.js +1 -1
  34. package/dist/chat/messageTools.cjs.js.map +1 -1
  35. package/dist/chat/messageTools.esm.js +51 -51
  36. package/dist/chunks/{ResourceActionsMenu-Bllpr4M5.js → ResourceActionsMenu-Bx7YWY3E.js} +29 -29
  37. package/dist/chunks/{ResourceActionsMenu-Bllpr4M5.js.map → ResourceActionsMenu-Bx7YWY3E.js.map} +1 -1
  38. package/dist/chunks/{access-control-modal-CwmY_Dod.js → access-control-modal-B1mFFIyz.js} +165 -165
  39. package/dist/chunks/{access-control-modal-CwmY_Dod.js.map → access-control-modal-B1mFFIyz.js.map} +1 -1
  40. package/dist/chunks/{account-CoHPKKDu.js → account-DWmMJre6.js} +22 -22
  41. package/dist/chunks/{account-CoHPKKDu.js.map → account-DWmMJre6.js.map} +1 -1
  42. package/dist/chunks/{auth-CocCqS1p.js → auth-EK-iYNYZ.js} +37 -37
  43. package/dist/chunks/{auth-CocCqS1p.js.map → auth-EK-iYNYZ.js.map} +1 -1
  44. package/dist/chunks/{avatar-sNdKdWVO.js → avatar-BBgvMlqv.js} +13 -13
  45. package/dist/chunks/{avatar-sNdKdWVO.js.map → avatar-BBgvMlqv.js.map} +1 -1
  46. package/dist/chunks/{combobox-fSTp9qoT.js → combobox-DS6byaf1.js} +3 -3
  47. package/dist/chunks/{combobox-fSTp9qoT.js.map → combobox-DS6byaf1.js.map} +1 -1
  48. package/dist/chunks/{error-state-BD4_Wrkz.js → error-state-jV9dlFX2.js} +2 -2
  49. package/dist/chunks/{error-state-BD4_Wrkz.js.map → error-state-jV9dlFX2.js.map} +1 -1
  50. package/dist/chunks/{file-explorer-header-D0TebSYR.js → file-explorer-header-Djp_eFuT.js} +50 -50
  51. package/dist/chunks/{file-explorer-header-D0TebSYR.js.map → file-explorer-header-Djp_eFuT.js.map} +1 -1
  52. package/dist/chunks/{guard-BOicu9dt.js → guard-SxVT1xr4.js} +13 -13
  53. package/dist/chunks/{guard-BOicu9dt.js.map → guard-SxVT1xr4.js.map} +1 -1
  54. package/dist/chunks/{index.esm-C9oV3H3X.js → index.esm-BQrkxchZ.js} +2 -2
  55. package/dist/chunks/{index.esm-C9oV3H3X.js.map → index.esm-BQrkxchZ.js.map} +1 -1
  56. package/dist/chunks/{jsonld-D-TE94B0.js → jsonld-C6IOQ1Tg.js} +2 -2
  57. package/dist/chunks/{jsonld-D-TE94B0.js.map → jsonld-C6IOQ1Tg.js.map} +1 -1
  58. package/dist/chunks/{login-button-clTw_9tX.js → login-button-Dd0rwZJk.js} +11 -11
  59. package/dist/chunks/{login-button-clTw_9tX.js.map → login-button-Dd0rwZJk.js.map} +1 -1
  60. package/dist/chunks/{logout-button-CP-Pz70O.js → logout-button-Da34Lrnq.js} +11 -11
  61. package/dist/chunks/{logout-button-CP-Pz70O.js.map → logout-button-Da34Lrnq.js.map} +1 -1
  62. package/dist/chunks/{menu-D0k2fkiE.js → menu-BNJU654v.js} +2 -2
  63. package/dist/chunks/{menu-D0k2fkiE.js.map → menu-BNJU654v.js.map} +1 -1
  64. package/dist/chunks/{provider-Cuv3Kp6G.js → provider-B3FoP2qW.js} +11 -11
  65. package/dist/chunks/{provider-Cuv3Kp6G.js.map → provider-B3FoP2qW.js.map} +1 -1
  66. package/dist/chunks/{rdf-form-DVmTw3RG.js → rdf-form-BkKDmFPD.js} +36 -36
  67. package/dist/chunks/{rdf-form-DVmTw3RG.js.map → rdf-form-BkKDmFPD.js.map} +1 -1
  68. package/dist/chunks/{rdf-input-CRYLK-27.js → rdf-input-BPePtqfS.js} +61 -61
  69. package/dist/chunks/{rdf-input-CRYLK-27.js.map → rdf-input-BPePtqfS.js.map} +1 -1
  70. package/dist/chunks/{signup-button-CexdMWj6.js → signup-button-DOInssOu.js} +11 -11
  71. package/dist/chunks/{signup-button-CexdMWj6.js.map → signup-button-DOInssOu.js.map} +1 -1
  72. package/dist/chunks/{solidLogicSingleton.esm-BXyHD7mn.js → solidLogicSingleton.esm-Bvt7E7Vl.js} +50 -29
  73. package/dist/chunks/solidLogicSingleton.esm-Bvt7E7Vl.js.map +1 -0
  74. package/dist/chunks/{src-DQgHAH3d.js → src-akaVfkuf.js} +1956 -1944
  75. package/dist/chunks/src-akaVfkuf.js.map +1 -0
  76. package/dist/chunks/{style-CXaw5EYi.js → style-Dlw9-wPn.js} +3 -3
  77. package/dist/chunks/{style-CXaw5EYi.js.map → style-Dlw9-wPn.js.map} +1 -1
  78. package/dist/chunks/{widgets-BBEQu0CS.js → widgets-B1hBVhRL.js} +309 -309
  79. package/dist/chunks/widgets-B1hBVhRL.js.map +1 -0
  80. package/dist/components/access-control-modal/AccessControlAddAccess.cjs.js +1 -1
  81. package/dist/components/access-control-modal/AccessControlAddAccess.esm.js +5 -5
  82. package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js +2 -2
  83. package/dist/components/access-control-modal/AccessControlGeneralAccess.cjs.js.map +1 -1
  84. package/dist/components/access-control-modal/AccessControlGeneralAccess.esm.js +12 -12
  85. package/dist/components/access-control-modal/AccessControlModal.cjs.js +2 -2
  86. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  87. package/dist/components/access-control-modal/AccessControlModal.esm.js +35 -35
  88. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  89. package/dist/components/access-control-modal/AccessControlSharedAccess.cjs.js +1 -1
  90. package/dist/components/access-control-modal/AccessControlSharedAccess.esm.js +2 -2
  91. package/dist/components/access-control-modal/accessTargetResolver.cjs.js +1 -1
  92. package/dist/components/access-control-modal/accessTargetResolver.cjs.js.map +1 -1
  93. package/dist/components/access-control-modal/accessTargetResolver.esm.js +21 -21
  94. package/dist/components/access-control-modal.js +1 -1
  95. package/dist/components/account/Account.cjs.js +1 -1
  96. package/dist/components/account/Account.esm.js +3 -3
  97. package/dist/components/account.js +1 -1
  98. package/dist/components/all.cjs.js +1 -1
  99. package/dist/components/all.esm.js +16 -16
  100. package/dist/components/avatar.js +1 -1
  101. package/dist/components/combobox/Combobox.cjs.js +1 -1
  102. package/dist/components/combobox/Combobox.esm.js +1 -1
  103. package/dist/components/combobox.js +1 -1
  104. package/dist/components/dialog/Dialog.cjs.js +2 -2
  105. package/dist/components/dialog/Dialog.cjs.js.map +1 -1
  106. package/dist/components/dialog/Dialog.esm.js +9 -9
  107. package/dist/components/dialog/Dialog.esm.js.map +1 -1
  108. package/dist/components/dialog-provider/DialogProvider.cjs.js +1 -1
  109. package/dist/components/dialog-provider/DialogProvider.cjs.js.map +1 -1
  110. package/dist/components/dialog-provider/DialogProvider.esm.js +6 -6
  111. package/dist/components/dialogs-root/DialogsRoot.cjs.js +2 -2
  112. package/dist/components/dialogs-root/DialogsRoot.cjs.js.map +1 -1
  113. package/dist/components/dialogs-root/DialogsRoot.esm.js +7 -7
  114. package/dist/components/error-state/ErrorState.cjs.js +1 -1
  115. package/dist/components/error-state/ErrorState.esm.js +1 -1
  116. package/dist/components/error-state.js +1 -1
  117. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +2 -2
  118. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
  119. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +10 -10
  120. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +1 -1
  121. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +5 -5
  122. package/dist/components/file-explorer-header.js +1 -1
  123. package/dist/components/guard.js +1 -1
  124. package/dist/components/login-button/LoginButton.cjs.js +1 -1
  125. package/dist/components/login-button/LoginButton.esm.js +1 -1
  126. package/dist/components/login-button.js +1 -1
  127. package/dist/components/login-modal/LoginModal.cjs.js +1 -1
  128. package/dist/components/login-modal/LoginModal.esm.js +2 -2
  129. package/dist/components/login-modal.js +1 -1
  130. package/dist/components/logout-button/LogoutButton.cjs.js +1 -1
  131. package/dist/components/logout-button/LogoutButton.esm.js +1 -1
  132. package/dist/components/logout-button.js +1 -1
  133. package/dist/components/menu/Menu.cjs.js +1 -1
  134. package/dist/components/menu/Menu.cjs.js.map +1 -1
  135. package/dist/components/menu/Menu.esm.js +1 -1
  136. package/dist/components/menu/Menu.esm.js.map +1 -1
  137. package/dist/components/menu.js +1 -1
  138. package/dist/components/provider.js +1 -1
  139. package/dist/components/rdf-form/RDFForm.cjs.js +3 -3
  140. package/dist/components/rdf-form/RDFForm.cjs.js.map +1 -1
  141. package/dist/components/rdf-form/RDFForm.esm.js +13 -13
  142. package/dist/components/rdf-form/RDFForm.esm.js.map +1 -1
  143. package/dist/components/rdf-form.js +1 -1
  144. package/dist/components/rdf-input/RDFInput.cjs.js +2 -2
  145. package/dist/components/rdf-input/RDFInput.cjs.js.map +1 -1
  146. package/dist/components/rdf-input/RDFInput.esm.js +4 -4
  147. package/dist/components/rdf-input/RDFInput.esm.js.map +1 -1
  148. package/dist/components/rdf-input.js +1 -1
  149. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +3 -3
  150. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  151. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +7 -7
  152. package/dist/components/resource-actions-menu.js +1 -1
  153. package/dist/components/select/Select.cjs.js +1 -1
  154. package/dist/components/select/Select.cjs.js.map +1 -1
  155. package/dist/components/select/Select.esm.js +1 -1
  156. package/dist/components/signup-button/SignupButton.cjs.js +1 -1
  157. package/dist/components/signup-button/SignupButton.esm.js +1 -1
  158. package/dist/components/signup-button.js +1 -1
  159. package/dist/components.js +21 -21
  160. package/dist/create/create.cjs.js +1 -1
  161. package/dist/create/create.cjs.js.map +1 -1
  162. package/dist/create/create.esm.js +23 -23
  163. package/dist/header/index.cjs.js +1 -1
  164. package/dist/header/index.cjs.js.map +1 -1
  165. package/dist/header/index.esm.js +53 -53
  166. package/dist/index.cjs.js +1 -1
  167. package/dist/index.cjs.js.map +1 -1
  168. package/dist/index.esm.js +20 -20
  169. package/dist/index.js +5 -5
  170. package/dist/lib/auth/SolidAuth.cjs.js +1 -1
  171. package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
  172. package/dist/lib/auth/SolidAuth.esm.js +8 -8
  173. package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
  174. package/dist/lib/code-editor/CodeEditor.cjs.js +1 -1
  175. package/dist/lib/code-editor/CodeEditor.cjs.js.map +1 -1
  176. package/dist/lib/code-editor/CodeEditor.d.ts.map +1 -1
  177. package/dist/lib/code-editor/CodeEditor.esm.js +34 -30
  178. package/dist/lib/code-editor/CodeEditor.esm.js.map +1 -1
  179. package/dist/lib/components/dialog-component/DialogComponent.cjs.js +1 -1
  180. package/dist/lib/components/dialog-component/DialogComponent.cjs.js.map +1 -1
  181. package/dist/lib/components/dialog-component/DialogComponent.esm.js +4 -4
  182. package/dist/lib/components/index.cjs.js +1 -1
  183. package/dist/lib/components/index.esm.js +3 -3
  184. package/dist/lib/dialogs/helpers.cjs.js +1 -1
  185. package/dist/lib/dialogs/helpers.cjs.js.map +1 -1
  186. package/dist/lib/dialogs/helpers.esm.js +4 -4
  187. package/dist/lib/file-explorer/relevant-panes.cjs.js +1 -1
  188. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -1
  189. package/dist/lib/file-explorer/relevant-panes.esm.js +8 -8
  190. package/dist/lib/messageArea.cjs.js +1 -1
  191. package/dist/lib/messageArea.cjs.js.map +1 -1
  192. package/dist/lib/messageArea.esm.js +27 -27
  193. package/dist/lib/pad.cjs.js +1 -1
  194. package/dist/lib/pad.cjs.js.map +1 -1
  195. package/dist/lib/pad.esm.js +15 -15
  196. package/dist/lib/participation.cjs.js +1 -1
  197. package/dist/lib/participation.cjs.js.map +1 -1
  198. package/dist/lib/participation.esm.js +59 -59
  199. package/dist/lib/preferences.cjs.js +1 -1
  200. package/dist/lib/preferences.cjs.js.map +1 -1
  201. package/dist/lib/preferences.esm.js +28 -28
  202. package/dist/lib/table.cjs.js +3 -3
  203. package/dist/lib/table.cjs.js.map +1 -1
  204. package/dist/lib/table.esm.js +123 -123
  205. package/dist/lib/table.esm.js.map +1 -1
  206. package/dist/lib/tabs.cjs.js +1 -1
  207. package/dist/lib/tabs.cjs.js.map +1 -1
  208. package/dist/lib/tabs.esm.js +16 -16
  209. package/dist/loader.js +11 -11
  210. package/dist/login/login.cjs.js +6 -6
  211. package/dist/login/login.cjs.js.map +1 -1
  212. package/dist/login/login.esm.js +142 -142
  213. package/dist/media/media-capture.cjs.js +1 -1
  214. package/dist/media/media-capture.cjs.js.map +1 -1
  215. package/dist/media/media-capture.esm.js +6 -6
  216. package/dist/solid-ui.js +18 -18
  217. package/dist/solid-ui.min.js +18 -18
  218. package/dist/solid-ui.min.js.map +1 -1
  219. package/dist/utils/index.cjs.js +1 -1
  220. package/dist/utils/index.cjs.js.map +1 -1
  221. package/dist/utils/index.esm.js +4 -4
  222. package/dist/utils/keyHelpers/accessData.cjs.js +1 -1
  223. package/dist/utils/keyHelpers/accessData.cjs.js.map +1 -1
  224. package/dist/utils/keyHelpers/accessData.esm.js +15 -15
  225. package/dist/utils/label.cjs.js +1 -1
  226. package/dist/utils/label.cjs.js.map +1 -1
  227. package/dist/utils/label.esm.js +4 -4
  228. package/dist/widgets/buttons.cjs.js +12 -12
  229. package/dist/widgets/buttons.cjs.js.map +1 -1
  230. package/dist/widgets/buttons.esm.js +179 -179
  231. package/dist/widgets/error.cjs.js +1 -1
  232. package/dist/widgets/error.cjs.js.map +1 -1
  233. package/dist/widgets/error.esm.js +5 -5
  234. package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js +1 -1
  235. package/dist/widgets/forms/autocomplete/autocompleteBar.cjs.js.map +1 -1
  236. package/dist/widgets/forms/autocomplete/autocompleteBar.esm.js +17 -17
  237. package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js +1 -1
  238. package/dist/widgets/forms/autocomplete/autocompleteField.cjs.js.map +1 -1
  239. package/dist/widgets/forms/autocomplete/autocompleteField.esm.js +23 -23
  240. package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js +1 -1
  241. package/dist/widgets/forms/autocomplete/autocompletePicker.cjs.js.map +1 -1
  242. package/dist/widgets/forms/autocomplete/autocompletePicker.esm.js +26 -26
  243. package/dist/widgets/forms/autocomplete/language.cjs.js +1 -1
  244. package/dist/widgets/forms/autocomplete/language.cjs.js.map +1 -1
  245. package/dist/widgets/forms/autocomplete/language.esm.js +9 -9
  246. package/dist/widgets/forms/autocomplete/publicData.cjs.js +5 -5
  247. package/dist/widgets/forms/autocomplete/publicData.cjs.js.map +1 -1
  248. package/dist/widgets/forms/autocomplete/publicData.esm.js +67 -67
  249. package/dist/widgets/forms/basic.cjs.js +1 -1
  250. package/dist/widgets/forms/basic.cjs.js.map +1 -1
  251. package/dist/widgets/forms/basic.esm.js +11 -11
  252. package/dist/widgets/forms.cjs.js +4 -4
  253. package/dist/widgets/forms.cjs.js.map +1 -1
  254. package/dist/widgets/forms.esm.js +561 -561
  255. package/dist/widgets/forms.esm.js.map +1 -1
  256. package/dist/widgets/index.cjs.js +1 -1
  257. package/dist/widgets/index.cjs.js.map +1 -1
  258. package/dist/widgets/index.esm.js +82 -82
  259. package/dist/widgets/peoplePicker.cjs.js +2 -2
  260. package/dist/widgets/peoplePicker.cjs.js.map +1 -1
  261. package/dist/widgets/peoplePicker.esm.js +82 -82
  262. package/package.json +3 -3
  263. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +0 -1
  264. package/dist/chunks/src-DQgHAH3d.js.map +0 -1
  265. package/dist/chunks/widgets-BBEQu0CS.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { B as e, D as t, E as n, G as r, I as i, J as a, K as o, M as s, P as c, R as l, T as u, V as d, W as f, q as p, t as m, y as h } from "./solidLogicSingleton.esm-BXyHD7mn.js";
2
- import { r as g, t as _ } from "./index.esm-C9oV3H3X.js";
3
- import { a as v, c as y, f as b, i as x, n as S, o as C, p as w, s as T, t as E, u as D } from "./style-CXaw5EYi.js";
1
+ import { B as e, D as t, E as n, G as r, I as i, J as a, K as o, M as s, P as c, R as l, T as u, V as d, W as f, q as p, t as m, y as h } from "./solidLogicSingleton.esm-Bvt7E7Vl.js";
2
+ import { a as g, c as _, f as v, i as y, n as b, o as x, p as S, s as C, t as w, u as T } from "./style-Dlw9-wPn.js";
3
+ import { r as E, t as D } from "./index.esm-BQrkxchZ.js";
4
4
  // src/lib/debug.ts
5
5
  function O(...e) {
6
6
  console.log(...e);
@@ -7944,9 +7944,9 @@ function I(e, t, n) {
7944
7944
  }, i = function(e) {
7945
7945
  e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "copy";
7946
7946
  }, a = function(e) {
7947
- e.preventDefault(), e.stopPropagation(), O("dragenter event dropEffect: " + e.dataTransfer.dropEffect), this.localStyle && (this.savedStyle ||= E.dragEvent), e.dataTransfer.dropEffect = "link", O("dragenter event dropEffect 2: " + e.dataTransfer.dropEffect);
7947
+ e.preventDefault(), e.stopPropagation(), O("dragenter event dropEffect: " + e.dataTransfer.dropEffect), this.localStyle && (this.savedStyle ||= w.dragEvent), e.dataTransfer.dropEffect = "link", O("dragenter event dropEffect 2: " + e.dataTransfer.dropEffect);
7948
7948
  }, o = function(e) {
7949
- e.stopPropagation(), O("dragleave event dropEffect: " + e.dataTransfer.dropEffect), this.localStyle = this.savedStyle ? this.savedStyle : E.dropEvent;
7949
+ e.stopPropagation(), O("dragleave event dropEffect: " + e.dataTransfer.dropEffect), this.localStyle = this.savedStyle ? this.savedStyle : w.dropEvent;
7950
7950
  }, s = function(e) {
7951
7951
  e.preventDefault && e.preventDefault(), e.stopPropagation && e.stopPropagation(), O("Drop event. dropEffect: " + e.dataTransfer.dropEffect), O("Drop event. types: " + (e.dataTransfer.types ? e.dataTransfer.types.join(", ") : "NOPE"));
7952
7952
  let i = null, a;
@@ -7967,7 +7967,7 @@ function I(e, t, n) {
7967
7967
  let t = a ? a.trim() : "";
7968
7968
  i === null && t && t.slice(0, 4) === "http" && (i = [t], O("Warning: Poor man's drop: using text for URI"));
7969
7969
  } else i = r(e.dataTransfer.getData("Text")), O("WARNING non-standard drop event: " + i[0]);
7970
- return O("Dropped URI list (2): " + i), i && t(i), this.localStyle = E.restoreStyle, !1;
7970
+ return O("Dropped URI list (2): " + i), i && t(i), this.localStyle = w.restoreStyle, !1;
7971
7971
  };
7972
7972
  (function(e) {
7973
7973
  e || O("@@@ addTargetListeners: ele " + e), e.addEventListener("dragover", i), e.addEventListener("dragenter", a), e.addEventListener("dragleave", o), e.addEventListener("drop", s);
@@ -8024,7 +8024,7 @@ function L(e, t, n, r) {
8024
8024
  let i = e.createElement("div"), a = r || t instanceof Error ? t : null;
8025
8025
  return a ? (console.error(`errorMessageBlock: ${a} at: ${a.stack || "??"}`, a), i.textContent = a.message) : i.textContent = t, i.appendChild(W(e, () => {
8026
8026
  i.parentNode && i.parentNode.removeChild(i);
8027
- })).style = E.errorCancelButton, i.setAttribute("style", E.errorMessageBlockStyle), i.style.backgroundColor = n || S.defaultErrorBackgroundColor, i;
8027
+ })).style = w.errorCancelButton, i.setAttribute("style", w.errorMessageBlockStyle), i.style.backgroundColor = n || b.defaultErrorBackgroundColor, i;
8028
8028
  }
8029
8029
  // src/lib/iconBase.ts
8030
8030
  var fe = "https://solidos.github.io/solid-ui/src", R = typeof module < "u" && module.scriptURI ? {
@@ -8259,7 +8259,7 @@ var Se = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdC
8259
8259
  e.addEventListener("click", t);
8260
8260
  }, Te = (e, t, n) => {
8261
8261
  let r = t.appendChild(e.createElement("div"));
8262
- r.setAttribute("style", E.imageDivStyle), r.appendChild(n), n.setAttribute("draggable", "false");
8262
+ r.setAttribute("style", w.imageDivStyle), r.appendChild(n), n.setAttribute("draggable", "false");
8263
8263
  }, Ee = class extends HTMLElement {
8264
8264
  constructor() {
8265
8265
  super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6m10 0l-9 9m3-9h6v6\"/></svg>";
@@ -8345,14 +8345,14 @@ function Re() {
8345
8345
  return Ie(/* @__PURE__ */ new Date(), "{Hours}:{Minutes}:{Seconds}.{Milliseconds}");
8346
8346
  }
8347
8347
  function ze(e, t) {
8348
- let n = g, r = function(e) {
8348
+ let n = E, r = function(e) {
8349
8349
  let t = n.any(e, h.vcard("fn")) || n.any(e, h.foaf("name")) || n.any(e, h.vcard("organization-name"));
8350
8350
  return t ? t.value : null;
8351
8351
  }, i = t.sameTerm(h.foaf("Agent")) ? "Everyone" : r(t);
8352
- if (e.textContent = i || D(t), !i && t.uri) {
8352
+ if (e.textContent = i || T(t), !i && t.uri) {
8353
8353
  if (!n.fetcher) throw Error("kb has no fetcher");
8354
8354
  n.fetcher.nowOrWhenFetched(t.doc(), void 0, function(n) {
8355
- e.textContent = r(t) || D(t);
8355
+ e.textContent = r(t) || T(t);
8356
8356
  });
8357
8357
  }
8358
8358
  }
@@ -8396,16 +8396,16 @@ function Ue(e) {
8396
8396
  return typeof e != "string" && e.uri ? e.uri.split("/").length === 4 && !e.uri.split("/")[1] && !e.uri.split("/")[3] ? t + "noun_15177.svg" : e.uri.startsWith("message:") || e.uri.startsWith("mid:") ? t + "noun_480183.svg" : e.uri.startsWith("mailto:") ? t + "noun_567486.svg" : e.uri.startsWith("https:") && e.uri.indexOf("#") < 0 ? He(e) + "favicon.ico" : null : t + "noun_10636_grey.svg";
8397
8397
  }
8398
8398
  function We(e) {
8399
- let t = g, n = V;
8399
+ let t = E, n = V;
8400
8400
  if (e.sameTerm(h.foaf("Agent")) || e.sameTerm(h.rdf("Resource"))) return n + "noun_98053.svg";
8401
8401
  let r = t.any(e, h.sioc("avatar")) || t.any(e, h.foaf("img")) || t.any(e, h.vcard("logo")) || t.any(e, h.vcard("hasPhoto")) || t.any(e, h.vcard("photo")) || t.any(e, h.foaf("depiction"));
8402
8402
  return r ? r.uri : null;
8403
8403
  }
8404
8404
  function Ge(e, t, n) {
8405
- let r = g, i = We(t);
8405
+ let r = E, i = We(t);
8406
8406
  if (i) return e.setAttribute("src", i), !0;
8407
8407
  let a = n[t.uri];
8408
- if (a) return e.setAttribute("src", a), e.style = E.classIconStyle, !0;
8408
+ if (a) return e.setAttribute("src", a), e.style = w.classIconStyle, !0;
8409
8409
  let o = Ue(t);
8410
8410
  if (o) return e.setAttribute("src", o), !0;
8411
8411
  let s = r.findTypeURIs(t);
@@ -8413,7 +8413,7 @@ function Ge(e, t, n) {
8413
8413
  return e.setAttribute("src", V + "noun_10636_grey.svg"), !1;
8414
8414
  }
8415
8415
  function Ke(e, t) {
8416
- let n = g, r = {};
8416
+ let n = E, r = {};
8417
8417
  for (let e in Ve) {
8418
8418
  let t = e.split(":")[0], n = e.split(":")[1], i = h[t](n), a = Ve[e];
8419
8419
  a.startsWith("data:") ? r[i.uri] = a : r[i.uri] = l(a, V);
@@ -8427,7 +8427,7 @@ function Ke(e, t) {
8427
8427
  }
8428
8428
  function qe(e, t) {
8429
8429
  let n = e.createElement("img");
8430
- if (n.style = E.iconStyle, n.setAttribute("src", V + (function(e) {
8430
+ if (n.style = w.iconStyle, n.setAttribute("src", V + (function(e) {
8431
8431
  if (!e.uri) return !1;
8432
8432
  let t = e.uri.split("/");
8433
8433
  return t.length === 3 || t.length === 4 && t[3] === "";
@@ -8448,7 +8448,7 @@ function Je(e, t, n, r, i) {
8448
8448
  i();
8449
8449
  }
8450
8450
  let s = e.createElement("div");
8451
- s.style.cssText = E.confirmPopupStyle, s.style.position = "absolute", s.style.top = "-1em", s.style.display = "grid", s.style.gridTemplateColumns = "auto auto";
8451
+ s.style.cssText = w.confirmPopupStyle, s.style.position = "absolute", s.style.top = "-1em", s.style.display = "grid", s.style.gridTemplateColumns = "auto auto";
8452
8452
  let c = e.createElement("div");
8453
8453
  c.style.gridColumn = "1/2", c.style.gridRow = "1";
8454
8454
  let l = e.createElement("div");
@@ -8456,11 +8456,11 @@ function Je(e, t, n, r, i) {
8456
8456
  let u = W(e, a);
8457
8457
  s.appendChild(u), u.style.gridColumn = "1", u.style.gridRow = "2";
8458
8458
  let d = s.appendChild(e.createElement("button"));
8459
- d.style.cssText = E.buttonStyle, d.style.gridRow = "2", d.style.gridColumn = "2", d.textContent = "Cancel";
8459
+ d.style.cssText = w.buttonStyle, d.style.gridRow = "2", d.style.gridColumn = "2", d.textContent = "Cancel";
8460
8460
  let f = U(e, R.iconBase + "noun_925021.svg", "Delete it");
8461
8461
  s.appendChild(f), f.style.gridRow = "1", f.style.gridColumn = "1";
8462
8462
  let p = s.appendChild(e.createElement("button"));
8463
- return p.style.cssText = E.buttonStyle, p.style.gridRow = "1", p.style.gridColumn = "2", p.textContent = n, s.appendChild(p), f.addEventListener("click", o), p.addEventListener("click", o), d.addEventListener("click", a), s;
8463
+ return p.style.cssText = w.buttonStyle, p.style.gridRow = "1", p.style.gridColumn = "2", p.textContent = n, s.appendChild(p), f.addEventListener("click", o), p.addEventListener("click", o), d.addEventListener("click", a), s;
8464
8464
  }
8465
8465
  function H(e, t, n, r, i) {
8466
8466
  function a() {
@@ -8495,7 +8495,7 @@ function H(e, t, n, r, i) {
8495
8495
  l.appendChild(u), i && (u.style.position = "static", u.style.top = "", Array.from(u.querySelectorAll("button")).find((e) => e.textContent === "Cancel")?.focus());
8496
8496
  }
8497
8497
  let o = V + "noun_2188_red.svg", s = e.createElement("img");
8498
- s.setAttribute("src", o), s.tabIndex = 0, s.setAttribute("role", "button"), s.setAttribute("style", E.smallButtonStyle), s.style.float = "right";
8498
+ s.setAttribute("src", o), s.tabIndex = 0, s.setAttribute("role", "button"), s.setAttribute("style", w.smallButtonStyle), s.style.float = "right";
8499
8499
  let c = "Remove this " + n;
8500
8500
  return s.title = c, s.setAttribute("aria-label", c), s.classList.add("hoverControlHide"), s.addEventListener("click", a), s.addEventListener("keydown", (e) => {
8501
8501
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s.click());
@@ -8508,12 +8508,12 @@ function U(e, t, n, r, i = {
8508
8508
  let a = e.createElement("button");
8509
8509
  if (a.setAttribute("type", "button"), t) {
8510
8510
  let r = a.appendChild(e.createElement("img"));
8511
- r.setAttribute("src", t), r.setAttribute("style", "width: 2em; height: 2em;"), r.title = n, a.setAttribute("style", E.buttonStyle);
8511
+ r.setAttribute("src", t), r.setAttribute("style", "width: 2em; height: 2em;"), r.title = n, a.setAttribute("style", w.buttonStyle);
8512
8512
  } else a.textContent = n.toLocaleUpperCase(), a.onmouseover = function() {
8513
- i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", E.secondaryButtonNoBorderHover) : a.setAttribute("style", E.secondaryButtonHover) : i.needsBorder ? a.setAttribute("style", E.primaryButtonNoBorderHover) : a.setAttribute("style", E.primaryButtonHover);
8513
+ i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", w.secondaryButtonNoBorderHover) : a.setAttribute("style", w.secondaryButtonHover) : i.needsBorder ? a.setAttribute("style", w.primaryButtonNoBorderHover) : a.setAttribute("style", w.primaryButtonHover);
8514
8514
  }, a.onmouseout = function() {
8515
- i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", E.secondaryButtonNoBorder) : a.setAttribute("style", E.secondaryButton) : i.needsBorder ? a.setAttribute("style", E.primaryButtonNoBorder) : a.setAttribute("style", E.primaryButton);
8516
- }, i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", E.secondaryButtonNoBorder) : a.setAttribute("style", E.secondaryButton) : i.needsBorder ? a.setAttribute("style", E.primaryButtonNoBorder) : a.setAttribute("style", E.primaryButton);
8515
+ i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", w.secondaryButtonNoBorder) : a.setAttribute("style", w.secondaryButton) : i.needsBorder ? a.setAttribute("style", w.primaryButtonNoBorder) : a.setAttribute("style", w.primaryButton);
8516
+ }, i.buttonColor === "Secondary" ? i.needsBorder ? a.setAttribute("style", w.secondaryButtonNoBorder) : a.setAttribute("style", w.secondaryButton) : i.needsBorder ? a.setAttribute("style", w.primaryButtonNoBorder) : a.setAttribute("style", w.primaryButton);
8517
8517
  return r && a.addEventListener("click", r, !1), a;
8518
8518
  }
8519
8519
  function W(e, t) {
@@ -8526,11 +8526,11 @@ function Ye(e, t) {
8526
8526
  function Xe(e, t, n, r, i, a) {
8527
8527
  return new Promise(function(t, o) {
8528
8528
  let s = e.createElement("div");
8529
- r ||= h.foaf("name"), a ||= i ? D(i) : " ";
8530
- let c = a + " " + D(r) + ": ";
8529
+ r ||= h.foaf("name"), a ||= i ? T(i) : " ";
8530
+ let c = a + " " + T(r) + ": ";
8531
8531
  s.appendChild(e.createElement("p")).textContent = c;
8532
8532
  let l = e.createElement("input");
8533
- l.setAttribute("type", "text"), l.setAttribute("size", "100"), l.setAttribute("maxLength", "2048"), l.setAttribute("style", E.textInputStyle), l.select(), s.appendChild(l), n.appendChild(s);
8533
+ l.setAttribute("type", "text"), l.setAttribute("size", "100"), l.setAttribute("maxLength", "2048"), l.setAttribute("style", w.textInputStyle), l.select(), s.appendChild(l), n.appendChild(s);
8534
8534
  function u() {
8535
8535
  s.parentNode.removeChild(s), t(l.value.trim());
8536
8536
  }
@@ -8572,11 +8572,11 @@ function $e(e, t, n, r) {
8572
8572
  }
8573
8573
  function et(e, t, n, r) {
8574
8574
  let i = t.appendChild(e.createElement("div"));
8575
- i.setAttribute("style", E.linkDivStyle), r.deleteFunction && H(e, i, r.noun || "one", r.deleteFunction, r.confirmationContainer), n.uri && (r.link !== !1 && Oe(e, i, n), ue(t, n));
8575
+ i.setAttribute("style", w.linkDivStyle), r.deleteFunction && H(e, i, r.noun || "one", r.deleteFunction, r.confirmationContainer), n.uri && (r.link !== !1 && Oe(e, i, n), ue(t, n));
8576
8576
  }
8577
8577
  function tt(e, t, n) {
8578
8578
  let r = e.createElement("div");
8579
- return r.setAttribute("style", E.renderAsDivStyle), n ||= {}, Te(e, r, n.image || qe(e, t)), $e(e, r, n.title, t), et(e, r, t, n), n.clickable && n.onClickFunction && we(r, n.onClickFunction), n.wrapInATR ? Ce(e, r, t) : r;
8579
+ return r.setAttribute("style", w.renderAsDivStyle), n ||= {}, Te(e, r, n.image || qe(e, t)), $e(e, r, n.title, t), et(e, r, t, n), n.clickable && n.onClickFunction && we(r, n.onClickFunction), n.wrapInATR ? Ce(e, r, t) : r;
8580
8580
  }
8581
8581
  function nt(e) {
8582
8582
  if (e.refresh) e.refresh();
@@ -8584,27 +8584,27 @@ function nt(e) {
8584
8584
  }
8585
8585
  function rt(e, r, i, a = {}) {
8586
8586
  let o = /* @__PURE__ */ new Set(), s = !!(a.renderSupportingInfo || a.renderNameSuffix), c = a.refreshOnDocumentLoad ?? !0, l = function(e) {
8587
- let n = x.updater;
8587
+ let n = b.updater;
8588
8588
  if (!n) throw Error("kb has no updater");
8589
- return new Promise((i) => n.update(t(r, y, e, m), [], function(e, t, n, r) {
8589
+ return new Promise((i) => n.update(t(r, v, e, m), [], function(e, t, n, r) {
8590
8590
  t ? d() : Me(void 0, "Error deleting one: " + n), i();
8591
8591
  }));
8592
8592
  };
8593
8593
  function u(t) {
8594
- let n = t, r = { noun: b };
8595
- if (r.renderSupportingInfo = a.renderSupportingInfo, r.renderNameSuffix = a.renderNameSuffix, r.confirmationContainer = a.confirmationContainer, s && c && t?.uri && x.fetcher) {
8596
- let e = t.doc(), n = e?.uri ? x.fetcher.requested?.[e.uri] : void 0, r = n !== "done" && n !== "failed";
8597
- e?.uri && r && !o.has(e.uri) && (o.add(e.uri), x.fetcher.nowOrWhenFetched(e, void 0, () => {
8594
+ let n = t, r = { noun: y };
8595
+ if (r.renderSupportingInfo = a.renderSupportingInfo, r.renderNameSuffix = a.renderNameSuffix, r.confirmationContainer = a.confirmationContainer, s && c && t?.uri && b.fetcher) {
8596
+ let e = t.doc(), n = e?.uri ? b.fetcher.requested?.[e.uri] : void 0, r = n !== "done" && n !== "failed";
8597
+ e?.uri && r && !o.has(e.uri) && (o.add(e.uri), b.fetcher.nowOrWhenFetched(e, void 0, () => {
8598
8598
  o.delete(e.uri), d();
8599
8599
  }));
8600
8600
  }
8601
- return _ && (r.deleteFunction = function() {
8601
+ return g && (r.deleteFunction = function() {
8602
8602
  return l(n);
8603
- }), Ze(e, y, t, r);
8603
+ }), Ze(e, v, t, r);
8604
8604
  }
8605
8605
  let d = function() {
8606
- let e = x.each(r, y);
8607
- e.sort(), T(E, e, u, s ? function(e, t) {
8606
+ let e = b.each(r, v);
8607
+ e.sort(), C(T, e, u, s ? function(e, t) {
8608
8608
  return u(t);
8609
8609
  } : void 0);
8610
8610
  };
@@ -8612,28 +8612,28 @@ function rt(e, r, i, a = {}) {
8612
8612
  let i = [];
8613
8613
  if (e.forEach(function(e) {
8614
8614
  let a = n(e);
8615
- O("Dropped on attachemnt " + e), i.push(t(r, y, a, m));
8616
- }), !x.updater) throw Error("kb has no updater");
8617
- x.updater.update([], i, function(e, t, n, r) {
8615
+ O("Dropped on attachemnt " + e), i.push(t(r, v, a, m));
8616
+ }), !b.updater) throw Error("kb has no updater");
8617
+ b.updater.update([], i, function(e, t, n, r) {
8618
8618
  t ? d() : Me(void 0, "Error adding one: " + n);
8619
8619
  });
8620
8620
  }
8621
8621
  function p(e) {
8622
- de(x.fetcher, e, a.uploadFolder?.uri, a.uploadFolder?.uri, function(e, n) {
8623
- let i = [t(r, y, x.sym(n), m)];
8624
- if (!x.updater) throw Error("kb has no updater");
8625
- x.updater.update([], i, function(e, t, n, r) {
8622
+ de(b.fetcher, e, a.uploadFolder?.uri, a.uploadFolder?.uri, function(e, n) {
8623
+ let i = [t(r, v, b.sym(n), m)];
8624
+ if (!b.updater) throw Error("kb has no updater");
8625
+ b.updater.update([], i, function(e, t, n, r) {
8626
8626
  t ? d() : Me(void 0, "Error adding link to uploaded file: " + n);
8627
8627
  });
8628
8628
  });
8629
8629
  }
8630
8630
  let m = a.doc || r.doc();
8631
8631
  a.modify === void 0 && (a.modify = !0);
8632
- let _ = a.modify, v = a.promptIcon || V + "noun_748003.svg", y = a.predicate || h.wf("attachment"), b = a.noun || "attachment", x = g, S = i.appendChild(e.createElement("table"));
8633
- S.setAttribute("style", "margin-top: 1em; margin-bottom: 1em;");
8634
- let C = S.appendChild(e.createElement("tr")), w = C.appendChild(e.createElement("td")), E = C.appendChild(e.createElement("td")).appendChild(e.createElement("table"));
8635
- if (E.appendChild(e.createElement("tr")), S.refresh = d, d(), _) {
8636
- let t = U(e, v, "Drop attachments here");
8632
+ let g = a.modify, _ = a.promptIcon || V + "noun_748003.svg", v = a.predicate || h.wf("attachment"), y = a.noun || "attachment", b = E, x = i.appendChild(e.createElement("table"));
8633
+ x.setAttribute("style", "margin-top: 1em; margin-bottom: 1em;");
8634
+ let S = x.appendChild(e.createElement("tr")), w = S.appendChild(e.createElement("td")), T = S.appendChild(e.createElement("td")).appendChild(e.createElement("table"));
8635
+ if (T.appendChild(e.createElement("tr")), x.refresh = d, d(), g) {
8636
+ let t = U(e, _, "Drop attachments here");
8637
8637
  w.appendChild(t);
8638
8638
  let n = a.uploadFolder ? p : null;
8639
8639
  I(t, f, n);
@@ -8643,14 +8643,14 @@ function rt(e, r, i, a = {}) {
8643
8643
  w.appendChild(t);
8644
8644
  }
8645
8645
  }
8646
- return S;
8646
+ return x;
8647
8647
  }
8648
8648
  function it(e) {
8649
8649
  e.preventDefault(), e.stopPropagation();
8650
- let t = v(e).getAttribute("href");
8650
+ let t = g(e).getAttribute("href");
8651
8651
  if (!t) return O("openHrefInOutlineMode: No href found!\n");
8652
8652
  let n = window.document;
8653
- n.outlineManager ? n.outlineManager.GotoSubject(g.sym(t), !0, void 0, !0, void 0) : window && window.panes && window.panes.getOutliner ? window.panes.getOutliner().GotoSubject(g.sym(t), !0, void 0, !0, void 0) : O("ERROR: Can't access outline manager in this config");
8653
+ n.outlineManager ? n.outlineManager.GotoSubject(E.sym(t), !0, void 0, !0, void 0) : window && window.panes && window.panes.getOutliner ? window.panes.getOutliner().GotoSubject(E.sym(t), !0, void 0, !0, void 0) : O("ERROR: Can't access outline manager in this config");
8654
8654
  }
8655
8655
  function at(e) {
8656
8656
  if (e.uri === void 0) return;
@@ -8664,15 +8664,15 @@ function at(e) {
8664
8664
  if (e < 0) return;
8665
8665
  t = t.slice(0, e);
8666
8666
  }
8667
- return g.sym("http://tabulator.org/wiki/annnotation/" + t);
8667
+ return E.sym("http://tabulator.org/wiki/annnotation/" + t);
8668
8668
  }
8669
8669
  function ot() {
8670
8670
  let e = {};
8671
- return g.statementsMatching(void 0, h.rdf("type"), void 0).forEach(function(t) {
8671
+ return E.statementsMatching(void 0, h.rdf("type"), void 0).forEach(function(t) {
8672
8672
  t.object.value && (e[t.object.value] = !0);
8673
- }), g.statementsMatching(void 0, h.rdfs("subClassOf"), void 0).forEach(function(t) {
8673
+ }), E.statementsMatching(void 0, h.rdfs("subClassOf"), void 0).forEach(function(t) {
8674
8674
  t.object.value && (e[t.object.value] = !0), t.subject.value && (e[t.subject.value] = !0);
8675
- }), g.each(void 0, h.rdf("type"), h.rdfs("Class")).forEach(function(t) {
8675
+ }), E.each(void 0, h.rdf("type"), h.rdfs("Class")).forEach(function(t) {
8676
8676
  t.value && (e[t.value] = !0);
8677
8677
  }), e;
8678
8678
  }
@@ -8684,11 +8684,11 @@ function st(e) {
8684
8684
  let t = c[e].toNT();
8685
8685
  !r[t] && !n[t] && (n[t] = !0, r[t] = !0, o++);
8686
8686
  }
8687
- return t.op = r, t.dp = n, w(`propertyTriage: ${i} non-lit, ${a} literal. ${o} unknown.`), t;
8687
+ return t.op = r, t.dp = n, S(`propertyTriage: ${i} non-lit, ${a} literal. ${o} unknown.`), t;
8688
8688
  }
8689
8689
  function ct(e, t) {
8690
8690
  let n = e.createElement("button");
8691
- return n.setAttribute("type", "button"), n.textContent = "Goto " + D(t), n.addEventListener("click", function(n) {
8691
+ return n.setAttribute("type", "button"), n.textContent = "Goto " + T(t), n.addEventListener("click", function(n) {
8692
8692
  e.outlineManager.GotoSubject(t, !0, void 0, !0, void 0);
8693
8693
  }, !0), n;
8694
8694
  }
@@ -8730,10 +8730,10 @@ function dt(e, t, n, r, i, a, o, s, c, l) {
8730
8730
  var G = {};
8731
8731
  function ft(e, t) {
8732
8732
  let n = e.createElement("div");
8733
- return n.textContent = D(t), n;
8733
+ return n.textContent = T(t), n;
8734
8734
  }
8735
8735
  function pt(e) {
8736
- let t = G.twoLine[e.uri], n = g;
8736
+ let t = G.twoLine[e.uri], n = E;
8737
8737
  if (t) return t;
8738
8738
  let r = n.findSuperClassesNT(e);
8739
8739
  for (let e in r) if (t = G.twoLine[n.fromNT(e).uri], t) return t;
@@ -8741,8 +8741,8 @@ function pt(e) {
8741
8741
  }
8742
8742
  function mt(e, t) {
8743
8743
  let n = "", r = function(e) {
8744
- let r = g.any(t, h.qu(e));
8745
- return r || (n += "@@ No value for " + e + "! "), r ? x(r.value) : "?";
8744
+ let r = E.any(t, h.qu(e));
8745
+ return r || (n += "@@ No value for " + e + "! "), r ? y(r.value) : "?";
8746
8746
  }, i = e.createElement("table");
8747
8747
  return i.innerHTML = `
8748
8748
  <tr>
@@ -8753,13 +8753,13 @@ function mt(e, t) {
8753
8753
  <td style = "text-align: right;">${r("amount")}</td>
8754
8754
  </tr>`, n && (i.innerHTML = `
8755
8755
  <tr>
8756
- <td><a href="${x(t.uri)}">${x(n)}</a></td>
8756
+ <td><a href="${y(t.uri)}">${y(n)}</a></td>
8757
8757
  </tr>`), i;
8758
8758
  }
8759
8759
  function ht(e, t) {
8760
8760
  let n = function(e) {
8761
- let n = g.any(t, e);
8762
- return n ? x(n.value) : "?";
8761
+ let n = E.any(t, e);
8762
+ return n ? y(n.value) : "?";
8763
8763
  }, r = e.createElement("table");
8764
8764
  return r.innerHTML = `
8765
8765
  <tr>
@@ -8787,7 +8787,7 @@ function yt(e, t) {
8787
8787
  audio: "http://purl.org/dc/dcmitype/Sound",
8788
8788
  image: "http://purl.org/dc/dcmitype/Image",
8789
8789
  video: "http://purl.org/dc/dcmitype/MovingImage"
8790
- }, r = t || "image", a = g.findTypeURIs(e), o = i(r + "/*").uri.split("*")[0];
8790
+ }, r = t || "image", a = E.findTypeURIs(e), o = i(r + "/*").uri.split("*")[0];
8791
8791
  for (let e in a) if (e.startsWith(o)) return !0;
8792
8792
  return n[r] in a;
8793
8793
  }
@@ -8866,14 +8866,14 @@ var xt = {
8866
8866
  uriPrefix: "mailto:",
8867
8867
  pattern: /^\s*.*@.*\..*\s*$/
8868
8868
  },
8869
- [h.ui("Group").uri]: { style: E.formGroupStyle },
8869
+ [h.ui("Group").uri]: { style: w.formGroupStyle },
8870
8870
  [h.ui("Comment").uri]: {
8871
8871
  element: "p",
8872
- style: E.commentStyle
8872
+ style: w.commentStyle
8873
8873
  },
8874
8874
  [h.ui("Heading").uri]: {
8875
8875
  element: "h3",
8876
- style: E.formHeadingStyle
8876
+ style: w.formHeadingStyle
8877
8877
  }
8878
8878
  }, St = m.store, K = {};
8879
8879
  function Ct(e) {
@@ -8883,7 +8883,7 @@ function Ct(e) {
8883
8883
  }
8884
8884
  function q(e, t) {
8885
8885
  let n = Ct(t), r = K[n];
8886
- return b("paneUtils: Going to implement field " + t + " of type " + n), r || function(e, r) {
8886
+ return v("paneUtils: Going to implement field " + t + " of type " + n), r || function(e, r) {
8887
8887
  let i = L(e, "No handler for field " + t + " of type " + n);
8888
8888
  return r && r.appendChild(i), i;
8889
8889
  };
@@ -8891,8 +8891,8 @@ function q(e, t) {
8891
8891
  // src/widgets/forms/formStyle.ts
8892
8892
  var wt = "https://www.w3.org/ns/css#";
8893
8893
  function Tt(e, t) {
8894
- let n = xt[Ct(t)] || {}, r = g.any(t, h.ui("style"));
8895
- r ? r.termType === "Literal" ? r && e.setAttribute("style", r.value) : g.statementsMatching(r, null, null, t.doc()).forEach((t) => {
8894
+ let n = xt[Ct(t)] || {}, r = E.any(t, h.ui("style"));
8895
+ r ? r.termType === "Literal" ? r && e.setAttribute("style", r.value) : E.statementsMatching(r, null, null, t.doc()).forEach((t) => {
8896
8896
  if (t.predicate.uri && t.predicate.uri.startsWith(wt)) {
8897
8897
  let n = t.predicate.uri.slice(26);
8898
8898
  try {
@@ -8908,13 +8908,13 @@ var J = m.store;
8908
8908
  function Et(e, t, n, r, i) {
8909
8909
  n.style.display = "flex", n.style.flexDirection = "row";
8910
8910
  let a = n.appendChild(e.createElement("div"));
8911
- a.style.width = S.formFieldNameBoxWidth;
8911
+ a.style.width = b.formFieldNameBoxWidth;
8912
8912
  let o = n.appendChild(e.createElement("div"));
8913
- return a.setAttribute("class", "formFieldName"), a.setAttribute("style", E.formFieldNameBoxStyle), o.setAttribute("class", "formFieldValue"), i ? a.appendChild(e.createTextNode(i)) : t.any(r, h.ui("property")) ? a.appendChild(Dt(e, t.any(r, h.ui("property")), r)) : (o.appendChild(L(e, "No property or label given for form field: " + r)), a.appendChild(e.createTextNode("???"))), o;
8913
+ return a.setAttribute("class", "formFieldName"), a.setAttribute("style", w.formFieldNameBoxStyle), o.setAttribute("class", "formFieldValue"), i ? a.appendChild(e.createTextNode(i)) : t.any(r, h.ui("property")) ? a.appendChild(Dt(e, t.any(r, h.ui("property")), r)) : (o.appendChild(L(e, "No property or label given for form field: " + r)), a.appendChild(e.createTextNode("???"))), o;
8914
8914
  }
8915
8915
  function Dt(e, t, n) {
8916
8916
  let r = J.any(n, h.ui("label"));
8917
- if (r ||= D(t, !0), t === void 0) return e.createTextNode("@@Internal error: undefined property");
8917
+ if (r ||= T(t, !0), t === void 0) return e.createTextNode("@@Internal error: undefined property");
8918
8918
  let i = e.createElement("a");
8919
8919
  return t.uri && i.setAttribute("href", t.uri), i.setAttribute("style", "color: #3B5998; text-decoration: none;"), i.textContent = r, i;
8920
8920
  }
@@ -8929,25 +8929,25 @@ function Y(e, n, r, i, a, o, s) {
8929
8929
  if (n && n.appendChild(u), !f) return u.appendChild(L(e, "Error: No property given for text field: " + a));
8930
8930
  let p = Et(e, c, u, a), m = c.anyJS(a, h.ui("suppressEmptyUneditable"), null, l), g = xt[Ct(a)];
8931
8931
  g === void 0 && (g = { style: "" });
8932
- let _ = g.style || "", v = E.textInputStyle + _, y = e.createElement("input");
8932
+ let _ = g.style || "", v = w.textInputStyle + _, y = e.createElement("input");
8933
8933
  y.style = v, p.appendChild(y), y.setAttribute("type", g.type ? g.type : "text");
8934
- let b = (y.getAttribute("type") || "").toLowerCase(), x = b === "date" || b === "datetime-local", C = c.anyJS(a, h.ui("size")) || S.textInputSize || 20;
8934
+ let x = (y.getAttribute("type") || "").toLowerCase(), S = x === "date" || x === "datetime-local", C = c.anyJS(a, h.ui("size")) || b.textInputSize || 20;
8935
8935
  y.setAttribute("size", C);
8936
- let w = c.any(a, h.ui("maxLength"));
8937
- y.setAttribute("maxLength", w ? "" + w : S.basicMaxLength), o ||= Ot(i, f, o);
8938
- let T = c.any(i, f, void 0, o);
8939
- if (T ||= c.any(a, h.ui("default")), T && T.value && g.uriPrefix ? y.value = decodeURIComponent(T.value.replace(g.uriPrefix, "")).replace(/ /g, "") : T &&
8936
+ let T = c.any(a, h.ui("maxLength"));
8937
+ y.setAttribute("maxLength", T ? "" + T : b.basicMaxLength), o ||= Ot(i, f, o);
8938
+ let E = c.any(i, f, void 0, o);
8939
+ if (E ||= c.any(a, h.ui("default")), E && E.value && g.uriPrefix ? y.value = decodeURIComponent(E.value.replace(g.uriPrefix, "")).replace(/ /g, "") : E &&
8940
8940
  /* istanbul ignore next */
8941
- (y.value = T.value || T.value || ""), y.setAttribute("style", v), !c.updater) throw Error("kb has no updater");
8941
+ (y.value = E.value || E.value || ""), y.setAttribute("style", v), !c.updater) throw Error("kb has no updater");
8942
8942
  return c.updater.editable(o.uri) ? (y.addEventListener("keyup", function(e) {
8943
8943
  g.pattern && y.setAttribute("style", v + (y.value.match(g.pattern) ? "color: green;" : "color: red;"));
8944
8944
  }, !0), y.addEventListener("change", function(n) {
8945
- if (x && e.activeElement === y) {
8945
+ if (S && e.activeElement === y) {
8946
8946
  y.dataset && (y.dataset.deferredChange = "true");
8947
8947
  return;
8948
8948
  }
8949
8949
  if (g.pattern && !y.value.match(g.pattern)) return;
8950
- let r = !x;
8950
+ let r = !S;
8951
8951
  r && (y.disabled = !0), y.setAttribute("style", v + "color: gray;");
8952
8952
  let a = c.statementsMatching(i, f), l;
8953
8953
  g.namedNode ? l = c.sym(y.value) : g.uriPrefix ? (l = encodeURIComponent(y.value.replace(/ /g, "")), l = c.sym(g.uriPrefix + y.value)) : l = g.dt ? new d(y.value.trim(), void 0, h.xsd(g.dt)) : new d(y.value);
@@ -8973,12 +8973,12 @@ function Y(e, n, r, i, a, o, s) {
8973
8973
  n ? (r && (y.disabled = !1), y.setAttribute("style", v)) : u.appendChild(L(e, i)), s(n, i);
8974
8974
  });
8975
8975
  }, !0), y.addEventListener("blur", function(e) {
8976
- if (x && y.dataset && y.dataset.deferredChange === "true") {
8976
+ if (S && y.dataset && y.dataset.deferredChange === "true") {
8977
8977
  delete y.dataset.deferredChange;
8978
8978
  let e = new Event("change", { bubbles: !0 });
8979
8979
  y.dispatchEvent(e);
8980
8980
  }
8981
- }, !0), u) : (y.readOnly = !0, y.style = E.textInputStyleUneditable + _, m && y.value === "" && (u.style.display = "none"), u);
8981
+ }, !0), u) : (y.readOnly = !0, y.style = w.textInputStyleUneditable + _, m && y.value === "" && (u.style.display = "none"), u);
8982
8982
  }
8983
8983
  // src/widgets/forms/autocomplete/language.ts
8984
8984
  var kt = /* @__PURE__ */ o({
@@ -9000,12 +9000,12 @@ function jt(e) {
9000
9000
  }
9001
9001
  async function Mt(e) {
9002
9002
  let t = e.doc();
9003
- await g.fetcher?.load(t);
9004
- let n = g.any(e, h.schema("knowsLanguage"), null, t);
9003
+ await E.fetcher?.load(t);
9004
+ let n = E.any(e, h.schema("knowsLanguage"), null, t);
9005
9005
  if (!n) return X;
9006
9006
  let r = [];
9007
9007
  return n.elements.forEach((e) => {
9008
- let n = g.any(e, h.solid("publicId"), null, t);
9008
+ let n = E.any(e, h.solid("publicId"), null, t);
9009
9009
  if (!n) {
9010
9010
  console.warn("getPreferredLanguages: No publiID of language.");
9011
9011
  return;
@@ -9019,7 +9019,7 @@ async function Mt(e) {
9019
9019
  }), r.length > 0 ? (console.log(` User knows languages with codes: "${r.join(",")}"`), jt(r)) : null;
9020
9020
  }
9021
9021
  async function Nt() {
9022
- let e = await _.currentUser();
9022
+ let e = await D.currentUser();
9023
9023
  if (e) {
9024
9024
  let t = await Mt(e);
9025
9025
  if (t) return t;
@@ -9089,11 +9089,11 @@ var Ft = /* @__PURE__ */ o({
9089
9089
  headers: new Headers({ Accept: "application/json" })
9090
9090
  }, Bt = {
9091
9091
  label: "ESCO",
9092
- logo: g.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),
9092
+ logo: E.sym("https://ec.europa.eu/esco/portal/static_resource2/images/logo/logo_en.gif"),
9093
9093
  searchByNameURI: "https://ec.europa.eu/esco/api/search?language=$(language)&type=occupation&text=$(name)"
9094
9094
  }, Vt = {
9095
9095
  label: "DBPedia",
9096
- logo: g.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),
9096
+ logo: E.sym("https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/DBpediaLogo.svg/263px-DBpediaLogo.svg.png"),
9097
9097
  searchByNameQuery: "select distinct ?subject, ?name where {\n ?subject a $(targetClass); rdfs:label ?name\n FILTER regex(?name, \"$(name)\", \"i\")\n } LIMIT $(limit)",
9098
9098
  endpoint: "https://dbpedia.org/sparql/"
9099
9099
  }, Ht = { AcademicInsitution: "http://umbel.org/umbel/rc/EducationalOrganization" }, Ut = {
@@ -9106,7 +9106,7 @@ var Ft = /* @__PURE__ */ o({
9106
9106
  }, Wt = {
9107
9107
  label: "WikiData",
9108
9108
  limit: 3e3,
9109
- logo: g.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),
9109
+ logo: E.sym("https://www.wikimedia.org/static/images/project-logos/wikidatawiki.png"),
9110
9110
  endpoint: "https://query.wikidata.org/sparql",
9111
9111
  searchByNameQuery: "SELECT ?subject ?name\n WHERE {\n ?klass wdt:P279* $(targetClass) .\n ?subject wdt:P31 ?klass .\n ?subject rdfs:label ?name.\n FILTER regex(?name, \"$(name)\", \"i\")\n } LIMIT $(limit) ",
9112
9112
  insitituteDetailsQuery: "CONSTRUCT\n{ wd:Q49108 schema:name ?itemLabel;\n schema:logo ?logo;\n schema:logo ?sealImage;\n schema:subOrganization ?subsidiary .\n ?subsidiary schema:name ?subsidiaryLabel .\n}\nWHERE\n{\n wd:Q49108 # rdfs:label ?itemLabel ;\n wdt:P154 ?logo;\n wdt:P158 ?sealImage ;\n wdt:P355 ?subsidiary .\n # ?subsidiary rdfs:label ?subsidiaryLabel .\n\n SERVICE wikibase:label { bd:serviceParam wikibase:language \"[AUTO_LANGUAGE], fr\". }\n}"
@@ -9133,7 +9133,7 @@ var Ft = /* @__PURE__ */ o({
9133
9133
  };
9134
9134
  function qt(e) {
9135
9135
  let t = e.type.toLowerCase();
9136
- if (t === "uri" || t === "iri") return g.sym(e.value);
9136
+ if (t === "uri" || t === "iri") return E.sym(e.value);
9137
9137
  if (t === "literal") return e["xml:lang"] ? new d(e.value, e["xml:lang"]) : new d(e.value);
9138
9138
  throw Error(`bindingToTerm: Unexpected type "${e.type}" in sparql binding}`);
9139
9139
  }
@@ -9186,7 +9186,7 @@ async function Xt(e, t, n) {
9186
9186
  if (!n.searchByNameURI) throw Error("Missing queryTarget.searchByNameURI on queryESCODataByName");
9187
9187
  let r = n.limit || 200, i = n.searchByNameURI.replace("$(name)", e).replace("$(limit)", "" + r).replace("$(targetClass)", t.toNT());
9188
9188
  O("Querying ESCO data - uri: " + i);
9189
- let a = (await g.fetcher?.webOperation("GET", i, zt))?.responseText || "";
9189
+ let a = (await E.fetcher?.webOperation("GET", i, zt))?.responseText || "";
9190
9190
  if (O(" Query result text" + a.slice(0, 500) + "..."), a.length === 0) throw Error("Wot no text back from ESCO query " + i);
9191
9191
  let o = JSON.parse(a);
9192
9192
  return O(" ESCO Query result JSON" + JSON.stringify(o, null, 4).slice(0, 500) + "..."), Yt(o);
@@ -9212,7 +9212,7 @@ async function Qt(e, t, n, r) {
9212
9212
  if (r.searchByNameURI) {
9213
9213
  let e = i(r.searchByNameURI), t;
9214
9214
  try {
9215
- t = await g.fetcher?.webOperation("GET", e, zt);
9215
+ t = await E.fetcher?.webOperation("GET", e, zt);
9216
9216
  } catch (t) {
9217
9217
  throw Error(`Exception when trying to fetch ${e} \n ${t}`);
9218
9218
  }
@@ -9236,7 +9236,7 @@ async function $t(e, t) {
9236
9236
  let a = {
9237
9237
  credentials: "omit",
9238
9238
  headers: i
9239
- }, o = (await g.fetcher?.webOperation("GET", r, a))?.responseText || "";
9239
+ }, o = (await E.fetcher?.webOperation("GET", r, a))?.responseText || "";
9240
9240
  if (o.length === 0) throw Error("No text back from query " + r);
9241
9241
  let s = Zt(o), c = JSON.parse(s);
9242
9242
  return O(" Query result JSON" + JSON.stringify(c, null, 4).slice(0, 100) + "..."), c.results.bindings;
@@ -9252,9 +9252,9 @@ async function en(e, t, n) {
9252
9252
  let o = {
9253
9253
  credentials: "omit",
9254
9254
  headers: a
9255
- }, c = (await g.fetcher?.webOperation("GET", i, o))?.responseText || "No response text?";
9255
+ }, c = (await E.fetcher?.webOperation("GET", i, o))?.responseText || "No response text?";
9256
9256
  if (O(" queryPublicDataConstruct result text:" + (c.length > 500 ? c.slice(0, 200) + " ... " + c.slice(-200) : c)), c.length === 0) throw Error("queryPublicDataConstruct: No text back from construct query:" + i);
9257
- s(c, g, t.uri, "text/turtle");
9257
+ s(c, E, t.uri, "text/turtle");
9258
9258
  }
9259
9259
  async function tn(e, t, n) {
9260
9260
  if (n.uri.startsWith("https://dbpedia.org/resource/")) return on(e, t, n);
@@ -9299,10 +9299,10 @@ async function un(e, t, n, r) {
9299
9299
  let n = A.appendChild(e.createElement("tr"));
9300
9300
  O(t);
9301
9301
  let r = Error(t);
9302
- n.appendChild(L(e, r, "pink")), E.setStyle(n, "autocompleteRowStyle"), n.style.padding = "1em";
9302
+ n.appendChild(L(e, r, "pink")), w.setStyle(n, "autocompleteRowStyle"), n.style.padding = "1em";
9303
9303
  }
9304
9304
  function a(e, n) {
9305
- O("Auto complete: finish! " + e), e.termType === "Literal" && t.queryParams.objectURIBase && (e = g.sym(t.queryParams.objectURIBase.value + e.value)), u(), r(e, n);
9305
+ O("Auto complete: finish! " + e), e.termType === "Literal" && t.queryParams.objectURIBase && (e = E.sym(t.queryParams.objectURIBase.value + e.value)), u(), r(e, n);
9306
9306
  }
9307
9307
  async function o(e, t) {
9308
9308
  n.acceptButton ? (n.acceptButton.disbaled = !1, Z(n.acceptButton, !0), M.value = t.value, D = t, k = e, O("Auto complete: name: " + t), O("Auto complete: waiting for accept " + e), u()) : (Z(n.cancelButton, !0), a(e, t));
@@ -9330,12 +9330,12 @@ async function un(e, t, n, r) {
9330
9330
  async function f(e, n) {
9331
9331
  let r;
9332
9332
  try {
9333
- r = await Qt(e, _, n || X, t.queryParams);
9333
+ r = await Qt(e, g, n || X, t.queryParams);
9334
9334
  } catch (e) {
9335
- i("Error querying db of organizations: " + e), b = !1;
9335
+ i("Error querying db of organizations: " + e), y = !1;
9336
9336
  return;
9337
9337
  }
9338
- return y = r.length < 200, C = y ? e : void 0, u(), Pt(r, n) || [];
9338
+ return v = r.length < 200, S = v ? e : void 0, u(), Pt(r, n) || [];
9339
9339
  }
9340
9340
  function p(e, t) {
9341
9341
  return (t || []).filter((t) => l(e, t.name.value));
@@ -9343,7 +9343,7 @@ async function un(e, t, n, r) {
9343
9343
  async function m() {
9344
9344
  function t(t) {
9345
9345
  let n = e.createElement("tr");
9346
- E.setStyle(n, "autocompleteRowStyle"), n.setAttribute("style", "padding: 0.3em;"), n.style.color = x ? "#080" : "#088", n.textContent = t.name.value;
9346
+ w.setStyle(n, "autocompleteRowStyle"), n.setAttribute("style", "padding: 0.3em;"), n.style.color = x ? "#080" : "#088", n.textContent = t.name.value;
9347
9347
  let r = qt(t.subject), i = qt(t.name);
9348
9348
  return n.addEventListener("click", async (e) => {
9349
9349
  O(" click row textContent: " + n.textContent), O(" click name: " + i.value), r && i && o(r, i);
@@ -9352,39 +9352,39 @@ async function un(e, t, n, r) {
9352
9352
  function n(e, t) {
9353
9353
  return t.name.value > e.name.value ? 1 : t.name.name < e.name.value ? -1 : 0;
9354
9354
  }
9355
- if (b) {
9355
+ if (y) {
9356
9356
  O(`Ignoring "${M.value}" because of lock `);
9357
9357
  return;
9358
9358
  }
9359
- O(`Setting lock at "${M.value}"`), b = !0;
9359
+ O(`Setting lock at "${M.value}"`), y = !0;
9360
9360
  let r = await Nt(), i = M.value.trim().toLowerCase();
9361
- if (i.length < sn) u(), w = cn;
9361
+ if (i.length < sn) u(), C = cn;
9362
9362
  else {
9363
- x && C && i.startsWith(C) || (O(` Querying database at "${i}" cf last "${C}".`), v = await f(i, r) || []);
9364
- let e = p(i, v);
9365
- y && e.length <= ln && (w = e.length), x = y && e.length <= w, O(` Filter:"${i}" lastBindings: ${v.length}, slimmed to ${e.length}; rows: ${w}, Enough? ${y}, All displayed? ${x}`);
9366
- let a = e.slice(0, w);
9363
+ x && S && i.startsWith(S) || (O(` Querying database at "${i}" cf last "${S}".`), _ = await f(i, r) || []);
9364
+ let e = p(i, _);
9365
+ v && e.length <= ln && (C = e.length), x = v && e.length <= C, O(` Filter:"${i}" lastBindings: ${_.length}, slimmed to ${e.length}; rows: ${C}, Enough? ${v}, All displayed? ${x}`);
9366
+ let a = e.slice(0, C);
9367
9367
  a.sort(n), u();
9368
9368
  for (let e of a) A.appendChild(t(e));
9369
9369
  e.length === 1 && o(qt(e[0].subject), qt(e[0].name));
9370
9370
  }
9371
- b = !1;
9371
+ y = !1;
9372
9372
  }
9373
9373
  function h() {
9374
- t.currentObject ? (M.value = t.currentName ? t.currentName.value : "??? wot no name for " + t.currentObject, D = t.currentName, C = t.currentName ? t.currentName.value : void 0, k = t.currentObject) : (M.value = "", C = void 0, k = void 0), n.deleteButton && Z(n.deleteButton, !!t.currentObject), n.acceptButton && Z(n.acceptButton, !1), n.editButton && Z(n.editButton, !0), n.cancelButton && Z(n.cancelButton, !1), b = !1, u();
9374
+ t.currentObject ? (M.value = t.currentName ? t.currentName.value : "??? wot no name for " + t.currentObject, D = t.currentName, S = t.currentName ? t.currentName.value : void 0, k = t.currentObject) : (M.value = "", S = void 0, k = void 0), n.deleteButton && Z(n.deleteButton, !!t.currentObject), n.acceptButton && Z(n.acceptButton, !1), n.editButton && Z(n.editButton, !0), n.cancelButton && Z(n.cancelButton, !1), y = !1, u();
9375
9375
  }
9376
- let _ = t.targetClass;
9377
- if (!_) throw Error("renderAutoComplete: missing targetClass");
9376
+ let g = t.targetClass;
9377
+ if (!g) throw Error("renderAutoComplete: missing targetClass");
9378
9378
  n.acceptButton && n.acceptButton.addEventListener("click", s, !1), n.cancelButton && n.cancelButton.addEventListener("click", c, !1);
9379
- let v, y = !1, b = !1, x = !1, C, w = cn, T = e.createElement("div"), D, k, A = T.appendChild(e.createElement("table"));
9379
+ let _, v = !1, y = !1, x = !1, S, C = cn, T = e.createElement("div"), D, k, A = T.appendChild(e.createElement("table"));
9380
9380
  A.setAttribute("data-testid", "autocomplete-table"), A.setAttribute("style", "max-width: 30em; margin: 0.5em;");
9381
9381
  let j = A.appendChild(e.createElement("tr"));
9382
- E.setStyle(j, "autocompleteRowStyle");
9382
+ w.setStyle(j, "autocompleteRowStyle");
9383
9383
  let M = j.appendChild(e.createElement("td")).appendChild(e.createElement("input"));
9384
9384
  M.setAttribute("type", "text"), h();
9385
- let N = t.size || S.textInputSize || 20;
9385
+ let N = t.size || b.textInputSize || 20;
9386
9386
  M.setAttribute("size", N), M.setAttribute("data-testid", "autocomplete-input");
9387
- let P = E.textInputStyle || "border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em";
9387
+ let P = w.textInputStyle || "border: 0.1em solid #444; border-radius: 0.5em; width: 100%; font-size: 100%; padding: 0.1em 0.6em";
9388
9388
  return M.setAttribute("style", P), M.addEventListener("keyup", function(e) {
9389
9389
  e.keyCode === 13 && s(e);
9390
9390
  }, !1), M.addEventListener("input", d), T;
@@ -9393,20 +9393,20 @@ async function un(e, t, n, r) {
9393
9393
  var dn = "Solid ID", fn = R.iconBase + "noun_34653_green.svg", pn = R.iconBase + "noun_Search_875351.svg", mn = R.iconBase + "noun_253504.svg";
9394
9394
  async function hn(e, t, n, r, i, a) {
9395
9395
  async function o(e, t) {
9396
- return r.permanent ? (Z(v, !0), Z(f, !1), Z(p, !1)) : c(), i(e, t);
9396
+ return r.permanent ? (Z(_, !0), Z(f, !1), Z(p, !1)) : c(), i(e, t);
9397
9397
  }
9398
9398
  async function s(n) {
9399
- let r = await Xe(e, g, C, h.vcard("url"), void 0, dn);
9399
+ let r = await Xe(e, E, S, h.vcard("url"), void 0, dn);
9400
9400
  if (r) return i(t, r);
9401
9401
  }
9402
9402
  function c() {
9403
- S &&= (C.removeChild(S), void 0);
9403
+ x &&= (S.removeChild(x), void 0);
9404
9404
  }
9405
9405
  async function l() {
9406
- S = e.createElement("div"), S.setAttribute("style", "display: flex; flex-flow: wrap;"), S.appendChild(await un(e, r, x, o)), S.appendChild(f), S.appendChild(p), S.appendChild(v), S.appendChild(m), C.appendChild(S);
9406
+ x = e.createElement("div"), x.setAttribute("style", "display: flex; flex-flow: wrap;"), x.appendChild(await un(e, r, b, o)), x.appendChild(f), x.appendChild(p), x.appendChild(_), x.appendChild(m), S.appendChild(x);
9407
9407
  }
9408
9408
  async function u(e) {
9409
- S ? (C.removeChild(S), S = void 0) : await l();
9409
+ x ? (S.removeChild(x), x = void 0) : await l();
9410
9410
  }
9411
9411
  async function d(e) {
9412
9412
  for (let n of e) await i(t, n);
@@ -9415,34 +9415,34 @@ async function hn(e, t, n, r, i, a) {
9415
9415
  f.setAttribute("data-testid", "accept-button");
9416
9416
  let p = W(e);
9417
9417
  p.setAttribute("data-testid", "cancel-button");
9418
- let m = e.createElement("div"), _ = H(e, m, r.targetClass ? D(r.targetClass) : "item", a);
9419
- _.setAttribute("data-testid", "delete-button");
9420
- let v = U(e, mn, "Edit", (e) => {
9421
- y = !y, b();
9418
+ let m = e.createElement("div"), g = H(e, m, r.targetClass ? T(r.targetClass) : "item", a);
9419
+ g.setAttribute("data-testid", "delete-button");
9420
+ let _ = U(e, mn, "Edit", (e) => {
9421
+ v = !v, y();
9422
9422
  });
9423
- v.setAttribute("data-testid", "edit-button");
9424
- let y = !0;
9425
- function b() {
9426
- y ? (Z(v, !1), Z(f, !1), Z(p, !1)) : (Z(v, !0), Z(f, !1), Z(p, !1));
9423
+ _.setAttribute("data-testid", "edit-button");
9424
+ let v = !0;
9425
+ function y() {
9426
+ v ? (Z(_, !1), Z(f, !1), Z(p, !1)) : (Z(_, !0), Z(f, !1), Z(p, !1));
9427
9427
  }
9428
- let x = {
9428
+ let b = {
9429
9429
  acceptButton: f,
9430
9430
  cancelButton: p,
9431
- editButton: v,
9432
- deleteButton: _
9433
- }, S, C = e.createElement("div");
9434
- return C.style.display = "flex", C.style.flexDirection = "row", (r.permanent || r.currentObject) && await l(), n.editable && (C.style.width = "100%", n.manualURIEntry && I(C.appendChild(U(e, fn, n.idNoun, s)), d, void 0), n.dbLookup && !r.currentObject && !r.permanent && C.appendChild(U(e, pn, n.idNoun, u))), b(), C;
9431
+ editButton: _,
9432
+ deleteButton: g
9433
+ }, x, S = e.createElement("div");
9434
+ return S.style.display = "flex", S.style.flexDirection = "row", (r.permanent || r.currentObject) && await l(), n.editable && (S.style.width = "100%", n.manualURIEntry && I(S.appendChild(U(e, fn, n.idNoun, s)), d, void 0), n.dbLookup && !r.currentObject && !r.permanent && S.appendChild(U(e, pn, n.idNoun, u))), y(), S;
9435
9435
  }
9436
9436
  // src/widgets/forms/autocomplete/autocompleteField.ts
9437
9437
  function gn(e, n, r, i, a, o, s) {
9438
9438
  async function c(n, r) {
9439
9439
  if (!r) throw Error("autocompleteField: No name set.");
9440
- let a = u.the(i, _, null, o);
9440
+ let a = u.the(i, g, null, o);
9441
9441
  if (a) {
9442
- let e = u.any(a, v, null, o);
9442
+ let e = u.any(a, _, null, o);
9443
9443
  if (a.equals(n) && e && e.sameTerm(r)) return;
9444
9444
  }
9445
- let c = a ? u.statementsMatching(i, _, a, o).concat(u.statementsMatching(a, v, null, o)) : [], l = [t(i, _, n, o), t(n, v, r, o)];
9445
+ let c = a ? u.statementsMatching(i, g, a, o).concat(u.statementsMatching(a, _, null, o)) : [], l = [t(i, g, n, o), t(n, _, r, o)];
9446
9446
  try {
9447
9447
  await u.updater?.updateMany(c, l);
9448
9448
  } catch (t) {
@@ -9452,12 +9452,12 @@ function gn(e, n, r, i, a, o, s) {
9452
9452
  s(!0, "");
9453
9453
  }
9454
9454
  async function l(t, n) {
9455
- let r = u.the(i, _, null, o);
9455
+ let r = u.the(i, g, null, o);
9456
9456
  if (!r) {
9457
9457
  s(!1, "NO data to elete"), f.appendChild(L(e, "Autocomplete delete: no old data!"));
9458
9458
  return;
9459
9459
  }
9460
- let a = u.statementsMatching(i, _, r, o).concat(u.statementsMatching(r, v, null, o)), c = [];
9460
+ let a = u.statementsMatching(i, g, r, o).concat(u.statementsMatching(r, _, null, o)), c = [];
9461
9461
  try {
9462
9462
  await u.updater?.updateMany(a, c);
9463
9463
  } catch (t) {
@@ -9468,42 +9468,42 @@ function gn(e, n, r, i, a, o, s) {
9468
9468
  s(!0, "");
9469
9469
  }
9470
9470
  if (i.termType !== "NamedNode") throw Error("Sorry this field only works on NamedNode subjects (for editable)");
9471
- let u = g, d = a.doc ? a.doc() : null, f = e.createElement("div");
9471
+ let u = E, d = a.doc ? a.doc() : null, f = e.createElement("div");
9472
9472
  n && n.appendChild(f);
9473
9473
  let p = e.createElement("div");
9474
- p.setAttribute("class", "formFieldName"), p.setAttribute("style", E.formFieldNameBoxStyle), f.appendChild(p);
9474
+ p.setAttribute("class", "formFieldName"), p.setAttribute("style", w.formFieldNameBoxStyle), f.appendChild(p);
9475
9475
  let m = e.createElement("div");
9476
9476
  m.setAttribute("class", "formFieldValue"), f.appendChild(m);
9477
- let _ = u.any(a, h.ui("property"));
9478
- if (!_) return f.appendChild(L(e, "Error: No property given for autocomplete field: " + a));
9479
- let v = u.any(a, h.ui("labelProperty")) || h.schema("name"), y = u.any(a, h.ui("dataSource"));
9480
- if (!y) return f.appendChild(L(e, "Error: No data source given for autocomplete field: " + a));
9481
- let b = {
9482
- label: u.anyJS(y, h.schema("name"), null, y.doc()),
9483
- logo: u.any(y, h.schema("logo"), null, y.doc())
9484
- }, x = u.any(a, h.ui("targetClass"), null, a.doc()) || u.any(y, h.ui("targetClass"), null, y.doc());
9485
- x && (b.targetClass = x), b.objectURIBase = u.any(y, h.ui("objectURIBase"), null, y.doc()) || void 0;
9486
- let S = u.anyJS(y, h.ui("endpoint"), null, y.doc());
9487
- if (S) {
9488
- if (b.endpoint = S, b.searchByNameQuery = u.anyJS(y, h.ui("searchByNameQuery"), null, y.doc()), !b.searchByNameQuery) return f.appendChild(L(e, "Error: No searchByNameQuery given for endpoint data Source: " + a));
9489
- b.insitituteDetailsQuery = u.anyJS(y, h.ui("insitituteDetailsQuery"), null, y.doc());
9477
+ let g = u.any(a, h.ui("property"));
9478
+ if (!g) return f.appendChild(L(e, "Error: No property given for autocomplete field: " + a));
9479
+ let _ = u.any(a, h.ui("labelProperty")) || h.schema("name"), v = u.any(a, h.ui("dataSource"));
9480
+ if (!v) return f.appendChild(L(e, "Error: No data source given for autocomplete field: " + a));
9481
+ let y = {
9482
+ label: u.anyJS(v, h.schema("name"), null, v.doc()),
9483
+ logo: u.any(v, h.schema("logo"), null, v.doc())
9484
+ }, b = u.any(a, h.ui("targetClass"), null, a.doc()) || u.any(v, h.ui("targetClass"), null, v.doc());
9485
+ b && (y.targetClass = b), y.objectURIBase = u.any(v, h.ui("objectURIBase"), null, v.doc()) || void 0;
9486
+ let x = u.anyJS(v, h.ui("endpoint"), null, v.doc());
9487
+ if (x) {
9488
+ if (y.endpoint = x, y.searchByNameQuery = u.anyJS(v, h.ui("searchByNameQuery"), null, v.doc()), !y.searchByNameQuery) return f.appendChild(L(e, "Error: No searchByNameQuery given for endpoint data Source: " + a));
9489
+ y.insitituteDetailsQuery = u.anyJS(v, h.ui("insitituteDetailsQuery"), null, v.doc());
9490
9490
  } else {
9491
- let t = u.anyJS(y, h.ui("searchByNameURI"));
9492
- if (!t) return f.appendChild(L(e, "Error: No searchByNameURI OR sparql endpoint given for dataSource: " + y));
9493
- b.searchByNameURI = t;
9491
+ let t = u.anyJS(v, h.ui("searchByNameURI"));
9492
+ if (!t) return f.appendChild(L(e, "Error: No searchByNameURI OR sparql endpoint given for dataSource: " + v));
9493
+ y.searchByNameURI = t;
9494
9494
  }
9495
- let C = u.anyJS(a, h.ui("suppressEmptyUneditable"), null, d), w = u.updater?.editable(o.uri), T = {
9495
+ let S = u.anyJS(a, h.ui("suppressEmptyUneditable"), null, d), C = u.updater?.editable(o.uri), T = {
9496
9496
  permanent: !0,
9497
- targetClass: b.targetClass,
9498
- queryParams: b
9497
+ targetClass: y.targetClass,
9498
+ queryParams: y
9499
9499
  };
9500
9500
  T.size = u.anyJS(a, h.ui("size"), null, d) || void 0;
9501
- let D = u.any(i, _, void 0, o);
9502
- if (D) T.currentObject = D, T.currentName = u.any(T.currentObject, v, null, o);
9503
- else if (D = u.any(a, h.ui("default")), D) T.currentObject = D, T.currentName = u.any(T.currentObject, v, null, o);
9504
- else if (C && !w) return f.style.display = "none", f;
9505
- return p.appendChild(Dt(e, _, a)), hn(e, i, {
9506
- editable: w,
9501
+ let D = u.any(i, g, void 0, o);
9502
+ if (D) T.currentObject = D, T.currentName = u.any(T.currentObject, _, null, o);
9503
+ else if (D = u.any(a, h.ui("default")), D) T.currentObject = D, T.currentName = u.any(T.currentObject, _, null, o);
9504
+ else if (S && !C) return f.style.display = "none", f;
9505
+ return p.appendChild(Dt(e, g, a)), hn(e, i, {
9506
+ editable: C,
9507
9507
  dbLookup: !0
9508
9508
  }, T, c, l).then((e) => {
9509
9509
  m.appendChild(e);
@@ -9803,7 +9803,7 @@ var _n = class {
9803
9803
  !t && this._domElements.optionsContainerList.insertAdjacentHTML("beforeend", e);
9804
9804
  } else t && t.parentNode && t.parentNode.removeChild(t);
9805
9805
  }
9806
- }, vn = "✓", yn = "✕", bn = "-", xn = g;
9806
+ }, vn = "✓", yn = "✕", bn = "-", xn = E;
9807
9807
  K[h.ui("AutocompleteField").uri] = gn;
9808
9808
  function Sn(e, t, n, r, i, a, o) {
9809
9809
  let s = a.children;
@@ -9825,7 +9825,7 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9825
9825
  u[l] = 1;
9826
9826
  let d = i.doc ? i.doc() : null, f = xn.any(i, c("weight"), null, d), p = f ? Number(f.value) : 1;
9827
9827
  if (p > 3 || p < 0) return s.appendChild(L(e, `Form Group weight ${p} should be 0-3`));
9828
- s.setAttribute("style", E.formGroupStyle[p]), s.style.display = "flex", s.style.flexDirection = "column", s.class = "form-weight-" + p;
9828
+ s.setAttribute("style", w.formGroupStyle[p]), s.style.display = "flex", s.style.flexDirection = "column", s.class = "form-weight-" + p;
9829
9829
  let m = xn.any(i, c("parts"), null, d), g;
9830
9830
  if (m ? g = m.elements : (m = xn.each(i, c("part"), null, d), g = An(m)), !m) return s.appendChild(L(e, "No parts to form! "));
9831
9831
  for (let t = 0; t < g.length; t++) {
@@ -9839,7 +9839,7 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9839
9839
  }
9840
9840
  return s;
9841
9841
  }, K[h.ui("Options").uri] = function(e, t, r, i, a, o, s) {
9842
- let c = g, l = e.createElement("div"), u = a.doc ? a.doc() : null, d = h.ui;
9842
+ let c = E, l = e.createElement("div"), u = a.doc ? a.doc() : null, d = h.ui;
9843
9843
  t && t.appendChild(l);
9844
9844
  let f = c.any(a, d("dependingOn"));
9845
9845
  f ||= h.rdf("type");
@@ -9867,28 +9867,28 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9867
9867
  }
9868
9868
  async function d() {
9869
9869
  let e = $(s);
9870
- if (w) ee(), P.elements.push(e), await te();
9870
+ if (C) ee(), P.elements.push(e), await te();
9871
9871
  else {
9872
- let r = E ? [t(e, T, a, s)] : [t(a, T, e, s)];
9872
+ let r = D ? [t(e, w, a, s)] : [t(a, w, e, s)];
9873
9873
  try {
9874
9874
  await m.updater.update([], r);
9875
9875
  } catch (e) {
9876
9876
  let t = "Error adding to unordered multiple: " + e;
9877
- v.appendChild(L(n, t)), A(t);
9877
+ y.appendChild(L(n, t)), A(t);
9878
9878
  }
9879
9879
  ne();
9880
9880
  }
9881
9881
  }
9882
9882
  function f(e) {
9883
9883
  async function r() {
9884
- if (w) {
9884
+ if (C) {
9885
9885
  O("pre delete: " + u(P.elements));
9886
9886
  for (let t = 0; t < P.elements.length; t++) if (P.elements[t].sameTerm(e)) {
9887
9887
  P.elements.splice(t, 1), await te();
9888
9888
  return;
9889
9889
  }
9890
- } else if (m.holds(a, T, e, s)) {
9891
- let r = [t(a, T, e, s)];
9890
+ } else if (m.holds(a, w, e, s)) {
9891
+ let r = [t(a, w, e, s)];
9892
9892
  m.updater.update(r, [], function(e, t, r) {
9893
9893
  t ? N.removeChild(d) : N.appendChild(L(n, "Multiple: delete failed: " + r));
9894
9894
  });
@@ -9916,9 +9916,9 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9916
9916
  function c(t, n) {
9917
9917
  O(`Item done callback for item ${e.toString()}`), t || A(" Item done callback: Error: " + n), l(t, n);
9918
9918
  }
9919
- b("Multiple: render object: " + e);
9919
+ v("Multiple: render object: " + e);
9920
9920
  let d = q(n, M)(n, null, i, e, M, s, c);
9921
- if (d.subject = e, m.updater.editable(s.uri) && (H(n, d, k, r), w)) {
9921
+ if (d.subject = e, m.updater.editable(s.uri) && (H(n, d, k, r), C)) {
9922
9922
  let e = n.createElement("div");
9923
9923
  e.style.display = "grid", e.style.gridTemplateColumns = "auto 3em", e.style.gridTemplateRows = "50% 50%";
9924
9924
  let t = U(n, R.iconBase + "noun_1369237.svg", "Move Up", async (e) => o(e, !0)), r = U(n, R.iconBase + "noun_1369241.svg", "Move Down", async (e) => o(e, !1)), i = n.createElement("div");
@@ -9926,21 +9926,21 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9926
9926
  }
9927
9927
  return d;
9928
9928
  }
9929
- let p = R.iconBase + "noun_19460_green.svg", m = g, _ = o.doc ? o.doc() : null, v = n.createElement("div"), x = v, S = h.ui;
9930
- r && r.appendChild(v);
9931
- let C = m.any(o, S("ordered")), w = C ? c.toJS(C) : !1, T = m.any(o, S("property")), E = m.anyJS(o, S("reverse"), null, _);
9932
- if (!T) return v.appendChild(L(n, "No property to multiple: " + o)), x;
9933
- let k = m.any(o, S("label"));
9934
- k ||= D(T);
9935
- let j = m.any(o, S("min"));
9929
+ let p = R.iconBase + "noun_19460_green.svg", m = E, g = o.doc ? o.doc() : null, y = n.createElement("div"), b = y, x = h.ui;
9930
+ r && r.appendChild(y);
9931
+ let S = m.any(o, x("ordered")), C = S ? c.toJS(S) : !1, w = m.any(o, x("property")), D = m.anyJS(o, x("reverse"), null, g);
9932
+ if (!w) return y.appendChild(L(n, "No property to multiple: " + o)), b;
9933
+ let k = m.any(o, x("label"));
9934
+ k ||= T(w);
9935
+ let j = m.any(o, x("min"));
9936
9936
  j = j ? 0 + j.value : 0;
9937
- let M = m.any(o, S("part"));
9938
- if (!M) return v.appendChild(L(n, "No part to multiple: " + o)), x;
9939
- let N = v.appendChild(n.createElement("div"));
9937
+ let M = m.any(o, x("part"));
9938
+ if (!M) return y.appendChild(L(n, "No part to multiple: " + o)), b;
9939
+ let N = y.appendChild(n.createElement("div"));
9940
9940
  N.style.display = "flex", N.style.flexDirection = "column";
9941
9941
  let P, F;
9942
- if (F = E ? m.any(null, T, a, s) : m.any(a, T, null, s), w ? (P = E ? m.any(null, T, a, s) : m.any(a, T, null, s), F = P ? P.elements : []) : (F = E ? m.each(null, T, a, s) : m.each(a, T, null, s), P = null), m.updater.editable(s.uri)) {
9943
- let e = v.appendChild(n.createElement("div"));
9942
+ if (F = D ? m.any(null, w, a, s) : m.any(a, w, null, s), C ? (P = D ? m.any(null, w, a, s) : m.any(a, w, null, s), F = P ? P.elements : []) : (F = D ? m.each(null, w, a, s) : m.each(a, w, null, s), P = null), m.updater.editable(s.uri)) {
9943
+ let e = y.appendChild(n.createElement("div"));
9944
9944
  e.style.padding = "0.5em";
9945
9945
  let t = e.appendChild(n.createElement("img"));
9946
9946
  t.setAttribute("src", p), t.setAttribute("style", "margin: 0.2em; width: 1.5em; height:1.5em"), t.title = "Click to add another " + k;
@@ -9950,25 +9950,25 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9950
9950
  }, !0), e.appendChild(r);
9951
9951
  }
9952
9952
  function ee() {
9953
- P || (P = new e(), E ? m.add(P, T, a, s) : m.add(a, T, P, s));
9953
+ P || (P = new e(), D ? m.add(P, w, a, s) : m.add(a, w, P, s));
9954
9954
  }
9955
9955
  async function te() {
9956
9956
  O("save list: " + u(P.elements)), ee();
9957
9957
  try {
9958
9958
  await m.fetcher.putBack(s);
9959
9959
  } catch (e) {
9960
- v.appendChild(L(n, "Error trying to put back a list: " + e));
9960
+ y.appendChild(L(n, "Error trying to put back a list: " + e));
9961
9961
  return;
9962
9962
  }
9963
9963
  ne();
9964
9964
  }
9965
9965
  function ne() {
9966
9966
  let e;
9967
- if (w) {
9968
- let t = E ? m.the(null, T, a, s) : m.the(a, T, null, s);
9967
+ if (C) {
9968
+ let t = D ? m.the(null, w, a, s) : m.the(a, w, null, s);
9969
9969
  e = t ? t.elements : [];
9970
- } else e = E ? m.each(null, T, a, s) : m.each(a, T, null, s), e.sort();
9971
- y(N, e, f);
9970
+ } else e = D ? m.each(null, w, a, s) : m.each(a, w, null, s), e.sort();
9971
+ _(N, e, f);
9972
9972
  }
9973
9973
  N.refresh = ne, ne();
9974
9974
  async function re() {
@@ -9982,42 +9982,42 @@ K[h.ui("Form").uri] = K[h.ui("Group").uri] = function(e, t, n, r, i, a, o) {
9982
9982
  O(" Multiple render: async stuff ok");
9983
9983
  }, (e) => {
9984
9984
  A(" Multiple render: async stuff fails. #### ", e);
9985
- }), x;
9985
+ }), b;
9986
9986
  }, K[h.ui("PhoneField").uri] = Y, K[h.ui("EmailField").uri] = Y, K[h.ui("ColorField").uri] = Y, K[h.ui("DateField").uri] = Y, K[h.ui("DateTimeField").uri] = Y, K[h.ui("TimeField").uri] = Y, K[h.ui("NumericField").uri] = Y, K[h.ui("IntegerField").uri] = Y, K[h.ui("DecimalField").uri] = Y, K[h.ui("FloatField").uri] = Y, K[h.ui("TextField").uri] = Y, K[h.ui("SingleLineTextField").uri] = Y, K[h.ui("NamedNodeURIField").uri] = Y, K[h.ui("MultiLineTextField").uri] = function(e, t, n, r, i, a, o) {
9987
- let s = h.ui, c = g, l = i.doc ? i.doc() : null, u = c.any(i, s("property"));
9987
+ let s = h.ui, c = E, l = i.doc ? i.doc() : null, u = c.any(i, s("property"));
9988
9988
  if (!u) return L(e, "No property to text field: " + i);
9989
9989
  let d = e.createElement("div");
9990
9990
  d.style.display = "flex", d.style.flexDirection = "row";
9991
9991
  let f = d.appendChild(e.createElement("div"));
9992
- f.style.width = S.formFieldNameBoxWidth;
9992
+ f.style.width = b.formFieldNameBoxWidth;
9993
9993
  let p = d.appendChild(e.createElement("div"));
9994
9994
  f.appendChild(Dt(e, u, i)), a = Ot(r, u, a);
9995
- let m = c.anyJS(r, u, null, a) || "", _ = c.updater.editable(a.uri), v = i && c.anyJS(i, h.ui("suppressEmptyUneditable"), null, l);
9996
- !_ && v && m === "" && (d.style.display = "none");
9997
- let y = Pn(e, c, r, u, a, o);
9998
- return p.appendChild(y), t && t.appendChild(d), d;
9995
+ let m = c.anyJS(r, u, null, a) || "", g = c.updater.editable(a.uri), _ = i && c.anyJS(i, h.ui("suppressEmptyUneditable"), null, l);
9996
+ !g && _ && m === "" && (d.style.display = "none");
9997
+ let v = Pn(e, c, r, u, a, o);
9998
+ return p.appendChild(v), t && t.appendChild(d), d;
9999
9999
  };
10000
10000
  function Cn(e, n, r, i, a, o, s, c) {
10001
- let l = h.ui, u = g, d = u.any(a, l("property"));
10001
+ let l = h.ui, u = E, d = u.any(a, l("property"));
10002
10002
  if (!d) {
10003
10003
  let t = L(e, "No property to boolean field: " + a);
10004
10004
  return n && n.appendChild(t), t;
10005
10005
  }
10006
10006
  let f = u.any(a, l("label"));
10007
- f ||= D(d, !0), o = Ot(i, d, o);
10007
+ f ||= T(d, !0), o = Ot(i, d, o);
10008
10008
  let p = u.any(i, d);
10009
10009
  p === void 0 && (p = !1);
10010
- let m = t(i, d, !0, o), _ = t(i, d, !1, o), v = zn(e, u, f, _, m, a, o, c);
10011
- return n && n.appendChild(v), v;
10010
+ let m = t(i, d, !0, o), g = t(i, d, !1, o), _ = zn(e, u, f, g, m, a, o, c);
10011
+ return n && n.appendChild(_), _;
10012
10012
  }
10013
10013
  K[h.ui("BooleanField").uri] = function(e, t, n, r, i, a, o) {
10014
10014
  return Cn(e, t, n, r, i, a, o, !1);
10015
10015
  }, K[h.ui("TristateField").uri] = function(e, t, n, r, i, a, o) {
10016
10016
  return Cn(e, t, n, r, i, a, o, !0);
10017
10017
  }, K[h.ui("Classifier").uri] = function(e, t, n, r, i, a, o) {
10018
- let s = g, c = h.ui, l = s.any(i, c("category"));
10018
+ let s = E, c = h.ui, l = s.any(i, c("category"));
10019
10019
  if (!l) return L(e, "No category for classifier: " + i);
10020
- b("Classifier: dataDoc=" + a);
10020
+ v("Classifier: dataDoc=" + a);
10021
10021
  let u = function(e, t) {
10022
10022
  return o(e || e, t);
10023
10023
  }, d = e.createElement("div");
@@ -10030,56 +10030,56 @@ K[h.ui("BooleanField").uri] = function(e, t, n, r, i, a, o) {
10030
10030
  if (m && m.querySelectorAll) {
10031
10031
  let e = m.querySelectorAll("select");
10032
10032
  e.length && !s.updater.editable(a.uri) && e.forEach((e) => {
10033
- e.readOnly = !0, e.style = E.textInputStyleUneditable;
10033
+ e.readOnly = !0, e.style = w.textInputStyleUneditable;
10034
10034
  });
10035
10035
  }
10036
10036
  return p.appendChild(m), d.appendChild(p), t && t.appendChild(d), d;
10037
10037
  }, K[h.ui("Choice").uri] = function(e, r, i, a, o, s, c) {
10038
- let l = h.ui, u = g, d = o.doc ? o.doc() : null, f, p = e.createElement("div");
10038
+ let l = h.ui, u = E, d = o.doc ? o.doc() : null, f, p = e.createElement("div");
10039
10039
  p.setAttribute("class", "choiceBox"), r && r.appendChild(p);
10040
10040
  let m = e.createElement("div");
10041
10041
  m.setAttribute("class", "formFieldName choiceBox-label"), p.appendChild(m);
10042
- let _ = e.createElement("div");
10043
- _.setAttribute("class", "formFieldValue choiceBox-selectBox"), p.appendChild(_);
10044
- let v = u.any(o, l("property"));
10045
- if (!v) return p.appendChild(L(e, "No property for Choice: " + o));
10046
- m.appendChild(Dt(e, v, o));
10047
- let y = u.any(o, l("from"));
10048
- if (!y) return L(e, "No 'from' for Choice: " + o);
10049
- let b = u.any(o, l("use")), x = {
10042
+ let g = e.createElement("div");
10043
+ g.setAttribute("class", "formFieldValue choiceBox-selectBox"), p.appendChild(g);
10044
+ let _ = u.any(o, l("property"));
10045
+ if (!_) return p.appendChild(L(e, "No property for Choice: " + o));
10046
+ m.appendChild(Dt(e, _, o));
10047
+ let v = u.any(o, l("from"));
10048
+ if (!v) return L(e, "No 'from' for Choice: " + o);
10049
+ let y = u.any(o, l("use")), b = {
10050
10050
  form: o,
10051
- subForm: b,
10051
+ subForm: y,
10052
10052
  disambiguate: !1
10053
10053
  };
10054
- function S(e) {
10054
+ function x(e) {
10055
10055
  let t = [], n;
10056
- t = u.each(void 0, h.rdf("type"), y, d);
10057
- for (let n in Hn(u, y, e)) t.push(u.fromNT(n));
10058
- if (y.sameTerm(h.rdfs("Class"))) for (f in ot()) t.push(u.sym(f));
10059
- else if (y.sameTerm(h.rdf("Property"))) {
10056
+ t = u.each(void 0, h.rdf("type"), v, d);
10057
+ for (let n in Hn(u, v, e)) t.push(u.fromNT(n));
10058
+ if (v.sameTerm(h.rdfs("Class"))) for (f in ot()) t.push(u.sym(f));
10059
+ else if (v.sameTerm(h.rdf("Property"))) {
10060
10060
  for (f in n = st(u), n.op) t.push(u.fromNT(f));
10061
10061
  for (f in n.dp) t.push(u.fromNT(f));
10062
- x.disambiguate = !0;
10063
- } else if (y.sameTerm(h.owl("ObjectProperty"))) {
10062
+ b.disambiguate = !0;
10063
+ } else if (v.sameTerm(h.owl("ObjectProperty"))) {
10064
10064
  for (f in n = st(u), n.op) t.push(u.fromNT(f));
10065
- x.disambiguate = !0;
10066
- } else if (y.sameTerm(h.owl("DatatypeProperty"))) {
10065
+ b.disambiguate = !0;
10066
+ } else if (v.sameTerm(h.owl("DatatypeProperty"))) {
10067
10067
  for (f in n = st(u), n.dp) t.push(u.fromNT(f));
10068
- x.disambiguate = !0;
10068
+ b.disambiguate = !0;
10069
10069
  }
10070
10070
  return t;
10071
10071
  }
10072
- u.any(o, l("canMintNew")) && (x.mint = "* Create new *");
10073
- let C = u.any(o, l("multiselect"));
10074
- C && (x.multiSelect = !0);
10075
- let w = u.each(o, l("search-full-store")).length ? null : s, T;
10076
- return _.refresh = function() {
10077
- let r = u.each(a, v, null, s).map((e) => e.value), i = S(w);
10078
- if (i.push(r), i = jn(i), T = Bn(e, _, u, a, v, i, r, y, x, s, c), _.innerHTML = "", _.appendChild(T), C) {
10072
+ u.any(o, l("canMintNew")) && (b.mint = "* Create new *");
10073
+ let S = u.any(o, l("multiselect"));
10074
+ S && (b.multiSelect = !0);
10075
+ let C = u.each(o, l("search-full-store")).length ? null : s, w;
10076
+ return g.refresh = function() {
10077
+ let r = u.each(a, _, null, s).map((e) => e.value), i = x(C);
10078
+ if (i.push(r), i = jn(i), w = Bn(e, g, u, a, _, i, r, v, b, s, c), g.innerHTML = "", g.appendChild(w), S) {
10079
10079
  let i = new _n({
10080
- placeholder: T.selected,
10081
- select: T,
10082
- container: _,
10080
+ placeholder: w.selected,
10081
+ select: w,
10082
+ container: g,
10083
10083
  textField: "textField",
10084
10084
  valueField: "valueField"
10085
10085
  });
@@ -10089,37 +10089,37 @@ K[h.ui("BooleanField").uri] = function(e, t, n, r, i, a, o) {
10089
10089
  })), i.action === "CLEAR_ALL_OPTIONS" && (r = []), i.action === "ADD_OPTION") {
10090
10090
  if ((i.value + "").includes("Create new")) {
10091
10091
  let i = $(s), o = [];
10092
- o.push(t(a, v, u.sym(i), s)), y && o.push(t(i, h.rdf("type"), u.sym(y), s)), b && wn(e, _, {}, n(i), b, s, function(t, n) {
10092
+ o.push(t(a, _, u.sym(i), s)), v && o.push(t(i, h.rdf("type"), u.sym(v), s)), y && wn(e, g, {}, n(i), y, s, function(t, n) {
10093
10093
  t ? (u.updater.update([], o, function(t, n, r) {
10094
- n || _.appendChild(L(e, "Error updating select: " + r));
10094
+ n || g.appendChild(L(e, "Error updating select: " + r));
10095
10095
  }), r.push(i), c && c(t, {
10096
10096
  widget: "select",
10097
10097
  event: "new"
10098
- })) : _.appendChild(L(e, "Error updating data in field of select: " + n));
10098
+ })) : g.appendChild(L(e, "Error updating data in field of select: " + n));
10099
10099
  });
10100
10100
  } else r.push(i.value);
10101
10101
  }
10102
- T.update(r);
10102
+ w.update(r);
10103
10103
  });
10104
10104
  }
10105
- }, _.refresh(), T && T.refresh && T.refresh(), p;
10105
+ }, g.refresh(), w && w.refresh && w.refresh(), p;
10106
10106
  };
10107
10107
  function wn(e, t, n, r, i, a, o) {
10108
10108
  q(e, i)(e, t, n, r, i, a, o);
10109
10109
  }
10110
10110
  K[h.ui("Comment").uri] = K[h.ui("Heading").uri] = function(e, t, n, r, i, a, o) {
10111
- let s = h.ui, c = g, l = c.any(i, s("contents"));
10111
+ let s = h.ui, c = E, l = c.any(i, s("contents"));
10112
10112
  l ||= "Error: No contents in comment field.";
10113
10113
  let u = i.doc ? i.doc() : null, d = xt[Ct(i)] || {}, f = e.createElement("div");
10114
10114
  t && t.appendChild(f);
10115
10115
  let p = f.appendChild(e.createElement(d.element));
10116
10116
  p.textContent = l, Tt(p, i);
10117
- let m = c.anyJS(i, h.ui("suppressIfUneditable"), null, u), _ = c.updater.editable(a.uri);
10118
- return m && !_ && (f.style.display = "none"), f;
10117
+ let m = c.anyJS(i, h.ui("suppressIfUneditable"), null, u), g = c.updater.editable(a.uri);
10118
+ return m && !g && (f.style.display = "none"), f;
10119
10119
  };
10120
10120
  function Tn(e, t, n, r, i) {
10121
10121
  let a = e.createElement("button");
10122
- return a.setAttribute("type", "button"), a.innerHTML = "Edit " + D(h.ui("Form")), a.addEventListener("click", function(o) {
10122
+ return a.setAttribute("type", "button"), a.innerHTML = "Edit " + T(h.ui("Form")), a.addEventListener("click", function(o) {
10123
10123
  En(e, t, {}, n, h.ui("FormForm"), r, i).setAttribute("style", h.ui("FormForm").sameTerm(n) ? "background-color: #fee;" : "background-color: #ffffe7;"), a.parentNode.removeChild(a);
10124
10124
  }, !0), a;
10125
10125
  }
@@ -10153,19 +10153,19 @@ function On(e, t, n) {
10153
10153
  let r = [e.sym(t)];
10154
10154
  for (; r.length > 0;) {
10155
10155
  let t = r.shift(), i = e.each(t, n);
10156
- if (b("Lists for " + t + ", " + n + ": " + i.length), i.length !== 0) return i;
10156
+ if (v("Lists for " + t + ", " + n + ": " + i.length), i.length !== 0) return i;
10157
10157
  let a = e.each(t, h.rdfs("subClassOf"));
10158
- for (let e = 0; e < a.length; e++) r.push(a[e]), b("findClosest: add super: " + a[e]);
10158
+ for (let e = 0; e < a.length; e++) r.push(a[e]), v("findClosest: add super: " + a[e]);
10159
10159
  }
10160
10160
  return [];
10161
10161
  }
10162
10162
  function kn(e) {
10163
- let t = g;
10164
- b("formsFor: subject=" + e);
10163
+ let t = E;
10164
+ v("formsFor: subject=" + e);
10165
10165
  let n = t.findTypeURIs(e), r;
10166
- for (r in n) b(" type: " + r);
10166
+ for (r in n) v(" type: " + r);
10167
10167
  let i = t.bottomTypeURIs(n), a = [];
10168
- for (let e in i) b("candidatesFor: trying bottom type =" + e), a = a.concat(On(t, e, h.ui("creationForm"))), a = a.concat(On(t, e, h.ui("annotationForm")));
10168
+ for (let e in i) v("candidatesFor: trying bottom type =" + e), a = a.concat(On(t, e, h.ui("creationForm"))), a = a.concat(On(t, e, h.ui("annotationForm")));
10169
10169
  return a;
10170
10170
  }
10171
10171
  function An(e) {
@@ -10180,7 +10180,7 @@ function An(e) {
10180
10180
  }
10181
10181
  function jn(e) {
10182
10182
  let t = e.map(function(e) {
10183
- return [D(e).toLowerCase(), e];
10183
+ return [T(e).toLowerCase(), e];
10184
10184
  });
10185
10185
  return t.sort(), t.map(function(e) {
10186
10186
  return e[1];
@@ -10188,7 +10188,7 @@ function jn(e) {
10188
10188
  }
10189
10189
  function Mn(e, t, n, r, i, a, o, s) {
10190
10190
  let c = e.createElement("button");
10191
- return c.setAttribute("type", "button"), c.innerHTML = "New " + D(i), c.addEventListener("click", function(l) {
10191
+ return c.setAttribute("type", "button"), c.innerHTML = "New " + T(i), c.addEventListener("click", function(l) {
10192
10192
  c.parentNode.appendChild(Nn(e, t, n, r, i, a, o, s));
10193
10193
  }, !1), c;
10194
10194
  }
@@ -10198,15 +10198,15 @@ function Nn(e, n, r, i, a, o, s, c) {
10198
10198
  let t = On(n, a.uri, h.ui("creationForm"));
10199
10199
  if (t.length === 0) {
10200
10200
  let t = l.appendChild(e.createElement("p"));
10201
- t.textContent = "I am sorry, you need to provide information about a " + D(a) + " but I don't know enough information about those to ask you.";
10201
+ t.textContent = "I am sorry, you need to provide information about a " + T(a) + " but I don't know enough information about those to ask you.";
10202
10202
  let n = l.appendChild(e.createElement("button"));
10203
- return n.setAttribute("type", "button"), n.setAttribute("style", "float: right;"), n.innerHTML = "Goto " + D(a), n.addEventListener("click", function(t) {
10203
+ return n.setAttribute("type", "button"), n.setAttribute("style", "float: right;"), n.innerHTML = "Goto " + T(a), n.addEventListener("click", function(t) {
10204
10204
  e.outlineManager.GotoSubject(a, !0, void 0, !0, void 0);
10205
10205
  }, !1), l;
10206
10206
  }
10207
- b("lists[0] is " + t[0]), o = t[0];
10207
+ v("lists[0] is " + t[0]), o = t[0];
10208
10208
  }
10209
- b("form is " + o), l.setAttribute("style", `border: 0.05em solid ${S.formBorderColor}; color: ${S.formBorderColor}`), l.innerHTML = "<h3>New " + D(a) + "</h3>";
10209
+ v("form is " + o), l.setAttribute("style", `border: 0.05em solid ${b.formBorderColor}; color: ${b.formBorderColor}`), l.innerHTML = "<h3>New " + T(a) + "</h3>";
10210
10210
  let u = q(e, o), d = $(s), f = !1, p = function(o, u) {
10211
10211
  if (!o) return c(o, u);
10212
10212
  let p = [];
@@ -10215,35 +10215,35 @@ function Nn(e, n, r, i, a, o, s, c) {
10215
10215
  function m(e, t, n) {
10216
10216
  return c(t, n);
10217
10217
  }
10218
- return w("paneUtils Object is " + d), lt(e, u(e, l, {}, d, o, s, p)).setAttribute("style", "float: right;"), l.AJAR_subject = d, l;
10218
+ return S("paneUtils Object is " + d), lt(e, u(e, l, {}, d, o, s, p)).setAttribute("style", "float: right;"), l.AJAR_subject = d, l;
10219
10219
  }
10220
10220
  function Pn(e, n, r, i, a, o) {
10221
10221
  let s = e.createElement("div"), c = n.anyJS(r, i, null, a) || "", l = e.createElement("textarea");
10222
- s.appendChild(l), l.rows = c ? c.split("\n").length + 2 : 2, l.cols = 80, l.setAttribute("style", E.multilineTextInputStyle), c === null ? l.select() : l.value = c, s.refresh = function() {
10222
+ s.appendChild(l), l.rows = c ? c.split("\n").length + 2 : 2, l.cols = 80, l.setAttribute("style", w.multilineTextInputStyle), c === null ? l.select() : l.value = c, s.refresh = function() {
10223
10223
  let e = n.any(r, i, null, a);
10224
10224
  e && e.value !== l.value && (l.value = e.value);
10225
10225
  };
10226
10226
  function u(c) {
10227
- f.disabled = !0, f.setAttribute("style", "visibility: hidden; float: right;"), l.disabled = !0, l.style.color = S.textInputColorPending;
10227
+ f.disabled = !0, f.setAttribute("style", "visibility: hidden; float: right;"), l.disabled = !0, l.style.color = b.textInputColorPending;
10228
10228
  let u = n.statementsMatching(r, i, null, a), d = t(r, i, l.value, a);
10229
10229
  n.updater.update(u, d, function(t, n, r) {
10230
- n ? (l.style.color = S.textInputColor, l.disabled = !1) : s.appendChild(L(e, "Error (while saving change to " + a.uri + "): " + r)), o && o(n, r);
10230
+ n ? (l.style.color = b.textInputColor, l.disabled = !1) : s.appendChild(L(e, "Error (while saving change to " + a.uri + "): " + r)), o && o(n, r);
10231
10231
  });
10232
10232
  }
10233
10233
  let d = n.updater.editable(a.uri), f;
10234
10234
  return d ? (f = Ye(e, u), f.disabled = !0, f.style.visibility = "hidden", f.style.float = "right", s.appendChild(f), l.addEventListener("keyup", function(e) {
10235
10235
  l.style.color = "green", f && (f.disabled = !1, f.style.visibility = "");
10236
- }, !0), l.addEventListener("change", u, !0)) : (l.disabled = !0, l.style.backgroundColor = S.textInputBackgroundColorUneditable), s;
10236
+ }, !0), l.addEventListener("change", u, !0)) : (l.disabled = !0, l.style.backgroundColor = b.textInputBackgroundColorUneditable), s;
10237
10237
  }
10238
10238
  function Fn(e, n, r, i, a, o, s, c) {
10239
- b("Select list length now " + a.length);
10239
+ v("Select list length now " + a.length);
10240
10240
  let l = 0, u = {}, d = n.updater.editable(s.uri);
10241
10241
  for (let e = 0; e < a.length; e++) {
10242
10242
  let t = a[e];
10243
- t.uri || k(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`), !(!t.uri || t.uri in u) && (u[t.uri] = !0, l++);
10243
+ t.uri || k(`makeSelectForClassifierOptions: option does not have an uri: ${t}, with predicate: ${i}`), !t.uri || t.uri in u || (u[t.uri] = !0, l++);
10244
10244
  }
10245
10245
  if (l === 0 && !o.mint) return L(e, "Can't do selector with no options, subject= " + r + " property = " + i + ".");
10246
- b("makeSelectForClassifierOptions: dataDoc=" + s);
10246
+ v("makeSelectForClassifierOptions: dataDoc=" + s);
10247
10247
  let f, p = function() {
10248
10248
  return f = {}, i.sameTerm(h.rdf("type")) ? f = n.findTypeURIs(r) : n.each(r, i, null, s).forEach(function(e) {
10249
10249
  f[e.uri] = !0;
@@ -10277,7 +10277,7 @@ function Fn(e, n, r, i, a, o, s, c) {
10277
10277
  event: "new"
10278
10278
  });
10279
10279
  }
10280
- w("makeSelectForClassifierOptions: data doc = " + s), n.updater.update(l, u, function(t, n, r) {
10280
+ S("makeSelectForClassifierOptions: data doc = " + s), n.updater.update(l, u, function(t, n, r) {
10281
10281
  if (f = p(), n) g.disabled = !1, m && q(e, o.subForm)(e, g.parentNode, {}, m, o.subForm, s, _);
10282
10282
  else return g.parentNode.appendChild(L(e, "Error updating data in select: " + r));
10283
10283
  c && c(n, {
@@ -10286,7 +10286,7 @@ function Fn(e, n, r, i, a, o, s, c) {
10286
10286
  });
10287
10287
  });
10288
10288
  }, g = e.createElement("select");
10289
- g.setAttribute("style", E.formSelectStyle), o.multiple && g.setAttribute("multiple", "true"), g.currentURI = null, g.refresh = function() {
10289
+ g.setAttribute("style", w.formSelectStyle), o.multiple && g.setAttribute("multiple", "true"), g.currentURI = null, g.refresh = function() {
10290
10290
  f = p();
10291
10291
  for (let e = 0; e < g.children.length; e++) {
10292
10292
  let t = g.children[e];
@@ -10296,7 +10296,7 @@ function Fn(e, n, r, i, a, o, s, c) {
10296
10296
  };
10297
10297
  for (let t in u) {
10298
10298
  let r = n.sym(t), i = e.createElement("option");
10299
- o.disambiguate ? i.appendChild(e.createTextNode(C(r, !0))) : i.appendChild(e.createTextNode(D(r, !0)));
10299
+ o.disambiguate ? i.appendChild(e.createTextNode(x(r, !0))) : i.appendChild(e.createTextNode(T(r, !0)));
10300
10300
  let a = n.any(r, n.sym("http://www.w3.org/ns/ui#backgroundColor"));
10301
10301
  a && i.setAttribute("style", "background-color: " + a.value + "; "), i.AJAR_uri = t, t in f && (i.setAttribute("selected", "true"), g.currentURI = t), g.appendChild(i);
10302
10302
  }
@@ -10311,14 +10311,14 @@ function Fn(e, n, r, i, a, o, s, c) {
10311
10311
  return d && g.addEventListener("change", m, !1), g;
10312
10312
  }
10313
10313
  function In(e, n, r, i, a, o, s, c) {
10314
- b("Select list length now " + a.length);
10314
+ v("Select list length now " + a.length);
10315
10315
  let l = 0, u = {}, d = n.updater.editable(s.uri);
10316
10316
  for (let e = 0; e < a.length; e++) {
10317
10317
  let t = a[e];
10318
- t.uri || k(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`), !(!t.uri || t.uri in u) && (u[t.uri] = !0, l++);
10318
+ t.uri || k(`makeSelectForOptions: option does not have an uri: ${t}, with predicate: ${i}`), !t.uri || t.uri in u || (u[t.uri] = !0, l++);
10319
10319
  }
10320
10320
  if (l === 0) return L(e, "Can't do selector with no options, subject= " + r + " property = " + i + ".");
10321
- b("makeSelectForOptions: dataDoc=" + s);
10321
+ v("makeSelectForOptions: dataDoc=" + s);
10322
10322
  let f, p = function() {
10323
10323
  return f = {}, i.sameTerm(h.rdf("type")) ? f = n.findTypeURIs(r) : n.each(r, i, null, s).forEach(function(e) {
10324
10324
  e.uri && (f[e.uri] = !0);
@@ -10337,7 +10337,7 @@ function In(e, n, r, i, a, o, s, c) {
10337
10337
  let d = g.subSelect;
10338
10338
  for (; d && d.currentURI;) u(n.sym(d.currentURI)), d = d.subSelect;
10339
10339
  for (d = g.superSelect; d && d.currentURI;) u(n.sym(d.currentURI)), d = d.superSelect;
10340
- w("selectForOptions: data doc = " + s), n.updater.update(o, l, function(t, n, r) {
10340
+ S("selectForOptions: data doc = " + s), n.updater.update(o, l, function(t, n, r) {
10341
10341
  if (f = p(), n) g.disabled = !1;
10342
10342
  else return g.parentNode.appendChild(L(e, "Error updating data in select: " + r));
10343
10343
  c && c(n, {
@@ -10346,7 +10346,7 @@ function In(e, n, r, i, a, o, s, c) {
10346
10346
  });
10347
10347
  });
10348
10348
  }, g = e.createElement("select");
10349
- g.setAttribute("style", E.formSelectStyle), g.currentURI = null, g.refresh = function() {
10349
+ g.setAttribute("style", w.formSelectStyle), g.currentURI = null, g.refresh = function() {
10350
10350
  f = p();
10351
10351
  for (let e = 0; e < g.children.length; e++) {
10352
10352
  let t = g.children[e];
@@ -10356,7 +10356,7 @@ function In(e, n, r, i, a, o, s, c) {
10356
10356
  };
10357
10357
  for (let t in u) {
10358
10358
  let r = n.sym(t), i = e.createElement("option");
10359
- o.disambiguate ? i.appendChild(e.createTextNode(C(r, !0))) : i.appendChild(e.createTextNode(D(r, !0)));
10359
+ o.disambiguate ? i.appendChild(e.createTextNode(x(r, !0))) : i.appendChild(e.createTextNode(T(r, !0)));
10360
10360
  let a = n.any(r, n.sym("http://www.w3.org/ns/ui#backgroundColor"));
10361
10361
  a && i.setAttribute("style", "background-color: " + a.value + "; "), i.AJAR_uri = t, t in f && (i.setAttribute("selected", "true"), g.currentURI = t), g.appendChild(i);
10362
10362
  }
@@ -10368,7 +10368,7 @@ function In(e, n, r, i, a, o, s, c) {
10368
10368
  }
10369
10369
  function Ln(e, t, n, r, i, a) {
10370
10370
  let o = t.any(r, h.owl("disjointUnionOf")), s, c = !1;
10371
- return o ? s = o.elements : (s = t.each(void 0, h.rdfs("subClassOf"), r), c = !0), b("Select list length " + s.length), s.length === 0 ? L(e, "Can't do " + (c ? "multiple " : "") + "selector with no subclasses of category: " + r) : s.length === 1 ? L(e, "Can't do " + (c ? "multiple " : "") + "selector with only 1 subclass of category: " + r + ":" + s[1]) : Fn(e, t, n, h.rdf("type"), s, {
10371
+ return o ? s = o.elements : (s = t.each(void 0, h.rdfs("subClassOf"), r), c = !0), v("Select list length " + s.length), s.length === 0 ? L(e, "Can't do " + (c ? "multiple " : "") + "selector with no subclasses of category: " + r) : s.length === 1 ? L(e, "Can't do " + (c ? "multiple " : "") + "selector with only 1 subclass of category: " + r + ":" + s[1]) : Fn(e, t, n, h.rdf("type"), s, {
10372
10372
  multiple: c,
10373
10373
  nullLabel: "* Select type *"
10374
10374
  }, i, a);
@@ -10386,7 +10386,7 @@ function Rn(e, t, n, r, i, a) {
10386
10386
  }
10387
10387
  function zn(e, t, n, r, i, a, o, s) {
10388
10388
  let c = e.createElement("div"), l = Et(e, t, c, a, n), u = t.updater.editable(o.uri), d = e.createElement("button"), f = d;
10389
- d.style = E.checkboxInputStyle, l.appendChild(d);
10389
+ d.style = w.checkboxInputStyle, l.appendChild(d);
10390
10390
  function p(e) {
10391
10391
  if (!e) return [];
10392
10392
  if (e.object) return e.why ||= o, [e];
@@ -10458,25 +10458,25 @@ function Bn(e, r, i, a, o, s, c, l, u, d, f) {
10458
10458
  !t.uri || t.uri in p || (p[t.uri] = !0);
10459
10459
  }
10460
10460
  if (Object.keys(p).length === 0 && !u.mint) return L(e, "Can't do selector with no options, subject= " + a + " property = " + o + ".");
10461
- b("makeSelectForChoice: dataDoc=" + d);
10461
+ v("makeSelectForChoice: dataDoc=" + d);
10462
10462
  function g() {
10463
10463
  let e = "--- choice ---";
10464
- return o && o.termType !== "BlankNode" && (e = "* Select for property: " + D(o) + " *"), a && a.termType !== "BlankNode" && (e = "* Select for " + D(a, !0) + " *"), e;
10464
+ return o && o.termType !== "BlankNode" && (e = "* Select for property: " + T(o) + " *"), a && a.termType !== "BlankNode" && (e = "* Select for " + T(a, !0) + " *"), e;
10465
10465
  }
10466
10466
  function _() {
10467
10467
  let t = e.createElement("option");
10468
10468
  return t.appendChild(e.createTextNode(g())), t.disabled = !0, t.value = !0, t.hidden = !0, t.selected = !0, t;
10469
10469
  }
10470
- let v = function(e) {
10471
- r.removeChild(r.lastChild), y.refresh();
10472
- }, y = e.createElement("select");
10473
- y.setAttribute("style", E.formSelectStyle), y.setAttribute("id", "formSelect"), y.currentURI = null;
10474
- for (let e in p) y.appendChild(x(e));
10470
+ let y = function(e) {
10471
+ r.removeChild(r.lastChild), b.refresh();
10472
+ }, b = e.createElement("select");
10473
+ b.setAttribute("style", w.formSelectStyle), b.setAttribute("id", "formSelect"), b.currentURI = null;
10474
+ for (let e in p) b.appendChild(C(e));
10475
10475
  if (m && u.mint) {
10476
10476
  let t = e.createElement("option");
10477
- t.appendChild(e.createTextNode(u.mint)), t.AJAR_mint = !0, y.insertBefore(t, y.firstChild);
10477
+ t.appendChild(e.createTextNode(u.mint)), t.AJAR_mint = !0, b.insertBefore(t, b.firstChild);
10478
10478
  }
10479
- y.children.length === 0 && y.insertBefore(_(), y.firstChild), y.update = function(r) {
10479
+ b.children.length === 0 && b.insertBefore(_(), b.firstChild), b.update = function(r) {
10480
10480
  c = r;
10481
10481
  let s = [], u = [], p = function(e) {
10482
10482
  i.holds(a, o, e, d) && s.push(t(a, o, e, d));
@@ -10486,44 +10486,44 @@ function Bn(e, r, i, a, o, s, c, l, u, d, f) {
10486
10486
  for (let e of g) Vn(e, c) || p(n(e));
10487
10487
  for (let e of c) e in g || m(n(e));
10488
10488
  i.updater.update(s, u, function(t, n, r) {
10489
- if (!n) return y.parentNode.appendChild(L(e, "Error updating data in select: " + r));
10490
- y.refresh(), f && f(n, {
10489
+ if (!n) return b.parentNode.appendChild(L(e, "Error updating data in select: " + r));
10490
+ b.refresh(), f && f(n, {
10491
10491
  widget: "select",
10492
10492
  event: "change"
10493
10493
  });
10494
10494
  });
10495
- }, y.refresh = function() {
10496
- y.disabled = !0;
10495
+ }, b.refresh = function() {
10496
+ b.disabled = !0;
10497
10497
  let s = [], p;
10498
- for (let n = 0; n < y.options.length; n++) {
10499
- let r = y.options[n];
10498
+ for (let n = 0; n < b.options.length; n++) {
10499
+ let r = b.options[n];
10500
10500
  if (r.selected && r.AJAR_mint) {
10501
10501
  if (u.mintClass) {
10502
10502
  let t = Nn(e, i, a, o, l, u.subForm, d, function(e, t) {
10503
10503
  e || f(e, t, { change: "new" });
10504
10504
  });
10505
- y.parentNode.appendChild(t), p = t.AJAR_subject;
10505
+ b.parentNode.appendChild(t), p = t.AJAR_subject;
10506
10506
  } else p = $(d);
10507
- s.push(t(a, o, i.sym(p), d)), l && s.push(t(p, h.rdf("type"), i.sym(l), d)), u.mintStatementsFun && (s = s.concat(u.mintStatementsFun(p))), y.currentURI = p;
10507
+ s.push(t(a, o, i.sym(p), d)), l && s.push(t(p, h.rdf("type"), i.sym(l), d)), u.mintStatementsFun && (s = s.concat(u.mintStatementsFun(p))), b.currentURI = p;
10508
10508
  }
10509
- r.AJAR_uri && (r.selected && Vn(r.AJAR_uri, c) && (y.currentURI = r.AJAR_uri), Vn(r.AJAR_uri, c) || r.removeAttribute("selected"), Vn(r.AJAR_uri, c) && r.setAttribute("selected", "true"));
10509
+ r.AJAR_uri && (r.selected && Vn(r.AJAR_uri, c) && (b.currentURI = r.AJAR_uri), Vn(r.AJAR_uri, c) || r.removeAttribute("selected"), Vn(r.AJAR_uri, c) && r.setAttribute("selected", "true"));
10510
10510
  }
10511
- w("selectForOptions: data doc = " + d), y.currentURI && u.subForm && !u.multiSelect && wn(e, r, {}, n(y.currentURI), u.subForm, d, function(t, n) {
10511
+ S("selectForOptions: data doc = " + d), b.currentURI && u.subForm && !u.multiSelect && wn(e, r, {}, n(b.currentURI), u.subForm, d, function(t, n) {
10512
10512
  t ? (i.updater.update([], s, function(t, n, i) {
10513
10513
  n || r.appendChild(L(e, "Error updating select: " + i));
10514
10514
  }), f && f(t, {
10515
10515
  widget: "select",
10516
10516
  event: "new"
10517
10517
  })) : r.appendChild(L(e, "Error updating data in field of select: " + n));
10518
- }), y.disabled = !1;
10518
+ }), b.disabled = !1;
10519
10519
  };
10520
- function x(t) {
10520
+ function C(t) {
10521
10521
  let n = e.createElement("option"), r = i.sym(t), a;
10522
- a = u.disambiguate ? C(r, !0) : D(r, !0), n.appendChild(e.createTextNode(a)), n.setAttribute("value", t);
10522
+ a = u.disambiguate ? x(r, !0) : T(r, !0), n.appendChild(e.createTextNode(a)), n.setAttribute("value", t);
10523
10523
  let o = i.any(r, i.sym("http://www.w3.org/ns/ui#backgroundColor"));
10524
10524
  return o && n.setAttribute("style", "background-color: " + o.value + "; "), n.AJAR_uri = t, Vn(r.value, c) && n.setAttribute("selected", "true"), n;
10525
10525
  }
10526
- return m && y.addEventListener("change", v, !1), y;
10526
+ return m && b.addEventListener("change", y, !1), b;
10527
10527
  }
10528
10528
  function Vn(e, t) {
10529
10529
  let n = 0;
@@ -10629,4 +10629,4 @@ var Un = /* @__PURE__ */ o({
10629
10629
  });
10630
10630
  export { I as C, j as D, O as E, k as O, ue as S, A as T, nt as _, kt as a, R as b, W as c, Ye as d, H as f, Ze as g, it as h, $ as i, Ne as l, Ve as m, En as n, Xe as o, We as p, zn as r, U as s, Un as t, Me as u, Ke as v, de as w, L as x, Fe as y };
10631
10631
 
10632
- //# sourceMappingURL=widgets-BBEQu0CS.js.map
10632
+ //# sourceMappingURL=widgets-B1hBVhRL.js.map