@piveau/dpi 0.1.0-beta.59 → 0.1.0-beta.60

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,87 +1,90 @@
1
- import { computed as f, ref as g, onMounted as Ve, resolveComponent as we, createElementBlock as i, openBlock as l, Fragment as S, createCommentVNode as c, createBlock as V, createElementVNode as a, unref as p, toDisplayString as s, createVNode as _, renderList as w, createTextVNode as P, withCtx as Te, isRef as ue } from "vue";
1
+ import { computed as f, ref as g, onMounted as ze, resolveComponent as Ee, createElementBlock as i, openBlock as l, Fragment as S, createCommentVNode as u, createBlock as V, createElementVNode as a, unref as p, toDisplayString as s, createVNode as _, renderList as w, createTextVNode as P, withCtx as Le, isRef as ye } from "vue";
2
2
  import "@formkit/core";
3
- import { useFormKitNodeById as Be } from "@formkit/vue";
3
+ import { useFormKitNodeById as Ne } from "@formkit/vue";
4
4
  import "@phosphor-icons/vue";
5
- import { useI18n as Me } from "vue-i18n";
5
+ import { useI18n as Fe } from "vue-i18n";
6
6
  import "vue-router";
7
- import { useStore as Re } from "vuex";
8
- import { useFormValues as He } from "../composables/useDpiFormValues.js";
7
+ import { useStore as Oe } from "vuex";
8
+ import { useFormValues as Ue } from "../composables/useDpiFormValues.js";
9
9
  import D from "../HappyFlowComponents/ui/ButtonV3.vue.js";
10
- import Pe from "../HappyFlowComponents/ui/Chip.vue.js";
11
- import pe from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
12
- import ze from "../HappyFlowComponents/ui/RapModal.vue.js";
13
- import ve from "../HappyFlowComponents/ui/StateTag.vue.js";
14
- import Ee from "../HappyFlowComponents/ui/TableRowV3.vue.js";
10
+ import We from "../HappyFlowComponents/ui/Chip.vue.js";
11
+ import me from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
12
+ import Ge from "../HappyFlowComponents/ui/RapModal.vue.js";
13
+ import be from "../HappyFlowComponents/ui/StateTag.vue.js";
14
+ import Ye from "../HappyFlowComponents/ui/TableRowV3.vue.js";
15
15
  import z from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
16
16
  /* empty css */
17
17
  /* empty css */
18
18
  /* empty css */
