Files
discord-decomp/sources/modules/go_live/native/MobileGoLiveActionSheet.tsx
T
2026-07-28 01:06:53 +03:00

419 lines
28 KiB
TypeScript

/* Metro module 10795; source: modules/go_live/native/MobileGoLiveActionSheet.tsx; dependencies: [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478, 4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821, 4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ApplicationStreamingSettingsStore from '../../../stores/ApplicationStreamingSettingsStore.tsx'; /* Metro dependency 4399 */
import ApplicationStreamingStore from '../../../stores/ApplicationStreamingStore.tsx'; /* Metro dependency 4492 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import NativeView2 from '../../core/native/NativeView.tsx'; /* Metro dependency 6821 */
import MobileGoLiveUpsellExperiment from './MobileGoLiveUpsellExperiment.tsx'; /* Metro dependency 10801 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as BaseIconImageModule from '../../../design/components/Icon/native/BaseIconImage.tsx'; /* Metro dependency 3859 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
import * as ConstantsModule2 from '../../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as UseAnalyticsLocationsModule from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import * as TableSwitchRowNativeModule from '../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as MobilePhoneIconModule from '../../../design/components/Icon/native/redesign/generated/MobilePhoneIcon.tsx'; /* Metro dependency 8990 */
import * as UseScreenshareUtilsModule from '../../video_calls/native/useScreenshareUtils.tsx'; /* Metro dependency 10794 */
import * as GetStreamSettingsForPresetModule from '../utils/getStreamSettingsForPreset.tsx'; /* Metro dependency 10796 */
import * as SpeedometerIconModule from '../../../design/components/Icon/native/redesign/generated/SpeedometerIcon.tsx'; /* Metro dependency 10802 */
import * as ImageSparkleIconModule from '../../../design/components/Icon/native/redesign/generated/ImageSparkleIcon.tsx'; /* Metro dependency 10804 */
function _fun82920(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:6, offset: 0x01f06203, size: 667 bytes, params: 8, frame: 25
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactModule;
const ApplicationStreamPresets = (StreamSettingsConstantsModule).ApplicationStreamPresets;
const createStyles = CreateStylesModule.createStyles;
object = {};
const PX_24 = (Native).space.PX_24;
object.wrapper = {gap: PX_24};
object.header = {textAlign: 'center'};
const PX_16 = (Native).space.PX_16;
object.section = {marginHorizontal: PX_16};
const PX_4 = (Native).space.PX_4;
object.highQualityLabel = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
object.nitroWheelIcon = {'bottom': -1, 'width': 22, 'height': 16};
const env0_17 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const items2 = [{preset: PRESET_MOBILE_DEFAULT, enabled: true}];
object = {};
const PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
object.preset = PRESET_MOBILE_PERFORMANCE;
object.enabled = !PlatformUtilsModule.isIOS();
items2[1] = object;
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
items2[2] = {preset: PRESET_MOBILE_HIGH_QUALITY, enabled: true};
const env0_18 = items2.filter(function(a0) {
return a0.enabled;
}).map(function(a0) {
return a0.preset;
});
value = value.memo(MobileGoLiveActionSheet);
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/MobileGoLiveActionSheet.tsx');
exports.default = value;
exports.showMobileGoLiveActionSheet = showMobileGoLiveActionSheet;
function MobileGoLiveActionSheet() { // fn#82923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:842, offset: 0x01f064a9, size: 1951 bytes, params: 1, frame: 45
var r15;
var NativeView;
const Button = (ButtonNativeModule).Button;
var object;
var object4;
var object5;
const {preset,
soundshareEnabled} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingSettingsStore],
function() {
return ApplicationStreamingSettingsStore.getState();
});
const {user,
guildPremiumTier} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore,
SelectedChannelStore, ChannelStore, GuildStore], _fun82926);
let binding = activeSourceId2;
const value4 = binding.useCallback(_fun82927, [user, guildPremiumTier]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingStore],
_fun82928);
const isStreaming = value5.isStreaming;
const isStreaming2 = isStreaming;
const activeSourceId = value5.activeSourceId;
var activeSourceId2 = activeSourceId;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
let defaultImport = MobileGoLiveUpsellExperiment;
const useConfig = defaultImport.useConfig;
const goLiveUpsellVariant = Reflect.apply(useConfig, defaultImport,
[{location: 'MobileGoLiveActionSheet'}]).goLiveUpsellVariant;
const defaultImport2 = UseAnalyticsLocations;
const MOBILE_GO_LIVE_ACTION_SHEET = (AnalyticsLocation).MOBILE_GO_LIVE_ACTION_SHEET;
const analyticsLocations = defaultImport2(MOBILE_GO_LIVE_ACTION_SHEET).analyticsLocations;
const styles = useStyles();
let useState = binding.useState;
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
let r9 = preset === PRESET_MOBILE_DEFAULT || preset === ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
r9 = !r9 ? preset === ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY : r9;
const value9 = Reflect.apply(useState, binding,
[r9 && env0_18.includes(preset) && value4(preset) ? preset : ApplicationStreamPresets.PRESET_MOBILE_DEFAULT]);
binding = isStreaming2;
const value10 = binding(value9, 2);
const property = value10[0];
const env0_8 = value10[1];
const binding3 = activeSourceId2;
useState = binding3.useState;
const value11 = binding(Reflect.apply(useState, binding3, [soundshareEnabled]), 2);
const property2 = value11[0];
const env0_10 = value11[1];
const useSharedValue = ReanimatedRexportModule.useSharedValue;
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value12 = Reflect.apply(useSharedValue, ReanimatedRexportModule, [!value4(PRESET_MOBILE_HIGH_QUALITY)]);
const env0_11 = binding3.useCallback(_fun82930, [user, guildPremiumTier, activeSourceId, isStreaming]);
const AnalyticsLocationProvider = (UseAnalyticsLocationsModule).AnalyticsLocationProvider;
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const CrNjqp = (importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).CrNjqp;
const items2 = [
<Text
style={styles.header}
variant="redesign/heading-18/bold"
color="text-strong"
accessibilityRole="header"
>
{Reflect.apply(string, intl, [CrNjqp])}
</Text>,
];
let section = styles.section;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const tableRowGroupProps = {title: (IndexNativeModule).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['/XSr8v']),
hasIcons: false};
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
items2[1] = (
<NativeView2 style={section}>
<TableRowGroup {...tableRowGroupProps}>
<TableRadioGroup
value={property}
onChange={onChange_82931}
hasIcons
>
{env0_18.map(_fun82932)}
</TableRadioGroup>
</TableRowGroup>
</NativeView2>
);
let r13 = goLiveUpsellVariant === 'one-step' && value12.get() && <NativeView2 style={styles.section}>{((Component) => <Component featureName={(require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames.STREAM_HIGH_QUALITY} shouldShow={value12} />)(importDefault(8617) /* metro dependency 8617: PremiumFeatureUpsell */)}</NativeView2>;
items2[2] = r13;
r13 = goLiveUpsellVariant === 'two-step' && value12.get();
if (r13) {
NativeView = NativeView2;
r13 = (
<NativeView style={styles.section}>
<Button
text={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).u72Prd)}
size="lg"
onPress={function() {
var defaultImport = importDefault(dependencyMap[42]);
var object = {};
object.initialUpsellKey = require(dependencyMap[43]).UpsellTypes.STREAM_HIGH_QUALITY;
object.analyticsLocations = analyticsLocations;
defaultImport.handleShowUpsellAlert(object);
}}
icon={((NitroWheelIcon) => <NitroWheelIcon style={styles.nitroWheelIcon} color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} size="custom" />)((require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)}
iconPosition="start"
variant="experimental_premium-primary"
shiny={!useReducedMotion}
/>
</NativeView>
);
}
items2[3] = r13;
const defaultImport7 = NativeView2;
section = styles.section;
const tableRowGroupProps2 = {title: (IndexNativeModule).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['j+eAMQ']),
hasIcons: false};
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
items2[4] = ((Component) => <Component style={section}><TableRowGroup {...tableRowGroupProps2}><TableSwitchRow label={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).uwMBDo)} value={property2} onValueChange={onValueChange_82934} /></TableRowGroup></Component>)(defaultImport7);
const defaultImport8 = NativeView2;
section = styles.section;
if (isStreaming) {
object5 = {'size': 'lg', 'variant': 'destructive'};
object5.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).OsS9Ll);
object5.onPress = onPress_82935;
r15 = object5;
} else {
object4 = {'size': 'lg', 'variant': 'primary'};
object4.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['3wwZ/Q']);
object4.onPress = onPress_82936;
r15 = object4;
}
items2[5] = ((Component) => <Component style={section}><Button {...r15} /></Component>)(defaultImport8);
return (
<AnalyticsLocationProvider value={analyticsLocations}>
<BottomSheet startExpanded>
<BottomSheetScrollView>
<SafeAreaPaddingView bottom style={styles.wrapper}>
{items2}
</SafeAreaPaddingView>
</BottomSheetScrollView>
</BottomSheet>
</AnalyticsLocationProvider>
);
function getTableRadioRowConfig(a0) { // fn#82924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2465, owner: MobileGoLiveActionSheet.getTableRadioRowConfig, offset: 0x01f06c48, size: 798 bytes, params: 2, frame: 33
var r5;
var intl2;
const value = environment.__proto__;
let getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const value2 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_DEFAULT]);
getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const value3 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_PERFORMANCE]);
getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value4 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_HIGH_QUALITY]);
const object = {value: a0};
const object2 = {};
PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const object3 = {};
const MobilePhoneIcon = (MobilePhoneIconModule).MobilePhoneIcon;
object3.icon = <MobilePhoneIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['2qmQ8N']);
const value5 = '';
object3.subLabel = value2 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).ibH7vy,
value2) : value5;
object2[PRESET_MOBILE_DEFAULT] = object3;
PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const object4 = {};
const SpeedometerIcon = (SpeedometerIconModule).SpeedometerIcon;
object4.icon = <SpeedometerIcon />;
object4.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['5eO4/m']);
object4.subLabel = value3 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).fN0UQY,
value3) : value5;
object2[PRESET_MOBILE_PERFORMANCE] = object4;
PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const object5 = {};
const ImageSparkleIcon = (ImageSparkleIconModule).ImageSparkleIcon;
object5.icon = <ImageSparkleIcon />;
const NativeView = NativeView2;
const Text = (TextModule).Text;
const text = (
<Text variant="text-md/semibold" color="text-strong">
{intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).nMcXo1)}
</Text>
);
const BaseIconImage = (BaseIconImageModule).BaseIconImage;
object5.label = (
<NativeView style={styles.highQualityLabel}>
{text}
<BaseIconImage source={importDefault(8619) /* metro dependency 8619 */} size="xs" />
</NativeView>
);
if (value4 != null) {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl2.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).q4gYBi,
value4);
} else {
r5 = value5;
}
object5.subLabel = r5;
object2[PRESET_MOBILE_HIGH_QUALITY] = object5;
copyDataProperties(object, object2[a0], intl);
return object;
}
function _fun82926() { // fn#82926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1021, offset: 0x01f06f79, size: 108 bytes, params: 1, frame: 16
let value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const channelStoreBinding = ChannelStore;
const getChannel = channelStoreBinding.getChannel;
const selectedChannelStoreBinding = SelectedChannelStore;
const getVoiceChannelId = selectedChannelStoreBinding.getVoiceChannelId;
const value3 = Reflect.apply(getChannel, channelStoreBinding, [Reflect.apply(getVoiceChannelId,
selectedChannelStoreBinding, [])]);
const object = {user: currentUser};
const guildStoreBinding = GuildStore;
value = undefined;
const guild = guildStoreBinding.getGuild(value3 == null ? value : value3.getGuildId());
object.guildPremiumTier = guild == null ? value : guild.premiumTier;
return object;
}
function _fun82927(a0) { // fn#82927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1246, offset: 0x01f06fe5, size: 54 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(10796) /* metro dependency 10796: getStreamSettingsForPreset */;
return value.canStreamWithPreset(a0, user, guildPremiumTier);
}
function _fun82928() { // fn#82928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1334, offset: 0x01f0701b, size: 100 bytes, params: 1, frame: 13
let value = environment.__proto__;
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
const object = {};
const value3 = null;
object.isStreaming = value3 != currentUserActiveStream && currentUserActiveStream.state === ApplicationStreamStates.ACTIVE;
value = ApplicationStreamingStore.getStreamerActiveStreamMetadata();
const sourceId = value3 == value ? undefined : value.sourceId;
object.activeSourceId = value3 != sourceId ? sourceId : value3;
return object;
}
function _fun82930(a0, a1) { // fn#82930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2114, offset: 0x01f0707f, size: 260 bytes, params: 3, frame: 22
var object;
var moduleValue;
var updateStreamSettings;
const value = environment.__proto__;
const value4 = env1_3((importDefault(10796) /* metro dependency 10796: getStreamSettingsForPreset */)(a0, user,
guildPremiumTier) ?? [], 2);
const property = value4[0];
const property2 = value4[1];
if (property != null) {
if (property2 != null) {
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
updateStreamSettings = moduleValue.updateStreamSettings;
object = {preset: a0, resolution: property, frameRate: property2, soundshareEnabled: a1};
Reflect.apply(updateStreamSettings, moduleValue, [object]);
if (isStreaming) {
object = {};
object.qualityOptions = {preset: a0, resolution: property, frameRate: property2};
object.context = MediaEngineContextTypes.STREAM;
if (activeSourceId != null) {
object.desktopSettings = {sourceId: activeSourceId, sound: a1};
}
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setGoLiveSource(object);
}
}
}
}
function MobileGoLiveActionSheetOnChange(a0) { // fn#82931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4017, owner: MobileGoLiveActionSheet.onChange, offset: 0x01f07183, size: 172 bytes, params: 2, frame: 18
var value2;
var defaultImport;
var handleShowUpsellAlert;
var object;
var value;
if (env0_2(a0)) {
env0_8(a0);
env0_11(a0, env0_9);
if (isStreaming) {
value = environment.__proto__;
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
value.hideActionSheet('MobileGoLiveActionSheet');
}
} else {
value2 = environment.__proto__;
defaultImport = importDefault(7882) /* metro dependency 7882: PremiumUpsellUtils */;
handleShowUpsellAlert = defaultImport.handleShowUpsellAlert;
object = {};
object.initialUpsellKey = (require(676) /* metro dependency 676: ConstantsIOS */).UpsellTypes.STREAM_HIGH_QUALITY;
object.analyticsLocations = analyticsLocations;
Reflect.apply(handleShowUpsellAlert, defaultImport, [object]);
}
}
function _fun82932(a0) { // fn#82932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4213, offset: 0x01f0722f, size: 68 bytes, params: 2, frame: 16
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
return <TableRadioRow {...getTableRadioRowConfig(a0)} key={a0} />;
}
function MobileGoLiveActionSheetOnValueChange(a0) { // fn#82934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5096, owner: MobileGoLiveActionSheet.onValueChange, offset: 0x01f072c8, size: 33 bytes, params: 2, frame: 13
env0_10(a0);
env0_11(env0_7, a0);
}
function MobileGoLiveActionSheetOnPress_82935() { // fn#82935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5260, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f072e9, size: 70 bytes, params: 1, frame: 13
const value = environment.__proto__;
(UseScreenshareUtilsModule).stopScreenshare();
(ActionSheetActionCreators).hideActionSheet('MobileGoLiveActionSheet');
}
function MobileGoLiveActionSheetOnPress_82936() { // fn#82936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5405, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f0732f, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet('MobileGoLiveActionSheet');
(UseScreenshareUtilsModule).startStream();
}
}
function showMobileGoLiveActionSheet(a0) { // fn#82937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5605, offset: 0x01f07375, size: 126 bytes, params: 2, frame: 18
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
const ImpressionNames = require(dependencyMap[19]).ImpressionNames;
const MOBILE_GO_LIVE_ACTION_SHEET = ImpressionNames.MOBILE_GO_LIVE_ACTION_SHEET;
Reflect.apply(openLazy, defaultImport, [value, 'MobileGoLiveActionSheet',
{impressionName: MOBILE_GO_LIVE_ACTION_SHEET, impressionProperties: {location_stack: a0}}]);
}
}
global.__d(_fun82920, 10795, [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478,
4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821,
4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794,
2]) /* metro module 10795, dependencies: [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478, 4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821, 4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794, 2] */;