Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,21 @@
|
||||
/* Metro module 6263; source: modules/safety_common/Constants.tsx; dependencies: [2] */
|
||||
function _fun49447(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6441:6, offset: 0x011f9fea, size: 330 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/Constants.tsx');
|
||||
exports.SafetyToastType = {IGNORE_SUCCESS: 'IGNORE_SUCCESS', UNIGNORE_SUCCESS: 'UNIGNORE_SUCCESS',
|
||||
BLOCK_SUCCESS: 'BLOCK_SUCCESS', UNBLOCK_SUCCESS: 'UNBLOCK_SUCCESS', MUTE_SUCCESS: 'MUTE_SUCCESS',
|
||||
UNMUTE_SUCCESS: 'UNMUTE_SUCCESS', REPORT_SUCCESS: 'REPORT_SUCCESS',
|
||||
TIGGER_PAWTECT_ERROR: 'TIGGER_PAWTECT_ERROR', TIGGER_PAWTECT_VERIFIED: 'TIGGER_PAWTECT_VERIFIED',
|
||||
GENERIC_ERROR: 'GENERIC_ERROR', REPORT_TO_MOD_SUCCESS: 'REPORT_TO_MOD_SUCCESS',
|
||||
SAFETY_FEEDBACK_SUCCESS: 'SAFETY_FEEDBACK_SUCCESS',
|
||||
EXISTING_USER_AGE_GATE_SUCCESS: 'EXISTING_USER_AGE_GATE_SUCCESS'};
|
||||
exports.SafetySettingsNoticeType = {SENSITIVE_CONTENT_FILTER_AGE_VERIFICATION_NOTICE: 'sensitive_content_filter_age_verification_notice',
|
||||
SENSITIVE_CONTENT_FILTER_TEEN_NOTICE: 'sensitive_content_filter_teen_notice',
|
||||
RESTRICTED_ACCOUNTS_SETTING_NOTICE: 'restricted_accounts_setting_notice',
|
||||
CONTENT_AND_SOCIAL_PARENTAL_CONTROLS_NOTICE: 'content_and_social_parental_controls_notice',
|
||||
AGE_CONFIRMATION_NOTICE: 'age_confirmation_notice'};
|
||||
exports.SafetySettingsNoticeAction = {DISMISS: 'dismiss', VIEWED: 'viewed', LEARN_MORE: 'learn_more',
|
||||
CONFIRM_AGE: 'confirm_age'};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 13271; source: modules/safety_common/SafetySettingsUtils.tsx; dependencies: [661, 683, 2] */
|
||||
function _fun101194(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13461:6, offset: 0x0220aff9, size: 120 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/SafetySettingsUtils.tsx');
|
||||
exports.trackSafetySettingsNoticeAnalytics = function(a0, a1) {
|
||||
var defaultImport = importDefault(dependencyMap[1]);
|
||||
var SAFETY_SETTINGS_NOTICE_ACTION = AnalyticEvents.SAFETY_SETTINGS_NOTICE_ACTION;
|
||||
defaultImport.track(SAFETY_SETTINGS_NOTICE_ACTION, {notice_type: a0, action: a1});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/* Metro module 6264; source: modules/safety_common/SafetyToastsActionCreators.native.tsx; dependencies: [6263, 3856, 6265, 2] */
|
||||
function _fun49448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:6, offset: 0x011fa134, size: 204 bytes, params: 8, frame: 18
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
|
||||
object2 = {showIgnoreSuccessToast: showIgnoreSuccessToast, showUnignoreSuccessToast: showUnignoreSuccessToast,
|
||||
showBlockSuccessToast: showBlockSuccessToast, showUnblockSuccessToast: showUnblockSuccessToast,
|
||||
showMuteSuccessToast: showMuteSuccessToast, showUnmuteSuccessToast: showUnmuteSuccessToast,
|
||||
showReportSuccessToast: showReportSuccessToast, showSuccessToast: showSuccessToast,
|
||||
showFailedToast: function(a0) {
|
||||
var value = a0;
|
||||
var moduleValue = require(dependencyMap[1]);
|
||||
var presentFailedToast = moduleValue.presentFailedToast;
|
||||
var moduleValue2 = require(dependencyMap[2]);
|
||||
var getSafetyToastTypeContent = moduleValue2.getSafetyToastTypeContent;
|
||||
Reflect.apply(presentFailedToast, moduleValue, [Reflect.apply(getSafetyToastTypeContent, moduleValue2,
|
||||
[value ?? SafetyToastType.GENERIC_ERROR])]);
|
||||
}};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/SafetyToastsActionCreators.native.tsx');
|
||||
exports.default = object2;
|
||||
}
|
||||
|
||||
function showIgnoreSuccessToast(a0, a1) { // fn#49449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:125, offset: 0x011fa200, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const IGNORE_SUCCESS = SafetyToastType.IGNORE_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const IGNORE_SUCCESS2 = SafetyToastType.IGNORE_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [IGNORE_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[IGNORE_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showUnignoreSuccessToast(a0, a1) { // fn#49450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:254, offset: 0x011fa256, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const UNIGNORE_SUCCESS = SafetyToastType.UNIGNORE_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const UNIGNORE_SUCCESS2 = SafetyToastType.UNIGNORE_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [UNIGNORE_SUCCESS, Reflect.apply(getSafetyToastTypeContent,
|
||||
value, [UNIGNORE_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showBlockSuccessToast(a0, a1) { // fn#49451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:389, offset: 0x011fa2ac, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const BLOCK_SUCCESS = SafetyToastType.BLOCK_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const BLOCK_SUCCESS2 = SafetyToastType.BLOCK_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [BLOCK_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[BLOCK_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showUnblockSuccessToast(a0, a1) { // fn#49452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:515, offset: 0x011fa302, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const UNBLOCK_SUCCESS = SafetyToastType.UNBLOCK_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const UNBLOCK_SUCCESS2 = SafetyToastType.UNBLOCK_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [UNBLOCK_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[UNBLOCK_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showMuteSuccessToast(a0, a1) { // fn#49453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:647, offset: 0x011fa358, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const MUTE_SUCCESS = SafetyToastType.MUTE_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const MUTE_SUCCESS2 = SafetyToastType.MUTE_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [MUTE_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[MUTE_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showUnmuteSuccessToast(a0, a1) { // fn#49454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:770, offset: 0x011fa3ae, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const UNMUTE_SUCCESS = SafetyToastType.UNMUTE_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const UNMUTE_SUCCESS2 = SafetyToastType.UNMUTE_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [UNMUTE_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[UNMUTE_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showReportSuccessToast(a0, a1) { // fn#49455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:899, offset: 0x011fa404, size: 86 bytes, params: 3, frame: 19
|
||||
const toastUtilsModule = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = toastUtilsModule.showSafetySuccess;
|
||||
const REPORT_SUCCESS = SafetyToastType.REPORT_SUCCESS;
|
||||
const value = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = value.getSafetyToastTypeContent;
|
||||
const REPORT_SUCCESS2 = SafetyToastType.REPORT_SUCCESS;
|
||||
Reflect.apply(showSafetySuccess, toastUtilsModule, [REPORT_SUCCESS, Reflect.apply(getSafetyToastTypeContent, value,
|
||||
[REPORT_SUCCESS2, a0, a1])]);
|
||||
}
|
||||
|
||||
function showSuccessToast(a0) { // fn#49456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6442:1028, offset: 0x011fa45a, size: 65 bytes, params: 2, frame: 16
|
||||
const value = require(3856) /* metro dependency 3856: ToastUtils */;
|
||||
const showSafetySuccess = value.showSafetySuccess;
|
||||
const safetyToastsUtilsModule = require(6265) /* metro dependency 6265: SafetyToastsUtils */;
|
||||
const getSafetyToastTypeContent = safetyToastsUtilsModule.getSafetyToastTypeContent;
|
||||
Reflect.apply(showSafetySuccess, value, [a0, Reflect.apply(getSafetyToastTypeContent, safetyToastsUtilsModule,
|
||||
[a0])]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
/* Metro module 6265; source: modules/safety_common/SafetyToastsUtils.tsx; dependencies: [1379, 1878, 6263, 4617, 3995, 1244, 2324, 2] */
|
||||
function _fun49458(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6443:6, offset: 0x011fa4eb, size: 154 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/SafetyToastsUtils.tsx');
|
||||
exports.getSafetyToastTypeContent = getSafetyToastTypeContent;
|
||||
}
|
||||
|
||||
function getSafetyToastTypeContent(a0, a1, a2) { // fn#49459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6443:247, offset: 0x011fa585, size: 1239 bytes, params: 4, frame: 21
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const user = UserStore.getUser(a1);
|
||||
const channel = ChannelStore.getChannel(a2);
|
||||
const value4 = undefined;
|
||||
const r4 = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(channel == null ? value4 : channel.guild_id,
|
||||
channel == null ? value4 : channel.id,
|
||||
user) ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(user);
|
||||
const IGNORE_SUCCESS = SafetyToastType.IGNORE_SUCCESS;
|
||||
if (IGNORE_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t['+joqrP'], {username: r4});
|
||||
}
|
||||
const UNIGNORE_SUCCESS = SafetyToastType.UNIGNORE_SUCCESS;
|
||||
if (UNIGNORE_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.THExKa, {username: r4});
|
||||
}
|
||||
const BLOCK_SUCCESS = SafetyToastType.BLOCK_SUCCESS;
|
||||
if (BLOCK_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.XXPrIs, {username: r4});
|
||||
}
|
||||
const UNBLOCK_SUCCESS = SafetyToastType.UNBLOCK_SUCCESS;
|
||||
if (UNBLOCK_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.uExcGX, {username: r4});
|
||||
}
|
||||
const MUTE_SUCCESS = SafetyToastType.MUTE_SUCCESS;
|
||||
if (MUTE_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.X4NtYb, {username: r4});
|
||||
}
|
||||
const UNMUTE_SUCCESS = SafetyToastType.UNMUTE_SUCCESS;
|
||||
if (UNMUTE_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.tRaBfY, {username: r4});
|
||||
}
|
||||
const REPORT_SUCCESS = SafetyToastType.REPORT_SUCCESS;
|
||||
if (REPORT_SUCCESS === a0) {
|
||||
return intl.formatToPlainString(t.FOptFU, {username: r4});
|
||||
}
|
||||
const TIGGER_PAWTECT_ERROR = SafetyToastType.TIGGER_PAWTECT_ERROR;
|
||||
if (TIGGER_PAWTECT_ERROR === a0) {
|
||||
return intl.string(t.c6kn6F);
|
||||
}
|
||||
const TIGGER_PAWTECT_VERIFIED = SafetyToastType.TIGGER_PAWTECT_VERIFIED;
|
||||
if (TIGGER_PAWTECT_VERIFIED === a0) {
|
||||
return intl.string(t['7nKAXx']);
|
||||
}
|
||||
const GENERIC_ERROR = SafetyToastType.GENERIC_ERROR;
|
||||
if (GENERIC_ERROR === a0) {
|
||||
return intl.string(t.zBpoc7);
|
||||
}
|
||||
const REPORT_TO_MOD_SUCCESS = SafetyToastType.REPORT_TO_MOD_SUCCESS;
|
||||
if (REPORT_TO_MOD_SUCCESS === a0) {
|
||||
return intl.string((importDefault(2324) /* metro dependency 2324: ReportToModMessages */).iBypeZ);
|
||||
}
|
||||
const SAFETY_FEEDBACK_SUCCESS = SafetyToastType.SAFETY_FEEDBACK_SUCCESS;
|
||||
if (SAFETY_FEEDBACK_SUCCESS === a0) {
|
||||
return intl.string(t.TcFR5k);
|
||||
}
|
||||
const EXISTING_USER_AGE_GATE_SUCCESS = SafetyToastType.EXISTING_USER_AGE_GATE_SUCCESS;
|
||||
if (EXISTING_USER_AGE_GATE_SUCCESS === a0) {
|
||||
return intl.string(t['susqq/']);
|
||||
}
|
||||
return intl.string(t['+c5xtT']);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/* Metro module 13270; source: modules/safety_common/native/SafetySettingsNotice.tsx; dependencies: [31, 27, 6263, 33, 4501, 697, 13271, 4068, 4573, 1244, 2] */
|
||||
function _fun101188(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#101188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:6, offset: 0x0220ac5a, size: 364 bytes, params: 8, frame: 23
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const env0_4 = (require(6263) /* metro dependency 6263: Constants */).SafetySettingsNoticeAction;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_5 = value.jsx;
|
||||
const env0_6 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const object = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
||||
let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.gap = PX_8;
|
||||
PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object.padding = PX_8;
|
||||
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
|
||||
const TEXT_LINK = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_LINK;
|
||||
object.borderColor = TEXT_LINK;
|
||||
object.borderWidth = 1;
|
||||
const BACKGROUND_FEEDBACK_INFO = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_FEEDBACK_INFO;
|
||||
object.backgroundColor = BACKGROUND_FEEDBACK_INFO;
|
||||
const env0_7 = Reflect.apply(createStyles, value, [{blockedIgnoredRedirect: object}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/native/SafetySettingsNotice.tsx');
|
||||
exports.default = SafetySettingsNotice;
|
||||
}
|
||||
|
||||
function SafetySettingsNotice({label, labelHook, noticeType, count}) { // fn#101189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:576, offset: 0x0220adc6, size: 369 bytes, params: 2, frame: 25
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const styles = useStyles();
|
||||
const binding = env0_2;
|
||||
binding.useEffect(function() {
|
||||
require(dependencyMap[6]).trackSafetySettingsNoticeAnalytics(noticeType, SafetySettingsNoticeAction.VIEWED);
|
||||
}, [noticeType]);
|
||||
var env0_2 = binding.useCallback(function() {
|
||||
labelHook();
|
||||
require(dependencyMap[6]).trackSafetySettingsNoticeAnalytics(noticeType, SafetySettingsNoticeAction.LEARN_MORE);
|
||||
}, [noticeType, labelHook]);
|
||||
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
|
||||
const circleInformationIcon = <CircleInformationIcon color="text-link" />;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<View style={styles.blockedIgnoredRedirect}>
|
||||
{circleInformationIcon}
|
||||
<Text style={{flexShrink: 1}} variant="heading-sm/medium">
|
||||
{count != null ? intl.format(label, {hook: hook_101192, count: count}) : intl.format(label,
|
||||
{hook: hook})}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function SafetySettingsNoticeHook(a0) { // fn#101192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13460:1054, owner: SafetySettingsNotice.hook, offset: 0x0220afaf, size: 74 bytes, params: 2, frame: 14
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
role="link"
|
||||
variant="heading-sm/medium"
|
||||
color="text-link"
|
||||
onPress={env0_2}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 10197; source: modules/safety_common/native/URLCallout.tsx; dependencies: [31, 27, 33, 4501, 697, 10198, 4573, 2] */
|
||||
function _fun79314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10383:6, offset: 0x01e4d401, size: 328 bytes, params: 8, frame: 22
|
||||
var object4;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_2 = (require(27) /* metro dependency 27 */).ScrollView;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsxs;
|
||||
const env0_4 = value.jsx;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object4 = {};
|
||||
const object5 = {'maxHeight': 300, 'backgroundColor': null, 'width': '100%'};
|
||||
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
|
||||
object5.backgroundColor = BACKGROUND_SURFACE_HIGH;
|
||||
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
|
||||
object4.linkCalloutContainer = object5;
|
||||
const object6 = {};
|
||||
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
||||
object6.padding = PX_8;
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object6.paddingVertical = PX_12;
|
||||
object6.textAlign = 'center';
|
||||
object4.linkCalloutContainerText = object6;
|
||||
const env0_5 = Reflect.apply(createStyles, value, [object4]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/native/URLCallout.tsx');
|
||||
exports.URLCallout = URLCallout;
|
||||
}
|
||||
|
||||
function URLCallout({url}) { // fn#79315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10383:512, offset: 0x01e4d549, size: 303 bytes, params: 2, frame: 25
|
||||
const styles = useStyles();
|
||||
const {protocol, hostname,
|
||||
theRestOfTheUrl} = (require(10198) /* metro dependency 10198: SharedStateUtils */).useUrlParts(url);
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const items2 = [<Text2 variant="text-md/normal" color="text-muted">{protocol}{'//'}</Text2>];
|
||||
const Text3 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[1] = <Text3 variant="text-md/semibold" color="text-default">{hostname}</Text3>;
|
||||
const Text4 = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
items2[2] = <Text4 variant="text-md/normal" color="text-muted">{theRestOfTheUrl}</Text4>;
|
||||
return (
|
||||
<ScrollView style={styles.linkCalloutContainer}>
|
||||
<Text style={styles.linkCalloutContainerText} variant="text-md/normal">
|
||||
{items2}
|
||||
</Text>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user