51 lines
2.6 KiB
TypeScript
51 lines
2.6 KiB
TypeScript
/* Metro module 12484; source: modules/user_settings/voice/AudioSettingsPending.tsx; dependencies: [57, 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_0 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_1 = {};
|
|
(require(2) /* metro dependency 2 */).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 = env0_0(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 object2 = {};
|
|
copyDataProperties(object2, a2, copyDataProperties(object2, binding[contextUserKey], makeContextUserKeyBinding));
|
|
binding[contextUserKey] = object2;
|
|
}
|
|
|
|
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 propertyName;
|
|
var value2;
|
|
var value3;
|
|
var property;
|
|
var property2;
|
|
for (propertyName in env0_1) {
|
|
value2 = unpackContextUserKey(propertyName);
|
|
value3 = env0_0(value2, 2);
|
|
property = value3[0];
|
|
property2 = value3[1];
|
|
a0(property, property2, env0_1[propertyName]);
|
|
}
|
|
env0_1 = {};
|
|
}
|
|
|