Files
2026-07-28 01:06:53 +03:00

115 lines
6.0 KiB
TypeScript

/* Metro module 10912; source: modules/notifications/RpcNotificationSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun83628(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:6, offset: 0x01f21c60, size: 301 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_6 = {};
const Store = (Flux).Store;
let value = _fun83632(Store);
value.displayName = 'RpcNotificationSettingsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{RPC_APP_DISCONNECTED: RPC_APP_DISCONNECTED_83636,
SET_RPC_NOTIFICATION_SETTINGS: SET_RPC_NOTIFICATION_SETTINGS});
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/RpcNotificationSettingsStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_83629() { // fn#83629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:158, offset: 0x01f21d8d, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_83629_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun83632(a0) { // fn#83632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:366, offset: 0x01f21def, size: 99 bytes, params: 2, frame: 16
const RpcNotificationSettingsStore2 = RpcNotificationSettingsStore;
Inherits(RpcNotificationSettingsStore2, a0);
return CreateClass(RpcNotificationSettingsStore2, [{key: 'initialize', value: function() {
this.waitFor(AuthenticationStore);
}}, {key: 'areSlayerNotificationsSuppressed', value: value_83635}]);
function RpcNotificationSettingsStore() { // fn#83633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:378, offset: 0x00e3db8d, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, RpcNotificationSettingsStore);
const value3 = env1_3(RpcNotificationSettingsStore);
return env1_2(this, _isNativeReflectConstruct_83629() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_83635() { // fn#83635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:811, offset: 0x01f21e52, size: 61 bytes, params: 1, frame: 16
var propertyName;
var propertyName2;
var property;
var authenticationStoreBinding;
var getId;
const properties = Object.keys(env1_6);
const properties2 = 0;
const properties3 = properties.length;
if (properties === undefined) {
return false;
}
let r5 = properties2;
loopExit1: while (true) {
propertyName = properties[r5];
propertyName2 = r5 + 1;
if (propertyName === undefined) {
return false;
}
property = env1_6[propertyName];
authenticationStoreBinding = AuthenticationStore;
getId = authenticationStoreBinding.getId;
if (property !== Reflect.apply(getId, authenticationStoreBinding, [])) {
r5 = propertyName2;
continue;
}
break loopExit1;
}
return true;
}
}
function RPC_APP_DISCONNECTED_83636({socketId}) { // fn#83636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:982, offset: 0x01f21e8f, size: 24 bytes, params: 2, frame: 2
delete env0_6[socketId];
}
function SET_RPC_NOTIFICATION_SETTINGS(a0) { // fn#83637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11098:1071, offset: 0x01f21ea7, size: 55 bytes, params: 2, frame: 4
delete env0_6[a0.socketId];
if (a0.suppressNotifications) {
env0_6[a0.socketId] = a0.targetUserId;
}
}
}
global.__d(_fun83628, 10912, [6, 7, 15, 17, 18, 1226, 566, 694,
2]) /* metro module 10912, dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 2] */;