@piveau/dpi 0.2.0-alpha.59 → 0.2.0-alpha.60

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,94 +1,94 @@
1
- import { ref as i, watch as Ke, onMounted as Qe, getCurrentInstance as Xe, createElementBlock as c, openBlock as o, Fragment as D, createCommentVNode as l, createElementVNode as u, normalizeClass as S, createVNode as y, toDisplayString as h, renderList as _e, createBlock as k } from "vue";
2
- import Ye from "./TextButtonSmall.vue.js";
3
- import L from "./ButtonV3.vue.js";
4
- import ne from "./CrossOutButton.vue.js";
5
- import et from "./CloseOpenButtonV3.vue.js";
6
- import { getPlannedAvailability as tt, getLanguages as at } from "../services/dpiV3_apis.js";
7
- import it from "./OptionalInformation/DocumentationsV3.vue.js";
8
- import st from "./OptionalInformation/ModifiedDateV3.vue.js";
9
- import ot from "./OptionalInformation/DescriptionV3.vue.js";
10
- import lt from "./OptionalInformation/AvailabilityV3.vue.js";
11
- import dt from "./OptionalInformation/ByteSizeV3.vue.js";
12
- import rt from "./OptionalInformation/IssuedDateV3.vue.js";
13
- import nt from "./OptionalInformation/LanguageV3.vue.js";
14
- import ct from "./OptionalInformation/AccessRightsV3.vue.js";
15
- import ce from "./OptionalInformation/FileFormatV3.vue.js";
16
- import ut from "./OptionalInformation/StatusV3.vue.js";
17
- import mt from "./OptionalInformation/ChecksumV3.vue.js";
18
- import pt from "./OptionalInformation/ConformsToV3.vue.js";
19
- import ft from "./OptionalInformation/PolicyV3.vue.js";
20
- import vt from "./OptionalInformation/AccessServiceV3.vue.js";
21
- import yt from "./OptionalInformation/ChangeLicenseV3.vue.js";
1
+ import { ref as i, computed as Qe, watch as Xe, onMounted as et, getCurrentInstance as tt, createElementBlock as u, openBlock as l, Fragment as D, createCommentVNode as d, createElementVNode as f, normalizeClass as F, createVNode as y, toDisplayString as h, renderList as Te, createBlock as g } from "vue";
2
+ import { getPlannedAvailability as at, getLanguages as it } from "../services/dpiV3_apis.js";
3
+ import w from "./ButtonV3.vue.js";
4
+ import st from "./CloseOpenButtonV3.vue.js";
5
+ import re from "./CrossOutButton.vue.js";
6
+ import ot from "./OptionalInformation/AccessRightsV3.vue.js";
7
+ import lt from "./OptionalInformation/AccessServiceV3.vue.js";
8
+ import dt from "./OptionalInformation/AvailabilityV3.vue.js";
9
+ import nt from "./OptionalInformation/ByteSizeV3.vue.js";
10
+ import rt from "./OptionalInformation/ChangeLicenseV3.vue.js";
11
+ import ut from "./OptionalInformation/ChecksumV3.vue.js";
12
+ import ct from "./OptionalInformation/ConformsToV3.vue.js";
13
+ import ft from "./OptionalInformation/DescriptionV3.vue.js";
14
+ import mt from "./OptionalInformation/DocumentationsV3.vue.js";
15
+ import ue from "./OptionalInformation/FileFormatV3.vue.js";
16
+ import pt from "./OptionalInformation/IssuedDateV3.vue.js";
17
+ import vt from "./OptionalInformation/LanguageV3.vue.js";
18
+ import yt from "./OptionalInformation/ModifiedDateV3.vue.js";
19
+ import ht from "./OptionalInformation/PolicyV3.vue.js";
20
+ import kt from "./OptionalInformation/StatusV3.vue.js";
21
+ import gt from "./TextButtonSmall.vue.js";
22
22
  /* empty css */
23
23
  /* empty css */
