@piveau/dpi 0.1.0-beta.61 → 0.1.0-beta.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,15 +1,15 @@
1
- import { ref as F, getCurrentInstance as Ve, reactive as we, watch as Ue, computed as ue, resolveComponent as K, createElementBlock as h, openBlock as s, Fragment as j, createVNode as g, createCommentVNode as c, withCtx as q, createTextVNode as Re, toDisplayString as S, createBlock as d, renderList as Y, createElementVNode as T, unref as b, isRef as te } from "vue";
1
+ import { ref as F, getCurrentInstance as Ue, reactive as Ve, watch as we, computed as ue, resolveComponent as Y, createElementBlock as h, openBlock as s, Fragment as q, createVNode as b, createCommentVNode as c, withCtx as G, createTextVNode as Re, toDisplayString as I, createBlock as d, renderList as Q, createElementVNode as S, unref as k, isRef as ie } from "vue";
2
2
  import le from "../ButtonV3.vue.js";
3
- import B from "../InputField.vue.js";
3
+ import L from "../InputField.vue.js";
4
4
  import se from "../TextAreaV3.vue.js";
5
- import ie from "../Dropdown.vue.js";
5
+ import ae from "../Dropdown.vue.js";
6
6
  import { PhWarning as E } from "@phosphor-icons/vue";
7
7
  import "@formkit/core";
8
- import { getOptionalURIs as Te } from "../../services/dpiV3_apis.js";
9
- import { useFormValues as Ie } from "../../../composables/useDpiFormValues.js";
10
- import Le from "../TextButtonSmall.vue.js";
8
+ import { getOptionalURIs as Se } from "../../services/dpiV3_apis.js";
9
+ import { useFormValues as Be } from "../../../composables/useDpiFormValues.js";
10
+ import Te from "../TextButtonSmall.vue.js";
11
11
  /* empty css */
12
- const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
12
+ const Ie = { class: "dpiV3_LinkAndMetadata" }, Le = {
13
13
  key: 2,
14
14
  class: "dpiV3_errorMessage"
15
15
  }, Ae = { class: "copy-mini-regular" }, Ce = {
@@ -18,10 +18,10 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
18
18
  }, Fe = { class: "copy-mini-regular" }, Ee = {
19
19
  key: 6,
20
20
  class: "dpiV3_errorMessage"
21
- }, Oe = { class: "copy-mini-regular" }, ze = {
21
+ }, Oe = { class: "copy-mini-regular" }, Pe = {
22
22
  key: 1,
23
23
  class: "dpiV3_errorMessage"
24
- }, He = { class: "copy-mini-regular" }, Pe = { class: "dpiV3_LinkAndMetadata" }, Me = {
24
+ }, ze = { class: "copy-mini-regular" }, He = { class: "dpiV3_LinkAndMetadata" }, Me = {
25
25
  key: 1,
26
26
  class: "dpiV3_errorMessage"
27
27
  }, Ne = { class: "copy-mini-regular" }, We = {
@@ -40,115 +40,96 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
40
40
  item: Object
41
41
  },
