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

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,104 +1,108 @@
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";
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 f, openBlock as r, Fragment as Z, createElementVNode as m, createBlock as ee, createCommentVNode as p, toDisplayString as $, renderList as Le, unref as I, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
2
2
  import "@formkit/core";
3
- import { PhWarning as Y } from "@phosphor-icons/vue";
3
+ import { PhWarning as N } 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 P from "../config/dcatapdeHappyFlow/page-content-config.js";
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 Le } from "../HappyFlowComponents/services/eventBus.js";
11
- import N from "../HappyFlowComponents/ui/ButtonV3.vue.js";
8
+ import O from "../config/dcatapdeHappyFlow/page-content-config.js";
9
+ import { getLicenses as kt, getFileTypes as xt, getFormatTypes as bt, getChecksumAlgorithms as wt, getPlannedAvailability as _t, getLanguages as Dt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Ue } from "../HappyFlowComponents/services/eventBus.js";
11
+ import W from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
12
  import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import Z from "../HappyFlowComponents/ui/InputField.vue.js";
13
+ import te from "../HappyFlowComponents/ui/InputField.vue.js";
14
14
  import It from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
15
  import Vt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import Ut from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
- import Lt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
16
+ import Lt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import Ut from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
18
  import Rt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
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";
23
23
  import $t from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
- import ee from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
24
+ import ae from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
25
  import Et from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
- import Bt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
- import Mt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
26
+ import Mt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
+ import Bt 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 F from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
30
+ import E from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
+ import "zod/v4/locales";
31
32
  /* empty css */
32
33
  import Nt from "../../_virtual/_plugin-vue_export-helper.js";
33
34
  const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
34
35
  key: 1,
35
36
  class: "copy-large-regular"
