@piveau/dpi 0.1.0-beta.70 → 0.1.0-beta.72

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,115 +1,115 @@
1
- import { ref as v, computed as $e, toRef as gt, onUnmounted as yt, onMounted as kt, getCurrentInstance as xt, watch as wt, createElementBlock as f, openBlock as u, Fragment as ee, createElementVNode as m, createBlock as te, createCommentVNode as p, toDisplayString as M, renderList as Ee, unref as L, createVNode as c, withDirectives as bt, vShow as _t, normalizeClass as Dt } from "vue";
1
+ import { ref as h, computed as Oe, toRef as Dt, onUnmounted as Tt, onMounted as It, getCurrentInstance as Vt, watch as Lt, createElementBlock as f, openBlock as u, Fragment as ee, createElementVNode as m, createBlock as te, createCommentVNode as p, toDisplayString as M, renderList as We, unref as L, createVNode as c, withDirectives as Ut, vShow as Rt, normalizeClass as Ct } from "vue";
2
2
  import "@formkit/core";
3
3
  import { PhWarning as O } from "@phosphor-icons/vue";
4
- import { useI18n as Tt } from "vue-i18n";
5
- import { useStore as It } from "vuex";
6
- import { useEditModeInfo as Vt } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as Lt } from "../composables/useDpiFormValues.js";
4
+ import { useI18n as St } from "vue-i18n";
5
+ import { useStore as At } from "vuex";
6
+ import { useEditModeInfo as Ft } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as $t } from "../composables/useDpiFormValues.js";
8
8
  import W from "../config/dcatapdeHappyFlow/page-content-config.js";
9
- import { getLicenses as Ut, getFileTypes as Rt, getFormatTypes as Ct, getChecksumAlgorithms as St, getPlannedAvailability as At, getLanguages as Ft } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as Me } from "../HappyFlowComponents/services/eventBus.js";
9
+ import { getLicenses as Et, getFileTypes as Mt, getFormatTypes as Bt, getChecksumAlgorithms as zt, getPlannedAvailability as Pt, getLanguages as Nt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as je } from "../HappyFlowComponents/services/eventBus.js";
11
11
  import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import $t from "../HappyFlowComponents/ui/Dropdown.vue.js";
12
+ import Ot from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
13
  import ae from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import Et from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import Mt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import Bt from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
17
- import zt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
18
- import Pt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
19
- import Nt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
20
- import Ot from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
21
- import Wt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
22
- import jt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
23
- import Ht from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
24
- import Gt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
14
+ import Wt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import jt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Ht from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
17
+ import Gt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
18
+ import Jt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
19
+ import Kt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
20
+ import qt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
21
+ import Zt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
22
+ import Qt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
23
+ import Xt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
24
+ import Yt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
25
25
  import oe from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
26
- import Jt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
27
- import Kt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
28
- import qt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
29
- import Zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
30
- import Qt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
26
+ import ea from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
27
+ import ta from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
28
+ import aa from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
29
+ import oa from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
30
+ import sa from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
31
31
  import S from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
32
32
  import "zod/v4/locales";
33
33
  /* empty css */
