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,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] */;