Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,180 @@
|
||||
/* Metro module 12695; source: modules/guild_profile/GuildPopoutActionCreators.tsx; dependencies: [5, 661, 694, 507, 2] */
|
||||
function _fun97279(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:6, offset: 0x0217a149, size: 151 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildPopoutActionCreators.tsx');
|
||||
exports.fetchGuildForPopout = function() {
|
||||
return _fetchGuildForPopout.apply(this, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
function _fetchGuildForPopout() { // fn#97280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:128, offset: 0x0217a1e0, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun97282).apply(this, arguments);
|
||||
}
|
||||
|
||||
function* _fun97282(a0) { // fn#97282, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12885:191, offset: 0x0217a21d, size: 257 bytes, params: 2, frame: 19
|
||||
var object2;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var HTTP;
|
||||
var get;
|
||||
var GUILD_PREVIEW;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var value9;
|
||||
var body;
|
||||
var error;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_1;
|
||||
var value3 = binding(env2_2[2]);
|
||||
var dispatch = value3.dispatch;
|
||||
Reflect.apply(dispatch, value3, [{type: 'GUILD_POPOUT_FETCH_START', guildId: a0}]);
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort34: while (true) {
|
||||
exceptionLanding33: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
dispatch = value.dispatch;
|
||||
Reflect.apply(dispatch, value, [{type: 'GUILD_POPOUT_FETCH_FAILURE', guildId: a0}]);
|
||||
break reduciblePort34;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
HTTP = value4.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
GUILD_PREVIEW = binding.GUILD_PREVIEW;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(GUILD_PREVIEW, binding, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2.url = value5;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
property = binding3[2];
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
dispatch = value9.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2.type = 'GUILD_POPOUT_FETCH_SUCCESS';
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2.guildId = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
object2.guild = body;
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value9, [object2]);
|
||||
} catch (error) {
|
||||
break exceptionLanding33;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/* Metro module 12694; source: modules/guild_profile/GuildPopoutStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 6946, 566, 694, 2] */
|
||||
function _fun97266(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:6, offset: 0x02179d56, size: 380 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
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 authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
object = {UNSET: 'unset', FETCHING: 'fetching', FAILED: 'failed', SUCCEEDED: 'succeeded'};
|
||||
object = {guilds: {}};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun97270(Store);
|
||||
value.displayName = 'GuildPopoutStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{GUILD_POPOUT_FETCH_START: GUILD_POPOUT_FETCH_START, GUILD_POPOUT_FETCH_SUCCESS: GUILD_POPOUT_FETCH_SUCCESS,
|
||||
GUILD_POPOUT_FETCH_FAILURE: GUILD_POPOUT_FETCH_FAILURE});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildPopoutStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_97267() { // fn#97267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:158, offset: 0x02179ed2, 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_97267_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun97270(a0) { // fn#97270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:486, offset: 0x02179f34, size: 149 bytes, params: 2, frame: 16
|
||||
const closure = GuildPopoutStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(AuthenticationStore);
|
||||
}}, {key: 'isFetchingGuild', value: value_97273}, {key: 'getGuild', value: value_97274}, {key: 'hasFetchFailed',
|
||||
value: value_97275}]);
|
||||
}
|
||||
|
||||
function GUILD_POPOUT_FETCH_START({guildId}) { // fn#97276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1207, offset: 0x0217a053, size: 67 bytes, params: 2, frame: 14
|
||||
const binding = env0_9;
|
||||
const guilds = binding.guilds;
|
||||
const object2 = {};
|
||||
const guilds2 = binding.guilds;
|
||||
copyDataProperties(object2, guilds2[guildId], guilds2);
|
||||
const FETCHING = env0_8.FETCHING;
|
||||
object2['fetchState'] = FETCHING;
|
||||
guilds[guildId] = object2;
|
||||
}
|
||||
|
||||
function GUILD_POPOUT_FETCH_SUCCESS({guildId, guild}) { // fn#97277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1325, offset: 0x0217a096, size: 112 bytes, params: 2, frame: 16
|
||||
const discoverableGuild = (require(6946) /* metro dependency 6946: GuildDiscoveryUtils */).makeDiscoverableGuild(guild);
|
||||
const binding = env0_9;
|
||||
const guilds = binding.guilds;
|
||||
const object2 = {};
|
||||
copyDataProperties(object2, binding.guilds[guildId], discoverableGuild);
|
||||
object2['guild'] = discoverableGuild;
|
||||
const SUCCEEDED = env0_8.SUCCEEDED;
|
||||
object2['fetchState'] = SUCCEEDED;
|
||||
guilds[guildId] = object2;
|
||||
}
|
||||
|
||||
function GUILD_POPOUT_FETCH_FAILURE({guildId}) { // fn#97278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1501, offset: 0x0217a106, size: 67 bytes, params: 2, frame: 14
|
||||
const binding = env0_9;
|
||||
const guilds = binding.guilds;
|
||||
const object2 = {};
|
||||
const guilds2 = binding.guilds;
|
||||
copyDataProperties(object2, guilds2[guildId], guilds2);
|
||||
const FAILED = env0_8.FAILED;
|
||||
object2['fetchState'] = FAILED;
|
||||
guilds[guildId] = object2;
|
||||
}
|
||||
|
||||
function value_97273(a0) { // fn#97273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:854, offset: 0x02179fc9, size: 51 bytes, params: 2, frame: 4
|
||||
const value = environment.__proto__;
|
||||
const property = env1_9.guilds[a0];
|
||||
return property != null && property.fetchState === env1_8.FETCHING;
|
||||
}
|
||||
|
||||
function value_97274(a0) { // fn#97274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:950, offset: 0x02179ffc, size: 36 bytes, params: 2, frame: 3
|
||||
let value = environment.__proto__;
|
||||
const property = env1_9.guilds[a0];
|
||||
value = null;
|
||||
return value != property ? property.guild : value;
|
||||
}
|
||||
|
||||
function value_97275(a0) { // fn#97275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12884:1038, offset: 0x0217a020, size: 51 bytes, params: 2, frame: 4
|
||||
const value = environment.__proto__;
|
||||
const property = env1_9.guilds[a0];
|
||||
return property != null && property.fetchState === env1_8.FAILED;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,256 @@
|
||||
/* Metro module 9094; source: modules/guild_profile/GuildProfileActionCreators.tsx; dependencies: [5, 3970, 1945, 9092, 661, 694, 507, 6718, 4131, 683, 2] */
|
||||
function _fun71126(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:6, offset: 0x01d157d3, size: 286 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const userGuildJoinRequestStore = importDefault(3970) /* metro dependency 3970: UserGuildJoinRequestStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildProfileStore = importDefault(9092) /* metro dependency 9092: GuildProfileStore */;
|
||||
const env0_7 = (require(9092) /* metro dependency 9092: GuildProfileStore */).GuildProfileFetchStatus;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.AnalyticEvents;
|
||||
const env0_9 = constantsModule.Endpoints;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileActionCreators.tsx');
|
||||
exports.getGuildProfile = getGuildProfile;
|
||||
exports.saveGuildProfile = saveGuildProfile;
|
||||
exports.setGuildProfileVisibility = setGuildProfileVisibility;
|
||||
exports.fetchGuildTopGames = function() {
|
||||
return _fetchGuildTopGames.apply(this, arguments);
|
||||
};
|
||||
exports.trackGuildProfileViewed = function(a0, a1) {
|
||||
var value3 = GuildMemberStore.getSelfMember(a0) != null;
|
||||
var value4 = UserGuildJoinRequestStore.getRequest(a0) != null;
|
||||
var defaultImport = importDefault(dependencyMap[9]);
|
||||
var GUILD_PROFILE_VIEWED = AnalyticEvents.GUILD_PROFILE_VIEWED;
|
||||
defaultImport.track(GUILD_PROFILE_VIEWED, {guild_id: a0, location_stack: a1, is_member: value3,
|
||||
has_join_request: value4});
|
||||
};
|
||||
}
|
||||
|
||||
function _fetchGuildTopGames() { // fn#71127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:213, offset: 0x01d158f1, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun71129).apply(this, arguments);
|
||||
}
|
||||
|
||||
function getGuildProfile(a0, a1) { // fn#71130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:551, offset: 0x01d159bd, size: 338 bytes, params: 3, frame: 21
|
||||
var r1;
|
||||
var r0;
|
||||
var object2;
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
var get;
|
||||
const env0_0 = a0;
|
||||
if (a0 == null) {
|
||||
return global.Promise.resolve(null);
|
||||
}
|
||||
var value;
|
||||
const fetchStatus = GuildProfileStore.getFetchStatus(a0);
|
||||
const FETCHING = GuildProfileFetchStatus.FETCHING;
|
||||
const lastSyncTimestamp = GuildProfileStore.getLastSyncTimestamp(a0);
|
||||
const profile = GuildProfileStore.getProfile(a0);
|
||||
const Date = global.Date;
|
||||
const value7 = Date.now() - (lastSyncTimestamp ?? 0);
|
||||
if (fetchStatus !== FETCHING) {
|
||||
if (profile == null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else if (value7 > 60000) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else if (a1) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = global.Promise.resolve(profile);
|
||||
}
|
||||
r0 = r1;
|
||||
} else if (a1) {
|
||||
if (profile == null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else if (value7 > 60000) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else if (a1) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH',
|
||||
guildId: a0});
|
||||
get = HTTP.get;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(get, HTTP, [object2]);
|
||||
value = value.then(_fun71131);
|
||||
value = value.catch(_fun71132);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = global.Promise.resolve(profile);
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = global.Promise.resolve(null);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function saveGuildProfile(a0, a1) { // fn#71133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:1261, offset: 0x01d15be0, size: 232 bytes, params: 3, frame: 19
|
||||
var r0;
|
||||
var object2;
|
||||
var HTTP;
|
||||
var patch;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const getIsUpdating = GuildProfileStore.getIsUpdating;
|
||||
if (Reflect.apply(getIsUpdating, GuildProfileStore, [a0])) {
|
||||
r0 = global.Promise.resolve(null);
|
||||
} else {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE', guildId: a0,
|
||||
updates: a1});
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
patch = HTTP.patch;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE(a0);
|
||||
value = require(6718) /* metro dependency 6718: GuildProfileBuilders */;
|
||||
object2.body = value.buildGuildProfileUpdateForServer(a1);
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(patch, HTTP, [object2]);
|
||||
value = value.then(_fun71134);
|
||||
value = value.catch(_fun71135);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function setGuildProfileVisibility(a0, a1) { // fn#71136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:1831, offset: 0x01d15d97, size: 216 bytes, params: 3, frame: 18
|
||||
var r0;
|
||||
var object2;
|
||||
var HTTP;
|
||||
var put;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const getIsUpdating = GuildProfileStore.getIsUpdating;
|
||||
if (Reflect.apply(getIsUpdating, GuildProfileStore, [a0])) {
|
||||
r0 = global.Promise.resolve(null);
|
||||
} else {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE_VISIBILITY',
|
||||
guildId: a0, visibility: a1});
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
put = HTTP.put;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_PROFILE_VISIBILITY(a0);
|
||||
object2.body = {visibility: a1};
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(put, HTTP, [object2]);
|
||||
value = value.then(_fun71137);
|
||||
value = value.catch(_fun71138);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun71129(a0) { // fn#71129, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:274, offset: 0x01d1592e, size: 143 bytes, params: 2, frame: 17
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
const HTTP = env2_0(env2_2[6]).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {};
|
||||
object2.url = env2_9.GUILD_TOP_GAMES(a0);
|
||||
object2.rejectWithError = false;
|
||||
yield Reflect.apply(get, HTTP, [object2]);
|
||||
const value3 = undefined;
|
||||
if (false) {
|
||||
return value3;
|
||||
}
|
||||
value = env2_0(env2_2[7]);
|
||||
return value.buildTopGamesFromServer(value3.body.top_games);
|
||||
}
|
||||
|
||||
function _fun71131({body}) { // fn#71131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:950, offset: 0x01d15b0f, size: 98 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const guildProfileFromServer = (require(6718) /* metro dependency 6718: GuildProfileBuilders */).buildGuildProfileFromServer(body);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH_SUCCESS',
|
||||
guildId: env0_0, profile: guildProfileFromServer});
|
||||
return guildProfileFromServer;
|
||||
}
|
||||
|
||||
function _fun71132(a0) { // fn#71132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:1098, offset: 0x01d15b71, size: 111 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_FETCH_FAILURE',
|
||||
guildId: env0_0, error: new APIError(a0)});
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun71134({body}) { // fn#71134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:1528, offset: 0x01d15cc8, size: 98 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const guildProfileFromServer = (require(6718) /* metro dependency 6718: GuildProfileBuilders */).buildGuildProfileFromServer(body);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE_SUCCESS',
|
||||
guildId: env0_0, profile: guildProfileFromServer});
|
||||
return guildProfileFromServer;
|
||||
}
|
||||
|
||||
function _fun71135(a0) { // fn#71135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:1677, offset: 0x01d15d2a, size: 109 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE_FAILURE',
|
||||
guildId: env0_0, error: new APIError(a0)});
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun71137({body}) { // fn#71137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:2101, offset: 0x01d15e6f, size: 77 bytes, params: 2, frame: 13
|
||||
const visibility = body.visibility;
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE_VISIBILITY_SUCCESS',
|
||||
guildId: env0_0, visibility: visibility});
|
||||
return visibility;
|
||||
}
|
||||
|
||||
function _fun71138(a0) { // fn#71138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9279:2238, offset: 0x01d15ebc, size: 107 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
const aPIError = new APIError(a0);
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_PROFILE_UPDATE_VISIBILITY_FAILURE',
|
||||
guildId: env0_0, error: aPIError});
|
||||
throw aPIError;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,425 @@
|
||||
/* Metro module 6718; source: modules/guild_profile/GuildProfileBuilders.tsx; dependencies: [6540, 3797, 6719, 1360, 6720, 2] */
|
||||
function _fun52753(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52753, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:6, offset: 0x0133654f, size: 209 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_52756 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = buildGuildProfileFromServer;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(6540) /* metro dependency 6540: EmojiStore */).EmojiDisambiguations;
|
||||
object = {label: ''};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileBuilders.tsx');
|
||||
exports.buildGuildProfileFromServer = closure;
|
||||
exports.buildGuildProfileUpdateForServer = buildGuildProfileUpdateForServer;
|
||||
exports.buildTopGamesFromServer = function(a0) {
|
||||
return a0.reduce(_fun52764, {});
|
||||
};
|
||||
exports.buildGuildProfileFromInvite = buildGuildProfileFromInvite;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_52754(a0, a1) { // fn#52754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:132, offset: 0x01336620, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun52755;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_52756(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_52756(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_52756(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun52755;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function getEmoji_52757({guildId, emojiId, emojiName}) { // fn#52757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:1042, offset: 0x01336792, size: 128 bytes, params: 2, frame: 17
|
||||
var r1;
|
||||
var r0;
|
||||
var value;
|
||||
const value2 = EmojiDisambiguations.get(guildId);
|
||||
if (emojiId != null) {
|
||||
if (emojiId != null) {
|
||||
r1 = value2 != null ? value2.getById(emojiId) : null;
|
||||
} else if (emojiName != null) {
|
||||
value = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
||||
value = value.getByName(emojiName);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = null;
|
||||
}
|
||||
r0 = r1;
|
||||
} else if (emojiName == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
if (emojiId != null) {
|
||||
r1 = value2 != null ? value2.getById(emojiId) : null;
|
||||
} else if (emojiName != null) {
|
||||
value = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
||||
value = value.getByName(emojiName);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = null;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function buildGuildProfileTraitsFromServer(a0, a1) { // fn#52758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:1224, offset: 0x01336812, size: 262 bytes, params: 3, frame: 24
|
||||
var r3;
|
||||
var r1;
|
||||
var r13;
|
||||
var value8;
|
||||
var position;
|
||||
var value9;
|
||||
var value10;
|
||||
var object2;
|
||||
var label;
|
||||
var getEmoji_52757Binding;
|
||||
var emoji_id;
|
||||
var emoji_name;
|
||||
var emoji_52757Binding;
|
||||
var value12;
|
||||
const Array = global.Array;
|
||||
const value2 = undefined;
|
||||
const MAX_TRAITS = (require(6719) /* metro dependency 6719: GuildProfileLimits */).MAX_TRAITS;
|
||||
const value3 = Object.create(Array.prototype, {constructor: {value: Array}});
|
||||
const array = new Array(MAX_TRAITS);
|
||||
const value5 = (array instanceof Object ? array : value3).fill(env0_4);
|
||||
const value6 = _createForOfIteratorHelperLoose_52754(a1);
|
||||
const value7 = value6();
|
||||
let done = value7.done;
|
||||
if (!done) {
|
||||
r3 = value7;
|
||||
while (true) {
|
||||
value8 = r3.value;
|
||||
position = value8.position;
|
||||
value9 = position < 0;
|
||||
if (value9) {
|
||||
r1 = value9;
|
||||
} else {
|
||||
value10 = value8.position >= MAX_TRAITS;
|
||||
r1 = value10;
|
||||
}
|
||||
if (r1) {
|
||||
continue;
|
||||
}
|
||||
position = value8.position;
|
||||
object2 = {};
|
||||
label = value8.label;
|
||||
object2.label = label;
|
||||
getEmoji_52757Binding = getEmoji_52757;
|
||||
emoji_id = value8.emoji_id;
|
||||
emoji_name = value8.emoji_name;
|
||||
emoji_52757Binding = getEmoji_52757Binding({guildId: a0, emojiId: emoji_id, emojiName: emoji_name});
|
||||
if (emoji_52757Binding != null) {
|
||||
r13 = emoji_52757Binding;
|
||||
continue;
|
||||
}
|
||||
r13 = value2;
|
||||
continue;
|
||||
object2.emoji = r13;
|
||||
value5[position] = object2;
|
||||
value12 = value6();
|
||||
done = value12.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r3 = value12;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
|
||||
function buildGuildProfileFromServer(a0) { // fn#52759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:1569, offset: 0x01336918, size: 362 bytes, params: 2, frame: 16
|
||||
const object2 = {};
|
||||
let id = a0.id;
|
||||
object2.id = id;
|
||||
object2.name = a0.name;
|
||||
const description = a0.description;
|
||||
let value = null;
|
||||
let value2 = '';
|
||||
object2.description = value != description ? description : value2;
|
||||
object2.icon = a0.icon_hash;
|
||||
object2.customBanner = a0.custom_banner_hash;
|
||||
object2.onlineCount = a0.online_count;
|
||||
object2.memberCount = a0.member_count;
|
||||
const brand_color_primary = a0.brand_color_primary;
|
||||
object2.brandColorPrimary = value == brand_color_primary || value2 === brand_color_primary ? value : brand_color_primary;
|
||||
object2.visibility = a0.visibility;
|
||||
const buildGuildProfileTraitsFromServerBinding = buildGuildProfileTraitsFromServer;
|
||||
id = a0.id;
|
||||
const traits = a0.traits;
|
||||
object2.traits = buildGuildProfileTraitsFromServerBinding(id, value != traits ? traits : []);
|
||||
const game_application_ids = a0.game_application_ids;
|
||||
object2.gameApplicationIds = value != game_application_ids ? game_application_ids : [];
|
||||
const game_activity = a0.game_activity;
|
||||
object2.gameActivity = value == game_activity ? {} : global.Object.entries(game_activity).reduce(function(a0, a1) {
|
||||
var r1;
|
||||
var r3;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a1[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r2 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r3 = value;
|
||||
r4 = value2;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r3 = value;
|
||||
r4 = value3;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r3 = item;
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
if (!r4) {
|
||||
r1.return();
|
||||
}
|
||||
a0[r2] = {level: r3.activity_level, score: r3.activity_score};
|
||||
return a0;
|
||||
}, {});
|
||||
object2.games = a0.games;
|
||||
const features = a0.features;
|
||||
object2.features = value != features ? features : [];
|
||||
object2.tag = a0.tag;
|
||||
object2.badge = a0.badge;
|
||||
object2.badgeColorPrimary = a0.badge_color_primary;
|
||||
object2.badgeColorSecondary = a0.badge_color_secondary;
|
||||
object2.badgeHash = a0.badge_hash;
|
||||
object2.premiumSubscriberCount = a0.premium_subscription_count;
|
||||
object2.premiumTier = a0.premium_tier;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function buildGuildProfileUpdateForServer(a0) { // fn#52761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:2596, offset: 0x01336ae2, size: 325 bytes, params: 2, frame: 17
|
||||
var value;
|
||||
const object2 = {};
|
||||
if (a0.name != null) {
|
||||
object2.name = a0.name;
|
||||
}
|
||||
if (a0.description != null) {
|
||||
object2.description = a0.description;
|
||||
}
|
||||
if (a0.icon !== undefined) {
|
||||
object2.icon = a0.icon;
|
||||
}
|
||||
if (a0.customBanner !== undefined) {
|
||||
object2.custom_banner = a0.customBanner;
|
||||
}
|
||||
if (a0.visibility != null) {
|
||||
object2.visibility = a0.visibility;
|
||||
}
|
||||
if (a0.brandColorPrimary !== undefined) {
|
||||
object2.brand_color_primary = a0.brandColorPrimary;
|
||||
}
|
||||
if (a0.traits != null) {
|
||||
value = a0.traits.map(_fun52762);
|
||||
object2.traits = value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
if (a0.gameApplicationIds != null) {
|
||||
object2.game_application_ids = a0.gameApplicationIds;
|
||||
}
|
||||
if (a0.tag !== undefined) {
|
||||
object2.tag = a0.tag;
|
||||
}
|
||||
if (a0.badge !== undefined) {
|
||||
object2.badge = a0.badge;
|
||||
}
|
||||
if (a0.badgeColorPrimary !== undefined) {
|
||||
object2.badge_color_primary = a0.badgeColorPrimary;
|
||||
}
|
||||
if (a0.badgeColorSecondary !== undefined) {
|
||||
object2.badge_color_secondary = a0.badgeColorSecondary;
|
||||
}
|
||||
return object2;
|
||||
}
|
||||
|
||||
function buildTopGamesFromServer(a0) { // fn#52763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:3589, offset: 0x01336cbb, size: 26 bytes, params: 2, frame: 13
|
||||
return a0.reduce(function(a0, a1) {
|
||||
a0[a1.game_application_id] = {level: a1.activity_level, score: a1.activity_score};
|
||||
return a0;
|
||||
}, {});
|
||||
}
|
||||
|
||||
function buildGuildProfileFromInvite(a0) { // fn#52765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:3763, offset: 0x01336cff, size: 332 bytes, params: 2, frame: 18
|
||||
var r5;
|
||||
var approximate_presence_count;
|
||||
var approximate_member_count;
|
||||
var r1;
|
||||
var object2;
|
||||
var description;
|
||||
var value4;
|
||||
var features;
|
||||
const guild = a0.guild;
|
||||
const profile = a0.profile;
|
||||
const value = null;
|
||||
let r0 = value != profile ? buildGuildProfileFromServer(profile) : value;
|
||||
if (value == r0) {
|
||||
if (value == guild) {
|
||||
r1 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.id = guild.id;
|
||||
object2.name = guild.name;
|
||||
description = guild.description;
|
||||
r5 = value != description ? description : '';
|
||||
object2.description = r5;
|
||||
object2.icon = guild.icon;
|
||||
object2.customBanner = guild.banner;
|
||||
approximate_presence_count = guild.approximate_presence_count;
|
||||
approximate_presence_count = value == approximate_presence_count ? a0.approximate_presence_count : approximate_presence_count;
|
||||
value4 = 0;
|
||||
object2.onlineCount = value != approximate_presence_count ? approximate_presence_count : value4;
|
||||
approximate_member_count = guild.approximate_member_count;
|
||||
approximate_member_count = value == approximate_member_count ? a0.approximate_member_count : approximate_member_count;
|
||||
r5 = value != approximate_member_count ? approximate_member_count : value4;
|
||||
object2.memberCount = r5;
|
||||
object2.visibility = (require(6720) /* metro dependency 6720: GuildProfileTypes */).GuildProfileVisibility.NOT_SPECIFIED;
|
||||
object2.traits = [];
|
||||
object2.gameApplicationIds = [];
|
||||
object2.gameActivity = {};
|
||||
features = guild.features;
|
||||
r5 = value != features ? features : [];
|
||||
object2.features = r5;
|
||||
object2.brandColorPrimary = value;
|
||||
object2.tag = value;
|
||||
object2.badge = value;
|
||||
object2.badgeHash = value;
|
||||
object2.badgeColorPrimary = value;
|
||||
object2.badgeColorSecondary = value;
|
||||
object2.premiumSubscriberCount = guild.premium_subscription_count;
|
||||
object2.premiumTier = guild.premium_tier;
|
||||
r1 = object2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun52762(a0, a1) { // fn#52762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6896:2991, offset: 0x01336c27, size: 148 bytes, params: 3, frame: 8
|
||||
var r0;
|
||||
var object2;
|
||||
var emoji;
|
||||
const value = null;
|
||||
const value2 = undefined;
|
||||
if (value == (value == a0 ? value2 : a0.label)) {
|
||||
r0 = value;
|
||||
} else if (a0.label.length <= 0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.label = a0.label;
|
||||
object2.position = a1;
|
||||
emoji = a0.emoji;
|
||||
object2.emoji_id = value == emoji ? value2 : emoji.id;
|
||||
emoji = a0.emoji;
|
||||
object2.emoji_name = value == emoji ? value2 : emoji.name;
|
||||
emoji = a0.emoji;
|
||||
object2.emoji_animated = value == emoji ? value2 : emoji.animated;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 6588; source: modules/guild_profile/GuildProfileConstants.tsx; dependencies: [2] */
|
||||
function _fun51856(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6766:6, offset: 0x012e6217, size: 515 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {BOULDER: 'Boulder', CASCADE: 'Cascade', THUNDER: 'Thunder', SOUL: 'Soul', MARSH: 'Marsh',
|
||||
VOLCANO: 'Volcano', EARTH: 'Earth', ZEPHYR: 'Zephyr', RISING: 'Rising'};
|
||||
const SOUL = object2.SOUL;
|
||||
const items3 = [{name: SOUL, color: '#ff1c90'}];
|
||||
const VOLCANO = object2.VOLCANO;
|
||||
items3[1] = {name: VOLCANO, color: '#e81d1e'};
|
||||
const MARSH = object2.MARSH;
|
||||
items3[2] = {name: MARSH, color: '#e86e1d'};
|
||||
const THUNDER = object2.THUNDER;
|
||||
items3[3] = {name: THUNDER, color: '#e8c02f'};
|
||||
const RISING = object2.RISING;
|
||||
items3[4] = {name: RISING, color: '#71368a'};
|
||||
const ZEPHYR = object2.ZEPHYR;
|
||||
items3[5] = {name: ZEPHYR, color: '#029FFC'};
|
||||
const CASCADE = object2.CASCADE;
|
||||
items3[6] = {name: CASCADE, color: '#4fe2ca'};
|
||||
const EARTH = object2.EARTH;
|
||||
items3[7] = {name: EARTH, color: '#406601'};
|
||||
const BOULDER = object2.BOULDER;
|
||||
items3[8] = {name: BOULDER, color: '#272727'};
|
||||
const items2 = ['363445589247131668', '700136079562375258', '1402418696126992445', '1402418491272986635',
|
||||
'1158877933042143272', '1402418703554842694', '1402418714716143646', '356875221078245376', '356875988589740042',
|
||||
'356877880938070016', '1402418487745581248', '1402418717781921935', '542075586886107149', '762434991303950386',
|
||||
'1402418436809953330', '356876590342340608', '1260340082150346932', '1253061774555611238',
|
||||
'1167674267748540516', '359509007423242240', '1257819671114289184', '1402418103702524046', '357607478105604096',
|
||||
'1137125502985961543', '1402418594532298837', '356875762940379136', '1121201675240210523',
|
||||
'1205090671527071784', '357607133254254632', '1402418075726254102', '363409643973771264', '359509387670192128',
|
||||
'1402418239342120960', '742897755160313986', '1215361187684946010', '1247227126416146462',
|
||||
'1402418440685486130', '1402418344912752671', '1402418571715543120', '1256912167685587034',
|
||||
'1402418078813523999', '356954277803065354', '1402418648332898466', '356879032584896512', '506950362461110273',
|
||||
'1113966530531704943', '356944273133928458', '363447565905166336', '363413743335374859', '356942674672091136',
|
||||
'426526722322726912', '1402418586244612216', '905961880789590076', '356888453796986880', '398632010442211348',
|
||||
'1402418082366095493', '1124351715618074634', '356888577310851072', '787443973538971748', '1197827812623650866',
|
||||
'1124349969906815007', '356875890958925834', '356889262362329098', '425778010222886912', '428055627030331402',
|
||||
'1224418065295478955', '1263691812338536570', '372438022647578634', '1129504162200166401',
|
||||
'1238113262969557002', '443159611479031808', '615752773690064908', '1182713227491147776', '358421669603311616',
|
||||
'1174041358995042375', '385538724592746496', '1124358970618953818', '428054228511227914', '1402417933225033759',
|
||||
'1234262945350025246', '363430548028522496', '359509332490059776', '358420454764969994', '1124353632758939688',
|
||||
'363413834301571072', '1162076274622222346', '359509759642042378', '477152881196269569', '449806905901056012',
|
||||
'1402418087793528862', '940810636273795162', '359510095811444736', '1245451463736692857', '356887282982191114',
|
||||
'1124351876033425529', '363411421553360896', '1162151882039504916', '1067554911358832721',
|
||||
'1140238527980916757', '359801269008859136', '1272842103910699040', '1276737795012165766'];
|
||||
const Map = global.Map;
|
||||
let map = items2.map;
|
||||
map = new Map(Reflect.apply(map, items2, [function(a0, a1, a2) {
|
||||
return [a0, a2.length - a1];
|
||||
}]));
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileConstants.tsx');
|
||||
exports.BannerPalettePresets = object2;
|
||||
exports.BANNER_PALETTE_PRESETS = items3;
|
||||
exports.INVALID_ACCESS_ERROR_CODE = 50001;
|
||||
exports.HOISTED_SEARCH_APPLICATION_IDS = items2;
|
||||
exports.HOISTED_SEARCH_APPLICATION_IDS_BY_PRIORITY = map;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,421 @@
|
||||
/* Metro module 9092; source: modules/guild_profile/GuildProfileStore.tsx; dependencies: [6, 7, 15, 17, 18, 661, 6718, 566, 694, 2] */
|
||||
function _fun71097(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:6, offset: 0x01d14a66, size: 548 bytes, params: 8, frame: 23
|
||||
var object3;
|
||||
const env0_0 = require;
|
||||
const closure = GUILD_PROFILE_UPDATE;
|
||||
const closure2 = GUILD_PROFILE_UPDATE_FAILURE;
|
||||
const closure3 = INVITE_RESOLVE_SUCCESS_71103;
|
||||
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 env0_7 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
||||
object3 = {NOT_FETCHED: 'NOT_FETCHED', FETCHING: 'FETCHING', FETCHED: 'FETCHED'};
|
||||
const Map = global.Map;
|
||||
let map = new Map();
|
||||
const object4 = {'profile': null, 'lastSyncTimestamp': null, 'fetchStatus': null, 'isUpdating': false,
|
||||
'error': null};
|
||||
const NOT_FETCHED = object3.NOT_FETCHED;
|
||||
object4.fetchStatus = NOT_FETCHED;
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun71104(Store).displayName = 'GuildProfileStore';
|
||||
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {GUILD_PROFILE_FETCH: GUILD_PROFILE_FETCH,
|
||||
GUILD_PROFILE_FETCH_SUCCESS: GUILD_PROFILE_FETCH_SUCCESS,
|
||||
GUILD_PROFILE_FETCH_FAILURE: GUILD_PROFILE_FETCH_FAILURE, GUILD_PROFILE_UPDATE: closure,
|
||||
GUILD_PROFILE_UPDATE_SUCCESS: GUILD_PROFILE_UPDATE_SUCCESS, GUILD_PROFILE_UPDATE_FAILURE: closure2,
|
||||
MEMBER_VERIFICATION_FORM_UPDATE: MEMBER_VERIFICATION_FORM_UPDATE_71115, INVITE_RESOLVE_SUCCESS: closure3,
|
||||
INSTANT_INVITE_CREATE_SUCCESS: closure3, CHANNEL_CREATE: CHANNEL_CREATE_71116,
|
||||
GUILD_SETTINGS_SET_WIDGET: GUILD_SETTINGS_SET_WIDGET, GUILD_UPDATE: GUILD_UPDATE_71118,
|
||||
GUILD_PROFILE_UPDATE_VISIBILITY: closure,
|
||||
GUILD_PROFILE_UPDATE_VISIBILITY_SUCCESS: GUILD_PROFILE_UPDATE_VISIBILITY_SUCCESS,
|
||||
GUILD_PROFILE_UPDATE_VISIBILITY_FAILURE: closure2});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileStore.tsx');
|
||||
exports.default = map;
|
||||
exports.GuildProfileFetchStatus = object3;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_71098() { // fn#71098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:171, offset: 0x01d14c8a, 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_71098_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_UPDATE({guildId}) { // fn#71101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:567, offset: 0x01d14cec, size: 114 bytes, params: 2, frame: 16
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['isUpdating'] = true;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['isUpdating'] = true;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_UPDATE_FAILURE({guildId, error}) { // fn#71102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:690, offset: 0x01d14d5e, size: 126 bytes, params: 2, frame: 17
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['error'] = error;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['error'] = error;
|
||||
object2['isUpdating'] = false;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function INSTANT_INVITE_CREATE_SUCCESS_71103({invite}) { // fn#71103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:825, offset: 0x01d14ddc, size: 262 bytes, params: 2, frame: 18
|
||||
var binding;
|
||||
var get;
|
||||
var id;
|
||||
var value2;
|
||||
var guildProfileFromServer;
|
||||
var set;
|
||||
var object2;
|
||||
const profile = invite.profile;
|
||||
if (profile != null) {
|
||||
binding = env0_9;
|
||||
get = binding.get;
|
||||
id = profile.id;
|
||||
value2 = Reflect.apply(get, binding, [id]);
|
||||
guildProfileFromServer = (require(6718) /* metro dependency 6718: GuildProfileBuilders */).buildGuildProfileFromServer(profile);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
id = profile.id;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['profile'] = guildProfileFromServer;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [id, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
id = profile.id;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['profile'] = guildProfileFromServer;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [id, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun71104(a0) { // fn#71104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1136, offset: 0x01d14ee2, size: 176 bytes, params: 2, frame: 16
|
||||
const closure = GuildProfileStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'getProfile', value: value_71106}, {key: 'getFetchStatus', value: value_71107},
|
||||
{key: 'getLastSyncTimestamp', value: value_71108}, {key: 'getIsUpdating', value: value_71109},
|
||||
{key: 'getErrorCode', value: value_71110}]);
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_FETCH({guildId}) { // fn#71111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:2179, offset: 0x01d150df, size: 130 bytes, params: 2, frame: 16
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['fetchStatus'] = env0_8.FETCHING;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['fetchStatus'] = env0_8.FETCHING;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_FETCH_SUCCESS({guildId, profile}) { // fn#71112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:2348, offset: 0x01d15161, size: 206 bytes, params: 2, frame: 17
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['profile'] = profile;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['profile'] = profile;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_FETCH_FAILURE({guildId, error}) { // fn#71113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:2605, offset: 0x01d1522f, size: 153 bytes, params: 2, frame: 17
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['error'] = error;
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['error'] = error;
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_UPDATE_SUCCESS({guildId, profile}) { // fn#71114, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:2838, offset: 0x01d152c8, size: 127 bytes, params: 2, frame: 17
|
||||
var set;
|
||||
var object2;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
if (value2 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['profile'] = profile;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['profile'] = profile;
|
||||
object2['isUpdating'] = false;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function MEMBER_VERIFICATION_FORM_UPDATE_71115({form, guildId}) { // fn#71115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:3061, offset: 0x01d15347, size: 228 bytes, params: 2, frame: 18
|
||||
var binding;
|
||||
var value3;
|
||||
var set;
|
||||
var object2;
|
||||
const profile = form?.profile;
|
||||
if (profile != null) {
|
||||
binding = env0_9;
|
||||
value3 = binding.get(guildId);
|
||||
if (value3 == null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_10, undefined);
|
||||
object2['profile'] = profile;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
} else {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value3, undefined);
|
||||
object2['profile'] = profile;
|
||||
object2['lastSyncTimestamp'] = global.Date.now();
|
||||
object2['fetchStatus'] = env0_8.FETCHED;
|
||||
Reflect.apply(set, binding, [guildId, object2]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function CHANNEL_CREATE_71116({channel}) { // fn#71116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:3470, offset: 0x01d1542b, size: 70 bytes, params: 2, frame: 13
|
||||
const type = channel.type;
|
||||
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
||||
if (type === GUILD_ANNOUNCEMENT && channel.guild_id != null) {
|
||||
env0_9.delete(channel.guild_id);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_SETTINGS_SET_WIDGET({guildId, enabled}) { // fn#71117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:3609, offset: 0x01d15471, size: 49 bytes, params: 2, frame: 12
|
||||
if (guildId != null && enabled) {
|
||||
env0_9.delete(guildId);
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_UPDATE_71118({guild}) { // fn#71118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:3695, offset: 0x01d154a2, size: 211 bytes, params: 2, frame: 17
|
||||
let binding = env0_9;
|
||||
const get = binding.get;
|
||||
let id = guild.id;
|
||||
const value2 = Reflect.apply(get, binding, [id]);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
if (value2.profile == null) {
|
||||
return false;
|
||||
}
|
||||
const object3 = {};
|
||||
copyDataProperties(object3, value2.profile, undefined);
|
||||
object3['name'] = guild.name;
|
||||
object3['icon'] = guild.icon ?? null;
|
||||
const description = guild.description;
|
||||
const value4 = description != null;
|
||||
object3['description'] = value4 ? description : '';
|
||||
object3['customBanner'] = guild.discovery_splash ?? null;
|
||||
binding = env0_9;
|
||||
const set = binding.set;
|
||||
id = guild.id;
|
||||
const object4 = {};
|
||||
copyDataProperties(object4, value2, value4);
|
||||
object4['profile'] = object3;
|
||||
Reflect.apply(set, binding, [id, object4]);
|
||||
}
|
||||
|
||||
function GUILD_PROFILE_UPDATE_VISIBILITY_SUCCESS({guildId, visibility}) { // fn#71119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:4066, offset: 0x01d15575, size: 134 bytes, params: 2, frame: 18
|
||||
var set;
|
||||
var object3;
|
||||
var object4;
|
||||
let binding = env0_9;
|
||||
const value2 = binding.get(guildId);
|
||||
const profile = value2?.profile;
|
||||
if (value2 != null && profile != null) {
|
||||
binding = env0_9;
|
||||
set = binding.set;
|
||||
object3 = {};
|
||||
copyDataProperties(object3, value2, undefined);
|
||||
object3['isUpdating'] = false;
|
||||
object4 = {};
|
||||
copyDataProperties(object4, profile, false);
|
||||
object4['visibility'] = visibility;
|
||||
object3['profile'] = object4;
|
||||
Reflect.apply(set, binding, [guildId, object3]);
|
||||
}
|
||||
}
|
||||
|
||||
function value_71106(a0) { // fn#71106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1451, offset: 0x01d14f92, size: 63 bytes, params: 2, frame: 13
|
||||
var profile;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
value3 = env1_9.get(a0);
|
||||
profile = value == value3 ? undefined : value3.profile;
|
||||
r0 = value != profile ? profile : value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_71107(a0) { // fn#71107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1574, offset: 0x01d14fd1, size: 72 bytes, params: 2, frame: 13
|
||||
return a0 == null ? env1_8.NOT_FETCHED : env1_9.get(a0)?.fetchStatus ?? env1_8.NOT_FETCHED;
|
||||
}
|
||||
|
||||
function value_71108(a0) { // fn#71108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1725, offset: 0x01d15019, size: 63 bytes, params: 2, frame: 13
|
||||
var lastSyncTimestamp;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
value3 = env1_9.get(a0);
|
||||
lastSyncTimestamp = value == value3 ? undefined : value3.lastSyncTimestamp;
|
||||
r0 = value != lastSyncTimestamp ? lastSyncTimestamp : value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_71109(a0) { // fn#71109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1857, offset: 0x01d15058, size: 59 bytes, params: 2, frame: 13
|
||||
var isUpdating;
|
||||
var r0;
|
||||
let value = a0 != null;
|
||||
if (value) {
|
||||
value = environment.__proto__;
|
||||
value = env1_9.get(a0);
|
||||
isUpdating = value?.isUpdating;
|
||||
value = isUpdating != null;
|
||||
r0 = value && isUpdating;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_71110(a0) { // fn#71110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9277:1975, offset: 0x01d15093, size: 76 bytes, params: 2, frame: 14
|
||||
var code;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
const value = null;
|
||||
if (value == a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
value3 = env1_9.get(a0);
|
||||
code = value == value3 || value == value3.error ? undefined : value3.error.code;
|
||||
r0 = value != code ? code : value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 6720; source: modules/guild_profile/GuildProfileTypes.tsx; dependencies: [2, 6721] */
|
||||
function _fun52767(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6898:6, offset: 0x01336ed4, size: 96 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/GuildProfileTypes.tsx');
|
||||
const GuildProfileVisibility = (require(6721) /* metro dependency 6721: GuildProfileVisibility */).GuildProfileVisibility;
|
||||
exports.GuildProfileVisibility = GuildProfileVisibility;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
/* Metro module 9093; source: modules/guild_profile/hooks/useGuildProfile.tsx; dependencies: [5, 31, 9092, 566, 9094, 2] */
|
||||
function _fun71120(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9278:6, offset: 0x01d155fb, size: 149 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const guildProfileStore = importDefault(9092) /* metro dependency 9092: GuildProfileStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/hooks/useGuildProfile.tsx');
|
||||
exports.useGuildProfile = useGuildProfile;
|
||||
}
|
||||
|
||||
function useGuildProfile(a0) { // fn#71121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9278:225, offset: 0x01d15690, size: 157 bytes, params: 2, frame: 21
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const profile = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildProfileStore], _fun71122);
|
||||
const fetchStatus = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildProfileStore],
|
||||
_fun71123);
|
||||
object2 = {guildProfile: profile};
|
||||
object2.fetchGuildProfile = env0_3.useCallback(env0_2(_fun71125), [a0]);
|
||||
object2.fetchStatus = fetchStatus;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun71122() { // fn#71122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9278:291, offset: 0x01d1572d, size: 27 bytes, params: 1, frame: 11
|
||||
return GuildProfileStore.getProfile(env0_0);
|
||||
}
|
||||
|
||||
function _fun71123() { // fn#71123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9278:347, offset: 0x01d15748, size: 27 bytes, params: 1, frame: 11
|
||||
return GuildProfileStore.getFetchStatus(env0_0);
|
||||
}
|
||||
|
||||
async function _fun71125() { // fn#71125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9278:430, offset: 0x01d15777, size: 92 bytes, params: 1, frame: 16
|
||||
let value = a0;
|
||||
if (true) {
|
||||
var r5 = value !== undefined ? value : false;
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
value = env2_0(env2_1[4]);
|
||||
var getGuildProfile = value.getGuildProfile;
|
||||
await Reflect.apply(getGuildProfile, value, [require, r5]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,303 @@
|
||||
/* Metro module 9318; source: modules/guild_profile/hooks/useGuildProfileCTA.tsx; dependencies: [31, 1226, 1945, 1867, 4097, 1878, 661, 566, 1391, 8898, 9319, 8401, 6720, 2] */
|
||||
function _fun72794(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:6, offset: 0x01d53dcf, size: 378 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = constantsModule.InviteStates;
|
||||
const env0_10 = constantsModule.GuildFeatures;
|
||||
object2 = {IS_MEMBER: 0};
|
||||
object2[0] = 'IS_MEMBER';
|
||||
object2.ADOPT_TAG = 1;
|
||||
object2[1] = 'ADOPT_TAG';
|
||||
object2.HAS_APPLICATION = 2;
|
||||
object2[2] = 'HAS_APPLICATION';
|
||||
object2.APPLY_TO_JOIN = 3;
|
||||
object2[3] = 'APPLY_TO_JOIN';
|
||||
object2.LURK_DISCOVERABLE = 4;
|
||||
object2[4] = 'LURK_DISCOVERABLE';
|
||||
object2.JOIN_VIA_INVITE = 5;
|
||||
object2[5] = 'JOIN_VIA_INVITE';
|
||||
object2.ACCEPT_ROLES = 6;
|
||||
object2[6] = 'ACCEPT_ROLES';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/hooks/useGuildProfileCTA.tsx');
|
||||
exports.default = useGuildProfileCTA;
|
||||
exports.CTATypes = object2;
|
||||
exports.GuildProfileCTAContext = {INVITE: 'INVITE'};
|
||||
exports.getGuildProfileCTAType = getGuildProfileCTAType;
|
||||
}
|
||||
|
||||
function useGuildProfileCTA(a0, a1, a2) { // fn#72795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:627, offset: 0x01d53f49, size: 462 bytes, params: 4, frame: 29
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const id = a0.id;
|
||||
const env0_3 = id;
|
||||
const features = a0.features;
|
||||
const id2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
|
||||
return AuthenticationStore.getId();
|
||||
});
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(id);
|
||||
});
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(id);
|
||||
}, [id2]);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun72799,
|
||||
[id, id2]);
|
||||
const {validInviteKey, isBypassInvite,
|
||||
inviteRoles} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([InviteStore],
|
||||
_fun72800, [id, a2]);
|
||||
const value5 = (importDefault(9319) /* metro dependency 9319: usePendingFolderGuildIds */)();
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
object = [value3, value5, id, features, validInviteKey];
|
||||
object[5] = a0.visibility;
|
||||
object[6] = a0.tag;
|
||||
object[7] = isBypassInvite;
|
||||
object[8] = a1;
|
||||
object[9] = guild;
|
||||
object[10] = inviteRoles;
|
||||
object[11] = value2;
|
||||
object = {guildId: id, ctaType: Reflect.apply(useMemo, binding, [_fun72801, object]),
|
||||
validInviteKey: validInviteKey};
|
||||
return object;
|
||||
}
|
||||
|
||||
function getGuildProfileCTAType(a0, a1) { // fn#72803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:2341, offset: 0x01d5450c, size: 703 bytes, params: 3, frame: 28
|
||||
var r7;
|
||||
var roles;
|
||||
var r3;
|
||||
var hasFlag;
|
||||
var flags;
|
||||
var Set;
|
||||
var set;
|
||||
let value = a1;
|
||||
const id = a0.id;
|
||||
const features = a0.features;
|
||||
const id2 = AuthenticationStore.getId();
|
||||
const user = UserStore.getUser(id2);
|
||||
const value5 = null;
|
||||
let r6 = value5 != id ? GuildMemberStore.getMember(id, id2) : value5;
|
||||
const value7 = undefined;
|
||||
const value8 = value5 != (value5 == r6 ? value7 : r6.joinedAt);
|
||||
const r13 = value5 != value ? value : InviteStore.getInviteKeyForGuildId(id);
|
||||
const r2 = value5 != r13 ? InviteStore.getInvite(r13) : value5;
|
||||
value = false;
|
||||
if (value5 == r2) {
|
||||
r6 = value;
|
||||
r7 = value5;
|
||||
} else if (r2.state === InviteStates.BANNED) {
|
||||
r6 = value;
|
||||
r7 = value5;
|
||||
} else if (r2.state === InviteStates.EXPIRED) {
|
||||
r6 = value;
|
||||
r7 = value5;
|
||||
} else {
|
||||
value = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
hasFlag = value.hasFlag;
|
||||
flags = r2.flags;
|
||||
value = Reflect.apply(hasFlag, value, [value5 != flags ? flags : 0,
|
||||
(require(8898) /* metro dependency 8898: GuildInviteFlags */).GuildInviteFlags.IS_APPLICATION_BYPASS]);
|
||||
r6 = value;
|
||||
r7 = r13;
|
||||
}
|
||||
value = require(9319) /* metro dependency 9319: usePendingFolderGuildIds */;
|
||||
value = value.getPendingFolderGuildIds();
|
||||
if (value8) {
|
||||
roles = value5 == r2 ? value7 : r2.roles;
|
||||
if (value5 == roles) {
|
||||
return env0_11.IS_MEMBER;
|
||||
}
|
||||
roles = r2.roles;
|
||||
if (roles.length > 0) {
|
||||
if (value5 == user) {
|
||||
return env0_11.IS_MEMBER;
|
||||
}
|
||||
value = GuildMemberStore.getMember(id, user.id);
|
||||
Set = global.Set;
|
||||
roles = value5 == value ? value7 : value.roles;
|
||||
r3 = value5 != roles ? roles : [];
|
||||
set = new Set();
|
||||
roles = r2.roles;
|
||||
if (roles.some(_fun72804)) {
|
||||
return env0_11.ACCEPT_ROLES;
|
||||
}
|
||||
return env0_11.IS_MEMBER;
|
||||
}
|
||||
return env0_11.IS_MEMBER;
|
||||
}
|
||||
r6 = value.includes(id) ? env0_11.HAS_APPLICATION : value5 == features ? value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5 : features.includes(GuildFeatures.MEMBER_VERIFICATION_GATE_ENABLED) ? value5 == features ? value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5 : features.includes(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL) ? value5 != r7 ? r6 ? value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5 : env0_11.APPLY_TO_JOIN : a0.visibility !== (require(6720) /* metro dependency 6720: GuildProfileTypes */).GuildProfileVisibility.PUBLIC_WITH_RECRUITMENT || r6 ? value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5 : env0_11.APPLY_TO_JOIN : value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5 : value5 != r7 ? env0_11.JOIN_VIA_INVITE : value5 != features && features.includes(GuildFeatures.DISCOVERABLE) ? env0_11.LURK_DISCOVERABLE : value5;
|
||||
return r6;
|
||||
}
|
||||
|
||||
function _fun72799() { // fn#72799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:881, offset: 0x01d54145, size: 66 bytes, params: 1, frame: 15
|
||||
const idBinding = id;
|
||||
const value2 = null;
|
||||
const r2 = value2 != idBinding ? GuildMemberStore.getMember(id, id) : value2;
|
||||
return value2 != (value2 == r2 ? undefined : r2.joinedAt);
|
||||
}
|
||||
|
||||
function _fun72800() { // fn#72800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:1014, offset: 0x01d54187, size: 243 bytes, params: 1, frame: 18
|
||||
var r1;
|
||||
var r0;
|
||||
var state;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
var hasFlag;
|
||||
var flags;
|
||||
var value;
|
||||
const value2 = null;
|
||||
const r4 = value2 != importDefault ? importDefault : InviteStore.getInviteKeyForGuildId(id);
|
||||
if (value2 != r4) {
|
||||
value = environment.__proto__;
|
||||
value = InviteStore.getInvite(r4);
|
||||
r1 = value;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
if (value2 == r1) {
|
||||
r0 = {'validInviteKey': null, 'isBypassInvite': false, 'inviteRoles': null};
|
||||
} else {
|
||||
state = r1.state;
|
||||
value = environment.__proto__;
|
||||
if (state === InviteStates.BANNED) {
|
||||
r0 = {'validInviteKey': null, 'isBypassInvite': false, 'inviteRoles': null};
|
||||
} else if (r1.state === InviteStates.EXPIRED) {
|
||||
r0 = {'validInviteKey': null, 'isBypassInvite': false, 'inviteRoles': null};
|
||||
} else {
|
||||
object2 = {validInviteKey: r4};
|
||||
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
|
||||
hasFlag = moduleValue.hasFlag;
|
||||
flags = r1.flags;
|
||||
object2.isBypassInvite = Reflect.apply(hasFlag, moduleValue, [value2 != flags ? flags : 0,
|
||||
(require(8898) /* metro dependency 8898: GuildInviteFlags */).GuildInviteFlags.IS_APPLICATION_BYPASS]);
|
||||
object2.inviteRoles = r1.roles;
|
||||
r0 = object2;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun72801() { // fn#72801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9504:1437, offset: 0x01d5427a, size: 658 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var r3;
|
||||
var primaryGuild;
|
||||
var r2;
|
||||
var r1;
|
||||
var value4;
|
||||
var INVITE;
|
||||
var inviteRolesBinding;
|
||||
var value5;
|
||||
var Set;
|
||||
var set;
|
||||
var value9;
|
||||
var moduleValue;
|
||||
if (env0_8) {
|
||||
value4 = environment.__proto__;
|
||||
INVITE = env1_12.INVITE;
|
||||
if (require !== INVITE) {
|
||||
value9 = undefined;
|
||||
primaryGuild = env0_7 == null ? value9 : env0_7.primaryGuild;
|
||||
if (require === env1_12.INVITE) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (env0_0.tag == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if ((primaryGuild == null ? value9 : primaryGuild.identityGuildId) === id && (primaryGuild == null ? value9 : primaryGuild.identityEnabled) === true) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (guild == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else {
|
||||
moduleValue = require(8401) /* metro dependency 8401: GuildTagUtils */;
|
||||
r1 = moduleValue.guildSupportsTags(guild) ? env1_11.ADOPT_TAG : env1_11.IS_MEMBER;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
if (inviteRoles == null) {
|
||||
value9 = undefined;
|
||||
primaryGuild = env0_7 == null ? value9 : env0_7.primaryGuild;
|
||||
if (require === env1_12.INVITE) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (env0_0.tag == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if ((primaryGuild == null ? value9 : primaryGuild.identityGuildId) === id && (primaryGuild == null ? value9 : primaryGuild.identityEnabled) === true) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (guild == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else {
|
||||
moduleValue = require(8401) /* metro dependency 8401: GuildTagUtils */;
|
||||
r1 = moduleValue.guildSupportsTags(guild) ? env1_11.ADOPT_TAG : env1_11.IS_MEMBER;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
if (inviteRoles.length > 0) {
|
||||
if (env0_7 == null) {
|
||||
value9 = undefined;
|
||||
primaryGuild = env0_7 == null ? value9 : env0_7.primaryGuild;
|
||||
if (require === env1_12.INVITE) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (env0_0.tag == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if ((primaryGuild == null ? value9 : primaryGuild.identityGuildId) === id && (primaryGuild == null ? value9 : primaryGuild.identityEnabled) === true) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (guild == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else {
|
||||
moduleValue = require(8401) /* metro dependency 8401: GuildTagUtils */;
|
||||
r1 = moduleValue.guildSupportsTags(guild) ? env1_11.ADOPT_TAG : env1_11.IS_MEMBER;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value5 = GuildMemberStore.getMember(id, env0_7.id);
|
||||
Set = global.Set;
|
||||
r3 = value5?.roles ?? [];
|
||||
set = new Set();
|
||||
inviteRolesBinding = inviteRoles;
|
||||
if (inviteRolesBinding.some(_fun72802)) {
|
||||
return env1_11.ACCEPT_ROLES;
|
||||
}
|
||||
value9 = undefined;
|
||||
primaryGuild = env0_7 == null ? value9 : env0_7.primaryGuild;
|
||||
if (require === env1_12.INVITE) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (set.tag == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if ((primaryGuild == null ? value9 : primaryGuild.identityGuildId) === id && (primaryGuild == null ? value9 : primaryGuild.identityEnabled) === true) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (guild == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else {
|
||||
moduleValue = require(8401) /* metro dependency 8401: GuildTagUtils */;
|
||||
r1 = moduleValue.guildSupportsTags(guild) ? env1_11.ADOPT_TAG : env1_11.IS_MEMBER;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
value9 = undefined;
|
||||
primaryGuild = env0_7 == null ? value9 : env0_7.primaryGuild;
|
||||
r2 = (primaryGuild == null ? value9 : primaryGuild.identityGuildId) === id && (primaryGuild == null ? value9 : primaryGuild.identityEnabled) === true;
|
||||
INVITE = env1_12.INVITE;
|
||||
if (require === INVITE) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (env0_0.tag == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (r2) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else if (guild == null) {
|
||||
r1 = env1_11.IS_MEMBER;
|
||||
} else {
|
||||
moduleValue = require(8401) /* metro dependency 8401: GuildTagUtils */;
|
||||
r1 = moduleValue.guildSupportsTags(guild) ? env1_11.ADOPT_TAG : env1_11.IS_MEMBER;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
const binding = env0_12;
|
||||
return binding.includes(id) ? env1_11.HAS_APPLICATION : features == null ? validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null : features.includes(GuildFeatures.MEMBER_VERIFICATION_GATE_ENABLED) ? features == null ? validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null : features.includes(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL) ? validInviteKey != null ? isBypassInvite ? validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null : env1_11.APPLY_TO_JOIN : env0_0.visibility !== (require(6720) /* metro dependency 6720: GuildProfileTypes */).GuildProfileVisibility.PUBLIC_WITH_RECRUITMENT || isBypassInvite ? validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null : env1_11.APPLY_TO_JOIN : validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null : validInviteKey != null ? env1_11.JOIN_VIA_INVITE : features != null && features.includes(GuildFeatures.DISCOVERABLE) ? env1_11.LURK_DISCOVERABLE : null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,243 @@
|
||||
/* Metro module 9313; source: modules/guild_profile/hooks/useGuildProfileGames.tsx; dependencies: [31, 5200, 5199, 1226, 566, 5198, 1360, 2] */
|
||||
function _fun72754(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:6, offset: 0x01d5235d, size: 204 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_72757 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = useAllGuildProfileGames;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const gameRecord = importDefault(5200) /* metro dependency 5200: GameRecord */;
|
||||
const gameStore = importDefault(5199) /* metro dependency 5199: GameStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/hooks/useGuildProfileGames.tsx');
|
||||
exports.default = useGuildProfileGames;
|
||||
exports.useAllGuildProfileGames = closure;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_72755(a0, a1) { // fn#72755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:141, offset: 0x01d52429, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun72756;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_72757(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_72757(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_72757(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun72756;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function useAllGuildProfileGames(a0) { // fn#72758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1051, offset: 0x01d5259d, size: 180 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const games = a0.games;
|
||||
(require(5198) /* metro dependency 5198: useGame */).useGames(games == null || (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore],
|
||||
function() {
|
||||
return AuthenticationStore.isAuthenticated();
|
||||
}) ? a0.gameApplicationIds : []);
|
||||
const env0_1 = useFallbackGameRecords(games);
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([GameStore], _fun72762);
|
||||
}
|
||||
|
||||
function useGuildProfileGames(a0) { // fn#72764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1691, offset: 0x01d52793, size: 180 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
const value3 = env0_2.useMemo(_fun72765, [useAllGuildProfileGames(a0), a0.gameActivity]);
|
||||
var env0_2 = value3;
|
||||
object2 = {};
|
||||
object2.gamesToDisplay = env0_2.useMemo(_fun72768, [value3]);
|
||||
object2.lastGameToDisplay = env0_2.useMemo(_fun72769, [value3]);
|
||||
object2.remainingGames = env0_2.useMemo(_fun72770, [value3]);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useFallbackGameRecords(a0) { // fn#72760, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1222, owner: useAllGuildProfileGames.useFallbackGameRecords, offset: 0x01d52664, size: 44 bytes, params: 2, frame: 14
|
||||
const env0_0 = a0;
|
||||
return env1_2.useMemo(_fun72761, [a0]);
|
||||
}
|
||||
|
||||
function _fun72762() { // fn#72762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1477, offset: 0x01d5271a, size: 75 bytes, params: 1, frame: 13
|
||||
const value = env0_0.gameApplicationIds.map(_fun72763);
|
||||
return value.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
|
||||
}
|
||||
|
||||
function _fun72765() { // fn#72765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1787, offset: 0x01d52847, size: 53 bytes, params: 1, frame: 14
|
||||
const gameActivityBinding = gameActivity;
|
||||
const value2 = ((a0) => {
|
||||
var env0_0 = a0;
|
||||
return _fun72767;
|
||||
})(gameActivityBinding);
|
||||
const binding = env0_1;
|
||||
const items2 = [];
|
||||
arraySpread(items2, binding, 0, gameActivityBinding);
|
||||
return items2.sort(value2);
|
||||
}
|
||||
|
||||
function _fun72768() { // fn#72768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:2040, offset: 0x01d528f5, size: 25 bytes, params: 1, frame: 13
|
||||
return env0_2.slice(0, 5);
|
||||
}
|
||||
|
||||
function _fun72769() { // fn#72769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:2092, offset: 0x01d5290e, size: 28 bytes, params: 1, frame: 3
|
||||
const property = env0_2[5];
|
||||
const value = null;
|
||||
return value != property ? property : value;
|
||||
}
|
||||
|
||||
function _fun72770() { // fn#72770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:2165, offset: 0x01d5292a, size: 22 bytes, params: 1, frame: 11
|
||||
return env0_2.slice(5);
|
||||
}
|
||||
|
||||
function _fun72761() { // fn#72761, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1275, offset: 0x01d52690, size: 138 bytes, params: 1, frame: 19
|
||||
var r2;
|
||||
var value6;
|
||||
var set;
|
||||
var id;
|
||||
var value7;
|
||||
var gameRecord;
|
||||
var value8;
|
||||
var value9;
|
||||
const Map = global.Map;
|
||||
let prototype = Map.prototype;
|
||||
let value = Object.create(prototype, {constructor: {value: Map}});
|
||||
const map = new Map();
|
||||
value = map instanceof Object ? map : value;
|
||||
if (env0_0 != null) {
|
||||
var value4 = _createForOfIteratorHelperLoose_72755(env0_0);
|
||||
var value5 = value4();
|
||||
var done = value5.done;
|
||||
if (!done) {
|
||||
r2 = value5;
|
||||
reducibleLoop2: while (true) {
|
||||
value6 = r2.value;
|
||||
set = value.set;
|
||||
id = value6.id;
|
||||
prototype = GameRecord.prototype;
|
||||
value7 = Object.create(prototype, {constructor: {value: GameRecord}});
|
||||
gameRecord = new GameRecord();
|
||||
value8 = gameRecord instanceof Object ? gameRecord : value7;
|
||||
Reflect.apply(set, value, [id, value8]);
|
||||
value9 = value4();
|
||||
done = value9.done;
|
||||
if (done) {
|
||||
break reducibleLoop2;
|
||||
}
|
||||
r2 = value9;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun72763(a0) { // fn#72763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1507, offset: 0x01d52765, size: 46 bytes, params: 2, frame: 12
|
||||
var r0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = GameStore.getGame(a0);
|
||||
if (value != null) {
|
||||
r0 = value;
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = env1_1.get(a0);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function gameActivitySorter(a0) { // fn#72766, offset: 0x01d5287c, size: 18 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun72767;
|
||||
}
|
||||
|
||||
function _fun72767({id}, {id}) { // fn#72767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9499:1835, offset: 0x01d5288e, size: 103 bytes, params: 3, frame: 7
|
||||
const r2 = env0_0[id]?.score ?? 0;
|
||||
const r1 = env0_0[id]?.score ?? 0;
|
||||
return r2 === r1 ? 0 : r1 - r2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/* Metro module 9304; source: modules/guild_profile/native/GuildProfileUtils.tsx; dependencies: [57, 4502, 1423, 8372, 5132, 2] */
|
||||
function _fun72726(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9490:6, offset: 0x01d505cb, size: 147 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/GuildProfileUtils.tsx');
|
||||
exports.useProfilePrimaryColor = useProfilePrimaryColor;
|
||||
exports.getProfilePrimaryColor = getProfilePrimaryColor;
|
||||
}
|
||||
|
||||
function useProfilePrimaryColor(a0, a1) { // fn#72727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9490:228, offset: 0x01d5065e, size: 151 bytes, params: 3, frame: 16
|
||||
const value = null;
|
||||
return value == (value == a0 ? undefined : a0.brandColorPrimary) ? (importDefault(8372) /* metro dependency 8372: useAvatarColor */)(value != a0 && value == a0.brandColorPrimary ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: a0.id,
|
||||
icon: a0.icon, size: 64}) : value, a1) : a0.brandColorPrimary;
|
||||
}
|
||||
|
||||
function getProfilePrimaryColor(a0) { // fn#72728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9490:479, offset: 0x01d506f5, size: 361 bytes, params: 2, frame: 20
|
||||
var r6;
|
||||
var saturation;
|
||||
var value4;
|
||||
var value5;
|
||||
var value7;
|
||||
var h;
|
||||
var s;
|
||||
var l;
|
||||
if (a0 != null) {
|
||||
if (a0.brandColorPrimary != null) {
|
||||
return a0.brandColorPrimary;
|
||||
}
|
||||
var value;
|
||||
var value2 = undefined;
|
||||
var guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: a0.id,
|
||||
icon: a0.icon, size: 64});
|
||||
if (guildIconURL == null) {
|
||||
return null;
|
||||
}
|
||||
(require(8372) /* metro dependency 8372: useAvatarColor */).maybeFetchColors(guildIconURL);
|
||||
var useColorStore = (require(8372) /* metro dependency 8372: useAvatarColor */).useColorStore;
|
||||
var getState = useColorStore.getState;
|
||||
var property = Reflect.apply(getState, useColorStore, []).palette[guildIconURL];
|
||||
if (property == null) {
|
||||
r6 = value2;
|
||||
} else {
|
||||
property = property[0];
|
||||
r6 = property;
|
||||
}
|
||||
if (r6 != null) {
|
||||
value4 = env0_3(r6, 3);
|
||||
property = value4[0];
|
||||
value5 = 1;
|
||||
value7 = (importDefault(5132) /* metro dependency 5132 */)({r: property, g: value4[value5],
|
||||
b: value4[2]}).toHsl();
|
||||
h = value7.h;
|
||||
s = value7.s;
|
||||
l = value7.l;
|
||||
saturation = AccessibilityStore.desaturateUserColors ? AccessibilityStore.saturation : value5;
|
||||
value = importDefault(5132) /* metro dependency 5132 */;
|
||||
value = value({h: h, s: s * saturation, l: l});
|
||||
return value.toHexString();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 9309; source: modules/guild_profile/native/components/GameIcon.tsx; dependencies: [31, 27, 33, 4501, 697, 1423, 9310, 5278, 9311, 2] */
|
||||
function _fun72747(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9495:6, offset: 0x01d51df8, size: 394 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
|
||||
object4 = {gameIcon: {'width': 32, 'height': 32}};
|
||||
const object5 = {'width': 32, 'height': 32, 'borderRadius': null, 'borderWidth': 1, 'borderStyle': 'solid'};
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
object5.borderColor = BORDER_STRONG;
|
||||
object4.gameIconImage = object5;
|
||||
const object6 = {'position': 'absolute', 'top': -4, 'right': -4, 'display': 'flex', 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'padding': 2, 'width': 18, 'height': 18};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object6.backgroundColor = BACKGROUND_BASE_LOWER;
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object4.gameIconMask = object6;
|
||||
object4.fireIcon = {'marginTop': -1, 'width': 14, 'height': 14};
|
||||
value = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GameIcon.tsx');
|
||||
exports.default = GameIcon_72748;
|
||||
exports.useStyles = value;
|
||||
}
|
||||
|
||||
function GameIcon_72748({style, game, activityLevel, onPress}) { // fn#72748, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9495:719, offset: 0x01d51f82, size: 651 bytes, params: 2, frame: 30
|
||||
var r1;
|
||||
var r0;
|
||||
var object;
|
||||
var items2;
|
||||
var PressableHighlight;
|
||||
var items4;
|
||||
const styles = useStyles();
|
||||
const r10 = game.iconHash != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGameAssetSource({id: game.id,
|
||||
hash: game.iconHash, size: 24}) : null;
|
||||
const value5 = env0_3.useCallback(function() {
|
||||
if (onPress != null) {
|
||||
onPress(game);
|
||||
}
|
||||
}, [game, onPress]);
|
||||
const level = activityLevel?.level;
|
||||
const ClanGameplayActivity = (require(9310) /* metro dependency 9310: ClanGameplayActivity */).ClanGameplayActivity;
|
||||
const HIGH = ClanGameplayActivity.HIGH;
|
||||
const value6 = level === HIGH;
|
||||
if (r10 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
if (onPress != null) {
|
||||
PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
var pressableHighlightProps = {style: [style, styles.gameIcon], onPress: value5};
|
||||
items4 = [<Image style={styles.gameIconImage} source={r10} />];
|
||||
items4[1] = value6 && <View style={styles.gameIconMask}>{((FireIcon) => <FireIcon style={styles.fireIcon} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.ORANGE_260} />)((require(9311) /* metro dependency 9311: FireIcon */).FireIcon)}</View>;
|
||||
r1 = <PressableHighlight {...pressableHighlightProps}>{items4}</PressableHighlight>;
|
||||
} else {
|
||||
var viewProps = {style: [style, styles.gameIcon]};
|
||||
items2 = [<Image style={styles.gameIconImage} source={r10} />];
|
||||
items2[1] = value6 && <View style={styles.gameIconMask}>{((FireIcon) => <FireIcon style={styles.fireIcon} color={(importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.ORANGE_330} />)((require(9311) /* metro dependency 9311: FireIcon */).FireIcon)}</View>;
|
||||
r1 = <View {...viewProps}>{items2}</View>;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
/* Metro module 9300; source: modules/guild_profile/native/components/GuildProfileActionSheet.tsx; dependencies: [57, 31, 27, 3785, 9092, 6588, 661, 33, 4501, 697, 1478, 4048, 9093, 566, 3860, 7326, 6771, 6789, 6912, 9094, 9301, 4578, 1244, 9316, 9302, 9317, 674, 6275, 4589, 6277, 6515, 2] */
|
||||
function _fun72700(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:6, offset: 0x01d4efbc, size: 389 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_5 = value.View;
|
||||
const env0_6 = value.ActivityIndicator;
|
||||
const lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
|
||||
const guildProfileStore = importDefault(9092) /* metro dependency 9092: GuildProfileStore */;
|
||||
const env0_9 = (require(9092) /* metro dependency 9092: GuildProfileStore */).GuildProfileFetchStatus;
|
||||
const env0_10 = (require(6588) /* metro dependency 6588: GuildProfileConstants */).INVALID_ACCESS_ERROR_CODE;
|
||||
const env0_11 = (require(661) /* metro dependency 661: Constants */).VerticalGradient;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const env0_14 = Reflect.apply(createStyles, value, [{loadingContainer: {paddingTop: 40},
|
||||
footerContainer: {'paddingHorizontal': 16, 'paddingVertical': 40},
|
||||
scrollView: {backgroundColor: BACKGROUND_BASE_LOW}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileActionSheet.tsx');
|
||||
exports.default = GuildProfileActionSheet;
|
||||
}
|
||||
|
||||
function GuildProfileActionSheet({guildId, context, inviteKey}) { // fn#72701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:488, offset: 0x01d4f141, size: 1359 bytes, params: 2, frame: 34
|
||||
var r12;
|
||||
var r14;
|
||||
var value12;
|
||||
var value14;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value16;
|
||||
var view;
|
||||
const styles = useStyles();
|
||||
const value3 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const {guildProfile, fetchGuildProfile,
|
||||
fetchStatus} = (require(9093) /* metro dependency 9093: useGuildProfile */).useGuildProfile(guildId);
|
||||
const errorCode = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildProfileStore],
|
||||
function() {
|
||||
return GuildProfileStore.getErrorCode(guildId);
|
||||
});
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
let useToken = useTokenModule.useToken;
|
||||
const INTERACTIVE_TEXT_HOVER = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_HOVER;
|
||||
const value5 = Reflect.apply(useToken, useTokenModule, [INTERACTIVE_TEXT_HOVER, value3]);
|
||||
const {bottomSheetRef,
|
||||
bottomSheetClose} = (require(7326) /* metro dependency 7326: useBottomSheetRef */).useBottomSheetRef();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const GUILD_PROFILE = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_PROFILE;
|
||||
const analyticsLocations = defaultImport(GUILD_PROFILE).analyticsLocations;
|
||||
const moduleValue5 = useTokenModule;
|
||||
useToken = moduleValue5.useToken;
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
const value7 = Reflect.apply(useToken, moduleValue5, [BACKGROUND_BASE_LOW]);
|
||||
const value8 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LurkingStore], _fun72703,
|
||||
[guildId]);
|
||||
const mobileLurkerServerPreviewExperimentModule = require(6912) /* metro dependency 6912: MobileLurkerServerPreviewExperiment */;
|
||||
const useMobileLurkerServerPreview = mobileLurkerServerPreviewExperimentModule.useMobileLurkerServerPreview;
|
||||
const r11 = value8 && Reflect.apply(useMobileLurkerServerPreview, mobileLurkerServerPreviewExperimentModule,
|
||||
['GuildProfileActionSheet']).enabled;
|
||||
const {startHeight, handleContentLayout, handleFooterLayout} = useFitSheetToContent({enabled: r11,
|
||||
isContentReady: guildProfile != null, bottomSheetRef: bottomSheetRef});
|
||||
const binding = env0_4;
|
||||
binding.useEffect(_fun72710, [guildId, analyticsLocations]);
|
||||
const value11 = binding.useCallback(function() {
|
||||
fetchGuildProfile(true);
|
||||
}, [fetchGuildProfile]);
|
||||
binding.useEffect(function() {
|
||||
fetchGuildProfile();
|
||||
}, [fetchGuildProfile]);
|
||||
const NOT_FETCHED = GuildProfileFetchStatus.NOT_FETCHED;
|
||||
if (fetchStatus === NOT_FETCHED) {
|
||||
view = <View style={styles.loadingContainer}><ActivityIndicator animating size="large" /></View>;
|
||||
r12 = null;
|
||||
r14 = view;
|
||||
} else if (fetchStatus === GuildProfileFetchStatus.FETCHING) {
|
||||
view = <View style={styles.loadingContainer}><ActivityIndicator animating size="large" /></View>;
|
||||
r12 = null;
|
||||
r14 = view;
|
||||
} else if (guildProfile != null) {
|
||||
if (guildProfile == null) {
|
||||
value14 = ((Component) => <Component onRetry={value11} />)(importDefault(9316) /* metro dependency 9316: GuildProfileLoadingError */);
|
||||
r12 = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={bottomSheetClose} />;
|
||||
r14 = value14;
|
||||
} else {
|
||||
value12 = ((Component) => <Component guildProfile={guildProfile} isLurkerServerPreview={r11} />)(importDefault(9302) /* metro dependency 9302: GuildProfileView */);
|
||||
r12 = ((Component) => <Component profile={guildProfile} context={context} inviteKey={inviteKey} isLurkerServerPreview={r11} />)(importDefault(9317) /* metro dependency 9317: GuildProfileCTA */);
|
||||
r14 = value12;
|
||||
}
|
||||
} else if (errorCode === INVALID_ACCESS_ERROR_CODE) {
|
||||
value16 = ((Component) => <Component />)(importDefault(9301) /* metro dependency 9301: RestrictedGuildProfileView */);
|
||||
r12 = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={bottomSheetClose} />;
|
||||
r14 = value16;
|
||||
} else if (guildProfile == null) {
|
||||
value14 = ((Component) => <Component onRetry={value11} />)(importDefault(9316) /* metro dependency 9316: GuildProfileLoadingError */);
|
||||
r12 = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq)} onPress={bottomSheetClose} />;
|
||||
r14 = value14;
|
||||
} else {
|
||||
value12 = ((Component) => <Component guildProfile={guildProfile} isLurkerServerPreview={r11} />)(importDefault(9302) /* metro dependency 9302: GuildProfileView */);
|
||||
r12 = ((Component) => <Component profile={guildProfile} context={context} inviteKey={inviteKey} isLurkerServerPreview={r11} />)(importDefault(9317) /* metro dependency 9317: GuildProfileCTA */);
|
||||
r14 = value12;
|
||||
}
|
||||
const value19 = env0_4.useMemo(_fun72713, [value7]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const bottomSheetProps = {'ref': null, 'scrollable': true, 'handleDisabled': true, ref: bottomSheetRef,
|
||||
startHeight: startHeight};
|
||||
const defaultImport6 = importDefault(4589) /* metro dependency 4589 */;
|
||||
const START = VerticalGradient.START;
|
||||
bottomSheetProps.footer = ((Component) => <Component start={START} end={{'x': 0,
|
||||
'y': 0.5}} style={styles.footerContainer} colors={value19} onLayout={r11 ? handleFooterLayout : undefined}>{r12}</Component>)(defaultImport6);
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const bottomSheetScrollView = <BottomSheetScrollView style={styles.scrollView}>{r11 ? <View onLayout={handleContentLayout}>{r14}</View> : r14}</BottomSheetScrollView>;
|
||||
const ActionSheetHeaderBar = (require(6515) /* metro dependency 6515: ActionSheetHeaderBarNative */).ActionSheetHeaderBar;
|
||||
return (
|
||||
<BottomSheet {...bottomSheetProps}>
|
||||
{bottomSheetScrollView}
|
||||
<ActionSheetHeaderBar
|
||||
variant="floating"
|
||||
tabStyle={{backgroundColor: value5}}
|
||||
onPress={bottomSheetClose}
|
||||
/>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72703() { // fn#72703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1000, offset: 0x01d4f6ad, size: 40 bytes, params: 1, frame: 12
|
||||
return guildId != null && LurkingStore.isLurking(guildId);
|
||||
}
|
||||
|
||||
function useFitSheetToContent({enabled, isContentReady, bottomSheetRef}) { // fn#72704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1122, owner: GuildProfileActionSheet.useFitSheetToContent, offset: 0x01d4f6d5, size: 321 bytes, params: 2, frame: 23
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
const binding = env1_4;
|
||||
let useState = binding.useState;
|
||||
const value2 = Reflect.apply(useState, binding, [null]);
|
||||
const binding2 = env1_3;
|
||||
value = binding2(value2, 2);
|
||||
const property = value[0];
|
||||
const env0_5 = value[1];
|
||||
useState = binding.useState;
|
||||
value = binding2(Reflect.apply(useState, binding, [null]), 2);
|
||||
const property2 = value[0];
|
||||
const env0_7 = value[1];
|
||||
const env0_8 = binding.useRef(false);
|
||||
value = binding.useMemo(_fun72705, [enabled, property, property2, height]);
|
||||
const value3 = binding.useCallback(_fun72706, [enabled, isContentReady]);
|
||||
const value4 = binding.useCallback(_fun72707, [enabled]);
|
||||
binding.useEffect(_fun72708, [enabled, property, property2, bottomSheetRef]);
|
||||
return {startHeight: value, handleContentLayout: value3, handleFooterLayout: value4};
|
||||
}
|
||||
|
||||
function _fun72710() { // fn#72710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1928, offset: 0x01d4f99a, size: 50 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(9094) /* metro dependency 9094: GuildProfileActionCreators */;
|
||||
value.trackGuildProfileViewed(guildId, analyticsLocations);
|
||||
}
|
||||
|
||||
function _fun72713() { // fn#72713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:2568, offset: 0x01d4f9de, size: 74 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(674) /* metro dependency 674 */;
|
||||
const binding = env0_3;
|
||||
value = value(binding);
|
||||
value = value.alpha(0);
|
||||
value = value.hex();
|
||||
return [value, binding];
|
||||
}
|
||||
|
||||
function _fun72705() { // fn#72705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1335, offset: 0x01d4f816, size: 168 bytes, params: 1, frame: 20
|
||||
if (enabled) {
|
||||
return env0_4 == null || env0_6 == null ? global.Math.round(0.65 * height) : global.Math.round(global.Math.min(0.95 * height,
|
||||
|
||||
global.Math.max(0.65 * height, env0_4 + env0_6)));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72706(a0) { // fn#72706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1465, offset: 0x01d4f8be, size: 52 bytes, params: 2, frame: 11
|
||||
if (enabled && isContentReady) {
|
||||
env0_5(a0.nativeEvent.layout.height);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72707(a0) { // fn#72707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1532, offset: 0x01d4f8f2, size: 45 bytes, params: 2, frame: 11
|
||||
if (enabled) {
|
||||
env0_7(a0.nativeEvent.layout.height);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72708() { // fn#72708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9486:1597, offset: 0x01d4f91f, size: 88 bytes, params: 1, frame: 12
|
||||
if (enabled && env0_4 != null && env0_6 != null) {
|
||||
if (!env0_8.current) {
|
||||
env0_8.current = true;
|
||||
global.requestAnimationFrame(function() {
|
||||
var current = bottomSheetRef.current;
|
||||
if (current != null) {
|
||||
current.snapToIndex(0);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,161 @@
|
||||
/* Metro module 9317; source: modules/guild_profile/native/components/GuildProfileCTA.tsx; dependencies: [31, 661, 670, 33, 9318, 7622, 4080, 6947, 8879, 9320, 3972, 8926, 6720, 8919, 6946, 9321, 4578, 1244, 2] */
|
||||
function _fun72785(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:6, offset: 0x01d533c8, size: 196 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.AnalyticsObjects;
|
||||
const env0_5 = constantsModule.JoinGuildSources;
|
||||
const env0_6 = (require(670) /* metro dependency 670: UserSettingsConstants */).ProfileCustomizationScrollPositions;
|
||||
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileCTA.tsx');
|
||||
exports.default = GuildProfileCTA;
|
||||
}
|
||||
|
||||
function GuildProfileCTA({profile, context, inviteKey, isLurkerServerPreview}) { // fn#72786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:322, offset: 0x01d5348c, size: 1498 bytes, params: 2, frame: 28
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
isLurkerServerPreview = !(isLurkerServerPreview === undefined) && isLurkerServerPreview;
|
||||
const {guildId, validInviteKey,
|
||||
ctaType} = (importDefault(9318) /* metro dependency 9318: useGuildProfileCTA */)(profile, context, inviteKey);
|
||||
const defaultImport = importDefault(7622) /* metro dependency 7622: useOpenProfileSettings */;
|
||||
const GUILD_TAG = ProfileCustomizationScrollPositions.GUILD_TAG;
|
||||
const env0_3 = defaultImport({scrollPosition: GUILD_TAG});
|
||||
let binding = env0_3;
|
||||
const value5 = binding.useCallback(_fun72787, [guildId]);
|
||||
const value6 = binding.useCallback(_fun72788, [guildId, validInviteKey]);
|
||||
const value8 = binding.useCallback(_fun72789, [guildId,
|
||||
(importDefault(9320) /* metro dependency 9320: useGetJoinRequestGuild */)(guildId)?.applicationStatus]);
|
||||
binding = env0_3;
|
||||
const value9 = binding.useCallback(_fun72790, [guildId, value6, profile.visibility, validInviteKey]);
|
||||
const value10 = binding.useCallback(function() {
|
||||
importDefault(dependencyMap[6]).hideActionSheet('GuildProfileActionSheet:' + guildId);
|
||||
require(dependencyMap[14]).startLurking(guildId, {object: AnalyticsObjects.GUILD_PROFILE});
|
||||
}, [guildId]);
|
||||
const value11 = binding.useMemo(function() {
|
||||
return {'grow': true, 'size': 'lg', 'variant': 'active'};
|
||||
}, []);
|
||||
if (isLurkerServerPreview) {
|
||||
return ((Component) => <Component guildId={guildId} joinSource={JoinGuildSources.GUILD_PROFILE_LURKER} />)(importDefault(9321) /* metro dependency 9321: LurkerServerPreviewJoinButton */);
|
||||
}
|
||||
const CTATypes = (require(9318) /* metro dependency 9318: useGuildProfileCTA */).CTATypes;
|
||||
const IS_MEMBER = CTATypes.IS_MEMBER;
|
||||
if (IS_MEMBER === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value5;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.KLOhbO);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const ADOPT_TAG = CTATypes.ADOPT_TAG;
|
||||
if (ADOPT_TAG === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = GuildProfileCTAOnPress;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cQDYRu);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const HAS_APPLICATION = CTATypes.HAS_APPLICATION;
|
||||
if (HAS_APPLICATION === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value8;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4yfIDk']);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const APPLY_TO_JOIN = CTATypes.APPLY_TO_JOIN;
|
||||
if (APPLY_TO_JOIN === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value9;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7XdMW2']);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const LURK_DISCOVERABLE = CTATypes.LURK_DISCOVERABLE;
|
||||
if (LURK_DISCOVERABLE === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value10;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XpeFYr);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const JOIN_VIA_INVITE = CTATypes.JOIN_VIA_INVITE;
|
||||
if (JOIN_VIA_INVITE === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value6;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XpeFYr);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
const ACCEPT_ROLES = CTATypes.ACCEPT_ROLES;
|
||||
if (ACCEPT_ROLES === ctaType) {
|
||||
var buttonProps = {...value11};
|
||||
buttonProps['onPress'] = value6;
|
||||
buttonProps['text'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.MMlhsr);
|
||||
return <Button {...buttonProps} />;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function _fun72787() { // fn#72787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:530, offset: 0x01d53a66, size: 100 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
defaultImport.hideActionSheet('GuildProfileActionSheet:' + guildId);
|
||||
value = require(6947) /* metro dependency 6947: transitionToGuildNative */;
|
||||
value.transitionToGuild(guildId);
|
||||
}
|
||||
|
||||
function _fun72788() { // fn#72788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:644, offset: 0x01d53aca, size: 131 bytes, params: 1, frame: 17
|
||||
var value2;
|
||||
var defaultImport;
|
||||
if (validInviteKey != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
defaultImport.hideActionSheet('GuildProfileActionSheet:' + guildId);
|
||||
(importDefault(8879) /* metro dependency 8879: InstantInviteActionCreators */).acceptInviteAndTransitionToInviteChannel({inviteKey: validInviteKey,
|
||||
|
||||
context: {location: 'guild_profile'}});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72789() { // fn#72789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:854, offset: 0x01d53b4d, size: 265 bytes, params: 1, frame: 15
|
||||
var moduleValue;
|
||||
var moduleValue3;
|
||||
const value2 = undefined;
|
||||
const applicationStatus = env0_5 == null ? value2 : env0_5.applicationStatus;
|
||||
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
|
||||
const SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
|
||||
if (SUBMITTED === applicationStatus) {
|
||||
moduleValue3 = require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */;
|
||||
moduleValue3.openMemberVerificationPendingAlert(guildId);
|
||||
} else if (GuildJoinRequestApplicationStatuses.REJECTED === applicationStatus) {
|
||||
(require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */).openMemberVerificationRejectedAlert({guildId: guildId,
|
||||
|
||||
canWithdraw: true});
|
||||
} else if (GuildJoinRequestApplicationStatuses.STARTED === applicationStatus) {
|
||||
moduleValue = require(8926) /* metro dependency 8926: MemberVerificationAlertActionCreators */;
|
||||
moduleValue.openMemberVerificationIncompleteAlert(guildId);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun72790() { // fn#72790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:1321, offset: 0x01d53c56, size: 166 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
defaultImport.hideActionSheet('GuildProfileActionSheet:' + guildId);
|
||||
const visibility = profile.visibility;
|
||||
const GuildProfileVisibility = (require(6720) /* metro dependency 6720: GuildProfileTypes */).GuildProfileVisibility;
|
||||
const PUBLIC_WITH_RECRUITMENT = GuildProfileVisibility.PUBLIC_WITH_RECRUITMENT;
|
||||
if (visibility === PUBLIC_WITH_RECRUITMENT) {
|
||||
value = require(8919) /* metro dependency 8919: MemberVerificationModalActionCreators */;
|
||||
value.openMemberVerificationModal(guildId);
|
||||
} else if (validInviteKey != null) {
|
||||
env0_4();
|
||||
} else {
|
||||
value = require(8919) /* metro dependency 8919: MemberVerificationModalActionCreators */;
|
||||
value.openMemberVerificationModal(guildId);
|
||||
}
|
||||
}
|
||||
|
||||
function GuildProfileCTAOnPress() { // fn#72793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9503:1997, owner: GuildProfileCTA.onPress, offset: 0x01d53d82, size: 77 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
value.hideActionSheet('GuildProfileActionSheet:' + guildId);
|
||||
env0_3();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/* Metro module 9308; source: modules/guild_profile/native/components/GuildProfileGames.tsx; dependencies: [31, 27, 33, 4501, 697, 9309, 4573, 9313, 3857, 4080, 9314, 1962, 5278, 2] */
|
||||
function _fun72739(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:6, offset: 0x01d51710, size: 373 bytes, params: 8, frame: 23
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
|
||||
const object = {'position': 'absolute', 'top': 0, 'left': 0, 'right': 0, 'bottom': 0};
|
||||
const BACKGROUND_SCRIM = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SCRIM;
|
||||
object.backgroundColor = BACKGROUND_SCRIM;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
value = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexDirection': 'row', 'gap': 8},
|
||||
favoriteGame: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 8},
|
||||
lastItem: {'position': 'relative', 'width': 32, 'height': 32}, lastItemOverlay: object,
|
||||
lastItemImage: {position: 'absolute'}, lastItemText: {'display': 'flex', 'justifyContent': 'center',
|
||||
'alignItems': 'center', 'width': 32, 'height': 32}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileGames.tsx');
|
||||
exports.default = GuildProfileGames;
|
||||
exports.useStyles = value;
|
||||
}
|
||||
|
||||
function FavoriteGame({game, activityLevel}) { // fn#72740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:628, offset: 0x01d51885, size: 168 bytes, params: 2, frame: 21
|
||||
const styles = useStyles();
|
||||
const value2 = ((Component) => <Component game={game} activityLevel={activityLevel} />)(importDefault(9309) /* metro dependency 9309: GameIcon */);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.favoriteGame}>
|
||||
{value2}
|
||||
<Text variant="text-sm/medium" color="text-subtle">
|
||||
{game.name}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildProfileGames({profile}) { // fn#72741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:953, offset: 0x01d5192d, size: 498 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const gameActivity = profile.gameActivity;
|
||||
const value3 = (importDefault(9313) /* metro dependency 9313: useGuildProfileGames */)(profile);
|
||||
const gamesToDisplay = value3.gamesToDisplay;
|
||||
const lastGameToDisplay = value3.lastGameToDisplay;
|
||||
const env0_3 = lastGameToDisplay;
|
||||
const remainingGames = value3.remainingGames;
|
||||
const value5 = lastGameToDisplay?.iconHash != null;
|
||||
const binding = env0_3;
|
||||
const value6 = binding.useMemo(_fun72742, [lastGameToDisplay, value5, remainingGames, gameActivity, styles]);
|
||||
let useCallback = binding.useCallback;
|
||||
const env0_6 = Reflect.apply(useCallback, binding, [_fun72743, []]);
|
||||
const value7 = remainingGames.length > 0;
|
||||
useCallback = binding.useCallback;
|
||||
if (gamesToDisplay == null || gamesToDisplay.length === 0) {
|
||||
return null;
|
||||
} else if (gamesToDisplay.length === 1) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<FavoriteGame game={gamesToDisplay[0]} activityLevel={gameActivity[gamesToDisplay[0].id]} />
|
||||
</View>
|
||||
);
|
||||
} else if (value7) {
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
return (
|
||||
<PressableHighlight style={styles.container} onPress={Reflect.apply(useCallback, binding, [_fun72744,
|
||||
[profile]])}>
|
||||
{gamesToDisplay.map(_fun72745)}
|
||||
{value6}
|
||||
</PressableHighlight>
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{gamesToDisplay.map(_fun72746)}
|
||||
{value6}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72742() { // fn#72742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:1142, offset: 0x01d51b1f, size: 387 bytes, params: 1, frame: 26
|
||||
var r2;
|
||||
var r1;
|
||||
var r0;
|
||||
var value3;
|
||||
var object2;
|
||||
var stylesBinding;
|
||||
var GameIcon;
|
||||
var lastItemImage;
|
||||
var items2;
|
||||
var value5;
|
||||
var GameIcon2;
|
||||
let lastGameToDisplayBinding = lastGameToDisplay;
|
||||
const value2 = null;
|
||||
if (value2 == lastGameToDisplayBinding) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
if (env0_5) {
|
||||
if (remainingGames.length === 0) {
|
||||
value5 = environment.__proto__;
|
||||
GameIcon2 = importDefault(9309) /* metro dependency 9309: GameIcon */;
|
||||
lastGameToDisplayBinding = lastGameToDisplay;
|
||||
r2 = <GameIcon2 game={lastGameToDisplayBinding} activityLevel={gameActivity[lastGameToDisplayBinding.id]} />;
|
||||
} else {
|
||||
value3 = environment.__proto__;
|
||||
object2 = {};
|
||||
stylesBinding = styles;
|
||||
object2.style = stylesBinding.lastItem;
|
||||
GameIcon = importDefault(9309) /* metro dependency 9309: GameIcon */;
|
||||
lastItemImage = stylesBinding.lastItemImage;
|
||||
lastGameToDisplayBinding = lastGameToDisplay;
|
||||
items2 = [<GameIcon style={lastItemImage} game={lastGameToDisplayBinding} activityLevel={gameActivity[lastGameToDisplayBinding.id]} />];
|
||||
items2[1] = <View style={stylesBinding.lastItemOverlay} />;
|
||||
items2[2] = <View style={stylesBinding.lastItemText}>{((Text) => <Text variant="text-xs/medium" color="always-white">{'+' + remainingGames.length}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
|
||||
r2 = <View {...object2}>{items2}</View>;
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
r1 = value2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun72743({id, name}) { // fn#72743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:1507, offset: 0x01d51ca2, size: 85 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: 'profile-game-' + id,
|
||||
content: name});
|
||||
}
|
||||
|
||||
function _fun72744() { // fn#72744, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:1605, offset: 0x01d51cf7, size: 101 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[9]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[11]);
|
||||
value = value(dependencyMap[10], dependencyMap.paths);
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'GuildProfileGamesActionSheet{profile.id}', {profile: profile},
|
||||
'stack']);
|
||||
}
|
||||
|
||||
function _fun72745(a0) { // fn#72745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:1934, offset: 0x01d51d5c, size: 74 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component game={a0} activityLevel={gameActivity[a0.id]} key={a0.id} />)(importDefault(9309) /* metro dependency 9309: GameIcon */);
|
||||
}
|
||||
|
||||
function _fun72746(a0) { // fn#72746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9494:2031, offset: 0x01d51da6, size: 82 bytes, params: 2, frame: 18
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component game={a0} activityLevel={gameActivity[a0.id]} onPress={env0_6} key={a0.id} />)(importDefault(9309) /* metro dependency 9309: GameIcon */);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 9314; source: modules/guild_profile/native/components/GuildProfileGamesActionSheet.tsx; dependencies: [31, 27, 33, 4501, 9313, 7326, 1244, 4080, 9300, 1962, 6275, 6277, 6231, 6238, 9309, 2] */
|
||||
function _fun72771(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9500:6, offset: 0x01d52940, size: 209 bytes, params: 8, frame: 19
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'padding': 16,
|
||||
'paddingBottom': 48}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileGamesActionSheet.tsx');
|
||||
exports.default = GuildProfileGamesActionSheet;
|
||||
}
|
||||
|
||||
function GuildProfileGamesActionSheet({profile}) { // fn#72772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9500:318, offset: 0x01d52a11, size: 377 bytes, params: 2, frame: 24
|
||||
const styles = useStyles();
|
||||
const id = profile.id;
|
||||
const env0_1 = profile.gameActivity;
|
||||
const value2 = (require(9313) /* metro dependency 9313: useGuildProfileGames */).useAllGuildProfileGames(profile);
|
||||
const useBottomSheetRefModule = require(7326) /* metro dependency 7326: useBottomSheetRef */;
|
||||
const useBottomSheetRef = useBottomSheetRefModule.useBottomSheetRef;
|
||||
const bottomSheetRef = Reflect.apply(useBottomSheetRef, useBottomSheetRefModule, []).bottomSheetRef;
|
||||
const name = profile.name;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value4 = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.vuAVo7,
|
||||
{serverName: name}).toString();
|
||||
const value5 = env0_3.useCallback(_fun72773, [id]);
|
||||
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return (
|
||||
<BottomSheet
|
||||
ref={bottomSheetRef}
|
||||
scrollable
|
||||
onDismiss={value5}
|
||||
startHeight={300}
|
||||
>
|
||||
<BottomSheetScrollView>
|
||||
<View style={styles.container}>
|
||||
<TableRowGroup title={value4} hasIcons>
|
||||
{value2.map(_fun72774)}
|
||||
</TableRowGroup>
|
||||
</View>
|
||||
</BottomSheetScrollView>
|
||||
</BottomSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72773() { // fn#72773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9500:577, offset: 0x01d52b8a, size: 111 bytes, params: 1, frame: 17
|
||||
let value = environment.__proto__;
|
||||
const defaultImport = importDefault(dependencyMap[7]);
|
||||
const openLazy = defaultImport.openLazy;
|
||||
value = require(dependencyMap[9]);
|
||||
value = value(dependencyMap[8], dependencyMap.paths);
|
||||
const idBinding = id;
|
||||
Reflect.apply(openLazy, defaultImport, [value, 'GuildProfileActionSheet:' + idBinding, {guildId: idBinding}]);
|
||||
}
|
||||
|
||||
function _fun72774(a0) { // fn#72774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9500:897, offset: 0x01d52bf9, size: 117 bytes, params: 2, frame: 19
|
||||
const value = environment.__proto__;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
return (
|
||||
<TableRow
|
||||
icon={((Component) => <Component game={a0} activityLevel={gameActivity[a0.id]} />)(importDefault(9309) /* metro dependency 9309: GameIcon */)}
|
||||
label={a0.name}
|
||||
key={a0.id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
/* Metro module 9306; source: modules/guild_profile/native/components/GuildProfileHeader.tsx; dependencies: [31, 27, 1949, 1226, 1945, 9307, 33, 4501, 697, 566, 4119, 21, 1418, 6918, 6917, 3857, 4080, 6947, 6819, 4573, 5278, 6915, 1244, 2] */
|
||||
function _fun72731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9492:6, offset: 0x01d50a25, size: 532 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
||||
const env0_8 = (require(9307) /* metro dependency 9307: GuildBadgeConstants */).getBadgeTooltip;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
|
||||
object2 = {header: {'paddingHorizontal': 16, 'marginTop': -32, 'display': 'flex', 'flexDirection': 'column',
|
||||
'gap': 0}};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.avatarBackground = {'width': 86, 'height': 86, 'borderRadius': 28.666666666666668, 'backgroundColor': null,
|
||||
'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'overflow': 'hidden',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.members = {'display': 'flex', 'flexDirection': 'row', 'gap': 8};
|
||||
object2.memberCount = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 4};
|
||||
const TEXT_STATUS_OFFLINE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_OFFLINE;
|
||||
object2.dot = {'width': 8, 'height': 8, 'borderRadius': 4, backgroundColor: TEXT_STATUS_OFFLINE};
|
||||
const TEXT_STATUS_ONLINE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_STATUS_ONLINE;
|
||||
object2.dotOnline = {'width': 8, 'height': 8, 'borderRadius': 4, backgroundColor: TEXT_STATUS_ONLINE};
|
||||
object2.established = {display: 'flex'};
|
||||
object2.nameRow = {'marginTop': 4, 'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
object2.guildName = {flexShrink: 1};
|
||||
object2.guildIcon = {'marginLeft': 8, 'height': 24, 'width': 24};
|
||||
value = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileHeader.tsx');
|
||||
exports.default = GuildProfileHeader;
|
||||
exports.useStyles = value;
|
||||
}
|
||||
|
||||
function GuildProfileHeader({profile, guildIconSource}) { // fn#72732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9492:1107, offset: 0x01d50c39, size: 1083 bytes, params: 2, frame: 35
|
||||
const styles = useStyles();
|
||||
const locale = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const guildProfileUtilsModule = require(4119) /* metro dependency 4119: GuildProfileUtils */;
|
||||
const getEstablishedDate = guildProfileUtilsModule.getEstablishedDate;
|
||||
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
const extractTimestamp = defaultImport.extractTimestamp;
|
||||
let id = profile.id;
|
||||
const value3 = Reflect.apply(getEstablishedDate, guildProfileUtilsModule, [Reflect.apply(extractTimestamp,
|
||||
defaultImport, [id]), locale]);
|
||||
const value4 = (require(1418) /* metro dependency 1418: GuildRecordUtils */).fromGuildProfile(profile);
|
||||
const binding = env0_3;
|
||||
const value5 = binding.useCallback(_fun72734, [profile]);
|
||||
id = profile.id;
|
||||
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore,
|
||||
AuthenticationStore], _fun72735, [id]);
|
||||
const value7 = binding.useCallback(_fun72736, [id, value6]);
|
||||
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XXLARGE = GuildIconSizes.XXLARGE;
|
||||
const items2 = [<View style={styles.avatarBackground}><GuildIcon icon={guildIconSource} size={XXLARGE} animate value={profile.name} selected={false} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const text = <Text onPress={value6 ? value7 : undefined} style={styles.guildName} accessibilityRole="header" variant="heading-xl/semibold" color="mobile-text-heading-primary" lineClamp={1}>{profile.name}</Text>;
|
||||
const PressableHighlight = (require(5278) /* metro dependency 5278: Pressables */).PressableHighlight;
|
||||
items2[1] = <View style={styles.nameRow}>{text}<PressableHighlight onPress={value5}>{((Component) => <Component guild={value4} style={styles.guildIcon} />)(importDefault(6915) /* metro dependency 6915: GuildBadgeV2 */)}</PressableHighlight></View>;
|
||||
let view = <View style={styles.dotOnline} />;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
view = <View style={styles.memberCount}>{view}<Text variant="text-md/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
|
||||
{membersOnline: profile.onlineCount})}</Text></View>;
|
||||
const items5 = [view];
|
||||
items5[1] = <View style={styles.memberCount}><View style={styles.dot} /><Text variant="text-md/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
|
||||
{count: profile.memberCount})}</Text></View>;
|
||||
items2[2] = <View style={styles.members}>{items5}</View>;
|
||||
items2[3] = <View style={styles.established}><Text variant="text-md/medium" color="text-muted">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zb2Q56,
|
||||
{createdAtDate: value3})}</Text></View>;
|
||||
return (
|
||||
<View style={styles.header}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72734() { // fn#72734, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9492:1338, offset: 0x01d51074, size: 189 bytes, params: 1, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const guildRecordUtilsModule = require(1418) /* metro dependency 1418: GuildRecordUtils */;
|
||||
const guildTraits = (require(6918) /* metro dependency 6918: GuildTraits */).getGuildTraits(guildRecordUtilsModule.fromGuildProfile(profile));
|
||||
const {tooltipTitle,
|
||||
tooltipSubtitle} = getBadgeTooltip((require(6917) /* metro dependency 6917: BadgeCategory */).getBadgeCategory(guildTraits),
|
||||
guildTraits.visibility);
|
||||
if (!(tooltipTitle == null && tooltipSubtitle == null)) {
|
||||
(importDefault(3857) /* metro dependency 3857: ToastActionCreators */).open({key: 'guild-badge-tooltip',
|
||||
content: tooltipSubtitle ?? tooltipTitle});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun72735() { // fn#72735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9492:1626, offset: 0x01d51131, size: 63 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const getMember = GuildMemberStore.getMember;
|
||||
const idBinding = id;
|
||||
const getId = AuthenticationStore.getId;
|
||||
return Reflect.apply(getMember, GuildMemberStore, [idBinding, Reflect.apply(getId, AuthenticationStore,
|
||||
[])])?.joinedAt != null;
|
||||
}
|
||||
|
||||
function _fun72736() { // fn#72736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9492:1729, offset: 0x01d51170, size: 105 bytes, params: 1, frame: 16
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var hideActionSheet;
|
||||
var idBinding;
|
||||
if (env0_2) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
hideActionSheet = defaultImport.hideActionSheet;
|
||||
idBinding = id;
|
||||
Reflect.apply(hideActionSheet, defaultImport, ['GuildProfileActionSheet:' + idBinding]);
|
||||
(require(6947) /* metro dependency 6947: transitionToGuildNative */).transitionToGuild(idBinding);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/* Metro module 9316; source: modules/guild_profile/native/components/GuildProfileLoadingError.tsx; dependencies: [31, 27, 33, 9302, 4048, 3860, 697, 4589, 8129, 4573, 1244, 5278, 2] */
|
||||
function _fun72783(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9502:6, offset: 0x01d53024, size: 168 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileLoadingError.tsx');
|
||||
exports.default = GuildProfileLoadingError;
|
||||
}
|
||||
|
||||
function GuildProfileLoadingError({onRetry}) { // fn#72784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9502:152, offset: 0x01d530cc, size: 764 bytes, params: 2, frame: 30
|
||||
const styles = (require(9302) /* metro dependency 9302: GuildProfileView */).useStyles();
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOWEST]);
|
||||
let value = importDefault(4589) /* metro dependency 4589 */;
|
||||
const {START, END} = (require(9302) /* metro dependency 9302: GuildProfileView */).DiagonalGradient;
|
||||
value = ((Component) => <Component style={styles.colorBanner} start={START} end={END} colors={(require(9302) /* metro dependency 9302: GuildProfileView */).getBackgroundForProfile(value2,
|
||||
value3)} />)(value);
|
||||
const items3 = [value];
|
||||
const object = {};
|
||||
let avatarBackground = styles.avatarBackground;
|
||||
object.style = avatarBackground;
|
||||
avatarBackground = styles.avatarBackground;
|
||||
const WarningIcon = (require(8129) /* metro dependency 8129: WarningIcon */).WarningIcon;
|
||||
let TEXT_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING;
|
||||
items3[1] = <View style={styles.header}><View {...object}><View style={avatarBackground}><WarningIcon size="lg" color={TEXT_FEEDBACK_WARNING} /></View></View></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const DmIUGK = (require(1244) /* metro dependency 1244: indexNative */).t.DmIUGK;
|
||||
const items2 = [<Text variant="heading-lg/semibold" color="mobile-text-heading-primary">{Reflect.apply(string, intl,
|
||||
[DmIUGK])}</Text>];
|
||||
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
|
||||
const pressableOpacityProps2 = {style: styles.error, onPress: onRetry, accessibilityRole: 'button',
|
||||
accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.s1fAEw)};
|
||||
TEXT_FEEDBACK_WARNING = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_FEEDBACK_WARNING;
|
||||
items2[1] = <PressableOpacity {...pressableOpacityProps2}><WarningIcon size="sm" color={TEXT_FEEDBACK_WARNING} /><Text variant="text-sm/normal" color="text-feedback-warning">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.tmGHjc)}</Text></PressableOpacity>;
|
||||
items3[2] = <View style={styles.body}>{items2}</View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items3}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,73 @@
|
||||
/* Metro module 9315; source: modules/guild_profile/native/components/GuildProfileTraits.tsx; dependencies: [31, 27, 33, 4501, 697, 1423, 3801, 6739, 4573, 2] */
|
||||
function _fun72775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:6, offset: 0x01d52c6e, size: 332 bytes, params: 8, frame: 22
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'display': 'flex', 'flexDirection': 'row', 'gap': 4, 'alignItems': 'center', 'paddingHorizontal': 8,
|
||||
'paddingVertical': 4, 'borderRadius': null, 'borderWidth': 1, 'borderStyle': 'solid'};
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object.borderColor = BORDER_SUBTLE;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{container: {'display': 'flex', 'flexDirection': 'row',
|
||||
'flexWrap': 'wrap', 'gap': 8}, trait: object, emojiImage: {'width': 16, 'height': 16}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileTraits.tsx');
|
||||
exports.default = GuildProfileTraits;
|
||||
}
|
||||
|
||||
function TraitEmoji({emoji}) { // fn#72776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:487, offset: 0x01d52dba, size: 207 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
if (emoji == null) {
|
||||
return null;
|
||||
}
|
||||
const r7 = emoji.id != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getEmojiURL({id: emoji.id,
|
||||
animated: emoji.animated, size: 16}) : undefined;
|
||||
const defaultImport2 = importDefault(3801) /* metro dependency 3801: EmojiUtils */;
|
||||
return ((Component) => <Component src={r7} name={defaultImport2.isCustomEmoji(emoji) ? emoji.name : emoji.surrogates} fastImageStyle={styles.emojiImage} />)(importDefault(6739) /* metro dependency 6739: Emoji */);
|
||||
}
|
||||
|
||||
function GuildProfileTraitView({trait}) { // fn#72777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:742, offset: 0x01d52e89, size: 151 bytes, params: 2, frame: 19
|
||||
const styles = useStyles();
|
||||
const traitEmoji = <TraitEmoji emoji={trait.emoji} />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.trait}>
|
||||
{traitEmoji}
|
||||
<Text variant="text-sm/medium" color="text-default">
|
||||
{trait.label}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildProfileTraits({profile}) { // fn#72778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:1050, offset: 0x01d52f20, size: 106 bytes, params: 2, frame: 17
|
||||
const styles = useStyles();
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{env0_3.useMemo(_fun72779, [profile]).map(_fun72782)}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72779() { // fn#72779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:1114, offset: 0x01d52f8a, size: 51 bytes, params: 1, frame: 12
|
||||
return profile.traits.map(function(a0, a1) {
|
||||
var object = {};
|
||||
var concat = global.HermesInternal.concat;
|
||||
object.key = 'trait-' + a1;
|
||||
copyDataProperties(object, a0, concat);
|
||||
return object;
|
||||
}).filter(function(a0) {
|
||||
return a0.label.length > 0;
|
||||
});
|
||||
}
|
||||
|
||||
function _fun72782(a0) { // fn#72782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9501:1249, offset: 0x01d52fff, size: 37 bytes, params: 2, frame: 15
|
||||
return <GuildProfileTraitView trait={a0} key={a0.key} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
/* Metro module 9302; source: modules/guild_profile/native/components/GuildProfileView.tsx; dependencies: [31, 27, 1867, 661, 33, 3866, 3868, 4501, 697, 566, 1418, 1478, 1423, 9303, 4048, 3860, 9304, 4589, 6239, 4573, 1244, 9305, 9306, 9308, 9315, 2] */
|
||||
function _fun72716(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:6, offset: 0x01d4fd11, size: 587 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = getBackgroundForProfile;
|
||||
let Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = value.Fragment;
|
||||
const createStyles = (require(4501) /* metro dependency 4501: createStyles */).createStyles;
|
||||
object2 = {};
|
||||
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.colorBanner = {'height': 140, 'width': '100%'};
|
||||
object2.imageBanner = {'height': 140, 'width': '100%', 'objectFit': 'cover'};
|
||||
object2.body = {'marginTop': 12, 'paddingHorizontal': 16, 'gap': 16};
|
||||
object2.error = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'gap': 8};
|
||||
object2.buttonContainer = {marginTop: 160};
|
||||
object2.header = {'paddingHorizontal': 16, 'marginTop': -32, 'display': 'flex', 'flexDirection': 'column', 'gap': 0};
|
||||
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.avatarBackground = {'width': 86, 'height': 86, 'borderRadius': 28.666666666666668, 'backgroundColor': null,
|
||||
'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'overflow': 'hidden',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.restrictedAcronym = {fontSize: 24};
|
||||
object2.joinForFullAccessCard = {gap: 4};
|
||||
value = Reflect.apply(createStyles, value, [object2]);
|
||||
Object = global.Object;
|
||||
const value2 = Object.freeze({START: {'x': 0, 'y': 1}, END: {'x': 1.5, 'y': 0}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/GuildProfileView.tsx');
|
||||
exports.default = GuildProfileView;
|
||||
exports.getBackgroundForProfile = closure;
|
||||
exports.useStyles = value;
|
||||
exports.DiagonalGradient = value2;
|
||||
}
|
||||
|
||||
function getBackgroundForProfile(a0, a1) { // fn#72717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:209, offset: 0x01d4ff5c, size: 125 bytes, params: 3, frame: 16
|
||||
var r1;
|
||||
const isThemeDark2 = (require(3866) /* metro dependency 3866: themes */).isThemeDark(a0);
|
||||
let value = require(3868) /* metro dependency 3868: native */;
|
||||
if (isThemeDark2) {
|
||||
value = value.brightenColor(a1, 0.8);
|
||||
r1 = value;
|
||||
} else {
|
||||
value = value.darkenColor(a1, 0.8);
|
||||
r1 = value;
|
||||
}
|
||||
return [a1, r1];
|
||||
}
|
||||
|
||||
function GuildProfileBackground({guildProfile}) { // fn#72718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:1069, offset: 0x01d4ffd9, size: 250 bytes, params: 2, frame: 20
|
||||
var defaultImport;
|
||||
var getGuildDiscoverySplashSource;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
let object = [GuildStore];
|
||||
const value2 = Reflect.apply(useStateFromStores, fluxModule, [object, function() {
|
||||
return (GuildStore.getGuild(guildProfile.id) ?? require(dependencyMap[10]).fromGuildProfile(guildProfile)).features.has(GuildFeatures.DISCOVERABLE);
|
||||
}]);
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const styles = useStyles();
|
||||
if (value2) {
|
||||
if (guildProfile.customBanner != null) {
|
||||
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getGuildDiscoverySplashSource = defaultImport.getGuildDiscoverySplashSource;
|
||||
object = {};
|
||||
object.id = guildProfile.id;
|
||||
object.splash = guildProfile.customBanner;
|
||||
object.size = (importDefault(9303) /* metro dependency 9303: getDevicePixelRatioWeb */)() * width;
|
||||
return (
|
||||
<Image style={styles.imageBanner} source={Reflect.apply(getGuildDiscoverySplashSource, defaultImport,
|
||||
[object])} />
|
||||
);
|
||||
}
|
||||
}
|
||||
return <GuildProfileGradient guildProfile={guildProfile} />;
|
||||
}
|
||||
|
||||
function GuildProfileGradient({guildProfile}) { // fn#72720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:1506, offset: 0x01d50138, size: 198 bytes, params: 2, frame: 20
|
||||
const styles = useStyles();
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
const value4 = (require(9304) /* metro dependency 9304: GuildProfileUtils */).useProfilePrimaryColor(guildProfile,
|
||||
Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOWEST]));
|
||||
const defaultImport = importDefault(4589) /* metro dependency 4589 */;
|
||||
const START = env0_12.START;
|
||||
const END = env0_12.END;
|
||||
return ((Component) => <Component style={styles.colorBanner} start={START} end={END} colors={getBackgroundForProfile(value2,
|
||||
value4)} />)(defaultImport);
|
||||
}
|
||||
|
||||
function JoinForFullAccessCard() { // fn#72721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:1776, offset: 0x01d501fe, size: 273 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<Card
|
||||
variant="secondary"
|
||||
border="none"
|
||||
style={styles.joinForFullAccessCard}
|
||||
>
|
||||
<Text variant="text-md/semibold" color="text-default">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.us0bE8)}
|
||||
</Text>
|
||||
<Text variant="text-sm/normal" color="text-muted">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.fTtTTp)}
|
||||
</Text>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildProfileView({guildProfile, isLurkerServerPreview}) { // fn#72722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:2154, offset: 0x01d5030f, size: 473 bytes, params: 2, frame: 29
|
||||
var r9;
|
||||
var jsxRuntimeEnv0_10Binding;
|
||||
var items3;
|
||||
isLurkerServerPreview = !(isLurkerServerPreview === undefined) && isLurkerServerPreview;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = env0_3.useMemo(_fun72723, [guildProfile]);
|
||||
const items2 = [<GuildProfileBackground guildProfile={guildProfile} />];
|
||||
items2[1] = isLurkerServerPreview && ((Component) => <Component />)(importDefault(9305) /* metro dependency 9305: ServerPreviewPill */);
|
||||
items2[2] = ((Component) => <Component profile={guildProfile} guildIconSource={value2} />)(importDefault(9306) /* metro dependency 9306: GuildProfileHeader */);
|
||||
const r11 = guildProfile.description != null && guildProfile.description.length > 0 && ((Text) => <Text variant="text-md/medium" color="text-subtle">{guildProfile.description}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
if (isLurkerServerPreview) {
|
||||
r9 = <JoinForFullAccessCard />;
|
||||
} else {
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
items3 = [((Component) => <Component profile={guildProfile} />)(importDefault(9308) /* metro dependency 9308: GuildProfileGames */)];
|
||||
value = importDefault(9315) /* metro dependency 9315: GuildProfileTraits */;
|
||||
items3[1] = ((Component) => <Component profile={guildProfile} />)(value);
|
||||
value = <>{items3}</>;
|
||||
r9 = value;
|
||||
}
|
||||
items2[3] = <View style={styles.body}>{r11}{r9}</View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun72723() { // fn#72723, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9488:2248, offset: 0x01d504e8, size: 109 bytes, params: 1, frame: 14
|
||||
let guildProfileBinding = guildProfile;
|
||||
const value2 = null;
|
||||
if (value2 == guildProfileBinding) {
|
||||
return value2;
|
||||
}
|
||||
const defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
const getGuildIconSource = defaultImport.getGuildIconSource;
|
||||
guildProfileBinding = guildProfile;
|
||||
const value = Reflect.apply(getGuildIconSource, defaultImport, [{id: guildProfileBinding.id,
|
||||
icon: guildProfileBinding.icon, size: 96, canAnimate: true}]);
|
||||
return typeof value === 'number' ? value2 : value.uri;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 9301; source: modules/guild_profile/native/components/RestrictedGuildProfileView.tsx; dependencies: [31, 27, 33, 9302, 4048, 3860, 697, 4589, 6819, 4573, 1244, 2] */
|
||||
function _fun72714(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9487:6, offset: 0x01d4fa28, size: 168 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_profile/native/components/RestrictedGuildProfileView.tsx');
|
||||
exports.default = RestrictedGuildProfileView;
|
||||
}
|
||||
|
||||
function RestrictedGuildProfileView() { // fn#72715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9487:152, offset: 0x01d4fad0, size: 577 bytes, params: 1, frame: 25
|
||||
const styles = (require(9302) /* metro dependency 9302: GuildProfileView */).useStyles();
|
||||
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOWEST]);
|
||||
let value = importDefault(4589) /* metro dependency 4589 */;
|
||||
const {START, END} = (require(9302) /* metro dependency 9302: GuildProfileView */).DiagonalGradient;
|
||||
value = ((Component) => <Component style={styles.colorBanner} start={START} end={END} colors={(require(9302) /* metro dependency 9302: GuildProfileView */).getBackgroundForProfile(value2,
|
||||
value3)} />)(value);
|
||||
const items2 = [value];
|
||||
value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XXLARGE = GuildIconSizes.XXLARGE;
|
||||
items2[1] = <View style={styles.header}><View style={styles.avatarBackground}>{((Component) => <Component size={XXLARGE} value="?" selected={false} textStyle={styles.restrictedAcronym} />)(value)}</View></View>;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[2] = <View style={styles.body}><Text variant="heading-lg/semibold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.wZmueu)}</Text><Text variant="text-md/medium" color="text-subtle">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8mfCqY'])}</Text></View>;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user