Files
discord-decomp/sources/modules/conversations/ConversationVisibilityStore.tsx
T
2026-07-28 01:06:53 +03:00

92 lines
5.2 KiB
TypeScript

/* Metro module 4835; source: modules/conversations/ConversationVisibilityStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun42301(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:6, offset: 0x01135935, size: 271 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const DeviceSettingsStore = (Flux).DeviceSettingsStore;
let value = _fun42305(DeviceSettingsStore);
value.displayName = 'ConversationVisibilityStore';
value.persistKey = 'ConversationVisibilityStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{CONVERSATIONS_TOGGLE_HIGHLIGHTING: CONVERSATIONS_TOGGLE_HIGHLIGHTING});
(FileImportTrackerModule).fileFinishedImporting('modules/conversations/ConversationVisibilityStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_42302() { // fn#42302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:148, offset: 0x01135a44, size: 94 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_42302_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun42305(a0) { // fn#42305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:356, offset: 0x01135aa2, size: 139 bytes, params: 2, frame: 16
const ConversationVisibilityStore2 = ConversationVisibilityStore;
Inherits(ConversationVisibilityStore2, a0);
return CreateClass(ConversationVisibilityStore2, [{key: 'initialize', value: function(a0) {
var r1;
var value = undefined;
r1 = a0 == null ? value : a0.highlightingEnabled;
env1_5 = r1 == null || r1;
return value;
}}, {key: 'isHighlightingEnabled', value: value_42308}, {key: 'getState', value: value_42309},
{key: 'getUserAgnosticState', value: value_42310}]);
function ConversationVisibilityStore() { // fn#42306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:368, offset: 0x00c7a0d6, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_0(this, ConversationVisibilityStore);
const value3 = env1_3(ConversationVisibilityStore);
return env1_2(this, _isNativeReflectConstruct_42302() ? global.Reflect.construct(value3, arguments,
env1_3(this).constructor) : value3.apply(this, arguments));
}
function value_42308() { // fn#42308, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
return env1_5;
}
function value_42309() { // fn#42309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:872, offset: 0x01135b56, size: 16 bytes, params: 1, frame: 2
return {highlightingEnabled: env1_5};
}
function value_42310() { // fn#42310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:949, offset: 0x01135b56, size: 16 bytes, params: 1, frame: 2
return {highlightingEnabled: env1_5};
}
}
function CONVERSATIONS_TOGGLE_HIGHLIGHTING() { // fn#42311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5013:1166, offset: 0x01135b66, size: 18 bytes, params: 1, frame: 2
result = !env0_5;
}
}
global.__d(_fun42301, 4835, [6, 7, 15, 17, 18, 566, 694,
2]) /* metro module 4835, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;