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

No files matched your search

@@ -1,4 +1,16 @@
/* Metro module 1380; source: modules/app_database/stores/BasicChannelCacheStore.tsx; dependencies: [57, 6, 7, 15, 17, 18, 1381, 3, 694, 566, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import GuildMembershipStore from '../../../stores/GuildMembershipStore.tsx'; /* Metro dependency 1381 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun16056(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:6, offset: 0x00e461ff, size: 309 bytes, params: 8, frame: 18
const _arrayLikeToArray_16059 = function(a0, a1) {
var r0;
@@ -45,279 +57,291 @@ function _fun16056(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const guildMembershipStore = importDefault(1381) /* metro dependency 1381: GuildMembershipStore */;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
Object.create(value.prototype, {constructor: {value: value}});
new value('BasicChannelCacheStore');
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
value = _fun16063(Store);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_database/stores/BasicChannelCacheStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_database/stores/BasicChannelCacheStore.tsx');
exports.default = value;
}
function _createForOfIteratorHelperLoose_16057(a0, a1) { // fn#16057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:170, offset: 0x00e46334, size: 370 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)) {
function _createForOfIteratorHelperLoose_16057(a0, a1) { // fn#16057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:170, offset: 0x00e46334, size: 370 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);
}
return _fun16058;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_16059(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') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun16058;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_16059(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
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_16059(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun16058;
}
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 _isNativeReflectConstruct_16060() { // fn#16060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1080, offset: 0x00e464a6, 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_16060_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun16063(a0) { // fn#16063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1322, offset: 0x00e46504, size: 325 bytes, params: 2, frame: 16
const closure = BasicChannelCacheStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'hasChannel', value: function(a0) {
return this.channels.has(a0);
}}, {key: 'hasGuild', value: function(a0) {
return this.guilds.has(a0);
}}, {key: 'getBasicChannel', value: function(a0) {
var value = this.channels.get(a0);
var value2 = null;
return value2 != value ? value : value2;
}}, {key: 'getGuildBasicChannels', value: function(a0) {
var value = this.guilds.get(a0);
var value2 = null;
return value2 != value ? value : value2;
}}, {key: 'invalidate', value: function(a0) {
this.delete(a0);
}}, {key: 'restored', value: function(a0) {
this.delete(a0);
}}, {key: 'initialize', value: function() {
this.waitFor(GuildMembershipStore);
}}, {key: 'handleCacheLoadedLazy', value: value_16076}, {key: 'handleCacheLoadedLazyNoCache', value: function() {
this.guilds.clear();
this.channels.clear();
}}, {key: 'handleConnectionOpen', value: value_16079}, {key: 'handleLogout', value: function() {
this.guilds.clear();
this.channels.clear();
}}, {key: 'delete', value: function(a0) {
var propertyName;
var property = this.guilds;
for (propertyName in property.get(a0) ?? ({})) {
property = this.channels;
property.delete(propertyName);
}
this.guilds.delete(a0);
}}]);
}
function BasicChannelCacheStore() { // fn#16064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1334, offset: 0x00e46649, size: 250 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
env1_3(this, BasicChannelCacheStore);
const items2 = [importDefault(694) /* metro dependency 694: Dispatcher */];
items2[1] = {CACHE_LOADED_LAZY_NO_CACHE: CACHE_LOADED_LAZY_NO_CACHE_16065,
CACHE_LOADED_LAZY: CACHE_LOADED_LAZY_16066, CONNECTION_OPEN: CONNECTION_OPEN_16067, LOGOUT: LOGOUT_16068};
const value3 = env1_6(BasicChannelCacheStore);
value = env1_5(this, _isNativeReflectConstruct_16060() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
let Map = global.Map;
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
let map = new Map();
value.channels = map instanceof Object ? map : value4;
Map = global.Map;
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
map = new Map();
value.guilds = map instanceof Object ? map : value6;
return value;
}
function value_16076({basicGuildChannels}) { // fn#16076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:2383, offset: 0x00e4682f, size: 272 bytes, params: 2, frame: 27
var environment;
var r2;
var r11;
var value4;
var value5;
var property;
var property2;
var guilds;
var set;
var Object;
var fromEntries;
var value6;
var value7;
var value8;
var channels;
var id;
var value9;
var value10;
let Map = global.Map;
let map = new Map();
this.guilds = map;
Map = global.Map;
this.channels = new Map();
map = environment.__proto__;
const value2 = _createForOfIteratorHelperLoose_16057(basicGuildChannels);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop1: while (true) {
value4 = r2.value;
value5 = env1_2(value4, 2);
property = value5[0];
property2 = value5[1];
guilds = this.guilds;
set = guilds.set;
Object = global.Object;
fromEntries = Object.fromEntries;
map = property2.map;
Reflect.apply(set, guilds, [property, Reflect.apply(fromEntries, Object, [Reflect.apply(map, property2,
[function(a0) {
return [a0.id, a0];
}])])]);
value6 = _createForOfIteratorHelperLoose_16057(property2);
value7 = value6();
done = value7.done;
if (!done) {
r11 = value7;
reducibleLoop2: while (true) {
value8 = r11.value;
channels = this.channels;
set = channels.set;
id = value8.id;
Reflect.apply(set, channels, [id, value8]);
value9 = value6();
done = value9.done;
if (done) {
break reducibleLoop2;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_16059(a0, value);
r6 = value;
} else {
r6 = value;
}
r11 = value9;
continue reducibleLoop2;
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun16058;
}
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 _fun16058() { // fn#16058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:741, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function _isNativeReflectConstruct_16060() { // fn#16060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1080, offset: 0x00e464a6, 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_16060_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun16063(a0) { // fn#16063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1322, offset: 0x00e46504, size: 325 bytes, params: 2, frame: 16
const BasicChannelCacheStore2 = BasicChannelCacheStore;
Inherits(BasicChannelCacheStore2, a0);
return CreateClass(BasicChannelCacheStore2, [{key: 'hasChannel', value: function(a0) {
return this.channels.has(a0);
}}, {key: 'hasGuild', value: function(a0) {
return this.guilds.has(a0);
}}, {key: 'getBasicChannel', value: function(a0) {
var value = this.channels.get(a0);
var value2 = null;
return value2 != value ? value : value2;
}}, {key: 'getGuildBasicChannels', value: function(a0) {
var value = this.guilds.get(a0);
var value2 = null;
return value2 != value ? value : value2;
}}, {key: 'invalidate', value: function(a0) {
this.delete(a0);
}}, {key: 'restored', value: function(a0) {
this.delete(a0);
}}, {key: 'initialize', value: function() {
this.waitFor(GuildMembershipStore);
}}, {key: 'handleCacheLoadedLazy', value: value_16076}, {key: 'handleCacheLoadedLazyNoCache', value: function() {
this.guilds.clear();
this.channels.clear();
}}, {key: 'handleConnectionOpen', value: value_16079}, {key: 'handleLogout', value: function() {
this.guilds.clear();
this.channels.clear();
}}, {key: 'delete', value: function(a0) {
var propertyName;
var property = this.guilds;
for (propertyName in property.get(a0) ?? ({})) {
property = this.channels;
property.delete(propertyName);
}
this.guilds.delete(a0);
}}]);
function BasicChannelCacheStore() { // fn#16064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1334, offset: 0x00e46649, size: 250 bytes, params: 1, frame: 20
var environment;
let value = environment.__proto__;
env1_3(this, BasicChannelCacheStore);
const items2 = [Dispatcher];
items2[1] = {CACHE_LOADED_LAZY_NO_CACHE: CACHE_LOADED_LAZY_NO_CACHE, CACHE_LOADED_LAZY: CACHE_LOADED_LAZY_16066,
CONNECTION_OPEN: CONNECTION_OPEN_16067, LOGOUT: LOGOUT_16068};
const value3 = env1_6(BasicChannelCacheStore);
value = env1_5(this, _isNativeReflectConstruct_16060() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
let Map = global.Map;
const value4 = Object.create(Map.prototype, {constructor: {value: Map}});
let map = new Map();
value.channels = map instanceof Object ? map : value4;
Map = global.Map;
const value6 = Object.create(Map.prototype, {constructor: {value: Map}});
map = new Map();
value.guilds = map instanceof Object ? map : value6;
return value;
function CACHE_LOADED_LAZY_NO_CACHE(a0) { // fn#16065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1612, owner: BasicChannelCacheStore.CACHE_LOADED_LAZY_NO_CACHE, offset: 0x00e46743, size: 25 bytes, params: 2, frame: 11
return env0_0.handleCacheLoadedLazyNoCache(a0);
}
function BasicChannelCacheStoreCACHE_LOADED_LAZY(a0) { // fn#16066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1667, owner: BasicChannelCacheStore.CACHE_LOADED_LAZY, offset: 0x00e4675c, size: 23 bytes, params: 2, frame: 11
return env0_0.handleCacheLoadedLazy(a0);
}
function BasicChannelCacheStoreCONNECTION_OPEN(a0) { // fn#16067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1713, owner: BasicChannelCacheStore.CONNECTION_OPEN, offset: 0x00def9e8, size: 23 bytes, params: 2, frame: 11
return env0_0.handleConnectionOpen(a0);
}
function BasicChannelCacheStoreLOGOUT(a0) { // fn#16068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1749, owner: BasicChannelCacheStore.LOGOUT, offset: 0x00e46773, size: 23 bytes, params: 2, frame: 11
return env0_0.handleLogout(a0);
}
}
function value_16076({basicGuildChannels}) { // fn#16076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:2383, offset: 0x00e4682f, size: 272 bytes, params: 2, frame: 27
var environment;
var r2;
var r11;
var value4;
var value5;
var property;
var property2;
var guilds;
var set;
var Object;
var fromEntries;
var value6;
var value7;
var value8;
var channels;
var id;
var value9;
var value10;
let Map = global.Map;
let map = new Map();
this.guilds = map;
Map = global.Map;
this.channels = new Map();
map = environment.__proto__;
const value2 = _createForOfIteratorHelperLoose_16057(basicGuildChannels);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop1: while (true) {
value4 = r2.value;
value5 = env1_2(value4, 2);
property = value5[0];
property2 = value5[1];
guilds = this.guilds;
set = guilds.set;
Object = global.Object;
fromEntries = Object.fromEntries;
map = property2.map;
Reflect.apply(set, guilds, [property, Reflect.apply(fromEntries, Object, [Reflect.apply(map, property2,
[function(a0) {
return [a0.id, a0];
}])])]);
value6 = _createForOfIteratorHelperLoose_16057(property2);
value7 = value6();
done = value7.done;
if (!done) {
r11 = value7;
reducibleLoop2: while (true) {
value8 = r11.value;
channels = this.channels;
set = channels.set;
id = value8.id;
Reflect.apply(set, channels, [id, value8]);
value9 = value6();
done = value9.done;
if (done) {
break reducibleLoop2;
}
r11 = value9;
continue reducibleLoop2;
}
}
value10 = value2();
done = value10.done;
if (done) {
break reducibleLoop1;
}
r2 = value10;
continue reducibleLoop1;
}
}
value10 = value2();
done = value10.done;
if (done) {
break reducibleLoop1;
}
r2 = value10;
continue reducibleLoop1;
}
}
}
function value_16079() { // fn#16079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:2854, offset: 0x00e4697c, size: 105 bytes, params: 1, frame: 15
var r2;
var value4;
var has;
var value5;
let value = environment.__proto__;
const value2 = GuildMembershipStore.allGuildIds();
const _createForOfIteratorHelperLoose_16057Binding = _createForOfIteratorHelperLoose_16057;
value = this.guilds.keys();
value = _createForOfIteratorHelperLoose_16057Binding(value);
const value3 = value();
let done = value3.done;
if (!done) {
r2 = value3;
while (true) {
value4 = r2.value;
has = value2.has;
if (!Reflect.apply(has, value2, [value4])) {
this.delete(value4);
function value_16079() { // fn#16079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:2854, offset: 0x00e4697c, size: 105 bytes, params: 1, frame: 15
var r2;
var value4;
var has;
var value5;
let value = environment.__proto__;
const value2 = GuildMembershipStore.allGuildIds();
const _createForOfIteratorHelperLoose_16057Binding = _createForOfIteratorHelperLoose_16057;
value = this.guilds.keys();
value = _createForOfIteratorHelperLoose_16057Binding(value);
const value3 = value();
let done = value3.done;
if (!done) {
r2 = value3;
while (true) {
value4 = r2.value;
has = value2.has;
if (!Reflect.apply(has, value2, [value4])) {
this.delete(value4);
}
value5 = value();
done = value5.done;
if (done) {
break;
}
r2 = value5;
continue;
}
}
value5 = value();
done = value5.done;
if (done) {
break;
}
r2 = value5;
continue;
}
}
}
function BasicChannelCacheStoreCACHE_LOADED_LAZY_NO_CACHE(a0) { // fn#16065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1507:1612, owner: BasicChannelCacheStore.CACHE_LOADED_LAZY_NO_CACHE, offset: 0x00e46743, size: 25 bytes, params: 2, frame: 11
return env0_0.handleCacheLoadedLazyNoCache(a0);
}
global.__d(_fun16056, 1380, [57, 6, 7, 15, 17, 18, 1381, 3, 694, 566,
2]) /* metro module 1380, dependencies: [57, 6, 7, 15, 17, 18, 1381, 3, 694, 566, 2] */;
@@ -1,136 +1,156 @@
/* Metro module 4888; source: modules/app_database/stores/FileSystemStore.tsx; dependencies: [5, 6, 7, 15, 17, 18, 3, 672, 694, 1910, 566, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Durations from '../../../utils/Durations.tsx'; /* Metro dependency 672 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import DatabaseDaos from '../DatabaseDaos.tsx'; /* Metro dependency 1910 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun43012(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:6, offset: 0x0114845b, size: 318 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('FileSystemStore');
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const Millis = (Durations).Millis;
const MINUTE = Millis.MINUTE;
const env0_9 = 10 * MINUTE;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
value = _fun43016(Store);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_database/stores/FileSystemStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/app_database/stores/FileSystemStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_43013() { // fn#43013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:158, offset: 0x01148599, 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) {
function _isNativeReflectConstruct_43013() { // fn#43013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:158, offset: 0x01148599, 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_43013_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_43013_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun43016(a0) { // fn#43016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:418, offset: 0x011485f7, size: 132 bytes, params: 2, frame: 17
const closure = FileSystemStore;
env0_7(closure, a0);
const binding = env0_4;
const env0_0 = env0_2(_fun43024);
return binding(closure, [{key: 'handlePostConnectionOpen', value: function() {
this.refresh();
return false;
}}, {key: 'handleAppStateUpdate', value: function(a0) {
if (a0.state !== 'active') {
function _fun43016(a0) { // fn#43016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:418, offset: 0x011485f7, size: 132 bytes, params: 2, frame: 17
const FileSystemStore2 = FileSystemStore;
Inherits(FileSystemStore2, a0);
const env0_0 = Module00005(_fun43024);
return CreateClass(FileSystemStore2, [{key: 'handlePostConnectionOpen', value: function() {
this.refresh();
return false;
}}, {key: 'handleAppStateUpdate', value: function(a0) {
if (a0.state !== 'active') {
this.refresh();
}
return false;
}}, {key: 'refresh', value: value_43026}]);
function FileSystemStore() { // fn#43017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:430, offset: 0x0114867b, size: 228 bytes, params: 1, frame: 23
env1_3(this, FileSystemStore);
const items2 = [Dispatcher];
items2[1] = {APP_STATE_UPDATE: APP_STATE_UPDATE_43018, POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_43019};
const value3 = env1_6(FileSystemStore);
const value6 = env1_5(this, _isNativeReflectConstruct_43013() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
value6.isLowDisk = false;
value6.refresh();
value6.waitFor(DatabaseDaos);
global.setInterval(_fun43020, env1_9);
return value6;
function FileSystemStoreAPP_STATE_UPDATE(a0) { // fn#43018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:677, owner: FileSystemStore.APP_STATE_UPDATE, offset: 0x0114875f, size: 23 bytes, params: 2, frame: 11
return env0_0.handleAppStateUpdate(a0);
}
function FileSystemStorePOST_CONNECTION_OPEN() { // fn#43019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:727, owner: FileSystemStore.POST_CONNECTION_OPEN, offset: 0x01148776, size: 19 bytes, params: 1, frame: 9
return env0_0.handlePostConnectionOpen();
}
function _fun43020() { // fn#43020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:821, offset: 0x01148789, size: 19 bytes, params: 1, frame: 9
return env0_0.refresh();
}
}
return false;
}}, {key: 'refresh', value: value_43026}]);
}
function FileSystemStore() { // fn#43017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:430, offset: 0x0114867b, size: 228 bytes, params: 1, frame: 23
env1_3(this, FileSystemStore);
const items2 = [importDefault(694) /* metro dependency 694: Dispatcher */];
items2[1] = {APP_STATE_UPDATE: APP_STATE_UPDATE_43018, POST_CONNECTION_OPEN: POST_CONNECTION_OPEN_43019};
const value3 = env1_6(FileSystemStore);
const value6 = env1_5(this, _isNativeReflectConstruct_43013() ? global.Reflect.construct(value3, items2,
env1_6(this).constructor) : value3.apply(this, items2));
value6.isLowDisk = false;
value6.refresh();
value6.waitFor(importDefault(1910) /* metro dependency 1910: DatabaseDaos */);
global.setInterval(_fun43020, env1_9);
return value6;
}
function* _fun43024() { // fn#43024, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:1085, offset: 0x011487d7, size: 379 bytes, params: 1, frame: 18
var environment;
var r1;
var r6;
var r7;
var r3;
var value6;
var fs;
var available;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
value = undefined;
const value4 = binding(env2_1[9]).database();
const value5 = null;
if (value5 == value4) {
r1 = value;
} else {
value6 = value4.fsInfo();
r1 = value5 == value6 ? value : value6.catch(_fun43025);
}
yield r1;
const value8 = undefined;
if (false) {
return value8;
}
if (value5 != value8) {
fs = value8.fs;
available = fs.available;
r6 = available < 268435456 || value8.fs.available < 3 * value8.database.used;
r6 = !r6 ? value8.fs.available < 2 * value8.database.total : r6;
fs = value8.fs;
available = fs.available;
r7 = available > 805306368 && value8.fs.available > 4 * value8.database.used;
r7 = r7 && value8.fs.available > 4 * value8.database.total;
r3 = r6 ? !!r6 : !r7 && value5;
if (value5 != r3 && this.isLowDisk !== r3) {
this.isLowDisk = r3;
this.emitChange();
}
}
return value;
function _fun43025(a0) { // fn#43025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:1178, offset: 0x01148952, size: 29 bytes, params: 2, frame: 13
return env3_8.warn("couldn't get fs info", a0);
}
function* _fun43024() { // fn#43024, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:1085, offset: 0x011487d7, size: 379 bytes, params: 1, frame: 18
var environment;
var r1;
var r6;
var r7;
var r3;
var value6;
var fs;
var available;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const binding = env2_0;
value = undefined;
const value4 = binding(env2_1[9]).database();
const value5 = null;
if (value5 == value4) {
r1 = value;
} else {
value6 = value4.fsInfo();
r1 = value5 == value6 ? value : value6.catch(_fun43025);
}
yield r1;
const value8 = undefined;
if (false) {
return value8;
}
if (value5 != value8) {
fs = value8.fs;
available = fs.available;
r6 = available < 268435456 || value8.fs.available < 3 * value8.database.used;
r6 = !r6 ? value8.fs.available < 2 * value8.database.total : r6;
fs = value8.fs;
available = fs.available;
r7 = available > 805306368 && value8.fs.available > 4 * value8.database.used;
r7 = r7 && value8.fs.available > 4 * value8.database.total;
r3 = r6 ? !!r6 : !r7 && value5;
if (value5 != r3 && this.isLowDisk !== r3) {
this.isLowDisk = r3;
this.emitChange();
}
function value_43026() { // fn#43026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:1510, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
return value;
}
function _fun43020() { // fn#43020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:821, offset: 0x01148789, size: 19 bytes, params: 1, frame: 9
return env0_0.refresh();
}
function _fun43025(a0) { // fn#43025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5066:1178, offset: 0x01148952, size: 29 bytes, params: 2, frame: 13
return env3_8.warn("couldn't get fs info", a0);
}
global.__d(_fun43012, 4888, [5, 6, 7, 15, 17, 18, 3, 672, 694, 1910, 566,
2]) /* metro module 4888, dependencies: [5, 6, 7, 15, 17, 18, 3, 672, 694, 1910, 566, 2] */;