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

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,4 +1,4 @@
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 Le, 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 E, renderList as Ue, unref as U, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
2
2
  import "@formkit/core";
3
3
  import { PhWarning as O } from "@phosphor-icons/vue";
4
4
  import { useI18n as vt } from "vue-i18n";
@@ -6,15 +6,15 @@ 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
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 kt, getFileTypes as xt, getFormatTypes as wt, getChecksumAlgorithms as bt, getPlannedAvailability as _t, getLanguages as Dt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Ve } from "../HappyFlowComponents/services/eventBus.js";
11
11
  import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
12
  import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
13
  import ae from "../HappyFlowComponents/ui/InputField.vue.js";
14
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";
15
+ import Lt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Ut from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import Vt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
18
  import Rt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
19
  import Ct from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
20
  import St from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
@@ -27,7 +27,7 @@ import Mt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js"
27
27
  import Bt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
28
  import zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
29
  import Pt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
- import E from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
30
+ import M from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
31
  import "zod/v4/locales";
32
32
  /* empty css */
33
33
  import Nt from "../../_virtual/_plugin-vue_export-helper.js";
@@ -73,10 +73,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
73
73
  }, ka = {
74
74
  key: 8,
75
75
  class: "dpiV3_DocumentationsInDistr"
76
- }, xa = { class: "dpiV3_TitleDelete" }, ba = {
76
+ }, xa = { class: "dpiV3_TitleDelete" }, wa = {
77
77
  key: 9,
78
78
  class: "dpiV3_DocumentationsInDistr"
79
- }, wa = { class: "dpiV3_TitleDelete" }, _a = {
79
+ }, ba = { class: "dpiV3_TitleDelete" }, _a = {
80
80
  key: 10,
81
81
  class: "dpiV3_modified dpiV3_label"
82
82
  }, Da = {
@@ -88,21 +88,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
88
88
  }, Ia = {
89
89
  key: 13,
90
90
  class: "dpiV3_modified dpiV3_label"
91
- }, Va = {
91
+ }, La = {
92
92
  key: 14,
93
93
  class: "dpiV3_modified dpiV3_label"
94
- }, La = {
94
+ }, Ua = {
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
+ }, Va = { class: "dpiV3_CTA-Distribution" }, Ra = { class: "dpiV3_tempAddMore" }, Ca = {
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 } = gt(), { t: V } = vt(), _ = v(null), Re = {
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 } = yt(), i = Le(
138
138
  () => se.value || I.inRap
139
- ).value ? nt((be = V.value.DistributionSimple) == null ? void 0 : be["dcat:distribution"]) : v([Re]);
139
+ ).value ? nt((we = L.value.DistributionSimple) == null ? void 0 : we["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({}), 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]), Ce = ht(), 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
151
  function Se() {
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,31 +215,28 @@ 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
234
  dt(() => {
238
- Ue.off("nextClicked", re), _.value && clearTimeout(_.value);
235
+ Ve.off("nextClicked", re), _.value && clearTimeout(_.value);
239
236
  });
240
237
  let ue = v([]);
241
238
  ct(async () => {
242
- Ue.on("nextClicked", re);
239
+ Ve.on("nextClicked", re);
243
240
  const a = rt(), t = a.appContext.app.config.globalProperties.$env;
244
241
  if (a) {
245
242
  const e = a.appContext.app.config.globalProperties.$env;
@@ -263,17 +260,17 @@ 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 wt(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 bt(t.api.baseUrl);
277
274
  le.value = e;
278
275
  const o = await _t(t.api.baseUrl);
279
276
  J.value = o;
@@ -287,8 +284,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
287
284
  function Ae(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,
@@ -460,7 +457,7 @@ 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) : {});
460
+ const Je = Le(() => K.value ? Ce.getters["dpiStore/getNavSteps"](K.value) : {});
464
461
  ut(Je, (a) => {
465
462
  }), se.value || I.context.node.input([{ isValid: "unset" }]);
466
463
  function Ke() {
@@ -605,14 +602,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
605
602
  function Xe(a, t) {
606
603
  }
607
604
  function Ye(a) {
608
- if (a === "deleteDataset" && w.value !== null) {
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
615
  function Ze(a) {
@@ -627,7 +624,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
627
624
  }
628
625
  function et(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
661
  function tt() {
665
- M.value = !1, document.body.style.overflow = "auto";
662
+ B.value = !1, document.body.style.overflow = "auto";
666
663
  }
667
664
  function at(a) {
668
- w.value = 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
  }
@@ -749,10 +746,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
749
746
  }
750
747
  return (a, t) => (r(), f(ee, null, [
751
748
  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;
749
+ S.inRap ? p("", !0) : (r(), f("h4", Wt, E(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
750
+ S.inRap ? p("", !0) : (r(), f("div", jt, E(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
751
+ (r(!0), f(ee, null, Ue(U(i), (e, o) => {
752
+ var s, n, c, g, h, x, y, T, $, De, Te, Ie;
756
753
  return r(), f("div", {
757
754
  key: e.id,
758
755
  class: "dpiV3AutoCompleteWrap"
@@ -780,11 +777,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
780
777
  onInput: (d) => Y(d, "dcat:accessURL", e.id)
781
778
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
782
779
  e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Kt, [
783
- u(L(O), {
780
+ u(U(O), {
784
781
  size: 16,
785
782
  weight: "fill"
786
783
  }),
787
- m("span", qt, $(e.urlErrorMessage), 1)
784
+ m("span", qt, E(e.urlErrorMessage), 1)
788
785
  ])) : p("", !0)
789
786
  ]),
790
787
  m("div", Gt, [
@@ -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
812
  "onUpdate:modelValue": (d) => Ae(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
815
  e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", Qt, [
819
- u(L(O), {
816
+ u(U(O), {
820
817
  size: 16,
821
818
  weight: "fill"
822
819
  }),
823
- m("span", Xt, $(e.formatErrorMessage), 1)
820
+ m("span", Xt, E(e.formatErrorMessage), 1)
824
821
  ])) : p("", !0)
825
822
  ]),
826
823
  u(ae, {
@@ -845,7 +842,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
845
842
  m("div", Zt, [
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
847
  onClick: (d) => Pe(e.id)
851
848
  }, null, 8, ["onClick"])
@@ -868,7 +865,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
868
865
  m("div", oa, [
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
870
  onClick: (d) => Ne(e.id)
874
871
  }, null, 8, ["onClick"])
@@ -876,7 +873,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
876
873
  ]),
877
874
  m("div", sa, [
878
875
  m("div", ia, [
879
- u(Lt, {
876
+ u(Ut, {
880
877
  "access-services": e.accessServices,
881
878
  "distribution-id": e.id,
882
879
  "as-card": !0,
@@ -889,7 +886,7 @@ 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, Ue(e["dcat:downloadURL"], (d, N) => (r(), f("div", {
893
890
  key: N,
894
891
  class: "dpiV3_DocumentationsInDistr"
895
892
  }, [
@@ -899,7 +896,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
899
896
  style: { margin: "0" }
900
897
  }, " DownloadURL (optional) ", -1)),
901
898
  e["dcat:downloadURL"].length !== 1 ? (r(), f("div", na, [
902
- u(E, {
899
+ u(M, {
903
900
  "button-text": "löschen",
904
901
  onClick: (Z) => e["dcat:downloadURL"].splice(N, 1)
905
902
  }, null, 8, ["onClick"])
@@ -917,11 +914,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
917
914
  label: ""
918
915
  }, null, 8, ["model-value", "onInput", "showError"]),
919
916
  d.showError ? (r(), f("div", ca, [
920
- u(L(O), {
917
+ u(U(O), {
921
918
  size: 16,
922
919
  weight: "fill"
923
920
  }),
924
- m("span", ra, $(d.errorMessage), 1)
921
+ m("span", ra, E(d.errorMessage), 1)
925
922
  ])) : p("", !0)
926
923
  ]),
927
924
  N === e["dcat:downloadURL"].length - 1 ? (r(), f("div", ua, [
@@ -967,7 +964,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
967
964
  ]
968
965
  ]),
969
966
  e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div", va, [
970
- u(Ut, {
967
+ u(Vt, {
971
968
  "availability-text": e["dcatap:availability"].label.de,
972
969
  "distribution-id": e.id,
973
970
  "show-delete-button": !0,
@@ -1009,7 +1006,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1009
1006
  m("div", xa, [
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
1011
  onClick: (d) => Fe(e.id)
1015
1012
  }, null, 8, ["onClick"])
@@ -1023,11 +1020,11 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1023
1020
  onUpdate: (d) => it(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", wa, [
1024
+ m("div", ba, [
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
1029
  onClick: (d) => ze(e.id)
1033
1030
  }, null, 8, ["onClick"])
@@ -1040,7 +1037,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1040
1037
  onUpdate: (d) => lt(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, [
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", _a, [
1044
1041
  u(Mt, {
1045
1042
  "distribution-id": e.id,
1046
1043
  "show-delete-button": !1,
@@ -1066,7 +1063,7 @@ 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
1069
  e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), f("div", Ia, [
@@ -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", La, [
1084
1081
  u(oe, {
1085
1082
  "distribution-id": e.id,
1086
1083
  "file-types": D.value,
@@ -1088,12 +1085,12 @@ 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", Ua, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1095
1092
  ]),
1096
- m("div", Ua, [
1093
+ m("div", Va, [
1097
1094
  u(j, {
1098
1095
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1099
1096
  size: "small",
@@ -1101,7 +1098,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1101
1098
  variant: "tertiary",
1102
1099
  onClick: (d) => et(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",
@@ -1121,20 +1118,20 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
1121
1118
  onClick: Ke
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
1123
  class: pt(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(Lt, {
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,
@@ -1200,7 +1197,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
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
+ }, fo = /* @__PURE__ */ Nt(Ca, [["__scopeId", "data-v-c6ae7f96"]]);
1204
1201
  export {
1205
1202
  fo as default
1206
1203
  };
@@ -325,7 +325,7 @@ const Xe = { key: 0 }, Ze = {
325
325
  a("div", zt, [
326
326
  (i(!0), l(S, null, w(T.value["dct:temporal"] || [], (n) => (i(), l("div", Et, [
327
327
  a("div", Lt, [
328
- t[10] || (t[10] = P(" von ", -1)),
328
+ t[10] || (t[10] = P(" Von ", -1)),
329
329
  a("div", null, [
330
330
  a("span", null, s(new Date(n["dcat:startDate"]).toLocaleDateString(
331
331
  "de-DE",
@@ -470,7 +470,7 @@ const Xe = { key: 0 }, Ze = {
470
470
  ], 64);
471
471
  };
472
472
  }
473
- }, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-93930e38"]]);
473
+ }, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-05db5cbd"]]);
474
474
  export {
475
475
  Na as default
476
476
  };