@piveau/dpi 0.2.0-alpha.14 → 0.2.0-alpha.15

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 (68) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +18 -17
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +35 -28
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +337 -337
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
  44. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
  45. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
  46. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
  47. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
  48. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  49. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
  50. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
  51. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +53 -55
  52. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
  53. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
  54. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
  55. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
  56. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
  57. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
  58. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
  59. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
  60. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
  61. package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
  62. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  63. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
  64. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  65. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
  66. package/package.json +5 -5
  67. package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
  68. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
@@ -1,46 +1,50 @@
1
- import { getNode as Z } from "@formkit/core";
1
+ import { getNode as pe } from "@formkit/core";
2
2
  import "@formkit/vue";
3
- import { PhNumberCircleFive as G, PhCheckCircle as X, PhLightbulb as Y } from "@phosphor-icons/vue";
4
- import { useWindowScroll as N } from "@vueuse/core";
5
- import J from "jquery";
6
- import { has as L, isNil as O } from "lodash-es";
7
- import { defineComponent as Q, resolveComponent as f, createElementBlock as o, openBlock as a, createCommentVNode as n, createElementVNode as i, createVNode as h, createBlock as S, withModifiers as x, withCtx as M, Fragment as V, renderList as _, withDirectives as z, normalizeClass as C, toDisplayString as l, vShow as j, createTextVNode as k, ref as H, markRaw as ee, getCurrentInstance as te } from "vue";
8
- import { useI18n as ie } from "vue-i18n";
9
- import { mapActions as W, mapGetters as q } from "vuex";
10
- import se from "../components/InputPageStep.vue.js";
11
- import ae from "../components/Navigation.vue.js";
12
- import { useFormValues as oe } from "../composables/useDpiFormValues.js";
13
- import { useDpiStepper as re } from "../composables/useDpiStepper.js";
14
- import K from "../config/dcatapdeHappyFlow/converter.js";
15
- import le from "../HappyFlowComponents/img/Circle.svg.js";
16
- import de from "../HappyFlowComponents/img/CircleFill.svg.js";
17
- import ne from "../HappyFlowComponents/img/Selected1.svg.js";
18
- import ce from "../HappyFlowComponents/img/Selected1_2.svg.js";
19
- import pe from "../HappyFlowComponents/img/Selected2.svg.js";
20
- import ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
21
- import he from "../HappyFlowComponents/img/Selected3.svg.js";
22
- import me from "../HappyFlowComponents/img/Selected3_2.svg.js";
23
- import ge from "../HappyFlowComponents/img/Selected4.svg.js";
24
- import ve from "../HappyFlowComponents/img/Selected4_2.svg.js";
25
- import fe from "../HappyFlowComponents/img/Selected5.svg.js";
26
- import be from "../HappyFlowComponents/img/Selected5_2.svg.js";
27
- import { eventBus as Se } from "../HappyFlowComponents/services/eventBus.js";
28
- import ye from "../HappyFlowComponents/ui/ButtonV3.vue.js";
29
- import Ce from "../HappyFlowComponents/ui/Illustration.vue.js";
30
- import Ve from "../HappyFlowComponents/ui/LogoV3.vue.js";
31
- import _e from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
32
- import ke from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
33
- import De from "./DistributionInputPage.vue.js";
34
- import Ie from "./OverviewPage.vue.js";
35
- import Te from "./PropertyChooser.vue.js";
3
+ import { PhNumberCircleFive as ue, PhCheckCircle as he, PhLightbulb as me } from "@phosphor-icons/vue";
4
+ import { putDataset as ge } from "@piveau/sdk-core/hubRepo";
5
+ import { useWindowScroll as ve } from "@vueuse/core";
6
+ import fe from "jquery";
7
+ import { has as $, isNil as x } from "lodash-es";
8
+ import { defineComponent as be, resolveComponent as g, createElementBlock as o, openBlock as s, createCommentVNode as n, createElementVNode as i, createVNode as h, createBlock as b, withModifiers as Se, withCtx as ee, Fragment as V, renderList as k, withDirectives as te, normalizeClass as y, toDisplayString as l, vShow as ie, createTextVNode as _, ref as se, markRaw as ye, getCurrentInstance as Ce } from "vue";
9
+ import { useI18n as Ve } from "vue-i18n";
10
+ import { useRoute as ke } from "vue-router";
11
+ import { mapActions as ae, mapGetters as oe } from "vuex";
12
+ import { useRuntimeEnv as _e } from "../../composables/useRuntimeEnv.js";
13
+ import De from "../components/InputPageStep.vue.js";
14
+ import Ie from "../components/Navigation.vue.js";
15
+ import { useFormValues as Te } from "../composables/useDpiFormValues.js";
16
+ import { useDpiStepper as Pe } from "../composables/useDpiStepper.js";
17
+ import { useTwinbyUser as Le } from "../composables/useTwinbyUser.js";
18
+ import re from "../config/dcatapdeHappyFlow/converter.js";
19
+ import we from "../HappyFlowComponents/img/Circle.svg.js";
20
+ import Ae from "../HappyFlowComponents/img/CircleFill.svg.js";
21
+ import $e from "../HappyFlowComponents/img/Selected1.svg.js";
22
+ import Re from "../HappyFlowComponents/img/Selected1_2.svg.js";
23
+ import Ee from "../HappyFlowComponents/img/Selected2.svg.js";
24
+ import Ue from "../HappyFlowComponents/img/Selected2_2.svg.js";
25
+ import Be from "../HappyFlowComponents/img/Selected3.svg.js";
26
+ import Fe from "../HappyFlowComponents/img/Selected3_2.svg.js";
27
+ import Oe from "../HappyFlowComponents/img/Selected4.svg.js";
28
+ import ze from "../HappyFlowComponents/img/Selected4_2.svg.js";
29
+ import Me from "../HappyFlowComponents/img/Selected5.svg.js";
30
+ import je from "../HappyFlowComponents/img/Selected5_2.svg.js";
31
+ import { eventBus as He } from "../HappyFlowComponents/services/eventBus.js";
32
+ import We from "../HappyFlowComponents/ui/ButtonV3.vue.js";
33
+ import qe from "../HappyFlowComponents/ui/Illustration.vue.js";
34
+ import Ke from "../HappyFlowComponents/ui/LogoV3.vue.js";
35
+ import Ze from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
36
+ import Ge from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
37
+ import Xe from "./DistributionInputPage.vue.js";
38
+ import Ne from "./OverviewPage.vue.js";
39
+ import Ye from "./PropertyChooser.vue.js";
36
40
  /* empty css */
37
41
  /* empty css */
38
42
  /* empty css */
