@piveau/dpi 0.2.0-alpha.48 → 0.2.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +64 -49
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +129 -98
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +137 -124
- package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +161 -130
- package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/composables/useOrganizationInfo.js +48 -0
- package/package.json +1 -1
|
@@ -1,206 +1,237 @@
|
|
|
1
|
-
import { ref as m, computed as
|
|
2
|
-
import k from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
3
|
-
import W from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
1
|
+
import { ref as m, computed as W, watch as L, createElementBlock as u, openBlock as d, createElementVNode as i, createCommentVNode as v, toDisplayString as p, createVNode as f, Fragment as K, renderList as N, unref as h } from "vue";
|
|
4
2
|
import { PhWarning as g } from "@phosphor-icons/vue";
|
|
3
|
+
import { useOrganizationInfo as j } from "../composables/useOrganizationInfo.js";
|
|
4
|
+
import { useTwinbyUser as A } from "../composables/useTwinbyUser.js";
|
|
5
|
+
import V from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
6
|
+
import M from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
5
7
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { useEditModeInfo as
|
|
8
|
-
const
|
|
8
|
+
import q from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
import { useEditModeInfo as G } from "../composables/useDpiEditMode.js";
|
|
10
|
+
const H = { class: "dpiV3InnerComponentWrap" }, J = { class: "copy-large-regular" }, Q = { class: "dpiV3AutoCompleteWrap" }, X = { class: "firstRow" }, Y = { class: "secondRow" }, Z = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "copy-small-regular"
|
|
13
|
+
}, ee = {
|
|
14
|
+
key: 2,
|
|
15
|
+
class: "copy-small-regular"
|
|
16
|
+
}, ae = { class: "input-container" }, te = {
|
|
9
17
|
key: 0,
|
|
10
18
|
class: "dpiV3_errormsgWrapper"
|
|
11
|
-
},
|
|
19
|
+
}, le = { class: "copy-mini-regular" }, se = { class: "input-container" }, oe = {
|
|
12
20
|
key: 0,
|
|
13
21
|
class: "dpiV3_errormsgWrapper"
|
|
14
|
-
},
|
|
22
|
+
}, ie = { class: "copy-mini-regular" }, ne = { class: "input-container" }, re = {
|
|
15
23
|
key: 0,
|
|
16
24
|
class: "dpiV3_errormsgWrapper"
|
|
17
|
-
},
|
|
25
|
+
}, ue = { class: "copy-mini-regular" }, de = { class: "copy-large-regular" }, fe = {
|
|
18
26
|
key: 0,
|
|
19
27
|
class: "form-error-message"
|
|
20
|
-
},
|
|
28
|
+
}, pe = {
|
|
21
29
|
__name: "PublisherPage",
|
|
22
30
|
props: {
|
|
23
31
|
context: Object
|
|
24
32
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const b =
|
|
33
|
+
setup(B) {
|
|
34
|
+
const b = B, { isEditMode: E } = G(), { organization: P, authToken: R, startFetchPermissions: S } = A();
|
|
35
|
+
S();
|
|
36
|
+
const { resultEnhanced: w, isLoading: O, isFetching: U } = j({
|
|
37
|
+
id: P,
|
|
38
|
+
authToken: R
|
|
39
|
+
});
|
|
27
40
|
let s = m({ 1: !1, 2: !1, 3: !1 });
|
|
28
|
-
const
|
|
29
|
-
var
|
|
30
|
-
const e = (
|
|
31
|
-
if (e)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
const _ = m(null), y = m(null), z = W(() => O.value || U.value), r = W(() => {
|
|
42
|
+
var t, o, D;
|
|
43
|
+
const e = (t = w.value) == null ? void 0 : t.publisher;
|
|
44
|
+
if (!e)
|
|
45
|
+
return {};
|
|
46
|
+
const a = {
|
|
47
|
+
organization: e.name || ((o = w.value) == null ? void 0 : o.title) || ((D = w.value) == null ? void 0 : D.id)
|
|
48
|
+
};
|
|
49
|
+
if (e.email && (a.email = e.email), e.homepage) {
|
|
50
|
+
const I = e.homepage.startsWith("http") ? e.homepage : `https://${e.homepage}`;
|
|
51
|
+
a.website = I;
|
|
36
52
|
}
|
|
37
|
-
return
|
|
38
|
-
}),
|
|
53
|
+
return a;
|
|
54
|
+
}), n = m([
|
|
39
55
|
{ isValid: "unset", "foaf:name": "", "foaf:mbox": "", "foaf:homepage": "" }
|
|
40
|
-
]),
|
|
56
|
+
]), l = m({
|
|
41
57
|
1: { show: !1, message: "Bitte geben Sie einen gültigen Organisationsnamen ein." },
|
|
42
58
|
2: { show: !1, message: "Bitte geben Sie eine gültige E-Mail-Adresse ein." },
|
|
43
59
|
3: { show: !1, message: "Bitte geben Sie eine gültige URL ein." }
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
});
|
|
61
|
+
function $(e) {
|
|
62
|
+
return e.trim().length >= 2;
|
|
63
|
+
}
|
|
64
|
+
function x(e) {
|
|
65
|
+
return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
|
|
66
|
+
}
|
|
67
|
+
function T(e) {
|
|
68
|
+
return /^([a-z0-9]([a-z0-9\-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i.test(e);
|
|
69
|
+
}
|
|
70
|
+
E.value || b.context.node.input(n);
|
|
71
|
+
function k(e, a, t) {
|
|
72
|
+
let o = !1;
|
|
48
73
|
if (e.trim() === "")
|
|
49
|
-
|
|
74
|
+
l.value[t].show = !1, s.value[t] = !1;
|
|
50
75
|
else {
|
|
51
76
|
switch (a) {
|
|
52
77
|
case "foaf:name":
|
|
53
|
-
|
|
78
|
+
o = $(e);
|
|
54
79
|
break;
|
|
55
80
|
case "foaf:mbox":
|
|
56
|
-
|
|
81
|
+
o = x(e);
|
|
57
82
|
break;
|
|
58
83
|
case "foaf:homepage":
|
|
59
|
-
|
|
84
|
+
o = T(e);
|
|
60
85
|
break;
|
|
61
86
|
default:
|
|
62
|
-
|
|
87
|
+
o = e.trim() !== "";
|
|
63
88
|
}
|
|
64
|
-
|
|
89
|
+
l.value[t].show = !o, s.value[t] = o;
|
|
65
90
|
}
|
|
66
|
-
s.value[1] && s.value[2] && s.value[3] ?
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
91
|
+
s.value[1] && s.value[2] && s.value[3] ? n.value[0].isValid = !0 : n.value[0].isValid = "unset";
|
|
92
|
+
}
|
|
93
|
+
function c(e, a, t) {
|
|
94
|
+
n.value = n.value.map((o) => a in o ? { ...o, [a]: e } : o), b.context.node.value.length === 0 && b.context.node.input(n.value), t === 2 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
95
|
+
k(e, a, t);
|
|
96
|
+
}, 800)) : t === 3 ? (y.value && clearTimeout(y.value), y.value = setTimeout(() => {
|
|
97
|
+
k(e, a, t);
|
|
98
|
+
}, 800)) : k(e, a, t);
|
|
99
|
+
}
|
|
100
|
+
function C() {
|
|
101
|
+
const e = n.value[0];
|
|
75
102
|
if (e["foaf:name"].trim() === "")
|
|
76
|
-
|
|
103
|
+
l.value[1].show = !0, s.value[1] = !1;
|
|
77
104
|
else {
|
|
78
|
-
const a =
|
|
79
|
-
|
|
105
|
+
const a = $(e["foaf:name"]);
|
|
106
|
+
l.value[1].show = !a, s.value[1] = a;
|
|
80
107
|
}
|
|
81
108
|
if (e["foaf:mbox"].trim() === "")
|
|
82
|
-
|
|
109
|
+
l.value[2].show = !0, s.value[2] = !1;
|
|
83
110
|
else {
|
|
84
|
-
const a =
|
|
85
|
-
|
|
111
|
+
const a = x(e["foaf:mbox"]);
|
|
112
|
+
l.value[2].show = !a, s.value[2] = a;
|
|
86
113
|
}
|
|
87
114
|
if (e["foaf:homepage"].trim() === "")
|
|
88
|
-
|
|
115
|
+
l.value[3].show = !0, s.value[3] = !1;
|
|
89
116
|
else {
|
|
90
|
-
const a =
|
|
91
|
-
|
|
117
|
+
const a = T(e["foaf:homepage"]);
|
|
118
|
+
l.value[3].show = !a, s.value[3] = a;
|
|
92
119
|
}
|
|
93
|
-
s.value[1] && s.value[2] && s.value[3] ?
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
console.log("Overall validity changed:", e), e === !1 &&
|
|
120
|
+
s.value[1] && s.value[2] && s.value[3] ? n.value[0].isValid = !0 : n.value[0].isValid = !1, console.log("Validation states:", s.value), console.log("Validation errors:", l.value);
|
|
121
|
+
}
|
|
122
|
+
L(() => n.value[0].isValid, (e) => {
|
|
123
|
+
console.log("Overall validity changed:", e), e === !1 && C();
|
|
97
124
|
});
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
let e =
|
|
101
|
-
e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)),
|
|
125
|
+
function F() {
|
|
126
|
+
if (r.value && (r.value.organization && c(r.value.organization, "foaf:name", 1), r.value.email && c(r.value.email, "foaf:mbox", 2), r.value.website)) {
|
|
127
|
+
let e = r.value.website;
|
|
128
|
+
e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)), c(e, "foaf:homepage", 3);
|
|
102
129
|
}
|
|
103
|
-
}
|
|
104
|
-
return (e, a) => (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
a[3] || (a[3] =
|
|
110
|
-
|
|
130
|
+
}
|
|
131
|
+
return (e, a) => (d(), u("div", H, [
|
|
132
|
+
i("h4", null, p(e.$t("message.dataupload.datasets.dct:publisher.title")), 1),
|
|
133
|
+
i("div", J, p(e.$t("message.dataupload.datasets.dct:publisher.description")), 1),
|
|
134
|
+
i("div", Q, [
|
|
135
|
+
i("div", X, [
|
|
136
|
+
a[3] || (a[3] = i("div", null, [
|
|
137
|
+
i("span", { class: "copy-small-semi-bold" }, "Konto")
|
|
111
138
|
], -1)),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
139
|
+
f(M, {
|
|
140
|
+
"button-text": "Diese Details verwenden",
|
|
141
|
+
"icon-start": "true",
|
|
142
|
+
"icon-name": "copy",
|
|
143
|
+
disabled: z.value || Object.keys(r.value).length === 0,
|
|
144
|
+
onClick: F
|
|
145
|
+
}, null, 8, ["disabled"])
|
|
118
146
|
]),
|
|
119
|
-
|
|
120
|
-
(
|
|
147
|
+
i("div", Y, [
|
|
148
|
+
z.value ? (d(), u("span", Z, "Lade Kontodaten...")) : Object.keys(r.value).length > 0 ? (d(!0), u(K, { key: 1 }, N(r.value, (t, o) => (d(), u("span", {
|
|
149
|
+
key: o,
|
|
150
|
+
class: "copy-small-regular"
|
|
151
|
+
}, p(t), 1))), 128)) : (d(), u("span", ee, "Keine Kontodaten verfügbar"))
|
|
121
152
|
])
|
|
122
153
|
]),
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
infoIcon: !1,
|
|
154
|
+
i("div", ae, [
|
|
155
|
+
f(V, {
|
|
156
|
+
"model-value": n.value[0]["foaf:name"],
|
|
157
|
+
"add-on-text": !1,
|
|
158
|
+
"date-picker": !1,
|
|
159
|
+
"info-icon": !1,
|
|
130
160
|
placeholder: e.$t("message.dataupload.datasets.dct:publisher.nameInput.placeholder"),
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
161
|
+
"pre-icon": !1,
|
|
162
|
+
"input-field-size": "large",
|
|
163
|
+
"initial-hint-text": !1,
|
|
134
164
|
label: e.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
165
|
+
"show-end-icon": !1,
|
|
166
|
+
"show-error": l.value[1].show,
|
|
167
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => c(t, "foaf:name", 1))
|
|
168
|
+
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
169
|
+
l.value[1].show ? (d(), u("div", te, [
|
|
170
|
+
f(h(g), {
|
|
140
171
|
size: 16,
|
|
141
172
|
weight: "fill"
|
|
142
173
|
}),
|
|
143
|
-
|
|
174
|
+
i("span", le, p(l.value[1].message), 1)
|
|
144
175
|
])) : v("", !0)
|
|
145
176
|
]),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
infoIcon: !1,
|
|
177
|
+
i("div", se, [
|
|
178
|
+
f(V, {
|
|
179
|
+
"model-value": n.value[0]["foaf:mbox"],
|
|
180
|
+
"add-on-text": !1,
|
|
181
|
+
"date-picker": !1,
|
|
182
|
+
"info-icon": !1,
|
|
153
183
|
placeholder: e.$t("message.dataupload.datasets.dct:publisher.mailInput.placeholder"),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
184
|
+
"pre-icon": !1,
|
|
185
|
+
"input-field-size": "large",
|
|
186
|
+
"initial-hint-text": !1,
|
|
187
|
+
"show-error": l.value[2].show,
|
|
158
188
|
label: e.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
189
|
+
"show-end-icon": !1,
|
|
190
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => c(t, "foaf:mbox", 2))
|
|
191
|
+
}, null, 8, ["model-value", "placeholder", "show-error", "label"]),
|
|
192
|
+
l.value[2].show ? (d(), u("div", oe, [
|
|
193
|
+
f(h(g), {
|
|
163
194
|
size: 16,
|
|
164
195
|
weight: "fill"
|
|
165
196
|
}),
|
|
166
|
-
|
|
197
|
+
i("span", ie, p(l.value[2].message), 1)
|
|
167
198
|
])) : v("", !0)
|
|
168
199
|
]),
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
infoIcon: !1,
|
|
200
|
+
i("div", ne, [
|
|
201
|
+
f(V, {
|
|
202
|
+
"model-value": n.value[0]["foaf:homepage"],
|
|
203
|
+
"add-on-text": !0,
|
|
204
|
+
"date-picker": !1,
|
|
205
|
+
"info-icon": !1,
|
|
176
206
|
placeholder: e.$t("message.dataupload.datasets.dct:publisher.websiteInput.placeholder"),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
207
|
+
"pre-icon": !1,
|
|
208
|
+
"input-field-size": "large",
|
|
209
|
+
"initial-hint-text": !1,
|
|
210
|
+
"add-on-leading-text": "https://",
|
|
181
211
|
label: e.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
212
|
+
"show-end-icon": !1,
|
|
213
|
+
"show-error": l.value[3].show,
|
|
214
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => c(t, "foaf:homepage", 3))
|
|
215
|
+
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
216
|
+
l.value[3].show ? (d(), u("div", re, [
|
|
217
|
+
f(h(g), {
|
|
187
218
|
size: 16,
|
|
188
219
|
weight: "fill"
|
|
189
220
|
}),
|
|
190
|
-
|
|
221
|
+
i("span", ue, p(l.value[3].message), 1)
|
|
191
222
|
])) : v("", !0)
|
|
192
223
|
]),
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
224
|
+
i("div", de, p(e.$t("message.dataupload.datasets.dct:publisher.descriptionBottom")), 1),
|
|
225
|
+
n.value.find((t) => t.isValid === !1) ? (d(), u("div", fe, [
|
|
226
|
+
f(h(g), {
|
|
196
227
|
size: 16,
|
|
197
228
|
weight: "fill"
|
|
198
229
|
}),
|
|
199
|
-
a[4] || (a[4] =
|
|
230
|
+
a[4] || (a[4] = i("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
200
231
|
])) : v("", !0)
|
|
201
232
|
]));
|
|
202
233
|
}
|
|
203
|
-
},
|
|
234
|
+
}, ke = /* @__PURE__ */ q(pe, [["__scopeId", "data-v-2e0d13e3"]]);
|
|
204
235
|
export {
|
|
205
|
-
|
|
236
|
+
ke as default
|
|
206
237
|
};
|
|
@@ -52,7 +52,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
|
|
|
52
52
|
validateVisibilitySelection: E,
|
|
53
53
|
canProceed: k
|
|
54
54
|
}), (e, d) => {
|
|
55
|
-
var
|
|
55
|
+
var b, v, y, g, m, f, _, V;
|
|
56
56
|
return r(), n("div", U, [
|
|
57
57
|
t("div", A, [
|
|
58
58
|
i(p) ? P("", !0) : (r(), n(T, { key: 0 }, [
|
|
@@ -98,10 +98,10 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
|
|
|
98
98
|
inputFieldSize: "large",
|
|
99
99
|
modelValue: o.value,
|
|
100
100
|
defaultInput: !0,
|
|
101
|
-
showError: ((g = (y = (
|
|
101
|
+
showError: ((g = (y = (v = (b = i(l)) == null ? void 0 : b.Discoverability) == null ? void 0 : v.visibilityPage) == null ? void 0 : y[0]) == null ? void 0 : g.isValid) === !1,
|
|
102
102
|
required: !0
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
"label-property": "label",
|
|
105
105
|
data: w.value
|
|
106
106
|
}, null, 8, ["modelValue", "input-field-props", "data"])
|
|
107
107
|
]),
|
|
@@ -115,7 +115,7 @@ const U = { class: "dpiV3InnerComponentWrap" }, A = { class: "dpiV3_Frame_840" }
|
|
|
115
115
|
]);
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
}, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-
|
|
118
|
+
}, ri = /* @__PURE__ */ H(ii, [["__scopeId", "data-v-f0c8ab14"]]);
|
|
119
119
|
export {
|
|
120
120
|
ri as default
|
|
121
121
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineHubSearch as I, getTranslationFor as c } from "@piveau/sdk-vue";
|
|
2
|
+
import { computed as T, toValue as U } from "vue";
|
|
3
|
+
import k from "zod";
|
|
4
|
+
import { useRuntimeEnv as C } from "../../composables/useRuntimeEnv.js";
|
|
5
|
+
function _(a) {
|
|
6
|
+
const h = C(), p = a.baseUrl || h.api.baseUrl || "https://twin.bydata.de/api/hub/search/", m = T(() => !!U(a.id).trim()), { useResource: b } = I({
|
|
7
|
+
baseUrl: p,
|
|
8
|
+
index: "catalogue",
|
|
9
|
+
indexDetails: "catalogues",
|
|
10
|
+
schema: k.any()
|
|
11
|
+
}, (e) => {
|
|
12
|
+
var t, s, i, n, r, l, u, d, o;
|
|
13
|
+
const z = {
|
|
14
|
+
name: ((t = e.publisher) == null ? void 0 : t.name) || "",
|
|
15
|
+
email: ((s = e.publisher) == null ? void 0 : s.email) || "",
|
|
16
|
+
homepage: ((i = e.publisher) == null ? void 0 : i.homepage) || "",
|
|
17
|
+
address: {
|
|
18
|
+
street: ((r = (n = e.publisher) == null ? void 0 : n.address) == null ? void 0 : r.street) || "",
|
|
19
|
+
postalCode: ((u = (l = e.publisher) == null ? void 0 : l.address) == null ? void 0 : u.postalCode) || "",
|
|
20
|
+
locality: ((o = (d = e.publisher) == null ? void 0 : d.address) == null ? void 0 : o.locality) || ""
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
id: e.id,
|
|
25
|
+
title: c(e.title || "", ["de", "en"]),
|
|
26
|
+
description: c(e.description || "", ["de", "en"]),
|
|
27
|
+
publisher: z,
|
|
28
|
+
catalogueFavIcon: e.catalogueFavIcon || []
|
|
29
|
+
};
|
|
30
|
+
}), { resultEnhanced: f, isLoading: y, isFetching: v, result: F, isSuccess: x } = b(a.id, {
|
|
31
|
+
queryOptions: {
|
|
32
|
+
enabled: m
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
...a.authToken && { Authorization: `Bearer ${a.authToken}` }
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
resultEnhanced: f,
|
|
40
|
+
isLoading: y,
|
|
41
|
+
isFetching: v,
|
|
42
|
+
result: F,
|
|
43
|
+
isSuccess: x
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
_ as useOrganizationInfo
|
|
48
|
+
};
|