@pod-os/contacts 0.3.0 → 0.4.0-rc.20fe2f1.0

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 (128) hide show
  1. package/dist/cjs/{chunk.5JY5FUCG-BJJbNIiG.js → chunk.5JY5FUCG-BDpED7an.js} +2 -2
  2. package/dist/cjs/{chunk.HVTXQL7M-C6x_EQ24.js → chunk.HVTXQL7M-CkQwB4ew.js} +4 -4
  3. package/dist/cjs/{chunk.URTPIBTY-BiNv2Ckb.js → chunk.URTPIBTY-De5L-27M.js} +3 -3
  4. package/dist/cjs/{chunk.XQ2OKYYA-CDJtWcvs.js → chunk.XQ2OKYYA-CZfHjZJv.js} +4 -4
  5. package/dist/cjs/{chunk.YHLNUJ7P-CoQhYOM2.js → chunk.YHLNUJ7P-C7S3ShkT.js} +1 -1
  6. package/dist/cjs/chunk.ZGGPD2XJ-DGjeHZ7b.js +5 -0
  7. package/dist/cjs/{class-map-CyEFRZYn.js → class-map-D_80IxYF.js} +1 -1
  8. package/dist/cjs/contacts.cjs.js +2 -2
  9. package/dist/cjs/{if-defined-TQmAS6tz.js → if-defined-BNj5GZso.js} +1 -1
  10. package/dist/cjs/{index-DdRXU5II.js → index-BiY-p204.js} +62 -20
  11. package/dist/cjs/{index-CpATWk39.js → index-D8Y89icW.js} +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +6 -6
  14. package/dist/cjs/pos-add-new-thing_7.cjs.entry.js +9 -9
  15. package/dist/cjs/pos-app-browser.cjs.entry.js +2 -2
  16. package/dist/cjs/pos-app-dashboard_6.cjs.entry.js +3 -3
  17. package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
  18. package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
  19. package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
  20. package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
  21. package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
  22. package/dist/cjs/pos-app_24.cjs.entry.js +9 -9
  23. package/dist/cjs/pos-attachments.cjs.entry.js +1 -1
  24. package/dist/cjs/pos-container-contents.cjs.entry.js +1 -1
  25. package/dist/cjs/pos-container-item_3.cjs.entry.js +6 -6
  26. package/dist/cjs/pos-description_2.cjs.entry.js +1 -1
  27. package/dist/cjs/pos-document.cjs.entry.js +6 -6
  28. package/dist/cjs/pos-list.cjs.entry.js +1 -1
  29. package/dist/cjs/pos-make-findable_2.cjs.entry.js +7 -7
  30. package/dist/cjs/pos-markdown-document.cjs.entry.js +413 -123
  31. package/dist/cjs/pos-new-thing-form.cjs.entry.js +1 -1
  32. package/dist/cjs/pos-predicate.cjs.entry.js +6 -6
  33. package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
  34. package/dist/cjs/pos-select-term.cjs.entry.js +1 -1
  35. package/dist/cjs/pos-subjects.cjs.entry.js +1 -1
  36. package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
  37. package/dist/cjs/pos-tool-select.cjs.entry.js +3 -3
  38. package/dist/cjs/pos-value.cjs.entry.js +1 -1
  39. package/dist/cjs/{session-kBhmup9r.js → session-CW2xZDbl.js} +1 -1
  40. package/dist/cjs/{settings-CpwCCkhx.js → settings-D2bZj29K.js} +1 -1
  41. package/dist/collection/collection-manifest.json +1 -1
  42. package/dist/components/pos-markdown-document2.js +1 -1
  43. package/dist/contacts/contacts.esm.js +1 -1
  44. package/dist/contacts/{p-78715d17.entry.js → p-11dd66c9.entry.js} +1 -1
  45. package/dist/contacts/{p-6d4ec7e5.entry.js → p-1943a383.entry.js} +1 -1
  46. package/dist/contacts/{p-46f8861e.entry.js → p-3c4fada1.entry.js} +1 -1
  47. package/dist/contacts/{p-ce6b4a9a.entry.js → p-3c6684c3.entry.js} +1 -1
  48. package/dist/contacts/{p-c4a1c42a.entry.js → p-4c02d7b7.entry.js} +1 -1
  49. package/dist/contacts/p-4da8f636.entry.js +1 -0
  50. package/dist/contacts/{p-84fdbc1a.entry.js → p-58ce4289.entry.js} +1 -1
  51. package/dist/contacts/{p-C1XsyD29.js → p-5RplWyqs.js} +1 -1
  52. package/dist/contacts/{p-649e7365.entry.js → p-5ae55c52.entry.js} +1 -1
  53. package/dist/contacts/{p-40b2d792.entry.js → p-5df07840.entry.js} +1 -1
  54. package/dist/contacts/{p-92fcdd59.entry.js → p-63e52cba.entry.js} +1 -1
  55. package/dist/contacts/{p-76382e6a.entry.js → p-6f9152d8.entry.js} +1 -1
  56. package/dist/contacts/p-7a60ece3.entry.js +1 -0
  57. package/dist/contacts/{p-a9d03996.entry.js → p-7aded942.entry.js} +1 -1
  58. package/dist/contacts/{p-7a01c820.entry.js → p-7cf756ed.entry.js} +1 -1
  59. package/dist/contacts/{p-c89722f1.entry.js → p-908587ff.entry.js} +1 -1
  60. package/dist/contacts/{p-a629ae72.entry.js → p-9f34648a.entry.js} +1 -1
  61. package/dist/contacts/{p-B0_xZCeV.js → p-B3jnBMMO.js} +3 -3
  62. package/dist/contacts/{p-C8LPXtIR.js → p-BvR_sP9G.js} +1 -1
  63. package/dist/contacts/{p-Bug_w-vi.js → p-C36YDIjT.js} +1 -1
  64. package/dist/contacts/{p-BXdS2klL.js → p-CzUN2DJY.js} +4 -4
  65. package/dist/contacts/p-D8UlKjrD.js +1 -0
  66. package/dist/contacts/{p-BXcFVJku.js → p-Dq6SRSqM.js} +2 -2
  67. package/dist/contacts/{p-DScSUBy-.js → p-Dunlf3Z7.js} +1 -1
  68. package/dist/contacts/{p-BkeypvMo.js → p-VfX5yLuQ.js} +7 -7
  69. package/dist/contacts/{p-SrdKoY3I.js → p-_eHMN8WS.js} +1 -1
  70. package/dist/contacts/{p-7f565d49.entry.js → p-a0da8fbf.entry.js} +1 -1
  71. package/dist/contacts/{p-d510fa6c.entry.js → p-a52ee32d.entry.js} +5 -5
  72. package/dist/contacts/{p-7d796ba8.entry.js → p-bbb51116.entry.js} +8 -8
  73. package/dist/contacts/{p-4ef3891c.entry.js → p-be0458af.entry.js} +1 -1
  74. package/dist/contacts/{p-ecf8719a.entry.js → p-be2bfaf2.entry.js} +1 -1
  75. package/dist/contacts/{p-D_nUMgR-.js → p-bf6nCqHq.js} +1 -1
  76. package/dist/contacts/{p-ae43e046.entry.js → p-c9d40209.entry.js} +1 -1
  77. package/dist/contacts/{p-f8517ff2.entry.js → p-d762c42d.entry.js} +1 -1
  78. package/dist/contacts/{p-26248da8.entry.js → p-dc6b0fb2.entry.js} +1 -1
  79. package/dist/contacts/{p-68gi0rt1.js → p-dsdWvqdi.js} +3 -3
  80. package/dist/contacts/{p-c306d8ca.entry.js → p-f403a62e.entry.js} +1 -1
  81. package/dist/contacts/p-feaa607e.entry.js +1 -0
  82. package/dist/esm/{chunk.5JY5FUCG-B58l5Mdn.js → chunk.5JY5FUCG-CPET0g0y.js} +2 -2
  83. package/dist/esm/{chunk.HVTXQL7M-DXJDg6h_.js → chunk.HVTXQL7M-Bo9_AX3Z.js} +4 -4
  84. package/dist/esm/{chunk.URTPIBTY-C1YI_wtI.js → chunk.URTPIBTY-Cec1N58N.js} +3 -3
  85. package/dist/esm/{chunk.XQ2OKYYA-B0surOUs.js → chunk.XQ2OKYYA-CdgFL-s-.js} +4 -4
  86. package/dist/esm/{chunk.YHLNUJ7P-B10Qbx9i.js → chunk.YHLNUJ7P-nIbF6vRN.js} +1 -1
  87. package/dist/esm/chunk.ZGGPD2XJ-BsTqrynL.js +3 -0
  88. package/dist/esm/{class-map-DcKoKhP0.js → class-map-BnsoOzsP.js} +1 -1
  89. package/dist/esm/contacts.js +3 -3
  90. package/dist/esm/{if-defined-TtuUo8or.js → if-defined-CmT83CRs.js} +1 -1
  91. package/dist/esm/{index-D4tjvI9D.js → index-CkwiZvFT.js} +1 -1
  92. package/dist/esm/{index-DScSUBy-.js → index-Dunlf3Z7.js} +61 -19
  93. package/dist/esm/loader.js +2 -2
  94. package/dist/esm/pos-add-literal-value_3.entry.js +6 -6
  95. package/dist/esm/pos-add-new-thing_7.entry.js +9 -9
  96. package/dist/esm/pos-app-browser.entry.js +2 -2
  97. package/dist/esm/pos-app-dashboard_6.entry.js +3 -3
  98. package/dist/esm/pos-app-document-viewer.entry.js +1 -1
  99. package/dist/esm/pos-app-generic.entry.js +1 -1
  100. package/dist/esm/pos-app-image-viewer.entry.js +1 -1
  101. package/dist/esm/pos-app-ldp-container.entry.js +1 -1
  102. package/dist/esm/pos-app-rdf-document.entry.js +1 -1
  103. package/dist/esm/pos-app_24.entry.js +9 -9
  104. package/dist/esm/pos-attachments.entry.js +1 -1
  105. package/dist/esm/pos-container-contents.entry.js +1 -1
  106. package/dist/esm/pos-container-item_3.entry.js +6 -6
  107. package/dist/esm/pos-description_2.entry.js +1 -1
  108. package/dist/esm/pos-document.entry.js +6 -6
  109. package/dist/esm/pos-list.entry.js +1 -1
  110. package/dist/esm/pos-make-findable_2.entry.js +7 -7
  111. package/dist/esm/pos-markdown-document.entry.js +413 -123
  112. package/dist/esm/pos-new-thing-form.entry.js +1 -1
  113. package/dist/esm/pos-predicate.entry.js +6 -6
  114. package/dist/esm/pos-relations_2.entry.js +1 -1
  115. package/dist/esm/pos-select-term.entry.js +1 -1
  116. package/dist/esm/pos-subjects.entry.js +1 -1
  117. package/dist/esm/pos-tool-attachments.entry.js +1 -1
  118. package/dist/esm/pos-tool-select.entry.js +3 -3
  119. package/dist/esm/pos-value.entry.js +1 -1
  120. package/dist/esm/{session-CtUoUtdF.js → session-VqDg66f5.js} +1 -1
  121. package/dist/esm/{settings-Cnw1mSJw.js → settings-CbiYsH1V.js} +1 -1
  122. package/package.json +3 -3
  123. package/dist/cjs/chunk.ZGGPD2XJ-C--tZiyf.js +0 -5
  124. package/dist/contacts/p-5e11ce90.entry.js +0 -1
  125. package/dist/contacts/p-8bc26fd9.entry.js +0 -1
  126. package/dist/contacts/p-Bk6kpzHk.js +0 -1
  127. package/dist/contacts/p-a3082900.entry.js +0 -1
  128. package/dist/esm/chunk.ZGGPD2XJ-CxH68zCl.js +0 -3
