Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,928 @@
|
||||
/* Metro module 7613; source: modules/user_profile/UserProfileActionCreators.tsx; dependencies: [5, 1878, 5189, 661, 1880, 1239, 4002, 1244, 683, 7614, 7076, 694, 7615, 507, 7618, 4131, 1216, 566, 2] */
|
||||
function _fun60985(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:6, offset: 0x01717307, size: 473 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const trackTryOutFeature = function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[8]);
|
||||
var PREMIUM_FEATURE_TRY_OUT = AnalyticEvents.PREMIUM_FEATURE_TRY_OUT;
|
||||
defaultImport.track(PREMIUM_FEATURE_TRY_OUT, {feature_name: a0,
|
||||
feature_tier: AnalyticsPremiumFeatureTiers.PREMIUM_STANDARD});
|
||||
};
|
||||
const closure = function() {
|
||||
return _fetchApplicationWidgetConfigs.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = importDefault(5189) /* metro dependency 5189: UserProfileStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_6 = constantsModule.ComponentActions;
|
||||
const env0_7 = constantsModule.AnalyticEvents;
|
||||
const env0_8 = constantsModule.Endpoints;
|
||||
const env0_9 = constantsModule.ME;
|
||||
const QueryIds = constantsModule.QueryIds;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_10 = premiumConstantsModule.AnalyticsPremiumFeatureTiers;
|
||||
const env0_11 = premiumConstantsModule.AnalyticsPremiumFeatureNames;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const createFetchStore = fluxModule.createFetchStore;
|
||||
const APPLICATION_WIDGET_APPLICATION_CONFIGS = QueryIds.APPLICATION_WIDGET_APPLICATION_CONFIGS;
|
||||
value = Reflect.apply(createFetchStore, fluxModule, [value, {getQueryId: APPLICATION_WIDGET_APPLICATION_CONFIGS,
|
||||
get: function() {
|
||||
return UserProfileStore.applicationWidgetConfigs;
|
||||
}, load: function() {
|
||||
return fetchApplicationWidgetConfigs();
|
||||
}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_profile/UserProfileActionCreators.tsx');
|
||||
exports.notifyUnsavedUserProfileChangesInModal = notifyUnsavedUserProfileChangesInModal;
|
||||
exports.saveProfileChanges = function() {
|
||||
return _saveProfileChanges.apply(this, arguments);
|
||||
};
|
||||
exports.pinUserProfileBadgesOnClient = pinUserProfileBadgesOnClient;
|
||||
exports.resetPendingProfileChanges = resetPendingProfileChanges;
|
||||
exports.resetAllPendingChanges = resetAllPendingChanges;
|
||||
exports.setTryItOutAvatar = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_AVATAR', avatar: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.ANIMATED_AVATAR);
|
||||
};
|
||||
exports.setTryItOutAvatarDecoration = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_AVATAR_DECORATION',
|
||||
avatarDecoration: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.AVATAR_DECORATION);
|
||||
};
|
||||
exports.setTryItOutProfileEffect = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_PROFILE_EFFECT',
|
||||
profileEffect: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.PROFILE_EFFECT);
|
||||
};
|
||||
exports.setTryItOutBanner = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_BANNER', banner: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.PROFILE_BANNER);
|
||||
};
|
||||
exports.setTryItOutThemeColors = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_THEME_COLORS',
|
||||
themeColors: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.PROFILE_THEME_COLOR);
|
||||
};
|
||||
exports.setTryItOutDisplayNameStyles = function(a0) {
|
||||
importDefault(dependencyMap[11]).dispatch({type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_DISPLAY_NAME_STYLES',
|
||||
displayNameStyles: a0});
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.DISPLAY_NAME_STYLES);
|
||||
};
|
||||
exports.setTryItOutPreset = function(a0) {
|
||||
var defaultImport = importDefault(dependencyMap[11]);
|
||||
var object = {type: 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_PRESET'};
|
||||
copyDataProperties(object, a0, 'USER_PROFILE_SETTINGS_SET_TRY_IT_OUT_PRESET');
|
||||
defaultImport.dispatch(object);
|
||||
trackTryOutFeature(AnalyticsPremiumFeatureNames.PRESET);
|
||||
};
|
||||
exports.fetchApplicationWidgetConfigs = closure;
|
||||
exports.useApplicationWidgetConfigs = value;
|
||||
}
|
||||
|
||||
function _saveProfileChanges() { // fn#60987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:407, offset: 0x01717529, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun60989).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _fetchApplicationWidgetConfigs() { // fn#60991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:1500, offset: 0x0171781c, size: 48 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun60993).apply(this, arguments);
|
||||
}
|
||||
|
||||
function notifyUnsavedUserProfileChangesInModal() { // fn#60996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:2437, offset: 0x0171799f, size: 238 bytes, params: 1, frame: 19
|
||||
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
||||
let dispatch = ComponentDispatch.dispatch;
|
||||
const SHAKE_PROFILE_MODAL = ComponentActions.SHAKE_PROFILE_MODAL;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [SHAKE_PROFILE_MODAL]);
|
||||
dispatch = ComponentDispatch.dispatch;
|
||||
const EMPHASIZE_NOTICE = ComponentActions.EMPHASIZE_NOTICE;
|
||||
Reflect.apply(dispatch, ComponentDispatch, [EMPHASIZE_NOTICE]);
|
||||
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const GP7JLE = t.GP7JLE;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, ['' + Reflect.apply(string, intl,
|
||||
[GP7JLE]) + ' ' + intl.string(t.gKoO1D)]);
|
||||
}
|
||||
|
||||
function pinUserProfileBadgesOnClient(a0, a1) { // fn#60998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:2858, offset: 0x01717a8d, size: 102 bytes, params: 3, frame: 14
|
||||
var value;
|
||||
const currentUser = UserStore.getCurrentUser();
|
||||
const value3 = undefined;
|
||||
const id = currentUser == null ? value3 : currentUser.id;
|
||||
if (id != null) {
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'USER_PROFILE_PIN_BADGES_ON_CLIENT', badges: a0, ttlInSeconds: a1, userId: id});
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function resetPendingProfileChanges() { // fn#60999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:3084, offset: 0x01717af3, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_PROFILE_CHANGES'});
|
||||
}
|
||||
|
||||
function resetAllPendingChanges() { // fn#61000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:3228, offset: 0x01717b24, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_CHANGES'});
|
||||
}
|
||||
|
||||
function* _fun60989(a0, a1, a2) { // fn#60989, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:468, offset: 0x01717562, size: 698 bytes, params: 4, frame: 27
|
||||
var id;
|
||||
var r6;
|
||||
var body;
|
||||
var value;
|
||||
var value2;
|
||||
var value3;
|
||||
var binding;
|
||||
var getCurrentUser;
|
||||
var value4;
|
||||
var value5;
|
||||
var getShouldConvertBioEmoji;
|
||||
var value6;
|
||||
var bio;
|
||||
var value7;
|
||||
var value8;
|
||||
var parse;
|
||||
var content;
|
||||
var binding2;
|
||||
var property;
|
||||
var value9;
|
||||
var dispatch;
|
||||
var object3;
|
||||
var value10;
|
||||
var USER_PROFILE;
|
||||
var binding3;
|
||||
var value11;
|
||||
var binding4;
|
||||
var value12;
|
||||
var SafetyScannedUploadSurface;
|
||||
var USER_DEFAULT_PROFILE_BANNER;
|
||||
var USER_GUILD_PROFILE;
|
||||
var binding5;
|
||||
var value13;
|
||||
var binding6;
|
||||
var value14;
|
||||
var USER_GUILD_PROFILE_BANNER;
|
||||
var url;
|
||||
var bannerSurface;
|
||||
var binding7;
|
||||
var value15;
|
||||
var HTTP;
|
||||
var patch;
|
||||
var value16;
|
||||
var buildHeadersForMd5;
|
||||
var object4;
|
||||
var headersForMd5;
|
||||
var value17;
|
||||
var value18;
|
||||
var value19;
|
||||
var binding8;
|
||||
var value20;
|
||||
var error;
|
||||
var APIError;
|
||||
var prototype;
|
||||
var value21;
|
||||
var aPIError;
|
||||
var value22;
|
||||
exceptionSkip100: while (true) {
|
||||
exceptionLanding100: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
value = undefined;
|
||||
value3 = environment.__proto__.__proto__;
|
||||
binding = env2_4;
|
||||
getCurrentUser = binding.getCurrentUser;
|
||||
value4 = Reflect.apply(getCurrentUser, binding, []);
|
||||
id = value4 == null ? value : value4.id;
|
||||
if (id != null) {
|
||||
binding = env2_0;
|
||||
value5 = binding(env2_2[9]);
|
||||
getShouldConvertBioEmoji = value5.getShouldConvertBioEmoji;
|
||||
value6 = Reflect.apply(getShouldConvertBioEmoji, value5, []);
|
||||
bio = a0.bio;
|
||||
value7 = bio != null;
|
||||
r6 = value7 && value6;
|
||||
if (r6) {
|
||||
binding = env2_1;
|
||||
value8 = binding(env2_2[10]);
|
||||
parse = value8.parse;
|
||||
bio = a0.bio;
|
||||
content = Reflect.apply(parse, value8, [value, bio]).content;
|
||||
a0.bio = content;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding2[11];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
dispatch = value9.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.type = 'USER_PROFILE_UPDATE_START';
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.userId = id;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.guildId = a1;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value9, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value10 = a1 != null;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
if (value10) {
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
USER_GUILD_PROFILE = binding.USER_GUILD_PROFILE;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding5 = env2_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value13 = Reflect.apply(USER_GUILD_PROFILE, binding, [a1, binding5]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.url = value13;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding6 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding6[12];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value14 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
SafetyScannedUploadSurface = value14.SafetyScannedUploadSurface;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
USER_GUILD_PROFILE_BANNER = SafetyScannedUploadSurface.USER_GUILD_PROFILE_BANNER;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.bannerSurface = USER_GUILD_PROFILE_BANNER;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
r6 = object3;
|
||||
} else {
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
USER_PROFILE = binding.USER_PROFILE;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_9;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value11 = Reflect.apply(USER_PROFILE, binding, [binding3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.url = value11;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding4[12];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value12 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
SafetyScannedUploadSurface = value12.SafetyScannedUploadSurface;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
USER_DEFAULT_PROFILE_BANNER = SafetyScannedUploadSurface.USER_DEFAULT_PROFILE_BANNER;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.bannerSurface = USER_DEFAULT_PROFILE_BANNER;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
r6 = object3;
|
||||
}
|
||||
try {
|
||||
url = r6.url;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
bannerSurface = r6.bannerSurface;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding7 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding7[13];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value15 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
HTTP = value15.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
patch = HTTP.patch;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.url = url;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.body = a0;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding7[14];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value16 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
buildHeadersForMd5 = value16.buildHeadersForMd5;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object4[bannerSurface] = a2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
headersForMd5 = Reflect.apply(buildHeadersForMd5, value16, [object4]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.headers = headersForMd5;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.oldFormErrors = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.rejectWithError = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value17 = Reflect.apply(patch, HTTP, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
yield value17;
|
||||
try {
|
||||
value18 = undefined;
|
||||
value19 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
if (value19) {
|
||||
return value18;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
binding8 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
property = binding8[11];
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
value20 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
dispatch = value20.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.type = 'USER_PROFILE_UPDATE_SUCCESS';
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.userId = id;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
object3.guildId = a1;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
body = value18.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
copyDataProperties(object3, body, bannerSurface);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value20, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding100;
|
||||
}
|
||||
return value18;
|
||||
}
|
||||
return value;
|
||||
break exceptionSkip100;
|
||||
}
|
||||
binding = env2_0;
|
||||
APIError = binding(env2_2[15]).APIError;
|
||||
prototype = APIError.prototype;
|
||||
value21 = Object.create(prototype, {constructor: {value: APIError}});
|
||||
aPIError = new APIError();
|
||||
value22 = aPIError instanceof Object ? aPIError : value21;
|
||||
if (error == null) {
|
||||
body = value;
|
||||
if (body != null) {
|
||||
r6 = body;
|
||||
value = env2_1(env2_2[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_UPDATE_FAILURE', guildId: a1, errors: r6, apiError: value22});
|
||||
return error;
|
||||
}
|
||||
value = env2_1(env2_2[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_UPDATE_FAILURE', guildId: a1, errors: {}, apiError: value22});
|
||||
return error;
|
||||
}
|
||||
body = error.body;
|
||||
if (body != null) {
|
||||
r6 = body;
|
||||
value = env2_1(env2_2[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_UPDATE_FAILURE', guildId: a1, errors: r6, apiError: value22});
|
||||
return error;
|
||||
}
|
||||
binding = env2_1;
|
||||
value = binding(env2_2[11]);
|
||||
dispatch = value.dispatch;
|
||||
Reflect.apply(dispatch, value, [{type: 'USER_PROFILE_UPDATE_FAILURE', guildId: a1, errors: {},
|
||||
apiError: value22}]);
|
||||
return error;
|
||||
break exceptionSkip100;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun60993() { // fn#60993, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7791:1583, offset: 0x01717855, size: 300 bytes, params: 1, frame: 17
|
||||
var binding;
|
||||
var dispatch;
|
||||
var object2;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var HTTP;
|
||||
var get;
|
||||
var USER_PROFILE_APPLICATION_WIDGET_APPLICATION_IDS;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var binding3;
|
||||
var value8;
|
||||
var body;
|
||||
var application_configs;
|
||||
var error;
|
||||
var binding4;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
if (env2_5.applicationWidgetConfigs == null) {
|
||||
binding = env2_1;
|
||||
binding(env2_2[11]).dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_START'});
|
||||
} else {
|
||||
if (env2_5.applicationWidgetConfigs.length > 0) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_1;
|
||||
binding(env2_2[11]).dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_START'});
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[13];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
HTTP = value4.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
USER_PROFILE_APPLICATION_WIDGET_APPLICATION_IDS = binding.USER_PROFILE_APPLICATION_WIDGET_APPLICATION_IDS;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.url = USER_PROFILE_APPLICATION_WIDGET_APPLICATION_IDS;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.rejectWithError = true;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(get, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[11];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value8 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
dispatch = value8.dispatch;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.type = 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_SUCCESS';
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
body = value6.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
application_configs = body.application_configs;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
object2.applicationConfigs = application_configs;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value8, [object2]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
binding4 = env2_2;
|
||||
value = binding(binding4[11]);
|
||||
value.dispatch({type: 'USER_PROFILE_APPLICATION_WIDGET_CONFIGS_FETCH_FAILURE'});
|
||||
value = binding(binding4[16]);
|
||||
value.captureException(error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user