116 lines
6.2 KiB
TypeScript
116 lines
6.2 KiB
TypeScript
/* Metro module 10194; source: modules/suspicious_downloads/native/SuspiciousDownloadActionSheet.tsx; dependencies: [31, 33, 4501, 697, 1585, 6275, 4572, 5473, 4573, 1244, 4578, 4080, 3847, 2] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import OpenURL from '../../../lib/openURL.tsx'; /* Metro dependency 3847 */
|
|
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 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 StackNativeModule from '../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
|
|
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 NativeModule from '../../../design/assets/native.tsx'; /* Metro dependency 5473 */
|
|
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
|
|
|
|
function _fun79305(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10380:6, offset: 0x01e4cc41, size: 232 bytes, params: 8, frame: 21
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_3 = value.jsx;
|
|
const env0_4 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const PX_12 = (Native).space.PX_12;
|
|
const env0_5 = Reflect.apply(createStyles, value, [{container: {padding: PX_12}, title: {textAlign: 'center'},
|
|
body: {textAlign: 'center'}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/suspicious_downloads/native/SuspiciousDownloadActionSheet.tsx');
|
|
exports.default = _default_79306;
|
|
function _default_79306({href}) { // fn#79306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10380:259, offset: 0x01e4cd29, size: 682 bytes, params: 2, frame: 31
|
|
const styles = useStyles();
|
|
const bottom = (UseSafeAreaInsetsNative)().bottom;
|
|
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
|
|
const Stack = (StackNativeModule).Stack;
|
|
const items4 = [styles.container];
|
|
items4[1] = {paddingBottom: bottom};
|
|
const Stack2 = (StackNativeModule).Stack;
|
|
const TrafficConeSpotIllustration = (NativeModule).TrafficConeSpotIllustration;
|
|
const items2 = [
|
|
<TrafficConeSpotIllustration />,
|
|
];
|
|
const Text = (TextModule).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const XtDo9Z = (require(1244) /* metro dependency 1244: indexNative */).t.XtDo9Z;
|
|
items2[1] = (
|
|
<Text
|
|
style={styles.title}
|
|
accessibilityRole="header"
|
|
variant="heading-lg/extrabold"
|
|
color="mobile-text-heading-primary"
|
|
>
|
|
{Reflect.apply(string, intl, [XtDo9Z])}
|
|
</Text>
|
|
);
|
|
string = intl.string;
|
|
const L9yFko = (require(1244) /* metro dependency 1244: indexNative */).t.L9yFko;
|
|
items2[2] = (
|
|
<Text style={styles.body} variant="text-md/medium">
|
|
{Reflect.apply(string, intl, [L9yFko])}
|
|
</Text>
|
|
);
|
|
const items3 = [
|
|
<Stack2
|
|
spacing={8}
|
|
justify="center"
|
|
align="center"
|
|
>
|
|
{items2}
|
|
</Stack2>,
|
|
];
|
|
const Stack3 = (StackNativeModule).Stack;
|
|
const Button = (ButtonNativeModule).Button;
|
|
items3[1] = (
|
|
<Stack3 spacing={8}>
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.j7Vi2i)}
|
|
onPress={onPress_79307}
|
|
/>
|
|
<Button
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/bHu89'])}
|
|
onPress={onPress_79308}
|
|
variant="secondary"
|
|
/>
|
|
</Stack3>
|
|
);
|
|
return (
|
|
<BottomSheet startExpanded>
|
|
<Stack
|
|
spacing={16}
|
|
justify="center"
|
|
align="center"
|
|
style={items4}
|
|
>
|
|
{items3}
|
|
</Stack>
|
|
</BottomSheet>
|
|
);
|
|
function _default_79306OnPress() { // fn#79307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10380:962, owner: _default_79306.onPress, offset: 0x01e4cfd3, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return (ActionSheetActionCreators).hideActionSheet();
|
|
}
|
|
|
|
function _default_79306OnPress_79308() { // fn#79308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10380:1068, owner: _default_79306.onPress, offset: 0x01e4cff8, size: 64 bytes, params: 1, frame: 14
|
|
const value = environment.__proto__;
|
|
(ActionSheetActionCreators).hideActionSheet();
|
|
(OpenURL)(href, true);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun79305, 10194, [31, 33, 4501, 697, 1585, 6275, 4572, 5473, 4573, 1244, 4578, 4080, 3847,
|
|
2]) /* metro module 10194, dependencies: [31, 33, 4501, 697, 1585, 6275, 4572, 5473, 4573, 1244, 4578, 4080, 3847, 2] */;
|