102 lines
6.4 KiB
TypeScript
102 lines
6.4 KiB
TypeScript
/* Metro module 15701; source: modules/feedback/native/UploadLogsActionSheet.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 6275, 6758, 1244, 4573, 4578, 11216, 683, 4080, 2] */
|
|
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
|
|
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
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 BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
import * as BottomSheetTitleHeaderNativeModule from '../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
|
|
import * as DebugUploadManagerModule from '../../debug/DebugUploadManager.tsx'; /* Metro dependency 11216 */
|
|
|
|
function _fun120524(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#120524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15909:6, offset: 0x0252dda2, size: 327 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = ConstantsModule;
|
|
const env0_4 = value.AnalyticEvents;
|
|
const env0_5 = value.DebugLogCategory;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_6 = value.jsx;
|
|
const env0_7 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object = {};
|
|
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.container = {padding: PX_16};
|
|
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object.body = {textAlign: 'center', marginBottom: PX_16};
|
|
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object.buttonSpacer = {height: PX_8};
|
|
const env0_8 = Reflect.apply(createStyles, value, [object]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/feedback/native/UploadLogsActionSheet.tsx');
|
|
exports.default = UploadLogsActionSheet;
|
|
function UploadLogsActionSheet({mediaSessionId, rtcConnectionId}) { // fn#120525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15909:456, offset: 0x0252dee9, size: 503 bytes, params: 2, frame: 28
|
|
const styles = useStyles();
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const object = {};
|
|
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const KTjjrG = (require(1244) /* metro dependency 1244: indexNative */).t.KTjjrG;
|
|
object.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [KTjjrG])} />;
|
|
const Text = (TextModule).Text;
|
|
const items2 = [
|
|
<Text
|
|
variant="text-sm/normal"
|
|
color="text-muted"
|
|
style={styles.body}
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ZvRR/t'])}
|
|
</Text>,
|
|
];
|
|
const Button = (ButtonNativeModule).Button;
|
|
string = intl.string;
|
|
const EbwFfR = (require(1244) /* metro dependency 1244: indexNative */).t.EbwFfR;
|
|
items2[1] = <Button text={Reflect.apply(string, intl, [EbwFfR])} onPress={onPress_120526} />;
|
|
items2[2] = <View style={styles.buttonSpacer} />;
|
|
items2[3] = (
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
|
variant="secondary"
|
|
onPress={onPress_120527}
|
|
/>
|
|
);
|
|
return (
|
|
<BottomSheet {...object}>
|
|
<View style={styles.container}>
|
|
{items2}
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
function UploadLogsActionSheetOnPress() { // fn#120526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15909:889, owner: UploadLogsActionSheet.onPress, offset: 0x0252e0e0, size: 166 bytes, params: 1, frame: 19
|
|
const value = environment.__proto__;
|
|
const uploadDebugLogFiles = DebugUploadManagerModule.uploadDebugLogFiles;
|
|
const RTC = DebugLogCategory.RTC;
|
|
Reflect.apply(uploadDebugLogFiles, DebugUploadManagerModule, [RTC]);
|
|
const defaultImport = AnalyticsUtils;
|
|
const track = defaultImport.track;
|
|
const DEBUG_LOG_UPLOADED = AnalyticEvents.DEBUG_LOG_UPLOADED;
|
|
const mediaSessionIdBinding = mediaSessionId;
|
|
const value3 = null;
|
|
Reflect.apply(track, defaultImport, [DEBUG_LOG_UPLOADED,
|
|
{media_session_id: value3 != mediaSessionIdBinding ? mediaSessionId : value3,
|
|
rtc_connection_id: value3 != rtcConnectionId ? rtcConnectionId : value3}]);
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
function UploadLogsActionSheetOnPress_120527() { // fn#120527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15909:1191, owner: UploadLogsActionSheet.onPress, offset: 0x022e61b4, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun120524, 15701, [31, 27, 661, 33, 4501, 697, 6275, 6758, 1244, 4573, 4578, 11216, 683, 4080,
|
|
2]) /* metro module 15701, dependencies: [31, 27, 661, 33, 4501, 697, 6275, 6758, 1244, 4573, 4578, 11216, 683, 4080, 2] */;
|