solid-ui 5.0.1-0 → 5.0.1-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +21 -0
  2. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.esm.js +11 -0
  5. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.esm.js.map +1 -0
  6. package/dist/chunks/{access-control-modal-C9ECFvn0.js → access-control-modal-eOv2-U27.js} +3 -3
  7. package/dist/chunks/{access-control-modal-C9ECFvn0.js.map → access-control-modal-eOv2-U27.js.map} +1 -1
  8. package/dist/chunks/{account-BUnArMjm.js → account-DpmYJEd-.js} +6 -6
  9. package/dist/chunks/{account-BUnArMjm.js.map → account-DpmYJEd-.js.map} +1 -1
  10. package/dist/chunks/{auth-BgEyix2g.js → auth-Hp8M6TQf.js} +2 -2
  11. package/dist/chunks/{auth-BgEyix2g.js.map → auth-Hp8M6TQf.js.map} +1 -1
  12. package/dist/chunks/{avatar-DiGyEwvL.js → avatar-D5rcw6gN.js} +2 -2
  13. package/dist/chunks/{avatar-DiGyEwvL.js.map → avatar-D5rcw6gN.js.map} +1 -1
  14. package/dist/chunks/{combobox-a0vVnPo8.js → combobox-Dmv-TZtI.js} +2 -2
  15. package/dist/chunks/combobox-Dmv-TZtI.js.map +1 -0
  16. package/dist/chunks/{guard-c6JOj8UM.js → guard-FbhNrJGh.js} +2 -2
  17. package/dist/chunks/{guard-c6JOj8UM.js.map → guard-FbhNrJGh.js.map} +1 -1
  18. package/dist/chunks/{login-button-gUZbphp9.js → login-button-DCq4Gi3_.js} +2 -2
  19. package/dist/chunks/{login-button-gUZbphp9.js.map → login-button-DCq4Gi3_.js.map} +1 -1
  20. package/dist/chunks/{logout-button-GWQMrdx4.js → logout-button-D3dJrsV4.js} +2 -2
  21. package/dist/chunks/{logout-button-GWQMrdx4.js.map → logout-button-D3dJrsV4.js.map} +1 -1
  22. package/dist/chunks/{provider-DLNWLlfX.js → provider-D9UgRI4G.js} +2 -2
  23. package/dist/chunks/{provider-DLNWLlfX.js.map → provider-D9UgRI4G.js.map} +1 -1
  24. package/dist/chunks/{signup-button-i9d5eTUY.js → signup-button-BQ4AWem2.js} +2 -2
  25. package/dist/chunks/{signup-button-i9d5eTUY.js.map → signup-button-BQ4AWem2.js.map} +1 -1
  26. package/dist/chunks/{src-B9ABTiyW.js → src-DQMZZG1B.js} +2319 -2281
  27. package/dist/chunks/src-DQMZZG1B.js.map +1 -0
  28. package/dist/chunks/{widgets-CQOLuw3A.js → widgets-CVLwnfkU.js} +122 -74
  29. package/dist/chunks/widgets-CVLwnfkU.js.map +1 -0
  30. package/dist/components/access-control-modal.js +1 -1
  31. package/dist/components/account.js +1 -1
  32. package/dist/components/avatar.js +1 -1
  33. package/dist/components/combobox/Combobox.styles.cjs.js +1 -1
  34. package/dist/components/combobox/Combobox.styles.cjs.js.map +1 -1
  35. package/dist/components/combobox/Combobox.styles.esm.js +1 -1
  36. package/dist/components/combobox/Combobox.styles.esm.js.map +1 -1
  37. package/dist/components/combobox.js +1 -1
  38. package/dist/components/guard.js +1 -1
  39. package/dist/components/login-button.js +1 -1
  40. package/dist/components/login-modal.js +1 -1
  41. package/dist/components/logout-button.js +1 -1
  42. package/dist/components/provider.js +1 -1
  43. package/dist/components/signup-button.js +1 -1
  44. package/dist/components.js +10 -10
  45. package/dist/index.js +3 -3
  46. package/dist/lib/iconBase.cjs.js +1 -1
  47. package/dist/lib/iconBase.cjs.js.map +1 -1
  48. package/dist/lib/iconBase.esm.js +3 -2
  49. package/dist/lib/iconBase.esm.js.map +1 -1
  50. package/dist/loader.js +3 -3
  51. package/dist/solid-ui.js +30 -30
  52. package/dist/solid-ui.min.js +30 -30
  53. package/dist/solid-ui.min.js.map +1 -1
  54. package/dist/widgets/buttons/iconLinks.cjs.js +1 -1
  55. package/dist/widgets/buttons/iconLinks.cjs.js.map +1 -1
  56. package/dist/widgets/buttons/iconLinks.d.ts.map +1 -1
  57. package/dist/widgets/buttons/iconLinks.esm.js +16 -10
  58. package/dist/widgets/buttons/iconLinks.esm.js.map +1 -1
  59. package/dist/widgets/buttons.cjs.js +1 -1
  60. package/dist/widgets/buttons.cjs.js.map +1 -1
  61. package/dist/widgets/buttons.d.ts +5 -1
  62. package/dist/widgets/buttons.d.ts.map +1 -1
  63. package/dist/widgets/buttons.esm.js +67 -34
  64. package/dist/widgets/buttons.esm.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/combobox-a0vVnPo8.js.map +0 -1
  67. package/dist/chunks/src-B9ABTiyW.js.map +0 -1
  68. package/dist/chunks/widgets-CQOLuw3A.js.map +0 -1
