@startinblox/components-ds4go 4.1.8 → 4.1.9
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
|
-
const
|
|
2
|
-
const
|
|
3
|
-
let
|
|
1
|
+
const vs = ":host{box-sizing:border-box;display:flex;height:fit-content;max-width:100%;width:100%}article{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg);display:flex;font-family:var(--font-family-body);width:100%}article.vertical{min-width:295px}article.vertical .card-content,article.vertical .card-content tems-division{max-height:180px}article.billImage header,article.horizontal header{border-radius:var(--border-radius-lg) 0 0 var(--border-radius-lg);width:auto}article.billImage header.image,article.horizontal header.image{flex-shrink:0;height:100%;width:33%}article.billImage main,article.horizontal main{flex-grow:1}article.billImage main .card-content,article.billImage main .card-content tems-division,article.horizontal main .card-content,article.horizontal main .card-content tems-division{max-height:78px}article.billImage header.image{width:50%}article.billImage .card-content,article.billImage .card-content tems-division{max-height:206px}article header{background-position:50%;background-repeat:no-repeat;background-size:contain;box-sizing:border-box;display:flex;padding:var(--scale-400);width:100%}article main{display:flex;flex:1;flex-direction:column;gap:var(--scale-400)}article main .content{flex:1}article main .card-content{flex-grow:1;overflow:hidden;text-overflow:ellipsis;width:100%}article main .date{color:var(--color-text-disabled-on);display:flex;flex-direction:row;font-size:var(--typography-size-body-sm);font-weight:var(--font-weight-regular);gap:24px;line-height:var(--line-height-body-sm);text-transform:uppercase;width:fit-content}article .action,article .tags{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--scale-200)}article .action ::slotted(*){border-top:var(--border-width-sm) solid var(--color-border-primary);padding:var(--scale-400);width:100%}article .action slot:not(:has-slotted){display:none}article.vertical{flex-direction:column}article.vertical header{border-bottom:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0;width:100%}article.vertical header.image{height:167px}article.vertical main{padding:var(--scale-600);padding-bottom:var(--scale-800)}article.billImage .date,article.vertical .date{justify-content:space-between;width:100%}article.billImage main,article.horizontal main{padding:var(--scale-600);padding-bottom:var(--scale-800)}article div:has(slot:not(:has-slotted)){display:none}";
|
|
2
|
+
const be = globalThis, mi = be.ShadowRoot && (be.ShadyCSS === void 0 || be.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = /* @__PURE__ */ Symbol(), zi = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
let Rr = class {
|
|
4
4
|
constructor(t, i, r) {
|
|
5
|
-
if (this._$cssResult$ = !0, r !==
|
|
5
|
+
if (this._$cssResult$ = !0, r !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
6
6
|
this.cssText = t, this.t = i;
|
|
7
7
|
}
|
|
8
8
|
get styleSheet() {
|
|
9
9
|
let t = this.o;
|
|
10
10
|
const i = this.t;
|
|
11
|
-
if (
|
|
11
|
+
if (mi && t === void 0) {
|
|
12
12
|
const r = i !== void 0 && i.length === 1;
|
|
13
|
-
r && (t =
|
|
13
|
+
r && (t = zi.get(i)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && zi.set(i, t));
|
|
14
14
|
}
|
|
15
15
|
return t;
|
|
16
16
|
}
|
|
@@ -18,28 +18,28 @@ let Or = class {
|
|
|
18
18
|
return this.cssText;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
const
|
|
21
|
+
const M = (e) => new Rr(typeof e == "string" ? e : e + "", void 0, fi), C = (e, ...t) => {
|
|
22
22
|
const i = e.length === 1 ? e[0] : t.reduce((r, s, o) => r + ((a) => {
|
|
23
23
|
if (a._$cssResult$ === !0) return a.cssText;
|
|
24
24
|
if (typeof a == "number") return a;
|
|
25
25
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
26
26
|
})(s) + e[o + 1], e[0]);
|
|
27
|
-
return new
|
|
28
|
-
},
|
|
29
|
-
if (
|
|
27
|
+
return new Rr(i, e, fi);
|
|
28
|
+
}, bs = (e, t) => {
|
|
29
|
+
if (mi) e.adoptedStyleSheets = t.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
|
|
30
30
|
else for (const i of t) {
|
|
31
|
-
const r = document.createElement("style"), s =
|
|
31
|
+
const r = document.createElement("style"), s = be.litNonce;
|
|
32
32
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = i.cssText, e.appendChild(r);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, qi = mi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
35
35
|
let i = "";
|
|
36
36
|
for (const r of t.cssRules) i += r.cssText;
|
|
37
|
-
return
|
|
37
|
+
return M(i);
|
|
38
38
|
})(e) : e;
|
|
39
|
-
const { is:
|
|
39
|
+
const { is: $s, defineProperty: ws, getOwnPropertyDescriptor: _s, getOwnPropertyNames: xs, getOwnPropertySymbols: Ps, getPrototypeOf: As } = Object, Re = globalThis, Bi = Re.trustedTypes, Cs = Bi ? Bi.emptyScript : "", Ss = Re.reactiveElementPolyfillSupport, Yt = (e, t) => e, we = { toAttribute(e, t) {
|
|
40
40
|
switch (t) {
|
|
41
41
|
case Boolean:
|
|
42
|
-
e = e ?
|
|
42
|
+
e = e ? Cs : null;
|
|
43
43
|
break;
|
|
44
44
|
case Object:
|
|
45
45
|
case Array:
|
|
@@ -64,8 +64,8 @@ const { is: ys, defineProperty: vs, getOwnPropertyDescriptor: bs, getOwnProperty
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
return i;
|
|
67
|
-
} },
|
|
68
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
67
|
+
} }, De = (e, t) => !$s(e, t), Wi = { attribute: !0, type: String, converter: we, reflect: !1, useDefault: !1, hasChanged: De };
|
|
68
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Re.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
69
69
|
let jt = class extends HTMLElement {
|
|
70
70
|
static addInitializer(t) {
|
|
71
71
|
this._$Ei(), (this.l ??= []).push(t);
|
|
@@ -73,14 +73,14 @@ let jt = class extends HTMLElement {
|
|
|
73
73
|
static get observedAttributes() {
|
|
74
74
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
75
75
|
}
|
|
76
|
-
static createProperty(t, i =
|
|
76
|
+
static createProperty(t, i = Wi) {
|
|
77
77
|
if (i.state && (i.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((i = Object.create(i)).wrapped = !0), this.elementProperties.set(t, i), !i.noAccessor) {
|
|
78
78
|
const r = /* @__PURE__ */ Symbol(), s = this.getPropertyDescriptor(t, r, i);
|
|
79
|
-
s !== void 0 &&
|
|
79
|
+
s !== void 0 && ws(this.prototype, t, s);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
static getPropertyDescriptor(t, i, r) {
|
|
83
|
-
const { get: s, set: o } =
|
|
83
|
+
const { get: s, set: o } = _s(this.prototype, t) ?? { get() {
|
|
84
84
|
return this[i];
|
|
85
85
|
}, set(a) {
|
|
86
86
|
this[i] = a;
|
|
@@ -91,17 +91,17 @@ let jt = class extends HTMLElement {
|
|
|
91
91
|
}, configurable: !0, enumerable: !0 };
|
|
92
92
|
}
|
|
93
93
|
static getPropertyOptions(t) {
|
|
94
|
-
return this.elementProperties.get(t) ??
|
|
94
|
+
return this.elementProperties.get(t) ?? Wi;
|
|
95
95
|
}
|
|
96
96
|
static _$Ei() {
|
|
97
97
|
if (this.hasOwnProperty(Yt("elementProperties"))) return;
|
|
98
|
-
const t =
|
|
98
|
+
const t = As(this);
|
|
99
99
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
100
100
|
}
|
|
101
101
|
static finalize() {
|
|
102
102
|
if (this.hasOwnProperty(Yt("finalized"))) return;
|
|
103
103
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Yt("properties"))) {
|
|
104
|
-
const i = this.properties, r = [...
|
|
104
|
+
const i = this.properties, r = [...xs(i), ...Ps(i)];
|
|
105
105
|
for (const s of r) this.createProperty(s, i[s]);
|
|
106
106
|
}
|
|
107
107
|
const t = this[Symbol.metadata];
|
|
@@ -120,8 +120,8 @@ let jt = class extends HTMLElement {
|
|
|
120
120
|
const i = [];
|
|
121
121
|
if (Array.isArray(t)) {
|
|
122
122
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
123
|
-
for (const s of r) i.unshift(
|
|
124
|
-
} else t !== void 0 && i.push(
|
|
123
|
+
for (const s of r) i.unshift(qi(s));
|
|
124
|
+
} else t !== void 0 && i.push(qi(t));
|
|
125
125
|
return i;
|
|
126
126
|
}
|
|
127
127
|
static _$Eu(t, i) {
|
|
@@ -147,7 +147,7 @@ let jt = class extends HTMLElement {
|
|
|
147
147
|
}
|
|
148
148
|
createRenderRoot() {
|
|
149
149
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
150
|
-
return
|
|
150
|
+
return bs(t, this.constructor.elementStyles), t;
|
|
151
151
|
}
|
|
152
152
|
connectedCallback() {
|
|
153
153
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
@@ -179,7 +179,7 @@ let jt = class extends HTMLElement {
|
|
|
179
179
|
requestUpdate(t, i, r, s = !1, o) {
|
|
180
180
|
if (t !== void 0) {
|
|
181
181
|
const a = this.constructor;
|
|
182
|
-
if (s === !1 && (o = this[t]), r ??= a.getPropertyOptions(t), !((r.hasChanged ??
|
|
182
|
+
if (s === !1 && (o = this[t]), r ??= a.getPropertyOptions(t), !((r.hasChanged ?? De)(o, i) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(a._$Eu(t, r)))) return;
|
|
183
183
|
this.C(t, i, r);
|
|
184
184
|
}
|
|
185
185
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -247,51 +247,51 @@ let jt = class extends HTMLElement {
|
|
|
247
247
|
firstUpdated(t) {
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[Yt("elementProperties")] = /* @__PURE__ */ new Map(), jt[Yt("finalized")] = /* @__PURE__ */ new Map(),
|
|
251
|
-
const
|
|
252
|
-
\f\r]`, Wt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
253
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
254
|
-
function
|
|
255
|
-
if (!
|
|
256
|
-
return
|
|
250
|
+
jt.elementStyles = [], jt.shadowRootOptions = { mode: "open" }, jt[Yt("elementProperties")] = /* @__PURE__ */ new Map(), jt[Yt("finalized")] = /* @__PURE__ */ new Map(), Ss?.({ ReactiveElement: jt }), (Re.reactiveElementVersions ??= []).push("2.1.2");
|
|
251
|
+
const gi = globalThis, Gi = (e) => e, _e = gi.trustedTypes, Hi = _e ? _e.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Dr = "$lit$", ut = `lit$${Math.random().toFixed(9).slice(2)}$`, Tr = "?" + ut, Es = `<${Tr}>`, Et = document, Zt = () => Et.createComment(""), Xt = (e) => e === null || typeof e != "object" && typeof e != "function", yi = Array.isArray, Os = (e) => yi(e) || typeof e?.[Symbol.iterator] == "function", qe = `[
|
|
252
|
+
\f\r]`, Wt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vi = /-->/g, Ki = />/g, Pt = RegExp(`>|${qe}(?:([^\\s"'>=/]+)(${qe}*=${qe}*(?:[^
|
|
253
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Yi = /'/g, Ji = /"/g, jr = /^(?:script|style|textarea|title)$/i, Is = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), c = Is(1), ht = /* @__PURE__ */ Symbol.for("lit-noChange"), p = /* @__PURE__ */ Symbol.for("lit-nothing"), Zi = /* @__PURE__ */ new WeakMap(), St = Et.createTreeWalker(Et, 129);
|
|
254
|
+
function kr(e, t) {
|
|
255
|
+
if (!yi(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
256
|
+
return Hi !== void 0 ? Hi.createHTML(t) : t;
|
|
257
257
|
}
|
|
258
|
-
const
|
|
258
|
+
const Rs = (e, t) => {
|
|
259
259
|
const i = e.length - 1, r = [];
|
|
260
260
|
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = Wt;
|
|
261
261
|
for (let n = 0; n < i; n++) {
|
|
262
262
|
const d = e[n];
|
|
263
263
|
let u, m, f = -1, g = 0;
|
|
264
|
-
for (; g < d.length && (a.lastIndex = g, m = a.exec(d), m !== null); ) g = a.lastIndex, a === Wt ? m[1] === "!--" ? a =
|
|
264
|
+
for (; g < d.length && (a.lastIndex = g, m = a.exec(d), m !== null); ) g = a.lastIndex, a === Wt ? m[1] === "!--" ? a = Vi : m[1] !== void 0 ? a = Ki : m[2] !== void 0 ? (jr.test(m[2]) && (s = RegExp("</" + m[2], "g")), a = Pt) : m[3] !== void 0 && (a = Pt) : a === Pt ? m[0] === ">" ? (a = s ?? Wt, f = -1) : m[1] === void 0 ? f = -2 : (f = a.lastIndex - m[2].length, u = m[1], a = m[3] === void 0 ? Pt : m[3] === '"' ? Ji : Yi) : a === Ji || a === Yi ? a = Pt : a === Vi || a === Ki ? a = Wt : (a = Pt, s = void 0);
|
|
265
265
|
const v = a === Pt && e[n + 1].startsWith("/>") ? " " : "";
|
|
266
|
-
o += a === Wt ? d +
|
|
266
|
+
o += a === Wt ? d + Es : f >= 0 ? (r.push(u), d.slice(0, f) + Dr + d.slice(f) + ut + v) : d + ut + (f === -2 ? n : v);
|
|
267
267
|
}
|
|
268
|
-
return [
|
|
268
|
+
return [kr(e, o + (e[i] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
|
|
269
269
|
};
|
|
270
270
|
class Qt {
|
|
271
271
|
constructor({ strings: t, _$litType$: i }, r) {
|
|
272
272
|
let s;
|
|
273
273
|
this.parts = [];
|
|
274
274
|
let o = 0, a = 0;
|
|
275
|
-
const n = t.length - 1, d = this.parts, [u, m] =
|
|
275
|
+
const n = t.length - 1, d = this.parts, [u, m] = Rs(t, i);
|
|
276
276
|
if (this.el = Qt.createElement(u, r), St.currentNode = this.el.content, i === 2 || i === 3) {
|
|
277
277
|
const f = this.el.content.firstChild;
|
|
278
278
|
f.replaceWith(...f.childNodes);
|
|
279
279
|
}
|
|
280
280
|
for (; (s = St.nextNode()) !== null && d.length < n; ) {
|
|
281
281
|
if (s.nodeType === 1) {
|
|
282
|
-
if (s.hasAttributes()) for (const f of s.getAttributeNames()) if (f.endsWith(
|
|
283
|
-
const g = m[a++], v = s.getAttribute(f).split(ut),
|
|
284
|
-
d.push({ type: 1, index: o, name:
|
|
282
|
+
if (s.hasAttributes()) for (const f of s.getAttributeNames()) if (f.endsWith(Dr)) {
|
|
283
|
+
const g = m[a++], v = s.getAttribute(f).split(ut), $ = /([.?@])?(.*)/.exec(g);
|
|
284
|
+
d.push({ type: 1, index: o, name: $[2], strings: v, ctor: $[1] === "." ? Ts : $[1] === "?" ? js : $[1] === "@" ? ks : Te }), s.removeAttribute(f);
|
|
285
285
|
} else f.startsWith(ut) && (d.push({ type: 6, index: o }), s.removeAttribute(f));
|
|
286
|
-
if (
|
|
286
|
+
if (jr.test(s.tagName)) {
|
|
287
287
|
const f = s.textContent.split(ut), g = f.length - 1;
|
|
288
288
|
if (g > 0) {
|
|
289
|
-
s.textContent =
|
|
289
|
+
s.textContent = _e ? _e.emptyScript : "";
|
|
290
290
|
for (let v = 0; v < g; v++) s.append(f[v], Zt()), St.nextNode(), d.push({ type: 2, index: ++o });
|
|
291
291
|
s.append(f[g], Zt());
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
} else if (s.nodeType === 8) if (s.data ===
|
|
294
|
+
} else if (s.nodeType === 8) if (s.data === Tr) d.push({ type: 2, index: o });
|
|
295
295
|
else {
|
|
296
296
|
let f = -1;
|
|
297
297
|
for (; (f = s.data.indexOf(ut, f + 1)) !== -1; ) d.push({ type: 7, index: o }), f += ut.length - 1;
|
|
@@ -310,7 +310,7 @@ function kt(e, t, i = e, r) {
|
|
|
310
310
|
const o = Xt(t) ? void 0 : t._$litDirective$;
|
|
311
311
|
return s?.constructor !== o && (s?._$AO?.(!1), o === void 0 ? s = void 0 : (s = new o(e), s._$AT(e, i, r)), r !== void 0 ? (i._$Co ??= [])[r] = s : i._$Cl = s), s !== void 0 && (t = kt(e, s._$AS(e, t.values), s, r)), t;
|
|
312
312
|
}
|
|
313
|
-
let
|
|
313
|
+
let Ds = class {
|
|
314
314
|
constructor(t, i) {
|
|
315
315
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
316
316
|
}
|
|
@@ -327,7 +327,7 @@ let Os = class {
|
|
|
327
327
|
for (; d !== void 0; ) {
|
|
328
328
|
if (a === d.index) {
|
|
329
329
|
let u;
|
|
330
|
-
d.type === 2 ? u = new
|
|
330
|
+
d.type === 2 ? u = new le(o, o.nextSibling, this, t) : d.type === 1 ? u = new d.ctor(o, d.name, d.strings, this, t) : d.type === 6 && (u = new Fs(o, this, t)), this._$AV.push(u), d = r[++n];
|
|
331
331
|
}
|
|
332
332
|
a !== d?.index && (o = St.nextNode(), a++);
|
|
333
333
|
}
|
|
@@ -338,7 +338,7 @@ let Os = class {
|
|
|
338
338
|
for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, i), i += r.strings.length - 2) : r._$AI(t[i])), i++;
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
|
-
class
|
|
341
|
+
class le {
|
|
342
342
|
get _$AU() {
|
|
343
343
|
return this._$AM?._$AU ?? this._$Cv;
|
|
344
344
|
}
|
|
@@ -357,7 +357,7 @@ class ne {
|
|
|
357
357
|
return this._$AB;
|
|
358
358
|
}
|
|
359
359
|
_$AI(t, i = this) {
|
|
360
|
-
t = kt(this, t, i), Xt(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== ht && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
360
|
+
t = kt(this, t, i), Xt(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== ht && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Os(t) ? this.k(t) : this._(t);
|
|
361
361
|
}
|
|
362
362
|
O(t) {
|
|
363
363
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -369,35 +369,35 @@ class ne {
|
|
|
369
369
|
this._$AH !== p && Xt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Et.createTextNode(t)), this._$AH = t;
|
|
370
370
|
}
|
|
371
371
|
$(t) {
|
|
372
|
-
const { values: i, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Qt.createElement(
|
|
372
|
+
const { values: i, _$litType$: r } = t, s = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Qt.createElement(kr(r.h, r.h[0]), this.options)), r);
|
|
373
373
|
if (this._$AH?._$AD === s) this._$AH.p(i);
|
|
374
374
|
else {
|
|
375
|
-
const o = new
|
|
375
|
+
const o = new Ds(s, this), a = o.u(this.options);
|
|
376
376
|
o.p(i), this.T(a), this._$AH = o;
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
_$AC(t) {
|
|
380
|
-
let i =
|
|
381
|
-
return i === void 0 &&
|
|
380
|
+
let i = Zi.get(t.strings);
|
|
381
|
+
return i === void 0 && Zi.set(t.strings, i = new Qt(t)), i;
|
|
382
382
|
}
|
|
383
383
|
k(t) {
|
|
384
|
-
|
|
384
|
+
yi(this._$AH) || (this._$AH = [], this._$AR());
|
|
385
385
|
const i = this._$AH;
|
|
386
386
|
let r, s = 0;
|
|
387
|
-
for (const o of t) s === i.length ? i.push(r = new
|
|
387
|
+
for (const o of t) s === i.length ? i.push(r = new le(this.O(Zt()), this.O(Zt()), this, this.options)) : r = i[s], r._$AI(o), s++;
|
|
388
388
|
s < i.length && (this._$AR(r && r._$AB.nextSibling, s), i.length = s);
|
|
389
389
|
}
|
|
390
390
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
391
391
|
for (this._$AP?.(!1, !0, i); t !== this._$AB; ) {
|
|
392
|
-
const r =
|
|
393
|
-
|
|
392
|
+
const r = Gi(t).nextSibling;
|
|
393
|
+
Gi(t).remove(), t = r;
|
|
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
|
-
let
|
|
400
|
+
let Te = class {
|
|
401
401
|
get tagName() {
|
|
402
402
|
return this.element.tagName;
|
|
403
403
|
}
|
|
@@ -421,21 +421,21 @@ let De = class {
|
|
|
421
421
|
j(t) {
|
|
422
422
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, Ts = class extends Te {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
428
428
|
j(t) {
|
|
429
429
|
this.element[this.name] = t === p ? void 0 : t;
|
|
430
430
|
}
|
|
431
|
-
},
|
|
431
|
+
}, js = class extends Te {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(...arguments), this.type = 4;
|
|
434
434
|
}
|
|
435
435
|
j(t) {
|
|
436
436
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
|
437
437
|
}
|
|
438
|
-
},
|
|
438
|
+
}, ks = class extends Te {
|
|
439
439
|
constructor(t, i, r, s, o) {
|
|
440
440
|
super(t, i, r, s, o), this.type = 5;
|
|
441
441
|
}
|
|
@@ -447,7 +447,7 @@ let De = class {
|
|
|
447
447
|
handleEvent(t) {
|
|
448
448
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
449
449
|
}
|
|
450
|
-
},
|
|
450
|
+
}, Fs = class {
|
|
451
451
|
constructor(t, i, r) {
|
|
452
452
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = r;
|
|
453
453
|
}
|
|
@@ -458,19 +458,19 @@ let De = class {
|
|
|
458
458
|
kt(this, t);
|
|
459
459
|
}
|
|
460
460
|
};
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
const
|
|
461
|
+
const Ns = gi.litHtmlPolyfillSupport;
|
|
462
|
+
Ns?.(Qt, le), (gi.litHtmlVersions ??= []).push("3.3.2");
|
|
463
|
+
const Ms = (e, t, i) => {
|
|
464
464
|
const r = i?.renderBefore ?? t;
|
|
465
465
|
let s = r._$litPart$;
|
|
466
466
|
if (s === void 0) {
|
|
467
467
|
const o = i?.renderBefore ?? null;
|
|
468
|
-
r._$litPart$ = s = new
|
|
468
|
+
r._$litPart$ = s = new le(t.insertBefore(Zt(), o), o, void 0, i ?? {});
|
|
469
469
|
}
|
|
470
470
|
return s._$AI(e), s;
|
|
471
471
|
};
|
|
472
|
-
const
|
|
473
|
-
let
|
|
472
|
+
const vi = globalThis;
|
|
473
|
+
let A = class extends jt {
|
|
474
474
|
constructor() {
|
|
475
475
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
476
476
|
}
|
|
@@ -480,7 +480,7 @@ let C = class extends jt {
|
|
|
480
480
|
}
|
|
481
481
|
update(t) {
|
|
482
482
|
const i = this.render();
|
|
483
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
483
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ms(i, this.renderRoot, this.renderOptions);
|
|
484
484
|
}
|
|
485
485
|
connectedCallback() {
|
|
486
486
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -492,16 +492,16 @@ let C = class extends jt {
|
|
|
492
492
|
return ht;
|
|
493
493
|
}
|
|
494
494
|
};
|
|
495
|
-
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
(
|
|
499
|
-
const
|
|
495
|
+
A._$litElement$ = !0, A.finalized = !0, vi.litElementHydrateSupport?.({ LitElement: A });
|
|
496
|
+
const Us = vi.litElementPolyfillSupport;
|
|
497
|
+
Us?.({ LitElement: A });
|
|
498
|
+
(vi.litElementVersions ??= []).push("4.2.2");
|
|
499
|
+
const w = (e) => (t, i) => {
|
|
500
500
|
i !== void 0 ? i.addInitializer(() => {
|
|
501
501
|
customElements.define(e, t);
|
|
502
502
|
}) : customElements.define(e, t);
|
|
503
503
|
};
|
|
504
|
-
const
|
|
504
|
+
const Ls = { attribute: !0, type: String, converter: we, reflect: !1, hasChanged: De }, zs = (e = Ls, t, i) => {
|
|
505
505
|
const { kind: r, metadata: s } = i;
|
|
506
506
|
let o = globalThis.litPropertyMetadata.get(s);
|
|
507
507
|
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(i.name, e), r === "accessor") {
|
|
@@ -523,7 +523,7 @@ const Ns = { attribute: !0, type: String, converter: we, reflect: !1, hasChanged
|
|
|
523
523
|
throw Error("Unsupported decorator location: " + r);
|
|
524
524
|
};
|
|
525
525
|
function y(e) {
|
|
526
|
-
return (t, i) => typeof i == "object" ?
|
|
526
|
+
return (t, i) => typeof i == "object" ? zs(e, t, i) : ((r, s, o) => {
|
|
527
527
|
const a = s.hasOwnProperty(o);
|
|
528
528
|
return s.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
|
529
529
|
})(e, t, i);
|
|
@@ -531,8 +531,8 @@ function y(e) {
|
|
|
531
531
|
function h(e) {
|
|
532
532
|
return y({ ...e, state: !0, attribute: !1 });
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
let
|
|
534
|
+
const Fr = { ATTRIBUTE: 1, CHILD: 2 }, Nr = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
|
535
|
+
let Mr = class {
|
|
536
536
|
constructor(t) {
|
|
537
537
|
}
|
|
538
538
|
get _$AU() {
|
|
@@ -548,9 +548,9 @@ let Fr = class {
|
|
|
548
548
|
return this.render(...i);
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
|
-
const
|
|
551
|
+
const Be = Nr(class extends Mr {
|
|
552
552
|
constructor(e) {
|
|
553
|
-
if (super(e), e.type !==
|
|
553
|
+
if (super(e), e.type !== Fr.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
554
554
|
}
|
|
555
555
|
render(e) {
|
|
556
556
|
return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
|
|
@@ -570,13 +570,13 @@ const qe = kr(class extends Fr {
|
|
|
570
570
|
return ht;
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
|
-
const
|
|
574
|
-
var
|
|
575
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
573
|
+
const Xi = (e) => e ?? p;
|
|
574
|
+
var qs = Object.defineProperty, Bs = Object.getOwnPropertyDescriptor, It = (e, t, i, r) => {
|
|
575
|
+
for (var s = r > 1 ? void 0 : r ? Bs(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
576
576
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
577
|
-
return r && s &&
|
|
577
|
+
return r && s && qs(t, i, s), s;
|
|
578
578
|
};
|
|
579
|
-
let at = class extends
|
|
579
|
+
let at = class extends A {
|
|
580
580
|
constructor() {
|
|
581
581
|
super(...arguments), this.cardType = "vertical", this.tags = [];
|
|
582
582
|
}
|
|
@@ -593,8 +593,8 @@ let at = class extends C {
|
|
|
593
593
|
(e) => c`<tems-badge
|
|
594
594
|
size="sm"
|
|
595
595
|
label=${typeof e == "string" ? e : e.name}
|
|
596
|
-
type=${typeof e != "string" &&
|
|
597
|
-
color=${typeof e != "string" &&
|
|
596
|
+
type=${typeof e != "string" && Xi(e.type)}
|
|
597
|
+
color=${typeof e != "string" && Xi(e.color)}
|
|
598
598
|
></tems-badge>`
|
|
599
599
|
)}
|
|
600
600
|
</div>`;
|
|
@@ -627,20 +627,20 @@ let at = class extends C {
|
|
|
627
627
|
const e = {
|
|
628
628
|
...this._getType()
|
|
629
629
|
};
|
|
630
|
-
return this.cardType === "horizontal" ? c`<article class=${
|
|
630
|
+
return this.cardType === "horizontal" ? c`<article class=${Be(e)}>
|
|
631
631
|
${this.renderImage()}
|
|
632
632
|
<main>
|
|
633
633
|
${this.renderTags()}
|
|
634
634
|
${this.renderContent()}
|
|
635
635
|
</main>
|
|
636
|
-
</article>` : this.cardType === "bill-image" ? c`<article class=${
|
|
636
|
+
</article>` : this.cardType === "bill-image" ? c`<article class=${Be(e)}>
|
|
637
637
|
${this.renderImage()}
|
|
638
638
|
<main>
|
|
639
639
|
${this.renderTags()}
|
|
640
640
|
${this.renderContent()}
|
|
641
641
|
${this.renderDate()}
|
|
642
642
|
</main>
|
|
643
|
-
</article>` : c`<article class=${
|
|
643
|
+
</article>` : c`<article class=${Be(e)}>
|
|
644
644
|
${this.renderImage()}
|
|
645
645
|
<main>
|
|
646
646
|
${this.renderDate()}
|
|
@@ -651,8 +651,8 @@ let at = class extends C {
|
|
|
651
651
|
</article>`;
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
|
-
at.styles =
|
|
655
|
-
${
|
|
654
|
+
at.styles = C`
|
|
655
|
+
${M(vs)};
|
|
656
656
|
`;
|
|
657
657
|
It([
|
|
658
658
|
y({ attribute: "type", type: String, reflect: !0 })
|
|
@@ -673,43 +673,43 @@ It([
|
|
|
673
673
|
y({ attribute: "image", type: String })
|
|
674
674
|
], at.prototype, "image", 2);
|
|
675
675
|
at = It([
|
|
676
|
-
|
|
676
|
+
w("ds4go-card-catalog")
|
|
677
677
|
], at);
|
|
678
|
-
const
|
|
679
|
-
const
|
|
680
|
-
const
|
|
678
|
+
const Ws = ":host{box-sizing:border-box;display:flex;height:fit-content;max-width:100%;width:100%}article{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg);flex-direction:column;font-family:var(--font-family-body);min-width:295px}article,article header{display:flex;width:100%}article header{background-position:50%;background-repeat:no-repeat;background-size:contain;border-bottom:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0;box-sizing:border-box;height:167px;padding:var(--scale-400)}article .card-content,article .card-content tems-division{max-height:180px}article main{display:flex;flex:1;flex-direction:column;gap:var(--scale-400);padding:var(--scale-600);padding-bottom:var(--scale-800)}article main .content{flex:1}article main .card-content{flex-grow:1;overflow:hidden;text-overflow:ellipsis;width:100%}article .tags{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--scale-200)}";
|
|
679
|
+
const si = "lit-localize-status";
|
|
680
|
+
const Gs = (e, ...t) => ({
|
|
681
681
|
strTag: !0,
|
|
682
682
|
strings: e,
|
|
683
683
|
values: t
|
|
684
|
-
}),
|
|
684
|
+
}), b = Gs, Hs = (e) => typeof e != "string" && "strTag" in e, Ur = (e, t, i) => {
|
|
685
685
|
let r = e[0];
|
|
686
686
|
for (let s = 1; s < e.length; s++)
|
|
687
687
|
r += t[i ? i[s - 1] : s - 1], r += e[s];
|
|
688
688
|
return r;
|
|
689
689
|
};
|
|
690
|
-
const
|
|
691
|
-
let l =
|
|
692
|
-
function
|
|
693
|
-
if (
|
|
690
|
+
const Lr = ((e) => Hs(e) ? Ur(e.strings, e.values) : e);
|
|
691
|
+
let l = Lr, Qi = !1;
|
|
692
|
+
function Vs(e) {
|
|
693
|
+
if (Qi)
|
|
694
694
|
throw new Error("lit-localize can only be configured once");
|
|
695
|
-
l = e,
|
|
695
|
+
l = e, Qi = !0;
|
|
696
696
|
}
|
|
697
|
-
class
|
|
697
|
+
class Ks {
|
|
698
698
|
constructor(t) {
|
|
699
699
|
this.__litLocalizeEventHandler = (i) => {
|
|
700
700
|
i.detail.status === "ready" && this.host.requestUpdate();
|
|
701
701
|
}, this.host = t;
|
|
702
702
|
}
|
|
703
703
|
hostConnected() {
|
|
704
|
-
window.addEventListener(
|
|
704
|
+
window.addEventListener(si, this.__litLocalizeEventHandler);
|
|
705
705
|
}
|
|
706
706
|
hostDisconnected() {
|
|
707
|
-
window.removeEventListener(
|
|
707
|
+
window.removeEventListener(si, this.__litLocalizeEventHandler);
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
const
|
|
711
|
-
const
|
|
712
|
-
class
|
|
710
|
+
const Ys = (e) => e.addController(new Ks(e)), Js = Ys;
|
|
711
|
+
const z = () => (e, t) => (e.addInitializer(Js), e);
|
|
712
|
+
class zr {
|
|
713
713
|
constructor() {
|
|
714
714
|
this.settled = !1, this.promise = new Promise((t, i) => {
|
|
715
715
|
this._resolve = t, this._reject = i;
|
|
@@ -725,25 +725,25 @@ class Ur {
|
|
|
725
725
|
const rt = [];
|
|
726
726
|
for (let e = 0; e < 256; e++)
|
|
727
727
|
rt[e] = (e >> 4 & 15).toString(16) + (e & 15).toString(16);
|
|
728
|
-
function
|
|
728
|
+
function Zs(e) {
|
|
729
729
|
let t = 0, i = 8997, r = 0, s = 33826, o = 0, a = 40164, n = 0, d = 52210;
|
|
730
730
|
for (let u = 0; u < e.length; u++)
|
|
731
731
|
i ^= e.charCodeAt(u), t = i * 435, r = s * 435, o = a * 435, n = d * 435, o += i << 8, n += s << 8, r += t >>> 16, i = t & 65535, o += r >>> 16, s = r & 65535, d = n + (o >>> 16) & 65535, a = o & 65535;
|
|
732
732
|
return rt[d >> 8] + rt[d & 255] + rt[a >> 8] + rt[a & 255] + rt[s >> 8] + rt[s & 255] + rt[i >> 8] + rt[i & 255];
|
|
733
733
|
}
|
|
734
|
-
const
|
|
735
|
-
function
|
|
736
|
-
return (t ?
|
|
734
|
+
const Xs = "", Qs = "h", to = "s";
|
|
735
|
+
function eo(e, t) {
|
|
736
|
+
return (t ? Qs : to) + Zs(typeof e == "string" ? e : e.join(Xs));
|
|
737
737
|
}
|
|
738
|
-
const
|
|
739
|
-
function
|
|
738
|
+
const tr = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new Map();
|
|
739
|
+
function io(e, t, i) {
|
|
740
740
|
if (e) {
|
|
741
|
-
const r = i?.id ??
|
|
741
|
+
const r = i?.id ?? ro(t), s = e[r];
|
|
742
742
|
if (s) {
|
|
743
743
|
if (typeof s == "string")
|
|
744
744
|
return s;
|
|
745
745
|
if ("strTag" in s)
|
|
746
|
-
return
|
|
746
|
+
return Ur(
|
|
747
747
|
s.strings,
|
|
748
748
|
// Cast `template` because its type wasn't automatically narrowed (but
|
|
749
749
|
// we know it must be the same type as `localized`).
|
|
@@ -751,57 +751,57 @@ function Qs(e, t, i) {
|
|
|
751
751
|
s.values
|
|
752
752
|
);
|
|
753
753
|
{
|
|
754
|
-
let o =
|
|
755
|
-
return o === void 0 && (o = s.values,
|
|
754
|
+
let o = tr.get(s);
|
|
755
|
+
return o === void 0 && (o = s.values, tr.set(s, o)), {
|
|
756
756
|
...s,
|
|
757
757
|
values: o.map((a) => t.values[a])
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
761
|
}
|
|
762
|
-
return
|
|
762
|
+
return Lr(t);
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function ro(e) {
|
|
765
765
|
const t = typeof e == "string" ? e : e.strings;
|
|
766
|
-
let i =
|
|
767
|
-
return i === void 0 && (i =
|
|
766
|
+
let i = er.get(t);
|
|
767
|
+
return i === void 0 && (i = eo(t, typeof e != "string" && !("strTag" in e)), er.set(t, i)), i;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
window.dispatchEvent(new CustomEvent(
|
|
769
|
+
function We(e) {
|
|
770
|
+
window.dispatchEvent(new CustomEvent(si, { detail: e }));
|
|
771
771
|
}
|
|
772
|
-
let
|
|
772
|
+
let xe = "", Ge, qr, Pe, oi, Br, Ct = new zr();
|
|
773
773
|
Ct.resolve();
|
|
774
|
-
let
|
|
775
|
-
const
|
|
776
|
-
if (e === (
|
|
774
|
+
let ye = 0;
|
|
775
|
+
const so = (e) => (Vs(((t, i) => io(Br, t, i))), xe = qr = e.sourceLocale, Pe = new Set(e.targetLocales), Pe.add(e.sourceLocale), oi = e.loadLocale, { getLocale: oo, setLocale: ao }), oo = () => xe, ao = (e) => {
|
|
776
|
+
if (e === (Ge ?? xe))
|
|
777
777
|
return Ct.promise;
|
|
778
|
-
if (!
|
|
778
|
+
if (!Pe || !oi)
|
|
779
779
|
throw new Error("Internal error");
|
|
780
|
-
if (!
|
|
780
|
+
if (!Pe.has(e))
|
|
781
781
|
throw new Error("Invalid locale code");
|
|
782
|
-
|
|
783
|
-
const t =
|
|
784
|
-
return
|
|
782
|
+
ye++;
|
|
783
|
+
const t = ye;
|
|
784
|
+
return Ge = e, Ct.settled && (Ct = new zr()), We({ status: "loading", loadingLocale: e }), (e === qr ? (
|
|
785
785
|
// We could switch to the source locale synchronously, but we prefer to
|
|
786
786
|
// queue it on a microtask so that switching locales is consistently
|
|
787
787
|
// asynchronous.
|
|
788
788
|
Promise.resolve({ templates: void 0 })
|
|
789
|
-
) :
|
|
790
|
-
|
|
789
|
+
) : oi(e)).then((r) => {
|
|
790
|
+
ye === t && (xe = e, Ge = void 0, Br = r.templates, We({ status: "ready", readyLocale: e }), Ct.resolve());
|
|
791
791
|
}, (r) => {
|
|
792
|
-
|
|
792
|
+
ye === t && (We({
|
|
793
793
|
status: "error",
|
|
794
794
|
errorLocale: e,
|
|
795
795
|
errorMessage: r.toString()
|
|
796
796
|
}), Ct.reject(r));
|
|
797
797
|
}), Ct.promise;
|
|
798
798
|
};
|
|
799
|
-
var
|
|
800
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
799
|
+
var no = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, Wr = (e, t, i, r) => {
|
|
800
|
+
for (var s = r > 1 ? void 0 : r ? lo(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
801
801
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
802
|
-
return r && s &&
|
|
802
|
+
return r && s && no(t, i, s), s;
|
|
803
803
|
};
|
|
804
|
-
let
|
|
804
|
+
let Ae = class extends A {
|
|
805
805
|
_getThumbnail() {
|
|
806
806
|
return "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='354' height='167' viewBox='0 0 354 167'%3E%3Crect width='354' height='167' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='14' fill='%23999'%3ENo Thumbnail%3C/text%3E%3C/svg%3E";
|
|
807
807
|
}
|
|
@@ -813,7 +813,7 @@ let Pe = class extends C {
|
|
|
813
813
|
}), this.object?.category && e.push({ label: this.object.category, type: "neutral" });
|
|
814
814
|
const t = (this.object?.previewLinks || "").split(" ");
|
|
815
815
|
return t.length > 0 && e.push({
|
|
816
|
-
label: l(
|
|
816
|
+
label: l(b`${t.length} previews`),
|
|
817
817
|
type: "information"
|
|
818
818
|
}), e;
|
|
819
819
|
}
|
|
@@ -867,22 +867,22 @@ let Pe = class extends C {
|
|
|
867
867
|
</article>`;
|
|
868
868
|
}
|
|
869
869
|
};
|
|
870
|
-
|
|
871
|
-
${
|
|
870
|
+
Ae.styles = C`
|
|
871
|
+
${M(Ws)};
|
|
872
872
|
`;
|
|
873
|
-
|
|
873
|
+
Wr([
|
|
874
874
|
y({ attribute: !1 })
|
|
875
|
-
],
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
],
|
|
879
|
-
const
|
|
880
|
-
var
|
|
875
|
+
], Ae.prototype, "object", 2);
|
|
876
|
+
Ae = Wr([
|
|
877
|
+
w("ds4go-card-dataspace-catalog")
|
|
878
|
+
], Ae);
|
|
879
|
+
const co = ":host{box-sizing:border-box;display:flex;height:fit-content;max-width:100%;width:100%}article{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg);cursor:pointer;display:flex;flex-direction:column;font-family:var(--font-family-body);min-width:295px;transition:box-shadow .2s ease-in-out;width:100%}article:hover{box-shadow:var(--shadow-md)}article header{background-position:50%;background-repeat:no-repeat;background-size:cover;border-bottom:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0;box-sizing:border-box;display:flex;height:167px;padding:var(--scale-400);width:100%}article main{display:flex;flex:1;flex-direction:column;gap:var(--scale-400);padding:var(--scale-600);padding-bottom:var(--scale-800)}article main .meta-info{color:var(--color-text-disabled-on);display:flex;flex-direction:column;font-size:var(--typography-size-body-sm);font-weight:var(--font-weight-regular);gap:var(--scale-200);justify-items:center;line-height:var(--line-height-body-sm)}article main .meta-info .author{color:var(--color-text-primary)}article main .meta-info .separator{color:var(--color-border-primary)}article main .meta-info .date{color:var(--color-text-disabled-on)}article main .content{display:flex;flex:1;flex-direction:column;gap:var(--scale-200)}article main .card-header tems-division{font-weight:var(--font-weight-semibold)}article main .card-content{max-height:180px;overflow:hidden;text-overflow:ellipsis;width:100%}article main .card-content tems-division{display:-webkit-box;-webkit-line-clamp:4;max-height:180px;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}article .tags{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--scale-200)}";
|
|
880
|
+
var po = Object.defineProperty, uo = (e, t, i, r) => {
|
|
881
881
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
882
882
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
883
|
-
return s &&
|
|
883
|
+
return s && po(t, i, s), s;
|
|
884
884
|
};
|
|
885
|
-
class
|
|
885
|
+
class ce extends A {
|
|
886
886
|
constructor() {
|
|
887
887
|
super(...arguments), this.objects = [], this.hasType = (t, i) => (i ?? this.objects ?? []).some((s) => {
|
|
888
888
|
const o = s["@type"];
|
|
@@ -890,15 +890,15 @@ class le extends C {
|
|
|
890
890
|
});
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
|
|
893
|
+
uo([
|
|
894
894
|
y({ attribute: !1 })
|
|
895
|
-
],
|
|
896
|
-
var
|
|
895
|
+
], ce.prototype, "objects");
|
|
896
|
+
var ho = Object.defineProperty, dt = (e, t, i, r) => {
|
|
897
897
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
898
898
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
899
|
-
return s &&
|
|
899
|
+
return s && ho(t, i, s), s;
|
|
900
900
|
};
|
|
901
|
-
class k extends
|
|
901
|
+
class k extends ce {
|
|
902
902
|
constructor({
|
|
903
903
|
defaultRoute: t = !1,
|
|
904
904
|
setupSubscriptions: i = !0,
|
|
@@ -916,7 +916,7 @@ class k extends le {
|
|
|
916
916
|
}
|
|
917
917
|
async _attach(t, i, r) {
|
|
918
918
|
if (!this.orbit && window.orbit) {
|
|
919
|
-
if (this.orbit = window.orbit, i && (
|
|
919
|
+
if (this.orbit = window.orbit, i && (fo({
|
|
920
920
|
component: this,
|
|
921
921
|
defaultRoute: t,
|
|
922
922
|
ignoreRouter: r
|
|
@@ -996,7 +996,7 @@ class k extends le {
|
|
|
996
996
|
try {
|
|
997
997
|
if (!t) return;
|
|
998
998
|
let s = t;
|
|
999
|
-
if (typeof t == "string" ? s = await window.sibStore.getData(t,
|
|
999
|
+
if (typeof t == "string" ? s = await window.sibStore.getData(t, sr) : t.isFullResource && !t.isFullResource?.() && (s = await window.sibStore.getData(t["@id"], sr)), !s) return { _originalResource: s };
|
|
1000
1000
|
if (typeof s != "object" || s === null) return;
|
|
1001
1001
|
if (s.isContainer?.() && s["ldp:contains"]) {
|
|
1002
1002
|
if (await this._hasCherryPickedProperties(s, r))
|
|
@@ -1043,7 +1043,7 @@ dt([
|
|
|
1043
1043
|
dt([
|
|
1044
1044
|
h()
|
|
1045
1045
|
], k.prototype, "currentRoute");
|
|
1046
|
-
const
|
|
1046
|
+
const je = (e, { keywords: t = [], attributes: i = ["dataSrc"] } = {}) => {
|
|
1047
1047
|
const r = () => {
|
|
1048
1048
|
if (!t.length || !i.length) return;
|
|
1049
1049
|
e.caching === void 0 && (e.caching = 0), e.hasCachedDatas === void 0 && (e.hasCachedDatas = !1);
|
|
@@ -1071,15 +1071,15 @@ const Te = (e, { keywords: t = [], attributes: i = ["dataSrc"] } = {}) => {
|
|
|
1071
1071
|
} else
|
|
1072
1072
|
r();
|
|
1073
1073
|
};
|
|
1074
|
-
function
|
|
1074
|
+
function mo() {
|
|
1075
1075
|
return `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
1076
1076
|
}
|
|
1077
|
-
const
|
|
1077
|
+
const fo = ({
|
|
1078
1078
|
component: e,
|
|
1079
1079
|
defaultRoute: t = !1,
|
|
1080
1080
|
ignoreRouter: i = !1
|
|
1081
1081
|
}) => {
|
|
1082
|
-
if (e.uniq || (e.uniq =
|
|
1082
|
+
if (e.uniq || (e.uniq = mo(), t && !e.route && !i && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !i) {
|
|
1083
1083
|
e.route || (e.route = e.uniq, window.orbit && (e.route = window.orbit.getRoute(e.uniq))), e.noRouter = !0;
|
|
1084
1084
|
let r = document.querySelector("solid-router");
|
|
1085
1085
|
const s = window.sibRouter.currentResource;
|
|
@@ -1108,10 +1108,10 @@ const uo = ({
|
|
|
1108
1108
|
document.removeEventListener(r[0], r[1]);
|
|
1109
1109
|
}, e._subscribe();
|
|
1110
1110
|
};
|
|
1111
|
-
function
|
|
1111
|
+
function ir(e) {
|
|
1112
1112
|
return !Number.isNaN(new Date(e).getTime());
|
|
1113
1113
|
}
|
|
1114
|
-
const
|
|
1114
|
+
const ai = (e, t, i) => {
|
|
1115
1115
|
if (e == null)
|
|
1116
1116
|
return !1;
|
|
1117
1117
|
const r = t.split(".");
|
|
@@ -1121,26 +1121,26 @@ const oi = (e, t, i) => {
|
|
|
1121
1121
|
s = s[o];
|
|
1122
1122
|
else
|
|
1123
1123
|
return !1;
|
|
1124
|
-
if (
|
|
1124
|
+
if (ir(s)) {
|
|
1125
1125
|
if (new Date(s) > i)
|
|
1126
1126
|
return !0;
|
|
1127
1127
|
} else
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
return Array.isArray(e) ? e.some(
|
|
1130
|
-
(o) =>
|
|
1131
|
-
) : typeof e == "object" ? Object.entries(e).some(([o, a]) => o === t &&
|
|
1132
|
-
},
|
|
1130
|
+
(o) => ai(o, t, i)
|
|
1131
|
+
) : typeof e == "object" ? Object.entries(e).some(([o, a]) => o === t && ir(a) ? !1 : ai(a, t, i)) : !1;
|
|
1132
|
+
}, de = (e, t, i) => {
|
|
1133
1133
|
if (!t || !i || typeof i != "string")
|
|
1134
1134
|
return e;
|
|
1135
1135
|
const r = new Date(i);
|
|
1136
1136
|
return Number.isNaN(r.getTime()) ? (console.warn(`Invalid threshold date provided: ${i}`), e) : e.filter(
|
|
1137
|
-
(s) =>
|
|
1137
|
+
(s) => ai(s, t, r)
|
|
1138
1138
|
);
|
|
1139
1139
|
};
|
|
1140
|
-
function
|
|
1140
|
+
function go(e) {
|
|
1141
1141
|
return typeof e != "string" && typeof e != "number" && !(e instanceof Date) ? !1 : !Number.isNaN(new Date(e).getTime());
|
|
1142
1142
|
}
|
|
1143
|
-
const
|
|
1143
|
+
const ni = (e, t, i, r) => {
|
|
1144
1144
|
if (e == null)
|
|
1145
1145
|
return !1;
|
|
1146
1146
|
const s = t.split(".");
|
|
@@ -1153,18 +1153,18 @@ const ai = (e, t, i, r) => {
|
|
|
1153
1153
|
if (typeof o == "number") {
|
|
1154
1154
|
if (typeof i == "number" && typeof r == "number" && i <= o && o <= r)
|
|
1155
1155
|
return !0;
|
|
1156
|
-
} else if (
|
|
1156
|
+
} else if (go(o)) {
|
|
1157
1157
|
const a = new Date(o);
|
|
1158
1158
|
if (i instanceof Date && r instanceof Date && i <= a && a <= r)
|
|
1159
1159
|
return !0;
|
|
1160
1160
|
} else
|
|
1161
1161
|
return !1;
|
|
1162
1162
|
return Array.isArray(e) ? e.some(
|
|
1163
|
-
(a) =>
|
|
1163
|
+
(a) => ni(a, t, i, r)
|
|
1164
1164
|
) : typeof e == "object" ? Object.entries(e).some(
|
|
1165
|
-
([a, n]) =>
|
|
1165
|
+
([a, n]) => ni(n, t, i, r)
|
|
1166
1166
|
) : !1;
|
|
1167
|
-
},
|
|
1167
|
+
}, pe = (e, t, i) => {
|
|
1168
1168
|
if (!t || !i)
|
|
1169
1169
|
return e;
|
|
1170
1170
|
const r = t.split(".");
|
|
@@ -1180,14 +1180,14 @@ const ai = (e, t, i, r) => {
|
|
|
1180
1180
|
(n) => typeof n == "object" && n !== null && "@id" in n && n["@id"] === i
|
|
1181
1181
|
) : !1 : !1;
|
|
1182
1182
|
});
|
|
1183
|
-
},
|
|
1183
|
+
}, ue = (e, t, i) => {
|
|
1184
1184
|
if (!t || !i || typeof i != "string")
|
|
1185
1185
|
return e;
|
|
1186
1186
|
const [r, s] = i.split("/").map(Number);
|
|
1187
1187
|
return Number.isNaN(r) || Number.isNaN(s) ? e : r > s ? (console.warn(`Start number is after end number in interval: ${i}`), e) : e.filter(
|
|
1188
|
-
(o) =>
|
|
1188
|
+
(o) => ni(o, t, r, s)
|
|
1189
1189
|
);
|
|
1190
|
-
},
|
|
1190
|
+
}, li = (e, t, i) => {
|
|
1191
1191
|
if (e == null)
|
|
1192
1192
|
return 0;
|
|
1193
1193
|
if (typeof e != "object") {
|
|
@@ -1203,7 +1203,7 @@ const ai = (e, t, i, r) => {
|
|
|
1203
1203
|
for (const o of e)
|
|
1204
1204
|
if (s = Math.max(
|
|
1205
1205
|
s,
|
|
1206
|
-
|
|
1206
|
+
li(
|
|
1207
1207
|
o,
|
|
1208
1208
|
t
|
|
1209
1209
|
)
|
|
@@ -1214,13 +1214,13 @@ const ai = (e, t, i, r) => {
|
|
|
1214
1214
|
for (const s of Object.values(e))
|
|
1215
1215
|
if (r = Math.max(
|
|
1216
1216
|
r,
|
|
1217
|
-
|
|
1217
|
+
li(
|
|
1218
1218
|
s,
|
|
1219
1219
|
t
|
|
1220
1220
|
)
|
|
1221
1221
|
), r === 2) break;
|
|
1222
1222
|
return r;
|
|
1223
|
-
},
|
|
1223
|
+
}, he = (e, t, i) => {
|
|
1224
1224
|
if (!t || !i || i.trim() === "")
|
|
1225
1225
|
return e;
|
|
1226
1226
|
const r = i.toLowerCase(), s = t.split(".");
|
|
@@ -1234,15 +1234,15 @@ const ai = (e, t, i, r) => {
|
|
|
1234
1234
|
break;
|
|
1235
1235
|
}
|
|
1236
1236
|
let n = 0;
|
|
1237
|
-
return a && (n =
|
|
1237
|
+
return a && (n = li(
|
|
1238
1238
|
a,
|
|
1239
1239
|
r
|
|
1240
1240
|
)), { obj: o, score: n };
|
|
1241
1241
|
}).filter((o) => o.score > 0).sort((o, a) => a.score - o.score).map((o) => o.obj);
|
|
1242
|
-
},
|
|
1242
|
+
}, me = (e, t) => t ? e.filter((i) => {
|
|
1243
1243
|
const r = i["@type"];
|
|
1244
1244
|
return r ? typeof r == "string" ? r === t : Array.isArray(r) ? r.some((s) => s === t) : !1 : !1;
|
|
1245
|
-
}) : e,
|
|
1245
|
+
}) : e, ci = (e, t, i) => {
|
|
1246
1246
|
if (e == null)
|
|
1247
1247
|
return 0;
|
|
1248
1248
|
if (typeof e != "object") {
|
|
@@ -1258,7 +1258,7 @@ const ai = (e, t, i, r) => {
|
|
|
1258
1258
|
for (const o of e)
|
|
1259
1259
|
if (s = Math.max(
|
|
1260
1260
|
s,
|
|
1261
|
-
|
|
1261
|
+
ci(o, t)
|
|
1262
1262
|
), s === 4) break;
|
|
1263
1263
|
return s;
|
|
1264
1264
|
}
|
|
@@ -1266,7 +1266,7 @@ const ai = (e, t, i, r) => {
|
|
|
1266
1266
|
for (const [s, o] of Object.entries(e))
|
|
1267
1267
|
if (r = Math.max(
|
|
1268
1268
|
r,
|
|
1269
|
-
|
|
1269
|
+
ci(o, t, s)
|
|
1270
1270
|
), r === 4) break;
|
|
1271
1271
|
return r;
|
|
1272
1272
|
}, Lt = (e, t) => {
|
|
@@ -1275,9 +1275,9 @@ const ai = (e, t, i, r) => {
|
|
|
1275
1275
|
const i = t.toLowerCase();
|
|
1276
1276
|
return e.map((r) => ({
|
|
1277
1277
|
obj: r,
|
|
1278
|
-
score:
|
|
1278
|
+
score: ci(r, i)
|
|
1279
1279
|
})).filter((r) => r.score > 0).sort((r, s) => s.score - r.score).map((r) => r.obj);
|
|
1280
|
-
},
|
|
1280
|
+
}, yo = {
|
|
1281
1281
|
id: "policy-open-access",
|
|
1282
1282
|
name: l("Open access"),
|
|
1283
1283
|
policy: {
|
|
@@ -1290,7 +1290,7 @@ const ai = (e, t, i, r) => {
|
|
|
1290
1290
|
prohibition: [],
|
|
1291
1291
|
obligation: []
|
|
1292
1292
|
}
|
|
1293
|
-
},
|
|
1293
|
+
}, vo = {
|
|
1294
1294
|
id: "policy-premium-tier",
|
|
1295
1295
|
name: l("Premium tier (40 calls/month)"),
|
|
1296
1296
|
policy: {
|
|
@@ -1337,7 +1337,7 @@ const ai = (e, t, i, r) => {
|
|
|
1337
1337
|
prohibition: [],
|
|
1338
1338
|
obligation: []
|
|
1339
1339
|
}
|
|
1340
|
-
},
|
|
1340
|
+
}, bo = {
|
|
1341
1341
|
id: "policy-no-redis-no-commercial",
|
|
1342
1342
|
name: l("No redistribution, no commercial use"),
|
|
1343
1343
|
policy: {
|
|
@@ -1404,7 +1404,7 @@ const ai = (e, t, i, r) => {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
]
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, $o = [yo, vo, bo], At = (e, t) => {
|
|
1408
1408
|
let i = e;
|
|
1409
1409
|
for (const r of t)
|
|
1410
1410
|
if (i && r in i)
|
|
@@ -1443,17 +1443,17 @@ const ai = (e, t, i, r) => {
|
|
|
1443
1443
|
o.replace(/[^a-zA-ZÀ-ÿ]/g, "").length === 1 ? s > 0 ? r[r.length - 1] += o : s < i.length - 1 ? (r.push(o + i[s + 1]), s++) : r.push(o) : r.push(o);
|
|
1444
1444
|
}
|
|
1445
1445
|
return r.join(" ");
|
|
1446
|
-
},
|
|
1446
|
+
}, rr = /* @__PURE__ */ new Map(), wo = (e) => {
|
|
1447
1447
|
const t = JSON.stringify(e);
|
|
1448
|
-
let i =
|
|
1449
|
-
return i || (i = new Intl.DateTimeFormat(void 0, e),
|
|
1450
|
-
},
|
|
1448
|
+
let i = rr.get(t);
|
|
1449
|
+
return i || (i = new Intl.DateTimeFormat(void 0, e), rr.set(t, i)), i;
|
|
1450
|
+
}, L = (e, t = {
|
|
1451
1451
|
day: "2-digit",
|
|
1452
1452
|
month: "2-digit",
|
|
1453
1453
|
year: "2-digit"
|
|
1454
1454
|
}) => {
|
|
1455
1455
|
if (!e) return "";
|
|
1456
|
-
const i = typeof e == "string" ? new Date(e) : e, s =
|
|
1456
|
+
const i = typeof e == "string" ? new Date(e) : e, s = wo(t).format(i);
|
|
1457
1457
|
return typeof e == "string" && s === "Invalid Date" ? e : s;
|
|
1458
1458
|
}, R = (e, t = !1) => {
|
|
1459
1459
|
window.dispatchEvent(
|
|
@@ -1464,16 +1464,16 @@ const ai = (e, t, i, r) => {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
})
|
|
1466
1466
|
);
|
|
1467
|
-
},
|
|
1468
|
-
ds4go:
|
|
1469
|
-
link:
|
|
1470
|
-
enclosure:
|
|
1471
|
-
url:
|
|
1467
|
+
}, _o = "https://cdn.startinblox.com/owl/ds4go.jsonld#", xo = { "@id": "ds4go:link", "@type": "@id" }, Po = { "@id": "ds4go:enclosure", "@type": "@id" }, Ao = { "@id": "ds4go:url", "@type": "@id" }, sr = {
|
|
1468
|
+
ds4go: _o,
|
|
1469
|
+
link: xo,
|
|
1470
|
+
enclosure: Po,
|
|
1471
|
+
url: Ao
|
|
1472
1472
|
};
|
|
1473
|
-
var
|
|
1474
|
-
function
|
|
1475
|
-
if (
|
|
1476
|
-
|
|
1473
|
+
var He = {}, it = {}, or;
|
|
1474
|
+
function Gr() {
|
|
1475
|
+
if (or) return it;
|
|
1476
|
+
or = 1, Object.defineProperty(it, "__esModule", {
|
|
1477
1477
|
value: !0
|
|
1478
1478
|
}), it.FORMAT_PLAIN = it.FORMAT_HTML = it.FORMATS = void 0;
|
|
1479
1479
|
var e = "html";
|
|
@@ -1483,10 +1483,10 @@ function Br() {
|
|
|
1483
1483
|
var i = [e, t];
|
|
1484
1484
|
return it.FORMATS = i, it;
|
|
1485
1485
|
}
|
|
1486
|
-
var j = {},
|
|
1487
|
-
function
|
|
1488
|
-
if (
|
|
1489
|
-
|
|
1486
|
+
var j = {}, ar;
|
|
1487
|
+
function Co() {
|
|
1488
|
+
if (ar) return j;
|
|
1489
|
+
ar = 1, Object.defineProperty(j, "__esModule", {
|
|
1490
1490
|
value: !0
|
|
1491
1491
|
}), j.UNIT_WORDS = j.UNIT_WORD = j.UNIT_SENTENCES = j.UNIT_SENTENCE = j.UNIT_PARAGRAPHS = j.UNIT_PARAGRAPH = j.UNITS = void 0;
|
|
1492
1492
|
var e = "words";
|
|
@@ -1504,19 +1504,19 @@ function xo() {
|
|
|
1504
1504
|
var a = [e, t, i, r, s, o];
|
|
1505
1505
|
return j.UNITS = a, j;
|
|
1506
1506
|
}
|
|
1507
|
-
var Gt = {},
|
|
1508
|
-
function
|
|
1509
|
-
if (
|
|
1510
|
-
|
|
1507
|
+
var Gt = {}, nr;
|
|
1508
|
+
function Hr() {
|
|
1509
|
+
if (nr) return Gt;
|
|
1510
|
+
nr = 1, Object.defineProperty(Gt, "__esModule", {
|
|
1511
1511
|
value: !0
|
|
1512
1512
|
}), Gt.WORDS = void 0;
|
|
1513
1513
|
var e = ["ad", "adipisicing", "aliqua", "aliquip", "amet", "anim", "aute", "cillum", "commodo", "consectetur", "consequat", "culpa", "cupidatat", "deserunt", "do", "dolor", "dolore", "duis", "ea", "eiusmod", "elit", "enim", "esse", "est", "et", "eu", "ex", "excepteur", "exercitation", "fugiat", "id", "in", "incididunt", "ipsum", "irure", "labore", "laboris", "laborum", "Lorem", "magna", "minim", "mollit", "nisi", "non", "nostrud", "nulla", "occaecat", "officia", "pariatur", "proident", "qui", "quis", "reprehenderit", "sint", "sit", "sunt", "tempor", "ullamco", "ut", "velit", "veniam", "voluptate"];
|
|
1514
1514
|
return Gt.WORDS = e, Gt;
|
|
1515
1515
|
}
|
|
1516
|
-
var
|
|
1517
|
-
function
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1516
|
+
var Ve = {}, Ht = {}, lr;
|
|
1517
|
+
function So() {
|
|
1518
|
+
if (lr) return Ht;
|
|
1519
|
+
lr = 1, Object.defineProperty(Ht, "__esModule", {
|
|
1520
1520
|
value: !0
|
|
1521
1521
|
}), Ht.LINE_ENDINGS = void 0;
|
|
1522
1522
|
var e = {
|
|
@@ -1527,9 +1527,9 @@ function Po() {
|
|
|
1527
1527
|
};
|
|
1528
1528
|
return Ht.LINE_ENDINGS = e, Ht;
|
|
1529
1529
|
}
|
|
1530
|
-
var
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1530
|
+
var Ke = {}, Ye = {}, Je = {}, cr;
|
|
1531
|
+
function Eo() {
|
|
1532
|
+
return cr || (cr = 1, (function(e) {
|
|
1533
1533
|
Object.defineProperty(e, "__esModule", {
|
|
1534
1534
|
value: !0
|
|
1535
1535
|
}), e.default = void 0;
|
|
@@ -1538,11 +1538,11 @@ function Ao() {
|
|
|
1538
1538
|
return o.charAt(0).toUpperCase() + o.slice(1);
|
|
1539
1539
|
}, i = t;
|
|
1540
1540
|
e.default = i;
|
|
1541
|
-
})(
|
|
1541
|
+
})(Je)), Je;
|
|
1542
1542
|
}
|
|
1543
|
-
var
|
|
1544
|
-
function
|
|
1545
|
-
return
|
|
1543
|
+
var ve = { exports: {} }, dr;
|
|
1544
|
+
function Oo() {
|
|
1545
|
+
return dr || (dr = 1, (function(e, t) {
|
|
1546
1546
|
Object.defineProperty(t, "__esModule", {
|
|
1547
1547
|
value: !0
|
|
1548
1548
|
}), t.default = void 0;
|
|
@@ -1550,11 +1550,11 @@ function Co() {
|
|
|
1550
1550
|
return !!e.exports;
|
|
1551
1551
|
}, r = i;
|
|
1552
1552
|
t.default = r;
|
|
1553
|
-
})(
|
|
1553
|
+
})(ve, ve.exports)), ve.exports;
|
|
1554
1554
|
}
|
|
1555
|
-
var
|
|
1556
|
-
function
|
|
1557
|
-
return
|
|
1555
|
+
var Ze = {}, pr;
|
|
1556
|
+
function Io() {
|
|
1557
|
+
return pr || (pr = 1, (function(e) {
|
|
1558
1558
|
Object.defineProperty(e, "__esModule", {
|
|
1559
1559
|
value: !0
|
|
1560
1560
|
}), e.default = void 0;
|
|
@@ -1568,12 +1568,12 @@ function So() {
|
|
|
1568
1568
|
return s;
|
|
1569
1569
|
}, i = t;
|
|
1570
1570
|
e.default = i;
|
|
1571
|
-
})(
|
|
1571
|
+
})(Ze)), Ze;
|
|
1572
1572
|
}
|
|
1573
|
-
var
|
|
1574
|
-
function
|
|
1575
|
-
if (
|
|
1576
|
-
|
|
1573
|
+
var Xe = {}, Vt = {}, ur;
|
|
1574
|
+
function Ro() {
|
|
1575
|
+
if (ur) return Vt;
|
|
1576
|
+
ur = 1, Object.defineProperty(Vt, "__esModule", {
|
|
1577
1577
|
value: !0
|
|
1578
1578
|
}), Vt.SUPPORTED_PLATFORMS = void 0;
|
|
1579
1579
|
var e = {
|
|
@@ -1583,13 +1583,13 @@ function Eo() {
|
|
|
1583
1583
|
};
|
|
1584
1584
|
return Vt.SUPPORTED_PLATFORMS = e, Vt;
|
|
1585
1585
|
}
|
|
1586
|
-
var
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1586
|
+
var hr;
|
|
1587
|
+
function Do() {
|
|
1588
|
+
return hr || (hr = 1, (function(e) {
|
|
1589
1589
|
Object.defineProperty(e, "__esModule", {
|
|
1590
1590
|
value: !0
|
|
1591
1591
|
}), e.default = void 0;
|
|
1592
|
-
var t =
|
|
1592
|
+
var t = Ro(), i = function() {
|
|
1593
1593
|
var o = !1;
|
|
1594
1594
|
try {
|
|
1595
1595
|
o = process.platform === t.SUPPORTED_PLATFORMS.WIN32;
|
|
@@ -1599,11 +1599,11 @@ function Oo() {
|
|
|
1599
1599
|
return o;
|
|
1600
1600
|
}, r = i;
|
|
1601
1601
|
e.default = r;
|
|
1602
|
-
})(
|
|
1602
|
+
})(Xe)), Xe;
|
|
1603
1603
|
}
|
|
1604
|
-
var
|
|
1605
|
-
function
|
|
1606
|
-
return
|
|
1604
|
+
var Qe = {}, mr;
|
|
1605
|
+
function Vr() {
|
|
1606
|
+
return mr || (mr = 1, (function(e) {
|
|
1607
1607
|
Object.defineProperty(e, "__esModule", {
|
|
1608
1608
|
value: !0
|
|
1609
1609
|
}), e.default = void 0;
|
|
@@ -1614,15 +1614,15 @@ function Gr() {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}, i = t;
|
|
1616
1616
|
e.default = i;
|
|
1617
|
-
})(
|
|
1617
|
+
})(Qe)), Qe;
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1620
|
-
function
|
|
1621
|
-
return
|
|
1619
|
+
var ti = {}, fr;
|
|
1620
|
+
function To() {
|
|
1621
|
+
return fr || (fr = 1, (function(e) {
|
|
1622
1622
|
Object.defineProperty(e, "__esModule", {
|
|
1623
1623
|
value: !0
|
|
1624
1624
|
}), e.default = void 0;
|
|
1625
|
-
var t = i(
|
|
1625
|
+
var t = i(Vr());
|
|
1626
1626
|
function i(o) {
|
|
1627
1627
|
return o && o.__esModule ? o : { default: o };
|
|
1628
1628
|
}
|
|
@@ -1633,11 +1633,11 @@ function Io() {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}, s = r;
|
|
1635
1635
|
e.default = s;
|
|
1636
|
-
})(
|
|
1636
|
+
})(ti)), ti;
|
|
1637
1637
|
}
|
|
1638
|
-
var
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1638
|
+
var gr;
|
|
1639
|
+
function Kr() {
|
|
1640
|
+
return gr || (gr = 1, (function(e) {
|
|
1641
1641
|
Object.defineProperty(e, "__esModule", {
|
|
1642
1642
|
value: !0
|
|
1643
1643
|
}), Object.defineProperty(e, "capitalize", {
|
|
@@ -1671,19 +1671,19 @@ function Hr() {
|
|
|
1671
1671
|
return a.default;
|
|
1672
1672
|
}
|
|
1673
1673
|
});
|
|
1674
|
-
var t = n(
|
|
1674
|
+
var t = n(Eo()), i = n(Oo()), r = n(Io()), s = n(Do()), o = n(Vr()), a = n(To());
|
|
1675
1675
|
function n(d) {
|
|
1676
1676
|
return d && d.__esModule ? d : { default: d };
|
|
1677
1677
|
}
|
|
1678
|
-
})(
|
|
1678
|
+
})(Ye)), Ye;
|
|
1679
1679
|
}
|
|
1680
|
-
var
|
|
1681
|
-
function
|
|
1682
|
-
return
|
|
1680
|
+
var yr;
|
|
1681
|
+
function jo() {
|
|
1682
|
+
return yr || (yr = 1, (function(e) {
|
|
1683
1683
|
Object.defineProperty(e, "__esModule", {
|
|
1684
1684
|
value: !0
|
|
1685
1685
|
}), e.default = void 0;
|
|
1686
|
-
var t =
|
|
1686
|
+
var t = Hr(), i = Kr();
|
|
1687
1687
|
function r(u, m) {
|
|
1688
1688
|
if (!(u instanceof m))
|
|
1689
1689
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -1705,7 +1705,7 @@ function Ro() {
|
|
|
1705
1705
|
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, f = m.sentencesPerParagraph, g = f === void 0 ? {
|
|
1706
1706
|
max: 7,
|
|
1707
1707
|
min: 3
|
|
1708
|
-
} : f, v = m.wordsPerSentence,
|
|
1708
|
+
} : f, v = m.wordsPerSentence, $ = v === void 0 ? {
|
|
1709
1709
|
max: 15,
|
|
1710
1710
|
min: 5
|
|
1711
1711
|
} : v, P = m.random;
|
|
@@ -1713,9 +1713,9 @@ function Ro() {
|
|
|
1713
1713
|
var Y = m.words, xt = Y === void 0 ? t.WORDS : Y;
|
|
1714
1714
|
if (r(this, u), a(this, "sentencesPerParagraph", void 0), a(this, "wordsPerSentence", void 0), a(this, "random", void 0), a(this, "words", void 0), g.min > g.max)
|
|
1715
1715
|
throw new Error("Minimum number of sentences per paragraph (".concat(g.min, ") cannot exceed maximum (").concat(g.max, ")."));
|
|
1716
|
-
if (
|
|
1717
|
-
throw new Error("Minimum number of words per sentence (".concat(
|
|
1718
|
-
this.sentencesPerParagraph = g, this.words = xt, this.wordsPerSentence =
|
|
1716
|
+
if ($.min > $.max)
|
|
1717
|
+
throw new Error("Minimum number of words per sentence (".concat($.min, ") cannot exceed maximum (").concat($.max, ")."));
|
|
1718
|
+
this.sentencesPerParagraph = g, this.words = xt, this.wordsPerSentence = $, this.random = P || Math.random;
|
|
1719
1719
|
}
|
|
1720
1720
|
return o(u, [{
|
|
1721
1721
|
key: "generateRandomInteger",
|
|
@@ -1725,8 +1725,8 @@ function Ro() {
|
|
|
1725
1725
|
}, {
|
|
1726
1726
|
key: "generateRandomWords",
|
|
1727
1727
|
value: function(f) {
|
|
1728
|
-
var g = this, v = this.wordsPerSentence,
|
|
1729
|
-
return (0, i.makeArrayOfLength)(Y).reduce(function(xt,
|
|
1728
|
+
var g = this, v = this.wordsPerSentence, $ = v.min, P = v.max, Y = f || this.generateRandomInteger($, P);
|
|
1729
|
+
return (0, i.makeArrayOfLength)(Y).reduce(function(xt, ge) {
|
|
1730
1730
|
return "".concat(g.pluckRandomWord(), " ").concat(xt);
|
|
1731
1731
|
}, "").trim();
|
|
1732
1732
|
}
|
|
@@ -1738,8 +1738,8 @@ function Ro() {
|
|
|
1738
1738
|
}, {
|
|
1739
1739
|
key: "generateRandomParagraph",
|
|
1740
1740
|
value: function(f) {
|
|
1741
|
-
var g = this, v = this.sentencesPerParagraph,
|
|
1742
|
-
return (0, i.makeArrayOfLength)(Y).reduce(function(xt,
|
|
1741
|
+
var g = this, v = this.sentencesPerParagraph, $ = v.min, P = v.max, Y = f || this.generateRandomInteger($, P);
|
|
1742
|
+
return (0, i.makeArrayOfLength)(Y).reduce(function(xt, ge) {
|
|
1743
1743
|
return "".concat(g.generateRandomSentence(), " ").concat(xt);
|
|
1744
1744
|
}, "").trim();
|
|
1745
1745
|
}
|
|
@@ -1752,15 +1752,15 @@ function Ro() {
|
|
|
1752
1752
|
}]), u;
|
|
1753
1753
|
})(), d = n;
|
|
1754
1754
|
e.default = d;
|
|
1755
|
-
})(
|
|
1755
|
+
})(Ke)), Ke;
|
|
1756
1756
|
}
|
|
1757
|
-
var
|
|
1758
|
-
function
|
|
1759
|
-
return
|
|
1757
|
+
var vr;
|
|
1758
|
+
function ko() {
|
|
1759
|
+
return vr || (vr = 1, (function(e) {
|
|
1760
1760
|
Object.defineProperty(e, "__esModule", {
|
|
1761
1761
|
value: !0
|
|
1762
1762
|
}), e.default = void 0;
|
|
1763
|
-
var t =
|
|
1763
|
+
var t = Gr(), i = So(), r = o(jo()), s = Kr();
|
|
1764
1764
|
function o(g) {
|
|
1765
1765
|
return g && g.__esModule ? g : { default: g };
|
|
1766
1766
|
}
|
|
@@ -1769,22 +1769,22 @@ function Do() {
|
|
|
1769
1769
|
throw new TypeError("Cannot call a class as a function");
|
|
1770
1770
|
}
|
|
1771
1771
|
function n(g, v) {
|
|
1772
|
-
for (var
|
|
1773
|
-
var P = v[
|
|
1772
|
+
for (var $ = 0; $ < v.length; $++) {
|
|
1773
|
+
var P = v[$];
|
|
1774
1774
|
P.enumerable = P.enumerable || !1, P.configurable = !0, "value" in P && (P.writable = !0), Object.defineProperty(g, P.key, P);
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
|
-
function d(g, v,
|
|
1777
|
+
function d(g, v, $) {
|
|
1778
1778
|
return v && n(g.prototype, v), Object.defineProperty(g, "prototype", { writable: !1 }), g;
|
|
1779
1779
|
}
|
|
1780
|
-
function u(g, v,
|
|
1781
|
-
return v in g ? Object.defineProperty(g, v, { value:
|
|
1780
|
+
function u(g, v, $) {
|
|
1781
|
+
return v in g ? Object.defineProperty(g, v, { value: $, enumerable: !0, configurable: !0, writable: !0 }) : g[v] = $, g;
|
|
1782
1782
|
}
|
|
1783
1783
|
var m = /* @__PURE__ */ (function() {
|
|
1784
1784
|
function g() {
|
|
1785
|
-
var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
1786
|
-
if (a(this, g), this.format =
|
|
1787
|
-
throw new Error("".concat(
|
|
1785
|
+
var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t.FORMAT_PLAIN, P = arguments.length > 2 ? arguments[2] : void 0;
|
|
1786
|
+
if (a(this, g), this.format = $, this.suffix = P, u(this, "generator", void 0), t.FORMATS.indexOf($.toLowerCase()) === -1)
|
|
1787
|
+
throw new Error("".concat($, " is an invalid format. Please use ").concat(t.FORMATS.join(" or "), "."));
|
|
1788
1788
|
this.generator = new r.default(v);
|
|
1789
1789
|
}
|
|
1790
1790
|
return d(g, [{
|
|
@@ -1794,41 +1794,41 @@ function Do() {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}, {
|
|
1796
1796
|
key: "formatString",
|
|
1797
|
-
value: function(
|
|
1798
|
-
return this.format === t.FORMAT_HTML ? "<p>".concat(
|
|
1797
|
+
value: function($) {
|
|
1798
|
+
return this.format === t.FORMAT_HTML ? "<p>".concat($, "</p>") : $;
|
|
1799
1799
|
}
|
|
1800
1800
|
}, {
|
|
1801
1801
|
key: "formatStrings",
|
|
1802
|
-
value: function(
|
|
1802
|
+
value: function($) {
|
|
1803
1803
|
var P = this;
|
|
1804
|
-
return
|
|
1804
|
+
return $.map(function(Y) {
|
|
1805
1805
|
return P.formatString(Y);
|
|
1806
1806
|
});
|
|
1807
1807
|
}
|
|
1808
1808
|
}, {
|
|
1809
1809
|
key: "generateWords",
|
|
1810
|
-
value: function(
|
|
1811
|
-
return this.formatString(this.generator.generateRandomWords(
|
|
1810
|
+
value: function($) {
|
|
1811
|
+
return this.formatString(this.generator.generateRandomWords($));
|
|
1812
1812
|
}
|
|
1813
1813
|
}, {
|
|
1814
1814
|
key: "generateSentences",
|
|
1815
|
-
value: function(
|
|
1816
|
-
return this.formatString(this.generator.generateRandomParagraph(
|
|
1815
|
+
value: function($) {
|
|
1816
|
+
return this.formatString(this.generator.generateRandomParagraph($));
|
|
1817
1817
|
}
|
|
1818
1818
|
}, {
|
|
1819
1819
|
key: "generateParagraphs",
|
|
1820
|
-
value: function(
|
|
1820
|
+
value: function($) {
|
|
1821
1821
|
var P = this.generator.generateRandomParagraph.bind(this.generator);
|
|
1822
|
-
return this.formatStrings((0, s.makeArrayOfStrings)(
|
|
1822
|
+
return this.formatStrings((0, s.makeArrayOfStrings)($, P)).join(this.getLineEnding());
|
|
1823
1823
|
}
|
|
1824
1824
|
}]), g;
|
|
1825
1825
|
})(), f = m;
|
|
1826
1826
|
e.default = f;
|
|
1827
|
-
})(
|
|
1827
|
+
})(Ve)), Ve;
|
|
1828
1828
|
}
|
|
1829
|
-
var
|
|
1830
|
-
function
|
|
1831
|
-
return
|
|
1829
|
+
var br;
|
|
1830
|
+
function Fo() {
|
|
1831
|
+
return br || (br = 1, (function(e) {
|
|
1832
1832
|
Object.defineProperty(e, "__esModule", {
|
|
1833
1833
|
value: !0
|
|
1834
1834
|
}), Object.defineProperty(e, "LoremIpsum", {
|
|
@@ -1837,42 +1837,42 @@ function To() {
|
|
|
1837
1837
|
return s.default;
|
|
1838
1838
|
}
|
|
1839
1839
|
}), e.loremIpsum = void 0;
|
|
1840
|
-
var t =
|
|
1840
|
+
var t = Gr(), i = Co(), r = Hr(), s = o(ko());
|
|
1841
1841
|
function o(n) {
|
|
1842
1842
|
return n && n.__esModule ? n : { default: n };
|
|
1843
1843
|
}
|
|
1844
1844
|
var a = function() {
|
|
1845
|
-
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = d.count, m = u === void 0 ? 1 : u, f = d.format, g = f === void 0 ? t.FORMAT_PLAIN : f, v = d.paragraphLowerBound,
|
|
1845
|
+
var d = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = d.count, m = u === void 0 ? 1 : u, f = d.format, g = f === void 0 ? t.FORMAT_PLAIN : f, v = d.paragraphLowerBound, $ = v === void 0 ? 3 : v, P = d.paragraphUpperBound, Y = P === void 0 ? 7 : P, xt = d.random, ge = d.sentenceLowerBound, us = ge === void 0 ? 5 : ge, Ni = d.sentenceUpperBound, hs = Ni === void 0 ? 15 : Ni, Mi = d.units, ms = Mi === void 0 ? i.UNIT_SENTENCES : Mi, Ui = d.words, fs = Ui === void 0 ? r.WORDS : Ui, Li = d.suffix, gs = Li === void 0 ? "" : Li, ys = {
|
|
1846
1846
|
random: xt,
|
|
1847
1847
|
sentencesPerParagraph: {
|
|
1848
1848
|
max: Y,
|
|
1849
|
-
min:
|
|
1849
|
+
min: $
|
|
1850
1850
|
},
|
|
1851
|
-
words:
|
|
1851
|
+
words: fs,
|
|
1852
1852
|
wordsPerSentence: {
|
|
1853
|
-
max:
|
|
1854
|
-
min:
|
|
1853
|
+
max: hs,
|
|
1854
|
+
min: us
|
|
1855
1855
|
}
|
|
1856
|
-
},
|
|
1857
|
-
switch (
|
|
1856
|
+
}, ze = new s.default(ys, g, gs);
|
|
1857
|
+
switch (ms) {
|
|
1858
1858
|
case i.UNIT_PARAGRAPHS:
|
|
1859
1859
|
case i.UNIT_PARAGRAPH:
|
|
1860
|
-
return
|
|
1860
|
+
return ze.generateParagraphs(m);
|
|
1861
1861
|
case i.UNIT_SENTENCES:
|
|
1862
1862
|
case i.UNIT_SENTENCE:
|
|
1863
|
-
return
|
|
1863
|
+
return ze.generateSentences(m);
|
|
1864
1864
|
case i.UNIT_WORDS:
|
|
1865
1865
|
case i.UNIT_WORD:
|
|
1866
|
-
return
|
|
1866
|
+
return ze.generateWords(m);
|
|
1867
1867
|
default:
|
|
1868
1868
|
return "";
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
1871
|
e.loremIpsum = a;
|
|
1872
|
-
})(
|
|
1872
|
+
})(He)), He;
|
|
1873
1873
|
}
|
|
1874
|
-
var
|
|
1875
|
-
class
|
|
1874
|
+
var No = Fo();
|
|
1875
|
+
class Mo extends A {
|
|
1876
1876
|
constructor() {
|
|
1877
1877
|
super(...arguments), this.object = {
|
|
1878
1878
|
"@id": ""
|
|
@@ -1882,18 +1882,18 @@ class ko extends C {
|
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
|
-
const
|
|
1886
|
-
let
|
|
1885
|
+
const $e = globalThis, bi = $e.ShadowRoot && ($e.ShadyCSS === void 0 || $e.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Yr = /* @__PURE__ */ Symbol(), $r = /* @__PURE__ */ new WeakMap();
|
|
1886
|
+
let Uo = class {
|
|
1887
1887
|
constructor(e, t, i) {
|
|
1888
|
-
if (this._$cssResult$ = !0, i !==
|
|
1888
|
+
if (this._$cssResult$ = !0, i !== Yr) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1889
1889
|
this.cssText = e, this.t = t;
|
|
1890
1890
|
}
|
|
1891
1891
|
get styleSheet() {
|
|
1892
1892
|
let e = this.o;
|
|
1893
1893
|
const t = this.t;
|
|
1894
|
-
if (
|
|
1894
|
+
if (bi && e === void 0) {
|
|
1895
1895
|
const i = t !== void 0 && t.length === 1;
|
|
1896
|
-
i && (e =
|
|
1896
|
+
i && (e = $r.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && $r.set(t, e));
|
|
1897
1897
|
}
|
|
1898
1898
|
return e;
|
|
1899
1899
|
}
|
|
@@ -1901,20 +1901,20 @@ let Fo = class {
|
|
|
1901
1901
|
return this.cssText;
|
|
1902
1902
|
}
|
|
1903
1903
|
};
|
|
1904
|
-
const
|
|
1905
|
-
if (
|
|
1904
|
+
const Lo = (e) => new Uo(typeof e == "string" ? e : e + "", void 0, Yr), zo = (e, t) => {
|
|
1905
|
+
if (bi) e.adoptedStyleSheets = t.map((i) => i instanceof CSSStyleSheet ? i : i.styleSheet);
|
|
1906
1906
|
else for (const i of t) {
|
|
1907
|
-
const r = document.createElement("style"), s =
|
|
1907
|
+
const r = document.createElement("style"), s = $e.litNonce;
|
|
1908
1908
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = i.cssText, e.appendChild(r);
|
|
1909
1909
|
}
|
|
1910
|
-
},
|
|
1910
|
+
}, wr = bi ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
|
1911
1911
|
let i = "";
|
|
1912
1912
|
for (const r of t.cssRules) i += r.cssText;
|
|
1913
|
-
return
|
|
1914
|
-
})(e) : e, { is:
|
|
1913
|
+
return Lo(i);
|
|
1914
|
+
})(e) : e, { is: qo, defineProperty: Bo, getOwnPropertyDescriptor: Wo, getOwnPropertyNames: Go, getOwnPropertySymbols: Ho, getPrototypeOf: Vo } = Object, ke = globalThis, _r = ke.trustedTypes, Ko = _r ? _r.emptyScript : "", Yo = ke.reactiveElementPolyfillSupport, Jt = (e, t) => e, Ce = { toAttribute(e, t) {
|
|
1915
1915
|
switch (t) {
|
|
1916
1916
|
case Boolean:
|
|
1917
|
-
e = e ?
|
|
1917
|
+
e = e ? Ko : null;
|
|
1918
1918
|
break;
|
|
1919
1919
|
case Object:
|
|
1920
1920
|
case Array:
|
|
@@ -1939,8 +1939,8 @@ const No = (e) => new Fo(typeof e == "string" ? e : e + "", void 0, Vr), Mo = (e
|
|
|
1939
1939
|
}
|
|
1940
1940
|
}
|
|
1941
1941
|
return i;
|
|
1942
|
-
} },
|
|
1943
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
1942
|
+
} }, $i = (e, t) => !qo(e, t), xr = { attribute: !0, type: String, converter: Ce, reflect: !1, useDefault: !1, hasChanged: $i };
|
|
1943
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), ke.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
1944
1944
|
class Kt extends HTMLElement {
|
|
1945
1945
|
static addInitializer(t) {
|
|
1946
1946
|
this._$Ei(), (this.l ??= []).push(t);
|
|
@@ -1948,14 +1948,14 @@ class Kt extends HTMLElement {
|
|
|
1948
1948
|
static get observedAttributes() {
|
|
1949
1949
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1950
1950
|
}
|
|
1951
|
-
static createProperty(t, i =
|
|
1951
|
+
static createProperty(t, i = xr) {
|
|
1952
1952
|
if (i.state && (i.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((i = Object.create(i)).wrapped = !0), this.elementProperties.set(t, i), !i.noAccessor) {
|
|
1953
1953
|
const r = /* @__PURE__ */ Symbol(), s = this.getPropertyDescriptor(t, r, i);
|
|
1954
|
-
s !== void 0 &&
|
|
1954
|
+
s !== void 0 && Bo(this.prototype, t, s);
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
1957
|
static getPropertyDescriptor(t, i, r) {
|
|
1958
|
-
const { get: s, set: o } =
|
|
1958
|
+
const { get: s, set: o } = Wo(this.prototype, t) ?? { get() {
|
|
1959
1959
|
return this[i];
|
|
1960
1960
|
}, set(a) {
|
|
1961
1961
|
this[i] = a;
|
|
@@ -1966,17 +1966,17 @@ class Kt extends HTMLElement {
|
|
|
1966
1966
|
}, configurable: !0, enumerable: !0 };
|
|
1967
1967
|
}
|
|
1968
1968
|
static getPropertyOptions(t) {
|
|
1969
|
-
return this.elementProperties.get(t) ??
|
|
1969
|
+
return this.elementProperties.get(t) ?? xr;
|
|
1970
1970
|
}
|
|
1971
1971
|
static _$Ei() {
|
|
1972
1972
|
if (this.hasOwnProperty(Jt("elementProperties"))) return;
|
|
1973
|
-
const t =
|
|
1973
|
+
const t = Vo(this);
|
|
1974
1974
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
1975
1975
|
}
|
|
1976
1976
|
static finalize() {
|
|
1977
1977
|
if (this.hasOwnProperty(Jt("finalized"))) return;
|
|
1978
1978
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Jt("properties"))) {
|
|
1979
|
-
const i = this.properties, r = [...
|
|
1979
|
+
const i = this.properties, r = [...Go(i), ...Ho(i)];
|
|
1980
1980
|
for (const s of r) this.createProperty(s, i[s]);
|
|
1981
1981
|
}
|
|
1982
1982
|
const t = this[Symbol.metadata];
|
|
@@ -1995,8 +1995,8 @@ class Kt extends HTMLElement {
|
|
|
1995
1995
|
const i = [];
|
|
1996
1996
|
if (Array.isArray(t)) {
|
|
1997
1997
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
1998
|
-
for (const s of r) i.unshift(
|
|
1999
|
-
} else t !== void 0 && i.push(
|
|
1998
|
+
for (const s of r) i.unshift(wr(s));
|
|
1999
|
+
} else t !== void 0 && i.push(wr(t));
|
|
2000
2000
|
return i;
|
|
2001
2001
|
}
|
|
2002
2002
|
static _$Eu(t, i) {
|
|
@@ -2022,7 +2022,7 @@ class Kt extends HTMLElement {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
createRenderRoot() {
|
|
2024
2024
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
2025
|
-
return
|
|
2025
|
+
return zo(t, this.constructor.elementStyles), t;
|
|
2026
2026
|
}
|
|
2027
2027
|
connectedCallback() {
|
|
2028
2028
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
@@ -2038,14 +2038,14 @@ class Kt extends HTMLElement {
|
|
|
2038
2038
|
_$ET(t, i) {
|
|
2039
2039
|
const r = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, r);
|
|
2040
2040
|
if (s !== void 0 && r.reflect === !0) {
|
|
2041
|
-
const o = (r.converter?.toAttribute !== void 0 ? r.converter :
|
|
2041
|
+
const o = (r.converter?.toAttribute !== void 0 ? r.converter : Ce).toAttribute(i, r.type);
|
|
2042
2042
|
this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
2045
|
_$AK(t, i) {
|
|
2046
2046
|
const r = this.constructor, s = r._$Eh.get(t);
|
|
2047
2047
|
if (s !== void 0 && this._$Em !== s) {
|
|
2048
|
-
const o = r.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter :
|
|
2048
|
+
const o = r.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : Ce;
|
|
2049
2049
|
this._$Em = s;
|
|
2050
2050
|
const n = a.fromAttribute(i, o.type);
|
|
2051
2051
|
this[s] = n ?? this._$Ej?.get(s) ?? n, this._$Em = null;
|
|
@@ -2054,7 +2054,7 @@ class Kt extends HTMLElement {
|
|
|
2054
2054
|
requestUpdate(t, i, r, s = !1, o) {
|
|
2055
2055
|
if (t !== void 0) {
|
|
2056
2056
|
const a = this.constructor;
|
|
2057
|
-
if (s === !1 && (o = this[t]), r ??= a.getPropertyOptions(t), !((r.hasChanged ??
|
|
2057
|
+
if (s === !1 && (o = this[t]), r ??= a.getPropertyOptions(t), !((r.hasChanged ?? $i)(o, i) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(a._$Eu(t, r)))) return;
|
|
2058
2058
|
this.C(t, i, r);
|
|
2059
2059
|
}
|
|
2060
2060
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -2122,8 +2122,8 @@ class Kt extends HTMLElement {
|
|
|
2122
2122
|
firstUpdated(t) {
|
|
2123
2123
|
}
|
|
2124
2124
|
}
|
|
2125
|
-
Kt.elementStyles = [], Kt.shadowRootOptions = { mode: "open" }, Kt[Jt("elementProperties")] = /* @__PURE__ */ new Map(), Kt[Jt("finalized")] = /* @__PURE__ */ new Map(),
|
|
2126
|
-
const
|
|
2125
|
+
Kt.elementStyles = [], Kt.shadowRootOptions = { mode: "open" }, Kt[Jt("elementProperties")] = /* @__PURE__ */ new Map(), Kt[Jt("finalized")] = /* @__PURE__ */ new Map(), Yo?.({ ReactiveElement: Kt }), (ke.reactiveElementVersions ??= []).push("2.1.2");
|
|
2126
|
+
const Jo = { attribute: !0, type: String, converter: Ce, reflect: !1, hasChanged: $i }, Zo = (e = Jo, t, i) => {
|
|
2127
2127
|
const { kind: r, metadata: s } = i;
|
|
2128
2128
|
let o = globalThis.litPropertyMetadata.get(s);
|
|
2129
2129
|
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), r === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(i.name, e), r === "accessor") {
|
|
@@ -2145,7 +2145,7 @@ const Vo = { attribute: !0, type: String, converter: Ae, reflect: !1, hasChanged
|
|
|
2145
2145
|
throw Error("Unsupported decorator location: " + r);
|
|
2146
2146
|
};
|
|
2147
2147
|
function _(e) {
|
|
2148
|
-
return (t, i) => typeof i == "object" ?
|
|
2148
|
+
return (t, i) => typeof i == "object" ? Zo(e, t, i) : ((r, s, o) => {
|
|
2149
2149
|
const a = s.hasOwnProperty(o);
|
|
2150
2150
|
return s.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
|
2151
2151
|
})(e, t, i);
|
|
@@ -2153,12 +2153,12 @@ function _(e) {
|
|
|
2153
2153
|
function B(e) {
|
|
2154
2154
|
return _({ ...e, state: !0, attribute: !1 });
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2156
|
+
var Xo = Object.defineProperty, Qo = (e, t, i, r) => {
|
|
2157
2157
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
2158
2158
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
2159
|
-
return s &&
|
|
2159
|
+
return s && Xo(t, i, s), s;
|
|
2160
2160
|
};
|
|
2161
|
-
class wi extends
|
|
2161
|
+
class wi extends A {
|
|
2162
2162
|
constructor() {
|
|
2163
2163
|
super(...arguments), this.objects = [], this.hasType = (t, i) => (i ?? this.objects ?? []).some((r) => {
|
|
2164
2164
|
const s = r["@type"];
|
|
@@ -2166,13 +2166,13 @@ class wi extends C {
|
|
|
2166
2166
|
});
|
|
2167
2167
|
}
|
|
2168
2168
|
}
|
|
2169
|
-
|
|
2169
|
+
Qo([
|
|
2170
2170
|
_({ attribute: !1 })
|
|
2171
2171
|
], wi.prototype, "objects");
|
|
2172
|
-
var
|
|
2172
|
+
var ta = Object.defineProperty, pt = (e, t, i, r) => {
|
|
2173
2173
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
2174
2174
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
2175
|
-
return s &&
|
|
2175
|
+
return s && ta(t, i, s), s;
|
|
2176
2176
|
};
|
|
2177
2177
|
class X extends wi {
|
|
2178
2178
|
constructor({
|
|
@@ -2192,7 +2192,7 @@ class X extends wi {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
async _attach(t, i, r) {
|
|
2194
2194
|
if (!this.orbit && window.orbit && (this.orbit = window.orbit, i)) {
|
|
2195
|
-
if (
|
|
2195
|
+
if (Ai({
|
|
2196
2196
|
component: this,
|
|
2197
2197
|
defaultRoute: t,
|
|
2198
2198
|
ignoreRouter: r
|
|
@@ -2223,7 +2223,7 @@ class X extends wi {
|
|
|
2223
2223
|
);
|
|
2224
2224
|
n && (r = n[0]?.uniq);
|
|
2225
2225
|
}
|
|
2226
|
-
r &&
|
|
2226
|
+
r && di(
|
|
2227
2227
|
(window.orbit ? window.orbit.getRoute(r, !0) : r) + (s ? `-${s}` : ""),
|
|
2228
2228
|
o
|
|
2229
2229
|
), t.preventDefault();
|
|
@@ -2272,7 +2272,7 @@ class X extends wi {
|
|
|
2272
2272
|
try {
|
|
2273
2273
|
if (!t) return;
|
|
2274
2274
|
let s = t;
|
|
2275
|
-
if (typeof t == "string" ? s = await window.sibStore.getData(t,
|
|
2275
|
+
if (typeof t == "string" ? s = await window.sibStore.getData(t, Ar) : t.isFullResource && !t.isFullResource?.() && (s = await window.sibStore.getData(t["@id"], Ar)), !s) return { _originalResource: s };
|
|
2276
2276
|
if (typeof s != "object" || s === null) return;
|
|
2277
2277
|
if (s.isContainer?.() && s["ldp:contains"]) {
|
|
2278
2278
|
if (await this._hasCherryPickedProperties(s))
|
|
@@ -2319,10 +2319,10 @@ pt([
|
|
|
2319
2319
|
pt([
|
|
2320
2320
|
B()
|
|
2321
2321
|
], X.prototype, "currentRoute");
|
|
2322
|
-
var
|
|
2322
|
+
var ea = Object.defineProperty, vt = (e, t, i, r) => {
|
|
2323
2323
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
2324
2324
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
2325
|
-
return s &&
|
|
2325
|
+
return s && ea(t, i, s), s;
|
|
2326
2326
|
};
|
|
2327
2327
|
class Q extends X {
|
|
2328
2328
|
constructor() {
|
|
@@ -2333,7 +2333,7 @@ class Q extends X {
|
|
|
2333
2333
|
}
|
|
2334
2334
|
async _attach(t, i, r) {
|
|
2335
2335
|
if (!this.orbit && window.orbit && (this.orbit = window.orbit, i)) {
|
|
2336
|
-
if (
|
|
2336
|
+
if (Ai({
|
|
2337
2337
|
component: this,
|
|
2338
2338
|
defaultRoute: t,
|
|
2339
2339
|
ignoreRouter: r
|
|
@@ -2451,51 +2451,51 @@ vt([
|
|
|
2451
2451
|
vt([
|
|
2452
2452
|
_({ type: Array })
|
|
2453
2453
|
], Q.prototype, "providers");
|
|
2454
|
-
const F = window.orbit?.client.rdf_tems_scope || "https://tems-dataspace.eu/owl#",
|
|
2455
|
-
Rt[
|
|
2456
|
-
Rt[
|
|
2457
|
-
Rt[
|
|
2458
|
-
Rt[
|
|
2459
|
-
Rt[
|
|
2460
|
-
Rt[
|
|
2461
|
-
const
|
|
2454
|
+
const F = window.orbit?.client.rdf_tems_scope || "https://tems-dataspace.eu/owl#", Jr = `${F}Image`, Zr = `${F}Licence`, Xr = `${F}Asset`, Qr = `${F}Location`, ia = `${F}Service`, ra = `${F}Offer`, sa = `${F}DataOffer`, oa = `${F}Provider`, _i = `${F}Object`, ts = `${F}MediaObject`, es = `${F}FactChecking`, is = `${F}CivilSociety`, rs = `${F}Story`, ss = `${F}InteractiveInfographic`, xi = `${F}3DObject`, aa = `${F}Sentiment`, Rt = {};
|
|
2455
|
+
Rt[xi] = "3D Object";
|
|
2456
|
+
Rt[es] = "Fact Checking";
|
|
2457
|
+
Rt[is] = "Civil Society";
|
|
2458
|
+
Rt[rs] = "Story";
|
|
2459
|
+
Rt[ss] = "Interactive Infographic";
|
|
2460
|
+
Rt[xi] = "3D Object";
|
|
2461
|
+
const os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2462
2462
|
__proto__: null,
|
|
2463
|
-
RDFTYPE_3D_OBJECT:
|
|
2464
|
-
RDFTYPE_ASSET:
|
|
2465
|
-
RDFTYPE_DATAOFFER:
|
|
2466
|
-
RDFTYPE_FACT_CHECKING_OBJECT:
|
|
2467
|
-
RDFTYPE_IMAGE:
|
|
2468
|
-
RDFTYPE_INTERACTIVE_INFOGRAPHICS_OBJECT:
|
|
2469
|
-
RDFTYPE_LICENCE:
|
|
2470
|
-
RDFTYPE_LOCATION:
|
|
2471
|
-
RDFTYPE_MEDIA_OBJECT:
|
|
2472
|
-
RDFTYPE_OBJECT:
|
|
2473
|
-
RDFTYPE_OFFER:
|
|
2474
|
-
RDFTYPE_PROVIDER:
|
|
2475
|
-
RDFTYPE_SENTIMENT:
|
|
2476
|
-
RDFTYPE_SERVICE:
|
|
2477
|
-
RDFTYPE_SOCIETY_OBJECT:
|
|
2478
|
-
RDFTYPE_STORIES_OBJECT:
|
|
2463
|
+
RDFTYPE_3D_OBJECT: xi,
|
|
2464
|
+
RDFTYPE_ASSET: Xr,
|
|
2465
|
+
RDFTYPE_DATAOFFER: sa,
|
|
2466
|
+
RDFTYPE_FACT_CHECKING_OBJECT: es,
|
|
2467
|
+
RDFTYPE_IMAGE: Jr,
|
|
2468
|
+
RDFTYPE_INTERACTIVE_INFOGRAPHICS_OBJECT: ss,
|
|
2469
|
+
RDFTYPE_LICENCE: Zr,
|
|
2470
|
+
RDFTYPE_LOCATION: Qr,
|
|
2471
|
+
RDFTYPE_MEDIA_OBJECT: ts,
|
|
2472
|
+
RDFTYPE_OBJECT: _i,
|
|
2473
|
+
RDFTYPE_OFFER: ra,
|
|
2474
|
+
RDFTYPE_PROVIDER: oa,
|
|
2475
|
+
RDFTYPE_SENTIMENT: aa,
|
|
2476
|
+
RDFTYPE_SERVICE: ia,
|
|
2477
|
+
RDFTYPE_SOCIETY_OBJECT: is,
|
|
2478
|
+
RDFTYPE_STORIES_OBJECT: rs,
|
|
2479
2479
|
RDFTYPE_TEMS: F,
|
|
2480
2480
|
typeMap: Rt
|
|
2481
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2482
|
-
class
|
|
2481
|
+
}, Symbol.toStringTag, { value: "Module" })), na = Object.values(os);
|
|
2482
|
+
class Pi extends wi {
|
|
2483
2483
|
renderTemplateWhenWith(t, i, r = this.objects) {
|
|
2484
2484
|
const s = (o, a) => Array.isArray(o) ? o.some((n) => a(n)) : a(o);
|
|
2485
2485
|
return t.filter(
|
|
2486
|
-
(o) => s(o, (a) =>
|
|
2486
|
+
(o) => s(o, (a) => na.includes(a))
|
|
2487
2487
|
).every(
|
|
2488
2488
|
(o) => s(o, (a) => this.hasType(a, r))
|
|
2489
2489
|
) ? i.call(this) : p;
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
var
|
|
2492
|
+
var la = Object.defineProperty, E = (e, t, i, r) => {
|
|
2493
2493
|
for (var s = void 0, o = e.length - 1, a; o >= 0; o--)
|
|
2494
2494
|
(a = e[o]) && (s = a(t, i, s) || s);
|
|
2495
|
-
return s &&
|
|
2495
|
+
return s && la(t, i, s), s;
|
|
2496
2496
|
};
|
|
2497
|
-
const
|
|
2498
|
-
class O extends
|
|
2497
|
+
const ca = { type: window.sib?.store?.type?.FederatedCatalogue };
|
|
2498
|
+
class O extends Pi {
|
|
2499
2499
|
constructor({
|
|
2500
2500
|
defaultRoute: t = !1,
|
|
2501
2501
|
setupSubscriptions: i = !0,
|
|
@@ -2512,7 +2512,7 @@ class O extends xi {
|
|
|
2512
2512
|
document.readyState !== "complete" ? document.addEventListener("DOMContentLoaded", s) : s();
|
|
2513
2513
|
}
|
|
2514
2514
|
async _attach(t, i, r) {
|
|
2515
|
-
return !this.orbit && window.orbit && (this.orbit = window.orbit, i) ? (
|
|
2515
|
+
return !this.orbit && window.orbit && (this.orbit = window.orbit, i) ? (Ai({
|
|
2516
2516
|
component: this,
|
|
2517
2517
|
defaultRoute: t,
|
|
2518
2518
|
ignoreRouter: r
|
|
@@ -2529,7 +2529,7 @@ class O extends xi {
|
|
|
2529
2529
|
);
|
|
2530
2530
|
n && (r = n[0]?.uniq);
|
|
2531
2531
|
}
|
|
2532
|
-
r &&
|
|
2532
|
+
r && di(
|
|
2533
2533
|
(window.orbit ? window.orbit.getRoute(r, !0) : r) + (s ? `-${s}` : ""),
|
|
2534
2534
|
o
|
|
2535
2535
|
), t.preventDefault();
|
|
@@ -2546,7 +2546,7 @@ class O extends xi {
|
|
|
2546
2546
|
}, this.enableLocalStorage = this.component.parameters["enable-local-storage"], !this.storeService)
|
|
2547
2547
|
try {
|
|
2548
2548
|
const t = {
|
|
2549
|
-
...
|
|
2549
|
+
...ca,
|
|
2550
2550
|
...this.services,
|
|
2551
2551
|
login: this.login,
|
|
2552
2552
|
endpoint: this.dataSrc || this.defaultDataSrc,
|
|
@@ -2661,7 +2661,7 @@ class O extends xi {
|
|
|
2661
2661
|
if (!this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))
|
|
2662
2662
|
return p;
|
|
2663
2663
|
if (!this.dataSrc)
|
|
2664
|
-
return this.defaultDataSrc && this.route && (
|
|
2664
|
+
return this.defaultDataSrc && this.route && (di(this.route, this.defaultDataSrc), this.dataSrc = this.defaultDataSrc), p;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
E([
|
|
@@ -2727,15 +2727,15 @@ E([
|
|
|
2727
2727
|
E([
|
|
2728
2728
|
B()
|
|
2729
2729
|
], O.prototype, "_apiGatewayConfigParsed");
|
|
2730
|
-
function
|
|
2730
|
+
function U() {
|
|
2731
2731
|
return `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
2732
2732
|
}
|
|
2733
|
-
const
|
|
2733
|
+
const Ai = ({
|
|
2734
2734
|
component: e,
|
|
2735
2735
|
defaultRoute: t = !1,
|
|
2736
2736
|
ignoreRouter: i = !1
|
|
2737
2737
|
}) => {
|
|
2738
|
-
if (e.uniq || (e.uniq =
|
|
2738
|
+
if (e.uniq || (e.uniq = U(), t && !e.route && !i && (e.route = t)), e._subscriptions = /* @__PURE__ */ new Set(), !i) {
|
|
2739
2739
|
e.route || (e.route = e.uniq, window.orbit && (e.route = window.orbit.getRoute(e.uniq))), e.noRouter = !0;
|
|
2740
2740
|
let r = document.querySelector("solid-router");
|
|
2741
2741
|
const s = window.sibRouter.currentResource;
|
|
@@ -2763,8 +2763,8 @@ const Pi = ({
|
|
|
2763
2763
|
for (const r of e._subscriptions)
|
|
2764
2764
|
document.removeEventListener(r[0], r[1]);
|
|
2765
2765
|
}, e._subscribe();
|
|
2766
|
-
},
|
|
2767
|
-
class
|
|
2766
|
+
}, Pr = Object.values(os);
|
|
2767
|
+
class da extends Mo {
|
|
2768
2768
|
getNestedProperty(t, i = this.object) {
|
|
2769
2769
|
return t.split(".").reduce((r, s) => {
|
|
2770
2770
|
if (r === void 0)
|
|
@@ -2784,10 +2784,10 @@ class na extends ko {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
renderTemplateWhenWith(t, i, r = this.object) {
|
|
2786
2786
|
const s = (a, n) => Array.isArray(a) ? a.some((d) => n(d)) : n(a), o = t.filter(
|
|
2787
|
-
(a) => s(a, (n) =>
|
|
2787
|
+
(a) => s(a, (n) => Pr.includes(n))
|
|
2788
2788
|
);
|
|
2789
2789
|
return t.filter(
|
|
2790
|
-
(a) => s(a, (n) => !
|
|
2790
|
+
(a) => s(a, (n) => !Pr.includes(n))
|
|
2791
2791
|
).every(
|
|
2792
2792
|
(a) => s(a, (n) => this.getNestedProperty(n, r))
|
|
2793
2793
|
) && o.every(
|
|
@@ -2795,7 +2795,7 @@ class na extends ko {
|
|
|
2795
2795
|
) ? i.call(this) : p;
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
|
-
const
|
|
2798
|
+
const di = (e, t = !1) => {
|
|
2799
2799
|
window.dispatchEvent(
|
|
2800
2800
|
new CustomEvent("requestNavigation", {
|
|
2801
2801
|
detail: {
|
|
@@ -2804,17 +2804,17 @@ const ci = (e, t = !1) => {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
})
|
|
2806
2806
|
);
|
|
2807
|
-
},
|
|
2807
|
+
}, Ar = {}, ei = "dsp_contracts", ii = "1.0";
|
|
2808
2808
|
let ot = class x {
|
|
2809
2809
|
/**
|
|
2810
2810
|
* Get all contracts
|
|
2811
2811
|
*/
|
|
2812
2812
|
static getAll() {
|
|
2813
2813
|
try {
|
|
2814
|
-
const t = localStorage.getItem(
|
|
2814
|
+
const t = localStorage.getItem(ei);
|
|
2815
2815
|
if (!t) return [];
|
|
2816
2816
|
const i = JSON.parse(t);
|
|
2817
|
-
return i.version !==
|
|
2817
|
+
return i.version !== ii ? (console.warn("[DSP Storage] Version mismatch, clearing storage"), x.clear(), []) : i.contracts || [];
|
|
2818
2818
|
} catch (t) {
|
|
2819
2819
|
return console.error("[DSP Storage] Error reading contracts:", t), [];
|
|
2820
2820
|
}
|
|
@@ -2896,7 +2896,7 @@ let ot = class x {
|
|
|
2896
2896
|
* Clear all contracts
|
|
2897
2897
|
*/
|
|
2898
2898
|
static clear() {
|
|
2899
|
-
localStorage.removeItem(
|
|
2899
|
+
localStorage.removeItem(ei);
|
|
2900
2900
|
}
|
|
2901
2901
|
/**
|
|
2902
2902
|
* Export contracts as JSON
|
|
@@ -2905,7 +2905,7 @@ let ot = class x {
|
|
|
2905
2905
|
const t = x.getAll();
|
|
2906
2906
|
return JSON.stringify(
|
|
2907
2907
|
{
|
|
2908
|
-
version:
|
|
2908
|
+
version: ii,
|
|
2909
2909
|
contracts: t,
|
|
2910
2910
|
exportedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
2911
2911
|
},
|
|
@@ -2997,10 +2997,10 @@ let ot = class x {
|
|
|
2997
2997
|
static save(t) {
|
|
2998
2998
|
try {
|
|
2999
2999
|
const i = {
|
|
3000
|
-
version:
|
|
3000
|
+
version: ii,
|
|
3001
3001
|
contracts: t
|
|
3002
3002
|
};
|
|
3003
|
-
localStorage.setItem(
|
|
3003
|
+
localStorage.setItem(ei, JSON.stringify(i));
|
|
3004
3004
|
} catch (i) {
|
|
3005
3005
|
throw console.error("[DSP Storage] Error saving contracts:", i), i;
|
|
3006
3006
|
}
|
|
@@ -3012,7 +3012,7 @@ let ot = class x {
|
|
|
3012
3012
|
return `contract_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
|
-
class
|
|
3015
|
+
class pa {
|
|
3016
3016
|
constructor(t) {
|
|
3017
3017
|
this.policy = t;
|
|
3018
3018
|
}
|
|
@@ -3374,26 +3374,26 @@ class la {
|
|
|
3374
3374
|
`;
|
|
3375
3375
|
}
|
|
3376
3376
|
}
|
|
3377
|
-
const
|
|
3377
|
+
const pi = (e, t) => {
|
|
3378
3378
|
if (!e || t.length === 0) return;
|
|
3379
3379
|
const i = t.shift();
|
|
3380
|
-
i !== void 0 && (t.length === 0 ? delete e[i] : e[i] && typeof e[i] == "object" &&
|
|
3380
|
+
i !== void 0 && (t.length === 0 ? delete e[i] : e[i] && typeof e[i] == "object" && pi(e[i], t));
|
|
3381
3381
|
}, H = (e, t = [], i = {}, r = !1) => {
|
|
3382
3382
|
const s = structuredClone(e);
|
|
3383
3383
|
if (!r)
|
|
3384
3384
|
for (const o of t) {
|
|
3385
3385
|
const a = o.split(".");
|
|
3386
|
-
|
|
3386
|
+
pi(s, a);
|
|
3387
3387
|
}
|
|
3388
3388
|
for (const [o, a] of Object.entries(i))
|
|
3389
3389
|
s[o] = a;
|
|
3390
3390
|
if (r)
|
|
3391
3391
|
for (const o of t) {
|
|
3392
3392
|
const a = o.split(".");
|
|
3393
|
-
|
|
3393
|
+
pi(s, a);
|
|
3394
3394
|
}
|
|
3395
3395
|
return s;
|
|
3396
|
-
}, W = new
|
|
3396
|
+
}, W = new No.LoremIpsum({
|
|
3397
3397
|
sentencesPerParagraph: {
|
|
3398
3398
|
max: 4,
|
|
3399
3399
|
min: 1
|
|
@@ -3402,15 +3402,15 @@ const di = (e, t) => {
|
|
|
3402
3402
|
max: 8,
|
|
3403
3403
|
min: 2
|
|
3404
3404
|
}
|
|
3405
|
-
}),
|
|
3405
|
+
}), ua = {
|
|
3406
3406
|
"@id": "store://local.sample-object/assets/1/",
|
|
3407
3407
|
name: "Sample"
|
|
3408
|
-
}, N = () => H(
|
|
3408
|
+
}, N = () => H(ua, [], {
|
|
3409
3409
|
"@id": `store://local.sample-object/${Math.floor(Math.random() * 1e3)}/`,
|
|
3410
3410
|
name: W.generateWords(Math.floor(Math.random() * 3) + 1)
|
|
3411
3411
|
}), Ft = {
|
|
3412
3412
|
"@id": "store://local.sample-object/assets/1/",
|
|
3413
|
-
"@type":
|
|
3413
|
+
"@type": Xr,
|
|
3414
3414
|
name: "SampleAsset",
|
|
3415
3415
|
size: "10MiB",
|
|
3416
3416
|
format: {
|
|
@@ -3436,7 +3436,7 @@ H(Ft, [
|
|
|
3436
3436
|
H(Ft, ["@id"], {
|
|
3437
3437
|
"@id": "store://local.sample-object/assets/2/"
|
|
3438
3438
|
});
|
|
3439
|
-
const
|
|
3439
|
+
const ha = () => {
|
|
3440
3440
|
const e = [], t = {
|
|
3441
3441
|
"@id": `store://local.sample-object/${Math.floor(Math.random() * 1e3)}/`,
|
|
3442
3442
|
name: W.generateWords(Math.floor(Math.random() * 3) + 1),
|
|
@@ -3448,15 +3448,15 @@ const da = () => {
|
|
|
3448
3448
|
)
|
|
3449
3449
|
};
|
|
3450
3450
|
return Math.random() < 0.1 && e.push("name"), Math.random() < 0.5 && e.push("categories"), Math.random() < 0.5 && e.push("format"), Math.random() < 0.5 && e.push("size"), H(Ft, e, t, !0);
|
|
3451
|
-
},
|
|
3451
|
+
}, ma = {
|
|
3452
3452
|
"@id": "store://local.sample-object/images/1/",
|
|
3453
|
-
"@type":
|
|
3453
|
+
"@type": Jr,
|
|
3454
3454
|
creation_date: "2024-11-11T12:54:52.359000Z",
|
|
3455
3455
|
update_date: "2024-11-14T08:04:47.631017Z",
|
|
3456
3456
|
name: "Sample Image",
|
|
3457
3457
|
url: "https://placehold.co/420x500",
|
|
3458
3458
|
iframe: !1
|
|
3459
|
-
},
|
|
3459
|
+
}, Se = (e = !1, t = !1) => {
|
|
3460
3460
|
const i = [], r = {
|
|
3461
3461
|
"@id": `store://local.sample-object/${Math.floor(Math.random() * 1e3)}/`,
|
|
3462
3462
|
creation_date: new Date(
|
|
@@ -3477,17 +3477,17 @@ const da = () => {
|
|
|
3477
3477
|
};
|
|
3478
3478
|
s("name"), s("url"), s("iframe");
|
|
3479
3479
|
}
|
|
3480
|
-
return H(
|
|
3481
|
-
},
|
|
3480
|
+
return H(ma, i, r, !0);
|
|
3481
|
+
}, fa = {
|
|
3482
3482
|
"@id": "store://local.sample-object/licences/1/",
|
|
3483
|
-
"@type":
|
|
3483
|
+
"@type": Zr,
|
|
3484
3484
|
creation_date: "2024-11-11T12:54:52.359000Z",
|
|
3485
3485
|
update_date: "2024-11-14T08:04:47.631017Z",
|
|
3486
3486
|
name: "Sample Licence",
|
|
3487
3487
|
short_desc: "Sample Short Description",
|
|
3488
3488
|
description: "Sample Description",
|
|
3489
3489
|
url: "https://example.com"
|
|
3490
|
-
},
|
|
3490
|
+
}, ga = () => {
|
|
3491
3491
|
const e = [], t = {
|
|
3492
3492
|
"@id": `store://local.sample-object/${Math.floor(Math.random() * 1e3)}/`,
|
|
3493
3493
|
creation_date: new Date(
|
|
@@ -3503,26 +3503,26 @@ const da = () => {
|
|
|
3503
3503
|
}, i = (r) => {
|
|
3504
3504
|
Math.random() < Math.random() * 0.25 && e.push(r);
|
|
3505
3505
|
};
|
|
3506
|
-
return i("name"), i("short_desc"), i("description"), i("url"), H(
|
|
3506
|
+
return i("name"), i("short_desc"), i("description"), i("url"), H(fa, e, t, !0);
|
|
3507
3507
|
};
|
|
3508
3508
|
Array.from(
|
|
3509
3509
|
{ length: Math.floor(Math.random() * 2) },
|
|
3510
3510
|
N
|
|
3511
|
-
),
|
|
3511
|
+
), ga(), Array.from(
|
|
3512
3512
|
{ length: Math.floor(Math.random() * 3) },
|
|
3513
|
-
() =>
|
|
3514
|
-
),
|
|
3515
|
-
|
|
3513
|
+
() => Se()
|
|
3514
|
+
), Se();
|
|
3515
|
+
Se(), Array.from(
|
|
3516
3516
|
{ length: Math.floor(Math.random() * 2) },
|
|
3517
3517
|
N
|
|
3518
3518
|
);
|
|
3519
|
-
|
|
3519
|
+
Se(), Array.from(
|
|
3520
3520
|
{ length: Math.floor(Math.random() * 2) },
|
|
3521
3521
|
N
|
|
3522
3522
|
);
|
|
3523
|
-
const
|
|
3523
|
+
const ya = {
|
|
3524
3524
|
"@id": "store://local.sample-object/locations/1/",
|
|
3525
|
-
"@type":
|
|
3525
|
+
"@type": Qr,
|
|
3526
3526
|
name: "SampleLocation",
|
|
3527
3527
|
address: "Unknown",
|
|
3528
3528
|
city: "Melbourne",
|
|
@@ -3531,7 +3531,7 @@ const ma = {
|
|
|
3531
3531
|
latitude: "0.0000000",
|
|
3532
3532
|
longitude: "0.0000000",
|
|
3533
3533
|
elevation: 0
|
|
3534
|
-
},
|
|
3534
|
+
}, Ci = () => {
|
|
3535
3535
|
const e = [], t = {
|
|
3536
3536
|
"@id": `store://local.sample-object/${Math.floor(Math.random() * 1e3)}/`,
|
|
3537
3537
|
name: W.generateWords(Math.floor(Math.random() * 3) + 1),
|
|
@@ -3545,8 +3545,8 @@ const ma = {
|
|
|
3545
3545
|
}, i = (r) => {
|
|
3546
3546
|
Math.random() < Math.random() * 0.25 && e.push(r);
|
|
3547
3547
|
};
|
|
3548
|
-
return i("address"), i("city"), i("state"), i("country"), i("latitude"), i("longitude"), i("elevation"), H(
|
|
3549
|
-
},
|
|
3548
|
+
return i("address"), i("city"), i("state"), i("country"), i("latitude"), i("longitude"), i("elevation"), H(ya, e, t, !0);
|
|
3549
|
+
}, Si = {
|
|
3550
3550
|
"@id": "_:b1",
|
|
3551
3551
|
first_name: "John",
|
|
3552
3552
|
last_name: "Doe",
|
|
@@ -3570,18 +3570,18 @@ const ma = {
|
|
|
3570
3570
|
],
|
|
3571
3571
|
permissions: ["view", "add", "control", "delete", "change"]
|
|
3572
3572
|
};
|
|
3573
|
-
H(
|
|
3574
|
-
H(
|
|
3575
|
-
H(
|
|
3573
|
+
H(Si, ["account.picture"]);
|
|
3574
|
+
H(Si, ["email"]);
|
|
3575
|
+
H(Si, [
|
|
3576
3576
|
"first_name",
|
|
3577
3577
|
"last_name",
|
|
3578
3578
|
"email",
|
|
3579
3579
|
"account.picture",
|
|
3580
3580
|
"name"
|
|
3581
3581
|
]);
|
|
3582
|
-
const
|
|
3582
|
+
const as = {
|
|
3583
3583
|
"@id": "store://local.sample-object/1/",
|
|
3584
|
-
"@type":
|
|
3584
|
+
"@type": _i,
|
|
3585
3585
|
creation_date: "2024-11-11T12:53:16.938000Z",
|
|
3586
3586
|
update_date: "2024-11-14T08:04:47.656001Z",
|
|
3587
3587
|
title: "Sample Object",
|
|
@@ -3594,7 +3594,7 @@ const ss = {
|
|
|
3594
3594
|
owners: []
|
|
3595
3595
|
};
|
|
3596
3596
|
({
|
|
3597
|
-
...
|
|
3597
|
+
...as,
|
|
3598
3598
|
keywords: Array.from(
|
|
3599
3599
|
{ length: Math.floor(Math.random() * 5) },
|
|
3600
3600
|
N
|
|
@@ -3603,19 +3603,19 @@ const ss = {
|
|
|
3603
3603
|
{ length: Math.floor(Math.random() * 2) },
|
|
3604
3604
|
N
|
|
3605
3605
|
),
|
|
3606
|
-
location:
|
|
3606
|
+
location: Ci(),
|
|
3607
3607
|
format: N()
|
|
3608
3608
|
});
|
|
3609
|
-
const
|
|
3610
|
-
...
|
|
3611
|
-
"@type": [
|
|
3609
|
+
const Fe = {
|
|
3610
|
+
...as,
|
|
3611
|
+
"@type": [_i, ts],
|
|
3612
3612
|
keywords: Array.from(
|
|
3613
3613
|
{ length: Math.floor(Math.random() * 5) },
|
|
3614
3614
|
N
|
|
3615
3615
|
),
|
|
3616
3616
|
assets: Array.from(
|
|
3617
3617
|
{ length: Math.floor(Math.random() * 3) },
|
|
3618
|
-
|
|
3618
|
+
ha
|
|
3619
3619
|
),
|
|
3620
3620
|
publication_date: new Date(
|
|
3621
3621
|
Date.now() - Math.random() * 365 * 24 * 60 * 60 * 1e3
|
|
@@ -3623,12 +3623,12 @@ const ke = {
|
|
|
3623
3623
|
language: N()
|
|
3624
3624
|
};
|
|
3625
3625
|
({
|
|
3626
|
-
...
|
|
3626
|
+
...Fe,
|
|
3627
3627
|
type: N()
|
|
3628
3628
|
});
|
|
3629
3629
|
({
|
|
3630
|
-
...
|
|
3631
|
-
location:
|
|
3630
|
+
...Fe,
|
|
3631
|
+
location: Ci(),
|
|
3632
3632
|
affiliation: N(),
|
|
3633
3633
|
topics: Array.from(
|
|
3634
3634
|
{ length: Math.floor(Math.random() * 5) + 1 },
|
|
@@ -3636,13 +3636,13 @@ const ke = {
|
|
|
3636
3636
|
)
|
|
3637
3637
|
});
|
|
3638
3638
|
({
|
|
3639
|
-
...
|
|
3639
|
+
...Fe
|
|
3640
3640
|
});
|
|
3641
3641
|
({
|
|
3642
|
-
...
|
|
3642
|
+
...Fe,
|
|
3643
3643
|
type: N()
|
|
3644
3644
|
});
|
|
3645
|
-
const
|
|
3645
|
+
const va = {
|
|
3646
3646
|
client: {
|
|
3647
3647
|
name: "TEMS",
|
|
3648
3648
|
logo: "https://cdn.startinblox.com/logos/ACME.svg"
|
|
@@ -3656,9 +3656,9 @@ const fa = {
|
|
|
3656
3656
|
icon: "mingcute-notification-line"
|
|
3657
3657
|
}
|
|
3658
3658
|
},
|
|
3659
|
-
route:
|
|
3659
|
+
route: U(),
|
|
3660
3660
|
integration: ["menu"],
|
|
3661
|
-
uniq:
|
|
3661
|
+
uniq: U()
|
|
3662
3662
|
},
|
|
3663
3663
|
{
|
|
3664
3664
|
parameters: {
|
|
@@ -3669,9 +3669,9 @@ const fa = {
|
|
|
3669
3669
|
disabled: !0
|
|
3670
3670
|
}
|
|
3671
3671
|
},
|
|
3672
|
-
route:
|
|
3672
|
+
route: U(),
|
|
3673
3673
|
integration: ["menu"],
|
|
3674
|
-
uniq:
|
|
3674
|
+
uniq: U()
|
|
3675
3675
|
},
|
|
3676
3676
|
{
|
|
3677
3677
|
parameters: {
|
|
@@ -3681,9 +3681,9 @@ const fa = {
|
|
|
3681
3681
|
icon: "mage-globe-fill"
|
|
3682
3682
|
}
|
|
3683
3683
|
},
|
|
3684
|
-
route:
|
|
3684
|
+
route: U(),
|
|
3685
3685
|
integration: ["menu"],
|
|
3686
|
-
uniq:
|
|
3686
|
+
uniq: U()
|
|
3687
3687
|
},
|
|
3688
3688
|
{
|
|
3689
3689
|
parameters: {
|
|
@@ -3693,9 +3693,9 @@ const fa = {
|
|
|
3693
3693
|
icon: "mingcute-search-3-line"
|
|
3694
3694
|
}
|
|
3695
3695
|
},
|
|
3696
|
-
route:
|
|
3696
|
+
route: U(),
|
|
3697
3697
|
integration: ["menu"],
|
|
3698
|
-
uniq:
|
|
3698
|
+
uniq: U()
|
|
3699
3699
|
},
|
|
3700
3700
|
{
|
|
3701
3701
|
parameters: {
|
|
@@ -3706,9 +3706,9 @@ const fa = {
|
|
|
3706
3706
|
icon: "fluent-apps-16-filled"
|
|
3707
3707
|
}
|
|
3708
3708
|
},
|
|
3709
|
-
route:
|
|
3709
|
+
route: U(),
|
|
3710
3710
|
integration: ["menu"],
|
|
3711
|
-
uniq:
|
|
3711
|
+
uniq: U()
|
|
3712
3712
|
},
|
|
3713
3713
|
{
|
|
3714
3714
|
parameters: {
|
|
@@ -3716,12 +3716,12 @@ const fa = {
|
|
|
3716
3716
|
name: "Bookmarks",
|
|
3717
3717
|
category: "Workspace",
|
|
3718
3718
|
icon: "mingcute-bookmark-line",
|
|
3719
|
-
alternate: [
|
|
3719
|
+
alternate: [U()]
|
|
3720
3720
|
}
|
|
3721
3721
|
},
|
|
3722
|
-
route:
|
|
3722
|
+
route: U(),
|
|
3723
3723
|
integration: ["menu"],
|
|
3724
|
-
uniq:
|
|
3724
|
+
uniq: U()
|
|
3725
3725
|
}
|
|
3726
3726
|
],
|
|
3727
3727
|
getRoute: (e) => e,
|
|
@@ -3744,22 +3744,22 @@ const fa = {
|
|
|
3744
3744
|
"tems-catalog",
|
|
3745
3745
|
"tems-mediatrendexplorer"
|
|
3746
3746
|
])
|
|
3747
|
-
},
|
|
3747
|
+
}, ba = {
|
|
3748
3748
|
getData: (e, t) => e
|
|
3749
|
-
},
|
|
3749
|
+
}, $a = {
|
|
3750
3750
|
currentResource: ""
|
|
3751
3751
|
};
|
|
3752
|
-
"/".includes("cypress") && (window.sibRouter =
|
|
3753
|
-
|
|
3752
|
+
"/".includes("cypress") && (window.sibRouter = $a, window.sibStore = ba, window.orbit = va);
|
|
3753
|
+
Ci(), Array.from(
|
|
3754
3754
|
{ length: Math.floor(Math.random() * 3) },
|
|
3755
3755
|
N
|
|
3756
3756
|
);
|
|
3757
|
-
function
|
|
3757
|
+
function Ei(e) {
|
|
3758
3758
|
const t = e["@id"] || e.id, i = e._provider?.participantId || "";
|
|
3759
3759
|
return t ? i ? `dsp-agreement-${i}-${t}` : `dsp-agreement-${t}` : "";
|
|
3760
3760
|
}
|
|
3761
|
-
function
|
|
3762
|
-
const s =
|
|
3761
|
+
function wa(e, t, i, r) {
|
|
3762
|
+
const s = Ei(e);
|
|
3763
3763
|
if (!s) return;
|
|
3764
3764
|
const o = {
|
|
3765
3765
|
contractId: t,
|
|
@@ -3771,8 +3771,8 @@ function va(e, t, i, r) {
|
|
|
3771
3771
|
};
|
|
3772
3772
|
localStorage.setItem(s, JSON.stringify(o));
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3775
|
-
const t =
|
|
3774
|
+
function Cr(e) {
|
|
3775
|
+
const t = Ei(e);
|
|
3776
3776
|
if (!t) return null;
|
|
3777
3777
|
try {
|
|
3778
3778
|
const i = localStorage.getItem(t);
|
|
@@ -3783,11 +3783,11 @@ function Pr(e) {
|
|
|
3783
3783
|
}
|
|
3784
3784
|
return null;
|
|
3785
3785
|
}
|
|
3786
|
-
function
|
|
3787
|
-
const t =
|
|
3786
|
+
function _a(e) {
|
|
3787
|
+
const t = Ei(e);
|
|
3788
3788
|
t && localStorage.removeItem(t);
|
|
3789
3789
|
}
|
|
3790
|
-
function
|
|
3790
|
+
function xa(e, t) {
|
|
3791
3791
|
try {
|
|
3792
3792
|
const i = e._provider?.participantId || "", r = e["@id"] || e.id;
|
|
3793
3793
|
if (!r) return;
|
|
@@ -3822,7 +3822,7 @@ function wa(e, t) {
|
|
|
3822
3822
|
);
|
|
3823
3823
|
}
|
|
3824
3824
|
}
|
|
3825
|
-
function
|
|
3825
|
+
function Pa(e, t, i) {
|
|
3826
3826
|
try {
|
|
3827
3827
|
const r = e._provider?.participantId || "", s = e["@id"] || e.id;
|
|
3828
3828
|
if (!s) return;
|
|
@@ -3858,7 +3858,7 @@ function $a(e, t, i) {
|
|
|
3858
3858
|
console.error("[DSP Contract Catalog] Failed to save contract:", r);
|
|
3859
3859
|
}
|
|
3860
3860
|
}
|
|
3861
|
-
function
|
|
3861
|
+
function ri(e, t, i, r) {
|
|
3862
3862
|
try {
|
|
3863
3863
|
const s = e._provider?.participantId || "", o = e["@id"] || e.id;
|
|
3864
3864
|
if (!o) return;
|
|
@@ -3876,7 +3876,7 @@ function ii(e, t, i, r) {
|
|
|
3876
3876
|
);
|
|
3877
3877
|
}
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function Aa(e) {
|
|
3880
3880
|
const t = e?.["@id"] || e?.id, i = e?._provider?.participantId || "";
|
|
3881
3881
|
if (t) {
|
|
3882
3882
|
const r = ot.getByAssetAndProvider(
|
|
@@ -3887,7 +3887,7 @@ function _a(e) {
|
|
|
3887
3887
|
ot.delete(s.id);
|
|
3888
3888
|
}
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function Sr(e) {
|
|
3891
3891
|
let t = [], i;
|
|
3892
3892
|
if (!e)
|
|
3893
3893
|
return { policies: [], defaultPolicy: void 0 };
|
|
@@ -3909,16 +3909,16 @@ function Ar(e) {
|
|
|
3909
3909
|
i = e, t = [i];
|
|
3910
3910
|
return { policies: t, defaultPolicy: i };
|
|
3911
3911
|
}
|
|
3912
|
-
function
|
|
3912
|
+
function Ca(e) {
|
|
3913
3913
|
return !e || typeof e != "object" ? !1 : Object.keys(e).some((r) => /^\d+$/.test(r)) ? (console.error(
|
|
3914
3914
|
"[policyHelpers] ERROR: Policy has numeric keys! Invalid structure.",
|
|
3915
3915
|
e
|
|
3916
3916
|
), !1) : !0;
|
|
3917
3917
|
}
|
|
3918
|
-
function
|
|
3918
|
+
function Sa(e) {
|
|
3919
3919
|
return e && e.length > 1;
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function Ea(e) {
|
|
3922
3922
|
if (!e) return c`${l("No policy details available")}`;
|
|
3923
3923
|
const t = e["odrl:permission"], i = e["odrl:prohibition"], r = e["odrl:obligation"], s = t ? Array.isArray(t) ? t : [t] : [], o = i ? Array.isArray(i) ? i : [i] : [], a = r ? Array.isArray(r) ? r : [r] : [];
|
|
3924
3924
|
return c`${e["@id"] ? c`<div class="policy-detail">
|
|
@@ -3934,14 +3934,14 @@ function Aa(e) {
|
|
|
3934
3934
|
(n) => c`
|
|
3935
3935
|
<li>
|
|
3936
3936
|
${l(
|
|
3937
|
-
|
|
3937
|
+
b`Action: ${n["odrl:action"]?.["@id"] || n["odrl:action"] || l("use")}`
|
|
3938
3938
|
)}
|
|
3939
3939
|
</li>
|
|
3940
3940
|
${n["odrl:constraint"] ? c`${(Array.isArray(n["odrl:constraint"]) ? n["odrl:constraint"] : [n["odrl:constraint"]]).map(
|
|
3941
3941
|
(d) => c`
|
|
3942
3942
|
<li style="margin-left: 20px;">
|
|
3943
3943
|
${l(
|
|
3944
|
-
|
|
3944
|
+
b`Constraint: ${d["odrl:leftOperand"]} ${d["odrl:operator"]} ${d["odrl:rightOperand"]}`
|
|
3945
3945
|
)}
|
|
3946
3946
|
</li>
|
|
3947
3947
|
`
|
|
@@ -3957,7 +3957,7 @@ function Aa(e) {
|
|
|
3957
3957
|
(n) => c`
|
|
3958
3958
|
<li>
|
|
3959
3959
|
${l(
|
|
3960
|
-
|
|
3960
|
+
b`Action: ${n["odrl:action"]?.["@id"] || n["odrl:action"] || l("unknown")}`
|
|
3961
3961
|
)}
|
|
3962
3962
|
</li>
|
|
3963
3963
|
`
|
|
@@ -3971,7 +3971,7 @@ function Aa(e) {
|
|
|
3971
3971
|
(n) => c`
|
|
3972
3972
|
<li>
|
|
3973
3973
|
${l(
|
|
3974
|
-
|
|
3974
|
+
b`Action: ${n["odrl:action"]?.["@id"] || n["odrl:action"] || l("unknown")}`
|
|
3975
3975
|
)}
|
|
3976
3976
|
</li>
|
|
3977
3977
|
`
|
|
@@ -3985,17 +3985,17 @@ function Aa(e) {
|
|
|
3985
3985
|
<strong>${l("Assigner:")}:</strong> ${e.assigner}
|
|
3986
3986
|
</div>` : p}`;
|
|
3987
3987
|
}
|
|
3988
|
-
var
|
|
3989
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3988
|
+
var Oa = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, ns = (e, t, i, r) => {
|
|
3989
|
+
for (var s = r > 1 ? void 0 : r ? Ia(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
3990
3990
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
3991
|
-
return r && s &&
|
|
3991
|
+
return r && s && Oa(t, i, s), s;
|
|
3992
3992
|
};
|
|
3993
|
-
let
|
|
3993
|
+
let Ee = class extends A {
|
|
3994
3994
|
_getThumbnail() {
|
|
3995
3995
|
return this.object?.enclosure ? String(this.object.enclosure) : "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='354' height='167' viewBox='0 0 354 167'%3E%3Crect width='354' height='167' fill='%23f0f0f0'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='sans-serif' font-size='14' fill='%23999'%3ENo Image%3C/text%3E%3C/svg%3E";
|
|
3996
3996
|
}
|
|
3997
3997
|
_getFormattedDate() {
|
|
3998
|
-
return this.object?.created_at ?
|
|
3998
|
+
return this.object?.created_at ? L(this.object.created_at, {
|
|
3999
3999
|
year: "numeric",
|
|
4000
4000
|
month: "long",
|
|
4001
4001
|
day: "numeric"
|
|
@@ -4011,13 +4011,13 @@ let Se = class extends C {
|
|
|
4011
4011
|
});
|
|
4012
4012
|
const t = this.object?.categories?.length || 0;
|
|
4013
4013
|
t > 3 && e.push({
|
|
4014
|
-
label: l(
|
|
4014
|
+
label: l(b`+${t - 3} ${l("more")}`),
|
|
4015
4015
|
type: "neutral"
|
|
4016
4016
|
});
|
|
4017
4017
|
const i = this.object?.medias?.length || 0;
|
|
4018
4018
|
return i > 0 && e.push({
|
|
4019
4019
|
label: l(
|
|
4020
|
-
|
|
4020
|
+
b`${i} ${i > 1 ? l("medias") : l("media")}`
|
|
4021
4021
|
),
|
|
4022
4022
|
type: "information"
|
|
4023
4023
|
}), e;
|
|
@@ -4065,21 +4065,21 @@ let Se = class extends C {
|
|
|
4065
4065
|
</article>`;
|
|
4066
4066
|
}
|
|
4067
4067
|
};
|
|
4068
|
-
|
|
4069
|
-
${
|
|
4068
|
+
Ee.styles = C`
|
|
4069
|
+
${M(co)};
|
|
4070
4070
|
`;
|
|
4071
|
-
|
|
4071
|
+
ns([
|
|
4072
4072
|
y({ attribute: !1 })
|
|
4073
|
-
],
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
],
|
|
4077
|
-
var
|
|
4078
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4073
|
+
], Ee.prototype, "object", 2);
|
|
4074
|
+
Ee = ns([
|
|
4075
|
+
w("ds4go-card-fact")
|
|
4076
|
+
], Ee);
|
|
4077
|
+
var Ra = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, Ne = (e, t, i, r) => {
|
|
4078
|
+
for (var s = r > 1 ? void 0 : r ? Da(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4079
4079
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4080
|
-
return r && s &&
|
|
4080
|
+
return r && s && Ra(t, i, s), s;
|
|
4081
4081
|
};
|
|
4082
|
-
let Nt = class extends
|
|
4082
|
+
let Nt = class extends Pi {
|
|
4083
4083
|
constructor() {
|
|
4084
4084
|
super(...arguments), this.view = "card", this.search = [], this.objects = [], this._displayObjects = [];
|
|
4085
4085
|
}
|
|
@@ -4100,7 +4100,7 @@ let Nt = class extends xi {
|
|
|
4100
4100
|
switch (a.type) {
|
|
4101
4101
|
case "interval":
|
|
4102
4102
|
o.push(
|
|
4103
|
-
|
|
4103
|
+
ue(
|
|
4104
4104
|
r,
|
|
4105
4105
|
a.name,
|
|
4106
4106
|
a.value
|
|
@@ -4109,7 +4109,7 @@ let Nt = class extends xi {
|
|
|
4109
4109
|
break;
|
|
4110
4110
|
case "dateAfter":
|
|
4111
4111
|
o.push(
|
|
4112
|
-
|
|
4112
|
+
de(
|
|
4113
4113
|
r,
|
|
4114
4114
|
a.name,
|
|
4115
4115
|
a.value
|
|
@@ -4118,7 +4118,7 @@ let Nt = class extends xi {
|
|
|
4118
4118
|
break;
|
|
4119
4119
|
case "matchId":
|
|
4120
4120
|
o.push(
|
|
4121
|
-
|
|
4121
|
+
pe(
|
|
4122
4122
|
r,
|
|
4123
4123
|
a.name,
|
|
4124
4124
|
a.value
|
|
@@ -4127,12 +4127,12 @@ let Nt = class extends xi {
|
|
|
4127
4127
|
break;
|
|
4128
4128
|
case "matchType":
|
|
4129
4129
|
o.push(
|
|
4130
|
-
|
|
4130
|
+
me(r, a.value)
|
|
4131
4131
|
);
|
|
4132
4132
|
break;
|
|
4133
4133
|
case "exact":
|
|
4134
4134
|
o.push(
|
|
4135
|
-
|
|
4135
|
+
he(
|
|
4136
4136
|
r,
|
|
4137
4137
|
a.name,
|
|
4138
4138
|
a.value
|
|
@@ -4171,7 +4171,7 @@ let Nt = class extends xi {
|
|
|
4171
4171
|
</div>`;
|
|
4172
4172
|
}
|
|
4173
4173
|
};
|
|
4174
|
-
Nt.styles =
|
|
4174
|
+
Nt.styles = C`
|
|
4175
4175
|
.card-grid {
|
|
4176
4176
|
display: flex;
|
|
4177
4177
|
flex-direction: row;
|
|
@@ -4189,24 +4189,24 @@ Nt.styles = A`
|
|
|
4189
4189
|
cursor: pointer;
|
|
4190
4190
|
}
|
|
4191
4191
|
`;
|
|
4192
|
-
|
|
4192
|
+
Ne([
|
|
4193
4193
|
h()
|
|
4194
4194
|
], Nt.prototype, "view", 2);
|
|
4195
|
-
|
|
4195
|
+
Ne([
|
|
4196
4196
|
h()
|
|
4197
4197
|
], Nt.prototype, "search", 2);
|
|
4198
|
-
|
|
4198
|
+
Ne([
|
|
4199
4199
|
h()
|
|
4200
4200
|
], Nt.prototype, "_displayObjects", 2);
|
|
4201
|
-
Nt =
|
|
4202
|
-
|
|
4201
|
+
Nt = Ne([
|
|
4202
|
+
w("ds4go-catalog-data-holder")
|
|
4203
4203
|
], Nt);
|
|
4204
|
-
var
|
|
4205
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4204
|
+
var Ta = Object.defineProperty, ja = Object.getOwnPropertyDescriptor, bt = (e, t, i, r) => {
|
|
4205
|
+
for (var s = r > 1 ? void 0 : r ? ja(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4206
4206
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4207
|
-
return r && s &&
|
|
4207
|
+
return r && s && Ta(t, i, s), s;
|
|
4208
4208
|
};
|
|
4209
|
-
let J = class extends
|
|
4209
|
+
let J = class extends Pi {
|
|
4210
4210
|
constructor() {
|
|
4211
4211
|
super(...arguments), this.displayFiltering = !1, this.search = [], this._internalFilters = [], this.displayFilters = !1, this.resultCount = 0, this.filterCount = 0, this.view = "card", this._accordionStates = {};
|
|
4212
4212
|
}
|
|
@@ -4439,7 +4439,7 @@ let J = class extends xi {
|
|
|
4439
4439
|
`;
|
|
4440
4440
|
}
|
|
4441
4441
|
};
|
|
4442
|
-
J.styles =
|
|
4442
|
+
J.styles = C`
|
|
4443
4443
|
.filter-bar {
|
|
4444
4444
|
position: fixed;
|
|
4445
4445
|
top: 0;
|
|
@@ -4474,14 +4474,14 @@ bt([
|
|
|
4474
4474
|
h()
|
|
4475
4475
|
], J.prototype, "_accordionStates", 2);
|
|
4476
4476
|
J = bt([
|
|
4477
|
-
|
|
4477
|
+
w("ds4go-catalog-filter-holder")
|
|
4478
4478
|
], J);
|
|
4479
|
-
var
|
|
4480
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4479
|
+
var ka = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, Oi = (e, t, i, r) => {
|
|
4480
|
+
for (var s = r > 1 ? void 0 : r ? Fa(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4481
4481
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4482
|
-
return r && s &&
|
|
4482
|
+
return r && s && ka(t, i, s), s;
|
|
4483
4483
|
};
|
|
4484
|
-
let te = class extends
|
|
4484
|
+
let te = class extends ce {
|
|
4485
4485
|
constructor() {
|
|
4486
4486
|
super(...arguments), this.search = [], this._displayObjects = [];
|
|
4487
4487
|
}
|
|
@@ -4502,7 +4502,7 @@ let te = class extends le {
|
|
|
4502
4502
|
switch (a.type) {
|
|
4503
4503
|
case "interval":
|
|
4504
4504
|
o.push(
|
|
4505
|
-
|
|
4505
|
+
ue(
|
|
4506
4506
|
r,
|
|
4507
4507
|
a.name,
|
|
4508
4508
|
a.value
|
|
@@ -4511,7 +4511,7 @@ let te = class extends le {
|
|
|
4511
4511
|
break;
|
|
4512
4512
|
case "dateAfter":
|
|
4513
4513
|
o.push(
|
|
4514
|
-
|
|
4514
|
+
de(
|
|
4515
4515
|
r,
|
|
4516
4516
|
a.name,
|
|
4517
4517
|
a.value
|
|
@@ -4520,7 +4520,7 @@ let te = class extends le {
|
|
|
4520
4520
|
break;
|
|
4521
4521
|
case "matchId":
|
|
4522
4522
|
o.push(
|
|
4523
|
-
|
|
4523
|
+
pe(
|
|
4524
4524
|
r,
|
|
4525
4525
|
a.name,
|
|
4526
4526
|
a.value
|
|
@@ -4529,12 +4529,12 @@ let te = class extends le {
|
|
|
4529
4529
|
break;
|
|
4530
4530
|
case "matchType":
|
|
4531
4531
|
o.push(
|
|
4532
|
-
|
|
4532
|
+
me(r, a.value)
|
|
4533
4533
|
);
|
|
4534
4534
|
break;
|
|
4535
4535
|
case "exact":
|
|
4536
4536
|
o.push(
|
|
4537
|
-
|
|
4537
|
+
he(
|
|
4538
4538
|
r,
|
|
4539
4539
|
a.name,
|
|
4540
4540
|
a.value
|
|
@@ -4565,7 +4565,7 @@ let te = class extends le {
|
|
|
4565
4565
|
${this._displayObjects.map((e) => {
|
|
4566
4566
|
const t = [
|
|
4567
4567
|
{
|
|
4568
|
-
name: `${l(
|
|
4568
|
+
name: `${l(b`Balance: ${e.balance}`)}`,
|
|
4569
4569
|
type: "information"
|
|
4570
4570
|
}
|
|
4571
4571
|
];
|
|
@@ -4574,7 +4574,7 @@ let te = class extends le {
|
|
|
4574
4574
|
type=${"vertical"}
|
|
4575
4575
|
.tags=${t}
|
|
4576
4576
|
.header=${e.name || p}
|
|
4577
|
-
.content=${e.participant_id ? l(
|
|
4577
|
+
.content=${e.participant_id ? l(b`Participant ID: ${e.participant_id}`) : p}
|
|
4578
4578
|
date=${e.updated_at || p}
|
|
4579
4579
|
@click=${() => this._handleClickEvent(e)}
|
|
4580
4580
|
></ds4go-card-catalog>`;
|
|
@@ -4582,7 +4582,7 @@ let te = class extends le {
|
|
|
4582
4582
|
</div>`;
|
|
4583
4583
|
}
|
|
4584
4584
|
};
|
|
4585
|
-
te.styles =
|
|
4585
|
+
te.styles = C`
|
|
4586
4586
|
.card-grid {
|
|
4587
4587
|
display: flex;
|
|
4588
4588
|
flex-direction: row;
|
|
@@ -4600,21 +4600,21 @@ te.styles = A`
|
|
|
4600
4600
|
cursor: pointer;
|
|
4601
4601
|
}
|
|
4602
4602
|
`;
|
|
4603
|
-
|
|
4603
|
+
Oi([
|
|
4604
4604
|
h()
|
|
4605
4605
|
], te.prototype, "search", 2);
|
|
4606
|
-
|
|
4606
|
+
Oi([
|
|
4607
4607
|
h()
|
|
4608
4608
|
], te.prototype, "_displayObjects", 2);
|
|
4609
|
-
te =
|
|
4610
|
-
|
|
4609
|
+
te = Oi([
|
|
4610
|
+
w("ds4go-customer-holder")
|
|
4611
4611
|
], te);
|
|
4612
|
-
var
|
|
4613
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4612
|
+
var Na = Object.defineProperty, Ma = Object.getOwnPropertyDescriptor, Me = (e, t, i, r) => {
|
|
4613
|
+
for (var s = r > 1 ? void 0 : r ? Ma(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4614
4614
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4615
|
-
return r && s &&
|
|
4615
|
+
return r && s && Na(t, i, s), s;
|
|
4616
4616
|
};
|
|
4617
|
-
let Mt = class extends
|
|
4617
|
+
let Mt = class extends A {
|
|
4618
4618
|
constructor() {
|
|
4619
4619
|
super(...arguments), this.objects = [], this.search = [], this._displayObjects = [];
|
|
4620
4620
|
}
|
|
@@ -4636,7 +4636,7 @@ let Mt = class extends C {
|
|
|
4636
4636
|
switch (a.type) {
|
|
4637
4637
|
case "interval":
|
|
4638
4638
|
o.push(
|
|
4639
|
-
|
|
4639
|
+
ue(
|
|
4640
4640
|
r,
|
|
4641
4641
|
a.name,
|
|
4642
4642
|
a.value
|
|
@@ -4645,7 +4645,7 @@ let Mt = class extends C {
|
|
|
4645
4645
|
break;
|
|
4646
4646
|
case "dateAfter":
|
|
4647
4647
|
o.push(
|
|
4648
|
-
|
|
4648
|
+
de(
|
|
4649
4649
|
r,
|
|
4650
4650
|
a.name,
|
|
4651
4651
|
a.value
|
|
@@ -4654,7 +4654,7 @@ let Mt = class extends C {
|
|
|
4654
4654
|
break;
|
|
4655
4655
|
case "matchId":
|
|
4656
4656
|
o.push(
|
|
4657
|
-
|
|
4657
|
+
pe(
|
|
4658
4658
|
r,
|
|
4659
4659
|
a.name,
|
|
4660
4660
|
a.value
|
|
@@ -4663,12 +4663,12 @@ let Mt = class extends C {
|
|
|
4663
4663
|
break;
|
|
4664
4664
|
case "matchType":
|
|
4665
4665
|
o.push(
|
|
4666
|
-
|
|
4666
|
+
me(r, a.value)
|
|
4667
4667
|
);
|
|
4668
4668
|
break;
|
|
4669
4669
|
case "exact":
|
|
4670
4670
|
o.push(
|
|
4671
|
-
|
|
4671
|
+
he(
|
|
4672
4672
|
r,
|
|
4673
4673
|
a.name,
|
|
4674
4674
|
a.value
|
|
@@ -4771,7 +4771,7 @@ let Mt = class extends C {
|
|
|
4771
4771
|
.header=${e.catalogId || p}
|
|
4772
4772
|
.content=${e.description || p}
|
|
4773
4773
|
.tags=${this._getCatalogTags(e)}
|
|
4774
|
-
date=${
|
|
4774
|
+
date=${L(e.lastUpdated) || p}
|
|
4775
4775
|
@click=${() => this.parent._selectCatalog(e.catalogId)}
|
|
4776
4776
|
></ds4go-card-catalog>`
|
|
4777
4777
|
)}` : c`${this._displayObjects.map(
|
|
@@ -4781,7 +4781,7 @@ let Mt = class extends C {
|
|
|
4781
4781
|
.header=${e.id || p}
|
|
4782
4782
|
.content=${e.description || p}
|
|
4783
4783
|
.tags=${this._getSectorTags(e)}
|
|
4784
|
-
date=${
|
|
4784
|
+
date=${L(e.lastUpdated) || p}
|
|
4785
4785
|
@click=${() => this.parent._selectSector(e.id)}
|
|
4786
4786
|
></ds4go-card-catalog>`
|
|
4787
4787
|
)}`}
|
|
@@ -4789,7 +4789,7 @@ let Mt = class extends C {
|
|
|
4789
4789
|
</div>`;
|
|
4790
4790
|
}
|
|
4791
4791
|
};
|
|
4792
|
-
Mt.styles =
|
|
4792
|
+
Mt.styles = C`
|
|
4793
4793
|
.card-grid {
|
|
4794
4794
|
display: flex;
|
|
4795
4795
|
flex-direction: row;
|
|
@@ -4810,24 +4810,24 @@ Mt.styles = A`
|
|
|
4810
4810
|
margin-bottom: var(--scale-900);
|
|
4811
4811
|
}
|
|
4812
4812
|
`;
|
|
4813
|
-
|
|
4813
|
+
Me([
|
|
4814
4814
|
y({ attribute: !1 })
|
|
4815
4815
|
], Mt.prototype, "objects", 2);
|
|
4816
|
-
|
|
4816
|
+
Me([
|
|
4817
4817
|
h()
|
|
4818
4818
|
], Mt.prototype, "search", 2);
|
|
4819
|
-
|
|
4819
|
+
Me([
|
|
4820
4820
|
h()
|
|
4821
4821
|
], Mt.prototype, "_displayObjects", 2);
|
|
4822
|
-
Mt =
|
|
4823
|
-
|
|
4822
|
+
Mt = Me([
|
|
4823
|
+
w("ds4go-dsif-explorer-poc-holder")
|
|
4824
4824
|
], Mt);
|
|
4825
|
-
var
|
|
4826
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4825
|
+
var Ua = Object.defineProperty, La = Object.getOwnPropertyDescriptor, Ii = (e, t, i, r) => {
|
|
4826
|
+
for (var s = r > 1 ? void 0 : r ? La(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4827
4827
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4828
|
-
return r && s &&
|
|
4828
|
+
return r && s && Ua(t, i, s), s;
|
|
4829
4829
|
};
|
|
4830
|
-
let ee = class extends
|
|
4830
|
+
let ee = class extends ce {
|
|
4831
4831
|
constructor() {
|
|
4832
4832
|
super(...arguments), this.search = [], this._displayObjects = [];
|
|
4833
4833
|
}
|
|
@@ -4848,7 +4848,7 @@ let ee = class extends le {
|
|
|
4848
4848
|
switch (a.type) {
|
|
4849
4849
|
case "interval":
|
|
4850
4850
|
o.push(
|
|
4851
|
-
|
|
4851
|
+
ue(
|
|
4852
4852
|
r,
|
|
4853
4853
|
a.name,
|
|
4854
4854
|
a.value
|
|
@@ -4857,7 +4857,7 @@ let ee = class extends le {
|
|
|
4857
4857
|
break;
|
|
4858
4858
|
case "dateAfter":
|
|
4859
4859
|
o.push(
|
|
4860
|
-
|
|
4860
|
+
de(
|
|
4861
4861
|
r,
|
|
4862
4862
|
a.name,
|
|
4863
4863
|
a.value
|
|
@@ -4866,7 +4866,7 @@ let ee = class extends le {
|
|
|
4866
4866
|
break;
|
|
4867
4867
|
case "matchId":
|
|
4868
4868
|
o.push(
|
|
4869
|
-
|
|
4869
|
+
pe(
|
|
4870
4870
|
r,
|
|
4871
4871
|
a.name,
|
|
4872
4872
|
a.value
|
|
@@ -4875,12 +4875,12 @@ let ee = class extends le {
|
|
|
4875
4875
|
break;
|
|
4876
4876
|
case "matchType":
|
|
4877
4877
|
o.push(
|
|
4878
|
-
|
|
4878
|
+
me(r, a.value)
|
|
4879
4879
|
);
|
|
4880
4880
|
break;
|
|
4881
4881
|
case "exact":
|
|
4882
4882
|
o.push(
|
|
4883
|
-
|
|
4883
|
+
he(
|
|
4884
4884
|
r,
|
|
4885
4885
|
a.name,
|
|
4886
4886
|
a.value
|
|
@@ -4931,7 +4931,7 @@ let ee = class extends le {
|
|
|
4931
4931
|
</div>`;
|
|
4932
4932
|
}
|
|
4933
4933
|
};
|
|
4934
|
-
ee.styles =
|
|
4934
|
+
ee.styles = C`
|
|
4935
4935
|
.card-grid {
|
|
4936
4936
|
display: flex;
|
|
4937
4937
|
flex-direction: row;
|
|
@@ -4949,21 +4949,21 @@ ee.styles = A`
|
|
|
4949
4949
|
cursor: pointer;
|
|
4950
4950
|
}
|
|
4951
4951
|
`;
|
|
4952
|
-
|
|
4952
|
+
Ii([
|
|
4953
4953
|
h()
|
|
4954
4954
|
], ee.prototype, "search", 2);
|
|
4955
|
-
|
|
4955
|
+
Ii([
|
|
4956
4956
|
h()
|
|
4957
4957
|
], ee.prototype, "_displayObjects", 2);
|
|
4958
|
-
ee =
|
|
4959
|
-
|
|
4958
|
+
ee = Ii([
|
|
4959
|
+
w("ds4go-fact-bundle-holder")
|
|
4960
4960
|
], ee);
|
|
4961
|
-
var
|
|
4962
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
4961
|
+
var za = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, Ri = (e, t, i, r) => {
|
|
4962
|
+
for (var s = r > 1 ? void 0 : r ? qa(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
4963
4963
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
4964
|
-
return r && s &&
|
|
4964
|
+
return r && s && za(t, i, s), s;
|
|
4965
4965
|
};
|
|
4966
|
-
let ie = class extends
|
|
4966
|
+
let ie = class extends ce {
|
|
4967
4967
|
constructor() {
|
|
4968
4968
|
super(...arguments), this.search = [], this._displayObjects = [];
|
|
4969
4969
|
}
|
|
@@ -4984,7 +4984,7 @@ let ie = class extends le {
|
|
|
4984
4984
|
switch (a.type) {
|
|
4985
4985
|
case "interval":
|
|
4986
4986
|
o.push(
|
|
4987
|
-
|
|
4987
|
+
ue(
|
|
4988
4988
|
r,
|
|
4989
4989
|
a.name,
|
|
4990
4990
|
a.value
|
|
@@ -4993,7 +4993,7 @@ let ie = class extends le {
|
|
|
4993
4993
|
break;
|
|
4994
4994
|
case "dateAfter":
|
|
4995
4995
|
o.push(
|
|
4996
|
-
|
|
4996
|
+
de(
|
|
4997
4997
|
r,
|
|
4998
4998
|
a.name,
|
|
4999
4999
|
a.value
|
|
@@ -5002,7 +5002,7 @@ let ie = class extends le {
|
|
|
5002
5002
|
break;
|
|
5003
5003
|
case "matchId":
|
|
5004
5004
|
o.push(
|
|
5005
|
-
|
|
5005
|
+
pe(
|
|
5006
5006
|
r,
|
|
5007
5007
|
a.name,
|
|
5008
5008
|
a.value
|
|
@@ -5011,12 +5011,12 @@ let ie = class extends le {
|
|
|
5011
5011
|
break;
|
|
5012
5012
|
case "matchType":
|
|
5013
5013
|
o.push(
|
|
5014
|
-
|
|
5014
|
+
me(r, a.value)
|
|
5015
5015
|
);
|
|
5016
5016
|
break;
|
|
5017
5017
|
case "exact":
|
|
5018
5018
|
o.push(
|
|
5019
|
-
|
|
5019
|
+
he(
|
|
5020
5020
|
r,
|
|
5021
5021
|
a.name,
|
|
5022
5022
|
a.value
|
|
@@ -5054,7 +5054,7 @@ let ie = class extends le {
|
|
|
5054
5054
|
</div>`;
|
|
5055
5055
|
}
|
|
5056
5056
|
};
|
|
5057
|
-
ie.styles =
|
|
5057
|
+
ie.styles = C`
|
|
5058
5058
|
.card-grid {
|
|
5059
5059
|
display: flex;
|
|
5060
5060
|
flex-direction: row;
|
|
@@ -5069,21 +5069,21 @@ ie.styles = A`
|
|
|
5069
5069
|
height: auto;
|
|
5070
5070
|
}
|
|
5071
5071
|
`;
|
|
5072
|
-
|
|
5072
|
+
Ri([
|
|
5073
5073
|
h()
|
|
5074
5074
|
], ie.prototype, "search", 2);
|
|
5075
|
-
|
|
5075
|
+
Ri([
|
|
5076
5076
|
h()
|
|
5077
5077
|
], ie.prototype, "_displayObjects", 2);
|
|
5078
|
-
ie =
|
|
5079
|
-
|
|
5078
|
+
ie = Ri([
|
|
5079
|
+
w("ds4go-fact-holder")
|
|
5080
5080
|
], ie);
|
|
5081
|
-
var
|
|
5082
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5081
|
+
var Ba = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ue = (e, t, i, r) => {
|
|
5082
|
+
for (var s = r > 1 ? void 0 : r ? Wa(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5083
5083
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5084
|
-
return r && s &&
|
|
5084
|
+
return r && s && Ba(t, i, s), s;
|
|
5085
5085
|
};
|
|
5086
|
-
let re = class extends
|
|
5086
|
+
let re = class extends A {
|
|
5087
5087
|
_handleRenewContract() {
|
|
5088
5088
|
this.dispatchEvent(
|
|
5089
5089
|
new CustomEvent("renew-contract", {
|
|
@@ -5157,25 +5157,25 @@ let re = class extends C {
|
|
|
5157
5157
|
</div>`;
|
|
5158
5158
|
}
|
|
5159
5159
|
};
|
|
5160
|
-
|
|
5160
|
+
Ue([
|
|
5161
5161
|
y({ attribute: !1 })
|
|
5162
5162
|
], re.prototype, "offer", 2);
|
|
5163
|
-
|
|
5163
|
+
Ue([
|
|
5164
5164
|
y({ attribute: !1 })
|
|
5165
5165
|
], re.prototype, "agreementInfo", 2);
|
|
5166
|
-
|
|
5166
|
+
Ue([
|
|
5167
5167
|
y({ attribute: !1 })
|
|
5168
5168
|
], re.prototype, "contractId", 2);
|
|
5169
|
-
re =
|
|
5170
|
-
|
|
5171
|
-
|
|
5169
|
+
re = Ue([
|
|
5170
|
+
w("catalog-modal-agreement-info"),
|
|
5171
|
+
z()
|
|
5172
5172
|
], re);
|
|
5173
|
-
var
|
|
5174
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5173
|
+
var Ga = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, ls = (e, t, i, r) => {
|
|
5174
|
+
for (var s = r > 1 ? void 0 : r ? Ha(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5175
5175
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5176
|
-
return r && s &&
|
|
5176
|
+
return r && s && Ga(t, i, s), s;
|
|
5177
5177
|
};
|
|
5178
|
-
let
|
|
5178
|
+
let ui = class extends A {
|
|
5179
5179
|
constructor() {
|
|
5180
5180
|
super(...arguments), this.policies = [];
|
|
5181
5181
|
}
|
|
@@ -5217,7 +5217,7 @@ let pi = class extends C {
|
|
|
5217
5217
|
${e["@id"] ? c`<code>${e["@id"]}</code>` : p}
|
|
5218
5218
|
</div>
|
|
5219
5219
|
<div class="policy-option-details">
|
|
5220
|
-
${
|
|
5220
|
+
${Ea(e)}
|
|
5221
5221
|
</div>
|
|
5222
5222
|
</div>`
|
|
5223
5223
|
)}
|
|
@@ -5230,21 +5230,21 @@ let pi = class extends C {
|
|
|
5230
5230
|
</div>`;
|
|
5231
5231
|
}
|
|
5232
5232
|
};
|
|
5233
|
-
|
|
5233
|
+
ls([
|
|
5234
5234
|
y({ attribute: !1 })
|
|
5235
|
-
],
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
],
|
|
5240
|
-
var
|
|
5241
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5235
|
+
], ui.prototype, "policies", 2);
|
|
5236
|
+
ui = ls([
|
|
5237
|
+
w("catalog-modal-policy-selection"),
|
|
5238
|
+
z()
|
|
5239
|
+
], ui);
|
|
5240
|
+
var Va = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, Di = (e, t, i, r) => {
|
|
5241
|
+
for (var s = r > 1 ? void 0 : r ? Ka(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5242
5242
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5243
|
-
return r && s &&
|
|
5243
|
+
return r && s && Va(t, i, s), s;
|
|
5244
5244
|
};
|
|
5245
|
-
let
|
|
5245
|
+
let Oe = class extends A {
|
|
5246
5246
|
render() {
|
|
5247
|
-
const e =
|
|
5247
|
+
const e = Sa(this.policies || []), t = this.policies || [];
|
|
5248
5248
|
return !this.policy && (!this.policies || this.policies.length === 0) ? p : c`<div
|
|
5249
5249
|
style="margin-top: 24px; padding: 16px; background: #f0f7ff; border-radius: 8px; border: 1px solid #d0e7ff;"
|
|
5250
5250
|
>
|
|
@@ -5278,22 +5278,22 @@ let Ee = class extends C {
|
|
|
5278
5278
|
</div>`;
|
|
5279
5279
|
}
|
|
5280
5280
|
};
|
|
5281
|
-
|
|
5281
|
+
Di([
|
|
5282
5282
|
y({ attribute: !1 })
|
|
5283
|
-
],
|
|
5284
|
-
|
|
5283
|
+
], Oe.prototype, "policy", 2);
|
|
5284
|
+
Di([
|
|
5285
5285
|
y({ attribute: !1 })
|
|
5286
|
-
],
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
],
|
|
5291
|
-
var
|
|
5292
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5286
|
+
], Oe.prototype, "policies", 2);
|
|
5287
|
+
Oe = Di([
|
|
5288
|
+
w("catalog-modal-policy-display"),
|
|
5289
|
+
z()
|
|
5290
|
+
], Oe);
|
|
5291
|
+
var Ya = Object.defineProperty, Ja = Object.getOwnPropertyDescriptor, $t = (e, t, i, r) => {
|
|
5292
|
+
for (var s = r > 1 ? void 0 : r ? Ja(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5293
5293
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5294
|
-
return r && s &&
|
|
5294
|
+
return r && s && Ya(t, i, s), s;
|
|
5295
5295
|
};
|
|
5296
|
-
let nt = class extends
|
|
5296
|
+
let nt = class extends A {
|
|
5297
5297
|
constructor() {
|
|
5298
5298
|
super(...arguments), this.showPolicySelection = !1, this.negotiationStatus = "idle";
|
|
5299
5299
|
}
|
|
@@ -5357,38 +5357,38 @@ let nt = class extends C {
|
|
|
5357
5357
|
}
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
5360
|
-
|
|
5360
|
+
$t([
|
|
5361
5361
|
y({ attribute: !1 })
|
|
5362
5362
|
], nt.prototype, "dspStore", 2);
|
|
5363
|
-
|
|
5363
|
+
$t([
|
|
5364
5364
|
y({ attribute: !1 })
|
|
5365
5365
|
], nt.prototype, "showPolicySelection", 2);
|
|
5366
|
-
|
|
5366
|
+
$t([
|
|
5367
5367
|
y()
|
|
5368
5368
|
], nt.prototype, "negotiationStatus", 2);
|
|
5369
|
-
|
|
5369
|
+
$t([
|
|
5370
5370
|
y()
|
|
5371
5371
|
], nt.prototype, "currentState", 2);
|
|
5372
|
-
|
|
5372
|
+
$t([
|
|
5373
5373
|
y()
|
|
5374
5374
|
], nt.prototype, "attempt", 2);
|
|
5375
|
-
|
|
5375
|
+
$t([
|
|
5376
5376
|
y()
|
|
5377
5377
|
], nt.prototype, "maxAttempts", 2);
|
|
5378
|
-
|
|
5378
|
+
$t([
|
|
5379
5379
|
y()
|
|
5380
5380
|
], nt.prototype, "negotiationError", 2);
|
|
5381
|
-
nt =
|
|
5382
|
-
|
|
5383
|
-
|
|
5381
|
+
nt = $t([
|
|
5382
|
+
w("catalog-modal-negotiation-button"),
|
|
5383
|
+
z()
|
|
5384
5384
|
], nt);
|
|
5385
|
-
const
|
|
5386
|
-
var
|
|
5387
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5385
|
+
const Za = ".contract-section{background-color:var(--color-surface-secondary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-md);display:flex;flex-direction:column;gap:var(--scale-400);margin-bottom:var(--scale-400);padding:var(--scale-500)}.contract-section .contract-header{display:flex;flex-direction:column;gap:var(--scale-200);padding-bottom:var(--scale-300)}.contract-section .contract-subsection{display:flex;flex-direction:column;gap:var(--scale-300)}.contract-section .contract-subsection .collapsible-header{align-items:center;background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-sm);cursor:pointer;display:flex;justify-content:space-between;padding:var(--scale-300) var(--scale-400);transition:all .2s ease;user-select:none}.contract-section .contract-subsection .collapsible-header:hover{background-color:var(--color-surface-tertiary);border-color:var(--color-border-primary)}.contract-section .contract-subsection .collapsible-header .chevron{color:var(--color-text-secondary);font-size:1.5rem;transition:transform .3s ease}.contract-section .contract-subsection .collapsible-header .chevron.expanded{transform:rotate(180deg)}.contract-section .contract-subsection .collapsible-content{max-height:0;opacity:0;overflow:hidden;padding:0 var(--scale-400);transition:max-height .3s ease,opacity .3s ease}.contract-section .contract-subsection .collapsible-content.expanded{max-height:2000px;opacity:1;padding-bottom:var(--scale-300);padding-top:var(--scale-300)}.contract-section .contract-subsection .collapsible-content .assets-list{display:flex;flex-direction:column;gap:var(--scale-200)}.contract-section .contract-subsection .collapsible-content .assets-list .asset-item{gap:var(--scale-100)}.contract-section .contract-subsection .collapsible-content .assets-list .asset-item,.contract-section .contract-subsection .collapsible-content .bundle-info{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-sm);display:flex;flex-direction:column;padding:var(--scale-300)}.contract-section .contract-subsection .collapsible-content .bundle-info{gap:var(--scale-200);margin-bottom:var(--scale-300)}.contract-section .contract-subsection .collapsible-content .facts-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.contract-section .contract-subsection .collapsible-content .facts-list ds4go-card-catalog{height:auto;width:354px}";
|
|
5386
|
+
var Xa = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, wt = (e, t, i, r) => {
|
|
5387
|
+
for (var s = r > 1 ? void 0 : r ? Qa(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5388
5388
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5389
|
-
return r && s &&
|
|
5389
|
+
return r && s && Xa(t, i, s), s;
|
|
5390
5390
|
};
|
|
5391
|
-
let Z = class extends
|
|
5391
|
+
let Z = class extends A {
|
|
5392
5392
|
constructor() {
|
|
5393
5393
|
super(...arguments), this.assets = [], this.bundles = [], this.policies = [], this.expandedAssets = !1, this.expandedPolicies = !1, this.expandedFacts = !1;
|
|
5394
5394
|
}
|
|
@@ -5540,41 +5540,41 @@ let Z = class extends C {
|
|
|
5540
5540
|
</div>`;
|
|
5541
5541
|
}
|
|
5542
5542
|
};
|
|
5543
|
-
Z.styles =
|
|
5544
|
-
${
|
|
5543
|
+
Z.styles = C`
|
|
5544
|
+
${M(Za)}
|
|
5545
5545
|
`;
|
|
5546
|
-
|
|
5546
|
+
wt([
|
|
5547
5547
|
h()
|
|
5548
5548
|
], Z.prototype, "agreement", 2);
|
|
5549
|
-
|
|
5549
|
+
wt([
|
|
5550
5550
|
h()
|
|
5551
5551
|
], Z.prototype, "assets", 2);
|
|
5552
|
-
|
|
5552
|
+
wt([
|
|
5553
5553
|
h()
|
|
5554
5554
|
], Z.prototype, "bundles", 2);
|
|
5555
|
-
|
|
5555
|
+
wt([
|
|
5556
5556
|
h()
|
|
5557
5557
|
], Z.prototype, "policies", 2);
|
|
5558
|
-
|
|
5558
|
+
wt([
|
|
5559
5559
|
h()
|
|
5560
5560
|
], Z.prototype, "expandedAssets", 2);
|
|
5561
|
-
|
|
5561
|
+
wt([
|
|
5562
5562
|
h()
|
|
5563
5563
|
], Z.prototype, "expandedPolicies", 2);
|
|
5564
|
-
|
|
5564
|
+
wt([
|
|
5565
5565
|
h()
|
|
5566
5566
|
], Z.prototype, "expandedFacts", 2);
|
|
5567
|
-
Z =
|
|
5568
|
-
|
|
5569
|
-
|
|
5567
|
+
Z = wt([
|
|
5568
|
+
w("ds4go-customer-contract-modal-part"),
|
|
5569
|
+
z()
|
|
5570
5570
|
], Z);
|
|
5571
|
-
const
|
|
5572
|
-
var
|
|
5573
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5571
|
+
const tn = ":host{--provider-logo-width:48px;--provider-logo-height:22px;--modal-logo-width:152px;--modal-logo-height:48px}svg{vertical-align:middle}.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 catalog-modal-negotiation-button{margin-left:auto}.modal .modal-content-wrapper{display:flex;flex:1;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 .provider-line{flex-wrap:wrap}.modal .modal-content-wrapper .provider-line,.modal .modal-content-wrapper .provider-line>div{align-items:center;display:flex;flex-direction:row}.modal .modal-content-wrapper .provider-logo{background-position:50%;background-repeat:no-repeat;background-size:contain;height:var(--provider-logo-height);width:var(--provider-logo-width)}.modal .modal-content-wrapper .default-image-grid{display:flex;flex-wrap:wrap;gap:8px}.modal .modal-content-wrapper .default-img{max-height:10vh;max-width:100%;width:max-content}.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 a{margin:0}.modal .modal-content-wrapper a:has(svg){align-items:center;display:flex;flex-direction:row;gap:var(--typography-spacing-xs)}.modal .modal-content-wrapper a:has(svg) svg{color:var(--color-icon-information);display:flex;height:20px;width:20px}.modal .modal-content-wrapper .badges{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--scale-200);padding:8px}.modal .modal-content-wrapper .badges:has(+.badges){padding-right:0}.modal .modal-content-wrapper .badges+.badges{padding-left:0}.modal .modal-content-wrapper .metadata-section{border-top:var(--border-width-sm) solid var(--color-border-primary);gap:var(--scale-400);padding-top:--scale-200}.modal .modal-content-wrapper .metadata-section tems-division[type=h2]{padding-top:var(--scale-400)}.modal .modal-content-wrapper .metadata-section .metadata-provider{gap:var(--scale-400)}.modal>.modal-content-wrapper:has(iframe,.main-img){flex-direction:row;gap:var(--scale-900)}.modal>.modal-content-wrapper:has(iframe,.main-img) .main-img,.modal>.modal-content-wrapper:has(iframe,.main-img) iframe{background-position:top;background-repeat:no-repeat;background-size:100%;min-width:50%;padding:var(--scale-600);width:50%}.modal>.modal-content-wrapper:has(iframe,.main-img) .main-img>div[style],.modal>.modal-content-wrapper:has(iframe,.main-img) iframe,.modal>.modal-content-wrapper:has(iframe,.main-img) iframe>div[style]{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-lg)}.modal>.modal-content-wrapper:has(iframe,.main-img) .logo{background-position:50%;background-repeat:no-repeat;background-size:contain;height:var(--modal-logo-height);width:var(--modal-logo-width)}.modal .modal-content-wrapper:not(:has(iframe,.main-img)){flex-direction:column}.modal .case-2,.modal .case-3,.modal .case-4{display:flex;flex-direction:column;flex-wrap:wrap;gap:var(--scale-400);width:50%}.modal .case-2 *,.modal .case-3 *,.modal .case-4 *{background-position:50%;background-repeat:no-repeat;background-size:cover}.modal .case-2 .full-width,.modal .case-3 .full-width,.modal .case-4 .full-width{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);flex-grow:1;width:100%}.modal .case-2 .img-inner-row,.modal .case-3 .img-inner-row,.modal .case-4 .img-inner-row{display:flex;flex-direction:row;flex-grow:1;gap:var(--scale-400)}.modal .case-2 .img-inner-row .double-image,.modal .case-3 .img-inner-row .double-image,.modal .case-4 .img-inner-row .double-image{display:flex;gap:var(--scale-400)}.modal .case-2 .img-inner-row .double-image>div,.modal .case-3 .img-inner-row .double-image>div,.modal .case-4 .img-inner-row .double-image>div{background-position:50%;background-repeat:no-repeat;background-size:cover;border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);flex:1;width:100%}.modal .case-3 .double-image{flex-direction:row;width:100%}.modal .case-4 .img-inner-row{display:flex;flex-direction:row;flex-grow:1;gap:var(--scale-400)}.modal .case-4 .img-inner-row .double-image{flex-direction:column;width:50%}.modal .case-4 .img-inner-row .last-img{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);flex:1;height:100%;margin-right:auto;width:50%}.modal .multiple-columns{gap:var(--scale-800)}.modal .multiple-columns>.half{gap:var(--scale-400)}.modal .multiple-columns>.half:empty{display:none}.modal .badge-row{gap:var(--scale-200)}.modal .assets-rows{gap:0}.modal .assets-rows .asset-row{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-bottom:0;color:var(--color-text-body);gap:var(--scale-300);padding:var(--scale-200);text-overflow:ellipsis}.modal .assets-rows p{font-family:var(--font-family-body);font-size:var(--typography-size-body-sm);font-weight:var(--font-weight-medium);line-height:var(--line-height-body-sm);margin:0;overflow:hidden;text-overflow:ellipsis}.modal .assets-rows .asset-row:first-of-type{border-radius:var(--border-radius-xl) var(--border-radius-xl) 0 0}.modal .assets-rows .asset-row:last-of-type{border-bottom:var(--border-width-sm) solid var(--color-border-primary);border-radius:0 0 var(--border-radius-xl) var(--border-radius-xl)}.modal .assets-rows .asset-row:only-of-type{border-bottom:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-xl)}.modal .assets-rows .asset-format{align-items:flex-end;background-color:var(--color-surface-disabled);border-radius:var(--border-radius-md);display:flex;height:48px;justify-content:flex-end;min-width:40px;padding:6px;width:40px}.modal .assets-rows .asset-format p{font-size:var(--typography-size-body-xs);font-weight:var(--font-weight-bold);text-transform:low ercase}.modal .assets-rows .flex-column{overflow:hidden}.modal .metadata-section .half:empty{display:none}.modal .policy-selection-modal{background:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);display:flex;flex-direction:column;gap:var(--scale-500);padding:var(--scale-400)}.modal .policy-selection-modal .policy-selection-header h3{font-size:var(--typography-size-heading-md);font-weight:var(--font-weight-bold);margin:0 0 var(--scale-300) 0}.modal .policy-selection-modal .policy-selection-header p{color:var(--color-text-secondary);margin:0}.modal .policy-selection-modal .policy-selection-list{display:flex;flex-direction:column;gap:var(--scale-400);max-height:400px;overflow-y:auto}.modal .policy-selection-modal .policy-option{border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-md);cursor:pointer;padding:var(--scale-400);transition:all .2s ease}.modal .policy-selection-modal .policy-option:hover{background:var(--color-surface-secondary);border-color:var(--color-primary)}.modal .policy-selection-modal .policy-option .policy-option-header{align-items:center;display:flex;flex-wrap:wrap;gap:var(--scale-200);justify-content:space-between;margin-bottom:var(--scale-300)}.modal .policy-selection-modal .policy-option .policy-option-header strong{font-weight:var(--font-weight-bold)}.modal .policy-selection-modal .policy-option .policy-option-header code{background:var(--color-surface-tertiary);border-radius:var(--border-radius-sm);font-family:monospace;font-size:.85em;padding:2px 6px;word-break:break-all}.modal .policy-selection-modal .policy-option .policy-option-details{color:var(--color-text-secondary);font-size:.9em}.modal .policy-selection-modal .policy-option .policy-option-details .policy-detail{margin:var(--scale-200) 0}.modal .policy-selection-modal .policy-option .policy-option-details .policy-detail strong{color:var(--color-text-body)}.modal .policy-selection-modal .policy-option .policy-option-details .policy-detail ul{margin:var(--scale-100) 0;padding-left:var(--scale-400)}.modal .policy-selection-modal .policy-option .policy-option-details .policy-detail ul li{margin:var(--scale-100) 0}.modal .policy-selection-modal .policy-selection-actions{display:flex;gap:var(--scale-300);justify-content:flex-end;margin-top:var(--scale-300)}@media screen and (min-width:1100px){div.modal{height:80vh;width:80vw}}";
|
|
5572
|
+
var en = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, T = (e, t, i, r) => {
|
|
5573
|
+
for (var s = r > 1 ? void 0 : r ? rn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5574
5574
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5575
|
-
return r && s &&
|
|
5575
|
+
return r && s && en(t, i, s), s;
|
|
5576
5576
|
};
|
|
5577
|
-
let I = class extends
|
|
5577
|
+
let I = class extends da {
|
|
5578
5578
|
constructor() {
|
|
5579
5579
|
super(...arguments), this.negotiationStatus = "idle", this.existingAgreementChecked = !1, this.showPolicySelection = !1;
|
|
5580
5580
|
}
|
|
@@ -5590,7 +5590,7 @@ let I = class extends na {
|
|
|
5590
5590
|
async _checkExistingAgreement() {
|
|
5591
5591
|
if (this.existingAgreementChecked) return;
|
|
5592
5592
|
this.existingAgreementChecked = !0;
|
|
5593
|
-
const e = this.object, t =
|
|
5593
|
+
const e = this.object, t = Cr(e);
|
|
5594
5594
|
t && (this.contractId = t.contractId, this.negotiationId = t.negotiationId, this.negotiationStatus = "granted", this.requestUpdate());
|
|
5595
5595
|
try {
|
|
5596
5596
|
if (this.dspStore && t?.negotiationId) {
|
|
@@ -5615,7 +5615,7 @@ let I = class extends na {
|
|
|
5615
5615
|
))
|
|
5616
5616
|
return;
|
|
5617
5617
|
const e = this.object;
|
|
5618
|
-
|
|
5618
|
+
_a(e), Aa(e), this.negotiationStatus = "idle", this.contractId = void 0, this.negotiationId = void 0, this.negotiationError = void 0, this.existingAgreementChecked = !1, this.requestUpdate();
|
|
5619
5619
|
}
|
|
5620
5620
|
/**
|
|
5621
5621
|
* Handle policy selection
|
|
@@ -5639,7 +5639,7 @@ let I = class extends na {
|
|
|
5639
5639
|
throw new Error(
|
|
5640
5640
|
"DSP connector not configured. Please provide participant-connector-uri and participant-api-key attributes."
|
|
5641
5641
|
);
|
|
5642
|
-
const e = this.dspStore, t = this.object, i = this.counterPartyAddress || t._provider?.address || "", r = t._provider?.participantId || this.counterPartyId || this.participantId, s = t["@id"] || t.id, { policies: o, defaultPolicy: a } =
|
|
5642
|
+
const e = this.dspStore, t = this.object, i = this.counterPartyAddress || t._provider?.address || "", r = t._provider?.participantId || this.counterPartyId || this.participantId, s = t["@id"] || t.id, { policies: o, defaultPolicy: a } = Sr(
|
|
5643
5643
|
t["odrl:hasPolicy"]
|
|
5644
5644
|
);
|
|
5645
5645
|
if (o && o.length > 1 && this.selectedPolicyIndex === void 0) {
|
|
@@ -5655,7 +5655,7 @@ let I = class extends na {
|
|
|
5655
5655
|
throw new Error("No dataset ID found in service object");
|
|
5656
5656
|
if (!n)
|
|
5657
5657
|
throw new Error("No policy found for dataset");
|
|
5658
|
-
if (!
|
|
5658
|
+
if (!Ca(n))
|
|
5659
5659
|
throw new Error(
|
|
5660
5660
|
"Invalid policy structure detected. Policy must be a single object, not an array."
|
|
5661
5661
|
);
|
|
@@ -5670,11 +5670,11 @@ let I = class extends na {
|
|
|
5670
5670
|
n,
|
|
5671
5671
|
r
|
|
5672
5672
|
);
|
|
5673
|
-
this.negotiationId = d, this.negotiationStatus = "pending", this.requestUpdate(),
|
|
5673
|
+
this.negotiationId = d, this.negotiationStatus = "pending", this.requestUpdate(), xa(t, d), await this._pollNegotiationStatus(e, d);
|
|
5674
5674
|
} catch (e) {
|
|
5675
5675
|
if (console.error("Contract negotiation failed:", e), this.negotiationStatus = "failed", this.negotiationError = e.message, this.negotiationId) {
|
|
5676
5676
|
const t = this.object;
|
|
5677
|
-
|
|
5677
|
+
ri(
|
|
5678
5678
|
t,
|
|
5679
5679
|
this.negotiationId,
|
|
5680
5680
|
"FAILED",
|
|
@@ -5702,12 +5702,12 @@ let I = class extends na {
|
|
|
5702
5702
|
} catch (u) {
|
|
5703
5703
|
console.error("Failed to retrieve contract agreement:", u), this.contractId = a.contractAgreementId || t;
|
|
5704
5704
|
}
|
|
5705
|
-
this.contractId && t &&
|
|
5705
|
+
this.contractId && t && wa(
|
|
5706
5706
|
n,
|
|
5707
5707
|
this.contractId,
|
|
5708
5708
|
t,
|
|
5709
5709
|
Date.now()
|
|
5710
|
-
), this.contractId &&
|
|
5710
|
+
), this.contractId && Pa(
|
|
5711
5711
|
n,
|
|
5712
5712
|
this.contractId,
|
|
5713
5713
|
t
|
|
@@ -5717,7 +5717,7 @@ let I = class extends na {
|
|
|
5717
5717
|
if (a.state === "TERMINATED") {
|
|
5718
5718
|
this.negotiationStatus = "failed", this.negotiationError = a.errorDetail || "Negotiation terminated";
|
|
5719
5719
|
const n = this.object;
|
|
5720
|
-
|
|
5720
|
+
ri(
|
|
5721
5721
|
n,
|
|
5722
5722
|
t,
|
|
5723
5723
|
"TERMINATED",
|
|
@@ -5734,7 +5734,7 @@ let I = class extends na {
|
|
|
5734
5734
|
}
|
|
5735
5735
|
this.negotiationStatus = "failed", this.negotiationError = "Negotiation timeout after 40 seconds - may still be processing on provider side";
|
|
5736
5736
|
const s = this.object;
|
|
5737
|
-
|
|
5737
|
+
ri(
|
|
5738
5738
|
s,
|
|
5739
5739
|
t,
|
|
5740
5740
|
"FAILED",
|
|
@@ -5748,7 +5748,7 @@ let I = class extends na {
|
|
|
5748
5748
|
this.dispatchEvent(new CustomEvent("close"));
|
|
5749
5749
|
}
|
|
5750
5750
|
render() {
|
|
5751
|
-
const e = this.object, { policies: t, defaultPolicy: i } =
|
|
5751
|
+
const e = this.object, { policies: t, defaultPolicy: i } = Sr(
|
|
5752
5752
|
e["odrl:hasPolicy"]
|
|
5753
5753
|
);
|
|
5754
5754
|
return c`<div class="modal">
|
|
@@ -5790,7 +5790,7 @@ let I = class extends na {
|
|
|
5790
5790
|
></catalog-modal-policy-display>
|
|
5791
5791
|
<catalog-modal-agreement-info
|
|
5792
5792
|
.offer=${e}
|
|
5793
|
-
.agreementInfo=${
|
|
5793
|
+
.agreementInfo=${Cr(
|
|
5794
5794
|
e
|
|
5795
5795
|
)}
|
|
5796
5796
|
.contractId=${this.contractId}
|
|
@@ -5803,8 +5803,8 @@ let I = class extends na {
|
|
|
5803
5803
|
</div>`;
|
|
5804
5804
|
}
|
|
5805
5805
|
};
|
|
5806
|
-
I.styles =
|
|
5807
|
-
${
|
|
5806
|
+
I.styles = C`
|
|
5807
|
+
${M(tn)}
|
|
5808
5808
|
`;
|
|
5809
5809
|
T([
|
|
5810
5810
|
y({ attribute: !1 })
|
|
@@ -5858,10 +5858,10 @@ T([
|
|
|
5858
5858
|
h()
|
|
5859
5859
|
], I.prototype, "availablePolicies", 2);
|
|
5860
5860
|
I = T([
|
|
5861
|
-
|
|
5862
|
-
|
|
5861
|
+
w("ds4go-catalog-modal"),
|
|
5862
|
+
z()
|
|
5863
5863
|
], I);
|
|
5864
|
-
const
|
|
5864
|
+
const sn = /* @__PURE__ */ Symbol();
|
|
5865
5865
|
class tt {
|
|
5866
5866
|
get taskComplete() {
|
|
5867
5867
|
return this.t || (this.i === 1 ? this.t = new Promise(((t, i) => {
|
|
@@ -5871,7 +5871,7 @@ class tt {
|
|
|
5871
5871
|
constructor(t, i, r) {
|
|
5872
5872
|
this.p = 0, this.i = 0, (this._ = t).addController(this);
|
|
5873
5873
|
const s = typeof i == "object" ? i : { task: i, args: r };
|
|
5874
|
-
this.v = s.task, this.j = s.args, this.m = s.argsEqual ??
|
|
5874
|
+
this.v = s.task, this.j = s.args, this.m = s.argsEqual ?? on, 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?.());
|
|
5875
5875
|
}
|
|
5876
5876
|
hostUpdate() {
|
|
5877
5877
|
this.autoRun === !0 && this.S();
|
|
@@ -5901,7 +5901,7 @@ class tt {
|
|
|
5901
5901
|
o = !0, r = a;
|
|
5902
5902
|
}
|
|
5903
5903
|
if (this.p === s) {
|
|
5904
|
-
if (i ===
|
|
5904
|
+
if (i === sn) this.i = 0;
|
|
5905
5905
|
else {
|
|
5906
5906
|
if (o === !1) {
|
|
5907
5907
|
try {
|
|
@@ -5948,13 +5948,13 @@ class tt {
|
|
|
5948
5948
|
}
|
|
5949
5949
|
}
|
|
5950
5950
|
}
|
|
5951
|
-
const
|
|
5952
|
-
var
|
|
5953
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
5951
|
+
const on = (e, t) => e === t || e.length === t.length && e.every(((i, r) => !De(i, t[r]))), an = ".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 ds4go-card-catalog{height:auto;width:354px}@media screen and (min-width:1100px){div.modal{height:fit-content;max-height:80vh;max-width:80vw;min-height:50vh;min-width:50vw;width:fit-content}}";
|
|
5952
|
+
var nn = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, K = (e, t, i, r) => {
|
|
5953
|
+
for (var s = r > 1 ? void 0 : r ? ln(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
5954
5954
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
5955
|
-
return r && s &&
|
|
5955
|
+
return r && s && nn(t, i, s), s;
|
|
5956
5956
|
};
|
|
5957
|
-
let
|
|
5957
|
+
let q = class extends k {
|
|
5958
5958
|
constructor() {
|
|
5959
5959
|
super({ setupSubscriptions: !1, ignoreRouter: !0 }), this.assets = [], this.policies = [], this.bundles = [], this.negotiations = [], this.providerNegotiations = [], this.consumerNegotiations = [], this.allAgreements = [], this.providerAgreements = [], this.consumerAgreements = [], this._getResource = new tt(this, {
|
|
5960
5960
|
task: async () => {
|
|
@@ -6067,12 +6067,12 @@ let z = class extends k {
|
|
|
6067
6067
|
>
|
|
6068
6068
|
<tems-division type="body-m"
|
|
6069
6069
|
><div>
|
|
6070
|
-
${e.participant_id ? l(
|
|
6070
|
+
${e.participant_id ? l(b`Participant ID: ${String(e.participant_id)}`) : ""}
|
|
6071
6071
|
</div></tems-division
|
|
6072
6072
|
>
|
|
6073
6073
|
${e.balance !== void 0 && e.balance !== null ? c`<tems-division type="body-m"
|
|
6074
6074
|
><div>
|
|
6075
|
-
${l(
|
|
6075
|
+
${l(b`Balance: ${String(e.balance)}`)}
|
|
6076
6076
|
</div></tems-division
|
|
6077
6077
|
>` : p}
|
|
6078
6078
|
${this.providerNegotiations && this.providerNegotiations.length > 0 ? c`<tems-division type="h4"
|
|
@@ -6140,48 +6140,48 @@ let z = class extends k {
|
|
|
6140
6140
|
});
|
|
6141
6141
|
}
|
|
6142
6142
|
};
|
|
6143
|
-
|
|
6144
|
-
${
|
|
6143
|
+
q.styles = C`
|
|
6144
|
+
${M(an)}
|
|
6145
6145
|
`;
|
|
6146
6146
|
K([
|
|
6147
6147
|
h()
|
|
6148
|
-
],
|
|
6148
|
+
], q.prototype, "dspConnector", 2);
|
|
6149
6149
|
K([
|
|
6150
6150
|
h()
|
|
6151
|
-
],
|
|
6151
|
+
], q.prototype, "assets", 2);
|
|
6152
6152
|
K([
|
|
6153
6153
|
h()
|
|
6154
|
-
],
|
|
6154
|
+
], q.prototype, "policies", 2);
|
|
6155
6155
|
K([
|
|
6156
6156
|
h()
|
|
6157
|
-
],
|
|
6157
|
+
], q.prototype, "bundles", 2);
|
|
6158
6158
|
K([
|
|
6159
6159
|
h()
|
|
6160
|
-
],
|
|
6160
|
+
], q.prototype, "negotiations", 2);
|
|
6161
6161
|
K([
|
|
6162
6162
|
h()
|
|
6163
|
-
],
|
|
6163
|
+
], q.prototype, "providerNegotiations", 2);
|
|
6164
6164
|
K([
|
|
6165
6165
|
h()
|
|
6166
|
-
],
|
|
6166
|
+
], q.prototype, "consumerNegotiations", 2);
|
|
6167
6167
|
K([
|
|
6168
6168
|
h()
|
|
6169
|
-
],
|
|
6169
|
+
], q.prototype, "allAgreements", 2);
|
|
6170
6170
|
K([
|
|
6171
6171
|
h()
|
|
6172
|
-
],
|
|
6172
|
+
], q.prototype, "providerAgreements", 2);
|
|
6173
6173
|
K([
|
|
6174
6174
|
h()
|
|
6175
|
-
],
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
],
|
|
6180
|
-
const
|
|
6181
|
-
var
|
|
6182
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6175
|
+
], q.prototype, "consumerAgreements", 2);
|
|
6176
|
+
q = K([
|
|
6177
|
+
w("ds4go-customer-modal"),
|
|
6178
|
+
z()
|
|
6179
|
+
], q);
|
|
6180
|
+
const cn = ".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 ds4go-card-catalog{height:auto;width:354px}@media screen and (min-width:1100px){div.modal{height:fit-content;max-height:80vh;max-width:80vw;min-height:50vh;min-width:50vw;width:fit-content}}";
|
|
6181
|
+
var dn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, Dt = (e, t, i, r) => {
|
|
6182
|
+
for (var s = r > 1 ? void 0 : r ? pn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6183
6183
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6184
|
-
return r && s &&
|
|
6184
|
+
return r && s && dn(t, i, s), s;
|
|
6185
6185
|
};
|
|
6186
6186
|
let lt = class extends k {
|
|
6187
6187
|
constructor() {
|
|
@@ -6316,8 +6316,8 @@ let lt = class extends k {
|
|
|
6316
6316
|
});
|
|
6317
6317
|
}
|
|
6318
6318
|
};
|
|
6319
|
-
lt.styles =
|
|
6320
|
-
${
|
|
6319
|
+
lt.styles = C`
|
|
6320
|
+
${M(cn)}
|
|
6321
6321
|
`;
|
|
6322
6322
|
Dt([
|
|
6323
6323
|
h()
|
|
@@ -6338,20 +6338,20 @@ Dt([
|
|
|
6338
6338
|
h()
|
|
6339
6339
|
], lt.prototype, "showTechnicalInfo", 2);
|
|
6340
6340
|
lt = Dt([
|
|
6341
|
-
|
|
6342
|
-
|
|
6341
|
+
w("ds4go-fact-bundle-modal"),
|
|
6342
|
+
z()
|
|
6343
6343
|
], lt);
|
|
6344
|
-
const
|
|
6345
|
-
var
|
|
6346
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6344
|
+
const un = ".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 .cover-image{border-radius:var(--border-radius-md);height:300px;margin-bottom:var(--scale-200);overflow:hidden;width:100%}.modal .modal-content-wrapper .cover-image img{display:block;height:100%;object-fit:cover;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 tems-division[type=h3]{margin-bottom:var(--scale-500);margin-top:var(--scale-300)}.modal .modal-content-wrapper tems-division[type=h4]{margin-bottom:var(--scale-200);margin-top:var(--scale-500)}.modal .modal-content-wrapper .author-section{margin-bottom:var(--scale-200);margin-top:var(--scale-200);text-align:center;width:100%}.modal .modal-content-wrapper .author-section div{display:block;height:auto;overflow:hidden;text-overflow:ellipsis}.modal .modal-content-wrapper .categories-list{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--scale-200)}.modal .modal-content-wrapper .medias-gallery{display:grid;gap:var(--scale-300);grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.modal .modal-content-wrapper .medias-gallery .media-item{aspect-ratio:1;border-radius:var(--border-radius-md);cursor:pointer;overflow:hidden;transition:transform var(--transition-duration-fast) ease,box-shadow var(--transition-duration-fast) ease}.modal .modal-content-wrapper .medias-gallery .media-item:hover{box-shadow:var(--shadow-md);transform:scale(1.05)}.modal .modal-content-wrapper .medias-gallery .media-item img{display:block;height:100%;object-fit:cover;width:100%}@media screen and (min-width:1100px){div.modal{height:fit-content;max-height:80vh;max-width:80vw;min-height:50vh;min-width:50vw;width:fit-content}div.modal .modal-content-wrapper .cover-image{height:400px}div.modal .modal-content-wrapper .medias-gallery{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}";
|
|
6345
|
+
var hn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, Ti = (e, t, i, r) => {
|
|
6346
|
+
for (var s = r > 1 ? void 0 : r ? mn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6347
6347
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6348
|
-
return r && s &&
|
|
6348
|
+
return r && s && hn(t, i, s), s;
|
|
6349
6349
|
};
|
|
6350
6350
|
let se = class extends k {
|
|
6351
6351
|
constructor() {
|
|
6352
6352
|
super({ setupSubscriptions: !1, ignoreRouter: !0 }), this.cherryPickedProperties = [
|
|
6353
6353
|
{ key: "created_at", value: "created_at" },
|
|
6354
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
6354
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
6355
6355
|
{ key: "name", value: "name" },
|
|
6356
6356
|
{ key: "description", value: "description" },
|
|
6357
6357
|
{ key: "author", value: "author" },
|
|
@@ -6426,7 +6426,7 @@ You will be charged 5€ on your account.`
|
|
|
6426
6426
|
complete: (e) => {
|
|
6427
6427
|
if (!e)
|
|
6428
6428
|
return this._closeModal(), p;
|
|
6429
|
-
const t =
|
|
6429
|
+
const t = L(e.created_at, {
|
|
6430
6430
|
year: "numeric",
|
|
6431
6431
|
month: "long",
|
|
6432
6432
|
day: "numeric",
|
|
@@ -6512,26 +6512,26 @@ You will be charged 5€ on your account.`
|
|
|
6512
6512
|
});
|
|
6513
6513
|
}
|
|
6514
6514
|
};
|
|
6515
|
-
se.styles =
|
|
6516
|
-
${
|
|
6515
|
+
se.styles = C`
|
|
6516
|
+
${M(un)}
|
|
6517
6517
|
`;
|
|
6518
|
-
|
|
6518
|
+
Ti([
|
|
6519
6519
|
h()
|
|
6520
6520
|
], se.prototype, "customer", 2);
|
|
6521
|
-
|
|
6521
|
+
Ti([
|
|
6522
6522
|
h()
|
|
6523
6523
|
], se.prototype, "alreadyGenerated", 2);
|
|
6524
|
-
se =
|
|
6525
|
-
|
|
6526
|
-
|
|
6524
|
+
se = Ti([
|
|
6525
|
+
w("ds4go-fact-modal"),
|
|
6526
|
+
z()
|
|
6527
6527
|
], se);
|
|
6528
|
-
const
|
|
6529
|
-
var
|
|
6530
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6528
|
+
const fn = ".contract-section{background-color:var(--color-surface-secondary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-md);display:flex;flex-direction:column;gap:var(--scale-400);margin-bottom:var(--scale-400);padding:var(--scale-500)}.contract-section .contract-header{border-bottom:var(--border-width-sm) solid var(--color-border-secondary);display:flex;flex-direction:column;gap:var(--scale-200);padding-bottom:var(--scale-300)}.contract-section .contract-subsection{display:flex;flex-direction:column;gap:var(--scale-300)}.contract-section .contract-subsection .collapsible-header{align-items:center;background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-sm);cursor:pointer;display:flex;justify-content:space-between;padding:var(--scale-300) var(--scale-400);transition:all .2s ease;user-select:none}.contract-section .contract-subsection .collapsible-header:hover{background-color:var(--color-surface-tertiary);border-color:var(--color-border-primary)}.contract-section .contract-subsection .collapsible-header .chevron{color:var(--color-text-secondary);font-size:1.5rem;transition:transform .3s ease}.contract-section .contract-subsection .collapsible-header .chevron.expanded{transform:rotate(180deg)}.contract-section .contract-subsection .collapsible-content{max-height:0;opacity:0;overflow:hidden;padding:0 var(--scale-400);transition:max-height .3s ease,opacity .3s ease}.contract-section .contract-subsection .collapsible-content.expanded{max-height:2000px;opacity:1;padding-bottom:var(--scale-300);padding-top:var(--scale-300)}.contract-section .contract-subsection .assets-list{display:flex;flex-direction:column;gap:var(--scale-200)}.contract-section .contract-subsection .assets-list .asset-item{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-sm);display:flex;flex-direction:column;gap:var(--scale-100);padding:var(--scale-300)}";
|
|
6529
|
+
var gn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, zt = (e, t, i, r) => {
|
|
6530
|
+
for (var s = r > 1 ? void 0 : r ? yn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6531
6531
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6532
|
-
return r && s &&
|
|
6532
|
+
return r && s && gn(t, i, s), s;
|
|
6533
6533
|
};
|
|
6534
|
-
let mt = class extends
|
|
6534
|
+
let mt = class extends A {
|
|
6535
6535
|
constructor() {
|
|
6536
6536
|
super(...arguments), this.assets = [], this.policies = [], this.expandedAssets = !1, this.expandedPolicies = !1;
|
|
6537
6537
|
}
|
|
@@ -6614,8 +6614,8 @@ let mt = class extends C {
|
|
|
6614
6614
|
</div>`;
|
|
6615
6615
|
}
|
|
6616
6616
|
};
|
|
6617
|
-
mt.styles =
|
|
6618
|
-
${
|
|
6617
|
+
mt.styles = C`
|
|
6618
|
+
${M(fn)}
|
|
6619
6619
|
`;
|
|
6620
6620
|
zt([
|
|
6621
6621
|
h()
|
|
@@ -6633,16 +6633,16 @@ zt([
|
|
|
6633
6633
|
h()
|
|
6634
6634
|
], mt.prototype, "expandedPolicies", 2);
|
|
6635
6635
|
mt = zt([
|
|
6636
|
-
|
|
6637
|
-
|
|
6636
|
+
w("ds4go-contract-modal-part"),
|
|
6637
|
+
z()
|
|
6638
6638
|
], mt);
|
|
6639
|
-
const
|
|
6640
|
-
var
|
|
6641
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6639
|
+
const vn = ".card-grid{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.card-grid-vertical{justify-content:stretch}.card-grid-vertical ds4go-card-catalog{height:auto;width:354px}";
|
|
6640
|
+
var bn = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, Le = (e, t, i, r) => {
|
|
6641
|
+
for (var s = r > 1 ? void 0 : r ? $n(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6642
6642
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6643
|
-
return r && s &&
|
|
6643
|
+
return r && s && bn(t, i, s), s;
|
|
6644
6644
|
};
|
|
6645
|
-
let Ut = class extends
|
|
6645
|
+
let Ut = class extends A {
|
|
6646
6646
|
constructor() {
|
|
6647
6647
|
super(...arguments), this.negotiations = [], this.assets = [], this.type = "PROVIDER";
|
|
6648
6648
|
}
|
|
@@ -6705,29 +6705,29 @@ let Ut = class extends C {
|
|
|
6705
6705
|
</div>`;
|
|
6706
6706
|
}
|
|
6707
6707
|
};
|
|
6708
|
-
Ut.styles =
|
|
6709
|
-
${
|
|
6708
|
+
Ut.styles = C`
|
|
6709
|
+
${M(vn)}
|
|
6710
6710
|
`;
|
|
6711
|
-
|
|
6711
|
+
Le([
|
|
6712
6712
|
h()
|
|
6713
6713
|
], Ut.prototype, "negotiations", 2);
|
|
6714
|
-
|
|
6714
|
+
Le([
|
|
6715
6715
|
h()
|
|
6716
6716
|
], Ut.prototype, "assets", 2);
|
|
6717
|
-
|
|
6717
|
+
Le([
|
|
6718
6718
|
h()
|
|
6719
6719
|
], Ut.prototype, "type", 2);
|
|
6720
|
-
Ut =
|
|
6721
|
-
|
|
6722
|
-
|
|
6720
|
+
Ut = Le([
|
|
6721
|
+
w("ds4go-negotiations-modal-part"),
|
|
6722
|
+
z()
|
|
6723
6723
|
], Ut);
|
|
6724
|
-
const
|
|
6725
|
-
var
|
|
6726
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6724
|
+
const wn = ".policy-card{background-color:var(--color-surface-secondary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-md);display:flex;flex-direction:column;gap:var(--scale-400);margin-bottom:var(--scale-400);padding:var(--scale-500)}.policy-card .policy-header{border-bottom:var(--border-width-sm) solid var(--color-border-secondary);display:flex;flex-direction:column;gap:var(--scale-200);padding-bottom:var(--scale-300)}.policy-card .policy-section{display:flex;flex-direction:column;gap:var(--scale-300)}.policy-card .policy-section .policy-section-title{color:var(--color-text-heading);font-weight:var(--font-weight-semibold)}.policy-card .policy-section .policy-item{background-color:var(--color-surface-primary);border:var(--border-width-sm) solid var(--color-border-primary);border-radius:var(--border-radius-sm);display:flex;flex-direction:column;gap:var(--scale-200);padding:var(--scale-300)}.policy-card .policy-section .policy-item .constraints-list{border-left:var(--border-width-sm) solid var(--color-border-secondary);display:flex;flex-direction:column;gap:var(--scale-100);margin-top:var(--scale-200);padding-left:var(--scale-400)}.policy-card .policy-section .policy-item .constraints-list .constraint-item{background-color:var(--color-surface-secondary);border:var(--border-width-sm) solid var(--color-border-secondary);border-radius:var(--border-radius-xs);display:flex;flex-direction:column;gap:var(--scale-100);padding:var(--scale-200)}";
|
|
6725
|
+
var _n = Object.defineProperty, xn = Object.getOwnPropertyDescriptor, cs = (e, t, i, r) => {
|
|
6726
|
+
for (var s = r > 1 ? void 0 : r ? xn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6727
6727
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6728
|
-
return r && s &&
|
|
6728
|
+
return r && s && _n(t, i, s), s;
|
|
6729
6729
|
};
|
|
6730
|
-
let
|
|
6730
|
+
let Ie = class extends A {
|
|
6731
6731
|
_formatAction(e) {
|
|
6732
6732
|
return Array.isArray(e) ? e.map((t) => t["@id"] ? t["@id"] : t).join(", ") : typeof e == "object" ? e["@id"] : e;
|
|
6733
6733
|
}
|
|
@@ -6832,19 +6832,19 @@ let Oe = class extends C {
|
|
|
6832
6832
|
</div>`;
|
|
6833
6833
|
}
|
|
6834
6834
|
};
|
|
6835
|
-
|
|
6836
|
-
${
|
|
6835
|
+
Ie.styles = C`
|
|
6836
|
+
${M(wn)}
|
|
6837
6837
|
`;
|
|
6838
|
-
|
|
6838
|
+
cs([
|
|
6839
6839
|
h()
|
|
6840
|
-
],
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
],
|
|
6845
|
-
class
|
|
6840
|
+
], Ie.prototype, "policy", 2);
|
|
6841
|
+
Ie = cs([
|
|
6842
|
+
w("ds4go-odrl-policy-modal-part"),
|
|
6843
|
+
z()
|
|
6844
|
+
], Ie);
|
|
6845
|
+
class hi extends Mr {
|
|
6846
6846
|
constructor(t) {
|
|
6847
|
-
if (super(t), this.it = p, t.type !==
|
|
6847
|
+
if (super(t), this.it = p, t.type !== Fr.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
6848
6848
|
}
|
|
6849
6849
|
render(t) {
|
|
6850
6850
|
if (t === p || t == null) return this._t = void 0, this.it = t;
|
|
@@ -6856,14 +6856,14 @@ class ui extends Fr {
|
|
|
6856
6856
|
return i.raw = i, this._t = { _$litType$: this.constructor.resultType, strings: i, values: [] };
|
|
6857
6857
|
}
|
|
6858
6858
|
}
|
|
6859
|
-
|
|
6860
|
-
const
|
|
6861
|
-
var
|
|
6862
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
6859
|
+
hi.directiveName = "unsafeHTML", hi.resultType = 1;
|
|
6860
|
+
const Pn = Nr(hi);
|
|
6861
|
+
var An = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, ji = (e, t, i, r) => {
|
|
6862
|
+
for (var s = r > 1 ? void 0 : r ? Cn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
6863
6863
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
6864
|
-
return r && s &&
|
|
6864
|
+
return r && s && An(t, i, s), s;
|
|
6865
6865
|
};
|
|
6866
|
-
let oe = class extends
|
|
6866
|
+
let oe = class extends A {
|
|
6867
6867
|
constructor() {
|
|
6868
6868
|
super(...arguments), this.compact = !1;
|
|
6869
6869
|
}
|
|
@@ -6871,10 +6871,10 @@ let oe = class extends C {
|
|
|
6871
6871
|
if (!this.policy)
|
|
6872
6872
|
return c`<div class="no-policy">No policy available</div>`;
|
|
6873
6873
|
try {
|
|
6874
|
-
const t = new
|
|
6874
|
+
const t = new pa(this.policy).renderAsHtml();
|
|
6875
6875
|
return c`
|
|
6876
6876
|
<div class="${this.compact ? "compact" : ""}">
|
|
6877
|
-
${
|
|
6877
|
+
${Pn(t)}
|
|
6878
6878
|
</div>
|
|
6879
6879
|
`;
|
|
6880
6880
|
} catch (e) {
|
|
@@ -6886,7 +6886,7 @@ let oe = class extends C {
|
|
|
6886
6886
|
}
|
|
6887
6887
|
}
|
|
6888
6888
|
};
|
|
6889
|
-
oe.styles =
|
|
6889
|
+
oe.styles = C`
|
|
6890
6890
|
:host {
|
|
6891
6891
|
display: block;
|
|
6892
6892
|
font-family: system-ui, -apple-system, sans-serif;
|
|
@@ -7003,22 +7003,192 @@ oe.styles = A`
|
|
|
7003
7003
|
font-size: 0.9em;
|
|
7004
7004
|
}
|
|
7005
7005
|
`;
|
|
7006
|
-
|
|
7006
|
+
ji([
|
|
7007
7007
|
y({ type: Object })
|
|
7008
7008
|
], oe.prototype, "policy", 2);
|
|
7009
|
-
|
|
7009
|
+
ji([
|
|
7010
7010
|
y({ type: Boolean })
|
|
7011
7011
|
], oe.prototype, "compact", 2);
|
|
7012
|
-
oe =
|
|
7013
|
-
|
|
7012
|
+
oe = ji([
|
|
7013
|
+
w("odrl-policy-viewer")
|
|
7014
7014
|
], oe);
|
|
7015
|
-
const
|
|
7016
|
-
var
|
|
7017
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
7015
|
+
const ds = "div.select{align-items:flex-start;display:flex;flex-direction:column;gap:var(--scale-200);width:100%}div:has(>tems-textarea){margin-bottom:-2px}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)}.flex{display:flex;gap:var(--scale-200);width:100%}.flex.flex-column{flex-direction:column}.flex.align-right{justify-content:flex-end}.flex .flex-1{flex:1}.spacer-auto+.spacer-auto,.spacer-top{margin-top:var(--scale-400)}tems-input+tems-input{margin-top:var(--scale-200)}fieldset+fieldset{margin-top:var(--scale-400)}fieldset{margin-bottom:var(--scale-400)}fieldset>fieldset{margin-top:var(--scale-400)}";
|
|
7016
|
+
var Sn = Object.defineProperty, En = Object.getOwnPropertyDescriptor, ki = (e, t, i, r) => {
|
|
7017
|
+
for (var s = r > 1 ? void 0 : r ? En(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
7018
7018
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
7019
|
-
return r && s &&
|
|
7019
|
+
return r && s && Sn(t, i, s), s;
|
|
7020
|
+
};
|
|
7021
|
+
let ae = class extends A {
|
|
7022
|
+
_emitPolicyChange() {
|
|
7023
|
+
this.policy && this.dispatchEvent(
|
|
7024
|
+
new CustomEvent("policy-changed", {
|
|
7025
|
+
detail: this.policy,
|
|
7026
|
+
bubbles: !0,
|
|
7027
|
+
composed: !0
|
|
7028
|
+
})
|
|
7029
|
+
);
|
|
7030
|
+
}
|
|
7031
|
+
_updateConstraintRightOperand(e, t, i, r, s) {
|
|
7032
|
+
if (this.policy) {
|
|
7033
|
+
if (e === "permission" && s !== void 0) {
|
|
7034
|
+
const o = [...this.policy.policy.permission || []], a = [...o[t].duty || []], n = [...a[s].constraint || []];
|
|
7035
|
+
n[i] = {
|
|
7036
|
+
...n[i],
|
|
7037
|
+
rightOperand: r
|
|
7038
|
+
}, a[s] = { ...a[s], constraint: n }, o[t] = { ...o[t], duty: a }, this.policy = {
|
|
7039
|
+
...this.policy,
|
|
7040
|
+
policy: {
|
|
7041
|
+
...this.policy.policy,
|
|
7042
|
+
permission: o
|
|
7043
|
+
}
|
|
7044
|
+
};
|
|
7045
|
+
} else {
|
|
7046
|
+
const o = [...this.policy.policy[e] || []], a = [...o[t].constraint || []];
|
|
7047
|
+
a[i] = {
|
|
7048
|
+
...a[i],
|
|
7049
|
+
rightOperand: r
|
|
7050
|
+
}, o[t] = { ...o[t], constraint: a }, this.policy = {
|
|
7051
|
+
...this.policy,
|
|
7052
|
+
policy: {
|
|
7053
|
+
...this.policy.policy,
|
|
7054
|
+
[e]: o
|
|
7055
|
+
}
|
|
7056
|
+
};
|
|
7057
|
+
}
|
|
7058
|
+
this._emitPolicyChange();
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
7061
|
+
_getConstraintLabel(e, t) {
|
|
7062
|
+
return `${e} ${t}`;
|
|
7063
|
+
}
|
|
7064
|
+
_renderConstraint(e, t, i, r, s) {
|
|
7065
|
+
const o = this._getConstraintLabel(
|
|
7066
|
+
e.leftOperand || "",
|
|
7067
|
+
e.operator || "eq"
|
|
7068
|
+
);
|
|
7069
|
+
return c`<div class="flex flex-column spacer-auto">
|
|
7070
|
+
<tems-input
|
|
7071
|
+
type="text"
|
|
7072
|
+
label="${l(b`${o}`)}"
|
|
7073
|
+
.value=${String(e.rightOperand || "")}
|
|
7074
|
+
@change=${(a) => {
|
|
7075
|
+
this._updateConstraintRightOperand(
|
|
7076
|
+
t,
|
|
7077
|
+
i,
|
|
7078
|
+
r,
|
|
7079
|
+
a.detail.value,
|
|
7080
|
+
s
|
|
7081
|
+
);
|
|
7082
|
+
}}
|
|
7083
|
+
></tems-input>
|
|
7084
|
+
</div>`;
|
|
7085
|
+
}
|
|
7086
|
+
_renderConstraintsFromItems(e, t) {
|
|
7087
|
+
return !e || e.length === 0 ? p : c`${e.map((i, r) => c`${i.constraint && i.constraint.length > 0 ? c`${i.constraint.map(
|
|
7088
|
+
(s, o) => this._renderConstraint(
|
|
7089
|
+
s,
|
|
7090
|
+
t,
|
|
7091
|
+
r,
|
|
7092
|
+
o
|
|
7093
|
+
)
|
|
7094
|
+
)}` : p}
|
|
7095
|
+
${t === "permission" && i.duty ? c`${i.duty?.map((s, o) => c`${(s.constraint || []).map(
|
|
7096
|
+
(a, n) => this._renderConstraint(
|
|
7097
|
+
a,
|
|
7098
|
+
t,
|
|
7099
|
+
r,
|
|
7100
|
+
n,
|
|
7101
|
+
o
|
|
7102
|
+
)
|
|
7103
|
+
)}`)}` : p}`)}`;
|
|
7104
|
+
}
|
|
7105
|
+
_cancelCustomization() {
|
|
7106
|
+
this.dispatchEvent(
|
|
7107
|
+
new CustomEvent("cancel-policy-customization", {
|
|
7108
|
+
bubbles: !0,
|
|
7109
|
+
composed: !0
|
|
7110
|
+
})
|
|
7111
|
+
);
|
|
7112
|
+
}
|
|
7113
|
+
_resetPolicy() {
|
|
7114
|
+
if (!this.template) return;
|
|
7115
|
+
const e = this.template.id;
|
|
7116
|
+
this.policy = {
|
|
7117
|
+
"@id": e,
|
|
7118
|
+
policy: {
|
|
7119
|
+
...this.template.policy,
|
|
7120
|
+
"@type": "Set"
|
|
7121
|
+
}
|
|
7122
|
+
}, this._emitPolicyChange();
|
|
7123
|
+
}
|
|
7124
|
+
render() {
|
|
7125
|
+
if (!this.template)
|
|
7126
|
+
return c`<p>${l("No policy template provided")}</p>`;
|
|
7127
|
+
this.policy || (this.policy = {
|
|
7128
|
+
"@id": this.template.id,
|
|
7129
|
+
policy: {
|
|
7130
|
+
...this.template.policy,
|
|
7131
|
+
"@type": "Set"
|
|
7132
|
+
}
|
|
7133
|
+
});
|
|
7134
|
+
const e = this.policy.policy.permission && this.policy.policy.permission.some((t) => t.constraint?.length) || this.policy.policy.prohibition && this.policy.policy.prohibition.some((t) => t.constraint?.length) || this.policy.policy.obligation && this.policy.policy.obligation.some((t) => t.constraint?.length);
|
|
7135
|
+
return c`<form @submit=${(t) => t.preventDefault()}>
|
|
7136
|
+
<div class="flex">
|
|
7137
|
+
<tems-label
|
|
7138
|
+
class="flex-1"
|
|
7139
|
+
label=${l(b`Custom ${this.template.name} policy`)}
|
|
7140
|
+
></tems-label>
|
|
7141
|
+
<tems-button
|
|
7142
|
+
type="outline-gray"
|
|
7143
|
+
label=${l("Cancel policy customization")}
|
|
7144
|
+
size="sm"
|
|
7145
|
+
@click=${this._cancelCustomization}
|
|
7146
|
+
></tems-button>
|
|
7147
|
+
</div>
|
|
7148
|
+
|
|
7149
|
+
${e ? c`
|
|
7150
|
+
<fieldset>
|
|
7151
|
+
<legend>${l("Policy Customization")}</legend>
|
|
7152
|
+
${this._renderConstraintsFromItems(
|
|
7153
|
+
this.policy.policy.permission,
|
|
7154
|
+
"permission"
|
|
7155
|
+
)}
|
|
7156
|
+
${this._renderConstraintsFromItems(
|
|
7157
|
+
this.policy.policy.prohibition,
|
|
7158
|
+
"prohibition"
|
|
7159
|
+
)}
|
|
7160
|
+
${this._renderConstraintsFromItems(
|
|
7161
|
+
this.policy.policy.obligation,
|
|
7162
|
+
"obligation"
|
|
7163
|
+
)}
|
|
7164
|
+
</fieldset>
|
|
7165
|
+
` : c`<p>${l("No constraints available to edit")}</p>`}
|
|
7166
|
+
|
|
7167
|
+
<div class="flex align-right spacer-top">
|
|
7168
|
+
<tems-button type="outline-gray" size="sm" @click=${this._resetPolicy}>
|
|
7169
|
+
${l(b`Reset to ${this.template.name} default`)}
|
|
7170
|
+
</tems-button>
|
|
7171
|
+
</div>
|
|
7172
|
+
</form>`;
|
|
7173
|
+
}
|
|
7020
7174
|
};
|
|
7021
|
-
|
|
7175
|
+
ae.styles = [M(ds)];
|
|
7176
|
+
ki([
|
|
7177
|
+
y({ attribute: !1 })
|
|
7178
|
+
], ae.prototype, "template", 2);
|
|
7179
|
+
ki([
|
|
7180
|
+
y({ attribute: !1 })
|
|
7181
|
+
], ae.prototype, "policy", 2);
|
|
7182
|
+
ae = ki([
|
|
7183
|
+
w("policy-composer-simple"),
|
|
7184
|
+
z()
|
|
7185
|
+
], ae);
|
|
7186
|
+
var On = Object.defineProperty, In = Object.getOwnPropertyDescriptor, Fi = (e, t, i, r) => {
|
|
7187
|
+
for (var s = r > 1 ? void 0 : r ? In(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
7188
|
+
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
7189
|
+
return r && s && On(t, i, s), s;
|
|
7190
|
+
};
|
|
7191
|
+
let ne = class extends A {
|
|
7022
7192
|
_emitPolicyChange() {
|
|
7023
7193
|
this.policy && this.dispatchEvent(
|
|
7024
7194
|
new CustomEvent("policy-changed", {
|
|
@@ -7191,7 +7361,7 @@ let ae = class extends C {
|
|
|
7191
7361
|
}
|
|
7192
7362
|
_renderPermission(e, t) {
|
|
7193
7363
|
return c`<fieldset>
|
|
7194
|
-
<legend>${l(
|
|
7364
|
+
<legend>${l(b`Permission ${t + 1}`)}</legend>
|
|
7195
7365
|
<tems-input
|
|
7196
7366
|
type="text"
|
|
7197
7367
|
label="${l("Action")}"
|
|
@@ -7482,7 +7652,7 @@ let ae = class extends C {
|
|
|
7482
7652
|
}
|
|
7483
7653
|
_renderProhibition(e, t) {
|
|
7484
7654
|
return c`<fieldset>
|
|
7485
|
-
<legend>${l(
|
|
7655
|
+
<legend>${l(b`Prohibition ${t + 1}`)}</legend>
|
|
7486
7656
|
<tems-input
|
|
7487
7657
|
type="text"
|
|
7488
7658
|
label="${l("Action")}"
|
|
@@ -7599,7 +7769,7 @@ let ae = class extends C {
|
|
|
7599
7769
|
}
|
|
7600
7770
|
_renderObligation(e, t) {
|
|
7601
7771
|
return c`<fieldset>
|
|
7602
|
-
<legend>${l(
|
|
7772
|
+
<legend>${l(b`Obligation ${t + 1}`)}</legend>
|
|
7603
7773
|
<tems-input
|
|
7604
7774
|
type="text"
|
|
7605
7775
|
label="${l("Action")}"
|
|
@@ -7715,7 +7885,7 @@ let ae = class extends C {
|
|
|
7715
7885
|
<div class="flex">
|
|
7716
7886
|
<tems-label
|
|
7717
7887
|
class="flex-1"
|
|
7718
|
-
label=${l(
|
|
7888
|
+
label=${l(b`Custom ${this.template.name} policy`)}
|
|
7719
7889
|
></tems-label>
|
|
7720
7890
|
<tems-button
|
|
7721
7891
|
type="outline-gray"
|
|
@@ -7796,33 +7966,33 @@ let ae = class extends C {
|
|
|
7796
7966
|
</fieldset>
|
|
7797
7967
|
<div class="flex align-right spacer-top">
|
|
7798
7968
|
<tems-button type="outline-gray" size="sm" @click=${this._resetPolicy}>
|
|
7799
|
-
${l(
|
|
7969
|
+
${l(b`Reset to ${this.template.name} default`)}
|
|
7800
7970
|
</tems-button>
|
|
7801
7971
|
</div>
|
|
7802
7972
|
</form>`) : c`<p>${l("No policy template provided")}</p>`;
|
|
7803
7973
|
}
|
|
7804
7974
|
};
|
|
7805
|
-
|
|
7806
|
-
|
|
7975
|
+
ne.styles = [M(ds)];
|
|
7976
|
+
Fi([
|
|
7807
7977
|
y({ attribute: !1 })
|
|
7808
|
-
],
|
|
7809
|
-
|
|
7978
|
+
], ne.prototype, "template", 2);
|
|
7979
|
+
Fi([
|
|
7810
7980
|
y({ attribute: !1 })
|
|
7811
|
-
],
|
|
7812
|
-
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
],
|
|
7816
|
-
var
|
|
7817
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
7981
|
+
], ne.prototype, "policy", 2);
|
|
7982
|
+
ne = Fi([
|
|
7983
|
+
w("policy-composer"),
|
|
7984
|
+
z()
|
|
7985
|
+
], ne);
|
|
7986
|
+
var Rn = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, qt = (e, t, i, r) => {
|
|
7987
|
+
for (var s = r > 1 ? void 0 : r ? Dn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
7818
7988
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
7819
|
-
return r && s &&
|
|
7989
|
+
return r && s && Rn(t, i, s), s;
|
|
7820
7990
|
};
|
|
7821
7991
|
let ft = class extends k {
|
|
7822
7992
|
constructor() {
|
|
7823
7993
|
super(...arguments), this.objects = [], this.header = "DS4GO Customer List", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
|
|
7824
|
-
{ key: "created_at", value: "created_at", cast:
|
|
7825
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
7994
|
+
{ key: "created_at", value: "created_at", cast: L },
|
|
7995
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
7826
7996
|
{ key: "name", value: "name" },
|
|
7827
7997
|
{ key: "participant_id", value: "participant_id" },
|
|
7828
7998
|
{
|
|
@@ -7854,7 +8024,7 @@ let ft = class extends k {
|
|
|
7854
8024
|
});
|
|
7855
8025
|
}
|
|
7856
8026
|
async _afterAttach() {
|
|
7857
|
-
return
|
|
8027
|
+
return je(this, {
|
|
7858
8028
|
keywords: ["customers"]
|
|
7859
8029
|
}), Promise.resolve();
|
|
7860
8030
|
}
|
|
@@ -7919,7 +8089,7 @@ let ft = class extends k {
|
|
|
7919
8089
|
});
|
|
7920
8090
|
}
|
|
7921
8091
|
};
|
|
7922
|
-
ft.styles =
|
|
8092
|
+
ft.styles = C`
|
|
7923
8093
|
.modal {
|
|
7924
8094
|
position: fixed;
|
|
7925
8095
|
top: 0;
|
|
@@ -7949,12 +8119,12 @@ qt([
|
|
|
7949
8119
|
h()
|
|
7950
8120
|
], ft.prototype, "bundleCreationComponent", 2);
|
|
7951
8121
|
ft = qt([
|
|
7952
|
-
|
|
8122
|
+
w("solid-customer-list")
|
|
7953
8123
|
], ft);
|
|
7954
|
-
var
|
|
7955
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8124
|
+
var Tn = Object.defineProperty, jn = Object.getOwnPropertyDescriptor, _t = (e, t, i, r) => {
|
|
8125
|
+
for (var s = r > 1 ? void 0 : r ? jn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
7956
8126
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
7957
|
-
return r && s &&
|
|
8127
|
+
return r && s && Tn(t, i, s), s;
|
|
7958
8128
|
};
|
|
7959
8129
|
let ct = class extends k {
|
|
7960
8130
|
constructor() {
|
|
@@ -8109,12 +8279,12 @@ let ct = class extends k {
|
|
|
8109
8279
|
<tems-header
|
|
8110
8280
|
slot="header"
|
|
8111
8281
|
heading=${this.catalogId ? e ? this.catalogId === "*" ? `${l("All Datasets")}` : `${l("Datasets from")}
|
|
8112
|
-
${e["dct:title"]} (From ${this.sectorId})` : `${l(
|
|
8282
|
+
${e["dct:title"]} (From ${this.sectorId})` : `${l(b`Error while loading catalog ${this.catalogId}`)}` : this.sectorId ? this.sectorId === "*" ? `${l("All Sectors")}` : `${l("Catalogs available in")} ${this.sectorId}` : `${l("Root Authority")}`}
|
|
8113
8283
|
>${(this.sectorId || this.catalogId) && !(this.catalogId === "*" && this.sectorId === "*") && !(this.sectorId === "*" && !this.catalogId) ? c`<div slot="cta">
|
|
8114
8284
|
<tems-button
|
|
8115
8285
|
type="primary"
|
|
8116
8286
|
label=${l(
|
|
8117
|
-
|
|
8287
|
+
b`Back to ${this.catalogId ? this.sectorId : "Root Authority"}`
|
|
8118
8288
|
)}
|
|
8119
8289
|
@click=${this._back}
|
|
8120
8290
|
></tems-button>
|
|
@@ -8164,12 +8334,12 @@ _t([
|
|
|
8164
8334
|
h()
|
|
8165
8335
|
], ct.prototype, "object", 2);
|
|
8166
8336
|
ct = _t([
|
|
8167
|
-
|
|
8337
|
+
w("solid-dsif-explorer-poc")
|
|
8168
8338
|
], ct);
|
|
8169
|
-
var
|
|
8170
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8339
|
+
var kn = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, fe = (e, t, i, r) => {
|
|
8340
|
+
for (var s = r > 1 ? void 0 : r ? Fn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
8171
8341
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
8172
|
-
return r && s &&
|
|
8342
|
+
return r && s && kn(t, i, s), s;
|
|
8173
8343
|
};
|
|
8174
8344
|
let Ot = class extends Q {
|
|
8175
8345
|
constructor() {
|
|
@@ -8189,7 +8359,7 @@ let Ot = class extends Q {
|
|
|
8189
8359
|
}
|
|
8190
8360
|
},
|
|
8191
8361
|
args: () => [this.dataSrc, this.caching, this.currentRoute]
|
|
8192
|
-
}),
|
|
8362
|
+
}), je(this, {
|
|
8193
8363
|
keywords: ["groups", "objects", "dsp"]
|
|
8194
8364
|
});
|
|
8195
8365
|
}
|
|
@@ -8265,7 +8435,7 @@ let Ot = class extends Q {
|
|
|
8265
8435
|
});
|
|
8266
8436
|
}
|
|
8267
8437
|
};
|
|
8268
|
-
Ot.styles =
|
|
8438
|
+
Ot.styles = C`
|
|
8269
8439
|
.modal {
|
|
8270
8440
|
position: fixed;
|
|
8271
8441
|
top: 0;
|
|
@@ -8279,25 +8449,25 @@ Ot.styles = A`
|
|
|
8279
8449
|
align-items: center;
|
|
8280
8450
|
}
|
|
8281
8451
|
`;
|
|
8282
|
-
|
|
8452
|
+
fe([
|
|
8283
8453
|
h()
|
|
8284
8454
|
], Ot.prototype, "dspConnector", 2);
|
|
8285
|
-
|
|
8455
|
+
fe([
|
|
8286
8456
|
y({ attribute: "header", type: String })
|
|
8287
8457
|
], Ot.prototype, "header", 2);
|
|
8288
|
-
|
|
8458
|
+
fe([
|
|
8289
8459
|
h()
|
|
8290
8460
|
], Ot.prototype, "search", 2);
|
|
8291
|
-
|
|
8461
|
+
fe([
|
|
8292
8462
|
h()
|
|
8293
8463
|
], Ot.prototype, "resultCount", 2);
|
|
8294
|
-
Ot =
|
|
8295
|
-
|
|
8464
|
+
Ot = fe([
|
|
8465
|
+
w("solid-dsp-catalog")
|
|
8296
8466
|
], Ot);
|
|
8297
|
-
var
|
|
8298
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8467
|
+
var Nn = Object.defineProperty, Mn = Object.getOwnPropertyDescriptor, Tt = (e, t, i, r) => {
|
|
8468
|
+
for (var s = r > 1 ? void 0 : r ? Mn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
8299
8469
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
8300
|
-
return r && s &&
|
|
8470
|
+
return r && s && Nn(t, i, s), s;
|
|
8301
8471
|
};
|
|
8302
8472
|
let gt = class extends Q {
|
|
8303
8473
|
constructor() {
|
|
@@ -8569,19 +8739,19 @@ Tt([
|
|
|
8569
8739
|
h()
|
|
8570
8740
|
], gt.prototype, "negotiations", 2);
|
|
8571
8741
|
gt = Tt([
|
|
8572
|
-
|
|
8742
|
+
w("solid-dsp-connector")
|
|
8573
8743
|
], gt);
|
|
8574
|
-
const
|
|
8575
|
-
var
|
|
8576
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
8744
|
+
const Un = ".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 ds4go-card-catalog,.card-grid-vertical ds4go-card-fact{height:fit-content;width:354px}ds4go-card-catalog{cursor:pointer}ds4go-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;flex-direction:column}div.select,div.select .flex{display:flex;gap:var(--scale-200);width:100%}div.select .flex .flex-1{flex:1}div.select .flex tems-button{min-width:205px}div:has(>tems-textarea){margin-bottom:-2px}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)}";
|
|
8745
|
+
var Ln = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, D = (e, t, i, r) => {
|
|
8746
|
+
for (var s = r > 1 ? void 0 : r ? zn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
8577
8747
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
8578
|
-
return r && s &&
|
|
8748
|
+
return r && s && Ln(t, i, s), s;
|
|
8579
8749
|
};
|
|
8580
8750
|
let S = class extends k {
|
|
8581
8751
|
constructor() {
|
|
8582
|
-
super(...arguments), this.objects = [], this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.bundleCategory = "", this.bundleLanguage = "en", this.step = 0, this.policyTemplates =
|
|
8752
|
+
super(...arguments), this.objects = [], this.header = "DS4GO Fact Bundling Creation", this.selectedFacts = [], this.bundleName = "", this.bundleDescription = "", this.bundleCategory = "", this.bundleLanguage = "en", this.step = 0, this.policyTemplates = $o, this.bundleAccessPolicy = this.policyTemplates[0].id, this.bundleContractPolicy = this.policyTemplates[0].id, this.filterFactText = "", this.spliceLength = 0, this.cherryPickedProperties = [
|
|
8583
8753
|
{ key: "created_at", value: "created_at" },
|
|
8584
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
8754
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
8585
8755
|
{ key: "name", value: "name" },
|
|
8586
8756
|
{ key: "description", value: "description" },
|
|
8587
8757
|
{ key: "author", value: "author" },
|
|
@@ -8852,7 +9022,7 @@ let S = class extends k {
|
|
|
8852
9022
|
type="primary"
|
|
8853
9023
|
disabled=${!s || p}
|
|
8854
9024
|
label=${l(
|
|
8855
|
-
|
|
9025
|
+
b`Create bundle with ${r} fact${r > 1 ? "s" : ""}`
|
|
8856
9026
|
)}
|
|
8857
9027
|
@click=${this._createFactBundle}
|
|
8858
9028
|
></tems-button>
|
|
@@ -8865,7 +9035,7 @@ let S = class extends k {
|
|
|
8865
9035
|
<tems-division type="h4">
|
|
8866
9036
|
<div>
|
|
8867
9037
|
${l(
|
|
8868
|
-
|
|
9038
|
+
b`${r} selected fact${r > 1 ? "s" : ""}`
|
|
8869
9039
|
)}
|
|
8870
9040
|
</div></tems-division
|
|
8871
9041
|
>
|
|
@@ -8945,7 +9115,7 @@ let S = class extends k {
|
|
|
8945
9115
|
>
|
|
8946
9116
|
<div>
|
|
8947
9117
|
${l(
|
|
8948
|
-
|
|
9118
|
+
b`Displaying ${i.length} of ${t.length} result${t.length > 1 ? "s" : ""}`
|
|
8949
9119
|
)}
|
|
8950
9120
|
</div>
|
|
8951
9121
|
<div class="flex flex-row gap-400">
|
|
@@ -9027,14 +9197,14 @@ let S = class extends k {
|
|
|
9027
9197
|
></tems-textarea>
|
|
9028
9198
|
</div>
|
|
9029
9199
|
${this.displayAccessPolicyCustomization ? c`<div>
|
|
9030
|
-
<policy-composer
|
|
9200
|
+
<policy-composer-simple
|
|
9031
9201
|
.template=${this.policyTemplates.find(
|
|
9032
9202
|
(o) => o.id === this.bundleAccessPolicy
|
|
9033
9203
|
)}
|
|
9034
9204
|
.policy=${this.bundleAccessPolicyDefinition}
|
|
9035
9205
|
@policy-changed=${this._updateBundleAccessPolicyDefinition}
|
|
9036
9206
|
@cancel-policy-customization=${this._resetBundleAccessPolicy}
|
|
9037
|
-
></policy-composer>
|
|
9207
|
+
></policy-composer-simple>
|
|
9038
9208
|
</div>` : c`<div class="select">
|
|
9039
9209
|
<tems-label
|
|
9040
9210
|
label=${l("Access policy")}
|
|
@@ -9060,14 +9230,14 @@ let S = class extends k {
|
|
|
9060
9230
|
</div>
|
|
9061
9231
|
</div>`}
|
|
9062
9232
|
${this.displayContractPolicyCustomization ? c`<div>
|
|
9063
|
-
<policy-composer
|
|
9233
|
+
<policy-composer-simple
|
|
9064
9234
|
.template=${this.policyTemplates.find(
|
|
9065
9235
|
(o) => o.id === this.bundleContractPolicy
|
|
9066
9236
|
)}
|
|
9067
9237
|
.policy=${this.bundleContractPolicyDefinition}
|
|
9068
9238
|
@policy-changed=${this._updateBundleContractPolicyDefinition}
|
|
9069
9239
|
@cancel-policy-customization=${this._resetBundleContractPolicy}
|
|
9070
|
-
></policy-composer>
|
|
9240
|
+
></policy-composer-simple>
|
|
9071
9241
|
</div>` : c`<div class="select">
|
|
9072
9242
|
<tems-label
|
|
9073
9243
|
label=${l("Contract policy")}
|
|
@@ -9100,7 +9270,7 @@ let S = class extends k {
|
|
|
9100
9270
|
});
|
|
9101
9271
|
}
|
|
9102
9272
|
};
|
|
9103
|
-
S.styles = [
|
|
9273
|
+
S.styles = [M(Un)];
|
|
9104
9274
|
D([
|
|
9105
9275
|
y({ attribute: !1 })
|
|
9106
9276
|
], S.prototype, "objects", 2);
|
|
@@ -9156,18 +9326,18 @@ D([
|
|
|
9156
9326
|
h()
|
|
9157
9327
|
], S.prototype, "displayContractPolicyCustomization", 2);
|
|
9158
9328
|
S = D([
|
|
9159
|
-
|
|
9329
|
+
w("solid-fact-bundle-creation")
|
|
9160
9330
|
], S);
|
|
9161
|
-
var
|
|
9162
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
9331
|
+
var qn = Object.defineProperty, Bn = Object.getOwnPropertyDescriptor, Bt = (e, t, i, r) => {
|
|
9332
|
+
for (var s = r > 1 ? void 0 : r ? Bn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
9163
9333
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
9164
|
-
return r && s &&
|
|
9334
|
+
return r && s && qn(t, i, s), s;
|
|
9165
9335
|
};
|
|
9166
9336
|
let yt = class extends k {
|
|
9167
9337
|
constructor() {
|
|
9168
9338
|
super(...arguments), this.objects = [], this.header = "DS4GO Fact Bundling", this.search = [], this.resultCount = this.objects?.length || 0, this.cherryPickedProperties = [
|
|
9169
|
-
{ key: "created_at", value: "created_at", cast:
|
|
9170
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
9339
|
+
{ key: "created_at", value: "created_at", cast: L },
|
|
9340
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
9171
9341
|
{ key: "name", value: "name" },
|
|
9172
9342
|
{ key: "category", value: "category" },
|
|
9173
9343
|
{ key: "description", value: "description" }
|
|
@@ -9199,7 +9369,7 @@ let yt = class extends k {
|
|
|
9199
9369
|
return e?._originalResource?.hasType("ds4go:FactBundle") && (e.facts = await Promise.all(
|
|
9200
9370
|
(await e._originalResource["ldp:contains"]).map(
|
|
9201
9371
|
(t) => this._getProxyValue(t["@id"], !1, [
|
|
9202
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
9372
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
9203
9373
|
{ key: "name", value: "name" },
|
|
9204
9374
|
{ key: "description", value: "description" },
|
|
9205
9375
|
{
|
|
@@ -9224,7 +9394,7 @@ let yt = class extends k {
|
|
|
9224
9394
|
)), Promise.resolve(e);
|
|
9225
9395
|
}
|
|
9226
9396
|
async _afterAttach() {
|
|
9227
|
-
return
|
|
9397
|
+
return je(this, {
|
|
9228
9398
|
keywords: ["factbundles"]
|
|
9229
9399
|
}), this.menuComponent = document.querySelector(
|
|
9230
9400
|
`[uniq="${this.orbit?.getComponent("menu")?.uniq}"]`
|
|
@@ -9305,7 +9475,7 @@ let yt = class extends k {
|
|
|
9305
9475
|
});
|
|
9306
9476
|
}
|
|
9307
9477
|
};
|
|
9308
|
-
yt.styles =
|
|
9478
|
+
yt.styles = C`
|
|
9309
9479
|
.modal {
|
|
9310
9480
|
position: fixed;
|
|
9311
9481
|
top: 0;
|
|
@@ -9335,18 +9505,18 @@ Bt([
|
|
|
9335
9505
|
h()
|
|
9336
9506
|
], yt.prototype, "bundleCreationComponent", 2);
|
|
9337
9507
|
yt = Bt([
|
|
9338
|
-
|
|
9508
|
+
w("solid-fact-bundle")
|
|
9339
9509
|
], yt);
|
|
9340
|
-
var
|
|
9341
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
9510
|
+
var Wn = Object.defineProperty, Gn = Object.getOwnPropertyDescriptor, et = (e, t, i, r) => {
|
|
9511
|
+
for (var s = r > 1 ? void 0 : r ? Gn(t, i) : t, o = e.length - 1, a; o >= 0; o--)
|
|
9342
9512
|
(a = e[o]) && (s = (r ? a(t, i, s) : a(s)) || s);
|
|
9343
|
-
return r && s &&
|
|
9513
|
+
return r && s && Wn(t, i, s), s;
|
|
9344
9514
|
};
|
|
9345
9515
|
let G = class extends k {
|
|
9346
9516
|
constructor() {
|
|
9347
9517
|
super(...arguments), this.objects = [], this.header = "DS4GO Fact List", this.search = [], this.resultCount = this.objects?.length || 0, this.consumerAgreements = [], this.alreadyGeneratedVideos = [], this.cherryPickedProperties = [
|
|
9348
|
-
{ key: "created_at", value: "created_at", cast:
|
|
9349
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
9518
|
+
{ key: "created_at", value: "created_at", cast: L },
|
|
9519
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
9350
9520
|
{ key: "ldp:contains", value: "facts" }
|
|
9351
9521
|
], this._getResource = new tt(this, {
|
|
9352
9522
|
task: async ([e, t]) => {
|
|
@@ -9395,7 +9565,7 @@ let G = class extends k {
|
|
|
9395
9565
|
this.objects = await Promise.all(
|
|
9396
9566
|
u.map((m) => this._getProxyValue(m, !0, [
|
|
9397
9567
|
{ key: "created_at", value: "created_at" },
|
|
9398
|
-
{ key: "updated_at", value: "updated_at", cast:
|
|
9568
|
+
{ key: "updated_at", value: "updated_at", cast: L },
|
|
9399
9569
|
{ key: "name", value: "name" },
|
|
9400
9570
|
{ key: "description", value: "description" },
|
|
9401
9571
|
{ key: "author", value: "author" },
|
|
@@ -9441,7 +9611,7 @@ let G = class extends k {
|
|
|
9441
9611
|
});
|
|
9442
9612
|
}
|
|
9443
9613
|
async _afterAttach() {
|
|
9444
|
-
return
|
|
9614
|
+
return je(this, {
|
|
9445
9615
|
keywords: ["customers", "fact"]
|
|
9446
9616
|
}), this.dspConnector = this.orbit?.components.find(
|
|
9447
9617
|
(e) => e.type === "dsp-connector"
|
|
@@ -9539,7 +9709,7 @@ let G = class extends k {
|
|
|
9539
9709
|
});
|
|
9540
9710
|
}
|
|
9541
9711
|
};
|
|
9542
|
-
G.styles =
|
|
9712
|
+
G.styles = C`
|
|
9543
9713
|
.modal {
|
|
9544
9714
|
position: fixed;
|
|
9545
9715
|
top: 0;
|
|
@@ -9581,9 +9751,9 @@ et([
|
|
|
9581
9751
|
h()
|
|
9582
9752
|
], G.prototype, "alreadyGeneratedVideos", 2);
|
|
9583
9753
|
G = et([
|
|
9584
|
-
|
|
9754
|
+
w("solid-fact-list")
|
|
9585
9755
|
], G);
|
|
9586
|
-
const
|
|
9756
|
+
const Hn = {
|
|
9587
9757
|
sc7e3b594ffcd9d61: "Open access",
|
|
9588
9758
|
sc01b3f089359860d: "Premium tier (40 calls/month)",
|
|
9589
9759
|
se6f9192c93e67e2f: "No redistribution, no commercial use",
|
|
@@ -9591,30 +9761,30 @@ const qn = {
|
|
|
9591
9761
|
s70a26f677dc46e06: "Policy ID:",
|
|
9592
9762
|
s7b3a70561cec8d75: "Type:",
|
|
9593
9763
|
s15923994727a0adb: "Permissions:",
|
|
9594
|
-
s0772542b009a8be9:
|
|
9764
|
+
s0772542b009a8be9: b`Action: ${0}`,
|
|
9595
9765
|
s4c52b0193dcce634: "use",
|
|
9596
|
-
s723a09cb247483aa:
|
|
9766
|
+
s723a09cb247483aa: b`Constraint: ${0} ${1} ${2}`,
|
|
9597
9767
|
s0885bc9622c48b61: "Prohibitions:",
|
|
9598
9768
|
s498865c7bd1f3959: "unknown",
|
|
9599
9769
|
sbde02617664d091c: "Obligations:",
|
|
9600
9770
|
s5ea7f731936859c6: "Target Asset:",
|
|
9601
9771
|
s3fca726cbe9998b3: "Assigner:",
|
|
9602
9772
|
s20acf344316637a0: "All Catalogs",
|
|
9603
|
-
s67269ab6dc51ec41:
|
|
9773
|
+
s67269ab6dc51ec41: b`Error while loading catalog ${0}`,
|
|
9604
9774
|
s0b88896b7338837d: "All Datasets",
|
|
9605
9775
|
s541d9cd11a5bc840: "Datasets from",
|
|
9606
9776
|
s01ceffa02fa6bd7f: "All Sectors",
|
|
9607
9777
|
s4aaac20ff7887391: "Catalogs available in",
|
|
9608
9778
|
sa89a60c3e1230cec: "Root Authority",
|
|
9609
|
-
se5784a16a6799dad:
|
|
9779
|
+
se5784a16a6799dad: b`Back to ${0}`,
|
|
9610
9780
|
s2b185eaa078faa02: "Fact checks selection",
|
|
9611
9781
|
scdde96242b31f2b3: "Bundle information",
|
|
9612
9782
|
s0fbf6dc6a1966408: "Next",
|
|
9613
9783
|
s7cde8ae6e5ec185a: "Cancel bundle creation",
|
|
9614
|
-
s730a199fc5865083:
|
|
9615
|
-
sac1b0231875ff056:
|
|
9784
|
+
s730a199fc5865083: b`Create bundle with ${0} fact${1}`,
|
|
9785
|
+
sac1b0231875ff056: b`${0} selected fact${1}`,
|
|
9616
9786
|
s0d1be7a2c400c080: "more",
|
|
9617
|
-
s8272d3578b7c78d5:
|
|
9787
|
+
s8272d3578b7c78d5: b`Displaying ${0} of ${1} result${2}`,
|
|
9618
9788
|
sa40e7f4f2a43e2f7: "Show more results",
|
|
9619
9789
|
sacf246e0fa11730d: "Show all results",
|
|
9620
9790
|
s9094c0cde8fb5058: "No results found",
|
|
@@ -9632,18 +9802,18 @@ const qn = {
|
|
|
9632
9802
|
sf5509a9f253b9836: "Create a bundle",
|
|
9633
9803
|
s06444a51bc5db27f: "AI-Video generated!",
|
|
9634
9804
|
s11a98d9043541ac5: "Your AI-Generated video has been generated and is available in your Tralalère space.",
|
|
9635
|
-
s971c62c3e06f9d82:
|
|
9805
|
+
s971c62c3e06f9d82: b`${0} previews`,
|
|
9636
9806
|
sefa717c1620c4ae4: "facts",
|
|
9637
9807
|
sef234a791696afff: "fact",
|
|
9638
|
-
s43d205c00fad9f7e:
|
|
9639
|
-
s984a5e18d85b6d57:
|
|
9808
|
+
s43d205c00fad9f7e: b`+${0} ${1}`,
|
|
9809
|
+
s984a5e18d85b6d57: b`${0} ${1}`,
|
|
9640
9810
|
sc792eb5e201cf4d0: "medias",
|
|
9641
9811
|
sb333b8c7b846af83: "media",
|
|
9642
9812
|
s09134b07b5aacab4: "By",
|
|
9643
9813
|
s1a09219b217309cc: "Search for...",
|
|
9644
9814
|
sb34b3dca6ec05933: "Date after",
|
|
9645
|
-
se2a05e7d1641da65:
|
|
9646
|
-
se5c723fd92e6b3a1:
|
|
9815
|
+
se2a05e7d1641da65: b`Balance: ${0}`,
|
|
9816
|
+
se5c723fd92e6b3a1: b`Participant ID: ${0}`,
|
|
9647
9817
|
s6665daa6d6147db0: "No data available, data source may be temporarily unavailable.",
|
|
9648
9818
|
sc16e00a7a8b2fde2: "Back",
|
|
9649
9819
|
s2c8189544e3ea679: "Retry",
|
|
@@ -9718,7 +9888,14 @@ You will be charged 5€ on your account.`,
|
|
|
9718
9888
|
sff5bb7742c2896c8: "Target",
|
|
9719
9889
|
sbe3e707b57c46ca1: "Prohibitions",
|
|
9720
9890
|
sffb7bb8de238ac4e: "Obligations",
|
|
9721
|
-
|
|
9891
|
+
saf63d34c8601dd41: b`${0}`,
|
|
9892
|
+
s628bb01dd2b078ad: "No policy template provided",
|
|
9893
|
+
s9ffd7cfd1c88fd4e: b`Custom ${0} policy`,
|
|
9894
|
+
s2bed402279cceb12: "Cancel policy customization",
|
|
9895
|
+
sb8818368fe19f8aa: "No constraints available to edit",
|
|
9896
|
+
s24a1ba59ec62b15e: "Policy Customization",
|
|
9897
|
+
sb59dc090f2be3796: b`Reset to ${0} default`,
|
|
9898
|
+
s14859b947195b408: b`Permission ${0}`,
|
|
9722
9899
|
s35bf8bb435438a0b: "Constraints",
|
|
9723
9900
|
s132a54c0aec0f79d: "Left Operand",
|
|
9724
9901
|
sc4801f580ac4e73d: "Operator",
|
|
@@ -9729,40 +9906,36 @@ You will be charged 5€ on your account.`,
|
|
|
9729
9906
|
sdf761eb7ad16410b: "Remove Duty",
|
|
9730
9907
|
s1718e3c349bc1d30: "Add Duty",
|
|
9731
9908
|
s9d400a027526b9d8: "Remove Permission",
|
|
9732
|
-
s076b9e9621d4d0b2:
|
|
9909
|
+
s076b9e9621d4d0b2: b`Prohibition ${0}`,
|
|
9733
9910
|
sbe1b941d4910d6ea: "Remove Prohibition",
|
|
9734
|
-
sbcccc4176562f98f:
|
|
9911
|
+
sbcccc4176562f98f: b`Obligation ${0}`,
|
|
9735
9912
|
s93ec9f2c98cc8e3f: "Remove Obligation",
|
|
9736
|
-
s628bb01dd2b078ad: "No policy template provided",
|
|
9737
|
-
s9ffd7cfd1c88fd4e: w`Custom ${0} policy`,
|
|
9738
|
-
s2bed402279cceb12: "Cancel policy customization",
|
|
9739
9913
|
s23cd949fc2aa86a8: "Policy Definition",
|
|
9740
9914
|
se0f628ee952e5ad8: "Policy ID",
|
|
9741
9915
|
s7d6c4188c395a9a5: "Policy Type",
|
|
9742
9916
|
s275cf91505dc75a3: "Add Permission",
|
|
9743
9917
|
s18c23b99ee3c7cb3: "Add Prohibition",
|
|
9744
|
-
sc3fc7be063c1cb1c: "Add Obligation"
|
|
9745
|
-
|
|
9746
|
-
}, Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9918
|
+
sc3fc7be063c1cb1c: "Add Obligation"
|
|
9919
|
+
}, Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9747
9920
|
__proto__: null,
|
|
9748
|
-
templates:
|
|
9749
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9921
|
+
templates: Hn
|
|
9922
|
+
}, Symbol.toStringTag, { value: "Module" })), Er = "en", ps = [
|
|
9750
9923
|
"en"
|
|
9751
|
-
],
|
|
9752
|
-
|
|
9924
|
+
], Kn = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Vn }), Yn = new Map(
|
|
9925
|
+
ps.map((e) => [
|
|
9753
9926
|
e,
|
|
9754
|
-
|
|
9927
|
+
Kn[`../../generated/locales/${e}.ts`]
|
|
9755
9928
|
])
|
|
9756
|
-
), { getLocale:
|
|
9929
|
+
), { getLocale: Or, setLocale: Ir } = "/".includes(
|
|
9757
9930
|
"cypress"
|
|
9758
9931
|
) ? {
|
|
9759
|
-
getLocale: () =>
|
|
9932
|
+
getLocale: () => Er,
|
|
9760
9933
|
setLocale: () => {
|
|
9761
9934
|
}
|
|
9762
|
-
} :
|
|
9763
|
-
sourceLocale:
|
|
9764
|
-
targetLocales:
|
|
9765
|
-
loadLocale: async (e) =>
|
|
9935
|
+
} : so({
|
|
9936
|
+
sourceLocale: Er,
|
|
9937
|
+
targetLocales: ps,
|
|
9938
|
+
loadLocale: async (e) => Yn.get(e)
|
|
9766
9939
|
});
|
|
9767
|
-
window.getLocale = window.getLocale ? window.getLocale.push(
|
|
9768
|
-
window.setLocale = window.setLocale ? window.setLocale.push(
|
|
9940
|
+
window.getLocale = window.getLocale ? window.getLocale.push(Or) : [Or];
|
|
9941
|
+
window.setLocale = window.setLocale ? window.setLocale.push(Ir) : [Ir];
|