39
- import Pe from "../../../../../_virtual/_plugin-vue_export-helper.js";
40
- import { useDpiContext as Le } from "../composables/useDpiContext.js";
41
- import { useEditModeInfo as we } from "../composables/useDpiEditMode.js";
42
- import { useFormSchema as Ae } from "../composables/useFormSchema.js";
43
- const $e = Q({
43
+ import Je from "../../../../../_virtual/_plugin-vue_export-helper.js";
44
+ import { useDpiContext as Qe } from "../composables/useDpiContext.js";
45
+ import { useEditModeInfo as xe } from "../composables/useDpiEditMode.js";
46
+ import { useFormSchema as et } from "../composables/useFormSchema.js";
47
+ const tt = be({
44
48
  props: {
45
49
  property: {
46
50
  required: !0,
@@ -53,16 +57,16 @@ const $e = Q({
53
57
  },
54
58
  data() {
55
59
  return {
56
- circles: [le, de],
57
- images: [ne, pe, he, ge, fe],
60
+ circles: [we, Ae],
61
+ images: [$e, Ee, Be, Oe, Me],
58
62
  selectedImages: [
59
- ce,
60
- ue,
61
- me,
62
- ve,
63
- be
63
+ Re,
64
+ Ue,
65
+ Fe,
66
+ ze,
67
+ je
64
68
  ],
65
- instance: te(),
69
+ instance: Ce(),
66
70
  heightActiveSec: "10vh",
67
71
  // formValues: {},
68
72
  offsetTopStepper: "60px",
@@ -84,29 +88,29 @@ const $e = Q({
84
88
  };
85
89
  },
86
90
  components: {
87
- InputPageStep: se,
88
- DistributionInputPage: De,
89
- PropertyChooser: Te,
90
- Navigation: ae,
91
- LogoV3: Ve,
92
- ButtonV3: ye,
93
- TextButtonSmall: ke,
94
- Illustration: Ce,
95
- PhLightbulb: Y,
96
- PhCheckCircle: X,
97
- PhNumberCircleFive: G,
98
- ModalSimpleV3: _e
91
+ InputPageStep: De,
92
+ DistributionInputPage: Xe,
93
+ PropertyChooser: Ye,
94
+ Navigation: Ie,
95
+ LogoV3: Ke,
96
+ ButtonV3: We,
97
+ TextButtonSmall: Ge,
98
+ Illustration: qe,
99
+ PhLightbulb: me,
100
+ PhCheckCircle: he,
101
+ PhNumberCircleFive: ue,
102
+ ModalSimpleV3: Ze
99
103
  },
100
104
  computed: {
101
- ...q("auth", [
105
+ ...oe("auth", [
102
106
  "getIsEditMode",
103
107
  "getUserCatalogIds",
104
108
  "getUserData"
105
109
  ]),
106
- ...q("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
110
+ ...oe("dpiStore", ["getNavSteps", "getDeleteDistributionInline"]),
107
111
  getTitleStep() {
108
112
  return Object.keys(this.formValues).filter(
109
- (e) => L(this.formValues[e], "dct:title")
113
+ (e) => $(this.formValues[e], "dct:title")
110
114
  )[0];
111
115
  },
112
116
  createIDFromTitle() {
@@ -117,7 +121,7 @@ const $e = Q({
117
121
  getFirstTitleFromForm() {
118
122
  try {
119
123
  const e = this.formValues[this.getTitleStep];
120
- return L(e, "dct:title") && e["dct:title"].length > 0 && L(e["dct:title"][0], "@value") && !O(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
124
+ return $(e, "dct:title") && e["dct:title"].length > 0 && $(e["dct:title"][0], "@value") && !x(e["dct:title"][0], "@value") ? e["dct:title"][0]["@value"] : "";
121
125
  } catch {
122
126
  }
123
127
  },
@@ -126,8 +130,8 @@ const $e = Q({
126
130
  }
127
131
  },
128
132
  methods: {
129
- ...W("auth", ["setIsEditMode", "setIsDraft"]),
130
- ...W("dpiStore", [
133
+ ...ae("auth", ["setIsEditMode", "setIsDraft"]),
134
+ ...ae("dpiStore", [
131
135
  "saveFormValues",
132
136
  "saveLocalstorageValues",
133
137
  "clearAll"
@@ -137,7 +141,7 @@ const $e = Q({
137
141
  },
138
142
  // Route to the RAP Page
139
143
  goToRAP() {
140
- this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(Z(this.activeStep).value)[0];
144
+ this.fillData(), this.activeStep = "ReviewAndPublish", this.activeSubStep = Object.keys(pe(this.activeStep).value)[0];
141
145
  },
142
146
  // Remove after DPI development is finished - just fills all fields with dummy Data
143
147
  fillData() {
@@ -549,7 +553,7 @@ const $e = Q({
549
553
  return e === this.substepCounter ? this.circles[1] : this.circles[0];
550
554
  },
551
555
  handleDistributionsValidation(e) {
552
- Se.emit("nextClicked", e);
556
+ He.emit("nextClicked", e);
553
557
  },
554
558
  gotToHome() {
555
559
  window.location.href = this.$router.resolve({
@@ -558,29 +562,29 @@ const $e = Q({
558
562
  },
559
563
  navTrigger(e, t) {
560
564
  try {
561
- let s = [];
562
- if (Object.keys(this.steps).forEach((c, u) => {
563
- let b = {
564
- step: c,
565
+ let a = [];
566
+ if (Object.keys(this.steps).forEach((p, u) => {
567
+ let D = {
568
+ step: p,
565
569
  substeps: this.subSteps[u],
566
570
  substepCount: Object.keys(this.subSteps[u]).length
567
571
  };
568
- s.push(b);
569
- }), e === "next" && (s[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === s[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = s[this.stepCounter].step, this.activeSubStep = Object.keys(
570
- s[this.stepCounter].substeps
572
+ a.push(D);
573
+ }), e === "next" && (a[this.stepCounter].substepCount > 1 ? (this.substepCounter + 1 === a[this.stepCounter].substepCount ? (this.stepCounter++, this.activeStep = a[this.stepCounter].step, this.activeSubStep = Object.keys(
574
+ a[this.stepCounter].substeps
571
575
  )[0], this.substepCounter = 0) : (this.substepCounter++, this.activeSubStep = Object.keys(
572
- s[this.stepCounter].substeps
573
- )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != s.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
574
- s[this.stepCounter].substeps
575
- )[0], this.activeStep = s[this.stepCounter].step)), e === "prev" && (s[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
576
- s[this.stepCounter].substeps
577
- )[this.substepCounter]) : (this.stepCounter--, this.activeStep = s[this.stepCounter].step, this.substepCounter = Object.keys(s[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
578
- s[this.stepCounter].substeps
579
- )[this.substepCounter]) : (this.substepCounter = Object.keys(s[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
580
- s[this.stepCounter].substeps
581
- )[this.substepCounter], this.activeStep = s[this.stepCounter].step)), e === "publish") {
582
- let c = "auth/createDataset";
583
- K(
576
+ a[this.stepCounter].substeps
577
+ )[this.substepCounter]), this.handleDistributionsValidation(this.activeSubStep), this.activeStep === "ReviewAndPublish" && (this.formValues.ReviewAndPublish.reviewAndPublishPage = [{ isValid: !0 }])) : this.stepCounter != a.length - 1 && (this.stepCounter++, this.activeSubStep = Object.keys(
578
+ a[this.stepCounter].substeps
579
+ )[0], this.activeStep = a[this.stepCounter].step)), e === "prev" && (a[this.stepCounter].substepCount > 1 ? this.substepCounter > 0 ? (this.substepCounter--, this.activeSubStep = Object.keys(
580
+ a[this.stepCounter].substeps
581
+ )[this.substepCounter]) : (this.stepCounter--, this.activeStep = a[this.stepCounter].step, this.substepCounter = Object.keys(a[this.stepCounter].substeps).length - 1, this.activeSubStep = Object.keys(
582
+ a[this.stepCounter].substeps
583
+ )[this.substepCounter]) : (this.substepCounter = Object.keys(a[this.stepCounter - 1].substeps).length - 1, this.stepCounter--, this.activeSubStep = Object.keys(
584
+ a[this.stepCounter].substeps
585
+ )[this.substepCounter], this.activeStep = a[this.stepCounter].step)), e === "publish") {
586
+ let p = "auth/createDataset";
587
+ re(
584
588
  this.formValues,
585
589
  this.dpiContext,
586
590
  this.getUserData,
@@ -588,7 +592,7 @@ const $e = Q({
588
592
  ).then((u) => {
589
593
  this.dispatchDataToDPI(
590
594
  u.body,
591
- c,
595
+ p,
592
596
  u.actionParams,
593
597
  "publish"
594
598
  );
@@ -601,8 +605,8 @@ const $e = Q({
601
605
  }, 1e3);
602
606
  }
603
607
  if (e === "draft") {
604
- let c = "auth/createUserDraft";
605
- K(
608
+ let p = "auth/createUserDraft";
609
+ re(
606
610
  this.formValues,
607
611
  this.dpiContext,
608
612
  this.getUserData,
@@ -610,7 +614,7 @@ const $e = Q({
610
614
  ).then((u) => {
611
615
  this.dispatchDataToDPI(
612
616
  u.body,
613
- c,
617
+ p,
614
618
  u.actionParams,
615
619
  "draft"
616
620
  );
@@ -622,24 +626,15 @@ const $e = Q({
622
626
  }).href;
623
627
  }, 1e3);
624
628
  }
625
- } catch (s) {
626
- console.log(s);
627
- }
628
- },
629
- async dispatchDataToDPI(e, t, s, c) {
630
- var u, b;
631
- console.log("body:", e, t, "params:", s, c);
632
- try {
633
- c === "publish" && (s.token = this.getUserData.rtpToken, console.log(s.token), s.url = `${this.$env.api.hubUrl}catalogues/${s.catalog}/datasets/origin?originalId=${s.id}`, await this.$store.dispatch(t, s)), c === "draft" && await this.$store.dispatch(t, s), (u = this.$Progress) == null || u.finish(), this.clearAll();
634
- } catch (y) {
635
- console.error(y), (b = this.$Progress) == null || b.fail();
629
+ } catch (a) {
630
+ console.log(a);
636
631
  }
637
632
  },
638
633
  dropdownCLick() {
639
634
  const e = document.querySelectorAll(".formkitProperty h4");
640
- this.expandall && e.forEach((t, s) => {
635
+ this.expandall && e.forEach((t, a) => {
641
636
  t.classList.add("dpiChevUp"), t.nextElementSibling.classList.remove("d-none");
642
- }), this.expandall || e.forEach((t, s) => {
637
+ }), this.expandall || e.forEach((t, a) => {
643
638
  t.classList.remove("dpiChevUp"), t.nextElementSibling.classList.add("d-none");
644
639
  });
645
640
  },
@@ -652,19 +647,19 @@ const $e = Q({
652
647
  initInputPage() {
653
648
  this.activeSubStep = this.activeSubStep || "Landing";
654
649
  const e = this.getSchema(this.property).value, t = Object.keys(e).find(
655
- (s) => e[s].map((c) => c.name).includes("dct:issued") || e[s].map((c) => c.name).includes("dct:modified")
650
+ (a) => e[a].map((p) => p.name).includes("dct:issued") || e[a].map((p) => p.name).includes("dct:modified")
656
651
  );
657
- this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((s) => {
658
- (s.identifier === "issued" || s.identifier === "modified") && (s.children[1].props.else.validation = "", s.children[1].props.else["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "", s.children[1].props.then.validation = "", s.children[1].props.then["validation-visibility"] = "");
652
+ this.$formkit.setLocale("de"), localStorage.getItem("dpi_editmode") === "true" && t != null && e[t].forEach((a) => {
653
+ (a.identifier === "issued" || a.identifier === "modified") && (a.children[1].props.else.validation = "", a.children[1].props.else["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "", a.children[1].props.then.validation = "", a.children[1].props.then["validation-visibility"] = "");
659
654
  }), localStorage.getItem("dpi_editmode") === "false" && (this.setIsDraft(!1), this.setIsEditMode(!1)), this.$nextTick(() => {
660
- J('[data-bs-toggle="tooltip"]').tooltip({
655
+ fe('[data-bs-toggle="tooltip"]').tooltip({
661
656
  container: "body"
662
657
  }), setTimeout(() => {
663
- document.querySelectorAll(".formkitProperty h4").forEach((c, u) => {
664
- c.parentElement.parentElement.classList.contains(
658
+ document.querySelectorAll(".formkitProperty h4").forEach((p, u) => {
659
+ p.parentElement.parentElement.classList.contains(
665
660
  "formkitWrapRepeatable"
666
- ) || (u != 0 && u != 1 && u != 2 && u != 3 && c.nextElementSibling.classList.toggle("d-none"), c.addEventListener("click", () => {
667
- c.classList.toggle("dpiChevUp"), c.nextElementSibling.classList.toggle("d-none");
661
+ ) || (u != 0 && u != 1 && u != 2 && u != 3 && p.nextElementSibling.classList.toggle("d-none"), p.addEventListener("click", () => {
662
+ p.classList.toggle("dpiChevUp"), p.nextElementSibling.classList.toggle("d-none");
668
663
  }));
669
664
  }), document.querySelectorAll(".formkitProperty");
670
665
  });
@@ -672,7 +667,7 @@ const $e = Q({
672
667
  },
673
668
  createDatasetID() {
674
669
  const e = this.formValues[this.getTitleStep];
675
- !L(e, "datasetID") || O(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
670
+ !$(e, "datasetID") || x(e.datasetID) ? this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle : (this.createIDFromTitle.startsWith(e.datasetID) || e.datasetID.startsWith(this.createIDFromTitle)) && (this.formValues[this.getTitleStep].datasetID = this.createIDFromTitle);
676
671
  },
677
672
  generateandTranslateSchema(e) {
678
673
  for (let t = 0; t < this.getNavSteps(this.$env.content.dataProviderInterface.specification)[e].length; t++)
@@ -714,111 +709,141 @@ const $e = Q({
714
709
  }
715
710
  }
716
711
  },
717
- beforeRouteEnter(e, t, s) {
718
- s((c) => {
719
- t.name && !t.name.startsWith("DataProviderInterface") && c.clearAll();
712
+ beforeRouteEnter(e, t, a) {
713
+ a((p) => {
714
+ t.name && !t.name.startsWith("DataProviderInterface") && p.clearAll();
720
715
  });
721
716
  },
722
717
  setup() {
723
- const e = Le(), { isEditMode: t } = we(), {
724
- steps: s,
725
- activeStep: c,
726
- subSteps: u,
727
- visitedSteps: b,
728
- previousStep: y,
729
- nextStep: g,
730
- stepPlugin: D,
731
- goToNextStep: w,
732
- goToPreviousStep: I
733
- } = re(), { formValues: A } = oe(), { t: $, te: T } = ie(), R = H(!1), { translateSchema: E, createSchema: B, getSchema: U } = Ae({
734
- t: $,
735
- te: T
736
- }), r = () => {
737
- let { x: m, y: P } = N({ behavior: "smooth" });
738
- P.value = 0;
739
- }, p = (m) => (s[m].errorCount > 0 || s[m].blockingCount > 0) && b.value.includes(m), d = ee({ OverviewPage: Ie }), v = H("");
740
- return t.value && (c.value = "ReviewAndPublish", v.value = "reviewAndPublishPage"), {
741
- steps: s,
742
- visitedSteps: b,
743
- activeStep: c,
744
- activeSubStep: v,
745
- subSteps: u,
746
- previousStep: y,
747
- nextStep: g,
748
- stepPlugin: D,
749
- checkStepValidity: p,
750
- goToNextStep: w,
751
- goToPreviousStep: I,
752
- scrollToTop: r,
753
- library: d,
718
+ var j, H, W, q;
719
+ const e = Qe(), { isEditMode: t } = xe(), a = _e(), {
720
+ steps: p,
721
+ activeStep: u,
722
+ subSteps: D,
723
+ visitedSteps: I,
724
+ previousStep: m,
725
+ nextStep: T,
726
+ stepPlugin: R,
727
+ goToNextStep: P,
728
+ goToPreviousStep: E
729
+ } = Pe(), { formValues: L } = Te(), { t: w, te: U } = Ve(), B = se(!1), { translateSchema: F, createSchema: O, getSchema: r } = et({
730
+ t: w,
731
+ te: U
732
+ }), c = () => {
733
+ let { x: S, y: z } = ve({ behavior: "smooth" });
734
+ z.value = 0;
735
+ }, d = (S) => (p[S].errorCount > 0 || p[S].blockingCount > 0) && I.value.includes(S), v = ye({ OverviewPage: Ne }), f = se("");
736
+ t.value && (u.value = "ReviewAndPublish", f.value = "reviewAndPublishPage");
737
+ const { organization: A, catalogDataset: C, startFetchPermissions: le, authToken: de } = Le({
738
+ keycloak: ((H = (j = a.authentication) == null ? void 0 : j.keycloak) == null ? void 0 : H.url) || "https://keycloak.twin.bydata.de",
739
+ realm: ((q = (W = a.authentication) == null ? void 0 : W.keycloak) == null ? void 0 : q.realm) || "piveau",
740
+ audience: "piveau-hub-repo"
741
+ });
742
+ le();
743
+ const ne = ke();
744
+ async function ce(S, z, M, K) {
745
+ var Z, G, X, N, Y, J;
746
+ console.log("body:", S, z, "params:", M, K);
747
+ try {
748
+ await ge({
749
+ baseUrl: a.api.hubUrl,
750
+ id: M.id,
751
+ catalogId: C.value || M.catalog || "",
752
+ data: S,
753
+ authToken: de.value,
754
+ publicationStatus: K === "publish" ? "published" : "draft",
755
+ visibility: ((N = (X = (G = (Z = L.value) == null ? void 0 : Z.Discoverability) == null ? void 0 : G.visibilityPage) == null ? void 0 : X[0]) == null ? void 0 : N.visibility) || ne.query.visibility || "public",
756
+ type: "dataset"
757
+ }), (Y = this.$Progress) == null || Y.finish(), this.clearAll();
758
+ } catch (Q) {
759
+ console.error(Q), (J = this.$Progress) == null || J.fail();
760
+ }
761
+ }
762
+ return {
763
+ steps: p,
764
+ visitedSteps: I,
765
+ activeStep: u,
766
+ activeSubStep: f,
767
+ subSteps: D,
768
+ previousStep: m,
769
+ nextStep: T,
770
+ stepPlugin: R,
771
+ checkStepValidity: d,
772
+ goToNextStep: P,
773
+ goToPreviousStep: E,
774
+ scrollToTop: c,
775
+ library: v,
754
776
  isEditMode: t,
755
- translateSchema: E,
756
- createSchema: B,
757
- getSchema: U,
777
+ translateSchema: F,
778
+ createSchema: O,
779
+ getSchema: r,
758
780
  dpiContext: e,
759
- formValues: A,
760
- activeSimpleModal: R
781
+ formValues: L,
782
+ activeSimpleModal: B,
783
+ organization: A,
784
+ catalogDataset: C,
785
+ dispatchDataToDPI: ce
761
786
  };
762
787
  }
763
- }), Re = { class: "form-container V3-typography" }, Ee = {
788
+ }), it = { class: "form-container V3-typography" }, st = {
764
789
  key: 0,
765
790
  ref: "fkInputContainer",
766
791
  class: "inputContainer"
767
- }, Be = { class: "formContainer formkit" }, Ue = { key: 0 }, Fe = { class: "dpiV3_stepper draftStepper" }, Oe = {
792
+ }, at = { class: "formContainer formkit" }, ot = { key: 0 }, rt = { class: "dpiV3_stepper draftStepper" }, lt = {
768
793
  key: 0,
769
794
  class: "draftCTA"
770
- }, Me = {
795
+ }, dt = {
771
796
  key: 1,
772
797
  class: "draftCTA"
773
- }, ze = { key: 1 }, je = {
798
+ }, nt = { key: 1 }, ct = {
774
799
  key: 0,
775
800
  class: "dpiV3_stepper"
776
- }, He = { class: "dpiV3_steps" }, We = ["data-step-active", "data-step-valid"], qe = { class: "dpiV3_stepBubbleWrap" }, Ke = ["src"], Ze = ["src"], Ge = ["textContent"], Xe = { style: { "vertical-align": "middle" } }, Ye = { class: "dpiV3_subStepWrapper" }, Ne = {
801
+ }, pt = { class: "dpiV3_steps" }, ut = ["data-step-active", "data-step-valid"], ht = { class: "dpiV3_stepBubbleWrap" }, mt = ["src"], gt = ["src"], vt = ["textContent"], ft = { style: { "vertical-align": "middle" } }, bt = { class: "dpiV3_subStepWrapper" }, St = {
777
802
  key: 0,
778
803
  class: "dpiV3_seperatorHorizontalStepper"
779
- }, Je = {
804
+ }, yt = {
780
805
  key: 1,
781
806
  class: "dpiV3_seperatorHorizontalStepperFat"
782
- }, Qe = {
807
+ }, Ct = {
783
808
  key: 2,
784
809
  class: "dpiV3_subStep"
785
- }, xe = { class: "dpiV3_subStepInner" }, et = { class: "dpiV3_subStepCircleWrap" }, tt = ["src"], it = { style: { height: "20px", display: "flex", "align-items": "center" } }, st = {
810
+ }, Vt = { class: "dpiV3_subStepInner" }, kt = { class: "dpiV3_subStepCircleWrap" }, _t = ["src"], Dt = { style: { height: "20px", display: "flex", "align-items": "center" } }, It = {
786
811
  key: 0,
787
812
  class: "dpiV3_step dpiV3_inactiveStep"
788
- }, at = {
813
+ }, Tt = {
789
814
  key: 1,
790
815
  class: "dpiV3_stepperLanding"
791
- }, ot = { class: "dpiV3_bydata_logo_wordmark" }, rt = { class: "dpiV3_Illustration-Start" }, lt = {
816
+ }, Pt = { class: "dpiV3_bydata_logo_wordmark" }, Lt = { class: "dpiV3_Illustration-Start" }, wt = {
792
817
  key: 2,
793
818
  class: "steps"
794
- }, dt = ["data-step-active", "data-step-valid", "onClick"], nt = { class: "stepBubbleWrap" }, ct = { class: "circle stepCircle" }, pt = ["textContent"], ut = {
819
+ }, At = ["data-step-active", "data-step-valid", "onClick"], $t = { class: "stepBubbleWrap" }, Rt = { class: "circle stepCircle" }, Et = ["textContent"], Ut = {
795
820
  key: 0,
796
821
  class: "seperatorHorizontalStepper"
797
- }, ht = {
822
+ }, Bt = {
798
823
  key: 0,
799
824
  class: "step inactiveStep"
800
- }, mt = { style: { width: "100%" } }, gt = {
825
+ }, Ft = { style: { width: "100%" } }, Ot = {
801
826
  key: 0,
802
827
  class: "dpiV3_CTALanding"
803
- }, vt = {
828
+ }, zt = {
804
829
  key: 1,
805
830
  class: "dpiV3_CTA_RaP"
806
- }, ft = { class: "dpiV3_CTANav" }, bt = { class: "dpiV3_CTANav" }, St = {
831
+ }, Mt = { class: "dpiV3_CTANav" }, jt = { class: "dpiV3_CTANav" }, Ht = {
807
832
  key: 3,
808
833
  class: "dpiV3_Content_InputPage"
809
- }, yt = { class: "dpiV3_Card_Tips" }, Ct = { class: "dpiV3_Icon_Title" }, Vt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, _t = { class: "dpiV3_CT-Content" }, kt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Dt = { class: "dpiV3_hvd_frame3846" }, It = { class: "dpiV3_copy_large_semi_bold" }, Tt = { class: "dpiV3_copy_large_regular" }, Pt = { class: "dpiV3_hvd_frame3846" }, Lt = { class: "dpiV3_copy_large_semi_bold" }, wt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, At = { class: "dpiV3_hvd_frame3846" }, $t = { class: "dpiV3_copy_large_semi_bold" }, Rt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, Et = { class: "dpiV3_hvd_frame3846" }, Bt = { class: "dpiV3_copy_large_semi_bold" }, Ut = { class: "dpiV3_copy_large_regular" }, Ft = {
834
+ }, Wt = { class: "dpiV3_Card_Tips" }, qt = { class: "dpiV3_Icon_Title" }, Kt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, Zt = { class: "dpiV3_CT-Content" }, Gt = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, Xt = { class: "dpiV3_hvd_frame3846" }, Nt = { class: "dpiV3_copy_large_semi_bold" }, Yt = { class: "dpiV3_copy_large_regular" }, Jt = { class: "dpiV3_hvd_frame3846" }, Qt = { class: "dpiV3_copy_large_semi_bold" }, xt = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, ei = { class: "dpiV3_hvd_frame3846" }, ti = { class: "dpiV3_copy_large_semi_bold" }, ii = { class: "dpiV3_copy_large_regular compact_margin_bottom" }, si = { class: "dpiV3_hvd_frame3846" }, ai = { class: "dpiV3_copy_large_semi_bold" }, oi = { class: "dpiV3_copy_large_regular" }, ri = {
810
835
  key: 4,
811
836
  class: "dpiV3_Content_InputPage"
812
- }, Ot = { class: "dpiV3_Card_Tips" }, Mt = { class: "dpiV3_Icon_Title" }, zt = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, jt = { class: "dpiV3_CT-Content" }, Ht = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, Wt = { class: "dpiV3_Info-Text" }, qt = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, Kt = { class: "dpiV3_Info-Text" }, Zt = {
837
+ }, li = { class: "dpiV3_Card_Tips" }, di = { class: "dpiV3_Icon_Title" }, ni = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ci = { class: "dpiV3_CT-Content" }, pi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, ui = { class: "dpiV3_Info-Text" }, hi = { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, mi = { class: "dpiV3_Info-Text" }, gi = {
813
838
  key: 6,
814
839
  class: "p-1"
815
840
  };
816
- function Gt(e, t, s, c, u, b) {
817
- const y = f("TextButtonSmall"), g = f("ButtonV3"), D = f("LogoV3"), w = f("PhNumberCircleFive"), I = f("PhCheckCircle"), A = f("Illustration"), $ = f("FormKitSchema"), T = f("PhLightbulb"), R = f("DistributionInputPage"), E = f("InputPageStep"), B = f("FormKit"), U = f("ModalSimpleV3");
818
- return a(), o("div", Re, [
819
- e.isInput ? (a(), o("div", Ee, [
820
- i("div", Be, [
821
- h(B, {
841
+ function vi(e, t, a, p, u, D) {
842
+ const I = g("TextButtonSmall"), m = g("ButtonV3"), T = g("LogoV3"), R = g("PhNumberCircleFive"), P = g("PhCheckCircle"), E = g("Illustration"), L = g("FormKitSchema"), w = g("PhLightbulb"), U = g("DistributionInputPage"), B = g("InputPageStep"), F = g("FormKit"), O = g("ModalSimpleV3");
843
+ return s(), o("div", it, [
844
+ e.isInput ? (s(), o("div", st, [
845
+ i("div", at, [
846
+ h(F, {
822
847
  id: "dpiForm",
823
848
  modelValue: e.formValues,
824
849
  "onUpdate:modelValue": t[8] || (t[8] = (r) => e.formValues = r),
@@ -826,34 +851,34 @@ function Gt(e, t, s, c, u, b) {
826
851
  actions: !1,
827
852
  plugins: [e.stepPlugin],
828
853
  class: "d-flex",
829
- onSubmit: t[9] || (t[9] = x(() => {
854
+ onSubmit: t[9] || (t[9] = Se(() => {
830
855
  }, ["prevent"]))
831
856
  }, {
832
- default: M(() => [
833
- e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (a(), o("div", Ue, [
834
- i("div", Fe, [
835
- h(y, {
857
+ default: ee(() => [
858
+ e.dpiContext.edit.fromDraft || e.dpiContext.edit.enabled ? (s(), o("div", ot, [
859
+ i("div", rt, [
860
+ h(I, {
836
861
  "button-text": "Übersicht",
837
862
  "icon-start": "CaretLeft",
838
863
  "icon-name": "caretLeft",
839
864
  onClick: e.gotToHome
840
865
  }, null, 8, ["onClick"]),
841
866
  i("div", null, [
842
- e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (a(), o("div", Oe, [
843
- h(g, {
867
+ e.dpiContext.edit.enabled && !e.dpiContext.edit.fromDraft ? (s(), o("div", lt, [
868
+ h(m, {
844
869
  "button-text": "Veröffentlichung aufheben",
845
870
  size: "large",
846
871
  onClick: e.todoHandler
847
872
  }, null, 8, ["onClick"]),
848
- h(g, {
873
+ h(m, {
849
874
  "button-text": "Veröffentlicht ansehen",
850
875
  variant: "secondary",
851
876
  size: "large",
852
877
  "icon-end": "Out",
853
878
  onClick: e.todoHandler
854
879
  }, null, 8, ["onClick"])
855
- ])) : (a(), o("div", Me, [
856
- h(g, {
880
+ ])) : (s(), o("div", dt, [
881
+ h(m, {
857
882
  "button-text": "Veröffentlichen",
858
883
  size: "large",
859
884
  onClick: t[0] || (t[0] = (r) => e.navTrigger("publish"))
@@ -861,88 +886,88 @@ function Gt(e, t, s, c, u, b) {
861
886
  ]))
862
887
  ])
863
888
  ])
864
- ])) : (a(), o("div", ze, [
865
- e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (a(), o("div", je, [
866
- h(D),
867
- i("ul", He, [
868
- (a(!0), o(V, null, _(e.steps, (r, p, d) => z((a(), o("li", {
889
+ ])) : (s(), o("div", nt, [
890
+ e.$env.content.dataProviderInterface.specification === "dcatapdeHappyFlow" && e.activeStep !== "Landing" ? (s(), o("div", ct, [
891
+ h(T),
892
+ i("ul", pt, [
893
+ (s(!0), o(V, null, k(e.steps, (r, c, d) => te((s(), o("li", {
869
894
  key: r,
870
- class: C(["dpiV3_step", {
871
- dpiV3_activeItem: e.activeStep === p,
872
- inactiveStep: p != e.activeStep,
873
- "has-errors": e.checkStepValidity(p)
895
+ class: y(["dpiV3_step", {
896
+ dpiV3_activeItem: e.activeStep === c,
897
+ inactiveStep: c != e.activeStep,
898
+ "has-errors": e.checkStepValidity(c)
874
899
  }]),
875
- "data-step-active": e.activeStep === p,
900
+ "data-step-active": e.activeStep === c,
876
901
  "data-step-valid": r.valid && r.errorCount === 0
877
902
  }, [
878
- i("div", qe, [
903
+ i("div", ht, [
879
904
  i("div", {
880
- class: C(["firstRowWrapper", {
881
- dpiV3_activeStepName: p === e.activeStep,
905
+ class: y(["firstRowWrapper", {
906
+ dpiV3_activeStepName: c === e.activeStep,
882
907
  formerlyVisitedStep: e.stepCounter > d,
883
908
  "copy-small-regular": e.stepCounter > d
884
909
  }])
885
910
  }, [
886
- e.activeStep === p && d < 5 ? (a(), o("img", {
911
+ e.activeStep === c && d < 5 ? (s(), o("img", {
887
912
  key: 0,
888
913
  class: "dpiV3_circle dpiV3_stepCircle",
889
914
  src: e.selectedImages[d - 1],
890
915
  alt: "Selected Icon"
891
- }, null, 8, Ke)) : n("", !0),
892
- e.activeStep === p && d === 5 ? (a(), S(w, {
916
+ }, null, 8, mt)) : n("", !0),
917
+ e.activeStep === c && d === 5 ? (s(), b(R, {
893
918
  key: 1,
894
919
  size: 28,
895
920
  color: "#009FE3",
896
921
  weight: "fill"
897
922
  })) : n("", !0),
898
- d < e.stepCounter ? (a(), S(I, {
923
+ d < e.stepCounter ? (s(), b(P, {
899
924
  key: 2,
900
925
  size: 28,
901
926
  color: "#70CC44",
902
927
  weight: "fill"
903
928
  })) : n("", !0),
904
- d > e.stepCounter ? (a(), o("img", {
929
+ d > e.stepCounter ? (s(), o("img", {
905
930
  key: 3,
906
931
  class: "dpiV3_circle dpiV3_stepCircle",
907
932
  src: e.images[d - 1],
908
933
  alt: "Selected Icon"
909
- }, null, 8, Ze)) : n("", !0),
910
- e.checkStepValidity(p) ? (a(), o("span", {
934
+ }, null, 8, gt)) : n("", !0),
935
+ e.checkStepValidity(c) ? (s(), o("span", {
911
936
  key: 4,
912
937
  class: "dpiV3_step--errors",
913
938
  textContent: l(r.errorCount + r.blockingCount)
914
- }, null, 8, Ge)) : n("", !0),
915
- i("span", Xe, l(e.$t(`message.dataupload.steps.${p}Step`)), 1)
939
+ }, null, 8, vt)) : n("", !0),
940
+ i("span", ft, l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
916
941
  ], 2),
917
- i("div", Ye, [
918
- d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (a(), o("div", Ne)) : n("", !0),
919
- d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (a(), o("div", Je)) : n("", !0),
920
- e.activeStep === p ? (a(), o("div", Qe, [
921
- e.stepCounter < 5 ? (a(!0), o(V, { key: 0 }, _(Object.keys(
942
+ i("div", bt, [
943
+ d + 1 != Object.keys(e.steps).length - 1 && d >= e.stepCounter ? (s(), o("div", St)) : n("", !0),
944
+ d + 1 != Object.keys(e.steps).length - 1 && d < e.stepCounter ? (s(), o("div", yt)) : n("", !0),
945
+ e.activeStep === c ? (s(), o("div", Ct, [
946
+ e.stepCounter < 5 ? (s(!0), o(V, { key: 0 }, k(Object.keys(
922
947
  e.subSteps[d]
923
- ), (v, m) => (a(), o("div", xe, [
924
- i("div", et, [
925
- e.substepCounter > m ? (a(), S(I, {
948
+ ), (v, f) => (s(), o("div", Vt, [
949
+ i("div", kt, [
950
+ e.substepCounter > f ? (s(), b(P, {
926
951
  key: 0,
927
952
  size: 20,
928
953
  color: "#009FE3"
929
- })) : (a(), o("img", {
954
+ })) : (s(), o("img", {
930
955
  key: 1,
931
- src: e.getCircles(m),
956
+ src: e.getCircles(f),
932
957
  alt: "circle"
933
- }, null, 8, tt)),
934
- m != Object.keys(e.subSteps[d]).length - 1 ? (a(), o("div", {
958
+ }, null, 8, _t)),
959
+ f != Object.keys(e.subSteps[d]).length - 1 ? (s(), o("div", {
935
960
  key: 2,
936
- class: C(["dpiV3_seperatorHorizontalStepperInner", {
937
- dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > m
961
+ class: y(["dpiV3_seperatorHorizontalStepperInner", {
962
+ dpiV3_seperatorHorizontalStepperInnerVisited: e.substepCounter > f
938
963
  }])
939
964
  }, null, 2)) : n("", !0)
940
965
  ]),
941
- i("div", it, [
966
+ i("div", Dt, [
942
967
  i("span", {
943
- class: C(["large-regular dpiV3_substepText", {
968
+ class: y(["large-regular dpiV3_substepText", {
944
969
  dpiV3_activeStepDesc: v === e.activeSubStep,
945
- formerlyVisitedStep: e.substepCounter > m
970
+ formerlyVisitedStep: e.substepCounter > f
946
971
  }])
947
972
  }, l(e.$t(
948
973
  `message.dataupload.steps.${v.replace(/_\d+$/, "")}`
@@ -952,62 +977,62 @@ function Gt(e, t, s, c, u, b) {
952
977
  ])) : n("", !0)
953
978
  ])
954
979
  ])
955
- ], 10, We)), [
956
- [j, p !== "Landing" && p !== "Additionals"]
980
+ ], 10, ut)), [
981
+ [ie, c !== "Landing" && c !== "Additionals"]
957
982
  ])), 128)),
958
- e.activeStep === "Overview" ? (a(), o("li", st, t[12] || (t[12] = [
983
+ e.activeStep === "Overview" ? (s(), o("li", It, t[12] || (t[12] = [
959
984
  i("div", { class: "dpiV3_circle dpiV3_stepCircle" }, null, -1)
960
985
  ]))) : n("", !0)
961
986
  ])
962
- ])) : (a(), o("div", at, [
963
- i("div", ot, [
964
- h(D)
987
+ ])) : (s(), o("div", Tt, [
988
+ i("div", Pt, [
989
+ h(T)
965
990
  ]),
966
- i("div", rt, [
967
- h(A, { "illustration-name": "start" })
991
+ i("div", Lt, [
992
+ h(E, { "illustration-name": "start" })
968
993
  ])
969
994
  ]))
970
995
  ])),
971
- e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (a(), o("ul", lt, [
972
- (a(!0), o(V, null, _(e.steps, (r, p, d) => (a(), o("li", {
996
+ e.$env.content.dataProviderInterface.specification != "dcatapdeHappyFlow" ? (s(), o("ul", wt, [
997
+ (s(!0), o(V, null, k(e.steps, (r, c, d) => (s(), o("li", {
973
998
  key: r,
974
- class: C(["step", {
975
- activeItem: e.activeStep === p,
976
- inactiveStep: p != e.activeStep,
977
- "has-errors": e.checkStepValidity(p)
999
+ class: y(["step", {
1000
+ activeItem: e.activeStep === c,
1001
+ inactiveStep: c != e.activeStep,
1002
+ "has-errors": e.checkStepValidity(c)
978
1003
  }]),
979
- "data-step-active": e.activeStep === p,
1004
+ "data-step-active": e.activeStep === c,
980
1005
  "data-step-valid": r.valid && r.errorCount === 0,
981
1006
  onClick: (v) => {
982
- e.activeStep = p, e.update(), e.scrollToTop();
1007
+ e.activeStep = c, e.update(), e.scrollToTop();
983
1008
  }
984
1009
  }, [
985
- i("div", nt, [
986
- i("div", ct, l(d + 1), 1),
987
- e.checkStepValidity(p) ? (a(), o("span", {
1010
+ i("div", $t, [
1011
+ i("div", Rt, l(d + 1), 1),
1012
+ e.checkStepValidity(c) ? (s(), o("span", {
988
1013
  key: 0,
989
1014
  class: "step--errors",
990
1015
  textContent: l(r.errorCount + r.blockingCount)
991
- }, null, 8, pt)) : n("", !0),
992
- k(l(e.$t(`message.dataupload.steps.${p}Step`)), 1)
1016
+ }, null, 8, Et)) : n("", !0),
1017
+ _(l(e.$t(`message.dataupload.steps.${c}Step`)), 1)
993
1018
  ]),
994
- d != Object.keys(e.steps).length ? (a(), o("div", ut)) : n("", !0)
995
- ], 10, dt))), 128)),
996
- e.activeStep === "Overview" ? (a(), o("li", ht, t[13] || (t[13] = [
1019
+ d != Object.keys(e.steps).length ? (s(), o("div", Ut)) : n("", !0)
1020
+ ], 10, At))), 128)),
1021
+ e.activeStep === "Overview" ? (s(), o("li", Bt, t[13] || (t[13] = [
997
1022
  i("div", { class: "circle stepCircle" }, null, -1)
998
1023
  ]))) : n("", !0)
999
1024
  ])) : n("", !0),
1000
- (a(!0), o(V, null, _(e.getNavSteps(
1025
+ (s(!0), o(V, null, k(e.getNavSteps(
1001
1026
  e.$env.content.dataProviderInterface.specification
1002
- )[e.property], (r, p) => (a(), S(E, {
1003
- key: p,
1027
+ )[e.property], (r, c) => (s(), b(B, {
1028
+ key: c,
1004
1029
  name: r
1005
1030
  }, {
1006
- default: M(() => [
1007
- (a(!0), o(V, null, _(Object.keys(
1031
+ default: ee(() => [
1032
+ (s(!0), o(V, null, k(Object.keys(
1008
1033
  e.getSchema(e.property).value[r]
1009
- ).length, (d, v) => z((a(), o("div", mt, [
1010
- r !== "Distributions" && r !== "Additionals" ? (a(), S($, {
1034
+ ).length, (d, v) => te((s(), o("div", Ft, [
1035
+ r !== "Distributions" && r !== "Additionals" ? (s(), b(L, {
1011
1036
  key: 0,
1012
1037
  schema: e.getSchema(e.property).value[r][v],
1013
1038
  library: e.library,
@@ -1017,14 +1042,14 @@ function Gt(e, t, s, c, u, b) {
1017
1042
  }, null, 8, ["schema", "library", "final-values"])) : n("", !0)
1018
1043
  ], 512)), [
1019
1044
  [
1020
- j,
1045
+ ie,
1021
1046
  Object.values(
1022
1047
  e.getSchema(e.property).value[r][v]
1023
1048
  )[0] === e.activeSubStep.replace(/_\d+$/, "") || r === "Landing"
1024
1049
  ]
1025
1050
  ])), 256)),
1026
- e.activeStep === "Landing" ? (a(), o("div", gt, [
1027
- h(g, {
1051
+ e.activeStep === "Landing" ? (s(), o("div", Ot, [
1052
+ h(m, {
1028
1053
  "button-text": "Abbrechen",
1029
1054
  size: "large",
1030
1055
  variant: "tertiary",
@@ -1032,41 +1057,41 @@ function Gt(e, t, s, c, u, b) {
1032
1057
  e.activeSimpleModal = !0, console.log(e.activeSimpleModal);
1033
1058
  })
1034
1059
  }),
1035
- h(g, {
1060
+ h(m, {
1036
1061
  "button-text": "Datenbereitstellung starten",
1037
1062
  size: "large",
1038
1063
  onClick: t[2] || (t[2] = (d) => e.navTrigger("next"))
1039
1064
  })
1040
1065
  ])) : n("", !0),
1041
- e.activeStep === "ReviewAndPublish" ? (a(), o("div", vt, [
1042
- i("div", ft, [
1043
- h(g, {
1066
+ e.activeStep === "ReviewAndPublish" ? (s(), o("div", zt, [
1067
+ i("div", Mt, [
1068
+ h(m, {
1044
1069
  "button-text": "Als Entwurf speichern",
1045
1070
  size: "large",
1046
1071
  variant: "secondary",
1047
1072
  onClick: t[3] || (t[3] = (d) => e.navTrigger("draft"))
1048
1073
  }),
1049
- h(g, {
1074
+ h(m, {
1050
1075
  "button-text": "Veröffentlichen",
1051
1076
  size: "large",
1052
1077
  onClick: t[4] || (t[4] = (d) => e.formValues[e.activeStep][e.activeSubStep][0].isValid === !0 ? e.navTrigger("publish") : e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1)
1053
1078
  })
1054
1079
  ])
1055
1080
  ])) : n("", !0),
1056
- e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (a(), o("div", {
1081
+ e.activeStep !== "Landing" && e.activeStep !== "ReviewAndPublish" ? (s(), o("div", {
1057
1082
  key: 2,
1058
- class: C(["dpiV3_CTA", {
1083
+ class: y(["dpiV3_CTA", {
1059
1084
  dpiV3_activeInfobox: ["hvdPage", "visibilityPage"].includes(e.activeSubStep)
1060
1085
  }])
1061
1086
  }, [
1062
- h(g, {
1087
+ h(m, {
1063
1088
  "button-text": "Abbrechen",
1064
1089
  size: "large",
1065
1090
  variant: "tertiary",
1066
1091
  onClick: t[5] || (t[5] = (d) => e.activeSimpleModal = !0)
1067
1092
  }),
1068
- i("div", bt, [
1069
- e.activeStep !== "Landing" ? (a(), S(g, {
1093
+ i("div", jt, [
1094
+ e.activeStep !== "Landing" ? (s(), b(m, {
1070
1095
  key: 0,
1071
1096
  "icon-start": "CaretLeft",
1072
1097
  "button-text": "Zurück",
@@ -1074,33 +1099,33 @@ function Gt(e, t, s, c, u, b) {
1074
1099
  variant: "secondary",
1075
1100
  onClick: t[6] || (t[6] = (d) => e.navTrigger("prev"))
1076
1101
  })) : n("", !0),
1077
- h(g, {
1102
+ h(m, {
1078
1103
  "icon-end": "CaretRight",
1079
1104
  "button-text": "Weiter",
1080
1105
  size: "large",
1081
1106
  onClick: t[7] || (t[7] = (d) => {
1082
- var v, m, P, F;
1083
- return ((P = (m = (v = e.formValues[e.activeStep]) == null ? void 0 : v[e.activeSubStep]) == null ? void 0 : m[0]) == null ? void 0 : P.isValid) === !0 || ((F = e.formValues[e.activeStep][e.activeSubStep]) == null ? void 0 : F.isValid) === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep));
1107
+ var v, f, A, C;
1108
+ return ((A = (f = (v = e.formValues[e.activeStep]) == null ? void 0 : v[e.activeSubStep]) == null ? void 0 : f[0]) == null ? void 0 : A.isValid) === !0 || ((C = e.formValues[e.activeStep][e.activeSubStep]) == null ? void 0 : C.isValid) === !0 ? e.navTrigger("next") : (e.formValues[e.activeStep][e.activeSubStep][0].isValid = !1, e.handleDistributionsValidation(e.activeSubStep));
1084
1109
  })
1085
1110
  })
1086
1111
  ])
1087
1112
  ], 2)) : n("", !0),
1088
- e.activeSubStep.includes("hvdPage") ? (a(), o("div", St, [
1089
- i("div", yt, [
1090
- i("div", Ct, [
1091
- h(T, {
1113
+ e.activeSubStep.includes("hvdPage") ? (s(), o("div", Ht, [
1114
+ i("div", Wt, [
1115
+ i("div", qt, [
1116
+ h(w, {
1092
1117
  size: 32,
1093
1118
  color: "#009fe3"
1094
1119
  }),
1095
- i("div", Vt, l(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1120
+ i("div", Kt, l(e.$t("message.dataupload.datasets.hvdPage.tips-hvd")), 1)
1096
1121
  ]),
1097
- i("div", _t, [
1098
- i("div", kt, l(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1099
- i("div", Dt, [
1100
- i("div", It, " 1. " + l(e.$t(
1122
+ i("div", Zt, [
1123
+ i("div", Gt, l(e.$t("message.dataupload.datasets.hvdPage.tips-text")), 1),
1124
+ i("div", Xt, [
1125
+ i("div", Nt, " 1. " + l(e.$t(
1101
1126
  "message.dataupload.datasets.hvdPage.tips-question-1"
1102
1127
  )), 1),
1103
- i("ul", Tt, [
1128
+ i("ul", Yt, [
1104
1129
  i("li", null, l(e.$t(
1105
1130
  "message.dataupload.datasets.hvdPage.hvd-category-1"
1106
1131
  )), 1),
@@ -1121,57 +1146,57 @@ function Gt(e, t, s, c, u, b) {
1121
1146
  )), 1)
1122
1147
  ])
1123
1148
  ]),
1124
- i("div", Pt, [
1125
- i("div", Lt, " 2. " + l(e.$t(
1149
+ i("div", Jt, [
1150
+ i("div", Qt, " 2. " + l(e.$t(
1126
1151
  "message.dataupload.datasets.hvdPage.tips-question-2"
1127
1152
  )), 1),
1128
- i("p", wt, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1153
+ i("p", xt, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-2")), 1)
1129
1154
  ]),
1130
- i("div", At, [
1131
- i("div", $t, " 3. " + l(e.$t(
1155
+ i("div", ei, [
1156
+ i("div", ti, " 3. " + l(e.$t(
1132
1157
  "message.dataupload.datasets.hvdPage.tips-question-3"
1133
1158
  )), 1),
1134
- i("p", Rt, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1159
+ i("p", ii, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-3")), 1)
1135
1160
  ]),
1136
- i("div", Et, [
1137
- i("div", Bt, " 4. " + l(e.$t(
1161
+ i("div", si, [
1162
+ i("div", ai, " 4. " + l(e.$t(
1138
1163
  "message.dataupload.datasets.hvdPage.tips-question-4"
1139
1164
  )), 1),
1140
- i("p", Ut, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1165
+ i("p", oi, l(e.$t("message.dataupload.datasets.hvdPage.tips-example-4")), 1)
1141
1166
  ])
1142
1167
  ])
1143
1168
  ])
1144
1169
  ])) : n("", !0),
1145
- e.activeSubStep.includes("visibilityPage") ? (a(), o("div", Ft, [
1146
- i("div", Ot, [
1147
- i("div", Mt, [
1148
- h(T, {
1170
+ e.activeSubStep.includes("visibilityPage") ? (s(), o("div", ri, [
1171
+ i("div", li, [
1172
+ i("div", di, [
1173
+ h(w, {
1149
1174
  size: 32,
1150
1175
  color: "#009fe3"
1151
1176
  }),
1152
- i("div", zt, l(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
1177
+ i("div", ni, l(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
1153
1178
  ]),
1154
- i("div", jt, [
1155
- i("p", Ht, [
1156
- i("span", Wt, l(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
1157
- k(" " + l(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
1179
+ i("div", ci, [
1180
+ i("p", pi, [
1181
+ i("span", ui, l(e.$t("message.dataupload.datasets.visibilityPage.metadata-label")), 1),
1182
+ _(" " + l(e.$t("message.dataupload.datasets.visibilityPage.metadata-explanation")), 1)
1158
1183
  ]),
1159
- i("p", qt, [
1160
- k(l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
1161
- i("span", Kt, l(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
1162
- k(" " + l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
1184
+ i("p", hi, [
1185
+ _(l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-prefix")) + " ", 1),
1186
+ i("span", mi, l(e.$t("message.dataupload.datasets.visibilityPage.distribution-label")), 1),
1187
+ _(" " + l(e.$t("message.dataupload.datasets.visibilityPage.distribution-explanation-suffix")), 1)
1163
1188
  ])
1164
1189
  ])
1165
1190
  ])
1166
1191
  ])) : n("", !0),
1167
- r === "Distributions" ? (a(), S(R, {
1192
+ r === "Distributions" ? (s(), b(U, {
1168
1193
  key: 5,
1169
1194
  schema: e.getSchema("distributions"),
1170
1195
  values: e.formValues
1171
1196
  }, null, 8, ["schema", "values"])) : n("", !0),
1172
- r === "Mandatory" ? (a(), o("p", Zt, [
1197
+ r === "Mandatory" ? (s(), o("p", gi, [
1173
1198
  t[14] || (t[14] = i("b", null, "*", -1)),
1174
- k(" " + l(e.$t("message.dataupload.info.mandatory")), 1)
1199
+ _(" " + l(e.$t("message.dataupload.info.mandatory")), 1)
1175
1200
  ])) : n("", !0)
1176
1201
  ]),
1177
1202
  _: 2
@@ -1179,7 +1204,7 @@ function Gt(e, t, s, c, u, b) {
1179
1204
  ]),
1180
1205
  _: 1
1181
1206
  }, 8, ["modelValue", "plugins"]),
1182
- e.activeSimpleModal ? (a(), S(U, {
1207
+ e.activeSimpleModal ? (s(), b(O, {
1183
1208
  key: 0,
1184
1209
  buttons: e.modalSimpleConf.button,
1185
1210
  "header-text": e.modalSimpleConf.header,
@@ -1192,7 +1217,7 @@ function Gt(e, t, s, c, u, b) {
1192
1217
  ], 512)) : n("", !0)
1193
1218
  ]);
1194
1219
  }
1195
- const Ui = /* @__PURE__ */ Pe($e, [["render", Gt]]);
1220
+ const ns = /* @__PURE__ */ Je(tt, [["render", vi]]);
1196
1221
  export {
1197
- Ui as default
1222
+ ns as default
1198
1223
  };