@pod-os/elements 0.7.1-7512967.0 → 0.7.1-7d05bdd.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 (30) hide show
  1. package/dist/cjs/elements.cjs.js +1 -1
  2. package/dist/cjs/{ion-app_47.cjs.entry.js → ion-app_48.cjs.entry.js} +65 -5
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/collection/apps/pos-app-pdf-viewer/pos-app-pdf-viewer.js +1 -1
  5. package/dist/collection/collection-manifest.json +1 -0
  6. package/dist/collection/components/{pos-image/BrokenImage.js → broken-file/BrokenFile.js} +1 -1
  7. package/dist/collection/components/pos-image/pos-image.js +2 -2
  8. package/dist/collection/components/pos-pdf/pos-pdf.css +58 -0
  9. package/dist/collection/components/pos-pdf/pos-pdf.js +138 -0
  10. package/dist/components/BrokenFile.js +24 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/index.js +1 -0
  13. package/dist/components/pos-app-browser.js +80 -74
  14. package/dist/components/pos-app-pdf-viewer2.js +47 -35
  15. package/dist/components/pos-image2.js +3 -23
  16. package/dist/components/pos-pdf.d.ts +11 -0
  17. package/dist/components/pos-pdf.js +6 -0
  18. package/dist/components/pos-pdf2.js +99 -0
  19. package/dist/components/pos-router2.js +62 -56
  20. package/dist/components/pos-type-router2.js +58 -52
  21. package/dist/elements/elements.esm.js +1 -1
  22. package/dist/elements/{p-db565935.entry.js → p-4b1d1a80.entry.js} +1 -1
  23. package/dist/esm/elements.js +1 -1
  24. package/dist/esm/{ion-app_47.entry.js → ion-app_48.entry.js} +65 -6
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/types/components/broken-file/BrokenFile.d.ts +6 -0
  27. package/dist/types/components/pos-pdf/pos-pdf.d.ts +16 -0
  28. package/dist/types/components.d.ts +22 -0
  29. package/package.json +1 -1
  30. package/dist/types/components/pos-image/BrokenImage.d.ts +0 -6
@@ -1,31 +1,32 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { s as subscribeResource } from './ResourceAware.js';
3
- import { d as defineCustomElement$x } from './badge.js';
4
- import { d as defineCustomElement$w } from './card.js';
5
- import { d as defineCustomElement$v } from './card-content.js';
6
- import { d as defineCustomElement$u } from './card-header.js';
7
- import { d as defineCustomElement$t } from './card-title.js';
8
- import { d as defineCustomElement$s } from './col.js';
9
- import { d as defineCustomElement$r } from './grid.js';
10
- import { d as defineCustomElement$q } from './icon.js';
11
- import { d as defineCustomElement$p } from './item.js';
12
- import { d as defineCustomElement$o } from './item-divider.js';
13
- import { d as defineCustomElement$n } from './item-group.js';
14
- import { d as defineCustomElement$m } from './label.js';
15
- import { d as defineCustomElement$l } from './list.js';
16
- import { d as defineCustomElement$k } from './note.js';
17
- import { d as defineCustomElement$j } from './progress-bar.js';
18
- import { d as defineCustomElement$i } from './ripple-effect.js';
19
- import { d as defineCustomElement$h } from './row.js';
20
- import { d as defineCustomElement$g } from './skeleton-text.js';
21
- import { d as defineCustomElement$f } from './pos-app-generic2.js';
22
- import { d as defineCustomElement$e } from './pos-app-image-viewer2.js';
23
- import { d as defineCustomElement$d } from './pos-app-pdf-viewer2.js';
24
- import { d as defineCustomElement$c } from './pos-app-rdf-document2.js';
25
- import { d as defineCustomElement$b } from './pos-description2.js';
26
- import { d as defineCustomElement$a } from './pos-image2.js';
27
- import { d as defineCustomElement$9 } from './pos-label2.js';
28
- import { d as defineCustomElement$8 } from './pos-literals2.js';
3
+ import { d as defineCustomElement$y } from './badge.js';
4
+ import { d as defineCustomElement$x } from './card.js';
5
+ import { d as defineCustomElement$w } from './card-content.js';
6
+ import { d as defineCustomElement$v } from './card-header.js';
7
+ import { d as defineCustomElement$u } from './card-title.js';
8
+ import { d as defineCustomElement$t } from './col.js';
9
+ import { d as defineCustomElement$s } from './grid.js';
10
+ import { d as defineCustomElement$r } from './icon.js';
11
+ import { d as defineCustomElement$q } from './item.js';
12
+ import { d as defineCustomElement$p } from './item-divider.js';
13
+ import { d as defineCustomElement$o } from './item-group.js';
14
+ import { d as defineCustomElement$n } from './label.js';
15
+ import { d as defineCustomElement$m } from './list.js';
16
+ import { d as defineCustomElement$l } from './note.js';
17
+ import { d as defineCustomElement$k } from './progress-bar.js';
18
+ import { d as defineCustomElement$j } from './ripple-effect.js';
19
+ import { d as defineCustomElement$i } from './row.js';
20
+ import { d as defineCustomElement$h } from './skeleton-text.js';
21
+ import { d as defineCustomElement$g } from './pos-app-generic2.js';
22
+ import { d as defineCustomElement$f } from './pos-app-image-viewer2.js';
23
+ import { d as defineCustomElement$e } from './pos-app-pdf-viewer2.js';
24
+ import { d as defineCustomElement$d } from './pos-app-rdf-document2.js';
25
+ import { d as defineCustomElement$c } from './pos-description2.js';
26
+ import { d as defineCustomElement$b } from './pos-image2.js';
27
+ import { d as defineCustomElement$a } from './pos-label2.js';
28
+ import { d as defineCustomElement$9 } from './pos-literals2.js';
29
+ import { d as defineCustomElement$8 } from './pos-pdf2.js';
29
30
  import { d as defineCustomElement$7 } from './pos-picture2.js';
30
31
  import { d as defineCustomElement$6 } from './pos-relations2.js';
31
32
  import { d as defineCustomElement$5 } from './pos-resource2.js';
