decord/source/modules/user_settings/voice/AudioSettingsPending.tsx

42 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 12894
// Function ID: 100229
2026-07-20 16:05:17 +00:00
// Name: makeContextUserKey
2026-07-23 10:11:24 +00:00
// Dependencies: [57, 2]
2026-07-20 16:05:17 +00:00
// Exports: drainPendingAudioSettings, getPendingAudioSettings, updatePendingSettings
2026-07-27 11:26:19 +00:00
// Module 12894 (makeContextUserKey)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-20 16:05:17 +00:00
function makeContextUserKey(context, userId) {
return "" + context + ":" + userId;
}
2026-07-23 10:11:24 +00:00
function unpackContextUserKey(key10007) {
const tmp = callback(key10007.split(":"), 2);
2026-07-20 16:05:17 +00:00
const items = [tmp[0], tmp[1]];
return items;
}
let closure_1 = {};
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/user_settings/voice/AudioSettingsPending.tsx");
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export const getPendingAudioSettings = function getPendingAudioSettings(_slicedToArray, userId) {
return dependencyMap[makeContextUserKey(undefined, _slicedToArray, userId)];
2026-07-20 16:05:17 +00:00
};
export const updatePendingSettings = function updatePendingSettings(context, userId, arg2) {
const tmp = makeContextUserKey(context, userId);
2026-07-23 10:11:24 +00:00
const merged = Object.assign(dependencyMap[tmp]);
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(arg2);
2026-07-23 10:11:24 +00:00
dependencyMap[tmp] = {};
2026-07-20 16:05:17 +00:00
};
export const drainPendingAudioSettings = function drainPendingAudioSettings(arg0) {
for (const key10007 in closure_1) {
let tmp = key10007;
2026-07-23 10:11:24 +00:00
let tmp2 = unpackContextUserKey;
let tmp3 = callback;
let tmp4 = callback(unpackContextUserKey(key10007), 2);
let tmp5 = dependencyMap;
let tmp6 = arg0(tmp4[0], tmp4[1], dependencyMap[key10007]);
continue;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const dependencyMap = {};
2026-07-20 16:05:17 +00:00
};