@@ -1 +1 @@
1
- import{p as e,B as o,d as t,w as r,N as a,H as n,g as c,b as d}from"./p-DScSUBy-.js";export{s as setNonce}from"./p-DScSUBy-.js";var i=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const s=o.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&s.appendChild(t[e].cloneNode(!0));return s}};(()=>{o.isDev&&!o.isTesting&&t("Running in development mode."),o.cloneNodeFix&&i(n.prototype);const s=o.scriptDataOpts?r.document&&Array.from(r.document.querySelectorAll("script")).find((e=>new RegExp(`/${a}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===a)):null,c=import.meta.url,d=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==c&&(d.resourcesUrl=new URL(".",c).href),e(d)})().then((async e=>(await c(),d([["p-d510fa6c",[[0,"pos-contacts-app"],[1,"pos-contacts-router",{contactsModule:[32],uri:[32]},[[0,"pod-os-contacts:open-address-book","openAddressBook"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-contacts-address-book-page",{uri:[1],contactsModule:[32],addressBook:[32],selectedContact:[32],selectedGroup:[32],error:[32],menuOpen:[32]},[[0,"pod-os-contacts:contact-selected","onContactSelected"],[0,"pod-os-contacts:group-selected","onGroupSelected"],[0,"pod-os-contacts:contact-created","onContactCreated"]],{uri:[{loadAddressBook:0}]}],[1,"pos-contacts-welcome-page"],[257,"pos-app",{restorePreviousSession:[4,"restore-previous-session"],os:[32],unsubscribeSettings:[32],loading:[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[1,"pos-contacts-open-address-book",{sessionInfo:[32]},[[0,"pod-os:link","openFromLink"]]],[1,"pos-contacts-contact-details",{uri:[1],contact:[32],contactsModule:[32]},null,{uri:[{loadContact:0}]}],[1,"pos-contacts-create-new-contact",{addressBookUri:[1,"address-book-uri"]}],[1,"pos-contacts-contact-list",{contacts:[16]}],[0,"pos-contacts-group-details",{uri:[1]}],[1,"pos-contacts-group-list",{groups:[16]}],[1,"pos-contacts-list-address-books",{webId:[1,"web-id"],contactsModule:[32],addressBookLists:[32]},null,{contactsModule:[{listAddressBooks:0}]}],[17,"pos-contacts-create-new-contact-form",{addressBookUri:[1,"address-book-uri"],contactsModule:[32],newContact:[32]}],[1,"pos-contacts-email-addresses",{emailAddresses:[16]}],[1,"pos-contacts-loading-spinner",{defer:[2],show:[32]}],[1,"pos-contacts-phone-numbers",{phoneNumbers:[16]}],[257,"pos-login",{os:[32],customLoggedInComponent:[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[17,"pos-login-form",{idpUrl:[32],canSubmit:[32]},null,{idpUrl:[{validate:0}]}],[257,"pos-picture",{blurredBackground:[4,"blurred-background"],noUpload:[4,"no-upload"],resource:[32],os:[32],isUploading:[32]}],[260,"pos-dialog",{showModal:[64],close:[64]}],[1,"pos-image",{src:[1],alt:[1],blurredBackground:[4,"blurred-background"],os:[32],dataUri:[32],brokenFile:[32],networkError:[32],imageError:[32],loading:[32]},null,{os:[{fetchBlob:0}],src:[{fetchBlob:0}]}],[1,"pos-upload",{accept:[16],uploader:[16]}],[1,"pos-label",{resource:[32]}],[257,"pos-resource",{uri:[1],lazy:[4],os:[32],resource:[32],consumers:[32],error:[32],loading:[32],fetch:[64]},[[0,"pod-os:resource","provideResource"]],{os:[{loadResource:0}],uri:[{loadResource:0}]}]]],["p-46f8861e",[[0,"pos-app-browser",{restorePreviousSession:[4,"restore-previous-session"],mode:[1],uri:[32]}]]],["p-92fcdd59",[[1,"pos-app-generic"]]],["p-ae43e046",[[1,"pos-app-ldp-container"]]],["p-a9d03996",[[1,"pos-app-rdf-document"]]],["p-ce6b4a9a",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-7f565d49",[[1,"pos-tool-attachments",{os:[32],resource:[32]}]]],["p-76382e6a",[[0,"pos-list",{rel:[1],ifTypeof:[1,"if-typeof"],fetch:[4],error:[32],os:[32],resource:[32],items:[32],templateString:[32]}]]],["p-26248da8",[[1,"pos-value",{predicate:[1],resource:[32]}]]],["p-6d4ec7e5",[[1,"pos-attachments",{resource:[32],attachments:[32],addToList:[64]}]]],["p-a629ae72",[[1,"pos-container-contents",{container:[32],contents:[32],loading:[32],createNewItem:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-a3082900",[[1,"pos-document",{src:[1],alt:[1],os:[32],file:[32],brokenFile:[32],error:[32],saveStatus:[32],loading:[32],isEditable:[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{os:[{fetchBlob:0}],src:[{fetchBlob:0}]}]]],["p-78715d17",[[1,"pos-app-document-viewer",{resource:[32]}]]],["p-c89722f1",[[1,"pos-relations",{data:[32]}],[1,"pos-reverse-relations",{data:[32]}]]],["p-84fdbc1a",[[1,"pos-subjects",{data:[32]}]]],["p-5e11ce90",[[1,"pos-markdown-document",{file:[16],saveStatus:[1,"save-status"],editable:[4],markdown:[32],isModified:[32],isEditing:[32],startEditing:[64],stopEditing:[64]}]]],["p-40b2d792",[[1,"pos-navigation-bar",{current:[16],searchIndexReady:[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-make-findable",{uri:[1],os:[32],thing:[32],indexes:[32],unsubscribeSessionChange:[32],showOptions:[32],isIndexed:[32]},[[0,"sl-select","onSelect"]],{uri:[{updateUri:0}]}]]],["p-4ef3891c",[[17,"pos-select-term",{placeholder:[1],value:[1],os:[32],terms:[32]},null,{os:[{setTerms:0}]}]]],["p-f8517ff2",[[17,"pos-new-thing-form",{referenceUri:[1,"reference-uri"],os:[32],newUri:[32],name:[32],selectedTypeUri:[32],canSubmit:[32]},null,{name:[{validate:0}],selectedTypeUri:[{validate:0}]}]]],["p-7a01c820",[[1,"pos-tool-select",{selected:[16],tools:[16]}]]],["p-649e7365",[[257,"pos-container-item",{resource:[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{type:[1],container:[16],os:[32],name:[32]}]]],["p-c4a1c42a",[[1,"pos-predicate",{uri:[1],label:[1],expanded:[32]}]]],["p-7d796ba8",[[0,"pos-internal-router",{uri:[1]}],[1,"pos-navigation",{uri:[1],os:[32],inputValue:[32],searchIndex:[32],suggestions:[32],selectedIndex:[32],resource:[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{uri:[{updateResource:0}],os:[{updateResource:0}]}],[1,"pos-user-menu",{webId:[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{referenceUri:[1,"reference-uri"]}],[1,"pos-type-router",{initialTool:[32],availableTools:[32],oldTool:[32],currentTool:[32],transitioning:[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-error-toast",{title:[32],message:[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{mode:[1],uri:[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]]]],["p-8bc26fd9",[[1,"pos-literals",{data:[32]}],[1,"pos-type-badges",{data:[32],typeLabels:[32],isExpanded:[32]}],[1,"pos-add-literal-value",{os:[32],resource:[32],currentValue:[32],selectedTermUri:[32]},null,{os:[{setName:0}]}]]],["p-c306d8ca",[[257,"pos-rich-link",{uri:[1],rel:[1],rev:[1],link:[32],followPredicate:[32],error:[32],showCustomContent:[32]}],[1,"pos-description",{resource:[32]}]]],["p-ecf8719a",[[1,"pos-app-dashboard"],[1,"pos-app-settings"],[1,"pos-type-index-entries",{uri:[1],entries:[32]}],[1,"pos-example-resources"],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"]]]],e))));
1
+ import{p as e,B as o,d as t,w as r,N as a,H as n,g as d,b as c}from"./p-Dunlf3Z7.js";export{s as setNonce}from"./p-Dunlf3Z7.js";var i=e=>{const o=e.cloneNode;e.cloneNode=function(e){if("TEMPLATE"===this.nodeName)return o.call(this,e);const s=o.call(this,!1),t=this.childNodes;if(e)for(let e=0;e<t.length;e++)2!==t[e].nodeType&&s.appendChild(t[e].cloneNode(!0));return s}};(()=>{o.isDev&&!o.isTesting&&t("Running in development mode."),o.cloneNodeFix&&i(n.prototype);const s=o.scriptDataOpts?r.document&&Array.from(r.document.querySelectorAll("script")).find((e=>new RegExp(`/${a}(\\.esm)?\\.js($|\\?|#)`).test(e.src)||e.getAttribute("data-stencil-namespace")===a)):null,d=import.meta.url,c=o.scriptDataOpts&&(s||{})["data-opts"]||{};return""!==d&&(c.resourcesUrl=new URL(".",d).href),e(c)})().then((async e=>(await d(),c([["p-a52ee32d",[[0,"pos-contacts-app"],[1,"pos-contacts-router",{contactsModule:[32],uri:[32]},[[0,"pod-os-contacts:open-address-book","openAddressBook"],[8,"pod-os:session-restored","sessionRestored"]]],[1,"pos-contacts-address-book-page",{uri:[1],contactsModule:[32],addressBook:[32],selectedContact:[32],selectedGroup:[32],error:[32],menuOpen:[32]},[[0,"pod-os-contacts:contact-selected","onContactSelected"],[0,"pod-os-contacts:group-selected","onGroupSelected"],[0,"pod-os-contacts:contact-created","onContactCreated"]],{uri:[{loadAddressBook:0}]}],[1,"pos-contacts-welcome-page"],[257,"pos-app",{restorePreviousSession:[4,"restore-previous-session"],os:[32],unsubscribeSettings:[32],loading:[32]},[[0,"pod-os:init","initializeOs"],[0,"pod-os:module","loadModule"]]],[1,"pos-contacts-open-address-book",{sessionInfo:[32]},[[0,"pod-os:link","openFromLink"]]],[1,"pos-contacts-contact-details",{uri:[1],contact:[32],contactsModule:[32]},null,{uri:[{loadContact:0}]}],[1,"pos-contacts-create-new-contact",{addressBookUri:[1,"address-book-uri"]}],[1,"pos-contacts-contact-list",{contacts:[16]}],[0,"pos-contacts-group-details",{uri:[1]}],[1,"pos-contacts-group-list",{groups:[16]}],[1,"pos-contacts-list-address-books",{webId:[1,"web-id"],contactsModule:[32],addressBookLists:[32]},null,{contactsModule:[{listAddressBooks:0}]}],[17,"pos-contacts-create-new-contact-form",{addressBookUri:[1,"address-book-uri"],contactsModule:[32],newContact:[32]}],[1,"pos-contacts-email-addresses",{emailAddresses:[16]}],[1,"pos-contacts-loading-spinner",{defer:[2],show:[32]}],[1,"pos-contacts-phone-numbers",{phoneNumbers:[16]}],[257,"pos-login",{os:[32],customLoggedInComponent:[32]},[[4,"pod-os:logout","logout"],[4,"pod-os:login","onLogin"]]],[17,"pos-login-form",{idpUrl:[32],canSubmit:[32]},null,{idpUrl:[{validate:0}]}],[257,"pos-picture",{blurredBackground:[4,"blurred-background"],noUpload:[4,"no-upload"],resource:[32],os:[32],isUploading:[32]}],[260,"pos-dialog",{showModal:[64],close:[64]}],[1,"pos-image",{src:[1],alt:[1],blurredBackground:[4,"blurred-background"],os:[32],dataUri:[32],brokenFile:[32],networkError:[32],imageError:[32],loading:[32]},null,{os:[{fetchBlob:0}],src:[{fetchBlob:0}]}],[1,"pos-upload",{accept:[16],uploader:[16]}],[1,"pos-label",{resource:[32]}],[257,"pos-resource",{uri:[1],lazy:[4],os:[32],resource:[32],consumers:[32],error:[32],loading:[32],fetch:[64]},[[0,"pod-os:resource","provideResource"]],{os:[{loadResource:0}],uri:[{loadResource:0}]}]]],["p-3c4fada1",[[0,"pos-app-browser",{restorePreviousSession:[4,"restore-previous-session"],mode:[1],uri:[32]}]]],["p-63e52cba",[[1,"pos-app-generic"]]],["p-c9d40209",[[1,"pos-app-ldp-container"]]],["p-7aded942",[[1,"pos-app-rdf-document"]]],["p-3c6684c3",[[1,"pos-app-image-viewer",{resource:[32]}]]],["p-a0da8fbf",[[1,"pos-tool-attachments",{os:[32],resource:[32]}]]],["p-6f9152d8",[[0,"pos-list",{rel:[1],ifTypeof:[1,"if-typeof"],fetch:[4],error:[32],os:[32],resource:[32],items:[32],templateString:[32]}]]],["p-dc6b0fb2",[[1,"pos-value",{predicate:[1],resource:[32]}]]],["p-1943a383",[[1,"pos-attachments",{resource:[32],attachments:[32],addToList:[64]}]]],["p-9f34648a",[[1,"pos-container-contents",{container:[32],contents:[32],loading:[32],createNewItem:[32]},[[0,"keydown","handleKeyDown"]]]]],["p-feaa607e",[[1,"pos-document",{src:[1],alt:[1],os:[32],file:[32],brokenFile:[32],error:[32],saveStatus:[32],loading:[32],isEditable:[32]},[[0,"pod-os:document-modified","handleDocumentModified"]],{os:[{fetchBlob:0}],src:[{fetchBlob:0}]}]]],["p-11dd66c9",[[1,"pos-app-document-viewer",{resource:[32]}]]],["p-908587ff",[[1,"pos-relations",{data:[32]}],[1,"pos-reverse-relations",{data:[32]}]]],["p-58ce4289",[[1,"pos-subjects",{data:[32]}]]],["p-7a60ece3",[[1,"pos-markdown-document",{file:[16],saveStatus:[1,"save-status"],editable:[4],markdown:[32],isModified:[32],isEditing:[32],startEditing:[64],stopEditing:[64]}]]],["p-5df07840",[[1,"pos-navigation-bar",{current:[16],searchIndexReady:[4,"search-index-ready"]},[[4,"keydown","activate"]]],[1,"pos-make-findable",{uri:[1],os:[32],thing:[32],indexes:[32],unsubscribeSessionChange:[32],showOptions:[32],isIndexed:[32]},[[0,"sl-select","onSelect"]],{uri:[{updateUri:0}]}]]],["p-be0458af",[[17,"pos-select-term",{placeholder:[1],value:[1],os:[32],terms:[32]},null,{os:[{setTerms:0}]}]]],["p-d762c42d",[[17,"pos-new-thing-form",{referenceUri:[1,"reference-uri"],os:[32],newUri:[32],name:[32],selectedTypeUri:[32],canSubmit:[32]},null,{name:[{validate:0}],selectedTypeUri:[{validate:0}]}]]],["p-7cf756ed",[[1,"pos-tool-select",{selected:[16],tools:[16]}]]],["p-5ae55c52",[[257,"pos-container-item",{resource:[32]}],[1,"pos-container-toolbar"],[1,"pos-create-new-container-item",{type:[1],container:[16],os:[32],name:[32]}]]],["p-4c02d7b7",[[1,"pos-predicate",{uri:[1],label:[1],expanded:[32]}]]],["p-bbb51116",[[0,"pos-internal-router",{uri:[1]}],[1,"pos-navigation",{uri:[1],os:[32],inputValue:[32],searchIndex:[32],suggestions:[32],selectedIndex:[32],resource:[32]},[[0,"pod-os:search:index-created","buildSearchIndex"],[0,"pod-os:search:index-updated","rebuildSearchIndex"],[0,"pod-os:navigate","openNavigationDialog"],[4,"click","closeDialog"],[0,"pod-os:link","clearSuggestions"],[0,"click","onClickSelf"],[0,"keydown","handleKeyDown"]],{uri:[{updateResource:0}],os:[{updateResource:0}]}],[1,"pos-user-menu",{webId:[1,"web-id"]},[[0,"sl-select","onSelect"]]],[1,"pos-add-new-thing",{referenceUri:[1,"reference-uri"]}],[1,"pos-type-router",{initialTool:[32],availableTools:[32],oldTool:[32],currentTool:[32],transitioning:[32]},[[0,"pod-os:tool-selected","handleToolSelected"]]],[257,"pos-error-toast",{title:[32],message:[32]},[[8,"unhandledrejection","unhandledRejection"],[0,"pod-os:error","catchError"]]],[260,"pos-router",{mode:[1],uri:[32]},[[0,"pod-os:link","linkClicked"],[8,"pod-os:session-restored","sessionRestored"]]]]],["p-4da8f636",[[1,"pos-literals",{data:[32]}],[1,"pos-type-badges",{data:[32],typeLabels:[32],isExpanded:[32]}],[1,"pos-add-literal-value",{os:[32],resource:[32],currentValue:[32],selectedTermUri:[32]},null,{os:[{setName:0}]}]]],["p-f403a62e",[[257,"pos-rich-link",{uri:[1],rel:[1],rev:[1],link:[32],followPredicate:[32],error:[32],showCustomContent:[32]}],[1,"pos-description",{resource:[32]}]]],["p-be2bfaf2",[[1,"pos-app-dashboard"],[1,"pos-app-settings"],[1,"pos-type-index-entries",{uri:[1],entries:[32]}],[1,"pos-example-resources"],[1,"pos-getting-started"],[1,"pos-setting-offline-cache"]]]],e))));
@@ -1 +1 @@
1
- import{r as s,c as i,h as e,e as r}from"./p-DScSUBy-.js";import{s as o}from"./p-BW_CkW1K.js";const a=class{constructor(e){s(this,e),this.subscribeResource=i(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){return this.resource?e(r,null,e("section",null,e("pos-document",{src:this.resource.uri}))):null}};a.style=":host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{a as pos_app_document_viewer}
1
+ import{r as s,c as i,h as e,e as r}from"./p-Dunlf3Z7.js";import{s as o}from"./p-BW_CkW1K.js";const a=class{constructor(e){s(this,e),this.subscribeResource=i(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){return this.resource?e(r,null,e("section",null,e("pos-document",{src:this.resource.uri}))):null}};a.style=":host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{a as pos_app_document_viewer}
@@ -1 +1 @@
1
- import{r as o,h as r,e as a,a as s}from"./p-DScSUBy-.js";import{u as c}from"./p-yVO4JQ9P.js";const e=class{constructor(r){o(this,r)}async addToList(o){this.attachments=[...this.attachments,Object.assign(Object.assign({},o),{newlyAdded:!0})]}async componentWillLoad(){this.resource=await c(this.el),this.attachments=this.resource.attachments()}render(){return 0===this.attachments.length?r(a,null,"No attachments found."):r("ul",null,this.attachments.map((o=>r("li",{class:{new:o.newlyAdded}},r("pos-rich-link",{uri:o.uri})))))}get el(){return s(this)}};e.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color);ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--size-1);li{padding:var(--size-1);&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}&.new{animation:newItemBounce 0.8s ease-out, highlightFlash 2.5s ease-in-out}}}}@keyframes newItemBounce{0%{transform:scale(0.95);opacity:0}60%{transform:scale(1.02)}100%{transform:scale(1);opacity:1}}@keyframes highlightFlash{0%{box-shadow:0 0 20px var(--pos-primary-color)}100%{box-shadow:0 0 0 transparent}}";export{e as pos_attachments}
1
+ import{r as o,h as r,e as a,a as s}from"./p-Dunlf3Z7.js";import{u as n}from"./p-yVO4JQ9P.js";const c=class{constructor(r){o(this,r)}async addToList(o){this.attachments=[...this.attachments,Object.assign(Object.assign({},o),{newlyAdded:!0})]}async componentWillLoad(){this.resource=await n(this.el),this.attachments=this.resource.attachments()}render(){return 0===this.attachments.length?r(a,null,"No attachments found."):r("ul",null,this.attachments.map((o=>r("li",{class:{new:o.newlyAdded}},r("pos-rich-link",{uri:o.uri})))))}get el(){return s(this)}};c.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color);ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--size-1);li{padding:var(--size-1);&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}&.new{animation:newItemBounce 0.8s ease-out, highlightFlash 2.5s ease-in-out}}}}@keyframes newItemBounce{0%{transform:scale(0.95);opacity:0}60%{transform:scale(1.02)}100%{transform:scale(1);opacity:1}}@keyframes highlightFlash{0%{box-shadow:0 0 20px var(--pos-primary-color)}100%{box-shadow:0 0 0 transparent}}";export{c as pos_attachments}
@@ -1 +1 @@
1
- import{r as e,h as o,e as r}from"./p-DScSUBy-.js";import{s as a}from"./p-Bug_w-vi.js";const s=class{constructor(o){e(this,o),this.restorePreviousSession=!1,this.mode="standalone",this.uri=""}render(){return o(r,{key:"08b186d2f354d6c07df02707eb4ada81aef7dec3"},o("pos-app",{key:"54c372343e916ab5d77584381b3965c925ae0cd0",restorePreviousSession:this.restorePreviousSession},o("pos-error-toast",{key:"ab63e18121ca16670f81da141219a782dde0694b"},o("pos-router",{key:"69b6f3bf8ce3720c6c39cdb4be69e640e27ccc5b",mode:this.mode,"onPod-os:route-changed":e=>this.uri=e.detail},o("header",{key:"5cd3412caf13b6d99da517ae7e6f5877234e65d7"},o("pos-add-new-thing",{key:"9b83b3cf03b7038303975386176df539b35ff547",referenceUri:this.uri}),o("pos-navigation",{key:"26bfed9b1c8dd1be018babc6ef40ae42808a5c42",uri:"pod-os:dashboard"===this.uri?"":this.uri}),o("pos-login",{key:"e29f18dcde866d8ac1e317fcd7b71ef584e69034"},o("pos-user-menu",{key:"be796f0914649eb4e8525a9d8acdfd535626303c",webId:a.state.webId,slot:"if-logged-in"}))),o("main",{key:"f99dfb2d43e949528bc767b94801c99bf04a7eea"},this.mainContent()),o("footer",{key:"64744d1246356fa00da9c6b561785e2b794a7907"},o(d,{key:"a648f7f88e12c79348bda33152f2759d2b93e738"}),o("span",{key:"f22e2f9904ba517fc2e579a05018704b5ade6302"},"PodOS Browser"))))))}mainContent(){return""===this.uri?null:this.uri.startsWith("pod-os:")?o("pos-internal-router",{uri:this.uri}):o("pos-resource",{key:this.uri,uri:this.uri},o("pos-type-router",null))}},d=()=>o("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),o("path",{d:"M100 300 L100 150 L200 120 L300 150 L300 300 L130 300 L130 370 L100 370Z",style:{fill:"white",stroke:"white","stroke-width":"45"},"stroke-linejoin":"round"}),o("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"}));s.style="pos-router{margin:0;padding:0;display:flex;flex-direction:column;height:100%}pos-navigation{max-width:var(--width-lg);margin:0;min-width:var(--size-32);flex-shrink:1;}pos-add-new-thing,pos-login{flex:0 1 auto;flex-shrink:0;}header,footer{display:flex;gap:var(--size-1);height:auto;justify-content:center;align-items:center;padding:var(--size-1)}footer svg{width:var(--size-5);height:var(--size-5)}footer{font-size:var(--scale-fluid-000);.settings{padding:0 var(--size-1);text-decoration:none;background-color:var(--pos-background-color);border:1px solid var(--pos-secondary-border-color);color:var(--pos-secondary-border-color);border-radius:var(--radius-xs);&:hover{background-color:var(--pos-secondary-border-color);color:var(--pos-background-color)}}}header{flex-wrap:nowrap;padding:var(--size-1) var(--size-8)}main{flex:1;max-height:100vh;overflow:auto}@media (max-width: 640px){header{padding:var(--size-1);justify-content:space-between}footer{display:none}}";export{s as pos_app_browser}
1
+ import{r as e,h as o,e as r}from"./p-Dunlf3Z7.js";import{s as a}from"./p-C36YDIjT.js";const s=class{constructor(o){e(this,o),this.restorePreviousSession=!1,this.mode="standalone",this.uri=""}render(){return o(r,{key:"08b186d2f354d6c07df02707eb4ada81aef7dec3"},o("pos-app",{key:"54c372343e916ab5d77584381b3965c925ae0cd0",restorePreviousSession:this.restorePreviousSession},o("pos-error-toast",{key:"ab63e18121ca16670f81da141219a782dde0694b"},o("pos-router",{key:"69b6f3bf8ce3720c6c39cdb4be69e640e27ccc5b",mode:this.mode,"onPod-os:route-changed":e=>this.uri=e.detail},o("header",{key:"5cd3412caf13b6d99da517ae7e6f5877234e65d7"},o("pos-add-new-thing",{key:"9b83b3cf03b7038303975386176df539b35ff547",referenceUri:this.uri}),o("pos-navigation",{key:"26bfed9b1c8dd1be018babc6ef40ae42808a5c42",uri:"pod-os:dashboard"===this.uri?"":this.uri}),o("pos-login",{key:"e29f18dcde866d8ac1e317fcd7b71ef584e69034"},o("pos-user-menu",{key:"be796f0914649eb4e8525a9d8acdfd535626303c",webId:a.state.webId,slot:"if-logged-in"}))),o("main",{key:"f99dfb2d43e949528bc767b94801c99bf04a7eea"},this.mainContent()),o("footer",{key:"64744d1246356fa00da9c6b561785e2b794a7907"},o(d,{key:"a648f7f88e12c79348bda33152f2759d2b93e738"}),o("span",{key:"f22e2f9904ba517fc2e579a05018704b5ade6302"},"PodOS Browser"))))))}mainContent(){return""===this.uri?null:this.uri.startsWith("pod-os:")?o("pos-internal-router",{uri:this.uri}):o("pos-resource",{key:this.uri,uri:this.uri},o("pos-type-router",null))}},d=()=>o("svg",{viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"M50 350 L50 100 L200 50 L350 100 L350 350 Z",style:{fill:"#008BF8",stroke:"#008BF8","stroke-width":"70"},"stroke-linejoin":"round"}),o("path",{d:"M100 300 L100 150 L200 120 L300 150 L300 300 L130 300 L130 370 L100 370Z",style:{fill:"white",stroke:"white","stroke-width":"45"},"stroke-linejoin":"round"}),o("path",{d:"M150 250 L150 200 L200 180 L250 200 L250 250 Z",style:{fill:"#DC0073",stroke:"#DC0073","stroke-width":"20"},"stroke-linejoin":"round"}));s.style="pos-router{margin:0;padding:0;display:flex;flex-direction:column;height:100%}pos-navigation{max-width:var(--width-lg);margin:0;min-width:var(--size-32);flex-shrink:1;}pos-add-new-thing,pos-login{flex:0 1 auto;flex-shrink:0;}header,footer{display:flex;gap:var(--size-1);height:auto;justify-content:center;align-items:center;padding:var(--size-1)}footer svg{width:var(--size-5);height:var(--size-5)}footer{font-size:var(--scale-fluid-000);.settings{padding:0 var(--size-1);text-decoration:none;background-color:var(--pos-background-color);border:1px solid var(--pos-secondary-border-color);color:var(--pos-secondary-border-color);border-radius:var(--radius-xs);&:hover{background-color:var(--pos-secondary-border-color);color:var(--pos-background-color)}}}header{flex-wrap:nowrap;padding:var(--size-1) var(--size-8)}main{flex:1;max-height:100vh;overflow:auto}@media (max-width: 640px){header{padding:var(--size-1);justify-content:space-between}footer{display:none}}";export{s as pos_app_browser}
@@ -1 +1 @@
1
- import{r as s,c as e,h as i,e as a}from"./p-DScSUBy-.js";import{s as r}from"./p-BW_CkW1K.js";const o=class{constructor(i){s(this,i),this.subscribeResource=e(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){r(this)}render(){return this.resource?i(a,null,i("section",null,i("pos-image",{src:this.resource.uri})),i("section",null,i("article",null,i("header",null,i("h1",null,i("pos-label",null)),i("pos-type-badges",null)),i("pos-literals",null)))):null}};o.style="pos-image{--max-width:100%}:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{o as pos_app_image_viewer}
1
+ import{r as s,c as e,h as i,e as a}from"./p-Dunlf3Z7.js";import{s as r}from"./p-BW_CkW1K.js";const l=class{constructor(i){s(this,i),this.subscribeResource=e(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){r(this)}render(){return this.resource?i(a,null,i("section",null,i("pos-image",{src:this.resource.uri})),i("section",null,i("article",null,i("header",null,i("h1",null,i("pos-label",null)),i("pos-type-badges",null)),i("pos-literals",null)))):null}};l.style="pos-image{--max-width:100%}:host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}section{display:flex;flex-direction:column;gap:var(--gap-size)}@media (min-width: 640px){:host{--gap-size:var(--size-4);flex-direction:row;flex-wrap:wrap;section{&:first-of-type{flex:1}}section:not(:first-of-type){flex:0 0 30%}}}article{padding:var(--size-2);display:flex;flex-direction:column;gap:var(--size-2);outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;gap:var(--size-2);h1{margin:0}}}";export{l as pos_app_image_viewer}
@@ -1 +1 @@
1
- import{r as t,h as i}from"./p-DScSUBy-.js";import"./p-B0_xZCeV.js";import"./p-BXdS2klL.js";import"./p-BnGEOH37.js";import"./p-C8LPXtIR.js";import"./p-Bk6kpzHk.js";import"./p-D_nUMgR-.js";const o=class{constructor(i){t(this,i),this.expanded=!1}render(){return this.expanded?i("div",{class:"container"},i("a",{href:this.uri},this.uri),i("sl-tooltip",{content:"Collapse URI"},i("button",{"aria-label":`collapse URI to ${this.label}`,onClick:()=>this.expanded=!1},i("sl-icon",{name:"arrow-left-circle"})))):i("sl-tooltip",{content:`${this.uri}`},i("button",{onClick:()=>this.expanded=!0},this.label))}};o.style=":host{--text-color:var(--pos-primary-color);font-family:var(--font-sans)}button{line-height:var(--scale-0);font-family:inherit;margin:0;padding:0;display:flex;background:none;border:none;cursor:pointer}button,a{color:var(--text-color);font-weight:var(--weight-light);line-height:var(--scale-0);font-size:var(--scale-0);font-family:inherit}.container{display:flex;gap:var(--size-1);flex-direction:row;align-items:center;line-height:var(--scale-0)}";export{o as pos_predicate}
1
+ import{r as t,h as i}from"./p-Dunlf3Z7.js";import"./p-B3jnBMMO.js";import"./p-CzUN2DJY.js";import"./p-BnGEOH37.js";import"./p-BvR_sP9G.js";import"./p-D8UlKjrD.js";import"./p-bf6nCqHq.js";const o=class{constructor(i){t(this,i),this.expanded=!1}render(){return this.expanded?i("div",{class:"container"},i("a",{href:this.uri},this.uri),i("sl-tooltip",{content:"Collapse URI"},i("button",{"aria-label":`collapse URI to ${this.label}`,onClick:()=>this.expanded=!1},i("sl-icon",{name:"arrow-left-circle"})))):i("sl-tooltip",{content:`${this.uri}`},i("button",{onClick:()=>this.expanded=!0},this.label))}};o.style=":host{--text-color:var(--pos-primary-color);font-family:var(--font-sans)}button{line-height:var(--scale-0);font-family:inherit;margin:0;padding:0;display:flex;background:none;border:none;cursor:pointer}button,a{color:var(--text-color);font-weight:var(--weight-light);line-height:var(--scale-0);font-size:var(--scale-0);font-family:inherit}.container{display:flex;gap:var(--size-1);flex-direction:row;align-items:center;line-height:var(--scale-0)}";export{o as pos_predicate}
@@ -0,0 +1 @@
1
+ import{r as s,c as o,h as t,e}from"./p-Dunlf3Z7.js";import{l}from"./p-B0L5m2PZ.js";import{s as i}from"./p-jlzl8vRd.js";import{s as r}from"./p-BW_CkW1K.js";import"./p-D8UlKjrD.js";import"./p-BvR_sP9G.js";import"./p-B3jnBMMO.js";import"./p-CzUN2DJY.js";import"./p-BnGEOH37.js";import"./p-bf6nCqHq.js";const a=class{constructor(t){s(this,t),this.subscribePodOs=o(this,"pod-os:init",7),this.subscribeResource=o(this,"pod-os:resource",7),this.addedLiteralValue=o(this,"pod-os:added-literal-value",7),this.error=o(this,"pod-os:error",7),this.receiveResource=s=>{this.resource=s},this.receivePodOs=async s=>{this.os=s}}setName(){}componentWillLoad(){r(this),i(this)}async save(){try{await this.os.addPropertyValue(this.resource,this.selectedTermUri,this.currentValue);const s={predicate:this.selectedTermUri,label:l(this.selectedTermUri),values:[this.currentValue]};this.addedLiteralValue.emit(s),this.currentValue=""}catch(s){this.error.emit(s)}}onTermSelected(s){this.selectedTermUri=s.detail.uri,this.valueInput.focus()}render(){var s;if(null===(s=this.resource)||void 0===s?void 0:s.editable)return t(e,null,t("sl-icon",{name:"plus-circle"}),t("pos-select-term",{placeholder:"Add literal","onPod-os:term-selected":s=>this.onTermSelected(s)}),t("input",{ref:s=>this.valueInput=s,value:this.currentValue,placeholder:"",onInput:s=>this.currentValue=s.target.value,onChange:()=>this.save()}))}static get watchers(){return{os:[{setName:0}]}}};a.style=":host{display:flex;align-items:center;gap:0.2rem}input{padding:var(--size-2);background-color:transparent;color:var(--pos-normal-text-color);border:none}input:focus{outline:2px solid var(--pos-primary-color);background-color:var(--pos-input-background-color);transition:outline 0.1s, background-color 0.1s}";const n=class{constructor(t){s(this,t),this.subscribeResource=o(this,"pod-os:resource",7),this.data=[],this.receiveResource=s=>{this.data=s.literals()}}componentWillLoad(){r(this)}literalValueAdded(s){const o=this.data.find((o=>o.predicate===s.predicate));this.data=o?this.data.map((t=>t.predicate===o.predicate?{predicate:o.predicate,label:o.label,values:[...o.values,...s.values]}:t)):[...this.data,s]}render(){return t(e,{key:"79a29288f727943c57b62ffc4f3090ecf236f693"},this.data.length>0?t("dl",null,this.data.map((s=>t("div",{class:"predicate-values"},t("dt",null,t("pos-predicate",{uri:s.predicate,label:s.label})),t("div",{class:"values"},s.values.map((s=>t("dd",null,s)))))))):null,t("pos-add-literal-value",{key:"68d1936aca1dff7ff11493266aaf8e3c4d6d67e6","onPod-os:added-literal-value":s=>this.literalValueAdded(s.detail)}))}};n.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}dd{padding:0;margin:0}dl{padding:0;margin:0;display:flex;flex-direction:column;gap:var(--size-1)}dt{margin-bottom:var(--size-1)}.predicate-values:nth-child(odd){background-color:var(--background-color-odd)}.predicate-values:nth-child(even){background-color:var(--background-color-even)}.predicate-values{display:flex;flex-direction:column;border:var(--size-px) solid var(--border-color);padding:var(--size-2);gap:var(--size-1);.values{display:flex;flex-direction:column;gap:var(--size-2)}}";const c=class{constructor(t){s(this,t),this.subscribeResource=o(this,"pod-os:resource",7),this.data=[],this.typeLabels=[],this.isExpanded=!1,this.receiveResource=s=>{this.data=s.types(),this.typeLabels=[...new Set(s.types().map((s=>s.label)))]}}componentWillLoad(){r(this)}toggleDetails(){this.isExpanded=!this.isExpanded}render(){return 0==this.data.length?null:this.isExpanded?t("div",{class:"types expanded"},t("sl-tooltip",{content:"Collapse types"},t("button",{class:"toggle",onClick:()=>this.toggleDetails()},t("sl-icon",{name:"arrows-collapse"}))),t("ul",null,this.data.map((s=>t("li",null,s.uri))))):t(e,null,t("div",{class:"types"},t("ul",null,this.typeLabels.map((s=>t("li",null,s)))),t("sl-tooltip",{content:"Expand types"},t("button",{class:"toggle",onClick:()=>this.toggleDetails()},t("sl-icon",{name:"arrows-expand"})))))}};c.style=".types{display:flex;gap:var(--size-1)}.expanded{flex-direction:column;justify-content:flex-start;align-items:flex-start;ul{flex-direction:column}}button.toggle{display:flex;cursor:pointer;justify-content:center;align-items:center;aspect-ratio:1 / 1}ul{margin:0;padding:0;display:flex;flex-direction:row;font-size:var(--size-3);gap:var(--size-2);li{cursor:default;display:inline-flex;align-items:center;padding:var(--size-1);border-radius:var(--radius-sm);background-color:var(--pos-subtle-text-color);color:var(--pos-background-color);list-style:none}}";export{a as pos_add_literal_value,n as pos_literals,c as pos_type_badges}
@@ -1 +1 @@
1
- import{r as o,c as r,h as s}from"./p-DScSUBy-.js";import{R as c}from"./p-B0L5m2PZ.js";import{s as l}from"./p-BW_CkW1K.js";const a=class{constructor(s){o(this,s),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{const r=o.assume(c);this.data=r.subjects()}}componentWillLoad(){l(this)}render(){const o=this.data.map((o=>s("li",null,s("pos-rich-link",{uri:o.uri}))));return this.data.length>0?s("ul",null,o):null}};a.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}ul{display:flex;flex-direction:column;gap:var(--size-2);margin:0;padding:0;li{border:var(--size-px) solid var(--border-color);padding:var(--size-4);list-style-type:none;&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}}}";export{a as pos_subjects}
1
+ import{r as o,c as r,h as s}from"./p-Dunlf3Z7.js";import{R as c}from"./p-B0L5m2PZ.js";import{s as l}from"./p-BW_CkW1K.js";const a=class{constructor(s){o(this,s),this.subscribeResource=r(this,"pod-os:resource",7),this.data=[],this.receiveResource=o=>{const r=o.assume(c);this.data=r.subjects()}}componentWillLoad(){l(this)}render(){const o=this.data.map((o=>s("li",null,s("pos-rich-link",{uri:o.uri}))));return this.data.length>0?s("ul",null,o):null}};a.style=":host{--background-base-color:color-mix(in srgb, var(--pos-background-color), var(--color-grey-800) 10%);--background-color-even:hsl(from var(--background-base-color) h s calc(l + 7));--background-color-odd:hsl(from var(--background-base-color) h s calc(l + 10));--border-color:var(--background-base-color)}ul{display:flex;flex-direction:column;gap:var(--size-2);margin:0;padding:0;li{border:var(--size-px) solid var(--border-color);padding:var(--size-4);list-style-type:none;&:nth-child(even){background-color:var(--background-color-even)}&:nth-child(odd){background-color:var(--background-color-odd)}}}";export{a as pos_subjects}
@@ -1 +1 @@
1
- import{c as t}from"./p-Bug_w-vi.js";const s=localStorage.getItem("settings"),o=t(s?JSON.parse(s):{offlineCache:!1});o.on("set",(()=>{const t=JSON.stringify(o.state);localStorage.setItem("settings",t)})),window.addEventListener("storage",(t=>{if("settings"===t.key&&t.newValue){const s=JSON.parse(t.newValue);o.state.offlineCache=s.offlineCache}}));export{o as l}
1
+ import{c as t}from"./p-C36YDIjT.js";const s=localStorage.getItem("settings"),o=t(s?JSON.parse(s):{offlineCache:!1});o.on("set",(()=>{const t=JSON.stringify(o.state);localStorage.setItem("settings",t)})),window.addEventListener("storage",(t=>{if("settings"===t.key&&t.newValue){const s=JSON.parse(t.newValue);o.state.offlineCache=s.offlineCache}}));export{o as l}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,e as o,a}from"./p-DScSUBy-.js";import{s as r}from"./p-BW_CkW1K.js";import"./p-Bk6kpzHk.js";import"./p-C8LPXtIR.js";import"./p-B0_xZCeV.js";import"./p-BXdS2klL.js";import"./p-BnGEOH37.js";import{u as i}from"./p-D0uCfr1-.js";import"./p-D_nUMgR-.js";function n(e,t){return e.some((e=>e.uri===t))}const l=class{constructor(s){e(this,s),this.linkEmitter=t(this,"pod-os:link",7),this.subscribeResource=t(this,"pod-os:resource",7),this.receiveResource=e=>{this.resource=e}}componentWillLoad(){r(this)}render(){if(!this.resource)return null;const e=n(t=this.resource.types(),"http://www.w3.org/ns/ldp#Container")?"folder2":n(t,"http://www.w3.org/ns/ldp#Resource")?"file-earmark":"question-diamond";var t;return s("a",{href:this.resource.uri,onClick:e=>{e.preventDefault(),this.linkEmitter.emit(this.resource.uri)}},s("sl-icon",{name:e,slot:"start"}),s("slot",null))}};l.style=":host{display:flex}a{display:flex;text-decoration:none;padding:var(--size-4);width:var(--size-full);gap:var(--size-2);color:var(--pos-normal-text-color);background-color:var(--pos-background-color);&:hover{background-color:var(--pos-border-color)}}";const c=class{constructor(s){e(this,s),this.createNewFile=t(this,"pod-os:create-new-file",7),this.createNewFolder=t(this,"pod-os:create-new-folder",7)}render(){return s(o,{key:"e1d54dfcda6e524c222eb31f8fa799504e6279ba",role:"toolbar","aria-label":"Container actions"},s("sl-tooltip",{key:"44807305749f92f1fd124e55034bdd3332dfde64",content:"Create new file"},s("button",{key:"9e14fab58d54e2ebb3ca8252e02aa78b2cdcba77","aria-label":"Create new file",onClick:()=>this.createNewFile.emit()},s("sl-icon",{key:"f54684a26fb30d40a59d12c89f369748b901b084",name:"file-earmark-plus"}))),s("sl-tooltip",{key:"b97b05975037478df3af44b1ba5f83e69b4b2013",content:"Create new folder"},s("button",{key:"d1b7187b016554afe9924fd71cff4154b4966888","aria-label":"Create new folder",onClick:()=>this.createNewFolder.emit()},s("sl-icon",{key:"8b19ce8ab8ab968516a22621367282f5e8c6e583",name:"folder-plus"}))))}};c.style=":host{display:flex;gap:var(--size-1);padding-bottom:var(--size-1);button{padding:var(--size-2);aspect-ratio:1/1;display:flex}}";const d=class{constructor(s){e(this,s),this.linkEmitter=t(this,"pod-os:link",7),this.errorEmitter=t(this,"pod-os:error",7),this.handleInput=e=>{this.name=e.target.value}}async componentWillLoad(){this.os=await i(this.el)}componentDidLoad(){this.input.focus()}render(){const e=`Enter ${this.type} name`;return s("form",{key:"0144661eaae4e4cace6098477b6e3d5a88dee2e5",onSubmit:e=>this.submit(e)},s("sl-icon",{key:"c48b373fae21914fd379d8e98b83a1d9f97ecc9e",name:this.getIcon()}),s("input",{key:"da220ae7d719a4213e84bb156ebba719f596a069",type:"text",value:this.name,onInput:e=>this.handleInput(e),placeholder:e,ref:e=>this.input=e}))}getIcon(){return"file"===this.type?"file-earmark-plus":"folder-plus"}async submit(e){e.preventDefault();let t=await this.createNew();t.isOk()?this.linkEmitter.emit(t.value.url):this.errorEmitter.emit(t.error)}async createNew(){return"file"===this.type?this.os.files().createNewFile(this.container,this.name):this.os.files().createNewFolder(this.container,this.name)}get el(){return a(this)}};d.style=":host{form{display:flex;align-items:center;gap:var(--size-2);padding:var(--size-4);background-color:var(--pos-background-color)}}";export{l as pos_container_item,c as pos_container_toolbar,d as pos_create_new_container_item}
1
+ import{r as e,c as t,h as s,e as o,a}from"./p-Dunlf3Z7.js";import{s as r}from"./p-BW_CkW1K.js";import"./p-D8UlKjrD.js";import"./p-BvR_sP9G.js";import"./p-B3jnBMMO.js";import"./p-CzUN2DJY.js";import"./p-BnGEOH37.js";import{u as i}from"./p-D0uCfr1-.js";import"./p-bf6nCqHq.js";function n(e,t){return e.some((e=>e.uri===t))}const l=class{constructor(s){e(this,s),this.linkEmitter=t(this,"pod-os:link",7),this.subscribeResource=t(this,"pod-os:resource",7),this.receiveResource=e=>{this.resource=e}}componentWillLoad(){r(this)}render(){if(!this.resource)return null;const e=n(t=this.resource.types(),"http://www.w3.org/ns/ldp#Container")?"folder2":n(t,"http://www.w3.org/ns/ldp#Resource")?"file-earmark":"question-diamond";var t;return s("a",{href:this.resource.uri,onClick:e=>{e.preventDefault(),this.linkEmitter.emit(this.resource.uri)}},s("sl-icon",{name:e,slot:"start"}),s("slot",null))}};l.style=":host{display:flex}a{display:flex;text-decoration:none;padding:var(--size-4);width:var(--size-full);gap:var(--size-2);color:var(--pos-normal-text-color);background-color:var(--pos-background-color);&:hover{background-color:var(--pos-border-color)}}";const c=class{constructor(s){e(this,s),this.createNewFile=t(this,"pod-os:create-new-file",7),this.createNewFolder=t(this,"pod-os:create-new-folder",7)}render(){return s(o,{key:"e1d54dfcda6e524c222eb31f8fa799504e6279ba",role:"toolbar","aria-label":"Container actions"},s("sl-tooltip",{key:"44807305749f92f1fd124e55034bdd3332dfde64",content:"Create new file"},s("button",{key:"9e14fab58d54e2ebb3ca8252e02aa78b2cdcba77","aria-label":"Create new file",onClick:()=>this.createNewFile.emit()},s("sl-icon",{key:"f54684a26fb30d40a59d12c89f369748b901b084",name:"file-earmark-plus"}))),s("sl-tooltip",{key:"b97b05975037478df3af44b1ba5f83e69b4b2013",content:"Create new folder"},s("button",{key:"d1b7187b016554afe9924fd71cff4154b4966888","aria-label":"Create new folder",onClick:()=>this.createNewFolder.emit()},s("sl-icon",{key:"8b19ce8ab8ab968516a22621367282f5e8c6e583",name:"folder-plus"}))))}};c.style=":host{display:flex;gap:var(--size-1);padding-bottom:var(--size-1);button{padding:var(--size-2);aspect-ratio:1/1;display:flex}}";const d=class{constructor(s){e(this,s),this.linkEmitter=t(this,"pod-os:link",7),this.errorEmitter=t(this,"pod-os:error",7),this.handleInput=e=>{this.name=e.target.value}}async componentWillLoad(){this.os=await i(this.el)}componentDidLoad(){this.input.focus()}render(){const e=`Enter ${this.type} name`;return s("form",{key:"0144661eaae4e4cace6098477b6e3d5a88dee2e5",onSubmit:e=>this.submit(e)},s("sl-icon",{key:"c48b373fae21914fd379d8e98b83a1d9f97ecc9e",name:this.getIcon()}),s("input",{key:"da220ae7d719a4213e84bb156ebba719f596a069",type:"text",value:this.name,onInput:e=>this.handleInput(e),placeholder:e,ref:e=>this.input=e}))}getIcon(){return"file"===this.type?"file-earmark-plus":"folder-plus"}async submit(e){e.preventDefault();let t=await this.createNew();t.isOk()?this.linkEmitter.emit(t.value.url):this.errorEmitter.emit(t.error)}async createNew(){return"file"===this.type?this.os.files().createNewFile(this.container,this.name):this.os.files().createNewFolder(this.container,this.name)}get el(){return a(this)}};d.style=":host{form{display:flex;align-items:center;gap:var(--size-2);padding:var(--size-4);background-color:var(--pos-background-color)}}";export{l as pos_container_item,c as pos_container_toolbar,d as pos_create_new_container_item}
@@ -1 +1 @@
1
- import{r as t,c as o,h as s,e,a as i}from"./p-DScSUBy-.js";import{a as r}from"./p-B0L5m2PZ.js";import{s as a}from"./p-jlzl8vRd.js";import{s as n}from"./p-Bug_w-vi.js";import"./p-BkeypvMo.js";import"./p-BXdS2klL.js";import"./p-BnGEOH37.js";import"./p-C8LPXtIR.js";import"./p-D_nUMgR-.js";import"./p-BXcFVJku.js";const l=class{constructor(s){t(this,s),this.subscribePodOs=o(this,"pod-os:init",7),this.errorEmitter=o(this,"pod-os:error",7),this.indexUpdatedEmitter=o(this,"pod-os:search:index-updated",7),this.indexCreatedEmitter=o(this,"pod-os:search:index-created",7),this.indexes=[],this.showOptions=!1,this.isIndexed=!1,this.receivePodOs=async t=>{this.os=t,this.thing=this.os.store.get(this.uri),this.getLabelIndexes(n.state.profile),this.unsubscribeSessionChange=n.onChange("profile",(t=>{this.getLabelIndexes(t)}))}}componentWillLoad(){a(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}updateUri(t){this.thing=this.os.store.get(t),this.isIndexed=this.checkIfIndexed(t)}checkIfIndexed(t){return this.indexes.some((o=>o.contains(t)))}getLabelIndexes(t){t&&(this.indexes=t.getPrivateLabelIndexes().map((t=>this.os.store.get(t).assume(r))),this.showOptions=this.indexes.length>1,this.isIndexed=this.checkIfIndexed(this.uri))}async onClick(t){if(t.preventDefault(),1===this.indexes.length){const t=this.indexes[0];await this.addToLabelIndex(t),this.indexUpdatedEmitter.emit(t)}else if(0===this.indexes.length){const t=await this.createDefaultLabelIndex();await this.addToLabelIndex(t),this.indexCreatedEmitter.emit(t)}}async addToLabelIndex(t){try{await this.os.addToLabelIndex(this.thing,t),this.isIndexed=!0}catch(t){this.errorEmitter.emit(t)}}async createDefaultLabelIndex(){try{return await this.os.createDefaultLabelIndex(n.state.profile)}catch(t){this.errorEmitter.emit(t)}}render(){if(!n.state.isLoggedIn||!this.uri)return null;const t="Make this findable",o=s("button",{type:"button",slot:"trigger","aria-label":t,class:{main:!0,success:this.isIndexed},onClick:t=>this.onClick(t),title:""},s(this.isIndexed?h:c,null),s("p",null,t));return this.showOptions?s(e,null,s("sl-dropdown",null,o,s("sl-menu",{role:"listbox"},this.indexes.map((t=>s("sl-menu-item",{role:"option",value:t,type:"checkbox",checked:t.contains(this.uri)},s("pos-resource",{uri:t.uri,lazy:!0},s("pos-label",null)))))))):o}async onSelect(t){const o=t.detail.item.value;t.preventDefault(),await this.addToLabelIndex(o),this.indexUpdatedEmitter.emit(o)}get el(){return i(this)}static get watchers(){return{uri:[{updateUri:0}]}}},c=()=>s("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"})),h=()=>s("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}));l.style="button.main{display:flex;transition:width 200ms, background-color 500ms, color 500ms, border-color 500ms;max-width:var(--size-40);flex-direction:row;overflow:hidden;height:var(--pos-navigation-bar-height);width:var(--pos-navigation-bar-height);align-items:center;justify-content:center;border-radius:var(--radius-md);color:var(--pos-subtle-text-color);border:var(--size-px) dashed var(--pos-subtle-text-color);background-color:var(--pos-background-color);p{padding:0;margin:0;display:none;white-space:nowrap}&.success{color:var(--color-green-700);border-color:var(--color-green-700);border-style:solid;background-color:var(--color-green-100)}&:active{transform:scale(0.99);filter:brightness(90%)}&:focus{outline:var(--pos-input-focus-outline)}}svg{display:inline-block;height:var(--size-6);flex-shrink:0;flex-grow:0;width:var(--size-6)}button.main:hover,sl-dropdown[open] button{width:var(--size-full);height:var(--pos-navigation-bar-height);background:var(--pos-background-color);color:var(--pos-normal-text-color);&.success{background:var(--color-green-200);color:var(--color-green-700)}p{display:inline-block}}";const d=class{constructor(s){t(this,s),this.navigate=o(this,"pod-os:navigate",7)}onClick(){this.navigate.emit(this.current)}activate(t){(t.ctrlKey||t.metaKey)&&"k"===t.key&&(t.preventDefault(),this.navigate.emit(this.current))}render(){const t=this.current?`${this.current.label()} (Click to search or enter URI)`:"Search or enter URI";return s("section",{key:"5f49aa9dad9d07550ee8ffbee90036cbc1efda55",class:"current"},this.current&&this.searchIndexReady&&s("pos-make-findable",{key:"85974a4772aaf8cad3a11cdcd49e6df10141bfe3",uri:this.current.uri}),s("button",{key:"40660a3455b0f3392c68d7aea0075b102a1762a2","aria-label":t,onClick:()=>this.onClick()},s("div",{key:"9ab8922175d701f714f72aefb95745cf5ae4bb95"},this.current?this.current.label():"Search or enter URI"),this.icon()))}icon(){return s("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}};d.style="section.current{display:flex;height:var(--pos-navigation-bar-height);flex-grow:1;gap:0;background-color:var(--pos-input-background-color);border-radius:var(--radius-md);width:100%;&:focus-within{outline:var(--pos-input-focus-outline)}}section.current button{cursor:pointer;font-size:var(--scale-1);display:flex;align-items:center;justify-content:center;flex-grow:1;background:none;color:var(--pos-normal-text-color);outline:none;border:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:focus{text-decoration:underline}:first-child{flex-grow:1}svg{width:var(--size-6);color:var(--pos-subtle-text-color)}}";export{l as pos_make_findable,d as pos_navigation_bar}
1
+ import{r as t,c as o,h as s,e,a as r}from"./p-Dunlf3Z7.js";import{a as i}from"./p-B0L5m2PZ.js";import{s as a}from"./p-jlzl8vRd.js";import{s as n}from"./p-C36YDIjT.js";import"./p-VfX5yLuQ.js";import"./p-CzUN2DJY.js";import"./p-BnGEOH37.js";import"./p-BvR_sP9G.js";import"./p-bf6nCqHq.js";import"./p-Dq6SRSqM.js";const l=class{constructor(s){t(this,s),this.subscribePodOs=o(this,"pod-os:init",7),this.errorEmitter=o(this,"pod-os:error",7),this.indexUpdatedEmitter=o(this,"pod-os:search:index-updated",7),this.indexCreatedEmitter=o(this,"pod-os:search:index-created",7),this.indexes=[],this.showOptions=!1,this.isIndexed=!1,this.receivePodOs=async t=>{this.os=t,this.thing=this.os.store.get(this.uri),this.getLabelIndexes(n.state.profile),this.unsubscribeSessionChange=n.onChange("profile",(t=>{this.getLabelIndexes(t)}))}}componentWillLoad(){a(this)}disconnectedCallback(){this.unsubscribeSessionChange&&this.unsubscribeSessionChange()}updateUri(t){this.thing=this.os.store.get(t),this.isIndexed=this.checkIfIndexed(t)}checkIfIndexed(t){return this.indexes.some((o=>o.contains(t)))}getLabelIndexes(t){t&&(this.indexes=t.getPrivateLabelIndexes().map((t=>this.os.store.get(t).assume(i))),this.showOptions=this.indexes.length>1,this.isIndexed=this.checkIfIndexed(this.uri))}async onClick(t){if(t.preventDefault(),1===this.indexes.length){const t=this.indexes[0];await this.addToLabelIndex(t),this.indexUpdatedEmitter.emit(t)}else if(0===this.indexes.length){const t=await this.createDefaultLabelIndex();await this.addToLabelIndex(t),this.indexCreatedEmitter.emit(t)}}async addToLabelIndex(t){try{await this.os.addToLabelIndex(this.thing,t),this.isIndexed=!0}catch(t){this.errorEmitter.emit(t)}}async createDefaultLabelIndex(){try{return await this.os.createDefaultLabelIndex(n.state.profile)}catch(t){this.errorEmitter.emit(t)}}render(){if(!n.state.isLoggedIn||!this.uri)return null;const t="Make this findable",o=s("button",{type:"button",slot:"trigger","aria-label":t,class:{main:!0,success:this.isIndexed},onClick:t=>this.onClick(t),title:""},s(this.isIndexed?h:c,null),s("p",null,t));return this.showOptions?s(e,null,s("sl-dropdown",null,o,s("sl-menu",{role:"listbox"},this.indexes.map((t=>s("sl-menu-item",{role:"option",value:t,type:"checkbox",checked:t.contains(this.uri)},s("pos-resource",{uri:t.uri,lazy:!0},s("pos-label",null)))))))):o}async onSelect(t){const o=t.detail.item.value;t.preventDefault(),await this.addToLabelIndex(o),this.indexUpdatedEmitter.emit(o)}get el(){return r(this)}static get watchers(){return{uri:[{updateUri:0}]}}},c=()=>s("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"})),h=()=>s("svg",{role:"presentation",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.125 2.25h-4.5c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125v-9M10.125 2.25h.375a9 9 0 0 1 9 9v.375M10.125 2.25A3.375 3.375 0 0 1 13.5 5.625v1.5c0 .621.504 1.125 1.125 1.125h1.5a3.375 3.375 0 0 1 3.375 3.375M9 15l2.25 2.25L15 12"}));l.style="button.main{display:flex;transition:width 200ms, background-color 500ms, color 500ms, border-color 500ms;max-width:var(--size-40);flex-direction:row;overflow:hidden;height:var(--pos-navigation-bar-height);width:var(--pos-navigation-bar-height);align-items:center;justify-content:center;border-radius:var(--radius-md);color:var(--pos-subtle-text-color);border:var(--size-px) dashed var(--pos-subtle-text-color);background-color:var(--pos-background-color);p{padding:0;margin:0;display:none;white-space:nowrap}&.success{color:var(--color-green-700);border-color:var(--color-green-700);border-style:solid;background-color:var(--color-green-100)}&:active{transform:scale(0.99);filter:brightness(90%)}&:focus{outline:var(--pos-input-focus-outline)}}svg{display:inline-block;height:var(--size-6);flex-shrink:0;flex-grow:0;width:var(--size-6)}button.main:hover,sl-dropdown[open] button{width:var(--size-full);height:var(--pos-navigation-bar-height);background:var(--pos-background-color);color:var(--pos-normal-text-color);&.success{background:var(--color-green-200);color:var(--color-green-700)}p{display:inline-block}}";const d=class{constructor(s){t(this,s),this.navigate=o(this,"pod-os:navigate",7)}onClick(){this.navigate.emit(this.current)}activate(t){(t.ctrlKey||t.metaKey)&&"k"===t.key&&(t.preventDefault(),this.navigate.emit(this.current))}render(){const t=this.current?`${this.current.label()} (Click to search or enter URI)`:"Search or enter URI";return s("section",{key:"5f49aa9dad9d07550ee8ffbee90036cbc1efda55",class:"current"},this.current&&this.searchIndexReady&&s("pos-make-findable",{key:"85974a4772aaf8cad3a11cdcd49e6df10141bfe3",uri:this.current.uri}),s("button",{key:"40660a3455b0f3392c68d7aea0075b102a1762a2","aria-label":t,onClick:()=>this.onClick()},s("div",{key:"9ab8922175d701f714f72aefb95745cf5ae4bb95"},this.current?this.current.label():"Search or enter URI"),this.icon()))}icon(){return s("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}};d.style="section.current{display:flex;height:var(--pos-navigation-bar-height);flex-grow:1;gap:0;background-color:var(--pos-input-background-color);border-radius:var(--radius-md);width:100%;&:focus-within{outline:var(--pos-input-focus-outline)}}section.current button{cursor:pointer;font-size:var(--scale-1);display:flex;align-items:center;justify-content:center;flex-grow:1;background:none;color:var(--pos-normal-text-color);outline:none;border:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:focus{text-decoration:underline}:first-child{flex-grow:1}svg{width:var(--size-6);color:var(--pos-subtle-text-color)}}";export{l as pos_make_findable,d as pos_navigation_bar}
@@ -1 +1 @@
1
- import{r as e,h as a,e as d}from"./p-DScSUBy-.js";const c=class{constructor(a){e(this,a)}render(){return a(d,{key:"8e29bb7745cec5493c102c2262b14291eb9fb62a"},a("section",{key:"2da95db7a410290cb89f7d3bebaae29c35e05785"},a("article",{key:"00d74d2f184cc32711f05c4729d85b324157aefd","aria-labelledby":"thing-title"},a("header",{key:"6e5e770f2dfe63cad9ecfb1a4bfa00d6a3c8f367"},a("pos-picture",{key:"8b96bdc83505c8e0a9ca27dfb4dcd9f9a750cac2",blurredBackground:!0}),a("h1",{key:"1190b2d13425f69220b364c0be60622eab32a58b",id:"thing-title"},a("pos-label",{key:"3d326707131bd2aa78efce0a1f7d30a9579c382a"})),a("pos-type-badges",{key:"142231486b4eafdd64592f38ccf021f5877dff1a"})),a("main",{key:"bdc3cbb8d7d6b81c3ca46d1568be1a7b421e50c1"},a("pos-description",{key:"1f7751b5b1f27b48c0729189c417945b1df5e657"})))),a("section",{key:"23b415a0f702c122bd736d7f3cd094adf2fca6c0"},a("pos-literals",{key:"f8518f73b5a189fb8b68997ca000aaeb0f5b47a4"})),a("section",{key:"c118b3e4dea9c007cbccfe4972a9c68d02d8451e"},a("pos-relations",{key:"6e06c6dbf7f537bb945c9b35fdd59993518c2eb5"}),a("pos-reverse-relations",{key:"d20aba82f29d87ee3b22dcb71d92ea4f8318f544"})))}};c.style=":host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}article{outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;pos-picture{--object-fit:contain;--width:100%;--height:auto;--max-height:300px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;--border-radius:var(--radius-sm) var(--radius-sm) 0 0}h1,pos-type-badges{margin:var(--size-2)}}main{padding:var(--size-2);pos-description{color:var(--pos-secondary-text-color);font-weight:var(--weight-light)}}}@media (min-width: 640px){:host{flex-direction:row;flex-wrap:wrap;section:first-of-type{flex:0 0 25%}section:not(:first-of-type){flex:1}}}";export{c as pos_app_generic}
1
+ import{r as e,h as a,e as d}from"./p-Dunlf3Z7.js";const c=class{constructor(a){e(this,a)}render(){return a(d,{key:"8e29bb7745cec5493c102c2262b14291eb9fb62a"},a("section",{key:"2da95db7a410290cb89f7d3bebaae29c35e05785"},a("article",{key:"00d74d2f184cc32711f05c4729d85b324157aefd","aria-labelledby":"thing-title"},a("header",{key:"6e5e770f2dfe63cad9ecfb1a4bfa00d6a3c8f367"},a("pos-picture",{key:"8b96bdc83505c8e0a9ca27dfb4dcd9f9a750cac2",blurredBackground:!0}),a("h1",{key:"1190b2d13425f69220b364c0be60622eab32a58b",id:"thing-title"},a("pos-label",{key:"3d326707131bd2aa78efce0a1f7d30a9579c382a"})),a("pos-type-badges",{key:"142231486b4eafdd64592f38ccf021f5877dff1a"})),a("main",{key:"bdc3cbb8d7d6b81c3ca46d1568be1a7b421e50c1"},a("pos-description",{key:"1f7751b5b1f27b48c0729189c417945b1df5e657"})))),a("section",{key:"23b415a0f702c122bd736d7f3cd094adf2fca6c0"},a("pos-literals",{key:"f8518f73b5a189fb8b68997ca000aaeb0f5b47a4"})),a("section",{key:"c118b3e4dea9c007cbccfe4972a9c68d02d8451e"},a("pos-relations",{key:"6e06c6dbf7f537bb945c9b35fdd59993518c2eb5"}),a("pos-reverse-relations",{key:"d20aba82f29d87ee3b22dcb71d92ea4f8318f544"})))}};c.style=":host{--gap-size:var(--size-1);display:flex;flex-direction:column;gap:var(--gap-size);margin:var(--gap-size)}article{outline:var(--pos-border-solid);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);background-color:var(--pos-card-background);header{display:flex;flex-direction:column;pos-picture{--object-fit:contain;--width:100%;--height:auto;--max-height:300px;border-radius:var(--radius-sm) var(--radius-sm) 0 0;--border-radius:var(--radius-sm) var(--radius-sm) 0 0}h1,pos-type-badges{margin:var(--size-2)}}main{padding:var(--size-2);pos-description{color:var(--pos-secondary-text-color);font-weight:var(--weight-light)}}}@media (min-width: 640px){:host{flex-direction:row;flex-wrap:wrap;section:first-of-type{flex:0 0 25%}section:not(:first-of-type){flex:1}}}";export{c as pos_app_generic}
@@ -1 +1 @@
1
- import{r as s,c as t,h as i,a as h}from"./p-DScSUBy-.js";import{s as o}from"./p-BW_CkW1K.js";import{s as r}from"./p-jlzl8vRd.js";import{c as e}from"./p-vFMstSdt.js";const n=class{constructor(i){s(this,i),this.subscribeResource=t(this,"pod-os:resource",7),this.subscribePodOs=t(this,"pod-os:init",7),this.fetch=!1,this.error=null,this.items=[],this.disconnected$=new e.Subject,this.receiveResource=s=>{this.items=[],this.rel&&(this.items=s.relations(this.rel).flatMap((s=>s.uris)))},this.receivePodOs=async s=>{s.store.observeFindMembers(this.ifTypeof).pipe(e.takeUntil(this.disconnected$)).subscribe((s=>this.items=s))}}componentWillLoad(){this.rel&&o(this),this.ifTypeof&&r(this);const s=this.host.querySelector("template");null==s?this.error="No template element found":this.templateString=s.innerHTML}render(){if(this.error)return this.error;const s=this.items.map((s=>i("pos-resource",{uri:s,lazy:!this.fetch,innerHTML:this.templateString,about:s})));return this.items.length>0?s:null}disconnectedCallback(){this.disconnected$.next(),this.disconnected$.unsubscribe()}get host(){return h(this)}};export{n as pos_list}
1
+ import{r as s,c as t,h as i,a as h}from"./p-Dunlf3Z7.js";import{s as o}from"./p-BW_CkW1K.js";import{s as r}from"./p-jlzl8vRd.js";import{c as e}from"./p-vFMstSdt.js";const n=class{constructor(i){s(this,i),this.subscribeResource=t(this,"pod-os:resource",7),this.subscribePodOs=t(this,"pod-os:init",7),this.fetch=!1,this.error=null,this.items=[],this.disconnected$=new e.Subject,this.receiveResource=s=>{this.items=[],this.rel&&(this.items=s.relations(this.rel).flatMap((s=>s.uris)))},this.receivePodOs=async s=>{s.store.observeFindMembers(this.ifTypeof).pipe(e.takeUntil(this.disconnected$)).subscribe((s=>this.items=s))}}componentWillLoad(){this.rel&&o(this),this.ifTypeof&&r(this);const s=this.host.querySelector("template");null==s?this.error="No template element found":this.templateString=s.innerHTML}render(){if(this.error)return this.error;const s=this.items.map((s=>i("pos-resource",{uri:s,lazy:!this.fetch,innerHTML:this.templateString,about:s})));return this.items.length>0?s:null}disconnectedCallback(){this.disconnected$.next(),this.disconnected$.unsubscribe()}get host(){return h(this)}};export{n as pos_list}