Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user