42
42
  setup(e, { emit: me }) {
43
- const ae = me;
44
- let G = F([{}]), z = F([]), Z = F(!1), p = F(), ce = Ve().appContext.app.config.globalProperties.$env;
45
- const { formValues: Q } = Ie(), i = we({}), r = F([]), A = e;
46
- Ue(
43
+ const ne = me;
44
+ let Z = F([{}]), P = F([]), J = F(!1), p = F(), ce = Ue().appContext.app.config.globalProperties.$env;
45
+ const { formValues: X } = Be(), l = Ve({}), n = F([]), A = e;
46
+ we(
47
47
  () => {
48
48
  var t;
49
- return (t = Q.value.Additionals) == null ? void 0 : t[A.item.name];
49
+ return (t = X.value.Additionals) == null ? void 0 : t[A.item.name];
50
50
  },
51
51
  (t) => {
52
- t && t.length > 0 && (r.value = JSON.parse(JSON.stringify(t)));
52
+ t && t.length > 0 && (n.value = JSON.parse(JSON.stringify(t)));
53
53
  },
54
54
  { immediate: !0 }
55
55
  );
56
- const fe = ue(() => r.value.length === 0 ? [{}] : r.value), X = (t) => t ? Object.entries(t).some(([n, u]) => typeof u == "string" ? u.trim() !== "" : typeof u == "object" && u !== null ? X(u) : !1) : !1, k = (t) => !t || t.trim() === "" ? !1 : /^(https?|ftp):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(t.trim()), J = (t, n = null) => {
56
+ const fe = ue(() => n.value.length === 0 ? [{}] : n.value), D = (t) => t ? Object.entries(t).some(([r, u]) => typeof u == "string" ? u.trim() !== "" : typeof u == "object" && u !== null ? D(u) : !1) : !1, g = (t) => !t || t.trim() === "" ? !1 : /^(https?|ftp):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(t.trim()), K = (t, r = null) => {
57
57
  const u = A.item.identifier;
58
- let a = n !== null ? `${u}-${n}` : u;
59
- if (i[a] = null, console.log(u), !X(t))
58
+ let a = r !== null ? `${u}-${r}` : u;
59
+ if (l[a] = null, console.log(u), !D(t))
60
60
  return !0;
61
61
  switch (u) {
62
62
  case "conformsTo":
63
63
  const f = t["@id"] || "";
64
- if (!f.trim())
65
- return i[a] = "URL ist erforderlich", !1;
66
- if (!k(f))
67
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
64
+ if (!f.trim() || !g(f))
65
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
68
66
  break;
69
67
  case "admsIdentifier":
70
68
  const $ = t["@id"] || "";
71
- if (!$.trim())
72
- return i[a] = "URL ist erforderlich", !1;
73
- if (!k($))
74
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
69
+ if (!$.trim() || !g($))
70
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
75
71
  break;
76
72
  case "spatial":
77
73
  const y = t["@id"] || "";
78
74
  if (!y.trim())
79
- return i[a] = "URL ist erforderlich", !1;
80
- if (!k(y))
81
- return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
75
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
76
+ if (!g(y))
77
+ return l[a] = "Bitte geben Sie eine gültige URL ein", !1;
82
78
  break;
83
79
  case "relation":
84
80
  const o = t["@id"] || "";
85
- if (!o.trim())
86
- return i[a] = "URL ist erforderlich", !1;
87
- if (!k(o))
88
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
81
+ if (!o.trim() || !g(o))
82
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
89
83
  break;
90
84
  case "qualifiedRelation":
91
- const l = t["@id"] || "";
92
- if (!l.trim())
93
- return i[a] = "URL ist erforderlich", !1;
94
- if (!k(l))
95
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
85
+ const i = t["@id"] || "";
86
+ if (!i.trim() || !g(i))
87
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
96
88
  case "qualifiedAttribution":
97
89
  const v = t["@id"] || "";
98
- if (!v.trim())
99
- return i[a] = "URL ist erforderlich", !1;
100
- if (!k(v))
101
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
90
+ if (!v.trim() || !g(v))
91
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
102
92
  case "source":
103
- const V = t["@id"] || "";
104
- if (!V.trim())
105
- return i[a] = "URL ist erforderlich", !1;
106
- if (!k(V))
107
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
93
+ const U = t["@id"] || "";
94
+ if (!U.trim() || !g(U))
95
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
108
96
  case "hasVersion":
109
- const w = t["@id"] || "";
110
- if (!w.trim())
111
- return i[a] = "URL ist erforderlich", !1;
112
- if (!k(w))
113
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
97
+ const V = t["@id"] || "";
98
+ if (!V.trim() || !g(V))
99
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
114
100
  case "isVersionOf":
115
101
  const R = t["@id"] || "";
116
- if (!R.trim())
117
- return i[a] = "URL ist erforderlich", !1;
118
- if (!k(R))
119
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
102
+ if (!R.trim() || !g(R))
103
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
120
104
  break;
121
105
  case "isReferencedBy":
122
- const I = t["@id"] || "";
123
- if (!I.trim())
124
- return i[a] = "URL ist erforderlich", !1;
125
- if (!k(I))
126
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
106
+ const B = t["@id"] || "";
107
+ if (!B.trim() || !g(B))
108
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
127
109
  break;
128
110
  case "references":
129
111
  const C = t["@id"] || "";
130
- if (!C.trim())
131
- return i[a] = "URL ist erforderlich", !1;
132
- if (!k(C))
133
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
112
+ if (!C.trim() || !g(C))
113
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
134
114
  break;
135
115
  case "wasGeneratedBy":
136
- const H = t["@id"] || "";
137
- if (!H.trim())
138
- return i[a] = "URL ist erforderlich", !1;
139
- if (!k(H))
140
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
116
+ const z = t["@id"] || "";
117
+ if (!z.trim() || !g(z))
118
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
141
119
  break;
142
120
  case "landingPage":
143
- const P = t["@id"] || "";
144
- if (!P.trim())
145
- return i[a] = "URL ist erforderlich", !1;
146
- if (!k(P))
147
- return i[a] = "Bitte geben Sie eine gültige URL ein.", !1;
121
+ const H = t["@id"] || "";
122
+ if (!H.trim() || !g(H))
123
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
124
+ break;
125
+ case "page":
126
+ const M = t["foaf:homepage"] || "";
127
+ if (!M.trim() || !g(M))
128
+ return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
148
129
  break;
149
130
  case "temporalResolution":
150
131
  a = "temporalResolution-0";
151
- const M = Object.assign({}, ...r.value), N = [
132
+ const N = Object.assign({}, ...n.value), W = [
152
133
  "Year",
153
134
  "Month",
154
135
  "Day",
@@ -156,103 +137,103 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
156
137
  "Minute",
157
138
  "Second"
158
139
  ];
159
- if (N.some((W) => {
160
- const L = M[W];
161
- return L && typeof L == "string" && L.trim() !== "";
140
+ if (W.some((j) => {
141
+ const T = N[j];
142
+ return T && typeof T == "string" && T.trim() !== "";
162
143
  })) {
163
- if (N.filter((L) => {
164
- const O = M[L];
144
+ if (W.filter((T) => {
145
+ const O = N[T];
165
146
  return !O || typeof O == "string" && O.trim() === "";
166
147
  }).length > 0)
167
- return i[a] = "Alle Zeiteinheiten sind erforderlich", !1;
168
- i[a] = null;
148
+ return l[a] = "Alle Zeiteinheiten sind erforderlich", !1;
149
+ l[a] = null;
169
150
  }
170
151
  break;
171
152
  case "creator":
172
153
  if (!(t["foaf:name"] || t["@value"] || "").trim())
173
- return i[a] = "Name ist erforderlich", !1;
154
+ return l[a] = "Name ist erforderlich", !1;
174
155
  break;
175
156
  case "contributor":
176
157
  if (!(t["foaf:name"] || t["@value"] || "").trim())
177
- return i[a] = "Name ist erforderlich", !1;
158
+ return l[a] = "Name ist erforderlich", !1;
178
159
  break;
179
160
  }
180
161
  return !0;
181
162
  }, de = () => {
182
163
  let t = !0;
183
- Object.keys(i).forEach((a) => {
184
- i[a] = null;
164
+ Object.keys(l).forEach((a) => {
165
+ l[a] = null;
185
166
  });
186
- const n = A.item.identifier;
167
+ const r = A.item.identifier;
187
168
  return [
188
169
  "conformsTo",
189
170
  "temporalResolution",
190
171
  "creator",
191
172
  "contributor"
192
- ].includes(n) && r.value.forEach((a, f) => {
193
- J(a, f) || (t = !1);
173
+ ].includes(r) && n.value.forEach((a, f) => {
174
+ K(a, f) || (t = !1);
194
175
  }), t;
195
- }, ve = (t) => {
196
- r.value.push({});
197
- }, he = () => {
198
- ae("goBack", !1);
199
- }, ge = (t, n) => {
200
- r.value.splice(n, 1), delete i[`${A.item.identifier}-${n}`];
176
+ }, ge = (t) => {
177
+ n.value.push({});
178
+ }, ve = () => {
179
+ ne("goBack", !1);
180
+ }, he = (t, r) => {
181
+ n.value.splice(r, 1), delete l[`${A.item.identifier}-${r}`];
201
182
  }, re = ue(() => {
202
183
  if (A.item.identifier !== "temporalResolution") return null;
203
- for (let t = 0; t < r.value.length; t++) {
204
- const n = `temporalResolution-${t}`;
205
- if (i[n])
184
+ for (let t = 0; t < n.value.length; t++) {
185
+ const r = `temporalResolution-${t}`;
186
+ if (l[r])
206
187
  return {
207
- key: n,
208
- message: i[n]
188
+ key: r,
189
+ message: l[r]
209
190
  };
210
191
  }
211
192
  return null;
212
- }), be = (t, n, u) => {
213
- r.value[n] || (r.value[n] = {}), r.value[n]["@value"] = t.pref_label.de || t.pref_label.en, r.value[n].uri = t.resource, setTimeout(() => {
214
- J(r.value[n], n);
193
+ }), be = (t, r, u) => {
194
+ n.value[r] || (n.value[r] = {}), n.value[r]["@value"] = t.pref_label.de || t.pref_label.en, n.value[r].uri = t.resource, setTimeout(() => {
195
+ K(n.value[r], r);
215
196
  }, 0);
216
- }, U = (t, n, u, a) => {
197
+ }, w = (t, r, u, a) => {
217
198
  var $;
218
199
  const f = typeof t == "string" ? t : (($ = t == null ? void 0 : t.target) == null ? void 0 : $.value) ?? "";
219
- r.value[u] || (r.value[u] = {}), n === "dct:issued" ? r.value[u][a] = ke(f) : r.value[u][a] = f, f != "" && (G.value[0][n] = f), a === "@id" && f != "" && (G.value[0][n] = "https://" + f), setTimeout(() => {
220
- J(r.value[u], u);
200
+ n.value[u] || (n.value[u] = {}), r === "dct:issued" ? n.value[u][a] = ke(f) : n.value[u][a] = f, f != "" && (Z.value[0][r] = f), a === "@id" && f != "" && (Z.value[0][r] = "https://" + f), setTimeout(() => {
201
+ K(n.value[u], u);
221
202
  }, 0);
222
203
  };
223
204
  function ke(t) {
224
- const [n, u, a] = t.split("-");
225
- return `${a}.${u}.${n}`;
205
+ const [r, u, a] = t.split("-");
206
+ return `${a}.${u}.${r}`;
226
207
  }
227
- const ye = (t, n, u, a) => {
228
- r.value[u] || (r.value[u] = {}), r.value[u][a] = t, setTimeout(() => {
229
- J(r.value[u], u);
208
+ const ye = (t, r, u, a) => {
209
+ n.value[u] || (n.value[u] = {}), n.value[u][a] = t, setTimeout(() => {
210
+ K(n.value[u], u);
230
211
  }, 0);
231
- }, $e = (t) => (p.value = t.pref_label.de, G.value = [
212
+ }, $e = (t) => (p.value = t.pref_label.de, Z.value = [
232
213
  { "@value": t.pref_label.de, uri: t.resource }
233
- ], t), D = async (t, n, u) => {
214
+ ], t), x = async (t, r, u) => {
234
215
  if (u === "select") {
235
216
  let a = F([]);
236
217
  if (t.forEach((f) => {
237
218
  a.value.push({ "@value": f, selected: !1 });
238
- }), n !== "")
219
+ }), r !== "")
239
220
  try {
240
- z.value = a.value;
221
+ P.value = a.value;
241
222
  } catch (f) {
242
223
  console.log(f);
243
224
  }
244
225
  }
245
226
  if (u === "auto") {
246
- let a = F(await Te(n, ce.api.baseUrl, t));
247
- if (n !== "")
227
+ let a = F(await Se(r, ce.api.baseUrl, t));
228
+ if (r !== "")
248
229
  try {
249
230
  const f = {
250
231
  label: a.value.filter(($) => {
251
232
  const y = $.pref_label.de || $.pref_label.en;
252
- return y && n.trim() && (y == null ? void 0 : y.toLowerCase().startsWith(n.trim().toLowerCase()));
233
+ return y && r.trim() && (y == null ? void 0 : y.toLowerCase().startsWith(r.trim().toLowerCase()));
253
234
  })
254
235
  };
255
- f.uri = a.value.filter(($) => $.resource), z.value = f.label;
236
+ f.uri = a.value.filter(($) => $.resource), P.value = f.label;
256
237
  } catch (f) {
257
238
  console.log(f);
258
239
  }
@@ -260,264 +241,264 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
260
241
  }, pe = () => {
261
242
  if (!de())
262
243
  return;
263
- const t = r.value.filter(
264
- (n) => X(n)
244
+ const t = n.value.filter(
245
+ (r) => D(r)
265
246
  );
266
- t.length > 0 && (Q.value.Additionals[A.item.name] = t), Z.value && (Q.value.Additionals[A.item.name] = G.value), ae("sst", "close");
247
+ t.length > 0 && (X.value.Additionals[A.item.name] = t), J.value && (X.value.Additionals[A.item.name] = Z.value), ne("sst", "close");
267
248
  };
268
- return (t, n) => {
269
- const u = K("additionalText"), a = K("itemWrapperAdditionals"), f = K("activeItem"), $ = K("interaction");
270
- return s(), h(j, null, [
271
- g(u, null, {
272
- default: q(() => [
273
- Re(S(e.item.help), 1)
249
+ return (t, r) => {
250
+ const u = Y("additionalText"), a = Y("itemWrapperAdditionals"), f = Y("activeItem"), $ = Y("interaction");
251
+ return s(), h(q, null, [
252
+ b(u, null, {
253
+ default: G(() => [
254
+ Re(I(e.item.help), 1)
274
255
  ]),
275
256
  _: 1
276
257
  }),
277
- g(f, null, {
278
- default: q(() => [
279
- e.item.$formkit === "repeatable" ? (s(!0), h(j, { key: 0 }, Y(fe.value, (y, o) => (s(), h("div", {
258
+ b(f, null, {
259
+ default: G(() => [
260
+ e.item.$formkit === "repeatable" ? (s(!0), h(q, { key: 0 }, Q(fe.value, (y, o) => (s(), h("div", {
280
261
  class: "repeatableOuter dpiV3AutoCompleteWrap",
281
262
  key: o
282
263
  }, [
283
- e.item.$formkit === "repeatable" ? (s(!0), h(j, { key: 0 }, Y(e.item.children[0].children.filter(
284
- (l) => l.$formkit !== "group"
285
- ), (l, v) => (s(), d(a, { key: v }, {
286
- default: q(() => {
287
- var V, w, R, I, C, H, P, M, N, x, _, ee, W, L, O, ne, oe;
264
+ e.item.$formkit === "repeatable" ? (s(!0), h(q, { key: 0 }, Q(e.item.children[0].children.filter(
265
+ (i) => i.$formkit !== "group"
266
+ ), (i, v) => (s(), d(a, { key: v }, {
267
+ default: G(() => {
268
+ var U, V, R, B, C, z, H, M, N, W, _, ee, te, j, T, O, oe;
288
269
  return [
289
- T("div", Se, [
290
- l.$formkit === "url" && e.item.name === "@id" ? (s(), d(B, {
270
+ S("div", Ie, [
271
+ i.$formkit === "url" && e.item.name === "@id" ? (s(), d(L, {
291
272
  key: 0,
292
- label: l.label,
273
+ label: i.label,
293
274
  placeholder: e.item.placeholder,
294
275
  infoIcon: !1,
295
276
  preIcon: !1,
296
277
  showEndIcon: !1,
297
- "show-error": !!i[`${e.item.identifier}-${o}`],
298
- onInput: (m) => U(m, e.item.name, o, "@id"),
278
+ "show-error": !!l[`${e.item.identifier}-${o}`],
279
+ onInput: (m) => w(m, e.item.name, o, "@id"),
299
280
  initialHintText: !1,
300
- "model-value": (V = r.value[o]) == null ? void 0 : V["@id"],
301
- "v-model": (w = r.value[o]) == null ? void 0 : w["@id"]
281
+ "model-value": (U = n.value[o]) == null ? void 0 : U["@id"],
282
+ "v-model": (V = n.value[o]) == null ? void 0 : V["@id"]
302
283
  }, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
303
- l.$formkit === "url" && e.item.name != "@id" ? (s(), d(B, {
284
+ i.$formkit === "url" && e.item.name != "@id" ? (s(), d(L, {
304
285
  key: 1,
305
- label: l.label,
286
+ label: i.label,
306
287
  placeholder: e.item.placeholder,
307
288
  infoIcon: !1,
308
289
  preIcon: !1,
309
290
  showEndIcon: !1,
310
291
  "show-error": !1,
311
- onInput: (m) => U(m, e.item.name, o, l.name),
292
+ onInput: (m) => w(m, e.item.name, o, i.name),
312
293
  initialHintText: !1,
313
- "model-value": (R = r.value[o]) == null ? void 0 : R[l.name],
314
- "v-model": (I = r.value[o]) == null ? void 0 : I[l.name]
294
+ "model-value": (R = n.value[o]) == null ? void 0 : R[i.name],
295
+ "v-model": (B = n.value[o]) == null ? void 0 : B[i.name]
315
296
  }, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) : c("", !0),
316
- l.$formkit === "url" && l.label != "Homepage" && l.label != "Contributor Homepage" && e.item.name != "@id" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Be, [
317
- g(b(E), {
297
+ i.$formkit === "url" && i.label != "Homepage" && i.label != "Contributor Homepage" && e.item.name != "@id" && l[`${e.item.identifier}-${o}`] ? (s(), h("div", Le, [
298
+ b(k(E), {
318
299
  size: 16,
319
300
  weight: "fill"
320
301
  }),
321
- T("span", Ae, S(i[`${e.item.identifier}-${o}`]), 1)
302
+ S("span", Ae, I(l[`${e.item.identifier}-${o}`]), 1)
322
303
  ])) : c("", !0),
323
- l.$formkit === "text" && e.item.name === "@value" ? (s(), d(B, {
304
+ i.$formkit === "text" && e.item.name === "@value" ? (s(), d(L, {
324
305
  key: 3,
325
- label: l.label,
306
+ label: i.label,
326
307
  placeholder: e.item.placeholder,
327
308
  infoIcon: !1,
328
309
  preIcon: !1,
329
310
  showEndIcon: !1,
330
- "show-error": !!i[`${e.item.identifier}-${o}`],
331
- onInput: (m) => U(m, e.item.name, o, "@value"),
311
+ "show-error": !!l[`${e.item.identifier}-${o}`],
312
+ onInput: (m) => w(m, e.item.name, o, "@value"),
332
313
  initialHintText: !1,
333
- "model-value": (C = r.value[o]) == null ? void 0 : C["@value"],
334
- "v-model": (H = r.value[o]) == null ? void 0 : H["@value"]
314
+ "model-value": (C = n.value[o]) == null ? void 0 : C["@value"],
315
+ "v-model": (z = n.value[o]) == null ? void 0 : z["@value"]
335
316
  }, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
336
- l.$formkit === "text" && e.item.name === "@value" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Ce, [
337
- g(b(E), {
317
+ i.$formkit === "text" && e.item.name === "@value" && l[`${e.item.identifier}-${o}`] ? (s(), h("div", Ce, [
318
+ b(k(E), {
338
319
  size: 16,
339
320
  weight: "fill"
340
321
  }),
341
- T("span", Fe, S(i[`${e.item.identifier}-${o}`]), 1)
322
+ S("span", Fe, I(l[`${e.item.identifier}-${o}`]), 1)
342
323
  ])) : c("", !0),
343
- l.$formkit === "text" && e.item.name != "@value" ? (s(), d(B, {
324
+ i.$formkit === "text" && e.item.name != "@value" ? (s(), d(L, {
344
325
  key: 5,
345
- label: l.label,
326
+ label: i.label,
346
327
  placeholder: e.item.placeholder,
347
328
  infoIcon: !1,
348
329
  preIcon: !1,
349
330
  showEndIcon: !1,
350
- "show-error": l.name === "foaf:name" && !!i[`${e.item.identifier}-${o}`],
351
- onInput: (m) => U(m, e.item.name, o, l.name),
331
+ "show-error": i.name === "foaf:name" && !!l[`${e.item.identifier}-${o}`],
332
+ onInput: (m) => w(m, e.item.name, o, i.name),
352
333
  initialHintText: !1,
353
- "model-value": (P = r.value[o]) == null ? void 0 : P[l.name],
354
- "v-model": (M = r.value[o]) == null ? void 0 : M[l.name]
334
+ "model-value": (H = n.value[o]) == null ? void 0 : H[i.name],
335
+ "v-model": (M = n.value[o]) == null ? void 0 : M[i.name]
355
336
  }, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
356
- l.$formkit === "text" && l.name === "foaf:name" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Ee, [
357
- g(b(E), {
337
+ i.$formkit === "text" && i.name === "foaf:name" && l[`${e.item.identifier}-${o}`] ? (s(), h("div", Ee, [
338
+ b(k(E), {
358
339
  size: 16,
359
340
  weight: "fill"
360
341
  }),
361
- T("span", Oe, S(i[`${e.item.identifier}-${o}`]), 1)
342
+ S("span", Oe, I(l[`${e.item.identifier}-${o}`]), 1)
362
343
  ])) : c("", !0),
363
- l.$formkit === "select" && l.identifier !== "language" ? (s(), d(ie, {
344
+ i.$formkit === "select" && i.identifier !== "language" ? (s(), d(ae, {
364
345
  key: 7,
365
346
  dropdownWidth: "large",
366
347
  type: "inputField",
367
- onClick: (m) => D(
368
- Object.values(l.options),
348
+ onClick: (m) => x(
349
+ Object.values(i.options),
369
350
  m,
370
- l.$formkit
351
+ i.$formkit
371
352
  ),
372
- "v-model": (N = r.value[o]) == null ? void 0 : N[l.name],
353
+ "v-model": (N = n.value[o]) == null ? void 0 : N[i.name],
373
354
  inputFieldProps: {
374
355
  addOnText: !1,
375
356
  initialHintText: !1,
376
357
  datePicker: !1,
377
358
  infoIcon: !1,
378
359
  preIcon: !1,
379
- label: l.label,
360
+ label: i.label,
380
361
  dropdown_dpiV3: !0,
381
- placeholder: ((x = r.value[o]) == null ? void 0 : x[l.name]) || l.placeholder,
362
+ placeholder: ((W = n.value[o]) == null ? void 0 : W[i.name]) || i.placeholder,
382
363
  inputFieldSize: "large",
383
364
  autocomplete: "true",
384
- modelValue: (_ = r.value[o]) == null ? void 0 : _[l.name],
385
- showError: e.item.identifier === "temporalResolution" && !!i[`${e.item.identifier}-${o}`]
365
+ modelValue: (_ = n.value[o]) == null ? void 0 : _[i.name],
366
+ showError: e.item.identifier === "temporalResolution" && !!l[`${e.item.identifier}-${o}`]
386
367
  },
387
- "onUpdate:modelValue": (m) => ye(m, e.item.name, o, l.name),
388
- data: b(z),
368
+ "onUpdate:modelValue": (m) => ye(m, e.item.name, o, i.name),
369
+ data: k(P),
389
370
  autocomplete: !1
390
371
  }, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) : c("", !0),
391
- l.$formkit === "auto" ? (s(), d(ie, {
372
+ i.$formkit === "auto" ? (s(), d(ae, {
392
373
  key: 8,
393
374
  dropdownWidth: "large",
394
375
  type: "inputField",
395
- onInput: (m) => D(e.item.voc, m, l.$formkit),
396
- modelValue: b(p),
397
- "onUpdate:modelValue": n[0] || (n[0] = (m) => te(p) ? p.value = m : p = m),
376
+ onInput: (m) => x(e.item.voc, m, i.$formkit),
377
+ modelValue: k(p),
378
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => ie(p) ? p.value = m : p = m),
398
379
  inputFieldProps: {
399
380
  addOnText: !1,
400
381
  initialHintText: !1,
401
382
  datePicker: !1,
402
383
  infoIcon: !1,
403
384
  preIcon: !1,
404
- label: l.label,
385
+ label: i.label,
405
386
  dropdown_dpiV3: !0,
406
- placeholder: ((ee = r.value[o]) == null ? void 0 : ee["@value"]) || e.item.placeholder,
387
+ placeholder: ((ee = n.value[o]) == null ? void 0 : ee["@value"]) || e.item.placeholder,
407
388
  inputFieldSize: "large",
408
389
  autocomplete: "true",
409
- modelValue: b(p),
390
+ modelValue: k(p),
410
391
  showError: !1
411
392
  },
412
393
  onChosenVocItem: (m) => be(m, o, e.item.name),
413
- data: b(z),
394
+ data: k(P),
414
395
  autocomplete: !0
415
396
  }, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) : c("", !0),
416
- l.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(se, {
397
+ i.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(se, {
417
398
  key: 9,
418
- label: l.label,
419
- placeholder: ((W = r.value[o]) == null ? void 0 : W[l.name]) || e.item.placeholder,
399
+ label: i.label,
400
+ placeholder: ((te = n.value[o]) == null ? void 0 : te[i.name]) || e.item.placeholder,
420
401
  infoIcon: !1,
421
402
  preIcon: !1,
422
403
  showEndIcon: !1,
423
- onInput: (m) => U(m, e.item.name, o, "@value"),
404
+ onInput: (m) => w(m, e.item.name, o, "@value"),
424
405
  initialHintText: !1,
425
- "model-value": (L = r.value[o]) == null ? void 0 : L["@value"]
406
+ "model-value": (j = n.value[o]) == null ? void 0 : j["@value"]
426
407
  }, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
427
- l.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(se, {
408
+ i.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(se, {
428
409
  key: 10,
429
- label: l.label,
430
- placeholder: ((O = r.value[o]) == null ? void 0 : O[l.name]) || e.item.placeholder,
410
+ label: i.label,
411
+ placeholder: ((T = n.value[o]) == null ? void 0 : T[i.name]) || e.item.placeholder,
431
412
  infoIcon: !1,
432
413
  preIcon: !1,
433
414
  showEndIcon: !1,
434
- onInput: (m) => U(m, e.item.name, o, l.name),
415
+ onInput: (m) => w(m, e.item.name, o, i.name),
435
416
  initialHintText: !1,
436
- "model-value": (ne = r.value[o]) == null ? void 0 : ne[l.name]
417
+ "model-value": (O = n.value[o]) == null ? void 0 : O[i.name]
437
418
  }, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
438
- l.$formkit === "email" ? (s(), d(B, {
419
+ i.$formkit === "email" ? (s(), d(L, {
439
420
  key: 11,
440
- label: l.label,
421
+ label: i.label,
441
422
  placeholder: e.item.placeholder,
442
423
  addOnText: !1,
443
424
  infoIcon: !1,
444
425
  preIcon: !1,
445
426
  showEndIcon: !1,
446
427
  "show-error": !1,
447
- onInput: (m) => U(m, e.item.name, o, "@value"),
428
+ onInput: (m) => w(m, e.item.name, o, "@value"),
448
429
  initialHintText: !1,
449
- "model-value": (oe = r.value[o]) == null ? void 0 : oe["@value"]
430
+ "model-value": (oe = n.value[o]) == null ? void 0 : oe["@value"]
450
431
  }, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0)
451
432
  ])
452
433
  ];
453
434
  }),
454
435
  _: 2
455
436
  }, 1024))), 128)) : c("", !0),
456
- e.item.identifier === "temporalResolution" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", ze, [
457
- g(b(E), {
437
+ e.item.identifier === "temporalResolution" && l[`${e.item.identifier}-${o}`] ? (s(), h("div", Pe, [
438
+ b(k(E), {
458
439
  size: 16,
459
440
  weight: "fill"
460
441
  }),
461
- T("span", He, S(i[`${e.item.identifier}-${o}`]), 1)
442
+ S("span", ze, I(l[`${e.item.identifier}-${o}`]), 1)
462
443
  ])) : c("", !0),
463
- g(Le, {
444
+ b(Te, {
464
445
  "button-text": "löschen",
465
446
  class: "rightAlign",
466
- onClick: (l) => ge(e.item.name, o)
447
+ onClick: (i) => he(e.item.name, o)
467
448
  }, null, 8, ["onClick"])
468
449
  ]))), 128)) : c("", !0),
469
450
  e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(), d(a, { key: 1 }, {
470
- default: q(() => {
451
+ default: G(() => {
471
452
  var y, o;
472
453
  return [
473
- T("div", Pe, [
474
- e.item.$formkit === "simpleInput" ? (s(), d(B, {
454
+ S("div", He, [
455
+ e.item.$formkit === "simpleInput" ? (s(), d(L, {
475
456
  key: 0,
476
457
  label: e.item.label,
477
458
  placeholder: e.item.placeholder,
478
459
  infoIcon: !1,
479
460
  preIcon: !1,
480
461
  showEndIcon: !1,
481
- "show-error": !!i[e.item.identifier],
482
- onInput: n[1] || (n[1] = (l) => U(l, e.item.name, 0, "@value")),
462
+ "show-error": !!l[e.item.identifier],
463
+ onInput: r[1] || (r[1] = (i) => w(i, e.item.name, 0, "@value")),
483
464
  initialHintText: !1,
484
- "model-value": (y = r.value[0]) == null ? void 0 : y["@value"]
465
+ "model-value": (y = n.value[0]) == null ? void 0 : y["@value"]
485
466
  }, null, 8, ["label", "placeholder", "show-error", "model-value"])) : c("", !0),
486
- e.item.$formkit === "simpleInput" && i[e.item.identifier] ? (s(), h("div", Me, [
487
- g(b(E), {
467
+ e.item.$formkit === "simpleInput" && l[e.item.identifier] ? (s(), h("div", Me, [
468
+ b(k(E), {
488
469
  size: 16,
489
470
  weight: "fill"
490
471
  }),
491
- T("span", Ne, S(i[e.item.identifier]), 1)
472
+ S("span", Ne, I(l[e.item.identifier]), 1)
492
473
  ])) : c("", !0),
493
- e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (s(!0), h(j, { key: 2 }, Y(e.item.children, (l, v) => {
494
- var V, w;
495
- return s(), d(B, {
474
+ e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (s(!0), h(q, { key: 2 }, Q(e.item.children, (i, v) => {
475
+ var U, V;
476
+ return s(), d(L, {
496
477
  key: v,
497
- label: l.label,
478
+ label: i.label,
498
479
  placeholder: e.item.placeholder,
499
480
  infoIcon: !1,
500
481
  preIcon: !1,
501
482
  showEndIcon: !1,
502
- "show-error": !!i[e.item.identifier],
503
- onInput: (R) => U(R, e.item.name, v, l.name),
483
+ "show-error": !!l[e.item.identifier],
484
+ onInput: (R) => w(R, e.item.name, v, i.name),
504
485
  initialHintText: !1,
505
- "model-value": (V = r.value[v]) == null ? void 0 : V[l.name],
506
- "v-model": (w = r.value[v]) == null ? void 0 : w[l.name]
486
+ "model-value": (U = n.value[v]) == null ? void 0 : U[i.name],
487
+ "v-model": (V = n.value[v]) == null ? void 0 : V[i.name]
507
488
  }, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"]);
508
489
  }), 128)) : c("", !0),
509
490
  re.value ? (s(), h("div", We, [
510
- g(b(E), {
491
+ b(k(E), {
511
492
  size: 16,
512
493
  weight: "fill"
513
494
  }),
514
- T("span", je, S(re.value.message), 1)
495
+ S("span", je, I(re.value.message), 1)
515
496
  ])) : c("", !0),
516
- e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (s(!0), h(j, { key: 4 }, Y(e.item.children, (l, v) => {
517
- var V, w, R, I;
518
- return s(), d(B, {
497
+ e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (s(!0), h(q, { key: 4 }, Q(e.item.children, (i, v) => {
498
+ var U, V, R, B;
499
+ return s(), d(L, {
519
500
  key: v,
520
- label: l.label,
501
+ label: i.label,
521
502
  placeholder: e.item.placeholder,
522
503
  infoIcon: !1,
523
504
  preIcon: !1,
@@ -525,21 +506,21 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
525
506
  inputType: "date",
526
507
  showEndIcon: !1,
527
508
  "show-error": !1,
528
- onInput: (C) => U(C, e.item.name, v, l.name),
509
+ onInput: (C) => w(C, e.item.name, v, i.name),
529
510
  initialHintText: !1,
530
- "model-value": (w = (V = r.value[v]) == null ? void 0 : V[l.name]) == null ? void 0 : w["@value"],
531
- "v-model": (I = (R = r.value[v]) == null ? void 0 : R[l.name]) == null ? void 0 : I["@value"]
511
+ "model-value": (V = (U = n.value[v]) == null ? void 0 : U[i.name]) == null ? void 0 : V["@value"],
512
+ "v-model": (B = (R = n.value[v]) == null ? void 0 : R[i.name]) == null ? void 0 : B["@value"]
532
513
  }, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"]);
533
514
  }), 128)) : c("", !0),
534
- e.item.$formkit === "auto" ? (s(), d(ie, {
515
+ e.item.$formkit === "auto" ? (s(), d(ae, {
535
516
  key: 5,
536
517
  dropdownWidth: "large",
537
518
  type: "inputField",
538
- onInput: n[2] || (n[2] = (l) => {
539
- D(e.item.voc, l, e.item.$formkit), te(Z) ? Z.value = !0 : Z = !0;
519
+ onInput: r[2] || (r[2] = (i) => {
520
+ x(e.item.voc, i, e.item.$formkit), ie(J) ? J.value = !0 : J = !0;
540
521
  }),
541
- modelValue: b(p),
542
- "onUpdate:modelValue": n[3] || (n[3] = (l) => te(p) ? p.value = l : p = l),
522
+ modelValue: k(p),
523
+ "onUpdate:modelValue": r[3] || (r[3] = (i) => ie(p) ? p.value = i : p = i),
543
524
  inputFieldProps: {
544
525
  addOnText: !1,
545
526
  initialHintText: !1,
@@ -548,22 +529,22 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
548
529
  preIcon: !1,
549
530
  label: e.item.label,
550
531
  dropdown_dpiV3: !0,
551
- placeholder: ((o = r.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
532
+ placeholder: ((o = n.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
552
533
  inputFieldSize: "large",
553
534
  autocomplete: "true",
554
- modelValue: b(p),
555
- showError: !!i[e.item.identifier]
535
+ modelValue: k(p),
536
+ showError: !!l[e.item.identifier]
556
537
  },
557
538
  onChosenVocItem: $e,
558
- data: b(z),
539
+ data: k(P),
559
540
  autocomplete: !0
560
541
  }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
561
- i[e.item.identifier] ? (s(), h("div", qe, [
562
- g(b(E), {
542
+ l[e.item.identifier] ? (s(), h("div", qe, [
543
+ b(k(E), {
563
544
  size: 16,
564
545
  weight: "fill"
565
546
  }),
566
- T("span", Ge, S(i[e.item.identifier]), 1)
547
+ S("span", Ge, I(l[e.item.identifier]), 1)
567
548
  ])) : c("", !0)
568
549
  ])
569
550
  ];
@@ -574,26 +555,26 @@ const Se = { class: "dpiV3_LinkAndMetadata" }, Be = {
574
555
  _: 1
575
556
  }),
576
557
  e.item.$formkit === "repeatable" ? (s(), h("div", Ze, [
577
- g(le, {
558
+ b(le, {
578
559
  buttonText: "Weitere hinzufügen",
579
560
  size: "large",
580
561
  iconStart: "plus",
581
562
  variant: "tertiary",
582
563
  class: "mt-3",
583
- onClick: n[4] || (n[4] = (y) => ve(e.item))
564
+ onClick: r[4] || (r[4] = (y) => ge(e.item))
584
565
  })
585
566
  ])) : c("", !0),
586
- g($, { class: "dpiV3_interactionWrap" }, {
587
- default: q(() => [
588
- T("div", Je, [
589
- g(le, {
590
- onClick: he,
567
+ b($, { class: "dpiV3_interactionWrap" }, {
568
+ default: G(() => [
569
+ S("div", Je, [
570
+ b(le, {
571
+ onClick: ve,
591
572
  buttonText: "Zurück",
592
573
  size: "large",
593
574
  iconStart: "CaretLeft",
594
575
  variant: "tertiary"
595
576
  }),
596
- g(le, {
577
+ b(le, {
597
578
  onClick: pe,
598
579
  buttonText: "Speichern",
599
580
  size: "large"