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,24 @@
/* Metro module 10200; source: modules/masked_link/MaskedLinkModalActionCreators.native.tsx; dependencies: [31, 33, 10201, 1962, 4497, 2] */
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;
}
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);
}
@@ -0,0 +1,70 @@
/* Metro module 10198; source: modules/masked_link/SharedStateUtils.tsx; dependencies: [57, 31, 8875, 2] */
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 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;
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();
}
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();
}
onConfirm();
}
@@ -0,0 +1,80 @@
/* Metro module 10201; source: modules/masked_link/components/native/MaskedLinkModal.tsx; dependencies: [27, 33, 4501, 697, 10198, 4500, 1244, 4500, 4572, 7972, 4573, 2] */
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 */;
const env0_2 = value.View;
const env0_3 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
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 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');
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}]);
}
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} />;
}
@@ -0,0 +1,20 @@
/* Metro module 10199; source: modules/masked_link/constants/TrustedURLs.tsx; dependencies: [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});
let Set = global.Set;
let set = new Set(['https://account.riotgames.com/#connected-accounts',
'https://aes.sgp.pvp.net/providers/discord/link/v1',
'https://aes.sgp.pvp.net/providers/discord/link/v1?origin=Discord', 'https://marvelrivals.com/discord',
'https://wutheringwaves-dc.kurogames-global.com/', 'https://id.embark.games/id/connected-platforms',
'https://myaccount.ea.com/am/ui/connected-accounts', 'https://playbpsr.com/discord_bind',
'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');
exports.TRUSTED_URLS = set;
}