@@ -1,2 +1,2 @@
1
- const e=require("../../lib/iconBase.cjs.js");function t(t,n,r){let i=t.createElement(`a`);i.setAttribute(`href`,n.uri),n.uri.startsWith(`http`)&&i.setAttribute(`target`,`_blank`);let a=i.appendChild(t.createElement(`img`));return a.setAttribute(`src`,r||e.originalIconBase+`go-to-this.png`),a.setAttribute(`style`,`margin: 0.3em;`),i}var n=(e,n,r)=>{let i=t(e,r);n.appendChild(i).classList.add(`HoverControlHide`),n.appendChild(e.createElement(`br`))};exports.createLinkForURI=n,exports.linkIcon=t;
1
+ require("../../_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js");function e(e,t,n){let r=e.createElement(`a`);if(r.setAttribute(`href`,t.uri),t.uri.startsWith(`http`)&&r.setAttribute(`target`,`_blank`),n){let t=r.appendChild(e.createElement(`img`));t.setAttribute(`src`,n),t.setAttribute(`style`,`margin: 0.3em;`)}else{r.setAttribute(`aria-label`,`Open resource`);let t=r.appendChild(e.createElement(`icon-lucide-square-arrow-out-up-right`));t.setAttribute(`aria-hidden`,`true`),t.setAttribute(`style`,`display: inline-block; width: 1em; height: 1em; margin: 0.2em; color: var(--color-text-secondary, #4A5565);`)}return r}var t=(t,n,r)=>{let i=e(t,r);n.appendChild(i).classList.add(`HoverControlHide`),n.appendChild(t.createElement(`br`))};exports.createLinkForURI=t,exports.linkIcon=e;
2
2
  //# sourceMappingURL=iconLinks.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconLinks.cjs.js","names":["originalIconBase","require_iconBase","linkIcon","anchor","dom","subject","img","iconURI","createLinkForURI","iconLink","obj","linkDiv"],"sources":["../../../src/widgets/buttons/iconLinks.ts"],"sourcesContent":["import { NamedNode } from 'rdflib'\nimport { originalIconBase } from '../../lib/iconBase'\n\n/**\n * Creates an anchor tag for a NamedNode\n *\n * Takes a NamedNode and creates an anchor tag for it\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param subject NamedNode the anchor tag is created for\n * @param iconURI? Optional if you have your own icon link\n *\n * @returns The anchor tag for the subject\n *\n */\n\nexport function linkIcon (dom: HTMLDocument, subject: NamedNode, iconURI?: string): HTMLElement {\n const anchor = dom.createElement('a')\n anchor.setAttribute('href', subject.uri)\n if (subject.uri.startsWith('http')) {\n // If diff web page\n anchor.setAttribute('target', '_blank') // open in a new tab or window\n } // as mailboxes and mail messages do not need new browser window\n const img = anchor.appendChild(dom.createElement('img'))\n img.setAttribute(\n 'src',\n iconURI || originalIconBase + 'go-to-this.png'\n )\n img.setAttribute('style', 'margin: 0.3em;')\n return anchor\n}\n/**\n * Creates a Link for a URI\n *\n * Takes a div element for a link and attaches the provided linkIcon\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param linkDiv the created link will be appended to this\n * @param obj NamedNode the link needs to be created for\n *\n * @returns The HTML widget created\n *\n */\n\nexport const createLinkForURI = (dom: HTMLDocument, linkDiv: HTMLDivElement, obj: NamedNode) => {\n const iconLink = linkIcon(dom, obj)\n const anchor = linkDiv.appendChild(iconLink)\n anchor.classList.add('HoverControlHide')\n linkDiv.appendChild(dom.createElement('br'))\n}\n"],"mappings":"A,6CAgBA,SAAgBE,EAAU,EAAmB,EAAoB,EAA+B,CAC9F,IAAMC,EAASC,EAAI,cAAc,GAAG,EACpCD,EAAO,aAAa,OAAQE,EAAQ,GAAG,EACnCA,EAAQ,IAAI,WAAW,MAAM,GAE/BF,EAAO,aAAa,SAAU,QAAQ,EAExC,IAAMG,EAAMH,EAAO,YAAYC,EAAI,cAAc,KAAK,CAAC,EAMvD,OALAE,EAAI,aACF,MACAC,GAAWP,EAAAA,iBAAmB,gBAChC,EACAM,EAAI,aAAa,QAAS,gBAAgB,EACnCH,CACT,CAcA,IAAaK,GAAoB,EAAmB,EAAyB,IAAmB,CAC9F,IAAMC,EAAWP,EAASE,EAAKM,CAAG,EAElCC,EADuB,YAAYF,CACnC,CAAA,CAAO,UAAU,IAAI,kBAAkB,EACvCE,EAAQ,YAAYP,EAAI,cAAc,IAAI,CAAC,CAC7C,E"}
