This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,101 @@
// Metro module 6042 (f6043).
import { NativeModules } from "react-native";
import { stopRequest, setRequestedBy } from "../../gateway/RequestGatewaySocket";
import isUndefinedOrNull from "../../../_bundle/isUndefinedOrNull";
import LifecycleManager from "../../../lib/LifecycleManager";
function $mk77624($env) {
return () => {
const r9 = $env[0];
if (r9.serviceNotifications.size > 0) {
$env.$parent[3].ForegroundServiceModule.startService([...r9.serviceNotifications.values()]);
} else {
$env.$parent[3].ForegroundServiceModule.stopService();
}
};
}
let c3829_0, c3828_4, c3828_5;
let env3828;
let env3829;
const r6 = env3828 = {};
class ForegroundServiceManager {
constructor() {
let env15374;
const r2 = env15374 = {
$parent: env3828
};
env15374[0] = this;
this.serviceNotifications = new Map();
this.serviceNotificationIdentifier = 1;
this.handleChange = $mk77624(r2);
}
initialize() {}
terminate() {}
addServiceHandler(c15375_0) {
return new Promise((resolve) => {
const serviceNotificationIdentifier = this.serviceNotificationIdentifier;
this.serviceNotificationIdentifier = this.serviceNotificationIdentifier + 1;
this.updateServiceHandler(serviceNotificationIdentifier, c15375_0);
resolve(serviceNotificationIdentifier);
});
}
updateServiceHandler(a0, a1) {
if (a1 == null) {
if (this.serviceNotifications.has(a0)) {
stopRequest(`ForegroundService:${a0}`);
this.serviceNotifications.delete(a0);
this.handleChange();
}
} else if (!isUndefinedOrNull(this.serviceNotifications.get(a0), a1)) {
if (a1.usesGateway) {
setRequestedBy(`ForegroundService:${a0}`);
} else {
stopRequest(`ForegroundService:${a0}`);
}
this.serviceNotifications.set(a0, a1);
this.handleChange();
}
}
removeServiceHandler(a0) {
this.updateServiceHandler(a0, null);
}
isForegroundServiceRunning(a0) {
NativeModules.ForegroundServiceModule.isServiceRunning(a0);
}
}
const r37 = {
__proto__: ForegroundServiceManager.prototype
};
const r38 = env3829 = {
$parent: r6
};
c3829_0 = r37;
r37.serviceNotifications = new Map();
r37.serviceNotificationIdentifier = 1;
r37.handleChange = $mk77624(r38);
c3828_4 = r37;
class ForegroundServiceLifecycleManager extends LifecycleManager {
constructor() {
super(...arguments);
}
_initialize() {
c3828_4.initialize();
}
_terminate() {
c3828_4.terminate();
}
addServiceHandler(a0) {
return c3828_4.addServiceHandler(a0);
}
updateServiceHandler(a0, a1) {
c3828_4.updateServiceHandler(a0, a1);
}
removeServiceHandler(a0) {
c3828_4.removeServiceHandler(a0);
}
isForegroundServiceRunning(a0) {
c3828_4.isForegroundServiceRunning(a0);
}
}
c3828_5 = ForegroundServiceLifecycleManager;
const r58 = new ForegroundServiceLifecycleManager();
export default r58;
@@ -0,0 +1,32 @@
// Metro module 6043 (f6044).
const r13 = {
HIGH: 0,
0: "HIGH",
MEDIUM: 1,
1: "MEDIUM",
LOW: 2,
2: "LOW"
};
const r17 = {
FILE_UPLOAD: 0,
0: "FILE_UPLOAD",
VOICE_CALL: 1,
1: "VOICE_CALL",
SCREEN_SHARE: 2,
2: "SCREEN_SHARE"
};
const r21 = {
DEFAULT: 0,
0: "DEFAULT",
DEAFENED: 1,
1: "DEAFENED",
IDLE: 2,
2: "IDLE",
MUTED: 3,
3: "MUTED",
SPEAKING: 4,
4: "SPEAKING"
};
export { r13 as ServiceNotificationPriority };
export { r17 as ServiceNotificationType };
export { r21 as ServiceNotificationIcon };