@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,4 +1,4 @@
1
- import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js";import{i as s,x as r,c as a,S as n,_ as l,r as c,n as d,a as h,w as u}from"./p-C8LPXtIR.js";import{e as p}from"./p-D_nUMgR-.js";import{o as b}from"./p-BXcFVJku.js";import{e as v,s as m,a as g,g as f,b as w,w as y}from"./p-BXdS2klL.js";import{H as _}from"./p-BkeypvMo.js";import{L as k}from"./p-BnGEOH37.js";import{c as x}from"./p-vFMstSdt.js";import{s as $}from"./p-Bug_w-vi.js";import{s as z}from"./p-jlzl8vRd.js";import{c as S}from"./p-SrdKoY3I.js";import{s as C}from"./p-BW_CkW1K.js";const j=class{constructor(e){t(this,e)}openDialog(){this.dialog.showModal()}render(){return e(i,{key:"9a60547270fcc455679acdfe6de75da57e513b1f"},e("button",{key:"32a8ba00ef511587024c843663e281e2b6930c19",id:"new",title:"Add a new thing",onClick:()=>this.openDialog()},e("sl-icon",{key:"6faf99cef999b441410770b0509f5a8d6a10f7e9",name:"plus-circle"})),e("pos-dialog",{key:"f6cd827c19d3dfe33500f03e561f399e11d728ce",ref:t=>this.dialog=t},e("span",{key:"ff40b8f28a349a1ad6db11e2d427d74ea5fbd300",slot:"title"},"Add a new thing"),e("pos-new-thing-form",{key:"e48257160d78d025e6213bd61c4953261d4829c2",slot:"content",referenceUri:this.referenceUri})))}};j.style=":host{font-family:var(--font-sans);display:block}button#new{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;width:var(--size-10);height:var(--size-10);background-color:var(--pos-primary-color);color:var(--pos-primary-text-color);font-size:var(--scale-6);border-radius:var(--radius-xs);padding:var(--size-2)}button#new:hover,button#new:focus{outline:none;filter:brightness(110%);box-shadow:var(--shadow-sm)}pos-new-thing-form{margin:var(--scale-3)}";var I=s`
1
+ import{r as t,h as e,e as i,c as o}from"./p-Dunlf3Z7.js";import"./p-D8UlKjrD.js";import{i as s,x as r,c as a,S as n,_ as l,r as c,n as d,a as h,w as u}from"./p-BvR_sP9G.js";import{e as p}from"./p-bf6nCqHq.js";import{o as b}from"./p-Dq6SRSqM.js";import{e as v,s as m,a as f,g,b as w,w as y}from"./p-CzUN2DJY.js";import{H as _}from"./p-VfX5yLuQ.js";import{L as k}from"./p-BnGEOH37.js";import{c as x}from"./p-vFMstSdt.js";import{s as $}from"./p-C36YDIjT.js";import{s as z}from"./p-jlzl8vRd.js";import{c as C}from"./p-_eHMN8WS.js";import{s as j}from"./p-BW_CkW1K.js";const S=class{constructor(e){t(this,e)}openDialog(){this.dialog.showModal()}render(){return e(i,{key:"9a60547270fcc455679acdfe6de75da57e513b1f"},e("button",{key:"32a8ba00ef511587024c843663e281e2b6930c19",id:"new",title:"Add a new thing",onClick:()=>this.openDialog()},e("sl-icon",{key:"6faf99cef999b441410770b0509f5a8d6a10f7e9",name:"plus-circle"})),e("pos-dialog",{key:"f6cd827c19d3dfe33500f03e561f399e11d728ce",ref:t=>this.dialog=t},e("span",{key:"ff40b8f28a349a1ad6db11e2d427d74ea5fbd300",slot:"title"},"Add a new thing"),e("pos-new-thing-form",{key:"e48257160d78d025e6213bd61c4953261d4829c2",slot:"content",referenceUri:this.referenceUri})))}};S.style=":host{font-family:var(--font-sans);display:block}button#new{cursor:pointer;display:flex;align-items:center;justify-content:center;border:none;width:var(--size-10);height:var(--size-10);background-color:var(--pos-primary-color);color:var(--pos-primary-text-color);font-size:var(--scale-6);border-radius:var(--radius-xs);padding:var(--size-2)}button#new:hover,button#new:focus{outline:none;filter:brightness(110%);box-shadow:var(--shadow-sm)}pos-new-thing-form{margin:var(--scale-3)}";var D=s`
2
2
  :host {
3
3
  display: inline-block;
4
4
  color: var(--sl-color-neutral-600);
@@ -50,7 +50,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
50
50
  * @license
51
51
  * Copyright 2020 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;const D=Symbol.for(""),R=t=>{if(t?.r===D)return t?._$litStatic$},U=(t,...e)=>({_$litStatic$:e.reduce(((e,i,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[o+1]),t[0]),r:D}),B=new Map,L=(A=r,(t,...e)=>{const i=e.length;let o,s;const r=[],a=[];let n,l=0,c=!1;for(;l<i;){for(n=t[l];l<i&&void 0!==(s=e[l],o=R(s));)n+=o+t[++l],c=!0;l!==i&&a.push(s),r.push(n),l++}if(l===i&&r.push(t[i]),c){const i=r.join("$$lit$$");void 0===(t=B.get(i))&&(r.raw=r,B.set(i,t=r)),e=a}return A(t,...e)});var A,E=class extends h{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?U`a`:U`button`;return L`
