Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,495 @@
|
||||
/* Metro module 11973; source: modules/welcome_screen/WelcomeScreenActionCreators.tsx; dependencies: [5, 661, 694, 507, 2] */
|
||||
function _fun91902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:6, offset: 0x020760e7, size: 219 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;
|
||||
const value = _fun91903();
|
||||
const value2 = _fun91907();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_screen/WelcomeScreenActionCreators.tsx');
|
||||
exports.welcomeScreenViewed = welcomeScreenViewed;
|
||||
exports.fetchWelcomeScreen = value;
|
||||
exports.resetWelcomeScreen = resetWelcomeScreen;
|
||||
exports.clearWelcomeScreenSettings = clearWelcomeScreenSettings;
|
||||
exports.updateSettings = updateSettings_91914;
|
||||
exports.saveWelcomeScreen = value2;
|
||||
}
|
||||
|
||||
function _fun91903() { // fn#91903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:130, offset: 0x020761c2, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_3(_fun91905);
|
||||
return _fun91906;
|
||||
}
|
||||
|
||||
function _fun91907() { // fn#91907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:541, offset: 0x020762eb, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env0_3(_fun91909);
|
||||
return _fun91910;
|
||||
}
|
||||
|
||||
function welcomeScreenViewed(a0) { // fn#91911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:1130, offset: 0x02076436, size: 70 bytes, params: 2, frame: 14
|
||||
let value = a1;
|
||||
const r4 = value !== undefined ? value : false;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'WELCOME_SCREEN_VIEW', guildId: a0, isLurking: r4});
|
||||
}
|
||||
|
||||
function resetWelcomeScreen() { // fn#91912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:1257, offset: 0x0207647c, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WELCOME_SCREEN_SETTINGS_RESET'});
|
||||
}
|
||||
|
||||
function clearWelcomeScreenSettings() { // fn#91913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:1350, offset: 0x020764ad, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WELCOME_SCREEN_SETTINGS_CLEAR'});
|
||||
}
|
||||
|
||||
function updateSettings_91914(a0) { // fn#91914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:1431, offset: 0x020764de, size: 57 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WELCOME_SCREEN_SETTINGS_UPDATE',
|
||||
settings: a0});
|
||||
}
|
||||
|
||||
function* _fun91905(a0) { // fn#91905, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:150, offset: 0x020761f1, size: 250 bytes, params: 2, frame: 19
|
||||
var object2;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var HTTP;
|
||||
var get;
|
||||
var GUILD_WELCOME_SCREEN;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var value9;
|
||||
var body;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_1;
|
||||
binding(env2_2[2]).dispatch({type: 'WELCOME_SCREEN_FETCH_START'});
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
HTTP = value4.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
GUILD_WELCOME_SCREEN = binding.GUILD_WELCOME_SCREEN;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(GUILD_WELCOME_SCREEN, binding, [a0]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.url = value5;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding3[2];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
dispatch = value9.dispatch;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.type = 'WELCOME_SCREEN_FETCH_SUCCESS';
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.guildId = a0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.welcomeScreen = body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value9, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
value.dispatch({type: 'WELCOME_SCREEN_FETCH_FAIL'});
|
||||
return undefined;
|
||||
}
|
||||
return body;
|
||||
}
|
||||
|
||||
function* _fun91909(a0, a1) { // fn#91909, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12159:561, offset: 0x0207631a, size: 284 bytes, params: 3, frame: 20
|
||||
var object4;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var HTTP;
|
||||
var patch;
|
||||
var GUILD_WELCOME_SCREEN;
|
||||
var value5;
|
||||
var object3;
|
||||
var description;
|
||||
var channels;
|
||||
var enabled;
|
||||
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: 'WELCOME_SCREEN_SUBMIT'}]);
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort44: while (true) {
|
||||
exceptionLanding43: while (true) {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[2]);
|
||||
dispatch = value.dispatch;
|
||||
Reflect.apply(dispatch, value, [{type: 'WELCOME_SCREEN_SUBMIT_FAILURE'}]);
|
||||
break reduciblePort44;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
property = binding2[3];
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
HTTP = value4.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
patch = HTTP.patch;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
GUILD_WELCOME_SCREEN = binding.GUILD_WELCOME_SCREEN;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(GUILD_WELCOME_SCREEN, binding, [a0]);
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.url = value5;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
description = a1.description;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object3.description = description;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
channels = a1.channels;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object3.welcome_channels = channels;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
enabled = a1.enabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object3.enabled = enabled;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.body = object3;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.oldFormErrors = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.rejectWithError = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(patch, HTTP, [object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
property = binding3[2];
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
dispatch = value9.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.type = 'WELCOME_SCREEN_SUBMIT_SUCCESS';
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.guildId = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
object4.welcomeScreen = body;
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value9, [object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding43;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/* Metro module 11975; source: modules/welcome_screen/WelcomeScreenConstants.tsx; dependencies: [2] */
|
||||
function _fun91938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12161:6, offset: 0x02077375, size: 98 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_screen/WelcomeScreenConstants.tsx');
|
||||
exports.WELCOME_SCREEN_TYPE = 'Guild Welcome Screen';
|
||||
exports.WELCOME_EMOJI_TOOLTIP_STORAGE_KEY = 'hasClickedWelcomeEmojiPicker';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
/* Metro module 11971; source: modules/welcome_screen/WelcomeScreenStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
||||
function _fun91880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:6, offset: 0x02075adf, size: 409 bytes, params: 8, frame: 21
|
||||
const closure = INVITE_RESOLVE_SUCCESS_91884;
|
||||
const closure2 = WELCOME_SCREEN_SUBMIT_SUCCESS;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_6 = {};
|
||||
const env0_7 = {};
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
let value = _fun91886(Store);
|
||||
value.displayName = 'WelcomeScreenStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {INVITE_RESOLVE_SUCCESS: closure,
|
||||
INVITE_ACCEPT_SUCCESS: closure, WELCOME_SCREEN_SUBMIT_SUCCESS: closure2, WELCOME_SCREEN_UPDATE: closure2,
|
||||
WELCOME_SCREEN_VIEW: WELCOME_SCREEN_VIEW, GUILD_STOP_LURKING: function() {
|
||||
env0_8 = false;
|
||||
}, GUILD_DELETE: GUILD_DELETE_91895, WELCOME_SCREEN_FETCH_START: function() {
|
||||
env0_9 = true;
|
||||
env0_10 = false;
|
||||
}, WELCOME_SCREEN_FETCH_SUCCESS: WELCOME_SCREEN_FETCH_SUCCESS, WELCOME_SCREEN_FETCH_FAIL: function() {
|
||||
env0_9 = false;
|
||||
env0_10 = true;
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_screen/WelcomeScreenStore.tsx');
|
||||
exports.default = value;
|
||||
exports.NO_WELCOME_SCREEN = {};
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_91881() { // fn#91881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:148, offset: 0x02075c78, 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_91881_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function INVITE_ACCEPT_SUCCESS_91884({invite}) { // fn#91884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:375, offset: 0x02075cda, size: 64 bytes, params: 2, frame: 4
|
||||
var r0;
|
||||
const guild = invite.guild;
|
||||
value = guild?.welcome_screen != null;
|
||||
if (value) {
|
||||
env0_6[guild.id] = guild.welcome_screen;
|
||||
r0 = true;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function WELCOME_SCREEN_SUBMIT_SUCCESS({welcomeScreen, guildId}) { // fn#91885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:503, offset: 0x02075d1a, size: 39 bytes, params: 2, frame: 5
|
||||
env0_6[guildId] = welcomeScreen ?? env0_5;
|
||||
}
|
||||
|
||||
function _fun91886(a0) { // fn#91886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:598, offset: 0x02075d41, size: 172 bytes, params: 2, frame: 16
|
||||
const closure = WelcomeScreenStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'get', value: value_91888}, {key: 'isFetching', value: value_91889}, {key: 'hasError',
|
||||
value: value_91890}, {key: 'hasSeen', value: value_91891}, {key: 'isEmpty', value: value_91892}]);
|
||||
}
|
||||
|
||||
function WELCOME_SCREEN_VIEW({guildId, isLurking}) { // fn#91893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1498, offset: 0x02075e54, size: 38 bytes, params: 2, frame: 5
|
||||
env0_7[guildId] = true;
|
||||
if (isLurking) {
|
||||
}
|
||||
}
|
||||
|
||||
function GUILD_DELETE_91895({guild}) { // fn#91895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1655, offset: 0x02075e7a, size: 30 bytes, params: 2, frame: 3
|
||||
env0_7[guild.id] = false;
|
||||
}
|
||||
|
||||
function WELCOME_SCREEN_FETCH_SUCCESS({welcomeScreen, guildId}) { // fn#91897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1814, offset: 0x02075eab, size: 49 bytes, params: 2, frame: 5
|
||||
env0_6[guildId] = welcomeScreen ?? env0_5;
|
||||
}
|
||||
|
||||
function value_91891(a0) { // fn#91891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1059, offset: 0x02075ded, size: 53 bytes, params: 2, frame: 4
|
||||
const value = a1;
|
||||
return a0 != null && ((value !== undefined ? value : false) ? env1_8 : env1_7[a0] || false);
|
||||
}
|
||||
|
||||
function value_91892(a0) { // fn#91892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12157:1130, offset: 0x02075e22, size: 50 bytes, params: 2, frame: 3
|
||||
if (a0 == null) {
|
||||
return true;
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
const property = env1_6[a0];
|
||||
return property == null || property.welcome_channels.length === 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,325 @@
|
||||
/* Metro module 11974; source: modules/welcome_screen/native/GuildWelcomeActionSheet.tsx; dependencies: [31, 27, 6540, 1379, 1867, 3784, 11971, 11975, 661, 1881, 482, 33, 4501, 697, 6597, 566, 4805, 1230, 4080, 5475, 1423, 3797, 4573, 1305, 11427, 7972, 694, 11973, 683, 6805, 11976, 1244, 2] */
|
||||
function _fun91915(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:6, offset: 0x02076517, size: 835 bytes, params: 8, frame: 31
|
||||
var object2;
|
||||
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.ScrollView;
|
||||
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const welcomeScreenStore = importDefault(11971) /* metro dependency 11971: WelcomeScreenStore */;
|
||||
const env0_11 = (require(11971) /* metro dependency 11971: WelcomeScreenStore */).NO_WELCOME_SCREEN;
|
||||
const env0_12 = (require(11975) /* metro dependency 11975: WelcomeScreenConstants */).WELCOME_SCREEN_TYPE;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_13 = value.AnalyticEvents;
|
||||
const Fonts = value.Fonts;
|
||||
const env0_14 = value.Routes;
|
||||
const env0_15 = (require(1881) /* metro dependency 1881: EmojiConstants */).EMOJI_URL_BASE_SIZE;
|
||||
const env0_16 = (require(482) /* metro dependency 482: Constants */).Permissions;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_17 = value.jsx;
|
||||
const env0_18 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {'alignItems': 'center', 'justifyContent': 'center', 'paddingHorizontal': 16, 'width': '100%',
|
||||
'paddingVertical': 32, backgroundColor: BACKGROUND_BASE_LOW};
|
||||
const object7 = {'borderRadius': null, 'width': 64, 'height': 64, 'marginBottom': 16};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.guildIcon = object7;
|
||||
const object9 = {};
|
||||
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
|
||||
let DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
|
||||
copyDataProperties(object9, textStyles(DISPLAY_EXTRABOLD, TEXT_SUBTLE, 24), undefined);
|
||||
object9['marginBottom'] = 8;
|
||||
object9['textAlign'] = 'center';
|
||||
object2.header = object9;
|
||||
const object10 = {};
|
||||
const value3 = textStyles;
|
||||
DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD;
|
||||
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
|
||||
copyDataProperties(object10, value3(DISPLAY_EXTRABOLD, MOBILE_TEXT_HEADING_PRIMARY, 24), undefined);
|
||||
object2.headerGuildName = object10;
|
||||
object2.guildDescription = {'textAlign': 'center', 'marginBottom': 30};
|
||||
const object11 = {};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object11.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object11.marginTop = 8;
|
||||
object11.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object2.welcomeChannel = object11;
|
||||
object2.channelsTitle = {alignSelf: 'flex-start'};
|
||||
object2.emoji = {'width': 24, 'height': 24};
|
||||
const object12 = {padding: 4};
|
||||
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
|
||||
object12.backgroundColor = BACKGROUND_BASE_LOWEST;
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
object2.placeholderEmojiWrapper = object12;
|
||||
const env0_19 = Reflect.apply(createStyles, value, [object2]);
|
||||
const closure = WelcomeChannelRow;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_screen/native/GuildWelcomeActionSheet.tsx');
|
||||
exports.default = GuildWelcomeActionSheet;
|
||||
exports.WelcomeChannelRow = closure;
|
||||
}
|
||||
|
||||
function WelcomeChannelRow({welcomeChannel, trackOptionSelect}) { // fn#91916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:1226, offset: 0x0207685a, size: 863 bytes, params: 2, frame: 29
|
||||
var r13;
|
||||
var r0;
|
||||
var defaultImport2;
|
||||
var getByName;
|
||||
var defaultImport3;
|
||||
var FastImage;
|
||||
var defaultImport5;
|
||||
const styles = useStyles();
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(welcomeChannel.channel_id);
|
||||
});
|
||||
const value2 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true);
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun91918);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmojiStore], _fun91919,
|
||||
[welcomeChannel.emoji_id]);
|
||||
if (channel != null) {
|
||||
if (value3) {
|
||||
if (value4 != null) {
|
||||
FastImage = importDefault(5475) /* metro dependency 5475: FastImage */;
|
||||
var defaultImport4Props = {style: styles.emoji};
|
||||
defaultImport5 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
defaultImport4Props.source = {uri: defaultImport5.getEmojiURL({id: value4.id, animated: value4.animated,
|
||||
size: EMOJI_URL_BASE_SIZE})};
|
||||
defaultImport4Props.resizeMode = 'contain';
|
||||
r13 = <FastImage {...defaultImport4Props} />;
|
||||
} else if (welcomeChannel.emoji_name == null) {
|
||||
r13 = <View style={styles.placeholderEmojiWrapper}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16} source={importDefault(11427) /* metro dependency 11427 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</View>;
|
||||
} else {
|
||||
defaultImport2 = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
||||
getByName = defaultImport2.getByName;
|
||||
defaultImport3 = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
|
||||
if (Reflect.apply(getByName, defaultImport2,
|
||||
[defaultImport3.convertSurrogateToName(welcomeChannel.emoji_name,
|
||||
false)]) != null) {
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
r13 = <Text style={styles.emoji} variant="text-sm/medium">{welcomeChannel.emoji_name}</Text>;
|
||||
} else {
|
||||
r13 = <View style={styles.placeholderEmojiWrapper}>{((Icon) => <Icon size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16} source={importDefault(11427) /* metro dependency 11427 */} />)((require(1305) /* metro dependency 1305: native */).Icon)}</View>;
|
||||
}
|
||||
}
|
||||
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
|
||||
r0 = <FormRow DEPRECATED_style={styles.welcomeChannel} leading={r13} label={((Text) => <Text variant="text-sm/semibold" color="interactive-text-active">{welcomeChannel.description}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)} subLabel={channel != null ? ((Text) => <Text variant="text-sm/medium" color="text-default">{value2}</Text>)((require(4573) /* metro dependency 4573: Text */).Text) : null} onPress={env0_3.useCallback(_fun91920,
|
||||
|
||||
|
||||
[channel,
|
||||
trackOptionSelect])} trailing={((Arrow) => <Arrow />)((require(7972) /* metro dependency 7972: native */).FormRow.Arrow)} />;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function GuildWelcomeActionSheet({guildId, onHide}) { // fn#91921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:2550, offset: 0x02076c95, size: 881 bytes, params: 2, frame: 32
|
||||
var r0;
|
||||
var ActionSheet;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var welcome_channels;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
return GuildStore.getGuild(guildId);
|
||||
});
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([WelcomeScreenStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.welcomeScreen = WelcomeScreenStore.get(guildId);
|
||||
object.fetching = WelcomeScreenStore.isFetching();
|
||||
object.hasError = WelcomeScreenStore.hasError();
|
||||
return object;
|
||||
});
|
||||
const welcomeScreen = value2.welcomeScreen;
|
||||
const env0_3 = welcomeScreen;
|
||||
const fetching = value2.fetching;
|
||||
const hasError = value2.hasError;
|
||||
const binding = env0_3;
|
||||
binding.useEffect(_fun91924, [guildId, welcomeScreen]);
|
||||
binding.useEffect(_fun91926, [fetching, hasError]);
|
||||
binding.useEffect(_fun91927, [guildId, welcomeScreen]);
|
||||
binding.useEffect(_fun91929, [welcomeScreen]);
|
||||
binding.useEffect(function() {
|
||||
var defaultImport = importDefault(dependencyMap[28]);
|
||||
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
defaultImport.track(OPEN_MODAL, {type: WELCOME_SCREEN_TYPE, guild_id: guildId});
|
||||
}, [guildId]);
|
||||
binding.useEffect(function() {
|
||||
return _fun91932;
|
||||
}, [onHide]);
|
||||
const env0_6 = binding.useCallback(_fun91933, [guildId, welcomeScreen]);
|
||||
if (guild == null) {
|
||||
r0 = null;
|
||||
} else if (welcomeScreen == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
var scrollViewBindingProps = {contentContainerStyle: styles.container};
|
||||
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
|
||||
value = ((Component) => <Component style={styles.guildIcon} guild={guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.MEDIUM} textScale={2} />)(value);
|
||||
items2 = [value];
|
||||
items2[1] = <Text style={styles.header} variant="heading-xl/extrabold" color="text-default">{intl.format(t['0aydCN'],
|
||||
|
||||
{guildName: guild.name, guildNameHook: guildNameHook})}</Text>;
|
||||
items2[2] = <Text style={styles.guildDescription} variant="text-sm/medium" color="text-default">{welcomeScreen.description}</Text>;
|
||||
var textProps2 = {'style': null, 'variant': 'eyebrow', 'color': 'text-default', style: styles.channelsTitle};
|
||||
value = intl.string(t['haj5+i']);
|
||||
items2[3] = <Text {...textProps2}>{value.toUpperCase()}</Text>;
|
||||
welcome_channels = welcomeScreen.welcome_channels;
|
||||
items2[4] = welcome_channels.map(_fun91936);
|
||||
value = <ActionSheet startExpanded><ScrollView {...scrollViewBindingProps}>{items2}</ScrollView></ActionSheet>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun91918() { // fn#91918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:1401, offset: 0x02076bb9, size: 51 bytes, params: 1, frame: 14
|
||||
return channel != null && PermissionStore.can(Permissions.VIEW_CHANNEL, channel);
|
||||
}
|
||||
|
||||
function _fun91919() { // fn#91919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:1475, offset: 0x02076bec, size: 52 bytes, params: 1, frame: 12
|
||||
const emoji_id = welcomeChannel.emoji_id;
|
||||
const value2 = null;
|
||||
return value2 != emoji_id ? EmojiStore.getCustomEmojiById(welcomeChannel.emoji_id) : value2;
|
||||
}
|
||||
|
||||
function _fun91920() { // fn#91920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:1566, offset: 0x02076c20, size: 117 bytes, params: 1, frame: 18
|
||||
var value2;
|
||||
var moduleValue;
|
||||
var transitionTo;
|
||||
var CHANNEL;
|
||||
let channelBinding = channel;
|
||||
if (channelBinding != null) {
|
||||
trackOptionSelect();
|
||||
value2 = environment.__proto__;
|
||||
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
|
||||
transitionTo = moduleValue.transitionTo;
|
||||
CHANNEL = Routes.CHANNEL;
|
||||
channelBinding = channel;
|
||||
Reflect.apply(transitionTo, moduleValue, [Reflect.apply(CHANNEL, Routes, [channelBinding.guild_id,
|
||||
channelBinding.id])]);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91924() { // fn#91924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:2847, offset: 0x02077045, size: 62 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
var value;
|
||||
if (welcomeScreen == null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.wait(_fun91925);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91926() { // fn#91926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:2935, offset: 0x020770b0, size: 68 bytes, params: 1, frame: 11
|
||||
var value;
|
||||
if (fetching === false && hasError === true) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
|
||||
value.hideActionSheet();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91927() { // fn#91927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3005, offset: 0x020770f4, size: 62 bytes, params: 1, frame: 11
|
||||
var environment;
|
||||
var value;
|
||||
if (welcomeScreen != null) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.wait(_fun91928);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91929() { // fn#91929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3094, offset: 0x0207715f, size: 54 bytes, params: 1, frame: 11
|
||||
const welcomeScreenBinding = welcomeScreen;
|
||||
const value = environment.__proto__;
|
||||
if (welcomeScreenBinding === NO_WELCOME_SCREEN) {
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91931() { // fn#91931, offset: 0x020771da, size: 11 bytes, params: 1, frame: 1
|
||||
return function() {
|
||||
if (onHide != null) {
|
||||
onHide();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function _fun91933(a0) { // fn#91933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3277, offset: 0x02077200, size: 168 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
let welcomeScreenBinding = welcomeScreen;
|
||||
if (welcomeScreenBinding != null) {
|
||||
var env0_2 = false;
|
||||
welcomeScreenBinding = welcomeScreen;
|
||||
welcomeScreenBinding.welcome_channels.forEach(_fun91934);
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
defaultImport.track(AnalyticEvents.GUILD_WELCOME_SCREEN_OPTION_SELECTED, {index: a0, guild_id: guildId,
|
||||
options: [],
|
||||
options_channel_ids: [], guild_description: welcomeScreenBinding.description, has_custom_emojis: env0_2});
|
||||
}
|
||||
}
|
||||
|
||||
function guildNameHook(a0, a1) { // fn#91935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3959, owner: GuildWelcomeActionSheet.guildNameHook, offset: 0x020772ea, size: 86 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
style={styles.headerGuildName}
|
||||
variant="heading-xl/extrabold"
|
||||
color="mobile-text-heading-primary"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun91936(a0, a1) { // fn#91936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:4376, offset: 0x02077340, size: 53 bytes, params: 3, frame: 16
|
||||
const env0_0 = a1;
|
||||
return (
|
||||
<WelcomeChannelRow
|
||||
welcomeChannel={a0}
|
||||
trackOptionSelect={trackOptionSelect}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun91925() { // fn#91925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:2876, offset: 0x02077083, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(11973) /* metro dependency 11973: WelcomeScreenActionCreators */;
|
||||
return value.fetchWelcomeScreen(guildId);
|
||||
}
|
||||
|
||||
function _fun91928() { // fn#91928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3034, offset: 0x02077132, size: 45 bytes, params: 1, frame: 11
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(11973) /* metro dependency 11973: WelcomeScreenActionCreators */;
|
||||
return value.welcomeScreenViewed(guildId);
|
||||
}
|
||||
|
||||
function _fun91934({description, channel_id, emoji_id}) { // fn#91934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12160:3340, offset: 0x020772a8, size: 66 bytes, params: 2, frame: 13
|
||||
env0_0.push(description);
|
||||
env0_1.push(channel_id);
|
||||
if (emoji_id == null) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/* Metro module 11972; source: modules/welcome_screen/useWelcomeScreenEnabled.tsx; dependencies: [1383, 1379, 1867, 1934, 661, 566, 2] */
|
||||
function _fun91899(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12158:6, offset: 0x02075eef, size: 190 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(1383) /* metro dependency 1383: ChannelRecord */).isGuildTextChannelType;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/welcome_screen/useWelcomeScreenEnabled.tsx');
|
||||
exports.default = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return require(dependencyMap[5]).useStateFromStores([ChannelStore, GuildStore, SelectedChannelStore],
|
||||
_fun91901);
|
||||
};
|
||||
}
|
||||
|
||||
function useWelcomeScreenEnabled(a0, a1) { // fn#91900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12158:277, offset: 0x02075fad, size: 89 bytes, params: 3, frame: 15
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore, GuildStore,
|
||||
SelectedChannelStore], _fun91901);
|
||||
}
|
||||
|
||||
function _fun91901() { // fn#91901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12158:358, offset: 0x02076006, size: 225 bytes, params: 1, frame: 17
|
||||
var r6;
|
||||
var r0;
|
||||
var features;
|
||||
var has;
|
||||
var getChannel;
|
||||
var binding;
|
||||
var value6;
|
||||
const value = environment.__proto__;
|
||||
const guild = GuildStore.getGuild(require);
|
||||
if (guild == null) {
|
||||
r6 = undefined;
|
||||
} else {
|
||||
features = guild.features;
|
||||
r6 = features.has(GuildFeatures.WELCOME_SCREEN_ENABLED);
|
||||
}
|
||||
if (r6 === true) {
|
||||
features = guild.features;
|
||||
has = features.has;
|
||||
var COMMUNITY = GuildFeatures.COMMUNITY;
|
||||
if (Reflect.apply(has, features, [COMMUNITY])) {
|
||||
features = guild.features;
|
||||
if (features.has(GuildFeatures.GUILD_SERVER_GUIDE)) {
|
||||
return false;
|
||||
}
|
||||
getChannel = ChannelStore.getChannel;
|
||||
binding = env0_0;
|
||||
value6 = Reflect.apply(getChannel, ChannelStore, [binding]);
|
||||
r0 = binding === SelectedChannelStore.getChannelId(require) && value6 != null;
|
||||
r0 = r0 && value6.getGuildId() === guild.id;
|
||||
r0 = r0 && isGuildTextChannelType(value6.type);
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user