@startinblox/components-ds4go 2.2.3 → 2.3.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.
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
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, xt = /* @__PURE__ */ Symbol(), Ot = /* @__PURE__ */ new WeakMap();
1
+ import { StoreType as he, StoreService as pe } from "https://cdn.jsdelivr.net/npm/@startinblox/core@beta/+esm";
2
+ const rt = globalThis, Ct = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = /* @__PURE__ */ Symbol(), Ot = /* @__PURE__ */ new WeakMap();
3
3
  let Qt = class {
4
- constructor(t, r, i) {
5
- if (this._$cssResult$ = !0, i !== xt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
- this.cssText = t, this.t = r;
4
+ constructor(t, s, i) {
5
+ if (this._$cssResult$ = !0, i !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
6
+ this.cssText = t, this.t = s;
7
7
  }
8
8
  get styleSheet() {
9
9
  let t = this.o;
10
- const r = this.t;
10
+ const s = this.t;
11
11
  if (Ct && t === void 0) {
12
- const i = r !== void 0 && r.length === 1;
13
- i && (t = Ot.get(r)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ot.set(r, t));
12
+ const i = s !== void 0 && s.length === 1;
13
+ i && (t = Ot.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ot.set(s, t));
14
14
  }
15
15
  return t;
16
16
  }
@@ -18,25 +18,25 @@ let Qt = class {
18
18
  return this.cssText;
19
19
  }
20
20
  };
21
- const St = (e) => new Qt(typeof e == "string" ? e : e + "", void 0, xt), Y = (e, ...t) => {
22
- const r = e.length === 1 ? e[0] : t.reduce((i, s, o) => i + ((n) => {
21
+ const xt = (e) => new Qt(typeof e == "string" ? e : e + "", void 0, St), lt = (e, ...t) => {
22
+ const s = e.length === 1 ? e[0] : t.reduce((i, r, 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
- })(s) + e[o + 1], e[0]);
27
- return new Qt(r, e, xt);
26
+ })(r) + e[o + 1], e[0]);
27
+ return new Qt(s, e, St);
28
28
  }, fe = (e, t) => {
29
- if (Ct) e.adoptedStyleSheets = t.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
30
- else for (const r of t) {
31
- const i = document.createElement("style"), s = it.litNonce;
32
- s !== void 0 && i.setAttribute("nonce", s), i.textContent = r.cssText, e.appendChild(i);
33
- }
34
- }, kt = Ct ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
35
- let r = "";
36
- for (const i of t.cssRules) r += i.cssText;
37
- return St(r);
29
+ if (Ct) e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
30
+ else for (const s of t) {
31
+ const i = document.createElement("style"), r = rt.litNonce;
32
+ r !== void 0 && i.setAttribute("nonce", r), i.textContent = s.cssText, e.appendChild(i);
33
+ }
34
+ }, Dt = Ct ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
35
+ let s = "";
36
+ for (const i of t.cssRules) s += i.cssText;
37
+ return xt(s);
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: me, defineProperty: ge, getOwnPropertyDescriptor: ye, getOwnPropertyNames: ve, getOwnPropertySymbols: be, getPrototypeOf: $e } = Object, dt = globalThis, Lt = dt.trustedTypes, _e = Lt ? Lt.emptyScript : "", we = dt.reactiveElementPolyfillSupport, K = (e, t) => e, it = { toAttribute(e, t) {
40
40
  switch (t) {
41
41
  case Boolean:
42
42
  e = e ? _e : null;
@@ -47,51 +47,51 @@ const { is: me, defineProperty: ge, getOwnPropertyDescriptor: ye, getOwnProperty
47
47
  }
48
48
  return e;
49
49
  }, fromAttribute(e, t) {
50
- let r = e;
50
+ let s = e;
51
51
  switch (t) {
52
52
  case Boolean:
53
- r = e !== null;
53
+ s = e !== null;
54
54
  break;
55
55
  case Number:
56
- r = e === null ? null : Number(e);
56
+ s = e === null ? null : Number(e);
57
57
  break;
58
58
  case Object:
59
59
  case Array:
60
60
  try {
61
- r = JSON.parse(e);
61
+ s = JSON.parse(e);
62
62
  } catch {
63
- r = null;
63
+ s = null;
64
64
  }
65
65
  }
66
- return r;
67
- } }, ht = (e, t) => !me(e, t), It = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: ht };
66
+ return s;
67
+ } }, ut = (e, t) => !me(e, t), kt = { attribute: !0, type: String, converter: it, reflect: !1, useDefault: !1, hasChanged: ut };
68
68
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), dt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
69
- let F = class extends HTMLElement {
69
+ let M = class extends HTMLElement {
70
70
  static addInitializer(t) {
71
71
  this._$Ei(), (this.l ??= []).push(t);
72
72
  }
73
73
  static get observedAttributes() {
74
74
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
75
75
  }
76
- static createProperty(t, r = It) {
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
- const i = /* @__PURE__ */ Symbol(), s = this.getPropertyDescriptor(t, i, r);
79
- s !== void 0 && ge(this.prototype, t, s);
76
+ static createProperty(t, s = kt) {
77
+ if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
78
+ const i = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, i, s);
79
+ r !== void 0 && ge(this.prototype, t, r);
80
80
  }
81
81
  }
82
- static getPropertyDescriptor(t, r, i) {
83
- const { get: s, set: o } = ye(this.prototype, t) ?? { get() {
84
- return this[r];
82
+ static getPropertyDescriptor(t, s, i) {
83
+ const { get: r, set: o } = ye(this.prototype, t) ?? { get() {
84
+ return this[s];
85
85
  }, set(n) {
86
- this[r] = n;
86
+ this[s] = n;
87
87
  } };
88
- return { get: s, set(n) {
89
- const a = s?.call(this);
88
+ return { get: r, set(n) {
89
+ const a = r?.call(this);
90
90
  o?.call(this, n), this.requestUpdate(t, a, i);
91
91
  }, configurable: !0, enumerable: !0 };
92
92
  }
93
93
  static getPropertyOptions(t) {
94
- return this.elementProperties.get(t) ?? It;
94
+ return this.elementProperties.get(t) ?? kt;
95
95
  }
96
96
  static _$Ei() {
97
97
  if (this.hasOwnProperty(K("elementProperties"))) return;
@@ -101,31 +101,31 @@ let F = class extends HTMLElement {
101
101
  static finalize() {
102
102
  if (this.hasOwnProperty(K("finalized"))) return;
103
103
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(K("properties"))) {
104
- const r = this.properties, i = [...ve(r), ...be(r)];
105
- for (const s of i) this.createProperty(s, r[s]);
104
+ const s = this.properties, i = [...ve(s), ...be(s)];
105
+ for (const r of i) this.createProperty(r, s[r]);
106
106
  }
107
107
  const t = this[Symbol.metadata];
108
108
  if (t !== null) {
109
- const r = litPropertyMetadata.get(t);
110
- if (r !== void 0) for (const [i, s] of r) this.elementProperties.set(i, s);
109
+ const s = litPropertyMetadata.get(t);
110
+ if (s !== void 0) for (const [i, r] of s) this.elementProperties.set(i, r);
111
111
  }
112
112
  this._$Eh = /* @__PURE__ */ new Map();
113
- for (const [r, i] of this.elementProperties) {
114
- const s = this._$Eu(r, i);
115
- s !== void 0 && this._$Eh.set(s, r);
113
+ for (const [s, i] of this.elementProperties) {
114
+ const r = this._$Eu(s, i);
115
+ r !== void 0 && this._$Eh.set(r, s);
116
116
  }
117
117
  this.elementStyles = this.finalizeStyles(this.styles);
118
118
  }
119
119
  static finalizeStyles(t) {
120
- const r = [];
120
+ const s = [];
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));
125
- return r;
123
+ for (const r of i) s.unshift(Dt(r));
124
+ } else t !== void 0 && s.push(Dt(t));
125
+ return s;
126
126
  }
127
- static _$Eu(t, r) {
128
- const i = r.attribute;
127
+ static _$Eu(t, s) {
128
+ const i = s.attribute;
129
129
  return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
130
130
  }
131
131
  constructor() {
@@ -141,8 +141,8 @@ let F = class extends HTMLElement {
141
141
  this._$EO?.delete(t);
142
142
  }
143
143
  _$E_() {
144
- const t = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties;
145
- for (const i of r.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
144
+ const t = /* @__PURE__ */ new Map(), s = this.constructor.elementProperties;
145
+ for (const i of s.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
146
146
  t.size > 0 && (this._$Ep = t);
147
147
  }
148
148
  createRenderRoot() {
@@ -157,42 +157,42 @@ let F = class extends HTMLElement {
157
157
  disconnectedCallback() {
158
158
  this._$EO?.forEach((t) => t.hostDisconnected?.());
159
159
  }
160
- attributeChangedCallback(t, r, i) {
160
+ attributeChangedCallback(t, s, i) {
161
161
  this._$AK(t, i);
162
162
  }
163
- _$ET(t, r) {
164
- const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
165
- if (s !== void 0 && i.reflect === !0) {
166
- const o = (i.converter?.toAttribute !== void 0 ? i.converter : ot).toAttribute(r, i.type);
167
- this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
163
+ _$ET(t, s) {
164
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
165
+ if (r !== void 0 && i.reflect === !0) {
166
+ const o = (i.converter?.toAttribute !== void 0 ? i.converter : it).toAttribute(s, i.type);
167
+ this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
168
168
  }
169
169
  }
170
- _$AK(t, r) {
171
- const i = this.constructor, s = i._$Eh.get(t);
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;
174
- this._$Em = s;
175
- const a = n.fromAttribute(r, o.type);
176
- this[s] = a ?? this._$Ej?.get(s) ?? a, this._$Em = null;
170
+ _$AK(t, s) {
171
+ const i = this.constructor, r = i._$Eh.get(t);
172
+ if (r !== void 0 && this._$Em !== r) {
173
+ const o = i.getPropertyOptions(r), n = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : it;
174
+ this._$Em = r;
175
+ const a = n.fromAttribute(s, o.type);
176
+ this[r] = a ?? this._$Ej?.get(r) ?? a, this._$Em = null;
177
177
  }
178
178
  }
179
- requestUpdate(t, r, i, s = !1, o) {
179
+ requestUpdate(t, s, i, r = !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;
183
- this.C(t, r, i);
182
+ if (r === !1 && (o = this[t]), i ??= n.getPropertyOptions(t), !((i.hasChanged ?? ut)(o, s) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(n._$Eu(t, i)))) return;
183
+ this.C(t, s, i);
184
184
  }
185
185
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
186
186
  }
187
- C(t, r, { useDefault: i, reflect: s, wrapped: o }, n) {
188
- i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, n ?? r ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (r = void 0), this._$AL.set(t, r)), s === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
187
+ C(t, s, { useDefault: i, reflect: r, wrapped: o }, n) {
188
+ i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, n ?? s ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
189
189
  }
190
190
  async _$EP() {
191
191
  this.isUpdatePending = !0;
192
192
  try {
193
193
  await this._$ES;
194
- } catch (r) {
195
- Promise.reject(r);
194
+ } catch (s) {
195
+ Promise.reject(s);
196
196
  }
197
197
  const t = this.scheduleUpdate();
198
198
  return t != null && await t, !this.isUpdatePending;
@@ -204,28 +204,28 @@ let F = class extends HTMLElement {
204
204
  if (!this.isUpdatePending) return;
205
205
  if (!this.hasUpdated) {
206
206
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
207
- for (const [s, o] of this._$Ep) this[s] = o;
207
+ for (const [r, o] of this._$Ep) this[r] = o;
208
208
  this._$Ep = void 0;
209
209
  }
210
210
  const i = this.constructor.elementProperties;
211
- if (i.size > 0) for (const [s, o] of i) {
212
- const { wrapped: n } = o, a = this[s];
213
- n !== !0 || this._$AL.has(s) || a === void 0 || this.C(s, void 0, o, a);
211
+ if (i.size > 0) for (const [r, o] of i) {
212
+ const { wrapped: n } = o, a = this[r];
213
+ n !== !0 || this._$AL.has(r) || a === void 0 || this.C(r, void 0, o, a);
214
214
  }
215
215
  }
216
216
  let t = !1;
217
- const r = this._$AL;
217
+ const s = this._$AL;
218
218
  try {
219
- t = this.shouldUpdate(r), t ? (this.willUpdate(r), this._$EO?.forEach((i) => i.hostUpdate?.()), this.update(r)) : this._$EM();
219
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach((i) => i.hostUpdate?.()), this.update(s)) : this._$EM();
220
220
  } catch (i) {
221
221
  throw t = !1, this._$EM(), i;
222
222
  }
223
- t && this._$AE(r);
223
+ t && this._$AE(s);
224
224
  }
225
225
  willUpdate(t) {
226
226
  }
227
227
  _$AE(t) {
228
- this._$EO?.forEach((r) => r.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
228
+ this._$EO?.forEach((s) => s.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
229
229
  }
230
230
  _$EM() {
231
231
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -240,79 +240,79 @@ let F = class extends HTMLElement {
240
240
  return !0;
241
241
  }
242
242
  update(t) {
243
- this._$Eq &&= this._$Eq.forEach((r) => this._$ET(r, this[r])), this._$EM();
243
+ this._$Eq &&= this._$Eq.forEach((s) => this._$ET(s, this[s])), this._$EM();
244
244
  }
245
245
  updated(t) {
246
246
  }
247
247
  firstUpdated(t) {
248
248
  }
249
249
  };
250
- F.elementStyles = [], F.shadowRootOptions = { mode: "open" }, F[K("elementProperties")] = /* @__PURE__ */ new Map(), F[K("finalized")] = /* @__PURE__ */ new Map(), we?.({ ReactiveElement: F }), (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$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + x, Ae = `<${te}>`, L = document, G = () => L.createComment(""), J = (e) => e === null || typeof e != "object" && typeof e != "function", jt = Array.isArray, Ce = (e) => jt(e) || typeof e?.[Symbol.iterator] == "function", mt = `[
250
+ M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[K("elementProperties")] = /* @__PURE__ */ new Map(), M[K("finalized")] = /* @__PURE__ */ new Map(), we?.({ ReactiveElement: M }), (dt.reactiveElementVersions ??= []).push("2.1.2");
251
+ const Pt = globalThis, Tt = (e) => e, ot = Pt.trustedTypes, It = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Yt = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, te = "?" + x, Ae = `<${te}>`, I = document, G = () => I.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
252
  \f\r]`, W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ft = /-->/g, Mt = />/g, O = RegExp(`>|${mt}(?:([^\\s"'>=/]+)(${mt}*=${mt}*(?:[^
253
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Nt = /'/g, Bt = /"/g, ee = /^(?:script|style|textarea|title)$/i, xe = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), d = xe(1), H = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), qt = /* @__PURE__ */ new WeakMap(), D = L.createTreeWalker(L, 129);
254
- function re(e, t) {
253
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Nt = /'/g, Bt = /"/g, ee = /^(?:script|style|textarea|title)$/i, Se = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), u = Se(1), H = /* @__PURE__ */ Symbol.for("lit-noChange"), l = /* @__PURE__ */ Symbol.for("lit-nothing"), qt = /* @__PURE__ */ new WeakMap(), k = I.createTreeWalker(I, 129);
254
+ function se(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 It !== void 0 ? It.createHTML(t) : t;
257
257
  }
258
- const Se = (e, t) => {
259
- const r = e.length - 1, i = [];
260
- let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = W;
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 = Mt : 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 : Nt) : n === Bt || n === Nt ? n = O : n === Ft || n === Mt ? 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) + x + $) : l + x + (p === -2 ? a : $);
267
- }
268
- return [re(e, o + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
258
+ const xe = (e, t) => {
259
+ const s = e.length - 1, i = [];
260
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = W;
261
+ for (let a = 0; a < s; a++) {
262
+ const c = e[a];
263
+ let h, m, p = -1, _ = 0;
264
+ for (; _ < c.length && (n.lastIndex = _, m = n.exec(c), m !== null); ) _ = n.lastIndex, n === W ? m[1] === "!--" ? n = Ft : m[1] !== void 0 ? n = Mt : m[2] !== void 0 ? (ee.test(m[2]) && (r = RegExp("</" + m[2], "g")), n = O) : m[3] !== void 0 && (n = O) : n === O ? m[0] === ">" ? (n = r ?? W, p = -1) : m[1] === void 0 ? p = -2 : (p = n.lastIndex - m[2].length, h = m[1], n = m[3] === void 0 ? O : m[3] === '"' ? Bt : Nt) : n === Bt || n === Nt ? n = O : n === Ft || n === Mt ? n = W : (n = O, r = void 0);
265
+ const w = n === O && e[a + 1].startsWith("/>") ? " " : "";
266
+ o += n === W ? c + Ae : p >= 0 ? (i.push(h), c.slice(0, p) + Yt + c.slice(p) + x + w) : c + x + (p === -2 ? a : w);
267
+ }
268
+ return [se(e, o + (e[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
269
269
  };
270
270
  class Z {
271
- constructor({ strings: t, _$litType$: r }, i) {
272
- let s;
271
+ constructor({ strings: t, _$litType$: s }, i) {
272
+ let r;
273
273
  this.parts = [];
274
274
  let o = 0, n = 0;
275
- const a = t.length - 1, l = this.parts, [u, f] = Se(t, r);
276
- if (this.el = Z.createElement(u, i), D.currentNode = this.el.content, r === 2 || r === 3) {
275
+ const a = t.length - 1, c = this.parts, [h, m] = xe(t, s);
276
+ if (this.el = Z.createElement(h, i), k.currentNode = this.el.content, s === 2 || s === 3) {
277
277
  const p = this.el.content.firstChild;
278
278
  p.replaceWith(...p.childNodes);
279
279
  }
280
- for (; (s = D.nextNode()) !== null && l.length < a; ) {
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(x), 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(x) && (l.push({ type: 6, index: o }), s.removeAttribute(p));
286
- if (ee.test(s.tagName)) {
287
- const p = s.textContent.split(x), b = p.length - 1;
288
- if (b > 0) {
289
- s.textContent = nt ? nt.emptyScript : "";
290
- for (let $ = 0; $ < b; $++) s.append(p[$], G()), D.nextNode(), l.push({ type: 2, index: ++o });
291
- s.append(p[b], G());
280
+ for (; (r = k.nextNode()) !== null && c.length < a; ) {
281
+ if (r.nodeType === 1) {
282
+ if (r.hasAttributes()) for (const p of r.getAttributeNames()) if (p.endsWith(Yt)) {
283
+ const _ = m[n++], w = r.getAttribute(p).split(x), et = /([.?@])?(.*)/.exec(_);
284
+ c.push({ type: 1, index: o, name: et[2], strings: w, ctor: et[1] === "." ? je : et[1] === "?" ? Ee : et[1] === "@" ? Re : ht }), r.removeAttribute(p);
285
+ } else p.startsWith(x) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
286
+ if (ee.test(r.tagName)) {
287
+ const p = r.textContent.split(x), _ = p.length - 1;
288
+ if (_ > 0) {
289
+ r.textContent = ot ? ot.emptyScript : "";
290
+ for (let w = 0; w < _; w++) r.append(p[w], G()), k.nextNode(), c.push({ type: 2, index: ++o });
291
+ r.append(p[_], G());
292
292
  }
293
293
  }
294
- } else if (s.nodeType === 8) if (s.data === te) l.push({ type: 2, index: o });
294
+ } else if (r.nodeType === 8) if (r.data === te) c.push({ type: 2, index: o });
295
295
  else {
296
296
  let p = -1;
297
- for (; (p = s.data.indexOf(x, p + 1)) !== -1; ) l.push({ type: 7, index: o }), p += x.length - 1;
297
+ for (; (p = r.data.indexOf(x, p + 1)) !== -1; ) c.push({ type: 7, index: o }), p += x.length - 1;
298
298
  }
299
299
  o++;
300
300
  }
301
301
  }
302
- static createElement(t, r) {
303
- const i = L.createElement("template");
302
+ static createElement(t, s) {
303
+ const i = I.createElement("template");
304
304
  return i.innerHTML = t, i;
305
305
  }
306
306
  }
307
- function z(e, t, r = e, i) {
307
+ function z(e, t, s = e, i) {
308
308
  if (t === H) return t;
309
- let s = i !== void 0 ? r._$Co?.[i] : r._$Cl;
309
+ let r = i !== void 0 ? s._$Co?.[i] : s._$Cl;
310
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;
311
+ return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(e), r._$AT(e, s, i)), i !== void 0 ? (s._$Co ??= [])[i] = r : s._$Cl = r), r !== void 0 && (t = z(e, r._$AS(e, t.values), r, i)), t;
312
312
  }
313
313
  class Pe {
314
- constructor(t, r) {
315
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
314
+ constructor(t, s) {
315
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
316
316
  }
317
317
  get parentNode() {
318
318
  return this._$AM.parentNode;
@@ -321,34 +321,34 @@ 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 ?? L).importNode(r, !0);
325
- D.currentNode = s;
326
- let o = D.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: s }, parts: i } = this._$AD, r = (t?.creationScope ?? I).importNode(s, !0);
325
+ k.currentNode = r;
326
+ let o = k.nextNode(), n = 0, a = 0, c = i[0];
327
+ for (; c !== void 0; ) {
328
+ if (n === c.index) {
329
+ let h;
330
+ c.type === 2 ? h = new Y(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new Ue(o, this, t)), this._$AV.push(h), c = i[++a];
331
331
  }
332
- n !== l?.index && (o = D.nextNode(), n++);
332
+ n !== c?.index && (o = k.nextNode(), n++);
333
333
  }
334
- return D.currentNode = L, s;
334
+ return k.currentNode = I, r;
335
335
  }
336
336
  p(t) {
337
- let r = 0;
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++;
337
+ let s = 0;
338
+ for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
339
339
  }
340
340
  }
341
- class tt {
341
+ class Y {
342
342
  get _$AU() {
343
343
  return this._$AM?._$AU ?? this._$Cv;
344
344
  }
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;
345
+ constructor(t, s, i, r) {
346
+ this.type = 2, this._$AH = l, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
347
347
  }
348
348
  get parentNode() {
349
349
  let t = this._$AA.parentNode;
350
- const r = this._$AM;
351
- return r !== void 0 && t?.nodeType === 11 && (t = r.parentNode), t;
350
+ const s = this._$AM;
351
+ return s !== void 0 && t?.nodeType === 11 && (t = s.parentNode), t;
352
352
  }
353
353
  get startNode() {
354
354
  return this._$AA;
@@ -356,8 +356,8 @@ class tt {
356
356
  get endNode() {
357
357
  return this._$AB;
358
358
  }
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);
359
+ _$AI(t, s = this) {
360
+ t = z(this, t, s), J(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : 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);
361
361
  }
362
362
  O(t) {
363
363
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -366,94 +366,94 @@ 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(L.createTextNode(t)), this._$AH = t;
369
+ this._$AH !== l && J(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.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);
373
- if (this._$AH?._$AD === s) this._$AH.p(r);
372
+ const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Z.createElement(se(i.h, i.h[0]), this.options)), i);
373
+ if (this._$AH?._$AD === r) this._$AH.p(s);
374
374
  else {
375
- const o = new Pe(s, this), n = o.u(this.options);
376
- o.p(r), this.T(n), this._$AH = o;
375
+ const o = new Pe(r, this), n = o.u(this.options);
376
+ o.p(s), 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 s = qt.get(t.strings);
381
+ return s === void 0 && qt.set(t.strings, s = new Z(t)), s;
382
382
  }
383
383
  k(t) {
384
384
  jt(this._$AH) || (this._$AH = [], this._$AR());
385
- const r = this._$AH;
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++;
388
- s < r.length && (this._$AR(i && i._$AB.nextSibling, s), r.length = s);
389
- }
390
- _$AR(t = this._$AA.nextSibling, r) {
391
- for (this._$AP?.(!1, !0, r); t !== this._$AB; ) {
392
- const i = Lt(t).nextSibling;
393
- Lt(t).remove(), t = i;
385
+ const s = this._$AH;
386
+ let i, r = 0;
387
+ for (const o of t) r === s.length ? s.push(i = new Y(this.O(G()), this.O(G()), this, this.options)) : i = s[r], i._$AI(o), r++;
388
+ r < s.length && (this._$AR(i && i._$AB.nextSibling, r), s.length = r);
389
+ }
390
+ _$AR(t = this._$AA.nextSibling, s) {
391
+ for (this._$AP?.(!1, !0, s); t !== this._$AB; ) {
392
+ const i = Tt(t).nextSibling;
393
+ Tt(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 ht {
401
401
  get tagName() {
402
402
  return this.element.tagName;
403
403
  }
404
404
  get _$AU() {
405
405
  return this._$AM._$AU;
406
406
  }
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;
407
+ constructor(t, s, i, r, o) {
408
+ this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = s, this._$AM = r, 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
- _$AI(t, r = this, i, s) {
410
+ _$AI(t, s = this, i, r) {
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 = z(this, t, s, 0), n = !J(t) || t !== this._$AH && t !== H, 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, h;
417
+ for (t = o[0], c = 0; c < o.length - 1; c++) h = z(this, a[i + c], s, c), h === H && (h = this._$AH[c]), n ||= !J(h) || h !== this._$AH[c], h === l ? t = l : t !== l && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
418
418
  }
419
- n && !s && this.j(t);
419
+ n && !r && 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 je extends ht {
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 Ee extends ht {
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 {
442
- constructor(t, r, i, s, o) {
443
- super(t, r, i, s, o), this.type = 5;
441
+ class Re extends ht {
442
+ constructor(t, s, i, r, o) {
443
+ super(t, s, i, r, o), this.type = 5;
444
444
  }
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);
448
- s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
445
+ _$AI(t, s = this) {
446
+ if ((t = z(this, t, s, 0) ?? l) === H) return;
447
+ const i = this._$AH, r = t === l && i !== l || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== l && (i === l || r);
448
+ r && 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
454
  class Ue {
455
- constructor(t, r, i) {
456
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = i;
455
+ constructor(t, s, i) {
456
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
457
457
  }
458
458
  get _$AU() {
459
459
  return this._$AM._$AU;
@@ -463,18 +463,18 @@ class Ue {
463
463
  }
464
464
  }
465
465
  const Oe = Pt.litHtmlPolyfillSupport;
466
- Oe?.(Z, tt), (Pt.litHtmlVersions ??= []).push("3.3.2");
467
- const ke = (e, t, r) => {
468
- const i = r?.renderBefore ?? t;
469
- let s = i._$litPart$;
470
- if (s === void 0) {
471
- const o = r?.renderBefore ?? null;
472
- i._$litPart$ = s = new tt(t.insertBefore(G(), o), o, void 0, r ?? {});
473
- }
474
- return s._$AI(e), s;
466
+ Oe?.(Z, Y), (Pt.litHtmlVersions ??= []).push("3.3.2");
467
+ const De = (e, t, s) => {
468
+ const i = s?.renderBefore ?? t;
469
+ let r = i._$litPart$;
470
+ if (r === void 0) {
471
+ const o = s?.renderBefore ?? null;
472
+ i._$litPart$ = r = new Y(t.insertBefore(G(), o), o, void 0, s ?? {});
473
+ }
474
+ return r._$AI(e), r;
475
475
  };
476
476
  const Et = globalThis;
477
- let q = class extends F {
477
+ let q = class extends M {
478
478
  constructor() {
479
479
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
480
480
  }
@@ -483,8 +483,8 @@ let q = class extends F {
483
483
  return this.renderOptions.renderBefore ??= t.firstChild, t;
484
484
  }
485
485
  update(t) {
486
- const r = this.render();
487
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ke(r, this.renderRoot, this.renderOptions);
486
+ const s = this.render();
487
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = De(s, this.renderRoot, this.renderOptions);
488
488
  }
489
489
  connectedCallback() {
490
490
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -497,177 +497,177 @@ let q = class extends F {
497
497
  }
498
498
  };
499
499
  q._$litElement$ = !0, q.finalized = !0, Et.litElementHydrateSupport?.({ LitElement: q });
500
- const De = Et.litElementPolyfillSupport;
501
- De?.({ LitElement: q });
500
+ const Le = Et.litElementPolyfillSupport;
501
+ Le?.({ LitElement: q });
502
502
  (Et.litElementVersions ??= []).push("4.2.2");
503
- class Ie extends q {
503
+ class ke extends q {
504
504
  constructor() {
505
505
  super(...arguments), this.object = {
506
506
  "@id": ""
507
- }, this.isType = (t, r = this.object) => {
508
- const i = r["@type"];
507
+ }, this.isType = (t, s = this.object) => {
508
+ const i = s["@type"];
509
509
  return Array.isArray(i) ? i.includes(t) : typeof i == "string" ? i === t : !1;
510
510
  };
511
511
  }
512
512
  }
513
- const V = (e) => (t, r) => {
514
- r !== void 0 ? r.addInitializer(() => {
513
+ const V = (e) => (t, s) => {
514
+ s !== void 0 ? s.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) => {
519
- const { kind: i, metadata: s } = r;
520
- let o = globalThis.litPropertyMetadata.get(s);
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
- const { name: n } = r;
518
+ const Te = { attribute: !0, type: String, converter: it, reflect: !1, hasChanged: ut }, Ie = (e = Te, t, s) => {
519
+ const { kind: i, metadata: r } = s;
520
+ let o = globalThis.litPropertyMetadata.get(r);
521
+ if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), i === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(s.name, e), i === "accessor") {
522
+ const { name: n } = s;
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
  } };
529
529
  }
530
530
  if (i === "setter") {
531
- const { name: n } = r;
531
+ const { name: n } = s;
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
539
  function y(e) {
540
- return (t, r) => typeof r == "object" ? Te(e, t, r) : ((i, s, o) => {
541
- const n = s.hasOwnProperty(o);
542
- return s.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
543
- })(e, t, r);
540
+ return (t, s) => typeof s == "object" ? Ie(e, t, s) : ((i, r, o) => {
541
+ const n = r.hasOwnProperty(o);
542
+ return r.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
543
+ })(e, t, s);
544
544
  }
545
- function m(e) {
545
+ function f(e) {
546
546
  return y({ ...e, state: !0, attribute: !1 });
547
547
  }
548
- var Fe = Object.defineProperty, Me = (e, t, r, i) => {
549
- for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
550
- (n = e[o]) && (s = n(t, r, s) || s);
551
- return s && Fe(t, r, s), s;
548
+ var Fe = Object.defineProperty, Me = (e, t, s, i) => {
549
+ for (var r = void 0, o = e.length - 1, n; o >= 0; o--)
550
+ (n = e[o]) && (r = n(t, s, r) || r);
551
+ return r && Fe(t, s, r), r;
552
552
  };
553
553
  class Rt extends q {
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, s = this.objects) => new Set(s.flatMap((r) => r["@type"])).has(t);
556
556
  }
557
557
  }
558
558
  Me([
559
559
  y({ attribute: !1 })
560
560
  ], Rt.prototype, "objects");
561
- var Ne = Object.defineProperty, j = (e, t, r, i) => {
562
- for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
563
- (n = e[o]) && (s = n(t, r, s) || s);
564
- return s && Ne(t, r, s), s;
561
+ var Ne = Object.defineProperty, E = (e, t, s, i) => {
562
+ for (var r = void 0, o = e.length - 1, n; o >= 0; o--)
563
+ (n = e[o]) && (r = n(t, s, r) || r);
564
+ return r && Ne(t, s, r), r;
565
565
  };
566
- class v extends Rt {
566
+ class b extends Rt {
567
567
  constructor({
568
568
  defaultRoute: t = !1,
569
- setupSubscriptions: r = !0,
569
+ setupSubscriptions: s = !0,
570
570
  ignoreRouter: i = !1
571
571
  } = {}) {
572
572
  super(), this.cherryPickedProperties = [], this.currentRoute = "";
573
- const s = () => {
574
- document.readyState === "complete" && this._attach(t, r, i).then(
573
+ const r = () => {
574
+ document.readyState === "complete" && this._attach(t, s, i).then(
575
575
  (o) => {
576
576
  o && this.requestUpdate();
577
577
  }
578
578
  );
579
579
  };
580
- document.readyState === "complete" ? s() : document.addEventListener("readystatechange", s);
580
+ document.readyState === "complete" ? r() : document.addEventListener("readystatechange", r);
581
581
  }
582
- async _attach(t, r, i) {
583
- return !this.orbit && window.orbit && (this.orbit = window.orbit, r) ? (se({
582
+ async _attach(t, s, i) {
583
+ return !this.orbit && window.orbit && (this.orbit = window.orbit, s) ? (re({
584
584
  component: this,
585
585
  defaultRoute: t,
586
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);
587
+ }), this.route && (this.component = this.orbit.getComponentFromRoute(this.route), this.component && this.orbit.components.map((r) => (r.uniq === this.component.uniq && (r.instance = this), r))), await this._afterAttach(), Promise.resolve(!0)) : Promise.resolve(!1);
588
588
  }
589
589
  async _afterAttach() {
590
590
  return Promise.resolve();
591
591
  }
592
592
  _navigate(t) {
593
593
  window.sibRouter.previousRoute = this.currentRoute, window.sibRouter.previousResource = window.sibRouter.currentResource;
594
- const r = t.target?.closest("[navigation-target]");
595
- let i = r.getAttribute("navigation-target");
596
- const s = r.getAttribute("navigation-subrouter"), o = r.getAttribute("navigation-resource"), n = r.getAttribute("navigation-rdf-type");
594
+ const s = t.target?.closest("[navigation-target]");
595
+ let i = s.getAttribute("navigation-target");
596
+ const r = s.getAttribute("navigation-subrouter"), o = s.getAttribute("navigation-resource"), n = s.getAttribute("navigation-rdf-type");
597
597
  if (n) {
598
598
  const a = window.orbit?.components?.filter(
599
- (l) => l?.routeAttributes?.["rdf-type"] === n
599
+ (c) => c?.routeAttributes?.["rdf-type"] === n
600
600
  );
601
601
  a && (i = a[0]?.uniq);
602
602
  }
603
- i && N(
604
- (window.orbit ? window.orbit.getRoute(i, !0) : i) + (s ? `-${s}` : ""),
603
+ i && L(
604
+ (window.orbit ? window.orbit.getRoute(i, !0) : i) + (r ? `-${r}` : ""),
605
605
  o
606
606
  ), t.preventDefault();
607
607
  }
608
608
  _normalizeLdpContains(t) {
609
609
  return !Array.isArray(t) && t !== null ? [t] : t;
610
610
  }
611
- async _expandContainer(t, r = !0, i = this.cherryPickedProperties) {
612
- const s = [];
611
+ async _expandContainer(t, s = !0, i = this.cherryPickedProperties) {
612
+ const r = [];
613
613
  for (const o of t) {
614
614
  const n = await this._getProxyValue(
615
615
  await o,
616
- r,
616
+ s,
617
617
  i
618
618
  );
619
- n && s.push(n);
619
+ n && r.push(n);
620
620
  }
621
- return s;
621
+ return r;
622
622
  }
623
- async _getProperties(t, r = !0, i = this.cherryPickedProperties) {
624
- const s = await t.properties, o = {
623
+ async _getProperties(t, s = !0, i = this.cherryPickedProperties) {
624
+ const r = await t.properties, o = {
625
625
  "@id": t["@id"],
626
626
  "@type": t["@type"],
627
627
  "@context": t.serverContext,
628
628
  _originalResource: t
629
629
  };
630
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(
631
+ r?.includes(n.key) && (o[n.value] = await t.get(n.key), n.expand && (o[n.value] = await this._getProxyValue(
632
632
  o[n.value],
633
- r,
633
+ s,
634
634
  i
635
635
  )), n.cast && (o[n.value] = await n.cast(o[n.value])));
636
636
  return await this._responseAdaptator(o);
637
637
  }
638
638
  async _hasCherryPickedProperties(t) {
639
- const r = await t.properties;
639
+ const s = await t.properties;
640
640
  for (const i of this.cherryPickedProperties)
641
- if (r?.includes(i.key))
641
+ if (s?.includes(i.key))
642
642
  return !0;
643
643
  return !1;
644
644
  }
645
- async _getProxyValue(t, r = !0, i = this.cherryPickedProperties) {
645
+ async _getProxyValue(t, s = !0, i = this.cherryPickedProperties) {
646
646
  try {
647
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(
648
+ let r = t;
649
+ if (typeof t == "string" && (r = await window.sibStore.getData(t, Wt)), typeof t != "string" && t.isFullResource && (t.isFullResource?.() || (r = await window.sibStore.getData(
650
650
  t["@id"],
651
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))
652
+ ))), typeof t != "string" && !t.isFullResource && (r.properties = Object.keys(r), r.get = (o) => r[o]), !r) return { _originalResource: r };
653
+ if (typeof r == "object" && r !== null) {
654
+ if (r.isContainer?.() && r["ldp:contains"]) {
655
+ if (await this._hasCherryPickedProperties(r))
656
656
  return await this._getProperties(
657
- s,
658
657
  r,
658
+ s,
659
659
  i
660
660
  );
661
661
  const o = this._normalizeLdpContains(
662
- await s["ldp:contains"]
662
+ await r["ldp:contains"]
663
663
  );
664
664
  return await this._expandContainer(
665
665
  o,
666
- r,
666
+ s,
667
667
  i
668
668
  );
669
669
  }
670
- return await this._getProperties(s, r, i);
670
+ return await this._getProperties(r, s, i);
671
671
  }
672
672
  }
673
673
  return;
@@ -679,53 +679,53 @@ class v extends Rt {
679
679
  }
680
680
  gatekeeper() {
681
681
  if (!this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute) || !this.dataSrc)
682
- return c;
682
+ return l;
683
683
  }
684
684
  }
685
- j([
685
+ E([
686
686
  y({ attribute: "default-data-src", reflect: !0 })
687
- ], v.prototype, "defaultDataSrc");
688
- j([
687
+ ], b.prototype, "defaultDataSrc");
688
+ E([
689
689
  y({ attribute: "data-src", reflect: !0 })
690
- ], v.prototype, "dataSrc");
691
- j([
690
+ ], b.prototype, "dataSrc");
691
+ E([
692
692
  y({ attribute: "nested-field" })
693
- ], v.prototype, "nestedField");
694
- j([
693
+ ], b.prototype, "nestedField");
694
+ E([
695
695
  y({ attribute: "uniq" })
696
- ], v.prototype, "uniq");
697
- j([
696
+ ], b.prototype, "uniq");
697
+ E([
698
698
  y({ attribute: "route" })
699
- ], v.prototype, "route");
700
- j([
699
+ ], b.prototype, "route");
700
+ E([
701
701
  y({ attribute: !1 })
702
- ], v.prototype, "cherryPickedProperties");
703
- j([
704
- m()
705
- ], v.prototype, "orbit");
706
- j([
707
- m()
708
- ], v.prototype, "currentRoute");
702
+ ], b.prototype, "cherryPickedProperties");
703
+ E([
704
+ f()
705
+ ], b.prototype, "orbit");
706
+ E([
707
+ f()
708
+ ], b.prototype, "currentRoute");
709
709
  function B(e) {
710
710
  return e ? e.replace(/^urn:uuid:/i, "").replace(/^urn:tems:/i, "") : "";
711
711
  }
712
- function Be(e, t, r) {
712
+ function Be(e, t, s) {
713
713
  if (!e) return null;
714
714
  const i = JSON.parse(JSON.stringify(e));
715
715
  i["@id"] && (i["@id"] = B(i["@id"]));
716
- const s = M(t, ["@id"]) || "";
717
- return i.target = B(s), i;
716
+ const r = N(t, ["@id"]) || "";
717
+ return i.target = B(r), i;
718
718
  }
719
- function M(e, t) {
719
+ function N(e, t) {
720
720
  if (t.length === 0)
721
721
  return;
722
- let r = e;
722
+ let s = e;
723
723
  for (const i of t) {
724
- if (r == null)
724
+ if (s == null)
725
725
  return;
726
- r = r[i];
726
+ s = s[i];
727
727
  }
728
- return r;
728
+ return s;
729
729
  }
730
730
  class qe {
731
731
  constructor(t) {
@@ -734,81 +734,81 @@ class qe {
734
734
  /**
735
735
  * Maps source data to TEMS-compatible resource
736
736
  */
737
- map(t, r = {}) {
737
+ map(t, s = {}) {
738
738
  const i = {};
739
- for (const [s, o] of Object.entries(this.config.baseFields)) {
740
- const n = this.mapField(t, o, r);
741
- n !== void 0 && (i[s] = n);
739
+ for (const [r, o] of Object.entries(this.config.baseFields)) {
740
+ const n = this.mapField(t, o, s);
741
+ n !== void 0 && (i[r] = n);
742
742
  }
743
743
  if (this.config.containerFields)
744
- for (const [s, o] of Object.entries(
744
+ for (const [r, o] of Object.entries(
745
745
  this.config.containerFields
746
746
  )) {
747
- const n = this.mapContainerField(t, o, r);
748
- n && (i[s] = n);
747
+ const n = this.mapContainerField(t, o, s);
748
+ n && (i[r] = n);
749
749
  }
750
750
  if (this.config.nestedObjects)
751
- for (const [s, o] of Object.entries(
751
+ for (const [r, o] of Object.entries(
752
752
  this.config.nestedObjects
753
753
  )) {
754
- const n = this.mapNestedObject(t, o, r);
755
- n && (i[s] = n);
754
+ const n = this.mapNestedObject(t, o, s);
755
+ n && (i[r] = n);
756
756
  }
757
757
  if (this.config.contractFields)
758
- for (const [s, o] of Object.entries(
758
+ for (const [r, o] of Object.entries(
759
759
  this.config.contractFields
760
760
  )) {
761
- const n = this.mapField(t, o, r);
762
- n !== void 0 && (i[s] = n);
761
+ const n = this.mapField(t, o, s);
762
+ n !== void 0 && (i[r] = n);
763
763
  }
764
- return this.config.postProcess ? this.config.postProcess(i, t, r) : i;
764
+ return this.config.postProcess ? this.config.postProcess(i, t, s) : i;
765
765
  }
766
766
  /**
767
767
  * Maps a single field
768
768
  */
769
- 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;
769
+ mapField(t, s, i) {
770
+ let r = N(t, s.source);
771
+ return s.transform && (r = s.transform(r, t, i)), (r == null || r === "") && s.fallback && (typeof s.fallback == "function" ? r = s.fallback(t, i) : r = N(t, [s.fallback])), (r == null || r === "") && (r = s.defaultValue), r;
772
772
  }
773
773
  /**
774
774
  * Maps a container field (array wrapped in LDP container)
775
775
  */
776
- mapContainerField(t, r, i) {
777
- let s = M(t, r.source);
778
- if (!s)
776
+ mapContainerField(t, s, i) {
777
+ let r = N(t, s.source);
778
+ if (!r)
779
779
  return null;
780
- r.transform && (s = r.transform(s, t, i)), Array.isArray(s) || (s = [s]), r.filter && (s = s.filter(
781
- (n, a) => r.filter(n, a, i)
780
+ s.transform && (r = s.transform(r, t, i)), Array.isArray(r) || (r = [r]), s.filter && (r = r.filter(
781
+ (n, a) => s.filter(n, a, i)
782
782
  ));
783
- const o = s.map((n, a) => {
784
- const l = {
785
- "@type": r.itemType
783
+ const o = r.map((n, a) => {
784
+ const c = {
785
+ "@type": s.itemType
786
786
  };
787
- for (const [u, f] of Object.entries(r.itemFields)) {
788
- const p = f(n, a, i);
789
- p !== void 0 && (l[u] = p);
787
+ for (const [h, m] of Object.entries(s.itemFields)) {
788
+ const p = m(n, a, i);
789
+ p !== void 0 && (c[h] = p);
790
790
  }
791
- return l;
791
+ return c;
792
792
  });
793
793
  return {
794
- "@type": r.containerType,
794
+ "@type": s.containerType,
795
795
  "ldp:contains": o
796
796
  };
797
797
  }
798
798
  /**
799
799
  * Maps a nested object
800
800
  */
801
- mapNestedObject(t, r, i) {
802
- const s = M(t, r.source);
803
- if (!s)
801
+ mapNestedObject(t, s, i) {
802
+ const r = N(t, s.source);
803
+ if (!r)
804
804
  return null;
805
805
  const o = {};
806
- r.type && (o["@type"] = r.type);
807
- 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);
806
+ s.type && (o["@type"] = s.type);
807
+ for (const [n, a] of Object.entries(s.fields)) {
808
+ let c;
809
+ Array.isArray(a) ? c = N(r, a) : c = this.mapField(r, a, i), c !== void 0 && (o[n] = c);
810
810
  }
811
- return Object.keys(o).length > (r.type ? 1 : 0) ? o : null;
811
+ return Object.keys(o).length > (s.type ? 1 : 0) ? o : null;
812
812
  }
813
813
  /**
814
814
  * Unwraps LDP containers (converts ldp:contains arrays to plain arrays)
@@ -817,10 +817,10 @@ class qe {
817
817
  * for rendering.
818
818
  */
819
819
  static unwrapLdpContainers(t) {
820
- const r = { ...t };
821
- for (const [i, s] of Object.entries(r))
822
- s && typeof s == "object" && s["@type"] === "ldp:Container" && s["ldp:contains"] && (r[i] = s["ldp:contains"]);
823
- return r;
820
+ const s = { ...t };
821
+ for (const [i, r] of Object.entries(s))
822
+ r && typeof r == "object" && r["@type"] === "ldp:Container" && r["ldp:contains"] && (s[i] = r["ldp:contains"]);
823
+ return s;
824
824
  }
825
825
  }
826
826
  function g(e) {
@@ -840,9 +840,9 @@ const ze = {
840
840
  baseFields: {
841
841
  "@id": {
842
842
  source: ["@id"],
843
- transform: (e, t, r) => {
844
- const s = B(e || t.id || "") || e?.split("/").pop() || "unknown", o = r.providerParticipantId ? `${encodeURIComponent(r.providerParticipantId)}/` : "";
845
- return `${r.temsServiceBase || "https://api.tems.example.com/services/"}${o}${encodeURIComponent(s)}/`;
843
+ transform: (e, t, s) => {
844
+ const r = B(e || t.id || "") || e?.split("/").pop() || "unknown", o = s.providerParticipantId ? `${encodeURIComponent(s.providerParticipantId)}/` : "";
845
+ return `${s.temsServiceBase || "https://api.tems.example.com/services/"}${o}${encodeURIComponent(r)}/`;
846
846
  }
847
847
  },
848
848
  "@type": {
@@ -852,12 +852,12 @@ const ze = {
852
852
  name: {
853
853
  source: [],
854
854
  transform: (e, t) => {
855
- const r = g(t);
855
+ const s = g(t);
856
856
  return (
857
857
  // Source-level fields (EDC catalog returns these at top level)
858
858
  t.name || t.title || t["dct:title"] || t["dcterms:title"] || // EDC namespace fields at source level
859
859
  t["https://w3id.org/edc/v0.0.1/ns/name"] || t["edc:name"] || // Distribution/props level
860
- r["dct:title"] || r["dcterms:title"] || r.title || r["https://w3id.org/edc/v0.0.1/ns/name"] || r["edc:name"] || r.name || // Fall back to ID but extract meaningful part
860
+ s["dct:title"] || s["dcterms:title"] || s.title || s["https://w3id.org/edc/v0.0.1/ns/name"] || s["edc:name"] || s.name || // Fall back to ID but extract meaningful part
861
861
  (t["@id"]?.startsWith("urn:uuid:") ? t["@id"] : t["@id"]?.split("/").pop() || t["@id"]) || t.id || ""
862
862
  );
863
863
  }
@@ -865,19 +865,19 @@ const ze = {
865
865
  description: {
866
866
  source: [],
867
867
  transform: (e, t) => {
868
- const r = g(t);
868
+ const s = g(t);
869
869
  return (
870
870
  // Source-level fields (EDC catalog returns these at top level)
871
871
  t.description || t["dct:description"] || t["dcterms:description"] || t["https://w3id.org/edc/v0.0.1/ns/description"] || t["edc:description"] || // Distribution/props level
872
- r["dct:description"] || r["dcterms:description"] || r.description || r["https://w3id.org/edc/v0.0.1/ns/description"] || r["edc:description"] || ""
872
+ s["dct:description"] || s["dcterms:description"] || s.description || s["https://w3id.org/edc/v0.0.1/ns/description"] || s["edc:description"] || ""
873
873
  );
874
874
  }
875
875
  },
876
876
  long_description: {
877
877
  source: [],
878
878
  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 || "";
880
- return i.length > 0 ? `Keywords: ${i.join(", ")}` : s;
879
+ const s = g(t), i = Array.isArray(s["dcat:keyword"]) ? s["dcat:keyword"] : s["dcat:keyword"] ? [s["dcat:keyword"]] : [], r = s["dct:description"] || s["dcterms:description"] || s.description || "";
880
+ return i.length > 0 ? `Keywords: ${i.join(", ")}` : r;
881
881
  }
882
882
  },
883
883
  url: {
@@ -895,71 +895,71 @@ const ze = {
895
895
  activation_status: {
896
896
  source: [],
897
897
  transform: (e, t) => {
898
- const r = g(t);
899
- return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
898
+ const s = g(t);
899
+ return (s["dcat:endpointURL"] || s["dcat:accessService"]?.["dcat:endpointURL"] || s.endpointURL || "").trim().length > 0;
900
900
  }
901
901
  },
902
902
  is_in_app: {
903
903
  source: [],
904
904
  transform: (e, t) => {
905
- const r = g(t);
906
- return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
905
+ const s = g(t);
906
+ return (s["dcat:endpointURL"] || s["dcat:accessService"]?.["dcat:endpointURL"] || s.endpointURL || "").trim().length > 0;
907
907
  }
908
908
  },
909
909
  is_external: {
910
910
  source: [],
911
911
  transform: (e, t) => {
912
- const r = g(t);
913
- return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
912
+ const s = g(t);
913
+ return (s["dcat:endpointURL"] || s["dcat:accessService"]?.["dcat:endpointURL"] || s.endpointURL || "").trim().length > 0;
914
914
  }
915
915
  },
916
916
  is_api: {
917
917
  source: [],
918
918
  transform: (e, t) => {
919
- const r = g(t);
920
- return (r["dcat:endpointURL"] || r["dcat:accessService"]?.["dcat:endpointURL"] || r.endpointURL || "").trim().length > 0;
919
+ const s = g(t);
920
+ return (s["dcat:endpointURL"] || s["dcat:accessService"]?.["dcat:endpointURL"] || s.endpointURL || "").trim().length > 0;
921
921
  }
922
922
  },
923
923
  contact_url: {
924
924
  source: [],
925
925
  transform: (e, t) => {
926
- const r = g(t);
927
- return r["dcat:endpointDescription"] || r["dct:conformsTo"] || "";
926
+ const s = g(t);
927
+ return s["dcat:endpointDescription"] || s["dct:conformsTo"] || "";
928
928
  }
929
929
  },
930
930
  documentation_url: {
931
931
  source: [],
932
932
  transform: (e, t) => {
933
- const r = g(t);
934
- return r["dcat:endpointDescription"] || r["dct:conformsTo"] || "";
933
+ const s = g(t);
934
+ return s["dcat:endpointDescription"] || s["dct:conformsTo"] || "";
935
935
  }
936
936
  },
937
937
  creation_date: {
938
938
  source: [],
939
939
  transform: (e, t) => {
940
- const r = g(t);
941
- return r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
940
+ const s = g(t);
941
+ return s["dct:issued"] || s["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
942
942
  }
943
943
  },
944
944
  update_date: {
945
945
  source: [],
946
946
  transform: (e, t) => {
947
- const r = g(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
948
- return r["dct:modified"] || r["dcterms:modified"] || i;
947
+ const s = g(t), i = s["dct:issued"] || s["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
948
+ return s["dct:modified"] || s["dcterms:modified"] || i;
949
949
  }
950
950
  },
951
951
  release_date: {
952
952
  source: [],
953
953
  transform: (e, t) => {
954
- const r = g(t);
955
- return r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
954
+ const s = g(t);
955
+ return s["dct:issued"] || s["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
956
956
  }
957
957
  },
958
958
  last_update: {
959
959
  source: [],
960
960
  transform: (e, t) => {
961
- const r = g(t), i = r["dct:issued"] || r["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
962
- return r["dct:modified"] || r["dcterms:modified"] || i;
961
+ const s = g(t), i = s["dct:issued"] || s["dcterms:issued"] || (/* @__PURE__ */ new Date()).toISOString();
962
+ return s["dct:modified"] || s["dcterms:modified"] || i;
963
963
  }
964
964
  },
965
965
  activation_date: {
@@ -989,7 +989,7 @@ const ze = {
989
989
  return i ? Array.isArray(i) ? i : [i] : [];
990
990
  },
991
991
  itemFields: {
992
- "@id": (e, t, r) => `${r.temsCategoryBase || "https://api.tems.example.com/categories/"}${encodeURIComponent(e)}/`,
992
+ "@id": (e, t, s) => `${s.temsCategoryBase || "https://api.tems.example.com/categories/"}${encodeURIComponent(e)}/`,
993
993
  name: (e) => e
994
994
  }
995
995
  },
@@ -998,15 +998,15 @@ const ze = {
998
998
  containerType: "ldp:Container",
999
999
  itemType: "tems:Image",
1000
1000
  transform: (e, t) => {
1001
- const r = g(t), i = [];
1002
- return r["foaf:thumbnail"]?.["rdf:resource"] && i.push(r["foaf:thumbnail"]["rdf:resource"]), r["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"] && i.push(
1003
- r["dcterms:creator"]["foaf:thumbnail"]["rdf:resource"]
1001
+ const s = g(t), i = [];
1002
+ return s["foaf:thumbnail"]?.["rdf:resource"] && i.push(s["foaf:thumbnail"]["rdf:resource"]), s["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"] && i.push(
1003
+ s["dcterms:creator"]["foaf:thumbnail"]["rdf:resource"]
1004
1004
  ), i;
1005
1005
  },
1006
1006
  itemFields: {
1007
- "@id": (e, t, r) => {
1007
+ "@id": (e, t, s) => {
1008
1008
  const i = e.split("/").pop() || `image-${t}`;
1009
- return `${r.temsImageBase || "https://api.tems.example.com/images/"}${encodeURIComponent(i)}/`;
1009
+ return `${s.temsImageBase || "https://api.tems.example.com/images/"}${encodeURIComponent(i)}/`;
1010
1010
  },
1011
1011
  url: (e) => e,
1012
1012
  iframe: () => !1,
@@ -1021,27 +1021,27 @@ const ze = {
1021
1021
  fields: {
1022
1022
  "@id": {
1023
1023
  source: [],
1024
- transform: (e, t, r) => {
1025
- const i = r.providerParticipantId || r.providerName || "unknown";
1026
- return `${r.temsProviderBase || "https://api.tems.example.com/providers/"}${encodeURIComponent(i)}/`;
1024
+ transform: (e, t, s) => {
1025
+ const i = s.providerParticipantId || s.providerName || "unknown";
1026
+ return `${s.temsProviderBase || "https://api.tems.example.com/providers/"}${encodeURIComponent(i)}/`;
1027
1027
  }
1028
1028
  },
1029
1029
  name: {
1030
1030
  source: [],
1031
- transform: (e, t, r) => g(t)["dcterms:creator"]?.["foaf:name"] || r.providerName || ""
1031
+ transform: (e, t, s) => g(t)["dcterms:creator"]?.["foaf:name"] || s.providerName || ""
1032
1032
  },
1033
1033
  image: {
1034
1034
  source: [],
1035
- transform: (e, t, r) => {
1036
- const s = g(t)["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"];
1037
- if (!s) return;
1038
- const o = s.split("/").pop() || "provider-logo";
1035
+ transform: (e, t, s) => {
1036
+ const r = g(t)["dcterms:creator"]?.["foaf:thumbnail"]?.["rdf:resource"];
1037
+ if (!r) return;
1038
+ const o = r.split("/").pop() || "provider-logo";
1039
1039
  return {
1040
1040
  // FIXME: Avoid magic strings
1041
- "@id": `${r.temsImageBase || "https://api.tems.example.com/images/"}${encodeURIComponent(o)}/`,
1041
+ "@id": `${s.temsImageBase || "https://api.tems.example.com/images/"}${encodeURIComponent(o)}/`,
1042
1042
  "@type": "tems:Image",
1043
1043
  iframe: !1,
1044
- url: s,
1044
+ url: r,
1045
1045
  name: o
1046
1046
  };
1047
1047
  }
@@ -1052,11 +1052,11 @@ const ze = {
1052
1052
  contractFields: {
1053
1053
  counterPartyAddress: {
1054
1054
  source: [],
1055
- transform: (e, t, r) => r.providerAddress
1055
+ transform: (e, t, s) => s.providerAddress
1056
1056
  },
1057
1057
  counterPartyId: {
1058
1058
  source: [],
1059
- transform: (e, t, r) => r.providerParticipantId || r.providerName
1059
+ transform: (e, t, s) => s.providerParticipantId || s.providerName
1060
1060
  },
1061
1061
  assetId: {
1062
1062
  source: ["@id"],
@@ -1070,35 +1070,35 @@ const ze = {
1070
1070
  // Priority: source-level dcat:endpointUrl (index endpoint) over props-level dcat:endpointURL (protocol URL)
1071
1071
  indexEndpointUrl: {
1072
1072
  source: [],
1073
- transform: (e, t, r) => {
1073
+ transform: (e, t, s) => {
1074
1074
  const i = g(t);
1075
1075
  console.log("[DSP Mapping] indexEndpointUrl extraction for:", {
1076
1076
  assetId: t["@id"] || t.id,
1077
1077
  assetName: t.name || i.name || i["dct:title"],
1078
- provider: r.providerName,
1079
- providerParticipantId: r.providerParticipantId,
1078
+ provider: s.providerName,
1079
+ providerParticipantId: s.providerParticipantId,
1080
1080
  "source.dcat:endpointUrl": t["dcat:endpointUrl"],
1081
1081
  "props.dcat:endpointUrl": i["dcat:endpointUrl"],
1082
1082
  "source.dcat:endpointURL": t["dcat:endpointURL"],
1083
1083
  "props.dcat:accessService": i["dcat:accessService"]
1084
1084
  });
1085
- const s = t["dcat:endpointUrl"] || i["dcat:endpointUrl"] || t["dcat:endpointURL"] || i["dcat:accessService"]?.["dcat:endpointUrl"] || i["dcat:accessService"]?.["dcat:endpointURL"] || i.endpointUrl || i.endpointURL || void 0;
1086
- return console.log("[DSP Mapping] indexEndpointUrl result:", s), s;
1085
+ const r = t["dcat:endpointUrl"] || i["dcat:endpointUrl"] || t["dcat:endpointURL"] || i["dcat:accessService"]?.["dcat:endpointUrl"] || i["dcat:accessService"]?.["dcat:endpointURL"] || i.endpointUrl || i.endpointURL || void 0;
1086
+ return console.log("[DSP Mapping] indexEndpointUrl result:", r), r;
1087
1087
  }
1088
1088
  },
1089
1089
  policy: {
1090
1090
  source: ["odrl:hasPolicy"],
1091
1091
  fallback: (e) => e.hasPolicy,
1092
- transform: (e, t, r) => {
1092
+ transform: (e, t, s) => {
1093
1093
  if (!e) return;
1094
1094
  const i = Be(e, t);
1095
1095
  if (i) {
1096
- const s = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = B(n["@id"])), n)) : o;
1097
- i["odrl:permission"] && (i["odrl:permission"] = s(
1096
+ const r = (o) => Array.isArray(o) ? o.map((n) => (n["@id"] && (n["@id"] = B(n["@id"])), n)) : o;
1097
+ i["odrl:permission"] && (i["odrl:permission"] = r(
1098
1098
  i["odrl:permission"]
1099
- )), i["odrl:prohibition"] && (i["odrl:prohibition"] = s(
1099
+ )), i["odrl:prohibition"] && (i["odrl:prohibition"] = r(
1100
1100
  i["odrl:prohibition"]
1101
- )), i["odrl:obligation"] && (i["odrl:obligation"] = s(
1101
+ )), i["odrl:obligation"] && (i["odrl:obligation"] = r(
1102
1102
  i["odrl:obligation"]
1103
1103
  ));
1104
1104
  }
@@ -1107,29 +1107,29 @@ const ze = {
1107
1107
  }
1108
1108
  },
1109
1109
  // Post-processing to add provider metadata fields
1110
- postProcess: (e, t, r) => ({
1110
+ postProcess: (e, t, s) => ({
1111
1111
  ...e,
1112
- _provider: r.providerName,
1113
- _providerAddress: r.providerAddress,
1114
- _providerColor: r.providerColor || "#1976d2",
1115
- _providerParticipantId: r.providerParticipantId
1112
+ _provider: s.providerName,
1113
+ _providerAddress: s.providerAddress,
1114
+ _providerColor: s.providerColor || "#1976d2",
1115
+ _providerParticipantId: s.providerParticipantId
1116
1116
  })
1117
1117
  };
1118
- var Ve = Object.defineProperty, E = (e, t, r, i) => {
1119
- for (var s = void 0, o = e.length - 1, n; o >= 0; o--)
1120
- (n = e[o]) && (s = n(t, r, s) || s);
1121
- return s && Ve(t, r, s), s;
1118
+ var Ve = Object.defineProperty, R = (e, t, s, i) => {
1119
+ for (var r = void 0, o = e.length - 1, n; o >= 0; o--)
1120
+ (n = e[o]) && (r = n(t, s, r) || r);
1121
+ return r && Ve(t, s, r), r;
1122
1122
  };
1123
- class C extends v {
1123
+ class S extends b {
1124
1124
  constructor() {
1125
1125
  super(...arguments), this.providers = [];
1126
1126
  }
1127
1127
  willUpdate(t) {
1128
1128
  (!this.providers || this.providers.length === 0) && this.component?.parameters?.providers && (this.providers = this.component.parameters.providers || []);
1129
1129
  }
1130
- async _attach(t, r, i) {
1131
- if (!this.orbit && window.orbit && (this.orbit = window.orbit, r)) {
1132
- if (se({
1130
+ async _attach(t, s, i) {
1131
+ if (!this.orbit && window.orbit && (this.orbit = window.orbit, s)) {
1132
+ if (re({
1133
1133
  component: this,
1134
1134
  defaultRoute: t,
1135
1135
  ignoreRouter: i
@@ -1137,9 +1137,9 @@ class C extends v {
1137
1137
  const o = this.component?.parameters;
1138
1138
  o?.["participant-connector-uri"] && (this.participantConnectorUri = o["participant-connector-uri"]), o?.["participant-api-key"] && (this.participantApiKey = o["participant-api-key"]), o?.providers && (this.providers = o.providers), o?.["participant-id"] && (this.participantId = o["participant-id"]);
1139
1139
  }
1140
- const s = this.component?.parameters;
1141
- if (s?.["api-gateway-config"]) {
1142
- this.apiGatewayConfig = s["api-gateway-config"];
1140
+ const r = this.component?.parameters;
1141
+ if (r?.["api-gateway-config"]) {
1142
+ this.apiGatewayConfig = r["api-gateway-config"];
1143
1143
  try {
1144
1144
  this._apiGatewayConfigParsed = typeof this.apiGatewayConfig == "string" ? JSON.parse(this.apiGatewayConfig) : this.apiGatewayConfig;
1145
1145
  } catch {
@@ -1149,7 +1149,7 @@ class C extends v {
1149
1149
  if (!this.storeService && this.participantConnectorUri)
1150
1150
  try {
1151
1151
  const o = `dsp-connector-${this.component.uniq}`, n = {
1152
- type: ue.DataspaceConnector,
1152
+ type: he.DataspaceConnector,
1153
1153
  endpoint: this.participantConnectorUri,
1154
1154
  catalogEndpoint: `${this.participantConnectorUri}/management/v3/catalog/request`,
1155
1155
  contractNegotiationEndpoint: `${this.participantConnectorUri}/management/v3/contractnegotiations`,
@@ -1180,13 +1180,13 @@ class C extends v {
1180
1180
  if (!this.storeService || !this.providers || this.providers.length === 0)
1181
1181
  return console.warn("DSP store or providers not configured"), [];
1182
1182
  try {
1183
- const t = "https://api.tems.example.com/services/", r = new qe(ze), i = this.providers.map(async (n) => {
1183
+ const t = "https://api.tems.example.com/services/", s = new qe(ze), i = this.providers.map(async (n) => {
1184
1184
  try {
1185
1185
  const a = await this.storeService.getCatalog(n.address);
1186
1186
  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 $ = {
1187
+ const c = a["dcat:dataset"], h = Array.isArray(c) ? c : [c], m = a.participantId || a["edc:participantId"] || a["https://w3id.org/edc/v0.0.1/ns/participantId"], p = n.participantId || m;
1188
+ return h.map((_) => {
1189
+ const w = {
1190
1190
  temsServiceBase: t,
1191
1191
  temsCategoryBase: t.replace(
1192
1192
  "/services/",
@@ -1203,7 +1203,7 @@ class C extends v {
1203
1203
  providerColor: n.color,
1204
1204
  providerParticipantId: p
1205
1205
  };
1206
- return r.map(b, $);
1206
+ return s.map(_, w);
1207
1207
  });
1208
1208
  }
1209
1209
  return [];
@@ -1223,36 +1223,36 @@ class C extends v {
1223
1223
  return this.storeService;
1224
1224
  }
1225
1225
  }
1226
- E([
1226
+ R([
1227
1227
  y({ attribute: "participant-connector-uri", reflect: !0 })
1228
- ], C.prototype, "participantConnectorUri");
1229
- E([
1228
+ ], S.prototype, "participantConnectorUri");
1229
+ R([
1230
1230
  y({ attribute: "participant-id", reflect: !0 })
1231
- ], C.prototype, "participantId");
1232
- E([
1231
+ ], S.prototype, "participantId");
1232
+ R([
1233
1233
  y({ attribute: "participant-api-key", reflect: !0 })
1234
- ], C.prototype, "participantApiKey");
1235
- E([
1234
+ ], S.prototype, "participantApiKey");
1235
+ R([
1236
1236
  y({ attribute: "api-gateway-config", reflect: !0 })
1237
- ], C.prototype, "apiGatewayConfig");
1238
- E([
1239
- m()
1240
- ], C.prototype, "storeService");
1241
- E([
1242
- m()
1243
- ], C.prototype, "dspStoreService");
1244
- E([
1245
- m()
1246
- ], C.prototype, "_apiGatewayConfigParsed");
1247
- E([
1237
+ ], S.prototype, "apiGatewayConfig");
1238
+ R([
1239
+ f()
1240
+ ], S.prototype, "storeService");
1241
+ R([
1242
+ f()
1243
+ ], S.prototype, "dspStoreService");
1244
+ R([
1245
+ f()
1246
+ ], S.prototype, "_apiGatewayConfigParsed");
1247
+ R([
1248
1248
  y({ type: Array })
1249
- ], C.prototype, "providers");
1250
- const We = (e, { keywords: t = [], attributes: r = ["dataSrc"] } = {}) => {
1249
+ ], S.prototype, "providers");
1250
+ const We = (e, { keywords: t = [], attributes: s = ["dataSrc"] } = {}) => {
1251
1251
  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"];
1252
+ t && s && (e.caching === void 0 && (e.caching = 0), e.hasCachedDatas === void 0 && (e.hasCachedDatas = !1), e.cacheListener = (r) => {
1253
+ const o = r.detail.id || r.detail.resource["@id"];
1254
1254
  if (t.some((n) => o?.includes(n))) {
1255
- for (const n of r)
1255
+ for (const n of s)
1256
1256
  e[n] && o !== e[n] && window.sibStore.clearCache(e[n]);
1257
1257
  e.caching++, e.hasCachedDatas = !1, e.requestUpdate();
1258
1258
  }
@@ -1263,12 +1263,12 @@ const We = (e, { keywords: t = [], attributes: r = ["dataSrc"] } = {}) => {
1263
1263
  function Ke() {
1264
1264
  return Math.random().toString(16).slice(2);
1265
1265
  }
1266
- const se = ({
1266
+ const re = ({
1267
1267
  component: e,
1268
1268
  defaultRoute: t = !1,
1269
- ignoreRouter: r = !1
1269
+ ignoreRouter: s = !1
1270
1270
  }) => {
1271
- if (e.uniq || (e.uniq = Ke(), t && !e.route && !r && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !r) {
1271
+ if (e.uniq || (e.uniq = Ke(), t && !e.route && !s && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !s) {
1272
1272
  e.route || (e.route = e.uniq, window.orbit && (e.route = window.orbit.getRoute(e.uniq))), e.noRouter = !0;
1273
1273
  let i = document.querySelector("solid-router");
1274
1274
  for (; i; )
@@ -1276,10 +1276,10 @@ const se = ({
1276
1276
  `[data-view="${i.currentRouteName}"] solid-router`
1277
1277
  );
1278
1278
  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`
1279
+ let r = document.querySelector("solid-router");
1280
+ for (; r; )
1281
+ e.noRouter = !1, e.currentRoute = r.currentRouteName, e.currentResource = window.sibRouter.currentResource, r = document.querySelector(
1282
+ `[data-view="${r.currentRouteName}"] solid-router`
1283
1283
  );
1284
1284
  e.requestUpdate();
1285
1285
  }, e._subscriptions.add(["navigate", e.navigationListener]);
@@ -1296,174 +1296,174 @@ const se = ({
1296
1296
  function zt(e) {
1297
1297
  return !Number.isNaN(new Date(e).getTime());
1298
1298
  }
1299
- const vt = (e, t, r) => {
1299
+ const vt = (e, t, s) => {
1300
1300
  if (e == null)
1301
1301
  return !1;
1302
1302
  const i = t.split(".");
1303
- let s = e;
1303
+ let r = e;
1304
1304
  for (const o of i)
1305
- if (s && typeof s == "object" && o in s)
1306
- s = s[o];
1305
+ if (r && typeof r == "object" && o in r)
1306
+ r = r[o];
1307
1307
  else
1308
1308
  return !1;
1309
- if (zt(s)) {
1310
- if (new Date(s) > r)
1309
+ if (zt(r)) {
1310
+ if (new Date(r) > s)
1311
1311
  return !0;
1312
1312
  } else
1313
1313
  return !1;
1314
1314
  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) => {
1318
- if (!t || !r || typeof r != "string")
1315
+ (o) => vt(o, t, s)
1316
+ ) : typeof e == "object" ? Object.entries(e).some(([o, n]) => o === t && zt(n) ? !1 : vt(n, t, s)) : !1;
1317
+ }, Ge = (e, t, s) => {
1318
+ if (!t || !s || typeof s != "string")
1319
1319
  return e;
1320
- const i = new Date(r);
1321
- return Number.isNaN(i.getTime()) ? (console.warn(`Invalid threshold date provided: ${r}`), e) : e.filter(
1322
- (s) => vt(s, t, i)
1320
+ const i = new Date(s);
1321
+ return Number.isNaN(i.getTime()) ? (console.warn(`Invalid threshold date provided: ${s}`), e) : e.filter(
1322
+ (r) => vt(r, t, i)
1323
1323
  );
1324
- }, Je = (e, t, r) => !t || !r ? e : e.filter((i) => {
1325
- let s = i;
1324
+ }, Je = (e, t, s) => !t || !s ? e : e.filter((i) => {
1325
+ let r = i;
1326
1326
  const o = t.split(".");
1327
1327
  for (const a of o)
1328
- if (s && typeof s == "object" && a in s)
1329
- s = s[a];
1328
+ if (r && typeof r == "object" && a in r)
1329
+ r = r[a];
1330
1330
  else
1331
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
1332
+ const n = r;
1333
+ return n ? typeof n == "object" && !Array.isArray(n) && n !== null && "@id" in n && n["@id"] === s ? !0 : Array.isArray(n) ? n.some(
1334
+ (a) => typeof a == "object" && a !== null && "@id" in a && a["@id"] === s
1335
1335
  ) : !1 : !1;
1336
1336
  });
1337
1337
  function Ze(e) {
1338
1338
  return typeof e != "string" && typeof e != "number" && !(e instanceof Date) ? !1 : !Number.isNaN(new Date(e).getTime());
1339
1339
  }
1340
- const bt = (e, t, r, i) => {
1340
+ const bt = (e, t, s, i) => {
1341
1341
  if (e == null)
1342
1342
  return !1;
1343
- const s = t.split(".");
1343
+ const r = t.split(".");
1344
1344
  let o = e;
1345
- for (const n of s)
1345
+ for (const n of r)
1346
1346
  if (o && typeof o == "object" && n in o)
1347
1347
  o = o[n];
1348
1348
  else
1349
1349
  return !1;
1350
1350
  if (typeof o == "number") {
1351
- if (typeof r == "number" && typeof i == "number" && r <= o && o <= i)
1351
+ if (typeof s == "number" && typeof i == "number" && s <= o && o <= i)
1352
1352
  return !0;
1353
1353
  } else if (Ze(o)) {
1354
1354
  const n = new Date(o);
1355
- if (r instanceof Date && i instanceof Date && r <= n && n <= i)
1355
+ if (s instanceof Date && i instanceof Date && s <= n && n <= i)
1356
1356
  return !0;
1357
1357
  } else
1358
1358
  return !1;
1359
1359
  return Array.isArray(e) ? e.some(
1360
- (n) => bt(n, t, r, i)
1360
+ (n) => bt(n, t, s, i)
1361
1361
  ) : typeof e == "object" ? Object.entries(e).some(
1362
- ([n, a]) => bt(a, t, r, i)
1362
+ ([n, a]) => bt(a, t, s, i)
1363
1363
  ) : !1;
1364
- }, Xe = (e, t, r) => {
1365
- if (!t || !r || typeof r != "string")
1364
+ }, Xe = (e, t, s) => {
1365
+ if (!t || !s || typeof s != "string")
1366
1366
  return e;
1367
- const [i, s] = r.split("/").map(Number);
1368
- 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)
1367
+ const [i, r] = s.split("/").map(Number);
1368
+ return Number.isNaN(i) || Number.isNaN(r) ? e : i > r ? (console.warn(`Start number is after end number in interval: ${s}`), e) : e.filter(
1369
+ (o) => bt(o, t, i, r)
1370
1370
  );
1371
- }, $t = (e, t, r) => {
1371
+ }, $t = (e, t, s) => {
1372
1372
  if (e == null)
1373
1373
  return 0;
1374
1374
  if (typeof e != "object") {
1375
- const s = String(e).toLowerCase(), o = t.replace(
1375
+ const r = String(e).toLowerCase(), o = t.replace(
1376
1376
  /[.*+?^${}()|[\]\\]/g,
1377
1377
  "\\$&"
1378
1378
  ), n = new RegExp(`\\b${o}\\b`);
1379
1379
  let a = 0;
1380
- return n.test(s) ? a = 2 : s.includes(t) && (a = 1), a;
1380
+ return n.test(r) ? a = 2 : r.includes(t) && (a = 1), a;
1381
1381
  }
1382
1382
  if (Array.isArray(e)) {
1383
- let s = 0;
1383
+ let r = 0;
1384
1384
  for (const o of e)
1385
- if (s = Math.max(
1386
- s,
1385
+ if (r = Math.max(
1386
+ r,
1387
1387
  $t(
1388
1388
  o,
1389
1389
  t
1390
1390
  )
1391
- ), s === 2) break;
1392
- return s;
1391
+ ), r === 2) break;
1392
+ return r;
1393
1393
  }
1394
1394
  let i = 0;
1395
- for (const s of Object.values(e))
1395
+ for (const r of Object.values(e))
1396
1396
  if (i = Math.max(
1397
1397
  i,
1398
1398
  $t(
1399
- s,
1399
+ r,
1400
1400
  t
1401
1401
  )
1402
1402
  ), i === 2) break;
1403
1403
  return i;
1404
- }, Qe = (e, t, r) => {
1405
- if (!t || !r || r.trim() === "")
1404
+ }, Qe = (e, t, s) => {
1405
+ if (!t || !s || s.trim() === "")
1406
1406
  return e;
1407
- const i = r.toLowerCase(), o = e.map((n) => {
1407
+ const i = s.toLowerCase(), o = e.map((n) => {
1408
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];
1409
+ const c = t.split(".");
1410
+ for (const m of c)
1411
+ if (a && typeof a == "object" && m in a)
1412
+ a = a[m];
1413
1413
  else {
1414
1414
  a = null;
1415
1415
  break;
1416
1416
  }
1417
- let u = 0;
1418
- return a && (u = $t(a, i)), { obj: n, score: u };
1417
+ let h = 0;
1418
+ return a && (h = $t(a, i)), { obj: n, score: h };
1419
1419
  }).filter((n) => n.score > 0);
1420
1420
  return o.sort((n, a) => a.score - n.score), o.map((n) => n.obj);
1421
- }, Ye = (e, t) => t ? e.filter((r) => {
1422
- const i = r["@type"];
1423
- return i ? typeof i == "string" ? i === t : Array.isArray(i) ? i.some((s) => s === t) : !1 : !1;
1424
- }) : e, _t = (e, t, r) => {
1421
+ }, Ye = (e, t) => t ? e.filter((s) => {
1422
+ const i = s["@type"];
1423
+ return i ? typeof i == "string" ? i === t : Array.isArray(i) ? i.some((r) => r === t) : !1 : !1;
1424
+ }) : e, _t = (e, t, s) => {
1425
1425
  if (e == null)
1426
1426
  return 0;
1427
1427
  if (typeof e != "object") {
1428
- const s = String(e).toLowerCase(), o = t.replace(
1428
+ const r = String(e).toLowerCase(), o = t.replace(
1429
1429
  /[.*+?^${}()|[\]\\]/g,
1430
1430
  "\\$&"
1431
1431
  ), n = new RegExp(`\\b${o}\\b`);
1432
1432
  let a = 0;
1433
- return n.test(s) ? r === "name" || r === "title" ? a = 4 : a = 3 : s.includes(t) && (r === "name" || r === "title" ? a = 2 : a = 1), a;
1433
+ return n.test(r) ? s === "name" || s === "title" ? a = 4 : a = 3 : r.includes(t) && (s === "name" || s === "title" ? a = 2 : a = 1), a;
1434
1434
  }
1435
1435
  if (Array.isArray(e)) {
1436
- let s = 0;
1436
+ let r = 0;
1437
1437
  for (const o of e)
1438
- if (s = Math.max(
1439
- s,
1438
+ if (r = Math.max(
1439
+ r,
1440
1440
  _t(o, t)
1441
- ), s === 4) break;
1442
- return s;
1441
+ ), r === 4) break;
1442
+ return r;
1443
1443
  }
1444
1444
  let i = 0;
1445
- for (const [s, o] of Object.entries(e))
1445
+ for (const [r, o] of Object.entries(e))
1446
1446
  if (i = Math.max(
1447
1447
  i,
1448
- _t(o, t, s)
1448
+ _t(o, t, r)
1449
1449
  ), i === 4) break;
1450
1450
  return i;
1451
1451
  }, ie = (e, t) => {
1452
1452
  if (!t || t.trim() === "")
1453
1453
  return e;
1454
- const r = t.toLowerCase(), s = e.map((o) => ({
1454
+ const s = t.toLowerCase(), r = e.map((o) => ({
1455
1455
  obj: o,
1456
- score: _t(o, r)
1456
+ score: _t(o, s)
1457
1457
  })).filter((o) => o.score > 0);
1458
- return s.sort((o, n) => n.score - o.score), s.map((o) => o.obj);
1458
+ return r.sort((o, n) => n.score - o.score), r.map((o) => o.obj);
1459
1459
  }, Vt = (e, t) => {
1460
- let r = e;
1461
- for (let i = 0; i < t.length && (r && t[i] in r); i++)
1462
- r = r[t[i]];
1463
- 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]);
1460
+ let s = e;
1461
+ for (let i = 0; i < t.length && (s && t[i] in s); i++)
1462
+ s = s[t[i]];
1463
+ return s;
1464
+ }, j = (e, t, s = "asc") => e.sort((i, r) => {
1465
+ let o = i, n = r;
1466
+ Array.isArray(t) ? (o = Vt(i, t), n = Vt(r, t)) : (o = i[t], n = r[t]);
1467
1467
  let a = 0;
1468
1468
  if (typeof o == "number" && typeof n == "number")
1469
1469
  a = o - n;
@@ -1473,8 +1473,8 @@ const bt = (e, t, r, i) => {
1473
1473
  a = o.getTime() - n.getTime();
1474
1474
  else
1475
1475
  throw new TypeError(`Unsupported data type for key "${t}"`);
1476
- return r === "asc" ? a : -a;
1477
- }), I = (e, t = {
1476
+ return s === "asc" ? a : -a;
1477
+ }), T = (e, t = {
1478
1478
  day: "2-digit",
1479
1479
  month: "2-digit",
1480
1480
  year: "2-digit"
@@ -1482,7 +1482,7 @@ const bt = (e, t, r, i) => {
1482
1482
  if (!e) return "";
1483
1483
  const i = (typeof e == "string" ? new Date(e) : e).toLocaleString(void 0, t);
1484
1484
  return typeof e == "string" && i === "Invalid Date" ? e : i;
1485
- }, N = (e, t = !1) => {
1485
+ }, L = (e, t = !1) => {
1486
1486
  window.dispatchEvent(
1487
1487
  new CustomEvent("requestNavigation", {
1488
1488
  detail: {
@@ -1491,34 +1491,34 @@ const bt = (e, t, r, i) => {
1491
1491
  }
1492
1492
  })
1493
1493
  );
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
1494
+ }, ts = "https://cdn.startinblox.com/owl/ds4go.jsonld#", es = { "@id": "ds4go:link", "@type": "@id" }, ss = { "@id": "ds4go:enclosure", "@type": "@id" }, rs = { "@id": "ds4go:url", "@type": "@id" }, Wt = {
1495
+ ds4go: ts,
1496
+ link: es,
1497
+ enclosure: ss,
1498
+ url: rs
1499
1499
  };
1500
1500
  const wt = "lit-localize-status";
1501
- const ir = (e, ...t) => ({
1501
+ const is = (e, ...t) => ({
1502
1502
  strTag: !0,
1503
1503
  strings: e,
1504
1504
  values: t
1505
- }), S = ir, or = (e) => typeof e != "string" && "strTag" in e, oe = (e, t, r) => {
1505
+ }), P = is, os = (e) => typeof e != "string" && "strTag" in e, oe = (e, t, s) => {
1506
1506
  let i = e[0];
1507
- for (let s = 1; s < e.length; s++)
1508
- i += t[r ? r[s - 1] : s - 1], i += e[s];
1507
+ for (let r = 1; r < e.length; r++)
1508
+ i += t[s ? s[r - 1] : r - 1], i += e[r];
1509
1509
  return i;
1510
1510
  };
1511
- const ne = ((e) => or(e) ? oe(e.strings, e.values) : e);
1512
- let h = ne, Kt = !1;
1513
- function nr(e) {
1511
+ const ne = ((e) => os(e) ? oe(e.strings, e.values) : e);
1512
+ let d = ne, Kt = !1;
1513
+ function ns(e) {
1514
1514
  if (Kt)
1515
1515
  throw new Error("lit-localize can only be configured once");
1516
- h = e, Kt = !0;
1516
+ d = e, Kt = !0;
1517
1517
  }
1518
- class ar {
1518
+ class as {
1519
1519
  constructor(t) {
1520
- this.__litLocalizeEventHandler = (r) => {
1521
- r.detail.status === "ready" && this.host.requestUpdate();
1520
+ this.__litLocalizeEventHandler = (s) => {
1521
+ s.detail.status === "ready" && this.host.requestUpdate();
1522
1522
  }, this.host = t;
1523
1523
  }
1524
1524
  hostConnected() {
@@ -1528,12 +1528,12 @@ class ar {
1528
1528
  window.removeEventListener(wt, this.__litLocalizeEventHandler);
1529
1529
  }
1530
1530
  }
1531
- const cr = (e) => e.addController(new ar(e)), lr = cr;
1532
- const dr = () => (e, t) => (e.addInitializer(lr), e);
1531
+ const cs = (e) => e.addController(new as(e)), ls = cs;
1532
+ const ds = () => (e, t) => (e.addInitializer(ls), e);
1533
1533
  class ae {
1534
1534
  constructor() {
1535
- this.settled = !1, this.promise = new Promise((t, r) => {
1536
- this._resolve = t, this._reject = r;
1535
+ this.settled = !1, this.promise = new Promise((t, s) => {
1536
+ this._resolve = t, this._reject = s;
1537
1537
  });
1538
1538
  }
1539
1539
  resolve(t) {
@@ -1543,38 +1543,38 @@ class ae {
1543
1543
  this.settled = !0, this._reject(t);
1544
1544
  }
1545
1545
  }
1546
- const A = [];
1546
+ const C = [];
1547
1547
  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];
1548
+ C[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
1549
+ function us(e) {
1550
+ let t = 0, s = 8997, i = 0, r = 33826, o = 0, n = 40164, a = 0, c = 52210;
1551
+ for (let h = 0; h < e.length; h++)
1552
+ s ^= e.charCodeAt(h), t = s * 435, i = r * 435, o = n * 435, a = c * 435, o += s << 8, a += r << 8, i += t >>> 16, s = t & 65535, o += i >>> 16, r = i & 65535, c = a + (o >>> 16) & 65535, n = o & 65535;
1553
+ return C[c >> 8] + C[c & 255] + C[n >> 8] + C[n & 255] + C[r >> 8] + C[r & 255] + C[s >> 8] + C[s & 255];
1554
1554
  }
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));
1555
+ const hs = "", ps = "h", fs = "s";
1556
+ function ms(e, t) {
1557
+ return (t ? ps : fs) + us(typeof e == "string" ? e : e.join(hs));
1558
1558
  }
1559
1559
  const Gt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new Map();
1560
- function gr(e, t, r) {
1560
+ function gs(e, t, s) {
1561
1561
  if (e) {
1562
- const i = r?.id ?? yr(t), s = e[i];
1563
- if (s) {
1564
- if (typeof s == "string")
1565
- return s;
1566
- if ("strTag" in s)
1562
+ const i = s?.id ?? ys(t), r = e[i];
1563
+ if (r) {
1564
+ if (typeof r == "string")
1565
+ return r;
1566
+ if ("strTag" in r)
1567
1567
  return oe(
1568
- s.strings,
1568
+ r.strings,
1569
1569
  // Cast `template` because its type wasn't automatically narrowed (but
1570
1570
  // we know it must be the same type as `localized`).
1571
1571
  t.values,
1572
- s.values
1572
+ r.values
1573
1573
  );
1574
1574
  {
1575
- let o = Gt.get(s);
1576
- return o === void 0 && (o = s.values, Gt.set(s, o)), {
1577
- ...s,
1575
+ let o = Gt.get(r);
1576
+ return o === void 0 && (o = r.values, Gt.set(r, o)), {
1577
+ ...r,
1578
1578
  values: o.map((n) => t.values[n])
1579
1579
  };
1580
1580
  }
@@ -1582,45 +1582,45 @@ function gr(e, t, r) {
1582
1582
  }
1583
1583
  return ne(t);
1584
1584
  }
1585
- function yr(e) {
1585
+ function ys(e) {
1586
1586
  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;
1587
+ let s = Jt.get(t);
1588
+ return s === void 0 && (s = ms(t, typeof e != "string" && !("strTag" in e)), Jt.set(t, s)), s;
1589
1589
  }
1590
1590
  function gt(e) {
1591
1591
  window.dispatchEvent(new CustomEvent(wt, { detail: e }));
1592
1592
  }
1593
- let at = "", yt, ce, ct, At, le, k = new ae();
1594
- k.resolve();
1593
+ let nt = "", yt, ce, at, At, le, D = new ae();
1594
+ D.resolve();
1595
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)
1596
+ const vs = (e) => (ns(((t, s) => gs(le, t, s))), nt = ce = e.sourceLocale, at = new Set(e.targetLocales), at.add(e.sourceLocale), At = e.loadLocale, { getLocale: bs, setLocale: $s }), bs = () => nt, $s = (e) => {
1597
+ if (e === (yt ?? nt))
1598
+ return D.promise;
1599
+ if (!at || !At)
1600
1600
  throw new Error("Internal error");
1601
- if (!ct.has(e))
1601
+ if (!at.has(e))
1602
1602
  throw new Error("Invalid locale code");
1603
1603
  st++;
1604
1604
  const t = st;
1605
- return yt = e, k.settled && (k = new ae()), gt({ status: "loading", loadingLocale: e }), (e === ce ? (
1605
+ return yt = e, D.settled && (D = new ae()), gt({ status: "loading", loadingLocale: e }), (e === ce ? (
1606
1606
  // We could switch to the source locale synchronously, but we prefer to
1607
1607
  // queue it on a microtask so that switching locales is consistently
1608
1608
  // asynchronous.
1609
1609
  Promise.resolve({ templates: void 0 })
1610
1610
  ) : At(e)).then((i) => {
1611
- st === t && (at = e, yt = void 0, le = i.templates, gt({ status: "ready", readyLocale: e }), k.resolve());
1611
+ st === t && (nt = e, yt = void 0, le = i.templates, gt({ status: "ready", readyLocale: e }), D.resolve());
1612
1612
  }, (i) => {
1613
1613
  st === t && (gt({
1614
1614
  status: "error",
1615
1615
  errorLocale: e,
1616
1616
  errorMessage: i.toString()
1617
- }), k.reject(i));
1618
- }), k.promise;
1617
+ }), D.reject(i));
1618
+ }), D.promise;
1619
1619
  };
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--)
1622
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1623
- return i && s && _r(t, r, s), s;
1620
+ var _s = Object.defineProperty, ws = Object.getOwnPropertyDescriptor, Ut = (e, t, s, i) => {
1621
+ for (var r = i > 1 ? void 0 : i ? ws(t, s) : t, o = e.length - 1, n; o >= 0; o--)
1622
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
1623
+ return i && r && _s(t, s, r), r;
1624
1624
  };
1625
1625
  let X = class extends Rt {
1626
1626
  constructor() {
@@ -1629,17 +1629,17 @@ let X = class extends Rt {
1629
1629
  filter(e, t = []) {
1630
1630
  if (!t || t.length === 0 || !e || e.length === 0)
1631
1631
  return e;
1632
- const r = /* @__PURE__ */ new Map();
1633
- for (const s of t) {
1634
- const o = s.name, n = r.get(o) || [];
1635
- n.push(s), r.set(o, n);
1632
+ const s = /* @__PURE__ */ new Map();
1633
+ for (const r of t) {
1634
+ const o = r.name, n = s.get(o) || [];
1635
+ n.push(r), s.set(o, n);
1636
1636
  }
1637
1637
  let i = [...e];
1638
- for (const s of r.values()) {
1638
+ for (const r of s.values()) {
1639
1639
  if (i.length === 0)
1640
1640
  break;
1641
1641
  const o = [];
1642
- for (const n of s)
1642
+ for (const n of r)
1643
1643
  switch (n.type) {
1644
1644
  case "interval":
1645
1645
  o.push(
@@ -1702,28 +1702,28 @@ let X = class extends Rt {
1702
1702
  ));
1703
1703
  }
1704
1704
  render() {
1705
- return !this._displayObjects || this._displayObjects.length === 0 ? c : d`<div class="card-grid card-grid-vertical">
1705
+ return !this._displayObjects || this._displayObjects.length === 0 ? l : u`<div class="card-grid card-grid-vertical">
1706
1706
  ${this._displayObjects.map((e) => {
1707
1707
  const t = [
1708
1708
  {
1709
- name: `${e.facts.length} ${e.facts.length > 1 ? h("facts") : h("fact")}`,
1709
+ name: `${e.facts.length} ${e.facts.length > 1 ? d("facts") : d("fact")}`,
1710
1710
  type: "information"
1711
1711
  }
1712
1712
  ];
1713
- return d`<tems-card-catalog
1714
- .object=${c}
1713
+ return u`<tems-card-catalog
1714
+ .object=${l}
1715
1715
  type=${"bill-image"}
1716
1716
  .tags=${t}
1717
- .header=${e.name || c}
1718
- .content=${e.description || c}
1719
- date=${e.updated_at || c}
1717
+ .header=${e.name || l}
1718
+ .content=${e.description || l}
1719
+ date=${e.updated_at || l}
1720
1720
  @click=${() => this._handleClickEvent(e)}
1721
1721
  ></tems-card-catalog>`;
1722
1722
  })}
1723
1723
  </div>`;
1724
1724
  }
1725
1725
  };
1726
- X.styles = Y`
1726
+ X.styles = lt`
1727
1727
  .card-grid {
1728
1728
  display: flex;
1729
1729
  flex-direction: row;
@@ -1742,21 +1742,21 @@ X.styles = Y`
1742
1742
  }
1743
1743
  `;
1744
1744
  Ut([
1745
- m()
1745
+ f()
1746
1746
  ], X.prototype, "search", 2);
1747
1747
  Ut([
1748
- m()
1748
+ f()
1749
1749
  ], X.prototype, "_displayObjects", 2);
1750
1750
  X = Ut([
1751
1751
  V("ds4go-fact-bundle-holder")
1752
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, xr = Object.getOwnPropertyDescriptor, de = (e, t, r, i) => {
1755
- for (var s = i > 1 ? void 0 : i ? xr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
1756
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1757
- return i && s && Cr(t, r, s), s;
1753
+ const As = ".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 Cs = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, de = (e, t, s, i) => {
1755
+ for (var r = i > 1 ? void 0 : i ? Ss(t, s) : t, o = e.length - 1, n; o >= 0; o--)
1756
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
1757
+ return i && r && Cs(t, s, r), r;
1758
1758
  };
1759
- let lt = class extends Ie {
1759
+ let ct = class extends ke {
1760
1760
  constructor() {
1761
1761
  super(...arguments), this.object = { "@id": "" };
1762
1762
  }
@@ -1764,55 +1764,55 @@ let lt = class extends Ie {
1764
1764
  this.dispatchEvent(new CustomEvent("close"));
1765
1765
  }
1766
1766
  render() {
1767
- return d`<div class="modal">
1767
+ return u`<div class="modal">
1768
1768
  <div class="topbar">
1769
1769
  <tems-button
1770
1770
  @click=${this._closeModal}
1771
1771
  type="outline-gray"
1772
- .iconLeft=${d`<icon-material-symbols-close-rounded></icon-material-symbols-close-rounded>`}
1772
+ .iconLeft=${u`<icon-material-symbols-close-rounded></icon-material-symbols-close-rounded>`}
1773
1773
  ></tems-button>
1774
1774
  </div>
1775
1775
  <div class="modal-content-wrapper">
1776
1776
  <div class="modal-box">
1777
1777
  <div class="modal-content">
1778
1778
  <tems-division type="h3"
1779
- ><div>${String(this.object.name)}</div></tems-division
1779
+ ><div>${String(this.object.name || "")}</div></tems-division
1780
1780
  >
1781
1781
  <tems-division type="body-m"
1782
- ><div>${String(this.object.description)}</div></tems-division
1782
+ ><div>${String(this.object.description || "")}</div></tems-division
1783
1783
  >
1784
1784
  <tems-division type="h4"
1785
- ><div>${h("All facts in this bundle")}</div></tems-division
1785
+ ><div>${d("All facts in this bundle")}</div></tems-division
1786
1786
  >
1787
1787
  <div class="card-grid card-grid-vertical">
1788
1788
  ${this.object.facts.map((e) => {
1789
- const t = e.categories.map((r) => ({
1790
- name: r.name,
1789
+ const t = e.categories.map((s) => ({
1790
+ name: s.name,
1791
1791
  type: "information"
1792
1792
  }));
1793
1793
  if (t.length > 3) {
1794
- const r = t.length - 3;
1795
- t.splice(3, r), t.push({
1796
- name: `+${r} ${h("more")}`,
1794
+ const s = t.length - 3;
1795
+ t.splice(3, s), t.push({
1796
+ name: `+${s} ${d("more")}`,
1797
1797
  type: "information"
1798
1798
  });
1799
1799
  }
1800
- return d`<tems-card-catalog
1801
- .object=${c}
1800
+ return u`<tems-card-catalog
1801
+ .object=${l}
1802
1802
  .tags=${t}
1803
- .header=${e.name || c}
1804
- .content=${e.description || c}
1805
- date=${e.updated_at || c}
1803
+ .header=${e.name || l}
1804
+ .content=${e.description || l}
1805
+ date=${e.updated_at || l}
1806
1806
  ></tems-card-catalog>`;
1807
1807
  })}
1808
1808
  </div>
1809
1809
  <tems-division type="body-sm"
1810
1810
  ><div>
1811
1811
  <div>
1812
- ${h("Bundle created on")} ${String(this.object.created_at)}
1812
+ ${d("Bundle created on")} ${String(this.object.created_at)}
1813
1813
  </div>
1814
1814
  <div>
1815
- ${h("Bundle updated on")} ${String(this.object.updated_at)}
1815
+ ${d("Bundle updated on")} ${String(this.object.updated_at)}
1816
1816
  </div>
1817
1817
  </div></tems-division
1818
1818
  >
@@ -1822,27 +1822,27 @@ let lt = class extends Ie {
1822
1822
  </div>`;
1823
1823
  }
1824
1824
  };
1825
- lt.styles = Y`
1826
- ${St(Ar)}
1825
+ ct.styles = lt`
1826
+ ${xt(As)}
1827
1827
  `;
1828
1828
  de([
1829
1829
  y({ attribute: !1, type: Object })
1830
- ], lt.prototype, "object", 2);
1831
- lt = de([
1830
+ ], ct.prototype, "object", 2);
1831
+ ct = de([
1832
1832
  V("ds4go-fact-bundle-modal"),
1833
- dr()
1834
- ], lt);
1835
- const Sr = /* @__PURE__ */ Symbol();
1833
+ ds()
1834
+ ], ct);
1835
+ const xs = /* @__PURE__ */ Symbol();
1836
1836
  class pt {
1837
1837
  get taskComplete() {
1838
- return this.t || (this.i === 1 ? this.t = new Promise(((t, r) => {
1839
- this.o = t, this.h = r;
1838
+ return this.t || (this.i === 1 ? this.t = new Promise(((t, s) => {
1839
+ this.o = t, this.h = s;
1840
1840
  })) : this.i === 3 ? this.t = Promise.reject(this.l) : this.t = Promise.resolve(this.u)), this.t;
1841
1841
  }
1842
- constructor(t, r, i) {
1842
+ constructor(t, s, i) {
1843
1843
  this.p = 0, this.i = 0, (this._ = t).addController(this);
1844
- 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?.());
1844
+ const r = typeof s == "object" ? s : { task: s, args: i };
1845
+ this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? Ps, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
1846
1846
  }
1847
1847
  hostUpdate() {
1848
1848
  this.autoRun === !0 && this.S();
@@ -1857,29 +1857,29 @@ class pt {
1857
1857
  return t;
1858
1858
  }
1859
1859
  async S() {
1860
- const t = this.T(), r = this.O;
1861
- this.O = t, t === r || t === void 0 || r !== void 0 && this.m(r, t) || await this.run(t);
1860
+ const t = this.T(), s = this.O;
1861
+ this.O = t, t === s || t === void 0 || s !== void 0 && this.m(s, t) || await this.run(t);
1862
1862
  }
1863
1863
  async run(t) {
1864
- let r, i;
1864
+ let s, i;
1865
1865
  t ??= this.T(), this.O = t, this.i === 1 ? this.q?.abort() : (this.t = void 0, this.o = void 0, this.h = void 0), this.i = 1, this.autoRun === "afterUpdate" ? queueMicrotask((() => this._.requestUpdate())) : this._.requestUpdate();
1866
- const s = ++this.p;
1866
+ const r = ++this.p;
1867
1867
  this.q = new AbortController();
1868
1868
  let o = !1;
1869
1869
  try {
1870
- r = await this.v(t, { signal: this.q.signal });
1870
+ s = await this.v(t, { signal: this.q.signal });
1871
1871
  } catch (n) {
1872
1872
  o = !0, i = n;
1873
1873
  }
1874
- if (this.p === s) {
1875
- if (r === Sr) this.i = 0;
1874
+ if (this.p === r) {
1875
+ if (s === xs) this.i = 0;
1876
1876
  else {
1877
1877
  if (o === !1) {
1878
1878
  try {
1879
- this.k?.(r);
1879
+ this.k?.(s);
1880
1880
  } catch {
1881
1881
  }
1882
- this.i = 2, this.o?.(r);
1882
+ this.i = 2, this.o?.(s);
1883
1883
  } else {
1884
1884
  try {
1885
1885
  this.A?.(i);
@@ -1887,7 +1887,7 @@ class pt {
1887
1887
  }
1888
1888
  this.i = 3, this.h?.(i);
1889
1889
  }
1890
- this.u = r, this.l = i;
1890
+ this.u = s, this.l = i;
1891
1891
  }
1892
1892
  this._.requestUpdate();
1893
1893
  }
@@ -1919,13 +1919,13 @@ class pt {
1919
1919
  }
1920
1920
  }
1921
1921
  }
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--)
1925
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
1926
- return i && s && jr(t, r, s), s;
1922
+ const Ps = (e, t) => e === t || e.length === t.length && e.every(((s, i) => !ut(s, t[i])));
1923
+ var js = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, U = (e, t, s, i) => {
1924
+ for (var r = i > 1 ? void 0 : i ? Es(t, s) : t, o = e.length - 1, n; o >= 0; o--)
1925
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
1926
+ return i && r && js(t, s, r), r;
1927
1927
  };
1928
- let _ = class extends v {
1928
+ let A = class extends b {
1929
1929
  constructor() {
1930
1930
  super(...arguments), this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
1931
1931
  { key: "dct:title", value: "title" },
@@ -1933,7 +1933,7 @@ let _ = class extends v {
1933
1933
  { key: "dcat:dataset", value: "dataset", expand: !0 },
1934
1934
  { key: "dct:creator", value: "creator" }
1935
1935
  ], this.sectors = [], this._getResource = new pt(this, {
1936
- task: async ([e, t, r]) => {
1936
+ task: async ([e, t, s]) => {
1937
1937
  if (!(!e || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
1938
1938
  if (this.displayFiltering = !this.component.parameters.disableFiltering, !this.hasCachedDatas) {
1939
1939
  if (!e) return;
@@ -1948,25 +1948,25 @@ let _ = class extends v {
1948
1948
  }
1949
1949
  if (t) {
1950
1950
  this.catalogs = [];
1951
- const i = t === "*" ? this.sectors : this.sectors.filter((s) => s.id === t);
1951
+ const i = t === "*" ? this.sectors : this.sectors.filter((r) => r.id === t);
1952
1952
  if (i.length > 0 && (this.catalogs = (await Promise.all(
1953
- i.map(async (s) => {
1953
+ i.map(async (r) => {
1954
1954
  try {
1955
1955
  return (await (await fetch(
1956
- `${s.federatedCatalogEndpoint}/discovery`
1956
+ `${r.federatedCatalogEndpoint}/discovery`
1957
1957
  )).json()).catalogs;
1958
1958
  } catch (o) {
1959
1959
  return console.warn(
1960
- `Failed to fetch sector authority ${s.federatedCatalogEndpoint}/discovery`,
1960
+ `Failed to fetch sector authority ${r.federatedCatalogEndpoint}/discovery`,
1961
1961
  o
1962
1962
  ), [];
1963
1963
  }
1964
1964
  })
1965
- )).flat()), r) {
1966
- if (r === "*")
1965
+ )).flat()), s) {
1966
+ if (s === "*")
1967
1967
  return this.object = {
1968
1968
  "@id": "urn:uuid:all-catalogs",
1969
- "dct:title": h("All Catalogs"),
1969
+ "dct:title": d("All Catalogs"),
1970
1970
  "dct:description": "",
1971
1971
  "dcat:dataset": (await Promise.all(
1972
1972
  this.catalogs.map(async (o) => {
@@ -1981,27 +1981,27 @@ let _ = class extends v {
1981
1981
  })
1982
1982
  )).flat()
1983
1983
  }, this.object;
1984
- const s = this.catalogs.find(
1985
- (o) => o.catalogId === r
1984
+ const r = this.catalogs.find(
1985
+ (o) => o.catalogId === s
1986
1986
  );
1987
- if (s)
1987
+ if (r)
1988
1988
  try {
1989
- return this.object = await (await fetch(s.endpoints.catalog)).json(), this.object["dcat:dataset"] = P(
1989
+ return this.object = await (await fetch(r.endpoints.catalog)).json(), this.object["dcat:dataset"] = j(
1990
1990
  this.object["dcat:dataset"],
1991
1991
  "dct:title",
1992
1992
  "asc"
1993
1993
  ), this.object;
1994
1994
  } catch (o) {
1995
1995
  console.warn(
1996
- `Failed to fetch catalog from ${s.endpoints.catalog}`,
1996
+ `Failed to fetch catalog from ${r.endpoints.catalog}`,
1997
1997
  o
1998
1998
  );
1999
1999
  return;
2000
2000
  }
2001
2001
  }
2002
- return P(this.catalogs, "catalogId", "asc");
2002
+ return j(this.catalogs, "catalogId", "asc");
2003
2003
  }
2004
- return P(this.sectors, "id", "asc");
2004
+ return j(this.sectors, "id", "asc");
2005
2005
  }
2006
2006
  },
2007
2007
  args: () => [
@@ -2035,70 +2035,70 @@ let _ = class extends v {
2035
2035
  }
2036
2036
  render() {
2037
2037
  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>
2038
+ pending: () => u`<solid-loader></solid-loader>`,
2039
+ error: (e) => (console.warn("[solid-dsif-explorer-poc] Task error:", e), l),
2040
+ complete: (e) => u`<tems-viewport>
2041
2041
  <tems-header
2042
2042
  slot="header"
2043
- heading=${this.catalogId ? e ? this.catalogId === "*" ? `${h("All Datasets")}` : `${h("Datasets from")}
2044
- ${e["dct:title"]} (From ${this.sectorId})` : `${h(S`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">
2043
+ heading=${this.catalogId ? e ? this.catalogId === "*" ? `${d("All Datasets")}` : `${d("Datasets from")}
2044
+ ${e["dct:title"]} (From ${this.sectorId})` : `${d(P`Error while loading catalog ${this.catalogId}`)}` : this.sectorId ? this.sectorId === "*" ? `${d("All Sectors")}` : `${d("Catalogs available in")} ${this.sectorId}` : `${d("Root Authority")}`}
2045
+ >${(this.sectorId || this.catalogId) && !(this.catalogId === "*" && this.sectorId === "*") && !(this.sectorId === "*" && !this.catalogId) ? u`<div slot="cta">
2046
2046
  <tems-button
2047
2047
  type="primary"
2048
- label=${h(
2049
- S`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2048
+ label=${d(
2049
+ P`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
2050
2050
  )}
2051
2051
  @click=${this._back}
2052
2052
  ></tems-button>
2053
- </div>` : c}</tems-header
2053
+ </div>` : l}</tems-header
2054
2054
  >
2055
2055
  <div slot="content">
2056
- ${e ? d`<div>
2057
- ${this.catalogId ? d`<tems-division type="body-m"
2056
+ ${e ? u`<div>
2057
+ ${this.catalogId ? u`<tems-division type="body-m"
2058
2058
  >${e["dct:description"]}</tems-division
2059
- >` : c}
2059
+ >` : l}
2060
2060
  <div class="card-grid card-grid-vertical">
2061
- ${this.catalogId ? d`${e["dcat:dataset"].map(
2062
- (t) => d`<tems-card-catalog
2063
- .object=${c}
2061
+ ${this.catalogId ? u`${e["dcat:dataset"].map(
2062
+ (t) => u`<tems-card-catalog
2063
+ .object=${l}
2064
2064
  type=${"bill-image"}
2065
- .header=${t["dct:title"] || c}
2066
- .content=${t["dct:description"] || c}
2065
+ .header=${t["dct:title"] || l}
2066
+ .content=${t["dct:description"] || l}
2067
2067
  ></tems-card-catalog>`
2068
- )}` : this.sectorId ? d`${e.map(
2069
- (t) => d`<tems-card-catalog
2068
+ )}` : this.sectorId ? u`${e.map(
2069
+ (t) => u`<tems-card-catalog
2070
2070
  class="cursor-pointer"
2071
- .object=${c}
2071
+ .object=${l}
2072
2072
  type=${"bill-image"}
2073
- .header=${t.catalogId || c}
2074
- .content=${t.description || c}
2075
- date=${I(t.lastUpdated) || c}
2073
+ .header=${t.catalogId || l}
2074
+ .content=${t.description || l}
2075
+ date=${T(t.lastUpdated) || l}
2076
2076
  @click=${() => this._selectCatalog(t.catalogId)}
2077
2077
  ></tems-card-catalog>`
2078
- )}` : d`${e.map(
2079
- (t) => d`<tems-card-catalog
2078
+ )}` : u`${e.map(
2079
+ (t) => u`<tems-card-catalog
2080
2080
  class="cursor-pointer"
2081
- .object=${c}
2081
+ .object=${l}
2082
2082
  type=${"bill-image"}
2083
- .header=${t.id || c}
2084
- .content=${t.description || c}
2085
- date=${I(t.lastUpdated) || c}
2083
+ .header=${t.id || l}
2084
+ .content=${t.description || l}
2085
+ date=${T(t.lastUpdated) || l}
2086
2086
  @click=${() => this._selectSector(t.id)}
2087
2087
  ></tems-card-catalog>`
2088
2088
  )}`}
2089
2089
  </div>
2090
- </div>` : d`<p>
2091
- ${h(
2090
+ </div>` : u`<p>
2091
+ ${d(
2092
2092
  "No data available, data source may be temporarily unavailable."
2093
2093
  )}
2094
2094
  </p>
2095
- ${this.sectorId || this.catalogId ? d`<tems-button
2095
+ ${this.sectorId || this.catalogId ? u`<tems-button
2096
2096
  type="primary"
2097
- label=${h("Back")}
2097
+ label=${d("Back")}
2098
2098
  @click=${this._back}
2099
- ></tems-button>` : d`<tems-button
2099
+ ></tems-button>` : u`<tems-button
2100
2100
  type="primary"
2101
- label=${h("Retry")}
2101
+ label=${d("Retry")}
2102
2102
  @click=${this.requestUpdate}
2103
2103
  ></tems-button>`}`}
2104
2104
  </div>
@@ -2106,7 +2106,7 @@ let _ = class extends v {
2106
2106
  });
2107
2107
  }
2108
2108
  };
2109
- _.styles = Y`
2109
+ A.styles = lt`
2110
2110
  .card-grid {
2111
2111
  margin: var(--scale-900) 0;
2112
2112
  display: flex;
@@ -2128,36 +2128,36 @@ _.styles = Y`
2128
2128
  margin-top: var(--scale-900);
2129
2129
  }
2130
2130
  `;
2131
- R([
2131
+ U([
2132
2132
  y({ attribute: "sector-id", type: String })
2133
- ], _.prototype, "sectorId", 2);
2134
- R([
2133
+ ], A.prototype, "sectorId", 2);
2134
+ U([
2135
2135
  y({ attribute: "catalog-id", type: String })
2136
- ], _.prototype, "catalogId", 2);
2137
- R([
2138
- m()
2139
- ], _.prototype, "search", 2);
2140
- R([
2141
- m()
2142
- ], _.prototype, "resultCount", 2);
2143
- R([
2144
- m()
2145
- ], _.prototype, "sectors", 2);
2146
- R([
2147
- m()
2148
- ], _.prototype, "catalogs", 2);
2149
- R([
2150
- m()
2151
- ], _.prototype, "object", 2);
2152
- _ = R([
2136
+ ], A.prototype, "catalogId", 2);
2137
+ U([
2138
+ f()
2139
+ ], A.prototype, "search", 2);
2140
+ U([
2141
+ f()
2142
+ ], A.prototype, "resultCount", 2);
2143
+ U([
2144
+ f()
2145
+ ], A.prototype, "sectors", 2);
2146
+ U([
2147
+ f()
2148
+ ], A.prototype, "catalogs", 2);
2149
+ U([
2150
+ f()
2151
+ ], A.prototype, "object", 2);
2152
+ A = U([
2153
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--)
2157
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2158
- return i && s && Rr(t, r, s), s;
2154
+ ], A);
2155
+ var Rs = Object.defineProperty, Us = Object.getOwnPropertyDescriptor, ft = (e, t, s, i) => {
2156
+ for (var r = i > 1 ? void 0 : i ? Us(t, s) : t, o = e.length - 1, n; o >= 0; o--)
2157
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
2158
+ return i && r && Rs(t, s, r), r;
2159
2159
  };
2160
- let Q = class extends C {
2160
+ let Q = class extends S {
2161
2161
  constructor() {
2162
2162
  super(...arguments), this.assets = [], this.policies = [], this.contracts = [], this._getResource = new pt(this, {
2163
2163
  task: async () => {
@@ -2259,35 +2259,50 @@ let Q = class extends C {
2259
2259
  }
2260
2260
  render() {
2261
2261
  return this._getResource.render({
2262
- pending: () => c,
2263
- complete: () => c,
2264
- error: (e) => c
2262
+ pending: () => l,
2263
+ complete: () => l,
2264
+ error: (e) => l
2265
2265
  });
2266
2266
  }
2267
2267
  };
2268
2268
  ft([
2269
- m()
2269
+ f()
2270
2270
  ], Q.prototype, "assets", 2);
2271
2271
  ft([
2272
- m()
2272
+ f()
2273
2273
  ], Q.prototype, "policies", 2);
2274
2274
  ft([
2275
- m()
2275
+ f()
2276
2276
  ], Q.prototype, "contracts", 2);
2277
2277
  Q = ft([
2278
2278
  V("solid-dsp-connector")
2279
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--)
2283
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2284
- return i && s && kr(t, r, s), s;
2280
+ const Os = ".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)}";
2281
+ var Ds = Object.defineProperty, Ls = Object.getOwnPropertyDescriptor, $ = (e, t, s, i) => {
2282
+ for (var r = i > 1 ? void 0 : i ? Ls(t, s) : t, o = e.length - 1, n; o >= 0; o--)
2283
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
2284
+ return i && r && Ds(t, s, r), r;
2285
2285
  };
2286
- let w = class extends v {
2286
+ let v = class extends b {
2287
2287
  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: I },
2290
- { key: "updated_at", value: "updated_at", cast: I },
2288
+ super(...arguments), this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.bundleLanguage = "en", this.policyTemplates = [
2289
+ {
2290
+ id: "policy-open-access",
2291
+ name: d("Open access"),
2292
+ policy: {
2293
+ "@type": "Set",
2294
+ permission: [
2295
+ {
2296
+ action: "use"
2297
+ }
2298
+ ],
2299
+ prohibition: [],
2300
+ obligation: []
2301
+ }
2302
+ }
2303
+ ], this.bundleAccessPolicy = this.policyTemplates[0].id, this.bundleContractPolicy = this.policyTemplates[0].id, this.filterFactText = "", this.spliceLength = 0, this.cherryPickedProperties = [
2304
+ { key: "created_at", value: "created_at", cast: T },
2305
+ { key: "updated_at", value: "updated_at", cast: T },
2291
2306
  { key: "name", value: "name" },
2292
2307
  { key: "description", value: "description" },
2293
2308
  { key: "author", value: "author" },
@@ -2295,27 +2310,27 @@ let w = class extends v {
2295
2310
  key: "categories",
2296
2311
  value: "categories",
2297
2312
  expand: !0,
2298
- cast: (t) => P(t, "name")
2313
+ cast: (t) => j(t, "name")
2299
2314
  }
2300
2315
  ], this._getResource = new pt(this, {
2301
- task: async ([t, r, i]) => {
2316
+ task: async ([t, s, i]) => {
2302
2317
  if (!(!t || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
2303
2318
  if (!this.hasCachedDatas || this.oldDataSrc !== t) {
2304
2319
  if (!t) return;
2305
2320
  this.facts = await this._getProxyValue(t), this.hasCachedDatas = !0;
2306
2321
  }
2307
- return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), r ? P(
2322
+ return this.oldDataSrc !== t && (this.oldDataSrc = t), Array.isArray(this.facts) || (this.facts = []), s ? j(
2308
2323
  ie(
2309
2324
  this.facts.filter(
2310
- (s) => !i.includes(s)
2325
+ (r) => !i.includes(r)
2311
2326
  ),
2312
- r
2327
+ s
2313
2328
  ),
2314
2329
  "name",
2315
2330
  "asc"
2316
- ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), P(
2331
+ ) : (i.length === 0 && (this.spliceLength = Math.floor((window.innerWidth - 800) / 354) * Math.floor((window.innerHeight - 255) / 500)), j(
2317
2332
  this.facts.filter(
2318
- (s) => !this.selectedFacts.includes(s)
2333
+ (r) => !this.selectedFacts.includes(r)
2319
2334
  ),
2320
2335
  "name",
2321
2336
  "asc"
@@ -2331,6 +2346,9 @@ let w = class extends v {
2331
2346
  ]
2332
2347
  });
2333
2348
  }
2349
+ async _afterAttach() {
2350
+ return this.dspConnector = this.orbit?.getComponent("dsp-connector"), Promise.resolve();
2351
+ }
2334
2352
  _showMoreResults() {
2335
2353
  this.spliceLength += Math.floor((window.innerWidth - 800) / 354);
2336
2354
  }
@@ -2348,14 +2366,16 @@ let w = class extends v {
2348
2366
  "@type": ["ldp:Container", "ds4go:FactBundle"],
2349
2367
  name: this.bundleName,
2350
2368
  description: this.bundleDescription || "",
2351
- "ldp:contains": this.selectedFacts.map((i) => ({ "@id": i["@id"] }))
2352
- }, r = await window.sibStore.post(
2369
+ "ldp:contains": this.selectedFacts.map((r) => ({
2370
+ "@id": r["@id"]
2371
+ }))
2372
+ }, s = await window.sibStore.post(
2353
2373
  t,
2354
2374
  this.dataSrc
2355
2375
  );
2356
- document.dispatchEvent(
2376
+ if (document.dispatchEvent(
2357
2377
  new CustomEvent("save", {
2358
- detail: { resource: { "@id": r } },
2378
+ detail: { resource: { "@id": s } },
2359
2379
  bubbles: !0
2360
2380
  })
2361
2381
  ), document.dispatchEvent(
@@ -2363,6 +2383,80 @@ let w = class extends v {
2363
2383
  detail: { resource: { "@id": this.dataSrc } },
2364
2384
  bubbles: !0
2365
2385
  })
2386
+ ), this.dspConnector) {
2387
+ const r = await window.crypto.subtle.digest("SHA-256", new TextEncoder().encode(s)).then((c) => `sha-256:${Array.from(new Uint8Array(c)).map((h) => h.toString(16).padStart(2, "0")).join("")}`);
2388
+ await this.dspConnector.instance?.createAsset({
2389
+ "@id": `urn:asset-id:${r}`,
2390
+ properties: {
2391
+ name: this.bundleName,
2392
+ description: this.bundleDescription,
2393
+ contenttype: "application/ld+json",
2394
+ language: this.bundleLanguage
2395
+ },
2396
+ dataAddress: {
2397
+ "@type": "DataAddress",
2398
+ type: "HttpData",
2399
+ baseUrl: s
2400
+ }
2401
+ }), await Promise.all([
2402
+ this.dspConnector.instance?.createPolicy({
2403
+ "@id": `urn:access-policy-id:${r}`,
2404
+ "@type": "PolicyDefinition",
2405
+ policy: {
2406
+ "@context": "http://www.w3.org/ns/odrl.jsonld",
2407
+ ...this.policyTemplates.find(
2408
+ (c) => c.id === this.bundleAccessPolicy
2409
+ )?.policy
2410
+ }
2411
+ }),
2412
+ this.dspConnector.instance?.createPolicy({
2413
+ "@id": `urn:contract-policy-id:${r}`,
2414
+ "@type": "PolicyDefinition",
2415
+ policy: {
2416
+ "@context": "http://www.w3.org/ns/odrl.jsonld",
2417
+ ...this.policyTemplates.find(
2418
+ (c) => c.id === this.bundleContractPolicy
2419
+ )?.policy
2420
+ }
2421
+ }),
2422
+ this.dspConnector.instance?.createContract({
2423
+ "@id": `urn:contract-id:${r}`,
2424
+ "@type": "ContractDefinition",
2425
+ accessPolicyId: `urn:access-policy-id:${r}`,
2426
+ contractPolicyId: `urn:contract-policy-id:${r}`,
2427
+ assetsSelector: [
2428
+ {
2429
+ "@type": "Criterion",
2430
+ operandLeft: "https://w3id.org/edc/v0.0.1/ns/id",
2431
+ operator: "=",
2432
+ operandRight: `urn:asset-id:${r}`
2433
+ }
2434
+ ]
2435
+ })
2436
+ ]);
2437
+ const o = document.querySelector(
2438
+ "solid-tems-assets-management"
2439
+ );
2440
+ o && o.loadAssets();
2441
+ const n = document.querySelector(
2442
+ "solid-tems-policies-management"
2443
+ );
2444
+ n && n.loadPolicies();
2445
+ const a = document.querySelector(
2446
+ "solid-tems-contracts-management"
2447
+ );
2448
+ a && a.loadData();
2449
+ }
2450
+ this.bundleName = "", this.bundleDescription = "", this.selectedFacts = [];
2451
+ const i = this.orbit?.getComponent("fact-bundle");
2452
+ document.dispatchEvent(
2453
+ new CustomEvent("save", {
2454
+ detail: { resource: { "@id": i?.defaultDataSrc } },
2455
+ bubbles: !0
2456
+ })
2457
+ ), i && L(
2458
+ i?.route,
2459
+ i?.defaultDataSrc
2366
2460
  );
2367
2461
  }
2368
2462
  _updateBundleName(t) {
@@ -2371,26 +2465,35 @@ let w = class extends v {
2371
2465
  _updateBundleDescription(t) {
2372
2466
  this.bundleDescription = t.detail.value;
2373
2467
  }
2468
+ _updateBundleLanguage(t) {
2469
+ this.bundleLanguage = t.detail.value;
2470
+ }
2471
+ _selectBundleAccessPolicy(t) {
2472
+ t.preventDefault(), t.target && (this.bundleAccessPolicy = t.target.value);
2473
+ }
2474
+ _selectBundleContractPolicy(t) {
2475
+ t.preventDefault(), t.target && (this.bundleContractPolicy = t.target.value);
2476
+ }
2374
2477
  _toggleFactSelection(t) {
2375
- this.selectedFacts.includes(t) ? this.selectedFacts = this.selectedFacts.filter((r) => r !== t) : this.selectedFacts = [...this.selectedFacts, t];
2478
+ this.selectedFacts.includes(t) ? this.selectedFacts = this.selectedFacts.filter((s) => s !== t) : this.selectedFacts = [...this.selectedFacts, t];
2376
2479
  }
2377
2480
  _searchFacts(t) {
2378
2481
  this.filterFactText = t.detail;
2379
2482
  }
2380
2483
  render() {
2381
2484
  return this.gatekeeper() || this._getResource.render({
2382
- pending: () => d`<solid-loader></solid-loader>`,
2383
- error: (t) => (console.warn("[solid-fact-bundle-creation] Task error:", t), c),
2485
+ pending: () => u`<solid-loader></solid-loader>`,
2486
+ error: (t) => (console.warn("[solid-fact-bundle-creation] Task error:", t), l),
2384
2487
  complete: (t) => {
2385
- if (!t) return c;
2386
- const r = t.slice(0, this.spliceLength), i = this.selectedFacts.length, s = !!this.bundleName && i > 0;
2387
- return d`<tems-viewport>
2488
+ if (!t) return l;
2489
+ const s = t.slice(0, this.spliceLength), i = this.selectedFacts.length, r = !!this.bundleName && i > 0 && !!this.bundleLanguage && !!this.bundleAccessPolicy && !!this.bundleContractPolicy;
2490
+ return u`<tems-viewport>
2388
2491
  <tems-header slot="header" heading=${this.header}>
2389
2492
  <div slot="cta">
2390
2493
  <tems-button
2391
2494
  type="primary"
2392
- disabled=${!s || c}
2393
- label=${h("Create bundle")}
2495
+ disabled=${!r || l}
2496
+ label=${d("Create bundle")}
2394
2497
  @click=${this._createFactBundle}
2395
2498
  ></tems-button>
2396
2499
  </div>
@@ -2401,8 +2504,8 @@ let w = class extends v {
2401
2504
  <div>
2402
2505
  <tems-input
2403
2506
  type="text"
2404
- label=${h("Bundle name")}
2405
- placeholder=${h("Bundle name")}
2507
+ label=${d("Bundle name")}
2508
+ placeholder=${d("Bundle name")}
2406
2509
  required=""
2407
2510
  .value=${this.bundleName}
2408
2511
  @change=${this._updateBundleName}
@@ -2411,16 +2514,49 @@ let w = class extends v {
2411
2514
  <div>
2412
2515
  <tems-textarea
2413
2516
  rows="4"
2414
- label=${h("Bundle description")}
2415
- placeholder=${h("Bundle description")}
2517
+ label=${d("Bundle description")}
2518
+ placeholder=${d("Bundle description")}
2416
2519
  .value=${this.bundleDescription}
2417
2520
  @change=${this._updateBundleDescription}
2418
2521
  ></tems-textarea>
2419
2522
  </div>
2420
- ${i > 0 ? d`<tems-division type="h4">
2523
+ <div>
2524
+ <tems-input
2525
+ type="text"
2526
+ label=${d("Language")}
2527
+ placeholder=${d("Language code (en, de, es, fr...)")}
2528
+ hint=${d("Comma-separated, eg.: en,de,es,fr)")}
2529
+ required=""
2530
+ .value=${this.bundleLanguage}
2531
+ @change=${this._updateBundleLanguage}
2532
+ ></tems-input>
2533
+ </div>
2534
+ <div class="select">
2535
+ <tems-label label=${d("Access policy")}></tems-label>
2536
+ <select @change=${this._selectBundleAccessPolicy}>
2537
+ ${this.policyTemplates.map((o) => u`<option
2538
+ value="${o.id}"
2539
+ ?selected="${o.id === this.bundleAccessPolicy}"
2540
+ >
2541
+ ${o.name}
2542
+ </option>`)}
2543
+ </select>
2544
+ </div>
2545
+ <div class="select">
2546
+ <tems-label label=${d("Contract policy")}></tems-label>
2547
+ <select @change=${this._selectBundleContractPolicy}>
2548
+ ${this.policyTemplates.map((o) => u`<option
2549
+ value="${o.id}"
2550
+ ?selected="${o.id === this.bundleContractPolicy}"
2551
+ >
2552
+ ${o.name}
2553
+ </option>`)}
2554
+ </select>
2555
+ </div>
2556
+ ${i > 0 ? u`<tems-division type="h4">
2421
2557
  <div>
2422
- ${h(
2423
- S`${i} selected fact${i > 1 ? "s" : ""}`
2558
+ ${d(
2559
+ P`${i} selected fact${i > 1 ? "s" : ""}`
2424
2560
  )}
2425
2561
  </div></tems-division
2426
2562
  >
@@ -2433,14 +2569,14 @@ let w = class extends v {
2433
2569
  if (n.length > 3) {
2434
2570
  const a = n.length - 3;
2435
2571
  n.splice(3, a), n.push({
2436
- name: `+${a} ${h("more")}`,
2572
+ name: `+${a} ${d("more")}`,
2437
2573
  type: "information"
2438
2574
  });
2439
2575
  }
2440
- return d`<tems-card-catalog
2441
- .object=${c}
2442
- .header=${o.name || c}
2443
- date=${o.updated_at || c}
2576
+ return u`<tems-card-catalog
2577
+ .object=${l}
2578
+ .header=${o.name || l}
2579
+ date=${o.updated_at || l}
2444
2580
  @click=${this._toggleFactSelection.bind(
2445
2581
  this,
2446
2582
  o
@@ -2448,9 +2584,9 @@ let w = class extends v {
2448
2584
  selected=${!0}
2449
2585
  ></tems-card-catalog>`;
2450
2586
  })}
2451
- </div>` : c}
2587
+ </div>` : l}
2452
2588
  </div>
2453
- ${r.length > 0 || this.filterFactText ? d`<div>
2589
+ ${s.length > 0 || this.filterFactText ? u`<div>
2454
2590
  <div>
2455
2591
  <tems-search-bar
2456
2592
  .displayFilters=${!1}
@@ -2465,8 +2601,8 @@ let w = class extends v {
2465
2601
  @search=${this._searchFacts}
2466
2602
  ></tems-search-bar>
2467
2603
  </div>
2468
- ${r.length > 0 ? d` <div class="card-grid card-grid-vertical">
2469
- ${r.map((o) => {
2604
+ ${s.length > 0 ? u` <div class="card-grid card-grid-vertical">
2605
+ ${s.map((o) => {
2470
2606
  const n = o.categories.map(
2471
2607
  (a) => ({
2472
2608
  name: a.name,
@@ -2476,16 +2612,16 @@ let w = class extends v {
2476
2612
  if (n.length > 3) {
2477
2613
  const a = n.length - 3;
2478
2614
  n.splice(3, a), n.push({
2479
- name: `+${a} ${h("more")}`,
2615
+ name: `+${a} ${d("more")}`,
2480
2616
  type: "information"
2481
2617
  });
2482
2618
  }
2483
- return d`<tems-card-catalog
2484
- .object=${c}
2619
+ return u`<tems-card-catalog
2620
+ .object=${l}
2485
2621
  .tags=${n}
2486
- .header=${o.name || c}
2487
- .content=${o.description || c}
2488
- date=${o.updated_at || c}
2622
+ .header=${o.name || l}
2623
+ .content=${o.description || l}
2624
+ date=${o.updated_at || l}
2489
2625
  @click=${this._toggleFactSelection.bind(
2490
2626
  this,
2491
2627
  o
@@ -2493,12 +2629,12 @@ let w = class extends v {
2493
2629
  ></tems-card-catalog>`;
2494
2630
  })}
2495
2631
  </div>
2496
- ${r.length < t.length ? d`<div
2632
+ ${s.length < t.length ? u`<div
2497
2633
  class="flex flex-row justify-content-space-between align-items-flex-end"
2498
2634
  >
2499
2635
  <div>
2500
- ${h(
2501
- S`Displaying ${r.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2636
+ ${d(
2637
+ P`Displaying ${s.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
2502
2638
  )}
2503
2639
  </div>
2504
2640
  <div class="flex flex-row gap-400">
@@ -2506,17 +2642,18 @@ let w = class extends v {
2506
2642
  @click=${this._showMoreResults}
2507
2643
  type="primary"
2508
2644
  size="sm"
2509
- label=${h("Show more results")}
2645
+ label=${d("Show more results")}
2510
2646
  ></tems-button>
2511
2647
  <tems-button
2512
2648
  @click=${this._showAllResults}
2513
2649
  type="primary"
2514
2650
  size="sm"
2515
- label=${h("Show all results")}
2651
+ label=${d("Show all results")}
2516
2652
  ></tems-button>
2517
2653
  </div>
2518
- </div>` : c}` : d`${h("No results found")} ${this.filterFactText ? `for "${this.filterFactText}".` : ""}`}
2519
- </div>` : c}
2654
+ </div>` : l}` : u`${d("No results found")}
2655
+ ${this.filterFactText ? `for "${this.filterFactText}".` : ""}`}
2656
+ </div>` : l}
2520
2657
  </section>
2521
2658
  </div>
2522
2659
  </tems-viewport>`;
@@ -2524,105 +2661,69 @@ let w = class extends v {
2524
2661
  });
2525
2662
  }
2526
2663
  };
2527
- w.styles = [
2528
- St(Or),
2529
- Y`
2530
- [slot="content"] {
2531
- height: 100%;
2532
- }
2533
- section {
2534
- gap: var(--scale-400);
2535
- padding: var(--scale-900) 0;
2536
- height: calc(100% - var(--scale-900) * 2);
2537
- }
2538
- section > div {
2539
- height: 100%;
2540
- display: flex;
2541
- flex-direction: column;
2542
- gap: var(--scale-400);
2543
- flex: 1;
2544
- }
2545
- section > div:first-child {
2546
- max-width: 400px;
2547
- }
2548
- .card-grid {
2549
- flex: 1;
2550
- overflow-y: scroll;
2551
- display: flex;
2552
- flex-direction: row;
2553
- flex-wrap: wrap;
2554
- gap: 20px;
2555
- align-content: flex-start;
2556
- }
2557
- .card-grid-vertical {
2558
- justify-content: stretch;
2559
- }
2560
- .card-grid-vertical tems-card-catalog {
2561
- width: 354px;
2562
- height: fit-content;
2563
- }
2564
- tems-card-catalog {
2565
- cursor: pointer;
2566
- }
2567
- tems-card-catalog[selected] {
2568
- --color-border-primary: var(--color-surface-action-solid);
2569
- }
2570
- tems-search-bar {
2571
- --scale-900: 0;
2572
- }
2573
- .gap-400 {
2574
- gap: var(--scale-400);
2575
- }
2576
- `
2577
- ];
2578
- U([
2664
+ v.styles = [xt(Os)];
2665
+ $([
2579
2666
  y({ attribute: "header", type: String })
2580
- ], w.prototype, "header", 2);
2581
- U([
2667
+ ], v.prototype, "header", 2);
2668
+ $([
2582
2669
  y({ attribute: "facts-src", reflect: !0 })
2583
- ], w.prototype, "factsSrc", 2);
2584
- U([
2585
- m()
2586
- ], w.prototype, "selectedFacts", 2);
2587
- U([
2588
- m()
2589
- ], w.prototype, "bundleName", 2);
2590
- U([
2591
- m()
2592
- ], w.prototype, "bundleDescription", 2);
2593
- U([
2594
- m()
2595
- ], w.prototype, "filterFactText", 2);
2596
- U([
2597
- m()
2598
- ], w.prototype, "spliceLength", 2);
2599
- w = U([
2670
+ ], v.prototype, "factsSrc", 2);
2671
+ $([
2672
+ f()
2673
+ ], v.prototype, "selectedFacts", 2);
2674
+ $([
2675
+ f()
2676
+ ], v.prototype, "bundleName", 2);
2677
+ $([
2678
+ f()
2679
+ ], v.prototype, "bundleDescription", 2);
2680
+ $([
2681
+ f()
2682
+ ], v.prototype, "bundleLanguage", 2);
2683
+ $([
2684
+ f()
2685
+ ], v.prototype, "bundleAccessPolicy", 2);
2686
+ $([
2687
+ f()
2688
+ ], v.prototype, "bundleContractPolicy", 2);
2689
+ $([
2690
+ f()
2691
+ ], v.prototype, "filterFactText", 2);
2692
+ $([
2693
+ f()
2694
+ ], v.prototype, "spliceLength", 2);
2695
+ $([
2696
+ f()
2697
+ ], v.prototype, "dspConnector", 2);
2698
+ v = $([
2600
2699
  V("solid-fact-bundle-creation")
2601
- ], w);
2602
- var Ir = Object.defineProperty, Lr = Object.getOwnPropertyDescriptor, et = (e, t, r, i) => {
2603
- for (var s = i > 1 ? void 0 : i ? Lr(t, r) : t, o = e.length - 1, n; o >= 0; o--)
2604
- (n = e[o]) && (s = (i ? n(t, r, s) : n(s)) || s);
2605
- return i && s && Ir(t, r, s), s;
2700
+ ], v);
2701
+ var ks = Object.defineProperty, Ts = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
2702
+ for (var r = i > 1 ? void 0 : i ? Ts(t, s) : t, o = e.length - 1, n; o >= 0; o--)
2703
+ (n = e[o]) && (r = (i ? n(t, s, r) : n(r)) || r);
2704
+ return i && r && ks(t, s, r), r;
2606
2705
  };
2607
- let T = class extends v {
2706
+ let F = class extends b {
2608
2707
  constructor() {
2609
- super(), this.header = "DS4GO Fact Bundling", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
2610
- { key: "created_at", value: "created_at", cast: I },
2611
- { key: "updated_at", value: "updated_at", cast: I },
2708
+ super(...arguments), this.header = "DS4GO Fact Bundling", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
2709
+ { key: "created_at", value: "created_at", cast: T },
2710
+ { key: "updated_at", value: "updated_at", cast: T },
2612
2711
  { key: "name", value: "name" },
2613
2712
  { key: "description", value: "description" }
2614
2713
  ], this._getResource = new pt(this, {
2615
2714
  task: async ([e, t]) => {
2616
- if (!(!e && !t || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
2617
- if (this.menuComponent.ready || await new Promise((r) => {
2715
+ if (!(!e || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
2716
+ if (this.menuComponent.ready || await new Promise((s) => {
2618
2717
  this.menuComponent.addEventListener("user-ready", () => {
2619
- r(!0);
2718
+ s(!0);
2620
2719
  });
2621
2720
  }), this.displayFiltering = !this.component.parameters.disableFiltering, !this.hasCachedDatas || this.oldDataSrc !== e) {
2622
2721
  if (!e) return;
2623
2722
  this.objects = await this._getProxyValue(e), this.hasCachedDatas = !0;
2624
2723
  }
2625
- return this.oldDataSrc !== e && (this.oldDataSrc = e), Array.isArray(this.objects) || (this.objects = []), this.object = this.objects.find((r) => r["@id"] === t), P(this.objects, "name", "asc");
2724
+ return this.oldDataSrc !== e && (this.oldDataSrc = e), Array.isArray(this.objects) || (this.objects = []), t ? this.object = this.objects.find(
2725
+ (s) => s["@id"] === t
2726
+ ) : this.dataSrc = e, j(this.objects, "name", "asc");
2626
2727
  }
2627
2728
  },
2628
2729
  args: () => [
@@ -2631,22 +2732,20 @@ let T = class extends v {
2631
2732
  this.caching,
2632
2733
  this.currentRoute
2633
2734
  ]
2634
- }), We(this, {
2635
- keywords: ["factbundles"]
2636
2735
  });
2637
2736
  }
2638
2737
  async _responseAdaptator(e) {
2639
2738
  return e?._originalResource?.hasType("ds4go:FactBundle") && (e.facts = await Promise.all(
2640
2739
  (await e._originalResource["ldp:contains"]).map(
2641
2740
  (t) => this._getProxyValue(t["@id"], !1, [
2642
- { key: "updated_at", value: "updated_at", cast: I },
2741
+ { key: "updated_at", value: "updated_at", cast: T },
2643
2742
  { key: "name", value: "name" },
2644
2743
  { key: "description", value: "description" },
2645
2744
  {
2646
2745
  key: "categories",
2647
2746
  value: "categories",
2648
2747
  expand: !0,
2649
- cast: (r) => P(r, "name")
2748
+ cast: (s) => j(s, "name")
2650
2749
  },
2651
2750
  { key: "author", value: "author" },
2652
2751
  { key: "link", value: "link" },
@@ -2664,7 +2763,9 @@ let T = class extends v {
2664
2763
  )), Promise.resolve(e);
2665
2764
  }
2666
2765
  async _afterAttach() {
2667
- return this.menuComponent = document.querySelector(
2766
+ return We(this, {
2767
+ keywords: ["factbundles"]
2768
+ }), this.menuComponent = document.querySelector(
2668
2769
  `[uniq="${this.orbit?.getComponent("menu")?.uniq}"]`
2669
2770
  ), this.bundleCreationComponent = this.orbit?.getComponent(
2670
2771
  "fact-bundle-creation"
@@ -2676,40 +2777,40 @@ let T = class extends v {
2676
2777
  _openModal(e) {
2677
2778
  if (e.preventDefault(), this.route)
2678
2779
  if ("use-id" in (this.component.routeAttributes || {}))
2679
- N(this.route, e.detail["@id"]);
2780
+ L(this.route, e.detail["@id"]);
2680
2781
  else {
2681
2782
  const t = e.detail["@type"]?.at(-1) ?? e.detail["@type"];
2682
2783
  if (t) {
2683
- const r = window.orbit?.components?.filter(
2784
+ const s = window.orbit?.components?.filter(
2684
2785
  (i) => i?.routeAttributes?.["rdf-type"] === t
2685
2786
  );
2686
- r?.[0]?.route && N(r[0]?.route, e.detail["@id"]);
2787
+ s?.[0]?.route && L(s[0]?.route, e.detail["@id"]);
2687
2788
  }
2688
2789
  }
2689
2790
  }
2690
2791
  _closeModal(e) {
2691
- e.preventDefault(), this.route && N(this.route, this.defaultDataSrc);
2792
+ e.preventDefault(), this.route && L(this.route, this.defaultDataSrc);
2692
2793
  }
2693
2794
  _closeModalFromBackground(e) {
2694
- e.preventDefault(), this.route && e.target?.classList.contains("modal") && N(this.route, this.defaultDataSrc);
2795
+ e.preventDefault(), this.route && e.target?.classList.contains("modal") && L(this.route, this.defaultDataSrc);
2695
2796
  }
2696
2797
  _resultCountUpdate(e) {
2697
2798
  this.resultCount = e.detail ?? 0;
2698
2799
  }
2699
2800
  _goToBundleCreation(e) {
2700
- e.preventDefault(), this.bundleCreationComponent?.route && N(this.bundleCreationComponent.route);
2801
+ e.preventDefault(), this.bundleCreationComponent?.route && L(this.bundleCreationComponent.route);
2701
2802
  }
2702
2803
  render() {
2703
2804
  return this.gatekeeper() || this._getResource.render({
2704
- pending: () => d`<solid-loader></solid-loader>`,
2705
- error: (e) => (console.warn("[solid-fact-bundle] Task error:", e), c),
2706
- complete: (e) => d`<tems-viewport>
2805
+ pending: () => u`<solid-loader></solid-loader>`,
2806
+ error: (e) => (console.warn("[solid-fact-bundle] Task error:", e), l),
2807
+ complete: (e) => u`<tems-viewport>
2707
2808
  <tems-header slot="header" heading=${this.header}>
2708
2809
  <div slot="cta">
2709
2810
  <tems-button
2710
2811
  type="primary"
2711
- disabled=${!this.bundleCreationComponent?.route || c}
2712
- label=${h("Create a bundle")}
2812
+ disabled=${!this.bundleCreationComponent?.route || l}
2813
+ label=${d("Create a bundle")}
2713
2814
  @click=${this._goToBundleCreation}
2714
2815
  ></tems-button>
2715
2816
  </div>
@@ -2729,7 +2830,7 @@ let T = class extends v {
2729
2830
  @clicked=${this._openModal}
2730
2831
  @result-count=${this._resultCountUpdate}
2731
2832
  ></ds4go-fact-bundle-holder>
2732
- ${this.object ? d`<div
2833
+ ${this.object ? u`<div
2733
2834
  class="modal"
2734
2835
  @click=${this._closeModalFromBackground}
2735
2836
  >
@@ -2737,13 +2838,13 @@ let T = class extends v {
2737
2838
  .object=${this.object}
2738
2839
  @close=${this._closeModal}
2739
2840
  ></ds4go-fact-bundle-modal>
2740
- </div>` : c}
2841
+ </div>` : l}
2741
2842
  </div>
2742
2843
  </tems-viewport>`
2743
2844
  });
2744
2845
  }
2745
2846
  };
2746
- T.styles = Y`
2847
+ F.styles = lt`
2747
2848
  .modal {
2748
2849
  position: fixed;
2749
2850
  top: 0;
@@ -2757,39 +2858,45 @@ T.styles = Y`
2757
2858
  align-items: center;
2758
2859
  }
2759
2860
  `;
2760
- et([
2861
+ tt([
2761
2862
  y({ attribute: "header", type: String })
2762
- ], T.prototype, "header", 2);
2763
- et([
2764
- m()
2765
- ], T.prototype, "search", 2);
2766
- et([
2767
- m()
2768
- ], T.prototype, "resultCount", 2);
2769
- et([
2770
- m()
2771
- ], T.prototype, "bundleCreationComponent", 2);
2772
- T = et([
2863
+ ], F.prototype, "header", 2);
2864
+ tt([
2865
+ f()
2866
+ ], F.prototype, "search", 2);
2867
+ tt([
2868
+ f()
2869
+ ], F.prototype, "resultCount", 2);
2870
+ tt([
2871
+ f()
2872
+ ], F.prototype, "bundleCreationComponent", 2);
2873
+ F = tt([
2773
2874
  V("solid-fact-bundle")
2774
- ], T);
2775
- const Tr = {
2875
+ ], F);
2876
+ const Is = {
2776
2877
  s20acf344316637a0: "All Catalogs",
2777
- s67269ab6dc51ec41: S`Error while loading catalog ${0}`,
2878
+ s67269ab6dc51ec41: P`Error while loading catalog ${0}`,
2778
2879
  s0b88896b7338837d: "All Datasets",
2779
2880
  s541d9cd11a5bc840: "Datasets from",
2780
2881
  s01ceffa02fa6bd7f: "All Sectors",
2781
2882
  s4aaac20ff7887391: "Catalogs available in",
2782
2883
  sa89a60c3e1230cec: "Root Authority",
2783
- se5784a16a6799dad: S`Back to ${0}`,
2884
+ se5784a16a6799dad: P`Back to ${0}`,
2784
2885
  s6665daa6d6147db0: "No data available, data source may be temporarily unavailable.",
2785
2886
  sc16e00a7a8b2fde2: "Back",
2786
2887
  s2c8189544e3ea679: "Retry",
2888
+ sc7e3b594ffcd9d61: "Open access",
2787
2889
  seb1a452f2df70baf: "Create bundle",
2788
2890
  sed5b6ae54e00125c: "Bundle name",
2789
2891
  s11099da36cbc3173: "Bundle description",
2790
- sac1b0231875ff056: S`${0} selected fact${1}`,
2892
+ sefcf950b3cc4fc3b: "Language",
2893
+ s6ae6714aac4ba43d: "Language code (en, de, es, fr...)",
2894
+ s21fb127cabcd5617: "Comma-separated, eg.: en,de,es,fr)",
2895
+ sa6ef22f7e7e95e2b: "Access policy",
2896
+ s6de61424bb681993: "Contract policy",
2897
+ sac1b0231875ff056: P`${0} selected fact${1}`,
2791
2898
  s0d1be7a2c400c080: "more",
2792
- s8272d3578b7c78d5: S`Displaying ${0} of ${1} result${2}`,
2899
+ s8272d3578b7c78d5: P`Displaying ${0} of ${1} result${2}`,
2793
2900
  sa40e7f4f2a43e2f7: "Show more results",
2794
2901
  sacf246e0fa11730d: "Show all results",
2795
2902
  s9094c0cde8fb5058: "No results found",
@@ -2799,20 +2906,20 @@ const Tr = {
2799
2906
  s4979bd417e7c8052: "All facts in this bundle",
2800
2907
  s57a40de45f324b96: "Bundle created on",
2801
2908
  sd3682395cf86f913: "Bundle updated on"
2802
- }, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2909
+ }, Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2803
2910
  __proto__: null,
2804
- templates: Tr
2805
- }, Symbol.toStringTag, { value: "Module" })), Mr = "en", he = [
2911
+ templates: Is
2912
+ }, Symbol.toStringTag, { value: "Module" })), Ms = "en", ue = [
2806
2913
  "en"
2807
- ], Nr = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Fr }), Br = new Map(
2808
- he.map((e) => [
2914
+ ], Ns = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Fs }), Bs = new Map(
2915
+ ue.map((e) => [
2809
2916
  e,
2810
- Nr[`../../generated/locales/${e}.ts`]
2917
+ Ns[`../../generated/locales/${e}.ts`]
2811
2918
  ])
2812
- ), { getLocale: Zt, setLocale: Xt } = vr({
2813
- sourceLocale: Mr,
2814
- targetLocales: he,
2815
- loadLocale: async (e) => Br.get(e)
2919
+ ), { getLocale: Zt, setLocale: Xt } = vs({
2920
+ sourceLocale: Ms,
2921
+ targetLocales: ue,
2922
+ loadLocale: async (e) => Bs.get(e)
2816
2923
  });
2817
2924
  window.getLocale = window.getLocale ? window.getLocale.push(Zt) : [Zt];
2818
2925
  window.setLocale = window.setLocale ? window.setLocale.push(Xt) : [Xt];