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] = "d7c5637a-d023-407f-87d9-fb6068d411c0", e._sentryDebugIdIdentifier = "sentry-dbid-d7c5637a-d023-407f-87d9-fb6068d411c0"); 7 } catch (e) {} 8})(); 9import { $a as e, Ba as t, Bo as n, Dc as r, Ga as i, Gr as a, Jc as o, Pi as s, Sn as c, Ua as l, Vs as u, Ws as d, Za as f, _a as p, eo as m, jc as h, mc as g, t as _, va as v, xi as y } from "./topMessageHandler_CaWydTPF.min.js"; 10import { F as b, N as x, R as S, T as C, X as w, Y as T, _ as E, c as D, d as O, f as k, g as A, i as j, jt as M, l as N, lt as P, nt as F, tt as I, u as L, w as R, y as z } from "./runtime-core.esm-bundler_DscPLG0X.min.js"; 11import { r as B } from "./vuex.esm-bundler_ByHC_Vqx.min.js"; 12import { s as V } from "./addresses_BKkK47Xf.min.js"; 13import { t as H } from "./ListPager_ClTN-8nC.min.js"; 14import { t as U } from "./searchAbstract_DeMDx6Lx.min.js"; 15import { t as W } from "./AppContent_DtiJZ3PY.min.js"; 16import { t as G } from "./TableSearch_Cq1hc2fH.min.js"; 17//#region src/views/time-tracker/reduction/CoreTimeReductionEditPopup.vue?vue&type=script&setup=true&lang.ts 18var K = { class: "row" }, q = { class: "col-6" }, J = { class: "col-6" }, Y = /* @__PURE__ */ z({ 19 __name: "CoreTimeReductionEditPopup", 20 props: { id: { default: 0 } }, 21 setup(n, { expose: r }) { 22 let a = R("popup-emitter"), s = o(), l = n, u = B(), y = F(), b = F(null), C = F([]), O = F([]), j = F(!0), M = D(() => `/employee/time-tracker/reduction/edit-core-time/id/${l.id}`), P = () => { 23 let t = e(y.value); 24 f(M.value, m(t)).then((e) => { 25 _.success(`Die Kernzeitabweichung wurde erfolgreich ${l.id ? "gespeichert" : "erstellt"}.`), a.emit("emit", { 26 event: l.id ? "update" : "add", 27 data: e.entry 28 }); 29 }); 30 }, I = D(() => [d, { 31 type: "success", 32 title: "Speichern", 33 icon: "save", 34 cmd: () => P() 35 }]); 36 return h.get(M.value).then(({ data: { data: e } }) => { 37 u.dispatch("form/setFilter", e.filter), b.value = e.entry, O.value = e.employees, C.value = e.entities, a.emit("setButtons", I.value), j.value = !1, a.emit("lazy-load-focus"); 38 }).catch((e) => { 39 g(e), a.emit("close"); 40 }), r(Object.assign({}, s)), (e, n) => { 41 let r = S("max-chars"); 42 return j.value ? (x(), L(V, { key: 0 })) : (x(), k("form", { 43 key: 1, 44 ref_key: "form", 45 ref: y 46 }, [ 47 E(i, { 48 label: "Abteilungen", 49 "error-name": "entities", 50 "label-for": "entities-select", 51 "hide-validator-icon": "" 52 }, { 53 default: T(() => [E(t, { 54 id: "entities-select", 55 modelValue: b.value.entities, 56 "onUpdate:modelValue": n[0] || (n[0] = (e) => b.value.entities = e), 57 options: C.value, 58 name: "entities[]", 59 multiple: "" 60 }, null, 8, ["modelValue", "options"])]), 61 _: 1 62 }), 63 n[7] || (n[7] = A()), 64 E(i, { 65 label: "Mitarbeiter", 66 "error-name": "employees", 67 "label-for": "employees-select", 68 "hide-validator-icon": "" 69 }, { 70 default: T(() => [E(t, { 71 id: "employees-select", 72 modelValue: b.value.employees, 73 "onUpdate:modelValue": n[1] || (n[1] = (e) => b.value.employees = e), 74 options: O.value, 75 name: "employees[]", 76 multiple: "" 77 }, null, 8, ["modelValue", "options"])]), 78 _: 1 79 }), 80 n[8] || (n[8] = A()), 81 E(i, { 82 label: "Neue Mitarbeiter berücksichtigen", 83 "error-name": "include_new_employees", 84 "label-for": "include-new-employees" 85 }, { 86 default: T(() => [E(i, { 87 label: "Neue Mitarbeiter berücksichtigen", 88 class: "form-row-checkbox", 89 "label-for": "include-new-employees" 90 }, { 91 default: T(() => [E(p, { 92 id: "include-new-employees", 93 modelValue: b.value.include_new_employees, 94 "onUpdate:modelValue": n[2] || (n[2] = (e) => b.value.include_new_employees = e), 95 name: "include_new_employees" 96 }, null, 8, ["modelValue"])]), 97 _: 1 98 })]), 99 _: 1 100 }), 101 n[9] || (n[9] = A()), 102 N("div", K, [ 103 N("div", q, [E(i, { 104 label: "Tag", 105 "error-name": "date", 106 "label-for": "date" 107 }, {
108 default: T(() => [E(c, { 109 id: "date", 110 modelValue: b.value.date, 111 "onUpdate:modelValue": n[3] || (n[3] = (e) => b.value.date = e), 112 type: "date", 113 name: "date" 114 }, null, 8, ["modelValue"])]), 115 _: 1 116 })]), 117 n[6] || (n[6] = A()), 118 N("div", J, [E(i, { 119 label: "Kernzeitende", 120 "error-name": "time", 121 "label-for": "time" 122 }, { 123 default: T(() => [E(c, { 124 id: "time", 125 modelValue: b.value.time, 126 "onUpdate:modelValue": n[4] || (n[4] = (e) => b.value.time = e), 127 type: "time", 128 name: "time" 129 }, null, 8, ["modelValue"])]), 130 _: 1 131 })]) 132 ]), 133 n[10] || (n[10] = A()), 134 E(i, { 135 label: "Kurzbeschreibung", 136 "error-name": "reason", 137 "label-for": "reason" 138 }, { 139 default: T(() => [w(E(v, { 140 id: "reason", 141 modelValue: b.value.reason, 142 "onUpdate:modelValue": n[5] || (n[5] = (e) => b.value.reason = e), 143 name: "reason", 144 placeholder: "Kurzbeschreibung" 145 }, null, 8, ["modelValue"]), [[r, 100]])]), 146 _: 1 147 }) 148 ], 512)); 149 }; 150 } 151}), X = { 152 key: 0, 153 class: "button button-add" 154}, Z = { class: "portuna-table portuna-table-bordered spacer-15" }, Q = { key: 0 }, $ = { key: 0 }, ee = { 155 key: 1, 156 class: "label" 157}, te = { key: 0 }, ne = { 158 key: 1, 159 class: "label" 160}, re = { "aria-label": "Bearbeiten" }, ie = { 161 "aria-hidden": "true", 162 class: "material-icons md-18", 163 title: "Bearbeiten", 164 role: "img" 165}, ae = { "aria-label": "Löschen" }, oe = { 166 "aria-hidden": "true", 167 class: "material-icons md-18", 168 title: "Löschen", 169 role: "img" 170}, se = { key: 1 }, ce = { colspan: "7" }, le = { 171 key: 1, 172 class: "start-page-container text-center" 173}, ue = { class: "flex flex-center" }, de = { class: "button button-add" }, fe = /* @__PURE__ */ z({ 174 __name: "CoreTimeReductionList", 175 setup(e, { expose: t }) { 176 let i = o(), c = B(), d = D(() => "employee-time-tracker-core-time-reduction-list"), f = F(), p = F(!1), m = I([ 177 a(), 178 { 179 label: "Zeiterfassung", 180 href: { name: "time-tracker" } 181 }, 182 { label: "Kernzeitabweichungen" } 183 ]), h = F([]), g = F([]), _ = () => c.dispatch("getPage", { url: "/employee/time-tracker/reduction/fetch-list-data" }).then(({ data: { data: e } }) => { 184 p.value = e.allowed, h.value = e.entities, g.value = e.employees; 185 }), v = (e = 0) => { 186 let t = new u({ 187 title: e ? "Kernzeitabweichung bearbeiten" : "Kernzeitabweichung erstellen", 188 titleIcon: "edit", 189 size: "small", 190 component: Y, 191 componentProps: { id: e } 192 }); 193 t.Instance.emitter.on("add", () => { 194 f.value.rebuild(!0, !0), t.close(); 195 }), t.Instance.emitter.on("update", () => { 196 f.value.rebuild(!0, !0), t.close(); 197 }), t.open(); 198 }, R = (e) => { 199 r({ 200 type: "delete", 201 url: `/employee/time-tracker/reduction/delete-core-time/id/${e}`, 202 message: { headline: "Kernzeitabweichung löschen" }, 203 options: { 204 textIcon: "delete", 205 textIconClass: "text-danger", 206 titleIcon: "delete", 207 buttonOkay: { 208 title: "Löschen", 209 icon: "delete", 210 type: "danger" 211 } 212 } 213 }).then(() => { 214 f.value.rebuild(!0, !0); 215 }); 216 }; 217 _(); 218 let z = U({ 219 emitter: i.emitter, 220 searchStorageScope: d 221 }); 222 return t(Object.assign({}, i, z.expose)), (e, t) => { 223 let r = S("interact"), i = S("tooltip"); 224 return x(), L(W, { 225 class: "module-time-tracker", 226 headline: "Zeiterfassung: Kernzeitabweichungen", 227 breadcrumb: m 228 }, { 229 default: T(() => [E(H, C(P(z).properties, { 230 "filter-method": "server", 231 "fetch-url": "/employee/time-tracker/reduction/fetch-core-time-list", 232 ref_key: "list", 233 ref: f 234 }), { 235 default: T(({ listEntries: e, loading: a }) => [ 236 p.value ? w((x(), k("button", X, [...t[5] || (t[5] = [N("i", { 237 class: "material-icons", 238 "aria-hidden": "true", 239 role: "img" 240 }, "add", -1), A("\n Neue Kernzeitabweichung erstellen\n ", -1)])])), [[r, () => v()]]) : O("", !0), 241 t[36] || (t[36] = A()), 242 N("table", Z, [ 243 t[33] || (t[33] = N("colgroup", null, [ 244 N("col", { style: { width: "45px" } }), 245 A(), 246 N("col", { style: { width: "200px" } }), 247 A(), 248 N("col", { style: { width: "200px" } }), 249 A(), 250 N("col"), 251 A(), 252 N("col"), 253 A(), 254 N("col"), 255 A(), 256 N("col", { style: { width: "80px" } }) 257 ], -1)), 258 t[34] || (t[34] = A()), 259 N("thead", null, [N("tr", null, [ 260 t[6] || (t[6] = N("th", { class: "text-center background-dark" }, [N("i", { 261 class: "material-icons md-20 table-icon contrast-primary-light", 262 "aria-hidden": "true", 263 role: "img" 264 }, "event")], -1)), 265 t[7] || (t[7] = A()), 266 E(G, { 267 text: "Tag", 268 "sort-field": "date", 269 modelValue: P(z).model.date, 270 "onUpdate:modelValue": t[0] || (t[0] = (e) => P(z).model.date = e), 271 datepicker: "" 272 }, null, 8, ["modelValue"]), 273 t[8] || (t[8] = A()), 274 E(G, { 275 text: "Kernzeitende", 276 "sort-field": "time", 277 modelValue: P(z).model.time, 278 "onUpdate:modelValue": t[1] || (t[1] = (e) => P(z).model.time = e) 279 }, null, 8, ["modelValue"]), 280 t[9] || (t[9] = A()), 281 E(G, { 282 text: "Grund", 283 "sort-field": "reason", 284 modelValue: P(z).model.reason, 285 "onUpdate:modelValue": t[2] || (t[2] = (e) => P(z).model.reason = e) 286 }, null, 8, ["modelValue"]), 287 t[10] || (t[10] = A()), 288 E(G, { 289 text: "Abteilungen", 290 modelValue: P(z).model.entities, 291 "onUpdate:modelValue": t[3] || (t[3] = (e) => P(z).model.entities = e), 292 options: h.value 293 }, null, 8, ["modelValue", "options"]), 294 t[11] || (t[11] = A()), 295 E(G, { 296 text: "Mitarbeiter", 297 modelValue: P(z).model.employees, 298 "onUpdate:modelValue": t[4] || (t[4] = (e) => P(z).model.employees = e), 299 options: g.value 300 }, null, 8, ["modelValue", "options"]), 301 t[12] || (t[12] = A()), 302 t[13] || (t[13] = N("td", null, null, -1)) 303 ])]), 304 t[35] || (t[35] = A()), 305 e.length ? (x(), k("tbody", Q, [(x(!0), k(j, null, b(e, (e) => (x(), k("tr", null, [ 306 t[19] || (t[19] = N("td", null, null, -1)), 307 t[20] || (t[20] = A()), 308 N("td", null, M(P(n)("d.m.Y", e.date)), 1), 309 t[21] || (t[21] = A()), 310 N("td", null, M(P(n)("H:i", e.date + " " + e.time)), 1), 311 t[22] || (t[22] = A()), 312 N("td", null, M(e.reason), 1), 313 t[23] || (t[23] = A()), 314 N("td", null, [(x(!0), k(j, null, b(e.entities.slice(0, 3), (t, n) => (x(), k(j, null, [A(M(P(l)(t, "entity")) + " ", 1), n !== 2 && e.entities.length - 1 > n ? (x(), k("span", $, ",")) : n === 2 && e.entities.length > 3 ? w((x(), k("span", ee, [A(M("+" + (e.entities.length - 3)), 1)])), [[i, P(s)(e.entities, "entity")]]) : O("", !0)], 64))), 256))]), 315 t[24] || (t[24] = A()), 316 N("td", null, [(x(!0), k(j, null, b(e.employees.slice(0, 3), (t, n) => (x(), k(j, null, [A(M(P(l)(t, "employee")) + " ", 1), n !== 2 && e.employees.length - 1 > n ? (x(), k("span", te, ",")) : n === 2 && e.employees.length > 3 ? w((x(), k("span", ne, [A(M("+" + (e.employees.length - 3)), 1)])), [[i, P(s)(e.employees, "employee")]]) : O("", !0)], 64))), 256))]), 317 t[25] || (t[25] = A()), 318 N("td", null, [e.allowed ? (x(), L(y, { key: 0 }, { 319 default: T(() => [ 320 N("li", null, [w((x(), k("div", re, [w((x(), k("i", ie, [...t[14] || (t[14] = [A("edit", -1)])])), [[i]]), t[15] || (t[15] = A(" Bearbeiten\n ", -1))])), [[r, () => v(e.id)]])]), 321 t[18] || (t[18] = A()), 322 N("li", null, [w((x(), k("div", ae, [w((x(), k("i", oe, [...t[16] || (t[16] = [A("delete", -1)])])), [[i]]), t[17] || (t[17] = A(" Löschen\n ", -1))])), [[r, () => R(e.id)]])]) 323 ]), 324 _: 2 325 }, 1024)) : O("", !0)]) 326 ]))), 256))])) : (x(), k("tr", se, [N("td", ce, [a ? (x(), L(V, { 327 key: 0, 328 text: "Die Kernzeitabweichungen werden geladen." 329 })) : (x(), k("div", le, [N("div", null, [ 330 t[27] || (t[27] = N("i", { 331 class: "material-icons start-page-icon", 332 "aria-hidden": "true", 333 role: "img" 334 }, "timelapse", -1)), 335 t[28] || (t[28] = A()), 336 t[29] || (t[29] = N("div", { class: "start-page-title" }, "Kernzeitabweichungen", -1)),
337 t[30] || (t[30] = A()), 338 t[31] || (t[31] = N("div", { class: "start-page-description" }, [ 339 A("Es wurden keine Kernzeitabweichungen gefunden.\n "), 340 N("br"), 341 A("\n Möchten Sie eine Kernzeitabweichung erstellen?\n ") 342 ], -1)), 343 t[32] || (t[32] = A()), 344 N("div", ue, [w((x(), k("a", de, [...t[26] || (t[26] = [ 345 N("i", { 346 class: "material-icons md-18", 347 "aria-hidden": "true", 348 role: "img" 349 }, "add", -1), 350 A(), 351 N("span", null, "Neue Kernzeitabweichung erstellen", -1) 352 ])])), [[r, () => v()]])]) 353 ])]))])])) 354 ]) 355 ]), 356 _: 1 357 }, 16)]), 358 _: 1 359 }, 8, ["breadcrumb"]); 360 }; 361 } 362}); 363//#endregion 364export { fe as default }; 365 366//# sourceMappingURL=CoreTimeReductionList_CozSX8_4.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.