24
- import ht from "../../../../../../_virtual/_plugin-vue_export-helper.js";
25
- const gt = {
24
+ import bt from "../../../../../../_virtual/_plugin-vue_export-helper.js";
25
+ const _t = {
26
26
  key: 0,
27
27
  class: "dpiV3_modalBackground"
28
- }, kt = { class: "dpiV3_modalHeaderWrap" }, bt = { class: "dpiV3_modalText" }, Tt = {
28
+ }, Vt = { class: "dpiV3_modalHeaderWrap" }, It = { class: "dpiV3_modalText" }, Tt = {
29
29
  key: 0,
30
30
  class: "dpiV3AutoCompleteWrapDeleteModal copy-large-semi-bold"
31
- }, Vt = { class: "dpiV3_LinkInfos" }, _t = ["href"], It = { class: "dpiV3_title" }, xt = ["href"], Dt = { class: "dpiV3_title" }, Lt = {
31
+ }, xt = { class: "dpiV3_LinkInfos" }, Dt = ["href"], wt = { class: "dpiV3_title" }, Ct = ["href"], Lt = { class: "dpiV3_title" }, Ut = {
32
32
  key: 2,
33
33
  class: "dpiV3_File-Format copy-small-regular"
34
- }, Ct = {
34
+ }, At = {
35
35
  key: 0,
36
36
  class: "dpiV3_modalButtonWrap"
37
- }, wt = {
37
+ }, St = {
38
38
  key: 1,
39
39
  class: "dpiV3_optionalInfoContent"
40
- }, At = { class: "dpiV3_ListMetaData" }, Ut = { class: "dpiV3_title-description" }, Ft = { class: "dpiV3_group-title" }, St = { class: "dpiV3_caret" }, Rt = ["onClick"], qt = {
40
+ }, Ft = { class: "dpiV3_ListMetaData" }, Rt = { class: "dpiV3_title-description" }, qt = { class: "dpiV3_group-title" }, Bt = { class: "dpiV3_caret" }, zt = ["onClick"], Mt = {
41
41
  key: 1,
42
42
  class: "dpiV3_sectionDivider"
43
- }, Bt = {
43
+ }, $t = {
44
44
  key: 1,
45
45
  class: "dpiV3_modalBackground"
46
- }, zt = { class: "dpiV3_modalHeaderWrap" }, Mt = {
46
+ }, Et = { class: "dpiV3_modalHeaderWrap" }, Pt = {
47
47
  key: 0,
48
48
  class: "dpiV3_modalContent"
49
- }, Pt = {
49
+ }, Wt = {
50
50
  key: 1,
51
51
  class: "dpiV3_modalContent"
52
- }, $t = {
52
+ }, Ot = {
53
53
  key: 2,
54
54
  class: "dpiV3_modalContent"
55
- }, Wt = {
55
+ }, Ht = {
56
56
  key: 3,
57
57
  class: "dpiV3_modified"
58
- }, Et = {
58
+ }, Nt = {
59
59
  key: 4,
60
60
  class: "dpiV3_modified"
61
- }, Ot = {
61
+ }, jt = {
62
62
  key: 5,
63
63
  class: "dpiV3_modified"
64
- }, Ht = {
64
+ }, Kt = {
65
65
  key: 6,
66
66
  class: "dpiV3_modified"
67
- }, Nt = {
67
+ }, Yt = {
68
68
  key: 7,
69
69
  class: "dpiV3_DocumentationV3_Wrap"
70
- }, jt = {
70
+ }, Zt = {
71
71
  key: 8,
72
72
  class: "dpiV3_DocumentationV3_Wrap"
73
- }, Zt = {
73
+ }, Gt = {
74
74
  key: 12,
75
75
  class: "dpiV3_DocumentationV3_Wrap"
76
- }, Gt = {
76
+ }, Jt = {
77
77
  key: 13,
78
78
  class: "dpiV3_DocumentationV3_Wrap"
79
- }, Jt = { class: "dpiV3_modalButtonWrap" }, Kt = {
79
+ }, Qt = { class: "dpiV3_modalButtonWrap" }, Xt = {
80
80
  key: 2,
81
81
  class: "dpiV3_modalBackground"
82
- }, Qt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, Xt = { class: "dpiV3_modalHeaderWrap" }, Yt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, ea = { class: "dpiV3_LinkInfos" }, ta = {
82
+ }, ea = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, ta = { class: "dpiV3_modalHeaderWrap" }, aa = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, ia = { class: "dpiV3_LinkInfos" }, sa = {
83
83
  key: 0,
84
84
  class: "dpiV3_title"
85
- }, aa = {
85
+ }, oa = {
86
86
  key: 1,
87
87
  class: "dpiV3_title"
88
- }, ia = {
88
+ }, la = {
89
89
  key: 2,
90
90
  class: "dpiV3_title"
91
- }, sa = { class: "dpiV3_modalButtonWrap" }, oa = {
91
+ }, da = { class: "dpiV3_modalButtonWrap" }, na = {
92
92
  __name: "ModalV3",
93
93
  props: {
94
94
  headerText: { type: String, required: !0 },
@@ -148,508 +148,536 @@ const gt = {
148
148
  "addChecksum",
149
149
  "addChangeLicense"
150
150
  ],
151
- setup(f, { emit: Ie }) {
152
- const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v = Ie, $ = i(!1), W = i(!1), E = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
151
+ setup(p, { emit: xe }) {
152
+ const e = p, v = xe, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), $ = i(null), E = i(!1), P = i(!1), W = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
153
153
  i(!1);
154
- const Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1), ae = i(!1), I = i([]), r = i({ key: "", text: "" }), xe = i(null), ie = i(!1), C = i(null), se = i(null);
154
+ const K = i(!1), Y = i(!1), Z = i(!1), G = i(!1), J = i(!1), Q = i(!1), X = i(!1), ee = i(!1), te = i(!1), ae = i(!1), T = i([]), r = i({ key: "", text: "" }), De = i(null), ie = i(!1), C = i(null), se = i(null);
155
155
  i([...e.fileTypes]);
156
- const De = i([]), Le = i([]);
156
+ const we = i([]), Ce = i([]);
157
157
  i(null);
158
- const Ce = i(!1), ue = i(""), me = i(""), pe = i(""), fe = i(""), b = i({}), T = i({}), V = i({}), _ = i({}), ve = i(""), ye = i(""), he = i(""), ge = i(0), ke = i(""), be = i(""), Te = i(""), w = i(""), A = i(""), we = i(""), U = i(""), F = i(""), oe = i(!0);
158
+ const Le = i(!1), ce = i(""), fe = i(""), me = i(""), pe = i(""), b = i({}), _ = i({}), V = i({}), I = i({}), ve = i(""), ye = i(""), he = i(""), ke = i(0), ge = i(""), be = i(""), _e = i(""), L = i(""), U = i(""), Ue = i(""), A = i(""), S = i(""), oe = i(!0);
159
159
  i(!0);
160
- const Ae = (a, t) => {
160
+ const Ae = ["dcterms:license"], Ve = Qe(() => e.sections ? e.sections.map((t) => {
161
+ const a = t.keys.map((o, c) => Ae.includes(o) ? -1 : c).filter((o) => o !== -1);
162
+ return {
163
+ ...t,
164
+ items: a.map((o) => t.items[o]),
165
+ keys: a.map((o) => t.keys[o])
166
+ };
167
+ }) : []);
168
+ function Se(t, a) {
161
169
  oe.value = !1, r.value = {
162
- key: e.sections[a].keys[t],
163
- text: e.sections[a].items[t]
164
- }, b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), _.value[e.distributionId] || (_.value[e.distributionId] = []);
165
- }, le = () => {
170
+ key: e.sections[t].keys[a],
171
+ text: e.sections[t].items[a]
172
+ }, b.value[e.distributionId] || (b.value[e.distributionId] = []), _.value[e.distributionId] || (_.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), I.value[e.distributionId] || (I.value[e.distributionId] = []);
173
+ }
174
+ function le() {
166
175
  oe.value = !0, r.value = { key: "", text: "" };
167
- }, Ue = () => {
168
- const a = (t) => {
169
- if (!t || t.trim() === "") return !1;
170
- const n = t.trim();
171
- return /\.[a-zA-Z]{2,}$/.test(n);
176
+ }
177
+ function Fe() {
178
+ const t = (a) => {
179
+ if (!a || a.trim() === "")
180
+ return !1;
181
+ const o = a.trim();
182
+ return /\.[a-z]{2,}$/i.test(o);
172
183
  };
173
- if (E.value) {
174
- const t = V.value[e.distributionId] || [];
175
- if (t.some((d) => {
176
- const s = d["dct:title"] && d["dct:title"].trim() !== "", p = d["dcat:downloadURL"] ? d["dcat:downloadURL"].trim() : "";
177
- return !!(s && (!p || !a(p)) || p && !a(p));
184
+ if (W.value) {
185
+ const a = V.value[e.distributionId] || [];
186
+ if (a.some((n) => {
187
+ const s = n["dct:title"] && n["dct:title"].trim() !== "", m = n["dcat:downloadURL"] ? n["dcat:downloadURL"].trim() : "";
188
+ return !!(s && (!m || !t(m)) || m && !t(m));
178
189
  })) {
179
190
  R.value && R.value.validateAllItems();
180
191
  return;
181
192
  }
182
- const m = t.filter((d) => {
183
- const s = d["dct:title"] && d["dct:title"].trim() !== "", p = d["dcat:downloadURL"] && d["dcat:downloadURL"].trim() !== "" && a(d["dcat:downloadURL"].trim());
184
- return s || p;
193
+ const c = a.filter((n) => {
194
+ const s = n["dct:title"] && n["dct:title"].trim() !== "", m = n["dcat:downloadURL"] && n["dcat:downloadURL"].trim() !== "" && t(n["dcat:downloadURL"].trim());
195
+ return s || m;
185
196
  });
186
- m.length > 0 && v(
197
+ c.length > 0 && v(
187
198
  "addConformsToItems",
188
199
  e.distributionId,
189
- m
190
- ), E.value = !1;
200
+ c
201
+ ), W.value = !1;
191
202
  }
192
203
  if (O.value) {
193
- const t = _.value[e.distributionId] || [];
194
- if (t.some((d) => {
195
- const s = d["dcat:downloadURL"] ? d["dcat:downloadURL"].trim() : "";
196
- return !!(s && !a(s));
204
+ const a = I.value[e.distributionId] || [];
205
+ if (a.some((n) => {
206
+ const s = n["dcat:downloadURL"] ? n["dcat:downloadURL"].trim() : "";
207
+ return !!(s && !t(s));
197
208
  })) {
198
- P.value && P.value.validateAllItems();
209
+ $.value && $.value.validateAllItems();
199
210
  return;
200
211
  }
201
- const m = t.filter((d) => d["dcat:downloadURL"] && d["dcat:downloadURL"].trim() !== "" && a(d["dcat:downloadURL"].trim()));
202
- m.length > 0 && v("addPolicyItems", e.distributionId, m), O.value = !1;
212
+ const c = a.filter((n) => n["dcat:downloadURL"] && n["dcat:downloadURL"].trim() !== "" && t(n["dcat:downloadURL"].trim()));
213
+ c.length > 0 && v("addPolicyItems", e.distributionId, c), O.value = !1;
203
214
  }
204
- if ($.value) {
205
- const t = b.value[e.distributionId] || [], n = (s) => {
206
- const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
207
- return p || g || x;
215
+ if (E.value) {
216
+ const a = b.value[e.distributionId] || [], o = (s) => {
217
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
218
+ return m || k || x;
208
219
  };
209
- if (t.some((s) => {
210
- const p = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
211
- return !!(n(s) && (!p || !a(p)) || p && !a(p));
220
+ if (a.some((s) => {
221
+ const m = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
222
+ return !!(o(s) && (!m || !t(m)) || m && !t(m));
212
223
  })) {
213
224
  q.value && q.value.validateAllItems();
214
225
  return;
215
226
  }
216
- const d = t.filter((s) => {
217
- const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0), Je = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && a(s["dcat:accessURL"].trim());
218
- return p || g || x || Je;
227
+ const n = a.filter((s) => {
228
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0), Je = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && t(s["dcat:accessURL"].trim());
229
+ return m || k || x || Je;
219
230
  });
220
- d.length > 0 && v(
231
+ n.length > 0 && v(
221
232
  "addDocumentations",
222
233
  e.distributionId,
223
- d
224
- ), $.value = !1;
234
+ n
235
+ ), E.value = !1;
225
236
  }
226
- if (W.value) {
227
- const t = T.value[e.distributionId] || [], n = (s) => {
228
- const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "";
229
- return p || g;
237
+ if (P.value) {
238
+ const a = _.value[e.distributionId] || [], o = (s) => {
239
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
240
+ return m || k;
230
241
  };
231
- if (t.some((s) => {
232
- const p = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
233
- return !!(n(s) && (!p || !a(p)) || p && !a(p));
242
+ if (a.some((s) => {
243
+ const m = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
244
+ return !!(o(s) && (!m || !t(m)) || m && !t(m));
234
245
  })) {
235
246
  B.value && B.value.validateAllItems();
236
247
  return;
237
248
  }
238
- const d = t.filter((s) => {
239
- const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dcat:downloadURL"] && s["dcat:downloadURL"].trim() !== "" && a(s["dcat:downloadURL"].trim());
240
- return p || g || x;
249
+ const n = a.filter((s) => {
250
+ const m = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dcat:downloadURL"] && s["dcat:downloadURL"].trim() !== "" && t(s["dcat:downloadURL"].trim());
251
+ return m || k || x;
241
252
  });
242
- d.length > 0 && v(
253
+ n.length > 0 && v(
243
254
  "addAccessServices",
244
255
  e.distributionId,
245
- d
246
- ), W.value = !1;
256
+ n
257
+ ), P.value = !1;
247
258
  }
248
- if (H.value && (v("addModifiedDate", ue.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), Z.value && (v("addAccessRights", fe.value, e.distributionId, e.uri), Z.value = !1), G.value && (v("addAvailability", ve.value, e.distributionId, e.uri), G.value = !1), ee.value && (v("addStatus", ye.value, e.distributionId), ee.value = !1), te.value) {
249
- const t = w.value && w.value.trim() !== "", n = A.value && A.value.trim() !== "";
250
- if ((t || n) && (!t || !n)) {
259
+ if (H.value && (v("addModifiedDate", ce.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", fe.value, e.distributionId), N.value = !1), j.value && (v("addDescription", me.value, e.distributionId), j.value = !1), K.value && (v("addAccessRights", pe.value, e.distributionId, e.uri), K.value = !1), Y.value && (v("addAvailability", ve.value, e.distributionId, e.uri), Y.value = !1), ee.value && (v("addStatus", ye.value, e.distributionId), ee.value = !1), te.value) {
260
+ const a = L.value && L.value.trim() !== "", o = U.value && U.value.trim() !== "";
261
+ if ((a || o) && (!a || !o)) {
251
262
  z.value && z.value.validateAllItems();
252
263
  return;
253
264
  }
254
- t && n && v(
265
+ a && o && v(
255
266
  "addChecksum",
256
- w.value,
257
- A.value,
267
+ L.value,
268
+ U.value,
258
269
  e.distributionId,
259
- we.value
270
+ Ue.value
260
271
  ), te.value = !1;
261
272
  }
262
273
  if (ae.value) {
263
- const t = typeof F.value == "string" ? F.value.trim() : "", n = typeof U.value == "string" ? U.value.trim() : "";
264
- if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !n || // by- license without attribution
265
- n && !t) {
274
+ const a = typeof S.value == "string" ? S.value.trim() : "", o = typeof A.value == "string" ? A.value.trim() : "";
275
+ if (a && (a.toLowerCase().includes("cc-by") || a.toLowerCase().includes("cc by")) && !o || o && !a) {
266
276
  M.value && M.value.validate();
267
277
  return;
268
278
  }
269
- (t || n) && v(
279
+ (a || o) && v(
270
280
  "addChangeLicense",
271
- U.value,
272
- F.value,
281
+ A.value,
282
+ S.value,
273
283
  e.distributionId
274
284
  ), ae.value = !1;
275
285
  }
276
- J.value && (v("addLanguage", he.value, e.distributionId, e.uri), J.value = !1), K.value && (v("addByteSize", ge.value, e.distributionId), K.value = !1), Q.value && (v(
286
+ Z.value && (v("addLanguage", he.value, e.distributionId, e.uri), Z.value = !1), G.value && (v("addByteSize", ke.value, e.distributionId), G.value = !1), J.value && (v(
277
287
  "addMediaType",
278
- ke.value,
288
+ ge.value,
279
289
  "dcat:mediaType",
280
290
  e.distributionId
281
- ), Q.value = !1), X.value && (v(
291
+ ), J.value = !1), Q.value && (v(
282
292
  "addCompressFormat",
283
293
  be.value,
284
294
  "dcat:compressFormat",
285
295
  e.distributionId
286
- ), X.value = !1), Y.value && (v(
296
+ ), Q.value = !1), X.value && (v(
287
297
  "addPackageFormat",
288
- Te.value,
298
+ _e.value,
289
299
  "dcat:packageFormat",
290
300
  e.distributionId
291
- ), Y.value = !1), le();
292
- };
293
- Ke(
301
+ ), X.value = !1), le();
302
+ }
303
+ Xe(
294
304
  () => e.sections,
295
- (a) => {
296
- Array.isArray(a) && a.length > 0 && (I.value = a.map((t, n) => n === 0));
305
+ (t) => {
306
+ Array.isArray(t) && t.length > 0 && (T.value = t.map((a, o) => o === 0));
297
307
  },
298
308
  { immediate: !0 }
299
309
  );
300
- const Fe = (a) => {
301
- I.value[a] = !I.value[a];
302
- }, de = () => {
310
+ function Re(t) {
311
+ T.value[t] = !T.value[t];
312
+ }
313
+ function de() {
303
314
  v("close");
304
- }, Se = () => {
315
+ }
316
+ function qe() {
305
317
  v("actionHandling", e.action), de();
306
- };
307
- Qe(async () => {
308
- b.value[e.distributionId] = e.documentations, T.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, _.value[e.distributionId] = e.policyItems;
309
- const a = Xe(), t = a.appContext.app.config.globalProperties.$env;
318
+ }
319
+ et(async () => {
320
+ b.value[e.distributionId] = e.documentations, _.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, I.value[e.distributionId] = e.policyItems;
321
+ const t = tt(), a = t.appContext.app.config.globalProperties.$env;
310
322
  try {
311
- const m = await tt(t.api.baseUrl);
312
- De.value = m.map((d) => ({
313
- "@value": d.value,
314
- label: d.label
323
+ const c = await at(a.api.baseUrl);
324
+ we.value = c.map((n) => ({
325
+ "@value": n.value,
326
+ label: n.label
315
327
  }));
316
- } catch (m) {
317
- console.error("Failed to load planned availability data", m);
328
+ } catch (c) {
329
+ console.error("Failed to load planned availability data", c);
318
330
  }
319
- const n = a.appContext.app.config.globalProperties.$i18n.locale;
331
+ const o = t.appContext.app.config.globalProperties.$i18n.locale;
320
332
  try {
321
- const m = await at(t.api.baseUrl, n);
322
- Le.value = m.map((d) => ({
323
- "@value": d.label,
324
- label: d.label
333
+ const c = await it(a.api.baseUrl, o);
334
+ Ce.value = c.map((n) => ({
335
+ "@value": n.label,
336
+ label: n.label
325
337
  }));
326
- } catch (m) {
327
- console.error("Failed to load language data", m);
338
+ } catch (c) {
339
+ console.error("Failed to load language data", c);
328
340
  }
329
341
  });
330
- const Re = (a, t) => {
331
- console.log(t), b.value[a] = t, $.value = !0;
332
- }, qe = (a, t) => {
333
- T.value[a] = t, W.value = !0;
334
- }, Be = (a, t) => {
335
- V.value[a] = t, E.value = !0;
336
- }, ze = (a, t) => {
337
- _.value[a] = t, O.value = !0;
338
- }, Me = (a) => {
339
- ue.value = a, H.value = !0;
340
- }, Pe = (a) => {
341
- me.value = a, N.value = !0;
342
- }, $e = (a) => {
343
- pe.value = a, j.value = !0;
344
- }, We = (a, t) => {
345
- console.log(a, t), fe.value = a, Z.value = !0;
346
- }, Ee = (a) => {
347
- ve.value = a, G.value = !0;
348
- }, Oe = (a) => {
349
- ye.value = a, ee.value = !0;
350
- }, He = (a, t) => {
351
- console.log(e.checksumURI), te.value = !0, A.value = t, w.value = a;
352
- }, Ne = (a, t, n, m) => {
353
- console.log(a, t, n, m), ae.value = !0, F.value = t, U.value = a;
354
- }, je = (a) => {
355
- he.value = a, J.value = !0;
356
- }, re = (a, t) => {
357
- switch (t) {
342
+ function Be(t, a) {
343
+ console.log(a), b.value[t] = a, E.value = !0;
344
+ }
345
+ function ze(t, a) {
346
+ _.value[t] = a, P.value = !0;
347
+ }
348
+ function Me(t, a) {
349
+ V.value[t] = a, W.value = !0;
350
+ }
351
+ function $e(t, a) {
352
+ I.value[t] = a, O.value = !0;
353
+ }
354
+ function Ee(t) {
355
+ ce.value = t, H.value = !0;
356
+ }
357
+ function Pe(t) {
358
+ fe.value = t, N.value = !0;
359
+ }
360
+ function We(t) {
361
+ me.value = t, j.value = !0;
362
+ }
363
+ function Oe(t, a) {
364
+ console.log(t, a), pe.value = t, K.value = !0;
365
+ }
366
+ function He(t) {
367
+ ve.value = t, Y.value = !0;
368
+ }
369
+ function Ne(t) {
370
+ ye.value = t, ee.value = !0;
371
+ }
372
+ function je(t, a) {
373
+ console.log(e.checksumURI), te.value = !0, U.value = a, L.value = t;
374
+ }
375
+ function Ke(t, a, o, c) {
376
+ console.log(t, a, o, c), ae.value = !0, S.value = a, A.value = t;
377
+ }
378
+ function Ye(t) {
379
+ he.value = t, Z.value = !0;
380
+ }
381
+ function ne(t, a) {
382
+ switch (a) {
358
383
  case "dcat:mediaType":
359
- Q.value = !0, ke.value = a;
384
+ J.value = !0, ge.value = t;
360
385
  break;
361
386
  case "dcat:compressFormat":
362
- X.value = !0, be.value = a;
387
+ Q.value = !0, be.value = t;
363
388
  break;
364
389
  case "dcat:packageFormat":
365
- Y.value = !0, Te.value = a;
390
+ X.value = !0, _e.value = t;
366
391
  break;
367
392
  }
368
- }, Ze = (a) => {
369
- ge.value = a, K.value = !0;
370
- }, Ve = () => {
371
- ie.value = !1, xe.value = null;
372
- }, Ge = () => {
373
- ie.value = !1, Ce.value = !1;
374
- };
375
- return (a, t) => (o(), c(D, null, [
376
- oe.value ? (o(), c("div", gt, [
377
- u("div", {
378
- class: S(["dpiV3_modalWrap", {
393
+ }
394
+ function Ze(t) {
395
+ ke.value = t, G.value = !0;
396
+ }
397
+ function Ie() {
398
+ ie.value = !1, De.value = null;
399
+ }
400
+ function Ge() {
401
+ ie.value = !1, Le.value = !1;
402
+ }
403
+ return (t, a) => (l(), u(D, null, [
404
+ oe.value ? (l(), u("div", _t, [
405
+ f("div", {
406
+ class: F(["dpiV3_modalWrap", {
379
407
  dpiV3_optionalInfo: e.optionalInfoView || r.value.key === "foaf:page"
380
408
  }])
381
409
  }, [
382
- u("div", {
383
- class: S(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
410
+ f("div", {
411
+ class: F(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
384
412
  }, [
385
- u("div", kt, [
386
- u("h2", {
387
- class: S({ dpiV3_optionalInfoHeader: e.optionalInfoView })
413
+ f("div", Vt, [
414
+ f("h2", {
415
+ class: F({ dpiV3_optionalInfoHeader: e.optionalInfoView })
388
416
  }, h(e.headerText), 3),
389
- y(ne, {
417
+ y(re, {
390
418
  class: "dpiv3_modalCrossout",
391
419
  onClick: de
392
420
  })
393
421
  ]),
394
- u("span", bt, h(e.text), 1),
395
- !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), c("div", Tt, [
396
- u("div", Vt, [
397
- e.title ? (o(), c("a", {
422
+ f("span", It, h(e.text), 1),
423
+ !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (l(), u("div", Tt, [
424
+ f("div", xt, [
425
+ e.title ? (l(), u("a", {
398
426
  key: 0,
399
427
  href: e.distributionLink,
400
428
  target: "_blank"
401
429
  }, [
402
- u("div", It, h(e.title), 1)
403
- ], 8, _t)) : l("", !0),
404
- e.distributionLink && !e.title ? (o(), c("a", {
430
+ f("div", wt, h(e.title), 1)
431
+ ], 8, Dt)) : d("", !0),
432
+ e.distributionLink && !e.title ? (l(), u("a", {
405
433
  key: 1,
406
434
  href: e.distributionLink,
407
435
  target: "_blank"
408
436
  }, [
409
- u("div", Dt, h(e.distributionLink), 1)
410
- ], 8, xt)) : l("", !0),
411
- e.format ? (o(), c("div", Lt, h(e.format), 1)) : l("", !0)
437
+ f("div", Lt, h(e.distributionLink), 1)
438
+ ], 8, Ct)) : d("", !0),
439
+ e.format ? (l(), u("div", Ut, h(e.format), 1)) : d("", !0)
412
440
  ])
413
- ])) : l("", !0)
441
+ ])) : d("", !0)
414
442
  ], 2),
415
- e.showButtons ? (o(), c("div", Ct, [
416
- y(Ye, {
417
- buttonText: a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
443
+ e.showButtons ? (l(), u("div", At, [
444
+ y(gt, {
445
+ ref: "accActive",
446
+ "button-text": t.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
418
447
  class: "dpiv3_modalCancelButton",
419
- onClick: de,
420
- ref: "accActive"
421
- }, null, 8, ["buttonText"]),
422
- y(L, {
423
- onClick: Se,
424
- buttonText: e.buttons,
425
- size: "large"
426
- }, null, 8, ["buttonText"])
427
- ])) : l("", !0),
428
- e.optionalInfoView ? (o(), c("div", wt, [
429
- u("div", At, [
430
- (o(!0), c(D, null, _e(f.sections, (n, m) => (o(), c(D, { key: m }, [
431
- u("div", Ut, [
432
- u("div", Ft, [
433
- u("div", null, h(n.title), 1),
434
- u("div", St, [
435
- y(et, {
436
- onClick: (d) => Fe(m),
437
- expanded: !I.value[m]
438
- }, null, 8, ["onClick", "expanded"])
448
+ onClick: de
449
+ }, null, 8, ["button-text"]),
450
+ y(w, {
451
+ "button-text": e.buttons,
452
+ size: "large",
453
+ onClick: qe
454
+ }, null, 8, ["button-text"])
455
+ ])) : d("", !0),
456
+ e.optionalInfoView ? (l(), u("div", St, [
457
+ f("div", Ft, [
458
+ (l(!0), u(D, null, Te(Ve.value, (o, c) => (l(), u(D, { key: c }, [
459
+ f("div", Rt, [
460
+ f("div", qt, [
461
+ f("div", null, h(o.title), 1),
462
+ f("div", Bt, [
463
+ y(st, {
464
+ expanded: !T.value[c],
465
+ onClick: (n) => Re(c)
466
+ }, null, 8, ["expanded", "onClick"])
439
467
  ])
440
468
  ])
441
469
  ]),
442
- I.value[m] ? (o(!0), c(D, { key: 0 }, _e(n.items, (d, s) => (o(), c(D, { key: s }, [
443
- t[4] || (t[4] = u("div", { class: "dpiV3_itemDivider" }, null, -1)),
444
- u("div", {
470
+ T.value[c] ? (l(!0), u(D, { key: 0 }, Te(o.items, (n, s) => (l(), u(D, { key: s }, [
471
+ a[4] || (a[4] = f("div", { class: "dpiV3_itemDivider" }, null, -1)),
472
+ f("div", {
445
473
  class: "dpiV3_itemOptional",
446
- onClick: (p) => Ae(m, s)
447
- }, h(d), 9, Rt)
448
- ], 64))), 128)) : l("", !0),
449
- m < f.sections.length - 1 ? (o(), c("div", qt)) : l("", !0)
474
+ onClick: (m) => Se(c, s)
475
+ }, h(n), 9, zt)
476
+ ], 64))), 128)) : d("", !0),
477
+ c < Ve.value.length - 1 ? (l(), u("div", Mt)) : d("", !0)
450
478
  ], 64))), 128))
451
479
  ])
452
- ])) : l("", !0)
480
+ ])) : d("", !0)
453
481
  ], 2)
454
- ])) : l("", !0),
455
- r.value.key ? (o(), c("div", Bt, [
456
- u("div", {
457
- class: S(["dpiV3_modalWrap", {
482
+ ])) : d("", !0),
483
+ r.value.key ? (l(), u("div", $t, [
484
+ f("div", {
485
+ class: F(["dpiV3_modalWrap", {
458
486
  dpiV3_removeOverflow: r.value.key === "dcatap:availability" || r.value.key === "dcat:mediaType" || r.value.key === "dcat:compressFormat" || r.value.key === "dcat:packageFormat" || r.value.key === "spdx:checksum" || r.value.key === "adms:status"
459
487
  }])
460
488
  }, [
461
- u("div", zt, [
462
- u("h2", null, h(r.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
463
- y(ne, {
489
+ f("div", Et, [
490
+ f("h2", null, h(r.value.text) + " " + h(t.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
491
+ y(re, {
464
492
  class: "dpiv3_modalCrossout",
465
493
  onClick: le
466
494
  })
467
495
  ]),
468
- r.value.key === "dcatap:availability" ? (o(), c("p", Mt, h(a.$t(
496
+ r.value.key === "dcatap:availability" ? (l(), u("p", Pt, h(t.$t(
469
497
  "message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
470
- )), 1)) : l("", !0),
471
- r.value.key === "dcat:byteSize" ? (o(), c("p", Pt, h(a.$t(
498
+ )), 1)) : d("", !0),
499
+ r.value.key === "dcat:byteSize" ? (l(), u("p", Wt, h(t.$t(
472
500
  "message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
473
- )), 1)) : l("", !0),
474
- r.value.key === "foaf:page" ? (o(), c("p", $t, h(a.$t(
501
+ )), 1)) : d("", !0),
502
+ r.value.key === "foaf:page" ? (l(), u("p", Ot, h(t.$t(
475
503
  "message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
476
- )), 1)) : l("", !0),
477
- r.value.key === "dct:modified" ? (o(), c("div", Wt, [
478
- y(st, {
479
- modelValue: f.modifiedDate,
480
- onAddModifiedDate: Me
481
- }, null, 8, ["modelValue"])
482
- ])) : l("", !0),
483
- r.value.key === "dct:issued" ? (o(), c("div", Et, [
484
- y(rt, {
485
- modelValue: f.issuedDate,
486
- labelText: r.value.text + " (optional)",
504
+ )), 1)) : d("", !0),
505
+ r.value.key === "dct:modified" ? (l(), u("div", Ht, [
506
+ y(yt, {
507
+ "model-value": p.modifiedDate,
508
+ onAddModifiedDate: Ee
509
+ }, null, 8, ["model-value"])
510
+ ])) : d("", !0),
511
+ r.value.key === "dct:issued" ? (l(), u("div", Nt, [
512
+ y(pt, {
513
+ "model-value": p.issuedDate,
514
+ "label-text": `${r.value.text} (optional)`,
487
515
  onAddIssuedDate: Pe
488
- }, null, 8, ["modelValue", "labelText"])
489
- ])) : l("", !0),
490
- r.value.key === "dct:description" ? (o(), c("div", Ot, [
516
+ }, null, 8, ["model-value", "label-text"])
517
+ ])) : d("", !0),
518
+ r.value.key === "dct:description" ? (l(), u("div", jt, [
519
+ y(ft, {
520
+ "description-text": p.descriptionText,
521
+ onAddDescription: We
522
+ }, null, 8, ["description-text"])
523
+ ])) : d("", !0),
524
+ r.value.key === "dct:accessRights" ? (l(), u("div", Kt, [
491
525
  y(ot, {
492
- onAddDescription: $e,
493
- descriptionText: f.descriptionText
494
- }, null, 8, ["descriptionText"])
495
- ])) : l("", !0),
496
- r.value.key === "dct:accessRights" ? (o(), c("div", Ht, [
497
- y(ct, {
498
- onAddAccessRights: We,
499
- accessRightsProp: f.accessRightsText
500
- }, null, 8, ["accessRightsProp"])
501
- ])) : l("", !0),
502
- r.value.key === "foaf:page" ? (o(), c("div", Nt, [
503
- y(it, {
526
+ "access-rights-prop": p.accessRightsText,
527
+ onAddAccessRights: Oe
528
+ }, null, 8, ["access-rights-prop"])
529
+ ])) : d("", !0),
530
+ r.value.key === "foaf:page" ? (l(), u("div", Yt, [
531
+ y(mt, {
504
532
  ref_key: "documentationsV3Ref",
505
533
  ref: q,
506
534
  documentations: b.value[e.distributionId] || [],
507
- fileTypes: f.fileTypes,
508
- onUpdate: t[0] || (t[0] = (n) => Re(e.distributionId, n)),
509
- distributionId: e.distributionId
510
- }, null, 8, ["documentations", "fileTypes", "distributionId"])
511
- ])) : l("", !0),
512
- r.value.key === "dcat:accessService" ? (o(), c("div", jt, [
513
- y(vt, {
535
+ "file-types": p.fileTypes,
536
+ "distribution-id": e.distributionId,
537
+ onUpdate: a[0] || (a[0] = (o) => Be(e.distributionId, o))
538
+ }, null, 8, ["documentations", "file-types", "distribution-id"])
539
+ ])) : d("", !0),
540
+ r.value.key === "dcat:accessService" ? (l(), u("div", Zt, [
541
+ y(lt, {
514
542
  ref_key: "accessServiceV3Ref",
515
543
  ref: B,
516
- accessServices: T.value[e.distributionId] || [],
517
- onUpdate: t[1] || (t[1] = (n) => qe(e.distributionId, n)),
518
- distributionId: e.distributionId
519
- }, null, 8, ["accessServices", "distributionId"])
520
- ])) : l("", !0),
521
- r.value.key === "dcat:byteSize" ? (o(), k(dt, {
544
+ "access-services": _.value[e.distributionId] || [],
545
+ "distribution-id": e.distributionId,
546
+ onUpdate: a[1] || (a[1] = (o) => ze(e.distributionId, o))
547
+ }, null, 8, ["access-services", "distribution-id"])
548
+ ])) : d("", !0),
549
+ r.value.key === "dcat:byteSize" ? (l(), g(nt, {
522
550
  key: 9,
523
- byteSizeProp: f.byteSizeText,
551
+ "byte-size-prop": p.byteSizeText,
524
552
  onAddByteSize: Ze
525
- }, null, 8, ["byteSizeProp"])) : l("", !0),
526
- r.value.key === "dcatap:availability" ? (o(), k(lt, {
553
+ }, null, 8, ["byte-size-prop"])) : d("", !0),
554
+ r.value.key === "dcatap:availability" ? (l(), g(dt, {
527
555
  key: 10,
528
- availabilityText: f.availabilityText,
529
- onAddAvailability: Ee
530
- }, null, 8, ["availabilityText"])) : l("", !0),
531
- r.value.key === "dct:language" ? (o(), k(nt, {
556
+ "availability-text": p.availabilityText,
557
+ onAddAvailability: He
558
+ }, null, 8, ["availability-text"])) : d("", !0),
559
+ r.value.key === "dct:language" ? (l(), g(vt, {
532
560
  key: 11,
533
- languageText: f.languageText,
534
- distributionId: f.distributionId,
535
- onAddLanguage: je
536
- }, null, 8, ["languageText", "distributionId"])) : l("", !0),
537
- r.value.key === "dct:conformsTo" ? (o(), c("div", Zt, [
538
- y(pt, {
561
+ "language-text": p.languageText,
562
+ "distribution-id": p.distributionId,
563
+ onAddLanguage: Ye
564
+ }, null, 8, ["language-text", "distribution-id"])) : d("", !0),
565
+ r.value.key === "dct:conformsTo" ? (l(), u("div", Gt, [
566
+ y(ct, {
539
567
  ref_key: "conformsToV3Ref",
540
568
  ref: R,
541
- conformsToItems: V.value[e.distributionId] || [],
542
- onUpdate: t[2] || (t[2] = (n) => Be(e.distributionId, n)),
543
- asCard: !1,
544
- distributionId: e.distributionId
545
- }, null, 8, ["conformsToItems", "distributionId"])
546
- ])) : l("", !0),
547
- r.value.key === "odrl:hasPolicy" ? (o(), c("div", Gt, [
548
- y(ft, {
569
+ "conforms-to-items": V.value[e.distributionId] || [],
570
+ "as-card": !1,
571
+ "distribution-id": e.distributionId,
572
+ onUpdate: a[2] || (a[2] = (o) => Me(e.distributionId, o))
573
+ }, null, 8, ["conforms-to-items", "distribution-id"])
574
+ ])) : d("", !0),
575
+ r.value.key === "odrl:hasPolicy" ? (l(), u("div", Jt, [
576
+ y(ht, {
549
577
  ref_key: "policyV3Ref",
550
- ref: P,
551
- policyItems: _.value[e.distributionId] || [],
552
- onUpdate: t[3] || (t[3] = (n) => ze(e.distributionId, n)),
553
- asCard: !1,
554
- distributionId: e.distributionId
555
- }, null, 8, ["policyItems", "distributionId"])
556
- ])) : l("", !0),
557
- r.value.key === "dcat:mediaType" ? (o(), k(ce, {
578
+ ref: $,
579
+ "policy-items": I.value[e.distributionId] || [],
580
+ "as-card": !1,
581
+ "distribution-id": e.distributionId,
582
+ onUpdate: a[3] || (a[3] = (o) => $e(e.distributionId, o))
583
+ }, null, 8, ["policy-items", "distribution-id"])
584
+ ])) : d("", !0),
585
+ r.value.key === "dcat:mediaType" ? (l(), g(ue, {
558
586
  key: 14,
559
- onAddMediaType: re,
560
- fileTypes: f.fileTypes,
561
- fileFormatType: "dcat:mediaType",
562
- fileFormatText: f.mediaTypeText
563
- }, null, 8, ["fileTypes", "fileFormatText"])) : l("", !0),
564
- r.value.key === "dcat:compressFormat" ? (o(), k(ce, {
587
+ "file-types": p.fileTypes,
588
+ "file-format-type": "dcat:mediaType",
589
+ "file-format-text": p.mediaTypeText,
590
+ onAddMediaType: ne
591
+ }, null, 8, ["file-types", "file-format-text"])) : d("", !0),
592
+ r.value.key === "dcat:compressFormat" ? (l(), g(ue, {
565
593
  key: 15,
566
- onAddCompressFormat: re,
567
- fileTypes: f.fileTypes,
568
- fileFormatType: "dcat:compressFormat",
569
- compressFormatText: f.compressFormatText
570
- }, null, 8, ["fileTypes", "compressFormatText"])) : l("", !0),
571
- r.value.key === "dcat:packageFormat" ? (o(), k(ce, {
594
+ "file-types": p.fileTypes,
595
+ "file-format-type": "dcat:compressFormat",
596
+ "compress-format-text": p.compressFormatText,
597
+ onAddCompressFormat: ne
598
+ }, null, 8, ["file-types", "compress-format-text"])) : d("", !0),
599
+ r.value.key === "dcat:packageFormat" ? (l(), g(ue, {
572
600
  key: 16,
573
- onAddPackageFormat: re,
574
- fileTypes: f.fileTypes,
575
- fileFormatType: "dcat:packageFormat",
576
- packageFormatText: f.packageFormatText
577
- }, null, 8, ["fileTypes", "packageFormatText"])) : l("", !0),
578
- r.value.key === "adms:status" ? (o(), k(ut, {
601
+ "file-types": p.fileTypes,
602
+ "file-format-type": "dcat:packageFormat",
603
+ "package-format-text": p.packageFormatText,
604
+ onAddPackageFormat: ne
605
+ }, null, 8, ["file-types", "package-format-text"])) : d("", !0),
606
+ r.value.key === "adms:status" ? (l(), g(kt, {
579
607
  key: 17,
580
- statusText: f.statusText,
581
- onAddStatus: Oe
582
- }, null, 8, ["statusText"])) : l("", !0),
583
- r.value.key === "spdx:checksum" ? (o(), k(mt, {
608
+ "status-text": p.statusText,
609
+ onAddStatus: Ne
610
+ }, null, 8, ["status-text"])) : d("", !0),
611
+ r.value.key === "spdx:checksum" ? (l(), g(ut, {
584
612
  key: 18,
585
613
  ref_key: "checksumV3Ref",
586
614
  ref: z,
587
- onAddChecksum: He,
588
- checksumText: f.checksumText,
589
- checksumDropdownText: f.checksumDropdownText,
590
- asCard: !1
591
- }, null, 8, ["checksumText", "checksumDropdownText"])) : l("", !0),
592
- r.value.key === "dcterms:license" ? (o(), k(yt, {
615
+ "checksum-text": p.checksumText,
616
+ "checksum-dropdown-text": p.checksumDropdownText,
617
+ "as-card": !1,
618
+ onAddChecksum: je
619
+ }, null, 8, ["checksum-text", "checksum-dropdown-text"])) : d("", !0),
620
+ r.value.key === "dcterms:license" ? (l(), g(rt, {
593
621
  key: 19,
594
622
  ref_key: "changeLicenseV3Ref",
595
623
  ref: M,
596
- onAddChangeLicense: Ne,
597
- changeLicenseText: f.changeLicenseText,
598
- changeLicenseDropdownText: f.changeLicenseDropdownText
599
- }, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : l("", !0),
600
- u("div", Jt, [
601
- y(L, {
602
- onClick: le,
603
- buttonText: "Zurück",
624
+ "change-license-text": p.changeLicenseText,
625
+ "change-license-dropdown-text": p.changeLicenseDropdownText,
626
+ onAddChangeLicense: Ke
627
+ }, null, 8, ["change-license-text", "change-license-dropdown-text"])) : d("", !0),
628
+ f("div", Qt, [
629
+ y(w, {
630
+ "button-text": "Zurück",
604
631
  size: "large",
605
- iconStart: "CaretLeft",
606
- variant: "tertiary"
632
+ "icon-start": "CaretLeft",
633
+ variant: "tertiary",
634
+ onClick: le
607
635
  }),
608
- y(L, {
609
- onClick: Ue,
610
- buttonText: "Hinzufügen",
611
- size: "large"
636
+ y(w, {
637
+ "button-text": "Hinzufügen",
638
+ size: "large",
639
+ onClick: Fe
612
640
  })
613
641
  ])
614
642
  ], 2)
615
- ])) : l("", !0),
616
- ie.value ? (o(), c("div", Kt, [
617
- u("div", Qt, [
618
- u("div", Xt, [
619
- t[5] || (t[5] = u("h2", null, "Dokumentation löschen", -1)),
620
- y(ne, {
643
+ ])) : d("", !0),
644
+ ie.value ? (l(), u("div", Xt, [
645
+ f("div", ea, [
646
+ f("div", ta, [
647
+ a[5] || (a[5] = f("h2", null, "Dokumentation löschen", -1)),
648
+ y(re, {
621
649
  class: "dpiv3_modalCrossout",
622
- onClick: Ve
650
+ onClick: Ie
623
651
  })
624
652
  ]),
625
- t[6] || (t[6] = u("div", { class: "dpiV3_modalContent" }, [
626
- u("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
653
+ a[6] || (a[6] = f("div", { class: "dpiV3_modalContent" }, [
654
+ f("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
627
655
  ], -1)),
628
- u("div", Yt, [
629
- u("div", ea, [
630
- C.value ? (o(), c("div", ta, h(C.value), 1)) : l("", !0),
631
- se.value && C.value === "" ? (o(), c("div", aa, h(se.value), 1)) : l("", !0),
632
- se.value === "" && C.value === "" ? (o(), c("div", ia, " Es wurde keine URL angegeben! ")) : l("", !0)
656
+ f("div", aa, [
657
+ f("div", ia, [
658
+ C.value ? (l(), u("div", sa, h(C.value), 1)) : d("", !0),
659
+ se.value && C.value === "" ? (l(), u("div", oa, h(se.value), 1)) : d("", !0),
660
+ se.value === "" && C.value === "" ? (l(), u("div", la, " Es wurde keine URL angegeben! ")) : d("", !0)
633
661
  ])
634
662
  ]),
635
- u("div", sa, [
636
- y(L, {
637
- onClick: Ve,
638
- buttonText: "Abbrechen",
663
+ f("div", da, [
664
+ y(w, {
665
+ "button-text": "Abbrechen",
639
666
  size: "large",
640
- variant: "tertiary"
667
+ variant: "tertiary",
668
+ onClick: Ie
641
669
  }),
642
- y(L, {
643
- onClick: Ge,
644
- buttonText: "Löschen",
645
- size: "large"
670
+ y(w, {
671
+ "button-text": "Löschen",
672
+ size: "large",
673
+ onClick: Ge
646
674
  })
647
675
  ])
648
676
  ])
649
- ])) : l("", !0)
677
+ ])) : d("", !0)
650
678
  ], 64));
651
679
  }
652
- }, Aa = /* @__PURE__ */ ht(oa, [["__scopeId", "data-v-66a78019"]]);
680
+ }, Fa = /* @__PURE__ */ bt(na, [["__scopeId", "data-v-77856043"]]);
653
681
  export {
654
- Aa as default
682
+ Fa as default
655
683
  };