@piveau/dpi 0.1.0-beta.76 → 0.1.0-beta.77

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.
@@ -1,44 +1,44 @@
1
1
  import c from "axios";
2
- const u = async (a) => {
2
+ const u = async (s) => {
3
3
  try {
4
- let e = `${a}vocabularies/hvd-category`;
4
+ let e = `${s}vocabularies/hvd-category`;
5
5
  return (await c.get(e)).data.result.results;
6
6
  } catch (e) {
7
7
  throw console.error("Error fetching HVD categories:", e), e;
8
8
  }
9
- }, g = async (a) => {
9
+ }, g = async (s) => {
10
10
  try {
11
- let e = `${a}vocabularies/data-theme`;
11
+ let e = `${s}vocabularies/data-theme`;
12
12
  return (await c.get(e)).data.result.results;
13
13
  } catch (e) {
14
14
  throw console.error("Error fetching Dataset categories:", e), e;
15
15
  }
16
- }, h = async (a) => {
16
+ }, h = async (s) => {
17
17
  try {
18
- let e = `${a}vocabularies/access-right`;
18
+ let e = `${s}vocabularies/access-right`;
19
19
  return (await c.get(e)).data.result.results;
20
20
  } catch (e) {
21
21
  throw console.error("Error fetching Dataset categories:", e), e;
22
22
  }
23
- }, d = async (a) => {
23
+ }, d = async (s) => {
24
24
  try {
25
- let e = `${a}vocabularies/iana-media-types`;
25
+ let e = `${s}vocabularies/iana-media-types`;
26
26
  return (await c.get(e, {
27
27
  headers: { Accept: "application/json" }
28
28
  })).data.result;
29
29
  } catch (e) {
30
30
  throw console.error("Error fetching file types:", e), e;
31
31
  }
32
- }, p = async (a) => {
32
+ }, p = async (s) => {
33
33
  try {
34
- let e = `${a}vocabularies/file-type`;
34
+ let e = `${s}vocabularies/file-type`;
35
35
  return (await c.get(e, {
36
36
  headers: { Accept: "application/json" }
37
37
  })).data.result;
38
38
  } catch (e) {
39
39
  throw console.error("Error fetching file types:", e), e;
40
40
  }
41
- }, n = async (a) => {
41
+ }, n = async (s) => {
42
42
  let e = [
43
43
  "district-key",
44
44
  "government-district-key",
@@ -48,27 +48,27 @@ const u = async (a) => {
48
48
  "state-key"
49
49
  ], r = [], o = [];
50
50
  try {
51
- let l = `${a}vocabularies/political-geocoding-level`;
51
+ let l = `${s}vocabularies/political-geocoding-level`;
52
52
  const t = await c.get(l);
53
- for (let s = 0; s < t.data.result.results.length; s++)
53
+ for (let a = 0; a < t.data.result.results.length; a++)
54
54
  o.push(
55
55
  await c.get(
56
- `${a}vocabularies/political-geocoding-` + e[s]
56
+ `${s}vocabularies/political-geocoding-` + e[a]
57
57
  )
58
58
  ), r.push({
59
- headers: e[s],
60
- list: o[s].data.result.results
59
+ headers: e[a],
60
+ list: o[a].data.result.results
61
61
  });
62
62
  return r;
63
63
  } catch (l) {
64
64
  throw console.error("Error fetching Dataset categories:", l), l;
65
65
  }
66
- }, y = async (a, e) => (await n(e)).map((l) => {
66
+ }, y = async (s, e) => (await n(e)).map((l) => {
67
67
  const t = l.list.filter(
68
- (s) => s.alt_label && s.alt_label.de && s.alt_label.de.includes(a)
68
+ (a) => a.alt_label && a.alt_label.de && a.alt_label.de.includes(s)
69
69
  );
70
70
  return { ...l, list: t };
71
- }).filter((l) => l.list.length > 0), f = async (a, e, r) => {
71
+ }).filter((l) => l.list.length > 0), f = async (s, e, r) => {
72
72
  let o = [];
73
73
  try {
74
74
  let l = `${e}vocabularies/${r}`;
@@ -76,9 +76,9 @@ const u = async (a) => {
76
76
  } catch (l) {
77
77
  throw console.error("Error fetching Dataset categories:", l), l;
78
78
  }
79
- }, b = async (a) => {
79
+ }, b = async (s) => {
80
80
  try {
81
- let e = `${a}vocabularies/planned-availability`;
81
+ let e = `${s}vocabularies/planned-availability`;
82
82
  return (await c.get(e)).data.result.results.map((o) => ({
83
83
  value: o.id,
84
84
  label: o.pref_label.de,
@@ -87,48 +87,48 @@ const u = async (a) => {
87
87
  } catch (e) {
88
88
  throw console.error("Error fetching planned availability:", e), e;
89
89
  }
90
- }, v = async (a, e = "de") => {
90
+ }, v = async (s, e = "de") => {
91
91
  try {
92
- let r = `${a}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
92
+ let r = `${s}vocabularies/language`, l = (await c.get(r)).data.result.results.map((t) => ({
93
93
  value: t.id,
94
94
  label: `${t.pref_label[e] || t.pref_label.en || t.id} (${t.id})`,
95
95
  uri: t.resource
96
96
  }));
97
- return l.sort((t, s) => t.label.localeCompare(s.label, e)), l;
97
+ return l.sort((t, a) => t.label.localeCompare(a.label, e)), l;
98
98
  } catch (r) {
99
99
  throw console.error("Error fetching languages:", r), r;
100
100
  }
101
- }, w = async (a, e = "de") => {
101
+ }, w = async (s, e = "de") => {
102
102
  try {
103
- let r = `${a}vocabularies/licence`;
103
+ let r = `${s}vocabularies/licenses`;
104
104
  return (await c.get(r)).data.result.results.map((t) => {
105
- var s;
105
+ var a;
106
106
  return {
107
107
  value: t.id,
108
108
  label: t.pref_label[e] || t.pref_label.en || t.id,
109
- homepage: ((s = t.extensions) == null ? void 0 : s.foaf_homepage) || null,
109
+ homepage: ((a = t.extensions) == null ? void 0 : a.foaf_homepage) || null,
110
110
  uri: t.resource
111
111
  };
112
112
  });
113
113
  } catch (r) {
114
114
  throw console.error("Error fetching licenses:", r), r;
115
115
  }
116
- }, $ = async (a, e = "de") => {
116
+ }, $ = async (s, e = "de") => {
117
117
  try {
118
- let r = `${a}vocabularies/adms`;
118
+ let r = `${s}vocabularies/adms`;
119
119
  return (await c.get(r)).data.result.results.filter(
120
- (s) => s.in_scheme === "http://purl.org/adms/status/1.0" && s.resource !== "http://purl.org/adms/status/UnderDevelopment"
121
- ).map((s) => ({
122
- value: s.id,
123
- label: s.pref_label[e] || s.pref_label.en || s.id,
124
- resource: s.resource || null
120
+ (a) => a.in_scheme === "http://purl.org/adms/status/1.0" && a.resource !== "http://purl.org/adms/status/UnderDevelopment"
121
+ ).map((a) => ({
122
+ value: a.id,
123
+ label: a.pref_label[e] || a.pref_label.en || a.id,
124
+ resource: a.resource || null
125
125
  }));
126
126
  } catch (r) {
127
127
  throw console.error("Error fetching dataset status:", r), r;
128
128
  }
129
- }, m = async (a, e = "en") => {
129
+ }, m = async (s, e = "en") => {
130
130
  try {
131
- let r = `${a}vocabularies/spdx-checksum-algorithm`;
131
+ let r = `${s}vocabularies/spdx-checksum-algorithm`;
132
132
  return (await c.get(r)).data.result.results.map((t) => ({
133
133
  value: t.id,
134
134
  label: t.pref_label[e] || t.pref_label.en || t.id,
@@ -1,11 +1,11 @@
1
1
  import "axios";
2
- import { asSomeArray as Rt } from "../../composables/useDpiSimpleLoader.js";
2
+ import { asSomeArray as Ut } from "../../composables/useDpiSimpleLoader.js";
3
3
  let d = { distribution: [], dataset: {}, meta: {} };
4
- function St(t) {
4
+ function Ct(t) {
5
5
  return t.replace(/[^a-z0-9\s]/gi, "").replace(/\s+/g, "-").toLowerCase();
6
6
  }
7
- async function Ut(t, g, l, b) {
8
- var A, f, v, D, k, O, R, j, S, w, I, x, L, B, U, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ct, ot, st, lt, rt, pt, bt, gt, yt, ut, ht, At, ft, vt, Dt, kt;
7
+ async function zt(t, g, l, b) {
8
+ var A, f, v, D, k, O, R, j, S, w, I, x, L, B, U, P, C, T, G, M, q, X, z, F, $, N, E, H, W, Y, _, J, K, Q, Z, m, V, tt, it, dt, et, at, nt, ct, ot, st, lt, rt, pt, bt, gt, yt, ut, ht, At, ft, vt, Dt, kt, Ot, Rt, jt, St, wt, It, xt, Lt;
9
9
  const u = g.specification.prefixes;
10
10
  let p = [];
11
11
  const o = Object.keys(t);
@@ -14,7 +14,7 @@ async function Ut(t, g, l, b) {
14
14
  p.push(crypto.randomUUID()), d.dataset["dcat:distribution"].push({
15
15
  "@id": `https://piveau.io/set/distribution/${p[c]}`
16
16
  });
17
- const jt = new URLSearchParams(window.location.search).get("edit");
17
+ const Pt = new URLSearchParams(window.location.search).get("edit");
18
18
  let y = "";
19
19
  try {
20
20
  for (let c = 0; c < o.length; c++) {
@@ -33,9 +33,9 @@ async function Ut(t, g, l, b) {
33
33
  if (o[c] === "BasicInfos") {
34
34
  d.dataset["dpi:isDPIv3"] = !0;
35
35
  for (let i = 0; i < Object.keys(t.BasicInfos).length; i++)
36
- Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y = St(
36
+ Object.keys(t.BasicInfos)[i] === "dct:title" && (d.dataset["dct:title"] = t.BasicInfos["dct:title"][0] || "", y = Ct(
37
37
  t.BasicInfos["dct:title"][0]["@value"]
38
- ), jt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && ((v = t.BasicInfos["dct:modified"]) != null && v[0] ? d.dataset["dct:modified"] = { ...(D = t.BasicInfos["dct:modified"]) == null ? void 0 : D[0], "@type": ((O = (k = t.BasicInfos["dct:modified"]) == null ? void 0 : k[0]) == null ? void 0 : O["@type"]) || "http://www.w3.org/2001/XMLSchema#date" } : d.dataset["dct:modified"] = void 0), Object.keys(t.BasicInfos)[i] === "dct:publisher" && ((R = t.BasicInfos["dct:publisher"]) != null && R[0] ? d.dataset["dct:publisher"] = { ...(j = t.BasicInfos["dct:publisher"]) == null ? void 0 : j[0], "@type": ((w = (S = t.BasicInfos["dct:publisher"]) == null ? void 0 : S[0]) == null ? void 0 : w["@type"]) || "foaf:Agent" } : d.dataset["dct:publisher"] = void 0), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && ((I = t.BasicInfos["dcat:contactPoint"]) != null && I[0] ? d.dataset["dcat:contactPoint"] = { ...(x = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : x[0], "@type": ((B = (L = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : L[0]) == null ? void 0 : B["@type"]) || "vcard:Organization" } : d.dataset["dcat:contactPoint"] = void 0), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
38
+ ), Pt === "true" && (y = t.BasicInfos.datasetID)), Object.keys(t.BasicInfos)[i] === "dct:description" && (d.dataset["dct:description"] = t.BasicInfos["dct:description"][0] || ""), Object.keys(t.BasicInfos)[i] === "dct:modified" && ((v = t.BasicInfos["dct:modified"]) != null && v[0] ? d.dataset["dct:modified"] = { ...(D = t.BasicInfos["dct:modified"]) == null ? void 0 : D[0], "@type": ((O = (k = t.BasicInfos["dct:modified"]) == null ? void 0 : k[0]) == null ? void 0 : O["@type"]) || "http://www.w3.org/2001/XMLSchema#date" } : d.dataset["dct:modified"] = void 0), Object.keys(t.BasicInfos)[i] === "dct:publisher" && ((R = t.BasicInfos["dct:publisher"]) != null && R[0] ? d.dataset["dct:publisher"] = { ...(j = t.BasicInfos["dct:publisher"]) == null ? void 0 : j[0], "@type": ((w = (S = t.BasicInfos["dct:publisher"]) == null ? void 0 : S[0]) == null ? void 0 : w["@type"]) || "foaf:Agent" } : d.dataset["dct:publisher"] = void 0), Object.keys(t.BasicInfos)[i] === "dcat:contactPoint" && ((I = t.BasicInfos["dcat:contactPoint"]) != null && I[0] ? d.dataset["dcat:contactPoint"] = { ...(x = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : x[0], "@type": ((B = (L = t.BasicInfos["dcat:contactPoint"]) == null ? void 0 : L[0]) == null ? void 0 : B["@type"]) || "vcard:Organization" } : d.dataset["dcat:contactPoint"] = void 0), d.dataset["@type"] = "dcat:Dataset", d.meta["dcat:catalog"] = l.permissions[0].rsname, d.meta["@type"] = "dcat:CatalogRecord";
39
39
  }
40
40
  if (o[c] === "Covering" && Object.keys(t.Covering).length > 1)
41
41
  for (let i = 0; i < Object.keys(t.Covering).length; i++) {
@@ -110,7 +110,7 @@ async function Ut(t, g, l, b) {
110
110
  "@id": (e == null ? void 0 : e.uri) || ""
111
111
  }), ((Z = (Q = (K = t.DistributionSimple) == null ? void 0 : K["dcat:distribution"]) == null ? void 0 : Q[i]) == null ? void 0 : Z["dcatap:applicableLegislation"]) != null && (d.distribution[i]["dct:format"] = (tt = (V = (m = t.DistributionSimple) == null ? void 0 : m["dcat:distribution"]) == null ? void 0 : V[i]) == null ? void 0 : tt["dcatap:applicableLegislation"]["@id"]);
112
112
  const s = ((et = (dt = (it = t.DistributionSimple) == null ? void 0 : it["dcat:distribution"]) == null ? void 0 : dt[i]) == null ? void 0 : et.conformsToItems) || [];
113
- if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = Rt(
113
+ if (s.length !== 0 && (d.distribution[i]["dct:conformsTo"] = Ut(
114
114
  s
115
115
  ).filter(
116
116
  (a) => a && (a["dcat:downloadURL"] || a["dct:title"])
@@ -145,15 +145,15 @@ async function Ut(t, g, l, b) {
145
145
  "@language": "de",
146
146
  "@value": t.DistributionSimple["dcat:distribution"][i]["dct:title"]
147
147
  }), Object.keys(
148
- t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"]
148
+ ((nt = (at = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : at[i]) == null ? void 0 : nt["dct:accessRights"]) || {}
149
149
  ).length !== 0 && (d.distribution[i]["dct:accessRights"] = {
150
150
  "@id": t.DistributionSimple["dcat:distribution"][i]["dct:accessRights"].uri
151
151
  }), t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"] != null && Object.keys(
152
- t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"]
152
+ ((ct = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : ct["dcat:compressFormat"]) || {}
153
153
  ).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri !== "" && (d.distribution[i]["dcat:compressFormat"] = {
154
154
  "@id": t.DistributionSimple["dcat:distribution"][i]["dcat:compressFormat"].uri || ""
155
155
  }), Object.keys(
156
- t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"]
156
+ ((st = (ot = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : ot[i]) == null ? void 0 : st["dcat:packageFormat"]) || {}
157
157
  ).length !== 0 && t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri !== "" && (d.distribution[i]["dcat:packageFormat"] = {
158
158
  "@id": t.DistributionSimple["dcat:distribution"][i]["dcat:packageFormat"].uri || ""
159
159
  }), t.DistributionSimple["dcat:distribution"][i].checksum.uri !== "" && (d.distribution[i]["spdx:checksum"] = {
@@ -163,7 +163,7 @@ async function Ut(t, g, l, b) {
163
163
  "@id": t.DistributionSimple["dcat:distribution"][i].checksum.uri || ""
164
164
  }
165
165
  }), Object.keys(
166
- t.DistributionSimple["dcat:distribution"][i]["dct:language"]
166
+ ((rt = (lt = t.DistributionSimple["dcat:distribution"]) == null ? void 0 : lt[i]) == null ? void 0 : rt["dct:language"]) || {}
167
167
  ).length !== 0) {
168
168
  d.distribution[i]["dct:language"] = [];
169
169
  for (let a = 0; a < t.DistributionSimple["dcat:distribution"][i]["dct:language"].length; a++)
@@ -172,12 +172,12 @@ async function Ut(t, g, l, b) {
172
172
  };
173
173
  }
174
174
  t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri !== "" && Object.keys(
175
- t.DistributionSimple["dcat:distribution"][i]["adms:status"]
175
+ ((pt = t.DistributionSimple["dcat:distribution"][i]) == null ? void 0 : pt["adms:status"]) || {}
176
176
  ).length !== 0 && (d.distribution[i]["adms:status"] = {
177
177
  "@id": t.DistributionSimple["dcat:distribution"][i]["adms:status"].uri || ""
178
178
  });
179
- const Ot = ((ct = (nt = (at = t.DistributionSimple) == null ? void 0 : at["dcat:distribution"]) == null ? void 0 : nt[i]) == null ? void 0 : ct.accessServices) || [];
180
- if (Ot.length !== 0 && (d.distribution[i]["dcat:accessService"] = (ot = Rt(Ot)) == null ? void 0 : ot.filter(
179
+ const Bt = ((yt = (gt = (bt = t.DistributionSimple) == null ? void 0 : bt["dcat:distribution"]) == null ? void 0 : gt[i]) == null ? void 0 : yt.accessServices) || [];
180
+ if (Bt.length !== 0 && (d.distribution[i]["dcat:accessService"] = (ut = Ut(Bt)) == null ? void 0 : ut.filter(
181
181
  (a) => a && (a["dct:title"] || a["dct:description"] || a["dcat:downloadURL"] || a["dcat:endpointURL"])
182
182
  ).map((a) => {
183
183
  const n = {
@@ -196,7 +196,7 @@ async function Ut(t, g, l, b) {
196
196
  "@id": r
197
197
  }), n;
198
198
  })), d.distribution[i]["foaf:page"] || (d.distribution[i]["foaf:page"] = []), d.distribution[i]["foaf:page"].length !== 0)
199
- for (let a = 0; a < ((rt = (lt = (st = t.DistributionSimple) == null ? void 0 : st["dcat:distribution"]) == null ? void 0 : lt[i]) == null ? void 0 : rt.documentations.length); a++) {
199
+ for (let a = 0; a < ((ft = (At = (ht = t.DistributionSimple) == null ? void 0 : ht["dcat:distribution"]) == null ? void 0 : At[i]) == null ? void 0 : ft.documentations.length); a++) {
200
200
  const n = t.DistributionSimple["dcat:distribution"][i].documentations[a];
201
201
  if ((n == null ? void 0 : n["dct:title"]) !== void 0) {
202
202
  const r = {
@@ -238,7 +238,7 @@ async function Ut(t, g, l, b) {
238
238
  for (let e = 0; e < t.Additionals["dcat:keyword"].length; e++)
239
239
  d.dataset["dcat:keyword"] === void 0 && (d.dataset["dcat:keyword"] = []), d.dataset["dcat:keyword"].push({
240
240
  "@value": t.Additionals["dcat:keyword"][e]["@value"],
241
- "@language": ((bt = (pt = t.Additionals["dcat:keyword"]) == null ? void 0 : pt[e]) == null ? void 0 : bt["@language"]) || "de"
241
+ "@language": ((Dt = (vt = t.Additionals["dcat:keyword"]) == null ? void 0 : vt[e]) == null ? void 0 : Dt["@language"]) || "de"
242
242
  });
243
243
  }
244
244
  if (Object.keys(t.Additionals)[i] === "dct:references") {
@@ -320,7 +320,7 @@ async function Ut(t, g, l, b) {
320
320
  for (let e = 0; e < t.Additionals["dcatde:legalBasis"].length; e++)
321
321
  d.dataset["dcatde:legalBasis"] === void 0 && (d.dataset["dcatde:legalBasis"] = []), d.dataset["dcatde:legalBasis"].push({
322
322
  "@value": t.Additionals["dcatde:legalBasis"][e]["@value"],
323
- "@language": ((ut = (yt = (gt = t.Additionals) == null ? void 0 : gt["dcatde:legalBasis"]) == null ? void 0 : yt[e]) == null ? void 0 : ut["@language"]) || "de"
323
+ "@language": ((Rt = (Ot = (kt = t.Additionals) == null ? void 0 : kt["dcatde:legalBasis"]) == null ? void 0 : Ot[e]) == null ? void 0 : Rt["@language"]) || "de"
324
324
  });
325
325
  }
326
326
  if (Object.keys(t.Additionals)[i] === "dct:relation") {
@@ -458,7 +458,7 @@ async function Ut(t, g, l, b) {
458
458
  for (let e = 0; e < t.Additionals["foaf:page"].length; e++)
459
459
  d.dataset["foaf:page"] === void 0 && (d.dataset["foaf:page"] = []), d.dataset["foaf:page"].push({
460
460
  "dct:format": {
461
- "@id": (At = (ht = t.Additionals["foaf:page"]) == null ? void 0 : ht[e]) == null ? void 0 : At.uri
461
+ "@id": (St = (jt = t.Additionals["foaf:page"]) == null ? void 0 : jt[e]) == null ? void 0 : St.uri
462
462
  },
463
463
  "dct:title": t.Additionals["foaf:page"][e]["dct:title"],
464
464
  "dct:description": t.Additionals["foaf:page"][e]["dct:description"],
@@ -500,7 +500,7 @@ async function Ut(t, g, l, b) {
500
500
  }), Object.keys(t.Additionals)[i] === "dcatde:politicalGeocodingLevelURI")
501
501
  for (let e = 0; e < t.Additionals["dcatde:politicalGeocodingLevelURI"].length; e++)
502
502
  d.dataset["dcatde:politicalGeocodingLevelURI"] === void 0 && (d.dataset["dcatde:politicalGeocodingLevelURI"] = []), d.dataset["dcatde:politicalGeocodingLevelURI"].push({
503
- "@id": ((vt = (ft = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : ft[e]) == null ? void 0 : vt.uri) || ((kt = (Dt = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : Dt[e]) == null ? void 0 : kt["@id"]) || ""
503
+ "@id": ((It = (wt = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : wt[e]) == null ? void 0 : It.uri) || ((Lt = (xt = t.Additionals["dcatde:politicalGeocodingLevelURI"]) == null ? void 0 : xt[e]) == null ? void 0 : Lt["@id"]) || ""
504
504
  });
505
505
  }
506
506
  } catch (i) {
@@ -508,10 +508,9 @@ async function Ut(t, g, l, b) {
508
508
  }
509
509
  }
510
510
  } catch (c) {
511
- debugger;
512
511
  console.log(c);
513
512
  }
514
- let h = wt(d, u);
513
+ let h = Tt(d, u);
515
514
  return { actionParams: {
516
515
  id: y,
517
516
  catalog: l.permissions[0].rsname,
@@ -520,7 +519,7 @@ async function Ut(t, g, l, b) {
520
519
  description: d.dataset["dct:description"]["@value"]
521
520
  }, body: h };
522
521
  }
523
- function wt(t, g) {
522
+ function Tt(t, g) {
524
523
  const l = {}, b = Object.keys(t);
525
524
  for (let o = 0; o < b.length; o++)
526
525
  b[o], l[b[o]] = t[b[o]];
@@ -540,5 +539,5 @@ function wt(t, g) {
540
539
  return console.log(p), p;
541
540
  }
542
541
  export {
543
- Ut as default
542
+ zt as default
544
543
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.1.0-beta.76",
4
+ "version": "0.1.0-beta.77",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",