decord/source/modules/notifications/RpcNotificationSettingsStore.tsx

88 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 10255
// Function ID: 79196
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 1194, 566, 686, 2]
2026-07-24 07:16:23 +00:00
// Module 10255 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import initialize from "initialize";
import dispatcher from "dispatcher";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
let initialize = !valueOf.call(Reflect.construct(Boolean, [], () => {
2026-07-20 16:05:17 +00:00
}));
function _isNativeReflectConstruct() {
2026-07-23 10:11:24 +00:00
return initialize;
2026-07-20 16:05:17 +00:00
}
const result = _isNativeReflectConstruct();
}
let closure_6 = {};
2026-07-23 10:11:24 +00:00
let tmp2 = ((Store) => {
2026-07-20 16:05:17 +00:00
class RpcNotificationSettingsStore {
constructor() {
self = this;
tmp = RpcNotificationSettingsStore(this, RpcNotificationSettingsStore);
2026-07-23 10:11:24 +00:00
obj = outer1_3(RpcNotificationSettingsStore);
tmp2 = outer1_2;
if (outer1_7()) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis;
_Reflect = Reflect;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_3;
2026-07-20 16:05:17 +00:00
tmp8 = arguments;
2026-07-23 10:11:24 +00:00
constructResult = Reflect.construct(obj, arguments, outer1_3(self).constructor);
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments;
tmp4 = arguments;
constructResult = obj(...arguments);
}
return tmp2(self, constructResult);
}
}
callback2(RpcNotificationSettingsStore, Store);
let obj = {
key: "initialize",
value() {
2026-07-23 10:11:24 +00:00
this.waitFor(outer1_5);
2026-07-20 16:05:17 +00:00
}
};
const items = [obj, ];
obj = {
key: "areSlayerNotificationsSuppressed",
value() {
2026-07-23 10:11:24 +00:00
for (const key10002 in outer1_6) {
2026-07-20 16:05:17 +00:00
let tmp = key10002;
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_6;
let tmp3 = outer1_5;
if (outer1_6[key10002] !== outer1_5.getId()) {
2026-07-20 16:05:17 +00:00
continue;
} else {
let flag = true;
return true;
}
}
return false;
}
};
items[1] = obj;
return callback(RpcNotificationSettingsStore, items);
2026-07-23 10:11:24 +00:00
})(require("initialize").Store);
2026-07-20 16:05:17 +00:00
tmp2.displayName = "RpcNotificationSettingsStore";
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
RPC_APP_DISCONNECTED: function handleRpcAppDisconnected(arg0) {
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
},
SET_RPC_NOTIFICATION_SETTINGS: function handleSetRpcNotificationSettings(suppressNotifications) {
2026-07-23 10:11:24 +00:00
delete tmp2[tmp];
2026-07-20 16:05:17 +00:00
if (suppressNotifications.suppressNotifications) {
closure_6[suppressNotifications.socketId] = suppressNotifications.targetUserId;
}
}
});
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/notifications/RpcNotificationSettingsStore.tsx");
2026-07-20 16:05:17 +00:00
export default tmp2;