@@ -72,7 +73,7 @@ function defineCustomElement() {
72
73
  if (typeof customElements === "undefined") {
73
74
  return;
74
75
  }
75
- const components = ["pos-type-router", "ion-badge", "ion-card", "ion-card-content", "ion-card-header", "ion-card-title", "ion-col", "ion-grid", "ion-icon", "ion-item", "ion-item-divider", "ion-item-group", "ion-label", "ion-list", "ion-note", "ion-progress-bar", "ion-ripple-effect", "ion-row", "ion-skeleton-text", "pos-app-generic", "pos-app-image-viewer", "pos-app-pdf-viewer", "pos-app-rdf-document", "pos-description", "pos-image", "pos-label", "pos-literals", "pos-picture", "pos-relations", "pos-resource", "pos-reverse-relations", "pos-rich-link", "pos-subjects", "pos-type-badges"];
76
+ const components = ["pos-type-router", "ion-badge", "ion-card", "ion-card-content", "ion-card-header", "ion-card-title", "ion-col", "ion-grid", "ion-icon", "ion-item", "ion-item-divider", "ion-item-group", "ion-label", "ion-list", "ion-note", "ion-progress-bar", "ion-ripple-effect", "ion-row", "ion-skeleton-text", "pos-app-generic", "pos-app-image-viewer", "pos-app-pdf-viewer", "pos-app-rdf-document", "pos-description", "pos-image", "pos-label", "pos-literals", "pos-pdf", "pos-picture", "pos-relations", "pos-resource", "pos-reverse-relations", "pos-rich-link", "pos-subjects", "pos-type-badges"];
76
77
  components.forEach(tagName => { switch (tagName) {
77
78
  case "pos-type-router":
78
79
  if (!customElements.get(tagName)) {
@@ -81,130 +82,135 @@ function defineCustomElement() {
81
82
  break;
82
83
  case "ion-badge":
83
84
  if (!customElements.get(tagName)) {
84
- defineCustomElement$x();
85
+ defineCustomElement$y();
85
86
  }
86
87
  break;
87
88
  case "ion-card":
88
89
  if (!customElements.get(tagName)) {
89
- defineCustomElement$w();
90
+ defineCustomElement$x();
90
91
  }
91
92
  break;
92
93
  case "ion-card-content":
93
94
  if (!customElements.get(tagName)) {
94
- defineCustomElement$v();
95
+ defineCustomElement$w();
95
96
  }
96
97
  break;
97
98
  case "ion-card-header":
98
99
  if (!customElements.get(tagName)) {
99
- defineCustomElement$u();
100
+ defineCustomElement$v();
100
101
  }
101
102
  break;
102
103
  case "ion-card-title":
103
104
  if (!customElements.get(tagName)) {
104
- defineCustomElement$t();
105
+ defineCustomElement$u();
105
106
  }
106
107
  break;
107
108
  case "ion-col":
108
109
  if (!customElements.get(tagName)) {
109
- defineCustomElement$s();
110
+ defineCustomElement$t();
110
111
  }
111
112
  break;
112
113
  case "ion-grid":
113
114
  if (!customElements.get(tagName)) {
114
- defineCustomElement$r();
115
+ defineCustomElement$s();
115
116
  }
116
117
  break;
117
118
  case "ion-icon":
118
119
  if (!customElements.get(tagName)) {
119
- defineCustomElement$q();
120
+ defineCustomElement$r();
120
121
  }
121
122
  break;
122
123
  case "ion-item":
123
124
  if (!customElements.get(tagName)) {
124
- defineCustomElement$p();
125
+ defineCustomElement$q();
125
126
  }
126
127
  break;
127
128
  case "ion-item-divider":
128
129
  if (!customElements.get(tagName)) {
129
- defineCustomElement$o();
130
+ defineCustomElement$p();
130
131
  }
131
132
  break;
132
133
  case "ion-item-group":
133
134
  if (!customElements.get(tagName)) {
134
- defineCustomElement$n();
135
+ defineCustomElement$o();
135
136
  }
136
137
  break;
137
138
  case "ion-label":
138
139
  if (!customElements.get(tagName)) {
139
- defineCustomElement$m();
140
+ defineCustomElement$n();
140
141
  }
141
142
  break;
142
143
  case "ion-list":
143
144
  if (!customElements.get(tagName)) {
144
- defineCustomElement$l();
145
+ defineCustomElement$m();
145
146
  }
146
147
  break;
147
148
  case "ion-note":
148
149
  if (!customElements.get(tagName)) {
149
- defineCustomElement$k();
150
+ defineCustomElement$l();
150
151
  }
151
152
  break;
152
153
  case "ion-progress-bar":
153
154
  if (!customElements.get(tagName)) {
154
- defineCustomElement$j();
155
+ defineCustomElement$k();
155
156
  }
156
157
  break;
157
158
  case "ion-ripple-effect":
158
159
  if (!customElements.get(tagName)) {
159
- defineCustomElement$i();
160
+ defineCustomElement$j();
160
161
  }
161
162
  break;
162
163
  case "ion-row":
163
164
  if (!customElements.get(tagName)) {
164
- defineCustomElement$h();
165
+ defineCustomElement$i();
165
166
  }
166
167
  break;
167
168
  case "ion-skeleton-text":
168
169
  if (!customElements.get(tagName)) {
169
- defineCustomElement$g();
170
+ defineCustomElement$h();
170
171
  }
171
172
  break;
172
173
  case "pos-app-generic":
173
174
  if (!customElements.get(tagName)) {
174
- defineCustomElement$f();
175
+ defineCustomElement$g();
175
176
  }
176
177
  break;
177
178
  case "pos-app-image-viewer":
178
179
  if (!customElements.get(tagName)) {
179
- defineCustomElement$e();
180
+ defineCustomElement$f();
180
181
  }
181
182
  break;
182
183
  case "pos-app-pdf-viewer":
183
184
  if (!customElements.get(tagName)) {
184
- defineCustomElement$d();
185
+ defineCustomElement$e();
185
186
  }
186
187
  break;
187
188
  case "pos-app-rdf-document":
188
189
  if (!customElements.get(tagName)) {
189
- defineCustomElement$c();
190
+ defineCustomElement$d();
190
191
  }
191
192
  break;
192
193
  case "pos-description":
193
194
  if (!customElements.get(tagName)) {
194
- defineCustomElement$b();
195
+ defineCustomElement$c();
195
196
  }
196
197
  break;
197
198
  case "pos-image":
198
199
  if (!customElements.get(tagName)) {
199
- defineCustomElement$a();
200
+ defineCustomElement$b();
200
201
  }
201
202
  break;
202
203
  case "pos-label":
203
204
  if (!customElements.get(tagName)) {
204
- defineCustomElement$9();
205
+ defineCustomElement$a();
205
206
  }
206
207
  break;
207
208
  case "pos-literals":
209
+ if (!customElements.get(tagName)) {
210
+ defineCustomElement$9();
211
+ }
212
+ break;
213
+ case "pos-pdf":
208
214
  if (!customElements.get(tagName)) {
209
215
  defineCustomElement$8();
210
216
  }
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-cab74d27.js";import{g as t}from"./p-58e670a1.js";import"./p-d0c3f4ee.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-db565935",[[0,"pos-app-browser"],[0,"pos-router",{"uri":[32]},[[0,"pod-os:link","linkClicked"]]],[1,"pos-login",{"os":[32]}],[4,"pos-app",{"os":[32]},[[0,"pod-os:init","initializeOs"]]],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[1,"pos-type-router",{"types":[32]}],[1,"pos-navigation-bar",{"uri":[1],"value":[32]}],[0,"ion-app",{"setFocus":[64]}],[0,"pos-app-generic"],[0,"pos-app-rdf-document"],[1,"pos-app-image-viewer",{"resource":[32]}],[1,"pos-app-pdf-viewer",{"resource":[32]}],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}],[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}],[1,"pos-subjects",{"data":[32]}],[1,"pos-picture",{"resource":[32]}],[1,"pos-literals",{"data":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"os":[32],"dataUri":[32],"brokenFile":[32],"error":[32],"loading":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[33,"ion-card-title",{"color":[513]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"],[1,"pos-rich-link",{"uri":[1]}],[33,"ion-badge",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[1,"pos-description",{"resource":[32]}],[1,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]]],[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[32,"ion-card-content"],[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}],[1,"pos-label",{"resource":[32]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["p-b40b976f",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}]]],["p-8ed61030",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}]]],["p-b0d8c4f0",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-020dee35",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-8e89df2a",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-f4b358b2",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-e94b3833",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-ec8c13e0",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-b28ceb2f",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b9a87655",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}]]],["p-85d6f579",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-ddb95f0a",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-1e3bbab1",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["p-d5279568",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-8a24508e",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-941de03c",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-f78f2dd8",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-b57b6dfe",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["p-145ab600",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-8a5eed78",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}]]],["p-9406d7a7",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-6987a85b",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["p-a030ac8e",[[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["p-7146c28e",[[33,"ion-avatar"]]],["p-838fe7f9",[[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["p-b94e9c4d",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-f755d0e1",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}]]],["p-cef266e1",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-42c0a5d0",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-2a9a9bb1",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-35b2bfe8",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-7fc32e8d",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-3519e41e",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-d5d75307",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-921f3c67",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-5f811ad7",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-fe753f07",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-b36873af",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-7f5ecbca",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-3c7fbf5d",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-9080d6d4",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-1a3b6fc0",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-690e76ff",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-746c351b",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["p-d1e7b2ac",[[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-195e355e",[[0,"ion-slide"]]],["p-3433bf04",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-69cfaf5d",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-b61542f4",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-2333fe43",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-7e9a536f",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-79f98fb0",[[1,"ion-text",{"color":[513]}]]],["p-56c98ae0",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-26b70634",[[1,"ion-thumbnail"]]],["p-6be33848",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-29fb59e2",[[32,"ion-picker-column",{"col":[16]}]]],["p-a6801fba",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-8a0c9fd3",[[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]],[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["p-fb02ad07",[[34,"ion-buttons",{"collapse":[4]}],[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}],[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["p-3788211c",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["p-40e48267",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["p-88364dc1",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]]]'),e))));
1
+ import{p as e,b as o}from"./p-cab74d27.js";import{g as t}from"./p-58e670a1.js";import"./p-d0c3f4ee.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>(t(),o(JSON.parse('[["p-4b1d1a80",[[0,"pos-app-browser"],[0,"pos-router",{"uri":[32]},[[0,"pod-os:link","linkClicked"]]],[1,"pos-login",{"os":[32]}],[4,"pos-app",{"os":[32]},[[0,"pod-os:init","initializeOs"]]],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[1,"pos-type-router",{"types":[32]}],[1,"pos-navigation-bar",{"uri":[1],"value":[32]}],[0,"ion-app",{"setFocus":[64]}],[0,"pos-app-generic"],[0,"pos-app-rdf-document"],[1,"pos-app-image-viewer",{"resource":[32]}],[1,"pos-app-pdf-viewer",{"resource":[32]}],[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}],[1,"pos-relations",{"data":[32]}],[1,"pos-reverse-relations",{"data":[32]}],[1,"pos-subjects",{"data":[32]}],[1,"pos-pdf",{"src":[1],"alt":[1],"os":[32],"dataUri":[32],"brokenFile":[32],"error":[32],"loading":[32]}],[1,"pos-picture",{"resource":[32]}],[1,"pos-literals",{"data":[32]}],[1,"pos-image",{"src":[1],"alt":[1],"os":[32],"dataUri":[32],"brokenFile":[32],"error":[32],"loading":[32]}],[1,"pos-type-badges",{"data":[32],"typeLabels":[32],"isExpanded":[32]}],[33,"ion-card-title",{"color":[513]}],[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"],[1,"pos-rich-link",{"uri":[1]}],[33,"ion-badge",{"color":[513]}],[1,"pos-description",{"resource":[32]}],[1,"pos-resource",{"uri":[1],"lazy":[4],"os":[32],"resource":[32],"consumers":[32],"error":[32],"loading":[32],"fetch":[64]},[[0,"pod-os:resource","provideResource"]]],[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-card-content"],[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}],[1,"pos-label",{"resource":[32]}],[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}],[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["p-b40b976f",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}]]],["p-8ed61030",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}]]],["p-b0d8c4f0",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["p-020dee35",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}]]],["p-8e89df2a",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-f4b358b2",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-e94b3833",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}]]],["p-ec8c13e0",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}]]],["p-b28ceb2f",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-b9a87655",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}]]],["p-85d6f579",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-ddb95f0a",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["p-1e3bbab1",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["p-d5279568",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}]]],["p-8a24508e",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-941de03c",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}]]],["p-f78f2dd8",[[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]]]],["p-b57b6dfe",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["p-145ab600",[[33,"ion-reorder",null,[[2,"click","onClick"]]]]],["p-8a5eed78",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}]]],["p-9406d7a7",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]]]],["p-6987a85b",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["p-a030ac8e",[[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["p-7146c28e",[[33,"ion-avatar"]]],["p-838fe7f9",[[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["p-b94e9c4d",[[33,"ion-card-subtitle",{"color":[513]}]]],["p-f755d0e1",[[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}]]],["p-cef266e1",[[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["p-42c0a5d0",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["p-2a9a9bb1",[[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["p-35b2bfe8",[[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}]]],["p-7fc32e8d",[[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["p-3519e41e",[[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["p-d5d75307",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}]]],["p-921f3c67",[[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["p-5f811ad7",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["p-fe753f07",[[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["p-b36873af",[[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["p-7f5ecbca",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}]]],["p-3c7fbf5d",[[0,"ion-route-redirect",{"from":[1],"to":[1]}]]],["p-9080d6d4",[[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]]]],["p-1a3b6fc0",[[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["p-690e76ff",[[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-746c351b",[[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["p-d1e7b2ac",[[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["p-195e355e",[[0,"ion-slide"]]],["p-3433bf04",[[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["p-69cfaf5d",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["p-b61542f4",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}]]],["p-2333fe43",[[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["p-7e9a536f",[[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["p-79f98fb0",[[1,"ion-text",{"color":[513]}]]],["p-56c98ae0",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["p-26b70634",[[1,"ion-thumbnail"]]],["p-6be33848",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["p-29fb59e2",[[32,"ion-picker-column",{"col":[16]}]]],["p-a6801fba",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["p-8a0c9fd3",[[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]],[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}],[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["p-fb02ad07",[[34,"ion-buttons",{"collapse":[4]}],[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}],[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["p-3788211c",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["p-40e48267",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["p-88364dc1",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]]]'),e))));
@@ -125,4 +125,4 @@ queue-microtask/index.js:
125
125
  @babel/runtime/helpers/regeneratorRuntime.js:
126
126
  (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE *)
127
127
  */
128
- const Kd=()=>new class{constructor(){this.session=new class{get authenticatedFetch(){return this._authenticatedFetch}constructor(){this.session=new sa.Session,this._authenticatedFetch=this.session.fetch}handleIncomingRedirect(){return pe(this,null,(function*(){return this.session.handleIncomingRedirect({restorePreviousSession:!1})}))}login(t){return pe(this,null,(function*(){return this.session.login({oidcIssuer:t,redirectUrl:window.location.href,clientName:`Pod OS at ${window.location.host}`})}))}logout(){return pe(this,null,(function*(){return this.session.logout()}))}trackSession(t){this.session.onLogin((()=>t(this.session.info))),this.session.onLogout((()=>t(this.session.info))),this.session.onSessionRestore((()=>t(this.session.info))),t(this.session.info)}},this.store=new class{constructor(t){this.graph=Ld(),this.fetcher=Ud(this.graph,{fetch:t.authenticatedFetch})}fetch(t){return this.fetcher.load(Bd(t),{force:!0})}get(t){return new zd(t,this.graph)}}(this.session),this.fileFetcher=new class{constructor(t){this.session=t}fetchFile(t){return pe(this,null,(function*(){const e=yield this.session.authenticatedFetch(t);if(e.ok){const i=yield e.blob();return new class{constructor(t,e){this.url=t,this.data=e}blob(){return this.data}}(t,i)}return new class{constructor(t,e){this.url=t,this.status=e}toString(){return`${this.status.toString()} - ${this.url}`}blob(){return null}}(t,new class{constructor(t,e){this.code=t,this.text=e}toString(){return this.text?`${this.code} - ${this.text}`:this.code.toString()}}(e.status,e.statusText))}))}}(this.session)}handleIncomingRedirect(){this.session.handleIncomingRedirect()}fetch(t){return this.store.fetch(t)}fetchFile(t){return this.fileFetcher.fetchFile(t)}trackSession(t){return this.session.trackSession(t)}logout(){return this.session.logout()}login(t="http://localhost:3000"){return this.session.login(t)}},Wd=class{constructor(e){t(this,e),this.os=void 0}componentWillLoad(){this.os=Kd(),this.os.handleIncomingRedirect(),this.os.trackSession((t=>{zt.state.isLoggedIn=t.isLoggedIn,zt.state.webId=t.webId}))}async initializeOs(t){t.stopPropagation(),t.detail(this.os)}render(){return e("ion-app",null,e("slot",null))}},qd=class{constructor(e){t(this,e)}render(){return e("pos-app",null,e("ion-header",null,e("ion-toolbar",null,e("ion-title",{slot:"start"},"PodOS"),e("pos-login",null))),e("ion-content",null,e("pos-router",null)),e("ion-footer",null,e("ion-toolbar",null,e("ion-title",null,"PodOS Browser"))))}},Vd=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("pos-type-badges",null),e("pos-picture",null),e("ion-card-title",null,e("pos-label",null))),e("ion-card-content",null,e("pos-description",null)))),e("ion-col",{size:"12","size-sm":!0},e("pos-literals",null)),e("ion-col",{size:"12","size-sm":!0},e("pos-relations",null),e("pos-reverse-relations",null))))}};function Gd(t){t.subscribeResource.emit(t.receiveResource)}const Xd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("pos-image",{src:this.resource.uri})),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null)))))):null}};Xd.style="pos-image {\n --max-width: 100%;\n }";const Yd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("a",{href:this.resource.uri},this.resource.uri)),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null)))))):null}},Zd=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("pos-subjects",null)),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null))))))}},Qd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?this.resource.description():null}},tf=({file:t})=>{const i=function(t){switch(t.code){case 401:case 403:return"lock-closed-outline";case 404:return"help-circle-outline";default:return"alert-circle-outline"}}(t.status);return e("div",null,e("a",{class:"error",href:t.url},e("div",null,e("ion-icon",{name:i})),e("div",{class:"code"},t.status.code),e("div",{class:"text"},t.status.text)))},ef=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.src=void 0,this.alt=void 0,this.os=void 0,this.dataUri=void 0,this.brokenFile=void 0,this.error=void 0,this.loading=!0}componentWillLoad(){zt.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=!0;const t=await this.os.fetchFile(this.src);t.blob()?(this.dataUri=URL.createObjectURL(t.blob()),this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-skeleton-text",{animated:!0}):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(tf,{file:this.brokenFile}):e("img",{src:this.dataUri,alt:this.alt})}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};ef.style=":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height);max-width:var(--max-width);max-height:var(--max-height)}.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 ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);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)}";const nf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?this.resource.label():null}},rf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.literals()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.values.map((t=>e("ion-item",null,e("ion-label",{class:"ion-text-wrap"},t)," "))))));return this.data.length>0?e("ion-list",null,t):null}},of=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.os=void 0}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(){const t=zt.state.getIdpUrl();this.os.login(t)}logout(){this.os.logout()}render(){return e(i,null,zt.state.isLoggedIn?e("pos-resource",{uri:zt.state.webId},e("span",{class:"user-data"},e("pos-picture",null),e("pos-label",null))):"",!zt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.login()},"Login"),zt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.logout()},"Logout"))}};of.style=":host{display:flex;gap:10px}.user-data{align-items:center;display:inline-flex;gap:10px}.user-data pos-picture{--width:40px;--height:40px;--border-radius:50%}";const sf=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7),this.uri="",this.value=this.uri}onChange(t){this.value=t.detail.value}onSubmit(t){t.preventDefault(),this.linkEmitter.emit(this.value)}render(){return e("form",{onSubmit:t=>this.onSubmit(t)},e("ion-searchbar",{enterkeyhint:"search",placeholder:"Enter URI",value:this.uri,debounce:0,onIonChange:t=>this.onChange(t)}))}},af=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){const t=this.resource?this.resource.picture():null;return t?e("pos-image",{src:t.url,alt:this.resource.label()}):null}};af.style=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0)}";const cf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.relations()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},lf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.os=void 0,this.resource=void 0,this.consumers=[],this.uri=void 0,this.lazy=!1,this.error=void 0,this.loading=!0}componentWillLoad(){zt.onChange("isLoggedIn",(()=>this.loadResource())),this.initializeOsEmitter.emit(this.setOs)}async provideResource(t){t.stopPropagation(),this.resource&&t.detail(this.resource),this.consumers.push(t)}async loadResource(){await this.getResource(!this.lazy)}async fetch(){await this.getResource(!0)}async getResource(t=!1){try{t&&(this.loading=!0,await this.os.fetch(this.uri)),this.resource=this.os.store.get(this.uri),this.error=null,this.consumers.forEach((t=>{t.detail(this.resource)}))}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-progress-bar",{type:"indeterminate"}):this.error?e("ion-card",null,e("ion-card-header",null,e("p",null,"Sorry, something went wrong"),e("p",null,"Status:",this.error.status),e("details",null,this.error.message)),e("ion-card-content",null,e("p",null,"You can try to open the link outside PodOS:"),e("a",{href:this.uri},this.uri))):e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}},uf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.reverseRelations()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,"is ",t.predicate," of")),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},hf=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7),this.uri=void 0}render(){return e("pos-resource",{lazy:!0,uri:this.uri},e("ion-item",{href:this.uri,onClick:t=>{t.preventDefault(),this.linkEmitter.emit(this.uri)}},e("ion-label",null,e("pos-label",null),e("p",null,e("ion-label",{style:{maxWidth:"50rem"}},e("pos-description",null))),e("p",null,e("a",{href:this.uri},this.uri)))))}},df=t=>!("isConnected"in t)||t.isConnected,ff=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(df))})(...e)}),2e3)}})(),pf=(t,e)=>{var i;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(i=t.render)&&void 0!==i?i:e}},vf=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const i=e(t);if(i)return!0===i?{}:{...i}}else{const i=e.exec(t);if(i)return e.lastIndex=0,{...i}}},gf=t=>t.pathname.toLowerCase(),mf=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),wf=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),bf=t=>t.replace(/([=!:$/()])/g,"\\$1"),yf=t=>t&&t.sensitive?"":"i",xf=(t,e,i)=>{for(var n=(i=i||{}).strict,r=!1!==i.end,o=wf(i.delimiter||"/"),s=i.delimiters||"./",a=[].concat(i.endsWith||[]).map(wf).concat("$").join("|"),c="",l=!1,u=0;u<t.length;u++){var h=t[u];if("string"==typeof h)c+=wf(h),l=u===t.length-1&&s.indexOf(h[h.length-1])>-1;else{var d=wf(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),c+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return r?(n||(c+="(?:"+o+")?"),c+="$"===a?"$":"(?="+a+")"):(n||(c+="(?:"+o+"(?="+a+"))?"),l||(c+="(?="+o+"|"+a+")")),new RegExp("^"+c,yf(i))},kf=(t,e,i)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var i=t.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,i)=>{for(var n=[],r=0;r<t.length;r++)n.push(kf(t[r],e,i).source);return new RegExp("(?:"+n.join("|")+")",yf(i))})(t,e,i):((t,e,i)=>xf(((t,e)=>{for(var i,n=[],r=0,o=0,s="",a=e&&e.delimiter||"/",c=e&&e.delimiters||"./",l=!1;null!==(i=mf.exec(t));){var u=i[0],h=i[1],d=i.index;if(s+=t.slice(o,d),o=d+u.length,h)s+=h[1],l=!0;else{var f="",p=t[o],v=i[2],g=i[3],m=i[4],w=i[5];if(!l&&s.length){var b=s.length-1;c.indexOf(s[b])>-1&&(f=s[b],s=s.slice(0,b))}s&&(n.push(s),s="",l=!1);var y=f||a,x=g||m;n.push({name:v||r++,prefix:f,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==f&&void 0!==p&&p!==f,pattern:x?bf(x):"[^"+wf(y)+"]+?"})}}return(s||o<t.length)&&n.push(s+t.substr(o)),n})(t,i),e,i))(t,e,i);let Ef=0;const Sf={},Ff=(t,e={})=>{const{exact:i=!1,strict:n=!1}=e,{re:r,keys:o}=((t,e)=>{const i=`${e.end}${e.strict}`,n=Sf[i]||(Sf[i]={}),r=JSON.stringify(t);if(n[r])return n[r];const o=[],s={re:kf(t,o,e),keys:o};return Ef<1e4&&(n[r]=s,Ef+=1),s})(t,{end:i,strict:n});return t=>{const e=r.exec(t);if(!e)return;const[n,...s]=e;return i&&t!==n?void 0:o.reduce(((t,e,i)=>(t[e.name]=s[i],t)),{})}},Af=(()=>{const t=window,e=new URL(t.location.href),i=(void 0,gf),{state:n,onChange:r,dispose:s}=((t,e)=>{const i=((t,e=((t,e)=>t!==e))=>{let i=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},r=()=>{i=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((e=>e(t))),i.get(t)),s=(t,r)=>{const o=i.get(t);e(r,o,t)&&(i.set(t,r),n.set.forEach((e=>e(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>i.has(e),set:(t,e,i)=>(s(e,i),!0)}),c=(t,e)=>(n[t].push(e),()=>{((t,e)=>{const i=t.indexOf(e);i>=0&&(t[i]=t[t.length-1],t.length--)})(n[t],e)});return{state:a,get:o,set:s,on:c,onChange:(e,i)=>{const n=c("set",((t,n)=>{t===e&&i(n)})),r=c("reset",(()=>i(t[e])));return()=>{n(),r()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{n.dispose.forEach((t=>t())),r()},reset:r,forceUpdate:t=>{const e=i.get(t);n.set.forEach((i=>i(t,e,e)))}}})(t,e);return i.use((()=>{if("function"!=typeof l)return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const i=l();i&&((t,e,i)=>{const n=t.get(e);n?n.includes(i)||n.push(i):t.set(e,[i])})(t,e,i)},set:e=>{const i=t.get(e);i&&t.set(e,i.filter(o)),ff(t)},reset:()=>{t.forEach((t=>t.forEach(o))),ff(t)}}})()),i})({url:e,activePath:i(e)},((t,e,i)=>"url"===i?t.href!==e.href:t!==e)),a=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);n.url=e,n.activePath=i(e)},c=t=>{const{activePath:e}=n;for(let i of t){const n=vf(e,i.path);if(n){if(null!=i.to){const n="string"==typeof i.to?i.to:i.to(e);return a(n),c(t)}return{params:n,route:i}}}},u=()=>{const e=new URL(t.location.href);n.url=e,n.activePath=i(e)},h={Switch:(t,e)=>{const i=c(e);if(i)return"function"==typeof i.route.jsx?i.route.jsx(i.params):i.route.jsx},get url(){return n.url},get activePath(){return n.activePath},push:a,onChange:r,dispose:()=>{t.removeEventListener("popstate",u),s()}};return u(),t.addEventListener("popstate",u),h})(),_f=class{constructor(e){t(this,e),this.uri=void 0}linkClicked(t){this.navigate(t.detail)}componentWillLoad(){this.updateUri(),Af.onChange("url",(()=>{this.updateUri()}))}navigate(t){Af.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||window.location.href}render(){return console.log("render router",this.uri),e(Af.Switch,null,e(pf,{path:Ff("",{exact:!1})},e("pos-navigation-bar",{uri:this.uri}),e("pos-resource",{key:this.uri,uri:this.uri},e("pos-type-router",null))))}},jf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{const e=t.assume(Hd);this.data=e.subjects()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("pos-rich-link",{uri:t.uri})));return this.data.length>0?e("ion-list",null,t):null}},Cf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.types(),this.typeLabels=[...new Set(t.types().map((t=>t.label)))]},this.data=[],this.typeLabels=[],this.isExpanded=!1}componentWillLoad(){Gd(this)}toggleDetails(){this.isExpanded=!this.isExpanded}render(){return 0==this.data.length?null:this.isExpanded?e("div",{class:"types expanded"},e("ion-badge",{class:"toggle",onClick:()=>this.toggleDetails()},e("ion-icon",{name:"contract-outline"})),this.data.map((t=>e("ion-badge",null,t.uri)))):e(i,null,e("div",{class:"types"},this.typeLabels.map((t=>e("ion-badge",null,t))),e("ion-badge",{class:"toggle",onClick:()=>this.toggleDetails()},e("ion-icon",{name:"expand-outline"}))))}};Cf.style=".types{display:flex;gap:0.25rem;margin:0.5rem 0}.expanded{flex-direction:column;justify-content:flex-start;align-items:flex-start}ion-badge{color:#333;background:#eee}ion-badge.toggle{cursor:pointer}ion-badge.toggle:hover{background:#ddd}";const Rf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.types=t.types()},this.types=void 0}componentWillLoad(){Gd(this)}render(){return this.types?this.renderApp():null}renderApp(){return this.types.some((t=>"http://www.w3.org/2007/ont/link#RDFDocument"===t.uri))?e("pos-app-rdf-document",null):this.types.some((t=>"http://www.w3.org/ns/iana/media-types/application/pdf#Resource"===t.uri))?e("pos-app-pdf-viewer",null):this.types.some((t=>"http://purl.org/dc/terms/Image"===t.uri))?e("pos-app-image-viewer",null):e("pos-app-generic",null)}};export{D as ion_app,L as ion_badge,B as ion_button,J as ion_card,$ as ion_card_content,z as ion_card_header,H as ion_card_title,X as ion_col,Y as ion_content,et as ion_footer,it as ion_grid,ct as ion_header,bt as ion_icon,kt as ion_item,Et as ion_item_divider,St as ion_item_group,Ft as ion_label,At as ion_list,_t as ion_note,jt as ion_progress_bar,It as ion_ripple_effect,Nt as ion_row,Dt as ion_searchbar,Mt as ion_skeleton_text,Ut as ion_title,Lt as ion_toolbar,Wd as pos_app,qd as pos_app_browser,Vd as pos_app_generic,Xd as pos_app_image_viewer,Yd as pos_app_pdf_viewer,Zd as pos_app_rdf_document,Qd as pos_description,ef as pos_image,nf as pos_label,rf as pos_literals,of as pos_login,sf as pos_navigation_bar,af as pos_picture,cf as pos_relations,lf as pos_resource,uf as pos_reverse_relations,hf as pos_rich_link,_f as pos_router,jf as pos_subjects,Cf as pos_type_badges,Rf as pos_type_router}
128
+ const Kd=()=>new class{constructor(){this.session=new class{get authenticatedFetch(){return this._authenticatedFetch}constructor(){this.session=new sa.Session,this._authenticatedFetch=this.session.fetch}handleIncomingRedirect(){return pe(this,null,(function*(){return this.session.handleIncomingRedirect({restorePreviousSession:!1})}))}login(t){return pe(this,null,(function*(){return this.session.login({oidcIssuer:t,redirectUrl:window.location.href,clientName:`Pod OS at ${window.location.host}`})}))}logout(){return pe(this,null,(function*(){return this.session.logout()}))}trackSession(t){this.session.onLogin((()=>t(this.session.info))),this.session.onLogout((()=>t(this.session.info))),this.session.onSessionRestore((()=>t(this.session.info))),t(this.session.info)}},this.store=new class{constructor(t){this.graph=Ld(),this.fetcher=Ud(this.graph,{fetch:t.authenticatedFetch})}fetch(t){return this.fetcher.load(Bd(t),{force:!0})}get(t){return new zd(t,this.graph)}}(this.session),this.fileFetcher=new class{constructor(t){this.session=t}fetchFile(t){return pe(this,null,(function*(){const e=yield this.session.authenticatedFetch(t);if(e.ok){const i=yield e.blob();return new class{constructor(t,e){this.url=t,this.data=e}blob(){return this.data}}(t,i)}return new class{constructor(t,e){this.url=t,this.status=e}toString(){return`${this.status.toString()} - ${this.url}`}blob(){return null}}(t,new class{constructor(t,e){this.code=t,this.text=e}toString(){return this.text?`${this.code} - ${this.text}`:this.code.toString()}}(e.status,e.statusText))}))}}(this.session)}handleIncomingRedirect(){this.session.handleIncomingRedirect()}fetch(t){return this.store.fetch(t)}fetchFile(t){return this.fileFetcher.fetchFile(t)}trackSession(t){return this.session.trackSession(t)}logout(){return this.session.logout()}login(t="http://localhost:3000"){return this.session.login(t)}},Wd=class{constructor(e){t(this,e),this.os=void 0}componentWillLoad(){this.os=Kd(),this.os.handleIncomingRedirect(),this.os.trackSession((t=>{zt.state.isLoggedIn=t.isLoggedIn,zt.state.webId=t.webId}))}async initializeOs(t){t.stopPropagation(),t.detail(this.os)}render(){return e("ion-app",null,e("slot",null))}},qd=class{constructor(e){t(this,e)}render(){return e("pos-app",null,e("ion-header",null,e("ion-toolbar",null,e("ion-title",{slot:"start"},"PodOS"),e("pos-login",null))),e("ion-content",null,e("pos-router",null)),e("ion-footer",null,e("ion-toolbar",null,e("ion-title",null,"PodOS Browser"))))}},Vd=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("pos-type-badges",null),e("pos-picture",null),e("ion-card-title",null,e("pos-label",null))),e("ion-card-content",null,e("pos-description",null)))),e("ion-col",{size:"12","size-sm":!0},e("pos-literals",null)),e("ion-col",{size:"12","size-sm":!0},e("pos-relations",null),e("pos-reverse-relations",null))))}};function Gd(t){t.subscribeResource.emit(t.receiveResource)}const Xd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("pos-image",{src:this.resource.uri})),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null)))))):null}};Xd.style="pos-image {\n --max-width: 100%;\n }";const Yd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("pos-pdf",{src:this.resource.uri})),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null)))))):null}},Zd=class{constructor(e){t(this,e)}render(){return e("ion-grid",null,e("ion-row",null,e("ion-col",{size:"12","size-sm":!0},e("pos-subjects",null)),e("ion-col",{size:"12","size-sm":!0},e("ion-card",null,e("ion-card-header",null,e("ion-card-title",null,e("pos-label",null),e("pos-type-badges",null)),e("pos-literals",null))))))}},Qd=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?this.resource.description():null}},tf=({file:t})=>{const i=function(t){switch(t.code){case 401:case 403:return"lock-closed-outline";case 404:return"help-circle-outline";default:return"alert-circle-outline"}}(t.status);return e("div",null,e("a",{class:"error",href:t.url},e("div",null,e("ion-icon",{name:i})),e("div",{class:"code"},t.status.code),e("div",{class:"text"},t.status.text)))},ef=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.src=void 0,this.alt=void 0,this.os=void 0,this.dataUri=void 0,this.brokenFile=void 0,this.error=void 0,this.loading=!0}componentWillLoad(){zt.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=!0;const t=await this.os.fetchFile(this.src);t.blob()?(this.dataUri=URL.createObjectURL(t.blob()),this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-skeleton-text",{animated:!0}):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(tf,{file:this.brokenFile}):e("img",{src:this.dataUri,alt:this.alt})}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};ef.style=":host{}img,ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height);max-width:var(--max-width);max-height:var(--max-height)}.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 ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);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)}";const nf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){return this.resource?this.resource.label():null}},rf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.literals()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.values.map((t=>e("ion-item",null,e("ion-label",{class:"ion-text-wrap"},t)," "))))));return this.data.length>0?e("ion-list",null,t):null}},of=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.os=void 0}componentWillLoad(){this.initializeOsEmitter.emit(this.setOs)}login(){const t=zt.state.getIdpUrl();this.os.login(t)}logout(){this.os.logout()}render(){return e(i,null,zt.state.isLoggedIn?e("pos-resource",{uri:zt.state.webId},e("span",{class:"user-data"},e("pos-picture",null),e("pos-label",null))):"",!zt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.login()},"Login"),zt.state.isLoggedIn&&e("ion-button",{onClick:()=>this.logout()},"Logout"))}};of.style=":host{display:flex;gap:10px}.user-data{align-items:center;display:inline-flex;gap:10px}.user-data pos-picture{--width:40px;--height:40px;--border-radius:50%}";const sf=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7),this.uri="",this.value=this.uri}onChange(t){this.value=t.detail.value}onSubmit(t){t.preventDefault(),this.linkEmitter.emit(this.value)}render(){return e("form",{onSubmit:t=>this.onSubmit(t)},e("ion-searchbar",{enterkeyhint:"search",placeholder:"Enter URI",value:this.uri,debounce:0,onIonChange:t=>this.onChange(t)}))}},af=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.src=void 0,this.alt=void 0,this.os=void 0,this.dataUri=void 0,this.brokenFile=void 0,this.error=void 0,this.loading=!0}componentWillLoad(){zt.onChange("isLoggedIn",(()=>this.fetchBlob())),this.initializeOsEmitter.emit(this.setOs)}async fetchBlob(){try{this.loading=!0;const t=await this.os.fetchFile(this.src);t.blob()?(this.dataUri=URL.createObjectURL(t.blob()),this.error=null):this.brokenFile=t}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-skeleton-text",{animated:!0}):this.error?e("div",{class:"error"},this.error.message):this.brokenFile?e(tf,{file:this.brokenFile}):e("iframe",{src:this.dataUri})}static get watchers(){return{os:["fetchBlob"],src:["fetchBlob"]}}};af.style=":host{}iframe{width:100%;height:100vh}ion-skeleton-text,div.error{border-radius:var(--border-radius);width:var(--width);height:var(--height);max-width:var(--max-width);max-height:var(--max-height)}.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 ion-icon{color:#282828;--ionicon-stroke-width:calc(var(--width) / 5);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)}";const cf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.resource=t},this.resource=void 0}componentWillLoad(){Gd(this)}render(){const t=this.resource?this.resource.picture():null;return t?e("pos-image",{src:t.url,alt:this.resource.label()}):null}};cf.style=":host{--width:300px;--height:300px;--border-radius:var(--border-radius, 0)}";const lf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.relations()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,t.predicate)),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},uf=class{constructor(e){t(this,e),this.initializeOsEmitter=r(this,"pod-os:init",7),this.setOs=async t=>{this.os=t},this.os=void 0,this.resource=void 0,this.consumers=[],this.uri=void 0,this.lazy=!1,this.error=void 0,this.loading=!0}componentWillLoad(){zt.onChange("isLoggedIn",(()=>this.loadResource())),this.initializeOsEmitter.emit(this.setOs)}async provideResource(t){t.stopPropagation(),this.resource&&t.detail(this.resource),this.consumers.push(t)}async loadResource(){await this.getResource(!this.lazy)}async fetch(){await this.getResource(!0)}async getResource(t=!1){try{t&&(this.loading=!0,await this.os.fetch(this.uri)),this.resource=this.os.store.get(this.uri),this.error=null,this.consumers.forEach((t=>{t.detail(this.resource)}))}catch(t){this.error=t}finally{this.loading=!1}}render(){return this.loading?e("ion-progress-bar",{type:"indeterminate"}):this.error?e("ion-card",null,e("ion-card-header",null,e("p",null,"Sorry, something went wrong"),e("p",null,"Status:",this.error.status),e("details",null,this.error.message)),e("ion-card-content",null,e("p",null,"You can try to open the link outside PodOS:"),e("a",{href:this.uri},this.uri))):e("slot",null)}static get watchers(){return{os:["loadResource"],uri:["loadResource"]}}},hf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.reverseRelations()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("ion-item-group",null,e("ion-item-divider",null,e("ion-label",null,"is ",t.predicate," of")),t.uris.map((t=>e("pos-rich-link",{uri:t}))))));return this.data.length>0?e("ion-list",null,t):null}},df=class{constructor(e){t(this,e),this.linkEmitter=r(this,"pod-os:link",7),this.uri=void 0}render(){return e("pos-resource",{lazy:!0,uri:this.uri},e("ion-item",{href:this.uri,onClick:t=>{t.preventDefault(),this.linkEmitter.emit(this.uri)}},e("ion-label",null,e("pos-label",null),e("p",null,e("ion-label",{style:{maxWidth:"50rem"}},e("pos-description",null))),e("p",null,e("a",{href:this.uri},this.uri)))))}},ff=t=>!("isConnected"in t)||t.isConnected,pf=(()=>{let t;return(...e)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let e of t.keys())t.set(e,t.get(e).filter(ff))})(...e)}),2e3)}})(),vf=(t,e)=>{var i;return"to"in t?{path:t.path,to:t.to}:{path:t.path,id:t.id,jsx:null!==(i=t.render)&&void 0!==i?i:e}},gf=(t,e)=>{if("string"==typeof e){if(e===t)return{}}else if("function"==typeof e){const i=e(t);if(i)return!0===i?{}:{...i}}else{const i=e.exec(t);if(i)return e.lastIndex=0,{...i}}},mf=t=>t.pathname.toLowerCase(),wf=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g"),bf=t=>t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),yf=t=>t.replace(/([=!:$/()])/g,"\\$1"),xf=t=>t&&t.sensitive?"":"i",kf=(t,e,i)=>{for(var n=(i=i||{}).strict,r=!1!==i.end,o=bf(i.delimiter||"/"),s=i.delimiters||"./",a=[].concat(i.endsWith||[]).map(bf).concat("$").join("|"),c="",l=!1,u=0;u<t.length;u++){var h=t[u];if("string"==typeof h)c+=bf(h),l=u===t.length-1&&s.indexOf(h[h.length-1])>-1;else{var d=bf(h.prefix||""),f=h.repeat?"(?:"+h.pattern+")(?:"+d+"(?:"+h.pattern+"))*":h.pattern;e&&e.push(h),c+=h.optional?h.partial?d+"("+f+")?":"(?:"+d+"("+f+"))?":d+"("+f+")"}}return r?(n||(c+="(?:"+o+")?"),c+="$"===a?"$":"(?="+a+")"):(n||(c+="(?:"+o+"(?="+a+"))?"),l||(c+="(?="+o+"|"+a+")")),new RegExp("^"+c,xf(i))},Ef=(t,e,i)=>t instanceof RegExp?((t,e)=>{if(!e)return t;var i=t.source.match(/\((?!\?)/g);if(i)for(var n=0;n<i.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,pattern:null});return t})(t,e):Array.isArray(t)?((t,e,i)=>{for(var n=[],r=0;r<t.length;r++)n.push(Ef(t[r],e,i).source);return new RegExp("(?:"+n.join("|")+")",xf(i))})(t,e,i):((t,e,i)=>kf(((t,e)=>{for(var i,n=[],r=0,o=0,s="",a=e&&e.delimiter||"/",c=e&&e.delimiters||"./",l=!1;null!==(i=wf.exec(t));){var u=i[0],h=i[1],d=i.index;if(s+=t.slice(o,d),o=d+u.length,h)s+=h[1],l=!0;else{var f="",p=t[o],v=i[2],g=i[3],m=i[4],w=i[5];if(!l&&s.length){var b=s.length-1;c.indexOf(s[b])>-1&&(f=s[b],s=s.slice(0,b))}s&&(n.push(s),s="",l=!1);var y=f||a,x=g||m;n.push({name:v||r++,prefix:f,delimiter:y,optional:"?"===w||"*"===w,repeat:"+"===w||"*"===w,partial:""!==f&&void 0!==p&&p!==f,pattern:x?yf(x):"[^"+bf(y)+"]+?"})}}return(s||o<t.length)&&n.push(s+t.substr(o)),n})(t,i),e,i))(t,e,i);let Sf=0;const Ff={},Af=(t,e={})=>{const{exact:i=!1,strict:n=!1}=e,{re:r,keys:o}=((t,e)=>{const i=`${e.end}${e.strict}`,n=Ff[i]||(Ff[i]={}),r=JSON.stringify(t);if(n[r])return n[r];const o=[],s={re:Ef(t,o,e),keys:o};return Sf<1e4&&(n[r]=s,Sf+=1),s})(t,{end:i,strict:n});return t=>{const e=r.exec(t);if(!e)return;const[n,...s]=e;return i&&t!==n?void 0:o.reduce(((t,e,i)=>(t[e.name]=s[i],t)),{})}},_f=(()=>{const t=window,e=new URL(t.location.href),i=(void 0,mf),{state:n,onChange:r,dispose:s}=((t,e)=>{const i=((t,e=((t,e)=>t!==e))=>{let i=new Map(Object.entries(null!=t?t:{}));const n={dispose:[],get:[],set:[],reset:[]},r=()=>{i=new Map(Object.entries(null!=t?t:{})),n.reset.forEach((t=>t()))},o=t=>(n.get.forEach((e=>e(t))),i.get(t)),s=(t,r)=>{const o=i.get(t);e(r,o,t)&&(i.set(t,r),n.set.forEach((e=>e(t,r,o))))},a="undefined"==typeof Proxy?{}:new Proxy(t,{get:(t,e)=>o(e),ownKeys:()=>Array.from(i.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,e)=>i.has(e),set:(t,e,i)=>(s(e,i),!0)}),c=(t,e)=>(n[t].push(e),()=>{((t,e)=>{const i=t.indexOf(e);i>=0&&(t[i]=t[t.length-1],t.length--)})(n[t],e)});return{state:a,get:o,set:s,on:c,onChange:(e,i)=>{const n=c("set",((t,n)=>{t===e&&i(n)})),r=c("reset",(()=>i(t[e])));return()=>{n(),r()}},use:(...t)=>{const e=t.reduce(((t,e)=>(e.set&&t.push(c("set",e.set)),e.get&&t.push(c("get",e.get)),e.reset&&t.push(c("reset",e.reset)),e.dispose&&t.push(c("dispose",e.dispose)),t)),[]);return()=>e.forEach((t=>t()))},dispose:()=>{n.dispose.forEach((t=>t())),r()},reset:r,forceUpdate:t=>{const e=i.get(t);n.set.forEach((i=>i(t,e,e)))}}})(t,e);return i.use((()=>{if("function"!=typeof l)return{};const t=new Map;return{dispose:()=>t.clear(),get:e=>{const i=l();i&&((t,e,i)=>{const n=t.get(e);n?n.includes(i)||n.push(i):t.set(e,[i])})(t,e,i)},set:e=>{const i=t.get(e);i&&t.set(e,i.filter(o)),pf(t)},reset:()=>{t.forEach((t=>t.forEach(o))),pf(t)}}})()),i})({url:e,activePath:i(e)},((t,e,i)=>"url"===i?t.href!==e.href:t!==e)),a=t=>{history.pushState(null,null,t);const e=new URL(t,document.baseURI);n.url=e,n.activePath=i(e)},c=t=>{const{activePath:e}=n;for(let i of t){const n=gf(e,i.path);if(n){if(null!=i.to){const n="string"==typeof i.to?i.to:i.to(e);return a(n),c(t)}return{params:n,route:i}}}},u=()=>{const e=new URL(t.location.href);n.url=e,n.activePath=i(e)},h={Switch:(t,e)=>{const i=c(e);if(i)return"function"==typeof i.route.jsx?i.route.jsx(i.params):i.route.jsx},get url(){return n.url},get activePath(){return n.activePath},push:a,onChange:r,dispose:()=>{t.removeEventListener("popstate",u),s()}};return u(),t.addEventListener("popstate",u),h})(),jf=class{constructor(e){t(this,e),this.uri=void 0}linkClicked(t){this.navigate(t.detail)}componentWillLoad(){this.updateUri(),_f.onChange("url",(()=>{this.updateUri()}))}navigate(t){_f.push("?uri="+encodeURIComponent(t))}updateUri(){this.uri=new URLSearchParams(window.location.search).get("uri")||window.location.href}render(){return console.log("render router",this.uri),e(_f.Switch,null,e(vf,{path:Af("",{exact:!1})},e("pos-navigation-bar",{uri:this.uri}),e("pos-resource",{key:this.uri,uri:this.uri},e("pos-type-router",null))))}},Cf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{const e=t.assume(Hd);this.data=e.subjects()},this.data=[]}componentWillLoad(){Gd(this)}render(){const t=this.data.map((t=>e("pos-rich-link",{uri:t.uri})));return this.data.length>0?e("ion-list",null,t):null}},Rf=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.data=t.types(),this.typeLabels=[...new Set(t.types().map((t=>t.label)))]},this.data=[],this.typeLabels=[],this.isExpanded=!1}componentWillLoad(){Gd(this)}toggleDetails(){this.isExpanded=!this.isExpanded}render(){return 0==this.data.length?null:this.isExpanded?e("div",{class:"types expanded"},e("ion-badge",{class:"toggle",onClick:()=>this.toggleDetails()},e("ion-icon",{name:"contract-outline"})),this.data.map((t=>e("ion-badge",null,t.uri)))):e(i,null,e("div",{class:"types"},this.typeLabels.map((t=>e("ion-badge",null,t))),e("ion-badge",{class:"toggle",onClick:()=>this.toggleDetails()},e("ion-icon",{name:"expand-outline"}))))}};Rf.style=".types{display:flex;gap:0.25rem;margin:0.5rem 0}.expanded{flex-direction:column;justify-content:flex-start;align-items:flex-start}ion-badge{color:#333;background:#eee}ion-badge.toggle{cursor:pointer}ion-badge.toggle:hover{background:#ddd}";const If=class{constructor(e){t(this,e),this.subscribeResource=r(this,"pod-os:resource",7),this.receiveResource=t=>{this.types=t.types()},this.types=void 0}componentWillLoad(){Gd(this)}render(){return this.types?this.renderApp():null}renderApp(){return this.types.some((t=>"http://www.w3.org/2007/ont/link#RDFDocument"===t.uri))?e("pos-app-rdf-document",null):this.types.some((t=>"http://www.w3.org/ns/iana/media-types/application/pdf#Resource"===t.uri))?e("pos-app-pdf-viewer",null):this.types.some((t=>"http://purl.org/dc/terms/Image"===t.uri))?e("pos-app-image-viewer",null):e("pos-app-generic",null)}};export{D as ion_app,L as ion_badge,B as ion_button,J as ion_card,$ as ion_card_content,z as ion_card_header,H as ion_card_title,X as ion_col,Y as ion_content,et as ion_footer,it as ion_grid,ct as ion_header,bt as ion_icon,kt as ion_item,Et as ion_item_divider,St as ion_item_group,Ft as ion_label,At as ion_list,_t as ion_note,jt as ion_progress_bar,It as ion_ripple_effect,Nt as ion_row,Dt as ion_searchbar,Mt as ion_skeleton_text,Ut as ion_title,Lt as ion_toolbar,Wd as pos_app,qd as pos_app_browser,Vd as pos_app_generic,Xd as pos_app_image_viewer,Yd as pos_app_pdf_viewer,Zd as pos_app_rdf_document,Qd as pos_description,ef as pos_image,nf as pos_label,rf as pos_literals,of as pos_login,sf as pos_navigation_bar,af as pos_pdf,cf as pos_picture,lf as pos_relations,uf as pos_resource,hf as pos_reverse_relations,df as pos_rich_link,jf as pos_router,Cf as pos_subjects,Rf as pos_type_badges,If as pos_type_router}