@piveau/dpi 0.1.0-beta.6 → 0.1.0-beta.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.
Files changed (60) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  5. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +52 -57
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +71 -38
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  31. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  32. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  33. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  34. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +879 -843
  35. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  36. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  37. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  38. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  39. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  40. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +328 -265
  41. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  42. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
  43. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  44. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  45. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  46. package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
  47. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  48. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  49. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
  50. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  51. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
  52. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  53. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  54. package/dist/data-provider-interface/views/InputPage.vue.js +381 -755
  55. package/dist/styles/_dpi.scss +1614 -0
  56. package/dist/styles/_maps.scss +24 -0
  57. package/dist/styles/_variables.scss +973 -0
  58. package/package.json +28 -19
  59. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
  60. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
@@ -1,1147 +1,1183 @@
1
- import { ref as p, onUnmounted as Ke, onMounted as Ze, getCurrentInstance as qe, computed as Qe, watch as Xe, createElementBlock as r, openBlock as c, Fragment as me, createElementVNode as m, createBlock as fe, createCommentVNode as u, toDisplayString as I, renderList as Ye, createVNode as l, withDirectives as et, vShow as tt, unref as ot } from "vue";
2
- import { getNode as pe } from "@formkit/core";
3
- import { PhWarning as at } from "@phosphor-icons/vue";
4
- import { useI18n as it } from "vue-i18n";
5
- import { useStore as st } from "vuex";
6
- import { useEditModeInfo as nt } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as dt } from "../composables/useDpiFormValues.js";
8
- import V from "../config/dcatapdeHappyFlow/page-content-config.js";
9
- import { getFileTypes as lt, getChecksumAlgorithms as ct, getPlannedAvailability as rt, getLanguages as ut } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as ve } from "../HappyFlowComponents/services/eventBus.js";
11
- import O from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import mt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import he from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import ft from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import pt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import vt from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
17
- import ht from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
18
- import gt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
19
- import yt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
20
- import xt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
21
- import bt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
22
- import kt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
23
- import Dt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
24
- import _t from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
25
- import j from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
26
- import Tt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
27
- import wt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
28
- import It from "../HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js";
29
- import Vt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
30
- import At from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
31
- import Ct from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
1
+ import { ref as v, computed as Ie, toRef as nt, onUnmounted as dt, onMounted as ct, getCurrentInstance as rt, watch as ut, createElementBlock as m, openBlock as r, Fragment as Q, createElementVNode as f, createBlock as X, createCommentVNode as p, toDisplayString as B, renderList as Ue, unref as U, createVNode as u, withDirectives as mt, vShow as ft, normalizeClass as pt } from "vue";
2
+ import "@formkit/core";
3
+ import { PhWarning as Y } from "@phosphor-icons/vue";
4
+ import { useI18n as vt } from "vue-i18n";
5
+ import { useStore as ht } from "vuex";
6
+ import { useEditModeInfo as gt } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as yt } from "../composables/useDpiFormValues.js";
8
+ import M from "../config/dcatapdeHappyFlow/page-content-config.js";
9
+ import { getLicenses as kt, getFileTypes as bt, getFormatTypes as xt, getChecksumAlgorithms as wt, getPlannedAvailability as Dt, getLanguages as _t } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Ve } from "../HappyFlowComponents/services/eventBus.js";
11
+ import z from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
+ import Tt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
+ import Z from "../HappyFlowComponents/ui/InputField.vue.js";
14
+ import It from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import Ut from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import Vt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import Lt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
+ import Ct from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
+ import Rt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
+ import St from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
+ import At from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
+ import Ft from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
+ import $t from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
+ import ee from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
+ import Et from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
+ import Bt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
+ import Mt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
+ import zt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
+ import Pt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
32
30
  import A from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
31
  /* empty css */
