This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,10 @@
// Metro module 12286 (f12287).
import ActionSheetActionCreators from "../action_sheet/native/ActionSheetActionCreators";
const r13 = {
show: (a0) => {
ActionSheetActionCreators.openLazy(import("./native/SuspiciousDownloadActionSheet"), "suspicious-download", {
href: a0
});
}
};
export default r13;
@@ -0,0 +1,67 @@
// Metro module 7906 (f7907).
import Module7907 from "../../_bundle/Module7907";
import URLUtils from "../../utils/URLUtils";
let c4998_2 = new Set(Module7907);
let c4998_3 = {
"github.com": new RegExp("/releases\\S*/download|archive/refs/\\S*|/i/raw/i/\\S*|/user-attachments\\S*"),
"bitbucket.org": new RegExp("/downloads\\S*/[^/]*"),
"gitlab.com": new RegExp("/downloads\\S*/[^/]*")
};
export function isSuspiciousDownload(a0) {
let r29;
let r19 = URLUtils.toURLSafe(a0);
if (r19 == null) {
r19 = {};
}
const { pathname, hostname } = r19;
if (hostname == null) {
return null;
}
const r23 = c4998_3[hostname];
if (r23 != null && pathname != null && !r23.test(pathname)) {
return null;
}
if (pathname == null) {
return null;
}
try {
r29 = decodeURIComponent(pathname);
} catch ($e) {}
const r34 = r29.split("/");
let r12 = r34.length - 1;
let r37 = null;
let r8 = 0;
while (0 <= r12) {
const r14 = r34[r12];
const r7 = r12;
const r38 = r8;
let r15 = r38;
if (r14 !== "") {
r15 = r38;
if (r14 !== ".") {
if (r14 !== "..") {
r37 = null;
if (r7 < r38) {
break;
}
r37 = r34[r7 - r38];
break;
}
r15 = r38 + 1;
}
}
r12 = r7 - 1;
r8 = r15;
r37 = null;
}
if (r37 == null) {
return null;
}
const r41 = r37.split(".");
if (r41.length < 2) {
return null;
}
const r45 = r41.pop();
const r47 = r45 == null ? void 0 : r45.toLowerCase();
return r47 != null ? c4998_2.has(r47) ? r47 : null : null;
}
@@ -0,0 +1,49 @@
// Metro module 12287 (f12288).
import { createStyles } from "../../../design/components/Styles/native/createStyles";
import Module712 from "../../../_bundle/Module712";
import useSafeAreaInsets_native from "../../safe_area/useSafeAreaInsets.native";
import { BottomSheet } from "../../../design/components/Sheet/native/BottomSheet.native";
import { Stack } from "../../../design/components/Stack/native/Stack.native";
import { TrafficConeSpotIllustration } from "../../../design/assets/native";
import { Text } from "../../../design/components/Text/native/Text";
import { intl, t } from "../../../intl/index.native";
import { Button } from "../../../design/components/Button/native/Button.native";
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
import openURL from "../../../lib/openURL";
const useStyles = createStyles({
container: {
padding: Module712.space.PX_12
},
title: {
textAlign: "center"
},
body: {
textAlign: "center"
}
});
export default function SuspiciousDownloadActionSheet(props) {
const href = props.href;
const styles = useStyles();
return <BottomSheet startExpanded>
<Stack spacing={16} justify="center" align="center" style={[styles.container, {
paddingBottom: useSafeAreaInsets_native().bottom
}]}>
<Stack spacing={8} justify="center" align="center">
<TrafficConeSpotIllustration />
<Text style={styles.title} accessibilityRole="header" variant="heading-lg/extrabold" color="mobile-text-heading-primary">
{intl.string(t.XtDo9Z)}
</Text>
<Text style={styles.body} variant="text-md/medium">
{intl.string(t.L9yFko)}
</Text>
</Stack>
<Stack spacing={8}>
<Button text={intl.string(t.j7Vi2i)} onPress={() => ActionSheetActionCreators.hideActionSheet()} />
<Button text={intl.string(t["/bHu89"])} onPress={function onPress() {
ActionSheetActionCreators.hideActionSheet();
openURL(href, true);
}} variant="secondary" />
</Stack>
</Stack>
</BottomSheet>;
};