@piveau/dpi 0.1.0-beta.42 → 0.1.0-beta.44

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