34
- import Lt from "../../_virtual/_plugin-vue_export-helper.js";
35
- const $t = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, Rt = {
32
+ import Nt from "../../_virtual/_plugin-vue_export-helper.js";
33
+ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
36
34
  key: 1,
37
35
  class: "copy-large-regular"
38
- }, Ft = { class: "dpiV3_LinkAndMetadata" }, Ut = {
36
+ }, Ht = { class: "dpiV3_LinkAndMetadata input-container" }, Jt = {
39
37
  key: 0,
40
- class: "validation-error"
41
- }, Bt = {
38
+ class: "accUrlError"
39
+ }, Kt = { class: "copy-mini-regular" }, qt = {
42
40
  key: 1,
43
41
  class: "validation-error"
44
- }, Et = {
42
+ }, Gt = { class: "copy-mini-regular" }, Qt = {
45
43
  key: 2,
46
44
  class: "dpiV3_DocumentationsInDistr"
47
- }, Mt = { class: "dpiV3_TitleDelete" }, zt = { class: "dpiV3_documentationContents" }, Nt = { class: "dpiV3_Documentation" }, Pt = {
45
+ }, Xt = { class: "dpiV3_TitleDelete" }, Yt = { class: "dpiV3_documentationContents" }, Zt = { class: "dpiV3_Documentation" }, ea = {
48
46
  key: 3,
49
47
  class: "dpiV3_DocumentationsInDistr"
50
- }, Ot = { class: "dpiV3_TitleDelete" }, jt = { class: "dpiV3_documentationContents" }, Jt = { class: "dpiV3_Documentation" }, Wt = {
51
- key: 4,
52
- class: "dpiV3_modified dpiV3_label"
53
- }, Ht = {
48
+ }, ta = { class: "dpiV3_TitleDelete" }, aa = { class: "dpiV3_documentationContents" }, oa = { class: "dpiV3_Documentation" }, sa = { class: "dpiV3_DocumentationsInDistr" }, ia = { class: "dpiV3_TitleDelete" }, la = { key: 0 }, na = {
49
+ key: 0,
50
+ class: "dpiV3_tempAddMore"
51
+ }, da = {
54
52
  key: 5,
55
53
  class: "dpiV3_modified dpiV3_label"
56
- }, Gt = { class: "dpiV3_modified dpiV3_label" }, Kt = {
54
+ }, ca = {
57
55
  key: 6,
58
56
  class: "dpiV3_modified dpiV3_label"
59
- }, Zt = {
57
+ }, ra = { class: "dpiV3_modified dpiV3_label" }, ua = {
60
58
  key: 7,
61
59
  class: "dpiV3_modified dpiV3_label"
62
- }, qt = {
60
+ }, ma = {
63
61
  key: 8,
64
62
  class: "dpiV3_modified dpiV3_label"
65
- }, Qt = {
63
+ }, fa = {
66
64
  key: 9,
67
65
  class: "dpiV3_modified dpiV3_label"
68
- }, Xt = {
66
+ }, pa = {
69
67
  key: 10,
70
68
  class: "dpiV3_modified dpiV3_label"
71
- }, Yt = {
69
+ }, va = {
72
70
  key: 11,
73
- class: "dpiV3_modified dpiV3_label"
74
- }, eo = {
71
+ class: "dpiV3_DocumentationsInDistr"
72
+ }, ha = { class: "dpiV3_TitleDelete" }, ga = {
75
73
  key: 12,
76
74
  class: "dpiV3_DocumentationsInDistr"
77
- }, to = { class: "dpiV3_TitleDelete" }, oo = {
75
+ }, ya = { class: "dpiV3_TitleDelete" }, ka = {
78
76
  key: 13,
79
- class: "dpiV3_DocumentationsInDistr"
80
- }, ao = { class: "dpiV3_TitleDelete" }, io = {
77
+ class: "dpiV3_modified dpiV3_label"
78
+ }, ba = {
81
79
  key: 14,
82
80
  class: "dpiV3_modified dpiV3_label"
83
- }, so = {
81
+ }, xa = {
84
82
  key: 15,
85
83
  class: "dpiV3_modified dpiV3_label"
86
- }, no = {
84
+ }, wa = {
87
85
  key: 16,
88
86
  class: "dpiV3_modified dpiV3_label"
89
- }, lo = {
87
+ }, Da = {
90
88
  key: 17,
91
89
  class: "dpiV3_modified dpiV3_label"
92
- }, co = {
90
+ }, _a = {
93
91
  key: 18,
94
- class: "dpiV3_modified dpiV3_label"
95
- }, ro = {
96
- key: 19,
97
92
  class: "copy-mini-regular dpiV3_text_error"
98
- }, uo = { class: "dpiV3_CTA-Distribution" }, mo = { class: "dpiV3_tempAddMore" }, fo = {
99
- key: 2,
100
- class: "dpiV3_errormsgWrapper"
101
- }, po = {
93
+ }, Ta = { class: "dpiV3_CTA-Distribution" }, Ia = { class: "dpiV3_tempAddMore" }, Ua = {
102
94
  __name: "DistributionSimplePage",
103
95
  props: {
104
96
  context: Object,
105
97
  inRap: Boolean
106
98
  },
107
- setup(T) {
108
- var ce, re;
109
- const b = T, s = p(), { isEditMode: J } = nt(), { t: k } = it(), { formValues: C } = dt();
110
- if (b.inRap)
111
- s.value = pe("DistributionSimple").value[Object.keys(pe("DistributionSimple").value)[0]], console.log(s.value);
112
- else {
113
- const t = {
114
- isValid: "unset",
115
- id: 1,
116
- "dcat:accessURL": "",
117
- "dct:format": "",
118
- "dct:title": "",
119
- documentations: [],
120
- conformsToItems: [],
121
- policyItems: [],
122
- accessServices: [],
123
- "dct:modified": "",
124
- "dct:issued": "",
125
- "dct:description": void 0,
126
- "dcatde:licenseAttributionByText": void 0,
127
- "dct:accessRights": "",
128
- "dcatap:availability": {},
129
- "dct:language": {},
130
- "dcat:byteSize": void 0,
131
- "dcat:mediaType": {},
132
- "dcat:compressFormat": {},
133
- "dcat:packageFormat": {},
134
- "adms:status": "",
135
- checksum: {
136
- title: "",
137
- "spdx:checksum": "",
138
- uri: ""
139
- },
140
- changeLicense: {
141
- title: "",
142
- "dcterms:license": ""
143
- }
144
- };
145
- s.value = J.value ? [...JSON.parse(JSON.stringify((re = (ce = C == null ? void 0 : C.value) == null ? void 0 : ce.DistributionSimple) == null ? void 0 : re["dcat:distribution"]))] : [t];
146
- }
147
- const n = p({}), _ = p({}), W = p([]), w = p(!1), L = p(!1), y = p(0), g = p([]), H = p([]), G = p([]), $ = p([]), S = p([...g.value]), ge = st(), R = p(null);
148
- p(null);
149
- const F = p(!1), K = p(!1), Z = p(!1), U = p(!1), q = p(!0);
150
- function ye() {
151
- W.value = [
99
+ setup(V) {
100
+ var ye, ke, be;
101
+ const P = V, { isEditMode: te } = gt(), { t: D } = vt(), L = v(null), Le = {
102
+ isValid: "unset",
103
+ id: 1,
104
+ "dcat:accessURL": "",
105
+ "dct:format": {},
106
+ "dct:title": "",
107
+ documentations: [],
108
+ conformsToItems: [],
109
+ policyItems: [],
110
+ "dcat:downloadURL": [{ "@id": "" }],
111
+ accessServices: [],
112
+ "dct:modified": "",
113
+ "dct:issued": "",
114
+ "dct:description": void 0,
115
+ // "dcatde:licenseAttributionByText": undefined,
116
+ // "dct:accessRights": {},
117
+ "dcatap:availability": {},
118
+ "dct:language": [],
119
+ "dcat:byteSize": void 0,
120
+ "dcat:mediaType": {},
121
+ "dcat:compressFormat": {},
122
+ "dcat:packageFormat": {},
123
+ "adms:status": {},
124
+ checksum: {
125
+ title: "",
126
+ "spdx:checksum": "",
127
+ uri: ""
128
+ },
129
+ "dct:license": {
130
+ title: "",
131
+ "dcterms:license": ""
132
+ }
133
+ }, { formValues: b } = yt(), l = Ie(
134
+ () => te.value || P.inRap
135
+ ).value ? nt((ye = b.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Le]);
136
+ l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
137
+ const i = v({}), C = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), x = v([]), w = v([]), oe = v([]), O = v([]), se = v([]);
138
+ v([...x.value]);
139
+ const $ = v([...w.value]), Ce = ht(), W = v(null);
140
+ v(null);
141
+ const j = v(!1), ie = v(!1), H = v(!1), le = v(!0);
142
+ for (let a = 0; a < l.value.length; a++)
143
+ if (((ke = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((be = b.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : be.checksum.title) !== "") {
144
+ ie.value = !1;
145
+ break;
146
+ }
147
+ function Re() {
148
+ ae.value = [
152
149
  {
153
- title: k(
150
+ title: D(
154
151
  "message.dataupload.datasets.dcat:distribution.recommended.title"
155
152
  ),
156
- items: V.distributions.Recommended.map(
157
- (t) => k(
158
- `message.dataupload.datasets.dcat:distribution.recommended.${t}`
159
- ) || t
153
+ items: M.distributions.Recommended.map(
154
+ (a) => D(
155
+ `message.dataupload.datasets.dcat:distribution.recommended.${a}`
156
+ ) || a
160
157
  ),
161
- keys: V.distributions.Recommended
158
+ keys: M.distributions.Recommended
162
159
  },
163
160
  {
164
- title: k("message.dataupload.datasets.dcat:distribution.advanced.title"),
165
- items: V.distributions.Advanced.map(
166
- (t) => k(`message.dataupload.datasets.dcat:distribution.advanced.${t}`) || t
161
+ title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
162
+ items: M.distributions.Advanced.map(
163
+ (a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
167
164
  ),
168
- keys: V.distributions.Advanced
165
+ keys: M.distributions.Advanced
169
166
  }
170
167
  ];
171
168
  }
172
- function Q(t) {
173
- (t.includes("dcat:distribution") || t.includes("dct:license")) && (q.value || B(), q.value = !1);
169
+ function ne(a) {
170
+ var t, e, o;
171
+ (o = (e = (t = P.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || J(), le.value = !1);
174
172
  }
175
- function B(t) {
176
- let o = !0;
177
- s.value = s.value.map((e) => {
178
- var f, x;
179
- const a = ((f = e["dcat:downloadURL"]) == null ? void 0 : f.trim()) !== "", i = ((x = e["dct:format"].label) == null ? void 0 : x.trim()) !== "", d = a && i;
180
- return d || (o = !1), t === e.id ? {
173
+ function J(a) {
174
+ let t = !0;
175
+ l.value = l.value.map((e) => {
176
+ var c;
177
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((c = e["dct:format"]) == null ? void 0 : c.label) != null && e["dct:format"].label.trim() !== "" && w.value.some(
178
+ (h) => h["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
179
+ ), n = o && s;
180
+ return n || (t = !1), a === e.id ? {
181
181
  ...e,
182
- isValid: d,
182
+ isValid: n,
183
183
  showErrorDownloadURL: !1,
184
184
  showErrorFormat: !1
185
185
  } : {
186
186
  ...e,
187
- isValid: d,
188
- showErrorDownloadURL: !a,
189
- showErrorFormat: !i
187
+ isValid: n,
188
+ showErrorDownloadURL: !o,
189
+ showErrorFormat: !s
190
190
  };
191
- }), !o && s.value.length > 0 && (s.value[0].isValid = !1), t == null && (U.value = !o), b.context.node.input(s.value);
191
+ }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), b.value.DistributionSimple["dcat:distribution"] = l.value;
192
192
  }
193
- function E(t, o) {
194
- var a, i, d;
193
+ function E(a, t) {
194
+ var o, s, n;
195
195
  let e = !0;
196
- if (o === "dcat:downloadURL")
197
- e = ((a = t[o]) == null ? void 0 : a.trim()) !== "" && (t[o] ? M(t[o]) : !1), e ? (t.showErrorDownloadURL = !1, t.urlErrorMessage = "") : (t.showErrorDownloadURL = !0, ((i = t[o]) == null ? void 0 : i.trim()) === "" ? t.urlErrorMessage = "URL ist erforderlich" : t.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
198
- else if (o === "dct:format") {
199
- const f = (d = t[o].label) == null ? void 0 : d.trim();
200
- e = f !== "", e ? (t.showErrorFormat = !1, t.formatErrorMessage = "") : (t.showErrorFormat = !0, f === "" ? t.formatErrorMessage = "Format ist erforderlich" : t.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
196
+ if (t === "dcat:accessURL")
197
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
198
+ else if (t === "dct:format") {
199
+ const c = (n = a[t].label) == null ? void 0 : n.trim();
200
+ e = c !== "" && w.value.some(
201
+ (h) => h["@value"].toLowerCase() === c.toLowerCase()
202
+ ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, c === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
201
203
  }
202
- xe();
204
+ Se();
203
205
  }
204
- function xe() {
205
- let t = !0;
206
- s.value = s.value.map((o) => {
207
- var d, f;
208
- const e = ((d = o["dcat:downloadURL"]) == null ? void 0 : d.trim()) !== "" && M(o["dcat:downloadURL"]), a = ((f = o["dct:format"].label) == null ? void 0 : f.trim()) !== "" && g.value.some(
209
- (x) => {
210
- var h;
211
- return x["@value"].toUpperCase() === ((h = o["dct:format"].label) == null ? void 0 : h.toUpperCase());
206
+ function Se() {
207
+ let a = !0;
208
+ l.value = l.value.map((t) => {
209
+ var n, c;
210
+ const e = ((n = t["dcat:accessURL"]) == null ? void 0 : n.trim()) !== "" && K(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && $.value.some(
211
+ (h) => {
212
+ var g;
213
+ return h["@value"].toUpperCase() === ((g = t["dct:format"].label) == null ? void 0 : g.toUpperCase());
212
214
  }
213
- ), i = e && a;
214
- return i || (t = !1), {
215
- ...o,
216
- isValid: i
215
+ ), s = e && o;
216
+ return console.log(s), s || (a = !1), {
217
+ ...t,
218
+ isValid: s
217
219
  };
218
- }), !t && s.value.length > 0 ? s.value[0].isValid = !1 : s.value.length > 0 && (s.value[0].isValid = !0), U.value = !t, console.log(s.value), b.context.node.input(s.value);
220
+ }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, b.value.DistributionSimple["dcat:distribution"] = l.value;
219
221
  }
220
- function M(t) {
221
- return /^(https?:\/\/)?(www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-\w()@:%+.~#?&/=]*)$/.test(t);
222
+ function K(a) {
223
+ return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
222
224
  }
223
- Ke(() => {
224
- ve.off("nextClicked", Q);
225
- }), Ze(async () => {
226
- ve.on("nextClicked", Q);
227
- const t = qe(), o = t.appContext.app.config.globalProperties.$env;
228
- if (t) {
229
- const e = t.appContext.app.config.globalProperties.$env;
230
- R.value = e.content.dataProviderInterface.specification;
225
+ dt(() => {
226
+ Ve.off("nextClicked", ne), L.value && clearTimeout(L.value);
227
+ });
228
+ let de = v([]);
229
+ ct(async () => {
230
+ Ve.on("nextClicked", ne);
231
+ const a = rt(), t = a.appContext.app.config.globalProperties.$env;
232
+ if (a) {
233
+ const e = a.appContext.app.config.globalProperties.$env;
234
+ W.value = e.content.dataProviderInterface.specification;
231
235
  } else
232
236
  console.log("Instance is null!");
233
237
  try {
234
- const e = await lt(o.api.baseUrl);
235
- g.value = e.results.map((a) => ({
236
- "@value": a.id,
237
- uri: a.resource,
238
+ const e = await kt(t.api.baseUrl);
239
+ de.value = e.map((s) => ({
240
+ uri: s.uri,
241
+ "@value": s.value,
242
+ label: s.label
243
+ }));
244
+ const o = await bt(t.api.baseUrl);
245
+ x.value = o.results.map((s) => ({
246
+ "@value": s.pref_label.en,
247
+ uri: s.resource,
238
248
  selected: !1
239
249
  }));
240
250
  } catch (e) {
241
251
  error.value = e;
242
252
  }
243
253
  try {
244
- const e = await ct(o.api.baseUrl);
245
- H.value = e;
246
- const a = await rt(o.api.baseUrl);
247
- G.value = a;
248
- const i = await ut(o.api.baseUrl);
249
- $.value = i;
254
+ const e = await xt(t.api.baseUrl);
255
+ w.value = e.results.map((o) => ({
256
+ "@value": o.pref_label.en,
257
+ uri: o.resource,
258
+ selected: !1
259
+ }));
260
+ } catch (e) {
261
+ error.value = e;
262
+ }
263
+ try {
264
+ const e = await wt(t.api.baseUrl);
265
+ oe.value = e;
266
+ const o = await Dt(t.api.baseUrl);
267
+ O.value = o;
268
+ const s = await _t(t.api.baseUrl);
269
+ se.value = s;
250
270
  } catch (e) {
251
271
  console.log(e);
252
272
  }
253
- ye();
273
+ Re();
254
274
  });
255
- function be(t, o) {
256
- const e = s.value.find((i) => i.id === o);
257
- if (!e)
258
- return;
259
- let a = g.value.find((i) => i["@value"] === t).uri || "";
260
- e["dct:format"] = { label: t, uri: a }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.context.node.input(s.value);
275
+ function Ae(a, t) {
276
+ const e = l.value.find((s) => s.id === t);
277
+ if (!e) return;
278
+ let o = w.value.find((s) => s["@value"] === a).uri || "";
279
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), b.value.DistributionSimple["dcat:distribution"] = l.value;
261
280
  }
262
- function X(t, o) {
263
- const e = s.value.find((a) => a.id === o);
264
- e ? (e["dct:modified"] = t, n.value.dctModified = t) : console.warn(`No matching distribution found for ID ${o}.`);
281
+ function ce(a, t) {
282
+ const e = l.value.find((o) => o.id === t);
283
+ e ? (e["dct:modified"] = a, i.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
265
284
  }
266
- function Y(t, o) {
267
- const e = s.value.find((a) => a.id === o);
268
- e ? (e["dct:issued"] = t, n.value.dctIssued = t) : console.warn(`No matching distribution found for ID ${o}.`);
285
+ function re(a, t) {
286
+ const e = l.value.find((o) => o.id === t);
287
+ e ? (e["dct:issued"] = a, i.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
269
288
  }
270
- function ee(t, o) {
271
- const e = s.value.find((a) => a.id === o);
272
- e ? (e["dct:description"] = t, n.value.dctDescription = t) : console.warn(`No matching distribution found for ID ${o}.`);
289
+ function ue(a, t) {
290
+ const e = l.value.find((o) => o.id === t);
291
+ e ? (e["dct:description"] = a, i.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
273
292
  }
274
- function te(t, o) {
275
- const e = s.value.find((a) => a.id === o);
276
- e ? (e["dcatde:licenseAttributionByText"] = t, n.value.nameTextByClauses = t) : console.warn(`No matching distribution found for ID ${o}.`);
293
+ function me(a, t, e) {
294
+ const o = l.value.find((s) => s.id === t);
295
+ e || (console.log(O.value), e = O.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, i.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
277
296
  }
278
- function oe(t, o) {
279
- const e = s.value.find((a) => a.id === o);
280
- e ? (e["dct:accessRights"] = t, n.value.accessRightsText = t) : console.warn(`No matching distribution found for ID ${o}.`);
297
+ function fe(a, t) {
298
+ const e = l.value.find((o) => o.id === t);
299
+ e ? (e["adms:status"] = a, i.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
281
300
  }
282
- function ae(t, o, e) {
283
- const a = s.value.find((i) => i.id === o);
284
- e || (e = G.value.find((i) => i.value === t).uri || ""), a ? (a["dcatap:availability"] = { label: t, uri: e }, n.value.availabilityText = t) : console.warn(`No matching distribution found for ID ${o}.`);
301
+ function pe(a, t, e, o) {
302
+ ie.value = !0;
303
+ const s = l.value.find((n) => n.id === e);
304
+ o || (o = oe.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", i.value.checksumText = a, i.value.checksumDropdownText = t, i.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
285
305
  }
286
- function ie(t, o) {
287
- const e = s.value.find((a) => a.id === o);
288
- e ? (e["adms:status"] = t, n.value.statusText = t) : console.warn(`No matching distribution found for ID ${o}.`);
289
- }
290
- function se(t, o, e, a) {
291
- K.value = !0;
292
- const i = s.value.find((d) => d.id === e);
293
- a || (a = H.value.find((d) => d.value === o).resource || ""), i ? (i.checksum.title = t, i.checksum["spdx:checksum"] = o, i.checksum.uri = a || "no URI", n.value.checksumText = t, n.value.checksumDropdownText = o, n.value.checksumURI = a) : console.warn(`No matching distribution found for ID ${e}.`);
294
- }
295
- function ne(t, o, e) {
296
- Z.value = !0;
297
- const a = s.value.find((i) => i.id === e);
298
- a ? (a.changeLicense.title = t, a.changeLicense["dcterms:license"] = o, n.value.changeLicenseText = t, n.value.changeLicenseDropdownText = o) : console.warn(`No matching distribution found for ID ${e}.`);
306
+ function ve(a, t, e, o) {
307
+ const s = l.value.find((c) => c.id === e);
308
+ let n = de.value.find(
309
+ (c) => c["@value"] === t
310
+ );
311
+ s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, b.value.DistributionSimple["dct:license"] = [
312
+ {
313
+ title: a,
314
+ "dcterms:license": t,
315
+ uri: n.uri
316
+ }
317
+ ], i.value.changeLicenseText = a, i.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
299
318
  }
300
- function de(t, o, e) {
301
- const a = s.value.find((i) => i.id === o);
302
- console.log($), e || (e = $.value.find((i) => i.label === t).uri || ""), a ? (a["dct:language"] = { label: t, uri: e }, n.value.languageText = t) : console.warn(`No matching distribution found for ID ${o}.`);
319
+ function he(a, t, e) {
320
+ const o = l.value.find((s) => s.id === t);
321
+ e || (e = se.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], i.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
303
322
  }
304
- function le(t, o) {
305
- const e = s.value.find((a) => a.id === o);
306
- e ? (e["dcat:byteSize"] = t, n.value.byteSizeText = t) : console.warn(`No matching distribution found for ID ${o}.`);
323
+ function ge(a, t) {
324
+ const e = l.value.find((o) => o.id === t);
325
+ e ? (e["dcat:byteSize"] = a, i.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
307
326
  }
308
- function D(t, o, e) {
309
- const a = s.value.find((d) => d.id === e);
310
- let i = g.value.find((d) => d["@value"] === t).uri || "";
311
- if (console.log(i), a)
312
- switch (a[o] = { label: t, uri: i }, o) {
327
+ function _(a, t, e) {
328
+ const o = l.value.find((n) => n.id === e);
329
+ let s = x.value.find((n) => n["@value"] === a).uri || "";
330
+ if (o)
331
+ switch (o[t] = { label: a, uri: s }, t) {
313
332
  case "dcat:mediaType":
314
- n.value.mediaTypeText = t;
333
+ i.value.mediaTypeText = a;
315
334
  break;
316
335
  case "dcat:compressFormat":
317
- n.value.compressFormatText = t;
336
+ i.value.compressFormatText = a;
318
337
  break;
319
338
  case "dcat:packageFormat":
320
- n.value.packageFormatText = t;
339
+ i.value.packageFormatText = a;
321
340
  break;
322
341
  }
323
342
  else
324
343
  console.warn(`No matching distribution found for ID ${e}.`);
325
344
  }
326
- function ke(t) {
327
- v(
328
- t,
345
+ function Fe(a) {
346
+ y(
347
+ a,
329
348
  "Konform zu Standard",
330
349
  "conformsToItems",
331
350
  !0,
332
351
  !0
333
352
  );
334
353
  }
335
- function De(t) {
336
- v(
337
- t,
354
+ function $e(a) {
355
+ y(
356
+ a,
338
357
  "Verfügbarkeit",
339
358
  "dcatap:availability",
340
359
  !1,
341
360
  !1
342
361
  );
343
362
  }
344
- function _e(t) {
345
- v(
346
- t,
363
+ function Ee(a) {
364
+ y(
365
+ a,
347
366
  "Status",
348
367
  "adms:status",
349
368
  !1,
350
369
  !1
351
370
  );
352
371
  }
353
- function Te(t) {
354
- v(
355
- t,
372
+ function Be(a) {
373
+ y(
374
+ a,
356
375
  "Größe in Bytes",
357
376
  "dcat:byteSize",
358
377
  !0,
359
378
  !1
360
379
  );
361
380
  }
362
- function we(t) {
363
- v(
364
- t,
381
+ function Me(a) {
382
+ y(
383
+ a,
365
384
  "Sprache",
366
385
  "dct:language",
367
386
  !0,
368
387
  !1
369
388
  );
370
389
  }
371
- function z(t, o) {
372
- v(o, t, t, !0, !1);
390
+ function q(a, t) {
391
+ y(t, a, a, !0, !1);
373
392
  }
374
- function Ie(t) {
375
- v(
376
- t,
393
+ function ze(a) {
394
+ y(
395
+ a,
377
396
  "Regelwerk",
378
397
  "policyItems",
379
398
  !0,
380
399
  !0
381
400
  );
382
401
  }
383
- function Ve(t) {
384
- v(
385
- t,
402
+ function Pe(a) {
403
+ y(
404
+ a,
386
405
  "Dokumentation",
387
406
  "documentations",
388
407
  !0,
389
408
  !0
390
409
  );
391
410
  }
392
- function Ae(t) {
393
- v(
394
- t,
411
+ function Ne(a) {
412
+ y(
413
+ a,
395
414
  "Ausliefernder Datenservice",
396
415
  "accessServices",
397
416
  !0,
398
417
  !0
399
418
  );
400
419
  }
401
- function Ce(t) {
402
- v(
403
- t,
420
+ function Oe(a, t, e) {
421
+ const o = b.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
422
+ o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
423
+ }
424
+ function We(a) {
425
+ y(
426
+ a,
404
427
  "Aktualisierungsdatum",
405
428
  "dct:modified",
406
429
  !1
407
430
  );
408
431
  }
409
- function Le(t) {
410
- v(
411
- t,
432
+ function je(a) {
433
+ y(
434
+ a,
412
435
  "Veröffentlichungsdatum",
413
436
  "dct:issued",
414
437
  !1
415
438
  );
416
439
  }
417
- function $e(t) {
418
- v(
419
- t,
440
+ function He(a) {
441
+ y(
442
+ a,
420
443
  "Beschreibung",
421
444
  "dct:description",
422
445
  !0
423
446
  );
424
447
  }
425
- function Se(t) {
426
- v(
427
- t,
428
- "Namensnennungstext für By-Clauses",
429
- "dcatde:licenseAttributionByText",
430
- !0
431
- );
432
- }
433
- function Re(t) {
434
- v(
435
- t,
436
- "Grad der Zugänglichkeit",
437
- "dct:accessRights",
438
- !1
439
- );
440
- }
441
- const Fe = Qe(() => R.value ? ge.getters["dpiStore/getNavSteps"](R.value) : {});
442
- Xe(Fe, (t) => {
443
- }), J.value || b.context.node.input([{ isValid: "unset" }]);
444
- function Ue() {
445
- const t = Date.now();
446
- s.value.push({
448
+ const Je = Ie(() => W.value ? Ce.getters["dpiStore/getNavSteps"](W.value) : {});
449
+ ut(Je, (a) => {
450
+ }), te.value || P.context.node.input([{ isValid: "unset" }]);
451
+ function Ke() {
452
+ const a = Date.now();
453
+ l.value.push({
447
454
  isValid: "unset",
448
- id: t,
455
+ id: a,
449
456
  "dcat:accessURL": "",
450
457
  "dct:format": {},
451
458
  "dct:title": "",
452
459
  documentations: [],
453
460
  conformsToItems: [],
461
+ "dcat:downloadURL": [{ "@id": "" }],
454
462
  policyItems: [],
455
463
  accessServices: [],
456
464
  "dct:modified": "",
457
465
  "dct:issued": "",
458
466
  "dct:description": void 0,
459
- "dcatde:licenseAttributionByText": void 0,
460
- "dct:accessRights": "",
467
+ // "dcatde:licenseAttributionByText": undefined,
468
+ // "dct:accessRights": "",
461
469
  "dcatap:availability": {},
462
- "dct:language": {},
470
+ "dct:language": [],
463
471
  "dcat:byteSize": void 0,
464
472
  "dcat:mediaType": {},
465
473
  "dcat:compressFormat": {},
466
474
  "dcat:packageFormat": {},
467
- "adms:status": "",
475
+ "adms:status": {},
468
476
  checksum: {
469
477
  title: "",
470
478
  "spdx:checksum": "",
471
479
  uri: ""
472
480
  },
473
- changeLicense: {
481
+ "dct:license": {
474
482
  title: "",
475
483
  "dcterms:license": ""
476
484
  }
477
- }), B(t);
485
+ }), J(a);
478
486
  }
479
- function Be(t, o) {
480
- const e = s.value.find((a) => a.id === t);
487
+ function qe(a, t) {
488
+ const e = l.value.find((o) => o.id === a);
481
489
  if (!e) {
482
- console.error(`Distribution with ID ${t} not found`);
490
+ console.error(`Distribution with ID ${a} not found`);
483
491
  return;
484
492
  }
485
- if (!Array.isArray(o)) {
486
- console.error("Provided documentations is not an array", o);
493
+ if (!Array.isArray(t)) {
494
+ console.error("Provided documentations is not an array", t);
487
495
  return;
488
496
  }
489
497
  e.documentations = e.documentations.filter(
490
- (a) => o.some((i) => i.id === a.id)
491
- ), o.forEach((a) => {
492
- const i = e.documentations.findIndex(
493
- (d) => d.id === a.id
498
+ (o) => t.some((s) => s.id === o.id)
499
+ ), t.forEach((o) => {
500
+ const s = e.documentations.findIndex(
501
+ (n) => n.id === o.id
494
502
  );
495
- if (i !== -1)
496
- e.documentations[i] = {
497
- ...e.documentations[i],
498
- ...a
503
+ if (s !== -1)
504
+ e.documentations[s] = {
505
+ ...e.documentations[s],
506
+ ...o
499
507
  };
500
508
  else {
501
- const d = e.documentations.length > 0 ? Math.max(...e.documentations.map((f) => f.id)) + 1 : 1;
509
+ const n = e.documentations.length > 0 ? Math.max(...e.documentations.map((c) => c.id)) + 1 : 1;
502
510
  e.documentations.push({
503
- id: a.id || d,
504
- "dcat:accessURL": a["dcat:accessURL"] || "",
505
- "dct:format": { label: a["dct:format"], uri: "test" },
506
- "dct:title": a["dct:title"] || "",
507
- "dct:description": a["dct:description"] || ""
511
+ id: o.id || n,
512
+ "dcat:accessURL": o["dcat:accessURL"] || "",
513
+ "dct:format": o["dct:format"] || "",
514
+ "dct:title": o["dct:title"] || "",
515
+ "dct:description": o["dct:description"] || "",
516
+ formatUri: o.formatUri || ""
508
517
  });
509
518
  }
510
519
  });
511
520
  }
512
- function Ee(t, o) {
513
- const e = s.value.find((a) => a.id === t);
521
+ function Ge(a, t) {
522
+ const e = l.value.find((o) => o.id === a);
514
523
  if (!e) {
515
- console.error(`Distribution with ID ${t} not found`);
524
+ console.error(`Distribution with ID ${a} not found`);
516
525
  return;
517
526
  }
518
- if (!Array.isArray(o)) {
527
+ if (!Array.isArray(t)) {
519
528
  console.error(
520
529
  "Provided access services is not an array",
521
- o
530
+ t
522
531
  );
523
532
  return;
524
533
  }
525
534
  e.accessServices = e.accessServices.filter(
526
- (a) => o.some(
527
- (i) => i.id === a.id
535
+ (o) => t.some(
536
+ (s) => s.id === o.id
528
537
  )
529
- ), o.forEach((a) => {
530
- const i = e.accessServices.findIndex(
531
- (d) => d.id === a.id
538
+ ), t.forEach((o) => {
539
+ const s = e.accessServices.findIndex(
540
+ (n) => n.id === o.id
532
541
  );
533
- if (i !== -1)
534
- e.accessServices[i] = {
535
- ...e.accessServices[i],
536
- ...a
542
+ if (s !== -1)
543
+ e.accessServices[s] = {
544
+ ...e.accessServices[s],
545
+ ...o
537
546
  };
538
547
  else {
539
- const d = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((f) => f.id)) + 1 : 1;
548
+ const n = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((c) => c.id)) + 1 : 1;
540
549
  e.accessServices.push({
541
- id: a.id || d,
542
- "dcat:accessURL": a["dcat:accessURL"] || "",
543
- "dct:title": a["dct:title"] || "",
544
- "dct:description": a["dct:description"] || ""
550
+ id: o.id || n,
551
+ "dcat:downloadURL": o["dcat:downloadURL"] || "",
552
+ "dct:title": o["dct:title"] || "",
553
+ "dct:description": o["dct:description"] || ""
545
554
  });
546
555
  }
547
556
  });
548
557
  }
549
- function Me(t, o) {
550
- const e = s.value.find((a) => a.id === t);
558
+ function Qe(a, t) {
559
+ var o;
560
+ const e = l.value.find((s) => s.id === a);
551
561
  if (!e) {
552
- console.error(`Distribution with ID ${t} not found`);
562
+ console.error(`Distribution with ID ${a} not found`);
553
563
  return;
554
564
  }
555
- if (!Array.isArray(o)) {
556
- console.error("Provided items is not an array", o);
565
+ if (!Array.isArray(t)) {
566
+ console.error("Provided items is not an array", t);
557
567
  return;
558
568
  }
559
- e.conformsToItems = e.conformsToItems.filter(
560
- (a) => o.some((i) => i.id === a.id)
561
- ), o.forEach((a) => {
562
- const i = e.conformsToItems.findIndex(
563
- (d) => d.id === a.id
569
+ e.conformsToItems = ((o = e == null ? void 0 : e.conformsToItems) == null ? void 0 : o.filter(
570
+ (s) => t.some((n) => n.id === s.id)
571
+ )) || [], t.forEach((s) => {
572
+ const n = e.conformsToItems.findIndex(
573
+ (c) => c.id === s.id
564
574
  );
565
- if (i !== -1)
566
- e.conformsToItems[i] = {
567
- ...e.conformsToItems[i],
568
- ...a
575
+ if (n !== -1)
576
+ e.conformsToItems[n] = {
577
+ ...e.conformsToItems[n],
578
+ ...s
569
579
  };
570
580
  else {
571
- const d = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((f) => f.id)) + 1 : 1;
581
+ const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((h) => h.id)) + 1 : 1;
572
582
  e.conformsToItems.push({
573
- id: a.id || d,
574
- "dcat:accessURL": a["dcat:accessURL"] || "",
575
- "dct:title": a["dct:title"] || ""
583
+ id: s.id || c,
584
+ "dcat:downloadURL": s["dcat:downloadURL"] || "",
585
+ "dct:title": s["dct:title"] || ""
576
586
  });
577
587
  }
578
588
  });
579
589
  }
580
- function ze(t, o) {
581
- const e = s.value.find((a) => a.id === t);
582
- if (!e) {
583
- console.error(`Distribution with ID ${t} not found`);
584
- return;
585
- }
586
- if (!Array.isArray(o)) {
587
- console.error("Provided items is not an array", o);
588
- return;
589
- }
590
- e.policyItems = e.policyItems.filter(
591
- (a) => o.some((i) => i.id === a.id)
592
- ), o.forEach((a) => {
593
- const i = e.policyItems.findIndex(
594
- (d) => d.id === a.id
595
- );
596
- if (i !== -1)
597
- e.policyItems[i] = {
598
- ...e.policyItems[i],
599
- ...a
600
- };
601
- else {
602
- const d = e.policyItems.length > 0 ? Math.max(...e.policyItems.map((f) => f.id)) + 1 : 1;
603
- e.policyItems.push({
604
- id: a.id || d,
605
- "dcat:accessURL": a["dcat:accessURL"] || ""
606
- });
607
- }
608
- });
590
+ function Xe(a, t) {
609
591
  }
610
- function Ne(t) {
611
- if (t === "deleteDataset" && y.value !== null) {
612
- if (s.value.length === 1) {
613
- F.value = !0;
592
+ function Ye(a) {
593
+ if (a === "deleteDataset" && k.value !== null) {
594
+ if (l.value.length === 1) {
595
+ j.value = !0;
614
596
  return;
615
597
  }
616
- s.value = s.value.filter(
617
- (o) => o.id !== y.value
618
- ), F.value = !1, y.value = null, B();
598
+ l.value = l.value.filter(
599
+ (t) => t.id !== k.value
600
+ ), j.value = !1, k.value = null, J();
619
601
  }
620
602
  }
621
- function Pe(t) {
622
- const o = JSON.parse(t), e = s.value.find(
623
- (a) => a.id === o.distributionId
603
+ function Ze(a) {
604
+ const t = JSON.parse(a), e = l.value.find(
605
+ (o) => o.id === t.distributionId
624
606
  );
625
- if (o.isArray) {
626
- e[o.optType] = [];
607
+ if (t.isArray) {
608
+ e[t.optType] = [];
627
609
  return;
628
610
  }
629
- o.useUndefined ? e[o.optType] = void 0 : e[o.optType] = "";
611
+ t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
630
612
  }
631
- function Oe(t) {
632
- y.value = t;
633
- const o = s.value.find((e) => e.id === t);
634
- o && (n.value = {
613
+ function et(a) {
614
+ var e, o, s, n, c;
615
+ k.value = a;
616
+ const t = l.value.find((h) => h.id === a);
617
+ t && (i.value = {
635
618
  button: "",
636
619
  header: "Optionale Informationen hinzufügen",
637
620
  text: "",
638
621
  action: "deleteDataset",
639
622
  showButtons: !1,
640
623
  optionalInfoView: !0,
641
- distributionId: t,
642
- documentations: o.documentations || [],
643
- accessServices: o.accessServices || [],
644
- dctModified: o["dct:modified"] || "",
645
- dctIssued: o["dct:issued"] || "",
646
- dctDescription: o["dct:description"] || "",
647
- nameTextByClauses: o["dcatde:licenseAttributionByText"] || "",
648
- accessRightsText: o["dct:accessRights"] || "",
649
- availabilityText: o["dcatap:availability"].label || "",
650
- languageText: o["dct:language"].label || "",
651
- byteSizeText: o["dcat:byteSize"] || "",
652
- mediaTypeText: o["dcat:mediaType"].label || "",
653
- compressFormatText: o["dcat:compressFormat"].label || "",
654
- packageFormatText: o["dcat:packageFormat"].label || "",
655
- statusText: o["adms:status"] || "",
656
- checksumText: o.checksum.title || "",
657
- checksumURI: o.checksum.uri || "",
658
- checksumDropdownText: o.checksum["spdx:checksum"] || "",
659
- changeLicenseText: o.changeLicense.title || "",
660
- changeLicenseDropdownText: o.changeLicense["dcterms:license"] || "",
661
- conformsToItems: o.conformsToItems || [],
662
- policyItems: o.policyItems || []
663
- }, w.value = !0);
624
+ distributionId: a,
625
+ documentations: t.documentations || [],
626
+ accessServices: t.accessServices || [],
627
+ dctModified: t["dct:modified"] || "",
628
+ dctIssued: t["dct:issued"] || "",
629
+ dctDescription: t["dct:description"] || "",
630
+ // nameTextByClauses: distribution["dcatde:licenseAttributionByText"] || "",
631
+ // accessRightsText: distribution["dct:accessRights"].uri || "",
632
+ availabilityText: ((o = (e = t["dcatap:availability"]) == null ? void 0 : e.label) == null ? void 0 : o.de) || "",
633
+ languageText: ((s = t == null ? void 0 : t["dct:language"]) == null ? void 0 : s["@value"]) || "",
634
+ byteSizeText: t["dcat:byteSize"] || "",
635
+ mediaTypeText: t["dcat:mediaType"].label || "",
636
+ // compressFormatText: distribution["dcat:compressFormat"].label || "",
637
+ packageFormatText: t["dcat:packageFormat"].label || "",
638
+ statusText: t["adms:status"].label || "",
639
+ checksumText: t.checksum.title || "",
640
+ checksumURI: t.checksum.uri || "",
641
+ checksumDropdownText: t.checksum["spdx:checksum"] || "",
642
+ changeLicenseText: ((n = t == null ? void 0 : t.changeLicense) == null ? void 0 : n.title) || "",
643
+ changeLicenseDropdownText: ((c = t == null ? void 0 : t.changeLicense) == null ? void 0 : c["dcterms:license"]) || "",
644
+ conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
645
+ policyItems: (t == null ? void 0 : t.policyItems) || [],
646
+ downloadURL: (t == null ? void 0 : t.downloadURL) || []
647
+ }, F.value = !0, document.body.style.overflow = "hidden");
648
+ }
649
+ function tt() {
650
+ F.value = !1, document.body.style.overflow = "auto";
664
651
  }
665
- function je(t) {
666
- y.value = t;
667
- const o = s.value.find((d) => d.id === t), e = o ? o["dct:title"] : "", a = o ? o["dct:format"].label : "", i = o ? o["dcat:accessURL"] : "";
668
- n.value = {
652
+ function at(a) {
653
+ k.value = a;
654
+ const t = l.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
655
+ i.value = {
669
656
  button: "Löschen",
670
- header: k(
657
+ header: D(
671
658
  "message.dataupload.datasets.dcat:distribution.delete-distribution.header"
672
659
  ),
673
- text: k(
660
+ text: D(
674
661
  "message.dataupload.datasets.dcat:distribution.delete-distribution.text"
675
662
  ),
676
663
  action: "deleteDataset",
677
664
  title: e,
678
- format: a,
679
- distributionLink: i
680
- }, w.value = !0;
665
+ format: o,
666
+ distributionLink: s
667
+ }, F.value = !0;
681
668
  }
682
- function v(t, o, e, a, i) {
683
- const f = JSON.stringify({
684
- distributionId: t,
669
+ function y(a, t, e, o, s) {
670
+ const c = JSON.stringify({
671
+ distributionId: a,
685
672
  optType: e,
686
- useUndefined: a,
687
- isArray: i
673
+ useUndefined: o,
674
+ isArray: s
688
675
  });
689
- _.value = {
676
+ C.value = {
690
677
  button: "Löschen",
691
- header: `${o} löschen`,
692
- text: `Sind Sie sicher, dass Sie das optionale Feld ${o} löschen wollen?`,
693
- action: f
694
- }, L.value = !0;
678
+ header: `${t} löschen`,
679
+ text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
680
+ action: c
681
+ }, N.value = !0;
695
682
  }
696
- function N(t, o, e) {
697
- var i, d, f, x;
698
- const a = s.value.find((h) => h.id === e);
699
- if (a) {
700
- if (o === "dcat:downloadURL") {
701
- const h = (i = t == null ? void 0 : t.target) == null ? void 0 : i.value;
702
- a[o] = h, h && !M(h) ? (a.showErrorDownloadURL = !0, a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein") : (a.showErrorDownloadURL = h.trim() === "", a.urlErrorMessage = "");
703
- } else if (o === "dct:format") {
704
- const h = typeof t == "string" ? t.trim() : (f = (d = t == null ? void 0 : t.target) == null ? void 0 : d.value) == null ? void 0 : f.trim();
705
- if (a[o] = h, a.showErrorFormat = !1, a.formatErrorMessage = "", h === "")
706
- S.value = [...g.value];
683
+ function G(a, t, e) {
684
+ var s, n, c, h;
685
+ const o = l.value.find((g) => g.id === e);
686
+ if (o)
687
+ if (t === "dcat:accessURL") {
688
+ const g = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
689
+ o[t] = g, L.value && clearTimeout(L.value), L.value = setTimeout(() => {
690
+ E(o, t);
691
+ }, 800);
692
+ } else if (t === "dct:format") {
693
+ const g = typeof a == "string" ? a.trim() : (c = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : c.trim();
694
+ if (o.showErrorFormat = !1, o.formatErrorMessage = "", g === "")
695
+ $.value = [...w.value];
707
696
  else {
708
- const ue = g.value.find(
709
- (P) => P["@value"].toLowerCase() === h.toLowerCase()
697
+ const T = w.value.find(
698
+ (I) => I["@value"].toLowerCase() === g.toLowerCase()
710
699
  );
711
- ue ? (a[o] = ue["@value"], a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, a.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), S.value = g.value.filter(
712
- (P) => P["@value"].toLowerCase().includes(h.toLowerCase())
700
+ T ? (o[t] = {
701
+ label: T["@value"],
702
+ uri: T.uri
703
+ }, o.showErrorFormat = !1, o.formatErrorMessage = "") : g === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: g, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), $.value = w.value.filter(
704
+ (I) => I["@value"].toLowerCase().includes(g.toLowerCase())
713
705
  );
714
706
  }
715
- E(a, o);
707
+ E(o, t);
716
708
  } else
717
- a[o] = (x = t == null ? void 0 : t.target) == null ? void 0 : x.value;
718
- o !== "dct:format" && E(a, o), console.log(s.value), b.context.node.input(s.value);
719
- }
709
+ o[t] = (h = a == null ? void 0 : a.target) == null ? void 0 : h.value, E(o, t);
720
710
  }
721
- function Je(t, o) {
722
- const e = s.value.find((a) => a.id === t);
711
+ function ot(a, t) {
712
+ const e = l.value.find((o) => o.id === a);
723
713
  e.documentations = e.documentations.filter(
724
- (a) => o.some((i) => i.id === a.id)
714
+ (o) => t.some((s) => s.id === o.id)
725
715
  );
726
716
  }
727
- function We(t, o) {
728
- const e = s.value.find((a) => a.id === t);
717
+ function st(a, t) {
718
+ const e = l.value.find((o) => o.id === a);
729
719
  e.accessServices = e.accessServices.filter(
730
- (a) => o.some((i) => i.id === a.id)
720
+ (o) => t.some((s) => s.id === o.id)
731
721
  );
732
722
  }
733
- function He(t, o) {
734
- const e = s.value.find((a) => a.id === t);
723
+ function it(a, t) {
724
+ const e = l.value.find((o) => o.id === a);
735
725
  e.conformsToItems = e.conformsToItems.filter(
736
- (a) => o.some((i) => i.id === a.id)
726
+ (o) => t.some((s) => s.id === o.id)
737
727
  );
738
728
  }
739
- function Ge(t, o) {
740
- const e = s.value.find((a) => a.id === t);
729
+ function lt(a, t) {
730
+ const e = l.value.find((o) => o.id === a);
741
731
  e.policyItems = e.policyItems.filter(
742
- (a) => o.some((i) => i.id === a.id)
732
+ (o) => t.some((s) => s.id === o.id)
743
733
  );
744
734
  }
745
- return (t, o) => (c(), r(me, null, [
746
- m("div", $t, [
747
- T.inRap ? u("", !0) : (c(), r("h4", St, I(t.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
748
- T.inRap ? u("", !0) : (c(), r("div", Rt, I(t.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
749
- (c(!0), r(me, null, Ye(s.value, (e) => (c(), r("div", {
750
- key: e.id,
751
- class: "dpiV3AutoCompleteWrap"
752
- }, [
753
- m("div", Ft, [
754
- l(he, {
755
- "add-on-text": !1,
756
- "date-picker": !1,
757
- "info-icon": !0,
758
- tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
759
- wird oder über eine Schnittstelle abgerufen werden kann.`,
760
- placeholder: t.$t(
761
- "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
762
- ),
763
- "pre-icon": !1,
764
- "input-field-size": "large",
765
- "initial-hint-text": !1,
766
- label: t.$t(
767
- "message.dataupload.datasets.dcat:distribution.download-link.label"
768
- ),
769
- "show-end-icon": !1,
770
- "show-error": e.showErrorDownloadURL,
771
- "model-value": e["dcat:accessURL"],
772
- onInput: (a) => N(a, "dcat:accessURL", e.id)
773
- }, null, 8, ["placeholder", "label", "show-error", "model-value", "onInput"]),
774
- e.showErrorDownloadURL && e.urlErrorMessage ? (c(), r("div", Ut, I(e.urlErrorMessage), 1)) : u("", !0),
775
- l(mt, {
776
- modelValue: e["dct:format"].label,
777
- "onUpdate:modelValue": [(a) => e["dct:format"].label = a, (a) => be(a, e.id)],
778
- "dropdown-width": "large",
779
- type: "inputField",
780
- "input-field-props": {
781
- addOnText: !1,
782
- initialHintText: !1,
735
+ return (a, t) => (r(), m(Q, null, [
736
+ f("div", Ot, [
737
+ V.inRap ? p("", !0) : (r(), m("h4", Wt, B(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
738
+ V.inRap ? p("", !0) : (r(), m("div", jt, B(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
739
+ (r(!0), m(Q, null, Ue(U(l), (e, o) => {
740
+ var s, n, c, h, g, T, I, xe, we, De, _e, Te;
741
+ return r(), m("div", {
742
+ key: e.id,
743
+ class: "dpiV3AutoCompleteWrap"
744
+ }, [
745
+ f("div", Ht, [
746
+ u(Z, {
747
+ "add-on-text": !1,
783
748
  datePicker: !1,
784
- infoIcon: !1,
749
+ infoIcon: !0,
750
+ tooltip_text: `Datenlink(s): URL(s), unter denen Ihr Datensatz online gehostet
751
+ wird oder über eine Schnittstelle abgerufen werden kann.`,
752
+ placeholder: a.$t(
753
+ "message.dataupload.datasets.dcat:distribution.download-link.placeholder"
754
+ ),
785
755
  preIcon: !1,
786
- label: t.$t(
787
- "message.dataupload.datasets.dcat:distribution.format.label"
756
+ "input-field-size": "large",
757
+ initialHintText: !1,
758
+ label: a.$t(
759
+ "message.dataupload.datasets.dcat:distribution.download-link.label"
788
760
  ),
789
- dropdown_dpiV3: !0,
790
- placeholder: t.$t(
791
- "message.dataupload.datasets.dcat:distribution.format.placeholder"
761
+ showEndIcon: !1,
762
+ showError: e.showErrorDownloadURL,
763
+ "model-value": e["dcat:accessURL"],
764
+ onInput: (d) => G(d, "dcat:accessURL", e.id)
765
+ }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
766
+ e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Jt, [
767
+ u(U(Y), {
768
+ size: 16,
769
+ weight: "fill"
770
+ }),
771
+ f("span", Kt, B(e.urlErrorMessage), 1)
772
+ ])) : p("", !0),
773
+ u(Tt, {
774
+ "dropdown-width": "large",
775
+ type: "inputField",
776
+ "input-field-props": {
777
+ addOnText: !1,
778
+ initialHintText: !1,
779
+ datePicker: !1,
780
+ infoIcon: !1,
781
+ preIcon: !0,
782
+ showEndIcon: !1,
783
+ label: a.$t(
784
+ "message.dataupload.datasets.dcat:distribution.format.label"
785
+ ),
786
+ dropdown_dpiV3: !0,
787
+ placeholder: a.$t(
788
+ "message.dataupload.datasets.dcat:distribution.format.placeholder"
789
+ ),
790
+ inputFieldSize: "large",
791
+ autocomplete: "true",
792
+ showError: e.showErrorFormat
793
+ },
794
+ data: $.value,
795
+ autocomplete: !0,
796
+ onInput: (d) => G(d, "dct:format", e.id),
797
+ "onUpdate:modelValue": (d) => Ae(d, e.id),
798
+ "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
799
+ }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
800
+ e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", qt, [
801
+ u(U(Y), {
802
+ size: 16,
803
+ weight: "fill"
804
+ }),
805
+ f("span", Gt, B(e.formatErrorMessage), 1)
806
+ ])) : p("", !0),
807
+ u(Z, {
808
+ modelValue: e["dct:title"],
809
+ "onUpdate:modelValue": (d) => e["dct:title"] = d,
810
+ "add-on-text": !1,
811
+ "date-picker": !1,
812
+ "info-icon": !1,
813
+ placeholder: a.$t(
814
+ "message.dataupload.datasets.dcat:distribution.distribution-title.placeholder"
792
815
  ),
793
- inputFieldSize: "large",
794
- autocomplete: "true",
795
- modelValue: e["dct:format"].label,
796
- showError: e.showErrorFormat
797
- },
798
- data: S.value,
799
- autocomplete: !0,
800
- onInput: (a) => N(a, "dct:format", e.id)
801
- }, null, 8, ["modelValue", "onUpdate:modelValue", "input-field-props", "data", "onInput"]),
802
- e.showErrorFormat && e.formatErrorMessage ? (c(), r("div", Bt, I(e.formatErrorMessage), 1)) : u("", !0),
803
- l(he, {
804
- modelValue: e["dct:title"],
805
- "onUpdate:modelValue": (a) => e["dct:title"] = a,
806
- "add-on-text": !1,
807
- "date-picker": !1,
808
- "info-icon": !1,
809
- placeholder: t.$t(
810
- "message.dataupload.datasets.dcat:distribution.distribution-title.placeholder"
811
- ),
812
- "pre-icon": !1,
813
- "input-field-size": "large",
814
- "initial-hint-text": !1,
815
- label: t.$t(
816
- "message.dataupload.datasets.dcat:distribution.distribution-title.label"
817
- ),
818
- "show-end-icon": !1,
819
- onInput: (a) => N(a, "dct:title", e.id)
820
- }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
821
- (e.documentations || []).length > 0 ? (c(), r("div", Et, [
822
- m("div", Mt, [
823
- o[7] || (o[7] = m("div", null, "Dokumentation (optional)", -1)),
824
- m("div", null, [
825
- l(A, {
826
- "button-text": "löschen",
827
- onClick: (a) => Ve(e.id)
828
- }, null, 8, ["onClick"])
816
+ "pre-icon": !1,
817
+ "input-field-size": "large",
818
+ "initial-hint-text": !1,
819
+ label: a.$t(
820
+ "message.dataupload.datasets.dcat:distribution.distribution-title.label"
821
+ ),
822
+ "show-end-icon": !1,
823
+ onInput: (d) => G(d, "dct:title", e.id)
824
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
825
+ (e.documentations || []).length > 0 ? (r(), m("div", Qt, [
826
+ f("div", Xt, [
827
+ t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
828
+ f("div", null, [
829
+ u(A, {
830
+ "button-text": "löschen",
831
+ onClick: (d) => Pe(e.id)
832
+ }, null, 8, ["onClick"])
833
+ ])
834
+ ]),
835
+ f("div", Yt, [
836
+ f("div", Zt, [
837
+ u($t, {
838
+ documentations: e.documentations,
839
+ "file-types": x.value,
840
+ "distribution-id": e.id,
841
+ "as-card": !0,
842
+ "show-delete-button": !0,
843
+ onUpdate: (d) => ot(e.id, d)
844
+ }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
845
+ ])
829
846
  ])
830
- ]),
831
- m("div", zt, [
832
- m("div", Nt, [
833
- l(_t, {
834
- documentations: e.documentations,
835
- "file-types": g.value,
836
- "distribution-id": e.id,
837
- "as-card": !0,
838
- "show-delete-button": !0,
839
- onUpdate: (a) => Je(e.id, a)
840
- }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
847
+ ])) : p("", !0),
848
+ (e.accessServices || []).length > 0 ? (r(), m("div", ea, [
849
+ f("div", ta, [
850
+ t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
851
+ f("div", null, [
852
+ u(A, {
853
+ "button-text": "löschen",
854
+ onClick: (d) => Ne(e.id)
855
+ }, null, 8, ["onClick"])
856
+ ])
857
+ ]),
858
+ f("div", aa, [
859
+ f("div", oa, [
860
+ u(Vt, {
861
+ "access-services": e.accessServices,
862
+ "distribution-id": e.id,
863
+ "as-card": !0,
864
+ "show-delete-button": !0,
865
+ onUpdate: (d) => st(
866
+ e.id,
867
+ d
868
+ )
869
+ }, null, 8, ["access-services", "distribution-id", "onUpdate"])
870
+ ])
841
871
  ])
842
- ])
843
- ])) : u("", !0),
844
- (e.accessServices || []).length > 0 ? (c(), r("div", Pt, [
845
- m("div", Ot, [
846
- o[8] || (o[8] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
847
- m("div", null, [
848
- l(A, {
849
- "button-text": "löschen",
850
- onClick: (a) => Ae(e.id)
872
+ ])) : p("", !0),
873
+ (r(!0), m(Q, { key: 4 }, Ue(e["dcat:downloadURL"], (d, R) => (r(), m("div", sa, [
874
+ f("div", ia, [
875
+ t[8] || (t[8] = f("div", {
876
+ class: "dpiV3_label",
877
+ style: { margin: "0" }
878
+ }, " DownloadURL (optional) ", -1)),
879
+ e["dcat:downloadURL"].length !== 1 ? (r(), m("div", la, [
880
+ u(A, {
881
+ "button-text": "löschen",
882
+ onClick: (S) => e["dcat:downloadURL"].splice(R, 1)
883
+ }, null, 8, ["onClick"])
884
+ ])) : p("", !0)
885
+ ]),
886
+ u(Z, {
887
+ onInput: (S) => Oe(
888
+ S.target.value,
889
+ e.id,
890
+ R
891
+ ),
892
+ addOnText: !1,
893
+ datePicker: !1,
894
+ infoIcon: !1,
895
+ placeholder: "Bitte URL eingeben...",
896
+ preIcon: !1,
897
+ inputFieldSize: "large",
898
+ initialHintText: !1,
899
+ label: "",
900
+ modelValue: e["dcat:downloadURL"][R]["@id"],
901
+ "onUpdate:modelValue": (S) => e["dcat:downloadURL"][R]["@id"] = S,
902
+ showEndIcon: !1
903
+ }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
904
+ R === e["dcat:downloadURL"].length - 1 ? (r(), m("div", na, [
905
+ u(z, {
906
+ buttonText: "Weitere DownloadURL hinzufügen",
907
+ size: "small",
908
+ iconStart: "plus",
909
+ variant: "tertiary",
910
+ onClick: (S) => e["dcat:downloadURL"].push({ "@id": "" })
851
911
  }, null, 8, ["onClick"])
852
- ])
912
+ ])) : p("", !0)
913
+ ]))), 256)),
914
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), m("div", da, [
915
+ u(Mt, {
916
+ "show-delete-button": !0,
917
+ "distribution-id": e.id,
918
+ "model-value": e["dct:modified"],
919
+ onAddModifiedDate: ce,
920
+ onDeleteButtonClicked: (d) => We(e.id)
921
+ }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
922
+ ])) : p("", !0),
923
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), m("div", ca, [
924
+ u(Et, {
925
+ "show-delete-button": !0,
926
+ "distribution-id": e.id,
927
+ "model-value": e["dct:issued"],
928
+ onAddIssuedDate: re,
929
+ onDeleteButtonClicked: (d) => je(e.id)
930
+ }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
931
+ ])) : p("", !0),
932
+ mt(f("div", ra, [
933
+ u(Ft, {
934
+ "distribution-id": e.id,
935
+ "description-text": e["dct:description"],
936
+ "show-delete-button": !0,
937
+ onAddDescription: ue,
938
+ onDeleteDescription: (d) => He(e.id)
939
+ }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
940
+ ], 512), [
941
+ [
942
+ ft,
943
+ e["dct:description"] !== void 0 && e["dct:description"] !== ""
944
+ ]
853
945
  ]),
854
- m("div", jt, [
855
- m("div", Jt, [
856
- l(ht, {
857
- "access-services": e.accessServices,
858
- "distribution-id": e.id,
859
- "as-card": !0,
860
- "show-delete-button": !0,
861
- onUpdate: (a) => We(
862
- e.id,
863
- a
864
- )
865
- }, null, 8, ["access-services", "distribution-id", "onUpdate"])
866
- ])
867
- ])
868
- ])) : u("", !0),
869
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (c(), r("div", Wt, [
870
- l(Vt, {
871
- "show-delete-button": !0,
872
- "distribution-id": e.id,
873
- "model-value": e["dct:modified"],
874
- onAddModifiedDate: X,
875
- onDeleteButtonClicked: (a) => Ce(e.id)
876
- }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
877
- ])) : u("", !0),
878
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (c(), r("div", Ht, [
879
- l(Tt, {
880
- "show-delete-button": !0,
881
- "distribution-id": e.id,
882
- "model-value": e["dct:issued"],
883
- onAddIssuedDate: Y,
884
- onDeleteButtonClicked: (a) => Le(e.id)
885
- }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
886
- ])) : u("", !0),
887
- et(m("div", Gt, [
888
- l(Dt, {
889
- "distribution-id": e.id,
890
- "description-text": e["dct:description"],
891
- "show-delete-button": !0,
892
- onAddDescription: ee,
893
- onDeleteDescription: (a) => $e(e.id)
894
- }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
895
- ], 512), [
896
- [tt, e["dct:description"] !== void 0]
946
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), m("div", ua, [
947
+ u(Lt, {
948
+ "availability-text": e["dcatap:availability"].label.de,
949
+ "distribution-id": e.id,
950
+ "show-delete-button": !0,
951
+ onAddAvailability: me,
952
+ onDeleteButtonClicked: (d) => $e(e.id)
953
+ }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
954
+ ])) : p("", !0),
955
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), m("div", ma, [
956
+ u(Pt, {
957
+ "status-text": e["adms:status"]["@value"],
958
+ "distribution-id": e.id,
959
+ "show-delete-button": !0,
960
+ onAddStatus: fe,
961
+ onDeleteButtonClicked: (d) => Ee(e.id)
962
+ }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
963
+ ])) : p("", !0),
964
+ e.checksum["spdx:checksum"] != "" ? (r(), m("div", fa, [
965
+ u(St, {
966
+ "checksum-text": e.checksum.title,
967
+ "checksum-dropdown-text": e.checksum["spdx:checksum"],
968
+ "distribution-id": e.id,
969
+ distIndex: o,
970
+ "checksum-u-r-i": e.checksum.uri,
971
+ "show-delete-button": !0,
972
+ onAddChecksum: pe
973
+ }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
974
+ ])) : p("", !0),
975
+ Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), m("div", pa, [
976
+ u(Rt, {
977
+ "change-license-text": (c = e["dct:license"]) == null ? void 0 : c.title,
978
+ "change-license-dropdown-text": (h = e["dct:license"]) == null ? void 0 : h["dcterms:license"],
979
+ "distribution-id": e.id,
980
+ "as-card": !0,
981
+ "show-delete-button": !0,
982
+ onAddChangeLicense: ve
983
+ }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
984
+ ])) : p("", !0),
985
+ e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", va, [
986
+ f("div", ha, [
987
+ t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
988
+ f("div", null, [
989
+ u(A, {
990
+ "button-text": "löschen",
991
+ onClick: (d) => Fe(e.id)
992
+ }, null, 8, ["onClick"])
993
+ ])
994
+ ]),
995
+ u(At, {
996
+ "conforms-to-items": e.conformsToItems,
997
+ "distribution-id": e.id,
998
+ "as-card": !0,
999
+ "show-delete-button": !0,
1000
+ onUpdate: (d) => it(e.id, d)
1001
+ }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1002
+ ])) : p("", !0),
1003
+ ((T = (g = e == null ? void 0 : e.policyItems) == null ? void 0 : g[0]) == null ? void 0 : T["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ga, [
1004
+ f("div", ya, [
1005
+ t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
1006
+ f("div", null, [
1007
+ u(A, {
1008
+ "button-text": "löschen",
1009
+ onClick: (d) => ze(e.id)
1010
+ }, null, 8, ["onClick"])
1011
+ ])
1012
+ ]),
1013
+ u(zt, {
1014
+ "policy-items": e.policyItems,
1015
+ "distribution-id": e.id,
1016
+ "as-card": !0,
1017
+ onUpdate: (d) => lt(e.id, d)
1018
+ }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1019
+ ])) : p("", !0),
1020
+ (xe = (I = e["dct:language"]) == null ? void 0 : I[0]) != null && xe.label || (De = (we = e["dct:language"]) == null ? void 0 : we[0]) != null && De["@value"] && ((Te = (_e = e["dct:language"]) == null ? void 0 : _e[0]) == null ? void 0 : Te["@value"].trim()) !== "" ? (r(), m("div", ka, [
1021
+ u(Bt, {
1022
+ "distribution-id": e.id,
1023
+ "show-delete-button": !1,
1024
+ onAddLanguage: he,
1025
+ onDeleteButtonClicked: (d) => Me(e.id),
1026
+ inOverview: !0
1027
+ }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1028
+ ])) : p("", !0),
1029
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", ba, [
1030
+ u(Ct, {
1031
+ "byte-size-prop": e["dcat:byteSize"],
1032
+ "distribution-id": e.id,
1033
+ "show-delete-button": !0,
1034
+ onAddByteSize: ge,
1035
+ onDeleteButtonClicked: (d) => Be(e.id)
1036
+ }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1037
+ ])) : p("", !0),
1038
+ e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", xa, [
1039
+ u(ee, {
1040
+ "distribution-id": e.id,
1041
+ "file-types": x.value,
1042
+ "file-format-type": "dcat:mediaType",
1043
+ "file-format-text": e["dcat:mediaType"].label,
1044
+ "show-delete-button": !0,
1045
+ onAddMediaType: _,
1046
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => q("dcat:mediaType", k.value))
1047
+ }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1048
+ ])) : p("", !0),
1049
+ e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", wa, [
1050
+ u(ee, {
1051
+ "distribution-id": e.id,
1052
+ "file-types": x.value,
1053
+ "file-format-type": "dcat:compressFormat",
1054
+ "compress-format-text": e["dcat:compressFormat"].label,
1055
+ "show-delete-button": !0,
1056
+ onAddCompressFormat: _,
1057
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => q("dcat:compressFormat", k.value))
1058
+ }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1059
+ ])) : p("", !0),
1060
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", Da, [
1061
+ u(ee, {
1062
+ "distribution-id": e.id,
1063
+ "file-types": x.value,
1064
+ "file-format-type": "dcat:packageFormat",
1065
+ "package-format-text": e["dcat:packageFormat"].label,
1066
+ "show-delete-button": !0,
1067
+ onAddPackageFormat: _,
1068
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => q("dcat:packageFormat", k.value))
1069
+ }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1070
+ ])) : p("", !0),
1071
+ j.value && U(l).length === 1 ? (r(), m("p", _a, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
897
1072
  ]),
898
- e["dcatde:licenseAttributionByText"] !== void 0 ? (c(), r("div", Kt, [
899
- l(It, {
900
- "show-delete-button": !0,
901
- "distribution-id": e.id,
902
- "name-text-by-clauses": e["dcatde:licenseAttributionByText"],
903
- onAddLicenseAttrByText: te,
904
- onDeleteButtonClicked: (a) => Se(e.id)
905
- }, null, 8, ["distribution-id", "name-text-by-clauses", "onDeleteButtonClicked"])
906
- ])) : u("", !0),
907
- e["dct:accessRights"] && e["dct:accessRights"].trim() !== "" ? (c(), r("div", Zt, [
908
- l(vt, {
909
- "show-delete-button": !0,
910
- "distribution-id": e.id,
911
- "access-rights-prop": e["dct:accessRights"],
912
- onAddAccessRights: oe,
913
- onDeleteButtonClicked: (a) => Re(e.id)
914
- }, null, 8, ["distribution-id", "access-rights-prop", "onDeleteButtonClicked"])
915
- ])) : u("", !0),
916
- e["dcatap:availability"].label && e["dcatap:availability"].label.trim() !== "" ? (c(), r("div", qt, [
917
- l(gt, {
918
- "availability-text": e["dcatap:availability"].label,
919
- "distribution-id": e.id,
920
- "show-delete-button": !0,
921
- onAddAvailability: ae,
922
- onDeleteButtonClicked: (a) => De(e.id)
923
- }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
924
- ])) : u("", !0),
925
- e["adms:status"] && e["adms:status"].trim() !== "" ? (c(), r("div", Qt, [
926
- l(Ct, {
927
- "status-text": e["adms:status"],
928
- "distribution-id": e.id,
929
- "show-delete-button": !0,
930
- onAddStatus: ie,
931
- onDeleteButtonClicked: (a) => _e(e.id)
932
- }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
933
- ])) : u("", !0),
934
- K.value ? (c(), r("div", Xt, [
935
- l(bt, {
936
- "checksum-text": e.checksum.title,
937
- "checksum-dropdown-text": e.checksum["spdx:checksum"],
938
- "distribution-id": e.id,
939
- "checksum-u-r-i": e.checksum.uri,
940
- "show-delete-button": !0,
941
- onAddChecksum: se
942
- }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "checksum-u-r-i"])
943
- ])) : u("", !0),
944
- Z.value ? (c(), r("div", Yt, [
945
- l(xt, {
946
- "change-license-text": e.changeLicense.title,
947
- "change-license-dropdown-text": e.changeLicense["dcterms:license"],
948
- "distribution-id": e.id,
949
- "as-card": !0,
950
- "show-delete-button": !0,
951
- onAddChangeLicense: ne
952
- }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
953
- ])) : u("", !0),
954
- e.conformsToItems && e.conformsToItems.length > 0 ? (c(), r("div", eo, [
955
- m("div", to, [
956
- o[9] || (o[9] = m("div", null, "Konform zu Standard (optional)", -1)),
957
- m("div", null, [
958
- l(A, {
959
- "button-text": "löschen",
960
- onClick: (a) => ke(e.id)
961
- }, null, 8, ["onClick"])
962
- ])
963
- ]),
964
- l(kt, {
965
- "conforms-to-items": e.conformsToItems,
966
- "distribution-id": e.id,
967
- "as-card": !0,
968
- "show-delete-button": !0,
969
- onUpdate: (a) => He(e.id, a)
970
- }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
971
- ])) : u("", !0),
972
- e.policyItems && e.policyItems.length > 0 ? (c(), r("div", oo, [
973
- m("div", ao, [
974
- o[10] || (o[10] = m("div", null, "Regelwerk (optional)", -1)),
975
- m("div", null, [
976
- l(A, {
977
- "button-text": "löschen",
978
- onClick: (a) => Ie(e.id)
979
- }, null, 8, ["onClick"])
980
- ])
981
- ]),
982
- l(At, {
983
- "policy-items": e.policyItems,
984
- "distribution-id": e.id,
985
- "as-card": !0,
986
- onUpdate: (a) => Ge(e.id, a)
987
- }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
988
- ])) : u("", !0),
989
- e["dct:language"].label && e["dct:language"].label.trim() !== "" ? (c(), r("div", io, [
990
- l(wt, {
991
- "language-text": e["dct:language"].label,
992
- "distribution-id": e.id,
993
- "show-delete-button": !0,
994
- onAddLanguage: de,
995
- onDeleteButtonClicked: (a) => we(e.id)
996
- }, null, 8, ["language-text", "distribution-id", "onDeleteButtonClicked"])
997
- ])) : u("", !0),
998
- e["dcat:byteSize"] !== void 0 ? (c(), r("div", so, [
999
- l(yt, {
1000
- "byte-size-prop": e["dcat:byteSize"],
1001
- "distribution-id": e.id,
1002
- "show-delete-button": !0,
1003
- onAddByteSize: le,
1004
- onDeleteButtonClicked: (a) => Te(e.id)
1005
- }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1006
- ])) : u("", !0),
1007
- e["dcat:mediaType"] && e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (c(), r("div", no, [
1008
- l(j, {
1009
- "distribution-id": e.id,
1010
- "file-types": g.value,
1011
- "file-format-type": "dcat:mediaType",
1012
- "file-format-text": e["dcat:mediaType"].label,
1013
- "show-delete-button": !0,
1014
- onAddMediaType: D,
1015
- onDeleteButtonClicked: o[0] || (o[0] = (a) => z("dcat:mediaType", y.value))
1016
- }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1017
- ])) : u("", !0),
1018
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (c(), r("div", lo, [
1019
- l(j, {
1020
- "distribution-id": e.id,
1021
- "file-types": g.value,
1022
- "file-format-type": "dcat:compressFormat",
1023
- "compress-format-text": e["dcat:compressFormat"].label,
1024
- "show-delete-button": !0,
1025
- onAddCompressFormat: D,
1026
- onDeleteButtonClicked: o[1] || (o[1] = (a) => z("dcat:compressFormat", y.value))
1027
- }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1028
- ])) : u("", !0),
1029
- e["dcat:packageFormat"] && e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (c(), r("div", co, [
1030
- l(j, {
1031
- "distribution-id": e.id,
1032
- "file-types": g.value,
1033
- "file-format-type": "dcat:packageFormat",
1034
- "package-format-text": e["dcat:packageFormat"].label,
1035
- "show-delete-button": !0,
1036
- onAddPackageFormat: D,
1037
- onDeleteButtonClicked: o[2] || (o[2] = (a) => z("dcat:packageFormat", y.value))
1038
- }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1039
- ])) : u("", !0),
1040
- F.value && s.value.length === 1 ? (c(), r("p", ro, " Mindestens ein Link muss vorhanden sein. ")) : u("", !0)
1041
- ]),
1042
- m("div", uo, [
1043
- l(O, {
1044
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1045
- size: "small",
1046
- "icon-start": "PlusSquare",
1047
- variant: "tertiary",
1048
- onClick: (a) => Oe(e.id)
1049
- }, null, 8, ["button-text", "onClick"]),
1050
- l(O, {
1051
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.delete"),
1052
- size: "small",
1053
- "icon-start": "trash",
1054
- variant: "tertiary",
1055
- onClick: (a) => je(e.id)
1056
- }, null, 8, ["button-text", "onClick"])
1057
- ])
1058
- ]))), 128)),
1059
- m("div", mo, [
1060
- l(O, {
1061
- "button-text": t.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1073
+ f("div", Ta, [
1074
+ u(z, {
1075
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1076
+ size: "small",
1077
+ "icon-start": "PlusSquare",
1078
+ variant: "tertiary",
1079
+ onClick: (d) => et(e.id)
1080
+ }, null, 8, ["button-text", "onClick"]),
1081
+ U(l).length > 1 ? (r(), X(z, {
1082
+ key: 0,
1083
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1084
+ size: "small",
1085
+ "icon-start": "trash",
1086
+ variant: "tertiary",
1087
+ onClick: (d) => at(e.id)
1088
+ }, null, 8, ["button-text", "onClick"])) : p("", !0)
1089
+ ])
1090
+ ]);
1091
+ }), 128)),
1092
+ f("div", Ia, [
1093
+ u(z, {
1094
+ "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1062
1095
  size: "large",
1063
1096
  "icon-start": "plus",
1064
1097
  variant: "tertiary",
1065
- onClick: Ue
1098
+ onClick: Ke
1066
1099
  }, null, 8, ["button-text"])
1067
1100
  ]),
1068
- U.value ? (c(), r("div", fo, [
1069
- l(ot(at), {
1101
+ H.value ? (r(), m("div", {
1102
+ key: 2,
1103
+ class: pt(V.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
1104
+ }, [
1105
+ u(U(Y), {
1070
1106
  size: 16,
1071
1107
  weight: "fill"
1072
1108
  }),
1073
- o[11] || (o[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1074
- ])) : u("", !0)
1109
+ t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1110
+ ], 2)) : p("", !0)
1075
1111
  ]),
1076
- w.value ? (c(), fe(pt, {
1112
+ F.value ? (r(), X(Ut, {
1077
1113
  key: 0,
1078
- "file-types": g.value,
1079
- buttons: n.value.button,
1080
- "header-text": n.value.header,
1081
- text: n.value.text,
1082
- "show-buttons": n.value.showButtons,
1083
- "optional-info-view": n.value.optionalInfoView,
1084
- documentations: n.value.documentations,
1085
- "access-services": n.value.accessServices,
1086
- action: n.value.action,
1087
- title: n.value.title,
1088
- format: n.value.format,
1089
- "distribution-link": n.value.distributionLink,
1090
- sections: W.value,
1091
- context: T.context,
1092
- "distribution-id": n.value.distributionId,
1093
- "modified-date": n.value.dctModified || "",
1094
- "issued-date": n.value.dctIssued || "",
1095
- "description-text": n.value.dctDescription || "",
1096
- "name-text-by-clauses": n.value.nameTextByClauses || "",
1097
- "access-rights-text": n.value.accessRightsText || "",
1098
- "availability-text": n.value.availabilityText || "",
1099
- "language-text": n.value.languageText || "",
1100
- "byte-size-text": n.value.byteSizeText || "",
1101
- "media-type-text": n.value.mediaTypeText || "",
1102
- "compress-format-text": n.value.compressFormatText || "",
1103
- "package-format-text": n.value.packageFormatText || "",
1104
- "status-text": n.value.statusText || "",
1105
- "checksum-text": n.value.checksumText || "",
1106
- "checksum-u-r-i": n.value.checksumURI || "",
1107
- "checksum-dropdown-text": n.value.checksumDropdownText || "",
1108
- "change-license-text": n.value.changeLicenseText || "",
1109
- "change-license-dropdown-text": n.value.changeLicenseDropdownText || "",
1110
- "conforms-to-items": n.value.conformsToItems,
1111
- "policy-items": n.value.policyItems,
1112
- onClose: o[3] || (o[3] = (e) => w.value = !1),
1113
- onActionHandling: o[4] || (o[4] = (e) => Ne(e)),
1114
- onAddDocumentations: Be,
1115
- onAddAccessServices: Ee,
1116
- onAddModifiedDate: X,
1117
- onAddIssuedDate: Y,
1118
- onAddDescription: ee,
1119
- onAddLicenseAttrByText: te,
1120
- onAddAccessRights: oe,
1121
- onAddAvailability: ae,
1122
- onAddLanguage: de,
1123
- onAddByteSize: le,
1124
- onAddMediaType: D,
1125
- onAddCompressFormat: D,
1126
- onAddPackageFormat: D,
1127
- onAddStatus: ie,
1128
- onAddChecksum: se,
1129
- onAddChangeLicense: ne,
1130
- onAddConformsToItems: Me,
1131
- onAddPolicyItems: ze
1132
- }, null, 8, ["file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "name-text-by-clauses", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items"])) : u("", !0),
1133
- L.value ? (c(), fe(ft, {
1114
+ "distibution-id": k.value,
1115
+ "file-types": x.value,
1116
+ buttons: i.value.button,
1117
+ "header-text": i.value.header,
1118
+ text: i.value.text,
1119
+ "show-buttons": i.value.showButtons,
1120
+ "optional-info-view": i.value.optionalInfoView,
1121
+ documentations: i.value.documentations,
1122
+ "access-services": i.value.accessServices,
1123
+ action: i.value.action,
1124
+ title: i.value.title,
1125
+ format: i.value.format,
1126
+ "distribution-link": i.value.distributionLink,
1127
+ sections: ae.value,
1128
+ context: V.context,
1129
+ "distribution-id": i.value.distributionId,
1130
+ "modified-date": i.value.dctModified || "",
1131
+ "issued-date": i.value.dctIssued || "",
1132
+ "description-text": i.value.dctDescription || "",
1133
+ "access-rights-text": i.value.accessRightsText || "",
1134
+ "availability-text": i.value.availabilityText || "",
1135
+ "language-text": i.value.languageText || "",
1136
+ "byte-size-text": i.value.byteSizeText || "",
1137
+ "media-type-text": i.value.mediaTypeText || "",
1138
+ "compress-format-text": i.value.compressFormatText || "",
1139
+ "package-format-text": i.value.packageFormatText || "",
1140
+ "status-text": i.value.statusText || "",
1141
+ "checksum-text": i.value.checksumText || "",
1142
+ "checksum-u-r-i": i.value.checksumURI || "",
1143
+ "checksum-dropdown-text": i.value.checksumDropdownText || "",
1144
+ "change-license-text": i.value.changeLicenseText || "",
1145
+ "change-license-dropdown-text": i.value.changeLicenseDropdownText || "",
1146
+ "conforms-to-items": i.value.conformsToItems,
1147
+ "policy-items": i.value.policyItems,
1148
+ "download-URL": i.value.downloadURL,
1149
+ onClose: tt,
1150
+ onActionHandling: t[3] || (t[3] = (e) => Ye(e)),
1151
+ onAddDocumentations: qe,
1152
+ onAddAccessServices: Ge,
1153
+ onAddModifiedDate: ce,
1154
+ onAddIssuedDate: re,
1155
+ onAddDescription: ue,
1156
+ onAddAccessRights: a.handleAccessRights,
1157
+ onAddAvailability: me,
1158
+ onAddLanguage: he,
1159
+ onAddByteSize: ge,
1160
+ onAddMediaType: _,
1161
+ onAddCompressFormat: _,
1162
+ onAddPackageFormat: _,
1163
+ onAddStatus: fe,
1164
+ onAddChecksum: pe,
1165
+ onAddChangeLicense: ve,
1166
+ onAddConformsToItems: Qe,
1167
+ onAddPolicyItems: Xe
1168
+ }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL", "onAddAccessRights"])) : p("", !0),
1169
+ N.value ? (r(), X(It, {
1134
1170
  key: 1,
1135
- buttons: _.value.button,
1136
- "header-text": _.value.header,
1137
- text: _.value.text,
1138
- action: _.value.action,
1139
- onClose: o[5] || (o[5] = (e) => L.value = !1),
1140
- onActionHandling: o[6] || (o[6] = (e) => Pe(e))
1141
- }, null, 8, ["buttons", "header-text", "text", "action"])) : u("", !0)
1171
+ buttons: C.value.button,
1172
+ "header-text": C.value.header,
1173
+ text: C.value.text,
1174
+ action: C.value.action,
1175
+ onClose: t[4] || (t[4] = (e) => N.value = !1),
1176
+ onActionHandling: t[5] || (t[5] = (e) => Ze(e))
1177
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1142
1178
  ], 64));
1143
1179
  }
1144
- }, Zo = /* @__PURE__ */ Lt(po, [["__scopeId", "data-v-935b8d99"]]);
1180
+ }, no = /* @__PURE__ */ Nt(Ua, [["__scopeId", "data-v-cbd7a62d"]]);
1145
1181
  export {
1146
- Zo as default
1182
+ no as default
1147
1183
  };