@piveau/dpi 0.2.0-alpha.61 → 0.2.0-alpha.63

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,46 +1,46 @@
1
- import { ref as m, computed as T, unref as v, watch as x, createElementBlock as r, openBlock as d, createElementVNode as s, createCommentVNode as g, toDisplayString as c, createVNode as u, Fragment as D, renderList as S } from "vue";
1
+ import { ref as m, computed as P, unref as f, watch as M, createElementBlock as r, openBlock as c, createElementVNode as s, createCommentVNode as g, toDisplayString as d, createVNode as u, Fragment as C, renderList as z } from "vue";
2
2
  import { PhWarning as _ } from "@phosphor-icons/vue";
3
- import { useEditModeInfo as q } from "../composables/useDpiEditMode.js";
4
- import { useFormValues as G } from "../composables/useDpiFormValues.js";
5
- import { useOrganizationInfo as H } from "../composables/useOrganizationInfo.js";
6
- import { useTwinbyUser as J } from "../composables/useTwinbyUser.js";
7
- import V from "../HappyFlowComponents/ui/InputField.vue.js";
8
- import F from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
3
+ import { useEditModeInfo as x } from "../composables/useDpiEditMode.js";
4
+ import { useFormValues as q } from "../composables/useDpiFormValues.js";
5
+ import { useOrganizationInfo as G } from "../composables/useOrganizationInfo.js";
6
+ import { useTwinbyUser as H } from "../composables/useTwinbyUser.js";
7
+ import T from "../HappyFlowComponents/ui/InputField.vue.js";
8
+ import D from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
9
9
  /* empty css */
