@piveau/dpi 0.1.0-beta.47 → 0.1.0-beta.49

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,6 +1,6 @@
1
- import { ref as p, watch as N, onMounted as q, getCurrentInstance as x, onUnmounted as O, createElementBlock as z, openBlock as b, createElementVNode as l, createVNode as V, createCommentVNode as T, toDisplayString as o, unref as c, isRef as W, createBlock as U, createTextVNode as k } from "vue";
2
- import j from "../HappyFlowComponents/ui/InputField.vue.js";
3
- import H from "../HappyFlowComponents/ui/Dropdown.vue.js";
1
+ import { ref as p, watch as C, onMounted as x, getCurrentInstance as q, onUnmounted as O, createElementBlock as w, openBlock as b, createElementVNode as l, createVNode as V, createCommentVNode as T, toDisplayString as o, unref as u, isRef as W, createBlock as U, createTextVNode as k } from "vue";
2
+ import H from "../HappyFlowComponents/ui/InputField.vue.js";
3
+ import j from "../HappyFlowComponents/ui/Dropdown.vue.js";
4
4
  import { PhWarning as B, PhLightbulb as R, PhArrowSquareOut as G } from "@phosphor-icons/vue";
5
5
  import { getLicenses as J } from "../HappyFlowComponents/services/dpiV3_apis.js";
6
6
  import { useEditModeInfo as K } from "../composables/useDpiEditMode.js";
