/* 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] */ 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 var object2; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(57) /* metro dependency 57 */; let value = importAll(31) /* metro dependency 31 */; const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */; const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */; const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */; const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */; const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */; const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */; const userStore = importDefault(1878) /* metro dependency 1878: UserStore */; const ApplicationStreamPresets = (require(4282) /* metro dependency 4282: StreamSettingsConstants */).ApplicationStreamPresets; const env0_13 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates; const env0_14 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes; const value2 = require(33) /* metro dependency 33 */; const env0_15 = value2.jsx; const env0_16 = value2.jsxs; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; object2 = {}; const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24; object2.wrapper = {gap: PX_24}; object2.header = {textAlign: 'center'}; const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16; object2.section = {marginHorizontal: PX_16}; const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4; object2.highQualityLabel = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4}; object2.nitroWheelIcon = {'bottom': -1, 'width': 22, 'height': 16}; const env0_17 = Reflect.apply(createStyles, createStylesModule, [object2]); const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT; const items2 = [{preset: PRESET_MOBILE_DEFAULT, enabled: true}]; object2 = {}; const PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE; object2.preset = PRESET_MOBILE_PERFORMANCE; const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */; object2.enabled = !platformUtilsModule.isIOS(); items2[1] = object2; 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); (require(2) /* metro dependency 2 */).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 = (require(4578) /* metro dependency 4578: ButtonNative */).Button; var object12; var object; var object2; 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 = env0_4; const value4 = binding.useCallback(_fun82927, [user, guildPremiumTier]); const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingStore], _fun82928); const isStreaming = value5.isStreaming; const env0_3 = isStreaming; const activeSourceId = value5.activeSourceId; var env0_4 = activeSourceId; const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() { return AccessibilityStore.useReducedMotion; }); let defaultImport = importDefault(10801) /* metro dependency 10801: MobileGoLiveUpsellExperiment */; const useConfig = defaultImport.useConfig; const goLiveUpsellVariant = Reflect.apply(useConfig, defaultImport, [{location: 'MobileGoLiveActionSheet'}]).goLiveUpsellVariant; const defaultImport2 = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */; const MOBILE_GO_LIVE_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: 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 = env0_3; const value10 = binding(value9, 2); const property = value10[0]; const env0_8 = value10[1]; const binding3 = env0_4; useState = binding3.useState; const value11 = binding(Reflect.apply(useState, binding3, [soundshareEnabled]), 2); const property2 = value11[0]; const env0_10 = value11[1]; const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */; 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 = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider; const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet; const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView; const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const string = intl.string; const CrNjqp = (importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).CrNjqp; const items2 = [{Reflect.apply(string, intl, [CrNjqp])}]; const NativeView2 = importDefault(6821) /* metro dependency 6821: NativeView */; let section = styles.section; const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup; const tableRowGroupProps = {title: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['/XSr8v']), hasIcons: false}; const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup; items2[1] = {env0_18.map(_fun82932)}; let r13 = goLiveUpsellVariant === 'one-step' && value12.get() && {((Component) => )(importDefault(8617) /* metro dependency 8617: PremiumFeatureUpsell */)}; items2[2] = r13; r13 = goLiveUpsellVariant === 'two-step' && value12.get(); if (r13) { NativeView = NativeView2; r13 =