@startinblox/components-ds4go 2.2.4 → 3.0.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 (52) hide show
  1. package/.gitlab-ci.yml +8 -2
  2. package/AGENTS.md +516 -0
  3. package/cypress/component/no-component-test.cy.ts +9 -0
  4. package/cypress/e2e/helpers/components/setupCacheInvalidation.cy.ts +512 -0
  5. package/cypress/e2e/helpers/components/setupCacheOnResourceReady.cy.ts +483 -0
  6. package/cypress/e2e/helpers/components/setupComponentSubscriptions.cy.ts +239 -0
  7. package/cypress/e2e/helpers/components/setupOnSaveReset.cy.ts +380 -0
  8. package/cypress/e2e/helpers/datas/checkValueInIntervalRecursive.cy.ts +563 -0
  9. package/cypress/e2e/helpers/datas/dataBuilder.cy.ts +508 -0
  10. package/cypress/e2e/helpers/datas/filterGenerator.cy.ts +285 -0
  11. package/cypress/e2e/helpers/datas/filterObjectByDateAfter.cy.ts +389 -0
  12. package/cypress/e2e/helpers/datas/filterObjectByDateInterval.cy.ts +613 -0
  13. package/cypress/e2e/helpers/datas/filterObjectById.cy.ts +276 -0
  14. package/cypress/e2e/helpers/datas/filterObjectByInterval.cy.ts +237 -0
  15. package/cypress/e2e/helpers/datas/filterObjectByNamedValue.cy.ts +299 -0
  16. package/cypress/e2e/helpers/datas/filterObjectByType.cy.ts +307 -0
  17. package/cypress/e2e/helpers/datas/filterObjectByValue.cy.ts +375 -0
  18. package/cypress/e2e/helpers/datas/sort.cy.ts +293 -0
  19. package/cypress/e2e/helpers/ui/formatDate.cy.ts +233 -0
  20. package/cypress/e2e/helpers/utils/requestNavigation.cy.ts +257 -0
  21. package/cypress/e2e/helpers/utils/uniq.cy.ts +160 -0
  22. package/cypress/support/e2e.ts +1 -0
  23. package/cypress.config.ts +2 -0
  24. package/dist/index.js +932 -734
  25. package/locales/en.xlf +75 -0
  26. package/package.json +10 -10
  27. package/src/components/solid-boilerplate.ts +76 -0
  28. package/src/components/solid-fact-bundle-creation.ts +202 -59
  29. package/src/helpers/components/componentObjectHandler.ts +5 -7
  30. package/src/helpers/components/componentObjectsHandler.ts +8 -3
  31. package/src/helpers/components/orbitComponent.ts +87 -68
  32. package/src/helpers/components/setupCacheInvalidation.ts +50 -23
  33. package/src/helpers/components/setupCacheOnResourceReady.ts +42 -23
  34. package/src/helpers/components/setupComponentSubscriptions.ts +10 -9
  35. package/src/helpers/components/setupOnSaveReset.ts +27 -5
  36. package/src/helpers/datas/checkValueInIntervalRecursive.ts +66 -0
  37. package/src/helpers/datas/dataBuilder.ts +4 -4
  38. package/src/helpers/datas/filterGenerator.ts +13 -10
  39. package/src/helpers/datas/filterObjectByDateAfter.ts +3 -3
  40. package/src/helpers/datas/filterObjectByDateInterval.ts +44 -0
  41. package/src/helpers/datas/filterObjectById.ts +7 -6
  42. package/src/helpers/datas/filterObjectByInterval.ts +6 -110
  43. package/src/helpers/datas/filterObjectByNamedValue.ts +35 -33
  44. package/src/helpers/datas/filterObjectByType.ts +3 -3
  45. package/src/helpers/datas/filterObjectByValue.ts +17 -16
  46. package/src/helpers/datas/sort.ts +50 -23
  47. package/src/helpers/index.ts +2 -0
  48. package/src/helpers/ui/formatDate.ts +14 -1
  49. package/src/helpers/utils/requestNavigation.ts +5 -2
  50. package/src/helpers/utils/uniq.ts +1 -1
  51. package/src/styles/fact-bundle-creation.scss +102 -0
  52. package/cypress/component/solid-boilerplate.cy.ts +0 -9
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { StoreType as ue, StoreService as pe } from "https://cdn.jsdelivr.net/npm/@startinblox/core@beta/+esm";
2
- const it = globalThis, Ct = it.ShadowRoot && (it.ShadyCSS === void 0 || it.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = /* @__PURE__ */ Symbol(), Ot = /* @__PURE__ */ new WeakMap();
3
- let Qt = class {
1
+ import { StoreType as me, StoreService as ge } from "https://cdn.jsdelivr.net/npm/@startinblox/core@beta/+esm";
2
+ const nt = globalThis, xt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Pt = /* @__PURE__ */ Symbol(), Ot = /* @__PURE__ */ new WeakMap();
3
+ let te = class {
4
4
  constructor(t, r, i) {
5
- if (this._$cssResult$ = !0, i !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5
+ if (this._$cssResult$ = !0, i !== Pt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
6
  this.cssText = t, this.t = r;
7
7
  }
8
8
  get styleSheet() {
9
9
  let t = this.o;
10
10
  const r = this.t;
11
- if (Ct && t === void 0) {
11
+ if (xt && t === void 0) {
12
12
  const i = r !== void 0 && r.length === 1;
13
13
  i && (t = Ot.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ot.set(r, t));
14
14
  }
@@ -18,28 +18,28 @@ let Qt = class {
18
18
  return this.cssText;
19
19
  }
20
20
  };
21
- const xt = (e) => new Qt(typeof e == "string" ? e : e + "", void 0, St), Y = (e, ...t) => {
21
+ const Rt = (e) => new te(typeof e == "string" ? e : e + "", void 0, Pt), tt = (e, ...t) => {
22
22
  const r = e.length === 1 ? e[0] : t.reduce((i, s, o) => i + ((n) => {
23
23
  if (n._$cssResult$ === !0) return n.cssText;
24
24
  if (typeof n == "number") return n;
25
25
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
26
26
  })(s) + e[o + 1], e[0]);
27
- return new Qt(r, e, St);
28
- }, fe = (e, t) => {
29
- if (Ct) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
27
+ return new te(r, e, Pt);
28
+ }, ye = (e, t) => {
29
+ if (xt) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
30
30
  else for (const r of t) {
31
- const i = document.createElement("style"), s = it.litNonce;
31
+ const i = document.createElement("style"), s = nt.litNonce;
32
32
  s !== void 0 && i.setAttribute("nonce", s), i.textContent = r.cssText, e.appendChild(i);
33
33
  }
34
- }, kt = Ct ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
34
+ }, Lt = xt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
35
35
  let r = "";
36
36
  for (const i of t.cssRules) r += i.cssText;
37
- return xt(r);
37
+ return Rt(r);
38
38
  })(e) : e;
39
- const { is: me, defineProperty: ge, getOwnPropertyDescriptor: ye, getOwnPropertyNames: ve, getOwnPropertySymbols: be, getPrototypeOf: $e } = Object, dt = globalThis, Dt = dt.trustedTypes, _e = Dt ? Dt.emptyScript : "", we = dt.reactiveElementPolyfillSupport, K = (e, t) => e, ot = { toAttribute(e, t) {
39
+ const { is: ve, defineProperty: be, getOwnPropertyDescriptor: $e, getOwnPropertyNames: _e, getOwnPropertySymbols: we, getPrototypeOf: Ae } = Object, ht = globalThis, Tt = ht.trustedTypes, Ce = Tt ? Tt.emptyScript : "", Se = ht.reactiveElementPolyfillSupport, G = (e, t) => e, at = { toAttribute(e, t) {
40
40
  switch (t) {
41
41
  case Boolean:
42
- e = e ? _e : null;
42
+ e = e ? Ce : null;
43
43
  break;
44
44
  case Object:
45
45
  case Array:
@@ -64,9 +64,9 @@ const { is: me, defineProperty: ge, getOwnPropertyDescriptor: ye, getOwnProperty
64
64
  }
65
65
  }
66
66
  return r;
67
- } }, ht = (e, t) => !me(e, t), It = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: ht };
68
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), dt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
69
- let N = class extends HTMLElement {
67
+ } }, pt = (e, t) => !ve(e, t), It = { attribute: !0, type: String, converter: at, reflect: !1, useDefault: !1, hasChanged: pt };
68
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), ht.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
69
+ let B = class extends HTMLElement {
70
70
  static addInitializer(t) {
71
71
  this._$Ei(), (this.l ??= []).push(t);
72
72
  }
@@ -76,11 +76,11 @@ let N = class extends HTMLElement {
76
76
  static createProperty(t, r = It) {
77
77
  if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(t, r), !r.noAccessor) {
78
78
  const i = /* @__PURE__ */ Symbol(), s = this.getPropertyDescriptor(t, i, r);
79
- s !== void 0 && ge(this.prototype, t, s);
79
+ s !== void 0 && be(this.prototype, t, s);
80
80
  }
81
81
  }
82
82
  static getPropertyDescriptor(t, r, i) {
83
- const { get: s, set: o } = ye(this.prototype, t) ?? { get() {
83
+ const { get: s, set: o } = $e(this.prototype, t) ?? { get() {
84
84
  return this[r];
85
85
  }, set(n) {
86
86
  this[r] = n;
@@ -94,14 +94,14 @@ let N = class extends HTMLElement {
94
94
  return this.elementProperties.get(t) ?? It;
95
95
  }
96
96
  static _$Ei() {
97
- if (this.hasOwnProperty(K("elementProperties"))) return;
98
- const t = $e(this);
97
+ if (this.hasOwnProperty(G("elementProperties"))) return;
98
+ const t = Ae(this);
99
99
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
100
100
  }
101
101
  static finalize() {
102
- if (this.hasOwnProperty(K("finalized"))) return;
103
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(K("properties"))) {
104
- const r = this.properties, i = [...ve(r), ...be(r)];
102
+ if (this.hasOwnProperty(G("finalized"))) return;
103
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(G("properties"))) {
104
+ const r = this.properties, i = [..._e(r), ...we(r)];
105
105
  for (const s of i) this.createProperty(s, r[s]);
106
106
  }
107
107
  const t = this[Symbol.metadata];
@@ -120,8 +120,8 @@ let N = class extends HTMLElement {
120
120
  const r = [];
121
121
  if (Array.isArray(t)) {
122
122
  const i = new Set(t.flat(1 / 0).reverse());
123
- for (const s of i) r.unshift(kt(s));
124
- } else t !== void 0 && r.push(kt(t));
123
+ for (const s of i) r.unshift(Lt(s));
124
+ } else t !== void 0 && r.push(Lt(t));
125
125
  return r;
126
126
  }
127
127
  static _$Eu(t, r) {
@@ -147,7 +147,7 @@ let N = class extends HTMLElement {
147
147
  }
148
148
  createRenderRoot() {
149
149
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
150
- return fe(t, this.constructor.elementStyles), t;
150
+ return ye(t, this.constructor.elementStyles), t;
151
151
  }
152
152
  connectedCallback() {
153
153
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
@@ -163,14 +163,14 @@ let N = class extends HTMLElement {
163
163
  _$ET(t, r) {
164
164
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
165
165
  if (s !== void 0 && i.reflect === !0) {
166
- const o = (i.converter?.toAttribute !== void 0 ? i.converter : ot).toAttribute(r, i.type);
166
+ const o = (i.converter?.toAttribute !== void 0 ? i.converter : at).toAttribute(r, i.type);
167
167
  this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
168
168
  }
169
169
  }
170
170
  _$AK(t, r) {
171
171
  const i = this.constructor, s = i._$Eh.get(t);
172
172
  if (s !== void 0 && this._$Em !== s) {
173
- const o = i.getPropertyOptions(s), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : ot;
173
+ const o = i.getPropertyOptions(s), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : at;
174
174
  this._$Em = s;
175
175
  const a = n.fromAttribute(r, o.type);
176
176
  this[s] = a ?? this._$Ej?.get(s) ?? a, this._$Em = null;
@@ -179,7 +179,7 @@ let N = class extends HTMLElement {
179
179
  requestUpdate(t, r, i, s = !1, o) {
180
180
  if (t !== void 0) {
181
181
  const n = this.constructor;
182
- if (s === !1 && (o = this[t]), i ??= n.getPropertyOptions(t), !((i.hasChanged ?? ht)(o, r) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(n._$Eu(t, i)))) return;
182
+ if (s === !1 && (o = this[t]), i ??= n.getPropertyOptions(t), !((i.hasChanged ?? pt)(o, r) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(n._$Eu(t, i)))) return;
183
183
  this.C(t, r, i);
184
184
  }
185
185
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -247,70 +247,70 @@ let N = class extends HTMLElement {
247
247
  firstUpdated(t) {
248
248
  }
249
249
  };
250
- N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[K("elementProperties")] = /* @__PURE__ */ new Map(), N[K("finalized")] = /* @__PURE__ */ new Map(), we?.({ ReactiveElement: N }), (dt.reactiveElementVersions ??= []).push("2.1.2");
251
- const Pt = globalThis, Lt = (e) => e, nt = Pt.trustedTypes, Tt = nt ? nt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Yt = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + S, Ae = `<${te}>`, T = document, G = () => T.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", jt = Array.isArray, Ce = (e) => jt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
252
- \f\r]`, W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, Nt = />/g, O = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
253
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, Bt = /"/g, ee = /^(?:script|style|textarea|title)$/i, Se = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), d = Se(1), H = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), qt = /* @__PURE__ */ new WeakMap(), I = T.createTreeWalker(T, 129);
254
- function re(e, t) {
250
+ B.elementStyles = [], B.shadowRootOptions = { mode: "open" }, B[G("elementProperties")] = /* @__PURE__ */ new Map(), B[G("finalized")] = /* @__PURE__ */ new Map(), Se?.({ ReactiveElement: B }), (ht.reactiveElementVersions ??= []).push("2.1.2");
251
+ const Et = globalThis, Ft = (e) => e, ct = Et.trustedTypes, Nt = ct ? ct.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ee = "$lit$", R = `lit$${Math.random().toFixed(9).slice(2)}$`, re = "?" + R, xe = `<${re}>`, F = document, J = () => F.createComment(""), Z = (e) => e === null || typeof e != "object" && typeof e != "function", jt = Array.isArray, Pe = (e) => jt(e) || typeof e?.[Symbol.iterator] == "function", gt = `[
252
+ \f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mt = /-->/g, Bt = />/g, k = RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
253
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), qt = /'/g, Ht = /"/g, se = /^(?:script|style|textarea|title)$/i, Re = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), f = Re(1), V = /* @__PURE__ */ Symbol.for("lit-noChange"), l = /* @__PURE__ */ Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), T = F.createTreeWalker(F, 129);
254
+ function ie(e, t) {
255
255
  if (!jt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
256
- return Tt !== void 0 ? Tt.createHTML(t) : t;
256
+ return Nt !== void 0 ? Nt.createHTML(t) : t;
257
257
  }
258
- const xe = (e, t) => {
258
+ const Ee = (e, t) => {
259
259
  const r = e.length - 1, i = [];
260
- let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = W;
260
+ let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = K;
261
261
  for (let a = 0; a < r; a++) {
262
- const l = e[a];
263
- let u, f, p = -1, b = 0;
264
- for (; b < l.length && (n.lastIndex = b, f = n.exec(l), f !== null); ) b = n.lastIndex, n === W ? f[1] === "!--" ? n = Ft : f[1] !== void 0 ? n = Nt : f[2] !== void 0 ? (ee.test(f[2]) && (s = RegExp("</" + f[2], "g")), n = O) : f[3] !== void 0 && (n = O) : n === O ? f[0] === ">" ? (n = s ?? W, p = -1) : f[1] === void 0 ? p = -2 : (p = n.lastIndex - f[2].length, u = f[1], n = f[3] === void 0 ? O : f[3] === '"' ? Bt : Mt) : n === Bt || n === Mt ? n = O : n === Ft || n === Nt ? n = W : (n = O, s = void 0);
265
- const $ = n === O && e[a + 1].startsWith("/>") ? " " : "";
266
- o += n === W ? l + Ae : p >= 0 ? (i.push(u), l.slice(0, p) + Yt + l.slice(p) + S + $) : l + S + (p === -2 ? a : $);
262
+ const c = e[a];
263
+ let d, p, u = -1, g = 0;
264
+ for (; g < c.length && (n.lastIndex = g, p = n.exec(c), p !== null); ) g = n.lastIndex, n === K ? p[1] === "!--" ? n = Mt : p[1] !== void 0 ? n = Bt : p[2] !== void 0 ? (se.test(p[2]) && (s = RegExp("</" + p[2], "g")), n = k) : p[3] !== void 0 && (n = k) : n === k ? p[0] === ">" ? (n = s ?? K, u = -1) : p[1] === void 0 ? u = -2 : (u = n.lastIndex - p[2].length, d = p[1], n = p[3] === void 0 ? k : p[3] === '"' ? Ht : qt) : n === Ht || n === qt ? n = k : n === Mt || n === Bt ? n = K : (n = k, s = void 0);
265
+ const w = n === k && e[a + 1].startsWith("/>") ? " " : "";
266
+ o += n === K ? c + xe : u >= 0 ? (i.push(d), c.slice(0, u) + ee + c.slice(u) + R + w) : c + R + (u === -2 ? a : w);
267
267
  }
268
- return [re(e, o + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
268
+ return [ie(e, o + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
269
269
  };
270
- class Z {
270
+ class X {
271
271
  constructor({ strings: t, _$litType$: r }, i) {
272
272
  let s;
273
273
  this.parts = [];
274
274
  let o = 0, n = 0;
275
- const a = t.length - 1, l = this.parts, [u, f] = xe(t, r);
276
- if (this.el = Z.createElement(u, i), I.currentNode = this.el.content, r === 2 || r === 3) {
277
- const p = this.el.content.firstChild;
278
- p.replaceWith(...p.childNodes);
275
+ const a = t.length - 1, c = this.parts, [d, p] = Ee(t, r);
276
+ if (this.el = X.createElement(d, i), T.currentNode = this.el.content, r === 2 || r === 3) {
277
+ const u = this.el.content.firstChild;
278
+ u.replaceWith(...u.childNodes);
279
279
  }
280
- for (; (s = I.nextNode()) !== null && l.length < a; ) {
280
+ for (; (s = T.nextNode()) !== null && c.length < a; ) {
281
281
  if (s.nodeType === 1) {
282
- if (s.hasAttributes()) for (const p of s.getAttributeNames()) if (p.endsWith(Yt)) {
283
- const b = f[n++], $ = s.getAttribute(p).split(S), rt = /([.?@])?(.*)/.exec(b);
284
- l.push({ type: 1, index: o, name: rt[2], strings: $, ctor: rt[1] === "." ? je : rt[1] === "?" ? Ee : rt[1] === "@" ? Re : ut }), s.removeAttribute(p);
285
- } else p.startsWith(S) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
286
- if (ee.test(s.tagName)) {
287
- const p = s.textContent.split(S), b = p.length - 1;
288
- if (b > 0) {
289
- s.textContent = nt ? nt.emptyScript : "";
290
- for (let $ = 0; $ < b; $++) s.append(p[$], G()), I.nextNode(), l.push({ type: 2, index: ++o });
291
- s.append(p[b], G());
282
+ if (s.hasAttributes()) for (const u of s.getAttributeNames()) if (u.endsWith(ee)) {
283
+ const g = p[n++], w = s.getAttribute(u).split(R), it = /([.?@])?(.*)/.exec(g);
284
+ c.push({ type: 1, index: o, name: it[2], strings: w, ctor: it[1] === "." ? Ue : it[1] === "?" ? ke : it[1] === "@" ? De : ft }), s.removeAttribute(u);
285
+ } else u.startsWith(R) && (c.push({ type: 6, index: o }), s.removeAttribute(u));
286
+ if (se.test(s.tagName)) {
287
+ const u = s.textContent.split(R), g = u.length - 1;
288
+ if (g > 0) {
289
+ s.textContent = ct ? ct.emptyScript : "";
290
+ for (let w = 0; w < g; w++) s.append(u[w], J()), T.nextNode(), c.push({ type: 2, index: ++o });
291
+ s.append(u[g], J());
292
292
  }
293
293
  }
294
- } else if (s.nodeType === 8) if (s.data === te) l.push({ type: 2, index: o });
294
+ } else if (s.nodeType === 8) if (s.data === re) c.push({ type: 2, index: o });
295
295
  else {
296
- let p = -1;
297
- for (; (p = s.data.indexOf(S, p + 1)) !== -1; ) l.push({ type: 7, index: o }), p += S.length - 1;
296
+ let u = -1;
297
+ for (; (u = s.data.indexOf(R, u + 1)) !== -1; ) c.push({ type: 7, index: o }), u += R.length - 1;
298
298
  }
299
299
  o++;
300
300
  }
301
301
  }
302
302
  static createElement(t, r) {
303
- const i = T.createElement("template");
303
+ const i = F.createElement("template");
304
304
  return i.innerHTML = t, i;
305
305
  }
306
306
  }
307
- function z(e, t, r = e, i) {
308
- if (t === H) return t;
307
+ function W(e, t, r = e, i) {
308
+ if (t === V) return t;
309
309
  let s = i !== void 0 ? r._$Co?.[i] : r._$Cl;
310
- const o = J(t) ? void 0 : t._$litDirective$;
311
- return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(e), s._$AT(e, r, i)), i !== void 0 ? (r._$Co ??= [])[i] = s : r._$Cl = s), s !== void 0 && (t = z(e, s._$AS(e, t.values), s, i)), t;
310
+ const o = Z(t) ? void 0 : t._$litDirective$;
311
+ return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(e), s._$AT(e, r, i)), i !== void 0 ? (r._$Co ??= [])[i] = s : r._$Cl = s), s !== void 0 && (t = W(e, s._$AS(e, t.values), s, i)), t;
312
312
  }
313
- class Pe {
313
+ class je {
314
314
  constructor(t, r) {
315
315
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
316
316
  }
@@ -321,29 +321,29 @@ class Pe {
321
321
  return this._$AM._$AU;
322
322
  }
323
323
  u(t) {
324
- const { el: { content: r }, parts: i } = this._$AD, s = (t?.creationScope ?? T).importNode(r, !0);
325
- I.currentNode = s;
326
- let o = I.nextNode(), n = 0, a = 0, l = i[0];
327
- for (; l !== void 0; ) {
328
- if (n === l.index) {
329
- let u;
330
- l.type === 2 ? u = new tt(o, o.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(o, l.name, l.strings, this, t) : l.type === 6 && (u = new Ue(o, this, t)), this._$AV.push(u), l = i[++a];
324
+ const { el: { content: r }, parts: i } = this._$AD, s = (t?.creationScope ?? F).importNode(r, !0);
325
+ T.currentNode = s;
326
+ let o = T.nextNode(), n = 0, a = 0, c = i[0];
327
+ for (; c !== void 0; ) {
328
+ if (n === c.index) {
329
+ let d;
330
+ c.type === 2 ? d = new et(o, o.nextSibling, this, t) : c.type === 1 ? d = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (d = new Oe(o, this, t)), this._$AV.push(d), c = i[++a];
331
331
  }
332
- n !== l?.index && (o = I.nextNode(), n++);
332
+ n !== c?.index && (o = T.nextNode(), n++);
333
333
  }
334
- return I.currentNode = T, s;
334
+ return T.currentNode = F, s;
335
335
  }
336
336
  p(t) {
337
337
  let r = 0;
338
338
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, r), r += i.strings.length - 2) : i._$AI(t[r])), r++;
339
339
  }
340
340
  }
341
- class tt {
341
+ class et {
342
342
  get _$AU() {
343
343
  return this._$AM?._$AU ?? this._$Cv;
344
344
  }
345
345
  constructor(t, r, i, s) {
346
- this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = i, this.options = s, this._$Cv = s?.isConnected ?? !0;
346
+ this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = r, this._$AM = i, this.options = s, this._$Cv = s?.isConnected ?? !0;
347
347
  }
348
348
  get parentNode() {
349
349
  let t = this._$AA.parentNode;
@@ -357,7 +357,7 @@ class tt {
357
357
  return this._$AB;
358
358
  }
359
359
  _$AI(t, r = this) {
360
- t = z(this, t, r), J(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ce(t) ? this.k(t) : this._(t);
360
+ t = W(this, t, r), Z(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== V && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Pe(t) ? this.k(t) : this._(t);
361
361
  }
362
362
  O(t) {
363
363
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -366,38 +366,38 @@ class tt {
366
366
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
367
367
  }
368
368
  _(t) {
369
- this._$AH !== c && J(this._$AH) ? this._$AA.nextSibling.data = t : this.T(T.createTextNode(t)), this._$AH = t;
369
+ this._$AH !== l && Z(this._$AH) ? this._$AA.nextSibling.data = t : this.T(F.createTextNode(t)), this._$AH = t;
370
370
  }
371
371
  $(t) {
372
- const { values: r, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Z.createElement(re(i.h, i.h[0]), this.options)), i);
372
+ const { values: r, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = X.createElement(ie(i.h, i.h[0]), this.options)), i);
373
373
  if (this._$AH?._$AD === s) this._$AH.p(r);
374
374
  else {
375
- const o = new Pe(s, this), n = o.u(this.options);
375
+ const o = new je(s, this), n = o.u(this.options);
376
376
  o.p(r), this.T(n), this._$AH = o;
377
377
  }
378
378
  }
379
379
  _$AC(t) {
380
- let r = qt.get(t.strings);
381
- return r === void 0 && qt.set(t.strings, r = new Z(t)), r;
380
+ let r = zt.get(t.strings);
381
+ return r === void 0 && zt.set(t.strings, r = new X(t)), r;
382
382
  }
383
383
  k(t) {
384
384
  jt(this._$AH) || (this._$AH = [], this._$AR());
385
385
  const r = this._$AH;
386
386
  let i, s = 0;
387
- for (const o of t) s === r.length ? r.push(i = new tt(this.O(G()), this.O(G()), this, this.options)) : i = r[s], i._$AI(o), s++;
387
+ for (const o of t) s === r.length ? r.push(i = new et(this.O(J()), this.O(J()), this, this.options)) : i = r[s], i._$AI(o), s++;
388
388
  s < r.length && (this._$AR(i && i._$AB.nextSibling, s), r.length = s);
389
389
  }
390
390
  _$AR(t = this._$AA.nextSibling, r) {
391
391
  for (this._$AP?.(!1, !0, r); t !== this._$AB; ) {
392
- const i = Lt(t).nextSibling;
393
- Lt(t).remove(), t = i;
392
+ const i = Ft(t).nextSibling;
393
+ Ft(t).remove(), t = i;
394
394
  }
395
395
  }
396
396
  setConnected(t) {
397
397
  this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
398
398
  }
399
399
  }
400
- class ut {
400
+ class ft {
401
401
  get tagName() {
402
402
  return this.element.tagName;
403
403
  }
@@ -405,53 +405,53 @@ class ut {
405
405
  return this._$AM._$AU;
406
406
  }
407
407
  constructor(t, r, i, s, o) {
408
- this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = r, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = c;
408
+ this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = r, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = l;
409
409
  }
410
410
  _$AI(t, r = this, i, s) {
411
411
  const o = this.strings;
412
412
  let n = !1;
413
- if (o === void 0) t = z(this, t, r, 0), n = !J(t) || t !== this._$AH && t !== H, n && (this._$AH = t);
413
+ if (o === void 0) t = W(this, t, r, 0), n = !Z(t) || t !== this._$AH && t !== V, n && (this._$AH = t);
414
414
  else {
415
415
  const a = t;
416
- let l, u;
417
- for (t = o[0], l = 0; l < o.length - 1; l++) u = z(this, a[i + l], r, l), u === H && (u = this._$AH[l]), n ||= !J(u) || u !== this._$AH[l], u === c ? t = c : t !== c && (t += (u ?? "") + o[l + 1]), this._$AH[l] = u;
416
+ let c, d;
417
+ for (t = o[0], c = 0; c < o.length - 1; c++) d = W(this, a[i + c], r, c), d === V && (d = this._$AH[c]), n ||= !Z(d) || d !== this._$AH[c], d === l ? t = l : t !== l && (t += (d ?? "") + o[c + 1]), this._$AH[c] = d;
418
418
  }
419
419
  n && !s && this.j(t);
420
420
  }
421
421
  j(t) {
422
- t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
422
+ t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
423
423
  }
424
424
  }
425
- class je extends ut {
425
+ class Ue extends ft {
426
426
  constructor() {
427
427
  super(...arguments), this.type = 3;
428
428
  }
429
429
  j(t) {
430
- this.element[this.name] = t === c ? void 0 : t;
430
+ this.element[this.name] = t === l ? void 0 : t;
431
431
  }
432
432
  }
433
- class Ee extends ut {
433
+ class ke extends ft {
434
434
  constructor() {
435
435
  super(...arguments), this.type = 4;
436
436
  }
437
437
  j(t) {
438
- this.element.toggleAttribute(this.name, !!t && t !== c);
438
+ this.element.toggleAttribute(this.name, !!t && t !== l);
439
439
  }
440
440
  }
441
- class Re extends ut {
441
+ class De extends ft {
442
442
  constructor(t, r, i, s, o) {
443
443
  super(t, r, i, s, o), this.type = 5;
444
444
  }
445
445
  _$AI(t, r = this) {
446
- if ((t = z(this, t, r, 0) ?? c) === H) return;
447
- const i = this._$AH, s = t === c && i !== c || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== c && (i === c || s);
446
+ if ((t = W(this, t, r, 0) ?? l) === V) return;
447
+ const i = this._$AH, s = t === l && i !== l || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== l && (i === l || s);
448
448
  s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
449
449
  }
450
450
  handleEvent(t) {
451
451
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
452
452
  }
453
453
  }
454
- class Ue {
454
+ class Oe {
455
455
  constructor(t, r, i) {
456
456
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = i;
457
457
  }
@@ -459,22 +459,22 @@ class Ue {
459
459
  return this._$AM._$AU;
460
460
  }
461
461
  _$AI(t) {
462
- z(this, t);
462
+ W(this, t);
463
463
  }
464
464
  }
465
- const Oe = Pt.litHtmlPolyfillSupport;
466
- Oe?.(Z, tt), (Pt.litHtmlVersions ??= []).push("3.3.2");
467
- const ke = (e, t, r) => {
465
+ const Le = Et.litHtmlPolyfillSupport;
466
+ Le?.(X, et), (Et.litHtmlVersions ??= []).push("3.3.2");
467
+ const Te = (e, t, r) => {
468
468
  const i = r?.renderBefore ?? t;
469
469
  let s = i._$litPart$;
470
470
  if (s === void 0) {
471
471
  const o = r?.renderBefore ?? null;
472
- i._$litPart$ = s = new tt(t.insertBefore(G(), o), o, void 0, r ?? {});
472
+ i._$litPart$ = s = new et(t.insertBefore(J(), o), o, void 0, r ?? {});
473
473
  }
474
474
  return s._$AI(e), s;
475
475
  };
476
- const Et = globalThis;
477
- let q = class extends N {
476
+ const Ut = globalThis;
477
+ let z = class extends B {
478
478
  constructor() {
479
479
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
480
480
  }
@@ -484,7 +484,7 @@ let q = class extends N {
484
484
  }
485
485
  update(t) {
486
486
  const r = this.render();
487
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ke(r, this.renderRoot, this.renderOptions);
487
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Te(r, this.renderRoot, this.renderOptions);
488
488
  }
489
489
  connectedCallback() {
490
490
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -493,36 +493,36 @@ let q = class extends N {
493
493
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
494
494
  }
495
495
  render() {
496
- return H;
496
+ return V;
497
497
  }
498
498
  };
499
- q._$litElement$ = !0, q.finalized = !0, Et.litElementHydrateSupport?.({ LitElement: q });
500
- const De = Et.litElementPolyfillSupport;
501
- De?.({ LitElement: q });
502
- (Et.litElementVersions ??= []).push("4.2.2");
503
- class Ie extends q {
499
+ z._$litElement$ = !0, z.finalized = !0, Ut.litElementHydrateSupport?.({ LitElement: z });
500
+ const Ie = Ut.litElementPolyfillSupport;
501
+ Ie?.({ LitElement: z });
502
+ (Ut.litElementVersions ??= []).push("4.2.2");
503
+ class Fe extends z {
504
504
  constructor() {
505
505
  super(...arguments), this.object = {
506
506
  "@id": ""
507
- }, this.isType = (t, r = this.object) => {
508
- const i = r["@type"];
509
- return Array.isArray(i) ? i.includes(t) : typeof i == "string" ? i === t : !1;
507
+ }, this.isType = (t, r) => {
508
+ const s = (r ?? this.object)["@type"];
509
+ return Array.isArray(s) ? s.includes(t) : typeof s == "string" ? s === t : !1;
510
510
  };
511
511
  }
512
512
  }
513
- const V = (e) => (t, r) => {
513
+ const M = (e) => (t, r) => {
514
514
  r !== void 0 ? r.addInitializer(() => {
515
515
  customElements.define(e, t);
516
516
  }) : customElements.define(e, t);
517
517
  };
518
- const Le = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: ht }, Te = (e = Le, t, r) => {
518
+ const Ne = { attribute: !0, type: String, converter: at, reflect: !1, hasChanged: pt }, Me = (e = Ne, t, r) => {
519
519
  const { kind: i, metadata: s } = r;
520
520
  let o = globalThis.litPropertyMetadata.get(s);
521
521
  if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(r.name, e), i === "accessor") {
522
522
  const { name: n } = r;
523
523
  return { set(a) {
524
- const l = t.get.call(this);
525
- t.set.call(this, a), this.requestUpdate(n, l, e, !0, a);
524
+ const c = t.get.call(this);
525
+ t.set.call(this, a), this.requestUpdate(n, c, e, !0, a);
526
526
  }, init(a) {
527
527
  return a !== void 0 && this.C(n, void 0, e, a), a;
528
528
  } };
@@ -530,46 +530,49 @@ const Le = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
530
530
  if (i === "setter") {
531
531
  const { name: n } = r;
532
532
  return function(a) {
533
- const l = this[n];
534
- t.call(this, a), this.requestUpdate(n, l, e, !0, a);
533
+ const c = this[n];
534
+ t.call(this, a), this.requestUpdate(n, c, e, !0, a);
535
535
  };
536
536
  }
537
537
  throw Error("Unsupported decorator location: " + i);
538
538
  };
539
- function y(e) {
540
- return (t, r) => typeof r == "object" ? Te(e, t, r) : ((i, s, o) => {
539
+ function v(e) {
540
+ return (t, r) => typeof r == "object" ? Me(e, t, r) : ((i, s, o) => {
541
541
  const n = s.hasOwnProperty(o);
542
542
  return s.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
543
543
  })(e, t, r);
544
544
  }
545
545
  function m(e) {
546
- return y({ ...e, state: !0, attribute: !1 });
546
+ return v({ ...e, state: !0, attribute: !1 });
547
547
  }
548
- var Fe = Object.defineProperty, Ne = (e, t, r, i) => {
548
+ var Be = Object.defineProperty, qe = (e, t, r, i) => {
549
549
  for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
550
550
  (n = e[o]) && (s = n(t, r, s) || s);
551
- return s && Fe(t, r, s), s;
551
+ return s && Be(t, r, s), s;
552
552
  };
553
- class Rt extends q {
553
+ class kt extends z {
554
554
  constructor() {
555
- super(...arguments), this.objects = [], this.hasType = (t, r = this.objects) => new Set(r.flatMap((s) => s["@type"])).has(t);
555
+ super(...arguments), this.objects = [], this.hasType = (t, r) => (r ?? this.objects ?? []).some((s) => {
556
+ const o = s["@type"];
557
+ return Array.isArray(o) ? o.includes(t) : typeof o == "string" ? o === t : !1;
558
+ });
556
559
  }
557
560
  }
558
- Ne([
559
- y({ attribute: !1 })
560
- ], Rt.prototype, "objects");
561
- var Me = Object.defineProperty, j = (e, t, r, i) => {
561
+ qe([
562
+ v({ attribute: !1 })
563
+ ], kt.prototype, "objects");
564
+ var He = Object.defineProperty, x = (e, t, r, i) => {
562
565
  for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
563
566
  (n = e[o]) && (s = n(t, r, s) || s);
564
- return s && Me(t, r, s), s;
567
+ return s && He(t, r, s), s;
565
568
  };
566
- class v extends Rt {
569
+ class $ extends kt {
567
570
  constructor({
568
571
  defaultRoute: t = !1,
569
572
  setupSubscriptions: r = !0,
570
573
  ignoreRouter: i = !1
571
574
  } = {}) {
572
- super(), this.cherryPickedProperties = [], this.currentRoute = "";
575
+ super(), this.ready = !1, this.cherryPickedProperties = [], this.currentRoute = "";
573
576
  const s = () => {
574
577
  document.readyState === "complete" && this._attach(t, r, i).then(
575
578
  (o) => {
@@ -580,11 +583,23 @@ class v extends Rt {
580
583
  document.readyState === "complete" ? s() : document.addEventListener("readystatechange", s);
581
584
  }
582
585
  async _attach(t, r, i) {
583
- return !this.orbit && window.orbit && (this.orbit = window.orbit, r) ? (se({
584
- component: this,
585
- defaultRoute: t,
586
- ignoreRouter: i
587
- }), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component && this.orbit.components.map((s) => (s.uniq === this.component.uniq && (s.instance = this), s))), await this._afterAttach(), Promise.resolve(!0)) : Promise.resolve(!1);
586
+ if (!this.orbit && window.orbit && (this.orbit = window.orbit, r)) {
587
+ if (ne({
588
+ component: this,
589
+ defaultRoute: t,
590
+ ignoreRouter: i
591
+ }), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component))
592
+ for (const s of this.orbit.components)
593
+ s.uniq === this.component.uniq && (s.instance = this);
594
+ return await this._afterAttach(), this.ready = !0, this.dispatchEvent(
595
+ new CustomEvent("component-ready", {
596
+ detail: {
597
+ component: this.component
598
+ }
599
+ })
600
+ ), Promise.resolve(!0);
601
+ }
602
+ return Promise.resolve(!1);
588
603
  }
589
604
  async _afterAttach() {
590
605
  return Promise.resolve();
@@ -596,29 +611,30 @@ class v extends Rt {
596
611
  const s = r.getAttribute("navigation-subrouter"), o = r.getAttribute("navigation-resource"), n = r.getAttribute("navigation-rdf-type");
597
612
  if (n) {
598
613
  const a = window.orbit?.components?.filter(
599
- (l) => l?.routeAttributes?.["rdf-type"] === n
614
+ (c) => c?.routeAttributes?.["rdf-type"] === n
600
615
  );
601
616
  a && (i = a[0]?.uniq);
602
617
  }
603
- i && D(
618
+ i && L(
604
619
  (window.orbit ? window.orbit.getRoute(i, !0) : i) + (s ? `-${s}` : ""),
605
620
  o
606
621
  ), t.preventDefault();
607
622
  }
608
623
  _normalizeLdpContains(t) {
609
- return !Array.isArray(t) && t !== null ? [t] : t;
624
+ return t === null ? [] : Array.isArray(t) ? t : [t];
610
625
  }
611
626
  async _expandContainer(t, r = !0, i = this.cherryPickedProperties) {
612
627
  const s = [];
613
- for (const o of t) {
614
- const n = await this._getProxyValue(
615
- await o,
616
- r,
617
- i
618
- );
619
- n && s.push(n);
620
- }
621
- return s;
628
+ return await Promise.all(
629
+ t.map(async (o) => {
630
+ const n = await this._getProxyValue(
631
+ await o,
632
+ r,
633
+ i
634
+ );
635
+ n && s.push(n);
636
+ })
637
+ ), s;
622
638
  }
623
639
  async _getProperties(t, r = !0, i = this.cherryPickedProperties) {
624
640
  const s = await t.properties, o = {
@@ -626,13 +642,15 @@ class v extends Rt {
626
642
  "@type": t["@type"],
627
643
  "@context": t.serverContext,
628
644
  _originalResource: t
629
- };
630
- for (const n of i)
631
- s?.includes(n.key) && (o[n.value] = await t.get(n.key), n.expand && (o[n.value] = await this._getProxyValue(
632
- o[n.value],
633
- r,
634
- i
635
- )), n.cast && (o[n.value] = await n.cast(o[n.value])));
645
+ }, n = i.map(async (c) => {
646
+ if (!s?.includes(c.key)) return;
647
+ let d = await t.get(c.key);
648
+ return c.expand && (d = await this._getProxyValue(d, r, i)), c.cast && (d = await c.cast(d)), { prop: c, value: d };
649
+ }), a = (await Promise.all(n)).filter(
650
+ (c) => c !== void 0
651
+ );
652
+ for (const { prop: c, value: d } of a)
653
+ d !== void 0 && (o[c.value] = d);
636
654
  return await this._responseAdaptator(o);
637
655
  }
638
656
  async _hasCherryPickedProperties(t) {
@@ -644,33 +662,17 @@ class v extends Rt {
644
662
  }
645
663
  async _getProxyValue(t, r = !0, i = this.cherryPickedProperties) {
646
664
  try {
647
- if (t) {
648
- let s = t;
649
- if (typeof t == "string" && (s = await window.sibStore.getData(t, Wt)), typeof t != "string" && t.isFullResource && (t.isFullResource?.() || (s = await window.sibStore.getData(
650
- t["@id"],
651
- Wt
652
- ))), typeof t != "string" && !t.isFullResource && (s.properties = Object.keys(s), s.get = (o) => s[o]), !s) return { _originalResource: s };
653
- if (typeof s == "object" && s !== null) {
654
- if (s.isContainer?.() && s["ldp:contains"]) {
655
- if (await this._hasCherryPickedProperties(s))
656
- return await this._getProperties(
657
- s,
658
- r,
659
- i
660
- );
661
- const o = this._normalizeLdpContains(
662
- await s["ldp:contains"]
663
- );
664
- return await this._expandContainer(
665
- o,
666
- r,
667
- i
668
- );
669
- }
665
+ if (!t) return;
666
+ let s = t;
667
+ if (typeof t == "string" ? s = await window.sibStore.getData(t, Gt) : t.isFullResource && !t.isFullResource?.() && (s = await window.sibStore.getData(t["@id"], Gt)), !s) return { _originalResource: s };
668
+ if (typeof s != "object" || s === null) return;
669
+ if (s.isContainer?.() && s["ldp:contains"]) {
670
+ if (await this._hasCherryPickedProperties(s))
670
671
  return await this._getProperties(s, r, i);
671
- }
672
+ const o = this._normalizeLdpContains(await s["ldp:contains"]);
673
+ return await this._expandContainer(o, r, i);
672
674
  }
673
- return;
675
+ return await this._getProperties(s, r, i);
674
676
  } catch {
675
677
  }
676
678
  }
@@ -679,44 +681,47 @@ class v extends Rt {
679
681
  }
680
682
  gatekeeper() {
681
683
  if (!this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute) || !this.dataSrc)
682
- return c;
684
+ return l;
683
685
  }
684
686
  }
685
- j([
686
- y({ attribute: "default-data-src", reflect: !0 })
687
- ], v.prototype, "defaultDataSrc");
688
- j([
689
- y({ attribute: "data-src", reflect: !0 })
690
- ], v.prototype, "dataSrc");
691
- j([
692
- y({ attribute: "nested-field" })
693
- ], v.prototype, "nestedField");
694
- j([
695
- y({ attribute: "uniq" })
696
- ], v.prototype, "uniq");
697
- j([
698
- y({ attribute: "route" })
699
- ], v.prototype, "route");
700
- j([
701
- y({ attribute: !1 })
702
- ], v.prototype, "cherryPickedProperties");
703
- j([
687
+ x([
704
688
  m()
705
- ], v.prototype, "orbit");
706
- j([
689
+ ], $.prototype, "ready");
690
+ x([
691
+ v({ attribute: "default-data-src", reflect: !0 })
692
+ ], $.prototype, "defaultDataSrc");
693
+ x([
694
+ v({ attribute: "data-src", reflect: !0 })
695
+ ], $.prototype, "dataSrc");
696
+ x([
697
+ v({ attribute: "nested-field" })
698
+ ], $.prototype, "nestedField");
699
+ x([
700
+ v({ attribute: "uniq" })
701
+ ], $.prototype, "uniq");
702
+ x([
703
+ v({ attribute: "route" })
704
+ ], $.prototype, "route");
705
+ x([
706
+ v({ attribute: !1 })
707
+ ], $.prototype, "cherryPickedProperties");
708
+ x([
707
709
  m()
708
- ], v.prototype, "currentRoute");
709
- function B(e) {
710
+ ], $.prototype, "orbit");
711
+ x([
712
+ m()
713
+ ], $.prototype, "currentRoute");
714
+ function H(e) {
710
715
  return e ? e.replace(/^urn:uuid:/i, "").replace(/^urn:tems:/i, "") : "";
711
716
  }
712
- function Be(e, t, r) {
717
+ function ze(e, t, r) {
713
718
  if (!e) return null;
714
719
  const i = JSON.parse(JSON.stringify(e));
715
- i["@id"] && (i["@id"] = B(i["@id"]));
716
- const s = M(t, ["@id"]) || "";
717
- return i.target = B(s), i;
720
+ i["@id"] && (i["@id"] = H(i["@id"]));
721
+ const s = q(t, ["@id"]) || "";
722
+ return i.target = H(s), i;
718
723
  }
719
- function M(e, t) {
724
+ function q(e, t) {
720
725
  if (t.length === 0)
721
726
  return;
722
727
  let r = e;
@@ -727,7 +732,7 @@ function M(e, t) {
727
732
  }
728
733
  return r;
729
734
  }
730
- class qe {
735
+ class Ve {
731
736
  constructor(t) {
732
737
  this.config = t;
733
738
  }
@@ -767,28 +772,28 @@ class qe {
767
772
  * Maps a single field
768
773
  */
769
774
  mapField(t, r, i) {
770
- let s = M(t, r.source);
771
- return r.transform && (s = r.transform(s, t, i)), (s == null || s === "") && r.fallback && (typeof r.fallback == "function" ? s = r.fallback(t, i) : s = M(t, [r.fallback])), (s == null || s === "") && (s = r.defaultValue), s;
775
+ let s = q(t, r.source);
776
+ return r.transform && (s = r.transform(s, t, i)), (s == null || s === "") && r.fallback && (typeof r.fallback == "function" ? s = r.fallback(t, i) : s = q(t, [r.fallback])), (s == null || s === "") && (s = r.defaultValue), s;
772
777
  }
773
778
  /**
774
779
  * Maps a container field (array wrapped in LDP container)
775
780
  */
776
781
  mapContainerField(t, r, i) {
777
- let s = M(t, r.source);
782
+ let s = q(t, r.source);
778
783
  if (!s)
779
784
  return null;
780
785
  r.transform && (s = r.transform(s, t, i)), Array.isArray(s) || (s = [s]), r.filter && (s = s.filter(
781
786
  (n, a) => r.filter(n, a, i)
782
787
  ));
783
788
  const o = s.map((n, a) => {
784
- const l = {
789
+ const c = {
785
790
  "@type": r.itemType
786
791
  };
787
- for (const [u, f] of Object.entries(r.itemFields)) {
788
- const p = f(n, a, i);
789
- p !== void 0 && (l[u] = p);
792
+ for (const [d, p] of Object.entries(r.itemFields)) {
793
+ const u = p(n, a, i);
794
+ u !== void 0 && (c[d] = u);
790
795
  }
791
- return l;
796
+ return c;
792
797
  });
793
798
  return {
794
799
  "@type": r.containerType,
@@ -799,14 +804,14 @@ class qe {
799
804
  * Maps a nested object
800
805
  */
801
806
  mapNestedObject(t, r, i) {
802
- const s = M(t, r.source);
807
+ const s = q(t, r.source);
803
808
  if (!s)
804
809
  return null;
805
810
  const o = {};
806
811
  r.type && (o["@type"] = r.type);
807
812
  for (const [n, a] of Object.entries(r.fields)) {
808
- let l;
809
- Array.isArray(a) ? l = M(s, a) : l = this.mapField(s, a, i), l !== void 0 && (o[n] = l);
813
+ let c;
814
+ Array.isArray(a) ? c = q(s, a) : c = this.mapField(s, a, i), c !== void 0 && (o[n] = c);
810
815
  }
811
816
  return Object.keys(o).length > (r.type ? 1 : 0) ? o : null;
812
817
  }
@@ -823,25 +828,25 @@ class qe {
823
828
  return r;
824
829
  }
825
830
  }
826
- function g(e) {
831
+ function y(e) {
827
832
  return e["dcat:distribution"]?.[0] || e.properties || e;
828
833
  }
829
- function Ht(e) {
830
- const t = g(e);
834
+ function Vt(e) {
835
+ const t = y(e);
831
836
  return e["dcat:endpointUrl"] || e["dcat:endpointURL"] || e["http://www.w3.org/ns/dcat#endpointUrl"] || e.endpointUrl || e.endpointURL || // Then check distribution/props level
832
837
  t["http://www.w3.org/ns/dcat#endpointUrl"] || t["dcat:endpointUrl"] || t["dcat:endpointURL"] || t["dcat:accessService"]?.["dcat:endpointURL"] || t.endpointURL || t.endpointUrl || "";
833
838
  }
834
- function He(e) {
835
- const t = g(e);
839
+ function We(e) {
840
+ const t = y(e);
836
841
  return e.contenttype || e.contentType || e["http://www.w3.org/ns/dcat#mediaType"] || e["dcat:mediaType"] || // Then check distribution/props level
837
842
  t.contenttype || t.contentType || t["http://www.w3.org/ns/dcat#mediaType"] || t["dcat:mediaType"] || "";
838
843
  }
839
- const ze = {
844
+ const Ke = {
840
845
  baseFields: {
841
846
  "@id": {
842
847
  source: ["@id"],
843
848
  transform: (e, t, r) => {
844
- const s = B(e || t.id || "") || e?.split("/").pop() || "unknown", o = r.providerParticipantId ? `${encodeURIComponent(r.providerParticipantId)}/` : "";
849
+ const s = H(e || t.id || "") || e?.split("/").pop() || "unknown", o = r.providerParticipantId ? `${encodeURIComponent(r.providerParticipantId)}/` : "";
845
850
  return `${r.temsServiceBase || "https://api.tems.example.com/services/"}${o}${encodeURIComponent(s)}/`;
846
851
  }
847
852
  },
@@ -852,7 +857,7 @@ const ze = {
852
857
  name: {
853
858
  source: [],
854
859
  transform: (e, t) => {
855
- const r = g(t);
860
+ const r = y(t);
856
861
  return (
857
862
  // Source-level fields (EDC catalog returns these at top level)
858
863
  t.name || t.title || t["dct:title"] || t["dcterms:title"] || // EDC namespace fields at source level
@@ -865,7 +870,7 @@ const ze = {
865
870
  description: {
866
871
  source: [],
867
872
  transform: (e, t) => {
868
- const r = g(t);
873
+ const r = y(t);
869
874
  return (
870
875
  // Source-level fields (EDC catalog returns these at top level)
871
876
  t.description || t["dct:description"] || t["dcterms:description"] || t["https://w3id.org/edc/v0.0.1/ns/description"] || t["edc:description"] || // Distribution/props level
@@ -876,89 +881,89 @@ const ze = {
876
881
  long_description: {
877
882
  source: [],
878
883
  transform: (e, t) => {
879
- const r = g(t), i = Array.isArray(r["dcat:keyword"]) ? r["dcat:keyword"] : r["dcat:keyword"] ? [r["dcat:keyword"]] : [], s = r["dct:description"] || r["dcterms:description"] || r.description || "";
884
+ const r = y(t), i = Array.isArray(r["dcat:keyword"]) ? r["dcat:keyword"] : r["dcat:keyword"] ? [r["dcat:keyword"]] : [], s = r["dct:description"] || r["dcterms:description"] || r.description || "";
880
885
  return i.length > 0 ? `Keywords: ${i.join(", ")}` : s;
881
886
  }
882
887
  },
883
888
  url: {
884
889
  source: [],
885
- transform: (e, t) => Ht(t)
890
+ transform: (e, t) => Vt(t)
886
891
  },
887
892
  endpointUrl: {
888
893
  source: [],
889
- transform: (e, t) => Ht(t)
894
+ transform: (e, t) => Vt(t)
890
895
  },
891
896
  contentType: {
892
897
  source: [],
893
- transform: (e, t) => He(t)
898
+ transform: (e, t) => We(t)
894
899
  },
895
900
  activation_status: {
896
901
  source: [],
897
902
  transform: (e, t) => {
898
- const r = g(t);
903
+ const r = y(t);
899
904
  return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
900
905
  }
901
906
  },
902
907
  is_in_app: {
903
908
  source: [],
904
909
  transform: (e, t) => {
905
- const r = g(t);
910
+ const r = y(t);
906
911
  return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
907
912
  }
908
913
  },
909
914
  is_external: {
910
915
  source: [],
911
916
  transform: (e, t) => {
912
- const r = g(t);
917
+ const r = y(t);
913
918
  return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
914
919
  }
915
920
  },
916
921
  is_api: {
917
922
  source: [],
918
923
  transform: (e, t) => {
919
- const r = g(t);
924
+ const r = y(t);
920
925
  return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
921
926
  }
922
927
  },
923
928
  contact_url: {
924
929
  source: [],
925
930
  transform: (e, t) => {
926
- const r = g(t);
931
+ const r = y(t);
927
932
  return r["dcat:endpointDescription"] || r["dct:conformsTo"] || "";
928
933
  }
929
934
  },
930
935
  documentation_url: {
931
936
  source: [],
932
937
  transform: (e, t) => {
933
- const r = g(t);
938
+ const r = y(t);
934
939
  return r["dcat:endpointDescription"] || r["dct:conformsTo"] || "";
935
940
  }
936
941
  },
937
942
  creation_date: {
938
943
  source: [],
939
944
  transform: (e, t) => {
940
- const r = g(t);
945
+ const r = y(t);
941
946
  return r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
942
947
  }
943
948
  },
944
949
  update_date: {
945
950
  source: [],
946
951
  transform: (e, t) => {
947
- const r = g(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
952
+ const r = y(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
948
953
  return r["dct:modified"] || r["dcterms:modified"] || i;
949
954
  }
950
955
  },
951
956
  release_date: {
952
957
  source: [],
953
958
  transform: (e, t) => {
954
- const r = g(t);
959
+ const r = y(t);
955
960
  return r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
956
961
  }
957
962
  },
958
963
  last_update: {
959
964
  source: [],
960
965
  transform: (e, t) => {
961
- const r = g(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
966
+ const r = y(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
962
967
  return r["dct:modified"] || r["dcterms:modified"] || i;
963
968
  }
964
969
  },
@@ -985,7 +990,7 @@ const ze = {
985
990
  containerType: "ldp:Container",
986
991
  itemType: "tems:Category",
987
992
  transform: (e, t) => {
988
- const i = g(t)["dcat:keyword"];
993
+ const i = y(t)["dcat:keyword"];
989
994
  return i ? Array.isArray(i) ? i : [i] : [];
990
995
  },
991
996
  itemFields: {
@@ -998,7 +1003,7 @@ const ze = {
998
1003
  containerType: "ldp:Container",
999
1004
  itemType: "tems:Image",
1000
1005
  transform: (e, t) => {
1001
- const r = g(t), i = [];
1006
+ const r = y(t), i = [];
1002
1007
  return r["foaf:thumbnail"]?.["rdf:resource"] && i.push(r["foaf:thumbnail"]["rdf:resource"]), r["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"] && i.push(
1003
1008
  r["dcterms:creator"]["foaf:thumbnail"]["rdf:resource"]
1004
1009
  ), i;
@@ -1028,12 +1033,12 @@ const ze = {
1028
1033
  },
1029
1034
  name: {
1030
1035
  source: [],
1031
- transform: (e, t, r) => g(t)["dcterms:creator"]?.["foaf:name"] || r.providerName || ""
1036
+ transform: (e, t, r) => y(t)["dcterms:creator"]?.["foaf:name"] || r.providerName || ""
1032
1037
  },
1033
1038
  image: {
1034
1039
  source: [],
1035
1040
  transform: (e, t, r) => {
1036
- const s = g(t)["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"];
1041
+ const s = y(t)["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"];
1037
1042
  if (!s) return;
1038
1043
  const o = s.split("/").pop() || "provider-logo";
1039
1044
  return {
@@ -1060,18 +1065,18 @@ const ze = {
1060
1065
  },
1061
1066
  assetId: {
1062
1067
  source: ["@id"],
1063
- transform: (e, t) => B(e || t.id || "")
1068
+ transform: (e, t) => H(e || t.id || "")
1064
1069
  },
1065
1070
  datasetId: {
1066
1071
  source: ["@id"],
1067
- transform: (e, t) => B(e || t.id || "")
1072
+ transform: (e, t) => H(e || t.id || "")
1068
1073
  },
1069
1074
  // Index endpoint URL for index assets - try multiple property variations
1070
1075
  // Priority: source-level dcat:endpointUrl (index endpoint) over props-level dcat:endpointURL (protocol URL)
1071
1076
  indexEndpointUrl: {
1072
1077
  source: [],
1073
1078
  transform: (e, t, r) => {
1074
- const i = g(t);
1079
+ const i = y(t);
1075
1080
  console.log("[DSP Mapping] indexEndpointUrl extraction for:", {
1076
1081
  assetId: t["@id"] || t.id,
1077
1082
  assetName: t.name || i.name || i["dct:title"],
@@ -1091,9 +1096,9 @@ const ze = {
1091
1096
  fallback: (e) => e.hasPolicy,
1092
1097
  transform: (e, t, r) => {
1093
1098
  if (!e) return;
1094
- const i = Be(e, t);
1099
+ const i = ze(e, t);
1095
1100
  if (i) {
1096
- const s = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = B(n["@id"])), n)) : o;
1101
+ const s = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = H(n["@id"])), n)) : o;
1097
1102
  i["odrl:permission"] && (i["odrl:permission"] = s(
1098
1103
  i["odrl:permission"]
1099
1104
  )), i["odrl:prohibition"] && (i["odrl:prohibition"] = s(
@@ -1115,12 +1120,12 @@ const ze = {
1115
1120
  _providerParticipantId: r.providerParticipantId
1116
1121
  })
1117
1122
  };
1118
- var Ve = Object.defineProperty, E = (e, t, r, i) => {
1123
+ var Ge = Object.defineProperty, j = (e, t, r, i) => {
1119
1124
  for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
1120
1125
  (n = e[o]) && (s = n(t, r, s) || s);
1121
- return s && Ve(t, r, s), s;
1126
+ return s && Ge(t, r, s), s;
1122
1127
  };
1123
- class C extends v {
1128
+ class P extends $ {
1124
1129
  constructor() {
1125
1130
  super(...arguments), this.providers = [];
1126
1131
  }
@@ -1129,7 +1134,7 @@ class C extends v {
1129
1134
  }
1130
1135
  async _attach(t, r, i) {
1131
1136
  if (!this.orbit && window.orbit && (this.orbit = window.orbit, r)) {
1132
- if (se({
1137
+ if (ne({
1133
1138
  component: this,
1134
1139
  defaultRoute: t,
1135
1140
  ignoreRouter: i
@@ -1149,7 +1154,7 @@ class C extends v {
1149
1154
  if (!this.storeService && this.participantConnectorUri)
1150
1155
  try {
1151
1156
  const o = `dsp-connector-${this.component.uniq}`, n = {
1152
- type: ue.DataspaceConnector,
1157
+ type: me.DataspaceConnector,
1153
1158
  endpoint: this.participantConnectorUri,
1154
1159
  catalogEndpoint: `${this.participantConnectorUri}/management/v3/catalog/request`,
1155
1160
  contractNegotiationEndpoint: `${this.participantConnectorUri}/management/v3/contractnegotiations`,
@@ -1165,7 +1170,7 @@ class C extends v {
1165
1170
  apiGatewayConfig: this._apiGatewayConfigParsed
1166
1171
  }
1167
1172
  };
1168
- this.storeService = pe.addStore(o, n), this.dspStoreService = this.storeService, window.dspStore || (window.dspStore = this.storeService);
1173
+ this.storeService = ge.addStore(o, n), this.dspStoreService = this.storeService, window.dspStore || (window.dspStore = this.storeService);
1169
1174
  } catch (o) {
1170
1175
  console.error("DSP Store initialization error:", o);
1171
1176
  }
@@ -1180,13 +1185,13 @@ class C extends v {
1180
1185
  if (!this.storeService || !this.providers || this.providers.length === 0)
1181
1186
  return console.warn("DSP store or providers not configured"), [];
1182
1187
  try {
1183
- const t = "https://api.tems.example.com/services/", r = new qe(ze), i = this.providers.map(async (n) => {
1188
+ const t = "https://api.tems.example.com/services/", r = new Ve(Ke), i = this.providers.map(async (n) => {
1184
1189
  try {
1185
1190
  const a = await this.storeService.getCatalog(n.address);
1186
1191
  if (a?.["dcat:dataset"]) {
1187
- const l = a["dcat:dataset"], u = Array.isArray(l) ? l : [l], f = a.participantId || a["edc:participantId"] || a["https://w3id.org/edc/v0.0.1/ns/participantId"], p = n.participantId || f;
1188
- return u.map((b) => {
1189
- const $ = {
1192
+ const c = a["dcat:dataset"], d = Array.isArray(c) ? c : [c], p = a.participantId || a["edc:participantId"] || a["https://w3id.org/edc/v0.0.1/ns/participantId"], u = n.participantId || p;
1193
+ return d.map((g) => {
1194
+ const w = {
1190
1195
  temsServiceBase: t,
1191
1196
  temsCategoryBase: t.replace(
1192
1197
  "/services/",
@@ -1201,9 +1206,9 @@ class C extends v {
1201
1206
  providerName: n.name,
1202
1207
  providerAddress: n.address,
1203
1208
  providerColor: n.color,
1204
- providerParticipantId: p
1209
+ providerParticipantId: u
1205
1210
  };
1206
- return r.map(b, $);
1211
+ return r.map(g, w);
1207
1212
  });
1208
1213
  }
1209
1214
  return [];
@@ -1223,64 +1228,83 @@ class C extends v {
1223
1228
  return this.storeService;
1224
1229
  }
1225
1230
  }
1226
- E([
1227
- y({ attribute: "participant-connector-uri", reflect: !0 })
1228
- ], C.prototype, "participantConnectorUri");
1229
- E([
1230
- y({ attribute: "participant-id", reflect: !0 })
1231
- ], C.prototype, "participantId");
1232
- E([
1233
- y({ attribute: "participant-api-key", reflect: !0 })
1234
- ], C.prototype, "participantApiKey");
1235
- E([
1236
- y({ attribute: "api-gateway-config", reflect: !0 })
1237
- ], C.prototype, "apiGatewayConfig");
1238
- E([
1231
+ j([
1232
+ v({ attribute: "participant-connector-uri", reflect: !0 })
1233
+ ], P.prototype, "participantConnectorUri");
1234
+ j([
1235
+ v({ attribute: "participant-id", reflect: !0 })
1236
+ ], P.prototype, "participantId");
1237
+ j([
1238
+ v({ attribute: "participant-api-key", reflect: !0 })
1239
+ ], P.prototype, "participantApiKey");
1240
+ j([
1241
+ v({ attribute: "api-gateway-config", reflect: !0 })
1242
+ ], P.prototype, "apiGatewayConfig");
1243
+ j([
1239
1244
  m()
1240
- ], C.prototype, "storeService");
1241
- E([
1245
+ ], P.prototype, "storeService");
1246
+ j([
1242
1247
  m()
1243
- ], C.prototype, "dspStoreService");
1244
- E([
1248
+ ], P.prototype, "dspStoreService");
1249
+ j([
1245
1250
  m()
1246
- ], C.prototype, "_apiGatewayConfigParsed");
1247
- E([
1248
- y({ type: Array })
1249
- ], C.prototype, "providers");
1250
- const We = (e, { keywords: t = [], attributes: r = ["dataSrc"] } = {}) => {
1251
+ ], P.prototype, "_apiGatewayConfigParsed");
1252
+ j([
1253
+ v({ type: Array })
1254
+ ], P.prototype, "providers");
1255
+ const oe = (e, { keywords: t = [], attributes: r = ["dataSrc"] } = {}) => {
1251
1256
  const i = () => {
1252
- t && r && (e.caching === void 0 && (e.caching = 0), e.hasCachedDatas === void 0 && (e.hasCachedDatas = !1), e.cacheListener = (s) => {
1253
- const o = s.detail.id || s.detail.resource["@id"];
1254
- if (t.some((n) => o?.includes(n))) {
1255
- for (const n of r)
1256
- e[n] && o !== e[n] && window.sibStore.clearCache(e[n]);
1257
- e.caching++, e.hasCachedDatas = !1, e.requestUpdate();
1258
- }
1259
- }, e._subscriptions.add(["save", e.cacheListener]), e._subscribe());
1257
+ if (!t.length || !r.length) return;
1258
+ e.caching === void 0 && (e.caching = 0), e.hasCachedDatas === void 0 && (e.hasCachedDatas = !1);
1259
+ let s = !1;
1260
+ const o = new Set(t);
1261
+ e.cacheListener = (n) => {
1262
+ const a = n.detail.id || n.detail.resource?.["@id"];
1263
+ if (!a || !Array.from(o).some((p) => {
1264
+ const u = a.indexOf(p);
1265
+ return u !== -1 && (u === 0 || a[u - 1] === "/");
1266
+ })) return;
1267
+ let d = !1;
1268
+ for (const p of r)
1269
+ e[p] && a !== e[p] && (window.sibStore.clearCache(e[p]), d = !0);
1270
+ d && (e.caching++, e.hasCachedDatas = !1, s || (s = !0, requestAnimationFrame(() => {
1271
+ e.requestUpdate(), s = !1;
1272
+ })));
1273
+ }, e._subscriptions.add(["save", e.cacheListener]), e._subscribe();
1260
1274
  };
1261
- document.readyState !== "complete" ? document.addEventListener("DOMContentLoaded", i) : i();
1275
+ if (document.readyState !== "complete") {
1276
+ const s = () => {
1277
+ document.readyState === "complete" && (document.removeEventListener("readystatechange", s), i());
1278
+ };
1279
+ document.addEventListener("readystatechange", s);
1280
+ } else
1281
+ i();
1262
1282
  };
1263
- function Ke() {
1264
- return Math.random().toString(16).slice(2);
1283
+ function Je() {
1284
+ return `${Date.now()}-${Math.random().toString(16).slice(2)}`;
1265
1285
  }
1266
- const se = ({
1286
+ const ne = ({
1267
1287
  component: e,
1268
1288
  defaultRoute: t = !1,
1269
1289
  ignoreRouter: r = !1
1270
1290
  }) => {
1271
- if (e.uniq || (e.uniq = Ke(), t && !e.route && !r && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !r) {
1291
+ if (e.uniq || (e.uniq = Je(), t && !e.route && !r && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !r) {
1272
1292
  e.route || (e.route = e.uniq, window.orbit && (e.route = window.orbit.getRoute(e.uniq))), e.noRouter = !0;
1273
1293
  let i = document.querySelector("solid-router");
1274
- for (; i; )
1275
- e.noRouter = !1, e.currentRoute = i.currentRouteName, e.currentResource = window.sibRouter.currentResource, i = document.querySelector(
1276
- `[data-view="${i.currentRouteName}"] solid-router`
1277
- );
1294
+ const s = window.sibRouter.currentResource;
1295
+ for (; i; ) {
1296
+ e.noRouter = !1, e.currentRoute = i.currentRouteName, e.currentResource = s;
1297
+ const o = `[data-view="${i.currentRouteName}"] solid-router`;
1298
+ i = document.querySelector(o);
1299
+ }
1278
1300
  e.navigationListener = () => {
1279
- let s = document.querySelector("solid-router");
1280
- for (; s; )
1281
- e.noRouter = !1, e.currentRoute = s.currentRouteName, e.currentResource = window.sibRouter.currentResource, s = document.querySelector(
1282
- `[data-view="${s.currentRouteName}"] solid-router`
1283
- );
1301
+ let o = document.querySelector("solid-router");
1302
+ const n = window.sibRouter.currentResource;
1303
+ for (; o; ) {
1304
+ e.noRouter = !1, e.currentRoute = o.currentRouteName, e.currentResource = n;
1305
+ const a = `[data-view="${o.currentRouteName}"] solid-router`;
1306
+ o = document.querySelector(a);
1307
+ }
1284
1308
  e.requestUpdate();
1285
1309
  }, e._subscriptions.add(["navigate", e.navigationListener]);
1286
1310
  }
@@ -1293,10 +1317,10 @@ const se = ({
1293
1317
  document.removeEventListener(i[0], i[1]);
1294
1318
  }, e._subscribe();
1295
1319
  };
1296
- function zt(e) {
1320
+ function Wt(e) {
1297
1321
  return !Number.isNaN(new Date(e).getTime());
1298
1322
  }
1299
- const vt = (e, t, r) => {
1323
+ const bt = (e, t, r) => {
1300
1324
  if (e == null)
1301
1325
  return !1;
1302
1326
  const i = t.split(".");
@@ -1306,38 +1330,26 @@ const vt = (e, t, r) => {
1306
1330
  s = s[o];
1307
1331
  else
1308
1332
  return !1;
1309
- if (zt(s)) {
1333
+ if (Wt(s)) {
1310
1334
  if (new Date(s) > r)
1311
1335
  return !0;
1312
1336
  } else
1313
1337
  return !1;
1314
1338
  return Array.isArray(e) ? e.some(
1315
- (o) => vt(o, t, r)
1316
- ) : typeof e == "object" ? Object.entries(e).some(([o, n]) => o === t && zt(n) ? !1 : vt(n, t, r)) : !1;
1317
- }, Ge = (e, t, r) => {
1339
+ (o) => bt(o, t, r)
1340
+ ) : typeof e == "object" ? Object.entries(e).some(([o, n]) => o === t && Wt(n) ? !1 : bt(n, t, r)) : !1;
1341
+ }, Ze = (e, t, r) => {
1318
1342
  if (!t || !r || typeof r != "string")
1319
1343
  return e;
1320
1344
  const i = new Date(r);
1321
1345
  return Number.isNaN(i.getTime()) ? (console.warn(`Invalid threshold date provided: ${r}`), e) : e.filter(
1322
- (s) => vt(s, t, i)
1346
+ (s) => bt(s, t, i)
1323
1347
  );
1324
- }, Je = (e, t, r) => !t || !r ? e : e.filter((i) => {
1325
- let s = i;
1326
- const o = t.split(".");
1327
- for (const a of o)
1328
- if (s && typeof s == "object" && a in s)
1329
- s = s[a];
1330
- else
1331
- return !1;
1332
- const n = s;
1333
- return n ? typeof n == "object" && !Array.isArray(n) && n !== null && "@id" in n && n["@id"] === r ? !0 : Array.isArray(n) ? n.some(
1334
- (a) => typeof a == "object" && a !== null && "@id" in a && a["@id"] === r
1335
- ) : !1 : !1;
1336
- });
1337
- function Ze(e) {
1348
+ };
1349
+ function Xe(e) {
1338
1350
  return typeof e != "string" && typeof e != "number" && !(e instanceof Date) ? !1 : !Number.isNaN(new Date(e).getTime());
1339
1351
  }
1340
- const bt = (e, t, r, i) => {
1352
+ const $t = (e, t, r, i) => {
1341
1353
  if (e == null)
1342
1354
  return !1;
1343
1355
  const s = t.split(".");
@@ -1350,25 +1362,41 @@ const bt = (e, t, r, i) => {
1350
1362
  if (typeof o == "number") {
1351
1363
  if (typeof r == "number" && typeof i == "number" && r <= o && o <= i)
1352
1364
  return !0;
1353
- } else if (Ze(o)) {
1365
+ } else if (Xe(o)) {
1354
1366
  const n = new Date(o);
1355
1367
  if (r instanceof Date && i instanceof Date && r <= n && n <= i)
1356
1368
  return !0;
1357
1369
  } else
1358
1370
  return !1;
1359
1371
  return Array.isArray(e) ? e.some(
1360
- (n) => bt(n, t, r, i)
1372
+ (n) => $t(n, t, r, i)
1361
1373
  ) : typeof e == "object" ? Object.entries(e).some(
1362
- ([n, a]) => bt(a, t, r, i)
1374
+ ([n, a]) => $t(a, t, r, i)
1363
1375
  ) : !1;
1364
- }, Xe = (e, t, r) => {
1376
+ }, Qe = (e, t, r) => {
1377
+ if (!t || !r)
1378
+ return e;
1379
+ const i = t.split(".");
1380
+ return e.filter((s) => {
1381
+ let o = s;
1382
+ for (const a of i)
1383
+ if (o && typeof o == "object" && a in o)
1384
+ o = o[a];
1385
+ else
1386
+ return !1;
1387
+ const n = o;
1388
+ return n ? typeof n == "object" && !Array.isArray(n) && n !== null && "@id" in n && n["@id"] === r ? !0 : Array.isArray(n) ? n.some(
1389
+ (a) => typeof a == "object" && a !== null && "@id" in a && a["@id"] === r
1390
+ ) : !1 : !1;
1391
+ });
1392
+ }, Ye = (e, t, r) => {
1365
1393
  if (!t || !r || typeof r != "string")
1366
1394
  return e;
1367
1395
  const [i, s] = r.split("/").map(Number);
1368
1396
  return Number.isNaN(i) || Number.isNaN(s) ? e : i > s ? (console.warn(`Start number is after end number in interval: ${r}`), e) : e.filter(
1369
- (o) => bt(o, t, i, s)
1397
+ (o) => $t(o, t, i, s)
1370
1398
  );
1371
- }, $t = (e, t, r) => {
1399
+ }, _t = (e, t, r) => {
1372
1400
  if (e == null)
1373
1401
  return 0;
1374
1402
  if (typeof e != "object") {
@@ -1384,7 +1412,7 @@ const bt = (e, t, r, i) => {
1384
1412
  for (const o of e)
1385
1413
  if (s = Math.max(
1386
1414
  s,
1387
- $t(
1415
+ _t(
1388
1416
  o,
1389
1417
  t
1390
1418
  )
@@ -1395,33 +1423,35 @@ const bt = (e, t, r, i) => {
1395
1423
  for (const s of Object.values(e))
1396
1424
  if (i = Math.max(
1397
1425
  i,
1398
- $t(
1426
+ _t(
1399
1427
  s,
1400
1428
  t
1401
1429
  )
1402
1430
  ), i === 2) break;
1403
1431
  return i;
1404
- }, Qe = (e, t, r) => {
1432
+ }, tr = (e, t, r) => {
1405
1433
  if (!t || !r || r.trim() === "")
1406
1434
  return e;
1407
- const i = r.toLowerCase(), o = e.map((n) => {
1408
- let a = n;
1409
- const l = t.split(".");
1410
- for (const f of l)
1411
- if (a && typeof a == "object" && f in a)
1412
- a = a[f];
1435
+ const i = r.toLowerCase(), s = t.split(".");
1436
+ return e.map((o) => {
1437
+ let n = o;
1438
+ for (const c of s)
1439
+ if (n && typeof n == "object" && c in n)
1440
+ n = n[c];
1413
1441
  else {
1414
- a = null;
1442
+ n = null;
1415
1443
  break;
1416
1444
  }
1417
- let u = 0;
1418
- return a && (u = $t(a, i)), { obj: n, score: u };
1419
- }).filter((n) => n.score > 0);
1420
- return o.sort((n, a) => a.score - n.score), o.map((n) => n.obj);
1421
- }, Ye = (e, t) => t ? e.filter((r) => {
1445
+ let a = 0;
1446
+ return n && (a = _t(
1447
+ n,
1448
+ i
1449
+ )), { obj: o, score: a };
1450
+ }).filter((o) => o.score > 0).sort((o, n) => n.score - o.score).map((o) => o.obj);
1451
+ }, er = (e, t) => t ? e.filter((r) => {
1422
1452
  const i = r["@type"];
1423
1453
  return i ? typeof i == "string" ? i === t : Array.isArray(i) ? i.some((s) => s === t) : !1 : !1;
1424
- }) : e, _t = (e, t, r) => {
1454
+ }) : e, wt = (e, t, r) => {
1425
1455
  if (e == null)
1426
1456
  return 0;
1427
1457
  if (typeof e != "object") {
@@ -1437,7 +1467,7 @@ const bt = (e, t, r, i) => {
1437
1467
  for (const o of e)
1438
1468
  if (s = Math.max(
1439
1469
  s,
1440
- _t(o, t)
1470
+ wt(o, t)
1441
1471
  ), s === 4) break;
1442
1472
  return s;
1443
1473
  }
@@ -1445,44 +1475,62 @@ const bt = (e, t, r, i) => {
1445
1475
  for (const [s, o] of Object.entries(e))
1446
1476
  if (i = Math.max(
1447
1477
  i,
1448
- _t(o, t, s)
1478
+ wt(o, t, s)
1449
1479
  ), i === 4) break;
1450
1480
  return i;
1451
- }, ie = (e, t) => {
1481
+ }, ae = (e, t) => {
1452
1482
  if (!t || t.trim() === "")
1453
1483
  return e;
1454
- const r = t.toLowerCase(), s = e.map((o) => ({
1455
- obj: o,
1456
- score: _t(o, r)
1457
- })).filter((o) => o.score > 0);
1458
- return s.sort((o, n) => n.score - o.score), s.map((o) => o.obj);
1459
- }, Vt = (e, t) => {
1484
+ const r = t.toLowerCase();
1485
+ return e.map((i) => ({
1486
+ obj: i,
1487
+ score: wt(i, r)
1488
+ })).filter((i) => i.score > 0).sort((i, s) => s.score - i.score).map((i) => i.obj);
1489
+ }, D = (e, t) => {
1460
1490
  let r = e;
1461
- for (let i = 0; i < t.length && (r && t[i] in r); i++)
1462
- r = r[t[i]];
1491
+ for (const i of t)
1492
+ if (r && i in r)
1493
+ r = r[i];
1494
+ else
1495
+ return;
1463
1496
  return r;
1464
- }, P = (e, t, r = "asc") => e.sort((i, s) => {
1465
- let o = i, n = s;
1466
- Array.isArray(t) ? (o = Vt(i, t), n = Vt(s, t)) : (o = i[t], n = s[t]);
1467
- let a = 0;
1468
- if (typeof o == "number" && typeof n == "number")
1469
- a = o - n;
1470
- else if (typeof o == "string" && typeof n == "string")
1471
- a = o.localeCompare(n);
1472
- else if (o instanceof Date && n instanceof Date)
1473
- a = o.getTime() - n.getTime();
1474
- else
1497
+ }, S = (e, t, r = "asc") => {
1498
+ const i = Array.isArray(t) ? t : [t], s = r !== "asc", o = [...e], a = (() => {
1499
+ const c = D(o[0], i);
1500
+ if (typeof c == "number")
1501
+ return (d, p) => {
1502
+ const u = D(d, i), g = D(p, i);
1503
+ return u == null ? g == null ? 0 : 1 : g == null ? -1 : u - g;
1504
+ };
1505
+ if (typeof c == "string")
1506
+ return (d, p) => {
1507
+ const u = D(d, i), g = D(p, i);
1508
+ return u == null ? g == null ? 0 : 1 : g == null ? -1 : u.localeCompare(g);
1509
+ };
1510
+ if (c instanceof Date)
1511
+ return (d, p) => {
1512
+ const u = D(d, i), g = D(p, i);
1513
+ return u == null ? g == null ? 0 : 1 : g == null ? -1 : u.getTime() - g.getTime();
1514
+ };
1475
1515
  throw new TypeError(`Unsupported data type for key "${t}"`);
1476
- return r === "asc" ? a : -a;
1477
- }), L = (e, t = {
1516
+ })();
1517
+ return o.sort((c, d) => {
1518
+ const p = a(c, d);
1519
+ return s ? -p : p;
1520
+ }), o;
1521
+ }, Kt = /* @__PURE__ */ new Map(), rr = (e) => {
1522
+ const t = JSON.stringify(e);
1523
+ let r = Kt.get(t);
1524
+ return r || (r = new Intl.DateTimeFormat(void 0, e), Kt.set(t, r)), r;
1525
+ }, I = (e, t = {
1478
1526
  day: "2-digit",
1479
1527
  month: "2-digit",
1480
1528
  year: "2-digit"
1481
1529
  }) => {
1482
1530
  if (!e) return "";
1483
- const i = (typeof e == "string" ? new Date(e) : e).toLocaleString(void 0, t);
1484
- return typeof e == "string" && i === "Invalid Date" ? e : i;
1485
- }, D = (e, t = !1) => {
1531
+ const r = typeof e == "string" ? new Date(e) : e, s = rr(t).format(r);
1532
+ return typeof e == "string" && s === "Invalid Date" ? e : s;
1533
+ }, L = (e, t = !1) => {
1486
1534
  window.dispatchEvent(
1487
1535
  new CustomEvent("requestNavigation", {
1488
1536
  detail: {
@@ -1491,46 +1539,46 @@ const bt = (e, t, r, i) => {
1491
1539
  }
1492
1540
  })
1493
1541
  );
1494
- }, tr = "https://cdn.startinblox.com/owl/ds4go.jsonld#", er = { "@id": "ds4go:link", "@type": "@id" }, rr = { "@id": "ds4go:enclosure", "@type": "@id" }, sr = { "@id": "ds4go:url", "@type": "@id" }, Wt = {
1495
- ds4go: tr,
1496
- link: er,
1497
- enclosure: rr,
1498
- url: sr
1542
+ }, sr = "https://cdn.startinblox.com/owl/ds4go.jsonld#", ir = { "@id": "ds4go:link", "@type": "@id" }, or = { "@id": "ds4go:enclosure", "@type": "@id" }, nr = { "@id": "ds4go:url", "@type": "@id" }, Gt = {
1543
+ ds4go: sr,
1544
+ link: ir,
1545
+ enclosure: or,
1546
+ url: nr
1499
1547
  };
1500
- const wt = "lit-localize-status";
1501
- const ir = (e, ...t) => ({
1548
+ const At = "lit-localize-status";
1549
+ const ar = (e, ...t) => ({
1502
1550
  strTag: !0,
1503
1551
  strings: e,
1504
1552
  values: t
1505
- }), x = ir, or = (e) => typeof e != "string" && "strTag" in e, oe = (e, t, r) => {
1553
+ }), E = ar, cr = (e) => typeof e != "string" && "strTag" in e, ce = (e, t, r) => {
1506
1554
  let i = e[0];
1507
1555
  for (let s = 1; s < e.length; s++)
1508
1556
  i += t[r ? r[s - 1] : s - 1], i += e[s];
1509
1557
  return i;
1510
1558
  };
1511
- const ne = ((e) => or(e) ? oe(e.strings, e.values) : e);
1512
- let h = ne, Kt = !1;
1513
- function nr(e) {
1514
- if (Kt)
1559
+ const le = ((e) => cr(e) ? ce(e.strings, e.values) : e);
1560
+ let h = le, Jt = !1;
1561
+ function lr(e) {
1562
+ if (Jt)
1515
1563
  throw new Error("lit-localize can only be configured once");
1516
- h = e, Kt = !0;
1564
+ h = e, Jt = !0;
1517
1565
  }
1518
- class ar {
1566
+ class dr {
1519
1567
  constructor(t) {
1520
1568
  this.__litLocalizeEventHandler = (r) => {
1521
1569
  r.detail.status === "ready" && this.host.requestUpdate();
1522
1570
  }, this.host = t;
1523
1571
  }
1524
1572
  hostConnected() {
1525
- window.addEventListener(wt, this.__litLocalizeEventHandler);
1573
+ window.addEventListener(At, this.__litLocalizeEventHandler);
1526
1574
  }
1527
1575
  hostDisconnected() {
1528
- window.removeEventListener(wt, this.__litLocalizeEventHandler);
1576
+ window.removeEventListener(At, this.__litLocalizeEventHandler);
1529
1577
  }
1530
1578
  }
1531
- const cr = (e) => e.addController(new ar(e)), lr = cr;
1532
- const dr = () => (e, t) => (e.addInitializer(lr), e);
1533
- class ae {
1579
+ const ur = (e) => e.addController(new dr(e)), hr = ur;
1580
+ const pr = () => (e, t) => (e.addInitializer(hr), e);
1581
+ class de {
1534
1582
  constructor() {
1535
1583
  this.settled = !1, this.promise = new Promise((t, r) => {
1536
1584
  this._resolve = t, this._reject = r;
@@ -1543,28 +1591,28 @@ class ae {
1543
1591
  this.settled = !0, this._reject(t);
1544
1592
  }
1545
1593
  }
1546
- const A = [];
1594
+ const C = [];
1547
1595
  for (let e = 0; e < 256; e++)
1548
- A[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
1549
- function hr(e) {
1550
- let t = 0, r = 8997, i = 0, s = 33826, o = 0, n = 40164, a = 0, l = 52210;
1551
- for (let u = 0; u < e.length; u++)
1552
- r ^= e.charCodeAt(u), t = r * 435, i = s * 435, o = n * 435, a = l * 435, o += r << 8, a += s << 8, i += t >>> 16, r = t & 65535, o += i >>> 16, s = i & 65535, l = a + (o >>> 16) & 65535, n = o & 65535;
1553
- return A[l >> 8] + A[l & 255] + A[n >> 8] + A[n & 255] + A[s >> 8] + A[s & 255] + A[r >> 8] + A[r & 255];
1596
+ C[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
1597
+ function fr(e) {
1598
+ let t = 0, r = 8997, i = 0, s = 33826, o = 0, n = 40164, a = 0, c = 52210;
1599
+ for (let d = 0; d < e.length; d++)
1600
+ r ^= e.charCodeAt(d), t = r * 435, i = s * 435, o = n * 435, a = c * 435, o += r << 8, a += s << 8, i += t >>> 16, r = t & 65535, o += i >>> 16, s = i & 65535, c = a + (o >>> 16) & 65535, n = o & 65535;
1601
+ return C[c >> 8] + C[c & 255] + C[n >> 8] + C[n & 255] + C[s >> 8] + C[s & 255] + C[r >> 8] + C[r & 255];
1554
1602
  }
1555
- const ur = "", pr = "h", fr = "s";
1556
- function mr(e, t) {
1557
- return (t ? pr : fr) + hr(typeof e == "string" ? e : e.join(ur));
1603
+ const mr = "", gr = "h", yr = "s";
1604
+ function vr(e, t) {
1605
+ return (t ? gr : yr) + fr(typeof e == "string" ? e : e.join(mr));
1558
1606
  }
1559
- const Gt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new Map();
1560
- function gr(e, t, r) {
1607
+ const Zt = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new Map();
1608
+ function br(e, t, r) {
1561
1609
  if (e) {
1562
- const i = r?.id ?? yr(t), s = e[i];
1610
+ const i = r?.id ?? $r(t), s = e[i];
1563
1611
  if (s) {
1564
1612
  if (typeof s == "string")
1565
1613
  return s;
1566
1614
  if ("strTag" in s)
1567
- return oe(
1615
+ return ce(
1568
1616
  s.strings,
1569
1617
  // Cast `template` because its type wasn't automatically narrowed (but
1570
1618
  // we know it must be the same type as `localized`).
@@ -1572,57 +1620,57 @@ function gr(e, t, r) {
1572
1620
  s.values
1573
1621
  );
1574
1622
  {
1575
- let o = Gt.get(s);
1576
- return o === void 0 && (o = s.values, Gt.set(s, o)), {
1623
+ let o = Zt.get(s);
1624
+ return o === void 0 && (o = s.values, Zt.set(s, o)), {
1577
1625
  ...s,
1578
1626
  values: o.map((n) => t.values[n])
1579
1627
  };
1580
1628
  }
1581
1629
  }
1582
1630
  }
1583
- return ne(t);
1631
+ return le(t);
1584
1632
  }
1585
- function yr(e) {
1633
+ function $r(e) {
1586
1634
  const t = typeof e == "string" ? e : e.strings;
1587
- let r = Jt.get(t);
1588
- return r === void 0 && (r = mr(t, typeof e != "string" && !("strTag" in e)), Jt.set(t, r)), r;
1635
+ let r = Xt.get(t);
1636
+ return r === void 0 && (r = vr(t, typeof e != "string" && !("strTag" in e)), Xt.set(t, r)), r;
1589
1637
  }
1590
- function gt(e) {
1591
- window.dispatchEvent(new CustomEvent(wt, { detail: e }));
1638
+ function yt(e) {
1639
+ window.dispatchEvent(new CustomEvent(At, { detail: e }));
1592
1640
  }
1593
- let at = "", yt, ce, ct, At, le, k = new ae();
1594
- k.resolve();
1595
- let st = 0;
1596
- const vr = (e) => (nr(((t, r) => gr(le, t, r))), at = ce = e.sourceLocale, ct = new Set(e.targetLocales), ct.add(e.sourceLocale), At = e.loadLocale, { getLocale: br, setLocale: $r }), br = () => at, $r = (e) => {
1597
- if (e === (yt ?? at))
1598
- return k.promise;
1599
- if (!ct || !At)
1641
+ let lt = "", vt, ue, dt, Ct, he, O = new de();
1642
+ O.resolve();
1643
+ let ot = 0;
1644
+ const _r = (e) => (lr(((t, r) => br(he, t, r))), lt = ue = e.sourceLocale, dt = new Set(e.targetLocales), dt.add(e.sourceLocale), Ct = e.loadLocale, { getLocale: wr, setLocale: Ar }), wr = () => lt, Ar = (e) => {
1645
+ if (e === (vt ?? lt))
1646
+ return O.promise;
1647
+ if (!dt || !Ct)
1600
1648
  throw new Error("Internal error");
1601
- if (!ct.has(e))
1649
+ if (!dt.has(e))
1602
1650
  throw new Error("Invalid locale code");
1603
- st++;
1604
- const t = st;
1605
- return yt = e, k.settled && (k = new ae()), gt({ status: "loading", loadingLocale: e }), (e === ce ? (
1651
+ ot++;
1652
+ const t = ot;
1653
+ return vt = e, O.settled && (O = new de()), yt({ status: "loading", loadingLocale: e }), (e === ue ? (
1606
1654
  // We could switch to the source locale synchronously, but we prefer to
1607
1655
  // queue it on a microtask so that switching locales is consistently
1608
1656
  // asynchronous.
1609
1657
  Promise.resolve({ templates: void 0 })
1610
- ) : At(e)).then((i) => {
1611
- st === t && (at = e, yt = void 0, le = i.templates, gt({ status: "ready", readyLocale: e }), k.resolve());
1658
+ ) : Ct(e)).then((i) => {
1659
+ ot === t && (lt = e, vt = void 0, he = i.templates, yt({ status: "ready", readyLocale: e }), O.resolve());
1612
1660
  }, (i) => {
1613
- st === t && (gt({
1661
+ ot === t && (yt({
1614
1662
  status: "error",
1615
1663
  errorLocale: e,
1616
1664
  errorMessage: i.toString()
1617
- }), k.reject(i));
1618
- }), k.promise;
1665
+ }), O.reject(i));
1666
+ }), O.promise;
1619
1667
  };
1620
- var _r = Object.defineProperty, wr = Object.getOwnPropertyDescriptor, Ut = (e, t, r, i) => {
1621
- for (var s = i > 1 ? void 0 : i ? wr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1668
+ var Cr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, Dt = (e, t, r, i) => {
1669
+ for (var s = i > 1 ? void 0 : i ? Sr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1622
1670
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1623
- return i && s && _r(t, r, s), s;
1671
+ return i && s && Cr(t, r, s), s;
1624
1672
  };
1625
- let X = class extends Rt {
1673
+ let Q = class extends kt {
1626
1674
  constructor() {
1627
1675
  super(...arguments), this.search = [], this._displayObjects = [];
1628
1676
  }
@@ -1643,7 +1691,7 @@ let X = class extends Rt {
1643
1691
  switch (n.type) {
1644
1692
  case "interval":
1645
1693
  o.push(
1646
- Xe(
1694
+ Ye(
1647
1695
  i,
1648
1696
  n.name,
1649
1697
  n.value
@@ -1652,7 +1700,7 @@ let X = class extends Rt {
1652
1700
  break;
1653
1701
  case "dateAfter":
1654
1702
  o.push(
1655
- Ge(
1703
+ Ze(
1656
1704
  i,
1657
1705
  n.name,
1658
1706
  n.value
@@ -1661,7 +1709,7 @@ let X = class extends Rt {
1661
1709
  break;
1662
1710
  case "matchId":
1663
1711
  o.push(
1664
- Je(
1712
+ Qe(
1665
1713
  i,
1666
1714
  n.name,
1667
1715
  n.value
@@ -1670,12 +1718,12 @@ let X = class extends Rt {
1670
1718
  break;
1671
1719
  case "matchType":
1672
1720
  o.push(
1673
- Ye(i, n.value)
1721
+ er(i, n.value)
1674
1722
  );
1675
1723
  break;
1676
1724
  case "exact":
1677
1725
  o.push(
1678
- Qe(
1726
+ tr(
1679
1727
  i,
1680
1728
  n.name,
1681
1729
  n.value
@@ -1684,7 +1732,7 @@ let X = class extends Rt {
1684
1732
  break;
1685
1733
  default:
1686
1734
  o.push(
1687
- ie(i, n.value)
1735
+ ae(i, n.value)
1688
1736
  );
1689
1737
  }
1690
1738
  i = [...o.flat()];
@@ -1702,7 +1750,7 @@ let X = class extends Rt {
1702
1750
  ));
1703
1751
  }
1704
1752
  render() {
1705
- return !this._displayObjects || this._displayObjects.length === 0 ? c : d`<div class="card-grid card-grid-vertical">
1753
+ return !this._displayObjects || this._displayObjects.length === 0 ? l : f`<div class="card-grid card-grid-vertical">
1706
1754
  ${this._displayObjects.map((e) => {
1707
1755
  const t = [
1708
1756
  {
@@ -1710,20 +1758,20 @@ let X = class extends Rt {
1710
1758
  type: "information"
1711
1759
  }
1712
1760
  ];
1713
- return d`<tems-card-catalog
1714
- .object=${c}
1761
+ return f`<tems-card-catalog
1762
+ .object=${l}
1715
1763
  type=${"bill-image"}
1716
1764
  .tags=${t}
1717
- .header=${e.name || c}
1718
- .content=${e.description || c}
1719
- date=${e.updated_at || c}
1765
+ .header=${e.name || l}
1766
+ .content=${e.description || l}
1767
+ date=${e.updated_at || l}
1720
1768
  @click=${() => this._handleClickEvent(e)}
1721
1769
  ></tems-card-catalog>`;
1722
1770
  })}
1723
1771
  </div>`;
1724
1772
  }
1725
1773
  };
1726
- X.styles = Y`
1774
+ Q.styles = tt`
1727
1775
  .card-grid {
1728
1776
  display: flex;
1729
1777
  flex-direction: row;
@@ -1741,22 +1789,22 @@ X.styles = Y`
1741
1789
  cursor: pointer;
1742
1790
  }
1743
1791
  `;
1744
- Ut([
1792
+ Dt([
1745
1793
  m()
1746
- ], X.prototype, "search", 2);
1747
- Ut([
1794
+ ], Q.prototype, "search", 2);
1795
+ Dt([
1748
1796
  m()
1749
- ], X.prototype, "_displayObjects", 2);
1750
- X = Ut([
1751
- V("ds4go-fact-bundle-holder")
1752
- ], X);
1753
- const Ar = ".flex{display:flex}.flex.flex-row{flex-direction:row}.flex.flex-column{flex-direction:column}.flex.wrap{flex-wrap:wrap}.flex.flex-1{flex:1}.flex .half,.flex.half{flex-basis:50%}.flex.justify-content-center{justify-content:center}.flex.justify-content-space-between{justify-content:space-between}.flex.align-items-center{align-items:center}.flex.align-items-flex-start{align-items:flex-start}.flex .align-items-flex-end{align-items:flex-end}.full-width{width:100%}.modal{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg);color:var(--color-text-body);display:flex;flex-direction:column;font-family:var(--font-family-body);font-size:var(--typography-size-body-md);font-style:normal;font-weight:var(--font-weight-regular);gap:var(--scale-600);height:90vh;letter-spacing:var(--font-letter-spacing-default);line-height:var(--line-height-body-md);padding:var(--scale-600) var(--scale-900);width:90vw}.modal .topbar{display:flex;flex-direction:row;gap:var(--scale-400);width:100%}.modal .topbar tems-button:nth-child(2){margin-left:auto}.modal .modal-content-wrapper{display:flex;flex:1;flex-direction:column;overflow:hidden}.modal .modal-content-wrapper .modal-box{display:flex;flex:1;overflow-x:hidden;overflow-y:scroll}.modal .modal-content-wrapper .modal-content{display:flex;flex-direction:column;gap:var(--scale-400);height:fit-content;width:100%}.modal .modal-content-wrapper tems-division{width:fit-content}.modal .modal-content-wrapper tems-division div{display:block;height:auto;overflow:hidden;text-overflow:ellipsis}.modal .modal-content-wrapper .card-grid{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.modal .modal-content-wrapper .card-grid-vertical{justify-content:stretch}.modal .modal-content-wrapper .card-grid-vertical tems-card-catalog{height:auto;width:354px}@media screen and (min-width:1100px){div.modal{height:fit-content;max-height:80vw;max-width:80vw;width:fit-content}}";
1754
- var Cr = Object.defineProperty, Sr = Object.getOwnPropertyDescriptor, de = (e, t, r, i) => {
1755
- for (var s = i > 1 ? void 0 : i ? Sr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1797
+ ], Q.prototype, "_displayObjects", 2);
1798
+ Q = Dt([
1799
+ M("ds4go-fact-bundle-holder")
1800
+ ], Q);
1801
+ const xr = ".flex{display:flex}.flex.flex-row{flex-direction:row}.flex.flex-column{flex-direction:column}.flex.wrap{flex-wrap:wrap}.flex.flex-1{flex:1}.flex .half,.flex.half{flex-basis:50%}.flex.justify-content-center{justify-content:center}.flex.justify-content-space-between{justify-content:space-between}.flex.align-items-center{align-items:center}.flex.align-items-flex-start{align-items:flex-start}.flex .align-items-flex-end{align-items:flex-end}.full-width{width:100%}.modal{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg);color:var(--color-text-body);display:flex;flex-direction:column;font-family:var(--font-family-body);font-size:var(--typography-size-body-md);font-style:normal;font-weight:var(--font-weight-regular);gap:var(--scale-600);height:90vh;letter-spacing:var(--font-letter-spacing-default);line-height:var(--line-height-body-md);padding:var(--scale-600) var(--scale-900);width:90vw}.modal .topbar{display:flex;flex-direction:row;gap:var(--scale-400);width:100%}.modal .topbar tems-button:nth-child(2){margin-left:auto}.modal .modal-content-wrapper{display:flex;flex:1;flex-direction:column;overflow:hidden}.modal .modal-content-wrapper .modal-box{display:flex;flex:1;overflow-x:hidden;overflow-y:scroll}.modal .modal-content-wrapper .modal-content{display:flex;flex-direction:column;gap:var(--scale-400);height:fit-content;width:100%}.modal .modal-content-wrapper tems-division{width:fit-content}.modal .modal-content-wrapper tems-division div{display:block;height:auto;overflow:hidden;text-overflow:ellipsis}.modal .modal-content-wrapper .card-grid{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.modal .modal-content-wrapper .card-grid-vertical{justify-content:stretch}.modal .modal-content-wrapper .card-grid-vertical tems-card-catalog{height:auto;width:354px}@media screen and (min-width:1100px){div.modal{height:fit-content;max-height:80vw;max-width:80vw;width:fit-content}}";
1802
+ var Pr = Object.defineProperty, Rr = Object.getOwnPropertyDescriptor, pe = (e, t, r, i) => {
1803
+ for (var s = i > 1 ? void 0 : i ? Rr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1756
1804
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1757
- return i && s && Cr(t, r, s), s;
1805
+ return i && s && Pr(t, r, s), s;
1758
1806
  };
1759
- let lt = class extends Ie {
1807
+ let ut = class extends Fe {
1760
1808
  constructor() {
1761
1809
  super(...arguments), this.object = { "@id": "" };
1762
1810
  }
@@ -1764,12 +1812,12 @@ let lt = class extends Ie {
1764
1812
  this.dispatchEvent(new CustomEvent("close"));
1765
1813
  }
1766
1814
  render() {
1767
- return d`<div class="modal">
1815
+ return f`<div class="modal">
1768
1816
  <div class="topbar">
1769
1817
  <tems-button
1770
1818
  @click=${this._closeModal}
1771
1819
  type="outline-gray"
1772
- .iconLeft=${d`<icon-material-symbols-close-rounded></icon-material-symbols-close-rounded>`}
1820
+ .iconLeft=${f`<icon-material-symbols-close-rounded></icon-material-symbols-close-rounded>`}
1773
1821
  ></tems-button>
1774
1822
  </div>
1775
1823
  <div class="modal-content-wrapper">
@@ -1797,12 +1845,12 @@ let lt = class extends Ie {
1797
1845
  type: "information"
1798
1846
  });
1799
1847
  }
1800
- return d`<tems-card-catalog
1801
- .object=${c}
1848
+ return f`<tems-card-catalog
1849
+ .object=${l}
1802
1850
  .tags=${t}
1803
- .header=${e.name || c}
1804
- .content=${e.description || c}
1805
- date=${e.updated_at || c}
1851
+ .header=${e.name || l}
1852
+ .content=${e.description || l}
1853
+ date=${e.updated_at || l}
1806
1854
  ></tems-card-catalog>`;
1807
1855
  })}
1808
1856
  </div>
@@ -1822,18 +1870,18 @@ let lt = class extends Ie {
1822
1870
  </div>`;
1823
1871
  }
1824
1872
  };
1825
- lt.styles = Y`
1826
- ${xt(Ar)}
1873
+ ut.styles = tt`
1874
+ ${Rt(xr)}
1827
1875
  `;
1828
- de([
1829
- y({ attribute: !1, type: Object })
1830
- ], lt.prototype, "object", 2);
1831
- lt = de([
1832
- V("ds4go-fact-bundle-modal"),
1833
- dr()
1834
- ], lt);
1835
- const xr = /* @__PURE__ */ Symbol();
1836
- class pt {
1876
+ pe([
1877
+ v({ attribute: !1, type: Object })
1878
+ ], ut.prototype, "object", 2);
1879
+ ut = pe([
1880
+ M("ds4go-fact-bundle-modal"),
1881
+ pr()
1882
+ ], ut);
1883
+ const Er = /* @__PURE__ */ Symbol();
1884
+ class rt {
1837
1885
  get taskComplete() {
1838
1886
  return this.t || (this.i === 1 ? this.t = new Promise(((t, r) => {
1839
1887
  this.o = t, this.h = r;
@@ -1842,7 +1890,7 @@ class pt {
1842
1890
  constructor(t, r, i) {
1843
1891
  this.p = 0, this.i = 0, (this._ = t).addController(this);
1844
1892
  const s = typeof r == "object" ? r : { task: r, args: i };
1845
- this.v = s.task, this.j = s.args, this.m = s.argsEqual ?? Pr, this.k = s.onComplete, this.A = s.onError, this.autoRun = s.autoRun ?? !0, "initialValue" in s && (this.u = s.initialValue, this.i = 2, this.O = this.T?.());
1893
+ this.v = s.task, this.j = s.args, this.m = s.argsEqual ?? jr, this.k = s.onComplete, this.A = s.onError, this.autoRun = s.autoRun ?? !0, "initialValue" in s && (this.u = s.initialValue, this.i = 2, this.O = this.T?.());
1846
1894
  }
1847
1895
  hostUpdate() {
1848
1896
  this.autoRun === !0 && this.S();
@@ -1872,7 +1920,7 @@ class pt {
1872
1920
  o = !0, i = n;
1873
1921
  }
1874
1922
  if (this.p === s) {
1875
- if (r === xr) this.i = 0;
1923
+ if (r === Er) this.i = 0;
1876
1924
  else {
1877
1925
  if (o === !1) {
1878
1926
  try {
@@ -1919,20 +1967,72 @@ class pt {
1919
1967
  }
1920
1968
  }
1921
1969
  }
1922
- const Pr = (e, t) => e === t || e.length === t.length && e.every(((r, i) => !ht(r, t[i])));
1923
- var jr = Object.defineProperty, Er = Object.getOwnPropertyDescriptor, R = (e, t, r, i) => {
1924
- for (var s = i > 1 ? void 0 : i ? Er(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1970
+ const jr = (e, t) => e === t || e.length === t.length && e.every(((r, i) => !pt(r, t[i])));
1971
+ !window.orbit && !"/".includes("cypress") && await new Promise((e) => {
1972
+ document.addEventListener("orbit-ready", () => {
1973
+ e(!0);
1974
+ });
1975
+ });
1976
+ var Ur = Object.getOwnPropertyDescriptor, kr = (e, t, r, i) => {
1977
+ for (var s = i > 1 ? void 0 : i ? Ur(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1978
+ (n = e[o]) && (s = n(s) || s);
1979
+ return s;
1980
+ };
1981
+ let St = class extends $ {
1982
+ constructor() {
1983
+ super(...arguments), this.cherryPickedProperties = [{ key: "name", value: "name" }], this._getResource = new rt(this, {
1984
+ task: async ([e]) => {
1985
+ if (!(!e || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
1986
+ if (!this.hasCachedDatas || this.oldDataSrc !== e) {
1987
+ if (!e) return;
1988
+ this.datas = await this._getProxyValue(e), this.hasCachedDatas = !0;
1989
+ }
1990
+ return this.oldDataSrc !== e && (this.oldDataSrc = e), S(this.datas, "name", "asc");
1991
+ }
1992
+ },
1993
+ args: () => [this.dataSrc, this.caching, this.currentRoute]
1994
+ });
1995
+ }
1996
+ async _afterAttach() {
1997
+ return oe(this, {
1998
+ keywords: ["some-keyword", "for-invalidating", "cache"]
1999
+ }), Promise.resolve();
2000
+ }
2001
+ render() {
2002
+ return this.gatekeeper() || this._getResource.render({
2003
+ pending: () => f`<solid-loader></solid-loader>`,
2004
+ complete: (e) => e ? f`<div>
2005
+ <sample-objects .objects=${e}></sample-objects>
2006
+ </div>` : l
2007
+ });
2008
+ }
2009
+ };
2010
+ St.styles = tt`
2011
+ div {
2012
+ background-color: red;
2013
+ position: absolute;
2014
+ top: 0;
2015
+ left: 0;
2016
+ right: 0;
2017
+ bottom: 0;
2018
+ }
2019
+ `;
2020
+ St = kr([
2021
+ M("solid-boilerplate")
2022
+ ], St);
2023
+ var Dr = Object.defineProperty, Or = Object.getOwnPropertyDescriptor, U = (e, t, r, i) => {
2024
+ for (var s = i > 1 ? void 0 : i ? Or(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1925
2025
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1926
- return i && s && jr(t, r, s), s;
2026
+ return i && s && Dr(t, r, s), s;
1927
2027
  };
1928
- let _ = class extends v {
2028
+ let A = class extends $ {
1929
2029
  constructor() {
1930
2030
  super(...arguments), this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
1931
2031
  { key: "dct:title", value: "title" },
1932
2032
  { key: "dct:description", value: "description" },
1933
2033
  { key: "dcat:dataset", value: "dataset", expand: !0 },
1934
2034
  { key: "dct:creator", value: "creator" }
1935
- ], this.sectors = [], this._getResource = new pt(this, {
2035
+ ], this.sectors = [], this._getResource = new rt(this, {
1936
2036
  task: async ([e, t, r]) => {
1937
2037
  if (!(!e || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
1938
2038
  if (this.displayFiltering = !this.component.parameters.disableFiltering, !this.hasCachedDatas) {
@@ -1986,7 +2086,7 @@ let _ = class extends v {
1986
2086
  );
1987
2087
  if (s)
1988
2088
  try {
1989
- return this.object = await (await fetch(s.endpoints.catalog)).json(), this.object["dcat:dataset"] = P(
2089
+ return this.object = await (await fetch(s.endpoints.catalog)).json(), this.object["dcat:dataset"] = S(
1990
2090
  this.object["dcat:dataset"],
1991
2091
  "dct:title",
1992
2092
  "asc"
@@ -1999,9 +2099,9 @@ let _ = class extends v {
1999
2099
  return;
2000
2100
  }
2001
2101
  }
2002
- return P(this.catalogs, "catalogId", "asc");
2102
+ return S(this.catalogs, "catalogId", "asc");
2003
2103
  }
2004
- return P(this.sectors, "id", "asc");
2104
+ return S(this.sectors, "id", "asc");
2005
2105
  }
2006
2106
  },
2007
2107
  args: () => [
@@ -2035,68 +2135,68 @@ let _ = class extends v {
2035
2135
  }
2036
2136
  render() {
2037
2137
  return this.gatekeeper() || this._getResource.render({
2038
- pending: () => d`<solid-loader></solid-loader>`,
2039
- error: (e) => (console.warn("[solid-dsif-explorer-poc] Task error:", e), c),
2040
- complete: (e) => d`<tems-viewport>
2138
+ pending: () => f`<solid-loader></solid-loader>`,
2139
+ error: (e) => (console.warn("[solid-dsif-explorer-poc] Task error:", e), l),
2140
+ complete: (e) => f`<tems-viewport>
2041
2141
  <tems-header
2042
2142
  slot="header"
2043
2143
  heading=${this.catalogId ? e ? this.catalogId === "*" ? `${h("All Datasets")}` : `${h("Datasets from")}
2044
- ${e["dct:title"]} (From ${this.sectorId})` : `${h(x`Error while loading catalog ${this.catalogId}`)}` : this.sectorId ? this.sectorId === "*" ? `${h("All Sectors")}` : `${h("Catalogs available in")} ${this.sectorId}` : `${h("Root Authority")}`}
2045
- >${(this.sectorId || this.catalogId) && !(this.catalogId === "*" && this.sectorId === "*") && !(this.sectorId === "*" && !this.catalogId) ? d`<div slot="cta">
2144
+ ${e["dct:title"]} (From ${this.sectorId})` : `${h(E`Error while loading catalog ${this.catalogId}`)}` : this.sectorId ? this.sectorId === "*" ? `${h("All Sectors")}` : `${h("Catalogs available in")} ${this.sectorId}` : `${h("Root Authority")}`}
2145
+ >${(this.sectorId || this.catalogId) && !(this.catalogId === "*" && this.sectorId === "*") && !(this.sectorId === "*" && !this.catalogId) ? f`<div slot="cta">
2046
2146
  <tems-button
2047
2147
  type="primary"
2048
2148
  label=${h(
2049
- x`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2149
+ E`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2050
2150
  )}
2051
2151
  @click=${this._back}
2052
2152
  ></tems-button>
2053
- </div>` : c}</tems-header
2153
+ </div>` : l}</tems-header
2054
2154
  >
2055
2155
  <div slot="content">
2056
- ${e ? d`<div>
2057
- ${this.catalogId ? d`<tems-division type="body-m"
2156
+ ${e ? f`<div>
2157
+ ${this.catalogId ? f`<tems-division type="body-m"
2058
2158
  >${e["dct:description"]}</tems-division
2059
- >` : c}
2159
+ >` : l}
2060
2160
  <div class="card-grid card-grid-vertical">
2061
- ${this.catalogId ? d`${e["dcat:dataset"].map(
2062
- (t) => d`<tems-card-catalog
2063
- .object=${c}
2161
+ ${this.catalogId ? f`${e["dcat:dataset"].map(
2162
+ (t) => f`<tems-card-catalog
2163
+ .object=${l}
2064
2164
  type=${"bill-image"}
2065
- .header=${t["dct:title"] || c}
2066
- .content=${t["dct:description"] || c}
2165
+ .header=${t["dct:title"] || l}
2166
+ .content=${t["dct:description"] || l}
2067
2167
  ></tems-card-catalog>`
2068
- )}` : this.sectorId ? d`${e.map(
2069
- (t) => d`<tems-card-catalog
2168
+ )}` : this.sectorId ? f`${e.map(
2169
+ (t) => f`<tems-card-catalog
2070
2170
  class="cursor-pointer"
2071
- .object=${c}
2171
+ .object=${l}
2072
2172
  type=${"bill-image"}
2073
- .header=${t.catalogId || c}
2074
- .content=${t.description || c}
2075
- date=${L(t.lastUpdated) || c}
2173
+ .header=${t.catalogId || l}
2174
+ .content=${t.description || l}
2175
+ date=${I(t.lastUpdated) || l}
2076
2176
  @click=${() => this._selectCatalog(t.catalogId)}
2077
2177
  ></tems-card-catalog>`
2078
- )}` : d`${e.map(
2079
- (t) => d`<tems-card-catalog
2178
+ )}` : f`${e.map(
2179
+ (t) => f`<tems-card-catalog
2080
2180
  class="cursor-pointer"
2081
- .object=${c}
2181
+ .object=${l}
2082
2182
  type=${"bill-image"}
2083
- .header=${t.id || c}
2084
- .content=${t.description || c}
2085
- date=${L(t.lastUpdated) || c}
2183
+ .header=${t.id || l}
2184
+ .content=${t.description || l}
2185
+ date=${I(t.lastUpdated) || l}
2086
2186
  @click=${() => this._selectSector(t.id)}
2087
2187
  ></tems-card-catalog>`
2088
2188
  )}`}
2089
2189
  </div>
2090
- </div>` : d`<p>
2190
+ </div>` : f`<p>
2091
2191
  ${h(
2092
2192
  "No data available, data source may be temporarily unavailable."
2093
2193
  )}
2094
2194
  </p>
2095
- ${this.sectorId || this.catalogId ? d`<tems-button
2195
+ ${this.sectorId || this.catalogId ? f`<tems-button
2096
2196
  type="primary"
2097
2197
  label=${h("Back")}
2098
2198
  @click=${this._back}
2099
- ></tems-button>` : d`<tems-button
2199
+ ></tems-button>` : f`<tems-button
2100
2200
  type="primary"
2101
2201
  label=${h("Retry")}
2102
2202
  @click=${this.requestUpdate}
@@ -2106,7 +2206,7 @@ let _ = class extends v {
2106
2206
  });
2107
2207
  }
2108
2208
  };
2109
- _.styles = Y`
2209
+ A.styles = tt`
2110
2210
  .card-grid {
2111
2211
  margin: var(--scale-900) 0;
2112
2212
  display: flex;
@@ -2128,38 +2228,38 @@ _.styles = Y`
2128
2228
  margin-top: var(--scale-900);
2129
2229
  }
2130
2230
  `;
2131
- R([
2132
- y({ attribute: "sector-id", type: String })
2133
- ], _.prototype, "sectorId", 2);
2134
- R([
2135
- y({ attribute: "catalog-id", type: String })
2136
- ], _.prototype, "catalogId", 2);
2137
- R([
2231
+ U([
2232
+ v({ attribute: "sector-id", type: String })
2233
+ ], A.prototype, "sectorId", 2);
2234
+ U([
2235
+ v({ attribute: "catalog-id", type: String })
2236
+ ], A.prototype, "catalogId", 2);
2237
+ U([
2138
2238
  m()
2139
- ], _.prototype, "search", 2);
2140
- R([
2239
+ ], A.prototype, "search", 2);
2240
+ U([
2141
2241
  m()
2142
- ], _.prototype, "resultCount", 2);
2143
- R([
2242
+ ], A.prototype, "resultCount", 2);
2243
+ U([
2144
2244
  m()
2145
- ], _.prototype, "sectors", 2);
2146
- R([
2245
+ ], A.prototype, "sectors", 2);
2246
+ U([
2147
2247
  m()
2148
- ], _.prototype, "catalogs", 2);
2149
- R([
2248
+ ], A.prototype, "catalogs", 2);
2249
+ U([
2150
2250
  m()
2151
- ], _.prototype, "object", 2);
2152
- _ = R([
2153
- V("solid-dsif-explorer-poc")
2154
- ], _);
2155
- var Rr = Object.defineProperty, Ur = Object.getOwnPropertyDescriptor, ft = (e, t, r, i) => {
2156
- for (var s = i > 1 ? void 0 : i ? Ur(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2251
+ ], A.prototype, "object", 2);
2252
+ A = U([
2253
+ M("solid-dsif-explorer-poc")
2254
+ ], A);
2255
+ var Lr = Object.defineProperty, Tr = Object.getOwnPropertyDescriptor, mt = (e, t, r, i) => {
2256
+ for (var s = i > 1 ? void 0 : i ? Tr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2157
2257
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2158
- return i && s && Rr(t, r, s), s;
2258
+ return i && s && Lr(t, r, s), s;
2159
2259
  };
2160
- let Q = class extends C {
2260
+ let Y = class extends P {
2161
2261
  constructor() {
2162
- super(...arguments), this.assets = [], this.policies = [], this.contracts = [], this._getResource = new pt(this, {
2262
+ super(...arguments), this.assets = [], this.policies = [], this.contracts = [], this._getResource = new rt(this, {
2163
2263
  task: async () => {
2164
2264
  if (this.orbit) {
2165
2265
  if (!this.hasCachedDatas) {
@@ -2259,35 +2359,50 @@ let Q = class extends C {
2259
2359
  }
2260
2360
  render() {
2261
2361
  return this._getResource.render({
2262
- pending: () => c,
2263
- complete: () => c,
2264
- error: (e) => c
2362
+ pending: () => l,
2363
+ complete: () => l,
2364
+ error: (e) => l
2265
2365
  });
2266
2366
  }
2267
2367
  };
2268
- ft([
2368
+ mt([
2269
2369
  m()
2270
- ], Q.prototype, "assets", 2);
2271
- ft([
2370
+ ], Y.prototype, "assets", 2);
2371
+ mt([
2272
2372
  m()
2273
- ], Q.prototype, "policies", 2);
2274
- ft([
2373
+ ], Y.prototype, "policies", 2);
2374
+ mt([
2275
2375
  m()
2276
- ], Q.prototype, "contracts", 2);
2277
- Q = ft([
2278
- V("solid-dsp-connector")
2279
- ], Q);
2280
- const Or = ".flex{display:flex}.flex.flex-row{flex-direction:row}.flex.flex-column{flex-direction:column}.flex.wrap{flex-wrap:wrap}.flex.flex-1{flex:1}.flex .half,.flex.half{flex-basis:50%}.flex.justify-content-center{justify-content:center}.flex.justify-content-space-between{justify-content:space-between}.flex.align-items-center{align-items:center}.flex.align-items-flex-start{align-items:flex-start}.flex .align-items-flex-end{align-items:flex-end}.full-width{width:100%}";
2281
- var kr = Object.defineProperty, Dr = Object.getOwnPropertyDescriptor, U = (e, t, r, i) => {
2282
- for (var s = i > 1 ? void 0 : i ? Dr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2376
+ ], Y.prototype, "contracts", 2);
2377
+ Y = mt([
2378
+ M("solid-dsp-connector")
2379
+ ], Y);
2380
+ const Ir = ".flex{display:flex}.flex.flex-row{flex-direction:row}.flex.flex-column{flex-direction:column}.flex.wrap{flex-wrap:wrap}.flex.flex-1{flex:1}.flex .half,.flex.half{flex-basis:50%}.flex.justify-content-center{justify-content:center}.flex.justify-content-space-between{justify-content:space-between}.flex.align-items-center{align-items:center}.flex.align-items-flex-start{align-items:flex-start}.flex .align-items-flex-end{align-items:flex-end}.full-width{width:100%}[slot=content]{height:100%}section{height:calc(100% - var(--scale-900)*2);padding:var(--scale-900) 0}section,section>div{gap:var(--scale-400)}section>div{display:flex;flex:1;flex-direction:column;height:100%}section>div:first-child{max-width:400px}.card-grid{align-content:flex-start;display:flex;flex:1;flex-direction:row;flex-wrap:wrap;gap:20px;overflow-y:scroll}.card-grid-vertical{justify-content:stretch}.card-grid-vertical tems-card-catalog{height:fit-content;width:354px}tems-card-catalog{cursor:pointer}tems-card-catalog[selected]{--color-border-primary:var(--color-surface-action-solid)}tems-search-bar{--scale-900:0}.gap-400{gap:var(--scale-400)}div.select{align-items:flex-start;display:flex;flex-direction:column;gap:var(--scale-200);width:100%}select{appearance:none;background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);color:var(--color-text-body);cursor:pointer;font-family:var(--font-family-body);font-size:var(--typography-size-body-sm);font-style:normal;font-weight:var(--font-weight-regular);letter-spacing:var(--font-letter-spacing-default);line-height:var(--line-height-body-sm);padding:var(--scale-100) var(--scale-300);width:100%}select:hover{border:var(--border-width-sm) solid var(--color-border-action)}select option{background-color:var(--color-surface-primary);color:var(--color-text-body);cursor:pointer;font-family:var(--font-family-body);font-size:var(--typography-size-body-sm);font-style:normal;font-weight:var(--font-weight-regular);letter-spacing:var(--font-letter-spacing-default);line-height:var(--line-height-body-sm);padding:var(--scale-100) var(--scale-300)}";
2381
+ var Fr = Object.defineProperty, Nr = Object.getOwnPropertyDescriptor, _ = (e, t, r, i) => {
2382
+ for (var s = i > 1 ? void 0 : i ? Nr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2283
2383
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2284
- return i && s && kr(t, r, s), s;
2384
+ return i && s && Fr(t, r, s), s;
2285
2385
  };
2286
- let w = class extends v {
2386
+ let b = class extends $ {
2287
2387
  constructor() {
2288
- super(...arguments), this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.filterFactText = "", this.spliceLength = 0, this.cherryPickedProperties = [
2289
- { key: "created_at", value: "created_at", cast: L },
2290
- { key: "updated_at", value: "updated_at", cast: L },
2388
+ super(...arguments), this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.bundleLanguage = "en", this.policyTemplates = [
2389
+ {
2390
+ id: "policy-open-access",
2391
+ name: h("Open access"),
2392
+ policy: {
2393
+ "@type": "Set",
2394
+ permission: [
2395
+ {
2396
+ action: "use"
2397
+ }
2398
+ ],
2399
+ prohibition: [],
2400
+ obligation: []
2401
+ }
2402
+ }
2403
+ ], this.bundleAccessPolicy = this.policyTemplates[0].id, this.bundleContractPolicy = this.policyTemplates[0].id, this.filterFactText = "", this.spliceLength = 0, this.cherryPickedProperties = [
2404
+ { key: "created_at", value: "created_at", cast: I },
2405
+ { key: "updated_at", value: "updated_at", cast: I },
2291
2406
  { key: "name", value: "name" },
2292
2407
  { key: "description", value: "description" },
2293
2408
  { key: "author", value: "author" },
@@ -2295,17 +2410,17 @@ let w = class extends v {
2295
2410
  key: "categories",
2296
2411
  value: "categories",
2297
2412
  expand: !0,
2298
- cast: (t) => P(t, "name")
2413
+ cast: (t) => S(t, "name")
2299
2414
  }
2300
- ], this._getResource = new pt(this, {
2415
+ ], this._getResource = new rt(this, {
2301
2416
  task: async ([t, r, i]) => {
2302
2417
  if (!(!t || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
2303
2418
  if (!this.hasCachedDatas || this.oldDataSrc !== t) {
2304
2419
  if (!t) return;
2305
2420
  this.facts = await this._getProxyValue(t), this.hasCachedDatas = !0;
2306
2421
  }
2307
- return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), r ? P(
2308
- ie(
2422
+ return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), r ? S(
2423
+ ae(
2309
2424
  this.facts.filter(
2310
2425
  (s) => !i.includes(s)
2311
2426
  ),
@@ -2313,7 +2428,7 @@ let w = class extends v {
2313
2428
  ),
2314
2429
  "name",
2315
2430
  "asc"
2316
- ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), P(
2431
+ ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), S(
2317
2432
  this.facts.filter(
2318
2433
  (s) => !this.selectedFacts.includes(s)
2319
2434
  ),
@@ -2331,6 +2446,9 @@ let w = class extends v {
2331
2446
  ]
2332
2447
  });
2333
2448
  }
2449
+ async _afterAttach() {
2450
+ return this.dspConnector = this.orbit?.getComponent("dsp-connector"), Promise.resolve();
2451
+ }
2334
2452
  _showMoreResults() {
2335
2453
  this.spliceLength += Math.floor((window.innerWidth - 800) / 354);
2336
2454
  }
@@ -2348,12 +2466,14 @@ let w = class extends v {
2348
2466
  "@type": ["ldp:Container", "ds4go:FactBundle"],
2349
2467
  name: this.bundleName,
2350
2468
  description: this.bundleDescription || "",
2351
- "ldp:contains": this.selectedFacts.map((s) => ({ "@id": s["@id"] }))
2469
+ "ldp:contains": this.selectedFacts.map((s) => ({
2470
+ "@id": s["@id"]
2471
+ }))
2352
2472
  }, r = await window.sibStore.post(
2353
2473
  t,
2354
2474
  this.dataSrc
2355
2475
  );
2356
- document.dispatchEvent(
2476
+ if (document.dispatchEvent(
2357
2477
  new CustomEvent("save", {
2358
2478
  detail: { resource: { "@id": r } },
2359
2479
  bubbles: !0
@@ -2363,14 +2483,81 @@ let w = class extends v {
2363
2483
  detail: { resource: { "@id": this.dataSrc } },
2364
2484
  bubbles: !0
2365
2485
  })
2366
- ), this.bundleName = "", this.bundleDescription = "", this.selectedFacts = [];
2486
+ ), this.dspConnector) {
2487
+ const s = await window.crypto.subtle.digest("SHA-256", new TextEncoder().encode(r)).then((c) => `sha-256:${Array.from(new Uint8Array(c)).map((d) => d.toString(16).padStart(2, "0")).join("")}`);
2488
+ await this.dspConnector.instance?.createAsset({
2489
+ "@id": `urn:asset-id:${s}`,
2490
+ properties: {
2491
+ name: this.bundleName,
2492
+ description: this.bundleDescription,
2493
+ contenttype: "application/ld+json",
2494
+ language: this.bundleLanguage
2495
+ },
2496
+ dataAddress: {
2497
+ "@type": "DataAddress",
2498
+ type: "HttpData",
2499
+ baseUrl: r
2500
+ }
2501
+ }), await Promise.all([
2502
+ this.dspConnector.instance?.createPolicy({
2503
+ "@id": `urn:access-policy-id:${s}`,
2504
+ "@type": "PolicyDefinition",
2505
+ policy: {
2506
+ "@context": "http://www.w3.org/ns/odrl.jsonld",
2507
+ ...this.policyTemplates.find(
2508
+ (c) => c.id === this.bundleAccessPolicy
2509
+ )?.policy
2510
+ }
2511
+ }),
2512
+ this.dspConnector.instance?.createPolicy({
2513
+ "@id": `urn:contract-policy-id:${s}`,
2514
+ "@type": "PolicyDefinition",
2515
+ policy: {
2516
+ "@context": "http://www.w3.org/ns/odrl.jsonld",
2517
+ ...this.policyTemplates.find(
2518
+ (c) => c.id === this.bundleContractPolicy
2519
+ )?.policy
2520
+ }
2521
+ }),
2522
+ this.dspConnector.instance?.createContract({
2523
+ "@id": `urn:contract-id:${s}`,
2524
+ "@type": "ContractDefinition",
2525
+ accessPolicyId: `urn:access-policy-id:${s}`,
2526
+ contractPolicyId: `urn:contract-policy-id:${s}`,
2527
+ assetsSelector: [
2528
+ {
2529
+ "@type": "Criterion",
2530
+ operandLeft: "https://w3id.org/edc/v0.0.1/ns/id",
2531
+ operator: "=",
2532
+ operandRight: `urn:asset-id:${s}`
2533
+ }
2534
+ ]
2535
+ })
2536
+ ]);
2537
+ const o = document.querySelector(
2538
+ "solid-tems-assets-management"
2539
+ );
2540
+ o && o.loadAssets();
2541
+ const n = document.querySelector(
2542
+ "solid-tems-policies-management"
2543
+ );
2544
+ n && n.loadPolicies();
2545
+ const a = document.querySelector(
2546
+ "solid-tems-contracts-management"
2547
+ );
2548
+ a && a.loadData();
2549
+ }
2550
+ this.bundleName = "", this.bundleDescription = "", this.selectedFacts = [];
2367
2551
  const i = this.orbit?.getComponent("fact-bundle");
2368
2552
  document.dispatchEvent(
2369
2553
  new CustomEvent("save", {
2370
2554
  detail: { resource: { "@id": i?.defaultDataSrc } },
2371
2555
  bubbles: !0
2372
2556
  })
2373
- ), i && D(i?.route, i?.defaultDataSrc);
2557
+ ), i && L(
2558
+ i?.route,
2559
+ i?.defaultDataSrc
2560
+ );
2374
2561
  }
2375
2562
  _updateBundleName(t) {
2376
2563
  this.bundleName = t.detail.value;
@@ -2378,6 +2565,15 @@ let w = class extends v {
2378
2565
  _updateBundleDescription(t) {
2379
2566
  this.bundleDescription = t.detail.value;
2380
2567
  }
2568
+ _updateBundleLanguage(t) {
2569
+ this.bundleLanguage = t.detail.value;
2570
+ }
2571
+ _selectBundleAccessPolicy(t) {
2572
+ t.preventDefault(), t.target && (this.bundleAccessPolicy = t.target.value);
2573
+ }
2574
+ _selectBundleContractPolicy(t) {
2575
+ t.preventDefault(), t.target && (this.bundleContractPolicy = t.target.value);
2576
+ }
2381
2577
  _toggleFactSelection(t) {
2382
2578
  this.selectedFacts.includes(t) ? this.selectedFacts = this.selectedFacts.filter((r) => r !== t) : this.selectedFacts = [...this.selectedFacts, t];
2383
2579
  }
@@ -2386,17 +2582,17 @@ let w = class extends v {
2386
2582
  }
2387
2583
  render() {
2388
2584
  return this.gatekeeper() || this._getResource.render({
2389
- pending: () => d`<solid-loader></solid-loader>`,
2390
- error: (t) => (console.warn("[solid-fact-bundle-creation] Task error:", t), c),
2585
+ pending: () => f`<solid-loader></solid-loader>`,
2586
+ error: (t) => (console.warn("[solid-fact-bundle-creation] Task error:", t), l),
2391
2587
  complete: (t) => {
2392
- if (!t) return c;
2393
- const r = t.slice(0, this.spliceLength), i = this.selectedFacts.length, s = !!this.bundleName && i > 0;
2394
- return d`<tems-viewport>
2588
+ if (!t) return l;
2589
+ const r = t.slice(0, this.spliceLength), i = this.selectedFacts.length, s = !!this.bundleName && i > 0 && !!this.bundleLanguage && !!this.bundleAccessPolicy && !!this.bundleContractPolicy;
2590
+ return f`<tems-viewport>
2395
2591
  <tems-header slot="header" heading=${this.header}>
2396
2592
  <div slot="cta">
2397
2593
  <tems-button
2398
2594
  type="primary"
2399
- disabled=${!s || c}
2595
+ disabled=${!s || l}
2400
2596
  label=${h("Create bundle")}
2401
2597
  @click=${this._createFactBundle}
2402
2598
  ></tems-button>
@@ -2424,10 +2620,43 @@ let w = class extends v {
2424
2620
  @change=${this._updateBundleDescription}
2425
2621
  ></tems-textarea>
2426
2622
  </div>
2427
- ${i > 0 ? d`<tems-division type="h4">
2623
+ <div>
2624
+ <tems-input
2625
+ type="text"
2626
+ label=${h("Language")}
2627
+ placeholder=${h("Language code (en, de, es, fr...)")}
2628
+ hint=${h("Comma-separated, eg.: en,de,es,fr)")}
2629
+ required=""
2630
+ .value=${this.bundleLanguage}
2631
+ @change=${this._updateBundleLanguage}
2632
+ ></tems-input>
2633
+ </div>
2634
+ <div class="select">
2635
+ <tems-label label=${h("Access policy")}></tems-label>
2636
+ <select @change=${this._selectBundleAccessPolicy}>
2637
+ ${this.policyTemplates.map((o) => f`<option
2638
+ value="${o.id}"
2639
+ ?selected="${o.id === this.bundleAccessPolicy}"
2640
+ >
2641
+ ${o.name}
2642
+ </option>`)}
2643
+ </select>
2644
+ </div>
2645
+ <div class="select">
2646
+ <tems-label label=${h("Contract policy")}></tems-label>
2647
+ <select @change=${this._selectBundleContractPolicy}>
2648
+ ${this.policyTemplates.map((o) => f`<option
2649
+ value="${o.id}"
2650
+ ?selected="${o.id === this.bundleContractPolicy}"
2651
+ >
2652
+ ${o.name}
2653
+ </option>`)}
2654
+ </select>
2655
+ </div>
2656
+ ${i > 0 ? f`<tems-division type="h4">
2428
2657
  <div>
2429
2658
  ${h(
2430
- x`${i} selected fact${i > 1 ? "s" : ""}`
2659
+ E`${i} selected fact${i > 1 ? "s" : ""}`
2431
2660
  )}
2432
2661
  </div></tems-division
2433
2662
  >
@@ -2444,10 +2673,10 @@ let w = class extends v {
2444
2673
  type: "information"
2445
2674
  });
2446
2675
  }
2447
- return d`<tems-card-catalog
2448
- .object=${c}
2449
- .header=${o.name || c}
2450
- date=${o.updated_at || c}
2676
+ return f`<tems-card-catalog
2677
+ .object=${l}
2678
+ .header=${o.name || l}
2679
+ date=${o.updated_at || l}
2451
2680
  @click=${this._toggleFactSelection.bind(
2452
2681
  this,
2453
2682
  o
@@ -2455,9 +2684,9 @@ let w = class extends v {
2455
2684
  selected=${!0}
2456
2685
  ></tems-card-catalog>`;
2457
2686
  })}
2458
- </div>` : c}
2687
+ </div>` : l}
2459
2688
  </div>
2460
- ${r.length > 0 || this.filterFactText ? d`<div>
2689
+ ${r.length > 0 || this.filterFactText ? f`<div>
2461
2690
  <div>
2462
2691
  <tems-search-bar
2463
2692
  .displayFilters=${!1}
@@ -2472,7 +2701,7 @@ let w = class extends v {
2472
2701
  @search=${this._searchFacts}
2473
2702
  ></tems-search-bar>
2474
2703
  </div>
2475
- ${r.length > 0 ? d` <div class="card-grid card-grid-vertical">
2704
+ ${r.length > 0 ? f` <div class="card-grid card-grid-vertical">
2476
2705
  ${r.map((o) => {
2477
2706
  const n = o.categories.map(
2478
2707
  (a) => ({
@@ -2487,12 +2716,12 @@ let w = class extends v {
2487
2716
  type: "information"
2488
2717
  });
2489
2718
  }
2490
- return d`<tems-card-catalog
2491
- .object=${c}
2719
+ return f`<tems-card-catalog
2720
+ .object=${l}
2492
2721
  .tags=${n}
2493
- .header=${o.name || c}
2494
- .content=${o.description || c}
2495
- date=${o.updated_at || c}
2722
+ .header=${o.name || l}
2723
+ .content=${o.description || l}
2724
+ date=${o.updated_at || l}
2496
2725
  @click=${this._toggleFactSelection.bind(
2497
2726
  this,
2498
2727
  o
@@ -2500,12 +2729,12 @@ let w = class extends v {
2500
2729
  ></tems-card-catalog>`;
2501
2730
  })}
2502
2731
  </div>
2503
- ${r.length < t.length ? d`<div
2732
+ ${r.length < t.length ? f`<div
2504
2733
  class="flex flex-row justify-content-space-between align-items-flex-end"
2505
2734
  >
2506
2735
  <div>
2507
2736
  ${h(
2508
- x`Displaying ${r.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2737
+ E`Displaying ${r.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2509
2738
  )}
2510
2739
  </div>
2511
2740
  <div class="flex flex-row gap-400">
@@ -2522,8 +2751,9 @@ let w = class extends v {
2522
2751
  label=${h("Show all results")}
2523
2752
  ></tems-button>
2524
2753
  </div>
2525
- </div>` : c}` : d`${h("No results found")} ${this.filterFactText ? `for "${this.filterFactText}".` : ""}`}
2526
- </div>` : c}
2754
+ </div>` : l}` : f`${h("No results found")}
2755
+ ${this.filterFactText ? `for "${this.filterFactText}".` : ""}`}
2756
+ </div>` : l}
2527
2757
  </section>
2528
2758
  </div>
2529
2759
  </tems-viewport>`;
@@ -2531,94 +2761,56 @@ let w = class extends v {
2531
2761
  });
2532
2762
  }
2533
2763
  };
2534
- w.styles = [
2535
- xt(Or),
2536
- Y`
2537
- [slot="content"] {
2538
- height: 100%;
2539
- }
2540
- section {
2541
- gap: var(--scale-400);
2542
- padding: var(--scale-900) 0;
2543
- height: calc(100% - var(--scale-900) * 2);
2544
- }
2545
- section > div {
2546
- height: 100%;
2547
- display: flex;
2548
- flex-direction: column;
2549
- gap: var(--scale-400);
2550
- flex: 1;
2551
- }
2552
- section > div:first-child {
2553
- max-width: 400px;
2554
- }
2555
- .card-grid {
2556
- flex: 1;
2557
- overflow-y: scroll;
2558
- display: flex;
2559
- flex-direction: row;
2560
- flex-wrap: wrap;
2561
- gap: 20px;
2562
- align-content: flex-start;
2563
- }
2564
- .card-grid-vertical {
2565
- justify-content: stretch;
2566
- }
2567
- .card-grid-vertical tems-card-catalog {
2568
- width: 354px;
2569
- height: fit-content;
2570
- }
2571
- tems-card-catalog {
2572
- cursor: pointer;
2573
- }
2574
- tems-card-catalog[selected] {
2575
- --color-border-primary: var(--color-surface-action-solid);
2576
- }
2577
- tems-search-bar {
2578
- --scale-900: 0;
2579
- }
2580
- .gap-400 {
2581
- gap: var(--scale-400);
2582
- }
2583
- `
2584
- ];
2585
- U([
2586
- y({ attribute: "header", type: String })
2587
- ], w.prototype, "header", 2);
2588
- U([
2589
- y({ attribute: "facts-src", reflect: !0 })
2590
- ], w.prototype, "factsSrc", 2);
2591
- U([
2764
+ b.styles = [Rt(Ir)];
2765
+ _([
2766
+ v({ attribute: "header", type: String })
2767
+ ], b.prototype, "header", 2);
2768
+ _([
2769
+ v({ attribute: "facts-src", reflect: !0 })
2770
+ ], b.prototype, "factsSrc", 2);
2771
+ _([
2592
2772
  m()
2593
- ], w.prototype, "selectedFacts", 2);
2594
- U([
2773
+ ], b.prototype, "selectedFacts", 2);
2774
+ _([
2595
2775
  m()
2596
- ], w.prototype, "bundleName", 2);
2597
- U([
2776
+ ], b.prototype, "bundleName", 2);
2777
+ _([
2598
2778
  m()
2599
- ], w.prototype, "bundleDescription", 2);
2600
- U([
2779
+ ], b.prototype, "bundleDescription", 2);
2780
+ _([
2601
2781
  m()
2602
- ], w.prototype, "filterFactText", 2);
2603
- U([
2782
+ ], b.prototype, "bundleLanguage", 2);
2783
+ _([
2784
+ m()
2785
+ ], b.prototype, "bundleAccessPolicy", 2);
2786
+ _([
2787
+ m()
2788
+ ], b.prototype, "bundleContractPolicy", 2);
2789
+ _([
2790
+ m()
2791
+ ], b.prototype, "filterFactText", 2);
2792
+ _([
2793
+ m()
2794
+ ], b.prototype, "spliceLength", 2);
2795
+ _([
2604
2796
  m()
2605
- ], w.prototype, "spliceLength", 2);
2606
- w = U([
2607
- V("solid-fact-bundle-creation")
2608
- ], w);
2609
- var Ir = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, et = (e, t, r, i) => {
2610
- for (var s = i > 1 ? void 0 : i ? Lr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2797
+ ], b.prototype, "dspConnector", 2);
2798
+ b = _([
2799
+ M("solid-fact-bundle-creation")
2800
+ ], b);
2801
+ var Mr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, st = (e, t, r, i) => {
2802
+ for (var s = i > 1 ? void 0 : i ? Br(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2611
2803
  (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2612
- return i && s && Ir(t, r, s), s;
2804
+ return i && s && Mr(t, r, s), s;
2613
2805
  };
2614
- let F = class extends v {
2806
+ let N = class extends $ {
2615
2807
  constructor() {
2616
2808
  super(...arguments), this.header = "DS4GO Fact Bundling", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
2617
- { key: "created_at", value: "created_at", cast: L },
2618
- { key: "updated_at", value: "updated_at", cast: L },
2809
+ { key: "created_at", value: "created_at", cast: I },
2810
+ { key: "updated_at", value: "updated_at", cast: I },
2619
2811
  { key: "name", value: "name" },
2620
2812
  { key: "description", value: "description" }
2621
- ], this._getResource = new pt(this, {
2813
+ ], this._getResource = new rt(this, {
2622
2814
  task: async ([e, t]) => {
2623
2815
  if (!(!e || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
2624
2816
  if (this.menuComponent.ready || await new Promise((r) => {
@@ -2631,7 +2823,7 @@ let F = class extends v {
2631
2823
  }
2632
2824
  return this.oldDataSrc !== e && (this.oldDataSrc = e), Array.isArray(this.objects) || (this.objects = []), t ? this.object = this.objects.find(
2633
2825
  (r) => r["@id"] === t
2634
- ) : this.dataSrc = e, P(this.objects, "name", "asc");
2826
+ ) : this.dataSrc = e, S(this.objects, "name", "asc");
2635
2827
  }
2636
2828
  },
2637
2829
  args: () => [
@@ -2646,14 +2838,14 @@ let F = class extends v {
2646
2838
  return e?._originalResource?.hasType("ds4go:FactBundle") && (e.facts = await Promise.all(
2647
2839
  (await e._originalResource["ldp:contains"]).map(
2648
2840
  (t) => this._getProxyValue(t["@id"], !1, [
2649
- { key: "updated_at", value: "updated_at", cast: L },
2841
+ { key: "updated_at", value: "updated_at", cast: I },
2650
2842
  { key: "name", value: "name" },
2651
2843
  { key: "description", value: "description" },
2652
2844
  {
2653
2845
  key: "categories",
2654
2846
  value: "categories",
2655
2847
  expand: !0,
2656
- cast: (r) => P(r, "name")
2848
+ cast: (r) => S(r, "name")
2657
2849
  },
2658
2850
  { key: "author", value: "author" },
2659
2851
  { key: "link", value: "link" },
@@ -2671,7 +2863,7 @@ let F = class extends v {
2671
2863
  )), Promise.resolve(e);
2672
2864
  }
2673
2865
  async _afterAttach() {
2674
- return We(this, {
2866
+ return oe(this, {
2675
2867
  keywords: ["factbundles"]
2676
2868
  }), this.menuComponent = document.querySelector(
2677
2869
  `[uniq="${this.orbit?.getComponent("menu")?.uniq}"]`
@@ -2685,39 +2877,39 @@ let F = class extends v {
2685
2877
  _openModal(e) {
2686
2878
  if (e.preventDefault(), this.route)
2687
2879
  if ("use-id" in (this.component.routeAttributes || {}))
2688
- D(this.route, e.detail["@id"]);
2880
+ L(this.route, e.detail["@id"]);
2689
2881
  else {
2690
2882
  const t = e.detail["@type"]?.at(-1) ?? e.detail["@type"];
2691
2883
  if (t) {
2692
2884
  const r = window.orbit?.components?.filter(
2693
2885
  (i) => i?.routeAttributes?.["rdf-type"] === t
2694
2886
  );
2695
- r?.[0]?.route && D(r[0]?.route, e.detail["@id"]);
2887
+ r?.[0]?.route && L(r[0]?.route, e.detail["@id"]);
2696
2888
  }
2697
2889
  }
2698
2890
  }
2699
2891
  _closeModal(e) {
2700
- e.preventDefault(), this.route && D(this.route, this.defaultDataSrc);
2892
+ e.preventDefault(), this.route && L(this.route, this.defaultDataSrc);
2701
2893
  }
2702
2894
  _closeModalFromBackground(e) {
2703
- e.preventDefault(), this.route && e.target?.classList.contains("modal") && D(this.route, this.defaultDataSrc);
2895
+ e.preventDefault(), this.route && e.target?.classList.contains("modal") && L(this.route, this.defaultDataSrc);
2704
2896
  }
2705
2897
  _resultCountUpdate(e) {
2706
2898
  this.resultCount = e.detail ?? 0;
2707
2899
  }
2708
2900
  _goToBundleCreation(e) {
2709
- e.preventDefault(), this.bundleCreationComponent?.route && D(this.bundleCreationComponent.route);
2901
+ e.preventDefault(), this.bundleCreationComponent?.route && L(this.bundleCreationComponent.route);
2710
2902
  }
2711
2903
  render() {
2712
2904
  return this.gatekeeper() || this._getResource.render({
2713
- pending: () => d`<solid-loader></solid-loader>`,
2714
- error: (e) => (console.warn("[solid-fact-bundle] Task error:", e), c),
2715
- complete: (e) => d`<tems-viewport>
2905
+ pending: () => f`<solid-loader></solid-loader>`,
2906
+ error: (e) => (console.warn("[solid-fact-bundle] Task error:", e), l),
2907
+ complete: (e) => f`<tems-viewport>
2716
2908
  <tems-header slot="header" heading=${this.header}>
2717
2909
  <div slot="cta">
2718
2910
  <tems-button
2719
2911
  type="primary"
2720
- disabled=${!this.bundleCreationComponent?.route || c}
2912
+ disabled=${!this.bundleCreationComponent?.route || l}
2721
2913
  label=${h("Create a bundle")}
2722
2914
  @click=${this._goToBundleCreation}
2723
2915
  ></tems-button>
@@ -2738,7 +2930,7 @@ let F = class extends v {
2738
2930
  @clicked=${this._openModal}
2739
2931
  @result-count=${this._resultCountUpdate}
2740
2932
  ></ds4go-fact-bundle-holder>
2741
- ${this.object ? d`<div
2933
+ ${this.object ? f`<div
2742
2934
  class="modal"
2743
2935
  @click=${this._closeModalFromBackground}
2744
2936
  >
@@ -2746,13 +2938,13 @@ let F = class extends v {
2746
2938
  .object=${this.object}
2747
2939
  @close=${this._closeModal}
2748
2940
  ></ds4go-fact-bundle-modal>
2749
- </div>` : c}
2941
+ </div>` : l}
2750
2942
  </div>
2751
2943
  </tems-viewport>`
2752
2944
  });
2753
2945
  }
2754
2946
  };
2755
- F.styles = Y`
2947
+ N.styles = tt`
2756
2948
  .modal {
2757
2949
  position: fixed;
2758
2950
  top: 0;
@@ -2766,39 +2958,45 @@ F.styles = Y`
2766
2958
  align-items: center;
2767
2959
  }
2768
2960
  `;
2769
- et([
2770
- y({ attribute: "header", type: String })
2771
- ], F.prototype, "header", 2);
2772
- et([
2961
+ st([
2962
+ v({ attribute: "header", type: String })
2963
+ ], N.prototype, "header", 2);
2964
+ st([
2773
2965
  m()
2774
- ], F.prototype, "search", 2);
2775
- et([
2966
+ ], N.prototype, "search", 2);
2967
+ st([
2776
2968
  m()
2777
- ], F.prototype, "resultCount", 2);
2778
- et([
2969
+ ], N.prototype, "resultCount", 2);
2970
+ st([
2779
2971
  m()
2780
- ], F.prototype, "bundleCreationComponent", 2);
2781
- F = et([
2782
- V("solid-fact-bundle")
2783
- ], F);
2784
- const Tr = {
2972
+ ], N.prototype, "bundleCreationComponent", 2);
2973
+ N = st([
2974
+ M("solid-fact-bundle")
2975
+ ], N);
2976
+ const qr = {
2785
2977
  s20acf344316637a0: "All Catalogs",
2786
- s67269ab6dc51ec41: x`Error while loading catalog ${0}`,
2978
+ s67269ab6dc51ec41: E`Error while loading catalog ${0}`,
2787
2979
  s0b88896b7338837d: "All Datasets",
2788
2980
  s541d9cd11a5bc840: "Datasets from",
2789
2981
  s01ceffa02fa6bd7f: "All Sectors",
2790
2982
  s4aaac20ff7887391: "Catalogs available in",
2791
2983
  sa89a60c3e1230cec: "Root Authority",
2792
- se5784a16a6799dad: x`Back to ${0}`,
2984
+ se5784a16a6799dad: E`Back to ${0}`,
2793
2985
  s6665daa6d6147db0: "No data available, data source may be temporarily unavailable.",
2794
2986
  sc16e00a7a8b2fde2: "Back",
2795
2987
  s2c8189544e3ea679: "Retry",
2988
+ sc7e3b594ffcd9d61: "Open access",
2796
2989
  seb1a452f2df70baf: "Create bundle",
2797
2990
  sed5b6ae54e00125c: "Bundle name",
2798
2991
  s11099da36cbc3173: "Bundle description",
2799
- sac1b0231875ff056: x`${0} selected fact${1}`,
2992
+ sefcf950b3cc4fc3b: "Language",
2993
+ s6ae6714aac4ba43d: "Language code (en, de, es, fr...)",
2994
+ s21fb127cabcd5617: "Comma-separated, eg.: en,de,es,fr)",
2995
+ sa6ef22f7e7e95e2b: "Access policy",
2996
+ s6de61424bb681993: "Contract policy",
2997
+ sac1b0231875ff056: E`${0} selected fact${1}`,
2800
2998
  s0d1be7a2c400c080: "more",
2801
- s8272d3578b7c78d5: x`Displaying ${0} of ${1} result${2}`,
2999
+ s8272d3578b7c78d5: E`Displaying ${0} of ${1} result${2}`,
2802
3000
  sa40e7f4f2a43e2f7: "Show more results",
2803
3001
  sacf246e0fa11730d: "Show all results",
2804
3002
  s9094c0cde8fb5058: "No results found",
@@ -2808,20 +3006,20 @@ const Tr = {
2808
3006
  s4979bd417e7c8052: "All facts in this bundle",
2809
3007
  s57a40de45f324b96: "Bundle created on",
2810
3008
  sd3682395cf86f913: "Bundle updated on"
2811
- }, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3009
+ }, Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2812
3010
  __proto__: null,
2813
- templates: Tr
2814
- }, Symbol.toStringTag, { value: "Module" })), Nr = "en", he = [
3011
+ templates: qr
3012
+ }, Symbol.toStringTag, { value: "Module" })), zr = "en", fe = [
2815
3013
  "en"
2816
- ], Mr = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Fr }), Br = new Map(
2817
- he.map((e) => [
3014
+ ], Vr = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Hr }), Wr = new Map(
3015
+ fe.map((e) => [
2818
3016
  e,
2819
- Mr[`../../generated/locales/${e}.ts`]
3017
+ Vr[`../../generated/locales/${e}.ts`]
2820
3018
  ])
2821
- ), { getLocale: Zt, setLocale: Xt } = vr({
2822
- sourceLocale: Nr,
2823
- targetLocales: he,
2824
- loadLocale: async (e) => Br.get(e)
3019
+ ), { getLocale: Qt, setLocale: Yt } = _r({
3020
+ sourceLocale: zr,
3021
+ targetLocales: fe,
3022
+ loadLocale: async (e) => Wr.get(e)
2825
3023
  });
2826
- window.getLocale = window.getLocale ? window.getLocale.push(Zt) : [Zt];
2827
- window.setLocale = window.setLocale ? window.setLocale.push(Xt) : [Xt];
3024
+ window.getLocale = window.getLocale ? window.getLocale.push(Qt) : [Qt];
3025
+ window.setLocale = window.setLocale ? window.setLocale.push(Yt) : [Yt];