100 lines
4.4 KiB
TypeScript
100 lines
4.4 KiB
TypeScript
/* Metro module 10912; source: modules/notifications/RpcNotificationSettingsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 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_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
const env0_6 = {};
|
|
const Store = (importDefault(566) /* metro dependency 566: 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});
|
|
(require(2) /* metro dependency 2 */).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 closure = RpcNotificationSettingsStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'initialize', value: function() {
|
|
this.waitFor(AuthenticationStore);
|
|
}}, {key: 'areSlayerNotificationsSuppressed', value: value_83635}]);
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
|
|
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 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];
|
|
getId = AuthenticationStore.getId;
|
|
if (property !== Reflect.apply(getId, AuthenticationStore, [])) {
|
|
r5 = propertyName2;
|
|
continue;
|
|
}
|
|
break loopExit1;
|
|
}
|
|
return true;
|
|
}
|
|
|