@piveau/dpi 0.1.0-beta.8 → 0.1.0-twinby.0

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