Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user