Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,29 @@
|
||||
/* Metro module 1933; source: modules/changelog/ChangelogConstants.tsx; dependencies: [2] */
|
||||
function _fun21361(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2060:6, offset: 0x00eeea0d, size: 270 bytes, params: 8, frame: 19
|
||||
var object4;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
object4 = {DESKTOP: 0};
|
||||
object4[0] = 'DESKTOP';
|
||||
object4.MOBILE = 1;
|
||||
object4[1] = 'MOBILE';
|
||||
const object5 = {YOUTUBE_VIDEO_ID: 0};
|
||||
object5[0] = 'YOUTUBE_VIDEO_ID';
|
||||
object5.IMAGE = 1;
|
||||
object5[1] = 'IMAGE';
|
||||
const object6 = {NOT_LOADED: 0};
|
||||
object6[0] = 'NOT_LOADED';
|
||||
object6.LOADED_SUCCESS = 1;
|
||||
object6[1] = 'LOADED_SUCCESS';
|
||||
object6.LOADED_FAILURE = 2;
|
||||
object6[2] = 'LOADED_FAILURE';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/ChangelogConstants.tsx');
|
||||
exports.CHANGELOG_MODAL_KEY = 'CHANGELOG_MODAL';
|
||||
exports.SYSTEM_UPDATES_USER_ID = '1232523165893132288';
|
||||
exports.CHANGELOG_URL = 'https://discord.com/category/product';
|
||||
exports.ChangelogPlatforms = object4;
|
||||
exports.AssetType = object5;
|
||||
exports.ChangelogLoadState = object6;
|
||||
exports.ChangeLogTemplate = {SPECIAL: 'special', STANDARD: 'standard'};
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,202 @@
|
||||
/* Metro module 4604; source: modules/changelog/ChangelogStore.tsx; dependencies: [6, 7, 15, 17, 18, 1949, 1348, 1933, 587, 3829, 566, 694, 2] */
|
||||
function _fun39121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#39121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:6, offset: 0x010d8bc4, size: 478 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const handleUserSettingsProtoStoreChange = function() {
|
||||
var LastReceivedChangelogId = require(dependencyMap[9]).LastReceivedChangelogId;
|
||||
env0_16 = LastReceivedChangelogId.getSetting();
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
|
||||
const changelogConstantsModule = require(1933) /* metro dependency 1933: ChangelogConstants */;
|
||||
const env0_9 = changelogConstantsModule.AssetType;
|
||||
const env0_10 = changelogConstantsModule.ChangelogLoadState;
|
||||
const env0_11 = {};
|
||||
const env0_12 = {};
|
||||
const Set = global.Set;
|
||||
let set = new Set();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun39126(Store).displayName = 'ChangelogStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {CHANGE_LOG_LOCK: CHANGE_LOG_LOCK,
|
||||
CHANGE_LOG_UNLOCK: CHANGE_LOG_UNLOCK, CHANGE_LOG_SET_CONFIG: function(a0) {
|
||||
var config = a0.config;
|
||||
env0_13 = a0.latestChangelogId;
|
||||
env0_15 = config;
|
||||
}, CHANGE_LOG_FETCH_SUCCESS: CHANGE_LOG_FETCH_SUCCESS, CHANGE_LOG_FETCH_FAILED: CHANGE_LOG_FETCH_FAILED,
|
||||
CHANGE_LOG_SET_OVERRIDE: function(a0) {
|
||||
env0_14 = a0.id;
|
||||
}, CHANGE_LOG_MARK_SEEN: function({changelogDate}) {
|
||||
var Date = global.Date;
|
||||
env0_17 = new Date(changelogDate);
|
||||
var Storage = require(dependencyMap[8]).Storage;
|
||||
Storage.set('lastChangeLogDate', changelogDate);
|
||||
}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/ChangelogStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_39122() { // fn#39122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:215, offset: 0x010d8da2, size: 94 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_39122_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun39126(a0) { // fn#39126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:588, offset: 0x010d8e2f, size: 302 bytes, params: 2, frame: 16
|
||||
const closure = ChangelogStore;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: 'initialize', value: value_39128}, {key: 'getChangelog', value: value_39130},
|
||||
{key: 'latestChangelogId', value: value_39131}, {key: 'getChangelogLoadStatus', value: value_39132},
|
||||
{key: 'hasLoadedConfig', value: value_39133}, {key: 'getConfig', value: value_39134}, {key: 'overrideId',
|
||||
value: value_39135}, {key: 'lastSeenChangelogId', value: value_39136}, {key: 'lastSeenChangelogDate',
|
||||
value: value_39137}, {key: 'getStateForDebugging', value: value_39138}, {key: 'isLocked', value: value_39139}]);
|
||||
}
|
||||
|
||||
function CHANGE_LOG_LOCK({key}) { // fn#39140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1905, offset: 0x010d90dc, size: 82 bytes, params: 2, frame: 13
|
||||
let binding = env0_18;
|
||||
if (binding.has(key)) {
|
||||
return false;
|
||||
}
|
||||
const Set = global.Set;
|
||||
binding = env0_18;
|
||||
const value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
const set = new Set(binding);
|
||||
(set instanceof Object ? set : value2).add(key);
|
||||
}
|
||||
|
||||
function CHANGE_LOG_UNLOCK({key}) { // fn#39141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:2005, offset: 0x010d912e, size: 82 bytes, params: 2, frame: 13
|
||||
var Set;
|
||||
var value2;
|
||||
var set;
|
||||
let binding = env0_18;
|
||||
if (binding.has(key)) {
|
||||
Set = global.Set;
|
||||
binding = env0_18;
|
||||
value2 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set(binding);
|
||||
(set instanceof Object ? set : value2).delete(key);
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function CHANGE_LOG_FETCH_SUCCESS({id, changelog}) { // fn#39143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:2203, offset: 0x010d919e, size: 199 bytes, params: 2, frame: 10
|
||||
if (env0_11[id] == null) {
|
||||
env0_11[id] = {};
|
||||
}
|
||||
let property = env0_11[id];
|
||||
let locale = changelog.locale;
|
||||
const asset_type = changelog.asset_type;
|
||||
const YOUTUBE_VIDEO_ID = AssetType.YOUTUBE_VIDEO_ID;
|
||||
property[locale] = {id: id, date: changelog.date, body: changelog.content, revision: 1, locale: changelog.locale,
|
||||
[asset_type !== YOUTUBE_VIDEO_ID ? 'image' : 'youtube_video_id']: changelog.asset};
|
||||
if (env0_12[id] == null) {
|
||||
env0_12[id] = {};
|
||||
}
|
||||
property = env0_12[id];
|
||||
locale = changelog.locale;
|
||||
const LOADED_SUCCESS = ChangelogLoadState.LOADED_SUCCESS;
|
||||
property[locale] = LOADED_SUCCESS;
|
||||
}
|
||||
|
||||
function CHANGE_LOG_FETCH_FAILED({id, locale}) { // fn#39144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:2501, offset: 0x010d9265, size: 99 bytes, params: 2, frame: 5
|
||||
if (env0_11[id] == null) {
|
||||
if (env0_12[id] == null) {
|
||||
env0_12[id] = {};
|
||||
}
|
||||
env0_12[id][locale] = ChangelogLoadState.LOADED_FAILURE;
|
||||
} else {
|
||||
if (env0_11[id][locale] != null) {
|
||||
return false;
|
||||
}
|
||||
if (env0_12[id] == null) {
|
||||
env0_12[id] = {};
|
||||
}
|
||||
env0_12[id][locale] = ChangelogLoadState.LOADED_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
function value_39128() { // fn#39128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:888, offset: 0x010d8f5d, size: 207 bytes, params: 1, frame: 17
|
||||
var Date;
|
||||
var prototype;
|
||||
var value3;
|
||||
var date;
|
||||
var value4;
|
||||
var error;
|
||||
this.waitFor(LocaleStore, UserSettingsProtoStore);
|
||||
this.syncWith([LocaleStore], function() {
|
||||
return true;
|
||||
});
|
||||
this.syncWith([UserSettingsProtoStore], handleUserSettingsProtoStoreChange);
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const value2 = Storage.get('lastChangeLogDate');
|
||||
if (value2 != null) {
|
||||
try {
|
||||
Date = global.Date;
|
||||
prototype = Date.prototype;
|
||||
value3 = Object.create(prototype, {constructor: {value: Date}});
|
||||
date = new Date(value2);
|
||||
value4 = date instanceof Object ? date : value3;
|
||||
env1_17 = value4;
|
||||
} catch (error) {
|
||||
Storage.remove('lastChangeLogDate');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_39130(a0, a1) { // fn#39130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1121, offset: 0x010d902c, size: 46 bytes, params: 3, frame: 4
|
||||
let value = environment.__proto__;
|
||||
const property = env1_11[a0];
|
||||
value = null;
|
||||
const r1 = value == property ? undefined : property[a1];
|
||||
return value != r1 ? r1 : value;
|
||||
}
|
||||
|
||||
function value_39132(a0, a1) { // fn#39132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1285, offset: 0x010d905a, size: 48 bytes, params: 3, frame: 5
|
||||
let r0 = env1_12[a0]?.[a1];
|
||||
r0 = r0 ?? ChangelogLoadState.NOT_LOADED;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_39133() { // fn#39133, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1397, offset: 0x010d908a, size: 15 bytes, params: 1, frame: 2
|
||||
return env1_15 != null;
|
||||
}
|
||||
|
||||
function value_39138() { // fn#39138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1662, offset: 0x010d9099, size: 47 bytes, params: 1, frame: 3
|
||||
return {changelogConfig: env1_15, loadedChangelogs: env1_12, lastSeenChangelogId: env1_16,
|
||||
lastSeenChangelogDate: env1_17};
|
||||
}
|
||||
|
||||
function value_39139() { // fn#39139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4782:1788, offset: 0x010d90c8, size: 20 bytes, params: 1, frame: 2
|
||||
return env1_18.size > 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 15675; source: modules/changelog/getClientVersionForChangelog.native.tsx; dependencies: [15676, 2] */
|
||||
function _fun120242(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120242, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15883:6, offset: 0x025257bb, size: 96 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/changelog/getClientVersionForChangelog.native.tsx');
|
||||
exports.getClientVersionForChangelog = getClientVersionForChangelog;
|
||||
}
|
||||
|
||||
function getClientVersionForChangelog() { // fn#120243, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15883:214, offset: 0x0252581b, size: 36 bytes, params: 1, frame: 11
|
||||
return (require(15676) /* metro dependency 15676: AppInfoUtils */).getAppMajorVersion();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 15677; source: modules/changelog/openChangelog.native.tsx; dependencies: [1933, 4007, 5080, 13940, 1962, 2] */
|
||||
function _fun120246(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15885:6, offset: 0x02525904, size: 124 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = (require(1933) /* metro dependency 1933: ChangelogConstants */).CHANGELOG_MODAL_KEY;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/openChangelog.native.tsx');
|
||||
exports.openChangelog = openChangelog;
|
||||
}
|
||||
|
||||
function openChangelog() { // fn#120247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15885:218, offset: 0x02525980, size: 131 bytes, params: 1, frame: 17
|
||||
var defaultImport;
|
||||
let value = a0;
|
||||
let r1 = value !== undefined ? value : false;
|
||||
value = !r1;
|
||||
if (r1) {
|
||||
r1 = value;
|
||||
} else {
|
||||
value = require(dependencyMap[1]);
|
||||
value = value.isModalOpen();
|
||||
r1 = value;
|
||||
}
|
||||
if (!r1) {
|
||||
defaultImport = importDefault(dependencyMap[2]);
|
||||
defaultImport.pushLazy(require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths), {},
|
||||
CHANGELOG_MODAL_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 11893; source: modules/changelog/useChangelogIdFromChannel.tsx; dependencies: [4814, 566, 2] */
|
||||
function _fun91294(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91294, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12079:6, offset: 0x0205a5e1, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const messageStore = importDefault(4814) /* metro dependency 4814: MessageStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/useChangelogIdFromChannel.tsx');
|
||||
exports.default = useChangelogIdFromChannel;
|
||||
}
|
||||
|
||||
function useChangelogIdFromChannel(a0) { // fn#91295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12079:197, offset: 0x0205a653, size: 81 bytes, params: 2, frame: 15
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const lastMessage = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore], _fun91296);
|
||||
return lastMessage == null ? value2 : lastMessage.changelogId;
|
||||
}
|
||||
|
||||
function _fun91296() { // fn#91296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12079:273, offset: 0x0205a6a4, size: 27 bytes, params: 1, frame: 11
|
||||
return MessageStore.getLastMessage(env0_0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
/* Metro module 11892; source: modules/changelog/useChangelogRenderedAnalytics.tsx; dependencies: [31, 1949, 4605, 4604, 661, 11893, 566, 8876, 8338, 683, 2] */
|
||||
function _fun91283(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:6, offset: 0x0205a137, size: 191 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 localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
|
||||
const changelogStore = importDefault(4604) /* metro dependency 4604: ChangelogStore */;
|
||||
const env0_7 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/useChangelogRenderedAnalytics.tsx');
|
||||
exports.default = useChangelogRenderedAnalytics;
|
||||
}
|
||||
|
||||
function useChangelogRenderedAnalytics(a0) { // fn#91284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:257, offset: 0x0205a1f6, size: 427 bytes, params: 2, frame: 24
|
||||
const env0_0 = a0;
|
||||
const value2 = (importDefault(11893) /* metro dependency 11893: useChangelogIdFromChannel */)(a0);
|
||||
const locale = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChangelogStore], _fun91286,
|
||||
[value2, locale]);
|
||||
const env0_3 = value3;
|
||||
const value4 = (importDefault(8876) /* metro dependency 8876: isChangelogChannel */)(a0);
|
||||
let binding = env0_3;
|
||||
const env0_5 = binding.useRef(value4 ? global.Date.now() : null);
|
||||
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ReadStateStore], _fun91287, [a0]);
|
||||
binding = env0_3;
|
||||
const env0_7 = binding.useRef(value7);
|
||||
binding.useEffect(_fun91288);
|
||||
binding.useEffect(_fun91289, [value4]);
|
||||
binding.useEffect(_fun91290, [value2, locale, value4]);
|
||||
binding.useEffect(_fun91291, [value4, value3]);
|
||||
binding.useEffect(_fun91292, [value4, value3]);
|
||||
}
|
||||
|
||||
function _fun91286() { // fn#91286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:399, offset: 0x0205a3a1, size: 49 bytes, params: 1, frame: 14
|
||||
return ChangelogStore.getChangelog(env0_1 ?? '', locale);
|
||||
}
|
||||
|
||||
function _fun91287() { // fn#91287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:519, offset: 0x0205a3d2, size: 27 bytes, params: 1, frame: 11
|
||||
return ReadStateStore.getUnreadCount(env0_0);
|
||||
}
|
||||
|
||||
function _fun91289() { // fn#91289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:609, offset: 0x0205a3ed, size: 34 bytes, params: 1, frame: 10
|
||||
const binding = env0_5;
|
||||
const Date = global.Date;
|
||||
binding.current = Date.now();
|
||||
}
|
||||
|
||||
function _fun91290() { // fn#91290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:655, offset: 0x0205a40f, size: 75 bytes, params: 1, frame: 15
|
||||
var value3;
|
||||
var defaultImport;
|
||||
if (env0_4 && env0_1 != null) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(8338) /* metro dependency 8338: ChangeLogActionCreators */;
|
||||
defaultImport.fetchChangelog(env0_1, locale, true);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91291() { // fn#91291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:727, offset: 0x0205a45a, size: 138 bytes, params: 1, frame: 20
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var CHANGE_LOG_OPENED;
|
||||
let binding = env0_4;
|
||||
if (binding && env0_3 != null) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
CHANGE_LOG_OPENED = AnalyticEvents.CHANGE_LOG_OPENED;
|
||||
binding = env0_3;
|
||||
Reflect.apply(track, defaultImport, [CHANGE_LOG_OPENED,
|
||||
{change_log_id: '' + binding.date + ':' + binding.revision,
|
||||
unread_count: env0_7.current}]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun91292() { // fn#91292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:866, offset: 0x0205a4e4, size: 27 bytes, params: 1, frame: 2
|
||||
const env0_0 = env0_5.current;
|
||||
return _fun91293;
|
||||
}
|
||||
|
||||
function _fun91293() { // fn#91293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12078:893, offset: 0x0205a4ff, size: 226 bytes, params: 1, frame: 20
|
||||
var value5;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var CHANGE_LOG_CLOSED;
|
||||
var object2;
|
||||
var Math;
|
||||
let binding = env1_4;
|
||||
if (binding && env1_3 != null && current != null) {
|
||||
value5 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
CHANGE_LOG_CLOSED = AnalyticEvents.CHANGE_LOG_CLOSED;
|
||||
object2 = {};
|
||||
Math = global.Math;
|
||||
object2.seconds_open = Math.round((global.Date.now() - current) / 1000);
|
||||
binding = env1_3;
|
||||
object2.change_log_id = '' + binding.date + ':' + binding.revision;
|
||||
object2.unread_count = env1_7.current;
|
||||
Reflect.apply(track, defaultImport, [CHANGE_LOG_CLOSED, object2]);
|
||||
env1_5.current = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
/* Metro module 8337; source: modules/changelog/useCurrentChangelog.tsx; dependencies: [31, 1949, 4604, 1933, 632, 8338, 2] */
|
||||
function _fun66379(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8522:6, offset: 0x01bf960c, size: 192 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = useChangelog;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
|
||||
const changelogStore = importDefault(4604) /* metro dependency 4604: ChangelogStore */;
|
||||
const env0_6 = (require(1933) /* metro dependency 1933: ChangelogConstants */).ChangelogLoadState;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/useCurrentChangelog.tsx');
|
||||
exports.useChangelog = closure;
|
||||
exports.useCurrentChangelog = useCurrentChangelog;
|
||||
}
|
||||
|
||||
function useChangelog(a0, a1) { // fn#66380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8522:155, offset: 0x01bf96cc, size: 275 bytes, params: 3, frame: 22
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStoresObject([ChangelogStore],
|
||||
_fun66381, [a0, a1]);
|
||||
const changelog = value2.changelog;
|
||||
const loadState = value2.loadState;
|
||||
const env0_3 = loadState;
|
||||
const defaultChangelog = value2.defaultChangelog;
|
||||
const defaultLoadState = value2.defaultLoadState;
|
||||
env0_3.useEffect(_fun66382, [a0, changelog, loadState, a1]);
|
||||
return a0 == null ? {'id': null, 'changelog': null, 'loaded': false, id: a0} : changelog != null ? {id: a0,
|
||||
changelog: changelog,
|
||||
loaded: loadState !== ChangelogLoadState.NOT_LOADED} : loadState === ChangelogLoadState.LOADED_FAILURE ? {id: a0,
|
||||
changelog: defaultChangelog, loaded: defaultLoadState !== ChangelogLoadState.NOT_LOADED} : {id: a0,
|
||||
changelog: changelog, loaded: loadState !== ChangelogLoadState.NOT_LOADED};
|
||||
}
|
||||
|
||||
function useCurrentChangelog() { // fn#66383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8522:927, offset: 0x01bf98fc, size: 377 bytes, params: 1, frame: 21
|
||||
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
|
||||
function() {
|
||||
return LocaleStore.locale;
|
||||
});
|
||||
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChangelogStore],
|
||||
function() {
|
||||
return ChangelogStore.latestChangelogId();
|
||||
});
|
||||
const config = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChangelogStore],
|
||||
function() {
|
||||
return ChangelogStore.getConfig();
|
||||
});
|
||||
const r5 = config != null && global.Object.keys(config).length === 0;
|
||||
const r2 = config != null && global.Object.keys(config).length > 0 && value2 == null;
|
||||
const value8 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChangelogStore],
|
||||
function() {
|
||||
return ChangelogStore.overrideId();
|
||||
});
|
||||
let value = useChangelog(value2, locale);
|
||||
const changelog = value.changelog;
|
||||
const loaded = value.loaded;
|
||||
value = useChangelog(value8, locale);
|
||||
const changelog2 = value.changelog;
|
||||
const loaded2 = value.loaded;
|
||||
return value8 == null ? {id: value2, changelog: changelog, loaded: r5 ? !!r5 : loaded,
|
||||
clientTooOld: r2} : changelog2 != null ? {id: value8, changelog: changelog2, loaded: loaded2,
|
||||
clientTooOld: false} : loaded2 ? {id: value2, changelog: changelog, loaded: r5 ? !!r5 : loaded,
|
||||
clientTooOld: r2} : {id: value8, changelog: changelog2, loaded: loaded2, clientTooOld: false};
|
||||
}
|
||||
|
||||
function _fun66381() { // fn#66381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8522:226, offset: 0x01bf97df, size: 185 bytes, params: 1, frame: 18
|
||||
const value2 = null;
|
||||
return {changelog: value2 != env0_0 ? ChangelogStore.getChangelog(env0_0, require) : value2,
|
||||
loadState: value2 != env0_0 && ChangelogStore.getChangelogLoadStatus(env0_0, require),
|
||||
defaultChangelog: value2 != env0_0 ? ChangelogStore.getChangelog(env0_0, 'en-US') : value2,
|
||||
defaultLoadState: value2 != env0_0 && ChangelogStore.getChangelogLoadStatus(env0_0, 'en-US')};
|
||||
}
|
||||
|
||||
function _fun66382() { // fn#66382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8522:564, offset: 0x01bf9898, size: 100 bytes, params: 1, frame: 13
|
||||
var value6;
|
||||
var defaultImport;
|
||||
if (env0_0 != null && changelog == null && loadState === ChangelogLoadState.NOT_LOADED) {
|
||||
value6 = environment.__proto__;
|
||||
defaultImport = importDefault(8338) /* metro dependency 8338: ChangeLogActionCreators */;
|
||||
defaultImport.fetchChangelog(env0_0, require);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 8876; source: modules/changelog/utils/isChangelogChannel.tsx; dependencies: [1379, 1933, 2] */
|
||||
function _fun69182(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9061:6, offset: 0x01c6c517, size: 128 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_1 = (require(1933) /* metro dependency 1933: ChangelogConstants */).SYSTEM_UPDATES_USER_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/utils/isChangelogChannel.tsx');
|
||||
exports.default = isChangelogChannel;
|
||||
}
|
||||
|
||||
function isChangelogChannel(a0) { // fn#69183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9061:229, offset: 0x01c6c597, size: 40 bytes, params: 2, frame: 13
|
||||
return a0 != null && a0 === ChannelStore.getDMFromUserId(SYSTEM_UPDATES_USER_ID);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 1932; source: modules/changelog/utils/isChangelogUser.tsx; dependencies: [1933, 2] */
|
||||
function _fun21359(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2059:6, offset: 0x00eee989, size: 107 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = (require(1933) /* metro dependency 1933: ChangelogConstants */).SYSTEM_UPDATES_USER_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/changelog/utils/isChangelogUser.tsx');
|
||||
exports.default = isChangelogUser;
|
||||
}
|
||||
|
||||
function isChangelogUser(a0) { // fn#21360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2059:216, offset: 0x00eee9f4, size: 25 bytes, params: 2, frame: 3
|
||||
return a0 != null && a0 === SYSTEM_UPDATES_USER_ID;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user