This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+1725457 -1644178

No files matched your search

+16269 -16063
View File
File diff suppressed because it is too large. Load diff
+1156 -148746
View File
File diff suppressed because it is too large. Load diff
+1335 -1321
View File
File diff suppressed because it is too large. Load diff
+30 -27
View File
@@ -1,36 +1,38 @@
/* Metro module 676; source: ConstantsIOS.tsx; dependencies: [2] */ /* Metro module 676; source: ConstantsIOS.tsx; dependencies: [2] */
import * as FileImportTrackerModule from './by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun8267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:783:6, offset: 0x00d3c772, size: 2688 bytes, params: 8, frame: 38 function _fun8267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:783:6, offset: 0x00d3c772, size: 2688 bytes, params: 8, frame: 38
let Object = global.Object; let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const object = {SAFARI: 0}; const object5 = {SAFARI: 0};
object[0] = 'SAFARI'; object5[0] = 'SAFARI';
object.IN_APP = 1; object5.IN_APP = 1;
object[1] = 'IN_APP'; object5[1] = 'IN_APP';
object.CHROME = 2; object5.CHROME = 2;
object[2] = 'CHROME'; object5[2] = 'CHROME';
const Set = global.Set; const Set = global.Set;
const set = new Set(['token', 'fingerprint']); const set = new Set(['token', 'fingerprint']);
Object = global.Object; Object = global.Object;
const value2 = Object.freeze({START: {'x': 0, 'y': 0}, END: {'x': 1, 'y': 0}}); const value2 = Object.freeze({START: {'x': 0, 'y': 0}, END: {'x': 1, 'y': 0}});
Object = global.Object; Object = global.Object;
const value3 = Object.freeze({START: {'x': 0, 'y': 0}, END: {'x': 0, 'y': 1}}); const value3 = Object.freeze({START: {'x': 0, 'y': 0}, END: {'x': 0, 'y': 1}});
const object2 = {HIGH: 0.6}; const object6 = {HIGH: 0.6};
object2[0.6] = 'HIGH'; object6[0.6] = 'HIGH';
object2.LOW = 0.3; object6.LOW = 0.3;
object2[0.3] = 'LOW'; object6[0.3] = 'LOW';
const object3 = {IMAGE: 0}; const object7 = {IMAGE: 0};
object3[0] = 'IMAGE'; object7[0] = 'IMAGE';
object3.GIF = 1; object7.GIF = 1;
object3[1] = 'GIF'; object7[1] = 'GIF';
object3.VIDEO = 2; object7.VIDEO = 2;
object3[2] = 'VIDEO'; object7[2] = 'VIDEO';
const object4 = {ROW: 0}; const object8 = {ROW: 0};
object4[0] = 'ROW'; object8[0] = 'ROW';
object4.HEADER = 1; object8.HEADER = 1;
object4[1] = 'HEADER'; object8[1] = 'HEADER';
object4.FOOTER = 2; object8.FOOTER = 2;
object4[2] = 'FOOTER'; object8[2] = 'FOOTER';
(require(2) /* metro dependency 2 */).fileFinishedImporting('ConstantsIOS.tsx'); (FileImportTrackerModule).fileFinishedImporting('ConstantsIOS.tsx');
exports.DrawerSourceTypes = {BACK_BUTTON: 'Back Button', SWIPE: 'Swipe', MUTUAL_GUILD_ITEM: 'Mutual Guild Item', exports.DrawerSourceTypes = {BACK_BUTTON: 'Back Button', SWIPE: 'Swipe', MUTUAL_GUILD_ITEM: 'Mutual Guild Item',
MEMBER_LIST_ICON: 'Member List Icon', CHANNEL_DRAWER_ICON: 'Channel Drawer Icon', MEMBER_LIST_ICON: 'Member List Icon', CHANNEL_DRAWER_ICON: 'Channel Drawer Icon',
CHANNEL_TITLE: 'Channel Title', CHANNEL_TITLE: 'Channel Title',
@@ -44,7 +46,7 @@ function _fun8267(global, require, importDefault, importAll, module, exports, de
EXTERNAL_LINK: 'EXTERNAL_LINK', COMPANION_REMOTE_AUTH: 'COMPANION_REMOTE_AUTH'}; EXTERNAL_LINK: 'EXTERNAL_LINK', COMPANION_REMOTE_AUTH: 'COMPANION_REMOTE_AUTH'};
exports.KeyboardThemes = {DEFAULT: 'default', DARK: 'dark', LIGHT: 'light'}; exports.KeyboardThemes = {DEFAULT: 'default', DARK: 'dark', LIGHT: 'light'};
exports.DiscoverabilityScenes = {LANDING: 'LANDING', NAME: 'NAME'}; exports.DiscoverabilityScenes = {LANDING: 'LANDING', NAME: 'NAME'};
exports.WebBrowserType = object; exports.WebBrowserType = object5;
exports.CaptchaEvent = {SOLVED: 'solved', EXPIRED: 'expired'}; exports.CaptchaEvent = {SOLVED: 'solved', EXPIRED: 'expired'};
exports.VerificationModalScenes = {OVERVIEW: 'OVERVIEW', RESEND_EMAIL: 'RESEND_EMAIL', exports.VerificationModalScenes = {OVERVIEW: 'OVERVIEW', RESEND_EMAIL: 'RESEND_EMAIL',
CONFIRM_EMAIL_CHANGE_START: 'CONFIRM_EMAIL_CHANGE_START', CONFIRM_EMAIL_CHANGE_START: 'CONFIRM_EMAIL_CHANGE_START',
@@ -121,11 +123,11 @@ function _fun8267(global, require, importDefault, importAll, module, exports, de
exports.WEBP_RE_IOS = RegExp('\\.(webp)$', 'i'); exports.WEBP_RE_IOS = RegExp('\\.(webp)$', 'i');
exports.HorizontalGradient = value2; exports.HorizontalGradient = value2;
exports.VerticalGradient = value3; exports.VerticalGradient = value3;
exports.CompressionQuality = object2; exports.CompressionQuality = object6;
exports.USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = 16; exports.USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = 16;
exports.DISCORD_CONNECT_EXAMPLE_APP_DEEPLINK_URI = 'discordconnect://connect'; exports.DISCORD_CONNECT_EXAMPLE_APP_DEEPLINK_URI = 'discordconnect://connect';
exports.DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID = '628735568569696256'; exports.DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID = '628735568569696256';
exports.MediaType = object3; exports.MediaType = object7;
exports.TooltipNames = {GUILD_TOOLTIP: 'guild_tooltip', GIF_PICKER_TOOLTIP: 'gif_picker_tooltip', exports.TooltipNames = {GUILD_TOOLTIP: 'guild_tooltip', GIF_PICKER_TOOLTIP: 'gif_picker_tooltip',
GIF_PICKER_TOOLTIP_SPARKLE: 'gif_picker_tooltip_sparkle', GIF_PICKER_TOOLTIP_SPARKLE: 'gif_picker_tooltip_sparkle',
STICKER_PICKER_SHOP_VIEW_ALL: 'sticker_picker_shop_view_all', STICKER_PICKER_SHOP_VIEW_ALL: 'sticker_picker_shop_view_all',
@@ -140,7 +142,8 @@ function _fun8267(global, require, importDefault, importAll, module, exports, de
exports.CATEGORY_ICON_RIPPLE_CONFIG = {radius: 16}; exports.CATEGORY_ICON_RIPPLE_CONFIG = {radius: 16};
exports.CATEGORY_ICON_SIZE = 24; exports.CATEGORY_ICON_SIZE = 24;
exports.WHITESPACE_RE = RegExp('(\\t|\\s)', ''); exports.WHITESPACE_RE = RegExp('(\\t|\\s)', '');
exports.SectionListElementType = object4; exports.SectionListElementType = object8;
exports.BANNER_HEIGHT = 150; exports.BANNER_HEIGHT = 150;
} }
global.__d(_fun8267, 676, [2]) /* metro module 676, dependencies: [2] */;
+23 -15
View File
@@ -1,25 +1,33 @@
/* Metro module 694; source: Dispatcher.tsx; dependencies: [695, 636, 587, 566, 818, 2] */ /* Metro module 694; source: Dispatcher.tsx; dependencies: [695, 636, 587, 566, 818, 2] */
import AddSentryBreadcrumbNative from './modules/sentry/addSentryBreadcrumb.native.tsx'; /* Metro dependency 818 */
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 StorageModule from './external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as LoggingUtilsModule from './external/discord_common/js/packages/flux/LoggingUtils.tsx'; /* Metro dependency 636 */
import * as ConstantsModule from './modules/devtools/Constants.tsx'; /* Metro dependency 695 */
function _fun8465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:821:6, offset: 0x00d4102f, size: 306 bytes, params: 8, frame: 21 function _fun8465(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:821:6, offset: 0x00d4102f, size: 306 bytes, params: 8, frame: 21
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const STORAGE_KEY_LOG_DISPATCHES = (require(695) /* metro dependency 695: Constants */).STORAGE_KEY_LOG_DISPATCHES; const STORAGE_KEY_LOG_DISPATCHES = (ConstantsModule).STORAGE_KEY_LOG_DISPATCHES;
object2 = {Early: 0}; object = {Early: 0};
object2[0] = 'Early'; object[0] = 'Early';
object2.Database = 1; object.Database = 1;
object2[1] = 'Database'; object[1] = 'Database';
object2.Default = 2; object.Default = 2;
object2[2] = 'Default'; object[2] = 'Default';
const ActionLogger = (require(636) /* metro dependency 636: LoggingUtils */).ActionLogger; const ActionLogger = (LoggingUtilsModule).ActionLogger;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage; const Storage = (StorageModule).Storage;
const value = Storage.get(STORAGE_KEY_LOG_DISPATCHES); const value = Storage.get(STORAGE_KEY_LOG_DISPATCHES);
const actionLogger = new ActionLogger({persist: value != null && value}); const actionLogger = new ActionLogger({persist: value != null && value});
const Dispatcher = (require(566) /* metro dependency 566: flux */).Dispatcher; const Dispatcher = (FluxModule).Dispatcher;
const Default = object2.Default; const Default = object.Default;
const dispatcher = new Dispatcher(Default, actionLogger, const dispatcher = new Dispatcher(Default, actionLogger,
{addBreadcrumb: importDefault(818) /* metro dependency 818: addSentryBreadcrumbNative */}); {addBreadcrumb: AddSentryBreadcrumbNative});
(require(2) /* metro dependency 2 */).fileFinishedImporting('Dispatcher.tsx'); (FileImportTrackerModule).fileFinishedImporting('Dispatcher.tsx');
exports.default = dispatcher; exports.default = dispatcher;
exports.DispatchBand = object2; exports.DispatchBand = object;
} }
global.__d(_fun8465, 694, [695, 636, 587, 566, 818,
2]) /* metro module 694, dependencies: [695, 636, 587, 566, 818, 2] */;
+118 -109
View File
@@ -11,11 +11,9 @@ function _fun34918(global, require, importDefault, importAll, module, exports, d
const env0_1 = ''.concat('https://js.stripe.com', '/').concat('basil', '/stripe.js'); const env0_1 = ''.concat('https://js.stripe.com', '/').concat('basil', '/stripe.js');
const env0_2 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$', ''); const env0_2 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$', '');
const env0_3 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/(v3|[a-z]+)\\/stripe\\.js(\\?.*)?$', ''); const env0_3 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/(v3|[a-z]+)\\/stripe\\.js(\\?.*)?$', '');
const closure = loadStripe; const loadStripe2 = loadStripe;
closure.setLoadParameters = setLoadParameters; loadStripe2.setLoadParameters = setLoadParameters;
exports.loadStripe = closure; exports.loadStripe = loadStripe2;
}
function _typeof_34919(a0) { // fn#34919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:44, offset: 0x01065f15, size: 74 bytes, params: 2, frame: 12 function _typeof_34919(a0) { // fn#34919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:44, offset: 0x01065f15, size: 74 bytes, params: 2, frame: 12
const Symbol = global.Symbol; const Symbol = global.Symbol;
return (typeof Symbol !== 'function' ? function(a0) { return (typeof Symbol !== 'function' ? function(a0) {
@@ -42,7 +40,7 @@ function injectScript(a0) { // fn#34923, source: /ci/build/discord/discord/disco
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.'); throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
} }
function loadScript(a0) { // fn#34924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1100, offset: 0x01066029, size: 83 bytes, params: 2, frame: 13 function loadScript_34924(a0) { // fn#34924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1100, offset: 0x01066029, size: 83 bytes, params: 2, frame: 13
var r0; var r0;
var Promise; var Promise;
var value2; var value2;
@@ -61,87 +59,6 @@ function loadScript(a0) { // fn#34924, source: /ci/build/discord/discord/discord
}); });
} }
return r0; return r0;
}
function validateLoadParams(a0) { // fn#34931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2052, offset: 0x01066385, size: 180 bytes, params: 2, frame: 15
const concat = 'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n '.concat;
const JSON = global.JSON;
let value = JSON.stringify(a0);
value = Reflect.apply(concat,
'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ',
[value, '\n']);
if (a0 === null) {
throw new global.Error(value);
}
if (_typeof_34919(a0) !== 'object') {
throw new global.Error(value);
}
const Object = global.Object;
if (Object.keys(a0).length !== 1) {
throw new global.Error(value);
}
if (typeof a0.advancedFraudSignals === 'boolean') {
return a0;
}
const Error = global.Error;
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value4;
}
function loadStripe() { // fn#34932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2396, offset: 0x01066439, size: 126 bytes, params: 1, frame: 16
var r1;
var value5;
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const env0_0 = array;
const value4 = 0;
if (value4 < length) {
for (r1 = value4; true; r1 = value5) {
array[r1] = arguments[r1];
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value5 < length)) {
break;
}
}
}
const Date = global.Date;
const env0_1 = Date.now();
return loadScript(env0_0).then(_fun34933);
}
function setLoadParameters(a0) { // fn#34935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3162, offset: 0x010665c1, size: 139 bytes, params: 2, frame: 16
var value2;
let env0_0 = a0;
if (env0_11) {
if (env0_0) {
validateLoadParams(a0);
value2 = global.Object.keys(a0);
if (value2.reduce(_fun34936, true)) {
return undefined;
}
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
return undefined;
}
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
} else {
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
}
}
function _fun34925(a0, a1) { // fn#34925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1157, offset: 0x0106607c, size: 550 bytes, params: 3, frame: 24 function _fun34925(a0, a1) { // fn#34925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1157, offset: 0x0106607c, size: 550 bytes, params: 3, frame: 24
var environment; var environment;
var r4; var r4;
@@ -339,12 +256,117 @@ function _fun34925(a0, a1) { // fn#34925, source: /ci/build/discord/discord/disc
} }
} }
a0(null); a0(null);
function onLoad_34926(a0, a1) { // fn#34926, offset: 0x010662a2, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun34927;
function _fun34927() { // fn#34927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1707, offset: 0x010662b9, size: 92 bytes, params: 1, frame: 14
const Stripe = global.window.Stripe;
if (Stripe) {
env0_0(global.window.Stripe);
} else {
require(new global.Error('Stripe.js not available'));
}
} }
}
function onError_34928(a0) { // fn#34928, offset: 0x01066315, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun34929;
function _fun34929(a0) { // fn#34929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1825, offset: 0x01066325, size: 63 bytes, params: 2, frame: 14
const binding = env0_0;
const Error = global.Error;
binding(new Error('Failed to load Stripe.js', {cause: a0}));
}
}
}
}
function validateLoadParams(a0) { // fn#34931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2052, offset: 0x01066385, size: 180 bytes, params: 2, frame: 15
const concat = 'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n '.concat;
const JSON = global.JSON;
let value = JSON.stringify(a0);
value = Reflect.apply(concat,
'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ',
[value, '\n']);
if (a0 === null) {
throw new global.Error(value);
}
if (_typeof_34919(a0) !== 'object') {
throw new global.Error(value);
}
const Object = global.Object;
if (Object.keys(a0).length !== 1) {
throw new global.Error(value);
}
if (typeof a0.advancedFraudSignals === 'boolean') {
return a0;
}
const Error = global.Error;
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value4;
}
function loadStripe() { // fn#34932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2396, offset: 0x01066439, size: 126 bytes, params: 1, frame: 16
var r1;
var value5;
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const array2 = array;
const value4 = 0;
if (value4 < length) {
for (r1 = value4; true; r1 = value5) {
array[r1] = arguments[r1];
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value5 < length)) {
break;
}
}
}
const Date = global.Date;
const env0_1 = Date.now();
return loadScript_34924(array2).then(_fun34933);
function _fun34933(a0) { // fn#34933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2530, offset: 0x010664b7, size: 32 bytes, params: 2, frame: 15 function _fun34933(a0) { // fn#34933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2530, offset: 0x010664b7, size: 32 bytes, params: 2, frame: 15
return initStripe(a0, env0_0, env0_1); return initStripe(a0, env0_0, env0_1);
} }
}
function setLoadParameters(a0) { // fn#34935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3162, offset: 0x010665c1, size: 139 bytes, params: 2, frame: 16
var value2;
let env0_0 = a0;
if (env0_11) {
if (env0_0) {
validateLoadParams(a0);
value2 = global.Object.keys(a0);
if (value2.reduce(_fun34936, true)) {
return undefined;
}
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
return undefined;
}
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
} else {
if (env0_11) {
throw new global.Error('You cannot change load parameters after calling loadStripe');
}
validateLoadParams(a0);
env0_0 = a0;
}
function _fun34936(a0, a1) { // fn#34936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3220, offset: 0x0106664c, size: 51 bytes, params: 3, frame: 7 function _fun34936(a0, a1) { // fn#34936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3220, offset: 0x0106664c, size: 51 bytes, params: 3, frame: 7
var r0; var r0;
var property; var property;
@@ -363,15 +385,16 @@ function _fun34936(a0, a1) { // fn#34936, source: /ci/build/discord/discord/disc
return r0; return r0;
} }
function onLoad_34926(a0, a1) { // fn#34926, offset: 0x010662a2, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun34927;
} }
function onError_34928(a0) { // fn#34928, offset: 0x01066315, size: 16 bytes, params: 2, frame: 2 }
const env0_0 = a0;
return _fun34929; function _typeof_34919_typeof(a0) { // fn#34920, owner: _typeof_34919._typeof, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1
return typeof a0;
}
function _typeof_34919_typeof_34921(a0) { // fn#34921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:176, owner: _typeof_34919._typeof, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
} }
function initStripe(a0, a1, a2) { // fn#34934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2549, offset: 0x010664d7, size: 234 bytes, params: 4, frame: 18 function initStripe(a0, a1, a2) { // fn#34934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2549, offset: 0x010664d7, size: 234 bytes, params: 4, frame: 18
@@ -398,18 +421,4 @@ function initStripe(a0, a1, a2) { // fn#34934, source: /ci/build/discord/discord
return value; return value;
} }
function _fun34927() { // fn#34927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1707, offset: 0x010662b9, size: 92 bytes, params: 1, frame: 14 global.__d(_fun34918, 4231, []) /* metro module 4231 */;
const Stripe = global.window.Stripe;
if (Stripe) {
env0_0(global.window.Stripe);
} else {
require(new global.Error('Stripe.js not available'));
}
}
function _fun34929(a0) { // fn#34929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1825, offset: 0x01066325, size: 63 bytes, params: 2, frame: 14
const binding = env0_0;
const Error = global.Error;
binding(new Error('Failed to load Stripe.js', {cause: a0}));
}
+85 -80
View File
@@ -1,24 +1,25 @@
/* Metro module 11328; source: actions/ActivitiesActionCreators.tsx; dependencies: [5, 1379, 661, 4503, 694, 507, 7076, 7067, 4863, 4603, 2] */ /* Metro module 11328; source: actions/ActivitiesActionCreators.tsx; dependencies: [5, 1379, 661, 4503, 694, 507, 7076, 7067, 4863, 4603, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ChannelActionCreators from './ChannelActionCreators.tsx'; /* Metro dependency 4603 */
import AppAnalyticsUtils from '../modules/app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import MessageActionCreators from './MessageActionCreators.tsx'; /* Metro dependency 7067 */
import MessageParser from '../modules/messages/MessageParser.tsx'; /* Metro dependency 7076 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as MessageConstantsModule from '../modules/messages/MessageConstants.tsx'; /* Metro dependency 4503 */
function _fun86486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:6, offset: 0x01f95e96, size: 265 bytes, params: 8, frame: 19 function _fun86486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:6, offset: 0x01f95e96, size: 265 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {updateActivity: updateActivity, sendActivityInvite: sendActivityInvite,
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.Endpoints;
const env0_6 = constantsModule.ActivityTypes;
const env0_7 = constantsModule.AnalyticEvents;
const env0_8 = constantsModule.LoggingInviteTypes;
const env0_9 = (require(4503) /* metro dependency 4503: MessageConstants */).MessageSendLocation;
object2 = {updateActivity: updateActivity, sendActivityInvite: sendActivityInvite,
sendActivityInviteUser: sendActivityInviteUser, getJoinSecret: getJoinSecret, sendActivityInviteUser: sendActivityInviteUser, getJoinSecret: getJoinSecret,
subscribeActivities: subscribeActivities}; subscribeActivities: subscribeActivities};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ActivitiesActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ActivitiesActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function updateActivity({applicationId, distributor, shareActivity, token, duration, closed, exePath, voiceChannelId, sessionId, mediaSessionId}) { // fn#86487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:233, offset: 0x01f95f9f, size: 318 bytes, params: 2, frame: 25 function updateActivity({applicationId, distributor, shareActivity, token, duration, closed, exePath, voiceChannelId, sessionId, mediaSessionId}) { // fn#86487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:233, offset: 0x01f95f9f, size: 318 bytes, params: 2, frame: 25
token = token === undefined ? null : token; token = token === undefined ? null : token;
duration = duration === undefined ? 0 : duration; duration = duration === undefined ? 0 : duration;
@@ -27,8 +28,8 @@ function updateActivity({applicationId, distributor, shareActivity, token, durat
voiceChannelId = voiceChannelId === undefined ? null : voiceChannelId; voiceChannelId = voiceChannelId === undefined ? null : voiceChannelId;
sessionId = sessionId === undefined ? null : sessionId; sessionId = sessionId === undefined ? null : sessionId;
mediaSessionId = mediaSessionId === undefined ? null : mediaSessionId; mediaSessionId = mediaSessionId === undefined ? null : mediaSessionId;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun86488); (Dispatcher).wait(_fun86488);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const ACTIVITIES = Endpoints.ACTIVITIES; const ACTIVITIES = Endpoints.ACTIVITIES;
let value = Reflect.apply(post, HTTP, [{'url': null, 'body': null, 'retries': 1, 'oldFormErrors': true, let value = Reflect.apply(post, HTTP, [{'url': null, 'body': null, 'retries': 1, 'oldFormErrors': true,
@@ -37,6 +38,25 @@ function updateActivity({applicationId, distributor, shareActivity, token, durat
voice_channel_id: voiceChannelId, session_id: sessionId, media_session_id: mediaSessionId}}]); voice_channel_id: voiceChannelId, session_id: sessionId, media_session_id: mediaSessionId}}]);
value = value.then(_fun86489); value = value.then(_fun86489);
value.catch(_fun86490); value.catch(_fun86490);
function _fun86488() { // fn#86488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:425, offset: 0x01f960dd, size: 77 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'ACTIVITY_UPDATE_START',
applicationId: applicationId, duration: duration, distributor: distributor});
}
function _fun86489({body}) { // fn#86489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:755, offset: 0x01f9612a, size: 96 bytes, params: 2, frame: 15
const token = body.token;
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'ACTIVITY_UPDATE_SUCCESS',
applicationId: applicationId, token: token, duration: duration, distributor: distributor});
}
function _fun86490() { // fn#86490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:886, offset: 0x01f9618a, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'ACTIVITY_UPDATE_FAIL',
applicationId: applicationId});
}
} }
function sendActivityInvite({channelId, type, activity, content, targetUserId, location}) { // fn#86491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:959, offset: 0x01f961c6, size: 250 bytes, params: 2, frame: 24 function sendActivityInvite({channelId, type, activity, content, targetUserId, location}) { // fn#86491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:959, offset: 0x01f961c6, size: 250 bytes, params: 2, frame: 24
@@ -44,9 +64,9 @@ function sendActivityInvite({channelId, type, activity, content, targetUserId, l
if (channel == null) { if (channel == null) {
return global.Promise.resolve(null); return global.Promise.resolve(null);
} }
const defaultImport = importDefault(7076) /* metro dependency 7076: MessageParser */; const defaultImport = MessageParser;
const value4 = defaultImport.parse(channel, content ?? ''); const value4 = defaultImport.parse(channel, content ?? '');
const defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; const defaultImport2 = MessageActionCreators;
const sendMessage = defaultImport2.sendMessage; const sendMessage = defaultImport2.sendMessage;
const id = channel.id; const id = channel.id;
const ACTIVITY_SHARE = MessageSendLocation.ACTIVITY_SHARE; const ACTIVITY_SHARE = MessageSendLocation.ACTIVITY_SHARE;
@@ -55,12 +75,38 @@ function sendActivityInvite({channelId, type, activity, content, targetUserId, l
var Promise = global.Promise; var Promise = global.Promise;
return Promise.reject(a0); return Promise.reject(a0);
}); });
function _fun86492(a0) { // fn#86492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1267, offset: 0x01f962c0, size: 203 bytes, params: 2, frame: 18
let value = environment.__proto__;
const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata;
const INVITE_SENT = AnalyticEvents.INVITE_SENT;
const object = {};
object.location = location;
const type = activity.type;
const LISTENING = ActivityTypes.LISTENING;
object.invite_type = type === LISTENING ? LoggingInviteTypes.SPOTIFY : LoggingInviteTypes.APPLICATION;
object.application_id = activity.application_id;
const binding = env0_2;
object.guild_id = binding.getGuildId();
object.channel_id = binding.id;
value = null;
object.message_id = value != a0 ? a0.body.id : value;
Reflect.apply(trackWithMetadata, defaultImport, [INVITE_SENT, object]);
const Promise = global.Promise;
return Promise.resolve(env0_2);
}
} }
function sendActivityInviteUser({userId, type, activity, content, location}) { // fn#86494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1534, offset: 0x01f9638b, size: 109 bytes, params: 2, frame: 13 function sendActivityInviteUser({userId, type, activity, content, location}) { // fn#86494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1534, offset: 0x01f9638b, size: 109 bytes, params: 2, frame: 13
let value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */; let value = ChannelActionCreators;
value = value.ensurePrivateChannel(userId); value = value.ensurePrivateChannel(userId);
return value.then(_fun86495); return value.then(_fun86495);
function _fun86495(a0) { // fn#86495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1653, offset: 0x01f963f8, size: 62 bytes, params: 2, frame: 13
return env0_0.sendActivityInvite({channelId: a0, type: type, activity: activity, content: content,
location: location});
}
} }
function getJoinSecret(a0, a1, a2, a3, a4) { // fn#86496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1751, offset: 0x01f96436, size: 64 bytes, params: 6, frame: 11 function getJoinSecret(a0, a1, a2, a3, a4) { // fn#86496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1751, offset: 0x01f96436, size: 64 bytes, params: 6, frame: 11
@@ -70,78 +116,26 @@ function getJoinSecret(a0, a1, a2, a3, a4) { // fn#86496, source: /ci/build/disc
const env0_3 = a3; const env0_3 = a3;
const env0_4 = a4; const env0_4 = a4;
return env0_3(_fun86498)(); return env0_3(_fun86498)();
}
function subscribeActivities(a0) { // fn#86499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:2019, offset: 0x01f9654b, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_3(_fun86501)();
}
function _fun86488() { // fn#86488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:425, offset: 0x01f960dd, size: 77 bytes, params: 1, frame: 13
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_UPDATE_START',
applicationId: applicationId, duration: duration, distributor: distributor});
}
function _fun86489({body}) { // fn#86489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:755, offset: 0x01f9612a, size: 96 bytes, params: 2, frame: 15
const token = body.token;
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_UPDATE_SUCCESS',
applicationId: applicationId, token: token, duration: duration, distributor: distributor});
}
function _fun86490() { // fn#86490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:886, offset: 0x01f9618a, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_UPDATE_FAIL',
applicationId: applicationId});
}
function _fun86492(a0) { // fn#86492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1267, offset: 0x01f962c0, size: 203 bytes, params: 2, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */;
const trackWithMetadata = defaultImport.trackWithMetadata;
const INVITE_SENT = AnalyticEvents.INVITE_SENT;
const object2 = {};
object2.location = location;
const type = activity.type;
const LISTENING = ActivityTypes.LISTENING;
object2.invite_type = type === LISTENING ? LoggingInviteTypes.SPOTIFY : LoggingInviteTypes.APPLICATION;
object2.application_id = activity.application_id;
const binding = env0_2;
object2.guild_id = binding.getGuildId();
object2.channel_id = binding.id;
value = null;
object2.message_id = value != a0 ? a0.body.id : value;
Reflect.apply(trackWithMetadata, defaultImport, [INVITE_SENT, object2]);
const Promise = global.Promise;
return Promise.resolve(env0_2);
}
function _fun86495(a0) { // fn#86495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1653, offset: 0x01f963f8, size: 62 bytes, params: 2, frame: 13
return env0_0.sendActivityInvite({channelId: a0, type: type, activity: activity, content: content,
location: location});
}
function* _fun86498() { // fn#86498, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1767, offset: 0x01f96481, size: 202 bytes, params: 1, frame: 20 function* _fun86498() { // fn#86498, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:1767, offset: 0x01f96481, size: 202 bytes, params: 1, frame: 20
if (false) { if (false) {
return undefined; return undefined;
} }
const object3 = {}; const object = {};
value = environment.__proto__; value = environment.__proto__;
if (env1_3 != null) { if (env1_3 != null) {
object3.channel_id = env1_3; object.channel_id = env1_3;
} }
if (ChannelStore != null) { if (ChannelStore != null) {
object3.message_id = ChannelStore; object.message_id = ChannelStore;
} }
const HTTP = env2_0(env2_2[5]).HTTP; const HTTP = env2_0(env2_2[5]).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object4 = {}; const object2 = {};
object4.url = env2_5.USER_ACTIVITY_JOIN(require, importDefault, dependencyMap); object2.url = env2_5.USER_ACTIVITY_JOIN(require, importDefault, dependencyMap);
object4.retries = 3; object2.retries = 3;
object4.query = object3; object2.query = object;
object4.rejectWithError = false; object2.rejectWithError = false;
yield Reflect.apply(get, HTTP, [object4]); yield Reflect.apply(get, HTTP, [object2]);
value = undefined; value = undefined;
if (false) { if (false) {
return value; return value;
@@ -149,6 +143,11 @@ function* _fun86498() { // fn#86498, original name: ?anon_0_, source: /ci/build/
return {secret: value.body.secret, joinUrl: value.body.join_url}; return {secret: value.body.secret, joinUrl: value.body.join_url};
} }
}
function subscribeActivities(a0) { // fn#86499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:2019, offset: 0x01f9654b, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun86501)();
function* _fun86501() { // fn#86501, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:2025, offset: 0x01f9657a, size: 142 bytes, params: 1, frame: 14 function* _fun86501() { // fn#86501, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11514:2025, offset: 0x01f9657a, size: 142 bytes, params: 1, frame: 14
var environment; var environment;
if (false) { if (false) {
@@ -171,3 +170,9 @@ function* _fun86501() { // fn#86501, original name: ?anon_0_, source: /ci/build/
return value.body; return value.body;
} }
}
}
global.__d(_fun86486, 11328, [5, 1379, 661, 4503, 694, 507, 7076, 7067, 4863, 4603,
2]) /* metro module 11328, dependencies: [5, 1379, 661, 4503, 694, 507, 7076, 7067, 4863, 4603, 2] */;
+4 -1
View File
@@ -1,8 +1,11 @@
/* Metro module 4647; source: actions/AlertActionCreators.tsx; dependencies: [2, 4496] */ /* Metro module 4647; source: actions/AlertActionCreators.tsx; dependencies: [2, 4496] */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun40021(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4825:6, offset: 0x010f2ae7, size: 95 bytes, params: 8, frame: 17 function _fun40021(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4825:6, offset: 0x010f2ae7, size: 95 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/AlertActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/AlertActionCreators.tsx');
exports.default = (require(4496) /* metro dependency 4496: AlertActionCreators */).default; exports.default = (require(4496) /* metro dependency 4496: AlertActionCreators */).default;
} }
global.__d(_fun40021, 4647, [2, 4496]) /* metro module 4647, dependencies: [2, 4496] */;
@@ -1,12 +1,16 @@
/* Metro module 13767; source: actions/AnalyticsTrackingActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 13767; source: actions/AnalyticsTrackingActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun105036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13964:6, offset: 0x022ab98d, size: 99 bytes, params: 8, frame: 17 function _fun105036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13964:6, offset: 0x022ab98d, size: 99 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/AnalyticsTrackingActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/AnalyticsTrackingActionCreators.tsx');
exports.track = track_105037; exports.track = track_105037;
}
function track_105037(a0, a1) { // fn#105037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13964:177, offset: 0x022ab9f0, size: 62 bytes, params: 3, frame: 13 function track_105037(a0, a1) { // fn#105037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13964:177, offset: 0x022ab9f0, size: 62 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TRACK', event: a0, properties: a1}); (Dispatcher).dispatch({type: 'TRACK', event: a0, properties: a1});
} }
}
global.__d(_fun105036, 13767, [694, 2]) /* metro module 13767, dependencies: [694, 2] */;
+155 -140
View File
@@ -1,21 +1,27 @@
/* Metro module 8899; source: actions/AudioActionCreators.tsx; dependencies: [5, 4293, 1379, 4259, 4294, 1934, 1878, 661, 8900, 4291, 3, 683, 6949, 694, 8901, 8903, 8904, 8912, 2] */ /* Metro module 8899; source: actions/AudioActionCreators.tsx; dependencies: [5, 4293, 1379, 4259, 4294, 1934, 1878, 661, 8900, 4291, 3, 683, 6949, 694, 8901, 8903, 8904, 8912, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import MediaEngineStore from '../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
import CertifiedDeviceStore from '../stores/CertifiedDeviceStore.tsx'; /* Metro dependency 4293 */
import RTCConnectionStore from '../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from '../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
import * as ConstantsModule3 from '../modules/sound_playback/Constants.tsx'; /* Metro dependency 8900 */
import * as AudioSettingsUtilsModule from '../modules/user_settings/voice/AudioSettingsUtils.tsx'; /* Metro dependency 8901 */
import * as ApplyBackgroundOptionModule from '../modules/video_backgrounds/applyBackgroundOption.tsx'; /* Metro dependency 8904 */
function _fun69366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:6, offset: 0x01c71887, size: 1030 bytes, params: 8, frame: 20 function _fun69366(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:6, offset: 0x01c71887, size: 1030 bytes, params: 8, frame: 20
var object3;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; let value = ConstantsModule;
const certifiedDeviceStore = importDefault(4293) /* metro dependency 4293: CertifiedDeviceStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_10 = value.InputModes; const env0_10 = value.InputModes;
const env0_11 = value.AnalyticEvents; const env0_11 = value.AnalyticEvents;
(require(8900) /* metro dependency 8900: Constants */).SoundOutputChannel; (ConstantsModule3).SoundOutputChannel;
const env0_12 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
value = importDefault(3) /* metro dependency 3: Logger */; value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('AudioActionCreators'); value = new value('AudioActionCreators');
value.enableNativeLogger(true); value.enableNativeLogger(true);
@@ -23,11 +29,12 @@ function _fun69366(global, require, importDefault, importAll, module, exports, d
var defaultImport = importDefault(dependencyMap[11]); var defaultImport = importDefault(dependencyMap[11]);
var USER_VOLUME_SETTING_UPDATED = AnalyticEvents.USER_VOLUME_SETTING_UPDATED; var USER_VOLUME_SETTING_UPDATED = AnalyticEvents.USER_VOLUME_SETTING_UPDATED;
var object = {target_user_id: a0, context: a1, volume: a2}; var object = {target_user_id: a0, context: a1, volume: a2};
object.media_session_id = RTCConnectionStore.getMediaSessionId(); var rtcConnectionStoreBinding = RTCConnectionStore;
object.rtc_connection_id = RTCConnectionStore.getRTCConnectionId(); object.media_session_id = rtcConnectionStoreBinding.getMediaSessionId();
object.rtc_connection_id = rtcConnectionStoreBinding.getRTCConnectionId();
defaultImport.track(USER_VOLUME_SETTING_UPDATED, object); defaultImport.track(USER_VOLUME_SETTING_UPDATED, object);
}, 300); }, 300);
object3 = {isNotSupported: function() { object = {isNotSupported: function() {
return false; return false;
}, enable: function() { }, enable: function() {
var Promise = global.Promise; var Promise = global.Promise;
@@ -35,52 +42,52 @@ function _fun69366(global, require, importDefault, importAll, module, exports, d
}, trackToggleSelfMute: function() { }, trackToggleSelfMute: function() {
}, trackToggleSelfDeaf: function() { }, trackToggleSelfDeaf: function() {
}}; }};
const env0_15 = object3.isNotSupported; const env0_15 = object.isNotSupported;
const env0_16 = object3.trackToggleSelfMute; const env0_16 = object.trackToggleSelfMute;
const env0_17 = object3.trackToggleSelfDeaf; const env0_17 = object.trackToggleSelfDeaf;
const object4 = {}; const object2 = {};
object4.enable = object3.enable; object2.enable = object.enable;
object4.toggleSelfMute = toggleSelfMute; object2.toggleSelfMute = toggleSelfMute;
object4.setSelfMute = setSelfMute; object2.setSelfMute = setSelfMute;
object4.setTemporarySelfMute = setTemporarySelfMute; object2.setTemporarySelfMute = setTemporarySelfMute;
object4.toggleSelfDeaf = toggleSelfDeaf; object2.toggleSelfDeaf = toggleSelfDeaf;
object4.toggleLocalMute = toggleLocalMute; object2.toggleLocalMute = toggleLocalMute;
object4.toggleLocalSoundboardMute = toggleLocalSoundboardMute; object2.toggleLocalSoundboardMute = toggleLocalSoundboardMute;
object4.setDisableLocalVideo = setDisableLocalVideo; object2.setDisableLocalVideo = setDisableLocalVideo;
object4.setLocalVolume = setLocalVolume; object2.setLocalVolume = setLocalVolume;
object4.setAudioMixerSettings = setAudioMixerSettings; object2.setAudioMixerSettings = setAudioMixerSettings;
object4.setLocalPan = setLocalPan; object2.setLocalPan = setLocalPan;
object4.setMode = setMode; object2.setMode = setMode;
object4.setBypassSystemInputProcessing = setBypassSystemInputProcessing; object2.setBypassSystemInputProcessing = setBypassSystemInputProcessing;
object4.setInputVolume = setInputVolume; object2.setInputVolume = setInputVolume;
object4.setOutputVolume = setOutputVolume; object2.setOutputVolume = setOutputVolume;
object4.setInputDevice = setInputDevice_69388; object2.setInputDevice = setInputDevice_69388;
object4.setOutputDevice = setOutputDevice_69389; object2.setOutputDevice = setOutputDevice_69389;
object4.setVideoDevice = setVideoDevice; object2.setVideoDevice = setVideoDevice;
object4.setActiveInputProfile = setActiveInputProfile; object2.setActiveInputProfile = setActiveInputProfile;
object4.setEchoCancellation = setEchoCancellation; object2.setEchoCancellation = setEchoCancellation;
object4.setSidechainCompression = setSidechainCompression; object2.setSidechainCompression = setSidechainCompression;
object4.setSidechainCompressionStrength = setSidechainCompressionStrength; object2.setSidechainCompressionStrength = setSidechainCompressionStrength;
object4.setLoopback = setLoopback_69395; object2.setLoopback = setLoopback_69395;
object4.setNoiseSuppression = setNoiseSuppression; object2.setNoiseSuppression = setNoiseSuppression;
object4.setNoiseCancellation = setNoiseCancellation_69397; object2.setNoiseCancellation = setNoiseCancellation_69397;
object4.setAutomaticGainControl = setAutomaticGainControl_69398; object2.setAutomaticGainControl = setAutomaticGainControl_69398;
object4.setAttenuation = setAttenuation; object2.setAttenuation = setAttenuation;
object4.setQoS = setQoS; object2.setQoS = setQoS;
object4.reset = reset_69401; object2.reset = reset_69401;
object4.setSilenceWarning = setSilenceWarning; object2.setSilenceWarning = setSilenceWarning;
object4.setDebugLogging = setDebugLogging; object2.setDebugLogging = setDebugLogging;
object4.setVideoHook = setVideoHook; object2.setVideoHook = setVideoHook;
object4.setExperimentalSoundshare = setExperimentalSoundshare; object2.setExperimentalSoundshare = setExperimentalSoundshare;
object4.setUseSystemScreensharePicker = setUseSystemScreensharePicker; object2.setUseSystemScreensharePicker = setUseSystemScreensharePicker;
object4.setAudioSubsystem = setAudioSubsystem_69409; object2.setAudioSubsystem = setAudioSubsystem_69409;
object4.setVideoEnabled = setVideoEnabled; object2.setVideoEnabled = setVideoEnabled;
object4.setGoLiveSource = setGoLiveSource; object2.setGoLiveSource = setGoLiveSource;
object4.setAecDump = setAecDump; object2.setAecDump = setAecDump;
object4.interact = interact; object2.interact = interact;
object4.setEnableHardwareMuteNotice = setEnableHardwareMuteNotice; object2.setEnableHardwareMuteNotice = setEnableHardwareMuteNotice;
object4.setKrispSuppressionLevel = setKrispSuppressionLevel; object2.setKrispSuppressionLevel = setKrispSuppressionLevel;
object4.setKrispModelOverride = function(a0) { object2.setKrispModelOverride = function(a0) {
if (!isNotSupported()) { if (!isNotSupported()) {
importDefault(dependencyMap[13]).dispatch({type: 'AUDIO_SET_KRISP_MODEL_OVERRIDE', model: a0}); importDefault(dependencyMap[13]).dispatch({type: 'AUDIO_SET_KRISP_MODEL_OVERRIDE', model: a0});
if (MediaEngineStore.getNoiseCancellation()) { if (MediaEngineStore.getNoiseCancellation()) {
@@ -89,25 +96,24 @@ function _fun69366(global, require, importDefault, importAll, module, exports, d
} }
} }
}; };
object4.setNoiseCancellationEnableStats = function(a0) { object2.setNoiseCancellationEnableStats = function(a0) {
isNotSupported(); isNotSupported();
}; };
object4.setOpenH264Enabled = setOpenH264Enabled_69420; object2.setOpenH264Enabled = setOpenH264Enabled_69420;
object4.resetMediaEngineSettings = resetMediaEngineSettings; object2.resetMediaEngineSettings = resetMediaEngineSettings;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/AudioActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/AudioActionCreators.tsx');
exports.default = object4; exports.default = object2;
}
function getInputDeviceName() { // fn#69367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:312, offset: 0x01c71c8d, size: 55 bytes, params: 1, frame: 10 function getInputDeviceName() { // fn#69367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:312, offset: 0x01c71c8d, size: 55 bytes, params: 1, frame: 10
const inputDevices = MediaEngineStore.getInputDevices(); const inputDevices = MediaEngineStore.getInputDevices();
const getInputDeviceId = MediaEngineStore.getInputDeviceId; mediaEngineStoreBinding = MediaEngineStore;
const property = inputDevices[Reflect.apply(getInputDeviceId, MediaEngineStore, [])]; const getInputDeviceId = mediaEngineStoreBinding.getInputDeviceId;
const property = inputDevices[Reflect.apply(getInputDeviceId, mediaEngineStoreBinding, [])];
return property != null ? property.name : ''; return property != null ? property.name : '';
} }
function trackDeviceChanged(a0, a1, a2, a3) { // fn#69368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:415, offset: 0x01c71cc4, size: 330 bytes, params: 5, frame: 30 function trackDeviceChanged(a0, a1, a2, a3) { // fn#69368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:415, offset: 0x01c71cc4, size: 330 bytes, params: 5, frame: 30
var r8; var r8;
var object2; var object;
var voiceChannelId; var voiceChannelId;
var value4; var value4;
var property; var property;
@@ -117,6 +123,7 @@ function trackDeviceChanged(a0, a1, a2, a3) { // fn#69368, source: /ci/build/dis
var defaultImport; var defaultImport;
var track; var track;
var MEDIA_DEVICE_CHANGED; var MEDIA_DEVICE_CHANGED;
var certifiedDeviceStoreBinding;
var value10; var value10;
const value = a4; const value = a4;
const value2 = undefined; const value2 = undefined;
@@ -132,26 +139,28 @@ function trackDeviceChanged(a0, a1, a2, a3) { // fn#69368, source: /ci/build/dis
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track; track = defaultImport.track;
MEDIA_DEVICE_CHANGED = AnalyticEvents.MEDIA_DEVICE_CHANGED; MEDIA_DEVICE_CHANGED = AnalyticEvents.MEDIA_DEVICE_CHANGED;
object2 = {}; object = {};
certifiedDeviceStoreBinding = CertifiedDeviceStore;
value10 = ''; value10 = '';
object2.device_from_name = CertifiedDeviceStore.getCertifiedDeviceName(a1, object.device_from_name = certifiedDeviceStoreBinding.getCertifiedDeviceName(a1,
value4 != property ? property.name : value10); value4 != property ? property.name : value10);
object2.device_to_name = CertifiedDeviceStore.getCertifiedDeviceName(a2, object.device_to_name = CertifiedDeviceStore.getCertifiedDeviceName(a2,
value4 != property2 ? property2.name : value10); value4 != property2 ? property2.name : value10);
object2.device_type = a3; object.device_type = a3;
object2.device_is_certified = CertifiedDeviceStore.isCertified(a2); object.device_is_certified = CertifiedDeviceStore.isCertified(a2);
object2.location = r2.location; object.location = r2.location;
object2.location_stack = r2.analyticsLocations; object.location_stack = r2.analyticsLocations;
object2.voice_channel_type = value4 == r8 ? value2 : r8.type; object.voice_channel_type = value4 == r8 ? value2 : r8.type;
object2.audio_subsystem = audioSubsystem; object.audio_subsystem = audioSubsystem;
object2.audio_layer = audioLayer; object.audio_layer = audioLayer;
Reflect.apply(track, defaultImport, [MEDIA_DEVICE_CHANGED, object2]); Reflect.apply(track, defaultImport, [MEDIA_DEVICE_CHANGED, object]);
} }
return value2; return value2;
} }
function toggleSelfMute() { // fn#69374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:1381, offset: 0x01c71e79, size: 297 bytes, params: 1, frame: 18 function toggleSelfMute() { // fn#69374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:1381, offset: 0x01c71e79, size: 297 bytes, params: 1, frame: 18
var r4; var r4;
var mediaEngineStoreBinding;
var currentUser; var currentUser;
let value = a0; let value = a0;
let r0 = value !== undefined ? value : {}; let r0 = value !== undefined ? value : {};
@@ -173,7 +182,8 @@ function toggleSelfMute() { // fn#69374, source: /ci/build/discord/discord/disco
if (r0) { if (r0) {
env0_13.info('Toggling self mute'); env0_13.info('Toggling self mute');
} }
if (MediaEngineStore.isEnabled()) { mediaEngineStoreBinding = MediaEngineStore;
if (mediaEngineStoreBinding.isEnabled()) {
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value = value.dispatch({type: 'AUDIO_TOGGLE_SELF_MUTE', context: r6, syncRemote: syncRemote, value = value.dispatch({type: 'AUDIO_TOGGLE_SELF_MUTE', context: r6, syncRemote: syncRemote,
playSoundEffect: r4}); playSoundEffect: r4});
@@ -260,8 +270,8 @@ function setDisableLocalVideo(a0, a1) { // fn#69380, source: /ci/build/discord/d
function setLocalVolume(a0, a1) { // fn#69381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:2793, offset: 0x01c7227f, size: 125 bytes, params: 3, frame: 19 function setLocalVolume(a0, a1) { // fn#69381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:2793, offset: 0x01c7227f, size: 125 bytes, params: 3, frame: 19
const value = a2; const value = a2;
const r3 = value !== undefined ? value : MediaEngineContextTypes.DEFAULT; const r3 = value !== undefined ? value : MediaEngineContextTypes.DEFAULT;
const value2 = (require(8901) /* metro dependency 8901: AudioSettingsUtils */).snapVolumeToDefault(a1, r3); const value2 = (AudioSettingsUtilsModule).snapVolumeToDefault(a1, r3);
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
defaultImport.dispatch({type: 'AUDIO_SET_LOCAL_VOLUME', context: r3, userId: a0, volume: value2}); defaultImport.dispatch({type: 'AUDIO_SET_LOCAL_VOLUME', context: r3, userId: a0, volume: value2});
env0_14(a0, r3, value2); env0_14(a0, r3, value2);
} }
@@ -283,12 +293,12 @@ function setLocalPan(a0, a1, a2) { // fn#69383, source: /ci/build/discord/discor
function setMode(a0) { // fn#69384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:3186, offset: 0x01c723a9, size: 617 bytes, params: 2, frame: 25 function setMode(a0) { // fn#69384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:3186, offset: 0x01c723a9, size: 617 bytes, params: 2, frame: 25
var r14; var r14;
var r9; var r9;
var object3; var object;
var mode; var mode;
var modeOptions; var modeOptions;
var defaultImport; var defaultImport;
var dispatch; var dispatch;
var object4; var object2;
var audioSubsystem; var audioSubsystem;
var audioLayer; var audioLayer;
var voiceChannelId; var voiceChannelId;
@@ -317,12 +327,12 @@ function setMode(a0) { // fn#69384, source: /ci/build/discord/discord/discord_an
modeOptions = MediaEngineStore.getModeOptions(r8); modeOptions = MediaEngineStore.getModeOptions(r8);
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = defaultImport.dispatch; dispatch = defaultImport.dispatch;
object3 = {type: 'AUDIO_SET_MODE', context: r8, mode: a0}; object = {type: 'AUDIO_SET_MODE', context: r8, mode: a0};
object4 = {}; object2 = {};
copyDataProperties(object4, modeOptions, undefined); copyDataProperties(object2, modeOptions, undefined);
copyDataProperties(object4, r6, undefined); copyDataProperties(object2, r6, undefined);
object3.options = object4; object.options = object2;
Reflect.apply(dispatch, defaultImport, [object3]); Reflect.apply(dispatch, defaultImport, [object]);
if (a0 !== mode) { if (a0 !== mode) {
audioSubsystem2 = MediaEngineStore.getMediaEngine().getAudioSubsystem(); audioSubsystem2 = MediaEngineStore.getMediaEngine().getAudioSubsystem();
audioLayer2 = MediaEngineStore.getMediaEngine().getAudioLayer(); audioLayer2 = MediaEngineStore.getMediaEngine().getAudioLayer();
@@ -346,20 +356,20 @@ function setMode(a0) { // fn#69384, source: /ci/build/discord/discord/discord_an
defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport2.track; track = defaultImport2.track;
VOICE_ACTIVITY_THRESHOLD_CHANGED = AnalyticEvents.VOICE_ACTIVITY_THRESHOLD_CHANGED; VOICE_ACTIVITY_THRESHOLD_CHANGED = AnalyticEvents.VOICE_ACTIVITY_THRESHOLD_CHANGED;
object3 = {location_stack: analyticsLocations}; object = {location_stack: analyticsLocations};
object3.voice_channel_type = value12 == r14 ? value4 : r14.type; object.voice_channel_type = value12 == r14 ? value4 : r14.type;
object3.input_device_name = inputDeviceName; object.input_device_name = inputDeviceName;
object3.audio_subsystem = audioSubsystem; object.audio_subsystem = audioSubsystem;
object3.audio_layer = audioLayer; object.audio_layer = audioLayer;
threshold = modeOptions.threshold; threshold = modeOptions.threshold;
object3.old_threshold = threshold; object.old_threshold = threshold;
threshold = r6.threshold; threshold = r6.threshold;
object3.new_threshold = threshold; object.new_threshold = threshold;
autoThreshold = modeOptions.autoThreshold; autoThreshold = modeOptions.autoThreshold;
object3.old_auto_threshold = autoThreshold; object.old_auto_threshold = autoThreshold;
autoThreshold = r6.autoThreshold; autoThreshold = r6.autoThreshold;
object3.new_auto_threshold = autoThreshold; object.new_auto_threshold = autoThreshold;
Reflect.apply(track, defaultImport2, [VOICE_ACTIVITY_THRESHOLD_CHANGED, object3]); Reflect.apply(track, defaultImport2, [VOICE_ACTIVITY_THRESHOLD_CHANGED, object]);
} }
} }
} }
@@ -615,7 +625,24 @@ function setSilenceWarning(a0) { // fn#69402, source: /ci/build/discord/discord/
function setDebugLogging(a0) { // fn#69403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7799, offset: 0x01c72f11, size: 36 bytes, params: 2, frame: 11 function setDebugLogging(a0) { // fn#69403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7799, offset: 0x01c72f11, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0; const env0_0 = a0;
return env0_3(_fun69405)(); return Module00005(_fun69405)();
function* _fun69405() { // fn#69405, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7805, offset: 0x01c72f40, size: 151 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
if (!env2_15()) {
var binding = env2_1;
var value3 = binding(env2_2[15]);
binding = env2_6;
yield value3('debug_logging_enabled', require, binding.getDebugLogging());
if (false) {
return undefined;
}
binding = env2_1;
binding(env2_2[13]).dispatch({type: 'AUDIO_SET_DEBUG_LOGGING', enabled: require});
}
}
}
} }
function setVideoHook(a0) { // fn#69406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7953, offset: 0x01c72fd7, size: 108 bytes, params: 2, frame: 17 function setVideoHook(a0) { // fn#69406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7953, offset: 0x01c72fd7, size: 108 bytes, params: 2, frame: 17
@@ -656,12 +683,29 @@ function setUseSystemScreensharePicker(a0) { // fn#69408, source: /ci/build/disc
function setAudioSubsystem_69409(a0) { // fn#69409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8511, offset: 0x01c73119, size: 36 bytes, params: 2, frame: 11 function setAudioSubsystem_69409(a0) { // fn#69409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8511, offset: 0x01c73119, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0; const env0_0 = a0;
return env0_3(_fun69411)(); return Module00005(_fun69411)();
function* _fun69411() { // fn#69411, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8517, offset: 0x01c73148, size: 150 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
if (!env2_15()) {
var binding = env2_1;
var value3 = binding(env2_2[15]);
binding = env2_6;
yield value3('audio_subsystem', require, binding.getAudioSubsystem());
if (false) {
return undefined;
}
binding = env2_1;
binding(env2_2[13]).dispatch({type: 'AUDIO_SET_SUBSYSTEM', subsystem: require});
}
}
}
} }
function setVideoEnabled(a0) { // fn#69412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8659, offset: 0x01c731de, size: 82 bytes, params: 2, frame: 13 function setVideoEnabled(a0) { // fn#69412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8659, offset: 0x01c731de, size: 82 bytes, params: 2, frame: 13
(require(8904) /* metro dependency 8904: applyBackgroundOption */).applyInitialVideoBackgroundOption(); (ApplyBackgroundOptionModule).applyInitialVideoBackgroundOption();
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_SET_VIDEO_ENABLED', (Dispatcher).dispatch({type: 'MEDIA_ENGINE_SET_VIDEO_ENABLED',
enabled: a0}); enabled: a0});
} }
@@ -687,7 +731,7 @@ function setGoLiveSource(a0) { // fn#69413, source: /ci/build/discord/discord/di
Reflect.apply(trackStreamSettingsUpdate, moduleValue, [preset, resolution, frameRate, Reflect.apply(trackStreamSettingsUpdate, moduleValue, [preset, resolution, frameRate,
desktopSettings == null ? value : desktopSettings.sound]); desktopSettings == null ? value : desktopSettings.sound]);
} }
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_SET_GO_LIVE_SOURCE', (Dispatcher).dispatch({type: 'MEDIA_ENGINE_SET_GO_LIVE_SOURCE',
settings: a0}); settings: a0});
return value; return value;
} }
@@ -735,41 +779,12 @@ function setOpenH264Enabled_69420(a0) { // fn#69420, source: /ci/build/discord/d
} }
function resetMediaEngineSettings(a0) { // fn#69421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:9907, offset: 0x01c734cb, size: 55 bytes, params: 2, frame: 12 function resetMediaEngineSettings(a0) { // fn#69421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:9907, offset: 0x01c734cb, size: 55 bytes, params: 2, frame: 12
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_RESET_SETTINGS', return (Dispatcher).dispatch({type: 'MEDIA_ENGINE_RESET_SETTINGS',
overrides: a0}); overrides: a0});
} }
function* _fun69405() { // fn#69405, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:7805, offset: 0x01c72f40, size: 151 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
if (!env2_15()) {
var binding = env2_1;
var value3 = binding(env2_2[15]);
binding = env2_6;
yield value3('debug_logging_enabled', require, binding.getDebugLogging());
if (false) {
return undefined;
}
binding = env2_1;
binding(env2_2[13]).dispatch({type: 'AUDIO_SET_DEBUG_LOGGING', enabled: require});
}
}
}
function* _fun69411() { // fn#69411, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9084:8517, offset: 0x01c73148, size: 150 bytes, params: 1, frame: 18
if (true) {
value = environment.__proto__.__proto__;
if (!env2_15()) {
var binding = env2_1;
var value3 = binding(env2_2[15]);
binding = env2_6;
yield value3('audio_subsystem', require, binding.getAudioSubsystem());
if (false) {
return undefined;
}
binding = env2_1;
binding(env2_2[13]).dispatch({type: 'AUDIO_SET_SUBSYSTEM', subsystem: require});
}
}
} }
global.__d(_fun69366, 8899, [5, 4293, 1379, 4259, 4294, 1934, 1878, 661, 8900, 4291, 3, 683, 6949, 694, 8901, 8903,
8904, 8912,
2]) /* metro module 8899, dependencies: [5, 4293, 1379, 4259, 4294, 1934, 1878, 661, 8900, 4291, 3, 683, 6949, 694, 8901, 8903, 8904, 8912, 2] */;
+51 -47
View File
@@ -1,18 +1,20 @@
/* Metro module 15888; source: actions/AuditLogActionCreators.tsx; dependencies: [15878, 661, 507, 694, 2] */ /* Metro module 15888; source: actions/AuditLogActionCreators.tsx; dependencies: [15878, 661, 507, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import GuildSettingsAuditLogStore from '../modules/guild_settings/audit_log/GuildSettingsAuditLogStore.tsx'; /* Metro dependency 15878 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun122611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:6, offset: 0x0256db73, size: 230 bytes, params: 8, frame: 20 function _fun122611(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:6, offset: 0x0256db73, size: 230 bytes, params: 8, frame: 20
const env0_0 = require; const env0_0 = require;
const isLoading = function() { const isLoading = function() {
return GuildSettingsAuditLogStore.isLoading || GuildSettingsAuditLogStore.isLoadingNextPage; return GuildSettingsAuditLogStore.isLoading || GuildSettingsAuditLogStore.isLoadingNextPage;
}; };
const closure = fetchLogs; const fetchLogs2 = fetchLogs;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const guildSettingsAuditLogStore = importDefault(15878) /* metro dependency 15878: GuildSettingsAuditLogStore */; (FileImportTrackerModule).fileFinishedImporting('actions/AuditLogActionCreators.tsx');
const constantsModule = require(661) /* metro dependency 661: Constants */; exports.fetchLogs = fetchLogs2;
const env0_4 = constantsModule.Endpoints;
const env0_5 = constantsModule.AUDIT_LOG_PAGE_LIMIT;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/AuditLogActionCreators.tsx');
exports.fetchLogs = closure;
exports.fetchNextLogPage = fetchNextLogPage; exports.fetchNextLogPage = fetchNextLogPage;
exports.filterByAction = function(a0, a1) { exports.filterByAction = function(a0, a1) {
if (isLoading()) { if (isLoading()) {
@@ -44,34 +46,32 @@ function _fun122611(global, require, importDefault, importAll, module, exports,
importDefault(dependencyMap[3]).dispatch({type: 'AUDIT_LOG_FILTER_BY_TARGET', targetId: a0}); importDefault(dependencyMap[3]).dispatch({type: 'AUDIT_LOG_FILTER_BY_TARGET', targetId: a0});
return fetchLogs(a1, null, a0); return fetchLogs(a1, null, a0);
}; };
}
function makeRequest_122613(a0, {before, userId, targetId, action}) { // fn#122613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:216, offset: 0x0256dc75, size: 212 bytes, params: 3, frame: 16 function makeRequest_122613(a0, {before, userId, targetId, action}) { // fn#122613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:216, offset: 0x0256dc75, size: 212 bytes, params: 3, frame: 16
const r5 = userId ?? GuildSettingsAuditLogStore.userIdFilter; const r5 = userId ?? GuildSettingsAuditLogStore.userIdFilter;
const r2 = action ?? GuildSettingsAuditLogStore.actionFilter; const r2 = action ?? GuildSettingsAuditLogStore.actionFilter;
const r0 = targetId ?? GuildSettingsAuditLogStore.targetIdFilter; const r0 = targetId ?? GuildSettingsAuditLogStore.targetIdFilter;
const object3 = {}; const object = {};
object3.limit = AUDIT_LOG_PAGE_LIMIT; object.limit = AUDIT_LOG_PAGE_LIMIT;
if (before != null) { if (before != null) {
object3.before = before; object.before = before;
} }
if (r5 != null) { if (r5 != null) {
object3.user_id = r5; object.user_id = r5;
} }
if (r2 != null) { if (r2 != null) {
object3.action_type = r2; object.action_type = r2;
} }
if (r0 != null) { if (r0 != null) {
object3.target_id = r0; object.target_id = r0;
} }
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object4 = {}; const object2 = {};
object4.url = Endpoints.GUILD_AUDIT_LOG(a0); object2.url = Endpoints.GUILD_AUDIT_LOG(a0);
object4.query = object3; object2.query = object;
object4.oldFormErrors = true; object2.oldFormErrors = true;
object4.rejectWithError = true; object2.rejectWithError = true;
return Reflect.apply(get, HTTP, [object4]); return Reflect.apply(get, HTTP, [object2]);
} }
function fetchLogs(a0, a1, a2, a3) { // fn#122614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:618, offset: 0x0256dd49, size: 132 bytes, params: 5, frame: 17 function fetchLogs(a0, a1, a2, a3) { // fn#122614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:618, offset: 0x0256dd49, size: 132 bytes, params: 5, frame: 17
@@ -81,8 +81,29 @@ function fetchLogs(a0, a1, a2, a3) { // fn#122614, source: /ci/build/discord/dis
if (a0 == null) { if (a0 == null) {
return undefined; return undefined;
} }
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'AUDIT_LOG_FETCH_START'}); (Dispatcher).dispatch({type: 'AUDIT_LOG_FETCH_START'});
return makeRequest_122613(a0, {userId: a1, action: a3, targetId: a2}).then(_fun122615, _fun122616); return makeRequest_122613(a0, {userId: a1, action: a3, targetId: a2}).then(_fun122615, _fun122616);
function _fun122615({body}) { // fn#122615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:779, offset: 0x0256ddcd, size: 143 bytes, params: 2, frame: 21
const audit_log_entries = body.audit_log_entries;
const integrations = body.integrations;
const users = body.users;
const webhooks = body.webhooks;
const guild_scheduled_events = body.guild_scheduled_events;
const auto_moderation_rules = body.auto_moderation_rules;
const threads = body.threads;
const application_commands = body.application_commands;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'AUDIT_LOG_FETCH_SUCCESS', logs: audit_log_entries, integrations: integrations, users: users,
webhooks: webhooks, guildScheduledEvents: guild_scheduled_events, automodRules: auto_moderation_rules,
threads: threads, applicationCommands: application_commands});
}
function _fun122616() { // fn#122616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1113, offset: 0x0256de5c, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'AUDIT_LOG_FETCH_FAIL'});
}
} }
function fetchNextLogPage(a0) { // fn#122617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1276, offset: 0x0256de8d, size: 196 bytes, params: 2, frame: 19 function fetchNextLogPage(a0) { // fn#122617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1276, offset: 0x0256de8d, size: 196 bytes, params: 2, frame: 19
@@ -106,29 +127,6 @@ function fetchNextLogPage(a0) { // fn#122617, source: /ci/build/discord/discord/
before: id, isGroupedFetch: value !== undefined ? value : false}); before: id, isGroupedFetch: value !== undefined ? value : false});
return makeRequest_122613(a0, {before: id}).then(_fun122618, _fun122619); return makeRequest_122613(a0, {before: id}).then(_fun122618, _fun122619);
} }
}
function _fun122615({body}) { // fn#122615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:779, offset: 0x0256ddcd, size: 143 bytes, params: 2, frame: 21
const audit_log_entries = body.audit_log_entries;
const integrations = body.integrations;
const users = body.users;
const webhooks = body.webhooks;
const guild_scheduled_events = body.guild_scheduled_events;
const auto_moderation_rules = body.auto_moderation_rules;
const threads = body.threads;
const application_commands = body.application_commands;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'AUDIT_LOG_FETCH_SUCCESS', logs: audit_log_entries, integrations: integrations, users: users,
webhooks: webhooks, guildScheduledEvents: guild_scheduled_events, automodRules: auto_moderation_rules,
threads: threads, applicationCommands: application_commands});
}
function _fun122616() { // fn#122616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1113, offset: 0x0256de5c, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'AUDIT_LOG_FETCH_FAIL'});
}
function _fun122618({body}) { // fn#122618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1530, offset: 0x0256df51, size: 143 bytes, params: 2, frame: 21 function _fun122618({body}) { // fn#122618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1530, offset: 0x0256df51, size: 143 bytes, params: 2, frame: 21
const audit_log_entries = body.audit_log_entries; const audit_log_entries = body.audit_log_entries;
const integrations = body.integrations; const integrations = body.integrations;
@@ -147,6 +145,12 @@ function _fun122618({body}) { // fn#122618, source: /ci/build/discord/discord/di
function _fun122619() { // fn#122619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1874, offset: 0x0256dfe0, size: 49 bytes, params: 1, frame: 12 function _fun122619() { // fn#122619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16096:1874, offset: 0x0256dfe0, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'AUDIT_LOG_FETCH_NEXT_PAGE_FAIL'}); return (Dispatcher).dispatch({type: 'AUDIT_LOG_FETCH_NEXT_PAGE_FAIL'});
} }
}
}
global.__d(_fun122611, 15888, [15878, 661, 507, 694,
2]) /* metro module 15888, dependencies: [15878, 661, 507, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,6 +1,13 @@
/* Metro module 6779; source: actions/AuthorizedAppsActionCreators.tsx; dependencies: [5, 5109, 661, 4041, 694, 507, 2] */ /* Metro module 6779; source: actions/AuthorizedAppsActionCreators.tsx; dependencies: [5, 5109, 661, 4041, 694, 507, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import AuthorizedAppsStore from '../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as TimersModule from '../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
import * as AuthorizedAppsStoreModule from '../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
function _fun53407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:6, offset: 0x01347e61, size: 284 bytes, params: 8, frame: 20 function _fun53407(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:6, offset: 0x01347e61, size: 284 bytes, params: 8, frame: 20
var object2;
const env0_0 = require; const env0_0 = require;
const _arrayLikeToArray_53410 = function(a0, a1) { const _arrayLikeToArray_53410 = function(a0, a1) {
var r0; var r0;
@@ -91,19 +98,13 @@ function _fun53407(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; const BatchInvocationManager = (TimersModule).BatchInvocationManager;
const authorizedAppsStore = importDefault(5109) /* metro dependency 5109: AuthorizedAppsStore */;
const env0_5 = (require(5109) /* metro dependency 5109: AuthorizedAppsStore */).FetchState;
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const BatchInvocationManager = (require(4041) /* metro dependency 4041: Timers */).BatchInvocationManager;
const batchInvocationManager = new BatchInvocationManager(closure, function(a0) { const batchInvocationManager = new BatchInvocationManager(closure, function(a0) {
return AuthorizedAppsStore.getFetchStateForApplication(a0) !== FetchState.FETCHING; return AuthorizedAppsStore.getFetchStateForApplication(a0) !== FetchState.FETCHING;
}); });
object2 = {fetch: fetch_53420, delete: _fun53421}; object = {fetch: fetch_53420, delete: _fun53421};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/AuthorizedAppsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/AuthorizedAppsActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function _createForOfIteratorHelperLoose_53408(a0, a1) { // fn#53408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:163, offset: 0x01347f7d, size: 370 bytes, params: 3, frame: 20 function _createForOfIteratorHelperLoose_53408(a0, a1) { // fn#53408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:163, offset: 0x01347f7d, size: 370 bytes, params: 3, frame: 20
var r6; var r6;
var r9; var r9;
@@ -162,6 +163,11 @@ function _createForOfIteratorHelperLoose_53408(a0, a1) { // fn#53408, source: /c
} }
const TypeError = global.TypeError; const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun53409() { // fn#53409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:734, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
} }
function tokensToAppTokensMap(a0, a1) { // fn#53411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1188, offset: 0x013480ef, size: 123 bytes, params: 3, frame: 16 function tokensToAppTokensMap(a0, a1) { // fn#53411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1188, offset: 0x013480ef, size: 123 bytes, params: 3, frame: 16
@@ -218,7 +224,41 @@ function tokensToAppTokensMap(a0, a1) { // fn#53411, source: /ci/build/discord/d
} }
function _fetchAuthorizedApps() { // fn#53414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1487, offset: 0x0134817d, size: 48 bytes, params: 1, frame: 14 function _fetchAuthorizedApps() { // fn#53414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1487, offset: 0x0134817d, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun53416).apply(this, arguments); return Module00005(_fun53416).apply(this, arguments);
function* _fun53416(a0) { // fn#53416, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1550, offset: 0x013481b6, size: 220 bytes, params: 2, frame: 20
var environment;
if (true) {
var env0_0 = a0;
value = environment.__proto__.__proto__;
env2_1(env2_2[4]).dispatch({type: 'USER_AUTHORIZED_APPS_REQUEST',
request: a0 == null ? {type: 'full'} : {type: 'partial', applicationIds: a0}});
var HTTP = env2_0(env2_2[5]).HTTP;
var get = HTTP.get;
var OAUTH2_TOKENS = env2_6.OAUTH2_TOKENS;
value = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: OAUTH2_TOKENS,
query: {application_ids: a0}}]);
yield value.then(_fun53417, _fun53418);
}
function _fun53417({body}) { // fn#53417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1798, offset: 0x01348292, size: 88 bytes, params: 2, frame: 16
let binding = env3_1;
const value2 = binding(env3_2[4]);
const dispatch = value2.dispatch;
const object = {type: 'USER_AUTHORIZED_APPS_UPDATE'};
binding = env0_0;
object.isFullFetch = binding == null;
object.tokens = env3_10(body, binding);
return Reflect.apply(dispatch, value2, [object]);
}
function _fun53418() { // fn#53418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1916, offset: 0x013482ea, size: 101 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return env3_1(env3_2[4]).dispatch({type: 'USER_AUTHORIZED_APPS_REQUEST_FAILED',
request: env0_0 == null ? {type: 'full'} : {type: 'partial', applicationIds: env0_0}});
}
}
} }
function fetch_53420(a0) { // fn#53420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2082, offset: 0x01348374, size: 85 bytes, params: 2, frame: 12 function fetch_53420(a0) { // fn#53420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2082, offset: 0x01348374, size: 85 bytes, params: 2, frame: 12
@@ -235,48 +275,22 @@ function fetch_53420(a0) { // fn#53420, source: /ci/build/discord/discord/discor
} }
function _fun53421(a0) { // fn#53421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2179, offset: 0x013483c9, size: 101 bytes, params: 2, frame: 16 function _fun53421(a0) { // fn#53421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2179, offset: 0x013483c9, size: 101 bytes, params: 2, frame: 16
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.OAUTH2_TOKEN(a0); object.url = Endpoints.OAUTH2_TOKEN(a0);
Reflect.apply(del, HTTP, [object2]).then(_fun53422); Reflect.apply(del, HTTP, [object]).then(_fun53422);
}
function* _fun53416(a0) { // fn#53416, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1550, offset: 0x013481b6, size: 220 bytes, params: 2, frame: 20
var environment;
if (true) {
var env0_0 = a0;
value = environment.__proto__.__proto__;
env2_1(env2_2[4]).dispatch({type: 'USER_AUTHORIZED_APPS_REQUEST',
request: a0 == null ? {type: 'full'} : {type: 'partial', applicationIds: a0}});
var HTTP = env2_0(env2_2[5]).HTTP;
var get = HTTP.get;
var OAUTH2_TOKENS = env2_6.OAUTH2_TOKENS;
value = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: OAUTH2_TOKENS,
query: {application_ids: a0}}]);
yield value.then(_fun53417, _fun53418);
}
}
function _fun53422() { // fn#53422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2274, offset: 0x0134842e, size: 21 bytes, params: 1, frame: 9 function _fun53422() { // fn#53422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:2274, offset: 0x0134842e, size: 21 bytes, params: 1, frame: 9
env0_0.fetch(); env0_0.fetch();
} }
function _fun53417({body}) { // fn#53417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1798, offset: 0x01348292, size: 88 bytes, params: 2, frame: 16
let binding = env3_1;
const value2 = binding(env3_2[4]);
const dispatch = value2.dispatch;
const object2 = {type: 'USER_AUTHORIZED_APPS_UPDATE'};
binding = env0_0;
object2.isFullFetch = binding == null;
object2.tokens = env3_10(body, binding);
return Reflect.apply(dispatch, value2, [object2]);
} }
function _fun53418() { // fn#53418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1916, offset: 0x013482ea, size: 101 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return env3_1(env3_2[4]).dispatch({type: 'USER_AUTHORIZED_APPS_REQUEST_FAILED',
request: env0_0 == null ? {type: 'full'} : {type: 'partial', applicationIds: env0_0}});
} }
function _fun53412(a0) { // fn#53412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6957:1287, offset: 0x0134816a, size: 19 bytes, params: 2, frame: 2
return [a0, null];
}
global.__d(_fun53407, 6779, [5, 5109, 661, 4041, 694, 507,
2]) /* metro module 6779, dependencies: [5, 5109, 661, 4041, 694, 507, 2] */;
+84 -77
View File
@@ -1,4 +1,11 @@
/* Metro module 8251; source: actions/BoostingActionCreators.tsx; dependencies: [5, 8252, 8253, 3808, 661, 507, 694, 4131, 2] */ /* Metro module 8251; source: actions/BoostingActionCreators.tsx; dependencies: [5, 8252, 8253, 3808, 661, 507, 694, 4131, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import SubscriptionStore from '../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */
import AppliedGuildBoostRecord from '../records/AppliedGuildBoostRecord.tsx'; /* Metro dependency 8252 */
import GuildBoostSlotRecord from '../records/GuildBoostSlotRecord.tsx'; /* Metro dependency 8253 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun65958(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:6, offset: 0x01be7d38, size: 377 bytes, params: 8, frame: 20 function _fun65958(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:6, offset: 0x01be7d38, size: 377 bytes, params: 8, frame: 20
const env0_0 = require; const env0_0 = require;
const closure = function() { const closure = function() {
@@ -6,12 +13,7 @@ function _fun65958(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/BoostingActionCreators.tsx');
const appliedGuildBoostRecord = importDefault(8252) /* metro dependency 8252: AppliedGuildBoostRecord */;
const guildBoostSlotRecord = importDefault(8253) /* metro dependency 8253: GuildBoostSlotRecord */;
const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/BoostingActionCreators.tsx');
exports.fetchAppliedGuildBoostsForGuild = function() { exports.fetchAppliedGuildBoostsForGuild = function() {
return _fetchAppliedGuildBoostsForGuild.apply(this, arguments); return _fetchAppliedGuildBoostsForGuild.apply(this, arguments);
}; };
@@ -34,40 +36,8 @@ function _fun65958(global, require, importDefault, importAll, module, exports, d
exports.uncancelGuildBoostSlot = function() { exports.uncancelGuildBoostSlot = function() {
return _uncancelGuildBoostSlot.apply(this, arguments); return _uncancelGuildBoostSlot.apply(this, arguments);
}; };
}
function _fetchAppliedGuildBoostsForGuild() { // fn#65959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:156, offset: 0x01be7eb1, size: 50 bytes, params: 1, frame: 14 function _fetchAppliedGuildBoostsForGuild() { // fn#65959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:156, offset: 0x01be7eb1, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65961).apply(this, arguments); return Module00005(_fun65961).apply(this, arguments);
}
function _fetchAppliedGuildBoostsForUser() { // fn#65963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:583, offset: 0x01be7ffa, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65965).apply(this, arguments);
}
function _fetchGuildBoostSlots() { // fn#65968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1040, offset: 0x01be810c, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65970).apply(this, arguments);
}
function _fetchAppliedBoostsCooldown() { // fn#65972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1457, offset: 0x01be823f, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65974).apply(this, arguments);
}
function _applyToGuild() { // fn#65975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1941, offset: 0x01be8397, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65977).apply(this, arguments);
}
function _unapplyFromGuild() { // fn#65978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:2588, offset: 0x01be8591, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65980).apply(this, arguments);
}
function _cancelGuildBoostSlot() { // fn#65981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3046, offset: 0x01be86fa, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65983).apply(this, arguments);
}
function _uncancelGuildBoostSlot() { // fn#65984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3417, offset: 0x01be87fd, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun65986).apply(this, arguments);
}
async function _fun65961(a0) { // fn#65961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:243, offset: 0x01be7ef7, size: 236 bytes, params: 2, frame: 20 async function _fun65961(a0) { // fn#65961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:243, offset: 0x01be7ef7, size: 236 bytes, params: 2, frame: 20
var environment; var environment;
let value = a1; let value = a1;
@@ -84,12 +54,12 @@ async function _fun65961(a0) { // fn#65961, source: /ci/build/discord/discord/di
value = environment.__proto__.__proto__; value = environment.__proto__.__proto__;
const HTTP = env2_0(env2_2[5]).HTTP; const HTTP = env2_0(env2_2[5]).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object2 = {}; const object = {};
object2.url = env2_7.APPLIED_GUILD_BOOSTS_FOR_GUILD(a0); object.url = env2_7.APPLIED_GUILD_BOOSTS_FOR_GUILD(a0);
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.query = includeEnded ? {include_ended: true} : value4; object.query = includeEnded ? {include_ended: true} : value4;
object2.rejectWithError = true; object.rejectWithError = true;
await Reflect.apply(get, HTTP, [object2]); await Reflect.apply(get, HTTP, [object]);
const value6 = undefined; const value6 = undefined;
if (false) { if (false) {
return value6; return value6;
@@ -98,8 +68,16 @@ async function _fun65961(a0) { // fn#65961, source: /ci/build/discord/discord/di
value = env2_1(env2_2[6]); value = env2_1(env2_2[6]);
value.dispatch({type: 'GUILD_APPLIED_BOOSTS_FETCH_SUCCESS', guildId: a0, appliedBoosts: value8}); value.dispatch({type: 'GUILD_APPLIED_BOOSTS_FETCH_SUCCESS', guildId: a0, appliedBoosts: value8});
return value8; return value8;
function _fun65962(a0) { // fn#65962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:433, offset: 0x01be7fe3, size: 23 bytes, params: 2, frame: 11
return env3_4.createFromServer(a0);
} }
}
}
function _fetchAppliedGuildBoostsForUser() { // fn#65963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:583, offset: 0x01be7ffa, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65965).apply(this, arguments);
async function _fun65965() { // fn#65965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:668, offset: 0x01be8040, size: 204 bytes, params: 1, frame: 18 async function _fun65965() { // fn#65965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:668, offset: 0x01be8040, size: 204 bytes, params: 1, frame: 18
var environment; var environment;
let value = a0; let value = a0;
@@ -125,8 +103,16 @@ async function _fun65965() { // fn#65965, source: /ci/build/discord/discord/disc
value = env2_1(env2_2[6]); value = env2_1(env2_2[6]);
value.dispatch({type: 'USER_APPLIED_BOOSTS_FETCH_SUCCESS', appliedGuildBoosts: value7}); value.dispatch({type: 'USER_APPLIED_BOOSTS_FETCH_SUCCESS', appliedGuildBoosts: value7});
return value7; return value7;
function _fun65966(a0) { // fn#65966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:813, offset: 0x01be7fe3, size: 23 bytes, params: 2, frame: 11
return env3_4.createFromServer(a0);
} }
}
}
function _fetchGuildBoostSlots() { // fn#65968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1040, offset: 0x01be810c, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65970).apply(this, arguments);
function* _fun65970() { // fn#65970, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1105, offset: 0x01be8149, size: 201 bytes, params: 1, frame: 17 function* _fun65970() { // fn#65970, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1105, offset: 0x01be8149, size: 201 bytes, params: 1, frame: 17
var environment; var environment;
if (false) { if (false) {
@@ -149,8 +135,21 @@ function* _fun65970() { // fn#65970, original name: ?anon_0_, source: /ci/build/
value = env2_1(env2_2[6]); value = env2_1(env2_2[6]);
value.dispatch({type: 'GUILD_BOOST_SLOTS_FETCH_SUCCESS', guildBoostSlots: value6}); value.dispatch({type: 'GUILD_BOOST_SLOTS_FETCH_SUCCESS', guildBoostSlots: value6});
return value6; return value6;
function _fun65971(a0) { // fn#65971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1277, offset: 0x01be8212, size: 45 bytes, params: 2, frame: 15
const binding = env3_5;
const createFromServer = binding.createFromServer;
const binding2 = env3_6;
const getSubscriptionById = binding2.getSubscriptionById;
return Reflect.apply(createFromServer, binding, [a0, Reflect.apply(getSubscriptionById, binding2,
[a0.subscription_id])]);
} }
}
}
function _fetchAppliedBoostsCooldown() { // fn#65972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1457, offset: 0x01be823f, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65974).apply(this, arguments);
function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1534, offset: 0x01be827c, size: 283 bytes, params: 1, frame: 16 function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1534, offset: 0x01be827c, size: 283 bytes, params: 1, frame: 16
var binding; var binding;
var binding2; var binding2;
@@ -158,7 +157,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
var value3; var value3;
var HTTP; var HTTP;
var get; var get;
var object2; var object;
var APPLIED_GUILD_BOOST_COOLDOWN; var APPLIED_GUILD_BOOST_COOLDOWN;
var value4; var value4;
var value5; var value5;
@@ -274,7 +273,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -322,7 +321,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
object2.url = APPLIED_GUILD_BOOST_COOLDOWN; object.url = APPLIED_GUILD_BOOST_COOLDOWN;
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -338,7 +337,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
value4 = Reflect.apply(get, HTTP, [object2]); value4 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -487,7 +486,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -503,7 +502,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
object2.type = 'APPLIED_BOOSTS_COOLDOWN_FETCH_SUCCESS'; object.type = 'APPLIED_BOOSTS_COOLDOWN_FETCH_SUCCESS';
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -519,7 +518,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
object2.endsAt = ends_at; object.endsAt = ends_at;
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -535,7 +534,7 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
throw value; throw value;
} }
try { try {
Reflect.apply(dispatch, value7, [object2]); Reflect.apply(dispatch, value7, [object]);
} catch (error) { } catch (error) {
status = error.status; status = error.status;
if (status === 404) { if (status === 404) {
@@ -553,6 +552,10 @@ function* _fun65974() { // fn#65974, original name: ?anon_0_, source: /ci/build/
return ends_at; return ends_at;
} }
}
function _applyToGuild() { // fn#65975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1941, offset: 0x01be8397, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65977).apply(this, arguments);
async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1990, offset: 0x01be83dd, size: 436 bytes, params: 3, frame: 22 async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1990, offset: 0x01be83dd, size: 436 bytes, params: 3, frame: 22
var r3; var r3;
var binding2; var binding2;
@@ -562,7 +565,7 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
var put; var put;
var APPLIED_GUILD_BOOSTS_FOR_GUILD; var APPLIED_GUILD_BOOSTS_FOR_GUILD;
var value7; var value7;
var object3; var object2;
var value8; var value8;
var value9; var value9;
var value10; var value10;
@@ -761,7 +764,7 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
throw value14; throw value14;
} }
try { try {
object3 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -776,7 +779,7 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
throw value14; throw value14;
} }
try { try {
object3.user_premium_guild_subscription_slot_ids = a1; object2.user_premium_guild_subscription_slot_ids = a1;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -791,7 +794,7 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
throw value14; throw value14;
} }
try { try {
object3.disable_powerup_auto_apply = r1; object2.disable_powerup_auto_apply = r1;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -806,7 +809,7 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
throw value14; throw value14;
} }
try { try {
object.body = object3; object.body = object2;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -1283,8 +1286,11 @@ async function _fun65977(a0, a1) { // fn#65977, source: /ci/build/discord/discor
return r3; return r3;
} }
}
function _unapplyFromGuild() { // fn#65978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:2588, offset: 0x01be8591, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65980).apply(this, arguments);
function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:2645, offset: 0x01be85ce, size: 300 bytes, params: 3, frame: 21 function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:2645, offset: 0x01be85ce, size: 300 bytes, params: 3, frame: 21
var object2;
var binding2; var binding2;
var property; var property;
var value4; var value4;
@@ -1397,7 +1403,7 @@ function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/
throw value10; throw value10;
} }
try { try {
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding3 = env2_2; binding3 = env2_2;
@@ -1457,7 +1463,7 @@ function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/
throw value10; throw value10;
} }
try { try {
object2.url = value5; object.url = value5;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding3 = env2_2; binding3 = env2_2;
@@ -1472,7 +1478,7 @@ function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/
throw value10; throw value10;
} }
try { try {
value6 = Reflect.apply(del, HTTP, [object2]); value6 = Reflect.apply(del, HTTP, [object]);
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding3 = env2_2; binding3 = env2_2;
@@ -1540,6 +1546,10 @@ function* _fun65980(a0, a1) { // fn#65980, original name: ?anon_0_, source: /ci/
} }
} }
}
function _cancelGuildBoostSlot() { // fn#65981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3046, offset: 0x01be86fa, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65983).apply(this, arguments);
function* _fun65983(a0) { // fn#65983, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3111, offset: 0x01be8737, size: 198 bytes, params: 2, frame: 19 function* _fun65983(a0) { // fn#65983, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3111, offset: 0x01be8737, size: 198 bytes, params: 2, frame: 19
if (false) { if (false) {
return undefined; return undefined;
@@ -1548,9 +1558,9 @@ function* _fun65983(a0) { // fn#65983, original name: ?anon_0_, source: /ci/buil
let binding = env2_0; let binding = env2_0;
const HTTP = binding(env2_2[5]).HTTP; const HTTP = binding(env2_2[5]).HTTP;
const post = HTTP.post; const post = HTTP.post;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = env2_7.USER_GUILD_BOOST_SLOT_CANCEL(a0); object.url = env2_7.USER_GUILD_BOOST_SLOT_CANCEL(a0);
yield Reflect.apply(post, HTTP, [object2]); yield Reflect.apply(post, HTTP, [object]);
const value3 = undefined; const value3 = undefined;
if (false) { if (false) {
return value3; return value3;
@@ -1567,6 +1577,10 @@ function* _fun65983(a0) { // fn#65983, original name: ?anon_0_, source: /ci/buil
return fromServer; return fromServer;
} }
}
function _uncancelGuildBoostSlot() { // fn#65984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3417, offset: 0x01be87fd, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun65986).apply(this, arguments);
function* _fun65986(a0) { // fn#65986, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3486, offset: 0x01be883a, size: 198 bytes, params: 2, frame: 19 function* _fun65986(a0) { // fn#65986, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:3486, offset: 0x01be883a, size: 198 bytes, params: 2, frame: 19
if (false) { if (false) {
return undefined; return undefined;
@@ -1575,9 +1589,9 @@ function* _fun65986(a0) { // fn#65986, original name: ?anon_0_, source: /ci/buil
let binding = env2_0; let binding = env2_0;
const HTTP = binding(env2_2[5]).HTTP; const HTTP = binding(env2_2[5]).HTTP;
const post = HTTP.post; const post = HTTP.post;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = env2_7.USER_GUILD_BOOST_SLOT_UNCANCEL(a0); object.url = env2_7.USER_GUILD_BOOST_SLOT_UNCANCEL(a0);
yield Reflect.apply(post, HTTP, [object2]); yield Reflect.apply(post, HTTP, [object]);
const value3 = undefined; const value3 = undefined;
if (false) { if (false) {
return value3; return value3;
@@ -1594,16 +1608,9 @@ function* _fun65986(a0) { // fn#65986, original name: ?anon_0_, source: /ci/buil
return fromServer; return fromServer;
} }
function _fun65962(a0) { // fn#65962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:433, offset: 0x01be7fe3, size: 23 bytes, params: 2, frame: 11
return env3_4.createFromServer(a0);
} }
function _fun65971(a0) { // fn#65971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8436:1277, offset: 0x01be8212, size: 45 bytes, params: 2, frame: 15
const binding = env3_5;
const createFromServer = binding.createFromServer;
const binding2 = env3_6;
const getSubscriptionById = binding2.getSubscriptionById;
return Reflect.apply(createFromServer, binding, [a0, Reflect.apply(getSubscriptionById, binding2,
[a0.subscription_id])]);
} }
global.__d(_fun65958, 8251, [5, 8252, 8253, 3808, 661, 507, 694, 4131,
2]) /* metro module 8251, dependencies: [5, 8252, 8253, 3808, 661, 507, 694, 4131, 2] */;
+72 -67
View File
@@ -1,18 +1,19 @@
/* Metro module 8916; source: actions/CallActionCreators.tsx; dependencies: [1379, 3793, 1878, 661, 4796, 507, 683, 4647, 1244, 8783, 8917, 694, 2] */ /* Metro module 8916; source: actions/CallActionCreators.tsx; dependencies: [1379, 3793, 1878, 661, 4796, 507, 683, 4647, 1244, 8783, 8917, 694, 2] */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import RelationshipStore from '../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import AlertActionCreators from './AlertActionCreators.tsx'; /* Metro dependency 4647 */
import RelationshipActionCreators from './RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun69582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:6, offset: 0x01c77542, size: 232 bytes, params: 8, frame: 19 function _fun69582(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:6, offset: 0x01c77542, size: 232 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; object = {call: call_69583, ring: ring, stopRinging: function(a0, a1) {
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_6 = constantsModule.Endpoints;
const env0_7 = constantsModule.AnalyticEvents;
const env0_8 = constantsModule.ChannelTypesSets;
const env0_9 = constantsModule.ChannelTypes;
object2 = {call: call_69583, ring: ring, stopRinging: function(a0, a1) {
var HTTP = require(dependencyMap[5]).HTTP; var HTTP = require(dependencyMap[5]).HTTP;
var object = {}; var object = {};
object.url = Endpoints.CALL_STOP_RINGING(a0); object.url = Endpoints.CALL_STOP_RINGING(a0);
@@ -21,38 +22,81 @@ function _fun69582(global, require, importDefault, importAll, module, exports, d
object.rejectWithError = true; object.rejectWithError = true;
return HTTP.post(object); return HTTP.post(object);
}}; }};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CallActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/CallActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function call_69583(a0, a1, a2, a3, a4) { // fn#69583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:210, offset: 0x01c7762a, size: 214 bytes, params: 6, frame: 16 function call_69583(a0, a1, a2, a3, a4) { // fn#69583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:210, offset: 0x01c7762a, size: 214 bytes, params: 6, frame: 16
var relationshipStoreBinding;
var HTTP; var HTTP;
var get; var get;
var object2; var object;
const env0_1 = a0; const env0_1 = a0;
const env0_2 = a1; const env0_2 = a1;
const env0_3 = a2; const env0_3 = a2;
const env0_4 = a3; const env0_4 = a3;
const env0_5 = a4; const env0_5 = a4;
if (a3 != null) { if (a3 != null) {
if (RelationshipStore.isBlocked(a3)) { relationshipStoreBinding = RelationshipStore;
if (relationshipStoreBinding.isBlocked(a3)) {
return undefined; return undefined;
} }
var env0_7 = UserStore.getUser(a3); var env0_7 = UserStore.getUser(a3);
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get; get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.CALL(a0); object.url = Endpoints.CALL(a0);
Reflect.apply(get, HTTP, [object2]).then(function(a0) { Reflect.apply(get, HTTP, [object]).then(function(a0) {
doCall(importDefault && a0.body.ringable); doCall(importDefault && a0.body.ringable);
}, _fun69586); }, _fun69586);
} else { } else {
doCall(a2); doCall(a2);
} }
function doCall(a0) { // fn#69584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:237, owner: call_69583.doCall, offset: 0x01c77700, size: 98 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
value.selectVoiceChannel(env0_1, require);
if (a0) {
env0_0.ring(env0_1);
}
if (env0_5 != null) {
env0_5(env0_1);
}
}
function _fun69586() { // fn#69586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:470, offset: 0x01c77789, size: 350 bytes, params: 1, frame: 22
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
Reflect.apply(track, defaultImport, [OPEN_POPOUT, {'type': 'Not Friend', 'source': 'Call'}]);
const defaultImport2 = AlertActionCreators;
const show = defaultImport2.show;
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
const My50nf = t.My50nf;
object.title = Reflect.apply(string, intl, [My50nf]);
const format = intl.format;
const IdKo2z = t.IdKo2z;
const username = env0_7 != null ? env0_7.username : '';
object.body = Reflect.apply(format, intl, [IdKo2z, {username: username}]);
object.confirmText = intl.string(t['PMsq/b']);
string = intl.string;
const BddRzS = t.BddRzS;
object.cancelText = Reflect.apply(string, intl, [BddRzS]);
object.onConfirm = onConfirm_69587;
Reflect.apply(show, defaultImport2, [object]);
function onConfirm_69587() { // fn#69587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:774, offset: 0x01c778e7, size: 67 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(RelationshipActionCreators).addRelationship({userId: importAll,
context: {location: 'Call'}});
}
}
} }
function ring(a0, a1, a2) { // fn#69588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:870, offset: 0x01c7792a, size: 324 bytes, params: 4, frame: 19 function ring(a0, a1, a2) { // fn#69588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:870, offset: 0x01c7792a, size: 324 bytes, params: 4, frame: 19
var object2; var object;
var HTTP; var HTTP;
var post; var post;
const channel = ChannelStore.getChannel(a0); const channel = ChannelStore.getChannel(a0);
@@ -63,12 +107,12 @@ function ring(a0, a1, a2) { // fn#69588, source: /ci/build/discord/discord/disco
if (canRingUsersInChannel2) { if (canRingUsersInChannel2) {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
post = HTTP.post; post = HTTP.post;
object2 = {}; object = {};
object2.url = Endpoints.CALL_RING(a0); object.url = Endpoints.CALL_RING(a0);
object2.body = {recipients: a1, analytics_location: a2}; object.body = {recipients: a1, analytics_location: a2};
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(post, HTTP, [object2]); Reflect.apply(post, HTTP, [object]);
if (channel.type === ChannelTypes.GUILD_VOICE && a1 != null) { if (channel.type === ChannelTypes.GUILD_VOICE && a1 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_LOCAL_RING_START', (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_LOCAL_RING_START',
ringing: a1, ringing: a1,
@@ -84,46 +128,7 @@ function ring(a0, a1, a2) { // fn#69588, source: /ci/build/discord/discord/disco
} }
} }
function doCall(a0) { // fn#69584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:237, owner: call_69583.doCall, offset: 0x01c77700, size: 98 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */;
value.selectVoiceChannel(env0_1, require);
if (a0) {
env0_0.ring(env0_1);
}
if (env0_5 != null) {
env0_5(env0_1);
}
}
function _fun69586() { // fn#69586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:470, offset: 0x01c77789, size: 350 bytes, params: 1, frame: 22
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
Reflect.apply(track, defaultImport, [OPEN_POPOUT, {'type': 'Not Friend', 'source': 'Call'}]);
const defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport2.show;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const My50nf = t.My50nf;
object2.title = Reflect.apply(string, intl, [My50nf]);
const format = intl.format;
const IdKo2z = t.IdKo2z;
const username = env0_7 != null ? env0_7.username : '';
object2.body = Reflect.apply(format, intl, [IdKo2z, {username: username}]);
object2.confirmText = intl.string(t['PMsq/b']);
string = intl.string;
const BddRzS = t.BddRzS;
object2.cancelText = Reflect.apply(string, intl, [BddRzS]);
object2.onConfirm = onConfirm_69587;
Reflect.apply(show, defaultImport2, [object2]);
}
function onConfirm_69587() { // fn#69587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9101:774, offset: 0x01c778e7, size: 67 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(importDefault(8783) /* metro dependency 8783: RelationshipActionCreators */).addRelationship({userId: importAll,
context: {location: 'Call'}});
} }
global.__d(_fun69582, 8916, [1379, 3793, 1878, 661, 4796, 507, 683, 4647, 1244, 8783, 8917, 694,
2]) /* metro module 8916, dependencies: [1379, 3793, 1878, 661, 4796, 507, 683, 4647, 1244, 8783, 8917, 694, 2] */;
@@ -1,27 +1,31 @@
/* Metro module 11359; source: actions/CategoryCollapseActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 11359; source: actions/CategoryCollapseActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun87024(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:6, offset: 0x01fac150, size: 142 bytes, params: 8, frame: 17 function _fun87024(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:6, offset: 0x01fac150, size: 142 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CategoryCollapseActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/CategoryCollapseActionCreators.tsx');
exports.categoryCollapse = categoryCollapse; exports.categoryCollapse = categoryCollapse;
exports.categoryExpand = categoryExpand; exports.categoryExpand = categoryExpand;
exports.categoryCollapseAll = categoryCollapseAll; exports.categoryCollapseAll = categoryCollapseAll;
exports.categoryExpandAll = categoryExpandAll; exports.categoryExpandAll = categoryExpandAll;
}
function categoryCollapse(a0) { // fn#87025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:187, offset: 0x01fac1de, size: 53 bytes, params: 2, frame: 13 function categoryCollapse(a0) { // fn#87025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:187, offset: 0x01fac1de, size: 53 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CATEGORY_COLLAPSE', id: a0}); (Dispatcher).dispatch({type: 'CATEGORY_COLLAPSE', id: a0});
} }
function categoryExpand(a0) { // fn#87026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:284, offset: 0x01fac213, size: 53 bytes, params: 2, frame: 13 function categoryExpand(a0) { // fn#87026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:284, offset: 0x01fac213, size: 53 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CATEGORY_EXPAND', id: a0}); (Dispatcher).dispatch({type: 'CATEGORY_EXPAND', id: a0});
} }
function categoryCollapseAll(a0) { // fn#87027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:382, offset: 0x01fac248, size: 53 bytes, params: 2, frame: 13 function categoryCollapseAll(a0) { // fn#87027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:382, offset: 0x01fac248, size: 53 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CATEGORY_COLLAPSE_ALL', guildId: a0}); (Dispatcher).dispatch({type: 'CATEGORY_COLLAPSE_ALL', guildId: a0});
} }
function categoryExpandAll(a0) { // fn#87028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:494, offset: 0x01fac27d, size: 53 bytes, params: 2, frame: 13 function categoryExpandAll(a0) { // fn#87028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11545:494, offset: 0x01fac27d, size: 53 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CATEGORY_EXPAND_ALL', guildId: a0}); (Dispatcher).dispatch({type: 'CATEGORY_EXPAND_ALL', guildId: a0});
} }
}
global.__d(_fun87024, 11359, [694, 2]) /* metro module 11359, dependencies: [694, 2] */;
@@ -1,13 +1,17 @@
/* Metro module 13020; source: actions/CertifiedDeviceActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 13020; source: actions/CertifiedDeviceActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun99385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13210:6, offset: 0x021c66ad, size: 99 bytes, params: 8, frame: 17 function _fun99385(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13210:6, offset: 0x021c66ad, size: 99 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CertifiedDeviceActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/CertifiedDeviceActionCreators.tsx');
exports.setCertifiedDevices = setCertifiedDevices; exports.setCertifiedDevices = setCertifiedDevices;
}
function setCertifiedDevices(a0, a1) { // fn#99386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13210:189, offset: 0x021c6710, size: 61 bytes, params: 3, frame: 13 function setCertifiedDevices(a0, a1) { // fn#99386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13210:189, offset: 0x021c6710, size: 61 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CERTIFIED_DEVICES_SET', (Dispatcher).dispatch({type: 'CERTIFIED_DEVICES_SET',
applicationId: a0, devices: a1}); applicationId: a0, devices: a1});
} }
}
global.__d(_fun99385, 13020, [694, 2]) /* metro module 13020, dependencies: [694, 2] */;
+123 -88
View File
@@ -1,6 +1,13 @@
/* Metro module 8338; source: actions/ChangeLogActionCreators.tsx; dependencies: [5, 4604, 661, 1933, 694, 3829, 507, 2] */ /* Metro module 8338; source: actions/ChangeLogActionCreators.tsx; dependencies: [5, 4604, 661, 1933, 694, 3829, 507, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChangelogStore from '../modules/changelog/ChangelogStore.tsx'; /* Metro dependency 4604 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ChangelogConstantsModule from '../modules/changelog/ChangelogConstants.tsx'; /* Metro dependency 1933 */
function _fun66388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:6, offset: 0x01bf9aae, size: 272 bytes, params: 8, frame: 19 function _fun66388(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:6, offset: 0x01bf9aae, size: 272 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const cacheBustParam = function() { const cacheBustParam = function() {
var value2 = new global.Date(); var value2 = new global.Date();
@@ -10,11 +17,7 @@ function _fun66388(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {lockChangeLog: lockChangeLog, unlockChangeLog: unlockChangeLog, markChangelogAsSeen: function(a0, a1) {
const changelogStore = importDefault(4604) /* metro dependency 4604: ChangelogStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const env0_6 = (require(1933) /* metro dependency 1933: ChangelogConstants */).ChangelogPlatforms;
object2 = {lockChangeLog: lockChangeLog, unlockChangeLog: unlockChangeLog, markChangelogAsSeen: function(a0, a1) {
importDefault(dependencyMap[4]).dispatch({type: 'CHANGE_LOG_MARK_SEEN', changelogId: a0, changelogDate: a1}); importDefault(dependencyMap[4]).dispatch({type: 'CHANGE_LOG_MARK_SEEN', changelogId: a0, changelogDate: a1});
var LastReceivedChangelogId = require(dependencyMap[5]).LastReceivedChangelogId; var LastReceivedChangelogId = require(dependencyMap[5]).LastReceivedChangelogId;
LastReceivedChangelogId.updateSetting(a0); LastReceivedChangelogId.updateSetting(a0);
@@ -22,20 +25,18 @@ function _fun66388(global, require, importDefault, importAll, module, exports, d
var HTTP = require(dependencyMap[6]).HTTP; var HTTP = require(dependencyMap[6]).HTTP;
HTTP.post({url: Endpoints.CHANGELOG_MESSAGES, body: {changelog_id: a0}, rejectWithError: true}); HTTP.post({url: Endpoints.CHANGELOG_MESSAGES, body: {changelog_id: a0}, rejectWithError: true});
}, fetchChangelogConfig: fetchChangelogConfig, fetchChangelog: fetchChangelog}; }, fetchChangelogConfig: fetchChangelogConfig, fetchChangelog: fetchChangelog};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChangeLogActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ChangeLogActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function lockChangeLog(a0) { // fn#66390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:257, offset: 0x01bf9c14, size: 56 bytes, params: 2, frame: 13 function lockChangeLog(a0) { // fn#66390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:257, offset: 0x01bf9c14, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_LOG_LOCK', key: a0}); (Dispatcher).dispatch({type: 'CHANGE_LOG_LOCK', key: a0});
} }
function unlockChangeLog(a0) { // fn#66391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:324, offset: 0x01bf9c4c, size: 56 bytes, params: 2, frame: 13 function unlockChangeLog(a0) { // fn#66391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:324, offset: 0x01bf9c4c, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_LOG_UNLOCK', key: a0}); (Dispatcher).dispatch({type: 'CHANGE_LOG_UNLOCK', key: a0});
} }
function setChangelogOverride(a0) { // fn#66393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:548, offset: 0x01bf9ce6, size: 76 bytes, params: 2, frame: 15 function setChangelogOverride(a0) { // fn#66393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:548, offset: 0x01bf9ce6, size: 76 bytes, params: 2, frame: 15
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_LOG_SET_OVERRIDE', id: a0}); (Dispatcher).dispatch({type: 'CHANGE_LOG_SET_OVERRIDE', id: a0});
if (a0 != null) { if (a0 != null) {
this.sendChangelogMessage(a0); this.sendChangelogMessage(a0);
} }
@@ -43,12 +44,12 @@ function setChangelogOverride(a0) { // fn#66393, source: /ci/build/discord/disco
function fetchChangelogConfig() { // fn#66395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:779, offset: 0x01bf9d81, size: 104 bytes, params: 1, frame: 18 function fetchChangelogConfig() { // fn#66395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:779, offset: 0x01bf9d81, size: 104 bytes, params: 1, frame: 18
const MOBILE = ChangelogPlatforms.MOBILE; const MOBILE = ChangelogPlatforms.MOBILE;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object2 = {}; const object = {};
object2.url = 'https://cdn.discordapp.com/changelogs/config_' + MOBILE + '.json?' + cacheBustParam(); object.url = 'https://cdn.discordapp.com/changelogs/config_' + MOBILE + '.json?' + cacheBustParam();
object2.rejectWithError = true; object.rejectWithError = true;
return Reflect.apply(get, HTTP, [object2]); return Reflect.apply(get, HTTP, [object]);
} }
function fetchChangelog(a0, a1) { // fn#66396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:945, offset: 0x01bf9de9, size: 76 bytes, params: 3, frame: 13 function fetchChangelog(a0, a1) { // fn#66396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:945, offset: 0x01bf9de9, size: 76 bytes, params: 3, frame: 13
@@ -58,8 +59,6 @@ function fetchChangelog(a0, a1) { // fn#66396, source: /ci/build/discord/discord
const env0_1 = a1; const env0_1 = a1;
const env0_2 = value !== undefined ? value : false; const env0_2 = value !== undefined ? value : false;
return (value2 !== undefined ? value2 : false)(_fun66398)(); return (value2 !== undefined ? value2 : false)(_fun66398)();
}
function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:996, offset: 0x01bf9e40, size: 426 bytes, params: 1, frame: 30 function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8523:996, offset: 0x01bf9e40, size: 426 bytes, params: 1, frame: 30
var r3; var r3;
var concat; var concat;
@@ -68,7 +67,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
var value9; var value9;
var HTTP; var HTTP;
var get; var get;
var object2; var object;
var value10; var value10;
var value11; var value11;
var value12; var value12;
@@ -78,6 +77,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
var dispatch; var dispatch;
var body; var body;
var error; var error;
var changelogStoreBinding;
var fetchChangelog; var fetchChangelog;
var value15; var value15;
if (false) { if (false) {
@@ -102,8 +102,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -121,8 +122,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -140,8 +142,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -159,8 +162,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -178,8 +182,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -197,8 +202,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -208,7 +214,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -216,8 +222,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -234,8 +241,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -252,8 +260,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -270,8 +279,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -288,8 +298,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -308,8 +319,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -319,7 +331,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2.url = value10; object.url = value10;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -327,8 +339,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -338,7 +351,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2.rejectWithError = true; object.rejectWithError = true;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -346,8 +359,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -357,7 +371,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
value11 = Reflect.apply(get, HTTP, [object2]); value11 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -365,8 +379,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -386,8 +401,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -408,8 +424,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -427,8 +444,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -446,8 +464,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -465,8 +484,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -484,8 +504,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -495,7 +516,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -503,8 +524,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -514,7 +536,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2.type = 'CHANGE_LOG_FETCH_SUCCESS'; object.type = 'CHANGE_LOG_FETCH_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -522,8 +544,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -540,8 +563,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -551,7 +575,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2.id = require; object.id = require;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -559,8 +583,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -578,8 +603,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -589,7 +615,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
object2.changelog = body; object.changelog = body;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -597,8 +623,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -608,7 +635,7 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return r3; return r3;
} }
try { try {
Reflect.apply(dispatch, value14, [object2]); Reflect.apply(dispatch, value14, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[4]); value = binding(env2_2[4]);
@@ -616,8 +643,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -635,8 +663,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
if (importDefault === 'en-US') { if (importDefault === 'en-US') {
return value5; return value5;
} }
fetchChangelog = ChangelogStore.fetchChangelog; changelogStoreBinding = ChangelogStore;
yield Reflect.apply(fetchChangelog, ChangelogStore, [require, 'en-US']); fetchChangelog = changelogStoreBinding.fetchChangelog;
yield Reflect.apply(fetchChangelog, changelogStoreBinding, [require, 'en-US']);
value = undefined; value = undefined;
value15 = false; value15 = false;
if (value15) { if (value15) {
@@ -648,3 +677,9 @@ function* _fun66398() { // fn#66398, original name: ?anon_0_, source: /ci/build/
return body; return body;
} }
}
}
global.__d(_fun66388, 8338, [5, 4604, 661, 1933, 694, 3829, 507,
2]) /* metro module 8338, dependencies: [5, 4604, 661, 1933, 694, 3829, 507, 2] */;
@@ -1,33 +1,33 @@
/* Metro module 7874; source: actions/ChangeNicknameActionCreators.tsx; dependencies: [661, 507, 7067, 1244, 2] */ /* Metro module 7874; source: actions/ChangeNicknameActionCreators.tsx; dependencies: [661, 507, 7067, 1244, 2] */
import MessageActionCreators from './MessageActionCreators.tsx'; /* Metro dependency 7067 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun63122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:6, offset: 0x01b711f6, size: 129 bytes, params: 8, frame: 18 function _fun63122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:6, offset: 0x01b711f6, size: 129 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; object = {changeNickname: changeNickname};
object2 = {changeNickname: changeNickname}; (FileImportTrackerModule).fileFinishedImporting('actions/ChangeNicknameActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChangeNicknameActionCreators.tsx'); exports.default = object;
exports.default = object2;
}
function changeNickname(a0, a1, a2, a3) { // fn#63123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:134, offset: 0x01b71277, size: 132 bytes, params: 5, frame: 18 function changeNickname(a0, a1, a2, a3) { // fn#63123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:134, offset: 0x01b71277, size: 132 bytes, params: 5, frame: 18
const env0_0 = a1; const env0_0 = a1;
const env0_1 = a3; const env0_1 = a3;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch; const patch = HTTP.patch;
const object2 = {}; const object = {};
object2.url = Endpoints.GUILD_MEMBER_NICK(a0, a2); object.url = Endpoints.GUILD_MEMBER_NICK(a0, a2);
object2.body = {nick: a3}; object.body = {nick: a3};
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object2]).then(_fun63124, _fun63125); return Reflect.apply(patch, HTTP, [object]).then(_fun63124, _fun63125);
}
function _fun63124({body}) { // fn#63124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:252, offset: 0x01b712fb, size: 215 bytes, params: 2, frame: 20 function _fun63124({body}) { // fn#63124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:252, offset: 0x01b712fb, size: 215 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
const nick = body.nick; const nick = body.nick;
const defaultImport = importDefault(7067) /* metro dependency 7067: MessageActionCreators */; const defaultImport = MessageActionCreators;
defaultImport.sendBotMessage(require, defaultImport.sendBotMessage(require,
importAll == null ? intl.string(t.Vhpd9A) : importAll !== '' ? intl.formatToMarkdownString(t['gz+HRq'], importAll == null ? intl.string(t.Vhpd9A) : importAll !== '' ? intl.formatToMarkdownString(t['gz+HRq'],
{nick: importAll}) : intl.string(t.Vhpd9A)); {nick: importAll}) : intl.string(t.Vhpd9A));
@@ -36,8 +36,8 @@ function _fun63124({body}) { // fn#63124, source: /ci/build/discord/discord/disc
function _fun63125({status}) { // fn#63125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:419, offset: 0x01b713d2, size: 218 bytes, params: 2, frame: 18 function _fun63125({status}) { // fn#63125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8052:419, offset: 0x01b713d2, size: 218 bytes, params: 2, frame: 18
var value; var value;
var defaultImport; var defaultImport;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
var defaultImport2; var defaultImport2;
if (status === 403) { if (status === 403) {
value = environment.__proto__; value = environment.__proto__;
@@ -50,3 +50,9 @@ function _fun63125({status}) { // fn#63125, source: /ci/build/discord/discord/di
} }
} }
}
}
global.__d(_fun63122, 7874, [661, 507, 7067, 1244,
2]) /* metro module 7874, dependencies: [661, 507, 7067, 1244, 2] */;
@@ -1,66 +1,53 @@
/* Metro module 15981; source: actions/ChangeVanityURLActionCreators.tsx; dependencies: [661, 694, 507, 2] */ /* Metro module 15981; source: actions/ChangeVanityURLActionCreators.tsx; dependencies: [661, 694, 507, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun123621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:6, offset: 0x025957c6, size: 183 bytes, params: 8, frame: 18 function _fun123621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:6, offset: 0x025957c6, size: 183 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; object = {openModal: openModal, closeModal: closeModal_123623, removeVanityURL: removeVanityURL,
object2 = {openModal: openModal, closeModal: closeModal_123623, removeVanityURL: removeVanityURL,
changeVanityURL: changeVanityURL, setVanityURL: setVanityURL}; changeVanityURL: changeVanityURL, setVanityURL: setVanityURL};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChangeVanityURLActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ChangeVanityURLActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function openModal(a0, a1) { // fn#123622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:119, offset: 0x0259587d, size: 63 bytes, params: 3, frame: 13 function openModal(a0, a1) { // fn#123622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:119, offset: 0x0259587d, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_VANITY_URL_MODAL_OPEN', (Dispatcher).dispatch({type: 'CHANGE_VANITY_URL_MODAL_OPEN',
guildId: a0, code: a1}); guildId: a0, code: a1});
} }
function closeModal_123623() { // fn#123623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:208, offset: 0x025958bc, size: 49 bytes, params: 1, frame: 13 function closeModal_123623() { // fn#123623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:208, offset: 0x025958bc, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_VANITY_URL_MODAL_CLOSE'}); (Dispatcher).dispatch({type: 'CHANGE_VANITY_URL_MODAL_CLOSE'});
} }
function removeVanityURL(a0) { // fn#123624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:295, offset: 0x025958ed, size: 109 bytes, params: 2, frame: 14 function removeVanityURL(a0) { // fn#123624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:295, offset: 0x025958ed, size: 109 bytes, params: 2, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch; const patch = HTTP.patch;
const object2 = {}; const object = {};
object2.url = Endpoints.GUILD_VANITY_URL(a0); object.url = Endpoints.GUILD_VANITY_URL(a0);
object2.body = {code: null}; object.body = {code: null};
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = true; object.rejectWithError = true;
return Reflect.apply(patch, HTTP, [object2]).then(_fun123625); return Reflect.apply(patch, HTTP, [object]).then(_fun123625);
}
function changeVanityURL(a0, a1) { // fn#123626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:487, offset: 0x0259598d, size: 163 bytes, params: 3, frame: 17
var object2;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANGE_VANITY_URL_MODAL_SUBMIT'});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const patch = HTTP.patch;
object2 = {};
object2.url = Endpoints.GUILD_VANITY_URL(a0);
object2.body = {code: a1};
object2.oldFormErrors = true;
object2.rejectWithError = true;
return Reflect.apply(patch, HTTP, [object2]).then(_fun123627, _fun123628);
}
function setVanityURL(a0, a1) { // fn#123629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:910, offset: 0x02595acf, size: 120 bytes, params: 3, frame: 16
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const patch = HTTP.patch;
const object2 = {};
object2.url = Endpoints.GUILD_VANITY_URL(a0);
object2.body = {code: a1};
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object2]).then(_fun123630, _fun123631);
}
function _fun123625() { // fn#123625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:405, offset: 0x0259595a, size: 51 bytes, params: 1, frame: 12 function _fun123625() { // fn#123625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:405, offset: 0x0259595a, size: 51 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'GUILD_SETTINGS_SET_VANITY_URL', (Dispatcher).dispatch({'type': 'GUILD_SETTINGS_SET_VANITY_URL',
'code': null, 'uses': 0}); 'code': null, 'uses': 0});
} }
}
function changeVanityURL(a0, a1) { // fn#123626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:487, offset: 0x0259598d, size: 163 bytes, params: 3, frame: 17
(Dispatcher).dispatch({type: 'CHANGE_VANITY_URL_MODAL_SUBMIT'});
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
object = {};
object.url = Endpoints.GUILD_VANITY_URL(a0);
object.body = {code: a1};
object.oldFormErrors = true;
object.rejectWithError = true;
return Reflect.apply(patch, HTTP, [object]).then(_fun123627, _fun123628);
function _fun123627({body}) { // fn#123627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:677, offset: 0x02595a30, size: 94 bytes, params: 2, frame: 15 function _fun123627({body}) { // fn#123627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:677, offset: 0x02595a30, size: 94 bytes, params: 2, frame: 15
const code = body.code; const code = body.code;
const uses = body.uses; const uses = body.uses;
@@ -72,11 +59,22 @@ function _fun123627({body}) { // fn#123627, source: /ci/build/discord/discord/di
function _fun123628(a0) { // fn#123628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:796, offset: 0x02595a8e, size: 65 bytes, params: 2, frame: 13 function _fun123628(a0) { // fn#123628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:796, offset: 0x02595a8e, size: 65 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE', (Dispatcher).dispatch({'type': 'CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE',
'error': null, 'hasError': true, error: a0.body}); 'error': null, 'hasError': true, error: a0.body});
return a0; return a0;
} }
}
function setVanityURL(a0, a1) { // fn#123629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:910, offset: 0x02595acf, size: 120 bytes, params: 3, frame: 16
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
const object = {};
object.url = Endpoints.GUILD_VANITY_URL(a0);
object.body = {code: a1};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object]).then(_fun123630, _fun123631);
function _fun123630({body}) { // fn#123630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:1021, offset: 0x02595b47, size: 77 bytes, params: 2, frame: 15 function _fun123630({body}) { // fn#123630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:1021, offset: 0x02595b47, size: 77 bytes, params: 2, frame: 15
const code = body.code; const code = body.code;
const uses = body.uses; const uses = body.uses;
@@ -85,3 +83,15 @@ function _fun123630({body}) { // fn#123630, source: /ci/build/discord/discord/di
value.dispatch({type: 'GUILD_SETTINGS_SET_VANITY_URL', code: code, uses: uses}); value.dispatch({type: 'GUILD_SETTINGS_SET_VANITY_URL', code: code, uses: uses});
} }
function _fun123631(a0) { // fn#123631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16189:1122, offset: 0x02595a8e, size: 65 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({'type': 'CHANGE_VANITY_URL_MODAL_SUBMIT_FAILURE',
'error': null, 'hasError': true, error: a0.body});
return a0;
}
}
}
global.__d(_fun123621, 15981, [661, 694, 507, 2]) /* metro module 15981, dependencies: [661, 694, 507, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,22 +1,29 @@
/* Metro module 12152; source: actions/ChannelCollapseActionCreators.tsx; dependencies: [4864, 694, 6612, 2] */ /* Metro module 12152; source: actions/ChannelCollapseActionCreators.tsx; dependencies: [4864, 694, 6612, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserGuildSettingsStore from '../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import UserGuildSettingsManager from '../modules/user_settings/UserGuildSettingsManager.tsx'; /* Metro dependency 6612 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun93218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:6, offset: 0x020ab069, size: 133 bytes, params: 8, frame: 18 function _fun93218(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:6, offset: 0x020ab069, size: 133 bytes, params: 8, frame: 18
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */; object = {update: update_93219, toggleCollapseGuild: toggleCollapseGuild};
object2 = {update: update_93219, toggleCollapseGuild: toggleCollapseGuild}; (FileImportTrackerModule).fileFinishedImporting('actions/ChannelCollapseActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelCollapseActionCreators.tsx'); exports.default = object;
exports.default = object2;
}
function update_93219(a0) { // fn#93219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:109, offset: 0x020ab0ee, size: 54 bytes, params: 2, frame: 13 function update_93219(a0) { // fn#93219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:109, offset: 0x020ab0ee, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_COLLAPSE', channelId: a0}); (Dispatcher).dispatch({type: 'CHANNEL_COLLAPSE', channelId: a0});
} }
function toggleCollapseGuild(a0) { // fn#93220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:176, offset: 0x020ab124, size: 103 bytes, params: 2, frame: 18 function toggleCollapseGuild(a0) { // fn#93220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12338:176, offset: 0x020ab124, size: 103 bytes, params: 2, frame: 18
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, const defaultImport = UserGuildSettingsManager;
{hide_muted_channels: !UserGuildSettingsStore.isGuildCollapsed(a0)}); const saveUserGuildSettings = defaultImport.saveUserGuildSettings;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_TOGGLE_COLLAPSE_MUTED', const userGuildSettingsStoreBinding = UserGuildSettingsStore;
Reflect.apply(saveUserGuildSettings, defaultImport, [a0,
{hide_muted_channels: !userGuildSettingsStoreBinding.isGuildCollapsed(a0)}]);
(Dispatcher).dispatch({type: 'GUILD_TOGGLE_COLLAPSE_MUTED',
guildId: a0}); guildId: a0});
} }
}
global.__d(_fun93218, 12152, [4864, 694, 6612, 2]) /* metro module 12152, dependencies: [4864, 694, 6612, 2] */;
@@ -1,12 +1,14 @@
/* Metro module 11166; source: actions/ChannelFollowerActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */ /* Metro module 11166; source: actions/ChannelFollowerActionCreators.tsx; dependencies: [5, 661, 507, 694, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun85255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:6, offset: 0x01f69009, size: 187 bytes, params: 8, frame: 19 function _fun85255(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85255, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:6, offset: 0x01f69009, size: 187 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {createChannelFollower: function(a0, a1) {
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {createChannelFollower: function(a0, a1) {
var HTTP = require(dependencyMap[2]).HTTP; var HTTP = require(dependencyMap[2]).HTTP;
var object = {}; var object = {};
object.url = Endpoints.CHANNEL_FOLLOWERS(a1); object.url = Endpoints.CHANNEL_FOLLOWERS(a1);
@@ -16,27 +18,13 @@ function _fun85255(global, require, importDefault, importAll, module, exports, d
return HTTP.post(object); return HTTP.post(object);
}, fetchChannelFollowerStats: fetchChannelFollowerStats, dismissPublishBump: dismissPublishBump, }, fetchChannelFollowerStats: fetchChannelFollowerStats, dismissPublishBump: dismissPublishBump,
permanentlyHidePublishBump: permanentlyHidePublishBump}; permanentlyHidePublishBump: permanentlyHidePublishBump};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelFollowerActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ChannelFollowerActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function fetchChannelFollowerStats(a0) { // fn#85257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:298, offset: 0x01f69122, size: 36 bytes, params: 2, frame: 11 function fetchChannelFollowerStats(a0) { // fn#85257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:298, offset: 0x01f69122, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0; const env0_0 = a0;
return env0_3(_fun85259)(); return Module00005(_fun85259)();
}
function dismissPublishBump(a0) { // fn#85260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:682, offset: 0x01f69260, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED',
messageId: a0});
}
function permanentlyHidePublishBump(a0) { // fn#85261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:785, offset: 0x01f69298, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY',
channelId: a0});
}
function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:304, offset: 0x01f69151, size: 271 bytes, params: 1, frame: 19 function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:304, offset: 0x01f69151, size: 271 bytes, params: 1, frame: 19
var object4; var object2;
var binding2; var binding2;
var property; var property;
var value4; var value4;
@@ -44,7 +32,7 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
var get; var get;
var CHANNEL_FOLLOWER_STATS; var CHANNEL_FOLLOWER_STATS;
var value6; var value6;
var object3; var object;
var value7; var value7;
var value8; var value8;
var value9; var value9;
@@ -104,7 +92,7 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
@@ -128,37 +116,37 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.url = value6; object2.url = value6;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object3.channel_id = require; object.channel_id = require;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.body = object3; object2.body = object;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.oldFormErrors = true; object2.oldFormErrors = true;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.rejectWithError = true; object2.rejectWithError = true;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
value7 = Reflect.apply(get, HTTP, [object4]); value7 = Reflect.apply(get, HTTP, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
@@ -198,12 +186,12 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.type = 'CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS'; object2.type = 'CHANNEL_FOLLOWER_STATS_FETCH_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
@@ -213,7 +201,7 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.stats = body; object2.stats = body;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
@@ -222,15 +210,30 @@ function* _fun85259() { // fn#85259, original name: ?anon_0_, source: /ci/build/
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
object4.channelId = require; object2.channelId = require;
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
try { try {
Reflect.apply(dispatch, value10, [object4]); Reflect.apply(dispatch, value10, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding40; break exceptionLanding40;
} }
} }
} }
}
function dismissPublishBump(a0) { // fn#85260, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:682, offset: 0x01f69260, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_DISMISSED',
messageId: a0});
}
function permanentlyHidePublishBump(a0) { // fn#85261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11352:785, offset: 0x01f69298, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_FOLLOWING_PUBLISH_BUMP_HIDE_PERMANENTLY',
channelId: a0});
}
}
global.__d(_fun85255, 11166, [5, 661, 507, 694, 2]) /* metro module 11166, dependencies: [5, 661, 507, 694, 2] */;
+109 -108
View File
@@ -1,72 +1,22 @@
/* Metro module 11168; source: actions/ChannelPinActionCreators.tsx; dependencies: [5, 11169, 661, 7153, 507, 4131, 1244, 4647, 694, 2] */ /* Metro module 11168; source: actions/ChannelPinActionCreators.tsx; dependencies: [5, 11169, 661, 7153, 507, 4131, 1244, 4647, 694, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelPinsStore from '../stores/ChannelPinsStore.tsx'; /* Metro dependency 11169 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelPinsStoreModule from '../stores/ChannelPinsStore.tsx'; /* Metro dependency 11169 */
function _fun85264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:6, offset: 0x01f6941e, size: 242 bytes, params: 8, frame: 19 function _fun85264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:6, offset: 0x01f6941e, size: 242 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {pinMessage: pinMessage, unpinMessage: unpinMessage, ackPins: ackPins, fetchPins: fetchPins};
const channelPinsStore = importDefault(11169) /* metro dependency 11169: ChannelPinsStore */; (FileImportTrackerModule).fileFinishedImporting('actions/ChannelPinActionCreators.tsx');
const env0_5 = (require(11169) /* metro dependency 11169: ChannelPinsStore */).FetchState; exports.default = object;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_6 = constantsModule.AbortCodes;
const env0_7 = constantsModule.Endpoints;
const env0_8 = constantsModule.MAX_PINS_PER_CHANNEL;
object2 = {pinMessage: pinMessage, unpinMessage: unpinMessage, ackPins: ackPins, fetchPins: fetchPins};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelPinActionCreators.tsx');
exports.default = object2;
}
function pinMessage(a0, a1) { // fn#85265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:221, offset: 0x01f69510, size: 43 bytes, params: 3, frame: 11 function pinMessage(a0, a1) { // fn#85265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:221, offset: 0x01f69510, size: 43 bytes, params: 3, frame: 11
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
return env0_3(_fun85267)(); return Module00005(_fun85267)();
}
function unpinMessage(a0, a1) { // fn#85269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1572, offset: 0x01f69aad, size: 43 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return env0_3(_fun85271)();
}
function ackPins(a0) { // fn#85273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1981, offset: 0x01f69cb4, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_PINS_ACK', channelId: a0});
}
function fetchPins(a0, a1) { // fn#85274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2049, offset: 0x01f69cea, size: 442 bytes, params: 3, frame: 23
var r2;
var pins;
var object3;
var HTTP;
var get;
var object4;
const env0_0 = a0;
const value = undefined;
const reset = a1 == null ? value : a1.reset;
const r11 = reset != null && reset;
const r7 = (a1 == null ? value : a1.limit) ?? 25;
const before = a1 == null ? value : a1.before;
if (r11) {
r2 = r11;
} else {
pins = ChannelPinsStore.getPins(a0);
r2 = pins == null || FetchState.FAILED === pins.state || !(FetchState.LOADING === pins.state || FetchState.LOADED_FINISHED === pins.state) && (FetchState.LOADED_HAS_MORE !== pins.state ? value : before == null ? pins.items.length === 0 : pins.items.at(-1).pinnedAt === before);
}
if (r2) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_PINNED_MESSAGES',
channelId: a0,
reset: r11});
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object3 = {'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true};
object3.url = Endpoints.PINS(a0);
object4 = {limit: r7};
object4.before = before == null ? value : before.toISOString();
object3.query = object4;
Reflect.apply(get, HTTP, [object3]).then(_fun85275, _fun85276);
}
return value;
}
function* _fun85267() { // fn#85267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:231, offset: 0x01f69546, size: 183 bytes, params: 1, frame: 20 function* _fun85267() { // fn#85267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:231, offset: 0x01f69546, size: 183 bytes, params: 1, frame: 20
var environment; var environment;
if (true) { if (true) {
@@ -81,44 +31,11 @@ function* _fun85267() { // fn#85267, original name: ?anon_0_, source: /ci/build/
} }
var HTTP = env2_0(env2_2[4]).HTTP; var HTTP = env2_0(env2_2[4]).HTTP;
var put = HTTP.put; var put = HTTP.put;
var object2 = {}; var object = {};
object2.url = env2_7.PIN(id, importDefault); object.url = env2_7.PIN(id, importDefault);
object2.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(put, HTTP, [object2]).catch(_fun85268); Reflect.apply(put, HTTP, [object]).catch(_fun85268);
} }
}
function* _fun85271() { // fn#85271, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1582, offset: 0x01f69ae3, size: 178 bytes, params: 1, frame: 19
var environment;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[3]);
yield value3.unarchiveThreadIfNecessary(require.id);
if (false) {
return undefined;
}
var HTTP = env2_0(env2_2[4]).HTTP;
var del = HTTP.del;
binding = env2_7;
var PIN = binding.PIN;
Reflect.apply(del, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true, url: Reflect.apply(PIN,
binding, [require.id, importDefault])}]).catch(_fun85272);
}
}
function _fun85275(a0) { // fn#85275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2634, offset: 0x01f69ea4, size: 93 bytes, params: 2, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_PINNED_MESSAGES_SUCCESS',
pins: a0.body.items, channelId: env0_0, hasMore: a0.body.has_more});
}
function _fun85276() { // fn#85276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2751, offset: 0x01f69f01, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_PINNED_MESSAGES_FAILURE',
channelId: env0_0});
}
function _fun85268(a0) { // fn#85268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:371, offset: 0x01f695fd, size: 1200 bytes, params: 2, frame: 21 function _fun85268(a0) { // fn#85268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:371, offset: 0x01f695fd, size: 1200 bytes, params: 2, frame: 21
var r1; var r1;
var r6; var r6;
@@ -255,32 +172,116 @@ function _fun85268(a0) { // fn#85268, source: /ci/build/discord/discord/discord_
const binding12 = env3_2; const binding12 = env3_2;
const value24 = binding(binding12[7]); const value24 = binding(binding12[7]);
const show = value24.show; const show = value24.show;
const object2 = {title: r7, body: r6}; const object = {title: r7, body: r6};
binding = env3_0; binding = env3_0;
intl = binding(binding12[6]).intl; intl = binding(binding12[6]).intl;
string = intl.string; string = intl.string;
const BddRzS = binding(binding12[6]).t.BddRzS; const BddRzS = binding(binding12[6]).t.BddRzS;
object2.confirmText = Reflect.apply(string, intl, [BddRzS]); object.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, value24, [object2]); Reflect.apply(show, value24, [object]);
} }
}
}
function unpinMessage(a0, a1) { // fn#85269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1572, offset: 0x01f69aad, size: 43 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun85271)();
function* _fun85271() { // fn#85271, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1582, offset: 0x01f69ae3, size: 178 bytes, params: 1, frame: 19
var environment;
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[3]);
yield value3.unarchiveThreadIfNecessary(require.id);
if (false) {
return undefined;
}
var HTTP = env2_0(env2_2[4]).HTTP;
var del = HTTP.del;
binding = env2_7;
var PIN = binding.PIN;
Reflect.apply(del, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true, url: Reflect.apply(PIN,
binding, [require.id, importDefault])}]).catch(_fun85272);
}
function _fun85272() { // fn#85272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1722, offset: 0x01f69b95, size: 287 bytes, params: 1, frame: 21 function _fun85272() { // fn#85272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1722, offset: 0x01f69b95, size: 287 bytes, params: 1, frame: 21
let binding = env3_1; let binding = env3_1;
const binding2 = env3_2; const binding2 = env3_2;
const value2 = binding(binding2[7]); const value2 = binding(binding2[7]);
const show = value2.show; const show = value2.show;
const object2 = {}; const object = {};
binding = env3_0; binding = env3_0;
let intl = binding(binding2[6]).intl; let intl = binding(binding2[6]).intl;
object2.title = intl.string(binding(binding2[6]).t.xFjByk); object.title = intl.string(binding(binding2[6]).t.xFjByk);
intl = binding(binding2[6]).intl; intl = binding(binding2[6]).intl;
object2.body = intl.string(binding(binding2[6]).t['0R/Toc']); object.body = intl.string(binding(binding2[6]).t['0R/Toc']);
intl = binding(binding2[6]).intl; intl = binding(binding2[6]).intl;
object2.confirmText = intl.string(binding(binding2[6]).t['7NqTJn']); object.confirmText = intl.string(binding(binding2[6]).t['7NqTJn']);
intl = binding(binding2[6]).intl; intl = binding(binding2[6]).intl;
object2.cancelText = intl.string(binding(binding2[6]).t['ETE/oC']); object.cancelText = intl.string(binding(binding2[6]).t['ETE/oC']);
const unpinMessage = env3_9.unpinMessage; const unpinMessage = env3_9.unpinMessage;
object2.onConfirm = unpinMessage.bind(env3_9, require, importDefault); object.onConfirm = unpinMessage.bind(env3_9, require, importDefault);
return Reflect.apply(show, value2, [object2]); return Reflect.apply(show, value2, [object]);
} }
}
}
function ackPins(a0) { // fn#85273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:1981, offset: 0x01f69cb4, size: 54 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_PINS_ACK', channelId: a0});
}
function fetchPins(a0, a1) { // fn#85274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2049, offset: 0x01f69cea, size: 442 bytes, params: 3, frame: 23
var r2;
var pins;
var object;
var HTTP;
var get;
var object2;
const env0_0 = a0;
const value = undefined;
const reset = a1 == null ? value : a1.reset;
const r11 = reset != null && reset;
const r7 = (a1 == null ? value : a1.limit) ?? 25;
const before = a1 == null ? value : a1.before;
if (r11) {
r2 = r11;
} else {
pins = ChannelPinsStore.getPins(a0);
r2 = pins == null || FetchState.FAILED === pins.state || !(FetchState.LOADING === pins.state || FetchState.LOADED_FINISHED === pins.state) && (FetchState.LOADED_HAS_MORE !== pins.state ? value : before == null ? pins.items.length === 0 : pins.items.at(-1).pinnedAt === before);
}
if (r2) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_PINNED_MESSAGES',
channelId: a0,
reset: r11});
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object = {'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true};
object.url = Endpoints.PINS(a0);
object2 = {limit: r7};
object2.before = before == null ? value : before.toISOString();
object.query = object2;
Reflect.apply(get, HTTP, [object]).then(_fun85275, _fun85276);
}
return value;
function _fun85275(a0) { // fn#85275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2634, offset: 0x01f69ea4, size: 93 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'LOAD_PINNED_MESSAGES_SUCCESS',
pins: a0.body.items, channelId: env0_0, hasMore: a0.body.has_more});
}
function _fun85276() { // fn#85276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11354:2751, offset: 0x01f69f01, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'LOAD_PINNED_MESSAGES_FAILURE',
channelId: env0_0});
}
}
}
global.__d(_fun85264, 11168, [5, 11169, 661, 7153, 507, 4131, 1244, 4647, 694,
2]) /* metro module 11168, dependencies: [5, 11169, 661, 7153, 507, 4131, 1244, 4647, 694, 2] */;
+34 -31
View File
@@ -1,80 +1,79 @@
/* Metro module 7712; source: actions/ChannelRTCActionCreators.tsx; dependencies: [661, 694, 683, 4863, 1239, 2] */ /* Metro module 7712; source: actions/ChannelRTCActionCreators.tsx; dependencies: [661, 694, 683, 4863, 1239, 2] */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ComponentDispatchUtilsModule from '../utils/ComponentDispatchUtils.tsx'; /* Metro dependency 1239 */
function _fun61639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:6, offset: 0x01b46f42, size: 261 bytes, params: 8, frame: 18 function _fun61639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:6, offset: 0x01b46f42, size: 261 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */; object = {rebuildRTCActiveChannels: rebuildRTCActiveChannels, selectParticipant: selectParticipant,
const env0_3 = constantsModule.AppContext;
const env0_4 = constantsModule.AnalyticEvents;
const env0_5 = constantsModule.ComponentActions;
object2 = {rebuildRTCActiveChannels: rebuildRTCActiveChannels, selectParticipant: selectParticipant,
popoutParticipant: popoutParticipant, returnParticipant: returnParticipant, updateLayout: updateLayout, popoutParticipant: popoutParticipant, returnParticipant: returnParticipant, updateLayout: updateLayout,
toggleParticipants: toggleParticipants, toggleVoiceParticipantsHidden: toggleVoiceParticipantsHidden, toggleParticipants: toggleParticipants, toggleVoiceParticipantsHidden: toggleVoiceParticipantsHidden,
updateStageStreamSize: updateStageStreamSize, updateStageStreamSize: updateStageStreamSize,
updateStageVideoLimitBoostUpsellDismissed: updateStageVideoLimitBoostUpsellDismissed, updateStageVideoLimitBoostUpsellDismissed: updateStageVideoLimitBoostUpsellDismissed,
updateChatOpen: updateChatOpen, jumpToVoiceChannelMessage: jumpToVoiceChannelMessage}; updateChatOpen: updateChatOpen, jumpToVoiceChannelMessage: jumpToVoiceChannelMessage};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelRTCActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ChannelRTCActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function rebuildRTCActiveChannels() { // fn#61640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:164, offset: 0x01b47047, size: 49 bytes, params: 1, frame: 13 function rebuildRTCActiveChannels() { // fn#61640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:164, offset: 0x01b47047, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_ACTIVE_CHANNELS'}); (Dispatcher).dispatch({type: 'CHANNEL_RTC_ACTIVE_CHANNELS'});
} }
function selectParticipant(a0, a1) { // fn#61641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:247, offset: 0x01b47078, size: 61 bytes, params: 3, frame: 13 function selectParticipant(a0, a1) { // fn#61641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:247, offset: 0x01b47078, size: 61 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_SELECT_PARTICIPANT', (Dispatcher).dispatch({type: 'CHANNEL_RTC_SELECT_PARTICIPANT',
channelId: a0, id: a1}); channelId: a0, id: a1});
} }
function popoutParticipant(a0, a1) { // fn#61642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:346, offset: 0x01b470b5, size: 64 bytes, params: 3, frame: 13 function popoutParticipant(a0, a1) { // fn#61642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:346, offset: 0x01b470b5, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_POPOUT_PARTICIPANT', (Dispatcher).dispatch({type: 'CHANNEL_RTC_POPOUT_PARTICIPANT',
channelId: a0, participantId: a1}); channelId: a0, participantId: a1});
} }
function returnParticipant(a0, a1) { // fn#61643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:456, offset: 0x01b470f5, size: 64 bytes, params: 3, frame: 13 function returnParticipant(a0, a1) { // fn#61643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:456, offset: 0x01b470f5, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_RETURN_PARTICIPANT', (Dispatcher).dispatch({type: 'CHANNEL_RTC_RETURN_PARTICIPANT',
channelId: a0, participantId: a1}); channelId: a0, participantId: a1});
} }
function updateLayout(a0, a1) { // fn#61644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:566, offset: 0x01b47135, size: 163 bytes, params: 3, frame: 21 function updateLayout(a0, a1) { // fn#61644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:566, offset: 0x01b47135, size: 163 bytes, params: 3, frame: 21
let value = a2; let value = a2;
const r4 = value !== undefined ? value : AppContext.APP; const r4 = value !== undefined ? value : AppContext.APP;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const VIDEO_LAYOUT_TOGGLED = AnalyticEvents.VIDEO_LAYOUT_TOGGLED; const VIDEO_LAYOUT_TOGGLED = AnalyticEvents.VIDEO_LAYOUT_TOGGLED;
const object2 = {video_layout: a1}; const object = {video_layout: a1};
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */; value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
copyDataProperties(object2, value.collectVoiceAnalyticsMetadata(a0), value); copyDataProperties(object, value.collectVoiceAnalyticsMetadata(a0), value);
Reflect.apply(track, defaultImport, [VIDEO_LAYOUT_TOGGLED, object2]); Reflect.apply(track, defaultImport, [VIDEO_LAYOUT_TOGGLED, object]);
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'CHANNEL_RTC_UPDATE_LAYOUT', channelId: a0, layout: a1, appContext: r4}); value.dispatch({type: 'CHANNEL_RTC_UPDATE_LAYOUT', channelId: a0, layout: a1, appContext: r4});
} }
function toggleParticipants(a0, a1) { // fn#61645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:779, offset: 0x01b471d8, size: 64 bytes, params: 3, frame: 13 function toggleParticipants(a0, a1) { // fn#61645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:779, offset: 0x01b471d8, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_PARTICIPANTS_OPEN', (Dispatcher).dispatch({type: 'CHANNEL_RTC_UPDATE_PARTICIPANTS_OPEN',
channelId: a0, participantsOpen: a1}); channelId: a0, participantsOpen: a1});
} }
function toggleVoiceParticipantsHidden(a0, a1) { // fn#61646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:899, offset: 0x01b47218, size: 64 bytes, params: 3, frame: 13 function toggleVoiceParticipantsHidden(a0, a1) { // fn#61646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:899, offset: 0x01b47218, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_VOICE_PARTICIPANTS_HIDDEN', (Dispatcher).dispatch({type: 'CHANNEL_RTC_UPDATE_VOICE_PARTICIPANTS_HIDDEN',
channelId: a0, voiceParticipantsHidden: a1}); channelId: a0, voiceParticipantsHidden: a1});
} }
function updateStageStreamSize(a0, a1) { // fn#61647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1045, offset: 0x01b47258, size: 64 bytes, params: 3, frame: 13 function updateStageStreamSize(a0, a1) { // fn#61647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1045, offset: 0x01b47258, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_STREAM_SIZE', (Dispatcher).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_STREAM_SIZE',
channelId: a0, large: a1}); channelId: a0, large: a1});
} }
function updateStageVideoLimitBoostUpsellDismissed(a0, a1) { // fn#61648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1157, offset: 0x01b47298, size: 64 bytes, params: 3, frame: 13 function updateStageVideoLimitBoostUpsellDismissed(a0, a1) { // fn#61648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1157, offset: 0x01b47298, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_VIDEO_LIMIT_BOOST_UPSELL_DISMISSED', (Dispatcher).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_VIDEO_LIMIT_BOOST_UPSELL_DISMISSED',
channelId: a0, dismissed: a1}); channelId: a0, dismissed: a1});
} }
function updateChatOpen(a0, a1) { // fn#61649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1316, offset: 0x01b472d8, size: 140 bytes, params: 3, frame: 18 function updateChatOpen(a0, a1) { // fn#61649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1316, offset: 0x01b472d8, size: 140 bytes, params: 3, frame: 18
var ComponentDispatch; var ComponentDispatch;
const env0_0 = a0; const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_CHAT_OPEN', (Dispatcher).dispatch({type: 'CHANNEL_RTC_UPDATE_CHAT_OPEN',
channelId: a0, chatOpen: a1}); channelId: a0, chatOpen: a1});
if (a1) { if (a1) {
global.setTimeout(_fun61650, 0); global.setTimeout(_fun61650, 0);
@@ -82,17 +81,21 @@ function updateChatOpen(a0, a1) { // fn#61649, source: /ci/build/discord/discord
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch; ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.FOCUS_CHAT_BUTTON); ComponentDispatch.dispatch(ComponentActions.FOCUS_CHAT_BUTTON);
} }
}
function jumpToVoiceChannelMessage(a0, a1, a2, a3) { // fn#61651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1572, offset: 0x01b473a7, size: 78 bytes, params: 5, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_JUMP_TO_VOICE_CHANNEL_MESSAGE',
guildId: a0, channelId: a1, messageId: a2, jumpType: a3});
}
function _fun61650() { // fn#61650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1429, offset: 0x01b47364, size: 67 bytes, params: 1, frame: 15 function _fun61650() { // fn#61650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1429, offset: 0x01b47364, size: 67 bytes, params: 1, frame: 15
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch; const ComponentDispatch = (ComponentDispatchUtilsModule).ComponentDispatch;
const dispatch = ComponentDispatch.dispatch; const dispatch = ComponentDispatch.dispatch;
const FOCUS_CHANNEL_TEXT_AREA = ComponentActions.FOCUS_CHANNEL_TEXT_AREA; const FOCUS_CHANNEL_TEXT_AREA = ComponentActions.FOCUS_CHANNEL_TEXT_AREA;
Reflect.apply(dispatch, ComponentDispatch, [FOCUS_CHANNEL_TEXT_AREA, {channelId: env0_0}]); Reflect.apply(dispatch, ComponentDispatch, [FOCUS_CHANNEL_TEXT_AREA, {channelId: env0_0}]);
} }
}
function jumpToVoiceChannelMessage(a0, a1, a2, a3) { // fn#61651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1572, offset: 0x01b473a7, size: 78 bytes, params: 5, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_RTC_JUMP_TO_VOICE_CHANNEL_MESSAGE',
guildId: a0, channelId: a1, messageId: a2, jumpType: a3});
}
}
global.__d(_fun61639, 7712, [661, 694, 683, 4863, 1239,
2]) /* metro module 7712, dependencies: [661, 694, 683, 4863, 1239, 2] */;
@@ -1,13 +1,20 @@
/* Metro module 8148; source: actions/ChannelSettingsActionCreators.tsx; dependencies: [5, 8149, 1379, 661, 694, 4008, 7153, 507, 6931, 2] */ /* Metro module 8148; source: actions/ChannelSettingsActionCreators.tsx; dependencies: [5, 8149, 1379, 661, 694, 4008, 7153, 507, 6931, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ChannelSettingsStore from '../stores/ChannelSettingsStore.tsx'; /* Metro dependency 8149 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as RootNavigationRefNativeModule from '../modules/main_tabs_v2/RootNavigationRef.native.tsx'; /* Metro dependency 4008 */
function _fun65285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:6, offset: 0x01bcadbe, size: 369 bytes, params: 8, frame: 29 function _fun65285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:6, offset: 0x01bcadbe, size: 369 bytes, params: 8, frame: 29
var object2;
const env0_0 = require; const env0_0 = require;
const closure = init_65286; const init_652862 = init_65286;
const closure2 = open_65287; const open_652872 = open_65287;
const closure3 = close_65288; const close_652882 = close_65288;
const closure4 = setSection_65289; const setSection_652892 = setSection_65289;
const closure5 = selectPermissionOverwrite; const selectPermissionOverwrite2 = selectPermissionOverwrite;
const closure6 = updateChannel_65291; const updateChannel_652912 = updateChannel_65291;
const closure7 = function() { const closure7 = function() {
return _saveChannel.apply(this, arguments); return _saveChannel.apply(this, arguments);
}; };
@@ -31,37 +38,30 @@ function _fun65285(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; ConstantsModule.Layers;
const channelSettingsStore = importDefault(8149) /* metro dependency 8149: ChannelSettingsStore */; object = {init: init_652862, open: open_652872, close: close_652882, setSection: setSection_652892,
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; selectPermissionOverwrite: selectPermissionOverwrite2, updateChannel: updateChannel_652912,
const constantsModule = require(661) /* metro dependency 661: Constants */; saveChannel: closure7, deleteChannel: closure8, updateVoiceChannelStatus: closure9,
const env0_6 = constantsModule.Endpoints; removeLinkedLobby: closure10};
constantsModule.Layers; (FileImportTrackerModule).fileFinishedImporting('actions/ChannelSettingsActionCreators.tsx');
const env0_7 = constantsModule.ChannelSettingsSections; exports.default = object;
object2 = {init: closure, open: closure2, close: closure3, setSection: closure4, exports.init = init_652862;
selectPermissionOverwrite: closure5, updateChannel: closure6, saveChannel: closure7, deleteChannel: closure8, exports.open = open_652872;
updateVoiceChannelStatus: closure9, removeLinkedLobby: closure10}; exports.close = close_652882;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelSettingsActionCreators.tsx'); exports.setSection = setSection_652892;
exports.default = object2; exports.selectPermissionOverwrite = selectPermissionOverwrite2;
exports.init = closure; exports.updateChannel = updateChannel_652912;
exports.open = closure2;
exports.close = closure3;
exports.setSection = closure4;
exports.selectPermissionOverwrite = closure5;
exports.updateChannel = closure6;
exports.saveChannel = closure7; exports.saveChannel = closure7;
exports.deleteChannel = closure8; exports.deleteChannel = closure8;
exports.updateVoiceChannelStatus = closure9; exports.updateVoiceChannelStatus = closure9;
exports.removeLinkedLobby = closure10; exports.removeLinkedLobby = closure10;
}
function init_65286(a0, a1, a2) { // fn#65286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:189, offset: 0x01bcaf2f, size: 69 bytes, params: 4, frame: 13 function init_65286(a0, a1, a2) { // fn#65286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:189, offset: 0x01bcaf2f, size: 69 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_INIT', channelId: a0, (Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_INIT', channelId: a0,
location: a1, subsection: a2}); location: a1, subsection: a2});
} }
function open_65287(a0, a1, a2) { // fn#65287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:295, offset: 0x01bcaf74, size: 143 bytes, params: 4, frame: 18 function open_65287(a0, a1, a2) { // fn#65287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:295, offset: 0x01bcaf74, size: 143 bytes, params: 4, frame: 18
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef(); const rootNavigationRef = (RootNavigationRefNativeModule).getRootNavigationRef();
if (rootNavigationRef != null) { if (rootNavigationRef != null) {
if (rootNavigationRef.isReady()) { if (rootNavigationRef.isReady()) {
init_65286(a0, a1, a2); init_65286(a0, a1, a2);
@@ -73,22 +73,21 @@ function open_65287(a0, a1, a2) { // fn#65287, source: /ci/build/discord/discord
} }
function close_65288() { // fn#65288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:539, offset: 0x01bcb003, size: 47 bytes, params: 1, frame: 13 function close_65288() { // fn#65288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:539, offset: 0x01bcb003, size: 47 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_CLOSE'}); (Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_CLOSE'});
} }
function setSection_65289(a0) { // fn#65289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:606, offset: 0x01bcb032, size: 55 bytes, params: 2, frame: 13 function setSection_65289(a0) { // fn#65289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:606, offset: 0x01bcb032, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_SET_SECTION', (Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_SET_SECTION',
section: a0}); section: a0});
} }
function selectPermissionOverwrite(a0) { // fn#65290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:695, offset: 0x01bcb069, size: 57 bytes, params: 2, frame: 13 function selectPermissionOverwrite(a0) { // fn#65290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:695, offset: 0x01bcb069, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_OVERWRITE_SELECT', (Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_OVERWRITE_SELECT',
overwriteId: a0}); overwriteId: a0});
} }
function updateChannel_65291({name, type, topic, bitrate, userLimit, nsfw, flags, rateLimitPerUser, defaultThreadRateLimitPerUser, defaultAutoArchiveDuration, template, defaultReactionEmoji, rtcRegion, videoQualityMode, autoArchiveDuration, locked, invitable, availableTags, defaultSortOrder, defaultForumLayout, defaultTagSetting, iconEmoji, themeColor}) { // fn#65291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:808, offset: 0x01bcb0a2, size: 300 bytes, params: 2, frame: 36 function updateChannel_65291({name, type, topic, bitrate, userLimit, nsfw, flags, rateLimitPerUser, defaultThreadRateLimitPerUser, defaultAutoArchiveDuration, template, defaultReactionEmoji, rtcRegion, videoQualityMode, autoArchiveDuration, locked, invitable, availableTags, defaultSortOrder, defaultForumLayout, defaultTagSetting, iconEmoji, themeColor}) { // fn#65291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:808, offset: 0x01bcb0a2, size: 300 bytes, params: 2, frame: 36
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'CHANNEL_SETTINGS_UPDATE', name: name, channelType: type, topic: topic, bitrate: bitrate,
dispatcher.dispatch({type: 'CHANNEL_SETTINGS_UPDATE', name: name, channelType: type, topic: topic, bitrate: bitrate,
userLimit: userLimit, nsfw: nsfw, flags: flags, rateLimitPerUser: rateLimitPerUser, userLimit: userLimit, nsfw: nsfw, flags: flags, rateLimitPerUser: rateLimitPerUser,
defaultThreadRateLimitPerUser: defaultThreadRateLimitPerUser, defaultThreadRateLimitPerUser: defaultThreadRateLimitPerUser,
defaultAutoArchiveDuration: defaultAutoArchiveDuration, template: template, defaultAutoArchiveDuration: defaultAutoArchiveDuration, template: template,
@@ -99,15 +98,8 @@ function updateChannel_65291({name, type, topic, bitrate, userLimit, nsfw, flags
} }
function _saveChannel() { // fn#65293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:1653, offset: 0x01bcb1ce, size: 48 bytes, params: 1, frame: 14 function _saveChannel() { // fn#65293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:1653, offset: 0x01bcb1ce, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun65295).apply(this, arguments); return Module00005(_fun65295).apply(this, arguments);
}
function _deleteChannel() { // fn#65300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:3350, offset: 0x01bcb5a7, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun65302).apply(this, arguments);
}
async function _fun65295(a0, {name, type, position, topic, bitrate, userLimit, nsfw, flags, permissionOverwrites, rateLimitPerUser, defaultThreadRateLimitPerUser, defaultAutoArchiveDuration, template, defaultReactionEmoji, rtcRegion, videoQualityMode, autoArchiveDuration, locked, invitable, availableTags, defaultSortOrder, defaultForumLayout, defaultTagSetting, iconEmoji, themeColor}) { // fn#65295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:1700, offset: 0x01bcb210, size: 638 bytes, params: 3, frame: 46 async function _fun65295(a0, {name, type, position, topic, bitrate, userLimit, nsfw, flags, permissionOverwrites, rateLimitPerUser, defaultThreadRateLimitPerUser, defaultAutoArchiveDuration, template, defaultReactionEmoji, rtcRegion, videoQualityMode, autoArchiveDuration, locked, invitable, availableTags, defaultSortOrder, defaultForumLayout, defaultTagSetting, iconEmoji, themeColor}) { // fn#65295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:1700, offset: 0x01bcb210, size: 638 bytes, params: 3, frame: 46
var object3;
if (false) { if (false) {
return undefined; return undefined;
} }
@@ -129,56 +121,29 @@ async function _fun65295(a0, {name, type, position, topic, bitrate, userLimit, n
} }
const HTTP = env2_0(env2_2[7]).HTTP; const HTTP = env2_0(env2_2[7]).HTTP;
const patch = HTTP.patch; const patch = HTTP.patch;
object3 = {}; object = {};
object3.url = env2_6.CHANNEL(a0); object.url = env2_6.CHANNEL(a0);
const object4 = {name: name, type: type, position: position, topic: topic, bitrate: bitrate, user_limit: userLimit, const object2 = {name: name, type: type, position: position, topic: topic, bitrate: bitrate, user_limit: userLimit,
nsfw: nsfw, flags: flags, permission_overwrites: permissionOverwrites, rate_limit_per_user: rateLimitPerUser, nsfw: nsfw, flags: flags, permission_overwrites: permissionOverwrites, rate_limit_per_user: rateLimitPerUser,
default_thread_rate_limit_per_user: defaultThreadRateLimitPerUser, default_thread_rate_limit_per_user: defaultThreadRateLimitPerUser,
default_auto_archive_duration: defaultAutoArchiveDuration, template: template, rtc_region: rtcRegion, default_auto_archive_duration: defaultAutoArchiveDuration, template: template, rtc_region: rtcRegion,
video_quality_mode: videoQualityMode, auto_archive_duration: autoArchiveDuration, locked: locked, video_quality_mode: videoQualityMode, auto_archive_duration: autoArchiveDuration, locked: locked,
invitable: invitable}; invitable: invitable};
object4.default_reaction_emoji = defaultReactionEmoji != null ? {emoji_id: defaultReactionEmoji == null ? value : defaultReactionEmoji.emojiId, object2.default_reaction_emoji = defaultReactionEmoji != null ? {emoji_id: defaultReactionEmoji == null ? value : defaultReactionEmoji.emojiId,
emoji_name: defaultReactionEmoji == null ? value : defaultReactionEmoji.emojiName} : defaultReactionEmoji !== null ? value : null; emoji_name: defaultReactionEmoji == null ? value : defaultReactionEmoji.emojiName} : defaultReactionEmoji !== null ? value : null;
object4.available_tags = availableTags == null ? value : availableTags.map(function(a0) { object2.available_tags = availableTags == null ? value : availableTags.map(function(a0) {
return {id: a0.id, name: a0.name, emoji_id: a0.emojiId, emoji_name: a0.emojiName, moderated: a0.moderated}; return {id: a0.id, name: a0.name, emoji_id: a0.emojiId, emoji_name: a0.emojiName, moderated: a0.moderated};
}); });
object4.default_sort_order = defaultSortOrder; object2.default_sort_order = defaultSortOrder;
object4.default_forum_layout = defaultForumLayout; object2.default_forum_layout = defaultForumLayout;
object4.default_tag_setting = defaultTagSetting; object2.default_tag_setting = defaultTagSetting;
object4.icon_emoji = iconEmoji != null ? {id: iconEmoji.id, object2.icon_emoji = iconEmoji != null ? {id: iconEmoji.id,
name: iconEmoji.name} : iconEmoji !== null ? value : null; name: iconEmoji.name} : iconEmoji !== null ? value : null;
object4.theme_color = themeColor; object2.theme_color = themeColor;
object3.body = object4; object.body = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object3]).then(_fun65297, _fun65298); return Reflect.apply(patch, HTTP, [object]).then(_fun65297, _fun65298);
}
function* _fun65302(a0) { // fn#65302, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:3401, offset: 0x01bcb5e0, size: 208 bytes, params: 2, frame: 18
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_5;
const channel = binding.getChannel(a0);
binding = env2_0;
const value4 = undefined;
const HTTP = binding(env2_2[7]).HTTP;
const del = HTTP.del;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = env2_6.CHANNEL(a0);
yield Reflect.apply(del, HTTP, [object2]);
if (false) {
return undefined;
}
const r6 = channel == null ? value4 : channel.getGuildId();
if (!(r6 == null || channel != null && channel.isThread())) {
env2_1(env2_2[8]).checkGuildTemplateDirty(r6);
}
env2_9();
return value4;
}
function _fun65297(a0) { // fn#65297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:2983, offset: 0x01bcb4c8, size: 161 bytes, params: 2, frame: 15 function _fun65297(a0) { // fn#65297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:2983, offset: 0x01bcb4c8, size: 161 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__.__proto__; const value = environment.__proto__.__proto__.__proto__;
const binding = env3_1; const binding = env3_1;
@@ -197,3 +162,40 @@ function _fun65298(a0) { // fn#65298, source: /ci/build/discord/discord/discord_
return a0; return a0;
} }
}
}
function _deleteChannel() { // fn#65300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:3350, offset: 0x01bcb5a7, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun65302).apply(this, arguments);
function* _fun65302(a0) { // fn#65302, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8333:3401, offset: 0x01bcb5e0, size: 208 bytes, params: 2, frame: 18
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_5;
const channel = binding.getChannel(a0);
binding = env2_0;
const value4 = undefined;
const HTTP = binding(env2_2[7]).HTTP;
const del = HTTP.del;
const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object.url = env2_6.CHANNEL(a0);
yield Reflect.apply(del, HTTP, [object]);
if (false) {
return undefined;
}
const r6 = channel == null ? value4 : channel.getGuildId();
if (!(r6 == null || channel != null && channel.isThread())) {
env2_1(env2_2[8]).checkGuildTemplateDirty(r6);
}
env2_9();
return value4;
}
}
}
global.__d(_fun65285, 8148, [5, 8149, 1379, 661, 694, 4008, 7153, 507, 6931,
2]) /* metro module 8148, dependencies: [5, 8149, 1379, 661, 694, 4008, 7153, 507, 6931, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 9089; source: actions/ChannelSettingsPermissionsActionCreators.tsx; dependencies: [5, 9090, 694, 4603, 2] */ /* Metro module 9089; source: actions/ChannelSettingsPermissionsActionCreators.tsx; dependencies: [5, 9090, 694, 4603, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun71064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:6, offset: 0x01d13ab2, size: 202 bytes, params: 8, frame: 20 function _fun71064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:6, offset: 0x01d13ab2, size: 202 bytes, params: 8, frame: 20
const env0_0 = require; const env0_0 = require;
const closure = saveAndClearPermissionUpdates; const saveAndClearPermissionUpdates2 = saveAndClearPermissionUpdates;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/ChannelSettingsPermissionsActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelSettingsPermissionsActionCreators.tsx');
exports.updatePermission = function() { exports.updatePermission = function() {
return _updatePermission.apply(this, arguments); return _updatePermission.apply(this, arguments);
}; };
@@ -15,42 +18,9 @@ function _fun71064(global, require, importDefault, importAll, module, exports, d
exports.savePermissionUpdates = function(a0, a1, a2) { exports.savePermissionUpdates = function(a0, a1, a2) {
return saveAndClearPermissionUpdates(a0, a1, [], a2); return saveAndClearPermissionUpdates(a0, a1, [], a2);
}; };
exports.saveAndClearPermissionUpdates = closure; exports.saveAndClearPermissionUpdates = saveAndClearPermissionUpdates2;
}
function _updatePermission() { // fn#71065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:106, offset: 0x01d13b7c, size: 50 bytes, params: 1, frame: 14 function _updatePermission() { // fn#71065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:106, offset: 0x01d13b7c, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun71067).apply(this, arguments); return Module00005(_fun71067).apply(this, arguments);
}
function saveAndClearPermissionUpdates(a0, a1, a2, a3) { // fn#71068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:435, offset: 0x01d13c61, size: 131 bytes, params: 5, frame: 13
let env0_0 = a0;
let env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SUBMITTING'});
const Promise = global.Promise;
return new Promise(function(a0) {
var env0_0 = a0;
var closure = _fun71070;
var env0_1 = closure;
closure();
}).then(_fun71071);
}
function selectPermission(a0) { // fn#71073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1145, offset: 0x01d13e40, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SELECT_PERMISSION',
id: a0});
}
function setAdvancedMode(a0) { // fn#71074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1272, offset: 0x01d13e78, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SET_ADVANCED_MODE',
advancedMode: a0});
}
function init_71075() { // fn#71075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1397, offset: 0x01d13eb1, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_INIT'});
}
function* _fun71067(a0, a1, a2, a3) { // fn#71067, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:163, offset: 0x01d13bb9, size: 168 bytes, params: 5, frame: 20 function* _fun71067(a0, a1, a2, a3) { // fn#71067, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:163, offset: 0x01d13bb9, size: 168 bytes, params: 5, frame: 20
if (false) { if (false) {
return undefined; return undefined;
@@ -83,17 +53,24 @@ function* _fun71067(a0, a1, a2, a3) { // fn#71067, original name: ?anon_0_, sour
return false; return false;
} }
}
function saveAndClearPermissionUpdates(a0, a1, a2, a3) { // fn#71068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:435, offset: 0x01d13c61, size: 131 bytes, params: 5, frame: 13
let env0_0 = a0;
let env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
(Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SUBMITTING'});
const Promise = global.Promise;
return new Promise(function(a0) {
var env0_0 = a0;
var closure = _fun71070;
var env0_1 = closure;
closure();
}).then(_fun71071);
function _fun71069(a0) { // fn#71069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:570, offset: 0x01d13ce4, size: 31 bytes, params: 2, frame: 9 function _fun71069(a0) { // fn#71069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:570, offset: 0x01d13ce4, size: 31 bytes, params: 2, frame: 9
const env0_0 = a0; const env0_0 = a0;
chain_71070(); chain_71070();
}
function _fun71071() { // fn#71071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:859, offset: 0x01d13e03, size: 61 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SAVE_SUCCESS',
silent: importAll});
}
function chain_71070() { // fn#71070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:575, offset: 0x01d13d03, size: 256 bytes, params: 1, frame: 14 function chain_71070() { // fn#71070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:575, offset: 0x01d13d03, size: 256 bytes, params: 1, frame: 14
var value2; var value2;
var value3; var value3;
@@ -164,3 +141,30 @@ function chain_71070() { // fn#71070, source: /ci/build/discord/discord/discord_
} }
} }
}
function _fun71071() { // fn#71071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:859, offset: 0x01d13e03, size: 61 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SAVE_SUCCESS',
silent: importAll});
}
}
function selectPermission(a0) { // fn#71073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1145, offset: 0x01d13e40, size: 56 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SELECT_PERMISSION',
id: a0});
}
function setAdvancedMode(a0) { // fn#71074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1272, offset: 0x01d13e78, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SET_ADVANCED_MODE',
advancedMode: a0});
}
function init_71075() { // fn#71075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1397, offset: 0x01d13eb1, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_INIT'});
}
}
global.__d(_fun71064, 9089, [5, 9090, 694, 4603, 2]) /* metro module 9089, dependencies: [5, 9090, 694, 4603, 2] */;
@@ -1,14 +1,13 @@
/* Metro module 10304; source: actions/CommunicationDisabledActionCreators.tsx; dependencies: [5, 3738, 6593, 2] */ /* Metro module 10304; source: actions/CommunicationDisabledActionCreators.tsx; dependencies: [5, 3738, 6593, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79978(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:6, offset: 0x01e68589, size: 121 bytes, params: 8, frame: 18 function _fun79978(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:6, offset: 0x01e68589, size: 121 bytes, params: 8, frame: 18
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */; object = {setCommunicationDisabledDuration: setCommunicationDisabledDuration};
object2 = {setCommunicationDisabledDuration: setCommunicationDisabledDuration}; (FileImportTrackerModule).fileFinishedImporting('actions/CommunicationDisabledActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CommunicationDisabledActionCreators.tsx'); exports.default = object;
exports.default = object2;
}
function setCommunicationDisabledDuration(a0, a1, a2, a3, a4, a5) { // fn#79979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:142, offset: 0x01e68602, size: 71 bytes, params: 7, frame: 11 function setCommunicationDisabledDuration(a0, a1, a2, a3, a4, a5) { // fn#79979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:142, offset: 0x01e68602, size: 71 bytes, params: 7, frame: 11
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
@@ -17,8 +16,6 @@ function setCommunicationDisabledDuration(a0, a1, a2, a3, a4, a5) { // fn#79979,
const env0_4 = a4; const env0_4 = a4;
const env0_5 = a5; const env0_5 = a5;
return env0_2(_fun79981)(); return env0_2(_fun79981)();
}
function* _fun79981() { // fn#79981, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:160, offset: 0x01e68654, size: 196 bytes, params: 1, frame: 17 function* _fun79981() { // fn#79981, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10490:160, offset: 0x01e68654, size: 196 bytes, params: 1, frame: 17
var r6; var r6;
if (true) { if (true) {
@@ -32,3 +29,8 @@ function* _fun79981() { // fn#79981, original name: ?anon_0_, source: /ci/build/
} }
} }
}
}
global.__d(_fun79978, 10304, [5, 3738, 6593, 2]) /* metro module 10304, dependencies: [5, 3738, 6593, 2] */;
@@ -1,21 +1,27 @@
/* Metro module 5042; source: actions/ConnectedAccountsActionCreators.tsx; dependencies: [5, 5040, 661, 3, 507, 694, 683, 5043, 5046, 480, 2] */ /* Metro module 5042; source: actions/ConnectedAccountsActionCreators.tsx; dependencies: [5, 5040, 661, 3, 507, 694, 683, 5043, 5046, 480, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ConnectedAccountsStore from '../stores/ConnectedAccountsStore.tsx'; /* Metro dependency 5040 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun43644(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:6, offset: 0x01157e24, size: 403 bytes, params: 8, frame: 20 function _fun43644(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:6, offset: 0x01157e24, size: 403 bytes, params: 8, frame: 20
var object2;
const env0_0 = require; const env0_0 = require;
const closure = callback_43645; const callback_436452 = callback_43645;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; let value = ConstantsModule;
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_5 = value.AbortCodes; const env0_5 = value.AbortCodes;
const env0_6 = value.Endpoints; const env0_6 = value.Endpoints;
const env0_7 = value.FRIEND_SYNC_PLATFORM_TYPES; const env0_7 = value.FRIEND_SYNC_PLATFORM_TYPES;
const env0_8 = value.AnalyticEvents; const env0_8 = value.AnalyticEvents;
value = importDefault(3) /* metro dependency 3: Logger */; value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('ConnectedAccounts'); value = new value('ConnectedAccounts');
object2 = {fetch: fetch_43646, authorize: authorize, callback: closure, connect: connect, disconnect: function(a0, object = {fetch: fetch_43646, authorize: authorize_43649, callback: callback_436452, connect: connect,
a1) { disconnect: function(a0, a1) {
var HTTP = require(dependencyMap[4]).HTTP; var HTTP = require(dependencyMap[4]).HTTP;
var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; var object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.CONNECTION(a0, a1); object.url = Endpoints.CONNECTION(a0, a1);
@@ -33,7 +39,7 @@ function _fun43644(global, require, importDefault, importAll, module, exports, d
return this.update(a0, a1, {friend_sync: a2}); return this.update(a0, a1, {friend_sync: a2});
}, setShowActivity: function(a0, a1, a2) { }, setShowActivity: function(a0, a1, a2) {
return this.update(a0, a1, {show_activity: a2}); return this.update(a0, a1, {show_activity: a2});
}, update: update, joinServer: joinServer, refreshAccessToken: refreshAccessToken, }, update: update_43659, joinServer: joinServer, refreshAccessToken: refreshAccessToken,
linkDispatchAuthCallback: function(a0, a1) { linkDispatchAuthCallback: function(a0, a1) {
var HTTP = require(dependencyMap[4]).HTTP; var HTTP = require(dependencyMap[4]).HTTP;
var object = {}; var object = {};
@@ -53,139 +59,56 @@ function _fun43644(global, require, importDefault, importAll, module, exports, d
object.rejectWithError = false; object.rejectWithError = false;
return HTTP.post(object); return HTTP.post(object);
}, getHandoffStatus: getHandoffStatus}; }, getHandoffStatus: getHandoffStatus};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ConnectedAccountsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ConnectedAccountsActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function callback_43645(a0, a1) { // fn#43645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:241, offset: 0x01157fb7, size: 137 bytes, params: 3, frame: 17 function callback_43645(a0, a1) { // fn#43645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:241, offset: 0x01157fb7, size: 137 bytes, params: 3, frame: 17
const value = a2; const value = a2;
const r7 = value !== undefined ? value : false; const r7 = value !== undefined ? value : false;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const object3 = {}; const object = {};
object3.url = Endpoints.CONNECTIONS_CALLBACK(a0); object.url = Endpoints.CONNECTIONS_CALLBACK(a0);
const object4 = {}; const object2 = {};
copyDataProperties(object4, a1, r7); copyDataProperties(object2, a1, r7);
object4['insecure'] = r7; object2['insecure'] = r7;
object4['friend_sync'] = FRIEND_SYNC_PLATFORM_TYPES.has(a0); object2['friend_sync'] = FRIEND_SYNC_PLATFORM_TYPES.has(a0);
object3.body = object4; object.body = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(post, HTTP, [object3]); return Reflect.apply(post, HTTP, [object]);
} }
function fetch_43646() { // fn#43646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:420, offset: 0x01158040, size: 91 bytes, params: 1, frame: 14 function fetch_43646() { // fn#43646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:420, offset: 0x01158040, size: 91 bytes, params: 1, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const CONNECTIONS = Endpoints.CONNECTIONS; const CONNECTIONS = Endpoints.CONNECTIONS;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true, return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': true,
url: CONNECTIONS}]).then(_fun43647, _fun43648); url: CONNECTIONS}]).then(_fun43647, _fun43648);
}
function authorize(a0) { // fn#43649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:673, offset: 0x01158117, size: 102 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const r2 = value !== undefined ? value : {};
const env0_1 = r2.location;
const env0_2 = r2.twoWayLinkType;
const env0_3 = r2.userCode;
const env0_4 = r2.twoWayLink;
const env0_5 = r2.successRedirect;
const env0_6 = r2.handle;
return env0_3(_fun43651)();
}
function connect(a0, a1, a2, a3, a4) { // fn#43652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:1376, offset: 0x01158366, size: 222 bytes, params: 6, frame: 21
const value2 = undefined;
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const put = defaultImport.put;
const object2 = {};
object2.url = Endpoints.CONNECTION(a0, a1);
object2.body = {name: a2, friend_sync: (a4 == null ? value2 : a4.friend_sync) ?? FRIEND_SYNC_PLATFORM_TYPES.has(a0)};
object2.context = {location: a3};
object2.oldFormErrors = true;
const object3 = {};
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const USER_CONNECTIONS_UPDATE = NetworkActionNames.USER_CONNECTIONS_UPDATE;
object3.event = USER_CONNECTIONS_UPDATE;
const object6 = {name: a2};
object6.friend_sync = FRIEND_SYNC_PLATFORM_TYPES.has(a0);
object3.properties = object6;
object2.trackedActionData = object3;
object2.rejectWithError = false;
return Reflect.apply(put, defaultImport, [object2]);
}
function update(a0, a1, a2) { // fn#43659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2177, offset: 0x0115857c, size: 143 bytes, params: 4, frame: 20
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const patch = defaultImport.patch;
const object4 = {};
object4.url = Endpoints.CONNECTION(a0, a1);
object4.body = a2;
object4.oldFormErrors = true;
const object5 = {};
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const USER_CONNECTIONS_UPDATE = NetworkActionNames.USER_CONNECTIONS_UPDATE;
object5.event = USER_CONNECTIONS_UPDATE;
const object6 = {};
copyDataProperties(object6, a2, Endpoints);
object5.properties = object6;
object4.trackedActionData = object5;
object4.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object4]);
}
function joinServer(a0, a1) { // fn#43660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2363, offset: 0x0115860b, size: 142 bytes, params: 3, frame: 18
var object2;
const env0_0 = a0;
const env0_1 = a1;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'USER_CONNECTIONS_INTEGRATION_JOINING',
'integrationId': null, 'joining': true, integrationId: a0});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.INTEGRATION_JOIN(a0);
Reflect.apply(post, HTTP, [object2, _fun43661]);
}
function refreshAccessToken(a0, a1) { // fn#43662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2815, offset: 0x01158740, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return env0_3(_fun43664)();
}
function completeTwoWayLink(a0, a1, a2, a3, a4) { // fn#43666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3366, offset: 0x011588f6, size: 62 bytes, params: 6, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
return env0_3(_fun43668)();
}
function getHandoffStatus(a0, a1) { // fn#43670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3934, offset: 0x01158a87, size: 166 bytes, params: 3, frame: 17
const URLSearchParams = global.URLSearchParams;
let uRLSearchParams = new URLSearchParams();
uRLSearchParams.append('state', a1);
const value3 = Endpoints.CONNECTIONS_SESSION_HANDOFF(a0);
uRLSearchParams = uRLSearchParams.toString();
uRLSearchParams = '' + value3 + '?' + uRLSearchParams;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
return HTTP.get({url: uRLSearchParams, body: {state: a1}, rejectWithError: true});
}
function _fun43647({body}) { // fn#43647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:504, offset: 0x0115809b, size: 64 bytes, params: 2, frame: 12 function _fun43647({body}) { // fn#43647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:504, offset: 0x0115809b, size: 64 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'USER_CONNECTIONS_UPDATE', return (Dispatcher).dispatch({'type': 'USER_CONNECTIONS_UPDATE',
'local': true, accounts: body}); 'local': true, accounts: body});
} }
function _fun43648() { // fn#43648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:585, offset: 0x011580db, size: 60 bytes, params: 1, frame: 12 function _fun43648() { // fn#43648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:585, offset: 0x011580db, size: 60 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'USER_CONNECTIONS_UPDATE', return (Dispatcher).dispatch({'type': 'USER_CONNECTIONS_UPDATE',
'local': true, accounts: []}); 'local': true, accounts: []});
} }
}
function authorize_43649(a0) { // fn#43649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:673, offset: 0x01158117, size: 102 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const r2 = value !== undefined ? value : {};
const env0_1 = r2.location;
const env0_2 = r2.twoWayLinkType;
const userCode = r2.userCode;
const env0_4 = r2.twoWayLink;
const env0_5 = r2.successRedirect;
const env0_6 = r2.handle;
return userCode(_fun43651)();
function* _fun43651() { // fn#43651, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:765, offset: 0x01158186, size: 480 bytes, params: 1, frame: 20 function* _fun43651() { // fn#43651, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:765, offset: 0x01158186, size: 480 bytes, params: 1, frame: 20
if (false) { if (false) {
return undefined; return undefined;
@@ -229,6 +152,58 @@ function* _fun43651() { // fn#43651, original name: ?anon_0_, source: /ci/build/
return value11; return value11;
} }
}
function connect(a0, a1, a2, a3, a4) { // fn#43652, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:1376, offset: 0x01158366, size: 222 bytes, params: 6, frame: 21
const value2 = undefined;
const defaultImport = TrackedHTTPUtils;
const put = defaultImport.put;
const object = {};
object.url = Endpoints.CONNECTION(a0, a1);
object.body = {name: a2, friend_sync: (a4 == null ? value2 : a4.friend_sync) ?? FRIEND_SYNC_PLATFORM_TYPES.has(a0)};
object.context = {location: a3};
object.oldFormErrors = true;
const object4 = {};
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const USER_CONNECTIONS_UPDATE = NetworkActionNames.USER_CONNECTIONS_UPDATE;
object4.event = USER_CONNECTIONS_UPDATE;
const object5 = {name: a2};
object5.friend_sync = FRIEND_SYNC_PLATFORM_TYPES.has(a0);
object4.properties = object5;
object.trackedActionData = object4;
object.rejectWithError = false;
return Reflect.apply(put, defaultImport, [object]);
}
function update_43659(a0, a1, a2) { // fn#43659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2177, offset: 0x0115857c, size: 143 bytes, params: 4, frame: 20
const defaultImport = TrackedHTTPUtils;
const patch = defaultImport.patch;
const object = {};
object.url = Endpoints.CONNECTION(a0, a1);
object.body = a2;
object.oldFormErrors = true;
const object2 = {};
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const USER_CONNECTIONS_UPDATE = NetworkActionNames.USER_CONNECTIONS_UPDATE;
object2.event = USER_CONNECTIONS_UPDATE;
const object3 = {};
copyDataProperties(object3, a2, Endpoints);
object2.properties = object3;
object.trackedActionData = object2;
object.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object]);
}
function joinServer(a0, a1) { // fn#43660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2363, offset: 0x0115860b, size: 142 bytes, params: 3, frame: 18
const env0_0 = a0;
const env0_1 = a1;
(Dispatcher).dispatch({'type': 'USER_CONNECTIONS_INTEGRATION_JOINING',
'integrationId': null, 'joining': true, integrationId: a0});
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.INTEGRATION_JOIN(a0);
Reflect.apply(post, HTTP, [object, _fun43661]);
function _fun43661(a0) { // fn#43661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2553, offset: 0x01158699, size: 167 bytes, params: 2, frame: 17 function _fun43661(a0) { // fn#43661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2553, offset: 0x01158699, size: 167 bytes, params: 2, frame: 17
const value = environment.__proto__; const value = environment.__proto__;
const value2 = undefined; const value2 = undefined;
@@ -245,6 +220,12 @@ function _fun43661(a0) { // fn#43661, source: /ci/build/discord/discord/discord_
return value2; return value2;
} }
}
function refreshAccessToken(a0, a1) { // fn#43662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2815, offset: 0x01158740, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0;
const env0_1 = a1;
return Module00005(_fun43664)();
function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2825, offset: 0x01158772, size: 292 bytes, params: 1, frame: 21 function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:2825, offset: 0x01158772, size: 292 bytes, params: 1, frame: 21
var binding; var binding;
var binding2; var binding2;
@@ -252,7 +233,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
var value3; var value3;
var HTTP; var HTTP;
var get; var get;
var object2; var object;
var CONNECTION_ACCESS_TOKEN; var CONNECTION_ACCESS_TOKEN;
var value5; var value5;
var value6; var value6;
@@ -368,7 +349,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -462,7 +443,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2.url = value5; object.url = value5;
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -478,7 +459,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
value6 = Reflect.apply(get, HTTP, [object2]); value6 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -627,7 +608,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -643,7 +624,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2.type = 'USER_CONNECTION_UPDATE'; object.type = 'USER_CONNECTION_UPDATE';
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -674,7 +655,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2.platformType = require; object.platformType = require;
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -705,7 +686,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2.id = importDefault; object.id = importDefault;
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -721,7 +702,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object2.accessToken = access_token; object.accessToken = access_token;
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -737,7 +718,7 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
Reflect.apply(dispatch, value9, [object2]); Reflect.apply(dispatch, value9, [object]);
} catch (error) { } catch (error) {
body = error.body; body = error.body;
code = body.code; code = body.code;
@@ -755,6 +736,15 @@ function* _fun43664() { // fn#43664, original name: ?anon_0_, source: /ci/build/
return access_token; return access_token;
} }
}
function completeTwoWayLink(a0, a1, a2, a3, a4) { // fn#43666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3366, offset: 0x011588f6, size: 62 bytes, params: 6, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
return env0_3(_fun43668)();
function* _fun43668() { // fn#43668, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3382, offset: 0x0115893d, size: 212 bytes, params: 1, frame: 19 function* _fun43668() { // fn#43668, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3382, offset: 0x0115893d, size: 212 bytes, params: 1, frame: 19
var binding; var binding;
var error; var error;
@@ -785,3 +775,20 @@ function* _fun43668() { // fn#43668, original name: ?anon_0_, source: /ci/build/
} }
} }
}
function getHandoffStatus(a0, a1) { // fn#43670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5220:3934, offset: 0x01158a87, size: 166 bytes, params: 3, frame: 17
const URLSearchParams = global.URLSearchParams;
let uRLSearchParams = new URLSearchParams();
uRLSearchParams.append('state', a1);
const value3 = Endpoints.CONNECTIONS_SESSION_HANDOFF(a0);
uRLSearchParams = uRLSearchParams.toString();
uRLSearchParams = '' + value3 + '?' + uRLSearchParams;
const HTTP = (HTTPUtilsModule).HTTP;
return HTTP.get({url: uRLSearchParams, body: {state: a1}, rejectWithError: true});
}
}
global.__d(_fun43644, 5042, [5, 5040, 661, 3, 507, 694, 683, 5043, 5046, 480,
2]) /* metro module 5042, dependencies: [5, 5040, 661, 3, 507, 694, 683, 5043, 5046, 480, 2] */;
+24 -11
View File
@@ -1,10 +1,14 @@
/* Metro module 13378; source: actions/ConsentActionCreators.tsx; dependencies: [661, 694, 1244, 507, 2] */ /* Metro module 13378; source: actions/ConsentActionCreators.tsx; dependencies: [661, 694, 1244, 507, 2] */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun101869(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:6, offset: 0x0222242a, size: 159 bytes, params: 8, frame: 18 function _fun101869(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:6, offset: 0x0222242a, size: 159 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; (FileImportTrackerModule).fileFinishedImporting('actions/ConsentActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ConsentActionCreators.tsx');
exports.fetchConsents = function() { exports.fetchConsents = function() {
var HTTP = require(dependencyMap[3]).HTTP; var HTTP = require(dependencyMap[3]).HTTP;
return HTTP.get({'url': null, 'oldFormErrors': true, 'rejectWithError': false, return HTTP.get({'url': null, 'oldFormErrors': true, 'rejectWithError': false,
@@ -15,32 +19,30 @@ function _fun101869(global, require, importDefault, importAll, module, exports,
return HTTP.post({url: Endpoints.SETTINGS_CONSENT, body: {grant: a0, revoke: a1}, oldFormErrors: true, return HTTP.post({url: Endpoints.SETTINGS_CONSENT, body: {grant: a0, revoke: a1}, oldFormErrors: true,
rejectWithError: false}).then(handleRequestSuccess, handleRequestFailure); rejectWithError: false}).then(handleRequestSuccess, handleRequestFailure);
}; };
}
function handleRequestSuccess(a0) { // fn#101870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:116, offset: 0x022224c9, size: 97 bytes, params: 2, frame: 15 function handleRequestSuccess(a0) { // fn#101870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:116, offset: 0x022224c9, size: 97 bytes, params: 2, frame: 15
var dispatch; var dispatch;
var object; var object2;
let value = a0 != null; let value = a0 != null;
if (value && a0.body != null) { if (value && a0.body != null) {
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
dispatch = value.dispatch; dispatch = value.dispatch;
object = {}; object2 = {};
copyDataProperties(object, a0.body, undefined); copyDataProperties(object2, a0.body, undefined);
Reflect.apply(dispatch, value, [{type: 'UPDATE_CONSENTS', consents: object}]); Reflect.apply(dispatch, value, [{type: 'UPDATE_CONSENTS', consents: object2}]);
} }
return a0.body; return a0.body;
} }
function handleRequestFailure(a0) { // fn#101871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:250, offset: 0x0222252a, size: 229 bytes, params: 2, frame: 15 function handleRequestFailure(a0) { // fn#101871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:250, offset: 0x0222252a, size: 229 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
const r2 = a0.status >= 500 && a0.status <= 599 || (a0 == null || a0.body == null) ? intl.string(t.cvJdtg) : a0.body.message ?? intl.string(t.cvJdtg); const r2 = a0.status >= 500 && a0.status <= 599 || (a0 == null || a0.body == null) ? intl.string(t.cvJdtg) : a0.body.message ?? intl.string(t.cvJdtg);
const Error = global.Error; const Error = global.Error;
throw new Error(); throw new Error();
} }
function fetchConsents() { // fn#101872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:557, offset: 0x0222260f, size: 92 bytes, params: 1, frame: 14 function fetchConsents() { // fn#101872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:557, offset: 0x0222260f, size: 92 bytes, params: 1, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const SETTINGS_CONSENT = Endpoints.SETTINGS_CONSENT; const SETTINGS_CONSENT = Endpoints.SETTINGS_CONSENT;
const value2 = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false, const value2 = Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
@@ -52,3 +54,14 @@ function fetchConsents() { // fn#101872, source: /ci/build/discord/discord/disco
}); });
} }
}
function _fun101873({body}) { // fn#101873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13568:695, offset: 0x0222266b, size: 60 bytes, params: 2, frame: 13
const Promise = global.Promise;
const reject = Promise.reject;
const Error = global.Error;
return Reflect.apply(reject, Promise, [new Error(body.message)]);
}
global.__d(_fun101869, 13378, [661, 694, 1244, 507,
2]) /* metro module 13378, dependencies: [661, 694, 1244, 507, 2] */;
+38 -33
View File
@@ -1,21 +1,22 @@
/* Metro module 6722; source: actions/ContextMenuActionCreators.tsx; dependencies: [661, 694, 6723, 477, 6726, 2] */ /* Metro module 6722; source: actions/ContextMenuActionCreators.tsx; dependencies: [661, 694, 6723, 477, 6726, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun52769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:6, offset: 0x01336ff6, size: 161 bytes, params: 8, frame: 19 function _fun52769(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:6, offset: 0x01336ff6, size: 161 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const closure = openContextMenu; const openContextMenu2 = openContextMenu;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AppContext; (FileImportTrackerModule).fileFinishedImporting('actions/ContextMenuActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ContextMenuActionCreators.tsx');
exports.closeContextMenu = function() { exports.closeContextMenu = function() {
}; };
exports.openContextMenu = closure; exports.openContextMenu = openContextMenu2;
exports.openContextMenuLazy = function(a0, a1, a2) { exports.openContextMenuLazy = function(a0, a1, a2) {
openContextMenu(a0, undefined, a2, a1); openContextMenu(a0, undefined, a2, a1);
}; };
}
function open_52770(a0) { // fn#52770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:117, offset: 0x01337097, size: 57 bytes, params: 2, frame: 13 function open_52770(a0) { // fn#52770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:117, offset: 0x01337097, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CONTEXT_MENU_OPEN', contextMenu: a0}); (Dispatcher).dispatch({type: 'CONTEXT_MENU_OPEN', contextMenu: a0});
} }
function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:193, offset: 0x013370d0, size: 701 bytes, params: 5, frame: 27 function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:193, offset: 0x013370d0, size: 701 bytes, params: 5, frame: 27
@@ -35,7 +36,7 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
var boundingClientRect; var boundingClientRect;
var height; var height;
var left; var left;
var object3; var object;
var top; var top;
var width; var width;
var value8; var value8;
@@ -43,7 +44,7 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
var DOMRect; var DOMRect;
var value10; var value10;
var dOMRect; var dOMRect;
var object4; var object2;
var moduleValue2; var moduleValue2;
const value = a0; const value = a0;
value.stopPropagation(); value.stopPropagation();
@@ -119,23 +120,23 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
r8 = value9; r8 = value9;
} }
} }
object3 = {render: a1, renderLazy: a3}; object = {render: a1, renderLazy: a3};
target = value.target; target = value.target;
r0 = target ?? value.currentTarget; r0 = target ?? value.currentTarget;
object3.target = r0; object.target = r0;
DOMRect = global.DOMRect; DOMRect = global.DOMRect;
value10 = Object.create(DOMRect.prototype, {constructor: {value: DOMRect}}); value10 = Object.create(DOMRect.prototype, {constructor: {value: DOMRect}});
dOMRect = new DOMRect(); dOMRect = new DOMRect();
object3.rect = dOMRect instanceof Object ? dOMRect : value10; object.rect = dOMRect instanceof Object ? dOMRect : value10;
object4 = {}; object2 = {};
r8 = (require(6723) /* metro dependency 6723: AppWindowContext */).getCurrentlyInteractingAppContext() ?? AppContext.APP; r8 = (require(6723) /* metro dependency 6723: AppWindowContext */).getCurrentlyInteractingAppContext() ?? AppContext.APP;
object4.context = r8; object2.context = r8;
copyDataProperties(object4, a2, value2); copyDataProperties(object2, a2, value2);
object3.config = object4; object.config = object2;
r2 = 'nativeEvent' in value ? value.nativeEvent : value; r2 = 'nativeEvent' in value ? value.nativeEvent : value;
if (a2 == null) { if (a2 == null) {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} else if (a2.enableSpellCheck) { } else if (a2.enableSpellCheck) {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */; moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isDesktop()) { if (moduleValue2.isDesktop()) {
@@ -143,15 +144,15 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
var env0_1 = (require(6726) /* metro dependency 6726: SpellcheckUtils */).addResultListener(_fun52772); var env0_1 = (require(6726) /* metro dependency 6726: SpellcheckUtils */).addResultListener(_fun52772);
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} else { } else {
currentTarget = value.currentTarget; currentTarget = value.currentTarget;
@@ -227,23 +228,23 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
r8 = value9; r8 = value9;
} }
} }
object3 = {render: a1, renderLazy: a3}; object = {render: a1, renderLazy: a3};
target = value.target; target = value.target;
r0 = target ?? value.currentTarget; r0 = target ?? value.currentTarget;
object3.target = r0; object.target = r0;
DOMRect = global.DOMRect; DOMRect = global.DOMRect;
value10 = Object.create(DOMRect.prototype, {constructor: {value: DOMRect}}); value10 = Object.create(DOMRect.prototype, {constructor: {value: DOMRect}});
dOMRect = new DOMRect(); dOMRect = new DOMRect();
object3.rect = dOMRect instanceof Object ? dOMRect : value10; object.rect = dOMRect instanceof Object ? dOMRect : value10;
object4 = {}; object2 = {};
r8 = (require(6723) /* metro dependency 6723: AppWindowContext */).getCurrentlyInteractingAppContext() ?? AppContext.APP; r8 = (require(6723) /* metro dependency 6723: AppWindowContext */).getCurrentlyInteractingAppContext() ?? AppContext.APP;
object4.context = r8; object2.context = r8;
copyDataProperties(object4, a2, value2); copyDataProperties(object2, a2, value2);
object3.config = object4; object.config = object2;
r2 = 'nativeEvent' in value ? value.nativeEvent : value; r2 = 'nativeEvent' in value ? value.nativeEvent : value;
if (a2 == null) { if (a2 == null) {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} else if (a2.enableSpellCheck) { } else if (a2.enableSpellCheck) {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */; moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isDesktop()) { if (moduleValue2.isDesktop()) {
@@ -251,22 +252,26 @@ function openContextMenu(a0, a1, a2, a3) { // fn#52771, source: /ci/build/discor
var env0_1 = (require(6726) /* metro dependency 6726: SpellcheckUtils */).addResultListener(_fun52772); var env0_1 = (require(6726) /* metro dependency 6726: SpellcheckUtils */).addResultListener(_fun52772);
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} else { } else {
value.preventDefault(); value.preventDefault();
open_52770(object3); open_52770(object);
} }
} }
} }
}
function _fun52772() { // fn#52772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:1168, offset: 0x0133738d, size: 31 bytes, params: 1, frame: 11 function _fun52772() { // fn#52772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6900:1168, offset: 0x0133738d, size: 31 bytes, params: 1, frame: 11
env0_1(); env0_1();
open_52770(env0_0); open_52770(env0_0);
} }
}
}
global.__d(_fun52769, 6722, [661, 694, 6723, 477, 6726,
2]) /* metro module 6722, dependencies: [661, 694, 6723, 477, 6726, 2] */;
+58 -54
View File
@@ -1,44 +1,43 @@
/* Metro module 9086; source: actions/CreateChannelActionCreators.tsx; dependencies: [4864, 661, 670, 694, 5046, 480, 1392, 6613, 6610, 6931, 2] */ /* Metro module 9086; source: actions/CreateChannelActionCreators.tsx; dependencies: [4864, 661, 670, 694, 5046, 480, 1392, 6613, 6610, 6931, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserGuildSettingsStore from '../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../modules/user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
function _fun71006(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:6, offset: 0x01d11e04, size: 201 bytes, params: 8, frame: 19 function _fun71006(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:6, offset: 0x01d11e04, size: 201 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */; object = {createChannel: createChannel,
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.BITRATE_DEFAULT;
const env0_5 = constantsModule.ChannelTypes;
const env0_6 = constantsModule.Endpoints;
const env0_7 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
object2 = {createChannel: createChannel,
createRoleSubscriptionTemplateChannel: createRoleSubscriptionTemplateChannel}; createRoleSubscriptionTemplateChannel: createRoleSubscriptionTemplateChannel};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CreateChannelActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/CreateChannelActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function createChannel({guildId, type, name, permissionOverwrites = [], bitrate, userLimit, parentId, skuId, branchId, flags, availableTags}) { // fn#71007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:213, offset: 0x01d11ecd, size: 482 bytes, params: 2, frame: 27 function createChannel({guildId, type, name, permissionOverwrites = [], bitrate, userLimit, parentId, skuId, branchId, flags, availableTags}) { // fn#71007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:213, offset: 0x01d11ecd, size: 482 bytes, params: 2, frame: 27
var object4; var object2;
var defaultImport2; var defaultImport2;
var post; var post;
var object3; var object;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames; const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_CHANNEL_MODAL_SUBMIT', (Dispatcher).dispatch({type: 'CREATE_CHANNEL_MODAL_SUBMIT',
guildId: guildId, channelType: type}); guildId: guildId, channelType: type});
object4 = {type: type, name: name, permission_overwrites: permissionOverwrites}; object2 = {type: type, name: name, permission_overwrites: permissionOverwrites};
if (bitrate != null && bitrate !== BITRATE_DEFAULT) { if (bitrate != null && bitrate !== BITRATE_DEFAULT) {
object4.bitrate = bitrate; object2.bitrate = bitrate;
} }
if (userLimit != null && userLimit > 0) { if (userLimit != null && userLimit > 0) {
object4.user_limit = userLimit; object2.user_limit = userLimit;
} }
if (parentId != null) { if (parentId != null) {
object4.parent_id = parentId; object2.parent_id = parentId;
} }
if (flags != null) { if (flags != null) {
object4.flags = flags; object2.flags = flags;
} }
if (availableTags != null && availableTags.length > 0) { if (availableTags != null && availableTags.length > 0) {
object4.available_tags = availableTags.map(function(a0) { object2.available_tags = availableTags.map(function(a0) {
return {name: a0.name, emoji_id: a0.emojiId, emoji_name: a0.emojiName, moderated: a0.moderated}; return {name: a0.name, emoji_id: a0.emojiId, emoji_name: a0.emojiName, moderated: a0.moderated};
}); });
} }
@@ -46,43 +45,27 @@ function createChannel({guildId, type, name, permissionOverwrites = [], bitrate,
if (type !== GUILD_STORE) { if (type !== GUILD_STORE) {
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */; defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post; post = defaultImport2.post;
object3 = {}; object = {};
object3.url = Endpoints.GUILD_CHANNELS(guildId); object.url = Endpoints.GUILD_CHANNELS(guildId);
object3.body = object4; object.body = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.trackedActionData = {event: NetworkActionNames.CHANNEL_CREATE, properties: properties}; object.trackedActionData = {event: NetworkActionNames.CHANNEL_CREATE, properties: properties_71009};
} else { } else {
if (skuId == null) { if (skuId == null) {
throw new global.Error('Unexpected missing SKU'); throw new global.Error('Unexpected missing SKU');
} }
object4.sku_id = skuId; object2.sku_id = skuId;
object4.branch_id = branchId; object2.branch_id = branchId;
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */; defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post; post = defaultImport2.post;
object3 = {}; object = {};
object3.url = Endpoints.GUILD_CHANNELS(guildId); object.url = Endpoints.GUILD_CHANNELS(guildId);
object3.body = object4; object.body = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.trackedActionData = {event: NetworkActionNames.CHANNEL_CREATE, properties: properties}; object.trackedActionData = {event: NetworkActionNames.CHANNEL_CREATE, properties: properties_71009};
} }
object3.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(post, defaultImport2, [object3]).then(_fun71010, _fun71011); return Reflect.apply(post, defaultImport2, [object]).then(_fun71010, _fun71011);
}
function createRoleSubscriptionTemplateChannel(a0, a1, a2, a3) { // fn#71012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1463, offset: 0x01d1224c, size: 157 bytes, params: 5, frame: 17
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const post = defaultImport.post;
const object2 = {};
object2.url = Endpoints.GUILD_CHANNELS(a0);
object2.body = {name: a1, type: a2, topic: a3};
object2.oldFormErrors = true;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const CHANNEL_CREATE = NetworkActionNames.CHANNEL_CREATE;
object2.trackedActionData = {event: CHANNEL_CREATE, properties: properties};
object2.rejectWithError = false;
return Reflect.apply(post, defaultImport, [object2]);
}
function createChannelProperties(a0) { // fn#71009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:967, owner: createChannel.properties, offset: 0x01d120e0, size: 133 bytes, params: 2, frame: 17 function createChannelProperties(a0) { // fn#71009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:967, owner: createChannel.properties, offset: 0x01d120e0, size: 133 bytes, params: 2, frame: 17
let value = environment.__proto__; let value = environment.__proto__;
value = undefined; value = undefined;
@@ -94,7 +77,8 @@ function createChannelProperties(a0) { // fn#71009, source: /ci/build/discord/di
function _fun71010(a0) { // fn#71010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1156, offset: 0x01d12165, size: 169 bytes, params: 2, frame: 23 function _fun71010(a0) { // fn#71010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1156, offset: 0x01d12165, size: 169 bytes, params: 2, frame: 23
var defaultImport; var defaultImport;
let value = environment.__proto__; let value = environment.__proto__;
if (UserGuildSettingsStore.isOptInEnabled(guildId)) { const userGuildSettingsStoreBinding = UserGuildSettingsStore;
if (userGuildSettingsStoreBinding.isOptInEnabled(guildId)) {
defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */; defaultImport = importDefault(6613) /* metro dependency 6613: NotificationSettingsModalActionCreators */;
defaultImport.updateChannelOverrideSettings(guildId, a0.body.id, defaultImport.updateChannelOverrideSettings(guildId, a0.body.id,
{flags: ChannelNotificationSettingsFlags.OPT_IN_ENABLED}, {flags: ChannelNotificationSettingsFlags.OPT_IN_ENABLED},
@@ -107,11 +91,25 @@ function _fun71010(a0) { // fn#71010, source: /ci/build/discord/discord/discord_
function _fun71011(a0) { // fn#71011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1332, offset: 0x01d1220e, size: 62 bytes, params: 2, frame: 13 function _fun71011(a0) { // fn#71011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1332, offset: 0x01d1220e, size: 62 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_CHANNEL_MODAL_SUBMIT_FAILURE', (Dispatcher).dispatch({type: 'CREATE_CHANNEL_MODAL_SUBMIT_FAILURE',
errors: a0.body}); errors: a0.body});
throw a0; throw a0;
} }
}
function createRoleSubscriptionTemplateChannel(a0, a1, a2, a3) { // fn#71012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1463, offset: 0x01d1224c, size: 157 bytes, params: 5, frame: 17
const defaultImport = TrackedHTTPUtils;
const post = defaultImport.post;
const object = {};
object.url = Endpoints.GUILD_CHANNELS(a0);
object.body = {name: a1, type: a2, topic: a3};
object.oldFormErrors = true;
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const CHANNEL_CREATE = NetworkActionNames.CHANNEL_CREATE;
object.trackedActionData = {event: CHANNEL_CREATE, properties: properties_71013};
object.rejectWithError = false;
return Reflect.apply(post, defaultImport, [object]);
function createRoleSubscriptionTemplateChannelProperties(a0) { // fn#71013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1636, owner: createRoleSubscriptionTemplateChannel.properties, offset: 0x01d122e9, size: 117 bytes, params: 2, frame: 17 function createRoleSubscriptionTemplateChannelProperties(a0) { // fn#71013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9271:1636, owner: createRoleSubscriptionTemplateChannel.properties, offset: 0x01d122e9, size: 117 bytes, params: 2, frame: 17
let value = environment.__proto__; let value = environment.__proto__;
value = undefined; value = undefined;
@@ -120,3 +118,9 @@ function createRoleSubscriptionTemplateChannelProperties(a0) { // fn#71013, sour
channel_type: a0 == null || a0.body == null ? value : a0.body.type}); channel_type: a0 == null || a0.body == null ? value : a0.body.type});
} }
}
}
global.__d(_fun71006, 9086, [4864, 661, 670, 694, 5046, 480, 1392, 6613, 6610, 6931,
2]) /* metro module 9086, dependencies: [4864, 661, 670, 694, 5046, 480, 1392, 6613, 6610, 6931, 2] */;
@@ -1,21 +1,22 @@
/* Metro module 9158; source: actions/CreateInviteModalActionCreators.tsx; dependencies: [9152, 661, 694, 683, 8879, 1244, 2] */ /* Metro module 9158; source: actions/CreateInviteModalActionCreators.tsx; dependencies: [9152, 661, 694, 683, 8879, 1244, 2] */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import CreateInviteModalStore from '../stores/CreateInviteModalStore.tsx'; /* Metro dependency 9152 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun71812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:6, offset: 0x01d2da9c, size: 207 bytes, params: 8, frame: 19 function _fun71812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:6, offset: 0x01d2da9c, size: 207 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const createInviteModalStore = importDefault(9152) /* metro dependency 9152: CreateInviteModalStore */; object = {init: init_71813, openSettings: openSettings, updateSettings: updateSettings,
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
object2 = {init: init_71813, openSettings: openSettings, updateSettings: updateSettings,
resetSettings: resetSettings, createInvite: createInvite_71817, close: close_71820}; resetSettings: resetSettings, createInvite: createInvite_71817, close: close_71820};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/CreateInviteModalActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/CreateInviteModalActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function init_71813(a0, a1, {location, targetType, targetUserId, targetApplicationId, skipCreateInvite}) { // fn#71813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:136, offset: 0x01d2db6b, size: 138 bytes, params: 4, frame: 20 function init_71813(a0, a1, {location, targetType, targetUserId, targetApplicationId, skipCreateInvite}) { // fn#71813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:136, offset: 0x01d2db6b, size: 138 bytes, params: 4, frame: 20
location = location === undefined ? '' : location; location = location === undefined ? '' : location;
const value = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'CREATE_INVITE_MODAL_INIT', guildId: a0, channelId: a1, targetType: targetType,
value.dispatch({type: 'CREATE_INVITE_MODAL_INIT', guildId: a0, channelId: a1, targetType: targetType,
targetUserId: targetUserId, targetApplicationId: targetApplicationId}); targetUserId: targetUserId, targetApplicationId: targetApplicationId});
if (!skipCreateInvite) { if (!skipCreateInvite) {
this.createInvite(location, true); this.createInvite(location, true);
@@ -24,32 +25,32 @@ function init_71813(a0, a1, {location, targetType, targetUserId, targetApplicati
function openSettings(a0, a1, a2, a3) { // fn#71814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:383, offset: 0x01d2dbf5, size: 156 bytes, params: 5, frame: 18 function openSettings(a0, a1, a2, a3) { // fn#71814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:383, offset: 0x01d2dbf5, size: 156 bytes, params: 5, frame: 18
const inviteSettings = CreateInviteModalStore.getInviteSettings(); const inviteSettings = CreateInviteModalStore.getInviteSettings();
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch; const dispatch = defaultImport.dispatch;
const object2 = {type: 'CREATE_INVITE_MODAL_OPEN'}; const object = {type: 'CREATE_INVITE_MODAL_OPEN'};
copyDataProperties(object2, inviteSettings, 'CREATE_INVITE_MODAL_OPEN'); copyDataProperties(object, inviteSettings, 'CREATE_INVITE_MODAL_OPEN');
object2['guildId'] = a0; object['guildId'] = a0;
object2['channelId'] = a1; object['channelId'] = a1;
object2['onClose'] = a3; object['onClose'] = a3;
Reflect.apply(dispatch, defaultImport, [object2]); Reflect.apply(dispatch, defaultImport, [object]);
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport2 = AnalyticsUtils;
const track = defaultImport2.track; const track = defaultImport2.track;
const OPEN_MODAL = AnalyticEvents.OPEN_MODAL; const OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
Reflect.apply(track, defaultImport2, [OPEN_MODAL, {type: 'Instant Invite', source: a2}]); Reflect.apply(track, defaultImport2, [OPEN_MODAL, {type: 'Instant Invite', source: a2}]);
} }
function updateSettings(a0) { // fn#71815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:584, offset: 0x01d2dc91, size: 57 bytes, params: 2, frame: 13 function updateSettings(a0) { // fn#71815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:584, offset: 0x01d2dc91, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_INVITE_MODAL_UPDATE_SETTINGS', (Dispatcher).dispatch({type: 'CREATE_INVITE_MODAL_UPDATE_SETTINGS',
settings: a0}); settings: a0});
} }
function resetSettings() { // fn#71816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:677, offset: 0x01d2dcca, size: 49 bytes, params: 1, frame: 13 function resetSettings() { // fn#71816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:677, offset: 0x01d2dcca, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_INVITE_MODAL_RESET_SETTINGS'}); (Dispatcher).dispatch({type: 'CREATE_INVITE_MODAL_RESET_SETTINGS'});
} }
function createInvite_71817(a0, a1) { // fn#71817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:756, offset: 0x01d2dcfb, size: 304 bytes, params: 3, frame: 26 function createInvite_71817(a0, a1) { // fn#71817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:756, offset: 0x01d2dcfb, size: 304 bytes, params: 3, frame: 26
var code; var code;
var object2; var object;
var channelId; var channelId;
var maxAge; var maxAge;
var maxUses; var maxUses;
@@ -80,44 +81,48 @@ function createInvite_71817(a0, a1) { // fn#71817, source: /ci/build/discord/dis
code = a1 && value3 != invite ? invite.code : value3; code = a1 && value3 != invite ? invite.code : value3;
value = importDefault(8879) /* metro dependency 8879: InstantInviteActionCreators */; value = importDefault(8879) /* metro dependency 8879: InstantInviteActionCreators */;
createInvite = value.createInvite; createInvite = value.createInvite;
object2 = {temporary: temporary, validate: code}; object = {temporary: temporary, validate: code};
parseInt = global.parseInt; parseInt = global.parseInt;
object2.max_age = parseInt(maxAge, 10); object.max_age = parseInt(maxAge, 10);
parseInt = global.parseInt; parseInt = global.parseInt;
object2.max_uses = parseInt(maxUses, 10); object.max_uses = parseInt(maxUses, 10);
object2.target_type = targetType; object.target_type = targetType;
object2.target_user_id = targetUserId; object.target_user_id = targetUserId;
object2.target_application_id = targetApplicationId; object.target_application_id = targetApplicationId;
object2.flags = flags; object.flags = flags;
object2.role_ids = roleIds; object.role_ids = roleIds;
value = Reflect.apply(createInvite, value, [channelId, object2, a0]); value = Reflect.apply(createInvite, value, [channelId, object, a0]);
value.then(_fun71818, _fun71819); value.then(_fun71818, _fun71819);
} }
}
function close_71820() { // fn#71820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1503, offset: 0x01d2def1, size: 67 bytes, params: 1, frame: 14
const onClose = CreateInviteModalStore.onClose;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_INVITE_MODAL_CLOSE'});
if (onClose != null) {
onClose();
}
}
function _fun71818() { // fn#71818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1230, offset: 0x01d2de2b, size: 60 bytes, params: 1, frame: 13 function _fun71818() { // fn#71818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1230, offset: 0x01d2de2b, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CREATE_INVITE_MODAL_GENERATE_INVITE_SUCCESS', (Dispatcher).dispatch({type: 'CREATE_INVITE_MODAL_GENERATE_INVITE_SUCCESS',
channelId: channelId}); channelId: channelId});
} }
function _fun71819(a0) { // fn#71819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1321, offset: 0x01d2de67, size: 138 bytes, params: 2, frame: 16 function _fun71819(a0) { // fn#71819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1321, offset: 0x01d2de67, size: 138 bytes, params: 2, frame: 16
let value = environment.__proto__; let value = environment.__proto__;
const value2 = undefined; const value2 = undefined;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const string = intl.string; const string = intl.string;
const WB1ip6 = (require(1244) /* metro dependency 1244: indexNative */).t.WB1ip6; const WB1ip6 = (IndexNativeModule).t.WB1ip6;
const r4 = (a0 == null ? value2 : a0.message) == null ? Reflect.apply(string, intl, [WB1ip6]) : a0.message; const r4 = (a0 == null ? value2 : a0.message) == null ? Reflect.apply(string, intl, [WB1ip6]) : a0.message;
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'CREATE_INVITE_MODAL_GENERATE_INVITE_FAILURE', message: r4}); value.dispatch({type: 'CREATE_INVITE_MODAL_GENERATE_INVITE_FAILURE', message: r4});
return value2; return value2;
} }
}
function close_71820() { // fn#71820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9343:1503, offset: 0x01d2def1, size: 67 bytes, params: 1, frame: 14
const onClose = CreateInviteModalStore.onClose;
(Dispatcher).dispatch({type: 'CREATE_INVITE_MODAL_CLOSE'});
if (onClose != null) {
onClose();
}
}
}
global.__d(_fun71812, 9158, [9152, 661, 694, 683, 8879, 1244,
2]) /* metro module 9158, dependencies: [9152, 661, 694, 683, 8879, 1244, 2] */;
+14 -9
View File
@@ -1,23 +1,24 @@
/* Metro module 12079; source: actions/DefaultRouteActionCreators.tsx; dependencies: [3785, 661, 3974, 3987, 694, 2] */ /* Metro module 12079; source: actions/DefaultRouteActionCreators.tsx; dependencies: [3785, 661, 3974, 3987, 694, 2] */
import LurkingStore from '../modules/lurker_mode/LurkingStore.tsx'; /* Metro dependency 3785 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as MatchPathCompatModule from '../modules/routing/matchPathCompat.tsx'; /* Metro dependency 3974 */
import * as RouteUtilsModule from '../modules/routing/RouteUtils.tsx'; /* Metro dependency 3987 */
function _fun92815(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:6, offset: 0x0209a172, size: 164 bytes, params: 8, frame: 19 function _fun92815(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:6, offset: 0x0209a172, size: 164 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */; (FileImportTrackerModule).fileFinishedImporting('actions/DefaultRouteActionCreators.tsx');
const env0_4 = (require(661) /* metro dependency 661: Constants */).Routes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/DefaultRouteActionCreators.tsx');
exports.saveLastRoute = saveLastRoute; exports.saveLastRoute = saveLastRoute;
exports.saveLastNonVoiceRoute = saveLastNonVoiceRoute; exports.saveLastNonVoiceRoute = saveLastNonVoiceRoute;
}
function isLurkingGuildRoute(a0) { // fn#92816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:123, offset: 0x0209a216, size: 150 bytes, params: 2, frame: 19 function isLurkingGuildRoute(a0) { // fn#92816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12265:123, offset: 0x0209a216, size: 150 bytes, params: 2, frame: 19
const value2 = undefined; const value2 = undefined;
const matchPathCompatModule = require(3974) /* metro dependency 3974: matchPathCompat */; const matchPath = MatchPathCompatModule.matchPath;
const matchPath = matchPathCompatModule.matchPath;
const CHANNEL = Routes.CHANNEL; const CHANNEL = Routes.CHANNEL;
const RouteParam = (require(3987) /* metro dependency 3987: RouteUtils */).RouteParam; const RouteParam = (RouteUtilsModule).RouteParam;
let guildId = RouteParam.guildId; let guildId = RouteParam.guildId;
const value3 = Reflect.apply(matchPath, matchPathCompatModule, [a0, {path: Reflect.apply(CHANNEL, Routes, const value3 = Reflect.apply(matchPath, MatchPathCompatModule, [a0, {path: Reflect.apply(CHANNEL, Routes,
[Reflect.apply(guildId, RouteParam, [])])}]); [Reflect.apply(guildId, RouteParam, [])])}]);
guildId = value3 == null || value3.params == null ? value2 : value3.params.guildId; guildId = value3 == null || value3.params == null ? value2 : value3.params.guildId;
return !(guildId == null || !LurkingStore.isLurking(guildId)); return !(guildId == null || !LurkingStore.isLurking(guildId));
@@ -36,3 +37,7 @@ function saveLastNonVoiceRoute(a0) { // fn#92818, source: /ci/build/discord/disc
} }
} }
}
global.__d(_fun92815, 12079, [3785, 661, 3974, 3987, 694,
2]) /* metro module 12079, dependencies: [3785, 661, 3974, 3987, 694, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 693; source: actions/DeveloperOptionsActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 693; source: actions/DeveloperOptionsActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun8462(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:6, offset: 0x00d40f57, size: 108 bytes, params: 8, frame: 17 function _fun8462(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#8462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:6, offset: 0x00d40f57, size: 108 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/DeveloperOptionsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/DeveloperOptionsActionCreators.tsx');
exports.setDeveloperOptionSettings = setDeveloperOptionSettings; exports.setDeveloperOptionSettings = setDeveloperOptionSettings;
exports.setRoutingKeyTags = setRoutingKeyTags_8464; exports.setRoutingKeyTags = setRoutingKeyTags_8464;
}
function setDeveloperOptionSettings(a0) { // fn#8463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:197, offset: 0x00d40fc3, size: 54 bytes, params: 2, frame: 12 function setDeveloperOptionSettings(a0) { // fn#8463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:197, offset: 0x00d40fc3, size: 54 bytes, params: 2, frame: 12
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_OPTIONS_UPDATE_SETTINGS', return (Dispatcher).dispatch({type: 'DEVELOPER_OPTIONS_UPDATE_SETTINGS',
settings: a0}); settings: a0});
} }
function setRoutingKeyTags_8464(a0) { // fn#8464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:336, offset: 0x00d40ff9, size: 54 bytes, params: 2, frame: 12 function setRoutingKeyTags_8464(a0) { // fn#8464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:820:336, offset: 0x00d40ff9, size: 54 bytes, params: 2, frame: 12
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DEVELOPER_OPTIONS_SET_ROUTING_KEY', return (Dispatcher).dispatch({type: 'DEVELOPER_OPTIONS_SET_ROUTING_KEY',
tags: a0}); tags: a0});
} }
}
global.__d(_fun8462, 693, [694, 2]) /* metro module 693, dependencies: [694, 2] */;
+13 -10
View File
@@ -1,20 +1,20 @@
/* Metro module 9764; source: actions/DimensionActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 9764; source: actions/DimensionActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun76639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:6, offset: 0x01dde9cc, size: 172 bytes, params: 8, frame: 17 function _fun76639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:6, offset: 0x01dde9cc, size: 172 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {updateChannelDimensions: updateChannelDimensions, updateChannelListScroll: updateChannelListScroll, object = {updateChannelDimensions: updateChannelDimensions, updateChannelListScroll: updateChannelListScroll,
channelListScrollTo: channelListScrollTo, clearChannelListScrollTo: clearChannelListScrollTo, channelListScrollTo: channelListScrollTo, clearChannelListScrollTo: clearChannelListScrollTo,
clearChannelDimensions: function(a0, a1) { clearChannelDimensions: function(a0, a1) {
var Date = global.Date; var Date = global.Date;
this.updateChannelDimensions(a0, Date.now(), null, null, null, a1); this.updateChannelDimensions(a0, Date.now(), null, null, null, a1);
}, updateGuildListScrollTo: updateGuildListScrollTo}; }, updateGuildListScrollTo: updateGuildListScrollTo};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/DimensionActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/DimensionActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function updateChannelDimensions(a0, a1, a2, a3, a4, a5) { // fn#76640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:99, offset: 0x01ddea78, size: 98 bytes, params: 7, frame: 14 function updateChannelDimensions(a0, a1, a2, a3, a4, a5) { // fn#76640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:99, offset: 0x01ddea78, size: 98 bytes, params: 7, frame: 14
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPDATE_CHANNEL_DIMENSIONS', (Dispatcher).dispatch({type: 'UPDATE_CHANNEL_DIMENSIONS',
channelId: a0, timestamp: a1, scrollTop: a2, scrollHeight: a3, offsetHeight: a4}); channelId: a0, timestamp: a1, scrollTop: a2, scrollHeight: a3, offsetHeight: a4});
if (a5 != null) { if (a5 != null) {
a5(); a5();
@@ -29,17 +29,20 @@ function updateChannelListScroll(a0, a1) { // fn#76641, source: /ci/build/discor
} }
function channelListScrollTo(a0, a1) { // fn#76642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:397, offset: 0x01ddeb29, size: 72 bytes, params: 3, frame: 13 function channelListScrollTo(a0, a1) { // fn#76642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:397, offset: 0x01ddeb29, size: 72 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPDATE_CHANNEL_LIST_DIMENSIONS', (Dispatcher).dispatch({type: 'UPDATE_CHANNEL_LIST_DIMENSIONS',
guildId: a0, scrollTo: a1, channelIds: []}); guildId: a0, scrollTo: a1, channelIds: []});
} }
function clearChannelListScrollTo(a0) { // fn#76643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:516, offset: 0x01ddeb71, size: 68 bytes, params: 2, frame: 13 function clearChannelListScrollTo(a0) { // fn#76643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:516, offset: 0x01ddeb71, size: 68 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'UPDATE_CHANNEL_LIST_DIMENSIONS', (Dispatcher).dispatch({'type': 'UPDATE_CHANNEL_LIST_DIMENSIONS',
'guildId': null, 'scrollTo': null, guildId: a0, channelIds: []}); 'guildId': null, 'scrollTo': null, guildId: a0, channelIds: []});
} }
function updateGuildListScrollTo(a0) { // fn#76645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:730, offset: 0x01ddebe6, size: 56 bytes, params: 2, frame: 13 function updateGuildListScrollTo(a0) { // fn#76645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9950:730, offset: 0x01ddebe6, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPDATE_GUILD_LIST_DIMENSIONS', (Dispatcher).dispatch({type: 'UPDATE_GUILD_LIST_DIMENSIONS',
scrollTop: a0}); scrollTop: a0});
} }
}
global.__d(_fun76639, 9764, [694, 2]) /* metro module 9764, dependencies: [694, 2] */;
+13 -10
View File
@@ -1,31 +1,34 @@
/* Metro module 7165; source: actions/DraftActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 7165; source: actions/DraftActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun57503(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:6, offset: 0x013e73e9, size: 134 bytes, params: 8, frame: 17 function _fun57503(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:6, offset: 0x013e73e9, size: 134 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {clearDraft: clearDraft, saveDraft: saveDraft, changeDraft: changeDraft, object = {clearDraft: clearDraft, saveDraft: saveDraft, changeDraft: changeDraft,
changeThreadSettings: changeThreadSettings}; changeThreadSettings: changeThreadSettings};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/DraftActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/DraftActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function clearDraft(a0, a1) { // fn#57504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:99, offset: 0x013e746f, size: 63 bytes, params: 3, frame: 13 function clearDraft(a0, a1) { // fn#57504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:99, offset: 0x013e746f, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_CLEAR', channelId: a0, (Dispatcher).dispatch({type: 'DRAFT_CLEAR', channelId: a0,
draftType: a1}); draftType: a1});
} }
function saveDraft(a0, a1, a2) { // fn#57505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:179, offset: 0x013e74ae, size: 71 bytes, params: 4, frame: 13 function saveDraft(a0, a1, a2) { // fn#57505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:179, offset: 0x013e74ae, size: 71 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_SAVE', channelId: a0, draft: a1, (Dispatcher).dispatch({type: 'DRAFT_SAVE', channelId: a0, draft: a1,
draftType: a2}); draftType: a2});
} }
function changeDraft(a0, a1, a2) { // fn#57506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:267, offset: 0x013e74f5, size: 71 bytes, params: 4, frame: 13 function changeDraft(a0, a1, a2) { // fn#57506, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:267, offset: 0x013e74f5, size: 71 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_CHANGE', channelId: a0, (Dispatcher).dispatch({type: 'DRAFT_CHANGE', channelId: a0,
draft: a1, draftType: a2}); draft: a1, draftType: a2});
} }
function changeThreadSettings(a0, a1) { // fn#57507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:359, offset: 0x013e753c, size: 63 bytes, params: 3, frame: 13 function changeThreadSettings(a0, a1) { // fn#57507, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7343:359, offset: 0x013e753c, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'THREAD_SETTINGS_DRAFT_CHANGE', (Dispatcher).dispatch({type: 'THREAD_SETTINGS_DRAFT_CHANGE',
channelId: a0, draft: a1}); channelId: a0, draft: a1});
} }
}
global.__d(_fun57503, 7165, [694, 2]) /* metro module 7165, dependencies: [694, 2] */;
+162 -151
View File
@@ -1,17 +1,23 @@
/* Metro module 8629; source: actions/EmojiActionCreators.tsx; dependencies: [5, 6540, 4257, 4646, 661, 670, 1362, 1345, 694, 507, 7618, 4002, 1244, 4132, 3797, 1360, 6546, 22, 4647, 2] */ /* Metro module 8629; source: actions/EmojiActionCreators.tsx; dependencies: [5, 6540, 4257, 4646, 661, 670, 1362, 1345, 694, 507, 7618, 4002, 1244, 4132, 3797, 1360, 6546, 22, 4647, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00022 from '../by-id/module-00022.js'; /* Metro dependency 22 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import GatewayConnectionStore from '../modules/gateway/GatewayConnectionStore.tsx'; /* Metro dependency 4257 */
import GuildAvailabilityStore from '../stores/GuildAvailabilityStore.tsx'; /* Metro dependency 4646 */
import EmojiStore from '../modules/emojis/EmojiStore.tsx'; /* Metro dependency 6540 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../modules/user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as WrappersModule from '../external/discord_common/js/packages/protos/google/protobuf/wrappers.tsx'; /* Metro dependency 1345 */
import * as UserSettingsProtoActionCreatorsModule from '../modules/user_settings/UserSettingsProtoActionCreators.tsx'; /* Metro dependency 1362 */
function _fun68075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:6, offset: 0x01c3ddb3, size: 333 bytes, params: 8, frame: 19 function _fun68075(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:6, offset: 0x01c3ddb3, size: 333 bytes, params: 8, frame: 19
let env0_0 = require; let env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/EmojiActionCreators.tsx');
const emojiStore = importDefault(6540) /* metro dependency 6540: EmojiStore */;
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
const guildAvailabilityStore = importDefault(4646) /* metro dependency 4646: GuildAvailabilityStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const userSettingsConstantsModule = require(670) /* metro dependency 670: UserSettingsConstants */;
const env0_8 = userSettingsConstantsModule.MAX_FAVORITES;
const env0_9 = userSettingsConstantsModule.UserSettingsDelay;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/EmojiActionCreators.tsx');
exports.setDiversityColor = function(a0) { exports.setDiversityColor = function(a0) {
var env0_0 = a0; var env0_0 = a0;
var PreloadedUserSettingsActionCreators = require(dependencyMap[6]).PreloadedUserSettingsActionCreators; var PreloadedUserSettingsActionCreators = require(dependencyMap[6]).PreloadedUserSettingsActionCreators;
@@ -40,125 +46,8 @@ function _fun68075(global, require, importDefault, importAll, module, exports, d
UserSettingsDelay.INFREQUENT_USER_ACTION); UserSettingsDelay.INFREQUENT_USER_ACTION);
} }
}; };
}
function _updateEmoji() { // fn#68076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:208, offset: 0x01c3df00, size: 50 bytes, params: 1, frame: 14 function _updateEmoji() { // fn#68076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:208, offset: 0x01c3df00, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun68078).apply(this, arguments); return Module00005(_fun68078).apply(this, arguments);
}
function dedupeFavoriteEmojis(a0) { // fn#68079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:482, offset: 0x01c3e017, size: 148 bytes, params: 2, frame: 19
var value2;
var items2;
var value;
if (!(GuildAvailabilityStore.totalUnavailableGuilds > 0)) {
if (GatewayConnectionStore.isConnected()) {
value2 = a0.map(_fun68080);
value = (importDefault(6546) /* metro dependency 6546: dedupeEmojisByNameOrId */)(value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish));
value = value.keys();
items2 = [];
arraySpread(items2, value, 0, require);
return items2;
}
}
return a0;
}
function getFavoriteEmojiNameOrId(a0) { // fn#68081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:734, offset: 0x01c3e0e9, size: 93 bytes, params: 2, frame: 16
var r1;
var r0;
var id;
var value3;
var defaultImport;
var value4;
const value = null;
if (value == a0) {
r0 = value;
} else {
id = a0.id;
if (value != id) {
r1 = id;
} else {
value3 = undefined;
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
value4 = defaultImport.convertSurrogateToBase(a0.surrogates);
r1 = value == value4 ? value3 : value4.name;
}
r1 = value == r1 ? a0.name : r1;
r0 = r1;
}
return r0;
}
function setDiversityColor(a0) { // fn#68082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:994, offset: 0x01c3e146, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const FREQUENT_USER_ACTION = UserSettingsDelay.FREQUENT_USER_ACTION;
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['textAndImages', _fun68083, FREQUENT_USER_ACTION]);
}
function fetchEmoji(a0) { // fn#68084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1221, offset: 0x01c3e1d8, size: 149 bytes, params: 2, frame: 18
var object2;
const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_FETCH', guildId: a0});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.GUILD_EMOJIS(a0);
Reflect.apply(get, HTTP, [object2]).then(_fun68085, _fun68086);
}
function uploadEmoji({guildId, image, name, roles, analyticsLocation, originalMd5}) { // fn#68087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1532, offset: 0x01c3e2f2, size: 261 bytes, params: 2, frame: 24
var object2;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_UPLOAD_START', guildId: guildId});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
object2 = {};
object2.url = Endpoints.GUILD_EMOJIS(guildId);
object2.body = {image: image, name: name, roles: roles};
object2.headers = (importDefault(7618) /* metro dependency 7618: InlineUploader */).buildHeadersForMd5(originalMd5);
object2.context = {client_event_source: analyticsLocation?.page};
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(post, HTTP, [object2]).then(_fun68088, _fun68089);
}
function deleteEmoji(a0, a1, a2) { // fn#68090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2057, offset: 0x01c3e48d, size: 176 bytes, params: 4, frame: 19
var object2;
const value2 = undefined;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_DELETE', guildId: a0,
emojiId: a1});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const del = HTTP.del;
object2 = {};
object2.url = Endpoints.GUILD_EMOJI(a0, a1);
object2.body = a2 != null ? {replaced_by: a2} : value2;
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(del, HTTP, [object2]).then(function() {
var AccessibilityAnnouncer = require(dependencyMap[11]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[12]).intl.string(require(dependencyMap[12]).t.L3UUha));
});
}
function favoriteEmoji(a0) { // fn#68093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2462, offset: 0x01c3e59a, size: 91 bytes, params: 2, frame: 16
var FrecencyUserSettingsActionCreators;
if (getFavoriteEmojiNameOrId(a0) != null) {
FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
FrecencyUserSettingsActionCreators.updateAsync('favoriteEmojis', _fun68094,
UserSettingsDelay.INFREQUENT_USER_ACTION);
}
}
function unfavoriteEmoji(a0) { // fn#68095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2907, offset: 0x01c3e70d, size: 91 bytes, params: 2, frame: 16
var FrecencyUserSettingsActionCreators;
if (getFavoriteEmojiNameOrId(a0) != null) {
FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
FrecencyUserSettingsActionCreators.updateAsync('favoriteEmojis', _fun68096,
UserSettingsDelay.INFREQUENT_USER_ACTION);
}
}
async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:255, offset: 0x01c3df46, size: 209 bytes, params: 2, frame: 21 async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:255, offset: 0x01c3df46, size: 209 bytes, params: 2, frame: 21
var binding; var binding;
var binding2; var binding2;
@@ -166,10 +55,10 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
var value4; var value4;
var HTTP; var HTTP;
var patch; var patch;
var object3; var object;
var GUILD_EMOJI; var GUILD_EMOJI;
var value5; var value5;
var object4; var object2;
var value6; var value6;
var value7; var value7;
var value8; var value8;
@@ -251,7 +140,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -295,7 +184,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object3.url = value5; object.url = value5;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -306,7 +195,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -317,7 +206,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object4.name = name; object2.name = name;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -328,7 +217,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object4.roles = roles; object2.roles = roles;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -339,7 +228,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object3.body = object4; object.body = object2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -350,7 +239,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object3.oldFormErrors = true; object.oldFormErrors = true;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -361,7 +250,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
object3.rejectWithError = true; object.rejectWithError = true;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -372,7 +261,7 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
throw value; throw value;
} }
try { try {
value6 = Reflect.apply(patch, HTTP, [object3]); value6 = Reflect.apply(patch, HTTP, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[13]); value = binding(env2_2[13]);
@@ -398,6 +287,24 @@ async function _fun68078({guildId, emojiId, name, roles}) { // fn#68078, source:
return value8 ? value7 : value7; return value8 ? value7 : value7;
} }
}
function dedupeFavoriteEmojis(a0) { // fn#68079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:482, offset: 0x01c3e017, size: 148 bytes, params: 2, frame: 19
var value2;
var items2;
var value;
if (!(GuildAvailabilityStore.totalUnavailableGuilds > 0)) {
var gatewayConnectionStoreBinding = GatewayConnectionStore;
if (gatewayConnectionStoreBinding.isConnected()) {
value2 = a0.map(_fun68080);
value = (importDefault(6546) /* metro dependency 6546: dedupeEmojisByNameOrId */)(value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish));
value = value.keys();
items2 = [];
arraySpread(items2, value, 0, require);
return items2;
}
}
return a0;
function _fun68080(a0) { // fn#68080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:596, offset: 0x01c3e0ab, size: 62 bytes, params: 2, frame: 13 function _fun68080(a0) { // fn#68080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:596, offset: 0x01c3e0ab, size: 62 bytes, params: 2, frame: 13
var r0; var r0;
let value = environment.__proto__; let value = environment.__proto__;
@@ -412,58 +319,142 @@ function _fun68080(a0) { // fn#68080, source: /ci/build/discord/discord/discord_
return r0; return r0;
} }
}
function getFavoriteEmojiNameOrId(a0) { // fn#68081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:734, offset: 0x01c3e0e9, size: 93 bytes, params: 2, frame: 16
var r1;
var r0;
var id;
var value3;
var defaultImport;
var value4;
const value = null;
if (value == a0) {
r0 = value;
} else {
id = a0.id;
if (value != id) {
r1 = id;
} else {
value3 = undefined;
defaultImport = importDefault(3797) /* metro dependency 3797: UnicodeEmojis */;
value4 = defaultImport.convertSurrogateToBase(a0.surrogates);
r1 = value == value4 ? value3 : value4.name;
}
r1 = value == r1 ? a0.name : r1;
r0 = r1;
}
return r0;
}
function setDiversityColor(a0) { // fn#68082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:994, offset: 0x01c3e146, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const FREQUENT_USER_ACTION = UserSettingsDelay.FREQUENT_USER_ACTION;
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['textAndImages', _fun68083, FREQUENT_USER_ACTION]);
function _fun68083(a0) { // fn#68083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1097, offset: 0x01c3e192, size: 70 bytes, params: 2, frame: 12 function _fun68083(a0) { // fn#68083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1097, offset: 0x01c3e192, size: 70 bytes, params: 2, frame: 12
const StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue; const StringValue = (WrappersModule).StringValue;
a0.diversitySurrogate = StringValue.create(); a0.diversitySurrogate = StringValue.create();
a0.diversitySurrogate.value = env0_0; a0.diversitySurrogate.value = env0_0;
} }
}
function fetchEmoji(a0) { // fn#68084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1221, offset: 0x01c3e1d8, size: 149 bytes, params: 2, frame: 18
const env0_0 = a0;
(Dispatcher).dispatch({type: 'EMOJI_FETCH', guildId: a0});
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object.url = Endpoints.GUILD_EMOJIS(a0);
Reflect.apply(get, HTTP, [object]).then(_fun68085, _fun68086);
function _fun68085({body}) { // fn#68085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1377, offset: 0x01c3e26d, size: 73 bytes, params: 2, frame: 12 function _fun68085({body}) { // fn#68085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1377, offset: 0x01c3e26d, size: 73 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_FETCH_SUCCESS', return (Dispatcher).dispatch({type: 'EMOJI_FETCH_SUCCESS',
guildId: env0_0, emojis: body}); guildId: env0_0, emojis: body});
} }
function _fun68086() { // fn#68086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1453, offset: 0x01c3e2b6, size: 60 bytes, params: 1, frame: 12 function _fun68086() { // fn#68086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1453, offset: 0x01c3e2b6, size: 60 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_FETCH_FAILURE', return (Dispatcher).dispatch({type: 'EMOJI_FETCH_FAILURE',
guildId: env0_0}); guildId: env0_0});
} }
}
function uploadEmoji({guildId, image, name, roles, analyticsLocation, originalMd5}) { // fn#68087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1532, offset: 0x01c3e2f2, size: 261 bytes, params: 2, frame: 24
(Dispatcher).dispatch({type: 'EMOJI_UPLOAD_START', guildId: guildId});
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
object = {};
object.url = Endpoints.GUILD_EMOJIS(guildId);
object.body = {image: image, name: name, roles: roles};
object.headers = (importDefault(7618) /* metro dependency 7618: InlineUploader */).buildHeadersForMd5(originalMd5);
object.context = {client_event_source: analyticsLocation?.page};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(post, HTTP, [object]).then(_fun68088, _fun68089);
function _fun68088(a0) { // fn#68088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1892, offset: 0x01c3e3f7, size: 68 bytes, params: 2, frame: 12 function _fun68088(a0) { // fn#68088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1892, offset: 0x01c3e3f7, size: 68 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_UPLOAD_STOP', guildId: guildId}); (Dispatcher).dispatch({type: 'EMOJI_UPLOAD_STOP', guildId: guildId});
return a0.body; return a0.body;
} }
function _fun68089(a0) { // fn#68089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1961, offset: 0x01c3e43b, size: 82 bytes, params: 2, frame: 12 function _fun68089(a0) { // fn#68089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:1961, offset: 0x01c3e43b, size: 82 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMOJI_UPLOAD_STOP', guildId: guildId}); (Dispatcher).dispatch({type: 'EMOJI_UPLOAD_STOP', guildId: guildId});
const Promise = global.Promise; const Promise = global.Promise;
return Promise.reject(a0); return Promise.reject(a0);
} }
}
function deleteEmoji(a0, a1, a2) { // fn#68090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2057, offset: 0x01c3e48d, size: 176 bytes, params: 4, frame: 19
const value2 = undefined;
(Dispatcher).dispatch({type: 'EMOJI_DELETE', guildId: a0,
emojiId: a1});
const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del;
object = {};
object.url = Endpoints.GUILD_EMOJI(a0, a1);
object.body = a2 != null ? {replaced_by: a2} : value2;
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(del, HTTP, [object]).then(function() {
var AccessibilityAnnouncer = require(dependencyMap[11]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[12]).intl.string(require(dependencyMap[12]).t.L3UUha));
});
}
function favoriteEmoji(a0) { // fn#68093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2462, offset: 0x01c3e59a, size: 91 bytes, params: 2, frame: 16
var FrecencyUserSettingsActionCreators;
if (getFavoriteEmojiNameOrId(a0) != null) {
FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
FrecencyUserSettingsActionCreators.updateAsync('favoriteEmojis', _fun68094,
UserSettingsDelay.INFREQUENT_USER_ACTION);
}
function _fun68094(a0) { // fn#68094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2604, offset: 0x01c3e5f5, size: 280 bytes, params: 2, frame: 21 function _fun68094(a0) { // fn#68094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2604, offset: 0x01c3e5f5, size: 280 bytes, params: 2, frame: 21
var r0; var r0;
var value4; var value4;
var defaultImport2; var defaultImport2;
var show; var show;
var object2; var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
const value = environment.__proto__; const value = environment.__proto__;
const dedupeFavoriteEmojisBinding = dedupeFavoriteEmojis; const dedupeFavoriteEmojisBinding = dedupeFavoriteEmojis;
const emojis = a0.emojis; const emojis = a0.emojis;
const value2 = undefined; const value2 = undefined;
a0.emojis = dedupeFavoriteEmojisBinding(emojis); a0.emojis = dedupeFavoriteEmojisBinding(emojis);
const defaultImport = importDefault(22) /* metro dependency 22 */; const defaultImport = Module00022;
if (defaultImport.size(a0.emojis) >= MAX_FAVORITES) { if (defaultImport.size(a0.emojis) >= MAX_FAVORITES) {
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */; defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport2.show; show = defaultImport2.show;
object2 = {}; object = {};
object2.title = intl.string(t['+XYXtZ']); object.title = intl.string(t['+XYXtZ']);
object2.body = intl.formatToPlainString(t.JaIyFi, {count: MAX_FAVORITES}); object.body = intl.formatToPlainString(t.JaIyFi, {count: MAX_FAVORITES});
Reflect.apply(show, defaultImport2, [object2]); Reflect.apply(show, defaultImport2, [object]);
r0 = false; r0 = false;
} else { } else {
value4 = a0.emojis.includes(env0_0); value4 = a0.emojis.includes(env0_0);
@@ -477,6 +468,15 @@ function _fun68094(a0) { // fn#68094, source: /ci/build/discord/discord/discord_
return r0; return r0;
} }
}
function unfavoriteEmoji(a0) { // fn#68095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:2907, offset: 0x01c3e70d, size: 91 bytes, params: 2, frame: 16
var FrecencyUserSettingsActionCreators;
if (getFavoriteEmojiNameOrId(a0) != null) {
FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
FrecencyUserSettingsActionCreators.updateAsync('favoriteEmojis', _fun68096,
UserSettingsDelay.INFREQUENT_USER_ACTION);
}
function _fun68096(a0) { // fn#68096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:3051, offset: 0x01c3e768, size: 92 bytes, params: 2, frame: 13 function _fun68096(a0) { // fn#68096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8814:3051, offset: 0x01c3e768, size: 92 bytes, params: 2, frame: 13
const dedupeFavoriteEmojisBinding = dedupeFavoriteEmojis; const dedupeFavoriteEmojisBinding = dedupeFavoriteEmojis;
let emojis = a0.emojis; let emojis = a0.emojis;
@@ -487,5 +487,16 @@ function _fun68096(a0) { // fn#68096, source: /ci/build/discord/discord/discord_
return undefined; return undefined;
} }
return false; return false;
function _fun68097(a0) { // fn#68097, offset: 0x00c956fc, size: 16 bytes, params: 2, frame: 2
return env1_0 !== a0;
} }
}
}
}
global.__d(_fun68075, 8629, [5, 6540, 4257, 4646, 661, 670, 1362, 1345, 694, 507, 7618, 4002, 1244, 4132, 3797,
1360, 6546, 22, 4647,
2]) /* metro module 8629, dependencies: [5, 6540, 4257, 4646, 661, 670, 1362, 1345, 694, 507, 7618, 4002, 1244, 4132, 3797, 1360, 6546, 22, 4647, 2] */;
+63 -58
View File
@@ -1,11 +1,15 @@
/* Metro module 5182; source: actions/EntitlementActionCreators.tsx; dependencies: [5, 661, 694, 507, 4141, 2] */ /* Metro module 5182; source: actions/EntitlementActionCreators.tsx; dependencies: [5, 661, 694, 507, 4141, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun45662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:6, offset: 0x011948bc, size: 178 bytes, params: 8, frame: 19 function _fun45662(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:6, offset: 0x011948bc, size: 178 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/EntitlementActionCreators.tsx');
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/EntitlementActionCreators.tsx');
exports.fetchUserEntitlementsForApplication = fetchUserEntitlementsForApplication; exports.fetchUserEntitlementsForApplication = fetchUserEntitlementsForApplication;
exports.fetchUserEntitlements = function() { exports.fetchUserEntitlements = function() {
return _fetchUserEntitlements.apply(this, arguments); return _fetchUserEntitlements.apply(this, arguments);
@@ -13,42 +17,17 @@ function _fun45662(global, require, importDefault, importAll, module, exports, d
exports.fetchGiftableEntitlements = function() { exports.fetchGiftableEntitlements = function() {
return _fetchGiftableEntitlements.apply(this, arguments); return _fetchGiftableEntitlements.apply(this, arguments);
}; };
}
function _fetchUserEntitlements() { // fn#45663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:128, offset: 0x0119496e, size: 48 bytes, params: 1, frame: 14 function _fetchUserEntitlements() { // fn#45663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:128, offset: 0x0119496e, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun45665).apply(this, arguments); return Module00005(_fun45665).apply(this, arguments);
}
function _fetchGiftableEntitlements() { // fn#45666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:689, offset: 0x01194afe, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun45668).apply(this, arguments);
}
function fetchUserEntitlementsForApplication(a0) { // fn#45669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1222, offset: 0x01194c12, size: 169 bytes, params: 2, frame: 17
let value = a1;
const env0_0 = a0;
const r6 = !(value !== undefined) || value;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun45670);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object2 = {};
object2.url = Endpoints.ENTITLEMENTS_FOR_APPLICATION(a0);
object2.oldFormErrors = true;
object2.query = {exclude_consumed: r6};
object2.rejectWithError = true;
value = Reflect.apply(get, HTTP, [object2]);
value = value.then(_fun45671);
return value.catch(_fun45672);
}
async function _fun45665({withSku, withApplication, excludeEnded, entitlementType}) { // fn#45665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:195, offset: 0x011949b0, size: 334 bytes, params: 2, frame: 21 async function _fun45665({withSku, withApplication, excludeEnded, entitlementType}) { // fn#45665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:195, offset: 0x011949b0, size: 334 bytes, params: 2, frame: 21
var object4; var object2;
var binding2; var binding2;
var property; var property;
var value5; var value5;
var HTTP; var HTTP;
var get; var get;
var ENTITLEMENTS_FOR_USER; var ENTITLEMENTS_FOR_USER;
var object3; var object;
var value6; var value6;
var value7; var value7;
var value8; var value8;
@@ -135,7 +114,7 @@ async function _fun45665({withSku, withApplication, excludeEnded, entitlementTyp
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
@@ -150,47 +129,47 @@ async function _fun45665({withSku, withApplication, excludeEnded, entitlementTyp
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.url = ENTITLEMENTS_FOR_USER; object2.url = ENTITLEMENTS_FOR_USER;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object3.with_sku = withSku; object.with_sku = withSku;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object3.with_application = withApplication; object.with_application = withApplication;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object3.entitlement_type = entitlementType; object.entitlement_type = entitlementType;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object3.exclude_ended = excludeEnded; object.exclude_ended = excludeEnded;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.query = object3; object2.query = object;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.rejectWithError = true; object2.rejectWithError = true;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
value6 = Reflect.apply(get, HTTP, [object4]); value6 = Reflect.apply(get, HTTP, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
@@ -230,12 +209,12 @@ async function _fun45665({withSku, withApplication, excludeEnded, entitlementTyp
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.type = 'ENTITLEMENTS_FETCH_FOR_USER_SUCCESS'; object2.type = 'ENTITLEMENTS_FETCH_FOR_USER_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
@@ -245,25 +224,28 @@ async function _fun45665({withSku, withApplication, excludeEnded, entitlementTyp
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.entitlements = body; object2.entitlements = body;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
object4.excludeEnded = excludeEnded; object2.excludeEnded = excludeEnded;
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
try { try {
Reflect.apply(dispatch, value9, [object4]); Reflect.apply(dispatch, value9, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding47; break exceptionLanding47;
} }
} }
} }
}
function _fetchGiftableEntitlements() { // fn#45666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:689, offset: 0x01194afe, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun45668).apply(this, arguments);
function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:764, offset: 0x01194b37, size: 219 bytes, params: 1, frame: 17 function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:764, offset: 0x01194b37, size: 219 bytes, params: 1, frame: 17
var object2;
var binding2; var binding2;
var property; var property;
var value4; var value4;
@@ -321,7 +303,7 @@ function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
@@ -336,17 +318,17 @@ function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2.url = ENTITLEMENTS_GIFTABLE; object.url = ENTITLEMENTS_GIFTABLE;
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2.rejectWithError = true; object.rejectWithError = true;
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
value5 = Reflect.apply(httpGetWithCountryCodeQuery, value4, [object2]); value5 = Reflect.apply(httpGetWithCountryCodeQuery, value4, [object]);
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
@@ -386,12 +368,12 @@ function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2.type = 'ENTITLEMENTS_GIFTABLE_FETCH_SUCCESS'; object.type = 'ENTITLEMENTS_GIFTABLE_FETCH_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
@@ -401,34 +383,57 @@ function* _fun45668() { // fn#45668, original name: ?anon_0_, source: /ci/build/
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
object2.entitlements = body; object.entitlements = body;
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
try { try {
Reflect.apply(dispatch, value8, [object2]); Reflect.apply(dispatch, value8, [object]);
} catch (error) { } catch (error) {
break exceptionLanding30; break exceptionLanding30;
} }
} }
} }
}
function fetchUserEntitlementsForApplication(a0) { // fn#45669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1222, offset: 0x01194c12, size: 169 bytes, params: 2, frame: 17
let value = a1;
const env0_0 = a0;
const r6 = !(value !== undefined) || value;
(Dispatcher).wait(_fun45670);
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {};
object.url = Endpoints.ENTITLEMENTS_FOR_APPLICATION(a0);
object.oldFormErrors = true;
object.query = {exclude_consumed: r6};
object.rejectWithError = true;
value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun45671);
return value.catch(_fun45672);
function _fun45670() { // fn#45670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1296, offset: 0x01194cbb, size: 60 bytes, params: 1, frame: 13 function _fun45670() { // fn#45670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1296, offset: 0x01194cbb, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_START', (Dispatcher).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_START',
applicationId: env0_0}); applicationId: env0_0});
} }
function _fun45671(a0) { // fn#45671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1510, offset: 0x01194cf7, size: 78 bytes, params: 2, frame: 13 function _fun45671(a0) { // fn#45671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1510, offset: 0x01194cf7, size: 78 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_SUCCESS', (Dispatcher).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_SUCCESS',
applicationId: env0_0, entitlements: a0.body}); applicationId: env0_0, entitlements: a0.body});
return a0.body; return a0.body;
} }
function _fun45672() { // fn#45672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1632, offset: 0x01194d45, size: 60 bytes, params: 1, frame: 13 function _fun45672() { // fn#45672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5360:1632, offset: 0x01194d45, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_FAIL', (Dispatcher).dispatch({type: 'ENTITLEMENT_FETCH_APPLICATION_FAIL',
applicationId: env0_0}); applicationId: env0_0});
} }
}
}
global.__d(_fun45662, 5182, [5, 661, 694, 507, 4141,
2]) /* metro module 5182, dependencies: [5, 661, 694, 507, 4141, 2] */;
+19 -14
View File
@@ -1,18 +1,20 @@
/* Metro module 15817; source: actions/FriendsActionCreators.tsx; dependencies: [661, 694, 1230, 15139, 2] */ /* Metro module 15817; source: actions/FriendsActionCreators.tsx; dependencies: [661, 694, 1230, 15139, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as Router_utilsModule from '../modules/routing/router_utils.tsx'; /* Metro dependency 1230 */
function _fun121559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:6, offset: 0x0254adce, size: 161 bytes, params: 8, frame: 19 function _fun121559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:6, offset: 0x0254adce, size: 161 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const closure = setSection_121560; const setSection_1215602 = setSection_121560;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Routes; object = {transitionToSection: transitionToSection, setSection: setSection_1215602,
object2 = {transitionToSection: transitionToSection, setSection: closure, setInitialSection: setInitialSection}; setInitialSection: setInitialSection};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/FriendsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/FriendsActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function setSection_121560(a0) { // fn#121560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:113, offset: 0x0254ae6f, size: 57 bytes, params: 2, frame: 13 function setSection_121560(a0) { // fn#121560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:113, offset: 0x0254ae6f, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIENDS_SET_SECTION', section: a0}); (Dispatcher).dispatch({type: 'FRIENDS_SET_SECTION', section: a0});
} }
function transitionToSection(a0) { // fn#121561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:200, offset: 0x0254aea8, size: 168 bytes, params: 2, frame: 15 function transitionToSection(a0) { // fn#121561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:200, offset: 0x0254aea8, size: 168 bytes, params: 2, frame: 15
@@ -20,12 +22,11 @@ function transitionToSection(a0) { // fn#121561, source: /ci/build/discord/disco
const value = a1; const value = a1;
let explicit = (value !== undefined ? value : {}).explicit; let explicit = (value !== undefined ? value : {}).explicit;
explicit = !(explicit === undefined) && explicit; explicit = !(explicit === undefined) && explicit;
const router_utilsModule = require(1230) /* metro dependency 1230: router_utils */; const getHistory = Router_utilsModule.getHistory;
const getHistory = router_utilsModule.getHistory; const pathname = Reflect.apply(getHistory, Router_utilsModule, []).location.pathname;
const pathname = Reflect.apply(getHistory, router_utilsModule, []).location.pathname;
const FRIENDS = Routes.FRIENDS; const FRIENDS = Routes.FRIENDS;
if (pathname !== FRIENDS) { if (pathname !== FRIENDS) {
moduleValue2 = router_utilsModule; moduleValue2 = Router_utilsModule;
moduleValue2.transitionTo(Routes.FRIENDS); moduleValue2.transitionTo(Routes.FRIENDS);
} }
setSection_121560(a0); setSection_121560(a0);
@@ -35,7 +36,11 @@ function transitionToSection(a0) { // fn#121561, source: /ci/build/discord/disco
} }
function setInitialSection(a0) { // fn#121562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:390, offset: 0x0254af50, size: 57 bytes, params: 2, frame: 13 function setInitialSection(a0) { // fn#121562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16025:390, offset: 0x0254af50, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRIENDS_SET_INITIAL_SECTION', (Dispatcher).dispatch({type: 'FRIENDS_SET_INITIAL_SECTION',
section: a0}); section: a0});
} }
}
global.__d(_fun121559, 15817, [661, 694, 1230, 15139,
2]) /* metro module 15817, dependencies: [661, 694, 1230, 15139, 2] */;
+198 -185
View File
@@ -1,10 +1,25 @@
/* Metro module 9814; source: actions/GIFPickerActionCreators.tsx; dependencies: [1949, 9815, 661, 670, 4863, 9816, 9819, 507, 694, 22, 491, 1471, 9598, 1362, 1349, 4647, 1244, 683, 2] */ /* Metro module 9814; source: actions/GIFPickerActionCreators.tsx; dependencies: [1949, 9815, 661, 670, 4863, 9816, 9819, 507, 694, 22, 491, 1471, 9598, 1362, 1349, 4647, 1244, 683, 2] */
import Module00022 from '../by-id/module-00022.js'; /* Metro dependency 22 */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import URLUtils from '../utils/URLUtils.tsx'; /* Metro dependency 1471 */
import LocaleStore from '../modules/user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import AppAnalyticsUtils from '../modules/app_analytics/AppAnalyticsUtils.tsx'; /* Metro dependency 4863 */
import GIFPickerViewStore from '../stores/views/GIFPickerViewStore.tsx'; /* Metro dependency 9815 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00491Module from '../by-id/module-00491.js'; /* Metro dependency 491 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UserSettingsProtoActionCreatorsModule from '../modules/user_settings/UserSettingsProtoActionCreators.tsx'; /* Metro dependency 1362 */
import * as GIFPickerUtilsModule from '../utils/GIFPickerUtils.tsx'; /* Metro dependency 9819 */
function _fun76851(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:6, offset: 0x01de77ac, size: 490 bytes, params: 8, frame: 24 function _fun76851(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#76851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:6, offset: 0x01de77ac, size: 490 bytes, params: 8, frame: 24
let env0_0 = require; let env0_0 = require;
const closure = trackSearchStart_76852; const trackSearchStart_768522 = trackSearchStart_76852;
const closure2 = trackSearchResultViewed_76853; const trackSearchResultViewed_768532 = trackSearchResultViewed_76853;
const closure3 = doSearchRequest; const doSearchRequest2 = doSearchRequest;
const closure4 = resetSearch; const resetSearch2 = resetSearch;
const closure5 = function(a0) { const closure5 = function(a0) {
var r1; var r1;
var r0; var r0;
@@ -27,9 +42,7 @@ function _fun76851(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */; let value = ConstantsModule;
const gifPickerViewStore = importDefault(9815) /* metro dependency 9815: GIFPickerViewStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_5 = value.AnalyticEvents; const env0_5 = value.AnalyticEvents;
const env0_6 = value.Endpoints; const env0_6 = value.Endpoints;
const env0_7 = value.SearchTypes; const env0_7 = value.SearchTypes;
@@ -38,14 +51,14 @@ function _fun76851(global, require, importDefault, importAll, module, exports, d
const env0_9 = value.MAX_FAVORITE_GIFS_SIZE; const env0_9 = value.MAX_FAVORITE_GIFS_SIZE;
const env0_10 = value.UserSettingsDelay; const env0_10 = value.UserSettingsDelay;
const env0_11 = RegExp('-', 'g'); const env0_11 = RegExp('-', 'g');
const env0_12 = (importDefault(22) /* metro dependency 22 */).debounce(closure3, 250); const env0_12 = (Module00022).debounce(doSearchRequest2, 250);
const env0_13 = RegExp('\\.(webp|avif|gif)(\\?|$)', 'i'); const env0_13 = RegExp('\\.(webp|avif|gif)(\\?|$)', 'i');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GIFPickerActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/GIFPickerActionCreators.tsx');
exports.trackSearchStart = closure; exports.trackSearchStart = trackSearchStart_768522;
exports.trackSearchResultViewed = closure2; exports.trackSearchResultViewed = trackSearchResultViewed_768532;
exports.search = search_76861; exports.search = search_76861;
exports.fetchSuggestions = fetchSuggestions; exports.fetchSuggestions = fetchSuggestions;
exports.resetSearch = closure4; exports.resetSearch = resetSearch2;
exports.trackSelectGIF = trackSelectGIF; exports.trackSelectGIF = trackSelectGIF;
exports.initializeSearch = initializeSearch_76865; exports.initializeSearch = initializeSearch_76865;
exports.fetchTrending = fetchTrending; exports.fetchTrending = fetchTrending;
@@ -64,22 +77,20 @@ function _fun76851(global, require, importDefault, importAll, module, exports, d
FrecencyUserSettingsActionCreators.updateAsync('favoriteGifs', _fun76876, INFREQUENT_USER_ACTION); FrecencyUserSettingsActionCreators.updateAsync('favoriteGifs', _fun76876, INFREQUENT_USER_ACTION);
}; };
exports.fetchTrendingSearchTerms = fetchTrendingSearchTerms; exports.fetchTrendingSearchTerms = fetchTrendingSearchTerms;
}
function trackSearchStart_76852(a0) { // fn#76852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:266, offset: 0x01de7996, size: 175 bytes, params: 2, frame: 19 function trackSearchStart_76852(a0) { // fn#76852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:266, offset: 0x01de7996, size: 175 bytes, params: 2, frame: 19
const r6 = a0 != null ? {[a0]: 1} : {}; const r6 = a0 != null ? {[a0]: 1} : {};
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */; const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata; const trackWithMetadata = defaultImport.trackWithMetadata;
const SEARCH_STARTED = AnalyticEvents.SEARCH_STARTED; const SEARCH_STARTED = AnalyticEvents.SEARCH_STARTED;
const object2 = {}; const object = {};
const GIF = SearchTypes.GIF; const GIF = SearchTypes.GIF;
object2.search_type = GIF; object.search_type = GIF;
object2.load_id = GIFPickerViewStore.getAnalyticsID(); object.load_id = GIFPickerViewStore.getAnalyticsID();
const Object = global.Object; const Object = global.Object;
object2.num_modifiers = Object.keys(r6).length; object.num_modifiers = Object.keys(r6).length;
object2.modifiers = r6; object.modifiers = r6;
object2.gif_provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest(); object.gif_provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_STARTED, object2]); Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_STARTED, object]);
} }
function trackSearchResultViewed_76853(a0, a1) { // fn#76853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:507, offset: 0x01de7a45, size: 290 bytes, params: 3, frame: 21 function trackSearchResultViewed_76853(a0, a1) { // fn#76853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:507, offset: 0x01de7a45, size: 290 bytes, params: 3, frame: 21
@@ -89,27 +100,26 @@ function trackSearchResultViewed_76853(a0, a1) { // fn#76853, source: /ci/build/
value = Object.create(null); value = Object.create(null);
value.startTime = 0; value.startTime = 0;
const value2 = copyDataProperties({}, r6, value, undefined); const value2 = copyDataProperties({}, r6, value, undefined);
let object3 = {'offset': 0, 'limit': null}; let object = {'offset': 0, 'limit': null};
object3.totalResults = a0.length; object.totalResults = a0.length;
const gifPickerUtilsModule = require(9819) /* metro dependency 9819: GIFPickerUtils */; const calculateAnalyticsMetadata = GIFPickerUtilsModule.calculateAnalyticsMetadata;
const calculateAnalyticsMetadata = gifPickerUtilsModule.calculateAnalyticsMetadata;
const analyticsID = GIFPickerViewStore.getAnalyticsID(); const analyticsID = GIFPickerViewStore.getAnalyticsID();
const object4 = {}; const object2 = {};
copyDataProperties(object4, object3, value); copyDataProperties(object2, object, value);
copyDataProperties(object4, value2, value); copyDataProperties(object2, value2, value);
object4['results'] = a0.length; object2['results'] = a0.length;
const value5 = Reflect.apply(calculateAnalyticsMetadata, gifPickerUtilsModule, [analyticsID, a1, object4]); const value5 = Reflect.apply(calculateAnalyticsMetadata, GIFPickerUtilsModule, [analyticsID, a1, object2]);
r6 = startTime == null ? {} : {load_duration_ms: global.Date.now() - startTime}; r6 = startTime == null ? {} : {load_duration_ms: global.Date.now() - startTime};
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */; const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata; const trackWithMetadata = defaultImport.trackWithMetadata;
const SEARCH_RESULT_VIEWED = AnalyticEvents.SEARCH_RESULT_VIEWED; const SEARCH_RESULT_VIEWED = AnalyticEvents.SEARCH_RESULT_VIEWED;
object3 = {}; object = {};
copyDataProperties(object3, value5, value); copyDataProperties(object, value5, value);
copyDataProperties(object3, r6, value); copyDataProperties(object, r6, value);
value = require(9816) /* metro dependency 9816: GifProviderConfig */; value = require(9816) /* metro dependency 9816: GifProviderConfig */;
value = value.getProviderForAPIRequest(); value = value.getProviderForAPIRequest();
object3['gif_provider'] = value; object['gif_provider'] = value;
Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_RESULT_VIEWED, object3]); Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_RESULT_VIEWED, object]);
} }
function doSearchRequest(a0, a1, a2) { // fn#76854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:860, offset: 0x01de7b67, size: 224 bytes, params: 4, frame: 21 function doSearchRequest(a0, a1, a2) { // fn#76854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:860, offset: 0x01de7b67, size: 224 bytes, params: 4, frame: 21
@@ -119,24 +129,37 @@ function doSearchRequest(a0, a1, a2) { // fn#76854, source: /ci/build/discord/di
const Date = global.Date; const Date = global.Date;
const env0_3 = Date.now(); const env0_3 = Date.now();
trackSearchStart_76852(a1); trackSearchStart_76852(a1);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object3 = {}; const object = {};
const GIFS_SEARCH = Endpoints.GIFS_SEARCH; const GIFS_SEARCH = Endpoints.GIFS_SEARCH;
object3.url = GIFS_SEARCH; object.url = GIFS_SEARCH;
const object4 = {q: a0}; const object2 = {q: a0};
object4.media_format = GIFPickerViewStore.getSelectedFormat(); object2.media_format = GIFPickerViewStore.getSelectedFormat();
object4.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest(); object2.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object4.locale = LocaleStore.locale; object2.locale = LocaleStore.locale;
object4.limit = a2; object2.limit = a2;
object3.query = object4; object.query = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(get, HTTP, [object3]).then(_fun76855, _fun76856); Reflect.apply(get, HTTP, [object]).then(_fun76855, _fun76856);
function _fun76855({body}) { // fn#76855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1124, offset: 0x01de7c47, size: 108 bytes, params: 2, frame: 17
let value = environment.__proto__;
trackSearchResultViewed_76853(body, require, {startTime: env0_3, limit: importDefault});
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GIF_PICKER_QUERY_SUCCESS', query: env0_0, items: body});
}
function _fun76856() { // fn#76856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1263, offset: 0x01de7cb3, size: 61 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'GIF_PICKER_QUERY_FAILURE',
query: env0_0});
}
} }
function resetSearch() { // fn#76857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1373, offset: 0x01de7cf0, size: 51 bytes, params: 1, frame: 12 function resetSearch() { // fn#76857, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1373, offset: 0x01de7cf0, size: 51 bytes, params: 1, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'GIF_PICKER_QUERY', 'query': ''}); (Dispatcher).dispatch({'type': 'GIF_PICKER_QUERY', 'query': ''});
} }
function isProxiedAttachment({src}) { // fn#76859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1595, offset: 0x01de7d9f, size: 121 bytes, params: 2, frame: 15 function isProxiedAttachment({src}) { // fn#76859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1595, offset: 0x01de7d9f, size: 121 bytes, params: 2, frame: 15
@@ -144,7 +167,7 @@ function isProxiedAttachment({src}) { // fn#76859, source: /ci/build/discord/dis
var r0; var r0;
var isExternalProxiedAttachmentUrl2; var isExternalProxiedAttachmentUrl2;
var value; var value;
const value2 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(src); const value2 = (URLUtils).toURLSafe(src);
const value3 = value2 != null; const value3 = value2 != null;
if (value3) { if (value3) {
isExternalProxiedAttachmentUrl2 = (require(9598) /* metro dependency 9598: SignedAttachmentLinkUtils */).isExternalProxiedAttachmentUrl(value2); isExternalProxiedAttachmentUrl2 = (require(9598) /* metro dependency 9598: SignedAttachmentLinkUtils */).isExternalProxiedAttachmentUrl(value2);
@@ -183,39 +206,43 @@ function search_76861(a0, a1) { // fn#76861, source: /ci/build/discord/discord/d
function fetchSuggestions(a0) { // fn#76862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2153, offset: 0x01de7ea6, size: 178 bytes, params: 2, frame: 18 function fetchSuggestions(a0) { // fn#76862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2153, offset: 0x01de7ea6, size: 178 bytes, params: 2, frame: 18
var HTTP; var HTTP;
var get; var get;
var object3; var object;
var object4; var object2;
const env0_0 = a0; const env0_0 = a0;
if (a0 !== '' && a0 != null) { if (a0 !== '' && a0 != null) {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get; get = HTTP.get;
object3 = {}; object = {};
object3.url = Endpoints.GIFS_SUGGEST; object.url = Endpoints.GIFS_SUGGEST;
object4 = {q: a0}; object2 = {q: a0};
object4.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest(); object2.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object4.limit = 5; object2.limit = 5;
object4.locale = LocaleStore.locale; object2.locale = LocaleStore.locale;
object3.query = object4; object.query = object2;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(get, HTTP, [object3]).then(_fun76863); Reflect.apply(get, HTTP, [object]).then(_fun76863);
} }
function _fun76863({body}) { // fn#76863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2360, offset: 0x01de7f58, size: 74 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'GIF_PICKER_SUGGESTIONS_SUCCESS',
query: env0_0, items: body});
}
} }
function trackSelectGIF({type, index, offset, limit, results, totalResults, query, gifId}) { // fn#76864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2498, offset: 0x01de7fa2, size: 316 bytes, params: 2, frame: 25 function trackSelectGIF({type, index, offset, limit, results, totalResults, query, gifId}) { // fn#76864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2498, offset: 0x01de7fa2, size: 316 bytes, params: 2, frame: 25
var object2; const value3 = GIFPickerUtilsModule.calculateAnalyticsMetadata(GIFPickerViewStore.getAnalyticsID(), type,
const gifPickerUtilsModule = require(9819) /* metro dependency 9819: GIFPickerUtils */;
const value3 = gifPickerUtilsModule.calculateAnalyticsMetadata(GIFPickerViewStore.getAnalyticsID(), type,
{offset: offset, limit: limit, results: results, totalResults: totalResults}); {offset: offset, limit: limit, results: results, totalResults: totalResults});
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */; const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata; const trackWithMetadata = defaultImport.trackWithMetadata;
const SEARCH_RESULT_SELECTED = AnalyticEvents.SEARCH_RESULT_SELECTED; const SEARCH_RESULT_SELECTED = AnalyticEvents.SEARCH_RESULT_SELECTED;
object2 = {}; object = {};
copyDataProperties(object2, value3, undefined); copyDataProperties(object, value3, undefined);
object2['index_num'] = index; object['index_num'] = index;
object2['source_object'] = 'GIF Picker'; object['source_object'] = 'GIF Picker';
object2['query'] = query; object['query'] = query;
Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_RESULT_SELECTED, object2]); Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_RESULT_SELECTED, object]);
if (gifId != null) { if (gifId != null) {
(require(507) /* metro dependency 507: HTTPUtils */).HTTP.post({url: Endpoints.GIFS_SELECT, body: {id: gifId, (require(507) /* metro dependency 507: HTTPUtils */).HTTP.post({url: Endpoints.GIFS_SELECT, body: {id: gifId,
q: query, q: query,
@@ -225,111 +252,35 @@ function trackSelectGIF({type, index, offset, limit, results, totalResults, quer
} }
function initializeSearch_76865() { // fn#76865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2987, offset: 0x01de80de, size: 152 bytes, params: 1, frame: 19 function initializeSearch_76865() { // fn#76865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2987, offset: 0x01de80de, size: 152 bytes, params: 1, frame: 19
const value3 = (require(491) /* metro dependency 491 */).v4().replace(env0_11, ''); const value3 = (Module00491Module).v4().replace(env0_11, '');
const defaultImport = importDefault(4863) /* metro dependency 4863: AppAnalyticsUtils */; const defaultImport = AppAnalyticsUtils;
const trackWithMetadata = defaultImport.trackWithMetadata; const trackWithMetadata = defaultImport.trackWithMetadata;
const SEARCH_OPENED = AnalyticEvents.SEARCH_OPENED; const SEARCH_OPENED = AnalyticEvents.SEARCH_OPENED;
const GIF = SearchTypes.GIF; const GIF = SearchTypes.GIF;
Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_OPENED, {search_type: GIF, load_id: value3}]); Reflect.apply(trackWithMetadata, defaultImport, [SEARCH_OPENED, {search_type: GIF, load_id: value3}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun76866); (Dispatcher).wait(_fun76866);
}
function fetchTrending() { // fn#76867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3224, offset: 0x01de81b3, size: 156 bytes, params: 1, frame: 17
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object3 = {};
const GIFS_TRENDING = Endpoints.GIFS_TRENDING;
object3.url = GIFS_TRENDING;
const object4 = {};
object4.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object4.locale = LocaleStore.locale;
object4.media_format = GIFPickerViewStore.getSelectedFormat();
object3.query = object4;
object3.oldFormErrors = true;
object3.rejectWithError = true;
Reflect.apply(get, HTTP, [object3]).then(_fun76868);
}
function fetchTrendingGIFs(a0) { // fn#76869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3605, offset: 0x01de82a4, size: 215 bytes, params: 2, frame: 21
const env0_0 = a0;
const Date = global.Date;
const env0_1 = Date.now();
const trackSearchStart_76852Binding = trackSearchStart_76852;
const TRENDING_GIFS = GIFPickerResultTypes.TRENDING_GIFS;
trackSearchStart_76852Binding(TRENDING_GIFS);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object3 = {};
const GIFS_TRENDING_GIFS = Endpoints.GIFS_TRENDING_GIFS;
object3.url = GIFS_TRENDING_GIFS;
const object4 = {};
object4.media_format = GIFPickerViewStore.getSelectedFormat();
object4.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object4.locale = LocaleStore.locale;
object4.limit = a0;
object3.query = object4;
object3.oldFormErrors = true;
object3.rejectWithError = true;
Reflect.apply(get, HTTP, [object3]).then(_fun76870, _fun76871);
}
function addFavoriteGIF(a0) { // fn#76872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4125, offset: 0x01de8415, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
const updateAsync = FrecencyUserSettingsActionCreators.updateAsync;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, FrecencyUserSettingsActionCreators, ['favoriteGifs', _fun76873, INFREQUENT_USER_ACTION]);
}
function removeFavoriteGIF(a0) { // fn#76875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5341, offset: 0x01de87f8, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const FrecencyUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).FrecencyUserSettingsActionCreators;
const updateAsync = FrecencyUserSettingsActionCreators.updateAsync;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, FrecencyUserSettingsActionCreators, ['favoriteGifs', _fun76876, INFREQUENT_USER_ACTION]);
}
function fetchTrendingSearchTerms() { // fn#76877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5637, offset: 0x01de88d4, size: 141 bytes, params: 1, frame: 17
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const object3 = {};
const GIFS_TRENDING_SEARCH = Endpoints.GIFS_TRENDING_SEARCH;
object3.url = GIFS_TRENDING_SEARCH;
const object4 = {};
object4.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object4.limit = 5;
object4.locale = LocaleStore.locale;
object3.query = object4;
object3.oldFormErrors = true;
object3.rejectWithError = true;
Reflect.apply(get, HTTP, [object3]).then(_fun76878);
}
function _fun76855({body}) { // fn#76855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1124, offset: 0x01de7c47, size: 108 bytes, params: 2, frame: 17
let value = environment.__proto__;
trackSearchResultViewed_76853(body, require, {startTime: env0_3, limit: importDefault});
value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GIF_PICKER_QUERY_SUCCESS', query: env0_0, items: body});
}
function _fun76856() { // fn#76856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:1263, offset: 0x01de7cb3, size: 61 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIF_PICKER_QUERY_FAILURE',
query: env0_0});
}
function _fun76863({body}) { // fn#76863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:2360, offset: 0x01de7f58, size: 74 bytes, params: 2, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIF_PICKER_SUGGESTIONS_SUCCESS',
query: env0_0, items: body});
}
function _fun76866() { // fn#76866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3136, offset: 0x01de8176, size: 61 bytes, params: 1, frame: 13 function _fun76866() { // fn#76866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3136, offset: 0x01de8176, size: 61 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIF_PICKER_INITIALIZE', (Dispatcher).dispatch({type: 'GIF_PICKER_INITIALIZE',
analyticsID: env0_0}); analyticsID: env0_0});
} }
}
function fetchTrending() { // fn#76867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3224, offset: 0x01de81b3, size: 156 bytes, params: 1, frame: 17
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {};
const GIFS_TRENDING = Endpoints.GIFS_TRENDING;
object.url = GIFS_TRENDING;
const object2 = {};
object2.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object2.locale = LocaleStore.locale;
object2.media_format = GIFPickerViewStore.getSelectedFormat();
object.query = object2;
object.oldFormErrors = true;
object.rejectWithError = true;
Reflect.apply(get, HTTP, [object]).then(_fun76868);
function _fun76868({body}) { // fn#76868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3434, offset: 0x01de824f, size: 85 bytes, params: 2, frame: 15 function _fun76868({body}) { // fn#76868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3434, offset: 0x01de824f, size: 85 bytes, params: 2, frame: 15
const categories = body.categories; const categories = body.categories;
const gifs = body.gifs; const gifs = body.gifs;
@@ -339,6 +290,29 @@ function _fun76868({body}) { // fn#76868, source: /ci/build/discord/discord/disc
trendingGIFPreview: gifs[0]}); trendingGIFPreview: gifs[0]});
} }
}
function fetchTrendingGIFs(a0) { // fn#76869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3605, offset: 0x01de82a4, size: 215 bytes, params: 2, frame: 21
const env0_0 = a0;
const Date = global.Date;
const env0_1 = Date.now();
const trackSearchStart_76852Binding = trackSearchStart_76852;
const TRENDING_GIFS = GIFPickerResultTypes.TRENDING_GIFS;
trackSearchStart_76852Binding(TRENDING_GIFS);
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {};
const GIFS_TRENDING_GIFS = Endpoints.GIFS_TRENDING_GIFS;
object.url = GIFS_TRENDING_GIFS;
const object2 = {};
object2.media_format = GIFPickerViewStore.getSelectedFormat();
object2.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object2.locale = LocaleStore.locale;
object2.limit = a0;
object.query = object2;
object.oldFormErrors = true;
object.rejectWithError = true;
Reflect.apply(get, HTTP, [object]).then(_fun76870, _fun76871);
function _fun76870({body}) { // fn#76870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3884, offset: 0x01de837b, size: 105 bytes, params: 2, frame: 17 function _fun76870({body}) { // fn#76870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:3884, offset: 0x01de837b, size: 105 bytes, params: 2, frame: 17
let value = environment.__proto__; let value = environment.__proto__;
const trackSearchResultViewed_76853Binding = trackSearchResultViewed_76853; const trackSearchResultViewed_76853Binding = trackSearchResultViewed_76853;
@@ -350,9 +324,17 @@ function _fun76870({body}) { // fn#76870, source: /ci/build/discord/discord/disc
function _fun76871() { // fn#76871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4025, offset: 0x01de83e4, size: 49 bytes, params: 1, frame: 13 function _fun76871() { // fn#76871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4025, offset: 0x01de83e4, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GIF_PICKER_QUERY_FAILURE'}); (Dispatcher).dispatch({type: 'GIF_PICKER_QUERY_FAILURE'});
} }
}
function addFavoriteGIF(a0) { // fn#76872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4125, offset: 0x01de8415, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const FrecencyUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).FrecencyUserSettingsActionCreators;
const updateAsync = FrecencyUserSettingsActionCreators.updateAsync;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, FrecencyUserSettingsActionCreators, ['favoriteGifs', _fun76873, INFREQUENT_USER_ACTION]);
function _fun76873(a0) { // fn#76873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4224, offset: 0x01de8461, size: 908 bytes, params: 2, frame: 25 function _fun76873(a0) { // fn#76873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:4224, offset: 0x01de8461, size: 908 bytes, params: 2, frame: 25
var r15; var r15;
var r6; var r6;
@@ -364,9 +346,9 @@ function _fun76873(a0) { // fn#76873, source: /ci/build/discord/discord/discord_
var value10; var value10;
var defaultImport5; var defaultImport5;
var show; var show;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
const defaultImport = importDefault(22) /* metro dependency 22 */; const defaultImport = Module00022;
const max = defaultImport.max; const max = defaultImport.max;
const Object = global.Object; const Object = global.Object;
const values = Object.values; const values = Object.values;
@@ -423,20 +405,20 @@ function _fun76873(a0) { // fn#76873, source: /ci/build/discord/discord/discord_
const gifUrlKeyBinding = gifUrlKey; const gifUrlKeyBinding = gifUrlKey;
binding = env0_0; binding = env0_0;
const value13 = gifUrlKeyBinding(binding.url); const value13 = gifUrlKeyBinding(binding.url);
let object2 = {}; let object = {};
copyDataProperties(object2, binding, r15); copyDataProperties(object, binding, r15);
object2['src'] = r5; object['src'] = r5;
object2['format'] = r9; object['format'] = r9;
object2['order'] = r8 + 1; object['order'] = r8 + 1;
gifs[value13] = object2; gifs[value13] = object;
const FavoriteGIFs = (require(1349) /* metro dependency 1349: frecency_user_settings */).FavoriteGIFs; const FavoriteGIFs = (require(1349) /* metro dependency 1349: frecency_user_settings */).FavoriteGIFs;
if (FavoriteGIFs.toBinary(a0).length > MAX_FAVORITE_GIFS_SIZE) { if (FavoriteGIFs.toBinary(a0).length > MAX_FAVORITE_GIFS_SIZE) {
defaultImport5 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */; defaultImport5 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport5.show; show = defaultImport5.show;
object2 = {}; object = {};
object2.title = intl.string(t['+XYXtZ']); object.title = intl.string(t['+XYXtZ']);
object2.body = intl.string(t.YSDH9n); object.body = intl.string(t.YSDH9n);
Reflect.apply(show, defaultImport5, [object2]); Reflect.apply(show, defaultImport5, [object]);
return false; return false;
} }
const defaultImport3 = defaultImport; const defaultImport3 = defaultImport;
@@ -444,12 +426,20 @@ function _fun76873(a0) { // fn#76873, source: /ci/build/discord/discord/discord_
if (value14 > 2) { if (value14 > 2) {
a0.hideTooltip = true; a0.hideTooltip = true;
} }
const defaultImport4 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport4 = AnalyticsUtils;
const track = defaultImport4.track; const track = defaultImport4.track;
const GIF_FAVORITED = AnalyticEvents.GIF_FAVORITED; const GIF_FAVORITED = AnalyticEvents.GIF_FAVORITED;
Reflect.apply(track, defaultImport4, [GIF_FAVORITED, {total_num_favorited: value14}]); Reflect.apply(track, defaultImport4, [GIF_FAVORITED, {total_num_favorited: value14}]);
} }
}
function removeFavoriteGIF(a0) { // fn#76875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5341, offset: 0x01de87f8, size: 76 bytes, params: 2, frame: 16
const env0_0 = a0;
const FrecencyUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).FrecencyUserSettingsActionCreators;
const updateAsync = FrecencyUserSettingsActionCreators.updateAsync;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
Reflect.apply(updateAsync, FrecencyUserSettingsActionCreators, ['favoriteGifs', _fun76876, INFREQUENT_USER_ACTION]);
function _fun76876(a0) { // fn#76876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5443, offset: 0x01de8844, size: 144 bytes, params: 2, frame: 18 function _fun76876(a0) { // fn#76876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5443, offset: 0x01de8844, size: 144 bytes, params: 2, frame: 18
var value3; var value3;
const binding = env0_0; const binding = env0_0;
@@ -463,16 +453,39 @@ function _fun76876(a0) { // fn#76876, source: /ci/build/discord/discord/discord_
delete gifs[gifUrlKey(env0_0)]; delete gifs[gifUrlKey(env0_0)];
} }
let value = environment.__proto__; let value = environment.__proto__;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const GIF_UNFAVORITED = AnalyticEvents.GIF_UNFAVORITED; const GIF_UNFAVORITED = AnalyticEvents.GIF_UNFAVORITED;
value = importDefault(22) /* metro dependency 22 */; value = importDefault(22) /* metro dependency 22 */;
Reflect.apply(track, defaultImport, [GIF_UNFAVORITED, {total_num_favorited: value.size(a0.gifs)}]); Reflect.apply(track, defaultImport, [GIF_UNFAVORITED, {total_num_favorited: value.size(a0.gifs)}]);
} }
}
function fetchTrendingSearchTerms() { // fn#76877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5637, offset: 0x01de88d4, size: 141 bytes, params: 1, frame: 17
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const object = {};
const GIFS_TRENDING_SEARCH = Endpoints.GIFS_TRENDING_SEARCH;
object.url = GIFS_TRENDING_SEARCH;
const object2 = {};
object2.provider = (require(9816) /* metro dependency 9816: GifProviderConfig */).getProviderForAPIRequest();
object2.limit = 5;
object2.locale = LocaleStore.locale;
object.query = object2;
object.oldFormErrors = true;
object.rejectWithError = true;
Reflect.apply(get, HTTP, [object]).then(_fun76878);
function _fun76878({body}) { // fn#76878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5838, offset: 0x01de8961, size: 62 bytes, params: 2, frame: 14 function _fun76878({body}) { // fn#76878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10000:5838, offset: 0x01de8961, size: 62 bytes, params: 2, frame: 14
let value = environment.__proto__; let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'GIF_PICKER_TRENDING_SEARCH_TERMS_SUCCESS', items: body}); value.dispatch({type: 'GIF_PICKER_TRENDING_SEARCH_TERMS_SUCCESS', items: body});
} }
}
}
global.__d(_fun76851, 9814, [1949, 9815, 661, 670, 4863, 9816, 9819, 507, 694, 22, 491, 1471, 9598, 1362, 1349,
4647, 1244, 683,
2]) /* metro module 9814, dependencies: [1949, 9815, 661, 670, 4863, 9816, 9819, 507, 694, 22, 491, 1471, 9598, 1362, 1349, 4647, 1244, 683, 2] */;
+32 -32
View File
@@ -1,6 +1,12 @@
/* Metro module 10265; source: actions/GamesActionCreators.native.tsx; dependencies: [5, 661, 4237, 676, 6886, 3853, 694, 507, 8045, 8087, 8109, 2] */ /* Metro module 10265; source: actions/GamesActionCreators.native.tsx; dependencies: [5, 661, 4237, 676, 6886, 3853, 694, 507, 8045, 8087, 8109, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from '../modules/activities/Constants.tsx'; /* Metro dependency 4237 */
function _fun79675(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:6, offset: 0x01e5dd05, size: 349 bytes, params: 8, frame: 20 function _fun79675(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:6, offset: 0x01e5dd05, size: 349 bytes, params: 8, frame: 20
var object2;
const env0_0 = require; const env0_0 = require;
const closure = function(a0, a1) { const closure = function(a0, a1) {
var value = a0.replace(RegExp('\\/+$', ''), ''); var value = a0.replace(RegExp('\\/+$', ''), '');
@@ -10,14 +16,7 @@ function _fun79675(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {addGame: function() {
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.Endpoints;
const env0_5 = constantsModule.DiscordConnectDeeplinks;
const env0_6 = constantsModule.WebBrowserType;
const env0_7 = constantsModule.ActivityFlags;
const env0_8 = (require(4237) /* metro dependency 4237: Constants */).ActivityIntent;
object2 = {addGame: function() {
}, toggleOverlay: function() { }, toggleOverlay: function() {
}, editName: function() { }, editName: function() {
}, identifyGame: function() { }, identifyGame: function() {
@@ -32,40 +31,35 @@ function _fun79675(global, require, importDefault, importAll, module, exports, d
var Promise = global.Promise; var Promise = global.Promise;
return Promise.resolve(); return Promise.resolve();
}, join: join_79689, joinWithSecret: closure}; }, join: join_79689, joinWithSecret: closure};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GamesActionCreators.native.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/GamesActionCreators.native.tsx');
exports.default = object2; exports.default = object;
}
function fetchJoinSecret({userId, sessionId, application, channelId, messageId, remotePartyId}, a1) { // fn#79676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:220, offset: 0x01e5de62, size: 249 bytes, params: 3, frame: 23 function fetchJoinSecret({userId, sessionId, application, channelId, messageId, remotePartyId}, a1) { // fn#79676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:220, offset: 0x01e5de62, size: 249 bytes, params: 3, frame: 23
var object2;
const env0_0 = a1; const env0_0 = a1;
const id = application.id; const id = application.id;
const r4 = channelId != null && messageId != null ? {channel_id: channelId, message_id: messageId, const r4 = channelId != null && messageId != null ? {channel_id: channelId, message_id: messageId,
headless: true} : undefined; headless: true} : undefined;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_JOIN_LOADING', (Dispatcher).dispatch({type: 'ACTIVITY_JOIN_LOADING',
applicationId: id, remotePartyId: remotePartyId}); applicationId: id, remotePartyId: remotePartyId});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
object2 = {'url': null, 'retries': 3, 'query': null, 'oldFormErrors': true, 'rejectWithError': true}; object = {'url': null, 'retries': 3, 'query': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.USER_ACTIVITY_JOIN(userId, sessionId, id); object.url = Endpoints.USER_ACTIVITY_JOIN(userId, sessionId, id);
object2.query = r4; object.query = r4;
return Reflect.apply(get, HTTP, [object2]).then(function(a0) { return Reflect.apply(get, HTTP, [object]).then(function(a0) {
return require(a0); return require(a0);
}, _fun79678); }, _fun79678);
}
function join_79689(a0) { // fn#79689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1038, offset: 0x01e5e00b, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_3(_fun79691)();
}
function _fun79678() { // fn#79678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:622, offset: 0x01e5df5b, size: 62 bytes, params: 1, frame: 12 function _fun79678() { // fn#79678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:622, offset: 0x01e5df5b, size: 62 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_JOIN_FAILED', (Dispatcher).dispatch({type: 'ACTIVITY_JOIN_FAILED',
applicationId: id}); applicationId: id});
return false; return false;
} }
}
function join_79689(a0) { // fn#79689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1038, offset: 0x01e5e00b, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun79691)();
function* _fun79691() { // fn#79691, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1044, offset: 0x01e5e03a, size: 323 bytes, params: 1, frame: 23 function* _fun79691() { // fn#79691, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1044, offset: 0x01e5e03a, size: 323 bytes, params: 1, frame: 23
var environment; var environment;
var binding; var binding;
@@ -112,8 +106,6 @@ function* _fun79691() { // fn#79691, original name: ?anon_0_, source: /ci/build/
return remotePartyId != null ? env2_9(require, function() { return remotePartyId != null ? env2_9(require, function() {
return true; return true;
}) : joinViaDeeplink(require); }) : joinViaDeeplink(require);
}
function joinViaDeeplink(a0) { // fn#79693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1489, offset: 0x01e5e17d, size: 185 bytes, params: 2, frame: 18 function joinViaDeeplink(a0) { // fn#79693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1489, offset: 0x01e5e17d, size: 185 bytes, params: 2, frame: 18
var environment; var environment;
const env0_0 = a0; const env0_0 = a0;
@@ -123,8 +115,6 @@ function joinViaDeeplink(a0) { // fn#79693, source: /ci/build/discord/discord/di
const DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID = env3_0(env3_2[3]).DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID; const DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID = env3_0(env3_2[3]).DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID;
return (id === DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID ? env3_0(env3_2[3]).DISCORD_CONNECT_EXAMPLE_APP_DEEPLINK_URI : application.deeplink_uri) != null || env3_1(env3_2[4])(a0.applicationActivity, return (id === DISCORD_CONNECT_EXAMPLE_APP_APPLICATION_ID ? env3_0(env3_2[3]).DISCORD_CONNECT_EXAMPLE_APP_DEEPLINK_URI : application.deeplink_uri) != null || env3_1(env3_2[4])(a0.applicationActivity,
env3_7.SUPPORTS_JOIN_URL) ? env3_9(a0, _fun79694) : global.Promise.resolve(false); env3_7.SUPPORTS_JOIN_URL) ? env3_9(a0, _fun79694) : global.Promise.resolve(false);
}
function _fun79694(a0) { // fn#79694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1749, offset: 0x01e5e236, size: 402 bytes, params: 2, frame: 20 function _fun79694(a0) { // fn#79694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10451:1749, offset: 0x01e5e236, size: 402 bytes, params: 2, frame: 20
var r0; var r0;
var value; var value;
@@ -179,3 +169,13 @@ function _fun79694(a0) { // fn#79694, source: /ci/build/discord/discord/discord_
return r0; return r0;
} }
}
}
}
}
global.__d(_fun79675, 10265, [5, 661, 4237, 676, 6886, 3853, 694, 507, 8045, 8087, 8109,
2]) /* metro module 10265, dependencies: [5, 661, 4237, 676, 6886, 3853, 694, 507, 8045, 8087, 8109, 2] */;
+89 -89
View File
@@ -1,56 +1,30 @@
/* Metro module 8451; source: actions/GiftCodeActionCreators.tsx; dependencies: [5, 4234, 5121, 5130, 661, 1880, 694, 4129, 6772, 5120, 4131, 507, 8452, 8453, 2] */ /* Metro module 8451; source: actions/GiftCodeActionCreators.tsx; dependencies: [5, 4234, 5121, 5130, 661, 1880, 694, 4129, 6772, 5120, 4131, 507, 8452, 8453, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import ApplicationStore from '../modules/applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import CollectiblesCategoryStore from '../modules/collectibles/CollectiblesCategoryStore.tsx'; /* Metro dependency 5121 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../modules/premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as UnknownCollectiblesItemRecordModule from '../modules/collectibles/records/UnknownCollectiblesItemRecord.tsx'; /* Metro dependency 5130 */
import * as GiftCodeActionCreatorsModule from './native/GiftCodeActionCreators.tsx'; /* Metro dependency 8453 */
function _fun67094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:6, offset: 0x01c1558d, size: 334 bytes, params: 8, frame: 20 function _fun67094(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:6, offset: 0x01c1558d, size: 334 bytes, params: 8, frame: 20
var object2;
const env0_0 = require; const env0_0 = require;
const closure = function() { const closure = function() {
return _resolveGiftCode_67096.apply(this, arguments); return _resolveGiftCode_67096.apply(this, arguments);
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {resolveGiftCode: closure, fetchUserGiftCodesForSKU: fetchUserGiftCodesForSKU,
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
const collectiblesCategoryStore = importDefault(5121) /* metro dependency 5121: CollectiblesCategoryStore */;
const env0_6 = (require(5130) /* metro dependency 5130: UnknownCollectiblesItemRecord */).isUnknownCollectiblesItemRecord;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_7 = constantsModule.COLLECTIBLES_APPLICATION_ID;
const env0_8 = constantsModule.Endpoints;
const env0_9 = constantsModule.RPCCommands;
const env0_10 = (require(1880) /* metro dependency 1880: PremiumConstants */).PREMIUM_SUBSCRIPTION_APPLICATION;
object2 = {resolveGiftCode: closure, fetchUserGiftCodesForSKU: fetchUserGiftCodesForSKU,
createGiftCode: createGiftCode, revokeGiftCode: revokeGiftCode, openNativeGiftCodeModal: function(a0) { createGiftCode: createGiftCode, revokeGiftCode: revokeGiftCode, openNativeGiftCodeModal: function(a0) {
importDefault(dependencyMap[12]).openNativeAppModal(a0, RPCCommands.GIFT_CODE_BROWSER); importDefault(dependencyMap[12]).openNativeAppModal(a0, RPCCommands.GIFT_CODE_BROWSER);
}}; }};
copyDataProperties(object2, (require(8453) /* metro dependency 8453: GiftCodeActionCreators */).default, undefined); copyDataProperties(object, (GiftCodeActionCreatorsModule).default, undefined);
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GiftCodeActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/GiftCodeActionCreators.tsx');
exports.default = object2; exports.default = object;
exports.resolveGiftCode = closure; exports.resolveGiftCode = closure;
}
function _resolveGiftCode_67096() { // fn#67096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:358, offset: 0x01c156db, size: 50 bytes, params: 1, frame: 14 function _resolveGiftCode_67096() { // fn#67096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:358, offset: 0x01c156db, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun67098).apply(this, arguments); return Module00005(_fun67098).apply(this, arguments);
}
function fetchUserGiftCodesForSKU(a0) { // fn#67099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1190, offset: 0x01c1595f, size: 49 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : null;
return env0_3(_fun67101)();
}
function createGiftCode(a0) { // fn#67102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1634, offset: 0x01c15ad0, size: 62 bytes, params: 2, frame: 13
const value = a1;
const value2 = a2;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : null;
const env0_2 = value2 !== undefined ? value2 : null;
return env0_3(_fun67104)();
}
function revokeGiftCode(a0) { // fn#67105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2094, offset: 0x01c15c4c, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_3(_fun67107)();
}
async function _fun67098(a0) { // fn#67098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:413, offset: 0x01c15721, size: 574 bytes, params: 2, frame: 24 async function _fun67098(a0) { // fn#67098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:413, offset: 0x01c15721, size: 574 bytes, params: 2, frame: 24
var r7; var r7;
var r1; var r1;
@@ -64,7 +38,7 @@ async function _fun67098(a0) { // fn#67098, source: /ci/build/discord/discord/di
var binding; var binding;
var value7; var value7;
var dispatch; var dispatch;
var object2; var object;
var binding2; var binding2;
var property; var property;
var value8; var value8;
@@ -531,51 +505,58 @@ async function _fun67098(a0) { // fn#67098, source: /ci/build/discord/discord/di
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
object2.type = 'GIFT_CODE_RESOLVE_SUCCESS'; object.type = 'GIFT_CODE_RESOLVE_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
object2.giftCode = value9; object.giftCode = value9;
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
Reflect.apply(dispatch, value26, [object2]); Reflect.apply(dispatch, value26, [object]);
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
try { try {
object2.giftCode = value9; object.giftCode = value9;
} catch (error) { } catch (error) {
break exceptionLanding105; break exceptionLanding105;
} }
return object2; return object;
} }
value = env2_1(env2_2[6]); value = env2_1(env2_2[6]);
value.dispatch({type: 'GIFT_CODE_RESOLVE_FAILURE', code: a0, error: error}); value.dispatch({type: 'GIFT_CODE_RESOLVE_FAILURE', code: a0, error: error});
throw error; throw error;
} }
}
function fetchUserGiftCodesForSKU(a0) { // fn#67099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1190, offset: 0x01c1595f, size: 49 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : null;
return Module00005(_fun67101)();
function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1205, offset: 0x01c1599b, size: 309 bytes, params: 1, frame: 18 function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1205, offset: 0x01c1599b, size: 309 bytes, params: 1, frame: 18
var object4; var object2;
var binding2; var binding2;
var property; var property;
var value5; var value5;
var HTTP; var HTTP;
var get; var get;
var USER_GIFT_CODES; var USER_GIFT_CODES;
var object3; var object;
var value6; var value6;
var value7; var value7;
var value8; var value8;
@@ -635,7 +616,7 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -650,12 +631,12 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.url = USER_GIFT_CODES; object2.url = USER_GIFT_CODES;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -664,7 +645,7 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object3.sku_id = require; object.sku_id = require;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -673,27 +654,27 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object3.subscription_plan_id = importDefault; object.subscription_plan_id = importDefault;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.query = object3; object2.query = object;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.oldFormErrors = true; object2.oldFormErrors = true;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.rejectWithError = true; object2.rejectWithError = true;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
value6 = Reflect.apply(get, HTTP, [object4]); value6 = Reflect.apply(get, HTTP, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -733,12 +714,12 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.type = 'GIFT_CODES_FETCH_SUCCESS'; object2.type = 'GIFT_CODES_FETCH_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -748,7 +729,7 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.giftCodes = body; object2.giftCodes = body;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -757,7 +738,7 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.skuId = require; object2.skuId = require;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
@@ -766,27 +747,36 @@ function* _fun67101() { // fn#67101, original name: ?anon_0_, source: /ci/build/
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
object4.subscriptionPlanId = importDefault; object2.subscriptionPlanId = importDefault;
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
try { try {
Reflect.apply(dispatch, value9, [object4]); Reflect.apply(dispatch, value9, [object2]);
} catch (error) { } catch (error) {
break exceptionLanding42; break exceptionLanding42;
} }
} }
} }
}
function createGiftCode(a0) { // fn#67102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1634, offset: 0x01c15ad0, size: 62 bytes, params: 2, frame: 13
const value = a1;
const value2 = a2;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : null;
const env0_2 = value2 !== undefined ? value2 : null;
return Module00005(_fun67104)();
function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1656, offset: 0x01c15b19, size: 307 bytes, params: 1, frame: 18 function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:1656, offset: 0x01c15b19, size: 307 bytes, params: 1, frame: 18
var object4; var object2;
var binding2; var binding2;
var property; var property;
var value5; var value5;
var HTTP; var HTTP;
var post; var post;
var USER_GIFT_CODE_CREATE; var USER_GIFT_CODE_CREATE;
var object3; var object;
var value6; var value6;
var value7; var value7;
var value8; var value8;
@@ -852,7 +842,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -876,7 +866,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.url = USER_GIFT_CODE_CREATE; object2.url = USER_GIFT_CODE_CREATE;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -884,7 +874,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -899,7 +889,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object3.sku_id = require; object.sku_id = require;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -914,7 +904,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object3.subscription_plan_id = importDefault; object.subscription_plan_id = importDefault;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -929,7 +919,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object3.gift_style = dependencyMap; object.gift_style = dependencyMap;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -937,7 +927,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.body = object3; object2.body = object;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -945,7 +935,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.oldFormErrors = true; object2.oldFormErrors = true;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -953,7 +943,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.rejectWithError = true; object2.rejectWithError = true;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -961,7 +951,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
value6 = Reflect.apply(post, HTTP, [object4]); value6 = Reflect.apply(post, HTTP, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -1022,7 +1012,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -1030,7 +1020,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.type = 'GIFT_CODE_CREATE_SUCCESS'; object2.type = 'GIFT_CODE_CREATE_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -1046,7 +1036,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
object4.giftCode = body; object2.giftCode = body;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -1054,7 +1044,7 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return undefined; return undefined;
} }
try { try {
Reflect.apply(dispatch, value9, [object4]); Reflect.apply(dispatch, value9, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[6]); value = binding(env2_2[6]);
@@ -1072,8 +1062,12 @@ function* _fun67104() { // fn#67104, original name: ?anon_0_, source: /ci/build/
return body; return body;
} }
}
function revokeGiftCode(a0) { // fn#67105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2094, offset: 0x01c15c4c, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun67107)();
function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2100, offset: 0x01c15c7b, size: 256 bytes, params: 1, frame: 19 function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8636:2100, offset: 0x01c15c7b, size: 256 bytes, params: 1, frame: 19
var object2;
var binding2; var binding2;
var property; var property;
var value5; var value5;
@@ -1137,7 +1131,7 @@ function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
@@ -1161,12 +1155,12 @@ function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
object2.url = value6; object.url = value6;
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
value7 = Reflect.apply(del, HTTP, [object2]); value7 = Reflect.apply(del, HTTP, [object]);
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
@@ -1206,12 +1200,12 @@ function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
object2.type = 'GIFT_CODE_REVOKE_SUCCESS'; object.type = 'GIFT_CODE_REVOKE_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
@@ -1220,15 +1214,21 @@ function* _fun67107() { // fn#67107, original name: ?anon_0_, source: /ci/build/
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
object2.code = require; object.code = require;
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
try { try {
Reflect.apply(dispatch, value10, [object2]); Reflect.apply(dispatch, value10, [object]);
} catch (error) { } catch (error) {
break exceptionLanding31; break exceptionLanding31;
} }
} }
} }
}
}
global.__d(_fun67094, 8451, [5, 4234, 5121, 5130, 661, 1880, 694, 4129, 6772, 5120, 4131, 507, 8452, 8453,
2]) /* metro module 8451, dependencies: [5, 4234, 5121, 5130, 661, 1880, 694, 4129, 6772, 5120, 4131, 507, 8452, 8453, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,21 +1,21 @@
/* Metro module 9576; source: actions/GuildAffinitiesActionCreators.tsx; dependencies: [661, 507, 694, 2] */ /* Metro module 9576; source: actions/GuildAffinitiesActionCreators.tsx; dependencies: [661, 507, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun74931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:6, offset: 0x01d9dfd0, size: 124 bytes, params: 8, frame: 18 function _fun74931(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:6, offset: 0x01d9dfd0, size: 124 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; (FileImportTrackerModule).fileFinishedImporting('actions/GuildAffinitiesActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GuildAffinitiesActionCreators.tsx');
exports.fetchGuildAffinities = fetchGuildAffinities; exports.fetchGuildAffinities = fetchGuildAffinities;
}
function fetchGuildAffinities() { // fn#74932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:214, offset: 0x01d9e04c, size: 95 bytes, params: 1, frame: 14 function fetchGuildAffinities() { // fn#74932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:214, offset: 0x01d9e04c, size: 95 bytes, params: 1, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const GUILD_AFFINITIES = Endpoints.GUILD_AFFINITIES; const GUILD_AFFINITIES = Endpoints.GUILD_AFFINITIES;
return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false, return Reflect.apply(get, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: GUILD_AFFINITIES}]).then(_fun74933, _fun74934); url: GUILD_AFFINITIES}]).then(_fun74933, _fun74934);
}
function _fun74933({body}) { // fn#74933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:338, offset: 0x01d9e0ab, size: 70 bytes, params: 2, frame: 14 function _fun74933({body}) { // fn#74933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:338, offset: 0x01d9e0ab, size: 70 bytes, params: 2, frame: 14
const guild_affinities = body.guild_affinities; const guild_affinities = body.guild_affinities;
let value = environment.__proto__; let value = environment.__proto__;
@@ -25,6 +25,11 @@ function _fun74933({body}) { // fn#74933, source: /ci/build/discord/discord/disc
function _fun74934() { // fn#74934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:448, offset: 0x01d9e0f1, size: 49 bytes, params: 1, frame: 13 function _fun74934() { // fn#74934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9762:448, offset: 0x01d9e0f1, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_GUILD_AFFINITIES_FAILURE'}); (Dispatcher).dispatch({type: 'LOAD_GUILD_AFFINITIES_FAILURE'});
} }
}
}
global.__d(_fun74931, 9576, [661, 507, 694, 2]) /* metro module 9576, dependencies: [661, 507, 694, 2] */;
@@ -1,46 +1,48 @@
/* Metro module 6903; source: actions/GuildSubscriptionsActionCreators.tsx; dependencies: [694, 6890, 2] */ /* Metro module 6903; source: actions/GuildSubscriptionsActionCreators.tsx; dependencies: [694, 6890, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as GuildChannelSubscriptionsModule from '../lib/guild/GuildChannelSubscriptions.tsx'; /* Metro dependency 6890 */
function _fun54925(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:6, offset: 0x0137113b, size: 171 bytes, params: 8, frame: 19 function _fun54925(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:6, offset: 0x0137113b, size: 171 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const closure = subscribeChannel; const subscribeChannel2 = subscribeChannel;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/GuildSubscriptionsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/GuildSubscriptionsActionCreators.tsx');
exports.subscribeMembers = subscribeMembers; exports.subscribeMembers = subscribeMembers;
exports.unsubscribeMembers = unsubscribeMembers; exports.unsubscribeMembers = unsubscribeMembers;
exports.subscribeToMemberUpdates = subscribeToMemberUpdates; exports.subscribeToMemberUpdates = subscribeToMemberUpdates;
exports.unsubscribeFromMemberUpdates = unsubscribeFromMemberUpdates; exports.unsubscribeFromMemberUpdates = unsubscribeFromMemberUpdates;
exports.subscribeGuild = subscribeGuild; exports.subscribeGuild = subscribeGuild;
exports.subscribeChannel = closure; exports.subscribeChannel = subscribeChannel2;
exports.subscribeChannelDimensions = subscribeChannelDimensions; exports.subscribeChannelDimensions = subscribeChannelDimensions;
}
function subscribeChannel(a0, a1, a2) { // fn#54926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:43, offset: 0x013711e6, size: 70 bytes, params: 4, frame: 13 function subscribeChannel(a0, a1, a2) { // fn#54926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:43, offset: 0x013711e6, size: 70 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS_CHANNEL', (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS_CHANNEL',
guildId: a0, channelId: a1, ranges: a2}); guildId: a0, channelId: a1, ranges: a2});
} }
function subscribeMembers(a0, a1) { // fn#54927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:308, offset: 0x0137122c, size: 63 bytes, params: 3, frame: 13 function subscribeMembers(a0, a1) { // fn#54927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:308, offset: 0x0137122c, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS_MEMBERS_ADD', (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS_MEMBERS_ADD',
guildId: a0, userIds: a1}); guildId: a0, userIds: a1});
} }
function unsubscribeMembers(a0, a1) { // fn#54928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:440, offset: 0x0137126b, size: 63 bytes, params: 3, frame: 13 function unsubscribeMembers(a0, a1) { // fn#54928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:440, offset: 0x0137126b, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS_MEMBERS_REMOVE', (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS_MEMBERS_REMOVE',
guildId: a0, userIds: a1}); guildId: a0, userIds: a1});
} }
function subscribeToMemberUpdates(a0) { // fn#54929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:583, offset: 0x013712aa, size: 55 bytes, params: 2, frame: 13 function subscribeToMemberUpdates(a0) { // fn#54929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:583, offset: 0x013712aa, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS_ADD_MEMBER_UPDATES', (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS_ADD_MEMBER_UPDATES',
guildId: a0}); guildId: a0});
} }
function unsubscribeFromMemberUpdates(a0) { // fn#54930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:728, offset: 0x013712e1, size: 55 bytes, params: 2, frame: 13 function unsubscribeFromMemberUpdates(a0) { // fn#54930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:728, offset: 0x013712e1, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS_REMOVE_MEMBER_UPDATES', (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS_REMOVE_MEMBER_UPDATES',
guildId: a0}); guildId: a0});
} }
function subscribeGuild(a0) { // fn#54931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:866, offset: 0x01371318, size: 53 bytes, params: 2, frame: 13 function subscribeGuild(a0) { // fn#54931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:866, offset: 0x01371318, size: 53 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SUBSCRIPTIONS', guildId: a0}); (Dispatcher).dispatch({type: 'GUILD_SUBSCRIPTIONS', guildId: a0});
} }
function subscribeChannelDimensions({guildId, channelId, y, height, rowHeight}) { // fn#54932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1016, offset: 0x0137134d, size: 223 bytes, params: 2, frame: 24 function subscribeChannelDimensions({guildId, channelId, y, height, rowHeight}) { // fn#54932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1016, offset: 0x0137134d, size: 223 bytes, params: 2, frame: 24
@@ -50,16 +52,16 @@ function subscribeChannelDimensions({guildId, channelId, y, height, rowHeight})
var max; var max;
var value3; var value3;
var value7; var value7;
const closure = toIndex; const toIndex2 = toIndex;
const closure2 = pushRange; const pushRange2 = pushRange;
let value = closure(0.5 * height); let value = toIndex2(0.5 * height);
const value2 = closure(y, -value); const value2 = toIndex2(y, -value);
value = closure(y + height, value); value = toIndex2(y + height, value);
reducibleJoin2: while (true) { reducibleJoin2: while (true) {
if (value2 > 0) { if (value2 > 0) {
Math = global.Math; Math = global.Math;
max = Math.max; max = Math.max;
value3 = Reflect.apply(max, Math, [closure2(0), value2]); value3 = Reflect.apply(max, Math, [pushRange2(0), value2]);
r13 = value3; r13 = value3;
break reducibleJoin2; break reducibleJoin2;
} }
@@ -68,12 +70,12 @@ function subscribeChannelDimensions({guildId, channelId, y, height, rowHeight})
} }
Math = global.Math; Math = global.Math;
const floor = Math.floor; const floor = Math.floor;
const MINIMUM_RANGE = (require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).MINIMUM_RANGE; const MINIMUM_RANGE = (GuildChannelSubscriptionsModule).MINIMUM_RANGE;
const value6 = Reflect.apply(floor, Math, [r13 / MINIMUM_RANGE]) * MINIMUM_RANGE; const value6 = Reflect.apply(floor, Math, [r13 / MINIMUM_RANGE]) * MINIMUM_RANGE;
if (value6 <= value) { if (value6 <= value) {
r5 = value6; r5 = value6;
reducibleLoop3: while (true) { reducibleLoop3: while (true) {
value7 = closure2(r5); value7 = pushRange2(r5);
if (value7 <= value) { if (value7 <= value) {
r5 = value7; r5 = value7;
continue reducibleLoop3; continue reducibleLoop3;
@@ -82,8 +84,6 @@ function subscribeChannelDimensions({guildId, channelId, y, height, rowHeight})
} }
} }
subscribeChannel(guildId, channelId, []); subscribeChannel(guildId, channelId, []);
}
function toIndex(a0) { // fn#54933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1102, owner: subscribeChannelDimensions.toIndex, offset: 0x0137142c, size: 86 bytes, params: 2, frame: 18 function toIndex(a0) { // fn#54933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1102, owner: subscribeChannelDimensions.toIndex, offset: 0x0137142c, size: 86 bytes, params: 2, frame: 18
const value = a1; const value = a1;
const r1 = value !== undefined ? value : 0; const r1 = value !== undefined ? value : 0;
@@ -97,10 +97,15 @@ function toIndex(a0) { // fn#54933, source: /ci/build/discord/discord/discord_an
function pushRange(a0) { // fn#54934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1182, owner: subscribeChannelDimensions.pushRange, offset: 0x01371482, size: 77 bytes, params: 2, frame: 14 function pushRange(a0) { // fn#54934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7081:1182, owner: subscribeChannelDimensions.pushRange, offset: 0x01371482, size: 77 bytes, params: 2, frame: 14
let value = environment.__proto__; let value = environment.__proto__;
const MINIMUM_RANGE = (require(6890) /* metro dependency 6890: GuildChannelSubscriptions */).MINIMUM_RANGE; const MINIMUM_RANGE = (GuildChannelSubscriptionsModule).MINIMUM_RANGE;
value = a0 + (MINIMUM_RANGE - 1); value = a0 + (MINIMUM_RANGE - 1);
const binding = env0_1; const binding = env0_1;
binding.push([a0, value]); binding.push([a0, value]);
return value + 1; return value + 1;
} }
}
}
global.__d(_fun54925, 6903, [694, 6890, 2]) /* metro module 6903, dependencies: [694, 6890, 2] */;
+96 -91
View File
@@ -1,50 +1,30 @@
/* Metro module 9450; source: actions/HubActionCreators.tsx; dependencies: [5, 661, 5046, 480, 1392, 694, 2] */ /* Metro module 9450; source: actions/HubActionCreators.tsx; dependencies: [5, 661, 5046, 480, 1392, 694, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun73502(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:6, offset: 0x01d6f25d, size: 183 bytes, params: 8, frame: 19 function _fun73502(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:6, offset: 0x01d6f25d, size: 183 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {signup: signup, sendVerificationEmail: sendVerificationEmail, verify: verify_73509,
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {signup: signup, sendVerificationEmail: sendVerificationEmail, verify: verify_73509,
verifyCode: verifyCode}; verifyCode: verifyCode};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/HubActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/HubActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function signup(a0, a1) { // fn#73503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:136, offset: 0x01d6f314, size: 136 bytes, params: 3, frame: 16 function signup(a0, a1) { // fn#73503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:136, offset: 0x01d6f314, size: 136 bytes, params: 3, frame: 16
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */; const defaultImport = TrackedHTTPUtils;
const post = defaultImport.post; const post = defaultImport.post;
const object2 = {}; const object = {};
let HUB_WAITLIST_SIGNUP = Endpoints.HUB_WAITLIST_SIGNUP; let HUB_WAITLIST_SIGNUP = Endpoints.HUB_WAITLIST_SIGNUP;
object2.url = HUB_WAITLIST_SIGNUP; object.url = HUB_WAITLIST_SIGNUP;
object2.body = {email: a0, school: a1}; object.body = {email: a0, school: a1};
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames; const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
HUB_WAITLIST_SIGNUP = NetworkActionNames.HUB_WAITLIST_SIGNUP; HUB_WAITLIST_SIGNUP = NetworkActionNames.HUB_WAITLIST_SIGNUP;
object2.trackedActionData = {event: HUB_WAITLIST_SIGNUP, properties: properties}; object.trackedActionData = {event: HUB_WAITLIST_SIGNUP, properties: properties_73504};
object2.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(post, defaultImport, [object2]); return Reflect.apply(post, defaultImport, [object]);
}
function sendVerificationEmail(a0, a1, a2) { // fn#73505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:485, offset: 0x01d6f421, size: 50 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return env0_3(_fun73507)();
}
function verify_73509(a0) { // fn#73509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:876, offset: 0x01d6f56d, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return env0_3(_fun73511)();
}
function verifyCode(a0, a1, a2) { // fn#73512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:1255, offset: 0x01d6f6c0, size: 50 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return env0_3(_fun73514)();
}
function signupProperties(a0) { // fn#73504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:290, owner: signup.properties, offset: 0x01d6f39c, size: 133 bytes, params: 2, frame: 13 function signupProperties(a0) { // fn#73504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:290, owner: signup.properties, offset: 0x01d6f39c, size: 133 bytes, params: 2, frame: 13
const email_domain = a0 == null || a0.body == null ? undefined : a0.body.email_domain; const email_domain = a0 == null || a0.body == null ? undefined : a0.body.email_domain;
const r3 = email_domain != null && email_domain.split('.').indexOf('edu') !== -1; const r3 = email_domain != null && email_domain.split('.').indexOf('edu') !== -1;
@@ -52,6 +32,13 @@ function signupProperties(a0) { // fn#73504, source: /ci/build/discord/discord/d
return value.exact({is_edu_email: r3}); return value.exact({is_edu_email: r3});
} }
}
function sendVerificationEmail(a0, a1, a2) { // fn#73505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:485, offset: 0x01d6f421, size: 50 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return Module00005(_fun73507)();
function* _fun73507() { // fn#73507, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:497, offset: 0x01d6f45e, size: 192 bytes, params: 1, frame: 18 function* _fun73507() { // fn#73507, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:497, offset: 0x01d6f45e, size: 192 bytes, params: 1, frame: 18
var environment; var environment;
if (false) { if (false) {
@@ -62,23 +49,34 @@ function* _fun73507() { // fn#73507, original name: ?anon_0_, source: /ci/build/
const binding2 = env2_2; const binding2 = env2_2;
const value3 = binding(binding2[2]); const value3 = binding(binding2[2]);
const post = value3.post; const post = value3.post;
const object2 = {}; const object = {};
let HUB_EMAIL_VERIFY_SEND = env2_4.HUB_EMAIL_VERIFY_SEND; let HUB_EMAIL_VERIFY_SEND = env2_4.HUB_EMAIL_VERIFY_SEND;
object2.url = HUB_EMAIL_VERIFY_SEND; object.url = HUB_EMAIL_VERIFY_SEND;
object2.body = {email: require, guild_id: dependencyMap, allow_multiple_guilds: importDefault, object.body = {email: require, guild_id: dependencyMap, allow_multiple_guilds: importDefault,
use_verification_code: true}; use_verification_code: true};
const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames; const NetworkActionNames = env2_0(binding2[3]).NetworkActionNames;
HUB_EMAIL_VERIFY_SEND = NetworkActionNames.HUB_EMAIL_VERIFY_SEND; HUB_EMAIL_VERIFY_SEND = NetworkActionNames.HUB_EMAIL_VERIFY_SEND;
object2.trackedActionData = {event: HUB_EMAIL_VERIFY_SEND, properties: properties_73508}; object.trackedActionData = {event: HUB_EMAIL_VERIFY_SEND, properties: properties_73508};
object2.rejectWithError = false; object.rejectWithError = false;
yield Reflect.apply(post, value3, [object2]); yield Reflect.apply(post, value3, [object]);
value = undefined; value = undefined;
if (false) { if (false) {
return value; return value;
} }
return value.body; return value.body;
function properties_73508(a0) { // fn#73508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:724, offset: 0x01d6f51e, size: 79 bytes, params: 2, frame: 13
const has_matching_guild = a0 == null || a0.body == null ? undefined : a0.body.has_matching_guild;
value = env3_0(env3_2[4]);
return value.exact({has_matching_guild: has_matching_guild});
} }
}
}
function verify_73509(a0) { // fn#73509, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:876, offset: 0x01d6f56d, size: 36 bytes, params: 2, frame: 11
const env0_0 = a0;
return Module00005(_fun73511)();
function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:882, offset: 0x01d6f59c, size: 292 bytes, params: 1, frame: 20 function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:882, offset: 0x01d6f59c, size: 292 bytes, params: 1, frame: 20
var id; var id;
var binding; var binding;
@@ -86,10 +84,10 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
var property; var property;
var value5; var value5;
var post; var post;
var object4; var object;
var HUB_EMAIL_VERIFY; var HUB_EMAIL_VERIFY;
var object5; var object2;
var object6; var object3;
var value6; var value6;
var NetworkActionNames; var NetworkActionNames;
var value7; var value7;
@@ -159,7 +157,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -189,7 +187,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.url = HUB_EMAIL_VERIFY; object.url = HUB_EMAIL_VERIFY;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -199,7 +197,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object5 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -218,7 +216,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object5.token = require; object2.token = require;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -228,7 +226,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.body = object5; object.body = object2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -238,7 +236,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object6 = {}; object3 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -298,7 +296,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object6.event = HUB_EMAIL_VERIFY; object3.event = HUB_EMAIL_VERIFY;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -308,7 +306,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.trackedActionData = object6; object.trackedActionData = object3;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -318,7 +316,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.rejectWithError = false; object.rejectWithError = false;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -328,7 +326,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
value7 = Reflect.apply(post, value5, [object4]); value7 = Reflect.apply(post, value5, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -435,7 +433,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -445,7 +443,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.type = 'HUB_VERIFY_EMAIL_SUCCESS'; object.type = 'HUB_VERIFY_EMAIL_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -455,7 +453,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.guildId = id; object.guildId = id;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -465,7 +463,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
Reflect.apply(dispatch, value11, [object4]); Reflect.apply(dispatch, value11, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -535,7 +533,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -545,7 +543,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.type = 'HUB_VERIFY_EMAIL_SUCCESS'; object.type = 'HUB_VERIFY_EMAIL_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -555,7 +553,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
object4.guildId = id; object.guildId = id;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -565,7 +563,7 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
try { try {
Reflect.apply(dispatch, value11, [object4]); Reflect.apply(dispatch, value11, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value12 = binding(env2_2[5]); value12 = binding(env2_2[5]);
@@ -578,6 +576,13 @@ function* _fun73511() { // fn#73511, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
}
function verifyCode(a0, a1, a2) { // fn#73512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:1255, offset: 0x01d6f6c0, size: 50 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
return Module00005(_fun73514)();
function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:1267, offset: 0x01d6f6fd, size: 318 bytes, params: 1, frame: 21 function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:1267, offset: 0x01d6f6fd, size: 318 bytes, params: 1, frame: 21
var id; var id;
var value4; var value4;
@@ -586,10 +591,10 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
var property; var property;
var value5; var value5;
var post; var post;
var object4; var object;
var HUB_EMAIL_VERIFY_CODE; var HUB_EMAIL_VERIFY_CODE;
var object5; var object2;
var object6; var object3;
var value6; var value6;
var NetworkActionNames; var NetworkActionNames;
var HUB_EMAIL_VERIFY; var HUB_EMAIL_VERIFY;
@@ -660,7 +665,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -690,7 +695,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.url = HUB_EMAIL_VERIFY_CODE; object.url = HUB_EMAIL_VERIFY_CODE;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -700,7 +705,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object5 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -719,7 +724,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object5.code = require; object2.code = require;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -738,7 +743,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object5.guild_id = importDefault; object2.guild_id = importDefault;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -757,7 +762,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object5.email = dependencyMap; object2.email = dependencyMap;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -767,7 +772,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.body = object5; object.body = object2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -777,7 +782,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object6 = {}; object3 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -837,7 +842,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object6.event = HUB_EMAIL_VERIFY; object3.event = HUB_EMAIL_VERIFY;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -847,7 +852,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.trackedActionData = object6; object.trackedActionData = object3;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -857,7 +862,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.rejectWithError = false; object.rejectWithError = false;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -867,7 +872,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
value7 = Reflect.apply(post, value5, [object4]); value7 = Reflect.apply(post, value5, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -974,7 +979,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -984,7 +989,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.type = 'HUB_VERIFY_EMAIL_SUCCESS'; object.type = 'HUB_VERIFY_EMAIL_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -994,7 +999,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.guildId = id; object.guildId = id;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1004,7 +1009,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
Reflect.apply(dispatch, value11, [object4]); Reflect.apply(dispatch, value11, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1086,7 +1091,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1096,7 +1101,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.type = 'HUB_VERIFY_EMAIL_SUCCESS'; object.type = 'HUB_VERIFY_EMAIL_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1106,7 +1111,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
object4.guildId = id; object.guildId = id;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1116,7 +1121,7 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
throw error; throw error;
} }
try { try {
Reflect.apply(dispatch, value11, [object4]); Reflect.apply(dispatch, value11, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_2[5]); value = binding(env2_2[5]);
@@ -1140,9 +1145,9 @@ function* _fun73514() { // fn#73514, original name: ?anon_0_, source: /ci/build/
return value; return value;
} }
function properties_73508(a0) { // fn#73508, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9636:724, offset: 0x01d6f51e, size: 79 bytes, params: 2, frame: 13
const has_matching_guild = a0 == null || a0.body == null ? undefined : a0.body.has_matching_guild;
value = env3_0(env3_2[4]);
return value.exact({has_matching_guild: has_matching_guild});
} }
}
global.__d(_fun73502, 9450, [5, 661, 5046, 480, 1392, 694,
2]) /* metro module 9450, dependencies: [5, 661, 5046, 480, 1392, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,24 +1,21 @@
/* Metro module 9164; source: actions/InviteSuggestionsActionCreators.tsx; dependencies: [9163, 7693, 694, 2] */ /* Metro module 9164; source: actions/InviteSuggestionsActionCreators.tsx; dependencies: [9163, 7693, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UserAffinitiesActionCreatorsModule from '../modules/user_affinities/UserAffinitiesActionCreators.tsx'; /* Metro dependency 7693 */
import * as InviteSuggestionsStoreModule from '../stores/InviteSuggestionsStore.tsx'; /* Metro dependency 9163 */
function _fun71872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:6, offset: 0x01d30090, size: 127 bytes, params: 8, frame: 18 function _fun71872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:6, offset: 0x01d30090, size: 127 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
require(9163) /* metro dependency 9163: InviteSuggestionsStore */; InviteSuggestionsStoreModule;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/InviteSuggestionsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/InviteSuggestionsActionCreators.tsx');
exports.loadInviteSuggestions = loadInviteSuggestions; exports.loadInviteSuggestions = loadInviteSuggestions;
exports.searchInviteSuggestions = searchInviteSuggestions; exports.searchInviteSuggestions = searchInviteSuggestions;
}
function loadInviteSuggestions({omitUserIds, guild, channel, applicationId, inviteTargetType}) { // fn#71873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:201, offset: 0x01d3010f, size: 106 bytes, params: 2, frame: 12 function loadInviteSuggestions({omitUserIds, guild, channel, applicationId, inviteTargetType}) { // fn#71873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:201, offset: 0x01d3010f, size: 106 bytes, params: 2, frame: 12
let value = require(7693) /* metro dependency 7693: UserAffinitiesActionCreators */; let value = UserAffinitiesActionCreatorsModule;
value = value.fetchUserAffinitiesV2(); value = value.fetchUserAffinitiesV2();
return value.then(_fun71874); return value.then(_fun71874);
}
function searchInviteSuggestions(a0) { // fn#71875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:516, offset: 0x01d301ff, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'INVITE_SUGGESTIONS_SEARCH', query: a0});
}
function _fun71874() { // fn#71874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:347, offset: 0x01d30179, size: 134 bytes, params: 1, frame: 15 function _fun71874() { // fn#71874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:347, offset: 0x01d30179, size: 134 bytes, params: 1, frame: 15
var r5; var r5;
var set; var set;
@@ -34,3 +31,12 @@ function _fun71874() { // fn#71874, source: /ci/build/discord/discord/discord_an
applicationId: applicationId, inviteTargetType: inviteTargetType}]); applicationId: applicationId, inviteTargetType: inviteTargetType}]);
} }
}
function searchInviteSuggestions(a0) { // fn#71875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9349:516, offset: 0x01d301ff, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'INVITE_SUGGESTIONS_SEARCH', query: a0});
}
}
global.__d(_fun71872, 9164, [9163, 7693, 694, 2]) /* metro module 9164, dependencies: [9163, 7693, 694, 2] */;
+10 -6
View File
@@ -1,22 +1,26 @@
/* Metro module 5177; source: actions/LayerActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 5177; source: actions/LayerActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun45591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:6, offset: 0x01192afd, size: 123 bytes, params: 8, frame: 17 function _fun45591(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:6, offset: 0x01192afd, size: 123 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/LayerActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/LayerActionCreators.tsx');
exports.pushLayer = pushLayer; exports.pushLayer = pushLayer;
exports.popLayer = popLayer; exports.popLayer = popLayer;
exports.popAllLayers = popAllLayers; exports.popAllLayers = popAllLayers;
}
function pushLayer(a0) { // fn#45592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:169, offset: 0x01192b78, size: 56 bytes, params: 2, frame: 13 function pushLayer(a0) { // fn#45592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:169, offset: 0x01192b78, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LAYER_PUSH', component: a0}); (Dispatcher).dispatch({type: 'LAYER_PUSH', component: a0});
} }
function popLayer() { // fn#45593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:253, offset: 0x01192bb0, size: 48 bytes, params: 1, frame: 13 function popLayer() { // fn#45593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:253, offset: 0x01192bb0, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LAYER_POP'}); (Dispatcher).dispatch({type: 'LAYER_POP'});
} }
function popAllLayers() { // fn#45594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:326, offset: 0x01192be0, size: 48 bytes, params: 1, frame: 13 function popAllLayers() { // fn#45594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5355:326, offset: 0x01192be0, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LAYER_POP_ALL'}); (Dispatcher).dispatch({type: 'LAYER_POP_ALL'});
} }
}
global.__d(_fun45591, 5177, [694, 2]) /* metro module 5177, dependencies: [694, 2] */;
+84 -67
View File
@@ -1,85 +1,39 @@
/* Metro module 13267; source: actions/MFAActionCreators.tsx; dependencies: [12593, 661, 507, 694, 2] */ /* Metro module 13267; source: actions/MFAActionCreators.tsx; dependencies: [12593, 661, 507, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import MFAStore from '../stores/MFAStore.tsx'; /* Metro dependency 12593 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun101156(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:6, offset: 0x0220a128, size: 219 bytes, params: 8, frame: 19 function _fun101156(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:6, offset: 0x0220a128, size: 219 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const mfaStore = importDefault(12593) /* metro dependency 12593: MFAStore */; object = {enable: enable_101157, disable: disable_101159, enableSMS: enableSMS, disableSMS: disableSMS,
const env0_4 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {enable: enable_101157, disable: disable_101159, enableSMS: enableSMS, disableSMS: disableSMS,
sendMFABackupCodesVerificationKeyEmail: sendMFABackupCodesVerificationKeyEmail, sendMFABackupCodesVerificationKeyEmail: sendMFABackupCodesVerificationKeyEmail,
confirmViewBackupCodes: confirmViewBackupCodes, clearBackupCodes: clearBackupCodes}; confirmViewBackupCodes: confirmViewBackupCodes, clearBackupCodes: clearBackupCodes};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/MFAActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/MFAActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function enable_101157({code, secret}) { // fn#101157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:136, offset: 0x0220a203, size: 120 bytes, params: 2, frame: 14 function enable_101157({code, secret}) { // fn#101157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:136, offset: 0x0220a203, size: 120 bytes, params: 2, frame: 14
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const MFA_TOTP_ENABLE = Endpoints.MFA_TOTP_ENABLE; const MFA_TOTP_ENABLE = Endpoints.MFA_TOTP_ENABLE;
return Reflect.apply(post, HTTP, [{url: MFA_TOTP_ENABLE, body: {code: code, secret: secret}, oldFormErrors: true, return Reflect.apply(post, HTTP, [{url: MFA_TOTP_ENABLE, body: {code: code, secret: secret}, oldFormErrors: true,
rejectWithError: false}]).then(_fun101158); rejectWithError: false}]).then(_fun101158);
function _fun101158(a0) { // fn#101158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:265, offset: 0x0220a27b, size: 84 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'MFA_ENABLE_SUCCESS',
token: a0.body.token, codes: a0.body.backup_codes});
}
} }
function disable_101159() { // fn#101159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:361, offset: 0x0220a2cf, size: 88 bytes, params: 1, frame: 13 function disable_101159() { // fn#101159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:361, offset: 0x0220a2cf, size: 88 bytes, params: 1, frame: 13
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const MFA_TOTP_DISABLE = Endpoints.MFA_TOTP_DISABLE; const MFA_TOTP_DISABLE = Endpoints.MFA_TOTP_DISABLE;
Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false, Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: MFA_TOTP_DISABLE}]).then(_fun101160); url: MFA_TOTP_DISABLE}]).then(_fun101160);
}
function enableSMS() { // fn#101161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:545, offset: 0x0220a36b, size: 134 bytes, params: 1, frame: 17
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_SMS_TOGGLE'});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const MFA_SMS_ENABLE = Endpoints.MFA_SMS_ENABLE;
return Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: MFA_SMS_ENABLE}]).then(_fun101162, _fun101163);
}
function disableSMS(a0) { // fn#101164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:814, offset: 0x0220a459, size: 151 bytes, params: 2, frame: 17
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_SMS_TOGGLE'});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const MFA_SMS_DISABLE = Endpoints.MFA_SMS_DISABLE;
return Reflect.apply(post, HTTP, [{url: MFA_SMS_DISABLE, body: {password: a0}, oldFormErrors: true,
rejectWithError: false}]).then(_fun101165, _fun101166);
}
function sendMFABackupCodesVerificationKeyEmail(a0) { // fn#101167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1129, offset: 0x0220a4f0, size: 113 bytes, params: 2, frame: 15
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const MFA_SEND_VERIFICATION_KEY = Endpoints.MFA_SEND_VERIFICATION_KEY;
return Reflect.apply(post, HTTP, [{url: MFA_SEND_VERIFICATION_KEY, body: {password: a0}, oldFormErrors: true,
rejectWithError: false}]).then(_fun101168, function(a0) {
throw a0;
});
}
function confirmViewBackupCodes(a0, a1) { // fn#101170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1390, offset: 0x0220a5bc, size: 165 bytes, params: 3, frame: 17
const env0_0 = a0;
const nonces = MFAStore.getNonces();
const r6 = a1 ? nonces.regenerateNonce : nonces.viewNonce;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const MFA_CODES_VERIFICATION = Endpoints.MFA_CODES_VERIFICATION;
return Reflect.apply(post, HTTP, [{url: MFA_CODES_VERIFICATION, body: {key: a0, nonce: r6, regenerate: a1},
oldFormErrors: true, rejectWithError: false}]).then(_fun101171, function(a0) {
throw a0;
});
}
function clearBackupCodes() { // fn#101173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1715, offset: 0x0220a6b0, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_CLEAR_BACKUP_CODES'});
}
function _fun101158(a0) { // fn#101158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:265, offset: 0x0220a27b, size: 84 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_ENABLE_SUCCESS',
token: a0.body.token, codes: a0.body.backup_codes});
}
function _fun101160({body}) { // fn#101160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:457, offset: 0x0220a327, size: 68 bytes, params: 2, frame: 13 function _fun101160({body}) { // fn#101160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:457, offset: 0x0220a327, size: 68 bytes, params: 2, frame: 13
const token = body.token; const token = body.token;
let value = environment.__proto__; let value = environment.__proto__;
@@ -87,27 +41,90 @@ function _fun101160({body}) { // fn#101160, source: /ci/build/discord/discord/di
return value.dispatch({type: 'MFA_DISABLE_SUCCESS', token: token}); return value.dispatch({type: 'MFA_DISABLE_SUCCESS', token: token});
} }
}
function enableSMS() { // fn#101161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:545, offset: 0x0220a36b, size: 134 bytes, params: 1, frame: 17
(Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE'});
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const MFA_SMS_ENABLE = Endpoints.MFA_SMS_ENABLE;
return Reflect.apply(post, HTTP, [{'url': null, 'oldFormErrors': true, 'rejectWithError': false,
url: MFA_SMS_ENABLE}]).then(_fun101162, _fun101163);
function _fun101162(a0) { // fn#101162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:676, offset: 0x0220a3f1, size: 52 bytes, params: 2, frame: 12 function _fun101162(a0) { // fn#101162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:676, offset: 0x0220a3f1, size: 52 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'}); (Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'});
return a0; return a0;
} }
function _fun101163(a0) { // fn#101163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:736, offset: 0x0220a425, size: 52 bytes, params: 2, frame: 12 function _fun101163(a0) { // fn#101163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:736, offset: 0x0220a425, size: 52 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'}); (Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'});
throw a0; throw a0;
} }
}
function disableSMS(a0) { // fn#101164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:814, offset: 0x0220a459, size: 151 bytes, params: 2, frame: 17
(Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE'});
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const MFA_SMS_DISABLE = Endpoints.MFA_SMS_DISABLE;
return Reflect.apply(post, HTTP, [{url: MFA_SMS_DISABLE, body: {password: a0}, oldFormErrors: true,
rejectWithError: false}]).then(_fun101165, _fun101166);
function _fun101165(a0) { // fn#101165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:963, offset: 0x0220a3f1, size: 52 bytes, params: 2, frame: 12
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'});
return a0;
}
function _fun101166(a0) { // fn#101166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1023, offset: 0x0220a425, size: 52 bytes, params: 2, frame: 12
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'MFA_SMS_TOGGLE_COMPLETE'});
throw a0;
}
}
function sendMFABackupCodesVerificationKeyEmail(a0) { // fn#101167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1129, offset: 0x0220a4f0, size: 113 bytes, params: 2, frame: 15
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const MFA_SEND_VERIFICATION_KEY = Endpoints.MFA_SEND_VERIFICATION_KEY;
return Reflect.apply(post, HTTP, [{url: MFA_SEND_VERIFICATION_KEY, body: {password: a0}, oldFormErrors: true,
rejectWithError: false}]).then(_fun101168, function(a0) {
throw a0;
});
function _fun101168(a0) { // fn#101168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1245, offset: 0x0220a561, size: 91 bytes, params: 2, frame: 14 function _fun101168(a0) { // fn#101168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1245, offset: 0x0220a561, size: 91 bytes, params: 2, frame: 14
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_SEND_VERIFICATION_KEY', return (Dispatcher).dispatch({type: 'MFA_SEND_VERIFICATION_KEY',
nonces: {viewNonce: a0.body.nonce, regenerateNonce: a0.body.regenerate_nonce}}); nonces: {viewNonce: a0.body.nonce, regenerateNonce: a0.body.regenerate_nonce}});
} }
}
function confirmViewBackupCodes(a0, a1) { // fn#101170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1390, offset: 0x0220a5bc, size: 165 bytes, params: 3, frame: 17
const env0_0 = a0;
const nonces = MFAStore.getNonces();
const r6 = a1 ? nonces.regenerateNonce : nonces.viewNonce;
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const MFA_CODES_VERIFICATION = Endpoints.MFA_CODES_VERIFICATION;
return Reflect.apply(post, HTTP, [{url: MFA_CODES_VERIFICATION, body: {key: a0, nonce: r6, regenerate: a1},
oldFormErrors: true, rejectWithError: false}]).then(_fun101171, function(a0) {
throw a0;
});
function _fun101171({body}) { // fn#101171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1613, offset: 0x0220a661, size: 79 bytes, params: 2, frame: 12 function _fun101171({body}) { // fn#101171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1613, offset: 0x0220a661, size: 79 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MFA_VIEW_BACKUP_CODES', return (Dispatcher).dispatch({type: 'MFA_VIEW_BACKUP_CODES',
codes: body.backup_codes, key: env0_0}); codes: body.backup_codes, key: env0_0});
} }
}
function clearBackupCodes() { // fn#101173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13457:1715, offset: 0x0220a6b0, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'MFA_CLEAR_BACKUP_CODES'});
}
}
global.__d(_fun101156, 13267, [12593, 661, 507, 694,
2]) /* metro module 13267, dependencies: [12593, 661, 507, 694, 2] */;
+9 -5
View File
@@ -1,19 +1,23 @@
/* Metro module 10202; source: actions/MaskedLinkActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 10202; source: actions/MaskedLinkActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:6, offset: 0x01e4e0ec, size: 112 bytes, params: 8, frame: 17 function _fun79329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:6, offset: 0x01e4e0ec, size: 112 bytes, params: 8, frame: 17
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/MaskedLinkActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/MaskedLinkActionCreators.tsx');
exports.trustDomain = trustDomain; exports.trustDomain = trustDomain;
exports.trustProtocol = trustProtocol; exports.trustProtocol = trustProtocol;
}
function trustDomain(a0) { // fn#79330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:176, offset: 0x01e4e15c, size: 55 bytes, params: 2, frame: 13 function trustDomain(a0) { // fn#79330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:176, offset: 0x01e4e15c, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MASKED_LINK_ADD_TRUSTED_DOMAIN', (Dispatcher).dispatch({type: 'MASKED_LINK_ADD_TRUSTED_DOMAIN',
url: a0}); url: a0});
} }
function trustProtocol(a0) { // fn#79331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:281, offset: 0x01e4e193, size: 55 bytes, params: 2, frame: 13 function trustProtocol(a0) { // fn#79331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10388:281, offset: 0x01e4e193, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MASKED_LINK_ADD_TRUSTED_PROTOCOL', (Dispatcher).dispatch({type: 'MASKED_LINK_ADD_TRUSTED_PROTOCOL',
url: a0}); url: a0});
} }
}
global.__d(_fun79329, 10202, [694, 2]) /* metro module 10202, dependencies: [694, 2] */;
+25 -24
View File
@@ -1,31 +1,29 @@
/* Metro module 14769; source: actions/MentionActionCreators.tsx; dependencies: [661, 694, 507, 2] */ /* Metro module 14769; source: actions/MentionActionCreators.tsx; dependencies: [661, 694, 507, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun111490(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:6, offset: 0x023a4704, size: 211 bytes, params: 8, frame: 18 function _fun111490(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:6, offset: 0x023a4704, size: 211 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */; object = {setGuildFilter: setGuildFilter, clearMentions: clearMentions, truncateMentions: truncateMentions,
const env0_3 = constantsModule.Endpoints;
const env0_4 = constantsModule.MAX_MENTIONS_PER_FETCH;
object2 = {setGuildFilter: setGuildFilter, clearMentions: clearMentions, truncateMentions: truncateMentions,
fetchRecentMentions: fetchRecentMentions, deleteRecentMention: deleteRecentMention, fetchRecentMentions: fetchRecentMentions, deleteRecentMention: deleteRecentMention,
setRecentMentionsStale: setRecentMentionsStale}; setRecentMentionsStale: setRecentMentionsStale};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/MentionActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/MentionActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function setGuildFilter({guildFilter, roleFilter, everyoneFilter}) { // fn#111491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:150, offset: 0x023a47d7, size: 83 bytes, params: 2, frame: 16 function setGuildFilter({guildFilter, roleFilter, everyoneFilter}) { // fn#111491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:150, offset: 0x023a47d7, size: 83 bytes, params: 2, frame: 16
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'SET_RECENT_MENTIONS_FILTER', guildFilter: guildFilter, roleFilter: roleFilter,
dispatcher.dispatch({type: 'SET_RECENT_MENTIONS_FILTER', guildFilter: guildFilter, roleFilter: roleFilter,
everyoneFilter: everyoneFilter}); everyoneFilter: everyoneFilter});
} }
function clearMentions() { // fn#111492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:311, offset: 0x023a482a, size: 49 bytes, params: 1, frame: 13 function clearMentions() { // fn#111492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:311, offset: 0x023a482a, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_MENTIONS'}); (Dispatcher).dispatch({type: 'CLEAR_MENTIONS'});
} }
function truncateMentions(a0) { // fn#111493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:370, offset: 0x023a485b, size: 56 bytes, params: 2, frame: 13 function truncateMentions(a0) { // fn#111493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:370, offset: 0x023a485b, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TRUNCATE_MENTIONS', size: a0}); (Dispatcher).dispatch({type: 'TRUNCATE_MENTIONS', size: a0});
} }
function fetchRecentMentions({before, limit, guildId, roles, everyone, feature}) { // fn#111494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:463, offset: 0x023a4893, size: 247 bytes, params: 2, frame: 23 function fetchRecentMentions({before, limit, guildId, roles, everyone, feature}) { // fn#111494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:463, offset: 0x023a4893, size: 247 bytes, params: 2, frame: 23
@@ -33,9 +31,9 @@ function fetchRecentMentions({before, limit, guildId, roles, everyone, feature})
guildId = guildId === undefined ? null : guildId; guildId = guildId === undefined ? null : guildId;
roles = roles === undefined || roles; roles = roles === undefined || roles;
everyone = everyone === undefined || everyone; everyone = everyone === undefined || everyone;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_RECENT_MENTIONS', (Dispatcher).dispatch({type: 'LOAD_RECENT_MENTIONS',
guildId: guildId}); guildId: guildId});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const MENTIONS = Endpoints.MENTIONS; const MENTIONS = Endpoints.MENTIONS;
return Reflect.apply(get, HTTP, [{'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, return Reflect.apply(get, HTTP, [{'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true,
@@ -48,23 +46,26 @@ function fetchRecentMentions({before, limit, guildId, roles, everyone, feature})
object.hasMoreAfter = body >= MAX_MENTIONS_PER_FETCH; object.hasMoreAfter = body >= MAX_MENTIONS_PER_FETCH;
defaultImport.dispatch(object); defaultImport.dispatch(object);
}, _fun111496); }, _fun111496);
function _fun111496() { // fn#111496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:872, offset: 0x023a49ea, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'LOAD_RECENT_MENTIONS_FAILURE'});
}
} }
function deleteRecentMention(a0) { // fn#111497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:937, offset: 0x023a4a1b, size: 119 bytes, params: 2, frame: 17 function deleteRecentMention(a0) { // fn#111497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:937, offset: 0x023a4a1b, size: 119 bytes, params: 2, frame: 17
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {'url': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.MENTIONS_MESSAGE_ID(a0); object.url = Endpoints.MENTIONS_MESSAGE_ID(a0);
Reflect.apply(del, HTTP, [object2]); Reflect.apply(del, HTTP, [object]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RECENT_MENTION_DELETE', id: a0}); (Dispatcher).dispatch({type: 'RECENT_MENTION_DELETE', id: a0});
} }
function setRecentMentionsStale() { // fn#111498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:1110, offset: 0x023a4a92, size: 49 bytes, params: 1, frame: 13 function setRecentMentionsStale() { // fn#111498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:1110, offset: 0x023a4a92, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SET_RECENT_MENTIONS_STALE'}); (Dispatcher).dispatch({type: 'SET_RECENT_MENTIONS_STALE'});
} }
function _fun111496() { // fn#111496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14966:872, offset: 0x023a49ea, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_RECENT_MENTIONS_FAILURE'});
} }
global.__d(_fun111490, 14769, [661, 694, 507, 2]) /* metro module 14769, dependencies: [661, 694, 507, 2] */;
File diff suppressed because it is too large. Load diff
+57 -52
View File
@@ -1,16 +1,18 @@
/* Metro module 5080; source: actions/ModalActionCreators.tsx; dependencies: [661, 5081, 4007, 5082, 694, 4008, 5083, 2] */ /* Metro module 5080; source: actions/ModalActionCreators.tsx; dependencies: [661, 5081, 4007, 5082, 694, 4008, 5083, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ModalDispatchQueue from '../modules/main_tabs_v2/native/modal/ModalDispatchQueue.tsx'; /* Metro dependency 5083 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as NavigationRouteUtilsNativeModule from '../modules/main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
function _fun44100(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:6, offset: 0x011683ba, size: 188 bytes, params: 8, frame: 18 function _fun44100(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:6, offset: 0x011683ba, size: 188 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AppContext; object = {push: push_44101, pushLazy: pushLazy, updateAnimation: updateAnimation, pop: pop_44108,
object2 = {push: push_44101, pushLazy: pushLazy, updateAnimation: updateAnimation, pop: pop_44108,
popWithKey: popWithKey, popAboveKey: popAboveKey, popAll: popAll}; popWithKey: popWithKey, popAboveKey: popAboveKey, popAll: popAll};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ModalActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/ModalActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function push_44101(a0, a1) { // fn#44101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:125, offset: 0x01168476, size: 209 bytes, params: 3, frame: 23 function push_44101(a0, a1) { // fn#44101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:125, offset: 0x01168476, size: 209 bytes, params: 3, frame: 23
var r0; var r0;
let value = a2; let value = a2;
@@ -23,12 +25,11 @@ function push_44101(a0, a1) { // fn#44101, source: /ci/build/discord/discord/dis
r0 = value; r0 = value;
} }
const r4 = value2 !== undefined ? value2 : AppContext.APP; const r4 = value2 !== undefined ? value2 : AppContext.APP;
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */; const pushModal = NavigationRouteUtilsNativeModule.pushModal;
const pushModal = navigationRouteUtilsNativeModule.pushModal; const object = {key: r0};
const object2 = {key: r0}; object.modal = (importDefault(5082) /* metro dependency 5082: getDeprecatedModalData */)(a0, {}, a1, r0);
object2.modal = (importDefault(5082) /* metro dependency 5082: getDeprecatedModalData */)(a0, {}, a1, r0); copyDataProperties(object, a3, a1);
copyDataProperties(object2, a3, a1); Reflect.apply(pushModal, NavigationRouteUtilsNativeModule, [object]);
Reflect.apply(pushModal, navigationRouteUtilsNativeModule, [object2]);
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'MODAL_PUSH', modal: a0, props: a1, key: r0, appContext: r4}); value.dispatch({type: 'MODAL_PUSH', modal: a0, props: a1, key: r0, appContext: r4});
return r0; return r0;
@@ -52,53 +53,16 @@ function pushLazy(a0, a1) { // fn#44102, source: /ci/build/discord/discord/disco
return value == null ? new global.Promise(_fun44105) : value.isReady() ? (a0 instanceof global.Promise ? a0.then(function(a0) { return value == null ? new global.Promise(_fun44105) : value.isReady() ? (a0 instanceof global.Promise ? a0.then(function(a0) {
return a0.default; return a0.default;
}) : a0()).then(_fun44104) : new global.Promise(_fun44105); }) : a0()).then(_fun44104) : new global.Promise(_fun44105);
}
function updateAnimation(a0, a1) { // fn#44107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:546, offset: 0x011686aa, size: 77 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_UPDATE', key: a0, props: {},
partial: true, animation: a1});
}
function pop_44108() { // fn#44108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:646, offset: 0x011686f7, size: 75 bytes, params: 1, frame: 13
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModal();
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP'});
}
function popWithKey(a0, a1) { // fn#44109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:709, offset: 0x01168742, size: 92 bytes, params: 3, frame: 16
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModal(a0, a1);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP', key: a0, onExited: a1});
}
function popAboveKey(a0) { // fn#44110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:814, offset: 0x0116879e, size: 41 bytes, params: 2, frame: 11
return (require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModalsAboveKey(a0);
}
function popAll() { // fn#44111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:846, offset: 0x011687c7, size: 344 bytes, params: 1, frame: 16
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popAllModals();
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP_ALL'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMAIL_VERIFICATION_MODAL_CLOSE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_CLOSE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ACTION_SHEET'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISPLAYED_INVITE_CLEAR'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'QUICKSWITCHER_HIDE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_CLOSE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CONNECTIONS_GRID_MODAL_HIDE'});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_MODAL_CLOSE'});
}
function _fun44104(a0) { // fn#44104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:454, offset: 0x0116861e, size: 36 bytes, params: 2, frame: 17 function _fun44104(a0) { // fn#44104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:454, offset: 0x0116861e, size: 36 bytes, params: 2, frame: 17
const binding = env0_0; const binding = env0_0;
return binding.push(a0, require, env0_3, importAll); return binding.push(a0, require, ConstantsModule.AppContext, importAll);
} }
function _fun44105(a0) { // fn#44105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:491, offset: 0x01168642, size: 52 bytes, params: 2, frame: 12 function _fun44105(a0) { // fn#44105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:491, offset: 0x01168642, size: 52 bytes, params: 2, frame: 12
var environment; var environment;
const env0_0 = a0; const env0_0 = a0;
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(5083) /* metro dependency 5083: ModalDispatchQueue */).enqueue(_fun44106); return (ModalDispatchQueue).enqueue(_fun44106);
}
function _fun44106() { // fn#44106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:511, offset: 0x01168676, size: 52 bytes, params: 1, frame: 18 function _fun44106() { // fn#44106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:511, offset: 0x01168676, size: 52 bytes, params: 1, frame: 18
const binding = env0_0; const binding = env0_0;
const value = environment.__proto__; const value = environment.__proto__;
@@ -106,3 +70,44 @@ function _fun44106() { // fn#44106, source: /ci/build/discord/discord/discord_an
return binding(binding2.pushLazy(env1_1, require, env1_3, importAll)); return binding(binding2.pushLazy(env1_1, require, env1_3, importAll));
} }
}
}
function updateAnimation(a0, a1) { // fn#44107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:546, offset: 0x011686aa, size: 77 bytes, params: 3, frame: 13
(Dispatcher).dispatch({type: 'MODAL_UPDATE', key: a0, props: {},
partial: true, animation: a1});
}
function pop_44108() { // fn#44108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:646, offset: 0x011686f7, size: 75 bytes, params: 1, frame: 13
(NavigationRouteUtilsNativeModule).popModal();
(Dispatcher).dispatch({type: 'MODAL_POP'});
}
function popWithKey(a0, a1) { // fn#44109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:709, offset: 0x01168742, size: 92 bytes, params: 3, frame: 16
(NavigationRouteUtilsNativeModule).popModal(a0, a1);
(Dispatcher).dispatch({type: 'MODAL_POP', key: a0, onExited: a1});
}
function popAboveKey(a0) { // fn#44110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:814, offset: 0x0116879e, size: 41 bytes, params: 2, frame: 11
return (NavigationRouteUtilsNativeModule).popModalsAboveKey(a0);
}
function popAll() { // fn#44111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:846, offset: 0x011687c7, size: 344 bytes, params: 1, frame: 16
(NavigationRouteUtilsNativeModule).popAllModals();
(Dispatcher).dispatch({type: 'MODAL_POP_ALL'});
(Dispatcher).dispatch({type: 'EMAIL_VERIFICATION_MODAL_CLOSE'});
(Dispatcher).dispatch({type: 'GUILD_SETTINGS_CLOSE'});
(Dispatcher).dispatch({type: 'HIDE_ACTION_SHEET'});
(Dispatcher).dispatch({type: 'DISPLAYED_INVITE_CLEAR'});
(Dispatcher).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'});
(Dispatcher).dispatch({type: 'QUICKSWITCHER_HIDE'});
(Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_CLOSE'});
(Dispatcher).dispatch({type: 'CONNECTIONS_GRID_MODAL_HIDE'});
(Dispatcher).dispatch({type: 'USER_PROFILE_MODAL_CLOSE'});
}
}
global.__d(_fun44100, 5080, [661, 5081, 4007, 5082, 694, 4008, 5083,
2]) /* metro module 5080, dependencies: [661, 5081, 4007, 5082, 694, 4008, 5083, 2] */;
+5 -2
View File
@@ -1,10 +1,12 @@
/* Metro module 10337; source: actions/NoteActionCreators.tsx; dependencies: [661, 507, 2] */ /* Metro module 10337; source: actions/NoteActionCreators.tsx; dependencies: [661, 507, 2] */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun80118(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10523:6, offset: 0x01e6d1fe, size: 124 bytes, params: 8, frame: 18 function _fun80118(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10523:6, offset: 0x01e6d1fe, size: 124 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).Endpoints; (FileImportTrackerModule).fileFinishedImporting('actions/NoteActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/NoteActionCreators.tsx');
exports.default = {updateNote: function(a0, a1) { exports.default = {updateNote: function(a0, a1) {
var HTTP = require(dependencyMap[1]).HTTP; var HTTP = require(dependencyMap[1]).HTTP;
var object = {}; var object = {};
@@ -16,3 +18,4 @@ function _fun80118(global, require, importDefault, importAll, module, exports, d
}}; }};
} }
global.__d(_fun80118, 10337, [661, 507, 2]) /* metro module 10337, dependencies: [661, 507, 2] */;
+15 -13
View File
@@ -1,23 +1,25 @@
/* Metro module 14920; source: actions/NoticeActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 14920; source: actions/NoticeActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun112880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:6, offset: 0x023dffd3, size: 118 bytes, params: 8, frame: 17 function _fun112880(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#112880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:6, offset: 0x023dffd3, size: 118 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {show: show_112881, dismiss: dismiss}; object = {show: show_112881, dismiss: dismiss_112882};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/NoticeActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/NoticeActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function show_112881(a0, a1, a2, a3, a4) { // fn#112881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:99, offset: 0x023e0049, size: 92 bytes, params: 6, frame: 14 function show_112881(a0, a1, a2, a3, a4) { // fn#112881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:99, offset: 0x023e0049, size: 92 bytes, params: 6, frame: 14
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTICE_SHOW', notice: {id: a4, (Dispatcher).dispatch({type: 'NOTICE_SHOW', notice: {id: a4,
type: a0, message: a1, buttonText: a2, callback: a3}}); type: a0, message: a1, buttonText: a2, callback: a3}});
} }
function dismiss(a0) { // fn#112882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:210, offset: 0x023e00a5, size: 58 bytes, params: 2, frame: 14 function dismiss_112882(a0) { // fn#112882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15117:210, offset: 0x023e00a5, size: 58 bytes, params: 2, frame: 14
const value = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = Dispatcher.dispatch;
const dispatch = value.dispatch; const object = {type: 'NOTICE_DISMISS'};
const object2 = {type: 'NOTICE_DISMISS'}; copyDataProperties(object, a0, 'NOTICE_DISMISS');
copyDataProperties(object2, a0, 'NOTICE_DISMISS'); Reflect.apply(dispatch, Dispatcher, [object]);
Reflect.apply(dispatch, value, [object2]);
} }
}
global.__d(_fun112880, 14920, [694, 2]) /* metro module 14920, dependencies: [694, 2] */;
+45 -45
View File
@@ -1,125 +1,125 @@
/* Metro module 13914; source: actions/NotificationActionCreators.tsx; dependencies: [661, 683, 694, 2] */ /* Metro module 13914; source: actions/NotificationActionCreators.tsx; dependencies: [661, 683, 694, 2] */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun105630(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:6, offset: 0x022be66a, size: 285 bytes, params: 8, frame: 18 function _fun105630(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:6, offset: 0x022be66a, size: 285 bytes, params: 8, frame: 18
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */; object = {setDesktopType: setDesktopType, setTTSType: setTTSType, setDisabledSounds: setDisabledSounds,
const env0_2 = constantsModule.DesktopNotificationTypes;
const env0_3 = constantsModule.NotificationPermissionTypes;
const env0_4 = constantsModule.AnalyticEvents;
object2 = {setDesktopType: setDesktopType, setTTSType: setTTSType, setDisabledSounds: setDisabledSounds,
toggleDisableAllSounds: toggleDisableAllSounds, setDisableUnreadBadge: setDisableUnreadBadge, toggleDisableAllSounds: toggleDisableAllSounds, setDisableUnreadBadge: setDisableUnreadBadge,
setTaskbarFlash: setTaskbarFlash, setNotifyMessagesInSelectedChannel: setNotifyMessagesInSelectedChannel, setTaskbarFlash: setTaskbarFlash, setNotifyMessagesInSelectedChannel: setNotifyMessagesInSelectedChannel,
setScreenDowntimeReminder: setScreenDowntimeReminder, setPermissionsState: setPermissionsState, setScreenDowntimeReminder: setScreenDowntimeReminder, setPermissionsState: setPermissionsState,
showNotification: showNotification_105640, clickedNotification: clickedNotification}; showNotification: showNotification_105640, clickedNotification: clickedNotification};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/NotificationActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/NotificationActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function setDesktopType(a0) { // fn#105631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:189, offset: 0x022be787, size: 113 bytes, params: 2, frame: 18 function setDesktopType(a0) { // fn#105631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:189, offset: 0x022be787, size: 113 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
const ALL = DesktopNotificationTypes.ALL; const ALL = DesktopNotificationTypes.ALL;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {notifications_enabled: a0 === ALL}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {notifications_enabled: a0 === ALL}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_DESKTOP_TYPE', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_DESKTOP_TYPE',
desktopType: a0}); desktopType: a0});
} }
function setTTSType(a0) { // fn#105632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:354, offset: 0x022be7f8, size: 108 bytes, params: 2, frame: 18 function setTTSType(a0) { // fn#105632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:354, offset: 0x022be7f8, size: 108 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
const object2 = {}; const object = {};
object2.tts_type = a0.toString(); object.tts_type = a0.toString();
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, object2]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, object]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_TTS_TYPE', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_TTS_TYPE',
ttsType: a0}); ttsType: a0});
} }
function setDisabledSounds(a0) { // fn#105633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:497, offset: 0x022be864, size: 97 bytes, params: 2, frame: 18 function setDisabledSounds(a0) { // fn#105633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:497, offset: 0x022be864, size: 97 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {disabled_sounds: a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {disabled_sounds: a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_DISABLED_SOUNDS', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_DISABLED_SOUNDS',
sounds: a0}); sounds: a0});
} }
function toggleDisableAllSounds(a0) { // fn#105634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:649, offset: 0x022be8c5, size: 97 bytes, params: 2, frame: 17 function toggleDisableAllSounds(a0) { // fn#105634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:649, offset: 0x022be8c5, size: 97 bytes, params: 2, frame: 17
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {all_sounds_enabled: !a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {all_sounds_enabled: !a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_TOGGLE_ALL_DISABLED'}); (Dispatcher).dispatch({type: 'NOTIFICATIONS_TOGGLE_ALL_DISABLED'});
} }
function setDisableUnreadBadge(a0) { // fn#105635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:801, offset: 0x022be926, size: 102 bytes, params: 2, frame: 18 function setDisableUnreadBadge(a0) { // fn#105635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:801, offset: 0x022be926, size: 102 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {unread_badge_enabled: !a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {unread_badge_enabled: !a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_DISABLE_UNREAD_BADGE', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_DISABLE_UNREAD_BADGE',
disableUnreadBadge: a0}); disableUnreadBadge: a0});
} }
function setTaskbarFlash(a0) { // fn#105636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:980, offset: 0x022be98c, size: 99 bytes, params: 2, frame: 18 function setTaskbarFlash(a0) { // fn#105636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:980, offset: 0x022be98c, size: 99 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {show_taskbar_flash: a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {show_taskbar_flash: a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_TASKBAR_FLASH', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_TASKBAR_FLASH',
taskbarFlash: a0}); taskbarFlash: a0});
} }
function setNotifyMessagesInSelectedChannel(a0) { // fn#105637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1137, offset: 0x022be9ef, size: 99 bytes, params: 2, frame: 18 function setNotifyMessagesInSelectedChannel(a0) { // fn#105637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1137, offset: 0x022be9ef, size: 99 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {notify_messages_in_selected_channel: a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {notify_messages_in_selected_channel: a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_NOTIFY_MESSAGES_IN_SELECTED_CHANNEL', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_NOTIFY_MESSAGES_IN_SELECTED_CHANNEL',
notify: a0}); notify: a0});
} }
function setScreenDowntimeReminder(a0) { // fn#105638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1346, offset: 0x022bea52, size: 97 bytes, params: 2, frame: 18 function setScreenDowntimeReminder(a0) { // fn#105638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1346, offset: 0x022bea52, size: 97 bytes, params: 2, frame: 18
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED; const LOCAL_SETTINGS_UPDATED = AnalyticEvents.LOCAL_SETTINGS_UPDATED;
Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {screen_downtime_reminder: a0}]); Reflect.apply(track, defaultImport, [LOCAL_SETTINGS_UPDATED, {screen_downtime_reminder: a0}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_SCREEN_DOWNTIME_REMINDER', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_SCREEN_DOWNTIME_REMINDER',
screenDowntimeReminder: a0}); screenDowntimeReminder: a0});
} }
function setPermissionsState(a0, a1) { // fn#105639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1540, offset: 0x022beab3, size: 120 bytes, params: 3, frame: 19 function setPermissionsState(a0, a1) { // fn#105639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1540, offset: 0x022beab3, size: 120 bytes, params: 3, frame: 19
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport = AnalyticsUtils;
const track = defaultImport.track; const track = defaultImport.track;
const ENABLE_NOTIFICATIONS = AnalyticEvents.ENABLE_NOTIFICATIONS; const ENABLE_NOTIFICATIONS = AnalyticEvents.ENABLE_NOTIFICATIONS;
const ENABLED = NotificationPermissionTypes.ENABLED; const ENABLED = NotificationPermissionTypes.ENABLED;
Reflect.apply(track, defaultImport, [ENABLE_NOTIFICATIONS, {enabled: a0 === ENABLED, source: a1}]); Reflect.apply(track, defaultImport, [ENABLE_NOTIFICATIONS, {enabled: a0 === ENABLED, source: a1}]);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATIONS_SET_PERMISSION_STATE', (Dispatcher).dispatch({type: 'NOTIFICATIONS_SET_PERMISSION_STATE',
enabled: a0, source: a1}); enabled: a0, source: a1});
} }
function showNotification_105640(a0, a1, a2, a3, a4) { // fn#105640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1718, offset: 0x022beb2b, size: 119 bytes, params: 6, frame: 16 function showNotification_105640(a0, a1, a2, a3, a4) { // fn#105640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1718, offset: 0x022beb2b, size: 119 bytes, params: 6, frame: 16
const env0_0 = a4; const env0_0 = a4;
const value = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = Dispatcher.dispatch;
const dispatch = value.dispatch; const object2 = {};
const object = {}; copyDataProperties(object2, a4, a4);
copyDataProperties(object, a4, a4); object2['onClick'] = showNotification_105640OnClick;
object['onClick'] = showNotification_105640OnClick; Reflect.apply(dispatch, Dispatcher, [{type: 'NOTIFICATION_CREATE', icon: a0, title: a1, body: a2, trackingProps: a3,
Reflect.apply(dispatch, value, [{type: 'NOTIFICATION_CREATE', icon: a0, title: a1, body: a2, trackingProps: a3, options: object2}]);
options: object}]);
}
function clickedNotification() { // fn#105642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1935, offset: 0x022bebf6, size: 47 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_CLICK'});
}
function showNotification_105640OnClick(a0) { // fn#105641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1843, owner: showNotification_105640.onClick, offset: 0x022beba2, size: 84 bytes, params: 2, frame: 13 function showNotification_105640OnClick(a0) { // fn#105641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1843, owner: showNotification_105640.onClick, offset: 0x022beba2, size: 84 bytes, params: 2, frame: 13
if (env0_0.onClick != null) { if (env0_0.onClick != null) {
env0_0.onClick(a0); env0_0.onClick(a0);
} }
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_CLICK'}); (Dispatcher).dispatch({type: 'NOTIFICATION_CLICK'});
} }
}
function clickedNotification() { // fn#105642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14111:1935, offset: 0x022bebf6, size: 47 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'NOTIFICATION_CLICK'});
}
}
global.__d(_fun105630, 13914, [661, 683, 694, 2]) /* metro module 13914, dependencies: [661, 683, 694, 2] */;
@@ -1,39 +1,44 @@
/* Metro module 6613; source: actions/NotificationSettingsModalActionCreators.tsx; dependencies: [5, 4864, 661, 3796, 670, 694, 6610, 6612, 21, 4002, 1244, 1391, 507, 2] */ /* Metro module 6613; source: actions/NotificationSettingsModalActionCreators.tsx; dependencies: [5, 4864, 661, 3796, 670, 694, 6610, 6612, 21, 4002, 1244, 1391, 507, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import SnowflakeUtils from '../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserGuildSettingsStore from '../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import UserGuildSettingsManager from '../modules/user_settings/UserGuildSettingsManager.tsx'; /* Metro dependency 6612 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as UserSettingsConstantsModule from '../modules/user_settings/UserSettingsConstants.tsx'; /* Metro dependency 670 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NotificationConstantsModule from '../modules/notifications/NotificationConstants.tsx'; /* Metro dependency 3796 */
import * as SharedModule from '../design/shared.tsx'; /* Metro dependency 4002 */
import * as NotificationSettingsUtilsModule from '../utils/NotificationSettingsUtils.tsx'; /* Metro dependency 6610 */
function _fun52243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:6, offset: 0x01323731, size: 287 bytes, params: 8, frame: 19 function _fun52243(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:6, offset: 0x01323731, size: 287 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; object = {open: open_52244, close: close_52245, updateGuildNotificationSettings: updateGuildNotificationSettings,
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const env0_6 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
const env0_7 = (require(670) /* metro dependency 670: UserSettingsConstants */).ChannelNotificationSettingsFlags;
object2 = {open: open_52244, close: close_52245, updateGuildNotificationSettings: updateGuildNotificationSettings,
updateGuildAndChannelNotificationSettings: updateGuildAndChannelNotificationSettings, updateGuildAndChannelNotificationSettings: updateGuildAndChannelNotificationSettings,
updateChannelOverrideSettings: updateChannelOverrideSettings, updateChannelOverrideSettings: updateChannelOverrideSettings,
updateChannelOverrideSettingsBulk: updateChannelOverrideSettingsBulk, updateChannelOverrideSettingsBulk: updateChannelOverrideSettingsBulk,
updateAppDMOverrideSettings: updateAppDMOverrideSettings, setForumThreadsCreated: setForumThreadsCreated, updateAppDMOverrideSettings: updateAppDMOverrideSettings, setForumThreadsCreated: setForumThreadsCreated,
setAccountFlag: setAccountFlag}; setAccountFlag: setAccountFlag};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/NotificationSettingsModalActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/NotificationSettingsModalActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function open_52244(a0) { // fn#52244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:223, offset: 0x01323850, size: 54 bytes, params: 2, frame: 13 function open_52244(a0) { // fn#52244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:223, offset: 0x01323850, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_OPEN', (Dispatcher).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_OPEN',
guildId: a0}); guildId: a0});
} }
function close_52245() { // fn#52245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:302, offset: 0x01323886, size: 47 bytes, params: 1, frame: 13 function close_52245() { // fn#52245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:302, offset: 0x01323886, size: 47 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'}); (Dispatcher).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'});
} }
function updateGuildNotificationSettings(a0, a1, a2, a3) { // fn#52246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:372, offset: 0x013238b5, size: 147 bytes, params: 5, frame: 23 function updateGuildNotificationSettings(a0, a1, a2, a3) { // fn#52246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:372, offset: 0x013238b5, size: 147 bytes, params: 5, frame: 23
const currentGuildSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentGuildSettings(a0); const currentGuildSettings = (NotificationSettingsUtilsModule).getCurrentGuildSettings(a0);
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, a1); (UserGuildSettingsManager).saveUserGuildSettings(a0, a1);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_UPDATE', (Dispatcher).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_UPDATE',
guildId: a0, settings: a1}); guildId: a0, settings: a1});
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackGuildNotificationSettingsUpdate(a0, a1, (NotificationSettingsUtilsModule).trackGuildNotificationSettingsUpdate(a0, a1,
currentGuildSettings, a2, a3); currentGuildSettings, a2, a3);
} }
@@ -42,36 +47,41 @@ function updateGuildAndChannelNotificationSettings(a0, a1, a2, a3) { // fn#52247
const env0_1 = a1; const env0_1 = a1;
const env0_2 = a2; const env0_2 = a2;
const env0_3 = a3; const env0_3 = a3;
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */; const defaultImport = SnowflakeUtils;
const value2 = defaultImport.keys(a1.channel_overrides); const value2 = defaultImport.keys(a1.channel_overrides);
let value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */; let value = NotificationSettingsUtilsModule;
value = value.getCurrentGuildSettings(a0); value = value.getCurrentGuildSettings(a0);
const env0_4 = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getManyCurrentChannelSettings(a0, const env0_4 = (NotificationSettingsUtilsModule).getManyCurrentChannelSettings(a0,
value2); value2);
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, a1); (UserGuildSettingsManager).saveUserGuildSettings(a0, a1);
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_AND_CHANNELS_UPDATE', (Dispatcher).dispatch({type: 'USER_GUILD_SETTINGS_GUILD_AND_CHANNELS_UPDATE',
guildId: a0, settings: a1}); guildId: a0, settings: a1});
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackGuildNotificationSettingsUpdate(a0, a1, (NotificationSettingsUtilsModule).trackGuildNotificationSettingsUpdate(a0, a1,
value, a2, a3); value, a2, a3);
value = Reflect.apply(defaultImport.keys, value, [a1.channel_overrides]); value = Reflect.apply(defaultImport.keys, value, [a1.channel_overrides]);
value.forEach(_fun52248); value.forEach(_fun52248);
function _fun52248(a0) { // fn#52248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1028, offset: 0x01323a50, size: 112 bytes, params: 2, frame: 16
(NotificationSettingsUtilsModule).trackChannelNotificationSettingsUpdate({guildId: env0_0,
channelId: a0, change: require.channel_overrides[a0], previous: env0_4.get(a0), label: importDefault,
location: importAll});
}
} }
function updateChannelOverrideSettings(a0, a1, a2, a3, a4) { // fn#52249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1183, offset: 0x01323ac0, size: 265 bytes, params: 6, frame: 23 function updateChannelOverrideSettings(a0, a1, a2, a3, a4) { // fn#52249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1183, offset: 0x01323ac0, size: 265 bytes, params: 6, frame: 23
const currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0, const currentChannelSettings = (NotificationSettingsUtilsModule).getCurrentChannelSettings(a0,
a1); a1);
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, (UserGuildSettingsManager).saveUserGuildSettings(a0,
{channel_overrides: {[a1]: a2}}); {channel_overrides: {[a1]: a2}});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE', (Dispatcher).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE',
guildId: a0, channelId: a1, settings: a2}); guildId: a0, channelId: a1, settings: a2});
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer; const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce; const announce = AccessibilityAnnouncer.announce;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const string = intl.string; const string = intl.string;
const MlIsJ8 = (require(1244) /* metro dependency 1244: indexNative */).t.MlIsJ8; const MlIsJ8 = (IndexNativeModule).t.MlIsJ8;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]); Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]);
const value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */; NotificationSettingsUtilsModule.trackChannelNotificationSettingsUpdate({guildId: a0, channelId: a1, change: a2,
value.trackChannelNotificationSettingsUpdate({guildId: a0, channelId: a1, change: a2,
previous: currentChannelSettings, label: a3, location: a4}); previous: currentChannelSettings, label: a3, location: a4});
} }
@@ -80,34 +90,47 @@ function updateChannelOverrideSettingsBulk(a0, a1, a2, a3) { // fn#52250, source
const env0_1 = a1; const env0_1 = a1;
const env0_2 = a2; const env0_2 = a2;
const env0_3 = a3; const env0_3 = a3;
const env0_4 = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getManyCurrentChannelSettings(a0, const env0_4 = (NotificationSettingsUtilsModule).getManyCurrentChannelSettings(a0,
(importDefault(21) /* metro dependency 21: SnowflakeUtils */).keys(a1)); (SnowflakeUtils).keys(a1));
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, (UserGuildSettingsManager).saveUserGuildSettings(a0,
{channel_overrides: a1}); {channel_overrides: a1});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE_BULK', (Dispatcher).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE_BULK',
guildId: a0, overrides: a1}); guildId: a0, overrides: a1});
let value = importDefault(21) /* metro dependency 21: SnowflakeUtils */; let value = SnowflakeUtils;
value = value.keys(a1); value = value.keys(a1);
value.forEach(_fun52251); value.forEach(_fun52251);
function _fun52251(a0) { // fn#52251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1897, offset: 0x01323c96, size: 106 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
const trackChannelNotificationSettingsUpdate = value.trackChannelNotificationSettingsUpdate;
const object = {};
object.guildId = env0_0;
object.channelId = a0;
object.change = require[a0];
object.previous = env0_4.get(a0);
object.label = importDefault;
object.location = importAll;
return Reflect.apply(trackChannelNotificationSettingsUpdate, value, [object]);
}
} }
function updateAppDMOverrideSettings(a0, a1, a2, a3, a4) { // fn#52252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2024, offset: 0x01323d00, size: 280 bytes, params: 6, frame: 24 function updateAppDMOverrideSettings(a0, a1, a2, a3, a4) { // fn#52252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2024, offset: 0x01323d00, size: 280 bytes, params: 6, frame: 24
const currentChannelSettings = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).getCurrentChannelSettings(a0, const currentChannelSettings = (NotificationSettingsUtilsModule).getCurrentChannelSettings(a0,
a1); a1);
(importDefault(6612) /* metro dependency 6612: UserGuildSettingsManager */).saveUserGuildSettings(a0, (UserGuildSettingsManager).saveUserGuildSettings(a0,
{channel_overrides: {[a1]: a3}}); {channel_overrides: {[a1]: a3}});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE', (Dispatcher).dispatch({type: 'USER_GUILD_SETTINGS_CHANNEL_UPDATE',
guildId: a0, channelId: a1, settings: a3}); guildId: a0, channelId: a1, settings: a3});
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer; const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce; const announce = AccessibilityAnnouncer.announce;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const string = intl.string; const string = intl.string;
const MlIsJ8 = (require(1244) /* metro dependency 1244: indexNative */).t.MlIsJ8; const MlIsJ8 = (IndexNativeModule).t.MlIsJ8;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]); Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [MlIsJ8])]);
const notificationSettingsUtilsModule = require(6610) /* metro dependency 6610: NotificationSettingsUtils */; const trackChannelNotificationSettingsUpdate = NotificationSettingsUtilsModule.trackChannelNotificationSettingsUpdate;
const trackChannelNotificationSettingsUpdate = notificationSettingsUtilsModule.trackChannelNotificationSettingsUpdate;
const AUTHORIZED_APP_DM = NotificationSettingsUpdateType.AUTHORIZED_APP_DM; const AUTHORIZED_APP_DM = NotificationSettingsUpdateType.AUTHORIZED_APP_DM;
Reflect.apply(trackChannelNotificationSettingsUpdate, notificationSettingsUtilsModule, Reflect.apply(trackChannelNotificationSettingsUpdate, NotificationSettingsUtilsModule,
[{updateType: AUTHORIZED_APP_DM, guildId: a0, channelId: a1, applicationId: a2, change: a3, [{updateType: AUTHORIZED_APP_DM, guildId: a0, channelId: a1, applicationId: a2, change: a3,
previous: currentChannelSettings, label: a4}]); previous: currentChannelSettings, label: a4}]);
} }
@@ -119,38 +142,16 @@ function setForumThreadsCreated(a0, a1) { // fn#52253, source: /ci/build/discord
const updateChannelOverrideSettings = this.updateChannelOverrideSettings; const updateChannelOverrideSettings = this.updateChannelOverrideSettings;
const guild_id = a0.guild_id; const guild_id = a0.guild_id;
const id = a0.id; const id = a0.id;
const object2 = {flags: channelFlags & ~r1 | r7}; const object = {flags: channelFlags & ~r1 | r7};
const NotificationLabel = (require(6610) /* metro dependency 6610: NotificationSettingsUtils */).NotificationLabel; const NotificationLabel = (NotificationSettingsUtilsModule).NotificationLabel;
Reflect.apply(updateChannelOverrideSettings, this, [guild_id, id, object2, Reflect.apply(updateChannelOverrideSettings, this, [guild_id, id, object,
NotificationLabel.forumThreadsCreated(a1)]); NotificationLabel.forumThreadsCreated(a1)]);
} }
function setAccountFlag(a0, a1) { // fn#52254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2782, offset: 0x01323eb6, size: 41 bytes, params: 3, frame: 11 function setAccountFlag(a0, a1) { // fn#52254, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2782, offset: 0x01323eb6, size: 41 bytes, params: 3, frame: 11
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
return env0_3(_fun52256)(); return Module00005(_fun52256)();
}
function _fun52248(a0) { // fn#52248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1028, offset: 0x01323a50, size: 112 bytes, params: 2, frame: 16
(require(6610) /* metro dependency 6610: NotificationSettingsUtils */).trackChannelNotificationSettingsUpdate({guildId: env0_0,
channelId: a0, change: require.channel_overrides[a0], previous: env0_4.get(a0), label: importDefault,
location: importAll});
}
function _fun52251(a0) { // fn#52251, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:1897, offset: 0x01323c96, size: 106 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(6610) /* metro dependency 6610: NotificationSettingsUtils */;
const trackChannelNotificationSettingsUpdate = value.trackChannelNotificationSettingsUpdate;
const object2 = {};
object2.guildId = env0_0;
object2.channelId = a0;
object2.change = require[a0];
object2.previous = env0_4.get(a0);
object2.label = importDefault;
object2.location = importAll;
return Reflect.apply(trackChannelNotificationSettingsUpdate, value, [object2]);
}
function* _fun52256() { // fn#52256, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2792, offset: 0x01323ee8, size: 219 bytes, params: 1, frame: 20 function* _fun52256() { // fn#52256, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6791:2792, offset: 0x01323ee8, size: 219 bytes, params: 1, frame: 20
if (true) { if (true) {
value = environment.__proto__.__proto__; value = environment.__proto__.__proto__;
@@ -171,3 +172,9 @@ function* _fun52256() { // fn#52256, original name: ?anon_0_, source: /ci/build/
} }
} }
}
}
global.__d(_fun52243, 6613, [5, 4864, 661, 3796, 670, 694, 6610, 6612, 21, 4002, 1244, 1391, 507,
2]) /* metro module 6613, dependencies: [5, 4864, 661, 3796, 670, 694, 6610, 6612, 21, 4002, 1244, 1391, 507, 2] */;
+14 -11
View File
@@ -1,17 +1,17 @@
/* Metro module 15271; source: actions/PermissionActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 15271; source: actions/PermissionActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun116770(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:6, offset: 0x024963b6, size: 174 bytes, params: 8, frame: 17 function _fun116770(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:6, offset: 0x024963b6, size: 174 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {clearVADWarning: clearVADWarning, clearSuppressWarning: clearSuppressWarning, object = {clearVADWarning: clearVADWarning, clearSuppressWarning: clearSuppressWarning,
clearPTTAdminWarning: clearPTTAdminWarning, requestElevatedProcess: requestElevatedProcess, clearPTTAdminWarning: clearPTTAdminWarning, requestElevatedProcess: requestElevatedProcess,
clearElevatedProcess: clearElevatedProcess, continueNonelevatedProcess: continueNonelevatedProcess}; clearElevatedProcess: clearElevatedProcess, continueNonelevatedProcess: continueNonelevatedProcess};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/PermissionActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/PermissionActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function clearVADWarning() { // fn#116771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:99, offset: 0x02496464, size: 48 bytes, params: 1, frame: 13 function clearVADWarning() { // fn#116771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:99, offset: 0x02496464, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PERMISSION_CLEAR_VAD_WARNING'}); (Dispatcher).dispatch({type: 'PERMISSION_CLEAR_VAD_WARNING'});
} }
function clearSuppressWarning() { // fn#116772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:174, offset: 0x02496494, size: 62 bytes, params: 1, frame: 14 function clearSuppressWarning() { // fn#116772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:174, offset: 0x02496494, size: 62 bytes, params: 1, frame: 14
@@ -22,20 +22,23 @@ function clearSuppressWarning() { // fn#116772, source: /ci/build/discord/discor
} }
function clearPTTAdminWarning() { // fn#116773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:273, offset: 0x024964d2, size: 48 bytes, params: 1, frame: 13 function clearPTTAdminWarning() { // fn#116773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:273, offset: 0x024964d2, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PERMISSION_CLEAR_PTT_ADMIN_WARNING'}); (Dispatcher).dispatch({type: 'PERMISSION_CLEAR_PTT_ADMIN_WARNING'});
} }
function requestElevatedProcess(a0) { // fn#116774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:359, offset: 0x02496502, size: 56 bytes, params: 2, frame: 13 function requestElevatedProcess(a0) { // fn#116774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:359, offset: 0x02496502, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PERMISSION_REQUEST_ELEVATED_PROCESS', (Dispatcher).dispatch({type: 'PERMISSION_REQUEST_ELEVATED_PROCESS',
pid: a0}); pid: a0});
} }
function clearElevatedProcess() { // fn#116775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:455, offset: 0x0249653a, size: 48 bytes, params: 1, frame: 13 function clearElevatedProcess() { // fn#116775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:455, offset: 0x0249653a, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PERMISSION_CLEAR_ELEVATED_PROCESS'}); (Dispatcher).dispatch({type: 'PERMISSION_CLEAR_ELEVATED_PROCESS'});
} }
function continueNonelevatedProcess(a0) { // fn#116776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:540, offset: 0x0249656a, size: 56 bytes, params: 2, frame: 13 function continueNonelevatedProcess(a0) { // fn#116776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15468:540, offset: 0x0249656a, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PERMISSION_CONTINUE_NONELEVATED_PROCESS', (Dispatcher).dispatch({type: 'PERMISSION_CONTINUE_NONELEVATED_PROCESS',
pid: a0}); pid: a0});
} }
}
global.__d(_fun116770, 15271, [694, 2]) /* metro module 15271, dependencies: [694, 2] */;
@@ -1,12 +1,13 @@
/* Metro module 15002; source: actions/PruneGuildModalActionCreators.tsx; dependencies: [5, 661, 507, 2] */ /* Metro module 15002; source: actions/PruneGuildModalActionCreators.tsx; dependencies: [5, 661, 507, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun113403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:6, offset: 0x023f74d2, size: 169 bytes, params: 8, frame: 18 function _fun113403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:6, offset: 0x023f74d2, size: 169 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */; object = {updateEstimate: updateEstimate_113404, updateEstimateV2: updateEstimateV2, prune: function(a0, a1, a2) {
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
object2 = {updateEstimate: updateEstimate_113404, updateEstimateV2: updateEstimateV2, prune: function(a0, a1, a2) {
var HTTP = require(dependencyMap[2]).HTTP; var HTTP = require(dependencyMap[2]).HTTP;
var object = {}; var object = {};
object.url = Endpoints.GUILD_PRUNE(a0); object.url = Endpoints.GUILD_PRUNE(a0);
@@ -15,24 +16,13 @@ function _fun113403(global, require, importDefault, importAll, module, exports,
object.rejectWithError = false; object.rejectWithError = false;
return HTTP.post(object); return HTTP.post(object);
}}; }};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/PruneGuildModalActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/PruneGuildModalActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function updateEstimate_113404(a0) { // fn#113404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:144, offset: 0x023f757b, size: 57 bytes, params: 2, frame: 12 function updateEstimate_113404(a0) { // fn#113404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:144, offset: 0x023f757b, size: 57 bytes, params: 2, frame: 12
const value = a1; const value = a1;
const env0_0 = a0; const env0_0 = a0;
const env0_1 = value !== undefined ? value : 7; const env0_1 = value !== undefined ? value : 7;
return a2(_fun113406)(); return a2(_fun113406)();
}
function updateEstimateV2(a0) { // fn#113407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:326, offset: 0x023f7653, size: 57 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 7;
return a2(_fun113409)();
}
function* _fun113406() { // fn#113406, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:158, offset: 0x023f75bf, size: 148 bytes, params: 1, frame: 16 function* _fun113406() { // fn#113406, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:158, offset: 0x023f75bf, size: 148 bytes, params: 1, frame: 16
if (false) { if (false) {
return undefined; return undefined;
@@ -53,6 +43,13 @@ function* _fun113406() { // fn#113406, original name: ?anon_0_, source: /ci/buil
return value.body.pruned; return value.body.pruned;
} }
}
function updateEstimateV2(a0) { // fn#113407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:326, offset: 0x023f7653, size: 57 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 7;
return a2(_fun113409)();
function* _fun113409() { // fn#113409, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:340, offset: 0x023f7697, size: 135 bytes, params: 1, frame: 17 function* _fun113409() { // fn#113409, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15199:340, offset: 0x023f7697, size: 135 bytes, params: 1, frame: 17
if (true) { if (true) {
value = environment.__proto__.__proto__; value = environment.__proto__.__proto__;
@@ -67,3 +64,8 @@ function* _fun113409() { // fn#113409, original name: ?anon_0_, source: /ci/buil
} }
} }
}
}
global.__d(_fun113403, 15002, [5, 661, 507, 2]) /* metro module 15002, dependencies: [5, 661, 507, 2] */;
+22 -15
View File
@@ -1,9 +1,14 @@
/* Metro module 10866; source: actions/RTCDebugActionCreators.tsx; dependencies: [10865, 694, 8903, 3767, 2] */ /* Metro module 10866; source: actions/RTCDebugActionCreators.tsx; dependencies: [10865, 694, 8903, 3767, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import DiscordNative from '../lib/DiscordNative.tsx'; /* Metro dependency 3767 */
import TrackVoiceAndVideoSettingsUpdate from '../modules/user_settings/voice/trackVoiceAndVideoSettingsUpdate.tsx'; /* Metro dependency 8903 */
import RTCDebugStore from '../stores/RTCDebugStore.tsx'; /* Metro dependency 10865 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun83272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:6, offset: 0x01f13061, size: 194 bytes, params: 8, frame: 18 function _fun83272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:6, offset: 0x01f13061, size: 194 bytes, params: 8, frame: 18
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const rtcDebugStore = importDefault(10865) /* metro dependency 10865: RTCDebugStore */; (FileImportTrackerModule).fileFinishedImporting('actions/RTCDebugActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/RTCDebugActionCreators.tsx');
exports.open = open_83273; exports.open = open_83273;
exports.close = close_83274; exports.close = close_83274;
exports.openReplay = openReplay; exports.openReplay = openReplay;
@@ -11,43 +16,39 @@ function _fun83272(global, require, importDefault, importAll, module, exports, d
exports.setShouldRecordNextConnection = setShouldRecordNextConnection; exports.setShouldRecordNextConnection = setShouldRecordNextConnection;
exports.setSimulcastDebugOverride = setSimulcastDebugOverride; exports.setSimulcastDebugOverride = setSimulcastDebugOverride;
exports.chooseReplayPath = chooseReplayPath; exports.chooseReplayPath = chooseReplayPath;
}
function open_83273(a0) { // fn#83273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:181, offset: 0x01f13123, size: 88 bytes, params: 2, frame: 16 function open_83273(a0) { // fn#83273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:181, offset: 0x01f13123, size: 88 bytes, params: 2, frame: 16
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_MODAL_OPEN', section: a0}); (Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_OPEN', section: a0});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_POPOUT_WINDOW_OPEN'}); (Dispatcher).dispatch({type: 'RTC_DEBUG_POPOUT_WINDOW_OPEN'});
} }
function close_83274() { // fn#83274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:321, offset: 0x01f1317b, size: 49 bytes, params: 1, frame: 13 function close_83274() { // fn#83274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:321, offset: 0x01f1317b, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_MODAL_CLOSE'}); (Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_CLOSE'});
} }
function openReplay() { // fn#83275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:401, offset: 0x01f131ac, size: 49 bytes, params: 1, frame: 13 function openReplay() { // fn#83275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:401, offset: 0x01f131ac, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY'}); (Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY'});
} }
function setSection_83276(a0) { // fn#83276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:492, offset: 0x01f131dd, size: 57 bytes, params: 2, frame: 13 function setSection_83276(a0) { // fn#83276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:492, offset: 0x01f131dd, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_MODAL_SET_SECTION', (Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_SET_SECTION',
section: a0}); section: a0});
} }
function setShouldRecordNextConnection(a0) { // fn#83277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:613, offset: 0x01f13216, size: 95 bytes, params: 2, frame: 17 function setShouldRecordNextConnection(a0) { // fn#83277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:613, offset: 0x01f13216, size: 95 bytes, params: 2, frame: 17
(importDefault(8903) /* metro dependency 8903: trackVoiceAndVideoSettingsUpdate */)('connection_replay_log_enabled', (TrackVoiceAndVideoSettingsUpdate)('connection_replay_log_enabled',
a0, RTCDebugStore.shouldRecordNextConnection()); a0, RTCDebugStore.shouldRecordNextConnection());
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_SET_RECORDING_FLAG', (Dispatcher).dispatch({type: 'RTC_DEBUG_SET_RECORDING_FLAG',
value: a0}); value: a0});
} }
function setSimulcastDebugOverride(a0, a1, a2) { // fn#83278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:822, offset: 0x01f13275, size: 69 bytes, params: 4, frame: 13 function setSimulcastDebugOverride(a0, a1, a2) { // fn#83278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:822, offset: 0x01f13275, size: 69 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_DEBUG_SET_SIMULCAST_OVERRIDE', (Dispatcher).dispatch({type: 'RTC_DEBUG_SET_SIMULCAST_OVERRIDE',
userId: a0, context: a1, quality: a2}); userId: a0, context: a1, quality: a2});
} }
function chooseReplayPath() { // fn#83279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:973, offset: 0x01f132ba, size: 105 bytes, params: 1, frame: 14 function chooseReplayPath() { // fn#83279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:973, offset: 0x01f132ba, size: 105 bytes, params: 1, frame: 14
const fileManager = (importDefault(3767) /* metro dependency 3767: DiscordNative */).fileManager; const fileManager = (DiscordNative).fileManager;
fileManager.showOpenDialog({filters: [{name: 'All Files', extensions: ['*']}]}).then(_fun83280); fileManager.showOpenDialog({filters: [{name: 'All Files', extensions: ['*']}]}).then(_fun83280);
}
function _fun83280(a0) { // fn#83280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:1091, offset: 0x01f13323, size: 76 bytes, params: 2, frame: 14 function _fun83280(a0) { // fn#83280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:1091, offset: 0x01f13323, size: 76 bytes, params: 2, frame: 14
const r4 = a0.length === 0 ? '' : a0[0]; const r4 = a0.length === 0 ? '' : a0[0];
value = environment.__proto__; value = environment.__proto__;
@@ -55,3 +56,9 @@ function _fun83280(a0) { // fn#83280, source: /ci/build/discord/discord/discord_
value.dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH', path: r4}); value.dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH', path: r4});
} }
}
}
global.__d(_fun83272, 10866, [10865, 694, 8903, 3767,
2]) /* metro module 10866, dependencies: [10865, 694, 8903, 3767, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 15819; source: actions/RTCLatencyTestActionCreators.tsx; dependencies: [507, 694, 2] */ /* Metro module 15819; source: actions/RTCLatencyTestActionCreators.tsx; dependencies: [507, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun121579(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16027:6, offset: 0x0254b526, size: 116 bytes, params: 8, frame: 18 function _fun121579(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16027:6, offset: 0x0254b526, size: 116 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/RTCLatencyTestActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/RTCLatencyTestActionCreators.tsx');
exports.fetchRTCLatencyTestRegions = function(a0) { exports.fetchRTCLatencyTestRegions = function(a0) {
var HTTP = require(dependencyMap[0]).HTTP; var HTTP = require(dependencyMap[0]).HTTP;
var RTC_LATENCY_ENDPOINT = global.window.GLOBAL_ENV.RTC_LATENCY_ENDPOINT; var RTC_LATENCY_ENDPOINT = global.window.GLOBAL_ENV.RTC_LATENCY_ENDPOINT;
return HTTP.get({url: '' + 'https:' + RTC_LATENCY_ENDPOINT + '?v=' + a0, rejectWithError: false}); return HTTP.get({url: '' + 'https:' + RTC_LATENCY_ENDPOINT + '?v=' + a0, rejectWithError: false});
}; };
exports.completeRTCLatencyTest = completeRTCLatencyTest; exports.completeRTCLatencyTest = completeRTCLatencyTest;
}
function completeRTCLatencyTest(a0, a1) { // fn#121581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16027:405, offset: 0x0254b603, size: 65 bytes, params: 3, frame: 13 function completeRTCLatencyTest(a0, a1) { // fn#121581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16027:405, offset: 0x0254b603, size: 65 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_LATENCY_TEST_COMPLETE', (Dispatcher).dispatch({type: 'RTC_LATENCY_TEST_COMPLETE',
latencyRankedRegions: a0, geoRankedRegions: a1}); latencyRankedRegions: a0, geoRankedRegions: a1});
} }
}
global.__d(_fun121579, 15819, [507, 694, 2]) /* metro module 15819, dependencies: [507, 694, 2] */;
+49 -32
View File
@@ -1,4 +1,13 @@
/* Metro module 5097; source: actions/ReadStateActionCreators.tsx; dependencies: [5071, 1383, 1379, 5098, 1878, 661, 694, 21, 2] */ /* Metro module 5097; source: actions/ReadStateActionCreators.tsx; dependencies: [5071, 1383, 1379, 5098, 1878, 661, 694, 21, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import ActiveJoinedThreadsStore from '../modules/threads/ActiveJoinedThreadsStore.tsx'; /* Metro dependency 5071 */
import GuildCategoryStore from '../stores/GuildCategoryStore.tsx'; /* Metro dependency 5098 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ChannelRecordModule from '../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
function _fun44475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:6, offset: 0x01171b97, size: 337 bytes, params: 8, frame: 21 function _fun44475(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:6, offset: 0x01171b97, size: 337 bytes, params: 8, frame: 21
const _arrayLikeToArray_44478 = function(a0, a1) { const _arrayLikeToArray_44478 = function(a0, a1) {
var r0; var r0;
@@ -43,19 +52,13 @@ function _fun44475(global, require, importDefault, importAll, module, exports, d
} }
return value; return value;
}; };
const closure = ack; const ack2 = ack;
const closure2 = ackCategory; const ackCategory2 = ackCategory;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const activeJoinedThreadsStore = importDefault(5071) /* metro dependency 5071: ActiveJoinedThreadsStore */; (FileImportTrackerModule).fileFinishedImporting('actions/ReadStateActionCreators.tsx');
const env0_3 = (require(1383) /* metro dependency 1383: ChannelRecord */).isReadableType; exports.ack = ack2;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; exports.ackCategory = ackCategory2;
const guildCategoryStore = importDefault(5098) /* metro dependency 5098: GuildCategoryStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).CURRENT_APP_CONTEXT;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ReadStateActionCreators.tsx');
exports.ack = closure;
exports.ackCategory = closure2;
exports.ackChannel = ackChannel; exports.ackChannel = ackChannel;
exports.bulkAck = function(a0, a1) { exports.bulkAck = function(a0, a1) {
importDefault(dependencyMap[6]).dispatch({type: 'BULK_ACK', channels: a0, context: CURRENT_APP_CONTEXT, importDefault(dependencyMap[6]).dispatch({type: 'BULK_ACK', channels: a0, context: CURRENT_APP_CONTEXT,
@@ -67,8 +70,6 @@ function _fun44475(global, require, importDefault, importAll, module, exports, d
exports.ackGuildFeature = ackGuildFeature; exports.ackGuildFeature = ackGuildFeature;
exports.ackUserFeature = ackUserFeature; exports.ackUserFeature = ackUserFeature;
exports.clearOldestUnreadMessageId = clearOldestUnreadMessageId_44491; exports.clearOldestUnreadMessageId = clearOldestUnreadMessageId_44491;
}
function _createForOfIteratorHelperLoose_44476(a0, a1) { // fn#44476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:197, offset: 0x01171ce8, size: 370 bytes, params: 3, frame: 20 function _createForOfIteratorHelperLoose_44476(a0, a1) { // fn#44476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:197, offset: 0x01171ce8, size: 370 bytes, params: 3, frame: 20
var r6; var r6;
var r9; var r9;
@@ -127,6 +128,11 @@ function _createForOfIteratorHelperLoose_44476(a0, a1) { // fn#44476, source: /c
} }
const TypeError = global.TypeError; const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun44477() { // fn#44477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:768, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
} }
function ack(a0, a1) { // fn#44479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1107, offset: 0x01171e5a, size: 104 bytes, params: 3, frame: 16 function ack(a0, a1) { // fn#44479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1107, offset: 0x01171e5a, size: 104 bytes, params: 3, frame: 16
@@ -142,6 +148,7 @@ function ackCategory(a0, a1) { // fn#44480, source: /ci/build/discord/discord/di
var r5; var r5;
var r2; var r2;
var guild_id; var guild_id;
var guildCategoryStoreBinding;
var getCategories; var getCategories;
var value4; var value4;
var property; var property;
@@ -186,9 +193,10 @@ function ackCategory(a0, a1) { // fn#44480, source: /ci/build/discord/discord/di
if (guild_id == null) { if (guild_id == null) {
break reducibleJoin9; break reducibleJoin9;
} }
getCategories = GuildCategoryStore.getCategories; guildCategoryStoreBinding = GuildCategoryStore;
getCategories = guildCategoryStoreBinding.getCategories;
guild_id = channel.guild_id; guild_id = channel.guild_id;
value4 = Reflect.apply(getCategories, GuildCategoryStore, [guild_id]); value4 = Reflect.apply(getCategories, guildCategoryStoreBinding, [guild_id]);
if (value4[a0] == null) { if (value4[a0] == null) {
break reducibleJoin9; break reducibleJoin9;
} }
@@ -222,6 +230,21 @@ function ackCategory(a0, a1) { // fn#44480, source: /ci/build/discord/discord/di
continue reducibleLoop8; continue reducibleLoop8;
} }
} }
function _fun44483({channel}) { // fn#44483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1466, offset: 0x01171fbc, size: 101 bytes, params: 2, frame: 18
var propertyName;
var binding;
let guild_id = channel.guild_id;
guild_id = guild_id ?? env0_0.guild_id;
const value = environment.__proto__;
const activeJoinedThreadsStoreBinding = ActiveJoinedThreadsStore;
const getActiveJoinedThreadsForParent = activeJoinedThreadsStoreBinding.getActiveJoinedThreadsForParent;
for (propertyName in Reflect.apply(getActiveJoinedThreadsForParent, activeJoinedThreadsStoreBinding, [guild_id,
channel.id])) {
binding = env0_1;
binding.push(propertyName);
}
}
} }
function ackChannel(a0, a1) { // fn#44484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1803, offset: 0x01172021, size: 156 bytes, params: 3, frame: 22 function ackChannel(a0, a1) { // fn#44484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1803, offset: 0x01172021, size: 156 bytes, params: 3, frame: 22
@@ -249,21 +272,21 @@ function ackChannel(a0, a1) { // fn#44484, source: /ci/build/discord/discord/dis
} }
function localAck(a0) { // fn#44486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2079, offset: 0x01172104, size: 54 bytes, params: 2, frame: 13 function localAck(a0) { // fn#44486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2079, offset: 0x01172104, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_LOCAL_ACK', channelId: a0}); (Dispatcher).dispatch({type: 'CHANNEL_LOCAL_ACK', channelId: a0});
} }
function enableAutomaticAck(a0, a1) { // fn#44487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2180, offset: 0x0117213a, size: 62 bytes, params: 3, frame: 13 function enableAutomaticAck(a0, a1) { // fn#44487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2180, offset: 0x0117213a, size: 62 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ENABLE_AUTOMATIC_ACK', channelId: a0, (Dispatcher).dispatch({type: 'ENABLE_AUTOMATIC_ACK', channelId: a0,
windowId: a1}); windowId: a1});
} }
function disableAutomaticAck(a0, a1) { // fn#44488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2308, offset: 0x01172178, size: 62 bytes, params: 3, frame: 13 function disableAutomaticAck(a0, a1) { // fn#44488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2308, offset: 0x01172178, size: 62 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISABLE_AUTOMATIC_ACK', channelId: a0, (Dispatcher).dispatch({type: 'DISABLE_AUTOMATIC_ACK', channelId: a0,
windowId: a1}); windowId: a1});
} }
function ackGuildFeature(a0, a1, a2) { // fn#44489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2434, offset: 0x011721b6, size: 77 bytes, params: 4, frame: 13 function ackGuildFeature(a0, a1, a2) { // fn#44489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2434, offset: 0x011721b6, size: 77 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_FEATURE_ACK', id: a0, (Dispatcher).dispatch({type: 'GUILD_FEATURE_ACK', id: a0,
ackType: a1, ackedId: a2, local: false}); ackType: a1, ackedId: a2, local: false});
} }
@@ -278,21 +301,15 @@ function ackUserFeature(a0, a1) { // fn#44490, source: /ci/build/discord/discord
} }
function clearOldestUnreadMessageId_44491(a0) { // fn#44491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2757, offset: 0x0117226a, size: 56 bytes, params: 2, frame: 13 function clearOldestUnreadMessageId_44491(a0) { // fn#44491, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:2757, offset: 0x0117226a, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_OLDEST_UNREAD_MESSAGE', (Dispatcher).dispatch({type: 'CLEAR_OLDEST_UNREAD_MESSAGE',
channelId: a0}); channelId: a0});
} }
function _fun44483({channel}) { // fn#44483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1466, offset: 0x01171fbc, size: 101 bytes, params: 2, frame: 18
var propertyName;
var binding;
let guild_id = channel.guild_id;
guild_id = guild_id ?? env0_0.guild_id;
const value = environment.__proto__;
const getActiveJoinedThreadsForParent = ActiveJoinedThreadsStore.getActiveJoinedThreadsForParent;
for (propertyName in Reflect.apply(getActiveJoinedThreadsForParent, ActiveJoinedThreadsStore, [guild_id,
channel.id])) {
binding = env0_1;
binding.push(propertyName);
}
} }
function _fun44482({channel}) { // fn#44482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5275:1433, offset: 0x00ef0e66, size: 15 bytes, params: 2, frame: 1
return channel.id;
}
global.__d(_fun44475, 5097, [5071, 1383, 1379, 5098, 1878, 661, 694, 21,
2]) /* metro module 5097, dependencies: [5071, 1383, 1379, 5098, 1878, 661, 694, 21, 2] */;
+19 -15
View File
@@ -1,11 +1,14 @@
/* Metro module 15176; source: actions/RegionActionCreators.tsx; dependencies: [661, 507, 694, 2] */ /* Metro module 15176; source: actions/RegionActionCreators.tsx; dependencies: [661, 507, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun115947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:6, offset: 0x024758ca, size: 145 bytes, params: 8, frame: 18 function _fun115947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:6, offset: 0x024758ca, size: 145 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; object = {fetchRegions: fetchRegions, changeCallRegion: function(a0, a1) {
object2 = {fetchRegions: fetchRegions, changeCallRegion: function(a0, a1) {
var HTTP = require(dependencyMap[1]).HTTP; var HTTP = require(dependencyMap[1]).HTTP;
var object = {}; var object = {};
object.url = Endpoints.CALL(a0); object.url = Endpoints.CALL(a0);
@@ -14,28 +17,29 @@ function _fun115947(global, require, importDefault, importAll, module, exports,
object.rejectWithError = true; object.rejectWithError = true;
HTTP.patch(object); HTTP.patch(object);
}}; }};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/RegionActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/RegionActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function fetchRegions(a0) { // fn#115948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:119, offset: 0x0247595b, size: 111 bytes, params: 2, frame: 17 function fetchRegions(a0) { // fn#115948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:119, offset: 0x0247595b, size: 111 bytes, params: 2, frame: 17
const env0_0 = a0; const env0_0 = a0;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object2 = {'url': null, 'retries': 1, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'retries': 1, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.REGIONS(a0); object.url = Endpoints.REGIONS(a0);
Reflect.apply(get, HTTP, [object2]).then(_fun115949, _fun115950); Reflect.apply(get, HTTP, [object]).then(_fun115949, _fun115950);
}
function _fun115949({body}) { // fn#115949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:224, offset: 0x024759ca, size: 73 bytes, params: 2, frame: 12 function _fun115949({body}) { // fn#115949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:224, offset: 0x024759ca, size: 73 bytes, params: 2, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_REGIONS', regions: body, return (Dispatcher).dispatch({type: 'LOAD_REGIONS', regions: body,
guildId: env0_0}); guildId: env0_0});
} }
function _fun115950() { // fn#115950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:294, offset: 0x02475a13, size: 69 bytes, params: 1, frame: 12 function _fun115950() { // fn#115950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15373:294, offset: 0x02475a13, size: 69 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_REGIONS', regions: [], return (Dispatcher).dispatch({type: 'LOAD_REGIONS', regions: [],
guildId: env0_0}); guildId: env0_0});
} }
}
}
global.__d(_fun115947, 15176, [661, 507, 694, 2]) /* metro module 15176, dependencies: [661, 507, 694, 2] */;
+181 -166
View File
@@ -1,21 +1,28 @@
/* Metro module 8783; source: actions/RelationshipActionCreators.tsx; dependencies: [57, 1878, 661, 8784, 6722, 4647, 6595, 1244, 8785, 8786, 8787, 507, 3995, 4002, 694, 8789, 6264, 2] */ /* Metro module 8783; source: actions/RelationshipActionCreators.tsx; dependencies: [57, 1878, 661, 8784, 6722, 4647, 6595, 1244, 8785, 8786, 8787, 507, 3995, 4002, 694, 8789, 6264, 2] */
import Module00057 from '../by-id/module-00057.js'; /* Metro dependency 57 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import AlertActionCreators from './AlertActionCreators.tsx'; /* Metro dependency 4647 */
import SafetyToastsActionCreatorsNative from '../modules/safety_common/SafetyToastsActionCreators.native.tsx'; /* Metro dependency 6264 */
import ClearAllIncomingRequestsConfirmationModal from '../modules/people/ClearAllIncomingRequestsConfirmationModal.tsx'; /* Metro dependency 8789 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as SharedModule from '../design/shared.tsx'; /* Metro dependency 4002 */
import * as ContextMenuActionCreatorsModule from './ContextMenuActionCreators.tsx'; /* Metro dependency 6722 */
import * as RelationshipConstantsModule from '../modules/relationships/RelationshipConstants.tsx'; /* Metro dependency 8784 */
import * as ClaimAccountModalActionCreatorsNativeModule from '../modules/claim_account/ClaimAccountModalActionCreators.native.tsx'; /* Metro dependency 8785 */
function _fun68665(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:6, offset: 0x01c586a1, size: 452 bytes, params: 8, frame: 19 function _fun68665(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:6, offset: 0x01c586a1, size: 452 bytes, params: 8, frame: 19
var object3;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(57) /* metro dependency 57 */; object = {SHOW_ALWAYS: 0};
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; object[0] = 'SHOW_ALWAYS';
const constantsModule = require(661) /* metro dependency 661: Constants */; object.SHOW_ONLY_IF_ACTION_NEEDED = 1;
const env0_6 = constantsModule.Endpoints; object[1] = 'SHOW_ONLY_IF_ACTION_NEEDED';
const env0_7 = constantsModule.AbortCodes; const object2 = {sendRequest: sendRequest_68669, addRelationship: addRelationship,
const env0_8 = constantsModule.RelationshipTypes;
const env0_9 = (require(8784) /* metro dependency 8784: RelationshipConstants */).ClearFriendRequestFilters;
object3 = {SHOW_ALWAYS: 0};
object3[0] = 'SHOW_ALWAYS';
object3.SHOW_ONLY_IF_ACTION_NEEDED = 1;
object3[1] = 'SHOW_ONLY_IF_ACTION_NEEDED';
const object4 = {sendRequest: sendRequest_68669, addRelationship: addRelationship,
acceptFriendRequest: acceptFriendRequest, cancelFriendRequest: cancelFriendRequest, removeFriend: removeFriend, acceptFriendRequest: acceptFriendRequest, cancelFriendRequest: cancelFriendRequest, removeFriend: removeFriend,
blockUser: blockUser, unblockUser: unblockUser, removeRelationship: removeRelationship_68684, blockUser: blockUser, unblockUser: unblockUser, removeRelationship: removeRelationship_68684,
updateRelationship: function(a0, a1) { updateRelationship: function(a0, a1) {
@@ -28,36 +35,34 @@ function _fun68665(global, require, importDefault, importAll, module, exports, d
}, fetchRelationships: fetchRelationships, confirmClearPendingRelationships: confirmClearPendingRelationships, }, fetchRelationships: fetchRelationships, confirmClearPendingRelationships: confirmClearPendingRelationships,
clearPendingRelationships: clearPendingRelationships, clearPendingSpamAndIgnored: clearPendingSpamAndIgnored, clearPendingRelationships: clearPendingRelationships, clearPendingSpamAndIgnored: clearPendingSpamAndIgnored,
ignoreUser: ignoreUser, unignoreUser: unignoreUser}; ignoreUser: ignoreUser, unignoreUser: unignoreUser};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/RelationshipActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/RelationshipActionCreators.tsx');
exports.default = object4; exports.default = object2;
exports.RelationshipErrorUXConfig = object3; exports.RelationshipErrorUXConfig = object;
}
function showAlert(a0) { // fn#68666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:213, offset: 0x01c58865, size: 67 bytes, params: 2, frame: 13 function showAlert(a0) { // fn#68666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:213, offset: 0x01c58865, size: 67 bytes, params: 2, frame: 13
(require(6722) /* metro dependency 6722: ContextMenuActionCreators */).closeContextMenu(); (ContextMenuActionCreatorsModule).closeContextMenu();
(importDefault(4647) /* metro dependency 4647: AlertActionCreators */).show(a0); (AlertActionCreators).show(a0);
} }
function handleRelationshipAddError(a0, a1, a2) { // fn#68667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:406, offset: 0x01c588a8, size: 843 bytes, params: 4, frame: 23 function handleRelationshipAddError(a0, a1, a2) { // fn#68667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:406, offset: 0x01c588a8, size: 843 bytes, params: 4, frame: 23
var r8; var r8;
var moduleValue; var moduleValue;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
var moduleValue2; var moduleValue2;
var humanizeAbortCode; var humanizeAbortCode;
var showAlertBinding; var showAlertBinding;
var object2; var object;
const status = a0.status; const status = a0.status;
const body = a0.body; const body = a0.body;
let r4 = body && body.code; let r4 = body && body.code;
if (status === 429) { if (status === 429) {
if (a1 === env0_10.SHOW_ALWAYS) { if (a1 === env0_10.SHOW_ALWAYS) {
showAlertBinding = showAlert; showAlertBinding = showAlert;
object2 = {}; object = {};
object2.title = intl.string(t['3D5eox']); object.title = intl.string(t['3D5eox']);
object2.body = intl.string(t.TuJriJ); object.body = intl.string(t.TuJriJ);
object2.confirmText = intl.string(t.DppXIx); object.confirmText = intl.string(t.DppXIx);
showAlertBinding(object2); showAlertBinding(object);
} }
} else if (status !== 403) { } else if (status !== 403) {
if (r4 === AbortCodes.USER_QUARANTINED) { if (r4 === AbortCodes.USER_QUARANTINED) {
@@ -77,23 +82,23 @@ function handleRelationshipAddError(a0, a1, a2) { // fn#68667, source: /ci/build
r8 = intl.string(t.paDJBM); r8 = intl.string(t.paDJBM);
} }
showAlertBinding = showAlert; showAlertBinding = showAlert;
object2 = {}; object = {};
object2.title = intl.string(t['6moJ8s']); object.title = intl.string(t['6moJ8s']);
object2.body = r8; object.body = r8;
object2.confirmText = intl.string(t.BddRzS); object.confirmText = intl.string(t.BddRzS);
showAlertBinding(object2); showAlertBinding(object);
} }
} }
} }
} }
} else if (r4 === AbortCodes.EMAIL_VERIFICATION_REQUIRED) { } else if (r4 === AbortCodes.EMAIL_VERIFICATION_REQUIRED) {
showAlertBinding = showAlert; showAlertBinding = showAlert;
object2 = {}; object = {};
object2.title = intl.string(t.Gqf33E); object.title = intl.string(t.Gqf33E);
object2.body = intl.string(t.GHOBdx); object.body = intl.string(t.GHOBdx);
object2.confirmText = intl.string(t.HbTSE6); object.confirmText = intl.string(t.HbTSE6);
object2.onConfirm = onConfirm; object.onConfirm = onConfirm_68668;
showAlertBinding(object2); showAlertBinding(object);
} else if (r4 === AbortCodes.USER_QUARANTINED) { } else if (r4 === AbortCodes.USER_QUARANTINED) {
(require(6722) /* metro dependency 6722: ContextMenuActionCreators */).closeContextMenu(); (require(6722) /* metro dependency 6722: ContextMenuActionCreators */).closeContextMenu();
(importDefault(6595) /* metro dependency 6595: openQuarantineModeInfoModalNative */)(); (importDefault(6595) /* metro dependency 6595: openQuarantineModeInfoModalNative */)();
@@ -111,36 +116,45 @@ function handleRelationshipAddError(a0, a1, a2) { // fn#68667, source: /ci/build
r8 = intl.string(t.paDJBM); r8 = intl.string(t.paDJBM);
} }
showAlertBinding = showAlert; showAlertBinding = showAlert;
object2 = {}; object = {};
object2.title = intl.string(t['6moJ8s']); object.title = intl.string(t['6moJ8s']);
object2.body = r8; object.body = r8;
object2.confirmText = intl.string(t.BddRzS); object.confirmText = intl.string(t.BddRzS);
showAlertBinding(object2); showAlertBinding(object);
} }
} }
} }
} }
throw a0; throw a0;
function handleRelationshipAddErrorOnConfirm() { // fn#68668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:887, owner: handleRelationshipAddError.onConfirm, offset: 0x01c58bf3, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ClaimAccountModalActionCreatorsNativeModule).openClaimAccountModal();
}
} }
function sendRequest_68669({discordTag, context, captchaPayload, note, errorUxConfig = env0_10.SHOW_ALWAYS}) { // fn#68669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1386, offset: 0x01c58c18, size: 241 bytes, params: 2, frame: 21 function sendRequest_68669({discordTag, context, captchaPayload, note, errorUxConfig = env0_10.SHOW_ALWAYS}) { // fn#68669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1386, offset: 0x01c58c18, size: 241 bytes, params: 2, frame: 21
let value = discordTag.split('#'); let value = discordTag.split('#');
value = env0_4(value, 2); value = Module00057(value, 2);
const property = value[0]; const property = value[0];
const property2 = value[1]; const property2 = value[1];
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const object3 = {}; const object = {};
object3.url = Endpoints.USER_RELATIONSHIPS(); object.url = Endpoints.USER_RELATIONSHIPS();
const object4 = {username: property}; const object2 = {username: property};
object4.discriminator = global.parseInt(property2); object2.discriminator = global.parseInt(property2);
object4.note = note; object2.note = note;
copyDataProperties(object4, captchaPayload, Endpoints); copyDataProperties(object2, captchaPayload, Endpoints);
object3.body = object4; object.body = object2;
object3.context = context; object.context = context;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(post, HTTP, [object3]).catch(_fun68670); return Reflect.apply(post, HTTP, [object]).catch(_fun68670);
function _fun68670(a0) { // fn#68670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1685, offset: 0x01c58d09, size: 32 bytes, params: 2, frame: 15
handleRelationshipAddError(a0, env0_1, discordTag);
}
} }
function addRelationship({userId, context, type, fromFriendSuggestion, confirmStrangerRequest, captchaPayload}, a1) { // fn#68671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1727, offset: 0x01c58d29, size: 242 bytes, params: 3, frame: 21 function addRelationship({userId, context, type, fromFriendSuggestion, confirmStrangerRequest, captchaPayload}, a1) { // fn#68671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1727, offset: 0x01c58d29, size: 242 bytes, params: 3, frame: 21
@@ -148,24 +162,35 @@ function addRelationship({userId, context, type, fromFriendSuggestion, confirmSt
const env0_0 = a1; const env0_0 = a1;
const env0_1 = value !== undefined ? value : env0_10.SHOW_ALWAYS; const env0_1 = value !== undefined ? value : env0_10.SHOW_ALWAYS;
const env0_2 = UserStore.getUser(userId); const env0_2 = UserStore.getUser(userId);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const put = HTTP.put; const put = HTTP.put;
const object3 = {}; const object = {};
object3.url = Endpoints.USER_RELATIONSHIP(userId); object.url = Endpoints.USER_RELATIONSHIP(userId);
const object4 = {type: type, from_friend_suggestion: fromFriendSuggestion, const object2 = {type: type, from_friend_suggestion: fromFriendSuggestion,
confirm_stranger_request: confirmStrangerRequest}; confirm_stranger_request: confirmStrangerRequest};
copyDataProperties(object4, captchaPayload, userId); copyDataProperties(object2, captchaPayload, userId);
object3.body = object4; object.body = object2;
object3.context = context; object.context = context;
object3.oldFormErrors = true; object.oldFormErrors = true;
object3.rejectWithError = false; object.rejectWithError = false;
value = Reflect.apply(put, HTTP, [object3]); value = Reflect.apply(put, HTTP, [object]);
value = value.then(function() { value = value.then(function() {
if (require != null) { if (require != null) {
require(); require();
} }
}); });
return value.catch(_fun68673); return value.catch(_fun68673);
function _fun68673(a0) { // fn#68673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2080, offset: 0x01c58e1b, size: 82 bytes, params: 2, frame: 17
let value = environment.__proto__;
const handleRelationshipAddErrorBinding = handleRelationshipAddError;
const binding = env0_1;
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
const getUserTag = value.getUserTag;
handleRelationshipAddErrorBinding(a0, binding, Reflect.apply(getUserTag, value, [env0_2]));
const Promise = global.Promise;
return Promise.reject(a0);
}
} }
function acceptFriendRequest(a0) { // fn#68674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2181, offset: 0x01c58e6d, size: 33 bytes, params: 2, frame: 13 function acceptFriendRequest(a0) { // fn#68674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2181, offset: 0x01c58e6d, size: 33 bytes, params: 2, frame: 13
@@ -208,14 +233,14 @@ function unblockUser(a0, a1) { // fn#68682, source: /ci/build/discord/discord/di
function removeRelationship_68684(a0, a1, a2) { // fn#68684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2915, offset: 0x01c5910c, size: 131 bytes, params: 4, frame: 15 function removeRelationship_68684(a0, a1, a2) { // fn#68684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2915, offset: 0x01c5910c, size: 131 bytes, params: 4, frame: 15
const env0_0 = a2; const env0_0 = a2;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {}; const object = {};
object2.url = Endpoints.USER_RELATIONSHIP(a0); object.url = Endpoints.USER_RELATIONSHIP(a0);
object2.context = a1; object.context = a1;
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = false; object.rejectWithError = false;
let value = Reflect.apply(del, HTTP, [object2]); let value = Reflect.apply(del, HTTP, [object]);
value = value.then(function() { value = value.then(function() {
if (importDefault != null) { if (importDefault != null) {
importDefault(); importDefault();
@@ -228,152 +253,142 @@ function removeRelationship_68684(a0, a1, a2) { // fn#68684, source: /ci/build/d
} }
function fetchRelationships() { // fn#68688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3253, offset: 0x01c59241, size: 99 bytes, params: 1, frame: 16 function fetchRelationships() { // fn#68688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3253, offset: 0x01c59241, size: 99 bytes, params: 1, frame: 16
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.USER_RELATIONSHIPS(); object.url = Endpoints.USER_RELATIONSHIPS();
Reflect.apply(get, HTTP, [object2]).then(_fun68689, _fun68690); Reflect.apply(get, HTTP, [object]).then(_fun68689, _fun68690);
function _fun68689({body}) { // fn#68689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3364, offset: 0x01c592a4, size: 62 bytes, params: 2, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'LOAD_RELATIONSHIPS_SUCCESS',
relationships: body});
}
function _fun68690() { // fn#68690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3445, offset: 0x01c592e2, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'LOAD_RELATIONSHIPS_FAILURE'});
}
} }
function confirmClearPendingRelationships(a0) { // fn#68691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3507, offset: 0x01c59313, size: 35 bytes, params: 2, frame: 11 function confirmClearPendingRelationships(a0) { // fn#68691, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3507, offset: 0x01c59313, size: 35 bytes, params: 2, frame: 11
(importDefault(8789) /* metro dependency 8789: ClearAllIncomingRequestsConfirmationModal */)(a0); (ClearAllIncomingRequestsConfirmationModal)(a0);
} }
function clearPendingRelationships() { // fn#68692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3582, offset: 0x01c59336, size: 128 bytes, params: 1, frame: 15 function clearPendingRelationships() { // fn#68692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3582, offset: 0x01c59336, size: 128 bytes, params: 1, frame: 15
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {}; const object = {};
object2.url = Endpoints.USER_RELATIONSHIPS(); object.url = Endpoints.USER_RELATIONSHIPS();
const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING; const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
object2.query = {relationship_type: PENDING_INCOMING}; object.query = {relationship_type: PENDING_INCOMING};
object2.rejectWithError = false; object.rejectWithError = false;
let value = Reflect.apply(del, HTTP, [object2]); let value = Reflect.apply(del, HTTP, [object]);
value = value.then(_fun68693); value = value.then(_fun68693);
return value.catch(function() { return value.catch(function() {
var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer; var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E)); AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E));
}); });
function _fun68693() { // fn#68693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3704, offset: 0x01c593b6, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'RELATIONSHIP_PENDING_INCOMING_REMOVED'});
}
} }
function clearPendingSpamAndIgnored() { // fn#68695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3900, offset: 0x01c593e7, size: 167 bytes, params: 1, frame: 16 function clearPendingSpamAndIgnored() { // fn#68695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3900, offset: 0x01c593e7, size: 167 bytes, params: 1, frame: 16
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {}; const object = {};
object2.url = Endpoints.USER_RELATIONSHIPS(); object.url = Endpoints.USER_RELATIONSHIPS();
const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING; const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
object2.query = {relationship_type: PENDING_INCOMING}; object.query = {relationship_type: PENDING_INCOMING};
const SPAM = ClearFriendRequestFilters.SPAM; const SPAM = ClearFriendRequestFilters.SPAM;
const IGNORED = ClearFriendRequestFilters.IGNORED; const IGNORED = ClearFriendRequestFilters.IGNORED;
object2.body = {filters: [SPAM, IGNORED]}; object.body = {filters: [SPAM, IGNORED]};
object2.rejectWithError = false; object.rejectWithError = false;
let value = Reflect.apply(del, HTTP, [object2]); let value = Reflect.apply(del, HTTP, [object]);
value = value.then(_fun68696); value = value.then(_fun68696);
return value.catch(function() { return value.catch(function() {
var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer; var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E)); AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E));
}); });
function _fun68696() { // fn#68696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4056, offset: 0x01c593b6, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'RELATIONSHIP_PENDING_INCOMING_REMOVED'});
}
} }
function ignoreUser(a0, a1, a2) { // fn#68698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4236, offset: 0x01c5948e, size: 134 bytes, params: 4, frame: 15 function ignoreUser(a0, a1, a2) { // fn#68698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4236, offset: 0x01c5948e, size: 134 bytes, params: 4, frame: 15
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a2; const env0_1 = a2;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const put = HTTP.put; const put = HTTP.put;
const object2 = {}; const object = {};
object2.url = Endpoints.IGNORE_USER(a0); object.url = Endpoints.IGNORE_USER(a0);
object2.context = {location: a1}; object.context = {location: a1};
object2.rejectWithError = false; object.rejectWithError = false;
let value = Reflect.apply(put, HTTP, [object2]); let value = Reflect.apply(put, HTTP, [object]);
value = value.then(_fun68699); value = value.then(_fun68699);
return value.catch(function() { return value.catch(function() {
importDefault(dependencyMap[16]).showFailedToast(); importDefault(dependencyMap[16]).showFailedToast();
var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer; var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E)); AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E));
}); });
function _fun68699() { // fn#68699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4333, offset: 0x01c59514, size: 192 bytes, params: 1, frame: 19
let value = environment.__proto__;
const defaultImport = SafetyToastsActionCreatorsNative;
const showIgnoreSuccessToast = defaultImport.showIgnoreSuccessToast;
const binding = env0_0;
Reflect.apply(showIgnoreSuccessToast, defaultImport, [binding, importDefault]);
const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Us93Ca = (IndexNativeModule).t.Us93Ca;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [Us93Ca])]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object = {type: 'RELATIONSHIP_IGNORE_USER_SUCCESS', userId: binding};
const Date = global.Date;
object.timestamp = Date.now();
Reflect.apply(dispatch, value, [object]);
}
} }
function unignoreUser(a0, a1, a2) { // fn#68701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4684, offset: 0x01c59649, size: 134 bytes, params: 4, frame: 15 function unignoreUser(a0, a1, a2) { // fn#68701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4684, offset: 0x01c59649, size: 134 bytes, params: 4, frame: 15
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a2; const env0_1 = a2;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {}; const object = {};
object2.url = Endpoints.IGNORE_USER(a0); object.url = Endpoints.IGNORE_USER(a0);
object2.context = {location: a1}; object.context = {location: a1};
object2.rejectWithError = false; object.rejectWithError = false;
let value = Reflect.apply(del, HTTP, [object2]); let value = Reflect.apply(del, HTTP, [object]);
value = value.then(_fun68702); value = value.then(_fun68702);
return value.catch(function() { return value.catch(function() {
importDefault(dependencyMap[16]).showFailedToast(); importDefault(dependencyMap[16]).showFailedToast();
var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer; var AccessibilityAnnouncer = require(dependencyMap[13]).AccessibilityAnnouncer;
AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E)); AccessibilityAnnouncer.announce(require(dependencyMap[7]).intl.string(require(dependencyMap[7]).t.n6Jo3E));
}); });
}
function handleRelationshipAddErrorOnConfirm() { // fn#68668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:887, owner: handleRelationshipAddError.onConfirm, offset: 0x01c58bf3, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importAll(8785) /* metro dependency 8785: ClaimAccountModalActionCreatorsNative */).openClaimAccountModal();
}
function _fun68670(a0) { // fn#68670, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:1685, offset: 0x01c58d09, size: 32 bytes, params: 2, frame: 15
handleRelationshipAddError(a0, env0_1, discordTag);
}
function _fun68673(a0) { // fn#68673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:2080, offset: 0x01c58e1b, size: 82 bytes, params: 2, frame: 17
let value = environment.__proto__;
const handleRelationshipAddErrorBinding = handleRelationshipAddError;
const binding = env0_1;
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
const getUserTag = value.getUserTag;
handleRelationshipAddErrorBinding(a0, binding, Reflect.apply(getUserTag, value, [env0_2]));
const Promise = global.Promise;
return Promise.reject(a0);
}
function _fun68689({body}) { // fn#68689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3364, offset: 0x01c592a4, size: 62 bytes, params: 2, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_RELATIONSHIPS_SUCCESS',
relationships: body});
}
function _fun68690() { // fn#68690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3445, offset: 0x01c592e2, size: 49 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_RELATIONSHIPS_FAILURE'});
}
function _fun68693() { // fn#68693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:3704, offset: 0x01c593b6, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RELATIONSHIP_PENDING_INCOMING_REMOVED'});
}
function _fun68699() { // fn#68699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4333, offset: 0x01c59514, size: 192 bytes, params: 1, frame: 19
let value = environment.__proto__;
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */;
const showIgnoreSuccessToast = defaultImport.showIgnoreSuccessToast;
const binding = env0_0;
Reflect.apply(showIgnoreSuccessToast, defaultImport, [binding, importDefault]);
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 Us93Ca = (require(1244) /* metro dependency 1244: indexNative */).t.Us93Ca;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [Us93Ca])]);
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'RELATIONSHIP_IGNORE_USER_SUCCESS', userId: binding};
const Date = global.Date;
object2.timestamp = Date.now();
Reflect.apply(dispatch, value, [object2]);
}
function _fun68702() { // fn#68702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4781, offset: 0x01c596cf, size: 132 bytes, params: 1, frame: 17 function _fun68702() { // fn#68702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8968:4781, offset: 0x01c596cf, size: 132 bytes, params: 1, frame: 17
const defaultImport = importDefault(6264) /* metro dependency 6264: SafetyToastsActionCreatorsNative */; const defaultImport = SafetyToastsActionCreatorsNative;
defaultImport.showUnignoreSuccessToast(env0_0, importDefault); defaultImport.showUnignoreSuccessToast(env0_0, importDefault);
const AccessibilityAnnouncer = (require(4002) /* metro dependency 4002: shared */).AccessibilityAnnouncer; const AccessibilityAnnouncer = (SharedModule).AccessibilityAnnouncer;
const announce = AccessibilityAnnouncer.announce; const announce = AccessibilityAnnouncer.announce;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const string = intl.string; const string = intl.string;
const QlH5w6 = (require(1244) /* metro dependency 1244: indexNative */).t.QlH5w6; const QlH5w6 = (IndexNativeModule).t.QlH5w6;
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [QlH5w6])]); Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [QlH5w6])]);
} }
}
}
global.__d(_fun68665, 8783, [57, 1878, 661, 8784, 6722, 4647, 6595, 1244, 8785, 8786, 8787, 507, 3995, 4002, 694,
8789, 6264,
2]) /* metro module 8783, dependencies: [57, 1878, 661, 8784, 6722, 4647, 6595, 1244, 8785, 8786, 8787, 507, 3995, 4002, 694, 8789, 6264, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,23 +1,20 @@
/* Metro module 4796; source: actions/SelectedChannelActionCreators.tsx; dependencies: [4295, 1379, 4259, 661, 694, 1230, 4797, 9422, 2] */ /* Metro module 4796; source: actions/SelectedChannelActionCreators.tsx; dependencies: [4295, 1379, 4259, 661, 694, 1230, 4797, 9422, 2] */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import MediaEngineStore from '../stores/MediaEngineStore.tsx'; /* Metro dependency 4259 */
import GameConsoleStore from '../modules/game_console/GameConsoleStore.tsx'; /* Metro dependency 4295 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun41542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:6, offset: 0x01120ac8, size: 230 bytes, params: 8, frame: 19 function _fun41542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:6, offset: 0x01120ac8, size: 230 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */; ConstantsModule.PopoutWindowKeys;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; object = {selectChannel: selectChannel, selectPrivateChannel: function(a0) {
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_7 = constantsModule.ME;
constantsModule.PopoutWindowKeys;
const env0_8 = constantsModule.Routes;
object2 = {selectChannel: selectChannel, selectPrivateChannel: function(a0) {
require(dependencyMap[5]).transitionTo(Routes.CHANNEL(ME, a0)); require(dependencyMap[5]).transitionTo(Routes.CHANNEL(ME, a0));
}, selectVoiceChannel: selectVoiceChannel, disconnect: disconnect}; }, selectVoiceChannel: selectVoiceChannel, disconnect: disconnect};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/SelectedChannelActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/SelectedChannelActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function selectChannel({guildId, channelId, messageId, jumpType, source, skipMessageFetch}) { // fn#41543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:178, offset: 0x01120bae, size: 121 bytes, params: 2, frame: 20 function selectChannel({guildId, channelId, messageId, jumpType, source, skipMessageFetch}) { // fn#41543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4974:178, offset: 0x01120bae, size: 121 bytes, params: 2, frame: 20
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SELECT', (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SELECT',
guildId: guildId === ME ? null : guildId, channelId: channelId, messageId: messageId, jumpType: jumpType, guildId: guildId === ME ? null : guildId, channelId: channelId, messageId: messageId, jumpType: jumpType,
@@ -33,13 +30,15 @@ function selectVoiceChannel(a0) { // fn#41545, source: /ci/build/discord/discord
const r5 = value2 !== value4 ? value2 : false; const r5 = value2 !== value4 ? value2 : false;
const r4 = value3 !== value4 ? value3 : {}; const r4 = value3 !== value4 ? value3 : {};
const channel = ChannelStore.getChannel(a0); const channel = ChannelStore.getChannel(a0);
if (MediaEngineStore.isSupported()) { const r3 = channel == null ? value4 : channel.getGuildId();
const mediaEngineStoreBinding = MediaEngineStore;
if (mediaEngineStoreBinding.isSupported()) {
if (a0 != null) { if (a0 != null) {
MediaEngineStore.getMediaEngine().interact(); MediaEngineStore.getMediaEngine().interact();
} }
(require(4797) /* metro dependency 4797: SelectedChannelActionCreatorsAdditionalNative */).selectVoiceChannelAdditional(a0, (require(4797) /* metro dependency 4797: SelectedChannelActionCreatorsAdditionalNative */).selectVoiceChannelAdditional(a0,
channel == null ? value4 : channel.getGuildId(), r6, r5, r4); r3, r6, r5, r4);
} }
return value4; return value4;
} }
@@ -52,3 +51,7 @@ function disconnect() { // fn#41546, source: /ci/build/discord/discord/discord_a
this.selectVoiceChannel(null); this.selectVoiceChannel(null);
} }
}
global.__d(_fun41542, 4796, [4295, 1379, 4259, 661, 694, 1230, 4797, 9422,
2]) /* metro module 4796, dependencies: [4295, 1379, 4259, 661, 694, 1230, 4797, 9422, 2] */;
@@ -1,22 +1,26 @@
/* Metro module 4797; source: actions/SelectedChannelActionCreatorsAdditional.native.tsx; dependencies: [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080, 6272, 1962, 12366, 491, 694, 2] */ /* Metro module 4797; source: actions/SelectedChannelActionCreatorsAdditional.native.tsx; dependencies: [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080, 6272, 1962, 12366, 491, 694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import PermissionStore from '../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import VoiceStateStore from '../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import GuildVerificationStore from '../stores/GuildVerificationStore.tsx'; /* Metro dependency 4798 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00491Module from '../by-id/module-00491.js'; /* Metro dependency 491 */
import * as StageChannelsConstantsModule from '../modules/stage_channels/StageChannelsConstants.tsx'; /* Metro dependency 4799 */
function _fun41547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:6, offset: 0x01120d53, size: 234 bytes, params: 8, frame: 19 function _fun41547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:6, offset: 0x01120d53, size: 234 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; (FileImportTrackerModule).fileFinishedImporting('actions/SelectedChannelActionCreatorsAdditional.native.tsx');
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildVerificationStore = importDefault(4798) /* metro dependency 4798: GuildVerificationStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_10 = (require(4799) /* metro dependency 4799: StageChannelsConstants */).STAGE_BOOSTING_SHEET_KEY;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/SelectedChannelActionCreatorsAdditional.native.tsx');
exports.selectVoiceChannelAdditional = selectVoiceChannelAdditional; exports.selectVoiceChannelAdditional = selectVoiceChannelAdditional;
}
function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:325, offset: 0x01120e3d, size: 512 bytes, params: 3, frame: 23 function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:325, offset: 0x01120e3d, size: 512 bytes, params: 3, frame: 23
var moduleValue;
var isChannelFull2; var isChannelFull2;
var guildVerificationStoreBinding;
var value6; var value6;
var moduleValue2; var moduleValue2;
var value7; var value7;
@@ -44,8 +48,10 @@ function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/d
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4); importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
return undefined; return undefined;
} }
isChannelFull2 = require(dependencyMap[8]).isChannelFull(channel, VoiceStateStore, GuildStore); moduleValue = require(dependencyMap[8]);
value6 = GuildVerificationStore.getCheck(channel.guild_id); isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
guildVerificationStoreBinding = GuildVerificationStore;
value6 = guildVerificationStoreBinding.getCheck(channel.guild_id);
} else { } else {
if (channel.nsfw) { if (channel.nsfw) {
if (currentUser.nsfwAllowed) { if (currentUser.nsfwAllowed) {
@@ -53,8 +59,10 @@ function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/d
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4); importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
return undefined; return undefined;
} }
isChannelFull2 = require(dependencyMap[8]).isChannelFull(channel, VoiceStateStore, GuildStore); moduleValue = require(dependencyMap[8]);
value6 = GuildVerificationStore.getCheck(channel.guild_id); isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
guildVerificationStoreBinding = GuildVerificationStore;
value6 = guildVerificationStoreBinding.getCheck(channel.guild_id);
if (value6.canChat) { if (value6.canChat) {
value7 = importDefault(dependencyMap[11])(channel, PermissionStore); value7 = importDefault(dependencyMap[11])(channel, PermissionStore);
if (isChannelFull2) { if (isChannelFull2) {
@@ -142,7 +150,8 @@ function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/d
importDefault(dependencyMap[16])(_fun41549, a0, r3, r4); importDefault(dependencyMap[16])(_fun41549, a0, r3, r4);
return undefined; return undefined;
} }
isChannelFull2 = require(dependencyMap[8]).isChannelFull(channel, VoiceStateStore, GuildStore); moduleValue = require(dependencyMap[8]);
isChannelFull2 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
value6 = GuildVerificationStore.getCheck(channel.guild_id); value6 = GuildVerificationStore.getCheck(channel.guild_id);
} }
if (value6.canChat) { if (value6.canChat) {
@@ -223,21 +232,26 @@ function selectVoiceChannelAdditional(a0, a1) { // fn#41548, source: /ci/build/d
return undefined; return undefined;
} }
return require(dependencyMap[10]).unverifiedVoiceGate(value6); return require(dependencyMap[10]).unverifiedVoiceGate(value6);
}
function _fun41549() { // fn#41549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:854, offset: 0x0112103d, size: 152 bytes, params: 1, frame: 16 function _fun41549() { // fn#41549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4975:854, offset: 0x0112103d, size: 152 bytes, params: 1, frame: 16
const value2 = (require(491) /* metro dependency 491 */).v4(); const value2 = (Module00491Module).v4();
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch; const dispatch = defaultImport.dispatch;
const object2 = {type: 'VOICE_CHANNEL_SELECT'}; const object = {type: 'VOICE_CHANNEL_SELECT'};
object2.guildId = require; object.guildId = require;
object2.channelId = env0_0; object.channelId = env0_0;
object2.currentVoiceChannelId = SelectedChannelStore.getVoiceChannelId(); object.currentVoiceChannelId = SelectedChannelStore.getVoiceChannelId();
object2.video = env0_2; object.video = env0_2;
object2.stream = env0_3; object.stream = env0_3;
object2.lockVoiceStateForResume = lockVoiceStateForResume; object.lockVoiceStateForResume = lockVoiceStateForResume;
object2.joinVoiceId = value2; object.joinVoiceId = value2;
object2.bypassIdleUpdate = bypassIdleUpdate; object.bypassIdleUpdate = bypassIdleUpdate;
Reflect.apply(dispatch, defaultImport, [object2]); Reflect.apply(dispatch, defaultImport, [object]);
} }
}
}
global.__d(_fun41547, 4797, [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080,
6272, 1962, 12366, 491, 694,
2]) /* metro module 4797, dependencies: [1379, 1867, 4798, 3784, 1934, 1878, 4297, 4799, 4800, 4807, 3856, 4808, 4809, 4080, 6272, 1962, 12366, 491, 694, 2] */;
+61 -57
View File
@@ -1,18 +1,20 @@
/* Metro module 13045; source: actions/StoreListingActionCreators.tsx; dependencies: [4234, 4279, 13046, 661, 4141, 694, 7502, 2] */ /* Metro module 13045; source: actions/StoreListingActionCreators.tsx; dependencies: [4234, 4279, 13046, 661, 4141, 694, 7502, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ApplicationStore from '../modules/applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import SKUStore from '../stores/game_store/SKUStore.tsx'; /* Metro dependency 4279 */
import StoreListingStore from '../stores/game_store/StoreListingStore.tsx'; /* Metro dependency 13046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as StoreUtilsModule from '../utils/StoreUtils.tsx'; /* Metro dependency 4141 */
function _fun99608(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:6, offset: 0x021cf027, size: 202 bytes, params: 8, frame: 19 function _fun99608(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:6, offset: 0x021cf027, size: 202 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */; (FileImportTrackerModule).fileFinishedImporting('actions/StoreListingActionCreators.tsx');
const skuStore = importDefault(4279) /* metro dependency 4279: SKUStore */;
const storeListingStore = importDefault(13046) /* metro dependency 13046: StoreListingStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/StoreListingActionCreators.tsx');
exports.fetchStoreListingsForApplications = fetchStoreListingsForApplications; exports.fetchStoreListingsForApplications = fetchStoreListingsForApplications;
exports.fetchAllStoreListingsForApplication = fetchAllStoreListingsForApplication; exports.fetchAllStoreListingsForApplication = fetchAllStoreListingsForApplication;
exports.fetchStoreListingForSku = fetchStoreListingForSku; exports.fetchStoreListingForSku = fetchStoreListingForSku;
}
function fetchStoreListingsForApplications(a0) { // fn#99609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:254, offset: 0x021cf0f1, size: 148 bytes, params: 2, frame: 14 function fetchStoreListingsForApplications(a0) { // fn#99609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:254, offset: 0x021cf0f1, size: 148 bytes, params: 2, frame: 14
var r0; var r0;
let value = a0.filter(_fun99610); let value = a0.filter(_fun99610);
@@ -26,14 +28,46 @@ function fetchStoreListingsForApplications(a0) { // fn#99609, source: /ci/build/
r0 = value; r0 = value;
} }
return r0; return r0;
function _fun99610(a0) { // fn#99610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:316, offset: 0x021cf185, size: 67 bytes, params: 2, frame: 13
const value = environment.__proto__;
const application = ApplicationStore.getApplication(a0);
if (application == null) {
return true;
}
const destinationSkuId = application.destinationSkuId;
return destinationSkuId == null || StoreListingStore.getForSKU(destinationSkuId) == null;
}
function _fun99611({body}) { // fn#99611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:620, offset: 0x021cf1c8, size: 60 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'STORE_LISTINGS_FETCH_SUCCESS',
storeListings: body});
}
} }
function fetchAllStoreListingsForApplication(a0) { // fn#99612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:743, offset: 0x021cf204, size: 101 bytes, params: 2, frame: 13 function fetchAllStoreListingsForApplication(a0) { // fn#99612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:743, offset: 0x021cf204, size: 101 bytes, params: 2, frame: 13
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */; const httpGetWithCountryCodeQuery = StoreUtilsModule.httpGetWithCountryCodeQuery;
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
const STORE_PUBLISHED_LISTINGS_SKUS = Endpoints.STORE_PUBLISHED_LISTINGS_SKUS; const STORE_PUBLISHED_LISTINGS_SKUS = Endpoints.STORE_PUBLISHED_LISTINGS_SKUS;
return Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [{url: STORE_PUBLISHED_LISTINGS_SKUS, return Reflect.apply(httpGetWithCountryCodeQuery, StoreUtilsModule, [{url: STORE_PUBLISHED_LISTINGS_SKUS,
query: {application_id: a0}, oldFormErrors: true, rejectWithError: false}]).then(_fun99613); query: {application_id: a0}, oldFormErrors: true, rejectWithError: false}]).then(_fun99613);
function _fun99613(a0) { // fn#99613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:940, offset: 0x021cf269, size: 84 bytes, params: 2, frame: 15
var environment;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
let object = {type: 'STORE_LISTINGS_FETCH_SUCCESS'};
object.storeListings = a0.body.map(function(a0) {
var r2;
var object = {};
copyDataProperties(object, a0, r2);
object['published'] = true;
return object;
});
Reflect.apply(dispatch, value, [object]);
return a0.body;
}
} }
function fetchStoreListingForSku(a0) { // fn#99615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1090, offset: 0x021cf2d6, size: 230 bytes, params: 2, frame: 18 function fetchStoreListingForSku(a0) { // fn#99615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1090, offset: 0x021cf2d6, size: 230 bytes, params: 2, frame: 18
@@ -48,68 +82,38 @@ function fetchStoreListingForSku(a0) { // fn#99615, source: /ci/build/discord/di
} else { } else {
r4 = value3; r4 = value3;
} }
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STORE_LISTINGS_FETCH_START', (Dispatcher).dispatch({type: 'STORE_LISTINGS_FETCH_START',
skuId: a0}); skuId: a0});
const storeUtilsModule = require(4141) /* metro dependency 4141: StoreUtils */; const httpGetWithCountryCodeQuery = StoreUtilsModule.httpGetWithCountryCodeQuery;
const httpGetWithCountryCodeQuery = storeUtilsModule.httpGetWithCountryCodeQuery;
r4 = r4 ? Endpoints.STORE_LISTINGS_SKU(a0) : Endpoints.STORE_PUBLISHED_LISTINGS_SKU(a0); r4 = r4 ? Endpoints.STORE_LISTINGS_SKU(a0) : Endpoints.STORE_PUBLISHED_LISTINGS_SKU(a0);
let value = Reflect.apply(httpGetWithCountryCodeQuery, storeUtilsModule, [{url: r4, rejectWithError: false}]); let value = Reflect.apply(httpGetWithCountryCodeQuery, StoreUtilsModule, [{url: r4, rejectWithError: false}]);
value = value.then(_fun99616); value = value.then(_fun99616);
return value.catch(_fun99617); return value.catch(_fun99617);
}
function _fun99610(a0) { // fn#99610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:316, offset: 0x021cf185, size: 67 bytes, params: 2, frame: 13
const value = environment.__proto__;
const application = ApplicationStore.getApplication(a0);
if (application == null) {
return true;
}
const destinationSkuId = application.destinationSkuId;
return destinationSkuId == null || StoreListingStore.getForSKU(destinationSkuId) == null;
}
function _fun99611({body}) { // fn#99611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:620, offset: 0x021cf1c8, size: 60 bytes, params: 2, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STORE_LISTINGS_FETCH_SUCCESS',
storeListings: body});
}
function _fun99613(a0) { // fn#99613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:940, offset: 0x021cf269, size: 84 bytes, params: 2, frame: 15
var environment;
let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'STORE_LISTINGS_FETCH_SUCCESS'};
object2.storeListings = a0.body.map(function(a0) {
var r2;
var object = {};
copyDataProperties(object, a0, r2);
object['published'] = true;
return object;
});
Reflect.apply(dispatch, value, [object2]);
return a0.body;
}
function _fun99616(a0) { // fn#99616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1399, offset: 0x021cf3bc, size: 95 bytes, params: 2, frame: 14 function _fun99616(a0) { // fn#99616, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1399, offset: 0x021cf3bc, size: 95 bytes, params: 2, frame: 14
const binding = env0_1; const binding = env0_1;
let value = environment.__proto__; let value = environment.__proto__;
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch; const dispatch = value.dispatch;
const object2 = {}; const object = {};
if (binding) { if (binding) {
object2.type = 'STORE_LISTINGS_FETCH_SUCCESS'; object.type = 'STORE_LISTINGS_FETCH_SUCCESS';
object2.storeListings = a0.body; object.storeListings = a0.body;
Reflect.apply(dispatch, value, [object2]); Reflect.apply(dispatch, value, [object]);
} else { } else {
object2.type = 'STORE_LISTING_FETCH_SUCCESS'; object.type = 'STORE_LISTING_FETCH_SUCCESS';
object2.storeListing = a0.body; object.storeListing = a0.body;
Reflect.apply(dispatch, value, [object2]); Reflect.apply(dispatch, value, [object]);
} }
} }
function _fun99617() { // fn#99617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1567, offset: 0x021cf41b, size: 60 bytes, params: 1, frame: 13 function _fun99617() { // fn#99617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13235:1567, offset: 0x021cf41b, size: 60 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SKU_FETCH_FAIL', skuId: env0_0}); (Dispatcher).dispatch({type: 'SKU_FETCH_FAIL', skuId: env0_0});
} }
}
}
global.__d(_fun99608, 13045, [4234, 4279, 13046, 661, 4141, 694, 7502,
2]) /* metro module 13045, dependencies: [4234, 4279, 13046, 661, 4141, 694, 7502, 2] */;
+150 -133
View File
@@ -1,30 +1,33 @@
/* Metro module 8913; source: actions/StreamActionCreators.tsx; dependencies: [5, 4295, 8043, 8914, 4492, 1226, 1379, 1867, 1934, 4297, 661, 4286, 694, 4285, 44, 4800, 7712, 8915, 507, 672, 5046, 480, 8912, 4796, 4603, 8916, 2] */ /* Metro module 8913; source: actions/StreamActionCreators.tsx; dependencies: [5, 4295, 8043, 8914, 4492, 1226, 1379, 1867, 1934, 4297, 661, 4286, 694, 4285, 44, 4800, 7712, 8915, 507, 672, 5046, 480, 8912, 4796, 4603, 8916, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00044 from '../by-id/module-00044.js'; /* Metro dependency 44 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import SelectedChannelStore from '../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import GameConsoleStore from '../modules/game_console/GameConsoleStore.tsx'; /* Metro dependency 4295 */
import VoiceStateStore from '../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import ApplicationStreamingStore from '../stores/ApplicationStreamingStore.tsx'; /* Metro dependency 4492 */
import ChannelActionCreators from './ChannelActionCreators.tsx'; /* Metro dependency 4603 */
import PopoutWindowStoreNative from '../modules/popout-window/PopoutWindowStore.native.tsx'; /* Metro dependency 8043 */
import ApplicationStreamPreviewStore from '../stores/ApplicationStreamPreviewStore.tsx'; /* Metro dependency 8914 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as StreamKeyUtilsModule from '../modules/go_live/utils/StreamKeyUtils.tsx'; /* Metro dependency 4285 */
import * as ConstantsModule2 from '../modules/go_live/Constants.tsx'; /* Metro dependency 4286 */
function _fun69539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:6, offset: 0x01c76232, size: 566 bytes, params: 8, frame: 24 function _fun69539(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:6, offset: 0x01c76232, size: 566 bytes, params: 8, frame: 24
const env0_0 = require; const env0_0 = require;
const closure = watchStream; const watchStream2 = watchStream;
const closure2 = watchStreamAndTransitionToStream; const watchStreamAndTransitionToStream2 = watchStreamAndTransitionToStream;
const closure3 = stopStream; const stopStream2 = stopStream;
const closure4 = closeStream; const closeStream2 = closeStream;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
const popoutWindowStoreNative = importDefault(8043) /* metro dependency 8043: PopoutWindowStoreNative */;
const applicationStreamPreviewStore = importDefault(8914) /* metro dependency 8914: ApplicationStreamPreviewStore */;
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_13 = constantsModule.Endpoints;
const env0_14 = constantsModule.AppContext;
const env0_15 = constantsModule.PopoutWindowKeys;
const env0_16 = (require(4286) /* metro dependency 4286: Constants */).StreamTypes;
const Number = global.Number; const Number = global.Number;
const env0_17 = Number.MAX_VALUE; const env0_17 = Number.MAX_VALUE;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/StreamActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/StreamActionCreators.tsx');
exports.startStream = function(a0, a1, a2) { exports.startStream = function(a0, a1, a2) {
var r7; var r7;
var r6; var r6;
@@ -45,15 +48,15 @@ function _fun69539(global, require, importDefault, importAll, module, exports, d
Reflect.apply(dispatch, defaultImport, [object]); Reflect.apply(dispatch, defaultImport, [object]);
}; };
exports.setStreamPaused = setStreamPaused; exports.setStreamPaused = setStreamPaused;
exports.watchStream = closure; exports.watchStream = watchStream2;
exports.toggleSelfStreamHidden = toggleSelfStreamHidden; exports.toggleSelfStreamHidden = toggleSelfStreamHidden;
exports.watchStreamAndTransitionToStream = closure2; exports.watchStreamAndTransitionToStream = watchStreamAndTransitionToStream2;
exports.stopStream = closure3; exports.stopStream = stopStream2;
exports.closeStream = closure4; exports.closeStream = closeStream2;
exports.fetchStreamPreview = function() { exports.fetchStreamPreview = function() {
return _fetchStreamPreview.apply(this, arguments); return _fetchStreamPreview.apply(this, arguments);
}; };
exports.setLayout = setLayout; exports.setLayout = setLayout_69556;
exports.notifyStreamStart = function() { exports.notifyStreamStart = function() {
return _notifyStreamStart.apply(this, arguments); return _notifyStreamStart.apply(this, arguments);
}; };
@@ -69,13 +72,19 @@ function _fun69539(global, require, importDefault, importAll, module, exports, d
}; };
exports.stopOwnStream = stopOwnStream; exports.stopOwnStream = stopOwnStream;
exports.joinPrivateChannelAndWatchStream = joinPrivateChannelAndWatchStream; exports.joinPrivateChannelAndWatchStream = joinPrivateChannelAndWatchStream;
}
function isVoiceChannelFull(a0, a1) { // fn#69540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:299, offset: 0x01c76468, size: 124 bytes, params: 3, frame: 17 function isVoiceChannelFull(a0, a1) { // fn#69540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:299, offset: 0x01c76468, size: 124 bytes, params: 3, frame: 17
var r0;
var moduleValue;
const channel = ChannelStore.getChannel(a1); const channel = ChannelStore.getChannel(a1);
(importDefault(44) /* metro dependency 44 */)(channel != null, 'Cannot join a null voice channel'); (Module00044)(channel != null, 'Cannot join a null voice channel');
return !VoiceStateStore.isInChannel(a1) && (require(4800) /* metro dependency 4800: ChannelUtils */).isChannelFull(channel, const isInChannel2 = VoiceStateStore.isInChannel(a1);
VoiceStateStore, GuildStore); if (isInChannel2) {
r0 = !isInChannel2;
} else {
moduleValue = require(4800) /* metro dependency 4800: ChannelUtils */;
r0 = moduleValue.isChannelFull(channel, VoiceStateStore, GuildStore);
}
return r0;
} }
function watchStream(a0, a1) { // fn#69541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:463, offset: 0x01c764e4, size: 304 bytes, params: 3, frame: 20 function watchStream(a0, a1) { // fn#69541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:463, offset: 0x01c764e4, size: 304 bytes, params: 3, frame: 20
@@ -127,19 +136,28 @@ function watchStream(a0, a1) { // fn#69541, source: /ci/build/discord/discord/di
} }
} }
} }
function _fun69542({ownerId}) { // fn#69542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:706, offset: 0x01c76614, size: 32 bytes, params: 2, frame: 10
const authenticationStoreBinding = AuthenticationStore;
const getId = authenticationStoreBinding.getId;
return ownerId !== Reflect.apply(getId, authenticationStoreBinding, []);
}
} }
function watchStreamAndTransitionToStream(a0, a1) { // fn#69543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:921, offset: 0x01c76634, size: 133 bytes, params: 3, frame: 16 function watchStreamAndTransitionToStream(a0, a1) { // fn#69543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:921, offset: 0x01c76634, size: 133 bytes, params: 3, frame: 16
var popoutWindowStoreNativeBinding;
const guildId = a0.guildId; const guildId = a0.guildId;
const channelId = a0.channelId; const channelId = a0.channelId;
if (guildId == null) { if (guildId == null) {
watchStream(a0, a1); watchStream(a0, a1);
if (!(PopoutWindowStoreNative.getWindowOpen(PopoutWindowKeys.CHANNEL_CALL_POPOUT) && SelectedChannelStore.getVoiceChannelId() === channelId)) { popoutWindowStoreNativeBinding = PopoutWindowStoreNative;
if (!(popoutWindowStoreNativeBinding.getWindowOpen(PopoutWindowKeys.CHANNEL_CALL_POPOUT) && SelectedChannelStore.getVoiceChannelId() === channelId)) {
(importDefault(8915) /* metro dependency 8915: transitionToStreamNative */)(a0); (importDefault(8915) /* metro dependency 8915: transitionToStreamNative */)(a0);
} }
} else if (!isVoiceChannelFull(undefined, channelId)) { } else if (!isVoiceChannelFull(undefined, channelId)) {
watchStream(a0, a1); watchStream(a0, a1);
if (!(PopoutWindowStoreNative.getWindowOpen(PopoutWindowKeys.CHANNEL_CALL_POPOUT) && SelectedChannelStore.getVoiceChannelId() === channelId)) { popoutWindowStoreNativeBinding = PopoutWindowStoreNative;
if (!(popoutWindowStoreNativeBinding.getWindowOpen(PopoutWindowKeys.CHANNEL_CALL_POPOUT) && SelectedChannelStore.getVoiceChannelId() === channelId)) {
(importDefault(8915) /* metro dependency 8915: transitionToStreamNative */)(a0); (importDefault(8915) /* metro dependency 8915: transitionToStreamNative */)(a0);
} }
} }
@@ -151,7 +169,7 @@ function stopStream(a0) { // fn#69544, source: /ci/build/discord/discord/discord
if (!(value2 !== undefined) || value2) { if (!(value2 !== undefined) || value2) {
closeStream(a0, !(value !== undefined) || value); closeStream(a0, !(value !== undefined) || value);
} }
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch; const dispatch = defaultImport.dispatch;
const APP = AppContext.APP; const APP = AppContext.APP;
Reflect.apply(dispatch, defaultImport, [{type: 'STREAM_STOP', streamKey: a0, appContext: APP}]); Reflect.apply(dispatch, defaultImport, [{type: 'STREAM_STOP', streamKey: a0, appContext: APP}]);
@@ -165,79 +183,7 @@ function closeStream(a0) { // fn#69545, source: /ci/build/discord/discord/discor
} }
function _fetchStreamPreview() { // fn#69546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:1367, offset: 0x01c76766, size: 50 bytes, params: 1, frame: 14 function _fetchStreamPreview() { // fn#69546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:1367, offset: 0x01c76766, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun69548).apply(this, arguments); return Module00005(_fun69548).apply(this, arguments);
}
function _notifyStreamStart() { // fn#69549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2043, offset: 0x01c7698f, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun69551).apply(this, arguments);
}
function setStreamPaused(a0, a1) { // fn#69553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2553, offset: 0x01c76ad5, size: 90 bytes, params: 3, frame: 14
const value2 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(a0);
const value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'STREAM_SET_PAUSED', streamKey: value2, paused: a1});
}
function toggleSelfStreamHidden(a0, a1) { // fn#69554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2736, offset: 0x01c76b2f, size: 62 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STREAM_UPDATE_SELF_HIDDEN',
channelId: a0, selfStreamHidden: a1});
}
function setLayout(a0) { // fn#69556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3090, offset: 0x01c76b6d, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STREAM_LAYOUT_UPDATE', layout: a0});
}
function updateStreamSettings(a0) { // fn#69558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3292, offset: 0x01c76ba6, size: 136 bytes, params: 2, frame: 18
var r8;
var value;
var trackStreamSettingsUpdate;
var preset;
var resolution;
var frameRate;
if (a0.noTrack !== true) {
value = require(8912) /* metro dependency 8912: StreamQualityUtils */;
trackStreamSettingsUpdate = value.trackStreamSettingsUpdate;
preset = a0.preset;
resolution = a0.resolution;
frameRate = a0.frameRate;
Reflect.apply(trackStreamSettingsUpdate, value, [preset, resolution, frameRate, a0.soundshareEnabled]);
r8 = frameRate;
}
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object2 = {type: 'STREAM_UPDATE_SETTINGS'};
copyDataProperties(object2, a0, r8);
Reflect.apply(dispatch, value, [object2]);
}
function stopOwnStream() { // fn#69560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3650, offset: 0x01c76c8a, size: 77 bytes, params: 1, frame: 16
var stopStreamBinding;
let value = a0;
const r3 = !(value !== undefined) || value;
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
if (currentUserActiveStream != null) {
stopStreamBinding = stopStream;
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
stopStreamBinding(value.encodeStreamKey(currentUserActiveStream), r3);
}
}
function joinPrivateChannelAndWatchStream(a0, a1) { // fn#69561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3803, offset: 0x01c76cd7, size: 176 bytes, params: 3, frame: 19
const env0_0 = a0;
const id = AuthenticationStore.getId();
const env0_1 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).decodeStreamKey(a1);
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
if (voiceChannelId != null && voiceChannelId !== a0) {
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).disconnect();
}
(importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).addRecipient(a0, id, undefined, _fun69562);
}
function _fun69542({ownerId}) { // fn#69542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:706, offset: 0x01c76614, size: 32 bytes, params: 2, frame: 10
const getId = AuthenticationStore.getId;
return ownerId !== Reflect.apply(getId, AuthenticationStore, []);
}
function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:1428, offset: 0x01c767a3, size: 492 bytes, params: 4, frame: 24 function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:1428, offset: 0x01c767a3, size: 492 bytes, params: 4, frame: 24
var r12; var r12;
var r5; var r5;
@@ -246,7 +192,7 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
var shouldFetchPreview; var shouldFetchPreview;
var value4; var value4;
var encodeStreamKey; var encodeStreamKey;
var object3; var object;
var CALL; var CALL;
var GUILD; var GUILD;
var value5; var value5;
@@ -259,7 +205,7 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
var get; var get;
var STREAM_PREVIEW; var STREAM_PREVIEW;
var value8; var value8;
var object4; var object2;
var Date; var Date;
var now; var now;
var value9; var value9;
@@ -333,7 +279,7 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
@@ -353,12 +299,12 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.url = value8; object.url = value8;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
@@ -378,27 +324,27 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object4.version = value9; object2.version = value9;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.query = object4; object.query = object2;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.oldFormErrors = true; object.oldFormErrors = true;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.rejectWithError = false; object.rejectWithError = false;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
value10 = Reflect.apply(get, HTTP, [object3]); value10 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
@@ -438,17 +384,17 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.type = 'STREAM_PREVIEW_FETCH_SUCCESS'; object.type = 'STREAM_PREVIEW_FETCH_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.streamKey = value5; object.streamKey = value5;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
@@ -463,12 +409,12 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
object3.previewURL = url; object.previewURL = url;
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
try { try {
Reflect.apply(dispatch, value13, [object3]); Reflect.apply(dispatch, value13, [object]);
} catch (error) { } catch (error) {
break exceptionLanding49; break exceptionLanding49;
} }
@@ -501,16 +447,20 @@ function* _fun69548(a0, a1, a2) { // fn#69548, original name: ?anon_0_, source:
return value; return value;
} }
}
function _notifyStreamStart() { // fn#69549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2043, offset: 0x01c7698f, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun69551).apply(this, arguments);
function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2102, offset: 0x01c769cc, size: 146 bytes, params: 2, frame: 18 function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2102, offset: 0x01c769cc, size: 146 bytes, params: 2, frame: 18
var binding; var binding;
var binding2; var binding2;
var property; var property;
var value3; var value3;
var post; var post;
var object3; var object;
var STREAM_NOTIFY; var STREAM_NOTIFY;
var value4; var value4;
var object4; var object2;
var NetworkActionNames; var NetworkActionNames;
var value5; var value5;
var error; var error;
@@ -542,7 +492,7 @@ function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/buil
return undefined; return undefined;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
@@ -562,17 +512,17 @@ function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/buil
return undefined; return undefined;
} }
try { try {
object3.url = value4; object.url = value4;
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
try { try {
object3.oldFormErrors = true; object.oldFormErrors = true;
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
@@ -602,22 +552,22 @@ function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/buil
return undefined; return undefined;
} }
try { try {
object4.event = STREAM_NOTIFY; object2.event = STREAM_NOTIFY;
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
try { try {
object3.trackedActionData = object4; object.trackedActionData = object2;
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
try { try {
object3.rejectWithError = true; object.rejectWithError = true;
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
try { try {
value = Reflect.apply(post, value3, [object3]); value = Reflect.apply(post, value3, [object]);
} catch (error) { } catch (error) {
return undefined; return undefined;
} }
@@ -634,14 +584,81 @@ function* _fun69551(a0) { // fn#69551, original name: ?anon_0_, source: /ci/buil
} }
} }
}
function setStreamPaused(a0, a1) { // fn#69553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2553, offset: 0x01c76ad5, size: 90 bytes, params: 3, frame: 14
const value2 = (StreamKeyUtilsModule).encodeStreamKey(a0);
Dispatcher.dispatch({type: 'STREAM_SET_PAUSED', streamKey: value2, paused: a1});
}
function toggleSelfStreamHidden(a0, a1) { // fn#69554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:2736, offset: 0x01c76b2f, size: 62 bytes, params: 3, frame: 13
(Dispatcher).dispatch({type: 'STREAM_UPDATE_SELF_HIDDEN',
channelId: a0, selfStreamHidden: a1});
}
function setLayout_69556(a0) { // fn#69556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3090, offset: 0x01c76b6d, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'STREAM_LAYOUT_UPDATE', layout: a0});
}
function updateStreamSettings(a0) { // fn#69558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3292, offset: 0x01c76ba6, size: 136 bytes, params: 2, frame: 18
var r8;
var value;
var trackStreamSettingsUpdate;
var preset;
var resolution;
var frameRate;
if (a0.noTrack !== true) {
value = require(8912) /* metro dependency 8912: StreamQualityUtils */;
trackStreamSettingsUpdate = value.trackStreamSettingsUpdate;
preset = a0.preset;
resolution = a0.resolution;
frameRate = a0.frameRate;
Reflect.apply(trackStreamSettingsUpdate, value, [preset, resolution, frameRate, a0.soundshareEnabled]);
r8 = frameRate;
}
value = importDefault(694) /* metro dependency 694: Dispatcher */;
const dispatch = value.dispatch;
const object = {type: 'STREAM_UPDATE_SETTINGS'};
copyDataProperties(object, a0, r8);
Reflect.apply(dispatch, value, [object]);
}
function stopOwnStream() { // fn#69560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3650, offset: 0x01c76c8a, size: 77 bytes, params: 1, frame: 16
var stopStreamBinding;
let value = a0;
const r3 = !(value !== undefined) || value;
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
if (currentUserActiveStream != null) {
stopStreamBinding = stopStream;
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
stopStreamBinding(value.encodeStreamKey(currentUserActiveStream), r3);
}
}
function joinPrivateChannelAndWatchStream(a0, a1) { // fn#69561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3803, offset: 0x01c76cd7, size: 176 bytes, params: 3, frame: 19
const env0_0 = a0;
const id = AuthenticationStore.getId();
const env0_1 = (StreamKeyUtilsModule).decodeStreamKey(a1);
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
if (voiceChannelId != null && voiceChannelId !== a0) {
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).disconnect();
}
(ChannelActionCreators).addRecipient(a0, id, undefined, _fun69562);
function _fun69562() { // fn#69562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3992, offset: 0x01c76d87, size: 61 bytes, params: 1, frame: 19 function _fun69562() { // fn#69562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:3992, offset: 0x01c76d87, size: 61 bytes, params: 1, frame: 19
var environment; var environment;
let value = environment.__proto__; let value = environment.__proto__;
value = importDefault(8916) /* metro dependency 8916: CallActionCreators */; value = importDefault(8916) /* metro dependency 8916: CallActionCreators */;
value.call(env0_0, false, false, null, _fun69563); value.call(env0_0, false, false, null, _fun69563);
}
function _fun69563() { // fn#69563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:4025, offset: 0x01c76dc4, size: 23 bytes, params: 1, frame: 11 function _fun69563() { // fn#69563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9098:4025, offset: 0x01c76dc4, size: 23 bytes, params: 1, frame: 11
watchStreamAndTransitionToStream(env1_1); watchStreamAndTransitionToStream(env1_1);
} }
}
}
}
global.__d(_fun69539, 8913, [5, 4295, 8043, 8914, 4492, 1226, 1379, 1867, 1934, 4297, 661, 4286, 694, 4285, 44,
4800, 7712, 8915, 507, 672, 5046, 480, 8912, 4796, 4603, 8916,
2]) /* metro module 8913, dependencies: [5, 4295, 8043, 8914, 4492, 1226, 1379, 1867, 1934, 4297, 661, 4286, 694, 4285, 44, 4800, 7712, 8915, 507, 672, 5046, 480, 8912, 4796, 4603, 8916, 2] */;
@@ -1,4 +1,11 @@
/* Metro module 6847; source: actions/SubscriptionPlanActionCreators.tsx; dependencies: [5, 3804, 661, 1880, 694, 4223, 507, 3817, 3825, 2] */ /* Metro module 6847; source: actions/SubscriptionPlanActionCreators.tsx; dependencies: [5, 3804, 661, 1880, 694, 4223, 507, 3817, 3825, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import BillingInfoStore from '../stores/billing/BillingInfoStore.tsx'; /* Metro dependency 3804 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../modules/premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun54023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:6, offset: 0x0135ae31, size: 234 bytes, params: 8, frame: 20 function _fun54023(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#54023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:6, offset: 0x0135ae31, size: 234 bytes, params: 8, frame: 20
let env0_0 = require; let env0_0 = require;
const closure = function() { const closure = function() {
@@ -6,13 +13,7 @@ function _fun54023(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/SubscriptionPlanActionCreators.tsx');
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_6 = premiumConstantsModule.ACTIVE_PREMIUM_SKUS;
const env0_7 = premiumConstantsModule.PremiumSubscriptionSKUs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/SubscriptionPlanActionCreators.tsx');
exports.fetchSubscriptionPlansForSKU = closure; exports.fetchSubscriptionPlansForSKU = closure;
exports.fetchSubscriptionPlansBySKUs = function(a0, a1) { exports.fetchSubscriptionPlansBySKUs = function(a0, a1) {
var env0_0 = a1; var env0_0 = a1;
@@ -21,45 +22,13 @@ function _fun54023(global, require, importDefault, importAll, module, exports, d
}; };
exports.fetchPremiumSubscriptionPlans = fetchPremiumSubscriptionPlans; exports.fetchPremiumSubscriptionPlans = fetchPremiumSubscriptionPlans;
exports.resetSubscriptionPlanData = resetSubscriptionPlanData; exports.resetSubscriptionPlanData = resetSubscriptionPlanData;
}
function _fetchSubscriptionPlansForSKU() { // fn#54025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:299, offset: 0x0135af1b, size: 48 bytes, params: 1, frame: 14 function _fetchSubscriptionPlansForSKU() { // fn#54025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:299, offset: 0x0135af1b, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun54027).apply(this, arguments); return Module00005(_fun54027).apply(this, arguments);
}
function fetchSubscriptionPlansBySKUs(a0, a1) { // fn#54028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1312, offset: 0x0135b155, size: 63 bytes, params: 3, frame: 14
const env0_0 = a1;
const Promise = global.Promise;
const all = Promise.all;
const value = a0.filter(function(a0) {
return a0 !== PremiumSubscriptionSKUs.NONE;
});
return Reflect.apply(all, Promise, [value.map(function(a0) {
return fetchSubscriptionPlansForSKU(a0, require);
})]);
}
function fetchPremiumSubscriptionPlans(a0, a1, a2) { // fn#54031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1479, offset: 0x0135b1c5, size: 81 bytes, params: 4, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const Promise = global.Promise;
const all = Promise.all;
const value = ACTIVE_PREMIUM_SKUS.filter(function(a0) {
return a0 !== PremiumSubscriptionSKUs.NONE;
});
return Reflect.apply(all, Promise, [value.map(_fun54033)]);
}
function resetSubscriptionPlanData() { // fn#54034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1656, offset: 0x0135b239, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SUBSCRIPTION_PLANS_RESET'});
}
function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:380, offset: 0x0135af54, size: 513 bytes, params: 6, frame: 24 function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:380, offset: 0x0135af54, size: 513 bytes, params: 6, frame: 24
var object4; var object2;
var STORE_PUBLISHED_LISTINGS_SUBSCRIPTION_PLANS; var STORE_PUBLISHED_LISTINGS_SUBSCRIPTION_PLANS;
var value4; var value4;
var object3; var object;
var value5; var value5;
var value6; var value6;
var value7; var value7;
@@ -95,7 +64,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
let binding = env2_1; let binding = env2_1;
binding(env2_2[4]).dispatch({type: 'SUBSCRIPTION_PLANS_FETCH', skuId: a0}); binding(env2_2[4]).dispatch({type: 'SUBSCRIPTION_PLANS_FETCH', skuId: a0});
try { try {
object4 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true, 'retries': 10}; object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true, 'retries': 10};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -167,7 +136,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.url = value4; object2.url = value4;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -185,7 +154,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -222,7 +191,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
} }
if (!value5) { if (!value5) {
try { try {
object3.country_code = a1; object.country_code = a1;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -260,7 +229,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
} }
if (!value6) { if (!value6) {
try { try {
object3.payment_source_id = a2; object.payment_source_id = a2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -298,7 +267,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
} }
if (!value7) { if (!value7) {
try { try {
object3.include_unpublished = a3; object.include_unpublished = a3;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -336,7 +305,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
} }
if (!value8) { if (!value8) {
try { try {
object3.revenue_surface = a4; object.revenue_surface = a4;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -355,7 +324,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
} }
} }
try { try {
object4.query = object3; object2.query = object;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -518,7 +487,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
value13 = Reflect.apply(get, HTTP, [object4]); value13 = Reflect.apply(get, HTTP, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -649,7 +618,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -667,7 +636,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.type = 'SUBSCRIPTION_PLANS_FETCH_SUCCESS'; object2.type = 'SUBSCRIPTION_PLANS_FETCH_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -685,7 +654,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.skuId = a0; object2.skuId = a0;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -721,7 +690,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.subscriptionPlans = body; object2.subscriptionPlans = body;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -739,7 +708,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
Reflect.apply(dispatch, value16, [object4]); Reflect.apply(dispatch, value16, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1015,7 +984,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
value13 = Reflect.apply(get, HTTP, [object4]); value13 = Reflect.apply(get, HTTP, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1146,7 +1115,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1164,7 +1133,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.type = 'SUBSCRIPTION_PLANS_FETCH_SUCCESS'; object2.type = 'SUBSCRIPTION_PLANS_FETCH_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1182,7 +1151,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.skuId = a0; object2.skuId = a0;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1218,7 +1187,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
object4.subscriptionPlans = body; object2.subscriptionPlans = body;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1236,7 +1205,7 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
throw value; throw value;
} }
try { try {
Reflect.apply(dispatch, value16, [object4]); Reflect.apply(dispatch, value16, [object2]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
binding5 = env2_2; binding5 = env2_2;
@@ -1275,7 +1244,50 @@ function* _fun54027(a0, a1, a2, a3, a4) { // fn#54027, original name: ?anon_0_,
return body; return body;
} }
}
function fetchSubscriptionPlansBySKUs(a0, a1) { // fn#54028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1312, offset: 0x0135b155, size: 63 bytes, params: 3, frame: 14
const env0_0 = a1;
const Promise = global.Promise;
const all = Promise.all;
const value = a0.filter(function(a0) {
return a0 !== PremiumSubscriptionSKUs.NONE;
});
return Reflect.apply(all, Promise, [value.map(function(a0) {
return fetchSubscriptionPlansForSKU(a0, require);
})]);
function _fun54029(a0) { // fn#54029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1384, offset: 0x0135b194, size: 22 bytes, params: 2, frame: 2
const NONE = PremiumSubscriptionSKUs.NONE;
return a0 !== NONE;
}
function _fun54030(a0) { // fn#54030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1405, offset: 0x0135b1aa, size: 27 bytes, params: 2, frame: 13
return fetchSubscriptionPlansForSKU(a0, require);
}
}
function fetchPremiumSubscriptionPlans(a0, a1, a2) { // fn#54031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1479, offset: 0x0135b1c5, size: 81 bytes, params: 4, frame: 14
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const Promise = global.Promise;
const all = Promise.all;
const value = ACTIVE_PREMIUM_SKUS.filter(function(a0) {
return a0 !== PremiumSubscriptionSKUs.NONE;
});
return Reflect.apply(all, Promise, [value.map(_fun54033)]);
function _fun54033(a0) { // fn#54033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1575, offset: 0x0135b216, size: 35 bytes, params: 2, frame: 18 function _fun54033(a0) { // fn#54033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1575, offset: 0x0135b216, size: 35 bytes, params: 2, frame: 18
return fetchSubscriptionPlansForSKU(a0, env0_0, require, undefined, importDefault); return fetchSubscriptionPlansForSKU(a0, env0_0, require, undefined, importDefault);
} }
}
function resetSubscriptionPlanData() { // fn#54034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7025:1656, offset: 0x0135b239, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'SUBSCRIPTION_PLANS_RESET'});
}
}
global.__d(_fun54023, 6847, [5, 3804, 661, 1880, 694, 4223, 507, 3817, 3825,
2]) /* metro module 6847, dependencies: [5, 3804, 661, 1880, 694, 4223, 507, 3817, 3825, 2] */;
+64 -58
View File
@@ -1,28 +1,30 @@
/* Metro module 9537; source: actions/SurveyActionCreators.tsx; dependencies: [9536, 661, 694, 683, 5046, 480, 1392, 2] */ /* Metro module 9537; source: actions/SurveyActionCreators.tsx; dependencies: [9536, 661, 694, 683, 5046, 480, 1392, 2] */
import AnalyticsUtils from '../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import SurveyStore from '../stores/SurveyStore.tsx'; /* Metro dependency 9536 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as TypeUtilsModule from '../external/discord_common/js/packages/type-utils/TypeUtils.tsx'; /* Metro dependency 1392 */
import * as SurveyStoreModule from '../stores/SurveyStore.tsx'; /* Metro dependency 9536 */
function _fun74410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:6, offset: 0x01d8ce03, size: 218 bytes, params: 8, frame: 19 function _fun74410(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:6, offset: 0x01d8ce03, size: 218 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const surveyStore = importDefault(9536) /* metro dependency 9536: SurveyStore */; (FileImportTrackerModule).fileFinishedImporting('actions/SurveyActionCreators.tsx');
const env0_4 = (require(9536) /* metro dependency 9536: SurveyStore */).SURVEY_REFETCH_INTERVAL;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.AnalyticEvents;
const env0_6 = constantsModule.NoticeTypes;
const env0_7 = constantsModule.Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/SurveyActionCreators.tsx');
exports.overrideSurvey = overrideSurvey; exports.overrideSurvey = overrideSurvey;
exports.surveyHide = surveyHide; exports.surveyHide = surveyHide;
exports.surveyFetch = surveyFetch; exports.surveyFetch = surveyFetch;
exports.surveySeen = surveySeen; exports.surveySeen = surveySeen;
}
function overrideSurvey(a0) { // fn#74411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:282, offset: 0x01d8cedd, size: 54 bytes, params: 2, frame: 13 function overrideSurvey(a0) { // fn#74411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:282, offset: 0x01d8cedd, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_OVERRIDE', id: a0}); (Dispatcher).dispatch({type: 'SURVEY_OVERRIDE', id: a0});
} }
function surveyHide(a0, a1) { // fn#74412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:371, offset: 0x01d8cf13, size: 163 bytes, params: 3, frame: 19 function surveyHide(a0, a1) { // fn#74412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:371, offset: 0x01d8cf13, size: 163 bytes, params: 3, frame: 19
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_HIDE', key: a0}); (Dispatcher).dispatch({type: 'SURVEY_HIDE', key: a0});
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const defaultImport2 = AnalyticsUtils;
const track = defaultImport2.track; const track = defaultImport2.track;
if (a1) { if (a1) {
Reflect.apply(track, defaultImport2, [AnalyticEvents.APP_NOTICE_CLOSED, {notice_type: NoticeTypes.SURVEY, Reflect.apply(track, defaultImport2, [AnalyticEvents.APP_NOTICE_CLOSED, {notice_type: NoticeTypes.SURVEY,
@@ -34,64 +36,30 @@ function surveyHide(a0, a1) { // fn#74412, source: /ci/build/discord/discord/dis
} }
function surveyFetch(a0, a1) { // fn#74413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:610, offset: 0x01d8cfb6, size: 177 bytes, params: 3, frame: 18 function surveyFetch(a0, a1) { // fn#74413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:610, offset: 0x01d8cfb6, size: 177 bytes, params: 3, frame: 18
const object3 = {}; const object = {};
if (a0 != null) { if (a0 != null) {
object3.survey_override = a0; object.survey_override = a0;
} }
if (a1 != null) { if (a1 != null) {
object3.disable_auto_seen = a1; object.disable_auto_seen = a1;
} }
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */; const defaultImport = TrackedHTTPUtils;
const get = defaultImport.get; const get = defaultImport.get;
const object4 = {}; const object2 = {};
const USER_SURVEY = Endpoints.USER_SURVEY; const USER_SURVEY = Endpoints.USER_SURVEY;
object4.url = USER_SURVEY; object2.url = USER_SURVEY;
object4.query = object3; object2.query = object;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames; const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const USER_SURVEY_FETCH = NetworkActionNames.USER_SURVEY_FETCH; const USER_SURVEY_FETCH = NetworkActionNames.USER_SURVEY_FETCH;
object4.trackedActionData = {event: USER_SURVEY_FETCH, properties: function(a0) { object2.trackedActionData = {event: USER_SURVEY_FETCH, properties: function(a0) {
var r4; var r4;
var value = undefined; var value = undefined;
r4 = a0 == null || a0.body == null ? value : a0.body.survey; r4 = a0 == null || a0.body == null ? value : a0.body.survey;
var moduleValue = require(dependencyMap[6]); var moduleValue = require(dependencyMap[6]);
return moduleValue.exact({key: r4 == null ? value : r4.key}); return moduleValue.exact({key: r4 == null ? value : r4.key});
}}; }};
object4.rejectWithError = false;
return Reflect.apply(get, defaultImport, [object4]).then(_fun74415, _fun74416);
}
function surveySeen(a0) { // fn#74417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1199, offset: 0x01d8d16b, size: 223 bytes, params: 2, frame: 18
var object2;
var defaultImport2;
var post;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const env0_0 = a0;
const lastSeenTimestamp = SurveyStore.getLastSeenTimestamp();
if (lastSeenTimestamp === null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_SEEN', key: a0});
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post;
object2 = {};
object2.url = Endpoints.USER_SURVEY_SEEN(a0);
object2.trackedActionData = {event: NetworkActionNames.USER_SURVEY_SEEN, properties: properties};
object2.rejectWithError = false; object2.rejectWithError = false;
return Reflect.apply(post, defaultImport2, [object2]); return Reflect.apply(get, defaultImport, [object2]).then(_fun74415, _fun74416);
}
if (lastSeenTimestamp != null) {
var Date = global.Date;
if (Date.now() - lastSeenTimestamp >= SURVEY_REFETCH_INTERVAL) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_SEEN', key: a0});
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post;
object2 = {};
object2.url = Endpoints.USER_SURVEY_SEEN(a0);
object2.trackedActionData = {event: NetworkActionNames.USER_SURVEY_SEEN, properties: properties};
object2.rejectWithError = false;
return Reflect.apply(post, defaultImport2, [object2]);
}
}
}
function _fun74415(a0) { // fn#74415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:968, offset: 0x01d8d0c3, size: 117 bytes, params: 2, frame: 17 function _fun74415(a0) { // fn#74415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:968, offset: 0x01d8d0c3, size: 117 bytes, params: 2, frame: 17
let value = environment.__proto__; let value = environment.__proto__;
value = undefined; value = undefined;
@@ -102,11 +70,49 @@ function _fun74415(a0) { // fn#74415, source: /ci/build/discord/discord/discord_
function _fun74416() { // fn#74416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1123, offset: 0x01d8d138, size: 51 bytes, params: 1, frame: 12 function _fun74416() { // fn#74416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1123, offset: 0x01d8d138, size: 51 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'SURVEY_FETCHED', 'survey': null}); (Dispatcher).dispatch({'type': 'SURVEY_FETCHED', 'survey': null});
} }
}
function surveySeen(a0) { // fn#74417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1199, offset: 0x01d8d16b, size: 223 bytes, params: 2, frame: 18
var object;
var defaultImport2;
var post;
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const env0_0 = a0;
const lastSeenTimestamp = SurveyStore.getLastSeenTimestamp();
if (lastSeenTimestamp === null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_SEEN', key: a0});
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post;
object = {};
object.url = Endpoints.USER_SURVEY_SEEN(a0);
object.trackedActionData = {event: NetworkActionNames.USER_SURVEY_SEEN, properties: properties_74418};
object.rejectWithError = false;
return Reflect.apply(post, defaultImport2, [object]);
}
if (lastSeenTimestamp != null) {
var Date = global.Date;
if (Date.now() - lastSeenTimestamp >= SURVEY_REFETCH_INTERVAL) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SURVEY_SEEN', key: a0});
defaultImport2 = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport2.post;
object = {};
object.url = Endpoints.USER_SURVEY_SEEN(a0);
object.trackedActionData = {event: NetworkActionNames.USER_SURVEY_SEEN, properties: properties_74418};
object.rejectWithError = false;
return Reflect.apply(post, defaultImport2, [object]);
}
}
function surveySeenProperties() { // fn#74418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1463, owner: surveySeen.properties, offset: 0x01d8d24a, size: 51 bytes, params: 1, frame: 12 function surveySeenProperties() { // fn#74418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9723:1463, owner: surveySeen.properties, offset: 0x01d8d24a, size: 51 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (require(1392) /* metro dependency 1392: TypeUtils */).exact({key: env0_0}); return (TypeUtilsModule).exact({key: env0_0});
} }
}
}
global.__d(_fun74410, 9537, [9536, 661, 694, 683, 5046, 480, 1392,
2]) /* metro module 9537, dependencies: [9536, 661, 694, 683, 5046, 480, 1392, 2] */;
+11 -8
View File
@@ -1,18 +1,21 @@
/* Metro module 11540; source: actions/TypingActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 11540; source: actions/TypingActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun88433(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:6, offset: 0x01fe2ec8, size: 118 bytes, params: 8, frame: 17 function _fun88433(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:6, offset: 0x01fe2ec8, size: 118 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {startTyping: startTyping, stopTyping: stopTyping}; object = {startTyping: startTyping, stopTyping: stopTyping};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/TypingActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/TypingActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function startTyping(a0) { // fn#88434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:99, offset: 0x01fe2f3e, size: 55 bytes, params: 2, frame: 13 function startTyping(a0) { // fn#88434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:99, offset: 0x01fe2f3e, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TYPING_START_LOCAL', channelId: a0}); (Dispatcher).dispatch({type: 'TYPING_START_LOCAL', channelId: a0});
} }
function stopTyping(a0) { // fn#88435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:173, offset: 0x01fe2f75, size: 55 bytes, params: 2, frame: 13 function stopTyping(a0) { // fn#88435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11726:173, offset: 0x01fe2f75, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'TYPING_STOP_LOCAL', channelId: a0}); (Dispatcher).dispatch({type: 'TYPING_STOP_LOCAL', channelId: a0});
} }
}
global.__d(_fun88433, 11540, [694, 2]) /* metro module 11540, dependencies: [694, 2] */;
@@ -1,65 +1,64 @@
/* Metro module 7879; source: actions/UploadAttachmentActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 7879; source: actions/UploadAttachmentActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun63170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:6, offset: 0x01b73431, size: 186 bytes, params: 8, frame: 17 function _fun63170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:6, offset: 0x01b73431, size: 186 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {popFirstFile: popFirstFile, addFiles: addFiles, addFile: addFile, remove: remove_63174, object = {popFirstFile: popFirstFile, addFiles: addFiles, addFile: addFile, remove: remove_63174,
removeFiles: removeFiles, clearAll: clearAll, update: update_63177, setUploads: setUploads_63178, removeFiles: removeFiles, clearAll: clearAll_63176, update: update_63177, setUploads: setUploads_63178,
setFile: setFile}; setFile: setFile};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UploadAttachmentActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/UploadAttachmentActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function popFirstFile(a0) { // fn#63171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:99, offset: 0x01b734eb, size: 55 bytes, params: 2, frame: 13 function popFirstFile(a0) { // fn#63171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:99, offset: 0x01b734eb, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ATTACHMENT_POP_FILE', (Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_POP_FILE',
channelId: a0}); channelId: a0});
} }
function addFiles({files, channelId, draftType}) { // fn#63172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:182, offset: 0x01b73522, size: 82 bytes, params: 2, frame: 16 function addFiles({files, channelId, draftType}) { // fn#63172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:182, offset: 0x01b73522, size: 82 bytes, params: 2, frame: 16
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES', channelId: channelId, files: files, draftType: draftType});
dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES', channelId: channelId, files: files, draftType: draftType});
} }
function addFile({file, channelId, draftType, allowOptimization}) { // fn#63173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:314, offset: 0x01b73574, size: 101 bytes, params: 2, frame: 17 function addFile({file, channelId, draftType, allowOptimization}) { // fn#63173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:314, offset: 0x01b73574, size: 101 bytes, params: 2, frame: 17
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES', (Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_ADD_FILES',
channelId: channelId, files: [file], draftType: draftType, allowOptimization: allowOptimization}); channelId: channelId, files: [file], draftType: draftType, allowOptimization: allowOptimization});
} }
function remove_63174(a0, a1, a2) { // fn#63174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:486, offset: 0x01b735d9, size: 70 bytes, params: 4, frame: 13 function remove_63174(a0, a1, a2) { // fn#63174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:486, offset: 0x01b735d9, size: 70 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILE', (Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILE',
channelId: a0, id: a1, draftType: a2}); channelId: a0, id: a1, draftType: a2});
} }
function removeFiles(a0, a1, a2) { // fn#63175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:587, offset: 0x01b7361f, size: 71 bytes, params: 4, frame: 13 function removeFiles(a0, a1, a2) { // fn#63175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:587, offset: 0x01b7361f, size: 71 bytes, params: 4, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILES', (Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_REMOVE_FILES',
channelId: a0, attachmentIds: a1, draftType: a2}); channelId: a0, attachmentIds: a1, draftType: a2});
} }
function clearAll(a0, a1) { // fn#63176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:705, offset: 0x01b73666, size: 63 bytes, params: 3, frame: 13 function clearAll_63176(a0, a1) { // fn#63176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:705, offset: 0x01b73666, size: 63 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ATTACHMENT_CLEAR_ALL_FILES', (Dispatcher).dispatch({type: 'UPLOAD_ATTACHMENT_CLEAR_ALL_FILES',
channelId: a0, draftType: a1}); channelId: a0, draftType: a1});
} }
function update_63177(a0, a1, a2, {description, filename, spoiler, thumbnail}) { // fn#63177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:805, offset: 0x01b736a5, size: 115 bytes, params: 5, frame: 17 function update_63177(a0, a1, a2, {description, filename, spoiler, thumbnail}) { // fn#63177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:805, offset: 0x01b736a5, size: 115 bytes, params: 5, frame: 17
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_UPDATE_FILE', channelId: a0, id: a1, filename: filename,
dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_UPDATE_FILE', channelId: a0, id: a1, filename: filename,
description: description, thumbnail: thumbnail, spoiler: spoiler, draftType: a2}); description: description, thumbnail: thumbnail, spoiler: spoiler, draftType: a2});
} }
function setUploads_63178({uploads, channelId, draftType, resetState}) { // fn#63178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1002, offset: 0x01b73718, size: 111 bytes, params: 2, frame: 17 function setUploads_63178({uploads, channelId, draftType, resetState}) { // fn#63178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1002, offset: 0x01b73718, size: 111 bytes, params: 2, frame: 17
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; const dispatch = Dispatcher.dispatch;
const dispatch = dispatcher.dispatch; const object = {type: 'UPLOAD_ATTACHMENT_SET_UPLOADS', channelId: channelId};
const object2 = {type: 'UPLOAD_ATTACHMENT_SET_UPLOADS', channelId: channelId}; object.uploads = resetState ? uploads.map(function(a0) {
object2.uploads = resetState ? uploads.map(function(a0) {
return a0.resetState(); return a0.resetState();
}) : uploads; }) : uploads;
object2.draftType = draftType; object.draftType = draftType;
Reflect.apply(dispatch, dispatcher, [object2]); Reflect.apply(dispatch, Dispatcher, [object]);
} }
function setFile({file, channelId, id, draftType, allowOptimization}) { // fn#63180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1184, offset: 0x01b73796, size: 102 bytes, params: 2, frame: 18 function setFile({file, channelId, id, draftType, allowOptimization}) { // fn#63180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8057:1184, offset: 0x01b73796, size: 102 bytes, params: 2, frame: 18
const dispatcher = importDefault(694) /* metro dependency 694: Dispatcher */; Dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_SET_FILE', channelId: channelId, id: id, file: file,
dispatcher.dispatch({type: 'UPLOAD_ATTACHMENT_SET_FILE', channelId: channelId, id: id, file: file,
draftType: draftType, allowOptimization: allowOptimization}); draftType: draftType, allowOptimization: allowOptimization});
} }
}
global.__d(_fun63170, 7879, [694, 2]) /* metro module 7879, dependencies: [694, 2] */;
+141 -131
View File
@@ -1,16 +1,24 @@
/* Metro module 8061; source: actions/UserActionCreators.tsx; dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */ /* Metro module 8061; source: actions/UserActionCreators.tsx; dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */
import Logger from '../modules/debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00044 from '../by-id/module-00044.js'; /* Metro dependency 44 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import UserStore from '../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserRecord from '../records/UserRecord.tsx'; /* Metro dependency 1885 */
import TrackedHTTPUtils from '../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as AnalyticsSchemaModule from '../external/discord_common/js/packages/analytics-utils/AnalyticsSchema.tsx'; /* Metro dependency 648 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as RouteConstantsModule from '../modules/routing/RouteConstants.tsx'; /* Metro dependency 662 */
function _fun63994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:6, offset: 0x01b9896f, size: 320 bytes, params: 8, frame: 19 function _fun63994(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:6, offset: 0x01b9896f, size: 320 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; let value = Logger;
const userRecord = importDefault(1885) /* metro dependency 1885: UserRecord */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const env0_7 = (require(662) /* metro dependency 662: RouteConstants */).PSEUDO_GUILD_IDS;
let value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('UserProfileModalActionCreators'); value = new value('UserProfileModalActionCreators');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UserActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/UserActionCreators.tsx');
exports.fetchCurrentUser = fetchCurrentUser; exports.fetchCurrentUser = fetchCurrentUser;
exports.acceptAgreements = acceptAgreements; exports.acceptAgreements = acceptAgreements;
exports.setFlag = setFlag_64006; exports.setFlag = setFlag_64006;
@@ -25,83 +33,8 @@ function _fun63994(global, require, importDefault, importAll, module, exports, d
exports.fetchMutualFriends = function() { exports.fetchMutualFriends = function() {
return _fetchMutualFriends.apply(this, arguments); return _fetchMutualFriends.apply(this, arguments);
}; };
}
function _fetchProfile() { // fn#63995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:222, offset: 0x01b98aaf, size: 48 bytes, params: 1, frame: 14 function _fetchProfile() { // fn#63995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:222, offset: 0x01b98aaf, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun63997).apply(this, arguments); return Module00005(_fun63997).apply(this, arguments);
}
function _fetchMutualFriends() { // fn#63998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1386, offset: 0x01b98e32, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun64000).apply(this, arguments);
}
function fetchCurrentUser() { // fn#64001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2015, offset: 0x01b98fd7, size: 137 bytes, params: 1, frame: 15
const value = a0;
const withAnalyticsToken = (value !== undefined ? value : {}).withAnalyticsToken;
const r5 = withAnalyticsToken !== undefined && withAnalyticsToken;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const get = HTTP.get;
const ME = Endpoints.ME;
return Reflect.apply(get, HTTP, [{url: ME, query: {with_analytics_token: r5}, oldFormErrors: true,
rejectWithError: false}]).then(_fun64002);
}
function acceptAgreements() { // fn#64003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2346, offset: 0x01b990d2, size: 164 bytes, params: 1, frame: 20
const value = a0;
const value2 = a1;
const r6 = !(value !== undefined) || value;
const r5 = !(value2 !== undefined) || value2;
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const patch = defaultImport.patch;
const object2 = {};
const USER_AGREEMENTS = Endpoints.USER_AGREEMENTS;
object2.url = USER_AGREEMENTS;
const NetworkActionNames = (require(648) /* metro dependency 648: AnalyticsSchema */).NetworkActionNames;
const USER_ACCEPT_AGREEMENTS = NetworkActionNames.USER_ACCEPT_AGREEMENTS;
object2.trackedActionData = {event: USER_ACCEPT_AGREEMENTS};
object2.body = {terms: r6, privacy: r5};
object2.oldFormErrors = true;
object2.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object2]).then(function() {
return true;
}, function() {
return false;
});
}
function setFlag_64006(a0, a1) { // fn#64006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2601, offset: 0x01b99176, size: 160 bytes, params: 3, frame: 16
const currentUser = UserStore.getCurrentUser();
(importDefault(44) /* metro dependency 44 */)(currentUser != null, 'setFlag: user cannot be undefined');
const flags = currentUser.flags;
const r4 = a1 ? flags | a0 : flags & ~a0;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const patch = HTTP.patch;
const ME = Endpoints.ME;
return Reflect.apply(patch, HTTP, [{url: ME, oldFormErrors: true, body: {flags: r4}, rejectWithError: false}]);
}
function getUser(a0) { // fn#64007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2831, offset: 0x01b99216, size: 138 bytes, params: 2, frame: 16
var r0;
var HTTP;
var get;
var object2;
const env0_0 = a0;
var value;
const user = UserStore.getUser(a0);
if (user != null) {
r0 = global.Promise.resolve(user);
} else {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.USER(a0);
value = Reflect.apply(get, HTTP, [object2]);
value = value.then(_fun64008);
r0 = value;
}
return r0;
}
async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:271, offset: 0x01b98af1, size: 833 bytes, params: 2, frame: 37 async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:271, offset: 0x01b98af1, size: 833 bytes, params: 2, frame: 37
var r1; var r1;
var r5; var r5;
@@ -113,7 +46,7 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
var value2; var value2;
var value3; var value3;
var value4; var value4;
var object3; var object;
var type; var type;
var withMutualGuilds; var withMutualGuilds;
var withMutualFriendsCount; var withMutualFriendsCount;
@@ -139,7 +72,7 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
var get; var get;
var USER_PROFILE; var USER_PROFILE;
var value11; var value11;
var object4; var object2;
var value12; var value12;
var value13; var value13;
var value14; var value14;
@@ -265,7 +198,7 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -285,27 +218,27 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.url = value11; object.url = value11;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.type = type; object2.type = type;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.with_mutual_guilds = withMutualGuilds; object2.with_mutual_guilds = withMutualGuilds;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.with_mutual_friends = withMutualFriends; object2.with_mutual_friends = withMutualFriends;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -326,42 +259,42 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
r21 = withMutualFriendsCount; r21 = withMutualFriendsCount;
} }
try { try {
object4.with_mutual_friends_count = r21; object2.with_mutual_friends_count = r21;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.guild_id = r5; object2.guild_id = r5;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.connections_role_id = connectionsRoleId; object2.connections_role_id = connectionsRoleId;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object4.join_request_id = joinRequestId; object2.join_request_id = joinRequestId;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.query = object4; object.query = object2;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.signal = abortSignal; object.signal = abortSignal;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.rejectWithError = true; object.rejectWithError = true;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
value14 = Reflect.apply(get, HTTP, [object3]); value14 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -418,12 +351,12 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.type = 'USER_UPDATE'; object.type = 'USER_UPDATE';
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -438,12 +371,12 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.user = user; object.user = user;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
Reflect.apply(dispatch, value18, [object3]); Reflect.apply(dispatch, value18, [object]);
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -463,12 +396,12 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.type = 'USER_PROFILE_FETCH_SUCCESS'; object.type = 'USER_PROFILE_FETCH_SUCCESS';
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -478,22 +411,22 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.userProfile = body; object.userProfile = body;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.fetchStartedAt = value; object.fetchStartedAt = value;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.guildId = guildId; object.guildId = guildId;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
Reflect.apply(dispatch, value19, [object3]); Reflect.apply(dispatch, value19, [object]);
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -549,17 +482,17 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.type = 'GUILD_MEMBER_PROFILE_UPDATE'; object.type = 'GUILD_MEMBER_PROFILE_UPDATE';
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.guildId = guildId; object.guildId = guildId;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -574,12 +507,12 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
object3.guildMember = guild_member; object.guildMember = guild_member;
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
try { try {
Reflect.apply(dispatch, value22, [object3]); Reflect.apply(dispatch, value22, [object]);
} catch (error) { } catch (error) {
break exceptionLanding107; break exceptionLanding107;
} }
@@ -702,8 +635,11 @@ async function _fun63997(a0) { // fn#63997, source: /ci/build/discord/discord/di
} }
} }
}
function _fetchMutualFriends() { // fn#63998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1386, offset: 0x01b98e32, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64000).apply(this, arguments);
function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1447, offset: 0x01b98e6b, size: 364 bytes, params: 3, frame: 23 function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:1447, offset: 0x01b98e6b, size: 364 bytes, params: 3, frame: 23
var object2;
var body; var body;
var binding2; var binding2;
var property; var property;
@@ -945,7 +881,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1089,7 +1025,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.url = value6; object.url = value6;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1125,7 +1061,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.oldFormErrors = true; object.oldFormErrors = true;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1161,7 +1097,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.signal = a1; object.signal = a1;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1197,7 +1133,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.rejectWithError = false; object.rejectWithError = false;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1233,7 +1169,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
value7 = Reflect.apply(get, HTTP, [object2]); value7 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1490,7 +1426,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2 = {}; object = {};
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1526,7 +1462,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.type = 'MUTUAL_FRIENDS_FETCH_SUCCESS'; object.type = 'MUTUAL_FRIENDS_FETCH_SUCCESS';
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1562,7 +1498,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.userId = a0; object.userId = a0;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1634,7 +1570,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
object2.mutualFriends = body; object.mutualFriends = body;
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1670,7 +1606,7 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
throw error; throw error;
} }
try { try {
Reflect.apply(dispatch, value10, [object2]); Reflect.apply(dispatch, value10, [object]);
} catch (error) { } catch (error) {
if (error == null) { if (error == null) {
body = value3; body = value3;
@@ -1708,22 +1644,96 @@ function* _fun64000(a0, a1) { // fn#64000, original name: ?anon_0_, source: /ci/
return value3; return value3;
} }
}
function fetchCurrentUser() { // fn#64001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2015, offset: 0x01b98fd7, size: 137 bytes, params: 1, frame: 15
const value = a0;
const withAnalyticsToken = (value !== undefined ? value : {}).withAnalyticsToken;
const r5 = withAnalyticsToken !== undefined && withAnalyticsToken;
const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get;
const ME = Endpoints.ME;
return Reflect.apply(get, HTTP, [{url: ME, query: {with_analytics_token: r5}, oldFormErrors: true,
rejectWithError: false}]).then(_fun64002);
function _fun64002(a0) { // fn#64002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2199, offset: 0x01b99060, size: 114 bytes, params: 2, frame: 15 function _fun64002(a0) { // fn#64002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2199, offset: 0x01b99060, size: 114 bytes, params: 2, frame: 15
let value = environment.__proto__; let value = environment.__proto__;
const value2 = undefined; const value2 = undefined;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch; const dispatch = defaultImport.dispatch;
let body = a0.body; let body = a0.body;
Reflect.apply(dispatch, defaultImport, [{type: 'CURRENT_USER_UPDATE', user: body, Reflect.apply(dispatch, defaultImport, [{type: 'CURRENT_USER_UPDATE', user: body,
analyticsToken: env0_0 ? a0.body.analytics_token : value2}]); analyticsToken: env0_0 ? a0.body.analytics_token : value2}]);
const userRecordBinding = UserRecord;
body = a0.body; body = a0.body;
value = Object.create(UserRecord.prototype, {constructor: {value: UserRecord}}); value = Object.create(userRecordBinding.prototype, {constructor: {value: userRecordBinding}});
const userRecord = new UserRecord(body); const userRecord2 = new userRecordBinding(body);
return userRecord instanceof Object ? userRecord : value; return userRecord2 instanceof Object ? userRecord2 : value;
} }
}
function acceptAgreements() { // fn#64003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2346, offset: 0x01b990d2, size: 164 bytes, params: 1, frame: 20
const value = a0;
const value2 = a1;
const r6 = !(value !== undefined) || value;
const r5 = !(value2 !== undefined) || value2;
const defaultImport = TrackedHTTPUtils;
const patch = defaultImport.patch;
const object = {};
const USER_AGREEMENTS = Endpoints.USER_AGREEMENTS;
object.url = USER_AGREEMENTS;
const NetworkActionNames = (AnalyticsSchemaModule).NetworkActionNames;
const USER_ACCEPT_AGREEMENTS = NetworkActionNames.USER_ACCEPT_AGREEMENTS;
object.trackedActionData = {event: USER_ACCEPT_AGREEMENTS};
object.body = {terms: r6, privacy: r5};
object.oldFormErrors = true;
object.rejectWithError = false;
return Reflect.apply(patch, defaultImport, [object]).then(function() {
return true;
}, function() {
return false;
});
}
function setFlag_64006(a0, a1) { // fn#64006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2601, offset: 0x01b99176, size: 160 bytes, params: 3, frame: 16
const currentUser = UserStore.getCurrentUser();
(Module00044)(currentUser != null, 'setFlag: user cannot be undefined');
const flags = currentUser.flags;
const r4 = a1 ? flags | a0 : flags & ~a0;
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
const ME = Endpoints.ME;
return Reflect.apply(patch, HTTP, [{url: ME, oldFormErrors: true, body: {flags: r4}, rejectWithError: false}]);
}
function getUser(a0) { // fn#64007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2831, offset: 0x01b99216, size: 138 bytes, params: 2, frame: 16
var r0;
var HTTP;
var get;
var object;
const env0_0 = a0;
var value;
const user = UserStore.getUser(a0);
if (user != null) {
r0 = global.Promise.resolve(user);
} else {
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
get = HTTP.get;
object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object.url = Endpoints.USER(a0);
value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun64008);
r0 = value;
}
return r0;
function _fun64008({body}) { // fn#64008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2980, offset: 0x01b992a0, size: 81 bytes, params: 2, frame: 13 function _fun64008({body}) { // fn#64008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8239:2980, offset: 0x01b992a0, size: 81 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_UPDATE', user: body}); (Dispatcher).dispatch({type: 'USER_UPDATE', user: body});
return UserStore.getUser(env0_0); return UserStore.getUser(env0_0);
} }
}
}
global.__d(_fun63994, 8061, [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131,
2]) /* metro module 8061, dependencies: [5, 1885, 1878, 661, 662, 3, 507, 694, 5046, 648, 44, 4131, 2] */;
+31 -25
View File
@@ -1,37 +1,23 @@
/* Metro module 10218; source: actions/UserActivityActionCreators.tsx; dependencies: [5, 4396, 661, 694, 10217, 507, 2] */ /* Metro module 10218; source: actions/UserActivityActionCreators.tsx; dependencies: [5, 4396, 661, 694, 10217, 507, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import PresenceStore from '../stores/PresenceStore.tsx'; /* Metro dependency 4396 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as SpotifyUtilsModule from '../modules/spotify/SpotifyUtils.tsx'; /* Metro dependency 10217 */
function _fun79496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:6, offset: 0x01e557d6, size: 193 bytes, params: 8, frame: 19 function _fun79496(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:6, offset: 0x01e557d6, size: 193 bytes, params: 8, frame: 19
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; (FileImportTrackerModule).fileFinishedImporting('actions/UserActivityActionCreators.tsx');
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Endpoints;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UserActivityActionCreators.tsx');
exports.sync = sync_79500; exports.sync = sync_79500;
exports.play = play_79501; exports.play = play_79501;
exports.getMetadata = function() { exports.getMetadata = function() {
return _getMetadata.apply(this, arguments); return _getMetadata.apply(this, arguments);
}; };
}
function _getMetadata() { // fn#79497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:136, offset: 0x01e55897, size: 50 bytes, params: 1, frame: 14 function _getMetadata() { // fn#79497, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:136, offset: 0x01e55897, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun79499).apply(this, arguments); return Module00005(_fun79499).apply(this, arguments);
}
function sync_79500(a0, a1) { // fn#79500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:701, offset: 0x01e559ff, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_SYNC', activity: a0,
userId: a1});
}
function play_79501(a0, a1) { // fn#79501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:789, offset: 0x01e55a3f, size: 90 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
let value = require(10217) /* metro dependency 10217: SpotifyUtils */;
value = value.getSpotifyMetadataFromActivity(a0, a1);
value = value.then(_fun79502);
value.catch(_fun79503);
}
function* _fun79499(a0, a1) { // fn#79499, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:183, offset: 0x01e558d4, size: 299 bytes, params: 3, frame: 23 function* _fun79499(a0, a1) { // fn#79499, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:183, offset: 0x01e558d4, size: 299 bytes, params: 3, frame: 23
var binding; var binding;
var activityMetadata; var activityMetadata;
@@ -102,15 +88,35 @@ function* _fun79499(a0, a1) { // fn#79499, original name: ?anon_0_, source: /ci/
return body; return body;
} }
}
function sync_79500(a0, a1) { // fn#79500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:701, offset: 0x01e559ff, size: 64 bytes, params: 3, frame: 13
(Dispatcher).dispatch({type: 'ACTIVITY_SYNC', activity: a0,
userId: a1});
}
function play_79501(a0, a1) { // fn#79501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:789, offset: 0x01e55a3f, size: 90 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
let value = SpotifyUtilsModule;
value = value.getSpotifyMetadataFromActivity(a0, a1);
value = value.then(_fun79502);
value.catch(_fun79503);
function _fun79502(a0) { // fn#79502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:858, offset: 0x01e55a99, size: 77 bytes, params: 2, frame: 13 function _fun79502(a0) { // fn#79502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:858, offset: 0x01e55a99, size: 77 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_PLAY', return (Dispatcher).dispatch({type: 'ACTIVITY_PLAY',
activity: env0_0, userId: require, metadata: a0}); activity: env0_0, userId: require, metadata: a0});
} }
function _fun79503() { // fn#79503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:942, offset: 0x01e55ae6, size: 69 bytes, params: 1, frame: 13 function _fun79503() { // fn#79503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10404:942, offset: 0x01e55ae6, size: 69 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ACTIVITY_PLAY', return (Dispatcher).dispatch({type: 'ACTIVITY_PLAY',
activity: env0_0, userId: require}); activity: env0_0, userId: require});
} }
}
}
global.__d(_fun79496, 10218, [5, 4396, 661, 694, 10217, 507,
2]) /* metro module 10218, dependencies: [5, 4396, 661, 694, 10217, 507, 2] */;
@@ -1,4 +1,13 @@
/* Metro module 7620; source: actions/UserSettingsAccountActionCreators.tsx; dependencies: [5, 661, 5079, 694, 507, 5076, 1230, 587, 7618, 7615, 7621, 7508, 2] */ /* Metro module 7620; source: actions/UserSettingsAccountActionCreators.tsx; dependencies: [5, 661, 5079, 694, 507, 5076, 1230, 587, 7618, 7615, 7621, 7508, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import InlineUploader from '../lib/uploader_inline/InlineUploader.tsx'; /* Metro dependency 7618 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as StorageModule from '../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as SafetyScannedUploadSurfacesModule from '../lib/uploader_inline/safetyScannedUploadSurfaces.tsx'; /* Metro dependency 7615 */
function _fun61030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:6, offset: 0x0171883b, size: 393 bytes, params: 8, frame: 20 function _fun61030(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:6, offset: 0x0171883b, size: 393 bytes, params: 8, frame: 20
const env0_0 = require; const env0_0 = require;
const closure = function() { const closure = function() {
@@ -6,8 +15,7 @@ function _fun61030(global, require, importDefault, importAll, module, exports, d
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; let value = ConstantsModule;
let value = require(661) /* metro dependency 661: Constants */;
const env0_4 = value.Endpoints; const env0_4 = value.Endpoints;
const env0_5 = value.Routes; const env0_5 = value.Routes;
const env0_6 = value.DEVICE_TOKEN; const env0_6 = value.DEVICE_TOKEN;
@@ -15,7 +23,7 @@ function _fun61030(global, require, importDefault, importAll, module, exports, d
value = require(5079) /* metro dependency 5079: PushNotificationConstants */; value = require(5079) /* metro dependency 5079: PushNotificationConstants */;
const env0_8 = value.DEVICE_PUSH_VOIP_PROVIDER; const env0_8 = value.DEVICE_PUSH_VOIP_PROVIDER;
const env0_9 = value.getDevicePushProvider; const env0_9 = value.getDevicePushProvider;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UserSettingsAccountActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/UserSettingsAccountActionCreators.tsx');
exports.accountDetailsInit = accountDetailsInit; exports.accountDetailsInit = accountDetailsInit;
exports.accountDetailsClose = accountDetailsClose; exports.accountDetailsClose = accountDetailsClose;
exports.disableAccount = disableAccount; exports.disableAccount = disableAccount;
@@ -40,143 +48,8 @@ function _fun61030(global, require, importDefault, importAll, module, exports, d
exports.updateAccount = updateAccount; exports.updateAccount = updateAccount;
exports.resetAccount = resetAccount; exports.resetAccount = resetAccount;
exports.saveAccountChanges = saveAccountChanges; exports.saveAccountChanges = saveAccountChanges;
}
function _saveProfileAndAccountRequest() { // fn#61032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:345, offset: 0x017189c4, size: 48 bytes, params: 1, frame: 14 function _saveProfileAndAccountRequest() { // fn#61032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:345, offset: 0x017189c4, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun61034).apply(this, arguments); return Module00005(_fun61034).apply(this, arguments);
}
function accountDetailsInit() { // fn#61035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:978, offset: 0x01718b73, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_INIT'});
}
function accountDetailsClose() { // fn#61036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1085, offset: 0x01718ba4, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_CLOSE'});
}
function disableAccount(a0, a1) { // fn#61037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1189, offset: 0x01718bd5, size: 117 bytes, params: 3, frame: 13
const r3 = a1 ? Endpoints.DELETE_ACCOUNT : Endpoints.DISABLE_ACCOUNT;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
return HTTP.post({url: r3, body: {password: a0}, oldFormErrors: true, rejectWithError: false}).then(function() {
importDefault(dependencyMap[5]).logoutInternal();
require(dependencyMap[6]).transitionTo(Routes.DEFAULT_LOGGED_OUT);
});
}
function saveProfileAndAccountChanges({username, discriminator, email, emailToken, password, avatar, avatarDescription, avatarId, avatarDecoration, newPassword, globalName, legacyUsername, nameplate, primaryGuildId, displayNameStyles, avatarOriginalMd5}) { // fn#61039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1523, offset: 0x01718c94, size: 619 bytes, params: 2, frame: 32
var object2;
var skuId;
var value3;
var value4;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT'});
object2 = {username: username, email: email, email_token: emailToken, password: password, avatar: avatar,
avatar_description: avatarDescription, avatar_id: avatarId, discriminator: discriminator,
global_name: globalName, legacy_username: legacyUsername, new_password: newPassword};
if (avatarDecoration !== undefined) {
value3 = null;
skuId = value3 == avatarDecoration ? undefined : avatarDecoration.skuId;
object2.avatar_decoration_sku_id = value3 != skuId ? skuId : value3;
}
if (nameplate !== undefined) {
value4 = null;
skuId = value4 == nameplate ? undefined : nameplate.skuId;
object2.nameplate_sku_id = value4 != skuId ? skuId : value4;
}
if (primaryGuildId !== undefined) {
object2.primary_guild_id = primaryGuildId;
}
if (displayNameStyles != null) {
object2.display_name_font_id = displayNameStyles.fontId;
object2.display_name_effect_id = displayNameStyles.effectId;
object2.display_name_colors = displayNameStyles.colors;
} else if (displayNameStyles === null) {
object2.display_name_font_id = null;
object2.display_name_effect_id = null;
object2.display_name_colors = null;
}
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value5 = Storage.get(DEVICE_TOKEN);
const devicePushProvider = getDevicePushProvider();
if (devicePushProvider != null && value5 != null) {
object2.push_provider = devicePushProvider;
object2.push_token = value5;
}
const value9 = Storage.get(DEVICE_VOIP_TOKEN);
if (DEVICE_PUSH_VOIP_PROVIDER != null && value9 != null) {
object2.push_voip_provider = DEVICE_PUSH_VOIP_PROVIDER;
object2.push_voip_token = value9;
}
const saveProfileAndAccountRequestBinding = saveProfileAndAccountRequest;
const defaultImport2 = importDefault(7618) /* metro dependency 7618: InlineUploader */;
const buildHeadersForMd5 = defaultImport2.buildHeadersForMd5;
const SafetyScannedUploadSurface = (require(7615) /* metro dependency 7615: safetyScannedUploadSurfaces */).SafetyScannedUploadSurface;
const USER_DEFAULT_PROFILE_AVATAR = SafetyScannedUploadSurface.USER_DEFAULT_PROFILE_AVATAR;
return saveProfileAndAccountRequestBinding(object2, {headers: Reflect.apply(buildHeadersForMd5, defaultImport2,
[{[USER_DEFAULT_PROFILE_AVATAR]: avatarOriginalMd5}])}).then(_fun61040, _fun61041);
}
function clearErrors() { // fn#61044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3257, offset: 0x0171904f, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_CLEAR_ERRORS'});
}
function resetPendingAccountChanges() { // fn#61045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3372, offset: 0x01719080, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_ACCOUNT_CHANGES'});
}
function resetAllPending() { // fn#61046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3508, offset: 0x017190b1, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_CHANGES'});
}
function resetAllTryItOut() { // fn#61047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3626, offset: 0x017190e2, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_TRY_IT_OUT_CHANGES'});
}
function resetAndCloseUserProfileForm() { // fn#61048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3760, offset: 0x01719113, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_AND_CLOSE_FORM'});
}
function resetPendingLegacyUsernameDisabled() { // fn#61049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3908, offset: 0x01719144, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_LEGACY_USERNAME_DISABLED'});
}
function resetPendingPrimaryGuildChanges() { // fn#61050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4077, offset: 0x01719175, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_PRIMARY_GUILD_CHANGES'});
}
function updateAccount(a0) { // fn#61051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4222, offset: 0x017191a6, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_UPDATE_ACCOUNT',
settings: a0});
}
function resetAccount() { // fn#61052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4337, offset: 0x017191df, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_RESET'});
}
function saveAccountChanges({username, email, emailToken, password, avatar, newPassword, discriminator}, {close}) { // fn#61053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4436, offset: 0x01719210, size: 417 bytes, params: 3, frame: 20
var object2;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_SUBMIT'});
object2 = {username: username, email: email, email_token: emailToken, password: password, avatar: avatar,
new_password: newPassword};
object2.discriminator = discriminator != null ? discriminator === '' ? undefined : discriminator : undefined;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
const value3 = Storage.get(DEVICE_TOKEN);
const devicePushProvider = getDevicePushProvider();
if (devicePushProvider != null && value3 != null) {
object2.push_provider = devicePushProvider;
object2.push_token = value3;
}
const value7 = Storage.get(DEVICE_VOIP_TOKEN);
if (DEVICE_PUSH_VOIP_PROVIDER != null && value7 != null) {
object2.push_voip_provider = DEVICE_PUSH_VOIP_PROVIDER;
object2.push_voip_token = value7;
}
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const patch = HTTP.patch;
const ME = Endpoints.ME;
return Reflect.apply(patch, HTTP, [{url: ME, oldFormErrors: true, body: object2,
rejectWithError: false}]).then(_fun61054, _fun61055);
}
async function _fun61034(a0) { // fn#61034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:426, offset: 0x01718a06, size: 365 bytes, params: 2, frame: 21 async function _fun61034(a0) { // fn#61034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:426, offset: 0x01718a06, size: 365 bytes, params: 2, frame: 21
let value = a1; let value = a1;
if (false) { if (false) {
@@ -212,6 +85,74 @@ async function _fun61034(a0) { // fn#61034, source: /ci/build/discord/discord/di
return value6; return value6;
} }
}
function accountDetailsInit() { // fn#61035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:978, offset: 0x01718b73, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_INIT'});
}
function accountDetailsClose() { // fn#61036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1085, offset: 0x01718ba4, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_CLOSE'});
}
function disableAccount(a0, a1) { // fn#61037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1189, offset: 0x01718bd5, size: 117 bytes, params: 3, frame: 13
const r3 = a1 ? Endpoints.DELETE_ACCOUNT : Endpoints.DISABLE_ACCOUNT;
const HTTP = (HTTPUtilsModule).HTTP;
return HTTP.post({url: r3, body: {password: a0}, oldFormErrors: true, rejectWithError: false}).then(function() {
importDefault(dependencyMap[5]).logoutInternal();
require(dependencyMap[6]).transitionTo(Routes.DEFAULT_LOGGED_OUT);
});
}
function saveProfileAndAccountChanges({username, discriminator, email, emailToken, password, avatar, avatarDescription, avatarId, avatarDecoration, newPassword, globalName, legacyUsername, nameplate, primaryGuildId, displayNameStyles, avatarOriginalMd5}) { // fn#61039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:1523, offset: 0x01718c94, size: 619 bytes, params: 2, frame: 32
var skuId;
var value3;
var value4;
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT'});
object = {username: username, email: email, email_token: emailToken, password: password, avatar: avatar,
avatar_description: avatarDescription, avatar_id: avatarId, discriminator: discriminator,
global_name: globalName, legacy_username: legacyUsername, new_password: newPassword};
if (avatarDecoration !== undefined) {
value3 = null;
skuId = value3 == avatarDecoration ? undefined : avatarDecoration.skuId;
object.avatar_decoration_sku_id = value3 != skuId ? skuId : value3;
}
if (nameplate !== undefined) {
value4 = null;
skuId = value4 == nameplate ? undefined : nameplate.skuId;
object.nameplate_sku_id = value4 != skuId ? skuId : value4;
}
if (primaryGuildId !== undefined) {
object.primary_guild_id = primaryGuildId;
}
if (displayNameStyles != null) {
object.display_name_font_id = displayNameStyles.fontId;
object.display_name_effect_id = displayNameStyles.effectId;
object.display_name_colors = displayNameStyles.colors;
} else if (displayNameStyles === null) {
object.display_name_font_id = null;
object.display_name_effect_id = null;
object.display_name_colors = null;
}
const Storage = (StorageModule).Storage;
const value5 = Storage.get(DEVICE_TOKEN);
const devicePushProvider = getDevicePushProvider();
if (devicePushProvider != null && value5 != null) {
object.push_provider = devicePushProvider;
object.push_token = value5;
}
const value9 = Storage.get(DEVICE_VOIP_TOKEN);
if (DEVICE_PUSH_VOIP_PROVIDER != null && value9 != null) {
object.push_voip_provider = DEVICE_PUSH_VOIP_PROVIDER;
object.push_voip_token = value9;
}
const saveProfileAndAccountRequestBinding = saveProfileAndAccountRequest;
const defaultImport2 = InlineUploader;
const buildHeadersForMd5 = defaultImport2.buildHeadersForMd5;
const SafetyScannedUploadSurface = (SafetyScannedUploadSurfacesModule).SafetyScannedUploadSurface;
const USER_DEFAULT_PROFILE_AVATAR = SafetyScannedUploadSurface.USER_DEFAULT_PROFILE_AVATAR;
return saveProfileAndAccountRequestBinding(object, {headers: Reflect.apply(buildHeadersForMd5, defaultImport2,
[{[USER_DEFAULT_PROFILE_AVATAR]: avatarOriginalMd5}])}).then(_fun61040, _fun61041);
function _fun61040(a0) { // fn#61040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:2739, offset: 0x01718eff, size: 118 bytes, params: 2, frame: 15 function _fun61040(a0) { // fn#61040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:2739, offset: 0x01718eff, size: 118 bytes, params: 2, frame: 15
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT_SUCCESS'}); (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT_SUCCESS'});
@@ -223,19 +164,80 @@ function _fun61040(a0) { // fn#61040, source: /ci/build/discord/discord/discord_
function _fun61041(a0) { // fn#61041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:2879, offset: 0x01718f75, size: 62 bytes, params: 2, frame: 13 function _fun61041(a0) { // fn#61041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:2879, offset: 0x01718f75, size: 62 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT_FAILURE', (Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_SUBMIT_FAILURE',
errors: a0.body}); errors: a0.body});
return a0; return a0;
} }
}
function clearErrors() { // fn#61044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3257, offset: 0x0171904f, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_CLEAR_ERRORS'});
}
function resetPendingAccountChanges() { // fn#61045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3372, offset: 0x01719080, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_ACCOUNT_CHANGES'});
}
function resetAllPending() { // fn#61046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3508, offset: 0x017190b1, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_CHANGES'});
}
function resetAllTryItOut() { // fn#61047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3626, offset: 0x017190e2, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_TRY_IT_OUT_CHANGES'});
}
function resetAndCloseUserProfileForm() { // fn#61048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3760, offset: 0x01719113, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_AND_CLOSE_FORM'});
}
function resetPendingLegacyUsernameDisabled() { // fn#61049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:3908, offset: 0x01719144, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_LEGACY_USERNAME_DISABLED'});
}
function resetPendingPrimaryGuildChanges() { // fn#61050, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4077, offset: 0x01719175, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_PROFILE_SETTINGS_RESET_PENDING_PRIMARY_GUILD_CHANGES'});
}
function updateAccount(a0) { // fn#61051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4222, offset: 0x017191a6, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_UPDATE_ACCOUNT',
settings: a0});
}
function resetAccount() { // fn#61052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4337, offset: 0x017191df, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_RESET'});
}
function saveAccountChanges({username, email, emailToken, password, avatar, newPassword, discriminator}, {close}) { // fn#61053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:4436, offset: 0x01719210, size: 417 bytes, params: 3, frame: 20
(Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_SUBMIT'});
object = {username: username, email: email, email_token: emailToken, password: password, avatar: avatar,
new_password: newPassword};
object.discriminator = discriminator != null ? discriminator === '' ? undefined : discriminator : undefined;
const Storage = (StorageModule).Storage;
const value3 = Storage.get(DEVICE_TOKEN);
const devicePushProvider = getDevicePushProvider();
if (devicePushProvider != null && value3 != null) {
object.push_provider = devicePushProvider;
object.push_token = value3;
}
const value7 = Storage.get(DEVICE_VOIP_TOKEN);
if (DEVICE_PUSH_VOIP_PROVIDER != null && value7 != null) {
object.push_voip_provider = DEVICE_PUSH_VOIP_PROVIDER;
object.push_voip_token = value7;
}
const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch;
const ME = Endpoints.ME;
return Reflect.apply(patch, HTTP, [{url: ME, oldFormErrors: true, body: object,
rejectWithError: false}]).then(_fun61054, _fun61055);
function _fun61054(a0) { // fn#61054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:5007, offset: 0x017193b1, size: 370 bytes, params: 2, frame: 20 function _fun61054(a0) { // fn#61054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:5007, offset: 0x017193b1, size: 370 bytes, params: 2, frame: 20
const body = a0.body; const body = a0.body;
const token = body.token; const token = body.token;
delete body.token; delete body.token;
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPDATE_TOKEN', token: token, (Dispatcher).dispatch({type: 'UPDATE_TOKEN', token: token,
userId: body.id}); userId: body.id});
const defaultImport2 = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport2 = Dispatcher;
defaultImport2.dispatch({type: 'CURRENT_USER_UPDATE', user: body}); defaultImport2.dispatch({type: 'CURRENT_USER_UPDATE', user: body});
if (avatar !== undefined) { if (avatar !== undefined) {
(require(7621) /* metro dependency 7621: trackUserAvatarUpdated */).trackUserAvatarUpdated({avatarHash: body.avatar}); (require(7621) /* metro dependency 7621: trackUserAvatarUpdated */).trackUserAvatarUpdated({avatarHash: body.avatar});
@@ -256,8 +258,14 @@ function _fun61054(a0) { // fn#61054, source: /ci/build/discord/discord/discord_
function _fun61055(a0) { // fn#61055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:5476, offset: 0x01719523, size: 62 bytes, params: 2, frame: 13 function _fun61055(a0) { // fn#61055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7798:5476, offset: 0x01719523, size: 62 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_SUBMIT_FAILURE', (Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_SUBMIT_FAILURE',
errors: a0.body}); errors: a0.body});
return a0; return a0;
} }
}
}
global.__d(_fun61030, 7620, [5, 661, 5079, 694, 507, 5076, 1230, 587, 7618, 7615, 7621, 7508,
2]) /* metro module 7620, dependencies: [5, 661, 5079, 694, 507, 5076, 1230, 587, 7618, 7615, 7621, 7508, 2] */;
+156 -147
View File
@@ -1,18 +1,22 @@
/* Metro module 7896; source: actions/UserSettingsActionCreators.tsx; dependencies: [5, 3964, 1311, 1310, 661, 1313, 1362, 1314, 1345, 694, 3829, 2] */ /* Metro module 7896; source: actions/UserSettingsActionCreators.tsx; dependencies: [5, 3964, 1311, 1310, 661, 1313, 1362, 1314, 1345, 694, 3829, 2] */
import Module00005 from '../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import ThemeStore from '../modules/user_settings/ThemeStore.tsx'; /* Metro dependency 1310 */
import SelectivelySyncedUserSettingsStore from '../modules/user_settings/SelectivelySyncedUserSettingsStore.tsx'; /* Metro dependency 1311 */
import ClientThemesBackgroundStore from '../modules/client_themes/ClientThemesBackgroundStore.tsx'; /* Metro dependency 3964 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
import * as ThemeConstantsModule from '../modules/user_settings/ThemeConstants.tsx'; /* Metro dependency 1313 */
import * as Preloaded_user_settingsModule from '../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/preloaded_user_settings.tsx'; /* Metro dependency 1314 */
import * as WrappersModule from '../external/discord_common/js/packages/protos/google/protobuf/wrappers.tsx'; /* Metro dependency 1345 */
import * as UserSettingsProtoActionCreatorsModule from '../modules/user_settings/UserSettingsProtoActionCreators.tsx'; /* Metro dependency 1362 */
function _fun63228(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:6, offset: 0x01b76eaa, size: 333 bytes, params: 8, frame: 19 function _fun63228(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:6, offset: 0x01b76eaa, size: 333 bytes, params: 8, frame: 19
var object2;
let env0_0 = require; let env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */; ThemeConstantsModule.SystemTheme;
const clientThemesBackgroundStore = importDefault(3964) /* metro dependency 3964: ClientThemesBackgroundStore */; object = {overrideLocale: overrideLocale, updatedUnsyncedSettings: updatedUnsyncedSettings,
const selectivelySyncedUserSettingsStore = importDefault(1311) /* metro dependency 1311: SelectivelySyncedUserSettingsStore */;
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
const env0_7 = (require(661) /* metro dependency 661: Constants */).ThemeTypes;
const themeConstantsModule = require(1313) /* metro dependency 1313: ThemeConstants */;
themeConstantsModule.SystemTheme;
const env0_8 = themeConstantsModule.SystemThemeState;
object2 = {overrideLocale: overrideLocale, updatedUnsyncedSettings: updatedUnsyncedSettings,
setShouldSyncTextSettings: setShouldSyncTextSettings, setShouldSyncTextSettings: setShouldSyncTextSettings,
setShouldSyncAppearanceSettings: setShouldSyncAppearanceSettings, applySettingsOverride: applySettingsOverride, setShouldSyncAppearanceSettings: setShouldSyncAppearanceSettings, applySettingsOverride: applySettingsOverride,
clearSettingsOverride: function(a0) { clearSettingsOverride: function(a0) {
@@ -24,8 +28,8 @@ function _fun63228(global, require, importDefault, importAll, module, exports, d
var INFREQUENT_USER_ACTION = require(dependencyMap[6]).UserSettingsDelay.INFREQUENT_USER_ACTION; var INFREQUENT_USER_ACTION = require(dependencyMap[6]).UserSettingsDelay.INFREQUENT_USER_ACTION;
return PreloadedUserSettingsActionCreators.updateAsync('localization', _fun63241, INFREQUENT_USER_ACTION); return PreloadedUserSettingsActionCreators.updateAsync('localization', _fun63241, INFREQUENT_USER_ACTION);
}, updateTheme: updateTheme}; }, updateTheme: updateTheme};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UserSettingsActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/UserSettingsActionCreators.tsx');
exports.default = object2; exports.default = object;
exports.saveGuildFolders = function(a0) { exports.saveGuildFolders = function(a0) {
var env0_0 = a0; var env0_0 = a0;
var PreloadedUserSettingsActionCreators = require(dependencyMap[6]).PreloadedUserSettingsActionCreators; var PreloadedUserSettingsActionCreators = require(dependencyMap[6]).PreloadedUserSettingsActionCreators;
@@ -33,10 +37,8 @@ function _fun63228(global, require, importDefault, importAll, module, exports, d
return PreloadedUserSettingsActionCreators.updateAsync('guildFolders', _fun63245, FREQUENT_USER_ACTION); return PreloadedUserSettingsActionCreators.updateAsync('guildFolders', _fun63245, FREQUENT_USER_ACTION);
}; };
exports.saveClientTheme = saveClientTheme; exports.saveClientTheme = saveClientTheme;
}
function convertThemeToProto(a0) { // fn#63229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:204, offset: 0x01b76ff7, size: 243 bytes, params: 2, frame: 12 function convertThemeToProto(a0) { // fn#63229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:204, offset: 0x01b76ff7, size: 243 bytes, params: 2, frame: 12
const Theme = (require(1314) /* metro dependency 1314: preloaded_user_settings */).Theme; const Theme = (Preloaded_user_settingsModule).Theme;
const DARK = ThemeTypes.DARK; const DARK = ThemeTypes.DARK;
if (DARK !== a0) { if (DARK !== a0) {
var LIGHT = ThemeTypes.LIGHT; var LIGHT = ThemeTypes.LIGHT;
@@ -57,57 +59,57 @@ function convertThemeToProto(a0) { // fn#63229, source: /ci/build/discord/discor
function convertClientThemeSettingsToProto(a0) { // fn#63230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:447, offset: 0x01b770ea, size: 173 bytes, params: 2, frame: 17 function convertClientThemeSettingsToProto(a0) { // fn#63230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:447, offset: 0x01b770ea, size: 173 bytes, params: 2, frame: 17
var r1; var r1;
var object2; var object;
const object4 = {}; const object3 = {};
const backgroundGradientPresetId = a0.backgroundGradientPresetId; const backgroundGradientPresetId = a0.backgroundGradientPresetId;
const value = undefined; const value = undefined;
object4.backgroundGradientPresetId = backgroundGradientPresetId != null ? (require(1345) /* metro dependency 1345: wrappers */).UInt32Value.create({value: a0.backgroundGradientPresetId}) : value; object3.backgroundGradientPresetId = backgroundGradientPresetId != null ? (require(1345) /* metro dependency 1345: wrappers */).UInt32Value.create({value: a0.backgroundGradientPresetId}) : value;
let customUserThemeSettings = a0.customUserThemeSettings; let customUserThemeSettings = a0.customUserThemeSettings;
if (customUserThemeSettings != null) { if (customUserThemeSettings != null) {
object2 = {}; object = {};
customUserThemeSettings = a0.customUserThemeSettings; customUserThemeSettings = a0.customUserThemeSettings;
object2.colors = customUserThemeSettings.colors; object.colors = customUserThemeSettings.colors;
customUserThemeSettings = a0.customUserThemeSettings; customUserThemeSettings = a0.customUserThemeSettings;
object2.gradientColorStops = customUserThemeSettings.gradientColorStops; object.gradientColorStops = customUserThemeSettings.gradientColorStops;
customUserThemeSettings = a0.customUserThemeSettings; customUserThemeSettings = a0.customUserThemeSettings;
object2.gradientAngle = customUserThemeSettings.gradientAngle; object.gradientAngle = customUserThemeSettings.gradientAngle;
customUserThemeSettings = a0.customUserThemeSettings; customUserThemeSettings = a0.customUserThemeSettings;
object2.baseMix = customUserThemeSettings.baseMix; object.baseMix = customUserThemeSettings.baseMix;
r1 = object2; r1 = object;
} else { } else {
r1 = value; r1 = value;
} }
object4.customUserThemeSettings = r1; object3.customUserThemeSettings = r1;
return object4; return object3;
} }
function overrideLocale(a0) { // fn#63231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:907, offset: 0x01b77197, size: 57 bytes, params: 2, frame: 13 function overrideLocale(a0) { // fn#63231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:907, offset: 0x01b77197, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_LOCALE_OVERRIDE', (Dispatcher).dispatch({type: 'USER_SETTINGS_LOCALE_OVERRIDE',
locale: a0}); locale: a0});
} }
function updatedUnsyncedSettings(a0) { // fn#63232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:992, offset: 0x01b771d0, size: 55 bytes, params: 2, frame: 13 function updatedUnsyncedSettings(a0) { // fn#63232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:992, offset: 0x01b771d0, size: 55 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE', (Dispatcher).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE',
settings: a0}); settings: a0});
} }
function setShouldSyncTextSettings(a0) { // fn#63233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1088, offset: 0x01b77207, size: 306 bytes, params: 2, frame: 20 function setShouldSyncTextSettings(a0) { // fn#63233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1088, offset: 0x01b77207, size: 306 bytes, params: 2, frame: 20
var r6; var r6;
var object; var object2;
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */; const defaultImport = Dispatcher;
const dispatch = defaultImport.dispatch; const dispatch = defaultImport.dispatch;
if (a0) { if (a0) {
r6 = {}; r6 = {};
} else { } else {
object = {}; object2 = {};
object.inlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia.getSetting(); object2.inlineAttachmentMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineAttachmentMedia.getSetting();
object.inlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia.getSetting(); object2.inlineEmbedMedia = (require(3829) /* metro dependency 3829: UserSettings */).InlineEmbedMedia.getSetting();
object.renderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds.getSetting(); object2.renderEmbeds = (require(3829) /* metro dependency 3829: UserSettings */).RenderEmbeds.getSetting();
object.renderReactions = (require(3829) /* metro dependency 3829: UserSettings */).RenderReactions.getSetting(); object2.renderReactions = (require(3829) /* metro dependency 3829: UserSettings */).RenderReactions.getSetting();
object.animateEmoji = (require(3829) /* metro dependency 3829: UserSettings */).AnimateEmoji.getSetting(); object2.animateEmoji = (require(3829) /* metro dependency 3829: UserSettings */).AnimateEmoji.getSetting();
object.animateStickers = (require(3829) /* metro dependency 3829: UserSettings */).AnimateStickers.getSetting(); object2.animateStickers = (require(3829) /* metro dependency 3829: UserSettings */).AnimateStickers.getSetting();
object.gifAutoPlay = (require(3829) /* metro dependency 3829: UserSettings */).GifAutoPlay.getSetting(); object2.gifAutoPlay = (require(3829) /* metro dependency 3829: UserSettings */).GifAutoPlay.getSetting();
r6 = object; r6 = object2;
} }
Reflect.apply(dispatch, defaultImport, [{type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE', Reflect.apply(dispatch, defaultImport, [{type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {text: {shouldSync: a0, settings: r6}}}]); changes: {text: {shouldSync: a0, settings: r6}}}]);
@@ -115,70 +117,7 @@ function setShouldSyncTextSettings(a0) { // fn#63233, source: /ci/build/discord/
function setShouldSyncAppearanceSettings(a0) { // fn#63234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1635, offset: 0x01b77339, size: 34 bytes, params: 2, frame: 11 function setShouldSyncAppearanceSettings(a0) { // fn#63234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1635, offset: 0x01b77339, size: 34 bytes, params: 2, frame: 11
const env0_0 = a0; const env0_0 = a0;
return env0_3(_fun63236)(); return Module00005(_fun63236)();
}
function applySettingsOverride(a0) { // fn#63238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2371, offset: 0x01b7751c, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_OVERRIDE_APPLY',
settings: a0});
}
function updateLocale(a0) { // fn#63240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2573, offset: 0x01b77591, size: 85 bytes, params: 2, frame: 17
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
return Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['localization', _fun63241,
INFREQUENT_USER_ACTION]);
}
function updateTheme(a0) { // fn#63242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2751, offset: 0x01b77627, size: 169 bytes, params: 2, frame: 20
var PreloadedUserSettingsActionCreators;
const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {appearance: {settings: {theme: a0}}}});
if (SelectivelySyncedUserSettingsStore.shouldSync('appearance')) {
PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
PreloadedUserSettingsActionCreators.updateAsync('appearance', _fun63243,
(require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay.INFREQUENT_USER_ACTION);
}
}
function saveGuildFolders(a0) { // fn#63244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3166, offset: 0x01b776f0, size: 85 bytes, params: 2, frame: 17
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
const FREQUENT_USER_ACTION = UserSettingsDelay.FREQUENT_USER_ACTION;
return Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['guildFolders', _fun63245,
FREQUENT_USER_ACTION]);
}
function saveClientTheme({backgroundGradientPresetId, customUserThemeSettings, theme, useSystemTheme}) { // fn#63247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3709, offset: 0x01b778a2, size: 328 bytes, params: 2, frame: 26
let value = a1;
const r4 = value !== undefined ? value : (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay.INFREQUENT_USER_ACTION;
value = theme === 'system';
let r15 = value ? SystemThemeState.ON : SystemThemeState.OFF;
r15 = useSystemTheme ?? r15;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE',
settings: {useSystemTheme: r15}});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {appearance: {settings: {clientThemeSettings: {backgroundGradientPresetId: backgroundGradientPresetId,
customUserThemeSettings: customUserThemeSettings}, theme: value ? undefined : theme}}}});
if (SelectivelySyncedUserSettingsStore.shouldSync('appearance')) {
return (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators.updateAsync('appearance',
function(a0) {
a0.theme = convertThemeToProto(theme);
a0.clientThemeSettings = convertClientThemeSettingsToProto({backgroundGradientPresetId: backgroundGradientPresetId,
customUserThemeSettings: customUserThemeSettings});
}, r4);
}
}
function* _fun63236() { // fn#63236, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1641, offset: 0x01b77364, size: 301 bytes, params: 1, frame: 24 function* _fun63236() { // fn#63236, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1641, offset: 0x01b77364, size: 301 bytes, params: 1, frame: 24
var environment; var environment;
var r8; var r8;
@@ -197,7 +136,7 @@ function* _fun63236() { // fn#63236, original name: ?anon_0_, source: /ci/build/
var value7; var value7;
var value8; var value8;
var value9; var value9;
var object2; var object4;
var gradientPreset; var gradientPreset;
var error; var error;
if (false) { if (false) {
@@ -287,38 +226,22 @@ function* _fun63236() { // fn#63236, original name: ?anon_0_, source: /ci/build/
const value10 = undefined; const value10 = undefined;
const value11 = binding(env2_2[9]); const value11 = binding(env2_2[9]);
const dispatch = value11.dispatch; const dispatch = value11.dispatch;
const object = {}; const object3 = {};
object.shouldSync = require; object3.shouldSync = require;
if (require) { if (require) {
r8 = {}; r8 = {};
} else { } else {
object2 = {}; object4 = {};
object2.theme = env2_6.theme; object4.theme = env2_6.theme;
gradientPreset = env2_4.gradientPreset; gradientPreset = env2_4.gradientPreset;
object2.clientThemeSettings = {backgroundGradientPresetId: gradientPreset == null ? value10 : gradientPreset.id}; object4.clientThemeSettings = {backgroundGradientPresetId: gradientPreset == null ? value10 : gradientPreset.id};
object2.developerMode = env2_0(env2_2[10]).DeveloperMode.getSetting(); object4.developerMode = env2_0(env2_2[10]).DeveloperMode.getSetting();
r8 = object2; r8 = object4;
} }
object.settings = r8; object3.settings = r8;
Reflect.apply(dispatch, value11, [{type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE', changes: {appearance: object}}]); Reflect.apply(dispatch, value11, [{type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {appearance: object3}}]);
return value10; return value10;
}
function _fun63241(a0) { // fn#63241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2648, offset: 0x01b775e6, size: 65 bytes, params: 2, frame: 13
const value = environment.__proto__;
const StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue;
a0.locale = StringValue.create({value: env0_0});
}
function _fun63243(a0) { // fn#63243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2973, offset: 0x01b776d0, size: 32 bytes, params: 2, frame: 11
const value = environment.__proto__;
a0.theme = convertThemeToProto(env0_0);
}
function _fun63245(a0) { // fn#63245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3274, offset: 0x01b77745, size: 37 bytes, params: 2, frame: 11
a0.folders = env0_0.map(_fun63246);
}
function _fun63237(a0) { // fn#63237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1744, offset: 0x01b77491, size: 139 bytes, params: 2, frame: 17 function _fun63237(a0) { // fn#63237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:1744, offset: 0x01b77491, size: 139 bytes, params: 2, frame: 17
let value = environment.__proto__.__proto__.__proto__; let value = environment.__proto__.__proto__.__proto__;
let binding = env3_9; let binding = env3_9;
@@ -326,46 +249,132 @@ function _fun63237(a0) { // fn#63237, source: /ci/build/discord/discord/discord_
const value2 = undefined; const value2 = undefined;
a0.theme = binding(theme); a0.theme = binding(theme);
binding = env3_10; binding = env3_10;
const object2 = {}; const object = {};
const gradientPreset = env3_4.gradientPreset; const gradientPreset = env3_4.gradientPreset;
object2.backgroundGradientPresetId = gradientPreset == null ? value2 : gradientPreset.id; object.backgroundGradientPresetId = gradientPreset == null ? value2 : gradientPreset.id;
const ClientThemeSettings = env3_0(env3_2[10]).ClientThemeSettings; const ClientThemeSettings = env3_0(env3_2[10]).ClientThemeSettings;
value = ClientThemeSettings.getSetting(); value = ClientThemeSettings.getSetting();
object2.customUserThemeSettings = value == null ? value2 : value.customUserThemeSettings; object.customUserThemeSettings = value == null ? value2 : value.customUserThemeSettings;
a0.clientThemeSettings = binding(object2); a0.clientThemeSettings = binding(object);
return value2; return value2;
} }
}
}
function applySettingsOverride(a0) { // fn#63238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2371, offset: 0x01b7751c, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'USER_SETTINGS_OVERRIDE_APPLY',
settings: a0});
}
function updateLocale_63240(a0) { // fn#63240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2573, offset: 0x01b77591, size: 85 bytes, params: 2, frame: 17
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (UserSettingsProtoActionCreatorsModule).UserSettingsDelay;
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
return Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['localization', _fun63241,
INFREQUENT_USER_ACTION]);
function _fun63241(a0) { // fn#63241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2648, offset: 0x01b775e6, size: 65 bytes, params: 2, frame: 13
const value = environment.__proto__;
const StringValue = (WrappersModule).StringValue;
a0.locale = StringValue.create({value: env0_0});
}
}
function updateTheme(a0) { // fn#63242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2751, offset: 0x01b77627, size: 169 bytes, params: 2, frame: 20
var PreloadedUserSettingsActionCreators;
const env0_0 = a0;
(Dispatcher).dispatch({type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {appearance: {settings: {theme: a0}}}});
const selectivelySyncedUserSettingsStoreBinding = SelectivelySyncedUserSettingsStore;
if (selectivelySyncedUserSettingsStoreBinding.shouldSync('appearance')) {
PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
PreloadedUserSettingsActionCreators.updateAsync('appearance', _fun63243,
(require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay.INFREQUENT_USER_ACTION);
}
function _fun63243(a0) { // fn#63243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:2973, offset: 0x01b776d0, size: 32 bytes, params: 2, frame: 11
const value = environment.__proto__;
a0.theme = convertThemeToProto(env0_0);
}
}
function saveGuildFolders(a0) { // fn#63244, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3166, offset: 0x01b776f0, size: 85 bytes, params: 2, frame: 17
const env0_0 = a0;
const PreloadedUserSettingsActionCreators = (UserSettingsProtoActionCreatorsModule).PreloadedUserSettingsActionCreators;
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
const UserSettingsDelay = (UserSettingsProtoActionCreatorsModule).UserSettingsDelay;
const FREQUENT_USER_ACTION = UserSettingsDelay.FREQUENT_USER_ACTION;
return Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['guildFolders', _fun63245,
FREQUENT_USER_ACTION]);
function _fun63245(a0) { // fn#63245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3274, offset: 0x01b77745, size: 37 bytes, params: 2, frame: 11
a0.folders = env0_0.map(_fun63246);
function _fun63246(a0) { // fn#63246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3295, offset: 0x01b7776a, size: 312 bytes, params: 2, frame: 18 function _fun63246(a0) { // fn#63246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3295, offset: 0x01b7776a, size: 312 bytes, params: 2, frame: 18
var Int64Value; var Int64Value;
var UInt64Value; var UInt64Value;
var StringValue; var StringValue;
const GuildFolder = (require(1314) /* metro dependency 1314: preloaded_user_settings */).GuildFolder; const GuildFolder = (Preloaded_user_settingsModule).GuildFolder;
let create = GuildFolder.create; let create = GuildFolder.create;
let object2 = {}; let object = {};
object2.guildIds = a0.guildIds; object.guildIds = a0.guildIds;
const value2 = Reflect.apply(create, GuildFolder, [object2]); const value2 = Reflect.apply(create, GuildFolder, [object]);
if (a0.folderId != null) { if (a0.folderId != null) {
Int64Value = (require(1345) /* metro dependency 1345: wrappers */).Int64Value; Int64Value = (require(1345) /* metro dependency 1345: wrappers */).Int64Value;
create = Int64Value.create; create = Int64Value.create;
object2 = {}; object = {};
object2.value = global.String(a0.folderId); object.value = global.String(a0.folderId);
value2.id = Reflect.apply(create, Int64Value, [object2]); value2.id = Reflect.apply(create, Int64Value, [object]);
} }
if (a0.folderColor != null) { if (a0.folderColor != null) {
UInt64Value = (require(1345) /* metro dependency 1345: wrappers */).UInt64Value; UInt64Value = (require(1345) /* metro dependency 1345: wrappers */).UInt64Value;
create = UInt64Value.create; create = UInt64Value.create;
object2 = {}; object = {};
object2.value = global.String(a0.folderColor); object.value = global.String(a0.folderColor);
value2.color = Reflect.apply(create, UInt64Value, [object2]); value2.color = Reflect.apply(create, UInt64Value, [object]);
} }
if (a0.folderName != null && a0.folderName !== '') { if (a0.folderName != null && a0.folderName !== '') {
StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue; StringValue = (require(1345) /* metro dependency 1345: wrappers */).StringValue;
create = StringValue.create; create = StringValue.create;
object2 = {}; object = {};
object2.value = global.String(a0.folderName); object.value = global.String(a0.folderName);
value2.name = Reflect.apply(create, StringValue, [object2]); value2.name = Reflect.apply(create, StringValue, [object]);
} }
return value2; return value2;
} }
}
}
function saveClientTheme({backgroundGradientPresetId, customUserThemeSettings, theme, useSystemTheme}) { // fn#63247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8074:3709, offset: 0x01b778a2, size: 328 bytes, params: 2, frame: 26
let value = a1;
const r4 = value !== undefined ? value : (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay.INFREQUENT_USER_ACTION;
value = theme === 'system';
let r15 = value ? SystemThemeState.ON : SystemThemeState.OFF;
r15 = useSystemTheme ?? r15;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UNSYNCED_USER_SETTINGS_UPDATE',
settings: {useSystemTheme: r15}});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'SELECTIVELY_SYNCED_USER_SETTINGS_UPDATE',
changes: {appearance: {settings: {clientThemeSettings: {backgroundGradientPresetId: backgroundGradientPresetId,
customUserThemeSettings: customUserThemeSettings}, theme: value ? undefined : theme}}}});
const selectivelySyncedUserSettingsStoreBinding = SelectivelySyncedUserSettingsStore;
if (selectivelySyncedUserSettingsStoreBinding.shouldSync('appearance')) {
return (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators.updateAsync('appearance',
function(a0) {
a0.theme = convertThemeToProto(theme);
a0.clientThemeSettings = convertClientThemeSettingsToProto({backgroundGradientPresetId: backgroundGradientPresetId,
customUserThemeSettings: customUserThemeSettings});
}, r4);
}
}
}
global.__d(_fun63228, 7896, [5, 3964, 1311, 1310, 661, 1313, 1362, 1314, 1345, 694, 3829,
2]) /* metro module 7896, dependencies: [5, 3964, 1311, 1310, 661, 1313, 1362, 1314, 1345, 694, 3829, 2] */;
@@ -1,19 +1,22 @@
/* Metro module 7508; source: actions/UserSettingsModalActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 7508; source: actions/UserSettingsModalActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun60561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:6, offset: 0x01705f31, size: 114 bytes, params: 8, frame: 17 function _fun60561(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60561, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:6, offset: 0x01705f31, size: 114 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {close: close_60562, setSection: setSection}; object = {close: close_60562, setSection: setSection};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/UserSettingsModalActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/UserSettingsModalActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function close_60562() { // fn#60562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:99, offset: 0x01705fa3, size: 48 bytes, params: 1, frame: 13 function close_60562() { // fn#60562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:99, offset: 0x01705fa3, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_CLOSE'}); (Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_CLOSE'});
} }
function setSection(a0) { // fn#60563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:161, offset: 0x01705fd3, size: 54 bytes, params: 2, frame: 13 function setSection(a0) { // fn#60563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7686:161, offset: 0x01705fd3, size: 54 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_SET_SECTION', (Dispatcher).dispatch({type: 'USER_SETTINGS_MODAL_SET_SECTION',
section: a0}); section: a0});
} }
}
global.__d(_fun60561, 7508, [694, 2]) /* metro module 7508, dependencies: [694, 2] */;
+80 -72
View File
@@ -1,43 +1,66 @@
/* Metro module 15205; source: actions/WebhooksActionCreators.tsx; dependencies: [661, 694, 507, 22, 2] */ /* Metro module 15205; source: actions/WebhooksActionCreators.tsx; dependencies: [661, 694, 507, 22, 2] */
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun116293(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:6, offset: 0x02484034, size: 191 bytes, params: 8, frame: 18 function _fun116293(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:6, offset: 0x02484034, size: 191 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
const env0_4 = ['Spidey Bot', 'Captain Hook']; const env0_4 = ['Spidey Bot', 'Captain Hook'];
object2 = {fetchForGuild: fetchForGuild, fetchForChannel: fetchForChannel, create: create_116300, object = {fetchForGuild: fetchForGuild, fetchForChannel: fetchForChannel, create: create_116300, delete: _fun116302,
delete: _fun116302, update: update_116304}; update: update_116304};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/WebhooksActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/WebhooksActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function fetchForGuild(a0) { // fn#116294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:151, offset: 0x024840f3, size: 159 bytes, params: 2, frame: 17 function fetchForGuild(a0) { // fn#116294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:151, offset: 0x024840f3, size: 159 bytes, params: 2, frame: 17
var object2;
const env0_0 = a0; const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOKS_FETCHING', guildId: a0}); (Dispatcher).dispatch({type: 'WEBHOOKS_FETCHING', guildId: a0});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.GUILD_WEBHOOKS(a0); object.url = Endpoints.GUILD_WEBHOOKS(a0);
let value = Reflect.apply(get, HTTP, [object2]); let value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun116295); value = value.then(_fun116295);
value.catch(_fun116296); value.catch(_fun116296);
function _fun116295({body}) { // fn#116295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:309, offset: 0x02484192, size: 73 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'WEBHOOKS_UPDATE',
guildId: env0_0, webhooks: body});
}
function _fun116296({body}) { // fn#116296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:394, offset: 0x024841db, size: 77 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'WEBHOOKS_UPDATE', guildId: env0_0,
error: body.message});
}
} }
function fetchForChannel(a0, a1) { // fn#116297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:480, offset: 0x02484228, size: 170 bytes, params: 3, frame: 18 function fetchForChannel(a0, a1) { // fn#116297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:480, offset: 0x02484228, size: 170 bytes, params: 3, frame: 18
var object2;
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOKS_FETCHING', guildId: a0, (Dispatcher).dispatch({type: 'WEBHOOKS_FETCHING', guildId: a0,
channelId: a1}); channelId: a1});
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': true}; object = {'url': null, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.CHANNEL_WEBHOOKS(a1); object.url = Endpoints.CHANNEL_WEBHOOKS(a1);
let value = Reflect.apply(get, HTTP, [object2]); let value = Reflect.apply(get, HTTP, [object]);
value = value.then(_fun116298); value = value.then(_fun116298);
value.catch(_fun116299); value.catch(_fun116299);
function _fun116298({body}) { // fn#116298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:656, offset: 0x024842d2, size: 81 bytes, params: 2, frame: 14
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'WEBHOOKS_UPDATE',
guildId: env0_0, channelId: require, webhooks: body});
}
function _fun116299({body}) { // fn#116299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:753, offset: 0x024841db, size: 77 bytes, params: 2, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'WEBHOOKS_UPDATE', guildId: env0_0,
error: body.message});
}
} }
function create_116300(a0, a1, a2) { // fn#116300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:846, offset: 0x02484323, size: 184 bytes, params: 4, frame: 17 function create_116300(a0, a1, a2) { // fn#116300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:846, offset: 0x02484323, size: 184 bytes, params: 4, frame: 17
@@ -52,73 +75,58 @@ function create_116300(a0, a1, a2) { // fn#116300, source: /ci/build/discord/dis
value = importDefault(22) /* metro dependency 22 */; value = importDefault(22) /* metro dependency 22 */;
r5 = binding[value.random(0, binding.length - 1)]; r5 = binding[value.random(0, binding.length - 1)];
} }
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post; const post = HTTP.post;
const object2 = {}; const object = {};
object2.url = Endpoints.CHANNEL_WEBHOOKS(a1); object.url = Endpoints.CHANNEL_WEBHOOKS(a1);
object2.body = {name: r5}; object.body = {name: r5};
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(post, HTTP, [object2]).then(_fun116301); return Reflect.apply(post, HTTP, [object]).then(_fun116301);
function _fun116301({body}) { // fn#116301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1004, offset: 0x024843db, size: 71 bytes, params: 2, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'WEBHOOK_CREATE', guildId: env0_0,
webhook: body});
return body;
}
} }
function _fun116302(a0, a1) { // fn#116302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1092, offset: 0x02484422, size: 107 bytes, params: 3, frame: 15 function _fun116302(a0, a1) { // fn#116302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1092, offset: 0x02484422, size: 107 bytes, params: 3, frame: 15
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const del = HTTP.del; const del = HTTP.del;
const object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false}; const object = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
object2.url = Endpoints.WEBHOOK(a1); object.url = Endpoints.WEBHOOK(a1);
return Reflect.apply(del, HTTP, [object2]).then(_fun116303); return Reflect.apply(del, HTTP, [object]).then(_fun116303);
function _fun116303() { // fn#116303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1178, offset: 0x0248448d, size: 67 bytes, params: 1, frame: 14
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'WEBHOOK_DELETE', guildId: env0_0,
webhookId: require});
}
} }
function update_116304(a0, a1, a2) { // fn#116304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1257, offset: 0x024844d0, size: 113 bytes, params: 4, frame: 15 function update_116304(a0, a1, a2) { // fn#116304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1257, offset: 0x024844d0, size: 113 bytes, params: 4, frame: 15
const env0_0 = a0; const env0_0 = a0;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const patch = HTTP.patch; const patch = HTTP.patch;
const object2 = {}; const object = {};
object2.url = Endpoints.WEBHOOK(a1); object.url = Endpoints.WEBHOOK(a1);
object2.body = a2; object.body = a2;
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = false; object.rejectWithError = false;
return Reflect.apply(patch, HTTP, [object2]).then(_fun116305); return Reflect.apply(patch, HTTP, [object]).then(_fun116305);
}
function _fun116295({body}) { // fn#116295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:309, offset: 0x02484192, size: 73 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOKS_UPDATE',
guildId: env0_0, webhooks: body});
}
function _fun116296({body}) { // fn#116296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:394, offset: 0x024841db, size: 77 bytes, params: 2, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOKS_UPDATE', guildId: env0_0,
error: body.message});
}
function _fun116298({body}) { // fn#116298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:656, offset: 0x024842d2, size: 81 bytes, params: 2, frame: 14
const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOKS_UPDATE',
guildId: env0_0, channelId: require, webhooks: body});
}
function _fun116301({body}) { // fn#116301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1004, offset: 0x024843db, size: 71 bytes, params: 2, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOK_CREATE', guildId: env0_0,
webhook: body});
return body;
}
function _fun116303() { // fn#116303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1178, offset: 0x0248448d, size: 67 bytes, params: 1, frame: 14
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOK_DELETE', guildId: env0_0,
webhookId: require});
}
function _fun116305({body}) { // fn#116305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1354, offset: 0x02484541, size: 71 bytes, params: 2, frame: 13 function _fun116305({body}) { // fn#116305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15402:1354, offset: 0x02484541, size: 71 bytes, params: 2, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'WEBHOOK_UPDATE', guildId: env0_0, (Dispatcher).dispatch({type: 'WEBHOOK_UPDATE', guildId: env0_0,
webhook: body}); webhook: body});
return body; return body;
} }
}
}
global.__d(_fun116293, 15205, [661, 694, 507, 22, 2]) /* metro module 15205, dependencies: [661, 694, 507, 22, 2] */;
+107 -78
View File
@@ -1,15 +1,20 @@
/* Metro module 4496; source: actions/native/AlertActionCreators.tsx; dependencies: [31, 33, 4080, 694, 4497, 1244, 1357, 4500, 4596, 4596, 1962, 2] */ /* Metro module 4496; source: actions/native/AlertActionCreators.tsx; dependencies: [31, 33, 4080, 694, 4497, 1244, 1357, 4500, 4596, 4596, 1962, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as MobileVisualRefreshExperimentModule from '../../modules/themes/experiments/MobileVisualRefreshExperiment.tsx'; /* Metro dependency 1357 */
function _fun38356(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:6, offset: 0x010bdb3a, size: 202 bytes, params: 8, frame: 18 function _fun38356(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:6, offset: 0x010bdb3a, size: 202 bytes, params: 8, frame: 18
var object2;
let env0_0 = require; let env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */; ReactModule;
let value = require(33) /* metro dependency 33 */; let value = JsxRuntimeModule;
const env0_3 = value.jsx; const env0_3 = value.jsx;
const env0_4 = value.Fragment; const env0_4 = value.Fragment;
const env0_5 = value.jsxs; const env0_5 = value.jsxs;
object2 = {openLazy: function(a0) { object = {openLazy: function(a0) {
var importer = a0.importer; var importer = a0.importer;
var hideActionSheet = a0.hideActionSheet; var hideActionSheet = a0.hideActionSheet;
var env0_0 = !(hideActionSheet !== undefined) || hideActionSheet; var env0_0 = !(hideActionSheet !== undefined) || hideActionSheet;
@@ -24,23 +29,31 @@ function _fun38356(global, require, importDefault, importAll, module, exports, d
var value2 = new Promise(_fun38368); var value2 = new Promise(_fun38368);
return value2 instanceof Object ? value2 : value; return value2 instanceof Object ? value2 : value;
}}; }};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/AlertActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/AlertActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function openLazy_38357({importer, hideActionSheet, isDismissable}) { // fn#38357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:171, offset: 0x010bdc04, size: 66 bytes, params: 2, frame: 14 function openLazy_38357({importer, hideActionSheet, isDismissable}) { // fn#38357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:171, offset: 0x010bdc04, size: 66 bytes, params: 2, frame: 14
if (hideActionSheet !== undefined) { if (hideActionSheet !== undefined) {
} }
if (isDismissable !== undefined) { if (isDismissable !== undefined) {
} }
return importer().then(_fun38358); return importer().then(_fun38358);
function _fun38358(a0) { // fn#38358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:237, offset: 0x010bdc46, size: 111 bytes, params: 2, frame: 14
var value2;
if (hideActionSheet) {
value2 = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
(Dispatcher).dispatch({type: 'ALERT_OPEN', alert: a0,
isDismissable: isDismissable});
}
} }
function close_38359() { // fn#38359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:335, offset: 0x010bdcb5, size: 100 bytes, params: 1, frame: 13 function close_38359() { // fn#38359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:335, offset: 0x010bdcb5, size: 100 bytes, params: 1, frame: 13
if (env0_6 != null) { if (env0_6 != null) {
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6); (require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
} }
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ALERT_CLOSE'}); (Dispatcher).dispatch({type: 'ALERT_CLOSE'});
} }
function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:425, offset: 0x010bdd19, size: 1086 bytes, params: 2, frame: 36 function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:425, offset: 0x010bdd19, size: 1086 bytes, params: 2, frame: 36
@@ -49,7 +62,7 @@ function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord
var r8; var r8;
var value; var value;
var intl; var intl;
var object3; var object;
var body; var body;
var title; var title;
var binding; var binding;
@@ -74,39 +87,38 @@ function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BddRzS); value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BddRzS);
r18 = value; r18 = value;
} }
let object4 = {'hideActionSheet': 0, 'isDismissable': 0, 'confirmText': 0}; let object2 = {'hideActionSheet': 0, 'isDismissable': 0, 'confirmText': 0};
silentSetPrototypeOf(object4, null, undefined); silentSetPrototypeOf(object2, null, undefined);
const value2 = copyDataProperties({}, a0, object4, undefined); const value2 = copyDataProperties({}, a0, object2, undefined);
var env0_3; var env0_3;
var env0_4; var env0_4;
const mobileVisualRefreshExperimentModule = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */; if (MobileVisualRefreshExperimentModule.isMobileVisualRefreshEnabled('AlertActionCreators')) {
if (mobileVisualRefreshExperimentModule.isMobileVisualRefreshEnabled('AlertActionCreators')) { object = {};
object3 = {}; copyDataProperties(object, value2, object2);
copyDataProperties(object3, value2, object4); object['confirmText'] = r18;
object3['confirmText'] = r18; object['isDismissable'] = isDismissable;
object3['isDismissable'] = isDismissable; body = object.body;
body = object3.body; confirmText = object.confirmText;
confirmText = object3.confirmText;
r10 = value != body && typeof body !== 'string'; r10 = value != body && typeof body !== 'string';
r10 = r10 && !global.Array.isArray(body); r10 = r10 && !global.Array.isArray(body);
title = object3.title; title = object.title;
r8 = value == title || object3.title === ''; r8 = value == title || object.title === '';
r8 = !r8 ? value != confirmText && typeof confirmText !== 'string' : r8; r8 = !r8 ? value != confirmText && typeof confirmText !== 'string' : r8;
r8 = !r8 ? r10 : r8; r8 = !r8 ? r10 : r8;
r8 = !r8 ? value != object3.footer : r8; r8 = !r8 ? value != object.footer : r8;
r8 = !r8 ? value != object3.helpText : r8; r8 = !r8 ? value != object.helpText : r8;
r8 = !r8 ? value != object3.renderConfirmButton : r8; r8 = !r8 ? value != object.renderConfirmButton : r8;
r8 = !r8 ? value != object3.renderConfirmIcon : r8; r8 = !r8 ? value != object.renderConfirmIcon : r8;
r8 = !r8 ? value != object3.renderConfirmRightIcon : r8; r8 = !r8 ? value != object.renderConfirmRightIcon : r8;
r8 = !r8 ? object3.noDefaultButtons === true : r8; r8 = !r8 ? object.noDefaultButtons === true : r8;
r8 = !r8 ? value != object3.secondaryConfirmText : r8; r8 = !r8 ? value != object.secondaryConfirmText : r8;
r8 = !r8 ? value != object3.onConfirmSecondary : r8; r8 = !r8 ? value != object.onConfirmSecondary : r8;
r8 = !r8 ? object3.isConfirmButtonDisabled === true : r8; r8 = !r8 ? object.isConfirmButtonDisabled === true : r8;
r8 = !r8 ? value != object3.confirming : r8; r8 = !r8 ? value != object.confirming : r8;
r8 = !r8 ? value != object3.style : r8; r8 = !r8 ? value != object.style : r8;
r8 = !r8 ? object3.fillCancelText === true : r8; r8 = !r8 ? object.fillCancelText === true : r8;
r8 = !r8 ? object3.autoCloseOnConfirm === false : r8; r8 = !r8 ? object.autoCloseOnConfirm === false : r8;
r8 = !r8 ? value != object3.onClose : r8; r8 = !r8 ? value != object.onClose : r8;
if (r8) { if (r8) {
if (value != env0_6) { if (value != env0_6) {
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6); (require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
@@ -134,17 +146,32 @@ function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord
moduleValue3 = require(4497) /* metro dependency 4497: useAlertStoreNative */; moduleValue3 = require(4497) /* metro dependency 4497: useAlertStoreNative */;
openAlert = moduleValue3.openAlert; openAlert = moduleValue3.openAlert;
AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal; AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
object4 = {title: title, content: body, extraContent: children}; object2 = {title: title, content: body, extraContent: children};
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4; jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
items2 = [((AlertActionButton) => <AlertActionButton variant={(require(4596) /* metro dependency 4596: Alert */).getAlertButtonVariant(confirmColor)} text={r18} onPress={function() { const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
items2 = [
<AlertActionButton
variant={(require(4596) /* metro dependency 4596: Alert */).getAlertButtonVariant(confirmColor)}
text={r18}
onPress={function() {
env0_5 = true; env0_5 = true;
if (onConfirm != null) { if (onConfirm != null) {
onConfirm(); onConfirm();
} }
}} />)((require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton)]; }}
items2[1] = value != cancelText ? ((AlertActionButton) => <AlertActionButton variant="secondary" text={cancelText} onPress={onPress_38362} />)((require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton) : value; />,
object4.actions = <>{items2}</>; ];
value = <AlertModal {...object4} />; items2[1] = (
value != cancelText
? ((AlertActionButton) => <AlertActionButton variant="secondary" text={cancelText} onPress={onPress_38362} />)((require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton)
: value
);
object2.actions = (
<>
{items2}
</>
);
value = <AlertModal {...object2} />;
Reflect.apply(openAlert, moduleValue3, [value26, value, _fun38363, {dismissable: isDismissable === true}]); Reflect.apply(openAlert, moduleValue3, [value26, value, _fun38363, {dismissable: isDismissable === true}]);
} }
} else { } else {
@@ -153,26 +180,6 @@ function show_38360(a0) { // fn#38360, source: /ci/build/discord/discord/discord
} }
this.openLazy({importer: importer_38364, hideActionSheet: hideActionSheet, isDismissable: isDismissable}); this.openLazy({importer: importer_38364, hideActionSheet: hideActionSheet, isDismissable: isDismissable});
} }
}
function confirm(a0) { // fn#38367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1966, offset: 0x010be265, size: 51 bytes, params: 2, frame: 11
const env0_1 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun38368);
return promise instanceof Object ? promise : value;
}
function _fun38358(a0) { // fn#38358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:237, offset: 0x010bdc46, size: 111 bytes, params: 2, frame: 14
var value2;
if (hideActionSheet) {
value2 = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
}
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ALERT_OPEN', alert: a0,
isDismissable: isDismissable});
}
function show_38360OnPress_38362() { // fn#38362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1670, owner: show_38360.onPress, offset: 0x010be178, size: 33 bytes, params: 1, frame: 10 function show_38360OnPress_38362() { // fn#38362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1670, owner: show_38360.onPress, offset: 0x010be178, size: 33 bytes, params: 1, frame: 10
if (onCancel != null) { if (onCancel != null) {
onCancel(); onCancel();
@@ -195,24 +202,46 @@ function show_38360Importer() { // fn#38364, source: /ci/build/discord/discord/d
return value.then(function({default: env0_0}) { return value.then(function({default: env0_0}) {
return _fun38366; return _fun38366;
}); });
}
function _fun38368(a0) { // fn#38368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1997, offset: 0x010be298, size: 127 bytes, params: 2, frame: 20
const binding = a0;
const show = binding.show;
const object2 = {onConfirm: onConfirm};
const intl = require(dependencyMap[5]).intl;
object2.cancelText = intl.string(require(dependencyMap[5]).t['ETE/oC']);
object2.onCancel = onCancel;
copyDataProperties(object2, env0_1, dependencyMap);
Reflect.apply(show, binding, [object2]);
}
function _fun38365({default: env0_0}) { // fn#38365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1878, offset: 0x010be211, size: 21 bytes, params: 2, frame: 2 function _fun38365({default: env0_0}) { // fn#38365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1878, offset: 0x010be211, size: 21 bytes, params: 2, frame: 2
return _fun38366; return _fun38366;
}
function _fun38366(a0) { // fn#38366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1893, offset: 0x010be226, size: 63 bytes, params: 2, frame: 14 function _fun38366(a0) { // fn#38366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1893, offset: 0x010be226, size: 63 bytes, params: 2, frame: 14
return ((Component) => <Component {...a0} {...env2_1} {...{['confirmText']: env2_0}} />)(env0_0); return ((Component) => <Component {...a0} {...env2_1} {...{['confirmText']: env2_0}} />)(env0_0);
} }
}
}
}
function confirm(a0) { // fn#38367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1966, offset: 0x010be265, size: 51 bytes, params: 2, frame: 11
const env0_1 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun38368);
return promise instanceof Object ? promise : value;
function _fun38368(a0) { // fn#38368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1997, offset: 0x010be298, size: 127 bytes, params: 2, frame: 20
const binding = a0;
const show = binding.show;
const object = {onConfirm: onConfirm};
const intl = require(dependencyMap[5]).intl;
object.cancelText = intl.string(require(dependencyMap[5]).t['ETE/oC']);
object.onCancel = onCancel;
copyDataProperties(object, env0_1, dependencyMap);
Reflect.apply(show, binding, [object]);
function onConfirm() { // fn#38369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:2012, offset: 0x010be317, size: 18 bytes, params: 1, frame: 11
env0_0(true);
}
function onCancel() { // fn#38370, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:2083, offset: 0x010bad9c, size: 18 bytes, params: 1, frame: 11
env0_0(false);
}
}
}
}
global.__d(_fun38356, 4496, [31, 33, 4080, 694, 4497, 1244, 1357, 4500, 4596, 4596, 1962,
2]) /* metro module 4496, dependencies: [31, 33, 4080, 694, 4497, 1244, 1357, 4500, 4596, 4596, 1962, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,14 +1,15 @@
/* Metro module 6522; source: actions/native/BoostingActionCreators.tsx; dependencies: [5080, 6523, 1962, 2] */ /* Metro module 6522; source: actions/native/BoostingActionCreators.tsx; dependencies: [5080, 6523, 1962, 2] */
import ModalActionCreators from '../ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun51267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:6, offset: 0x0122d5cf, size: 123 bytes, params: 8, frame: 18 function _fun51267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:6, offset: 0x0122d5cf, size: 123 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/BoostingActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/BoostingActionCreators.tsx');
exports.openApplyBoostModal = openApplyBoostModal; exports.openApplyBoostModal = openApplyBoostModal;
exports.openTransferModal = openTransferModal; exports.openTransferModal = openTransferModal;
exports.closeApplyBoostModal = closeApplyBoostModal; exports.closeApplyBoostModal = closeApplyBoostModal;
}
function openApplyBoostModal(a0) { // fn#51268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:231, offset: 0x0122d64a, size: 88 bytes, params: 2, frame: 16 function openApplyBoostModal(a0) { // fn#51268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:231, offset: 0x0122d64a, size: 88 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]); const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy; const pushLazy = defaultImport.pushLazy;
@@ -27,6 +28,9 @@ function openTransferModal({guildBoostSlots, guildId, intent, onResult}) { // fn
} }
function closeApplyBoostModal() { // fn#51270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:532, offset: 0x0122d720, size: 43 bytes, params: 1, frame: 12 function closeApplyBoostModal() { // fn#51270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:532, offset: 0x0122d720, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('PREMIUM_GUILD_SUBSCRIBE_MODAL_KEY'); (ModalActionCreators).popWithKey('PREMIUM_GUILD_SUBSCRIBE_MODAL_KEY');
} }
}
global.__d(_fun51267, 6522, [5080, 6523, 1962, 2]) /* metro module 6522, dependencies: [5080, 6523, 1962, 2] */;
@@ -1,34 +1,34 @@
/* Metro module 16227; source: actions/native/BundleUpdaterActionCreators.tsx; dependencies: [27, 4647, 1244, 2] */ /* Metro module 16227; source: actions/native/BundleUpdaterActionCreators.tsx; dependencies: [27, 4647, 1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
function _fun125476(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16435:6, offset: 0x025d9f5d, size: 149 bytes, params: 8, frame: 18 function _fun125476(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16435:6, offset: 0x025d9f5d, size: 149 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules; object = {prepareUpdate: prepareUpdate, deferUpdate: deferUpdate};
object2 = {prepareUpdate: prepareUpdate, deferUpdate: deferUpdate}; (FileImportTrackerModule).fileFinishedImporting('actions/native/BundleUpdaterActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/BundleUpdaterActionCreators.tsx'); exports.default = object;
exports.default = object2;
}
function prepareUpdate(a0) { // fn#125477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16435:128, offset: 0x025d9ff2, size: 280 bytes, params: 2, frame: 19 function prepareUpdate(a0) { // fn#125477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16435:128, offset: 0x025d9ff2, size: 280 bytes, params: 2, frame: 19
var defaultImport; var defaultImport;
var show; var show;
var object2; var object;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const intl = (IndexNativeModule).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t; const t = (IndexNativeModule).t;
if (a0) { if (a0) {
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */; defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport.show; show = defaultImport.show;
object2 = {}; object = {};
object2.title = intl.string(t.GQZdmI); object.title = intl.string(t.GQZdmI);
object2.body = intl.string(t.Fizu9y); object.body = intl.string(t.Fizu9y);
object2.confirmText = intl.string(t.UefCDS); object.confirmText = intl.string(t.UefCDS);
object2.cancelText = intl.string(t['1SzcG6']); object.cancelText = intl.string(t['1SzcG6']);
object2.onConfirm = function() { object.onConfirm = function() {
var BundleUpdaterManager = NativeModules.BundleUpdaterManager; var BundleUpdaterManager = NativeModules.BundleUpdaterManager;
return BundleUpdaterManager.reload(); return BundleUpdaterManager.reload();
}; };
Reflect.apply(show, defaultImport, [object2]); Reflect.apply(show, defaultImport, [object]);
} }
} }
@@ -38,3 +38,6 @@ function deferUpdate() { // fn#125479, source: /ci/build/discord/discord/discord
} }
} }
}
global.__d(_fun125476, 16227, [27, 4647, 1244, 2]) /* metro module 16227, dependencies: [27, 4647, 1244, 2] */;
@@ -1,16 +1,16 @@
/* Metro module 9087; source: actions/native/CreateChannelModalActionCreators.tsx; dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */ /* Metro module 9087; source: actions/native/CreateChannelModalActionCreators.tsx; dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import ModalActionCreators from '../ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
function _fun71014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:6, offset: 0x01d1235e, size: 168 bytes, params: 8, frame: 19 function _fun71014(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:6, offset: 0x01d1235e, size: 168 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(1383) /* metro dependency 1383: ChannelRecord */).CREATEABLE_NON_VOCAL_CHANNEL_NAME_TYPES; object = {CREATE_CHANNEL_MODAL_KEY: 'CREATE_CHANNEL_MODAL_KEY', open: open_71015, close: close_71017};
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; (FileImportTrackerModule).fileFinishedImporting('actions/native/CreateChannelModalActionCreators.tsx');
object2 = {CREATE_CHANNEL_MODAL_KEY: 'CREATE_CHANNEL_MODAL_KEY', open: open_71015, close: close_71017}; exports.default = object;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/CreateChannelModalActionCreators.tsx');
exports.default = object2;
}
function open_71015(a0, a1, a2, a3) { // fn#71015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:215, offset: 0x01d12406, size: 179 bytes, params: 5, frame: 23 function open_71015(a0, a1, a2, a3) { // fn#71015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:215, offset: 0x01d12406, size: 179 bytes, params: 5, frame: 23
var value5; var value5;
var defaultImport; var defaultImport;
@@ -22,12 +22,6 @@ function open_71015(a0, a1, a2, a3) { // fn#71015, source: /ci/build/discord/dis
guildId: a1, categoryId: a2 ?? value5, cloneChannelId: a3 ?? value5, onChannelCreated: onChannelCreated}, guildId: a1, categoryId: a2 ?? value5, cloneChannelId: a3 ?? value5, onChannelCreated: onChannelCreated},
'CREATE_CHANNEL_MODAL_KEY'); 'CREATE_CHANNEL_MODAL_KEY');
} }
}
function close_71017() { // fn#71017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:511, offset: 0x01d1252c, size: 42 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('CREATE_CHANNEL_MODAL_KEY');
}
function onChannelCreated(a0, a1) { // fn#71016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:397, owner: open_71015.onChannelCreated, offset: 0x01d124b9, size: 115 bytes, params: 3, frame: 14 function onChannelCreated(a0, a1) { // fn#71016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:397, owner: open_71015.onChannelCreated, offset: 0x01d124b9, size: 115 bytes, params: 3, frame: 14
env0_0.close(); env0_0.close();
const value = environment.__proto__; const value = environment.__proto__;
@@ -37,3 +31,13 @@ function onChannelCreated(a0, a1) { // fn#71016, source: /ci/build/discord/disco
} }
} }
}
function close_71017() { // fn#71017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9272:511, offset: 0x01d1252c, size: 42 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('CREATE_CHANNEL_MODAL_KEY');
}
}
global.__d(_fun71014, 9087, [1383, 1379, 4601, 5080, 9083, 1962,
2]) /* metro module 9087, dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */;
@@ -1,22 +1,21 @@
/* Metro module 12041; source: actions/native/CreateGuildActionCreators.tsx; dependencies: [1935, 661, 9151, 2] */ /* Metro module 12041; source: actions/native/CreateGuildActionCreators.tsx; dependencies: [1935, 661, 9151, 2] */
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as InstantInviteUtilsModule from '../../modules/instant_invite/native/InstantInviteUtils.tsx'; /* Metro dependency 9151 */
function _fun92529(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:6, offset: 0x0208e240, size: 136 bytes, params: 8, frame: 18 function _fun92529(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:6, offset: 0x0208e240, size: 136 bytes, params: 8, frame: 18
let env0_0 = require; let env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */; (FileImportTrackerModule).fileFinishedImporting('actions/native/CreateGuildActionCreators.tsx');
const env0_3 = (require(661) /* metro dependency 661: Constants */).InstantInviteSources;
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/CreateGuildActionCreators.tsx');
exports.showInstantInviteModal = function(a0) { exports.showInstantInviteModal = function(a0) {
var env0_0 = a0; var env0_0 = a0;
GuildChannelStore.addConditionalChangeListener(_fun92531); GuildChannelStore.addConditionalChangeListener(_fun92531);
}; };
}
function showInstantInviteModal(a0) { // fn#92530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:240, offset: 0x0208e2c8, size: 38 bytes, params: 2, frame: 11 function showInstantInviteModal(a0) { // fn#92530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:240, offset: 0x0208e2c8, size: 38 bytes, params: 2, frame: 11
const env0_0 = a0; const env0_0 = a0;
GuildChannelStore.addConditionalChangeListener(_fun92531); GuildChannelStore.addConditionalChangeListener(_fun92531);
}
function _fun92531() { // fn#92531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:307, offset: 0x0208e2ee, size: 66 bytes, params: 1, frame: 12 function _fun92531() { // fn#92531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:307, offset: 0x0208e2ee, size: 66 bytes, params: 1, frame: 12
var environment; var environment;
var r0; var r0;
@@ -30,13 +29,17 @@ function _fun92531() { // fn#92531, source: /ci/build/discord/discord/discord_an
r0 = false; r0 = false;
} }
return r0; return r0;
}
function _fun92532() { // fn#92532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:372, offset: 0x0208e330, size: 62 bytes, params: 1, frame: 15 function _fun92532() { // fn#92532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12227:372, offset: 0x0208e330, size: 62 bytes, params: 1, frame: 15
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */; const showInstantInviteActionSheet = InstantInviteUtilsModule.showInstantInviteActionSheet;
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
const binding = env0_0; const binding = env0_0;
const GUILD_CREATE = InstantInviteSources.GUILD_CREATE; const GUILD_CREATE = InstantInviteSources.GUILD_CREATE;
Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [binding, {source: GUILD_CREATE}]); Reflect.apply(showInstantInviteActionSheet, InstantInviteUtilsModule, [binding, {source: GUILD_CREATE}]);
} }
}
}
}
global.__d(_fun92529, 12041, [1935, 661, 9151, 2]) /* metro module 12041, dependencies: [1935, 661, 9151, 2] */;
@@ -1,23 +1,29 @@
/* Metro module 10010; source: actions/native/DisplayedInviteActionCreators.tsx; dependencies: [9156, 694, 8879, 2] */ /* Metro module 10010; source: actions/native/DisplayedInviteActionCreators.tsx; dependencies: [9156, 694, 8879, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import InstantInviteActionCreators from '../InstantInviteActionCreators.tsx'; /* Metro dependency 8879 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as DisplayedInviteStoreModule from '../../stores/native/DisplayedInviteStore.tsx'; /* Metro dependency 9156 */
function _fun78187(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:6, offset: 0x01e1f761, size: 116 bytes, params: 8, frame: 18 function _fun78187(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:6, offset: 0x01e1f761, size: 116 bytes, params: 8, frame: 18
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/DisplayedInviteActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/DisplayedInviteActionCreators.tsx');
exports.showInvite = showInvite; exports.showInvite = showInvite;
exports.clearDisplayedInvite = clearDisplayedInvite; exports.clearDisplayedInvite = clearDisplayedInvite;
}
function showInvite(a0, a1, a2) { // fn#78188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:187, offset: 0x01e1f7d5, size: 139 bytes, params: 4, frame: 20 function showInvite(a0, a1, a2) { // fn#78188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:187, offset: 0x01e1f7d5, size: 139 bytes, params: 4, frame: 20
const {deeplinkAttemptId, fromDeeplink, location} = a2 ?? ({}); const {deeplinkAttemptId, fromDeeplink, location} = a2 ?? ({});
require(9156) /* metro dependency 9156: DisplayedInviteStore */; DisplayedInviteStoreModule;
value = importDefault(694) /* metro dependency 694: Dispatcher */; value = importDefault(694) /* metro dependency 694: Dispatcher */;
value.dispatch({type: 'DISPLAYED_INVITE_SHOW', code: a0, username: a1, deeplinkAttemptId: deeplinkAttemptId, value.dispatch({type: 'DISPLAYED_INVITE_SHOW', code: a0, username: a1, deeplinkAttemptId: deeplinkAttemptId,
fromDeeplink: fromDeeplink}); fromDeeplink: fromDeeplink});
(importDefault(8879) /* metro dependency 8879: InstantInviteActionCreators */).resolveInvite(a0, location); (InstantInviteActionCreators).resolveInvite(a0, location);
} }
function clearDisplayedInvite() { // fn#78189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:446, offset: 0x01e1f860, size: 47 bytes, params: 1, frame: 13 function clearDisplayedInvite() { // fn#78189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10196:446, offset: 0x01e1f860, size: 47 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISPLAYED_INVITE_CLEAR'}); (Dispatcher).dispatch({type: 'DISPLAYED_INVITE_CLEAR'});
} }
}
global.__d(_fun78187, 10010, [9156, 694, 8879, 2]) /* metro module 10010, dependencies: [9156, 694, 8879, 2] */;
@@ -1,15 +1,16 @@
/* Metro module 8953; source: actions/native/EmailVerificationModalActionCreators.tsx; dependencies: [661, 683, 5080, 8954, 1962, 694, 2] */ /* Metro module 8953; source: actions/native/EmailVerificationModalActionCreators.tsx; dependencies: [661, 683, 5080, 8954, 1962, 694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import ModalActionCreators from '../ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun69812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:6, offset: 0x01ce42fb, size: 143 bytes, params: 8, frame: 18 function _fun69812(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69812, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:6, offset: 0x01ce42fb, size: 143 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents; object = {open: open_69813, close: close_69814};
object2 = {open: open_69813, close: close_69814}; (FileImportTrackerModule).fileFinishedImporting('actions/native/EmailVerificationModalActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/EmailVerificationModalActionCreators.tsx'); exports.default = object;
exports.default = object2;
}
function open_69813() { // fn#69813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:157, offset: 0x01ce438a, size: 142 bytes, params: 1, frame: 17 function open_69813() { // fn#69813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:157, offset: 0x01ce438a, size: 142 bytes, params: 1, frame: 17
var defaultImport; var defaultImport;
let value = a0; let value = a0;
@@ -26,11 +27,15 @@ function open_69813() { // fn#69813, source: /ci/build/discord/discord/discord_a
} }
function close_69814() { // fn#69814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:285, offset: 0x01ce4418, size: 47 bytes, params: 1, frame: 12 function close_69814() { // fn#69814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:285, offset: 0x01ce4418, size: 47 bytes, params: 1, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun69815); (Dispatcher).wait(_fun69815);
}
function _fun69815() { // fn#69815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:307, offset: 0x01ce4447, size: 44 bytes, params: 1, frame: 12 function _fun69815() { // fn#69815, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9138:307, offset: 0x01ce4447, size: 44 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('EMAIL_VERIFICATION_MODAL_KEY'); (ModalActionCreators).popWithKey('EMAIL_VERIFICATION_MODAL_KEY');
} }
}
}
global.__d(_fun69812, 8953, [661, 683, 5080, 8954, 1962, 694,
2]) /* metro module 8953, dependencies: [661, 683, 5080, 8954, 1962, 694, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,40 +1,27 @@
/* Metro module 8453; source: actions/native/GiftCodeActionCreators.tsx; dependencies: [5, 661, 7035, 7360, 694, 507, 683, 4131, 5080, 8454, 1962, 2] */ /* Metro module 8453; source: actions/native/GiftCodeActionCreators.tsx; dependencies: [5, 661, 7035, 7360, 694, 507, 683, 4131, 5080, 8454, 1962, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun67113(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:6, offset: 0x01c15eb6, size: 215 bytes, params: 8, frame: 22 function _fun67113(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:6, offset: 0x01c15eb6, size: 215 bytes, params: 8, frame: 22
var object2;
const env0_0 = require; const env0_0 = require;
const closure = function() { const closure = function() {
return _redeemGiftCode.apply(this, arguments); return _redeemGiftCode.apply(this, arguments);
}; };
const closure2 = openGiftCodeRedeemModal; const openGiftCodeRedeemModal2 = openGiftCodeRedeemModal;
let Object = global.Object; let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.Endpoints;
const env0_5 = constantsModule.AnalyticEvents;
Object = global.Object; Object = global.Object;
const env0_6 = Object.freeze({}); const env0_6 = Object.freeze({});
object2 = {redeemGiftCode: closure, openGiftCodeRedeemModal: closure2}; object = {redeemGiftCode: closure, openGiftCodeRedeemModal: openGiftCodeRedeemModal2};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/GiftCodeActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/GiftCodeActionCreators.tsx');
exports.default = object2; exports.default = object;
exports.redeemGiftCode = closure; exports.redeemGiftCode = closure;
exports.openGiftCodeRedeemModal = closure2; exports.openGiftCodeRedeemModal = openGiftCodeRedeemModal2;
}
function _redeemGiftCode() { // fn#67115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:240, offset: 0x01c15f8d, size: 50 bytes, params: 1, frame: 14 function _redeemGiftCode() { // fn#67115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:240, offset: 0x01c15f8d, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun67117).apply(this, arguments); return Module00005(_fun67117).apply(this, arguments);
}
function openGiftCodeRedeemModal(a0) { // fn#67118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:1056, offset: 0x01c1624b, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[8]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[10]);
value = value(dependencyMap[9], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {code: a0}, 'GIFT_CODE_REDEEM_MODAL_KEY']);
}
async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:293, offset: 0x01c15fd3, size: 632 bytes, params: 2, frame: 28 async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:293, offset: 0x01c15fd3, size: 632 bytes, params: 2, frame: 28
var object4; var object2;
var id; var id;
var binding2; var binding2;
var property; var property;
@@ -43,7 +30,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
var post; var post;
var GIFT_CODE_REDEEM; var GIFT_CODE_REDEEM;
var value11; var value11;
var object3; var object;
var value12; var value12;
var value13; var value13;
var value14; var value14;
@@ -225,7 +212,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -317,7 +304,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.url = value11; object2.url = value11;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -340,7 +327,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -363,7 +350,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object3.channel_id = r8; object.channel_id = r8;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -436,7 +423,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
} }
} }
try { try {
object3.payment_source_id = id; object.payment_source_id = id;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -459,7 +446,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.body = object3; object2.body = object;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -482,7 +469,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.oldFormErrors = true; object2.oldFormErrors = true;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -505,7 +492,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.rejectWithError = false; object2.rejectWithError = false;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -528,7 +515,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
value13 = Reflect.apply(post, HTTP, [object4]); value13 = Reflect.apply(post, HTTP, [object2]);
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -694,7 +681,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -717,7 +704,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.type = 'GIFT_CODE_REDEEM_SUCCESS'; object2.type = 'GIFT_CODE_REDEEM_SUCCESS';
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -740,7 +727,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.code = code; object2.code = code;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -763,7 +750,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
Reflect.apply(dispatch, value16, [object4]); Reflect.apply(dispatch, value16, [object2]);
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -901,7 +888,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -924,7 +911,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.type = 'gift_accept'; object2.type = 'gift_accept';
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -947,7 +934,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
Reflect.apply(track, value17, [OPEN_MODAL, object4]); Reflect.apply(track, value17, [OPEN_MODAL, object2]);
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -1018,7 +1005,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
} }
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -1041,7 +1028,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.code = code; object2.code = code;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -1064,7 +1051,7 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
throw value20; throw value20;
} }
try { try {
object4.entitlement = value14; object2.entitlement = value14;
} catch (error) { } catch (error) {
binding = env2_0; binding = env2_0;
binding4 = env2_2; binding4 = env2_2;
@@ -1086,6 +1073,20 @@ async function _fun67117({code, options, onRedeemed, onError}) { // fn#67117, so
onError(value20); onError(value20);
throw value20; throw value20;
} }
return object4; return object2;
} }
}
function openGiftCodeRedeemModal(a0) { // fn#67118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8638:1056, offset: 0x01c1624b, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[8]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[10]);
value = value(dependencyMap[9], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {code: a0}, 'GIFT_CODE_REDEEM_MODAL_KEY']);
}
}
global.__d(_fun67113, 8453, [5, 661, 7035, 7360, 694, 507, 683, 4131, 5080, 8454, 1962,
2]) /* metro module 8453, dependencies: [5, 661, 7035, 7360, 694, 507, 683, 4131, 5080, 8454, 1962, 2] */;
+39 -31
View File
@@ -1,57 +1,65 @@
/* Metro module 15953; source: actions/native/GuildActionCreators.tsx; dependencies: [661, 694, 507, 2] */ /* Metro module 15953; source: actions/native/GuildActionCreators.tsx; dependencies: [661, 694, 507, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun123307(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:6, offset: 0x02587d3b, size: 155 bytes, params: 8, frame: 20 function _fun123307(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:6, offset: 0x02587d3b, size: 155 bytes, params: 8, frame: 20
var object2;
const env0_0 = require; const env0_0 = require;
const closure = batchChannelUpdate_123308; const batchChannelUpdate_1233082 = batchChannelUpdate_123308;
const closure2 = batchRoleUpdate_123310; const batchRoleUpdate_1233102 = batchRoleUpdate_123310;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints; object = {batchChannelUpdate: batchChannelUpdate_1233082, batchRoleUpdate: batchRoleUpdate_1233102};
object2 = {batchChannelUpdate: closure, batchRoleUpdate: closure2}; (FileImportTrackerModule).fileFinishedImporting('actions/native/GuildActionCreators.tsx');
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/GuildActionCreators.tsx'); exports.default = object;
exports.default = object2; exports.batchChannelUpdate = batchChannelUpdate_1233082;
exports.batchChannelUpdate = closure; exports.batchRoleUpdate = batchRoleUpdate_1233102;
exports.batchRoleUpdate = closure2;
}
function batchChannelUpdate_123308(a0, a1) { // fn#123308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:116, offset: 0x02587dd6, size: 157 bytes, params: 3, frame: 18 function batchChannelUpdate_123308(a0, a1) { // fn#123308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:116, offset: 0x02587dd6, size: 157 bytes, params: 3, frame: 18
var object2; var object;
var HTTP; var HTTP;
var patch; var patch;
const closure = batchChannelUpdate_123308OnEnd; const batchChannelUpdate_123308OnEnd2 = batchChannelUpdate_123308OnEnd;
if (!(a1.length <= 0)) { if (!(a1.length <= 0)) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'}); (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'});
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
patch = HTTP.patch; patch = HTTP.patch;
object2 = {}; object = {};
object2.url = Endpoints.GUILD_CHANNELS(a0); object.url = Endpoints.GUILD_CHANNELS(a0);
object2.body = a1; object.body = a1;
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(patch, HTTP, [object2]).then(closure, closure); Reflect.apply(patch, HTTP, [object]).then(batchChannelUpdate_123308OnEnd2, batchChannelUpdate_123308OnEnd2);
} }
function batchChannelUpdate_123308OnEnd() { // fn#123309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:149, owner: batchChannelUpdate_123308.onEnd, offset: 0x02587e73, size: 47 bytes, params: 1, frame: 12
const value = environment.__proto__;
return (Dispatcher).dispatch({type: 'GUILD_SETTINGS_SUBMIT_SUCCESS'});
}
} }
function batchRoleUpdate_123310(a0, a1) { // fn#123310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:401, offset: 0x02587ea2, size: 157 bytes, params: 3, frame: 18 function batchRoleUpdate_123310(a0, a1) { // fn#123310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:401, offset: 0x02587ea2, size: 157 bytes, params: 3, frame: 18
var object2; var object;
var HTTP; var HTTP;
var patch; var patch;
const closure = batchRoleUpdate_123310OnEnd; const batchRoleUpdate_123310OnEnd2 = batchRoleUpdate_123310OnEnd;
if (!(a1.length <= 0)) { if (!(a1.length <= 0)) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'}); (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'});
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
patch = HTTP.patch; patch = HTTP.patch;
object2 = {}; object = {};
object2.url = Endpoints.GUILD_ROLES(a0); object.url = Endpoints.GUILD_ROLES(a0);
object2.body = a1; object.body = a1;
object2.oldFormErrors = true; object.oldFormErrors = true;
object2.rejectWithError = true; object.rejectWithError = true;
Reflect.apply(patch, HTTP, [object2]).then(closure, closure); Reflect.apply(patch, HTTP, [object]).then(batchRoleUpdate_123310OnEnd2, batchRoleUpdate_123310OnEnd2);
} }
} function batchRoleUpdate_123310OnEnd() { // fn#123311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:431, owner: batchRoleUpdate_123310.onEnd, offset: 0x02587e73, size: 47 bytes, params: 1, frame: 12
function batchChannelUpdate_123308OnEnd() { // fn#123309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16161:149, owner: batchChannelUpdate_123308.onEnd, offset: 0x02587e73, size: 47 bytes, params: 1, frame: 12
const value = environment.__proto__; const value = environment.__proto__;
return (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT_SUCCESS'}); return (Dispatcher).dispatch({type: 'GUILD_SETTINGS_SUBMIT_SUCCESS'});
} }
}
}
global.__d(_fun123307, 15953, [661, 694, 507, 2]) /* metro module 15953, dependencies: [661, 694, 507, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 10920; source: actions/native/InAppNotificationActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 10920; source: actions/native/InAppNotificationActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun83683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:6, offset: 0x01f24aa6, size: 118 bytes, params: 8, frame: 17 function _fun83683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:6, offset: 0x01f24aa6, size: 118 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {enqueueNotification: enqueueNotification, clearNotification: clearNotification}; object = {enqueueNotification: enqueueNotification, clearNotification: clearNotification};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/InAppNotificationActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/InAppNotificationActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function enqueueNotification(a0) { // fn#83684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:99, offset: 0x01f24b1c, size: 56 bytes, params: 2, frame: 13 function enqueueNotification(a0) { // fn#83684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:99, offset: 0x01f24b1c, size: 56 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ENQUEUE_IN_APP_NOTIFICATION', (Dispatcher).dispatch({type: 'ENQUEUE_IN_APP_NOTIFICATION',
notification: a0}); notification: a0});
} }
function clearNotification() { // fn#83685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:193, offset: 0x01f24b54, size: 46 bytes, params: 1, frame: 12 function clearNotification() { // fn#83685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:193, offset: 0x01f24b54, size: 46 bytes, params: 1, frame: 12
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun83686); (Dispatcher).wait(_fun83686);
}
function _fun83686() { // fn#83686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:227, offset: 0x01f24b82, size: 48 bytes, params: 1, frame: 13 function _fun83686() { // fn#83686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11106:227, offset: 0x01f24b82, size: 48 bytes, params: 1, frame: 13
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_IN_APP_NOTIFICATION'}); (Dispatcher).dispatch({type: 'CLEAR_IN_APP_NOTIFICATION'});
} }
}
}
global.__d(_fun83683, 10920, [694, 2]) /* metro module 10920, dependencies: [694, 2] */;
@@ -1,35 +1,37 @@
/* Metro module 15038; source: actions/native/MessagePreviewActionCreators.tsx; dependencies: [661, 507, 694, 2] */ /* Metro module 15038; source: actions/native/MessagePreviewActionCreators.tsx; dependencies: [661, 507, 694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as HTTPUtilsModule from '../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun113816(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:6, offset: 0x02406f91, size: 153 bytes, params: 8, frame: 18 function _fun113816(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:6, offset: 0x02406f91, size: 153 bytes, params: 8, frame: 18
var object2;
const env0_0 = require; const env0_0 = require;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */; object = {fetchMessages: fetchMessages_113817, clearMessages: clearMessages};
const env0_3 = constantsModule.Endpoints; (FileImportTrackerModule).fileFinishedImporting('actions/native/MessagePreviewActionCreators.tsx');
const env0_4 = constantsModule.MAX_MESSAGES_PER_CHANNEL; exports.default = object;
object2 = {fetchMessages: fetchMessages_113817, clearMessages: clearMessages};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/MessagePreviewActionCreators.tsx');
exports.default = object2;
}
function fetchMessages_113817(a0, a1) { // fn#113817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:152, offset: 0x0240702a, size: 131 bytes, params: 3, frame: 18 function fetchMessages_113817(a0, a1) { // fn#113817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:152, offset: 0x0240702a, size: 131 bytes, params: 3, frame: 18
const env0_0 = a0; const env0_0 = a0;
const env0_1 = a1; const env0_1 = a1;
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP; const HTTP = (HTTPUtilsModule).HTTP;
const get = HTTP.get; const get = HTTP.get;
const object2 = {'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true}; const object = {'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true};
object2.url = Endpoints.MESSAGES(a0); object.url = Endpoints.MESSAGES(a0);
object2.query = {limit: MAX_MESSAGES_PER_CHANNEL, around: a1}; object.query = {limit: MAX_MESSAGES_PER_CHANNEL, around: a1};
Reflect.apply(get, HTTP, [object2]).then(_fun113818); Reflect.apply(get, HTTP, [object]).then(_fun113818);
}
function clearMessages() { // fn#113819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:387, offset: 0x024070fd, size: 49 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_MESSAGES_AROUND_SUCCESS'});
}
function _fun113818({body}) { // fn#113818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:286, offset: 0x024070ad, size: 80 bytes, params: 2, frame: 14 function _fun113818({body}) { // fn#113818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:286, offset: 0x024070ad, size: 80 bytes, params: 2, frame: 14
const value = environment.__proto__; const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_MESSAGES_AROUND_SUCCESS', (Dispatcher).dispatch({type: 'LOAD_MESSAGES_AROUND_SUCCESS',
channelId: env0_0, messages: body, around: require}); channelId: env0_0, messages: body, around: require});
} }
}
function clearMessages() { // fn#113819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15235:387, offset: 0x024070fd, size: 49 bytes, params: 1, frame: 13
(Dispatcher).dispatch({type: 'CLEAR_MESSAGES_AROUND_SUCCESS'});
}
}
global.__d(_fun113816, 15038, [661, 507, 694, 2]) /* metro module 15038, dependencies: [661, 507, 694, 2] */;
@@ -1,18 +1,21 @@
/* Metro module 9022; source: actions/native/PhoneVerificationActionCreators.tsx; dependencies: [694, 2] */ /* Metro module 9022; source: actions/native/PhoneVerificationActionCreators.tsx; dependencies: [694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun70191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:6, offset: 0x01cf216a, size: 120 bytes, params: 8, frame: 17 function _fun70191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#70191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:6, offset: 0x01cf216a, size: 120 bytes, params: 8, frame: 17
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
object2 = {openCountrySelector: openCountrySelector, setCountrySelectorClosed: setCountrySelectorClosed}; object = {openCountrySelector: openCountrySelector, setCountrySelectorClosed: setCountrySelectorClosed};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/PhoneVerificationActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/PhoneVerificationActionCreators.tsx');
exports.default = object2; exports.default = object;
}
function openCountrySelector() { // fn#70192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:99, offset: 0x01cf21e2, size: 48 bytes, params: 1, frame: 13 function openCountrySelector() { // fn#70192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:99, offset: 0x01cf21e2, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'VERIFICATION_OPEN_COUNTRY_SELECTOR'}); (Dispatcher).dispatch({type: 'VERIFICATION_OPEN_COUNTRY_SELECTOR'});
} }
function setCountrySelectorClosed() { // fn#70193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:184, offset: 0x01cf2212, size: 48 bytes, params: 1, frame: 13 function setCountrySelectorClosed() { // fn#70193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9207:184, offset: 0x01cf2212, size: 48 bytes, params: 1, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'VERIFICATION_CLOSE_COUNTRY_SELECTOR'}); (Dispatcher).dispatch({type: 'VERIFICATION_CLOSE_COUNTRY_SELECTOR'});
} }
}
global.__d(_fun70191, 9022, [694, 2]) /* metro module 9022, dependencies: [694, 2] */;
@@ -1,16 +1,22 @@
/* Metro module 11875; source: actions/native/PushNotificationActionCreators.tsx; dependencies: [5, 11876, 1226, 661, 5079, 3, 692, 507, 1216, 11880, 587, 5046, 477, 480, 1360, 694, 2] */ /* Metro module 11875; source: actions/native/PushNotificationActionCreators.tsx; dependencies: [5, 11876, 1226, 661, 5079, 3, 692, 507, 1216, 11880, 587, 5046, 477, 480, 1360, 694, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import AuthenticationStore from '../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import TrackedHTTPUtils from '../../utils/TrackedHTTPUtils.tsx'; /* Metro dependency 5046 */
import MultiAccountStore from '../../modules/multi_account/MultiAccountStore.tsx'; /* Metro dependency 11876 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AnalyticsUtilsModule from '../../external/discord_common/js/packages/analytics-utils/AnalyticsUtils.tsx'; /* Metro dependency 480 */
import * as StorageModule from '../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
function _fun91078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:6, offset: 0x020523dc, size: 400 bytes, params: 8, frame: 19 function _fun91078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:6, offset: 0x020523dc, size: 400 bytes, params: 8, frame: 19
var object2;
const env0_0 = require; const env0_0 = require;
const getOrRefreshPushSyncToken = function() { const getOrRefreshPushSyncToken = function() {
return _getOrRefreshPushSyncToken.apply(this, arguments); return _getOrRefreshPushSyncToken.apply(this, arguments);
}; };
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */; let value = ConstantsModule;
const multiAccountStore = importDefault(11876) /* metro dependency 11876: MultiAccountStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
let value = require(661) /* metro dependency 661: Constants */;
const env0_7 = value.DEVICE_TOKEN; const env0_7 = value.DEVICE_TOKEN;
const env0_8 = value.DEVICE_VOIP_TOKEN; const env0_8 = value.DEVICE_VOIP_TOKEN;
const env0_9 = value.Endpoints; const env0_9 = value.Endpoints;
@@ -21,111 +27,24 @@ function _fun91078(global, require, importDefault, importAll, module, exports, d
const env0_13 = value.IS_QUEST_RELEASE; const env0_13 = value.IS_QUEST_RELEASE;
value = importDefault(3) /* metro dependency 3: Logger */; value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('PushNotificationActionCreators'); value = new value('PushNotificationActionCreators');
object2 = {registerDevice: registerDevice, syncDevice: syncDevice, unregisterDevice: unregisterDevice}; object = {registerDevice: registerDevice, syncDevice: syncDevice, unregisterDevice: unregisterDevice};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/PushNotificationActionCreators.tsx'); (FileImportTrackerModule).fileFinishedImporting('actions/native/PushNotificationActionCreators.tsx');
exports.default = object2; exports.default = object;
exports.setPushPermissionState = setPushPermissionState; exports.setPushPermissionState = setPushPermissionState;
exports.setPushPermissionReactivationSeen = setPushPermissionReactivationSeen; exports.setPushPermissionReactivationSeen = setPushPermissionReactivationSeen;
exports.setPushNotificationPermissionEligibleForPrompt = setPushNotificationPermissionEligibleForPrompt; exports.setPushNotificationPermissionEligibleForPrompt = setPushNotificationPermissionEligibleForPrompt;
exports.updateNotificationAuthorizationStatus = updateNotificationAuthorizationStatus; exports.updateNotificationAuthorizationStatus = updateNotificationAuthorizationStatus;
}
function _getOrRefreshPushSyncToken() { // fn#91080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:433, offset: 0x0205256c, size: 50 bytes, params: 1, frame: 14 function _getOrRefreshPushSyncToken() { // fn#91080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:433, offset: 0x0205256c, size: 50 bytes, params: 1, frame: 14
return env0_4(_fun91082).apply(this, arguments); return Module00005(_fun91082).apply(this, arguments);
}
function registerDevice(a0) { // fn#91083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:868, offset: 0x020526ba, size: 355 bytes, params: 2, frame: 24
var r8;
var r0;
var defaultImport;
var post;
var object4;
var object5;
var object6;
const value = a1;
const r1 = value !== undefined ? value : false;
const canUseMultiAccountNotifications = MultiAccountStore.canUseMultiAccountNotifications;
env0_14.log('Registering push notification token: ' + a0 + ', is voip:' + r1 + ', multi-account:' + canUseMultiAccountNotifications);
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
Storage.set(r1 ? DEVICE_VOIP_TOKEN : DEVICE_TOKEN, a0);
if (canUseMultiAccountNotifications) {
r0 = this.syncDevice(a0, r1);
} else {
defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport.post;
object4 = {};
object4.url = Endpoints.DEVICES;
object5 = {};
r8 = r1 ? DEVICE_PUSH_VOIP_PROVIDER : getDevicePushProvider();
object5.provider = r8;
object5.token = a0;
r8 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && !IS_QUEST_RELEASE;
object5.bypass_server_throttling_supported = r8;
object5.bundle_id = BUNDLE_ID;
object4.body = object5;
object4.oldFormErrors = true;
object6 = {};
object6.event = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames.USER_REGISTER_DEVICE_TOKEN;
object4.trackedActionData = object6;
object4.rejectWithError = false;
r0 = Reflect.apply(post, defaultImport, [object4]);
}
return r0;
}
function syncDevice(a0) { // fn#91084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1340, offset: 0x0205281d, size: 49 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : false;
return env0_4(_fun91086)();
}
function unregisterDevice(a0) { // fn#91088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1891, offset: 0x02052a34, size: 165 bytes, params: 2, frame: 17
env0_14.log('Unregistering push notification token: ' + a0);
const defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
const object3 = {};
const DEVICES = Endpoints.DEVICES;
object3.url = DEVICES;
const object4 = {};
object4.provider = getDevicePushProvider();
object4.token = a0;
object3.body = object4;
const NetworkActionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames;
const USER_UNREGISTER_DEVICE_TOKEN = NetworkActionNames.USER_UNREGISTER_DEVICE_TOKEN;
object3.trackedActionData = {event: USER_UNREGISTER_DEVICE_TOKEN};
object3.rejectWithError = false;
return defaultImport.delete(object3);
}
function setPushPermissionState(a0) { // fn#91089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2234, offset: 0x02052ad9, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(importDefault(694) /* metro dependency 694: Dispatcher */).wait(_fun91090);
}
function setPushPermissionReactivationSeen(a0) { // fn#91091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2414, offset: 0x02052b4c, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_REACTIVATION_SEEN',
promptType: a0});
}
function setPushNotificationPermissionEligibleForPrompt(a0) { // fn#91092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2598, offset: 0x02052b85, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_SET_ELIGIBLE',
promptType: a0});
}
function updateNotificationAuthorizationStatus(a0) { // fn#91093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2781, offset: 0x02052bbe, size: 57 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PUSH_NOTIFICATION_AUTHORIZATION_STATUS_UPDATE',
authorizationStatus: a0});
}
function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:508, offset: 0x020525a9, size: 273 bytes, params: 2, frame: 20 function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:508, offset: 0x020525a9, size: 273 bytes, params: 2, frame: 20
var binding2; var binding2;
var property; var property;
var value5; var value5;
var HTTP; var HTTP;
var get; var get;
var object3; var object;
var DEVICES_SYNC_TOKEN; var DEVICES_SYNC_TOKEN;
var object4; var object2;
var value6; var value6;
var value7; var value7;
var value8; var value8;
@@ -193,7 +112,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object3 = {}; object = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -217,7 +136,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object3.url = DEVICES_SYNC_TOKEN; object.url = DEVICES_SYNC_TOKEN;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -225,7 +144,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object4 = {}; object2 = {};
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -233,7 +152,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object4.authorization = token2; object2.authorization = token2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -241,7 +160,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object3.headers = object4; object.headers = object2;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -249,7 +168,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
object3.rejectWithError = false; object.rejectWithError = false;
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -257,7 +176,7 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return null; return null;
} }
try { try {
value6 = Reflect.apply(get, HTTP, [object3]); value6 = Reflect.apply(get, HTTP, [object]);
} catch (error) { } catch (error) {
binding = env2_1; binding = env2_1;
value = binding(env2_3[8]); value = binding(env2_3[8]);
@@ -298,6 +217,52 @@ function* _fun91082(a0) { // fn#91082, original name: ?anon_0_, source: /ci/buil
return token; return token;
} }
}
function registerDevice(a0) { // fn#91083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:868, offset: 0x020526ba, size: 355 bytes, params: 2, frame: 24
var r8;
var r0;
var defaultImport;
var post;
var object;
var object2;
var object3;
const value = a1;
const r1 = value !== undefined ? value : false;
const canUseMultiAccountNotifications = MultiAccountStore.canUseMultiAccountNotifications;
env0_14.log('Registering push notification token: ' + a0 + ', is voip:' + r1 + ', multi-account:' + canUseMultiAccountNotifications);
const Storage = (StorageModule).Storage;
Storage.set(r1 ? DEVICE_VOIP_TOKEN : DEVICE_TOKEN, a0);
if (canUseMultiAccountNotifications) {
r0 = this.syncDevice(a0, r1);
} else {
defaultImport = importDefault(5046) /* metro dependency 5046: TrackedHTTPUtils */;
post = defaultImport.post;
object = {};
object.url = Endpoints.DEVICES;
object2 = {};
r8 = r1 ? DEVICE_PUSH_VOIP_PROVIDER : getDevicePushProvider();
object2.provider = r8;
object2.token = a0;
r8 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid() && !IS_QUEST_RELEASE;
object2.bypass_server_throttling_supported = r8;
object2.bundle_id = BUNDLE_ID;
object.body = object2;
object.oldFormErrors = true;
object3 = {};
object3.event = (require(480) /* metro dependency 480: AnalyticsUtils */).NetworkActionNames.USER_REGISTER_DEVICE_TOKEN;
object.trackedActionData = object3;
object.rejectWithError = false;
r0 = Reflect.apply(post, defaultImport, [object]);
}
return r0;
}
function syncDevice(a0) { // fn#91084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1340, offset: 0x0205281d, size: 49 bytes, params: 2, frame: 12
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : false;
return Module00005(_fun91086)();
function* _fun91086() { // fn#91086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1353, offset: 0x02052859, size: 424 bytes, params: 1, frame: 21 function* _fun91086() { // fn#91086, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1353, offset: 0x02052859, size: 424 bytes, params: 1, frame: 21
var environment; var environment;
if (true) { if (true) {
@@ -320,21 +285,21 @@ function* _fun91086() { // fn#91086, original name: ?anon_0_, source: /ci/build/
binding = env2_0; binding = env2_0;
var HTTP = binding(env2_3[7]).HTTP; var HTTP = binding(env2_3[7]).HTTP;
var put = HTTP.put; var put = HTTP.put;
var object3 = {}; var object = {};
var DEVICES_SYNC = env2_9.DEVICES_SYNC; var DEVICES_SYNC = env2_9.DEVICES_SYNC;
object3.url = DEVICES_SYNC; object.url = DEVICES_SYNC;
var object4 = {}; var object2 = {};
object4.provider = importDefault ? env2_11 : env2_12(); object2.provider = importDefault ? env2_11 : env2_12();
object4.token = require; object2.token = require;
var filter = value5.filter; var filter = value5.filter;
binding = env2_0; binding = env2_0;
var binding2 = env2_3; var binding2 = env2_3;
object4.push_sync_tokens = Reflect.apply(filter, value5, [binding(binding2[14]).isNotNullish]); object2.push_sync_tokens = Reflect.apply(filter, value5, [binding(binding2[14]).isNotNullish]);
object4.bypass_server_throttling_supported = binding(binding2[12]).isAndroid() && !env2_13; object2.bypass_server_throttling_supported = binding(binding2[12]).isAndroid() && !env2_13;
object4.bundle_id = env2_10; object2.bundle_id = env2_10;
object3.body = object4; object.body = object2;
object3.rejectWithError = false; object.rejectWithError = false;
yield Reflect.apply(put, HTTP, [object3]); yield Reflect.apply(put, HTTP, [object]);
var value11 = undefined; var value11 = undefined;
if (false) { if (false) {
return value11; return value11;
@@ -345,15 +310,58 @@ function* _fun91086() { // fn#91086, original name: ?anon_0_, source: /ci/build/
} }
} }
} }
}
function _fun91090() { // fn#91090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2284, offset: 0x02052b0f, size: 61 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_SET_STATE',
permissionState: env0_0});
}
function _fun91087({id}, a1) { // fn#91087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1425, offset: 0x02052a01, size: 51 bytes, params: 3, frame: 4 function _fun91087({id}, a1) { // fn#91087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1425, offset: 0x02052a01, size: 51 bytes, params: 3, frame: 4
return id === env0_0 ? -1 : a1.id !== env0_0 ? 0 : 1; return id === env0_0 ? -1 : a1.id !== env0_0 ? 0 : 1;
} }
}
}
function unregisterDevice(a0) { // fn#91088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:1891, offset: 0x02052a34, size: 165 bytes, params: 2, frame: 17
env0_14.log('Unregistering push notification token: ' + a0);
const defaultImport = TrackedHTTPUtils;
const object = {};
const DEVICES = Endpoints.DEVICES;
object.url = DEVICES;
const object2 = {};
object2.provider = getDevicePushProvider();
object2.token = a0;
object.body = object2;
const NetworkActionNames = (AnalyticsUtilsModule).NetworkActionNames;
const USER_UNREGISTER_DEVICE_TOKEN = NetworkActionNames.USER_UNREGISTER_DEVICE_TOKEN;
object.trackedActionData = {event: USER_UNREGISTER_DEVICE_TOKEN};
object.rejectWithError = false;
return defaultImport.delete(object);
}
function setPushPermissionState(a0) { // fn#91089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2234, offset: 0x02052ad9, size: 54 bytes, params: 2, frame: 12
const env0_0 = a0;
(Dispatcher).wait(_fun91090);
function _fun91090() { // fn#91090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2284, offset: 0x02052b0f, size: 61 bytes, params: 1, frame: 13
const value = environment.__proto__;
(Dispatcher).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_SET_STATE',
permissionState: env0_0});
}
}
function setPushPermissionReactivationSeen(a0) { // fn#91091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2414, offset: 0x02052b4c, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_REACTIVATION_SEEN',
promptType: a0});
}
function setPushNotificationPermissionEligibleForPrompt(a0) { // fn#91092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2598, offset: 0x02052b85, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'PUSH_NOTIFICATION_PERMISSION_SET_ELIGIBLE',
promptType: a0});
}
function updateNotificationAuthorizationStatus(a0) { // fn#91093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12061:2781, offset: 0x02052bbe, size: 57 bytes, params: 2, frame: 13
(Dispatcher).dispatch({type: 'PUSH_NOTIFICATION_AUTHORIZATION_STATUS_UPDATE',
authorizationStatus: a0});
}
}
global.__d(_fun91078, 11875, [5, 11876, 1226, 661, 5079, 3, 692, 507, 1216, 11880, 587, 5046, 477, 480, 1360, 694,
2]) /* metro module 11875, dependencies: [5, 11876, 1226, 661, 5079, 3, 692, 507, 1216, 11880, 587, 5046, 477, 480, 1360, 694, 2] */;
+17 -12
View File
@@ -1,27 +1,29 @@
/* Metro module 11420; source: actions/native/UploadActionCreators.tsx; dependencies: [4645, 7223, 694, 2] */ /* Metro module 11420; source: actions/native/UploadActionCreators.tsx; dependencies: [4645, 7223, 694, 2] */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import DraftStore from '../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
import UploadStore from '../../stores/UploadStore.tsx'; /* Metro dependency 7223 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as DraftStoreModule from '../../stores/DraftStore.tsx'; /* Metro dependency 4645 */
function _fun87439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:6, offset: 0x01fbe801, size: 180 bytes, params: 8, frame: 19 function _fun87439(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:6, offset: 0x01fbe801, size: 180 bytes, params: 8, frame: 19
var object2;
const Object = global.Object; const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true}); Object.defineProperty(exports, '__esModule', {value: true});
const draftStore = importDefault(4645) /* metro dependency 4645: DraftStore */; object = {restoreFailedUpload: restoreFailedUpload, cancel: cancel_87441, cancelUploadItem: cancelUploadItem};
const env0_3 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType; (FileImportTrackerModule).fileFinishedImporting('actions/native/UploadActionCreators.tsx');
const uploadStore = importDefault(7223) /* metro dependency 7223: UploadStore */; exports.default = object;
object2 = {restoreFailedUpload: restoreFailedUpload, cancel: cancel_87441, cancelUploadItem: cancelUploadItem};
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/UploadActionCreators.tsx');
exports.default = object2;
}
function restoreFailedUpload(a0, a1) { // fn#87440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:139, offset: 0x01fbe8b5, size: 64 bytes, params: 3, frame: 13 function restoreFailedUpload(a0, a1) { // fn#87440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:139, offset: 0x01fbe8b5, size: 64 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_RESTORE_FAILED_UPLOAD', (Dispatcher).dispatch({type: 'UPLOAD_RESTORE_FAILED_UPLOAD',
messageId: a0, file: a1}); messageId: a0, file: a1});
} }
function cancel_87441(a0, a1) { // fn#87441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:240, offset: 0x01fbe8f5, size: 200 bytes, params: 3, frame: 17 function cancel_87441(a0, a1) { // fn#87441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:240, offset: 0x01fbe8f5, size: 200 bytes, params: 3, frame: 17
var draftStoreBinding;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_CANCEL_REQUEST', channelId: a0, (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_CANCEL_REQUEST', channelId: a0,
file: a1}); file: a1});
const messageForFile = UploadStore.getMessageForFile(a1.id); const messageForFile = UploadStore.getMessageForFile(a1.id);
if (messageForFile != null) { if (messageForFile != null) {
if (DraftStore.getDraft(messageForFile.channel_id, DraftType.ChannelMessage) === '') { draftStoreBinding = DraftStore;
if (draftStoreBinding.getDraft(messageForFile.channel_id, DraftType.ChannelMessage) === '') {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_SAVE', (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_SAVE',
channelId: messageForFile.channel_id, draft: messageForFile.content, channelId: messageForFile.channel_id, draft: messageForFile.content,
draftType: DraftType.ChannelMessage}); draftType: DraftType.ChannelMessage});
@@ -30,7 +32,10 @@ function cancel_87441(a0, a1) { // fn#87441, source: /ci/build/discord/discord/d
} }
function cancelUploadItem(a0, a1) { // fn#87442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:516, offset: 0x01fbe9bd, size: 65 bytes, params: 3, frame: 13 function cancelUploadItem(a0, a1) { // fn#87442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11606:516, offset: 0x01fbe9bd, size: 65 bytes, params: 3, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_ITEM_CANCEL_REQUEST', file: a0, (Dispatcher).dispatch({type: 'UPLOAD_ITEM_CANCEL_REQUEST', file: a0,
itemId: a1}); itemId: a1});
} }
}
global.__d(_fun87439, 11420, [4645, 7223, 694, 2]) /* metro module 11420, dependencies: [4645, 7223, 694, 2] */;
@@ -0,0 +1,24 @@
/* Metro module 2; source: unknown; dependencies: [] */
function _fun103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:6, offset: 0x00c38984, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Set = global.Set;
const set = new Set();
exports.clear = clear_104;
exports.size = size;
exports.fileFinishedImporting = fileFinishedImporting;
function clear_104() { // fn#104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:114, offset: 0x00c389ec, size: 21 bytes, params: 1, frame: 9
env0_0.clear();
}
function size() { // fn#105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:149, offset: 0x00c38a01, size: 14 bytes, params: 1, frame: 1
return env0_0.size;
}
function fileFinishedImporting(a0) { // fn#106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:204, offset: 0x00c38a0f, size: 24 bytes, params: 2, frame: 11
env0_0.add(a0);
}
}
global.__d(_fun103, 2, []) /* metro module 2 */;
-15
View File
@@ -1,15 +0,0 @@
/* Metro module 2; source: unknown; dependencies: [] */
function _fun103(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:6, offset: 0x00c38984, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Set = global.Set;
const set = new Set();
exports.clear = clear_104;
exports.size = size;
exports.fileFinishedImporting = fileFinishedImporting;
}
function size() { // fn#105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7:149, offset: 0x00c38a01, size: 14 bytes, params: 1, frame: 1
return env0_0.size;
}
+65
View File
@@ -0,0 +1,65 @@
/* Metro module 5; source: unknown; dependencies: [] */
function _fun132(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10:6, offset: 0x00c39550, size: 58 bytes, params: 8, frame: 3
const asyncGeneratorStep = function(a0, a1, a2, a3, a4, a5, a6) {
var property;
var value;
var error;
try {
value = a0[a5](a6);
property = value.value;
} catch (error) {
a2(error);
return undefined;
}
if (value.done) {
a1(property);
} else {
global.Promise.resolve(property).then(a3, a4);
}
};
module.exports = function(a0) {
var env0_0 = a0;
return _fun135;
};
module.exports.__esModule = true;
module.exports.default = module.exports;
function exports(a0) { // fn#134, offset: 0x00c395f2, size: 16 bytes, params: 2, frame: 2
let env0_0 = a0;
return function() {
var env0_0 = this;
var env0_1 = arguments;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun136);
return value2 instanceof Object ? value2 : value;
};
function _fun135() { // fn#135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10:219, offset: 0x00c39602, size: 51 bytes, params: 1, frame: 11
const env0_1 = arguments;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun136);
return promise instanceof Object ? promise : value;
function _fun136(a0, a1) { // fn#136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10:273, offset: 0x00c39635, size: 76 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
const _next2 = _next;
const binding = env1_0;
const env0_2 = binding.apply(env0_0, env0_1);
_next2(undefined);
function _next(a0) { // fn#137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10:306, offset: 0x00c39681, size: 47 bytes, params: 2, frame: 23
asyncGeneratorStep(env0_2, env0_0, require, _next, _throw, 'next', a0);
}
function _throw(a0) { // fn#138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10:372, offset: 0x00c396b0, size: 47 bytes, params: 2, frame: 23
asyncGeneratorStep(env0_2, env0_0, require, _next, _throw, 'throw', a0);
}
}
}
}
}
global.__d(_fun132, 5, []) /* metro module 5 */;
Loaded 100 of 22448 files, more files were not shown because too many files have changed in this diff. Show more