@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.41

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