@piveau/dpi 0.1.0-beta.61 → 0.1.0-beta.62

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