/* 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] */ import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */ import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */ import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */ import UserProfileStore from './UserProfileStore.tsx'; /* Metro dependency 5189 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */ import * as ComponentDispatchUtilsModule from '../../utils/ComponentDispatchUtils.tsx'; /* Metro dependency 1239 */ import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as PremiumConstantsModule from '../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */ import * as SharedModule from '../../design/shared.tsx'; /* Metro dependency 4002 */ 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}); let value = UserProfileStore; const QueryIds = ConstantsModule.QueryIds; 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(); }}]); (FileImportTrackerModule).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 Module00005(_fun60989).apply(this, arguments); 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 object; 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 object2; 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 { object = {}; } catch (error) { break exceptionLanding100; } try { object.type = 'USER_PROFILE_UPDATE_START'; } catch (error) { break exceptionLanding100; } try { object.userId = id; } catch (error) { break exceptionLanding100; } try { object.guildId = a1; } catch (error) { break exceptionLanding100; } try { Reflect.apply(dispatch, value9, [object]); } catch (error) { break exceptionLanding100; } try { value10 = a1 != null; } catch (error) { break exceptionLanding100; } if (value10) { try { object = {}; } 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 { object.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 { object.bannerSurface = USER_GUILD_PROFILE_BANNER; } catch (error) { break exceptionLanding100; } r6 = object; } else { try { object = {}; } 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 { object.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 { object.bannerSurface = USER_DEFAULT_PROFILE_BANNER; } catch (error) { break exceptionLanding100; } r6 = object; } 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 { object = {}; } catch (error) { break exceptionLanding100; } try { object.url = url; } catch (error) { break exceptionLanding100; } try { object.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 { object2 = {}; } catch (error) { break exceptionLanding100; } try { object2[bannerSurface] = a2; } catch (error) { break exceptionLanding100; } try { headersForMd5 = Reflect.apply(buildHeadersForMd5, value16, [object2]); } catch (error) { break exceptionLanding100; } try { object.headers = headersForMd5; } catch (error) { break exceptionLanding100; } try { object.oldFormErrors = true; } catch (error) { break exceptionLanding100; } try { object.rejectWithError = false; } catch (error) { break exceptionLanding100; } try { value17 = Reflect.apply(patch, HTTP, [object]); } 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 { object = {}; } catch (error) { break exceptionLanding100; } try { object.type = 'USER_PROFILE_UPDATE_SUCCESS'; } catch (error) { break exceptionLanding100; } try { object.userId = id; } catch (error) { break exceptionLanding100; } try { object.guildId = a1; } catch (error) { break exceptionLanding100; } try { body = value18.body; } catch (error) { break exceptionLanding100; } try { copyDataProperties(object, body, bannerSurface); } catch (error) { break exceptionLanding100; } try { Reflect.apply(dispatch, value20, [object]); } 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 _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 Module00005(_fun60993).apply(this, arguments); 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 object; 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 { object = {}; } 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 { object.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 { object.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, [object]); } 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 { object = {}; } 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 { object.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 { object.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, [object]); } 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; } } } } 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 = (ComponentDispatchUtilsModule).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 = (SharedModule).AccessibilityAnnouncer; const announce = AccessibilityAnnouncer.announce; const intl = (IndexNativeModule).intl; const string = intl.string; const t = (IndexNativeModule).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 (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 (Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_CHANGES'}); } } global.__d(_fun60985, 7613, [5, 1878, 5189, 661, 1880, 1239, 4002, 1244, 683, 7614, 7076, 694, 7615, 507, 7618, 4131, 1216, 566, 2]) /* metro module 7613, dependencies: [5, 1878, 5189, 661, 1880, 1239, 4002, 1244, 683, 7614, 7076, 694, 7615, 507, 7618, 4131, 1216, 566, 2] */;