34
- import Xt from "../../_virtual/_plugin-vue_export-helper.js";
35
- const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
34
+ import ia from "../../_virtual/_plugin-vue_export-helper.js";
35
+ const la = { class: "dpiV3InnerComponentWrap" }, na = { key: 0 }, da = {
36
36
  key: 1,
37
37
  class: "copy-large-regular"
38
- }, aa = { class: "dpiV3_LinkAndMetadata input-container" }, oa = { style: { position: "relative", width: "100%" } }, sa = {
38
+ }, ca = { class: "dpiV3_LinkAndMetadata input-container" }, ra = { style: { position: "relative", width: "100%" } }, ua = {
39
39
  key: 0,
40
40
  class: "validation-error"
41
- }, ia = { class: "copy-mini-regular" }, la = { style: { position: "relative", width: "100%" } }, na = {
41
+ }, ma = { class: "copy-mini-regular" }, fa = { style: { position: "relative", width: "100%" } }, pa = {
42
42
  key: 0,
43
43
  class: "validation-error"
44
- }, da = { class: "copy-mini-regular" }, ca = {
44
+ }, va = { class: "copy-mini-regular" }, ha = {
45
45
  key: 0,
46
46
  class: "dpiV3_DocumentationsInDistr"
47
- }, ra = { class: "dpiV3_TitleDelete" }, ua = { class: "dpiV3_documentationContents" }, ma = { class: "dpiV3_Documentation" }, fa = {
47
+ }, ga = { class: "dpiV3_TitleDelete" }, ya = { class: "dpiV3_documentationContents" }, ka = { class: "dpiV3_Documentation" }, xa = {
48
48
  key: 1,
49
49
  class: "dpiV3_DocumentationsInDistr"
50
- }, pa = { class: "dpiV3_TitleDelete" }, va = { class: "dpiV3_documentationContents" }, ha = { class: "dpiV3_Documentation" }, ga = { class: "dpiV3_TitleDelete" }, ya = { key: 0 }, ka = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, xa = {
50
+ }, ba = { class: "dpiV3_TitleDelete" }, wa = { class: "dpiV3_documentationContents" }, _a = { class: "dpiV3_Documentation" }, Da = { class: "dpiV3_TitleDelete" }, Ta = { key: 0 }, Ia = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, Va = {
51
51
  key: 0,
52
52
  class: "validation-error"
53
- }, wa = { class: "copy-mini-regular" }, ba = {
53
+ }, La = { class: "copy-mini-regular" }, Ua = {
54
54
  key: 0,
55
55
  class: "dpiV3_tempAddMore"
56
- }, _a = {
56
+ }, Ra = {
57
57
  key: 2,
58
58
  class: "dpiV3_modified dpiV3_label"
59
- }, Da = {
59
+ }, Ca = {
60
60
  key: 3,
61
61
  class: "dpiV3_modified dpiV3_label"
62
- }, Ta = { class: "dpiV3_modified dpiV3_label" }, Ia = {
62
+ }, Sa = { class: "dpiV3_modified dpiV3_label" }, Aa = {
63
63
  key: 4,
64
64
  class: "dpiV3_modified dpiV3_label"
65
- }, Va = {
65
+ }, Fa = {
66
66
  key: 5,
67
67
  class: "dpiV3_modified dpiV3_label"
68
- }, La = {
68
+ }, $a = {
69
69
  key: 6,
70
70
  class: "dpiV3_modified dpiV3_label"
71
- }, Ua = {
71
+ }, Ea = {
72
72
  key: 7,
73
73
  class: "dpiV3_modified dpiV3_label"
74
- }, Ra = {
74
+ }, Ma = {
75
75
  class: "dpiV3_TitleDelete",
76
76
  style: { "margin-bottom": "var(--Spacing-1, 4px)" }
77
- }, Ca = {
77
+ }, Ba = {
78
78
  key: 8,
79
79
  class: "dpiV3_modified dpiV3_label"
80
- }, Sa = {
80
+ }, za = {
81
81
  key: 9,
82
82
  class: "dpiV3_DocumentationsInDistr"
83
- }, Aa = { class: "dpiV3_TitleDelete" }, Fa = {
83
+ }, Pa = { class: "dpiV3_TitleDelete" }, Na = {
84
84
  key: 10,
85
85
  class: "dpiV3_DocumentationsInDistr"
86
- }, $a = { class: "dpiV3_TitleDelete" }, Ea = {
86
+ }, Oa = { class: "dpiV3_TitleDelete" }, Wa = {
87
87
  key: 11,
88
88
  class: "dpiV3_modified dpiV3_label"
89
- }, Ma = {
89
+ }, ja = {
90
90
  key: 12,
91
91
  class: "dpiV3_modified dpiV3_label"
92
- }, Ba = {
92
+ }, Ha = {
93
93
  key: 13,
94
94
  class: "dpiV3_modified dpiV3_label"
95
- }, za = {
95
+ }, Ga = {
96
96
  key: 14,
97
97
  class: "dpiV3_modified dpiV3_label"
98
- }, Pa = {
98
+ }, Ja = {
99
99
  key: 15,
100
100
  class: "dpiV3_modified dpiV3_label"
101
- }, Na = {
101
+ }, Ka = {
102
102
  key: 16,
103
103
  class: "copy-mini-regular dpiV3_text_error"
104
- }, Oa = { class: "dpiV3_CTA-Distribution" }, Wa = { class: "dpiV3_tempAddMore" }, ja = {
104
+ }, qa = { class: "dpiV3_CTA-Distribution" }, Za = { class: "dpiV3_tempAddMore" }, Qa = {
105
105
  __name: "DistributionSimplePage",
106
106
  props: {
107
107
  context: Object,
108
108
  inRap: Boolean
109
109
  },
110
110
  setup(A) {
111
- var be, _e, De;
112
- const I = A, { isEditMode: se } = Vt(), { t: U } = Tt(), _ = v(null), Be = {
111
+ var we, _e, De;
112
+ const I = A, { isEditMode: se } = Ft(), { t: U } = St(), _ = h(null), He = {
113
113
  isValid: "unset",
114
114
  id: 1,
115
115
  "dcat:accessURL": "",
@@ -142,21 +142,21 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
142
142
  title: "",
143
143
  "dcterms:license": ""
144
144
  }
145
- }, { formValues: V } = Lt(), i = $e(
145
+ }, { formValues: V } = $t(), i = Oe(
146
146
  () => se.value || I.inRap
147
- ).value ? gt((be = V.value.DistributionSimple) == null ? void 0 : be["dcat:distribution"]) : v([Be]);
147
+ ).value ? Dt((we = V.value.DistributionSimple) == null ? void 0 : we["dcat:distribution"]) : h([He]);
148
148
  i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
149
- const l = v({}), F = v({}), ie = v([]), B = v(!1), H = v(!1), b = v(0), D = v([]), w = v([]), le = v([]), G = v([]), ne = v([]);
150
- v([...D.value]);
151
- const z = v([...w.value]), ze = It(), J = v(null);
152
- v(null);
153
- const K = v(!1), de = v(!1), $ = v(!1), ce = v(!0);
149
+ const l = h({}), F = h({}), ie = h([]), B = h(!1), H = h(!1), w = h(0), D = h([]), b = h([]), le = h([]), G = h([]), ne = h([]);
150
+ h([...D.value]);
151
+ const z = h([...b.value]), Ge = At(), J = h(null);
152
+ h(null);
153
+ const K = h(!1), de = h(!1), $ = h(!1), ce = h(!0);
154
154
  for (let a = 0; a < i.value.length; a++)
155
155
  if (((_e = V.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : _e.checksum.uri) !== "" || ((De = V.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : De.checksum.title) !== "") {
156
156
  de.value = !1;
157
157
  break;
158
158
  }
159
- function Pe() {
159
+ function Je() {
160
160
  ie.value = [
161
161
  {
162
162
  title: U(
@@ -186,13 +186,13 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
186
186
  let t = !0;
187
187
  i.value = i.value.map((e) => {
188
188
  var g;
189
- const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && R(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && w.value.some(
190
- (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
189
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && R(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && b.value.some(
190
+ (v) => v["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
191
191
  ), n = e["dcat:downloadURL"].every(
192
- (h) => {
192
+ (v) => {
193
193
  var k;
194
- const x = (k = h["@id"]) == null ? void 0 : k.trim();
195
- return x === "" || R(x);
194
+ const y = (k = v["@id"]) == null ? void 0 : k.trim();
195
+ return y === "" || R(y);
196
196
  }
197
197
  ), r = o && s && n;
198
198
  return r || (t = !1), a === e.id && !I.inRap ? {
@@ -215,7 +215,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
215
215
  e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? R(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, (s = a[t]) == null || s.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
216
216
  else if (t === "dct:format") {
217
217
  const r = (n = a[t].label) == null ? void 0 : n.trim();
218
- e = r !== "" && w.value.some(
218
+ e = r !== "" && b.value.some(
219
219
  (g) => g["@value"].toLowerCase() === r.toLowerCase()
220
220
  ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, r === "" ? a.formatErrorMessage = "Format ist erforderlich." : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
221
221
  }
@@ -224,8 +224,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
224
224
  function Z(a = !1) {
225
225
  let t = !0;
226
226
  i.value = i.value.map((e) => {
227
- var g, h, x;
228
- const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && R(e["dcat:accessURL"]), s = ((x = (h = e["dct:format"]) == null ? void 0 : h.label) == null ? void 0 : x.trim()) !== "" && w.value.some(
227
+ var g, v, y;
228
+ const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && R(e["dcat:accessURL"]), s = ((y = (v = e["dct:format"]) == null ? void 0 : v.label) == null ? void 0 : y.trim()) !== "" && b.value.some(
229
229
  (k) => {
230
230
  var T;
231
231
  return k["@value"].toUpperCase() === ((T = e["dct:format"].label) == null ? void 0 : T.toUpperCase());
@@ -243,26 +243,26 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
243
243
  function R(a) {
244
244
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
245
245
  }
246
- yt(() => {
247
- Me.off("nextClicked", re), _.value && clearTimeout(_.value);
246
+ Tt(() => {
247
+ je.off("nextClicked", re), _.value && clearTimeout(_.value);
248
248
  });
249
- let ue = v([]);
250
- kt(async () => {
251
- Me.on("nextClicked", re);
252
- const a = xt(), t = a.appContext.app.config.globalProperties.$env;
249
+ let ue = h([]);
250
+ It(async () => {
251
+ je.on("nextClicked", re);
252
+ const a = Vt(), t = a.appContext.app.config.globalProperties.$env;
253
253
  if (a) {
254
254
  const e = a.appContext.app.config.globalProperties.$env;
255
255
  J.value = e.content.dataProviderInterface.specification;
256
256
  } else
257
257
  console.log("Instance is null!");
258
258
  try {
259
- const e = await Ut(t.api.baseUrl);
259
+ const e = await Et(t.api.baseUrl);
260
260
  ue.value = e.map((s) => ({
261
261
  uri: s.uri,
262
262
  "@value": s.value,
263
263
  label: s.label
264
264
  }));
265
- const o = await Rt(t.api.baseUrl);
265
+ const o = await Mt(t.api.baseUrl);
266
266
  D.value = o.results.map((s) => ({
267
267
  "@value": s.pref_label.en,
268
268
  uri: s.resource,
@@ -272,31 +272,31 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
272
272
  error.value = e;
273
273
  }
274
274
  try {
275
- const e = await Ct(t.api.baseUrl);
276
- w.value = e.results.map((o) => ({
275
+ const e = await Bt(t.api.baseUrl);
276
+ b.value = e.results.map((o) => ({
277
277
  "@value": o.pref_label.en,
278
278
  uri: o.resource,
279
279
  selected: !1
280
- })).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...w.value];
280
+ })).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...b.value];
281
281
  } catch (e) {
282
282
  error.value = e;
283
283
  }
284
284
  try {
285
- const e = await St(t.api.baseUrl);
285
+ const e = await zt(t.api.baseUrl);
286
286
  le.value = e;
287
- const o = await At(t.api.baseUrl);
287
+ const o = await Pt(t.api.baseUrl);
288
288
  G.value = o;
289
- const s = await Ft(t.api.baseUrl);
289
+ const s = await Nt(t.api.baseUrl);
290
290
  ne.value = s;
291
291
  } catch (e) {
292
292
  console.log(e);
293
293
  }
294
- Pe();
294
+ Je();
295
295
  });
296
- function Ne(a, t) {
296
+ function Ke(a, t) {
297
297
  const e = i.value.find((s) => s.id === t);
298
298
  if (!e) return;
299
- let o = w.value.find((s) => s["@value"] === a).uri || "";
299
+ let o = b.value.find((s) => s["@value"] === a).uri || "";
300
300
  e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", P(e, "dct:format"), V.value.DistributionSimple["dcat:distribution"] = i.value;
301
301
  }
302
302
  function me(a, t) {
@@ -314,7 +314,10 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
314
314
  function ve(a, t, e) {
315
315
  console.log(a, t, e);
316
316
  const o = i.value.find((s) => s.id === t);
317
- o ? (o["dct:accessRights"] = { label: { de: a.label }, uri: a.uri }, l.value.accessRightsText = a) : console.warn(`No matching distribution found for ID ${t}.`);
317
+ o ? (o["dct:accessRights"] = {
318
+ label: { de: a.label },
319
+ uri: a.uri
320
+ }, l.value.accessRightsText = a) : console.warn(`No matching distribution found for ID ${t}.`);
318
321
  }
319
322
  function he(a, t, e) {
320
323
  const o = i.value.find((s) => s.id === t);
@@ -346,7 +349,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
346
349
  const o = i.value.find((s) => s.id === t);
347
350
  e || (e = ne.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], l.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
348
351
  }
349
- function we(a, t) {
352
+ function be(a, t) {
350
353
  const e = i.value.find((o) => o.id === t);
351
354
  e ? (e["dcat:byteSize"] = a, l.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
352
355
  }
@@ -368,8 +371,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
368
371
  else
369
372
  console.warn(`No matching distribution found for ID ${e}.`);
370
373
  }
371
- function Oe(a) {
372
- y(
374
+ function qe(a) {
375
+ x(
373
376
  a,
374
377
  "Konform zu Standard",
375
378
  "conformsToItems",
@@ -377,8 +380,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
377
380
  !0
378
381
  );
379
382
  }
380
- function We(a) {
381
- y(
383
+ function Ze(a) {
384
+ x(
382
385
  a,
383
386
  "Verfügbarkeit",
384
387
  "dcatap:availability",
@@ -386,8 +389,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
386
389
  !1
387
390
  );
388
391
  }
389
- function je(a) {
390
- y(
392
+ function Qe(a) {
393
+ x(
391
394
  a,
392
395
  "Status",
393
396
  "adms:status",
@@ -395,8 +398,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
395
398
  !1
396
399
  );
397
400
  }
398
- function He(a) {
399
- y(
401
+ function Xe(a) {
402
+ x(
400
403
  a,
401
404
  "Größe in Bytes",
402
405
  "dcat:byteSize",
@@ -404,8 +407,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
404
407
  !1
405
408
  );
406
409
  }
407
- function Ge(a) {
408
- y(
410
+ function Ye(a) {
411
+ x(
409
412
  a,
410
413
  "Sprache",
411
414
  "dct:language",
@@ -414,10 +417,10 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
414
417
  );
415
418
  }
416
419
  function Q(a, t) {
417
- y(t, a, a, !0, !1);
420
+ x(t, a, a, !0, !1);
418
421
  }
419
- function Je(a) {
420
- y(
422
+ function et(a) {
423
+ x(
421
424
  a,
422
425
  "Regelwerk",
423
426
  "policyItems",
@@ -425,11 +428,11 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
425
428
  !0
426
429
  );
427
430
  }
428
- function Ke(a) {
429
- y(a, "Prüfsumme", "checksum", !0, !0);
431
+ function tt(a) {
432
+ x(a, "Prüfsumme", "checksum", !0, !0);
430
433
  }
431
- function qe(a) {
432
- y(
434
+ function at(a) {
435
+ x(
433
436
  a,
434
437
  "Dokumentation",
435
438
  "documentations",
@@ -437,8 +440,8 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
437
440
  !0
438
441
  );
439
442
  }
440
- function Ze(a) {
441
- y(
443
+ function ot(a) {
444
+ x(
442
445
  a,
443
446
  "Ausliefernder Datenservice",
444
447
  "accessServices",
@@ -446,49 +449,49 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
446
449
  !0
447
450
  );
448
451
  }
449
- function Qe(a, t, e) {
452
+ function st(a, t, e) {
450
453
  const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
451
454
  s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
452
455
  const n = a.trim();
453
456
  n === "" || R(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), Z(!0);
454
457
  }, 800);
455
458
  }
456
- function Xe(a) {
457
- y(
459
+ function it(a) {
460
+ x(
458
461
  a,
459
462
  "Aktualisierungsdatum",
460
463
  "dct:modified",
461
464
  !1
462
465
  );
463
466
  }
464
- function Ye(a) {
465
- y(
467
+ function lt(a) {
468
+ x(
466
469
  a,
467
470
  "Veröffentlichungsdatum",
468
471
  "dct:issued",
469
472
  !1
470
473
  );
471
474
  }
472
- function et(a) {
473
- y(
475
+ function nt(a) {
476
+ x(
474
477
  a,
475
478
  "Beschreibung",
476
479
  "dct:description",
477
480
  !0
478
481
  );
479
482
  }
480
- function tt(a) {
481
- y(
483
+ function dt(a) {
484
+ x(
482
485
  a,
483
486
  "Grad der Zugänglichkeit",
484
487
  "dct:accessRights",
485
488
  !1
486
489
  );
487
490
  }
488
- const at = $e(() => J.value ? ze.getters["dpiStore/getNavSteps"](J.value) : {});
489
- wt(at, (a) => {
491
+ const ct = Oe(() => J.value ? Ge.getters["dpiStore/getNavSteps"](J.value) : {});
492
+ Lt(ct, (a) => {
490
493
  }), se.value || I.context.node.input([{ isValid: "unset" }]);
491
- function ot() {
494
+ function rt() {
492
495
  const a = Date.now();
493
496
  i.value.push({
494
497
  isValid: "unset",
@@ -524,7 +527,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
524
527
  }
525
528
  }), q(a);
526
529
  }
527
- function st(a, t) {
530
+ function ut(a, t) {
528
531
  const e = i.value.find((o) => o.id === a);
529
532
  if (!e) {
530
533
  console.error(`Distribution with ID ${a} not found`);
@@ -558,7 +561,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
558
561
  }
559
562
  });
560
563
  }
561
- function it(a, t) {
564
+ function mt(a, t) {
562
565
  const e = i.value.find((o) => o.id === a);
563
566
  if (!e) {
564
567
  console.error(`Distribution with ID ${a} not found`);
@@ -595,7 +598,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
595
598
  }
596
599
  });
597
600
  }
598
- function lt(a, t) {
601
+ function ft(a, t) {
599
602
  var o;
600
603
  const e = i.value.find((s) => s.id === a);
601
604
  if (!e) {
@@ -627,21 +630,22 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
627
630
  }
628
631
  });
629
632
  }
630
- function nt(a, t) {
633
+ function pt(a, t) {
631
634
  }
632
- function dt(a) {
633
- if (a === "deleteDataset" && b.value !== null) {
635
+ function vt(a) {
636
+ if (a === "deleteDataset" && w.value !== null) {
634
637
  if (i.value.length === 1) {
635
638
  K.value = !0;
636
639
  return;
637
640
  }
638
641
  i.value = i.value.filter(
639
- (t) => t.id !== b.value
640
- ), K.value = !1, b.value = null, q();
642
+ (t) => t.id !== w.value
643
+ ), K.value = !1, w.value = null, q();
641
644
  }
642
645
  }
643
- function ct(a) {
644
- const t = JSON.parse(a), e = i.value.find(
646
+ function ht(a) {
647
+ const t = JSON.parse(a);
648
+ let e = i.value.find(
645
649
  (o) => o.id === t.distributionId
646
650
  );
647
651
  if (t.isArray) {
@@ -652,12 +656,14 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
652
656
  });
653
657
  return;
654
658
  }
655
- t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
659
+ t.useUndefined ? (t.distributionId === 0 && (t.distributionId = 1, e = i.value.find(
660
+ (o) => o.id === t.distributionId
661
+ )), e[t.optType] = void 0) : e[t.optType] = "";
656
662
  }
657
- function rt(a) {
658
- var e, o, s, n, r;
659
- b.value = a;
660
- const t = i.value.find((g) => g.id === a);
663
+ function gt(a) {
664
+ var e, o, s, n, r, g, v, y;
665
+ w.value = a;
666
+ const t = i.value.find((k) => k.id === a);
661
667
  t && (l.value = {
662
668
  button: "",
663
669
  header: "Optionale Informationen hinzufügen",
@@ -676,25 +682,25 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
676
682
  availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
677
683
  languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
678
684
  byteSizeText: t["dcat:byteSize"] || "",
679
- mediaTypeText: t["dcat:mediaType"].label || "",
685
+ mediaTypeText: ((n = t["dcat:mediaType"]) == null ? void 0 : n.label) || "",
680
686
  // compressFormatText: distribution["dcat:compressFormat"].label || "",
681
- packageFormatText: t["dcat:packageFormat"].label || "",
682
- statusText: t["adms:status"].label || "",
687
+ packageFormatText: ((r = t["dcat:packageFormat"]) == null ? void 0 : r.label) || "",
688
+ statusText: ((g = t["adms:status"]) == null ? void 0 : g.label) || "",
683
689
  checksumText: t.checksum.title || "",
684
690
  checksumURI: t.checksum.uri || "",
685
- checksumDropdownText: t.checksum["spdx:checksum"] || "",
686
- changeLicenseText: ((n = t == null ? void 0 : t.changeLicense) == null ? void 0 : n.title) || "",
687
- changeLicenseDropdownText: ((r = t == null ? void 0 : t.changeLicense) == null ? void 0 : r["dcterms:license"]) || "",
691
+ checksumDropdownText: (t == null ? void 0 : t.checksum["spdx:checksum"]) || "",
692
+ changeLicenseText: ((v = t == null ? void 0 : t.changeLicense) == null ? void 0 : v.title) || "",
693
+ changeLicenseDropdownText: ((y = t == null ? void 0 : t.changeLicense) == null ? void 0 : y["dcterms:license"]) || "",
688
694
  conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
689
695
  policyItems: (t == null ? void 0 : t.policyItems) || [],
690
696
  downloadURL: (t == null ? void 0 : t.downloadURL) || []
691
697
  }, B.value = !0, document.body.style.overflow = "hidden");
692
698
  }
693
- function ut() {
699
+ function yt() {
694
700
  B.value = !1, document.body.style.overflow = "auto";
695
701
  }
696
- function mt(a) {
697
- b.value = a;
702
+ function kt(a) {
703
+ w.value = a;
698
704
  const t = i.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
699
705
  l.value = {
700
706
  button: "Löschen",
@@ -710,7 +716,7 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
710
716
  distributionLink: s
711
717
  }, B.value = !0;
712
718
  }
713
- function y(a, t, e, o, s) {
719
+ function x(a, t, e, o, s) {
714
720
  const r = JSON.stringify({
715
721
  distributionId: a,
716
722
  optType: e,
@@ -726,68 +732,68 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
726
732
  }
727
733
  function X(a, t, e) {
728
734
  var s, n, r, g;
729
- const o = i.value.find((h) => h.id === e);
735
+ const o = i.value.find((v) => v.id === e);
730
736
  if (o)
731
737
  if (t === "dcat:accessURL") {
732
- const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
733
- o[t] = h, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
738
+ const v = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
739
+ o[t] = v, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
734
740
  P(o, t);
735
741
  }, 800);
736
742
  } else if (t === "dct:format") {
737
- const h = typeof a == "string" ? a.trim() : (r = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : r.trim();
738
- if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
739
- o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...w.value];
743
+ const v = typeof a == "string" ? a.trim() : (r = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : r.trim();
744
+ if (o.showErrorFormat = !1, o.formatErrorMessage = "", v === "")
745
+ o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...b.value];
740
746
  else {
741
- const x = w.value.find(
742
- (k) => k["@value"].toLowerCase() === h.toLowerCase()
747
+ const y = b.value.find(
748
+ (k) => k["@value"].toLowerCase() === v.toLowerCase()
743
749
  );
744
- x ? (o[t] = {
745
- label: x["@value"],
746
- uri: x.uri
747
- }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value = w.value.filter(
748
- (k) => k["@value"].toLowerCase().includes(h.toLowerCase())
750
+ y ? (o[t] = {
751
+ label: y["@value"],
752
+ uri: y.uri
753
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : v === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: v, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value = b.value.filter(
754
+ (k) => k["@value"].toLowerCase().includes(v.toLowerCase())
749
755
  );
750
756
  }
751
757
  P(o, t);
752
758
  } else
753
759
  o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
754
760
  }
755
- function ft(a, t) {
761
+ function xt(a, t) {
756
762
  const e = i.value.find((o) => o.id === a);
757
763
  e.documentations = e.documentations.filter(
758
764
  (o) => t.some((s) => s.id === o.id)
759
765
  );
760
766
  }
761
- function pt(a, t) {
767
+ function bt(a, t) {
762
768
  const e = i.value.find((o) => o.id === a);
763
769
  e.accessServices = e.accessServices.filter(
764
770
  (o) => t.some((s) => s.id === o.id)
765
771
  );
766
772
  }
767
- function vt(a, t) {
773
+ function wt(a, t) {
768
774
  const e = i.value.find((o) => o.id === a);
769
775
  e.conformsToItems = e.conformsToItems.filter(
770
776
  (o) => t.some((s) => s.id === o.id)
771
777
  );
772
778
  }
773
- function ht(a, t) {
779
+ function _t(a, t) {
774
780
  const e = i.value.find((o) => o.id === a);
775
781
  e.policyItems = e.policyItems.filter(
776
782
  (o) => t.some((s) => s.id === o.id)
777
783
  );
778
784
  }
779
785
  return (a, t) => (u(), f(ee, null, [
780
- m("div", Yt, [
781
- A.inRap ? p("", !0) : (u(), f("h4", ea, M(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
782
- A.inRap ? p("", !0) : (u(), f("div", ta, M(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
783
- (u(!0), f(ee, null, Ee(L(i), (e, o) => {
784
- var s, n, r, g, h, x, k, T, E, Te, Ie, Ve, Le, Ue, Re, Ce, Se, Ae, Fe;
786
+ m("div", la, [
787
+ A.inRap ? p("", !0) : (u(), f("h4", na, M(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
788
+ A.inRap ? p("", !0) : (u(), f("div", da, M(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
789
+ (u(!0), f(ee, null, We(L(i), (e, o) => {
790
+ var s, n, r, g, v, y, k, T, E, Te, Ie, Ve, Le, Ue, Re, Ce, Se, Ae, Fe, $e, Ee, Me, Be, ze, Pe, Ne;
785
791
  return u(), f("div", {
786
792
  key: e.id,
787
793
  class: "dpiV3AutoCompleteWrap"
788
794
  }, [
789
- m("div", aa, [
790
- m("div", oa, [
795
+ m("div", ca, [
796
+ m("div", ra, [
791
797
  c(ae, {
792
798
  "add-on-text": !1,
793
799
  datePicker: !1,
@@ -808,16 +814,16 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
808
814
  "model-value": e["dcat:accessURL"],
809
815
  onInput: (d) => X(d, "dcat:accessURL", e.id)
810
816
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
811
- e.showErrorDownloadURL && e.urlErrorMessage ? (u(), f("div", sa, [
817
+ e.showErrorDownloadURL && e.urlErrorMessage ? (u(), f("div", ua, [
812
818
  c(L(O), {
813
819
  size: 16,
814
820
  weight: "fill"
815
821
  }),
816
- m("span", ia, M(e.urlErrorMessage), 1)
822
+ m("span", ma, M(e.urlErrorMessage), 1)
817
823
  ])) : p("", !0)
818
824
  ]),
819
- m("div", la, [
820
- c($t, {
825
+ m("div", fa, [
826
+ c(Ot, {
821
827
  "dropdown-width": "large",
822
828
  type: "inputField",
823
829
  "input-field-props": {
@@ -841,15 +847,15 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
841
847
  data: z.value,
842
848
  autocomplete: !0,
843
849
  onInput: (d) => X(d, "dct:format", e.id),
844
- "onUpdate:modelValue": (d) => Ne(d, e.id),
850
+ "onUpdate:modelValue": (d) => Ke(d, e.id),
845
851
  "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
846
852
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
847
- e.showErrorFormat && e.formatErrorMessage ? (u(), f("div", na, [
853
+ e.showErrorFormat && e.formatErrorMessage ? (u(), f("div", pa, [
848
854
  c(L(O), {
849
855
  size: 16,
850
856
  weight: "fill"
851
857
  }),
852
- m("span", da, M(e.formatErrorMessage), 1)
858
+ m("span", va, M(e.formatErrorMessage), 1)
853
859
  ])) : p("", !0)
854
860
  ]),
855
861
  c(ae, {
@@ -870,47 +876,47 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
870
876
  "show-end-icon": !1,
871
877
  onInput: (d) => X(d, "dct:title", e.id)
872
878
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
873
- (e.documentations || []).length > 0 ? (u(), f("div", ca, [
874
- m("div", ra, [
879
+ (e.documentations || []).length > 0 ? (u(), f("div", ha, [
880
+ m("div", ga, [
875
881
  t[6] || (t[6] = m("div", null, "Dokumentation (optional)", -1)),
876
882
  m("div", null, [
877
883
  c(S, {
878
884
  "button-text": "löschen",
879
- onClick: (d) => qe(e.id)
885
+ onClick: (d) => at(e.id)
880
886
  }, null, 8, ["onClick"])
881
887
  ])
882
888
  ]),
883
- m("div", ua, [
884
- m("div", ma, [
885
- c(Gt, {
889
+ m("div", ya, [
890
+ m("div", ka, [
891
+ c(Yt, {
886
892
  documentations: e.documentations,
887
893
  "file-types": D.value,
888
894
  "distribution-id": e.id,
889
895
  "as-card": !0,
890
896
  "show-delete-button": !0,
891
- onUpdate: (d) => ft(e.id, d)
897
+ onUpdate: (d) => xt(e.id, d)
892
898
  }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
893
899
  ])
894
900
  ])
895
901
  ])) : p("", !0),
896
- (e.accessServices || []).length > 0 ? (u(), f("div", fa, [
897
- m("div", pa, [
902
+ (e.accessServices || []).length > 0 ? (u(), f("div", xa, [
903
+ m("div", ba, [
898
904
  t[7] || (t[7] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
899
905
  m("div", null, [
900
906
  c(S, {
901
907
  "button-text": "löschen",
902
- onClick: (d) => Ze(e.id)
908
+ onClick: (d) => ot(e.id)
903
909
  }, null, 8, ["onClick"])
904
910
  ])
905
911
  ]),
906
- m("div", va, [
907
- m("div", ha, [
908
- c(zt, {
912
+ m("div", wa, [
913
+ m("div", _a, [
914
+ c(Gt, {
909
915
  "access-services": e.accessServices,
910
916
  "distribution-id": e.id,
911
917
  "as-card": !0,
912
918
  "show-delete-button": !0,
913
- onUpdate: (d) => pt(
919
+ onUpdate: (d) => bt(
914
920
  e.id,
915
921
  d
916
922
  )
@@ -918,26 +924,26 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
918
924
  ])
919
925
  ])
920
926
  ])) : p("", !0),
921
- (u(!0), f(ee, null, Ee(e["dcat:downloadURL"], (d, N) => (u(), f("div", {
927
+ (u(!0), f(ee, null, We(e["dcat:downloadURL"], (d, N) => (u(), f("div", {
922
928
  key: N,
923
929
  class: "dpiV3_DocumentationsInDistr"
924
930
  }, [
925
- m("div", ga, [
931
+ m("div", Da, [
926
932
  t[8] || (t[8] = m("div", {
927
933
  class: "dpiV3_label",
928
934
  style: { margin: "0" }
929
935
  }, " DownloadURL (optional) ", -1)),
930
- e["dcat:downloadURL"].length !== 1 ? (u(), f("div", ya, [
936
+ e["dcat:downloadURL"].length !== 1 ? (u(), f("div", Ta, [
931
937
  c(S, {
932
938
  "button-text": "löschen",
933
939
  onClick: (Y) => e["dcat:downloadURL"].splice(N, 1)
934
940
  }, null, 8, ["onClick"])
935
941
  ])) : p("", !0)
936
942
  ]),
937
- m("div", ka, [
943
+ m("div", Ia, [
938
944
  c(ae, {
939
945
  "model-value": d["@id"],
940
- onInput: (Y) => Qe(
946
+ onInput: (Y) => st(
941
947
  Y.target.value,
942
948
  e.id,
943
949
  N
@@ -949,15 +955,15 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
949
955
  inputFieldSize: "large",
950
956
  label: ""
951
957
  }, null, 8, ["model-value", "onInput", "showError"]),
952
- d.showError ? (u(), f("div", xa, [
958
+ d.showError ? (u(), f("div", Va, [
953
959
  c(L(O), {
954
960
  size: 16,
955
961
  weight: "fill"
956
962
  }),
957
- m("span", wa, M(d.errorMessage), 1)
963
+ m("span", La, M(d.errorMessage), 1)
958
964
  ])) : p("", !0)
959
965
  ]),
960
- N === e["dcat:downloadURL"].length - 1 ? (u(), f("div", ba, [
966
+ N === e["dcat:downloadURL"].length - 1 ? (u(), f("div", Ua, [
961
967
  c(j, {
962
968
  buttonText: "Weitere DownloadURL hinzufügen",
963
969
  size: "small",
@@ -971,76 +977,76 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
971
977
  }, null, 8, ["onClick"])
972
978
  ])) : p("", !0)
973
979
  ]))), 128)),
974
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), f("div", _a, [
975
- c(qt, {
980
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), f("div", Ra, [
981
+ c(aa, {
976
982
  "show-delete-button": !0,
977
983
  "distribution-id": e.id,
978
984
  "model-value": e["dct:modified"],
979
985
  onAddModifiedDate: me,
980
- onDeleteButtonClicked: (d) => Xe(e.id)
986
+ onDeleteButtonClicked: (d) => it(e.id)
981
987
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
982
988
  ])) : p("", !0),
983
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), f("div", Da, [
984
- c(Jt, {
989
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), f("div", Ca, [
990
+ c(ea, {
985
991
  "show-delete-button": !0,
986
992
  "distribution-id": e.id,
987
993
  "model-value": e["dct:issued"],
988
994
  onAddIssuedDate: fe,
989
- onDeleteButtonClicked: (d) => Ye(e.id)
995
+ onDeleteButtonClicked: (d) => lt(e.id)
990
996
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
991
997
  ])) : p("", !0),
992
- bt(m("div", Ta, [
993
- c(Ht, {
998
+ Ut(m("div", Sa, [
999
+ c(Xt, {
994
1000
  "distribution-id": e.id,
995
1001
  "description-text": e["dct:description"],
996
1002
  "show-delete-button": !0,
997
1003
  onAddDescription: pe,
998
- onDeleteDescription: (d) => et(e.id)
1004
+ onDeleteDescription: (d) => nt(e.id)
999
1005
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
1000
1006
  ], 512), [
1001
1007
  [
1002
- _t,
1008
+ Rt,
1003
1009
  e["dct:description"] !== void 0 && e["dct:description"] !== ""
1004
1010
  ]
1005
1011
  ]),
1006
- (n = e["dct:accessRights"]) != null && n.uri && ((r = e["dct:accessRights"]) == null ? void 0 : r.uri.trim()) !== "" ? (u(), f("div", Ia, [
1007
- c(Bt, {
1012
+ (n = e["dct:accessRights"]) != null && n.uri && ((r = e["dct:accessRights"]) == null ? void 0 : r.uri.trim()) !== "" ? (u(), f("div", Aa, [
1013
+ c(Ht, {
1008
1014
  "show-delete-button": !0,
1009
1015
  "distribution-id": e.id,
1010
1016
  "access-rights-prop": (g = e["dct:accessRights"]) == null ? void 0 : g.label.de,
1011
1017
  onAddAccessRights: ve,
1012
- onDeleteButtonClicked: (d) => tt(e.id)
1018
+ onDeleteButtonClicked: (d) => dt(e.id)
1013
1019
  }, null, 8, ["distribution-id", "access-rights-prop", "onDeleteButtonClicked"])
1014
1020
  ])) : p("", !0),
1015
- e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (u(), f("div", Va, [
1016
- c(Pt, {
1021
+ ((v = e["dcatap:availability"]) == null ? void 0 : v.label) != null && ((y = e["dcatap:availability"]) != null && y.label.de) && ((k = e["dcatap:availability"]) == null ? void 0 : k.label.de.trim()) !== "" ? (u(), f("div", Fa, [
1022
+ c(Jt, {
1017
1023
  "availability-text": e["dcatap:availability"].label.de,
1018
1024
  "distribution-id": e.id,
1019
1025
  "show-delete-button": !0,
1020
1026
  onAddAvailability: he,
1021
- onDeleteButtonClicked: (d) => We(e.id)
1027
+ onDeleteButtonClicked: (d) => Ze(e.id)
1022
1028
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
1023
1029
  ])) : p("", !0),
1024
- e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (u(), f("div", La, [
1025
- c(Qt, {
1030
+ (T = e["adms:status"]) != null && T["@value"] && ((E = e["adms:status"]) == null ? void 0 : E["@value"].trim()) !== "" ? (u(), f("div", $a, [
1031
+ c(sa, {
1026
1032
  "status-text": e["adms:status"]["@value"],
1027
1033
  "distribution-id": e.id,
1028
1034
  "show-delete-button": !0,
1029
1035
  onAddStatus: ge,
1030
- onDeleteButtonClicked: (d) => je(e.id)
1036
+ onDeleteButtonClicked: (d) => Qe(e.id)
1031
1037
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
1032
1038
  ])) : p("", !0),
1033
- e.checksum["spdx:checksum"] != "" ? (u(), f("div", Ua, [
1034
- m("div", Ra, [
1039
+ e.checksum["spdx:checksum"] != "" ? (u(), f("div", Ea, [
1040
+ m("div", Ma, [
1035
1041
  t[9] || (t[9] = m("div", null, "Prüfsumme (optional)", -1)),
1036
1042
  m("div", null, [
1037
1043
  c(S, {
1038
1044
  "button-text": "löschen",
1039
- onClick: (d) => Ke(e.id)
1045
+ onClick: (d) => tt(e.id)
1040
1046
  }, null, 8, ["onClick"])
1041
1047
  ])
1042
1048
  ]),
1043
- c(Wt, {
1049
+ c(Zt, {
1044
1050
  "checksum-text": e.checksum.title,
1045
1051
  "checksum-dropdown-text": e.checksum["spdx:checksum"],
1046
1052
  "distribution-id": e.id,
@@ -1051,70 +1057,70 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1051
1057
  onAddChecksum: ye
1052
1058
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
1053
1059
  ])) : p("", !0),
1054
- Object.keys(e["dct:license"]).length > 0 && ((h = e["dct:license"]) == null ? void 0 : h["dcterms:license"]) != "" ? (u(), f("div", Ca, [
1055
- c(Ot, {
1056
- "change-license-text": (x = e["dct:license"]) == null ? void 0 : x.title,
1057
- "change-license-dropdown-text": (k = e["dct:license"]) == null ? void 0 : k["dcterms:license"],
1060
+ Object.keys(e["dct:license"]).length > 0 && ((Te = e["dct:license"]) == null ? void 0 : Te["dcterms:license"]) != "" ? (u(), f("div", Ba, [
1061
+ c(qt, {
1062
+ "change-license-text": (Ie = e["dct:license"]) == null ? void 0 : Ie.title,
1063
+ "change-license-dropdown-text": (Ve = e["dct:license"]) == null ? void 0 : Ve["dcterms:license"],
1058
1064
  "distribution-id": e.id,
1059
1065
  "as-card": !0,
1060
1066
  "show-delete-button": !0,
1061
1067
  onAddChangeLicense: ke
1062
1068
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
1063
1069
  ])) : p("", !0),
1064
- e.conformsToItems && e.conformsToItems.length > 0 ? (u(), f("div", Sa, [
1065
- m("div", Aa, [
1070
+ e.conformsToItems && e.conformsToItems.length > 0 ? (u(), f("div", za, [
1071
+ m("div", Pa, [
1066
1072
  t[10] || (t[10] = m("div", null, "Konform zu Standard (optional)", -1)),
1067
1073
  m("div", null, [
1068
1074
  c(S, {
1069
1075
  "button-text": "löschen",
1070
- onClick: (d) => Oe(e.id)
1076
+ onClick: (d) => qe(e.id)
1071
1077
  }, null, 8, ["onClick"])
1072
1078
  ])
1073
1079
  ]),
1074
- c(jt, {
1080
+ c(Qt, {
1075
1081
  "conforms-to-items": e.conformsToItems,
1076
1082
  "distribution-id": e.id,
1077
1083
  "as-card": !0,
1078
1084
  "show-delete-button": !0,
1079
- onUpdate: (d) => vt(e.id, d)
1085
+ onUpdate: (d) => wt(e.id, d)
1080
1086
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1081
1087
  ])) : p("", !0),
1082
- ((E = (T = e == null ? void 0 : e.policyItems) == null ? void 0 : T[0]) == null ? void 0 : E["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (u(), f("div", Fa, [
1083
- m("div", $a, [
1088
+ ((Ue = (Le = e == null ? void 0 : e.policyItems) == null ? void 0 : Le[0]) == null ? void 0 : Ue["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (u(), f("div", Na, [
1089
+ m("div", Oa, [
1084
1090
  t[11] || (t[11] = m("div", null, "Regelwerk (optional)", -1)),
1085
1091
  m("div", null, [
1086
1092
  c(S, {
1087
1093
  "button-text": "löschen",
1088
- onClick: (d) => Je(e.id)
1094
+ onClick: (d) => et(e.id)
1089
1095
  }, null, 8, ["onClick"])
1090
1096
  ])
1091
1097
  ]),
1092
- c(Zt, {
1098
+ c(oa, {
1093
1099
  "policy-items": e.policyItems,
1094
1100
  "distribution-id": e.id,
1095
1101
  "as-card": !0,
1096
- onUpdate: (d) => ht(e.id, d)
1102
+ onUpdate: (d) => _t(e.id, d)
1097
1103
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1098
1104
  ])) : p("", !0),
1099
- (Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) != null && Ie.label || (Le = (Ve = e["dct:language"]) == null ? void 0 : Ve[0]) != null && Le["@value"] && ((Re = (Ue = e["dct:language"]) == null ? void 0 : Ue[0]) == null ? void 0 : Re["@value"].trim()) !== "" ? (u(), f("div", Ea, [
1100
- c(Kt, {
1105
+ (Ce = (Re = e["dct:language"]) == null ? void 0 : Re[0]) != null && Ce.label || (Ae = (Se = e["dct:language"]) == null ? void 0 : Se[0]) != null && Ae["@value"] && (($e = (Fe = e["dct:language"]) == null ? void 0 : Fe[0]) == null ? void 0 : $e["@value"].trim()) !== "" ? (u(), f("div", Wa, [
1106
+ c(ta, {
1101
1107
  "distribution-id": e.id,
1102
1108
  "show-delete-button": !1,
1103
1109
  onAddLanguage: xe,
1104
- onDeleteButtonClicked: (d) => Ge(e.id),
1110
+ onDeleteButtonClicked: (d) => Ye(e.id),
1105
1111
  inOverview: !0
1106
1112
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1107
1113
  ])) : p("", !0),
1108
- e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), f("div", Ma, [
1109
- c(Nt, {
1114
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), f("div", ja, [
1115
+ c(Kt, {
1110
1116
  "byte-size-prop": e["dcat:byteSize"],
1111
1117
  "distribution-id": e.id,
1112
1118
  "show-delete-button": !0,
1113
- onAddByteSize: we,
1114
- onDeleteButtonClicked: (d) => He(e.id)
1119
+ onAddByteSize: be,
1120
+ onDeleteButtonClicked: (d) => Xe(e.id)
1115
1121
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1116
1122
  ])) : p("", !0),
1117
- e["dcat:mediaType"] && ((Ce = e["dcat:mediaType"]) != null && Ce.label) && ((Se = e["dcat:mediaType"]) == null ? void 0 : Se.label.trim()) !== "" ? (u(), f("div", Ba, [
1123
+ e["dcat:mediaType"] && ((Ee = e["dcat:mediaType"]) != null && Ee.label) && ((Me = e["dcat:mediaType"]) == null ? void 0 : Me.label.trim()) !== "" ? (u(), f("div", Ha, [
1118
1124
  c(oe, {
1119
1125
  "distribution-id": e.id,
1120
1126
  "file-types": D.value,
@@ -1122,10 +1128,10 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1122
1128
  "file-format-text": e["dcat:mediaType"].label,
1123
1129
  "show-delete-button": !0,
1124
1130
  onAddMediaType: C,
1125
- onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", b.value))
1131
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", w.value))
1126
1132
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1127
1133
  ])) : p("", !0),
1128
- e["dcat:compressFormat"] && ((Ae = e["dcat:compressFormat"]) != null && Ae.label) && ((Fe = e["dcat:compressFormat"]) == null ? void 0 : Fe.label.trim()) !== "" ? (u(), f("div", za, [
1134
+ e["dcat:compressFormat"] && ((Be = e["dcat:compressFormat"]) != null && Be.label) && ((ze = e["dcat:compressFormat"]) == null ? void 0 : ze.label.trim()) !== "" ? (u(), f("div", Ga, [
1129
1135
  c(oe, {
1130
1136
  "distribution-id": e.id,
1131
1137
  "file-types": D.value,
@@ -1133,10 +1139,10 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1133
1139
  "compress-format-text": e["dcat:compressFormat"].label,
1134
1140
  "show-delete-button": !0,
1135
1141
  onAddCompressFormat: C,
1136
- onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", b.value))
1142
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", w.value))
1137
1143
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1138
1144
  ])) : p("", !0),
1139
- e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (u(), f("div", Pa, [
1145
+ (Pe = e["dcat:packageFormat"]) != null && Pe.label && ((Ne = e["dcat:packageFormat"]) == null ? void 0 : Ne.label.trim()) !== "" ? (u(), f("div", Ja, [
1140
1146
  c(oe, {
1141
1147
  "distribution-id": e.id,
1142
1148
  "file-types": D.value,
@@ -1144,18 +1150,18 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1144
1150
  "package-format-text": e["dcat:packageFormat"].label,
1145
1151
  "show-delete-button": !0,
1146
1152
  onAddPackageFormat: C,
1147
- onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", b.value))
1153
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", w.value))
1148
1154
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1149
1155
  ])) : p("", !0),
1150
- K.value && L(i).length === 1 ? (u(), f("p", Na, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1156
+ K.value && L(i).length === 1 ? (u(), f("p", Ka, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1151
1157
  ]),
1152
- m("div", Oa, [
1158
+ m("div", qa, [
1153
1159
  c(j, {
1154
1160
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1155
1161
  size: "small",
1156
1162
  "icon-start": "PlusSquare",
1157
1163
  variant: "tertiary",
1158
- onClick: (d) => rt(e.id)
1164
+ onClick: (d) => gt(e.id)
1159
1165
  }, null, 8, ["button-text", "onClick"]),
1160
1166
  L(i).length > 1 ? (u(), te(j, {
1161
1167
  key: 0,
@@ -1163,23 +1169,23 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1163
1169
  size: "small",
1164
1170
  "icon-start": "trash",
1165
1171
  variant: "tertiary",
1166
- onClick: (d) => mt(e.id)
1172
+ onClick: (d) => kt(e.id)
1167
1173
  }, null, 8, ["button-text", "onClick"])) : p("", !0)
1168
1174
  ])
1169
1175
  ]);
1170
1176
  }), 128)),
1171
- m("div", Wa, [
1177
+ m("div", Za, [
1172
1178
  c(j, {
1173
1179
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1174
1180
  size: "large",
1175
1181
  "icon-start": "plus",
1176
1182
  variant: "tertiary",
1177
- onClick: ot
1183
+ onClick: rt
1178
1184
  }, null, 8, ["button-text"])
1179
1185
  ]),
1180
1186
  $.value ? (u(), f("div", {
1181
1187
  key: 2,
1182
- class: Dt(
1188
+ class: Ct(
1183
1189
  A.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper"
1184
1190
  )
1185
1191
  }, [
@@ -1190,9 +1196,9 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1190
1196
  t[12] || (t[12] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1191
1197
  ], 2)) : p("", !0)
1192
1198
  ]),
1193
- B.value ? (u(), te(Mt, {
1199
+ B.value ? (u(), te(jt, {
1194
1200
  key: 0,
1195
- "distibution-id": b.value,
1201
+ "distibution-id": w.value,
1196
1202
  "file-types": D.value,
1197
1203
  buttons: l.value.button,
1198
1204
  "header-text": l.value.header,
@@ -1227,38 +1233,38 @@ const Yt = { class: "dpiV3InnerComponentWrap" }, ea = { key: 0 }, ta = {
1227
1233
  "conforms-to-items": l.value.conformsToItems,
1228
1234
  "policy-items": l.value.policyItems,
1229
1235
  "download-URL": l.value.downloadURL,
1230
- onClose: ut,
1231
- onActionHandling: t[3] || (t[3] = (e) => dt(e)),
1232
- onAddDocumentations: st,
1233
- onAddAccessServices: it,
1236
+ onClose: yt,
1237
+ onActionHandling: t[3] || (t[3] = (e) => vt(e)),
1238
+ onAddDocumentations: ut,
1239
+ onAddAccessServices: mt,
1234
1240
  onAddModifiedDate: me,
1235
1241
  onAddIssuedDate: fe,
1236
1242
  onAddDescription: pe,
1237
1243
  onAddAccessRights: ve,
1238
1244
  onAddAvailability: he,
1239
1245
  onAddLanguage: xe,
1240
- onAddByteSize: we,
1246
+ onAddByteSize: be,
1241
1247
  onAddMediaType: C,
1242
1248
  onAddCompressFormat: C,
1243
1249
  onAddPackageFormat: C,
1244
1250
  onAddStatus: ge,
1245
1251
  onAddChecksum: ye,
1246
1252
  onAddChangeLicense: ke,
1247
- onAddConformsToItems: lt,
1248
- onAddPolicyItems: nt
1253
+ onAddConformsToItems: ft,
1254
+ onAddPolicyItems: pt
1249
1255
  }, 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"])) : p("", !0),
1250
- H.value ? (u(), te(Et, {
1256
+ H.value ? (u(), te(Wt, {
1251
1257
  key: 1,
1252
1258
  buttons: F.value.button,
1253
1259
  "header-text": F.value.header,
1254
1260
  text: F.value.text,
1255
1261
  action: F.value.action,
1256
1262
  onClose: t[4] || (t[4] = (e) => H.value = !1),
1257
- onActionHandling: t[5] || (t[5] = (e) => ct(e))
1263
+ onActionHandling: t[5] || (t[5] = (e) => ht(e))
1258
1264
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1259
1265
  ], 64));
1260
1266
  }
1261
- }, Vo = /* @__PURE__ */ Xt(ja, [["__scopeId", "data-v-c8f6e346"]]);
1267
+ }, Fo = /* @__PURE__ */ ia(Qa, [["__scopeId", "data-v-b5a5cd36"]]);
1262
1268
  export {
1263
- Vo as default
1269
+ Fo as default
1264
1270
  };