Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,218 @@
|
||||
/* Metro module 4496; source: actions/native/AlertActionCreators.tsx; dependencies: [31, 33, 4080, 694, 4497, 1244, 1357, 4500, 4596, 4596, 1962, 2] */
|
||||
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;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.Fragment;
|
||||
const env0_5 = value.jsxs;
|
||||
object2 = {openLazy: function(a0) {
|
||||
var importer = a0.importer;
|
||||
var hideActionSheet = a0.hideActionSheet;
|
||||
var env0_0 = !(hideActionSheet !== undefined) || hideActionSheet;
|
||||
var isDismissable = a0.isDismissable;
|
||||
var env0_1 = isDismissable !== undefined ? isDismissable : false;
|
||||
return importer().then(_fun38358);
|
||||
}, close: close_38359, show: show_38360, confirm: function(a0) {
|
||||
var env0_0 = this;
|
||||
var env0_1 = a0;
|
||||
var Promise = global.Promise;
|
||||
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
var value2 = new Promise(_fun38368);
|
||||
return value2 instanceof Object ? value2 : value;
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/AlertActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
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 (isDismissable !== undefined) {
|
||||
}
|
||||
return importer().then(_fun38358);
|
||||
}
|
||||
|
||||
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) {
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
|
||||
}
|
||||
(importDefault(694) /* metro dependency 694: 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
|
||||
var r18;
|
||||
var r10;
|
||||
var r8;
|
||||
var value;
|
||||
var intl;
|
||||
var object3;
|
||||
var body;
|
||||
var title;
|
||||
var binding;
|
||||
var value25;
|
||||
var value26;
|
||||
var children;
|
||||
var confirmColor;
|
||||
var cancelText;
|
||||
var moduleValue3;
|
||||
var openAlert;
|
||||
var AlertModal;
|
||||
var jsxRuntimeEnv0_4Binding;
|
||||
var items2;
|
||||
let hideActionSheet = a0.hideActionSheet;
|
||||
hideActionSheet = hideActionSheet === undefined || hideActionSheet;
|
||||
const isDismissable = a0.isDismissable;
|
||||
let confirmText = a0.confirmText;
|
||||
if (confirmText !== undefined) {
|
||||
r18 = confirmText;
|
||||
} else {
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.BddRzS);
|
||||
r18 = value;
|
||||
}
|
||||
let object4 = {'hideActionSheet': 0, 'isDismissable': 0, 'confirmText': 0};
|
||||
silentSetPrototypeOf(object4, null, undefined);
|
||||
const value2 = copyDataProperties({}, a0, object4, undefined);
|
||||
var env0_3;
|
||||
var env0_4;
|
||||
const mobileVisualRefreshExperimentModule = require(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */;
|
||||
if (mobileVisualRefreshExperimentModule.isMobileVisualRefreshEnabled('AlertActionCreators')) {
|
||||
object3 = {};
|
||||
copyDataProperties(object3, value2, object4);
|
||||
object3['confirmText'] = r18;
|
||||
object3['isDismissable'] = isDismissable;
|
||||
body = object3.body;
|
||||
confirmText = object3.confirmText;
|
||||
r10 = value != body && typeof body !== 'string';
|
||||
r10 = r10 && !global.Array.isArray(body);
|
||||
title = object3.title;
|
||||
r8 = value == title || object3.title === '';
|
||||
r8 = !r8 ? value != confirmText && typeof confirmText !== 'string' : r8;
|
||||
r8 = !r8 ? r10 : r8;
|
||||
r8 = !r8 ? value != object3.footer : r8;
|
||||
r8 = !r8 ? value != object3.helpText : r8;
|
||||
r8 = !r8 ? value != object3.renderConfirmButton : r8;
|
||||
r8 = !r8 ? value != object3.renderConfirmIcon : r8;
|
||||
r8 = !r8 ? value != object3.renderConfirmRightIcon : r8;
|
||||
r8 = !r8 ? object3.noDefaultButtons === true : r8;
|
||||
r8 = !r8 ? value != object3.secondaryConfirmText : r8;
|
||||
r8 = !r8 ? value != object3.onConfirmSecondary : r8;
|
||||
r8 = !r8 ? object3.isConfirmButtonDisabled === true : r8;
|
||||
r8 = !r8 ? value != object3.confirming : r8;
|
||||
r8 = !r8 ? value != object3.style : r8;
|
||||
r8 = !r8 ? object3.fillCancelText === true : r8;
|
||||
r8 = !r8 ? object3.autoCloseOnConfirm === false : r8;
|
||||
r8 = !r8 ? value != object3.onClose : r8;
|
||||
if (r8) {
|
||||
if (value != env0_6) {
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
|
||||
}
|
||||
this.openLazy({importer: importer_38364, hideActionSheet: hideActionSheet, isDismissable: isDismissable});
|
||||
} else {
|
||||
if (hideActionSheet) {
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
}
|
||||
if (value != env0_6) {
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
|
||||
}
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'ALERT_CLOSE'});
|
||||
binding = env0_7;
|
||||
value25 = typeof binding === 'bigint' ? binding : +binding;
|
||||
env0_7 = typeof value25 === 'bigint' ? value25 + 1n : +value25 + 1;
|
||||
value26 = 'legacy-alert-' + value25;
|
||||
title = value2.title;
|
||||
body = value2.body;
|
||||
children = value2.children;
|
||||
confirmColor = value2.confirmColor;
|
||||
cancelText = value2.cancelText;
|
||||
env0_3 = value2.onConfirm;
|
||||
env0_4 = value2.onCancel;
|
||||
moduleValue3 = require(4497) /* metro dependency 4497: useAlertStoreNative */;
|
||||
openAlert = moduleValue3.openAlert;
|
||||
AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
||||
object4 = {title: title, content: body, extraContent: children};
|
||||
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
||||
items2 = [((AlertActionButton) => <AlertActionButton variant={(require(4596) /* metro dependency 4596: Alert */).getAlertButtonVariant(confirmColor)} text={r18} onPress={function() {
|
||||
env0_5 = true;
|
||||
if (onConfirm != null) {
|
||||
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} />;
|
||||
Reflect.apply(openAlert, moduleValue3, [value26, value, _fun38363, {dismissable: isDismissable === true}]);
|
||||
}
|
||||
} else {
|
||||
if (value != env0_6) {
|
||||
(require(4497) /* metro dependency 4497: useAlertStoreNative */).dismissAlert(env0_6);
|
||||
}
|
||||
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
|
||||
if (onCancel != null) {
|
||||
onCancel();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun38363() { // fn#38363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1713, offset: 0x010be199, size: 58 bytes, params: 1, frame: 11
|
||||
if (!(env0_5 || onCancel == null)) {
|
||||
onCancel();
|
||||
}
|
||||
if (env1_6 !== env0_2) {
|
||||
}
|
||||
}
|
||||
|
||||
function show_38360Importer() { // fn#38364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4674:1845, owner: show_38360.importer, offset: 0x010be1d3, size: 62 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
value = require(dependencyMap[10]);
|
||||
value = value(dependencyMap[9], dependencyMap.paths);
|
||||
return value.then(function({default: env0_0}) {
|
||||
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
|
||||
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
|
||||
return ((Component) => <Component {...a0} {...env2_1} {...{['confirmText']: env2_0}} />)(env0_0);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,32 @@
|
||||
/* Metro module 6522; source: actions/native/BoostingActionCreators.tsx; dependencies: [5080, 6523, 1962, 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
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/BoostingActionCreators.tsx');
|
||||
exports.openApplyBoostModal = openApplyBoostModal;
|
||||
exports.openTransferModal = openTransferModal;
|
||||
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
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {guildId: a0}, 'PREMIUM_GUILD_SUBSCRIBE_MODAL_KEY']);
|
||||
}
|
||||
|
||||
function openTransferModal({guildBoostSlots, guildId, intent, onResult}) { // fn#51269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6700:338, offset: 0x0122d6a2, size: 126 bytes, params: 2, frame: 20
|
||||
const defaultImport = importDefault(dependencyMap[0]);
|
||||
const pushLazy = defaultImport.pushLazy;
|
||||
let value = require(dependencyMap[2]);
|
||||
value = value(dependencyMap[1], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport, [value, {guildId: guildId, guildBoostSlots: guildBoostSlots, intent: intent,
|
||||
onResult: onResult}, 'PREMIUM_GUILD_SUBSCRIBE_MODAL_KEY']);
|
||||
}
|
||||
|
||||
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');
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/* Metro module 16227; source: actions/native/BundleUpdaterActionCreators.tsx; dependencies: [27, 4647, 1244, 2] */
|
||||
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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).NativeModules;
|
||||
object2 = {prepareUpdate: prepareUpdate, deferUpdate: deferUpdate};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/BundleUpdaterActionCreators.tsx');
|
||||
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
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (a0) {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.GQZdmI);
|
||||
object2.body = intl.string(t.Fizu9y);
|
||||
object2.confirmText = intl.string(t.UefCDS);
|
||||
object2.cancelText = intl.string(t['1SzcG6']);
|
||||
object2.onConfirm = function() {
|
||||
var BundleUpdaterManager = NativeModules.BundleUpdaterManager;
|
||||
return BundleUpdaterManager.reload();
|
||||
};
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function deferUpdate() { // fn#125479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16435:407, offset: 0x025da123, size: 40 bytes, params: 1, frame: 9
|
||||
if (env0_4) {
|
||||
NativeModules.BundleUpdaterManager.reload();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/* Metro module 9087; source: actions/native/CreateChannelModalActionCreators.tsx; dependencies: [1383, 1379, 4601, 5080, 9083, 1962, 2] */
|
||||
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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(1383) /* metro dependency 1383: ChannelRecord */).CREATEABLE_NON_VOCAL_CHANNEL_NAME_TYPES;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
object2 = {CREATE_CHANNEL_MODAL_KEY: 'CREATE_CHANNEL_MODAL_KEY', open: open_71015, close: close_71017};
|
||||
(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
|
||||
var value5;
|
||||
var defaultImport;
|
||||
if (a1 != null) {
|
||||
value5 = undefined;
|
||||
defaultImport = importDefault(dependencyMap[3]);
|
||||
defaultImport.pushLazy(require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths),
|
||||
{channelType: a0 ?? value5,
|
||||
guildId: a1, categoryId: a2 ?? value5, cloneChannelId: a3 ?? value5, onChannelCreated: onChannelCreated},
|
||||
'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
|
||||
env0_0.close();
|
||||
const value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(a0);
|
||||
if (a1 != null && channel != null && CREATEABLE_NON_VOCAL_CHANNEL_NAME_TYPES.has(channel.type)) {
|
||||
(require(4601) /* metro dependency 4601: transitionToChannel */).transitionToChannel(a0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 12041; source: actions/native/CreateGuildActionCreators.tsx; dependencies: [1935, 661, 9151, 2] */
|
||||
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;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).InstantInviteSources;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/CreateGuildActionCreators.tsx');
|
||||
exports.showInstantInviteModal = function(a0) {
|
||||
var env0_0 = a0;
|
||||
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
|
||||
const env0_0 = a0;
|
||||
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
|
||||
var environment;
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
value = GuildChannelStore.getDefaultChannel(env0_0);
|
||||
value = value == null;
|
||||
if (value) {
|
||||
r0 = value;
|
||||
} else {
|
||||
global.setImmediate(_fun92532);
|
||||
r0 = false;
|
||||
}
|
||||
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
|
||||
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
||||
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
|
||||
const binding = env0_0;
|
||||
const GUILD_CREATE = InstantInviteSources.GUILD_CREATE;
|
||||
Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [binding, {source: GUILD_CREATE}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 10010; source: actions/native/DisplayedInviteActionCreators.tsx; dependencies: [9156, 694, 8879, 2] */
|
||||
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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/DisplayedInviteActionCreators.tsx');
|
||||
exports.showInvite = showInvite;
|
||||
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
|
||||
const {deeplinkAttemptId, fromDeeplink, location} = a2 ?? ({});
|
||||
require(9156) /* metro dependency 9156: DisplayedInviteStore */;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'DISPLAYED_INVITE_SHOW', code: a0, username: a1, deeplinkAttemptId: deeplinkAttemptId,
|
||||
fromDeeplink: fromDeeplink});
|
||||
(importDefault(8879) /* metro dependency 8879: 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
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISPLAYED_INVITE_CLEAR'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 8953; source: actions/native/EmailVerificationModalActionCreators.tsx; dependencies: [661, 683, 5080, 8954, 1962, 694, 2] */
|
||||
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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
object2 = {open: open_69813, close: close_69814};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/EmailVerificationModalActionCreators.tsx');
|
||||
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
|
||||
var defaultImport;
|
||||
let value = a0;
|
||||
const r1 = value !== undefined ? value : false;
|
||||
if (r1) {
|
||||
defaultImport = importDefault(dependencyMap[1]);
|
||||
defaultImport.track(AnalyticEvents.USER_ACCOUNT_EMAIL_CHANGE_ATTEMPTED);
|
||||
}
|
||||
const defaultImport2 = importDefault(dependencyMap[2]);
|
||||
const pushLazy = defaultImport2.pushLazy;
|
||||
value = require(dependencyMap[4]);
|
||||
value = value(dependencyMap[3], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport2, [value, {isChangeEmail: r1}, 'EMAIL_VERIFICATION_MODAL_KEY']);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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__;
|
||||
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('EMAIL_VERIFICATION_MODAL_KEY');
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,57 @@
|
||||
/* Metro module 15953; source: actions/native/GuildActionCreators.tsx; dependencies: [661, 694, 507, 2] */
|
||||
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 closure = batchChannelUpdate_123308;
|
||||
const closure2 = batchRoleUpdate_123310;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
object2 = {batchChannelUpdate: closure, batchRoleUpdate: closure2};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/GuildActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.batchChannelUpdate = closure;
|
||||
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
|
||||
var object2;
|
||||
var HTTP;
|
||||
var patch;
|
||||
const closure = batchChannelUpdate_123308OnEnd;
|
||||
if (!(a1.length <= 0)) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'});
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
patch = HTTP.patch;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_CHANNELS(a0);
|
||||
object2.body = a1;
|
||||
object2.oldFormErrors = true;
|
||||
object2.rejectWithError = true;
|
||||
Reflect.apply(patch, HTTP, [object2]).then(closure, closure);
|
||||
}
|
||||
}
|
||||
|
||||
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 HTTP;
|
||||
var patch;
|
||||
const closure = batchRoleUpdate_123310OnEnd;
|
||||
if (!(a1.length <= 0)) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT'});
|
||||
HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
patch = HTTP.patch;
|
||||
object2 = {};
|
||||
object2.url = Endpoints.GUILD_ROLES(a0);
|
||||
object2.body = a1;
|
||||
object2.oldFormErrors = true;
|
||||
object2.rejectWithError = true;
|
||||
Reflect.apply(patch, HTTP, [object2]).then(closure, closure);
|
||||
}
|
||||
}
|
||||
|
||||
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 (importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_SUBMIT_SUCCESS'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/* Metro module 10920; source: actions/native/InAppNotificationActionCreators.tsx; dependencies: [694, 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
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {enqueueNotification: enqueueNotification, clearNotification: clearNotification};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/InAppNotificationActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
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',
|
||||
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
|
||||
(importDefault(694) /* metro dependency 694: 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
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CLEAR_IN_APP_NOTIFICATION'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
/* Metro module 15038; source: actions/native/MessagePreviewActionCreators.tsx; dependencies: [661, 507, 694, 2] */
|
||||
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 Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_3 = constantsModule.Endpoints;
|
||||
const env0_4 = constantsModule.MAX_MESSAGES_PER_CHANNEL;
|
||||
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
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const get = HTTP.get;
|
||||
const object2 = {'url': null, 'query': null, 'retries': 2, 'oldFormErrors': true, 'rejectWithError': true};
|
||||
object2.url = Endpoints.MESSAGES(a0);
|
||||
object2.query = {limit: MAX_MESSAGES_PER_CHANNEL, around: a1};
|
||||
Reflect.apply(get, HTTP, [object2]).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
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'LOAD_MESSAGES_AROUND_SUCCESS',
|
||||
channelId: env0_0, messages: body, around: require});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 9022; source: actions/native/PhoneVerificationActionCreators.tsx; dependencies: [694, 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
|
||||
var object2;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object2 = {openCountrySelector: openCountrySelector, setCountrySelectorClosed: setCountrySelectorClosed};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/PhoneVerificationActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
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'});
|
||||
}
|
||||
|
||||
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'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,359 @@
|
||||
/* 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] */
|
||||
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 getOrRefreshPushSyncToken = function() {
|
||||
return _getOrRefreshPushSyncToken.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_4 = importDefault(5) /* metro dependency 5 */;
|
||||
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_8 = value.DEVICE_VOIP_TOKEN;
|
||||
const env0_9 = value.Endpoints;
|
||||
value = require(5079) /* metro dependency 5079: PushNotificationConstants */;
|
||||
const env0_10 = value.BUNDLE_ID;
|
||||
const env0_11 = value.DEVICE_PUSH_VOIP_PROVIDER;
|
||||
const env0_12 = value.getDevicePushProvider;
|
||||
const env0_13 = value.IS_QUEST_RELEASE;
|
||||
value = importDefault(3) /* metro dependency 3: Logger */;
|
||||
value = new value('PushNotificationActionCreators');
|
||||
object2 = {registerDevice: registerDevice, syncDevice: syncDevice, unregisterDevice: unregisterDevice};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/native/PushNotificationActionCreators.tsx');
|
||||
exports.default = object2;
|
||||
exports.setPushPermissionState = setPushPermissionState;
|
||||
exports.setPushPermissionReactivationSeen = setPushPermissionReactivationSeen;
|
||||
exports.setPushNotificationPermissionEligibleForPrompt = setPushNotificationPermissionEligibleForPrompt;
|
||||
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
|
||||
return env0_4(_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
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object3;
|
||||
var DEVICES_SYNC_TOKEN;
|
||||
var object4;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var body;
|
||||
var token;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (a0.pushSyncToken != null) {
|
||||
return a0.pushSyncToken;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
let binding = env2_2;
|
||||
const token2 = binding(env2_3[6]).getToken(a0.id);
|
||||
if (token2 == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_3;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
HTTP = value5.HTTP;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
binding = env2_9;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
DEVICES_SYNC_TOKEN = binding.DEVICES_SYNC_TOKEN;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object3.url = DEVICES_SYNC_TOKEN;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object4.authorization = token2;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object3.headers = object4;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
object3.rejectWithError = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(get, HTTP, [object3]);
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
token = body.token;
|
||||
} catch (error) {
|
||||
binding = env2_1;
|
||||
value = binding(env2_3[8]);
|
||||
value.captureException(error);
|
||||
return null;
|
||||
}
|
||||
value = env2_2(env2_3[9]);
|
||||
value.updatePushSyncToken(a0.id, token);
|
||||
return token;
|
||||
}
|
||||
|
||||
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;
|
||||
if (true) {
|
||||
var env0_0;
|
||||
value = environment.__proto__.__proto__;
|
||||
var binding = env2_6;
|
||||
env0_0 = binding.getId();
|
||||
var Promise = global.Promise;
|
||||
var all = Promise.all;
|
||||
var value4 = env2_5.getValidUsers().sort(_fun91087);
|
||||
yield Reflect.apply(all, Promise, [value4.map(env2_15)]);
|
||||
var value5 = undefined;
|
||||
if (false) {
|
||||
return value5;
|
||||
}
|
||||
if (!(value5.length < 1)) {
|
||||
if (value5[0] == null) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env2_0;
|
||||
var HTTP = binding(env2_3[7]).HTTP;
|
||||
var put = HTTP.put;
|
||||
var object3 = {};
|
||||
var DEVICES_SYNC = env2_9.DEVICES_SYNC;
|
||||
object3.url = DEVICES_SYNC;
|
||||
var object4 = {};
|
||||
object4.provider = importDefault ? env2_11 : env2_12();
|
||||
object4.token = require;
|
||||
var filter = value5.filter;
|
||||
binding = env2_0;
|
||||
var binding2 = env2_3;
|
||||
object4.push_sync_tokens = Reflect.apply(filter, value5, [binding(binding2[14]).isNotNullish]);
|
||||
object4.bypass_server_throttling_supported = binding(binding2[12]).isAndroid() && !env2_13;
|
||||
object4.bundle_id = env2_10;
|
||||
object3.body = object4;
|
||||
object3.rejectWithError = false;
|
||||
yield Reflect.apply(put, HTTP, [object3]);
|
||||
var value11 = undefined;
|
||||
if (false) {
|
||||
return value11;
|
||||
}
|
||||
if (value11.body.invalid_push_sync_tokens.length > 0) {
|
||||
value = env2_2(env2_3[9]);
|
||||
value.invalidatePushSyncTokens(value11.body.invalid_push_sync_tokens);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
return id === env0_0 ? -1 : a1.id !== env0_0 ? 0 : 1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
/* Metro module 11420; source: actions/native/UploadActionCreators.tsx; dependencies: [4645, 7223, 694, 2] */
|
||||
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;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const draftStore = importDefault(4645) /* metro dependency 4645: DraftStore */;
|
||||
const env0_3 = (require(4645) /* metro dependency 4645: DraftStore */).DraftType;
|
||||
const uploadStore = importDefault(7223) /* metro dependency 7223: UploadStore */;
|
||||
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
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_RESTORE_FAILED_UPLOAD',
|
||||
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
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'UPLOAD_CANCEL_REQUEST', channelId: a0,
|
||||
file: a1});
|
||||
const messageForFile = UploadStore.getMessageForFile(a1.id);
|
||||
if (messageForFile != null) {
|
||||
if (DraftStore.getDraft(messageForFile.channel_id, DraftType.ChannelMessage) === '') {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DRAFT_SAVE',
|
||||
channelId: messageForFile.channel_id, draft: messageForFile.content,
|
||||
draftType: DraftType.ChannelMessage});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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,
|
||||
itemId: a1});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user