Files
discord-decomp/sources/stores/CollapsedVoiceChannelStore.tsx
2026-07-28 01:06:53 +03:00

120 lines
6.4 KiB
TypeScript

/* Metro module 5091; source: stores/CollapsedVoiceChannelStore.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 21, 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 SnowflakeUtils from '../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import ChannelStore from './ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun44219(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:6, offset: 0x0116aa35, size: 320 bytes, params: 8, frame: 19
const CONNECTION_OPEN_442232 = CONNECTION_OPEN_44223;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {};
const PersistedStore = (Flux).PersistedStore;
let value = _fun44225(PersistedStore);
value.displayName = 'CollapsedVoiceChannelStore';
value.persistKey = 'collapsedChannels';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{CONNECTION_OPEN: CONNECTION_OPEN_442232, OVERLAY_INITIALIZE: CONNECTION_OPEN_442232,
CHANNEL_COLLAPSE: CHANNEL_COLLAPSE_44231});
(FileImportTrackerModule).fileFinishedImporting('stores/CollapsedVoiceChannelStore.tsx');
exports.default = value;
function _isNativeReflectConstruct_44220() { // fn#44220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:158, offset: 0x0116ab75, 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_44220_isNativeReflectConstruct = function() {
return !!result;
})();
}
function CONNECTION_OPEN_44223() { // fn#44223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:364, offset: 0x0116abd3, size: 58 bytes, params: 1, frame: 12
(SnowflakeUtils).keys(env0_9).forEach(_fun44224);
function _fun44224(a0) { // fn#44224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:421, offset: 0x0116ac0d, size: 38 bytes, params: 2, frame: 12
if (ChannelStore.getChannel(a0) == null) {
delete env1_9[a0];
}
}
}
function _fun44225(a0) { // fn#44225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:469, offset: 0x0116ac33, size: 139 bytes, params: 2, frame: 16
const CollapsedVoiceChannelStore2 = CollapsedVoiceChannelStore;
Inherits(CollapsedVoiceChannelStore2, a0);
return CreateClass(CollapsedVoiceChannelStore2, [{key: 'initialize', value: value_44227}, {key: 'getState',
value: value_44228}, {key: 'getCollapsed', value: value_44229}, {key: 'isCollapsed', value: value_44230}]);
function CollapsedVoiceChannelStore() { // fn#44226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:481, offset: 0x00ec62ac, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, CollapsedVoiceChannelStore);
const value3 = env1_5(CollapsedVoiceChannelStore);
return env1_4(this, _isNativeReflectConstruct_44220() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_44227(a0) { // fn#44227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:829, offset: 0x0116acbe, size: 42 bytes, params: 2, frame: 13
const value = a0;
this.waitFor(ChannelStore);
env1_9 = value ?? env1_8;
}
function value_44228() { // fn#44228, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_44229() { // fn#44229, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_44230(a0) { // fn#44230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:990, offset: 0x0116ace8, size: 21 bytes, params: 2, frame: 2
const value = environment.__proto__;
return env1_9[a0] || false;
}
}
function CHANNEL_COLLAPSE_44231({channelId}) { // fn#44231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5269:1238, offset: 0x0116acfd, size: 59 bytes, params: 2, frame: 13
var r3;
var value2;
const property = env0_9[channelId];
const binding = env0_9;
if (property) {
delete binding[channelId];
r3 = property;
} else {
value2 = true;
binding[channelId] = value2;
r3 = value2;
}
copyDataProperties({}, env0_9, r3);
}
}
global.__d(_fun44219, 5091, [6, 7, 15, 17, 18, 1379, 21, 566, 694,
2]) /* metro module 5091, dependencies: [6, 7, 15, 17, 18, 1379, 21, 566, 694, 2] */;