PageSourceSearch

https://ris.loewenberger-land.de/dist/js/VisitorList_BslqLn15.min.js

js loewenberger-land.de collected 2026-10-02 18:10:53 UTC 19,425 bytes, 484 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] = "52178308-c573-4379-8a86-c1b0ef62d29e", e._sentryDebugIdIdentifier = "sentry-dbid-52178308-c573-4379-8a86-c1b0ef62d29e");
7	} catch (e) {}
8})();
9import { Ba as e, Ir as t, Jc as n, cc as ee, es as r, jc as i, la as a, mc as o, t as s, xi as te } from "./topMessageHandler_CaWydTPF.min.js";
10import { F as c, L as ne, N as l, Ot as re, R as u, T as ie, X as d, Y as f, _ as p, c as m, d as h, f as g, g as _, i as v, jt as y, l as b, lt as x, nt as S, u as C, y as w } from "./runtime-core.esm-bundler_DscPLG0X.min.js";
11import { n as T, t as ae } from "./asyncToGenerator_CnehwrQ8.min.js";
12import { r as oe } from "./vuex.esm-bundler_ByHC_Vqx.min.js";
13import { s as se } from "./addresses_BKkK47Xf.min.js";
14import { t as ce } from "./ListPager_ClTN-8nC.min.js";
15import { t as le } from "./searchAbstract_DeMDx6Lx.min.js";
16import { t as ue } from "./AppContent_DtiJZ3PY.min.js";
17import { t as de } from "./ScheduleRange_FohCY4xz.min.js";
18import { t as E } from "./TableSearch_Cq1hc2fH.min.js";
19import { n as D, t as O } from "./visitorList_Cx42YQSL.min.js";
20//#region src/views/appointment/visitorList/VisitorList.vue?vue&type=script&setup=true&lang.ts
21T();
22var k = { class: "default-margin-bottom" }, A = { class: "row" }, j = { class: "col-lg-3" }, M = { class: "col-lg-3" }, N = { class: "portuna-table portuna-table-sm-padding portuna-table-bordered" }, P = {
23	key: 0,
24	class: "visible-md-upward",
25	style: { width: "100px" }
26}, F = {
27	key: 1,
28	style: { width: "auto" }
29}, I = {
30	key: 2,
31	class: "visible-xl-upward",
32	style: { width: "auto" }
33}, L = {
34	key: 3,
35	style: { width: "45px" }
36}, R = {
37	key: 5,
38	class: "th-placeholder"
39}, z = { key: "visitor-list-loading" }, B = ["colspan"], V = { class: "text-right visible-md-upward" }, H = ["innerHTML"], fe = ["textContent"], pe = { class: "visible-lg-upward" }, me = {
40	key: 0,
41	class: "visible-md-upward"
42}, he = {
43	key: 0,
44	class: "emphasized-tag active-tag"
45}, ge = {
46	key: 1,
47	class: "emphasized-tag inactive-tag"
48}, _e = { class: "text-overflow" }, ve = { key: 0 }, ye = ["innerHTML"], be = {
49	key: 1,
50	class: "text-overflow"
51}, U = { key: 0 }, xe = { key: 1 }, Se = {
52	key: 2,
53	class: "text-overflow"
54}, Ce = ["innerHTML"], we = { key: 2 }, Te = { key: 1 }, Ee = { key: 2 }, De = { key: 1 }, Oe = { key: 1 }, ke = ["onClick"], Ae = {
55	"aria-hidden": "true",
56	class: "material-icons md-12",
57	role: "img"
58}, je = { class: "user-container-list" }, Me = {
59	key: 2,
60	class: "visible-xl-upward"
61}, Ne = { class: "text-overflow visible-md-upward" }, Pe = { key: 1 }, Fe = { key: 2 }, Ie = { key: 1 }, Le = { key: 3 }, Re = { key: 3 }, ze = {
62	"aria-hidden": "true",
63	class: "material-icons",
64	role: "img"
65}, Be = {
66	key: 0,
67	class: "portuna-table-content-placeholder visible-md-upward"
68}, W = /* @__PURE__ */ w({
69	__name: "VisitorList",
70	props: { module: { default: "global" } },
71	setup(w, { expose: T }) {
72		let W = n(), G = w, K = oe(), q = K.state.viewSize, J = S(), Y = S(""), X = S([]), Z = S([]), Ve = m(() => {
73			let e = "/appointment/visitor-list/fetch-list/module/" + G.module;
74			return Y.value && (e += `?${Y.value}`), e;
75		}), He = m(() => "visitor-list-" + G.module), Ue = m(() => {
76			let e = 5;
77			return G.module !== "enrolment" && (e += 2), q.xlUp && e++, G.module === "enrolment" && e++, e;
78		}), We = function() {
79			var e = ae(function* (e) {
80				return K.dispatch("errorPage", e);
81			});
82			return function(t) {
83				return e.apply(this, arguments);
84			};
85		}(), Ge = (e) => {
86			O(e).then(() => {
87				e.activated = +!e.activated;
88			}).catch(r);
89		}, Q = (e) => {
90			let t = "Nicht gefunden";
91			for (let n of Z.value) if (n.value === e) {
92				t = n.label;
93				break;
94			}
95			return t;
96		}, Ke = () => {
97			K.dispatch("getPage", { url: "/appointment/visitor-list/fetch-list-options" }).then(({ data: { data: e } }) => {
98				Z.value = e.intranetAddresses;
99			});
100		}, qe = (e) => {
101			e.has_recurrence ? t.showChoosePopup(e.title, "delete", "masculine", "Termin", "Termin").then((t) => {
102				let n = {
103					id: e.id,
104					start: e.recurrence_start || null,
105					resource: e.resource,
106					serial: +!!t
107				};
108				i.post("/appointment/visitor-list/delete", n).then(({ data: { status: e, message: t } }) => {
109					e === "OK" ? J.value.fetchList() : s.error(t);
110				}).catch(o);
111			}).catch(r) : D(e).then(() => {
112				J.value.entries.splice(J.value.entries.indexOf(e), 1);
113			}).catch(r);
114		};
115		Ke(), G.module === "enrolment" ? X.value = [{
116			label: "Bewerbungen",
117			href: { name: "enrolment-dashboard" }
118		}] : X.value = [{
119			label: "Termine",
120			href: { name: "appointment-list" }
121		}];
122		let $ = le({
123			emitter: W.emitter,
124			searchStorageScope: He
125		});
126		return T(Object.assign({}
126, W, $.expose)), (t, n) => {
127			let r = ne("router-link"), i = u("search"), o = u("interact");
128			return l(), C(ue, {
129				breadcrumb: X.value,
130				class: "visitor-list",
131				headline: "Besucherliste"
132			}, {
133				default: f(() => [p(ce, ie(x($).properties, {
134					ref_key: "pager",
135					ref: J,
136					"fetch-url": Ve.value,
137					"filter-method": "server",
138					onEntriesFetchFailed: We
139				}), {
140					default: f(({ listEntries: t, loading: s }) => [
141						b("div", k, [b("div", A, [
142							n[12] || (n[12] = b("div", { class: "col-lg-6" }, null, -1)),
143							n[13] || (n[13] = _()),
144							b("div", j, [d((l(), C(e, {
145								modelValue: x($).model["calendar_intranet_address:strict"],
146								"onUpdate:modelValue": n[0] || (n[0] = (e) => x($).model["calendar_intranet_address:strict"] = e),
147								options: Z.value,
148								"aria-label": "Auswahl Standorte",
149								multiple: ""
150							}, {
151								multiple: f(({ count: e }) => [_(y(e) + " Standorte ausgewählt\n                            ", 1)]),
152								all: f(() => [...n[10] || (n[10] = [_("\n                                Alle Standorte ausgewählt\n                            ", -1)])]),
153								_: 1
154							}, 8, ["modelValue", "options"])), [[i, "search.calendar_intranet_address:strict"]])]),
155							n[14] || (n[14] = _()),
156							b("div", M, [p(de, {
157								modelValue: Y.value,
158								"onUpdate:modelValue": n[1] || (n[1] = (e) => Y.value = e),
159								"local-storage-scope": "appointment.list"
160							}, null, 8, ["modelValue"])])
161						])]),
162						n[65] || (n[65] = _()),
163						b("table", N, [
164							b("colgroup", null, [
165								n[15] || (n[15] = b("col", { style: { width: "45px" } }, null, -1)),
166								n[16] || (n[16] = _()),
167								n[17] || (n[17] = b("col", {
168									class: "visible-md-upward",
169									style: { width: "120px" }
170								}, null, -1)),
171								n[18] || (n[18] = _()),
172								n[19] || (n[19] = b("col", {
173									class: "visible-lg-upward",
174									style: { width: "90px" }
175								}, null, -1)),
176								n[20] || (n[20] = _()),
177								w.module === "enrolment" ? h("", !0) : (l(), g("col", P)),
178								n[21] || (n[21] = _()),
179								n[22] || (n[22] = b("col", null, null, -1)),
180								n[23] || (n[23] = _()),
181								x(q).xlUp ? (l(), g("col", F)) : h("", !0),
182								n[24] || (n[24] = _()),
183								w.module === "enrolment" ? (l(), g("col", I)) : h("", !0),
184								n[25] || (n[25] = _()),
185								n[26] || (n[26] = b("col", {
186									class: "visible-md-upward",
187									style: { width: "auto" }
188								}, null, -1)),
189								n[27] || (n[27] = _()),
190								w.module === "enrolment" ? h("", !0) : (l(), g("col", L))
191							]),
192							n[62] || (n[62] = _()),
193							b("thead", null, [b("tr", null, [
194								n[28] || (n[28] = b("th", { class: "text-center background-dark" }, [b("i", {
195									"aria-hidden": "true",
196									class: "material-icons",
197									role: "img"
198								}, "people")], -1)),
199								n[29] || (n[29] = _()),
200								p(E, {
201									modelValue: x($).model.entry_start,
202									"onUpdate:modelValue": n[2] || (n[2] = (e) => x($).model.entry_start = e),
203									"sort-field": ["entry_start", "start_time"],
204									class: "visible-md-upward",
205									datepicker: "",
206									"default-sort": !0,
207									text: "Datum"
208								}, null, 8, ["modelValue"]),
209								n[30] || (n[30] = _()),
210								p(E, {
211									modelValue: x($).model.start_time,
212									"onUpdate:modelValue": n[3] || (n[3] = (e) => x($).model.start_time = e),
213									class: "visible-lg-upward",
214									text: "Zeit"
215								}, null, 8, ["modelValue"]),
216								n[31] || (n[31] = _()),
217								w.module === "enrolment" ? h("", !0) : (l(), C(E, {
218									key: 0,
219									modelValue: x($).model.activated,
220									"onUpdate:modelValue": n[4] || (n[4] = (e) => x($).model.activated = e),
221									options: ["Inaktiv", "Aktiv"],
222									class: "visible-md-upward",
223									"sort-field": "activated",
224									text: "Status"
225								}, null, 8, ["modelValue"])),
226								n[32] || (n[32] = _()),
227								w.module === "enrolment" ? (l(), C(E, {
228									key: 1,
229									modelValue: x($).model["application_name,application_surname"],
230									"onUpdate:modelValue": n[5] || (n[5] = (e) => x($).model["application_name,application_surname"] = e),
231									"sort-field": "application_surname",
232									text: "Name"
233								}, null, 8, ["modelValue"])) : (l(), C(E, {
234									key: 2,
235									modelValue: x($).model.title,
236									"onUpdate:modelValue": n[6] || (n[6] = (e) => x($).model.title = e),
237									"sort-field": "title",
238									text: "Titel"
239								}, null, 8, ["modelValue"])),
240								n[33] || (n[33] = _()),
241								x(q).xlUp ? (l(), C(E, {
242									key: 3,
243									modelValue: x($).model["contact_name, clients.user_name"],
244									"onUpdate:modelValue": n[7] || (n[7] = (e) => x($).model["contact_name, clients.user_name"] = e),
245									"sort-field": "contact_name",
246									text: "Ansprechpartner"
247								}, null, 8, ["modelValue"])) : h("", !0),
248								n[34] || (n[34] = _()),
249								w.module === "enrolment" ? (l(), C(E, {
250									key: 4,
251									modelValue: x($).model.title,
252									"onUpdate:modelValue": n[8] || (n[8] = (e) => x($).model.title = e),
253									class: "visible-xl-upward",
254									"sort-field": "title",
255									text: "Bemerkung"
256								}, null, 8, ["modelValue"])) : h("", !0),
257								n[35] || (n[35] = _()),
258								p(E, {
259									modelValue: x($).model["calendar_title,location_text_title"],
260									"onUpdate:modelValue": n[9] || (n[9] = (e) => x($).model["calendar_title,location_text_title"] = e),
261									class: "visible-md-upward",
262									"sort-field": "location_name",
263									text: "Standort/Raum"
264								}, null, 8, ["modelValue"]),
265								n[36] || (n[36] = _()),
266								w.module === "enrolment" ? h("", !0) : (l(), g("th", R, "Platzhalter"))
267							])]),
268							n[63] || (n[63] = _()),
269							b("tbody", null, [s ? (l(), g("tr", z, [b("td", { colspan: Ue.value }, [p(se)], 8, B)])) : (l(!0), g(v, { key: 1 }, c(t, (e, t) => (l(), g("tr", {
270								key: "visitor-list-" + t,
271								class: re({ inactive: !e.activated })
272							}, [
273								n[53] || (n[53] = b("td", null, null, -1)),
274								n[54] || (n[54] = _()),
275								b("td", V, [
276									b("div", { innerHTML: e.relative_filter_start }, null, 8, H),
277									n[37] || (n[37] = _()),
278									x(q).mdDown ? (l(), g("div", {
279										key: 0,
280										textContent: y(e.start_time)
281									}, null, 8, fe)) : h("", !0)
282								]),
283								n[55] || (n[55] = _()),
284								b("td", pe, y(e.start_time), 1),
285								n[56] || (n[56] = _()),
286								w.module === "enrolment" ? h("", !0) : (l(), g("td", me, [e.activated ? (l(), g("span", he, "aktiv")) : (l(), g("span", ge, "deaktiviert"))])),
287								n[57] || (n[57] = _()),
288								b("td", _e, [
289									x(q).smDown ? (l(), g("div", ve, [b("strong", { innerHTML: e.relative_filter_start }, null, 8, ye), _(" " + y(e.start_time), 1)])) : h("", !0),
290									n[40] || (n[40] = _()),
291									w.module === "enrolment" ? (l(), g("div", be, [e.application_id ? (l(), C(r, {
292										key: 0,
293										to: {
294											name: "enrolment-application-view",
295											params: { applicationId: e.application_id }
296										}
297									}, {
298										default: f(() => [e.application_name ? (l(), g("strong", U, y(e.application_name) + " " + y(e.application_surname), 1)) : h("", !0)]),
299										_: 2
300									}, 1032, ["to"])) : (l(), g("span", xe, "Nicht gefunden."))])) : (l(), g("div", Se, [
301										b("span", { innerHTML: e.module_name }, null, 8, Ce),
302										n[38] || (n[38] = _()),
303										e.resource === "enrolment" ? (l(), C(r, {
304											key: 0,
305											title: e.title,
306											to: {
307												name: "enrolment-application-view",
308												params: { applicationId: e.application_id }
309											}
310										}, {
311											default: f(() => [_(y(e.visitor_name || e.title), 1)]),
312											_: 2
313										}, 1032, ["title", "to"])) : e.resource === "appointment" ? (l(), C(r, {
314											key: 1,
315											to: {
316												name: "visitor-list-view",
317												params: {
318													id: e.id,
319													start: e.entry_start,
320													resource: e.resource
321												}
322											}
323										}, {
324											default: f(() => [_(y(e.visitor_name || e.title), 1)]),
325											_: 2
326										}, 1032, ["to"])) : (l(), g("span", we, y(e.visitor_name || e.title), 1))
327									])),
328									n[41] || (n[41] = _()),
329									x(q).lgDown && e.owner_user_id ? (l(), C(a, {
330										key: 3,
331										id: e.owner_user_id,
332										"show-image": !1,
333										class: "spacer-5"
334									}, {
335										default: f(() => [_(y(e.title), 1)]),
336										_: 2
337									}, 1032, ["id"])) : h("", !0),
338									n[42] || (n[42] = _()),
339									x(q).smDown ? (l(), g(v, { key: 4 }, [
340										e.resource === "roommanagement" || e.resource === "enrolment" ? (l(), C(r, {
341											key: 0,
342											title: e.calendar_title,
343											to: {
344												name: "roommanagement-list",
345												params: { id: e.calendar_id }
346											}
347										}, {
348											default: f(() => [_(y(e.calendar_title), 1)]),
349											_: 2
350										}, 1032, ["title", "to"])) : e.location_text_title && e.resource === "appointment" ? (l(), g("span", Te, y(e.location_text_title), 1)) : (l(), g("span", Ee, "\n                                Kein Ort angegeben\n                            ")),
351										n[39] || (n[39] = _()),
352										b("div", null, [b("small", null, "Standort: " + y(Q(e.calendar_intranet_address)), 1)])
353									], 64)) : h("", !0)
354								]),
355								n[58] || (n[58] = _()),
356								x(q).xlUp ? (l(), g("td", De, [
357									e.owner_user_id ? (l(), C(a, {
358										key: 0,
359										id: e.owner_user_id
360									}, null, 8, ["id"])) : h("", !0),
361									n[44] || (n[44] = _()),
362									n[45] || (n[45] = b("div", { class: "spacer spacer-5" }, null, -1)),
363									n[46] || (n[46] = _()),
364									e.clients.length ? (l(), g("div", Oe, [p(ee, {
365										"container-style": { maxWidth: "50%" },
366										position: "bottom-left"
367									}, {
368										default: f(({ toggle: t, isOpen: n }) => [b("span", {
369											class: "small pointer",
370											onClick: t
371										}, [_("\n                                        Weitere Ansprechpartner (" + y(e.clients.length) + ")\n                                        ", 1), b("i", Ae, y(n ? "keyboard_arrow_up" : "keyboard_arrow_down"), 1)], 8, ke)]),
372										container: f(() => [b("div", je, [(l(!0), g(v, null, c(e.clients, (e) => (l(), C(a, {
373											id: e.user_id,
374											key: "visitor-list-client-" + e.user_id
375										}, null, 8, ["id"]))), 128))])]),
376										_: 2
377									}, 1024)])) : h("", !0)
378								])) : h("", !0),
379								n[59] || (n[59] = _()),
380								w.module === "enrolment" ? (l(), g("td", Me, y(e.title), 1)) : h("", !0),
381								n[60] || (n[60] = _()),
382								b("td", Ne, [
383									b("div", null, [e.resource === "roommanagement" ? (l(), C(r, {
384										key: 0,
385										title: e.calendar_title,
386										to: {
387											name: "roommanagement-list",
388											params: {
389												id: e.calendar_id,
390												type: "week",
391												date: e.entry_start
392											}
393										}
394									}, {
395										default: f(() => [_(y(e.calendar_title), 1)]),
396										_: 2
397									}, 1032, ["title", "to"])) : e.resource === "enrolment" ? (l(), g(v, { key: 1 }, [e.calendar_id ? (l(), C(r, {
398										key: 0,
399										title: e.calendar_title,
400										to: {
401											name: "roommanagement-list",
402											params: {
403												id: e.calendar_id,
404												type: "week",
405												date: e.entry_start
406											}
407										}
408									}, {
409										default: f(() => [_(y(e.calendar_title), 1)]),
410										_: 2
411									}, 1032, ["title", "to"])) : e.location_text_title ? (l(), g("span", Pe, y(e.location_text_title), 1)) : h("", !0)], 64)) : e.resource === "appointment" ? (l(), g("span", Fe, [e.room_id ? (l(), C(r, {
412										key: 0,
413										title: e.location_text_title,
414										to: {
415											name: "roommanagement-list",
416											params: {
417												id: e.room_id,
418												type: "week",
419												date: e.entry_start
420											}
421										}
422									}, {
423										default: f(() => [_(y(e.location_text_title), 1)]),
424										_: 2
425									}, 1032, ["title", "to"])) : e.location_text_title ? (l(), g("span", Ie, y(e.location_text_title), 1)) : h("", !0)])) : (l(), g("span", Le, "\n                                Kein Ort angegeben\n                            "))]),
426									n[47] || (n[47] = _()),
427									b("div", null, [b("small", null, "Standort: " + y(Q(e.calendar_intranet_address)), 1)])
428								]),
429								n[61] || (n[61] = _()),
430								w.module === "enrolment" ? h("", !0) : (l(), g("td", Re, [e.allowChange ? (l(), C(te, { key: 0 }, {
431									default: f(() => [
432										b("li", null, [p(r, { to: {
433											name: e.resource + "-entry-edit",
434											params: {
435												id: e.id,
436												start: e.entry_start
437											}
438										} }, {
439											default: f(() => [...n[48] || (n[48] = [
440												b("i", {
441													"aria-hidden": "true",
442													class: "material-icons",
443													role: "img"
444												}, "edit", -1),
445												_(),
446												b("span", null, "Bearbeiten", -1)
447											])]),
448											_: 1
449										}, 8, ["to"])]),
450										n[51] || (n[51] = _()),
451										d((l(), g("li", null, [b("a", null, [
452											b("i", ze, y(e.activated ? "remove" : "check") + "_circle", 1),
453											n[49] || (n[49] = _()),
454											b("span", null, y(e.activated ? "Deaktivieren" : "Aktivieren"), 1)
455										])])), [[o, () => Ge(e)]]),
456										n[52] || (n[52] = _()),
457										d((l(), g("li", null, [...n[50] || (n[50] = [b("a", null, [
458											b("i", {
459												"aria-hidden": "true",
460												class: "material-icons",
461												role: "img"
462											}, "delete"),
463											_(),
464											b("span", null, "Löschen")
465										], -1)])])), [[o, () => qe(e)]])
466									]),
467									_: 2
468								}, 1024)) : h("", !0)]))
469							], 2))), 128))])
470						]),
471						n[66] || (n[66] = _()),
472						!s && t.length === 0 ? (l(), g("div", Be, [...n[64] || (n[64] = [b("span", null, "Es wurden keine Einträge gefunden.", -1)])])) : h("", !0)
473					]),
474					_: 1
475				}, 16, ["fetch-url"])]),
476				_: 1
477			}, 8, ["breadcrumb"]);
478		};
479	}
480});
481//#endregion
482export { W as default };
483
484//# sourceMappingURL=VisitorList_BslqLn15.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.