10
- import Q from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
- const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular" }, Z = { class: "dpiV3AutoCompleteWrap" }, ee = { class: "CardTips_internal" }, ae = { class: "CardTips_Part" }, te = { class: "firstRow" }, se = { class: "icon_title copy-small-semi-bold" }, le = { class: "TextButton_small" }, oe = { class: "secondRow" }, ie = {
10
+ import J from "../../../../../_virtual/_plugin-vue_export-helper.js";
11
+ const Q = { class: "dpiV3InnerComponentWrap" }, X = { class: "copy-large-regular" }, Y = { class: "dpiV3AutoCompleteWrap" }, Z = { class: "CardTips_internal" }, ee = { class: "CardTips_Part" }, ae = { class: "firstRow" }, te = { class: "icon_title copy-small-semi-bold" }, se = { class: "TextButton_small" }, le = { class: "secondRow" }, oe = {
12
12
  key: 0,
13
13
  class: "copy-small-regular"
14
- }, ne = {
14
+ }, ie = {
15
15
  key: 2,
16
16
  class: "copy-small-regular"
17
- }, re = { class: "CardTips_Part" }, de = { class: "firstRow" }, ce = { class: "icon_title copy-small-semi-bold" }, ue = { class: "TextButton_small" }, pe = { class: "secondRow" }, me = { class: "input-container" }, ve = {
17
+ }, ne = { class: "CardTips_Part" }, re = { class: "firstRow" }, ce = { class: "icon_title copy-small-semi-bold" }, de = { class: "TextButton_small" }, ue = { class: "secondRow" }, pe = { class: "input-container" }, me = {
18
18
  key: 0,
19
19
  class: "dpiV3_errormsgWrapper"
20
- }, fe = { class: "copy-mini-regular" }, he = { class: "input-container" }, ge = {
20
+ }, fe = { class: "copy-mini-regular" }, ve = { class: "input-container" }, he = {
21
21
  key: 0,
22
22
  class: "dpiV3_errormsgWrapper"
23
- }, _e = { class: "copy-mini-regular" }, be = { class: "input-container" }, we = {
23
+ }, ge = { class: "copy-mini-regular" }, _e = { class: "input-container" }, be = {
24
24
  key: 0,
25
25
  class: "dpiV3_errormsgWrapper"
26
- }, ye = { class: "copy-mini-regular" }, ke = { class: "copy-large-regular" }, Pe = {
26
+ }, we = { class: "copy-mini-regular" }, ye = { class: "copy-large-regular" }, ke = {
27
27
  key: 0,
28
28
  class: "form-error-message"
29
- }, Te = {
29
+ }, Pe = {
30
30
  __name: "ContactPage",
31
31
  props: {
32
32
  context: Object
33
33
  },
34
- setup(O) {
35
- const f = O, { formValues: R } = G(), { isEditMode: W } = q(), { organization: A, authToken: L, startFetchPermissions: N } = J();
36
- N();
37
- const { resultEnhanced: b, isLoading: U, isFetching: j } = H({
38
- id: A,
39
- authToken: L
40
- }), w = m(null), y = m(null), k = T(() => {
34
+ setup(S) {
35
+ const v = S, { formValues: W } = q(), { isEditMode: F } = x(), { organization: O, authToken: R, startFetchPermissions: A } = H();
36
+ A();
37
+ const { resultEnhanced: L, isLoading: N, isFetching: U } = G({
38
+ id: O,
39
+ authToken: R
40
+ }), b = m(null), w = m(null), y = P(() => {
41
41
  var e, t;
42
42
  try {
43
- const a = (t = (e = R.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
43
+ const a = (t = (e = W.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
44
44
  if (a && a["foaf:name"] && a["foaf:mbox"])
45
45
  return [
46
46
  a["foaf:name"],
@@ -54,13 +54,19 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
54
54
  "",
55
55
  ""
56
56
  ];
57
- }), E = T(() => U.value || j.value), h = T(() => {
58
- var a, o, z;
59
- const e = (a = b.value) == null ? void 0 : a.publisher;
60
- return e ? {
61
- organization: ((o = b.value) == null ? void 0 : o.title) || ((z = b.value) == null ? void 0 : z.id) || "",
62
- email: e.email || ""
63
- } : {};
57
+ }), V = P(() => N.value || U.value), h = P(() => {
58
+ var a;
59
+ const e = (a = L.value) == null ? void 0 : a.publisher;
60
+ if (!e)
61
+ return {};
62
+ const t = {
63
+ organization: e.name || ""
64
+ };
65
+ if (e.email && (t.email = e.email), e.homepage) {
66
+ const o = e.homepage.startsWith("http") ? e.homepage : `https://${e.homepage}`;
67
+ t.website = o;
68
+ }
69
+ return t;
64
70
  }), l = m({
65
71
  1: {
66
72
  show: !1,
@@ -84,14 +90,14 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
84
90
  "vcard:hasTelephone": ""
85
91
  }
86
92
  ]);
87
- W.value || f.context.node.input(i), f.context.node.value.length === 0 && f.context.node.input(v(i));
88
- function B(e) {
93
+ F.value || v.context.node.input(i), v.context.node.value.length === 0 && v.context.node.input(f(i));
94
+ function E(e) {
89
95
  return e.trim().length >= 2;
90
96
  }
91
97
  function $(e) {
92
98
  return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
93
99
  }
94
- function C(e) {
100
+ function B(e) {
95
101
  if (!e || e.trim() === "")
96
102
  return !0;
97
103
  const t = e.replace(/[\s\-().]/g, "");
@@ -100,7 +106,7 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
100
106
  const a = t.replace(/\D/g, "");
101
107
  return a.length >= 6 && a.length <= 15;
102
108
  }
103
- function P(e, t, a) {
109
+ function k(e, t, a) {
104
110
  let o = !1;
105
111
  if (a === 3 && e.trim() === "")
106
112
  l.value[a].show = !1, n.value[a] = !0;
@@ -109,13 +115,13 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
109
115
  else {
110
116
  switch (t) {
111
117
  case "vcard:fn":
112
- o = B(e);
118
+ o = E(e);
113
119
  break;
114
120
  case "vcard:hasEmail":
115
121
  o = $(e);
116
122
  break;
117
123
  case "vcard:hasTelephone":
118
- o = C(e);
124
+ o = B(e);
119
125
  break;
120
126
  default:
121
127
  o = e.trim() !== "";
@@ -125,25 +131,25 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
125
131
  n.value[1] && n.value[2] ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
126
132
  }
127
133
  function p(e, t, a) {
128
- i.value = i.value.map((o) => t in o ? { ...o, [t]: e } : o), f.context.node.input(i.value), a === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
129
- P(e, t, a);
130
- }, 800)) : a === 3 ? (y.value && clearTimeout(y.value), y.value = setTimeout(() => {
131
- P(e, t, a);
132
- }, 800)) : P(e, t, a);
134
+ i.value = i.value.map((o) => t in o ? { ...o, [t]: e } : o), v.context.node.input(i.value), a === 2 ? (b.value && clearTimeout(b.value), b.value = setTimeout(() => {
135
+ k(e, t, a);
136
+ }, 800)) : a === 3 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
137
+ k(e, t, a);
138
+ }, 800)) : k(e, t, a);
133
139
  }
134
- function I() {
140
+ function j() {
135
141
  const e = h.value;
136
142
  e.organization && p(e.organization, "vcard:fn", 1), e.email && p(e.email, "vcard:hasEmail", 2);
137
143
  }
138
- function K() {
139
- p(k.value[0], "vcard:fn", 1), p(k.value[1], "vcard:hasEmail", 2);
144
+ function I() {
145
+ p(y.value[0], "vcard:fn", 1), p(y.value[1], "vcard:hasEmail", 2);
140
146
  }
141
- function M() {
147
+ function K() {
142
148
  const e = i.value[0];
143
149
  if (e["vcard:fn"].trim() === "")
144
150
  l.value[1].show = !0, n.value[1] = !1;
145
151
  else {
146
- const t = B(e["vcard:fn"]);
152
+ const t = E(e["vcard:fn"]);
147
153
  l.value[1].show = !t, n.value[1] = t;
148
154
  }
149
155
  if (e["vcard:hasEmail"].trim() === "")
@@ -155,67 +161,67 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
155
161
  if (e["vcard:hasTelephone"].trim() === "")
156
162
  l.value[3].show = !1, n.value[3] = !0;
157
163
  else {
158
- const t = C(e["vcard:hasTelephone"]);
164
+ const t = B(e["vcard:hasTelephone"]);
159
165
  l.value[3].show = !t, n.value[3] = t;
160
166
  }
161
167
  n.value[1] && n.value[2] ? i.value[0].isValid = !0 : i.value[0].isValid = !1;
162
168
  }
163
- return x(() => i.value[0].isValid, (e) => {
164
- e === !1 && M();
165
- }), (e, t) => (d(), r("div", X, [
166
- s("h4", null, c(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
167
- s("div", Y, c(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
168
- s("div", Z, [
169
- s("div", ee, [
170
- s("div", ae, [
171
- s("div", te, [
172
- s("div", se, c(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
173
- s("div", le, [
174
- u(F, {
169
+ return M(() => i.value[0].isValid, (e) => {
170
+ e === !1 && K();
171
+ }), (e, t) => (c(), r("div", Q, [
172
+ s("h4", null, d(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
173
+ s("div", X, d(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
174
+ s("div", Y, [
175
+ s("div", Z, [
176
+ s("div", ee, [
177
+ s("div", ae, [
178
+ s("div", te, d(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
179
+ s("div", se, [
180
+ u(D, {
175
181
  "button-text": e.$t(
176
182
  "message.dataupload.datasets.dcat:contactPoint.useAccountButton"
177
183
  ),
178
184
  "icon-start": "DeleteBlue",
179
185
  "icon-name": "copy",
180
186
  class: "dpiV3_usedetailsButton",
181
- disabled: E.value || Object.keys(h.value).length === 0,
182
- onClick: I
187
+ disabled: V.value || Object.keys(h.value).length === 0,
188
+ onClick: j
183
189
  }, null, 8, ["button-text", "disabled"])
184
190
  ])
185
191
  ]),
186
- s("div", oe, [
187
- E.value ? (d(), r("span", ie, "Lade Kontodaten...")) : Object.keys(h.value).length > 0 ? (d(!0), r(D, { key: 1 }, S(h.value, (a, o) => (d(), r("span", {
192
+ s("div", le, [
193
+ V.value ? (c(), r("span", oe, "Lade Kontodaten...")) : Object.keys(h.value).length > 0 ? (c(!0), r(C, { key: 1 }, z(h.value, (a, o) => (c(), r("span", {
188
194
  key: o,
189
195
  class: "copy-small-regular"
190
- }, c(a), 1))), 128)) : (d(), r("span", ne, "Keine Kontodaten verfügbar"))
196
+ }, d(a), 1))), 128)) : (c(), r("span", ie, "Keine Kontodaten verfügbar"))
191
197
  ])
192
198
  ]),
193
- s("div", re, [
194
- s("div", de, [
195
- s("div", ce, c(e.$t("message.metadata.publisher")), 1),
196
- s("div", ue, [
197
- u(F, {
199
+ s("div", ne, [
200
+ s("div", re, [
201
+ s("div", ce, d(e.$t("message.metadata.publisher")), 1),
202
+ s("div", de, [
203
+ u(D, {
198
204
  "button-text": e.$t(
199
205
  "message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
200
206
  ),
201
207
  "icon-start": "true",
202
208
  "icon-name": "copy",
203
209
  class: "",
204
- onClick: K
210
+ onClick: I
205
211
  }, null, 8, ["button-text"])
206
212
  ])
207
213
  ]),
208
- s("div", pe, [
209
- (d(!0), r(D, null, S(k.value, (a, o) => (d(), r("span", {
214
+ s("div", ue, [
215
+ (c(!0), r(C, null, z(y.value, (a, o) => (c(), r("span", {
210
216
  key: o,
211
217
  class: "copy-small-regular"
212
- }, c(a), 1))), 128))
218
+ }, d(a), 1))), 128))
213
219
  ])
214
220
  ])
215
221
  ])
216
222
  ]),
217
- s("div", me, [
218
- u(V, {
223
+ s("div", pe, [
224
+ u(T, {
219
225
  "model-value": i.value[0]["vcard:fn"],
220
226
  "add-on-text": !1,
221
227
  "date-picker": !1,
@@ -231,16 +237,16 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
231
237
  "show-error": l.value[1].show,
232
238
  "onUpdate:modelValue": t[0] || (t[0] = (a) => p(a, "vcard:fn", 1))
233
239
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
234
- l.value[1].show ? (d(), r("div", ve, [
235
- u(v(_), {
240
+ l.value[1].show ? (c(), r("div", me, [
241
+ u(f(_), {
236
242
  size: 16,
237
243
  weight: "fill"
238
244
  }),
239
- s("span", fe, c(l.value[1].message), 1)
245
+ s("span", fe, d(l.value[1].message), 1)
240
246
  ])) : g("", !0)
241
247
  ]),
242
- s("div", he, [
243
- u(V, {
248
+ s("div", ve, [
249
+ u(T, {
244
250
  "model-value": i.value[0]["vcard:hasEmail"],
245
251
  "add-on-text": !1,
246
252
  "date-picker": !1,
@@ -256,16 +262,16 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
256
262
  "show-error": l.value[2].show,
257
263
  "onUpdate:modelValue": t[1] || (t[1] = (a) => p(a, "vcard:hasEmail", 2))
258
264
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
259
- l.value[2].show ? (d(), r("div", ge, [
260
- u(v(_), {
265
+ l.value[2].show ? (c(), r("div", he, [
266
+ u(f(_), {
261
267
  size: 16,
262
268
  weight: "fill"
263
269
  }),
264
- s("span", _e, c(l.value[2].message), 1)
270
+ s("span", ge, d(l.value[2].message), 1)
265
271
  ])) : g("", !0)
266
272
  ]),
267
- s("div", be, [
268
- u(V, {
273
+ s("div", _e, [
274
+ u(T, {
269
275
  "model-value": i.value[0]["vcard:hasTelephone"],
270
276
  "add-on-text": !1,
271
277
  "date-picker": !1,
@@ -281,17 +287,17 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
281
287
  "show-error": l.value[3].show,
282
288
  "onUpdate:modelValue": t[2] || (t[2] = (a) => p(a, "vcard:hasTelephone", 3))
283
289
  }, null, 8, ["model-value", "placeholder", "label", "show-error"]),
284
- l.value[3].show ? (d(), r("div", we, [
285
- u(v(_), {
290
+ l.value[3].show ? (c(), r("div", be, [
291
+ u(f(_), {
286
292
  size: 16,
287
293
  weight: "fill"
288
294
  }),
289
- s("span", ye, c(l.value[3].message), 1)
295
+ s("span", we, d(l.value[3].message), 1)
290
296
  ])) : g("", !0)
291
297
  ]),
292
- s("div", ke, c(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
293
- i.value.find((a) => a.isValid === !1) ? (d(), r("div", Pe, [
294
- u(v(_), {
298
+ s("div", ye, d(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
299
+ i.value.find((a) => a.isValid === !1) ? (c(), r("div", ke, [
300
+ u(f(_), {
295
301
  size: 16,
296
302
  weight: "fill"
297
303
  }),
@@ -299,7 +305,7 @@ const X = { class: "dpiV3InnerComponentWrap" }, Y = { class: "copy-large-regular
299
305
  ])) : g("", !0)
300
306
  ]));
301
307
  }
302
- }, Re = /* @__PURE__ */ Q(Te, [["__scopeId", "data-v-d319a7ed"]]);
308
+ }, Fe = /* @__PURE__ */ J(Pe, [["__scopeId", "data-v-62702ebf"]]);
303
309
  export {
304
- Re as default
310
+ Fe as default
305
311
  };
@@ -1,4 +1,4 @@
1
- import { computed as f, ref as h, onMounted as Fe, resolveComponent as Oe, createElementBlock as r, openBlock as i, Fragment as D, createCommentVNode as u, createBlock as w, createVNode as y, createElementVNode as a, unref as p, toDisplayString as s, renderList as B, createTextVNode as H, withCtx as N, isRef as Se } from "vue";
1
+ import { computed as f, ref as h, onMounted as Fe, resolveComponent as Oe, createElementBlock as r, openBlock as i, Fragment as D, createCommentVNode as u, createBlock as w, createVNode as y, createElementVNode as a, unref as p, toDisplayString as s, renderList as B, createTextVNode as H, withCtx as N, isRef as me } from "vue";
2
2
  import "@formkit/core";
3
3
  import { useFormKitNodeById as Ue } from "@formkit/vue";
4
4
  import "@phosphor-icons/vue";
@@ -9,11 +9,11 @@ import { useFormValues as Ye } from "../composables/useDpiFormValues.js";
9
9
  import S from "../HappyFlowComponents/ui/ButtonV3.vue.js";
10
10
  import Ke from "../HappyFlowComponents/ui/Chip.vue.js";
11
11
  import Ge from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
12
- import ke from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
12
+ import Se from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
13
13
  import Xe from "../HappyFlowComponents/ui/RapModal.vue.js";
14
14
  import Ze from "../HappyFlowComponents/ui/StateTag.vue.js";
15
15
  import qe from "../HappyFlowComponents/ui/TableRowV3.vue.js";
16
- import De from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
16
+ import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
17
17
  import Je from "./Spatial.vue.js";
18
18
  import Qe from "./VisibilityPage.vue.js";
19
19
  /* empty css */
@@ -77,10 +77,10 @@ const et = { key: 0 }, tt = {
77
77
  var e;
78
78
  return !!((e = C.value.edit) != null && e.enabled);
79
79
  });
80
- let Ve = h(
80
+ let De = h(
81
81
  C.value.edit.enabled && !C.value.edit.fromDraft
82
82
  );
83
- function Ce() {
83
+ function Ve() {
84
84
  c.value.Covering["dcat:temporalResolution"] = {};
85
85
  }
86
86
  h([{ isValid: !0 }]), h(!1), We(), h(null);
@@ -100,7 +100,7 @@ const et = { key: 0 }, tt = {
100
100
  }
101
101
  return "";
102
102
  });
103
- function $e(e) {
103
+ function Ce(e) {
104
104
  let t, l, d, v, m, x;
105
105
  return e.forEach((g) => {
106
106
  g.Year && (t = Number.parseInt(g.Year)), g.Month && (l = Number.parseInt(g.Month) - 1), g.Day && (d = Number.parseInt(g.Day)), g.Hour && (v = Number.parseInt(g.Hour)), g.Minute && (m = Number.parseInt(g.Minute)), g.Second && (x = Number.parseInt(g.Second));
@@ -120,21 +120,21 @@ const et = { key: 0 }, tt = {
120
120
  function W(e) {
121
121
  return !(Object.keys(e).includes("isValid") && Object.keys(e).length === 1);
122
122
  }
123
- const xe = f(() => {
123
+ const $e = f(() => {
124
124
  var t, l;
125
125
  const e = (l = (t = c.value) == null ? void 0 : t.Discoverability) == null ? void 0 : l.discoverabilityPage;
126
126
  return Array.isArray(e) ? (e == null ? void 0 : e.filter(W)) || [] : [];
127
127
  }), Y = f(() => {
128
128
  var e, t;
129
129
  return ((t = (e = c.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
130
- }), we = f(() => {
130
+ }), xe = f(() => {
131
131
  var l, d;
132
132
  const e = (d = (l = c.value) == null ? void 0 : l.BasicInfos) == null ? void 0 : d["dct:title"], t = e == null ? void 0 : e.find((v) => v["@language"] === "de");
133
133
  return t ? t["@value"] : null;
134
- }), Be = f(() => {
134
+ }), we = f(() => {
135
135
  var e, t, l, d;
136
136
  return ((d = (l = (t = (e = c.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : l[0]) == null ? void 0 : d["@value"]) || "";
137
- }), K = f(() => {
137
+ }), Be = f(() => {
138
138
  var t, l, d, v;
139
139
  const e = (v = (d = (l = (t = c.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : l["dct:modified"]) == null ? void 0 : d[0]) == null ? void 0 : v["@value"];
140
140
  return e ? new Date(e).toLocaleDateString("de-DE", {
@@ -177,7 +177,7 @@ const et = { key: 0 }, tt = {
177
177
  }), k = f(() => {
178
178
  var e;
179
179
  return ((e = c.value) == null ? void 0 : e.Additionals) || {};
180
- }), G = f(() => (Object.keys(k.value).forEach((e) => {
180
+ }), K = f(() => (Object.keys(k.value).forEach((e) => {
181
181
  if (k.value.hasOwnProperty(e)) {
182
182
  const t = k.value[e];
183
183
  (t === void 0 || Array.isArray(t) && t.length === 0) && delete k.value[e];
@@ -192,14 +192,14 @@ const et = { key: 0 }, tt = {
192
192
  throw new Error("Ungültige Datenteile");
193
193
  return `${v}.${d}.${l}`;
194
194
  }
195
- const X = f(() => G.value.length > 0);
195
+ const G = f(() => K.value.length > 0);
196
196
  function V(e) {
197
197
  j.value = e, z.value = !0, document.body.style.overflow = "hidden";
198
198
  }
199
199
  function Ee() {
200
200
  document.body.style.overflow = "", z.value = !1;
201
201
  }
202
- function Z(e) {
202
+ function X(e) {
203
203
  delete c.value.Additionals[e];
204
204
  }
205
205
  function Le(e, t) {
@@ -212,9 +212,9 @@ const et = { key: 0 }, tt = {
212
212
  action: e
213
213
  };
214
214
  }
215
- const q = h(!1);
215
+ const Z = h(!1);
216
216
  Fe(() => {
217
- q.value = !0;
217
+ Z.value = !0;
218
218
  });
219
219
  const He = {
220
220
  public: "Öffentlich",
@@ -236,10 +236,10 @@ const et = { key: 0 }, tt = {
236
236
  }
237
237
  });
238
238
  return (e, t) => {
239
- var d, v, m, x, g, J, Q, I, A, ee, te, ae, se, ie, oe, le, ne, re, de, ce, ue, pe, ve, fe, ge, ye, he, _e, be, me;
239
+ var d, v, m, x, g, q, J, Q, I, A, ee, te, ae, se, ie, oe, le, ne, re, de, ce, ue, pe, ve, fe, ge, ye, he, _e, be;
240
240
  const l = Oe("formatbubble");
241
241
  return i(), r(D, null, [
242
- q.value && U.value ? (i(), r("div", et, [
242
+ Z.value && U.value ? (i(), r("div", et, [
243
243
  z.value ? (i(), w(Xe, {
244
244
  key: 0,
245
245
  context: F.context,
@@ -255,14 +255,14 @@ const et = { key: 0 }, tt = {
255
255
  key: (x = (m = p(c).value) == null ? void 0 : m.BasicInfos) == null ? void 0 : x.datasetID,
256
256
  "data-cy": p(c).value,
257
257
  catalogue: "test-catalog",
258
- text: ((J = (g = p(c).value) == null ? void 0 : g.BasicInfos) == null ? void 0 : J.title.de) || ((I = (Q = p(c).value) == null ? void 0 : Q.BasicInfos) == null ? void 0 : I.title.en),
258
+ text: ((q = (g = p(c).value) == null ? void 0 : g.BasicInfos) == null ? void 0 : q.title.de) || ((Q = (J = p(c).value) == null ? void 0 : J.BasicInfos) == null ? void 0 : Q.title.en),
259
259
  visibility: Ne($.value || "public"),
260
260
  "visibility-state": $.value,
261
- date: K.value,
262
- draft: !p(Ve),
261
+ date: void 0,
262
+ draft: !p(De),
263
263
  dataset: e.dataset,
264
264
  "from-draft": "true"
265
- }, null, 8, ["id", "data-cy", "text", "visibility", "visibility-state", "date", "draft", "dataset"]))
265
+ }, null, 8, ["id", "data-cy", "text", "visibility", "visibility-state", "draft", "dataset"]))
266
266
  ])) : (i(), r("div", ot, [
267
267
  a("h4", lt, s(e.$t("message.dataupload.datasets.rap.title")), 1),
268
268
  a("div", nt, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
@@ -303,7 +303,7 @@ const et = { key: 0 }, tt = {
303
303
  ]),
304
304
  a("div", gt, [
305
305
  a("div", yt, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
306
- (i(!0), r(D, null, B(xe.value, (n, o) => (i(), w(Ke, {
306
+ (i(!0), r(D, null, B($e.value, (n, o) => (i(), w(Ke, {
307
307
  key: o,
308
308
  text: n.label,
309
309
  data: { "@value": n.value, URI: n.URI },
@@ -314,13 +314,13 @@ const et = { key: 0 }, tt = {
314
314
  }
315
315
  }, null, 8, ["text", "data"]))), 128))
316
316
  ]),
317
- (ee = (A = Y.value) == null ? void 0 : A[0]) != null && ee.label ? (i(), r("div", ht, [
317
+ (A = (I = Y.value) == null ? void 0 : I[0]) != null && A.label ? (i(), r("div", ht, [
318
318
  y(Ze, {
319
319
  label: "HVD",
320
320
  state: "hvd",
321
321
  size: "page"
322
322
  }),
323
- a("h5", _t, s((ae = (te = Y.value) == null ? void 0 : te[0]) == null ? void 0 : ae.label), 1)
323
+ a("h5", _t, s((te = (ee = Y.value) == null ? void 0 : ee[0]) == null ? void 0 : te.label), 1)
324
324
  ])) : u("", !0)
325
325
  ])),
326
326
  (i(), r("div", bt, [
@@ -334,14 +334,14 @@ const et = { key: 0 }, tt = {
334
334
  })
335
335
  ]),
336
336
  a("div", St, [
337
- a("h3", kt, s(we.value), 1)
337
+ a("h3", kt, s(xe.value), 1)
338
338
  ]),
339
339
  a("div", Dt, [
340
- a("span", null, s(Be.value), 1)
340
+ a("span", null, s(we.value), 1)
341
341
  ]),
342
342
  a("div", Vt, [
343
343
  a("span", Ct, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
344
- a("span", $t, s(K.value), 1)
344
+ a("span", $t, s(Be.value), 1)
345
345
  ]),
346
346
  a("div", xt, [
347
347
  a("span", wt, s(e.$t("message.dataupload.datasets.rap.essentials.publisherHeader")), 1),
@@ -371,7 +371,7 @@ const et = { key: 0 }, tt = {
371
371
  })
372
372
  ]),
373
373
  a("div", null, [
374
- P.value && ((se = P.value) == null ? void 0 : se.length) > 0 ? (i(), r("div", Ft, [
374
+ P.value && ((ae = P.value) == null ? void 0 : ae.length) > 0 ? (i(), r("div", Ft, [
375
375
  t[16] || (t[16] = a("div", { class: "copy-large-regular" }, " Räumliche Abdeckung (optional) ", -1)),
376
376
  a("div", null, [
377
377
  y(Je, {
@@ -385,9 +385,9 @@ const et = { key: 0 }, tt = {
385
385
  Te.value ? (i(), r("div", Ot, [
386
386
  a("div", Ut, [
387
387
  a("span", jt, s(e.$t("message.dataupload.datasets.rap.coverage.tempCoverage")), 1),
388
- y(De, {
388
+ y(ke, {
389
389
  "button-text": "löschen",
390
- onClick: Ce
390
+ onClick: Ve
391
391
  })
392
392
  ]),
393
393
  a("div", Wt, [
@@ -436,13 +436,13 @@ const et = { key: 0 }, tt = {
436
436
  ]),
437
437
  a("div", Qt, [
438
438
  a("span", It, s(e.$t("message.dataupload.steps.dct:license")), 1),
439
- a("h5", At, s(p(L)["dcterms:license"] || ((le = (oe = (ie = p(c).DistributionSimple) == null ? void 0 : ie["dct:license"]) == null ? void 0 : oe[0]) == null ? void 0 : le["dcterms:license"]) || "Keine Lizenz angegeben"), 1)
439
+ a("h5", At, s(p(L)["dcterms:license"] || ((oe = (ie = (se = p(c).DistributionSimple) == null ? void 0 : se["dct:license"]) == null ? void 0 : ie[0]) == null ? void 0 : oe["dcterms:license"]) || "Keine Lizenz angegeben"), 1)
440
440
  ]),
441
- Re.value && ((de = (re = (ne = p(c).DistributionSimple) == null ? void 0 : ne["dct:license"]) == null ? void 0 : re[0]) != null && de.title || (ve = (pe = (ue = (ce = p(c)) == null ? void 0 : ce.DistributionSimple) == null ? void 0 : ue["dcat:distribution"]) == null ? void 0 : pe[0]) != null && ve["dcatde:licenseAttributionByText"]) ? (i(), r("div", ea, [
441
+ Re.value && ((re = (ne = (le = p(c).DistributionSimple) == null ? void 0 : le["dct:license"]) == null ? void 0 : ne[0]) != null && re.title || (pe = (ue = (ce = (de = p(c)) == null ? void 0 : de.DistributionSimple) == null ? void 0 : ce["dcat:distribution"]) == null ? void 0 : ue[0]) != null && pe["dcatde:licenseAttributionByText"]) ? (i(), r("div", ea, [
442
442
  a("span", ta, s(e.$t(
443
443
  "message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
444
444
  )), 1),
445
- a("h5", aa, s(((ye = (ge = (fe = p(c).DistributionSimple) == null ? void 0 : fe["dct:license"]) == null ? void 0 : ge[0]) == null ? void 0 : ye.title) || ((me = (be = (_e = (he = p(c)) == null ? void 0 : he.DistributionSimple) == null ? void 0 : _e["dcat:distribution"]) == null ? void 0 : be[0]) == null ? void 0 : me["dcatde:licenseAttributionByText"])), 1)
445
+ a("h5", aa, s(((ge = (fe = (ve = p(c).DistributionSimple) == null ? void 0 : ve["dct:license"]) == null ? void 0 : fe[0]) == null ? void 0 : ge.title) || ((be = (_e = (he = (ye = p(c)) == null ? void 0 : ye.DistributionSimple) == null ? void 0 : he["dcat:distribution"]) == null ? void 0 : _e[0]) == null ? void 0 : be["dcatde:licenseAttributionByText"])), 1)
446
446
  ])) : u("", !0),
447
447
  a("div", sa, [
448
448
  a("span", ia, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
@@ -464,20 +464,20 @@ const et = { key: 0 }, tt = {
464
464
  ]))), 256))
465
465
  ])
466
466
  ]),
467
- X.value ? (i(), r("div", na, [
467
+ G.value ? (i(), r("div", na, [
468
468
  a("div", ra, [
469
469
  a("span", null, s(e.$t("message.metadata.additionals")), 1)
470
470
  ]),
471
- (i(!0), r(D, null, B(G.value, (n) => (i(), r("div", da, [
471
+ (i(!0), r(D, null, B(K.value, (n) => (i(), r("div", da, [
472
472
  a("div", ca, [
473
473
  a("span", ua, s(e.$t(`message.dataupload.additionals.${n}`)) + " (optional)", 1),
474
- y(De, {
474
+ y(ke, {
475
475
  "button-text": "löschen",
476
476
  onClick: (o) => Le(n)
477
477
  }, null, 8, ["onClick"])
478
478
  ]),
479
479
  n === "dcat:temporalResolution" ? (i(), r("div", pa, [
480
- a("span", null, s($e(k.value[n] || [])), 1)
480
+ a("span", null, s(Ce(k.value[n] || [])), 1)
481
481
  ])) : u("", !0),
482
482
  n != "dcat:temporalResolution" ? (i(!0), r(D, { key: 1 }, B(k.value[n] || [], (o) => (i(), r("div", {
483
483
  key: o ? o["@id"] || o["@value"] || o["rdfs:label"] : null,
@@ -505,7 +505,7 @@ const et = { key: 0 }, tt = {
505
505
  })
506
506
  ])
507
507
  ])) : u("", !0),
508
- X.value ? u("", !0) : (i(), r("div", Va, [
508
+ G.value ? u("", !0) : (i(), r("div", Va, [
509
509
  y(S, {
510
510
  "button-text": "Optionale Informationen hinzufügen",
511
511
  size: "large",
@@ -516,14 +516,14 @@ const et = { key: 0 }, tt = {
516
516
  ]))
517
517
  ], 64))
518
518
  ])),
519
- p(_) ? (i(), w(ke, {
519
+ p(_) ? (i(), w(Se, {
520
520
  key: 2,
521
521
  buttons: p(b).button,
522
522
  "header-text": p(b).header,
523
523
  text: p(b).text,
524
524
  action: p(b).action,
525
- onClose: t[8] || (t[8] = (n) => Se(_) ? _.value = !1 : _ = !1),
526
- onActionHandling: t[9] || (t[9] = (n) => Z(n))
525
+ onClose: t[8] || (t[8] = (n) => me(_) ? _.value = !1 : _ = !1),
526
+ onActionHandling: t[9] || (t[9] = (n) => X(n))
527
527
  }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0),
528
528
  y(Ge, {
529
529
  modelValue: M.value,
@@ -545,19 +545,19 @@ const et = { key: 0 }, tt = {
545
545
  _: 1
546
546
  }, 8, ["modelValue"])
547
547
  ])) : u("", !0),
548
- p(_) ? (i(), w(ke, {
548
+ p(_) ? (i(), w(Se, {
549
549
  key: 1,
550
550
  buttons: p(b).button,
551
551
  "header-text": p(b).header,
552
552
  text: p(b).text,
553
553
  action: p(b).action,
554
- onClose: t[12] || (t[12] = (n) => Se(_) ? _.value = !1 : _ = !1),
555
- onActionHandling: t[13] || (t[13] = (n) => Z(n))
554
+ onClose: t[12] || (t[12] = (n) => me(_) ? _.value = !1 : _ = !1),
555
+ onActionHandling: t[13] || (t[13] = (n) => X(n))
556
556
  }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0)
557
557
  ], 64);
558
558
  };
559
559
  }
560
- }, qa = /* @__PURE__ */ Ie(Ca, [["__scopeId", "data-v-249d2a2d"]]);
560
+ }, qa = /* @__PURE__ */ Ie(Ca, [["__scopeId", "data-v-e608df56"]]);
561
561
  export {
562
562
  qa as default
563
563
  };