@piveau/dpi 0.2.0-alpha.47 → 0.2.0-alpha.49

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