53
+ */;const I=Symbol.for(""),R=t=>{if(t?.r===I)return t?._$litStatic$},U=(t,...e)=>({_$litStatic$:e.reduce(((e,i,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(i)+t[o+1]),t[0]),r:I}),A=new Map,E=(L=r,(t,...e)=>{const i=e.length;let o,s;const r=[],a=[];let n,l=0,c=!1;for(;l<i;){for(n=t[l];l<i&&void 0!==(s=e[l],o=R(s));)n+=o+t[++l],c=!0;l!==i&&a.push(s),r.push(n),l++}if(l===i&&r.push(t[i]),c){const i=r.join("$$lit$$");void 0===(t=A.get(i))&&(r.raw=r,A.set(i,t=r)),e=a}return L(t,...e)});var L,q=class extends h{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?U`a`:U`button`;return E`
54
54
  <${e}
55
55
  part="base"
56
56
  class=${p({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
@@ -76,7 +76,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
76
76
  aria-hidden="true"
77
77
  ></sl-icon>
78
78
  </${e}>
79
- `}};E.styles=[a,I],E.dependencies={"sl-icon":n},l([v(".icon-button")],E.prototype,"button",2),l([c()],E.prototype,"hasFocus",2),l([d()],E.prototype,"name",2),l([d()],E.prototype,"library",2),l([d()],E.prototype,"src",2),l([d()],E.prototype,"href",2),l([d()],E.prototype,"target",2),l([d()],E.prototype,"download",2),l([d()],E.prototype,"label",2),l([d({type:Boolean,reflect:!0})],E.prototype,"disabled",2);var F=s`
79
+ `}};q.styles=[a,D],q.dependencies={"sl-icon":n},l([v(".icon-button")],q.prototype,"button",2),l([c()],q.prototype,"hasFocus",2),l([d()],q.prototype,"name",2),l([d()],q.prototype,"library",2),l([d()],q.prototype,"src",2),l([d()],q.prototype,"href",2),l([d()],q.prototype,"target",2),l([d()],q.prototype,"download",2),l([d()],q.prototype,"label",2),l([d({type:Boolean,reflect:!0})],q.prototype,"disabled",2);var B=s`
80
80
  :host {
81
81
  display: contents;
82
82
 
@@ -216,7 +216,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
216
216
  .alert__timer {
217
217
  display: none;
218
218
  }
219
- `,O=class t extends h{constructor(){super(...arguments),this.hasSlotController=new _(this,"icon","suffix"),this.localize=new k(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0,this.remainingTime=this.duration}static get toastStack(){return this.currentToastStack||(this.currentToastStack=Object.assign(document.createElement("div"),{className:"sl-toast-stack"})),this.currentToastStack}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){this.handleCountdownChange(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration),this.remainingTime=this.duration,this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100))}pauseAutoHide(){var t;null==(t=this.countdownAnimation)||t.pause(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval)}resumeAutoHide(){var t;this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.remainingTime),this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100),null==(t=this.countdownAnimation)||t.play())}handleCountdownChange(){if(this.open&&this.duration<1/0&&this.countdown){const{countdownElement:t}=this;this.countdownAnimation=t.animate([{width:"100%"},{width:"0"}],{duration:this.duration,easing:"linear"})}}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await g(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=f(this,"alert.show",{dir:this.localize.dir()});await w(this.base,t,e),this.emit("sl-after-show")}else{(t=>{var e;const{activeElement:i}=document;i&&t.contains(i)&&(null==(e=document.activeElement)||e.blur())})(this),this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),await g(this.base);const{keyframes:t,options:e}=f(this,"alert.hide",{dir:this.localize.dir()});await w(this.base,t,e),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,y(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,y(this,"sl-after-hide")}async toast(){return new Promise((e=>{this.handleCountdownChange(),null===t.toastStack.parentElement&&document.body.append(t.toastStack),t.toastStack.appendChild(this),requestAnimationFrame((()=>{this.show()})),this.addEventListener("sl-after-hide",(()=>{t.toastStack.removeChild(this),e(),null===t.toastStack.querySelector("sl-alert")&&t.toastStack.remove()}),{once:!0})}))}render(){return r`
219
+ `,O=class t extends h{constructor(){super(...arguments),this.hasSlotController=new _(this,"icon","suffix"),this.localize=new k(this),this.open=!1,this.closable=!1,this.variant="primary",this.duration=1/0,this.remainingTime=this.duration}static get toastStack(){return this.currentToastStack||(this.currentToastStack=Object.assign(document.createElement("div"),{className:"sl-toast-stack"})),this.currentToastStack}firstUpdated(){this.base.hidden=!this.open}restartAutoHide(){this.handleCountdownChange(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.duration),this.remainingTime=this.duration,this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100))}pauseAutoHide(){var t;null==(t=this.countdownAnimation)||t.pause(),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval)}resumeAutoHide(){var t;this.duration<1/0&&(this.autoHideTimeout=window.setTimeout((()=>this.hide()),this.remainingTime),this.remainingTimeInterval=window.setInterval((()=>{this.remainingTime-=100}),100),null==(t=this.countdownAnimation)||t.play())}handleCountdownChange(){if(this.open&&this.duration<1/0&&this.countdown){const{countdownElement:t}=this;this.countdownAnimation=t.animate([{width:"100%"},{width:"0"}],{duration:this.duration,easing:"linear"})}}handleCloseClick(){this.hide()}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.duration<1/0&&this.restartAutoHide(),await f(this.base),this.base.hidden=!1;const{keyframes:t,options:e}=g(this,"alert.show",{dir:this.localize.dir()});await w(this.base,t,e),this.emit("sl-after-show")}else{(t=>{var e;const{activeElement:i}=document;i&&t.contains(i)&&(null==(e=document.activeElement)||e.blur())})(this),this.emit("sl-hide"),clearTimeout(this.autoHideTimeout),clearInterval(this.remainingTimeInterval),await f(this.base);const{keyframes:t,options:e}=g(this,"alert.hide",{dir:this.localize.dir()});await w(this.base,t,e),this.base.hidden=!0,this.emit("sl-after-hide")}}handleDurationChange(){this.restartAutoHide()}async show(){if(!this.open)return this.open=!0,y(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,y(this,"sl-after-hide")}async toast(){return new Promise((e=>{this.handleCountdownChange(),null===t.toastStack.parentElement&&document.body.append(t.toastStack),t.toastStack.appendChild(this),requestAnimationFrame((()=>{this.show()})),this.addEventListener("sl-after-hide",(()=>{t.toastStack.removeChild(this),e(),null===t.toastStack.querySelector("sl-alert")&&t.toastStack.remove()}),{once:!0})}))}render(){return r`
220
220
  <div
221
221
  part="base"
222
222
  class=${p({alert:!0,"alert--open":this.open,"alert--closable":this.closable,"alert--has-countdown":!!this.countdown,"alert--has-icon":this.hasSlotController.test("icon"),"alert--primary":"primary"===this.variant,"alert--success":"success"===this.variant,"alert--neutral":"neutral"===this.variant,"alert--warning":"warning"===this.variant,"alert--danger":"danger"===this.variant})}
@@ -255,7 +255,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
255
255
  </div>
256
256
  `:""}
257
257
  </div>
258
- `}};O.styles=[a,F],O.dependencies={"sl-icon-button":E},l([v('[part~="base"]')],O.prototype,"base",2),l([v(".alert__countdown-elapsed")],O.prototype,"countdownElement",2),l([d({type:Boolean,reflect:!0})],O.prototype,"open",2),l([d({type:Boolean,reflect:!0})],O.prototype,"closable",2),l([d({reflect:!0})],O.prototype,"variant",2),l([d({type:Number})],O.prototype,"duration",2),l([d({type:String,reflect:!0})],O.prototype,"countdown",2),l([c()],O.prototype,"remainingTime",2),l([u("open",{waitUntilFirstUpdate:!0})],O.prototype,"handleOpenChange",1),l([u("duration")],O.prototype,"handleDurationChange",1);var M=O;m("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),m("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),M.define("sl-alert");const T=class{constructor(e){t(this,e)}async unhandledRejection(t){t.stopPropagation(),console.error("unhandled promise rejection",t),this.title="Unhandled promise rejection",this.message=t.reason.toString()}async catchError(t){if(t.stopPropagation(),console.error(t.detail),t.detail instanceof Error)this.title="Error",this.message=t.detail.message;else{const e=t.detail;this.title=e.title,this.message=e.detail}await this.alert.toast()}render(){return e(i,{key:"a2c2db82c085541f2912861ff715633c1a50872e"},e("sl-alert",{key:"af7e56dacdd8c2cdacfe4eb5020d59e8111e9947",ref:t=>this.alert=t,variant:"danger",duration:"10000",closable:!0},e("sl-icon",{key:"f50b8c321b0844c2f3cac2886f23b758e18500b1",slot:"icon",name:"exclamation-octagon"}),e("strong",{key:"0f7c7880b08366a16baaa1385df12614d6a6cddf"},this.title),e("br",{key:"5660dbabfa1162590b386087231301ee3920a415"}),this.message),e("slot",{key:"671026ea140044dfbeb63dee5c08a65591464668"}))}},H=class{constructor(e){t(this,e),this.uri="pod-os:dashboard"}render(){return e("pod-os:settings"===this.uri?"pos-app-settings":"pos-app-dashboard",null)}},V=class{constructor(e){t(this,e),this.subscribePodOs=o(this,"pod-os:init",7),this.linkEmitter=o(this,"pod-os:link",7),this.uri="",this.inputValue=this.uri,this.searchIndex=void 0,this.suggestions=[],this.selectedIndex=-1,this.resource=null,this.changeEvents=new x.Subject,this.debouncedSearch=null,this.receivePodOs=async t=>{this.os=t}}updateResource(){var t;try{this.resource=this.uri?null===(t=this.os)||void 0===t?void 0:t.store.get(this.uri):null}catch(t){this.resource=null}}componentWillLoad(){z(this),this.updateResource(),$.onChange("isLoggedIn",(async t=>{t?await this.buildSearchIndex():this.clearSearchIndex()})),this.debouncedSearch=this.changeEvents.pipe(x.debounceTime(300)).subscribe((()=>this.search()))}disconnectedCallback(){var t;null===(t=this.debouncedSearch)||void 0===t||t.unsubscribe()}async buildSearchIndex(){this.searchIndex=await this.os.buildSearchIndex($.state.profile)}rebuildSearchIndex(){this.searchIndex.rebuild()}openNavigationDialog(t){var e,i;this.resource=t.detail,t.detail&&(this.inputValue=t.detail.uri,this.search()),null===(e=this.inputRef)||void 0===e||e.select(),null===(i=this.dialogRef)||void 0===i||i.show()}clearSearchIndex(){var t;null===(t=this.searchIndex)||void 0===t||t.clear()}onChange(t){this.inputValue=t.target.value,this.changeEvents.next()}closeDialog(){var t;null===(t=this.dialogRef)||void 0===t||t.close(),this.selectedIndex=-1}clearSuggestions(){var t;this.suggestions=[],null===(t=this.dialogRef)||void 0===t||t.close(),this.selectedIndex=-1}onClickSelf(t){t.stopPropagation()}handleKeyDown(t){"Escape"===t.key?this.closeDialog():"ArrowDown"===t.key?(t.preventDefault(),this.selectedIndex=Math.min(this.selectedIndex+1,this.suggestions.length-1)):"ArrowUp"===t.key&&(t.preventDefault(),this.selectedIndex=Math.max(this.selectedIndex-1,0))}search(){this.searchIndex&&(this.suggestions=this.inputValue?this.searchIndex.search(this.inputValue):[])}onSubmit(){this.linkEmitter.emit(this.suggestions&&this.selectedIndex>-1?this.suggestions[this.selectedIndex].ref:this.inputValue)}render(){return e("nav",{key:"d5ad4841674cf172e9401a63fc50e58900ca5b1f"},e("search",{key:"8daf86774c49234d10637160fd983681ac483b44"},e("pos-navigation-bar",{key:"200137643dbc0aa1f120c231dc70a0d3f71b596a",searchIndexReady:void 0!==this.searchIndex,current:this.resource}),e("dialog",{key:"f2fb1d3e4a38d17efb6bd80ca791e8a30fafab66",ref:t=>this.dialogRef=t},e("form",{key:"e54698d8fb968a5ee6007cc4d5644fec36bf74f3",method:"dialog",onSubmit:()=>this.onSubmit()},e("input",{key:"633a4030c6296b5c94e2661bd73168afc1e04438",ref:t=>this.inputRef=t,enterkeyhint:"search","aria-label":"Search or enter URI",placeholder:"Search or enter URI",value:this.uri,onChange:t=>this.onChange(t),onInput:t=>this.onChange(t),role:"combobox","aria-autocomplete":"list","aria-expanded":this.suggestions.length>0,"aria-controls":"suggestions-list","aria-activedescendant":this.selectedIndex>=0?`option-${this.selectedIndex}`:null}),this.suggestions.length>0?e("div",{class:"suggestions"},e("ol",{id:"suggestions-list",role:"listbox","aria-label":"Search results"},this.suggestions.map(((t,i)=>e("li",{id:`option-${i}`,role:"option","aria-selected":i===this.selectedIndex?"true":"false"},e("pos-rich-link",{uri:t.ref})))))):null))))}static get watchers(){return{uri:[{updateResource:0}],os:[{updateResource:0}]}}};V.style=":host{--pos-navigation-bar-height:var(--size-10)}search{position:relative}.suggestions ol{border:1px solid var(--pos-border-color);display:flex;flex-direction:column;margin:0;padding:0;list-style-type:none}.suggestions{width:100%;overflow-y:auto;max-height:90dvh;li{padding:1rem;background-color:var(--pos-background-color);pos-rich-link{--background-color:inherit}&[aria-selected='true']{background-color:var(--pos-primary-color);&:hover{background-color:var(--pos-primary-color)}}&:hover{background-color:var(--pos-border-color)}}}.suggestions li.selected pos-rich-link{--label-color:white;--description-color:var(--pos-border-color);--uri-color:var(--pos-subtle-text-color)}dialog{position:absolute;margin-top:calc(-1 * var(--pos-navigation-bar-height));padding:0;width:100%;max-width:100%;min-width:100%;overflow:hidden;max-height:100dvh;background-color:var(--pos-background-color);color:var(--pos-normal-text-color);border:var(--pos-border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-md);form{display:flex;flex-direction:column;height:100%;width:100%;align-items:center;input{display:flex;font-size:var(--scale-1);height:var(--pos-navigation-bar-height);border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md);padding-left:var(--size-2);width:100%;border:none;outline:none;color:var(--pos-normal-text-color);background-color:var(--pos-input-background-color);box-sizing:border-box}}}dialog[open]{display:flex;z-index:var(--layer-top);animation:slideIn 100ms ease-out}@media (max-width: 640px){search{position:unset}dialog{margin-top:var(--size-1);top:0;width:95dvw;max-width:unset;min-width:unset;form{input{height:var(--size-12);font-size:var(--scale-fluid-3)}}}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}";const P=S(),W=class{constructor(e){t(this,e),this.routeChanged=o(this,"pod-os:route-changed",7),this.mode="standalone"}linkClicked(t){this.navigate(t.detail)}sessionRestored(t){P.push(t.detail.url)}componentWillLoad(){this.updateUri(),P.onChange("url",(()=>{this.updateUri()}))}navigate(t){P.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||("standalone"===this.mode?"pod-os:dashboard":window.location.href),this.routeChanged.emit(this.uri)}render(){return e("slot",{key:"8b09de3dbbd253665cd541b9f264b0dcdc774354"})}};W.style=".toolbar{display:flex;flex-direction:row;gap:0;align-items:center;margin-left:0.5rem}pos-navigation{flex-grow:1}";const q={Generic:{element:"pos-app-generic",label:"Data",icon:"list-ul",types:[]},Attachments:{element:"pos-tool-attachments",label:"Attach",icon:"paperclip",types:[]},RdfDocument:{element:"pos-app-rdf-document",label:"Things",icon:"diagram-2",types:[{uri:"http://www.w3.org/2007/ont/link#RDFDocument",priority:20}]},DocumentViewer:{element:"pos-app-document-viewer",label:"Doc",icon:"file-text",types:[{uri:"http://www.w3.org/ns/iana/media-types/application/pdf#Resource",priority:30},{uri:"http://www.w3.org/2007/ont/link#Document",priority:10}]},ImageViewer:{element:"pos-app-image-viewer",label:"Pic",icon:"file-image",types:[{uri:"http://purl.org/dc/terms/Image",priority:20}]},LdpContainer:{element:"pos-app-ldp-container",label:"Content",icon:"folder",types:[{uri:"http://www.w3.org/ns/ldp#Container",priority:30}]}};function X(t,e){return t.filter((t=>e.has(t.uri))).reduce(((t,e)=>Math.max(t,e.priority)),0)}const K=t=>t.priority>0,N=(t,e)=>e.priority-t.priority,G=class{constructor(e){t(this,e),this.subscribeResource=o(this,"pod-os:resource",7),this.transitioning=!1,this.receiveResource=t=>{var e;const i=t.types();this.availableTools=function(t){const e=new Set(t.map((t=>t.uri)));return Object.values(q).map((t=>e=>({tool:e,priority:X(e.types,t)}))(e)).filter(K).toSorted(N).map((t=>t.tool)).concat(q.Generic).concat(q.Attachments)}(i),this.currentTool=null!==(e=this.availableTools.find((t=>t.element===this.initialTool)))&&void 0!==e?e:this.availableTools[0]}}componentWillLoad(){C(this);const t=new URLSearchParams(window.location.search).get("tool");t&&(this.initialTool=t)}handleToolSelected(t){this.oldTool=this.currentTool,this.currentTool=t.detail,this.transitioning=!0;const e=new URL(window.location.href);e.searchParams.set("tool",t.detail.element),window.history.replaceState({},"",e.toString())}render(){return this.availableTools?this.renderApp():null}renderApp(){var t;const i=this.currentTool.element,o=null===(t=this.oldTool)||void 0===t?void 0:t.element;return e("section",null,e("pos-tool-select",{selected:this.currentTool,tools:this.availableTools}),e("div",{class:{tools:!0,transition:this.transitioning},onAnimationEnd:()=>this.removeOldTool()},o&&e(o,{class:"tool hidden"}),e(i,{class:"tool visible"})))}removeOldTool(){this.oldTool=null,this.transitioning=!1}};G.style="section{display:flex;flex-direction:row}.tools{flex-grow:1;&.transition{position:relative;.tool{position:absolute}}}.tool{top:0;right:0;left:0;bottom:0;&.visible{animation:fadeIn 300ms ease-in}&.hidden{animation:fadeOut 300ms ease-in}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}@media (max-width: 640px){section{--toolbar-size:var(--size-16);flex-direction:column-reverse;padding-bottom:var(--toolbar-size);pos-tool-select{--button-size:var(--toolbar-size)}}}";var J=s`
258
+ `}};O.styles=[a,B],O.dependencies={"sl-icon-button":q},l([v('[part~="base"]')],O.prototype,"base",2),l([v(".alert__countdown-elapsed")],O.prototype,"countdownElement",2),l([d({type:Boolean,reflect:!0})],O.prototype,"open",2),l([d({type:Boolean,reflect:!0})],O.prototype,"closable",2),l([d({reflect:!0})],O.prototype,"variant",2),l([d({type:Number})],O.prototype,"duration",2),l([d({type:String,reflect:!0})],O.prototype,"countdown",2),l([c()],O.prototype,"remainingTime",2),l([u("open",{waitUntilFirstUpdate:!0})],O.prototype,"handleOpenChange",1),l([u("duration")],O.prototype,"handleDurationChange",1);var T=O;m("alert.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),m("alert.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),T.define("sl-alert");const F=class{constructor(e){t(this,e)}async unhandledRejection(t){t.stopPropagation(),console.error("unhandled promise rejection",t),this.title="Unhandled promise rejection",this.message=t.reason.toString()}async catchError(t){if(t.stopPropagation(),console.error(t.detail),t.detail instanceof Error)this.title="Error",this.message=t.detail.message;else{const e=t.detail;this.title=e.title,this.message=e.detail}await this.alert.toast()}render(){return e(i,{key:"a2c2db82c085541f2912861ff715633c1a50872e"},e("sl-alert",{key:"af7e56dacdd8c2cdacfe4eb5020d59e8111e9947",ref:t=>this.alert=t,variant:"danger",duration:"10000",closable:!0},e("sl-icon",{key:"f50b8c321b0844c2f3cac2886f23b758e18500b1",slot:"icon",name:"exclamation-octagon"}),e("strong",{key:"0f7c7880b08366a16baaa1385df12614d6a6cddf"},this.title),e("br",{key:"5660dbabfa1162590b386087231301ee3920a415"}),this.message),e("slot",{key:"671026ea140044dfbeb63dee5c08a65591464668"}))}},H=class{constructor(e){t(this,e),this.uri="pod-os:dashboard"}render(){return e("pod-os:settings"===this.uri?"pos-app-settings":"pos-app-dashboard",null)}},M=class{constructor(e){t(this,e),this.subscribePodOs=o(this,"pod-os:init",7),this.linkEmitter=o(this,"pod-os:link",7),this.uri="",this.inputValue=this.uri,this.searchIndex=void 0,this.suggestions=[],this.selectedIndex=-1,this.resource=null,this.changeEvents=new x.Subject,this.debouncedSearch=null,this.receivePodOs=async t=>{this.os=t}}updateResource(){var t;try{this.resource=this.uri?null===(t=this.os)||void 0===t?void 0:t.store.get(this.uri):null}catch(t){this.resource=null}}componentWillLoad(){z(this),this.updateResource(),$.onChange("isLoggedIn",(async t=>{t?await this.buildSearchIndex():this.clearSearchIndex()})),this.debouncedSearch=this.changeEvents.pipe(x.debounceTime(300)).subscribe((()=>this.search()))}disconnectedCallback(){var t;null===(t=this.debouncedSearch)||void 0===t||t.unsubscribe()}async buildSearchIndex(){this.searchIndex=await this.os.buildSearchIndex($.state.profile)}rebuildSearchIndex(){this.searchIndex.rebuild()}openNavigationDialog(t){var e,i;this.resource=t.detail,t.detail&&(this.inputValue=t.detail.uri,this.search()),null===(e=this.inputRef)||void 0===e||e.select(),null===(i=this.dialogRef)||void 0===i||i.show()}clearSearchIndex(){var t;null===(t=this.searchIndex)||void 0===t||t.clear()}onChange(t){this.inputValue=t.target.value,this.changeEvents.next()}closeDialog(){var t;null===(t=this.dialogRef)||void 0===t||t.close(),this.selectedIndex=-1}clearSuggestions(){var t;this.suggestions=[],null===(t=this.dialogRef)||void 0===t||t.close(),this.selectedIndex=-1}onClickSelf(t){t.stopPropagation()}handleKeyDown(t){"Escape"===t.key?this.closeDialog():"ArrowDown"===t.key?(t.preventDefault(),this.selectedIndex=Math.min(this.selectedIndex+1,this.suggestions.length-1)):"ArrowUp"===t.key&&(t.preventDefault(),this.selectedIndex=Math.max(this.selectedIndex-1,0))}search(){this.searchIndex&&(this.suggestions=this.inputValue?this.searchIndex.search(this.inputValue):[])}onSubmit(){this.linkEmitter.emit(this.suggestions&&this.selectedIndex>-1?this.suggestions[this.selectedIndex].ref:this.inputValue)}render(){return e("nav",{key:"d5ad4841674cf172e9401a63fc50e58900ca5b1f"},e("search",{key:"8daf86774c49234d10637160fd983681ac483b44"},e("pos-navigation-bar",{key:"200137643dbc0aa1f120c231dc70a0d3f71b596a",searchIndexReady:void 0!==this.searchIndex,current:this.resource}),e("dialog",{key:"f2fb1d3e4a38d17efb6bd80ca791e8a30fafab66",ref:t=>this.dialogRef=t},e("form",{key:"e54698d8fb968a5ee6007cc4d5644fec36bf74f3",method:"dialog",onSubmit:()=>this.onSubmit()},e("input",{key:"633a4030c6296b5c94e2661bd73168afc1e04438",ref:t=>this.inputRef=t,enterkeyhint:"search","aria-label":"Search or enter URI",placeholder:"Search or enter URI",value:this.uri,onChange:t=>this.onChange(t),onInput:t=>this.onChange(t),role:"combobox","aria-autocomplete":"list","aria-expanded":this.suggestions.length>0,"aria-controls":"suggestions-list","aria-activedescendant":this.selectedIndex>=0?`option-${this.selectedIndex}`:null}),this.suggestions.length>0?e("div",{class:"suggestions"},e("ol",{id:"suggestions-list",role:"listbox","aria-label":"Search results"},this.suggestions.map(((t,i)=>e("li",{id:`option-${i}`,role:"option","aria-selected":i===this.selectedIndex?"true":"false"},e("pos-rich-link",{uri:t.ref})))))):null))))}static get watchers(){return{uri:[{updateResource:0}],os:[{updateResource:0}]}}};M.style=":host{--pos-navigation-bar-height:var(--size-10)}search{position:relative}.suggestions ol{border:1px solid var(--pos-border-color);display:flex;flex-direction:column;margin:0;padding:0;list-style-type:none}.suggestions{width:100%;overflow-y:auto;max-height:90dvh;li{padding:1rem;background-color:var(--pos-background-color);pos-rich-link{--background-color:inherit}&[aria-selected='true']{background-color:var(--pos-primary-color);&:hover{background-color:var(--pos-primary-color)}}&:hover{background-color:var(--pos-border-color)}}}.suggestions li.selected pos-rich-link{--label-color:white;--description-color:var(--pos-border-color);--uri-color:var(--pos-subtle-text-color)}dialog{position:absolute;margin-top:calc(-1 * var(--pos-navigation-bar-height));padding:0;width:100%;max-width:100%;min-width:100%;overflow:hidden;max-height:100dvh;background-color:var(--pos-background-color);color:var(--pos-normal-text-color);border:var(--pos-border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-md);form{display:flex;flex-direction:column;height:100%;width:100%;align-items:center;input{display:flex;font-size:var(--scale-1);height:var(--pos-navigation-bar-height);border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md);padding-left:var(--size-2);width:100%;border:none;outline:none;color:var(--pos-normal-text-color);background-color:var(--pos-input-background-color);box-sizing:border-box}}}dialog[open]{display:flex;z-index:var(--layer-top);animation:slideIn 100ms ease-out}@media (max-width: 640px){search{position:unset}dialog{margin-top:var(--size-1);top:0;width:95dvw;max-width:unset;min-width:unset;form{input{height:var(--size-12);font-size:var(--scale-fluid-3)}}}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}";const V=C(),W=class{constructor(e){t(this,e),this.routeChanged=o(this,"pod-os:route-changed",7),this.mode="standalone"}linkClicked(t){this.navigate(t.detail)}sessionRestored(t){V.push(t.detail.url)}componentWillLoad(){this.updateUri(),V.onChange("url",(()=>{this.updateUri()}))}navigate(t){V.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||("standalone"===this.mode?"pod-os:dashboard":window.location.href),this.routeChanged.emit(this.uri)}render(){return e("slot",{key:"8b09de3dbbd253665cd541b9f264b0dcdc774354"})}};W.style=".toolbar{display:flex;flex-direction:row;gap:0;align-items:center;margin-left:0.5rem}pos-navigation{flex-grow:1}";const N={Generic:{element:"pos-app-generic",label:"Data",icon:"list-ul",types:[]},Attachments:{element:"pos-tool-attachments",label:"Attach",icon:"paperclip",types:[]},RdfDocument:{element:"pos-app-rdf-document",label:"Things",icon:"diagram-2",types:[{uri:"http://www.w3.org/2007/ont/link#RDFDocument",priority:20}]},DocumentViewer:{element:"pos-app-document-viewer",label:"Doc",icon:"file-text",types:[{uri:"http://www.w3.org/ns/iana/media-types/application/pdf#Resource",priority:30},{uri:"http://www.w3.org/2007/ont/link#Document",priority:10}]},ImageViewer:{element:"pos-app-image-viewer",label:"Pic",icon:"file-image",types:[{uri:"http://purl.org/dc/terms/Image",priority:20}]},LdpContainer:{element:"pos-app-ldp-container",label:"Content",icon:"folder",types:[{uri:"http://www.w3.org/ns/ldp#Container",priority:30}]}};function P(t,e){return t.filter((t=>e.has(t.uri))).reduce(((t,e)=>Math.max(t,e.priority)),0)}const G=t=>t.priority>0,K=(t,e)=>e.priority-t.priority,X=class{constructor(e){t(this,e),this.subscribeResource=o(this,"pod-os:resource",7),this.transitioning=!1,this.receiveResource=t=>{var e;const i=t.types();this.availableTools=function(t){const e=new Set(t.map((t=>t.uri)));return Object.values(N).map((t=>e=>({tool:e,priority:P(e.types,t)}))(e)).filter(G).toSorted(K).map((t=>t.tool)).concat(N.Generic).concat(N.Attachments)}(i),this.currentTool=null!==(e=this.availableTools.find((t=>t.element===this.initialTool)))&&void 0!==e?e:this.availableTools[0]}}componentWillLoad(){j(this);const t=new URLSearchParams(window.location.search).get("tool");t&&(this.initialTool=t)}handleToolSelected(t){this.oldTool=this.currentTool,this.currentTool=t.detail,this.transitioning=!0;const e=new URL(window.location.href);e.searchParams.set("tool",t.detail.element),window.history.replaceState({},"",e.toString())}render(){return this.availableTools?this.renderApp():null}renderApp(){var t;const i=this.currentTool.element,o=null===(t=this.oldTool)||void 0===t?void 0:t.element;return e("section",null,e("pos-tool-select",{selected:this.currentTool,tools:this.availableTools}),e("div",{class:{tools:!0,transition:this.transitioning},onAnimationEnd:()=>this.removeOldTool()},o&&e(o,{class:"tool hidden"}),e(i,{class:"tool visible"})))}removeOldTool(){this.oldTool=null,this.transitioning=!1}};X.style="section{display:flex;flex-direction:row}.tools{flex-grow:1;&.transition{position:relative;.tool{position:absolute}}}.tool{top:0;right:0;left:0;bottom:0;&.visible{animation:fadeIn 300ms ease-in}&.hidden{animation:fadeOut 300ms ease-in}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{from{opacity:1}to{opacity:0}}@media (max-width: 640px){section{--toolbar-size:var(--size-16);flex-direction:column-reverse;padding-bottom:var(--toolbar-size);pos-tool-select{--button-size:var(--toolbar-size)}}}";var Y=s`
259
259
  :host {
260
260
  display: inline-block;
261
261
 
@@ -318,7 +318,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
318
318
  object-fit: cover;
319
319
  overflow: hidden;
320
320
  }
321
- `,Y=class extends h{constructor(){super(...arguments),this.hasError=!1,this.image="",this.label="",this.initials="",this.loading="eager",this.shape="circle"}handleImageChange(){this.hasError=!1}handleImageLoadError(){this.hasError=!0,this.emit("sl-error")}render(){const t=r`
321
+ `,J=class extends h{constructor(){super(...arguments),this.hasError=!1,this.image="",this.label="",this.initials="",this.loading="eager",this.shape="circle"}handleImageChange(){this.hasError=!1}handleImageLoadError(){this.hasError=!0,this.emit("sl-error")}render(){const t=r`
322
322
  <img
323
323
  part="image"
324
324
  class="avatar__image"
@@ -342,7 +342,7 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
342
342
  >
343
343
  ${this.image&&!this.hasError?t:e}
344
344
  </div>
345
- `}};Y.styles=[a,J],Y.dependencies={"sl-icon":n},l([c()],Y.prototype,"hasError",2),l([d()],Y.prototype,"image",2),l([d()],Y.prototype,"label",2),l([d()],Y.prototype,"initials",2),l([d()],Y.prototype,"loading",2),l([d({reflect:!0})],Y.prototype,"shape",2),l([u("image")],Y.prototype,"handleImageChange",1),Y.define("sl-avatar");var Q=s`
345
+ `}};J.styles=[a,Y],J.dependencies={"sl-icon":n},l([c()],J.prototype,"hasError",2),l([d()],J.prototype,"image",2),l([d()],J.prototype,"label",2),l([d()],J.prototype,"initials",2),l([d()],J.prototype,"loading",2),l([d({reflect:!0})],J.prototype,"shape",2),l([u("image")],J.prototype,"handleImageChange",1),J.define("sl-avatar");var Q=s`
346
346
  :host {
347
347
  --color: var(--sl-panel-border-color);
348
348
  --width: var(--sl-panel-border-width);
@@ -361,4 +361,4 @@ import{r as t,h as e,e as i,c as o}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js"
361
361
  border-left: solid var(--width) var(--color);
362
362
  margin: 0 var(--spacing);
363
363
  }
364
- `,Z=class extends h{constructor(){super(...arguments),this.vertical=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};Z.styles=[a,Q],l([d({type:Boolean,reflect:!0})],Z.prototype,"vertical",2),l([u("vertical")],Z.prototype,"handleVerticalChange",1),Z.define("sl-divider");const tt=class{constructor(e){t(this,e),this.logout=o(this,"pod-os:logout",7),this.link=o(this,"pod-os:link",7)}onSelect(t){const{value:e}=t.detail.item;"logout"===e?this.logout.emit():"profile"===e?this.link.emit(this.webId):"dashboard"===e?this.link.emit("pod-os:dashboard"):"settings"===e&&this.link.emit("pod-os:settings")}render(){return this.webId?e("pos-resource",{uri:this.webId},e("sl-dropdown",null,e("button",{slot:"trigger","aria-label":"User menu"},e("pos-picture",{"no-upload":!0},e("sl-avatar",null))),e("sl-menu",null,e("sl-menu-item",{value:"dashboard"},"Dashboard"),e("sl-menu-item",{value:"profile"},e("pos-label",null)),e("sl-menu-item",{value:"settings"},"Settings"),e("sl-divider",null),e("sl-menu-item",{value:"logout"},"Logout")))):null}};tt.style="button{display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:none;cursor:pointer;border-radius:50%;pos-picture{--width:40px;--height:40px;--border-radius:50%}sl-avatar{--size:40px}}sl-dropdown{display:block}";export{j as pos_add_new_thing,T as pos_error_toast,H as pos_internal_router,V as pos_navigation,W as pos_router,G as pos_type_router,tt as pos_user_menu}
364
+ `,Z=class extends h{constructor(){super(...arguments),this.vertical=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","separator")}handleVerticalChange(){this.setAttribute("aria-orientation",this.vertical?"vertical":"horizontal")}};Z.styles=[a,Q],l([d({type:Boolean,reflect:!0})],Z.prototype,"vertical",2),l([u("vertical")],Z.prototype,"handleVerticalChange",1),Z.define("sl-divider");const tt=class{constructor(e){t(this,e),this.logout=o(this,"pod-os:logout",7),this.link=o(this,"pod-os:link",7)}onSelect(t){const{value:e}=t.detail.item;"logout"===e?this.logout.emit():"profile"===e?this.link.emit(this.webId):"dashboard"===e?this.link.emit("pod-os:dashboard"):"settings"===e&&this.link.emit("pod-os:settings")}render(){return this.webId?e("pos-resource",{uri:this.webId},e("sl-dropdown",null,e("button",{slot:"trigger","aria-label":"User menu"},e("pos-picture",{"no-upload":!0},e("sl-avatar",null))),e("sl-menu",null,e("sl-menu-item",{value:"dashboard"},"Dashboard"),e("sl-menu-item",{value:"profile"},e("pos-label",null)),e("sl-menu-item",{value:"settings"},"Settings"),e("sl-divider",null),e("sl-menu-item",{value:"logout"},"Logout")))):null}};tt.style="button{display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:none;cursor:pointer;border-radius:50%;pos-picture{--width:40px;--height:40px;--border-radius:50%}sl-avatar{--size:40px}}sl-dropdown{display:block}";export{S as pos_add_new_thing,F as pos_error_toast,H as pos_internal_router,M as pos_navigation,W as pos_router,X as pos_type_router,tt as pos_user_menu}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e,e as o}from"./p-DScSUBy-.js";import{s as a}from"./p-jlzl8vRd.js";const r=class{constructor(e){t(this,e),this.subscribePodOs=s(this,"pod-os:init",7),this.termSelected=s(this,"pod-os:term-selected",7),this.placeholder="Type to search...",this.value="",this.terms=[],this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){a(this)}setTerms(){this.terms=this.os.listKnownTerms()}handleChange(t){this.termSelected.emit({uri:t.target.value})}render(){return e(o,{key:"2e995b15a3b76a13cd7e11d09670121a6191b5ce"},e("input",{key:"ad79f1b410312790d4f5cd1f398b2eec3c04aad7",part:"input",list:"terms",placeholder:this.placeholder,value:this.value,onChange:t=>this.handleChange(t)}),e("datalist",{key:"e3cc9ce85b75033bac29a32ca8e55c57535a9659",part:"terms",id:"terms"},this.terms.map((t=>e("option",{value:t.uri},t.shorthand)))))}static get delegatesFocus(){return!0}static get watchers(){return{os:[{setTerms:0}]}}};r.style=":host{display:block}input{background-color:transparent;color:var(--pos-normal-text-color);border:none;padding-top:1rem;padding-bottom:1rem}input:focus{outline:none}";export{r as pos_select_term}
1
+ import{r as t,c as s,h as e,e as o}from"./p-Dunlf3Z7.js";import{s as a}from"./p-jlzl8vRd.js";const r=class{constructor(e){t(this,e),this.subscribePodOs=s(this,"pod-os:init",7),this.termSelected=s(this,"pod-os:term-selected",7),this.placeholder="Type to search...",this.value="",this.terms=[],this.receivePodOs=async t=>{this.os=t}}componentWillLoad(){a(this)}setTerms(){this.terms=this.os.listKnownTerms()}handleChange(t){this.termSelected.emit({uri:t.target.value})}render(){return e(o,{key:"2e995b15a3b76a13cd7e11d09670121a6191b5ce"},e("input",{key:"ad79f1b410312790d4f5cd1f398b2eec3c04aad7",part:"input",list:"terms",placeholder:this.placeholder,value:this.value,onChange:t=>this.handleChange(t)}),e("datalist",{key:"e3cc9ce85b75033bac29a32ca8e55c57535a9659",part:"terms",id:"terms"},this.terms.map((t=>e("option",{value:t.uri},t.shorthand)))))}static get delegatesFocus(){return!0}static get watchers(){return{os:[{setTerms:0}]}}};r.style=":host{display:block}input{background-color:transparent;color:var(--pos-normal-text-color);border:none;padding-top:1rem;padding-bottom:1rem}input:focus{outline:none}";export{r as pos_select_term}
@@ -1 +1 @@
1
- import{r as e,h as a,e as r,c as o,a as s}from"./p-DScSUBy-.js";import{s as d}from"./p-Bug_w-vi.js";import{l as i}from"./p-C1XsyD29.js";import{u as c}from"./p-D0uCfr1-.js";import{T as t}from"./p-B0L5m2PZ.js";const n=class{constructor(a){e(this,a)}render(){return a(r,{key:"85981cd25e72748708030d8e084c6b8024aae9b3"},d.state.isLoggedIn?a(l,{profile:d.state.profile}):[a("pos-getting-started",null),a("pos-example-resources",null)])}},l=({profile:e})=>{const r=e.getPublicTypeIndex(),o=e.getPrivateTypeIndex();return[a("pos-example-resources",null),r?a("div",{class:"card"},a("h2",null,"Your public things"),a("pos-type-index-entries",{uri:r})):null,o?a("div",{class:"card"},a("h2",null,"Your private things"),a("pos-type-index-entries",{uri:o})):null]};n.style=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}.card{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}";const f=class{constructor(a){e(this,a)}render(){return a("pos-setting-offline-cache",{key:"a5f139aaeb3e290af4c72a4976c994b693ef0736"})}};f.style=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}";const b=class{constructor(a){e(this,a)}render(){return a(r,{key:"edfbfc18bef5794e03385a6712cd6301b9f7fb56"},a("div",{key:"cb211969daa03f9377b9cc91d32983305d8efc8f"},a("h2",{key:"df34f7358c8b232d6d4874069c3a93491332589e"},"Try these... 💡"),a("p",{key:"512f37a9d3ba9f7492ab1770472732d3027751d4"},"No idea where to start? Try these example resources, and follow your nose 👃"),a("div",{key:"70c3dd35ffb296cfa535df0e74a1142c825d24a2",class:"links"},a("pos-rich-link",{key:"441945b22665c8688efb69bdb90fb61c13e41192",uri:"https://pod-os.solidcommunity.net/profile/card#me"}),a("pos-rich-link",{key:"d159b08661afd4c3dcc1d305f51c0a71dd8d1556",uri:"https://angelo.veltens.org/profile/card#me"}),a("pos-rich-link",{key:"82bf392405f612530d5de60d93e2201fae53f8fd",uri:"https://angelo.veltens.org/public/bookmarks"}),a("pos-rich-link",{key:"6f2151ad44f7659e723cb31f33b1a26170fbe37b",uri:"https://solidos.solidcommunity.net/profile/card#me"}))))}};b.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.links{display:flex;flex-direction:column;gap:var(--size-3);max-width:80vw}";const p=class{constructor(a){e(this,a),this.login=o(this,"pod-os:login",7)}render(){return a(r,{key:"7486f4d04e3b7bd341fd2d9c02b85360079c5d5a"},a("div",{key:"710c84685022c9a55c821a421642cbff24c7ba5a"},a("h2",{key:"f01aa189a05ea101c61eecdc68d6fa1db9fefbb3"},"Getting started 🚀"),a("p",{key:"0e3320c4297a3438b2cdda02e27f0517a0ac2a85"},"🔎 Enter a URL into the above navigation bar to browse through the web of data. "),a("p",{key:"f99d218c35b6aa698bba807dc0f3b272ecd81416"},"🔐"," ",a("button",{key:"7091693cc439ddb12f35ef2f3be54f649c47e4ce",class:"login",onClick:()=>this.login.emit()},"Sign in")," ","to access private resources on your Solid Pod or those of your friends or coworkers.")),a("div",{key:"643c46009b4a962548ac501b3bca912a5163f4d3"},a("p",{key:"7fb4a75e5eb6f55a6b8d25825b39f8f82bcadeb9",class:"question"},"New to Solid?"),a("p",{key:"e7dd87fc055ad8981f28f00eb29a65c9e67f7a96"},a("a",{key:"1ad84ef46c7320e4adbb1ce573a8c6b97f60b8ec",href:"https://solidproject.org/for-developers#hosted-pod-services"},"Get a Pod →"))),a("div",{key:"bf50fd05a28e6536aae13cd6c7245c4b487850a6"},a("p",{key:"911eec270cee7a1dcc40320fb43298ad61b01206",class:"question"},"Want to dig deeper into PodOS?"),a("p",{key:"d1f7f4215577f50f1186b48ea0d48670eee53c22"},a("a",{key:"18c487f6e1ea48289654005286816b18e741c8a0",href:"http://pod-os.org"},"Learn more →"))))}};p.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.question{font-weight:var(--weight-semibold)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}button.login{background:none;color:var(--pos-primary-color);display:inline;text-decoration:underline;border:none;padding:0;margin:0;cursor:pointer;font-size:unset}";const u=class{constructor(a){e(this,a)}render(){return a(r,{key:"7417274658af9e41cf662b9ab20d4b5a6236586f"},a("div",{key:"e92a78a1d2b1d067ffd10a68d78a386208d629d8"},a("h2",{key:"7be5f2cf380363e824519fc24fd1e07f0651334b"},a("svg",{key:"d2aa35c987e12836cf665b2574ae0c42a1574e97",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},a("path",{key:"562e3432799cb8111e543080722b6f20867f4b46","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})),"Cache Settings"),a("p",{key:"002eed9e13146d25cc9e52a68c8d9e030f1dd775",class:"info"},"ℹ Enable offline cache to be able to access previously loaded data while offline."),a("p",{key:"b5a1f45ed9fec335a43ecbb6573a31ed29e0692e",class:"warn"},"⚠ Private data may be stored on this device. Only enable it, if you trust this device."),a("label",{key:"49ab529db0b9d1bd4f216f6c54e78ed30a43be41"},a("input",{key:"e764d1a106906059c7c5286d13b9b8c7a6c01cce",type:"checkbox",checked:i.state.offlineCache,onChange:e=>i.state.offlineCache=e.target.checked}),"Enable offline cache")))}};u.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}svg{width:var(--size-8)}h2{display:flex;align-items:center}p{padding:var(--size-2)}.info{color:var(--color-grey-900);background-color:var(--color-blue-200)}.warn{color:var(--color-grey-900);background-color:var(--color-yellow-200)}";const h=class{constructor(a){e(this,a)}async componentWillLoad(){const e=await c(this.el);e.store.get(this.uri);const a=e.store.get(this.uri).assume(t);this.entries=a.listAll()}render(){if(0===this.entries.length)return null;const e=this.entries.map((e=>a("div",null,a("dt",null,a("pos-predicate",{uri:e.forClass,label:e.label})),e.targets.map((e=>a("dd",null,a("pos-rich-link",{uri:e.uri})))))));return a("dl",null,e)}get el(){return s(this)}};h.style="dl { > * { display: flex; flex-direction: column; gap: var(--size-1); } display: flex; flex-direction: column; gap: var(--size-4); dd { margin: 0; } } ";export{n as pos_app_dashboard,f as pos_app_settings,b as pos_example_resources,p as pos_getting_started,u as pos_setting_offline_cache,h as pos_type_index_entries}
1
+ import{r as e,h as a,e as r,c as o,a as s}from"./p-Dunlf3Z7.js";import{s as d}from"./p-C36YDIjT.js";import{l as i}from"./p-5RplWyqs.js";import{u as c}from"./p-D0uCfr1-.js";import{T as t}from"./p-B0L5m2PZ.js";const n=class{constructor(a){e(this,a)}render(){return a(r,{key:"85981cd25e72748708030d8e084c6b8024aae9b3"},d.state.isLoggedIn?a(l,{profile:d.state.profile}):[a("pos-getting-started",null),a("pos-example-resources",null)])}},l=({profile:e})=>{const r=e.getPublicTypeIndex(),o=e.getPrivateTypeIndex();return[a("pos-example-resources",null),r?a("div",{class:"card"},a("h2",null,"Your public things"),a("pos-type-index-entries",{uri:r})):null,o?a("div",{class:"card"},a("h2",null,"Your private things"),a("pos-type-index-entries",{uri:o})):null]};n.style=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}.card{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}";const f=class{constructor(a){e(this,a)}render(){return a("pos-setting-offline-cache",{key:"a5f139aaeb3e290af4c72a4976c994b693ef0736"})}};f.style=":host{display:grid;grid-template-columns:repeat(auto-fit, minmax(var(--size-12), var(--size-96)));gap:var(--size-4);padding:var(--size-2);justify-content:center;align-items:start;justify-items:stretch}";const b=class{constructor(a){e(this,a)}render(){return a(r,{key:"edfbfc18bef5794e03385a6712cd6301b9f7fb56"},a("div",{key:"cb211969daa03f9377b9cc91d32983305d8efc8f"},a("h2",{key:"df34f7358c8b232d6d4874069c3a93491332589e"},"Try these... 💡"),a("p",{key:"512f37a9d3ba9f7492ab1770472732d3027751d4"},"No idea where to start? Try these example resources, and follow your nose 👃"),a("div",{key:"70c3dd35ffb296cfa535df0e74a1142c825d24a2",class:"links"},a("pos-rich-link",{key:"441945b22665c8688efb69bdb90fb61c13e41192",uri:"https://pod-os.solidcommunity.net/profile/card#me"}),a("pos-rich-link",{key:"d159b08661afd4c3dcc1d305f51c0a71dd8d1556",uri:"https://angelo.veltens.org/profile/card#me"}),a("pos-rich-link",{key:"82bf392405f612530d5de60d93e2201fae53f8fd",uri:"https://angelo.veltens.org/public/bookmarks"}),a("pos-rich-link",{key:"6f2151ad44f7659e723cb31f33b1a26170fbe37b",uri:"https://solidos.solidcommunity.net/profile/card#me"}))))}};b.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.links{display:flex;flex-direction:column;gap:var(--size-3);max-width:80vw}";const p=class{constructor(a){e(this,a),this.login=o(this,"pod-os:login",7)}render(){return a(r,{key:"7486f4d04e3b7bd341fd2d9c02b85360079c5d5a"},a("div",{key:"710c84685022c9a55c821a421642cbff24c7ba5a"},a("h2",{key:"f01aa189a05ea101c61eecdc68d6fa1db9fefbb3"},"Getting started 🚀"),a("p",{key:"0e3320c4297a3438b2cdda02e27f0517a0ac2a85"},"🔎 Enter a URL into the above navigation bar to browse through the web of data. "),a("p",{key:"f99d218c35b6aa698bba807dc0f3b272ecd81416"},"🔐"," ",a("button",{key:"7091693cc439ddb12f35ef2f3be54f649c47e4ce",class:"login",onClick:()=>this.login.emit()},"Sign in")," ","to access private resources on your Solid Pod or those of your friends or coworkers.")),a("div",{key:"643c46009b4a962548ac501b3bca912a5163f4d3"},a("p",{key:"7fb4a75e5eb6f55a6b8d25825b39f8f82bcadeb9",class:"question"},"New to Solid?"),a("p",{key:"e7dd87fc055ad8981f28f00eb29a65c9e67f7a96"},a("a",{key:"1ad84ef46c7320e4adbb1ce573a8c6b97f60b8ec",href:"https://solidproject.org/for-developers#hosted-pod-services"},"Get a Pod →"))),a("div",{key:"bf50fd05a28e6536aae13cd6c7245c4b487850a6"},a("p",{key:"911eec270cee7a1dcc40320fb43298ad61b01206",class:"question"},"Want to dig deeper into PodOS?"),a("p",{key:"d1f7f4215577f50f1186b48ea0d48670eee53c22"},a("a",{key:"18c487f6e1ea48289654005286816b18e741c8a0",href:"http://pod-os.org"},"Learn more →"))))}};p.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}.question{font-weight:var(--weight-semibold)}a{font-weight:var(--weight-bold);color:var(--pos-primary-color)}button.login{background:none;color:var(--pos-primary-color);display:inline;text-decoration:underline;border:none;padding:0;margin:0;cursor:pointer;font-size:unset}";const u=class{constructor(a){e(this,a)}render(){return a(r,{key:"7417274658af9e41cf662b9ab20d4b5a6236586f"},a("div",{key:"e92a78a1d2b1d067ffd10a68d78a386208d629d8"},a("h2",{key:"7be5f2cf380363e824519fc24fd1e07f0651334b"},a("svg",{key:"d2aa35c987e12836cf665b2574ae0c42a1574e97",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},a("path",{key:"562e3432799cb8111e543080722b6f20867f4b46","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})),"Cache Settings"),a("p",{key:"002eed9e13146d25cc9e52a68c8d9e030f1dd775",class:"info"},"ℹ Enable offline cache to be able to access previously loaded data while offline."),a("p",{key:"b5a1f45ed9fec335a43ecbb6573a31ed29e0692e",class:"warn"},"⚠ Private data may be stored on this device. Only enable it, if you trust this device."),a("label",{key:"49ab529db0b9d1bd4f216f6c54e78ed30a43be41"},a("input",{key:"e764d1a106906059c7c5286d13b9b8c7a6c01cce",type:"checkbox",checked:i.state.offlineCache,onChange:e=>i.state.offlineCache=e.target.checked}),"Enable offline cache")))}};u.style=":host{border:var(--size-px) solid var(--pos-border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:var(--size-8);max-width:var(--size-96);background:var(--pos-card-background)}svg{width:var(--size-8)}h2{display:flex;align-items:center}p{padding:var(--size-2)}.info{color:var(--color-grey-900);background-color:var(--color-blue-200)}.warn{color:var(--color-grey-900);background-color:var(--color-yellow-200)}";const h=class{constructor(a){e(this,a)}async componentWillLoad(){const e=await c(this.el);e.store.get(this.uri);const a=e.store.get(this.uri).assume(t);this.entries=a.listAll()}render(){if(0===this.entries.length)return null;const e=this.entries.map((e=>a("div",null,a("dt",null,a("pos-predicate",{uri:e.forClass,label:e.label})),e.targets.map((e=>a("dd",null,a("pos-rich-link",{uri:e.uri})))))));return a("dl",null,e)}get el(){return s(this)}};h.style="dl { > * { display: flex; flex-direction: column; gap: var(--size-1); } display: flex; flex-direction: column; gap: var(--size-4); dd { margin: 0; } } ";export{n as pos_app_dashboard,f as pos_app_settings,b as pos_example_resources,p as pos_getting_started,u as pos_setting_offline_cache,h as pos_type_index_entries}
@@ -1,4 +1,4 @@
1
- import{T as t}from"./p-C8LPXtIR.js";
1
+ import{T as t}from"./p-BvR_sP9G.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
@@ -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:"d8d992da6a9c0b5f71120b3bf89d71d972f63961"},a("section",{key:"d22b9b31c07e062738cad94889428d3aaa5b2ed0"},a("pos-container-contents",{key:"9800d022d77175e03ece450a690c4ce644f1d724"}),a("details",{key:"57ca10cca663164d332ce3b156b62a1cd0475f46"},a("summary",{key:"9d48f320550ef6d9ab1c8dc5327ba400292d89d9"},"All subjects"),a("pos-subjects",{key:"a200dbb34b9b325743dee1d4ecba38f39e70886b"}))),a("section",{key:"0bb7d8970819ef4e0f68d3d4be62d31b85f98083"},a("article",{key:"0a25df3369119ea9cab22092ff3e96a9bfcb1f88","aria-labelledby":"container-title"},a("header",{key:"25d8f23702d72380345fb9d3199c35e77ca25dd9"},a("h1",{key:"6bb675b5d79a6602a55344238a3946ea310c6401",id:"container-title"},a("pos-label",{key:"56f32fc545f83dd45269b7af3b1314db2c36d47b"})),a("pos-type-badges",{key:"5a79774e85cc05c5ffe6bad567993a24b27781ec"})),a("pos-literals",{key:"79f3727026d13ceed50bab8d878aa64545081c9a"}))))}};c.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{c as pos_app_ldp_container}
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:"d8d992da6a9c0b5f71120b3bf89d71d972f63961"},a("section",{key:"d22b9b31c07e062738cad94889428d3aaa5b2ed0"},a("pos-container-contents",{key:"9800d022d77175e03ece450a690c4ce644f1d724"}),a("details",{key:"57ca10cca663164d332ce3b156b62a1cd0475f46"},a("summary",{key:"9d48f320550ef6d9ab1c8dc5327ba400292d89d9"},"All subjects"),a("pos-subjects",{key:"a200dbb34b9b325743dee1d4ecba38f39e70886b"}))),a("section",{key:"0bb7d8970819ef4e0f68d3d4be62d31b85f98083"},a("article",{key:"0a25df3369119ea9cab22092ff3e96a9bfcb1f88","aria-labelledby":"container-title"},a("header",{key:"25d8f23702d72380345fb9d3199c35e77ca25dd9"},a("h1",{key:"6bb675b5d79a6602a55344238a3946ea310c6401",id:"container-title"},a("pos-label",{key:"56f32fc545f83dd45269b7af3b1314db2c36d47b"})),a("pos-type-badges",{key:"5a79774e85cc05c5ffe6bad567993a24b27781ec"})),a("pos-literals",{key:"79f3727026d13ceed50bab8d878aa64545081c9a"}))))}};c.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{c as pos_app_ldp_container}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i}from"./p-DScSUBy-.js";import{s as o}from"./p-jlzl8vRd.js";const s=class{constructor(i){t(this,i),this.linkEmitter=e(this,"pod-os:link",7),this.errorEmitter=e(this,"pod-os:error",7),this.subscribePodOs=e(this,"pod-os:init",7),this.canSubmit=!1,this.receivePodOs=async t=>{this.os=t}}validate(){this.canSubmit=Boolean(this.name&&this.selectedTypeUri)}componentWillLoad(){o(this)}render(){return i("form",{key:"a362c5b749dd744123973987ff8b0291485b465e",method:"dialog",onSubmit:t=>this.handleSubmit(t)},i("label",{key:"45c78b0b48955cc157d04f547285b4ae4c19c38f",htmlFor:"type"},"Type"),i("pos-select-term",{key:"e3c3ab9abdbbb585916d95ba1aa14a066dbc5bd0",id:"type",placeholder:"",value:this.selectedTypeUri,"onPod-os:term-selected":t=>this.onTermSelected(t)}),i("label",{key:"c696f8ed862d40d3c366ef0ede5e88e574928db3",htmlFor:"name"},"Name"),i("input",{key:"89e6289e24ca9d3969da97c7aeb22224db1c376c",id:"name",type:"text",value:this.name,onInput:t=>this.handleChange(t)}),this.newUri?i("div",{id:"new-uri",title:"This will be the URI of the new thing"},this.newUri):null,i("input",{key:"b9520afef34177c6f14ab0798c045536d5661a2a",id:"create",type:"submit",value:"Create",disabled:!this.canSubmit}))}handleChange(t){this.name=t.target.value,this.newUri=this.os.proposeUriForNewThing(this.referenceUri,this.name)}onTermSelected(t){this.selectedTypeUri=t.detail.uri}async handleSubmit(t){try{await this.os.addNewThing(this.newUri,this.name,this.selectedTypeUri),this.linkEmitter.emit(this.newUri),this.reset()}catch(e){t.preventDefault(),this.errorEmitter.emit(e)}}reset(){this.name="",this.newUri="",this.selectedTypeUri=""}static get delegatesFocus(){return!0}static get watchers(){return{name:[{validate:0}],selectedTypeUri:[{validate:0}]}}};s.style=":host{display:block}form{display:grid;grid-template-columns:var(--size-16) 1fr;grid-gap:var(--scale-0)}label{grid-column:1 / 2;display:flex;align-items:center;justify-content:flex-end}input,pos-select-term,button{grid-column:2 / 3}input,pos-select-term::part(input){outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within,pos-select-term::part(input):focus-within{outline:var(--pos-input-focus-outline)}#new-uri{grid-column:1/3;cursor:default;word-break:break-all;color:var(--pos-normal-text-color);font-weight:var(--weight-light);background:var(--pos-disabled-color);padding:var(--scale-000);border-radius:var(--radius-xs)}input#create{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#create:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#create:hover:not(:disabled),input#create:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}";export{s as pos_new_thing_form}
1
+ import{r as t,c as e,h as i}from"./p-Dunlf3Z7.js";import{s as o}from"./p-jlzl8vRd.js";const s=class{constructor(i){t(this,i),this.linkEmitter=e(this,"pod-os:link",7),this.errorEmitter=e(this,"pod-os:error",7),this.subscribePodOs=e(this,"pod-os:init",7),this.canSubmit=!1,this.receivePodOs=async t=>{this.os=t}}validate(){this.canSubmit=Boolean(this.name&&this.selectedTypeUri)}componentWillLoad(){o(this)}render(){return i("form",{key:"a362c5b749dd744123973987ff8b0291485b465e",method:"dialog",onSubmit:t=>this.handleSubmit(t)},i("label",{key:"45c78b0b48955cc157d04f547285b4ae4c19c38f",htmlFor:"type"},"Type"),i("pos-select-term",{key:"e3c3ab9abdbbb585916d95ba1aa14a066dbc5bd0",id:"type",placeholder:"",value:this.selectedTypeUri,"onPod-os:term-selected":t=>this.onTermSelected(t)}),i("label",{key:"c696f8ed862d40d3c366ef0ede5e88e574928db3",htmlFor:"name"},"Name"),i("input",{key:"89e6289e24ca9d3969da97c7aeb22224db1c376c",id:"name",type:"text",value:this.name,onInput:t=>this.handleChange(t)}),this.newUri?i("div",{id:"new-uri",title:"This will be the URI of the new thing"},this.newUri):null,i("input",{key:"b9520afef34177c6f14ab0798c045536d5661a2a",id:"create",type:"submit",value:"Create",disabled:!this.canSubmit}))}handleChange(t){this.name=t.target.value,this.newUri=this.os.proposeUriForNewThing(this.referenceUri,this.name)}onTermSelected(t){this.selectedTypeUri=t.detail.uri}async handleSubmit(t){try{await this.os.addNewThing(this.newUri,this.name,this.selectedTypeUri),this.linkEmitter.emit(this.newUri),this.reset()}catch(e){t.preventDefault(),this.errorEmitter.emit(e)}}reset(){this.name="",this.newUri="",this.selectedTypeUri=""}static get delegatesFocus(){return!0}static get watchers(){return{name:[{validate:0}],selectedTypeUri:[{validate:0}]}}};s.style=":host{display:block}form{display:grid;grid-template-columns:var(--size-16) 1fr;grid-gap:var(--scale-0)}label{grid-column:1 / 2;display:flex;align-items:center;justify-content:flex-end}input,pos-select-term,button{grid-column:2 / 3}input,pos-select-term::part(input){outline:var(--pos-input-outline);padding:var(--scale-000);border:none;border-radius:var(--radius-xs);width:var(--size-full);box-sizing:border-box;background:var(--pos-input-background-color);color:var(--pos-normal-text-color)}input:focus-within,pos-select-term::part(input):focus-within{outline:var(--pos-input-focus-outline)}#new-uri{grid-column:1/3;cursor:default;word-break:break-all;color:var(--pos-normal-text-color);font-weight:var(--weight-light);background:var(--pos-disabled-color);padding:var(--scale-000);border-radius:var(--radius-xs)}input#create{outline:none;box-shadow:var(--shadow-sm);cursor:pointer;color:var(--pos-primary-text-color);background-color:var(--pos-primary-color)}input#create:disabled{cursor:default;color:var(--pos-disabled-text-color);background-color:var(--pos-disabled-color);box-shadow:none}input#create:hover:not(:disabled),input#create:focus{filter:brightness(110%);box-shadow:var(--shadow-md)}";export{s as pos_new_thing_form}
@@ -1 +1 @@
1
- import{r as s,c as t}from"./p-DScSUBy-.js";import{s as o}from"./p-BW_CkW1K.js";const r=class{constructor(o){s(this,o),this.subscribeResource=t(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){return this.resource?this.resource.anyValue(this.predicate):null}};export{r as pos_value}
1
+ import{r as s,c as t}from"./p-Dunlf3Z7.js";import{s as o}from"./p-BW_CkW1K.js";const r=class{constructor(o){s(this,o),this.subscribeResource=t(this,"pod-os:resource",7),this.receiveResource=s=>{this.resource=s}}componentWillLoad(){o(this)}render(){return this.resource?this.resource.anyValue(this.predicate):null}};export{r as pos_value}
@@ -1,4 +1,4 @@
1
- import{h as e}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js";import{i as o,c as r,_ as s,n as i,a as t,x as a}from"./p-C8LPXtIR.js";import{e as n}from"./p-D_nUMgR-.js";const l=({file:o})=>{const r=function(e){switch(e.code){case 401:case 403:return"lock";case 404:return"question-circle";default:return"exclamation-circle"}}(o.status);return e("div",null,e("a",{class:"error",href:o.url},e("div",null,e("sl-icon",{name:r})),e("div",{class:"code"},o.status.code),e("div",{class:"text"},o.status.text)))};var c=o`
1
+ import{h as e}from"./p-Dunlf3Z7.js";import"./p-D8UlKjrD.js";import{i as o,c as r,_ as s,n as i,a as n,x as t}from"./p-BvR_sP9G.js";import{e as a}from"./p-bf6nCqHq.js";const l=({file:o})=>{const r=function(e){switch(e.code){case 401:case 403:return"lock";case 404:return"question-circle";default:return"exclamation-circle"}}(o.status);return e("div",null,e("a",{class:"error",href:o.url},e("div",null,e("sl-icon",{name:r})),e("div",{class:"code"},o.status.code),e("div",{class:"text"},o.status.text)))};var c=o`
2
2
  :host {
3
3
  --border-radius: var(--sl-border-radius-pill);
4
4
  --color: var(--sl-color-neutral-200);
@@ -58,10 +58,10 @@ import{h as e}from"./p-DScSUBy-.js";import"./p-Bk6kpzHk.js";import{i as o,c as r
58
58
  opacity: 1;
59
59
  }
60
60
  }
61
- `,d=class extends t{constructor(){super(...arguments),this.effect="none"}render(){return a`
61
+ `,d=class extends n{constructor(){super(...arguments),this.effect="none"}render(){return t`
62
62
  <div
63
63
  part="base"
64
- class=${n({skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect})}
64
+ class=${a({skeleton:!0,"skeleton--pulse":"pulse"===this.effect,"skeleton--sheen":"sheen"===this.effect})}
65
65
  >
66
66
  <div part="indicator" class="skeleton__indicator"></div>
67
67
  </div>
@@ -1 +1 @@
1
- import{r as o,c as i,h as s,a as t}from"./p-DScSUBy-.js";import{s as r}from"./p-BW_CkW1K.js";const e=class{constructor(s){o(this,s),this.subscribeResource=i(this,"pod-os:resource",7),this.receiveResource=o=>{this.resource=o}}componentWillLoad(){r(this)}render(){return this.resource?this.resource.description():null}},l=class{constructor(s){o(this,s),this.linkEmitter=i(this,"pod-os:link",7),this.subscribeResource=i(this,"pod-os:resource",7),this.errorEmitter=i(this,"pod-os:error",7),this.followPredicate=!1,this.error=null,this.showCustomContent=!1,this.receiveResource=o=>{const i=(o,i,s,t)=>{0==o.length?(this.error="No matching link found",this.errorEmitter.emit(new Error(`pos-rich-link: No matching link found from ${i.uri} ${t}=${s}`))):o[0].uris.length>1?(this.error="More than one matching link found",this.errorEmitter.emit(new Error(`pos-rich-link: More than one matching link found from ${i.uri} ${t}=${s}`))):(this.link=o[0].uris[0],this.followPredicate=!0)};this.rel?i(o.relations(this.rel),o,this.rel,"rel"):this.rev?i(o.reverseRelations(this.rev),o,this.rev,"rev"):this.link=o.uri}}componentWillLoad(){this.showCustomContent=!!this.host.lastElementChild||""!=this.host.textContent.trim(),this.uri||r(this)}render(){const o=o=>this.showCustomContent?s("a",{href:o,onClick:i=>{i.preventDefault(),this.linkEmitter.emit(o)}},s("slot",null)):s("p",{class:"content"},s("a",{href:o,onClick:i=>{i.preventDefault(),this.linkEmitter.emit(o)}},s("pos-label",null)),s("span",{class:"url"},new URL(o).host),s("pos-description",null));return this.error?this.error:this.followPredicate?s("pos-resource",{lazy:!0,uri:this.link},o(this.link)):this.link?o(this.link):this.uri?s("pos-resource",{lazy:!0,uri:this.uri},o(this.uri)):null}get host(){return t(this)}};l.style=":host{--background-color:inherit;--label-color:var(--pos-normal-text-color);--description-color:var(--pos-normal-text-color);--uri-color:var(--pos-subtle-text-color);--font-family:var(--font-sans)}p.content{background-color:var(--background-color);line-height:var(--line-xs);margin:0;display:flex;flex-direction:column;align-items:baseline;gap:var(--size-1);.url{font-size:var(--scale-fluid-1);color:var(--pos-subtle-text-color)}}a{color:var(--label-color);max-width:min(100%, var(--prose-lg));text-decoration:underline;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration-thickness:var(--size-px)}pos-label{color:var(--label-color);font-size:var(--scale-fluid-2);margin-bottom:var(--size-1)}pos-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;overflow:hidden;font-weight:var(--weight-light);color:var(--description-color);font-size:var(--scale-fluid-2)}@media (min-width: 640px){pos-label{font-size:var(--scale-fluid-0)}pos-description{font-size:var(--scale-fluid-1)}p.content{.url{font-size:var(--scale-fluid-000)}}}";export{e as pos_description,l as pos_rich_link}
1
+ import{r as o,c as i,h as s,a as t}from"./p-Dunlf3Z7.js";import{s as r}from"./p-BW_CkW1K.js";const l=class{constructor(s){o(this,s),this.subscribeResource=i(this,"pod-os:resource",7),this.receiveResource=o=>{this.resource=o}}componentWillLoad(){r(this)}render(){return this.resource?this.resource.description():null}},e=class{constructor(s){o(this,s),this.linkEmitter=i(this,"pod-os:link",7),this.subscribeResource=i(this,"pod-os:resource",7),this.errorEmitter=i(this,"pod-os:error",7),this.followPredicate=!1,this.error=null,this.showCustomContent=!1,this.receiveResource=o=>{const i=(o,i,s,t)=>{0==o.length?(this.error="No matching link found",this.errorEmitter.emit(new Error(`pos-rich-link: No matching link found from ${i.uri} ${t}=${s}`))):o[0].uris.length>1?(this.error="More than one matching link found",this.errorEmitter.emit(new Error(`pos-rich-link: More than one matching link found from ${i.uri} ${t}=${s}`))):(this.link=o[0].uris[0],this.followPredicate=!0)};this.rel?i(o.relations(this.rel),o,this.rel,"rel"):this.rev?i(o.reverseRelations(this.rev),o,this.rev,"rev"):this.link=o.uri}}componentWillLoad(){this.showCustomContent=!!this.host.lastElementChild||""!=this.host.textContent.trim(),this.uri||r(this)}render(){const o=o=>this.showCustomContent?s("a",{href:o,onClick:i=>{i.preventDefault(),this.linkEmitter.emit(o)}},s("slot",null)):s("p",{class:"content"},s("a",{href:o,onClick:i=>{i.preventDefault(),this.linkEmitter.emit(o)}},s("pos-label",null)),s("span",{class:"url"},new URL(o).host),s("pos-description",null));return this.error?this.error:this.followPredicate?s("pos-resource",{lazy:!0,uri:this.link},o(this.link)):this.link?o(this.link):this.uri?s("pos-resource",{lazy:!0,uri:this.uri},o(this.uri)):null}get host(){return t(this)}};e.style=":host{--background-color:inherit;--label-color:var(--pos-normal-text-color);--description-color:var(--pos-normal-text-color);--uri-color:var(--pos-subtle-text-color);--font-family:var(--font-sans)}p.content{background-color:var(--background-color);line-height:var(--line-xs);margin:0;display:flex;flex-direction:column;align-items:baseline;gap:var(--size-1);.url{font-size:var(--scale-fluid-1);color:var(--pos-subtle-text-color)}}a{color:var(--label-color);max-width:min(100%, var(--prose-lg));text-decoration:underline;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration-thickness:var(--size-px)}pos-label{color:var(--label-color);font-size:var(--scale-fluid-2);margin-bottom:var(--size-1)}pos-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis;overflow:hidden;font-weight:var(--weight-light);color:var(--description-color);font-size:var(--scale-fluid-2)}@media (min-width: 640px){pos-label{font-size:var(--scale-fluid-0)}pos-description{font-size:var(--scale-fluid-1)}p.content{.url{font-size:var(--scale-fluid-000)}}}";export{l as pos_description,e as pos_rich_link}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-Dunlf3Z7.js";import{s as i}from"./p-C36YDIjT.js";import{B as o}from"./p-dsdWvqdi.js";import"./p-BvR_sP9G.js";import"./p-D8UlKjrD.js";import"./p-bf6nCqHq.js";const r=class{constructor(e){t(this,e),this.initializeOsEmitter=s(this,"pod-os:init",7),this.resourceLoadedEmitter=s(this,"pod-os:resource-loaded",7),this.errorEmitter=s(this,"pod-os:error",7),this.saveStatus="idle",this.loading=!0,this.isEditable=!1,this.setOs=async t=>{this.os=t}}componentWillLoad(){i.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async handleDocumentModified(t){const{file:s,newContent:e}=t.detail;try{this.saveStatus="saving";const t=await this.os.files().putFile(s,e);if(t.ok)this.saveStatus="idle";else{this.saveStatus="failed";const s=new Error(`Failed to save file: ${t.status} ${t.statusText}`);this.errorEmitter.emit(s)}}catch(t){this.saveStatus="failed",this.errorEmitter.emit(t)}}async fetchBlob(){try{this.loading=!0;const t=await this.os.files().fetchFile(this.src),s=this.os.store.get(this.src);this.isEditable=null==s?void 0:s.editable,this.resourceLoadedEmitter.emit(this.src),t.blob()?(this.file=t,this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e(h,null):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(o,{file:this.brokenFile}):"text/markdown"===this.file.blob().type?e("pos-markdown-document",{editable:this.isEditable,saveStatus:this.saveStatus,file:this.file}):e("iframe",{src:URL.createObjectURL(this.file.blob())})}static get watchers(){return{os:[{fetchBlob:0}],src:[{fetchBlob:0}]}}};function h(){return e("div",{class:"skeleton"},e("sl-skeleton",{effect:"sheen"}),e("sl-skeleton",{effect:"sheen"}),e("sl-skeleton",{effect:"sheen"}),e("sl-skeleton",{effect:"sheen"}),e("sl-skeleton",{effect:"sheen"}),e("sl-skeleton",{effect:"sheen"}))}r.style="iframe{background-color:var(--pos-background-color);width:100%;height:100vh}.error{display:flex;opacity:0.8;background:repeating-linear-gradient(-45deg, rgba(150, 0, 0, 0.1), rgba(150, 0, 0, 0.1) 10px, #fff 5px, #fff 25px);flex-direction:column;border:1px solid red;color:black;align-items:center;justify-content:center;word-break:break-all;padding:1rem;box-sizing:border-box}.error{color:#282828;font-size:calc(var(--width) / 2)}a{text-decoration:none;width:var(--width);height:var(--height)}.code{font-weight:bold;font-size:calc(var(--width) / 8)}.text{font-size:calc(var(--width) / 20)}.skeleton{display:flex;gap:var(--size-2);flex-direction:column;sl-skeleton{&:nth-child(2){width:95%}&:nth-child(4){width:90%}&:last-child{width:50%}}}";export{r as pos_document}
@@ -1,6 +1,6 @@
1
- import { b as __spreadProps, d as __spreadValues, i as i$1, c as component_styles_default, _ as __decorateClass, n, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-B10Qbx9i.js';
1
+ import { b as __spreadProps, d as __spreadValues, i as i$1, c as component_styles_default, _ as __decorateClass, n, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
2
  import { L as LocalizeController } from './chunk.6CTB5ZDJ-BnGEOH37.js';
3
- import { e as e$3 } from './class-map-DcKoKhP0.js';
3
+ import { e as e$3 } from './class-map-BnsoOzsP.js';
4
4
 
5
5
  /**
6
6
  * @license
@@ -1,8 +1,8 @@
1
- import { i, e as __yieldStar, c as component_styles_default, _ as __decorateClass, n as n$2, w as watch, a as ShoelaceElement, x, f as f$1, E, S as SlIcon } from './chunk.YHLNUJ7P-B10Qbx9i.js';
2
- import { S as SlPopup, e as e$1, s as setDefaultAnimation, w as waitForEvent, a as stopAnimations, g as getAnimation, b as animateTo } from './chunk.5JY5FUCG-B58l5Mdn.js';
1
+ import { i, e as __yieldStar, c as component_styles_default, _ as __decorateClass, n as n$2, w as watch, a as ShoelaceElement, x, f as f$1, E, S as SlIcon } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
+ import { S as SlPopup, e as e$1, s as setDefaultAnimation, w as waitForEvent, a as stopAnimations, g as getAnimation, b as animateTo } from './chunk.5JY5FUCG-CPET0g0y.js';
3
3
  import { L as LocalizeController } from './chunk.6CTB5ZDJ-BnGEOH37.js';
4
- import { e as e$2, i as i$1, t, a as e$3 } from './class-map-DcKoKhP0.js';
5
- import { o as o$2 } from './if-defined-TtuUo8or.js';
4
+ import { e as e$2, i as i$1, t, a as e$3 } from './class-map-BnsoOzsP.js';
5
+ import { o as o$2 } from './if-defined-CmT83CRs.js';
6
6
 
7
7
  // src/internal/slot.ts
8
8
  var HasSlotController = class {
@@ -1,7 +1,7 @@
1
- import { i, c as component_styles_default, _ as __decorateClass, n, w as watch, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-B10Qbx9i.js';
2
- import { S as SlPopup, e, s as setDefaultAnimation, p as parseDuration, a as stopAnimations, g as getAnimation, b as animateTo, w as waitForEvent } from './chunk.5JY5FUCG-B58l5Mdn.js';
1
+ import { i, c as component_styles_default, _ as __decorateClass, n, w as watch, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
+ import { S as SlPopup, e, s as setDefaultAnimation, p as parseDuration, a as stopAnimations, g as getAnimation, b as animateTo, w as waitForEvent } from './chunk.5JY5FUCG-CPET0g0y.js';
3
3
  import { L as LocalizeController } from './chunk.6CTB5ZDJ-BnGEOH37.js';
4
- import { e as e$1 } from './class-map-DcKoKhP0.js';
4
+ import { e as e$1 } from './class-map-BnsoOzsP.js';
5
5
 
6
6
  // src/components/tooltip/tooltip.styles.ts
7
7
  var tooltip_styles_default = i`
@@ -1,7 +1,7 @@
1
- import { h } from './index-DScSUBy-.js';
2
- import './chunk.ZGGPD2XJ-CxH68zCl.js';
3
- import { i, c as component_styles_default, _ as __decorateClass, n, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-B10Qbx9i.js';
4
- import { e } from './class-map-DcKoKhP0.js';
1
+ import { h } from './index-Dunlf3Z7.js';
2
+ import './chunk.ZGGPD2XJ-BsTqrynL.js';
3
+ import { i, c as component_styles_default, _ as __decorateClass, n, a as ShoelaceElement, x } from './chunk.YHLNUJ7P-nIbF6vRN.js';
4
+ import { e } from './class-map-BnsoOzsP.js';
5
5
 
6
6
  const BrokenFile = ({ file }) => {
7
7
  const iconName = iconForStatus(file.status);
@@ -1,4 +1,4 @@
1
- import { k as getBasePath } from './index-DScSUBy-.js';
1
+ import { k as getBasePath } from './index-Dunlf3Z7.js';
2
2
 
3
3
  var __defProp = Object.defineProperty;
4
4
  var __defProps = Object.defineProperties;
@@ -0,0 +1,3 @@
1
+ import { S as SlIcon } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
+
3
+ SlIcon.define("sl-icon");
@@ -1,4 +1,4 @@
1
- import { T } from './chunk.YHLNUJ7P-B10Qbx9i.js';
1
+ import { T } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,8 +1,8 @@
1
- import { p as promiseResolve, B as BUILD, d as consoleDevInfo, w as win, N as NAMESPACE, H, g as globalScripts, b as bootstrapLazy } from './index-DScSUBy-.js';
2
- export { s as setNonce } from './index-DScSUBy-.js';
1
+ import { p as promiseResolve, B as BUILD, d as consoleDevInfo, w as win, N as NAMESPACE, H, g as globalScripts, b as bootstrapLazy } from './index-Dunlf3Z7.js';
2
+ export { s as setNonce } from './index-Dunlf3Z7.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.43.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.43.4 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
 
8
8
  var patchBrowser = () => {
@@ -1,4 +1,4 @@
1
- import { E } from './chunk.YHLNUJ7P-B10Qbx9i.js';
1
+ import { E } from './chunk.YHLNUJ7P-nIbF6vRN.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { f as getRenderingRef, i as forceUpdate, j as Build } from './index-DScSUBy-.js';
1
+ import { f as getRenderingRef, i as forceUpdate, j as Build } from './index-Dunlf3Z7.js';
2
2
 
3
3
  const appendToMap = (map, propName, value) => {
4
4
  const items = map.get(propName);