36
- }, Ht = { class: "dpiV3_LinkAndMetadata input-container" }, Jt = {
37
+ }, Ht = { class: "dpiV3_LinkAndMetadata input-container" }, Jt = { style: { position: "relative", width: "100%" } }, Kt = {
37
38
  key: 0,
38
39
  class: "validation-error"
39
- }, Kt = { class: "copy-mini-regular" }, qt = {
40
- key: 1,
40
+ }, qt = { class: "copy-mini-regular" }, Gt = { style: { position: "relative", width: "100%" } }, Qt = {
41
+ key: 0,
41
42
  class: "validation-error"
42
- }, Gt = { class: "copy-mini-regular" }, Qt = {
43
- key: 2,
43
+ }, Xt = { class: "copy-mini-regular" }, Yt = {
44
+ key: 0,
44
45
  class: "dpiV3_DocumentationsInDistr"
45
- }, Xt = { class: "dpiV3_TitleDelete" }, Yt = { class: "dpiV3_documentationContents" }, Zt = { class: "dpiV3_Documentation" }, ea = {
46
- key: 3,
46
+ }, Zt = { class: "dpiV3_TitleDelete" }, ea = { class: "dpiV3_documentationContents" }, ta = { class: "dpiV3_Documentation" }, aa = {
47
+ key: 1,
47
48
  class: "dpiV3_DocumentationsInDistr"
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
+ }, oa = { class: "dpiV3_TitleDelete" }, sa = { class: "dpiV3_documentationContents" }, ia = { class: "dpiV3_Documentation" }, la = { class: "dpiV3_TitleDelete" }, na = { key: 0 }, da = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, ca = {
50
+ key: 0,
51
+ class: "validation-error"
52
+ }, ra = { class: "copy-mini-regular" }, ua = {
49
53
  key: 0,
50
54
  class: "dpiV3_tempAddMore"
51
- }, da = {
55
+ }, ma = {
56
+ key: 2,
57
+ class: "dpiV3_modified dpiV3_label"
58
+ }, fa = {
59
+ key: 3,
60
+ class: "dpiV3_modified dpiV3_label"
61
+ }, pa = { class: "dpiV3_modified dpiV3_label" }, va = {
62
+ key: 4,
63
+ class: "dpiV3_modified dpiV3_label"
64
+ }, ha = {
52
65
  key: 5,
53
66
  class: "dpiV3_modified dpiV3_label"
54
- }, ca = {
67
+ }, ga = {
55
68
  key: 6,
56
69
  class: "dpiV3_modified dpiV3_label"
57
- }, ra = { class: "dpiV3_modified dpiV3_label" }, ua = {
70
+ }, ya = {
58
71
  key: 7,
59
72
  class: "dpiV3_modified dpiV3_label"
60
- }, ma = {
73
+ }, ka = {
61
74
  key: 8,
62
- class: "dpiV3_modified dpiV3_label"
63
- }, fa = {
75
+ class: "dpiV3_DocumentationsInDistr"
76
+ }, xa = { class: "dpiV3_TitleDelete" }, ba = {
64
77
  key: 9,
65
- class: "dpiV3_modified dpiV3_label"
66
- }, pa = {
78
+ class: "dpiV3_DocumentationsInDistr"
79
+ }, wa = { class: "dpiV3_TitleDelete" }, _a = {
67
80
  key: 10,
68
81
  class: "dpiV3_modified dpiV3_label"
69
- }, va = {
82
+ }, Da = {
70
83
  key: 11,
71
- class: "dpiV3_DocumentationsInDistr"
72
- }, ha = { class: "dpiV3_TitleDelete" }, ga = {
84
+ class: "dpiV3_modified dpiV3_label"
85
+ }, Ta = {
73
86
  key: 12,
74
- class: "dpiV3_DocumentationsInDistr"
75
- }, ya = { class: "dpiV3_TitleDelete" }, ka = {
87
+ class: "dpiV3_modified dpiV3_label"
88
+ }, Ia = {
76
89
  key: 13,
77
90
  class: "dpiV3_modified dpiV3_label"
78
- }, ba = {
91
+ }, Va = {
79
92
  key: 14,
80
93
  class: "dpiV3_modified dpiV3_label"
81
- }, xa = {
94
+ }, La = {
82
95
  key: 15,
83
- class: "dpiV3_modified dpiV3_label"
84
- }, wa = {
85
- key: 16,
86
- class: "dpiV3_modified dpiV3_label"
87
- }, Da = {
88
- key: 17,
89
- class: "dpiV3_modified dpiV3_label"
90
- }, _a = {
91
- key: 18,
92
96
  class: "copy-mini-regular dpiV3_text_error"
93
- }, Ta = { class: "dpiV3_CTA-Distribution" }, Ia = { class: "dpiV3_tempAddMore" }, Va = {
97
+ }, Ua = { class: "dpiV3_CTA-Distribution" }, Ra = { class: "dpiV3_tempAddMore" }, Ca = {
94
98
  __name: "DistributionSimplePage",
95
99
  props: {
96
100
  context: Object,
97
101
  inRap: Boolean
98
102
  },
99
- setup(U) {
100
- var ke, be, xe;
101
- const L = U, { isEditMode: te } = gt(), { t: D } = vt(), R = v(null), Re = {
103
+ setup(C) {
104
+ var xe, be, we;
105
+ const V = C, { isEditMode: oe } = gt(), { t: L } = vt(), _ = v(null), Re = {
102
106
  isValid: "unset",
103
107
  id: 1,
104
108
  "dcat:accessURL": "",
@@ -130,220 +134,228 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
130
134
  title: "",
131
135
  "dcterms:license": ""
132
136
  }
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
- l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
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
- v([...x.value]);
139
- const E = v([...w.value]), Ce = ht(), j = v(null);
137
+ }, { formValues: T } = yt(), i = Ve(
138
+ () => oe.value || V.inRap
139
+ ).value ? nt((xe = T.value.DistributionSimple) == null ? void 0 : xe["dcat:distribution"]) : v([Re]);
140
+ i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
141
+ const l = v({}), S = v({}), se = v([]), M = v(!1), j = v(!1), b = v(0), D = v([]), w = v([]), ie = v([]), H = v([]), le = v([]);
142
+ v([...D.value]);
143
+ const A = v([...w.value]), Ce = ht(), J = v(null);
140
144
  v(null);
141
- const H = v(!1), se = v(!1), B = v(!1), le = v(!0);
142
- for (let a = 0; a < l.value.length; a++)
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
+ const K = v(!1), ne = v(!1), B = v(!1), de = v(!0);
146
+ for (let a = 0; a < i.value.length; a++)
147
+ if (((be = T.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.uri) !== "" || ((we = T.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : we.checksum.title) !== "") {
148
+ ne.value = !1;
145
149
  break;
146
150
  }
147
151
  function Se() {
148
- ae.value = [
152
+ se.value = [
149
153
  {
150
- title: D(
154
+ title: L(
151
155
  "message.dataupload.datasets.dcat:distribution.recommended.title"
152
156
  ),
153
- items: P.distributions.Recommended.map(
154
- (a) => D(
157
+ items: O.distributions.Recommended.map(
158
+ (a) => L(
155
159
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
156
160
  ) || a
157
161
  ),
158
- keys: P.distributions.Recommended
162
+ keys: O.distributions.Recommended
159
163
  },
160
164
  {
161
- title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
162
- items: P.distributions.Advanced.map(
163
- (a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
165
+ title: L("message.dataupload.datasets.dcat:distribution.advanced.title"),
166
+ items: O.distributions.Advanced.map(
167
+ (a) => L(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
164
168
  ),
165
- keys: P.distributions.Advanced
169
+ keys: O.distributions.Advanced
166
170
  }
167
171
  ];
168
172
  }
169
- function ne(a) {
173
+ function ce(a) {
170
174
  var t, e, o;
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);
175
+ (o = (e = (t = V.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (de.value || q(), de.value = !1);
172
176
  }
173
- function J(a) {
177
+ function q(a) {
174
178
  let t = !0;
175
- l.value = l.value.map((e) => {
176
- var c;
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(
179
+ i.value = i.value.map((e) => {
180
+ var g;
181
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && U(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && w.value.some(
178
182
  (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
179
- );
180
- return o && i || (t = !1), a === e.id && !L.inRap ? {
183
+ ), n = e["dcat:downloadURL"].every((h) => {
184
+ var y;
185
+ const k = (y = h["@id"]) == null ? void 0 : y.trim();
186
+ return k === "" || U(k);
187
+ }), c = o && s && n;
188
+ return c || (t = !1), a === e.id && !V.inRap ? {
181
189
  ...e,
182
- allValid: t,
190
+ isValid: c,
183
191
  showErrorDownloadURL: !1,
184
192
  showErrorFormat: !1
185
193
  } : {
186
194
  ...e,
187
- allValid: t,
195
+ isValid: c,
188
196
  showErrorDownloadURL: !o,
189
- showErrorFormat: !i
197
+ showErrorFormat: !s
190
198
  };
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;
199
+ }), V.inRap == !0 && G(), console.log(t), t && (B.value = !1), !t && i.value.length > 0 && (console.log("invalid"), i.value[0].isValid = !1), t && i.value.length > 0 && (console.log("valid"), i.value[0].isValid = !0), a == null && (B.value = !t), T.value.DistributionSimple["dcat:distribution"] = i.value;
192
200
  }
193
- function M(a, t) {
194
- var o, i, n;
201
+ function z(a, t) {
202
+ var o, s, n;
195
203
  let e = !0;
196
204
  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, (i = a[t]) == null || i.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
205
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? U(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.");
198
206
  else if (t === "dct:format") {
199
207
  const c = (n = a[t].label) == null ? void 0 : n.trim();
200
208
  e = c !== "" && w.value.some(
201
- (h) => h["@value"].toLowerCase() === c.toLowerCase()
209
+ (g) => g["@value"].toLowerCase() === c.toLowerCase()
202
210
  ), 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
211
  }
204
- de();
212
+ G(!0);
205
213
  }
206
- function de() {
207
- let a = !0;
208
- l.value = l.value.map((t) => {
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()) !== "" && E.value.some(
211
- (h) => {
212
- var g;
213
- return h["@value"].toUpperCase() === ((g = t["dct:format"].label) == null ? void 0 : g.toUpperCase());
214
+ function G(a = !1) {
215
+ let t = !0;
216
+ i.value = i.value.map((e) => {
217
+ var g, h;
218
+ const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && U(e["dcat:accessURL"]), s = ((h = e["dct:format"].label) == null ? void 0 : h.trim()) !== "" && A.value.some(
219
+ (k) => {
220
+ var y;
221
+ return k["@value"].toUpperCase() === ((y = e["dct:format"].label) == null ? void 0 : y.toUpperCase());
214
222
  }
215
- ), i = e && o;
216
- return console.log(i), i || (a = !1), {
217
- ...t,
218
- isValid: i
223
+ ), n = (e["dcat:downloadURL"] || []).every((k) => {
224
+ var F;
225
+ const y = (F = k["@id"]) == null ? void 0 : F.trim();
226
+ return y === "" || U(y);
227
+ }), c = o && s && n;
228
+ return console.log(c), c || (t = !1), {
229
+ ...e,
230
+ isValid: c
219
231
  };
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;
232
+ }), !t && i.value.length > 0 ? i.value[0].isValid = !1 : i.value.length > 0 && (i.value[0].isValid = !0), (V.inRap == !0 || !a) && (B.value = !t), T.value.DistributionSimple["dcat:distribution"] = i.value;
221
233
  }
222
- function K(a) {
234
+ function U(a) {
223
235
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
224
236
  }
225
237
  dt(() => {
226
- Le.off("nextClicked", ne), R.value && clearTimeout(R.value);
238
+ Ue.off("nextClicked", ce), _.value && clearTimeout(_.value);
227
239
  });
228
- let ce = v([]);
240
+ let re = v([]);
229
241
  ct(async () => {
230
- Le.on("nextClicked", ne);
242
+ Ue.on("nextClicked", ce);
231
243
  const a = rt(), t = a.appContext.app.config.globalProperties.$env;
232
244
  if (a) {
233
245
  const e = a.appContext.app.config.globalProperties.$env;
234
- j.value = e.content.dataProviderInterface.specification;
246
+ J.value = e.content.dataProviderInterface.specification;
235
247
  } else
236
248
  console.log("Instance is null!");
237
249
  try {
238
250
  const e = await kt(t.api.baseUrl);
239
- ce.value = e.map((i) => ({
240
- uri: i.uri,
241
- "@value": i.value,
242
- label: i.label
251
+ re.value = e.map((s) => ({
252
+ uri: s.uri,
253
+ "@value": s.value,
254
+ label: s.label
243
255
  }));
244
- const o = await bt(t.api.baseUrl);
245
- x.value = o.results.map((i) => ({
246
- "@value": i.pref_label.en,
247
- uri: i.resource,
256
+ const o = await xt(t.api.baseUrl);
257
+ D.value = o.results.map((s) => ({
258
+ "@value": s.pref_label.en,
259
+ uri: s.resource,
248
260
  selected: !1
249
261
  }));
250
262
  } catch (e) {
251
263
  error.value = e;
252
264
  }
253
265
  try {
254
- const e = await xt(t.api.baseUrl);
266
+ const e = await bt(t.api.baseUrl);
255
267
  w.value = e.results.map((o) => ({
256
268
  "@value": o.pref_label.en,
257
269
  uri: o.resource,
258
270
  selected: !1
259
- }));
271
+ })).sort((o, s) => o["@value"].localeCompare(s["@value"])), A.value = [...w.value];
260
272
  } catch (e) {
261
273
  error.value = e;
262
274
  }
263
275
  try {
264
276
  const e = await wt(t.api.baseUrl);
265
- oe.value = e;
266
- const o = await Dt(t.api.baseUrl);
267
- W.value = o;
268
- const i = await _t(t.api.baseUrl);
269
- ie.value = i;
277
+ ie.value = e;
278
+ const o = await _t(t.api.baseUrl);
279
+ H.value = o;
280
+ const s = await Dt(t.api.baseUrl);
281
+ le.value = s;
270
282
  } catch (e) {
271
283
  console.log(e);
272
284
  }
273
285
  Se();
274
286
  });
275
287
  function Ae(a, t) {
276
- const e = l.value.find((i) => i.id === t);
288
+ const e = i.value.find((s) => s.id === t);
277
289
  if (!e) return;
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;
280
- }
281
- function re(a, t) {
282
- const e = l.value.find((o) => o.id === t);
283
- e ? (e["dct:modified"] = a, s.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
290
+ let o = w.value.find((s) => s["@value"] === a).uri || "";
291
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", z(e, "dct:format"), T.value.DistributionSimple["dcat:distribution"] = i.value;
284
292
  }
285
293
  function ue(a, t) {
286
- const e = l.value.find((o) => o.id === t);
287
- e ? (e["dct:issued"] = a, s.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
294
+ const e = i.value.find((o) => o.id === t);
295
+ e ? (e["dct:modified"] = a, l.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
288
296
  }
289
297
  function me(a, t) {
290
- const e = l.value.find((o) => o.id === t);
291
- e ? (e["dct:description"] = a, s.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
298
+ const e = i.value.find((o) => o.id === t);
299
+ e ? (e["dct:issued"] = a, l.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
292
300
  }
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}.`);
301
+ function fe(a, t) {
302
+ const e = i.value.find((o) => o.id === t);
303
+ e ? (e["dct:description"] = a, l.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
296
304
  }
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
+ function pe(a, t, e) {
306
+ const o = i.value.find((s) => s.id === t);
307
+ e || (console.log(H.value), e = H.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, l.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
300
308
  }
301
- function ve(a, t, e, o) {
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}.`);
309
+ function ve(a, t) {
310
+ const e = i.value.find((o) => o.id === t);
311
+ e ? (e["adms:status"] = a, l.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
305
312
  }
306
313
  function he(a, t, e, o) {
307
- const i = l.value.find((c) => c.id === e);
308
- let n = ce.value.find(
314
+ ne.value = !0;
315
+ const s = i.value.find((n) => n.id === e);
316
+ o || (o = ie.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", l.value.checksumText = a, l.value.checksumDropdownText = t, l.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
317
+ }
318
+ function ge(a, t, e, o) {
319
+ const s = i.value.find((c) => c.id === e);
320
+ let n = re.value.find(
309
321
  (c) => c["@value"] === t
310
322
  );
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"] = [
323
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, T.value.DistributionSimple["dct:license"] = [
312
324
  {
313
325
  title: a,
314
326
  "dcterms:license": t,
315
327
  uri: n.uri
316
328
  }
317
- ], s.value.changeLicenseText = a, s.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
329
+ ], l.value.changeLicenseText = a, l.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
318
330
  }
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}.`);
331
+ function ye(a, t, e) {
332
+ const o = i.value.find((s) => s.id === t);
333
+ e || (e = le.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}.`);
322
334
  }
323
- function ye(a, t) {
324
- const e = l.value.find((o) => o.id === t);
325
- e ? (e["dcat:byteSize"] = a, s.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
335
+ function ke(a, t) {
336
+ const e = i.value.find((o) => o.id === t);
337
+ e ? (e["dcat:byteSize"] = a, l.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
326
338
  }
327
- function _(a, t, e) {
328
- const o = l.value.find((n) => n.id === e);
329
- let i = x.value.find((n) => n["@value"] === a).uri || "";
339
+ function R(a, t, e) {
340
+ const o = i.value.find((n) => n.id === e);
341
+ let s = D.value.find((n) => n["@value"] === a).uri || "";
330
342
  if (o)
331
- switch (o[t] = { label: a, uri: i }, t) {
343
+ switch (o[t] = { label: a, uri: s }, t) {
332
344
  case "dcat:mediaType":
333
- s.value.mediaTypeText = a;
345
+ l.value.mediaTypeText = a;
334
346
  break;
335
347
  case "dcat:compressFormat":
336
- s.value.compressFormatText = a;
348
+ l.value.compressFormatText = a;
337
349
  break;
338
350
  case "dcat:packageFormat":
339
- s.value.packageFormatText = a;
351
+ l.value.packageFormatText = a;
340
352
  break;
341
353
  }
342
354
  else
343
355
  console.warn(`No matching distribution found for ID ${e}.`);
344
356
  }
345
357
  function Fe(a) {
346
- y(
358
+ x(
347
359
  a,
348
360
  "Konform zu Standard",
349
361
  "conformsToItems",
@@ -352,7 +364,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
352
364
  );
353
365
  }
354
366
  function $e(a) {
355
- y(
367
+ x(
356
368
  a,
357
369
  "Verfügbarkeit",
358
370
  "dcatap:availability",
@@ -361,7 +373,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
361
373
  );
362
374
  }
363
375
  function Ee(a) {
364
- y(
376
+ x(
365
377
  a,
366
378
  "Status",
367
379
  "adms:status",
@@ -369,8 +381,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
369
381
  !1
370
382
  );
371
383
  }
372
- function Be(a) {
373
- y(
384
+ function Me(a) {
385
+ x(
374
386
  a,
375
387
  "Größe in Bytes",
376
388
  "dcat:byteSize",
@@ -378,8 +390,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
378
390
  !1
379
391
  );
380
392
  }
381
- function Me(a) {
382
- y(
393
+ function Be(a) {
394
+ x(
383
395
  a,
384
396
  "Sprache",
385
397
  "dct:language",
@@ -387,11 +399,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
387
399
  !1
388
400
  );
389
401
  }
390
- function q(a, t) {
391
- y(t, a, a, !0, !1);
402
+ function Q(a, t) {
403
+ x(t, a, a, !0, !1);
392
404
  }
393
405
  function ze(a) {
394
- y(
406
+ x(
395
407
  a,
396
408
  "Regelwerk",
397
409
  "policyItems",
@@ -400,7 +412,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
400
412
  );
401
413
  }
402
414
  function Pe(a) {
403
- y(
415
+ x(
404
416
  a,
405
417
  "Dokumentation",
406
418
  "documentations",
@@ -409,7 +421,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
409
421
  );
410
422
  }
411
423
  function Ne(a) {
412
- y(
424
+ x(
413
425
  a,
414
426
  "Ausliefernder Datenservice",
415
427
  "accessServices",
@@ -418,11 +430,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
418
430
  );
419
431
  }
420
432
  function Oe(a, t, e) {
421
- const o = b.value.DistributionSimple["dcat:distribution"].find((i) => i.id === t);
422
- o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
433
+ const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
434
+ s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
435
+ const n = a.trim();
436
+ n === "" || U(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), G(!0);
437
+ }, 800);
423
438
  }
424
439
  function We(a) {
425
- y(
440
+ x(
426
441
  a,
427
442
  "Aktualisierungsdatum",
428
443
  "dct:modified",
@@ -430,7 +445,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
430
445
  );
431
446
  }
432
447
  function je(a) {
433
- y(
448
+ x(
434
449
  a,
435
450
  "Veröffentlichungsdatum",
436
451
  "dct:issued",
@@ -438,19 +453,19 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
438
453
  );
439
454
  }
440
455
  function He(a) {
441
- y(
456
+ x(
442
457
  a,
443
458
  "Beschreibung",
444
459
  "dct:description",
445
460
  !0
446
461
  );
447
462
  }
448
- const Je = Ve(() => j.value ? Ce.getters["dpiStore/getNavSteps"](j.value) : {});
463
+ const Je = Ve(() => J.value ? Ce.getters["dpiStore/getNavSteps"](J.value) : {});
449
464
  ut(Je, (a) => {
450
- }), te.value || L.context.node.input([{ isValid: "unset" }]);
465
+ }), oe.value || V.context.node.input([{ isValid: "unset" }]);
451
466
  function Ke() {
452
467
  const a = Date.now();
453
- l.value.push({
468
+ i.value.push({
454
469
  isValid: "unset",
455
470
  id: a,
456
471
  "dcat:accessURL": "",
@@ -482,10 +497,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
482
497
  title: "",
483
498
  "dcterms:license": ""
484
499
  }
485
- }), J(a);
500
+ }), q(a);
486
501
  }
487
502
  function qe(a, t) {
488
- const e = l.value.find((o) => o.id === a);
503
+ const e = i.value.find((o) => o.id === a);
489
504
  if (!e) {
490
505
  console.error(`Distribution with ID ${a} not found`);
491
506
  return;
@@ -495,14 +510,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
495
510
  return;
496
511
  }
497
512
  e.documentations = e.documentations.filter(
498
- (o) => t.some((i) => i.id === o.id)
513
+ (o) => t.some((s) => s.id === o.id)
499
514
  ), t.forEach((o) => {
500
- const i = e.documentations.findIndex(
515
+ const s = e.documentations.findIndex(
501
516
  (n) => n.id === o.id
502
517
  );
503
- if (i !== -1)
504
- e.documentations[i] = {
505
- ...e.documentations[i],
518
+ if (s !== -1)
519
+ e.documentations[s] = {
520
+ ...e.documentations[s],
506
521
  ...o
507
522
  };
508
523
  else {
@@ -519,7 +534,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
519
534
  });
520
535
  }
521
536
  function Ge(a, t) {
522
- const e = l.value.find((o) => o.id === a);
537
+ const e = i.value.find((o) => o.id === a);
523
538
  if (!e) {
524
539
  console.error(`Distribution with ID ${a} not found`);
525
540
  return;
@@ -533,15 +548,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
533
548
  }
534
549
  e.accessServices = e.accessServices.filter(
535
550
  (o) => t.some(
536
- (i) => i.id === o.id
551
+ (s) => s.id === o.id
537
552
  )
538
553
  ), t.forEach((o) => {
539
- const i = e.accessServices.findIndex(
554
+ const s = e.accessServices.findIndex(
540
555
  (n) => n.id === o.id
541
556
  );
542
- if (i !== -1)
543
- e.accessServices[i] = {
544
- ...e.accessServices[i],
557
+ if (s !== -1)
558
+ e.accessServices[s] = {
559
+ ...e.accessServices[s],
545
560
  ...o
546
561
  };
547
562
  else {
@@ -557,7 +572,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
557
572
  }
558
573
  function Qe(a, t) {
559
574
  var o;
560
- const e = l.value.find((i) => i.id === a);
575
+ const e = i.value.find((s) => s.id === a);
561
576
  if (!e) {
562
577
  console.error(`Distribution with ID ${a} not found`);
563
578
  return;
@@ -567,22 +582,22 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
567
582
  return;
568
583
  }
569
584
  e.conformsToItems = ((o = e == null ? void 0 : e.conformsToItems) == null ? void 0 : o.filter(
570
- (i) => t.some((n) => n.id === i.id)
571
- )) || [], t.forEach((i) => {
585
+ (s) => t.some((n) => n.id === s.id)
586
+ )) || [], t.forEach((s) => {
572
587
  const n = e.conformsToItems.findIndex(
573
- (c) => c.id === i.id
588
+ (c) => c.id === s.id
574
589
  );
575
590
  if (n !== -1)
576
591
  e.conformsToItems[n] = {
577
592
  ...e.conformsToItems[n],
578
- ...i
593
+ ...s
579
594
  };
580
595
  else {
581
- const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((h) => h.id)) + 1 : 1;
596
+ const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
582
597
  e.conformsToItems.push({
583
- id: i.id || c,
584
- "dcat:downloadURL": i["dcat:downloadURL"] || "",
585
- "dct:title": i["dct:title"] || ""
598
+ id: s.id || c,
599
+ "dcat:downloadURL": s["dcat:downloadURL"] || "",
600
+ "dct:title": s["dct:title"] || ""
586
601
  });
587
602
  }
588
603
  });
@@ -590,18 +605,18 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
590
605
  function Xe(a, t) {
591
606
  }
592
607
  function Ye(a) {
593
- if (a === "deleteDataset" && k.value !== null) {
594
- if (l.value.length === 1) {
595
- H.value = !0;
608
+ if (a === "deleteDataset" && b.value !== null) {
609
+ if (i.value.length === 1) {
610
+ K.value = !0;
596
611
  return;
597
612
  }
598
- l.value = l.value.filter(
599
- (t) => t.id !== k.value
600
- ), H.value = !1, k.value = null, J();
613
+ i.value = i.value.filter(
614
+ (t) => t.id !== b.value
615
+ ), K.value = !1, b.value = null, q();
601
616
  }
602
617
  }
603
618
  function Ze(a) {
604
- const t = JSON.parse(a), e = l.value.find(
619
+ const t = JSON.parse(a), e = i.value.find(
605
620
  (o) => o.id === t.distributionId
606
621
  );
607
622
  if (t.isArray) {
@@ -611,10 +626,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
611
626
  t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
612
627
  }
613
628
  function et(a) {
614
- var e, o, i, n, c;
615
- k.value = a;
616
- const t = l.value.find((h) => h.id === a);
617
- t && (s.value = {
629
+ var e, o, s, n, c;
630
+ b.value = a;
631
+ const t = i.value.find((g) => g.id === a);
632
+ t && (l.value = {
618
633
  button: "",
619
634
  header: "Optionale Informationen hinzufügen",
620
635
  text: "",
@@ -630,7 +645,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
630
645
  // nameTextByClauses: distribution["dcatde:licenseAttributionByText"] || "",
631
646
  // accessRightsText: distribution["dct:accessRights"].uri || "",
632
647
  availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
633
- languageText: ((i = t == null ? void 0 : t["dct:language"]) == null ? void 0 : i["@value"]) || "",
648
+ languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
634
649
  byteSizeText: t["dcat:byteSize"] || "",
635
650
  mediaTypeText: t["dcat:mediaType"].label || "",
636
651
  // compressFormatText: distribution["dcat:compressFormat"].label || "",
@@ -644,167 +659,171 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
644
659
  conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
645
660
  policyItems: (t == null ? void 0 : t.policyItems) || [],
646
661
  downloadURL: (t == null ? void 0 : t.downloadURL) || []
647
- }, $.value = !0, document.body.style.overflow = "hidden");
662
+ }, M.value = !0, document.body.style.overflow = "hidden");
648
663
  }
649
664
  function tt() {
650
- $.value = !1, document.body.style.overflow = "auto";
665
+ M.value = !1, document.body.style.overflow = "auto";
651
666
  }
652
667
  function at(a) {
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 : "", i = t ? t["dcat:accessURL"] : "";
655
- s.value = {
668
+ b.value = a;
669
+ 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"] : "";
670
+ l.value = {
656
671
  button: "Löschen",
657
- header: D(
672
+ header: L(
658
673
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
659
674
  ),
660
- text: D(
675
+ text: L(
661
676
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
662
677
  ),
663
678
  action: "deleteDataset",
664
679
  title: e,
665
680
  format: o,
666
- distributionLink: i
667
- }, $.value = !0;
681
+ distributionLink: s
682
+ }, M.value = !0;
668
683
  }
669
- function y(a, t, e, o, i) {
684
+ function x(a, t, e, o, s) {
670
685
  const c = JSON.stringify({
671
686
  distributionId: a,
672
687
  optType: e,
673
688
  useUndefined: o,
674
- isArray: i
689
+ isArray: s
675
690
  });
676
- C.value = {
691
+ S.value = {
677
692
  button: "Löschen",
678
693
  header: `${t} löschen`,
679
694
  text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
680
695
  action: c
681
- }, O.value = !0;
696
+ }, j.value = !0;
682
697
  }
683
- function G(a, t, e) {
684
- var i, n, c, h;
685
- const o = l.value.find((g) => g.id === e);
698
+ function X(a, t, e) {
699
+ var s, n, c, g;
700
+ const o = i.value.find((h) => h.id === e);
686
701
  if (o)
687
702
  if (t === "dcat:accessURL") {
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);
703
+ const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
704
+ o[t] = h, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
705
+ z(o, t);
691
706
  }, 800);
692
707
  } else if (t === "dct:format") {
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
- if (o.showErrorFormat = !1, o.formatErrorMessage = "", g === "")
695
- E.value = [...w.value];
708
+ const h = typeof a == "string" ? a.trim() : (c = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : c.trim();
709
+ if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
710
+ A.value = [...w.value];
696
711
  else {
697
- const T = w.value.find(
698
- (I) => I["@value"].toLowerCase() === g.toLowerCase()
712
+ const k = w.value.find(
713
+ (y) => y["@value"].toLowerCase() === h.toLowerCase()
699
714
  );
700
- T ? (o[t] = {
701
- label: T["@value"],
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."), E.value = w.value.filter(
704
- (I) => I["@value"].toLowerCase().includes(g.toLowerCase())
715
+ k ? (o[t] = {
716
+ label: k["@value"],
717
+ uri: k.uri
718
+ }, 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."), A.value = w.value.filter(
719
+ (y) => y["@value"].toLowerCase().includes(h.toLowerCase())
705
720
  );
706
721
  }
707
- M(o, t);
722
+ z(o, t);
708
723
  } else
709
- o[t] = (h = a == null ? void 0 : a.target) == null ? void 0 : h.value, M(o, t);
724
+ o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, z(o, t);
710
725
  }
711
726
  function ot(a, t) {
712
- const e = l.value.find((o) => o.id === a);
727
+ const e = i.value.find((o) => o.id === a);
713
728
  e.documentations = e.documentations.filter(
714
- (o) => t.some((i) => i.id === o.id)
729
+ (o) => t.some((s) => s.id === o.id)
715
730
  );
716
731
  }
717
- function it(a, t) {
718
- const e = l.value.find((o) => o.id === a);
732
+ function st(a, t) {
733
+ const e = i.value.find((o) => o.id === a);
719
734
  e.accessServices = e.accessServices.filter(
720
- (o) => t.some((i) => i.id === o.id)
735
+ (o) => t.some((s) => s.id === o.id)
721
736
  );
722
737
  }
723
- function st(a, t) {
724
- const e = l.value.find((o) => o.id === a);
738
+ function it(a, t) {
739
+ const e = i.value.find((o) => o.id === a);
725
740
  e.conformsToItems = e.conformsToItems.filter(
726
- (o) => t.some((i) => i.id === o.id)
741
+ (o) => t.some((s) => s.id === o.id)
727
742
  );
728
743
  }
729
744
  function lt(a, t) {
730
- const e = l.value.find((o) => o.id === a);
745
+ const e = i.value.find((o) => o.id === a);
731
746
  e.policyItems = e.policyItems.filter(
732
- (o) => t.some((i) => i.id === o.id)
747
+ (o) => t.some((s) => s.id === o.id)
733
748
  );
734
749
  }
735
- return (a, t) => (r(), m(Q, null, [
736
- f("div", Ot, [
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
- return r(), m("div", {
750
+ return (a, t) => (r(), f(Z, null, [
751
+ m("div", Ot, [
752
+ C.inRap ? p("", !0) : (r(), f("h4", Wt, $(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
753
+ C.inRap ? p("", !0) : (r(), f("div", jt, $(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
754
+ (r(!0), f(Z, null, Le(I(i), (e, o) => {
755
+ var s, n, c, g, h, k, y, F, _e, De, Te, Ie;
756
+ return r(), f("div", {
742
757
  key: e.id,
743
758
  class: "dpiV3AutoCompleteWrap"
744
759
  }, [
745
- f("div", Ht, [
746
- u(Z, {
747
- "add-on-text": !1,
748
- datePicker: !1,
749
- infoIcon: !0,
750
- tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
760
+ m("div", Ht, [
761
+ m("div", Jt, [
762
+ u(te, {
763
+ "add-on-text": !1,
764
+ datePicker: !1,
765
+ infoIcon: !0,
766
+ tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
751
767
  wird oder über eine Schnittstelle abgerufen werden kann.`,
752
- placeholder: a.$t(
753
- "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
754
- ),
755
- preIcon: !1,
756
- "input-field-size": "large",
757
- initialHintText: !1,
758
- label: a.$t(
759
- "message.dataupload.datasets.dcat:distribution.download-link.label"
760
- ),
761
- showEndIcon: !1,
762
- showError: e.showErrorDownloadURL,
763
- "model-value": e["dcat:accessURL"],
764
- onInput: (d) => G(d, "dcat:accessURL", e.id)
765
- }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
766
- e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Jt, [
767
- u(V(Y), {
768
- size: 16,
769
- weight: "fill"
770
- }),
771
- f("span", Kt, z(e.urlErrorMessage), 1)
772
- ])) : p("", !0),
773
- u(Tt, {
774
- "dropdown-width": "large",
775
- type: "inputField",
776
- "input-field-props": {
777
- addOnText: !1,
768
+ placeholder: a.$t(
769
+ "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
770
+ ),
771
+ preIcon: !1,
772
+ "input-field-size": "large",
778
773
  initialHintText: !1,
779
- datePicker: !1,
780
- infoIcon: !1,
781
- preIcon: !0,
782
- showEndIcon: !1,
783
774
  label: a.$t(
784
- "message.dataupload.datasets.dcat:distribution.format.label"
775
+ "message.dataupload.datasets.dcat:distribution.download-link.label"
785
776
  ),
786
- dropdown_dpiV3: !0,
787
- placeholder: a.$t(
788
- "message.dataupload.datasets.dcat:distribution.format.placeholder"
789
- ),
790
- inputFieldSize: "large",
791
- autocomplete: "true",
792
- showError: e.showErrorFormat
793
- },
794
- data: E.value,
795
- autocomplete: !0,
796
- onInput: (d) => G(d, "dct:format", e.id),
797
- "onUpdate:modelValue": (d) => Ae(d, e.id),
798
- "model-value": (i = e == null ? void 0 : e["dct:format"]) == null ? void 0 : i.label
799
- }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
800
- e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", qt, [
801
- u(V(Y), {
802
- size: 16,
803
- weight: "fill"
804
- }),
805
- f("span", Gt, z(e.formatErrorMessage), 1)
806
- ])) : p("", !0),
807
- u(Z, {
777
+ showEndIcon: !1,
778
+ showError: e.showErrorDownloadURL,
779
+ "model-value": e["dcat:accessURL"],
780
+ onInput: (d) => X(d, "dcat:accessURL", e.id)
781
+ }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
782
+ e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Kt, [
783
+ u(I(N), {
784
+ size: 16,
785
+ weight: "fill"
786
+ }),
787
+ m("span", qt, $(e.urlErrorMessage), 1)
788
+ ])) : p("", !0)
789
+ ]),
790
+ m("div", Gt, [
791
+ u(Tt, {
792
+ "dropdown-width": "large",
793
+ type: "inputField",
794
+ "input-field-props": {
795
+ addOnText: !1,
796
+ initialHintText: !1,
797
+ datePicker: !1,
798
+ infoIcon: !1,
799
+ preIcon: !0,
800
+ showEndIcon: !1,
801
+ label: a.$t(
802
+ "message.dataupload.datasets.dcat:distribution.format.label"
803
+ ),
804
+ dropdown_dpiV3: !0,
805
+ placeholder: a.$t(
806
+ "message.dataupload.datasets.dcat:distribution.format.placeholder"
807
+ ),
808
+ inputFieldSize: "large",
809
+ autocomplete: "true",
810
+ showError: e.showErrorFormat
811
+ },
812
+ data: A.value,
813
+ autocomplete: !0,
814
+ onInput: (d) => X(d, "dct:format", e.id),
815
+ "onUpdate:modelValue": (d) => Ae(d, e.id),
816
+ "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
817
+ }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
818
+ e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", Qt, [
819
+ u(I(N), {
820
+ size: 16,
821
+ weight: "fill"
822
+ }),
823
+ m("span", Xt, $(e.formatErrorMessage), 1)
824
+ ])) : p("", !0)
825
+ ]),
826
+ u(te, {
808
827
  modelValue: e["dct:title"],
809
828
  "onUpdate:modelValue": (d) => e["dct:title"] = d,
810
829
  "add-on-text": !1,
@@ -820,23 +839,23 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
820
839
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
821
840
  ),
822
841
  "show-end-icon": !1,
823
- onInput: (d) => G(d, "dct:title", e.id)
842
+ onInput: (d) => X(d, "dct:title", e.id)
824
843
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
825
- (e.documentations || []).length > 0 ? (r(), m("div", Qt, [
826
- f("div", Xt, [
827
- t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
828
- f("div", null, [
829
- u(F, {
844
+ (e.documentations || []).length > 0 ? (r(), f("div", Yt, [
845
+ m("div", Zt, [
846
+ t[6] || (t[6] = m("div", null, "Webpage (optional)", -1)),
847
+ m("div", null, [
848
+ u(E, {
830
849
  "button-text": "löschen",
831
850
  onClick: (d) => Pe(e.id)
832
851
  }, null, 8, ["onClick"])
833
852
  ])
834
853
  ]),
835
- f("div", Yt, [
836
- f("div", Zt, [
854
+ m("div", ea, [
855
+ m("div", ta, [
837
856
  u($t, {
838
857
  documentations: e.documentations,
839
- "file-types": x.value,
858
+ "file-types": D.value,
840
859
  "distribution-id": e.id,
841
860
  "as-card": !0,
842
861
  "show-delete-button": !0,
@@ -845,24 +864,24 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
845
864
  ])
846
865
  ])
847
866
  ])) : p("", !0),
848
- (e.accessServices || []).length > 0 ? (r(), m("div", ea, [
849
- f("div", ta, [
850
- t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
851
- f("div", null, [
852
- u(F, {
867
+ (e.accessServices || []).length > 0 ? (r(), f("div", aa, [
868
+ m("div", oa, [
869
+ t[7] || (t[7] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
870
+ m("div", null, [
871
+ u(E, {
853
872
  "button-text": "löschen",
854
873
  onClick: (d) => Ne(e.id)
855
874
  }, null, 8, ["onClick"])
856
875
  ])
857
876
  ]),
858
- f("div", aa, [
859
- f("div", oa, [
860
- u(Ut, {
877
+ m("div", sa, [
878
+ m("div", ia, [
879
+ u(Lt, {
861
880
  "access-services": e.accessServices,
862
881
  "distribution-id": e.id,
863
882
  "as-card": !0,
864
883
  "show-delete-button": !0,
865
- onUpdate: (d) => it(
884
+ onUpdate: (d) => st(
866
885
  e.id,
867
886
  d
868
887
  )
@@ -870,71 +889,75 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
870
889
  ])
871
890
  ])
872
891
  ])) : p("", !0),
873
- (r(!0), m(Q, { key: 4 }, Ue(e["dcat:downloadURL"], (d, S) => (r(), m("div", ia, [
874
- f("div", sa, [
875
- t[8] || (t[8] = f("div", {
892
+ (r(!0), f(Z, null, Le(e["dcat:downloadURL"], (d, P) => (r(), f("div", {
893
+ key: P,
894
+ class: "dpiV3_DocumentationsInDistr"
895
+ }, [
896
+ m("div", la, [
897
+ t[8] || (t[8] = m("div", {
876
898
  class: "dpiV3_label",
877
899
  style: { margin: "0" }
878
900
  }, " DownloadURL (optional) ", -1)),
879
- e["dcat:downloadURL"].length !== 1 ? (r(), m("div", la, [
880
- u(F, {
901
+ e["dcat:downloadURL"].length !== 1 ? (r(), f("div", na, [
902
+ u(E, {
881
903
  "button-text": "löschen",
882
- onClick: (A) => e["dcat:downloadURL"].splice(S, 1)
904
+ onClick: (Y) => e["dcat:downloadURL"].splice(P, 1)
883
905
  }, null, 8, ["onClick"])
884
906
  ])) : p("", !0)
885
907
  ]),
886
- u(Z, {
887
- onInput: (A) => Oe(
888
- A.target.value,
889
- e.id,
890
- S
891
- ),
892
- addOnText: !1,
893
- datePicker: !1,
894
- infoIcon: !1,
895
- placeholder: "Bitte URL eingeben...",
896
- preIcon: !1,
897
- inputFieldSize: "large",
898
- initialHintText: !1,
899
- label: "",
900
- modelValue: e["dcat:downloadURL"][S]["@id"],
901
- "onUpdate:modelValue": (A) => e["dcat:downloadURL"][S]["@id"] = A,
902
- showEndIcon: !1
903
- }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
904
- S === e["dcat:downloadURL"].length - 1 ? (r(), m("div", na, [
905
- u(N, {
908
+ m("div", da, [
909
+ u(te, {
910
+ "model-value": d["@id"],
911
+ onInput: (Y) => Oe(Y.target.value, e.id, P),
912
+ showError: d.showError,
913
+ initialHintText: !1,
914
+ addOnText: !1,
915
+ placeholder: "Bitte URL eingeben...",
916
+ inputFieldSize: "large",
917
+ label: ""
918
+ }, null, 8, ["model-value", "onInput", "showError"]),
919
+ d.showError ? (r(), f("div", ca, [
920
+ u(I(N), {
921
+ size: 16,
922
+ weight: "fill"
923
+ }),
924
+ m("span", ra, $(d.errorMessage), 1)
925
+ ])) : p("", !0)
926
+ ]),
927
+ P === e["dcat:downloadURL"].length - 1 ? (r(), f("div", ua, [
928
+ u(W, {
906
929
  buttonText: "Weitere DownloadURL hinzufügen",
907
930
  size: "small",
908
931
  iconStart: "plus",
909
932
  variant: "tertiary",
910
- onClick: (A) => e["dcat:downloadURL"].push({ "@id": "" })
933
+ onClick: (Y) => e["dcat:downloadURL"].push({ "@id": "", showError: !1, errorMessage: "" })
911
934
  }, null, 8, ["onClick"])
912
935
  ])) : p("", !0)
913
- ]))), 256)),
914
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), m("div", da, [
915
- u(Mt, {
936
+ ]))), 128)),
937
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), f("div", ma, [
938
+ u(Bt, {
916
939
  "show-delete-button": !0,
917
940
  "distribution-id": e.id,
918
941
  "model-value": e["dct:modified"],
919
- onAddModifiedDate: re,
942
+ onAddModifiedDate: ue,
920
943
  onDeleteButtonClicked: (d) => We(e.id)
921
944
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
922
945
  ])) : p("", !0),
923
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), m("div", ca, [
946
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), f("div", fa, [
924
947
  u(Et, {
925
948
  "show-delete-button": !0,
926
949
  "distribution-id": e.id,
927
950
  "model-value": e["dct:issued"],
928
- onAddIssuedDate: ue,
951
+ onAddIssuedDate: me,
929
952
  onDeleteButtonClicked: (d) => je(e.id)
930
953
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
931
954
  ])) : p("", !0),
932
- mt(f("div", ra, [
955
+ mt(m("div", pa, [
933
956
  u(Ft, {
934
957
  "distribution-id": e.id,
935
958
  "description-text": e["dct:description"],
936
959
  "show-delete-button": !0,
937
- onAddDescription: me,
960
+ onAddDescription: fe,
938
961
  onDeleteDescription: (d) => He(e.id)
939
962
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
940
963
  ], 512), [
@@ -943,25 +966,25 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
943
966
  e["dct:description"] !== void 0 && e["dct:description"] !== ""
944
967
  ]
945
968
  ]),
946
- e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), m("div", ua, [
947
- u(Lt, {
969
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div", va, [
970
+ u(Ut, {
948
971
  "availability-text": e["dcatap:availability"].label.de,
949
972
  "distribution-id": e.id,
950
973
  "show-delete-button": !0,
951
- onAddAvailability: fe,
974
+ onAddAvailability: pe,
952
975
  onDeleteButtonClicked: (d) => $e(e.id)
953
976
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
954
977
  ])) : p("", !0),
955
- e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), m("div", ma, [
978
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), f("div", ha, [
956
979
  u(Pt, {
957
980
  "status-text": e["adms:status"]["@value"],
958
981
  "distribution-id": e.id,
959
982
  "show-delete-button": !0,
960
- onAddStatus: pe,
983
+ onAddStatus: ve,
961
984
  onDeleteButtonClicked: (d) => Ee(e.id)
962
985
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
963
986
  ])) : p("", !0),
964
- e.checksum["spdx:checksum"] != "" ? (r(), m("div", fa, [
987
+ e.checksum["spdx:checksum"] != "" ? (r(), f("div", ga, [
965
988
  u(St, {
966
989
  "checksum-text": e.checksum.title,
967
990
  "checksum-dropdown-text": e.checksum["spdx:checksum"],
@@ -969,24 +992,24 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
969
992
  distIndex: o,
970
993
  "checksum-u-r-i": e.checksum.uri,
971
994
  "show-delete-button": !0,
972
- onAddChecksum: ve
995
+ onAddChecksum: he
973
996
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
974
997
  ])) : p("", !0),
975
- Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), m("div", pa, [
998
+ Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div", ya, [
976
999
  u(Ct, {
977
1000
  "change-license-text": (c = e["dct:license"]) == null ? void 0 : c.title,
978
- "change-license-dropdown-text": (h = e["dct:license"]) == null ? void 0 : h["dcterms:license"],
1001
+ "change-license-dropdown-text": (g = e["dct:license"]) == null ? void 0 : g["dcterms:license"],
979
1002
  "distribution-id": e.id,
980
1003
  "as-card": !0,
981
1004
  "show-delete-button": !0,
982
- onAddChangeLicense: he
1005
+ onAddChangeLicense: ge
983
1006
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
984
1007
  ])) : p("", !0),
985
- e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", va, [
986
- f("div", ha, [
987
- t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
988
- f("div", null, [
989
- u(F, {
1008
+ e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div", ka, [
1009
+ m("div", xa, [
1010
+ t[9] || (t[9] = m("div", null, "Konform zu Standard (optional)", -1)),
1011
+ m("div", null, [
1012
+ u(E, {
990
1013
  "button-text": "löschen",
991
1014
  onClick: (d) => Fe(e.id)
992
1015
  }, null, 8, ["onClick"])
@@ -997,14 +1020,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
997
1020
  "distribution-id": e.id,
998
1021
  "as-card": !0,
999
1022
  "show-delete-button": !0,
1000
- onUpdate: (d) => st(e.id, d)
1023
+ onUpdate: (d) => it(e.id, d)
1001
1024
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1002
1025
  ])) : p("", !0),
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
- f("div", ya, [
1005
- t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
1006
- f("div", null, [
1007
- u(F, {
1026
+ ((k = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : k["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), f("div", ba, [
1027
+ m("div", wa, [
1028
+ t[10] || (t[10] = m("div", null, "Regelwerk (optional)", -1)),
1029
+ m("div", null, [
1030
+ u(E, {
1008
1031
  "button-text": "löschen",
1009
1032
  onClick: (d) => ze(e.id)
1010
1033
  }, null, 8, ["onClick"])
@@ -1017,68 +1040,68 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1017
1040
  onUpdate: (d) => lt(e.id, d)
1018
1041
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1019
1042
  ])) : p("", !0),
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
- u(Bt, {
1043
+ (F = (y = e["dct:language"]) == null ? void 0 : y[0]) != null && F.label || (De = (_e = e["dct:language"]) == null ? void 0 : _e[0]) != null && De["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), f("div", _a, [
1044
+ u(Mt, {
1022
1045
  "distribution-id": e.id,
1023
1046
  "show-delete-button": !1,
1024
- onAddLanguage: ge,
1025
- onDeleteButtonClicked: (d) => Me(e.id),
1047
+ onAddLanguage: ye,
1048
+ onDeleteButtonClicked: (d) => Be(e.id),
1026
1049
  inOverview: !0
1027
1050
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1028
1051
  ])) : p("", !0),
1029
- e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", ba, [
1052
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), f("div", Da, [
1030
1053
  u(Rt, {
1031
1054
  "byte-size-prop": e["dcat:byteSize"],
1032
1055
  "distribution-id": e.id,
1033
1056
  "show-delete-button": !0,
1034
- onAddByteSize: ye,
1035
- onDeleteButtonClicked: (d) => Be(e.id)
1057
+ onAddByteSize: ke,
1058
+ onDeleteButtonClicked: (d) => Me(e.id)
1036
1059
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1037
1060
  ])) : p("", !0),
1038
- e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", xa, [
1039
- u(ee, {
1061
+ e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), f("div", Ta, [
1062
+ u(ae, {
1040
1063
  "distribution-id": e.id,
1041
- "file-types": x.value,
1064
+ "file-types": D.value,
1042
1065
  "file-format-type": "dcat:mediaType",
1043
1066
  "file-format-text": e["dcat:mediaType"].label,
1044
1067
  "show-delete-button": !0,
1045
- onAddMediaType: _,
1046
- onDeleteButtonClicked: t[0] || (t[0] = (d) => q("dcat:mediaType", k.value))
1068
+ onAddMediaType: R,
1069
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", b.value))
1047
1070
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1048
1071
  ])) : p("", !0),
1049
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", wa, [
1050
- u(ee, {
1072
+ e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), f("div", Ia, [
1073
+ u(ae, {
1051
1074
  "distribution-id": e.id,
1052
- "file-types": x.value,
1075
+ "file-types": D.value,
1053
1076
  "file-format-type": "dcat:compressFormat",
1054
1077
  "compress-format-text": e["dcat:compressFormat"].label,
1055
1078
  "show-delete-button": !0,
1056
- onAddCompressFormat: _,
1057
- onDeleteButtonClicked: t[1] || (t[1] = (d) => q("dcat:compressFormat", k.value))
1079
+ onAddCompressFormat: R,
1080
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", b.value))
1058
1081
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1059
1082
  ])) : p("", !0),
1060
- e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", Da, [
1061
- u(ee, {
1083
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div", Va, [
1084
+ u(ae, {
1062
1085
  "distribution-id": e.id,
1063
- "file-types": x.value,
1086
+ "file-types": D.value,
1064
1087
  "file-format-type": "dcat:packageFormat",
1065
1088
  "package-format-text": e["dcat:packageFormat"].label,
1066
1089
  "show-delete-button": !0,
1067
- onAddPackageFormat: _,
1068
- onDeleteButtonClicked: t[2] || (t[2] = (d) => q("dcat:packageFormat", k.value))
1090
+ onAddPackageFormat: R,
1091
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", b.value))
1069
1092
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1070
1093
  ])) : p("", !0),
1071
- H.value && V(l).length === 1 ? (r(), m("p", _a, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1094
+ K.value && I(i).length === 1 ? (r(), f("p", La, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1072
1095
  ]),
1073
- f("div", Ta, [
1074
- u(N, {
1096
+ m("div", Ua, [
1097
+ u(W, {
1075
1098
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1076
1099
  size: "small",
1077
1100
  "icon-start": "PlusSquare",
1078
1101
  variant: "tertiary",
1079
1102
  onClick: (d) => et(e.id)
1080
1103
  }, null, 8, ["button-text", "onClick"]),
1081
- V(l).length > 1 ? (r(), X(N, {
1104
+ I(i).length > 1 ? (r(), ee(W, {
1082
1105
  key: 0,
1083
1106
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1084
1107
  size: "small",
@@ -1089,8 +1112,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1089
1112
  ])
1090
1113
  ]);
1091
1114
  }), 128)),
1092
- f("div", Ia, [
1093
- u(N, {
1115
+ m("div", Ra, [
1116
+ u(W, {
1094
1117
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1095
1118
  size: "large",
1096
1119
  "icon-start": "plus",
@@ -1098,86 +1121,86 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1098
1121
  onClick: Ke
1099
1122
  }, null, 8, ["button-text"])
1100
1123
  ]),
1101
- B.value ? (r(), m("div", {
1124
+ B.value ? (r(), f("div", {
1102
1125
  key: 2,
1103
- class: pt(U.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1126
+ class: pt(C.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1104
1127
  }, [
1105
- u(V(Y), {
1128
+ u(I(N), {
1106
1129
  size: 16,
1107
1130
  weight: "fill"
1108
1131
  }),
1109
- t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1132
+ t[11] || (t[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1110
1133
  ], 2)) : p("", !0)
1111
1134
  ]),
1112
- $.value ? (r(), X(Vt, {
1135
+ M.value ? (r(), ee(Vt, {
1113
1136
  key: 0,
1114
- "distibution-id": k.value,
1115
- "file-types": x.value,
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
- sections: ae.value,
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,
1137
+ "distibution-id": b.value,
1138
+ "file-types": D.value,
1139
+ buttons: l.value.button,
1140
+ "header-text": l.value.header,
1141
+ text: l.value.text,
1142
+ "show-buttons": l.value.showButtons,
1143
+ "optional-info-view": l.value.optionalInfoView,
1144
+ documentations: l.value.documentations,
1145
+ "access-services": l.value.accessServices,
1146
+ action: l.value.action,
1147
+ title: l.value.title,
1148
+ format: l.value.format,
1149
+ "distribution-link": l.value.distributionLink,
1150
+ sections: se.value,
1151
+ context: C.context,
1152
+ "distribution-id": l.value.distributionId,
1153
+ "modified-date": l.value.dctModified || "",
1154
+ "issued-date": l.value.dctIssued || "",
1155
+ "description-text": l.value.dctDescription || "",
1156
+ "access-rights-text": l.value.accessRightsText || "",
1157
+ "availability-text": l.value.availabilityText || "",
1158
+ "language-text": l.value.languageText || "",
1159
+ "byte-size-text": l.value.byteSizeText || "",
1160
+ "media-type-text": l.value.mediaTypeText || "",
1161
+ "compress-format-text": l.value.compressFormatText || "",
1162
+ "package-format-text": l.value.packageFormatText || "",
1163
+ "status-text": l.value.statusText || "",
1164
+ "checksum-text": l.value.checksumText || "",
1165
+ "checksum-u-r-i": l.value.checksumURI || "",
1166
+ "checksum-dropdown-text": l.value.checksumDropdownText || "",
1167
+ "change-license-text": l.value.changeLicenseText || "",
1168
+ "change-license-dropdown-text": l.value.changeLicenseDropdownText || "",
1169
+ "conforms-to-items": l.value.conformsToItems,
1170
+ "policy-items": l.value.policyItems,
1171
+ "download-URL": l.value.downloadURL,
1149
1172
  onClose: tt,
1150
1173
  onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1151
1174
  onAddDocumentations: qe,
1152
1175
  onAddAccessServices: Ge,
1153
- onAddModifiedDate: re,
1154
- onAddIssuedDate: ue,
1155
- onAddDescription: me,
1176
+ onAddModifiedDate: ue,
1177
+ onAddIssuedDate: me,
1178
+ onAddDescription: fe,
1156
1179
  onAddAccessRights: a.handleAccessRights,
1157
- onAddAvailability: fe,
1158
- onAddLanguage: ge,
1159
- onAddByteSize: ye,
1160
- onAddMediaType: _,
1161
- onAddCompressFormat: _,
1162
- onAddPackageFormat: _,
1163
- onAddStatus: pe,
1164
- onAddChecksum: ve,
1165
- onAddChangeLicense: he,
1180
+ onAddAvailability: pe,
1181
+ onAddLanguage: ye,
1182
+ onAddByteSize: ke,
1183
+ onAddMediaType: R,
1184
+ onAddCompressFormat: R,
1185
+ onAddPackageFormat: R,
1186
+ onAddStatus: ve,
1187
+ onAddChecksum: he,
1188
+ onAddChangeLicense: ge,
1166
1189
  onAddConformsToItems: Qe,
1167
1190
  onAddPolicyItems: Xe
1168
1191
  }, 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
- O.value ? (r(), X(It, {
1192
+ j.value ? (r(), ee(It, {
1170
1193
  key: 1,
1171
- buttons: C.value.button,
1172
- "header-text": C.value.header,
1173
- text: C.value.text,
1174
- action: C.value.action,
1175
- onClose: t[4] || (t[4] = (e) => O.value = !1),
1194
+ buttons: S.value.button,
1195
+ "header-text": S.value.header,
1196
+ text: S.value.text,
1197
+ action: S.value.action,
1198
+ onClose: t[4] || (t[4] = (e) => j.value = !1),
1176
1199
  onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1177
1200
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1178
1201
  ], 64));
1179
1202
  }
1180
- }, no = /* @__PURE__ */ Nt(Va, [["__scopeId", "data-v-dfa22077"]]);
1203
+ }, fo = /* @__PURE__ */ Nt(Ca, [["__scopeId", "data-v-3c582902"]]);
1181
1204
  export {
1182
- no as default
1205
+ fo as default
1183
1206
  };