Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* Metro module 4119; source: modules/guild_profile/GuildProfileUtils.tsx; dependencies: [1383, 661, 1418, 2] */
|
||||
function _fun34197(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4284:6, offset: 0x0104cbd7, size: 148 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(1383) /* metro dependency 1383: ChannelRecord */).createChannelRecordFromInvite;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileUtils.tsx');
|
||||
exports.getEstablishedDate = function(a0, a1) {
|
||||
var value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
if (a0 === '') {
|
||||
return value;
|
||||
}
|
||||
var value3 = new global.Date(a0);
|
||||
return value3 instanceof global.Date ? global.isNaN(value3.getTime()) ? value : value3.toLocaleDateString(a1,
|
||||
{'year': 'numeric', 'month': 'short'}) : value;
|
||||
};
|
||||
exports.guildInviteCanEmbedProfile = guildInviteCanEmbedProfile;
|
||||
}
|
||||
|
||||
function guildInviteCanEmbedProfile(a0) { // fn#34199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4284:476, offset: 0x0104cce7, size: 154 bytes, params: 2, frame: 15
|
||||
const guild = a0.guild;
|
||||
let value = null;
|
||||
if (value == guild) {
|
||||
return false;
|
||||
}
|
||||
const value3 = undefined;
|
||||
const guildRecordUtilsModule = require(1418) /* metro dependency 1418: GuildRecordUtils */;
|
||||
const features = guildRecordUtilsModule.fromInviteGuild(a0.guild).features;
|
||||
const has = features.has;
|
||||
const HUB = GuildFeatures.HUB;
|
||||
if (Reflect.apply(has, features, [HUB])) {
|
||||
return false;
|
||||
}
|
||||
const r2 = value != (value == a0 ? value3 : a0.channel) ? createChannelRecordFromInvite(a0.channel) : value;
|
||||
value = value == r2;
|
||||
return value || !r2.isGuildVoiceOrThread();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user