Files
discord-decomp/sources/modules/user_settings/voice/AudioSettingsPending.tsx
T
2026-07-28 01:06:53 +03:00

55 lines
3.0 KiB
TypeScript

/* Metro module 12484; source: modules/user_settings/voice/AudioSettingsPending.tsx; dependencies: [57, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun95024(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12674:6, offset: 0x0212f0c7, size: 160 bytes, params: 8, frame: 17
const makeContextUserKey = function(a0, a1) {
return '' + a0 + ':' + a1;
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_1 = {};
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/voice/AudioSettingsPending.tsx');
exports.getPendingAudioSettings = getPendingAudioSettings;
exports.updatePendingSettings = updatePendingSettings;
exports.drainPendingAudioSettings = drainPendingAudioSettings;
function unpackContextUserKey(a0) { // fn#95026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12674:162, offset: 0x0212f167, size: 62 bytes, params: 2, frame: 13
let value = a0.split(':');
value = Module00057(value, 2);
return [value[0], value[1]];
}
function getPendingAudioSettings(a0, a1) { // fn#95027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12674:353, offset: 0x0212f1a5, size: 31 bytes, params: 3, frame: 14
return env0_1[makeContextUserKey(a0, a1)];
}
function updatePendingSettings(a0, a1, a2) { // fn#95028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12674:458, offset: 0x0212f1c4, size: 54 bytes, params: 4, frame: 14
const makeContextUserKeyBinding = makeContextUserKey;
const contextUserKey = makeContextUserKeyBinding(a0, a1);
const binding = env0_1;
const object = {};
copyDataProperties(object, a2, copyDataProperties(object, binding[contextUserKey], makeContextUserKeyBinding));
binding[contextUserKey] = object;
}
function drainPendingAudioSettings(a0) { // fn#95029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12674:575, offset: 0x0212f1fa, size: 92 bytes, params: 2, frame: 25
var object2;
var propertyName;
var value2;
var value3;
var property;
var property2;
for (propertyName in object2) {
value2 = unpackContextUserKey(propertyName);
value3 = Module00057(value2, 2);
property = value3[0];
property2 = value3[1];
a0(property, property2, object2[propertyName]);
}
object2 = {};
}
}
global.__d(_fun95024, 12484, [57, 2]) /* metro module 12484, dependencies: [57, 2] */;