This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,45 @@
// Metro module 13767 (f13768).
import Module589 from "../../_bundle/Module589";
import Dispatcher from "../../Dispatcher";
let c9577_0;
const handleInit = function handleInit() {
c9577_0 = [];
};
c9577_0 = [];
class AuthSessionsStore extends Module589.Store {
static displayName = "AuthSessionsStore";
getSessions() {
return c9577_0;
}
}
const authSessionsStore = new AuthSessionsStore(Dispatcher, {
LOGOUT: handleInit,
LOGIN_SUCCESS: handleInit,
FETCH_AUTH_SESSIONS_SUCCESS: function handleFetchAuthSessionsSuccess(a0) {
c9577_0 = a0.sessions.map((session) => ({
...session,
approx_last_used_time: new Date(session.approx_last_used_time)
}));
},
LOGOUT_AUTH_SESSIONS_SUCCESS: function handleLogoutAuthSessionsSuccess({ sessionIdHashes }) {
const r1 = [...c9577_0];
let c20711_0 = r1;
let c20711_1 = false;
const _loop = function _loop(c27570_0) {
const r8 = c20711_0.findIndex((item) => item.id_hash === c27570_0);
if (r8 >= 0) {
c20711_0.splice(r8, 1);
c20711_1 = true;
}
};
for (const item of sessionIdHashes) {
_loop(item);
}
if (c20711_1) {
c9577_0 = r1;
return void 0;
}
return false;
}
});
export default authSessionsStore;