Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,696 @@
|
||||
/* Metro module 15668; source: modules/user_settings/voice/AudioSettingsManager.tsx; dependencies: [7, 6, 15, 17, 18, 57, 4295, 4613, 1226, 4259, 4291, 8902, 21, 1314, 587, 1362, 8901, 22, 12484, 9422, 4860, 2] */
|
||||
function _fun120127(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120127, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:6, offset: 0x02521946, size: 551 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_120133 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const handleConnectionOpen_120137 = function() {
|
||||
_fun120138();
|
||||
};
|
||||
const writeRemoteSettings = function() {
|
||||
var PreloadedUserSettingsActionCreators = require(dependencyMap[15]).PreloadedUserSettingsActionCreators;
|
||||
var INFREQUENT_USER_ACTION = require(dependencyMap[15]).UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
PreloadedUserSettingsActionCreators.updateAsync('audioContextSettings', _fun120141, INFREQUENT_USER_ACTION);
|
||||
};
|
||||
const handleResetMediaEngineSettings = function(a0) {
|
||||
var r7;
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", r7);
|
||||
throw undefined;
|
||||
}
|
||||
var PreloadedUserSettingsActionCreators = require(dependencyMap[15]).PreloadedUserSettingsActionCreators;
|
||||
var INFREQUENT_USER_ACTION = require(dependencyMap[15]).UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
PreloadedUserSettingsActionCreators.updateAsync('audioContextSettings', _fun120148, INFREQUENT_USER_ACTION);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_8 = importDefault(57) /* metro dependency 57 */;
|
||||
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
|
||||
const soundboardStore = importDefault(4613) /* metro dependency 4613: SoundboardStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_13 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
const SETTINGS_MIGRATION_KEY = function(a0) {
|
||||
return 'AudioContextSettingsMigrated:' + a0;
|
||||
};
|
||||
const DEFAULT_VOLUME_FOR_CONTEXT = function(a0) {
|
||||
return a0 === MediaEngineContextTypes.STREAM ? require(dependencyMap[11]).AudioSettingsDefaultVolumes.STREAM : require(dependencyMap[11]).AudioSettingsDefaultVolumes.USER;
|
||||
};
|
||||
let value = importDefault(22) /* metro dependency 22 */;
|
||||
const env0_16 = value.debounce(function() {
|
||||
writeRemoteSettings();
|
||||
}, 2000);
|
||||
value = importDefault(22) /* metro dependency 22 */;
|
||||
const env0_17 = value.debounce((require(9422) /* metro dependency 9422: GameConsoleActionCreators */).remoteAudioSettingsUpdate,
|
||||
500, {maxWait: 500});
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun120152(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/AudioSettingsManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_120128() { // fn#120128, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:258, offset: 0x02521b6d, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_120128_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_120131(a0, a1) { // fn#120131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:451, offset: 0x02521bcf, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun120132;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_120133(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_120133(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_120133(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun120132;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function updateAudioSettingsProto(a0, a1, a2, a3) { // fn#120134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:1558, offset: 0x02521d43, size: 268 bytes, params: 5, frame: 19
|
||||
var r6;
|
||||
var AudioContextSetting;
|
||||
var create;
|
||||
var object2;
|
||||
undefined !== undefined;
|
||||
const value2 = (require(8901) /* metro dependency 8901: AudioSettingsUtils */).coerceAudioContextForProto(a2);
|
||||
if (value2 == null) {
|
||||
return false;
|
||||
}
|
||||
const property = a0[value2];
|
||||
const property2 = property[a1];
|
||||
if (property2 != null) {
|
||||
r6 = property2;
|
||||
} else {
|
||||
AudioContextSetting = (require(1314) /* metro dependency 1314: preloaded_user_settings */).AudioContextSetting;
|
||||
create = AudioContextSetting.create;
|
||||
object2 = {muted: false};
|
||||
object2.volume = DEFAULT_VOLUME_FOR_CONTEXT(a2);
|
||||
r6 = Reflect.apply(create, AudioContextSetting, [object2]);
|
||||
}
|
||||
property[a1] = r6;
|
||||
a3(property[a1]);
|
||||
const property3 = property[a1];
|
||||
const String = global.String;
|
||||
const Date = global.Date;
|
||||
property3.modifiedAt = String(Date.now());
|
||||
let r3 = property[a1].volume !== DEFAULT_VOLUME_FOR_CONTEXT(a2) || property[a1].muted;
|
||||
r3 = !r3 ? property[a1].soundboardMuted : r3;
|
||||
if (!r3) {
|
||||
delete property[a1];
|
||||
}
|
||||
trimOldestEntries(property);
|
||||
return true;
|
||||
}
|
||||
|
||||
function handleConnectionOpen_120137() { // fn#120137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:2265, offset: 0x02521f99, size: 17 bytes, params: 1, frame: 9
|
||||
handleMigrateSettings();
|
||||
}
|
||||
|
||||
function writeRemoteSettings() { // fn#120140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:3505, offset: 0x0252237e, size: 80 bytes, params: 1, frame: 16
|
||||
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
|
||||
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['audioContextSettings', _fun120141,
|
||||
INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function handleSetLocalVolume({context, userId, volume}) { // fn#120144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:3815, offset: 0x0252246b, size: 164 bytes, params: 2, frame: 20
|
||||
var remoteSessionId;
|
||||
var binding;
|
||||
var object2;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (userId !== Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
remoteSessionId = GameConsoleStore.getRemoteSessionId();
|
||||
if (remoteSessionId != null) {
|
||||
binding = env0_17;
|
||||
object2 = {};
|
||||
object2.muted = MediaEngineStore.isLocalMute(userId, context);
|
||||
object2.volume = volume;
|
||||
binding(remoteSessionId, userId, context, object2);
|
||||
}
|
||||
(require(12484) /* metro dependency 12484: AudioSettingsPending */).updatePendingSettings(context, userId,
|
||||
{volume: volume});
|
||||
env0_16();
|
||||
}
|
||||
}
|
||||
|
||||
function handleSetLocalMute({context, userId}) { // fn#120145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:4066, offset: 0x0252250f, size: 118 bytes, params: 2, frame: 18
|
||||
var isLocalMute2;
|
||||
var moduleValue;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (userId !== Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
isLocalMute2 = MediaEngineStore.isLocalMute(userId, context);
|
||||
moduleValue = require(12484) /* metro dependency 12484: AudioSettingsPending */;
|
||||
moduleValue.updatePendingSettings(context, userId, {muted: isLocalMute2});
|
||||
env0_16.cancel();
|
||||
writeRemoteSettings();
|
||||
}
|
||||
}
|
||||
|
||||
function handleSetLocalSoundboardMute({context, userId}) { // fn#120146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:4262, offset: 0x02522585, size: 117 bytes, params: 2, frame: 18
|
||||
var isLocalSoundboardMuted2;
|
||||
var moduleValue;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (userId !== Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
isLocalSoundboardMuted2 = SoundboardStore.isLocalSoundboardMuted(userId);
|
||||
moduleValue = require(12484) /* metro dependency 12484: AudioSettingsPending */;
|
||||
moduleValue.updatePendingSettings(context, userId, {soundboardMuted: isLocalSoundboardMuted2});
|
||||
env0_16.cancel();
|
||||
writeRemoteSettings();
|
||||
}
|
||||
}
|
||||
|
||||
function handleResetMediaEngineSettings(a0) { // fn#120147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:4497, offset: 0x025225fa, size: 106 bytes, params: 2, frame: 17
|
||||
if (a0 == null) {
|
||||
throwTypeError(a0, "Cannot destructure 'undefined' or 'null'.", undefined);
|
||||
throw undefined;
|
||||
}
|
||||
const PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
|
||||
const updateAsync = PreloadedUserSettingsActionCreators.updateAsync;
|
||||
const UserSettingsDelay = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay;
|
||||
const INFREQUENT_USER_ACTION = UserSettingsDelay.INFREQUENT_USER_ACTION;
|
||||
Reflect.apply(updateAsync, PreloadedUserSettingsActionCreators, ['audioContextSettings', function(a0) {
|
||||
a0.user = {};
|
||||
a0.stream = {};
|
||||
}, INFREQUENT_USER_ACTION]);
|
||||
}
|
||||
|
||||
function _fun120152(a0) { // fn#120152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:4713, offset: 0x02522703, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = AudioSettingsManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function trimOldestEntries(a0) { // fn#120135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:2056, owner: updateAudioSettingsProto.trimOldestEntries, offset: 0x02521e4f, size: 124 bytes, params: 2, frame: 20
|
||||
var r2;
|
||||
var sort;
|
||||
var value3;
|
||||
var value4;
|
||||
var binding;
|
||||
var value5;
|
||||
const value2 = (importDefault(21) /* metro dependency 21: SnowflakeUtils */).entries(a0);
|
||||
const length = value2.length;
|
||||
reducibleJoin3: while (true) {
|
||||
if (length <= 300) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
sort = value2.sort;
|
||||
value3 = Reflect.apply(sort, value2, [_fun120136]);
|
||||
value4 = 0;
|
||||
if (!(value4 < length - 300)) {
|
||||
break reducibleJoin3;
|
||||
}
|
||||
r2 = value4;
|
||||
reducibleLoop2: while (true) {
|
||||
binding = env1_8;
|
||||
delete a0[binding(value3[r2], 1)[value4]];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < length - 300) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function handleMigrateSettings() { // fn#120138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:2298, owner: handleConnectionOpen_120137.handleMigrateSettings, offset: 0x02521faa, size: 142 bytes, params: 1, frame: 17
|
||||
var PreloadedUserSettingsActionCreators;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const get = Storage.get;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (!Reflect.apply(get, Storage, [SETTINGS_MIGRATION_KEY(Reflect.apply(getId, AuthenticationStore, []))])) {
|
||||
PreloadedUserSettingsActionCreators = (require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).PreloadedUserSettingsActionCreators;
|
||||
PreloadedUserSettingsActionCreators.updateAsync('audioContextSettings', _fun120139,
|
||||
(require(1362) /* metro dependency 1362: UserSettingsProtoActionCreators */).UserSettingsDelay.AUTOMATED);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun120141(a0) { // fn#120141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:3618, offset: 0x025223ce, size: 64 bytes, params: 2, frame: 12
|
||||
var environment;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = false;
|
||||
const value = environment.__proto__;
|
||||
(require(12484) /* metro dependency 12484: AudioSettingsPending */).drainPendingAudioSettings(_fun120142);
|
||||
return env0_1;
|
||||
}
|
||||
|
||||
function AudioSettingsManager(a0) { // fn#120153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:4725, offset: 0x0252272d, size: 179 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, AudioSettingsManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(AudioSettingsManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_120128()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.actions = {POST_CONNECTION_OPEN: handleConnectionOpen_120137, AUDIO_SET_LOCAL_VOLUME: handleSetLocalVolume,
|
||||
AUDIO_TOGGLE_LOCAL_MUTE: handleSetLocalMute, AUDIO_TOGGLE_LOCAL_SOUNDBOARD_MUTE: handleSetLocalSoundboardMute,
|
||||
MEDIA_ENGINE_RESET_SETTINGS: handleResetMediaEngineSettings};
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun120136(a0, a1) { // fn#120136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:2156, offset: 0x02521ecb, size: 206 bytes, params: 3, frame: 22
|
||||
var r1;
|
||||
var r2;
|
||||
var r3;
|
||||
var r4;
|
||||
var r5;
|
||||
var r8;
|
||||
var item3;
|
||||
var value3;
|
||||
var modifiedAt;
|
||||
var item5;
|
||||
var value5;
|
||||
var modifiedAt2;
|
||||
var error;
|
||||
let iterator = a0[Symbol.iterator]();
|
||||
const iterator2 = iterator.next;
|
||||
const value = undefined;
|
||||
let item2 = Reflect.apply(iterator2, iterator, []);
|
||||
let item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
const value2 = item2 === value;
|
||||
if (value2) {
|
||||
}
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r3 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r3 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r3 = item;
|
||||
}
|
||||
}
|
||||
try {
|
||||
modifiedAt = r3.modifiedAt;
|
||||
} catch (error) {
|
||||
if (!r2) {
|
||||
try {
|
||||
r1.return();
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
iterator = a1[Symbol.iterator]();
|
||||
const iterator3 = iterator.next;
|
||||
let item4 = Reflect.apply(iterator3, iterator, []);
|
||||
item = item4.value;
|
||||
item4 = item4.done ? undefined : iterator;
|
||||
const value4 = item4 === value;
|
||||
if (value4) {
|
||||
}
|
||||
if (value4) {
|
||||
r4 = item4;
|
||||
r5 = value4;
|
||||
r8 = value;
|
||||
} else {
|
||||
item5 = Reflect.apply(iterator3, item4, []);
|
||||
item = item5.value;
|
||||
item5 = item5.done ? undefined : item4;
|
||||
value5 = item5 === value;
|
||||
if (value5) {
|
||||
r4 = item5;
|
||||
r5 = value5;
|
||||
r8 = value;
|
||||
} else {
|
||||
r4 = item5;
|
||||
r5 = value5;
|
||||
r8 = item;
|
||||
}
|
||||
}
|
||||
try {
|
||||
modifiedAt2 = r8.modifiedAt;
|
||||
} catch (error) {
|
||||
if (!r5) {
|
||||
try {
|
||||
r4.return();
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
if (!r5) {
|
||||
r4.return();
|
||||
}
|
||||
let Number = global.Number;
|
||||
const value6 = Number(modifiedAt);
|
||||
Number = global.Number;
|
||||
return value6 - Number(modifiedAt2);
|
||||
}
|
||||
|
||||
function _fun120139(a0) { // fn#120139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:2471, offset: 0x02522038, size: 838 bytes, params: 2, frame: 57
|
||||
var r17;
|
||||
var r18;
|
||||
var r35;
|
||||
var r33;
|
||||
var r34;
|
||||
var r30;
|
||||
var r0;
|
||||
var property;
|
||||
var value6;
|
||||
var property2;
|
||||
var moduleValue;
|
||||
var coerceAudioContextForProto;
|
||||
var value7;
|
||||
var property3;
|
||||
var String;
|
||||
var Date;
|
||||
var now;
|
||||
var value8;
|
||||
var object4;
|
||||
var localMutes;
|
||||
var value9;
|
||||
var property4;
|
||||
var value10;
|
||||
var property5;
|
||||
var property6;
|
||||
var object5;
|
||||
var value11;
|
||||
var localVolumes;
|
||||
var value12;
|
||||
var property7;
|
||||
var value13;
|
||||
var property8;
|
||||
var property9;
|
||||
var object6;
|
||||
var moduleValue2;
|
||||
var snapVolumeToDefault;
|
||||
var value14;
|
||||
var keys;
|
||||
var _createForOfIteratorHelperLoose_120131Binding;
|
||||
var value15;
|
||||
var value16;
|
||||
var value17;
|
||||
var done;
|
||||
var value18;
|
||||
var value19;
|
||||
var binding;
|
||||
var value20;
|
||||
var property10;
|
||||
var property11;
|
||||
var value21;
|
||||
var value22;
|
||||
var value23;
|
||||
let Object = global.Object;
|
||||
let entries = Object.entries;
|
||||
const getState = MediaEngineStore.getState;
|
||||
const value2 = Reflect.apply(entries, Object, [Reflect.apply(getState, MediaEngineStore, []).settingsByContext]);
|
||||
let length = value2.length;
|
||||
const value3 = 0;
|
||||
const value4 = false;
|
||||
const value5 = true;
|
||||
if (value3 < length) {
|
||||
r17 = value3;
|
||||
r18 = value4;
|
||||
reducibleLoop1: while (true) {
|
||||
property = value2[r17];
|
||||
value6 = env2_8(property, 2);
|
||||
property = value6[value3];
|
||||
property2 = value6[1];
|
||||
moduleValue = require(8901) /* metro dependency 8901: AudioSettingsUtils */;
|
||||
coerceAudioContextForProto = moduleValue.coerceAudioContextForProto;
|
||||
value7 = Reflect.apply(coerceAudioContextForProto, moduleValue, [property]);
|
||||
reducibleJoin11: while (true) {
|
||||
if (value7 == null) {
|
||||
r30 = r18;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
property3 = a0[value7];
|
||||
String = global.String;
|
||||
Date = global.Date;
|
||||
now = Date.now;
|
||||
value8 = String(Reflect.apply(now, Date, []));
|
||||
object4 = {};
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
localMutes = property2.localMutes;
|
||||
value9 = Reflect.apply(entries, Object, [localMutes]);
|
||||
length = value9.length;
|
||||
if (value3 < length) {
|
||||
r35 = value3;
|
||||
reducibleLoop3: while (true) {
|
||||
property4 = value9[r35];
|
||||
value10 = env2_8(property4, 2);
|
||||
property5 = value10[value3];
|
||||
property6 = value10[1];
|
||||
object5 = {muted: property6};
|
||||
object5.volume = DEFAULT_VOLUME_FOR_CONTEXT(property);
|
||||
object5.modifiedAt = value8;
|
||||
object5.soundboardMuted = value4;
|
||||
object4[property5] = object5;
|
||||
value11 = typeof r35 === 'bigint' ? r35 + 1n : +r35 + 1;
|
||||
length = value9.length;
|
||||
if (value11 < length) {
|
||||
r35 = value11;
|
||||
continue reducibleLoop3;
|
||||
}
|
||||
break reducibleLoop3;
|
||||
}
|
||||
}
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
localVolumes = property2.localVolumes;
|
||||
value12 = Reflect.apply(entries, Object, [localVolumes]);
|
||||
length = value12.length;
|
||||
if (value3 < length) {
|
||||
r33 = value3;
|
||||
reducibleLoop5: while (true) {
|
||||
property7 = value12[r33];
|
||||
value13 = env2_8(property7, 2);
|
||||
property8 = value13[value3];
|
||||
property9 = value13[1];
|
||||
object6 = {muted: value4, modifiedAt: value8};
|
||||
copyDataProperties(object6, object4[property8], undefined);
|
||||
moduleValue2 = require(8901) /* metro dependency 8901: AudioSettingsUtils */;
|
||||
snapVolumeToDefault = moduleValue2.snapVolumeToDefault;
|
||||
object6['volume'] = Reflect.apply(snapVolumeToDefault, moduleValue2, [property9, property]);
|
||||
object4[property8] = object6;
|
||||
value14 = typeof r33 === 'bigint' ? r33 + 1n : +r33 + 1;
|
||||
length = value12.length;
|
||||
if (value14 < length) {
|
||||
r33 = value14;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
Object = global.Object;
|
||||
keys = Object.keys;
|
||||
length = Reflect.apply(keys, Object, [property3]).length;
|
||||
_createForOfIteratorHelperLoose_120131Binding = _createForOfIteratorHelperLoose_120131;
|
||||
Object = global.Object;
|
||||
entries = Object.entries;
|
||||
value15 = Reflect.apply(entries, Object, [object4]);
|
||||
entries = value15.entries;
|
||||
value16 = _createForOfIteratorHelperLoose_120131Binding(Reflect.apply(entries, value15, []));
|
||||
value17 = value16();
|
||||
done = value17.done;
|
||||
if (done) {
|
||||
r30 = r18;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
r33 = value17;
|
||||
r34 = r18;
|
||||
reducibleLoop7: while (true) {
|
||||
value18 = r33.value;
|
||||
value19 = env2_8(value18, 2);
|
||||
property = value19[value3];
|
||||
binding = env2_8;
|
||||
value20 = binding(value19[1], 2);
|
||||
property10 = value20[value3];
|
||||
property11 = value20[1];
|
||||
value21 = 300 - length;
|
||||
if (value21 - (property + 1) <= value3) {
|
||||
r30 = r34;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
reducibleJoin10: while (true) {
|
||||
if (property3[property10] != null) {
|
||||
break reducibleJoin10;
|
||||
}
|
||||
property3[property10] = property11;
|
||||
r34 = value5;
|
||||
break reducibleJoin10;
|
||||
}
|
||||
value22 = value16();
|
||||
done = value22.done;
|
||||
if (done) {
|
||||
r30 = r34;
|
||||
break reducibleJoin11;
|
||||
}
|
||||
r33 = value22;
|
||||
continue reducibleLoop7;
|
||||
}
|
||||
}
|
||||
value23 = typeof r17 === 'bigint' ? r17 + 1n : +r17 + 1;
|
||||
length = value2.length;
|
||||
if (value23 < length) {
|
||||
r17 = value23;
|
||||
r18 = r30;
|
||||
continue reducibleLoop1;
|
||||
}
|
||||
r0 = r30;
|
||||
break reducibleLoop1;
|
||||
}
|
||||
} else {
|
||||
r0 = value4;
|
||||
}
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const set = Storage.set;
|
||||
const getId = AuthenticationStore.getId;
|
||||
Reflect.apply(set, Storage, [SETTINGS_MIGRATION_KEY(Reflect.apply(getId, AuthenticationStore, [])), value5]);
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun120142(a0, a1, a2) { // fn#120142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15876:3675, offset: 0x0252240e, size: 60 bytes, params: 4, frame: 18
|
||||
env0_1 = env0_1 || updateAudioSettingsProto(a2, a1, a0, function(a0) {
|
||||
var Object = global.Object;
|
||||
Object.assign(a0, importDefault);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* 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 = {};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 8901; source: modules/user_settings/voice/AudioSettingsUtils.tsx; dependencies: [670, 4406, 8902, 4615, 2] */
|
||||
function _fun69423(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9086:6, offset: 0x01c73566, size: 130 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(670) /* metro dependency 670: UserSettingsConstants */).ProtoAudioSettingsContextTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/AudioSettingsUtils.tsx');
|
||||
exports.snapVolumeToDefault = snapVolumeToDefault;
|
||||
exports.coerceAudioContextForProto = function(a0) {
|
||||
if (require(dependencyMap[1]).MediaEngineContextTypes.DEFAULT === a0) {
|
||||
return ProtoAudioSettingsContextTypes.USER;
|
||||
}
|
||||
if (require(dependencyMap[1]).MediaEngineContextTypes.STREAM === a0) {
|
||||
return ProtoAudioSettingsContextTypes.STREAM;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
function snapVolumeToDefault(a0, a1) { // fn#69424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9086:243, offset: 0x01c735e8, size: 196 bytes, params: 3, frame: 19
|
||||
const AudioSettingsDefaultVolumes = (require(8902) /* metro dependency 8902: AudioSettingsDefaultVolumes */).AudioSettingsDefaultVolumes;
|
||||
const value = a0;
|
||||
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
const r1 = a1 === STREAM ? AudioSettingsDefaultVolumes.STREAM : AudioSettingsDefaultVolumes.USER;
|
||||
const Math = global.Math;
|
||||
const abs = Math.abs;
|
||||
const perceptualVolumeUtilsModule = require(4615) /* metro dependency 4615: PerceptualVolumeUtils */;
|
||||
const value3 = perceptualVolumeUtilsModule.amplitudeToPerceptual(r1);
|
||||
const moduleValue2 = perceptualVolumeUtilsModule;
|
||||
return Reflect.apply(abs, Math, [value3 - moduleValue2.amplitudeToPerceptual(value)]) < 1 ? r1 : value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/* Metro module 12414; source: modules/user_settings/voice/UserSettingsVoiceAndVideoConstants.tsx; dependencies: [2] */
|
||||
function _fun94708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#94708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12600:6, offset: 0x02124405, size: 110 bytes, params: 8, frame: 16
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/UserSettingsVoiceAndVideoConstants.tsx');
|
||||
exports.InputProfile = {VOICE_ISOLATION: 'VOICE_ISOLATION', STUDIO: 'STUDIO', CUSTOM: 'CUSTOM'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/* Metro module 10828; source: modules/user_settings/voice/native/KrispLogo.tsx; dependencies: [31, 27, 1310, 661, 33, 1948, 683, 1244, 3853, 566, 4002, 10829, 10830, 4573, 2] */
|
||||
function _fun83069(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11014:6, offset: 0x01f0c256, size: 317 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = handleKrispLinkPressed;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_3 = value.Image;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Pressable;
|
||||
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_7 = value.AnalyticEvents;
|
||||
const env0_8 = value.AnalyticsPages;
|
||||
const env0_9 = value.AnalyticsSections;
|
||||
const env0_10 = value.HelpdeskArticles;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value.jsx;
|
||||
const env0_12 = value.jsxs;
|
||||
object = {logo: {'marginLeft': 20, 'height': 30, 'width': 67}, detailsView: {'flexDirection': 'row',
|
||||
'alignItems': 'center', 'justifyContent': 'space-between', 'paddingBottom': 12, 'gap': 12}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/KrispLogo.tsx');
|
||||
exports.default = KrispLogo;
|
||||
exports.handleKrispLinkPressed = closure;
|
||||
}
|
||||
|
||||
function handleKrispLinkPressed() { // fn#83070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11014:428, offset: 0x01f0c393, size: 202 bytes, params: 1, frame: 22
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const NOISE_SUPPRESSION = HelpdeskArticles.NOISE_SUPPRESSION;
|
||||
const value2 = Reflect.apply(getArticleURL, defaultImport, [NOISE_SUPPRESSION]);
|
||||
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport2.track;
|
||||
const NOISE_CANCELLATION_LINK_CLICKED = AnalyticEvents.NOISE_CANCELLATION_LINK_CLICKED;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.text = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ);
|
||||
object2.href = value2;
|
||||
const USER_SETTINGS = AnalyticsPages.USER_SETTINGS;
|
||||
const SETTINGS_VOICE_AND_VIDEO = AnalyticsSections.SETTINGS_VOICE_AND_VIDEO;
|
||||
object2.location = {page: USER_SETTINGS, section: SETTINGS_VOICE_AND_VIDEO};
|
||||
Reflect.apply(track, defaultImport2, [NOISE_CANCELLATION_LINK_CLICKED, object2]);
|
||||
(importDefault(3853) /* metro dependency 3853: Linking */).openURL(value2);
|
||||
}
|
||||
|
||||
function KrispLogo() { // fn#83071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11014:791, offset: 0x01f0c45d, size: 419 bytes, params: 1, frame: 24
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
const r6 = (require(4002) /* metro dependency 4002: shared */).isThemeLight(Reflect.apply(useStateFromStores,
|
||||
fluxModule, [[ThemeStore], function() {
|
||||
return ThemeStore.theme;
|
||||
}])) ? importDefault(10829) /* metro dependency 10829 */ : importDefault(10830) /* metro dependency 10830 */;
|
||||
const {detailsView, logo} = env0_13;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const image = <Image style={logo} source={r6} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vFiCSx)} />;
|
||||
const pressableProps = {accessibilityRole: 'link',
|
||||
accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ),
|
||||
onPress: handleKrispLinkPressed};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={detailsView}>
|
||||
{image}
|
||||
<Pressable {...pressableProps}>
|
||||
<Text variant="text-sm/medium" color="text-link">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ)}
|
||||
</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
/* Metro module 13710; source: modules/user_settings/voice/native/SettingsVoiceScreen.tsx; dependencies: [31, 27, 4259, 8224, 661, 33, 1948, 4501, 4048, 4002, 10829, 10830, 1244, 5321, 10828, 4573, 10825, 9692, 13170, 2] */
|
||||
function _fun104774(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:6, offset: 0x022a0322, size: 400 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
let value = require(27) /* metro dependency 27 */;
|
||||
const env0_4 = value.View;
|
||||
const env0_5 = value.Image;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_7 = (require(8224) /* metro dependency 8224: SettingsConstants */).MobileSetting;
|
||||
const HelpdeskArticles = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = value.Fragment;
|
||||
const getArticleURL = (importDefault(1948) /* metro dependency 1948: HelpdeskUtils */).getArticleURL;
|
||||
const VOICE_VIDEO_TROUBLESHOOTING = HelpdeskArticles.VOICE_VIDEO_TROUBLESHOOTING;
|
||||
value = Reflect.apply(getArticleURL, value, [VOICE_VIDEO_TROUBLESHOOTING]);
|
||||
const env0_12 = '' + value + '?utm_source=discord&utm_medium=blog&utm_campaign=2020-06_help-voice-video&utm_content=--t%3Apm';
|
||||
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({krisp: {'marginTop': 8,
|
||||
'flexDirection': 'row', 'alignItems': 'center'}, logo: {'marginRight': 8, 'height': 30, 'width': 67}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/SettingsVoiceScreen.tsx');
|
||||
exports.default = SettingsVoiceScreen;
|
||||
}
|
||||
|
||||
function KrispLogo_104775() { // fn#104775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:516, offset: 0x022a04b2, size: 435 bytes, params: 1, frame: 25
|
||||
const styles = useStyles();
|
||||
const r7 = (require(4002) /* metro dependency 4002: shared */).isThemeLight((importDefault(4048) /* metro dependency 4048: useTheme */)()) ? importDefault(10829) /* metro dependency 10829 */ : importDefault(10830) /* metro dependency 10830 */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const image = <Image style={styles.logo} source={r7} accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vFiCSx)} />;
|
||||
const Pressable = (require(5321) /* metro dependency 5321 */).Pressable;
|
||||
const pressableProps = {accessibilityRole: 'link',
|
||||
accessibilityLabel: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ),
|
||||
onPress: (require(10828) /* metro dependency 10828: KrispLogo */).handleKrispLinkPressed};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.krisp}>
|
||||
{image}
|
||||
<Pressable {...pressableProps}>
|
||||
<Text variant="text-sm/medium" color="text-link">
|
||||
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ)}
|
||||
</Text>
|
||||
</Pressable>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SystemProcessingSubLabel() { // fn#104776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:998, offset: 0x022a0665, size: 157 bytes, params: 1, frame: 19
|
||||
var r0;
|
||||
var Text;
|
||||
var intl;
|
||||
if ((require(10825) /* metro dependency 10825: NoiseCancellationUtils */).useNoiseCancellationDeferredToSystem()) {
|
||||
Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
r0 = <Text variant="text-sm/medium">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.EUNgko,
|
||||
|
||||
{onSettingsClick: onSettingsClick})}</Text>;
|
||||
} else {
|
||||
r0 = null;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function SettingsVoiceScreen() { // fn#104778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:1386, offset: 0x022a0728, size: 72 bytes, params: 1, frame: 14
|
||||
return ((Component) => <Component node={env0_3.useMemo(_fun104779,
|
||||
[])} />)(importDefault(13170) /* metro dependency 13170: SettingLayout */);
|
||||
}
|
||||
|
||||
function SystemProcessingSubLabelOnSettingsClick() { // fn#104777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:1196, owner: SystemProcessingSubLabel.onSettingsClick, offset: 0x022a0702, size: 38 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
MediaEngineStore.getMediaEngine().showSystemCaptureConfigurationUI('microphone_modes');
|
||||
}
|
||||
|
||||
function _fun104779() { // fn#104779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13907:1434, offset: 0x022a0770, size: 878 bytes, params: 1, frame: 27
|
||||
const settingBuildersModule = require(9692) /* metro dependency 9692: SettingBuilders */;
|
||||
const createList = settingBuildersModule.createList;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const LKCupB = (require(1244) /* metro dependency 1244: indexNative */).t.LKCupB;
|
||||
const INPUT_MODE = MobileSetting.INPUT_MODE;
|
||||
const AUTO_VOICE_SENSITIVITY = MobileSetting.AUTO_VOICE_SENSITIVITY;
|
||||
const VOICE_SENSITIVITY = MobileSetting.VOICE_SENSITIVITY;
|
||||
const items2 = [{label: Reflect.apply(string, intl, [LKCupB]), settings: [INPUT_MODE, AUTO_VOICE_SENSITIVITY,
|
||||
VOICE_SENSITIVITY]}];
|
||||
const object = {};
|
||||
string = intl.string;
|
||||
const UXxPGB = (require(1244) /* metro dependency 1244: indexNative */).t.UXxPGB;
|
||||
object.label = Reflect.apply(string, intl, [UXxPGB]);
|
||||
const OUTPUT_VOLUME = MobileSetting.OUTPUT_VOLUME;
|
||||
const STREAM_OUTPUT_VOLUME = MobileSetting.STREAM_OUTPUT_VOLUME;
|
||||
object.settings = [OUTPUT_VOLUME, STREAM_OUTPUT_VOLUME];
|
||||
let format = intl.format;
|
||||
object.subLabel = Reflect.apply(format, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['V+B3FH'],
|
||||
{guideURL: env1_12}]);
|
||||
items2[1] = object;
|
||||
const object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xbMc8r);
|
||||
const SOUNDBOARD_VOLUME = MobileSetting.SOUNDBOARD_VOLUME;
|
||||
object2.settings = [SOUNDBOARD_VOLUME];
|
||||
format = intl.format;
|
||||
const BPbGq7 = (require(1244) /* metro dependency 1244: indexNative */).t.BPbGq7;
|
||||
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport.getArticleURL;
|
||||
const SOUNDBOARD = HelpdeskArticles.SOUNDBOARD;
|
||||
object2.subLabel = Reflect.apply(format, intl, [BPbGq7, {helpCenterArticle: Reflect.apply(getArticleURL,
|
||||
defaultImport, [SOUNDBOARD])}]);
|
||||
items2[2] = object2;
|
||||
const object4 = {};
|
||||
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bNqkD9);
|
||||
const ANDROID_MOBILE_OVERLAY = MobileSetting.ANDROID_MOBILE_OVERLAY;
|
||||
object4.settings = [ANDROID_MOBILE_OVERLAY];
|
||||
items2[3] = object4;
|
||||
const object6 = {};
|
||||
const NOISE_SUPPRESSION_KRISP = MobileSetting.NOISE_SUPPRESSION_KRISP;
|
||||
object6.settings = [NOISE_SUPPRESSION_KRISP];
|
||||
object6.subLabel = <><SystemProcessingSubLabel /><KrispLogo_104775 /></>;
|
||||
items2[4] = object6;
|
||||
const object9 = {};
|
||||
object9.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.t8Qhib);
|
||||
const NOISE_SUPPRESSION = MobileSetting.NOISE_SUPPRESSION;
|
||||
object9.settings = [NOISE_SUPPRESSION];
|
||||
items2[5] = object9;
|
||||
const object12 = {};
|
||||
object12.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6I6GUv']);
|
||||
const ECHO_CANCELLATION = MobileSetting.ECHO_CANCELLATION;
|
||||
const SIDECHAIN_COMPRESSION = MobileSetting.SIDECHAIN_COMPRESSION;
|
||||
const AUTOMATIC_GAIN_CONTROL = MobileSetting.AUTOMATIC_GAIN_CONTROL;
|
||||
const ADVANCED_VOICE_ACTIVITY = MobileSetting.ADVANCED_VOICE_ACTIVITY;
|
||||
object12.settings = [ECHO_CANCELLATION, SIDECHAIN_COMPRESSION, AUTOMATIC_GAIN_CONTROL, ADVANCED_VOICE_ACTIVITY];
|
||||
items2[6] = object12;
|
||||
string = intl.string;
|
||||
const OBwCXF = (require(1244) /* metro dependency 1244: indexNative */).t.OBwCXF;
|
||||
const DISABLE_STREAM_PREVIEWS = MobileSetting.DISABLE_STREAM_PREVIEWS;
|
||||
items2[7] = {label: Reflect.apply(string, intl, [OBwCXF]), settings: [DISABLE_STREAM_PREVIEWS]};
|
||||
return Reflect.apply(createList, settingBuildersModule, [{sections: items2}]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
/* Metro module 10820; source: modules/user_settings/voice/native/UserSettingsSoundboardVolume.tsx; dependencies: [31, 27, 661, 33, 4501, 6951, 6771, 10814, 1244, 6238, 10272, 6944, 6766, 1948, 2] */
|
||||
function _fun83035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11006:6, offset: 0x01f0ac09, size: 249 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({slider: {marginTop: 4},
|
||||
text: {marginTop: 4}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsSoundboardVolume.tsx');
|
||||
exports.default = SoundboardVolume;
|
||||
}
|
||||
|
||||
function SoundboardVolume() { // fn#83036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11006:364, offset: 0x01f0ad02, size: 484 bytes, params: 1, frame: 30
|
||||
const styles = useStyles();
|
||||
const amplitudinalSoundboardVolume = (require(6951) /* metro dependency 6951: SoundboardUtils */).getAmplitudinalSoundboardVolume();
|
||||
const env0_0 = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations;
|
||||
const UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xbMc8r);
|
||||
object2.hasIcons = false;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.kbFsAD)};
|
||||
const jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
const view = <View style={styles.slider}>{((Component) => <Component value={amplitudinalSoundboardVolume} maxVolume={100} onValueChange={onValueChange_83037} />)(importDefault(10272) /* metro dependency 10272: VolumeSlider */)}</View>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const format = intl.format;
|
||||
const BPbGq7 = (require(1244) /* metro dependency 1244: indexNative */).t.BPbGq7;
|
||||
const defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = defaultImport2.getArticleURL;
|
||||
const SOUNDBOARD = HelpdeskArticles.SOUNDBOARD;
|
||||
tableRowProps.subLabel = <>{view}<TextWithIOSLinkWorkaround style={styles.text} variant="text-sm/medium">{Reflect.apply(format,
|
||||
intl, [BPbGq7, {helpCenterArticle: Reflect.apply(getArticleURL, defaultImport2,
|
||||
[SOUNDBOARD])}])}</TextWithIOSLinkWorkaround></>;
|
||||
return (
|
||||
<UserSettingsTableRowGroup {...object2}>
|
||||
<TableRow {...tableRowProps} />
|
||||
</UserSettingsTableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function SoundboardVolumeOnValueChange(a0) { // fn#83037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11006:751, owner: SoundboardVolume.onValueChange, offset: 0x01f0aee6, size: 49 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(6944) /* metro dependency 6944: SoundboardActionCreators */;
|
||||
return value.updateUserSoundboardVolume(a0, analyticsLocations);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 10814; source: modules/user_settings/voice/native/UserSettingsVoice.tsx; dependencies: [31, 27, 10815, 10816, 33, 4501, 6231, 10269, 4572, 10817, 10819, 6766, 1244, 10820, 10821, 10823, 6618, 2] */
|
||||
function _fun82985(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11000:6, offset: 0x01f08e95, size: 280 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(10815) /* metro dependency 10815: MobileVoiceOverlayStore */).isMobileOverlaySupported;
|
||||
const env0_5 = (require(10816) /* metro dependency 10816: UserSettingsVoiceConstants */).USER_SETTINGS_VOICE_GUILD_URL;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {paddingHorizontal: 16},
|
||||
tableRow: {marginTop: 12}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoice.tsx');
|
||||
exports.default = UserSettingsVoice;
|
||||
exports.UserSettingsTableRowGroup = UserSettingsTableRowGroup;
|
||||
}
|
||||
|
||||
function UserSettingsVoice() { // fn#82986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11000:405, offset: 0x01f08fad, size: 482 bytes, params: 1, frame: 27
|
||||
const styles = useStyles();
|
||||
const defaultImport = importDefault(10269) /* metro dependency 10269: MobileAudioOutputExperiment */;
|
||||
const useConfig = defaultImport.useConfig;
|
||||
const nonContextualStreamOutputPresent = Reflect.apply(useConfig, defaultImport,
|
||||
[{location: 'NewUserSettingsVoice'}]).nonContextualStreamOutputPresent;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const items2 = [((Component) => <Component />)(importDefault(10817) /* metro dependency 10817: UserSettingsVoiceInputOptions */)];
|
||||
items2[1] = nonContextualStreamOutputPresent && ((Component) => <Component />)(importDefault(10819) /* metro dependency 10819: UserSettingsVoiceOutputOptions */);
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
items2[2] = <TextWithIOSLinkWorkaround style={styles.tableRow} variant="text-sm/medium">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['V+B3FH'],
|
||||
{guideURL: USER_SETTINGS_VOICE_GUILD_URL})}</TextWithIOSLinkWorkaround>;
|
||||
items2[3] = ((Component) => <Component />)(importDefault(10820) /* metro dependency 10820: UserSettingsSoundboardVolume */);
|
||||
items2[4] = isMobileOverlaySupported() && ((Component) => <Component />)(importDefault(10821) /* metro dependency 10821: UserSettingsVoiceOverlay */);
|
||||
items2[5] = ((Component) => <Component />)(importDefault(10823) /* metro dependency 10823: UserSettingsVoiceProcessing */);
|
||||
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
|
||||
items2[6] = <SafeAreaPaddingView bottom />;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Stack spacing={24}>
|
||||
{items2}
|
||||
</Stack>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function UserSettingsTableRowGroup(a0) { // fn#82987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11000:916, offset: 0x01f0918f, size: 55 bytes, params: 2, frame: 14
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
return <TableRowGroup {...a0} />;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 10816; source: modules/user_settings/voice/native/UserSettingsVoiceConstants.tsx; dependencies: [661, 1948, 2] */
|
||||
function _fun82999(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11002:6, offset: 0x01f094c9, size: 155 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const HelpdeskArticles = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
|
||||
let value = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
const getArticleURL = value.getArticleURL;
|
||||
const VOICE_VIDEO_TROUBLESHOOTING = HelpdeskArticles.VOICE_VIDEO_TROUBLESHOOTING;
|
||||
value = Reflect.apply(getArticleURL, value, [VOICE_VIDEO_TROUBLESHOOTING]);
|
||||
value = '' + value + '?utm_source=discord&utm_medium=blog&utm_campaign=2020-06_help-voice-video&utm_content=--t%3Apm';
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceConstants.tsx');
|
||||
exports.USER_SETTINGS_VOICE_GUILD_URL = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
/* Metro module 10817; source: modules/user_settings/voice/native/UserSettingsVoiceInputOptions.tsx; dependencies: [31, 27, 4259, 661, 33, 4501, 6802, 1244, 8899, 566, 10814, 6238, 4573, 6808, 10818, 2] */
|
||||
function _fun83000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11003:6, offset: 0x01f09564, size: 286 bytes, params: 8, frame: 22
|
||||
const env0_0 = require;
|
||||
const closure = handleInputModePress;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).InputModes;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = value.jsxs;
|
||||
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({value: {textAlign: 'right'},
|
||||
slider: {marginTop: 4}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceInputOptions.tsx');
|
||||
exports.default = UserSettingsVoiceInputOptions;
|
||||
exports.handleInputModePress = closure;
|
||||
}
|
||||
|
||||
function handleInputModePress() { // fn#83001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11003:263, offset: 0x01f09682, size: 254 bytes, params: 1, frame: 20
|
||||
const value = require(6802) /* metro dependency 6802: showSimpleActionSheet */;
|
||||
const showSimpleActionSheet = value.showSimpleActionSheet;
|
||||
const object2 = {key: 'InputMode'};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object2.header = {title: Reflect.apply(string, intl, [t['pS+K2L']])};
|
||||
string = intl.string;
|
||||
const Q8gkVL = t.Q8gkVL;
|
||||
object2.options = [{label: Reflect.apply(string, intl, [Q8gkVL]), onPress: function() {
|
||||
importDefault(dependencyMap[8]).setMode(InputModes.PUSH_TO_TALK);
|
||||
}}, {label: intl.string(t.cHCEOJ), onPress: function() {
|
||||
importDefault(dependencyMap[8]).setMode(InputModes.VOICE_ACTIVITY);
|
||||
}}];
|
||||
object2.hasIcons = false;
|
||||
Reflect.apply(showSimpleActionSheet, value, [object2]);
|
||||
}
|
||||
|
||||
function UserSettingsVoiceInputOptions() { // fn#83004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11003:721, offset: 0x01f097e0, size: 760 bytes, params: 1, frame: 33
|
||||
var r5;
|
||||
var jsxRuntimeEnv0_7Binding;
|
||||
var items2;
|
||||
var object6;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const {inputMode, vadThreshold,
|
||||
vadAutoThreshold} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([MediaEngineStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.inputMode = MediaEngineStore.getMode();
|
||||
object.vadThreshold = MediaEngineStore.getModeOptions().threshold;
|
||||
object.vadAutoThreshold = MediaEngineStore.getModeOptions().autoThreshold;
|
||||
return object;
|
||||
});
|
||||
const UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const LKCupB = t.LKCupB;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRowProps2 = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['pS+K2L'])};
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let PUSH_TO_TALK = InputModes.PUSH_TO_TALK;
|
||||
tableRowProps2.trailing = <Text style={styles.value} variant="text-md/medium" color="text-muted">{inputMode === PUSH_TO_TALK ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Q8gkVL) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cHCEOJ)}</Text>;
|
||||
tableRowProps2.onPress = handleInputModePress;
|
||||
const tableRow = <TableRow {...tableRowProps2} />;
|
||||
PUSH_TO_TALK = InputModes.PUSH_TO_TALK;
|
||||
if (inputMode === PUSH_TO_TALK) {
|
||||
r5 = null;
|
||||
} else {
|
||||
jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
items2 = [((TableSwitchRow) => <TableSwitchRow label={intl.string(t.Z4oaN0)} value={vadAutoThreshold} onValueChange={onValueChange_83006} />)((require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow)];
|
||||
var tableRowProps = {label: intl.string(t['o+2oMK'])};
|
||||
var viewBindingProps = {style: styles.slider};
|
||||
value = importDefault(10818) /* metro dependency 10818: VoiceSensitivity */;
|
||||
tableRowProps.subLabel = <View {...viewBindingProps}>{((Component) => <Component auto={vadAutoThreshold} threshold={vadThreshold} onThresholdChange={onThresholdChange} />)(value)}</View>;
|
||||
items2[1] = <TableRow {...tableRowProps} />;
|
||||
value = <>{items2}</>;
|
||||
r5 = value;
|
||||
}
|
||||
return (
|
||||
<UserSettingsTableRowGroup title={Reflect.apply(string, intl, [LKCupB])} hasIcons={false}>
|
||||
{tableRow}
|
||||
{r5}
|
||||
</UserSettingsTableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function UserSettingsVoiceInputOptionsOnValueChange(a0) { // fn#83006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11003:1515, owner: UserSettingsVoiceInputOptions.onValueChange, offset: 0x01f09b1c, size: 56 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
||||
return value.setMode(inputMode, {autoThreshold: a0});
|
||||
}
|
||||
|
||||
function UserSettingsVoiceInputOptionsOnThresholdChange(a0) { // fn#83007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11003:1712, owner: UserSettingsVoiceInputOptions.onThresholdChange, offset: 0x01f09b54, size: 56 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
||||
return value.setMode(inputMode, {threshold: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 10819; source: modules/user_settings/voice/native/UserSettingsVoiceOutputOptions.tsx; dependencies: [31, 27, 4492, 1226, 4259, 4291, 33, 4501, 566, 44, 8899, 10814, 1244, 6238, 10272, 2] */
|
||||
function _fun83028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11005:6, offset: 0x01f0a784, size: 281 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_4 = (require(27) /* metro dependency 27 */).View;
|
||||
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const env0_8 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_9 = value.jsx;
|
||||
const env0_10 = value.jsxs;
|
||||
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({slider: {marginTop: 4}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceOutputOptions.tsx');
|
||||
exports.default = UserSettingsVoiceOutputOptions;
|
||||
}
|
||||
|
||||
function UserSettingsVoiceOutputOptions() { // fn#83029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11005:373, offset: 0x01f0a89d, size: 602 bytes, params: 1, frame: 31
|
||||
var r5;
|
||||
var object5;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const outputVolume = (require(566) /* metro dependency 566: flux */).useStateFromStores([MediaEngineStore],
|
||||
function() {
|
||||
return MediaEngineStore.getOutputVolume();
|
||||
});
|
||||
let value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ApplicationStreamingStore,
|
||||
AuthenticationStore], function() {
|
||||
var value2 = ApplicationStreamingStore.getLastActiveStream();
|
||||
var value3 = null;
|
||||
return value3 != value2 ? value2.ownerId === AuthenticationStore.getId() ? value3 : value2 : value3;
|
||||
});
|
||||
let value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MediaEngineStore], _fun83032);
|
||||
const value4 = env0_3.useCallback(_fun83033, [value2]);
|
||||
const UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const UXxPGB = (require(1244) /* metro dependency 1244: indexNative */).t.UXxPGB;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const tableRow = <TableRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xPHVBs)} subLabel={<View style={styles.slider}>{((Component) => <Component style={styles.slider} value={outputVolume} onValueChange={onValueChange_83034} />)(importDefault(10272) /* metro dependency 10272: VolumeSlider */)}</View>} />;
|
||||
const value6 = value2 != null;
|
||||
if (value6) {
|
||||
var tableRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pEAl4b)};
|
||||
var viewBindingProps = {style: styles.slider};
|
||||
value = importDefault(10272) /* metro dependency 10272: VolumeSlider */;
|
||||
tableRowProps.subLabel = <View {...viewBindingProps}>{((Component) => <Component value={value3} onValueChange={value4} />)(value)}</View>;
|
||||
value = <TableRow {...tableRowProps} />;
|
||||
r5 = value;
|
||||
} else {
|
||||
r5 = value6;
|
||||
}
|
||||
return (
|
||||
<UserSettingsTableRowGroup title={Reflect.apply(string, intl, [UXxPGB])} hasIcons={false}>
|
||||
{tableRow}
|
||||
{r5}
|
||||
</UserSettingsTableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun83032() { // fn#83032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11005:638, offset: 0x01f0ab45, size: 59 bytes, params: 1, frame: 14
|
||||
return env0_0 != null ? MediaEngineStore.getLocalVolume(env0_0.ownerId, MediaEngineContextTypes.STREAM) : 0;
|
||||
}
|
||||
|
||||
function _fun83033(a0) { // fn#83033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11005:708, offset: 0x01f0ab80, size: 96 bytes, params: 2, frame: 18
|
||||
const defaultImport = importDefault(44) /* metro dependency 44 */;
|
||||
const binding = env0_0;
|
||||
defaultImport(binding != null, 'Can not set stream volume without active stream');
|
||||
const defaultImport2 = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
||||
const setLocalVolume = defaultImport2.setLocalVolume;
|
||||
const ownerId = binding.ownerId;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
Reflect.apply(setLocalVolume, defaultImport2, [ownerId, a0, STREAM]);
|
||||
}
|
||||
|
||||
function UserSettingsVoiceOutputOptionsOnValueChange(a0) { // fn#83034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11005:1099, owner: UserSettingsVoiceOutputOptions.onValueChange, offset: 0x01f0abe0, size: 41 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setOutputVolume(a0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 10821; source: modules/user_settings/voice/native/UserSettingsVoiceOverlay.tsx; dependencies: [31, 10815, 33, 632, 10814, 1244, 6808, 10822, 2] */
|
||||
function _fun83038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11007:6, offset: 0x01f0af17, size: 154 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const mobileVoiceOverlayStore = importDefault(10815) /* metro dependency 10815: MobileVoiceOverlayStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceOverlay.tsx');
|
||||
exports.default = UserSettingsVoiceOverlay;
|
||||
}
|
||||
|
||||
function UserSettingsVoiceOverlay() { // fn#83039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11007:235, offset: 0x01f0afb1, size: 305 bytes, params: 1, frame: 23
|
||||
var object2;
|
||||
const enabled = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([MobileVoiceOverlayStore],
|
||||
function() {
|
||||
return MobileVoiceOverlayStore.getEnabled();
|
||||
});
|
||||
const UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
object2.title = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.bNqkD9]);
|
||||
object2.hasIcons = false;
|
||||
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
const tableSwitchRowProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t['9CSZJm'])};
|
||||
string = intl.string;
|
||||
const Wfoivk = (require(1244) /* metro dependency 1244: indexNative */).t.Wfoivk;
|
||||
tableSwitchRowProps.subLabel = Reflect.apply(string, intl, [Wfoivk]);
|
||||
tableSwitchRowProps.value = enabled;
|
||||
tableSwitchRowProps.onValueChange = (importDefault(10822) /* metro dependency 10822: MobileVoiceOverlayActionCreators */).setEnabled;
|
||||
return (
|
||||
<UserSettingsTableRowGroup {...object2}>
|
||||
<TableSwitchRow {...tableSwitchRowProps} />
|
||||
</UserSettingsTableRowGroup>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 10823; source: modules/user_settings/voice/native/UserSettingsVoiceProcessing.tsx; dependencies: [31, 27, 4259, 33, 4501, 697, 566, 10824, 10825, 8899, 7988, 1244, 7987, 4573, 10828, 10814, 6808, 2] */
|
||||
function _fun83043(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:6, offset: 0x01f0b196, size: 330 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const closure = VoiceProcessingOptions;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_3 = (require(27) /* metro dependency 27 */).View;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
const env0_7 = value.Fragment;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {};
|
||||
let PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object.paddingTop = PX_4;
|
||||
PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
|
||||
object.gap = PX_4;
|
||||
const env0_8 = Reflect.apply(createStyles, value, [{optionsParentContainer: {marginTop: 12},
|
||||
optionsDescriptionContainer: object, krisp: {marginStart: -20}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceProcessing.tsx');
|
||||
exports.default = UserSettingsVoiceProcessing;
|
||||
exports.VoiceProcessingOptions = closure;
|
||||
}
|
||||
|
||||
function VoiceProcessingOptions() { // fn#83044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:340, offset: 0x01f0b2e0, size: 1082 bytes, params: 1, frame: 33
|
||||
var r0;
|
||||
var UserSettingsTableRowGroup;
|
||||
var TableSwitchRow;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
let NoiseSuppressionOpt = (require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).NoiseSuppressionOpt;
|
||||
var TableRadioGroup;
|
||||
var object3;
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
var object4;
|
||||
var items4;
|
||||
var object5;
|
||||
var object6;
|
||||
var items2;
|
||||
var items3;
|
||||
var value;
|
||||
const styles = useStyles();
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MediaEngineStore], function() {
|
||||
return MediaEngineStore.isNoiseCancellationSupported();
|
||||
});
|
||||
const value3 = (require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).useSelectedNoiseSuppressionOption();
|
||||
const value4 = (require(10825) /* metro dependency 10825: NoiseCancellationUtils */).useNoiseCancellationDeferredToSystem();
|
||||
if (value2) {
|
||||
var viewBindingProps = {style: styles.optionsParentContainer};
|
||||
TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
var tableRadioGroupProps = {value: value3, onChange: onChange_83046, title: intl.string(t.t8Qhib),
|
||||
hasIcons: false};
|
||||
items4 = [<TableRadioRow value={NoiseSuppressionOpt.KRISP} label={intl.string(t.rdoNzt)} disabled={value4} />];
|
||||
items4[1] = <TableRadioRow disabled={value4} value={NoiseSuppressionOpt.STANDARD} label={intl.string(t.qXeYHw)} />;
|
||||
items4[2] = <TableRadioRow disabled={value4} value={NoiseSuppressionOpt.NONE} label={intl.string(t.wkYAlz)} />;
|
||||
items2 = [<TableRadioGroup {...tableRadioGroupProps}>{items4}</TableRadioGroup>];
|
||||
var viewBinding2Props = {style: styles.optionsDescriptionContainer};
|
||||
items3 = [((Text) => <Text variant="text-xs/medium" color="text-muted">{value4 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.EUNgko,
|
||||
|
||||
{onSettingsClick: onSettingsClick}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.k6h1F4)}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)];
|
||||
var viewBinding3Props = {style: styles.krisp};
|
||||
value = importDefault(10828) /* metro dependency 10828: KrispLogo */;
|
||||
items3[1] = <View {...viewBinding3Props}>{((Component) => <Component />)(value)}</View>;
|
||||
items2[1] = <View {...viewBinding2Props}>{items3}</View>;
|
||||
value = <View {...viewBindingProps}>{items2}</View>;
|
||||
r0 = value;
|
||||
} else {
|
||||
UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
r0 = <UserSettingsTableRowGroup hasIcons={false}><TableSwitchRow label={intl.string(t.t8Qhib)} subLabel={intl.string(t.najZCV)} value={value3 === (require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).NoiseSuppressionOpt.STANDARD} onValueChange={function(a0) {
|
||||
var moduleValue = require(dependencyMap[7]);
|
||||
var handleNoiseSuppressionChange = moduleValue.handleNoiseSuppressionChange;
|
||||
var NoiseSuppressionOpt = require(dependencyMap[7]).NoiseSuppressionOpt;
|
||||
return Reflect.apply(handleNoiseSuppressionChange, moduleValue,
|
||||
[a0 ? NoiseSuppressionOpt.STANDARD : NoiseSuppressionOpt.NONE]);
|
||||
}} /></UserSettingsTableRowGroup>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function UserSettingsVoiceProcessing() { // fn#83049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:2077, offset: 0x01f0b81a, size: 693 bytes, params: 1, frame: 34
|
||||
var r9;
|
||||
var object6;
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([MediaEngineStore],
|
||||
function() {
|
||||
var object = {};
|
||||
object.echoCancellation = MediaEngineStore.getEchoCancellation();
|
||||
object.advancedVoiceActivitySupported = MediaEngineStore.isAdvancedVoiceActivitySupported();
|
||||
object.automaticGainControl = MediaEngineStore.getAutomaticGainControl();
|
||||
object.inputMode = MediaEngineStore.getMode();
|
||||
object.vadUseKrisp = MediaEngineStore.getModeOptions().vadUseKrisp;
|
||||
return object;
|
||||
});
|
||||
const echoCancellation = value2.echoCancellation;
|
||||
const advancedVoiceActivitySupported = value2.advancedVoiceActivitySupported;
|
||||
const automaticGainControl = value2.automaticGainControl;
|
||||
const env0_0 = value2.inputMode;
|
||||
const vadUseKrisp = value2.vadUseKrisp;
|
||||
const jsxRuntimeEnv0_7Binding = jsxRuntimeEnv0_7;
|
||||
const UserSettingsTableRowGroup = (require(10814) /* metro dependency 10814: UserSettingsVoice */).UserSettingsTableRowGroup;
|
||||
let object = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
object.title = Reflect.apply(string, intl, [t['6I6GUv']]);
|
||||
object.hasIcons = false;
|
||||
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
|
||||
const items2 = [<UserSettingsTableRowGroup {...object}><TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iWTwu6)} value={echoCancellation} onValueChange={(require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).handleEchoCancellationChange} /></UserSettingsTableRowGroup>];
|
||||
items2[1] = <VoiceProcessingOptions />;
|
||||
const tableSwitchRow = <TableSwitchRow label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cUMdH0)} subLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6EjbvA'])} value={automaticGainControl} onValueChange={(require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).handleAutomaticGainControlChange} />;
|
||||
if (advancedVoiceActivitySupported) {
|
||||
r9 = <TableSwitchRow label={intl.string(t.BbESsg)} subLabel={intl.string(t.LoOB1F)} value={vadUseKrisp} onValueChange={onValueChange_83051} />;
|
||||
} else {
|
||||
r9 = advancedVoiceActivitySupported;
|
||||
}
|
||||
items2[2] = <UserSettingsTableRowGroup hasIcons={false}>{tableSwitchRow}{r9}</UserSettingsTableRowGroup>;
|
||||
return (
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function VoiceProcessingOptionsOnChange(a0) { // fn#83046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:652, owner: VoiceProcessingOptions.onChange, offset: 0x01f0b72d, size: 118 bytes, params: 2, frame: 17
|
||||
const value = environment.__proto__;
|
||||
const {KRISP, STANDARD} = (require(10824) /* metro dependency 10824: UserSettingsVoiceUtils */).NoiseSuppressionOpt;
|
||||
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setNoiseCancellation(a0 === KRISP);
|
||||
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setNoiseSuppression(a0 === STANDARD);
|
||||
}
|
||||
|
||||
function VoiceProcessingOptionsOnSettingsClick() { // fn#83047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:1434, owner: VoiceProcessingOptions.onSettingsClick, offset: 0x01f0b7a3, size: 38 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
MediaEngineStore.getMediaEngine().showSystemCaptureConfigurationUI('microphone_modes');
|
||||
}
|
||||
|
||||
function UserSettingsVoiceProcessingOnValueChange(a0) { // fn#83051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11009:3196, owner: UserSettingsVoiceProcessing.onValueChange, offset: 0x01f0bb3b, size: 56 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
||||
return value.setMode(inputMode, {vadUseKrisp: a0});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/* Metro module 10824; source: modules/user_settings/voice/native/UserSettingsVoiceUtils.tsx; dependencies: [4259, 661, 8899, 10825, 566, 2] */
|
||||
function _fun83052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11010:6, offset: 0x01f0bb73, size: 250 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getSelectedNoiseSuppressionOption;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.AnalyticsPages;
|
||||
const env0_5 = constantsModule.AnalyticsSections;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/native/UserSettingsVoiceUtils.tsx');
|
||||
exports.handleAutomaticGainControlChange = function(a0) {
|
||||
importDefault(dependencyMap[2]).setAutomaticGainControl(a0, {page: AnalyticsPages.USER_SETTINGS,
|
||||
section: AnalyticsSections.SETTINGS_VOICE_AND_VIDEO});
|
||||
};
|
||||
exports.handleEchoCancellationChange = function(a0) {
|
||||
importDefault(dependencyMap[2]).setEchoCancellation(a0, {page: AnalyticsPages.USER_SETTINGS,
|
||||
section: AnalyticsSections.SETTINGS_VOICE_AND_VIDEO});
|
||||
};
|
||||
exports.handleNoiseSuppressionChange = handleNoiseSuppressionChange;
|
||||
exports.NoiseSuppressionOpt = {NONE: 'NONE', STANDARD: 'STANDARD', KRISP: 'KRISP'};
|
||||
exports.getSelectedNoiseSuppressionOption = closure;
|
||||
exports.useSelectedNoiseSuppressionOption = function() {
|
||||
return require(dependencyMap[4]).useStateFromStores([MediaEngineStore], _fun83058);
|
||||
};
|
||||
}
|
||||
|
||||
function getSelectedNoiseSuppressionOption() { // fn#83053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11010:241, offset: 0x01f0bc6d, size: 118 bytes, params: 1, frame: 16
|
||||
let value = a0;
|
||||
const r5 = value !== undefined ? value : MediaEngineStore;
|
||||
value = r5.getNoiseSuppression();
|
||||
const noiseCancellation = r5.getNoiseCancellation();
|
||||
const noiseCancellationDeferredToSystem = (require(10825) /* metro dependency 10825: NoiseCancellationUtils */).getNoiseCancellationDeferredToSystem(r5);
|
||||
const binding = env0_6;
|
||||
return noiseCancellation ? noiseCancellationDeferredToSystem ? binding.NONE : binding.KRISP : value ? binding.STANDARD : binding.NONE;
|
||||
}
|
||||
|
||||
function handleNoiseSuppressionChange(a0) { // fn#83056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11010:904, offset: 0x01f0bd77, size: 147 bytes, params: 2, frame: 22
|
||||
const KRISP = env0_6.KRISP;
|
||||
const STANDARD = env0_6.STANDARD;
|
||||
const defaultImport = importDefault(8899) /* metro dependency 8899: AudioActionCreators */;
|
||||
const setNoiseCancellation = defaultImport.setNoiseCancellation;
|
||||
let USER_SETTINGS = AnalyticsPages.USER_SETTINGS;
|
||||
let SETTINGS_VOICE_AND_VIDEO = AnalyticsSections.SETTINGS_VOICE_AND_VIDEO;
|
||||
Reflect.apply(setNoiseCancellation, defaultImport, [a0 === KRISP, {page: USER_SETTINGS,
|
||||
section: SETTINGS_VOICE_AND_VIDEO}]);
|
||||
const value = defaultImport;
|
||||
const setNoiseSuppression = value.setNoiseSuppression;
|
||||
USER_SETTINGS = AnalyticsPages.USER_SETTINGS;
|
||||
SETTINGS_VOICE_AND_VIDEO = AnalyticsSections.SETTINGS_VOICE_AND_VIDEO;
|
||||
Reflect.apply(setNoiseSuppression, value, [a0 === STANDARD, {page: USER_SETTINGS,
|
||||
section: SETTINGS_VOICE_AND_VIDEO}]);
|
||||
}
|
||||
|
||||
function useSelectedNoiseSuppressionOption() { // fn#83057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11010:1290, offset: 0x01f0be0a, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([MediaEngineStore], function() {
|
||||
return getSelectedNoiseSuppressionOption(MediaEngineStore);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 8903; source: modules/user_settings/voice/trackVoiceAndVideoSettingsUpdate.tsx; dependencies: [661, 683, 2] */
|
||||
function _fun69427(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9088:6, offset: 0x01c73785, size: 120 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/voice/trackVoiceAndVideoSettingsUpdate.tsx');
|
||||
exports.default = trackVoiceAndVideoDebuggingSettingsUpdated;
|
||||
}
|
||||
|
||||
function trackVoiceAndVideoDebuggingSettingsUpdated(a0, a1, a2, a3) { // fn#69428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9088:229, offset: 0x01c737fd, size: 107 bytes, params: 5, frame: 17
|
||||
const value2 = undefined;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const VOICE_AND_VIDEO_SETTINGS_UPDATED = AnalyticEvents.VOICE_AND_VIDEO_SETTINGS_UPDATED;
|
||||
return Reflect.apply(track, defaultImport, [VOICE_AND_VIDEO_SETTINGS_UPDATED,
|
||||
{previous_setting_value: a2 != null ? global.String(a2) : value2, [a0]: a1, ['location_stack']: a3}]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user