@piveau/dpi 0.1.0-beta.67 → 0.1.0-beta.69

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,108 +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 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";
1
+ import { ref as v, computed as Ce, toRef as ut, onUnmounted as mt, onMounted as ft, getCurrentInstance as pt, watch as vt, createElementBlock as f, openBlock as r, Fragment as ee, createElementVNode as m, createBlock as te, createCommentVNode as p, toDisplayString as E, renderList as Se, unref as U, createVNode as u, withDirectives as ht, vShow as gt, normalizeClass as yt } from "vue";
2
2
  import "@formkit/core";
3
3
  import { PhWarning as O } from "@phosphor-icons/vue";
4
- import { useI18n as vt } from "vue-i18n";
5
- import { useStore as ht } from "vuex";
6
- import { useEditModeInfo as gt } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as yt } from "../composables/useDpiFormValues.js";
4
+ import { useI18n as kt } from "vue-i18n";
5
+ import { useStore as xt } from "vuex";
6
+ import { useEditModeInfo as wt } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as bt } from "../composables/useDpiFormValues.js";
8
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";
9
+ import { getLicenses as _t, getFileTypes as Dt, getFormatTypes as Tt, getChecksumAlgorithms as It, getPlannedAvailability as Lt, getLanguages as Ut } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Ae } from "../HappyFlowComponents/services/eventBus.js";
11
11
  import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
12
+ import Vt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
13
  import ae from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import It from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import Vt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import Lt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
- import Ut from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
- import Rt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
- import Ct from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
- import St from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
- import At from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
- import Ft from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
- import $t from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
14
+ import Rt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import Ct from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import St from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import At from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
+ import Ft from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
+ import $t from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
+ import Et from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
+ import Mt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
+ import Bt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
+ import zt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
24
  import oe from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
- import Et from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
- import Mt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
- import Bt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
- import zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
- import Pt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
- import E from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
25
+ import Pt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
+ import Nt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
+ import Ot from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
+ import Wt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
+ import jt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
+ import M from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
31
  import "zod/v4/locales";
32
32
  /* empty css */
