This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

+284 -251
View File
@@ -1,4 +1,15 @@
/* Metro module 12552; source: modules/guild_home/ActiveChannelsStore.tsx; dependencies: [6, 7, 15, 17, 18, 1379, 3969, 1386, 21, 22, 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 ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import SelectedGuildStore from '../../stores/SelectedGuildStore.tsx'; /* Metro dependency 3969 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
function _fun95994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:6, offset: 0x02152fd3, size: 498 bytes, params: 8, frame: 20
const resetStore = function() {
env0_11 = {};
@@ -6,295 +17,317 @@ function _fun95994(global, require, importDefault, importAll, module, exports, d
env0_13 = {};
env0_14 = {};
};
const closure = CHANNEL_DELETE_96002;
const CHANNEL_DELETE_960022 = CHANNEL_DELETE_96002;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const selectedGuildStore = importDefault(3969) /* metro dependency 3969: SelectedGuildStore */;
const env0_9 = (require(1386) /* metro dependency 1386: ChannelConstants */).isGuildHomeChannel;
let env0_11 = {};
let env0_12 = {};
let env0_13 = {};
let env0_14 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun96003(Store);
value.displayName = 'ActiveChannelsStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CHANNEL_SELECT: CHANNEL_SELECT_96010,
MESSAGE_CREATE: MESSAGE_CREATE_96014, GUILD_DELETE: GUILD_DELETE_96015, CHANNEL_DELETE: closure,
THREAD_DELETE: closure, ACTIVE_CHANNELS_FETCH_START: ACTIVE_CHANNELS_FETCH_START,
MESSAGE_CREATE: MESSAGE_CREATE_96014, GUILD_DELETE: GUILD_DELETE_96015, CHANNEL_DELETE: CHANNEL_DELETE_960022,
THREAD_DELETE: CHANNEL_DELETE_960022, ACTIVE_CHANNELS_FETCH_START: ACTIVE_CHANNELS_FETCH_START,
ACTIVE_CHANNELS_FETCH_SUCCESS: ACTIVE_CHANNELS_FETCH_SUCCESS,
ACTIVE_CHANNELS_FETCH_FAILURE: ACTIVE_CHANNELS_FETCH_FAILURE, CONNECTION_OPEN: CONNECTION_OPEN_96021});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/ActiveChannelsStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/ActiveChannelsStore.tsx');
exports.default = value;
exports.MAX_STORED_MESSAGES = 26;
}
function _isNativeReflectConstruct_95995() { // fn#95995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:197, offset: 0x021531c5, 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_95995_isNativeReflectConstruct = function() {
return !!result;
})();
}
function truncateOldMessageData(a0) { // fn#95999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:462, offset: 0x02153246, size: 234 bytes, params: 2, frame: 21
var defaultImport;
var fromTimestamp;
var Date;
var index;
var Math;
var value3;
var binding;
var defaultImport3;
const property = env0_12[a0];
if (property != null) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
fromTimestamp = defaultImport.fromTimestamp;
Date = global.Date;
var env0_0 = Reflect.apply(fromTimestamp, defaultImport, [Date.now() - env0_10]);
index = (importDefault(22) /* metro dependency 22 */).findIndex(property, _fun96000);
if (index === -1) {
env0_12[a0] = [];
} else {
Math = global.Math;
value3 = Math.max(index, property.length - 26);
binding = env0_12;
defaultImport3 = importDefault(22) /* metro dependency 22 */;
binding[a0] = defaultImport3.slice(property, value3);
function _isNativeReflectConstruct_95995() { // fn#95995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:197, offset: 0x021531c5, 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) {
}
binding = env0_13;
Date = global.Date;
binding[a0] = Date.now();
return (_isNativeReflectConstruct_95995_isNativeReflectConstruct = function() {
return !!result;
})();
}
}
function addMessage(a0, a1, a2, a3) { // fn#96001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:754, offset: 0x0215336c, size: 151 bytes, params: 5, frame: 15
let property = env0_11[a0];
property.add(a1);
property = env0_13[a1];
if (property == null || property + 300000 > global.Date.now()) {
truncateOldMessageData(a1);
function truncateOldMessageData(a0) { // fn#95999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:462, offset: 0x02153246, size: 234 bytes, params: 2, frame: 21
var defaultImport;
var fromTimestamp;
var Date;
var index;
var Math;
var value3;
var binding;
var defaultImport3;
const property = env0_12[a0];
if (property != null) {
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
fromTimestamp = defaultImport.fromTimestamp;
Date = global.Date;
var env0_0 = Reflect.apply(fromTimestamp, defaultImport, [Date.now() - env0_10]);
index = (importDefault(22) /* metro dependency 22 */).findIndex(property, _fun96000);
if (index === -1) {
env0_12[a0] = [];
} else {
Math = global.Math;
value3 = Math.max(index, property.length - 26);
binding = env0_12;
defaultImport3 = importDefault(22) /* metro dependency 22 */;
binding[a0] = defaultImport3.slice(property, value3);
}
binding = env0_13;
Date = global.Date;
binding[a0] = Date.now();
}
function _fun96000({id}) { // fn#96000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:629, offset: 0x02153330, size: 60 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.compare(id, env0_0);
return value > 0;
}
}
if (env0_12[a1] == null) {
env0_12[a1] = [];
function addMessage(a0, a1, a2, a3) { // fn#96001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:754, offset: 0x0215336c, size: 151 bytes, params: 5, frame: 15
let property = env0_11[a0];
property.add(a1);
property = env0_13[a1];
if (property == null || property + 300000 > global.Date.now()) {
truncateOldMessageData(a1);
}
if (env0_12[a1] == null) {
env0_12[a1] = [];
}
env0_12[a1].push({id: a2, userId: a3});
}
env0_12[a1].push({id: a2, userId: a3});
}
function CHANNEL_DELETE_96002({channel}) { // fn#96002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:910, offset: 0x02153403, size: 41 bytes, params: 2, frame: 4
delete env0_12[channel.id];
delete env0_13[channel.id];
}
function CHANNEL_DELETE_96002({channel}) { // fn#96002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:910, offset: 0x02153403, size: 41 bytes, params: 2, frame: 4
delete env0_12[channel.id];
delete env0_13[channel.id];
}
function _fun96003(a0) { // fn#96003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:988, offset: 0x0215342c, size: 176 bytes, params: 2, frame: 16
const closure = ActiveChannelsStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'initialize', value: function() {
this.waitFor(ChannelStore, SelectedGuildStore);
}}, {key: 'getActiveChannelsFetchStatus', value: value_96006}, {key: 'getActiveChannelIds', value: value_96007},
{key: 'getChannelMessageData', value: value_96008}, {key: 'shouldFetch', value: value_96009}]);
}
function _fun96003(a0) { // fn#96003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:988, offset: 0x0215342c, size: 176 bytes, params: 2, frame: 16
const ActiveChannelsStore2 = ActiveChannelsStore;
Inherits(ActiveChannelsStore2, a0);
return CreateClass(ActiveChannelsStore2, [{key: 'initialize', value: function() {
this.waitFor(ChannelStore, SelectedGuildStore);
}}, {key: 'getActiveChannelsFetchStatus', value: value_96006}, {key: 'getActiveChannelIds', value: value_96007},
{key: 'getChannelMessageData', value: value_96008}, {key: 'shouldFetch', value: value_96009}]);
function ActiveChannelsStore() { // fn#96004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1000, offset: 0x00e474d4, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, ActiveChannelsStore);
const value3 = env1_5(ActiveChannelsStore);
return env1_4(this, _isNativeReflectConstruct_95995() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function CHANNEL_SELECT_96010({channelId, guildId}) { // fn#96010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1717, offset: 0x0215350d, size: 213 bytes, params: 2, frame: 18
var property;
var defaultImport;
var chain;
var Array;
var value6;
if (isGuildHomeChannel(channelId)) {
if (guildId == null) {
function value_96006(a0) { // fn#96006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1386, offset: 0x00f7ecf6, size: 16 bytes, params: 2, frame: 2
return env1_14[a0];
}
function value_96007(a0) { // fn#96007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1445, offset: 0x0108d3ec, size: 16 bytes, params: 2, frame: 2
return env1_11[a0];
}
function value_96008(a0) { // fn#96008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1506, offset: 0x00f8559b, size: 16 bytes, params: 2, frame: 2
return env1_12[a0];
}
function value_96009(a0) { // fn#96009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1557, offset: 0x021534dc, size: 49 bytes, params: 2, frame: 5
var r0;
var property;
let value = environment.__proto__;
const value2 = env1_11[a0] == null;
if (value2) {
property = env1_14[a0];
value = property != null;
value = !(value && property.loading);
r0 = value;
} else {
r0 = value2;
}
return r0;
}
}
function CHANNEL_SELECT_96010({channelId, guildId}) { // fn#96010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1717, offset: 0x0215350d, size: 213 bytes, params: 2, frame: 18
var property;
var defaultImport;
var chain;
var Array;
var value6;
if (isGuildHomeChannel(channelId)) {
if (guildId == null) {
return false;
}
property = env0_11[guildId];
if (property == null) {
return false;
}
property.forEach(_fun96011);
defaultImport = importDefault(22) /* metro dependency 22 */;
chain = defaultImport.chain;
Array = global.Array;
value6 = Reflect.apply(chain, defaultImport,
[Array.from(property)]).filter(_fun96012).sortBy(_fun96013).value();
env0_11[guildId] = new global.Set();
return undefined;
}
return false;
function _fun96011(a0) { // fn#96011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1842, offset: 0x021535e2, size: 57 bytes, params: 2, frame: 14
const truncateOldMessageDataBinding = truncateOldMessageData;
const value2 = undefined;
truncateOldMessageDataBinding(a0);
const property = env1_12[a0];
if ((property == null ? value2 : property.length) === 0) {
delete env1_12[a0];
}
return value2;
}
function _fun96012(a0) { // fn#96012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1974, offset: 0x0215361b, size: 16 bytes, params: 2, frame: 2
return a0 in env1_12;
}
function _fun96013(a0) { // fn#96013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1994, offset: 0x0215362b, size: 47 bytes, params: 2, frame: 4
const value = environment.__proto__;
return -(env1_12[a0]?.length ?? 0);
}
}
function MESSAGE_CREATE_96014({channelId, message, optimistic, isPushNotification}) { // fn#96014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2103, offset: 0x0215365a, size: 143 bytes, params: 2, frame: 21
var r1;
var r0;
var value4;
var addMessageBinding;
var id2;
var author;
if (optimistic) {
return false;
}
property = env0_11[guildId];
if (property == null) {
if (isPushNotification) {
return false;
}
property.forEach(_fun96011);
defaultImport = importDefault(22) /* metro dependency 22 */;
chain = defaultImport.chain;
Array = global.Array;
value6 = Reflect.apply(chain, defaultImport,
[Array.from(property)]).filter(_fun96012).sortBy(_fun96013).value();
env0_11[guildId] = new global.Set();
return undefined;
}
return false;
}
function MESSAGE_CREATE_96014({channelId, message, optimistic, isPushNotification}) { // fn#96014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2103, offset: 0x0215365a, size: 143 bytes, params: 2, frame: 21
var r1;
var r0;
var value4;
var addMessageBinding;
var id2;
var author;
if (optimistic) {
return false;
}
if (isPushNotification) {
return false;
}
var value;
const channel = ChannelStore.getChannel(channelId);
if (channel == null) {
return false;
}
const guild_id = channel.guild_id;
const value3 = guild_id != null;
if (value3) {
value4 = env0_11[guild_id] != null;
if (value4) {
addMessageBinding = addMessage;
id2 = message.id;
author = message.author;
value = undefined;
addMessageBinding(guild_id, channelId, id2, author == null ? value : author.id);
r1 = value;
var value;
const channel = ChannelStore.getChannel(channelId);
if (channel == null) {
return false;
}
const guild_id = channel.guild_id;
const value3 = guild_id != null;
if (value3) {
value4 = env0_11[guild_id] != null;
if (value4) {
addMessageBinding = addMessage;
id2 = message.id;
author = message.author;
value = undefined;
addMessageBinding(guild_id, channelId, id2, author == null ? value : author.id);
r1 = value;
} else {
r1 = value4;
}
r0 = r1;
} else {
r1 = value4;
r0 = value3;
}
r0 = r1;
} else {
r0 = value3;
return r0;
}
return r0;
}
function ACTIVE_CHANNELS_FETCH_START({guildId}) { // fn#96016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2525, offset: 0x021536e9, size: 59 bytes, params: 2, frame: 12
const binding = env0_14;
const object2 = {'loading': true, 'error': null};
const Date = global.Date;
object2.fetchedAt = Date.now();
binding[guildId] = object2;
}
function GUILD_DELETE_96015({guild}) { // fn#96015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2374, offset: 0x01f1e4df, size: 28 bytes, params: 2, frame: 2
delete env0_11[guild.id];
}
function ACTIVE_CHANNELS_FETCH_SUCCESS({guildId, channels}) { // fn#96017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2659, offset: 0x02153724, size: 122 bytes, params: 2, frame: 17
let binding = env0_14;
const object2 = {'loading': false, 'error': null};
const Date = global.Date;
object2.fetchedAt = Date.now();
binding[guildId] = object2;
binding = env0_11;
const Set = global.Set;
binding[guildId] = new Set();
channels.forEach(function({channel_id, messages}) {
messages.forEach(_fun96019);
});
}
function ACTIVE_CHANNELS_FETCH_START({guildId}) { // fn#96016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2525, offset: 0x021536e9, size: 59 bytes, params: 2, frame: 12
const binding = env0_14;
const object = {'loading': true, 'error': null};
const Date = global.Date;
object.fetchedAt = Date.now();
binding[guildId] = object;
}
function ACTIVE_CHANNELS_FETCH_FAILURE({guildId, error}) { // fn#96020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2920, offset: 0x021537f5, size: 48 bytes, params: 2, frame: 4
env0_14[guildId] = {'loading': false, 'error': null, 'fetchedAt': null, error: error};
}
function ACTIVE_CHANNELS_FETCH_SUCCESS({guildId, channels}) { // fn#96017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2659, offset: 0x02153724, size: 122 bytes, params: 2, frame: 17
let binding = env0_14;
const object = {'loading': false, 'error': null};
const Date = global.Date;
object.fetchedAt = Date.now();
binding[guildId] = object;
binding = env0_11;
const Set = global.Set;
binding[guildId] = new Set();
channels.forEach(function({channel_id, messages}) {
messages.forEach(_fun96019);
});
function _fun96018({channel_id, messages}) { // fn#96018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2799, offset: 0x0215379e, size: 41 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
addMessage(guildId, channel_id, a0.message_id, a0.user_id);
});
function _fun96019({message_id, user_id}) { // fn#96019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2840, offset: 0x021537c7, size: 46 bytes, params: 2, frame: 17
addMessage(guildId, channel_id, message_id, user_id);
}
function CONNECTION_OPEN_96021() { // fn#96021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:3041, offset: 0x02153825, size: 210 bytes, params: 1, frame: 19
var resetStoreBinding;
var property;
var property2;
var Array;
var object2;
var value3;
var value4;
var value5;
const guildId = SelectedGuildStore.getGuildId();
if (guildId != null) {
property = env0_14[guildId];
property2 = env0_11[guildId];
Array = global.Array;
value3 = Array.from(property2 ?? []);
value4 = value3.reduce(_fun96022, {});
resetStoreBinding = resetStore;
value5 = undefined;
resetStoreBinding();
if (global.Date.now() - ((property == null ? value5 : property.fetchedAt) ?? 0) < env0_10) {
object2 = {};
object2[guildId] = property;
object2 = {};
object2[guildId] = property2;
copyDataProperties({}, value4, value3);
}
} else {
resetStore();
}
}
function _fun96000({id}) { // fn#96000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:629, offset: 0x02153330, size: 60 bytes, params: 2, frame: 13
let value = environment.__proto__;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.compare(id, env0_0);
return value > 0;
}
function value_96009(a0) { // fn#96009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1557, offset: 0x021534dc, size: 49 bytes, params: 2, frame: 5
var r0;
var property;
let value = environment.__proto__;
const value2 = env1_11[a0] == null;
if (value2) {
property = env1_14[a0];
value = property != null;
value = !(value && property.loading);
r0 = value;
} else {
r0 = value2;
function ACTIVE_CHANNELS_FETCH_FAILURE({guildId, error}) { // fn#96020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2920, offset: 0x021537f5, size: 48 bytes, params: 2, frame: 4
env0_14[guildId] = {'loading': false, 'error': null, 'fetchedAt': null, error: error};
}
return r0;
}
function _fun96011(a0) { // fn#96011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1842, offset: 0x021535e2, size: 57 bytes, params: 2, frame: 14
const truncateOldMessageDataBinding = truncateOldMessageData;
const value2 = undefined;
truncateOldMessageDataBinding(a0);
const property = env1_12[a0];
if ((property == null ? value2 : property.length) === 0) {
delete env1_12[a0];
function CONNECTION_OPEN_96021() { // fn#96021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:3041, offset: 0x02153825, size: 210 bytes, params: 1, frame: 19
var resetStoreBinding;
var property;
var property2;
var Array;
var object;
var value3;
var value4;
var value5;
const guildId = SelectedGuildStore.getGuildId();
if (guildId != null) {
property = env0_14[guildId];
property2 = env0_11[guildId];
Array = global.Array;
value3 = Array.from(property2 ?? []);
value4 = value3.reduce(_fun96022, {});
resetStoreBinding = resetStore;
value5 = undefined;
resetStoreBinding();
if (global.Date.now() - ((property == null ? value5 : property.fetchedAt) ?? 0) < env0_10) {
object = {};
object[guildId] = property;
object = {};
object[guildId] = property2;
copyDataProperties({}, value4, value3);
}
} else {
resetStore();
}
function _fun96022(a0, a1) { // fn#96022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:3161, offset: 0x021538f7, size: 33 bytes, params: 3, frame: 4
a0[a1] = env1_12[a1] ?? [];
return a0;
}
}
return value2;
}
function _fun96012(a0) { // fn#96012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1974, offset: 0x0215361b, size: 16 bytes, params: 2, frame: 2
return a0 in env1_12;
}
function _fun96013(a0) { // fn#96013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:1994, offset: 0x0215362b, size: 47 bytes, params: 2, frame: 4
const value = environment.__proto__;
return -(env1_12[a0]?.length ?? 0);
}
function _fun96018({channel_id, messages}) { // fn#96018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:2799, offset: 0x0215379e, size: 41 bytes, params: 2, frame: 11
messages.forEach(function(a0) {
addMessage(guildId, channel_id, a0.message_id, a0.user_id);
});
}
function _fun96022(a0, a1) { // fn#96022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12742:3161, offset: 0x021538f7, size: 33 bytes, params: 3, frame: 4
a0[a1] = env1_12[a1] ?? [];
return a0;
}
global.__d(_fun95994, 12552, [6, 7, 15, 17, 18, 1379, 3969, 1386, 21, 22, 566, 694,
2]) /* metro module 12552, dependencies: [6, 7, 15, 17, 18, 1379, 3969, 1386, 21, 22, 566, 694, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 14980; source: modules/guild_home/native/GuildFeedConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun113261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15177:6, offset: 0x023f17a6, size: 90 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/native/GuildFeedConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/native/GuildFeedConstants.tsx');
exports.GUILD_FEED_CARD_MARGIN_HORIZONTAL = 12;
exports.GUILD_FEED_MIN_BANNER_HEIGHT = 156;
}
global.__d(_fun113261, 14980, [2]) /* metro module 14980, dependencies: [2] */;
@@ -1,258 +1,342 @@
/* Metro module 14979; source: modules/guild_home/native/components/GuildFeedBanner.tsx; dependencies: [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423, 8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983, 2] */
import UseWindowDimensionsNative from '../../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import GuildStore from '../../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import GuildIcon from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import UseIsWindowLarge from '../../../screen/native/useIsWindowLarge.tsx'; /* Metro dependency 7556 */
import GuildPopoutStore from '../../../guild_profile/GuildPopoutStore.tsx'; /* Metro dependency 12694 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingPresetsModule from '../../../../design/animation/reanimated/timing/timingPresets.tsx'; /* Metro dependency 4507 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as GuildIconModule from '../../../guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as GuildBadgeModule from '../../../guild/native/GuildBadge.tsx'; /* Metro dependency 8642 */
import * as UseDrawerWidthModule from '../../../screen/native/drawer/useDrawerWidth.tsx'; /* Metro dependency 11336 */
import * as GuildFeedConstantsModule from '../GuildFeedConstants.tsx'; /* Metro dependency 14980 */
function _fun113250(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113250, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:6, offset: 0x023f0acb, size: 799 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_4 = value2.View;
const env0_5 = value2.Image;
const guildPopoutStore = importDefault(12694) /* metro dependency 12694: GuildPopoutStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildFeedConstantsModule = require(14980) /* metro dependency 14980: GuildFeedConstants */;
const GUILD_FEED_CARD_MARGIN_HORIZONTAL = guildFeedConstantsModule.GUILD_FEED_CARD_MARGIN_HORIZONTAL;
const env0_9 = guildFeedConstantsModule.GUILD_FEED_MIN_BANNER_HEIGHT;
const env0_10 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
const value4 = require(33) /* metro dependency 33 */;
const env0_11 = value4.jsx;
const env0_12 = value4.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {};
const object4 = {'borderRadius': null, 'height': 64, 'width': 64};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object3.avatar = object4;
let value = ReactModule;
const GUILD_FEED_CARD_MARGIN_HORIZONTAL = GuildFeedConstantsModule.GUILD_FEED_CARD_MARGIN_HORIZONTAL;
const createStyles = CreateStylesModule.createStyles;
object = {};
const object2 = {'borderRadius': null, 'height': 64, 'width': 64};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.avatar = object2;
let BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object3.container = {paddingBottom: 24, backgroundColor: BACKGROUND_SURFACE_HIGH};
object3.description = {marginTop: 4};
object3.textContainer = {'marginTop': null, 'alignItems': 'center', 'flexDirection': 'row',
object.container = {paddingBottom: 24, backgroundColor: BACKGROUND_SURFACE_HIGH};
object.description = {marginTop: 4};
object.textContainer = {'marginTop': null, 'alignItems': 'center', 'flexDirection': 'row',
marginTop: GUILD_FEED_CARD_MARGIN_HORIZONTAL};
object3.content = {width: '100%'};
object3.icon = {marginLeft: 8};
object.content = {width: '100%'};
object.icon = {marginLeft: 8};
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object3.headerContainer = {alignItems: 'center', backgroundColor: BACKGROUND_SURFACE_HIGH};
const object5 = {};
object5.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object5.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object5.marginTop = -16;
object3.headerBorder = object5;
const object6 = {'padding': 4, 'borderRadius': null, 'alignSelf': 'flex-start'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.headerContainer = {alignItems: 'center', backgroundColor: BACKGROUND_SURFACE_HIGH};
const object8 = {};
object8.borderTopRightRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object8.marginTop = -16;
object.headerBorder = object8;
const object9 = {'padding': 4, 'borderRadius': null, 'alignSelf': 'flex-start'};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object6.backgroundColor = BACKGROUND_SURFACE_HIGH;
object3.guildIconContainer = object6;
const object7 = {'width': 4, 'height': 4, 'borderRadius': null, 'marginRight': 4};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object9.backgroundColor = BACKGROUND_SURFACE_HIGH;
object.guildIconContainer = object9;
const object10 = {'width': 4, 'height': 4, 'borderRadius': null, 'marginRight': 4};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object7.backgroundColor = GREEN_360;
object3.dotOnline = object7;
object3.publicInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 12};
object3.publicIcon = {'marginRight': 4, 'width': 14, 'height': 14};
object3.memberInfo = {'marginTop': 4, 'flexDirection': 'row', 'alignItems': 'center'};
object3.title = {maxWidth: '90%'};
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object3]);
object3 = {code: 'function GuildFeedBannerTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
object10.backgroundColor = GREEN_360;
object.dotOnline = object10;
object.publicInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginRight': 12};
object.publicIcon = {'marginRight': 4, 'width': 14, 'height': 14};
object.memberInfo = {'marginTop': 4, 'flexDirection': 'row', 'alignItems': 'center'};
object.title = {maxWidth: '90%'};
const env0_13 = Reflect.apply(createStyles, CreateStylesModule, [object]);
object = {code: 'function GuildFeedBannerTsx1(){const{opacity}=this.__closure;return{opacity:opacity.get()};}'};
value = value.memo(_fun113259);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/native/components/GuildFeedBanner.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/native/components/GuildFeedBanner.tsx');
exports.default = value;
}
function GuildFeedBanner({guild, description, hideDescription, hideMemberCount}) { // fn#113251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1374, offset: 0x023f0dea, size: 1736 bytes, params: 2, frame: 43
var r4;
var r16;
var object;
var features;
var PressableOpacity;
var items9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items10;
var Fragment;
var items11;
let env0_3 = undefined;
const styles = useStyles();
const value3 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(0);
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = GuildFeedBannerY;
closure.__closure = {opacity: value3};
closure.__workletHash = 10872399645496;
closure.__initData = env0_14;
const value4 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
const Math = global.Math;
const value6 = Math.max(0.22 * height, GUILD_FEED_MIN_BANNER_HEIGHT);
const value7 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const binding = env0_3;
binding.useEffect(_fun113253, [guild]);
const value8 = binding.useMemo(_fun113254, [guild]);
const name = guild.name;
description = description ?? guild.description;
description = hideDescription ? undefined : description;
const guildBadgeSource = (require(8642) /* metro dependency 8642: GuildBadge */).getGuildBadgeSource(guild);
closure = onLoad_113255;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStoresObject = fluxModule.useStateFromStoresObject;
const discoverableGuild = Reflect.apply(useStateFromStoresObject, fluxModule, [[GuildPopoutStore], function() {
var object = {};
object.discoverableGuild = GuildPopoutStore.getGuild(guild.id);
return object;
}, [guild]]).discoverableGuild;
const value11 = (importDefault(7556) /* metro dependency 7556: useIsWindowLarge */)();
const value12 = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const width = value12.width;
env0_3 = width;
const value14 = env0_3.useMemo(_fun113257, [width, value12.height, value11,
(require(11336) /* metro dependency 11336: useDrawerWidth */).useDrawerWidth()]);
if (value8 != null) {
r4 = {style: [{height: value6, width: '100%'}, value4], source: value8, onLoad: closure};
} else {
object = {};
object.style = [{height: value6, width: '100%'}, value4];
object.source = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value7) ? importDefault(14981) /* metro dependency 14981 */ : importDefault(14982) /* metro dependency 14982 */;
object.onLoad = closure;
r4 = object;
}
const image = <Image {...r4} />;
const items5 = [styles.headerContainer];
items5[1] = styles.headerBorder;
const items6 = [styles.content];
items6[1] = {width: value14, marginTop: -32};
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items7 = [<View style={styles.guildIconContainer}><GuildIcon style={styles.avatar} guild={guild} size={XLARGE} animate /></View>];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items7[1] = <View style={styles.textContainer}><Text lineClamp={1} variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={styles.title}>{name}</Text>{guildBadgeSource != null ? ((Icon) => <Icon style={styles.icon} source={guildBadgeSource} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon) : null}</View>;
items7[2] = description != null ? <Text style={styles.description} variant="text-sm/medium" color="text-default">{description}</Text> : null;
let r11 = discoverableGuild != null && !hideMemberCount;
if (r11) {
var viewBinding3Props = {style: styles.memberInfo};
features = discoverableGuild.features;
if (features.has(GuildFeatures.DISCOVERABLE)) {
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.publicInfo, accessibilityRole: 'button', onPress: function() {
var defaultImport = importDefault(dependencyMap[28]);
var object = {key: 'DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO'};
object.content = require(dependencyMap[29]).intl.string(require(dependencyMap[29]).t.O8lDI2);
defaultImport.open(object);
}};
items9 = [((Icon) => <Icon style={styles.publicIcon} source={importDefault(14983) /* metro dependency 14983 */} />)((require(1305) /* metro dependency 1305: native */).Icon)];
items9[1] = <Text variant="text-xs/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['B/vjCu'])}</Text>;
r16 = <PressableOpacity {...pressableOpacityProps}>{items9}</PressableOpacity>;
function GuildFeedBanner({guild, description, hideDescription, hideMemberCount}) { // fn#113251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1374, offset: 0x023f0dea, size: 1736 bytes, params: 2, frame: 43
var r4;
var r16;
var object2;
var features;
var PressableOpacity;
var items9;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var items10;
var Fragment;
var items11;
let env0_3 = undefined;
const styles = useStyles();
const value3 = (ReanimatedRexportModule).useSharedValue(0);
const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle;
let closure = GuildFeedBannerY;
closure.__closure = {opacity: value3};
closure.__workletHash = 10872399645496;
closure.__initData = env0_14;
const value4 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [closure]);
const height = (UseWindowDimensionsNative)().height;
const Math = global.Math;
const value6 = Math.max(0.22 * height, GUILD_FEED_MIN_BANNER_HEIGHT);
const value7 = (UseTheme)();
const binding = env0_3;
binding.useEffect(_fun113253, [guild]);
const value8 = binding.useMemo(_fun113254, [guild]);
const name = guild.name;
description = description ?? guild.description;
description = hideDescription ? undefined : description;
const guildBadgeSource = (GuildBadgeModule).getGuildBadgeSource(guild);
closure = onLoad_113255;
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
const discoverableGuild = Reflect.apply(useStateFromStoresObject, FluxModule, [[GuildPopoutStore], function() {
var object = {};
object.discoverableGuild = GuildPopoutStore.getGuild(guild.id);
return object;
}, [guild]]).discoverableGuild;
const value11 = (UseIsWindowLarge)();
const value12 = (UseWindowDimensionsNative)();
const width = value12.width;
env0_3 = width;
const value14 = env0_3.useMemo(_fun113257, [width, value12.height, value11,
(UseDrawerWidthModule).useDrawerWidth()]);
if (value8 != null) {
r4 = {style: [{height: value6, width: '100%'}, value4], source: value8, onLoad: closure};
} else {
r16 = null;
object2 = {};
object2.style = [{height: value6, width: '100%'}, value4];
object2.source = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value7) ? importDefault(14981) /* metro dependency 14981 */ : importDefault(14982) /* metro dependency 14982 */;
object2.onLoad = closure;
r4 = object2;
}
items10 = [r16];
if (discoverableGuild.presenceCount != null) {
if (discoverableGuild.memberCount != null) {
Fragment = env0_3.Fragment;
items11 = [<View style={styles.dotOnline} />];
items11[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.QCNv6P,
{online: discoverableGuild.presenceCount, offline: discoverableGuild.memberCount})}</Text>;
r16 = <Fragment>{items11}</Fragment>;
const image = <Image {...r4} />;
const items5 = [styles.headerContainer];
items5[1] = styles.headerBorder;
const items6 = [styles.content];
items6[1] = {width: value14, marginTop: -32};
const GuildIconSizes = (GuildIconModule).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items7 = [
<View style={styles.guildIconContainer}>
<GuildIcon
style={styles.avatar}
guild={guild}
size={XLARGE}
animate
/>
</View>,
];
const Text = (TextModule).Text;
items7[1] = (
<View style={styles.textContainer}>
<Text
lineClamp={1}
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={styles.title}
>
{name}
</Text>
{
guildBadgeSource != null
? ((Icon) => <Icon style={styles.icon} source={guildBadgeSource} disableColor />)((require(1305) /* metro dependency 1305: native */).Icon)
: null
}
</View>
);
items7[2] = (
description != null
? (
<Text
style={styles.description}
variant="text-sm/medium"
color="text-default"
>
{description}
</Text>
)
: null
);
let r11 = discoverableGuild != null && !hideMemberCount;
if (r11) {
var viewBinding3Props = {style: styles.memberInfo};
features = discoverableGuild.features;
if (features.has(GuildFeatures.DISCOVERABLE)) {
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
var pressableOpacityProps = {style: styles.publicInfo, accessibilityRole: 'button', onPress: function() {
var defaultImport = importDefault(dependencyMap[28]);
var object = {key: 'DISCOVERABLE_GUILD_HEADER_PUBLIC_INFO'};
object.content = require(dependencyMap[29]).intl.string(require(dependencyMap[29]).t.O8lDI2);
defaultImport.open(object);
}};
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
items9 = [
<Icon style={styles.publicIcon} source={importDefault(14983) /* metro dependency 14983 */} />,
];
items9[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['B/vjCu'])}
</Text>
);
r16 = (
<PressableOpacity {...pressableOpacityProps}>
{items9}
</PressableOpacity>
);
} else {
r16 = null;
}
} else {
r16 = null;
items10 = [r16];
if (discoverableGuild.presenceCount != null) {
if (discoverableGuild.memberCount != null) {
Fragment = env0_3.Fragment;
items11 = [
<View style={styles.dotOnline} />,
];
items11[1] = (
<Text variant="text-xs/medium" color="text-default">
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.QCNv6P,
{online: discoverableGuild.presenceCount, offline: discoverableGuild.memberCount})}
</Text>
);
r16 = (
<Fragment>
{items11}
</Fragment>
);
} else {
r16 = null;
}
} else {
r16 = null;
}
items10[1] = r16;
r11 = (
<View {...viewBinding3Props}>
{items10}
</View>
);
}
items10[1] = r16;
r11 = <View {...viewBinding3Props}>{items10}</View>;
}
items7[3] = r11;
return (
<View style={styles.container}>
{image}
<View style={items5}>
<View style={items6}>
{items7}
items7[3] = r11;
return (
<View style={styles.container}>
{image}
<View style={items5}>
<View style={items6}>
{items7}
</View>
</View>
</View>
</View>
);
}
);
function GuildFeedBannerY() { // fn#113252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1509, owner: GuildFeedBanner.y, offset: 0x01c1ea9c, size: 24 bytes, params: 1, frame: 10
const object = {};
object.opacity = env0_1.get();
return object;
}
function _fun113259({guildId, description, hideDescription, hideMemberCount}) { // fn#113259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:3995, offset: 0x023f1723, size: 131 bytes, params: 2, frame: 19
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
return guild == null ? null : <GuildFeedBanner guild={guild} description={description} hideDescription={hideDescription} hideMemberCount={hideMemberCount} />;
}
function _fun113253() { // fn#113253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1671, offset: 0x023f14b2, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(12695) /* metro dependency 12695: GuildPopoutActionCreators */;
value.fetchGuildForPopout(guild.id);
}
function _fun113253() { // fn#113253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1671, offset: 0x023f14b2, size: 50 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(12695) /* metro dependency 12695: GuildPopoutActionCreators */;
value.fetchGuildForPopout(guild.id);
}
function _fun113254() { // fn#113254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1735, offset: 0x023f14e4, size: 244 bytes, params: 1, frame: 19
var r7;
var r5;
var r0;
var moduleValue;
var defaultImport;
var getGuildBannerSource;
var defaultImport2;
var getGuildHomeHeaderSource;
const features = guild.features;
const has = features.has;
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
const value3 = Reflect.apply(has, features, [ANIMATED_BANNER]);
if (value3) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r7 = !moduleValue.isAndroid();
} else {
r7 = value3;
}
const banner = guild.banner;
const value5 = null;
if (value5 != banner) {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildBannerSource = defaultImport.getGuildBannerSource;
guildBinding = guild;
r5 = Reflect.apply(getGuildBannerSource, defaultImport, [{id: guildBinding.id, banner: guildBinding.banner},
r7]);
} else {
r5 = value5;
}
guildBinding = guild;
if (value5 == guildBinding) {
r0 = r5;
} else if (value5 == guild.homeHeader) {
r0 = r5;
} else {
defaultImport2 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildHomeHeaderSource = defaultImport2.getGuildHomeHeaderSource;
guildBinding = guild;
r0 = Reflect.apply(getGuildHomeHeaderSource, defaultImport2, [{id: guildBinding.id,
homeHeader: guildBinding.homeHeader}]);
}
return r0;
}
function GuildFeedBannerOnLoad() { // fn#113255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2095, owner: GuildFeedBanner.onLoad, offset: 0x023f15d8, size: 76 bytes, params: 1, frame: 17
const binding = env0_1;
const set = binding.set;
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [value.withTiming(1,
(TimingPresetsModule).timingSlow)]);
}
function _fun113257() { // fn#113257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2347, offset: 0x023f164b, size: 109 bytes, params: 1, frame: 16
var value3;
let Math = global.Math;
const value2 = Math.min(width, height);
if (env0_2) {
Math = global.Math;
value3 = Math.max(width, height);
Math = global.Math;
return Math.min(value3 - ReactNativeModule.Image, value2);
}
return value2 - 2 * GUILD_FEED_CARD_MARGIN_HORIZONTAL;
}
function _fun113254() { // fn#113254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:1735, offset: 0x023f14e4, size: 244 bytes, params: 1, frame: 19
var r7;
var r5;
var r0;
var moduleValue;
var defaultImport;
var getGuildBannerSource;
var defaultImport2;
var getGuildHomeHeaderSource;
const features = guild.features;
const has = features.has;
const ANIMATED_BANNER = GuildFeatures.ANIMATED_BANNER;
const value3 = Reflect.apply(has, features, [ANIMATED_BANNER]);
if (value3) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
r7 = !moduleValue.isAndroid();
} else {
r7 = value3;
}
const banner = guild.banner;
const value5 = null;
if (value5 != banner) {
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildBannerSource = defaultImport.getGuildBannerSource;
guildBinding = guild;
r5 = Reflect.apply(getGuildBannerSource, defaultImport, [{id: guildBinding.id, banner: guildBinding.banner},
r7]);
} else {
r5 = value5;
function _fun113259({guildId, description, hideDescription, hideMemberCount}) { // fn#113259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:3995, offset: 0x023f1723, size: 131 bytes, params: 2, frame: 19
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
return (
guild == null
? null
: (
<GuildFeedBanner
guild={guild}
description={description}
hideDescription={hideDescription}
hideMemberCount={hideMemberCount}
/>
)
);
}
guildBinding = guild;
if (value5 == guildBinding) {
r0 = r5;
} else if (value5 == guild.homeHeader) {
r0 = r5;
} else {
defaultImport2 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
getGuildHomeHeaderSource = defaultImport2.getGuildHomeHeaderSource;
guildBinding = guild;
r0 = Reflect.apply(getGuildHomeHeaderSource, defaultImport2, [{id: guildBinding.id,
homeHeader: guildBinding.homeHeader}]);
}
return r0;
}
function GuildFeedBannerOnLoad() { // fn#113255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2095, owner: GuildFeedBanner.onLoad, offset: 0x023f15d8, size: 76 bytes, params: 1, frame: 17
const binding = env0_1;
const set = binding.set;
let value = environment.__proto__;
value = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [value.withTiming(1,
(require(4507) /* metro dependency 4507: timingPresets */).timingSlow)]);
}
function _fun113257() { // fn#113257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15176:2347, offset: 0x023f164b, size: 109 bytes, params: 1, frame: 16
var value3;
let Math = global.Math;
const value2 = Math.min(width, height);
if (env0_2) {
Math = global.Math;
value3 = Math.max(width, height);
Math = global.Math;
return Math.min(value3 - env0_5, value2);
}
return value2 - 2 * GUILD_FEED_CARD_MARGIN_HORIZONTAL;
}
global.__d(_fun113250, 14979, [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423,
8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983,
2]) /* metro module 14979, dependencies: [31, 27, 12694, 1867, 14980, 661, 33, 4501, 697, 4017, 1478, 4048, 12695, 477, 1423, 8642, 4504, 4507, 566, 7556, 11336, 4002, 14981, 14982, 6819, 4573, 1305, 5278, 3857, 1244, 14983, 2] */;
@@ -1,44 +1,51 @@
/* Metro module 14588; source: modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx; dependencies: [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374, 2] */
import BaseChannelItem from '../../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelConstantsModule from '../../../../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as RedesignChannelListConstantsModule from '../../../../channel_list_v2/native/RedesignChannelListConstants.tsx'; /* Metro dependency 10980 */
import * as BaseChannelItemModule from '../../../../guild_sidebar/native/BaseChannelItem.tsx'; /* Metro dependency 11846 */
import * as SignPostIconModule from '../../../../../design/components/Icon/native/redesign/generated/SignPostIcon.tsx'; /* Metro dependency 12374 */
function _fun110328(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:6, offset: 0x02374dd1, size: 278 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).Routes;
const env0_5 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_7 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx');
const CHANNEL_MARGIN_VERTICAL = (RedesignChannelListConstantsModule).CHANNEL_MARGIN_VERTICAL;
const createStyles = CreateStylesModule.createStyles;
const object2 = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_7 = Reflect.apply(createStyles, CreateStylesModule, [{container: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/native/components/guild_sidebar/GuildHomeChannelRow.tsx');
exports.default = GuildHomeChannelRow;
function GuildHomeChannelRow({guild, selected}) { // fn#110329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:423, offset: 0x02374ee7, size: 364 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = ReactModule.useCallback(function() {
require(dependencyMap[7]).transitionTo(Routes.CHANNEL(id, StaticChannelRoute.GUILD_HOME));
}, [guild.id]);
const ChannelModes = (BaseChannelItemModule).ChannelModes;
const r6 = selected ? ChannelModes.SELECTED : ChannelModes.DEFAULT;
const defaultImportProps = {onPress: value2, style: styles.container, accessible: true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
let VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [VbpLyU]);
defaultImportProps.accessibilityState = {selected: selected};
defaultImportProps.mode = r6;
const BaseChannelName = (BaseChannelItemModule).BaseChannelName;
string = intl.string;
VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.name = <BaseChannelName name={Reflect.apply(string, intl, [VbpLyU])} mode={r6} />;
const BaseChannelIcon = (BaseChannelItemModule).BaseChannelIcon;
const SignPostIcon = (SignPostIconModule).SignPostIcon;
defaultImportProps.icon = <BaseChannelIcon mode={r6} IconComponent={SignPostIcon} />;
return <BaseChannelItem {...defaultImportProps} />;
}
}
function GuildHomeChannelRow({guild, selected}) { // fn#110329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14785:423, offset: 0x02374ee7, size: 364 bytes, params: 2, frame: 22
const styles = useStyles();
const value2 = env0_3.useCallback(function() {
require(dependencyMap[7]).transitionTo(Routes.CHANNEL(id, StaticChannelRoute.GUILD_HOME));
}, [guild.id]);
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
const r6 = selected ? ChannelModes.SELECTED : ChannelModes.DEFAULT;
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
const defaultImportProps = {onPress: value2, style: styles.container, accessible: true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
let VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.accessibilityLabel = Reflect.apply(string, intl, [VbpLyU]);
defaultImportProps.accessibilityState = {selected: selected};
defaultImportProps.mode = r6;
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
string = intl.string;
VbpLyU = (require(1244) /* metro dependency 1244: indexNative */).t.VbpLyU;
defaultImportProps.name = <BaseChannelName name={Reflect.apply(string, intl, [VbpLyU])} mode={r6} />;
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
const SignPostIcon = (require(12374) /* metro dependency 12374: SignPostIcon */).SignPostIcon;
defaultImportProps.icon = <BaseChannelIcon mode={r6} IconComponent={SignPostIcon} />;
return <BaseChannelItem {...defaultImportProps} />;
}
global.__d(_fun110328, 14588, [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374,
2]) /* metro module 14588, dependencies: [31, 661, 1386, 10980, 33, 4501, 697, 1230, 11846, 1244, 12374, 2] */;
+182 -178
View File
@@ -1,203 +1,207 @@
/* Metro module 14495; source: modules/guild_home/useActiveChannels.tsx; dependencies: [1383, 1379, 3784, 4864, 12552, 661, 1386, 1360, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import ActiveChannelsStore from './ActiveChannelsStore.tsx'; /* Metro dependency 12552 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
import * as ChannelConstantsModule from '../channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
function _fun109691(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:6, offset: 0x02356c0a, size: 228 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(1383) /* metro dependency 1383: ChannelRecord */).isTextChannel;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const activeChannelsStore = importDefault(12552) /* metro dependency 12552: ActiveChannelsStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).Permissions;
const env0_8 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_home/useActiveChannels.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/guild_home/useActiveChannels.tsx');
exports.getActiveTextChannels = getActiveTextChannels;
}
function getActiveTextChannels(a0) { // fn#109692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:303, offset: 0x02356cee, size: 320 bytes, params: 2, frame: 18
var r1;
var r6;
var r3;
var item3;
var item4;
var item5;
let value = a1;
const value2 = undefined;
const iterator = (value !== value2 ? value : [ChannelStore, PermissionStore, ActiveChannelsStore,
UserGuildSettingsStore])[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
let r2 = item2 === value2 ? value2 : item;
if (value) {
r1 = item2;
r2 = value2;
r6 = value;
} else {
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value = item3 === value2;
function getActiveTextChannels(a0) { // fn#109692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:303, offset: 0x02356cee, size: 320 bytes, params: 2, frame: 18
var r1;
var r6;
var r3;
var item3;
var item4;
var item5;
let value = a1;
const value2 = undefined;
const iterator = (value !== value2 ? value : [ChannelStore, PermissionStore, ActiveChannelsStore,
UserGuildSettingsStore])[Symbol.iterator]();
const iterator2 = iterator.next;
let item2 = Reflect.apply(iterator2, iterator, []);
let item = item2.value;
item2 = item2.done ? undefined : iterator;
let r2 = item2 === value2 ? value2 : item;
if (value) {
r1 = item3;
r1 = item2;
r2 = value2;
r6 = value;
} else {
r1 = item3;
r2 = item;
r6 = value;
item3 = Reflect.apply(iterator2, item2, []);
item = item3.value;
item3 = item3.done ? undefined : item2;
value = item3 === value2;
if (value) {
r1 = item3;
r2 = value2;
r6 = value;
} else {
r1 = item3;
r2 = item;
r6 = value;
}
}
}
if (r6) {
r3 = value2;
} else {
item4 = Reflect.apply(iterator2, r1, []);
item = item4.value;
item4 = item4.done ? undefined : r1;
value = item4 === value2;
if (value) {
r1 = item4;
if (r6) {
r3 = value2;
r6 = value;
} else {
r1 = item4;
r3 = item;
r6 = value;
item4 = Reflect.apply(iterator2, r1, []);
item = item4.value;
item4 = item4.done ? undefined : r1;
value = item4 === value2;
if (value) {
r1 = item4;
r3 = value2;
r6 = value;
} else {
r1 = item4;
r3 = item;
r6 = value;
}
}
}
if (r6) {
r2 = value2;
} else {
item5 = Reflect.apply(iterator2, r1, []);
item = item5.value;
item5 = item5.done ? undefined : r1;
value = item5 === value2;
if (value) {
r1 = item5;
if (r6) {
r2 = value2;
r6 = value;
} else {
r1 = item5;
r2 = item;
r6 = value;
}
}
if (!r6) {
r1.return();
}
value = r3.getActiveChannelIds(a0);
if (value != null) {
value = global.Array.from(value);
r3 = value;
} else {
r3 = [];
}
const env0_2 = r2.getMutedChannels(a0);
value = Reflect.apply(r3.map(_fun109693).filter, value,
[(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
return value.filter(_fun109694);
}
function _fun109693(a0) { // fn#109693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:425, offset: 0x02356e2e, size: 22 bytes, params: 2, frame: 11
return env0_0.getChannel(a0);
}
function _fun109694(a0) { // fn#109694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:483, offset: 0x02356e44, size: 247 bytes, params: 2, frame: 16
var r0;
var hasFlag;
var value;
var binding;
var has;
var parent_id;
var value3;
var isThread2;
if (a0 == null) {
value = environment.__proto__;
if (isTextChannel(a0.type)) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [a0.id])) {
return false;
item5 = Reflect.apply(iterator2, r1, []);
item = item5.value;
item5 = item5.done ? undefined : r1;
value = item5 === value2;
if (value) {
r1 = item5;
r2 = value2;
r6 = value;
} else {
r1 = item5;
r2 = item;
r6 = value;
}
parent_id = a0.parent_id;
if (parent_id == null) {
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
if (!r6) {
r1.return();
}
value = r3.getActiveChannelIds(a0);
if (value != null) {
value = global.Array.from(value);
r3 = value;
} else {
r3 = [];
}
const env0_2 = r2.getMutedChannels(a0);
value = Reflect.apply(r3.map(_fun109693).filter, value,
[(require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish]);
return value.filter(_fun109694);
function _fun109693(a0) { // fn#109693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:425, offset: 0x02356e2e, size: 22 bytes, params: 2, frame: 11
return env0_0.getChannel(a0);
}
function _fun109694(a0) { // fn#109694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14692:483, offset: 0x02356e44, size: 247 bytes, params: 2, frame: 16
var r0;
var hasFlag;
var value;
var binding;
var has;
var parent_id;
var value3;
var isThread2;
if (a0 == null) {
value = environment.__proto__;
if (isTextChannel(a0.type)) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [a0.id])) {
return false;
}
parent_id = a0.parent_id;
if (parent_id == null) {
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
binding = env0_2;
has = binding.has;
parent_id = a0.parent_id;
if (Reflect.apply(has, binding, [parent_id])) {
return false;
}
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
return false;
}
binding = env0_2;
has = binding.has;
parent_id = a0.parent_id;
if (Reflect.apply(has, binding, [parent_id])) {
return false;
}
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
} else {
hasFlag = a0.hasFlag;
value = environment.__proto__;
if (Reflect.apply(hasFlag, a0, [ChannelFlags.ACTIVE_CHANNELS_REMOVED])) {
return false;
}
value = environment.__proto__;
if (isTextChannel(a0.type)) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [a0.id])) {
return false;
}
parent_id = a0.parent_id;
if (parent_id == null) {
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
} else {
hasFlag = a0.hasFlag;
value = environment.__proto__;
if (Reflect.apply(hasFlag, a0, [ChannelFlags.ACTIVE_CHANNELS_REMOVED])) {
return false;
}
value = environment.__proto__;
if (isTextChannel(a0.type)) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [a0.id])) {
return false;
}
parent_id = a0.parent_id;
if (parent_id == null) {
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
binding = env0_2;
has = binding.has;
parent_id = a0.parent_id;
if (Reflect.apply(has, binding, [parent_id])) {
return false;
}
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
return false;
}
binding = env0_2;
has = binding.has;
parent_id = a0.parent_id;
if (Reflect.apply(has, binding, [parent_id])) {
return false;
}
binding = env0_1;
if (binding.can(Permissions.VIEW_CHANNEL, a0)) {
binding = env0_0;
value3 = binding.getChannel(a0.parent_id);
isThread2 = a0.isThread();
r0 = isThread2 ? value3 == null : !isThread2;
r0 = !r0 ? value3 == null : r0;
r0 = !r0 ? !value3.hasFlag(ChannelFlags.ACTIVE_CHANNELS_REMOVED) : r0;
return r0;
}
return false;
}
}
return false;
}
global.__d(_fun109691, 14495, [1383, 1379, 3784, 4864, 12552, 661, 1386, 1360,
2]) /* metro module 14495, dependencies: [1383, 1379, 3784, 4864, 12552, 661, 1386, 1360, 2] */;