1
+ {"version":3,"file":"iconLinks.cjs.js","names":["linkIcon","anchor","dom","subject","iconURI","img","icon","createLinkForURI","iconLink","obj","linkDiv"],"sources":["../../../src/widgets/buttons/iconLinks.ts"],"sourcesContent":["import { NamedNode } from 'rdflib'\nimport '~icons/lucide/square-arrow-out-up-right'\n\n/**\n * Creates an anchor tag for a NamedNode\n *\n * Takes a NamedNode and creates an anchor tag for it\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param subject NamedNode the anchor tag is created for\n * @param iconURI? Optional if you have your own icon link\n *\n * @returns The anchor tag for the subject\n *\n */\n\nexport function linkIcon (dom: HTMLDocument, subject: NamedNode, iconURI?: string): HTMLElement {\n const anchor = dom.createElement('a')\n anchor.setAttribute('href', subject.uri)\n if (subject.uri.startsWith('http')) {\n // If diff web page\n anchor.setAttribute('target', '_blank') // open in a new tab or window\n } // as mailboxes and mail messages do not need new browser window\n if (iconURI) {\n const img = anchor.appendChild(dom.createElement('img'))\n img.setAttribute('src', iconURI)\n img.setAttribute('style', 'margin: 0.3em;')\n } else {\n anchor.setAttribute('aria-label', 'Open resource')\n const icon = anchor.appendChild(dom.createElement('icon-lucide-square-arrow-out-up-right'))\n icon.setAttribute('aria-hidden', 'true')\n icon.setAttribute('style', 'display: inline-block; width: 1em; height: 1em; margin: 0.2em; color: var(--color-text-secondary, #4A5565);')\n }\n return anchor\n}\n/**\n * Creates a Link for a URI\n *\n * Takes a div element for a link and attaches the provided linkIcon\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param linkDiv the created link will be appended to this\n * @param obj NamedNode the link needs to be created for\n *\n * @returns The HTML widget created\n *\n */\n\nexport const createLinkForURI = (dom: HTMLDocument, linkDiv: HTMLDivElement, obj: NamedNode) => {\n const iconLink = linkIcon(dom, obj)\n const anchor = linkDiv.appendChild(iconLink)\n anchor.classList.add('HoverControlHide')\n linkDiv.appendChild(dom.createElement('br'))\n}\n"],"mappings":"A,yEAgBA,SAAgBA,EAAU,EAAmB,EAAoB,EAA+B,CAC9F,IAAMC,EAASC,EAAI,cAAc,GAAG,EAMpC,GALAD,EAAO,aAAa,OAAQE,EAAQ,GAAG,EACnCA,EAAQ,IAAI,WAAW,MAAM,GAE/BF,EAAO,aAAa,SAAU,QAAQ,EAEpCG,EAAS,CACX,IAAMC,EAAMJ,EAAO,YAAYC,EAAI,cAAc,KAAK,CAAC,EACvDG,EAAI,aAAa,MAAOD,CAAO,EAC/BC,EAAI,aAAa,QAAS,gBAAgB,CAC5C,KAAO,CACLJ,EAAO,aAAa,aAAc,eAAe,EACjD,IAAMK,EAAOL,EAAO,YAAYC,EAAI,cAAc,uCAAuC,CAAC,EAC1FI,EAAK,aAAa,cAAe,MAAM,EACvCA,EAAK,aAAa,QAAS,6GAA6G,CAC1I,CACA,OAAOL,CACT,CAcA,IAAaM,GAAoB,EAAmB,EAAyB,IAAmB,CAC9F,IAAMC,EAAWR,EAASE,EAAKO,CAAG,EAElCC,EADuB,YAAYF,CACnC,CAAA,CAAO,UAAU,IAAI,kBAAkB,EACvCE,EAAQ,YAAYR,EAAI,cAAc,IAAI,CAAC,CAC7C,E"}
@@ -1 +1 @@
1
- {"version":3,"file":"iconLinks.d.ts","sourceRoot":"","sources":["../../../src/widgets/buttons/iconLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC;;;;;;;;;;;GAWG;AAEH,wBAAgB,QAAQ,CAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAc9F;AACD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,GAAI,KAAK,YAAY,EAAE,SAAS,cAAc,EAAE,KAAK,SAAS,SAK1F,CAAA"}
1
+ {"version":3,"file":"iconLinks.d.ts","sourceRoot":"","sources":["../../../src/widgets/buttons/iconLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,yCAAyC,CAAA;AAEhD;;;;;;;;;;;GAWG;AAEH,wBAAgB,QAAQ,CAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAkB9F;AACD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,gBAAgB,GAAI,KAAK,YAAY,EAAE,SAAS,cAAc,EAAE,KAAK,SAAS,SAK1F,CAAA"}
@@ -1,16 +1,22 @@
1
- import { originalIconBase as e } from "../../lib/iconBase.esm.js";
1
+ import "../../_virtual/~icons/lucide/square-arrow-out-up-right.esm.js";
2
2
  //#region src/widgets/buttons/iconLinks.ts
3
- function t(t, n, r) {
4
- let i = t.createElement("a");
5
- i.setAttribute("href", n.uri), n.uri.startsWith("http") && i.setAttribute("target", "_blank");
6
- let a = i.appendChild(t.createElement("img"));
7
- return a.setAttribute("src", r || e + "go-to-this.png"), a.setAttribute("style", "margin: 0.3em;"), i;
3
+ function e(e, t, n) {
4
+ let r = e.createElement("a");
5
+ if (r.setAttribute("href", t.uri), t.uri.startsWith("http") && r.setAttribute("target", "_blank"), n) {
6
+ let t = r.appendChild(e.createElement("img"));
7
+ t.setAttribute("src", n), t.setAttribute("style", "margin: 0.3em;");
8
+ } else {
9
+ r.setAttribute("aria-label", "Open resource");
10
+ let t = r.appendChild(e.createElement("icon-lucide-square-arrow-out-up-right"));
11
+ t.setAttribute("aria-hidden", "true"), t.setAttribute("style", "display: inline-block; width: 1em; height: 1em; margin: 0.2em; color: var(--color-text-secondary, #4A5565);");
12
+ }
13
+ return r;
8
14
  }
9
- var n = (e, n, r) => {
10
- let i = t(e, r);
11
- n.appendChild(i).classList.add("HoverControlHide"), n.appendChild(e.createElement("br"));
15
+ var t = (t, n, r) => {
16
+ let i = e(t, r);
17
+ n.appendChild(i).classList.add("HoverControlHide"), n.appendChild(t.createElement("br"));
12
18
  };
13
19
  //#endregion
14
- export { n as createLinkForURI, t as linkIcon };
20
+ export { t as createLinkForURI, e as linkIcon };
15
21
 
16
22
  //# sourceMappingURL=iconLinks.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"iconLinks.esm.js","names":["linkIcon","anchor","dom","subject","img","iconURI","originalIconBase","createLinkForURI","iconLink","obj","linkDiv"],"sources":["../../../src/widgets/buttons/iconLinks.ts"],"sourcesContent":["import { NamedNode } from 'rdflib'\nimport { originalIconBase } from '../../lib/iconBase'\n\n/**\n * Creates an anchor tag for a NamedNode\n *\n * Takes a NamedNode and creates an anchor tag for it\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param subject NamedNode the anchor tag is created for\n * @param iconURI? Optional if you have your own icon link\n *\n * @returns The anchor tag for the subject\n *\n */\n\nexport function linkIcon (dom: HTMLDocument, subject: NamedNode, iconURI?: string): HTMLElement {\n const anchor = dom.createElement('a')\n anchor.setAttribute('href', subject.uri)\n if (subject.uri.startsWith('http')) {\n // If diff web page\n anchor.setAttribute('target', '_blank') // open in a new tab or window\n } // as mailboxes and mail messages do not need new browser window\n const img = anchor.appendChild(dom.createElement('img'))\n img.setAttribute(\n 'src',\n iconURI || originalIconBase + 'go-to-this.png'\n )\n img.setAttribute('style', 'margin: 0.3em;')\n return anchor\n}\n/**\n * Creates a Link for a URI\n *\n * Takes a div element for a link and attaches the provided linkIcon\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param linkDiv the created link will be appended to this\n * @param obj NamedNode the link needs to be created for\n *\n * @returns The HTML widget created\n *\n */\n\nexport const createLinkForURI = (dom: HTMLDocument, linkDiv: HTMLDivElement, obj: NamedNode) => {\n const iconLink = linkIcon(dom, obj)\n const anchor = linkDiv.appendChild(iconLink)\n anchor.classList.add('HoverControlHide')\n linkDiv.appendChild(dom.createElement('br'))\n}\n"],"mappings":";;AAgBA,SAAgBA,EAAU,GAAmB,GAAoB,GAA+B;CAC9F,IAAMC,IAASC,EAAI,cAAc,GAAG;CAEpC,AADAD,EAAO,aAAa,QAAQE,EAAQ,GAAG,GACnCA,EAAQ,IAAI,WAAW,MAAM,KAE/BF,EAAO,aAAa,UAAU,QAAQ;CAExC,IAAMG,IAAMH,EAAO,YAAYC,EAAI,cAAc,KAAK,CAAC;CAMvD,OALAE,EAAI,aACF,OACAC,KAAWC,IAAmB,gBAChC,GACAF,EAAI,aAAa,SAAS,gBAAgB,GACnCH;AACT;AAcA,IAAaM,KAAoB,GAAmB,GAAyB,MAAmB;CAC9F,IAAMC,IAAWR,EAASE,GAAKO,CAAG;CAGlC,AADAC,EADuB,YAAYF,CACnC,CAAA,CAAO,UAAU,IAAI,kBAAkB,GACvCE,EAAQ,YAAYR,EAAI,cAAc,IAAI,CAAC;AAC7C"}
1
+ {"version":3,"file":"iconLinks.esm.js","names":["linkIcon","anchor","dom","subject","iconURI","img","icon","createLinkForURI","iconLink","obj","linkDiv"],"sources":["../../../src/widgets/buttons/iconLinks.ts"],"sourcesContent":["import { NamedNode } from 'rdflib'\nimport '~icons/lucide/square-arrow-out-up-right'\n\n/**\n * Creates an anchor tag for a NamedNode\n *\n * Takes a NamedNode and creates an anchor tag for it\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param subject NamedNode the anchor tag is created for\n * @param iconURI? Optional if you have your own icon link\n *\n * @returns The anchor tag for the subject\n *\n */\n\nexport function linkIcon (dom: HTMLDocument, subject: NamedNode, iconURI?: string): HTMLElement {\n const anchor = dom.createElement('a')\n anchor.setAttribute('href', subject.uri)\n if (subject.uri.startsWith('http')) {\n // If diff web page\n anchor.setAttribute('target', '_blank') // open in a new tab or window\n } // as mailboxes and mail messages do not need new browser window\n if (iconURI) {\n const img = anchor.appendChild(dom.createElement('img'))\n img.setAttribute('src', iconURI)\n img.setAttribute('style', 'margin: 0.3em;')\n } else {\n anchor.setAttribute('aria-label', 'Open resource')\n const icon = anchor.appendChild(dom.createElement('icon-lucide-square-arrow-out-up-right'))\n icon.setAttribute('aria-hidden', 'true')\n icon.setAttribute('style', 'display: inline-block; width: 1em; height: 1em; margin: 0.2em; color: var(--color-text-secondary, #4A5565);')\n }\n return anchor\n}\n/**\n * Creates a Link for a URI\n *\n * Takes a div element for a link and attaches the provided linkIcon\n *\n * @param dom The HTML Document object aka Document Object Model\n * @param linkDiv the created link will be appended to this\n * @param obj NamedNode the link needs to be created for\n *\n * @returns The HTML widget created\n *\n */\n\nexport const createLinkForURI = (dom: HTMLDocument, linkDiv: HTMLDivElement, obj: NamedNode) => {\n const iconLink = linkIcon(dom, obj)\n const anchor = linkDiv.appendChild(iconLink)\n anchor.classList.add('HoverControlHide')\n linkDiv.appendChild(dom.createElement('br'))\n}\n"],"mappings":";;AAgBA,SAAgBA,EAAU,GAAmB,GAAoB,GAA+B;CAC9F,IAAMC,IAASC,EAAI,cAAc,GAAG;CAMpC,IALAD,EAAO,aAAa,QAAQE,EAAQ,GAAG,GACnCA,EAAQ,IAAI,WAAW,MAAM,KAE/BF,EAAO,aAAa,UAAU,QAAQ,GAEpCG,GAAS;EACX,IAAMC,IAAMJ,EAAO,YAAYC,EAAI,cAAc,KAAK,CAAC;EAEvD,AADAG,EAAI,aAAa,OAAOD,CAAO,GAC/BC,EAAI,aAAa,SAAS,gBAAgB;CAC5C,OAAO;EACL,EAAO,aAAa,cAAc,eAAe;EACjD,IAAMC,IAAOL,EAAO,YAAYC,EAAI,cAAc,uCAAuC,CAAC;EAE1F,AADAI,EAAK,aAAa,eAAe,MAAM,GACvCA,EAAK,aAAa,SAAS,6GAA6G;CAC1I;CACA,OAAOL;AACT;AAcA,IAAaM,KAAoB,GAAmB,GAAyB,MAAmB;CAC9F,IAAMC,IAAWR,EAASE,GAAKO,CAAG;CAGlC,AADAC,EADuB,YAAYF,CACnC,CAAA,CAAO,UAAU,IAAI,kBAAkB,GACvCE,EAAQ,YAAYR,EAAI,cAAc,IAAI,CAAC;AAC7C"}
@@ -1,4 +1,4 @@
1
- const e=require("../lib/ns.cjs.js"),t=require("../lib/log.cjs.js"),n=require("../utils/label.cjs.js"),r=require("../utils/index.cjs.js"),i=require("../lib/debug.cjs.js"),a=require("../lib/style.cjs.js"),o=require("./dragAndDrop.cjs.js"),s=require("./error.cjs.js"),c=require("../lib/iconBase.cjs.js"),l=require("../lib/newperson.cjs.js"),u=require("./widgetHelpers.cjs.js"),d=require("./buttons/iconLinks.cjs.js");let f=require("rdflib"),p=require("solid-logic");var{iconBase:m}=c.icons,h=m+`noun_1180156.svg`,g=m+`noun_1180158.svg`;function _(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(!n&&typeof document<`u`&&(n=document),n){let r=n.getElementsByTagName(`body`)[0];return t=n.createElement(`div`),r.insertBefore(t,r.firstElementChild),e&&(e.statusArea=t),t}return null}function v(e,t){if(!t)return;let n=_(e);i.log(`Complaint: `+t),n?n.appendChild(s.errorMessageBlock(e&&e.dom||document,t)):alert(t)}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function b(e){let t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function x(e,t){if(!e)return`???`;let n=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];try{let r=new Date().toISOString();return e.slice(0,10)===r.slice(0,10)&&!t?e.slice(11,16):e.slice(0,4)===r.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+` `+parseInt(e.slice(8,10),10):e.slice(0,10)}catch(e){return`shortdate:`+e}}function S(e,t){return t.split(`{`).map(function(t){let n=t.split(`}`)[0];return t?(`000`+(e[`get`+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split(`}`)[1]:``}).join(``)}function C(){return S(new Date,`{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function w(){return S(new Date,`{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function T(t,r){let i=p.store,a=function(t){let n=i.any(t,e.default.vcard(`fn`))||i.any(t,e.default.foaf(`name`))||i.any(t,e.default.vcard(`organization-name`));return n?n.value:null},o=r.sameTerm(e.default.foaf(`Agent`))?`Everyone`:a(r);if(t.textContent=o||n.label(r),!o&&r.uri){if(!i.fetcher)throw Error(`kb has no fetcher`);i.fetcher.nowOrWhenFetched(r.doc(),void 0,function(e){t.textContent=a(r)||n.label(r)})}}function E(t,n){return n.each(t,e.default.sioc(`avatar`)).concat(n.each(t,e.default.foaf(`img`))).concat(n.each(t,e.default.vcard(`logo`))).concat(n.each(t,e.default.vcard(`hasPhoto`))).concat(n.each(t,e.default.vcard(`photo`))).concat(n.each(t,e.default.foaf(`depiction`)))}var D={"solid:AppProviderClass":`noun_144.svg`,"solid:AppProvider":`noun_15177.svg`,"solid:Pod":`noun_Cabinet_1434380.svg`,"vcard:Group":`noun_339237.svg`,"vcard:Organization":`noun_143899.svg`,"vcard:Individual":l.default,"schema:Person":l.default,"foaf:Person":l.default,"foaf:Agent":`noun_98053.svg`,"acl:AuthenticatedAgent":`noun_99101.svg`,"prov:SoftwareAgent":`noun_Robot_849764.svg`,"vcard:AddressBook":`noun_15695.svg`,"trip:Trip":`noun_581629.svg`,"meeting:LongChat":`noun_1689339.svg`,"meeting:Meeting":`noun_66617.svg`,"meeting:Project":`noun_1036577.svg`,"ui:Form":`noun_122196.svg`,"rdfs:Class":`class-rectangle.svg`,"rdf:Property":`property-diamond.svg`,"owl:Ontology":`noun_classification_1479198.svg`,"wf:Tracker":`noun_122196.svg`,"wf:Task":`noun_17020_gray-tick.svg`,"wf:Open":`noun_17020_sans-tick.svg`,"wf:Closed":`noun_17020.svg`};function O(e){let t=e.uri.split(`#`)[0],n=t.indexOf(`//`);if(n<0)throw Error(`This URI does not have a web site part (origin)`);let r=t.indexOf(`/`,n+2);return r<0?t.slice(0)+`/`:t.slice(0,r+1)}function k(e){let t=m;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?O(e)+`favicon.ico`:null:t+`noun_10636_grey.svg`}function A(t){let n=p.store,r=m;if(t.sameTerm(e.default.foaf(`Agent`))||t.sameTerm(e.default.rdf(`Resource`)))return r+`noun_98053.svg`;let i=n.any(t,e.default.sioc(`avatar`))||n.any(t,e.default.foaf(`img`))||n.any(t,e.default.vcard(`logo`))||n.any(t,e.default.vcard(`hasPhoto`))||n.any(t,e.default.vcard(`photo`))||n.any(t,e.default.foaf(`depiction`));return i?i.uri:null}function j(e,t,n){let r=p.store,i=A(t);if(i)return e.setAttribute(`src`,i),!0;let o=n[t.uri];if(o)return e.setAttribute(`src`,o),e.style=a.style.classIconStyle,!0;let s=k(t);if(s)return e.setAttribute(`src`,s),!0;let c=r.findTypeURIs(t);for(let t in c)if(n[t])return e.setAttribute(`src`,n[t]),!1;return e.setAttribute(`src`,m+`noun_10636_grey.svg`),!1}function M(t,n){let r=p.store,i={};for(let t in D){let n=t.split(`:`)[0],r=t.split(`:`)[1],a=e.default[n](r),o=D[t];o.startsWith(`data:`)?i[a.uri]=o:i[a.uri]=f.uri.join(o,m)}if(!j(t,n,i)&&n.uri){if(!r.fetcher)throw Error(`kb has no fetcher`);r.fetcher.nowOrWhenFetched(n.doc(),void 0,e=>{e&&j(t,n,i)})}}function N(e,t){let n=e.createElement(`img`);if(n.style=a.style.iconStyle,n.setAttribute(`src`,m+(function(e){if(!e.uri)return!1;let t=e.uri.split(`/`);return t.length===3||t.length===4&&t[3]===``}(t)?`noun_15177.svg`:`noun_681601.svg`)),t.uri&&t.uri.startsWith(`https:`)&&t.uri.indexOf(`#`)<0){let r=e.createElement(`object`);return r.setAttribute(`data`,O(t)+`favicon.ico`),r.setAttribute(`type`,`image/x-icon`),r.appendChild(n),r}return M(n,t),n}function ee(e,t,n,r){function i(){t.parentElement.removeChild(t)}function o(){i(),r()}let s=e.createElement(`div`);s.style=a.style.confirmPopupStyle,s.style.position=`absolute`,s.style.top=`-1em`,s.style.display=`grid`,s.style.gridTemplateColumns=`auto auto`;let l=e.createElement(`div`);l.style.gridColumn=`1/2`,l.style.gridRow=`1`;let u=e.createElement(`div`);u.style.gridColumn=`1/2`,u.style.gridRow=`2`;let d=I(e,i);s.appendChild(d),d.style.gridColumn=`1`,d.style.gridRow=`2`;let f=s.appendChild(e.createElement(`button`));f.style=a.style.buttonStyle,f.style.gridRow=`2`,f.style.gridColumn=`2`,f.textContent=`Cancel`;let p=F(e,c.icons.iconBase+`noun_925021.svg`,`Delete it`);s.appendChild(p),p.style.gridRow=`1`,p.style.gridColumn=`1`;let m=s.appendChild(e.createElement(`button`));return m.style=a.style.buttonStyle,m.style.gridRow=`1`,m.style.gridColumn=`2`,m.textContent=n,s.appendChild(m),p.addEventListener(`click`,o),m.addEventListener(`click`,o),f.addEventListener(`click`,i),s}function P(e,t,n,r){function i(){let n=e.createElement(`div`);t.insertBefore(n,s),n.style.position=`relative`,n.appendChild(ee(e,n,c,r))}let o=m+`noun_2188_red.svg`,s=e.createElement(`img`);s.setAttribute(`src`,o),s.setAttribute(`style`,a.style.smallButtonStyle),s.style.float=`right`;let c=`Remove this `+n;return s.title=c,s.classList.add(`hoverControlHide`),s.addEventListener(`click`,i),t.classList.add(`hoverControl`),t.appendChild(s),s.setAttribute(`data-testid`,`deleteButtonWithCheck`),s}function F(e,t,n,r,i={buttonColor:`Primary`,needsBorder:!1}){let o=e.createElement(`button`);if(o.setAttribute(`type`,`button`),t){let r=o.appendChild(e.createElement(`img`));r.setAttribute(`src`,t),r.setAttribute(`style`,`width: 2em; height: 2em;`),r.title=n,o.setAttribute(`style`,a.style.buttonStyle)}else o.textContent=n.toLocaleUpperCase(),o.onmouseover=function(){i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorderHover):o.setAttribute(`style`,a.style.secondaryButtonHover):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorderHover):o.setAttribute(`style`,a.style.primaryButtonHover)},o.onmouseout=function(){i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorder):o.setAttribute(`style`,a.style.secondaryButton):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorder):o.setAttribute(`style`,a.style.primaryButton)},i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorder):o.setAttribute(`style`,a.style.secondaryButton):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorder):o.setAttribute(`style`,a.style.primaryButton);return r&&o.addEventListener(`click`,r,!1),o}function I(e,t){let n=F(e,h,`Cancel`,t);return n.firstChild&&(n.firstChild.style.opacity=`0.3`),n}function L(e,t){return F(e,g,`Continue`,t)}function R(t,r,i,o,s,c){return new Promise(function(r,l){let u=t.createElement(`div`);o||=e.default.foaf(`name`),c||=s?n.label(s):` `;let d=c+` `+n.label(o)+`: `;u.appendChild(t.createElement(`p`)).textContent=d;let f=t.createElement(`input`);f.setAttribute(`type`,`text`),f.setAttribute(`size`,`100`),f.setAttribute(`maxLength`,`2048`),f.setAttribute(`style`,a.style.textInputStyle),f.select(),u.appendChild(f),i.appendChild(u);function p(){u.parentNode.removeChild(u),r(f.value.trim())}f.addEventListener(`keyup`,function(e){e.keyCode===13&&p()},!1),u.appendChild(t.createElement(`br`)),u.appendChild(I(t,function(e){u.parentNode.removeChild(u),r(null)})),u.appendChild(L(t,function(e){p()})),f.focus()})}var z=B;function B(e,t,n,r){let i=e.createElement(`tr`);r||={};let a=i.appendChild(e.createElement(`td`)),s=i.appendChild(e.createElement(`td`)),c=i.appendChild(e.createElement(`td`)),l=r.image||N(e,n);a.setAttribute(`style`,`vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;`),s.setAttribute(`style`,`vertical-align: middle; text-align:left;`),c.setAttribute(`style`,`vertical-align: middle; width:2em; padding:0.5em; height: 4em;`),a.appendChild(l);let u=s.appendChild(e.createElement(`div`)),f=u.appendChild(e.createElement(`span`));if(r.title?f.textContent=r.title:T(f,n),typeof r.renderNameSuffix==`function`){let t=r.renderNameSuffix(n,e);if(t){let n=u.appendChild(e.createElement(`span`));n.setAttribute(`style`,`margin-left: 0.4em; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}if(typeof r.renderSupportingInfo==`function`){let t=r.renderSupportingInfo(n,e);if(t){let n=s.appendChild(e.createElement(`div`));n.setAttribute(`style`,`font-size: 90%; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}return r.deleteFunction&&P(e,c,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&(c.appendChild(d.linkIcon(e,n)).classList.add(`HoverControlHide`),c.appendChild(e.createElement(`br`))),r.draggable!==!1&&(l.setAttribute(`draggable`,`false`),o.makeDraggable(i,n))),i.subject=n,i}function V(e,t,n,r){let i=t.appendChild(e.createElement(`div`));n?i.textContent=n:T(i,r)}function H(e,t,n,r){let i=t.appendChild(e.createElement(`div`));i.setAttribute(`style`,a.style.linkDivStyle),r.deleteFunction&&P(e,i,r.noun||`one`,r.deleteFunction),n.uri&&(r.link!==!1&&d.createLinkForURI(e,i,n),o.makeDraggable(t,n))}function U(e,t,n){let r=e.createElement(`div`);r.setAttribute(`style`,a.style.renderAsDivStyle),n||={};let i=n.image||N(e,t);return u.createImageDiv(e,r,i),V(e,r,n.title,t),H(e,r,t,n),n.clickable&&n.onClickFunction&&u.addClickListenerToElement(r,n.onClickFunction),n.wrapInATR?u.wrapDivInATR(e,r,t):r}function W(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)W(e.children[t])}function G(t,n,a,s={}){let c=new Set,l=!!(s.renderSupportingInfo||s.renderNameSuffix),u=s.refreshOnDocumentLoad??!0,d=function(e){if(!T.updater)throw Error(`kb has no updater`);T.updater.update((0,f.st)(n,C,e,b),[],function(e,t,n,r){t?g():v(void 0,`Error deleting one: `+n)})};function h(e){let n=e,r={noun:w};if(r.renderSupportingInfo=s.renderSupportingInfo,r.renderNameSuffix=s.renderNameSuffix,l&&u&&e?.uri&&T.fetcher){let t=e.doc(),n=t?.uri?T.fetcher.requested?.[t.uri]:void 0,r=n!==`done`&&n!==`failed`;t?.uri&&r&&!c.has(t.uri)&&(c.add(t.uri),T.fetcher.nowOrWhenFetched(t,void 0,()=>{c.delete(t.uri),g()}))}return x&&(r.deleteFunction=function(){d(n)}),z(t,C,e,r)}let g=function(){let e=T.each(n,C);e.sort(),r.syncTableToArray(k,e,h,l?function(e,t){return h(t)}:void 0)};function _(e){let t=[];if(e.forEach(function(e){let r=(0,f.sym)(e);i.log(`Dropped on attachemnt `+e),t.push((0,f.st)(n,C,r,b))}),!T.updater)throw Error(`kb has no updater`);T.updater.update([],t,function(e,t,n,r){t?g():v(void 0,`Error adding one: `+n)})}function y(e){o.uploadFiles(T.fetcher,e,s.uploadFolder?.uri,s.uploadFolder?.uri,function(e,t){let r=[(0,f.st)(n,C,T.sym(t),b)];if(!T.updater)throw Error(`kb has no updater`);T.updater.update([],r,function(e,t,n,r){t?g():v(void 0,`Error adding link to uploaded file: `+n)})})}let b=s.doc||n.doc();s.modify===void 0&&(s.modify=!0);let x=s.modify,S=s.promptIcon||m+`noun_748003.svg`,C=s.predicate||e.default.wf(`attachment`),w=s.noun||`attachment`,T=p.store,E=a.appendChild(t.createElement(`table`));E.setAttribute(`style`,`margin-top: 1em; margin-bottom: 1em;`);let D=E.appendChild(t.createElement(`tr`)),O=D.appendChild(t.createElement(`td`)),k=D.appendChild(t.createElement(`td`)).appendChild(t.createElement(`table`));if(k.appendChild(t.createElement(`tr`)),E.refresh=g,g(),x){let e=F(t,S,`Drop attachments here`);O.appendChild(e);let n=s.uploadFolder?y:null;o.makeDropTarget(e,_,n);let r=e.querySelector(`img`);if(r&&o.makeDropTarget(r,_,n),o.makeDropTarget(O,_,n),s.uploadFolder){let e=$(t,y);O.appendChild(e)}}return E}function K(e){e.preventDefault(),e.stopPropagation();let t=r.getTarget(e).getAttribute(`href`);if(!t)return i.log(`openHrefInOutlineMode: No href found!
1
+ const e=require("../lib/ns.cjs.js"),t=require("../lib/log.cjs.js"),n=require("../utils/label.cjs.js"),r=require("../utils/index.cjs.js"),i=require("../lib/debug.cjs.js"),a=require("../lib/style.cjs.js"),o=require("./dragAndDrop.cjs.js"),s=require("./error.cjs.js"),c=require("../lib/iconBase.cjs.js"),l=require("../lib/newperson.cjs.js"),u=require("./widgetHelpers.cjs.js"),d=require("./buttons/iconLinks.cjs.js");let f=require("rdflib"),p=require("solid-logic");var{iconBase:m}=c.icons,h=m+`noun_1180156.svg`,g=m+`noun_1180158.svg`;function _(e){let t=e&&e.statusArea||e&&e.div||null;if(t)return t;let n=e&&e.dom;if(!n&&typeof document<`u`&&(n=document),n){let r=n.getElementsByTagName(`body`)[0];return t=n.createElement(`div`),r.insertBefore(t,r.firstElementChild),e&&(e.statusArea=t),t}return null}function v(e,t){if(!t)return;let n=_(e);i.log(`Complaint: `+t),n?n.appendChild(s.errorMessageBlock(e&&e.dom||document,t)):alert(t)}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function b(e){let t=e.search(/logFile=/),n=e.search(/&rulesFile=/);return e.substring(t+8,n)}function x(e,t){if(!e)return`???`;let n=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];try{let r=new Date().toISOString();return e.slice(0,10)===r.slice(0,10)&&!t?e.slice(11,16):e.slice(0,4)===r.slice(0,4)?n[parseInt(e.slice(5,7),10)-1]+` `+parseInt(e.slice(8,10),10):e.slice(0,10)}catch(e){return`shortdate:`+e}}function S(e,t){return t.split(`{`).map(function(t){let n=t.split(`}`)[0];return t?(`000`+(e[`get`+n]()+({Month:1}[n]||0))).slice(-({Milliseconds:3,FullYear:4}[n]||2))+t.split(`}`)[1]:``}).join(``)}function C(){return S(new Date,`{FullYear}-{Month}-{Date}T{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function w(){return S(new Date,`{Hours}:{Minutes}:{Seconds}.{Milliseconds}`)}function T(t,r){let i=p.store,a=function(t){let n=i.any(t,e.default.vcard(`fn`))||i.any(t,e.default.foaf(`name`))||i.any(t,e.default.vcard(`organization-name`));return n?n.value:null},o=r.sameTerm(e.default.foaf(`Agent`))?`Everyone`:a(r);if(t.textContent=o||n.label(r),!o&&r.uri){if(!i.fetcher)throw Error(`kb has no fetcher`);i.fetcher.nowOrWhenFetched(r.doc(),void 0,function(e){t.textContent=a(r)||n.label(r)})}}function E(t,n){return n.each(t,e.default.sioc(`avatar`)).concat(n.each(t,e.default.foaf(`img`))).concat(n.each(t,e.default.vcard(`logo`))).concat(n.each(t,e.default.vcard(`hasPhoto`))).concat(n.each(t,e.default.vcard(`photo`))).concat(n.each(t,e.default.foaf(`depiction`)))}var D={"solid:AppProviderClass":`noun_144.svg`,"solid:AppProvider":`noun_15177.svg`,"solid:Pod":`noun_Cabinet_1434380.svg`,"vcard:Group":`noun_339237.svg`,"vcard:Organization":`noun_143899.svg`,"vcard:Individual":l.default,"schema:Person":l.default,"foaf:Person":l.default,"foaf:Agent":`noun_98053.svg`,"acl:AuthenticatedAgent":`noun_99101.svg`,"prov:SoftwareAgent":`noun_Robot_849764.svg`,"vcard:AddressBook":`noun_15695.svg`,"trip:Trip":`noun_581629.svg`,"meeting:LongChat":`noun_1689339.svg`,"meeting:Meeting":`noun_66617.svg`,"meeting:Project":`noun_1036577.svg`,"ui:Form":`noun_122196.svg`,"rdfs:Class":`class-rectangle.svg`,"rdf:Property":`property-diamond.svg`,"owl:Ontology":`noun_classification_1479198.svg`,"wf:Tracker":`noun_122196.svg`,"wf:Task":`noun_17020_gray-tick.svg`,"wf:Open":`noun_17020_sans-tick.svg`,"wf:Closed":`noun_17020.svg`};function O(e){let t=e.uri.split(`#`)[0],n=t.indexOf(`//`);if(n<0)throw Error(`This URI does not have a web site part (origin)`);let r=t.indexOf(`/`,n+2);return r<0?t.slice(0)+`/`:t.slice(0,r+1)}function k(e){let t=m;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?O(e)+`favicon.ico`:null:t+`noun_10636_grey.svg`}function A(t){let n=p.store,r=m;if(t.sameTerm(e.default.foaf(`Agent`))||t.sameTerm(e.default.rdf(`Resource`)))return r+`noun_98053.svg`;let i=n.any(t,e.default.sioc(`avatar`))||n.any(t,e.default.foaf(`img`))||n.any(t,e.default.vcard(`logo`))||n.any(t,e.default.vcard(`hasPhoto`))||n.any(t,e.default.vcard(`photo`))||n.any(t,e.default.foaf(`depiction`));return i?i.uri:null}function j(e,t,n){let r=p.store,i=A(t);if(i)return e.setAttribute(`src`,i),!0;let o=n[t.uri];if(o)return e.setAttribute(`src`,o),e.style=a.style.classIconStyle,!0;let s=k(t);if(s)return e.setAttribute(`src`,s),!0;let c=r.findTypeURIs(t);for(let t in c)if(n[t])return e.setAttribute(`src`,n[t]),!1;return e.setAttribute(`src`,m+`noun_10636_grey.svg`),!1}function M(t,n){let r=p.store,i={};for(let t in D){let n=t.split(`:`)[0],r=t.split(`:`)[1],a=e.default[n](r),o=D[t];o.startsWith(`data:`)?i[a.uri]=o:i[a.uri]=f.uri.join(o,m)}if(!j(t,n,i)&&n.uri){if(!r.fetcher)throw Error(`kb has no fetcher`);r.fetcher.nowOrWhenFetched(n.doc(),void 0,e=>{e&&j(t,n,i)})}}function N(e,t){let n=e.createElement(`img`);if(n.style=a.style.iconStyle,n.setAttribute(`src`,m+(function(e){if(!e.uri)return!1;let t=e.uri.split(`/`);return t.length===3||t.length===4&&t[3]===``}(t)?`noun_15177.svg`:`noun_681601.svg`)),t.uri&&t.uri.startsWith(`https:`)&&t.uri.indexOf(`#`)<0){let r=e.createElement(`object`);return r.setAttribute(`data`,O(t)+`favicon.ico`),r.setAttribute(`type`,`image/x-icon`),r.appendChild(n),r}return M(n,t),n}function ee(e,t,n,r,i){function o(){t.remove(),i()}function s(){o();let e=r();if(e&&typeof e.then==`function`)return e.then(i);i()}let l=e.createElement(`div`);l.style.cssText=a.style.confirmPopupStyle,l.style.position=`absolute`,l.style.top=`-1em`,l.style.display=`grid`,l.style.gridTemplateColumns=`auto auto`;let u=e.createElement(`div`);u.style.gridColumn=`1/2`,u.style.gridRow=`1`;let d=e.createElement(`div`);d.style.gridColumn=`1/2`,d.style.gridRow=`2`;let f=I(e,o);l.appendChild(f),f.style.gridColumn=`1`,f.style.gridRow=`2`;let p=l.appendChild(e.createElement(`button`));p.style.cssText=a.style.buttonStyle,p.style.gridRow=`2`,p.style.gridColumn=`2`,p.textContent=`Cancel`;let m=F(e,c.icons.iconBase+`noun_925021.svg`,`Delete it`);l.appendChild(m),m.style.gridRow=`1`,m.style.gridColumn=`1`;let h=l.appendChild(e.createElement(`button`));return h.style.cssText=a.style.buttonStyle,h.style.gridRow=`1`,h.style.gridColumn=`2`,h.textContent=n,l.appendChild(h),m.addEventListener(`click`,s),h.addEventListener(`click`,s),p.addEventListener(`click`,o),l}function P(e,t,n,r,i){function o(){let n=`button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`,a=[];if(i)for(let e=t;e;e=e.parentElement){let t=Array.from(e.querySelectorAll(n));a.push({element:e,index:t.indexOf(c)})}function o(){if(!i)return;if(c.isConnected){c.focus();return}for(let e of a){if(!e.element.isConnected)continue;let t=e.element.querySelectorAll(n);if(t.length){t[Math.min(Math.max(e.index,0),t.length-1)].focus();return}}let e=a.find(e=>e.element.isConnected);e&&(e.element.tabIndex=-1,e.element.focus())}let s=e.createElement(`div`);i?(i.querySelector(`:scope > [data-delete-confirmation]`)?.remove(),s.setAttribute(`data-delete-confirmation`,``),s.setAttribute(`role`,`dialog`),s.setAttribute(`aria-label`,l),i.appendChild(s)):(t.insertBefore(s,c),s.style.position=`relative`);let u=ee(e,s,l,r,o);s.appendChild(u),i&&(u.style.position=`static`,u.style.top=``,Array.from(u.querySelectorAll(`button`)).find(e=>e.textContent===`Cancel`)?.focus())}let s=m+`noun_2188_red.svg`,c=e.createElement(`img`);c.setAttribute(`src`,s),c.tabIndex=0,c.setAttribute(`role`,`button`),c.setAttribute(`style`,a.style.smallButtonStyle),c.style.float=`right`;let l=`Remove this `+n;return c.title=l,c.setAttribute(`aria-label`,l),c.classList.add(`hoverControlHide`),c.addEventListener(`click`,o),c.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c.click())}),t.classList.add(`hoverControl`),t.appendChild(c),c.setAttribute(`data-testid`,`deleteButtonWithCheck`),c}function F(e,t,n,r,i={buttonColor:`Primary`,needsBorder:!1}){let o=e.createElement(`button`);if(o.setAttribute(`type`,`button`),t){let r=o.appendChild(e.createElement(`img`));r.setAttribute(`src`,t),r.setAttribute(`style`,`width: 2em; height: 2em;`),r.title=n,o.setAttribute(`style`,a.style.buttonStyle)}else o.textContent=n.toLocaleUpperCase(),o.onmouseover=function(){i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorderHover):o.setAttribute(`style`,a.style.secondaryButtonHover):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorderHover):o.setAttribute(`style`,a.style.primaryButtonHover)},o.onmouseout=function(){i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorder):o.setAttribute(`style`,a.style.secondaryButton):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorder):o.setAttribute(`style`,a.style.primaryButton)},i.buttonColor===`Secondary`?i.needsBorder?o.setAttribute(`style`,a.style.secondaryButtonNoBorder):o.setAttribute(`style`,a.style.secondaryButton):i.needsBorder?o.setAttribute(`style`,a.style.primaryButtonNoBorder):o.setAttribute(`style`,a.style.primaryButton);return r&&o.addEventListener(`click`,r,!1),o}function I(e,t){let n=F(e,h,`Cancel`,t);return n.firstChild&&(n.firstChild.style.opacity=`0.3`),n}function L(e,t){return F(e,g,`Continue`,t)}function R(t,r,i,o,s,c){return new Promise(function(r,l){let u=t.createElement(`div`);o||=e.default.foaf(`name`),c||=s?n.label(s):` `;let d=c+` `+n.label(o)+`: `;u.appendChild(t.createElement(`p`)).textContent=d;let f=t.createElement(`input`);f.setAttribute(`type`,`text`),f.setAttribute(`size`,`100`),f.setAttribute(`maxLength`,`2048`),f.setAttribute(`style`,a.style.textInputStyle),f.select(),u.appendChild(f),i.appendChild(u);function p(){u.parentNode.removeChild(u),r(f.value.trim())}f.addEventListener(`keyup`,function(e){e.keyCode===13&&p()},!1),u.appendChild(t.createElement(`br`)),u.appendChild(I(t,function(e){u.parentNode.removeChild(u),r(null)})),u.appendChild(L(t,function(e){p()})),f.focus()})}var z=B;function B(e,t,n,r){let i=e.createElement(`tr`);r||={};let a=i.appendChild(e.createElement(`td`)),s=i.appendChild(e.createElement(`td`)),c=i.appendChild(e.createElement(`td`)),l=r.image||N(e,n);a.setAttribute(`style`,`vertical-align: middle; width:2.5em; padding:0.5em; height: 2.5em;`),s.setAttribute(`style`,`vertical-align: middle; text-align:left;`),c.setAttribute(`style`,`vertical-align: middle; width:2em; padding:0.5em; height: 4em;`),a.appendChild(l);let u=s.appendChild(e.createElement(`div`)),f=u.appendChild(e.createElement(`span`));if(r.title?f.textContent=r.title:T(f,n),typeof r.renderNameSuffix==`function`){let t=r.renderNameSuffix(n,e);if(t){let n=u.appendChild(e.createElement(`span`));n.setAttribute(`style`,`margin-left: 0.4em; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}if(typeof r.renderSupportingInfo==`function`){let t=r.renderSupportingInfo(n,e);if(t){let n=s.appendChild(e.createElement(`div`));n.setAttribute(`style`,`font-size: 90%; opacity: 0.8;`),typeof t==`string`?n.textContent=t:n.appendChild(t)}}return r.deleteFunction&&P(e,c,r.noun||`one`,r.deleteFunction,r.confirmationContainer),n.uri&&(r.link!==!1&&(c.appendChild(d.linkIcon(e,n)).classList.add(`HoverControlHide`),c.appendChild(e.createElement(`br`))),r.draggable!==!1&&(l.setAttribute(`draggable`,`false`),o.makeDraggable(i,n))),i.subject=n,i}function V(e,t,n,r){let i=t.appendChild(e.createElement(`div`));n?i.textContent=n:T(i,r)}function H(e,t,n,r){let i=t.appendChild(e.createElement(`div`));i.setAttribute(`style`,a.style.linkDivStyle),r.deleteFunction&&P(e,i,r.noun||`one`,r.deleteFunction,r.confirmationContainer),n.uri&&(r.link!==!1&&d.createLinkForURI(e,i,n),o.makeDraggable(t,n))}function U(e,t,n){let r=e.createElement(`div`);r.setAttribute(`style`,a.style.renderAsDivStyle),n||={};let i=n.image||N(e,t);return u.createImageDiv(e,r,i),V(e,r,n.title,t),H(e,r,t,n),n.clickable&&n.onClickFunction&&u.addClickListenerToElement(r,n.onClickFunction),n.wrapInATR?u.wrapDivInATR(e,r,t):r}function W(e){if(e.refresh)e.refresh();else for(let t=0;t<e.children.length;t++)W(e.children[t])}function G(t,n,a,s={}){let c=new Set,l=!!(s.renderSupportingInfo||s.renderNameSuffix),u=s.refreshOnDocumentLoad??!0,d=function(e){let t=T.updater;if(!t)throw Error(`kb has no updater`);return new Promise(r=>t.update((0,f.st)(n,C,e,b),[],function(e,t,n,i){t?g():v(void 0,`Error deleting one: `+n),r()}))};function h(e){let n=e,r={noun:w};if(r.renderSupportingInfo=s.renderSupportingInfo,r.renderNameSuffix=s.renderNameSuffix,r.confirmationContainer=s.confirmationContainer,l&&u&&e?.uri&&T.fetcher){let t=e.doc(),n=t?.uri?T.fetcher.requested?.[t.uri]:void 0,r=n!==`done`&&n!==`failed`;t?.uri&&r&&!c.has(t.uri)&&(c.add(t.uri),T.fetcher.nowOrWhenFetched(t,void 0,()=>{c.delete(t.uri),g()}))}return x&&(r.deleteFunction=function(){return d(n)}),z(t,C,e,r)}let g=function(){let e=T.each(n,C);e.sort(),r.syncTableToArray(k,e,h,l?function(e,t){return h(t)}:void 0)};function _(e){let t=[];if(e.forEach(function(e){let r=(0,f.sym)(e);i.log(`Dropped on attachemnt `+e),t.push((0,f.st)(n,C,r,b))}),!T.updater)throw Error(`kb has no updater`);T.updater.update([],t,function(e,t,n,r){t?g():v(void 0,`Error adding one: `+n)})}function y(e){o.uploadFiles(T.fetcher,e,s.uploadFolder?.uri,s.uploadFolder?.uri,function(e,t){let r=[(0,f.st)(n,C,T.sym(t),b)];if(!T.updater)throw Error(`kb has no updater`);T.updater.update([],r,function(e,t,n,r){t?g():v(void 0,`Error adding link to uploaded file: `+n)})})}let b=s.doc||n.doc();s.modify===void 0&&(s.modify=!0);let x=s.modify,S=s.promptIcon||m+`noun_748003.svg`,C=s.predicate||e.default.wf(`attachment`),w=s.noun||`attachment`,T=p.store,E=a.appendChild(t.createElement(`table`));E.setAttribute(`style`,`margin-top: 1em; margin-bottom: 1em;`);let D=E.appendChild(t.createElement(`tr`)),O=D.appendChild(t.createElement(`td`)),k=D.appendChild(t.createElement(`td`)).appendChild(t.createElement(`table`));if(k.appendChild(t.createElement(`tr`)),E.refresh=g,g(),x){let e=F(t,S,`Drop attachments here`);O.appendChild(e);let n=s.uploadFolder?y:null;o.makeDropTarget(e,_,n);let r=e.querySelector(`img`);if(r&&o.makeDropTarget(r,_,n),o.makeDropTarget(O,_,n),s.uploadFolder){let e=$(t,y);O.appendChild(e)}}return E}function K(e){e.preventDefault(),e.stopPropagation();let t=r.getTarget(e).getAttribute(`href`);if(!t)return i.log(`openHrefInOutlineMode: No href found!
2
2
  `);let n=window.document;n.outlineManager?n.outlineManager.GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):window&&window.panes&&window.panes.getOutliner?window.panes.getOutliner().GotoSubject(p.store.sym(t),!0,void 0,!0,void 0):i.log(`ERROR: Can't access outline manager in this config`)}function q(e){if(e.uri===void 0)return;let t=e.uri;if(t.slice(0,7)!==`http://`)return;t=t.slice(7);let n=t.indexOf(`#`);if(n>=0)t=t.slice(0,n);else{let e=t.lastIndexOf(`/`);if(e<0)return;t=t.slice(0,e)}return p.store.sym(`http://tabulator.org/wiki/annnotation/`+t)}function J(){let t={};return p.store.statementsMatching(void 0,e.default.rdf(`type`),void 0).forEach(function(e){e.object.value&&(t[e.object.value]=!0)}),p.store.statementsMatching(void 0,e.default.rdfs(`subClassOf`),void 0).forEach(function(e){e.object.value&&(t[e.object.value]=!0),e.subject.value&&(t[e.subject.value]=!0)}),p.store.each(void 0,e.default.rdf(`type`),e.default.rdfs(`Class`)).forEach(function(e){e.value&&(t[e.value]=!0)}),t}function Y(n){let r={},i={},a={},o=0,s=0,c=0,l=n.predicateIndex;for(let e in l)l[e][0].object.termType===`Literal`?(i[e]=!0,s++):(a[e]=!0,o++);let u=n.each(void 0,e.default.rdf(`type`),e.default.rdf(`Property`));for(let e=0;e<u.length;e++){let t=u[e].toNT();!a[t]&&!i[t]&&(i[t]=!0,a[t]=!0,c++)}return r.op=a,r.dp=i,t.info(`propertyTriage: ${o} non-lit, ${s} literal. ${c} unknown.`),r}function te(e,t){let r=e.createElement(`button`);return r.setAttribute(`type`,`button`),r.textContent=`Goto `+n.label(t),r.addEventListener(`click`,function(n){e.outlineManager.GotoSubject(t,!0,void 0,!0,void 0)},!0),r}function ne(e,t){let n=e.createElement(`button`);return n.setAttribute(`type`,`button`),n.textContent=`✕`,n.addEventListener(`click`,function(e){t.parentNode.removeChild(t)},!0),n}function re(e,t,n,r,i,a,o,s,c){return X(e.createElement(`div`),e,t,n,r,i,a,o,s,c)}function X(e,t,n,r,i,a,o,s,c,l){let u=`border: 0.1em solid #ddd; border-bottom: none; width: 95%; height: 2em; padding: 0.5em;`,d=null;e.innerHTML=``;let f=function(e,o){let f,p,h=function(){let e=a?n.each(void 0,i,o):n.each(o,i);v.setAttribute(`class`,e.length===0?`hideTillHover`:``),p.setAttribute(`src`,s.connectIcon||m+`noun_25830.svg`),p.setAttribute(`title`,e.length?e.length:`attach`)};f=Z.twoLine.widgetForClass(r)(t,o),f.setAttribute(`style`,u);let g=t.createElement(`div`);g.setAttribute(`class`,`hideTillHover`),g.setAttribute(`style`,`float:right; width:10%`);let _=t.createElement(`a`);_.setAttribute(`href`,o.uri),_.setAttribute(`style`,`float:right`),g.appendChild(_).textContent=`>`,e.appendChild(g);let v=t.createElement(`div`);return v.setAttribute(`style`,(a?`float:left;`:`float:right;`)+` width:30px;`),p=t.createElement(`img`),h(),v.appendChild(p),e.appendChild(v),f.addEventListener(`click`,function(e){d===f?(f.setAttribute(`style`,u),d=null):(d&&d.setAttribute(`style`,u),f.setAttribute(`style`,u+`background-color: #ccc; color:black;`),d=f),c(o,e,d===f),h()},!1),p.addEventListener(`click`,function(e){l(o,e,a,h)},!1),e.appendChild(f),e};for(let n=0;n<o.length;n++){let r=t.createElement(`div`);e.appendChild(r),f(r,o[n])}return e}var Z={};function ie(e,t){let r=e.createElement(`div`);return r.textContent=n.label(t),r}function ae(e){let t=Z.twoLine[e.uri],n=p.store;if(t)return t;let r=n.findSuperClassesNT(e);for(let e in r)if(t=Z.twoLine[n.fromNT(e).uri],t)return t;return Z.twoLine[``]}function oe(t,n){let i=``,a=function(t){let a=p.store.any(n,e.default.qu(t));return a||(i+=`@@ No value for `+t+`! `),a?r.escapeForXML(a.value):`?`},o=t.createElement(`table`);return o.innerHTML=`
3
3
  <tr>
4
4
  <td colspan="2"> ${a(`payee`)}</td>