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,24 +1,28 @@
/* Metro module 10200; source: modules/masked_link/MaskedLinkModalActionCreators.native.tsx; dependencies: [31, 33, 10201, 1962, 4497, 2] */
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 UseAlertStoreNativeModule from '../../design/components/AlertModal/native/useAlertStore.native.tsx'; /* Metro dependency 4497 */
function _fun79323(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10386:6, offset: 0x01e4d9ee, size: 142 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
object2 = {show: show_79324};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/masked_link/MaskedLinkModalActionCreators.native.tsx');
exports.default = object2;
}
object = {show: show_79324};
(FileImportTrackerModule).fileFinishedImporting('modules/masked_link/MaskedLinkModalActionCreators.native.tsx');
exports.default = object;
function show_79324({url, trustUrl, onConfirm, onCancel, isProtocol}) { // fn#79324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10386:123, offset: 0x01e4da7c, size: 138 bytes, params: 2, frame: 21
(UseAlertStoreNativeModule).openAlert('masked-link',
((Component) => <Component url={url} trustUrl={trustUrl} onConfirm={onConfirm} onCancel={onCancel} isProtocol={isProtocol} />)(ReactModule.lazy(_fun79325)),
onCancel);
function _fun79325() { // fn#79325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10386:198, offset: 0x01e4db06, size: 45 bytes, params: 1, frame: 13
const value = environment.__proto__;
return require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
}
function show_79324({url, trustUrl, onConfirm, onCancel, isProtocol}) { // fn#79324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10386:123, offset: 0x01e4da7c, size: 138 bytes, params: 2, frame: 21
(require(4497) /* metro dependency 4497: useAlertStoreNative */).openAlert('masked-link',
((Component) => <Component url={url} trustUrl={trustUrl} onConfirm={onConfirm} onCancel={onCancel} isProtocol={isProtocol} />)(env0_2.lazy(_fun79325)),
onCancel);
}
}
function _fun79325() { // fn#79325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10386:198, offset: 0x01e4db06, size: 45 bytes, params: 1, frame: 13
const value = environment.__proto__;
return require(dependencyMap[3])(dependencyMap[2], dependencyMap.paths);
}
global.__d(_fun79323, 10200, [31, 33, 10201, 1962, 4497,
2]) /* metro module 10200, dependencies: [31, 33, 10201, 1962, 4497, 2] */;
@@ -1,70 +1,72 @@
/* Metro module 10198; source: modules/masked_link/SharedStateUtils.tsx; dependencies: [57, 31, 8875, 2] */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
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 */
function _fun79316(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:6, offset: 0x01e4d678, size: 150 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = useUrlParts;
const useUrlParts2 = useUrlParts;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/masked_link/SharedStateUtils.tsx');
exports.useUrlParts = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/masked_link/SharedStateUtils.tsx');
exports.useUrlParts = useUrlParts2;
exports.useModalState = useModalState;
}
function useUrlParts(a0) { // fn#79317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:116, offset: 0x01e4d70e, size: 149 bytes, params: 2, frame: 18
var object2;
const env0_0 = a0;
let value = env0_3.useMemo(_fun79318, [a0]);
const protocol = value.protocol;
const hostname = value.hostname;
value = a0.substr(protocol.length, 2);
const value2 = '';
const value3 = '//';
const r5 = value3 !== value ? value2 : value3;
object2 = {protocol: protocol, authorityPrefix: r5, hostname: hostname};
object2.theRestOfTheUrl = a0.replace(value2 + protocol + r5 + hostname, value2);
return object2;
}
function useModalState({url, trustUrl, onConfirm, onCancel, onClose}) { // fn#79319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:508, offset: 0x01e4d7f0, size: 262 bytes, params: 2, frame: 25
const env0_2 = onConfirm;
const env0_3 = onCancel;
let binding = env0_3;
const [property, property2] = env0_2(binding.useState(false), 2);
const {protocol, authorityPrefix, hostname, theRestOfTheUrl} = useUrlParts(url);
binding = env0_3;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun79320, [url, property, trustUrl, onConfirm, onClose]]);
binding = env0_3;
useCallback = binding.useCallback;
return {protocol: protocol, authorityPrefix: authorityPrefix, hostname: hostname, theRestOfTheUrl: theRestOfTheUrl,
shouldTrustUrl: property, setShouldTrustUrl: property2, handleConfirm: value5,
handleCancel: Reflect.apply(useCallback, binding, [function() {
if (onClose != null) {
onClose();
function useUrlParts(a0) { // fn#79317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:116, offset: 0x01e4d70e, size: 149 bytes, params: 2, frame: 18
const env0_0 = a0;
let value = ReactModule.useMemo(_fun79318, [a0]);
const protocol = value.protocol;
const hostname = value.hostname;
value = a0.substr(protocol.length, 2);
const value2 = '';
const value3 = '//';
const r5 = value3 !== value ? value2 : value3;
object = {protocol: protocol, authorityPrefix: r5, hostname: hostname};
object.theRestOfTheUrl = a0.replace(value2 + protocol + r5 + hostname, value2);
return object;
function _fun79318() { // fn#79318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:157, offset: 0x01e4d7a3, size: 77 bytes, params: 1, frame: 16
const object = {};
let value = environment.__proto__;
value = require(8875) /* metro dependency 8875: MaskedLinkStoreMethodsAdditionalNative */;
const getProtocol = value.getProtocol;
const binding = env0_0;
object.protocol = Reflect.apply(getProtocol, value, [binding]);
object.hostname = (require(8875) /* metro dependency 8875: MaskedLinkStoreMethodsAdditionalNative */).getHostname(binding);
return object;
}
onCancel();
}, [onCancel, onClose]])};
}
function _fun79318() { // fn#79318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:157, offset: 0x01e4d7a3, size: 77 bytes, params: 1, frame: 16
const object2 = {};
let value = environment.__proto__;
value = require(8875) /* metro dependency 8875: MaskedLinkStoreMethodsAdditionalNative */;
const getProtocol = value.getProtocol;
const binding = env0_0;
object2.protocol = Reflect.apply(getProtocol, value, [binding]);
object2.hostname = (require(8875) /* metro dependency 8875: MaskedLinkStoreMethodsAdditionalNative */).getHostname(binding);
return object2;
}
function _fun79320() { // fn#79320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:728, offset: 0x01e4d8f6, size: 57 bytes, params: 1, frame: 12
if (env0_5) {
trustUrl(url);
}
if (onClose != null) {
onClose();
function useModalState({url, trustUrl, onConfirm, onCancel, onClose}) { // fn#79319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:508, offset: 0x01e4d7f0, size: 262 bytes, params: 2, frame: 25
const onConfirm2 = onConfirm;
const onCancel2 = onCancel;
let binding = onCancel2;
const [property, property2] = onConfirm2(binding.useState(false), 2);
const {protocol, authorityPrefix, hostname, theRestOfTheUrl} = useUrlParts(url);
binding = onCancel2;
let useCallback = binding.useCallback;
const value5 = Reflect.apply(useCallback, binding, [_fun79320, [url, property, trustUrl, onConfirm, onClose]]);
binding = onCancel2;
useCallback = binding.useCallback;
return {protocol: protocol, authorityPrefix: authorityPrefix, hostname: hostname, theRestOfTheUrl: theRestOfTheUrl,
shouldTrustUrl: property, setShouldTrustUrl: property2, handleConfirm: value5,
handleCancel: Reflect.apply(useCallback, binding, [function() {
if (onClose != null) {
onClose();
}
onCancel();
}, [onCancel, onClose]])};
function _fun79320() { // fn#79320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10384:728, offset: 0x01e4d8f6, size: 57 bytes, params: 1, frame: 12
if (env0_5) {
trustUrl(url);
}
if (onClose != null) {
onClose();
}
onConfirm();
}
}
onConfirm();
}
global.__d(_fun79316, 10198, [57, 31, 8875, 2]) /* metro module 10198, dependencies: [57, 31, 8875, 2] */;
@@ -1,9 +1,17 @@
/* Metro module 10201; source: modules/masked_link/components/native/MaskedLinkModal.tsx; dependencies: [27, 33, 4501, 697, 10198, 4500, 1244, 4500, 4572, 7972, 4573, 2] */
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 AlertModalNativeModule from '../../../../design/components/AlertModal/native/AlertModal.native.tsx'; /* Metro dependency 4500 */
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 NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
import * as SharedStateUtilsModule from '../../SharedStateUtils.tsx'; /* Metro dependency 10198 */
function _fun79326(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10387:6, offset: 0x01e4db33, size: 260 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_2 = value.View;
const env0_3 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -11,70 +19,123 @@ function _fun79326(global, require, importDefault, importAll, module, exports, d
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const object2 = {};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object.backgroundColor = BACKGROUND_SURFACE_HIGH;
const env0_6 = Reflect.apply(createStyles, value, [{linkCalloutContainer: {maxHeight: 250}, emphasis: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/masked_link/components/native/MaskedLinkModal.tsx');
object2.backgroundColor = BACKGROUND_SURFACE_HIGH;
const env0_6 = Reflect.apply(createStyles, value, [{linkCalloutContainer: {maxHeight: 250}, emphasis: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/masked_link/components/native/MaskedLinkModal.tsx');
exports.default = MaskedLinkModal;
}
function MaskedLinkModal({url, trustUrl, isProtocol, onConfirm, onCancel}) { // fn#79327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10387:418, offset: 0x01e4dc37, size: 1205 bytes, params: 2, frame: 44
var object3;
var r13;
var property;
var object2;
const styles = useStyles();
const value2 = (require(10198) /* metro dependency 10198: SharedStateUtils */).useModalState({url: url,
trustUrl: trustUrl, onConfirm: onConfirm, onCancel: onCancel});
const protocol = value2.protocol;
const authorityPrefix = value2.authorityPrefix;
const hostname = value2.hostname;
const theRestOfTheUrl = value2.theRestOfTheUrl;
const shouldTrustUrl = value2.shouldTrustUrl;
const env0_1 = value2.setShouldTrustUrl;
const handleConfirm = value2.handleConfirm;
const handleCancel = value2.handleCancel;
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
object3 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object3.title = Reflect.apply(string, intl, [t['3w1QGl']]);
object3.content = isProtocol ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.aCYv1z,
{}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.soRxRe);
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
string = intl.string;
object3.actions = <AlertActions><AlertActionButton variant="primary" onPress={handleConfirm} text={isProtocol ? Reflect.apply(string,
intl, [t.COq6kk]) : Reflect.apply(string, intl,
[t.NcJfJG])} key="confirm" /><AlertActionButton onPress={handleCancel} variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC'])} key="cancel" /></AlertActions>;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const FormRow = (require(7972) /* metro dependency 7972: native */).FormRow;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const value8 = 'text-md/normal';
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
const value10 = 'text-muted';
const items3 = [<Text2 variant={isProtocol ? 'text-md/semibold' : value8} color={isProtocol ? 'text-default' : value10}>{protocol}{authorityPrefix}</Text2>];
const Text3 = (require(4573) /* metro dependency 4573: Text */).Text;
items3[1] = <Text3 variant={isProtocol ? value8 : 'text-md/semibold'} color={isProtocol ? value10 : 'text-default'}>{hostname}</Text3>;
const Text4 = (require(4573) /* metro dependency 4573: Text */).Text;
items3[2] = <Text4 variant="text-md/normal" color="text-muted">{theRestOfTheUrl}</Text4>;
const view = <View style={styles.emphasis}><FormRow start end label={<ScrollView style={styles.linkCalloutContainer}><Text variant={value8}>{items3}</Text></ScrollView>} /></View>;
const FormCheckboxRow = (require(7972) /* metro dependency 7972: native */).FormCheckboxRow;
const format = intl.format;
if (isProtocol) {
property = t['haA+Xw'];
object2 = {};
object2.protocol = protocol.replace(':', '');
r13 = Reflect.apply(format, intl, [property, object2]);
} else {
r13 = Reflect.apply(format, intl, [t.ZgXDsI, {domain: hostname}]);
function MaskedLinkModal({url, trustUrl, isProtocol, onConfirm, onCancel}) { // fn#79327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10387:418, offset: 0x01e4dc37, size: 1205 bytes, params: 2, frame: 44
var object4;
var r13;
var property;
var object;
const styles = useStyles();
const value2 = (SharedStateUtilsModule).useModalState({url: url,
trustUrl: trustUrl, onConfirm: onConfirm, onCancel: onCancel});
const protocol = value2.protocol;
const authorityPrefix = value2.authorityPrefix;
const hostname = value2.hostname;
const theRestOfTheUrl = value2.theRestOfTheUrl;
const shouldTrustUrl = value2.shouldTrustUrl;
const env0_1 = value2.setShouldTrustUrl;
const handleConfirm = value2.handleConfirm;
const handleCancel = value2.handleCancel;
const AlertModal = (AlertModalNativeModule).AlertModal;
object4 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object4.title = Reflect.apply(string, intl, [t['3w1QGl']]);
object4.content = isProtocol ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.aCYv1z,
{}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.soRxRe);
const AlertActions = (AlertModalNativeModule).AlertActions;
const AlertActionButton = (AlertModalNativeModule).AlertActionButton;
string = intl.string;
object4.actions = (
<AlertActions>
<AlertActionButton
variant="primary"
onPress={handleConfirm}
text={isProtocol ? Reflect.apply(string, intl, [t.COq6kk]) : Reflect.apply(string, intl, [t.NcJfJG])}
key="confirm"
/>
<AlertActionButton
onPress={handleCancel}
variant="secondary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC'])}
key="cancel"
/>
</AlertActions>
);
const Stack = (StackNativeModule).Stack;
const FormRow = (NativeModule).FormRow;
const Text = (TextModule).Text;
const value8 = 'text-md/normal';
const Text2 = (TextModule).Text;
const value10 = 'text-muted';
const items3 = [
<Text2 variant={isProtocol ? 'text-md/semibold' : value8} color={isProtocol ? 'text-default' : value10}>
{protocol}
{authorityPrefix}
</Text2>,
];
const Text3 = (TextModule).Text;
items3[1] = (
<Text3 variant={isProtocol ? value8 : 'text-md/semibold'} color={isProtocol ? value10 : 'text-default'}>
{hostname}
</Text3>
);
const Text4 = (TextModule).Text;
items3[2] = (
<Text4 variant="text-md/normal" color="text-muted">
{theRestOfTheUrl}
</Text4>
);
const view = (
<View style={styles.emphasis}>
<FormRow
start
end
label={<ScrollView style={styles.linkCalloutContainer}>
<Text variant={value8}>
{items3}
</Text>
</ScrollView>}
/>
</View>
);
const FormCheckboxRow = (NativeModule).FormCheckboxRow;
const format = intl.format;
if (isProtocol) {
property = t['haA+Xw'];
object = {};
object.protocol = protocol.replace(':', '');
r13 = Reflect.apply(format, intl, [property, object]);
} else {
r13 = Reflect.apply(format, intl, [t.ZgXDsI, {domain: hostname}]);
}
object4.extraContent = (
<Stack spacing={16}>
{view}
<FormCheckboxRow
start
end
selected={shouldTrustUrl}
onPress={function() {
return setShouldTrustUrl(!shouldTrustUrl);
}}
label={<Text variant="text-md/medium">
{r13}
</Text>}
/>
</Stack>
);
return <AlertModal {...object4} />;
}
object3.extraContent = <Stack spacing={16}>{view}<FormCheckboxRow start end selected={shouldTrustUrl} onPress={function() {
return setShouldTrustUrl(!shouldTrustUrl);
}} label={<Text variant="text-md/medium">{r13}</Text>} /></Stack>;
return <AlertModal {...object3} />;
}
global.__d(_fun79326, 10201, [27, 33, 4501, 697, 10198, 4500, 1244, 4500, 4572, 7972, 4573,
2]) /* metro module 10201, dependencies: [27, 33, 4501, 697, 10198, 4500, 1244, 4500, 4572, 7972, 4573, 2] */;
@@ -1,4 +1,6 @@
/* Metro module 10199; source: modules/masked_link/constants/TrustedURLs.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun79322(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10385:6, offset: 0x01e4d952, size: 156 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
@@ -11,10 +13,11 @@ function _fun79322(global, require, importDefault, importAll, module, exports, d
'https://infinitynikki.infoldgames.com/proj/dcbd.html', 'https://vrchat.com/home/profile',
'https://account.1047games.com/', 'https://discord.facepunch.com/']);
Set = global.Set;
items = [];
arraySpread(items, set, 0, Object);
set = new Set(items);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/masked_link/constants/TrustedURLs.tsx');
items2 = [];
arraySpread(items2, set, 0, Object);
set = new Set(items2);
(FileImportTrackerModule).fileFinishedImporting('modules/masked_link/constants/TrustedURLs.tsx');
exports.TRUSTED_URLS = set;
}
global.__d(_fun79322, 10199, [2]) /* metro module 10199, dependencies: [2] */;