19
- import Ne from "../../_virtual/_plugin-vue_export-helper.js";
20
- import { useDpiContext as Fe } from "../composables/useDpiContext.js";
21
- const Le = { key: 0 }, Oe = {
19
+ import je from "../../_virtual/_plugin-vue_export-helper.js";
20
+ import { useDpiContext as Ke } from "../composables/useDpiContext.js";
21
+ const Xe = { key: 0 }, Ze = {
22
22
  key: 1,
23
23
  class: "dpiV3InnerComponentWrap V3-typography"
24
- }, We = { class: "w-100" }, Ue = { class: "dpiV3_Frame_831" }, Ye = { key: 0 }, je = {
24
+ }, qe = { class: "w-100" }, Je = { class: "dpiV3_Frame_831" }, Qe = { key: 0 }, Ie = {
25
25
  key: 1,
26
26
  class: "dpiV3_Frame_840"
27
- }, Ke = {
27
+ }, Ae = {
28
28
  class: "dpiV3_title",
29
29
  style: { "margin-bottom": "32px" }
30
- }, Ge = { class: "dpiV3_intro copy-large-regular" }, Xe = {
30
+ }, et = { class: "dpiV3_intro copy-large-regular" }, tt = {
31
31
  key: 0,
32
32
  class: "dpiV3Card rapFindability"
33
- }, Ze = { class: "firstSec" }, qe = { class: "secondSec" }, Je = {
33
+ }, at = { class: "firstSec" }, st = { class: "secondSec" }, ot = {
34
34
  class: "copy-large-regular",
35
35
  style: { "margin-bottom": "4px" }
36
- }, Qe = {
36
+ }, lt = {
37
37
  key: 0,
38
38
  class: "thirdSec"
39
- }, Ie = { class: "headline-5" }, Ae = {
39
+ }, it = { class: "headline-5" }, nt = {
40
40
  key: 1,
41
41
  class: "dpiV3Card rapEssentials"
42
- }, et = { class: "firstSec" }, tt = { class: "secondSec" }, at = { class: "heading-3" }, st = { class: "thirdSec" }, ot = { class: "fourthSec flexSec" }, lt = { class: "copy-large-regular" }, it = { class: "copy-large-semi-bold" }, nt = { class: "fifthSec flexSec" }, rt = { class: "copy-large-regular" }, dt = { class: "headline-5" }, ct = { class: "copy-large-regular" }, ut = ["href"], pt = { class: "sixthSec flexSec" }, vt = { class: "copy-large-regular" }, ft = { class: "headline-5" }, ht = { class: "copy-large-regular" }, _t = { class: "copy-large-regular" }, gt = { class: "dpiV3Card rapCoverage" }, yt = { class: "firstSec" }, mt = {
42
+ }, rt = { class: "firstSec" }, dt = { class: "secondSec" }, ct = { class: "heading-3" }, ut = { class: "thirdSec" }, pt = { class: "fourthSec flexSec" }, vt = { class: "copy-large-regular" }, ft = { class: "copy-large-semi-bold" }, ht = { class: "fifthSec flexSec" }, _t = { class: "copy-large-regular" }, gt = { class: "headline-5" }, yt = { class: "copy-large-regular" }, mt = ["href"], bt = { class: "sixthSec flexSec" }, St = { class: "copy-large-regular" }, kt = { class: "headline-5" }, Dt = { class: "copy-large-regular" }, Ct = { class: "copy-large-regular" }, $t = { class: "dpiV3Card rapCoverage" }, xt = { class: "firstSec" }, Vt = {
43
43
  key: 0,
44
44
  class: "secondSec flexSec"
45
- }, bt = { class: "rapHeadWrap" }, St = { class: "copy-large-regular" }, kt = { class: "coveragePlaceWrap" }, Dt = { class: "headline-5" }, Ct = {
45
+ }, wt = { class: "rapHeadWrap" }, Bt = { class: "copy-large-regular" }, Tt = { class: "coveragePlaceWrap" }, Mt = { class: "headline-5" }, Rt = {
46
46
  key: 1,
47
47
  class: "thirdSec"
48
- }, $t = { class: "rapHeadWrap" }, xt = { class: "copy-large-regular" }, Vt = { class: "dpiV3_RapInnerCardWrapper" }, wt = { class: "dpiV3_RapInnerCard" }, Tt = { class: "copy-small-regular" }, Bt = { key: 0 }, Mt = { class: "copy-small-regular" }, Rt = { key: 0 }, Ht = { class: "dpiV3Card rapDistribution" }, Pt = { class: "firstSec" }, zt = { class: "secondSec flexSec" }, Et = { class: "copy-large-regular" }, Nt = { class: "headline-5" }, Ft = { class: "thirdSec flexSec" }, Lt = { class: "copy-large-regular" }, Ot = { class: "headline-5" }, Wt = { class: "fourthSec flexSec" }, Ut = { class: "copy-large-regular" }, Yt = { class: "dpiV3_distCard" }, jt = { class: "copy-large-semi-bold" }, Kt = {
48
+ }, Ht = { class: "rapHeadWrap" }, Pt = { class: "copy-large-regular" }, zt = { class: "dpiV3_RapInnerCardWrapper" }, Et = { class: "dpiV3_RapInnerCard" }, Lt = { class: "copy-small-regular" }, Nt = { key: 0 }, Ft = { class: "copy-small-regular" }, Ot = { key: 0 }, Ut = { class: "dpiV3Card rapDistribution" }, Wt = { class: "firstSec" }, Gt = { class: "secondSec flexSec" }, Yt = { class: "copy-large-regular" }, jt = { class: "headline-5" }, Kt = {
49
+ key: 0,
50
+ class: "thirdSec flexSec"
51
+ }, Xt = { class: "copy-large-regular" }, Zt = { class: "headline-5" }, qt = { class: "fourthSec flexSec" }, Jt = { class: "copy-large-regular" }, Qt = { class: "dpiV3_distCard" }, It = ["href"], At = {
49
52
  key: 0,
50
53
  class: "dpiV3Card rapDistribution"
51
- }, Gt = { class: "firstSec" }, Xt = { class: "secondSec flexSec" }, Zt = { class: "dpiV3_optionalSpanHeadWrap" }, qt = { class: "dpiV3_optionalSpan copy-large-regular" }, Jt = { key: 0 }, Qt = { key: 0 }, It = { key: 1 }, At = { key: 2 }, ea = { key: 3 }, ta = { key: 4 }, aa = { key: 5 }, sa = { key: 6 }, oa = { key: 7 }, la = { key: 8 }, ia = { key: 9 }, na = { class: "dpiV3_tempAddMore" }, ra = {
54
+ }, ea = { class: "firstSec" }, ta = { class: "secondSec flexSec" }, aa = { class: "dpiV3_optionalSpanHeadWrap" }, sa = { class: "dpiV3_optionalSpan copy-large-regular" }, oa = { key: 0 }, la = { key: 0 }, ia = { key: 1 }, na = { key: 2 }, ra = { key: 3 }, da = { key: 4 }, ca = { key: 5 }, ua = { key: 6 }, pa = { key: 7 }, va = { key: 8 }, fa = { key: 9 }, ha = { class: "dpiV3_tempAddMore" }, _a = {
52
55
  key: 1,
53
56
  class: "dpiV3_tempAddMore"
54
- }, da = {
57
+ }, ga = {
55
58
  __name: "ReviewAndPublishPage",
56
59
  props: {
57
60
  context: Object
58
61
  },
59
- setup(fe) {
60
- const { t: E } = Me(), C = Fe();
62
+ setup(Se) {
63
+ const { t: E } = Fe(), C = Ke();
61
64
  f(() => {
62
65
  var e;
63
66
  return !!((e = C.value.edit) != null && e.enabled);
64
67
  });
65
- let he = g(
68
+ let ke = g(
66
69
  C.value.edit.enabled && !C.value.edit.fromDraft
67
70
  );
68
- const _e = () => {
69
- u.value.Covering["dcat:temporalResolution"] = {};
71
+ const De = () => {
72
+ d.value.Covering["dcat:temporalResolution"] = {};
70
73
  };
71
- g([{ isValid: !0 }]), g(!1), Re(), g(null);
74
+ g([{ isValid: !0 }]), g(!1), Oe(), g(null);
72
75
  let y = g(!1), m = g({});
73
- const N = g(!1), { formValues: u } = He();
74
- Be("dpiForm", (e) => {
75
- N.value = !0;
76
+ const L = g(!1), { formValues: d } = Ue();
77
+ Ne("dpiForm", (e) => {
78
+ L.value = !0;
76
79
  });
77
- function ge(e) {
78
- let t, r, d, v, $, x;
80
+ function Ce(e) {
81
+ let t, r, c, v, $, x;
79
82
  return e.forEach((h) => {
80
- h.Year && (t = Number.parseInt(h.Year)), h.Month && (r = Number.parseInt(h.Month) - 1), h.Day && (d = Number.parseInt(h.Day)), h.Hour && (v = Number.parseInt(h.Hour)), h.Minute && ($ = Number.parseInt(h.Minute)), h.Second && (x = Number.parseInt(h.Second));
83
+ h.Year && (t = Number.parseInt(h.Year)), h.Month && (r = Number.parseInt(h.Month) - 1), h.Day && (c = Number.parseInt(h.Day)), h.Hour && (v = Number.parseInt(h.Hour)), h.Minute && ($ = Number.parseInt(h.Minute)), h.Second && (x = Number.parseInt(h.Second));
81
84
  }), new Date(
82
85
  t || 2025,
83
86
  r || 0,
84
- d || 1,
87
+ c || 1,
85
88
  v || 0,
86
89
  $ || 0,
87
90
  x || 0
@@ -90,85 +93,87 @@ const Le = { key: 0 }, Oe = {
90
93
  timeZoneName: "short"
91
94
  });
92
95
  }
93
- const F = g(), M = g(!1);
94
- function L(e) {
96
+ const N = g(), M = g(!1);
97
+ function F(e) {
95
98
  return !(Object.keys(e).includes("isValid") && Object.keys(e).length === 1);
96
99
  }
97
- const ye = f(() => {
100
+ const $e = f(() => {
98
101
  var t, r;
99
- const e = (r = (t = u.value) == null ? void 0 : t.Discoverability) == null ? void 0 : r.discoverabilityPage;
100
- return Array.isArray(e) ? (e == null ? void 0 : e.filter(L)) || [] : [];
102
+ const e = (r = (t = d.value) == null ? void 0 : t.Discoverability) == null ? void 0 : r.discoverabilityPage;
103
+ return Array.isArray(e) ? (e == null ? void 0 : e.filter(F)) || [] : [];
101
104
  }), O = f(() => {
102
105
  var e, t;
103
- return ((t = (e = u.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
104
- }), me = f(() => {
105
- var r, d;
106
- const e = (d = (r = u.value) == null ? void 0 : r.BasicInfos) == null ? void 0 : d["dct:title"], t = e == null ? void 0 : e.find((v) => v["@language"] === "de");
106
+ return ((t = (e = d.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
107
+ }), xe = f(() => {
108
+ var r, c;
109
+ const e = (c = (r = d.value) == null ? void 0 : r.BasicInfos) == null ? void 0 : c["dct:title"], t = e == null ? void 0 : e.find((v) => v["@language"] === "de");
107
110
  return t ? t["@value"] : null;
108
- }), be = f(() => {
109
- var e, t, r, d;
110
- return ((d = (r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : r[0]) == null ? void 0 : d["@value"]) || "";
111
- }), W = f(() => {
112
- var t, r, d, v;
113
- const e = (v = (d = (r = (t = u.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : r["dct:modified"]) == null ? void 0 : d[0]) == null ? void 0 : v["@value"];
111
+ }), Ve = f(() => {
112
+ var e, t, r, c;
113
+ return ((c = (r = (t = (e = d.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : r[0]) == null ? void 0 : c["@value"]) || "";
114
+ }), U = f(() => {
115
+ var t, r, c, v;
116
+ const e = (v = (c = (r = (t = d.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : r["dct:modified"]) == null ? void 0 : c[0]) == null ? void 0 : v["@value"];
114
117
  return e ? new Date(e).toLocaleDateString("de-DE", {
115
118
  day: "2-digit",
116
119
  month: "2-digit",
117
120
  year: "numeric"
118
121
  }) : "";
119
- }), T = f(() => {
122
+ }), B = f(() => {
120
123
  var e, t, r;
121
- return ((r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:publisher"]) == null ? void 0 : r[0]) || {};
124
+ return ((r = (t = (e = d.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:publisher"]) == null ? void 0 : r[0]) || {};
122
125
  }), R = f(() => {
123
126
  var e, t, r;
124
- return ((r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dcat:contactPoint"]) == null ? void 0 : r[0]) || {};
127
+ return ((r = (t = (e = d.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dcat:contactPoint"]) == null ? void 0 : r[0]) || {};
125
128
  }), H = f(() => {
126
- var e, t, r, d;
127
- return ((d = (r = (t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcatde:politicalGeocodingURI"]) == null ? void 0 : r.filter(
128
- L
129
- )) == null ? void 0 : d[0]) || {};
130
- }), B = f(() => {
129
+ var e, t, r, c;
130
+ return ((c = (r = (t = (e = d.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcatde:politicalGeocodingURI"]) == null ? void 0 : r.filter(
131
+ F
132
+ )) == null ? void 0 : c[0]) || {};
133
+ }), T = f(() => {
131
134
  var e, t;
132
- return ((t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcat:temporalResolution"]) || {};
133
- }), Se = f(() => Object.keys(H.value).length > 1), ke = f(() => {
135
+ return ((t = (e = d.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcat:temporalResolution"]) || {};
136
+ }), we = () => {
137
+ d.value.Covering["dcatde:politicalGeocodingURI"] = [{ isValid: !0 }];
138
+ }, Be = f(() => Object.keys(H.value).length > 1), Te = f(() => {
134
139
  var e;
135
- return ((e = B.value["dct:temporal"]) == null ? void 0 : e.length) > 0 && B.value["dct:temporal"][0]["dcat:startDate"] != "" && B.value["dct:temporal"][0]["dcat:endDate"] != "";
140
+ return ((e = T.value["dct:temporal"]) == null ? void 0 : e.length) > 0 && T.value["dct:temporal"][0]["dcat:startDate"] != "" && T.value["dct:temporal"][0]["dcat:endDate"] != "";
136
141
  });
137
- let U = g();
138
- U = f(() => {
139
- var e, t, r, d, v;
140
- return ((v = (d = (r = (t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) == null ? void 0 : r[0]) == null ? void 0 : d["dct:license"]) == null ? void 0 : v[0]) || {};
142
+ let W = g();
143
+ W = f(() => {
144
+ var e, t, r, c, v;
145
+ return ((v = (c = (r = (t = (e = d.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) == null ? void 0 : r[0]) == null ? void 0 : c["dct:license"]) == null ? void 0 : v[0]) || {};
141
146
  });
142
- const De = f(() => {
147
+ const Me = f(() => {
143
148
  var e, t;
144
- return ((t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) || [];
149
+ return ((t = (e = d.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) || [];
145
150
  }), b = f(() => {
146
151
  var e;
147
- return ((e = u.value) == null ? void 0 : e.Additionals) || {};
148
- }), Y = f(() => (Object.keys(b.value).forEach((e) => {
152
+ return ((e = d.value) == null ? void 0 : e.Additionals) || {};
153
+ }), G = f(() => (Object.keys(b.value).forEach((e) => {
149
154
  if (b.value.hasOwnProperty(e)) {
150
155
  const t = b.value[e];
151
156
  (t === void 0 || Array.isArray(t) && t.length === 0) && delete b.value[e];
152
157
  }
153
- }), Object.keys(b.value))), Ce = (e) => {
158
+ }), Object.keys(b.value))), Re = (e) => {
154
159
  const t = e.split("-");
155
160
  if (t.length !== 3)
156
161
  throw new Error("Ungültiges Format, erwartet YYYY-MM-DD");
157
- let [r, d, v] = t;
158
- if (v = v.padStart(2, "0"), d = d.padStart(2, "0"), !/^\d{4}$/.test(r) || !/^\d{2}$/.test(d) || !/^\d{2}$/.test(v))
162
+ let [r, c, v] = t;
163
+ if (v = v.padStart(2, "0"), c = c.padStart(2, "0"), !/^\d{4}$/.test(r) || !/^\d{2}$/.test(c) || !/^\d{2}$/.test(v))
159
164
  throw new Error("Ungültige Datenteile");
160
- return `${v}.${d}.${r}`;
161
- }, j = f(() => Y.value.length > 0);
165
+ return `${v}.${c}.${r}`;
166
+ }, Y = f(() => G.value.length > 0);
162
167
  function k(e) {
163
- F.value = e, M.value = !0, document.body.style.overflow = "hidden";
168
+ N.value = e, M.value = !0, document.body.style.overflow = "hidden";
164
169
  }
165
- function $e() {
170
+ function He() {
166
171
  document.body.style.overflow = "", M.value = !1;
167
172
  }
168
- function K(e) {
169
- delete u.value.Additionals[e];
173
+ function j(e) {
174
+ delete d.value.Additionals[e];
170
175
  }
171
- function xe(e, t) {
176
+ function Pe(e, t) {
172
177
  y.value = !0, m.value = {
173
178
  button: "Löschen",
174
179
  header: `${E(`message.dataupload.additionals.${e}`)} löschen`,
@@ -178,43 +183,43 @@ const Le = { key: 0 }, Oe = {
178
183
  action: e
179
184
  };
180
185
  }
181
- const G = g(!1);
182
- return Ve(() => {
183
- G.value = !0;
186
+ const K = g(!1);
187
+ return ze(() => {
188
+ K.value = !0;
184
189
  }), (e, t) => {
185
- var d, v, $, x, h, X, Z, q, J, Q, I, A, ee, te, ae, se, oe, le, ie, ne, re, de, ce;
186
- const r = we("formatbubble");
190
+ var c, v, $, x, h, X, Z, q, J, Q, I, A, ee, te, ae, se, oe, le, ie, ne, re, de, ce, ue, pe, ve, fe, he, _e, ge;
191
+ const r = Ee("formatbubble");
187
192
  return l(), i(S, null, [
188
- G.value && N.value ? (l(), i("div", Le, [
189
- M.value ? (l(), V(ze, {
193
+ K.value && L.value ? (l(), i("div", Xe, [
194
+ M.value ? (l(), V(Ge, {
190
195
  key: 0,
191
- context: fe.context,
192
- "active-section": F.value,
193
- onClose: $e
194
- }, null, 8, ["context", "active-section"])) : c("", !0),
195
- (l(), i("div", Oe, [
196
- a("div", We, [
197
- a("div", Ue, [
198
- p(C).edit.fromDraft || p(C).edit.enabled ? (l(), i("div", Ye, [
199
- (l(), V(Ee, {
200
- id: (v = (d = p(u).value) == null ? void 0 : d.BasicInfos) == null ? void 0 : v.datasetID,
201
- key: (x = ($ = p(u).value) == null ? void 0 : $.BasicInfos) == null ? void 0 : x.datasetID,
202
- "data-cy": p(u).value,
196
+ context: Se.context,
197
+ "active-section": N.value,
198
+ onClose: He
199
+ }, null, 8, ["context", "active-section"])) : u("", !0),
200
+ (l(), i("div", Ze, [
201
+ a("div", qe, [
202
+ a("div", Je, [
203
+ p(C).edit.fromDraft || p(C).edit.enabled ? (l(), i("div", Qe, [
204
+ (l(), V(Ye, {
205
+ id: (v = (c = p(d).value) == null ? void 0 : c.BasicInfos) == null ? void 0 : v.datasetID,
206
+ key: (x = ($ = p(d).value) == null ? void 0 : $.BasicInfos) == null ? void 0 : x.datasetID,
207
+ "data-cy": p(d).value,
203
208
  catalogue: "test-catalog",
204
- text: ((X = (h = p(u).value) == null ? void 0 : h.BasicInfos) == null ? void 0 : X.title.de) || ((q = (Z = p(u).value) == null ? void 0 : Z.BasicInfos) == null ? void 0 : q.title.en),
205
- date: W.value,
206
- draft: !p(he),
209
+ text: ((X = (h = p(d).value) == null ? void 0 : h.BasicInfos) == null ? void 0 : X.title.de) || ((q = (Z = p(d).value) == null ? void 0 : Z.BasicInfos) == null ? void 0 : q.title.en),
210
+ date: U.value,
211
+ draft: !p(ke),
207
212
  dataset: e.dataset,
208
213
  "from-draft": "true"
209
214
  }, null, 8, ["id", "data-cy", "text", "date", "draft", "dataset"]))
210
- ])) : (l(), i("div", je, [
211
- a("h4", Ke, s(e.$t("message.dataupload.datasets.rap.title")), 1),
212
- a("div", Ge, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
215
+ ])) : (l(), i("div", Ie, [
216
+ a("h4", Ae, s(e.$t("message.dataupload.datasets.rap.title")), 1),
217
+ a("div", et, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
213
218
  ]))
214
219
  ])
215
220
  ]),
216
- (l(), i("div", Xe, [
217
- a("div", Ze, [
221
+ (l(), i("div", tt, [
222
+ a("div", at, [
218
223
  a("span", null, s(e.$t("message.dataupload.datasets.rap.findability.title")), 1),
219
224
  _(D, {
220
225
  size: "large",
@@ -223,9 +228,9 @@ const Le = { key: 0 }, Oe = {
223
228
  onClick: t[0] || (t[0] = (n) => k("findabilityHvd"))
224
229
  })
225
230
  ]),
226
- a("div", qe, [
227
- a("span", Je, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
228
- (l(!0), i(S, null, w(ye.value, (n, o) => (l(), V(Pe, {
231
+ a("div", st, [
232
+ a("span", ot, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
233
+ (l(!0), i(S, null, w($e.value, (n, o) => (l(), V(We, {
229
234
  key: o,
230
235
  text: n.label,
231
236
  data: { "@value": n.value, URI: n.URI },
@@ -236,17 +241,17 @@ const Le = { key: 0 }, Oe = {
236
241
  }
237
242
  }, null, 8, ["text", "data"]))), 128))
238
243
  ]),
239
- (Q = (J = O.value) == null ? void 0 : J[0]) != null && Q.label ? (l(), i("div", Qe, [
240
- _(ve, {
244
+ (Q = (J = O.value) == null ? void 0 : J[0]) != null && Q.label ? (l(), i("div", lt, [
245
+ _(be, {
241
246
  label: "HVD",
242
247
  state: "hvd",
243
248
  size: "page"
244
249
  }),
245
- a("h5", Ie, s((A = (I = O.value) == null ? void 0 : I[0]) == null ? void 0 : A.label), 1)
246
- ])) : c("", !0)
250
+ a("h5", it, s((A = (I = O.value) == null ? void 0 : I[0]) == null ? void 0 : A.label), 1)
251
+ ])) : u("", !0)
247
252
  ])),
248
- (l(), i("div", Ae, [
249
- a("div", et, [
253
+ (l(), i("div", nt, [
254
+ a("div", rt, [
250
255
  a("span", null, s(e.$t("message.dataupload.datasets.rap.essentials.title")), 1),
251
256
  _(D, {
252
257
  size: "large",
@@ -255,35 +260,35 @@ const Le = { key: 0 }, Oe = {
255
260
  onClick: t[1] || (t[1] = (n) => k("essentials"))
256
261
  })
257
262
  ]),
258
- a("div", tt, [
259
- a("h3", at, s(me.value), 1)
263
+ a("div", dt, [
264
+ a("h3", ct, s(xe.value), 1)
260
265
  ]),
261
- a("div", st, [
262
- a("span", null, s(be.value), 1)
266
+ a("div", ut, [
267
+ a("span", null, s(Ve.value), 1)
263
268
  ]),
264
- a("div", ot, [
265
- a("span", lt, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
266
- a("span", it, s(W.value), 1)
269
+ a("div", pt, [
270
+ a("span", vt, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
271
+ a("span", ft, s(U.value), 1)
267
272
  ]),
268
- a("div", nt, [
269
- a("span", rt, s(e.$t("message.dataupload.datasets.rap.essentials.publisherHeader")), 1),
270
- a("h5", dt, s(T.value["foaf:name"] || ""), 1),
271
- a("a", ct, s(T.value["foaf:mbox"] || ""), 1),
273
+ a("div", ht, [
274
+ a("span", _t, s(e.$t("message.dataupload.datasets.rap.essentials.publisherHeader")), 1),
275
+ a("h5", gt, s(B.value["foaf:name"] || ""), 1),
276
+ a("a", yt, s(B.value["foaf:mbox"] || ""), 1),
272
277
  a("a", {
273
278
  class: "copy-large-regular",
274
- href: T.value["foaf:homepage"] || ""
275
- }, s(T.value["foaf:homepage"] || ""), 9, ut)
279
+ href: B.value["foaf:homepage"] || ""
280
+ }, s(B.value["foaf:homepage"] || ""), 9, mt)
276
281
  ]),
277
- a("div", pt, [
278
- a("span", vt, s(e.$t("message.dataupload.datasets.rap.essentials.contactHeader")), 1),
279
- a("h5", ft, s(R.value["vcard:fn"] || ""), 1),
280
- a("a", ht, s(R.value["vcard:hasEmail"] || ""), 1),
281
- a("span", _t, s(R.value["vcard:hasTelephone"] || ""), 1)
282
+ a("div", bt, [
283
+ a("span", St, s(e.$t("message.dataupload.datasets.rap.essentials.contactHeader")), 1),
284
+ a("h5", kt, s(R.value["vcard:fn"] || ""), 1),
285
+ a("a", Dt, s(R.value["vcard:hasEmail"] || ""), 1),
286
+ a("span", Ct, s(R.value["vcard:hasTelephone"] || ""), 1)
282
287
  ])
283
288
  ])),
284
289
  (l(), i(S, { key: 2 }, [
285
- a("div", gt, [
286
- a("div", yt, [
290
+ a("div", $t, [
291
+ a("div", xt, [
287
292
  a("span", null, s(e.$t("message.dataupload.datasets.rap.coverage.title")), 1),
288
293
  _(D, {
289
294
  size: "large",
@@ -292,32 +297,35 @@ const Le = { key: 0 }, Oe = {
292
297
  onClick: t[2] || (t[2] = (n) => k("coverage"))
293
298
  })
294
299
  ]),
295
- Se.value ? (l(), i("div", mt, [
296
- a("div", bt, [
297
- a("span", St, s(e.$t("message.dataupload.datasets.rap.coverage.geopolTitle")), 1),
298
- _(z, { "button-text": "löschen" })
300
+ Be.value ? (l(), i("div", Vt, [
301
+ a("div", wt, [
302
+ a("span", Bt, s(e.$t("message.dataupload.datasets.rap.coverage.geopolTitle")), 1),
303
+ _(z, {
304
+ "button-text": "löschen",
305
+ onClick: we
306
+ })
299
307
  ]),
300
- a("div", kt, [
301
- a("h5", Dt, s(H.value.label || ""), 1),
302
- _(ve, {
308
+ a("div", Tt, [
309
+ a("h5", Mt, s(H.value.label || ""), 1),
310
+ _(be, {
303
311
  label: ((ee = H.value.inVoc) == null ? void 0 : ee.toUpperCase()) || "",
304
312
  state: "geopolitical",
305
313
  size: "page"
306
314
  }, null, 8, ["label"])
307
315
  ])
308
- ])) : c("", !0),
309
- ke.value ? (l(), i("div", Ct, [
310
- a("div", $t, [
311
- a("span", xt, s(e.$t("message.dataupload.datasets.rap.coverage.tempCoverage")), 1),
316
+ ])) : u("", !0),
317
+ Te.value ? (l(), i("div", Rt, [
318
+ a("div", Ht, [
319
+ a("span", Pt, s(e.$t("message.dataupload.datasets.rap.coverage.tempCoverage")), 1),
312
320
  _(z, {
313
321
  "button-text": "löschen",
314
- onClick: _e
322
+ onClick: De
315
323
  })
316
324
  ]),
317
- a("div", Vt, [
318
- (l(!0), i(S, null, w(B.value["dct:temporal"] || [], (n) => (l(), i("div", wt, [
319
- a("div", Tt, [
320
- t[10] || (t[10] = P(" von: ", -1)),
325
+ a("div", zt, [
326
+ (l(!0), i(S, null, w(T.value["dct:temporal"] || [], (n) => (l(), i("div", Et, [
327
+ a("div", Lt, [
328
+ t[10] || (t[10] = P(" von ", -1)),
321
329
  a("div", null, [
322
330
  a("span", null, s(new Date(n["dcat:startDate"]).toLocaleDateString(
323
331
  "de-DE",
@@ -327,11 +335,11 @@ const Le = { key: 0 }, Oe = {
327
335
  year: "numeric"
328
336
  }
329
337
  )), 1),
330
- n.startTime != null ? (l(), i("span", Bt, s(n.startTime), 1)) : c("", !0)
338
+ n.startTime != null ? (l(), i("span", Nt, s(n.startTime), 1)) : u("", !0)
331
339
  ])
332
340
  ]),
333
- a("div", Mt, [
334
- t[11] || (t[11] = P(" bis: ", -1)),
341
+ a("div", Ft, [
342
+ t[11] || (t[11] = P(" bis ", -1)),
335
343
  a("div", null, [
336
344
  a("span", null, s(new Date(n["dcat:endDate"]).toLocaleDateString(
337
345
  "de-DE",
@@ -341,15 +349,15 @@ const Le = { key: 0 }, Oe = {
341
349
  year: "numeric"
342
350
  }
343
351
  )), 1),
344
- n.endTime != null ? (l(), i("span", Rt, s(n.endTime), 1)) : c("", !0)
352
+ n.endTime != null ? (l(), i("span", Ot, s(n.endTime), 1)) : u("", !0)
345
353
  ])
346
354
  ])
347
355
  ]))), 256))
348
356
  ])
349
- ])) : c("", !0)
357
+ ])) : u("", !0)
350
358
  ]),
351
- a("div", Ht, [
352
- a("div", Pt, [
359
+ a("div", Ut, [
360
+ a("div", Wt, [
353
361
  a("span", null, s(e.$t("message.metadata.distributions")), 1),
354
362
  _(D, {
355
363
  size: "large",
@@ -358,22 +366,26 @@ const Le = { key: 0 }, Oe = {
358
366
  onClick: t[3] || (t[3] = (n) => k("distributions"))
359
367
  })
360
368
  ]),
361
- a("div", zt, [
362
- a("span", Et, s(e.$t("message.dataupload.steps.dct:license")), 1),
363
- a("h5", Nt, s(p(U)["dcterms:license"] || ((se = (ae = (te = p(u).DistributionSimple) == null ? void 0 : te["dct:license"]) == null ? void 0 : ae[0]) == null ? void 0 : se["dcterms:license"]) || "Keine Lizenz angegeben"), 1)
369
+ a("div", Gt, [
370
+ a("span", Yt, s(e.$t("message.dataupload.steps.dct:license")), 1),
371
+ a("h5", jt, s(p(W)["dcterms:license"] || ((se = (ae = (te = p(d).DistributionSimple) == null ? void 0 : te["dct:license"]) == null ? void 0 : ae[0]) == null ? void 0 : se["dcterms:license"]) || "Keine Lizenz angegeben"), 1)
364
372
  ]),
365
- a("div", Ft, [
366
- a("span", Lt, s(e.$t(
373
+ (ie = (le = (oe = p(d).DistributionSimple) == null ? void 0 : oe["dct:license"]) == null ? void 0 : le[0]) != null && ie.title || (ce = (de = (re = (ne = p(d)) == null ? void 0 : ne.DistributionSimple) == null ? void 0 : re["dcat:distribution"]) == null ? void 0 : de[0]) != null && ce["dcatde:licenseAttributionByText"] ? (l(), i("div", Kt, [
374
+ a("span", Xt, s(e.$t(
367
375
  "message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
368
376
  )), 1),
369
- a("h5", Ot, s(((ie = (le = (oe = p(u).DistributionSimple) == null ? void 0 : oe["dct:license"]) == null ? void 0 : le[0]) == null ? void 0 : ie.title) || ((ce = (de = (re = (ne = p(u)) == null ? void 0 : ne.DistributionSimple) == null ? void 0 : re["dcat:distribution"]) == null ? void 0 : de[0]) == null ? void 0 : ce["dcatde:licenseAttributionByText"]) || "Kein Titel angegeben"), 1)
370
- ]),
371
- a("div", Wt, [
372
- a("span", Ut, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
373
- (l(!0), i(S, null, w(De.value, (n) => (l(), i("div", Yt, [
374
- a("span", jt, s(n["dct:title"]), 1),
377
+ a("h5", Zt, s(((ve = (pe = (ue = p(d).DistributionSimple) == null ? void 0 : ue["dct:license"]) == null ? void 0 : pe[0]) == null ? void 0 : ve.title) || ((ge = (_e = (he = (fe = p(d)) == null ? void 0 : fe.DistributionSimple) == null ? void 0 : he["dcat:distribution"]) == null ? void 0 : _e[0]) == null ? void 0 : ge["dcatde:licenseAttributionByText"])), 1)
378
+ ])) : u("", !0),
379
+ a("div", qt, [
380
+ a("span", Jt, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
381
+ (l(!0), i(S, null, w(Me.value, (n) => (l(), i("div", Qt, [
382
+ a("a", {
383
+ class: "copy-large-semi-bold",
384
+ href: n["dcat:accessURL"],
385
+ target: "_blank"
386
+ }, s(n["dct:title"] || n["dcat:accessURL"]), 9, It),
375
387
  _(r, null, {
376
- default: Te(() => {
388
+ default: Le(() => {
377
389
  var o;
378
390
  return [
379
391
  P(s(((o = n["dct:format"]) == null ? void 0 : o.label) || "Kein Format angegeben"), 1)
@@ -384,38 +396,38 @@ const Le = { key: 0 }, Oe = {
384
396
  ]))), 256))
385
397
  ])
386
398
  ]),
387
- j.value ? (l(), i("div", Kt, [
388
- a("div", Gt, [
399
+ Y.value ? (l(), i("div", At, [
400
+ a("div", ea, [
389
401
  a("span", null, s(e.$t("message.metadata.additionals")), 1)
390
402
  ]),
391
- (l(!0), i(S, null, w(Y.value, (n) => (l(), i("div", Xt, [
392
- a("div", Zt, [
393
- a("span", qt, s(e.$t(`message.dataupload.additionals.${n}`)) + " (optional)", 1),
403
+ (l(!0), i(S, null, w(G.value, (n) => (l(), i("div", ta, [
404
+ a("div", aa, [
405
+ a("span", sa, s(e.$t(`message.dataupload.additionals.${n}`)) + " (optional)", 1),
394
406
  _(z, {
395
407
  "button-text": "löschen",
396
- onClick: (o) => xe(n)
408
+ onClick: (o) => Pe(n)
397
409
  }, null, 8, ["onClick"])
398
410
  ]),
399
- n === "dcat:temporalResolution" ? (l(), i("div", Jt, [
400
- a("span", null, s(ge(b.value[n] || [])), 1)
401
- ])) : c("", !0),
411
+ n === "dcat:temporalResolution" ? (l(), i("div", oa, [
412
+ a("span", null, s(Ce(b.value[n] || [])), 1)
413
+ ])) : u("", !0),
402
414
  n != "dcat:temporalResolution" ? (l(!0), i(S, { key: 1 }, w(b.value[n] || [], (o) => (l(), i("div", {
403
415
  class: "additionalSubPropsWrapper",
404
416
  key: o ? o["@id"] || o["@value"] || o["rdfs:label"] : null
405
417
  }, [
406
- o && o["rdf:type"] ? (l(), i("span", Qt, s(o["rdf:type"]), 1)) : c("", !0),
407
- o && o["@type"] === "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", It, s(Ce(o["@value"])), 1)) : c("", !0),
408
- o && o["@value"] && o["@type"] !== "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", At, s(o["@value"]), 1)) : c("", !0),
409
- o && o["dct:title"] ? (l(), i("span", ea, s(o["dct:title"]), 1)) : c("", !0),
410
- o && o["dct:description"] ? (l(), i("span", ta, s(o["dct:description"]), 1)) : c("", !0),
411
- o && o["@id"] ? (l(), i("span", aa, s(o["@id"]), 1)) : c("", !0),
412
- o && o["rdfs:label"] ? (l(), i("span", sa, s(o["rdfs:label"]), 1)) : c("", !0),
413
- o && o["foaf:name"] ? (l(), i("span", oa, s(o["foaf:name"]), 1)) : c("", !0),
414
- o && o["foaf:homepage"] ? (l(), i("span", la, s(o["foaf:homepage"]), 1)) : c("", !0),
415
- o && o["foaf:mbox"] ? (l(), i("span", ia, s(o["foaf:mbox"]), 1)) : c("", !0)
416
- ]))), 128)) : c("", !0)
418
+ o && o["rdf:type"] ? (l(), i("span", la, s(o["rdf:type"]), 1)) : u("", !0),
419
+ o && o["@type"] === "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", ia, s(Re(o["@value"])), 1)) : u("", !0),
420
+ o && o["@value"] && o["@type"] !== "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", na, s(o["@value"]), 1)) : u("", !0),
421
+ o && o["dct:title"] ? (l(), i("span", ra, s(o["dct:title"]), 1)) : u("", !0),
422
+ o && o["dct:description"] ? (l(), i("span", da, s(o["dct:description"]), 1)) : u("", !0),
423
+ o && o["@id"] ? (l(), i("span", ca, s(o["@id"]), 1)) : u("", !0),
424
+ o && o["rdfs:label"] ? (l(), i("span", ua, s(o["rdfs:label"]), 1)) : u("", !0),
425
+ o && o["foaf:name"] ? (l(), i("span", pa, s(o["foaf:name"]), 1)) : u("", !0),
426
+ o && o["foaf:homepage"] ? (l(), i("span", va, s(o["foaf:homepage"]), 1)) : u("", !0),
427
+ o && o["foaf:mbox"] ? (l(), i("span", fa, s(o["foaf:mbox"]), 1)) : u("", !0)
428
+ ]))), 128)) : u("", !0)
417
429
  ]))), 256)),
418
- a("div", na, [
430
+ a("div", ha, [
419
431
  _(D, {
420
432
  "button-text": "Optionale Informationen hinzufügen",
421
433
  size: "large",
@@ -424,8 +436,8 @@ const Le = { key: 0 }, Oe = {
424
436
  onClick: t[4] || (t[4] = (n) => k("additionals"))
425
437
  })
426
438
  ])
427
- ])) : c("", !0),
428
- j.value ? c("", !0) : (l(), i("div", ra, [
439
+ ])) : u("", !0),
440
+ Y.value ? u("", !0) : (l(), i("div", _a, [
429
441
  _(D, {
430
442
  "button-text": "Optionale Informationen hinzufügen",
431
443
  size: "large",
@@ -436,29 +448,29 @@ const Le = { key: 0 }, Oe = {
436
448
  ]))
437
449
  ], 64))
438
450
  ])),
439
- p(y) ? (l(), V(pe, {
451
+ p(y) ? (l(), V(me, {
440
452
  key: 2,
441
453
  buttons: p(m).button,
442
454
  "header-text": p(m).header,
443
455
  text: p(m).text,
444
456
  action: p(m).action,
445
- onClose: t[6] || (t[6] = (n) => ue(y) ? y.value = !1 : y = !1),
446
- onActionHandling: t[7] || (t[7] = (n) => K(n))
447
- }, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
448
- ])) : c("", !0),
449
- p(y) ? (l(), V(pe, {
457
+ onClose: t[6] || (t[6] = (n) => ye(y) ? y.value = !1 : y = !1),
458
+ onActionHandling: t[7] || (t[7] = (n) => j(n))
459
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0)
460
+ ])) : u("", !0),
461
+ p(y) ? (l(), V(me, {
450
462
  key: 1,
451
463
  buttons: p(m).button,
452
464
  "header-text": p(m).header,
453
465
  text: p(m).text,
454
466
  action: p(m).action,
455
- onClose: t[8] || (t[8] = (n) => ue(y) ? y.value = !1 : y = !1),
456
- onActionHandling: t[9] || (t[9] = (n) => K(n))
457
- }, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
467
+ onClose: t[8] || (t[8] = (n) => ye(y) ? y.value = !1 : y = !1),
468
+ onActionHandling: t[9] || (t[9] = (n) => j(n))
469
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0)
458
470
  ], 64);
459
471
  };
460
472
  }
461
- }, Ba = /* @__PURE__ */ Ne(da, [["__scopeId", "data-v-40b06ec9"]]);
473
+ }, Na = /* @__PURE__ */ je(ga, [["__scopeId", "data-v-52ae5c56"]]);
462
474
  export {
463
- Ba as default
475
+ Na as default
464
476
  };