@piveau/dpi 0.1.0-beta.61 → 0.1.0-beta.63

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,22 +1,22 @@
1
- import { ref as v, computed as Ie, toRef as nt, onUnmounted as dt, onMounted as ct, getCurrentInstance as rt, watch as ut, createElementBlock as m, openBlock as r, Fragment as Q, createElementVNode as f, createBlock as X, createCommentVNode as p, toDisplayString as B, renderList as Ue, unref as U, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
1
+ import { ref as v, computed as Ve, toRef as nt, onUnmounted as dt, onMounted as ct, getCurrentInstance as rt, watch as ut, createElementBlock as m, openBlock as r, Fragment as Q, createElementVNode as f, createBlock as X, createCommentVNode as p, toDisplayString as z, renderList as Ue, unref as V, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
2
2
  import "@formkit/core";
3
3
  import { PhWarning as Y } from "@phosphor-icons/vue";
4
4
  import { useI18n as vt } from "vue-i18n";
5
5
  import { useStore as ht } from "vuex";
6
6
  import { useEditModeInfo as gt } from "../composables/useDpiEditMode.js";
7
7
  import { useFormValues as yt } from "../composables/useDpiFormValues.js";
8
- import M from "../config/dcatapdeHappyFlow/page-content-config.js";
8
+ import P from "../config/dcatapdeHappyFlow/page-content-config.js";
9
9
  import { getLicenses as kt, getFileTypes as bt, getFormatTypes as xt, getChecksumAlgorithms as wt, getPlannedAvailability as Dt, getLanguages as _t } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as Ve } from "../HappyFlowComponents/services/eventBus.js";
11
- import z from "../HappyFlowComponents/ui/ButtonV3.vue.js";
10
+ import { eventBus as Le } from "../HappyFlowComponents/services/eventBus.js";
11
+ import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
12
  import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
13
  import Z from "../HappyFlowComponents/ui/InputField.vue.js";
14
14
  import It from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import Ut from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import Vt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
15
+ import Vt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Ut from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
17
  import Lt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
- import Ct from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
- import Rt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
18
+ import Rt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
+ import Ct from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
20
  import St from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
21
  import At from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
22
  import Ft from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
@@ -27,7 +27,7 @@ import Bt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js"
27
27
  import Mt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
28
  import zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
29
  import Pt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
- import A from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
30
+ import F from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
31
  /* empty css */
32
32
  import Nt from "../../_virtual/_plugin-vue_export-helper.js";
33
33
  const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
@@ -35,7 +35,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
35
35
  class: "copy-large-regular"
36
36
  }, Ht = { class: "dpiV3_LinkAndMetadata input-container" }, Jt = {
37
37
  key: 0,
38
- class: "accUrlError"
38
+ class: "validation-error"
39
39
  }, Kt = { class: "copy-mini-regular" }, qt = {
40
40
  key: 1,
41
41
  class: "validation-error"
@@ -45,7 +45,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
45
45
  }, Xt = { class: "dpiV3_TitleDelete" }, Yt = { class: "dpiV3_documentationContents" }, Zt = { class: "dpiV3_Documentation" }, ea = {
46
46
  key: 3,
47
47
  class: "dpiV3_DocumentationsInDistr"
48
- }, ta = { class: "dpiV3_TitleDelete" }, aa = { class: "dpiV3_documentationContents" }, oa = { class: "dpiV3_Documentation" }, sa = { class: "dpiV3_DocumentationsInDistr" }, ia = { class: "dpiV3_TitleDelete" }, la = { key: 0 }, na = {
48
+ }, ta = { class: "dpiV3_TitleDelete" }, aa = { class: "dpiV3_documentationContents" }, oa = { class: "dpiV3_Documentation" }, ia = { class: "dpiV3_DocumentationsInDistr" }, sa = { class: "dpiV3_TitleDelete" }, la = { key: 0 }, na = {
49
49
  key: 0,
50
50
  class: "dpiV3_tempAddMore"
51
51
  }, da = {
@@ -90,15 +90,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
90
90
  }, _a = {
91
91
  key: 18,
92
92
  class: "copy-mini-regular dpiV3_text_error"
93
- }, Ta = { class: "dpiV3_CTA-Distribution" }, Ia = { class: "dpiV3_tempAddMore" }, Ua = {
93
+ }, Ta = { class: "dpiV3_CTA-Distribution" }, Ia = { class: "dpiV3_tempAddMore" }, Va = {
94
94
  __name: "DistributionSimplePage",
95
95
  props: {
96
96
  context: Object,
97
97
  inRap: Boolean
98
98
  },
99
- setup(V) {
100
- var ye, ke, be;
101
- const P = V, { isEditMode: te } = gt(), { t: D } = vt(), L = v(null), Le = {
99
+ setup(U) {
100
+ var ke, be, xe;
101
+ const L = U, { isEditMode: te } = gt(), { t: D } = vt(), R = v(null), Re = {
102
102
  isValid: "unset",
103
103
  id: 1,
104
104
  "dcat:accessURL": "",
@@ -130,121 +130,121 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
130
130
  title: "",
131
131
  "dcterms:license": ""
132
132
  }
133
- }, { formValues: b } = yt(), l = Ie(
134
- () => te.value || P.inRap
135
- ).value ? nt((ye = b.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Le]);
133
+ }, { formValues: b } = yt(), l = Ve(
134
+ () => te.value || L.inRap
135
+ ).value ? nt((ke = b.value.DistributionSimple) == null ? void 0 : ke["dcat:distribution"]) : v([Re]);
136
136
  l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
137
- const i = v({}), C = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), x = v([]), w = v([]), oe = v([]), O = v([]), se = v([]);
137
+ const s = v({}), C = v({}), ae = v([]), $ = v(!1), O = v(!1), k = v(0), x = v([]), w = v([]), oe = v([]), W = v([]), ie = v([]);
138
138
  v([...x.value]);
139
- const $ = v([...w.value]), Ce = ht(), W = v(null);
139
+ const E = v([...w.value]), Ce = ht(), j = v(null);
140
140
  v(null);
141
- const j = v(!1), ie = v(!1), H = v(!1), le = v(!0);
141
+ const H = v(!1), se = v(!1), B = v(!1), le = v(!0);
142
142
  for (let a = 0; a < l.value.length; a++)
143
- if (((ke = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((be = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.title) !== "") {
144
- ie.value = !1;
143
+ if (((be = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.uri) !== "" || ((xe = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
144
+ se.value = !1;
145
145
  break;
146
146
  }
147
- function Re() {
147
+ function Se() {
148
148
  ae.value = [
149
149
  {
150
150
  title: D(
151
151
  "message.dataupload.datasets.dcat:distribution.recommended.title"
152
152
  ),
153
- items: M.distributions.Recommended.map(
153
+ items: P.distributions.Recommended.map(
154
154
  (a) => D(
155
155
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
156
156
  ) || a
157
157
  ),
158
- keys: M.distributions.Recommended
158
+ keys: P.distributions.Recommended
159
159
  },
160
160
  {
161
161
  title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
162
- items: M.distributions.Advanced.map(
162
+ items: P.distributions.Advanced.map(
163
163
  (a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
164
164
  ),
165
- keys: M.distributions.Advanced
165
+ keys: P.distributions.Advanced
166
166
  }
167
167
  ];
168
168
  }
169
169
  function ne(a) {
170
170
  var t, e, o;
171
- (o = (e = (t = P.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || J(), le.value = !1);
171
+ (o = (e = (t = L.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || J(), le.value = !1);
172
172
  }
173
173
  function J(a) {
174
174
  let t = !0;
175
175
  l.value = l.value.map((e) => {
176
176
  var c;
177
- const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((c = e["dct:format"]) == null ? void 0 : c.label) != null && e["dct:format"].label.trim() !== "" && w.value.some(
177
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), i = !!((c = e["dct:format"]) != null && c.label) && e["dct:format"].label.trim() !== "" && w.value.some(
178
178
  (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
179
- ), n = o && s;
180
- return n || (t = !1), a === e.id ? {
179
+ );
180
+ return o && i || (t = !1), a === e.id && !L.inRap ? {
181
181
  ...e,
182
- isValid: n,
182
+ allValid: t,
183
183
  showErrorDownloadURL: !1,
184
184
  showErrorFormat: !1
185
185
  } : {
186
186
  ...e,
187
- isValid: n,
187
+ allValid: t,
188
188
  showErrorDownloadURL: !o,
189
- showErrorFormat: !s
189
+ showErrorFormat: !i
190
190
  };
191
- }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), b.value.DistributionSimple["dcat:distribution"] = l.value;
191
+ }), L.inRap == !0 && de(), console.log(t), t && (B.value = !1), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (B.value = !t), b.value.DistributionSimple["dcat:distribution"] = l.value;
192
192
  }
193
- function E(a, t) {
194
- var o, s, n;
193
+ function M(a, t) {
194
+ var o, i, n;
195
195
  let e = !0;
196
196
  if (t === "dcat:accessURL")
197
- e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
197
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, (i = a[t]) == null || i.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
198
198
  else if (t === "dct:format") {
199
199
  const c = (n = a[t].label) == null ? void 0 : n.trim();
200
200
  e = c !== "" && w.value.some(
201
201
  (h) => h["@value"].toLowerCase() === c.toLowerCase()
202
202
  ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, c === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
203
203
  }
204
- Se();
204
+ de();
205
205
  }
206
- function Se() {
206
+ function de() {
207
207
  let a = !0;
208
208
  l.value = l.value.map((t) => {
209
209
  var n, c;
210
- const e = ((n = t["dcat:accessURL"]) == null ? void 0 : n.trim()) !== "" && K(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && $.value.some(
210
+ const e = ((n = t["dcat:accessURL"]) == null ? void 0 : n.trim()) !== "" && K(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && E.value.some(
211
211
  (h) => {
212
212
  var g;
213
213
  return h["@value"].toUpperCase() === ((g = t["dct:format"].label) == null ? void 0 : g.toUpperCase());
214
214
  }
215
- ), s = e && o;
216
- return console.log(s), s || (a = !1), {
215
+ ), i = e && o;
216
+ return console.log(i), i || (a = !1), {
217
217
  ...t,
218
- isValid: s
218
+ isValid: i
219
219
  };
220
- }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, b.value.DistributionSimple["dcat:distribution"] = l.value;
220
+ }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), B.value = !a, b.value.DistributionSimple["dcat:distribution"] = l.value;
221
221
  }
222
222
  function K(a) {
223
223
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
224
224
  }
225
225
  dt(() => {
226
- Ve.off("nextClicked", ne), L.value && clearTimeout(L.value);
226
+ Le.off("nextClicked", ne), R.value && clearTimeout(R.value);
227
227
  });
228
- let de = v([]);
228
+ let ce = v([]);
229
229
  ct(async () => {
230
- Ve.on("nextClicked", ne);
230
+ Le.on("nextClicked", ne);
231
231
  const a = rt(), t = a.appContext.app.config.globalProperties.$env;
232
232
  if (a) {
233
233
  const e = a.appContext.app.config.globalProperties.$env;
234
- W.value = e.content.dataProviderInterface.specification;
234
+ j.value = e.content.dataProviderInterface.specification;
235
235
  } else
236
236
  console.log("Instance is null!");
237
237
  try {
238
238
  const e = await kt(t.api.baseUrl);
239
- de.value = e.map((s) => ({
240
- uri: s.uri,
241
- "@value": s.value,
242
- label: s.label
239
+ ce.value = e.map((i) => ({
240
+ uri: i.uri,
241
+ "@value": i.value,
242
+ label: i.label
243
243
  }));
244
244
  const o = await bt(t.api.baseUrl);
245
- x.value = o.results.map((s) => ({
246
- "@value": s.pref_label.en,
247
- uri: s.resource,
245
+ x.value = o.results.map((i) => ({
246
+ "@value": i.pref_label.en,
247
+ uri: i.resource,
248
248
  selected: !1
249
249
  }));
250
250
  } catch (e) {
@@ -264,79 +264,79 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
264
264
  const e = await wt(t.api.baseUrl);
265
265
  oe.value = e;
266
266
  const o = await Dt(t.api.baseUrl);
267
- O.value = o;
268
- const s = await _t(t.api.baseUrl);
269
- se.value = s;
267
+ W.value = o;
268
+ const i = await _t(t.api.baseUrl);
269
+ ie.value = i;
270
270
  } catch (e) {
271
271
  console.log(e);
272
272
  }
273
- Re();
273
+ Se();
274
274
  });
275
275
  function Ae(a, t) {
276
- const e = l.value.find((s) => s.id === t);
276
+ const e = l.value.find((i) => i.id === t);
277
277
  if (!e) return;
278
- let o = w.value.find((s) => s["@value"] === a).uri || "";
279
- e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.value.DistributionSimple["dcat:distribution"] = l.value;
280
- }
281
- function ce(a, t) {
282
- const e = l.value.find((o) => o.id === t);
283
- e ? (e["dct:modified"] = a, i.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
278
+ let o = w.value.find((i) => i["@value"] === a).uri || "";
279
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", M(e, "dct:format"), b.value.DistributionSimple["dcat:distribution"] = l.value;
284
280
  }
285
281
  function re(a, t) {
286
282
  const e = l.value.find((o) => o.id === t);
287
- e ? (e["dct:issued"] = a, i.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
283
+ e ? (e["dct:modified"] = a, s.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
288
284
  }
289
285
  function ue(a, t) {
290
286
  const e = l.value.find((o) => o.id === t);
291
- e ? (e["dct:description"] = a, i.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
287
+ e ? (e["dct:issued"] = a, s.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
292
288
  }
293
- function me(a, t, e) {
294
- const o = l.value.find((s) => s.id === t);
295
- e || (console.log(O.value), e = O.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, i.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
296
- }
297
- function fe(a, t) {
289
+ function me(a, t) {
298
290
  const e = l.value.find((o) => o.id === t);
299
- e ? (e["adms:status"] = a, i.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
291
+ e ? (e["dct:description"] = a, s.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
292
+ }
293
+ function fe(a, t, e) {
294
+ const o = l.value.find((i) => i.id === t);
295
+ e || (console.log(W.value), e = W.value.find((i) => i.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, s.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
300
296
  }
301
- function pe(a, t, e, o) {
302
- ie.value = !0;
303
- const s = l.value.find((n) => n.id === e);
304
- o || (o = oe.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", i.value.checksumText = a, i.value.checksumDropdownText = t, i.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
297
+ function pe(a, t) {
298
+ const e = l.value.find((o) => o.id === t);
299
+ e ? (e["adms:status"] = a, s.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
305
300
  }
306
301
  function ve(a, t, e, o) {
307
- const s = l.value.find((c) => c.id === e);
308
- let n = de.value.find(
302
+ se.value = !0;
303
+ const i = l.value.find((n) => n.id === e);
304
+ o || (o = oe.value.find((n) => n.value === t).resource || ""), i ? (i.checksum.title = a, i.checksum["spdx:checksum"] = t, i.checksum.uri = o || "no URI", s.value.checksumText = a, s.value.checksumDropdownText = t, s.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
305
+ }
306
+ function he(a, t, e, o) {
307
+ const i = l.value.find((c) => c.id === e);
308
+ let n = ce.value.find(
309
309
  (c) => c["@value"] === t
310
310
  );
311
- s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, b.value.DistributionSimple["dct:license"] = [
311
+ i ? (i["dct:license"].title = a, i["dcatde:licenseAttributionByText"] = a, i["dct:license"]["dcterms:license"] = t, i["dct:license"].uri = n.uri, b.value.DistributionSimple["dct:license"] = [
312
312
  {
313
313
  title: a,
314
314
  "dcterms:license": t,
315
315
  uri: n.uri
316
316
  }
317
- ], i.value.changeLicenseText = a, i.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
317
+ ], s.value.changeLicenseText = a, s.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
318
318
  }
319
- function he(a, t, e) {
320
- const o = l.value.find((s) => s.id === t);
321
- e || (e = se.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], i.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
319
+ function ge(a, t, e) {
320
+ const o = l.value.find((i) => i.id === t);
321
+ e || (e = ie.value.find((i) => i.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], s.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
322
322
  }
323
- function ge(a, t) {
323
+ function ye(a, t) {
324
324
  const e = l.value.find((o) => o.id === t);
325
- e ? (e["dcat:byteSize"] = a, i.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
325
+ e ? (e["dcat:byteSize"] = a, s.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
326
326
  }
327
327
  function _(a, t, e) {
328
328
  const o = l.value.find((n) => n.id === e);
329
- let s = x.value.find((n) => n["@value"] === a).uri || "";
329
+ let i = x.value.find((n) => n["@value"] === a).uri || "";
330
330
  if (o)
331
- switch (o[t] = { label: a, uri: s }, t) {
331
+ switch (o[t] = { label: a, uri: i }, t) {
332
332
  case "dcat:mediaType":
333
- i.value.mediaTypeText = a;
333
+ s.value.mediaTypeText = a;
334
334
  break;
335
335
  case "dcat:compressFormat":
336
- i.value.compressFormatText = a;
336
+ s.value.compressFormatText = a;
337
337
  break;
338
338
  case "dcat:packageFormat":
339
- i.value.packageFormatText = a;
339
+ s.value.packageFormatText = a;
340
340
  break;
341
341
  }
342
342
  else
@@ -418,7 +418,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
418
418
  );
419
419
  }
420
420
  function Oe(a, t, e) {
421
- const o = b.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
421
+ const o = b.value.DistributionSimple["dcat:distribution"].find((i) => i.id === t);
422
422
  o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
423
423
  }
424
424
  function We(a) {
@@ -445,9 +445,9 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
445
445
  !0
446
446
  );
447
447
  }
448
- const Je = Ie(() => W.value ? Ce.getters["dpiStore/getNavSteps"](W.value) : {});
448
+ const Je = Ve(() => j.value ? Ce.getters["dpiStore/getNavSteps"](j.value) : {});
449
449
  ut(Je, (a) => {
450
- }), te.value || P.context.node.input([{ isValid: "unset" }]);
450
+ }), te.value || L.context.node.input([{ isValid: "unset" }]);
451
451
  function Ke() {
452
452
  const a = Date.now();
453
453
  l.value.push({
@@ -495,14 +495,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
495
495
  return;
496
496
  }
497
497
  e.documentations = e.documentations.filter(
498
- (o) => t.some((s) => s.id === o.id)
498
+ (o) => t.some((i) => i.id === o.id)
499
499
  ), t.forEach((o) => {
500
- const s = e.documentations.findIndex(
500
+ const i = e.documentations.findIndex(
501
501
  (n) => n.id === o.id
502
502
  );
503
- if (s !== -1)
504
- e.documentations[s] = {
505
- ...e.documentations[s],
503
+ if (i !== -1)
504
+ e.documentations[i] = {
505
+ ...e.documentations[i],
506
506
  ...o
507
507
  };
508
508
  else {
@@ -533,15 +533,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
533
533
  }
534
534
  e.accessServices = e.accessServices.filter(
535
535
  (o) => t.some(
536
- (s) => s.id === o.id
536
+ (i) => i.id === o.id
537
537
  )
538
538
  ), t.forEach((o) => {
539
- const s = e.accessServices.findIndex(
539
+ const i = e.accessServices.findIndex(
540
540
  (n) => n.id === o.id
541
541
  );
542
- if (s !== -1)
543
- e.accessServices[s] = {
544
- ...e.accessServices[s],
542
+ if (i !== -1)
543
+ e.accessServices[i] = {
544
+ ...e.accessServices[i],
545
545
  ...o
546
546
  };
547
547
  else {
@@ -557,7 +557,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
557
557
  }
558
558
  function Qe(a, t) {
559
559
  var o;
560
- const e = l.value.find((s) => s.id === a);
560
+ const e = l.value.find((i) => i.id === a);
561
561
  if (!e) {
562
562
  console.error(`Distribution with ID ${a} not found`);
563
563
  return;
@@ -567,22 +567,22 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
567
567
  return;
568
568
  }
569
569
  e.conformsToItems = ((o = e == null ? void 0 : e.conformsToItems) == null ? void 0 : o.filter(
570
- (s) => t.some((n) => n.id === s.id)
571
- )) || [], t.forEach((s) => {
570
+ (i) => t.some((n) => n.id === i.id)
571
+ )) || [], t.forEach((i) => {
572
572
  const n = e.conformsToItems.findIndex(
573
- (c) => c.id === s.id
573
+ (c) => c.id === i.id
574
574
  );
575
575
  if (n !== -1)
576
576
  e.conformsToItems[n] = {
577
577
  ...e.conformsToItems[n],
578
- ...s
578
+ ...i
579
579
  };
580
580
  else {
581
581
  const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((h) => h.id)) + 1 : 1;
582
582
  e.conformsToItems.push({
583
- id: s.id || c,
584
- "dcat:downloadURL": s["dcat:downloadURL"] || "",
585
- "dct:title": s["dct:title"] || ""
583
+ id: i.id || c,
584
+ "dcat:downloadURL": i["dcat:downloadURL"] || "",
585
+ "dct:title": i["dct:title"] || ""
586
586
  });
587
587
  }
588
588
  });
@@ -592,12 +592,12 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
592
592
  function Ye(a) {
593
593
  if (a === "deleteDataset" && k.value !== null) {
594
594
  if (l.value.length === 1) {
595
- j.value = !0;
595
+ H.value = !0;
596
596
  return;
597
597
  }
598
598
  l.value = l.value.filter(
599
599
  (t) => t.id !== k.value
600
- ), j.value = !1, k.value = null, J();
600
+ ), H.value = !1, k.value = null, J();
601
601
  }
602
602
  }
603
603
  function Ze(a) {
@@ -611,10 +611,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
611
611
  t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
612
612
  }
613
613
  function et(a) {
614
- var e, o, s, n, c;
614
+ var e, o, i, n, c;
615
615
  k.value = a;
616
616
  const t = l.value.find((h) => h.id === a);
617
- t && (i.value = {
617
+ t && (s.value = {
618
618
  button: "",
619
619
  header: "Optionale Informationen hinzufügen",
620
620
  text: "",
@@ -630,7 +630,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
630
630
  // nameTextByClauses: distribution["dcatde:licenseAttributionByText"] || "",
631
631
  // accessRightsText: distribution["dct:accessRights"].uri || "",
632
632
  availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
633
- languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
633
+ languageText: ((i = t == null ? void 0 : t["dct:language"]) == null ? void 0 : i["@value"]) || "",
634
634
  byteSizeText: t["dcat:byteSize"] || "",
635
635
  mediaTypeText: t["dcat:mediaType"].label || "",
636
636
  // compressFormatText: distribution["dcat:compressFormat"].label || "",
@@ -644,15 +644,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
644
644
  conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
645
645
  policyItems: (t == null ? void 0 : t.policyItems) || [],
646
646
  downloadURL: (t == null ? void 0 : t.downloadURL) || []
647
- }, F.value = !0, document.body.style.overflow = "hidden");
647
+ }, $.value = !0, document.body.style.overflow = "hidden");
648
648
  }
649
649
  function tt() {
650
- F.value = !1, document.body.style.overflow = "auto";
650
+ $.value = !1, document.body.style.overflow = "auto";
651
651
  }
652
652
  function at(a) {
653
653
  k.value = a;
654
- const t = l.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
655
- i.value = {
654
+ const t = l.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", i = t ? t["dcat:accessURL"] : "";
655
+ s.value = {
656
656
  button: "Löschen",
657
657
  header: D(
658
658
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
@@ -663,36 +663,36 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
663
663
  action: "deleteDataset",
664
664
  title: e,
665
665
  format: o,
666
- distributionLink: s
667
- }, F.value = !0;
666
+ distributionLink: i
667
+ }, $.value = !0;
668
668
  }
669
- function y(a, t, e, o, s) {
669
+ function y(a, t, e, o, i) {
670
670
  const c = JSON.stringify({
671
671
  distributionId: a,
672
672
  optType: e,
673
673
  useUndefined: o,
674
- isArray: s
674
+ isArray: i
675
675
  });
676
676
  C.value = {
677
677
  button: "Löschen",
678
678
  header: `${t} löschen`,
679
679
  text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
680
680
  action: c
681
- }, N.value = !0;
681
+ }, O.value = !0;
682
682
  }
683
683
  function G(a, t, e) {
684
- var s, n, c, h;
684
+ var i, n, c, h;
685
685
  const o = l.value.find((g) => g.id === e);
686
686
  if (o)
687
687
  if (t === "dcat:accessURL") {
688
- const g = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
689
- o[t] = g, L.value && clearTimeout(L.value), L.value = setTimeout(() => {
690
- E(o, t);
688
+ const g = (i = a == null ? void 0 : a.target) == null ? void 0 : i.value;
689
+ o[t] = g, R.value && clearTimeout(R.value), R.value = setTimeout(() => {
690
+ M(o, t);
691
691
  }, 800);
692
692
  } else if (t === "dct:format") {
693
693
  const g = typeof a == "string" ? a.trim() : (c = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : c.trim();
694
694
  if (o.showErrorFormat = !1, o.formatErrorMessage = "", g === "")
695
- $.value = [...w.value];
695
+ E.value = [...w.value];
696
696
  else {
697
697
  const T = w.value.find(
698
698
  (I) => I["@value"].toLowerCase() === g.toLowerCase()
@@ -700,44 +700,44 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
700
700
  T ? (o[t] = {
701
701
  label: T["@value"],
702
702
  uri: T.uri
703
- }, o.showErrorFormat = !1, o.formatErrorMessage = "") : g === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: g, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), $.value = w.value.filter(
703
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : g === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: g, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), E.value = w.value.filter(
704
704
  (I) => I["@value"].toLowerCase().includes(g.toLowerCase())
705
705
  );
706
706
  }
707
- E(o, t);
707
+ M(o, t);
708
708
  } else
709
- o[t] = (h = a == null ? void 0 : a.target) == null ? void 0 : h.value, E(o, t);
709
+ o[t] = (h = a == null ? void 0 : a.target) == null ? void 0 : h.value, M(o, t);
710
710
  }
711
711
  function ot(a, t) {
712
712
  const e = l.value.find((o) => o.id === a);
713
713
  e.documentations = e.documentations.filter(
714
- (o) => t.some((s) => s.id === o.id)
714
+ (o) => t.some((i) => i.id === o.id)
715
715
  );
716
716
  }
717
- function st(a, t) {
717
+ function it(a, t) {
718
718
  const e = l.value.find((o) => o.id === a);
719
719
  e.accessServices = e.accessServices.filter(
720
- (o) => t.some((s) => s.id === o.id)
720
+ (o) => t.some((i) => i.id === o.id)
721
721
  );
722
722
  }
723
- function it(a, t) {
723
+ function st(a, t) {
724
724
  const e = l.value.find((o) => o.id === a);
725
725
  e.conformsToItems = e.conformsToItems.filter(
726
- (o) => t.some((s) => s.id === o.id)
726
+ (o) => t.some((i) => i.id === o.id)
727
727
  );
728
728
  }
729
729
  function lt(a, t) {
730
730
  const e = l.value.find((o) => o.id === a);
731
731
  e.policyItems = e.policyItems.filter(
732
- (o) => t.some((s) => s.id === o.id)
732
+ (o) => t.some((i) => i.id === o.id)
733
733
  );
734
734
  }
735
735
  return (a, t) => (r(), m(Q, null, [
736
736
  f("div", Ot, [
737
- V.inRap ? p("", !0) : (r(), m("h4", Wt, B(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
738
- V.inRap ? p("", !0) : (r(), m("div", jt, B(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
739
- (r(!0), m(Q, null, Ue(U(l), (e, o) => {
740
- var s, n, c, h, g, T, I, xe, we, De, _e, Te;
737
+ U.inRap ? p("", !0) : (r(), m("h4", Wt, z(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
738
+ U.inRap ? p("", !0) : (r(), m("div", jt, z(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
739
+ (r(!0), m(Q, null, Ue(V(l), (e, o) => {
740
+ var i, n, c, h, g, T, I, we, De, _e, Te, Ie;
741
741
  return r(), m("div", {
742
742
  key: e.id,
743
743
  class: "dpiV3AutoCompleteWrap"
@@ -764,11 +764,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
764
764
  onInput: (d) => G(d, "dcat:accessURL", e.id)
765
765
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
766
766
  e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Jt, [
767
- u(U(Y), {
767
+ u(V(Y), {
768
768
  size: 16,
769
769
  weight: "fill"
770
770
  }),
771
- f("span", Kt, B(e.urlErrorMessage), 1)
771
+ f("span", Kt, z(e.urlErrorMessage), 1)
772
772
  ])) : p("", !0),
773
773
  u(Tt, {
774
774
  "dropdown-width": "large",
@@ -791,18 +791,18 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
791
791
  autocomplete: "true",
792
792
  showError: e.showErrorFormat
793
793
  },
794
- data: $.value,
794
+ data: E.value,
795
795
  autocomplete: !0,
796
796
  onInput: (d) => G(d, "dct:format", e.id),
797
797
  "onUpdate:modelValue": (d) => Ae(d, e.id),
798
- "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
798
+ "model-value": (i = e == null ? void 0 : e["dct:format"]) == null ? void 0 : i.label
799
799
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
800
800
  e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", qt, [
801
- u(U(Y), {
801
+ u(V(Y), {
802
802
  size: 16,
803
803
  weight: "fill"
804
804
  }),
805
- f("span", Gt, B(e.formatErrorMessage), 1)
805
+ f("span", Gt, z(e.formatErrorMessage), 1)
806
806
  ])) : p("", !0),
807
807
  u(Z, {
808
808
  modelValue: e["dct:title"],
@@ -826,7 +826,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
826
826
  f("div", Xt, [
827
827
  t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
828
828
  f("div", null, [
829
- u(A, {
829
+ u(F, {
830
830
  "button-text": "löschen",
831
831
  onClick: (d) => Pe(e.id)
832
832
  }, null, 8, ["onClick"])
@@ -849,7 +849,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
849
849
  f("div", ta, [
850
850
  t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
851
851
  f("div", null, [
852
- u(A, {
852
+ u(F, {
853
853
  "button-text": "löschen",
854
854
  onClick: (d) => Ne(e.id)
855
855
  }, null, 8, ["onClick"])
@@ -857,12 +857,12 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
857
857
  ]),
858
858
  f("div", aa, [
859
859
  f("div", oa, [
860
- u(Vt, {
860
+ u(Ut, {
861
861
  "access-services": e.accessServices,
862
862
  "distribution-id": e.id,
863
863
  "as-card": !0,
864
864
  "show-delete-button": !0,
865
- onUpdate: (d) => st(
865
+ onUpdate: (d) => it(
866
866
  e.id,
867
867
  d
868
868
  )
@@ -870,24 +870,24 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
870
870
  ])
871
871
  ])
872
872
  ])) : p("", !0),
873
- (r(!0), m(Q, { key: 4 }, Ue(e["dcat:downloadURL"], (d, R) => (r(), m("div", sa, [
874
- f("div", ia, [
873
+ (r(!0), m(Q, { key: 4 }, Ue(e["dcat:downloadURL"], (d, S) => (r(), m("div", ia, [
874
+ f("div", sa, [
875
875
  t[8] || (t[8] = f("div", {
876
876
  class: "dpiV3_label",
877
877
  style: { margin: "0" }
878
878
  }, " DownloadURL (optional) ", -1)),
879
879
  e["dcat:downloadURL"].length !== 1 ? (r(), m("div", la, [
880
- u(A, {
880
+ u(F, {
881
881
  "button-text": "löschen",
882
- onClick: (S) => e["dcat:downloadURL"].splice(R, 1)
882
+ onClick: (A) => e["dcat:downloadURL"].splice(S, 1)
883
883
  }, null, 8, ["onClick"])
884
884
  ])) : p("", !0)
885
885
  ]),
886
886
  u(Z, {
887
- onInput: (S) => Oe(
888
- S.target.value,
887
+ onInput: (A) => Oe(
888
+ A.target.value,
889
889
  e.id,
890
- R
890
+ S
891
891
  ),
892
892
  addOnText: !1,
893
893
  datePicker: !1,
@@ -897,17 +897,17 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
897
897
  inputFieldSize: "large",
898
898
  initialHintText: !1,
899
899
  label: "",
900
- modelValue: e["dcat:downloadURL"][R]["@id"],
901
- "onUpdate:modelValue": (S) => e["dcat:downloadURL"][R]["@id"] = S,
900
+ modelValue: e["dcat:downloadURL"][S]["@id"],
901
+ "onUpdate:modelValue": (A) => e["dcat:downloadURL"][S]["@id"] = A,
902
902
  showEndIcon: !1
903
903
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
904
- R === e["dcat:downloadURL"].length - 1 ? (r(), m("div", na, [
905
- u(z, {
904
+ S === e["dcat:downloadURL"].length - 1 ? (r(), m("div", na, [
905
+ u(N, {
906
906
  buttonText: "Weitere DownloadURL hinzufügen",
907
907
  size: "small",
908
908
  iconStart: "plus",
909
909
  variant: "tertiary",
910
- onClick: (S) => e["dcat:downloadURL"].push({ "@id": "" })
910
+ onClick: (A) => e["dcat:downloadURL"].push({ "@id": "" })
911
911
  }, null, 8, ["onClick"])
912
912
  ])) : p("", !0)
913
913
  ]))), 256)),
@@ -916,7 +916,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
916
916
  "show-delete-button": !0,
917
917
  "distribution-id": e.id,
918
918
  "model-value": e["dct:modified"],
919
- onAddModifiedDate: ce,
919
+ onAddModifiedDate: re,
920
920
  onDeleteButtonClicked: (d) => We(e.id)
921
921
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
922
922
  ])) : p("", !0),
@@ -925,7 +925,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
925
925
  "show-delete-button": !0,
926
926
  "distribution-id": e.id,
927
927
  "model-value": e["dct:issued"],
928
- onAddIssuedDate: re,
928
+ onAddIssuedDate: ue,
929
929
  onDeleteButtonClicked: (d) => je(e.id)
930
930
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
931
931
  ])) : p("", !0),
@@ -934,7 +934,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
934
934
  "distribution-id": e.id,
935
935
  "description-text": e["dct:description"],
936
936
  "show-delete-button": !0,
937
- onAddDescription: ue,
937
+ onAddDescription: me,
938
938
  onDeleteDescription: (d) => He(e.id)
939
939
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
940
940
  ], 512), [
@@ -948,7 +948,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
948
948
  "availability-text": e["dcatap:availability"].label.de,
949
949
  "distribution-id": e.id,
950
950
  "show-delete-button": !0,
951
- onAddAvailability: me,
951
+ onAddAvailability: fe,
952
952
  onDeleteButtonClicked: (d) => $e(e.id)
953
953
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
954
954
  ])) : p("", !0),
@@ -957,7 +957,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
957
957
  "status-text": e["adms:status"]["@value"],
958
958
  "distribution-id": e.id,
959
959
  "show-delete-button": !0,
960
- onAddStatus: fe,
960
+ onAddStatus: pe,
961
961
  onDeleteButtonClicked: (d) => Ee(e.id)
962
962
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
963
963
  ])) : p("", !0),
@@ -969,24 +969,24 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
969
969
  distIndex: o,
970
970
  "checksum-u-r-i": e.checksum.uri,
971
971
  "show-delete-button": !0,
972
- onAddChecksum: pe
972
+ onAddChecksum: ve
973
973
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
974
974
  ])) : p("", !0),
975
975
  Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), m("div", pa, [
976
- u(Rt, {
976
+ u(Ct, {
977
977
  "change-license-text": (c = e["dct:license"]) == null ? void 0 : c.title,
978
978
  "change-license-dropdown-text": (h = e["dct:license"]) == null ? void 0 : h["dcterms:license"],
979
979
  "distribution-id": e.id,
980
980
  "as-card": !0,
981
981
  "show-delete-button": !0,
982
- onAddChangeLicense: ve
982
+ onAddChangeLicense: he
983
983
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
984
984
  ])) : p("", !0),
985
985
  e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", va, [
986
986
  f("div", ha, [
987
987
  t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
988
988
  f("div", null, [
989
- u(A, {
989
+ u(F, {
990
990
  "button-text": "löschen",
991
991
  onClick: (d) => Fe(e.id)
992
992
  }, null, 8, ["onClick"])
@@ -997,14 +997,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
997
997
  "distribution-id": e.id,
998
998
  "as-card": !0,
999
999
  "show-delete-button": !0,
1000
- onUpdate: (d) => it(e.id, d)
1000
+ onUpdate: (d) => st(e.id, d)
1001
1001
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1002
1002
  ])) : p("", !0),
1003
1003
  ((T = (g = e == null ? void 0 : e.policyItems) == null ? void 0 : g[0]) == null ? void 0 : T["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ga, [
1004
1004
  f("div", ya, [
1005
1005
  t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
1006
1006
  f("div", null, [
1007
- u(A, {
1007
+ u(F, {
1008
1008
  "button-text": "löschen",
1009
1009
  onClick: (d) => ze(e.id)
1010
1010
  }, null, 8, ["onClick"])
@@ -1017,21 +1017,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1017
1017
  onUpdate: (d) => lt(e.id, d)
1018
1018
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1019
1019
  ])) : p("", !0),
1020
- (xe = (I = e["dct:language"]) == null ? void 0 : I[0]) != null && xe.label || (De = (we = e["dct:language"]) == null ? void 0 : we[0]) != null && De["@value"] && ((Te = (_e = e["dct:language"]) == null ? void 0 : _e[0]) == null ? void 0 : Te["@value"].trim()) !== "" ? (r(), m("div", ka, [
1020
+ (we = (I = e["dct:language"]) == null ? void 0 : I[0]) != null && we.label || (_e = (De = e["dct:language"]) == null ? void 0 : De[0]) != null && _e["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), m("div", ka, [
1021
1021
  u(Bt, {
1022
1022
  "distribution-id": e.id,
1023
1023
  "show-delete-button": !1,
1024
- onAddLanguage: he,
1024
+ onAddLanguage: ge,
1025
1025
  onDeleteButtonClicked: (d) => Me(e.id),
1026
1026
  inOverview: !0
1027
1027
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1028
1028
  ])) : p("", !0),
1029
1029
  e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", ba, [
1030
- u(Ct, {
1030
+ u(Rt, {
1031
1031
  "byte-size-prop": e["dcat:byteSize"],
1032
1032
  "distribution-id": e.id,
1033
1033
  "show-delete-button": !0,
1034
- onAddByteSize: ge,
1034
+ onAddByteSize: ye,
1035
1035
  onDeleteButtonClicked: (d) => Be(e.id)
1036
1036
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1037
1037
  ])) : p("", !0),
@@ -1068,17 +1068,17 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1068
1068
  onDeleteButtonClicked: t[2] || (t[2] = (d) => q("dcat:packageFormat", k.value))
1069
1069
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1070
1070
  ])) : p("", !0),
1071
- j.value && U(l).length === 1 ? (r(), m("p", _a, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1071
+ H.value && V(l).length === 1 ? (r(), m("p", _a, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1072
1072
  ]),
1073
1073
  f("div", Ta, [
1074
- u(z, {
1074
+ u(N, {
1075
1075
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1076
1076
  size: "small",
1077
1077
  "icon-start": "PlusSquare",
1078
1078
  variant: "tertiary",
1079
1079
  onClick: (d) => et(e.id)
1080
1080
  }, null, 8, ["button-text", "onClick"]),
1081
- U(l).length > 1 ? (r(), X(z, {
1081
+ V(l).length > 1 ? (r(), X(N, {
1082
1082
  key: 0,
1083
1083
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1084
1084
  size: "small",
@@ -1090,7 +1090,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1090
1090
  ]);
1091
1091
  }), 128)),
1092
1092
  f("div", Ia, [
1093
- u(z, {
1093
+ u(N, {
1094
1094
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1095
1095
  size: "large",
1096
1096
  "icon-start": "plus",
@@ -1098,86 +1098,86 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1098
1098
  onClick: Ke
1099
1099
  }, null, 8, ["button-text"])
1100
1100
  ]),
1101
- H.value ? (r(), m("div", {
1101
+ B.value ? (r(), m("div", {
1102
1102
  key: 2,
1103
- class: pt(V.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1103
+ class: pt(U.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1104
1104
  }, [
1105
- u(U(Y), {
1105
+ u(V(Y), {
1106
1106
  size: 16,
1107
1107
  weight: "fill"
1108
1108
  }),
1109
1109
  t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1110
1110
  ], 2)) : p("", !0)
1111
1111
  ]),
1112
- F.value ? (r(), X(Ut, {
1112
+ $.value ? (r(), X(Vt, {
1113
1113
  key: 0,
1114
1114
  "distibution-id": k.value,
1115
1115
  "file-types": x.value,
1116
- buttons: i.value.button,
1117
- "header-text": i.value.header,
1118
- text: i.value.text,
1119
- "show-buttons": i.value.showButtons,
1120
- "optional-info-view": i.value.optionalInfoView,
1121
- documentations: i.value.documentations,
1122
- "access-services": i.value.accessServices,
1123
- action: i.value.action,
1124
- title: i.value.title,
1125
- format: i.value.format,
1126
- "distribution-link": i.value.distributionLink,
1116
+ buttons: s.value.button,
1117
+ "header-text": s.value.header,
1118
+ text: s.value.text,
1119
+ "show-buttons": s.value.showButtons,
1120
+ "optional-info-view": s.value.optionalInfoView,
1121
+ documentations: s.value.documentations,
1122
+ "access-services": s.value.accessServices,
1123
+ action: s.value.action,
1124
+ title: s.value.title,
1125
+ format: s.value.format,
1126
+ "distribution-link": s.value.distributionLink,
1127
1127
  sections: ae.value,
1128
- context: V.context,
1129
- "distribution-id": i.value.distributionId,
1130
- "modified-date": i.value.dctModified || "",
1131
- "issued-date": i.value.dctIssued || "",
1132
- "description-text": i.value.dctDescription || "",
1133
- "access-rights-text": i.value.accessRightsText || "",
1134
- "availability-text": i.value.availabilityText || "",
1135
- "language-text": i.value.languageText || "",
1136
- "byte-size-text": i.value.byteSizeText || "",
1137
- "media-type-text": i.value.mediaTypeText || "",
1138
- "compress-format-text": i.value.compressFormatText || "",
1139
- "package-format-text": i.value.packageFormatText || "",
1140
- "status-text": i.value.statusText || "",
1141
- "checksum-text": i.value.checksumText || "",
1142
- "checksum-u-r-i": i.value.checksumURI || "",
1143
- "checksum-dropdown-text": i.value.checksumDropdownText || "",
1144
- "change-license-text": i.value.changeLicenseText || "",
1145
- "change-license-dropdown-text": i.value.changeLicenseDropdownText || "",
1146
- "conforms-to-items": i.value.conformsToItems,
1147
- "policy-items": i.value.policyItems,
1148
- "download-URL": i.value.downloadURL,
1128
+ context: U.context,
1129
+ "distribution-id": s.value.distributionId,
1130
+ "modified-date": s.value.dctModified || "",
1131
+ "issued-date": s.value.dctIssued || "",
1132
+ "description-text": s.value.dctDescription || "",
1133
+ "access-rights-text": s.value.accessRightsText || "",
1134
+ "availability-text": s.value.availabilityText || "",
1135
+ "language-text": s.value.languageText || "",
1136
+ "byte-size-text": s.value.byteSizeText || "",
1137
+ "media-type-text": s.value.mediaTypeText || "",
1138
+ "compress-format-text": s.value.compressFormatText || "",
1139
+ "package-format-text": s.value.packageFormatText || "",
1140
+ "status-text": s.value.statusText || "",
1141
+ "checksum-text": s.value.checksumText || "",
1142
+ "checksum-u-r-i": s.value.checksumURI || "",
1143
+ "checksum-dropdown-text": s.value.checksumDropdownText || "",
1144
+ "change-license-text": s.value.changeLicenseText || "",
1145
+ "change-license-dropdown-text": s.value.changeLicenseDropdownText || "",
1146
+ "conforms-to-items": s.value.conformsToItems,
1147
+ "policy-items": s.value.policyItems,
1148
+ "download-URL": s.value.downloadURL,
1149
1149
  onClose: tt,
1150
1150
  onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1151
1151
  onAddDocumentations: qe,
1152
1152
  onAddAccessServices: Ge,
1153
- onAddModifiedDate: ce,
1154
- onAddIssuedDate: re,
1155
- onAddDescription: ue,
1153
+ onAddModifiedDate: re,
1154
+ onAddIssuedDate: ue,
1155
+ onAddDescription: me,
1156
1156
  onAddAccessRights: a.handleAccessRights,
1157
- onAddAvailability: me,
1158
- onAddLanguage: he,
1159
- onAddByteSize: ge,
1157
+ onAddAvailability: fe,
1158
+ onAddLanguage: ge,
1159
+ onAddByteSize: ye,
1160
1160
  onAddMediaType: _,
1161
1161
  onAddCompressFormat: _,
1162
1162
  onAddPackageFormat: _,
1163
- onAddStatus: fe,
1164
- onAddChecksum: pe,
1165
- onAddChangeLicense: ve,
1163
+ onAddStatus: pe,
1164
+ onAddChecksum: ve,
1165
+ onAddChangeLicense: he,
1166
1166
  onAddConformsToItems: Qe,
1167
1167
  onAddPolicyItems: Xe
1168
1168
  }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL", "onAddAccessRights"])) : p("", !0),
1169
- N.value ? (r(), X(It, {
1169
+ O.value ? (r(), X(It, {
1170
1170
  key: 1,
1171
1171
  buttons: C.value.button,
1172
1172
  "header-text": C.value.header,
1173
1173
  text: C.value.text,
1174
1174
  action: C.value.action,
1175
- onClose: t[4] || (t[4] = (e) => N.value = !1),
1175
+ onClose: t[4] || (t[4] = (e) => O.value = !1),
1176
1176
  onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1177
1177
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1178
1178
  ], 64));
1179
1179
  }
1180
- }, no = /* @__PURE__ */ Nt(Ua, [["__scopeId", "data-v-cbd7a62d"]]);
1180
+ }, no = /* @__PURE__ */ Nt(Va, [["__scopeId", "data-v-dfa22077"]]);
1181
1181
  export {
1182
1182
  no as default
1183
1183
  };