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

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