decord/source/stores/native/NUFStore.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

82 lines
2 KiB
TypeScript

// Module ID: 7715
// Function ID: 7716
// Name: NUFStore
// Dependencies: [1979, 4255, 504, 573, 2]
// Module 7715 (NUFStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import GuildStore from "GuildStore" /* 1979 */;
import RelationshipStore from "RelationshipStore" /* 4255 */;
function handleCacheOrSocketLoaded() {
let flag = false;
c2 = false;
const tmp = GuildStore.getGuildCount() > 0;
if (tmp !== closure_3) {
closure_3 = tmp;
flag = true;
}
if (tmp !== closure_4) {
closure_4 = tmp;
flag = true;
}
return flag;
}
function handleUpdate() {
if (c2) {
return false;
} else {
const tmp2 = GuildStore.getGuildCount() > 0;
let flag = false;
if (tmp2 !== closure_3) {
closure_3 = tmp2;
flag = true;
}
if (tmp2 !== closure_4) {
closure_4 = tmp2;
flag = true;
}
return flag;
}
}
let c2 = false;
let closure_3 = false;
let closure_4 = false;
const PersistedStore = initializeDefault.PersistedStore;
class NUFStore extends PersistedStore {
}
const prototype = NUFStore.prototype;
prototype["initialize"] = function initialize() {
this.waitFor(RelationshipStore, GuildStore);
const items = [RelationshipStore, GuildStore];
this.syncWith(items, handleUpdate);
};
prototype["getState"] = function getState() {
return {};
};
Object.defineProperty(prototype, "showMentionsInNotificationTab", {
get: function showMentionsInNotificationTab() {
return closure_4;
},
set: undefined
});
Object.defineProperty(prototype, "showQuickSwitcher", {
get: function showQuickSwitcher() {
return closure_3;
},
set: undefined
});
NUFStore.displayName = "NUFStore";
NUFStore.persistKey = "NUFStore";
const nUFStore = new NUFStore(DispatcherDefault, {
CACHE_LOADED: function handleCacheLoaded() {
c2 = true;
},
CACHE_LOADED_LAZY: handleCacheOrSocketLoaded,
CONNECTION_OPEN: handleCacheOrSocketLoaded
});
const size = fn(2);
const result = size.fileFinishedImporting("stores/native/NUFStore.tsx");
export default nUFStore;