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

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