33
- import Nt from "../../_virtual/_plugin-vue_export-helper.js";
34
- const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
33
+ import Ht from "../../_virtual/_plugin-vue_export-helper.js";
34
+ const Jt = { class: "dpiV3InnerComponentWrap" }, Kt = { key: 0 }, qt = {
35
35
  key: 1,
36
36
  class: "copy-large-regular"
37
- }, Ht = { class: "dpiV3_LinkAndMetadata input-container" }, Jt = { style: { position: "relative", width: "100%" } }, Kt = {
37
+ }, Gt = { class: "dpiV3_LinkAndMetadata input-container" }, Qt = { style: { position: "relative", width: "100%" } }, Xt = {
38
38
  key: 0,
39
39
  class: "validation-error"
40
- }, qt = { class: "copy-mini-regular" }, Gt = { style: { position: "relative", width: "100%" } }, Qt = {
40
+ }, Yt = { class: "copy-mini-regular" }, Zt = { style: { position: "relative", width: "100%" } }, ea = {
41
41
  key: 0,
42
42
  class: "validation-error"
43
- }, Xt = { class: "copy-mini-regular" }, Yt = {
43
+ }, ta = { class: "copy-mini-regular" }, aa = {
44
44
  key: 0,
45
45
  class: "dpiV3_DocumentationsInDistr"
46
- }, Zt = { class: "dpiV3_TitleDelete" }, ea = { class: "dpiV3_documentationContents" }, ta = { class: "dpiV3_Documentation" }, aa = {
46
+ }, oa = { class: "dpiV3_TitleDelete" }, sa = { class: "dpiV3_documentationContents" }, ia = { class: "dpiV3_Documentation" }, la = {
47
47
  key: 1,
48
48
  class: "dpiV3_DocumentationsInDistr"
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 = {
49
+ }, na = { class: "dpiV3_TitleDelete" }, da = { class: "dpiV3_documentationContents" }, ca = { class: "dpiV3_Documentation" }, ra = { class: "dpiV3_TitleDelete" }, ua = { key: 0 }, ma = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, fa = {
50
50
  key: 0,
51
51
  class: "validation-error"
52
- }, ra = { class: "copy-mini-regular" }, ua = {
52
+ }, pa = { class: "copy-mini-regular" }, va = {
53
53
  key: 0,
54
54
  class: "dpiV3_tempAddMore"
55
- }, ma = {
55
+ }, ha = {
56
56
  key: 2,
57
57
  class: "dpiV3_modified dpiV3_label"
58
- }, fa = {
58
+ }, ga = {
59
59
  key: 3,
60
60
  class: "dpiV3_modified dpiV3_label"
61
- }, pa = { class: "dpiV3_modified dpiV3_label" }, va = {
61
+ }, ya = { class: "dpiV3_modified dpiV3_label" }, ka = {
62
62
  key: 4,
63
63
  class: "dpiV3_modified dpiV3_label"
64
- }, ha = {
64
+ }, xa = {
65
65
  key: 5,
66
66
  class: "dpiV3_modified dpiV3_label"
67
- }, ga = {
67
+ }, wa = {
68
68
  key: 6,
69
69
  class: "dpiV3_modified dpiV3_label"
70
- }, ya = {
70
+ }, ba = {
71
71
  key: 7,
72
72
  class: "dpiV3_modified dpiV3_label"
73
- }, ka = {
73
+ }, _a = {
74
74
  key: 8,
75
75
  class: "dpiV3_DocumentationsInDistr"
76
- }, xa = { class: "dpiV3_TitleDelete" }, ba = {
76
+ }, Da = { class: "dpiV3_TitleDelete" }, Ta = {
77
77
  key: 9,
78
78
  class: "dpiV3_DocumentationsInDistr"
79
- }, wa = { class: "dpiV3_TitleDelete" }, _a = {
79
+ }, Ia = { class: "dpiV3_TitleDelete" }, La = {
80
80
  key: 10,
81
81
  class: "dpiV3_modified dpiV3_label"
82
- }, Da = {
82
+ }, Ua = {
83
83
  key: 11,
84
84
  class: "dpiV3_modified dpiV3_label"
85
- }, Ta = {
85
+ }, Va = {
86
86
  key: 12,
87
87
  class: "dpiV3_modified dpiV3_label"
88
- }, Ia = {
88
+ }, Ra = {
89
89
  key: 13,
90
90
  class: "dpiV3_modified dpiV3_label"
91
- }, Va = {
91
+ }, Ca = {
92
92
  key: 14,
93
93
  class: "dpiV3_modified dpiV3_label"
94
- }, La = {
94
+ }, Sa = {
95
95
  key: 15,
96
96
  class: "copy-mini-regular dpiV3_text_error"
97
- }, Ua = { class: "dpiV3_CTA-Distribution" }, Ra = { class: "dpiV3_tempAddMore" }, Ca = {
97
+ }, Aa = { class: "dpiV3_CTA-Distribution" }, Fa = { class: "dpiV3_tempAddMore" }, $a = {
98
98
  __name: "DistributionSimplePage",
99
99
  props: {
100
100
  context: Object,
101
101
  inRap: Boolean
102
102
  },
103
103
  setup(S) {
104
- var be, we, _e;
105
- const I = S, { isEditMode: se } = gt(), { t: U } = vt(), _ = v(null), Re = {
104
+ var we, be, _e;
105
+ const I = S, { isEditMode: se } = wt(), { t: V } = kt(), _ = v(null), Fe = {
106
106
  isValid: "unset",
107
107
  id: 1,
108
108
  "dcat:accessURL": "",
@@ -134,37 +134,37 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
134
134
  title: "",
135
135
  "dcterms:license": ""
136
136
  }
137
- }, { formValues: V } = yt(), i = Ve(
137
+ }, { formValues: L } = bt(), i = Ce(
138
138
  () => se.value || I.inRap
139
- ).value ? nt((be = V.value.DistributionSimple) == null ? void 0 : be["dcat:distribution"]) : v([Re]);
139
+ ).value ? ut((we = L.value.DistributionSimple) == null ? void 0 : we["dcat:distribution"]) : v([Fe]);
140
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([]);
141
+ const l = v({}), A = v({}), ie = v([]), B = v(!1), H = v(!1), b = v(0), D = v([]), w = v([]), le = v([]), J = v([]), ne = v([]);
142
142
  v([...D.value]);
143
- const B = v([...b.value]), Ce = ht(), K = v(null);
143
+ const z = v([...w.value]), $e = xt(), K = v(null);
144
144
  v(null);
145
- const q = v(!1), de = v(!1), z = v(!1), ce = v(!0);
145
+ const q = v(!1), de = v(!1), F = v(!1), ce = v(!0);
146
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) !== "") {
147
+ if (((be = L.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.uri) !== "" || ((_e = L.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : _e.checksum.title) !== "") {
148
148
  de.value = !1;
149
149
  break;
150
150
  }
151
- function Se() {
151
+ function Ee() {
152
152
  ie.value = [
153
153
  {
154
- title: U(
154
+ title: V(
155
155
  "message.dataupload.datasets.dcat:distribution.recommended.title"
156
156
  ),
157
157
  items: W.distributions.Recommended.map(
158
- (a) => U(
158
+ (a) => V(
159
159
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
160
160
  ) || a
161
161
  ),
162
162
  keys: W.distributions.Recommended
163
163
  },
164
164
  {
165
- title: U("message.dataupload.datasets.dcat:distribution.advanced.title"),
165
+ title: V("message.dataupload.datasets.dcat:distribution.advanced.title"),
166
166
  items: W.distributions.Advanced.map(
167
- (a) => U(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
167
+ (a) => V(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
168
168
  ),
169
169
  keys: W.distributions.Advanced
170
170
  }
@@ -178,7 +178,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
178
178
  let t = !0;
179
179
  i.value = i.value.map((e) => {
180
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(
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() !== "" && w.value.some(
182
182
  (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
183
183
  ), n = e["dcat:downloadURL"].every((h) => {
184
184
  var y;
@@ -196,7 +196,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
196
196
  showErrorDownloadURL: !o,
197
197
  showErrorFormat: !s
198
198
  };
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;
199
+ }), I.inRap == !0 && Q(), console.log(t), t && (F.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 && (F.value = !t), L.value.DistributionSimple["dcat:distribution"] = i.value;
200
200
  }
201
201
  function P(a, t) {
202
202
  var o, s, n;
@@ -205,7 +205,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
205
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.");
206
206
  else if (t === "dct:format") {
207
207
  const c = (n = a[t].label) == null ? void 0 : n.trim();
208
- e = c !== "" && b.value.some(
208
+ e = c !== "" && w.value.some(
209
209
  (g) => g["@value"].toLowerCase() === c.toLowerCase()
210
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");
211
211
  }
@@ -215,45 +215,42 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
215
215
  let t = !0;
216
216
  i.value = i.value.map((e) => {
217
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(
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()) !== "" && w.value.some(
219
219
  (y) => {
220
220
  var T;
221
221
  return y["@value"].toUpperCase() === ((T = e["dct:format"].label) == null ? void 0 : T.toUpperCase());
222
222
  }
223
223
  ), n = (e["dcat:downloadURL"] || []).every((y) => {
224
- var F;
225
- const T = (F = y["@id"]) == null ? void 0 : F.trim();
224
+ var $;
225
+ const T = ($ = y["@id"]) == null ? void 0 : $.trim();
226
226
  return T === "" || R(T);
227
227
  }), c = o && s && n;
228
- return console.log(c), c || (t = !1), {
229
- ...e,
230
- isValid: c
231
- };
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;
228
+ return c || (t = !1), { ...e, isValid: c };
229
+ }), i.value.length > 0 && (i.value[0].isValid = t), (I.inRap === !0 || !a || F.value === !0) && (F.value = !t), L.value.DistributionSimple["dcat:distribution"] = i.value;
233
230
  }
234
231
  function R(a) {
235
232
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
236
233
  }
237
- dt(() => {
238
- Ue.off("nextClicked", re), _.value && clearTimeout(_.value);
234
+ mt(() => {
235
+ Ae.off("nextClicked", re), _.value && clearTimeout(_.value);
239
236
  });
240
237
  let ue = v([]);
241
- ct(async () => {
242
- Ue.on("nextClicked", re);
243
- const a = rt(), t = a.appContext.app.config.globalProperties.$env;
238
+ ft(async () => {
239
+ Ae.on("nextClicked", re);
240
+ const a = pt(), t = a.appContext.app.config.globalProperties.$env;
244
241
  if (a) {
245
242
  const e = a.appContext.app.config.globalProperties.$env;
246
243
  K.value = e.content.dataProviderInterface.specification;
247
244
  } else
248
245
  console.log("Instance is null!");
249
246
  try {
250
- const e = await kt(t.api.baseUrl);
247
+ const e = await _t(t.api.baseUrl);
251
248
  ue.value = e.map((s) => ({
252
249
  uri: s.uri,
253
250
  "@value": s.value,
254
251
  label: s.label
255
252
  }));
256
- const o = await xt(t.api.baseUrl);
253
+ const o = await Dt(t.api.baseUrl);
257
254
  D.value = o.results.map((s) => ({
258
255
  "@value": s.pref_label.en,
259
256
  uri: s.resource,
@@ -263,32 +260,32 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
263
260
  error.value = e;
264
261
  }
265
262
  try {
266
- const e = await bt(t.api.baseUrl);
267
- b.value = e.results.map((o) => ({
263
+ const e = await Tt(t.api.baseUrl);
264
+ w.value = e.results.map((o) => ({
268
265
  "@value": o.pref_label.en,
269
266
  uri: o.resource,
270
267
  selected: !1
271
- })).sort((o, s) => o["@value"].localeCompare(s["@value"])), B.value = [...b.value];
268
+ })).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...w.value];
272
269
  } catch (e) {
273
270
  error.value = e;
274
271
  }
275
272
  try {
276
- const e = await wt(t.api.baseUrl);
273
+ const e = await It(t.api.baseUrl);
277
274
  le.value = e;
278
- const o = await _t(t.api.baseUrl);
275
+ const o = await Lt(t.api.baseUrl);
279
276
  J.value = o;
280
- const s = await Dt(t.api.baseUrl);
277
+ const s = await Ut(t.api.baseUrl);
281
278
  ne.value = s;
282
279
  } catch (e) {
283
280
  console.log(e);
284
281
  }
285
- Se();
282
+ Ee();
286
283
  });
287
- function Ae(a, t) {
284
+ function Me(a, t) {
288
285
  const e = i.value.find((s) => s.id === t);
289
286
  if (!e) return;
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;
287
+ let o = w.value.find((s) => s["@value"] === a).uri || "";
288
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", P(e, "dct:format"), L.value.DistributionSimple["dcat:distribution"] = i.value;
292
289
  }
293
290
  function me(a, t) {
294
291
  const e = i.value.find((o) => o.id === t);
@@ -320,7 +317,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
320
317
  let n = ue.value.find(
321
318
  (c) => c["@value"] === t
322
319
  );
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"] = [
320
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, L.value.DistributionSimple["dct:license"] = [
324
321
  {
325
322
  title: a,
326
323
  "dcterms:license": t,
@@ -354,7 +351,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
354
351
  else
355
352
  console.warn(`No matching distribution found for ID ${e}.`);
356
353
  }
357
- function Fe(a) {
354
+ function Be(a) {
358
355
  k(
359
356
  a,
360
357
  "Konform zu Standard",
@@ -363,7 +360,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
363
360
  !0
364
361
  );
365
362
  }
366
- function $e(a) {
363
+ function ze(a) {
367
364
  k(
368
365
  a,
369
366
  "Verfügbarkeit",
@@ -372,7 +369,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
372
369
  !1
373
370
  );
374
371
  }
375
- function Ee(a) {
372
+ function Pe(a) {
376
373
  k(
377
374
  a,
378
375
  "Status",
@@ -381,7 +378,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
381
378
  !1
382
379
  );
383
380
  }
384
- function Me(a) {
381
+ function Ne(a) {
385
382
  k(
386
383
  a,
387
384
  "Größe in Bytes",
@@ -390,7 +387,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
390
387
  !1
391
388
  );
392
389
  }
393
- function Be(a) {
390
+ function Oe(a) {
394
391
  k(
395
392
  a,
396
393
  "Sprache",
@@ -402,7 +399,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
402
399
  function X(a, t) {
403
400
  k(t, a, a, !0, !1);
404
401
  }
405
- function ze(a) {
402
+ function We(a) {
406
403
  k(
407
404
  a,
408
405
  "Regelwerk",
@@ -411,7 +408,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
411
408
  !0
412
409
  );
413
410
  }
414
- function Pe(a) {
411
+ function je(a) {
415
412
  k(
416
413
  a,
417
414
  "Dokumentation",
@@ -420,7 +417,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
420
417
  !0
421
418
  );
422
419
  }
423
- function Ne(a) {
420
+ function He(a) {
424
421
  k(
425
422
  a,
426
423
  "Ausliefernder Datenservice",
@@ -429,14 +426,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
429
426
  !0
430
427
  );
431
428
  }
432
- function Oe(a, t, e) {
429
+ function Je(a, t, e) {
433
430
  const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
434
431
  s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
435
432
  const n = a.trim();
436
433
  n === "" || R(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), Q(!0);
437
434
  }, 800);
438
435
  }
439
- function We(a) {
436
+ function Ke(a) {
440
437
  k(
441
438
  a,
442
439
  "Aktualisierungsdatum",
@@ -444,7 +441,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
444
441
  !1
445
442
  );
446
443
  }
447
- function je(a) {
444
+ function qe(a) {
448
445
  k(
449
446
  a,
450
447
  "Veröffentlichungsdatum",
@@ -452,7 +449,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
452
449
  !1
453
450
  );
454
451
  }
455
- function He(a) {
452
+ function Ge(a) {
456
453
  k(
457
454
  a,
458
455
  "Beschreibung",
@@ -460,10 +457,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
460
457
  !0
461
458
  );
462
459
  }
463
- const Je = Ve(() => K.value ? Ce.getters["dpiStore/getNavSteps"](K.value) : {});
464
- ut(Je, (a) => {
460
+ const Qe = Ce(() => K.value ? $e.getters["dpiStore/getNavSteps"](K.value) : {});
461
+ vt(Qe, (a) => {
465
462
  }), se.value || I.context.node.input([{ isValid: "unset" }]);
466
- function Ke() {
463
+ function Xe() {
467
464
  const a = Date.now();
468
465
  i.value.push({
469
466
  isValid: "unset",
@@ -499,7 +496,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
499
496
  }
500
497
  }), G(a);
501
498
  }
502
- function qe(a, t) {
499
+ function Ye(a, t) {
503
500
  const e = i.value.find((o) => o.id === a);
504
501
  if (!e) {
505
502
  console.error(`Distribution with ID ${a} not found`);
@@ -533,7 +530,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
533
530
  }
534
531
  });
535
532
  }
536
- function Ge(a, t) {
533
+ function Ze(a, t) {
537
534
  const e = i.value.find((o) => o.id === a);
538
535
  if (!e) {
539
536
  console.error(`Distribution with ID ${a} not found`);
@@ -570,7 +567,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
570
567
  }
571
568
  });
572
569
  }
573
- function Qe(a, t) {
570
+ function et(a, t) {
574
571
  var o;
575
572
  const e = i.value.find((s) => s.id === a);
576
573
  if (!e) {
@@ -602,20 +599,20 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
602
599
  }
603
600
  });
604
601
  }
605
- function Xe(a, t) {
602
+ function tt(a, t) {
606
603
  }
607
- function Ye(a) {
608
- if (a === "deleteDataset" && w.value !== null) {
604
+ function at(a) {
605
+ if (a === "deleteDataset" && b.value !== null) {
609
606
  if (i.value.length === 1) {
610
607
  q.value = !0;
611
608
  return;
612
609
  }
613
610
  i.value = i.value.filter(
614
- (t) => t.id !== w.value
615
- ), q.value = !1, w.value = null, G();
611
+ (t) => t.id !== b.value
612
+ ), q.value = !1, b.value = null, G();
616
613
  }
617
614
  }
618
- function Ze(a) {
615
+ function ot(a) {
619
616
  const t = JSON.parse(a), e = i.value.find(
620
617
  (o) => o.id === t.distributionId
621
618
  );
@@ -625,9 +622,9 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
625
622
  }
626
623
  t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
627
624
  }
628
- function et(a) {
625
+ function st(a) {
629
626
  var e, o, s, n, c;
630
- w.value = a;
627
+ b.value = a;
631
628
  const t = i.value.find((g) => g.id === a);
632
629
  t && (l.value = {
633
630
  button: "",
@@ -659,27 +656,27 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
659
656
  conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
660
657
  policyItems: (t == null ? void 0 : t.policyItems) || [],
661
658
  downloadURL: (t == null ? void 0 : t.downloadURL) || []
662
- }, M.value = !0, document.body.style.overflow = "hidden");
659
+ }, B.value = !0, document.body.style.overflow = "hidden");
663
660
  }
664
- function tt() {
665
- M.value = !1, document.body.style.overflow = "auto";
661
+ function it() {
662
+ B.value = !1, document.body.style.overflow = "auto";
666
663
  }
667
- function at(a) {
668
- w.value = a;
664
+ function lt(a) {
665
+ b.value = a;
669
666
  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
667
  l.value = {
671
668
  button: "Löschen",
672
- header: U(
669
+ header: V(
673
670
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
674
671
  ),
675
- text: U(
672
+ text: V(
676
673
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
677
674
  ),
678
675
  action: "deleteDataset",
679
676
  title: e,
680
677
  format: o,
681
678
  distributionLink: s
682
- }, M.value = !0;
679
+ }, B.value = !0;
683
680
  }
684
681
  function k(a, t, e, o, s) {
685
682
  const c = JSON.stringify({
@@ -707,15 +704,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
707
704
  } else if (t === "dct:format") {
708
705
  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
706
  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];
707
+ o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...w.value];
711
708
  else {
712
- const x = b.value.find(
709
+ const x = w.value.find(
713
710
  (y) => y["@value"].toLowerCase() === h.toLowerCase()
714
711
  );
715
712
  x ? (o[t] = {
716
713
  label: x["@value"],
717
714
  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(
715
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value = w.value.filter(
719
716
  (y) => y["@value"].toLowerCase().includes(h.toLowerCase())
720
717
  );
721
718
  }
@@ -723,42 +720,42 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
723
720
  } else
724
721
  o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
725
722
  }
726
- function ot(a, t) {
723
+ function nt(a, t) {
727
724
  const e = i.value.find((o) => o.id === a);
728
725
  e.documentations = e.documentations.filter(
729
726
  (o) => t.some((s) => s.id === o.id)
730
727
  );
731
728
  }
732
- function st(a, t) {
729
+ function dt(a, t) {
733
730
  const e = i.value.find((o) => o.id === a);
734
731
  e.accessServices = e.accessServices.filter(
735
732
  (o) => t.some((s) => s.id === o.id)
736
733
  );
737
734
  }
738
- function it(a, t) {
735
+ function ct(a, t) {
739
736
  const e = i.value.find((o) => o.id === a);
740
737
  e.conformsToItems = e.conformsToItems.filter(
741
738
  (o) => t.some((s) => s.id === o.id)
742
739
  );
743
740
  }
744
- function lt(a, t) {
741
+ function rt(a, t) {
745
742
  const e = i.value.find((o) => o.id === a);
746
743
  e.policyItems = e.policyItems.filter(
747
744
  (o) => t.some((s) => s.id === o.id)
748
745
  );
749
746
  }
750
747
  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;
748
+ m("div", Jt, [
749
+ S.inRap ? p("", !0) : (r(), f("h4", Kt, E(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
750
+ S.inRap ? p("", !0) : (r(), f("div", qt, E(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
751
+ (r(!0), f(ee, null, Se(U(i), (e, o) => {
752
+ var s, n, c, g, h, x, y, T, $, De, Te, Ie, Le, Ue, Ve, Re;
756
753
  return r(), f("div", {
757
754
  key: e.id,
758
755
  class: "dpiV3AutoCompleteWrap"
759
756
  }, [
760
- m("div", Ht, [
761
- m("div", Jt, [
757
+ m("div", Gt, [
758
+ m("div", Qt, [
762
759
  u(ae, {
763
760
  "add-on-text": !1,
764
761
  datePicker: !1,
@@ -779,16 +776,16 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
779
776
  "model-value": e["dcat:accessURL"],
780
777
  onInput: (d) => Y(d, "dcat:accessURL", e.id)
781
778
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
782
- e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Kt, [
783
- u(L(O), {
779
+ e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Xt, [
780
+ u(U(O), {
784
781
  size: 16,
785
782
  weight: "fill"
786
783
  }),
787
- m("span", qt, $(e.urlErrorMessage), 1)
784
+ m("span", Yt, E(e.urlErrorMessage), 1)
788
785
  ])) : p("", !0)
789
786
  ]),
790
- m("div", Gt, [
791
- u(Tt, {
787
+ m("div", Zt, [
788
+ u(Vt, {
792
789
  "dropdown-width": "large",
793
790
  type: "inputField",
794
791
  "input-field-props": {
@@ -809,18 +806,18 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
809
806
  autocomplete: "true",
810
807
  showError: e.showErrorFormat
811
808
  },
812
- data: B.value,
809
+ data: z.value,
813
810
  autocomplete: !0,
814
811
  onInput: (d) => Y(d, "dct:format", e.id),
815
- "onUpdate:modelValue": (d) => Ae(d, e.id),
812
+ "onUpdate:modelValue": (d) => Me(d, e.id),
816
813
  "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
817
814
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
818
- e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", Qt, [
819
- u(L(O), {
815
+ e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", ea, [
816
+ u(U(O), {
820
817
  size: 16,
821
818
  weight: "fill"
822
819
  }),
823
- m("span", Xt, $(e.formatErrorMessage), 1)
820
+ m("span", ta, E(e.formatErrorMessage), 1)
824
821
  ])) : p("", !0)
825
822
  ]),
826
823
  u(ae, {
@@ -841,47 +838,47 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
841
838
  "show-end-icon": !1,
842
839
  onInput: (d) => Y(d, "dct:title", e.id)
843
840
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
844
- (e.documentations || []).length > 0 ? (r(), f("div", Yt, [
845
- m("div", Zt, [
841
+ (e.documentations || []).length > 0 ? (r(), f("div", aa, [
842
+ m("div", oa, [
846
843
  t[6] || (t[6] = m("div", null, "Dokumentation (optional)", -1)),
847
844
  m("div", null, [
848
- u(E, {
845
+ u(M, {
849
846
  "button-text": "löschen",
850
- onClick: (d) => Pe(e.id)
847
+ onClick: (d) => je(e.id)
851
848
  }, null, 8, ["onClick"])
852
849
  ])
853
850
  ]),
854
- m("div", ea, [
855
- m("div", ta, [
856
- u($t, {
851
+ m("div", sa, [
852
+ m("div", ia, [
853
+ u(zt, {
857
854
  documentations: e.documentations,
858
855
  "file-types": D.value,
859
856
  "distribution-id": e.id,
860
857
  "as-card": !0,
861
858
  "show-delete-button": !0,
862
- onUpdate: (d) => ot(e.id, d)
859
+ onUpdate: (d) => nt(e.id, d)
863
860
  }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
864
861
  ])
865
862
  ])
866
863
  ])) : p("", !0),
867
- (e.accessServices || []).length > 0 ? (r(), f("div", aa, [
868
- m("div", oa, [
864
+ (e.accessServices || []).length > 0 ? (r(), f("div", la, [
865
+ m("div", na, [
869
866
  t[7] || (t[7] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
870
867
  m("div", null, [
871
- u(E, {
868
+ u(M, {
872
869
  "button-text": "löschen",
873
- onClick: (d) => Ne(e.id)
870
+ onClick: (d) => He(e.id)
874
871
  }, null, 8, ["onClick"])
875
872
  ])
876
873
  ]),
877
- m("div", sa, [
878
- m("div", ia, [
879
- u(Lt, {
874
+ m("div", da, [
875
+ m("div", ca, [
876
+ u(St, {
880
877
  "access-services": e.accessServices,
881
878
  "distribution-id": e.id,
882
879
  "as-card": !0,
883
880
  "show-delete-button": !0,
884
- onUpdate: (d) => st(
881
+ onUpdate: (d) => dt(
885
882
  e.id,
886
883
  d
887
884
  )
@@ -889,26 +886,26 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
889
886
  ])
890
887
  ])
891
888
  ])) : p("", !0),
892
- (r(!0), f(ee, null, Le(e["dcat:downloadURL"], (d, N) => (r(), f("div", {
889
+ (r(!0), f(ee, null, Se(e["dcat:downloadURL"], (d, N) => (r(), f("div", {
893
890
  key: N,
894
891
  class: "dpiV3_DocumentationsInDistr"
895
892
  }, [
896
- m("div", la, [
893
+ m("div", ra, [
897
894
  t[8] || (t[8] = m("div", {
898
895
  class: "dpiV3_label",
899
896
  style: { margin: "0" }
900
897
  }, " DownloadURL (optional) ", -1)),
901
- e["dcat:downloadURL"].length !== 1 ? (r(), f("div", na, [
902
- u(E, {
898
+ e["dcat:downloadURL"].length !== 1 ? (r(), f("div", ua, [
899
+ u(M, {
903
900
  "button-text": "löschen",
904
901
  onClick: (Z) => e["dcat:downloadURL"].splice(N, 1)
905
902
  }, null, 8, ["onClick"])
906
903
  ])) : p("", !0)
907
904
  ]),
908
- m("div", da, [
905
+ m("div", ma, [
909
906
  u(ae, {
910
907
  "model-value": d["@id"],
911
- onInput: (Z) => Oe(Z.target.value, e.id, N),
908
+ onInput: (Z) => Je(Z.target.value, e.id, N),
912
909
  showError: d.showError,
913
910
  initialHintText: !1,
914
911
  addOnText: !1,
@@ -916,15 +913,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
916
913
  inputFieldSize: "large",
917
914
  label: ""
918
915
  }, null, 8, ["model-value", "onInput", "showError"]),
919
- d.showError ? (r(), f("div", ca, [
920
- u(L(O), {
916
+ d.showError ? (r(), f("div", fa, [
917
+ u(U(O), {
921
918
  size: 16,
922
919
  weight: "fill"
923
920
  }),
924
- m("span", ra, $(d.errorMessage), 1)
921
+ m("span", pa, E(d.errorMessage), 1)
925
922
  ])) : p("", !0)
926
923
  ]),
927
- N === e["dcat:downloadURL"].length - 1 ? (r(), f("div", ua, [
924
+ N === e["dcat:downloadURL"].length - 1 ? (r(), f("div", va, [
928
925
  u(j, {
929
926
  buttonText: "Weitere DownloadURL hinzufügen",
930
927
  size: "small",
@@ -934,58 +931,58 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
934
931
  }, null, 8, ["onClick"])
935
932
  ])) : p("", !0)
936
933
  ]))), 128)),
937
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), f("div", ma, [
938
- u(Bt, {
934
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), f("div", ha, [
935
+ u(Ot, {
939
936
  "show-delete-button": !0,
940
937
  "distribution-id": e.id,
941
938
  "model-value": e["dct:modified"],
942
939
  onAddModifiedDate: me,
943
- onDeleteButtonClicked: (d) => We(e.id)
940
+ onDeleteButtonClicked: (d) => Ke(e.id)
944
941
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
945
942
  ])) : p("", !0),
946
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), f("div", fa, [
947
- u(Et, {
943
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), f("div", ga, [
944
+ u(Pt, {
948
945
  "show-delete-button": !0,
949
946
  "distribution-id": e.id,
950
947
  "model-value": e["dct:issued"],
951
948
  onAddIssuedDate: fe,
952
- onDeleteButtonClicked: (d) => je(e.id)
949
+ onDeleteButtonClicked: (d) => qe(e.id)
953
950
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
954
951
  ])) : p("", !0),
955
- mt(m("div", pa, [
956
- u(Ft, {
952
+ ht(m("div", ya, [
953
+ u(Bt, {
957
954
  "distribution-id": e.id,
958
955
  "description-text": e["dct:description"],
959
956
  "show-delete-button": !0,
960
957
  onAddDescription: pe,
961
- onDeleteDescription: (d) => He(e.id)
958
+ onDeleteDescription: (d) => Ge(e.id)
962
959
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
963
960
  ], 512), [
964
961
  [
965
- ft,
962
+ gt,
966
963
  e["dct:description"] !== void 0 && e["dct:description"] !== ""
967
964
  ]
968
965
  ]),
969
- e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div", va, [
970
- u(Ut, {
966
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div", ka, [
967
+ u(At, {
971
968
  "availability-text": e["dcatap:availability"].label.de,
972
969
  "distribution-id": e.id,
973
970
  "show-delete-button": !0,
974
971
  onAddAvailability: ve,
975
- onDeleteButtonClicked: (d) => $e(e.id)
972
+ onDeleteButtonClicked: (d) => ze(e.id)
976
973
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
977
974
  ])) : p("", !0),
978
- e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), f("div", ha, [
979
- u(Pt, {
975
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), f("div", xa, [
976
+ u(jt, {
980
977
  "status-text": e["adms:status"]["@value"],
981
978
  "distribution-id": e.id,
982
979
  "show-delete-button": !0,
983
980
  onAddStatus: he,
984
- onDeleteButtonClicked: (d) => Ee(e.id)
981
+ onDeleteButtonClicked: (d) => Pe(e.id)
985
982
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
986
983
  ])) : p("", !0),
987
- e.checksum["spdx:checksum"] != "" ? (r(), f("div", ga, [
988
- u(St, {
984
+ e.checksum["spdx:checksum"] != "" ? (r(), f("div", wa, [
985
+ u(Et, {
989
986
  "checksum-text": e.checksum.title,
990
987
  "checksum-dropdown-text": e.checksum["spdx:checksum"],
991
988
  "distribution-id": e.id,
@@ -995,8 +992,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
995
992
  onAddChecksum: ge
996
993
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
997
994
  ])) : p("", !0),
998
- Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div", ya, [
999
- u(Ct, {
995
+ Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div", ba, [
996
+ u($t, {
1000
997
  "change-license-text": (c = e["dct:license"]) == null ? void 0 : c.title,
1001
998
  "change-license-dropdown-text": (g = e["dct:license"]) == null ? void 0 : g["dcterms:license"],
1002
999
  "distribution-id": e.id,
@@ -1005,60 +1002,60 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1005
1002
  onAddChangeLicense: ye
1006
1003
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
1007
1004
  ])) : p("", !0),
1008
- e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div", ka, [
1009
- m("div", xa, [
1005
+ e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div", _a, [
1006
+ m("div", Da, [
1010
1007
  t[9] || (t[9] = m("div", null, "Konform zu Standard (optional)", -1)),
1011
1008
  m("div", null, [
1012
- u(E, {
1009
+ u(M, {
1013
1010
  "button-text": "löschen",
1014
- onClick: (d) => Fe(e.id)
1011
+ onClick: (d) => Be(e.id)
1015
1012
  }, null, 8, ["onClick"])
1016
1013
  ])
1017
1014
  ]),
1018
- u(At, {
1015
+ u(Mt, {
1019
1016
  "conforms-to-items": e.conformsToItems,
1020
1017
  "distribution-id": e.id,
1021
1018
  "as-card": !0,
1022
1019
  "show-delete-button": !0,
1023
- onUpdate: (d) => it(e.id, d)
1020
+ onUpdate: (d) => ct(e.id, d)
1024
1021
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1025
1022
  ])) : p("", !0),
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, [
1023
+ ((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", Ta, [
1024
+ m("div", Ia, [
1028
1025
  t[10] || (t[10] = m("div", null, "Regelwerk (optional)", -1)),
1029
1026
  m("div", null, [
1030
- u(E, {
1027
+ u(M, {
1031
1028
  "button-text": "löschen",
1032
- onClick: (d) => ze(e.id)
1029
+ onClick: (d) => We(e.id)
1033
1030
  }, null, 8, ["onClick"])
1034
1031
  ])
1035
1032
  ]),
1036
- u(zt, {
1033
+ u(Wt, {
1037
1034
  "policy-items": e.policyItems,
1038
1035
  "distribution-id": e.id,
1039
1036
  "as-card": !0,
1040
- onUpdate: (d) => lt(e.id, d)
1037
+ onUpdate: (d) => rt(e.id, d)
1041
1038
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1042
1039
  ])) : p("", !0),
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, {
1040
+ (T = (y = e["dct:language"]) == null ? void 0 : y[0]) != null && T.label || (De = ($ = e["dct:language"]) == null ? void 0 : $[0]) != null && De["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), f("div", La, [
1041
+ u(Nt, {
1045
1042
  "distribution-id": e.id,
1046
1043
  "show-delete-button": !1,
1047
1044
  onAddLanguage: ke,
1048
- onDeleteButtonClicked: (d) => Be(e.id),
1045
+ onDeleteButtonClicked: (d) => Oe(e.id),
1049
1046
  inOverview: !0
1050
1047
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1051
1048
  ])) : p("", !0),
1052
- e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), f("div", Da, [
1053
- u(Rt, {
1049
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), f("div", Ua, [
1050
+ u(Ft, {
1054
1051
  "byte-size-prop": e["dcat:byteSize"],
1055
1052
  "distribution-id": e.id,
1056
1053
  "show-delete-button": !0,
1057
1054
  onAddByteSize: xe,
1058
- onDeleteButtonClicked: (d) => Me(e.id)
1055
+ onDeleteButtonClicked: (d) => Ne(e.id)
1059
1056
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1060
1057
  ])) : p("", !0),
1061
- e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), f("div", Ta, [
1058
+ e["dcat:mediaType"] && ((Le = e["dcat:mediaType"]) != null && Le.label) && ((Ue = e["dcat:mediaType"]) == null ? void 0 : Ue.label.trim()) !== "" ? (r(), f("div", Va, [
1062
1059
  u(oe, {
1063
1060
  "distribution-id": e.id,
1064
1061
  "file-types": D.value,
@@ -1066,10 +1063,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1066
1063
  "file-format-text": e["dcat:mediaType"].label,
1067
1064
  "show-delete-button": !0,
1068
1065
  onAddMediaType: C,
1069
- onDeleteButtonClicked: t[0] || (t[0] = (d) => X("dcat:mediaType", w.value))
1066
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => X("dcat:mediaType", b.value))
1070
1067
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1071
1068
  ])) : p("", !0),
1072
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), f("div", Ia, [
1069
+ e["dcat:compressFormat"] && ((Ve = e["dcat:compressFormat"]) != null && Ve.label) && ((Re = e["dcat:compressFormat"]) == null ? void 0 : Re.label.trim()) !== "" ? (r(), f("div", Ra, [
1073
1070
  u(oe, {
1074
1071
  "distribution-id": e.id,
1075
1072
  "file-types": D.value,
@@ -1077,10 +1074,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1077
1074
  "compress-format-text": e["dcat:compressFormat"].label,
1078
1075
  "show-delete-button": !0,
1079
1076
  onAddCompressFormat: C,
1080
- onDeleteButtonClicked: t[1] || (t[1] = (d) => X("dcat:compressFormat", w.value))
1077
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => X("dcat:compressFormat", b.value))
1081
1078
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1082
1079
  ])) : p("", !0),
1083
- e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div", Va, [
1080
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div", Ca, [
1084
1081
  u(oe, {
1085
1082
  "distribution-id": e.id,
1086
1083
  "file-types": D.value,
@@ -1088,53 +1085,53 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1088
1085
  "package-format-text": e["dcat:packageFormat"].label,
1089
1086
  "show-delete-button": !0,
1090
1087
  onAddPackageFormat: C,
1091
- onDeleteButtonClicked: t[2] || (t[2] = (d) => X("dcat:packageFormat", w.value))
1088
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => X("dcat:packageFormat", b.value))
1092
1089
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1093
1090
  ])) : p("", !0),
1094
- q.value && L(i).length === 1 ? (r(), f("p", La, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1091
+ q.value && U(i).length === 1 ? (r(), f("p", Sa, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1095
1092
  ]),
1096
- m("div", Ua, [
1093
+ m("div", Aa, [
1097
1094
  u(j, {
1098
1095
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1099
1096
  size: "small",
1100
1097
  "icon-start": "PlusSquare",
1101
1098
  variant: "tertiary",
1102
- onClick: (d) => et(e.id)
1099
+ onClick: (d) => st(e.id)
1103
1100
  }, null, 8, ["button-text", "onClick"]),
1104
- L(i).length > 1 ? (r(), te(j, {
1101
+ U(i).length > 1 ? (r(), te(j, {
1105
1102
  key: 0,
1106
1103
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1107
1104
  size: "small",
1108
1105
  "icon-start": "trash",
1109
1106
  variant: "tertiary",
1110
- onClick: (d) => at(e.id)
1107
+ onClick: (d) => lt(e.id)
1111
1108
  }, null, 8, ["button-text", "onClick"])) : p("", !0)
1112
1109
  ])
1113
1110
  ]);
1114
1111
  }), 128)),
1115
- m("div", Ra, [
1112
+ m("div", Fa, [
1116
1113
  u(j, {
1117
1114
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1118
1115
  size: "large",
1119
1116
  "icon-start": "plus",
1120
1117
  variant: "tertiary",
1121
- onClick: Ke
1118
+ onClick: Xe
1122
1119
  }, null, 8, ["button-text"])
1123
1120
  ]),
1124
- z.value ? (r(), f("div", {
1121
+ F.value ? (r(), f("div", {
1125
1122
  key: 2,
1126
- class: pt(S.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1123
+ class: yt(S.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1127
1124
  }, [
1128
- u(L(O), {
1125
+ u(U(O), {
1129
1126
  size: 16,
1130
1127
  weight: "fill"
1131
1128
  }),
1132
1129
  t[11] || (t[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1133
1130
  ], 2)) : p("", !0)
1134
1131
  ]),
1135
- M.value ? (r(), te(Vt, {
1132
+ B.value ? (r(), te(Ct, {
1136
1133
  key: 0,
1137
- "distibution-id": w.value,
1134
+ "distibution-id": b.value,
1138
1135
  "file-types": D.value,
1139
1136
  buttons: l.value.button,
1140
1137
  "header-text": l.value.header,
@@ -1169,10 +1166,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1169
1166
  "conforms-to-items": l.value.conformsToItems,
1170
1167
  "policy-items": l.value.policyItems,
1171
1168
  "download-URL": l.value.downloadURL,
1172
- onClose: tt,
1173
- onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1174
- onAddDocumentations: qe,
1175
- onAddAccessServices: Ge,
1169
+ onClose: it,
1170
+ onActionHandling: t[3] || (t[3] = (e) => at(e)),
1171
+ onAddDocumentations: Ye,
1172
+ onAddAccessServices: Ze,
1176
1173
  onAddModifiedDate: me,
1177
1174
  onAddIssuedDate: fe,
1178
1175
  onAddDescription: pe,
@@ -1186,21 +1183,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1186
1183
  onAddStatus: he,
1187
1184
  onAddChecksum: ge,
1188
1185
  onAddChangeLicense: ye,
1189
- onAddConformsToItems: Qe,
1190
- onAddPolicyItems: Xe
1186
+ onAddConformsToItems: et,
1187
+ onAddPolicyItems: tt
1191
1188
  }, 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),
1192
- H.value ? (r(), te(It, {
1189
+ H.value ? (r(), te(Rt, {
1193
1190
  key: 1,
1194
1191
  buttons: A.value.button,
1195
1192
  "header-text": A.value.header,
1196
1193
  text: A.value.text,
1197
1194
  action: A.value.action,
1198
1195
  onClose: t[4] || (t[4] = (e) => H.value = !1),
1199
- onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1196
+ onActionHandling: t[5] || (t[5] = (e) => ot(e))
1200
1197
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1201
1198
  ], 64));
1202
1199
  }
1203
- }, fo = /* @__PURE__ */ Nt(Ca, [["__scopeId", "data-v-5ad7aeb8"]]);
1200
+ }, go = /* @__PURE__ */ Ht($a, [["__scopeId", "data-v-80791d05"]]);
1204
1201
  export {
1205
- fo as default
1202
+ go as default
1206
1203
  };