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,191 +1,196 @@
/* Metro module 7145; source: modules/foreground_service/mobile/ForegroundServiceManager.android.tsx; dependencies: [15, 17, 18, 6, 7, 27, 660, 644, 4561, 2] */
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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
function _fun57149(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:6, offset: 0x013ddefe, size: 293 bytes, params: 8, frame: 19
const socketToken = function(a0) {
return 'ForegroundService:' + a0;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(15) /* metro dependency 15 */;
const env0_4 = importDefault(17) /* metro dependency 17 */;
const env0_5 = importDefault(18) /* metro dependency 18 */;
const env0_6 = importDefault(6) /* metro dependency 6 */;
const env0_7 = importDefault(7) /* metro dependency 7 */;
const env0_8 = (require(27) /* metro dependency 27 */).NativeModules;
let value = _fun57154();
value = new value();
value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
value = _fun57164(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/foreground_service/mobile/ForegroundServiceManager.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/foreground_service/mobile/ForegroundServiceManager.android.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_57150() { // fn#57150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:172, offset: 0x013de023, 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_57150_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun57154() { // fn#57154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:430, offset: 0x013de09e, size: 170 bytes, params: 1, frame: 15
return env0_7(ForegroundServiceManager, [{key: 'initialize', value: function() {
}}, {key: 'terminate', value: function() {
}}, {key: 'addServiceHandler', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun57160);
return value2 instanceof Object ? value2 : value;
}}, {key: 'updateServiceHandler', value: value_57161}, {key: 'removeServiceHandler', value: function(a0) {
this.updateServiceHandler(a0, null);
}}, {key: 'isForegroundServiceRunning', value: function(a0) {
var ForegroundServiceModule = NativeModules.ForegroundServiceModule;
ForegroundServiceModule.isServiceRunning(a0);
}}]);
}
function _fun57164(a0) { // fn#57164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1599, offset: 0x013de3bd, size: 183 bytes, params: 2, frame: 16
const closure = ForegroundServiceLifecycleManager;
env0_5(closure, a0);
return env0_7(closure, [{key: '_initialize', value: value_57166}, {key: '_terminate', value: value_57167},
{key: 'addServiceHandler', value: value_57168}, {key: 'updateServiceHandler', value: value_57169},
{key: 'removeServiceHandler', value: value_57170}, {key: 'isForegroundServiceRunning', value: value_57171}]);
}
function ForegroundServiceManager() { // fn#57155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:451, offset: 0x013de148, size: 87 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
env1_6(this, ForegroundServiceManager);
const Map = global.Map;
this.serviceNotifications = new Map();
this.serviceNotificationIdentifier = 1;
this.handleChange = handleChange_57156;
}
function value_57159(a0) { // fn#57159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:877, offset: 0x013de210, size: 51 bytes, params: 2, frame: 11
const env0_1 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun57160);
return promise instanceof Object ? promise : value;
}
function value_57161(a0, a1) { // fn#57161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1066, offset: 0x013de27b, size: 265 bytes, params: 3, frame: 18
var value;
var defaultImport;
var serviceNotifications;
var usesGateway;
var moduleValue;
var moduleValue2;
if (a1 == null) {
serviceNotifications = this.serviceNotifications;
if (serviceNotifications.has(a0)) {
value = environment.__proto__;
moduleValue2 = importAll(660) /* metro dependency 660: RequestGatewaySocket */;
moduleValue2.stopRequest(socketToken(a0));
this.serviceNotifications.delete(a0);
this.handleChange();
function _isNativeReflectConstruct_57150() { // fn#57150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:172, offset: 0x013de023, 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) {
}
} else {
value = environment.__proto__;
defaultImport = importDefault(644) /* metro dependency 644 */;
serviceNotifications = this.serviceNotifications;
if (!defaultImport(serviceNotifications.get(a0), a1)) {
usesGateway = a1.usesGateway;
moduleValue = importAll(660) /* metro dependency 660: RequestGatewaySocket */;
if (usesGateway) {
moduleValue.setRequestedBy(socketToken(a0));
} else {
moduleValue.stopRequest(socketToken(a0));
return (_isNativeReflectConstruct_57150_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun57154() { // fn#57154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:430, offset: 0x013de09e, size: 170 bytes, params: 1, frame: 15
return CreateClass(ForegroundServiceManager, [{key: 'initialize', value: function() {
}}, {key: 'terminate', value: function() {
}}, {key: 'addServiceHandler', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
var value2 = new Promise(_fun57160);
return value2 instanceof Object ? value2 : value;
}}, {key: 'updateServiceHandler', value: value_57161}, {key: 'removeServiceHandler', value: function(a0) {
this.updateServiceHandler(a0, null);
}}, {key: 'isForegroundServiceRunning', value: function(a0) {
var ForegroundServiceModule = NativeModules.ForegroundServiceModule;
ForegroundServiceModule.isServiceRunning(a0);
}}]);
function ForegroundServiceManager() { // fn#57155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:451, offset: 0x013de148, size: 87 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
env1_6(this, ForegroundServiceManager);
const Map = global.Map;
this.serviceNotifications = new Map();
this.serviceNotificationIdentifier = 1;
this.handleChange = handleChange_57156;
function ForegroundServiceManagerHandleChange() { // fn#57156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:609, owner: ForegroundServiceManager.handleChange, offset: 0x013de19f, size: 113 bytes, params: 1, frame: 15
var ForegroundServiceModule;
var value2;
var startService;
var items2;
var value;
if (env0_0.serviceNotifications.size > 0) {
value2 = environment.__proto__.__proto__;
ForegroundServiceModule = NativeModules.ForegroundServiceModule;
startService = ForegroundServiceModule.startService;
value = env0_0.serviceNotifications.values();
items2 = [];
arraySpread(items2, value, 0, 0);
Reflect.apply(startService, ForegroundServiceModule, [items2]);
} else {
value = environment.__proto__.__proto__;
NativeModules.ForegroundServiceModule.stopService();
}
}
this.serviceNotifications.set(a0, a1);
this.handleChange();
}
function value_57159(a0) { // fn#57159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:877, offset: 0x013de210, size: 51 bytes, params: 2, frame: 11
const env0_1 = a0;
const Promise = global.Promise;
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
const promise = new Promise(_fun57160);
return promise instanceof Object ? promise : value;
function _fun57160(a0) { // fn#57160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:909, offset: 0x013de243, size: 56 bytes, params: 2, frame: 13
const binding = env0_0;
const serviceNotificationIdentifier = binding.serviceNotificationIdentifier;
const serviceNotificationIdentifier2 = binding.serviceNotificationIdentifier;
binding.serviceNotificationIdentifier = typeof serviceNotificationIdentifier2 === 'bigint' ? serviceNotificationIdentifier2 + 1n : +serviceNotificationIdentifier2 + 1;
binding.updateServiceHandler(serviceNotificationIdentifier, env0_1);
a0(serviceNotificationIdentifier);
}
}
function value_57161(a0, a1) { // fn#57161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1066, offset: 0x013de27b, size: 265 bytes, params: 3, frame: 18
var value;
var defaultImport;
var serviceNotifications;
var usesGateway;
var moduleValue;
var moduleValue2;
if (a1 == null) {
serviceNotifications = this.serviceNotifications;
if (serviceNotifications.has(a0)) {
value = environment.__proto__;
moduleValue2 = importAll(660) /* metro dependency 660: RequestGatewaySocket */;
moduleValue2.stopRequest(socketToken(a0));
this.serviceNotifications.delete(a0);
this.handleChange();
}
} else {
value = environment.__proto__;
defaultImport = importDefault(644) /* metro dependency 644 */;
serviceNotifications = this.serviceNotifications;
if (!defaultImport(serviceNotifications.get(a0), a1)) {
usesGateway = a1.usesGateway;
moduleValue = importAll(660) /* metro dependency 660: RequestGatewaySocket */;
if (usesGateway) {
moduleValue.setRequestedBy(socketToken(a0));
} else {
moduleValue.stopRequest(socketToken(a0));
}
this.serviceNotifications.set(a0, a1);
this.handleChange();
}
}
}
}
}
function ForegroundServiceLifecycleManager() { // fn#57165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1611, offset: 0x013de474, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_6(this, ForegroundServiceLifecycleManager);
const value3 = env1_4(ForegroundServiceLifecycleManager);
return env1_3(this, _isNativeReflectConstruct_57150() ? global.Reflect.construct(value3, arguments,
env1_4(this).constructor) : value3.apply(this, arguments));
}
function _fun57164(a0) { // fn#57164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1599, offset: 0x013de3bd, size: 183 bytes, params: 2, frame: 16
const ForegroundServiceLifecycleManager2 = ForegroundServiceLifecycleManager;
Inherits(ForegroundServiceLifecycleManager2, a0);
return CreateClass(ForegroundServiceLifecycleManager2, [{key: '_initialize', value: value_57166}, {key: '_terminate',
value: value_57167}, {key: 'addServiceHandler', value: value_57168}, {key: 'updateServiceHandler',
value: value_57169}, {key: 'removeServiceHandler', value: value_57170}, {key: 'isForegroundServiceRunning',
value: value_57171}]);
function ForegroundServiceLifecycleManager() { // fn#57165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1611, offset: 0x013de474, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_6(this, ForegroundServiceLifecycleManager);
const value3 = env1_4(ForegroundServiceLifecycleManager);
return env1_3(this, _isNativeReflectConstruct_57150() ? global.Reflect.construct(value3, arguments,
env1_4(this).constructor) : value3.apply(this, arguments));
}
function value_57166() { // fn#57166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1995, offset: 0x013de4e5, size: 21 bytes, params: 1, frame: 9
env1_9.initialize();
}
function value_57166() { // fn#57166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:1995, offset: 0x013de4e5, size: 21 bytes, params: 1, frame: 9
env1_9.initialize();
}
function value_57167() { // fn#57167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2047, offset: 0x013de4fa, size: 21 bytes, params: 1, frame: 9
env1_9.terminate();
}
function value_57167() { // fn#57167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2047, offset: 0x013de4fa, size: 21 bytes, params: 1, frame: 9
env1_9.terminate();
}
function value_57168(a0) { // fn#57168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2105, offset: 0x013de50f, size: 23 bytes, params: 2, frame: 11
return env1_9.addServiceHandler(a0);
}
function value_57168(a0) { // fn#57168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2105, offset: 0x013de50f, size: 23 bytes, params: 2, frame: 11
return env1_9.addServiceHandler(a0);
}
function value_57169(a0, a1) { // fn#57169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2183, offset: 0x013de526, size: 29 bytes, params: 3, frame: 13
env1_9.updateServiceHandler(a0, a1);
}
function value_57169(a0, a1) { // fn#57169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2183, offset: 0x013de526, size: 29 bytes, params: 3, frame: 13
env1_9.updateServiceHandler(a0, a1);
}
function value_57170(a0) { // fn#57170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2261, offset: 0x013de543, size: 25 bytes, params: 2, frame: 11
env1_9.removeServiceHandler(a0);
}
function value_57170(a0) { // fn#57170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2261, offset: 0x013de543, size: 25 bytes, params: 2, frame: 11
env1_9.removeServiceHandler(a0);
}
function value_57171(a0) { // fn#57171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2341, offset: 0x013de55c, size: 25 bytes, params: 2, frame: 11
env1_9.isForegroundServiceRunning(a0);
}
function value_57171(a0) { // fn#57171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:2341, offset: 0x013de55c, size: 25 bytes, params: 2, frame: 11
env1_9.isForegroundServiceRunning(a0);
}
function ForegroundServiceManagerHandleChange() { // fn#57156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:609, owner: ForegroundServiceManager.handleChange, offset: 0x013de19f, size: 113 bytes, params: 1, frame: 15
var ForegroundServiceModule;
var value2;
var startService;
var items2;
var value;
if (env0_0.serviceNotifications.size > 0) {
value2 = environment.__proto__.__proto__;
ForegroundServiceModule = NativeModules.ForegroundServiceModule;
startService = ForegroundServiceModule.startService;
value = env0_0.serviceNotifications.values();
items2 = [];
arraySpread(items2, value, 0, 0);
Reflect.apply(startService, ForegroundServiceModule, [items2]);
} else {
value = environment.__proto__.__proto__;
NativeModules.ForegroundServiceModule.stopService();
}
}
function _fun57160(a0) { // fn#57160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7323:909, offset: 0x013de243, size: 56 bytes, params: 2, frame: 13
const binding = env0_0;
const serviceNotificationIdentifier = binding.serviceNotificationIdentifier;
const serviceNotificationIdentifier2 = binding.serviceNotificationIdentifier;
binding.serviceNotificationIdentifier = typeof serviceNotificationIdentifier2 === 'bigint' ? serviceNotificationIdentifier2 + 1n : +serviceNotificationIdentifier2 + 1;
binding.updateServiceHandler(serviceNotificationIdentifier, env0_1);
a0(serviceNotificationIdentifier);
}
global.__d(_fun57149, 7145, [15, 17, 18, 6, 7, 27, 660, 644, 4561,
2]) /* metro module 7145, dependencies: [15, 17, 18, 6, 7, 27, 660, 644, 4561, 2] */;
@@ -1,33 +1,35 @@
/* Metro module 7146; source: modules/foreground_service/mobile/ForegroundServiceManagerTypes.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun57172(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#57172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7324:6, offset: 0x013de575, size: 262 bytes, params: 8, frame: 18
var object4;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object4 = {HIGH: 0};
object4[0] = 'HIGH';
object4.MEDIUM = 1;
object4[1] = 'MEDIUM';
object4.LOW = 2;
object4[2] = 'LOW';
const object5 = {FILE_UPLOAD: 0};
object5[0] = 'FILE_UPLOAD';
object5.VOICE_CALL = 1;
object5[1] = 'VOICE_CALL';
object5.SCREEN_SHARE = 2;
object5[2] = 'SCREEN_SHARE';
const object6 = {DEFAULT: 0};
object6[0] = 'DEFAULT';
object6.DEAFENED = 1;
object6[1] = 'DEAFENED';
object6.IDLE = 2;
object6[2] = 'IDLE';
object6.MUTED = 3;
object6[3] = 'MUTED';
object6.SPEAKING = 4;
object6[4] = 'SPEAKING';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/foreground_service/mobile/ForegroundServiceManagerTypes.tsx');
exports.ServiceNotificationPriority = object4;
exports.ServiceNotificationType = object5;
exports.ServiceNotificationIcon = object6;
object = {HIGH: 0};
object[0] = 'HIGH';
object.MEDIUM = 1;
object[1] = 'MEDIUM';
object.LOW = 2;
object[2] = 'LOW';
const object2 = {FILE_UPLOAD: 0};
object2[0] = 'FILE_UPLOAD';
object2.VOICE_CALL = 1;
object2[1] = 'VOICE_CALL';
object2.SCREEN_SHARE = 2;
object2[2] = 'SCREEN_SHARE';
const object3 = {DEFAULT: 0};
object3[0] = 'DEFAULT';
object3.DEAFENED = 1;
object3[1] = 'DEAFENED';
object3.IDLE = 2;
object3[2] = 'IDLE';
object3.MUTED = 3;
object3[3] = 'MUTED';
object3.SPEAKING = 4;
object3[4] = 'SPEAKING';
(FileImportTrackerModule).fileFinishedImporting('modules/foreground_service/mobile/ForegroundServiceManagerTypes.tsx');
exports.ServiceNotificationPriority = object;
exports.ServiceNotificationType = object2;
exports.ServiceNotificationIcon = object3;
}
global.__d(_fun57172, 7146, [2]) /* metro module 7146, dependencies: [2] */;