Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,37 @@
|
||||
/* Metro module 11292; source: modules/message_request/hooks/useIsMessageRequest.tsx; dependencies: [4621, 4622, 566, 2] */
|
||||
function _fun86185(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11478:6, offset: 0x01f8aebc, size: 145 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const messageRequestStore = importDefault(4621) /* metro dependency 4621: MessageRequestStore */;
|
||||
const spamMessageRequestStore = importDefault(4622) /* metro dependency 4622: SpamMessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useIsMessageRequest.tsx');
|
||||
exports.useIsMessageRequest = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([MessageRequestStore], _fun86187, [a0]);
|
||||
};
|
||||
exports.useIsEitherTypeOfMessageRequest = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([MessageRequestStore, SpamMessageRequestStore], _fun86189);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsMessageRequest(a0) { // fn#86186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11478:225, offset: 0x01f8af4d, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageRequestStore], _fun86187, [a0]);
|
||||
}
|
||||
|
||||
function useIsEitherTypeOfMessageRequest(a0) { // fn#86188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11478:363, offset: 0x01f8afb3, size: 74 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageRequestStore,
|
||||
SpamMessageRequestStore], _fun86189);
|
||||
}
|
||||
|
||||
function _fun86187() { // fn#86187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11478:296, offset: 0x01f8af98, size: 27 bytes, params: 1, frame: 11
|
||||
return MessageRequestStore.isMessageRequest(env0_0);
|
||||
}
|
||||
|
||||
function _fun86189() { // fn#86189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11478:448, offset: 0x01f8affd, size: 65 bytes, params: 1, frame: 14
|
||||
return env0_0 != null && (MessageRequestStore.isMessageRequest(env0_0) || SpamMessageRequestStore.isSpam(env0_0));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 11896; source: modules/message_request/hooks/useIsMessageRequestRestrictedViewer.tsx; dependencies: [4813, 3835, 3842, 11897, 2] */
|
||||
function _fun91315(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12082:6, offset: 0x0205b1a8, size: 103 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('modules/message_request/hooks/useIsMessageRequestRestrictedViewer.tsx');
|
||||
exports.useIsMessageRequestRestrictedViewer = useIsMessageRequestRestrictedViewer;
|
||||
}
|
||||
|
||||
function useIsMessageRequestRestrictedViewer(a0) { // fn#91316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12082:233, offset: 0x0205b20f, size: 139 bytes, params: 2, frame: 16
|
||||
const value2 = (require(4813) /* metro dependency 4813: AgeVerificationUtils */).useIsExplicitlyVerifiedAdult();
|
||||
const regionalFeatureConfigUtilsModule = require(3835) /* metro dependency 3835: RegionalFeatureConfigUtils */;
|
||||
const useIsSettingTeenByDefault = regionalFeatureConfigUtilsModule.useIsSettingTeenByDefault;
|
||||
const SettingsDefaultFeature = (require(3842) /* metro dependency 3842: SettingsDefaultFeature */).SettingsDefaultFeature;
|
||||
const MESSAGE_REQUEST_RESTRICTIONS = SettingsDefaultFeature.MESSAGE_REQUEST_RESTRICTIONS;
|
||||
const value3 = Reflect.apply(useIsSettingTeenByDefault, regionalFeatureConfigUtilsModule,
|
||||
[MESSAGE_REQUEST_RESTRICTIONS]);
|
||||
const value = importDefault(11897) /* metro dependency 11897: MessageRequestRestrictionExperiment */;
|
||||
const useConfig = value.useConfig;
|
||||
return !value2 && value3 && Reflect.apply(useConfig, value, [{location: a0}]).enabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
/* Metro module 11291; source: modules/message_request/hooks/useIsSpamMessageRequest.tsx; dependencies: [4622, 566, 2] */
|
||||
function _fun86182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11477:6, offset: 0x01f8ade4, size: 114 bytes, params: 8, frame: 18
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const spamMessageRequestStore = importDefault(4622) /* metro dependency 4622: SpamMessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useIsSpamMessageRequest.tsx');
|
||||
exports.useIsSpamMessageRequest = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[1]).useStateFromStores([SpamMessageRequestStore], _fun86184, [a0]);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsSpamMessageRequest(a0) { // fn#86183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11477:223, offset: 0x01f8ae56, size: 75 bytes, params: 2, frame: 16
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SpamMessageRequestStore], _fun86184,
|
||||
[a0]);
|
||||
}
|
||||
|
||||
function _fun86184() { // fn#86184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11477:298, offset: 0x01f8aea1, size: 27 bytes, params: 1, frame: 11
|
||||
return SpamMessageRequestStore.isSpam(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 11901; source: modules/message_request/hooks/useIsStricterMessageRequests.tsx; dependencies: [11882, 2] */
|
||||
function _fun91352(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12087:6, offset: 0x0205c1b0, size: 136 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const Set = global.Set;
|
||||
const set = new Set(['GB']);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useIsStricterMessageRequests.tsx');
|
||||
exports.default = useIsStricterMessageRequests;
|
||||
}
|
||||
|
||||
function useIsStricterMessageRequests() { // fn#91353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12087:220, offset: 0x0205c238, size: 41 bytes, params: 1, frame: 12
|
||||
return (require(11882) /* metro dependency 11882: RegionalTeenUtils */).useIsTeenInCountrySet(env0_2);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 15243; source: modules/message_request/hooks/useListHasSingleMessageRequest.tsx; dependencies: [31, 4621, 4622, 15244, 566, 6619, 15245, 2] */
|
||||
function _fun116589(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15440:6, offset: 0x0248f8ba, size: 166 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const messageRequestStore = importDefault(4621) /* metro dependency 4621: MessageRequestStore */;
|
||||
const spamMessageRequestStore = importDefault(4622) /* metro dependency 4622: SpamMessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useListHasSingleMessageRequest.tsx');
|
||||
exports.useListHasSingleMessageRequest = useListHasSingleMessageRequest;
|
||||
exports.useListHasSingleSpamMessageRequest = useListHasSingleSpamMessageRequest;
|
||||
}
|
||||
|
||||
function useListHasSingleMessageRequest() { // fn#116590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15440:257, offset: 0x0248f960, size: 186 bytes, params: 1, frame: 20
|
||||
const value2 = (require(15244) /* metro dependency 15244: useMessageRequestsCount */).useMessageRequestsCount();
|
||||
const binding = env0_3;
|
||||
const value3 = binding.useRef(value2);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageRequestStore],
|
||||
function() {
|
||||
return MessageRequestStore.isReady();
|
||||
});
|
||||
var env0_3 = binding.useRef(value4);
|
||||
binding.useEffect(_fun116592, [value4, value2]);
|
||||
let value = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value3);
|
||||
value = value <= 1;
|
||||
return value && value2 === 1;
|
||||
}
|
||||
|
||||
function useListHasSingleSpamMessageRequest() { // fn#116593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15440:554, offset: 0x0248fa64, size: 186 bytes, params: 1, frame: 20
|
||||
const value2 = (require(15245) /* metro dependency 15245: useSpamMessageRequestsCount */).useSpamMessageRequestCount();
|
||||
const binding = env0_3;
|
||||
const value3 = binding.useRef(value2);
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SpamMessageRequestStore],
|
||||
function() {
|
||||
return SpamMessageRequestStore.isReady();
|
||||
});
|
||||
var env0_3 = binding.useRef(value4);
|
||||
binding.useEffect(_fun116595, [value4, value2]);
|
||||
let value = (importDefault(6619) /* metro dependency 6619: useRefValue */)(value3);
|
||||
value = value <= 1;
|
||||
return value && value2 === 1;
|
||||
}
|
||||
|
||||
function _fun116592() { // fn#116592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15440:439, offset: 0x0248fa2d, size: 55 bytes, params: 1, frame: 3
|
||||
if (env0_2 && !env0_3.current) {
|
||||
env0_3.current = true;
|
||||
env0_1.current = env0_0;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,737 @@
|
||||
/* Metro module 11942; source: modules/message_request/hooks/useMessageRequestPreview.tsx; dependencies: [5, 4814, 4605, 11943, 661, 566, 22, 507, 694, 2] */
|
||||
function _fun91648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:6, offset: 0x0206cc7b, size: 290 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_91651 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const loadMessageRequestData = function() {
|
||||
return _loadMessageRequestData.apply(this, arguments);
|
||||
};
|
||||
const loadMessageRequestDataHelper = function() {
|
||||
return _loadMessageRequestDataHelper.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const messageRequestPreviewStore = importDefault(11943) /* metro dependency 11943: MessageRequestPreviewStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).Endpoints;
|
||||
const Set = global.Set;
|
||||
const set = new Set();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useMessageRequestPreview.tsx');
|
||||
exports.useMessageRequestPreview = useMessageRequestPreview;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_91649(a0, a1) { // fn#91649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:161, offset: 0x0206cd9d, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun91650;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_91651(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_91651(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_91651(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun91650;
|
||||
}
|
||||
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.');
|
||||
}
|
||||
|
||||
function _loadMessageRequestData() { // fn#91653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:1179, offset: 0x0206cf11, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun91655).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _loadMessageRequestDataHelper() { // fn#91657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:1468, offset: 0x0206cfdc, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun91659).apply(this, arguments);
|
||||
}
|
||||
|
||||
function useMessageRequestPreview({id}) { // fn#91660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:2183, offset: 0x0206d1f5, size: 264 bytes, params: 2, frame: 24
|
||||
const value = a1;
|
||||
let enabled = (value !== undefined ? value : {}).enabled;
|
||||
enabled = enabled === undefined || enabled;
|
||||
const {loaded, message,
|
||||
error} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([MessageRequestPreviewStore,
|
||||
MessageStore, ReadStateStore], _fun91661, [id]);
|
||||
if (enabled && !loaded && message == null && (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageRequestPreviewStore],
|
||||
function() {
|
||||
return MessageRequestPreviewStore.shouldLoadMessageRequestPreview(id);
|
||||
}, [id])) {
|
||||
env0_8.add(id);
|
||||
if (env0_9 == null) {
|
||||
env0_9 = global.setTimeout(loadMessageRequestData, 0);
|
||||
}
|
||||
}
|
||||
return {loaded: loaded, error: error, message: message};
|
||||
}
|
||||
|
||||
function* _fun91655() { // fn#91655, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:1248, offset: 0x0206cf4e, size: 142 bytes, params: 1, frame: 16
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var isEmpty;
|
||||
var isEmpty2;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var binding3;
|
||||
var value7;
|
||||
var isEmpty3;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding2[6];
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isEmpty = value3.isEmpty;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isEmpty2 = Reflect.apply(isEmpty, value3, [binding]);
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
if (isEmpty2) {
|
||||
return undefined;
|
||||
}
|
||||
while (true) {
|
||||
try {
|
||||
binding = env2_14;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value4 = binding();
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
yield value4;
|
||||
try {
|
||||
value5 = undefined;
|
||||
value6 = false;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
if (value6) {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
property = binding3[6];
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
value7 = binding(property);
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isEmpty = value7.isEmpty;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
binding = env2_8;
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
try {
|
||||
isEmpty3 = Reflect.apply(isEmpty, value7, [binding]);
|
||||
} catch (error) {
|
||||
env2_9 = null;
|
||||
throw error;
|
||||
}
|
||||
if (isEmpty3) {
|
||||
env2_9 = null;
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
return value5;
|
||||
}
|
||||
|
||||
function* _fun91659() { // fn#91659, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:1549, offset: 0x0206d019, size: 476 bytes, params: 1, frame: 20
|
||||
var r5;
|
||||
var value;
|
||||
var value2;
|
||||
var Array;
|
||||
var from;
|
||||
var value3;
|
||||
var slice;
|
||||
var value4;
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value5;
|
||||
var HTTP;
|
||||
var get;
|
||||
var object3;
|
||||
var MESSAGE_REQUESTS_SUPPLEMENTAL_DATA;
|
||||
var object4;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var binding3;
|
||||
var value9;
|
||||
var dispatch;
|
||||
var body;
|
||||
var value10;
|
||||
var value11;
|
||||
var done;
|
||||
var value12;
|
||||
var value13;
|
||||
var error;
|
||||
var binding4;
|
||||
var value14;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var value18;
|
||||
var value21;
|
||||
var value22;
|
||||
exceptionLanding57: while (true) {
|
||||
value = undefined;
|
||||
value2 = false;
|
||||
if (value2) {
|
||||
return value;
|
||||
}
|
||||
Array = global.Array;
|
||||
from = Array.from;
|
||||
value = environment.__proto__.__proto__;
|
||||
value3 = Reflect.apply(from, Array, [env2_8]);
|
||||
slice = value3.slice;
|
||||
value4 = Reflect.apply(slice, value3, [0, 25]);
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort54: while (true) {
|
||||
exceptionLanding41: while (true) {
|
||||
try {
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
binding4 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
property = binding4[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
value14 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
dispatch = value14.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object3.type = 'LOAD_MESSAGE_REQUESTS_SUPPLEMENTAL_DATA_ERROR';
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
object3.requestedChannelIds = value4;
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(dispatch, value14, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
break reduciblePort54;
|
||||
}
|
||||
value15 = env2_10(value4);
|
||||
value16 = value15();
|
||||
done = value16.done;
|
||||
if (!done) {
|
||||
r5 = value16;
|
||||
reducibleLoop55: while (true) {
|
||||
value17 = r5.value;
|
||||
binding = env2_8;
|
||||
binding.delete(value17);
|
||||
value18 = value15();
|
||||
done = value18.done;
|
||||
if (done) {
|
||||
break reducibleLoop55;
|
||||
}
|
||||
r5 = value18;
|
||||
continue reducibleLoop55;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding2[7];
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value5 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
HTTP = value5.HTTP;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
get = HTTP.get;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_7;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
MESSAGE_REQUESTS_SUPPLEMENTAL_DATA = binding.MESSAGE_REQUESTS_SUPPLEMENTAL_DATA;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.url = MESSAGE_REQUESTS_SUPPLEMENTAL_DATA;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object4 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object4.channel_ids = value4;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.query = object4;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.rejectWithError = true;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value6 = Reflect.apply(get, HTTP, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
yield value6;
|
||||
try {
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
if (value8) {
|
||||
value10 = env2_10(value4);
|
||||
value11 = value10();
|
||||
done = value11.done;
|
||||
if (!done) {
|
||||
r5 = value11;
|
||||
reducibleLoop39: while (true) {
|
||||
value12 = r5.value;
|
||||
binding = env2_8;
|
||||
binding.delete(value12);
|
||||
value13 = value10();
|
||||
done = value13.done;
|
||||
if (done) {
|
||||
break reducibleLoop39;
|
||||
}
|
||||
r5 = value13;
|
||||
continue reducibleLoop39;
|
||||
}
|
||||
}
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
binding3 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
property = binding3[8];
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
value9 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
dispatch = value9.dispatch;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3 = {};
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.type = 'LOAD_MESSAGE_REQUESTS_SUPPLEMENTAL_DATA_SUCCESS';
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.requestedChannelIds = value4;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
body = value7.body;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
object3.supplementalData = body;
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
try {
|
||||
try {
|
||||
Reflect.apply(dispatch, value9, [object3]);
|
||||
} catch (error) {
|
||||
break exceptionLanding41;
|
||||
}
|
||||
} catch (error) {
|
||||
break exceptionLanding57;
|
||||
}
|
||||
value15 = env2_10(value4);
|
||||
value16 = value15();
|
||||
done = value16.done;
|
||||
if (!done) {
|
||||
r5 = value16;
|
||||
reducibleLoop55: while (true) {
|
||||
value17 = r5.value;
|
||||
binding = env2_8;
|
||||
binding.delete(value17);
|
||||
value18 = value15();
|
||||
done = value18.done;
|
||||
if (done) {
|
||||
break reducibleLoop55;
|
||||
}
|
||||
r5 = value18;
|
||||
continue reducibleLoop55;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
const value19 = env2_10(value4);
|
||||
const value20 = value19();
|
||||
done = value20.done;
|
||||
if (!done) {
|
||||
r5 = value20;
|
||||
reducibleLoop58: while (true) {
|
||||
value21 = r5.value;
|
||||
binding = env2_8;
|
||||
binding.delete(value21);
|
||||
value22 = value19();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
break reducibleLoop58;
|
||||
}
|
||||
r5 = value22;
|
||||
continue reducibleLoop58;
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
|
||||
function _fun91661() { // fn#91661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12128:2292, offset: 0x0206d2fd, size: 103 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
const lastMessageId = ReadStateStore.lastMessageId;
|
||||
const idBinding = id;
|
||||
const value3 = Reflect.apply(lastMessageId, ReadStateStore, [idBinding]);
|
||||
const messageRequestPreview = MessageRequestPreviewStore.getMessageRequestPreview(idBinding);
|
||||
if (messageRequestPreview.message == null) {
|
||||
if (value3 == null) {
|
||||
return messageRequestPreview;
|
||||
}
|
||||
value = MessageStore.getMessage(id, value3);
|
||||
if (value != null) {
|
||||
return {'loaded': true, 'error': false, message: value};
|
||||
}
|
||||
}
|
||||
return messageRequestPreview;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* Metro module 15237; source: modules/message_request/hooks/useMessageRequestTimestampText.tsx; dependencies: [4605, 21, 11942, 566, 3738, 7169, 2] */
|
||||
function _fun116555(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15434:6, offset: 0x0248e6e7, size: 144 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useMessageRequestTimestampText.tsx');
|
||||
exports.useMessageRequestTimestampText = useMessageRequestTimestampText;
|
||||
exports.useMessageRequestRelativeTimestampText = useMessageRequestRelativeTimestampText;
|
||||
}
|
||||
|
||||
function getMessageTimestampForChannel(a0) { // fn#116556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15434:106, offset: 0x0248e777, size: 119 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
const lastMessageId = a0.lastMessageId;
|
||||
const message = a0.message;
|
||||
if (a0.loaded) {
|
||||
if (message != null) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.extractTimestamp(message.id);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = null;
|
||||
if (value != lastMessageId) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.extractTimestamp(lastMessageId);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
value = null;
|
||||
if (value != lastMessageId) {
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
value = value.extractTimestamp(lastMessageId);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useMessageRequestTimestampText(a0) { // fn#116557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15434:404, offset: 0x0248e7ee, size: 163 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const value2 = (require(11942) /* metro dependency 11942: useMessageRequestPreview */).useMessageRequestPreview(a0);
|
||||
const getMessageTimestampForChannelBinding = getMessageTimestampForChannel;
|
||||
const object2 = {};
|
||||
object2.lastMessageId = (require(566) /* metro dependency 566: flux */).useStateFromStores([ReadStateStore],
|
||||
_fun116558);
|
||||
copyDataProperties(object2, value2, ReadStateStore);
|
||||
const messageTimestampForChannelBinding = getMessageTimestampForChannelBinding(object2);
|
||||
if (messageTimestampForChannelBinding == null) {
|
||||
r0 = '';
|
||||
} else {
|
||||
value = (importDefault(3738) /* metro dependency 3738 */)(messageTimestampForChannelBinding);
|
||||
value = value.calendar();
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function useMessageRequestRelativeTimestampText(a0) { // fn#116559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15434:685, offset: 0x0248e8b1, size: 159 bytes, params: 2, frame: 19
|
||||
var r0;
|
||||
const env0_0 = a0;
|
||||
var value;
|
||||
const value2 = (require(11942) /* metro dependency 11942: useMessageRequestPreview */).useMessageRequestPreview(a0);
|
||||
const getMessageTimestampForChannelBinding = getMessageTimestampForChannel;
|
||||
const object2 = {};
|
||||
object2.lastMessageId = (require(566) /* metro dependency 566: flux */).useStateFromStores([ReadStateStore],
|
||||
_fun116560);
|
||||
copyDataProperties(object2, value2, ReadStateStore);
|
||||
const messageTimestampForChannelBinding = getMessageTimestampForChannelBinding(object2);
|
||||
if (messageTimestampForChannelBinding == null) {
|
||||
r0 = '';
|
||||
} else {
|
||||
value = require(7169) /* metro dependency 7169: ThreadUtils */;
|
||||
value = value.getTimestampString(messageTimestampForChannelBinding);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116558() { // fn#116558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15434:568, offset: 0x0248e891, size: 32 bytes, params: 1, frame: 11
|
||||
return ReadStateStore.lastMessageId(env0_0.id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 15244; source: modules/message_request/hooks/useMessageRequestsCount.tsx; dependencies: [4621, 566, 2] */
|
||||
function _fun116596(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15441:6, offset: 0x0248fb31, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const messageRequestStore = importDefault(4621) /* metro dependency 4621: MessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useMessageRequestsCount.tsx');
|
||||
exports.useMessageRequestsCount = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([MessageRequestStore], _fun116598);
|
||||
};
|
||||
}
|
||||
|
||||
function useMessageRequestsCount() { // fn#116597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15441:223, offset: 0x0248fba3, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageRequestStore], function() {
|
||||
return MessageRequestStore.getMessageRequestsCount();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/* Metro module 15240; source: modules/message_request/hooks/useMutualGuilds.tsx; dependencies: [31, 5189, 1878, 566, 694, 8491, 2] */
|
||||
function _fun116569(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15437:6, offset: 0x0248f34d, size: 153 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const userProfileStore = importDefault(5189) /* metro dependency 5189: UserProfileStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useMutualGuilds.tsx');
|
||||
exports.useMutualGuildsForMessageRequests = useMutualGuildsForMessageRequests;
|
||||
}
|
||||
|
||||
function useMutualGuildsForMessageRequests(a0) { // fn#116570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15437:245, offset: 0x0248f3e6, size: 152 bytes, params: 2, frame: 20
|
||||
const env0_0 = a0;
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun116571);
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserProfileStore],
|
||||
_fun116572);
|
||||
env0_3.useEffect(_fun116574, [value2, user, a0]);
|
||||
return value2;
|
||||
}
|
||||
|
||||
function _fun116572() { // fn#116572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15437:387, offset: 0x0248f47e, size: 65 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
value = UserProfileStore.getMutualGuilds(env0_0);
|
||||
if (value == null) {
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = value.map(function(a0) {
|
||||
return a0.guild;
|
||||
});
|
||||
r0 = value;
|
||||
}
|
||||
r0 = r0 ?? [];
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116574() { // fn#116574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15437:503, offset: 0x0248f4bf, size: 114 bytes, params: 1, frame: 12
|
||||
var environment;
|
||||
var value4;
|
||||
var value;
|
||||
let r0 = env0_2.length === 0 && user != null;
|
||||
if (r0) {
|
||||
value4 = environment.__proto__;
|
||||
value = UserProfileStore.getMutualGuilds(env0_0);
|
||||
value = value == null;
|
||||
r0 = value;
|
||||
}
|
||||
if (r0) {
|
||||
value = environment.__proto__;
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.wait(_fun116575);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116575() { // fn#116575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15437:573, offset: 0x0248f531, size: 50 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (importDefault(8491) /* metro dependency 8491: maybeFetchUserProfile */)(env1_0, undefined,
|
||||
{withMutualGuilds: true});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 11900; source: modules/message_request/hooks/useRequireConfirmationOnAccept.tsx; dependencies: [11901, 2] */
|
||||
function _fun91350(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12086:6, offset: 0x0205c12f, size: 99 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useRequireConfirmationOnAccept.tsx');
|
||||
exports.default = function() {
|
||||
return importDefault(dependencyMap[0])();
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 15241; source: modules/message_request/hooks/useSortedMessageRequests.tsx; dependencies: [31, 1379, 1878, 4621, 566, 15242, 2] */
|
||||
function _fun116576(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15438:6, offset: 0x0248f563, size: 165 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const messageRequestStore = importDefault(4621) /* metro dependency 4621: MessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useSortedMessageRequests.tsx');
|
||||
exports.default = useSortedMessageRequests;
|
||||
}
|
||||
|
||||
function useSortedMessageRequests() { // fn#116577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15438:238, offset: 0x0248f608, size: 203 bytes, params: 1, frame: 21
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelStore,
|
||||
MessageRequestStore], _fun116579,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getPrivateChannelsVersion();
|
||||
})]);
|
||||
return env0_2.useMemo(_fun116584, [value2,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore], function() {
|
||||
var object = {};
|
||||
object.forEach(_fun116583);
|
||||
return object;
|
||||
}, [value2])]);
|
||||
}
|
||||
|
||||
function _fun116579() { // fn#116579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15438:389, offset: 0x0248f6e6, size: 126 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const env0_0 = ChannelStore.getMutablePrivateChannels();
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
const getMessageRequestChannelIds = MessageRequestStore.getMessageRequestChannelIds;
|
||||
return (require(15242) /* metro dependency 15242: MessageRequestStoreUtils */).sortChannelIds(Reflect.apply(from,
|
||||
Array, [Reflect.apply(getMessageRequestChannelIds, MessageRequestStore,
|
||||
[])]).map(_fun116580).filter(function(a0) {
|
||||
return a0 != null;
|
||||
}));
|
||||
}
|
||||
|
||||
function _fun116582() { // fn#116582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15438:592, offset: 0x0248f764, size: 34 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
object2.forEach(_fun116583);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun116584() { // fn#116584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15438:712, offset: 0x0248f7c1, size: 28 bytes, params: 1, frame: 11
|
||||
return env0_0.map(_fun116585);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 15253; source: modules/message_request/hooks/useSortedSpamMessageRequests.tsx; dependencies: [31, 1379, 1878, 4622, 566, 15242, 2] */
|
||||
function _fun116631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15450:6, offset: 0x02491098, size: 165 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const spamMessageRequestStore = importDefault(4622) /* metro dependency 4622: SpamMessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useSortedSpamMessageRequests.tsx');
|
||||
exports.default = useSortedSpamMessageRequests;
|
||||
}
|
||||
|
||||
function useSortedSpamMessageRequests() { // fn#116632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15450:242, offset: 0x0249113d, size: 203 bytes, params: 1, frame: 21
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([ChannelStore,
|
||||
SpamMessageRequestStore], _fun116634,
|
||||
[(require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getPrivateChannelsVersion();
|
||||
})]);
|
||||
return env0_2.useMemo(_fun116639, [value2,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore], function() {
|
||||
var object = {};
|
||||
object.forEach(_fun116638);
|
||||
return object;
|
||||
}, [value2])]);
|
||||
}
|
||||
|
||||
function _fun116634() { // fn#116634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15450:397, offset: 0x02491208, size: 126 bytes, params: 1, frame: 14
|
||||
var environment;
|
||||
const value = environment.__proto__;
|
||||
const env0_0 = ChannelStore.getMutablePrivateChannels();
|
||||
const Array = global.Array;
|
||||
const from = Array.from;
|
||||
const getSpamChannelIds = SpamMessageRequestStore.getSpamChannelIds;
|
||||
return (require(15242) /* metro dependency 15242: MessageRequestStoreUtils */).sortChannelIds(Reflect.apply(from,
|
||||
Array, [Reflect.apply(getSpamChannelIds, SpamMessageRequestStore, [])]).map(_fun116635).filter(function(a0) {
|
||||
return a0 != null;
|
||||
}));
|
||||
}
|
||||
|
||||
function _fun116637() { // fn#116637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15450:590, offset: 0x02491286, size: 34 bytes, params: 1, frame: 12
|
||||
const object2 = {};
|
||||
object2.forEach(_fun116638);
|
||||
return object2;
|
||||
}
|
||||
|
||||
function _fun116639() { // fn#116639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15450:710, offset: 0x024912a8, size: 28 bytes, params: 1, frame: 11
|
||||
return env0_0.map(_fun116640);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 15245; source: modules/message_request/hooks/useSpamMessageRequestsCount.tsx; dependencies: [4622, 566, 2] */
|
||||
function _fun116599(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15442:6, offset: 0x0248fbf1, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const spamMessageRequestStore = importDefault(4622) /* metro dependency 4622: SpamMessageRequestStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/message_request/hooks/useSpamMessageRequestsCount.tsx');
|
||||
exports.useSpamMessageRequestCount = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([SpamMessageRequestStore], _fun116601);
|
||||
};
|
||||
}
|
||||
|
||||
function useSpamMessageRequestCount() { // fn#116600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15442:230, offset: 0x0248fc63, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([SpamMessageRequestStore], function() {
|
||||
return SpamMessageRequestStore.getSpamChannelsCount();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user