@@ -13,7 +13,7 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
13
13
  }, te = { class: "copy-mini-regular" }, se = { class: "input-container" }, ie = {
14
14
  key: 1,
15
15
  class: "dpiV3_errormsgWrapper"
16
- }, ae = { class: "copy-mini-regular" }, le = { class: "dpiV3_Content_InputPage" }, ne = { class: "dpiV3_Card_Tips" }, oe = { class: "dpiV3_Icon_Title" }, de = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, re = { class: "dpiV3_CT-Content" }, ue = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, ce = { class: "dpiV3_hvd_frame3846" }, pe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ve = { class: "dpiV3_normal" }, fe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, me = { class: "dpiV3_normal" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, he = { class: "dpiV3_normal" }, ge = {
16
+ }, ae = { class: "copy-mini-regular" }, le = { class: "dpiV3_Content_InputPage" }, ne = { class: "dpiV3_Card_Tips" }, oe = { class: "dpiV3_Icon_Title" }, de = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, re = { class: "dpiV3_CT-Content" }, ue = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, ce = { class: "dpiV3_hvd_frame3846" }, pe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ve = { class: "dpiV3_normal" }, fe = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, me = { class: "dpiV3_normal" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ge = { class: "dpiV3_normal" }, he = {
17
17
  href: "https://oc.bydata.de/sharing/articles/licenses",
18
18
  target: "_blank",
19
19
  rel: "noopener noreferrer",
@@ -29,13 +29,13 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
29
29
  changeLicenseDropdownText: { type: String, default: "" }
30
30
  },
31
31
  setup(S) {
32
- const { isEditMode: D } = K(), { formValues: we } = Q();
33
- let I = p(!1), v = p([]), h = p(""), m = p(null);
32
+ const { isEditMode: D } = K(), { formValues: Le } = Q();
33
+ let I = p(!1), v = p([]), g = p(""), m = p(null);
34
34
  const r = p(""), y = S;
35
35
  let d = p({ 1: "unset", 2: "unset" });
36
36
  const i = p([
37
37
  { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
38
- ]), u = p({
38
+ ]), c = p({
39
39
  2: {
40
40
  show: !1,
41
41
  message: "Namensnennungstext ist für diese Lizenz erforderlich"
@@ -43,19 +43,19 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
43
43
  });
44
44
  D.value || y.context.node.input(i);
45
45
  const $ = (e, t, s) => {
46
- w(e, t, s);
46
+ L(e, t, s);
47
47
  }, A = (e) => {
48
48
  const t = typeof e == "object" && e.target ? e.target.value : e;
49
- m.value && clearTimeout(m.value), E(t, "dcterms:license", 1), m.value = setTimeout(() => {
50
- C(t, "dcterms:license", 1);
49
+ m.value && clearTimeout(m.value), M(t, "dcterms:license", 1), m.value = setTimeout(() => {
50
+ N(t, "dcterms:license", 1);
51
51
  }, 800);
52
- }, E = (e, t, s) => {
52
+ }, M = (e, t, s) => {
53
53
  r.value = "";
54
54
  const a = v.value.find(
55
55
  (n) => n["@value"] === e
56
56
  );
57
- a ? w(e, t, s, a.uri) : e === "" ? (d.value[s] = !1, i.value[0].isValid = "unset", I.value = !1, u.value[2].show = !1, i.value = i.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), y.context.node.input(i.value)) : (d.value[s] = "unset", i.value[0].isValid = "unset");
58
- }, C = (e, t, s) => {
57
+ a ? L(e, t, s, a.uri) : e === "" ? (d.value[s] = !1, i.value[0].isValid = "unset", I.value = !1, c.value[2].show = !1, i.value = i.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), y.context.node.input(i.value)) : (d.value[s] = "unset", i.value[0].isValid = "unset");
58
+ }, N = (e, t, s) => {
59
59
  if (e === "") {
60
60
  r.value = "";
61
61
  return;
@@ -63,49 +63,49 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
63
63
  const a = v.value.find(
64
64
  (n) => n["@value"] === e
65
65
  );
66
- a ? w(e, t, s, a.uri) : (r.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[s] = !1, i.value[0].isValid = "unset");
66
+ a ? L(e, t, s, a.uri) : (r.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[s] = !1, i.value[0].isValid = "unset");
67
67
  }, F = (e) => {
68
68
  m.value && clearTimeout(m.value);
69
69
  const t = e.target.value;
70
- C(t, "dcterms:license", 1);
71
- }, M = (e, t, s) => {
70
+ N(t, "dcterms:license", 1);
71
+ }, P = (e, t, s) => {
72
72
  var a;
73
73
  i.value = i.value.map((n) => t in n ? { ...n, [t]: e } : n);
74
74
  {
75
75
  const n = ((a = i.value[0]) == null ? void 0 : a["dcterms:license"]) || "";
76
76
  if (n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"))) {
77
77
  const f = e && e.trim() !== "";
78
- u.value[2].show = !f, d.value[2] = f, d.value[1] === !0 && f ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
78
+ c.value[2].show = !f, d.value[2] = f, d.value[1] === !0 && f ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
79
79
  } else
80
- u.value[2].show = !1, d.value[2] = "unset";
80
+ c.value[2].show = !1, d.value[2] = "unset";
81
81
  }
82
82
  y.context.node.input(i.value);
83
- }, w = (e, t, s, a) => {
83
+ }, L = (e, t, s, a) => {
84
84
  var f;
85
- const n = e === "" || v.value.some((g) => g["@value"] === e);
86
- let L = p();
85
+ const n = e === "" || v.value.some((h) => h["@value"] === e);
86
+ let z = p();
87
87
  if (!n && e !== "")
88
88
  r.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[s] = !1, i.value[0].isValid = "unset";
89
89
  else {
90
90
  r.value = "";
91
- const g = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
92
- if (I.value = g, e !== "") {
91
+ const h = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
92
+ if (I.value = h, e !== "") {
93
93
  d.value[s] = !0;
94
- const _ = ((f = i.value[0]) == null ? void 0 : f.title) || "", P = !g || g && _.trim() !== "";
95
- i.value[0].isValid = P ? !0 : "unset", g ? (u.value[2].show = _.trim() === "", d.value[2] = _.trim() !== "") : (u.value[2].show = !1, d.value[2] = "unset");
94
+ const _ = ((f = i.value[0]) == null ? void 0 : f.title) || "", E = !h || h && _.trim() !== "";
95
+ i.value[0].isValid = E ? !0 : "unset", h ? (c.value[2].show = _.trim() === "", d.value[2] = _.trim() !== "") : (c.value[2].show = !1, d.value[2] = "unset");
96
96
  } else
97
- d.value[s] = !1, i.value[0].isValid = "unset", u.value[2].show = !1;
98
- i.value = i.value.map((_) => t in _ ? { ..._, [t]: e, uri: a, title: L } : _);
97
+ d.value[s] = !1, i.value[0].isValid = "unset", c.value[2].show = !1;
98
+ i.value = i.value.map((_) => t in _ ? { ..._, [t]: e, uri: a, title: z } : _);
99
99
  }
100
100
  y.context.node.input(i.value);
101
101
  };
102
- return N(h, (e) => {
102
+ return C(g, (e) => {
103
103
  var s;
104
104
  let t = (s = v.value.find(
105
105
  (a) => a["@value"] === e
106
106
  )) == null ? void 0 : s.uri;
107
- e !== void 0 && w(e, "dcterms:license", 1, t);
108
- }), N(
107
+ e !== void 0 && L(e, "dcterms:license", 1, t);
108
+ }), C(
109
109
  () => i.value[0].isValid,
110
110
  (e) => {
111
111
  var t, s;
@@ -113,11 +113,11 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
113
113
  const a = ((t = i.value[0]) == null ? void 0 : t["dcterms:license"]) || "";
114
114
  a === "" ? r.value = "Bitte wählen Sie eine Lizenz aus." : v.value.find(
115
115
  (f) => f["@value"] === a
116
- ) || (r.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), a !== "" && (a.includes("cc-by") || a.includes("dl-by-de")) && (((s = i.value[0]) == null ? void 0 : s.title) || "").trim() === "" && (u.value[2].show = !0);
116
+ ) || (r.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), a !== "" && (a.includes("cc-by") || a.includes("dl-by-de")) && (((s = i.value[0]) == null ? void 0 : s.title) || "").trim() === "" && (c.value[2].show = !0);
117
117
  }
118
118
  }
119
- ), q(async () => {
120
- const t = x().appContext.app.config.globalProperties.$env;
119
+ ), x(async () => {
120
+ const t = q().appContext.app.config.globalProperties.$env;
121
121
  try {
122
122
  const s = await J(t.api.baseUrl);
123
123
  v.value = s.map((a) => ({
@@ -130,19 +130,19 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
130
130
  }
131
131
  }), O(() => {
132
132
  m.value && clearTimeout(m.value);
133
- }), (e, t) => (b(), z("div", Y, [
133
+ }), (e, t) => (b(), w("div", Y, [
134
134
  l("h4", null, o(e.$t("message.dataupload.datasets.dct:license.title")), 1),
135
135
  l("div", Z, o(e.$t("message.dataupload.datasets.dct:license.description")), 1),
136
- V(H, {
136
+ V(j, {
137
137
  "onUpdate:modelValue": [
138
138
  t[0] || (t[0] = (s) => $(s, "dcterms:license", 1)),
139
- t[1] || (t[1] = (s) => W(h) ? h.value = s : h = s)
139
+ t[1] || (t[1] = (s) => W(g) ? g.value = s : g = s)
140
140
  ],
141
141
  onInput: A,
142
142
  onBlur: F,
143
143
  dropdownWidth: "large",
144
144
  type: "inputField",
145
- modelValue: c(h),
145
+ modelValue: u(g),
146
146
  inputFieldProps: {
147
147
  addOnText: !1,
148
148
  initialHintText: !1,
@@ -153,52 +153,52 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
153
153
  dropdown_dpiV3: !0,
154
154
  placeholder: "Lizenz wählen...",
155
155
  inputFieldSize: "large",
156
- modelValue: c(h),
156
+ modelValue: u(g),
157
157
  defaultInput: !0,
158
- showError: r.value !== "" || i.value[0].isValid === "unset" && c(d)[1] === !1
158
+ showError: r.value !== "" || i.value[0].isValid === "unset" && u(d)[1] === !1
159
159
  },
160
- data: c(v),
160
+ data: u(v),
161
161
  onDeleteButtonClicked: e.deleteModifiedField
162
162
  }, null, 8, ["modelValue", "inputFieldProps", "data", "onDeleteButtonClicked"]),
163
- r.value ? (b(), z("div", ee, [
164
- V(c(B), {
163
+ r.value ? (b(), w("div", ee, [
164
+ V(u(B), {
165
165
  size: 16,
166
166
  weight: "fill"
167
167
  }),
168
168
  l("span", te, o(r.value), 1)
169
169
  ])) : T("", !0),
170
170
  l("div", se, [
171
- c(I) ? (b(), U(j, {
171
+ u(I) ? (b(), U(H, {
172
172
  key: 0,
173
173
  modelValue: i.value[0].title,
174
- "onUpdate:modelValue": t[2] || (t[2] = (s) => M(s, "title")),
174
+ "onUpdate:modelValue": t[2] || (t[2] = (s) => P(s, "title")),
175
175
  addOnText: !1,
176
176
  datePicker: !1,
177
177
  infoIcon: !1,
178
178
  placeholder: "Geben Sie den Namensnennungstext für Ihre Lizenz an...",
179
179
  preIcon: !1,
180
180
  inputFieldSize: "large",
181
- initialHintText: !1,
181
+ initialHintText: !0,
182
182
  label: e.$t(
183
183
  "message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
184
184
  ),
185
185
  showEndIcon: !1,
186
186
  defaultInput: !0,
187
- showError: i.value[0].isValid == !1 && u.value[2].show,
188
- onDeleteButtonClicked: e.deleteModifiedField
189
- }, null, 8, ["modelValue", "label", "showError", "onDeleteButtonClicked"])) : T("", !0),
190
- i.value[0].isValid == !1 && u.value[2].show ? (b(), z("div", ie, [
191
- V(c(B), {
187
+ onDeleteButtonClicked: e.deleteModifiedField,
188
+ supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
189
+ }, null, 8, ["modelValue", "label", "onDeleteButtonClicked"])) : T("", !0),
190
+ i.value[0].isValid == !1 && c.value[2].show ? (b(), w("div", ie, [
191
+ V(u(B), {
192
192
  size: 16,
193
193
  weight: "fill"
194
194
  }),
195
- l("span", ae, o(u.value[2].message), 1)
195
+ l("span", ae, o(c.value[2].message), 1)
196
196
  ])) : T("", !0)
197
197
  ]),
198
198
  l("div", le, [
199
199
  l("div", ne, [
200
200
  l("div", oe, [
201
- V(c(R), {
201
+ V(u(R), {
202
202
  size: 32,
203
203
  color: "#009fe3"
204
204
  }),
@@ -227,12 +227,12 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
227
227
  k(o(e.$t(
228
228
  "message.dataupload.datasets.dct:license.advices.licenseName3"
229
229
  )) + " ", 1),
230
- l("span", he, o(e.$t(
230
+ l("span", ge, o(e.$t(
231
231
  "message.dataupload.datasets.dct:license.advices.licenseName3_desc"
232
232
  )), 1)
233
233
  ]),
234
- l("a", ge, [
235
- V(c(G), { size: 24 }),
234
+ l("a", he, [
235
+ V(u(G), { size: 24 }),
236
236
  k(" " + o(e.$t(
237
237
  "message.dataupload.datasets.dct:license.advices.linkToLicenses"
238
238
  )), 1)
@@ -243,8 +243,8 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
243
243
  ]),
244
244
  l("div", Ve, [
245
245
  t[4] || (t[4] = l("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1)),
246
- i.value.find((s) => s.isValid === !1) ? (b(), z("div", be, [
247
- V(c(B), {
246
+ i.value.find((s) => s.isValid === !1) ? (b(), w("div", be, [
247
+ V(u(B), {
248
248
  size: 16,
249
249
  weight: "fill"
250
250
  }),
@@ -253,7 +253,7 @@ const Y = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular
253
253
  ])
254
254
  ]));
255
255
  }
256
- }, De = /* @__PURE__ */ X(ye, [["__scopeId", "data-v-787ea982"]]);
256
+ }, De = /* @__PURE__ */ X(ye, [["__scopeId", "data-v-59209c92"]]);
257
257
  export {
258
258
  De as default
259
259
  };
@@ -133,17 +133,17 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
133
133
  title: "",
134
134
  "dcterms:license": ""
135
135
  }
136
- }, { formValues: b } = gt(), l = Te(
136
+ }, { formValues: x } = gt(), l = Te(
137
137
  () => te.value || P.inRap
138
- ).value ? nt((ye = b.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Ve]);
138
+ ).value ? nt((ye = x.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Ve]);
139
139
  l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
140
- const n = v({}), V = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), x = v([]), D = v([]), oe = v([]), O = v([]), se = v([]);
141
- v([...x.value]);
142
- const $ = v([...D.value]), Re = vt(), W = v(null);
140
+ const n = v({}), V = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), b = v([]), w = v([]), oe = v([]), O = v([]), se = v([]);
141
+ v([...b.value]);
142
+ const $ = v([...w.value]), Re = vt(), W = v(null);
143
143
  v(null);
144
144
  const j = v(!1), ie = v(!1), H = v(!1), le = v(!0);
145
145
  for (let a = 0; a < l.value.length; a++)
146
- if (((ke = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((xe = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
146
+ if (((ke = x.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((xe = x.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
147
147
  ie.value = !1;
148
148
  break;
149
149
  }
@@ -177,7 +177,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
177
177
  let t = !0;
178
178
  l.value = l.value.map((e) => {
179
179
  var d;
180
- const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((d = e["dct:format"]) == null ? void 0 : d.label) != null && e["dct:format"].label.trim() !== "" && x.value.some(
180
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((d = e["dct:format"]) == null ? void 0 : d.label) != null && e["dct:format"].label.trim() !== "" && w.value.some(
181
181
  (g) => g["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
182
182
  ), i = o && s;
183
183
  return i || (t = !1), a === e.id ? {
@@ -191,7 +191,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
191
191
  showErrorDownloadURL: !o,
192
192
  showErrorFormat: !s
193
193
  };
194
- }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), b.value.DistributionSimple["dcat:distribution"] = l.value;
194
+ }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), x.value.DistributionSimple["dcat:distribution"] = l.value;
195
195
  }
196
196
  function E(a, t) {
197
197
  var o, s, i;
@@ -200,7 +200,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
200
200
  e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
201
201
  else if (t === "dct:format") {
202
202
  const d = (i = a[t].label) == null ? void 0 : i.trim();
203
- e = d !== "" && D.value.some(
203
+ e = d !== "" && w.value.some(
204
204
  (g) => g["@value"].toLowerCase() === d.toLowerCase()
205
205
  ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, d === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
206
206
  }
@@ -220,7 +220,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
220
220
  ...t,
221
221
  isValid: s
222
222
  };
223
- }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, b.value.DistributionSimple["dcat:distribution"] = l.value;
223
+ }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, x.value.DistributionSimple["dcat:distribution"] = l.value;
224
224
  }
225
225
  function K(a) {
226
226
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
@@ -245,7 +245,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
245
245
  label: s.label
246
246
  }));
247
247
  const o = await kt(t.api.baseUrl);
248
- x.value = o.results.map((s) => ({
248
+ b.value = o.results.map((s) => ({
249
249
  "@value": s.pref_label.en,
250
250
  uri: s.resource,
251
251
  selected: !1
@@ -255,7 +255,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
255
255
  }
256
256
  try {
257
257
  const e = await xt(t.api.baseUrl);
258
- D.value = e.results.map((o) => ({
258
+ w.value = e.results.map((o) => ({
259
259
  "@value": o.pref_label.en,
260
260
  uri: o.resource,
261
261
  selected: !1
@@ -278,8 +278,8 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
278
278
  function Se(a, t) {
279
279
  const e = l.value.find((s) => s.id === t);
280
280
  if (!e) return;
281
- let o = D.value.find((s) => s["@value"] === a).uri || "";
282
- e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.value.DistributionSimple["dcat:distribution"] = l.value;
281
+ let o = w.value.find((s) => s["@value"] === a).uri || "";
282
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), x.value.DistributionSimple["dcat:distribution"] = l.value;
283
283
  }
284
284
  function ce(a, t) {
285
285
  const e = l.value.find((o) => o.id === t);
@@ -311,7 +311,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
311
311
  let i = de.value.find(
312
312
  (d) => d["@value"] === t
313
313
  );
314
- s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = i.uri, b.value.DistributionSimple["dct:license"] = [
314
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = i.uri, x.value.DistributionSimple["dct:license"] = [
315
315
  {
316
316
  title: a,
317
317
  "dcterms:license": t,
@@ -329,7 +329,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
329
329
  }
330
330
  function I(a, t, e) {
331
331
  const o = l.value.find((i) => i.id === e);
332
- let s = x.value.find((i) => i["@value"] === a).uri || "";
332
+ let s = b.value.find((i) => i["@value"] === a).uri || "";
333
333
  if (o)
334
334
  switch (o[t] = { label: a, uri: s }, t) {
335
335
  case "dcat:mediaType":
@@ -421,7 +421,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
421
421
  );
422
422
  }
423
423
  function Oe(a, t, e) {
424
- const o = b.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
424
+ const o = x.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
425
425
  o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
426
426
  }
427
427
  function We(a) {
@@ -614,7 +614,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
614
614
  ...s
615
615
  };
616
616
  else {
617
- const h = ((g = e == null ? void 0 : e.policyItems) == null ? void 0 : g.length) > 0 ? Math.max(...e.policyItems.map((w) => w.id)) + 1 : 1;
617
+ const h = ((g = e == null ? void 0 : e.policyItems) == null ? void 0 : g.length) > 0 ? Math.max(...e.policyItems.map((D) => D.id)) + 1 : 1;
618
618
  e.policyItems.push({
619
619
  id: s.id || h,
620
620
  "dcat:accessURL": s["dcat:accessURL"] || ""
@@ -725,15 +725,15 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
725
725
  } else if (t === "dct:format") {
726
726
  const h = typeof a == "string" ? a.trim() : (d = (i = a == null ? void 0 : a.target) == null ? void 0 : i.value) == null ? void 0 : d.trim();
727
727
  if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
728
- $.value = [...D.value];
728
+ $.value = [...w.value];
729
729
  else {
730
- const w = D.value.find(
730
+ const D = w.value.find(
731
731
  (T) => T["@value"].toLowerCase() === h.toLowerCase()
732
732
  );
733
- w ? (o[t] = {
734
- label: w["@value"],
735
- uri: w.uri
736
- }, 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."), $.value = D.value.filter(
733
+ D ? (o[t] = {
734
+ label: D["@value"],
735
+ uri: D.uri
736
+ }, 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."), $.value = w.value.filter(
737
737
  (T) => T["@value"].toLowerCase().includes(h.toLowerCase())
738
738
  );
739
739
  }
@@ -770,7 +770,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
770
770
  S.inRap ? p("", !0) : (r(), m("h4", Ot, B(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
771
771
  S.inRap ? p("", !0) : (r(), m("div", Wt, B(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
772
772
  (r(!0), m(Q, null, Ue(U(l), (e, o) => {
773
- var s, i, d, g, h, w, T, be, we, De, _e, Ie;
773
+ var s, i, d, g, h, D, T, be, we, De, _e, Ie;
774
774
  return r(), m("div", {
775
775
  key: e.id,
776
776
  class: "dpiV3AutoCompleteWrap"
@@ -869,7 +869,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
869
869
  f("div", Yt, [
870
870
  u(Ft, {
871
871
  documentations: e.documentations,
872
- "file-types": x.value,
872
+ "file-types": b.value,
873
873
  "distribution-id": e.id,
874
874
  "as-card": !0,
875
875
  "show-delete-button": !0,
@@ -1033,7 +1033,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1033
1033
  onUpdate: (c) => it(e.id, c)
1034
1034
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1035
1035
  ])) : p("", !0),
1036
- ((w = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : w["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ha, [
1036
+ ((D = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : D["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ha, [
1037
1037
  f("div", ga, [
1038
1038
  t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
1039
1039
  f("div", null, [
@@ -1071,7 +1071,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1071
1071
  e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", xa, [
1072
1072
  u(ee, {
1073
1073
  "distribution-id": e.id,
1074
- "file-types": x.value,
1074
+ "file-types": b.value,
1075
1075
  "file-format-type": "dcat:mediaType",
1076
1076
  "file-format-text": e["dcat:mediaType"].label,
1077
1077
  "show-delete-button": !0,
@@ -1082,7 +1082,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1082
1082
  e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", ba, [
1083
1083
  u(ee, {
1084
1084
  "distribution-id": e.id,
1085
- "file-types": x.value,
1085
+ "file-types": b.value,
1086
1086
  "file-format-type": "dcat:compressFormat",
1087
1087
  "compress-format-text": e["dcat:compressFormat"].label,
1088
1088
  "show-delete-button": !0,
@@ -1093,7 +1093,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1093
1093
  e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", wa, [
1094
1094
  u(ee, {
1095
1095
  "distribution-id": e.id,
1096
- "file-types": x.value,
1096
+ "file-types": b.value,
1097
1097
  "file-format-type": "dcat:packageFormat",
1098
1098
  "package-format-text": e["dcat:packageFormat"].label,
1099
1099
  "show-delete-button": !0,
@@ -1142,7 +1142,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1142
1142
  F.value ? (r(), X(Tt, {
1143
1143
  key: 0,
1144
1144
  "distibution-id": k.value,
1145
- "file-types": x.value,
1145
+ "file-types": b.value,
1146
1146
  buttons: n.value.button,
1147
1147
  "header-text": n.value.header,
1148
1148
  text: n.value.text,
@@ -1207,7 +1207,7 @@ const Nt = { class: "dpiV3InnerComponentWrap" }, Ot = { key: 0 }, Wt = {
1207
1207
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1208
1208
  ], 64));
1209
1209
  }
1210
- }, no = /* @__PURE__ */ Pt(Ua, [["__scopeId", "data-v-c3a67881"]]);
1210
+ }, no = /* @__PURE__ */ Pt(Ua, [["__scopeId", "data-v-ea72d447"]]);
1211
1211
  export {
1212
1212
  no as default
1213
1213
  };
@@ -24,7 +24,10 @@ const Le = { key: 0 }, Oe = {
24
24
  }, We = { class: "w-100" }, Ue = { class: "dpiV3_Frame_831" }, Ye = { key: 0 }, je = {
25
25
  key: 1,
26
26
  class: "dpiV3_Frame_840"
27
- }, Ke = { class: "dpiV3_title" }, Ge = { class: "dpiV3_intro copy-large-regular" }, Xe = {
27
+ }, Ke = {
28
+ class: "dpiV3_title",
29
+ style: { "margin-bottom": "32px" }
30
+ }, Ge = { class: "dpiV3_intro copy-large-regular" }, Xe = {
28
31
  key: 0,
29
32
  class: "dpiV3Card rapFindability"
30
33
  }, Ze = { class: "firstSec" }, qe = { class: "secondSec" }, Je = {
@@ -455,7 +458,7 @@ const Le = { key: 0 }, Oe = {
455
458
  ], 64);
456
459
  };
457
460
  }
458
- }, Ba = /* @__PURE__ */ Ne(da, [["__scopeId", "data-v-052e737d"]]);
461
+ }, Ba = /* @__PURE__ */ Ne(da, [["__scopeId", "data-v-40b06ec9"]]);
459
462
  export {
460
463
  Ba as default
461
464
  };