Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,19 @@
/* Metro module 10193; source: modules/suspicious_downloads/SuspiciousDownloadModalActionCreators.native.tsx; dependencies: [4080, 10194, 1962, 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;
}
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}]);
}
@@ -0,0 +1,246 @@
/* Metro module 10191; source: modules/suspicious_downloads/SuspiciousDownloadUtils.tsx; dependencies: [10192, 1471, 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 = {};
let RegExp = global.RegExp;
object2['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*/[^/]*');
RegExp = global.RegExp;
object2['gitlab.com'] = new RegExp('/downloads\\S*/[^/]*');
(require(2) /* metro dependency 2 */).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;
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) {
break reducibleJoin7;
}
test = property.test;
if (!Reflect.apply(test, property, [pathname])) {
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;
}
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;
}
split = r6.split;
value11 = Reflect.apply(split, r6, ['.']);
length = value11.length;
if (length < 2) {
return value4;
}
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;
}
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;
}
@@ -0,0 +1,61 @@
/* 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] */
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 */;
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 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');
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}
justify="center"
align="center"
style={items4}
>
{items3}
</Stack>
</BottomSheet>
);
}
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);
}