decord/beta/source/stores/SelfPresenceStoreManager.tsx

31 lines
1.2 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 18244
// Function ID: 18245
// Name: SelfPresenceStoreManager
2026-10-12 16:32:48 +00:00
// Dependencies: [5759, 6808, 584, 2]
2026-10-12 16:32:48 +00:00
// Module 18244 (SelfPresenceStoreManager)
2026-10-07 22:43:51 +00:00
import DispatcherDefault from "Dispatcher" /* 584 */;
2026-10-12 16:32:48 +00:00
import SelfPresenceStore from "SelfPresenceStore" /* 5759 */;
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6808 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
let map;
function handleChange() {
const obj = DispatcherDefault;
2026-10-01 14:13:23 +00:00
const obj2 = { type: "SELF_PRESENCE_STORE_UPDATE", status: SelfPresenceStore.getStatus(), activities: SelfPresenceStore.getActivities(true), hiddenActivities: SelfPresenceStore.getHiddenActivities() };
obj.dispatch(obj2);
}
2026-10-01 14:13:23 +00:00
class SelfPresenceStoreManager extends AutomaticLifecycleManager {
constructor() {
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
map = new Map();
applyArgumentsResult.stores = map.set(SelfPresenceStore, handleChange);
return applyArgumentsResult;
}
}
2026-10-01 14:13:23 +00:00
const selfPresenceStoreManager = new SelfPresenceStoreManager();
const result = size.fileFinishedImporting("stores/SelfPresenceStoreManager.tsx");
2026-10-01 14:13:23 +00:00
export default selfPresenceStoreManager;