This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,19 +1,21 @@
/* Metro module 10193; source: modules/suspicious_downloads/SuspiciousDownloadModalActionCreators.native.tsx; dependencies: [4080, 10194, 1962, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10379:6, offset: 0x01e4cb7a, size: 110 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {show: show_79304};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/suspicious_downloads/SuspiciousDownloadModalActionCreators.native.tsx');
exports.default = object2;
}
object = {show: show_79304};
(FileImportTrackerModule).fileFinishedImporting('modules/suspicious_downloads/SuspiciousDownloadModalActionCreators.native.tsx');
exports.default = object;
function show_79304(a0) { // fn#79304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10379:99, offset: 0x01e4cbe8, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'suspicious-download', {href: a0}]);
}
function show_79304(a0) { // fn#79304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10379:99, offset: 0x01e4cbe8, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'suspicious-download', {href: a0}]);
}
global.__d(_fun79303, 10193, [4080, 10194, 1962, 2]) /* metro module 10193, dependencies: [4080, 10194, 1962, 2] */;
@@ -1,95 +1,178 @@
/* Metro module 10191; source: modules/suspicious_downloads/SuspiciousDownloadUtils.tsx; dependencies: [10192, 1471, 2] */
import URLUtils from '../../utils/URLUtils.tsx'; /* Metro dependency 1471 */
import Module10192 from '../../by-id/module-10192.js'; /* Metro dependency 10192 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79300(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10377:6, offset: 0x01e4c8d0, size: 260 bytes, params: 8, frame: 19
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Set = global.Set;
const set = new Set(importDefault(10192) /* metro dependency 10192 */);
object2 = {};
const set = new Set(Module10192);
object = {};
let RegExp = global.RegExp;
object2['github.com'] = new RegExp('/releases\\S*/download|archive/refs/\\S*|/i/raw/i/\\S*|/user-attachments\\S*');
object['github.com'] = new RegExp('/releases\\S*/download|archive/refs/\\S*|/i/raw/i/\\S*|/user-attachments\\S*');
RegExp = global.RegExp;
object2['bitbucket.org'] = new RegExp('/downloads\\S*/[^/]*');
object['bitbucket.org'] = new RegExp('/downloads\\S*/[^/]*');
RegExp = global.RegExp;
object2['gitlab.com'] = new RegExp('/downloads\\S*/[^/]*');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/suspicious_downloads/SuspiciousDownloadUtils.tsx');
object['gitlab.com'] = new RegExp('/downloads\\S*/[^/]*');
(FileImportTrackerModule).fileFinishedImporting('modules/suspicious_downloads/SuspiciousDownloadUtils.tsx');
exports.isSuspiciousDownload = isSuspiciousDownload;
}
function isSuspiciousDownload(a0) { // fn#79301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10377:440, offset: 0x01e4c9d4, size: 399 bytes, params: 2, frame: 25
var r13;
var r8;
var r7;
var r10;
var r6;
var r1;
var test;
var decodeURIComponent;
var value5;
var error;
var split;
var value6;
var value7;
var length;
var value8;
var value9;
var value10;
var value11;
var pop;
var value12;
var toLowerCase;
var binding;
var has;
let value = undefined;
const value3 = (importDefault(1471) /* metro dependency 1471: URLUtils */).toURLSafe(a0);
const value4 = null;
reducibleJoin2: while (true) {
if (value4 != value3) {
r13 = value3;
function isSuspiciousDownload(a0) { // fn#79301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10377:440, offset: 0x01e4c9d4, size: 399 bytes, params: 2, frame: 25
var r13;
var r8;
var r7;
var r10;
var r6;
var r1;
var test;
var decodeURIComponent;
var value5;
var error;
var split;
var value6;
var value7;
var length;
var value8;
var value9;
var value10;
var value11;
var pop;
var value12;
var toLowerCase;
var binding;
var has;
let value = undefined;
const value3 = (URLUtils).toURLSafe(a0);
const value4 = null;
reducibleJoin2: while (true) {
if (value4 != value3) {
r13 = value3;
break reducibleJoin2;
}
r13 = {};
break reducibleJoin2;
}
r13 = {};
break reducibleJoin2;
}
const pathname = r13.pathname;
const hostname = r13.hostname;
if (value4 == hostname) {
return value4;
}
let property = env0_3[hostname];
if (value4 != property) {
reducibleJoin7: while (true) {
if (value4 == pathname) {
const pathname = r13.pathname;
const hostname = r13.hostname;
if (value4 == hostname) {
return value4;
}
let property = env0_3[hostname];
if (value4 != property) {
reducibleJoin7: while (true) {
if (value4 == pathname) {
break reducibleJoin7;
}
test = property.test;
if (!Reflect.apply(test, property, [pathname])) {
return value4;
}
break reducibleJoin7;
}
test = property.test;
if (!Reflect.apply(test, property, [pathname])) {
}
if (value4 == pathname) {
return value4;
}
reducibleJoin10: while (true) {
reduciblePort12: while (true) {
exceptionLanding11: while (true) {
try {
decodeURIComponent = global.decodeURIComponent;
} catch (error) {
break exceptionLanding11;
}
break reducibleJoin10;
}
r8 = pathname;
break reduciblePort12;
}
split = r8.split;
value6 = Reflect.apply(split, r8, ['/']);
value7 = 0;
length = value6.length;
value8 = length - 1;
if (value8 >= value7) {
r7 = value7;
r10 = value8;
reducibleLoop13: while (true) {
property = value6[r10];
if (property !== '') {
reducibleJoin17: while (true) {
if (property === '.') {
break reducibleJoin17;
}
if (property !== '..') {
reducibleJoin20: while (true) {
if (r7 > r10) {
r6 = value4;
break reducibleJoin20;
}
property = value6[r10 - r7];
r6 = property;
break reducibleJoin20;
}
break reducibleLoop13;
}
value9 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
r7 = value9;
break reducibleJoin17;
}
}
value10 = typeof r10 === 'bigint' ? r10 - 1n : +r10 - 1;
if (value10 >= value7) {
r10 = value10;
continue reducibleLoop13;
}
r6 = value4;
break reducibleLoop13;
}
} else {
r6 = value4;
}
if (value4 == r6) {
return value4;
}
break reducibleJoin7;
}
}
if (value4 == pathname) {
return value4;
}
reducibleJoin10: while (true) {
reduciblePort12: while (true) {
exceptionLanding11: while (true) {
try {
decodeURIComponent = global.decodeURIComponent;
} catch (error) {
break exceptionLanding11;
}
break reducibleJoin10;
split = r6.split;
value11 = Reflect.apply(split, r6, ['.']);
length = value11.length;
if (length < 2) {
return value4;
}
r8 = pathname;
break reduciblePort12;
pop = value11.pop;
value12 = Reflect.apply(pop, value11, []);
reducibleJoin24: while (true) {
if (value4 == value12) {
r1 = value;
break reducibleJoin24;
}
toLowerCase = value12.toLowerCase;
value = Reflect.apply(toLowerCase, value12, []);
r1 = value;
break reducibleJoin24;
}
reducibleJoin26: while (true) {
if (value4 != r1) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [r1])) {
break reducibleJoin26;
}
r1 = value4;
break reducibleJoin26;
}
r1 = value4;
break reducibleJoin26;
}
return r1;
}
split = r8.split;
value6 = Reflect.apply(split, r8, ['/']);
try {
value5 = decodeURIComponent(pathname);
} catch (error) {
break exceptionLanding11;
}
value6 = value5.split('/');
value7 = 0;
length = value6.length;
value8 = length - 1;
value8 = value6.length - 1;
if (value8 >= value7) {
r7 = value7;
r10 = value8;
@@ -131,14 +214,11 @@ function isSuspiciousDownload(a0) { // fn#79301, source: /ci/build/discord/disco
if (value4 == r6) {
return value4;
}
split = r6.split;
value11 = Reflect.apply(split, r6, ['.']);
length = value11.length;
if (length < 2) {
value11 = r6.split('.');
if (value11.length < 2) {
return value4;
}
pop = value11.pop;
value12 = Reflect.apply(pop, value11, []);
value12 = value11.pop();
reducibleJoin24: while (true) {
if (value4 == value12) {
r1 = value;
@@ -164,83 +244,7 @@ function isSuspiciousDownload(a0) { // fn#79301, source: /ci/build/discord/disco
}
return r1;
}
try {
value5 = decodeURIComponent(pathname);
} catch (error) {
break exceptionLanding11;
}
value6 = value5.split('/');
value7 = 0;
value8 = value6.length - 1;
if (value8 >= value7) {
r7 = value7;
r10 = value8;
reducibleLoop13: while (true) {
property = value6[r10];
if (property !== '') {
reducibleJoin17: while (true) {
if (property === '.') {
break reducibleJoin17;
}
if (property !== '..') {
reducibleJoin20: while (true) {
if (r7 > r10) {
r6 = value4;
break reducibleJoin20;
}
property = value6[r10 - r7];
r6 = property;
break reducibleJoin20;
}
break reducibleLoop13;
}
value9 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
r7 = value9;
break reducibleJoin17;
}
}
value10 = typeof r10 === 'bigint' ? r10 - 1n : +r10 - 1;
if (value10 >= value7) {
r10 = value10;
continue reducibleLoop13;
}
r6 = value4;
break reducibleLoop13;
}
} else {
r6 = value4;
}
if (value4 == r6) {
return value4;
}
value11 = r6.split('.');
if (value11.length < 2) {
return value4;
}
value12 = value11.pop();
reducibleJoin24: while (true) {
if (value4 == value12) {
r1 = value;
break reducibleJoin24;
}
toLowerCase = value12.toLowerCase;
value = Reflect.apply(toLowerCase, value12, []);
r1 = value;
break reducibleJoin24;
}
reducibleJoin26: while (true) {
if (value4 != r1) {
binding = env0_2;
has = binding.has;
if (Reflect.apply(has, binding, [r1])) {
break reducibleJoin26;
}
r1 = value4;
break reducibleJoin26;
}
r1 = value4;
break reducibleJoin26;
}
return r1;
}
global.__d(_fun79300, 10191, [10192, 1471, 2]) /* metro module 10191, dependencies: [10192, 1471, 2] */;
@@ -1,61 +1,115 @@
/* 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});
importAll(31) /* metro dependency 31 */;
let value = require(33) /* metro dependency 33 */;
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 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
const PX_12 = (Native).space.PX_12;
const env0_5 = Reflect.apply(createStyles, value, [{container: {padding: PX_12}, title: {textAlign: 'center'},
body: {textAlign: 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/suspicious_downloads/native/SuspiciousDownloadActionSheet.tsx');
(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 = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const items4 = [styles.container];
items4[1] = {paddingBottom: bottom};
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const TrafficConeSpotIllustration = (require(5473) /* metro dependency 5473: native */).TrafficConeSpotIllustration;
const items2 = [<TrafficConeSpotIllustration />];
const Text = (require(4573) /* metro dependency 4573: Text */).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 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).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}
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"
style={items4}
>
{items3}
</Stack>
</BottomSheet>
);
}
{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);
}
}
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__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
(importDefault(3847) /* metro dependency 3847: 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] */;