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] = "4c3e002e-a0b8-48b0-8d05-418a0c239f5c", e._sentryDebugIdIdentifier = "sentry-dbid-4c3e002e-a0b8-48b0-8d05-418a0c239f5c"); 7 } catch (e) {} 8})(); 9import { es as e, jc as t, la as n, n as r } from "./topMessageHandler_CaWydTPF.min.js"; 10import { A as i, N as a, O as o, Ot as s, R as c, X as l, _ as u, c as d, d as f, f as p, g as m, jt as h, l as g, lt as _, nt as v, q as y, u as b, y as x } from "./runtime-core.esm-bundler_DscPLG0X.min.js"; 11import { a as S } from "./vue-router_D9yl1vCo.min.js"; 12import { i as C, t as w } from "./chatCall_Dsowt8ja.min.js"; 13import { t as T } from "./AppWebRtcPlayer_D5F9L0uo.min.js"; 14//#region src/components/chat/AppChatCall.vue?vue&type=script&setup=true&lang.ts 15var E = { 16 key: 0, 17 class: "chat-call-popup-active" 18}, D = { 19 key: 0, 20 class: "chat-call-popup-player" 21}, O = { 22 key: 1, 23 class: "chat-call-popup-connecting" 24}, k = { class: "chat-call-popup-caller" }, A = ["src", "alt"], j = { 25 key: 2, 26 class: "material-icons md-36", 27 "aria-hidden": "true", 28 role: "img" 29}, M = { class: "chat-call-popup-caller-text" }, N = { key: 0 }, P = { class: "chat-call-popup-actions" }, F = ["disabled"], I = /* @__PURE__ */ x({ 30 __name: "AppChatCall", 31 setup(i, { expose: s }) { 32 let x = w(), S = d(() => r.getters["module/chat/isLicensedCalling"]), C = d(() => r.getters["module/chat/chatsLoaded"]), I = d(() => C.value && !S.value), L = d(() => x.payload.value), R = d(() => { 33 var e, t; 34 return (e = (t = L.value) == null ? void 0 : t.chatId) == null ? null : e; 35 }), z = v(null); 36 y(R, (n) => { 37 z.value = null, !(!n || I.value) && t.get("/chat/chat/get-active-call/id/" + n).then(({ data: e }) => { 38 var t; 39 let r = (t = e.data) == null ? e : t; 40 r && r.chatId === n && (z.value = r); 41 }).catch(e); 42 }, { immediate: !0 }); 43 let B = d(() => x.state.value === "connected"), V = d(() => x.busy.value || x.state.value === "connecting"), H = () => { 44 x.leave(); 45 }; 46 return y(d(() => B.value), (e) => { 47 x.setPlayerVisible(e); 48 }, { immediate: !0 }), o(() => { 49 x.setPlayerVisible(!1); 50 }), s({ componentName: "AppChatCall" }), (e, t) => { 51 var r, i; 52 let o = c("interact"); 53 return _(x).isActive.value ? (a(), p("div", E, [ 54 B.value && L.value ? (a(), p("div", D, [u(T, { 55 "api-url": L.value.apiUrl, 56 "ws-url": L.value.wsUrl, 57 "room-id": L.value.roomId, 58 token: L.value.hostToken, 59 session: _(x).rtc, 60 role: "member", 61 "join-leave": !1, 62 conference: "", 63 "share-layout": "", 64 "remote-control": "" 65 }, null, 8, [ 66 "api-url", 67 "ws-url", 68 "room-id", 69 "token", 70 "session" 71 ])])) : (a(), p("div", O, [g("div", k, [ 72 (r = z.value) != null && r.isSingleChat && z.value.otherUserId ? (a(), b(n, { 73 key: 0, 74 id: z.value.otherUserId, 75 class: "chat-call-popup-caller-image", 76 "hide-contact": "", 77 tooltip: !1 78 }, null, 8, ["id"])) : (i = z.value) != null && i.chatPicture ? (a(), p("img", { 79 key: 1, 80 src: z.value.chatPicture, 81 alt: z.value.chatName, 82 class: "chat-call-popup-caller-image" 83 }, null, 8, A)) : (a(), p("i", j, "group")), 84 t[2] || (t[2] = m()), 85 g("div", M, [ 86 z.value && !z.value.isSingleChat ? (a(), p("strong", N, h(z.value.chatName), 1)) : f("", !0), 87 t[0] || (t[0] = m()), 88 t[1] || (t[1] = g("span", null, "Telefonat wird aufgebautâ¦", -1)) 89 ]), 90 t[3] || (t[3] = m()), 91 t[4] || (t[4] = g("i", { 92 class: "material-icons chat-send-pending", 93 "aria-hidden": "true", 94 role: "img" 95 }, "sync", -1)) 96 ])])), 97 t[6] || (t[6] = m()), 98 g("div", P, [l((a(), p("button", { 99 class: "button button-danger", 100 type: "button", 101 title: "Auflegen", 102 disabled: V.value 103 }, [...t[5] || (t[5] = [ 104 g("i", { 105 class: "material-icons md-18", 106 "aria-hidden": "true" 107 }, "call_end", -1), 108 m(), 109 g("span", null, "Auflegen", -1) 110 ])], 8, F)), [[ 111 o, 112 () => H(), 113 void 0, 114 { stop: !0 } 115 ]])]) 116 ])) : f("", !0); 117 }; 118 } 119}), L = { 120 key: 0, 121 class: "chat-call-window-placeholder" 122}, R = /* @__PURE__ */ x({ 123 __name: "ChatCallIndex", 124 setup(t, { expose: n }) { 125 let r = S(), c = w(), l = d(() =>
125 c.isActive.value || c.busy.value), h = null; 126 y(l, (e) => { 127 h && (window.clearTimeout(h), h = null), !e && (h = window.setTimeout(() => { 128 window.close(); 129 }, 800)); 130 }, { immediate: !0 }); 131 let _ = (t) => { 132 Number.isInteger(t) && c.start(t).catch(e); 133 }, v = (e) => { 134 e.key !== "portuna-call-window-command" || !e.newValue || b(e.newValue); 135 }, b = (e) => { 136 let t = null; 137 try { 138 t = JSON.parse(e); 139 } catch (e) { 140 return; 141 } 142 !t || Date.now() - t.ts > 1e4 || (window.localStorage.removeItem(C), t.type === "start" && t.chatId !== void 0 && _(t.chatId)); 143 }; 144 return i(() => { 145 let e = parseInt(r.query.start); 146 Number.isInteger(e) && _(e); 147 let t = window.localStorage.getItem(C); 148 t && b(t), window.addEventListener("storage", v); 149 }), o(() => { 150 window.removeEventListener("storage", v), h && window.clearTimeout(h); 151 }), n({ componentName: "ChatCallIndex" }), (e, t) => (a(), p("div", { class: s(["chat-call-window", { "chat-call-window-empty": !l.value }]) }, [ 152 u(I), 153 t[1] || (t[1] = m()), 154 l.value ? f("", !0) : (a(), p("div", L, [...t[0] || (t[0] = [ 155 g("i", { 156 class: "material-icons md-36", 157 "aria-hidden": "true", 158 role: "img" 159 }, "phone_missed", -1), 160 m(), 161 g("span", null, "Kein aktives Telefonat", -1) 162 ])])) 163 ], 2)); 164 } 165}); 166//#endregion 167export { R as default }; 168 169//# sourceMappingURL=ChatCallIndex_Cp8syZQu.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.