// Module ID: 14161 // Function ID: 14162 // Name: handleInit // Dependencies: [589, 709, 2] // Module 14161 (handleInit) import initializeDefault from "initialize" /* 589 */; import dispatcherDefault from "dispatcher" /* 709 */; function handleInit() { closure_0 = []; } let closure_0 = []; const Store = initializeDefault.Store; class AuthSessionsStore extends Store { } AuthSessionsStore.prototype["getSessions"] = function getSessions() { return closure_0; }; AuthSessionsStore.displayName = "AuthSessionsStore"; const authSessionsStore = new AuthSessionsStore(dispatcherDefault, { LOGOUT: handleInit, LOGIN_SUCCESS: handleInit, FETCH_AUTH_SESSIONS_SUCCESS: function handleFetchAuthSessionsSuccess(sessions) { sessions = sessions.sessions; closure_0 = sessions.map((approx_last_used_time) => { const obj = {}; const merged = Object.assign(approx_last_used_time); obj.approx_last_used_time = new Date(approx_last_used_time.approx_last_used_time); return obj; }); }, LOGOUT_AUTH_SESSIONS_SUCCESS: function handleLogoutAuthSessionsSuccess(arg0) { let items; c1 = undefined; items = [...items]; c1 = false; for (const item10014 of tmp) { let tmp2 = (function _loop(item10014) { items = item10014; const findIndexResult = items.findIndex((id_hash) => id_hash.id_hash === closure_0); if (findIndexResult >= 0) { items.splice(findIndexResult, 1); c1 = true; } })(item10014); continue; } if (!c1) { return false; } } }); const result = require("set").fileFinishedImporting("modules/auth_sessions/AuthSessionsStore.tsx"); export default authSessionsStore;