Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,114 @@
|
||||
/* Metro module 15698; source: components_native/calls/stream/StreamFeedbackActionSheet.tsx; dependencies: [31, 1226, 661, 9906, 33, 7128, 566, 1244, 2454, 9909, 15699, 683, 15559, 15700, 4080, 15701, 1962, 3856, 2] */
|
||||
function _fun120498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15906:6, offset: 0x0252c980, size: 218 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 authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const constantsModule = require(9906) /* metro dependency 9906: Constants */;
|
||||
const env0_5 = constantsModule.FeedbackCategory;
|
||||
const env0_6 = constantsModule.FeedbackType;
|
||||
const env0_7 = constantsModule.StreamFeedbackOption;
|
||||
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/calls/stream/StreamFeedbackActionSheet.tsx');
|
||||
exports.default = StreamFeedbackActionSheet;
|
||||
}
|
||||
|
||||
function StreamFeedbackActionSheet({stream, analyticsData}) { // fn#120499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15906:331, offset: 0x0252ca5a, size: 661 bytes, params: 2, frame: 25
|
||||
var object4;
|
||||
const env0_2 = (require(7128) /* metro dependency 7128: StreamerApplicationSelectors */).useGetStreamApplication(stream);
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], _fun120500);
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const value3 = Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t['5smP3R']]);
|
||||
const value4 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['0uxA2V']);
|
||||
string = intl.string;
|
||||
const CqjnLN = (require(1244) /* metro dependency 1244: indexNative */).t.CqjnLN;
|
||||
const value5 = Reflect.apply(string, intl, [CqjnLN]);
|
||||
object4 = {};
|
||||
object4.value = value2 ? FeedbackCategory.STREAMING : FeedbackCategory.STREAM_WATCHING;
|
||||
string = intl.string;
|
||||
const defaultImport = importDefault(2454) /* metro dependency 2454: FeedbackMessages */;
|
||||
object4.label = Reflect.apply(string, intl, [value2 ? defaultImport['0ZBLiZ'] : defaultImport.TVTIT1]);
|
||||
object4.problemsHeader = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6Y1t5P']);
|
||||
object4.problemOptions = (require(9909) /* metro dependency 9909: FeedbackUtils */).getStreamFeedbackOptions({isStreamer: value2});
|
||||
const object2 = {};
|
||||
const FREEFORM = StreamFeedbackOption.FREEFORM;
|
||||
object2.value = FREEFORM;
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.emlT91);
|
||||
object4.freeformConfig = object2;
|
||||
return ((Component) => <Component headerLabel={value3} showHeaderCloseButton ratingBody={value2 ? value4 : value5} categoriesHeader={intl.string(defaultImport.tq8598)} optionsTree={[object4]} trackOpen={trackOpen_120501} trackReport={trackReport} />)(importDefault(15699) /* metro dependency 15699: FeedbackActionSheetV2 */);
|
||||
}
|
||||
|
||||
function _fun120500() { // fn#120500, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15906:469, offset: 0x0252ccef, size: 36 bytes, params: 1, frame: 9
|
||||
const value = environment.__proto__;
|
||||
return AuthenticationStore.getId() === stream.ownerId;
|
||||
}
|
||||
|
||||
function StreamFeedbackActionSheetTrackOpen() { // fn#120501, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15906:1079, owner: StreamFeedbackActionSheet.trackOpen, offset: 0x0252cd13, size: 161 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
const value2 = null;
|
||||
Reflect.apply(track, defaultImport, [OPEN_POPOUT, {type: 'Stream Feedback Sheet', other_user_id: stream.ownerId,
|
||||
application_id: value2 != env0_2 ? env0_2.id : value2,
|
||||
application_name: value2 != env0_2 ? env0_2.name : value2, game_id: value2 != env0_2 ? env0_2.id : value2}]);
|
||||
}
|
||||
|
||||
function StreamFeedbackActionSheetTrackReport({dontShowAgain, rating, category, reason, feedback}) { // fn#120502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15906:1278, owner: StreamFeedbackActionSheet.trackReport, offset: 0x0252cdb4, size: 445 bytes, params: 2, frame: 22
|
||||
var r9;
|
||||
var r0;
|
||||
var variant;
|
||||
var value;
|
||||
var object2;
|
||||
var value2;
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var analyticsDataBinding;
|
||||
var openLazy;
|
||||
var value7;
|
||||
if (dontShowAgain) {
|
||||
value = environment.__proto__;
|
||||
require(dependencyMap[9]).processOptOut({feedbackType: FeedbackType.STREAM,
|
||||
location: 'StreamFeedbackActionSheet'});
|
||||
}
|
||||
value = null;
|
||||
if (value != rating) {
|
||||
value2 = environment.__proto__;
|
||||
value3 = undefined;
|
||||
defaultImport = importDefault(dependencyMap[12]);
|
||||
object2 = {category: category};
|
||||
r9 = value == reason ? value3 : reason.value;
|
||||
r0 = value != r9 ? r9 : value;
|
||||
object2.problem = r0;
|
||||
variant = value == reason ? value3 : reason.variant;
|
||||
r0 = value != variant ? variant : value;
|
||||
object2.variant = r0;
|
||||
object2.stream = stream;
|
||||
r9 = value != feedback ? feedback : '';
|
||||
object2.feedback = r9;
|
||||
object2.streamApplication = env0_2;
|
||||
object2.analyticsData = analyticsData;
|
||||
object2.location = 'Stream End';
|
||||
object2.rating = rating;
|
||||
defaultImport(object2);
|
||||
if (value == reason) {
|
||||
require(dependencyMap[17]).presentFeedbackSent();
|
||||
} else {
|
||||
value = require(dependencyMap[13]);
|
||||
if (value.shouldShowLogUploadForCategory(rating, category, reason)) {
|
||||
value = importDefault(dependencyMap[14]);
|
||||
openLazy = value.openLazy;
|
||||
value7 = require(dependencyMap[16])(dependencyMap[15], dependencyMap.paths);
|
||||
analyticsDataBinding = analyticsData;
|
||||
Reflect.apply(openLazy, value, [value7, 'UploadLogs',
|
||||
{mediaSessionId: analyticsDataBinding.media_session_id,
|
||||
rtcConnectionId: analyticsDataBinding.rtc_connection_id}]);
|
||||
} else {
|
||||
require(dependencyMap[17]).presentFeedbackSent();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/* Metro module 16190; source: components_native/calls/stream/StreamFullAlert.tsx; dependencies: [31, 27, 33, 9235, 1244, 4596, 4573, 16191, 2] */
|
||||
function _fun125092(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16398:6, offset: 0x025cdb23, size: 207 bytes, params: 8, frame: 18
|
||||
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 */).Image;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_4 = value.jsx;
|
||||
const env0_5 = value.jsxs;
|
||||
({image: {'alignSelf': 'center', 'marginTop': 32}}).body = {marginTop: 16};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/calls/stream/StreamFullAlert.tsx');
|
||||
exports.default = StreamFullAlert;
|
||||
}
|
||||
|
||||
function StreamFullAlert(a0) { // fn#125093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16398:217, offset: 0x025cdbf2, size: 444 bytes, params: 2, frame: 26
|
||||
const value2 = undefined;
|
||||
const avErrorModule = require(9235) /* metro dependency 9235: AVError */;
|
||||
const getErrorInfo = avErrorModule.getErrorInfo;
|
||||
const AVError = avErrorModule.AVError;
|
||||
const STREAM_FULL = AVError.STREAM_FULL;
|
||||
const value3 = Reflect.apply(getErrorInfo, avErrorModule, [STREAM_FULL]);
|
||||
const errorCode = value3 == null ? value2 : value3.errorCode;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const value4 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.ejOT95,
|
||||
{errorCode: errorCode});
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const defaultImportProps = {...a0};
|
||||
let string = intl.string;
|
||||
const GzjdO5 = (require(1244) /* metro dependency 1244: indexNative */).t.GzjdO5;
|
||||
defaultImportProps['title'] = Reflect.apply(string, intl, [GzjdO5]);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const binding = env0_6;
|
||||
const body = binding.body;
|
||||
string = intl.string;
|
||||
const VVZDBL = (require(1244) /* metro dependency 1244: indexNative */).t.VVZDBL;
|
||||
const items2 = [<Text variant="text-md/normal" style={body}>{Reflect.apply(string, intl, [VVZDBL])}</Text>];
|
||||
items2[1] = <Text variant="text-md/normal" selectable color="text-muted" style={binding.body}>{value4}</Text>;
|
||||
items2[2] = <Image source={importDefault(16191) /* metro dependency 16191 */} style={binding.image} />;
|
||||
return (
|
||||
<Alert {...defaultImportProps}>
|
||||
{items2}
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/* Metro module 15558; source: components_native/calls/stream/StreamReportProblemActionSheet.tsx; dependencies: [31, 4396, 661, 33, 4501, 697, 4594, 7128, 683, 15559, 4080, 3856, 15560, 6807, 6805, 6758, 1244, 6277, 2] */
|
||||
function _fun119091(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119091, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15755:6, offset: 0x024fc007, size: 244 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 presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
const env0_6 = Reflect.apply(createStyles, createStylesModule, [{container: {padding: 16,
|
||||
backgroundColor: BACKGROUND_SURFACE_HIGH}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/calls/stream/StreamReportProblemActionSheet.tsx');
|
||||
exports.default = ReportProblem;
|
||||
}
|
||||
|
||||
function ReportProblem({stream, analyticsData}) { // fn#119092, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15755:370, offset: 0x024fc0fb, size: 330 bytes, params: 2, frame: 23
|
||||
const styles = useStyles();
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun119093);
|
||||
const value3 = (importDefault(15560) /* metro dependency 15560: getStreamIssueReportOptions */)({'isStreamer': false,
|
||||
'isEndStream': false}).map(_fun119094);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
const object2 = {scrollable: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const XuqqwI = (require(1244) /* metro dependency 1244: indexNative */).t.XuqqwI;
|
||||
object2.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [XuqqwI])} />;
|
||||
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
const Group = ActionSheetRow.Group;
|
||||
return (
|
||||
<ActionSheet {...object2}>
|
||||
<BottomSheetScrollView style={styles.container}>
|
||||
<Group hasIcons={false}>
|
||||
{value3}
|
||||
</Group>
|
||||
</BottomSheetScrollView>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun119093() { // fn#119093, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15755:441, offset: 0x024fc245, size: 169 bytes, params: 1, frame: 18
|
||||
let value = environment.__proto__;
|
||||
const streamerApplicationSelectorsModule = require(7128) /* metro dependency 7128: StreamerApplicationSelectors */;
|
||||
const getStreamerApplication = streamerApplicationSelectorsModule.getStreamerApplication;
|
||||
const streamBinding = stream;
|
||||
const value3 = Reflect.apply(getStreamerApplication, streamerApplicationSelectorsModule, [streamBinding,
|
||||
PresenceStore]);
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const OPEN_POPOUT = AnalyticEvents.OPEN_POPOUT;
|
||||
value = null;
|
||||
Reflect.apply(track, defaultImport, [OPEN_POPOUT, {type: 'Stream Issue Sheet', other_user_id: streamBinding.ownerId,
|
||||
application_id: value != value3 ? value3.id : value, application_name: value != value3 ? value3.name : value,
|
||||
game_id: value != value3 ? value3.id : value}]);
|
||||
}
|
||||
|
||||
function _fun119094({value, label}, a1) { // fn#119094, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15755:722, offset: 0x024fc2ee, size: 90 bytes, params: 3, frame: 16
|
||||
var environment;
|
||||
value = environment.__proto__;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
return (
|
||||
<ActionSheetRow
|
||||
label={label}
|
||||
arrow
|
||||
onPress={onPress_119095}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function onPress_119095() { // fn#119095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15755:797, offset: 0x024fc348, size: 165 bytes, params: 1, frame: 20
|
||||
const valueBinding = value;
|
||||
const defaultImport = importDefault(15559) /* metro dependency 15559: trackStreamProblem */;
|
||||
const object2 = {problem: valueBinding};
|
||||
const streamBinding = stream;
|
||||
object2.stream = streamBinding;
|
||||
object2.feedback = '';
|
||||
object2.streamApplication = (require(7128) /* metro dependency 7128: StreamerApplicationSelectors */).getStreamerApplication(streamBinding,
|
||||
PresenceStore);
|
||||
object2.analyticsData = analyticsData;
|
||||
object2.location = 'Stream';
|
||||
defaultImport(object2);
|
||||
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
||||
(require(3856) /* metro dependency 3856: ToastUtils */).presentFeedbackSent();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
/* Metro module 10673; source: components_native/calls/stream/VideoEmptyState.tsx; dependencies: [31, 27, 1379, 661, 33, 4501, 697, 10674, 1305, 1244, 9933, 9235, 566, 4594, 8913, 4285, 4573, 4579, 2] */
|
||||
function _fun82078(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10859:6, offset: 0x01eea25a, size: 454 bytes, params: 8, frame: 24
|
||||
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 channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.Fragment;
|
||||
const env0_7 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {};
|
||||
const PRIMARY_700 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_700;
|
||||
object.container = {'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null, 'padding': 8,
|
||||
backgroundColor: PRIMARY_700};
|
||||
object.placeholderImage = {'marginBottom': 8, 'width': '100%', 'resizeMode': 'contain'};
|
||||
const WHITE = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.WHITE;
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
object.placeholderText = {'color': null, 'fontFamily': null, 'fontSize': 16, 'lineHeight': 20,
|
||||
'textAlign': 'center', color: WHITE, fontFamily: PRIMARY_SEMIBOLD};
|
||||
object.buttonWrapper = {'marginTop': 16, 'alignSelf': 'center'};
|
||||
const object3 = {};
|
||||
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
|
||||
object.buttonPill = object3;
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('components_native/calls/stream/VideoEmptyState.tsx');
|
||||
exports.default = VideoEmptyState;
|
||||
exports.VideoEmptyTypes = {NONE: 'NONE', STREAM_ENDED: 'STREAM_ENDED', STREAM_FAILED: 'STREAM_FAILED'};
|
||||
}
|
||||
|
||||
function VideoEmptyState(a0) { // fn#82079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10859:821, offset: 0x01eea420, size: 1098 bytes, params: 2, frame: 35
|
||||
var r7;
|
||||
var errorCode;
|
||||
var r4;
|
||||
var jsxRuntimeEnv0_6Binding;
|
||||
var items3;
|
||||
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var items2;
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
var BaseTextButton;
|
||||
const type = a0.type;
|
||||
const style = a0.style;
|
||||
const avError = a0.avError;
|
||||
const removeSplashImage = a0.removeSplashImage;
|
||||
const removeCloseButton = a0.removeCloseButton;
|
||||
const stream = a0.stream;
|
||||
const object2 = {'type': 0, 'style': 0, 'avError': 0, 'removeSplashImage': 0, 'removeCloseButton': 0, 'stream': 0};
|
||||
let value = null;
|
||||
silentSetPrototypeOf(object2, value, undefined);
|
||||
const value2 = copyDataProperties({}, a0, object2, undefined);
|
||||
const value3 = undefined;
|
||||
const styles = useStyles();
|
||||
const STREAM_ENDED = env0_8.STREAM_ENDED;
|
||||
if (STREAM_ENDED === type) {
|
||||
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
items2 = [!removeSplashImage && ((StreamEnded) => <StreamEnded style={styles.placeholderImage} />)((require(10674) /* metro dependency 10674: StreamEnded */).StreamEnded)];
|
||||
items2[1] = <LegacyText style={styles.placeholderText}>{intl.formatToMarkdownString((require(1244) /* metro dependency 1244: indexNative */).t['1Ww0Hi'],
|
||||
|
||||
{})}</LegacyText>;
|
||||
r7 = <>{items2}</>;
|
||||
} else if (env0_8.STREAM_FAILED === type) {
|
||||
jsxRuntimeEnv0_6Binding = jsxRuntimeEnv0_6;
|
||||
items3 = [!removeSplashImage && ((StreamFailed) => <StreamFailed style={styles.placeholderImage} />)((require(9933) /* metro dependency 9933: StreamFailed */).StreamFailed)];
|
||||
items3[1] = <LegacyText style={styles.placeholderText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.rSlOep)}</LegacyText>;
|
||||
r7 = <>{items3}</>;
|
||||
} else {
|
||||
r7 = env0_8.NONE !== type ? value3 : value;
|
||||
}
|
||||
if (value != avError) {
|
||||
moduleValue2 = require(9235) /* metro dependency 9235: AVError */;
|
||||
errorCode = moduleValue2.getErrorInfo(avError).errorCode;
|
||||
} else if (type !== env0_8.STREAM_FAILED) {
|
||||
errorCode = value;
|
||||
} else {
|
||||
moduleValue = require(9235) /* metro dependency 9235: AVError */;
|
||||
errorCode = moduleValue.getErrorInfo((require(9235) /* metro dependency 9235: AVError */).AVError.STREAM_FAILED_TO_START).errorCode;
|
||||
}
|
||||
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(stream.channelId);
|
||||
}, [stream.channelId]);
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun82081);
|
||||
const viewBindingProps = {...value2};
|
||||
viewBindingProps['style'] = [styles.container, style];
|
||||
value = value != errorCode;
|
||||
const r6 = value && ((Text) => <Text variant="text-sm/semibold" color="text-muted" selectable>{intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.ejOT95,
|
||||
{errorCode: errorCode})}</Text>)((require(4573) /* metro dependency 4573: Text */).Text);
|
||||
if (removeCloseButton) {
|
||||
r4 = !removeCloseButton;
|
||||
} else {
|
||||
var viewBinding2Props = {style: styles.buttonWrapper};
|
||||
BaseTextButton = (require(4579) /* metro dependency 4579: BaseTextButtonNative */).BaseTextButton;
|
||||
r4 = <View {...viewBinding2Props}><BaseTextButton pillStyle={styles.buttonPill} variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4EGMWL'])} onPress={onPress_82082} /></View>;
|
||||
}
|
||||
return (
|
||||
<View {...viewBindingProps}>
|
||||
{r7}
|
||||
{r6}
|
||||
{r4}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun82081() { // fn#82081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10859:1727, offset: 0x01eea889, size: 100 bytes, params: 1, frame: 15
|
||||
var value3;
|
||||
var moduleValue;
|
||||
var stopStream;
|
||||
var moduleValue2;
|
||||
if (env0_1 != null && env0_1.isGuildStageVoice()) {
|
||||
value3 = environment.__proto__;
|
||||
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
|
||||
stopStream = moduleValue.stopStream;
|
||||
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
Reflect.apply(stopStream, moduleValue, [moduleValue2.encodeStreamKey(stream)]);
|
||||
}
|
||||
}
|
||||
|
||||
function VideoEmptyStateOnPress() { // fn#82082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10859:2186, owner: VideoEmptyState.onPress, offset: 0x01eea8ed, size: 68 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(8913) /* metro dependency 8913: StreamActionCreators */;
|
||||
const stopStream = value.stopStream;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
Reflect.apply(stopStream, value, [streamKeyUtilsModule.encodeStreamKey(stream)]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user