@piveau/dpi 0.2.0-alpha.63 → 0.2.0-alpha.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +1,71 @@
1
- import { reactive as c, createElementBlock as u, openBlock as i, createElementVNode as s, createVNode as m, Fragment as g, renderList as p, unref as o, createBlock as f } from "vue";
2
- import { FormKit as b } from "@formkit/vue";
3
- import w from "../../../components/StepActionsSection.vue.js";
4
- import k from "../TextArea/TextAreaDefinition.js";
1
+ import { reactive as h, createElementBlock as u, openBlock as o, createElementVNode as s, createVNode as p, Fragment as g, renderList as f, unref as d, createBlock as b } from "vue";
2
+ import { FormKit as w } from "@formkit/vue";
3
+ import { umsetzenQuestions as a } from "../../../composables/project-transformer/questions.js";
4
+ import k from "../../../components/StepActionsSection.vue.js";
5
+ import z from "../TextArea/TextAreaDefinition.js";
5
6
  /* empty css */
6
- import z from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const S = { class: "project-phasen-umstezen" }, v = { class: "project-phasen-umstezen-content" }, d = 1e3, V = {
7
+ import v from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const S = { class: "project-phasen-umstezen" }, V = { class: "project-phasen-umstezen-content" }, l = 1e3, _ = {
8
9
  __name: "UmstezenStep",
9
- setup(_) {
10
- const n = c({
10
+ setup(j) {
11
+ const n = h({
11
12
  questions: {
12
13
  projectTriggers: {
13
- question: "Wie haben Sie die Zusammenarbeit mit den Dienstleistern organisiert und wie wurden relevante Stakeholder in Entscheidungsprozesse eingebunden (z.B. Meetingstruktur oder Frameworks)?",
14
+ question: a.projectTriggers,
14
15
  placeholder: "Wir haben einen Projektplan erstellt, der u.a. eine Roadmap und die Projektstruktur mit klaren Verantwortlichkeiten und Ansprechpartnern auf beiden Seiten enthielt. Es gab regelmäßige Jour-Fixe-Termine, in denen wir den Projektfortschritt gemeinsam mit dem Dienstleister besprochen und offene Punkte adressiert haben. Meilensteine und wichtige Entscheidungen wurden mit den Stakeholdern abgestimmt und protokolliert.",
15
16
  answer: ""
16
17
  },
17
18
  involvedStakeholders: {
18
- question: "Gab es Verzögerungen und wenn ja, was waren die Gründe?",
19
+ question: a.involvedStakeholders,
19
20
  placeholder: "Ja, im Projektverlauf kam es zu einigen Verzögerungen. Hauptursache war die zeitaufwändige Klärung von offenen technischen Fragen, insbesondere bei der Anbindung bestehender Fachsysteme und Datenquellen. Teilweise lagen Datenformate nicht wie erwartet vor oder es bestanden Datenschutzbedenken, die zunächst gelöst werden mussten. Dazu kamen z.B. europaweite Lieferengpässe bei den Sensoren, die wir verbaut haben.",
20
21
  answer: ""
21
22
  },
22
23
  dataCollectionMethod: {
23
- question: "Welche Schnittstellen wurden genutzt und traten technische Herausforderungen auf?",
24
+ question: a.dataCollectionMethod,
24
25
  placeholder: "Wir haben verschiedene Schnittstellen zu bestehenden Geoinformationssystemen (GIS), Wetterdaten- und Pegelstanddiensten sowie internen Verwaltungsdaten genutzt. Bei der Integration gab es Herausforderungen etwa durch unterschiedliche Datenformate, unklare Zugriffsbeschränkungen oder fehlende API-Standards.",
25
26
  answer: ""
26
27
  },
27
28
  budgetPlanning: {
28
- question: "Welche Überlegungen sind in Ihre Entscheidung für eine Open-Source-Lösung geflossen und welche Erfahrungen haben Sie bisher damit gemacht?",
29
+ question: a.budgetPlanning,
29
30
  placeholder: "Wir haben mit Open-Source-Lösungen gute Erfahrungen gemacht. Wir sind flexibel und können die Software an unsere Bedürfnisse anpassen. Die Kosten sind niedrig, dafür brauchen wir mehr eigenes technisches Know-how und Zeit für Wartung. Insgesamt überwiegen für uns die Vorteile, vor allem was Unabhängigkeit und Nachhaltigkeit angeht.",
30
31
  answer: ""
31
32
  }
32
33
  }
33
- }), l = Object.keys(n.questions).map((r) => ({
34
+ }), m = Object.keys(n.questions).map((r) => ({
34
35
  name: r,
35
36
  text: n.questions[r].question
36
37
  }));
37
- function h(r, t) {
38
- n.questions[r].answer = t.slice(0, d);
38
+ function c(r, t) {
39
+ n.questions[r].answer = t.slice(0, l);
39
40
  }
40
- return (r, t) => (i(), u("div", S, [
41
+ return (r, t) => (o(), u("div", S, [
41
42
  t[1] || (t[1] = s("div", { class: "project-phasen-umstezen-header" }, [
42
43
  s("h4", null, "Umsetzen")
43
44
  ], -1)),
44
- s("div", v, [
45
+ s("div", V, [
45
46
  t[0] || (t[0] = s("p", { class: "project-phasen-umstezen-description" }, " Von der Dienstleistersteuerung bis zur Meilensteinerreichung. ", -1)),
46
- (i(!0), u(g, null, p(o(l), (e) => (i(), f(o(b), {
47
+ (o(!0), u(g, null, f(d(m), (e) => (o(), b(d(w), {
47
48
  id: e.name,
48
49
  placeholder: n.questions[e.name].placeholder,
49
50
  key: e.name,
50
51
  modelValue: n.questions[e.name].answer,
51
- "onUpdate:modelValue": (a) => n.questions[e.name].answer = a,
52
+ "onUpdate:modelValue": (i) => n.questions[e.name].answer = i,
52
53
  labelWeight: "bold",
53
54
  label: e.text,
54
- type: o(k),
55
+ type: d(z),
55
56
  name: e.name,
56
57
  validation: "length:0,1000",
57
58
  hint: "true",
58
- help: `${n.questions[e.name].answer.length || 0} von ${d} Zeichen`,
59
+ help: `${n.questions[e.name].answer.length || 0} von ${l} Zeichen`,
59
60
  "count-hint": !0,
60
- maxlength: d,
61
- onInput: (a) => h(e.name, a)
61
+ maxlength: l,
62
+ onInput: (i) => c(e.name, i)
62
63
  }, null, 8, ["id", "placeholder", "modelValue", "onUpdate:modelValue", "label", "type", "name", "help", "onInput"]))), 128))
63
64
  ]),
64
- m(w)
65
+ p(k)
65
66
  ]));
66
67
  }
67
- }, P = /* @__PURE__ */ z(V, [["__scopeId", "data-v-8d4cca45"]]);
68
+ }, U = /* @__PURE__ */ v(_, [["__scopeId", "data-v-fa9ecd8f"]]);
68
69
  export {
69
- P as default
70
+ U as default
70
71
  };
@@ -1,50 +1,51 @@
1
- import { reactive as z, createElementBlock as c, openBlock as s, createElementVNode as a, createVNode as o, Fragment as v, renderList as S, unref as u, createBlock as x, withCtx as B, withDirectives as h, vShow as m } from "vue";
2
- import { FormKit as W } from "@formkit/vue";
3
- import j from "../../../components/StepActionsSection.vue.js";
4
- import _ from "../TextArea/TextAreaDefinition.js";
5
- import g from "../ButtonV3.vue.js";
1
+ import { reactive as v, createElementBlock as m, openBlock as o, createElementVNode as a, createVNode as d, Fragment as S, renderList as x, unref as l, createBlock as B, withCtx as _, withDirectives as h, vShow as g } from "vue";
2
+ import { FormKit as j } from "@formkit/vue";
3
+ import { weiterdenkenQuestions as s } from "../../../composables/project-transformer/questions.js";
4
+ import V from "../../../components/StepActionsSection.vue.js";
5
+ import y from "../TextArea/TextAreaDefinition.js";
6
+ import p from "../ButtonV3.vue.js";
6
7
  /* empty css */
7
- import P from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const V = { class: "project-phasen-weiterdenken" }, y = { class: "project-phasen-weiterdenken-content" }, C = { class: "actions" }, d = 1e3, E = {
8
+ import C from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const E = { class: "project-phasen-weiterdenken" }, P = { class: "project-phasen-weiterdenken-content" }, W = { class: "actions" }, u = 1e3, A = {
9
10
  __name: "WeiterdenkenStep",
10
- setup(A) {
11
- const n = z({
11
+ setup(q) {
12
+ const n = v({
12
13
  questions: {
13
14
  projectTriggers: {
14
- question: "Was sind Ihre wichtigsten Learnings aus dem Projekt? Was würden Sie beim nächsten Use Case anders machen?",
15
+ question: s.projectTriggers,
15
16
  placeholder: "Ein zentrales Learning war die Bedeutung einer klaren Projektstruktur und offener Kommunikation — intern wie extern. Bei Projekten mit vielen Beteiligten ist es wichtig, Zuständigkeiten und Kommunikationswege eindeutig zu definieren. Außerdem haben wir gelernt, technische Vorarbeiten, insbesondere bei Datenqualität und Schnittstellen, nicht zu unterschätzen.",
16
17
  answer: ""
17
18
  },
18
19
  involvedStakeholders: {
19
- question: "Wird die Wirksamkeit Ihres Projekts überwacht und wenn ja, wie? Ist der erwartete Nutzen eingetreten (z.B. ökologisch, sozial oder monetär)?",
20
+ question: s.involvedStakeholders,
20
21
  placeholder: "Ja, die Wirksamkeit unseres Projekts wird regelmäßig überprüft. Wir haben Erfolgskriterien gemeinsam mit den nutzenden Stellen definiert – dazu zählen z.B. die Genauigkeit der Prognosen oder die Reaktionsgeschwindigkeit bei Hochwasserlagen. Einmal jährlich werten wir die Ergebnisse gemeinsam mit den beteiligten Fachbereichen aus. Erste Auswertungen und Praxistests zeigen, dass die Systeme bei Starkregenereignissen in den vergangenen Monaten bereits einen echten Mehrwert gebracht haben. Es konnten Schäden durch frühzeitige Warnungen verringert und Abläufe in der Gefahrenabwehr verbessert werden.",
21
22
  answer: ""
22
23
  },
23
24
  dataCollectionMethod: {
24
- question: "Gibt es Pläne für eine Skalierung oder Weiterentwicklung? Wenn ja, wie sichern Sie die Finanzierung dafür?",
25
+ question: s.dataCollectionMethod,
25
26
  placeholder: "Ja, wir planen, das System weiterzuentwickeln und auf weitere Anwendungsfälle (wie Sturzfluten oder Dürremanagement) auszuweiten. Dafür suchen wir die Zusammenarbeit mit benachbarten Kommunen und regionalen Partnern, um Ressourcen zu bündeln und Synergien zu schaffen. Durch regelmäßige Erfolgskontrolle und transparente Berichterstattung sichern wir die Akzeptanz und Bereitschaft zur weiteren Finanzierung.",
26
27
  answer: ""
27
28
  },
28
29
  budgetPlanning: {
29
- question: "Welche externen Unterstützungsangebote haben Ihnen geholfen oder auch gefehlt (z.B. Förderprogramme, Netzwerke, Austausch mit anderen Kommunen)?",
30
+ question: s.budgetPlanning,
30
31
  placeholder: "Besonders wichtig für uns waren Förderprogramme, wie das Landesprogramm zur Digitalisierung im Bevölkerungsschutz. Dadurch konnten wir einen Großteil der Kosten für Software, Sensorik und externe Beratung abdecken. Gefehlt haben uns regelmäßige, themenspezifische Austauschformate oder Workshops mit anderen Kommunen, um voneinander zu lernen und Synergien besser nutzen zu können.",
31
32
  answer: ""
32
33
  }
33
34
  }
34
- }), p = Object.keys(n.questions).map((t) => ({
35
+ }), w = Object.keys(n.questions).map((t) => ({
35
36
  name: t,
36
37
  text: n.questions[t].question
37
38
  }));
38
- function w(t, r) {
39
- n.questions[t].answer = r.slice(0, d);
39
+ function k(t, r) {
40
+ n.questions[t].answer = r.slice(0, u);
40
41
  }
41
- return (t, r) => (s(), c("div", V, [
42
+ return (t, r) => (o(), m("div", E, [
42
43
  r[1] || (r[1] = a("div", { class: "project-phasen-weiterdenken-header" }, [
43
44
  a("h4", null, "Weiterdenken")
44
45
  ], -1)),
45
- a("div", y, [
46
+ a("div", P, [
46
47
  r[0] || (r[0] = a("p", { class: "project-phasen-weiterdenken-description" }, " Von den Learnings bis zur Skalierung der Projektergebnisse. ", -1)),
47
- (s(!0), c(v, null, S(u(p), (e) => (s(), x(u(W), {
48
+ (o(!0), m(S, null, x(l(w), (e) => (o(), B(l(j), {
48
49
  key: e.name,
49
50
  id: e.name,
50
51
  placeholder: n.questions[e.name].placeholder,
@@ -52,46 +53,46 @@ const V = { class: "project-phasen-weiterdenken" }, y = { class: "project-phasen
52
53
  "onUpdate:modelValue": (i) => n.questions[e.name].answer = i,
53
54
  labelWeight: "bold",
54
55
  label: e.text,
55
- type: u(_),
56
+ type: l(y),
56
57
  name: e.name,
57
58
  validation: "length:0,1000",
58
59
  hint: "true",
59
- help: `${n.questions[e.name].answer.length || 0} von ${d} Zeichen`,
60
+ help: `${n.questions[e.name].answer.length || 0} von ${u} Zeichen`,
60
61
  "count-hint": !0,
61
- onInput: (i) => w(e.name, i),
62
- maxlength: d
62
+ onInput: (i) => k(e.name, i),
63
+ maxlength: u
63
64
  }, null, 8, ["id", "placeholder", "modelValue", "onUpdate:modelValue", "label", "type", "name", "help", "onInput"]))), 128))
64
65
  ]),
65
- o(j, { "next-text": "Weiter zu den Technischen Prozessschritten" }, {
66
- "prev-and-next": B(({
66
+ d(V, { "next-text": "Weiter zu den Technischen Prozessschritten" }, {
67
+ "prev-and-next": _(({
67
68
  hidePrevious: e,
68
69
  hideNext: i,
69
- previousText: k,
70
- nextText: l,
70
+ previousText: f,
71
+ nextText: c,
71
72
  handlePrevious: b,
72
- handleSubmit: f
73
+ handleSubmit: z
73
74
  }) => [
74
- a("div", C, [
75
- h(o(g, {
75
+ a("div", W, [
76
+ h(d(p, {
76
77
  class: "previousButton",
77
78
  variant: "secondary",
78
79
  size: "large",
79
80
  type: "button",
80
- "button-text": k,
81
+ "button-text": f,
81
82
  "icon-start": "CaretLeft",
82
83
  onClick: b
83
84
  }, null, 8, ["button-text", "onClick"]), [
84
- [m, !e]
85
+ [g, !e]
85
86
  ]),
86
- h(o(g, {
87
+ h(d(p, {
87
88
  size: "large",
88
89
  variant: t.nextVariant,
89
90
  type: "button",
90
- "button-text": l,
91
- "icon-end": l === "Als Entwurf speichern" ? null : "CaretRight",
92
- onClick: f
91
+ "button-text": c,
92
+ "icon-end": c === "Als Entwurf speichern" ? null : "CaretRight",
93
+ onClick: z
93
94
  }, null, 8, ["variant", "button-text", "icon-end", "onClick"]), [
94
- [m, !i]
95
+ [g, !i]
95
96
  ])
96
97
  ])
97
98
  ]),
@@ -99,7 +100,7 @@ const V = { class: "project-phasen-weiterdenken" }, y = { class: "project-phasen
99
100
  })
100
101
  ]));
101
102
  }
102
- }, N = /* @__PURE__ */ P(E, [["__scopeId", "data-v-e7f614f8"]]);
103
+ }, Z = /* @__PURE__ */ C(A, [["__scopeId", "data-v-2ff2d2ed"]]);
103
104
  export {
104
- N as default
105
+ Z as default
105
106
  };
@@ -1,89 +1,90 @@
1
1
  import { pipe as A } from "effect";
2
- import * as f from "effect/Option";
3
- import * as H from "jsonld";
4
- import { schemaProject as C } from "../../schema/projectLdSchema.js";
5
- import { getFirstItem as G, extractStringValue as t, extractLocalizedString as N } from "../useDpiSimpleLoader.js";
6
- import { isNonNullable as h } from "./encodeProject.js";
7
- import { PREFIXES as F, nonEmpty as I } from "./shared.js";
8
- function W(n) {
9
- const a = (n || "").trim();
10
- if (!a)
2
+ import * as p from "effect/Option";
3
+ import * as F from "jsonld";
4
+ import { schemaProject as $ } from "../../schema/projectLdSchema.js";
5
+ import { getFirstItem as E, extractStringValue as t, extractLocalizedString as z } from "../useDpiSimpleLoader.js";
6
+ import { isNonNullable as f } from "./encodeProject.js";
7
+ import { weiterdenkenQuestions as Q, umsetzenQuestions as U, planenQuestions as R, initiierenQuestions as V } from "./questions.js";
8
+ import { PREFIXES as q, nonEmpty as S } from "./shared.js";
9
+ function j(n) {
10
+ const r = (n || "").trim();
11
+ if (!r)
11
12
  return "";
12
13
  try {
13
- const r = new URL(a).pathname.split("/").filter(Boolean);
14
- return r[r.length - 1] || "";
14
+ const a = new URL(r).pathname.split("/").filter(Boolean);
15
+ return a[a.length - 1] || "";
15
16
  } catch {
16
- return a;
17
+ return r;
17
18
  }
18
19
  }
19
- async function K(n) {
20
- const a = {
21
- "@context": F,
20
+ async function W(n) {
21
+ const r = {
22
+ "@context": q,
22
23
  "@type": "schema:Project"
23
- }, s = await H.frame(n, a, {
24
+ }, s = await F.frame(n, r, {
24
25
  embed: "@always",
25
26
  omitGraph: !0
26
- }), r = await H.compact(s, F, {
27
+ }), a = await F.compact(s, q, {
27
28
  compactArrays: !1,
28
29
  graph: !1
29
- }), l = C.safeParse(G(r == null ? void 0 : r["@graph"]));
30
- if (!l.success)
30
+ }), d = $.safeParse(E(a == null ? void 0 : a["@graph"]));
31
+ if (!d.success)
31
32
  throw new Error(`Failed to parse project
32
33
 
33
- ${l.error.message}`);
34
- return l.data;
34
+ ${d.error.message}`);
35
+ return d.data;
35
36
  }
36
- function U(n) {
37
- return I(G(n["@id"]));
37
+ function K(n) {
38
+ return S(E(n["@id"]));
38
39
  }
39
- function V(n, a) {
40
- var r, l;
41
- const { visibility: s } = a;
40
+ function C(n, r) {
41
+ var a, d;
42
+ const { visibility: s } = r;
42
43
  return {
43
44
  "Auffindbarkeit/Sichtbarkeit": {
44
45
  visibility: s
45
46
  },
46
47
  "Auffindbarkeit/Kategorien": {
47
- categories: ((r = n["dcat:theme"]) == null ? void 0 : r.map(U).filter(h)) || []
48
+ categories: ((a = n["dcat:theme"]) == null ? void 0 : a.map(K).filter(f)) || []
48
49
  },
49
50
  "Auffindbarkeit/Anwendungsbereiche": {
50
- applications: ((l = n["schema:application"]) == null ? void 0 : l.filter(h)) || []
51
+ applications: ((d = n["schema:application"]) == null ? void 0 : d.filter(f)) || []
51
52
  }
52
53
  };
53
54
  }
54
- function R(n) {
55
+ function X(n) {
55
56
  var s;
56
- const a = (s = n["dcat:contactPoint"]) == null ? void 0 : s.map((r) => ({
57
- name: I(t(r["vcard:fn"])),
58
- mail: I(t(r["vcard:hasEmail"])),
59
- phone: I(t(r["vcard:hasTelephone"]))
60
- })).filter(h);
57
+ const r = (s = n["dcat:contactPoint"]) == null ? void 0 : s.map((a) => ({
58
+ name: S(t(a["vcard:fn"])),
59
+ mail: S(t(a["vcard:hasEmail"])),
60
+ phone: S(t(a["vcard:hasTelephone"]))
61
+ })).filter(f);
61
62
  return {
62
63
  "Grundlegende Informationen/Name": {
63
64
  projectName: A(
64
- f.fromNullable(N(n["dct:title"], "de")),
65
- f.flatMap((r) => I(r) ? f.some(r) : f.none()),
66
- f.getOrThrowWith(() => new Error("Project name is missing"))
65
+ p.fromNullable(z(n["dct:title"], "de")),
66
+ p.flatMap((a) => S(a) ? p.some(a) : p.none()),
67
+ p.getOrThrowWith(() => new Error("Project name is missing"))
67
68
  )
68
69
  },
69
70
  "Grundlegende Informationen/Beschreibung": {
70
71
  projectDescription: A(
71
- f.fromNullable(N(n["dct:description"], "de")),
72
+ p.fromNullable(z(n["dct:description"], "de")),
72
73
  // O.flatMap(s => nonEmpty(s) ? O.some(s) : O.none()),
73
74
  // O.getOrThrowWith(() => new Error('Project description is missing')),
74
- f.getOrElse(() => "")
75
+ p.getOrElse(() => "")
75
76
  )
76
77
  },
77
78
  "Grundlegende Informationen/Projektstatus": {
78
79
  projectName: A(
79
- f.fromNullable(n["schema:status"]),
80
+ p.fromNullable(n["schema:status"]),
80
81
  // O.flatMap(s => nonEmpty(s) ? O.some(s) : O.none()),
81
82
  // O.getOrThrowWith(() => new Error('Project status is missing')),
82
- f.getOrElse(() => "")
83
+ p.getOrElse(() => "")
83
84
  )
84
85
  },
85
86
  "Grundlegende Informationen/Organisation": {
86
- contact: G(a || []) || {
87
+ contact: E(r || []) || {
87
88
  name: "",
88
89
  mail: "",
89
90
  phone: ""
@@ -91,86 +92,66 @@ function R(n) {
91
92
  }
92
93
  };
93
94
  }
94
- function _(n) {
95
- var a, s, r, l, p, k, D, i;
95
+ function Y(n) {
96
+ var r, s, a, d, g, w, P, i;
96
97
  return {
97
98
  "Optionale Daten": {
98
- partners: ((a = n["dct:contributor"]) == null ? void 0 : a.map((c) => ({
99
+ partners: ((r = n["dct:contributor"]) == null ? void 0 : r.map((c) => ({
99
100
  name: t(c["foaf:name"]),
100
101
  url: t(c["foaf:homepage"])
101
- })).filter(h)) || [],
102
- requiredExpertise: ((s = n["schema:skills"]) == null ? void 0 : s.map(t).filter(h)) || [],
103
- references: ((l = (r = n["dct:references"]) == null ? void 0 : r.filter((c) => c["dct:type"] === "image")) == null ? void 0 : l.map((c) => ({
102
+ })).filter(f)) || [],
103
+ requiredExpertise: ((s = n["schema:skills"]) == null ? void 0 : s.map(t).filter(f)) || [],
104
+ references: ((d = (a = n["dct:references"]) == null ? void 0 : a.filter((c) => c["dct:type"] === "image")) == null ? void 0 : d.map((c) => ({
104
105
  homepage: t(c["schema:url"])
105
- })).filter(h)) || [],
106
+ })).filter(f)) || [],
106
107
  startDate: t(n["schema:startDate"] || ""),
107
108
  endDate: t(n["schema:endDate"] || ""),
108
- budget: t(((p = n["schema:amount"]) == null ? void 0 : p["schema:value"]) || ""),
109
- budgetDescription: t(((k = n["schema:amount"]) == null ? void 0 : k["schema:description"]) || ""),
109
+ budget: t(((g = n["schema:amount"]) == null ? void 0 : g["schema:value"]) || ""),
110
+ budgetDescription: t(((w = n["schema:amount"]) == null ? void 0 : w["schema:description"]) || ""),
110
111
  // todo:
111
- links: ((i = (D = n["dct:references"]) == null ? void 0 : D.filter((c) => c["dct:type"] === "documentation")) == null ? void 0 : i.map((c) => ({
112
+ links: ((i = (P = n["dct:references"]) == null ? void 0 : P.filter((c) => c["dct:type"] === "documentation")) == null ? void 0 : i.map((c) => ({
112
113
  name: t(c["dct:title"]),
113
114
  url: t(c["schema:url"]),
114
115
  description: t(c["dct:description"])
115
- })).filter(h)) || []
116
+ })).filter(f)) || []
116
117
  }
117
118
  };
118
119
  }
119
- function $(n) {
120
- const a = n["schema:hasPart"] ?? [], s = (u) => a.find((m) => m["dct:type"] === u), r = (u) => {
121
- var g, w;
122
- const m = /* @__PURE__ */ new Map(), S = [...(u == null ? void 0 : u["schema:question"]) ?? []].sort((e, d) => {
123
- const y = Number.parseInt(t(e["schema:position"])), z = Number.parseInt(t(d["schema:position"]));
124
- return (Number.isNaN(y) ? 0 : y) - (Number.isNaN(z) ? 0 : z);
120
+ function J(n) {
121
+ const r = n["schema:hasPart"] ?? [], s = (m) => r.find((u) => u["dct:type"] === m), a = (m) => {
122
+ var h, D;
123
+ const u = /* @__PURE__ */ new Map(), k = [...(m == null ? void 0 : m["schema:question"]) ?? []].sort((e, l) => {
124
+ const b = Number.parseInt(t(e["schema:position"])), x = Number.parseInt(t(l["schema:position"]));
125
+ return (Number.isNaN(b) ? 0 : b) - (Number.isNaN(x) ? 0 : x);
125
126
  });
126
- for (const e of S) {
127
- const d = (g = e["schema:text"]) == null ? void 0 : g.trim(), y = (w = e["schema:acceptedAnswer"]) == null ? void 0 : w.trim();
128
- d && y && m.set(d, y);
127
+ for (const e of k) {
128
+ const l = (h = e["schema:text"]) == null ? void 0 : h.trim(), b = (D = e["schema:acceptedAnswer"]) == null ? void 0 : D.trim();
129
+ l && b && u.set(l, b);
129
130
  }
130
- return m;
131
- }, l = {
132
- projectTriggers: "Was waren Ausloeser fuer das Projekt (z. B. rechtliche oder politische Vorgaben, intrinsische Motivation oder inspirierende Projekte aus anderen Kommunen)?",
133
- involvedStakeholders: "Welche relevanten Akteure innerhalb oder ausserhalb Ihrer Organisation haben Sie fruehzeitig involviert (z. B. um politische Rueckendeckung sicherzustellen)?",
134
- dataCollectionMethod: "Wie haben Sie den Bestand vorhandener Daten erhoben?",
135
- budgetPlanning: "Wie haben Sie das erste Budget berechnet und nachhaltig gesichert?"
136
- }, p = {
137
- requirementsGatherings: "Wie haben Sie die Anforderungen erhoben und dokumentiert (z. B. durch Markterkundung, externe Berater oder Workshops)?",
138
- tenderFormat: "Welche Ausschreibungsform haben Sie gewaehlt und warum? Gab es eine Vorlage oder Muster-Leistungsbeschreibung, die hilfreich war?",
139
- tenderTips: "Welche Tipps haben Sie fuer eine erfolgreiche Ausschreibung?",
140
- resourcePlanning: "Wie haben Sie die Ressourcenplanung fuer die Entwicklung und den Betrieb Ihres Digitalen Zwillings gestaltet und gesichert?"
141
- }, k = {
142
- projectTriggers: "Wie haben Sie die Zusammenarbeit mit den Dienstleistern organisiert und wie wurden relevante Stakeholder in Entscheidungsprozesse eingebunden?",
143
- involvedStakeholders: "Gab es Verzoegerungen und wenn ja, was waren die Gruende?",
144
- dataCollectionMethod: "Welche Schnittstellen wurden genutzt und traten technische Herausforderungen auf?",
145
- budgetPlanning: "Welche Ueberlegungen sind in Ihre Entscheidung fuer eine Open-Source-Loesung eingeflossen und welche Erfahrungen haben Sie gemacht?"
146
- }, D = {
147
- projectTriggers: "Was sind Ihre wichtigsten Learnings aus dem Projekt? Was wuerden Sie beim naechsten Use Case anders machen?",
148
- involvedStakeholders: "Wird die Wirksamkeit Ihres Projekts ueberwacht und wenn ja, wie? Ist der erwartete Nutzen eingetreten?",
149
- dataCollectionMethod: "Gibt es Plaene fuer eine Skalierung oder Weiterentwicklung? Wenn ja, wie sichern Sie die Finanzierung dafuer?",
150
- budgetPlanning: "Welche externen Unterstuetzungsangebote haben Ihnen geholfen oder auch gefehlt?"
151
- }, i = (u, m) => {
152
- const v = s(u), S = r(v), g = {};
153
- for (const [w, e] of Object.entries(m)) {
154
- const d = S.get(e);
155
- d && (g[w] = d);
131
+ return u;
132
+ }, d = V, g = R, w = U, P = Q, i = (m, u) => {
133
+ const v = s(m), k = a(v), h = {};
134
+ for (const [D, e] of Object.entries(u)) {
135
+ const l = k.get(e);
136
+ l && (h[D] = l);
156
137
  }
157
- return g;
158
- }, c = i("Initiieren", l), b = i("Planen", p), j = i("Umsetzen", k), P = i("Weiterdenken", D);
138
+ return h;
139
+ }, c = i("Initiieren", d), y = i("Planen", g), N = i("Umsetzen", w), I = i("Weiterdenken", P);
159
140
  return {
160
141
  "Projektphasen (optional)": {},
161
142
  "Projektphasen (optional)/Initiieren": c,
162
- "Projektphasen (optional)/Planen": b,
163
- "Projektphasen (optional)/Umsetzen": j,
164
- "Projektphasen (optional)/Weiterdenken": P
143
+ "Projektphasen (optional)/Planen": y,
144
+ "Projektphasen (optional)/Umsetzen": N,
145
+ "Projektphasen (optional)/Weiterdenken": I
165
146
  };
166
147
  }
167
148
  function L(n) {
168
- const a = n["p-plan:hasStep"] ?? [], s = {
149
+ const r = n["p-plan:hasStep"] ?? [], s = {
169
150
  datenerfassung: "1. Datenerfassung",
170
151
  datenverarbeitung: "2. Datenverarbeitung",
171
152
  datensimulation: "3. Datensimulation",
172
153
  datenvisualisierung: "4. Datenvisualisierung"
173
- }, r = {
154
+ }, a = {
174
155
  "Technische Prozessschritte": {},
175
156
  "1. Datenerfassung/Grundlegende Informationen": {},
176
157
  "1. Datenerfassung/Software": {},
@@ -188,76 +169,76 @@ function L(n) {
188
169
  "4. Datenvisualisierung/Software": {},
189
170
  "4. Datenvisualisierung/Datensätze": {},
190
171
  "4. Datenvisualisierung/Hardware": {}
191
- }, l = (i) => `${i}/Grundlegende Informationen`, p = (i) => `${i}/Software`, k = (i) => `${i}/Datensätze`, D = (i) => `${i}/Hardware`;
192
- for (const i of a) {
193
- const c = (t(i["p-plan:Activity"] || "") || "").trim().toLowerCase(), b = s[c];
194
- if (!b)
172
+ }, d = (i) => `${i}/Grundlegende Informationen`, g = (i) => `${i}/Software`, w = (i) => `${i}/Datensätze`, P = (i) => `${i}/Hardware`;
173
+ for (const i of r) {
174
+ const c = (t(i["p-plan:Activity"] || "") || "").trim().toLowerCase(), y = s[c];
175
+ if (!y)
195
176
  continue;
196
- const j = N(i["dct:description"], "de") || "", P = j === "__EMPTY__" ? "" : j, u = (i["prov:used"] || []).map((e) => ({
177
+ const N = z(i["dct:description"], "de") || "", I = N === "__EMPTY__" ? "" : N, m = (i["prov:used"] || []).map((e) => ({
197
178
  name: t(e["dct:title"]) || ""
198
179
  // description: extractStringValue(m['dct:description']) || undefined,
199
- })).filter((e) => (e.name ?? "").length > 0), m = (i["dct:references"] || []).filter((e) => t(e["dct:type"]) === "documentation").map((e) => ({
180
+ })).filter((e) => (e.name ?? "").length > 0), u = (i["dct:references"] || []).filter((e) => t(e["dct:type"]) === "documentation").map((e) => ({
200
181
  name: t(e["dct:title"]) || "",
201
182
  url: t(e["schema:url"]) || "",
202
183
  description: t(e["dct:description"]) || void 0
203
184
  })).filter((e) => e.url.length > 0 && e.name.length > 0);
204
- (P || u.length > 0 || m.length > 0) && (r[l(b)] = {
205
- ...P ? { description: P } : {},
206
- ...u.length > 0 ? { methods: u } : {},
207
- ...m.length > 0 ? { links: m } : {}
185
+ (I || m.length > 0 || u.length > 0) && (a[d(y)] = {
186
+ ...I ? { description: I } : {},
187
+ ...m.length > 0 ? { methods: m } : {},
188
+ ...u.length > 0 ? { links: u } : {}
208
189
  });
209
- const v = i["p-plan:hasInputVar"] || [], S = v.filter((e) => t(e["@type"]) === "schema:SoftwareApplication").map((e) => ({
210
- id: W(t(e["dct:identifier"]) || ""),
211
- functionalities: (e["schema:featureList"] || []).map((d) => t(d)).filter(h)
190
+ const v = i["p-plan:hasInputVar"] || [], k = v.filter((e) => t(e["@type"]) === "schema:SoftwareApplication").map((e) => ({
191
+ id: j(t(e["dct:identifier"]) || ""),
192
+ functionalities: (e["schema:featureList"] || []).map((l) => t(l)).filter(f)
212
193
  })).filter((e) => e.id.length > 0);
213
- S.length > 0 && (r[p(b)] = {
214
- selected: S
194
+ k.length > 0 && (a[g(y)] = {
195
+ selected: k
215
196
  });
216
- const g = v.filter((e) => t(e["@type"]) === "dcat:Dataset").map((e) => ({ id: W(t(e["dct:identifier"]) || "") })).filter((e) => e.id.length > 0);
217
- g.length > 0 && (r[k(b)] = {
218
- selected: g
197
+ const h = v.filter((e) => t(e["@type"]) === "dcat:Dataset").map((e) => ({ id: j(t(e["dct:identifier"]) || "") })).filter((e) => e.id.length > 0);
198
+ h.length > 0 && (a[w(y)] = {
199
+ selected: h
219
200
  });
220
- const w = v.filter((e) => t(e["@type"]) === "ssn:System").map((e) => {
221
- const d = e["ssn:deployedSystem"], y = W(t(e["dct:identifier"]) || ""), z = d && typeof d == "object" ? W(t(d["@id"]) || d["@id"]) : "", q = y || z, x = N(e["dct:description"], "de") || void 0, E = (e["ssn:forProperty"] || []).map((o) => t(o)).filter(h), M = (e["sosa:hasLocation"] || []).map((o) => ({ lat: t(o["geo:lat"]) || "", lng: t(o["geo:long"]) || "" })).filter((o) => o.lat.length > 0 && o.lng.length > 0), B = (e["foaf:depiction"] || []).map((o) => U(o)).filter(h), T = (e["dct:references"] || []).filter((o) => t(o["dct:type"]) === "documentation").map((o) => ({
201
+ const D = v.filter((e) => t(e["@type"]) === "ssn:System").map((e) => {
202
+ const l = e["ssn:deployedSystem"], b = j(t(e["dct:identifier"]) || ""), x = l && typeof l == "object" ? j(t(l["@id"]) || l["@id"]) : "", _ = b || x, G = z(e["dct:description"], "de") || void 0, H = (e["ssn:forProperty"] || []).map((o) => t(o)).filter(f), M = (e["sosa:hasLocation"] || []).map((o) => ({ lat: t(o["geo:lat"]) || "", lng: t(o["geo:long"]) || "" })).filter((o) => o.lat.length > 0 && o.lng.length > 0), O = (e["foaf:depiction"] || []).map((o) => K(o)).filter(f), T = (e["dct:references"] || []).filter((o) => t(o["dct:type"]) === "documentation").map((o) => ({
222
203
  name: t(o["dct:title"]) || "",
223
204
  url: t(o["schema:url"]) || "",
224
205
  description: t(o["dct:description"]) || void 0
225
- })).filter((o) => o.url.length > 0), O = (e["ssn-system:hasSystemCapability"] || []).map((o) => t(o)).filter(h);
206
+ })).filter((o) => o.url.length > 0), B = (e["ssn-system:hasSystemCapability"] || []).map((o) => t(o)).filter(f);
226
207
  return {
227
- id: q,
228
- ...x ? { description: x } : {},
229
- ...E.length > 0 ? { forProperty: E } : {},
208
+ id: _,
209
+ ...G ? { description: G } : {},
210
+ ...H.length > 0 ? { forProperty: H } : {},
230
211
  ...M.length > 0 ? { locations: M } : {},
231
- ...B.length > 0 ? { depictions: B } : {},
212
+ ...O.length > 0 ? { depictions: O } : {},
232
213
  ...T.length > 0 ? { references: T } : {},
233
- ...O.length > 0 ? { functionalities: O } : {},
214
+ ...B.length > 0 ? { functionalities: B } : {},
234
215
  isHostedBy: e["sosa:isHostedBy"] || [],
235
216
  hosts: []
236
217
  };
237
218
  }).filter((e) => (e.id ?? "").length > 0);
238
- w.length > 0 && (r[D(b)] = {
239
- selected: w
219
+ D.length > 0 && (a[P(y)] = {
220
+ selected: D
240
221
  });
241
222
  }
242
- return r;
223
+ return a;
243
224
  }
244
- async function ee(n, a) {
245
- const s = await K(n);
225
+ async function re(n, r) {
226
+ const s = await W(n);
246
227
  return {
247
228
  Landing: {},
248
- ...V(s, { visibility: (a == null ? void 0 : a.visibility) || "public" }),
249
- ...R(s),
250
- ..._(s),
251
- ...$(s),
229
+ ...C(s, { visibility: (r == null ? void 0 : r.visibility) || "public" }),
230
+ ...X(s),
231
+ ...Y(s),
232
+ ...J(s),
252
233
  ...L(s),
253
234
  Vorschau: {}
254
235
  };
255
236
  }
256
237
  export {
257
- ee as decodeProject,
258
- V as toAuffindbarkeit,
259
- R as toGrundlegendeInformationen,
260
- _ as toOptionaleDaten,
261
- $ as toProjektphasen,
238
+ re as decodeProject,
239
+ C as toAuffindbarkeit,
240
+ X as toGrundlegendeInformationen,
241
+ Y as toOptionaleDaten,
242
+ J as toProjektphasen,
262
243
  L as toTechnicalProcessSteps
263
244
  };