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-09-24-1148" }; 5 var t = new e.Error().stack; 6 t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d346d872-469a-45b4-9d97-dc44bfc9374f", e._sentryDebugIdIdentifier = "sentry-dbid-d346d872-469a-45b4-9d97-dc44bfc9374f"); 7 } catch (e) {} 8})(); 9import { Ac as e, Bn as t, _a as n, ai as r, nt as i, pc as a, qc as ee, t as o, ul as te, za as s } from "./topMessageHandler_BfquHqnZ.min.js"; 10import { At as c, F as ne, N as l, Ot as re, R as u, 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, nt as x, q as S, tt as C, u as w, w as ie, y as ae } from "./runtime-core.esm-bundler_Bi-f_fgM.min.js"; 11import { n as T, t as oe } from "./asyncToGenerator_SUcgKOYT.min.js"; 12import { o as se } from "./vue-router_BHFpZAgN.min.js"; 13import { r as ce } from "./vuex.esm-bundler_BYiu1CGj.min.js"; 14import { s as le } from "./addresses_BSoHW556.min.js"; 15import { t as E } from "./AppDraggable_CD-KVL9G.min.js"; 16import { t as D } from "./FoldContainer_DcCPQgVn.min.js"; 17import { t as ue } from "./CategoryManagement_BkK4UYIL.min.js"; 18//#region src/views/bookmark/BookmarkListPopup.vue?vue&type=script&setup=true&lang.ts 19T(); 20var de = { class: "bookmark-container" }, fe = { class: "tab-bar horizontal draw-bottom-line" }, pe = { class: "tab-bar-labels color-router-link" }, me = ["onClick"], he = { key: 1 }, ge = { class: "row" }, _e = { class: "col-sm-12" }, ve = { class: "intranet-filter-search" }, ye = { class: "search-text" }, be = { class: "bookmark-table-head" }, xe = ["aria-label"], Se = ["title"], Ce = { class: "bookmark-table" }, we = { key: 0 }, Te = ["onClick"], Ee = { 21 key: 0, 22 class: "material-icons md-18 category-handle pointer", 23 "aria-hidden": "true", 24 role: "img" 25}, De = ["textContent"], Oe = { 26 class: "material-icons pointer", 27 "aria-hidden": "true", 28 role: "img" 29}, ke = { 30 class: "material-icons pointer", 31 "aria-hidden": "true", 32 role: "img" 33}, Ae = { 34 key: 0, 35 class: "material-icons md-18 bookmark-handle pointer", 36 "aria-hidden": "true", 37 role: "img" 38}, je = { 39 key: 0, 40 class: "row inline-edit-row" 41}, Me = ["href"], Ne = { 42 key: 0, 43 class: "icon-interact" 44}, Pe = { 45 key: 1, 46 class: "icon-interact" 47}, Fe = { class: "icon-interact" }, Ie = { 48 key: 0, 49 class: "material-icons md-18 drag-handle", 50 "aria-hidden": "true", 51 role: "img" 52}, Le = { 53 key: 0, 54 class: "row inline-edit-row" 55}, Re = ["href"], ze = { 56 key: 0, 57 class: "icon-interact" 58}, Be = { 59 key: 1, 60 class: "icon-interact" 61}, Ve = { key: 1 }, He = { 62 key: 2, 63 class: "text-center empty-bookmarks" 64}, O = /* @__PURE__ */ ae({ 65 __name: "BookmarkListPopup", 66 setup(ae, { expose: T }) { 67 let O = ie("popup-emitter"), Ue = ee(), k = ce(), A = se(), j = m(() => ({ 68 bookmark: { 69 type: "bookmark", 70 label: "Lesezeichen", 71 to: { name: "bookmarks" } 72 }, 73 category: { 74 type: "category", 75 label: "Kategorien", 76 to: { name: "categories" } 77 } 78 })), M = C(new t("/application/bookmark")), N = x("bookmark"), P = x(!0), F = C({}), I = C({ 79 id: 0, 80 title: "", 81 category: 0, 82 categoryOrder: 0 83 }), L = x([]), We = x(!1), R = x(0), z = x(!0), B = x(!1), V = x([]), H = x([]), Ge = function() { 84 var e = oe(function* (e) { 85 return k.dispatch("toggleFold", e); 86 }); 87 return function(t) { 88 return e.apply(this, arguments); 89 }; 90 }(), Ke = (e) => !!(e.draggedContext.element.category.id && e.relatedContext.element.category.id), qe = (t) => { 91 let n = t.map((e) => e.id); 92 e.post("/application/bookmark/order-bookmark-spa/category/1", { entries: n }).catch(a); 93 }, Je = m(() => k.state.bookmark), U = m(() => k ? k.state.bookmark.list : []), Ye = m(() => { 94 let e = {}; 95 for (let t of V.value) e[t.id] = t; 96 return e; 97 }), W = m(() => j.value[N.value]), G = m(() => F ? i.createByObject(F) : null), K = m(() => G.value ? H.value.filter((e) => G.value.run(e)) : H.value), q = m(() => M.entryCategoriesSelect()), J = () => { 98 P.value = !0, e.get("/application/bookmark/bookmarks" + (z.value ? "/category/1" : "")).then((e) => { 99 M.setSelectCategories(e.data.data.categories), k.commit("bookmarkSetList", e.data.data.bookmarks), H.value = U.value, V.value = e.data.data.categories, B.value = !0; 100 }).catch(() => o.error("Die Lesezeichen konnten nicht geladen werden.")).finally(() => { 101 P.value = !1, O.emit("lazy-load-focus"); 102 }); 103 }, Xe = () => { 104 z.value = !z.value, J(); 105 }, Ze = () => { 106 if (!z.value) { 107 L.value = [{ 108 category: z.value[0], 109 entries: K.value 110 }]; 111 return; 112 } 113 L.value = []; 114 let e = {}, t = 0; 115 for (let n of V.value) L.value[t] = { 116 category: n,
117 entries: [] 118 }, e[n.id] = t++; 119 for (let t of K.value) L.value[e[t.category || 0]].entries.push(t); 120 L.value = L.value.filter((e) => e.entries.length); 121 }, Qe = (e) => { 122 N.value = e; 123 }, Y = (e) => { 124 r(e).then(() => { 125 e.id === Je.value.id && k.commit("bookmarkSetId", 0), J(); 126 }).catch(() => o.error("Das Lesezeichen konnte nicht gelöscht werden.")); 127 }, X = (t) => { 128 e.get("/application/bookmark/edit-bookmark/id/" + t + "/href/" + btoa(A.currentRoute.value.path)).then((e) => { 129 if (e.data.status !== "OK") throw Error(); 130 let n = e.data.data || {}; 131 M.setSelectCategories(n.categoriesSelect), I.title = n.title || k.state.headline, I.category = n.category === "0" ? 0 : parseInt(n.category), I.id = n.id === "0" ? 0 : parseInt(n.id), R.value = t; 132 }).catch(a); 133 }, Z = () => { 134 if (z.value) { 135 let t = L.value.map((e) => e.category.id); 136 e.post("/application/bookmark/order-categories-spa", { categories: t }).catch(a); 137 } else { 138 let t = H.value.map((e) => e.id); 139 e.post("/application/bookmark/order-bookmark-spa", { entries: t }).catch(a); 140 } 141 }, $e = () => { 142 let t = "/application/bookmark/edit-bookmark/id/" + I.id + "/href/" + btoa(A.currentRoute.value.path); 143 e.post(t, { 144 title: I.title, 145 category: I.category 146 }).then((e) => { 147 if (e.data.status !== "OK") throw e; 148 We.value = !1; 149 let t = e.data.data.bookmark; 150 if (t.href === A.currentRoute.value.path && k.commit("bookmarkSetId", t.id), e.data.data.created ? o.success("Das Lesezeichen wurde erstellt.") : o.success("Das Lesezeichen wurde bearbeitet."), R.value !== t.id) { 151 if (B.value) { 152 for (let e of H.value) if (e.id === t.id) { 153 e.title = t.title, e.category = t.category; 154 return; 155 } 156 } 157 H.value.push(t); 158 return; 159 } 160 R.value = 0, J(); 161 }).catch(a); 162 }, Q = m(() => JSON.stringify(H.value) === JSON.stringify(K.value)); 163 H.value = U.value, J(); 164 let et = () => { 165 N.value === "bookmark" && J(); 166 }, $ = () => { 167 Ze(); 168 }; 169 return S(N, et), S(V, $, { deep: !0 }), S(K, $), T(Object.assign({}, Ue)), (e, t) => { 170 let r = u("focus"), i = u("tooltip"), a = u("interact"); 171 return l(), g("div", de, [ 172 b("div", fe, [b("div", pe, [(l(!0), g(v, null, ne(j.value, (e) => (l(), g("a", { 173 class: re(["tab-bar-label", { active: W.value === j.value[e.type] }]), 174 onClick: (t) => Qe(e.type), 175 key: "type-link-" + e.type 176 }, [b("span", null, y(e.label), 1)], 10, me))), 128))])]), 177 t[38] || (t[38] = _()), 178 W.value.type === "bookmark" ? (l(), g(v, { key: 0 }, [P.value ? (l(), w(le, { 179 key: 0, 180 text: "Lesezeichen werden geladen" 181 })) : H.value.length ? (l(), g("div", he, [ 182 b("div", ge, [b("div", _e, [b("div", ve, [ 183 t[7] || (t[7] = b("div", { 184 class: "search-icon", 185 "aria-hidden": "true" 186 }, [b("i", { 187 class: "material-icons", 188 "aria-hidden": "true", 189 role: "img" 190 }, "search")], -1)), 191 t[8] || (t[8] = _()), 192 b("div", ye, [d(b("input", { 193 placeholder: "Meine Lesezeichen durchsuchen", 194 "onUpdate:modelValue": t[0] || (t[0] = (e) => F.title = e), 195 name: "title", 196 type: "text", 197 class: "search-text-input" 198 }, null, 512), [[te, F.title], [r]])]) 199 ])])]), 200 t[35] || (t[35] = _()), 201 b("div", be, [d((l(), g("span", { 202 "aria-label": "Gruppierung Die Ansicht nach Kategorien zu sortieren " + (z.value ? "deaktivieren." : "aktivieren."), 203 class: "icon-interact" 204 }, [d((l(), g("i", { 205 title: "Gruppierung Die Ansicht nach Kategorien zu sortieren " + (z.value ? "deaktivieren." : "aktivieren."), 206 "aria-hidden": "true", 207 class: "material-icons md-20 text-center", 208 role: "img" 209 }, [_(y(z.value ? "view_list" : "calendar_view_day"), 1)], 8, Se)), [[i]])], 8, xe)), [[a, Xe]]), t[9] || (t[9] = b("span", { class: "title" }, "Name", -1))]), 210 t[36] || (t[36] = _()), 211 b("div", Ce, [K.value.length ? (l(), g("div", we, [z.value ? (l(), w(E, { 212 key: 0, 213 handle: ".category-handle", 214 modelValue: L.value, 215 "onUpdate:modelValue": t[3] || (t[3] = (e) => L.value = e), 216 "item-key": "category.id", 217 onChange: Z, 218 move: Ke 219 }, {
220 item: f(({ element: e }) => [ 221 b("tr", { 222 class: "category-column", 223 onClick: (t) => Ge("category-" + e.category.id) 224 }, [ 225 b("td", null, [e.category.id && Q.value ? (l(), g("i", Ee, " open_with")) : h("", !0)]), 226 t[14] || (t[14] = _()), 227 b("td", null, [ 228 b("span", { 229 class: "colour-badge-preview medium", 230 style: c({ backgroundColor: "#" + e.category.color }) 231 }, null, 4), 232 t[10] || (t[10] = _()), 233 b("span", { 234 class: "colour-badge-text", 235 textContent: y(e.category.name) 236 }, null, 8, De) 237 ]), 238 t[15] || (t[15] = _()), 239 t[16] || (t[16] = b("td", null, null, -1)), 240 t[17] || (t[17] = _()), 241 b("td", null, [ 242 p(D, { 243 group: "category-" + e.category.id, 244 "show-open": "", 245 tag: "span" 246 }, { 247 default: f(() => [d((l(), g("i", Oe, [...t[11] || (t[11] = [_("keyboard_arrow_up", -1)])])), [[i, "Kategorie zuklappen"]])]), 248 _: 1 249 }, 8, ["group"]), 250 t[13] || (t[13] = _()), 251 p(D, { 252 group: "category-" + e.category.id, 253 "show-closed": "", 254 tag: "span" 255 }, { 256 default: f(() => [d((l(), g("i", ke, [...t[12] || (t[12] = [_("keyboard_arrow_down", -1)])])), [[i, "Kategorie aufklappen"]])]), 257 _: 1 258 }, 8, ["group"]) 259 ]) 260 ], 8, Te), 261 t[25] || (t[25] = _()), 262 p(D, { 263 group: "category-" + e.category.id, 264 "show-closed": "", 265 tag: "span" 266 }, { 267 default: f(() => [p(E, { 268 handle: ".bookmark-handle", 269 "force-fallback": "true", 270 modelValue: e.entries, 271 "onUpdate:modelValue": (t) => e.entries = t, 272 "item-key": "id", 273 onChange: (t) => qe(e.entries), 274 "item-class": "bookmark-entry", 275 "item-tag": "tr" 276 }, { 277 item: f(({ element: e }) => [ 278 b("td", null, [Q.value ? (l(), g("i", Ae, " open_with")) : h("", !0)]), 279 t[22] || (t[22] = _()), 280 b("td", null, [R.value === e.id ? (l(), g("div", je, [ 281 p(n, { 282 class: "col-xs-12 col-lg-6", 283 type: "text", 284 name: "title", 285 "aria-label": "Lesezeichentitel", 286 modelValue: I.title, 287 "onUpdate:modelValue": t[1] || (t[1] = (e) => I.title = e), 288 modelModifiers: { trim: !0 } 289 }, null, 8, ["modelValue"]), 290 t[18] || (t[18] = _()), 291 p(s, { 292 class: "col-xs-12 col-lg-6", 293 name: "category", 294 options: q.value, 295 "aria-label": "Auswahl Kategorie", 296 modelValue: I.category, 297 "onUpdate:modelValue": t[2] || (t[2] = (e) => I.category = e) 298 }, null, 8, ["options", "modelValue"]) 299 ])) : (l(), g("a", { 300 key: 1, 301 class: "bookmark-title", 302 href: e.href 303 }, y(e.title), 9, Me))]), 304 t[23] || (t[23] = _()), 305 b("td", null, [R.value === e.id ? d((l(), g("span", Ne, [...t[19] || (t[19] = [b("i", { 306 "aria-hidden": "true", 307 class: "material-icons md-18", 308 role: "img" 309 }, "save", -1)])])), [[a, $e]]) : d((l(), g("span", Pe, [...t[20] || (t[20] = [b("i", { 310 "aria-hidden": "true", 311 class: "material-icons md-18", 312 role: "img" 313 }, "edit", -1)])])), [[a, () => X(e.id)]])]), 314 t[24] || (t[24] = _()), 315 b("td", null, [d((l(), g("span", Fe, [...t[21] || (t[21] = [b("i", { 316 "aria-hidden": "true", 317 class: "material-icons md-18", 318 role: "img" 319 }, "delete", -1)])])), [[a, () => Y(e)]])]) 320 ]), 321 _: 1 322 }, 8, [ 323 "modelValue", 324 "onUpdate:modelValue", 325 "onChange" 326 ])]), 327 _: 2 328 }, 1032, ["group"]) 329 ]), 330 _: 1 331 }, 8, ["modelValue"])) : (l(), w(E, { 332 key: 1, 333 handle: ".drag-handle", 334 "force-fallback": "true", 335 modelValue: H.value, 336 "onUpdate:modelValue": t[6] || (t[6] = (e) => H.value = e), 337 "item-key": "id", 338 onChange: Z, 339 "item-tag": "tr", 340 "item-class": "bookmark-entry" 341 }, {
342 item: f(({ element: e }) => [ 343 b("td", null, [Q.value ? (l(), g("i", Ie, "open_with")) : h("", !0)]), 344 t[31] || (t[31] = _()), 345 b("td", null, [R.value === e.id ? (l(), g("div", Le, [ 346 p(n, { 347 class: "col-xs-12 col-lg-6", 348 type: "text", 349 name: "title", 350 modelValue: I.title, 351 "onUpdate:modelValue": t[4] || (t[4] = (e) => I.title = e), 352 modelModifiers: { trim: !0 }, 353 "aria-label": "Eingabe Titel" 354 }, null, 8, ["modelValue"]), 355 t[26] || (t[26] = _()), 356 p(s, { 357 class: "col-xs-12 col-lg-6", 358 name: "category", 359 options: q.value, 360 "aria-label": "Auswahl Kategorie", 361 modelValue: I.category, 362 "onUpdate:modelValue": t[5] || (t[5] = (e) => I.category = e) 363 }, null, 8, ["options", "modelValue"]) 364 ])) : (l(), g(v, { key: 1 }, [ 365 b("div", { 366 class: "colour-badge-preview medium", 367 style: c("background-color: #" + Ye.value[e.category].color) 368 }, null, 4), 369 t[27] || (t[27] = _()), 370 b("a", { 371 class: "bookmark-title", 372 href: e.href 373 }, y(e.title), 9, Re) 374 ], 64))]), 375 t[32] || (t[32] = _()), 376 b("td", null, [R.value === e.id ? d((l(), g("span", ze, [...t[28] || (t[28] = [b("i", { 377 "aria-hidden": "true", 378 class: "material-icons md-18", 379 role: "img" 380 }, "save", -1)])])), [[a, $e]]) : d((l(), g("span", Be, [...t[29] || (t[29] = [b("i", { 381 "aria-hidden": "true", 382 class: "material-icons md-18", 383 role: "img" 384 }, "edit", -1)])])), [[a, () => X(e.id)]])]), 385 t[33] || (t[33] = _()), 386 b("td", null, [d((l(), g("span", null, [...t[30] || (t[30] = [b("i", { 387 "aria-hidden": "true", 388 class: "material-icons md-18 pointer", 389 role: "img" 390 }, "delete", -1)])])), [[a, () => Y(e)]])]) 391 ]), 392 _: 1 393 }, 8, ["modelValue"]))])) : (l(), g("div", Ve, [...t[34] || (t[34] = [b("tr", null, [b("td", { colspan: "5" }, "Keine Lesezeichen gefunden.")], -1)])]))]) 394 ])) : (l(), g("div", He, [...t[37] || (t[37] = [ 395 b("i", { 396 class: "material-icons md-96 icon", 397 "aria-hidden": "true", 398 role: "img" 399 }, "star_border", -1), 400 _(), 401 b("br", null, null, -1), 402 _(), 403 b("span", { class: "headline-color" }, " Sie haben noch keine Lesezeichen gespeichert.", -1), 404 _(), 405 b("br", null, null, -1), 406 _("\n Fügen Sie Lesezeichen mittels der\n ", -1), 407 b("br", null, null, -1), 408 _(), 409 b("i", { 410 class: "material-icons", 411 "aria-hidden": "true", 412 role: "img" 413 }, "star_border", -1), 414 _("-Schaltfläche der Liste hinzu.\n ", -1), 415 b("br", null, null, -1) 416 ])]))], 64)) : W.value.type === "category" ? (l(), w(ue, { 417 key: 1, 418 "box-attributes": { class: "no-padding no-border" }, 419 route: "/application/bookmark", 420 tag: "div", 421 "box-tag": "div" 422 })) : h("", !0) 423 ]); 424 }; 425 } 426}); 427//#endregion 428export { O as default }; 429 430//# sourceMappingURL=BookmarkListPopup_CM05-Tsr.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.