@piveau/dpi 0.2.0-alpha.37 → 0.2.0-alpha.40

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 (29) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +94 -82
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +66 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue2.js +4 -0
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +43 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue2.js +4 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +37 -37
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +7 -0
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +126 -0
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +362 -463
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +33 -33
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +110 -211
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +50 -49
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +37 -23
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1000 -983
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue.js +55 -0
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue2.js +4 -0
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +1 -1
  26. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +73 -63
  28. package/dist/packages/dpi/src/utils/twinbyUtils.js +8 -0
  29. package/package.json +23 -17
@@ -1,33 +1,33 @@
1
- import { defineComponent as gt, mergeModels as ke, useModel as wt, unref as i, watch as Z, ref as ye, computed as g, createElementBlock as p, openBlock as d, createElementVNode as s, createCommentVNode as w, createVNode as a, Fragment as k, mergeProps as y, isRef as S, withCtx as v, renderList as F, withDirectives as Se, vModelCheckbox as ze, createTextVNode as kt, createBlock as z } from "vue";
2
- import { PhLightbulb as yt } from "@phosphor-icons/vue";
3
- import { toTypedSchema as q } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
4
- import { useForm as Q, useFieldArray as x } from "vee-validate";
5
- import * as o from "zod";
6
- import { useTwinbyUser as St } from "../../../composables/useTwinbyUser.js";
7
- import zt from "../Autocomplete/AutocompleteVocab.vue.js";
8
- import f from "../ButtonV3.vue.js";
9
- import Vt from "../Card.vue.js";
10
- import Ve from "../Chip.vue.js";
11
- import V from "../InputField.vue.js";
12
- import Y from "../ListBox/Listbox.vue.js";
13
- import Ie from "../TextAreaV3.vue.js";
14
- import B from "./ProcessStepInputCard.vue.js";
15
- import It from "./RichOption.vue.js";
16
- const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "step-section" }, xt = { class: "step-section-actions" }, Bt = ["href"], Ct = { class: "step-section" }, $t = {
17
- key: 0,
18
- class: "functionalities-container"
19
- }, Pt = ["id", "value"], Ut = { class: "step-section-actions" }, At = { class: "step-section" }, Dt = { class: "step-section step-section--lg" }, _t = { class: "step-section" }, Lt = {
1
+ import { defineComponent as Ye, mergeModels as ce, useModel as en, unref as l, watch as N, ref as L, computed as w, createElementBlock as m, openBlock as d, createElementVNode as i, createCommentVNode as g, createVNode as r, Fragment as k, mergeProps as E, isRef as Z, withCtx as h, createTextVNode as nn, renderList as B, createBlock as y, withDirectives as tn, vModelCheckbox as ln } from "vue";
2
+ import { PhLightbulb as on } from "@phosphor-icons/vue";
3
+ import { toTypedSchema as me } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
4
+ import { useForm as pe, useFieldArray as P } from "vee-validate";
5
+ import * as s from "zod";
6
+ import { generateIsRequiredMsg as b, URL_MSG as fe } from "../../../../utils/twinbyUtils.js";
7
+ import { useTwinbyUser as sn } from "../../../composables/useTwinbyUser.js";
8
+ import rn from "../Autocomplete/AutocompleteVocab.vue.js";
9
+ import p from "../ButtonV3.vue.js";
10
+ import an from "../Card.vue.js";
11
+ import un from "../Chip.vue.js";
12
+ import V from "../InputField/InputFieldVeeValidate.vue.js";
13
+ import he from "../ListBox/ListboxVeeValidate.vue.js";
14
+ import dn from "../TextArea/TextAreaVeeValidate.vue.js";
15
+ import cn from "../TextAreaV3.vue.js";
16
+ import mn from "./FunctionalityForm.vue.js";
17
+ import x from "./ProcessStepInputCard.vue.js";
18
+ import pn from "./RichOption.vue.js";
19
+ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "step-section" }, vn = { class: "step-section-actions" }, bn = ["href"], wn = { class: "step-section" }, gn = { class: "step-section" }, kn = { class: "step-section step-section--lg" }, yn = { class: "step-section" }, zn = {
20
20
  key: 0,
21
21
  class: "step-section-actions"
22
- }, Zt = { class: "step-section" }, Wt = {
22
+ }, Sn = { class: "step-section" }, Vn = {
23
23
  key: 0,
24
24
  class: "functionalities-container"
25
- }, Rt = ["id", "value"], Et = { class: "step-section step-section--lg" }, Nt = { style: { display: "flex", "justify-content": "flex-end" } }, Gt = { style: { display: "inline-flex", "justify-content": "flex-end" } }, Tt = { class: "step-section-actions" }, Mt = { class: "step-section" }, Ot = { class: "step-section-actions" }, jt = { class: "step-section" }, Kt = { class: "step-section-actions" }, qt = { class: "step-section" }, Qt = { class: "step-section-actions" }, Yt = { class: "step-section-actions" }, Jt = {
25
+ }, Hn = ["id", "value"], Bn = { class: "step-section step-section--lg" }, Pn = { style: { display: "flex", "justify-content": "flex-end" } }, xn = { style: { display: "inline-flex", "justify-content": "flex-end" } }, Cn = { class: "step-section-actions" }, In = { class: "step-section" }, Un = { class: "step-section-actions" }, $n = { class: "step-section" }, Dn = { class: "step-section-actions" }, Fn = { class: "step-section" }, Ln = { class: "step-section-actions" }, Zn = { class: "step-section-actions" }, An = {
26
26
  key: 0,
27
27
  class: "button-row"
28
- }, Fe = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", He = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", W = 500, bn = /* @__PURE__ */ gt({
28
+ }, A = 500, lt = /* @__PURE__ */ Ye({
29
29
  __name: "HardwareForm",
30
- props: /* @__PURE__ */ ke({
30
+ props: /* @__PURE__ */ ce({
31
31
  modelValue: {},
32
32
  initializeWith: {},
33
33
  exclude: { default: () => [] }
@@ -37,31 +37,31 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
37
37
  },
38
38
  modelModifiers: {}
39
39
  }),
40
- emits: /* @__PURE__ */ ke(["submit", "patch", "close"], ["update:modelValue"]),
41
- setup(J, { emit: xe }) {
42
- var re, ae, ue, de, ce, pe, me, fe, he, ve;
43
- const m = J, R = xe, Be = wt(J, "modelValue"), H = !!m.modelValue, Ce = i(m.modelValue) || "", $e = o.object({
44
- lat: o.string().min(1, "Geben Sie einen Wert für die Breite ein"),
45
- lng: o.string().min(1, "Geben Sie einen Wert für die Länge ein")
46
- }), Pe = o.array($e), Ue = o.object({
47
- name: o.string().min(1, "Geben Sie einen Namen ein").default(""),
48
- url: o.string().min(1, "Geben Sie eine URL ein").default(""),
49
- description: o.string().min(1, "Geben Sie eine Beschreibung ein").default("")
40
+ emits: /* @__PURE__ */ ce(["submit", "patch", "close"], ["update:modelValue"]),
41
+ setup(G, { emit: ve }) {
42
+ var X, Y, ee, ne, te, ie, le, oe, se, re;
43
+ const c = G, W = ve, be = en(G, "modelValue"), H = !!c.modelValue, we = l(c.modelValue) || "", ge = s.object({
44
+ lat: s.string().min(1, b("Latitude / Breite")),
45
+ lng: s.string().min(1, b("Longitude / Länge"))
46
+ }), ke = s.array(ge), ye = s.object({
47
+ name: s.string().min(1, b("Name")).default(""),
48
+ url: s.string().min(1, b("URL")).url(fe).default(""),
49
+ description: s.string().min(1, b("Beschreibung")).default("")
50
50
  });
51
- function X(n) {
52
- return Array.isArray(n) ? n : n != null ? [n] : [];
51
+ function O(t) {
52
+ return Array.isArray(t) ? t : t != null ? [t] : [];
53
53
  }
54
- const Ae = o.object({
55
- id: o.string(),
56
- description: o.string().optional(),
57
- functionalities: o.array(o.string()).min(1),
58
- forProperty: o.array(o.string()),
59
- locations: Pe,
60
- depictions: o.array(o.string()),
61
- references: o.array(Ue),
62
- isHostedBy: o.array(o.string()),
63
- hosts: o.array(o.string())
64
- }), De = [
54
+ const ze = s.object({
55
+ id: s.string(),
56
+ description: s.string().optional(),
57
+ functionalities: s.array(s.string()).min(1),
58
+ forProperty: s.array(s.string()),
59
+ locations: ke,
60
+ depictions: s.array(s.string().min(1, b("URL")).url(fe)),
61
+ references: s.array(ye),
62
+ isHostedBy: s.array(s.string().min(1, b("Host-Plattform"))),
63
+ hosts: s.array(s.string())
64
+ }), Se = [
65
65
  ...[
66
66
  "Mast",
67
67
  "Ampel",
@@ -75,167 +75,128 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
75
75
  "Parkhaus",
76
76
  "Kanaldeckel",
77
77
  "Grünfläche"
78
- ].sort((n, t) => n.localeCompare(t)),
78
+ ].sort((t, n) => t.localeCompare(n)),
79
79
  "Sonstiges"
80
- ], {
81
- defineField: C,
82
- handleSubmit: _e,
83
- resetForm: Le,
84
- errors: c
85
- } = Q({
86
- validationSchema: q(Ae),
80
+ ], v = pe({
81
+ validationSchema: me(ze),
87
82
  initialValues: {
88
- id: m.modelValue || "",
89
- description: ((re = m.initializeWith) == null ? void 0 : re.description) || "",
90
- functionalities: ((ae = m.initializeWith) == null ? void 0 : ae.functionalities) || [],
91
- forProperty: ((ue = m.initializeWith) == null ? void 0 : ue.forProperty) || [],
92
- locations: ((de = m.initializeWith) == null ? void 0 : de.locations) || [],
93
- depictions: ((ce = m.initializeWith) == null ? void 0 : ce.depictions) || [],
94
- references: ((pe = m.initializeWith) == null ? void 0 : pe.references) || [],
95
- isHostedBy: X((me = m.initializeWith) == null ? void 0 : me.isHostedBy),
96
- hosts: X((fe = m.initializeWith) == null ? void 0 : fe.hosts)
83
+ id: c.modelValue || "",
84
+ description: ((X = c.initializeWith) == null ? void 0 : X.description) || "",
85
+ functionalities: ((Y = c.initializeWith) == null ? void 0 : Y.functionalities) || [],
86
+ forProperty: ((ee = c.initializeWith) == null ? void 0 : ee.forProperty) || [],
87
+ locations: ((ne = c.initializeWith) == null ? void 0 : ne.locations) || [],
88
+ depictions: ((te = c.initializeWith) == null ? void 0 : te.depictions) || [],
89
+ references: ((ie = c.initializeWith) == null ? void 0 : ie.references) || [],
90
+ isHostedBy: O((le = c.initializeWith) == null ? void 0 : le.isHostedBy),
91
+ hosts: O((oe = c.initializeWith) == null ? void 0 : oe.hosts)
97
92
  },
98
93
  name: "hardwareForm"
99
- }), [I, Ze] = C("id"), [b, We] = C("functionalities"), [h, Re] = C("forProperty"), [$, Ee] = C("description"), {
100
- remove: Ne,
101
- push: Ge,
102
- fields: Te
103
- } = x("locations"), {
104
- remove: Me,
105
- push: Oe,
106
- fields: je
107
- } = x("depictions"), {
108
- remove: Ke,
109
- push: qe,
110
- fields: Qe
111
- } = x("references"), {
112
- remove: Ye,
113
- push: Je,
114
- fields: ee
115
- } = x("isHostedBy"), {
116
- remove: Xt,
117
- push: en,
118
- fields: tn
119
- } = x("hosts");
120
- Z(I, (n) => {
121
- Be.value = n || "";
94
+ }), {
95
+ defineField: C,
96
+ handleSubmit: Ve,
97
+ resetForm: He
98
+ } = v, [z, Be] = C("id"), [S] = C("functionalities"), [f, Pe] = C("forProperty"), [I, xe] = C("description"), {
99
+ remove: Ce,
100
+ push: Ie,
101
+ fields: Ue
102
+ } = P("locations"), {
103
+ remove: $e,
104
+ push: De,
105
+ fields: Fe
106
+ } = P("depictions"), {
107
+ remove: Le,
108
+ push: Ze,
109
+ fields: Ae
110
+ } = P("references"), {
111
+ remove: We,
112
+ push: Re,
113
+ fields: T
114
+ } = P("isHostedBy"), {
115
+ remove: Wn,
116
+ push: Rn,
117
+ fields: _n
118
+ } = P("hosts");
119
+ N(z, (t) => {
120
+ be.value = t || "";
122
121
  }, { immediate: !0 });
123
- const E = ye(null);
124
- function Xe(n) {
125
- const t = {
126
- id: String(n.id || ""),
127
- name: typeof n.name == "string" ? n.name : "",
128
- functionalities: Array.isArray(n.functionalities) ? n.functionalities : [],
129
- forProperty: Array.isArray(n.forProperties) ? n.forProperties : [],
130
- manufacturer: n.manufacturer,
131
- description: n.description,
132
- version: n.version,
133
- unavailable: n.unavailable
122
+ const R = L(null);
123
+ function _e(t) {
124
+ const n = {
125
+ id: String(t.id || ""),
126
+ name: typeof t.name == "string" ? t.name : "",
127
+ functionalities: Array.isArray(t.functionalities) ? t.functionalities : [],
128
+ forProperty: Array.isArray(t.forProperties) ? t.forProperties : [],
129
+ manufacturer: t.manufacturer,
130
+ description: t.description,
131
+ version: t.version,
132
+ unavailable: t.unavailable
134
133
  };
135
- E.value = t;
134
+ R.value = n;
136
135
  }
137
- const u = g(() => !!I.value), te = g(() => {
138
- var n;
139
- return (((n = b.value) == null ? void 0 : n.length) ?? 0) > 0;
140
- }), N = g(() => {
141
- var n;
142
- return ((n = E.value) == null ? void 0 : n.functionalities) ?? [];
143
- }), et = g(() => {
144
- var n;
145
- return [...((n = E.value) == null ? void 0 : n.forProperty) || []].sort((t, e) => t.localeCompare(e)) ?? [];
146
- }), tt = o.object({
147
- functionalitySelect: o.string().optional(),
148
- functionalityInput: o.string().optional()
149
- }).superRefine((n, t) => {
150
- const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, l = n.functionalityInput && n.functionalityInput.trim().length > 0;
151
- !e && !l && (t.addIssue({
152
- code: o.ZodIssueCode.custom,
153
- message: Fe,
154
- path: ["functionalitySelect"]
155
- }), t.addIssue({
156
- code: o.ZodIssueCode.custom,
157
- message: Fe,
158
- path: ["functionalityInput"]
159
- }));
160
- }), {
161
- defineField: ne,
162
- handleSubmit: nt,
163
- errors: G,
164
- resetForm: T
165
- } = Q({
166
- validationSchema: q(tt),
167
- initialValues: {
168
- functionalitySelect: "",
169
- functionalityInput: ""
170
- }
171
- }), it = o.object({
172
- zweckSelect: o.string().optional(),
173
- zweckInput: o.string().optional()
174
- }).superRefine((n, t) => {
175
- const e = n.zweckSelect && n.zweckSelect.trim().length > 0, l = n.zweckInput && n.zweckInput.trim().length > 0;
176
- !e && !l && (t.addIssue({
177
- code: o.ZodIssueCode.custom,
178
- message: He,
136
+ const a = w(() => !!z.value), j = w(() => {
137
+ var t;
138
+ return (((t = S.value) == null ? void 0 : t.length) ?? 0) > 0;
139
+ }), Me = w(() => {
140
+ var t;
141
+ return ((t = R.value) == null ? void 0 : t.functionalities) ?? [];
142
+ }), Ne = w(() => {
143
+ var t;
144
+ return [...((t = R.value) == null ? void 0 : t.forProperty) || []].sort((n, e) => n.localeCompare(e)) ?? [];
145
+ }), K = b("Zweck"), Ee = s.object({
146
+ zweckSelect: s.string().optional(),
147
+ zweckInput: s.string().optional()
148
+ }).superRefine((t, n) => {
149
+ const e = t.zweckSelect && t.zweckSelect.trim().length > 0, o = t.zweckInput && t.zweckInput.trim().length > 0;
150
+ !e && !o && (n.addIssue({
151
+ code: s.ZodIssueCode.custom,
152
+ message: K,
179
153
  path: ["zweckSelect"]
180
- }), t.addIssue({
181
- code: o.ZodIssueCode.custom,
182
- message: He,
154
+ }), n.addIssue({
155
+ code: s.ZodIssueCode.custom,
156
+ message: K,
183
157
  path: ["zweckInput"]
184
158
  }));
185
- }), {
186
- defineField: ie,
187
- handleSubmit: lt,
188
- errors: M,
189
- resetForm: P
190
- } = Q({
191
- validationSchema: q(it),
159
+ }), _ = pe({
160
+ validationSchema: me(Ee),
192
161
  initialValues: {
193
162
  zweckSelect: "",
194
163
  zweckInput: ""
195
164
  }
165
+ }), {
166
+ handleSubmit: Ge,
167
+ resetForm: U
168
+ } = _;
169
+ N(z, (t, n) => {
170
+ !!n && !!t && t !== n && (S.value = [], U(), f.value = []);
196
171
  });
197
- Z(I, (n, t) => {
198
- !!t && !!n && n !== t && (T(), b.value = [], P(), h.value = []);
199
- });
200
- const [U, st] = ne("functionalitySelect"), [O, ot] = ne("functionalityInput"), j = g(() => Array.from(b.value || [])), rt = g(() => {
201
- var t, e;
202
- const n = j.value.join(" ");
203
- return (e = (t = N == null ? void 0 : N.value) == null ? void 0 : t.filter((l) => !n.includes(l))) == null ? void 0 : e.sort((l, r) => l.localeCompare(r));
204
- }), [A, at] = ie("zweckSelect"), [K, ut] = ie("zweckInput"), D = g(() => h.value && h.value.length > 0), _ = ye(!!((ve = (he = m.initializeWith) == null ? void 0 : he.forProperty) != null && ve.length));
205
- function dt() {
206
- h.value = [];
172
+ const M = L(""), q = L(""), $ = w(() => f.value && f.value.length > 0), D = L(!!((re = (se = c.initializeWith) == null ? void 0 : se.forProperty) != null && re.length));
173
+ function Oe() {
174
+ f.value = [];
207
175
  }
208
- const le = _e((n) => {
209
- const t = {
210
- id: n.id,
211
- description: n.description || "",
212
- functionalities: Array.from(b.value || []).filter(Boolean),
213
- forProperty: (n.forProperty || []).filter(Boolean),
214
- locations: n.locations || [],
215
- depictions: (n.depictions || []).filter(Boolean),
216
- references: (n.references || []).map((e) => ({
176
+ const Q = Ve((t) => {
177
+ const n = {
178
+ id: t.id,
179
+ description: t.description || "",
180
+ functionalities: Array.from(S.value || []).filter(Boolean),
181
+ forProperty: (t.forProperty || []).filter(Boolean),
182
+ locations: t.locations || [],
183
+ depictions: (t.depictions || []).filter(Boolean),
184
+ references: (t.references || []).map((e) => ({
217
185
  name: (e == null ? void 0 : e.name) || "",
218
186
  url: (e == null ? void 0 : e.url) || "",
219
187
  description: (e == null ? void 0 : e.description) || ""
220
188
  })),
221
- isHostedBy: (n.isHostedBy || []).filter(Boolean),
222
- hosts: (n.hosts || []).filter(Boolean)
189
+ isHostedBy: (t.isHostedBy || []).filter(Boolean),
190
+ hosts: (t.hosts || []).filter(Boolean)
223
191
  };
224
- H ? R("patch", {
225
- id: Ce,
226
- hardware: t
227
- }) : R("submit", t), T(), P(), Le();
228
- }), se = nt((n) => {
229
- var e, l;
230
- const t = n.functionalitySelect || n.functionalityInput;
231
- t && t.trim().length > 0 && !((e = b.value) != null && e.includes(t)) && ((l = b.value) == null || l.push(t)), T();
192
+ H ? W("patch", {
193
+ id: we,
194
+ hardware: n
195
+ }) : W("submit", n), U(), He();
232
196
  });
233
- Z(U, (n) => {
234
- n && n.trim().length > 0 && se();
235
- });
236
- function ct(n) {
197
+ function Te(t) {
237
198
  return [
238
- ...n,
199
+ ...t,
239
200
  {
240
201
  id: "--hardware-in-request--",
241
202
  name: "Hardware in Beantragung",
@@ -245,240 +206,182 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
245
206
  }
246
207
  ];
247
208
  }
248
- const oe = lt((n) => {
249
- var e, l;
250
- const t = n.zweckSelect || n.zweckInput;
251
- t && t.trim().length > 0 && !((e = h.value) != null && e.includes(t)) && ((l = h.value) == null || l.push(t)), P();
209
+ const J = Ge((t) => {
210
+ var e, o;
211
+ const n = t.zweckSelect || t.zweckInput;
212
+ n && n.trim().length > 0 && !((e = f.value) != null && e.includes(n)) && ((o = f.value) == null || o.push(n)), U();
252
213
  });
253
- function pt() {
254
- P(), _.value = !1;
214
+ function je() {
215
+ U(), D.value = !1;
255
216
  }
256
- Z(A, () => oe());
257
- const mt = g(() => {
258
- var n;
259
- return ((n = $.value) == null ? void 0 : n.length) || 0;
260
- });
261
- function ft(n) {
217
+ N(M, () => J());
218
+ const Ke = w(() => {
262
219
  var t;
263
- return ((t = n.value.description) == null ? void 0 : t.length) ?? 0;
220
+ return ((t = I.value) == null ? void 0 : t.length) || 0;
221
+ });
222
+ function qe(t) {
223
+ var n;
224
+ return ((n = t.value.description) == null ? void 0 : n.length) ?? 0;
264
225
  }
265
- const { authToken: ht, username: vt } = St(), bt = g(() => `https://form.typeform.com/to/ayL37uiV#token=${ht.value}&account=${vt.value}`);
266
- return (n, t) => (d(), p("div", Ft, [
267
- s("section", Ht, [
268
- H ? w("", !0) : (d(), p(k, { key: 0 }, [
269
- t[15] || (t[15] = s("h5", null, "Wählen Sie eine bestehende Hardware", -1)),
270
- t[16] || (t[16] = s("p", null, " Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen. ", -1))
226
+ const { authToken: Qe, username: Je } = sn(), Xe = w(() => `https://form.typeform.com/to/ayL37uiV#token=${Qe.value}&account=${Je.value}`);
227
+ return (t, n) => (d(), m("div", fn, [
228
+ i("section", hn, [
229
+ H ? g("", !0) : (d(), m(k, { key: 0 }, [
230
+ n[13] || (n[13] = i("h5", null, "Wählen Sie eine bestehende Hardware", -1)),
231
+ n[14] || (n[14] = i("p", null, " Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen. ", -1))
271
232
  ], 64)),
272
- a(zt, y({
273
- modelValue: i(I),
274
- "onUpdate:modelValue": t[0] || (t[0] = (e) => S(I) ? I.value = e : null),
233
+ r(rn, E({
234
+ modelValue: l(z),
235
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => Z(z) ? z.value = e : null),
275
236
  label: H ? "Hardware auswählen" : ""
276
- }, i(Ze), {
237
+ }, l(Be), {
277
238
  "base-url": "https://twin.bydata.de/api/hub/search",
278
239
  resource: "hardware",
279
240
  placeholder: "Wählen Sie eine Hardware.",
280
241
  name: "hardware",
281
242
  "setup-fn": (e) => {
282
- var l, r, L, be, ge, we;
243
+ var o, u, F, ae, ue, de;
283
244
  return {
284
245
  id: e == null ? void 0 : e.id,
285
- name: ((l = e == null ? void 0 : e.name) == null ? void 0 : l.de) || ((r = e == null ? void 0 : e.name) == null ? void 0 : r.en),
246
+ name: ((o = e == null ? void 0 : e.name) == null ? void 0 : o.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en),
286
247
  functionalities: (e == null ? void 0 : e.functionalities) || [],
287
248
  forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
288
- unavailable: m.exclude.includes(e == null ? void 0 : e.id),
289
- manufacturer: (be = (L = e == null ? void 0 : e.manufacturer) == null ? void 0 : L[0]) == null ? void 0 : be.label,
290
- description: ((ge = e == null ? void 0 : e.description) == null ? void 0 : ge.de) || ((we = e == null ? void 0 : e.description) == null ? void 0 : we.en),
249
+ unavailable: c.exclude.includes(e == null ? void 0 : e.id),
250
+ manufacturer: (ae = (F = e == null ? void 0 : e.manufacturer) == null ? void 0 : F[0]) == null ? void 0 : ae.label,
251
+ description: ((ue = e == null ? void 0 : e.description) == null ? void 0 : ue.de) || ((de = e == null ? void 0 : e.description) == null ? void 0 : de.en),
291
252
  version: e == null ? void 0 : e.version
292
253
  };
293
254
  },
294
- "post-process-fn": ct,
295
- onSelect: Xe
255
+ "post-process-fn": Te,
256
+ onSelect: _e
296
257
  }), {
297
- option: v(({ option: e, active: l, selected: r, disabled: L }) => [
298
- a(It, {
258
+ option: h(({ option: e, active: o, selected: u, disabled: F }) => [
259
+ r(pn, {
299
260
  name: e.name,
300
261
  manufacturer: e.manufacturer,
301
262
  description: e.description,
302
- active: l,
303
- selected: r,
304
- disabled: L
263
+ active: o,
264
+ selected: u,
265
+ disabled: F
305
266
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
306
267
  ]),
307
268
  _: 1
308
269
  }, 16, ["modelValue", "label", "setup-fn"]),
309
- H ? w("", !0) : (d(), p(k, { key: 1 }, [
310
- t[17] || (t[17] = s("h5", null, "oder", -1)),
311
- t[18] || (t[18] = s("p", null, " Sollte die verwendete Hardware noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
312
- s("div", xt, [
313
- s("a", {
314
- href: bt.value,
270
+ H ? g("", !0) : (d(), m(k, { key: 1 }, [
271
+ n[15] || (n[15] = i("h5", null, "oder", -1)),
272
+ n[16] || (n[16] = i("p", null, " Sollte die verwendete Hardware noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
273
+ i("div", vn, [
274
+ i("a", {
275
+ href: Xe.value,
315
276
  target: "_blank"
316
277
  }, [
317
- a(f, {
278
+ r(p, {
318
279
  "button-text": "Zur Hardwarebeantragung",
319
280
  size: "medium",
320
281
  variant: "secondary"
321
282
  })
322
- ], 8, Bt)
283
+ ], 8, bn)
323
284
  ])
324
285
  ], 64))
325
286
  ]),
326
- s("section", Ct, [
327
- t[19] || (t[19] = s("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
328
- t[20] || (t[20] = s("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
329
- j.value.length > 0 ? (d(), p("div", $t, [
330
- (d(!0), p(k, null, F(j.value, (e, l) => (d(), p("div", {
331
- key: l,
332
- class: "functionalities"
333
- }, [
334
- Se(s("input", y({
335
- id: e,
336
- "onUpdate:modelValue": t[1] || (t[1] = (r) => S(b) ? b.value = r : null),
337
- hidden: "",
338
- value: e,
339
- name: "selectedFunctionalities",
340
- type: "checkbox"
341
- }, { ref_for: !0 }, i(We)), null, 16, Pt), [
342
- [ze, i(b)]
343
- ]),
344
- a(Ve, {
345
- as: "label",
346
- for: e,
347
- text: e,
348
- setup: {
349
- "@type": "select",
350
- "@icon": "suffix",
351
- "@inTable": !1,
352
- "@search": !1,
353
- "@selected": !0
354
- },
355
- data: { "@value": e, URI: e },
356
- "select-value": !0
357
- }, null, 8, ["for", "text", "data"])
358
- ]))), 128))
359
- ])) : w("", !0),
360
- a(Y, y({
361
- modelValue: i(U),
362
- "onUpdate:modelValue": t[2] || (t[2] = (e) => S(U) ? U.value = e : null),
363
- options: rt.value,
364
- "error-message": i(G).functionalitySelect,
365
- label: "Funktionalitäten auswählen",
366
- placeholder: "Wählen Sie eine Funktionalität.",
367
- disabled: !u.value
368
- }, i(st)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
369
- t[21] || (t[21] = s("h5", null, " oder ", -1)),
370
- a(V, y({
371
- modelValue: i(O),
372
- "onUpdate:modelValue": t[3] || (t[3] = (e) => S(O) ? O.value = e : null),
373
- error_message: i(G).functionalityInput,
374
- "show-error": !!i(G).functionalityInput,
375
- "add-on-text": !1,
376
- "date-picker": !1,
377
- "info-icon": !1,
378
- "show-end-icon": !1,
379
- "pre-icon": !1,
380
- "is-disabled": !u.value,
381
- label: "Funktionalitäten nennen",
382
- placeholder: "Nennen Sie eine Funktionalität.",
383
- "initial-hint-text": !1
384
- }, i(ot)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
385
- s("div", Ut, [
386
- a(f, {
387
- "button-text": "Funktionalität hinzufügen",
388
- size: "medium",
389
- variant: "tertiary",
390
- "icon-start": "plus",
391
- disabled: !u.value,
392
- onClick: i(se)
393
- }, null, 8, ["disabled", "onClick"])
394
- ])
287
+ i("section", wn, [
288
+ n[17] || (n[17] = i("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
289
+ n[18] || (n[18] = i("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
290
+ r(mn, {
291
+ modelValue: l(S),
292
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => Z(S) ? S.value = e : null),
293
+ options: Me.value,
294
+ disabled: !a.value
295
+ }, null, 8, ["modelValue", "options", "disabled"])
395
296
  ]),
396
- s("section", At, [
397
- t[24] || (t[24] = s("h5", null, "Beschreibung der Nutzung (optional)", -1)),
398
- s("div", Dt, [
399
- a(Ie, y({
400
- modelValue: i($),
401
- "onUpdate:modelValue": t[4] || (t[4] = (e) => S($) ? $.value = e : null),
297
+ i("section", gn, [
298
+ n[21] || (n[21] = i("h5", null, "Beschreibung der Nutzung (optional)", -1)),
299
+ i("div", kn, [
300
+ r(cn, E({
301
+ modelValue: l(I),
302
+ "onUpdate:modelValue": n[2] || (n[2] = (e) => Z(I) ? I.value = e : null),
402
303
  label: "",
403
304
  placeholder: "Beschreiben Sie in ein paar Sätzen, wie Sie die Hardware eingesetzt haben.",
404
- "is-disabled": !u.value
405
- }, i(Ee), {
406
- max: W,
305
+ "is-disabled": !a.value
306
+ }, l(xe), {
307
+ max: A,
407
308
  validation: "required|length:0,500",
408
309
  hint: "true",
409
- "hint-message": `${mt.value} von ${W} Zeichen`,
310
+ "hint-message": `${Ke.value} von ${A} Zeichen`,
410
311
  "count-hint": !0
411
312
  }), null, 16, ["modelValue", "is-disabled", "hint-message"]),
412
- a(Vt, { variant: "default" }, {
413
- icon: v(() => [
414
- a(i(yt), {
313
+ r(an, { variant: "default" }, {
314
+ icon: h(() => [
315
+ r(l(on), {
415
316
  size: 32,
416
317
  color: "#009fe3"
417
318
  })
418
319
  ]),
419
- title: v(() => t[22] || (t[22] = [
420
- kt(" Beispiel ", -1)
320
+ title: h(() => n[19] || (n[19] = [
321
+ nn(" Beispiel ", -1)
421
322
  ])),
422
- default: v(() => [
423
- t[23] || (t[23] = s("div", { class: "copy-large-regular" }, [
424
- s("p", null, " Der eingesetzte Pegelstandssensor misst kontinuierlich den Wasserstand der Elbe und überträgt die Daten für Prognoseberechnungen an das digitale Modell. ")
323
+ default: h(() => [
324
+ n[20] || (n[20] = i("div", { class: "copy-large-regular" }, [
325
+ i("p", null, " Der eingesetzte Pegelstandssensor misst kontinuierlich den Wasserstand der Elbe und überträgt die Daten für Prognoseberechnungen an das digitale Modell. ")
425
326
  ], -1))
426
327
  ]),
427
328
  _: 1,
428
- __: [23]
329
+ __: [20]
429
330
  })
430
331
  ])
431
332
  ]),
432
- s("section", _t, [
433
- t[25] || (t[25] = s("h5", null, "Host-Plattform (optional)", -1)),
434
- t[26] || (t[26] = s("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
435
- (d(!0), p(k, null, F(i(ee), (e, l) => (d(), z(B, {
333
+ i("section", yn, [
334
+ n[22] || (n[22] = i("h5", null, "Host-Plattform (optional)", -1)),
335
+ n[23] || (n[23] = i("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
336
+ (d(!0), m(k, null, B(l(T), (e, o) => (d(), y(x, {
436
337
  key: e.key,
437
- onDelete: (r) => i(Ye)(l)
338
+ onDelete: (u) => l(We)(o)
438
339
  }, {
439
- default: v(() => [
440
- a(Y, {
340
+ default: h(() => [
341
+ r(he, {
441
342
  modelValue: e.value,
442
- "onUpdate:modelValue": (r) => e.value = r,
443
- options: De,
343
+ "onUpdate:modelValue": (u) => e.value = u,
344
+ name: `isHostedBy[${o}]`,
345
+ options: Se,
444
346
  label: "Host-Plattform",
445
347
  placeholder: "Wählen Sie eine Host-Plattform.",
446
- disabled: !u.value
447
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])
348
+ disabled: !a.value,
349
+ form: l(v)
350
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "disabled", "form"])
448
351
  ]),
449
352
  _: 2
450
353
  }, 1032, ["onDelete"]))), 128)),
451
- i(ee).length === 0 ? (d(), p("div", Lt, [
452
- a(f, {
354
+ l(T).length === 0 ? (d(), m("div", zn, [
355
+ r(p, {
453
356
  "button-text": "Host-Plattform hinzufügen",
454
357
  size: "medium",
455
358
  variant: "tertiary",
456
359
  "icon-start": "plus",
457
- disabled: !u.value,
458
- onClick: t[5] || (t[5] = (e) => u.value && i(Je)(""))
360
+ disabled: !a.value,
361
+ onClick: n[3] || (n[3] = (e) => a.value && l(Re)(""))
459
362
  }, null, 8, ["disabled"])
460
- ])) : w("", !0)
363
+ ])) : g("", !0)
461
364
  ]),
462
- w("", !0),
463
- s("section", Zt, [
464
- t[30] || (t[30] = s("h5", null, "Zweck (optional)", -1)),
465
- t[31] || (t[31] = s("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
466
- D.value ? (d(), p("div", Wt, [
467
- (d(!0), p(k, null, F(i(h), (e, l) => (d(), p("div", {
468
- key: `zweck-${l}`,
365
+ g("", !0),
366
+ i("section", Sn, [
367
+ n[27] || (n[27] = i("h5", null, "Zweck (optional)", -1)),
368
+ n[28] || (n[28] = i("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
369
+ $.value ? (d(), m("div", Vn, [
370
+ (d(!0), m(k, null, B(l(f), (e, o) => (d(), m("div", {
371
+ key: `zweck-${o}`,
469
372
  class: "functionalities"
470
373
  }, [
471
- Se(s("input", y({
374
+ tn(i("input", E({
472
375
  id: `zweck-${e}`,
473
- "onUpdate:modelValue": t[7] || (t[7] = (r) => S(h) ? h.value = r : null),
376
+ "onUpdate:modelValue": n[5] || (n[5] = (u) => Z(f) ? f.value = u : null),
474
377
  hidden: "",
475
378
  value: e,
476
379
  name: "selectedForProperties",
477
380
  type: "checkbox"
478
- }, { ref_for: !0 }, i(Re)), null, 16, Rt), [
479
- [ze, i(h)]
381
+ }, { ref_for: !0 }, l(Pe)), null, 16, Hn), [
382
+ [ln, l(f)]
480
383
  ]),
481
- a(Ve, {
384
+ r(un, {
482
385
  as: "label",
483
386
  for: `zweck-${e}`,
484
387
  text: e,
@@ -493,255 +396,251 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
493
396
  "select-value": !0
494
397
  }, null, 8, ["for", "text", "data"])
495
398
  ]))), 128))
496
- ])) : w("", !0),
497
- _.value && !D.value ? (d(), z(B, {
399
+ ])) : g("", !0),
400
+ D.value && !$.value ? (d(), y(x, {
498
401
  key: 1,
499
- onDelete: dt
402
+ onDelete: Oe
500
403
  }, {
501
- actions: v(() => [
502
- s("div", Et, [
503
- s("div", Nt, [
504
- a(f, {
404
+ actions: h(() => [
405
+ i("div", Bn, [
406
+ i("div", Pn, [
407
+ r(p, {
505
408
  "button-text": "Zweck hinzufügen",
506
409
  size: "medium",
507
410
  variant: "tertiary",
508
411
  "icon-start": "plus",
509
- disabled: !u.value,
510
- onClick: i(oe)
412
+ disabled: !a.value,
413
+ onClick: l(J)
511
414
  }, null, 8, ["disabled", "onClick"])
512
415
  ]),
513
- s("div", Gt, [
514
- a(f, {
416
+ i("div", xn, [
417
+ r(p, {
515
418
  "button-text": "Löschen",
516
419
  size: "small",
517
420
  variant: "tertiary",
518
421
  "icon-start": "trash",
519
- onClick: pt
422
+ onClick: je
520
423
  })
521
424
  ])
522
425
  ])
523
426
  ]),
524
- default: v(() => [
525
- a(Y, y({
526
- modelValue: i(A),
527
- "onUpdate:modelValue": t[8] || (t[8] = (e) => S(A) ? A.value = e : null),
528
- options: et.value,
529
- "error-message": i(M).zweckSelect,
427
+ default: h(() => [
428
+ r(he, {
429
+ modelValue: M.value,
430
+ "onUpdate:modelValue": n[6] || (n[6] = (e) => M.value = e),
431
+ name: "zweckSelect",
432
+ options: Ne.value,
530
433
  label: "Zweck auswählen",
531
434
  placeholder: "Wählen Sie einen Zweck.",
532
- disabled: !u.value || D.value
533
- }, i(at)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
534
- t[29] || (t[29] = s("h5", null, "oder", -1)),
535
- a(V, y({
536
- modelValue: i(K),
537
- "onUpdate:modelValue": t[9] || (t[9] = (e) => S(K) ? K.value = e : null),
538
- error_message: i(M).zweckInput,
539
- "show-error": !!i(M).zweckInput,
435
+ disabled: !a.value || $.value,
436
+ form: l(_)
437
+ }, null, 8, ["modelValue", "options", "disabled", "form"]),
438
+ n[26] || (n[26] = i("h5", null, "oder", -1)),
439
+ r(V, {
440
+ modelValue: q.value,
441
+ "onUpdate:modelValue": n[7] || (n[7] = (e) => q.value = e),
442
+ name: "zweckInput",
540
443
  "add-on-text": !1,
541
444
  "date-picker": !1,
542
445
  "info-icon": !1,
543
446
  "show-end-icon": !1,
544
447
  "pre-icon": !1,
545
- "is-disabled": !u.value || D.value,
448
+ "is-disabled": !a.value || $.value,
546
449
  label: "Zweck nennen",
547
450
  placeholder: "Nennen Sie einen Zweck.",
548
- "initial-hint-text": !1
549
- }, i(ut)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"])
451
+ "initial-hint-text": !1,
452
+ form: l(_)
453
+ }, null, 8, ["modelValue", "is-disabled", "form"])
550
454
  ]),
551
455
  _: 1,
552
- __: [29]
553
- })) : w("", !0),
554
- s("div", Tt, [
555
- _.value ? w("", !0) : (d(), z(f, {
456
+ __: [26]
457
+ })) : g("", !0),
458
+ i("div", Cn, [
459
+ D.value ? g("", !0) : (d(), y(p, {
556
460
  key: 0,
557
461
  "button-text": "Zweck hinzufügen",
558
462
  size: "medium",
559
463
  variant: "tertiary",
560
464
  "icon-start": "plus",
561
- disabled: !u.value,
562
- onClick: t[10] || (t[10] = (e) => u.value && (_.value = !0))
465
+ disabled: !a.value,
466
+ onClick: n[8] || (n[8] = (e) => a.value && (D.value = !0))
563
467
  }, null, 8, ["disabled"]))
564
468
  ])
565
469
  ]),
566
- s("section", Mt, [
567
- t[32] || (t[32] = s("h5", null, "Standort (optional)", -1)),
568
- t[33] || (t[33] = s("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
569
- (d(!0), p(k, null, F(i(Te), (e, l) => (d(), z(B, {
470
+ i("section", In, [
471
+ n[29] || (n[29] = i("h5", null, "Standort (optional)", -1)),
472
+ n[30] || (n[30] = i("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
473
+ (d(!0), m(k, null, B(l(Ue), (e, o) => (d(), y(x, {
570
474
  key: e.key,
571
- onDelete: (r) => i(Ne)(l)
475
+ onDelete: (u) => l(Ce)(o)
572
476
  }, {
573
- default: v(() => [
574
- a(V, {
477
+ default: h(() => [
478
+ r(V, {
575
479
  modelValue: e.value.lat,
576
- "onUpdate:modelValue": (r) => e.value.lat = r,
480
+ "onUpdate:modelValue": (u) => e.value.lat = u,
481
+ name: `locations[${o}].lat`,
577
482
  "add-on-text": !1,
578
483
  "date-picker": !1,
579
484
  "info-icon": !1,
580
485
  "show-end-icon": !1,
581
486
  "pre-icon": !1,
582
- "is-disabled": !u.value,
583
- "initial-hint-text": !!i(c)[`locations[${l}].lat`],
487
+ "is-disabled": !a.value,
584
488
  label: "Latitude / Breite",
585
489
  placeholder: "Geben Sie die Ortskoordinate Latitude an.",
586
- "show-error": !!i(c)[`locations[${l}].lat`],
587
- error_message: i(c)[`locations[${l}].lat`]
588
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "initial-hint-text", "show-error", "error_message"]),
589
- a(V, {
490
+ form: l(v)
491
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
492
+ r(V, {
590
493
  modelValue: e.value.lng,
591
- "onUpdate:modelValue": (r) => e.value.lng = r,
494
+ "onUpdate:modelValue": (u) => e.value.lng = u,
495
+ name: `locations[${o}].lng`,
592
496
  "add-on-text": !1,
593
497
  "date-picker": !1,
594
498
  "info-icon": !1,
595
499
  "show-end-icon": !1,
596
500
  "pre-icon": !1,
597
- "is-disabled": !u.value,
501
+ "is-disabled": !a.value,
598
502
  label: "Longitude / Länge",
599
- "initial-hint-text": !!i(c)[`locations[${l}].lng`],
600
503
  placeholder: "Geben Sie die Ortskoordinate Longitude an.",
601
- "show-error": !!i(c)[`locations[${l}].lng`],
602
- error_message: i(c)[`locations[${l}].lng`]
603
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "initial-hint-text", "show-error", "error_message"])
504
+ form: l(v)
505
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
604
506
  ]),
605
507
  _: 2
606
508
  }, 1032, ["onDelete"]))), 128)),
607
- s("div", Ot, [
608
- a(f, {
509
+ i("div", Un, [
510
+ r(p, {
609
511
  "button-text": "Standort hinzufügen",
610
512
  size: "medium",
611
513
  variant: "tertiary",
612
514
  "icon-start": "plus",
613
- disabled: !u.value,
614
- onClick: t[11] || (t[11] = (e) => u.value && i(Ge)({ lat: "", lng: "" }))
515
+ disabled: !a.value,
516
+ onClick: n[9] || (n[9] = (e) => a.value && l(Ie)({ lat: "", lng: "" }))
615
517
  }, null, 8, ["disabled"])
616
518
  ])
617
519
  ]),
618
- s("section", jt, [
619
- t[34] || (t[34] = s("h5", null, "Darstellungen (optional)", -1)),
620
- t[35] || (t[35] = s("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
621
- (d(!0), p(k, null, F(i(je), (e, l) => (d(), z(B, {
520
+ i("section", $n, [
521
+ n[31] || (n[31] = i("h5", null, "Darstellungen (optional)", -1)),
522
+ n[32] || (n[32] = i("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
523
+ (d(!0), m(k, null, B(l(Fe), (e, o) => (d(), y(x, {
622
524
  key: e.key,
623
- onDelete: (r) => i(Me)(l)
525
+ onDelete: (u) => l($e)(o)
624
526
  }, {
625
- default: v(() => [
626
- a(V, {
527
+ default: h(() => [
528
+ r(V, {
627
529
  modelValue: e.value,
628
- "onUpdate:modelValue": (r) => e.value = r,
530
+ "onUpdate:modelValue": (u) => e.value = u,
531
+ name: `depictions[${o}]`,
629
532
  "add-on-text": !1,
630
533
  "date-picker": !1,
631
534
  "info-icon": !1,
632
535
  "show-end-icon": !1,
633
536
  "pre-icon": !1,
634
- "is-disabled": !u.value,
537
+ "is-disabled": !a.value,
635
538
  "input-type": "url",
636
539
  label: "URL",
637
540
  placeholder: "https://www.url.com",
638
- "initial-hint-text": !1
639
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled"])
541
+ form: l(v)
542
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
640
543
  ]),
641
544
  _: 2
642
545
  }, 1032, ["onDelete"]))), 128)),
643
- s("div", Kt, [
644
- a(f, {
546
+ i("div", Dn, [
547
+ r(p, {
645
548
  "button-text": "Darstellung hinzufügen",
646
549
  size: "medium",
647
550
  variant: "tertiary",
648
551
  "icon-start": "plus",
649
- disabled: !u.value,
650
- onClick: t[12] || (t[12] = (e) => u.value && i(Oe)(""))
552
+ disabled: !a.value,
553
+ onClick: n[10] || (n[10] = (e) => a.value && l(De)(""))
651
554
  }, null, 8, ["disabled"])
652
555
  ])
653
556
  ]),
654
- s("section", qt, [
655
- t[36] || (t[36] = s("h5", null, "Weiterführende Links (optional)", -1)),
656
- t[37] || (t[37] = s("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
657
- (d(!0), p(k, null, F(i(Qe), (e, l) => (d(), z(B, {
557
+ i("section", Fn, [
558
+ n[33] || (n[33] = i("h5", null, "Weiterführende Links (optional)", -1)),
559
+ n[34] || (n[34] = i("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
560
+ (d(!0), m(k, null, B(l(Ae), (e, o) => (d(), y(x, {
658
561
  key: e.key,
659
- onDelete: (r) => i(Ke)(l)
562
+ onDelete: (u) => l(Le)(o)
660
563
  }, {
661
- default: v(() => [
662
- a(V, {
564
+ default: h(() => [
565
+ r(V, {
663
566
  modelValue: e.value.name,
664
- "onUpdate:modelValue": (r) => e.value.name = r,
567
+ "onUpdate:modelValue": (u) => e.value.name = u,
568
+ name: `references[${o}].name`,
665
569
  "add-on-text": !1,
666
570
  "date-picker": !1,
667
571
  "info-icon": !1,
668
572
  "show-end-icon": !1,
669
573
  "pre-icon": !1,
670
- "is-disabled": !u.value,
574
+ "is-disabled": !a.value,
671
575
  label: "Name",
672
576
  placeholder: "Benennen Sie den Link.",
673
- error_message: i(c)[`references[${l}].name`],
674
- "show-error": !!i(c)[`references[${l}].name`],
675
- "initial-hint-text": !!i(c)[`references[${l}].name`]
676
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "error_message", "show-error", "initial-hint-text"]),
677
- a(V, {
577
+ form: l(v)
578
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
579
+ r(V, {
678
580
  modelValue: e.value.url,
679
- "onUpdate:modelValue": (r) => e.value.url = r,
581
+ "onUpdate:modelValue": (u) => e.value.url = u,
582
+ name: `references[${o}].url`,
680
583
  "add-on-text": !1,
681
584
  "date-picker": !1,
682
585
  "info-icon": !1,
683
586
  "show-end-icon": !1,
684
587
  "pre-icon": !1,
685
- "is-disabled": !u.value,
588
+ "is-disabled": !a.value,
686
589
  "input-type": "url",
687
590
  label: "URL",
688
591
  placeholder: "https://www.url.com",
689
- error_message: i(c)[`references[${l}].url`],
690
- "show-error": !!i(c)[`references[${l}].url`],
691
- "initial-hint-text": !!i(c)[`references[${l}].url`]
692
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "error_message", "show-error", "initial-hint-text"]),
693
- a(Ie, {
592
+ form: l(v)
593
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
594
+ r(dn, {
694
595
  modelValue: e.value.description,
695
- "onUpdate:modelValue": (r) => e.value.description = r,
596
+ "onUpdate:modelValue": (u) => e.value.description = u,
597
+ name: `references[${o}].description`,
696
598
  label: "Beschreibung (optional)",
697
599
  placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
698
- error_message: i(c)[`references[${l}].description`],
699
- "show-error": !!i(c)[`references[${l}].description`],
700
- "initial-hint-text": !!i(c)[`references[${l}].description`],
701
- "is-disabled": !u.value,
702
- max: W,
703
- validation: "required|length:0,500",
600
+ "is-disabled": !a.value,
601
+ max: A,
704
602
  hint: "true",
705
- "hint-message": `${ft(e)} von ${W} Zeichen`,
706
- "count-hint": !0
707
- }, null, 8, ["modelValue", "onUpdate:modelValue", "error_message", "show-error", "initial-hint-text", "is-disabled", "hint-message"])
603
+ "hint-message": `${qe(e)} von ${A} Zeichen`,
604
+ "count-hint": !0,
605
+ form: l(v)
606
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "hint-message", "form"])
708
607
  ]),
709
608
  _: 2
710
609
  }, 1032, ["onDelete"]))), 128)),
711
- s("div", Qt, [
712
- a(f, {
610
+ i("div", Ln, [
611
+ r(p, {
713
612
  "button-text": "Link hinzufügen",
714
613
  size: "medium",
715
614
  variant: "tertiary",
716
615
  "icon-start": "plus",
717
- disabled: !u.value,
718
- onClick: t[13] || (t[13] = (e) => u.value && i(qe)({ name: "", url: "", description: "" }))
616
+ disabled: !a.value,
617
+ onClick: n[11] || (n[11] = (e) => a.value && l(Ze)({ name: "", url: "", description: "" }))
719
618
  }, null, 8, ["disabled"])
720
619
  ])
721
620
  ]),
722
- s("section", Yt, [
723
- H ? (d(), p("div", Jt, [
724
- a(f, {
621
+ i("section", Zn, [
622
+ H ? (d(), m("div", An, [
623
+ r(p, {
725
624
  "button-text": "Abbrechen",
726
625
  variant: "tertiary",
727
- onClick: t[14] || (t[14] = (e) => R("close"))
626
+ onClick: n[12] || (n[12] = (e) => W("close"))
728
627
  }),
729
- a(f, {
628
+ r(p, {
730
629
  "button-text": "Speichern",
731
- disabled: !u.value || !te.value,
732
- onClick: i(le)
630
+ disabled: !a.value || !j.value,
631
+ onClick: l(Q)
733
632
  }, null, 8, ["disabled", "onClick"])
734
- ])) : (d(), z(f, {
633
+ ])) : (d(), y(p, {
735
634
  key: 1,
736
635
  "icon-start": "PlusSquare",
737
636
  "button-text": "Hardware hinzufügen",
738
- disabled: !u.value || !te.value,
739
- onClick: i(le)
637
+ disabled: !a.value || !j.value,
638
+ onClick: l(Q)
740
639
  }, null, 8, ["disabled", "onClick"]))
741
640
  ])
742
641
  ]));
743
642
  }
744
643
  });
745
644
  export {
746
- bn as default
645
+ lt as default
747
646
  };