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

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,16 +1,16 @@
1
- import { ref as v, computed as Ve, toRef as nt, onUnmounted as dt, onMounted as ct, getCurrentInstance as rt, watch as ut, createElementBlock as f, openBlock as r, Fragment as Z, createElementVNode as m, createBlock as ee, createCommentVNode as p, toDisplayString as $, renderList as Le, unref as I, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
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 N } 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 O from "../config/dcatapdeHappyFlow/page-content-config.js";
8
+ import W from "../config/dcatapdeHappyFlow/page-content-config.js";
9
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
10
  import { eventBus as Ue } from "../HappyFlowComponents/services/eventBus.js";
11
- import W from "../HappyFlowComponents/ui/ButtonV3.vue.js";
11
+ import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
12
  import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import te 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
16
  import Lt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
@@ -21,7 +21,7 @@ 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 ae 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
26
  import Mt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
27
  import Bt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
@@ -100,9 +100,9 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
100
100
  context: Object,
101
101
  inRap: Boolean
102
102
  },
103
- setup(C) {
104
- var xe, be, we;
105
- const V = C, { isEditMode: oe } = gt(), { t: L } = vt(), _ = v(null), Re = {
103
+ setup(S) {
104
+ var be, we, _e;
105
+ const I = S, { isEditMode: se } = gt(), { t: U } = vt(), _ = v(null), Re = {
106
106
  isValid: "unset",
107
107
  id: 1,
108
108
  "dcat:accessURL": "",
@@ -134,58 +134,58 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
134
134
  title: "",
135
135
  "dcterms:license": ""
136
136
  }
137
- }, { formValues: T } = yt(), i = Ve(
138
- () => oe.value || V.inRap
139
- ).value ? nt((xe = T.value.DistributionSimple) == null ? void 0 : xe["dcat:distribution"]) : v([Re]);
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
140
  i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
141
- const l = v({}), S = v({}), se = v([]), M = v(!1), j = v(!1), b = v(0), D = v([]), w = v([]), ie = v([]), H = v([]), le = v([]);
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
142
  v([...D.value]);
143
- const A = v([...w.value]), Ce = ht(), J = v(null);
143
+ const B = v([...b.value]), Ce = ht(), K = v(null);
144
144
  v(null);
145
- const K = v(!1), ne = v(!1), B = v(!1), de = v(!0);
145
+ const q = v(!1), de = v(!1), z = v(!1), ce = v(!0);
146
146
  for (let a = 0; a < i.value.length; a++)
147
- if (((be = T.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.uri) !== "" || ((we = T.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : we.checksum.title) !== "") {
148
- ne.value = !1;
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;
149
149
  break;
150
150
  }
151
151
  function Se() {
152
- se.value = [
152
+ ie.value = [
153
153
  {
154
- title: L(
154
+ title: U(
155
155
  "message.dataupload.datasets.dcat:distribution.recommended.title"
156
156
  ),
157
- items: O.distributions.Recommended.map(
158
- (a) => L(
157
+ items: W.distributions.Recommended.map(
158
+ (a) => U(
159
159
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
160
160
  ) || a
161
161
  ),
162
- keys: O.distributions.Recommended
162
+ keys: W.distributions.Recommended
163
163
  },
164
164
  {
165
- title: L("message.dataupload.datasets.dcat:distribution.advanced.title"),
166
- items: O.distributions.Advanced.map(
167
- (a) => L(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
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
168
168
  ),
169
- keys: O.distributions.Advanced
169
+ keys: W.distributions.Advanced
170
170
  }
171
171
  ];
172
172
  }
173
- function ce(a) {
173
+ function re(a) {
174
174
  var t, e, o;
175
- (o = (e = (t = V.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (de.value || q(), de.value = !1);
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);
176
176
  }
177
- function q(a) {
177
+ function G(a) {
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() !== "" && U(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && w.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() !== "" && b.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;
185
- const k = (y = h["@id"]) == null ? void 0 : y.trim();
186
- return k === "" || U(k);
185
+ const x = (y = h["@id"]) == null ? void 0 : y.trim();
186
+ return x === "" || R(x);
187
187
  }), c = o && s && n;
188
- return c || (t = !1), a === e.id && !V.inRap ? {
188
+ return c || (t = !1), a === e.id && !I.inRap ? {
189
189
  ...e,
190
190
  isValid: c,
191
191
  showErrorDownloadURL: !1,
@@ -196,59 +196,59 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
196
196
  showErrorDownloadURL: !o,
197
197
  showErrorFormat: !s
198
198
  };
199
- }), V.inRap == !0 && G(), console.log(t), t && (B.value = !1), !t && i.value.length > 0 && (console.log("invalid"), i.value[0].isValid = !1), t && i.value.length > 0 && (console.log("valid"), i.value[0].isValid = !0), a == null && (B.value = !t), T.value.DistributionSimple["dcat:distribution"] = i.value;
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;
200
200
  }
201
- function z(a, t) {
201
+ function P(a, t) {
202
202
  var o, s, n;
203
203
  let e = !0;
204
204
  if (t === "dcat:accessURL")
205
- e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? U(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, (s = a[t]) == null || s.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
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 !== "" && w.value.some(
208
+ e = c !== "" && b.value.some(
209
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");
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
  }
212
- G(!0);
212
+ Q(!0);
213
213
  }
214
- function G(a = !1) {
214
+ function Q(a = !1) {
215
215
  let t = !0;
216
216
  i.value = i.value.map((e) => {
217
- var g, h;
218
- const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && U(e["dcat:accessURL"]), s = ((h = e["dct:format"].label) == null ? void 0 : h.trim()) !== "" && A.value.some(
219
- (k) => {
220
- var y;
221
- return k["@value"].toUpperCase() === ((y = e["dct:format"].label) == null ? void 0 : y.toUpperCase());
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());
222
222
  }
223
- ), n = (e["dcat:downloadURL"] || []).every((k) => {
223
+ ), n = (e["dcat:downloadURL"] || []).every((y) => {
224
224
  var F;
225
- const y = (F = k["@id"]) == null ? void 0 : F.trim();
226
- return y === "" || U(y);
225
+ const T = (F = y["@id"]) == null ? void 0 : F.trim();
226
+ return T === "" || R(T);
227
227
  }), c = o && s && n;
228
228
  return console.log(c), c || (t = !1), {
229
229
  ...e,
230
230
  isValid: c
231
231
  };
232
- }), !t && i.value.length > 0 ? i.value[0].isValid = !1 : i.value.length > 0 && (i.value[0].isValid = !0), (V.inRap == !0 || !a) && (B.value = !t), T.value.DistributionSimple["dcat:distribution"] = i.value;
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;
233
233
  }
234
- function U(a) {
234
+ function R(a) {
235
235
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
236
236
  }
237
237
  dt(() => {
238
- Ue.off("nextClicked", ce), _.value && clearTimeout(_.value);
238
+ Ue.off("nextClicked", re), _.value && clearTimeout(_.value);
239
239
  });
240
- let re = v([]);
240
+ let ue = v([]);
241
241
  ct(async () => {
242
- Ue.on("nextClicked", ce);
242
+ Ue.on("nextClicked", re);
243
243
  const a = rt(), t = a.appContext.app.config.globalProperties.$env;
244
244
  if (a) {
245
245
  const e = a.appContext.app.config.globalProperties.$env;
246
- J.value = e.content.dataProviderInterface.specification;
246
+ K.value = e.content.dataProviderInterface.specification;
247
247
  } else
248
248
  console.log("Instance is null!");
249
249
  try {
250
250
  const e = await kt(t.api.baseUrl);
251
- re.value = e.map((s) => ({
251
+ ue.value = e.map((s) => ({
252
252
  uri: s.uri,
253
253
  "@value": s.value,
254
254
  label: s.label
@@ -264,21 +264,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
264
264
  }
265
265
  try {
266
266
  const e = await bt(t.api.baseUrl);
267
- w.value = e.results.map((o) => ({
267
+ b.value = e.results.map((o) => ({
268
268
  "@value": o.pref_label.en,
269
269
  uri: o.resource,
270
270
  selected: !1
271
- })).sort((o, s) => o["@value"].localeCompare(s["@value"])), A.value = [...w.value];
271
+ })).sort((o, s) => o["@value"].localeCompare(s["@value"])), B.value = [...b.value];
272
272
  } catch (e) {
273
273
  error.value = e;
274
274
  }
275
275
  try {
276
276
  const e = await wt(t.api.baseUrl);
277
- ie.value = e;
277
+ le.value = e;
278
278
  const o = await _t(t.api.baseUrl);
279
- H.value = o;
279
+ J.value = o;
280
280
  const s = await Dt(t.api.baseUrl);
281
- le.value = s;
281
+ ne.value = s;
282
282
  } catch (e) {
283
283
  console.log(e);
284
284
  }
@@ -287,40 +287,40 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
287
287
  function Ae(a, t) {
288
288
  const e = i.value.find((s) => s.id === t);
289
289
  if (!e) return;
290
- let o = w.value.find((s) => s["@value"] === a).uri || "";
291
- e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", z(e, "dct:format"), T.value.DistributionSimple["dcat:distribution"] = i.value;
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;
292
292
  }
293
- function ue(a, t) {
293
+ function me(a, t) {
294
294
  const e = i.value.find((o) => o.id === t);
295
295
  e ? (e["dct:modified"] = a, l.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
296
296
  }
297
- function me(a, t) {
297
+ function fe(a, t) {
298
298
  const e = i.value.find((o) => o.id === t);
299
299
  e ? (e["dct:issued"] = a, l.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
300
300
  }
301
- function fe(a, t) {
301
+ function pe(a, t) {
302
302
  const e = i.value.find((o) => o.id === t);
303
303
  e ? (e["dct:description"] = a, l.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
304
304
  }
305
- function pe(a, t, e) {
305
+ function ve(a, t, e) {
306
306
  const o = i.value.find((s) => s.id === t);
307
- e || (console.log(H.value), e = H.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, l.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
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}.`);
308
308
  }
309
- function ve(a, t) {
309
+ function he(a, t) {
310
310
  const e = i.value.find((o) => o.id === t);
311
311
  e ? (e["adms:status"] = a, l.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
312
312
  }
313
- function he(a, t, e, o) {
314
- ne.value = !0;
313
+ function ge(a, t, e, o) {
314
+ de.value = !0;
315
315
  const s = i.value.find((n) => n.id === e);
316
- o || (o = ie.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", l.value.checksumText = a, l.value.checksumDropdownText = t, l.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
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}.`);
317
317
  }
318
- function ge(a, t, e, o) {
318
+ function ye(a, t, e, o) {
319
319
  const s = i.value.find((c) => c.id === e);
320
- let n = re.value.find(
320
+ let n = ue.value.find(
321
321
  (c) => c["@value"] === t
322
322
  );
323
- s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, T.value.DistributionSimple["dct:license"] = [
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"] = [
324
324
  {
325
325
  title: a,
326
326
  "dcterms:license": t,
@@ -328,15 +328,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
328
328
  }
329
329
  ], l.value.changeLicenseText = a, l.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
330
330
  }
331
- function ye(a, t, e) {
331
+ function ke(a, t, e) {
332
332
  const o = i.value.find((s) => s.id === t);
333
- e || (e = le.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], l.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
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}.`);
334
334
  }
335
- function ke(a, t) {
335
+ function xe(a, t) {
336
336
  const e = i.value.find((o) => o.id === t);
337
337
  e ? (e["dcat:byteSize"] = a, l.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
338
338
  }
339
- function R(a, t, e) {
339
+ function C(a, t, e) {
340
340
  const o = i.value.find((n) => n.id === e);
341
341
  let s = D.value.find((n) => n["@value"] === a).uri || "";
342
342
  if (o)
@@ -355,7 +355,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
355
355
  console.warn(`No matching distribution found for ID ${e}.`);
356
356
  }
357
357
  function Fe(a) {
358
- x(
358
+ k(
359
359
  a,
360
360
  "Konform zu Standard",
361
361
  "conformsToItems",
@@ -364,7 +364,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
364
364
  );
365
365
  }
366
366
  function $e(a) {
367
- x(
367
+ k(
368
368
  a,
369
369
  "Verfügbarkeit",
370
370
  "dcatap:availability",
@@ -373,7 +373,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
373
373
  );
374
374
  }
375
375
  function Ee(a) {
376
- x(
376
+ k(
377
377
  a,
378
378
  "Status",
379
379
  "adms:status",
@@ -382,7 +382,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
382
382
  );
383
383
  }
384
384
  function Me(a) {
385
- x(
385
+ k(
386
386
  a,
387
387
  "Größe in Bytes",
388
388
  "dcat:byteSize",
@@ -391,7 +391,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
391
391
  );
392
392
  }
393
393
  function Be(a) {
394
- x(
394
+ k(
395
395
  a,
396
396
  "Sprache",
397
397
  "dct:language",
@@ -399,11 +399,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
399
399
  !1
400
400
  );
401
401
  }
402
- function Q(a, t) {
403
- x(t, a, a, !0, !1);
402
+ function X(a, t) {
403
+ k(t, a, a, !0, !1);
404
404
  }
405
405
  function ze(a) {
406
- x(
406
+ k(
407
407
  a,
408
408
  "Regelwerk",
409
409
  "policyItems",
@@ -412,7 +412,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
412
412
  );
413
413
  }
414
414
  function Pe(a) {
415
- x(
415
+ k(
416
416
  a,
417
417
  "Dokumentation",
418
418
  "documentations",
@@ -421,7 +421,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
421
421
  );
422
422
  }
423
423
  function Ne(a) {
424
- x(
424
+ k(
425
425
  a,
426
426
  "Ausliefernder Datenservice",
427
427
  "accessServices",
@@ -433,11 +433,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
433
433
  const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
434
434
  s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
435
435
  const n = a.trim();
436
- n === "" || U(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), G(!0);
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
437
  }, 800);
438
438
  }
439
439
  function We(a) {
440
- x(
440
+ k(
441
441
  a,
442
442
  "Aktualisierungsdatum",
443
443
  "dct:modified",
@@ -445,7 +445,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
445
445
  );
446
446
  }
447
447
  function je(a) {
448
- x(
448
+ k(
449
449
  a,
450
450
  "Veröffentlichungsdatum",
451
451
  "dct:issued",
@@ -453,16 +453,16 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
453
453
  );
454
454
  }
455
455
  function He(a) {
456
- x(
456
+ k(
457
457
  a,
458
458
  "Beschreibung",
459
459
  "dct:description",
460
460
  !0
461
461
  );
462
462
  }
463
- const Je = Ve(() => J.value ? Ce.getters["dpiStore/getNavSteps"](J.value) : {});
463
+ const Je = Ve(() => K.value ? Ce.getters["dpiStore/getNavSteps"](K.value) : {});
464
464
  ut(Je, (a) => {
465
- }), oe.value || V.context.node.input([{ isValid: "unset" }]);
465
+ }), se.value || I.context.node.input([{ isValid: "unset" }]);
466
466
  function Ke() {
467
467
  const a = Date.now();
468
468
  i.value.push({
@@ -497,7 +497,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
497
497
  title: "",
498
498
  "dcterms:license": ""
499
499
  }
500
- }), q(a);
500
+ }), G(a);
501
501
  }
502
502
  function qe(a, t) {
503
503
  const e = i.value.find((o) => o.id === a);
@@ -605,14 +605,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
605
605
  function Xe(a, t) {
606
606
  }
607
607
  function Ye(a) {
608
- if (a === "deleteDataset" && b.value !== null) {
608
+ if (a === "deleteDataset" && w.value !== null) {
609
609
  if (i.value.length === 1) {
610
- K.value = !0;
610
+ q.value = !0;
611
611
  return;
612
612
  }
613
613
  i.value = i.value.filter(
614
- (t) => t.id !== b.value
615
- ), K.value = !1, b.value = null, q();
614
+ (t) => t.id !== w.value
615
+ ), q.value = !1, w.value = null, G();
616
616
  }
617
617
  }
618
618
  function Ze(a) {
@@ -627,7 +627,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
627
627
  }
628
628
  function et(a) {
629
629
  var e, o, s, n, c;
630
- b.value = a;
630
+ w.value = a;
631
631
  const t = i.value.find((g) => g.id === a);
632
632
  t && (l.value = {
633
633
  button: "",
@@ -665,14 +665,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
665
665
  M.value = !1, document.body.style.overflow = "auto";
666
666
  }
667
667
  function at(a) {
668
- b.value = a;
668
+ w.value = a;
669
669
  const t = i.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
670
670
  l.value = {
671
671
  button: "Löschen",
672
- header: L(
672
+ header: U(
673
673
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
674
674
  ),
675
- text: L(
675
+ text: U(
676
676
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
677
677
  ),
678
678
  action: "deleteDataset",
@@ -681,47 +681,47 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
681
681
  distributionLink: s
682
682
  }, M.value = !0;
683
683
  }
684
- function x(a, t, e, o, s) {
684
+ function k(a, t, e, o, s) {
685
685
  const c = JSON.stringify({
686
686
  distributionId: a,
687
687
  optType: e,
688
688
  useUndefined: o,
689
689
  isArray: s
690
690
  });
691
- S.value = {
691
+ A.value = {
692
692
  button: "Löschen",
693
693
  header: `${t} löschen`,
694
694
  text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
695
695
  action: c
696
- }, j.value = !0;
696
+ }, H.value = !0;
697
697
  }
698
- function X(a, t, e) {
698
+ function Y(a, t, e) {
699
699
  var s, n, c, g;
700
700
  const o = i.value.find((h) => h.id === e);
701
701
  if (o)
702
702
  if (t === "dcat:accessURL") {
703
703
  const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
704
704
  o[t] = h, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
705
- z(o, t);
705
+ P(o, t);
706
706
  }, 800);
707
707
  } else if (t === "dct:format") {
708
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
709
  if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
710
- A.value = [...w.value];
710
+ o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), B.value = [...b.value];
711
711
  else {
712
- const k = w.value.find(
712
+ const x = b.value.find(
713
713
  (y) => y["@value"].toLowerCase() === h.toLowerCase()
714
714
  );
715
- k ? (o[t] = {
716
- label: k["@value"],
717
- uri: k.uri
718
- }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), A.value = w.value.filter(
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
719
  (y) => y["@value"].toLowerCase().includes(h.toLowerCase())
720
720
  );
721
721
  }
722
- z(o, t);
722
+ P(o, t);
723
723
  } else
724
- o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, z(o, t);
724
+ o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
725
725
  }
726
726
  function ot(a, t) {
727
727
  const e = i.value.find((o) => o.id === a);
@@ -747,19 +747,19 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
747
747
  (o) => t.some((s) => s.id === o.id)
748
748
  );
749
749
  }
750
- return (a, t) => (r(), f(Z, null, [
750
+ return (a, t) => (r(), f(ee, null, [
751
751
  m("div", Ot, [
752
- C.inRap ? p("", !0) : (r(), f("h4", Wt, $(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
753
- C.inRap ? p("", !0) : (r(), f("div", jt, $(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
754
- (r(!0), f(Z, null, Le(I(i), (e, o) => {
755
- var s, n, c, g, h, k, y, F, _e, De, Te, Ie;
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
756
  return r(), f("div", {
757
757
  key: e.id,
758
758
  class: "dpiV3AutoCompleteWrap"
759
759
  }, [
760
760
  m("div", Ht, [
761
761
  m("div", Jt, [
762
- u(te, {
762
+ u(ae, {
763
763
  "add-on-text": !1,
764
764
  datePicker: !1,
765
765
  infoIcon: !0,
@@ -777,10 +777,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
777
777
  showEndIcon: !1,
778
778
  showError: e.showErrorDownloadURL,
779
779
  "model-value": e["dcat:accessURL"],
780
- onInput: (d) => X(d, "dcat:accessURL", e.id)
780
+ onInput: (d) => Y(d, "dcat:accessURL", e.id)
781
781
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
782
782
  e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Kt, [
783
- u(I(N), {
783
+ u(L(O), {
784
784
  size: 16,
785
785
  weight: "fill"
786
786
  }),
@@ -809,21 +809,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
809
809
  autocomplete: "true",
810
810
  showError: e.showErrorFormat
811
811
  },
812
- data: A.value,
812
+ data: B.value,
813
813
  autocomplete: !0,
814
- onInput: (d) => X(d, "dct:format", e.id),
814
+ onInput: (d) => Y(d, "dct:format", e.id),
815
815
  "onUpdate:modelValue": (d) => Ae(d, e.id),
816
816
  "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
817
817
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
818
818
  e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", Qt, [
819
- u(I(N), {
819
+ u(L(O), {
820
820
  size: 16,
821
821
  weight: "fill"
822
822
  }),
823
823
  m("span", Xt, $(e.formatErrorMessage), 1)
824
824
  ])) : p("", !0)
825
825
  ]),
826
- u(te, {
826
+ u(ae, {
827
827
  modelValue: e["dct:title"],
828
828
  "onUpdate:modelValue": (d) => e["dct:title"] = d,
829
829
  "add-on-text": !1,
@@ -839,11 +839,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
839
839
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
840
840
  ),
841
841
  "show-end-icon": !1,
842
- onInput: (d) => X(d, "dct:title", e.id)
842
+ onInput: (d) => Y(d, "dct:title", e.id)
843
843
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
844
844
  (e.documentations || []).length > 0 ? (r(), f("div", Yt, [
845
845
  m("div", Zt, [
846
- t[6] || (t[6] = m("div", null, "Webpage (optional)", -1)),
846
+ t[6] || (t[6] = m("div", null, "Dokumentation (optional)", -1)),
847
847
  m("div", null, [
848
848
  u(E, {
849
849
  "button-text": "löschen",
@@ -889,8 +889,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
889
889
  ])
890
890
  ])
891
891
  ])) : p("", !0),
892
- (r(!0), f(Z, null, Le(e["dcat:downloadURL"], (d, P) => (r(), f("div", {
893
- key: P,
892
+ (r(!0), f(ee, null, Le(e["dcat:downloadURL"], (d, N) => (r(), f("div", {
893
+ key: N,
894
894
  class: "dpiV3_DocumentationsInDistr"
895
895
  }, [
896
896
  m("div", la, [
@@ -901,14 +901,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
901
901
  e["dcat:downloadURL"].length !== 1 ? (r(), f("div", na, [
902
902
  u(E, {
903
903
  "button-text": "löschen",
904
- onClick: (Y) => e["dcat:downloadURL"].splice(P, 1)
904
+ onClick: (Z) => e["dcat:downloadURL"].splice(N, 1)
905
905
  }, null, 8, ["onClick"])
906
906
  ])) : p("", !0)
907
907
  ]),
908
908
  m("div", da, [
909
- u(te, {
909
+ u(ae, {
910
910
  "model-value": d["@id"],
911
- onInput: (Y) => Oe(Y.target.value, e.id, P),
911
+ onInput: (Z) => Oe(Z.target.value, e.id, N),
912
912
  showError: d.showError,
913
913
  initialHintText: !1,
914
914
  addOnText: !1,
@@ -917,20 +917,20 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
917
917
  label: ""
918
918
  }, null, 8, ["model-value", "onInput", "showError"]),
919
919
  d.showError ? (r(), f("div", ca, [
920
- u(I(N), {
920
+ u(L(O), {
921
921
  size: 16,
922
922
  weight: "fill"
923
923
  }),
924
924
  m("span", ra, $(d.errorMessage), 1)
925
925
  ])) : p("", !0)
926
926
  ]),
927
- P === e["dcat:downloadURL"].length - 1 ? (r(), f("div", ua, [
928
- u(W, {
927
+ N === e["dcat:downloadURL"].length - 1 ? (r(), f("div", ua, [
928
+ u(j, {
929
929
  buttonText: "Weitere DownloadURL hinzufügen",
930
930
  size: "small",
931
931
  iconStart: "plus",
932
932
  variant: "tertiary",
933
- onClick: (Y) => e["dcat:downloadURL"].push({ "@id": "", showError: !1, errorMessage: "" })
933
+ onClick: (Z) => e["dcat:downloadURL"].push({ "@id": "", showError: !1, errorMessage: "" })
934
934
  }, null, 8, ["onClick"])
935
935
  ])) : p("", !0)
936
936
  ]))), 128)),
@@ -939,7 +939,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
939
939
  "show-delete-button": !0,
940
940
  "distribution-id": e.id,
941
941
  "model-value": e["dct:modified"],
942
- onAddModifiedDate: ue,
942
+ onAddModifiedDate: me,
943
943
  onDeleteButtonClicked: (d) => We(e.id)
944
944
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
945
945
  ])) : p("", !0),
@@ -948,7 +948,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
948
948
  "show-delete-button": !0,
949
949
  "distribution-id": e.id,
950
950
  "model-value": e["dct:issued"],
951
- onAddIssuedDate: me,
951
+ onAddIssuedDate: fe,
952
952
  onDeleteButtonClicked: (d) => je(e.id)
953
953
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
954
954
  ])) : p("", !0),
@@ -957,7 +957,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
957
957
  "distribution-id": e.id,
958
958
  "description-text": e["dct:description"],
959
959
  "show-delete-button": !0,
960
- onAddDescription: fe,
960
+ onAddDescription: pe,
961
961
  onDeleteDescription: (d) => He(e.id)
962
962
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
963
963
  ], 512), [
@@ -971,7 +971,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
971
971
  "availability-text": e["dcatap:availability"].label.de,
972
972
  "distribution-id": e.id,
973
973
  "show-delete-button": !0,
974
- onAddAvailability: pe,
974
+ onAddAvailability: ve,
975
975
  onDeleteButtonClicked: (d) => $e(e.id)
976
976
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
977
977
  ])) : p("", !0),
@@ -980,7 +980,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
980
980
  "status-text": e["adms:status"]["@value"],
981
981
  "distribution-id": e.id,
982
982
  "show-delete-button": !0,
983
- onAddStatus: ve,
983
+ onAddStatus: he,
984
984
  onDeleteButtonClicked: (d) => Ee(e.id)
985
985
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
986
986
  ])) : p("", !0),
@@ -992,7 +992,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
992
992
  distIndex: o,
993
993
  "checksum-u-r-i": e.checksum.uri,
994
994
  "show-delete-button": !0,
995
- onAddChecksum: he
995
+ onAddChecksum: ge
996
996
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
997
997
  ])) : p("", !0),
998
998
  Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div", ya, [
@@ -1002,7 +1002,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1002
1002
  "distribution-id": e.id,
1003
1003
  "as-card": !0,
1004
1004
  "show-delete-button": !0,
1005
- onAddChangeLicense: ge
1005
+ onAddChangeLicense: ye
1006
1006
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
1007
1007
  ])) : p("", !0),
1008
1008
  e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div", ka, [
@@ -1023,7 +1023,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1023
1023
  onUpdate: (d) => it(e.id, d)
1024
1024
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1025
1025
  ])) : p("", !0),
1026
- ((k = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : k["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), f("div", ba, [
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
1027
  m("div", wa, [
1028
1028
  t[10] || (t[10] = m("div", null, "Regelwerk (optional)", -1)),
1029
1029
  m("div", null, [
@@ -1040,11 +1040,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1040
1040
  onUpdate: (d) => lt(e.id, d)
1041
1041
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1042
1042
  ])) : p("", !0),
1043
- (F = (y = e["dct:language"]) == null ? void 0 : y[0]) != null && F.label || (De = (_e = e["dct:language"]) == null ? void 0 : _e[0]) != null && De["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), f("div", _a, [
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
1044
  u(Mt, {
1045
1045
  "distribution-id": e.id,
1046
1046
  "show-delete-button": !1,
1047
- onAddLanguage: ye,
1047
+ onAddLanguage: ke,
1048
1048
  onDeleteButtonClicked: (d) => Be(e.id),
1049
1049
  inOverview: !0
1050
1050
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
@@ -1054,54 +1054,54 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1054
1054
  "byte-size-prop": e["dcat:byteSize"],
1055
1055
  "distribution-id": e.id,
1056
1056
  "show-delete-button": !0,
1057
- onAddByteSize: ke,
1057
+ onAddByteSize: xe,
1058
1058
  onDeleteButtonClicked: (d) => Me(e.id)
1059
1059
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1060
1060
  ])) : p("", !0),
1061
1061
  e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), f("div", Ta, [
1062
- u(ae, {
1062
+ u(oe, {
1063
1063
  "distribution-id": e.id,
1064
1064
  "file-types": D.value,
1065
1065
  "file-format-type": "dcat:mediaType",
1066
1066
  "file-format-text": e["dcat:mediaType"].label,
1067
1067
  "show-delete-button": !0,
1068
- onAddMediaType: R,
1069
- onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", b.value))
1068
+ onAddMediaType: C,
1069
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => X("dcat:mediaType", w.value))
1070
1070
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1071
1071
  ])) : p("", !0),
1072
1072
  e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), f("div", Ia, [
1073
- u(ae, {
1073
+ u(oe, {
1074
1074
  "distribution-id": e.id,
1075
1075
  "file-types": D.value,
1076
1076
  "file-format-type": "dcat:compressFormat",
1077
1077
  "compress-format-text": e["dcat:compressFormat"].label,
1078
1078
  "show-delete-button": !0,
1079
- onAddCompressFormat: R,
1080
- onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", b.value))
1079
+ onAddCompressFormat: C,
1080
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => X("dcat:compressFormat", w.value))
1081
1081
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1082
1082
  ])) : p("", !0),
1083
1083
  e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div", Va, [
1084
- u(ae, {
1084
+ u(oe, {
1085
1085
  "distribution-id": e.id,
1086
1086
  "file-types": D.value,
1087
1087
  "file-format-type": "dcat:packageFormat",
1088
1088
  "package-format-text": e["dcat:packageFormat"].label,
1089
1089
  "show-delete-button": !0,
1090
- onAddPackageFormat: R,
1091
- onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", b.value))
1090
+ onAddPackageFormat: C,
1091
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => X("dcat:packageFormat", w.value))
1092
1092
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1093
1093
  ])) : p("", !0),
1094
- K.value && I(i).length === 1 ? (r(), f("p", La, " 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)
1095
1095
  ]),
1096
1096
  m("div", Ua, [
1097
- u(W, {
1097
+ u(j, {
1098
1098
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1099
1099
  size: "small",
1100
1100
  "icon-start": "PlusSquare",
1101
1101
  variant: "tertiary",
1102
1102
  onClick: (d) => et(e.id)
1103
1103
  }, null, 8, ["button-text", "onClick"]),
1104
- I(i).length > 1 ? (r(), ee(W, {
1104
+ L(i).length > 1 ? (r(), te(j, {
1105
1105
  key: 0,
1106
1106
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1107
1107
  size: "small",
@@ -1113,7 +1113,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1113
1113
  ]);
1114
1114
  }), 128)),
1115
1115
  m("div", Ra, [
1116
- u(W, {
1116
+ u(j, {
1117
1117
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1118
1118
  size: "large",
1119
1119
  "icon-start": "plus",
@@ -1121,20 +1121,20 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1121
1121
  onClick: Ke
1122
1122
  }, null, 8, ["button-text"])
1123
1123
  ]),
1124
- B.value ? (r(), f("div", {
1124
+ z.value ? (r(), f("div", {
1125
1125
  key: 2,
1126
- class: pt(C.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1126
+ class: pt(S.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1127
1127
  }, [
1128
- u(I(N), {
1128
+ u(L(O), {
1129
1129
  size: 16,
1130
1130
  weight: "fill"
1131
1131
  }),
1132
1132
  t[11] || (t[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1133
1133
  ], 2)) : p("", !0)
1134
1134
  ]),
1135
- M.value ? (r(), ee(Vt, {
1135
+ M.value ? (r(), te(Vt, {
1136
1136
  key: 0,
1137
- "distibution-id": b.value,
1137
+ "distibution-id": w.value,
1138
1138
  "file-types": D.value,
1139
1139
  buttons: l.value.button,
1140
1140
  "header-text": l.value.header,
@@ -1147,8 +1147,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1147
1147
  title: l.value.title,
1148
1148
  format: l.value.format,
1149
1149
  "distribution-link": l.value.distributionLink,
1150
- sections: se.value,
1151
- context: C.context,
1150
+ sections: ie.value,
1151
+ context: S.context,
1152
1152
  "distribution-id": l.value.distributionId,
1153
1153
  "modified-date": l.value.dctModified || "",
1154
1154
  "issued-date": l.value.dctIssued || "",
@@ -1173,34 +1173,34 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1173
1173
  onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1174
1174
  onAddDocumentations: qe,
1175
1175
  onAddAccessServices: Ge,
1176
- onAddModifiedDate: ue,
1177
- onAddIssuedDate: me,
1178
- onAddDescription: fe,
1176
+ onAddModifiedDate: me,
1177
+ onAddIssuedDate: fe,
1178
+ onAddDescription: pe,
1179
1179
  onAddAccessRights: a.handleAccessRights,
1180
- onAddAvailability: pe,
1181
- onAddLanguage: ye,
1182
- onAddByteSize: ke,
1183
- onAddMediaType: R,
1184
- onAddCompressFormat: R,
1185
- onAddPackageFormat: R,
1186
- onAddStatus: ve,
1187
- onAddChecksum: he,
1188
- onAddChangeLicense: ge,
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,
1189
1189
  onAddConformsToItems: Qe,
1190
1190
  onAddPolicyItems: Xe
1191
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),
1192
- j.value ? (r(), ee(It, {
1192
+ H.value ? (r(), te(It, {
1193
1193
  key: 1,
1194
- buttons: S.value.button,
1195
- "header-text": S.value.header,
1196
- text: S.value.text,
1197
- action: S.value.action,
1198
- onClose: t[4] || (t[4] = (e) => j.value = !1),
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),
1199
1199
  onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1200
1200
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1201
1201
  ], 64));
1202
1202
  }
1203
- }, fo = /* @__PURE__ */ Nt(Ca, [["__scopeId", "data-v-3c582902"]]);
1203
+ }, fo = /* @__PURE__ */ Nt(Ca, [["__scopeId", "data-v-5ad7aeb8"]]);
1204
1204
  export {
1205
1205
  fo as default
1206
1206
  };