@piveau/dpi 0.1.0-beta.64 → 0.1.0-beta.66

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