PageSourceSearch

https://intranet.westliches-weserbergland.de/dist/js/ContactRightSettings_BIPzvnsL.min.js

js westliches-weserbergland.de collected 2026-10-02 11:02:56 UTC 10,022 bytes, 289 lines download raw bytes

1(function() {
2	try {
3		var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4		e.SENTRY_RELEASE = { id: "live_2026-10-01-1531" };
5		var t = new e.Error().stack;
6		t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9ce71d9e-7f4b-4a16-b750-e107edea677c", e._sentryDebugIdIdentifier = "sentry-dbid-9ce71d9e-7f4b-4a16-b750-e107edea677c");
7	} catch (e) {}
8})();
9import { E as e, T as t } from "./App_qQfW2uRC.min.js";
10import { $a as n, $r as r, Ba as i, Ga as a, On as o, Za as s, Zi as c, bn as l, ei as u, eo as d, es as f, jc as p, mc as m, ml as h, t as g, xn as _, yn as v } from "./topMessageHandler_CaWydTPF.min.js";
11import { E as y, N as b, R as x, X as S, Y as C, _ as w, d as T, f as E, g as D, l as O, nt as k, u as A, y as j } from "./runtime-core.esm-bundler_DscPLG0X.min.js";
12import { r as M } from "./vuex.esm-bundler_ByHC_Vqx.min.js";
13import { s as N } from "./addresses_BKkK47Xf.min.js";
14import { t as P } from "./FormSteps_CjnQfFbK.min.js";
15//#region src/views/contact/settings/ContactRightSettings.vue?vue&type=script&setup=true&lang.ts
16var F = { class: "button button-save button-inline-block" }, I = { class: "button button-save button-inline-block" }, L = /* @__PURE__ */ j({
17	__name: "ContactRightSettings",
18	setup(j) {
19		let L = M(), R = k(), z = [{
20			value: 0,
21			label: "Nur Modul-Admin"
22		}, {
23			value: 1,
24			label: c("employee") ? "Modul-Admin und andere Mitarbeiter/Abteilung" : "Modul-Admin und andere Nutzer/Nutzergruppen"
25		}], B = k({}), V = k("contact-rights"), H = k(!0), U = k(0), W = k(0), G = () => {
26			H.value = !0, p.get("/contact/settings/settings/type/" + V.value).then(({ data: { data: e } }) => {
27				L.dispatch("form/setFilter", e.filter).then(f), B.value = e.settings, U.value = e.settings.contact_add_right, W.value = e.settings.contact_edit_right;
28			}).catch((e) => {
29				m(e);
30			}).finally(() => {
31				y(() => {
32					H.value = !1;
33				});
34			});
35		}, K = () => {
36			s("/contact/settings/settings/type/" + V.value, d(n(R.value))).then((e) => {
37				g.success(e.message), G();
38			}).catch(console.error);
39		};
40		return G(), (n, s) => {
41			let c = x("interact");
42			return b(), E("form", {
43				ref_key: "form",
44				ref: R,
45				onSubmit: h(K, ["prevent"])
46			}, [H.value ? (b(), A(N, {
47				key: 0,
48				text: "Die Einstellungen werden geladen..."
49			})) : (b(), A(P, {
50				key: 1,
51				"tab-bar-group": "contact-settings-rights-settings",
52				ref: "formSteps",
53				"use-steps": !1
54			}, {
55				default: C(() => [
56					w(v, {
57						group: "contact-settings-rights-settings",
58						"param-name": "tab",
59						class: "no-padding-top hidden"
60					}, {
61						default: C(() => [
62							w(l, {
63								name: "add",
64								group: "contact-settings-rights-settings"
65							}, {
66								default: C(() => [...s[10] || (s[10] = [D("\n                    Kontakte anlegen\n                ", -1)])]),
67								_: 1
68							}),
69							s[12] || (s[12] = D()),
70							w(l, {
71								name: "edit",
72								group: "contact-settings-rights-settings"
73							}, {
74								default: C(() => [...s[11] || (s[11] = [D("\n                    Kontakte bearbeiten\n                ", -1)])]),
75								_: 1
76							})
77						]),
78						_: 1
79					}),
80					s[25] || (s[25] = D()),
81					w(_, {
82						hide: "",
83						name: "add",
84						group: "contact-settings-rights-settings"
85					}, {
86						default: C(() => [w(o, {
87							title: "Rechte: Kontakte anlegen",
88							"title-icon": "people",
89							class: "limited-form-row"
90						}, {
91							default: C(() => [
92								w(a, {
93									label: "Kontakte anlegen",
94									"label-for": "contact_add_right",
95									help: "Ausgewählte Nutzer/Mitarbeiter können Kontakte anlegen."
96								}, {
97									default: C(() => [w(i, {
98										name: "contact_add_right",
99										modelValue: U.value,
100										"onUpdate:modelValue": s[0] || (s[0] = (e) => U.value = e),
101										options: z
102									}, null, 8, ["modelValue"])]),
103									_: 1
104								}),
105								s[14] || (s[14] = D()),
106								U.value && B.value.users ? (b(), A(a, {
107									key: 0,
108									label: "Nutzer",
109									"label-for": "add_right_users"
110								}, {
111									default: C(() => [w(r, {
112										name: "add_right_users[]",
113										modelValue: B.value.add_right_users,
114										"onUpdate:modelValue": s[1] || (s[1] = (e) => B.value.add_right_users = e),
115										options: B.value.users,
116										multiple: ""
117									}, null, 8, ["modelValue", "options"])]),
118									_: 1
119								})) : T("", !0),
120								s[15] || (s[15] = D()),
121								U.value && B.value.roles ? (b(), A(a, {
122									key: 1,
123									label: "Nutzergruppen",
124									"label-for": "add_right_roles"
125								}, {
126									default: C(() => [w(t, {
127										name: "add_right_roles[]",
128										modelValue: B.value.add_right_roles,
129										"onUpdate:modelValue": s[2] || (s[2] = (e) => B.value.add_right_roles = e),
130										options: B.value.roles,
131										multiple: ""
132									}, null, 8, ["modelValue", "options"])]),
133									_: 1
134								})) : T("", !0),
135								s[16] || (s[16] = D()),
136								U.value && B.value.employees ? (b(), A(a, {
137									key: 2,
138									label: "Mitarbeiter",
139									"label-for": "add_right_employees"
140								}, {
141									default: C(() => [w(u, {
142										name: "add_right_employees[]",
143										modelValue: B.value.add_right_employees,
144										"onUpdate:modelValue": s[3] || (s[3] = (e) => B.value.add_right_employees = e),
145										options: B.value.employees,
146										multiple: ""
147									}, null, 8, ["modelValue", "options"])]),
148									_: 1
149								})) : T("", !0),
150								s[17] || (s[17] = D()),
151								U.value && B.value.entities ? (b(), A(a, {
152									key: 3,
153									label: "Abteilung",
154									"label-for": "add_right_entities"
155								}, {
156									default: C(() => [w(e, {
157										name: "add_right_entities[]",
158										modelValue: B.value.add_right_entities,
159										"onUpdate:modelValue": s[4] || (s[4] = (e) => B.value.add_right_entities = e),
160										options: B.value.entities,
161										multiple: ""
162									}, null, 8, ["modelValue", "options"])]),
163									_: 1
164								})) : T("", !0),
165								s[18] || (s[18] = D()),
166								S((b(), E("div", F, [...s[13] || (s[13] = [
167									O("i", {
168										class: "material-icons",
169										"aria-hidden": "true",
170										role: "img"
171									}, "save", -1),
172									D(),
173									O("span", null, "Einstellungen speichern", -1)
174								])])), [[c, () => K()]])
175							]),
176							_: 1
177						})]),
178						_: 1
179					}),
180					s[26] || (s[26] = D()),
181					w(_, {
182						hide: "",
183						name: "edit",
184						group: "contact-settings-rights-settings"
185					}, {
186						default: C(() => [w(o, {
187							title: "Rechte: Kontakte bearbeiten",
188							"title-icon": "people",
189							class: "limited-form-row"
190						}, {
191							default: C(() => [
192								w(a, {
193									label: "Kontakte bearbeiten",
194									"label-for": "contact_edit_right",
195									help: "Ausgewählte Nutzer/Mitarbeiter können Kontakte bearbeiten."
196								}, {
197									default: C(() => [w(i, {
198										name: "contact_edit_right",
199										modelValue: W.value,
200										"onUpdate:modelValue": s[5] || (s[5] = (e) => W.value = e),
201										options: z
202									}, null, 8, ["modelValue"])]),
203									_: 1
204								}),
205								s[20] || (s[20] = D()),
206								W.value && B.value.users ? (b(), A(a, {
207									key: 0,
208									label: "Nutzer",
209									"label-for": "edit_right_users"
210								}, {
211									default: C(() => [w(r, {
212										name: "edit_right_users[]",
213										modelValue: B.value.edit_right_users,
214										"onUpdate:modelValue": s[6] || (s[6] = (e) => B.value.edit_right_users = e),
215										options: B.value.users,
216										multiple: ""
217									}, null, 8, ["modelValue", "options"])]),
218									_: 1
219								})) : T("", !0),
220								s[21] || (s[21] = D()),
221								W.value && B.value.roles ? (b(), A(a, {
222									key: 1,
223									label: "Nutzergruppen",
224									"label-for": "edit_right_roles"
225								}, {
226									default: C(() => [w(t, {
227										name: "edit_right_roles[]",
228										modelValue: B.value.edit_right_roles,
229										"onUpdate:modelValue": s[7] || (s[7] = (e) => B.value.edit_right_roles = e),
230										options: B.value.roles,
231										multiple: ""
232									}, null, 8, ["modelValue", "options"])]),
233									_: 1
234								})) : T("", !0),
235								s[22] || (s[22] = D()),
236								W.value && B.value.employees ? (b(), A(a, {
237									key: 2,
238									label: "Mitarbeiter",
239									"label-for": "edit_right_employees"
240								}, {
241									default: C(() => [w(u, {
242										name: "edit_right_employees[]",
243										modelValue: B.value.edit_right_employees,
244										"onUpdate:modelValue": s[8] || (s[8] = (e) => B.value.edit_right_employees = e),
245										options: B.value.employees,
246										multiple: ""
247									}, null, 8, ["modelValue", "options"])]),
248									_: 1
249								})) : T("", !0),
250								s[23] || (s[23] = D()),
251								W.value && B.value.entities ? (b(), A(a, {
252									key: 3,
253									label: "Abteilung",
254									"label-for": "edit_right_entities"
255								}, {
256									default: C(() => [w(e, {
257										name: "edit_right_entities[]",
258										modelValue: B.value.edit_right_entities,
259										"onUpdate:modelValue": s[9] || (s[9] = (e) => B.value.edit_right_entities = e),
260										options: B.value.entities,
261										multiple: ""
262									}, null, 8, ["modelValue", "options"])]),
263									_: 1
264								})) : T("", !0),
265								s[24] || (s[24] = D()),
266								S((b(), E("div", I, [...s[19] || (s[19] = [
267									O("i", {
268										class: "material-icons",
269										"aria-hidden": "true",
270										role: "img"
271									}, "save", -1),
272									D(),
273									O("span", null, "Einstellungen speichern", -1)
274								])])), [[c, () => K()]])
275							]),
276							_: 1
277						})]),
278						_: 1
279					})
280				]),
281				_: 1
282			}, 512))], 544);
283		};
284	}
285});
286//#endregion
287export { L as default };
288
289//# sourceMappingURL=ContactRightSettings_BIPzvnsL.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.