Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,188 @@
|
||||
/* Metro module 12034; source: modules/accept_invite/native/AcceptInvite.tsx; dependencies: [57, 31, 27, 661, 33, 4501, 697, 1360, 3860, 5465, 12035, 12037, 1423, 1457, 12040, 1478, 6239, 2] */
|
||||
function _fun92494(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:6, offset: 0x0208bb74, size: 482 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
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.ActivityIndicator;
|
||||
const env0_6 = value.ImageBackground;
|
||||
const env0_7 = value.View;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).InviteStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = 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.parentContainer = {'backgroundColor': null, 'alignItems': 'center', 'justifyContent': 'center',
|
||||
backgroundColor: BACKGROUND_BASE_LOW};
|
||||
object2.imageStyle = {'marginVertical': 0, 'resizeMode': 'cover'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object2.cardContainer = {'position': 'absolute', 'flex': 1, 'width': '90%', 'alignItems': 'center',
|
||||
'justifyContent': 'center', 'padding': 0, backgroundColor: BACKGROUND_SURFACE_HIGH};
|
||||
object2.cardContent = {'padding': 16, 'flex': 1, 'justifyContent': 'center', 'alignItems': 'center',
|
||||
'width': '100%'};
|
||||
object2.resolvingContainer = {padding: 64};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
object2 = {LOADING: 0};
|
||||
object2[0] = 'LOADING';
|
||||
object2.DETAILS = 1;
|
||||
object2[1] = 'DETAILS';
|
||||
object2.ERROR = 2;
|
||||
object2[2] = 'ERROR';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInvite.tsx');
|
||||
exports.default = AcceptInvite;
|
||||
}
|
||||
|
||||
function InviteResolving() { // fn#92495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1211, offset: 0x0208bd56, size: 131 bytes, params: 1, frame: 17
|
||||
const styles = useStyles();
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
|
||||
return (
|
||||
<View style={styles.resolvingContainer}>
|
||||
<ActivityIndicator color={Reflect.apply(useToken, useTokenModule,
|
||||
[INTERACTIVE_TEXT_DEFAULT])} size="large" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function AcceptInviteCardComponent(a0) { // fn#92496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1386, offset: 0x0208bdd9, size: 290 bytes, params: 2, frame: 19
|
||||
const invite = a0.invite;
|
||||
const binding = env0_4;
|
||||
const useState = binding.useState;
|
||||
const value3 = env0_3(Reflect.apply(useState, binding, [getInviteState(invite)]), 2);
|
||||
const property = value3[0];
|
||||
const env0_2 = value3[1];
|
||||
env0_4.useEffect(_fun92497, [invite, property]);
|
||||
if (invite != null) {
|
||||
var DETAILS = env0_12.DETAILS;
|
||||
if (DETAILS === property) {
|
||||
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12035) /* metro dependency 12035: InviteDetails */);
|
||||
}
|
||||
var ERROR = env0_12.ERROR;
|
||||
if (ERROR === property) {
|
||||
return ((Component) => <Component {...a0} {...{['invite']: invite}} />)(importDefault(12037) /* metro dependency 12037: InviteError */);
|
||||
}
|
||||
}
|
||||
return <InviteResolving />;
|
||||
}
|
||||
|
||||
function getInviteState(a0) { // fn#92498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:817, offset: 0x0208bf41, size: 315 bytes, params: 2, frame: 14
|
||||
let value = undefined;
|
||||
let state = a0 == null ? value : a0.state;
|
||||
const r2 = state == null && (a0 == null ? value : a0.channel) == null;
|
||||
if (a0 == null) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
if (a0.state == null) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
if (r2) {
|
||||
value = environment;
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
state = a0.state;
|
||||
const RESOLVED = InviteStates.RESOLVED;
|
||||
if (RESOLVED === state) {
|
||||
return env0_12.DETAILS;
|
||||
}
|
||||
const ACCEPTED = InviteStates.ACCEPTED;
|
||||
if (ACCEPTED === state) {
|
||||
return env0_12.DETAILS;
|
||||
}
|
||||
const EXPIRED = InviteStates.EXPIRED;
|
||||
if (EXPIRED === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const BANNED = InviteStates.BANNED;
|
||||
if (BANNED === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const ERROR = InviteStates.ERROR;
|
||||
if (ERROR === state) {
|
||||
return env0_12.ERROR;
|
||||
}
|
||||
const RESOLVING = InviteStates.RESOLVING;
|
||||
if (RESOLVING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_NOT_OPENED = InviteStates.APP_NOT_OPENED;
|
||||
if (APP_NOT_OPENED === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_OPENED = InviteStates.APP_OPENED;
|
||||
if (APP_OPENED === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const APP_OPENING = InviteStates.APP_OPENING;
|
||||
if (APP_OPENING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
const ACCEPTING = InviteStates.ACCEPTING;
|
||||
if (ACCEPTING === state) {
|
||||
return env0_12.LOADING;
|
||||
}
|
||||
(require(1360) /* metro dependency 1360: GlobalUtils */).assertNever(state);
|
||||
return value;
|
||||
}
|
||||
|
||||
function AcceptInvite(a0) { // fn#92499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1871, offset: 0x0208c07c, size: 448 bytes, params: 2, frame: 26
|
||||
var r7;
|
||||
var object2;
|
||||
var defaultImport;
|
||||
var getGuildSplashSource;
|
||||
var moduleValue;
|
||||
const invite = a0.invite;
|
||||
const value = Object.create(null);
|
||||
value.invite = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, invite);
|
||||
const value4 = undefined;
|
||||
const styles = useStyles();
|
||||
const {height, width} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
|
||||
const guild = (invite ?? ({})).guild;
|
||||
if ((guild == null ? value4 : guild.splash) == null) {
|
||||
r7 = importDefault(12040) /* metro dependency 12040 */;
|
||||
} else {
|
||||
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
getGuildSplashSource = defaultImport.getGuildSplashSource;
|
||||
object2 = {};
|
||||
object2.id = guild.id;
|
||||
object2.splash = guild.splash;
|
||||
moduleValue = require(1457) /* metro dependency 1457: ImageLoaderUtils */;
|
||||
object2.size = width * moduleValue.getDevicePixelRatio();
|
||||
r7 = Reflect.apply(getGuildSplashSource, defaultImport,
|
||||
[object2]) ?? (importDefault(12040) /* metro dependency 12040 */);
|
||||
}
|
||||
const items2 = [styles.parentContainer];
|
||||
items2[1] = {height: height, width: width};
|
||||
const imageBackground = <ImageBackground source={r7} imageStyle={styles.imageStyle} style={{height: height,
|
||||
width: width}} />;
|
||||
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
|
||||
return (
|
||||
<View style={items2}>
|
||||
{imageBackground}
|
||||
<Card style={styles.cardContainer}>
|
||||
<View style={styles.cardContent}>
|
||||
<AcceptInviteCardComponent invite={invite} {...value2} />
|
||||
</View>
|
||||
</Card>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun92497() { // fn#92497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12220:1510, offset: 0x0208befb, size: 70 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const inviteState = getInviteState(invite);
|
||||
if (inviteState !== env0_1) {
|
||||
(require(5465) /* metro dependency 5465: DeprecatedLayoutAnimation */).DeprecatedLayoutAnimation();
|
||||
env0_2(inviteState);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 5251; source: modules/accept_invite/native/AcceptInviteConstants.tsx; dependencies: [2] */
|
||||
function _fun46708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5429:6, offset: 0x011ad77d, size: 84 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInviteConstants.tsx');
|
||||
exports.ACCEPT_INVITE_MODAL_KEY = 'accept-invite';
|
||||
}
|
||||
|
||||
@@ -0,0 +1,554 @@
|
||||
/* Metro module 15650; source: modules/accept_invite/native/AcceptInviteManager.tsx; dependencies: [7, 6, 15, 17, 18, 1226, 4097, 5251, 661, 4116, 6912, 4080, 5080, 15651, 1962, 15652, 694, 10010, 6946, 6789, 4860, 2] */
|
||||
function _fun119953(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:6, offset: 0x0251c5e4, size: 326 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const inviteStore = importDefault(4097) /* metro dependency 4097: InviteStore */;
|
||||
const env0_10 = (require(5251) /* metro dependency 5251: AcceptInviteConstants */).ACCEPT_INVITE_MODAL_KEY;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_11 = value.GuildFeatures;
|
||||
const env0_12 = value.InviteStates;
|
||||
const env0_13 = value.JoinGuildSources;
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun119957(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/AcceptInviteManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_119954() { // fn#119954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:268, offset: 0x0251c72a, 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_119954_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun119957(a0) { // fn#119957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:471, offset: 0x0251c78c, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = AcceptInviteManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function AcceptInviteManager(a0) { // fn#119958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:483, offset: 0x0251c7b6, size: 269 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, AcceptInviteManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(AcceptInviteManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_119954()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value._deferredFromDeeplink = false;
|
||||
value._isRegistration = false;
|
||||
value.actions = {DISPLAYED_INVITE_SHOW: DISPLAYED_INVITE_SHOW_119959,
|
||||
DISPLAYED_INVITE_CLEAR: DISPLAYED_INVITE_CLEAR_119960, DEFERRED_INVITE_SHOW: DEFERRED_INVITE_SHOW,
|
||||
REGISTER_SUCCESS: REGISTER_SUCCESS_119962};
|
||||
value._handleShowInvite = _handleShowInvite;
|
||||
value._handleClearInvite = _handleClearInvite;
|
||||
value._handleShowDeferredInvite = _handleShowDeferredInvite;
|
||||
value._handleInvite = _handleInvite;
|
||||
value._handleRegisterSuccess = _handleRegisterSuccess;
|
||||
return value;
|
||||
}
|
||||
|
||||
function AcceptInviteManagerDISPLAYED_INVITE_SHOW(a0) { // fn#119959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:807, owner: AcceptInviteManager.DISPLAYED_INVITE_SHOW, offset: 0x0251c8c3, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_0._handleShowInvite(a0);
|
||||
}
|
||||
|
||||
function AcceptInviteManagerDISPLAYED_INVITE_CLEAR() { // fn#119960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:856, owner: AcceptInviteManager.DISPLAYED_INVITE_CLEAR, offset: 0x0251c8da, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleClearInvite();
|
||||
}
|
||||
|
||||
function DEFERRED_INVITE_SHOW() { // fn#119961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:904, owner: AcceptInviteManager.DEFERRED_INVITE_SHOW, offset: 0x0251c8ed, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleShowDeferredInvite();
|
||||
}
|
||||
|
||||
function AcceptInviteManagerREGISTER_SUCCESS() { // fn#119962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:955, owner: AcceptInviteManager.REGISTER_SUCCESS, offset: 0x0251c900, size: 19 bytes, params: 1, frame: 9
|
||||
return env0_0._handleRegisterSuccess();
|
||||
}
|
||||
|
||||
function _handleShowInvite({code, deeplinkAttemptId, fromDeeplink, invite_instance_id}) { // fn#119963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1007, owner: AcceptInviteManager._handleShowInvite, offset: 0x0251c913, size: 105 bytes, params: 2, frame: 18
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = AuthenticationStore.isAuthenticated();
|
||||
const binding = env0_0;
|
||||
if (value) {
|
||||
binding._handleInvite(code, deeplinkAttemptId, fromDeeplink === true, invite_instance_id);
|
||||
} else {
|
||||
binding._deferredCode = code;
|
||||
binding._deferredFromDeeplink = fromDeeplink === true;
|
||||
}
|
||||
}
|
||||
|
||||
function _handleClearInvite() { // fn#119964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1199, owner: AcceptInviteManager._handleClearInvite, offset: 0x0251c97c, size: 71 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
binding._deferredCode = null;
|
||||
binding._deferredFromDeeplink = false;
|
||||
binding._isRegistration = false;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey(ACCEPT_INVITE_MODAL_KEY);
|
||||
}
|
||||
|
||||
function _handleShowDeferredInvite() { // fn#119965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1325, owner: AcceptInviteManager._handleShowDeferredInvite, offset: 0x0251c9c3, size: 68 bytes, params: 1, frame: 16
|
||||
var binding;
|
||||
if (env0_0._deferredCode != null) {
|
||||
binding = env0_0;
|
||||
binding._handleInvite(binding._deferredCode, undefined, binding._deferredFromDeeplink);
|
||||
binding._deferredCode = null;
|
||||
binding._deferredFromDeeplink = false;
|
||||
}
|
||||
}
|
||||
|
||||
function _handleInvite(a0, a1) { // fn#119966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1484, owner: AcceptInviteManager._handleInvite, offset: 0x0251ca07, size: 65 bytes, params: 3, frame: 12
|
||||
var environment;
|
||||
let value = a2;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = value !== undefined ? value : false;
|
||||
const env0_3 = a3;
|
||||
value = environment.__proto__.__proto__;
|
||||
InviteStore.addConditionalChangeListener(_fun119967);
|
||||
}
|
||||
|
||||
function _handleRegisterSuccess() { // fn#119970, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:2650, owner: AcceptInviteManager._handleRegisterSuccess, offset: 0x0251cdbe, size: 19 bytes, params: 1, frame: 2
|
||||
env0_0._isRegistration = true;
|
||||
}
|
||||
|
||||
function _fun119967() { // fn#119967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1531, offset: 0x0251ca48, size: 849 bytes, params: 1, frame: 27
|
||||
var environment;
|
||||
var r2;
|
||||
var r5;
|
||||
var id;
|
||||
var r7;
|
||||
var state;
|
||||
var RESOLVED;
|
||||
var EXPIRED;
|
||||
var BANNED;
|
||||
var ERROR;
|
||||
var channel;
|
||||
var guild;
|
||||
var inviter;
|
||||
var value4;
|
||||
var moduleValue;
|
||||
var isGroupDMInvite;
|
||||
var isGroupDMInvite2;
|
||||
var moduleValue2;
|
||||
var isStreamInvite;
|
||||
var isStreamInvite2;
|
||||
var moduleValue3;
|
||||
var isGuildScheduledEventInviteEmbed;
|
||||
var isGuildScheduledEventInviteEmbed2;
|
||||
var moduleValue4;
|
||||
var isRoleSubscriptionInvite;
|
||||
var isRoleSubscriptionInvite2;
|
||||
var value5;
|
||||
var features;
|
||||
var value6;
|
||||
var includes;
|
||||
var DISCOVERABLE;
|
||||
var value7;
|
||||
var value8;
|
||||
var moduleValue5;
|
||||
var getMobileLurkerServerPreview;
|
||||
var enabled;
|
||||
var binding;
|
||||
var value9;
|
||||
var _isRegistration;
|
||||
var defaultImport;
|
||||
var hideActionSheet;
|
||||
var defaultImport2;
|
||||
var pushLazy;
|
||||
var moduleValue6;
|
||||
var property;
|
||||
var paths;
|
||||
var value10;
|
||||
var object2;
|
||||
var defaultImport3;
|
||||
var wait;
|
||||
var moduleValue7;
|
||||
var startLurking;
|
||||
var id2;
|
||||
var DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
var DEEPLINK;
|
||||
var moduleValue8;
|
||||
var acceptFriendInvite;
|
||||
var value11;
|
||||
var value12;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const invite = InviteStore.getInvite(env0_0);
|
||||
if (invite != null) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
reducibleJoin5: while (true) {
|
||||
reducibleJoin33: while (true) {
|
||||
if (state === RESOLVED) {
|
||||
channel = invite.channel;
|
||||
if (channel == null) {
|
||||
guild = invite.guild;
|
||||
if (guild == null) {
|
||||
inviter = invite.inviter;
|
||||
if (inviter != null) {
|
||||
moduleValue8 = require(dependencyMap[15]);
|
||||
acceptFriendInvite = moduleValue8.acceptFriendInvite;
|
||||
value11 = 'Accept Invite';
|
||||
reducibleJoin32: while (true) {
|
||||
if (require != null) {
|
||||
value12 = 'Deep Link';
|
||||
r7 = value12;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r7 = value11;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
Reflect.apply(acceptFriendInvite, moduleValue8, [invite, {location: r7}]);
|
||||
value = importDefault(dependencyMap[16]);
|
||||
wait = value.wait;
|
||||
Reflect.apply(wait, value, [_fun119968]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (env0_2) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
if (state === RESOLVED) {
|
||||
guild = invite.guild;
|
||||
value4 = guild == null;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value4) {
|
||||
r2 = value4;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isGroupDMInvite = moduleValue.isGroupDMInvite;
|
||||
isGroupDMInvite2 = Reflect.apply(isGroupDMInvite, moduleValue, [invite]);
|
||||
r2 = isGroupDMInvite2;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
reducibleJoin15: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
moduleValue2 = require(dependencyMap[9]);
|
||||
isStreamInvite = moduleValue2.isStreamInvite;
|
||||
isStreamInvite2 = Reflect.apply(isStreamInvite, moduleValue2, [invite]);
|
||||
r2 = isStreamInvite2;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
reducibleJoin17: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
moduleValue3 = require(dependencyMap[9]);
|
||||
isGuildScheduledEventInviteEmbed = moduleValue3.isGuildScheduledEventInviteEmbed;
|
||||
isGuildScheduledEventInviteEmbed2 = Reflect.apply(isGuildScheduledEventInviteEmbed,
|
||||
moduleValue3,
|
||||
[invite]);
|
||||
r2 = isGuildScheduledEventInviteEmbed2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
reducibleJoin19: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin19;
|
||||
}
|
||||
moduleValue4 = require(dependencyMap[9]);
|
||||
isRoleSubscriptionInvite = moduleValue4.isRoleSubscriptionInvite;
|
||||
isRoleSubscriptionInvite2 = Reflect.apply(isRoleSubscriptionInvite, moduleValue4,
|
||||
[invite]);
|
||||
r2 = isRoleSubscriptionInvite2;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
value5 = undefined;
|
||||
reducibleJoin21: while (true) {
|
||||
if (r2) {
|
||||
r5 = value5;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
guild = invite.guild;
|
||||
features = guild.features;
|
||||
value6 = features == null;
|
||||
r2 = value6;
|
||||
r5 = features;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
includes = r5.includes;
|
||||
DISCOVERABLE = GuildFeatures.DISCOVERABLE;
|
||||
value7 = !Reflect.apply(includes, r5, [DISCOVERABLE]);
|
||||
r2 = value7;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
value8 = !r2;
|
||||
reducibleJoin25: while (true) {
|
||||
if (r2) {
|
||||
r2 = value8;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
moduleValue5 = require(dependencyMap[10]);
|
||||
getMobileLurkerServerPreview = moduleValue5.getMobileLurkerServerPreview;
|
||||
enabled = Reflect.apply(getMobileLurkerServerPreview, moduleValue5,
|
||||
['AcceptInviteManager']).enabled;
|
||||
r2 = enabled;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
if (r2) {
|
||||
defaultImport3 = importDefault(dependencyMap[16]);
|
||||
wait = defaultImport3.wait;
|
||||
Reflect.apply(wait, defaultImport3, [_fun119969]);
|
||||
moduleValue7 = require(dependencyMap[18]);
|
||||
startLurking = moduleValue7.startLurking;
|
||||
guild = invite.guild;
|
||||
id2 = guild.id;
|
||||
object2 = {};
|
||||
channel = invite.channel;
|
||||
reducibleJoin29: while (true) {
|
||||
if (channel == null) {
|
||||
id = value5;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
id = channel.id;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
object2.channelId = id;
|
||||
DISCOVERABLE_GUILD_INVITE_LURKER = JoinGuildSources.DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
object2.joinSource = DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
DEEPLINK = importDefault(dependencyMap[19]).DEEPLINK;
|
||||
Reflect.apply(startLurking, moduleValue7, [id2, {}, object2, [DEEPLINK]]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
binding = env0_0;
|
||||
value9 = environment.__proto__;
|
||||
_isRegistration = env1_0._isRegistration;
|
||||
defaultImport = importDefault(dependencyMap[11]);
|
||||
defaultImport.hideActionSheet();
|
||||
defaultImport2 = importDefault(dependencyMap[12]);
|
||||
defaultImport2.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths),
|
||||
{code: binding,
|
||||
isRegistration: _isRegistration, deeplinkAttemptId: require, inviteInstanceId: importAll},
|
||||
ACCEPT_INVITE_MODAL_KEY);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
state = invite.state;
|
||||
EXPIRED = InviteStates.EXPIRED;
|
||||
if (state !== EXPIRED) {
|
||||
state = invite.state;
|
||||
BANNED = InviteStates.BANNED;
|
||||
reducibleJoin6: while (true) {
|
||||
if (state === BANNED) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
state = invite.state;
|
||||
ERROR = InviteStates.ERROR;
|
||||
if (state === ERROR) {
|
||||
break reducibleJoin6;
|
||||
}
|
||||
break reducibleJoin5;
|
||||
}
|
||||
}
|
||||
channel = invite.channel;
|
||||
if (channel == null) {
|
||||
guild = invite.guild;
|
||||
if (guild == null) {
|
||||
inviter = invite.inviter;
|
||||
if (inviter != null) {
|
||||
moduleValue8 = require(dependencyMap[15]);
|
||||
acceptFriendInvite = moduleValue8.acceptFriendInvite;
|
||||
value11 = 'Accept Invite';
|
||||
reducibleJoin32: while (true) {
|
||||
if (require != null) {
|
||||
value12 = 'Deep Link';
|
||||
r7 = value12;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
r7 = value11;
|
||||
break reducibleJoin32;
|
||||
}
|
||||
Reflect.apply(acceptFriendInvite, moduleValue8, [invite, {location: r7}]);
|
||||
value = importDefault(dependencyMap[16]);
|
||||
wait = value.wait;
|
||||
Reflect.apply(wait, value, [_fun119968]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (env0_2) {
|
||||
state = invite.state;
|
||||
RESOLVED = InviteStates.RESOLVED;
|
||||
if (state === RESOLVED) {
|
||||
guild = invite.guild;
|
||||
value4 = guild == null;
|
||||
reducibleJoin13: while (true) {
|
||||
if (value4) {
|
||||
r2 = value4;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
moduleValue = require(dependencyMap[9]);
|
||||
isGroupDMInvite = moduleValue.isGroupDMInvite;
|
||||
isGroupDMInvite2 = Reflect.apply(isGroupDMInvite, moduleValue, [invite]);
|
||||
r2 = isGroupDMInvite2;
|
||||
break reducibleJoin13;
|
||||
}
|
||||
reducibleJoin15: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin15;
|
||||
}
|
||||
moduleValue2 = require(dependencyMap[9]);
|
||||
isStreamInvite = moduleValue2.isStreamInvite;
|
||||
isStreamInvite2 = Reflect.apply(isStreamInvite, moduleValue2, [invite]);
|
||||
r2 = isStreamInvite2;
|
||||
break reducibleJoin15;
|
||||
}
|
||||
reducibleJoin17: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin17;
|
||||
}
|
||||
moduleValue3 = require(dependencyMap[9]);
|
||||
isGuildScheduledEventInviteEmbed = moduleValue3.isGuildScheduledEventInviteEmbed;
|
||||
isGuildScheduledEventInviteEmbed2 = Reflect.apply(isGuildScheduledEventInviteEmbed,
|
||||
moduleValue3,
|
||||
[invite]);
|
||||
r2 = isGuildScheduledEventInviteEmbed2;
|
||||
break reducibleJoin17;
|
||||
}
|
||||
reducibleJoin19: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin19;
|
||||
}
|
||||
moduleValue4 = require(dependencyMap[9]);
|
||||
isRoleSubscriptionInvite = moduleValue4.isRoleSubscriptionInvite;
|
||||
isRoleSubscriptionInvite2 = Reflect.apply(isRoleSubscriptionInvite, moduleValue4, [invite]);
|
||||
r2 = isRoleSubscriptionInvite2;
|
||||
break reducibleJoin19;
|
||||
}
|
||||
value5 = undefined;
|
||||
reducibleJoin21: while (true) {
|
||||
if (r2) {
|
||||
r5 = value5;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
guild = invite.guild;
|
||||
features = guild.features;
|
||||
value6 = features == null;
|
||||
r2 = value6;
|
||||
r5 = features;
|
||||
break reducibleJoin21;
|
||||
}
|
||||
reducibleJoin23: while (true) {
|
||||
if (r2) {
|
||||
break reducibleJoin23;
|
||||
}
|
||||
includes = r5.includes;
|
||||
DISCOVERABLE = GuildFeatures.DISCOVERABLE;
|
||||
value7 = !Reflect.apply(includes, r5, [DISCOVERABLE]);
|
||||
r2 = value7;
|
||||
break reducibleJoin23;
|
||||
}
|
||||
value8 = !r2;
|
||||
reducibleJoin25: while (true) {
|
||||
if (r2) {
|
||||
r2 = value8;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
moduleValue5 = require(dependencyMap[10]);
|
||||
getMobileLurkerServerPreview = moduleValue5.getMobileLurkerServerPreview;
|
||||
enabled = Reflect.apply(getMobileLurkerServerPreview, moduleValue5,
|
||||
['AcceptInviteManager']).enabled;
|
||||
r2 = enabled;
|
||||
break reducibleJoin25;
|
||||
}
|
||||
if (r2) {
|
||||
defaultImport3 = importDefault(dependencyMap[16]);
|
||||
wait = defaultImport3.wait;
|
||||
Reflect.apply(wait, defaultImport3, [_fun119969]);
|
||||
moduleValue7 = require(dependencyMap[18]);
|
||||
startLurking = moduleValue7.startLurking;
|
||||
guild = invite.guild;
|
||||
id2 = guild.id;
|
||||
object2 = {};
|
||||
channel = invite.channel;
|
||||
reducibleJoin29: while (true) {
|
||||
if (channel == null) {
|
||||
id = value5;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
id = channel.id;
|
||||
break reducibleJoin29;
|
||||
}
|
||||
object2.channelId = id;
|
||||
DISCOVERABLE_GUILD_INVITE_LURKER = JoinGuildSources.DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
object2.joinSource = DISCOVERABLE_GUILD_INVITE_LURKER;
|
||||
DEEPLINK = importDefault(dependencyMap[19]).DEEPLINK;
|
||||
Reflect.apply(startLurking, moduleValue7, [id2, {}, object2, [DEEPLINK]]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
}
|
||||
}
|
||||
binding = env0_0;
|
||||
value9 = environment.__proto__;
|
||||
_isRegistration = env1_0._isRegistration;
|
||||
defaultImport = importDefault(dependencyMap[11]);
|
||||
hideActionSheet = defaultImport.hideActionSheet;
|
||||
Reflect.apply(hideActionSheet, defaultImport, []);
|
||||
defaultImport2 = importDefault(dependencyMap[12]);
|
||||
pushLazy = defaultImport2.pushLazy;
|
||||
moduleValue6 = require(dependencyMap[14]);
|
||||
property = dependencyMap[13];
|
||||
paths = dependencyMap.paths;
|
||||
value10 = moduleValue6(property, paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value10, {code: binding, isRegistration: _isRegistration,
|
||||
deeplinkAttemptId: require, inviteInstanceId: importAll}, ACCEPT_INVITE_MODAL_KEY]);
|
||||
break reducibleJoin33;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function _fun119968() { // fn#119968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15858:1797, offset: 0x0251cd99, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
return (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,490 @@
|
||||
/* Metro module 12035; source: modules/accept_invite/native/InviteDetails.tsx; dependencies: [57, 31, 27, 11876, 1885, 1878, 661, 9445, 33, 4501, 697, 6235, 4116, 1305, 11976, 3995, 1244, 8642, 4573, 1423, 5475, 683, 566, 12036, 9048, 4578, 6261, 2] */
|
||||
function _fun92500(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6, offset: 0x0208c23c, size: 957 bytes, params: 8, frame: 26
|
||||
var object4;
|
||||
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 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const multiAccountStore = importDefault(11876) /* metro dependency 11876: MultiAccountStore */;
|
||||
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.AnalyticEvents;
|
||||
const env0_10 = value.InviteStates;
|
||||
const env0_11 = (require(9445) /* metro dependency 9445: HubConstants */).INVITE_ROUTING_HUB_GUILD_ID;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_12 = value.jsx;
|
||||
const env0_13 = value.jsxs;
|
||||
const env0_14 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object7 = {'height': 64, 'width': 64, 'margin': 0};
|
||||
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object4.avatar = object7;
|
||||
const object8 = {'borderRadius': null, 'height': 64, 'width': 64, 'marginBottom': 24, 'marginTop': 24};
|
||||
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
|
||||
object4.avatarContainer = object8;
|
||||
object4.inviteJoinContainer = {'flexDirection': 'row', 'alignItems': 'flex-start', 'marginBottom': 8,
|
||||
'marginLeft': 16, 'marginRight': 16};
|
||||
object4.inviteJoinText = {textAlign: 'center'};
|
||||
const object12 = {};
|
||||
object12.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
|
||||
object12.marginRight = 8;
|
||||
object4.inviterIconWrapper = object12;
|
||||
const object13 = {'width': 20, 'height': 20};
|
||||
object13.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.inviterIcon = object13;
|
||||
object4.guildNameContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
|
||||
object4.guildNameText = {textAlign: 'center'};
|
||||
const DARK_1_LIGHT_04 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_1_LIGHT_04;
|
||||
object4.featureIcon = {'flexGrow': 0, 'marginRight': 8, opacity: DARK_1_LIGHT_04};
|
||||
object4.memberInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
|
||||
object4.rolesList = {'marginTop': 8, 'marginBottom': 8, 'alignItems': 'center'};
|
||||
const object14 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4};
|
||||
object14.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
|
||||
object14.backgroundColor = GREEN_360;
|
||||
object4.dotOnline = object14;
|
||||
const object15 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4, 'marginLeft': 16};
|
||||
object15.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
|
||||
object15.backgroundColor = PRIMARY_400;
|
||||
object4.dotOffline = object15;
|
||||
const object16 = {'width': '100%', 'backgroundColor': null, 'padding': 16, 'borderRadius': null, 'marginTop': 16,
|
||||
'marginBottom': 8};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object16.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object16.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
|
||||
object4.embedDetailsCard = object16;
|
||||
const env0_15 = Reflect.apply(createStyles, value, [object4]);
|
||||
const getMemberCountFromInvite = function(a0) {
|
||||
var object = {};
|
||||
var property = a0.approximate_presence_count;
|
||||
var value = null;
|
||||
var value2 = 0;
|
||||
object.onlineCount = value != property ? property : value2;
|
||||
property = a0.approximate_member_count;
|
||||
object.memberCount = value != property ? property : value2;
|
||||
return value2 === object.memberCount ? value : object;
|
||||
};
|
||||
object4 = {ACCEPT: 0};
|
||||
object4[0] = 'ACCEPT';
|
||||
object4.DECLINE = 1;
|
||||
object4[1] = 'DECLINE';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteDetails.tsx');
|
||||
exports.default = InviteDetails;
|
||||
}
|
||||
|
||||
function InviteDestinationIcon({invite}) { // fn#92501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1889, offset: 0x0208c5f9, size: 341 bytes, params: 2, frame: 25
|
||||
var r4;
|
||||
var r5;
|
||||
var inviter;
|
||||
var value2;
|
||||
var guild;
|
||||
var value3;
|
||||
var Avatar;
|
||||
var userRecord;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const items2 = [styles.avatarContainer];
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
|
||||
inviter = invite.inviter;
|
||||
value2 = null;
|
||||
if (value2 != inviter) {
|
||||
inviter = invite.inviter;
|
||||
if (value2 != inviter) {
|
||||
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
var avatarProps = {avatarStyle: styles.avatar};
|
||||
inviter = invite.inviter;
|
||||
userRecord = new UserRecord();
|
||||
avatarProps.user = userRecord;
|
||||
avatarProps.guildId = undefined;
|
||||
avatarProps.size = (require(1305) /* metro dependency 1305: native */).AvatarSizes.XLARGE;
|
||||
userRecord = <Avatar {...avatarProps} />;
|
||||
r5 = userRecord;
|
||||
} else {
|
||||
r5 = value2;
|
||||
}
|
||||
r4 = r5;
|
||||
} else {
|
||||
guild = invite.guild;
|
||||
value3 = null;
|
||||
if (value3 != guild) {
|
||||
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
|
||||
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
guild = invite.guild;
|
||||
value3 = null;
|
||||
if (value3 != guild) {
|
||||
value = importDefault(11976) /* metro dependency 11976: GuildInviteIcon */;
|
||||
value = ((Component) => <Component style={styles.avatar} guild={invite.guild} size={(importDefault(11976) /* metro dependency 11976: GuildInviteIcon */).Sizes.LARGE} textScale={2} />)(value);
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = value3;
|
||||
}
|
||||
}
|
||||
return (
|
||||
<View style={items2}>
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteHeader({invite}) { // fn#92502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2269, offset: 0x0208c74e, size: 449 bytes, params: 2, frame: 22
|
||||
var name;
|
||||
var r0;
|
||||
var r9;
|
||||
var defaultImport;
|
||||
var intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var defaultImport2;
|
||||
const styles = useStyles();
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isGroupDMInvite(invite)) {
|
||||
name = invite.channel?.name;
|
||||
if (name != null) {
|
||||
r0 = name;
|
||||
} else {
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r0 = defaultImport.getFormattedName(invite.inviter);
|
||||
}
|
||||
r9 = r0;
|
||||
} else {
|
||||
r9 = invite.guild?.name;
|
||||
}
|
||||
const moduleValue2 = inviteTypeUtilsModule;
|
||||
if (moduleValue2.isFriendInvite(invite)) {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['4aF92R'];
|
||||
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r9 = Reflect.apply(formatToPlainString, intl, [property,
|
||||
{username: defaultImport2.getFormattedName(invite.inviter)}]);
|
||||
}
|
||||
return r9 == null ? null : <View style={styles.guildNameContainer}>{((Component) => <Component guild={invite.guild} style={styles.featureIcon} disableColor />)(importDefault(8642) /* metro dependency 8642: GuildBadge */)}{((Heading) => <Heading style={styles.guildNameText} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{r9}</Heading>)((require(4573) /* metro dependency 4573: Text */).Heading)}</View>;
|
||||
}
|
||||
|
||||
function InviteJoinContext({invite, isRegistration, isGuildMember}) { // fn#92503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2851, offset: 0x0208c90f, size: 1063 bytes, params: 2, frame: 27
|
||||
var r2;
|
||||
var r8;
|
||||
var r6;
|
||||
var moduleValue2;
|
||||
var moduleValue3;
|
||||
var format;
|
||||
var spU2mI;
|
||||
var defaultImport;
|
||||
var formatToPlainString;
|
||||
var x2L32Q;
|
||||
var defaultImport2;
|
||||
var Lu4h18;
|
||||
var defaultImport3;
|
||||
var Quj7HX;
|
||||
var defaultImport4;
|
||||
var moduleValue4;
|
||||
const styles = useStyles();
|
||||
const value2 = env0_4.useMemo(_fun92504, [invite, isGuildMember]);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const value3 = Reflect.apply(string, intl, [t['3rE1P8']]);
|
||||
if ((require(4116) /* metro dependency 4116: InviteTypeUtils */).isFriendInvite(invite)) {
|
||||
format = intl.format;
|
||||
Quj7HX = (require(1244) /* metro dependency 1244: indexNative */).t.Quj7HX;
|
||||
defaultImport4 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [Quj7HX, {username: defaultImport4.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
moduleValue2 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (moduleValue2.isGroupDMInvite(invite)) {
|
||||
if (invite.channel == null) {
|
||||
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
|
||||
} else if (invite.inviter != null) {
|
||||
format = intl.format;
|
||||
Lu4h18 = (require(1244) /* metro dependency 1244: indexNative */).t.Lu4h18;
|
||||
defaultImport3 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r2 = Reflect.apply(format, intl, [Lu4h18, {username: defaultImport3.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r2 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.OsdY8B);
|
||||
}
|
||||
r8 = r2;
|
||||
} else {
|
||||
moduleValue3 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (moduleValue3.isStreamInvite(invite)) {
|
||||
if (invite.target_user != null) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
x2L32Q = (require(1244) /* metro dependency 1244: indexNative */).t.x2L32Q;
|
||||
defaultImport2 = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(formatToPlainString, intl, [x2L32Q,
|
||||
{username: defaultImport2.getFormattedName(invite.target_user)}]);
|
||||
} else if (isAlreadyMember(invite, isGuildMember)) {
|
||||
string = intl.string;
|
||||
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
|
||||
[t['FDsl+J']]);
|
||||
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
|
||||
format = intl.format;
|
||||
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [spU2mI,
|
||||
{username: defaultImport.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
} else if (isAlreadyMember(invite, isGuildMember)) {
|
||||
string = intl.string;
|
||||
r8 = isRegistration ? Reflect.apply(string, intl, [t.jpwYbt]) : Reflect.apply(string, intl,
|
||||
[t['FDsl+J']]);
|
||||
} else if (shouldShowInviter(invite, isGuildMember) && invite.inviter != null) {
|
||||
format = intl.format;
|
||||
spU2mI = (require(1244) /* metro dependency 1244: indexNative */).t.spU2mI;
|
||||
defaultImport = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
r8 = Reflect.apply(format, intl, [spU2mI, {username: defaultImport.getFormattedName(invite.inviter)}]);
|
||||
} else {
|
||||
r8 = value3;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (value2 == null) {
|
||||
r6 = null;
|
||||
} else {
|
||||
moduleValue4 = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
r6 = moduleValue4.isFriendInvite(invite) ? null : <View style={styles.inviterIconWrapper}>{((Component) => <Component source={value2} style={styles.inviterIcon} />)(importDefault(5475) /* metro dependency 5475: FastImage */)}</View>;
|
||||
}
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.inviteJoinContainer}>
|
||||
{r6}
|
||||
<Text
|
||||
style={styles.inviteJoinText}
|
||||
variant="text-sm/normal"
|
||||
color="text-default"
|
||||
>
|
||||
{r8}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteMemberCounts({invite, isGuildMember}) { // fn#92505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4163, offset: 0x0208cdf6, size: 533 bytes, params: 2, frame: 31
|
||||
var r7;
|
||||
var r6;
|
||||
var r0;
|
||||
var jsxRuntimeEnv0_14Binding;
|
||||
var items4;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var items3;
|
||||
const styles = useStyles();
|
||||
const memberCountFromInvite = getMemberCountFromInvite(invite);
|
||||
if (memberCountFromInvite == null) {
|
||||
r0 = null;
|
||||
} else if (shouldShowInviter(invite, isGuildMember)) {
|
||||
r0 = null;
|
||||
} else if ((invite == null || invite.guild == null ? undefined : invite.guild.id) === INVITE_ROUTING_HUB_GUILD_ID) {
|
||||
r0 = null;
|
||||
} else {
|
||||
var viewBindingProps = {style: styles.memberInfo};
|
||||
if (memberCountFromInvite.onlineCount != null) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items4 = [<View style={styles.dotOnline} />];
|
||||
items4[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
|
||||
|
||||
|
||||
{membersOnline: memberCountFromInvite.onlineCount})}</Text>;
|
||||
r7 = <>{items4}</>;
|
||||
} else {
|
||||
r7 = null;
|
||||
}
|
||||
items2 = [r7];
|
||||
if (memberCountFromInvite.memberCount != null) {
|
||||
jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
items3 = [<View style={styles.dotOffline} />];
|
||||
items3[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
|
||||
|
||||
|
||||
{count: memberCountFromInvite.memberCount})}</Text>;
|
||||
r6 = <>{items3}</>;
|
||||
} else {
|
||||
r6 = null;
|
||||
}
|
||||
items2[1] = r6;
|
||||
r0 = <View {...viewBindingProps}>{items2}</View>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function isAlreadyMember(a0, a1) { // fn#92507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1691, offset: 0x0208d053, size: 33 bytes, params: 3, frame: 3
|
||||
return a1 && a0.state !== InviteStates.ACCEPTED;
|
||||
}
|
||||
|
||||
function shouldShowInviter(a0, a1) { // fn#92508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:1740, offset: 0x0208d074, size: 93 bytes, params: 3, frame: 15
|
||||
var memberCount;
|
||||
var getMemberCountFromInviteBinding;
|
||||
var memberCountFromInviteBinding;
|
||||
let value = a0.inviter != null;
|
||||
let r0 = value && !isAlreadyMember(a0, a1);
|
||||
if (r0) {
|
||||
getMemberCountFromInviteBinding = getMemberCountFromInvite;
|
||||
value = undefined;
|
||||
memberCountFromInviteBinding = getMemberCountFromInviteBinding(a0);
|
||||
memberCount = memberCountFromInviteBinding == null ? value : memberCountFromInviteBinding.memberCount;
|
||||
value = 0;
|
||||
value = !((memberCount ?? value) > 100);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function InviteDetails({invite, isGuildMember, onPressJoin, onPressClose, isRegistration}) { // fn#92509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:4982, offset: 0x0208d0d1, size: 1234 bytes, params: 2, frame: 36
|
||||
var r18;
|
||||
var r19;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var value15;
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const [property, env0_3] = env0_3Binding(binding.useState(), 2);
|
||||
const guild_scheduled_event = invite.guild_scheduled_event;
|
||||
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getCurrentUser();
|
||||
});
|
||||
const canUseMultiAccountMobile = (require(566) /* metro dependency 566: flux */).useStateFromStores([MultiAccountStore],
|
||||
function() {
|
||||
return MultiAccountStore.getCanUseMultiAccountMobile();
|
||||
});
|
||||
const jsxRuntimeEnv0_14Binding = jsxRuntimeEnv0_14;
|
||||
const items3 = [<InviteDestinationIcon invite={invite} isGuildMember={isGuildMember} isRegistration={isRegistration} />];
|
||||
items3[1] = <InviteJoinContext {...object} />;
|
||||
items3[2] = <InviteHeader {...object} />;
|
||||
items3[3] = <InviteMemberCounts {...object} />;
|
||||
items3[4] = ((Component) => <Component invite={invite} style={styles.rolesList} />)(importDefault(12036) /* metro dependency 12036: InviteRolesList */);
|
||||
items3[5] = guild_scheduled_event != null && <View style={styles.embedDetailsCard}>{((GuildEventCardHeader) => <GuildEventCardHeader event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardHeader)}{((GuildEventCardMetaInfo) => <GuildEventCardMetaInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardMetaInfo)}{((GuildEventCardGuildInfo) => <GuildEventCardGuildInfo event={guild_scheduled_event} />)((require(9048) /* metro dependency 9048: GuildEventCardComponents */).GuildEventCardGuildInfo)}</View>;
|
||||
const isAlreadyMember2 = isAlreadyMember(invite, isGuildMember);
|
||||
const r11 = currentUser != null ? (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getUserAvatarSource(currentUser,
|
||||
false, 20) : null;
|
||||
const r21 = r11 != null ? ((Icon) => <Icon source={r11} variant="entity" />)((require(4578) /* metro dependency 4578: ButtonNative */).Button.Icon) : undefined;
|
||||
const r5 = currentUser != null ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['9sWQNT'],
|
||||
{usernameHook: usernameHook_92514}) : undefined;
|
||||
let string = (require(1244) /* metro dependency 1244: indexNative */).intl.string;
|
||||
if (isAlreadyMember2) {
|
||||
value15 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.IRoQXr);
|
||||
r18 = value15;
|
||||
r19 = value15;
|
||||
} else if (canUseMultiAccountMobile && r5 != null) {
|
||||
r18 = r5;
|
||||
r19 = r5;
|
||||
} else {
|
||||
r18 = r5;
|
||||
r19 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['e/6Ogt']]);
|
||||
}
|
||||
const ButtonGroup = (require(6261) /* metro dependency 6261: ButtonGroupNative */).ButtonGroup;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
const buttonProps = {'icon': null, 'variant': 'primary', 'size': 'lg', icon: r21, text: r19,
|
||||
accessibilityLabel: r18, onPress: onPress_92510};
|
||||
binding = env0_19;
|
||||
let ACCEPT = binding.ACCEPT;
|
||||
buttonProps.loading = property === ACCEPT;
|
||||
ACCEPT = binding.ACCEPT;
|
||||
buttonProps.disabled = property === ACCEPT;
|
||||
const button = <Button {...buttonProps} />;
|
||||
const object2 = {'variant': 'secondary', 'size': 'lg'};
|
||||
string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.text = isAlreadyMember2 ? Reflect.apply(string, intl, [t.WAI6xu]) : Reflect.apply(string, intl, [t.ndsK4Z]);
|
||||
object2.onPress = onPress_92511;
|
||||
binding = env0_19;
|
||||
let DECLINE = binding.DECLINE;
|
||||
object2.loading = property === DECLINE;
|
||||
DECLINE = binding.DECLINE;
|
||||
object2.disabled = property === DECLINE;
|
||||
items3[6] = <ButtonGroup>{button}<Button {...object2} /></ButtonGroup>;
|
||||
return (
|
||||
<>
|
||||
{items3}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun92504() { // fn#92504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:2946, offset: 0x0208cd36, size: 192 bytes, params: 1, frame: 16
|
||||
var r0;
|
||||
var shouldShowInviter2;
|
||||
var value3;
|
||||
let value = environment.__proto__;
|
||||
const inviteTypeUtilsModule = require(4116) /* metro dependency 4116: InviteTypeUtils */;
|
||||
if (inviteTypeUtilsModule.isStreamInvite(invite)) {
|
||||
if (invite.target_user != null) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.target_user);
|
||||
r0 = value;
|
||||
} else {
|
||||
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
|
||||
value3 = null;
|
||||
if (shouldShowInviter2) {
|
||||
if (value3 != invite.inviter) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.inviter);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
shouldShowInviter2 = shouldShowInviter(invite, isGuildMember);
|
||||
value3 = null;
|
||||
if (shouldShowInviter2) {
|
||||
if (value3 != invite.inviter) {
|
||||
value = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
value = value.getUserAvatarSource(invite.inviter);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function InviteDetailsOnPress() { // fn#92510, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5163, owner: InviteDetails.onPress, offset: 0x0208d5a3, size: 37 bytes, params: 1, frame: 12
|
||||
const binding = env0_3;
|
||||
const ACCEPT = env1_19.ACCEPT;
|
||||
binding(ACCEPT);
|
||||
onPressJoin();
|
||||
}
|
||||
|
||||
function InviteDetailsOnPress_92511() { // fn#92511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:5203, owner: InviteDetails.onPress, offset: 0x0208d5c8, size: 119 bytes, params: 1, frame: 18
|
||||
const binding = env0_3;
|
||||
const DECLINE = env1_19.DECLINE;
|
||||
const value3 = undefined;
|
||||
binding(DECLINE);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const INVITE_ACCEPT_DISMISSED = AnalyticEvents.INVITE_ACCEPT_DISMISSED;
|
||||
const inviteBinding = invite;
|
||||
const guild = inviteBinding.guild;
|
||||
Reflect.apply(track, defaultImport, [INVITE_ACCEPT_DISMISSED, {invite_code: inviteBinding.code,
|
||||
guild_id: guild == null ? value3 : guild.id}]);
|
||||
onPressClose();
|
||||
return value3;
|
||||
}
|
||||
|
||||
function InviteDetailsUsernameHook() { // fn#92514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12221:6125, owner: InviteDetails.usernameHook, offset: 0x0208d652, size: 86 bytes, params: 1, frame: 15
|
||||
const currentUserBinding = currentUser;
|
||||
const username = currentUserBinding.username;
|
||||
const hasUniqueUsername2 = currentUserBinding.hasUniqueUsername();
|
||||
const value2 = '';
|
||||
return value2 + username + (hasUniqueUsername2 ? value2 : '#' + currentUser.discriminator);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
/* Metro module 12037; source: modules/accept_invite/native/InviteError.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4002, 4048, 12038, 12039, 10545, 1244, 4573, 4578, 1423, 1305, 10544, 6819, 6766, 1948, 2] */
|
||||
function _fun92520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:6, offset: 0x0208d9b3, size: 483 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_5 = value.AbortCodes;
|
||||
const env0_6 = value.HelpdeskArticles;
|
||||
const env0_7 = value.InviteStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.Fragment;
|
||||
const env0_10 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {expiredImage: {'marginTop': 32, 'marginBottom': 32}, expiredTitle: {'marginBottom': 8,
|
||||
'backgroundColor': 'transparent', 'textAlign': 'center'}, expiredBody: {'backgroundColor': 'transparent',
|
||||
'marginBottom': 24}, disabledView: {'justifyContent': 'center', 'alignItems': 'center'}};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
|
||||
object2.disabledPauseIcon = {'position': 'absolute', 'alignSelf': 'center', 'tintColor': null, 'width': 42,
|
||||
'height': 42, tintColor: WHITE};
|
||||
const object4 = {'borderRadius': null, 'opacity': 0.2, 'zIndex': -999};
|
||||
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.guildIcon = object4;
|
||||
object2.disabledTitle = {'marginTop': 16, 'marginBottom': 8, 'textAlign': 'center'};
|
||||
object2.disabledBody = {'textAlign': 'center', 'marginBottom': 16};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteError.tsx');
|
||||
exports.default = InviteError;
|
||||
}
|
||||
|
||||
function InviteErrorBase({invite, onPressClose, inviteError}) { // fn#92521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:791, offset: 0x0208db96, size: 698 bytes, params: 2, frame: 28
|
||||
const intl = require(dependencyMap[11]).intl;
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(require(dependencyMap[6]).isThemeDark(importDefault(dependencyMap[7])()) ? dependencyMap[8] : dependencyMap[9]);
|
||||
const descriptiveInviteError = require(dependencyMap[10]).getDescriptiveInviteError(inviteError?.code);
|
||||
const state = invite.state;
|
||||
const BANNED = InviteStates.BANNED;
|
||||
const r10 = state === BANNED ? intl.string(require(dependencyMap[11]).t['GzD/aa']) : descriptiveInviteError?.description ?? intl.string(require(dependencyMap[11]).t.FWkU6P);
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const items2 = [<Image style={styles.expiredImage} source={defaultImport} />];
|
||||
const Text = require(dependencyMap[12]).Text;
|
||||
items2[1] = <Text style={styles.expiredTitle} variant="heading-xl/extrabold" color="mobile-text-heading-primary">{descriptiveInviteError?.title ?? intl.string(require(dependencyMap[11]).t.u9zxnX)}</Text>;
|
||||
items2[2] = <Text style={styles.expiredBody} variant="text-sm/medium" color="text-default">{r10}</Text>;
|
||||
const Button = require(dependencyMap[13]).Button;
|
||||
items2[3] = <Button variant="primary" size="lg" text={intl.string(require(dependencyMap[11]).t.wcqOoF)} onPress={function() {
|
||||
onPressClose();
|
||||
}} />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteDisabledError({invite, onPressClose}) { // fn#92523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:1621, offset: 0x0208de50, size: 668 bytes, params: 2, frame: 30
|
||||
const styles = useStyles();
|
||||
const guild = invite.guild;
|
||||
if (guild == null) {
|
||||
return null;
|
||||
}
|
||||
const guildIconURL = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: guild.id,
|
||||
icon: guild.icon, size: 64, canAnimate: false});
|
||||
const jsxRuntimeEnv0_9Binding = jsxRuntimeEnv0_9;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const icon = <Icon style={styles.disabledPauseIcon} source={importDefault(10544) /* metro dependency 10544 */} />;
|
||||
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
|
||||
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
|
||||
const XLARGE = GuildIconSizes.XLARGE;
|
||||
const items2 = [<View style={styles.disabledView}>{icon}<GuildIcon style={styles.guildIcon} icon={guildIconURL} size={XLARGE} /></View>];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[1] = <Text style={styles.disabledTitle} variant="heading-xl/semibold" color="text-feedback-critical">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jlLX2Z)}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const RXSeLl = (require(1244) /* metro dependency 1244: indexNative */).t.RXSeLl;
|
||||
const defaultImport3 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport3.getArticleURL;
|
||||
const INVITE_DISABLED = HelpdeskArticles.INVITE_DISABLED;
|
||||
items2[2] = <TextWithIOSLinkWorkaround style={styles.disabledBody} variant="text-md/normal" color="text-default">{Reflect.apply(format,
|
||||
intl, [RXSeLl, {articleLink: Reflect.apply(getArticleURL, defaultImport3,
|
||||
[INVITE_DISABLED])}])}</TextWithIOSLinkWorkaround>;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items2[3] = <Button variant="primary" size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['yD/zkn'])} onPress={function() {
|
||||
onPressClose();
|
||||
}} />;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function InviteError(a0) { // fn#92525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12223:2597, offset: 0x0208e0ec, size: 130 bytes, params: 2, frame: 15
|
||||
const inviteError = a0.inviteError;
|
||||
return inviteError == null ? <InviteErrorBase {...a0} /> : inviteError.code === AbortCodes.INVITES_DISABLED ? <InviteDisabledError {...a0} /> : <InviteErrorBase {...a0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,83 @@
|
||||
/* Metro module 12036; source: modules/accept_invite/native/InviteRolesList.tsx; dependencies: [31, 27, 33, 4501, 1940, 4572, 4573, 1244, 11428, 2] */
|
||||
function _fun92515(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:6, offset: 0x0208d6a8, size: 219 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 value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({rolesRow: {'flexDirection': 'row',
|
||||
'flexWrap': 'wrap', 'justifyContent': 'center', 'gap': 4}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/InviteRolesList.tsx');
|
||||
exports.default = InviteRolesList;
|
||||
}
|
||||
|
||||
function InviteRolesList({invite, style}) { // fn#92516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:343, offset: 0x0208d783, size: 315 bytes, params: 2, frame: 26
|
||||
var r0;
|
||||
var Stack;
|
||||
var Text;
|
||||
var intl;
|
||||
const styles = useStyles();
|
||||
const guild = invite.guild;
|
||||
const roles = invite.roles;
|
||||
const binding = env0_3;
|
||||
const useMemo = binding.useMemo;
|
||||
let object = [guild, roles];
|
||||
const value2 = Reflect.apply(useMemo, binding, [_fun92517, object]);
|
||||
if (guild == null) {
|
||||
r0 = null;
|
||||
} else if (value2.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
object = {spacing: 4, style: style};
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <Stack {...object}><Text variant="text-sm/semibold" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.stcSfI)}</Text><View style={styles.rolesRow}>{value2.map(_fun92519)}</View></Stack>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun92517() { // fn#92517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:431, offset: 0x0208d8be, size: 122 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
var r0;
|
||||
var rolesBinding;
|
||||
var items2;
|
||||
var sort;
|
||||
var value;
|
||||
if (guild == null) {
|
||||
r0 = [];
|
||||
} else {
|
||||
rolesBinding = roles;
|
||||
if (rolesBinding == null) {
|
||||
r0 = [];
|
||||
} else if (roles.length === 0) {
|
||||
r0 = [];
|
||||
} else {
|
||||
rolesBinding = roles;
|
||||
items2 = [];
|
||||
arraySpread(items2, rolesBinding, 0, undefined);
|
||||
sort = items2.sort;
|
||||
value = environment.__proto__;
|
||||
value = Reflect.apply(sort, items2,
|
||||
[(require(1940) /* metro dependency 1940: GuildRoleUtils */).sortInviteRoles]);
|
||||
value = value.map(_fun92518);
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun92519(a0) { // fn#92519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:794, offset: 0x0208d96e, size: 69 bytes, params: 2, frame: 16
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component role={a0} guildId={guild.id} key={a0.id} />)(importDefault(11428) /* metro dependency 11428: RolePill */);
|
||||
}
|
||||
|
||||
function _fun92518(a0) { // fn#92518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12222:511, offset: 0x0208d938, size: 54 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = require(1940) /* metro dependency 1940: GuildRoleUtils */;
|
||||
return value.inviteRoleToDisplayData(guild.id, a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
/* Metro module 9005; source: modules/accept_invite/native/JoinServer.tsx; dependencies: [31, 27, 9006, 33, 4501, 697, 4573, 1244, 5463, 1484, 1478, 8967, 4578, 2] */
|
||||
function _fun70070(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:6, offset: 0x01cecec1, size: 572 bytes, params: 8, frame: 25
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const closure = OrSeparator;
|
||||
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;
|
||||
value = require(9006) /* metro dependency 9006: CreateGuildConstants */;
|
||||
const env0_6 = value.CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT;
|
||||
const env0_7 = value.CreateGuildModalStates;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_8 = value.jsx;
|
||||
const env0_9 = value.jsxs;
|
||||
const env0_10 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
object2.growSpacing = {flexGrow: 2, minHeight: PX_24};
|
||||
const object5 = {flexGrow: 2};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingHorizontal = PX_16;
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object5.paddingBottom = PX_16;
|
||||
object2.container = object5;
|
||||
const object6 = {};
|
||||
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
|
||||
object2.textInput = object6;
|
||||
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
object2.innerSeparator = {'height': 1, 'flexGrow': 2, backgroundColor: BORDER_SUBTLE};
|
||||
object2.separator = {'paddingVertical': 12, 'flexDirection': 'row', 'justifyContent': 'center',
|
||||
'alignItems': 'center'};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object2.orText = {'textAlign': 'center', 'marginHorizontal': null, 'textTransform': 'uppercase',
|
||||
marginHorizontal: PX_8};
|
||||
object2.header = {textAlign: 'center'};
|
||||
object2.description = {'textAlign': 'center', 'marginTop': 8, 'marginBottom': 32};
|
||||
object2.exampleText = {marginTop: 8};
|
||||
const env0_11 = Reflect.apply(createStyles, value, [object2]);
|
||||
const env0_13 = ['https://discord.gg/hTKzmak', 'hTKzmak', 'https://discord.gg/wumpus-friends'][0];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/JoinServer.tsx');
|
||||
exports.default = JoinServer;
|
||||
exports.OrSeparator = closure;
|
||||
}
|
||||
|
||||
function OrSeparator() { // fn#70071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:944, offset: 0x01ced0fd, size: 227 bytes, params: 1, frame: 24
|
||||
const styles = useStyles();
|
||||
const items2 = [<View style={styles.innerSeparator} />];
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const HEuagM = (require(1244) /* metro dependency 1244: indexNative */).t.HEuagM;
|
||||
items2[1] = <Text style={styles.orText} variant="text-sm/semibold" color="text-muted">{Reflect.apply(string, intl,
|
||||
[HEuagM])}</Text>;
|
||||
items2[2] = <View style={styles.innerSeparator} />;
|
||||
return (
|
||||
<View style={styles.separator}>
|
||||
{items2}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function JoinServer({error, inviteString, onInviteChange, onDone, submitting}) { // fn#70072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1212, offset: 0x01ced1e0, size: 1291 bytes, params: 2, frame: 39
|
||||
var r8;
|
||||
var jsxRuntimeEnv0_10Binding;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var items2;
|
||||
const styles = useStyles();
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const height = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().height;
|
||||
let binding = env0_3;
|
||||
const value3 = binding.useCallback(_fun70073, [value2]);
|
||||
const items4 = [styles.container];
|
||||
const bottom = insets.bottom;
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
items4[1] = {paddingBottom: bottom + PX_16};
|
||||
if (height <= CREATE_GUILD_SMALL_SCREEN_MAX_HEIGHT) {
|
||||
r8 = null;
|
||||
} else {
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
string = intl.string;
|
||||
items2 = [<Text style={styles.header} accessibilityRole="header" variant="heading-xl/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
||||
|
||||
intl, [t.jlfuFW])}</Text>];
|
||||
string = intl.string;
|
||||
items2[1] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
|
||||
|
||||
intl, [t.lVvN3A])}</Text>;
|
||||
r8 = <>{items2}</>;
|
||||
}
|
||||
const items3 = [r8];
|
||||
const FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
|
||||
items3[1] = <FreeFormInputGroup label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} error={error} value={inviteString} onChangeText={onInviteChange} placeholder={env0_13} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qreV25)} autoFocus autoCapitalize="none" autoCorrect={false} returnKeyType="join" textStyle={styles.textInput} onSubmitEditing={onDone} />;
|
||||
const format = intl.format;
|
||||
const vwWaTe = (require(1244) /* metro dependency 1244: indexNative */).t.vwWaTe;
|
||||
binding = env0_12;
|
||||
items3[2] = <Text style={styles.exampleText} variant="text-sm/medium" color="text-muted">{Reflect.apply(format,
|
||||
intl, [vwWaTe, {example1: binding[0], example2: binding[1], example3: binding[2],
|
||||
exampleHook: exampleHook}])}</Text>;
|
||||
const view = <View>{items3}</View>;
|
||||
jsxRuntimeEnv0_10Binding = jsxRuntimeEnv0_10;
|
||||
const items5 = [<View style={styles.growSpacing} />];
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
items5[1] = <Button size="lg" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+H/coT'])} loading={submitting} disabled={submitting} onPress={onDone} />;
|
||||
items5[2] = <OrSeparator />;
|
||||
items5[3] = <Button size="lg" variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MOqX/G'])} onPress={value3} />;
|
||||
return (
|
||||
<ScrollView keyboardShouldPersistTaps="handled" contentContainerStyle={items4}>
|
||||
{view}
|
||||
<>
|
||||
{items5}
|
||||
</>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun70073() { // fn#70073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:1389, offset: 0x01ced6eb, size: 34 bytes, params: 1, frame: 11
|
||||
const binding = env0_0;
|
||||
const push = binding.push;
|
||||
const JOIN_STUDENT_HUB = CreateGuildModalStates.JOIN_STUDENT_HUB;
|
||||
Reflect.apply(push, binding, [JOIN_STUDENT_HUB]);
|
||||
}
|
||||
|
||||
function exampleHook(a0, a1) { // fn#70074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9190:2362, owner: JoinServer.exampleHook, offset: 0x01ced70d, size: 67 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
variant="text-sm/medium"
|
||||
color="text-default"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/* Metro module 15651; source: modules/accept_invite/native/components/AcceptInviteModal.tsx; dependencies: [31, 9006, 33, 480, 4098, 12033, 10010, 5280, 2] */
|
||||
function _fun119971(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:6, offset: 0x0251cdd1, size: 164 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 env0_4 = (require(9006) /* metro dependency 9006: CreateGuildConstants */).CreateGuildModalStates;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/accept_invite/native/components/AcceptInviteModal.tsx');
|
||||
exports.default = AcceptInviteModal;
|
||||
}
|
||||
|
||||
function AcceptInviteModal(a0) { // fn#119972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:258, offset: 0x0251ce75, size: 126 bytes, params: 2, frame: 19
|
||||
const env0_0 = a0;
|
||||
const binding = env0_3;
|
||||
binding.useEffect(function() {
|
||||
return _fun119974;
|
||||
}, []);
|
||||
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
|
||||
const navigatorProps = {screens: binding.useMemo(_fun119975, [a0])};
|
||||
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
|
||||
navigatorProps.initialRouteName = ACCEPT_INVITE;
|
||||
return <Navigator {...navigatorProps} />;
|
||||
}
|
||||
|
||||
function _fun119973() { // fn#119973, offset: 0x0251cef3, size: 11 bytes, params: 1, frame: 1
|
||||
return function() {
|
||||
};
|
||||
}
|
||||
|
||||
function _fun119975() { // fn#119975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:364, offset: 0x0251cefe, size: 25 bytes, params: 1, frame: 11
|
||||
return getScreens_119976(env0_0);
|
||||
}
|
||||
|
||||
function getScreens_119976(a0) { // fn#119976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:368, offset: 0x0251cf17, size: 149 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const ACCEPT_INVITE = CreateGuildModalStates.ACCEPT_INVITE;
|
||||
const object = {'fullscreen': true, 'headerShown': false};
|
||||
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
|
||||
const INVITE_ACCEPT = ImpressionNames.INVITE_ACCEPT;
|
||||
object.impressionName = INVITE_ACCEPT;
|
||||
const object4 = {};
|
||||
object4.deeplink_attempt_id = a0.deeplinkAttemptId;
|
||||
value = require(4098) /* metro dependency 4098: InviteCodeUtils */;
|
||||
object4.invite_code = value.parseInviteCodeFromInviteKey(a0.code);
|
||||
object.impressionProperties = object4;
|
||||
object.render = render_119977;
|
||||
return {[ACCEPT_INVITE]: object};
|
||||
}
|
||||
|
||||
function getScreens_119976Render() { // fn#119977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15859:626, owner: getScreens_119976.render, offset: 0x0251cfac, size: 84 bytes, params: 1, frame: 16
|
||||
const AcceptInviteContainer = importDefault(12033) /* metro dependency 12033: AcceptInviteContainer */;
|
||||
const defaultImportProps = {...env0_0};
|
||||
defaultImportProps['onPressClose'] = (require(10010) /* metro dependency 10010: DisplayedInviteActionCreators */).clearDisplayedInvite;
|
||||
return <AcceptInviteContainer {...defaultImportProps} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user