decord/source/modules/a11y/native/AccessibilityCallManager.tsx

126 lines
4.8 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 13594
// Function ID: 13595
2026-07-29 08:29:29 +00:00
// Name: set
2026-08-05 07:35:12 +00:00
// Dependencies: [1218, 1372, 3892, 1874, 500, 3928, 4445, 4101, 1236, 4433, 709, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 13594 (set)
2026-07-29 08:29:29 +00:00
import fetchFingerprint from "fetchFingerprint";
import ensureGuildLoaded from "ensureGuildLoaded";
import upsertRelationship from "upsertRelationship";
import mergeGuildAvatar from "mergeGuildAvatar";
import "initialize";
import set from "upsertRelationship";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let set = new Set();
const map = new Map();
class AccessibilityCallManager extends tmp4 {
constructor() {
applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
applyArgumentsResult.handleCallCreate = function handleCallCreate(channelId) {
channelId = channelId.channelId;
const id = store.getId();
const result = store3.set(channelId, tmp2);
if (null != id && id in channelId.ongoingRings) {
let obj = set;
if (!set.has(channelId)) {
if (!obj2.isIOS()) {
const channel = store2.getChannel(channelId);
if (null != channel) {
2026-08-05 07:35:12 +00:00
const channelName = tmp4(4445).computeChannelName(channel, mergeGuildAvatar, upsertRelationship);
2026-07-29 08:29:29 +00:00
if (null != channelName) {
obj.add(channelId);
2026-08-05 07:35:12 +00:00
const AccessibilityAnnouncer = tmp4(4101).AccessibilityAnnouncer;
2026-07-29 08:29:29 +00:00
const intl = tmp4(1236).intl;
obj = { callLocation: null };
obj[0] = channelName;
AccessibilityAnnouncer.announce(intl.formatToPlainString(tmp4(1236).t["Bm0A/p"], obj), "assertive");
}
2026-08-05 07:35:12 +00:00
const tmp4Result = tmp4(4445);
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-05 07:35:12 +00:00
const NativePhoneIntegrationEnabled = tmp4(3928).NativePhoneIntegrationEnabled;
2026-07-29 08:29:29 +00:00
}
obj2 = callback(500);
}
}
};
applyArgumentsResult.handleCallUpdate = function handleCallUpdate(channelId) {
channelId = channelId.channelId;
const id = store.getId();
let obj = store3;
let flag = store3.get(channelId);
if (flag == null) {
flag = false;
}
const result = obj.set(channelId, tmp2);
if (!flag) {
if (tmp2) {
if (!set.has(channelId)) {
if (!obj3.isIOS()) {
const channel = store2.getChannel(channelId);
if (null != channel) {
2026-08-05 07:35:12 +00:00
const channelName = tmp4(4445).computeChannelName(channel, mergeGuildAvatar, upsertRelationship);
2026-07-29 08:29:29 +00:00
if (null != channelName) {
obj2.add(channelId);
2026-08-05 07:35:12 +00:00
const AccessibilityAnnouncer = tmp4(4101).AccessibilityAnnouncer;
2026-07-29 08:29:29 +00:00
const intl = tmp4(1236).intl;
obj = { callLocation: null };
obj[0] = channelName;
AccessibilityAnnouncer.announce(intl.formatToPlainString(tmp4(1236).t["Bm0A/p"], obj), "assertive");
}
2026-08-05 07:35:12 +00:00
const tmp4Result = tmp4(4445);
2026-07-29 08:29:29 +00:00
}
} else {
2026-08-05 07:35:12 +00:00
const NativePhoneIntegrationEnabled = tmp4(3928).NativePhoneIntegrationEnabled;
2026-07-29 08:29:29 +00:00
}
obj3 = callback(500);
}
obj2 = set;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
if (flag) {
flag = !tmp2;
}
if (flag) {
set.delete(channelId);
}
};
applyArgumentsResult.handleCallDelete = function handleCallDelete(channelId) {
channelId = channelId.channelId;
store3.delete(channelId);
set.delete(channelId);
};
applyArgumentsResult.handleConnectionOpen = function handleConnectionOpen() {
store3.clear();
set.clear();
};
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const prototype = AccessibilityCallManager.prototype;
prototype["_initialize"] = function _initialize() {
const subscription = importDefault(709).subscribe("CALL_CREATE", this.handleCallCreate);
const obj = importDefault(709);
const subscription1 = importDefault(709).subscribe("CALL_UPDATE", this.handleCallUpdate);
const obj2 = importDefault(709);
const subscription2 = importDefault(709).subscribe("CALL_DELETE", this.handleCallDelete);
const obj3 = importDefault(709);
const subscription3 = importDefault(709).subscribe("CONNECTION_OPEN", this.handleConnectionOpen);
};
prototype["_terminate"] = function _terminate() {
importDefault(709).unsubscribe("CALL_CREATE", this.handleCallCreate);
const obj = importDefault(709);
importDefault(709).unsubscribe("CALL_UPDATE", this.handleCallUpdate);
const obj2 = importDefault(709);
importDefault(709).unsubscribe("CALL_DELETE", this.handleCallDelete);
const obj3 = importDefault(709);
importDefault(709).unsubscribe("CONNECTION_OPEN", this.handleConnectionOpen);
map.clear();
set.clear();
};
const accessibilityCallManager = new AccessibilityCallManager();
2026-07-23 10:11:24 +00:00
let result = set.fileFinishedImporting("modules/a11y/native/AccessibilityCallManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default accessibilityCallManager;